/*
 * 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 GetResourceByAssetIdGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const GetResourceByAssetIdGlobals$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 GetResourceByAssetIdGlobals$;
(function (GetResourceByAssetIdGlobals$) {
    /** @deprecated use `GetResourceByAssetIdGlobals$inboundSchema` instead. */
    GetResourceByAssetIdGlobals$.inboundSchema = GetResourceByAssetIdGlobals$inboundSchema;
    /** @deprecated use `GetResourceByAssetIdGlobals$outboundSchema` instead. */
    GetResourceByAssetIdGlobals$.outboundSchema = GetResourceByAssetIdGlobals$outboundSchema;
})(GetResourceByAssetIdGlobals$ || (GetResourceByAssetIdGlobals$ = {}));
export function getResourceByAssetIdGlobalsToJSON(getResourceByAssetIdGlobals) {
    return JSON.stringify(GetResourceByAssetIdGlobals$outboundSchema.parse(getResourceByAssetIdGlobals));
}
export function getResourceByAssetIdGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetResourceByAssetIdGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetResourceByAssetIdGlobals' from JSON`);
}
/** @internal */
export const GetResourceByAssetIdRequest$inboundSchema = z.object({
    asset_id: z.string(),
    colors: z.boolean().default(false),
    media_metadata: z.boolean().default(false),
    faces: z.boolean().default(false),
    quality_analysis: z.boolean().default(false),
    accessibility_analysis: z.boolean().default(false),
    pages: z.boolean().default(false),
    phash: z.boolean().default(false),
    coordinates: z.boolean().default(false),
    versions: z.boolean().default(false),
    max_results: z.number().int().default(10),
    derived_next_cursor: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "asset_id": "assetId",
        "media_metadata": "mediaMetadata",
        "quality_analysis": "qualityAnalysis",
        "accessibility_analysis": "accessibilityAnalysis",
        "max_results": "maxResults",
        "derived_next_cursor": "derivedNextCursor",
    });
});
/** @internal */
export const GetResourceByAssetIdRequest$outboundSchema = z.object({
    assetId: z.string(),
    colors: z.boolean().default(false),
    mediaMetadata: z.boolean().default(false),
    faces: z.boolean().default(false),
    qualityAnalysis: z.boolean().default(false),
    accessibilityAnalysis: z.boolean().default(false),
    pages: z.boolean().default(false),
    phash: z.boolean().default(false),
    coordinates: z.boolean().default(false),
    versions: z.boolean().default(false),
    maxResults: z.number().int().default(10),
    derivedNextCursor: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        assetId: "asset_id",
        mediaMetadata: "media_metadata",
        qualityAnalysis: "quality_analysis",
        accessibilityAnalysis: "accessibility_analysis",
        maxResults: "max_results",
        derivedNextCursor: "derived_next_cursor",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetResourceByAssetIdRequest$;
(function (GetResourceByAssetIdRequest$) {
    /** @deprecated use `GetResourceByAssetIdRequest$inboundSchema` instead. */
    GetResourceByAssetIdRequest$.inboundSchema = GetResourceByAssetIdRequest$inboundSchema;
    /** @deprecated use `GetResourceByAssetIdRequest$outboundSchema` instead. */
    GetResourceByAssetIdRequest$.outboundSchema = GetResourceByAssetIdRequest$outboundSchema;
})(GetResourceByAssetIdRequest$ || (GetResourceByAssetIdRequest$ = {}));
export function getResourceByAssetIdRequestToJSON(getResourceByAssetIdRequest) {
    return JSON.stringify(GetResourceByAssetIdRequest$outboundSchema.parse(getResourceByAssetIdRequest));
}
export function getResourceByAssetIdRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetResourceByAssetIdRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetResourceByAssetIdRequest' from JSON`);
}
//# sourceMappingURL=getresourcebyassetid.js.map