"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.DeleteAssetRelationsByPublicIdRequest$ = exports.DeleteAssetRelationsByPublicIdRequest$outboundSchema = exports.DeleteAssetRelationsByPublicIdRequest$inboundSchema = exports.DeleteAssetRelationsByPublicIdRequestBody$ = exports.DeleteAssetRelationsByPublicIdRequestBody$outboundSchema = exports.DeleteAssetRelationsByPublicIdRequestBody$inboundSchema = exports.DeleteAssetRelationsByPublicIdType$ = exports.DeleteAssetRelationsByPublicIdType$outboundSchema = exports.DeleteAssetRelationsByPublicIdType$inboundSchema = exports.DeleteAssetRelationsByPublicIdGlobals$ = exports.DeleteAssetRelationsByPublicIdGlobals$outboundSchema = exports.DeleteAssetRelationsByPublicIdGlobals$inboundSchema = exports.DeleteAssetRelationsByPublicIdType = void 0;
exports.deleteAssetRelationsByPublicIdGlobalsToJSON = deleteAssetRelationsByPublicIdGlobalsToJSON;
exports.deleteAssetRelationsByPublicIdGlobalsFromJSON = deleteAssetRelationsByPublicIdGlobalsFromJSON;
exports.deleteAssetRelationsByPublicIdRequestBodyToJSON = deleteAssetRelationsByPublicIdRequestBodyToJSON;
exports.deleteAssetRelationsByPublicIdRequestBodyFromJSON = deleteAssetRelationsByPublicIdRequestBodyFromJSON;
exports.deleteAssetRelationsByPublicIdRequestToJSON = deleteAssetRelationsByPublicIdRequestToJSON;
exports.deleteAssetRelationsByPublicIdRequestFromJSON = deleteAssetRelationsByPublicIdRequestFromJSON;
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.DeleteAssetRelationsByPublicIdType = {
    Upload: "upload",
    Private: "private",
    Authenticated: "authenticated",
};
/** @internal */
exports.DeleteAssetRelationsByPublicIdGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
exports.DeleteAssetRelationsByPublicIdGlobals$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 DeleteAssetRelationsByPublicIdGlobals$;
(function (DeleteAssetRelationsByPublicIdGlobals$) {
    /** @deprecated use `DeleteAssetRelationsByPublicIdGlobals$inboundSchema` instead. */
    DeleteAssetRelationsByPublicIdGlobals$.inboundSchema = exports.DeleteAssetRelationsByPublicIdGlobals$inboundSchema;
    /** @deprecated use `DeleteAssetRelationsByPublicIdGlobals$outboundSchema` instead. */
    DeleteAssetRelationsByPublicIdGlobals$.outboundSchema = exports.DeleteAssetRelationsByPublicIdGlobals$outboundSchema;
})(DeleteAssetRelationsByPublicIdGlobals$ || (exports.DeleteAssetRelationsByPublicIdGlobals$ = DeleteAssetRelationsByPublicIdGlobals$ = {}));
function deleteAssetRelationsByPublicIdGlobalsToJSON(deleteAssetRelationsByPublicIdGlobals) {
    return JSON.stringify(exports.DeleteAssetRelationsByPublicIdGlobals$outboundSchema.parse(deleteAssetRelationsByPublicIdGlobals));
}
function deleteAssetRelationsByPublicIdGlobalsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeleteAssetRelationsByPublicIdGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteAssetRelationsByPublicIdGlobals' from JSON`);
}
/** @internal */
exports.DeleteAssetRelationsByPublicIdType$inboundSchema = z.nativeEnum(exports.DeleteAssetRelationsByPublicIdType);
/** @internal */
exports.DeleteAssetRelationsByPublicIdType$outboundSchema = exports.DeleteAssetRelationsByPublicIdType$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var DeleteAssetRelationsByPublicIdType$;
(function (DeleteAssetRelationsByPublicIdType$) {
    /** @deprecated use `DeleteAssetRelationsByPublicIdType$inboundSchema` instead. */
    DeleteAssetRelationsByPublicIdType$.inboundSchema = exports.DeleteAssetRelationsByPublicIdType$inboundSchema;
    /** @deprecated use `DeleteAssetRelationsByPublicIdType$outboundSchema` instead. */
    DeleteAssetRelationsByPublicIdType$.outboundSchema = exports.DeleteAssetRelationsByPublicIdType$outboundSchema;
})(DeleteAssetRelationsByPublicIdType$ || (exports.DeleteAssetRelationsByPublicIdType$ = DeleteAssetRelationsByPublicIdType$ = {}));
/** @internal */
exports.DeleteAssetRelationsByPublicIdRequestBody$inboundSchema = z.object({
    assets_to_unrelate: z.array(z.string()),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "assets_to_unrelate": "assetsToUnrelate",
    });
});
/** @internal */
exports.DeleteAssetRelationsByPublicIdRequestBody$outboundSchema = z.object({
    assetsToUnrelate: z.array(z.string()),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        assetsToUnrelate: "assets_to_unrelate",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var DeleteAssetRelationsByPublicIdRequestBody$;
(function (DeleteAssetRelationsByPublicIdRequestBody$) {
    /** @deprecated use `DeleteAssetRelationsByPublicIdRequestBody$inboundSchema` instead. */
    DeleteAssetRelationsByPublicIdRequestBody$.inboundSchema = exports.DeleteAssetRelationsByPublicIdRequestBody$inboundSchema;
    /** @deprecated use `DeleteAssetRelationsByPublicIdRequestBody$outboundSchema` instead. */
    DeleteAssetRelationsByPublicIdRequestBody$.outboundSchema = exports.DeleteAssetRelationsByPublicIdRequestBody$outboundSchema;
})(DeleteAssetRelationsByPublicIdRequestBody$ || (exports.DeleteAssetRelationsByPublicIdRequestBody$ = DeleteAssetRelationsByPublicIdRequestBody$ = {}));
function deleteAssetRelationsByPublicIdRequestBodyToJSON(deleteAssetRelationsByPublicIdRequestBody) {
    return JSON.stringify(exports.DeleteAssetRelationsByPublicIdRequestBody$outboundSchema.parse(deleteAssetRelationsByPublicIdRequestBody));
}
function deleteAssetRelationsByPublicIdRequestBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeleteAssetRelationsByPublicIdRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteAssetRelationsByPublicIdRequestBody' from JSON`);
}
/** @internal */
exports.DeleteAssetRelationsByPublicIdRequest$inboundSchema = z.object({
    resource_type: components.ResourceTypeParameter$inboundSchema,
    type: exports.DeleteAssetRelationsByPublicIdType$inboundSchema.default("upload"),
    public_id: z.string(),
    RequestBody: z.lazy(() => exports.DeleteAssetRelationsByPublicIdRequestBody$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "resource_type": "resourceType",
        "public_id": "publicId",
        "RequestBody": "requestBody",
    });
});
/** @internal */
exports.DeleteAssetRelationsByPublicIdRequest$outboundSchema = z.object({
    resourceType: components.ResourceTypeParameter$outboundSchema,
    type: exports.DeleteAssetRelationsByPublicIdType$outboundSchema.default("upload"),
    publicId: z.string(),
    requestBody: z.lazy(() => exports.DeleteAssetRelationsByPublicIdRequestBody$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        resourceType: "resource_type",
        publicId: "public_id",
        requestBody: "RequestBody",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var DeleteAssetRelationsByPublicIdRequest$;
(function (DeleteAssetRelationsByPublicIdRequest$) {
    /** @deprecated use `DeleteAssetRelationsByPublicIdRequest$inboundSchema` instead. */
    DeleteAssetRelationsByPublicIdRequest$.inboundSchema = exports.DeleteAssetRelationsByPublicIdRequest$inboundSchema;
    /** @deprecated use `DeleteAssetRelationsByPublicIdRequest$outboundSchema` instead. */
    DeleteAssetRelationsByPublicIdRequest$.outboundSchema = exports.DeleteAssetRelationsByPublicIdRequest$outboundSchema;
})(DeleteAssetRelationsByPublicIdRequest$ || (exports.DeleteAssetRelationsByPublicIdRequest$ = DeleteAssetRelationsByPublicIdRequest$ = {}));
function deleteAssetRelationsByPublicIdRequestToJSON(deleteAssetRelationsByPublicIdRequest) {
    return JSON.stringify(exports.DeleteAssetRelationsByPublicIdRequest$outboundSchema.parse(deleteAssetRelationsByPublicIdRequest));
}
function deleteAssetRelationsByPublicIdRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeleteAssetRelationsByPublicIdRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteAssetRelationsByPublicIdRequest' from JSON`);
}
//# sourceMappingURL=deleteassetrelationsbypublicid.js.map