/*
 * 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 ListRootFoldersGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const ListRootFoldersGlobals$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 ListRootFoldersGlobals$;
(function (ListRootFoldersGlobals$) {
    /** @deprecated use `ListRootFoldersGlobals$inboundSchema` instead. */
    ListRootFoldersGlobals$.inboundSchema = ListRootFoldersGlobals$inboundSchema;
    /** @deprecated use `ListRootFoldersGlobals$outboundSchema` instead. */
    ListRootFoldersGlobals$.outboundSchema = ListRootFoldersGlobals$outboundSchema;
})(ListRootFoldersGlobals$ || (ListRootFoldersGlobals$ = {}));
export function listRootFoldersGlobalsToJSON(listRootFoldersGlobals) {
    return JSON.stringify(ListRootFoldersGlobals$outboundSchema.parse(listRootFoldersGlobals));
}
export function listRootFoldersGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ListRootFoldersGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListRootFoldersGlobals' from JSON`);
}
/** @internal */
export const ListRootFoldersRequest$inboundSchema = z.object({});
/** @internal */
export const ListRootFoldersRequest$outboundSchema = z.object({});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var ListRootFoldersRequest$;
(function (ListRootFoldersRequest$) {
    /** @deprecated use `ListRootFoldersRequest$inboundSchema` instead. */
    ListRootFoldersRequest$.inboundSchema = ListRootFoldersRequest$inboundSchema;
    /** @deprecated use `ListRootFoldersRequest$outboundSchema` instead. */
    ListRootFoldersRequest$.outboundSchema = ListRootFoldersRequest$outboundSchema;
})(ListRootFoldersRequest$ || (ListRootFoldersRequest$ = {}));
export function listRootFoldersRequestToJSON(listRootFoldersRequest) {
    return JSON.stringify(ListRootFoldersRequest$outboundSchema.parse(listRootFoldersRequest));
}
export function listRootFoldersRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ListRootFoldersRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListRootFoldersRequest' from JSON`);
}
//# sourceMappingURL=listrootfolders.js.map