@orq-ai/node 3.11.7 → 3.11.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mcp-server.js +104 -104
- package/bin/mcp-server.js.map +26 -26
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +16 -16
- package/package.json +1 -1
- package/packages/orq-rc/README.md +128 -87
- package/packages/orq-rc/docs/sdks/batches/README.md +307 -0
- package/packages/orq-rc/docs/sdks/proxy/README.md +1212 -0
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/batchesCancel.ts +166 -0
- package/packages/orq-rc/src/funcs/batchesCreate.ts +160 -0
- package/packages/orq-rc/src/funcs/batchesList.ts +165 -0
- package/packages/orq-rc/src/funcs/batchesRetrieve.ts +166 -0
- package/packages/orq-rc/src/funcs/proxyAudioSpeech.ts +159 -0
- package/packages/orq-rc/src/funcs/proxyAudioTranscriptions.ts +233 -0
- package/packages/orq-rc/src/funcs/proxyAudioTranslations.ts +223 -0
- package/packages/orq-rc/src/funcs/proxyChatCompletions.ts +172 -0
- package/packages/orq-rc/src/funcs/proxyCompletions.ts +168 -0
- package/packages/orq-rc/src/funcs/proxyEmbeddings.ts +161 -0
- package/packages/orq-rc/src/funcs/proxyImagesEdit.ts +173 -0
- package/packages/orq-rc/src/funcs/proxyImagesGenerate.ts +163 -0
- package/packages/orq-rc/src/funcs/proxyImagesVariation.ts +179 -0
- package/packages/orq-rc/src/funcs/proxyModerations.ts +164 -0
- package/packages/orq-rc/src/funcs/proxyRerank.ts +158 -0
- package/packages/orq-rc/src/funcs/proxyResponsesCreate.ts +171 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +33 -1
- package/packages/orq-rc/src/mcp-server/tools/batchesCancel.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/batchesCreate.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/batchesList.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/batchesRetrieve.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyAudioSpeech.ts +33 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyAudioTranscriptions.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyAudioTranslations.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyChatCompletions.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyCompletions.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyEmbeddings.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyImagesEdit.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyImagesGenerate.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyImagesVariation.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyModerations.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyRerank.ts +36 -0
- package/packages/orq-rc/src/mcp-server/tools/proxyResponsesCreate.ts +37 -0
- package/packages/orq-rc/src/models/components/deployments.ts +861 -0
- package/packages/orq-rc/src/models/components/index.ts +1 -0
- package/packages/orq-rc/src/models/components/publiccontact.ts +114 -0
- package/packages/orq-rc/src/models/errors/index.ts +3 -0
- package/packages/orq-rc/src/models/errors/postv2proxyaudiotranscriptions.ts +163 -0
- package/packages/orq-rc/src/models/errors/postv2proxyaudiotranslations.ts +162 -0
- package/packages/orq-rc/src/models/errors/postv2proxymoderations.ts +151 -0
- package/packages/orq-rc/src/models/operations/cancelbatch.ts +474 -0
- package/packages/orq-rc/src/models/operations/createbatch.ts +531 -0
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +11697 -0
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2205 -1224
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/createresponse.ts +6908 -0
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +2282 -1214
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +938 -51
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +1471 -305
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +107 -92
- package/packages/orq-rc/src/models/operations/index.ts +16 -0
- package/packages/orq-rc/src/models/operations/listbatches.ts +570 -0
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +498 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2proxyaudiospeech.ts +393 -0
- package/packages/orq-rc/src/models/operations/postv2proxyaudiotranscriptions.ts +731 -0
- package/packages/orq-rc/src/models/operations/postv2proxyaudiotranslations.ts +741 -0
- package/packages/orq-rc/src/models/operations/postv2proxycompletions.ts +5831 -0
- package/packages/orq-rc/src/models/operations/postv2proxyembeddings.ts +543 -0
- package/packages/orq-rc/src/models/operations/postv2proxyimagesedits.ts +596 -0
- package/packages/orq-rc/src/models/operations/postv2proxyimagesgenerations.ts +1107 -0
- package/packages/orq-rc/src/models/operations/postv2proxyimagesvariations.ts +592 -0
- package/packages/orq-rc/src/models/operations/postv2proxymoderations.ts +802 -0
- package/packages/orq-rc/src/models/operations/postv2proxyrerank.ts +526 -0
- package/packages/orq-rc/src/models/operations/retrievebatch.ts +474 -0
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +478 -2
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +974 -2
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/sdk/batches.ts +81 -0
- package/packages/orq-rc/src/sdk/proxy.ts +211 -0
- package/packages/orq-rc/src/sdk/sdk.ts +12 -0
- package/packages/orq-rc/temp/example.ts +5 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +16 -16
|
@@ -80,6 +80,49 @@ export type UpdateDatapoint2DatasetsRequestRequestBodyMessagesType = ClosedEnum<
|
|
|
80
80
|
typeof UpdateDatapoint2DatasetsRequestRequestBodyMessagesType
|
|
81
81
|
>;
|
|
82
82
|
|
|
83
|
+
export const UpdateDatapointAnnotationsDatasetsType = {
|
|
84
|
+
FilePath: "file_path",
|
|
85
|
+
} as const;
|
|
86
|
+
export type UpdateDatapointAnnotationsDatasetsType = ClosedEnum<
|
|
87
|
+
typeof UpdateDatapointAnnotationsDatasetsType
|
|
88
|
+
>;
|
|
89
|
+
|
|
90
|
+
export type UpdateDatapointAnnotationsFilePath = {
|
|
91
|
+
fileId: string;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export type UpdateDatapointAnnotations2 = {
|
|
95
|
+
type: UpdateDatapointAnnotationsDatasetsType;
|
|
96
|
+
text: string;
|
|
97
|
+
filePath: UpdateDatapointAnnotationsFilePath;
|
|
98
|
+
startIndex: number;
|
|
99
|
+
endIndex: number;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
export const UpdateDatapointAnnotationsType = {
|
|
103
|
+
FileCitation: "file_citation",
|
|
104
|
+
} as const;
|
|
105
|
+
export type UpdateDatapointAnnotationsType = ClosedEnum<
|
|
106
|
+
typeof UpdateDatapointAnnotationsType
|
|
107
|
+
>;
|
|
108
|
+
|
|
109
|
+
export type UpdateDatapointAnnotationsFileCitation = {
|
|
110
|
+
fileId: string;
|
|
111
|
+
quote?: string | undefined;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
export type UpdateDatapointAnnotations1 = {
|
|
115
|
+
type: UpdateDatapointAnnotationsType;
|
|
116
|
+
text: string;
|
|
117
|
+
fileCitation: UpdateDatapointAnnotationsFileCitation;
|
|
118
|
+
startIndex: number;
|
|
119
|
+
endIndex: number;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
export type UpdateDatapoint2Annotations =
|
|
123
|
+
| UpdateDatapointAnnotations1
|
|
124
|
+
| UpdateDatapointAnnotations2;
|
|
125
|
+
|
|
83
126
|
export type UpdateDatapoint2TextContentPart = {
|
|
84
127
|
/**
|
|
85
128
|
* The type of the content part.
|
|
@@ -89,6 +132,12 @@ export type UpdateDatapoint2TextContentPart = {
|
|
|
89
132
|
* The text content.
|
|
90
133
|
*/
|
|
91
134
|
text: string;
|
|
135
|
+
/**
|
|
136
|
+
* Annotations for the text content.
|
|
137
|
+
*/
|
|
138
|
+
annotations?:
|
|
139
|
+
| Array<UpdateDatapointAnnotations1 | UpdateDatapointAnnotations2>
|
|
140
|
+
| undefined;
|
|
92
141
|
};
|
|
93
142
|
|
|
94
143
|
export type UpdateDatapointContentDatasets2 =
|
|
@@ -541,6 +590,49 @@ export type UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessag
|
|
|
541
590
|
typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessagesType
|
|
542
591
|
>;
|
|
543
592
|
|
|
593
|
+
export const UpdateDatapointAnnotationsDatasetsResponse200Type = {
|
|
594
|
+
FilePath: "file_path",
|
|
595
|
+
} as const;
|
|
596
|
+
export type UpdateDatapointAnnotationsDatasetsResponse200Type = ClosedEnum<
|
|
597
|
+
typeof UpdateDatapointAnnotationsDatasetsResponse200Type
|
|
598
|
+
>;
|
|
599
|
+
|
|
600
|
+
export type UpdateDatapointAnnotationsDatasetsFilePath = {
|
|
601
|
+
fileId: string;
|
|
602
|
+
};
|
|
603
|
+
|
|
604
|
+
export type UpdateDatapointAnnotationsDatasets2 = {
|
|
605
|
+
type: UpdateDatapointAnnotationsDatasetsResponse200Type;
|
|
606
|
+
text: string;
|
|
607
|
+
filePath: UpdateDatapointAnnotationsDatasetsFilePath;
|
|
608
|
+
startIndex: number;
|
|
609
|
+
endIndex: number;
|
|
610
|
+
};
|
|
611
|
+
|
|
612
|
+
export const UpdateDatapointAnnotationsDatasetsResponseType = {
|
|
613
|
+
FileCitation: "file_citation",
|
|
614
|
+
} as const;
|
|
615
|
+
export type UpdateDatapointAnnotationsDatasetsResponseType = ClosedEnum<
|
|
616
|
+
typeof UpdateDatapointAnnotationsDatasetsResponseType
|
|
617
|
+
>;
|
|
618
|
+
|
|
619
|
+
export type UpdateDatapointAnnotationsDatasetsFileCitation = {
|
|
620
|
+
fileId: string;
|
|
621
|
+
quote?: string | undefined;
|
|
622
|
+
};
|
|
623
|
+
|
|
624
|
+
export type UpdateDatapointAnnotationsDatasets1 = {
|
|
625
|
+
type: UpdateDatapointAnnotationsDatasetsResponseType;
|
|
626
|
+
text: string;
|
|
627
|
+
fileCitation: UpdateDatapointAnnotationsDatasetsFileCitation;
|
|
628
|
+
startIndex: number;
|
|
629
|
+
endIndex: number;
|
|
630
|
+
};
|
|
631
|
+
|
|
632
|
+
export type UpdateDatapoint2DatasetsAnnotations =
|
|
633
|
+
| UpdateDatapointAnnotationsDatasets1
|
|
634
|
+
| UpdateDatapointAnnotationsDatasets2;
|
|
635
|
+
|
|
544
636
|
export type UpdateDatapoint2DatasetsTextContentPart = {
|
|
545
637
|
/**
|
|
546
638
|
* The type of the content part.
|
|
@@ -551,6 +643,14 @@ export type UpdateDatapoint2DatasetsTextContentPart = {
|
|
|
551
643
|
* The text content.
|
|
552
644
|
*/
|
|
553
645
|
text: string;
|
|
646
|
+
/**
|
|
647
|
+
* Annotations for the text content.
|
|
648
|
+
*/
|
|
649
|
+
annotations?:
|
|
650
|
+
| Array<
|
|
651
|
+
UpdateDatapointAnnotationsDatasets1 | UpdateDatapointAnnotationsDatasets2
|
|
652
|
+
>
|
|
653
|
+
| undefined;
|
|
554
654
|
};
|
|
555
655
|
|
|
556
656
|
export type UpdateDatapointContentDatasetsResponse2002 =
|
|
@@ -1235,6 +1335,410 @@ export namespace UpdateDatapoint2DatasetsRequestRequestBodyMessagesType$ {
|
|
|
1235
1335
|
UpdateDatapoint2DatasetsRequestRequestBodyMessagesType$outboundSchema;
|
|
1236
1336
|
}
|
|
1237
1337
|
|
|
1338
|
+
/** @internal */
|
|
1339
|
+
export const UpdateDatapointAnnotationsDatasetsType$inboundSchema:
|
|
1340
|
+
z.ZodNativeEnum<typeof UpdateDatapointAnnotationsDatasetsType> = z.nativeEnum(
|
|
1341
|
+
UpdateDatapointAnnotationsDatasetsType,
|
|
1342
|
+
);
|
|
1343
|
+
|
|
1344
|
+
/** @internal */
|
|
1345
|
+
export const UpdateDatapointAnnotationsDatasetsType$outboundSchema:
|
|
1346
|
+
z.ZodNativeEnum<typeof UpdateDatapointAnnotationsDatasetsType> =
|
|
1347
|
+
UpdateDatapointAnnotationsDatasetsType$inboundSchema;
|
|
1348
|
+
|
|
1349
|
+
/**
|
|
1350
|
+
* @internal
|
|
1351
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1352
|
+
*/
|
|
1353
|
+
export namespace UpdateDatapointAnnotationsDatasetsType$ {
|
|
1354
|
+
/** @deprecated use `UpdateDatapointAnnotationsDatasetsType$inboundSchema` instead. */
|
|
1355
|
+
export const inboundSchema =
|
|
1356
|
+
UpdateDatapointAnnotationsDatasetsType$inboundSchema;
|
|
1357
|
+
/** @deprecated use `UpdateDatapointAnnotationsDatasetsType$outboundSchema` instead. */
|
|
1358
|
+
export const outboundSchema =
|
|
1359
|
+
UpdateDatapointAnnotationsDatasetsType$outboundSchema;
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
/** @internal */
|
|
1363
|
+
export const UpdateDatapointAnnotationsFilePath$inboundSchema: z.ZodType<
|
|
1364
|
+
UpdateDatapointAnnotationsFilePath,
|
|
1365
|
+
z.ZodTypeDef,
|
|
1366
|
+
unknown
|
|
1367
|
+
> = z.object({
|
|
1368
|
+
file_id: z.string(),
|
|
1369
|
+
}).transform((v) => {
|
|
1370
|
+
return remap$(v, {
|
|
1371
|
+
"file_id": "fileId",
|
|
1372
|
+
});
|
|
1373
|
+
});
|
|
1374
|
+
|
|
1375
|
+
/** @internal */
|
|
1376
|
+
export type UpdateDatapointAnnotationsFilePath$Outbound = {
|
|
1377
|
+
file_id: string;
|
|
1378
|
+
};
|
|
1379
|
+
|
|
1380
|
+
/** @internal */
|
|
1381
|
+
export const UpdateDatapointAnnotationsFilePath$outboundSchema: z.ZodType<
|
|
1382
|
+
UpdateDatapointAnnotationsFilePath$Outbound,
|
|
1383
|
+
z.ZodTypeDef,
|
|
1384
|
+
UpdateDatapointAnnotationsFilePath
|
|
1385
|
+
> = z.object({
|
|
1386
|
+
fileId: z.string(),
|
|
1387
|
+
}).transform((v) => {
|
|
1388
|
+
return remap$(v, {
|
|
1389
|
+
fileId: "file_id",
|
|
1390
|
+
});
|
|
1391
|
+
});
|
|
1392
|
+
|
|
1393
|
+
/**
|
|
1394
|
+
* @internal
|
|
1395
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1396
|
+
*/
|
|
1397
|
+
export namespace UpdateDatapointAnnotationsFilePath$ {
|
|
1398
|
+
/** @deprecated use `UpdateDatapointAnnotationsFilePath$inboundSchema` instead. */
|
|
1399
|
+
export const inboundSchema = UpdateDatapointAnnotationsFilePath$inboundSchema;
|
|
1400
|
+
/** @deprecated use `UpdateDatapointAnnotationsFilePath$outboundSchema` instead. */
|
|
1401
|
+
export const outboundSchema =
|
|
1402
|
+
UpdateDatapointAnnotationsFilePath$outboundSchema;
|
|
1403
|
+
/** @deprecated use `UpdateDatapointAnnotationsFilePath$Outbound` instead. */
|
|
1404
|
+
export type Outbound = UpdateDatapointAnnotationsFilePath$Outbound;
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
export function updateDatapointAnnotationsFilePathToJSON(
|
|
1408
|
+
updateDatapointAnnotationsFilePath: UpdateDatapointAnnotationsFilePath,
|
|
1409
|
+
): string {
|
|
1410
|
+
return JSON.stringify(
|
|
1411
|
+
UpdateDatapointAnnotationsFilePath$outboundSchema.parse(
|
|
1412
|
+
updateDatapointAnnotationsFilePath,
|
|
1413
|
+
),
|
|
1414
|
+
);
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
export function updateDatapointAnnotationsFilePathFromJSON(
|
|
1418
|
+
jsonString: string,
|
|
1419
|
+
): SafeParseResult<UpdateDatapointAnnotationsFilePath, SDKValidationError> {
|
|
1420
|
+
return safeParse(
|
|
1421
|
+
jsonString,
|
|
1422
|
+
(x) =>
|
|
1423
|
+
UpdateDatapointAnnotationsFilePath$inboundSchema.parse(JSON.parse(x)),
|
|
1424
|
+
`Failed to parse 'UpdateDatapointAnnotationsFilePath' from JSON`,
|
|
1425
|
+
);
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
/** @internal */
|
|
1429
|
+
export const UpdateDatapointAnnotations2$inboundSchema: z.ZodType<
|
|
1430
|
+
UpdateDatapointAnnotations2,
|
|
1431
|
+
z.ZodTypeDef,
|
|
1432
|
+
unknown
|
|
1433
|
+
> = z.object({
|
|
1434
|
+
type: UpdateDatapointAnnotationsDatasetsType$inboundSchema,
|
|
1435
|
+
text: z.string(),
|
|
1436
|
+
file_path: z.lazy(() => UpdateDatapointAnnotationsFilePath$inboundSchema),
|
|
1437
|
+
start_index: z.number().int(),
|
|
1438
|
+
end_index: z.number().int(),
|
|
1439
|
+
}).transform((v) => {
|
|
1440
|
+
return remap$(v, {
|
|
1441
|
+
"file_path": "filePath",
|
|
1442
|
+
"start_index": "startIndex",
|
|
1443
|
+
"end_index": "endIndex",
|
|
1444
|
+
});
|
|
1445
|
+
});
|
|
1446
|
+
|
|
1447
|
+
/** @internal */
|
|
1448
|
+
export type UpdateDatapointAnnotations2$Outbound = {
|
|
1449
|
+
type: string;
|
|
1450
|
+
text: string;
|
|
1451
|
+
file_path: UpdateDatapointAnnotationsFilePath$Outbound;
|
|
1452
|
+
start_index: number;
|
|
1453
|
+
end_index: number;
|
|
1454
|
+
};
|
|
1455
|
+
|
|
1456
|
+
/** @internal */
|
|
1457
|
+
export const UpdateDatapointAnnotations2$outboundSchema: z.ZodType<
|
|
1458
|
+
UpdateDatapointAnnotations2$Outbound,
|
|
1459
|
+
z.ZodTypeDef,
|
|
1460
|
+
UpdateDatapointAnnotations2
|
|
1461
|
+
> = z.object({
|
|
1462
|
+
type: UpdateDatapointAnnotationsDatasetsType$outboundSchema,
|
|
1463
|
+
text: z.string(),
|
|
1464
|
+
filePath: z.lazy(() => UpdateDatapointAnnotationsFilePath$outboundSchema),
|
|
1465
|
+
startIndex: z.number().int(),
|
|
1466
|
+
endIndex: z.number().int(),
|
|
1467
|
+
}).transform((v) => {
|
|
1468
|
+
return remap$(v, {
|
|
1469
|
+
filePath: "file_path",
|
|
1470
|
+
startIndex: "start_index",
|
|
1471
|
+
endIndex: "end_index",
|
|
1472
|
+
});
|
|
1473
|
+
});
|
|
1474
|
+
|
|
1475
|
+
/**
|
|
1476
|
+
* @internal
|
|
1477
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1478
|
+
*/
|
|
1479
|
+
export namespace UpdateDatapointAnnotations2$ {
|
|
1480
|
+
/** @deprecated use `UpdateDatapointAnnotations2$inboundSchema` instead. */
|
|
1481
|
+
export const inboundSchema = UpdateDatapointAnnotations2$inboundSchema;
|
|
1482
|
+
/** @deprecated use `UpdateDatapointAnnotations2$outboundSchema` instead. */
|
|
1483
|
+
export const outboundSchema = UpdateDatapointAnnotations2$outboundSchema;
|
|
1484
|
+
/** @deprecated use `UpdateDatapointAnnotations2$Outbound` instead. */
|
|
1485
|
+
export type Outbound = UpdateDatapointAnnotations2$Outbound;
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
export function updateDatapointAnnotations2ToJSON(
|
|
1489
|
+
updateDatapointAnnotations2: UpdateDatapointAnnotations2,
|
|
1490
|
+
): string {
|
|
1491
|
+
return JSON.stringify(
|
|
1492
|
+
UpdateDatapointAnnotations2$outboundSchema.parse(
|
|
1493
|
+
updateDatapointAnnotations2,
|
|
1494
|
+
),
|
|
1495
|
+
);
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
export function updateDatapointAnnotations2FromJSON(
|
|
1499
|
+
jsonString: string,
|
|
1500
|
+
): SafeParseResult<UpdateDatapointAnnotations2, SDKValidationError> {
|
|
1501
|
+
return safeParse(
|
|
1502
|
+
jsonString,
|
|
1503
|
+
(x) => UpdateDatapointAnnotations2$inboundSchema.parse(JSON.parse(x)),
|
|
1504
|
+
`Failed to parse 'UpdateDatapointAnnotations2' from JSON`,
|
|
1505
|
+
);
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
/** @internal */
|
|
1509
|
+
export const UpdateDatapointAnnotationsType$inboundSchema: z.ZodNativeEnum<
|
|
1510
|
+
typeof UpdateDatapointAnnotationsType
|
|
1511
|
+
> = z.nativeEnum(UpdateDatapointAnnotationsType);
|
|
1512
|
+
|
|
1513
|
+
/** @internal */
|
|
1514
|
+
export const UpdateDatapointAnnotationsType$outboundSchema: z.ZodNativeEnum<
|
|
1515
|
+
typeof UpdateDatapointAnnotationsType
|
|
1516
|
+
> = UpdateDatapointAnnotationsType$inboundSchema;
|
|
1517
|
+
|
|
1518
|
+
/**
|
|
1519
|
+
* @internal
|
|
1520
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1521
|
+
*/
|
|
1522
|
+
export namespace UpdateDatapointAnnotationsType$ {
|
|
1523
|
+
/** @deprecated use `UpdateDatapointAnnotationsType$inboundSchema` instead. */
|
|
1524
|
+
export const inboundSchema = UpdateDatapointAnnotationsType$inboundSchema;
|
|
1525
|
+
/** @deprecated use `UpdateDatapointAnnotationsType$outboundSchema` instead. */
|
|
1526
|
+
export const outboundSchema = UpdateDatapointAnnotationsType$outboundSchema;
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
/** @internal */
|
|
1530
|
+
export const UpdateDatapointAnnotationsFileCitation$inboundSchema: z.ZodType<
|
|
1531
|
+
UpdateDatapointAnnotationsFileCitation,
|
|
1532
|
+
z.ZodTypeDef,
|
|
1533
|
+
unknown
|
|
1534
|
+
> = z.object({
|
|
1535
|
+
file_id: z.string(),
|
|
1536
|
+
quote: z.string().optional(),
|
|
1537
|
+
}).transform((v) => {
|
|
1538
|
+
return remap$(v, {
|
|
1539
|
+
"file_id": "fileId",
|
|
1540
|
+
});
|
|
1541
|
+
});
|
|
1542
|
+
|
|
1543
|
+
/** @internal */
|
|
1544
|
+
export type UpdateDatapointAnnotationsFileCitation$Outbound = {
|
|
1545
|
+
file_id: string;
|
|
1546
|
+
quote?: string | undefined;
|
|
1547
|
+
};
|
|
1548
|
+
|
|
1549
|
+
/** @internal */
|
|
1550
|
+
export const UpdateDatapointAnnotationsFileCitation$outboundSchema: z.ZodType<
|
|
1551
|
+
UpdateDatapointAnnotationsFileCitation$Outbound,
|
|
1552
|
+
z.ZodTypeDef,
|
|
1553
|
+
UpdateDatapointAnnotationsFileCitation
|
|
1554
|
+
> = z.object({
|
|
1555
|
+
fileId: z.string(),
|
|
1556
|
+
quote: z.string().optional(),
|
|
1557
|
+
}).transform((v) => {
|
|
1558
|
+
return remap$(v, {
|
|
1559
|
+
fileId: "file_id",
|
|
1560
|
+
});
|
|
1561
|
+
});
|
|
1562
|
+
|
|
1563
|
+
/**
|
|
1564
|
+
* @internal
|
|
1565
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1566
|
+
*/
|
|
1567
|
+
export namespace UpdateDatapointAnnotationsFileCitation$ {
|
|
1568
|
+
/** @deprecated use `UpdateDatapointAnnotationsFileCitation$inboundSchema` instead. */
|
|
1569
|
+
export const inboundSchema =
|
|
1570
|
+
UpdateDatapointAnnotationsFileCitation$inboundSchema;
|
|
1571
|
+
/** @deprecated use `UpdateDatapointAnnotationsFileCitation$outboundSchema` instead. */
|
|
1572
|
+
export const outboundSchema =
|
|
1573
|
+
UpdateDatapointAnnotationsFileCitation$outboundSchema;
|
|
1574
|
+
/** @deprecated use `UpdateDatapointAnnotationsFileCitation$Outbound` instead. */
|
|
1575
|
+
export type Outbound = UpdateDatapointAnnotationsFileCitation$Outbound;
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
export function updateDatapointAnnotationsFileCitationToJSON(
|
|
1579
|
+
updateDatapointAnnotationsFileCitation:
|
|
1580
|
+
UpdateDatapointAnnotationsFileCitation,
|
|
1581
|
+
): string {
|
|
1582
|
+
return JSON.stringify(
|
|
1583
|
+
UpdateDatapointAnnotationsFileCitation$outboundSchema.parse(
|
|
1584
|
+
updateDatapointAnnotationsFileCitation,
|
|
1585
|
+
),
|
|
1586
|
+
);
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
export function updateDatapointAnnotationsFileCitationFromJSON(
|
|
1590
|
+
jsonString: string,
|
|
1591
|
+
): SafeParseResult<UpdateDatapointAnnotationsFileCitation, SDKValidationError> {
|
|
1592
|
+
return safeParse(
|
|
1593
|
+
jsonString,
|
|
1594
|
+
(x) =>
|
|
1595
|
+
UpdateDatapointAnnotationsFileCitation$inboundSchema.parse(JSON.parse(x)),
|
|
1596
|
+
`Failed to parse 'UpdateDatapointAnnotationsFileCitation' from JSON`,
|
|
1597
|
+
);
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
/** @internal */
|
|
1601
|
+
export const UpdateDatapointAnnotations1$inboundSchema: z.ZodType<
|
|
1602
|
+
UpdateDatapointAnnotations1,
|
|
1603
|
+
z.ZodTypeDef,
|
|
1604
|
+
unknown
|
|
1605
|
+
> = z.object({
|
|
1606
|
+
type: UpdateDatapointAnnotationsType$inboundSchema,
|
|
1607
|
+
text: z.string(),
|
|
1608
|
+
file_citation: z.lazy(() =>
|
|
1609
|
+
UpdateDatapointAnnotationsFileCitation$inboundSchema
|
|
1610
|
+
),
|
|
1611
|
+
start_index: z.number().int(),
|
|
1612
|
+
end_index: z.number().int(),
|
|
1613
|
+
}).transform((v) => {
|
|
1614
|
+
return remap$(v, {
|
|
1615
|
+
"file_citation": "fileCitation",
|
|
1616
|
+
"start_index": "startIndex",
|
|
1617
|
+
"end_index": "endIndex",
|
|
1618
|
+
});
|
|
1619
|
+
});
|
|
1620
|
+
|
|
1621
|
+
/** @internal */
|
|
1622
|
+
export type UpdateDatapointAnnotations1$Outbound = {
|
|
1623
|
+
type: string;
|
|
1624
|
+
text: string;
|
|
1625
|
+
file_citation: UpdateDatapointAnnotationsFileCitation$Outbound;
|
|
1626
|
+
start_index: number;
|
|
1627
|
+
end_index: number;
|
|
1628
|
+
};
|
|
1629
|
+
|
|
1630
|
+
/** @internal */
|
|
1631
|
+
export const UpdateDatapointAnnotations1$outboundSchema: z.ZodType<
|
|
1632
|
+
UpdateDatapointAnnotations1$Outbound,
|
|
1633
|
+
z.ZodTypeDef,
|
|
1634
|
+
UpdateDatapointAnnotations1
|
|
1635
|
+
> = z.object({
|
|
1636
|
+
type: UpdateDatapointAnnotationsType$outboundSchema,
|
|
1637
|
+
text: z.string(),
|
|
1638
|
+
fileCitation: z.lazy(() =>
|
|
1639
|
+
UpdateDatapointAnnotationsFileCitation$outboundSchema
|
|
1640
|
+
),
|
|
1641
|
+
startIndex: z.number().int(),
|
|
1642
|
+
endIndex: z.number().int(),
|
|
1643
|
+
}).transform((v) => {
|
|
1644
|
+
return remap$(v, {
|
|
1645
|
+
fileCitation: "file_citation",
|
|
1646
|
+
startIndex: "start_index",
|
|
1647
|
+
endIndex: "end_index",
|
|
1648
|
+
});
|
|
1649
|
+
});
|
|
1650
|
+
|
|
1651
|
+
/**
|
|
1652
|
+
* @internal
|
|
1653
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1654
|
+
*/
|
|
1655
|
+
export namespace UpdateDatapointAnnotations1$ {
|
|
1656
|
+
/** @deprecated use `UpdateDatapointAnnotations1$inboundSchema` instead. */
|
|
1657
|
+
export const inboundSchema = UpdateDatapointAnnotations1$inboundSchema;
|
|
1658
|
+
/** @deprecated use `UpdateDatapointAnnotations1$outboundSchema` instead. */
|
|
1659
|
+
export const outboundSchema = UpdateDatapointAnnotations1$outboundSchema;
|
|
1660
|
+
/** @deprecated use `UpdateDatapointAnnotations1$Outbound` instead. */
|
|
1661
|
+
export type Outbound = UpdateDatapointAnnotations1$Outbound;
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1664
|
+
export function updateDatapointAnnotations1ToJSON(
|
|
1665
|
+
updateDatapointAnnotations1: UpdateDatapointAnnotations1,
|
|
1666
|
+
): string {
|
|
1667
|
+
return JSON.stringify(
|
|
1668
|
+
UpdateDatapointAnnotations1$outboundSchema.parse(
|
|
1669
|
+
updateDatapointAnnotations1,
|
|
1670
|
+
),
|
|
1671
|
+
);
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
export function updateDatapointAnnotations1FromJSON(
|
|
1675
|
+
jsonString: string,
|
|
1676
|
+
): SafeParseResult<UpdateDatapointAnnotations1, SDKValidationError> {
|
|
1677
|
+
return safeParse(
|
|
1678
|
+
jsonString,
|
|
1679
|
+
(x) => UpdateDatapointAnnotations1$inboundSchema.parse(JSON.parse(x)),
|
|
1680
|
+
`Failed to parse 'UpdateDatapointAnnotations1' from JSON`,
|
|
1681
|
+
);
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
/** @internal */
|
|
1685
|
+
export const UpdateDatapoint2Annotations$inboundSchema: z.ZodType<
|
|
1686
|
+
UpdateDatapoint2Annotations,
|
|
1687
|
+
z.ZodTypeDef,
|
|
1688
|
+
unknown
|
|
1689
|
+
> = z.union([
|
|
1690
|
+
z.lazy(() => UpdateDatapointAnnotations1$inboundSchema),
|
|
1691
|
+
z.lazy(() => UpdateDatapointAnnotations2$inboundSchema),
|
|
1692
|
+
]);
|
|
1693
|
+
|
|
1694
|
+
/** @internal */
|
|
1695
|
+
export type UpdateDatapoint2Annotations$Outbound =
|
|
1696
|
+
| UpdateDatapointAnnotations1$Outbound
|
|
1697
|
+
| UpdateDatapointAnnotations2$Outbound;
|
|
1698
|
+
|
|
1699
|
+
/** @internal */
|
|
1700
|
+
export const UpdateDatapoint2Annotations$outboundSchema: z.ZodType<
|
|
1701
|
+
UpdateDatapoint2Annotations$Outbound,
|
|
1702
|
+
z.ZodTypeDef,
|
|
1703
|
+
UpdateDatapoint2Annotations
|
|
1704
|
+
> = z.union([
|
|
1705
|
+
z.lazy(() => UpdateDatapointAnnotations1$outboundSchema),
|
|
1706
|
+
z.lazy(() => UpdateDatapointAnnotations2$outboundSchema),
|
|
1707
|
+
]);
|
|
1708
|
+
|
|
1709
|
+
/**
|
|
1710
|
+
* @internal
|
|
1711
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1712
|
+
*/
|
|
1713
|
+
export namespace UpdateDatapoint2Annotations$ {
|
|
1714
|
+
/** @deprecated use `UpdateDatapoint2Annotations$inboundSchema` instead. */
|
|
1715
|
+
export const inboundSchema = UpdateDatapoint2Annotations$inboundSchema;
|
|
1716
|
+
/** @deprecated use `UpdateDatapoint2Annotations$outboundSchema` instead. */
|
|
1717
|
+
export const outboundSchema = UpdateDatapoint2Annotations$outboundSchema;
|
|
1718
|
+
/** @deprecated use `UpdateDatapoint2Annotations$Outbound` instead. */
|
|
1719
|
+
export type Outbound = UpdateDatapoint2Annotations$Outbound;
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
export function updateDatapoint2AnnotationsToJSON(
|
|
1723
|
+
updateDatapoint2Annotations: UpdateDatapoint2Annotations,
|
|
1724
|
+
): string {
|
|
1725
|
+
return JSON.stringify(
|
|
1726
|
+
UpdateDatapoint2Annotations$outboundSchema.parse(
|
|
1727
|
+
updateDatapoint2Annotations,
|
|
1728
|
+
),
|
|
1729
|
+
);
|
|
1730
|
+
}
|
|
1731
|
+
|
|
1732
|
+
export function updateDatapoint2AnnotationsFromJSON(
|
|
1733
|
+
jsonString: string,
|
|
1734
|
+
): SafeParseResult<UpdateDatapoint2Annotations, SDKValidationError> {
|
|
1735
|
+
return safeParse(
|
|
1736
|
+
jsonString,
|
|
1737
|
+
(x) => UpdateDatapoint2Annotations$inboundSchema.parse(JSON.parse(x)),
|
|
1738
|
+
`Failed to parse 'UpdateDatapoint2Annotations' from JSON`,
|
|
1739
|
+
);
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1238
1742
|
/** @internal */
|
|
1239
1743
|
export const UpdateDatapoint2TextContentPart$inboundSchema: z.ZodType<
|
|
1240
1744
|
UpdateDatapoint2TextContentPart,
|
|
@@ -1243,12 +1747,24 @@ export const UpdateDatapoint2TextContentPart$inboundSchema: z.ZodType<
|
|
|
1243
1747
|
> = z.object({
|
|
1244
1748
|
type: UpdateDatapoint2DatasetsRequestRequestBodyMessagesType$inboundSchema,
|
|
1245
1749
|
text: z.string(),
|
|
1750
|
+
annotations: z.array(
|
|
1751
|
+
z.union([
|
|
1752
|
+
z.lazy(() => UpdateDatapointAnnotations1$inboundSchema),
|
|
1753
|
+
z.lazy(() => UpdateDatapointAnnotations2$inboundSchema),
|
|
1754
|
+
]),
|
|
1755
|
+
).optional(),
|
|
1246
1756
|
});
|
|
1247
1757
|
|
|
1248
1758
|
/** @internal */
|
|
1249
1759
|
export type UpdateDatapoint2TextContentPart$Outbound = {
|
|
1250
1760
|
type: string;
|
|
1251
1761
|
text: string;
|
|
1762
|
+
annotations?:
|
|
1763
|
+
| Array<
|
|
1764
|
+
| UpdateDatapointAnnotations1$Outbound
|
|
1765
|
+
| UpdateDatapointAnnotations2$Outbound
|
|
1766
|
+
>
|
|
1767
|
+
| undefined;
|
|
1252
1768
|
};
|
|
1253
1769
|
|
|
1254
1770
|
/** @internal */
|
|
@@ -1259,6 +1775,12 @@ export const UpdateDatapoint2TextContentPart$outboundSchema: z.ZodType<
|
|
|
1259
1775
|
> = z.object({
|
|
1260
1776
|
type: UpdateDatapoint2DatasetsRequestRequestBodyMessagesType$outboundSchema,
|
|
1261
1777
|
text: z.string(),
|
|
1778
|
+
annotations: z.array(
|
|
1779
|
+
z.union([
|
|
1780
|
+
z.lazy(() => UpdateDatapointAnnotations1$outboundSchema),
|
|
1781
|
+
z.lazy(() => UpdateDatapointAnnotations2$outboundSchema),
|
|
1782
|
+
]),
|
|
1783
|
+
).optional(),
|
|
1262
1784
|
});
|
|
1263
1785
|
|
|
1264
1786
|
/**
|
|
@@ -3284,6 +3806,438 @@ export namespace UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyM
|
|
|
3284
3806
|
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessagesType$outboundSchema;
|
|
3285
3807
|
}
|
|
3286
3808
|
|
|
3809
|
+
/** @internal */
|
|
3810
|
+
export const UpdateDatapointAnnotationsDatasetsResponse200Type$inboundSchema:
|
|
3811
|
+
z.ZodNativeEnum<typeof UpdateDatapointAnnotationsDatasetsResponse200Type> = z
|
|
3812
|
+
.nativeEnum(UpdateDatapointAnnotationsDatasetsResponse200Type);
|
|
3813
|
+
|
|
3814
|
+
/** @internal */
|
|
3815
|
+
export const UpdateDatapointAnnotationsDatasetsResponse200Type$outboundSchema:
|
|
3816
|
+
z.ZodNativeEnum<typeof UpdateDatapointAnnotationsDatasetsResponse200Type> =
|
|
3817
|
+
UpdateDatapointAnnotationsDatasetsResponse200Type$inboundSchema;
|
|
3818
|
+
|
|
3819
|
+
/**
|
|
3820
|
+
* @internal
|
|
3821
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3822
|
+
*/
|
|
3823
|
+
export namespace UpdateDatapointAnnotationsDatasetsResponse200Type$ {
|
|
3824
|
+
/** @deprecated use `UpdateDatapointAnnotationsDatasetsResponse200Type$inboundSchema` instead. */
|
|
3825
|
+
export const inboundSchema =
|
|
3826
|
+
UpdateDatapointAnnotationsDatasetsResponse200Type$inboundSchema;
|
|
3827
|
+
/** @deprecated use `UpdateDatapointAnnotationsDatasetsResponse200Type$outboundSchema` instead. */
|
|
3828
|
+
export const outboundSchema =
|
|
3829
|
+
UpdateDatapointAnnotationsDatasetsResponse200Type$outboundSchema;
|
|
3830
|
+
}
|
|
3831
|
+
|
|
3832
|
+
/** @internal */
|
|
3833
|
+
export const UpdateDatapointAnnotationsDatasetsFilePath$inboundSchema:
|
|
3834
|
+
z.ZodType<UpdateDatapointAnnotationsDatasetsFilePath, z.ZodTypeDef, unknown> =
|
|
3835
|
+
z.object({
|
|
3836
|
+
file_id: z.string(),
|
|
3837
|
+
}).transform((v) => {
|
|
3838
|
+
return remap$(v, {
|
|
3839
|
+
"file_id": "fileId",
|
|
3840
|
+
});
|
|
3841
|
+
});
|
|
3842
|
+
|
|
3843
|
+
/** @internal */
|
|
3844
|
+
export type UpdateDatapointAnnotationsDatasetsFilePath$Outbound = {
|
|
3845
|
+
file_id: string;
|
|
3846
|
+
};
|
|
3847
|
+
|
|
3848
|
+
/** @internal */
|
|
3849
|
+
export const UpdateDatapointAnnotationsDatasetsFilePath$outboundSchema:
|
|
3850
|
+
z.ZodType<
|
|
3851
|
+
UpdateDatapointAnnotationsDatasetsFilePath$Outbound,
|
|
3852
|
+
z.ZodTypeDef,
|
|
3853
|
+
UpdateDatapointAnnotationsDatasetsFilePath
|
|
3854
|
+
> = z.object({
|
|
3855
|
+
fileId: z.string(),
|
|
3856
|
+
}).transform((v) => {
|
|
3857
|
+
return remap$(v, {
|
|
3858
|
+
fileId: "file_id",
|
|
3859
|
+
});
|
|
3860
|
+
});
|
|
3861
|
+
|
|
3862
|
+
/**
|
|
3863
|
+
* @internal
|
|
3864
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3865
|
+
*/
|
|
3866
|
+
export namespace UpdateDatapointAnnotationsDatasetsFilePath$ {
|
|
3867
|
+
/** @deprecated use `UpdateDatapointAnnotationsDatasetsFilePath$inboundSchema` instead. */
|
|
3868
|
+
export const inboundSchema =
|
|
3869
|
+
UpdateDatapointAnnotationsDatasetsFilePath$inboundSchema;
|
|
3870
|
+
/** @deprecated use `UpdateDatapointAnnotationsDatasetsFilePath$outboundSchema` instead. */
|
|
3871
|
+
export const outboundSchema =
|
|
3872
|
+
UpdateDatapointAnnotationsDatasetsFilePath$outboundSchema;
|
|
3873
|
+
/** @deprecated use `UpdateDatapointAnnotationsDatasetsFilePath$Outbound` instead. */
|
|
3874
|
+
export type Outbound = UpdateDatapointAnnotationsDatasetsFilePath$Outbound;
|
|
3875
|
+
}
|
|
3876
|
+
|
|
3877
|
+
export function updateDatapointAnnotationsDatasetsFilePathToJSON(
|
|
3878
|
+
updateDatapointAnnotationsDatasetsFilePath:
|
|
3879
|
+
UpdateDatapointAnnotationsDatasetsFilePath,
|
|
3880
|
+
): string {
|
|
3881
|
+
return JSON.stringify(
|
|
3882
|
+
UpdateDatapointAnnotationsDatasetsFilePath$outboundSchema.parse(
|
|
3883
|
+
updateDatapointAnnotationsDatasetsFilePath,
|
|
3884
|
+
),
|
|
3885
|
+
);
|
|
3886
|
+
}
|
|
3887
|
+
|
|
3888
|
+
export function updateDatapointAnnotationsDatasetsFilePathFromJSON(
|
|
3889
|
+
jsonString: string,
|
|
3890
|
+
): SafeParseResult<
|
|
3891
|
+
UpdateDatapointAnnotationsDatasetsFilePath,
|
|
3892
|
+
SDKValidationError
|
|
3893
|
+
> {
|
|
3894
|
+
return safeParse(
|
|
3895
|
+
jsonString,
|
|
3896
|
+
(x) =>
|
|
3897
|
+
UpdateDatapointAnnotationsDatasetsFilePath$inboundSchema.parse(
|
|
3898
|
+
JSON.parse(x),
|
|
3899
|
+
),
|
|
3900
|
+
`Failed to parse 'UpdateDatapointAnnotationsDatasetsFilePath' from JSON`,
|
|
3901
|
+
);
|
|
3902
|
+
}
|
|
3903
|
+
|
|
3904
|
+
/** @internal */
|
|
3905
|
+
export const UpdateDatapointAnnotationsDatasets2$inboundSchema: z.ZodType<
|
|
3906
|
+
UpdateDatapointAnnotationsDatasets2,
|
|
3907
|
+
z.ZodTypeDef,
|
|
3908
|
+
unknown
|
|
3909
|
+
> = z.object({
|
|
3910
|
+
type: UpdateDatapointAnnotationsDatasetsResponse200Type$inboundSchema,
|
|
3911
|
+
text: z.string(),
|
|
3912
|
+
file_path: z.lazy(() =>
|
|
3913
|
+
UpdateDatapointAnnotationsDatasetsFilePath$inboundSchema
|
|
3914
|
+
),
|
|
3915
|
+
start_index: z.number().int(),
|
|
3916
|
+
end_index: z.number().int(),
|
|
3917
|
+
}).transform((v) => {
|
|
3918
|
+
return remap$(v, {
|
|
3919
|
+
"file_path": "filePath",
|
|
3920
|
+
"start_index": "startIndex",
|
|
3921
|
+
"end_index": "endIndex",
|
|
3922
|
+
});
|
|
3923
|
+
});
|
|
3924
|
+
|
|
3925
|
+
/** @internal */
|
|
3926
|
+
export type UpdateDatapointAnnotationsDatasets2$Outbound = {
|
|
3927
|
+
type: string;
|
|
3928
|
+
text: string;
|
|
3929
|
+
file_path: UpdateDatapointAnnotationsDatasetsFilePath$Outbound;
|
|
3930
|
+
start_index: number;
|
|
3931
|
+
end_index: number;
|
|
3932
|
+
};
|
|
3933
|
+
|
|
3934
|
+
/** @internal */
|
|
3935
|
+
export const UpdateDatapointAnnotationsDatasets2$outboundSchema: z.ZodType<
|
|
3936
|
+
UpdateDatapointAnnotationsDatasets2$Outbound,
|
|
3937
|
+
z.ZodTypeDef,
|
|
3938
|
+
UpdateDatapointAnnotationsDatasets2
|
|
3939
|
+
> = z.object({
|
|
3940
|
+
type: UpdateDatapointAnnotationsDatasetsResponse200Type$outboundSchema,
|
|
3941
|
+
text: z.string(),
|
|
3942
|
+
filePath: z.lazy(() =>
|
|
3943
|
+
UpdateDatapointAnnotationsDatasetsFilePath$outboundSchema
|
|
3944
|
+
),
|
|
3945
|
+
startIndex: z.number().int(),
|
|
3946
|
+
endIndex: z.number().int(),
|
|
3947
|
+
}).transform((v) => {
|
|
3948
|
+
return remap$(v, {
|
|
3949
|
+
filePath: "file_path",
|
|
3950
|
+
startIndex: "start_index",
|
|
3951
|
+
endIndex: "end_index",
|
|
3952
|
+
});
|
|
3953
|
+
});
|
|
3954
|
+
|
|
3955
|
+
/**
|
|
3956
|
+
* @internal
|
|
3957
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3958
|
+
*/
|
|
3959
|
+
export namespace UpdateDatapointAnnotationsDatasets2$ {
|
|
3960
|
+
/** @deprecated use `UpdateDatapointAnnotationsDatasets2$inboundSchema` instead. */
|
|
3961
|
+
export const inboundSchema =
|
|
3962
|
+
UpdateDatapointAnnotationsDatasets2$inboundSchema;
|
|
3963
|
+
/** @deprecated use `UpdateDatapointAnnotationsDatasets2$outboundSchema` instead. */
|
|
3964
|
+
export const outboundSchema =
|
|
3965
|
+
UpdateDatapointAnnotationsDatasets2$outboundSchema;
|
|
3966
|
+
/** @deprecated use `UpdateDatapointAnnotationsDatasets2$Outbound` instead. */
|
|
3967
|
+
export type Outbound = UpdateDatapointAnnotationsDatasets2$Outbound;
|
|
3968
|
+
}
|
|
3969
|
+
|
|
3970
|
+
export function updateDatapointAnnotationsDatasets2ToJSON(
|
|
3971
|
+
updateDatapointAnnotationsDatasets2: UpdateDatapointAnnotationsDatasets2,
|
|
3972
|
+
): string {
|
|
3973
|
+
return JSON.stringify(
|
|
3974
|
+
UpdateDatapointAnnotationsDatasets2$outboundSchema.parse(
|
|
3975
|
+
updateDatapointAnnotationsDatasets2,
|
|
3976
|
+
),
|
|
3977
|
+
);
|
|
3978
|
+
}
|
|
3979
|
+
|
|
3980
|
+
export function updateDatapointAnnotationsDatasets2FromJSON(
|
|
3981
|
+
jsonString: string,
|
|
3982
|
+
): SafeParseResult<UpdateDatapointAnnotationsDatasets2, SDKValidationError> {
|
|
3983
|
+
return safeParse(
|
|
3984
|
+
jsonString,
|
|
3985
|
+
(x) =>
|
|
3986
|
+
UpdateDatapointAnnotationsDatasets2$inboundSchema.parse(JSON.parse(x)),
|
|
3987
|
+
`Failed to parse 'UpdateDatapointAnnotationsDatasets2' from JSON`,
|
|
3988
|
+
);
|
|
3989
|
+
}
|
|
3990
|
+
|
|
3991
|
+
/** @internal */
|
|
3992
|
+
export const UpdateDatapointAnnotationsDatasetsResponseType$inboundSchema:
|
|
3993
|
+
z.ZodNativeEnum<typeof UpdateDatapointAnnotationsDatasetsResponseType> = z
|
|
3994
|
+
.nativeEnum(UpdateDatapointAnnotationsDatasetsResponseType);
|
|
3995
|
+
|
|
3996
|
+
/** @internal */
|
|
3997
|
+
export const UpdateDatapointAnnotationsDatasetsResponseType$outboundSchema:
|
|
3998
|
+
z.ZodNativeEnum<typeof UpdateDatapointAnnotationsDatasetsResponseType> =
|
|
3999
|
+
UpdateDatapointAnnotationsDatasetsResponseType$inboundSchema;
|
|
4000
|
+
|
|
4001
|
+
/**
|
|
4002
|
+
* @internal
|
|
4003
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4004
|
+
*/
|
|
4005
|
+
export namespace UpdateDatapointAnnotationsDatasetsResponseType$ {
|
|
4006
|
+
/** @deprecated use `UpdateDatapointAnnotationsDatasetsResponseType$inboundSchema` instead. */
|
|
4007
|
+
export const inboundSchema =
|
|
4008
|
+
UpdateDatapointAnnotationsDatasetsResponseType$inboundSchema;
|
|
4009
|
+
/** @deprecated use `UpdateDatapointAnnotationsDatasetsResponseType$outboundSchema` instead. */
|
|
4010
|
+
export const outboundSchema =
|
|
4011
|
+
UpdateDatapointAnnotationsDatasetsResponseType$outboundSchema;
|
|
4012
|
+
}
|
|
4013
|
+
|
|
4014
|
+
/** @internal */
|
|
4015
|
+
export const UpdateDatapointAnnotationsDatasetsFileCitation$inboundSchema:
|
|
4016
|
+
z.ZodType<
|
|
4017
|
+
UpdateDatapointAnnotationsDatasetsFileCitation,
|
|
4018
|
+
z.ZodTypeDef,
|
|
4019
|
+
unknown
|
|
4020
|
+
> = z.object({
|
|
4021
|
+
file_id: z.string(),
|
|
4022
|
+
quote: z.string().optional(),
|
|
4023
|
+
}).transform((v) => {
|
|
4024
|
+
return remap$(v, {
|
|
4025
|
+
"file_id": "fileId",
|
|
4026
|
+
});
|
|
4027
|
+
});
|
|
4028
|
+
|
|
4029
|
+
/** @internal */
|
|
4030
|
+
export type UpdateDatapointAnnotationsDatasetsFileCitation$Outbound = {
|
|
4031
|
+
file_id: string;
|
|
4032
|
+
quote?: string | undefined;
|
|
4033
|
+
};
|
|
4034
|
+
|
|
4035
|
+
/** @internal */
|
|
4036
|
+
export const UpdateDatapointAnnotationsDatasetsFileCitation$outboundSchema:
|
|
4037
|
+
z.ZodType<
|
|
4038
|
+
UpdateDatapointAnnotationsDatasetsFileCitation$Outbound,
|
|
4039
|
+
z.ZodTypeDef,
|
|
4040
|
+
UpdateDatapointAnnotationsDatasetsFileCitation
|
|
4041
|
+
> = z.object({
|
|
4042
|
+
fileId: z.string(),
|
|
4043
|
+
quote: z.string().optional(),
|
|
4044
|
+
}).transform((v) => {
|
|
4045
|
+
return remap$(v, {
|
|
4046
|
+
fileId: "file_id",
|
|
4047
|
+
});
|
|
4048
|
+
});
|
|
4049
|
+
|
|
4050
|
+
/**
|
|
4051
|
+
* @internal
|
|
4052
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4053
|
+
*/
|
|
4054
|
+
export namespace UpdateDatapointAnnotationsDatasetsFileCitation$ {
|
|
4055
|
+
/** @deprecated use `UpdateDatapointAnnotationsDatasetsFileCitation$inboundSchema` instead. */
|
|
4056
|
+
export const inboundSchema =
|
|
4057
|
+
UpdateDatapointAnnotationsDatasetsFileCitation$inboundSchema;
|
|
4058
|
+
/** @deprecated use `UpdateDatapointAnnotationsDatasetsFileCitation$outboundSchema` instead. */
|
|
4059
|
+
export const outboundSchema =
|
|
4060
|
+
UpdateDatapointAnnotationsDatasetsFileCitation$outboundSchema;
|
|
4061
|
+
/** @deprecated use `UpdateDatapointAnnotationsDatasetsFileCitation$Outbound` instead. */
|
|
4062
|
+
export type Outbound =
|
|
4063
|
+
UpdateDatapointAnnotationsDatasetsFileCitation$Outbound;
|
|
4064
|
+
}
|
|
4065
|
+
|
|
4066
|
+
export function updateDatapointAnnotationsDatasetsFileCitationToJSON(
|
|
4067
|
+
updateDatapointAnnotationsDatasetsFileCitation:
|
|
4068
|
+
UpdateDatapointAnnotationsDatasetsFileCitation,
|
|
4069
|
+
): string {
|
|
4070
|
+
return JSON.stringify(
|
|
4071
|
+
UpdateDatapointAnnotationsDatasetsFileCitation$outboundSchema.parse(
|
|
4072
|
+
updateDatapointAnnotationsDatasetsFileCitation,
|
|
4073
|
+
),
|
|
4074
|
+
);
|
|
4075
|
+
}
|
|
4076
|
+
|
|
4077
|
+
export function updateDatapointAnnotationsDatasetsFileCitationFromJSON(
|
|
4078
|
+
jsonString: string,
|
|
4079
|
+
): SafeParseResult<
|
|
4080
|
+
UpdateDatapointAnnotationsDatasetsFileCitation,
|
|
4081
|
+
SDKValidationError
|
|
4082
|
+
> {
|
|
4083
|
+
return safeParse(
|
|
4084
|
+
jsonString,
|
|
4085
|
+
(x) =>
|
|
4086
|
+
UpdateDatapointAnnotationsDatasetsFileCitation$inboundSchema.parse(
|
|
4087
|
+
JSON.parse(x),
|
|
4088
|
+
),
|
|
4089
|
+
`Failed to parse 'UpdateDatapointAnnotationsDatasetsFileCitation' from JSON`,
|
|
4090
|
+
);
|
|
4091
|
+
}
|
|
4092
|
+
|
|
4093
|
+
/** @internal */
|
|
4094
|
+
export const UpdateDatapointAnnotationsDatasets1$inboundSchema: z.ZodType<
|
|
4095
|
+
UpdateDatapointAnnotationsDatasets1,
|
|
4096
|
+
z.ZodTypeDef,
|
|
4097
|
+
unknown
|
|
4098
|
+
> = z.object({
|
|
4099
|
+
type: UpdateDatapointAnnotationsDatasetsResponseType$inboundSchema,
|
|
4100
|
+
text: z.string(),
|
|
4101
|
+
file_citation: z.lazy(() =>
|
|
4102
|
+
UpdateDatapointAnnotationsDatasetsFileCitation$inboundSchema
|
|
4103
|
+
),
|
|
4104
|
+
start_index: z.number().int(),
|
|
4105
|
+
end_index: z.number().int(),
|
|
4106
|
+
}).transform((v) => {
|
|
4107
|
+
return remap$(v, {
|
|
4108
|
+
"file_citation": "fileCitation",
|
|
4109
|
+
"start_index": "startIndex",
|
|
4110
|
+
"end_index": "endIndex",
|
|
4111
|
+
});
|
|
4112
|
+
});
|
|
4113
|
+
|
|
4114
|
+
/** @internal */
|
|
4115
|
+
export type UpdateDatapointAnnotationsDatasets1$Outbound = {
|
|
4116
|
+
type: string;
|
|
4117
|
+
text: string;
|
|
4118
|
+
file_citation: UpdateDatapointAnnotationsDatasetsFileCitation$Outbound;
|
|
4119
|
+
start_index: number;
|
|
4120
|
+
end_index: number;
|
|
4121
|
+
};
|
|
4122
|
+
|
|
4123
|
+
/** @internal */
|
|
4124
|
+
export const UpdateDatapointAnnotationsDatasets1$outboundSchema: z.ZodType<
|
|
4125
|
+
UpdateDatapointAnnotationsDatasets1$Outbound,
|
|
4126
|
+
z.ZodTypeDef,
|
|
4127
|
+
UpdateDatapointAnnotationsDatasets1
|
|
4128
|
+
> = z.object({
|
|
4129
|
+
type: UpdateDatapointAnnotationsDatasetsResponseType$outboundSchema,
|
|
4130
|
+
text: z.string(),
|
|
4131
|
+
fileCitation: z.lazy(() =>
|
|
4132
|
+
UpdateDatapointAnnotationsDatasetsFileCitation$outboundSchema
|
|
4133
|
+
),
|
|
4134
|
+
startIndex: z.number().int(),
|
|
4135
|
+
endIndex: z.number().int(),
|
|
4136
|
+
}).transform((v) => {
|
|
4137
|
+
return remap$(v, {
|
|
4138
|
+
fileCitation: "file_citation",
|
|
4139
|
+
startIndex: "start_index",
|
|
4140
|
+
endIndex: "end_index",
|
|
4141
|
+
});
|
|
4142
|
+
});
|
|
4143
|
+
|
|
4144
|
+
/**
|
|
4145
|
+
* @internal
|
|
4146
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4147
|
+
*/
|
|
4148
|
+
export namespace UpdateDatapointAnnotationsDatasets1$ {
|
|
4149
|
+
/** @deprecated use `UpdateDatapointAnnotationsDatasets1$inboundSchema` instead. */
|
|
4150
|
+
export const inboundSchema =
|
|
4151
|
+
UpdateDatapointAnnotationsDatasets1$inboundSchema;
|
|
4152
|
+
/** @deprecated use `UpdateDatapointAnnotationsDatasets1$outboundSchema` instead. */
|
|
4153
|
+
export const outboundSchema =
|
|
4154
|
+
UpdateDatapointAnnotationsDatasets1$outboundSchema;
|
|
4155
|
+
/** @deprecated use `UpdateDatapointAnnotationsDatasets1$Outbound` instead. */
|
|
4156
|
+
export type Outbound = UpdateDatapointAnnotationsDatasets1$Outbound;
|
|
4157
|
+
}
|
|
4158
|
+
|
|
4159
|
+
export function updateDatapointAnnotationsDatasets1ToJSON(
|
|
4160
|
+
updateDatapointAnnotationsDatasets1: UpdateDatapointAnnotationsDatasets1,
|
|
4161
|
+
): string {
|
|
4162
|
+
return JSON.stringify(
|
|
4163
|
+
UpdateDatapointAnnotationsDatasets1$outboundSchema.parse(
|
|
4164
|
+
updateDatapointAnnotationsDatasets1,
|
|
4165
|
+
),
|
|
4166
|
+
);
|
|
4167
|
+
}
|
|
4168
|
+
|
|
4169
|
+
export function updateDatapointAnnotationsDatasets1FromJSON(
|
|
4170
|
+
jsonString: string,
|
|
4171
|
+
): SafeParseResult<UpdateDatapointAnnotationsDatasets1, SDKValidationError> {
|
|
4172
|
+
return safeParse(
|
|
4173
|
+
jsonString,
|
|
4174
|
+
(x) =>
|
|
4175
|
+
UpdateDatapointAnnotationsDatasets1$inboundSchema.parse(JSON.parse(x)),
|
|
4176
|
+
`Failed to parse 'UpdateDatapointAnnotationsDatasets1' from JSON`,
|
|
4177
|
+
);
|
|
4178
|
+
}
|
|
4179
|
+
|
|
4180
|
+
/** @internal */
|
|
4181
|
+
export const UpdateDatapoint2DatasetsAnnotations$inboundSchema: z.ZodType<
|
|
4182
|
+
UpdateDatapoint2DatasetsAnnotations,
|
|
4183
|
+
z.ZodTypeDef,
|
|
4184
|
+
unknown
|
|
4185
|
+
> = z.union([
|
|
4186
|
+
z.lazy(() => UpdateDatapointAnnotationsDatasets1$inboundSchema),
|
|
4187
|
+
z.lazy(() => UpdateDatapointAnnotationsDatasets2$inboundSchema),
|
|
4188
|
+
]);
|
|
4189
|
+
|
|
4190
|
+
/** @internal */
|
|
4191
|
+
export type UpdateDatapoint2DatasetsAnnotations$Outbound =
|
|
4192
|
+
| UpdateDatapointAnnotationsDatasets1$Outbound
|
|
4193
|
+
| UpdateDatapointAnnotationsDatasets2$Outbound;
|
|
4194
|
+
|
|
4195
|
+
/** @internal */
|
|
4196
|
+
export const UpdateDatapoint2DatasetsAnnotations$outboundSchema: z.ZodType<
|
|
4197
|
+
UpdateDatapoint2DatasetsAnnotations$Outbound,
|
|
4198
|
+
z.ZodTypeDef,
|
|
4199
|
+
UpdateDatapoint2DatasetsAnnotations
|
|
4200
|
+
> = z.union([
|
|
4201
|
+
z.lazy(() => UpdateDatapointAnnotationsDatasets1$outboundSchema),
|
|
4202
|
+
z.lazy(() => UpdateDatapointAnnotationsDatasets2$outboundSchema),
|
|
4203
|
+
]);
|
|
4204
|
+
|
|
4205
|
+
/**
|
|
4206
|
+
* @internal
|
|
4207
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4208
|
+
*/
|
|
4209
|
+
export namespace UpdateDatapoint2DatasetsAnnotations$ {
|
|
4210
|
+
/** @deprecated use `UpdateDatapoint2DatasetsAnnotations$inboundSchema` instead. */
|
|
4211
|
+
export const inboundSchema =
|
|
4212
|
+
UpdateDatapoint2DatasetsAnnotations$inboundSchema;
|
|
4213
|
+
/** @deprecated use `UpdateDatapoint2DatasetsAnnotations$outboundSchema` instead. */
|
|
4214
|
+
export const outboundSchema =
|
|
4215
|
+
UpdateDatapoint2DatasetsAnnotations$outboundSchema;
|
|
4216
|
+
/** @deprecated use `UpdateDatapoint2DatasetsAnnotations$Outbound` instead. */
|
|
4217
|
+
export type Outbound = UpdateDatapoint2DatasetsAnnotations$Outbound;
|
|
4218
|
+
}
|
|
4219
|
+
|
|
4220
|
+
export function updateDatapoint2DatasetsAnnotationsToJSON(
|
|
4221
|
+
updateDatapoint2DatasetsAnnotations: UpdateDatapoint2DatasetsAnnotations,
|
|
4222
|
+
): string {
|
|
4223
|
+
return JSON.stringify(
|
|
4224
|
+
UpdateDatapoint2DatasetsAnnotations$outboundSchema.parse(
|
|
4225
|
+
updateDatapoint2DatasetsAnnotations,
|
|
4226
|
+
),
|
|
4227
|
+
);
|
|
4228
|
+
}
|
|
4229
|
+
|
|
4230
|
+
export function updateDatapoint2DatasetsAnnotationsFromJSON(
|
|
4231
|
+
jsonString: string,
|
|
4232
|
+
): SafeParseResult<UpdateDatapoint2DatasetsAnnotations, SDKValidationError> {
|
|
4233
|
+
return safeParse(
|
|
4234
|
+
jsonString,
|
|
4235
|
+
(x) =>
|
|
4236
|
+
UpdateDatapoint2DatasetsAnnotations$inboundSchema.parse(JSON.parse(x)),
|
|
4237
|
+
`Failed to parse 'UpdateDatapoint2DatasetsAnnotations' from JSON`,
|
|
4238
|
+
);
|
|
4239
|
+
}
|
|
4240
|
+
|
|
3287
4241
|
/** @internal */
|
|
3288
4242
|
export const UpdateDatapoint2DatasetsTextContentPart$inboundSchema: z.ZodType<
|
|
3289
4243
|
UpdateDatapoint2DatasetsTextContentPart,
|
|
@@ -3293,12 +4247,24 @@ export const UpdateDatapoint2DatasetsTextContentPart$inboundSchema: z.ZodType<
|
|
|
3293
4247
|
type:
|
|
3294
4248
|
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessagesType$inboundSchema,
|
|
3295
4249
|
text: z.string(),
|
|
4250
|
+
annotations: z.array(
|
|
4251
|
+
z.union([
|
|
4252
|
+
z.lazy(() => UpdateDatapointAnnotationsDatasets1$inboundSchema),
|
|
4253
|
+
z.lazy(() => UpdateDatapointAnnotationsDatasets2$inboundSchema),
|
|
4254
|
+
]),
|
|
4255
|
+
).optional(),
|
|
3296
4256
|
});
|
|
3297
4257
|
|
|
3298
4258
|
/** @internal */
|
|
3299
4259
|
export type UpdateDatapoint2DatasetsTextContentPart$Outbound = {
|
|
3300
4260
|
type: string;
|
|
3301
4261
|
text: string;
|
|
4262
|
+
annotations?:
|
|
4263
|
+
| Array<
|
|
4264
|
+
| UpdateDatapointAnnotationsDatasets1$Outbound
|
|
4265
|
+
| UpdateDatapointAnnotationsDatasets2$Outbound
|
|
4266
|
+
>
|
|
4267
|
+
| undefined;
|
|
3302
4268
|
};
|
|
3303
4269
|
|
|
3304
4270
|
/** @internal */
|
|
@@ -3310,6 +4276,12 @@ export const UpdateDatapoint2DatasetsTextContentPart$outboundSchema: z.ZodType<
|
|
|
3310
4276
|
type:
|
|
3311
4277
|
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessagesType$outboundSchema,
|
|
3312
4278
|
text: z.string(),
|
|
4279
|
+
annotations: z.array(
|
|
4280
|
+
z.union([
|
|
4281
|
+
z.lazy(() => UpdateDatapointAnnotationsDatasets1$outboundSchema),
|
|
4282
|
+
z.lazy(() => UpdateDatapointAnnotationsDatasets2$outboundSchema),
|
|
4283
|
+
]),
|
|
4284
|
+
).optional(),
|
|
3313
4285
|
});
|
|
3314
4286
|
|
|
3315
4287
|
/**
|
|
@@ -5046,7 +6018,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
5046
6018
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
5047
6019
|
.optional(),
|
|
5048
6020
|
updated: z.string().datetime({ offset: true }).default(
|
|
5049
|
-
"2025-08-
|
|
6021
|
+
"2025-08-27T07:41:07.739Z",
|
|
5050
6022
|
).transform(v => new Date(v)),
|
|
5051
6023
|
}).transform((v) => {
|
|
5052
6024
|
return remap$(v, {
|
|
@@ -5108,7 +6080,7 @@ export const UpdateDatapointResponseBody$outboundSchema: z.ZodType<
|
|
|
5108
6080
|
createdById: z.string().optional(),
|
|
5109
6081
|
updatedById: z.string().optional(),
|
|
5110
6082
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
5111
|
-
updated: z.date().default(() => new Date("2025-08-
|
|
6083
|
+
updated: z.date().default(() => new Date("2025-08-27T07:41:07.739Z"))
|
|
5112
6084
|
.transform(v => v.toISOString()),
|
|
5113
6085
|
}).transform((v) => {
|
|
5114
6086
|
return remap$(v, {
|