"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.RetrieveDatapointResponseBody$inboundSchema = exports.RetrieveDatapointEvaluations$inboundSchema = exports.RetrieveDatapointEvaluations1$inboundSchema = exports.RetrieveDatapointEvaluationsSource$inboundSchema = exports.RetrieveDatapointEvaluationsEvaluationType$inboundSchema = exports.RetrieveDatapointEvaluations2$inboundSchema = exports.RetrieveDatapointEvaluationsDatasetsSource$inboundSchema = exports.RetrieveDatapointEvaluationsDatasetsEvaluationType$inboundSchema = exports.RetrieveDatapointEvaluations3$inboundSchema = exports.RetrieveDatapointEvaluationsDatasetsResponseSource$inboundSchema = exports.RetrieveDatapointEvaluationsDatasetsResponseEvaluationType$inboundSchema = exports.RetrieveDatapointMessages$inboundSchema = exports.RetrieveDatapointMessagesSystemMessage$inboundSchema = exports.RetrieveDatapointMessagesContent$inboundSchema = exports.RetrieveDatapointMessagesDeveloperMessage$inboundSchema = exports.RetrieveDatapointMessagesDatasetsContent$inboundSchema = exports.RetrieveDatapointMessagesUserMessage$inboundSchema = exports.RetrieveDatapointMessagesDatasetsResponseContent$inboundSchema = exports.RetrieveDatapointContent2$inboundSchema = exports.RetrieveDatapoint24$inboundSchema = exports.RetrieveDatapoint2CacheControl$inboundSchema = exports.RetrieveDatapoint2Ttl$inboundSchema = exports.RetrieveDatapoint2DatasetsType$inboundSchema = exports.RetrieveDatapointMessagesAssistantMessage$inboundSchema = exports.RetrieveDatapointMessagesToolCalls$inboundSchema = exports.RetrieveDatapointMessagesFunction$inboundSchema = exports.RetrieveDatapointMessagesType$inboundSchema = exports.RetrieveDatapointMessagesAudio$inboundSchema = exports.RetrieveDatapointMessagesDatasetsResponse200Content$inboundSchema = exports.RetrieveDatapointContentDatasets2$inboundSchema = exports.RetrieveDatapointMessagesToolMessage$inboundSchema = exports.RetrieveDatapointMessagesCacheControl$inboundSchema = exports.RetrieveDatapointMessagesTtl$inboundSchema = exports.RetrieveDatapointMessagesDatasetsType$inboundSchema = exports.RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONContent$inboundSchema = exports.RetrieveDatapointContentDatasetsResponse2$inboundSchema = exports.RetrieveDatapointRequest$outboundSchema = exports.RetrieveDatapointEvaluationsSource = exports.RetrieveDatapointEvaluationsEvaluationType = exports.RetrieveDatapointEvaluationsDatasetsSource = exports.RetrieveDatapointEvaluationsDatasetsEvaluationType = exports.RetrieveDatapointEvaluationsDatasetsResponseSource = exports.RetrieveDatapointEvaluationsDatasetsResponseEvaluationType = exports.RetrieveDatapoint2Ttl = exports.RetrieveDatapoint2DatasetsType = exports.RetrieveDatapointMessagesType = exports.RetrieveDatapointMessagesTtl = exports.RetrieveDatapointMessagesDatasetsType = void 0;
exports.retrieveDatapointRequestToJSON = retrieveDatapointRequestToJSON;
exports.retrieveDatapointContentDatasetsResponse2FromJSON = retrieveDatapointContentDatasetsResponse2FromJSON;
exports.retrieveDatapointMessagesDatasetsResponse200ApplicationJSONContentFromJSON = retrieveDatapointMessagesDatasetsResponse200ApplicationJSONContentFromJSON;
exports.retrieveDatapointMessagesCacheControlFromJSON = retrieveDatapointMessagesCacheControlFromJSON;
exports.retrieveDatapointMessagesToolMessageFromJSON = retrieveDatapointMessagesToolMessageFromJSON;
exports.retrieveDatapointContentDatasets2FromJSON = retrieveDatapointContentDatasets2FromJSON;
exports.retrieveDatapointMessagesDatasetsResponse200ContentFromJSON = retrieveDatapointMessagesDatasetsResponse200ContentFromJSON;
exports.retrieveDatapointMessagesAudioFromJSON = retrieveDatapointMessagesAudioFromJSON;
exports.retrieveDatapointMessagesFunctionFromJSON = retrieveDatapointMessagesFunctionFromJSON;
exports.retrieveDatapointMessagesToolCallsFromJSON = retrieveDatapointMessagesToolCallsFromJSON;
exports.retrieveDatapointMessagesAssistantMessageFromJSON = retrieveDatapointMessagesAssistantMessageFromJSON;
exports.retrieveDatapoint2CacheControlFromJSON = retrieveDatapoint2CacheControlFromJSON;
exports.retrieveDatapoint24FromJSON = retrieveDatapoint24FromJSON;
exports.retrieveDatapointContent2FromJSON = retrieveDatapointContent2FromJSON;
exports.retrieveDatapointMessagesDatasetsResponseContentFromJSON = retrieveDatapointMessagesDatasetsResponseContentFromJSON;
exports.retrieveDatapointMessagesUserMessageFromJSON = retrieveDatapointMessagesUserMessageFromJSON;
exports.retrieveDatapointMessagesDatasetsContentFromJSON = retrieveDatapointMessagesDatasetsContentFromJSON;
exports.retrieveDatapointMessagesDeveloperMessageFromJSON = retrieveDatapointMessagesDeveloperMessageFromJSON;
exports.retrieveDatapointMessagesContentFromJSON = retrieveDatapointMessagesContentFromJSON;
exports.retrieveDatapointMessagesSystemMessageFromJSON = retrieveDatapointMessagesSystemMessageFromJSON;
exports.retrieveDatapointMessagesFromJSON = retrieveDatapointMessagesFromJSON;
exports.retrieveDatapointEvaluations3FromJSON = retrieveDatapointEvaluations3FromJSON;
exports.retrieveDatapointEvaluations2FromJSON = retrieveDatapointEvaluations2FromJSON;
exports.retrieveDatapointEvaluations1FromJSON = retrieveDatapointEvaluations1FromJSON;
exports.retrieveDatapointEvaluationsFromJSON = retrieveDatapointEvaluationsFromJSON;
exports.retrieveDatapointResponseBodyFromJSON = retrieveDatapointResponseBodyFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
const components = __importStar(require("../components/index.js"));
/**
 * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
 */
exports.RetrieveDatapointMessagesDatasetsType = {
    Ephemeral: "ephemeral",
};
/**
 * The time-to-live for the cache control breakpoint. This may be one of the following values:
 *
 * @remarks
 *
 * - `5m`: 5 minutes
 * - `1h`: 1 hour
 *
 * Defaults to `5m`. Only supported by `Anthropic` Claude models.
 */
exports.RetrieveDatapointMessagesTtl = {
    Fivem: "5m",
    Oneh: "1h",
};
/**
 * The type of the tool. Currently, only `function` is supported.
 */
exports.RetrieveDatapointMessagesType = {
    Function: "function",
};
/**
 * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
 */
exports.RetrieveDatapoint2DatasetsType = {
    Ephemeral: "ephemeral",
};
/**
 * The time-to-live for the cache control breakpoint. This may be one of the following values:
 *
 * @remarks
 *
 * - `5m`: 5 minutes
 * - `1h`: 1 hour
 *
 * Defaults to `5m`. Only supported by `Anthropic` Claude models.
 */
exports.RetrieveDatapoint2Ttl = {
    Fivem: "5m",
    Oneh: "1h",
};
/**
 * The type of evaluation
 */
exports.RetrieveDatapointEvaluationsDatasetsResponseEvaluationType = {
    HumanReview: "human_review",
};
exports.RetrieveDatapointEvaluationsDatasetsResponseSource = {
    Orq: "orq",
    External: "external",
};
/**
 * The type of evaluation
 */
exports.RetrieveDatapointEvaluationsDatasetsEvaluationType = {
    HumanReview: "human_review",
};
exports.RetrieveDatapointEvaluationsDatasetsSource = {
    Orq: "orq",
    External: "external",
};
/**
 * The type of evaluation
 */
exports.RetrieveDatapointEvaluationsEvaluationType = {
    HumanReview: "human_review",
};
exports.RetrieveDatapointEvaluationsSource = {
    Orq: "orq",
    External: "external",
};
/** @internal */
exports.RetrieveDatapointRequest$outboundSchema = z.object({
    datasetId: z.string(),
    datapointId: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        datasetId: "dataset_id",
        datapointId: "datapoint_id",
    });
});
function retrieveDatapointRequestToJSON(retrieveDatapointRequest) {
    return JSON.stringify(exports.RetrieveDatapointRequest$outboundSchema.parse(retrieveDatapointRequest));
}
/** @internal */
exports.RetrieveDatapointContentDatasetsResponse2$inboundSchema = components.TextContentPartSchema$inboundSchema;
function retrieveDatapointContentDatasetsResponse2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointContentDatasetsResponse2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointContentDatasetsResponse2' from JSON`);
}
/** @internal */
exports.RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONContent$inboundSchema = z.union([
    z.string(),
    z.array(components.TextContentPartSchema$inboundSchema),
]);
function retrieveDatapointMessagesDatasetsResponse200ApplicationJSONContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONContent$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONContent' from JSON`);
}
/** @internal */
exports.RetrieveDatapointMessagesDatasetsType$inboundSchema = z.nativeEnum(exports.RetrieveDatapointMessagesDatasetsType);
/** @internal */
exports.RetrieveDatapointMessagesTtl$inboundSchema = z.nativeEnum(exports.RetrieveDatapointMessagesTtl);
/** @internal */
exports.RetrieveDatapointMessagesCacheControl$inboundSchema = z.object({
    type: exports.RetrieveDatapointMessagesDatasetsType$inboundSchema,
    ttl: exports.RetrieveDatapointMessagesTtl$inboundSchema.default("5m"),
});
function retrieveDatapointMessagesCacheControlFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointMessagesCacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointMessagesCacheControl' from JSON`);
}
/** @internal */
exports.RetrieveDatapointMessagesToolMessage$inboundSchema = z.object({
    role: z.literal("tool"),
    content: z.union([
        z.string(),
        z.array(components.TextContentPartSchema$inboundSchema),
    ]),
    tool_call_id: z.nullable(z.string()),
    cache_control: z.lazy(() => exports.RetrieveDatapointMessagesCacheControl$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "tool_call_id": "toolCallId",
        "cache_control": "cacheControl",
    });
});
function retrieveDatapointMessagesToolMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointMessagesToolMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointMessagesToolMessage' from JSON`);
}
/** @internal */
exports.RetrieveDatapointContentDatasets2$inboundSchema = z.union([
    components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
    components.RefusalPartSchema$inboundSchema,
    components.ReasoningPartSchema$inboundSchema,
    components.RedactedReasoningPartSchema$inboundSchema,
]);
function retrieveDatapointContentDatasets2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointContentDatasets2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointContentDatasets2' from JSON`);
}
/** @internal */
exports.RetrieveDatapointMessagesDatasetsResponse200Content$inboundSchema = z.union([
    z.string(),
    z.array(z.union([
        components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
        components.RefusalPartSchema$inboundSchema,
        components.ReasoningPartSchema$inboundSchema,
        components.RedactedReasoningPartSchema$inboundSchema,
    ])),
]);
function retrieveDatapointMessagesDatasetsResponse200ContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointMessagesDatasetsResponse200Content$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointMessagesDatasetsResponse200Content' from JSON`);
}
/** @internal */
exports.RetrieveDatapointMessagesAudio$inboundSchema = z.object({
    id: z.string(),
});
function retrieveDatapointMessagesAudioFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointMessagesAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointMessagesAudio' from JSON`);
}
/** @internal */
exports.RetrieveDatapointMessagesType$inboundSchema = z.nativeEnum(exports.RetrieveDatapointMessagesType);
/** @internal */
exports.RetrieveDatapointMessagesFunction$inboundSchema = z.object({
    name: z.string().optional(),
    arguments: z.string().optional(),
});
function retrieveDatapointMessagesFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointMessagesFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointMessagesFunction' from JSON`);
}
/** @internal */
exports.RetrieveDatapointMessagesToolCalls$inboundSchema = z.object({
    id: z.string(),
    type: exports.RetrieveDatapointMessagesType$inboundSchema,
    function: z.lazy(() => exports.RetrieveDatapointMessagesFunction$inboundSchema),
    thought_signature: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "thought_signature": "thoughtSignature",
    });
});
function retrieveDatapointMessagesToolCallsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointMessagesToolCalls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointMessagesToolCalls' from JSON`);
}
/** @internal */
exports.RetrieveDatapointMessagesAssistantMessage$inboundSchema = z.object({
    content: z.nullable(z.union([
        z.string(),
        z.array(z.union([
            components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
            components.RefusalPartSchema$inboundSchema,
            components.ReasoningPartSchema$inboundSchema,
            components.RedactedReasoningPartSchema$inboundSchema,
        ])),
    ])).optional(),
    refusal: z.nullable(z.string()).optional(),
    role: z.literal("assistant"),
    name: z.string().optional(),
    audio: z.nullable(z.lazy(() => exports.RetrieveDatapointMessagesAudio$inboundSchema))
        .optional(),
    tool_calls: z.array(z.lazy(() => exports.RetrieveDatapointMessagesToolCalls$inboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "tool_calls": "toolCalls",
    });
});
function retrieveDatapointMessagesAssistantMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointMessagesAssistantMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointMessagesAssistantMessage' from JSON`);
}
/** @internal */
exports.RetrieveDatapoint2DatasetsType$inboundSchema = z.nativeEnum(exports.RetrieveDatapoint2DatasetsType);
/** @internal */
exports.RetrieveDatapoint2Ttl$inboundSchema = z.nativeEnum(exports.RetrieveDatapoint2Ttl);
/** @internal */
exports.RetrieveDatapoint2CacheControl$inboundSchema = z.object({
    type: exports.RetrieveDatapoint2DatasetsType$inboundSchema,
    ttl: exports.RetrieveDatapoint2Ttl$inboundSchema.default("5m"),
});
function retrieveDatapoint2CacheControlFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapoint2CacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapoint2CacheControl' from JSON`);
}
/** @internal */
exports.RetrieveDatapoint24$inboundSchema = z.object({
    type: z.literal("file"),
    cache_control: z.lazy(() => exports.RetrieveDatapoint2CacheControl$inboundSchema)
        .optional(),
    file: components.FileContentPartSchema$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "cache_control": "cacheControl",
    });
});
function retrieveDatapoint24FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapoint24$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapoint24' from JSON`);
}
/** @internal */
exports.RetrieveDatapointContent2$inboundSchema = z.union([
    components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
    components.ImageContentPartSchema$inboundSchema,
    components.AudioContentPartSchema$inboundSchema,
    z.lazy(() => exports.RetrieveDatapoint24$inboundSchema),
]);
function retrieveDatapointContent2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointContent2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointContent2' from JSON`);
}
/** @internal */
exports.RetrieveDatapointMessagesDatasetsResponseContent$inboundSchema = z.union([
    z.string(),
    z.array(z.union([
        components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
        components.ImageContentPartSchema$inboundSchema,
        components.AudioContentPartSchema$inboundSchema,
        z.lazy(() => exports.RetrieveDatapoint24$inboundSchema),
    ])),
]);
function retrieveDatapointMessagesDatasetsResponseContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointMessagesDatasetsResponseContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointMessagesDatasetsResponseContent' from JSON`);
}
/** @internal */
exports.RetrieveDatapointMessagesUserMessage$inboundSchema = z.object({
    role: z.literal("user"),
    name: z.string().optional(),
    content: z.union([
        z.string(),
        z.array(z.union([
            components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
            components.ImageContentPartSchema$inboundSchema,
            components.AudioContentPartSchema$inboundSchema,
            z.lazy(() => exports.RetrieveDatapoint24$inboundSchema),
        ])),
    ]),
});
function retrieveDatapointMessagesUserMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointMessagesUserMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointMessagesUserMessage' from JSON`);
}
/** @internal */
exports.RetrieveDatapointMessagesDatasetsContent$inboundSchema = z.union([
    z.string(),
    z.array(components.TextContentPartSchema$inboundSchema),
]);
function retrieveDatapointMessagesDatasetsContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointMessagesDatasetsContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointMessagesDatasetsContent' from JSON`);
}
/** @internal */
exports.RetrieveDatapointMessagesDeveloperMessage$inboundSchema = z.object({
    role: z.literal("developer"),
    content: z.union([
        z.string(),
        z.array(components.TextContentPartSchema$inboundSchema),
    ]),
    name: z.string().optional(),
});
function retrieveDatapointMessagesDeveloperMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointMessagesDeveloperMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointMessagesDeveloperMessage' from JSON`);
}
/** @internal */
exports.RetrieveDatapointMessagesContent$inboundSchema = z.union([
    z.string(),
    z.array(components.TextContentPartSchema$inboundSchema),
]);
function retrieveDatapointMessagesContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointMessagesContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointMessagesContent' from JSON`);
}
/** @internal */
exports.RetrieveDatapointMessagesSystemMessage$inboundSchema = z.object({
    role: z.literal("system"),
    content: z.union([
        z.string(),
        z.array(components.TextContentPartSchema$inboundSchema),
    ]),
    name: z.string().optional(),
});
function retrieveDatapointMessagesSystemMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointMessagesSystemMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointMessagesSystemMessage' from JSON`);
}
/** @internal */
exports.RetrieveDatapointMessages$inboundSchema = z.union([
    z.lazy(() => exports.RetrieveDatapointMessagesSystemMessage$inboundSchema),
    z.lazy(() => exports.RetrieveDatapointMessagesDeveloperMessage$inboundSchema),
    z.lazy(() => exports.RetrieveDatapointMessagesUserMessage$inboundSchema),
    z.lazy(() => exports.RetrieveDatapointMessagesAssistantMessage$inboundSchema),
    z.lazy(() => exports.RetrieveDatapointMessagesToolMessage$inboundSchema),
]);
function retrieveDatapointMessagesFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointMessages' from JSON`);
}
/** @internal */
exports.RetrieveDatapointEvaluationsDatasetsResponseEvaluationType$inboundSchema = z.nativeEnum(exports.RetrieveDatapointEvaluationsDatasetsResponseEvaluationType);
/** @internal */
exports.RetrieveDatapointEvaluationsDatasetsResponseSource$inboundSchema = z
    .nativeEnum(exports.RetrieveDatapointEvaluationsDatasetsResponseSource);
/** @internal */
exports.RetrieveDatapointEvaluations3$inboundSchema = z.object({
    id: z.string(),
    evaluation_type: exports.RetrieveDatapointEvaluationsDatasetsResponseEvaluationType$inboundSchema,
    human_review_id: z.string(),
    source: exports.RetrieveDatapointEvaluationsDatasetsResponseSource$inboundSchema
        .default("orq"),
    reviewed_by_id: z.string(),
    reviewed_at: z.string().datetime({ offset: true }).default("2026-06-02T06:47:38.572Z").transform(v => new Date(v)),
    type: z.literal("string_array"),
    values: z.array(z.string()),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "evaluation_type": "evaluationType",
        "human_review_id": "humanReviewId",
        "reviewed_by_id": "reviewedById",
        "reviewed_at": "reviewedAt",
    });
});
function retrieveDatapointEvaluations3FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointEvaluations3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointEvaluations3' from JSON`);
}
/** @internal */
exports.RetrieveDatapointEvaluationsDatasetsEvaluationType$inboundSchema = z
    .nativeEnum(exports.RetrieveDatapointEvaluationsDatasetsEvaluationType);
/** @internal */
exports.RetrieveDatapointEvaluationsDatasetsSource$inboundSchema = z
    .nativeEnum(exports.RetrieveDatapointEvaluationsDatasetsSource);
/** @internal */
exports.RetrieveDatapointEvaluations2$inboundSchema = z.object({
    id: z.string(),
    evaluation_type: exports.RetrieveDatapointEvaluationsDatasetsEvaluationType$inboundSchema,
    human_review_id: z.string(),
    source: exports.RetrieveDatapointEvaluationsDatasetsSource$inboundSchema.default("orq"),
    reviewed_by_id: z.string(),
    reviewed_at: z.string().datetime({ offset: true }).default("2026-06-02T06:47:38.572Z").transform(v => new Date(v)),
    type: z.literal("number"),
    value: z.number(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "evaluation_type": "evaluationType",
        "human_review_id": "humanReviewId",
        "reviewed_by_id": "reviewedById",
        "reviewed_at": "reviewedAt",
    });
});
function retrieveDatapointEvaluations2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointEvaluations2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointEvaluations2' from JSON`);
}
/** @internal */
exports.RetrieveDatapointEvaluationsEvaluationType$inboundSchema = z
    .nativeEnum(exports.RetrieveDatapointEvaluationsEvaluationType);
/** @internal */
exports.RetrieveDatapointEvaluationsSource$inboundSchema = z.nativeEnum(exports.RetrieveDatapointEvaluationsSource);
/** @internal */
exports.RetrieveDatapointEvaluations1$inboundSchema = z.object({
    id: z.string(),
    evaluation_type: exports.RetrieveDatapointEvaluationsEvaluationType$inboundSchema,
    human_review_id: z.string(),
    source: exports.RetrieveDatapointEvaluationsSource$inboundSchema.default("orq"),
    reviewed_by_id: z.string(),
    reviewed_at: z.string().datetime({ offset: true }).default("2026-06-02T06:47:38.571Z").transform(v => new Date(v)),
    type: z.literal("string"),
    value: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "evaluation_type": "evaluationType",
        "human_review_id": "humanReviewId",
        "reviewed_by_id": "reviewedById",
        "reviewed_at": "reviewedAt",
    });
});
function retrieveDatapointEvaluations1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointEvaluations1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointEvaluations1' from JSON`);
}
/** @internal */
exports.RetrieveDatapointEvaluations$inboundSchema = z.union([
    z.lazy(() => exports.RetrieveDatapointEvaluations1$inboundSchema),
    z.lazy(() => exports.RetrieveDatapointEvaluations2$inboundSchema),
    z.lazy(() => exports.RetrieveDatapointEvaluations3$inboundSchema),
]);
function retrieveDatapointEvaluationsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointEvaluations$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointEvaluations' from JSON`);
}
/** @internal */
exports.RetrieveDatapointResponseBody$inboundSchema = z.object({
    _id: z.string(),
    workspace_id: z.string(),
    inputs: z.record(z.any()).optional(),
    messages: z.array(z.union([
        z.lazy(() => exports.RetrieveDatapointMessagesSystemMessage$inboundSchema),
        z.lazy(() => exports.RetrieveDatapointMessagesDeveloperMessage$inboundSchema),
        z.lazy(() => exports.RetrieveDatapointMessagesUserMessage$inboundSchema),
        z.lazy(() => exports.RetrieveDatapointMessagesAssistantMessage$inboundSchema),
        z.lazy(() => exports.RetrieveDatapointMessagesToolMessage$inboundSchema),
    ])).optional(),
    expected_output: z.string().optional(),
    evaluations: z.array(z.union([
        z.lazy(() => exports.RetrieveDatapointEvaluations1$inboundSchema),
        z.lazy(() => exports.RetrieveDatapointEvaluations2$inboundSchema),
        z.lazy(() => exports.RetrieveDatapointEvaluations3$inboundSchema),
    ])).optional(),
    dataset_id: z.string(),
    snapshot_version: z.string().optional(),
    created_by_id: z.string().optional(),
    updated_by_id: z.string().optional(),
    created: z.string().datetime({ offset: true }).transform(v => new Date(v))
        .optional(),
    updated: z.string().datetime({ offset: true }).default("2026-06-02T06:47:23.998Z").transform(v => new Date(v)),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "workspace_id": "workspaceId",
        "expected_output": "expectedOutput",
        "dataset_id": "datasetId",
        "snapshot_version": "snapshotVersion",
        "created_by_id": "createdById",
        "updated_by_id": "updatedById",
    });
});
function retrieveDatapointResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointResponseBody' from JSON`);
}
//# sourceMappingURL=retrievedatapoint.js.map