/*
 * 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 ListTransformationsGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const ListTransformationsGlobals$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 ListTransformationsGlobals$;
(function (ListTransformationsGlobals$) {
    /** @deprecated use `ListTransformationsGlobals$inboundSchema` instead. */
    ListTransformationsGlobals$.inboundSchema = ListTransformationsGlobals$inboundSchema;
    /** @deprecated use `ListTransformationsGlobals$outboundSchema` instead. */
    ListTransformationsGlobals$.outboundSchema = ListTransformationsGlobals$outboundSchema;
})(ListTransformationsGlobals$ || (ListTransformationsGlobals$ = {}));
export function listTransformationsGlobalsToJSON(listTransformationsGlobals) {
    return JSON.stringify(ListTransformationsGlobals$outboundSchema.parse(listTransformationsGlobals));
}
export function listTransformationsGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ListTransformationsGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListTransformationsGlobals' from JSON`);
}
/** @internal */
export const ListTransformationsRequest$inboundSchema = z.object({
    named: z.boolean().optional(),
    max_results: z.number().int().default(10),
    next_cursor: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "max_results": "maxResults",
        "next_cursor": "nextCursor",
    });
});
/** @internal */
export const ListTransformationsRequest$outboundSchema = z.object({
    named: z.boolean().optional(),
    maxResults: z.number().int().default(10),
    nextCursor: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        maxResults: "max_results",
        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 ListTransformationsRequest$;
(function (ListTransformationsRequest$) {
    /** @deprecated use `ListTransformationsRequest$inboundSchema` instead. */
    ListTransformationsRequest$.inboundSchema = ListTransformationsRequest$inboundSchema;
    /** @deprecated use `ListTransformationsRequest$outboundSchema` instead. */
    ListTransformationsRequest$.outboundSchema = ListTransformationsRequest$outboundSchema;
})(ListTransformationsRequest$ || (ListTransformationsRequest$ = {}));
export function listTransformationsRequestToJSON(listTransformationsRequest) {
    return JSON.stringify(ListTransformationsRequest$outboundSchema.parse(listTransformationsRequest));
}
export function listTransformationsRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ListTransformationsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListTransformationsRequest' from JSON`);
}
//# sourceMappingURL=listtransformations.js.map