/*
 * 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 RestoreResourcesByAssetIDsGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const RestoreResourcesByAssetIDsGlobals$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 RestoreResourcesByAssetIDsGlobals$;
(function (RestoreResourcesByAssetIDsGlobals$) {
    /** @deprecated use `RestoreResourcesByAssetIDsGlobals$inboundSchema` instead. */
    RestoreResourcesByAssetIDsGlobals$.inboundSchema = RestoreResourcesByAssetIDsGlobals$inboundSchema;
    /** @deprecated use `RestoreResourcesByAssetIDsGlobals$outboundSchema` instead. */
    RestoreResourcesByAssetIDsGlobals$.outboundSchema = RestoreResourcesByAssetIDsGlobals$outboundSchema;
})(RestoreResourcesByAssetIDsGlobals$ || (RestoreResourcesByAssetIDsGlobals$ = {}));
export function restoreResourcesByAssetIDsGlobalsToJSON(restoreResourcesByAssetIDsGlobals) {
    return JSON.stringify(RestoreResourcesByAssetIDsGlobals$outboundSchema.parse(restoreResourcesByAssetIDsGlobals));
}
export function restoreResourcesByAssetIDsGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => RestoreResourcesByAssetIDsGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RestoreResourcesByAssetIDsGlobals' from JSON`);
}
/** @internal */
export const RestoreResourcesByAssetIDsRequest$inboundSchema = z.object({
    asset_ids: z.array(z.string()),
    versions: z.array(z.string()).optional(),
    notification_url: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "asset_ids": "assetIds",
        "notification_url": "notificationUrl",
    });
});
/** @internal */
export const RestoreResourcesByAssetIDsRequest$outboundSchema = z.object({
    assetIds: z.array(z.string()),
    versions: z.array(z.string()).optional(),
    notificationUrl: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        assetIds: "asset_ids",
        notificationUrl: "notification_url",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var RestoreResourcesByAssetIDsRequest$;
(function (RestoreResourcesByAssetIDsRequest$) {
    /** @deprecated use `RestoreResourcesByAssetIDsRequest$inboundSchema` instead. */
    RestoreResourcesByAssetIDsRequest$.inboundSchema = RestoreResourcesByAssetIDsRequest$inboundSchema;
    /** @deprecated use `RestoreResourcesByAssetIDsRequest$outboundSchema` instead. */
    RestoreResourcesByAssetIDsRequest$.outboundSchema = RestoreResourcesByAssetIDsRequest$outboundSchema;
})(RestoreResourcesByAssetIDsRequest$ || (RestoreResourcesByAssetIDsRequest$ = {}));
export function restoreResourcesByAssetIDsRequestToJSON(restoreResourcesByAssetIDsRequest) {
    return JSON.stringify(RestoreResourcesByAssetIDsRequest$outboundSchema.parse(restoreResourcesByAssetIDsRequest));
}
export function restoreResourcesByAssetIDsRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => RestoreResourcesByAssetIDsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RestoreResourcesByAssetIDsRequest' from JSON`);
}
//# sourceMappingURL=restoreresourcesbyassetids.js.map