"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.GetEvalsFunctionParams10$inboundSchema = exports.GetEvalsFunctionParams11$inboundSchema = exports.GetEvalsFunctionParams12$inboundSchema = exports.GetEvalsFunctionParams13$inboundSchema = exports.GetEvalsFunctionParams14$inboundSchema = exports.GetEvalsFunctionParams15$inboundSchema = exports.GetEvalsFunctionParams16$inboundSchema = exports.GetEvalsFunctionParams17$inboundSchema = exports.GetEvalsFunctionParams18$inboundSchema = exports.GetEvalsFunctionParams19$inboundSchema = exports.GetEvalsFunctionParams20$inboundSchema = exports.GetEvalsFunctionParams21$inboundSchema = exports.GetEvalsFunctionParams22$inboundSchema = exports.GetEvalsFunctionParams23$inboundSchema = exports.GetEvalsFunctionParams24$inboundSchema = exports.GetEvalsFunctionParams25$inboundSchema = exports.GetEvalsFunctionParams26$inboundSchema = exports.GetEvalsFunctionParams27$inboundSchema = exports.GetEvalsFunctionParams28$inboundSchema = exports.GetEvalsFunctionParams29$inboundSchema = exports.GetEvalsFunctionParams30$inboundSchema = exports.GetEvalsFunctionParams31$inboundSchema = exports.GetEvalsFunctionParams32$inboundSchema = exports.GetEvalsDataEvalsResponseGuardrailConfig$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponseBoolean$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponseNumber$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponseOperator$inboundSchema = exports.DataRagas$inboundSchema = exports.DataRagasMetric$inboundSchema = exports.GetEvalsDataEvalsResponse200GuardrailConfig$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200Boolean$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200Number$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200Operator$inboundSchema = exports.DataTypescript$inboundSchema = exports.GetEvalsDataEvalsResponse200ApplicationJSONGuardrailConfig$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONOperator$inboundSchema = exports.ObjectT$inboundSchema = exports.GetEvalsRequest$outboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator = exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataOperator = exports.DataMethod = exports.GetEvalsGuardrailConfigOperator = exports.GetEvalsGuardrailConfigEvalsOperator = exports.GetEvalsGuardrailConfigEvalsResponseOperator = exports.DataRagasMetric = exports.GetEvalsGuardrailConfigEvalsResponse200Operator = exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONOperator = exports.ObjectT = void 0;
exports.GetEvalsResponseBody$inboundSchema = exports.Data$inboundSchema = exports.DataLLM$inboundSchema = exports.GetEvalsDataEvalsResponse200ApplicationJSONResponseBodyGuardrailConfig$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator$inboundSchema = exports.DataJSON$inboundSchema = exports.DataGuardrailConfig$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataBoolean$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$inboundSchema = exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataOperator$inboundSchema = exports.DataHTTP$inboundSchema = exports.DataMethod$inboundSchema = exports.GetEvalsDataGuardrailConfig$inboundSchema = exports.GetEvalsGuardrailConfigBoolean$inboundSchema = exports.GetEvalsGuardrailConfigNumber$inboundSchema = exports.GetEvalsGuardrailConfigOperator$inboundSchema = exports.DataPython$inboundSchema = exports.GetEvalsDataEvalsGuardrailConfig$inboundSchema = exports.GetEvalsGuardrailConfigEvalsBoolean$inboundSchema = exports.GetEvalsGuardrailConfigEvalsNumber$inboundSchema = exports.GetEvalsGuardrailConfigEvalsOperator$inboundSchema = exports.DataFunction$inboundSchema = exports.DataFunctionParams$inboundSchema = exports.GetEvalsFunctionParams1$inboundSchema = exports.GetEvalsFunctionParams2$inboundSchema = exports.GetEvalsFunctionParams3$inboundSchema = exports.GetEvalsFunctionParams4$inboundSchema = exports.GetEvalsFunctionParams5$inboundSchema = exports.GetEvalsFunctionParams6$inboundSchema = exports.GetEvalsFunctionParams7$inboundSchema = exports.GetEvalsFunctionParams8$inboundSchema = exports.GetEvalsFunctionParams9$inboundSchema = void 0;
exports.getEvalsRequestToJSON = getEvalsRequestToJSON;
exports.getEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumberFromJSON = getEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumberFromJSON;
exports.getEvalsGuardrailConfigEvalsResponse200ApplicationJSONBooleanFromJSON = getEvalsGuardrailConfigEvalsResponse200ApplicationJSONBooleanFromJSON;
exports.getEvalsDataEvalsResponse200ApplicationJSONGuardrailConfigFromJSON = getEvalsDataEvalsResponse200ApplicationJSONGuardrailConfigFromJSON;
exports.dataTypescriptFromJSON = dataTypescriptFromJSON;
exports.getEvalsGuardrailConfigEvalsResponse200NumberFromJSON = getEvalsGuardrailConfigEvalsResponse200NumberFromJSON;
exports.getEvalsGuardrailConfigEvalsResponse200BooleanFromJSON = getEvalsGuardrailConfigEvalsResponse200BooleanFromJSON;
exports.getEvalsDataEvalsResponse200GuardrailConfigFromJSON = getEvalsDataEvalsResponse200GuardrailConfigFromJSON;
exports.dataRagasFromJSON = dataRagasFromJSON;
exports.getEvalsGuardrailConfigEvalsResponseNumberFromJSON = getEvalsGuardrailConfigEvalsResponseNumberFromJSON;
exports.getEvalsGuardrailConfigEvalsResponseBooleanFromJSON = getEvalsGuardrailConfigEvalsResponseBooleanFromJSON;
exports.getEvalsDataEvalsResponseGuardrailConfigFromJSON = getEvalsDataEvalsResponseGuardrailConfigFromJSON;
exports.getEvalsFunctionParams32FromJSON = getEvalsFunctionParams32FromJSON;
exports.getEvalsFunctionParams31FromJSON = getEvalsFunctionParams31FromJSON;
exports.getEvalsFunctionParams30FromJSON = getEvalsFunctionParams30FromJSON;
exports.getEvalsFunctionParams29FromJSON = getEvalsFunctionParams29FromJSON;
exports.getEvalsFunctionParams28FromJSON = getEvalsFunctionParams28FromJSON;
exports.getEvalsFunctionParams27FromJSON = getEvalsFunctionParams27FromJSON;
exports.getEvalsFunctionParams26FromJSON = getEvalsFunctionParams26FromJSON;
exports.getEvalsFunctionParams25FromJSON = getEvalsFunctionParams25FromJSON;
exports.getEvalsFunctionParams24FromJSON = getEvalsFunctionParams24FromJSON;
exports.getEvalsFunctionParams23FromJSON = getEvalsFunctionParams23FromJSON;
exports.getEvalsFunctionParams22FromJSON = getEvalsFunctionParams22FromJSON;
exports.getEvalsFunctionParams21FromJSON = getEvalsFunctionParams21FromJSON;
exports.getEvalsFunctionParams20FromJSON = getEvalsFunctionParams20FromJSON;
exports.getEvalsFunctionParams19FromJSON = getEvalsFunctionParams19FromJSON;
exports.getEvalsFunctionParams18FromJSON = getEvalsFunctionParams18FromJSON;
exports.getEvalsFunctionParams17FromJSON = getEvalsFunctionParams17FromJSON;
exports.getEvalsFunctionParams16FromJSON = getEvalsFunctionParams16FromJSON;
exports.getEvalsFunctionParams15FromJSON = getEvalsFunctionParams15FromJSON;
exports.getEvalsFunctionParams14FromJSON = getEvalsFunctionParams14FromJSON;
exports.getEvalsFunctionParams13FromJSON = getEvalsFunctionParams13FromJSON;
exports.getEvalsFunctionParams12FromJSON = getEvalsFunctionParams12FromJSON;
exports.getEvalsFunctionParams11FromJSON = getEvalsFunctionParams11FromJSON;
exports.getEvalsFunctionParams10FromJSON = getEvalsFunctionParams10FromJSON;
exports.getEvalsFunctionParams9FromJSON = getEvalsFunctionParams9FromJSON;
exports.getEvalsFunctionParams8FromJSON = getEvalsFunctionParams8FromJSON;
exports.getEvalsFunctionParams7FromJSON = getEvalsFunctionParams7FromJSON;
exports.getEvalsFunctionParams6FromJSON = getEvalsFunctionParams6FromJSON;
exports.getEvalsFunctionParams5FromJSON = getEvalsFunctionParams5FromJSON;
exports.getEvalsFunctionParams4FromJSON = getEvalsFunctionParams4FromJSON;
exports.getEvalsFunctionParams3FromJSON = getEvalsFunctionParams3FromJSON;
exports.getEvalsFunctionParams2FromJSON = getEvalsFunctionParams2FromJSON;
exports.getEvalsFunctionParams1FromJSON = getEvalsFunctionParams1FromJSON;
exports.dataFunctionParamsFromJSON = dataFunctionParamsFromJSON;
exports.dataFunctionFromJSON = dataFunctionFromJSON;
exports.getEvalsGuardrailConfigEvalsNumberFromJSON = getEvalsGuardrailConfigEvalsNumberFromJSON;
exports.getEvalsGuardrailConfigEvalsBooleanFromJSON = getEvalsGuardrailConfigEvalsBooleanFromJSON;
exports.getEvalsDataEvalsGuardrailConfigFromJSON = getEvalsDataEvalsGuardrailConfigFromJSON;
exports.dataPythonFromJSON = dataPythonFromJSON;
exports.getEvalsGuardrailConfigNumberFromJSON = getEvalsGuardrailConfigNumberFromJSON;
exports.getEvalsGuardrailConfigBooleanFromJSON = getEvalsGuardrailConfigBooleanFromJSON;
exports.getEvalsDataGuardrailConfigFromJSON = getEvalsDataGuardrailConfigFromJSON;
exports.dataHTTPFromJSON = dataHTTPFromJSON;
exports.getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumberFromJSON = getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumberFromJSON;
exports.getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataBooleanFromJSON = getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataBooleanFromJSON;
exports.dataGuardrailConfigFromJSON = dataGuardrailConfigFromJSON;
exports.dataJSONFromJSON = dataJSONFromJSON;
exports.getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumberFromJSON = getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumberFromJSON;
exports.getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBooleanFromJSON = getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBooleanFromJSON;
exports.getEvalsDataEvalsResponse200ApplicationJSONResponseBodyGuardrailConfigFromJSON = getEvalsDataEvalsResponse200ApplicationJSONResponseBodyGuardrailConfigFromJSON;
exports.dataLLMFromJSON = dataLLMFromJSON;
exports.dataFromJSON = dataFromJSON;
exports.getEvalsResponseBodyFromJSON = getEvalsResponseBodyFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
exports.ObjectT = {
    List: "list",
};
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.GetEvalsGuardrailConfigEvalsResponse200Operator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.DataRagasMetric = {
    ContextPrecision: "context_precision",
    ContextRecall: "context_recall",
    ContextEntitiesRecall: "context_entities_recall",
    Harmfulness: "harmfulness",
    Maliciousness: "maliciousness",
    Coherence: "coherence",
    Correctness: "correctness",
    Conciseness: "conciseness",
    ResponseRelevancy: "response_relevancy",
    Faithfulness: "faithfulness",
    Summarization: "summarization",
    NoiseSensitivity: "noise_sensitivity",
};
exports.GetEvalsGuardrailConfigEvalsResponseOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.GetEvalsGuardrailConfigEvalsOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.GetEvalsGuardrailConfigOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.DataMethod = {
    Get: "GET",
    Post: "POST",
};
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
/** @internal */
exports.GetEvalsRequest$outboundSchema = z.object({
    limit: z.number().default(10),
    startingAfter: z.string().optional(),
    endingBefore: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        startingAfter: "starting_after",
        endingBefore: "ending_before",
    });
});
function getEvalsRequestToJSON(getEvalsRequest) {
    return JSON.stringify(exports.GetEvalsRequest$outboundSchema.parse(getEvalsRequest));
}
/** @internal */
exports.ObjectT$inboundSchema = z
    .nativeEnum(exports.ObjectT);
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONOperator$inboundSchema = z.nativeEnum(exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONOperator);
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONOperator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsResponse200ApplicationJSONBooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONBoolean' from JSON`);
}
/** @internal */
exports.GetEvalsDataEvalsResponse200ApplicationJSONGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema),
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema),
]);
function getEvalsDataEvalsResponse200ApplicationJSONGuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsDataEvalsResponse200ApplicationJSONGuardrailConfig$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'GetEvalsDataEvalsResponse200ApplicationJSONGuardrailConfig' from JSON`);
}
/** @internal */
exports.DataTypescript$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-01-27T15:56:12.654Z"),
    updated: z.string().default("2026-01-27T15:56:12.654Z"),
    guardrail_config: z.union([
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema),
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema),
    ]).optional(),
    code: z.string(),
    type: z.literal("typescript_eval"),
    key: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "guardrail_config": "guardrailConfig",
    });
});
function dataTypescriptFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataTypescript$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataTypescript' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200Operator$inboundSchema = z
    .nativeEnum(exports.GetEvalsGuardrailConfigEvalsResponse200Operator);
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200Number$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.GetEvalsGuardrailConfigEvalsResponse200Operator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsResponse200NumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsResponse200Number$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsResponse200Number' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200Boolean$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsResponse200BooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsResponse200Boolean$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsResponse200Boolean' from JSON`);
}
/** @internal */
exports.GetEvalsDataEvalsResponse200GuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200Boolean$inboundSchema),
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200Number$inboundSchema),
]);
function getEvalsDataEvalsResponse200GuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsDataEvalsResponse200GuardrailConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsDataEvalsResponse200GuardrailConfig' from JSON`);
}
/** @internal */
exports.DataRagasMetric$inboundSchema = z.nativeEnum(exports.DataRagasMetric);
/** @internal */
exports.DataRagas$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-01-27T15:56:12.654Z"),
    updated: z.string().default("2026-01-27T15:56:12.654Z"),
    guardrail_config: z.union([
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200Boolean$inboundSchema),
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200Number$inboundSchema),
    ]).optional(),
    type: z.literal("ragas"),
    ragas_metric: exports.DataRagasMetric$inboundSchema,
    key: z.string(),
    model: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "guardrail_config": "guardrailConfig",
        "ragas_metric": "ragasMetric",
    });
});
function dataRagasFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataRagas$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataRagas' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponseOperator$inboundSchema = z
    .nativeEnum(exports.GetEvalsGuardrailConfigEvalsResponseOperator);
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponseNumber$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.GetEvalsGuardrailConfigEvalsResponseOperator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsResponseNumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsResponseNumber$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsResponseNumber' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponseBoolean$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsResponseBooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsResponseBoolean$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsResponseBoolean' from JSON`);
}
/** @internal */
exports.GetEvalsDataEvalsResponseGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponseBoolean$inboundSchema),
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponseNumber$inboundSchema),
]);
function getEvalsDataEvalsResponseGuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsDataEvalsResponseGuardrailConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsDataEvalsResponseGuardrailConfig' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams32$inboundSchema = z.object({
    type: z.literal("grammar_diversity"),
});
function getEvalsFunctionParams32FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams32$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams32' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams31$inboundSchema = z.object({
    type: z.literal("lexical_repetition"),
});
function getEvalsFunctionParams31FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams31$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams31' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams30$inboundSchema = z.object({
    type: z.literal("sentences_count"),
});
function getEvalsFunctionParams30FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams30$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams30' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams29$inboundSchema = z.object({
    type: z.literal("words_count"),
});
function getEvalsFunctionParams29FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams29$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams29' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams28$inboundSchema = z.object({
    type: z.literal("gse_english_level"),
});
function getEvalsFunctionParams28FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams28$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams28' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams27$inboundSchema = z.object({
    type: z.literal("flesch_reading_ease"),
});
function getEvalsFunctionParams27FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams27$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams27' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams26$inboundSchema = z.object({
    type: z.literal("most_repeated_words"),
});
function getEvalsFunctionParams26FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams26$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams26' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams25$inboundSchema = z.object({
    type: z.literal("keywords_match"),
    keywords: z.array(z.string()),
});
function getEvalsFunctionParams25FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams25$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams25' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams24$inboundSchema = z.object({
    type: z.literal("levenshtein_distance"),
});
function getEvalsFunctionParams24FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams24$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams24' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams23$inboundSchema = z.object({
    type: z.literal("cosine_similarity"),
});
function getEvalsFunctionParams23FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams23$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams23' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams22$inboundSchema = z.object({
    type: z.literal("meteor_score"),
});
function getEvalsFunctionParams22FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams22$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams22' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams21$inboundSchema = z.object({
    type: z.literal("rouge_n"),
});
function getEvalsFunctionParams21FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams21$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams21' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams20$inboundSchema = z.object({
    type: z.literal("bleu_score"),
});
function getEvalsFunctionParams20FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams20$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams20' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams19$inboundSchema = z.object({
    type: z.literal("bert_score"),
});
function getEvalsFunctionParams19FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams19$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams19' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams18$inboundSchema = z.object({
    type: z.literal("moderations_google"),
});
function getEvalsFunctionParams18FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams18$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams18' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams17$inboundSchema = z.object({
    type: z.literal("moderations_openai"),
});
function getEvalsFunctionParams17FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams17$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams17' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams16$inboundSchema = z.object({
    type: z.literal("is_valid_json"),
});
function getEvalsFunctionParams16FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams16$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams16' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams15$inboundSchema = z.object({
    type: z.literal("regex"),
    pattern: z.string(),
});
function getEvalsFunctionParams15FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams15$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams15' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams14$inboundSchema = z.object({
    type: z.literal("one_line"),
});
function getEvalsFunctionParams14FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams14$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams14' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams13$inboundSchema = z.object({
    type: z.literal("length_greater_than"),
    value: z.number(),
});
function getEvalsFunctionParams13FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams13$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams13' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams12$inboundSchema = z.object({
    type: z.literal("length_between"),
    min: z.number(),
    max: z.number(),
});
function getEvalsFunctionParams12FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams12$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams12' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams11$inboundSchema = z.object({
    type: z.literal("length_less_than"),
    value: z.number(),
});
function getEvalsFunctionParams11FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams11$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams11' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams10$inboundSchema = z.object({
    type: z.literal("exact_match"),
});
function getEvalsFunctionParams10FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams10$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams10' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams9$inboundSchema = z.object({
    type: z.literal("ends_with"),
    value: z.string(),
});
function getEvalsFunctionParams9FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams9$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams9' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams8$inboundSchema = z.object({
    type: z.literal("start_with"),
    value: z.string(),
});
function getEvalsFunctionParams8FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams8$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams8' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams7$inboundSchema = z.object({
    type: z.literal("contains_valid_link"),
});
function getEvalsFunctionParams7FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams7$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams7' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams6$inboundSchema = z.object({
    type: z.literal("contains_url"),
});
function getEvalsFunctionParams6FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams6$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams6' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams5$inboundSchema = z.object({
    type: z.literal("contains_email"),
});
function getEvalsFunctionParams5FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams5' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams4$inboundSchema = z.object({
    type: z.literal("contains_any"),
    keywords: z.array(z.string()),
});
function getEvalsFunctionParams4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams4' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams3$inboundSchema = z.object({
    type: z.literal("contains_all"),
    keywords: z.array(z.string()),
});
function getEvalsFunctionParams3FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams3' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams2$inboundSchema = z.object({
    type: z.literal("contains_none"),
    keywords: z.array(z.string()),
});
function getEvalsFunctionParams2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams2' from JSON`);
}
/** @internal */
exports.GetEvalsFunctionParams1$inboundSchema = z.object({
    type: z.literal("contains"),
    value: z.string(),
});
function getEvalsFunctionParams1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsFunctionParams1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsFunctionParams1' from JSON`);
}
/** @internal */
exports.DataFunctionParams$inboundSchema = z.union([
    z.lazy(() => exports.GetEvalsFunctionParams1$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams2$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams3$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams4$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams5$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams6$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams7$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams8$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams9$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams10$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams11$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams12$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams13$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams14$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams15$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams16$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams17$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams18$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams19$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams20$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams21$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams22$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams23$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams24$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams25$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams26$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams27$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams28$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams29$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams30$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams31$inboundSchema),
    z.lazy(() => exports.GetEvalsFunctionParams32$inboundSchema),
]);
function dataFunctionParamsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataFunctionParams$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataFunctionParams' from JSON`);
}
/** @internal */
exports.DataFunction$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-01-27T15:56:12.654Z"),
    updated: z.string().default("2026-01-27T15:56:12.654Z"),
    guardrail_config: z.union([
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponseBoolean$inboundSchema),
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponseNumber$inboundSchema),
    ]).optional(),
    type: z.literal("function_eval"),
    function_params: z.union([
        z.lazy(() => exports.GetEvalsFunctionParams1$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams2$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams3$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams4$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams5$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams6$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams7$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams8$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams9$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams10$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams11$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams12$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams13$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams14$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams15$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams16$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams17$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams18$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams19$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams20$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams21$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams22$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams23$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams24$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams25$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams26$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams27$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams28$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams29$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams30$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams31$inboundSchema),
        z.lazy(() => exports.GetEvalsFunctionParams32$inboundSchema),
    ]),
    key: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "guardrail_config": "guardrailConfig",
        "function_params": "functionParams",
    });
});
function dataFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataFunction' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigEvalsOperator$inboundSchema = z.nativeEnum(exports.GetEvalsGuardrailConfigEvalsOperator);
/** @internal */
exports.GetEvalsGuardrailConfigEvalsNumber$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.GetEvalsGuardrailConfigEvalsOperator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsNumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsNumber$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsNumber' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigEvalsBoolean$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsBooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsBoolean$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsBoolean' from JSON`);
}
/** @internal */
exports.GetEvalsDataEvalsGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsBoolean$inboundSchema),
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsNumber$inboundSchema),
]);
function getEvalsDataEvalsGuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsDataEvalsGuardrailConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsDataEvalsGuardrailConfig' from JSON`);
}
/** @internal */
exports.DataPython$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-01-27T15:56:12.654Z"),
    updated: z.string().default("2026-01-27T15:56:12.654Z"),
    guardrail_config: z.union([
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsBoolean$inboundSchema),
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsNumber$inboundSchema),
    ]).optional(),
    code: z.string(),
    type: z.literal("python_eval"),
    key: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "guardrail_config": "guardrailConfig",
    });
});
function dataPythonFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataPython$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataPython' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigOperator$inboundSchema = z.nativeEnum(exports.GetEvalsGuardrailConfigOperator);
/** @internal */
exports.GetEvalsGuardrailConfigNumber$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.GetEvalsGuardrailConfigOperator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigNumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigNumber$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigNumber' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigBoolean$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigBooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigBoolean$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigBoolean' from JSON`);
}
/** @internal */
exports.GetEvalsDataGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.GetEvalsGuardrailConfigBoolean$inboundSchema),
    z.lazy(() => exports.GetEvalsGuardrailConfigNumber$inboundSchema),
]);
function getEvalsDataGuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsDataGuardrailConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsDataGuardrailConfig' from JSON`);
}
/** @internal */
exports.DataMethod$inboundSchema = z
    .nativeEnum(exports.DataMethod);
/** @internal */
exports.DataHTTP$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-01-27T15:56:12.654Z"),
    updated: z.string().default("2026-01-27T15:56:12.654Z"),
    guardrail_config: z.union([
        z.lazy(() => exports.GetEvalsGuardrailConfigBoolean$inboundSchema),
        z.lazy(() => exports.GetEvalsGuardrailConfigNumber$inboundSchema),
    ]).optional(),
    type: z.literal("http_eval"),
    url: z.string(),
    method: exports.DataMethod$inboundSchema,
    headers: z.record(z.string()),
    payload: z.record(z.any()),
    key: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "guardrail_config": "guardrailConfig",
    });
});
function dataHTTPFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataHTTP$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataHTTP' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataOperator$inboundSchema = z.nativeEnum(exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataOperator);
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataOperator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataBoolean$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataBooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataBoolean$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataBoolean' from JSON`);
}
/** @internal */
exports.DataGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataBoolean$inboundSchema),
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$inboundSchema),
]);
function dataGuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataGuardrailConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataGuardrailConfig' from JSON`);
}
/** @internal */
exports.DataJSON$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-01-27T15:56:12.654Z"),
    updated: z.string().default("2026-01-27T15:56:12.654Z"),
    guardrail_config: z.union([
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataBoolean$inboundSchema),
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyDataNumber$inboundSchema),
    ]).optional(),
    type: z.literal("json_schema"),
    schema: z.string(),
    key: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "guardrail_config": "guardrailConfig",
    });
});
function dataJSONFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataJSON$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataJSON' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator$inboundSchema = z.nativeEnum(exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator);
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber' from JSON`);
}
/** @internal */
exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function getEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean' from JSON`);
}
/** @internal */
exports.GetEvalsDataEvalsResponse200ApplicationJSONResponseBodyGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema),
    z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema),
]);
function getEvalsDataEvalsResponse200ApplicationJSONResponseBodyGuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsDataEvalsResponse200ApplicationJSONResponseBodyGuardrailConfig$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'GetEvalsDataEvalsResponse200ApplicationJSONResponseBodyGuardrailConfig' from JSON`);
}
/** @internal */
exports.DataLLM$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-01-27T15:56:12.654Z"),
    updated: z.string().default("2026-01-27T15:56:12.654Z"),
    guardrail_config: z.union([
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema),
        z.lazy(() => exports.GetEvalsGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema),
    ]).optional(),
    type: z.literal("llm_eval"),
    prompt: z.string(),
    key: z.string(),
    model: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "guardrail_config": "guardrailConfig",
    });
});
function dataLLMFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataLLM$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataLLM' from JSON`);
}
/** @internal */
exports.Data$inboundSchema = z
    .union([
    z.lazy(() => exports.DataLLM$inboundSchema),
    z.lazy(() => exports.DataJSON$inboundSchema),
    z.lazy(() => exports.DataHTTP$inboundSchema),
    z.lazy(() => exports.DataPython$inboundSchema),
    z.lazy(() => exports.DataFunction$inboundSchema),
    z.lazy(() => exports.DataRagas$inboundSchema),
    z.lazy(() => exports.DataTypescript$inboundSchema),
]);
function dataFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Data$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Data' from JSON`);
}
/** @internal */
exports.GetEvalsResponseBody$inboundSchema = z.object({
    object: exports.ObjectT$inboundSchema,
    data: z.array(z.union([
        z.lazy(() => exports.DataLLM$inboundSchema),
        z.lazy(() => exports.DataJSON$inboundSchema),
        z.lazy(() => exports.DataHTTP$inboundSchema),
        z.lazy(() => exports.DataPython$inboundSchema),
        z.lazy(() => exports.DataFunction$inboundSchema),
        z.lazy(() => exports.DataRagas$inboundSchema),
        z.lazy(() => exports.DataTypescript$inboundSchema),
    ])),
    has_more: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "has_more": "hasMore",
    });
});
function getEvalsResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetEvalsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEvalsResponseBody' from JSON`);
}
//# sourceMappingURL=getevals.js.map