"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.ListDatasetDatapointsData$inboundSchema = exports.ListDatasetDatapointsEvaluations$inboundSchema = exports.ListDatasetDatapointsEvaluations1$inboundSchema = exports.ListDatasetDatapointsEvaluationsDatasetsResponseSource$inboundSchema = exports.ListDatasetDatapointsEvaluationsDatasetsEvaluationType$inboundSchema = exports.ListDatasetDatapointsEvaluations2$inboundSchema = exports.ListDatasetDatapointsEvaluationsSource$inboundSchema = exports.ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType$inboundSchema = exports.ListDatasetDatapointsEvaluations3$inboundSchema = exports.ListDatasetDatapointsEvaluationsDatasetsSource$inboundSchema = exports.ListDatasetDatapointsEvaluationsEvaluationType$inboundSchema = exports.ListDatasetDatapointsMessages$inboundSchema = exports.ListDatasetDatapointsMessagesSystemMessage$inboundSchema = exports.ListDatasetDatapointsMessagesContent$inboundSchema = exports.ListDatasetDatapointsMessagesDeveloperMessage$inboundSchema = exports.ListDatasetDatapointsMessagesDatasetsContent$inboundSchema = exports.ListDatasetDatapointsMessagesUserMessage$inboundSchema = exports.ListDatasetDatapointsMessagesDatasetsResponseContent$inboundSchema = exports.ListDatasetDatapointsContent2$inboundSchema = exports.ListDatasetDatapoints24$inboundSchema = exports.ListDatasetDatapoints2CacheControl$inboundSchema = exports.ListDatasetDatapoints2Ttl$inboundSchema = exports.ListDatasetDatapoints2DatasetsType$inboundSchema = exports.ListDatasetDatapointsMessagesAssistantMessage$inboundSchema = exports.ListDatasetDatapointsMessagesToolCalls$inboundSchema = exports.ListDatasetDatapointsMessagesFunction$inboundSchema = exports.ListDatasetDatapointsMessagesType$inboundSchema = exports.ListDatasetDatapointsMessagesAudio$inboundSchema = exports.ListDatasetDatapointsMessagesDatasetsResponse200Content$inboundSchema = exports.ListDatasetDatapointsContentDatasets2$inboundSchema = exports.ListDatasetDatapointsMessagesToolMessage$inboundSchema = exports.ListDatasetDatapointsMessagesCacheControl$inboundSchema = exports.ListDatasetDatapointsMessagesTtl$inboundSchema = exports.ListDatasetDatapointsMessagesDatasetsType$inboundSchema = exports.ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONContent$inboundSchema = exports.ListDatasetDatapointsContentDatasetsResponse2$inboundSchema = exports.ListDatasetDatapointsObject$inboundSchema = exports.ListDatasetDatapointsRequest$outboundSchema = exports.ListDatasetDatapointsEvaluationsDatasetsResponseSource = exports.ListDatasetDatapointsEvaluationsDatasetsEvaluationType = exports.ListDatasetDatapointsEvaluationsSource = exports.ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType = exports.ListDatasetDatapointsEvaluationsDatasetsSource = exports.ListDatasetDatapointsEvaluationsEvaluationType = exports.ListDatasetDatapoints2Ttl = exports.ListDatasetDatapoints2DatasetsType = exports.ListDatasetDatapointsMessagesType = exports.ListDatasetDatapointsMessagesTtl = exports.ListDatasetDatapointsMessagesDatasetsType = exports.ListDatasetDatapointsObject = void 0;
exports.ListDatasetDatapointsResponseBody$inboundSchema = void 0;
exports.listDatasetDatapointsRequestToJSON = listDatasetDatapointsRequestToJSON;
exports.listDatasetDatapointsContentDatasetsResponse2FromJSON = listDatasetDatapointsContentDatasetsResponse2FromJSON;
exports.listDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONContentFromJSON = listDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONContentFromJSON;
exports.listDatasetDatapointsMessagesCacheControlFromJSON = listDatasetDatapointsMessagesCacheControlFromJSON;
exports.listDatasetDatapointsMessagesToolMessageFromJSON = listDatasetDatapointsMessagesToolMessageFromJSON;
exports.listDatasetDatapointsContentDatasets2FromJSON = listDatasetDatapointsContentDatasets2FromJSON;
exports.listDatasetDatapointsMessagesDatasetsResponse200ContentFromJSON = listDatasetDatapointsMessagesDatasetsResponse200ContentFromJSON;
exports.listDatasetDatapointsMessagesAudioFromJSON = listDatasetDatapointsMessagesAudioFromJSON;
exports.listDatasetDatapointsMessagesFunctionFromJSON = listDatasetDatapointsMessagesFunctionFromJSON;
exports.listDatasetDatapointsMessagesToolCallsFromJSON = listDatasetDatapointsMessagesToolCallsFromJSON;
exports.listDatasetDatapointsMessagesAssistantMessageFromJSON = listDatasetDatapointsMessagesAssistantMessageFromJSON;
exports.listDatasetDatapoints2CacheControlFromJSON = listDatasetDatapoints2CacheControlFromJSON;
exports.listDatasetDatapoints24FromJSON = listDatasetDatapoints24FromJSON;
exports.listDatasetDatapointsContent2FromJSON = listDatasetDatapointsContent2FromJSON;
exports.listDatasetDatapointsMessagesDatasetsResponseContentFromJSON = listDatasetDatapointsMessagesDatasetsResponseContentFromJSON;
exports.listDatasetDatapointsMessagesUserMessageFromJSON = listDatasetDatapointsMessagesUserMessageFromJSON;
exports.listDatasetDatapointsMessagesDatasetsContentFromJSON = listDatasetDatapointsMessagesDatasetsContentFromJSON;
exports.listDatasetDatapointsMessagesDeveloperMessageFromJSON = listDatasetDatapointsMessagesDeveloperMessageFromJSON;
exports.listDatasetDatapointsMessagesContentFromJSON = listDatasetDatapointsMessagesContentFromJSON;
exports.listDatasetDatapointsMessagesSystemMessageFromJSON = listDatasetDatapointsMessagesSystemMessageFromJSON;
exports.listDatasetDatapointsMessagesFromJSON = listDatasetDatapointsMessagesFromJSON;
exports.listDatasetDatapointsEvaluations3FromJSON = listDatasetDatapointsEvaluations3FromJSON;
exports.listDatasetDatapointsEvaluations2FromJSON = listDatasetDatapointsEvaluations2FromJSON;
exports.listDatasetDatapointsEvaluations1FromJSON = listDatasetDatapointsEvaluations1FromJSON;
exports.listDatasetDatapointsEvaluationsFromJSON = listDatasetDatapointsEvaluationsFromJSON;
exports.listDatasetDatapointsDataFromJSON = listDatasetDatapointsDataFromJSON;
exports.listDatasetDatapointsResponseBodyFromJSON = listDatasetDatapointsResponseBodyFromJSON;
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"));
exports.ListDatasetDatapointsObject = {
    List: "list",
};
/**
 * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
 */
exports.ListDatasetDatapointsMessagesDatasetsType = {
    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.ListDatasetDatapointsMessagesTtl = {
    Fivem: "5m",
    Oneh: "1h",
};
/**
 * The type of the tool. Currently, only `function` is supported.
 */
exports.ListDatasetDatapointsMessagesType = {
    Function: "function",
};
/**
 * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
 */
exports.ListDatasetDatapoints2DatasetsType = {
    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.ListDatasetDatapoints2Ttl = {
    Fivem: "5m",
    Oneh: "1h",
};
/**
 * The type of evaluation
 */
exports.ListDatasetDatapointsEvaluationsEvaluationType = {
    HumanReview: "human_review",
};
exports.ListDatasetDatapointsEvaluationsDatasetsSource = {
    Orq: "orq",
    External: "external",
};
/**
 * The type of evaluation
 */
exports.ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType = {
    HumanReview: "human_review",
};
exports.ListDatasetDatapointsEvaluationsSource = {
    Orq: "orq",
    External: "external",
};
/**
 * The type of evaluation
 */
exports.ListDatasetDatapointsEvaluationsDatasetsEvaluationType = {
    HumanReview: "human_review",
};
exports.ListDatasetDatapointsEvaluationsDatasetsResponseSource = {
    Orq: "orq",
    External: "external",
};
/** @internal */
exports.ListDatasetDatapointsRequest$outboundSchema = z.object({
    datasetId: z.string(),
    limit: z.number().int().default(10),
    startingAfter: z.string().optional(),
    endingBefore: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        datasetId: "dataset_id",
        startingAfter: "starting_after",
        endingBefore: "ending_before",
    });
});
function listDatasetDatapointsRequestToJSON(listDatasetDatapointsRequest) {
    return JSON.stringify(exports.ListDatasetDatapointsRequest$outboundSchema.parse(listDatasetDatapointsRequest));
}
/** @internal */
exports.ListDatasetDatapointsObject$inboundSchema = z.nativeEnum(exports.ListDatasetDatapointsObject);
/** @internal */
exports.ListDatasetDatapointsContentDatasetsResponse2$inboundSchema = components.TextContentPartSchema$inboundSchema;
function listDatasetDatapointsContentDatasetsResponse2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsContentDatasetsResponse2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsContentDatasetsResponse2' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONContent$inboundSchema = z.union([
    z.string(),
    z.array(components.TextContentPartSchema$inboundSchema),
]);
function listDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONContent$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONContent' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsMessagesDatasetsType$inboundSchema = z
    .nativeEnum(exports.ListDatasetDatapointsMessagesDatasetsType);
/** @internal */
exports.ListDatasetDatapointsMessagesTtl$inboundSchema = z.nativeEnum(exports.ListDatasetDatapointsMessagesTtl);
/** @internal */
exports.ListDatasetDatapointsMessagesCacheControl$inboundSchema = z.object({
    type: exports.ListDatasetDatapointsMessagesDatasetsType$inboundSchema,
    ttl: exports.ListDatasetDatapointsMessagesTtl$inboundSchema.default("5m"),
});
function listDatasetDatapointsMessagesCacheControlFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsMessagesCacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsMessagesCacheControl' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsMessagesToolMessage$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.ListDatasetDatapointsMessagesCacheControl$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "tool_call_id": "toolCallId",
        "cache_control": "cacheControl",
    });
});
function listDatasetDatapointsMessagesToolMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsMessagesToolMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsMessagesToolMessage' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsContentDatasets2$inboundSchema = z.union([
    components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
    components.RefusalPartSchema$inboundSchema,
    components.ReasoningPartSchema$inboundSchema,
    components.RedactedReasoningPartSchema$inboundSchema,
]);
function listDatasetDatapointsContentDatasets2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsContentDatasets2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsContentDatasets2' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsMessagesDatasetsResponse200Content$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 listDatasetDatapointsMessagesDatasetsResponse200ContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsMessagesDatasetsResponse200Content$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsMessagesDatasetsResponse200Content' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsMessagesAudio$inboundSchema = z.object({
    id: z.string(),
});
function listDatasetDatapointsMessagesAudioFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsMessagesAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsMessagesAudio' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsMessagesType$inboundSchema = z.nativeEnum(exports.ListDatasetDatapointsMessagesType);
/** @internal */
exports.ListDatasetDatapointsMessagesFunction$inboundSchema = z.object({
    name: z.string().optional(),
    arguments: z.string().optional(),
});
function listDatasetDatapointsMessagesFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsMessagesFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsMessagesFunction' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsMessagesToolCalls$inboundSchema = z.object({
    id: z.string(),
    type: exports.ListDatasetDatapointsMessagesType$inboundSchema,
    function: z.lazy(() => exports.ListDatasetDatapointsMessagesFunction$inboundSchema),
    thought_signature: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "thought_signature": "thoughtSignature",
    });
});
function listDatasetDatapointsMessagesToolCallsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsMessagesToolCalls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsMessagesToolCalls' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsMessagesAssistantMessage$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.ListDatasetDatapointsMessagesAudio$inboundSchema)).optional(),
    tool_calls: z.array(z.lazy(() => exports.ListDatasetDatapointsMessagesToolCalls$inboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "tool_calls": "toolCalls",
    });
});
function listDatasetDatapointsMessagesAssistantMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsMessagesAssistantMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsMessagesAssistantMessage' from JSON`);
}
/** @internal */
exports.ListDatasetDatapoints2DatasetsType$inboundSchema = z.nativeEnum(exports.ListDatasetDatapoints2DatasetsType);
/** @internal */
exports.ListDatasetDatapoints2Ttl$inboundSchema = z.nativeEnum(exports.ListDatasetDatapoints2Ttl);
/** @internal */
exports.ListDatasetDatapoints2CacheControl$inboundSchema = z.object({
    type: exports.ListDatasetDatapoints2DatasetsType$inboundSchema,
    ttl: exports.ListDatasetDatapoints2Ttl$inboundSchema.default("5m"),
});
function listDatasetDatapoints2CacheControlFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapoints2CacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapoints2CacheControl' from JSON`);
}
/** @internal */
exports.ListDatasetDatapoints24$inboundSchema = z.object({
    type: z.literal("file"),
    cache_control: z.lazy(() => exports.ListDatasetDatapoints2CacheControl$inboundSchema)
        .optional(),
    file: components.FileContentPartSchema$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "cache_control": "cacheControl",
    });
});
function listDatasetDatapoints24FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapoints24$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapoints24' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsContent2$inboundSchema = z.union([
    components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
    components.ImageContentPartSchema$inboundSchema,
    components.AudioContentPartSchema$inboundSchema,
    z.lazy(() => exports.ListDatasetDatapoints24$inboundSchema),
]);
function listDatasetDatapointsContent2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsContent2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsContent2' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsMessagesDatasetsResponseContent$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.ListDatasetDatapoints24$inboundSchema),
    ])),
]);
function listDatasetDatapointsMessagesDatasetsResponseContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsMessagesDatasetsResponseContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsMessagesDatasetsResponseContent' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsMessagesUserMessage$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.ListDatasetDatapoints24$inboundSchema),
        ])),
    ]),
});
function listDatasetDatapointsMessagesUserMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsMessagesUserMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsMessagesUserMessage' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsMessagesDatasetsContent$inboundSchema = z.union([
    z.string(),
    z.array(components.TextContentPartSchema$inboundSchema),
]);
function listDatasetDatapointsMessagesDatasetsContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsMessagesDatasetsContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsMessagesDatasetsContent' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsMessagesDeveloperMessage$inboundSchema = z.object({
    role: z.literal("developer"),
    content: z.union([
        z.string(),
        z.array(components.TextContentPartSchema$inboundSchema),
    ]),
    name: z.string().optional(),
});
function listDatasetDatapointsMessagesDeveloperMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsMessagesDeveloperMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsMessagesDeveloperMessage' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsMessagesContent$inboundSchema = z.union([
    z.string(),
    z.array(components.TextContentPartSchema$inboundSchema),
]);
function listDatasetDatapointsMessagesContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsMessagesContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsMessagesContent' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsMessagesSystemMessage$inboundSchema = z.object({
    role: z.literal("system"),
    content: z.union([
        z.string(),
        z.array(components.TextContentPartSchema$inboundSchema),
    ]),
    name: z.string().optional(),
});
function listDatasetDatapointsMessagesSystemMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsMessagesSystemMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsMessagesSystemMessage' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsMessages$inboundSchema = z.union([
    z.lazy(() => exports.ListDatasetDatapointsMessagesSystemMessage$inboundSchema),
    z.lazy(() => exports.ListDatasetDatapointsMessagesDeveloperMessage$inboundSchema),
    z.lazy(() => exports.ListDatasetDatapointsMessagesUserMessage$inboundSchema),
    z.lazy(() => exports.ListDatasetDatapointsMessagesAssistantMessage$inboundSchema),
    z.lazy(() => exports.ListDatasetDatapointsMessagesToolMessage$inboundSchema),
]);
function listDatasetDatapointsMessagesFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsMessages' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsEvaluationsEvaluationType$inboundSchema = z
    .nativeEnum(exports.ListDatasetDatapointsEvaluationsEvaluationType);
/** @internal */
exports.ListDatasetDatapointsEvaluationsDatasetsSource$inboundSchema = z
    .nativeEnum(exports.ListDatasetDatapointsEvaluationsDatasetsSource);
/** @internal */
exports.ListDatasetDatapointsEvaluations3$inboundSchema = z.object({
    id: z.string(),
    evaluation_type: exports.ListDatasetDatapointsEvaluationsEvaluationType$inboundSchema,
    human_review_id: z.string(),
    source: exports.ListDatasetDatapointsEvaluationsDatasetsSource$inboundSchema.default("orq"),
    reviewed_by_id: z.string(),
    reviewed_at: z.string().datetime({ offset: true }).default("2026-05-26T22:06:15.713Z").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 listDatasetDatapointsEvaluations3FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsEvaluations3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsEvaluations3' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType$inboundSchema = z.nativeEnum(exports.ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType);
/** @internal */
exports.ListDatasetDatapointsEvaluationsSource$inboundSchema = z.nativeEnum(exports.ListDatasetDatapointsEvaluationsSource);
/** @internal */
exports.ListDatasetDatapointsEvaluations2$inboundSchema = z.object({
    id: z.string(),
    evaluation_type: exports.ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType$inboundSchema,
    human_review_id: z.string(),
    source: exports.ListDatasetDatapointsEvaluationsSource$inboundSchema.default("orq"),
    reviewed_by_id: z.string(),
    reviewed_at: z.string().datetime({ offset: true }).default("2026-05-26T22:06:15.712Z").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 listDatasetDatapointsEvaluations2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsEvaluations2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsEvaluations2' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsEvaluationsDatasetsEvaluationType$inboundSchema = z.nativeEnum(exports.ListDatasetDatapointsEvaluationsDatasetsEvaluationType);
/** @internal */
exports.ListDatasetDatapointsEvaluationsDatasetsResponseSource$inboundSchema = z.nativeEnum(exports.ListDatasetDatapointsEvaluationsDatasetsResponseSource);
/** @internal */
exports.ListDatasetDatapointsEvaluations1$inboundSchema = z.object({
    id: z.string(),
    evaluation_type: exports.ListDatasetDatapointsEvaluationsDatasetsEvaluationType$inboundSchema,
    human_review_id: z.string(),
    source: exports.ListDatasetDatapointsEvaluationsDatasetsResponseSource$inboundSchema
        .default("orq"),
    reviewed_by_id: z.string(),
    reviewed_at: z.string().datetime({ offset: true }).default("2026-05-26T22:06:15.712Z").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 listDatasetDatapointsEvaluations1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsEvaluations1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsEvaluations1' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsEvaluations$inboundSchema = z.union([
    z.lazy(() => exports.ListDatasetDatapointsEvaluations1$inboundSchema),
    z.lazy(() => exports.ListDatasetDatapointsEvaluations2$inboundSchema),
    z.lazy(() => exports.ListDatasetDatapointsEvaluations3$inboundSchema),
]);
function listDatasetDatapointsEvaluationsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsEvaluations$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsEvaluations' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsData$inboundSchema = z.object({
    _id: z.string(),
    workspace_id: z.string(),
    inputs: z.record(z.any()).optional(),
    messages: z.array(z.union([
        z.lazy(() => exports.ListDatasetDatapointsMessagesSystemMessage$inboundSchema),
        z.lazy(() => exports.ListDatasetDatapointsMessagesDeveloperMessage$inboundSchema),
        z.lazy(() => exports.ListDatasetDatapointsMessagesUserMessage$inboundSchema),
        z.lazy(() => exports.ListDatasetDatapointsMessagesAssistantMessage$inboundSchema),
        z.lazy(() => exports.ListDatasetDatapointsMessagesToolMessage$inboundSchema),
    ])).optional(),
    expected_output: z.string().optional(),
    evaluations: z.array(z.union([
        z.lazy(() => exports.ListDatasetDatapointsEvaluations1$inboundSchema),
        z.lazy(() => exports.ListDatasetDatapointsEvaluations2$inboundSchema),
        z.lazy(() => exports.ListDatasetDatapointsEvaluations3$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-05-26T22:06:01.786Z").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 listDatasetDatapointsDataFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsData' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsResponseBody$inboundSchema = z.object({
    object: exports.ListDatasetDatapointsObject$inboundSchema,
    data: z.array(z.lazy(() => exports.ListDatasetDatapointsData$inboundSchema)),
    has_more: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "has_more": "hasMore",
    });
});
function listDatasetDatapointsResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsResponseBody' from JSON`);
}
//# sourceMappingURL=listdatasetdatapoints.js.map