"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.ListResourcesByModerationKindAndStatusRequest$ = exports.ListResourcesByModerationKindAndStatusRequest$outboundSchema = exports.ListResourcesByModerationKindAndStatusRequest$inboundSchema = exports.ModerationStatus$ = exports.ModerationStatus$outboundSchema = exports.ModerationStatus$inboundSchema = exports.ModerationKind$ = exports.ModerationKind$outboundSchema = exports.ModerationKind$inboundSchema = exports.ListResourcesByModerationKindAndStatusGlobals$ = exports.ListResourcesByModerationKindAndStatusGlobals$outboundSchema = exports.ListResourcesByModerationKindAndStatusGlobals$inboundSchema = exports.ModerationStatus = exports.ModerationKind = void 0;
exports.listResourcesByModerationKindAndStatusGlobalsToJSON = listResourcesByModerationKindAndStatusGlobalsToJSON;
exports.listResourcesByModerationKindAndStatusGlobalsFromJSON = listResourcesByModerationKindAndStatusGlobalsFromJSON;
exports.listResourcesByModerationKindAndStatusRequestToJSON = listResourcesByModerationKindAndStatusRequestToJSON;
exports.listResourcesByModerationKindAndStatusRequestFromJSON = listResourcesByModerationKindAndStatusRequestFromJSON;
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"));
exports.ModerationKind = {
    Manual: "manual",
    Webpurify: "webpurify",
    AwsRek: "aws_rek",
    AwsRekVideo: "aws_rek_video",
    PerceptionPoint: "perception_point",
    GoogleVideoModeration: "google_video_moderation",
    Duplicate: "duplicate",
};
exports.ModerationStatus = {
    Approved: "approved",
    Rejected: "rejected",
    Pending: "pending",
    Queued: "queued",
    Aborted: "aborted",
};
/** @internal */
exports.ListResourcesByModerationKindAndStatusGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
exports.ListResourcesByModerationKindAndStatusGlobals$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 ListResourcesByModerationKindAndStatusGlobals$;
(function (ListResourcesByModerationKindAndStatusGlobals$) {
    /** @deprecated use `ListResourcesByModerationKindAndStatusGlobals$inboundSchema` instead. */
    ListResourcesByModerationKindAndStatusGlobals$.inboundSchema = exports.ListResourcesByModerationKindAndStatusGlobals$inboundSchema;
    /** @deprecated use `ListResourcesByModerationKindAndStatusGlobals$outboundSchema` instead. */
    ListResourcesByModerationKindAndStatusGlobals$.outboundSchema = exports.ListResourcesByModerationKindAndStatusGlobals$outboundSchema;
})(ListResourcesByModerationKindAndStatusGlobals$ || (exports.ListResourcesByModerationKindAndStatusGlobals$ = ListResourcesByModerationKindAndStatusGlobals$ = {}));
function listResourcesByModerationKindAndStatusGlobalsToJSON(listResourcesByModerationKindAndStatusGlobals) {
    return JSON.stringify(exports.ListResourcesByModerationKindAndStatusGlobals$outboundSchema.parse(listResourcesByModerationKindAndStatusGlobals));
}
function listResourcesByModerationKindAndStatusGlobalsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListResourcesByModerationKindAndStatusGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListResourcesByModerationKindAndStatusGlobals' from JSON`);
}
/** @internal */
exports.ModerationKind$inboundSchema = z.nativeEnum(exports.ModerationKind);
/** @internal */
exports.ModerationKind$outboundSchema = exports.ModerationKind$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ModerationKind$;
(function (ModerationKind$) {
    /** @deprecated use `ModerationKind$inboundSchema` instead. */
    ModerationKind$.inboundSchema = exports.ModerationKind$inboundSchema;
    /** @deprecated use `ModerationKind$outboundSchema` instead. */
    ModerationKind$.outboundSchema = exports.ModerationKind$outboundSchema;
})(ModerationKind$ || (exports.ModerationKind$ = ModerationKind$ = {}));
/** @internal */
exports.ModerationStatus$inboundSchema = z.nativeEnum(exports.ModerationStatus);
/** @internal */
exports.ModerationStatus$outboundSchema = exports.ModerationStatus$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ModerationStatus$;
(function (ModerationStatus$) {
    /** @deprecated use `ModerationStatus$inboundSchema` instead. */
    ModerationStatus$.inboundSchema = exports.ModerationStatus$inboundSchema;
    /** @deprecated use `ModerationStatus$outboundSchema` instead. */
    ModerationStatus$.outboundSchema = exports.ModerationStatus$outboundSchema;
})(ModerationStatus$ || (exports.ModerationStatus$ = ModerationStatus$ = {}));
/** @internal */
exports.ListResourcesByModerationKindAndStatusRequest$inboundSchema = z.object({
    resource_type: components.ResourceTypeParameter$inboundSchema,
    moderation_kind: exports.ModerationKind$inboundSchema,
    moderation_status: exports.ModerationStatus$inboundSchema,
    fields: z.array(components.FieldsSpec$inboundSchema).optional(),
    next_cursor: z.string().optional(),
    max_results: z.number().int().optional(),
    direction: components.Direction$inboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "resource_type": "resourceType",
        "moderation_kind": "moderationKind",
        "moderation_status": "moderationStatus",
        "next_cursor": "nextCursor",
        "max_results": "maxResults",
    });
});
/** @internal */
exports.ListResourcesByModerationKindAndStatusRequest$outboundSchema = z.object({
    resourceType: components.ResourceTypeParameter$outboundSchema,
    moderationKind: exports.ModerationKind$outboundSchema,
    moderationStatus: exports.ModerationStatus$outboundSchema,
    fields: z.array(components.FieldsSpec$outboundSchema).optional(),
    nextCursor: z.string().optional(),
    maxResults: z.number().int().optional(),
    direction: components.Direction$outboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        resourceType: "resource_type",
        moderationKind: "moderation_kind",
        moderationStatus: "moderation_status",
        nextCursor: "next_cursor",
        maxResults: "max_results",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ListResourcesByModerationKindAndStatusRequest$;
(function (ListResourcesByModerationKindAndStatusRequest$) {
    /** @deprecated use `ListResourcesByModerationKindAndStatusRequest$inboundSchema` instead. */
    ListResourcesByModerationKindAndStatusRequest$.inboundSchema = exports.ListResourcesByModerationKindAndStatusRequest$inboundSchema;
    /** @deprecated use `ListResourcesByModerationKindAndStatusRequest$outboundSchema` instead. */
    ListResourcesByModerationKindAndStatusRequest$.outboundSchema = exports.ListResourcesByModerationKindAndStatusRequest$outboundSchema;
})(ListResourcesByModerationKindAndStatusRequest$ || (exports.ListResourcesByModerationKindAndStatusRequest$ = ListResourcesByModerationKindAndStatusRequest$ = {}));
function listResourcesByModerationKindAndStatusRequestToJSON(listResourcesByModerationKindAndStatusRequest) {
    return JSON.stringify(exports.ListResourcesByModerationKindAndStatusRequest$outboundSchema.parse(listResourcesByModerationKindAndStatusRequest));
}
function listResourcesByModerationKindAndStatusRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListResourcesByModerationKindAndStatusRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListResourcesByModerationKindAndStatusRequest' from JSON`);
}
//# sourceMappingURL=listresourcesbymoderationkindandstatus.js.map