/*
 * 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 SearchFoldersPostGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const SearchFoldersPostGlobals$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 SearchFoldersPostGlobals$;
(function (SearchFoldersPostGlobals$) {
    /** @deprecated use `SearchFoldersPostGlobals$inboundSchema` instead. */
    SearchFoldersPostGlobals$.inboundSchema = SearchFoldersPostGlobals$inboundSchema;
    /** @deprecated use `SearchFoldersPostGlobals$outboundSchema` instead. */
    SearchFoldersPostGlobals$.outboundSchema = SearchFoldersPostGlobals$outboundSchema;
})(SearchFoldersPostGlobals$ || (SearchFoldersPostGlobals$ = {}));
export function searchFoldersPostGlobalsToJSON(searchFoldersPostGlobals) {
    return JSON.stringify(SearchFoldersPostGlobals$outboundSchema.parse(searchFoldersPostGlobals));
}
export function searchFoldersPostGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => SearchFoldersPostGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchFoldersPostGlobals' from JSON`);
}
/** @internal */
export const SearchFoldersPostRequest$inboundSchema = z.object({
    expression: z.string().optional(),
    sort_by: z.array(z.string()).optional(),
    max_results: z.number().int().default(50),
    next_cursor: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "sort_by": "sortBy",
        "max_results": "maxResults",
        "next_cursor": "nextCursor",
    });
});
/** @internal */
export const SearchFoldersPostRequest$outboundSchema = z.object({
    expression: z.string().optional(),
    sortBy: z.array(z.string()).optional(),
    maxResults: z.number().int().default(50),
    nextCursor: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        sortBy: "sort_by",
        maxResults: "max_results",
        nextCursor: "next_cursor",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var SearchFoldersPostRequest$;
(function (SearchFoldersPostRequest$) {
    /** @deprecated use `SearchFoldersPostRequest$inboundSchema` instead. */
    SearchFoldersPostRequest$.inboundSchema = SearchFoldersPostRequest$inboundSchema;
    /** @deprecated use `SearchFoldersPostRequest$outboundSchema` instead. */
    SearchFoldersPostRequest$.outboundSchema = SearchFoldersPostRequest$outboundSchema;
})(SearchFoldersPostRequest$ || (SearchFoldersPostRequest$ = {}));
export function searchFoldersPostRequestToJSON(searchFoldersPostRequest) {
    return JSON.stringify(SearchFoldersPostRequest$outboundSchema.parse(searchFoldersPostRequest));
}
export function searchFoldersPostRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => SearchFoldersPostRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchFoldersPostRequest' from JSON`);
}
//# sourceMappingURL=searchfolderspost.js.map