/*
 * 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 UpdateTransformationGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const UpdateTransformationGlobals$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 UpdateTransformationGlobals$;
(function (UpdateTransformationGlobals$) {
    /** @deprecated use `UpdateTransformationGlobals$inboundSchema` instead. */
    UpdateTransformationGlobals$.inboundSchema = UpdateTransformationGlobals$inboundSchema;
    /** @deprecated use `UpdateTransformationGlobals$outboundSchema` instead. */
    UpdateTransformationGlobals$.outboundSchema = UpdateTransformationGlobals$outboundSchema;
})(UpdateTransformationGlobals$ || (UpdateTransformationGlobals$ = {}));
export function updateTransformationGlobalsToJSON(updateTransformationGlobals) {
    return JSON.stringify(UpdateTransformationGlobals$outboundSchema.parse(updateTransformationGlobals));
}
export function updateTransformationGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateTransformationGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateTransformationGlobals' from JSON`);
}
/** @internal */
export const UpdateTransformationRequest$inboundSchema = z.object({
    transformation: z.string(),
    update_request: components.UpdateRequest$inboundSchema,
}).transform((v) => {
    return remap$(v, {
        "update_request": "updateRequest",
    });
});
/** @internal */
export const UpdateTransformationRequest$outboundSchema = z.object({
    transformation: z.string(),
    updateRequest: components.UpdateRequest$outboundSchema,
}).transform((v) => {
    return remap$(v, {
        updateRequest: "update_request",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var UpdateTransformationRequest$;
(function (UpdateTransformationRequest$) {
    /** @deprecated use `UpdateTransformationRequest$inboundSchema` instead. */
    UpdateTransformationRequest$.inboundSchema = UpdateTransformationRequest$inboundSchema;
    /** @deprecated use `UpdateTransformationRequest$outboundSchema` instead. */
    UpdateTransformationRequest$.outboundSchema = UpdateTransformationRequest$outboundSchema;
})(UpdateTransformationRequest$ || (UpdateTransformationRequest$ = {}));
export function updateTransformationRequestToJSON(updateTransformationRequest) {
    return JSON.stringify(UpdateTransformationRequest$outboundSchema.parse(updateTransformationRequest));
}
export function updateTransformationRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateTransformationRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateTransformationRequest' from JSON`);
}
/** @internal */
export const UpdateTransformationResponse$inboundSchema = z.object({
    message: z.string().optional(),
});
/** @internal */
export const UpdateTransformationResponse$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 UpdateTransformationResponse$;
(function (UpdateTransformationResponse$) {
    /** @deprecated use `UpdateTransformationResponse$inboundSchema` instead. */
    UpdateTransformationResponse$.inboundSchema = UpdateTransformationResponse$inboundSchema;
    /** @deprecated use `UpdateTransformationResponse$outboundSchema` instead. */
    UpdateTransformationResponse$.outboundSchema = UpdateTransformationResponse$outboundSchema;
})(UpdateTransformationResponse$ || (UpdateTransformationResponse$ = {}));
export function updateTransformationResponseToJSON(updateTransformationResponse) {
    return JSON.stringify(UpdateTransformationResponse$outboundSchema.parse(updateTransformationResponse));
}
export function updateTransformationResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateTransformationResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateTransformationResponse' from JSON`);
}
//# sourceMappingURL=updatetransformation.js.map