"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.ListDatasetDatapointsAnnotationsType$outboundSchema = exports.ListDatasetDatapointsAnnotationsType$inboundSchema = exports.ListDatasetDatapointsAnnotations2$outboundSchema = exports.ListDatasetDatapointsAnnotations2$inboundSchema = exports.ListDatasetDatapointsAnnotationsFilePath$outboundSchema = exports.ListDatasetDatapointsAnnotationsFilePath$inboundSchema = exports.ListDatasetDatapointsAnnotationsDatasetsType$outboundSchema = exports.ListDatasetDatapointsAnnotationsDatasetsType$inboundSchema = exports.ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType$outboundSchema = exports.ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType$inboundSchema = exports.ListDatasetDatapoints2RefusalContentPart$outboundSchema = exports.ListDatasetDatapoints2RefusalContentPart$inboundSchema = exports.ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyType$outboundSchema = exports.ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema = exports.ListDatasetDatapointsMessagesToolMessage$outboundSchema = exports.ListDatasetDatapointsMessagesToolMessage$inboundSchema = exports.ListDatasetDatapointsMessagesDatasetsResponseContent$outboundSchema = exports.ListDatasetDatapointsMessagesDatasetsResponseContent$inboundSchema = exports.ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONRole$outboundSchema = exports.ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONRole$inboundSchema = exports.ListDatasetDatapointsObject$outboundSchema = exports.ListDatasetDatapointsObject$inboundSchema = exports.ListDatasetDatapointsRequest$outboundSchema = exports.ListDatasetDatapointsRequest$inboundSchema = exports.ListDatasetDatapointsEvaluationsDatasetsResponseType = exports.ListDatasetDatapointsEvaluationsDatasetsSource = exports.ListDatasetDatapointsEvaluationsDatasetsEvaluationType = exports.ListDatasetDatapointsEvaluationsType = exports.ListDatasetDatapointsEvaluationsDatasetsResponseSource = exports.ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType = exports.ListDatasetDatapointsEvaluationsDatasetsType = exports.ListDatasetDatapointsEvaluationsSource = exports.ListDatasetDatapointsEvaluationsEvaluationType = exports.ListDatasetDatapointsMessagesRole = exports.ListDatasetDatapointsMessagesDatasetsRole = exports.ListDatasetDatapoints2Type = exports.ListDatasetDatapoints2Detail = exports.ListDatasetDatapoints2DatasetsType = exports.ListDatasetDatapoints2Format = exports.ListDatasetDatapoints2DatasetsResponseType = exports.ListDatasetDatapoints2DatasetsResponse200Type = exports.ListDatasetDatapointsMessagesDatasetsResponseRole = exports.ListDatasetDatapointsMessagesType = exports.ListDatasetDatapointsMessagesDatasetsResponse200Role = exports.ListDatasetDatapointsAnnotationsType = exports.ListDatasetDatapointsAnnotationsDatasetsType = exports.ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType = exports.ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyType = exports.ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONRole = exports.ListDatasetDatapointsObject = void 0;
exports.ListDatasetDatapoints2Type$outboundSchema = exports.ListDatasetDatapoints2Type$inboundSchema = exports.ListDatasetDatapoints22$outboundSchema = exports.ListDatasetDatapoints22$inboundSchema = exports.ListDatasetDatapoints2ImageUrl$outboundSchema = exports.ListDatasetDatapoints2ImageUrl$inboundSchema = exports.ListDatasetDatapoints2Detail$outboundSchema = exports.ListDatasetDatapoints2Detail$inboundSchema = exports.ListDatasetDatapoints2DatasetsType$outboundSchema = exports.ListDatasetDatapoints2DatasetsType$inboundSchema = exports.ListDatasetDatapoints23$outboundSchema = exports.ListDatasetDatapoints23$inboundSchema = exports.ListDatasetDatapoints2InputAudio$outboundSchema = exports.ListDatasetDatapoints2InputAudio$inboundSchema = exports.ListDatasetDatapoints2Format$outboundSchema = exports.ListDatasetDatapoints2Format$inboundSchema = exports.ListDatasetDatapoints2DatasetsResponseType$outboundSchema = exports.ListDatasetDatapoints2DatasetsResponseType$inboundSchema = exports.ListDatasetDatapoints24$outboundSchema = exports.ListDatasetDatapoints24$inboundSchema = exports.ListDatasetDatapoints2File$outboundSchema = exports.ListDatasetDatapoints2File$inboundSchema = exports.ListDatasetDatapoints2DatasetsResponse200Type$outboundSchema = exports.ListDatasetDatapoints2DatasetsResponse200Type$inboundSchema = exports.ListDatasetDatapointsMessagesDatasetsResponseRole$outboundSchema = exports.ListDatasetDatapointsMessagesDatasetsResponseRole$inboundSchema = exports.ListDatasetDatapointsMessagesAssistantMessage$outboundSchema = exports.ListDatasetDatapointsMessagesAssistantMessage$inboundSchema = exports.ListDatasetDatapointsMessagesToolCalls$outboundSchema = exports.ListDatasetDatapointsMessagesToolCalls$inboundSchema = exports.ListDatasetDatapointsMessagesFunction$outboundSchema = exports.ListDatasetDatapointsMessagesFunction$inboundSchema = exports.ListDatasetDatapointsMessagesType$outboundSchema = exports.ListDatasetDatapointsMessagesType$inboundSchema = exports.ListDatasetDatapointsMessagesAudio$outboundSchema = exports.ListDatasetDatapointsMessagesAudio$inboundSchema = exports.ListDatasetDatapointsMessagesDatasetsResponse200Role$outboundSchema = exports.ListDatasetDatapointsMessagesDatasetsResponse200Role$inboundSchema = exports.ListDatasetDatapointsMessagesDatasetsContent$outboundSchema = exports.ListDatasetDatapointsMessagesDatasetsContent$inboundSchema = exports.ListDatasetDatapointsContentDatasets2$outboundSchema = exports.ListDatasetDatapointsContentDatasets2$inboundSchema = exports.ListDatasetDatapoints2TextContentPart$outboundSchema = exports.ListDatasetDatapoints2TextContentPart$inboundSchema = exports.ListDatasetDatapoints2Annotations$outboundSchema = exports.ListDatasetDatapoints2Annotations$inboundSchema = exports.ListDatasetDatapointsAnnotations1$outboundSchema = exports.ListDatasetDatapointsAnnotations1$inboundSchema = exports.ListDatasetDatapointsAnnotationsFileCitation$outboundSchema = exports.ListDatasetDatapointsAnnotationsFileCitation$inboundSchema = void 0;
exports.ListDatasetDatapointsResponseBody$outboundSchema = exports.ListDatasetDatapointsResponseBody$inboundSchema = exports.ListDatasetDatapointsData$outboundSchema = exports.ListDatasetDatapointsData$inboundSchema = exports.ListDatasetDatapointsEvaluations$outboundSchema = exports.ListDatasetDatapointsEvaluations$inboundSchema = exports.ListDatasetDatapointsEvaluations1$outboundSchema = exports.ListDatasetDatapointsEvaluations1$inboundSchema = exports.ListDatasetDatapointsEvaluationsDatasetsResponseType$outboundSchema = exports.ListDatasetDatapointsEvaluationsDatasetsResponseType$inboundSchema = exports.ListDatasetDatapointsEvaluationsDatasetsSource$outboundSchema = exports.ListDatasetDatapointsEvaluationsDatasetsSource$inboundSchema = exports.ListDatasetDatapointsEvaluationsDatasetsEvaluationType$outboundSchema = exports.ListDatasetDatapointsEvaluationsDatasetsEvaluationType$inboundSchema = exports.ListDatasetDatapointsEvaluations2$outboundSchema = exports.ListDatasetDatapointsEvaluations2$inboundSchema = exports.ListDatasetDatapointsEvaluationsType$outboundSchema = exports.ListDatasetDatapointsEvaluationsType$inboundSchema = exports.ListDatasetDatapointsEvaluationsDatasetsResponseSource$outboundSchema = exports.ListDatasetDatapointsEvaluationsDatasetsResponseSource$inboundSchema = exports.ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType$outboundSchema = exports.ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType$inboundSchema = exports.ListDatasetDatapointsEvaluations3$outboundSchema = exports.ListDatasetDatapointsEvaluations3$inboundSchema = exports.ListDatasetDatapointsEvaluationsDatasetsType$outboundSchema = exports.ListDatasetDatapointsEvaluationsDatasetsType$inboundSchema = exports.ListDatasetDatapointsEvaluationsSource$outboundSchema = exports.ListDatasetDatapointsEvaluationsSource$inboundSchema = exports.ListDatasetDatapointsEvaluationsEvaluationType$outboundSchema = exports.ListDatasetDatapointsEvaluationsEvaluationType$inboundSchema = exports.ListDatasetDatapointsMessages$outboundSchema = exports.ListDatasetDatapointsMessages$inboundSchema = exports.ListDatasetDatapointsMessagesDeveloperMessage$outboundSchema = exports.ListDatasetDatapointsMessagesDeveloperMessage$inboundSchema = exports.ListDatasetDatapointsMessagesRole$outboundSchema = exports.ListDatasetDatapointsMessagesRole$inboundSchema = exports.ListDatasetDatapointsMessagesSystemMessage$outboundSchema = exports.ListDatasetDatapointsMessagesSystemMessage$inboundSchema = exports.ListDatasetDatapointsMessagesDatasetsRole$outboundSchema = exports.ListDatasetDatapointsMessagesDatasetsRole$inboundSchema = exports.ListDatasetDatapointsMessagesUserMessage$outboundSchema = exports.ListDatasetDatapointsMessagesUserMessage$inboundSchema = exports.ListDatasetDatapointsMessagesContent$outboundSchema = exports.ListDatasetDatapointsMessagesContent$inboundSchema = exports.ListDatasetDatapointsContent2$outboundSchema = exports.ListDatasetDatapointsContent2$inboundSchema = exports.ListDatasetDatapoints21$outboundSchema = exports.ListDatasetDatapoints21$inboundSchema = void 0;
exports.listDatasetDatapointsRequestToJSON = listDatasetDatapointsRequestToJSON;
exports.listDatasetDatapointsRequestFromJSON = listDatasetDatapointsRequestFromJSON;
exports.listDatasetDatapointsMessagesDatasetsResponseContentToJSON = listDatasetDatapointsMessagesDatasetsResponseContentToJSON;
exports.listDatasetDatapointsMessagesDatasetsResponseContentFromJSON = listDatasetDatapointsMessagesDatasetsResponseContentFromJSON;
exports.listDatasetDatapointsMessagesToolMessageToJSON = listDatasetDatapointsMessagesToolMessageToJSON;
exports.listDatasetDatapointsMessagesToolMessageFromJSON = listDatasetDatapointsMessagesToolMessageFromJSON;
exports.listDatasetDatapoints2RefusalContentPartToJSON = listDatasetDatapoints2RefusalContentPartToJSON;
exports.listDatasetDatapoints2RefusalContentPartFromJSON = listDatasetDatapoints2RefusalContentPartFromJSON;
exports.listDatasetDatapointsAnnotationsFilePathToJSON = listDatasetDatapointsAnnotationsFilePathToJSON;
exports.listDatasetDatapointsAnnotationsFilePathFromJSON = listDatasetDatapointsAnnotationsFilePathFromJSON;
exports.listDatasetDatapointsAnnotations2ToJSON = listDatasetDatapointsAnnotations2ToJSON;
exports.listDatasetDatapointsAnnotations2FromJSON = listDatasetDatapointsAnnotations2FromJSON;
exports.listDatasetDatapointsAnnotationsFileCitationToJSON = listDatasetDatapointsAnnotationsFileCitationToJSON;
exports.listDatasetDatapointsAnnotationsFileCitationFromJSON = listDatasetDatapointsAnnotationsFileCitationFromJSON;
exports.listDatasetDatapointsAnnotations1ToJSON = listDatasetDatapointsAnnotations1ToJSON;
exports.listDatasetDatapointsAnnotations1FromJSON = listDatasetDatapointsAnnotations1FromJSON;
exports.listDatasetDatapoints2AnnotationsToJSON = listDatasetDatapoints2AnnotationsToJSON;
exports.listDatasetDatapoints2AnnotationsFromJSON = listDatasetDatapoints2AnnotationsFromJSON;
exports.listDatasetDatapoints2TextContentPartToJSON = listDatasetDatapoints2TextContentPartToJSON;
exports.listDatasetDatapoints2TextContentPartFromJSON = listDatasetDatapoints2TextContentPartFromJSON;
exports.listDatasetDatapointsContentDatasets2ToJSON = listDatasetDatapointsContentDatasets2ToJSON;
exports.listDatasetDatapointsContentDatasets2FromJSON = listDatasetDatapointsContentDatasets2FromJSON;
exports.listDatasetDatapointsMessagesDatasetsContentToJSON = listDatasetDatapointsMessagesDatasetsContentToJSON;
exports.listDatasetDatapointsMessagesDatasetsContentFromJSON = listDatasetDatapointsMessagesDatasetsContentFromJSON;
exports.listDatasetDatapointsMessagesAudioToJSON = listDatasetDatapointsMessagesAudioToJSON;
exports.listDatasetDatapointsMessagesAudioFromJSON = listDatasetDatapointsMessagesAudioFromJSON;
exports.listDatasetDatapointsMessagesFunctionToJSON = listDatasetDatapointsMessagesFunctionToJSON;
exports.listDatasetDatapointsMessagesFunctionFromJSON = listDatasetDatapointsMessagesFunctionFromJSON;
exports.listDatasetDatapointsMessagesToolCallsToJSON = listDatasetDatapointsMessagesToolCallsToJSON;
exports.listDatasetDatapointsMessagesToolCallsFromJSON = listDatasetDatapointsMessagesToolCallsFromJSON;
exports.listDatasetDatapointsMessagesAssistantMessageToJSON = listDatasetDatapointsMessagesAssistantMessageToJSON;
exports.listDatasetDatapointsMessagesAssistantMessageFromJSON = listDatasetDatapointsMessagesAssistantMessageFromJSON;
exports.listDatasetDatapoints2FileToJSON = listDatasetDatapoints2FileToJSON;
exports.listDatasetDatapoints2FileFromJSON = listDatasetDatapoints2FileFromJSON;
exports.listDatasetDatapoints24ToJSON = listDatasetDatapoints24ToJSON;
exports.listDatasetDatapoints24FromJSON = listDatasetDatapoints24FromJSON;
exports.listDatasetDatapoints2InputAudioToJSON = listDatasetDatapoints2InputAudioToJSON;
exports.listDatasetDatapoints2InputAudioFromJSON = listDatasetDatapoints2InputAudioFromJSON;
exports.listDatasetDatapoints23ToJSON = listDatasetDatapoints23ToJSON;
exports.listDatasetDatapoints23FromJSON = listDatasetDatapoints23FromJSON;
exports.listDatasetDatapoints2ImageUrlToJSON = listDatasetDatapoints2ImageUrlToJSON;
exports.listDatasetDatapoints2ImageUrlFromJSON = listDatasetDatapoints2ImageUrlFromJSON;
exports.listDatasetDatapoints22ToJSON = listDatasetDatapoints22ToJSON;
exports.listDatasetDatapoints22FromJSON = listDatasetDatapoints22FromJSON;
exports.listDatasetDatapoints21ToJSON = listDatasetDatapoints21ToJSON;
exports.listDatasetDatapoints21FromJSON = listDatasetDatapoints21FromJSON;
exports.listDatasetDatapointsContent2ToJSON = listDatasetDatapointsContent2ToJSON;
exports.listDatasetDatapointsContent2FromJSON = listDatasetDatapointsContent2FromJSON;
exports.listDatasetDatapointsMessagesContentToJSON = listDatasetDatapointsMessagesContentToJSON;
exports.listDatasetDatapointsMessagesContentFromJSON = listDatasetDatapointsMessagesContentFromJSON;
exports.listDatasetDatapointsMessagesUserMessageToJSON = listDatasetDatapointsMessagesUserMessageToJSON;
exports.listDatasetDatapointsMessagesUserMessageFromJSON = listDatasetDatapointsMessagesUserMessageFromJSON;
exports.listDatasetDatapointsMessagesSystemMessageToJSON = listDatasetDatapointsMessagesSystemMessageToJSON;
exports.listDatasetDatapointsMessagesSystemMessageFromJSON = listDatasetDatapointsMessagesSystemMessageFromJSON;
exports.listDatasetDatapointsMessagesDeveloperMessageToJSON = listDatasetDatapointsMessagesDeveloperMessageToJSON;
exports.listDatasetDatapointsMessagesDeveloperMessageFromJSON = listDatasetDatapointsMessagesDeveloperMessageFromJSON;
exports.listDatasetDatapointsMessagesToJSON = listDatasetDatapointsMessagesToJSON;
exports.listDatasetDatapointsMessagesFromJSON = listDatasetDatapointsMessagesFromJSON;
exports.listDatasetDatapointsEvaluations3ToJSON = listDatasetDatapointsEvaluations3ToJSON;
exports.listDatasetDatapointsEvaluations3FromJSON = listDatasetDatapointsEvaluations3FromJSON;
exports.listDatasetDatapointsEvaluations2ToJSON = listDatasetDatapointsEvaluations2ToJSON;
exports.listDatasetDatapointsEvaluations2FromJSON = listDatasetDatapointsEvaluations2FromJSON;
exports.listDatasetDatapointsEvaluations1ToJSON = listDatasetDatapointsEvaluations1ToJSON;
exports.listDatasetDatapointsEvaluations1FromJSON = listDatasetDatapointsEvaluations1FromJSON;
exports.listDatasetDatapointsEvaluationsToJSON = listDatasetDatapointsEvaluationsToJSON;
exports.listDatasetDatapointsEvaluationsFromJSON = listDatasetDatapointsEvaluationsFromJSON;
exports.listDatasetDatapointsDataToJSON = listDatasetDatapointsDataToJSON;
exports.listDatasetDatapointsDataFromJSON = listDatasetDatapointsDataFromJSON;
exports.listDatasetDatapointsResponseBodyToJSON = listDatasetDatapointsResponseBodyToJSON;
exports.listDatasetDatapointsResponseBodyFromJSON = listDatasetDatapointsResponseBodyFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
exports.ListDatasetDatapointsObject = {
    List: "list",
};
/**
 * The role of the messages author, in this case tool.
 */
exports.ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONRole = {
    Tool: "tool",
};
/**
 * The type of the content part.
 */
exports.ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyType = {
    Refusal: "refusal",
};
/**
 * The type of the content part.
 */
exports.ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType = {
    Text: "text",
};
exports.ListDatasetDatapointsAnnotationsDatasetsType = {
    FilePath: "file_path",
};
exports.ListDatasetDatapointsAnnotationsType = {
    FileCitation: "file_citation",
};
/**
 * The role of the messages author, in this case `assistant`.
 */
exports.ListDatasetDatapointsMessagesDatasetsResponse200Role = {
    Assistant: "assistant",
};
/**
 * The type of the tool. Currently, only `function` is supported.
 */
exports.ListDatasetDatapointsMessagesType = {
    Function: "function",
};
/**
 * The role of the messages author, in this case `user`.
 */
exports.ListDatasetDatapointsMessagesDatasetsResponseRole = {
    User: "user",
};
/**
 * The type of the content part. Always `file`.
 */
exports.ListDatasetDatapoints2DatasetsResponse200Type = {
    File: "file",
};
exports.ListDatasetDatapoints2DatasetsResponseType = {
    InputAudio: "input_audio",
};
/**
 * The format of the encoded audio data. Currently supports `wav` and `mp3`.
 */
exports.ListDatasetDatapoints2Format = {
    Mp3: "mp3",
    Wav: "wav",
};
exports.ListDatasetDatapoints2DatasetsType = {
    ImageUrl: "image_url",
};
/**
 * Specifies the detail level of the image.
 */
exports.ListDatasetDatapoints2Detail = {
    Low: "low",
    High: "high",
    Auto: "auto",
};
exports.ListDatasetDatapoints2Type = {
    Text: "text",
};
/**
 * The role of the messages author, in this case `system`.
 */
exports.ListDatasetDatapointsMessagesDatasetsRole = {
    System: "system",
};
/**
 * The role of the messages author, in this case  `developer`.
 */
exports.ListDatasetDatapointsMessagesRole = {
    Developer: "developer",
};
/**
 * The type of evaluation
 */
exports.ListDatasetDatapointsEvaluationsEvaluationType = {
    HumanReview: "human_review",
};
exports.ListDatasetDatapointsEvaluationsSource = {
    Orq: "orq",
    External: "external",
};
exports.ListDatasetDatapointsEvaluationsDatasetsType = {
    StringArray: "string_array",
};
/**
 * The type of evaluation
 */
exports.ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType = {
    HumanReview: "human_review",
};
exports.ListDatasetDatapointsEvaluationsDatasetsResponseSource = {
    Orq: "orq",
    External: "external",
};
exports.ListDatasetDatapointsEvaluationsType = {
    Number: "number",
};
/**
 * The type of evaluation
 */
exports.ListDatasetDatapointsEvaluationsDatasetsEvaluationType = {
    HumanReview: "human_review",
};
exports.ListDatasetDatapointsEvaluationsDatasetsSource = {
    Orq: "orq",
    External: "external",
};
exports.ListDatasetDatapointsEvaluationsDatasetsResponseType = {
    String: "string",
};
/** @internal */
exports.ListDatasetDatapointsRequest$inboundSchema = z.object({
    dataset_id: z.string(),
    limit: z.number().default(10),
    starting_after: z.string().optional(),
    ending_before: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "dataset_id": "datasetId",
        "starting_after": "startingAfter",
        "ending_before": "endingBefore",
    });
});
/** @internal */
exports.ListDatasetDatapointsRequest$outboundSchema = z.object({
    datasetId: z.string(),
    limit: z.number().default(10),
    startingAfter: z.string().optional(),
    endingBefore: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        datasetId: "dataset_id",
        startingAfter: "starting_after",
        endingBefore: "ending_before",
    });
});
function listDatasetDatapointsRequestToJSON(listDatasetDatapointsRequest) {
    return JSON.stringify(exports.ListDatasetDatapointsRequest$outboundSchema.parse(listDatasetDatapointsRequest));
}
function listDatasetDatapointsRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsRequest' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsObject$inboundSchema = z.nativeEnum(exports.ListDatasetDatapointsObject);
/** @internal */
exports.ListDatasetDatapointsObject$outboundSchema = exports.ListDatasetDatapointsObject$inboundSchema;
/** @internal */
exports.ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONRole$inboundSchema = z.nativeEnum(exports.ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONRole);
/** @internal */
exports.ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONRole$outboundSchema = exports.ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONRole$inboundSchema;
/** @internal */
exports.ListDatasetDatapointsMessagesDatasetsResponseContent$inboundSchema = z.union([z.string(), z.array(z.string())]);
/** @internal */
exports.ListDatasetDatapointsMessagesDatasetsResponseContent$outboundSchema = z.union([z.string(), z.array(z.string())]);
function listDatasetDatapointsMessagesDatasetsResponseContentToJSON(listDatasetDatapointsMessagesDatasetsResponseContent) {
    return JSON.stringify(exports.ListDatasetDatapointsMessagesDatasetsResponseContent$outboundSchema.parse(listDatasetDatapointsMessagesDatasetsResponseContent));
}
function listDatasetDatapointsMessagesDatasetsResponseContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsMessagesDatasetsResponseContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsMessagesDatasetsResponseContent' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsMessagesToolMessage$inboundSchema = z.object({
    role: exports.ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONRole$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.ListDatasetDatapointsMessagesToolMessage$outboundSchema = z.object({
    role: exports.ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONRole$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 listDatasetDatapointsMessagesToolMessageToJSON(listDatasetDatapointsMessagesToolMessage) {
    return JSON.stringify(exports.ListDatasetDatapointsMessagesToolMessage$outboundSchema.parse(listDatasetDatapointsMessagesToolMessage));
}
function listDatasetDatapointsMessagesToolMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsMessagesToolMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsMessagesToolMessage' from JSON`);
}
/** @internal */
exports.ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema = z.nativeEnum(exports.ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyType);
/** @internal */
exports.ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyType$outboundSchema = exports.ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema;
/** @internal */
exports.ListDatasetDatapoints2RefusalContentPart$inboundSchema = z.object({
    type: exports.ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema,
    refusal: z.string(),
});
/** @internal */
exports.ListDatasetDatapoints2RefusalContentPart$outboundSchema = z.object({
    type: exports.ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyType$outboundSchema,
    refusal: z.string(),
});
function listDatasetDatapoints2RefusalContentPartToJSON(listDatasetDatapoints2RefusalContentPart) {
    return JSON.stringify(exports.ListDatasetDatapoints2RefusalContentPart$outboundSchema.parse(listDatasetDatapoints2RefusalContentPart));
}
function listDatasetDatapoints2RefusalContentPartFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapoints2RefusalContentPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapoints2RefusalContentPart' from JSON`);
}
/** @internal */
exports.ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType$inboundSchema = z.nativeEnum(exports.ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType);
/** @internal */
exports.ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType$outboundSchema = exports.ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType$inboundSchema;
/** @internal */
exports.ListDatasetDatapointsAnnotationsDatasetsType$inboundSchema = z
    .nativeEnum(exports.ListDatasetDatapointsAnnotationsDatasetsType);
/** @internal */
exports.ListDatasetDatapointsAnnotationsDatasetsType$outboundSchema = exports.ListDatasetDatapointsAnnotationsDatasetsType$inboundSchema;
/** @internal */
exports.ListDatasetDatapointsAnnotationsFilePath$inboundSchema = z.object({
    file_id: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "file_id": "fileId",
    });
});
/** @internal */
exports.ListDatasetDatapointsAnnotationsFilePath$outboundSchema = z.object({
    fileId: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        fileId: "file_id",
    });
});
function listDatasetDatapointsAnnotationsFilePathToJSON(listDatasetDatapointsAnnotationsFilePath) {
    return JSON.stringify(exports.ListDatasetDatapointsAnnotationsFilePath$outboundSchema.parse(listDatasetDatapointsAnnotationsFilePath));
}
function listDatasetDatapointsAnnotationsFilePathFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsAnnotationsFilePath$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsAnnotationsFilePath' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsAnnotations2$inboundSchema = z.object({
    type: exports.ListDatasetDatapointsAnnotationsDatasetsType$inboundSchema,
    text: z.string(),
    file_path: z.lazy(() => exports.ListDatasetDatapointsAnnotationsFilePath$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.ListDatasetDatapointsAnnotations2$outboundSchema = z.object({
    type: exports.ListDatasetDatapointsAnnotationsDatasetsType$outboundSchema,
    text: z.string(),
    filePath: z.lazy(() => exports.ListDatasetDatapointsAnnotationsFilePath$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 listDatasetDatapointsAnnotations2ToJSON(listDatasetDatapointsAnnotations2) {
    return JSON.stringify(exports.ListDatasetDatapointsAnnotations2$outboundSchema.parse(listDatasetDatapointsAnnotations2));
}
function listDatasetDatapointsAnnotations2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsAnnotations2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsAnnotations2' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsAnnotationsType$inboundSchema = z.nativeEnum(exports.ListDatasetDatapointsAnnotationsType);
/** @internal */
exports.ListDatasetDatapointsAnnotationsType$outboundSchema = exports.ListDatasetDatapointsAnnotationsType$inboundSchema;
/** @internal */
exports.ListDatasetDatapointsAnnotationsFileCitation$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.ListDatasetDatapointsAnnotationsFileCitation$outboundSchema = z.object({
    fileId: z.string(),
    quote: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        fileId: "file_id",
    });
});
function listDatasetDatapointsAnnotationsFileCitationToJSON(listDatasetDatapointsAnnotationsFileCitation) {
    return JSON.stringify(exports.ListDatasetDatapointsAnnotationsFileCitation$outboundSchema.parse(listDatasetDatapointsAnnotationsFileCitation));
}
function listDatasetDatapointsAnnotationsFileCitationFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsAnnotationsFileCitation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsAnnotationsFileCitation' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsAnnotations1$inboundSchema = z.object({
    type: exports.ListDatasetDatapointsAnnotationsType$inboundSchema,
    text: z.string(),
    file_citation: z.lazy(() => exports.ListDatasetDatapointsAnnotationsFileCitation$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.ListDatasetDatapointsAnnotations1$outboundSchema = z.object({
    type: exports.ListDatasetDatapointsAnnotationsType$outboundSchema,
    text: z.string(),
    fileCitation: z.lazy(() => exports.ListDatasetDatapointsAnnotationsFileCitation$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 listDatasetDatapointsAnnotations1ToJSON(listDatasetDatapointsAnnotations1) {
    return JSON.stringify(exports.ListDatasetDatapointsAnnotations1$outboundSchema.parse(listDatasetDatapointsAnnotations1));
}
function listDatasetDatapointsAnnotations1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsAnnotations1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsAnnotations1' from JSON`);
}
/** @internal */
exports.ListDatasetDatapoints2Annotations$inboundSchema = z.union([
    z.lazy(() => exports.ListDatasetDatapointsAnnotations1$inboundSchema),
    z.lazy(() => exports.ListDatasetDatapointsAnnotations2$inboundSchema),
]);
/** @internal */
exports.ListDatasetDatapoints2Annotations$outboundSchema = z.union([
    z.lazy(() => exports.ListDatasetDatapointsAnnotations1$outboundSchema),
    z.lazy(() => exports.ListDatasetDatapointsAnnotations2$outboundSchema),
]);
function listDatasetDatapoints2AnnotationsToJSON(listDatasetDatapoints2Annotations) {
    return JSON.stringify(exports.ListDatasetDatapoints2Annotations$outboundSchema.parse(listDatasetDatapoints2Annotations));
}
function listDatasetDatapoints2AnnotationsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapoints2Annotations$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapoints2Annotations' from JSON`);
}
/** @internal */
exports.ListDatasetDatapoints2TextContentPart$inboundSchema = z.object({
    type: exports.ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType$inboundSchema,
    text: z.string(),
    annotations: z.array(z.union([
        z.lazy(() => exports.ListDatasetDatapointsAnnotations1$inboundSchema),
        z.lazy(() => exports.ListDatasetDatapointsAnnotations2$inboundSchema),
    ])).optional(),
});
/** @internal */
exports.ListDatasetDatapoints2TextContentPart$outboundSchema = z.object({
    type: exports.ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType$outboundSchema,
    text: z.string(),
    annotations: z.array(z.union([
        z.lazy(() => exports.ListDatasetDatapointsAnnotations1$outboundSchema),
        z.lazy(() => exports.ListDatasetDatapointsAnnotations2$outboundSchema),
    ])).optional(),
});
function listDatasetDatapoints2TextContentPartToJSON(listDatasetDatapoints2TextContentPart) {
    return JSON.stringify(exports.ListDatasetDatapoints2TextContentPart$outboundSchema.parse(listDatasetDatapoints2TextContentPart));
}
function listDatasetDatapoints2TextContentPartFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapoints2TextContentPart$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapoints2TextContentPart' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsContentDatasets2$inboundSchema = z.union([
    z.lazy(() => exports.ListDatasetDatapoints2TextContentPart$inboundSchema),
    z.lazy(() => exports.ListDatasetDatapoints2RefusalContentPart$inboundSchema),
]);
/** @internal */
exports.ListDatasetDatapointsContentDatasets2$outboundSchema = z.union([
    z.lazy(() => exports.ListDatasetDatapoints2TextContentPart$outboundSchema),
    z.lazy(() => exports.ListDatasetDatapoints2RefusalContentPart$outboundSchema),
]);
function listDatasetDatapointsContentDatasets2ToJSON(listDatasetDatapointsContentDatasets2) {
    return JSON.stringify(exports.ListDatasetDatapointsContentDatasets2$outboundSchema.parse(listDatasetDatapointsContentDatasets2));
}
function listDatasetDatapointsContentDatasets2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsContentDatasets2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsContentDatasets2' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsMessagesDatasetsContent$inboundSchema = z.union([
    z.string(),
    z.array(z.union([
        z.lazy(() => exports.ListDatasetDatapoints2TextContentPart$inboundSchema),
        z.lazy(() => exports.ListDatasetDatapoints2RefusalContentPart$inboundSchema),
    ])),
]);
/** @internal */
exports.ListDatasetDatapointsMessagesDatasetsContent$outboundSchema = z.union([
    z.string(),
    z.array(z.union([
        z.lazy(() => exports.ListDatasetDatapoints2TextContentPart$outboundSchema),
        z.lazy(() => exports.ListDatasetDatapoints2RefusalContentPart$outboundSchema),
    ])),
]);
function listDatasetDatapointsMessagesDatasetsContentToJSON(listDatasetDatapointsMessagesDatasetsContent) {
    return JSON.stringify(exports.ListDatasetDatapointsMessagesDatasetsContent$outboundSchema.parse(listDatasetDatapointsMessagesDatasetsContent));
}
function listDatasetDatapointsMessagesDatasetsContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsMessagesDatasetsContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsMessagesDatasetsContent' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsMessagesDatasetsResponse200Role$inboundSchema = z.nativeEnum(exports.ListDatasetDatapointsMessagesDatasetsResponse200Role);
/** @internal */
exports.ListDatasetDatapointsMessagesDatasetsResponse200Role$outboundSchema = exports.ListDatasetDatapointsMessagesDatasetsResponse200Role$inboundSchema;
/** @internal */
exports.ListDatasetDatapointsMessagesAudio$inboundSchema = z.object({
    id: z.string(),
});
/** @internal */
exports.ListDatasetDatapointsMessagesAudio$outboundSchema = z.object({
    id: z.string(),
});
function listDatasetDatapointsMessagesAudioToJSON(listDatasetDatapointsMessagesAudio) {
    return JSON.stringify(exports.ListDatasetDatapointsMessagesAudio$outboundSchema.parse(listDatasetDatapointsMessagesAudio));
}
function listDatasetDatapointsMessagesAudioFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsMessagesAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsMessagesAudio' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsMessagesType$inboundSchema = z.nativeEnum(exports.ListDatasetDatapointsMessagesType);
/** @internal */
exports.ListDatasetDatapointsMessagesType$outboundSchema = exports.ListDatasetDatapointsMessagesType$inboundSchema;
/** @internal */
exports.ListDatasetDatapointsMessagesFunction$inboundSchema = z.object({
    name: z.string().optional(),
    arguments: z.string().optional(),
});
/** @internal */
exports.ListDatasetDatapointsMessagesFunction$outboundSchema = z.object({
    name: z.string().optional(),
    arguments: z.string().optional(),
});
function listDatasetDatapointsMessagesFunctionToJSON(listDatasetDatapointsMessagesFunction) {
    return JSON.stringify(exports.ListDatasetDatapointsMessagesFunction$outboundSchema.parse(listDatasetDatapointsMessagesFunction));
}
function listDatasetDatapointsMessagesFunctionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsMessagesFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsMessagesFunction' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsMessagesToolCalls$inboundSchema = z.object({
    id: z.string(),
    type: exports.ListDatasetDatapointsMessagesType$inboundSchema,
    function: z.lazy(() => exports.ListDatasetDatapointsMessagesFunction$inboundSchema),
});
/** @internal */
exports.ListDatasetDatapointsMessagesToolCalls$outboundSchema = z.object({
    id: z.string(),
    type: exports.ListDatasetDatapointsMessagesType$outboundSchema,
    function: z.lazy(() => exports.ListDatasetDatapointsMessagesFunction$outboundSchema),
});
function listDatasetDatapointsMessagesToolCallsToJSON(listDatasetDatapointsMessagesToolCalls) {
    return JSON.stringify(exports.ListDatasetDatapointsMessagesToolCalls$outboundSchema.parse(listDatasetDatapointsMessagesToolCalls));
}
function listDatasetDatapointsMessagesToolCallsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsMessagesToolCalls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsMessagesToolCalls' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsMessagesAssistantMessage$inboundSchema = z.object({
    content: z.nullable(z.union([
        z.string(),
        z.array(z.union([
            z.lazy(() => exports.ListDatasetDatapoints2TextContentPart$inboundSchema),
            z.lazy(() => exports.ListDatasetDatapoints2RefusalContentPart$inboundSchema),
        ])),
    ])).optional(),
    refusal: z.nullable(z.string()).optional(),
    role: exports.ListDatasetDatapointsMessagesDatasetsResponse200Role$inboundSchema,
    name: z.string().optional(),
    audio: z.nullable(z.lazy(() => exports.ListDatasetDatapointsMessagesAudio$inboundSchema)).optional(),
    tool_calls: z.array(z.lazy(() => exports.ListDatasetDatapointsMessagesToolCalls$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.ListDatasetDatapointsMessagesAssistantMessage$outboundSchema = z.object({
    content: z.nullable(z.union([
        z.string(),
        z.array(z.union([
            z.lazy(() => exports.ListDatasetDatapoints2TextContentPart$outboundSchema),
            z.lazy(() => exports.ListDatasetDatapoints2RefusalContentPart$outboundSchema),
        ])),
    ])).optional(),
    refusal: z.nullable(z.string()).optional(),
    role: exports.ListDatasetDatapointsMessagesDatasetsResponse200Role$outboundSchema,
    name: z.string().optional(),
    audio: z.nullable(z.lazy(() => exports.ListDatasetDatapointsMessagesAudio$outboundSchema)).optional(),
    toolCalls: z.array(z.lazy(() => exports.ListDatasetDatapointsMessagesToolCalls$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 listDatasetDatapointsMessagesAssistantMessageToJSON(listDatasetDatapointsMessagesAssistantMessage) {
    return JSON.stringify(exports.ListDatasetDatapointsMessagesAssistantMessage$outboundSchema.parse(listDatasetDatapointsMessagesAssistantMessage));
}
function listDatasetDatapointsMessagesAssistantMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsMessagesAssistantMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsMessagesAssistantMessage' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsMessagesDatasetsResponseRole$inboundSchema = z
    .nativeEnum(exports.ListDatasetDatapointsMessagesDatasetsResponseRole);
/** @internal */
exports.ListDatasetDatapointsMessagesDatasetsResponseRole$outboundSchema = exports.ListDatasetDatapointsMessagesDatasetsResponseRole$inboundSchema;
/** @internal */
exports.ListDatasetDatapoints2DatasetsResponse200Type$inboundSchema = z
    .nativeEnum(exports.ListDatasetDatapoints2DatasetsResponse200Type);
/** @internal */
exports.ListDatasetDatapoints2DatasetsResponse200Type$outboundSchema = exports.ListDatasetDatapoints2DatasetsResponse200Type$inboundSchema;
/** @internal */
exports.ListDatasetDatapoints2File$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.ListDatasetDatapoints2File$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 listDatasetDatapoints2FileToJSON(listDatasetDatapoints2File) {
    return JSON.stringify(exports.ListDatasetDatapoints2File$outboundSchema.parse(listDatasetDatapoints2File));
}
function listDatasetDatapoints2FileFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapoints2File$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapoints2File' from JSON`);
}
/** @internal */
exports.ListDatasetDatapoints24$inboundSchema = z.object({
    type: exports.ListDatasetDatapoints2DatasetsResponse200Type$inboundSchema,
    file: z.lazy(() => exports.ListDatasetDatapoints2File$inboundSchema),
});
/** @internal */
exports.ListDatasetDatapoints24$outboundSchema = z.object({
    type: exports.ListDatasetDatapoints2DatasetsResponse200Type$outboundSchema,
    file: z.lazy(() => exports.ListDatasetDatapoints2File$outboundSchema),
});
function listDatasetDatapoints24ToJSON(listDatasetDatapoints24) {
    return JSON.stringify(exports.ListDatasetDatapoints24$outboundSchema.parse(listDatasetDatapoints24));
}
function listDatasetDatapoints24FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapoints24$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapoints24' from JSON`);
}
/** @internal */
exports.ListDatasetDatapoints2DatasetsResponseType$inboundSchema = z
    .nativeEnum(exports.ListDatasetDatapoints2DatasetsResponseType);
/** @internal */
exports.ListDatasetDatapoints2DatasetsResponseType$outboundSchema = exports.ListDatasetDatapoints2DatasetsResponseType$inboundSchema;
/** @internal */
exports.ListDatasetDatapoints2Format$inboundSchema = z.nativeEnum(exports.ListDatasetDatapoints2Format);
/** @internal */
exports.ListDatasetDatapoints2Format$outboundSchema = exports.ListDatasetDatapoints2Format$inboundSchema;
/** @internal */
exports.ListDatasetDatapoints2InputAudio$inboundSchema = z.object({
    data: z.string(),
    format: exports.ListDatasetDatapoints2Format$inboundSchema,
});
/** @internal */
exports.ListDatasetDatapoints2InputAudio$outboundSchema = z.object({
    data: z.string(),
    format: exports.ListDatasetDatapoints2Format$outboundSchema,
});
function listDatasetDatapoints2InputAudioToJSON(listDatasetDatapoints2InputAudio) {
    return JSON.stringify(exports.ListDatasetDatapoints2InputAudio$outboundSchema.parse(listDatasetDatapoints2InputAudio));
}
function listDatasetDatapoints2InputAudioFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapoints2InputAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapoints2InputAudio' from JSON`);
}
/** @internal */
exports.ListDatasetDatapoints23$inboundSchema = z.object({
    type: exports.ListDatasetDatapoints2DatasetsResponseType$inboundSchema,
    input_audio: z.lazy(() => exports.ListDatasetDatapoints2InputAudio$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "input_audio": "inputAudio",
    });
});
/** @internal */
exports.ListDatasetDatapoints23$outboundSchema = z.object({
    type: exports.ListDatasetDatapoints2DatasetsResponseType$outboundSchema,
    inputAudio: z.lazy(() => exports.ListDatasetDatapoints2InputAudio$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        inputAudio: "input_audio",
    });
});
function listDatasetDatapoints23ToJSON(listDatasetDatapoints23) {
    return JSON.stringify(exports.ListDatasetDatapoints23$outboundSchema.parse(listDatasetDatapoints23));
}
function listDatasetDatapoints23FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapoints23$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapoints23' from JSON`);
}
/** @internal */
exports.ListDatasetDatapoints2DatasetsType$inboundSchema = z.nativeEnum(exports.ListDatasetDatapoints2DatasetsType);
/** @internal */
exports.ListDatasetDatapoints2DatasetsType$outboundSchema = exports.ListDatasetDatapoints2DatasetsType$inboundSchema;
/** @internal */
exports.ListDatasetDatapoints2Detail$inboundSchema = z.nativeEnum(exports.ListDatasetDatapoints2Detail);
/** @internal */
exports.ListDatasetDatapoints2Detail$outboundSchema = exports.ListDatasetDatapoints2Detail$inboundSchema;
/** @internal */
exports.ListDatasetDatapoints2ImageUrl$inboundSchema = z.object({
    url: z.string(),
    detail: exports.ListDatasetDatapoints2Detail$inboundSchema.optional(),
});
/** @internal */
exports.ListDatasetDatapoints2ImageUrl$outboundSchema = z.object({
    url: z.string(),
    detail: exports.ListDatasetDatapoints2Detail$outboundSchema.optional(),
});
function listDatasetDatapoints2ImageUrlToJSON(listDatasetDatapoints2ImageUrl) {
    return JSON.stringify(exports.ListDatasetDatapoints2ImageUrl$outboundSchema.parse(listDatasetDatapoints2ImageUrl));
}
function listDatasetDatapoints2ImageUrlFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapoints2ImageUrl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapoints2ImageUrl' from JSON`);
}
/** @internal */
exports.ListDatasetDatapoints22$inboundSchema = z.object({
    type: exports.ListDatasetDatapoints2DatasetsType$inboundSchema,
    image_url: z.lazy(() => exports.ListDatasetDatapoints2ImageUrl$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "image_url": "imageUrl",
    });
});
/** @internal */
exports.ListDatasetDatapoints22$outboundSchema = z.object({
    type: exports.ListDatasetDatapoints2DatasetsType$outboundSchema,
    imageUrl: z.lazy(() => exports.ListDatasetDatapoints2ImageUrl$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        imageUrl: "image_url",
    });
});
function listDatasetDatapoints22ToJSON(listDatasetDatapoints22) {
    return JSON.stringify(exports.ListDatasetDatapoints22$outboundSchema.parse(listDatasetDatapoints22));
}
function listDatasetDatapoints22FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapoints22$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapoints22' from JSON`);
}
/** @internal */
exports.ListDatasetDatapoints2Type$inboundSchema = z.nativeEnum(exports.ListDatasetDatapoints2Type);
/** @internal */
exports.ListDatasetDatapoints2Type$outboundSchema = exports.ListDatasetDatapoints2Type$inboundSchema;
/** @internal */
exports.ListDatasetDatapoints21$inboundSchema = z.object({
    type: exports.ListDatasetDatapoints2Type$inboundSchema,
    text: z.string(),
});
/** @internal */
exports.ListDatasetDatapoints21$outboundSchema = z.object({
    type: exports.ListDatasetDatapoints2Type$outboundSchema,
    text: z.string(),
});
function listDatasetDatapoints21ToJSON(listDatasetDatapoints21) {
    return JSON.stringify(exports.ListDatasetDatapoints21$outboundSchema.parse(listDatasetDatapoints21));
}
function listDatasetDatapoints21FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapoints21$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapoints21' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsContent2$inboundSchema = z.union([
    z.lazy(() => exports.ListDatasetDatapoints21$inboundSchema),
    z.lazy(() => exports.ListDatasetDatapoints22$inboundSchema),
    z.lazy(() => exports.ListDatasetDatapoints23$inboundSchema),
    z.lazy(() => exports.ListDatasetDatapoints24$inboundSchema),
]);
/** @internal */
exports.ListDatasetDatapointsContent2$outboundSchema = z.union([
    z.lazy(() => exports.ListDatasetDatapoints21$outboundSchema),
    z.lazy(() => exports.ListDatasetDatapoints22$outboundSchema),
    z.lazy(() => exports.ListDatasetDatapoints23$outboundSchema),
    z.lazy(() => exports.ListDatasetDatapoints24$outboundSchema),
]);
function listDatasetDatapointsContent2ToJSON(listDatasetDatapointsContent2) {
    return JSON.stringify(exports.ListDatasetDatapointsContent2$outboundSchema.parse(listDatasetDatapointsContent2));
}
function listDatasetDatapointsContent2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsContent2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsContent2' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsMessagesContent$inboundSchema = z.union([
    z.string(),
    z.array(z.union([
        z.lazy(() => exports.ListDatasetDatapoints21$inboundSchema),
        z.lazy(() => exports.ListDatasetDatapoints22$inboundSchema),
        z.lazy(() => exports.ListDatasetDatapoints23$inboundSchema),
        z.lazy(() => exports.ListDatasetDatapoints24$inboundSchema),
    ])),
]);
/** @internal */
exports.ListDatasetDatapointsMessagesContent$outboundSchema = z.union([
    z.string(),
    z.array(z.union([
        z.lazy(() => exports.ListDatasetDatapoints21$outboundSchema),
        z.lazy(() => exports.ListDatasetDatapoints22$outboundSchema),
        z.lazy(() => exports.ListDatasetDatapoints23$outboundSchema),
        z.lazy(() => exports.ListDatasetDatapoints24$outboundSchema),
    ])),
]);
function listDatasetDatapointsMessagesContentToJSON(listDatasetDatapointsMessagesContent) {
    return JSON.stringify(exports.ListDatasetDatapointsMessagesContent$outboundSchema.parse(listDatasetDatapointsMessagesContent));
}
function listDatasetDatapointsMessagesContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsMessagesContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsMessagesContent' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsMessagesUserMessage$inboundSchema = z.object({
    role: exports.ListDatasetDatapointsMessagesDatasetsResponseRole$inboundSchema,
    name: z.string().optional(),
    content: z.union([
        z.string(),
        z.array(z.union([
            z.lazy(() => exports.ListDatasetDatapoints21$inboundSchema),
            z.lazy(() => exports.ListDatasetDatapoints22$inboundSchema),
            z.lazy(() => exports.ListDatasetDatapoints23$inboundSchema),
            z.lazy(() => exports.ListDatasetDatapoints24$inboundSchema),
        ])),
    ]),
});
/** @internal */
exports.ListDatasetDatapointsMessagesUserMessage$outboundSchema = z.object({
    role: exports.ListDatasetDatapointsMessagesDatasetsResponseRole$outboundSchema,
    name: z.string().optional(),
    content: z.union([
        z.string(),
        z.array(z.union([
            z.lazy(() => exports.ListDatasetDatapoints21$outboundSchema),
            z.lazy(() => exports.ListDatasetDatapoints22$outboundSchema),
            z.lazy(() => exports.ListDatasetDatapoints23$outboundSchema),
            z.lazy(() => exports.ListDatasetDatapoints24$outboundSchema),
        ])),
    ]),
});
function listDatasetDatapointsMessagesUserMessageToJSON(listDatasetDatapointsMessagesUserMessage) {
    return JSON.stringify(exports.ListDatasetDatapointsMessagesUserMessage$outboundSchema.parse(listDatasetDatapointsMessagesUserMessage));
}
function listDatasetDatapointsMessagesUserMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsMessagesUserMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsMessagesUserMessage' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsMessagesDatasetsRole$inboundSchema = z
    .nativeEnum(exports.ListDatasetDatapointsMessagesDatasetsRole);
/** @internal */
exports.ListDatasetDatapointsMessagesDatasetsRole$outboundSchema = exports.ListDatasetDatapointsMessagesDatasetsRole$inboundSchema;
/** @internal */
exports.ListDatasetDatapointsMessagesSystemMessage$inboundSchema = z.object({
    role: exports.ListDatasetDatapointsMessagesDatasetsRole$inboundSchema,
    content: z.string(),
    name: z.string().optional(),
});
/** @internal */
exports.ListDatasetDatapointsMessagesSystemMessage$outboundSchema = z.object({
    role: exports.ListDatasetDatapointsMessagesDatasetsRole$outboundSchema,
    content: z.string(),
    name: z.string().optional(),
});
function listDatasetDatapointsMessagesSystemMessageToJSON(listDatasetDatapointsMessagesSystemMessage) {
    return JSON.stringify(exports.ListDatasetDatapointsMessagesSystemMessage$outboundSchema.parse(listDatasetDatapointsMessagesSystemMessage));
}
function listDatasetDatapointsMessagesSystemMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsMessagesSystemMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsMessagesSystemMessage' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsMessagesRole$inboundSchema = z.nativeEnum(exports.ListDatasetDatapointsMessagesRole);
/** @internal */
exports.ListDatasetDatapointsMessagesRole$outboundSchema = exports.ListDatasetDatapointsMessagesRole$inboundSchema;
/** @internal */
exports.ListDatasetDatapointsMessagesDeveloperMessage$inboundSchema = z.object({
    role: exports.ListDatasetDatapointsMessagesRole$inboundSchema,
    content: z.string(),
    name: z.string().optional(),
});
/** @internal */
exports.ListDatasetDatapointsMessagesDeveloperMessage$outboundSchema = z.object({
    role: exports.ListDatasetDatapointsMessagesRole$outboundSchema,
    content: z.string(),
    name: z.string().optional(),
});
function listDatasetDatapointsMessagesDeveloperMessageToJSON(listDatasetDatapointsMessagesDeveloperMessage) {
    return JSON.stringify(exports.ListDatasetDatapointsMessagesDeveloperMessage$outboundSchema.parse(listDatasetDatapointsMessagesDeveloperMessage));
}
function listDatasetDatapointsMessagesDeveloperMessageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsMessagesDeveloperMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsMessagesDeveloperMessage' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsMessages$inboundSchema = z.union([
    z.lazy(() => exports.ListDatasetDatapointsMessagesToolMessage$inboundSchema),
    z.lazy(() => exports.ListDatasetDatapointsMessagesDeveloperMessage$inboundSchema),
    z.lazy(() => exports.ListDatasetDatapointsMessagesSystemMessage$inboundSchema),
    z.lazy(() => exports.ListDatasetDatapointsMessagesUserMessage$inboundSchema),
    z.lazy(() => exports.ListDatasetDatapointsMessagesAssistantMessage$inboundSchema),
]);
/** @internal */
exports.ListDatasetDatapointsMessages$outboundSchema = z.union([
    z.lazy(() => exports.ListDatasetDatapointsMessagesToolMessage$outboundSchema),
    z.lazy(() => exports.ListDatasetDatapointsMessagesDeveloperMessage$outboundSchema),
    z.lazy(() => exports.ListDatasetDatapointsMessagesSystemMessage$outboundSchema),
    z.lazy(() => exports.ListDatasetDatapointsMessagesUserMessage$outboundSchema),
    z.lazy(() => exports.ListDatasetDatapointsMessagesAssistantMessage$outboundSchema),
]);
function listDatasetDatapointsMessagesToJSON(listDatasetDatapointsMessages) {
    return JSON.stringify(exports.ListDatasetDatapointsMessages$outboundSchema.parse(listDatasetDatapointsMessages));
}
function listDatasetDatapointsMessagesFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsMessages' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsEvaluationsEvaluationType$inboundSchema = z
    .nativeEnum(exports.ListDatasetDatapointsEvaluationsEvaluationType);
/** @internal */
exports.ListDatasetDatapointsEvaluationsEvaluationType$outboundSchema = exports.ListDatasetDatapointsEvaluationsEvaluationType$inboundSchema;
/** @internal */
exports.ListDatasetDatapointsEvaluationsSource$inboundSchema = z.nativeEnum(exports.ListDatasetDatapointsEvaluationsSource);
/** @internal */
exports.ListDatasetDatapointsEvaluationsSource$outboundSchema = exports.ListDatasetDatapointsEvaluationsSource$inboundSchema;
/** @internal */
exports.ListDatasetDatapointsEvaluationsDatasetsType$inboundSchema = z
    .nativeEnum(exports.ListDatasetDatapointsEvaluationsDatasetsType);
/** @internal */
exports.ListDatasetDatapointsEvaluationsDatasetsType$outboundSchema = exports.ListDatasetDatapointsEvaluationsDatasetsType$inboundSchema;
/** @internal */
exports.ListDatasetDatapointsEvaluations3$inboundSchema = z.object({
    id: z.string(),
    evaluation_type: exports.ListDatasetDatapointsEvaluationsEvaluationType$inboundSchema,
    human_review_id: z.string(),
    source: exports.ListDatasetDatapointsEvaluationsSource$inboundSchema.default("orq"),
    reviewed_by_id: z.string(),
    reviewed_at: z.string().datetime({ offset: true }).default("2025-11-25T16:24:36.050Z").transform(v => new Date(v)),
    type: exports.ListDatasetDatapointsEvaluationsDatasetsType$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.ListDatasetDatapointsEvaluations3$outboundSchema = z.object({
    id: z.string(),
    evaluationType: exports.ListDatasetDatapointsEvaluationsEvaluationType$outboundSchema,
    humanReviewId: z.string(),
    source: exports.ListDatasetDatapointsEvaluationsSource$outboundSchema.default("orq"),
    reviewedById: z.string(),
    reviewedAt: z.date().default(() => new Date("2025-11-25T16:24:36.050Z"))
        .transform(v => v.toISOString()),
    type: exports.ListDatasetDatapointsEvaluationsDatasetsType$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 listDatasetDatapointsEvaluations3ToJSON(listDatasetDatapointsEvaluations3) {
    return JSON.stringify(exports.ListDatasetDatapointsEvaluations3$outboundSchema.parse(listDatasetDatapointsEvaluations3));
}
function listDatasetDatapointsEvaluations3FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsEvaluations3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsEvaluations3' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType$inboundSchema = z.nativeEnum(exports.ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType);
/** @internal */
exports.ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType$outboundSchema = exports.ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType$inboundSchema;
/** @internal */
exports.ListDatasetDatapointsEvaluationsDatasetsResponseSource$inboundSchema = z.nativeEnum(exports.ListDatasetDatapointsEvaluationsDatasetsResponseSource);
/** @internal */
exports.ListDatasetDatapointsEvaluationsDatasetsResponseSource$outboundSchema = exports.ListDatasetDatapointsEvaluationsDatasetsResponseSource$inboundSchema;
/** @internal */
exports.ListDatasetDatapointsEvaluationsType$inboundSchema = z.nativeEnum(exports.ListDatasetDatapointsEvaluationsType);
/** @internal */
exports.ListDatasetDatapointsEvaluationsType$outboundSchema = exports.ListDatasetDatapointsEvaluationsType$inboundSchema;
/** @internal */
exports.ListDatasetDatapointsEvaluations2$inboundSchema = z.object({
    id: z.string(),
    evaluation_type: exports.ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType$inboundSchema,
    human_review_id: z.string(),
    source: exports.ListDatasetDatapointsEvaluationsDatasetsResponseSource$inboundSchema
        .default("orq"),
    reviewed_by_id: z.string(),
    reviewed_at: z.string().datetime({ offset: true }).default("2025-11-25T16:24:36.049Z").transform(v => new Date(v)),
    type: exports.ListDatasetDatapointsEvaluationsType$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.ListDatasetDatapointsEvaluations2$outboundSchema = z.object({
    id: z.string(),
    evaluationType: exports.ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType$outboundSchema,
    humanReviewId: z.string(),
    source: exports.ListDatasetDatapointsEvaluationsDatasetsResponseSource$outboundSchema
        .default("orq"),
    reviewedById: z.string(),
    reviewedAt: z.date().default(() => new Date("2025-11-25T16:24:36.049Z"))
        .transform(v => v.toISOString()),
    type: exports.ListDatasetDatapointsEvaluationsType$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 listDatasetDatapointsEvaluations2ToJSON(listDatasetDatapointsEvaluations2) {
    return JSON.stringify(exports.ListDatasetDatapointsEvaluations2$outboundSchema.parse(listDatasetDatapointsEvaluations2));
}
function listDatasetDatapointsEvaluations2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsEvaluations2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsEvaluations2' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsEvaluationsDatasetsEvaluationType$inboundSchema = z.nativeEnum(exports.ListDatasetDatapointsEvaluationsDatasetsEvaluationType);
/** @internal */
exports.ListDatasetDatapointsEvaluationsDatasetsEvaluationType$outboundSchema = exports.ListDatasetDatapointsEvaluationsDatasetsEvaluationType$inboundSchema;
/** @internal */
exports.ListDatasetDatapointsEvaluationsDatasetsSource$inboundSchema = z
    .nativeEnum(exports.ListDatasetDatapointsEvaluationsDatasetsSource);
/** @internal */
exports.ListDatasetDatapointsEvaluationsDatasetsSource$outboundSchema = exports.ListDatasetDatapointsEvaluationsDatasetsSource$inboundSchema;
/** @internal */
exports.ListDatasetDatapointsEvaluationsDatasetsResponseType$inboundSchema = z.nativeEnum(exports.ListDatasetDatapointsEvaluationsDatasetsResponseType);
/** @internal */
exports.ListDatasetDatapointsEvaluationsDatasetsResponseType$outboundSchema = exports.ListDatasetDatapointsEvaluationsDatasetsResponseType$inboundSchema;
/** @internal */
exports.ListDatasetDatapointsEvaluations1$inboundSchema = z.object({
    id: z.string(),
    evaluation_type: exports.ListDatasetDatapointsEvaluationsDatasetsEvaluationType$inboundSchema,
    human_review_id: z.string(),
    source: exports.ListDatasetDatapointsEvaluationsDatasetsSource$inboundSchema.default("orq"),
    reviewed_by_id: z.string(),
    reviewed_at: z.string().datetime({ offset: true }).default("2025-11-25T16:24:36.049Z").transform(v => new Date(v)),
    type: exports.ListDatasetDatapointsEvaluationsDatasetsResponseType$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.ListDatasetDatapointsEvaluations1$outboundSchema = z.object({
    id: z.string(),
    evaluationType: exports.ListDatasetDatapointsEvaluationsDatasetsEvaluationType$outboundSchema,
    humanReviewId: z.string(),
    source: exports.ListDatasetDatapointsEvaluationsDatasetsSource$outboundSchema.default("orq"),
    reviewedById: z.string(),
    reviewedAt: z.date().default(() => new Date("2025-11-25T16:24:36.049Z"))
        .transform(v => v.toISOString()),
    type: exports.ListDatasetDatapointsEvaluationsDatasetsResponseType$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 listDatasetDatapointsEvaluations1ToJSON(listDatasetDatapointsEvaluations1) {
    return JSON.stringify(exports.ListDatasetDatapointsEvaluations1$outboundSchema.parse(listDatasetDatapointsEvaluations1));
}
function listDatasetDatapointsEvaluations1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsEvaluations1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsEvaluations1' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsEvaluations$inboundSchema = z.union([
    z.lazy(() => exports.ListDatasetDatapointsEvaluations1$inboundSchema),
    z.lazy(() => exports.ListDatasetDatapointsEvaluations2$inboundSchema),
    z.lazy(() => exports.ListDatasetDatapointsEvaluations3$inboundSchema),
]);
/** @internal */
exports.ListDatasetDatapointsEvaluations$outboundSchema = z.union([
    z.lazy(() => exports.ListDatasetDatapointsEvaluations1$outboundSchema),
    z.lazy(() => exports.ListDatasetDatapointsEvaluations2$outboundSchema),
    z.lazy(() => exports.ListDatasetDatapointsEvaluations3$outboundSchema),
]);
function listDatasetDatapointsEvaluationsToJSON(listDatasetDatapointsEvaluations) {
    return JSON.stringify(exports.ListDatasetDatapointsEvaluations$outboundSchema.parse(listDatasetDatapointsEvaluations));
}
function listDatasetDatapointsEvaluationsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsEvaluations$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsEvaluations' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsData$inboundSchema = z.object({
    _id: z.string(),
    workspace_id: z.string(),
    inputs: z.record(z.any()).optional(),
    messages: z.array(z.union([
        z.lazy(() => exports.ListDatasetDatapointsMessagesToolMessage$inboundSchema),
        z.lazy(() => exports.ListDatasetDatapointsMessagesDeveloperMessage$inboundSchema),
        z.lazy(() => exports.ListDatasetDatapointsMessagesSystemMessage$inboundSchema),
        z.lazy(() => exports.ListDatasetDatapointsMessagesUserMessage$inboundSchema),
        z.lazy(() => exports.ListDatasetDatapointsMessagesAssistantMessage$inboundSchema),
    ])).optional(),
    expected_output: z.string().optional(),
    evaluations: z.array(z.union([
        z.lazy(() => exports.ListDatasetDatapointsEvaluations1$inboundSchema),
        z.lazy(() => exports.ListDatasetDatapointsEvaluations2$inboundSchema),
        z.lazy(() => exports.ListDatasetDatapointsEvaluations3$inboundSchema),
    ])).optional(),
    dataset_id: z.string(),
    snapshot_version: z.string().optional(),
    created_by_id: z.string().optional(),
    updated_by_id: z.string().optional(),
    created: z.string().datetime({ offset: true }).transform(v => new Date(v))
        .optional(),
    updated: z.string().datetime({ offset: true }).default("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.ListDatasetDatapointsData$outboundSchema = z.object({
    id: z.string(),
    workspaceId: z.string(),
    inputs: z.record(z.any()).optional(),
    messages: z.array(z.union([
        z.lazy(() => exports.ListDatasetDatapointsMessagesToolMessage$outboundSchema),
        z.lazy(() => exports.ListDatasetDatapointsMessagesDeveloperMessage$outboundSchema),
        z.lazy(() => exports.ListDatasetDatapointsMessagesSystemMessage$outboundSchema),
        z.lazy(() => exports.ListDatasetDatapointsMessagesUserMessage$outboundSchema),
        z.lazy(() => exports.ListDatasetDatapointsMessagesAssistantMessage$outboundSchema),
    ])).optional(),
    expectedOutput: z.string().optional(),
    evaluations: z.array(z.union([
        z.lazy(() => exports.ListDatasetDatapointsEvaluations1$outboundSchema),
        z.lazy(() => exports.ListDatasetDatapointsEvaluations2$outboundSchema),
        z.lazy(() => exports.ListDatasetDatapointsEvaluations3$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 listDatasetDatapointsDataToJSON(listDatasetDatapointsData) {
    return JSON.stringify(exports.ListDatasetDatapointsData$outboundSchema.parse(listDatasetDatapointsData));
}
function listDatasetDatapointsDataFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsData' from JSON`);
}
/** @internal */
exports.ListDatasetDatapointsResponseBody$inboundSchema = z.object({
    object: exports.ListDatasetDatapointsObject$inboundSchema,
    data: z.array(z.lazy(() => exports.ListDatasetDatapointsData$inboundSchema)),
    has_more: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "has_more": "hasMore",
    });
});
/** @internal */
exports.ListDatasetDatapointsResponseBody$outboundSchema = z.object({
    object: exports.ListDatasetDatapointsObject$outboundSchema,
    data: z.array(z.lazy(() => exports.ListDatasetDatapointsData$outboundSchema)),
    hasMore: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        hasMore: "has_more",
    });
});
function listDatasetDatapointsResponseBodyToJSON(listDatasetDatapointsResponseBody) {
    return JSON.stringify(exports.ListDatasetDatapointsResponseBody$outboundSchema.parse(listDatasetDatapointsResponseBody));
}
function listDatasetDatapointsResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListDatasetDatapointsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListDatasetDatapointsResponseBody' from JSON`);
}
//# sourceMappingURL=listdatasetdatapoints.js.map