"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExplodeResourceResponse$ = exports.ExplodeResourceResponse$outboundSchema = exports.ExplodeResourceResponse$inboundSchema = exports.Status$ = exports.Status$outboundSchema = exports.Status$inboundSchema = exports.ExplodeResourceRequest$ = exports.ExplodeResourceRequest$outboundSchema = exports.ExplodeResourceRequest$inboundSchema = exports.ExplodeResourceRequestBody$ = exports.ExplodeResourceRequestBody$outboundSchema = exports.ExplodeResourceRequestBody$inboundSchema = exports.ExplodeResourceType$ = exports.ExplodeResourceType$outboundSchema = exports.ExplodeResourceType$inboundSchema = exports.ExplodeResourceResourceType$ = exports.ExplodeResourceResourceType$outboundSchema = exports.ExplodeResourceResourceType$inboundSchema = exports.ExplodeResourceGlobals$ = exports.ExplodeResourceGlobals$outboundSchema = exports.ExplodeResourceGlobals$inboundSchema = exports.Status = exports.ExplodeResourceType = exports.ExplodeResourceResourceType = void 0;
exports.explodeResourceGlobalsToJSON = explodeResourceGlobalsToJSON;
exports.explodeResourceGlobalsFromJSON = explodeResourceGlobalsFromJSON;
exports.explodeResourceRequestBodyToJSON = explodeResourceRequestBodyToJSON;
exports.explodeResourceRequestBodyFromJSON = explodeResourceRequestBodyFromJSON;
exports.explodeResourceRequestToJSON = explodeResourceRequestToJSON;
exports.explodeResourceRequestFromJSON = explodeResourceRequestFromJSON;
exports.explodeResourceResponseToJSON = explodeResourceResponseToJSON;
exports.explodeResourceResponseFromJSON = explodeResourceResponseFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
/**
 * The type of resource to explode. only "image"
 */
exports.ExplodeResourceResourceType = {
    Image: "image",
};
/**
 * description: The delivery type of the asset. Default: upload
 */
exports.ExplodeResourceType = {
    Upload: "upload",
    Private: "private",
    Authenticated: "authenticated",
};
/**
 * The status of the explode operation.
 */
exports.Status = {
    Processing: "processing",
};
/** @internal */
exports.ExplodeResourceGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
exports.ExplodeResourceGlobals$outboundSchema = z.object({
    cloudName: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        cloudName: "cloud_name",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ExplodeResourceGlobals$;
(function (ExplodeResourceGlobals$) {
    /** @deprecated use `ExplodeResourceGlobals$inboundSchema` instead. */
    ExplodeResourceGlobals$.inboundSchema = exports.ExplodeResourceGlobals$inboundSchema;
    /** @deprecated use `ExplodeResourceGlobals$outboundSchema` instead. */
    ExplodeResourceGlobals$.outboundSchema = exports.ExplodeResourceGlobals$outboundSchema;
})(ExplodeResourceGlobals$ || (exports.ExplodeResourceGlobals$ = ExplodeResourceGlobals$ = {}));
function explodeResourceGlobalsToJSON(explodeResourceGlobals) {
    return JSON.stringify(exports.ExplodeResourceGlobals$outboundSchema.parse(explodeResourceGlobals));
}
function explodeResourceGlobalsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ExplodeResourceGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExplodeResourceGlobals' from JSON`);
}
/** @internal */
exports.ExplodeResourceResourceType$inboundSchema = z.nativeEnum(exports.ExplodeResourceResourceType);
/** @internal */
exports.ExplodeResourceResourceType$outboundSchema = exports.ExplodeResourceResourceType$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ExplodeResourceResourceType$;
(function (ExplodeResourceResourceType$) {
    /** @deprecated use `ExplodeResourceResourceType$inboundSchema` instead. */
    ExplodeResourceResourceType$.inboundSchema = exports.ExplodeResourceResourceType$inboundSchema;
    /** @deprecated use `ExplodeResourceResourceType$outboundSchema` instead. */
    ExplodeResourceResourceType$.outboundSchema = exports.ExplodeResourceResourceType$outboundSchema;
})(ExplodeResourceResourceType$ || (exports.ExplodeResourceResourceType$ = ExplodeResourceResourceType$ = {}));
/** @internal */
exports.ExplodeResourceType$inboundSchema = z.nativeEnum(exports.ExplodeResourceType);
/** @internal */
exports.ExplodeResourceType$outboundSchema = exports.ExplodeResourceType$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ExplodeResourceType$;
(function (ExplodeResourceType$) {
    /** @deprecated use `ExplodeResourceType$inboundSchema` instead. */
    ExplodeResourceType$.inboundSchema = exports.ExplodeResourceType$inboundSchema;
    /** @deprecated use `ExplodeResourceType$outboundSchema` instead. */
    ExplodeResourceType$.outboundSchema = exports.ExplodeResourceType$outboundSchema;
})(ExplodeResourceType$ || (exports.ExplodeResourceType$ = ExplodeResourceType$ = {}));
/** @internal */
exports.ExplodeResourceRequestBody$inboundSchema = z.object({
    public_id: z.string(),
    format: z.string().optional(),
    transformation: z.string(),
    signature: z.string(),
    notification_url: z.string().optional(),
    type: exports.ExplodeResourceType$inboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "public_id": "publicId",
        "notification_url": "notificationUrl",
    });
});
/** @internal */
exports.ExplodeResourceRequestBody$outboundSchema = z.object({
    publicId: z.string(),
    format: z.string().optional(),
    transformation: z.string(),
    signature: z.string(),
    notificationUrl: z.string().optional(),
    type: exports.ExplodeResourceType$outboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        publicId: "public_id",
        notificationUrl: "notification_url",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ExplodeResourceRequestBody$;
(function (ExplodeResourceRequestBody$) {
    /** @deprecated use `ExplodeResourceRequestBody$inboundSchema` instead. */
    ExplodeResourceRequestBody$.inboundSchema = exports.ExplodeResourceRequestBody$inboundSchema;
    /** @deprecated use `ExplodeResourceRequestBody$outboundSchema` instead. */
    ExplodeResourceRequestBody$.outboundSchema = exports.ExplodeResourceRequestBody$outboundSchema;
})(ExplodeResourceRequestBody$ || (exports.ExplodeResourceRequestBody$ = ExplodeResourceRequestBody$ = {}));
function explodeResourceRequestBodyToJSON(explodeResourceRequestBody) {
    return JSON.stringify(exports.ExplodeResourceRequestBody$outboundSchema.parse(explodeResourceRequestBody));
}
function explodeResourceRequestBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ExplodeResourceRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExplodeResourceRequestBody' from JSON`);
}
/** @internal */
exports.ExplodeResourceRequest$inboundSchema = z.object({
    resource_type: exports.ExplodeResourceResourceType$inboundSchema,
    RequestBody: z.lazy(() => exports.ExplodeResourceRequestBody$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "resource_type": "resourceType",
        "RequestBody": "requestBody",
    });
});
/** @internal */
exports.ExplodeResourceRequest$outboundSchema = z.object({
    resourceType: exports.ExplodeResourceResourceType$outboundSchema,
    requestBody: z.lazy(() => exports.ExplodeResourceRequestBody$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        resourceType: "resource_type",
        requestBody: "RequestBody",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ExplodeResourceRequest$;
(function (ExplodeResourceRequest$) {
    /** @deprecated use `ExplodeResourceRequest$inboundSchema` instead. */
    ExplodeResourceRequest$.inboundSchema = exports.ExplodeResourceRequest$inboundSchema;
    /** @deprecated use `ExplodeResourceRequest$outboundSchema` instead. */
    ExplodeResourceRequest$.outboundSchema = exports.ExplodeResourceRequest$outboundSchema;
})(ExplodeResourceRequest$ || (exports.ExplodeResourceRequest$ = ExplodeResourceRequest$ = {}));
function explodeResourceRequestToJSON(explodeResourceRequest) {
    return JSON.stringify(exports.ExplodeResourceRequest$outboundSchema.parse(explodeResourceRequest));
}
function explodeResourceRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ExplodeResourceRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExplodeResourceRequest' from JSON`);
}
/** @internal */
exports.Status$inboundSchema = z
    .nativeEnum(exports.Status);
/** @internal */
exports.Status$outboundSchema = exports.Status$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var Status$;
(function (Status$) {
    /** @deprecated use `Status$inboundSchema` instead. */
    Status$.inboundSchema = exports.Status$inboundSchema;
    /** @deprecated use `Status$outboundSchema` instead. */
    Status$.outboundSchema = exports.Status$outboundSchema;
})(Status$ || (exports.Status$ = Status$ = {}));
/** @internal */
exports.ExplodeResourceResponse$inboundSchema = z.object({
    status: exports.Status$inboundSchema.optional(),
    batch_id: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "batch_id": "batchId",
    });
});
/** @internal */
exports.ExplodeResourceResponse$outboundSchema = z.object({
    status: exports.Status$outboundSchema.optional(),
    batchId: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        batchId: "batch_id",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ExplodeResourceResponse$;
(function (ExplodeResourceResponse$) {
    /** @deprecated use `ExplodeResourceResponse$inboundSchema` instead. */
    ExplodeResourceResponse$.inboundSchema = exports.ExplodeResourceResponse$inboundSchema;
    /** @deprecated use `ExplodeResourceResponse$outboundSchema` instead. */
    ExplodeResourceResponse$.outboundSchema = exports.ExplodeResourceResponse$outboundSchema;
})(ExplodeResourceResponse$ || (exports.ExplodeResourceResponse$ = ExplodeResourceResponse$ = {}));
function explodeResourceResponseToJSON(explodeResourceResponse) {
    return JSON.stringify(exports.ExplodeResourceResponse$outboundSchema.parse(explodeResourceResponse));
}
function explodeResourceResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ExplodeResourceResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ExplodeResourceResponse' from JSON`);
}
//# sourceMappingURL=exploderesource.js.map