"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.CreateTransformationResponse$ = exports.CreateTransformationResponse$outboundSchema = exports.CreateTransformationResponse$inboundSchema = exports.CreateTransformationRequest$ = exports.CreateTransformationRequest$outboundSchema = exports.CreateTransformationRequest$inboundSchema = exports.CreateTransformationGlobals$ = exports.CreateTransformationGlobals$outboundSchema = exports.CreateTransformationGlobals$inboundSchema = void 0;
exports.createTransformationGlobalsToJSON = createTransformationGlobalsToJSON;
exports.createTransformationGlobalsFromJSON = createTransformationGlobalsFromJSON;
exports.createTransformationRequestToJSON = createTransformationRequestToJSON;
exports.createTransformationRequestFromJSON = createTransformationRequestFromJSON;
exports.createTransformationResponseToJSON = createTransformationResponseToJSON;
exports.createTransformationResponseFromJSON = createTransformationResponseFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
const components = __importStar(require("../components/index.js"));
/** @internal */
exports.CreateTransformationGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
exports.CreateTransformationGlobals$outboundSchema = z.object({
    cloudName: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.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.
 */
var CreateTransformationGlobals$;
(function (CreateTransformationGlobals$) {
    /** @deprecated use `CreateTransformationGlobals$inboundSchema` instead. */
    CreateTransformationGlobals$.inboundSchema = exports.CreateTransformationGlobals$inboundSchema;
    /** @deprecated use `CreateTransformationGlobals$outboundSchema` instead. */
    CreateTransformationGlobals$.outboundSchema = exports.CreateTransformationGlobals$outboundSchema;
})(CreateTransformationGlobals$ || (exports.CreateTransformationGlobals$ = CreateTransformationGlobals$ = {}));
function createTransformationGlobalsToJSON(createTransformationGlobals) {
    return JSON.stringify(exports.CreateTransformationGlobals$outboundSchema.parse(createTransformationGlobals));
}
function createTransformationGlobalsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateTransformationGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateTransformationGlobals' from JSON`);
}
/** @internal */
exports.CreateTransformationRequest$inboundSchema = z.object({
    transformation: z.string(),
    create_request: components.CreateRequest$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "create_request": "createRequest",
    });
});
/** @internal */
exports.CreateTransformationRequest$outboundSchema = z.object({
    transformation: z.string(),
    createRequest: components.CreateRequest$outboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.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.
 */
var CreateTransformationRequest$;
(function (CreateTransformationRequest$) {
    /** @deprecated use `CreateTransformationRequest$inboundSchema` instead. */
    CreateTransformationRequest$.inboundSchema = exports.CreateTransformationRequest$inboundSchema;
    /** @deprecated use `CreateTransformationRequest$outboundSchema` instead. */
    CreateTransformationRequest$.outboundSchema = exports.CreateTransformationRequest$outboundSchema;
})(CreateTransformationRequest$ || (exports.CreateTransformationRequest$ = CreateTransformationRequest$ = {}));
function createTransformationRequestToJSON(createTransformationRequest) {
    return JSON.stringify(exports.CreateTransformationRequest$outboundSchema.parse(createTransformationRequest));
}
function createTransformationRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateTransformationRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateTransformationRequest' from JSON`);
}
/** @internal */
exports.CreateTransformationResponse$inboundSchema = z.object({
    message: z.string().optional(),
});
/** @internal */
exports.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.
 */
var CreateTransformationResponse$;
(function (CreateTransformationResponse$) {
    /** @deprecated use `CreateTransformationResponse$inboundSchema` instead. */
    CreateTransformationResponse$.inboundSchema = exports.CreateTransformationResponse$inboundSchema;
    /** @deprecated use `CreateTransformationResponse$outboundSchema` instead. */
    CreateTransformationResponse$.outboundSchema = exports.CreateTransformationResponse$outboundSchema;
})(CreateTransformationResponse$ || (exports.CreateTransformationResponse$ = CreateTransformationResponse$ = {}));
function createTransformationResponseToJSON(createTransformationResponse) {
    return JSON.stringify(exports.CreateTransformationResponse$outboundSchema.parse(createTransformationResponse));
}
function createTransformationResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateTransformationResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateTransformationResponse' from JSON`);
}
//# sourceMappingURL=createtransformation.js.map