/*
 * 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 GetTransformationGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const GetTransformationGlobals$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 GetTransformationGlobals$;
(function (GetTransformationGlobals$) {
    /** @deprecated use `GetTransformationGlobals$inboundSchema` instead. */
    GetTransformationGlobals$.inboundSchema = GetTransformationGlobals$inboundSchema;
    /** @deprecated use `GetTransformationGlobals$outboundSchema` instead. */
    GetTransformationGlobals$.outboundSchema = GetTransformationGlobals$outboundSchema;
})(GetTransformationGlobals$ || (GetTransformationGlobals$ = {}));
export function getTransformationGlobalsToJSON(getTransformationGlobals) {
    return JSON.stringify(GetTransformationGlobals$outboundSchema.parse(getTransformationGlobals));
}
export function getTransformationGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetTransformationGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetTransformationGlobals' from JSON`);
}
/** @internal */
export const GetTransformationRequest$inboundSchema = z.object({
    transformation: z.string(),
});
/** @internal */
export const GetTransformationRequest$outboundSchema = z.object({
    transformation: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetTransformationRequest$;
(function (GetTransformationRequest$) {
    /** @deprecated use `GetTransformationRequest$inboundSchema` instead. */
    GetTransformationRequest$.inboundSchema = GetTransformationRequest$inboundSchema;
    /** @deprecated use `GetTransformationRequest$outboundSchema` instead. */
    GetTransformationRequest$.outboundSchema = GetTransformationRequest$outboundSchema;
})(GetTransformationRequest$ || (GetTransformationRequest$ = {}));
export function getTransformationRequestToJSON(getTransformationRequest) {
    return JSON.stringify(GetTransformationRequest$outboundSchema.parse(getTransformationRequest));
}
export function getTransformationRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetTransformationRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetTransformationRequest' from JSON`);
}
//# sourceMappingURL=gettransformation.js.map