"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.ResponseBodyTypescript$inboundSchema = exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJson7GuardrailConfig$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Operator$inboundSchema = exports.UpdateEvalRequest$outboundSchema = exports.UpdateEvalRequestBody$outboundSchema = exports.RequestBodyLLM$outboundSchema = exports.UpdateEvalRequestBodyOutputType$outboundSchema = exports.UpdateEvalRequestBodyGuardrailConfig$outboundSchema = exports.UpdateEvalGuardrailConfigBoolean$outboundSchema = exports.UpdateEvalGuardrailConfigNumber$outboundSchema = exports.UpdateEvalGuardrailConfigOperator$outboundSchema = exports.RequestBodyJSON$outboundSchema = exports.UpdateEvalRequestBodyEvalsOutputType$outboundSchema = exports.UpdateEvalRequestBodyEvalsGuardrailConfig$outboundSchema = exports.UpdateEvalGuardrailConfigEvalsBoolean$outboundSchema = exports.UpdateEvalGuardrailConfigEvalsNumber$outboundSchema = exports.UpdateEvalGuardrailConfigEvalsOperator$outboundSchema = exports.RequestBodyHTTP$outboundSchema = exports.RequestBodyMethod$outboundSchema = exports.UpdateEvalRequestBodyEvalsRequestOutputType$outboundSchema = exports.UpdateEvalRequestBodyEvalsRequestGuardrailConfig$outboundSchema = exports.UpdateEvalGuardrailConfigEvalsRequestBoolean$outboundSchema = exports.UpdateEvalGuardrailConfigEvalsRequestNumber$outboundSchema = exports.UpdateEvalGuardrailConfigEvalsRequestOperator$outboundSchema = exports.RequestBodyPython$outboundSchema = exports.UpdateEvalRequestBodyEvalsRequest4OutputType$outboundSchema = exports.UpdateEvalRequestBodyEvalsRequest4GuardrailConfig$outboundSchema = exports.UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$outboundSchema = exports.UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber$outboundSchema = exports.UpdateEvalGuardrailConfigEvalsRequestRequestBodyOperator$outboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponseOperator = exports.UpdateEvalGuardrailConfigEvalsResponse200Operator = exports.UpdateEvalResponseBodyMethod = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Operator = exports.ResponseBodyRagasMetric = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Operator = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Operator = exports.UpdateEvalRequestBodyOutputType = exports.UpdateEvalGuardrailConfigOperator = exports.UpdateEvalRequestBodyEvalsOutputType = exports.UpdateEvalGuardrailConfigEvalsOperator = exports.RequestBodyMethod = exports.UpdateEvalRequestBodyEvalsRequestOutputType = exports.UpdateEvalGuardrailConfigEvalsRequestOperator = exports.UpdateEvalRequestBodyEvalsRequest4OutputType = exports.UpdateEvalGuardrailConfigEvalsRequestRequestBodyOperator = void 0;
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator$inboundSchema = exports.UpdateEvalResponseBodyPython$inboundSchema = exports.UpdateEvalResponseBodyEvalsResponse200GuardrailConfig$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator$inboundSchema = exports.ResponseBodyFunction$inboundSchema = exports.ResponseBodyFunctionParams$inboundSchema = exports.FunctionParams1$inboundSchema = exports.FunctionParams2$inboundSchema = exports.FunctionParams3$inboundSchema = exports.FunctionParams4$inboundSchema = exports.FunctionParams5$inboundSchema = exports.FunctionParams6$inboundSchema = exports.FunctionParams7$inboundSchema = exports.FunctionParams8$inboundSchema = exports.FunctionParams9$inboundSchema = exports.FunctionParams10$inboundSchema = exports.FunctionParams11$inboundSchema = exports.FunctionParams12$inboundSchema = exports.FunctionParams13$inboundSchema = exports.FunctionParams14$inboundSchema = exports.FunctionParams15$inboundSchema = exports.FunctionParams16$inboundSchema = exports.FunctionParams17$inboundSchema = exports.FunctionParams18$inboundSchema = exports.FunctionParams19$inboundSchema = exports.FunctionParams20$inboundSchema = exports.FunctionParams21$inboundSchema = exports.FunctionParams22$inboundSchema = exports.FunctionParams23$inboundSchema = exports.FunctionParams24$inboundSchema = exports.FunctionParams25$inboundSchema = exports.FunctionParams26$inboundSchema = exports.FunctionParams27$inboundSchema = exports.FunctionParams28$inboundSchema = exports.FunctionParams29$inboundSchema = exports.FunctionParams30$inboundSchema = exports.FunctionParams31$inboundSchema = exports.FunctionParams32$inboundSchema = exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJSONGuardrailConfig$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Boolean$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Operator$inboundSchema = exports.ResponseBodyRagas$inboundSchema = exports.ResponseBodyRagasMetric$inboundSchema = exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJson6GuardrailConfig$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Operator$inboundSchema = void 0;
exports.UpdateEvalResponseBody$inboundSchema = exports.UpdateEvalResponseBodyLLM$inboundSchema = exports.UpdateEvalResponseBodyGuardrailConfig$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponseOperator$inboundSchema = exports.UpdateEvalResponseBodyJSON$inboundSchema = exports.UpdateEvalResponseBodyEvalsGuardrailConfig$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200Operator$inboundSchema = exports.UpdateEvalResponseBodyHTTP$inboundSchema = exports.UpdateEvalResponseBodyMethod$inboundSchema = exports.UpdateEvalResponseBodyEvalsResponseGuardrailConfig$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema = exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema = void 0;
exports.updateEvalGuardrailConfigEvalsRequestRequestBodyNumberToJSON = updateEvalGuardrailConfigEvalsRequestRequestBodyNumberToJSON;
exports.updateEvalGuardrailConfigEvalsRequestRequestBodyBooleanToJSON = updateEvalGuardrailConfigEvalsRequestRequestBodyBooleanToJSON;
exports.updateEvalRequestBodyEvalsRequest4GuardrailConfigToJSON = updateEvalRequestBodyEvalsRequest4GuardrailConfigToJSON;
exports.requestBodyPythonToJSON = requestBodyPythonToJSON;
exports.updateEvalGuardrailConfigEvalsRequestNumberToJSON = updateEvalGuardrailConfigEvalsRequestNumberToJSON;
exports.updateEvalGuardrailConfigEvalsRequestBooleanToJSON = updateEvalGuardrailConfigEvalsRequestBooleanToJSON;
exports.updateEvalRequestBodyEvalsRequestGuardrailConfigToJSON = updateEvalRequestBodyEvalsRequestGuardrailConfigToJSON;
exports.requestBodyHTTPToJSON = requestBodyHTTPToJSON;
exports.updateEvalGuardrailConfigEvalsNumberToJSON = updateEvalGuardrailConfigEvalsNumberToJSON;
exports.updateEvalGuardrailConfigEvalsBooleanToJSON = updateEvalGuardrailConfigEvalsBooleanToJSON;
exports.updateEvalRequestBodyEvalsGuardrailConfigToJSON = updateEvalRequestBodyEvalsGuardrailConfigToJSON;
exports.requestBodyJSONToJSON = requestBodyJSONToJSON;
exports.updateEvalGuardrailConfigNumberToJSON = updateEvalGuardrailConfigNumberToJSON;
exports.updateEvalGuardrailConfigBooleanToJSON = updateEvalGuardrailConfigBooleanToJSON;
exports.updateEvalRequestBodyGuardrailConfigToJSON = updateEvalRequestBodyGuardrailConfigToJSON;
exports.requestBodyLLMToJSON = requestBodyLLMToJSON;
exports.updateEvalRequestBodyToJSON = updateEvalRequestBodyToJSON;
exports.updateEvalRequestToJSON = updateEvalRequestToJSON;
exports.updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7NumberFromJSON = updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7NumberFromJSON;
exports.updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7BooleanFromJSON = updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7BooleanFromJSON;
exports.updateEvalResponseBodyEvalsResponse200ApplicationJSON7GuardrailConfigFromJSON = updateEvalResponseBodyEvalsResponse200ApplicationJSON7GuardrailConfigFromJSON;
exports.responseBodyTypescriptFromJSON = responseBodyTypescriptFromJSON;
exports.updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6NumberFromJSON = updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6NumberFromJSON;
exports.updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6BooleanFromJSON = updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6BooleanFromJSON;
exports.updateEvalResponseBodyEvalsResponse200ApplicationJSON6GuardrailConfigFromJSON = updateEvalResponseBodyEvalsResponse200ApplicationJSON6GuardrailConfigFromJSON;
exports.responseBodyRagasFromJSON = responseBodyRagasFromJSON;
exports.updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5NumberFromJSON = updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5NumberFromJSON;
exports.updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5BooleanFromJSON = updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5BooleanFromJSON;
exports.updateEvalResponseBodyEvalsResponse200ApplicationJSONGuardrailConfigFromJSON = updateEvalResponseBodyEvalsResponse200ApplicationJSONGuardrailConfigFromJSON;
exports.functionParams32FromJSON = functionParams32FromJSON;
exports.functionParams31FromJSON = functionParams31FromJSON;
exports.functionParams30FromJSON = functionParams30FromJSON;
exports.functionParams29FromJSON = functionParams29FromJSON;
exports.functionParams28FromJSON = functionParams28FromJSON;
exports.functionParams27FromJSON = functionParams27FromJSON;
exports.functionParams26FromJSON = functionParams26FromJSON;
exports.functionParams25FromJSON = functionParams25FromJSON;
exports.functionParams24FromJSON = functionParams24FromJSON;
exports.functionParams23FromJSON = functionParams23FromJSON;
exports.functionParams22FromJSON = functionParams22FromJSON;
exports.functionParams21FromJSON = functionParams21FromJSON;
exports.functionParams20FromJSON = functionParams20FromJSON;
exports.functionParams19FromJSON = functionParams19FromJSON;
exports.functionParams18FromJSON = functionParams18FromJSON;
exports.functionParams17FromJSON = functionParams17FromJSON;
exports.functionParams16FromJSON = functionParams16FromJSON;
exports.functionParams15FromJSON = functionParams15FromJSON;
exports.functionParams14FromJSON = functionParams14FromJSON;
exports.functionParams13FromJSON = functionParams13FromJSON;
exports.functionParams12FromJSON = functionParams12FromJSON;
exports.functionParams11FromJSON = functionParams11FromJSON;
exports.functionParams10FromJSON = functionParams10FromJSON;
exports.functionParams9FromJSON = functionParams9FromJSON;
exports.functionParams8FromJSON = functionParams8FromJSON;
exports.functionParams7FromJSON = functionParams7FromJSON;
exports.functionParams6FromJSON = functionParams6FromJSON;
exports.functionParams5FromJSON = functionParams5FromJSON;
exports.functionParams4FromJSON = functionParams4FromJSON;
exports.functionParams3FromJSON = functionParams3FromJSON;
exports.functionParams2FromJSON = functionParams2FromJSON;
exports.functionParams1FromJSON = functionParams1FromJSON;
exports.responseBodyFunctionParamsFromJSON = responseBodyFunctionParamsFromJSON;
exports.responseBodyFunctionFromJSON = responseBodyFunctionFromJSON;
exports.updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumberFromJSON = updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumberFromJSON;
exports.updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBooleanFromJSON = updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBooleanFromJSON;
exports.updateEvalResponseBodyEvalsResponse200GuardrailConfigFromJSON = updateEvalResponseBodyEvalsResponse200GuardrailConfigFromJSON;
exports.updateEvalResponseBodyPythonFromJSON = updateEvalResponseBodyPythonFromJSON;
exports.updateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumberFromJSON = updateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumberFromJSON;
exports.updateEvalGuardrailConfigEvalsResponse200ApplicationJSONBooleanFromJSON = updateEvalGuardrailConfigEvalsResponse200ApplicationJSONBooleanFromJSON;
exports.updateEvalResponseBodyEvalsResponseGuardrailConfigFromJSON = updateEvalResponseBodyEvalsResponseGuardrailConfigFromJSON;
exports.updateEvalResponseBodyHTTPFromJSON = updateEvalResponseBodyHTTPFromJSON;
exports.updateEvalGuardrailConfigEvalsResponse200NumberFromJSON = updateEvalGuardrailConfigEvalsResponse200NumberFromJSON;
exports.updateEvalGuardrailConfigEvalsResponse200BooleanFromJSON = updateEvalGuardrailConfigEvalsResponse200BooleanFromJSON;
exports.updateEvalResponseBodyEvalsGuardrailConfigFromJSON = updateEvalResponseBodyEvalsGuardrailConfigFromJSON;
exports.updateEvalResponseBodyJSONFromJSON = updateEvalResponseBodyJSONFromJSON;
exports.updateEvalGuardrailConfigEvalsResponseNumberFromJSON = updateEvalGuardrailConfigEvalsResponseNumberFromJSON;
exports.updateEvalGuardrailConfigEvalsResponseBooleanFromJSON = updateEvalGuardrailConfigEvalsResponseBooleanFromJSON;
exports.updateEvalResponseBodyGuardrailConfigFromJSON = updateEvalResponseBodyGuardrailConfigFromJSON;
exports.updateEvalResponseBodyLLMFromJSON = updateEvalResponseBodyLLMFromJSON;
exports.updateEvalResponseBodyFromJSON = updateEvalResponseBodyFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
exports.UpdateEvalGuardrailConfigEvalsRequestRequestBodyOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.UpdateEvalRequestBodyEvalsRequest4OutputType = {
    Boolean: "boolean",
    Number: "number",
};
exports.UpdateEvalGuardrailConfigEvalsRequestOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
/**
 * The type of output expected from the evaluator
 */
exports.UpdateEvalRequestBodyEvalsRequestOutputType = {
    Boolean: "boolean",
    Categorical: "categorical",
    Number: "number",
    String: "string",
};
exports.RequestBodyMethod = {
    Get: "GET",
    Post: "POST",
};
exports.UpdateEvalGuardrailConfigEvalsOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.UpdateEvalRequestBodyEvalsOutputType = {
    Boolean: "boolean",
};
exports.UpdateEvalGuardrailConfigOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
/**
 * The type of output expected from the evaluator
 */
exports.UpdateEvalRequestBodyOutputType = {
    Boolean: "boolean",
    Categorical: "categorical",
    Number: "number",
    String: "string",
};
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Operator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Operator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.ResponseBodyRagasMetric = {
    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.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Operator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.UpdateEvalResponseBodyMethod = {
    Get: "GET",
    Post: "POST",
};
exports.UpdateEvalGuardrailConfigEvalsResponse200Operator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
exports.UpdateEvalGuardrailConfigEvalsResponseOperator = {
    Eq: "eq",
    Ne: "ne",
    Gt: "gt",
    Gte: "gte",
    Lt: "lt",
    Lte: "lte",
};
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsRequestRequestBodyOperator$outboundSchema = z.nativeEnum(exports.UpdateEvalGuardrailConfigEvalsRequestRequestBodyOperator);
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber$outboundSchema = z.object({
    enabled: z.boolean(),
    alertOnFailure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.UpdateEvalGuardrailConfigEvalsRequestRequestBodyOperator$outboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        alertOnFailure: "alert_on_failure",
    });
});
function updateEvalGuardrailConfigEvalsRequestRequestBodyNumberToJSON(updateEvalGuardrailConfigEvalsRequestRequestBodyNumber) {
    return JSON.stringify(exports.UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber$outboundSchema.parse(updateEvalGuardrailConfigEvalsRequestRequestBodyNumber));
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$outboundSchema = z.object({
    enabled: z.boolean(),
    alertOnFailure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        alertOnFailure: "alert_on_failure",
    });
});
function updateEvalGuardrailConfigEvalsRequestRequestBodyBooleanToJSON(updateEvalGuardrailConfigEvalsRequestRequestBodyBoolean) {
    return JSON.stringify(exports.UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$outboundSchema
        .parse(updateEvalGuardrailConfigEvalsRequestRequestBodyBoolean));
}
/** @internal */
exports.UpdateEvalRequestBodyEvalsRequest4GuardrailConfig$outboundSchema = z.union([
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$outboundSchema),
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber$outboundSchema),
]);
function updateEvalRequestBodyEvalsRequest4GuardrailConfigToJSON(updateEvalRequestBodyEvalsRequest4GuardrailConfig) {
    return JSON.stringify(exports.UpdateEvalRequestBodyEvalsRequest4GuardrailConfig$outboundSchema.parse(updateEvalRequestBodyEvalsRequest4GuardrailConfig));
}
/** @internal */
exports.UpdateEvalRequestBodyEvalsRequest4OutputType$outboundSchema = z
    .nativeEnum(exports.UpdateEvalRequestBodyEvalsRequest4OutputType);
/** @internal */
exports.RequestBodyPython$outboundSchema = z.object({
    guardrailConfig: z.union([
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsRequestRequestBodyBoolean$outboundSchema),
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsRequestRequestBodyNumber$outboundSchema),
    ]).optional(),
    outputType: exports.UpdateEvalRequestBodyEvalsRequest4OutputType$outboundSchema
        .optional(),
    code: z.string().optional(),
    type: z.literal("python_eval"),
    path: z.string(),
    description: z.string().optional(),
    key: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        guardrailConfig: "guardrail_config",
        outputType: "output_type",
    });
});
function requestBodyPythonToJSON(requestBodyPython) {
    return JSON.stringify(exports.RequestBodyPython$outboundSchema.parse(requestBodyPython));
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsRequestOperator$outboundSchema = z
    .nativeEnum(exports.UpdateEvalGuardrailConfigEvalsRequestOperator);
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsRequestNumber$outboundSchema = z.object({
    enabled: z.boolean(),
    alertOnFailure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.UpdateEvalGuardrailConfigEvalsRequestOperator$outboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        alertOnFailure: "alert_on_failure",
    });
});
function updateEvalGuardrailConfigEvalsRequestNumberToJSON(updateEvalGuardrailConfigEvalsRequestNumber) {
    return JSON.stringify(exports.UpdateEvalGuardrailConfigEvalsRequestNumber$outboundSchema.parse(updateEvalGuardrailConfigEvalsRequestNumber));
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsRequestBoolean$outboundSchema = z.object({
    enabled: z.boolean(),
    alertOnFailure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        alertOnFailure: "alert_on_failure",
    });
});
function updateEvalGuardrailConfigEvalsRequestBooleanToJSON(updateEvalGuardrailConfigEvalsRequestBoolean) {
    return JSON.stringify(exports.UpdateEvalGuardrailConfigEvalsRequestBoolean$outboundSchema.parse(updateEvalGuardrailConfigEvalsRequestBoolean));
}
/** @internal */
exports.UpdateEvalRequestBodyEvalsRequestGuardrailConfig$outboundSchema = z.union([
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsRequestBoolean$outboundSchema),
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsRequestNumber$outboundSchema),
]);
function updateEvalRequestBodyEvalsRequestGuardrailConfigToJSON(updateEvalRequestBodyEvalsRequestGuardrailConfig) {
    return JSON.stringify(exports.UpdateEvalRequestBodyEvalsRequestGuardrailConfig$outboundSchema.parse(updateEvalRequestBodyEvalsRequestGuardrailConfig));
}
/** @internal */
exports.UpdateEvalRequestBodyEvalsRequestOutputType$outboundSchema = z
    .nativeEnum(exports.UpdateEvalRequestBodyEvalsRequestOutputType);
/** @internal */
exports.RequestBodyMethod$outboundSchema = z.nativeEnum(exports.RequestBodyMethod);
/** @internal */
exports.RequestBodyHTTP$outboundSchema = z.object({
    guardrailConfig: z.union([
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsRequestBoolean$outboundSchema),
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsRequestNumber$outboundSchema),
    ]).optional(),
    outputType: exports.UpdateEvalRequestBodyEvalsRequestOutputType$outboundSchema
        .optional(),
    type: z.literal("http_eval"),
    url: z.string().optional(),
    method: exports.RequestBodyMethod$outboundSchema.optional(),
    headers: z.record(z.string()).optional(),
    payload: z.record(z.any()).optional(),
    path: z.string(),
    description: z.string().optional(),
    key: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        guardrailConfig: "guardrail_config",
        outputType: "output_type",
    });
});
function requestBodyHTTPToJSON(requestBodyHTTP) {
    return JSON.stringify(exports.RequestBodyHTTP$outboundSchema.parse(requestBodyHTTP));
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsOperator$outboundSchema = z.nativeEnum(exports.UpdateEvalGuardrailConfigEvalsOperator);
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsNumber$outboundSchema = z.object({
    enabled: z.boolean(),
    alertOnFailure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.UpdateEvalGuardrailConfigEvalsOperator$outboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        alertOnFailure: "alert_on_failure",
    });
});
function updateEvalGuardrailConfigEvalsNumberToJSON(updateEvalGuardrailConfigEvalsNumber) {
    return JSON.stringify(exports.UpdateEvalGuardrailConfigEvalsNumber$outboundSchema.parse(updateEvalGuardrailConfigEvalsNumber));
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsBoolean$outboundSchema = z.object({
    enabled: z.boolean(),
    alertOnFailure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        alertOnFailure: "alert_on_failure",
    });
});
function updateEvalGuardrailConfigEvalsBooleanToJSON(updateEvalGuardrailConfigEvalsBoolean) {
    return JSON.stringify(exports.UpdateEvalGuardrailConfigEvalsBoolean$outboundSchema.parse(updateEvalGuardrailConfigEvalsBoolean));
}
/** @internal */
exports.UpdateEvalRequestBodyEvalsGuardrailConfig$outboundSchema = z.union([
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsBoolean$outboundSchema),
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsNumber$outboundSchema),
]);
function updateEvalRequestBodyEvalsGuardrailConfigToJSON(updateEvalRequestBodyEvalsGuardrailConfig) {
    return JSON.stringify(exports.UpdateEvalRequestBodyEvalsGuardrailConfig$outboundSchema.parse(updateEvalRequestBodyEvalsGuardrailConfig));
}
/** @internal */
exports.UpdateEvalRequestBodyEvalsOutputType$outboundSchema = z.nativeEnum(exports.UpdateEvalRequestBodyEvalsOutputType);
/** @internal */
exports.RequestBodyJSON$outboundSchema = z.object({
    guardrailConfig: z.union([
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsBoolean$outboundSchema),
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsNumber$outboundSchema),
    ]).optional(),
    outputType: exports.UpdateEvalRequestBodyEvalsOutputType$outboundSchema.optional(),
    type: z.literal("json_schema"),
    schema: z.string().optional(),
    path: z.string(),
    description: z.string().optional(),
    key: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        guardrailConfig: "guardrail_config",
        outputType: "output_type",
    });
});
function requestBodyJSONToJSON(requestBodyJSON) {
    return JSON.stringify(exports.RequestBodyJSON$outboundSchema.parse(requestBodyJSON));
}
/** @internal */
exports.UpdateEvalGuardrailConfigOperator$outboundSchema = z.nativeEnum(exports.UpdateEvalGuardrailConfigOperator);
/** @internal */
exports.UpdateEvalGuardrailConfigNumber$outboundSchema = z.object({
    enabled: z.boolean(),
    alertOnFailure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.UpdateEvalGuardrailConfigOperator$outboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        alertOnFailure: "alert_on_failure",
    });
});
function updateEvalGuardrailConfigNumberToJSON(updateEvalGuardrailConfigNumber) {
    return JSON.stringify(exports.UpdateEvalGuardrailConfigNumber$outboundSchema.parse(updateEvalGuardrailConfigNumber));
}
/** @internal */
exports.UpdateEvalGuardrailConfigBoolean$outboundSchema = z.object({
    enabled: z.boolean(),
    alertOnFailure: z.boolean().default(false),
    type: z.literal("boolean"),
    value: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        alertOnFailure: "alert_on_failure",
    });
});
function updateEvalGuardrailConfigBooleanToJSON(updateEvalGuardrailConfigBoolean) {
    return JSON.stringify(exports.UpdateEvalGuardrailConfigBoolean$outboundSchema.parse(updateEvalGuardrailConfigBoolean));
}
/** @internal */
exports.UpdateEvalRequestBodyGuardrailConfig$outboundSchema = z.union([
    z.lazy(() => exports.UpdateEvalGuardrailConfigBoolean$outboundSchema),
    z.lazy(() => exports.UpdateEvalGuardrailConfigNumber$outboundSchema),
]);
function updateEvalRequestBodyGuardrailConfigToJSON(updateEvalRequestBodyGuardrailConfig) {
    return JSON.stringify(exports.UpdateEvalRequestBodyGuardrailConfig$outboundSchema.parse(updateEvalRequestBodyGuardrailConfig));
}
/** @internal */
exports.UpdateEvalRequestBodyOutputType$outboundSchema = z.nativeEnum(exports.UpdateEvalRequestBodyOutputType);
/** @internal */
exports.RequestBodyLLM$outboundSchema = z.object({
    guardrailConfig: z.union([
        z.lazy(() => exports.UpdateEvalGuardrailConfigBoolean$outboundSchema),
        z.lazy(() => exports.UpdateEvalGuardrailConfigNumber$outboundSchema),
    ]).optional(),
    outputType: exports.UpdateEvalRequestBodyOutputType$outboundSchema.optional(),
    type: z.literal("llm_eval"),
    prompt: z.string().optional(),
    path: z.string(),
    description: z.string().optional(),
    model: z.string().optional(),
    key: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        guardrailConfig: "guardrail_config",
        outputType: "output_type",
    });
});
function requestBodyLLMToJSON(requestBodyLLM) {
    return JSON.stringify(exports.RequestBodyLLM$outboundSchema.parse(requestBodyLLM));
}
/** @internal */
exports.UpdateEvalRequestBody$outboundSchema = z.union([
    z.lazy(() => exports.RequestBodyLLM$outboundSchema),
    z.lazy(() => exports.RequestBodyJSON$outboundSchema),
    z.lazy(() => exports.RequestBodyHTTP$outboundSchema),
    z.lazy(() => exports.RequestBodyPython$outboundSchema),
]);
function updateEvalRequestBodyToJSON(updateEvalRequestBody) {
    return JSON.stringify(exports.UpdateEvalRequestBody$outboundSchema.parse(updateEvalRequestBody));
}
/** @internal */
exports.UpdateEvalRequest$outboundSchema = z.object({
    id: z.string(),
    requestBody: z.union([
        z.lazy(() => exports.RequestBodyLLM$outboundSchema),
        z.lazy(() => exports.RequestBodyJSON$outboundSchema),
        z.lazy(() => exports.RequestBodyHTTP$outboundSchema),
        z.lazy(() => exports.RequestBodyPython$outboundSchema),
    ]).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        requestBody: "RequestBody",
    });
});
function updateEvalRequestToJSON(updateEvalRequest) {
    return JSON.stringify(exports.UpdateEvalRequest$outboundSchema.parse(updateEvalRequest));
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Operator$inboundSchema = z.nativeEnum(exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Operator);
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Operator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7NumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$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 updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7BooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean' from JSON`);
}
/** @internal */
exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJson7GuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema),
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$inboundSchema),
]);
function updateEvalResponseBodyEvalsResponse200ApplicationJSON7GuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJson7GuardrailConfig$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateEvalResponseBodyEvalsResponse200ApplicationJson7GuardrailConfig' from JSON`);
}
/** @internal */
exports.ResponseBodyTypescript$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-02-20T18:42:45.130Z"),
    updated: z.string().default("2026-02-20T18:42:45.130Z"),
    guardrail_config: z.union([
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema),
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$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 responseBodyTypescriptFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBodyTypescript$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBodyTypescript' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Operator$inboundSchema = z.nativeEnum(exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Operator);
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Operator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6NumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$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 updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6BooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean' from JSON`);
}
/** @internal */
exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJson6GuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$inboundSchema),
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$inboundSchema),
]);
function updateEvalResponseBodyEvalsResponse200ApplicationJSON6GuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJson6GuardrailConfig$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateEvalResponseBodyEvalsResponse200ApplicationJson6GuardrailConfig' from JSON`);
}
/** @internal */
exports.ResponseBodyRagasMetric$inboundSchema = z.nativeEnum(exports.ResponseBodyRagasMetric);
/** @internal */
exports.ResponseBodyRagas$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-02-20T18:42:45.130Z"),
    updated: z.string().default("2026-02-20T18:42:45.130Z"),
    guardrail_config: z.union([
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$inboundSchema),
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$inboundSchema),
    ]).optional(),
    type: z.literal("ragas"),
    ragas_metric: exports.ResponseBodyRagasMetric$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 responseBodyRagasFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBodyRagas$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBodyRagas' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Operator$inboundSchema = z.nativeEnum(exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Operator);
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Operator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5NumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Boolean$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 updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5BooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Boolean$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Boolean' from JSON`);
}
/** @internal */
exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJSONGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Boolean$inboundSchema),
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$inboundSchema),
]);
function updateEvalResponseBodyEvalsResponse200ApplicationJSONGuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJSONGuardrailConfig$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateEvalResponseBodyEvalsResponse200ApplicationJSONGuardrailConfig' from JSON`);
}
/** @internal */
exports.FunctionParams32$inboundSchema = z.object({
    type: z.literal("grammar_diversity"),
});
function functionParams32FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams32$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams32' from JSON`);
}
/** @internal */
exports.FunctionParams31$inboundSchema = z.object({
    type: z.literal("lexical_repetition"),
});
function functionParams31FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams31$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams31' from JSON`);
}
/** @internal */
exports.FunctionParams30$inboundSchema = z.object({
    type: z.literal("sentences_count"),
});
function functionParams30FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams30$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams30' from JSON`);
}
/** @internal */
exports.FunctionParams29$inboundSchema = z.object({
    type: z.literal("words_count"),
});
function functionParams29FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams29$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams29' from JSON`);
}
/** @internal */
exports.FunctionParams28$inboundSchema = z.object({
    type: z.literal("gse_english_level"),
});
function functionParams28FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams28$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams28' from JSON`);
}
/** @internal */
exports.FunctionParams27$inboundSchema = z.object({
    type: z.literal("flesch_reading_ease"),
});
function functionParams27FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams27$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams27' from JSON`);
}
/** @internal */
exports.FunctionParams26$inboundSchema = z.object({
    type: z.literal("most_repeated_words"),
});
function functionParams26FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams26$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams26' from JSON`);
}
/** @internal */
exports.FunctionParams25$inboundSchema = z.object({
    type: z.literal("keywords_match"),
    keywords: z.array(z.string()),
});
function functionParams25FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams25$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams25' from JSON`);
}
/** @internal */
exports.FunctionParams24$inboundSchema = z.object({
    type: z.literal("levenshtein_distance"),
});
function functionParams24FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams24$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams24' from JSON`);
}
/** @internal */
exports.FunctionParams23$inboundSchema = z.object({
    type: z.literal("cosine_similarity"),
});
function functionParams23FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams23$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams23' from JSON`);
}
/** @internal */
exports.FunctionParams22$inboundSchema = z.object({
    type: z.literal("meteor_score"),
});
function functionParams22FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams22$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams22' from JSON`);
}
/** @internal */
exports.FunctionParams21$inboundSchema = z.object({
    type: z.literal("rouge_n"),
});
function functionParams21FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams21$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams21' from JSON`);
}
/** @internal */
exports.FunctionParams20$inboundSchema = z.object({
    type: z.literal("bleu_score"),
});
function functionParams20FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams20$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams20' from JSON`);
}
/** @internal */
exports.FunctionParams19$inboundSchema = z.object({
    type: z.literal("bert_score"),
});
function functionParams19FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams19$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams19' from JSON`);
}
/** @internal */
exports.FunctionParams18$inboundSchema = z.object({
    type: z.literal("moderations_google"),
});
function functionParams18FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams18$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams18' from JSON`);
}
/** @internal */
exports.FunctionParams17$inboundSchema = z.object({
    type: z.literal("moderations_openai"),
});
function functionParams17FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams17$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams17' from JSON`);
}
/** @internal */
exports.FunctionParams16$inboundSchema = z.object({
    type: z.literal("is_valid_json"),
});
function functionParams16FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams16$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams16' from JSON`);
}
/** @internal */
exports.FunctionParams15$inboundSchema = z.object({
    type: z.literal("regex"),
    pattern: z.string(),
});
function functionParams15FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams15$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams15' from JSON`);
}
/** @internal */
exports.FunctionParams14$inboundSchema = z.object({
    type: z.literal("one_line"),
});
function functionParams14FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams14$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams14' from JSON`);
}
/** @internal */
exports.FunctionParams13$inboundSchema = z.object({
    type: z.literal("length_greater_than"),
    value: z.number(),
});
function functionParams13FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams13$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams13' from JSON`);
}
/** @internal */
exports.FunctionParams12$inboundSchema = z.object({
    type: z.literal("length_between"),
    min: z.number(),
    max: z.number(),
});
function functionParams12FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams12$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams12' from JSON`);
}
/** @internal */
exports.FunctionParams11$inboundSchema = z.object({
    type: z.literal("length_less_than"),
    value: z.number(),
});
function functionParams11FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams11$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams11' from JSON`);
}
/** @internal */
exports.FunctionParams10$inboundSchema = z.object({
    type: z.literal("exact_match"),
});
function functionParams10FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams10$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams10' from JSON`);
}
/** @internal */
exports.FunctionParams9$inboundSchema = z.object({
    type: z.literal("ends_with"),
    value: z.string(),
});
function functionParams9FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams9$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams9' from JSON`);
}
/** @internal */
exports.FunctionParams8$inboundSchema = z.object({
    type: z.literal("start_with"),
    value: z.string(),
});
function functionParams8FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams8$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams8' from JSON`);
}
/** @internal */
exports.FunctionParams7$inboundSchema = z.object({
    type: z.literal("contains_valid_link"),
});
function functionParams7FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams7$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams7' from JSON`);
}
/** @internal */
exports.FunctionParams6$inboundSchema = z.object({
    type: z.literal("contains_url"),
});
function functionParams6FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams6$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams6' from JSON`);
}
/** @internal */
exports.FunctionParams5$inboundSchema = z.object({
    type: z.literal("contains_email"),
});
function functionParams5FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams5' from JSON`);
}
/** @internal */
exports.FunctionParams4$inboundSchema = z.object({
    type: z.literal("contains_any"),
    keywords: z.array(z.string()),
});
function functionParams4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams4' from JSON`);
}
/** @internal */
exports.FunctionParams3$inboundSchema = z.object({
    type: z.literal("contains_all"),
    keywords: z.array(z.string()),
});
function functionParams3FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams3' from JSON`);
}
/** @internal */
exports.FunctionParams2$inboundSchema = z.object({
    type: z.literal("contains_none"),
    keywords: z.array(z.string()),
});
function functionParams2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams2' from JSON`);
}
/** @internal */
exports.FunctionParams1$inboundSchema = z.object({
    type: z.literal("contains"),
    value: z.string(),
});
function functionParams1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams1' from JSON`);
}
/** @internal */
exports.ResponseBodyFunctionParams$inboundSchema = z.union([
    z.lazy(() => exports.FunctionParams1$inboundSchema),
    z.lazy(() => exports.FunctionParams2$inboundSchema),
    z.lazy(() => exports.FunctionParams3$inboundSchema),
    z.lazy(() => exports.FunctionParams4$inboundSchema),
    z.lazy(() => exports.FunctionParams5$inboundSchema),
    z.lazy(() => exports.FunctionParams6$inboundSchema),
    z.lazy(() => exports.FunctionParams7$inboundSchema),
    z.lazy(() => exports.FunctionParams8$inboundSchema),
    z.lazy(() => exports.FunctionParams9$inboundSchema),
    z.lazy(() => exports.FunctionParams10$inboundSchema),
    z.lazy(() => exports.FunctionParams11$inboundSchema),
    z.lazy(() => exports.FunctionParams12$inboundSchema),
    z.lazy(() => exports.FunctionParams13$inboundSchema),
    z.lazy(() => exports.FunctionParams14$inboundSchema),
    z.lazy(() => exports.FunctionParams15$inboundSchema),
    z.lazy(() => exports.FunctionParams16$inboundSchema),
    z.lazy(() => exports.FunctionParams17$inboundSchema),
    z.lazy(() => exports.FunctionParams18$inboundSchema),
    z.lazy(() => exports.FunctionParams19$inboundSchema),
    z.lazy(() => exports.FunctionParams20$inboundSchema),
    z.lazy(() => exports.FunctionParams21$inboundSchema),
    z.lazy(() => exports.FunctionParams22$inboundSchema),
    z.lazy(() => exports.FunctionParams23$inboundSchema),
    z.lazy(() => exports.FunctionParams24$inboundSchema),
    z.lazy(() => exports.FunctionParams25$inboundSchema),
    z.lazy(() => exports.FunctionParams26$inboundSchema),
    z.lazy(() => exports.FunctionParams27$inboundSchema),
    z.lazy(() => exports.FunctionParams28$inboundSchema),
    z.lazy(() => exports.FunctionParams29$inboundSchema),
    z.lazy(() => exports.FunctionParams30$inboundSchema),
    z.lazy(() => exports.FunctionParams31$inboundSchema),
    z.lazy(() => exports.FunctionParams32$inboundSchema),
]);
function responseBodyFunctionParamsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBodyFunctionParams$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBodyFunctionParams' from JSON`);
}
/** @internal */
exports.ResponseBodyFunction$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-02-20T18:42:45.130Z"),
    updated: z.string().default("2026-02-20T18:42:45.130Z"),
    guardrail_config: z.union([
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Boolean$inboundSchema),
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$inboundSchema),
    ]).optional(),
    type: z.literal("function_eval"),
    function_params: z.union([
        z.lazy(() => exports.FunctionParams1$inboundSchema),
        z.lazy(() => exports.FunctionParams2$inboundSchema),
        z.lazy(() => exports.FunctionParams3$inboundSchema),
        z.lazy(() => exports.FunctionParams4$inboundSchema),
        z.lazy(() => exports.FunctionParams5$inboundSchema),
        z.lazy(() => exports.FunctionParams6$inboundSchema),
        z.lazy(() => exports.FunctionParams7$inboundSchema),
        z.lazy(() => exports.FunctionParams8$inboundSchema),
        z.lazy(() => exports.FunctionParams9$inboundSchema),
        z.lazy(() => exports.FunctionParams10$inboundSchema),
        z.lazy(() => exports.FunctionParams11$inboundSchema),
        z.lazy(() => exports.FunctionParams12$inboundSchema),
        z.lazy(() => exports.FunctionParams13$inboundSchema),
        z.lazy(() => exports.FunctionParams14$inboundSchema),
        z.lazy(() => exports.FunctionParams15$inboundSchema),
        z.lazy(() => exports.FunctionParams16$inboundSchema),
        z.lazy(() => exports.FunctionParams17$inboundSchema),
        z.lazy(() => exports.FunctionParams18$inboundSchema),
        z.lazy(() => exports.FunctionParams19$inboundSchema),
        z.lazy(() => exports.FunctionParams20$inboundSchema),
        z.lazy(() => exports.FunctionParams21$inboundSchema),
        z.lazy(() => exports.FunctionParams22$inboundSchema),
        z.lazy(() => exports.FunctionParams23$inboundSchema),
        z.lazy(() => exports.FunctionParams24$inboundSchema),
        z.lazy(() => exports.FunctionParams25$inboundSchema),
        z.lazy(() => exports.FunctionParams26$inboundSchema),
        z.lazy(() => exports.FunctionParams27$inboundSchema),
        z.lazy(() => exports.FunctionParams28$inboundSchema),
        z.lazy(() => exports.FunctionParams29$inboundSchema),
        z.lazy(() => exports.FunctionParams30$inboundSchema),
        z.lazy(() => exports.FunctionParams31$inboundSchema),
        z.lazy(() => exports.FunctionParams32$inboundSchema),
    ]),
    key: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "guardrail_config": "guardrailConfig",
        "function_params": "functionParams",
    });
});
function responseBodyFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseBodyFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseBodyFunction' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator$inboundSchema = z.nativeEnum(exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator);
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyOperator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$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 updateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean' from JSON`);
}
/** @internal */
exports.UpdateEvalResponseBodyEvalsResponse200GuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema),
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema),
]);
function updateEvalResponseBodyEvalsResponse200GuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalResponseBodyEvalsResponse200GuardrailConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalResponseBodyEvalsResponse200GuardrailConfig' from JSON`);
}
/** @internal */
exports.UpdateEvalResponseBodyPython$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-02-20T18:42:45.130Z"),
    updated: z.string().default("2026-02-20T18:42:45.130Z"),
    guardrail_config: z.union([
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema),
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$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 updateEvalResponseBodyPythonFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalResponseBodyPython$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalResponseBodyPython' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator$inboundSchema = z.nativeEnum(exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator);
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONOperator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function updateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$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 updateEvalGuardrailConfigEvalsResponse200ApplicationJSONBooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean' from JSON`);
}
/** @internal */
exports.UpdateEvalResponseBodyEvalsResponseGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema),
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema),
]);
function updateEvalResponseBodyEvalsResponseGuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalResponseBodyEvalsResponseGuardrailConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalResponseBodyEvalsResponseGuardrailConfig' from JSON`);
}
/** @internal */
exports.UpdateEvalResponseBodyMethod$inboundSchema = z.nativeEnum(exports.UpdateEvalResponseBodyMethod);
/** @internal */
exports.UpdateEvalResponseBodyHTTP$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-02-20T18:42:45.130Z"),
    updated: z.string().default("2026-02-20T18:42:45.130Z"),
    guardrail_config: z.union([
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema),
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema),
    ]).optional(),
    type: z.literal("http_eval"),
    url: z.string(),
    method: exports.UpdateEvalResponseBodyMethod$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 updateEvalResponseBodyHTTPFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalResponseBodyHTTP$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalResponseBodyHTTP' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200Operator$inboundSchema = z
    .nativeEnum(exports.UpdateEvalGuardrailConfigEvalsResponse200Operator);
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.UpdateEvalGuardrailConfigEvalsResponse200Operator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function updateEvalGuardrailConfigEvalsResponse200NumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200Number' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponse200Boolean$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 updateEvalGuardrailConfigEvalsResponse200BooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponse200Boolean' from JSON`);
}
/** @internal */
exports.UpdateEvalResponseBodyEvalsGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema),
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
]);
function updateEvalResponseBodyEvalsGuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalResponseBodyEvalsGuardrailConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalResponseBodyEvalsGuardrailConfig' from JSON`);
}
/** @internal */
exports.UpdateEvalResponseBodyJSON$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-02-20T18:42:45.130Z"),
    updated: z.string().default("2026-02-20T18:42:45.130Z"),
    guardrail_config: z.union([
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema),
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Number$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 updateEvalResponseBodyJSONFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalResponseBodyJSON$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalResponseBodyJSON' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponseOperator$inboundSchema = z
    .nativeEnum(exports.UpdateEvalGuardrailConfigEvalsResponseOperator);
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema = z.object({
    enabled: z.boolean(),
    alert_on_failure: z.boolean().default(false),
    type: z.literal("number"),
    value: z.number(),
    operator: exports.UpdateEvalGuardrailConfigEvalsResponseOperator$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "alert_on_failure": "alertOnFailure",
    });
});
function updateEvalGuardrailConfigEvalsResponseNumberFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponseNumber' from JSON`);
}
/** @internal */
exports.UpdateEvalGuardrailConfigEvalsResponseBoolean$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 updateEvalGuardrailConfigEvalsResponseBooleanFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalGuardrailConfigEvalsResponseBoolean' from JSON`);
}
/** @internal */
exports.UpdateEvalResponseBodyGuardrailConfig$inboundSchema = z.union([
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
    z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
]);
function updateEvalResponseBodyGuardrailConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalResponseBodyGuardrailConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalResponseBodyGuardrailConfig' from JSON`);
}
/** @internal */
exports.UpdateEvalResponseBodyLLM$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-02-20T18:42:45.130Z"),
    updated: z.string().default("2026-02-20T18:42:45.130Z"),
    guardrail_config: z.union([
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
        z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseNumber$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 updateEvalResponseBodyLLMFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalResponseBodyLLM$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalResponseBodyLLM' from JSON`);
}
/** @internal */
exports.UpdateEvalResponseBody$inboundSchema = z.union([
    z.lazy(() => exports.UpdateEvalResponseBodyLLM$inboundSchema),
    z.lazy(() => exports.UpdateEvalResponseBodyJSON$inboundSchema),
    z.lazy(() => exports.UpdateEvalResponseBodyHTTP$inboundSchema),
    z.lazy(() => exports.UpdateEvalResponseBodyPython$inboundSchema),
    z.lazy(() => exports.ResponseBodyFunction$inboundSchema),
    z.lazy(() => exports.ResponseBodyRagas$inboundSchema),
    z.lazy(() => exports.ResponseBodyTypescript$inboundSchema),
]);
function updateEvalResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateEvalResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateEvalResponseBody' from JSON`);
}
//# sourceMappingURL=updateeval.js.map