"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.ResponseBody$inboundSchema = exports.ResponseBody1$inboundSchema = exports.ResponseBody2$inboundSchema = exports.ResponseBody3$inboundSchema = exports.ResponseBodyConfig$inboundSchema = exports.ResponseBody4$inboundSchema = exports.GetV2HumanEvalsResponseBodyOptions$inboundSchema = exports.GetV2HumanEvalsResponseBodySentiment$inboundSchema = exports.ResponseBody5$inboundSchema = exports.ResponseBodyOptions$inboundSchema = exports.ResponseBodySentiment$inboundSchema = exports.ResponseBody6$inboundSchema = exports.GetV2HumanEvalsRequest$outboundSchema = exports.GetV2HumanEvalsResponseBodySentiment = exports.ResponseBodySentiment = void 0;
exports.getV2HumanEvalsRequestToJSON = getV2HumanEvalsRequestToJSON;
exports.responseBody6FromJSON = responseBody6FromJSON;
exports.responseBodyOptionsFromJSON = responseBodyOptionsFromJSON;
exports.responseBody5FromJSON = responseBody5FromJSON;
exports.getV2HumanEvalsResponseBodyOptionsFromJSON = getV2HumanEvalsResponseBodyOptionsFromJSON;
exports.responseBody4FromJSON = responseBody4FromJSON;
exports.responseBodyConfigFromJSON = responseBodyConfigFromJSON;
exports.responseBody3FromJSON = responseBody3FromJSON;
exports.responseBody2FromJSON = responseBody2FromJSON;
exports.responseBody1FromJSON = responseBody1FromJSON;
exports.responseBodyFromJSON = responseBodyFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
exports.ResponseBodySentiment = {
    Neutral: "neutral",
    Positive: "positive",
    Negative: "negative",
};
exports.GetV2HumanEvalsResponseBodySentiment = {
    Neutral: "neutral",
    Positive: "positive",
    Negative: "negative",
};
/** @internal */
exports.GetV2HumanEvalsRequest$outboundSchema = z.object({
    projectId: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        projectId: "project_id",
    });
});
function getV2HumanEvalsRequestToJSON(getV2HumanEvalsRequest) {
    return JSON.stringify(exports.GetV2HumanEvalsRequest$outboundSchema.parse(getV2HumanEvalsRequest));
}
/** @internal */
exports.ResponseBody6$inboundSchema = z.object({
    type: z.literal("text"),
    id: z.string(),
    key: z.string().default("orq_01kmjy31ay"),
    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 responseBody6FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBody6$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBody6' from JSON`);
}
/** @internal */
exports.ResponseBodySentiment$inboundSchema = z.nativeEnum(exports.ResponseBodySentiment);
/** @internal */
exports.ResponseBodyOptions$inboundSchema = z.object({
    id: z.string(),
    value: z.string(),
    sentiment: exports.ResponseBodySentiment$inboundSchema,
    description: z.string(),
    icon: z.string(),
});
function responseBodyOptionsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBodyOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBodyOptions' from JSON`);
}
/** @internal */
exports.ResponseBody5$inboundSchema = z.object({
    type: z.literal("single_select"),
    options: z.array(z.lazy(() => exports.ResponseBodyOptions$inboundSchema)),
    id: z.string(),
    key: z.string().default("orq_01kmjy31ax"),
    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 responseBody5FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBody5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBody5' from JSON`);
}
/** @internal */
exports.GetV2HumanEvalsResponseBodySentiment$inboundSchema = z.nativeEnum(exports.GetV2HumanEvalsResponseBodySentiment);
/** @internal */
exports.GetV2HumanEvalsResponseBodyOptions$inboundSchema = z.object({
    id: z.string(),
    value: z.string(),
    sentiment: exports.GetV2HumanEvalsResponseBodySentiment$inboundSchema,
    description: z.string(),
    icon: z.string(),
});
function getV2HumanEvalsResponseBodyOptionsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetV2HumanEvalsResponseBodyOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetV2HumanEvalsResponseBodyOptions' from JSON`);
}
/** @internal */
exports.ResponseBody4$inboundSchema = z.object({
    type: z.literal("multi_select"),
    options: z.array(z.lazy(() => exports.GetV2HumanEvalsResponseBodyOptions$inboundSchema)),
    id: z.string(),
    key: z.string().default("orq_01kmjy31at"),
    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 responseBody4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBody4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBody4' from JSON`);
}
/** @internal */
exports.ResponseBodyConfig$inboundSchema = z.object({
    min: z.number().int(),
    max: z.number().int(),
});
function responseBodyConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBodyConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBodyConfig' from JSON`);
}
/** @internal */
exports.ResponseBody3$inboundSchema = z.object({
    type: z.literal("range"),
    config: z.lazy(() => exports.ResponseBodyConfig$inboundSchema),
    id: z.string(),
    key: z.string().default("orq_01kmjy31ar"),
    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 responseBody3FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBody3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBody3' from JSON`);
}
/** @internal */
exports.ResponseBody2$inboundSchema = z.object({
    type: z.literal("correction"),
    id: z.string(),
    key: z.string().default("orq_01kmjy31ab"),
    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 responseBody2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBody2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBody2' from JSON`);
}
/** @internal */
exports.ResponseBody1$inboundSchema = z.object({
    type: z.literal("boolean"),
    id: z.string(),
    key: z.string().default("orq_01kmjy31aa"),
    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 responseBody1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBody1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBody1' from JSON`);
}
/** @internal */
exports.ResponseBody$inboundSchema = z.union([
    z.lazy(() => exports.ResponseBody1$inboundSchema),
    z.lazy(() => exports.ResponseBody2$inboundSchema),
    z.lazy(() => exports.ResponseBody3$inboundSchema),
    z.lazy(() => exports.ResponseBody4$inboundSchema),
    z.lazy(() => exports.ResponseBody5$inboundSchema),
    z.lazy(() => exports.ResponseBody6$inboundSchema),
]);
function responseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBody' from JSON`);
}
//# sourceMappingURL=getv2humanevals.js.map