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