"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.CreateAssetRelationsByAssetIdRequest$ = exports.CreateAssetRelationsByAssetIdRequest$outboundSchema = exports.CreateAssetRelationsByAssetIdRequest$inboundSchema = exports.CreateAssetRelationsByAssetIdRequestBody$ = exports.CreateAssetRelationsByAssetIdRequestBody$outboundSchema = exports.CreateAssetRelationsByAssetIdRequestBody$inboundSchema = exports.CreateAssetRelationsByAssetIdGlobals$ = exports.CreateAssetRelationsByAssetIdGlobals$outboundSchema = exports.CreateAssetRelationsByAssetIdGlobals$inboundSchema = void 0;
exports.createAssetRelationsByAssetIdGlobalsToJSON = createAssetRelationsByAssetIdGlobalsToJSON;
exports.createAssetRelationsByAssetIdGlobalsFromJSON = createAssetRelationsByAssetIdGlobalsFromJSON;
exports.createAssetRelationsByAssetIdRequestBodyToJSON = createAssetRelationsByAssetIdRequestBodyToJSON;
exports.createAssetRelationsByAssetIdRequestBodyFromJSON = createAssetRelationsByAssetIdRequestBodyFromJSON;
exports.createAssetRelationsByAssetIdRequestToJSON = createAssetRelationsByAssetIdRequestToJSON;
exports.createAssetRelationsByAssetIdRequestFromJSON = createAssetRelationsByAssetIdRequestFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
/** @internal */
exports.CreateAssetRelationsByAssetIdGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
exports.CreateAssetRelationsByAssetIdGlobals$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 CreateAssetRelationsByAssetIdGlobals$;
(function (CreateAssetRelationsByAssetIdGlobals$) {
    /** @deprecated use `CreateAssetRelationsByAssetIdGlobals$inboundSchema` instead. */
    CreateAssetRelationsByAssetIdGlobals$.inboundSchema = exports.CreateAssetRelationsByAssetIdGlobals$inboundSchema;
    /** @deprecated use `CreateAssetRelationsByAssetIdGlobals$outboundSchema` instead. */
    CreateAssetRelationsByAssetIdGlobals$.outboundSchema = exports.CreateAssetRelationsByAssetIdGlobals$outboundSchema;
})(CreateAssetRelationsByAssetIdGlobals$ || (exports.CreateAssetRelationsByAssetIdGlobals$ = CreateAssetRelationsByAssetIdGlobals$ = {}));
function createAssetRelationsByAssetIdGlobalsToJSON(createAssetRelationsByAssetIdGlobals) {
    return JSON.stringify(exports.CreateAssetRelationsByAssetIdGlobals$outboundSchema.parse(createAssetRelationsByAssetIdGlobals));
}
function createAssetRelationsByAssetIdGlobalsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateAssetRelationsByAssetIdGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateAssetRelationsByAssetIdGlobals' from JSON`);
}
/** @internal */
exports.CreateAssetRelationsByAssetIdRequestBody$inboundSchema = z.object({
    assets_to_relate: z.array(z.string()),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "assets_to_relate": "assetsToRelate",
    });
});
/** @internal */
exports.CreateAssetRelationsByAssetIdRequestBody$outboundSchema = z.object({
    assetsToRelate: z.array(z.string()),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        assetsToRelate: "assets_to_relate",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var CreateAssetRelationsByAssetIdRequestBody$;
(function (CreateAssetRelationsByAssetIdRequestBody$) {
    /** @deprecated use `CreateAssetRelationsByAssetIdRequestBody$inboundSchema` instead. */
    CreateAssetRelationsByAssetIdRequestBody$.inboundSchema = exports.CreateAssetRelationsByAssetIdRequestBody$inboundSchema;
    /** @deprecated use `CreateAssetRelationsByAssetIdRequestBody$outboundSchema` instead. */
    CreateAssetRelationsByAssetIdRequestBody$.outboundSchema = exports.CreateAssetRelationsByAssetIdRequestBody$outboundSchema;
})(CreateAssetRelationsByAssetIdRequestBody$ || (exports.CreateAssetRelationsByAssetIdRequestBody$ = CreateAssetRelationsByAssetIdRequestBody$ = {}));
function createAssetRelationsByAssetIdRequestBodyToJSON(createAssetRelationsByAssetIdRequestBody) {
    return JSON.stringify(exports.CreateAssetRelationsByAssetIdRequestBody$outboundSchema.parse(createAssetRelationsByAssetIdRequestBody));
}
function createAssetRelationsByAssetIdRequestBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateAssetRelationsByAssetIdRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateAssetRelationsByAssetIdRequestBody' from JSON`);
}
/** @internal */
exports.CreateAssetRelationsByAssetIdRequest$inboundSchema = z.object({
    asset_id: z.string(),
    RequestBody: z.lazy(() => exports.CreateAssetRelationsByAssetIdRequestBody$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "asset_id": "assetId",
        "RequestBody": "requestBody",
    });
});
/** @internal */
exports.CreateAssetRelationsByAssetIdRequest$outboundSchema = z.object({
    assetId: z.string(),
    requestBody: z.lazy(() => exports.CreateAssetRelationsByAssetIdRequestBody$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 CreateAssetRelationsByAssetIdRequest$;
(function (CreateAssetRelationsByAssetIdRequest$) {
    /** @deprecated use `CreateAssetRelationsByAssetIdRequest$inboundSchema` instead. */
    CreateAssetRelationsByAssetIdRequest$.inboundSchema = exports.CreateAssetRelationsByAssetIdRequest$inboundSchema;
    /** @deprecated use `CreateAssetRelationsByAssetIdRequest$outboundSchema` instead. */
    CreateAssetRelationsByAssetIdRequest$.outboundSchema = exports.CreateAssetRelationsByAssetIdRequest$outboundSchema;
})(CreateAssetRelationsByAssetIdRequest$ || (exports.CreateAssetRelationsByAssetIdRequest$ = CreateAssetRelationsByAssetIdRequest$ = {}));
function createAssetRelationsByAssetIdRequestToJSON(createAssetRelationsByAssetIdRequest) {
    return JSON.stringify(exports.CreateAssetRelationsByAssetIdRequest$outboundSchema.parse(createAssetRelationsByAssetIdRequest));
}
function createAssetRelationsByAssetIdRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateAssetRelationsByAssetIdRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateAssetRelationsByAssetIdRequest' from JSON`);
}
//# sourceMappingURL=createassetrelationsbyassetid.js.map