/*
 * 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 DestroyFolderGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const DestroyFolderGlobals$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 DestroyFolderGlobals$;
(function (DestroyFolderGlobals$) {
    /** @deprecated use `DestroyFolderGlobals$inboundSchema` instead. */
    DestroyFolderGlobals$.inboundSchema = DestroyFolderGlobals$inboundSchema;
    /** @deprecated use `DestroyFolderGlobals$outboundSchema` instead. */
    DestroyFolderGlobals$.outboundSchema = DestroyFolderGlobals$outboundSchema;
})(DestroyFolderGlobals$ || (DestroyFolderGlobals$ = {}));
export function destroyFolderGlobalsToJSON(destroyFolderGlobals) {
    return JSON.stringify(DestroyFolderGlobals$outboundSchema.parse(destroyFolderGlobals));
}
export function destroyFolderGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => DestroyFolderGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DestroyFolderGlobals' from JSON`);
}
/** @internal */
export const DestroyFolderRequest$inboundSchema = z.object({
    folder: z.string(),
});
/** @internal */
export const DestroyFolderRequest$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 DestroyFolderRequest$;
(function (DestroyFolderRequest$) {
    /** @deprecated use `DestroyFolderRequest$inboundSchema` instead. */
    DestroyFolderRequest$.inboundSchema = DestroyFolderRequest$inboundSchema;
    /** @deprecated use `DestroyFolderRequest$outboundSchema` instead. */
    DestroyFolderRequest$.outboundSchema = DestroyFolderRequest$outboundSchema;
})(DestroyFolderRequest$ || (DestroyFolderRequest$ = {}));
export function destroyFolderRequestToJSON(destroyFolderRequest) {
    return JSON.stringify(DestroyFolderRequest$outboundSchema.parse(destroyFolderRequest));
}
export function destroyFolderRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => DestroyFolderRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DestroyFolderRequest' from JSON`);
}
/** @internal */
export const DestroyFolderResponse$inboundSchema = z.object({
    deleted: z.array(z.string()),
});
/** @internal */
export const DestroyFolderResponse$outboundSchema = z.object({
    deleted: z.array(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 DestroyFolderResponse$;
(function (DestroyFolderResponse$) {
    /** @deprecated use `DestroyFolderResponse$inboundSchema` instead. */
    DestroyFolderResponse$.inboundSchema = DestroyFolderResponse$inboundSchema;
    /** @deprecated use `DestroyFolderResponse$outboundSchema` instead. */
    DestroyFolderResponse$.outboundSchema = DestroyFolderResponse$outboundSchema;
})(DestroyFolderResponse$ || (DestroyFolderResponse$ = {}));
export function destroyFolderResponseToJSON(destroyFolderResponse) {
    return JSON.stringify(DestroyFolderResponse$outboundSchema.parse(destroyFolderResponse));
}
export function destroyFolderResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => DestroyFolderResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DestroyFolderResponse' from JSON`);
}
//# sourceMappingURL=destroyfolder.js.map