"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.ListResourcesByAssetIDsRequest$ = exports.ListResourcesByAssetIDsRequest$outboundSchema = exports.ListResourcesByAssetIDsRequest$inboundSchema = exports.ListResourcesByAssetIDsResourceType$ = exports.ListResourcesByAssetIDsResourceType$outboundSchema = exports.ListResourcesByAssetIDsResourceType$inboundSchema = exports.ListResourcesByAssetIDsGlobals$ = exports.ListResourcesByAssetIDsGlobals$outboundSchema = exports.ListResourcesByAssetIDsGlobals$inboundSchema = exports.ListResourcesByAssetIDsResourceType = void 0;
exports.listResourcesByAssetIDsGlobalsToJSON = listResourcesByAssetIDsGlobalsToJSON;
exports.listResourcesByAssetIDsGlobalsFromJSON = listResourcesByAssetIDsGlobalsFromJSON;
exports.listResourcesByAssetIDsRequestToJSON = listResourcesByAssetIDsRequestToJSON;
exports.listResourcesByAssetIDsRequestFromJSON = listResourcesByAssetIDsRequestFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
const components = __importStar(require("../components/index.js"));
/**
 * Resource type (optional, can sometimes disambiguate).
 */
exports.ListResourcesByAssetIDsResourceType = {
    Image: "image",
    Video: "video",
    Raw: "raw",
};
/** @internal */
exports.ListResourcesByAssetIDsGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
exports.ListResourcesByAssetIDsGlobals$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 ListResourcesByAssetIDsGlobals$;
(function (ListResourcesByAssetIDsGlobals$) {
    /** @deprecated use `ListResourcesByAssetIDsGlobals$inboundSchema` instead. */
    ListResourcesByAssetIDsGlobals$.inboundSchema = exports.ListResourcesByAssetIDsGlobals$inboundSchema;
    /** @deprecated use `ListResourcesByAssetIDsGlobals$outboundSchema` instead. */
    ListResourcesByAssetIDsGlobals$.outboundSchema = exports.ListResourcesByAssetIDsGlobals$outboundSchema;
})(ListResourcesByAssetIDsGlobals$ || (exports.ListResourcesByAssetIDsGlobals$ = ListResourcesByAssetIDsGlobals$ = {}));
function listResourcesByAssetIDsGlobalsToJSON(listResourcesByAssetIDsGlobals) {
    return JSON.stringify(exports.ListResourcesByAssetIDsGlobals$outboundSchema.parse(listResourcesByAssetIDsGlobals));
}
function listResourcesByAssetIDsGlobalsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListResourcesByAssetIDsGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListResourcesByAssetIDsGlobals' from JSON`);
}
/** @internal */
exports.ListResourcesByAssetIDsResourceType$inboundSchema = z.nativeEnum(exports.ListResourcesByAssetIDsResourceType);
/** @internal */
exports.ListResourcesByAssetIDsResourceType$outboundSchema = exports.ListResourcesByAssetIDsResourceType$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ListResourcesByAssetIDsResourceType$;
(function (ListResourcesByAssetIDsResourceType$) {
    /** @deprecated use `ListResourcesByAssetIDsResourceType$inboundSchema` instead. */
    ListResourcesByAssetIDsResourceType$.inboundSchema = exports.ListResourcesByAssetIDsResourceType$inboundSchema;
    /** @deprecated use `ListResourcesByAssetIDsResourceType$outboundSchema` instead. */
    ListResourcesByAssetIDsResourceType$.outboundSchema = exports.ListResourcesByAssetIDsResourceType$outboundSchema;
})(ListResourcesByAssetIDsResourceType$ || (exports.ListResourcesByAssetIDsResourceType$ = ListResourcesByAssetIDsResourceType$ = {}));
/** @internal */
exports.ListResourcesByAssetIDsRequest$inboundSchema = z.object({
    asset_ids: z.array(z.string()),
    resource_type: exports.ListResourcesByAssetIDsResourceType$inboundSchema.optional(),
    fields: z.array(components.FieldsSpec$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "asset_ids": "assetIds",
        "resource_type": "resourceType",
    });
});
/** @internal */
exports.ListResourcesByAssetIDsRequest$outboundSchema = z.object({
    assetIds: z.array(z.string()),
    resourceType: exports.ListResourcesByAssetIDsResourceType$outboundSchema.optional(),
    fields: z.array(components.FieldsSpec$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        assetIds: "asset_ids",
        resourceType: "resource_type",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ListResourcesByAssetIDsRequest$;
(function (ListResourcesByAssetIDsRequest$) {
    /** @deprecated use `ListResourcesByAssetIDsRequest$inboundSchema` instead. */
    ListResourcesByAssetIDsRequest$.inboundSchema = exports.ListResourcesByAssetIDsRequest$inboundSchema;
    /** @deprecated use `ListResourcesByAssetIDsRequest$outboundSchema` instead. */
    ListResourcesByAssetIDsRequest$.outboundSchema = exports.ListResourcesByAssetIDsRequest$outboundSchema;
})(ListResourcesByAssetIDsRequest$ || (exports.ListResourcesByAssetIDsRequest$ = ListResourcesByAssetIDsRequest$ = {}));
function listResourcesByAssetIDsRequestToJSON(listResourcesByAssetIDsRequest) {
    return JSON.stringify(exports.ListResourcesByAssetIDsRequest$outboundSchema.parse(listResourcesByAssetIDsRequest));
}
function listResourcesByAssetIDsRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListResourcesByAssetIDsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListResourcesByAssetIDsRequest' from JSON`);
}
//# sourceMappingURL=listresourcesbyassetids.js.map