"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.UpdateDatapointContentDatasetsResponse2002$inboundSchema = exports.UpdateDatapointMessagesDatasetsToolMessage$inboundSchema = exports.UpdateDatapointMessagesDatasetsCacheControl$inboundSchema = exports.UpdateDatapointMessagesDatasetsTtl$inboundSchema = exports.UpdateDatapointMessagesDatasetsResponse200Type$inboundSchema = exports.UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBody5Content$inboundSchema = exports.UpdateDatapointContentDatasetsResponse200ApplicationJson2$inboundSchema = exports.UpdateDatapointRequest$outboundSchema = exports.UpdateDatapointRequestBody$outboundSchema = exports.UpdateDatapointMessages$outboundSchema = exports.UpdateDatapointMessagesSystemMessage$outboundSchema = exports.UpdateDatapointMessagesContent$outboundSchema = exports.UpdateDatapointMessagesDeveloperMessage$outboundSchema = exports.UpdateDatapointMessagesDatasetsContent$outboundSchema = exports.UpdateDatapointMessagesUserMessage$outboundSchema = exports.UpdateDatapointMessagesDatasetsRequestContent$outboundSchema = exports.UpdateDatapointContent2$outboundSchema = exports.UpdateDatapoint24$outboundSchema = exports.UpdateDatapoint2CacheControl$outboundSchema = exports.UpdateDatapoint2Ttl$outboundSchema = exports.UpdateDatapoint2DatasetsType$outboundSchema = exports.UpdateDatapointMessagesAssistantMessage$outboundSchema = exports.UpdateDatapointMessagesToolCalls$outboundSchema = exports.UpdateDatapointMessagesFunction$outboundSchema = exports.UpdateDatapointMessagesType$outboundSchema = exports.UpdateDatapointMessagesAudio$outboundSchema = exports.UpdateDatapointMessagesDatasetsRequestRequestBodyContent$outboundSchema = exports.UpdateDatapointContentDatasets2$outboundSchema = exports.UpdateDatapointMessagesToolMessage$outboundSchema = exports.UpdateDatapointMessagesCacheControl$outboundSchema = exports.UpdateDatapointMessagesTtl$outboundSchema = exports.UpdateDatapointMessagesDatasetsType$outboundSchema = exports.UpdateDatapointMessagesDatasetsRequestRequestBody5Content$outboundSchema = exports.UpdateDatapointContentDatasetsRequest2$outboundSchema = exports.UpdateDatapointEvaluationsSource = exports.UpdateDatapointEvaluationsEvaluationType = exports.UpdateDatapointEvaluationsDatasetsSource = exports.UpdateDatapointEvaluationsDatasetsEvaluationType = exports.UpdateDatapointEvaluationsDatasetsResponseSource = exports.UpdateDatapointEvaluationsDatasetsResponseEvaluationType = exports.UpdateDatapoint2DatasetsTtl = exports.UpdateDatapoint2DatasetsResponse200Type = exports.UpdateDatapointMessagesDatasetsResponseType = exports.UpdateDatapointMessagesDatasetsTtl = exports.UpdateDatapointMessagesDatasetsResponse200Type = exports.UpdateDatapoint2Ttl = exports.UpdateDatapoint2DatasetsType = exports.UpdateDatapointMessagesType = exports.UpdateDatapointMessagesTtl = exports.UpdateDatapointMessagesDatasetsType = void 0;
exports.UpdateDatapointResponseBody$inboundSchema = exports.UpdateDatapointEvaluations$inboundSchema = exports.UpdateDatapointEvaluations1$inboundSchema = exports.UpdateDatapointEvaluationsSource$inboundSchema = exports.UpdateDatapointEvaluationsEvaluationType$inboundSchema = exports.UpdateDatapointEvaluations2$inboundSchema = exports.UpdateDatapointEvaluationsDatasetsSource$inboundSchema = exports.UpdateDatapointEvaluationsDatasetsEvaluationType$inboundSchema = exports.UpdateDatapointEvaluations3$inboundSchema = exports.UpdateDatapointEvaluationsDatasetsResponseSource$inboundSchema = exports.UpdateDatapointEvaluationsDatasetsResponseEvaluationType$inboundSchema = exports.UpdateDatapointDatasetsMessages$inboundSchema = exports.UpdateDatapointMessagesDatasetsSystemMessage$inboundSchema = exports.UpdateDatapointMessagesDatasetsResponseContent$inboundSchema = exports.UpdateDatapointMessagesDatasetsDeveloperMessage$inboundSchema = exports.UpdateDatapointMessagesDatasetsResponse200Content$inboundSchema = exports.UpdateDatapointMessagesDatasetsUserMessage$inboundSchema = exports.UpdateDatapointMessagesDatasetsResponse200ApplicationJSONContent$inboundSchema = exports.UpdateDatapointContentDatasetsResponse2$inboundSchema = exports.UpdateDatapoint2Datasets4$inboundSchema = exports.UpdateDatapoint2DatasetsCacheControl$inboundSchema = exports.UpdateDatapoint2DatasetsTtl$inboundSchema = exports.UpdateDatapoint2DatasetsResponse200Type$inboundSchema = exports.UpdateDatapointMessagesDatasetsAssistantMessage$inboundSchema = exports.UpdateDatapointMessagesDatasetsToolCalls$inboundSchema = exports.UpdateDatapointMessagesDatasetsFunction$inboundSchema = exports.UpdateDatapointMessagesDatasetsResponseType$inboundSchema = exports.UpdateDatapointMessagesDatasetsAudio$inboundSchema = exports.UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBodyContent$inboundSchema = void 0;
exports.updateDatapointContentDatasetsRequest2ToJSON = updateDatapointContentDatasetsRequest2ToJSON;
exports.updateDatapointMessagesDatasetsRequestRequestBody5ContentToJSON = updateDatapointMessagesDatasetsRequestRequestBody5ContentToJSON;
exports.updateDatapointMessagesCacheControlToJSON = updateDatapointMessagesCacheControlToJSON;
exports.updateDatapointMessagesToolMessageToJSON = updateDatapointMessagesToolMessageToJSON;
exports.updateDatapointContentDatasets2ToJSON = updateDatapointContentDatasets2ToJSON;
exports.updateDatapointMessagesDatasetsRequestRequestBodyContentToJSON = updateDatapointMessagesDatasetsRequestRequestBodyContentToJSON;
exports.updateDatapointMessagesAudioToJSON = updateDatapointMessagesAudioToJSON;
exports.updateDatapointMessagesFunctionToJSON = updateDatapointMessagesFunctionToJSON;
exports.updateDatapointMessagesToolCallsToJSON = updateDatapointMessagesToolCallsToJSON;
exports.updateDatapointMessagesAssistantMessageToJSON = updateDatapointMessagesAssistantMessageToJSON;
exports.updateDatapoint2CacheControlToJSON = updateDatapoint2CacheControlToJSON;
exports.updateDatapoint24ToJSON = updateDatapoint24ToJSON;
exports.updateDatapointContent2ToJSON = updateDatapointContent2ToJSON;
exports.updateDatapointMessagesDatasetsRequestContentToJSON = updateDatapointMessagesDatasetsRequestContentToJSON;
exports.updateDatapointMessagesUserMessageToJSON = updateDatapointMessagesUserMessageToJSON;
exports.updateDatapointMessagesDatasetsContentToJSON = updateDatapointMessagesDatasetsContentToJSON;
exports.updateDatapointMessagesDeveloperMessageToJSON = updateDatapointMessagesDeveloperMessageToJSON;
exports.updateDatapointMessagesContentToJSON = updateDatapointMessagesContentToJSON;
exports.updateDatapointMessagesSystemMessageToJSON = updateDatapointMessagesSystemMessageToJSON;
exports.updateDatapointMessagesToJSON = updateDatapointMessagesToJSON;
exports.updateDatapointRequestBodyToJSON = updateDatapointRequestBodyToJSON;
exports.updateDatapointRequestToJSON = updateDatapointRequestToJSON;
exports.updateDatapointContentDatasetsResponse200ApplicationJSON2FromJSON = updateDatapointContentDatasetsResponse200ApplicationJSON2FromJSON;
exports.updateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBody5ContentFromJSON = updateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBody5ContentFromJSON;
exports.updateDatapointMessagesDatasetsCacheControlFromJSON = updateDatapointMessagesDatasetsCacheControlFromJSON;
exports.updateDatapointMessagesDatasetsToolMessageFromJSON = updateDatapointMessagesDatasetsToolMessageFromJSON;
exports.updateDatapointContentDatasetsResponse2002FromJSON = updateDatapointContentDatasetsResponse2002FromJSON;
exports.updateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBodyContentFromJSON = updateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBodyContentFromJSON;
exports.updateDatapointMessagesDatasetsAudioFromJSON = updateDatapointMessagesDatasetsAudioFromJSON;
exports.updateDatapointMessagesDatasetsFunctionFromJSON = updateDatapointMessagesDatasetsFunctionFromJSON;
exports.updateDatapointMessagesDatasetsToolCallsFromJSON = updateDatapointMessagesDatasetsToolCallsFromJSON;
exports.updateDatapointMessagesDatasetsAssistantMessageFromJSON = updateDatapointMessagesDatasetsAssistantMessageFromJSON;
exports.updateDatapoint2DatasetsCacheControlFromJSON = updateDatapoint2DatasetsCacheControlFromJSON;
exports.updateDatapoint2Datasets4FromJSON = updateDatapoint2Datasets4FromJSON;
exports.updateDatapointContentDatasetsResponse2FromJSON = updateDatapointContentDatasetsResponse2FromJSON;
exports.updateDatapointMessagesDatasetsResponse200ApplicationJSONContentFromJSON = updateDatapointMessagesDatasetsResponse200ApplicationJSONContentFromJSON;
exports.updateDatapointMessagesDatasetsUserMessageFromJSON = updateDatapointMessagesDatasetsUserMessageFromJSON;
exports.updateDatapointMessagesDatasetsResponse200ContentFromJSON = updateDatapointMessagesDatasetsResponse200ContentFromJSON;
exports.updateDatapointMessagesDatasetsDeveloperMessageFromJSON = updateDatapointMessagesDatasetsDeveloperMessageFromJSON;
exports.updateDatapointMessagesDatasetsResponseContentFromJSON = updateDatapointMessagesDatasetsResponseContentFromJSON;
exports.updateDatapointMessagesDatasetsSystemMessageFromJSON = updateDatapointMessagesDatasetsSystemMessageFromJSON;
exports.updateDatapointDatasetsMessagesFromJSON = updateDatapointDatasetsMessagesFromJSON;
exports.updateDatapointEvaluations3FromJSON = updateDatapointEvaluations3FromJSON;
exports.updateDatapointEvaluations2FromJSON = updateDatapointEvaluations2FromJSON;
exports.updateDatapointEvaluations1FromJSON = updateDatapointEvaluations1FromJSON;
exports.updateDatapointEvaluationsFromJSON = updateDatapointEvaluationsFromJSON;
exports.updateDatapointResponseBodyFromJSON = updateDatapointResponseBodyFromJSON;
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.UpdateDatapointMessagesDatasetsType = {
    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.UpdateDatapointMessagesTtl = {
    Fivem: "5m",
    Oneh: "1h",
};
/**
 * The type of the tool. Currently, only `function` is supported.
 */
exports.UpdateDatapointMessagesType = {
    Function: "function",
};
/**
 * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
 */
exports.UpdateDatapoint2DatasetsType = {
    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.UpdateDatapoint2Ttl = {
    Fivem: "5m",
    Oneh: "1h",
};
/**
 * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
 */
exports.UpdateDatapointMessagesDatasetsResponse200Type = {
    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.UpdateDatapointMessagesDatasetsTtl = {
    Fivem: "5m",
    Oneh: "1h",
};
/**
 * The type of the tool. Currently, only `function` is supported.
 */
exports.UpdateDatapointMessagesDatasetsResponseType = {
    Function: "function",
};
/**
 * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
 */
exports.UpdateDatapoint2DatasetsResponse200Type = {
    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.UpdateDatapoint2DatasetsTtl = {
    Fivem: "5m",
    Oneh: "1h",
};
/**
 * The type of evaluation
 */
exports.UpdateDatapointEvaluationsDatasetsResponseEvaluationType = {
    HumanReview: "human_review",
};
exports.UpdateDatapointEvaluationsDatasetsResponseSource = {
    Orq: "orq",
    External: "external",
};
/**
 * The type of evaluation
 */
exports.UpdateDatapointEvaluationsDatasetsEvaluationType = {
    HumanReview: "human_review",
};
exports.UpdateDatapointEvaluationsDatasetsSource = {
    Orq: "orq",
    External: "external",
};
/**
 * The type of evaluation
 */
exports.UpdateDatapointEvaluationsEvaluationType = {
    HumanReview: "human_review",
};
exports.UpdateDatapointEvaluationsSource = {
    Orq: "orq",
    External: "external",
};
/** @internal */
exports.UpdateDatapointContentDatasetsRequest2$outboundSchema = components.TextContentPartSchema$outboundSchema;
function updateDatapointContentDatasetsRequest2ToJSON(updateDatapointContentDatasetsRequest2) {
    return JSON.stringify(exports.UpdateDatapointContentDatasetsRequest2$outboundSchema.parse(updateDatapointContentDatasetsRequest2));
}
/** @internal */
exports.UpdateDatapointMessagesDatasetsRequestRequestBody5Content$outboundSchema = z.union([
    z.string(),
    z.array(components.TextContentPartSchema$outboundSchema),
]);
function updateDatapointMessagesDatasetsRequestRequestBody5ContentToJSON(updateDatapointMessagesDatasetsRequestRequestBody5Content) {
    return JSON.stringify(exports.UpdateDatapointMessagesDatasetsRequestRequestBody5Content$outboundSchema
        .parse(updateDatapointMessagesDatasetsRequestRequestBody5Content));
}
/** @internal */
exports.UpdateDatapointMessagesDatasetsType$outboundSchema = z.nativeEnum(exports.UpdateDatapointMessagesDatasetsType);
/** @internal */
exports.UpdateDatapointMessagesTtl$outboundSchema = z.nativeEnum(exports.UpdateDatapointMessagesTtl);
/** @internal */
exports.UpdateDatapointMessagesCacheControl$outboundSchema = z.object({
    type: exports.UpdateDatapointMessagesDatasetsType$outboundSchema,
    ttl: exports.UpdateDatapointMessagesTtl$outboundSchema.default("5m"),
});
function updateDatapointMessagesCacheControlToJSON(updateDatapointMessagesCacheControl) {
    return JSON.stringify(exports.UpdateDatapointMessagesCacheControl$outboundSchema.parse(updateDatapointMessagesCacheControl));
}
/** @internal */
exports.UpdateDatapointMessagesToolMessage$outboundSchema = z.object({
    role: z.literal("tool"),
    content: z.union([
        z.string(),
        z.array(components.TextContentPartSchema$outboundSchema),
    ]),
    toolCallId: z.nullable(z.string()),
    cacheControl: z.lazy(() => exports.UpdateDatapointMessagesCacheControl$outboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        toolCallId: "tool_call_id",
        cacheControl: "cache_control",
    });
});
function updateDatapointMessagesToolMessageToJSON(updateDatapointMessagesToolMessage) {
    return JSON.stringify(exports.UpdateDatapointMessagesToolMessage$outboundSchema.parse(updateDatapointMessagesToolMessage));
}
/** @internal */
exports.UpdateDatapointContentDatasets2$outboundSchema = z.union([
    components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
    components.RefusalPartSchema$outboundSchema,
    components.ReasoningPartSchema$outboundSchema,
    components.RedactedReasoningPartSchema$outboundSchema,
]);
function updateDatapointContentDatasets2ToJSON(updateDatapointContentDatasets2) {
    return JSON.stringify(exports.UpdateDatapointContentDatasets2$outboundSchema.parse(updateDatapointContentDatasets2));
}
/** @internal */
exports.UpdateDatapointMessagesDatasetsRequestRequestBodyContent$outboundSchema = z.union([
    z.string(),
    z.array(z.union([
        components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
        components.RefusalPartSchema$outboundSchema,
        components.ReasoningPartSchema$outboundSchema,
        components.RedactedReasoningPartSchema$outboundSchema,
    ])),
]);
function updateDatapointMessagesDatasetsRequestRequestBodyContentToJSON(updateDatapointMessagesDatasetsRequestRequestBodyContent) {
    return JSON.stringify(exports.UpdateDatapointMessagesDatasetsRequestRequestBodyContent$outboundSchema
        .parse(updateDatapointMessagesDatasetsRequestRequestBodyContent));
}
/** @internal */
exports.UpdateDatapointMessagesAudio$outboundSchema = z.object({
    id: z.string(),
});
function updateDatapointMessagesAudioToJSON(updateDatapointMessagesAudio) {
    return JSON.stringify(exports.UpdateDatapointMessagesAudio$outboundSchema.parse(updateDatapointMessagesAudio));
}
/** @internal */
exports.UpdateDatapointMessagesType$outboundSchema = z.nativeEnum(exports.UpdateDatapointMessagesType);
/** @internal */
exports.UpdateDatapointMessagesFunction$outboundSchema = z.object({
    name: z.string().optional(),
    arguments: z.string().optional(),
});
function updateDatapointMessagesFunctionToJSON(updateDatapointMessagesFunction) {
    return JSON.stringify(exports.UpdateDatapointMessagesFunction$outboundSchema.parse(updateDatapointMessagesFunction));
}
/** @internal */
exports.UpdateDatapointMessagesToolCalls$outboundSchema = z.object({
    id: z.string(),
    type: exports.UpdateDatapointMessagesType$outboundSchema,
    function: z.lazy(() => exports.UpdateDatapointMessagesFunction$outboundSchema),
    thoughtSignature: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        thoughtSignature: "thought_signature",
    });
});
function updateDatapointMessagesToolCallsToJSON(updateDatapointMessagesToolCalls) {
    return JSON.stringify(exports.UpdateDatapointMessagesToolCalls$outboundSchema.parse(updateDatapointMessagesToolCalls));
}
/** @internal */
exports.UpdateDatapointMessagesAssistantMessage$outboundSchema = z.object({
    content: z.nullable(z.union([
        z.string(),
        z.array(z.union([
            components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
            components.RefusalPartSchema$outboundSchema,
            components.ReasoningPartSchema$outboundSchema,
            components.RedactedReasoningPartSchema$outboundSchema,
        ])),
    ])).optional(),
    refusal: z.nullable(z.string()).optional(),
    role: z.literal("assistant"),
    name: z.string().optional(),
    audio: z.nullable(z.lazy(() => exports.UpdateDatapointMessagesAudio$outboundSchema))
        .optional(),
    toolCalls: z.array(z.lazy(() => exports.UpdateDatapointMessagesToolCalls$outboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        toolCalls: "tool_calls",
    });
});
function updateDatapointMessagesAssistantMessageToJSON(updateDatapointMessagesAssistantMessage) {
    return JSON.stringify(exports.UpdateDatapointMessagesAssistantMessage$outboundSchema.parse(updateDatapointMessagesAssistantMessage));
}
/** @internal */
exports.UpdateDatapoint2DatasetsType$outboundSchema = z.nativeEnum(exports.UpdateDatapoint2DatasetsType);
/** @internal */
exports.UpdateDatapoint2Ttl$outboundSchema = z.nativeEnum(exports.UpdateDatapoint2Ttl);
/** @internal */
exports.UpdateDatapoint2CacheControl$outboundSchema = z.object({
    type: exports.UpdateDatapoint2DatasetsType$outboundSchema,
    ttl: exports.UpdateDatapoint2Ttl$outboundSchema.default("5m"),
});
function updateDatapoint2CacheControlToJSON(updateDatapoint2CacheControl) {
    return JSON.stringify(exports.UpdateDatapoint2CacheControl$outboundSchema.parse(updateDatapoint2CacheControl));
}
/** @internal */
exports.UpdateDatapoint24$outboundSchema = z.object({
    type: z.literal("file"),
    cacheControl: z.lazy(() => exports.UpdateDatapoint2CacheControl$outboundSchema)
        .optional(),
    file: components.FileContentPartSchema$outboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        cacheControl: "cache_control",
    });
});
function updateDatapoint24ToJSON(updateDatapoint24) {
    return JSON.stringify(exports.UpdateDatapoint24$outboundSchema.parse(updateDatapoint24));
}
/** @internal */
exports.UpdateDatapointContent2$outboundSchema = z.union([
    components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
    components.ImageContentPartSchema$outboundSchema,
    components.AudioContentPartSchema$outboundSchema,
    z.lazy(() => exports.UpdateDatapoint24$outboundSchema),
]);
function updateDatapointContent2ToJSON(updateDatapointContent2) {
    return JSON.stringify(exports.UpdateDatapointContent2$outboundSchema.parse(updateDatapointContent2));
}
/** @internal */
exports.UpdateDatapointMessagesDatasetsRequestContent$outboundSchema = z.union([
    z.string(),
    z.array(z.union([
        components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
        components.ImageContentPartSchema$outboundSchema,
        components.AudioContentPartSchema$outboundSchema,
        z.lazy(() => exports.UpdateDatapoint24$outboundSchema),
    ])),
]);
function updateDatapointMessagesDatasetsRequestContentToJSON(updateDatapointMessagesDatasetsRequestContent) {
    return JSON.stringify(exports.UpdateDatapointMessagesDatasetsRequestContent$outboundSchema.parse(updateDatapointMessagesDatasetsRequestContent));
}
/** @internal */
exports.UpdateDatapointMessagesUserMessage$outboundSchema = z.object({
    role: z.literal("user"),
    name: z.string().optional(),
    content: z.union([
        z.string(),
        z.array(z.union([
            components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
            components.ImageContentPartSchema$outboundSchema,
            components.AudioContentPartSchema$outboundSchema,
            z.lazy(() => exports.UpdateDatapoint24$outboundSchema),
        ])),
    ]),
});
function updateDatapointMessagesUserMessageToJSON(updateDatapointMessagesUserMessage) {
    return JSON.stringify(exports.UpdateDatapointMessagesUserMessage$outboundSchema.parse(updateDatapointMessagesUserMessage));
}
/** @internal */
exports.UpdateDatapointMessagesDatasetsContent$outboundSchema = z.union([
    z.string(),
    z.array(components.TextContentPartSchema$outboundSchema),
]);
function updateDatapointMessagesDatasetsContentToJSON(updateDatapointMessagesDatasetsContent) {
    return JSON.stringify(exports.UpdateDatapointMessagesDatasetsContent$outboundSchema.parse(updateDatapointMessagesDatasetsContent));
}
/** @internal */
exports.UpdateDatapointMessagesDeveloperMessage$outboundSchema = z.object({
    role: z.literal("developer"),
    content: z.union([
        z.string(),
        z.array(components.TextContentPartSchema$outboundSchema),
    ]),
    name: z.string().optional(),
});
function updateDatapointMessagesDeveloperMessageToJSON(updateDatapointMessagesDeveloperMessage) {
    return JSON.stringify(exports.UpdateDatapointMessagesDeveloperMessage$outboundSchema.parse(updateDatapointMessagesDeveloperMessage));
}
/** @internal */
exports.UpdateDatapointMessagesContent$outboundSchema = z.union([
    z.string(),
    z.array(components.TextContentPartSchema$outboundSchema),
]);
function updateDatapointMessagesContentToJSON(updateDatapointMessagesContent) {
    return JSON.stringify(exports.UpdateDatapointMessagesContent$outboundSchema.parse(updateDatapointMessagesContent));
}
/** @internal */
exports.UpdateDatapointMessagesSystemMessage$outboundSchema = z.object({
    role: z.literal("system"),
    content: z.union([
        z.string(),
        z.array(components.TextContentPartSchema$outboundSchema),
    ]),
    name: z.string().optional(),
});
function updateDatapointMessagesSystemMessageToJSON(updateDatapointMessagesSystemMessage) {
    return JSON.stringify(exports.UpdateDatapointMessagesSystemMessage$outboundSchema.parse(updateDatapointMessagesSystemMessage));
}
/** @internal */
exports.UpdateDatapointMessages$outboundSchema = z.union([
    z.lazy(() => exports.UpdateDatapointMessagesSystemMessage$outboundSchema),
    z.lazy(() => exports.UpdateDatapointMessagesDeveloperMessage$outboundSchema),
    z.lazy(() => exports.UpdateDatapointMessagesUserMessage$outboundSchema),
    z.lazy(() => exports.UpdateDatapointMessagesAssistantMessage$outboundSchema),
    z.lazy(() => exports.UpdateDatapointMessagesToolMessage$outboundSchema),
]);
function updateDatapointMessagesToJSON(updateDatapointMessages) {
    return JSON.stringify(exports.UpdateDatapointMessages$outboundSchema.parse(updateDatapointMessages));
}
/** @internal */
exports.UpdateDatapointRequestBody$outboundSchema = z.object({
    inputs: z.record(z.any()).optional(),
    messages: z.array(z.union([
        z.lazy(() => exports.UpdateDatapointMessagesSystemMessage$outboundSchema),
        z.lazy(() => exports.UpdateDatapointMessagesDeveloperMessage$outboundSchema),
        z.lazy(() => exports.UpdateDatapointMessagesUserMessage$outboundSchema),
        z.lazy(() => exports.UpdateDatapointMessagesAssistantMessage$outboundSchema),
        z.lazy(() => exports.UpdateDatapointMessagesToolMessage$outboundSchema),
    ])).optional(),
    expectedOutput: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        expectedOutput: "expected_output",
    });
});
function updateDatapointRequestBodyToJSON(updateDatapointRequestBody) {
    return JSON.stringify(exports.UpdateDatapointRequestBody$outboundSchema.parse(updateDatapointRequestBody));
}
/** @internal */
exports.UpdateDatapointRequest$outboundSchema = z.object({
    datasetId: z.string(),
    datapointId: z.string(),
    requestBody: z.lazy(() => exports.UpdateDatapointRequestBody$outboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        datasetId: "dataset_id",
        datapointId: "datapoint_id",
        requestBody: "RequestBody",
    });
});
function updateDatapointRequestToJSON(updateDatapointRequest) {
    return JSON.stringify(exports.UpdateDatapointRequest$outboundSchema.parse(updateDatapointRequest));
}
/** @internal */
exports.UpdateDatapointContentDatasetsResponse200ApplicationJson2$inboundSchema = components.TextContentPartSchema$inboundSchema;
function updateDatapointContentDatasetsResponse200ApplicationJSON2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateDatapointContentDatasetsResponse200ApplicationJson2$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateDatapointContentDatasetsResponse200ApplicationJson2' from JSON`);
}
/** @internal */
exports.UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBody5Content$inboundSchema = z.union([
    z.string(),
    z.array(components.TextContentPartSchema$inboundSchema),
]);
function updateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBody5ContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBody5Content$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBody5Content' from JSON`);
}
/** @internal */
exports.UpdateDatapointMessagesDatasetsResponse200Type$inboundSchema = z
    .nativeEnum(exports.UpdateDatapointMessagesDatasetsResponse200Type);
/** @internal */
exports.UpdateDatapointMessagesDatasetsTtl$inboundSchema = z.nativeEnum(exports.UpdateDatapointMessagesDatasetsTtl);
/** @internal */
exports.UpdateDatapointMessagesDatasetsCacheControl$inboundSchema = z.object({
    type: exports.UpdateDatapointMessagesDatasetsResponse200Type$inboundSchema,
    ttl: exports.UpdateDatapointMessagesDatasetsTtl$inboundSchema.default("5m"),
});
function updateDatapointMessagesDatasetsCacheControlFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateDatapointMessagesDatasetsCacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateDatapointMessagesDatasetsCacheControl' from JSON`);
}
/** @internal */
exports.UpdateDatapointMessagesDatasetsToolMessage$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.UpdateDatapointMessagesDatasetsCacheControl$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "tool_call_id": "toolCallId",
        "cache_control": "cacheControl",
    });
});
function updateDatapointMessagesDatasetsToolMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateDatapointMessagesDatasetsToolMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateDatapointMessagesDatasetsToolMessage' from JSON`);
}
/** @internal */
exports.UpdateDatapointContentDatasetsResponse2002$inboundSchema = z.union([
    components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
    components.RefusalPartSchema$inboundSchema,
    components.ReasoningPartSchema$inboundSchema,
    components.RedactedReasoningPartSchema$inboundSchema,
]);
function updateDatapointContentDatasetsResponse2002FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateDatapointContentDatasetsResponse2002$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateDatapointContentDatasetsResponse2002' from JSON`);
}
/** @internal */
exports.UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBodyContent$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 updateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBodyContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBodyContent$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBodyContent' from JSON`);
}
/** @internal */
exports.UpdateDatapointMessagesDatasetsAudio$inboundSchema = z.object({
    id: z.string(),
});
function updateDatapointMessagesDatasetsAudioFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateDatapointMessagesDatasetsAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateDatapointMessagesDatasetsAudio' from JSON`);
}
/** @internal */
exports.UpdateDatapointMessagesDatasetsResponseType$inboundSchema = z
    .nativeEnum(exports.UpdateDatapointMessagesDatasetsResponseType);
/** @internal */
exports.UpdateDatapointMessagesDatasetsFunction$inboundSchema = z.object({
    name: z.string().optional(),
    arguments: z.string().optional(),
});
function updateDatapointMessagesDatasetsFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateDatapointMessagesDatasetsFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateDatapointMessagesDatasetsFunction' from JSON`);
}
/** @internal */
exports.UpdateDatapointMessagesDatasetsToolCalls$inboundSchema = z.object({
    id: z.string(),
    type: exports.UpdateDatapointMessagesDatasetsResponseType$inboundSchema,
    function: z.lazy(() => exports.UpdateDatapointMessagesDatasetsFunction$inboundSchema),
    thought_signature: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "thought_signature": "thoughtSignature",
    });
});
function updateDatapointMessagesDatasetsToolCallsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateDatapointMessagesDatasetsToolCalls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateDatapointMessagesDatasetsToolCalls' from JSON`);
}
/** @internal */
exports.UpdateDatapointMessagesDatasetsAssistantMessage$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.UpdateDatapointMessagesDatasetsAudio$inboundSchema)).optional(),
    tool_calls: z.array(z.lazy(() => exports.UpdateDatapointMessagesDatasetsToolCalls$inboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "tool_calls": "toolCalls",
    });
});
function updateDatapointMessagesDatasetsAssistantMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateDatapointMessagesDatasetsAssistantMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateDatapointMessagesDatasetsAssistantMessage' from JSON`);
}
/** @internal */
exports.UpdateDatapoint2DatasetsResponse200Type$inboundSchema = z
    .nativeEnum(exports.UpdateDatapoint2DatasetsResponse200Type);
/** @internal */
exports.UpdateDatapoint2DatasetsTtl$inboundSchema = z.nativeEnum(exports.UpdateDatapoint2DatasetsTtl);
/** @internal */
exports.UpdateDatapoint2DatasetsCacheControl$inboundSchema = z.object({
    type: exports.UpdateDatapoint2DatasetsResponse200Type$inboundSchema,
    ttl: exports.UpdateDatapoint2DatasetsTtl$inboundSchema.default("5m"),
});
function updateDatapoint2DatasetsCacheControlFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateDatapoint2DatasetsCacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateDatapoint2DatasetsCacheControl' from JSON`);
}
/** @internal */
exports.UpdateDatapoint2Datasets4$inboundSchema = z.object({
    type: z.literal("file"),
    cache_control: z.lazy(() => exports.UpdateDatapoint2DatasetsCacheControl$inboundSchema).optional(),
    file: components.FileContentPartSchema$inboundSchema,
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "cache_control": "cacheControl",
    });
});
function updateDatapoint2Datasets4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateDatapoint2Datasets4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateDatapoint2Datasets4' from JSON`);
}
/** @internal */
exports.UpdateDatapointContentDatasetsResponse2$inboundSchema = z.union([
    components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
    components.ImageContentPartSchema$inboundSchema,
    components.AudioContentPartSchema$inboundSchema,
    z.lazy(() => exports.UpdateDatapoint2Datasets4$inboundSchema),
]);
function updateDatapointContentDatasetsResponse2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateDatapointContentDatasetsResponse2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateDatapointContentDatasetsResponse2' from JSON`);
}
/** @internal */
exports.UpdateDatapointMessagesDatasetsResponse200ApplicationJSONContent$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.UpdateDatapoint2Datasets4$inboundSchema),
    ])),
]);
function updateDatapointMessagesDatasetsResponse200ApplicationJSONContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateDatapointMessagesDatasetsResponse200ApplicationJSONContent$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'UpdateDatapointMessagesDatasetsResponse200ApplicationJSONContent' from JSON`);
}
/** @internal */
exports.UpdateDatapointMessagesDatasetsUserMessage$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.UpdateDatapoint2Datasets4$inboundSchema),
        ])),
    ]),
});
function updateDatapointMessagesDatasetsUserMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateDatapointMessagesDatasetsUserMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateDatapointMessagesDatasetsUserMessage' from JSON`);
}
/** @internal */
exports.UpdateDatapointMessagesDatasetsResponse200Content$inboundSchema = z.union([
    z.string(),
    z.array(components.TextContentPartSchema$inboundSchema),
]);
function updateDatapointMessagesDatasetsResponse200ContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateDatapointMessagesDatasetsResponse200Content$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateDatapointMessagesDatasetsResponse200Content' from JSON`);
}
/** @internal */
exports.UpdateDatapointMessagesDatasetsDeveloperMessage$inboundSchema = z.object({
    role: z.literal("developer"),
    content: z.union([
        z.string(),
        z.array(components.TextContentPartSchema$inboundSchema),
    ]),
    name: z.string().optional(),
});
function updateDatapointMessagesDatasetsDeveloperMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateDatapointMessagesDatasetsDeveloperMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateDatapointMessagesDatasetsDeveloperMessage' from JSON`);
}
/** @internal */
exports.UpdateDatapointMessagesDatasetsResponseContent$inboundSchema = z.union([
    z.string(),
    z.array(components.TextContentPartSchema$inboundSchema),
]);
function updateDatapointMessagesDatasetsResponseContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateDatapointMessagesDatasetsResponseContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateDatapointMessagesDatasetsResponseContent' from JSON`);
}
/** @internal */
exports.UpdateDatapointMessagesDatasetsSystemMessage$inboundSchema = z.object({
    role: z.literal("system"),
    content: z.union([
        z.string(),
        z.array(components.TextContentPartSchema$inboundSchema),
    ]),
    name: z.string().optional(),
});
function updateDatapointMessagesDatasetsSystemMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateDatapointMessagesDatasetsSystemMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateDatapointMessagesDatasetsSystemMessage' from JSON`);
}
/** @internal */
exports.UpdateDatapointDatasetsMessages$inboundSchema = z.union([
    z.lazy(() => exports.UpdateDatapointMessagesDatasetsSystemMessage$inboundSchema),
    z.lazy(() => exports.UpdateDatapointMessagesDatasetsDeveloperMessage$inboundSchema),
    z.lazy(() => exports.UpdateDatapointMessagesDatasetsUserMessage$inboundSchema),
    z.lazy(() => exports.UpdateDatapointMessagesDatasetsAssistantMessage$inboundSchema),
    z.lazy(() => exports.UpdateDatapointMessagesDatasetsToolMessage$inboundSchema),
]);
function updateDatapointDatasetsMessagesFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateDatapointDatasetsMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateDatapointDatasetsMessages' from JSON`);
}
/** @internal */
exports.UpdateDatapointEvaluationsDatasetsResponseEvaluationType$inboundSchema = z.nativeEnum(exports.UpdateDatapointEvaluationsDatasetsResponseEvaluationType);
/** @internal */
exports.UpdateDatapointEvaluationsDatasetsResponseSource$inboundSchema = z
    .nativeEnum(exports.UpdateDatapointEvaluationsDatasetsResponseSource);
/** @internal */
exports.UpdateDatapointEvaluations3$inboundSchema = z.object({
    id: z.string(),
    evaluation_type: exports.UpdateDatapointEvaluationsDatasetsResponseEvaluationType$inboundSchema,
    human_review_id: z.string(),
    source: exports.UpdateDatapointEvaluationsDatasetsResponseSource$inboundSchema
        .default("orq"),
    reviewed_by_id: z.string(),
    reviewed_at: z.string().datetime({ offset: true }).default("2026-03-25T16:43:49.813Z").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 updateDatapointEvaluations3FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateDatapointEvaluations3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateDatapointEvaluations3' from JSON`);
}
/** @internal */
exports.UpdateDatapointEvaluationsDatasetsEvaluationType$inboundSchema = z
    .nativeEnum(exports.UpdateDatapointEvaluationsDatasetsEvaluationType);
/** @internal */
exports.UpdateDatapointEvaluationsDatasetsSource$inboundSchema = z
    .nativeEnum(exports.UpdateDatapointEvaluationsDatasetsSource);
/** @internal */
exports.UpdateDatapointEvaluations2$inboundSchema = z.object({
    id: z.string(),
    evaluation_type: exports.UpdateDatapointEvaluationsDatasetsEvaluationType$inboundSchema,
    human_review_id: z.string(),
    source: exports.UpdateDatapointEvaluationsDatasetsSource$inboundSchema.default("orq"),
    reviewed_by_id: z.string(),
    reviewed_at: z.string().datetime({ offset: true }).default("2026-03-25T16:43:49.812Z").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 updateDatapointEvaluations2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateDatapointEvaluations2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateDatapointEvaluations2' from JSON`);
}
/** @internal */
exports.UpdateDatapointEvaluationsEvaluationType$inboundSchema = z
    .nativeEnum(exports.UpdateDatapointEvaluationsEvaluationType);
/** @internal */
exports.UpdateDatapointEvaluationsSource$inboundSchema = z.nativeEnum(exports.UpdateDatapointEvaluationsSource);
/** @internal */
exports.UpdateDatapointEvaluations1$inboundSchema = z.object({
    id: z.string(),
    evaluation_type: exports.UpdateDatapointEvaluationsEvaluationType$inboundSchema,
    human_review_id: z.string(),
    source: exports.UpdateDatapointEvaluationsSource$inboundSchema.default("orq"),
    reviewed_by_id: z.string(),
    reviewed_at: z.string().datetime({ offset: true }).default("2026-03-25T16:43:49.811Z").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 updateDatapointEvaluations1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateDatapointEvaluations1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateDatapointEvaluations1' from JSON`);
}
/** @internal */
exports.UpdateDatapointEvaluations$inboundSchema = z.union([
    z.lazy(() => exports.UpdateDatapointEvaluations1$inboundSchema),
    z.lazy(() => exports.UpdateDatapointEvaluations2$inboundSchema),
    z.lazy(() => exports.UpdateDatapointEvaluations3$inboundSchema),
]);
function updateDatapointEvaluationsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateDatapointEvaluations$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateDatapointEvaluations' from JSON`);
}
/** @internal */
exports.UpdateDatapointResponseBody$inboundSchema = z.object({
    _id: z.string(),
    workspace_id: z.string(),
    inputs: z.record(z.any()).optional(),
    messages: z.array(z.union([
        z.lazy(() => exports.UpdateDatapointMessagesDatasetsSystemMessage$inboundSchema),
        z.lazy(() => exports.UpdateDatapointMessagesDatasetsDeveloperMessage$inboundSchema),
        z.lazy(() => exports.UpdateDatapointMessagesDatasetsUserMessage$inboundSchema),
        z.lazy(() => exports.UpdateDatapointMessagesDatasetsAssistantMessage$inboundSchema),
        z.lazy(() => exports.UpdateDatapointMessagesDatasetsToolMessage$inboundSchema),
    ])).optional(),
    expected_output: z.string().optional(),
    evaluations: z.array(z.union([
        z.lazy(() => exports.UpdateDatapointEvaluations1$inboundSchema),
        z.lazy(() => exports.UpdateDatapointEvaluations2$inboundSchema),
        z.lazy(() => exports.UpdateDatapointEvaluations3$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-03-25T16:43:32.539Z").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 updateDatapointResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateDatapointResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateDatapointResponseBody' from JSON`);
}
//# sourceMappingURL=updatedatapoint.js.map