/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: e50ad1ca57b4
 */
import * as z from "zod";
import { ApiError$zodSchema } from "./apierror.js";
import { AsyncUploadResponse$zodSchema, } from "./asyncuploadresponse.js";
import { UploadRequest$zodSchema } from "./uploadrequest.js";
import { UploadResourceType$zodSchema, } from "./uploadresourcetype.js";
import { UploadResponse$zodSchema } from "./uploadresponse.js";
export const UploadGlobals$zodSchema = z.object({
    cloud_name: z.string().describe("The cloud name of your product environment.")
        .optional(),
});
export const UploadRequestRequest$zodSchema = z
    .object({
    resource_type: UploadResourceType$zodSchema.default("auto").describe("The type of resource (image, video, raw, or auto)."),
    upload_request: UploadRequest$zodSchema.describe("The file to upload and associated parameters."),
});
export const UploadResponseBody$zodSchema = z
    .union([
    AsyncUploadResponse$zodSchema,
    UploadResponse$zodSchema,
]).describe("Successful upload");
export const UploadResponseResponse$zodSchema = z.union([
    ApiError$zodSchema,
    z.union([
        AsyncUploadResponse$zodSchema,
        UploadResponse$zodSchema,
    ]),
    z.string().describe("Redirect to callback URL (when 'callback' parameter is provided and request is not XHR)."),
]);
//# sourceMappingURL=uploadop.js.map