"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.RetrieveDatapointAnnotations1$inboundSchema = exports.RetrieveDatapointAnnotationsFileCitation$outboundSchema = exports.RetrieveDatapointAnnotationsFileCitation$inboundSchema = exports.RetrieveDatapointAnnotationsType$outboundSchema = exports.RetrieveDatapointAnnotationsType$inboundSchema = exports.RetrieveDatapointAnnotations2$outboundSchema = exports.RetrieveDatapointAnnotations2$inboundSchema = exports.RetrieveDatapointAnnotationsFilePath$outboundSchema = exports.RetrieveDatapointAnnotationsFilePath$inboundSchema = exports.RetrieveDatapointAnnotationsDatasetsType$outboundSchema = exports.RetrieveDatapointAnnotationsDatasetsType$inboundSchema = exports.RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$outboundSchema = exports.RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$inboundSchema = exports.RetrieveDatapoint2RefusalContentPart$outboundSchema = exports.RetrieveDatapoint2RefusalContentPart$inboundSchema = exports.RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$outboundSchema = exports.RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema = exports.RetrieveDatapointMessagesToolMessage$outboundSchema = exports.RetrieveDatapointMessagesToolMessage$inboundSchema = exports.RetrieveDatapointMessagesDatasetsResponseContent$outboundSchema = exports.RetrieveDatapointMessagesDatasetsResponseContent$inboundSchema = exports.RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$outboundSchema = exports.RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$inboundSchema = exports.RetrieveDatapointRequest$outboundSchema = exports.RetrieveDatapointRequest$inboundSchema = exports.RetrieveDatapointEvaluationsType = exports.RetrieveDatapointEvaluationsSource = exports.RetrieveDatapointEvaluationsEvaluationType = exports.RetrieveDatapointEvaluationsDatasetsType = exports.RetrieveDatapointEvaluationsDatasetsSource = exports.RetrieveDatapointEvaluationsDatasetsEvaluationType = exports.RetrieveDatapointEvaluationsDatasetsResponseType = exports.RetrieveDatapointEvaluationsDatasetsResponseSource = exports.RetrieveDatapointEvaluationsDatasetsResponseEvaluationType = exports.RetrieveDatapointMessagesRole = exports.RetrieveDatapointMessagesDatasetsRole = exports.RetrieveDatapoint2Type = exports.RetrieveDatapoint2Detail = exports.RetrieveDatapoint2DatasetsType = exports.RetrieveDatapoint2Format = exports.RetrieveDatapoint2DatasetsResponseType = exports.RetrieveDatapoint2DatasetsResponse200Type = exports.RetrieveDatapointMessagesDatasetsResponseRole = exports.RetrieveDatapointMessagesType = exports.RetrieveDatapointMessagesDatasetsResponse200Role = exports.RetrieveDatapointAnnotationsType = exports.RetrieveDatapointAnnotationsDatasetsType = exports.RetrieveDatapoint2DatasetsResponse200ApplicationJSONType = exports.RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType = exports.RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole = void 0;
exports.RetrieveDatapointContent2$inboundSchema = exports.RetrieveDatapoint21$outboundSchema = exports.RetrieveDatapoint21$inboundSchema = exports.RetrieveDatapoint2Type$outboundSchema = exports.RetrieveDatapoint2Type$inboundSchema = exports.RetrieveDatapoint22$outboundSchema = exports.RetrieveDatapoint22$inboundSchema = exports.RetrieveDatapoint2ImageUrl$outboundSchema = exports.RetrieveDatapoint2ImageUrl$inboundSchema = exports.RetrieveDatapoint2Detail$outboundSchema = exports.RetrieveDatapoint2Detail$inboundSchema = exports.RetrieveDatapoint2DatasetsType$outboundSchema = exports.RetrieveDatapoint2DatasetsType$inboundSchema = exports.RetrieveDatapoint23$outboundSchema = exports.RetrieveDatapoint23$inboundSchema = exports.RetrieveDatapoint2InputAudio$outboundSchema = exports.RetrieveDatapoint2InputAudio$inboundSchema = exports.RetrieveDatapoint2Format$outboundSchema = exports.RetrieveDatapoint2Format$inboundSchema = exports.RetrieveDatapoint2DatasetsResponseType$outboundSchema = exports.RetrieveDatapoint2DatasetsResponseType$inboundSchema = exports.RetrieveDatapoint24$outboundSchema = exports.RetrieveDatapoint24$inboundSchema = exports.RetrieveDatapoint2File$outboundSchema = exports.RetrieveDatapoint2File$inboundSchema = exports.RetrieveDatapoint2DatasetsResponse200Type$outboundSchema = exports.RetrieveDatapoint2DatasetsResponse200Type$inboundSchema = exports.RetrieveDatapointMessagesDatasetsResponseRole$outboundSchema = exports.RetrieveDatapointMessagesDatasetsResponseRole$inboundSchema = exports.RetrieveDatapointMessagesAssistantMessage$outboundSchema = exports.RetrieveDatapointMessagesAssistantMessage$inboundSchema = exports.RetrieveDatapointMessagesToolCalls$outboundSchema = exports.RetrieveDatapointMessagesToolCalls$inboundSchema = exports.RetrieveDatapointMessagesFunction$outboundSchema = exports.RetrieveDatapointMessagesFunction$inboundSchema = exports.RetrieveDatapointMessagesType$outboundSchema = exports.RetrieveDatapointMessagesType$inboundSchema = exports.RetrieveDatapointMessagesAudio$outboundSchema = exports.RetrieveDatapointMessagesAudio$inboundSchema = exports.RetrieveDatapointMessagesDatasetsResponse200Role$outboundSchema = exports.RetrieveDatapointMessagesDatasetsResponse200Role$inboundSchema = exports.RetrieveDatapointMessagesDatasetsContent$outboundSchema = exports.RetrieveDatapointMessagesDatasetsContent$inboundSchema = exports.RetrieveDatapointContentDatasets2$outboundSchema = exports.RetrieveDatapointContentDatasets2$inboundSchema = exports.RetrieveDatapoint2TextContentPart$outboundSchema = exports.RetrieveDatapoint2TextContentPart$inboundSchema = exports.RetrieveDatapoint2Annotations$outboundSchema = exports.RetrieveDatapoint2Annotations$inboundSchema = exports.RetrieveDatapointAnnotations1$outboundSchema = void 0;
exports.RetrieveDatapointResponseBody$outboundSchema = exports.RetrieveDatapointResponseBody$inboundSchema = exports.RetrieveDatapointEvaluations$outboundSchema = exports.RetrieveDatapointEvaluations$inboundSchema = exports.RetrieveDatapointEvaluations1$outboundSchema = exports.RetrieveDatapointEvaluations1$inboundSchema = exports.RetrieveDatapointEvaluationsType$outboundSchema = exports.RetrieveDatapointEvaluationsType$inboundSchema = exports.RetrieveDatapointEvaluationsSource$outboundSchema = exports.RetrieveDatapointEvaluationsSource$inboundSchema = exports.RetrieveDatapointEvaluationsEvaluationType$outboundSchema = exports.RetrieveDatapointEvaluationsEvaluationType$inboundSchema = exports.RetrieveDatapointEvaluations2$outboundSchema = exports.RetrieveDatapointEvaluations2$inboundSchema = exports.RetrieveDatapointEvaluationsDatasetsType$outboundSchema = exports.RetrieveDatapointEvaluationsDatasetsType$inboundSchema = exports.RetrieveDatapointEvaluationsDatasetsSource$outboundSchema = exports.RetrieveDatapointEvaluationsDatasetsSource$inboundSchema = exports.RetrieveDatapointEvaluationsDatasetsEvaluationType$outboundSchema = exports.RetrieveDatapointEvaluationsDatasetsEvaluationType$inboundSchema = exports.RetrieveDatapointEvaluations3$outboundSchema = exports.RetrieveDatapointEvaluations3$inboundSchema = exports.RetrieveDatapointEvaluationsDatasetsResponseType$outboundSchema = exports.RetrieveDatapointEvaluationsDatasetsResponseType$inboundSchema = exports.RetrieveDatapointEvaluationsDatasetsResponseSource$outboundSchema = exports.RetrieveDatapointEvaluationsDatasetsResponseSource$inboundSchema = exports.RetrieveDatapointEvaluationsDatasetsResponseEvaluationType$outboundSchema = exports.RetrieveDatapointEvaluationsDatasetsResponseEvaluationType$inboundSchema = exports.RetrieveDatapointMessages$outboundSchema = exports.RetrieveDatapointMessages$inboundSchema = exports.RetrieveDatapointMessagesDeveloperMessage$outboundSchema = exports.RetrieveDatapointMessagesDeveloperMessage$inboundSchema = exports.RetrieveDatapointMessagesRole$outboundSchema = exports.RetrieveDatapointMessagesRole$inboundSchema = exports.RetrieveDatapointMessagesSystemMessage$outboundSchema = exports.RetrieveDatapointMessagesSystemMessage$inboundSchema = exports.RetrieveDatapointMessagesDatasetsRole$outboundSchema = exports.RetrieveDatapointMessagesDatasetsRole$inboundSchema = exports.RetrieveDatapointMessagesUserMessage$outboundSchema = exports.RetrieveDatapointMessagesUserMessage$inboundSchema = exports.RetrieveDatapointMessagesContent$outboundSchema = exports.RetrieveDatapointMessagesContent$inboundSchema = exports.RetrieveDatapointContent2$outboundSchema = void 0;
exports.retrieveDatapointRequestToJSON = retrieveDatapointRequestToJSON;
exports.retrieveDatapointRequestFromJSON = retrieveDatapointRequestFromJSON;
exports.retrieveDatapointMessagesDatasetsResponseContentToJSON = retrieveDatapointMessagesDatasetsResponseContentToJSON;
exports.retrieveDatapointMessagesDatasetsResponseContentFromJSON = retrieveDatapointMessagesDatasetsResponseContentFromJSON;
exports.retrieveDatapointMessagesToolMessageToJSON = retrieveDatapointMessagesToolMessageToJSON;
exports.retrieveDatapointMessagesToolMessageFromJSON = retrieveDatapointMessagesToolMessageFromJSON;
exports.retrieveDatapoint2RefusalContentPartToJSON = retrieveDatapoint2RefusalContentPartToJSON;
exports.retrieveDatapoint2RefusalContentPartFromJSON = retrieveDatapoint2RefusalContentPartFromJSON;
exports.retrieveDatapointAnnotationsFilePathToJSON = retrieveDatapointAnnotationsFilePathToJSON;
exports.retrieveDatapointAnnotationsFilePathFromJSON = retrieveDatapointAnnotationsFilePathFromJSON;
exports.retrieveDatapointAnnotations2ToJSON = retrieveDatapointAnnotations2ToJSON;
exports.retrieveDatapointAnnotations2FromJSON = retrieveDatapointAnnotations2FromJSON;
exports.retrieveDatapointAnnotationsFileCitationToJSON = retrieveDatapointAnnotationsFileCitationToJSON;
exports.retrieveDatapointAnnotationsFileCitationFromJSON = retrieveDatapointAnnotationsFileCitationFromJSON;
exports.retrieveDatapointAnnotations1ToJSON = retrieveDatapointAnnotations1ToJSON;
exports.retrieveDatapointAnnotations1FromJSON = retrieveDatapointAnnotations1FromJSON;
exports.retrieveDatapoint2AnnotationsToJSON = retrieveDatapoint2AnnotationsToJSON;
exports.retrieveDatapoint2AnnotationsFromJSON = retrieveDatapoint2AnnotationsFromJSON;
exports.retrieveDatapoint2TextContentPartToJSON = retrieveDatapoint2TextContentPartToJSON;
exports.retrieveDatapoint2TextContentPartFromJSON = retrieveDatapoint2TextContentPartFromJSON;
exports.retrieveDatapointContentDatasets2ToJSON = retrieveDatapointContentDatasets2ToJSON;
exports.retrieveDatapointContentDatasets2FromJSON = retrieveDatapointContentDatasets2FromJSON;
exports.retrieveDatapointMessagesDatasetsContentToJSON = retrieveDatapointMessagesDatasetsContentToJSON;
exports.retrieveDatapointMessagesDatasetsContentFromJSON = retrieveDatapointMessagesDatasetsContentFromJSON;
exports.retrieveDatapointMessagesAudioToJSON = retrieveDatapointMessagesAudioToJSON;
exports.retrieveDatapointMessagesAudioFromJSON = retrieveDatapointMessagesAudioFromJSON;
exports.retrieveDatapointMessagesFunctionToJSON = retrieveDatapointMessagesFunctionToJSON;
exports.retrieveDatapointMessagesFunctionFromJSON = retrieveDatapointMessagesFunctionFromJSON;
exports.retrieveDatapointMessagesToolCallsToJSON = retrieveDatapointMessagesToolCallsToJSON;
exports.retrieveDatapointMessagesToolCallsFromJSON = retrieveDatapointMessagesToolCallsFromJSON;
exports.retrieveDatapointMessagesAssistantMessageToJSON = retrieveDatapointMessagesAssistantMessageToJSON;
exports.retrieveDatapointMessagesAssistantMessageFromJSON = retrieveDatapointMessagesAssistantMessageFromJSON;
exports.retrieveDatapoint2FileToJSON = retrieveDatapoint2FileToJSON;
exports.retrieveDatapoint2FileFromJSON = retrieveDatapoint2FileFromJSON;
exports.retrieveDatapoint24ToJSON = retrieveDatapoint24ToJSON;
exports.retrieveDatapoint24FromJSON = retrieveDatapoint24FromJSON;
exports.retrieveDatapoint2InputAudioToJSON = retrieveDatapoint2InputAudioToJSON;
exports.retrieveDatapoint2InputAudioFromJSON = retrieveDatapoint2InputAudioFromJSON;
exports.retrieveDatapoint23ToJSON = retrieveDatapoint23ToJSON;
exports.retrieveDatapoint23FromJSON = retrieveDatapoint23FromJSON;
exports.retrieveDatapoint2ImageUrlToJSON = retrieveDatapoint2ImageUrlToJSON;
exports.retrieveDatapoint2ImageUrlFromJSON = retrieveDatapoint2ImageUrlFromJSON;
exports.retrieveDatapoint22ToJSON = retrieveDatapoint22ToJSON;
exports.retrieveDatapoint22FromJSON = retrieveDatapoint22FromJSON;
exports.retrieveDatapoint21ToJSON = retrieveDatapoint21ToJSON;
exports.retrieveDatapoint21FromJSON = retrieveDatapoint21FromJSON;
exports.retrieveDatapointContent2ToJSON = retrieveDatapointContent2ToJSON;
exports.retrieveDatapointContent2FromJSON = retrieveDatapointContent2FromJSON;
exports.retrieveDatapointMessagesContentToJSON = retrieveDatapointMessagesContentToJSON;
exports.retrieveDatapointMessagesContentFromJSON = retrieveDatapointMessagesContentFromJSON;
exports.retrieveDatapointMessagesUserMessageToJSON = retrieveDatapointMessagesUserMessageToJSON;
exports.retrieveDatapointMessagesUserMessageFromJSON = retrieveDatapointMessagesUserMessageFromJSON;
exports.retrieveDatapointMessagesSystemMessageToJSON = retrieveDatapointMessagesSystemMessageToJSON;
exports.retrieveDatapointMessagesSystemMessageFromJSON = retrieveDatapointMessagesSystemMessageFromJSON;
exports.retrieveDatapointMessagesDeveloperMessageToJSON = retrieveDatapointMessagesDeveloperMessageToJSON;
exports.retrieveDatapointMessagesDeveloperMessageFromJSON = retrieveDatapointMessagesDeveloperMessageFromJSON;
exports.retrieveDatapointMessagesToJSON = retrieveDatapointMessagesToJSON;
exports.retrieveDatapointMessagesFromJSON = retrieveDatapointMessagesFromJSON;
exports.retrieveDatapointEvaluations3ToJSON = retrieveDatapointEvaluations3ToJSON;
exports.retrieveDatapointEvaluations3FromJSON = retrieveDatapointEvaluations3FromJSON;
exports.retrieveDatapointEvaluations2ToJSON = retrieveDatapointEvaluations2ToJSON;
exports.retrieveDatapointEvaluations2FromJSON = retrieveDatapointEvaluations2FromJSON;
exports.retrieveDatapointEvaluations1ToJSON = retrieveDatapointEvaluations1ToJSON;
exports.retrieveDatapointEvaluations1FromJSON = retrieveDatapointEvaluations1FromJSON;
exports.retrieveDatapointEvaluationsToJSON = retrieveDatapointEvaluationsToJSON;
exports.retrieveDatapointEvaluationsFromJSON = retrieveDatapointEvaluationsFromJSON;
exports.retrieveDatapointResponseBodyToJSON = retrieveDatapointResponseBodyToJSON;
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");
/**
 * The role of the messages author, in this case tool.
 */
exports.RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole = {
    Tool: "tool",
};
/**
 * The type of the content part.
 */
exports.RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType = {
    Refusal: "refusal",
};
/**
 * The type of the content part.
 */
exports.RetrieveDatapoint2DatasetsResponse200ApplicationJSONType = {
    Text: "text",
};
exports.RetrieveDatapointAnnotationsDatasetsType = {
    FilePath: "file_path",
};
exports.RetrieveDatapointAnnotationsType = {
    FileCitation: "file_citation",
};
/**
 * The role of the messages author, in this case `assistant`.
 */
exports.RetrieveDatapointMessagesDatasetsResponse200Role = {
    Assistant: "assistant",
};
/**
 * The type of the tool. Currently, only `function` is supported.
 */
exports.RetrieveDatapointMessagesType = {
    Function: "function",
};
/**
 * The role of the messages author, in this case `user`.
 */
exports.RetrieveDatapointMessagesDatasetsResponseRole = {
    User: "user",
};
/**
 * The type of the content part. Always `file`.
 */
exports.RetrieveDatapoint2DatasetsResponse200Type = {
    File: "file",
};
exports.RetrieveDatapoint2DatasetsResponseType = {
    InputAudio: "input_audio",
};
/**
 * The format of the encoded audio data. Currently supports `wav` and `mp3`.
 */
exports.RetrieveDatapoint2Format = {
    Mp3: "mp3",
    Wav: "wav",
};
exports.RetrieveDatapoint2DatasetsType = {
    ImageUrl: "image_url",
};
/**
 * Specifies the detail level of the image.
 */
exports.RetrieveDatapoint2Detail = {
    Low: "low",
    High: "high",
    Auto: "auto",
};
exports.RetrieveDatapoint2Type = {
    Text: "text",
};
/**
 * The role of the messages author, in this case `system`.
 */
exports.RetrieveDatapointMessagesDatasetsRole = {
    System: "system",
};
/**
 * The role of the messages author, in this case  `developer`.
 */
exports.RetrieveDatapointMessagesRole = {
    Developer: "developer",
};
/**
 * The type of evaluation
 */
exports.RetrieveDatapointEvaluationsDatasetsResponseEvaluationType = {
    HumanReview: "human_review",
};
exports.RetrieveDatapointEvaluationsDatasetsResponseSource = {
    Orq: "orq",
    External: "external",
};
exports.RetrieveDatapointEvaluationsDatasetsResponseType = {
    StringArray: "string_array",
};
/**
 * The type of evaluation
 */
exports.RetrieveDatapointEvaluationsDatasetsEvaluationType = {
    HumanReview: "human_review",
};
exports.RetrieveDatapointEvaluationsDatasetsSource = {
    Orq: "orq",
    External: "external",
};
exports.RetrieveDatapointEvaluationsDatasetsType = {
    Number: "number",
};
/**
 * The type of evaluation
 */
exports.RetrieveDatapointEvaluationsEvaluationType = {
    HumanReview: "human_review",
};
exports.RetrieveDatapointEvaluationsSource = {
    Orq: "orq",
    External: "external",
};
exports.RetrieveDatapointEvaluationsType = {
    String: "string",
};
/** @internal */
exports.RetrieveDatapointRequest$inboundSchema = z.object({
    dataset_id: z.string(),
    datapoint_id: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "dataset_id": "datasetId",
        "datapoint_id": "datapointId",
    });
});
/** @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));
}
function retrieveDatapointRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointRequest' from JSON`);
}
/** @internal */
exports.RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$inboundSchema = z.nativeEnum(exports.RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole);
/** @internal */
exports.RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$outboundSchema = exports.RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$inboundSchema;
/** @internal */
exports.RetrieveDatapointMessagesDatasetsResponseContent$inboundSchema = z.union([z.string(), z.array(z.string())]);
/** @internal */
exports.RetrieveDatapointMessagesDatasetsResponseContent$outboundSchema = z.union([z.string(), z.array(z.string())]);
function retrieveDatapointMessagesDatasetsResponseContentToJSON(retrieveDatapointMessagesDatasetsResponseContent) {
    return JSON.stringify(exports.RetrieveDatapointMessagesDatasetsResponseContent$outboundSchema.parse(retrieveDatapointMessagesDatasetsResponseContent));
}
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.RetrieveDatapointMessagesToolMessage$inboundSchema = z.object({
    role: exports.RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$inboundSchema,
    content: z.union([z.string(), z.array(z.string())]),
    tool_call_id: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "tool_call_id": "toolCallId",
    });
});
/** @internal */
exports.RetrieveDatapointMessagesToolMessage$outboundSchema = z.object({
    role: exports.RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$outboundSchema,
    content: z.union([z.string(), z.array(z.string())]),
    toolCallId: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        toolCallId: "tool_call_id",
    });
});
function retrieveDatapointMessagesToolMessageToJSON(retrieveDatapointMessagesToolMessage) {
    return JSON.stringify(exports.RetrieveDatapointMessagesToolMessage$outboundSchema.parse(retrieveDatapointMessagesToolMessage));
}
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.RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema = z.nativeEnum(exports.RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType);
/** @internal */
exports.RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$outboundSchema = exports.RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema;
/** @internal */
exports.RetrieveDatapoint2RefusalContentPart$inboundSchema = z.object({
    type: exports.RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema,
    refusal: z.string(),
});
/** @internal */
exports.RetrieveDatapoint2RefusalContentPart$outboundSchema = z.object({
    type: exports.RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$outboundSchema,
    refusal: z.string(),
});
function retrieveDatapoint2RefusalContentPartToJSON(retrieveDatapoint2RefusalContentPart) {
    return JSON.stringify(exports.RetrieveDatapoint2RefusalContentPart$outboundSchema.parse(retrieveDatapoint2RefusalContentPart));
}
function retrieveDatapoint2RefusalContentPartFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapoint2RefusalContentPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapoint2RefusalContentPart' from JSON`);
}
/** @internal */
exports.RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$inboundSchema = z.nativeEnum(exports.RetrieveDatapoint2DatasetsResponse200ApplicationJSONType);
/** @internal */
exports.RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$outboundSchema = exports.RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$inboundSchema;
/** @internal */
exports.RetrieveDatapointAnnotationsDatasetsType$inboundSchema = z
    .nativeEnum(exports.RetrieveDatapointAnnotationsDatasetsType);
/** @internal */
exports.RetrieveDatapointAnnotationsDatasetsType$outboundSchema = exports.RetrieveDatapointAnnotationsDatasetsType$inboundSchema;
/** @internal */
exports.RetrieveDatapointAnnotationsFilePath$inboundSchema = z.object({
    file_id: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "file_id": "fileId",
    });
});
/** @internal */
exports.RetrieveDatapointAnnotationsFilePath$outboundSchema = z.object({
    fileId: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        fileId: "file_id",
    });
});
function retrieveDatapointAnnotationsFilePathToJSON(retrieveDatapointAnnotationsFilePath) {
    return JSON.stringify(exports.RetrieveDatapointAnnotationsFilePath$outboundSchema.parse(retrieveDatapointAnnotationsFilePath));
}
function retrieveDatapointAnnotationsFilePathFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointAnnotationsFilePath$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointAnnotationsFilePath' from JSON`);
}
/** @internal */
exports.RetrieveDatapointAnnotations2$inboundSchema = z.object({
    type: exports.RetrieveDatapointAnnotationsDatasetsType$inboundSchema,
    text: z.string(),
    file_path: z.lazy(() => exports.RetrieveDatapointAnnotationsFilePath$inboundSchema),
    start_index: z.number().int(),
    end_index: z.number().int(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "file_path": "filePath",
        "start_index": "startIndex",
        "end_index": "endIndex",
    });
});
/** @internal */
exports.RetrieveDatapointAnnotations2$outboundSchema = z.object({
    type: exports.RetrieveDatapointAnnotationsDatasetsType$outboundSchema,
    text: z.string(),
    filePath: z.lazy(() => exports.RetrieveDatapointAnnotationsFilePath$outboundSchema),
    startIndex: z.number().int(),
    endIndex: z.number().int(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        filePath: "file_path",
        startIndex: "start_index",
        endIndex: "end_index",
    });
});
function retrieveDatapointAnnotations2ToJSON(retrieveDatapointAnnotations2) {
    return JSON.stringify(exports.RetrieveDatapointAnnotations2$outboundSchema.parse(retrieveDatapointAnnotations2));
}
function retrieveDatapointAnnotations2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointAnnotations2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointAnnotations2' from JSON`);
}
/** @internal */
exports.RetrieveDatapointAnnotationsType$inboundSchema = z.nativeEnum(exports.RetrieveDatapointAnnotationsType);
/** @internal */
exports.RetrieveDatapointAnnotationsType$outboundSchema = exports.RetrieveDatapointAnnotationsType$inboundSchema;
/** @internal */
exports.RetrieveDatapointAnnotationsFileCitation$inboundSchema = z.object({
    file_id: z.string(),
    quote: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "file_id": "fileId",
    });
});
/** @internal */
exports.RetrieveDatapointAnnotationsFileCitation$outboundSchema = z.object({
    fileId: z.string(),
    quote: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        fileId: "file_id",
    });
});
function retrieveDatapointAnnotationsFileCitationToJSON(retrieveDatapointAnnotationsFileCitation) {
    return JSON.stringify(exports.RetrieveDatapointAnnotationsFileCitation$outboundSchema.parse(retrieveDatapointAnnotationsFileCitation));
}
function retrieveDatapointAnnotationsFileCitationFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointAnnotationsFileCitation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointAnnotationsFileCitation' from JSON`);
}
/** @internal */
exports.RetrieveDatapointAnnotations1$inboundSchema = z.object({
    type: exports.RetrieveDatapointAnnotationsType$inboundSchema,
    text: z.string(),
    file_citation: z.lazy(() => exports.RetrieveDatapointAnnotationsFileCitation$inboundSchema),
    start_index: z.number().int(),
    end_index: z.number().int(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "file_citation": "fileCitation",
        "start_index": "startIndex",
        "end_index": "endIndex",
    });
});
/** @internal */
exports.RetrieveDatapointAnnotations1$outboundSchema = z.object({
    type: exports.RetrieveDatapointAnnotationsType$outboundSchema,
    text: z.string(),
    fileCitation: z.lazy(() => exports.RetrieveDatapointAnnotationsFileCitation$outboundSchema),
    startIndex: z.number().int(),
    endIndex: z.number().int(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        fileCitation: "file_citation",
        startIndex: "start_index",
        endIndex: "end_index",
    });
});
function retrieveDatapointAnnotations1ToJSON(retrieveDatapointAnnotations1) {
    return JSON.stringify(exports.RetrieveDatapointAnnotations1$outboundSchema.parse(retrieveDatapointAnnotations1));
}
function retrieveDatapointAnnotations1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointAnnotations1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointAnnotations1' from JSON`);
}
/** @internal */
exports.RetrieveDatapoint2Annotations$inboundSchema = z.union([
    z.lazy(() => exports.RetrieveDatapointAnnotations1$inboundSchema),
    z.lazy(() => exports.RetrieveDatapointAnnotations2$inboundSchema),
]);
/** @internal */
exports.RetrieveDatapoint2Annotations$outboundSchema = z.union([
    z.lazy(() => exports.RetrieveDatapointAnnotations1$outboundSchema),
    z.lazy(() => exports.RetrieveDatapointAnnotations2$outboundSchema),
]);
function retrieveDatapoint2AnnotationsToJSON(retrieveDatapoint2Annotations) {
    return JSON.stringify(exports.RetrieveDatapoint2Annotations$outboundSchema.parse(retrieveDatapoint2Annotations));
}
function retrieveDatapoint2AnnotationsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapoint2Annotations$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapoint2Annotations' from JSON`);
}
/** @internal */
exports.RetrieveDatapoint2TextContentPart$inboundSchema = z.object({
    type: exports.RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$inboundSchema,
    text: z.string(),
    annotations: z.array(z.union([
        z.lazy(() => exports.RetrieveDatapointAnnotations1$inboundSchema),
        z.lazy(() => exports.RetrieveDatapointAnnotations2$inboundSchema),
    ])).optional(),
});
/** @internal */
exports.RetrieveDatapoint2TextContentPart$outboundSchema = z.object({
    type: exports.RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$outboundSchema,
    text: z.string(),
    annotations: z.array(z.union([
        z.lazy(() => exports.RetrieveDatapointAnnotations1$outboundSchema),
        z.lazy(() => exports.RetrieveDatapointAnnotations2$outboundSchema),
    ])).optional(),
});
function retrieveDatapoint2TextContentPartToJSON(retrieveDatapoint2TextContentPart) {
    return JSON.stringify(exports.RetrieveDatapoint2TextContentPart$outboundSchema.parse(retrieveDatapoint2TextContentPart));
}
function retrieveDatapoint2TextContentPartFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapoint2TextContentPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapoint2TextContentPart' from JSON`);
}
/** @internal */
exports.RetrieveDatapointContentDatasets2$inboundSchema = z.union([
    z.lazy(() => exports.RetrieveDatapoint2TextContentPart$inboundSchema),
    z.lazy(() => exports.RetrieveDatapoint2RefusalContentPart$inboundSchema),
]);
/** @internal */
exports.RetrieveDatapointContentDatasets2$outboundSchema = z.union([
    z.lazy(() => exports.RetrieveDatapoint2TextContentPart$outboundSchema),
    z.lazy(() => exports.RetrieveDatapoint2RefusalContentPart$outboundSchema),
]);
function retrieveDatapointContentDatasets2ToJSON(retrieveDatapointContentDatasets2) {
    return JSON.stringify(exports.RetrieveDatapointContentDatasets2$outboundSchema.parse(retrieveDatapointContentDatasets2));
}
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.RetrieveDatapointMessagesDatasetsContent$inboundSchema = z.union([
    z.string(),
    z.array(z.union([
        z.lazy(() => exports.RetrieveDatapoint2TextContentPart$inboundSchema),
        z.lazy(() => exports.RetrieveDatapoint2RefusalContentPart$inboundSchema),
    ])),
]);
/** @internal */
exports.RetrieveDatapointMessagesDatasetsContent$outboundSchema = z.union([
    z.string(),
    z.array(z.union([
        z.lazy(() => exports.RetrieveDatapoint2TextContentPart$outboundSchema),
        z.lazy(() => exports.RetrieveDatapoint2RefusalContentPart$outboundSchema),
    ])),
]);
function retrieveDatapointMessagesDatasetsContentToJSON(retrieveDatapointMessagesDatasetsContent) {
    return JSON.stringify(exports.RetrieveDatapointMessagesDatasetsContent$outboundSchema.parse(retrieveDatapointMessagesDatasetsContent));
}
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.RetrieveDatapointMessagesDatasetsResponse200Role$inboundSchema = z
    .nativeEnum(exports.RetrieveDatapointMessagesDatasetsResponse200Role);
/** @internal */
exports.RetrieveDatapointMessagesDatasetsResponse200Role$outboundSchema = exports.RetrieveDatapointMessagesDatasetsResponse200Role$inboundSchema;
/** @internal */
exports.RetrieveDatapointMessagesAudio$inboundSchema = z.object({
    id: z.string(),
});
/** @internal */
exports.RetrieveDatapointMessagesAudio$outboundSchema = z.object({
    id: z.string(),
});
function retrieveDatapointMessagesAudioToJSON(retrieveDatapointMessagesAudio) {
    return JSON.stringify(exports.RetrieveDatapointMessagesAudio$outboundSchema.parse(retrieveDatapointMessagesAudio));
}
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.RetrieveDatapointMessagesType$outboundSchema = exports.RetrieveDatapointMessagesType$inboundSchema;
/** @internal */
exports.RetrieveDatapointMessagesFunction$inboundSchema = z.object({
    name: z.string().optional(),
    arguments: z.string().optional(),
});
/** @internal */
exports.RetrieveDatapointMessagesFunction$outboundSchema = z.object({
    name: z.string().optional(),
    arguments: z.string().optional(),
});
function retrieveDatapointMessagesFunctionToJSON(retrieveDatapointMessagesFunction) {
    return JSON.stringify(exports.RetrieveDatapointMessagesFunction$outboundSchema.parse(retrieveDatapointMessagesFunction));
}
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),
});
/** @internal */
exports.RetrieveDatapointMessagesToolCalls$outboundSchema = z.object({
    id: z.string(),
    type: exports.RetrieveDatapointMessagesType$outboundSchema,
    function: z.lazy(() => exports.RetrieveDatapointMessagesFunction$outboundSchema),
});
function retrieveDatapointMessagesToolCallsToJSON(retrieveDatapointMessagesToolCalls) {
    return JSON.stringify(exports.RetrieveDatapointMessagesToolCalls$outboundSchema.parse(retrieveDatapointMessagesToolCalls));
}
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([
            z.lazy(() => exports.RetrieveDatapoint2TextContentPart$inboundSchema),
            z.lazy(() => exports.RetrieveDatapoint2RefusalContentPart$inboundSchema),
        ])),
    ])).optional(),
    refusal: z.nullable(z.string()).optional(),
    role: exports.RetrieveDatapointMessagesDatasetsResponse200Role$inboundSchema,
    name: z.string().optional(),
    audio: z.nullable(z.lazy(() => exports.RetrieveDatapointMessagesAudio$inboundSchema))
        .optional(),
    tool_calls: z.array(z.lazy(() => exports.RetrieveDatapointMessagesToolCalls$inboundSchema)).optional(),
    reasoning: z.string().optional(),
    reasoning_signature: z.string().optional(),
    redacted_reasoning: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "tool_calls": "toolCalls",
        "reasoning_signature": "reasoningSignature",
        "redacted_reasoning": "redactedReasoning",
    });
});
/** @internal */
exports.RetrieveDatapointMessagesAssistantMessage$outboundSchema = z.object({
    content: z.nullable(z.union([
        z.string(),
        z.array(z.union([
            z.lazy(() => exports.RetrieveDatapoint2TextContentPart$outboundSchema),
            z.lazy(() => exports.RetrieveDatapoint2RefusalContentPart$outboundSchema),
        ])),
    ])).optional(),
    refusal: z.nullable(z.string()).optional(),
    role: exports.RetrieveDatapointMessagesDatasetsResponse200Role$outboundSchema,
    name: z.string().optional(),
    audio: z.nullable(z.lazy(() => exports.RetrieveDatapointMessagesAudio$outboundSchema)).optional(),
    toolCalls: z.array(z.lazy(() => exports.RetrieveDatapointMessagesToolCalls$outboundSchema)).optional(),
    reasoning: z.string().optional(),
    reasoningSignature: z.string().optional(),
    redactedReasoning: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        toolCalls: "tool_calls",
        reasoningSignature: "reasoning_signature",
        redactedReasoning: "redacted_reasoning",
    });
});
function retrieveDatapointMessagesAssistantMessageToJSON(retrieveDatapointMessagesAssistantMessage) {
    return JSON.stringify(exports.RetrieveDatapointMessagesAssistantMessage$outboundSchema.parse(retrieveDatapointMessagesAssistantMessage));
}
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.RetrieveDatapointMessagesDatasetsResponseRole$inboundSchema = z
    .nativeEnum(exports.RetrieveDatapointMessagesDatasetsResponseRole);
/** @internal */
exports.RetrieveDatapointMessagesDatasetsResponseRole$outboundSchema = exports.RetrieveDatapointMessagesDatasetsResponseRole$inboundSchema;
/** @internal */
exports.RetrieveDatapoint2DatasetsResponse200Type$inboundSchema = z
    .nativeEnum(exports.RetrieveDatapoint2DatasetsResponse200Type);
/** @internal */
exports.RetrieveDatapoint2DatasetsResponse200Type$outboundSchema = exports.RetrieveDatapoint2DatasetsResponse200Type$inboundSchema;
/** @internal */
exports.RetrieveDatapoint2File$inboundSchema = z.object({
    file_data: z.string().optional(),
    uri: z.string().optional(),
    mimeType: z.string().optional(),
    filename: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "file_data": "fileData",
    });
});
/** @internal */
exports.RetrieveDatapoint2File$outboundSchema = z.object({
    fileData: z.string().optional(),
    uri: z.string().optional(),
    mimeType: z.string().optional(),
    filename: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        fileData: "file_data",
    });
});
function retrieveDatapoint2FileToJSON(retrieveDatapoint2File) {
    return JSON.stringify(exports.RetrieveDatapoint2File$outboundSchema.parse(retrieveDatapoint2File));
}
function retrieveDatapoint2FileFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapoint2File$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapoint2File' from JSON`);
}
/** @internal */
exports.RetrieveDatapoint24$inboundSchema = z.object({
    type: exports.RetrieveDatapoint2DatasetsResponse200Type$inboundSchema,
    file: z.lazy(() => exports.RetrieveDatapoint2File$inboundSchema),
});
/** @internal */
exports.RetrieveDatapoint24$outboundSchema = z.object({
    type: exports.RetrieveDatapoint2DatasetsResponse200Type$outboundSchema,
    file: z.lazy(() => exports.RetrieveDatapoint2File$outboundSchema),
});
function retrieveDatapoint24ToJSON(retrieveDatapoint24) {
    return JSON.stringify(exports.RetrieveDatapoint24$outboundSchema.parse(retrieveDatapoint24));
}
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.RetrieveDatapoint2DatasetsResponseType$inboundSchema = z.nativeEnum(exports.RetrieveDatapoint2DatasetsResponseType);
/** @internal */
exports.RetrieveDatapoint2DatasetsResponseType$outboundSchema = exports.RetrieveDatapoint2DatasetsResponseType$inboundSchema;
/** @internal */
exports.RetrieveDatapoint2Format$inboundSchema = z.nativeEnum(exports.RetrieveDatapoint2Format);
/** @internal */
exports.RetrieveDatapoint2Format$outboundSchema = exports.RetrieveDatapoint2Format$inboundSchema;
/** @internal */
exports.RetrieveDatapoint2InputAudio$inboundSchema = z.object({
    data: z.string(),
    format: exports.RetrieveDatapoint2Format$inboundSchema,
});
/** @internal */
exports.RetrieveDatapoint2InputAudio$outboundSchema = z.object({
    data: z.string(),
    format: exports.RetrieveDatapoint2Format$outboundSchema,
});
function retrieveDatapoint2InputAudioToJSON(retrieveDatapoint2InputAudio) {
    return JSON.stringify(exports.RetrieveDatapoint2InputAudio$outboundSchema.parse(retrieveDatapoint2InputAudio));
}
function retrieveDatapoint2InputAudioFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapoint2InputAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapoint2InputAudio' from JSON`);
}
/** @internal */
exports.RetrieveDatapoint23$inboundSchema = z.object({
    type: exports.RetrieveDatapoint2DatasetsResponseType$inboundSchema,
    input_audio: z.lazy(() => exports.RetrieveDatapoint2InputAudio$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "input_audio": "inputAudio",
    });
});
/** @internal */
exports.RetrieveDatapoint23$outboundSchema = z.object({
    type: exports.RetrieveDatapoint2DatasetsResponseType$outboundSchema,
    inputAudio: z.lazy(() => exports.RetrieveDatapoint2InputAudio$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        inputAudio: "input_audio",
    });
});
function retrieveDatapoint23ToJSON(retrieveDatapoint23) {
    return JSON.stringify(exports.RetrieveDatapoint23$outboundSchema.parse(retrieveDatapoint23));
}
function retrieveDatapoint23FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapoint23$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapoint23' from JSON`);
}
/** @internal */
exports.RetrieveDatapoint2DatasetsType$inboundSchema = z.nativeEnum(exports.RetrieveDatapoint2DatasetsType);
/** @internal */
exports.RetrieveDatapoint2DatasetsType$outboundSchema = exports.RetrieveDatapoint2DatasetsType$inboundSchema;
/** @internal */
exports.RetrieveDatapoint2Detail$inboundSchema = z.nativeEnum(exports.RetrieveDatapoint2Detail);
/** @internal */
exports.RetrieveDatapoint2Detail$outboundSchema = exports.RetrieveDatapoint2Detail$inboundSchema;
/** @internal */
exports.RetrieveDatapoint2ImageUrl$inboundSchema = z.object({
    url: z.string(),
    detail: exports.RetrieveDatapoint2Detail$inboundSchema.optional(),
});
/** @internal */
exports.RetrieveDatapoint2ImageUrl$outboundSchema = z.object({
    url: z.string(),
    detail: exports.RetrieveDatapoint2Detail$outboundSchema.optional(),
});
function retrieveDatapoint2ImageUrlToJSON(retrieveDatapoint2ImageUrl) {
    return JSON.stringify(exports.RetrieveDatapoint2ImageUrl$outboundSchema.parse(retrieveDatapoint2ImageUrl));
}
function retrieveDatapoint2ImageUrlFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapoint2ImageUrl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapoint2ImageUrl' from JSON`);
}
/** @internal */
exports.RetrieveDatapoint22$inboundSchema = z.object({
    type: exports.RetrieveDatapoint2DatasetsType$inboundSchema,
    image_url: z.lazy(() => exports.RetrieveDatapoint2ImageUrl$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "image_url": "imageUrl",
    });
});
/** @internal */
exports.RetrieveDatapoint22$outboundSchema = z.object({
    type: exports.RetrieveDatapoint2DatasetsType$outboundSchema,
    imageUrl: z.lazy(() => exports.RetrieveDatapoint2ImageUrl$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        imageUrl: "image_url",
    });
});
function retrieveDatapoint22ToJSON(retrieveDatapoint22) {
    return JSON.stringify(exports.RetrieveDatapoint22$outboundSchema.parse(retrieveDatapoint22));
}
function retrieveDatapoint22FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapoint22$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapoint22' from JSON`);
}
/** @internal */
exports.RetrieveDatapoint2Type$inboundSchema = z.nativeEnum(exports.RetrieveDatapoint2Type);
/** @internal */
exports.RetrieveDatapoint2Type$outboundSchema = exports.RetrieveDatapoint2Type$inboundSchema;
/** @internal */
exports.RetrieveDatapoint21$inboundSchema = z.object({
    type: exports.RetrieveDatapoint2Type$inboundSchema,
    text: z.string(),
});
/** @internal */
exports.RetrieveDatapoint21$outboundSchema = z.object({
    type: exports.RetrieveDatapoint2Type$outboundSchema,
    text: z.string(),
});
function retrieveDatapoint21ToJSON(retrieveDatapoint21) {
    return JSON.stringify(exports.RetrieveDatapoint21$outboundSchema.parse(retrieveDatapoint21));
}
function retrieveDatapoint21FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapoint21$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapoint21' from JSON`);
}
/** @internal */
exports.RetrieveDatapointContent2$inboundSchema = z.union([
    z.lazy(() => exports.RetrieveDatapoint21$inboundSchema),
    z.lazy(() => exports.RetrieveDatapoint22$inboundSchema),
    z.lazy(() => exports.RetrieveDatapoint23$inboundSchema),
    z.lazy(() => exports.RetrieveDatapoint24$inboundSchema),
]);
/** @internal */
exports.RetrieveDatapointContent2$outboundSchema = z.union([
    z.lazy(() => exports.RetrieveDatapoint21$outboundSchema),
    z.lazy(() => exports.RetrieveDatapoint22$outboundSchema),
    z.lazy(() => exports.RetrieveDatapoint23$outboundSchema),
    z.lazy(() => exports.RetrieveDatapoint24$outboundSchema),
]);
function retrieveDatapointContent2ToJSON(retrieveDatapointContent2) {
    return JSON.stringify(exports.RetrieveDatapointContent2$outboundSchema.parse(retrieveDatapointContent2));
}
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.RetrieveDatapointMessagesContent$inboundSchema = z.union([
    z.string(),
    z.array(z.union([
        z.lazy(() => exports.RetrieveDatapoint21$inboundSchema),
        z.lazy(() => exports.RetrieveDatapoint22$inboundSchema),
        z.lazy(() => exports.RetrieveDatapoint23$inboundSchema),
        z.lazy(() => exports.RetrieveDatapoint24$inboundSchema),
    ])),
]);
/** @internal */
exports.RetrieveDatapointMessagesContent$outboundSchema = z.union([
    z.string(),
    z.array(z.union([
        z.lazy(() => exports.RetrieveDatapoint21$outboundSchema),
        z.lazy(() => exports.RetrieveDatapoint22$outboundSchema),
        z.lazy(() => exports.RetrieveDatapoint23$outboundSchema),
        z.lazy(() => exports.RetrieveDatapoint24$outboundSchema),
    ])),
]);
function retrieveDatapointMessagesContentToJSON(retrieveDatapointMessagesContent) {
    return JSON.stringify(exports.RetrieveDatapointMessagesContent$outboundSchema.parse(retrieveDatapointMessagesContent));
}
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.RetrieveDatapointMessagesUserMessage$inboundSchema = z.object({
    role: exports.RetrieveDatapointMessagesDatasetsResponseRole$inboundSchema,
    name: z.string().optional(),
    content: z.union([
        z.string(),
        z.array(z.union([
            z.lazy(() => exports.RetrieveDatapoint21$inboundSchema),
            z.lazy(() => exports.RetrieveDatapoint22$inboundSchema),
            z.lazy(() => exports.RetrieveDatapoint23$inboundSchema),
            z.lazy(() => exports.RetrieveDatapoint24$inboundSchema),
        ])),
    ]),
});
/** @internal */
exports.RetrieveDatapointMessagesUserMessage$outboundSchema = z.object({
    role: exports.RetrieveDatapointMessagesDatasetsResponseRole$outboundSchema,
    name: z.string().optional(),
    content: z.union([
        z.string(),
        z.array(z.union([
            z.lazy(() => exports.RetrieveDatapoint21$outboundSchema),
            z.lazy(() => exports.RetrieveDatapoint22$outboundSchema),
            z.lazy(() => exports.RetrieveDatapoint23$outboundSchema),
            z.lazy(() => exports.RetrieveDatapoint24$outboundSchema),
        ])),
    ]),
});
function retrieveDatapointMessagesUserMessageToJSON(retrieveDatapointMessagesUserMessage) {
    return JSON.stringify(exports.RetrieveDatapointMessagesUserMessage$outboundSchema.parse(retrieveDatapointMessagesUserMessage));
}
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.RetrieveDatapointMessagesDatasetsRole$inboundSchema = z.nativeEnum(exports.RetrieveDatapointMessagesDatasetsRole);
/** @internal */
exports.RetrieveDatapointMessagesDatasetsRole$outboundSchema = exports.RetrieveDatapointMessagesDatasetsRole$inboundSchema;
/** @internal */
exports.RetrieveDatapointMessagesSystemMessage$inboundSchema = z.object({
    role: exports.RetrieveDatapointMessagesDatasetsRole$inboundSchema,
    content: z.string(),
    name: z.string().optional(),
});
/** @internal */
exports.RetrieveDatapointMessagesSystemMessage$outboundSchema = z.object({
    role: exports.RetrieveDatapointMessagesDatasetsRole$outboundSchema,
    content: z.string(),
    name: z.string().optional(),
});
function retrieveDatapointMessagesSystemMessageToJSON(retrieveDatapointMessagesSystemMessage) {
    return JSON.stringify(exports.RetrieveDatapointMessagesSystemMessage$outboundSchema.parse(retrieveDatapointMessagesSystemMessage));
}
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.RetrieveDatapointMessagesRole$inboundSchema = z.nativeEnum(exports.RetrieveDatapointMessagesRole);
/** @internal */
exports.RetrieveDatapointMessagesRole$outboundSchema = exports.RetrieveDatapointMessagesRole$inboundSchema;
/** @internal */
exports.RetrieveDatapointMessagesDeveloperMessage$inboundSchema = z.object({
    role: exports.RetrieveDatapointMessagesRole$inboundSchema,
    content: z.string(),
    name: z.string().optional(),
});
/** @internal */
exports.RetrieveDatapointMessagesDeveloperMessage$outboundSchema = z.object({
    role: exports.RetrieveDatapointMessagesRole$outboundSchema,
    content: z.string(),
    name: z.string().optional(),
});
function retrieveDatapointMessagesDeveloperMessageToJSON(retrieveDatapointMessagesDeveloperMessage) {
    return JSON.stringify(exports.RetrieveDatapointMessagesDeveloperMessage$outboundSchema.parse(retrieveDatapointMessagesDeveloperMessage));
}
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.RetrieveDatapointMessages$inboundSchema = z.union([
    z.lazy(() => exports.RetrieveDatapointMessagesToolMessage$inboundSchema),
    z.lazy(() => exports.RetrieveDatapointMessagesDeveloperMessage$inboundSchema),
    z.lazy(() => exports.RetrieveDatapointMessagesSystemMessage$inboundSchema),
    z.lazy(() => exports.RetrieveDatapointMessagesUserMessage$inboundSchema),
    z.lazy(() => exports.RetrieveDatapointMessagesAssistantMessage$inboundSchema),
]);
/** @internal */
exports.RetrieveDatapointMessages$outboundSchema = z.union([
    z.lazy(() => exports.RetrieveDatapointMessagesToolMessage$outboundSchema),
    z.lazy(() => exports.RetrieveDatapointMessagesDeveloperMessage$outboundSchema),
    z.lazy(() => exports.RetrieveDatapointMessagesSystemMessage$outboundSchema),
    z.lazy(() => exports.RetrieveDatapointMessagesUserMessage$outboundSchema),
    z.lazy(() => exports.RetrieveDatapointMessagesAssistantMessage$outboundSchema),
]);
function retrieveDatapointMessagesToJSON(retrieveDatapointMessages) {
    return JSON.stringify(exports.RetrieveDatapointMessages$outboundSchema.parse(retrieveDatapointMessages));
}
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.RetrieveDatapointEvaluationsDatasetsResponseEvaluationType$outboundSchema = exports.RetrieveDatapointEvaluationsDatasetsResponseEvaluationType$inboundSchema;
/** @internal */
exports.RetrieveDatapointEvaluationsDatasetsResponseSource$inboundSchema = z
    .nativeEnum(exports.RetrieveDatapointEvaluationsDatasetsResponseSource);
/** @internal */
exports.RetrieveDatapointEvaluationsDatasetsResponseSource$outboundSchema = exports.RetrieveDatapointEvaluationsDatasetsResponseSource$inboundSchema;
/** @internal */
exports.RetrieveDatapointEvaluationsDatasetsResponseType$inboundSchema = z
    .nativeEnum(exports.RetrieveDatapointEvaluationsDatasetsResponseType);
/** @internal */
exports.RetrieveDatapointEvaluationsDatasetsResponseType$outboundSchema = exports.RetrieveDatapointEvaluationsDatasetsResponseType$inboundSchema;
/** @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("2025-11-25T16:24:36.056Z").transform(v => new Date(v)),
    type: exports.RetrieveDatapointEvaluationsDatasetsResponseType$inboundSchema,
    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",
    });
});
/** @internal */
exports.RetrieveDatapointEvaluations3$outboundSchema = z.object({
    id: z.string(),
    evaluationType: exports.RetrieveDatapointEvaluationsDatasetsResponseEvaluationType$outboundSchema,
    humanReviewId: z.string(),
    source: exports.RetrieveDatapointEvaluationsDatasetsResponseSource$outboundSchema
        .default("orq"),
    reviewedById: z.string(),
    reviewedAt: z.date().default(() => new Date("2025-11-25T16:24:36.056Z"))
        .transform(v => v.toISOString()),
    type: exports.RetrieveDatapointEvaluationsDatasetsResponseType$outboundSchema,
    values: z.array(z.string()),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        evaluationType: "evaluation_type",
        humanReviewId: "human_review_id",
        reviewedById: "reviewed_by_id",
        reviewedAt: "reviewed_at",
    });
});
function retrieveDatapointEvaluations3ToJSON(retrieveDatapointEvaluations3) {
    return JSON.stringify(exports.RetrieveDatapointEvaluations3$outboundSchema.parse(retrieveDatapointEvaluations3));
}
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.RetrieveDatapointEvaluationsDatasetsEvaluationType$outboundSchema = exports.RetrieveDatapointEvaluationsDatasetsEvaluationType$inboundSchema;
/** @internal */
exports.RetrieveDatapointEvaluationsDatasetsSource$inboundSchema = z
    .nativeEnum(exports.RetrieveDatapointEvaluationsDatasetsSource);
/** @internal */
exports.RetrieveDatapointEvaluationsDatasetsSource$outboundSchema = exports.RetrieveDatapointEvaluationsDatasetsSource$inboundSchema;
/** @internal */
exports.RetrieveDatapointEvaluationsDatasetsType$inboundSchema = z
    .nativeEnum(exports.RetrieveDatapointEvaluationsDatasetsType);
/** @internal */
exports.RetrieveDatapointEvaluationsDatasetsType$outboundSchema = exports.RetrieveDatapointEvaluationsDatasetsType$inboundSchema;
/** @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("2025-11-25T16:24:36.056Z").transform(v => new Date(v)),
    type: exports.RetrieveDatapointEvaluationsDatasetsType$inboundSchema,
    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",
    });
});
/** @internal */
exports.RetrieveDatapointEvaluations2$outboundSchema = z.object({
    id: z.string(),
    evaluationType: exports.RetrieveDatapointEvaluationsDatasetsEvaluationType$outboundSchema,
    humanReviewId: z.string(),
    source: exports.RetrieveDatapointEvaluationsDatasetsSource$outboundSchema.default("orq"),
    reviewedById: z.string(),
    reviewedAt: z.date().default(() => new Date("2025-11-25T16:24:36.056Z"))
        .transform(v => v.toISOString()),
    type: exports.RetrieveDatapointEvaluationsDatasetsType$outboundSchema,
    value: z.number(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        evaluationType: "evaluation_type",
        humanReviewId: "human_review_id",
        reviewedById: "reviewed_by_id",
        reviewedAt: "reviewed_at",
    });
});
function retrieveDatapointEvaluations2ToJSON(retrieveDatapointEvaluations2) {
    return JSON.stringify(exports.RetrieveDatapointEvaluations2$outboundSchema.parse(retrieveDatapointEvaluations2));
}
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.RetrieveDatapointEvaluationsEvaluationType$outboundSchema = exports.RetrieveDatapointEvaluationsEvaluationType$inboundSchema;
/** @internal */
exports.RetrieveDatapointEvaluationsSource$inboundSchema = z.nativeEnum(exports.RetrieveDatapointEvaluationsSource);
/** @internal */
exports.RetrieveDatapointEvaluationsSource$outboundSchema = exports.RetrieveDatapointEvaluationsSource$inboundSchema;
/** @internal */
exports.RetrieveDatapointEvaluationsType$inboundSchema = z.nativeEnum(exports.RetrieveDatapointEvaluationsType);
/** @internal */
exports.RetrieveDatapointEvaluationsType$outboundSchema = exports.RetrieveDatapointEvaluationsType$inboundSchema;
/** @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("2025-11-25T16:24:36.055Z").transform(v => new Date(v)),
    type: exports.RetrieveDatapointEvaluationsType$inboundSchema,
    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",
    });
});
/** @internal */
exports.RetrieveDatapointEvaluations1$outboundSchema = z.object({
    id: z.string(),
    evaluationType: exports.RetrieveDatapointEvaluationsEvaluationType$outboundSchema,
    humanReviewId: z.string(),
    source: exports.RetrieveDatapointEvaluationsSource$outboundSchema.default("orq"),
    reviewedById: z.string(),
    reviewedAt: z.date().default(() => new Date("2025-11-25T16:24:36.055Z"))
        .transform(v => v.toISOString()),
    type: exports.RetrieveDatapointEvaluationsType$outboundSchema,
    value: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        evaluationType: "evaluation_type",
        humanReviewId: "human_review_id",
        reviewedById: "reviewed_by_id",
        reviewedAt: "reviewed_at",
    });
});
function retrieveDatapointEvaluations1ToJSON(retrieveDatapointEvaluations1) {
    return JSON.stringify(exports.RetrieveDatapointEvaluations1$outboundSchema.parse(retrieveDatapointEvaluations1));
}
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),
]);
/** @internal */
exports.RetrieveDatapointEvaluations$outboundSchema = z.union([
    z.lazy(() => exports.RetrieveDatapointEvaluations1$outboundSchema),
    z.lazy(() => exports.RetrieveDatapointEvaluations2$outboundSchema),
    z.lazy(() => exports.RetrieveDatapointEvaluations3$outboundSchema),
]);
function retrieveDatapointEvaluationsToJSON(retrieveDatapointEvaluations) {
    return JSON.stringify(exports.RetrieveDatapointEvaluations$outboundSchema.parse(retrieveDatapointEvaluations));
}
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.RetrieveDatapointMessagesToolMessage$inboundSchema),
        z.lazy(() => exports.RetrieveDatapointMessagesDeveloperMessage$inboundSchema),
        z.lazy(() => exports.RetrieveDatapointMessagesSystemMessage$inboundSchema),
        z.lazy(() => exports.RetrieveDatapointMessagesUserMessage$inboundSchema),
        z.lazy(() => exports.RetrieveDatapointMessagesAssistantMessage$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("2025-11-25T16:24:23.366Z").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",
    });
});
/** @internal */
exports.RetrieveDatapointResponseBody$outboundSchema = z.object({
    id: z.string(),
    workspaceId: z.string(),
    inputs: z.record(z.any()).optional(),
    messages: z.array(z.union([
        z.lazy(() => exports.RetrieveDatapointMessagesToolMessage$outboundSchema),
        z.lazy(() => exports.RetrieveDatapointMessagesDeveloperMessage$outboundSchema),
        z.lazy(() => exports.RetrieveDatapointMessagesSystemMessage$outboundSchema),
        z.lazy(() => exports.RetrieveDatapointMessagesUserMessage$outboundSchema),
        z.lazy(() => exports.RetrieveDatapointMessagesAssistantMessage$outboundSchema),
    ])).optional(),
    expectedOutput: z.string().optional(),
    evaluations: z.array(z.union([
        z.lazy(() => exports.RetrieveDatapointEvaluations1$outboundSchema),
        z.lazy(() => exports.RetrieveDatapointEvaluations2$outboundSchema),
        z.lazy(() => exports.RetrieveDatapointEvaluations3$outboundSchema),
    ])).optional(),
    datasetId: z.string(),
    snapshotVersion: z.string().optional(),
    createdById: z.string().optional(),
    updatedById: z.string().optional(),
    created: z.date().transform(v => v.toISOString()).optional(),
    updated: z.date().default(() => new Date("2025-11-25T16:24:23.366Z"))
        .transform(v => v.toISOString()),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        id: "_id",
        workspaceId: "workspace_id",
        expectedOutput: "expected_output",
        datasetId: "dataset_id",
        snapshotVersion: "snapshot_version",
        createdById: "created_by_id",
        updatedById: "updated_by_id",
    });
});
function retrieveDatapointResponseBodyToJSON(retrieveDatapointResponseBody) {
    return JSON.stringify(exports.RetrieveDatapointResponseBody$outboundSchema.parse(retrieveDatapointResponseBody));
}
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