"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.UpdateResourceByPublicIdRequest$ = exports.UpdateResourceByPublicIdRequest$outboundSchema = exports.UpdateResourceByPublicIdRequest$inboundSchema = exports.UpdateResourceByPublicIdType$ = exports.UpdateResourceByPublicIdType$outboundSchema = exports.UpdateResourceByPublicIdType$inboundSchema = exports.UpdateResourceByPublicIdGlobals$ = exports.UpdateResourceByPublicIdGlobals$outboundSchema = exports.UpdateResourceByPublicIdGlobals$inboundSchema = exports.UpdateResourceByPublicIdType = void 0;
exports.updateResourceByPublicIdGlobalsToJSON = updateResourceByPublicIdGlobalsToJSON;
exports.updateResourceByPublicIdGlobalsFromJSON = updateResourceByPublicIdGlobalsFromJSON;
exports.updateResourceByPublicIdRequestToJSON = updateResourceByPublicIdRequestToJSON;
exports.updateResourceByPublicIdRequestFromJSON = updateResourceByPublicIdRequestFromJSON;
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.UpdateResourceByPublicIdType = {
    Upload: "upload",
    Private: "private",
    Authenticated: "authenticated",
    Facebook: "facebook",
    Twitter: "twitter",
    Gravatar: "gravatar",
    Youtube: "youtube",
    Hulu: "hulu",
    Vimeo: "vimeo",
    Animoto: "animoto",
    Worldstarhiphop: "worldstarhiphop",
    Dailymotion: "dailymotion",
};
/** @internal */
exports.UpdateResourceByPublicIdGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
exports.UpdateResourceByPublicIdGlobals$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 UpdateResourceByPublicIdGlobals$;
(function (UpdateResourceByPublicIdGlobals$) {
    /** @deprecated use `UpdateResourceByPublicIdGlobals$inboundSchema` instead. */
    UpdateResourceByPublicIdGlobals$.inboundSchema = exports.UpdateResourceByPublicIdGlobals$inboundSchema;
    /** @deprecated use `UpdateResourceByPublicIdGlobals$outboundSchema` instead. */
    UpdateResourceByPublicIdGlobals$.outboundSchema = exports.UpdateResourceByPublicIdGlobals$outboundSchema;
})(UpdateResourceByPublicIdGlobals$ || (exports.UpdateResourceByPublicIdGlobals$ = UpdateResourceByPublicIdGlobals$ = {}));
function updateResourceByPublicIdGlobalsToJSON(updateResourceByPublicIdGlobals) {
    return JSON.stringify(exports.UpdateResourceByPublicIdGlobals$outboundSchema.parse(updateResourceByPublicIdGlobals));
}
function updateResourceByPublicIdGlobalsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateResourceByPublicIdGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateResourceByPublicIdGlobals' from JSON`);
}
/** @internal */
exports.UpdateResourceByPublicIdType$inboundSchema = z.nativeEnum(exports.UpdateResourceByPublicIdType);
/** @internal */
exports.UpdateResourceByPublicIdType$outboundSchema = exports.UpdateResourceByPublicIdType$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var UpdateResourceByPublicIdType$;
(function (UpdateResourceByPublicIdType$) {
    /** @deprecated use `UpdateResourceByPublicIdType$inboundSchema` instead. */
    UpdateResourceByPublicIdType$.inboundSchema = exports.UpdateResourceByPublicIdType$inboundSchema;
    /** @deprecated use `UpdateResourceByPublicIdType$outboundSchema` instead. */
    UpdateResourceByPublicIdType$.outboundSchema = exports.UpdateResourceByPublicIdType$outboundSchema;
})(UpdateResourceByPublicIdType$ || (exports.UpdateResourceByPublicIdType$ = UpdateResourceByPublicIdType$ = {}));
/** @internal */
exports.UpdateResourceByPublicIdRequest$inboundSchema = z.object({
    resource_type: components.ResourceTypeParameter$inboundSchema,
    type: exports.UpdateResourceByPublicIdType$inboundSchema,
    public_id: z.string(),
    ResourceUpdateRequest: components.ResourceUpdateRequest$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "resource_type": "resourceType",
        "public_id": "publicId",
        "ResourceUpdateRequest": "resourceUpdateRequest",
    });
});
/** @internal */
exports.UpdateResourceByPublicIdRequest$outboundSchema = z.object({
    resourceType: components.ResourceTypeParameter$outboundSchema,
    type: exports.UpdateResourceByPublicIdType$outboundSchema,
    publicId: z.string(),
    resourceUpdateRequest: components.ResourceUpdateRequest$outboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        resourceType: "resource_type",
        publicId: "public_id",
        resourceUpdateRequest: "ResourceUpdateRequest",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var UpdateResourceByPublicIdRequest$;
(function (UpdateResourceByPublicIdRequest$) {
    /** @deprecated use `UpdateResourceByPublicIdRequest$inboundSchema` instead. */
    UpdateResourceByPublicIdRequest$.inboundSchema = exports.UpdateResourceByPublicIdRequest$inboundSchema;
    /** @deprecated use `UpdateResourceByPublicIdRequest$outboundSchema` instead. */
    UpdateResourceByPublicIdRequest$.outboundSchema = exports.UpdateResourceByPublicIdRequest$outboundSchema;
})(UpdateResourceByPublicIdRequest$ || (exports.UpdateResourceByPublicIdRequest$ = UpdateResourceByPublicIdRequest$ = {}));
function updateResourceByPublicIdRequestToJSON(updateResourceByPublicIdRequest) {
    return JSON.stringify(exports.UpdateResourceByPublicIdRequest$outboundSchema.parse(updateResourceByPublicIdRequest));
}
function updateResourceByPublicIdRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateResourceByPublicIdRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateResourceByPublicIdRequest' from JSON`);
}
//# sourceMappingURL=updateresourcebypublicid.js.map