"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.DeleteResourcesByPublicIdResponse$ = exports.DeleteResourcesByPublicIdResponse$outboundSchema = exports.DeleteResourcesByPublicIdResponse$inboundSchema = exports.DeleteResourcesByPublicIdRequest$ = exports.DeleteResourcesByPublicIdRequest$outboundSchema = exports.DeleteResourcesByPublicIdRequest$inboundSchema = exports.DeleteResourcesByPublicIdType$ = exports.DeleteResourcesByPublicIdType$outboundSchema = exports.DeleteResourcesByPublicIdType$inboundSchema = exports.DeleteResourcesByPublicIdGlobals$ = exports.DeleteResourcesByPublicIdGlobals$outboundSchema = exports.DeleteResourcesByPublicIdGlobals$inboundSchema = exports.DeleteResourcesByPublicIdType = void 0;
exports.deleteResourcesByPublicIdGlobalsToJSON = deleteResourcesByPublicIdGlobalsToJSON;
exports.deleteResourcesByPublicIdGlobalsFromJSON = deleteResourcesByPublicIdGlobalsFromJSON;
exports.deleteResourcesByPublicIdRequestToJSON = deleteResourcesByPublicIdRequestToJSON;
exports.deleteResourcesByPublicIdRequestFromJSON = deleteResourcesByPublicIdRequestFromJSON;
exports.deleteResourcesByPublicIdResponseToJSON = deleteResourcesByPublicIdResponseToJSON;
exports.deleteResourcesByPublicIdResponseFromJSON = deleteResourcesByPublicIdResponseFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
const components = __importStar(require("../components/index.js"));
/**
 * The delivery type of the asset.
 */
exports.DeleteResourcesByPublicIdType = {
    Upload: "upload",
    Private: "private",
    Authenticated: "authenticated",
    Fetch: "fetch",
    Facebook: "facebook",
    Twitter: "twitter",
    Gravatar: "gravatar",
    Youtube: "youtube",
    Hulu: "hulu",
    Vimeo: "vimeo",
    Animoto: "animoto",
    Worldstarhiphop: "worldstarhiphop",
    Dailymotion: "dailymotion",
    List: "list",
};
/** @internal */
exports.DeleteResourcesByPublicIdGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
exports.DeleteResourcesByPublicIdGlobals$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 DeleteResourcesByPublicIdGlobals$;
(function (DeleteResourcesByPublicIdGlobals$) {
    /** @deprecated use `DeleteResourcesByPublicIdGlobals$inboundSchema` instead. */
    DeleteResourcesByPublicIdGlobals$.inboundSchema = exports.DeleteResourcesByPublicIdGlobals$inboundSchema;
    /** @deprecated use `DeleteResourcesByPublicIdGlobals$outboundSchema` instead. */
    DeleteResourcesByPublicIdGlobals$.outboundSchema = exports.DeleteResourcesByPublicIdGlobals$outboundSchema;
})(DeleteResourcesByPublicIdGlobals$ || (exports.DeleteResourcesByPublicIdGlobals$ = DeleteResourcesByPublicIdGlobals$ = {}));
function deleteResourcesByPublicIdGlobalsToJSON(deleteResourcesByPublicIdGlobals) {
    return JSON.stringify(exports.DeleteResourcesByPublicIdGlobals$outboundSchema.parse(deleteResourcesByPublicIdGlobals));
}
function deleteResourcesByPublicIdGlobalsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeleteResourcesByPublicIdGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteResourcesByPublicIdGlobals' from JSON`);
}
/** @internal */
exports.DeleteResourcesByPublicIdType$inboundSchema = z.nativeEnum(exports.DeleteResourcesByPublicIdType);
/** @internal */
exports.DeleteResourcesByPublicIdType$outboundSchema = exports.DeleteResourcesByPublicIdType$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var DeleteResourcesByPublicIdType$;
(function (DeleteResourcesByPublicIdType$) {
    /** @deprecated use `DeleteResourcesByPublicIdType$inboundSchema` instead. */
    DeleteResourcesByPublicIdType$.inboundSchema = exports.DeleteResourcesByPublicIdType$inboundSchema;
    /** @deprecated use `DeleteResourcesByPublicIdType$outboundSchema` instead. */
    DeleteResourcesByPublicIdType$.outboundSchema = exports.DeleteResourcesByPublicIdType$outboundSchema;
})(DeleteResourcesByPublicIdType$ || (exports.DeleteResourcesByPublicIdType$ = DeleteResourcesByPublicIdType$ = {}));
/** @internal */
exports.DeleteResourcesByPublicIdRequest$inboundSchema = z.object({
    resource_type: components.ResourceTypeParameter$inboundSchema,
    type: exports.DeleteResourcesByPublicIdType$inboundSchema,
    DeleteResourceByPublicIdsRequest: components.DeleteResourceByPublicIdsRequestUnion$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "resource_type": "resourceType",
        "DeleteResourceByPublicIdsRequest": "deleteResourceByPublicIdsRequest",
    });
});
/** @internal */
exports.DeleteResourcesByPublicIdRequest$outboundSchema = z.object({
    resourceType: components.ResourceTypeParameter$outboundSchema,
    type: exports.DeleteResourcesByPublicIdType$outboundSchema,
    deleteResourceByPublicIdsRequest: components.DeleteResourceByPublicIdsRequestUnion$outboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        resourceType: "resource_type",
        deleteResourceByPublicIdsRequest: "DeleteResourceByPublicIdsRequest",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var DeleteResourcesByPublicIdRequest$;
(function (DeleteResourcesByPublicIdRequest$) {
    /** @deprecated use `DeleteResourcesByPublicIdRequest$inboundSchema` instead. */
    DeleteResourcesByPublicIdRequest$.inboundSchema = exports.DeleteResourcesByPublicIdRequest$inboundSchema;
    /** @deprecated use `DeleteResourcesByPublicIdRequest$outboundSchema` instead. */
    DeleteResourcesByPublicIdRequest$.outboundSchema = exports.DeleteResourcesByPublicIdRequest$outboundSchema;
})(DeleteResourcesByPublicIdRequest$ || (exports.DeleteResourcesByPublicIdRequest$ = DeleteResourcesByPublicIdRequest$ = {}));
function deleteResourcesByPublicIdRequestToJSON(deleteResourcesByPublicIdRequest) {
    return JSON.stringify(exports.DeleteResourcesByPublicIdRequest$outboundSchema.parse(deleteResourcesByPublicIdRequest));
}
function deleteResourcesByPublicIdRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeleteResourcesByPublicIdRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteResourcesByPublicIdRequest' from JSON`);
}
/** @internal */
exports.DeleteResourcesByPublicIdResponse$inboundSchema = z.object({});
/** @internal */
exports.DeleteResourcesByPublicIdResponse$outboundSchema = z.object({});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var DeleteResourcesByPublicIdResponse$;
(function (DeleteResourcesByPublicIdResponse$) {
    /** @deprecated use `DeleteResourcesByPublicIdResponse$inboundSchema` instead. */
    DeleteResourcesByPublicIdResponse$.inboundSchema = exports.DeleteResourcesByPublicIdResponse$inboundSchema;
    /** @deprecated use `DeleteResourcesByPublicIdResponse$outboundSchema` instead. */
    DeleteResourcesByPublicIdResponse$.outboundSchema = exports.DeleteResourcesByPublicIdResponse$outboundSchema;
})(DeleteResourcesByPublicIdResponse$ || (exports.DeleteResourcesByPublicIdResponse$ = DeleteResourcesByPublicIdResponse$ = {}));
function deleteResourcesByPublicIdResponseToJSON(deleteResourcesByPublicIdResponse) {
    return JSON.stringify(exports.DeleteResourcesByPublicIdResponse$outboundSchema.parse(deleteResourcesByPublicIdResponse));
}
function deleteResourcesByPublicIdResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeleteResourcesByPublicIdResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteResourcesByPublicIdResponse' from JSON`);
}
//# sourceMappingURL=deleteresourcesbypublicid.js.map