import * as Schema from "effect/Schema";
import { API } from "../../client.js";
import * as T from "../../traits.js";
import { Forbidden, NotFound } from "../../errors.js";
// Input Schema
export const UploadedMediaCreateInput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    project_id: Schema.String.pipe(T.PathParam()),
}).pipe(T.Http({
    method: "POST",
    path: "/api/projects/{project_id}/uploaded_media/",
}));
// Output Schema
export const UploadedMediaCreateOutput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Record(Schema.String, Schema.Unknown);
// The operation
/**
 * When object storage is available this API allows upload of media which can be used, for example, in text cards on dashboards.
 * Uploaded media must have a content type beginning with 'image/' and be less than 4MB.
 *
 * @param project_id - Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
 */
export const uploadedMediaCreate = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    inputSchema: UploadedMediaCreateInput,
    outputSchema: UploadedMediaCreateOutput,
    errors: [Forbidden, NotFound],
}));
//# sourceMappingURL=uploadedMediaCreate.js.map