"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.EvaluatorResponseFunction$inboundSchema = exports.FunctionParams$inboundSchema = exports.One$inboundSchema = exports.Two$inboundSchema = exports.Three$inboundSchema = exports.Four$inboundSchema = exports.Five$inboundSchema = exports.Six$inboundSchema = exports.Seven$inboundSchema = exports.Eight$inboundSchema = exports.Nine$inboundSchema = exports.Ten$inboundSchema = exports.Eleven$inboundSchema = exports.Twelve$inboundSchema = exports.Thirteen$inboundSchema = exports.Fourteen$inboundSchema = exports.Fifteen$inboundSchema = exports.Sixteen$inboundSchema = exports.Seventeen$inboundSchema = exports.Eighteen$inboundSchema = exports.Nineteen$inboundSchema = exports.Twenty$inboundSchema = exports.TwentyOne$inboundSchema = exports.TwentyTwo$inboundSchema = exports.TwentyThree$inboundSchema = exports.TwentyFour$inboundSchema = exports.TwentyFive$inboundSchema = exports.TwentySix$inboundSchema = exports.TwentySeven$inboundSchema = exports.TwentyEight$inboundSchema = exports.TwentyNine$inboundSchema = exports.Thirty$inboundSchema = exports.ThirtyOne$inboundSchema = exports.ThirtyTwo$inboundSchema = void 0;
exports.thirtyTwoFromJSON = thirtyTwoFromJSON;
exports.thirtyOneFromJSON = thirtyOneFromJSON;
exports.thirtyFromJSON = thirtyFromJSON;
exports.twentyNineFromJSON = twentyNineFromJSON;
exports.twentyEightFromJSON = twentyEightFromJSON;
exports.twentySevenFromJSON = twentySevenFromJSON;
exports.twentySixFromJSON = twentySixFromJSON;
exports.twentyFiveFromJSON = twentyFiveFromJSON;
exports.twentyFourFromJSON = twentyFourFromJSON;
exports.twentyThreeFromJSON = twentyThreeFromJSON;
exports.twentyTwoFromJSON = twentyTwoFromJSON;
exports.twentyOneFromJSON = twentyOneFromJSON;
exports.twentyFromJSON = twentyFromJSON;
exports.nineteenFromJSON = nineteenFromJSON;
exports.eighteenFromJSON = eighteenFromJSON;
exports.seventeenFromJSON = seventeenFromJSON;
exports.sixteenFromJSON = sixteenFromJSON;
exports.fifteenFromJSON = fifteenFromJSON;
exports.fourteenFromJSON = fourteenFromJSON;
exports.thirteenFromJSON = thirteenFromJSON;
exports.twelveFromJSON = twelveFromJSON;
exports.elevenFromJSON = elevenFromJSON;
exports.tenFromJSON = tenFromJSON;
exports.nineFromJSON = nineFromJSON;
exports.eightFromJSON = eightFromJSON;
exports.sevenFromJSON = sevenFromJSON;
exports.sixFromJSON = sixFromJSON;
exports.fiveFromJSON = fiveFromJSON;
exports.fourFromJSON = fourFromJSON;
exports.threeFromJSON = threeFromJSON;
exports.twoFromJSON = twoFromJSON;
exports.oneFromJSON = oneFromJSON;
exports.functionParamsFromJSON = functionParamsFromJSON;
exports.evaluatorResponseFunctionFromJSON = evaluatorResponseFunctionFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
/** @internal */
exports.ThirtyTwo$inboundSchema = z.object({
    type: z.literal("grammar_diversity"),
});
function thirtyTwoFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ThirtyTwo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThirtyTwo' from JSON`);
}
/** @internal */
exports.ThirtyOne$inboundSchema = z.object({
    type: z.literal("lexical_repetition"),
});
function thirtyOneFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ThirtyOne$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ThirtyOne' from JSON`);
}
/** @internal */
exports.Thirty$inboundSchema = z
    .object({
    type: z.literal("sentences_count"),
});
function thirtyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Thirty$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Thirty' from JSON`);
}
/** @internal */
exports.TwentyNine$inboundSchema = z.object({
    type: z.literal("words_count"),
});
function twentyNineFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TwentyNine$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TwentyNine' from JSON`);
}
/** @internal */
exports.TwentyEight$inboundSchema = z.object({
    type: z.literal("gse_english_level"),
});
function twentyEightFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TwentyEight$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TwentyEight' from JSON`);
}
/** @internal */
exports.TwentySeven$inboundSchema = z.object({
    type: z.literal("flesch_reading_ease"),
});
function twentySevenFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TwentySeven$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TwentySeven' from JSON`);
}
/** @internal */
exports.TwentySix$inboundSchema = z.object({
    type: z.literal("most_repeated_words"),
});
function twentySixFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TwentySix$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TwentySix' from JSON`);
}
/** @internal */
exports.TwentyFive$inboundSchema = z.object({
    type: z.literal("keywords_match"),
    keywords: z.array(z.string()),
});
function twentyFiveFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TwentyFive$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TwentyFive' from JSON`);
}
/** @internal */
exports.TwentyFour$inboundSchema = z.object({
    type: z.literal("levenshtein_distance"),
});
function twentyFourFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TwentyFour$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TwentyFour' from JSON`);
}
/** @internal */
exports.TwentyThree$inboundSchema = z.object({
    type: z.literal("cosine_similarity"),
});
function twentyThreeFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TwentyThree$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TwentyThree' from JSON`);
}
/** @internal */
exports.TwentyTwo$inboundSchema = z.object({
    type: z.literal("meteor_score"),
});
function twentyTwoFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TwentyTwo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TwentyTwo' from JSON`);
}
/** @internal */
exports.TwentyOne$inboundSchema = z.object({
    type: z.literal("rouge_n"),
});
function twentyOneFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TwentyOne$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TwentyOne' from JSON`);
}
/** @internal */
exports.Twenty$inboundSchema = z
    .object({
    type: z.literal("bleu_score"),
});
function twentyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Twenty$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Twenty' from JSON`);
}
/** @internal */
exports.Nineteen$inboundSchema = z.object({
    type: z.literal("bert_score"),
});
function nineteenFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Nineteen$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Nineteen' from JSON`);
}
/** @internal */
exports.Eighteen$inboundSchema = z.object({
    type: z.literal("moderations_google"),
});
function eighteenFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Eighteen$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Eighteen' from JSON`);
}
/** @internal */
exports.Seventeen$inboundSchema = z.object({
    type: z.literal("moderations_openai"),
});
function seventeenFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Seventeen$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Seventeen' from JSON`);
}
/** @internal */
exports.Sixteen$inboundSchema = z.object({
    type: z.literal("is_valid_json"),
});
function sixteenFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Sixteen$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Sixteen' from JSON`);
}
/** @internal */
exports.Fifteen$inboundSchema = z.object({
    type: z.literal("regex"),
    pattern: z.string(),
});
function fifteenFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Fifteen$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Fifteen' from JSON`);
}
/** @internal */
exports.Fourteen$inboundSchema = z.object({
    type: z.literal("one_line"),
});
function fourteenFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Fourteen$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Fourteen' from JSON`);
}
/** @internal */
exports.Thirteen$inboundSchema = z.object({
    type: z.literal("length_greater_than"),
    value: z.number(),
});
function thirteenFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Thirteen$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Thirteen' from JSON`);
}
/** @internal */
exports.Twelve$inboundSchema = z
    .object({
    type: z.literal("length_between"),
    min: z.number(),
    max: z.number(),
});
function twelveFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Twelve$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Twelve' from JSON`);
}
/** @internal */
exports.Eleven$inboundSchema = z
    .object({
    type: z.literal("length_less_than"),
    value: z.number(),
});
function elevenFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Eleven$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Eleven' from JSON`);
}
/** @internal */
exports.Ten$inboundSchema = z
    .object({
    type: z.literal("exact_match"),
});
function tenFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Ten$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Ten' from JSON`);
}
/** @internal */
exports.Nine$inboundSchema = z
    .object({
    type: z.literal("ends_with"),
    value: z.string(),
});
function nineFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Nine$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Nine' from JSON`);
}
/** @internal */
exports.Eight$inboundSchema = z
    .object({
    type: z.literal("start_with"),
    value: z.string(),
});
function eightFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Eight$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Eight' from JSON`);
}
/** @internal */
exports.Seven$inboundSchema = z
    .object({
    type: z.literal("contains_valid_link"),
});
function sevenFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Seven$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Seven' from JSON`);
}
/** @internal */
exports.Six$inboundSchema = z
    .object({
    type: z.literal("contains_url"),
});
function sixFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Six$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Six' from JSON`);
}
/** @internal */
exports.Five$inboundSchema = z
    .object({
    type: z.literal("contains_email"),
});
function fiveFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Five$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Five' from JSON`);
}
/** @internal */
exports.Four$inboundSchema = z
    .object({
    type: z.literal("contains_any"),
    keywords: z.array(z.string()),
});
function fourFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Four$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Four' from JSON`);
}
/** @internal */
exports.Three$inboundSchema = z
    .object({
    type: z.literal("contains_all"),
    keywords: z.array(z.string()),
});
function threeFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Three$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Three' from JSON`);
}
/** @internal */
exports.Two$inboundSchema = z
    .object({
    type: z.literal("contains_none"),
    keywords: z.array(z.string()),
});
function twoFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Two$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Two' from JSON`);
}
/** @internal */
exports.One$inboundSchema = z
    .object({
    type: z.literal("contains"),
    value: z.string(),
});
function oneFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.One$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'One' from JSON`);
}
/** @internal */
exports.FunctionParams$inboundSchema = z.union([
    z.lazy(() => exports.One$inboundSchema),
    z.lazy(() => exports.Two$inboundSchema),
    z.lazy(() => exports.Three$inboundSchema),
    z.lazy(() => exports.Four$inboundSchema),
    z.lazy(() => exports.Five$inboundSchema),
    z.lazy(() => exports.Six$inboundSchema),
    z.lazy(() => exports.Seven$inboundSchema),
    z.lazy(() => exports.Eight$inboundSchema),
    z.lazy(() => exports.Nine$inboundSchema),
    z.lazy(() => exports.Ten$inboundSchema),
    z.lazy(() => exports.Eleven$inboundSchema),
    z.lazy(() => exports.Twelve$inboundSchema),
    z.lazy(() => exports.Thirteen$inboundSchema),
    z.lazy(() => exports.Fourteen$inboundSchema),
    z.lazy(() => exports.Fifteen$inboundSchema),
    z.lazy(() => exports.Sixteen$inboundSchema),
    z.lazy(() => exports.Seventeen$inboundSchema),
    z.lazy(() => exports.Eighteen$inboundSchema),
    z.lazy(() => exports.Nineteen$inboundSchema),
    z.lazy(() => exports.Twenty$inboundSchema),
    z.lazy(() => exports.TwentyOne$inboundSchema),
    z.lazy(() => exports.TwentyTwo$inboundSchema),
    z.lazy(() => exports.TwentyThree$inboundSchema),
    z.lazy(() => exports.TwentyFour$inboundSchema),
    z.lazy(() => exports.TwentyFive$inboundSchema),
    z.lazy(() => exports.TwentySix$inboundSchema),
    z.lazy(() => exports.TwentySeven$inboundSchema),
    z.lazy(() => exports.TwentyEight$inboundSchema),
    z.lazy(() => exports.TwentyNine$inboundSchema),
    z.lazy(() => exports.Thirty$inboundSchema),
    z.lazy(() => exports.ThirtyOne$inboundSchema),
    z.lazy(() => exports.ThirtyTwo$inboundSchema),
]);
function functionParamsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FunctionParams$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FunctionParams' from JSON`);
}
/** @internal */
exports.EvaluatorResponseFunction$inboundSchema = z.object({
    _id: z.string(),
    description: z.string(),
    created: z.string().default("2026-07-05T08:11:19.225Z"),
    updated: z.string().default("2026-07-05T08:11:19.225Z"),
    updated_by_id: z.nullable(z.string()).optional(),
    guardrail_config: z.any().optional(),
    type: z.literal("function_eval"),
    function_params: z.union([
        z.lazy(() => exports.One$inboundSchema),
        z.lazy(() => exports.Two$inboundSchema),
        z.lazy(() => exports.Three$inboundSchema),
        z.lazy(() => exports.Four$inboundSchema),
        z.lazy(() => exports.Five$inboundSchema),
        z.lazy(() => exports.Six$inboundSchema),
        z.lazy(() => exports.Seven$inboundSchema),
        z.lazy(() => exports.Eight$inboundSchema),
        z.lazy(() => exports.Nine$inboundSchema),
        z.lazy(() => exports.Ten$inboundSchema),
        z.lazy(() => exports.Eleven$inboundSchema),
        z.lazy(() => exports.Twelve$inboundSchema),
        z.lazy(() => exports.Thirteen$inboundSchema),
        z.lazy(() => exports.Fourteen$inboundSchema),
        z.lazy(() => exports.Fifteen$inboundSchema),
        z.lazy(() => exports.Sixteen$inboundSchema),
        z.lazy(() => exports.Seventeen$inboundSchema),
        z.lazy(() => exports.Eighteen$inboundSchema),
        z.lazy(() => exports.Nineteen$inboundSchema),
        z.lazy(() => exports.Twenty$inboundSchema),
        z.lazy(() => exports.TwentyOne$inboundSchema),
        z.lazy(() => exports.TwentyTwo$inboundSchema),
        z.lazy(() => exports.TwentyThree$inboundSchema),
        z.lazy(() => exports.TwentyFour$inboundSchema),
        z.lazy(() => exports.TwentyFive$inboundSchema),
        z.lazy(() => exports.TwentySix$inboundSchema),
        z.lazy(() => exports.TwentySeven$inboundSchema),
        z.lazy(() => exports.TwentyEight$inboundSchema),
        z.lazy(() => exports.TwentyNine$inboundSchema),
        z.lazy(() => exports.Thirty$inboundSchema),
        z.lazy(() => exports.ThirtyOne$inboundSchema),
        z.lazy(() => exports.ThirtyTwo$inboundSchema),
    ]),
    key: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "updated_by_id": "updatedById",
        "guardrail_config": "guardrailConfig",
        "function_params": "functionParams",
    });
});
function evaluatorResponseFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.EvaluatorResponseFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EvaluatorResponseFunction' from JSON`);
}
//# sourceMappingURL=evaluatorresponsefunction.js.map