"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.GetV2HumanEvalsIdResponseBody$inboundSchema = exports.GetV2HumanEvalsIdResponseBody1$inboundSchema = exports.GetV2HumanEvalsIdResponseBody2$inboundSchema = exports.GetV2HumanEvalsIdResponseBody3$inboundSchema = exports.GetV2HumanEvalsIdResponseBodyConfig$inboundSchema = exports.GetV2HumanEvalsIdResponseBody4$inboundSchema = exports.GetV2HumanEvalsIdResponseBodyOptions$inboundSchema = exports.GetV2HumanEvalsIdResponseBodySentiment$inboundSchema = exports.GetV2HumanEvalsIdResponseBody5$inboundSchema = exports.GetV2HumanEvalsIdResponseBodyResponseOptions$inboundSchema = exports.GetV2HumanEvalsIdResponseBodyResponseSentiment$inboundSchema = exports.GetV2HumanEvalsIdResponseBody6$inboundSchema = exports.GetV2HumanEvalsIdRequest$outboundSchema = exports.GetV2HumanEvalsIdResponseBodySentiment = exports.GetV2HumanEvalsIdResponseBodyResponseSentiment = void 0;
exports.getV2HumanEvalsIdRequestToJSON = getV2HumanEvalsIdRequestToJSON;
exports.getV2HumanEvalsIdResponseBody6FromJSON = getV2HumanEvalsIdResponseBody6FromJSON;
exports.getV2HumanEvalsIdResponseBodyResponseOptionsFromJSON = getV2HumanEvalsIdResponseBodyResponseOptionsFromJSON;
exports.getV2HumanEvalsIdResponseBody5FromJSON = getV2HumanEvalsIdResponseBody5FromJSON;
exports.getV2HumanEvalsIdResponseBodyOptionsFromJSON = getV2HumanEvalsIdResponseBodyOptionsFromJSON;
exports.getV2HumanEvalsIdResponseBody4FromJSON = getV2HumanEvalsIdResponseBody4FromJSON;
exports.getV2HumanEvalsIdResponseBodyConfigFromJSON = getV2HumanEvalsIdResponseBodyConfigFromJSON;
exports.getV2HumanEvalsIdResponseBody3FromJSON = getV2HumanEvalsIdResponseBody3FromJSON;
exports.getV2HumanEvalsIdResponseBody2FromJSON = getV2HumanEvalsIdResponseBody2FromJSON;
exports.getV2HumanEvalsIdResponseBody1FromJSON = getV2HumanEvalsIdResponseBody1FromJSON;
exports.getV2HumanEvalsIdResponseBodyFromJSON = getV2HumanEvalsIdResponseBodyFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
exports.GetV2HumanEvalsIdResponseBodyResponseSentiment = {
    Neutral: "neutral",
    Positive: "positive",
    Negative: "negative",
};
exports.GetV2HumanEvalsIdResponseBodySentiment = {
    Neutral: "neutral",
    Positive: "positive",
    Negative: "negative",
};
/** @internal */
exports.GetV2HumanEvalsIdRequest$outboundSchema = z.object({
    id: z.string(),
});
function getV2HumanEvalsIdRequestToJSON(getV2HumanEvalsIdRequest) {
    return JSON.stringify(exports.GetV2HumanEvalsIdRequest$outboundSchema.parse(getV2HumanEvalsIdRequest));
}
/** @internal */
exports.GetV2HumanEvalsIdResponseBody6$inboundSchema = z.object({
    type: z.literal("text"),
    id: z.string(),
    key: z.string().default("orq_01kmjy31ba"),
    display_name: z.string(),
    description: z.string(),
    domain_id: z.string().optional(),
    created_by_id: z.string().optional(),
    updated_by_id: z.string().optional(),
    workspace_id: z.string(),
    project_id: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "display_name": "displayName",
        "domain_id": "domainId",
        "created_by_id": "createdById",
        "updated_by_id": "updatedById",
        "workspace_id": "workspaceId",
        "project_id": "projectId",
    });
});
function getV2HumanEvalsIdResponseBody6FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2HumanEvalsIdResponseBody6$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2HumanEvalsIdResponseBody6' from JSON`);
}
/** @internal */
exports.GetV2HumanEvalsIdResponseBodyResponseSentiment$inboundSchema = z
    .nativeEnum(exports.GetV2HumanEvalsIdResponseBodyResponseSentiment);
/** @internal */
exports.GetV2HumanEvalsIdResponseBodyResponseOptions$inboundSchema = z.object({
    id: z.string(),
    value: z.string(),
    sentiment: exports.GetV2HumanEvalsIdResponseBodyResponseSentiment$inboundSchema,
    description: z.string(),
    icon: z.string(),
});
function getV2HumanEvalsIdResponseBodyResponseOptionsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2HumanEvalsIdResponseBodyResponseOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2HumanEvalsIdResponseBodyResponseOptions' from JSON`);
}
/** @internal */
exports.GetV2HumanEvalsIdResponseBody5$inboundSchema = z.object({
    type: z.literal("single_select"),
    options: z.array(z.lazy(() => exports.GetV2HumanEvalsIdResponseBodyResponseOptions$inboundSchema)),
    id: z.string(),
    key: z.string().default("orq_01kmjy31b8"),
    display_name: z.string(),
    description: z.string(),
    domain_id: z.string().optional(),
    created_by_id: z.string().optional(),
    updated_by_id: z.string().optional(),
    workspace_id: z.string(),
    project_id: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "display_name": "displayName",
        "domain_id": "domainId",
        "created_by_id": "createdById",
        "updated_by_id": "updatedById",
        "workspace_id": "workspaceId",
        "project_id": "projectId",
    });
});
function getV2HumanEvalsIdResponseBody5FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2HumanEvalsIdResponseBody5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2HumanEvalsIdResponseBody5' from JSON`);
}
/** @internal */
exports.GetV2HumanEvalsIdResponseBodySentiment$inboundSchema = z.nativeEnum(exports.GetV2HumanEvalsIdResponseBodySentiment);
/** @internal */
exports.GetV2HumanEvalsIdResponseBodyOptions$inboundSchema = z.object({
    id: z.string(),
    value: z.string(),
    sentiment: exports.GetV2HumanEvalsIdResponseBodySentiment$inboundSchema,
    description: z.string(),
    icon: z.string(),
});
function getV2HumanEvalsIdResponseBodyOptionsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2HumanEvalsIdResponseBodyOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2HumanEvalsIdResponseBodyOptions' from JSON`);
}
/** @internal */
exports.GetV2HumanEvalsIdResponseBody4$inboundSchema = z.object({
    type: z.literal("multi_select"),
    options: z.array(z.lazy(() => exports.GetV2HumanEvalsIdResponseBodyOptions$inboundSchema)),
    id: z.string(),
    key: z.string().default("orq_01kmjy31b6"),
    display_name: z.string(),
    description: z.string(),
    domain_id: z.string().optional(),
    created_by_id: z.string().optional(),
    updated_by_id: z.string().optional(),
    workspace_id: z.string(),
    project_id: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "display_name": "displayName",
        "domain_id": "domainId",
        "created_by_id": "createdById",
        "updated_by_id": "updatedById",
        "workspace_id": "workspaceId",
        "project_id": "projectId",
    });
});
function getV2HumanEvalsIdResponseBody4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2HumanEvalsIdResponseBody4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2HumanEvalsIdResponseBody4' from JSON`);
}
/** @internal */
exports.GetV2HumanEvalsIdResponseBodyConfig$inboundSchema = z.object({
    min: z.number().int(),
    max: z.number().int(),
});
function getV2HumanEvalsIdResponseBodyConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2HumanEvalsIdResponseBodyConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2HumanEvalsIdResponseBodyConfig' from JSON`);
}
/** @internal */
exports.GetV2HumanEvalsIdResponseBody3$inboundSchema = z.object({
    type: z.literal("range"),
    config: z.lazy(() => exports.GetV2HumanEvalsIdResponseBodyConfig$inboundSchema),
    id: z.string(),
    key: z.string().default("orq_01kmjy31b4"),
    display_name: z.string(),
    description: z.string(),
    domain_id: z.string().optional(),
    created_by_id: z.string().optional(),
    updated_by_id: z.string().optional(),
    workspace_id: z.string(),
    project_id: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "display_name": "displayName",
        "domain_id": "domainId",
        "created_by_id": "createdById",
        "updated_by_id": "updatedById",
        "workspace_id": "workspaceId",
        "project_id": "projectId",
    });
});
function getV2HumanEvalsIdResponseBody3FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2HumanEvalsIdResponseBody3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2HumanEvalsIdResponseBody3' from JSON`);
}
/** @internal */
exports.GetV2HumanEvalsIdResponseBody2$inboundSchema = z.object({
    type: z.literal("correction"),
    id: z.string(),
    key: z.string().default("orq_01kmjy31b2"),
    display_name: z.string(),
    description: z.string(),
    domain_id: z.string().optional(),
    created_by_id: z.string().optional(),
    updated_by_id: z.string().optional(),
    workspace_id: z.string(),
    project_id: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "display_name": "displayName",
        "domain_id": "domainId",
        "created_by_id": "createdById",
        "updated_by_id": "updatedById",
        "workspace_id": "workspaceId",
        "project_id": "projectId",
    });
});
function getV2HumanEvalsIdResponseBody2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2HumanEvalsIdResponseBody2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2HumanEvalsIdResponseBody2' from JSON`);
}
/** @internal */
exports.GetV2HumanEvalsIdResponseBody1$inboundSchema = z.object({
    type: z.literal("boolean"),
    id: z.string(),
    key: z.string().default("orq_01kmjy31b1"),
    display_name: z.string(),
    description: z.string(),
    domain_id: z.string().optional(),
    created_by_id: z.string().optional(),
    updated_by_id: z.string().optional(),
    workspace_id: z.string(),
    project_id: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "display_name": "displayName",
        "domain_id": "domainId",
        "created_by_id": "createdById",
        "updated_by_id": "updatedById",
        "workspace_id": "workspaceId",
        "project_id": "projectId",
    });
});
function getV2HumanEvalsIdResponseBody1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2HumanEvalsIdResponseBody1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2HumanEvalsIdResponseBody1' from JSON`);
}
/** @internal */
exports.GetV2HumanEvalsIdResponseBody$inboundSchema = z.union([
    z.lazy(() => exports.GetV2HumanEvalsIdResponseBody1$inboundSchema),
    z.lazy(() => exports.GetV2HumanEvalsIdResponseBody2$inboundSchema),
    z.lazy(() => exports.GetV2HumanEvalsIdResponseBody3$inboundSchema),
    z.lazy(() => exports.GetV2HumanEvalsIdResponseBody4$inboundSchema),
    z.lazy(() => exports.GetV2HumanEvalsIdResponseBody5$inboundSchema),
    z.lazy(() => exports.GetV2HumanEvalsIdResponseBody6$inboundSchema),
]);
function getV2HumanEvalsIdResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2HumanEvalsIdResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2HumanEvalsIdResponseBody' from JSON`);
}
//# sourceMappingURL=getv2humanevalsid.js.map