/*
 * 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";
/** @internal */
export const ListUploadMappingsGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const ListUploadMappingsGlobals$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 ListUploadMappingsGlobals$;
(function (ListUploadMappingsGlobals$) {
    /** @deprecated use `ListUploadMappingsGlobals$inboundSchema` instead. */
    ListUploadMappingsGlobals$.inboundSchema = ListUploadMappingsGlobals$inboundSchema;
    /** @deprecated use `ListUploadMappingsGlobals$outboundSchema` instead. */
    ListUploadMappingsGlobals$.outboundSchema = ListUploadMappingsGlobals$outboundSchema;
})(ListUploadMappingsGlobals$ || (ListUploadMappingsGlobals$ = {}));
export function listUploadMappingsGlobalsToJSON(listUploadMappingsGlobals) {
    return JSON.stringify(ListUploadMappingsGlobals$outboundSchema.parse(listUploadMappingsGlobals));
}
export function listUploadMappingsGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ListUploadMappingsGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListUploadMappingsGlobals' from JSON`);
}
/** @internal */
export const ListUploadMappingsRequest$inboundSchema = z.object({
    folder: z.string().optional(),
    next_cursor: z.string().optional(),
    max_results: z.number().int().default(10),
}).transform((v) => {
    return remap$(v, {
        "next_cursor": "nextCursor",
        "max_results": "maxResults",
    });
});
/** @internal */
export const ListUploadMappingsRequest$outboundSchema = z.object({
    folder: z.string().optional(),
    nextCursor: z.string().optional(),
    maxResults: z.number().int().default(10),
}).transform((v) => {
    return remap$(v, {
        nextCursor: "next_cursor",
        maxResults: "max_results",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var ListUploadMappingsRequest$;
(function (ListUploadMappingsRequest$) {
    /** @deprecated use `ListUploadMappingsRequest$inboundSchema` instead. */
    ListUploadMappingsRequest$.inboundSchema = ListUploadMappingsRequest$inboundSchema;
    /** @deprecated use `ListUploadMappingsRequest$outboundSchema` instead. */
    ListUploadMappingsRequest$.outboundSchema = ListUploadMappingsRequest$outboundSchema;
})(ListUploadMappingsRequest$ || (ListUploadMappingsRequest$ = {}));
export function listUploadMappingsRequestToJSON(listUploadMappingsRequest) {
    return JSON.stringify(ListUploadMappingsRequest$outboundSchema.parse(listUploadMappingsRequest));
}
export function listUploadMappingsRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ListUploadMappingsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListUploadMappingsRequest' from JSON`);
}
/** @internal */
export const ResponseBody$inboundSchema = z.object({
    mappings: z.array(components.UploadMapping$inboundSchema),
    total_entries: z.number().int(),
    next_cursor: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "total_entries": "totalEntries",
        "next_cursor": "nextCursor",
    });
});
/** @internal */
export const ResponseBody$outboundSchema = z.object({
    mappings: z.array(components.UploadMapping$outboundSchema),
    totalEntries: z.number().int(),
    nextCursor: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        totalEntries: "total_entries",
        nextCursor: "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 ResponseBody$;
(function (ResponseBody$) {
    /** @deprecated use `ResponseBody$inboundSchema` instead. */
    ResponseBody$.inboundSchema = ResponseBody$inboundSchema;
    /** @deprecated use `ResponseBody$outboundSchema` instead. */
    ResponseBody$.outboundSchema = ResponseBody$outboundSchema;
})(ResponseBody$ || (ResponseBody$ = {}));
export function responseBodyToJSON(responseBody) {
    return JSON.stringify(ResponseBody$outboundSchema.parse(responseBody));
}
export function responseBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBody' from JSON`);
}
/** @internal */
export const ListUploadMappingsResponse$inboundSchema = z.union([
    z.lazy(() => ResponseBody$inboundSchema),
    components.UploadMapping$inboundSchema,
]);
/** @internal */
export const ListUploadMappingsResponse$outboundSchema = z.union([
    z.lazy(() => ResponseBody$outboundSchema),
    components.UploadMapping$outboundSchema,
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var ListUploadMappingsResponse$;
(function (ListUploadMappingsResponse$) {
    /** @deprecated use `ListUploadMappingsResponse$inboundSchema` instead. */
    ListUploadMappingsResponse$.inboundSchema = ListUploadMappingsResponse$inboundSchema;
    /** @deprecated use `ListUploadMappingsResponse$outboundSchema` instead. */
    ListUploadMappingsResponse$.outboundSchema = ListUploadMappingsResponse$outboundSchema;
})(ListUploadMappingsResponse$ || (ListUploadMappingsResponse$ = {}));
export function listUploadMappingsResponseToJSON(listUploadMappingsResponse) {
    return JSON.stringify(ListUploadMappingsResponse$outboundSchema.parse(listUploadMappingsResponse));
}
export function listUploadMappingsResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ListUploadMappingsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListUploadMappingsResponse' from JSON`);
}
//# sourceMappingURL=listuploadmappings.js.map