/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const CreateAssetRelationsByAssetIdGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const CreateAssetRelationsByAssetIdGlobals$outboundSchema = z.object({
    cloudName: z.string().optional(),
}).transform((v) => {
    return 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.
 */
export var CreateAssetRelationsByAssetIdGlobals$;
(function (CreateAssetRelationsByAssetIdGlobals$) {
    /** @deprecated use `CreateAssetRelationsByAssetIdGlobals$inboundSchema` instead. */
    CreateAssetRelationsByAssetIdGlobals$.inboundSchema = CreateAssetRelationsByAssetIdGlobals$inboundSchema;
    /** @deprecated use `CreateAssetRelationsByAssetIdGlobals$outboundSchema` instead. */
    CreateAssetRelationsByAssetIdGlobals$.outboundSchema = CreateAssetRelationsByAssetIdGlobals$outboundSchema;
})(CreateAssetRelationsByAssetIdGlobals$ || (CreateAssetRelationsByAssetIdGlobals$ = {}));
export function createAssetRelationsByAssetIdGlobalsToJSON(createAssetRelationsByAssetIdGlobals) {
    return JSON.stringify(CreateAssetRelationsByAssetIdGlobals$outboundSchema.parse(createAssetRelationsByAssetIdGlobals));
}
export function createAssetRelationsByAssetIdGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateAssetRelationsByAssetIdGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateAssetRelationsByAssetIdGlobals' from JSON`);
}
/** @internal */
export const CreateAssetRelationsByAssetIdRequestBody$inboundSchema = z.object({
    assets_to_relate: z.array(z.string()),
}).transform((v) => {
    return remap$(v, {
        "assets_to_relate": "assetsToRelate",
    });
});
/** @internal */
export const CreateAssetRelationsByAssetIdRequestBody$outboundSchema = z.object({
    assetsToRelate: z.array(z.string()),
}).transform((v) => {
    return 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.
 */
export var CreateAssetRelationsByAssetIdRequestBody$;
(function (CreateAssetRelationsByAssetIdRequestBody$) {
    /** @deprecated use `CreateAssetRelationsByAssetIdRequestBody$inboundSchema` instead. */
    CreateAssetRelationsByAssetIdRequestBody$.inboundSchema = CreateAssetRelationsByAssetIdRequestBody$inboundSchema;
    /** @deprecated use `CreateAssetRelationsByAssetIdRequestBody$outboundSchema` instead. */
    CreateAssetRelationsByAssetIdRequestBody$.outboundSchema = CreateAssetRelationsByAssetIdRequestBody$outboundSchema;
})(CreateAssetRelationsByAssetIdRequestBody$ || (CreateAssetRelationsByAssetIdRequestBody$ = {}));
export function createAssetRelationsByAssetIdRequestBodyToJSON(createAssetRelationsByAssetIdRequestBody) {
    return JSON.stringify(CreateAssetRelationsByAssetIdRequestBody$outboundSchema.parse(createAssetRelationsByAssetIdRequestBody));
}
export function createAssetRelationsByAssetIdRequestBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateAssetRelationsByAssetIdRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateAssetRelationsByAssetIdRequestBody' from JSON`);
}
/** @internal */
export const CreateAssetRelationsByAssetIdRequest$inboundSchema = z.object({
    asset_id: z.string(),
    RequestBody: z.lazy(() => CreateAssetRelationsByAssetIdRequestBody$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "asset_id": "assetId",
        "RequestBody": "requestBody",
    });
});
/** @internal */
export const CreateAssetRelationsByAssetIdRequest$outboundSchema = z.object({
    assetId: z.string(),
    requestBody: z.lazy(() => CreateAssetRelationsByAssetIdRequestBody$outboundSchema),
}).transform((v) => {
    return 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.
 */
export var CreateAssetRelationsByAssetIdRequest$;
(function (CreateAssetRelationsByAssetIdRequest$) {
    /** @deprecated use `CreateAssetRelationsByAssetIdRequest$inboundSchema` instead. */
    CreateAssetRelationsByAssetIdRequest$.inboundSchema = CreateAssetRelationsByAssetIdRequest$inboundSchema;
    /** @deprecated use `CreateAssetRelationsByAssetIdRequest$outboundSchema` instead. */
    CreateAssetRelationsByAssetIdRequest$.outboundSchema = CreateAssetRelationsByAssetIdRequest$outboundSchema;
})(CreateAssetRelationsByAssetIdRequest$ || (CreateAssetRelationsByAssetIdRequest$ = {}));
export function createAssetRelationsByAssetIdRequestToJSON(createAssetRelationsByAssetIdRequest) {
    return JSON.stringify(CreateAssetRelationsByAssetIdRequest$outboundSchema.parse(createAssetRelationsByAssetIdRequest));
}
export function createAssetRelationsByAssetIdRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateAssetRelationsByAssetIdRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateAssetRelationsByAssetIdRequest' from JSON`);
}
//# sourceMappingURL=createassetrelationsbyassetid.js.map