/*
 * 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";
export const ListResourceTypesResourceType = {
    Image: "image",
    Raw: "raw",
    Video: "video",
};
/** @internal */
export const ListResourceTypesGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const ListResourceTypesGlobals$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 ListResourceTypesGlobals$;
(function (ListResourceTypesGlobals$) {
    /** @deprecated use `ListResourceTypesGlobals$inboundSchema` instead. */
    ListResourceTypesGlobals$.inboundSchema = ListResourceTypesGlobals$inboundSchema;
    /** @deprecated use `ListResourceTypesGlobals$outboundSchema` instead. */
    ListResourceTypesGlobals$.outboundSchema = ListResourceTypesGlobals$outboundSchema;
})(ListResourceTypesGlobals$ || (ListResourceTypesGlobals$ = {}));
export function listResourceTypesGlobalsToJSON(listResourceTypesGlobals) {
    return JSON.stringify(ListResourceTypesGlobals$outboundSchema.parse(listResourceTypesGlobals));
}
export function listResourceTypesGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ListResourceTypesGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListResourceTypesGlobals' from JSON`);
}
/** @internal */
export const ListResourceTypesRequest$inboundSchema = z.object({});
/** @internal */
export const ListResourceTypesRequest$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 ListResourceTypesRequest$;
(function (ListResourceTypesRequest$) {
    /** @deprecated use `ListResourceTypesRequest$inboundSchema` instead. */
    ListResourceTypesRequest$.inboundSchema = ListResourceTypesRequest$inboundSchema;
    /** @deprecated use `ListResourceTypesRequest$outboundSchema` instead. */
    ListResourceTypesRequest$.outboundSchema = ListResourceTypesRequest$outboundSchema;
})(ListResourceTypesRequest$ || (ListResourceTypesRequest$ = {}));
export function listResourceTypesRequestToJSON(listResourceTypesRequest) {
    return JSON.stringify(ListResourceTypesRequest$outboundSchema.parse(listResourceTypesRequest));
}
export function listResourceTypesRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ListResourceTypesRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListResourceTypesRequest' from JSON`);
}
/** @internal */
export const ListResourceTypesError$inboundSchema = z.object({
    message: z.string(),
});
/** @internal */
export const ListResourceTypesError$outboundSchema = z.object({
    message: 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 ListResourceTypesError$;
(function (ListResourceTypesError$) {
    /** @deprecated use `ListResourceTypesError$inboundSchema` instead. */
    ListResourceTypesError$.inboundSchema = ListResourceTypesError$inboundSchema;
    /** @deprecated use `ListResourceTypesError$outboundSchema` instead. */
    ListResourceTypesError$.outboundSchema = ListResourceTypesError$outboundSchema;
})(ListResourceTypesError$ || (ListResourceTypesError$ = {}));
export function listResourceTypesErrorToJSON(listResourceTypesError) {
    return JSON.stringify(ListResourceTypesError$outboundSchema.parse(listResourceTypesError));
}
export function listResourceTypesErrorFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ListResourceTypesError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListResourceTypesError' from JSON`);
}
/** @internal */
export const ListResourceTypesResourceType$inboundSchema = z.nativeEnum(ListResourceTypesResourceType);
/** @internal */
export const ListResourceTypesResourceType$outboundSchema = ListResourceTypesResourceType$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var ListResourceTypesResourceType$;
(function (ListResourceTypesResourceType$) {
    /** @deprecated use `ListResourceTypesResourceType$inboundSchema` instead. */
    ListResourceTypesResourceType$.inboundSchema = ListResourceTypesResourceType$inboundSchema;
    /** @deprecated use `ListResourceTypesResourceType$outboundSchema` instead. */
    ListResourceTypesResourceType$.outboundSchema = ListResourceTypesResourceType$outboundSchema;
})(ListResourceTypesResourceType$ || (ListResourceTypesResourceType$ = {}));
/** @internal */
export const ListResourceTypesResponse$inboundSchema = z.object({
    resource_types: z.array(ListResourceTypesResourceType$inboundSchema)
        .optional(),
}).transform((v) => {
    return remap$(v, {
        "resource_types": "resourceTypes",
    });
});
/** @internal */
export const ListResourceTypesResponse$outboundSchema = z.object({
    resourceTypes: z.array(ListResourceTypesResourceType$outboundSchema)
        .optional(),
}).transform((v) => {
    return remap$(v, {
        resourceTypes: "resource_types",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var ListResourceTypesResponse$;
(function (ListResourceTypesResponse$) {
    /** @deprecated use `ListResourceTypesResponse$inboundSchema` instead. */
    ListResourceTypesResponse$.inboundSchema = ListResourceTypesResponse$inboundSchema;
    /** @deprecated use `ListResourceTypesResponse$outboundSchema` instead. */
    ListResourceTypesResponse$.outboundSchema = ListResourceTypesResponse$outboundSchema;
})(ListResourceTypesResponse$ || (ListResourceTypesResponse$ = {}));
export function listResourceTypesResponseToJSON(listResourceTypesResponse) {
    return JSON.stringify(ListResourceTypesResponse$outboundSchema.parse(listResourceTypesResponse));
}
export function listResourceTypesResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ListResourceTypesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListResourceTypesResponse' from JSON`);
}
//# sourceMappingURL=listresourcetypes.js.map