/*
 * 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";
import * as components from "../components/index.js";
/**
 * Resource type (optional, can sometimes disambiguate).
 */
export const ListResourcesByAssetIDsResourceType = {
    Image: "image",
    Video: "video",
    Raw: "raw",
};
/** @internal */
export const ListResourcesByAssetIDsGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const ListResourcesByAssetIDsGlobals$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 ListResourcesByAssetIDsGlobals$;
(function (ListResourcesByAssetIDsGlobals$) {
    /** @deprecated use `ListResourcesByAssetIDsGlobals$inboundSchema` instead. */
    ListResourcesByAssetIDsGlobals$.inboundSchema = ListResourcesByAssetIDsGlobals$inboundSchema;
    /** @deprecated use `ListResourcesByAssetIDsGlobals$outboundSchema` instead. */
    ListResourcesByAssetIDsGlobals$.outboundSchema = ListResourcesByAssetIDsGlobals$outboundSchema;
})(ListResourcesByAssetIDsGlobals$ || (ListResourcesByAssetIDsGlobals$ = {}));
export function listResourcesByAssetIDsGlobalsToJSON(listResourcesByAssetIDsGlobals) {
    return JSON.stringify(ListResourcesByAssetIDsGlobals$outboundSchema.parse(listResourcesByAssetIDsGlobals));
}
export function listResourcesByAssetIDsGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ListResourcesByAssetIDsGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListResourcesByAssetIDsGlobals' from JSON`);
}
/** @internal */
export const ListResourcesByAssetIDsResourceType$inboundSchema = z.nativeEnum(ListResourcesByAssetIDsResourceType);
/** @internal */
export const ListResourcesByAssetIDsResourceType$outboundSchema = ListResourcesByAssetIDsResourceType$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var ListResourcesByAssetIDsResourceType$;
(function (ListResourcesByAssetIDsResourceType$) {
    /** @deprecated use `ListResourcesByAssetIDsResourceType$inboundSchema` instead. */
    ListResourcesByAssetIDsResourceType$.inboundSchema = ListResourcesByAssetIDsResourceType$inboundSchema;
    /** @deprecated use `ListResourcesByAssetIDsResourceType$outboundSchema` instead. */
    ListResourcesByAssetIDsResourceType$.outboundSchema = ListResourcesByAssetIDsResourceType$outboundSchema;
})(ListResourcesByAssetIDsResourceType$ || (ListResourcesByAssetIDsResourceType$ = {}));
/** @internal */
export const ListResourcesByAssetIDsRequest$inboundSchema = z.object({
    asset_ids: z.array(z.string()),
    resource_type: ListResourcesByAssetIDsResourceType$inboundSchema.optional(),
    fields: z.array(components.FieldsSpec$inboundSchema).optional(),
}).transform((v) => {
    return remap$(v, {
        "asset_ids": "assetIds",
        "resource_type": "resourceType",
    });
});
/** @internal */
export const ListResourcesByAssetIDsRequest$outboundSchema = z.object({
    assetIds: z.array(z.string()),
    resourceType: ListResourcesByAssetIDsResourceType$outboundSchema.optional(),
    fields: z.array(components.FieldsSpec$outboundSchema).optional(),
}).transform((v) => {
    return remap$(v, {
        assetIds: "asset_ids",
        resourceType: "resource_type",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var ListResourcesByAssetIDsRequest$;
(function (ListResourcesByAssetIDsRequest$) {
    /** @deprecated use `ListResourcesByAssetIDsRequest$inboundSchema` instead. */
    ListResourcesByAssetIDsRequest$.inboundSchema = ListResourcesByAssetIDsRequest$inboundSchema;
    /** @deprecated use `ListResourcesByAssetIDsRequest$outboundSchema` instead. */
    ListResourcesByAssetIDsRequest$.outboundSchema = ListResourcesByAssetIDsRequest$outboundSchema;
})(ListResourcesByAssetIDsRequest$ || (ListResourcesByAssetIDsRequest$ = {}));
export function listResourcesByAssetIDsRequestToJSON(listResourcesByAssetIDsRequest) {
    return JSON.stringify(ListResourcesByAssetIDsRequest$outboundSchema.parse(listResourcesByAssetIDsRequest));
}
export function listResourcesByAssetIDsRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ListResourcesByAssetIDsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListResourcesByAssetIDsRequest' from JSON`);
}
//# sourceMappingURL=listresourcesbyassetids.js.map