"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.DeleteAssetRelationsByAssetIdRequest$ = exports.DeleteAssetRelationsByAssetIdRequest$outboundSchema = exports.DeleteAssetRelationsByAssetIdRequest$inboundSchema = exports.DeleteAssetRelationsByAssetIdRequestBody$ = exports.DeleteAssetRelationsByAssetIdRequestBody$outboundSchema = exports.DeleteAssetRelationsByAssetIdRequestBody$inboundSchema = exports.DeleteAssetRelationsByAssetIdGlobals$ = exports.DeleteAssetRelationsByAssetIdGlobals$outboundSchema = exports.DeleteAssetRelationsByAssetIdGlobals$inboundSchema = void 0;
exports.deleteAssetRelationsByAssetIdGlobalsToJSON = deleteAssetRelationsByAssetIdGlobalsToJSON;
exports.deleteAssetRelationsByAssetIdGlobalsFromJSON = deleteAssetRelationsByAssetIdGlobalsFromJSON;
exports.deleteAssetRelationsByAssetIdRequestBodyToJSON = deleteAssetRelationsByAssetIdRequestBodyToJSON;
exports.deleteAssetRelationsByAssetIdRequestBodyFromJSON = deleteAssetRelationsByAssetIdRequestBodyFromJSON;
exports.deleteAssetRelationsByAssetIdRequestToJSON = deleteAssetRelationsByAssetIdRequestToJSON;
exports.deleteAssetRelationsByAssetIdRequestFromJSON = deleteAssetRelationsByAssetIdRequestFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
/** @internal */
exports.DeleteAssetRelationsByAssetIdGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
exports.DeleteAssetRelationsByAssetIdGlobals$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 DeleteAssetRelationsByAssetIdGlobals$;
(function (DeleteAssetRelationsByAssetIdGlobals$) {
    /** @deprecated use `DeleteAssetRelationsByAssetIdGlobals$inboundSchema` instead. */
    DeleteAssetRelationsByAssetIdGlobals$.inboundSchema = exports.DeleteAssetRelationsByAssetIdGlobals$inboundSchema;
    /** @deprecated use `DeleteAssetRelationsByAssetIdGlobals$outboundSchema` instead. */
    DeleteAssetRelationsByAssetIdGlobals$.outboundSchema = exports.DeleteAssetRelationsByAssetIdGlobals$outboundSchema;
})(DeleteAssetRelationsByAssetIdGlobals$ || (exports.DeleteAssetRelationsByAssetIdGlobals$ = DeleteAssetRelationsByAssetIdGlobals$ = {}));
function deleteAssetRelationsByAssetIdGlobalsToJSON(deleteAssetRelationsByAssetIdGlobals) {
    return JSON.stringify(exports.DeleteAssetRelationsByAssetIdGlobals$outboundSchema.parse(deleteAssetRelationsByAssetIdGlobals));
}
function deleteAssetRelationsByAssetIdGlobalsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeleteAssetRelationsByAssetIdGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteAssetRelationsByAssetIdGlobals' from JSON`);
}
/** @internal */
exports.DeleteAssetRelationsByAssetIdRequestBody$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.DeleteAssetRelationsByAssetIdRequestBody$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 DeleteAssetRelationsByAssetIdRequestBody$;
(function (DeleteAssetRelationsByAssetIdRequestBody$) {
    /** @deprecated use `DeleteAssetRelationsByAssetIdRequestBody$inboundSchema` instead. */
    DeleteAssetRelationsByAssetIdRequestBody$.inboundSchema = exports.DeleteAssetRelationsByAssetIdRequestBody$inboundSchema;
    /** @deprecated use `DeleteAssetRelationsByAssetIdRequestBody$outboundSchema` instead. */
    DeleteAssetRelationsByAssetIdRequestBody$.outboundSchema = exports.DeleteAssetRelationsByAssetIdRequestBody$outboundSchema;
})(DeleteAssetRelationsByAssetIdRequestBody$ || (exports.DeleteAssetRelationsByAssetIdRequestBody$ = DeleteAssetRelationsByAssetIdRequestBody$ = {}));
function deleteAssetRelationsByAssetIdRequestBodyToJSON(deleteAssetRelationsByAssetIdRequestBody) {
    return JSON.stringify(exports.DeleteAssetRelationsByAssetIdRequestBody$outboundSchema.parse(deleteAssetRelationsByAssetIdRequestBody));
}
function deleteAssetRelationsByAssetIdRequestBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeleteAssetRelationsByAssetIdRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteAssetRelationsByAssetIdRequestBody' from JSON`);
}
/** @internal */
exports.DeleteAssetRelationsByAssetIdRequest$inboundSchema = z.object({
    asset_id: z.string(),
    RequestBody: z.lazy(() => exports.DeleteAssetRelationsByAssetIdRequestBody$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "asset_id": "assetId",
        "RequestBody": "requestBody",
    });
});
/** @internal */
exports.DeleteAssetRelationsByAssetIdRequest$outboundSchema = z.object({
    assetId: z.string(),
    requestBody: z.lazy(() => exports.DeleteAssetRelationsByAssetIdRequestBody$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        assetId: "asset_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 DeleteAssetRelationsByAssetIdRequest$;
(function (DeleteAssetRelationsByAssetIdRequest$) {
    /** @deprecated use `DeleteAssetRelationsByAssetIdRequest$inboundSchema` instead. */
    DeleteAssetRelationsByAssetIdRequest$.inboundSchema = exports.DeleteAssetRelationsByAssetIdRequest$inboundSchema;
    /** @deprecated use `DeleteAssetRelationsByAssetIdRequest$outboundSchema` instead. */
    DeleteAssetRelationsByAssetIdRequest$.outboundSchema = exports.DeleteAssetRelationsByAssetIdRequest$outboundSchema;
})(DeleteAssetRelationsByAssetIdRequest$ || (exports.DeleteAssetRelationsByAssetIdRequest$ = DeleteAssetRelationsByAssetIdRequest$ = {}));
function deleteAssetRelationsByAssetIdRequestToJSON(deleteAssetRelationsByAssetIdRequest) {
    return JSON.stringify(exports.DeleteAssetRelationsByAssetIdRequest$outboundSchema.parse(deleteAssetRelationsByAssetIdRequest));
}
function deleteAssetRelationsByAssetIdRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeleteAssetRelationsByAssetIdRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteAssetRelationsByAssetIdRequest' from JSON`);
}
//# sourceMappingURL=deleteassetrelationsbyassetid.js.map