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