"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.UpdateFolderResponse$ = exports.UpdateFolderResponse$outboundSchema = exports.UpdateFolderResponse$inboundSchema = exports.To$ = exports.To$outboundSchema = exports.To$inboundSchema = exports.From$ = exports.From$outboundSchema = exports.From$inboundSchema = exports.UpdateFolderRequest$ = exports.UpdateFolderRequest$outboundSchema = exports.UpdateFolderRequest$inboundSchema = exports.UpdateFolderRequestBody$ = exports.UpdateFolderRequestBody$outboundSchema = exports.UpdateFolderRequestBody$inboundSchema = exports.UpdateFolderGlobals$ = exports.UpdateFolderGlobals$outboundSchema = exports.UpdateFolderGlobals$inboundSchema = void 0;
exports.updateFolderGlobalsToJSON = updateFolderGlobalsToJSON;
exports.updateFolderGlobalsFromJSON = updateFolderGlobalsFromJSON;
exports.updateFolderRequestBodyToJSON = updateFolderRequestBodyToJSON;
exports.updateFolderRequestBodyFromJSON = updateFolderRequestBodyFromJSON;
exports.updateFolderRequestToJSON = updateFolderRequestToJSON;
exports.updateFolderRequestFromJSON = updateFolderRequestFromJSON;
exports.fromToJSON = fromToJSON;
exports.fromFromJSON = fromFromJSON;
exports.toToJSON = toToJSON;
exports.toFromJSON = toFromJSON;
exports.updateFolderResponseToJSON = updateFolderResponseToJSON;
exports.updateFolderResponseFromJSON = updateFolderResponseFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
/** @internal */
exports.UpdateFolderGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
exports.UpdateFolderGlobals$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 UpdateFolderGlobals$;
(function (UpdateFolderGlobals$) {
    /** @deprecated use `UpdateFolderGlobals$inboundSchema` instead. */
    UpdateFolderGlobals$.inboundSchema = exports.UpdateFolderGlobals$inboundSchema;
    /** @deprecated use `UpdateFolderGlobals$outboundSchema` instead. */
    UpdateFolderGlobals$.outboundSchema = exports.UpdateFolderGlobals$outboundSchema;
})(UpdateFolderGlobals$ || (exports.UpdateFolderGlobals$ = UpdateFolderGlobals$ = {}));
function updateFolderGlobalsToJSON(updateFolderGlobals) {
    return JSON.stringify(exports.UpdateFolderGlobals$outboundSchema.parse(updateFolderGlobals));
}
function updateFolderGlobalsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateFolderGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateFolderGlobals' from JSON`);
}
/** @internal */
exports.UpdateFolderRequestBody$inboundSchema = z.object({
    to_folder: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "to_folder": "toFolder",
    });
});
/** @internal */
exports.UpdateFolderRequestBody$outboundSchema = z.object({
    toFolder: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        toFolder: "to_folder",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var UpdateFolderRequestBody$;
(function (UpdateFolderRequestBody$) {
    /** @deprecated use `UpdateFolderRequestBody$inboundSchema` instead. */
    UpdateFolderRequestBody$.inboundSchema = exports.UpdateFolderRequestBody$inboundSchema;
    /** @deprecated use `UpdateFolderRequestBody$outboundSchema` instead. */
    UpdateFolderRequestBody$.outboundSchema = exports.UpdateFolderRequestBody$outboundSchema;
})(UpdateFolderRequestBody$ || (exports.UpdateFolderRequestBody$ = UpdateFolderRequestBody$ = {}));
function updateFolderRequestBodyToJSON(updateFolderRequestBody) {
    return JSON.stringify(exports.UpdateFolderRequestBody$outboundSchema.parse(updateFolderRequestBody));
}
function updateFolderRequestBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateFolderRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateFolderRequestBody' from JSON`);
}
/** @internal */
exports.UpdateFolderRequest$inboundSchema = z.object({
    folder: z.string(),
    RequestBody: z.lazy(() => exports.UpdateFolderRequestBody$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "RequestBody": "requestBody",
    });
});
/** @internal */
exports.UpdateFolderRequest$outboundSchema = z.object({
    folder: z.string(),
    requestBody: z.lazy(() => exports.UpdateFolderRequestBody$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        requestBody: "RequestBody",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var UpdateFolderRequest$;
(function (UpdateFolderRequest$) {
    /** @deprecated use `UpdateFolderRequest$inboundSchema` instead. */
    UpdateFolderRequest$.inboundSchema = exports.UpdateFolderRequest$inboundSchema;
    /** @deprecated use `UpdateFolderRequest$outboundSchema` instead. */
    UpdateFolderRequest$.outboundSchema = exports.UpdateFolderRequest$outboundSchema;
})(UpdateFolderRequest$ || (exports.UpdateFolderRequest$ = UpdateFolderRequest$ = {}));
function updateFolderRequestToJSON(updateFolderRequest) {
    return JSON.stringify(exports.UpdateFolderRequest$outboundSchema.parse(updateFolderRequest));
}
function updateFolderRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateFolderRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateFolderRequest' from JSON`);
}
/** @internal */
exports.From$inboundSchema = z
    .object({
    name: z.string(),
    path: z.string(),
});
/** @internal */
exports.From$outboundSchema = z.object({
    name: z.string(),
    path: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var From$;
(function (From$) {
    /** @deprecated use `From$inboundSchema` instead. */
    From$.inboundSchema = exports.From$inboundSchema;
    /** @deprecated use `From$outboundSchema` instead. */
    From$.outboundSchema = exports.From$outboundSchema;
})(From$ || (exports.From$ = From$ = {}));
function fromToJSON(from) {
    return JSON.stringify(exports.From$outboundSchema.parse(from));
}
function fromFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.From$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'From' from JSON`);
}
/** @internal */
exports.To$inboundSchema = z.object({
    name: z.string(),
    path: z.string(),
});
/** @internal */
exports.To$outboundSchema = z
    .object({
    name: z.string(),
    path: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var To$;
(function (To$) {
    /** @deprecated use `To$inboundSchema` instead. */
    To$.inboundSchema = exports.To$inboundSchema;
    /** @deprecated use `To$outboundSchema` instead. */
    To$.outboundSchema = exports.To$outboundSchema;
})(To$ || (exports.To$ = To$ = {}));
function toToJSON(to) {
    return JSON.stringify(exports.To$outboundSchema.parse(to));
}
function toFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.To$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'To' from JSON`);
}
/** @internal */
exports.UpdateFolderResponse$inboundSchema = z.object({
    from: z.lazy(() => exports.From$inboundSchema),
    to: z.lazy(() => exports.To$inboundSchema),
});
/** @internal */
exports.UpdateFolderResponse$outboundSchema = z.object({
    from: z.lazy(() => exports.From$outboundSchema),
    to: z.lazy(() => exports.To$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var UpdateFolderResponse$;
(function (UpdateFolderResponse$) {
    /** @deprecated use `UpdateFolderResponse$inboundSchema` instead. */
    UpdateFolderResponse$.inboundSchema = exports.UpdateFolderResponse$inboundSchema;
    /** @deprecated use `UpdateFolderResponse$outboundSchema` instead. */
    UpdateFolderResponse$.outboundSchema = exports.UpdateFolderResponse$outboundSchema;
})(UpdateFolderResponse$ || (exports.UpdateFolderResponse$ = UpdateFolderResponse$ = {}));
function updateFolderResponseToJSON(updateFolderResponse) {
    return JSON.stringify(exports.UpdateFolderResponse$outboundSchema.parse(updateFolderResponse));
}
function updateFolderResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateFolderResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateFolderResponse' from JSON`);
}
//# sourceMappingURL=updatefolder.js.map