"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.PostV2FeedbackEvaluationRequestBody$outboundSchema = exports.PostV2FeedbackEvaluationRequestBody1$outboundSchema = exports.RequestBodySource$outboundSchema = exports.EvaluationType$outboundSchema = exports.PostV2FeedbackEvaluationRequestBody2$outboundSchema = exports.PostV2FeedbackEvaluationRequestBodySource$outboundSchema = exports.RequestBodyEvaluationType$outboundSchema = exports.RequestBody3$outboundSchema = exports.PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema = exports.PostV2FeedbackEvaluationRequestBodyEvaluationType$outboundSchema = exports.RequestBodySource = exports.EvaluationType = exports.PostV2FeedbackEvaluationRequestBodySource = exports.RequestBodyEvaluationType = exports.PostV2FeedbackEvaluationRequestBodyFeedbackSource = exports.PostV2FeedbackEvaluationRequestBodyEvaluationType = void 0;
exports.requestBody3ToJSON = requestBody3ToJSON;
exports.postV2FeedbackEvaluationRequestBody2ToJSON = postV2FeedbackEvaluationRequestBody2ToJSON;
exports.postV2FeedbackEvaluationRequestBody1ToJSON = postV2FeedbackEvaluationRequestBody1ToJSON;
exports.postV2FeedbackEvaluationRequestBodyToJSON = postV2FeedbackEvaluationRequestBodyToJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../lib/primitives.js");
/**
 * The type of evaluation
 */
exports.PostV2FeedbackEvaluationRequestBodyEvaluationType = {
    HumanReview: "human_review",
};
exports.PostV2FeedbackEvaluationRequestBodyFeedbackSource = {
    Orq: "orq",
    External: "external",
};
/**
 * The type of evaluation
 */
exports.RequestBodyEvaluationType = {
    HumanReview: "human_review",
};
exports.PostV2FeedbackEvaluationRequestBodySource = {
    Orq: "orq",
    External: "external",
};
/**
 * The type of evaluation
 */
exports.EvaluationType = {
    HumanReview: "human_review",
};
exports.RequestBodySource = {
    Orq: "orq",
    External: "external",
};
/** @internal */
exports.PostV2FeedbackEvaluationRequestBodyEvaluationType$outboundSchema = z
    .nativeEnum(exports.PostV2FeedbackEvaluationRequestBodyEvaluationType);
/** @internal */
exports.PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema = z
    .nativeEnum(exports.PostV2FeedbackEvaluationRequestBodyFeedbackSource);
/** @internal */
exports.RequestBody3$outboundSchema = z.object({
    id: z.string(),
    evaluationType: exports.PostV2FeedbackEvaluationRequestBodyEvaluationType$outboundSchema,
    humanReviewId: z.string(),
    source: exports.PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema
        .default("orq"),
    reviewedAt: z.date().default(() => new Date("2026-06-17T07:21:55.545Z"))
        .transform(v => v.toISOString()),
    type: z.literal("string_array"),
    values: z.array(z.string()),
    traceId: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        evaluationType: "evaluation_type",
        humanReviewId: "human_review_id",
        reviewedAt: "reviewed_at",
        traceId: "trace_id",
    });
});
function requestBody3ToJSON(requestBody3) {
    return JSON.stringify(exports.RequestBody3$outboundSchema.parse(requestBody3));
}
/** @internal */
exports.RequestBodyEvaluationType$outboundSchema = z.nativeEnum(exports.RequestBodyEvaluationType);
/** @internal */
exports.PostV2FeedbackEvaluationRequestBodySource$outboundSchema = z
    .nativeEnum(exports.PostV2FeedbackEvaluationRequestBodySource);
/** @internal */
exports.PostV2FeedbackEvaluationRequestBody2$outboundSchema = z.object({
    id: z.string(),
    evaluationType: exports.RequestBodyEvaluationType$outboundSchema,
    humanReviewId: z.string(),
    source: exports.PostV2FeedbackEvaluationRequestBodySource$outboundSchema.default("orq"),
    reviewedAt: z.date().default(() => new Date("2026-06-17T07:21:55.544Z"))
        .transform(v => v.toISOString()),
    type: z.literal("number"),
    value: z.number(),
    traceId: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        evaluationType: "evaluation_type",
        humanReviewId: "human_review_id",
        reviewedAt: "reviewed_at",
        traceId: "trace_id",
    });
});
function postV2FeedbackEvaluationRequestBody2ToJSON(postV2FeedbackEvaluationRequestBody2) {
    return JSON.stringify(exports.PostV2FeedbackEvaluationRequestBody2$outboundSchema.parse(postV2FeedbackEvaluationRequestBody2));
}
/** @internal */
exports.EvaluationType$outboundSchema = z.nativeEnum(exports.EvaluationType);
/** @internal */
exports.RequestBodySource$outboundSchema = z.nativeEnum(exports.RequestBodySource);
/** @internal */
exports.PostV2FeedbackEvaluationRequestBody1$outboundSchema = z.object({
    id: z.string(),
    evaluationType: exports.EvaluationType$outboundSchema,
    humanReviewId: z.string(),
    source: exports.RequestBodySource$outboundSchema.default("orq"),
    reviewedAt: z.date().default(() => new Date("2026-06-17T07:21:55.544Z"))
        .transform(v => v.toISOString()),
    type: z.literal("string"),
    value: z.string(),
    traceId: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        evaluationType: "evaluation_type",
        humanReviewId: "human_review_id",
        reviewedAt: "reviewed_at",
        traceId: "trace_id",
    });
});
function postV2FeedbackEvaluationRequestBody1ToJSON(postV2FeedbackEvaluationRequestBody1) {
    return JSON.stringify(exports.PostV2FeedbackEvaluationRequestBody1$outboundSchema.parse(postV2FeedbackEvaluationRequestBody1));
}
/** @internal */
exports.PostV2FeedbackEvaluationRequestBody$outboundSchema = z.union([
    z.lazy(() => exports.PostV2FeedbackEvaluationRequestBody1$outboundSchema),
    z.lazy(() => exports.PostV2FeedbackEvaluationRequestBody2$outboundSchema),
    z.lazy(() => exports.RequestBody3$outboundSchema),
]);
function postV2FeedbackEvaluationRequestBodyToJSON(postV2FeedbackEvaluationRequestBody) {
    return JSON.stringify(exports.PostV2FeedbackEvaluationRequestBody$outboundSchema.parse(postV2FeedbackEvaluationRequestBody));
}
//# sourceMappingURL=postv2feedbackevaluation.js.map