"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.PostV2HumanEvalsResponseBody$inboundSchema = exports.PostV2HumanEvalsResponseBody1$inboundSchema = exports.PostV2HumanEvalsResponseBody2$inboundSchema = exports.PostV2HumanEvalsResponseBody3$inboundSchema = exports.PostV2HumanEvalsResponseBodyConfig$inboundSchema = exports.PostV2HumanEvalsResponseBody4$inboundSchema = exports.PostV2HumanEvalsResponseBodyOptions$inboundSchema = exports.PostV2HumanEvalsResponseBodySentiment$inboundSchema = exports.PostV2HumanEvalsResponseBody5$inboundSchema = exports.PostV2HumanEvalsResponseBodyResponseOptions$inboundSchema = exports.PostV2HumanEvalsResponseBodyResponseSentiment$inboundSchema = exports.PostV2HumanEvalsResponseBody6$inboundSchema = exports.PostV2HumanEvalsRequestBody$outboundSchema = exports.PostV2HumanEvalsRequestBody1$outboundSchema = exports.PostV2HumanEvalsRequestBody2$outboundSchema = exports.PostV2HumanEvalsRequestBody3$outboundSchema = exports.Config$outboundSchema = exports.RequestBody4$outboundSchema = exports.Options$outboundSchema = exports.Sentiment$outboundSchema = exports.Five$outboundSchema = exports.RequestBodyOptions$outboundSchema = exports.RequestBodySentiment$outboundSchema = exports.RequestBody6$outboundSchema = exports.PostV2HumanEvalsResponseBodySentiment = exports.PostV2HumanEvalsResponseBodyResponseSentiment = exports.Sentiment = exports.RequestBodySentiment = void 0;
exports.requestBody6ToJSON = requestBody6ToJSON;
exports.requestBodyOptionsToJSON = requestBodyOptionsToJSON;
exports.fiveToJSON = fiveToJSON;
exports.optionsToJSON = optionsToJSON;
exports.requestBody4ToJSON = requestBody4ToJSON;
exports.configToJSON = configToJSON;
exports.postV2HumanEvalsRequestBody3ToJSON = postV2HumanEvalsRequestBody3ToJSON;
exports.postV2HumanEvalsRequestBody2ToJSON = postV2HumanEvalsRequestBody2ToJSON;
exports.postV2HumanEvalsRequestBody1ToJSON = postV2HumanEvalsRequestBody1ToJSON;
exports.postV2HumanEvalsRequestBodyToJSON = postV2HumanEvalsRequestBodyToJSON;
exports.postV2HumanEvalsResponseBody6FromJSON = postV2HumanEvalsResponseBody6FromJSON;
exports.postV2HumanEvalsResponseBodyResponseOptionsFromJSON = postV2HumanEvalsResponseBodyResponseOptionsFromJSON;
exports.postV2HumanEvalsResponseBody5FromJSON = postV2HumanEvalsResponseBody5FromJSON;
exports.postV2HumanEvalsResponseBodyOptionsFromJSON = postV2HumanEvalsResponseBodyOptionsFromJSON;
exports.postV2HumanEvalsResponseBody4FromJSON = postV2HumanEvalsResponseBody4FromJSON;
exports.postV2HumanEvalsResponseBodyConfigFromJSON = postV2HumanEvalsResponseBodyConfigFromJSON;
exports.postV2HumanEvalsResponseBody3FromJSON = postV2HumanEvalsResponseBody3FromJSON;
exports.postV2HumanEvalsResponseBody2FromJSON = postV2HumanEvalsResponseBody2FromJSON;
exports.postV2HumanEvalsResponseBody1FromJSON = postV2HumanEvalsResponseBody1FromJSON;
exports.postV2HumanEvalsResponseBodyFromJSON = postV2HumanEvalsResponseBodyFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
exports.RequestBodySentiment = {
    Neutral: "neutral",
    Positive: "positive",
    Negative: "negative",
};
exports.Sentiment = {
    Neutral: "neutral",
    Positive: "positive",
    Negative: "negative",
};
exports.PostV2HumanEvalsResponseBodyResponseSentiment = {
    Neutral: "neutral",
    Positive: "positive",
    Negative: "negative",
};
exports.PostV2HumanEvalsResponseBodySentiment = {
    Neutral: "neutral",
    Positive: "positive",
    Negative: "negative",
};
/** @internal */
exports.RequestBody6$outboundSchema = z.object({
    type: z.literal("text"),
    key: z.string().default("orq_01kmjy31bz"),
    displayName: z.string(),
    description: z.string(),
    projectId: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        displayName: "display_name",
        projectId: "project_id",
    });
});
function requestBody6ToJSON(requestBody6) {
    return JSON.stringify(exports.RequestBody6$outboundSchema.parse(requestBody6));
}
/** @internal */
exports.RequestBodySentiment$outboundSchema = z.nativeEnum(exports.RequestBodySentiment);
/** @internal */
exports.RequestBodyOptions$outboundSchema = z.object({
    value: z.string(),
    sentiment: exports.RequestBodySentiment$outboundSchema,
    description: z.string(),
    icon: z.string(),
});
function requestBodyOptionsToJSON(requestBodyOptions) {
    return JSON.stringify(exports.RequestBodyOptions$outboundSchema.parse(requestBodyOptions));
}
/** @internal */
exports.Five$outboundSchema = z.object({
    type: z.literal("single_select"),
    options: z.array(z.lazy(() => exports.RequestBodyOptions$outboundSchema)),
    key: z.string().default("orq_01kmjy31by"),
    displayName: z.string(),
    description: z.string(),
    projectId: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        displayName: "display_name",
        projectId: "project_id",
    });
});
function fiveToJSON(five) {
    return JSON.stringify(exports.Five$outboundSchema.parse(five));
}
/** @internal */
exports.Sentiment$outboundSchema = z
    .nativeEnum(exports.Sentiment);
/** @internal */
exports.Options$outboundSchema = z.object({
    value: z.string(),
    sentiment: exports.Sentiment$outboundSchema,
    description: z.string(),
    icon: z.string(),
});
function optionsToJSON(options) {
    return JSON.stringify(exports.Options$outboundSchema.parse(options));
}
/** @internal */
exports.RequestBody4$outboundSchema = z.object({
    type: z.literal("multi_select"),
    options: z.array(z.lazy(() => exports.Options$outboundSchema)),
    key: z.string().default("orq_01kmjy31bw"),
    displayName: z.string(),
    description: z.string(),
    projectId: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        displayName: "display_name",
        projectId: "project_id",
    });
});
function requestBody4ToJSON(requestBody4) {
    return JSON.stringify(exports.RequestBody4$outboundSchema.parse(requestBody4));
}
/** @internal */
exports.Config$outboundSchema = z.object({
    min: z.number().int(),
    max: z.number().int(),
});
function configToJSON(config) {
    return JSON.stringify(exports.Config$outboundSchema.parse(config));
}
/** @internal */
exports.PostV2HumanEvalsRequestBody3$outboundSchema = z.object({
    type: z.literal("range"),
    config: z.lazy(() => exports.Config$outboundSchema),
    key: z.string().default("orq_01kmjy31bt"),
    displayName: z.string(),
    description: z.string(),
    projectId: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        displayName: "display_name",
        projectId: "project_id",
    });
});
function postV2HumanEvalsRequestBody3ToJSON(postV2HumanEvalsRequestBody3) {
    return JSON.stringify(exports.PostV2HumanEvalsRequestBody3$outboundSchema.parse(postV2HumanEvalsRequestBody3));
}
/** @internal */
exports.PostV2HumanEvalsRequestBody2$outboundSchema = z.object({
    type: z.literal("correction"),
    key: z.string().default("orq_01kmjy31br"),
    displayName: z.string(),
    description: z.string(),
    projectId: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        displayName: "display_name",
        projectId: "project_id",
    });
});
function postV2HumanEvalsRequestBody2ToJSON(postV2HumanEvalsRequestBody2) {
    return JSON.stringify(exports.PostV2HumanEvalsRequestBody2$outboundSchema.parse(postV2HumanEvalsRequestBody2));
}
/** @internal */
exports.PostV2HumanEvalsRequestBody1$outboundSchema = z.object({
    type: z.literal("boolean"),
    key: z.string().default("orq_01kmjy31bq"),
    displayName: z.string(),
    description: z.string(),
    projectId: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        displayName: "display_name",
        projectId: "project_id",
    });
});
function postV2HumanEvalsRequestBody1ToJSON(postV2HumanEvalsRequestBody1) {
    return JSON.stringify(exports.PostV2HumanEvalsRequestBody1$outboundSchema.parse(postV2HumanEvalsRequestBody1));
}
/** @internal */
exports.PostV2HumanEvalsRequestBody$outboundSchema = z.union([
    z.lazy(() => exports.PostV2HumanEvalsRequestBody1$outboundSchema),
    z.lazy(() => exports.PostV2HumanEvalsRequestBody2$outboundSchema),
    z.lazy(() => exports.PostV2HumanEvalsRequestBody3$outboundSchema),
    z.lazy(() => exports.RequestBody4$outboundSchema),
    z.lazy(() => exports.Five$outboundSchema),
    z.lazy(() => exports.RequestBody6$outboundSchema),
]);
function postV2HumanEvalsRequestBodyToJSON(postV2HumanEvalsRequestBody) {
    return JSON.stringify(exports.PostV2HumanEvalsRequestBody$outboundSchema.parse(postV2HumanEvalsRequestBody));
}
/** @internal */
exports.PostV2HumanEvalsResponseBody6$inboundSchema = z.object({
    type: z.literal("text"),
    id: z.string(),
    key: z.string().default("orq_01kmjy31bn"),
    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 postV2HumanEvalsResponseBody6FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PostV2HumanEvalsResponseBody6$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostV2HumanEvalsResponseBody6' from JSON`);
}
/** @internal */
exports.PostV2HumanEvalsResponseBodyResponseSentiment$inboundSchema = z
    .nativeEnum(exports.PostV2HumanEvalsResponseBodyResponseSentiment);
/** @internal */
exports.PostV2HumanEvalsResponseBodyResponseOptions$inboundSchema = z.object({
    id: z.string(),
    value: z.string(),
    sentiment: exports.PostV2HumanEvalsResponseBodyResponseSentiment$inboundSchema,
    description: z.string(),
    icon: z.string(),
});
function postV2HumanEvalsResponseBodyResponseOptionsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PostV2HumanEvalsResponseBodyResponseOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostV2HumanEvalsResponseBodyResponseOptions' from JSON`);
}
/** @internal */
exports.PostV2HumanEvalsResponseBody5$inboundSchema = z.object({
    type: z.literal("single_select"),
    options: z.array(z.lazy(() => exports.PostV2HumanEvalsResponseBodyResponseOptions$inboundSchema)),
    id: z.string(),
    key: z.string().default("orq_01kmjy31bm"),
    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 postV2HumanEvalsResponseBody5FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PostV2HumanEvalsResponseBody5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostV2HumanEvalsResponseBody5' from JSON`);
}
/** @internal */
exports.PostV2HumanEvalsResponseBodySentiment$inboundSchema = z.nativeEnum(exports.PostV2HumanEvalsResponseBodySentiment);
/** @internal */
exports.PostV2HumanEvalsResponseBodyOptions$inboundSchema = z.object({
    id: z.string(),
    value: z.string(),
    sentiment: exports.PostV2HumanEvalsResponseBodySentiment$inboundSchema,
    description: z.string(),
    icon: z.string(),
});
function postV2HumanEvalsResponseBodyOptionsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PostV2HumanEvalsResponseBodyOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostV2HumanEvalsResponseBodyOptions' from JSON`);
}
/** @internal */
exports.PostV2HumanEvalsResponseBody4$inboundSchema = z.object({
    type: z.literal("multi_select"),
    options: z.array(z.lazy(() => exports.PostV2HumanEvalsResponseBodyOptions$inboundSchema)),
    id: z.string(),
    key: z.string().default("orq_01kmjy31bj"),
    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 postV2HumanEvalsResponseBody4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PostV2HumanEvalsResponseBody4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostV2HumanEvalsResponseBody4' from JSON`);
}
/** @internal */
exports.PostV2HumanEvalsResponseBodyConfig$inboundSchema = z.object({
    min: z.number().int(),
    max: z.number().int(),
});
function postV2HumanEvalsResponseBodyConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PostV2HumanEvalsResponseBodyConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostV2HumanEvalsResponseBodyConfig' from JSON`);
}
/** @internal */
exports.PostV2HumanEvalsResponseBody3$inboundSchema = z.object({
    type: z.literal("range"),
    config: z.lazy(() => exports.PostV2HumanEvalsResponseBodyConfig$inboundSchema),
    id: z.string(),
    key: z.string().default("orq_01kmjy31bf"),
    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 postV2HumanEvalsResponseBody3FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PostV2HumanEvalsResponseBody3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostV2HumanEvalsResponseBody3' from JSON`);
}
/** @internal */
exports.PostV2HumanEvalsResponseBody2$inboundSchema = z.object({
    type: z.literal("correction"),
    id: z.string(),
    key: z.string().default("orq_01kmjy31bd"),
    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 postV2HumanEvalsResponseBody2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PostV2HumanEvalsResponseBody2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostV2HumanEvalsResponseBody2' from JSON`);
}
/** @internal */
exports.PostV2HumanEvalsResponseBody1$inboundSchema = z.object({
    type: z.literal("boolean"),
    id: z.string(),
    key: z.string().default("orq_01kmjy31bc"),
    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 postV2HumanEvalsResponseBody1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PostV2HumanEvalsResponseBody1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostV2HumanEvalsResponseBody1' from JSON`);
}
/** @internal */
exports.PostV2HumanEvalsResponseBody$inboundSchema = z.union([
    z.lazy(() => exports.PostV2HumanEvalsResponseBody1$inboundSchema),
    z.lazy(() => exports.PostV2HumanEvalsResponseBody2$inboundSchema),
    z.lazy(() => exports.PostV2HumanEvalsResponseBody3$inboundSchema),
    z.lazy(() => exports.PostV2HumanEvalsResponseBody4$inboundSchema),
    z.lazy(() => exports.PostV2HumanEvalsResponseBody5$inboundSchema),
    z.lazy(() => exports.PostV2HumanEvalsResponseBody6$inboundSchema),
]);
function postV2HumanEvalsResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PostV2HumanEvalsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostV2HumanEvalsResponseBody' from JSON`);
}
//# sourceMappingURL=postv2humanevals.js.map