/*
 * 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 CreateFolderGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const CreateFolderGlobals$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 CreateFolderGlobals$;
(function (CreateFolderGlobals$) {
    /** @deprecated use `CreateFolderGlobals$inboundSchema` instead. */
    CreateFolderGlobals$.inboundSchema = CreateFolderGlobals$inboundSchema;
    /** @deprecated use `CreateFolderGlobals$outboundSchema` instead. */
    CreateFolderGlobals$.outboundSchema = CreateFolderGlobals$outboundSchema;
})(CreateFolderGlobals$ || (CreateFolderGlobals$ = {}));
export function createFolderGlobalsToJSON(createFolderGlobals) {
    return JSON.stringify(CreateFolderGlobals$outboundSchema.parse(createFolderGlobals));
}
export function createFolderGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateFolderGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateFolderGlobals' from JSON`);
}
/** @internal */
export const CreateFolderRequest$inboundSchema = z.object({
    folder: z.string(),
});
/** @internal */
export const CreateFolderRequest$outboundSchema = z.object({
    folder: 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 CreateFolderRequest$;
(function (CreateFolderRequest$) {
    /** @deprecated use `CreateFolderRequest$inboundSchema` instead. */
    CreateFolderRequest$.inboundSchema = CreateFolderRequest$inboundSchema;
    /** @deprecated use `CreateFolderRequest$outboundSchema` instead. */
    CreateFolderRequest$.outboundSchema = CreateFolderRequest$outboundSchema;
})(CreateFolderRequest$ || (CreateFolderRequest$ = {}));
export function createFolderRequestToJSON(createFolderRequest) {
    return JSON.stringify(CreateFolderRequest$outboundSchema.parse(createFolderRequest));
}
export function createFolderRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateFolderRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateFolderRequest' from JSON`);
}
/** @internal */
export const CreateFolderResponse$inboundSchema = z.object({
    success: z.boolean().optional(),
    path: z.string().optional(),
    name: z.string().optional(),
});
/** @internal */
export const CreateFolderResponse$outboundSchema = z.object({
    success: z.boolean().optional(),
    path: z.string().optional(),
    name: 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 CreateFolderResponse$;
(function (CreateFolderResponse$) {
    /** @deprecated use `CreateFolderResponse$inboundSchema` instead. */
    CreateFolderResponse$.inboundSchema = CreateFolderResponse$inboundSchema;
    /** @deprecated use `CreateFolderResponse$outboundSchema` instead. */
    CreateFolderResponse$.outboundSchema = CreateFolderResponse$outboundSchema;
})(CreateFolderResponse$ || (CreateFolderResponse$ = {}));
export function createFolderResponseToJSON(createFolderResponse) {
    return JSON.stringify(CreateFolderResponse$outboundSchema.parse(createFolderResponse));
}
export function createFolderResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateFolderResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateFolderResponse' from JSON`);
}
//# sourceMappingURL=createfolder.js.map