/*
 * 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 CreateTransformationGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const CreateTransformationGlobals$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 CreateTransformationGlobals$;
(function (CreateTransformationGlobals$) {
    /** @deprecated use `CreateTransformationGlobals$inboundSchema` instead. */
    CreateTransformationGlobals$.inboundSchema = CreateTransformationGlobals$inboundSchema;
    /** @deprecated use `CreateTransformationGlobals$outboundSchema` instead. */
    CreateTransformationGlobals$.outboundSchema = CreateTransformationGlobals$outboundSchema;
})(CreateTransformationGlobals$ || (CreateTransformationGlobals$ = {}));
export function createTransformationGlobalsToJSON(createTransformationGlobals) {
    return JSON.stringify(CreateTransformationGlobals$outboundSchema.parse(createTransformationGlobals));
}
export function createTransformationGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateTransformationGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateTransformationGlobals' from JSON`);
}
/** @internal */
export const CreateTransformationRequest$inboundSchema = z.object({
    transformation: z.string(),
    create_request: components.CreateRequest$inboundSchema,
}).transform((v) => {
    return remap$(v, {
        "create_request": "createRequest",
    });
});
/** @internal */
export const CreateTransformationRequest$outboundSchema = z.object({
    transformation: z.string(),
    createRequest: components.CreateRequest$outboundSchema,
}).transform((v) => {
    return remap$(v, {
        createRequest: "create_request",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var CreateTransformationRequest$;
(function (CreateTransformationRequest$) {
    /** @deprecated use `CreateTransformationRequest$inboundSchema` instead. */
    CreateTransformationRequest$.inboundSchema = CreateTransformationRequest$inboundSchema;
    /** @deprecated use `CreateTransformationRequest$outboundSchema` instead. */
    CreateTransformationRequest$.outboundSchema = CreateTransformationRequest$outboundSchema;
})(CreateTransformationRequest$ || (CreateTransformationRequest$ = {}));
export function createTransformationRequestToJSON(createTransformationRequest) {
    return JSON.stringify(CreateTransformationRequest$outboundSchema.parse(createTransformationRequest));
}
export function createTransformationRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateTransformationRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateTransformationRequest' from JSON`);
}
/** @internal */
export const CreateTransformationResponse$inboundSchema = z.object({
    message: z.string().optional(),
});
/** @internal */
export const CreateTransformationResponse$outboundSchema = z.object({
    message: z.string().optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var CreateTransformationResponse$;
(function (CreateTransformationResponse$) {
    /** @deprecated use `CreateTransformationResponse$inboundSchema` instead. */
    CreateTransformationResponse$.inboundSchema = CreateTransformationResponse$inboundSchema;
    /** @deprecated use `CreateTransformationResponse$outboundSchema` instead. */
    CreateTransformationResponse$.outboundSchema = CreateTransformationResponse$outboundSchema;
})(CreateTransformationResponse$ || (CreateTransformationResponse$ = {}));
export function createTransformationResponseToJSON(createTransformationResponse) {
    return JSON.stringify(CreateTransformationResponse$outboundSchema.parse(createTransformationResponse));
}
export function createTransformationResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateTransformationResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateTransformationResponse' from JSON`);
}
//# sourceMappingURL=createtransformation.js.map