"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.ListResourceTypesResponse$ = exports.ListResourceTypesResponse$outboundSchema = exports.ListResourceTypesResponse$inboundSchema = exports.ListResourceTypesResourceType$ = exports.ListResourceTypesResourceType$outboundSchema = exports.ListResourceTypesResourceType$inboundSchema = exports.ListResourceTypesError$ = exports.ListResourceTypesError$outboundSchema = exports.ListResourceTypesError$inboundSchema = exports.ListResourceTypesRequest$ = exports.ListResourceTypesRequest$outboundSchema = exports.ListResourceTypesRequest$inboundSchema = exports.ListResourceTypesGlobals$ = exports.ListResourceTypesGlobals$outboundSchema = exports.ListResourceTypesGlobals$inboundSchema = exports.ListResourceTypesResourceType = void 0;
exports.listResourceTypesGlobalsToJSON = listResourceTypesGlobalsToJSON;
exports.listResourceTypesGlobalsFromJSON = listResourceTypesGlobalsFromJSON;
exports.listResourceTypesRequestToJSON = listResourceTypesRequestToJSON;
exports.listResourceTypesRequestFromJSON = listResourceTypesRequestFromJSON;
exports.listResourceTypesErrorToJSON = listResourceTypesErrorToJSON;
exports.listResourceTypesErrorFromJSON = listResourceTypesErrorFromJSON;
exports.listResourceTypesResponseToJSON = listResourceTypesResponseToJSON;
exports.listResourceTypesResponseFromJSON = listResourceTypesResponseFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
exports.ListResourceTypesResourceType = {
    Image: "image",
    Raw: "raw",
    Video: "video",
};
/** @internal */
exports.ListResourceTypesGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
exports.ListResourceTypesGlobals$outboundSchema = z.object({
    cloudName: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.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.
 */
var ListResourceTypesGlobals$;
(function (ListResourceTypesGlobals$) {
    /** @deprecated use `ListResourceTypesGlobals$inboundSchema` instead. */
    ListResourceTypesGlobals$.inboundSchema = exports.ListResourceTypesGlobals$inboundSchema;
    /** @deprecated use `ListResourceTypesGlobals$outboundSchema` instead. */
    ListResourceTypesGlobals$.outboundSchema = exports.ListResourceTypesGlobals$outboundSchema;
})(ListResourceTypesGlobals$ || (exports.ListResourceTypesGlobals$ = ListResourceTypesGlobals$ = {}));
function listResourceTypesGlobalsToJSON(listResourceTypesGlobals) {
    return JSON.stringify(exports.ListResourceTypesGlobals$outboundSchema.parse(listResourceTypesGlobals));
}
function listResourceTypesGlobalsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListResourceTypesGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListResourceTypesGlobals' from JSON`);
}
/** @internal */
exports.ListResourceTypesRequest$inboundSchema = z.object({});
/** @internal */
exports.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.
 */
var ListResourceTypesRequest$;
(function (ListResourceTypesRequest$) {
    /** @deprecated use `ListResourceTypesRequest$inboundSchema` instead. */
    ListResourceTypesRequest$.inboundSchema = exports.ListResourceTypesRequest$inboundSchema;
    /** @deprecated use `ListResourceTypesRequest$outboundSchema` instead. */
    ListResourceTypesRequest$.outboundSchema = exports.ListResourceTypesRequest$outboundSchema;
})(ListResourceTypesRequest$ || (exports.ListResourceTypesRequest$ = ListResourceTypesRequest$ = {}));
function listResourceTypesRequestToJSON(listResourceTypesRequest) {
    return JSON.stringify(exports.ListResourceTypesRequest$outboundSchema.parse(listResourceTypesRequest));
}
function listResourceTypesRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListResourceTypesRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListResourceTypesRequest' from JSON`);
}
/** @internal */
exports.ListResourceTypesError$inboundSchema = z.object({
    message: z.string(),
});
/** @internal */
exports.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.
 */
var ListResourceTypesError$;
(function (ListResourceTypesError$) {
    /** @deprecated use `ListResourceTypesError$inboundSchema` instead. */
    ListResourceTypesError$.inboundSchema = exports.ListResourceTypesError$inboundSchema;
    /** @deprecated use `ListResourceTypesError$outboundSchema` instead. */
    ListResourceTypesError$.outboundSchema = exports.ListResourceTypesError$outboundSchema;
})(ListResourceTypesError$ || (exports.ListResourceTypesError$ = ListResourceTypesError$ = {}));
function listResourceTypesErrorToJSON(listResourceTypesError) {
    return JSON.stringify(exports.ListResourceTypesError$outboundSchema.parse(listResourceTypesError));
}
function listResourceTypesErrorFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListResourceTypesError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListResourceTypesError' from JSON`);
}
/** @internal */
exports.ListResourceTypesResourceType$inboundSchema = z.nativeEnum(exports.ListResourceTypesResourceType);
/** @internal */
exports.ListResourceTypesResourceType$outboundSchema = exports.ListResourceTypesResourceType$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ListResourceTypesResourceType$;
(function (ListResourceTypesResourceType$) {
    /** @deprecated use `ListResourceTypesResourceType$inboundSchema` instead. */
    ListResourceTypesResourceType$.inboundSchema = exports.ListResourceTypesResourceType$inboundSchema;
    /** @deprecated use `ListResourceTypesResourceType$outboundSchema` instead. */
    ListResourceTypesResourceType$.outboundSchema = exports.ListResourceTypesResourceType$outboundSchema;
})(ListResourceTypesResourceType$ || (exports.ListResourceTypesResourceType$ = ListResourceTypesResourceType$ = {}));
/** @internal */
exports.ListResourceTypesResponse$inboundSchema = z.object({
    resource_types: z.array(exports.ListResourceTypesResourceType$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "resource_types": "resourceTypes",
    });
});
/** @internal */
exports.ListResourceTypesResponse$outboundSchema = z.object({
    resourceTypes: z.array(exports.ListResourceTypesResourceType$outboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.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.
 */
var ListResourceTypesResponse$;
(function (ListResourceTypesResponse$) {
    /** @deprecated use `ListResourceTypesResponse$inboundSchema` instead. */
    ListResourceTypesResponse$.inboundSchema = exports.ListResourceTypesResponse$inboundSchema;
    /** @deprecated use `ListResourceTypesResponse$outboundSchema` instead. */
    ListResourceTypesResponse$.outboundSchema = exports.ListResourceTypesResponse$outboundSchema;
})(ListResourceTypesResponse$ || (exports.ListResourceTypesResponse$ = ListResourceTypesResponse$ = {}));
function listResourceTypesResponseToJSON(listResourceTypesResponse) {
    return JSON.stringify(exports.ListResourceTypesResponse$outboundSchema.parse(listResourceTypesResponse));
}
function listResourceTypesResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListResourceTypesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListResourceTypesResponse' from JSON`);
}
//# sourceMappingURL=listresourcetypes.js.map