@orq-ai/node 3.5.22 → 3.5.24
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 +40 -40
- package/bin/mcp-server.js.map +21 -21
- 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/bulkcreatedatapoints.js +2 -2
- 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/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.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/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.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/package.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +6 -6
- package/packages/orq-rc/package.json +2 -2
- 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 +1 -1
- package/packages/orq-rc/src/models/components/deployments.ts +1217 -1677
- package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +416 -12
- 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 +410 -13
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createprompt.ts +400 -12
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +1413 -1729
- package/packages/orq-rc/src/models/operations/deployments.ts +211 -23
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +1314 -1761
- 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/getallprompts.ts +200 -6
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +195 -6
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +204 -6
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +207 -8
- 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/listpromptversions.ts +202 -6
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +204 -8
- 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/searchknowledge.ts +1334 -1750
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +412 -14
- 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/updateprompt.ts +400 -12
- 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/bulkcreatedatapoints.ts +2 -2
- 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/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.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/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.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
|
@@ -284,6 +284,38 @@ export const ListPromptVersionsRole = {
|
|
|
284
284
|
*/
|
|
285
285
|
export type ListPromptVersionsRole = ClosedEnum<typeof ListPromptVersionsRole>;
|
|
286
286
|
|
|
287
|
+
/**
|
|
288
|
+
* The type of the content part. Always `file`.
|
|
289
|
+
*/
|
|
290
|
+
export const ListPromptVersions2PromptsResponseType = {
|
|
291
|
+
File: "file",
|
|
292
|
+
} as const;
|
|
293
|
+
/**
|
|
294
|
+
* The type of the content part. Always `file`.
|
|
295
|
+
*/
|
|
296
|
+
export type ListPromptVersions2PromptsResponseType = ClosedEnum<
|
|
297
|
+
typeof ListPromptVersions2PromptsResponseType
|
|
298
|
+
>;
|
|
299
|
+
|
|
300
|
+
export type ListPromptVersions2File = {
|
|
301
|
+
/**
|
|
302
|
+
* The base64 encoded file data, used when passing the file to the model as a string.
|
|
303
|
+
*/
|
|
304
|
+
fileData: string;
|
|
305
|
+
/**
|
|
306
|
+
* The name of the file, used when passing the file to the model as a string.
|
|
307
|
+
*/
|
|
308
|
+
filename?: string | undefined;
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
export type ListPromptVersions23 = {
|
|
312
|
+
/**
|
|
313
|
+
* The type of the content part. Always `file`.
|
|
314
|
+
*/
|
|
315
|
+
type: ListPromptVersions2PromptsResponseType;
|
|
316
|
+
file: ListPromptVersions2File;
|
|
317
|
+
};
|
|
318
|
+
|
|
287
319
|
export const ListPromptVersions2PromptsType = {
|
|
288
320
|
ImageUrl: "image_url",
|
|
289
321
|
} as const;
|
|
@@ -331,14 +363,15 @@ export type ListPromptVersions21 = {
|
|
|
331
363
|
|
|
332
364
|
export type ListPromptVersionsContent2 =
|
|
333
365
|
| ListPromptVersions21
|
|
334
|
-
| ListPromptVersions22
|
|
366
|
+
| ListPromptVersions22
|
|
367
|
+
| ListPromptVersions23;
|
|
335
368
|
|
|
336
369
|
/**
|
|
337
370
|
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
|
|
338
371
|
*/
|
|
339
372
|
export type ListPromptVersionsContent =
|
|
340
373
|
| string
|
|
341
|
-
| Array<ListPromptVersions21 | ListPromptVersions22>;
|
|
374
|
+
| Array<ListPromptVersions21 | ListPromptVersions22 | ListPromptVersions23>;
|
|
342
375
|
|
|
343
376
|
export const ListPromptVersionsType = {
|
|
344
377
|
Function: "function",
|
|
@@ -368,7 +401,9 @@ export type ListPromptVersionsMessages = {
|
|
|
368
401
|
/**
|
|
369
402
|
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
|
|
370
403
|
*/
|
|
371
|
-
content:
|
|
404
|
+
content:
|
|
405
|
+
| string
|
|
406
|
+
| Array<ListPromptVersions21 | ListPromptVersions22 | ListPromptVersions23>;
|
|
372
407
|
toolCalls?: Array<ListPromptVersionsToolCalls> | undefined;
|
|
373
408
|
toolCallId?: string | undefined;
|
|
374
409
|
};
|
|
@@ -1158,6 +1193,152 @@ export namespace ListPromptVersionsRole$ {
|
|
|
1158
1193
|
export const outboundSchema = ListPromptVersionsRole$outboundSchema;
|
|
1159
1194
|
}
|
|
1160
1195
|
|
|
1196
|
+
/** @internal */
|
|
1197
|
+
export const ListPromptVersions2PromptsResponseType$inboundSchema:
|
|
1198
|
+
z.ZodNativeEnum<typeof ListPromptVersions2PromptsResponseType> = z.nativeEnum(
|
|
1199
|
+
ListPromptVersions2PromptsResponseType,
|
|
1200
|
+
);
|
|
1201
|
+
|
|
1202
|
+
/** @internal */
|
|
1203
|
+
export const ListPromptVersions2PromptsResponseType$outboundSchema:
|
|
1204
|
+
z.ZodNativeEnum<typeof ListPromptVersions2PromptsResponseType> =
|
|
1205
|
+
ListPromptVersions2PromptsResponseType$inboundSchema;
|
|
1206
|
+
|
|
1207
|
+
/**
|
|
1208
|
+
* @internal
|
|
1209
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1210
|
+
*/
|
|
1211
|
+
export namespace ListPromptVersions2PromptsResponseType$ {
|
|
1212
|
+
/** @deprecated use `ListPromptVersions2PromptsResponseType$inboundSchema` instead. */
|
|
1213
|
+
export const inboundSchema =
|
|
1214
|
+
ListPromptVersions2PromptsResponseType$inboundSchema;
|
|
1215
|
+
/** @deprecated use `ListPromptVersions2PromptsResponseType$outboundSchema` instead. */
|
|
1216
|
+
export const outboundSchema =
|
|
1217
|
+
ListPromptVersions2PromptsResponseType$outboundSchema;
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
/** @internal */
|
|
1221
|
+
export const ListPromptVersions2File$inboundSchema: z.ZodType<
|
|
1222
|
+
ListPromptVersions2File,
|
|
1223
|
+
z.ZodTypeDef,
|
|
1224
|
+
unknown
|
|
1225
|
+
> = z.object({
|
|
1226
|
+
file_data: z.string(),
|
|
1227
|
+
filename: z.string().optional(),
|
|
1228
|
+
}).transform((v) => {
|
|
1229
|
+
return remap$(v, {
|
|
1230
|
+
"file_data": "fileData",
|
|
1231
|
+
});
|
|
1232
|
+
});
|
|
1233
|
+
|
|
1234
|
+
/** @internal */
|
|
1235
|
+
export type ListPromptVersions2File$Outbound = {
|
|
1236
|
+
file_data: string;
|
|
1237
|
+
filename?: string | undefined;
|
|
1238
|
+
};
|
|
1239
|
+
|
|
1240
|
+
/** @internal */
|
|
1241
|
+
export const ListPromptVersions2File$outboundSchema: z.ZodType<
|
|
1242
|
+
ListPromptVersions2File$Outbound,
|
|
1243
|
+
z.ZodTypeDef,
|
|
1244
|
+
ListPromptVersions2File
|
|
1245
|
+
> = z.object({
|
|
1246
|
+
fileData: z.string(),
|
|
1247
|
+
filename: z.string().optional(),
|
|
1248
|
+
}).transform((v) => {
|
|
1249
|
+
return remap$(v, {
|
|
1250
|
+
fileData: "file_data",
|
|
1251
|
+
});
|
|
1252
|
+
});
|
|
1253
|
+
|
|
1254
|
+
/**
|
|
1255
|
+
* @internal
|
|
1256
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1257
|
+
*/
|
|
1258
|
+
export namespace ListPromptVersions2File$ {
|
|
1259
|
+
/** @deprecated use `ListPromptVersions2File$inboundSchema` instead. */
|
|
1260
|
+
export const inboundSchema = ListPromptVersions2File$inboundSchema;
|
|
1261
|
+
/** @deprecated use `ListPromptVersions2File$outboundSchema` instead. */
|
|
1262
|
+
export const outboundSchema = ListPromptVersions2File$outboundSchema;
|
|
1263
|
+
/** @deprecated use `ListPromptVersions2File$Outbound` instead. */
|
|
1264
|
+
export type Outbound = ListPromptVersions2File$Outbound;
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
export function listPromptVersions2FileToJSON(
|
|
1268
|
+
listPromptVersions2File: ListPromptVersions2File,
|
|
1269
|
+
): string {
|
|
1270
|
+
return JSON.stringify(
|
|
1271
|
+
ListPromptVersions2File$outboundSchema.parse(listPromptVersions2File),
|
|
1272
|
+
);
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
export function listPromptVersions2FileFromJSON(
|
|
1276
|
+
jsonString: string,
|
|
1277
|
+
): SafeParseResult<ListPromptVersions2File, SDKValidationError> {
|
|
1278
|
+
return safeParse(
|
|
1279
|
+
jsonString,
|
|
1280
|
+
(x) => ListPromptVersions2File$inboundSchema.parse(JSON.parse(x)),
|
|
1281
|
+
`Failed to parse 'ListPromptVersions2File' from JSON`,
|
|
1282
|
+
);
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
/** @internal */
|
|
1286
|
+
export const ListPromptVersions23$inboundSchema: z.ZodType<
|
|
1287
|
+
ListPromptVersions23,
|
|
1288
|
+
z.ZodTypeDef,
|
|
1289
|
+
unknown
|
|
1290
|
+
> = z.object({
|
|
1291
|
+
type: ListPromptVersions2PromptsResponseType$inboundSchema,
|
|
1292
|
+
file: z.lazy(() => ListPromptVersions2File$inboundSchema),
|
|
1293
|
+
});
|
|
1294
|
+
|
|
1295
|
+
/** @internal */
|
|
1296
|
+
export type ListPromptVersions23$Outbound = {
|
|
1297
|
+
type: string;
|
|
1298
|
+
file: ListPromptVersions2File$Outbound;
|
|
1299
|
+
};
|
|
1300
|
+
|
|
1301
|
+
/** @internal */
|
|
1302
|
+
export const ListPromptVersions23$outboundSchema: z.ZodType<
|
|
1303
|
+
ListPromptVersions23$Outbound,
|
|
1304
|
+
z.ZodTypeDef,
|
|
1305
|
+
ListPromptVersions23
|
|
1306
|
+
> = z.object({
|
|
1307
|
+
type: ListPromptVersions2PromptsResponseType$outboundSchema,
|
|
1308
|
+
file: z.lazy(() => ListPromptVersions2File$outboundSchema),
|
|
1309
|
+
});
|
|
1310
|
+
|
|
1311
|
+
/**
|
|
1312
|
+
* @internal
|
|
1313
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1314
|
+
*/
|
|
1315
|
+
export namespace ListPromptVersions23$ {
|
|
1316
|
+
/** @deprecated use `ListPromptVersions23$inboundSchema` instead. */
|
|
1317
|
+
export const inboundSchema = ListPromptVersions23$inboundSchema;
|
|
1318
|
+
/** @deprecated use `ListPromptVersions23$outboundSchema` instead. */
|
|
1319
|
+
export const outboundSchema = ListPromptVersions23$outboundSchema;
|
|
1320
|
+
/** @deprecated use `ListPromptVersions23$Outbound` instead. */
|
|
1321
|
+
export type Outbound = ListPromptVersions23$Outbound;
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
export function listPromptVersions23ToJSON(
|
|
1325
|
+
listPromptVersions23: ListPromptVersions23,
|
|
1326
|
+
): string {
|
|
1327
|
+
return JSON.stringify(
|
|
1328
|
+
ListPromptVersions23$outboundSchema.parse(listPromptVersions23),
|
|
1329
|
+
);
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
export function listPromptVersions23FromJSON(
|
|
1333
|
+
jsonString: string,
|
|
1334
|
+
): SafeParseResult<ListPromptVersions23, SDKValidationError> {
|
|
1335
|
+
return safeParse(
|
|
1336
|
+
jsonString,
|
|
1337
|
+
(x) => ListPromptVersions23$inboundSchema.parse(JSON.parse(x)),
|
|
1338
|
+
`Failed to parse 'ListPromptVersions23' from JSON`,
|
|
1339
|
+
);
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1161
1342
|
/** @internal */
|
|
1162
1343
|
export const ListPromptVersions2PromptsType$inboundSchema: z.ZodNativeEnum<
|
|
1163
1344
|
typeof ListPromptVersions2PromptsType
|
|
@@ -1392,12 +1573,14 @@ export const ListPromptVersionsContent2$inboundSchema: z.ZodType<
|
|
|
1392
1573
|
> = z.union([
|
|
1393
1574
|
z.lazy(() => ListPromptVersions21$inboundSchema),
|
|
1394
1575
|
z.lazy(() => ListPromptVersions22$inboundSchema),
|
|
1576
|
+
z.lazy(() => ListPromptVersions23$inboundSchema),
|
|
1395
1577
|
]);
|
|
1396
1578
|
|
|
1397
1579
|
/** @internal */
|
|
1398
1580
|
export type ListPromptVersionsContent2$Outbound =
|
|
1399
1581
|
| ListPromptVersions21$Outbound
|
|
1400
|
-
| ListPromptVersions22$Outbound
|
|
1582
|
+
| ListPromptVersions22$Outbound
|
|
1583
|
+
| ListPromptVersions23$Outbound;
|
|
1401
1584
|
|
|
1402
1585
|
/** @internal */
|
|
1403
1586
|
export const ListPromptVersionsContent2$outboundSchema: z.ZodType<
|
|
@@ -1407,6 +1590,7 @@ export const ListPromptVersionsContent2$outboundSchema: z.ZodType<
|
|
|
1407
1590
|
> = z.union([
|
|
1408
1591
|
z.lazy(() => ListPromptVersions21$outboundSchema),
|
|
1409
1592
|
z.lazy(() => ListPromptVersions22$outboundSchema),
|
|
1593
|
+
z.lazy(() => ListPromptVersions23$outboundSchema),
|
|
1410
1594
|
]);
|
|
1411
1595
|
|
|
1412
1596
|
/**
|
|
@@ -1450,13 +1634,18 @@ export const ListPromptVersionsContent$inboundSchema: z.ZodType<
|
|
|
1450
1634
|
z.array(z.union([
|
|
1451
1635
|
z.lazy(() => ListPromptVersions21$inboundSchema),
|
|
1452
1636
|
z.lazy(() => ListPromptVersions22$inboundSchema),
|
|
1637
|
+
z.lazy(() => ListPromptVersions23$inboundSchema),
|
|
1453
1638
|
])),
|
|
1454
1639
|
]);
|
|
1455
1640
|
|
|
1456
1641
|
/** @internal */
|
|
1457
1642
|
export type ListPromptVersionsContent$Outbound =
|
|
1458
1643
|
| string
|
|
1459
|
-
| Array<
|
|
1644
|
+
| Array<
|
|
1645
|
+
| ListPromptVersions21$Outbound
|
|
1646
|
+
| ListPromptVersions22$Outbound
|
|
1647
|
+
| ListPromptVersions23$Outbound
|
|
1648
|
+
>;
|
|
1460
1649
|
|
|
1461
1650
|
/** @internal */
|
|
1462
1651
|
export const ListPromptVersionsContent$outboundSchema: z.ZodType<
|
|
@@ -1468,6 +1657,7 @@ export const ListPromptVersionsContent$outboundSchema: z.ZodType<
|
|
|
1468
1657
|
z.array(z.union([
|
|
1469
1658
|
z.lazy(() => ListPromptVersions21$outboundSchema),
|
|
1470
1659
|
z.lazy(() => ListPromptVersions22$outboundSchema),
|
|
1660
|
+
z.lazy(() => ListPromptVersions23$outboundSchema),
|
|
1471
1661
|
])),
|
|
1472
1662
|
]);
|
|
1473
1663
|
|
|
@@ -1657,6 +1847,7 @@ export const ListPromptVersionsMessages$inboundSchema: z.ZodType<
|
|
|
1657
1847
|
z.array(z.union([
|
|
1658
1848
|
z.lazy(() => ListPromptVersions21$inboundSchema),
|
|
1659
1849
|
z.lazy(() => ListPromptVersions22$inboundSchema),
|
|
1850
|
+
z.lazy(() => ListPromptVersions23$inboundSchema),
|
|
1660
1851
|
])),
|
|
1661
1852
|
]),
|
|
1662
1853
|
tool_calls: z.array(z.lazy(() => ListPromptVersionsToolCalls$inboundSchema))
|
|
@@ -1674,7 +1865,11 @@ export type ListPromptVersionsMessages$Outbound = {
|
|
|
1674
1865
|
role: string;
|
|
1675
1866
|
content:
|
|
1676
1867
|
| string
|
|
1677
|
-
| Array<
|
|
1868
|
+
| Array<
|
|
1869
|
+
| ListPromptVersions21$Outbound
|
|
1870
|
+
| ListPromptVersions22$Outbound
|
|
1871
|
+
| ListPromptVersions23$Outbound
|
|
1872
|
+
>;
|
|
1678
1873
|
tool_calls?: Array<ListPromptVersionsToolCalls$Outbound> | undefined;
|
|
1679
1874
|
tool_call_id?: string | undefined;
|
|
1680
1875
|
};
|
|
@@ -1691,6 +1886,7 @@ export const ListPromptVersionsMessages$outboundSchema: z.ZodType<
|
|
|
1691
1886
|
z.array(z.union([
|
|
1692
1887
|
z.lazy(() => ListPromptVersions21$outboundSchema),
|
|
1693
1888
|
z.lazy(() => ListPromptVersions22$outboundSchema),
|
|
1889
|
+
z.lazy(() => ListPromptVersions23$outboundSchema),
|
|
1694
1890
|
])),
|
|
1695
1891
|
]),
|
|
1696
1892
|
toolCalls: z.array(z.lazy(() => ListPromptVersionsToolCalls$outboundSchema))
|
|
@@ -32,6 +32,38 @@ export const RetrieveDatapointRole = {
|
|
|
32
32
|
*/
|
|
33
33
|
export type RetrieveDatapointRole = ClosedEnum<typeof RetrieveDatapointRole>;
|
|
34
34
|
|
|
35
|
+
/**
|
|
36
|
+
* The type of the content part. Always `file`.
|
|
37
|
+
*/
|
|
38
|
+
export const RetrieveDatapoint2DatasetsResponseType = {
|
|
39
|
+
File: "file",
|
|
40
|
+
} as const;
|
|
41
|
+
/**
|
|
42
|
+
* The type of the content part. Always `file`.
|
|
43
|
+
*/
|
|
44
|
+
export type RetrieveDatapoint2DatasetsResponseType = ClosedEnum<
|
|
45
|
+
typeof RetrieveDatapoint2DatasetsResponseType
|
|
46
|
+
>;
|
|
47
|
+
|
|
48
|
+
export type RetrieveDatapoint2File = {
|
|
49
|
+
/**
|
|
50
|
+
* The base64 encoded file data, used when passing the file to the model as a string.
|
|
51
|
+
*/
|
|
52
|
+
fileData: string;
|
|
53
|
+
/**
|
|
54
|
+
* The name of the file, used when passing the file to the model as a string.
|
|
55
|
+
*/
|
|
56
|
+
filename?: string | undefined;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export type RetrieveDatapoint23 = {
|
|
60
|
+
/**
|
|
61
|
+
* The type of the content part. Always `file`.
|
|
62
|
+
*/
|
|
63
|
+
type: RetrieveDatapoint2DatasetsResponseType;
|
|
64
|
+
file: RetrieveDatapoint2File;
|
|
65
|
+
};
|
|
66
|
+
|
|
35
67
|
export const RetrieveDatapoint2DatasetsType = {
|
|
36
68
|
ImageUrl: "image_url",
|
|
37
69
|
} as const;
|
|
@@ -77,14 +109,15 @@ export type RetrieveDatapoint21 = {
|
|
|
77
109
|
|
|
78
110
|
export type RetrieveDatapointContent2 =
|
|
79
111
|
| RetrieveDatapoint21
|
|
80
|
-
| RetrieveDatapoint22
|
|
112
|
+
| RetrieveDatapoint22
|
|
113
|
+
| RetrieveDatapoint23;
|
|
81
114
|
|
|
82
115
|
/**
|
|
83
116
|
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
|
|
84
117
|
*/
|
|
85
118
|
export type RetrieveDatapointContent =
|
|
86
119
|
| string
|
|
87
|
-
| Array<RetrieveDatapoint21 | RetrieveDatapoint22>;
|
|
120
|
+
| Array<RetrieveDatapoint21 | RetrieveDatapoint22 | RetrieveDatapoint23>;
|
|
88
121
|
|
|
89
122
|
export const RetrieveDatapointType = {
|
|
90
123
|
Function: "function",
|
|
@@ -114,7 +147,9 @@ export type RetrieveDatapointMessages = {
|
|
|
114
147
|
/**
|
|
115
148
|
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
|
|
116
149
|
*/
|
|
117
|
-
content:
|
|
150
|
+
content:
|
|
151
|
+
| string
|
|
152
|
+
| Array<RetrieveDatapoint21 | RetrieveDatapoint22 | RetrieveDatapoint23>;
|
|
118
153
|
toolCalls?: Array<RetrieveDatapointToolCalls> | undefined;
|
|
119
154
|
toolCallId?: string | undefined;
|
|
120
155
|
};
|
|
@@ -250,6 +285,152 @@ export namespace RetrieveDatapointRole$ {
|
|
|
250
285
|
export const outboundSchema = RetrieveDatapointRole$outboundSchema;
|
|
251
286
|
}
|
|
252
287
|
|
|
288
|
+
/** @internal */
|
|
289
|
+
export const RetrieveDatapoint2DatasetsResponseType$inboundSchema:
|
|
290
|
+
z.ZodNativeEnum<typeof RetrieveDatapoint2DatasetsResponseType> = z.nativeEnum(
|
|
291
|
+
RetrieveDatapoint2DatasetsResponseType,
|
|
292
|
+
);
|
|
293
|
+
|
|
294
|
+
/** @internal */
|
|
295
|
+
export const RetrieveDatapoint2DatasetsResponseType$outboundSchema:
|
|
296
|
+
z.ZodNativeEnum<typeof RetrieveDatapoint2DatasetsResponseType> =
|
|
297
|
+
RetrieveDatapoint2DatasetsResponseType$inboundSchema;
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* @internal
|
|
301
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
302
|
+
*/
|
|
303
|
+
export namespace RetrieveDatapoint2DatasetsResponseType$ {
|
|
304
|
+
/** @deprecated use `RetrieveDatapoint2DatasetsResponseType$inboundSchema` instead. */
|
|
305
|
+
export const inboundSchema =
|
|
306
|
+
RetrieveDatapoint2DatasetsResponseType$inboundSchema;
|
|
307
|
+
/** @deprecated use `RetrieveDatapoint2DatasetsResponseType$outboundSchema` instead. */
|
|
308
|
+
export const outboundSchema =
|
|
309
|
+
RetrieveDatapoint2DatasetsResponseType$outboundSchema;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/** @internal */
|
|
313
|
+
export const RetrieveDatapoint2File$inboundSchema: z.ZodType<
|
|
314
|
+
RetrieveDatapoint2File,
|
|
315
|
+
z.ZodTypeDef,
|
|
316
|
+
unknown
|
|
317
|
+
> = z.object({
|
|
318
|
+
file_data: z.string(),
|
|
319
|
+
filename: z.string().optional(),
|
|
320
|
+
}).transform((v) => {
|
|
321
|
+
return remap$(v, {
|
|
322
|
+
"file_data": "fileData",
|
|
323
|
+
});
|
|
324
|
+
});
|
|
325
|
+
|
|
326
|
+
/** @internal */
|
|
327
|
+
export type RetrieveDatapoint2File$Outbound = {
|
|
328
|
+
file_data: string;
|
|
329
|
+
filename?: string | undefined;
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
/** @internal */
|
|
333
|
+
export const RetrieveDatapoint2File$outboundSchema: z.ZodType<
|
|
334
|
+
RetrieveDatapoint2File$Outbound,
|
|
335
|
+
z.ZodTypeDef,
|
|
336
|
+
RetrieveDatapoint2File
|
|
337
|
+
> = z.object({
|
|
338
|
+
fileData: z.string(),
|
|
339
|
+
filename: z.string().optional(),
|
|
340
|
+
}).transform((v) => {
|
|
341
|
+
return remap$(v, {
|
|
342
|
+
fileData: "file_data",
|
|
343
|
+
});
|
|
344
|
+
});
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* @internal
|
|
348
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
349
|
+
*/
|
|
350
|
+
export namespace RetrieveDatapoint2File$ {
|
|
351
|
+
/** @deprecated use `RetrieveDatapoint2File$inboundSchema` instead. */
|
|
352
|
+
export const inboundSchema = RetrieveDatapoint2File$inboundSchema;
|
|
353
|
+
/** @deprecated use `RetrieveDatapoint2File$outboundSchema` instead. */
|
|
354
|
+
export const outboundSchema = RetrieveDatapoint2File$outboundSchema;
|
|
355
|
+
/** @deprecated use `RetrieveDatapoint2File$Outbound` instead. */
|
|
356
|
+
export type Outbound = RetrieveDatapoint2File$Outbound;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
export function retrieveDatapoint2FileToJSON(
|
|
360
|
+
retrieveDatapoint2File: RetrieveDatapoint2File,
|
|
361
|
+
): string {
|
|
362
|
+
return JSON.stringify(
|
|
363
|
+
RetrieveDatapoint2File$outboundSchema.parse(retrieveDatapoint2File),
|
|
364
|
+
);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
export function retrieveDatapoint2FileFromJSON(
|
|
368
|
+
jsonString: string,
|
|
369
|
+
): SafeParseResult<RetrieveDatapoint2File, SDKValidationError> {
|
|
370
|
+
return safeParse(
|
|
371
|
+
jsonString,
|
|
372
|
+
(x) => RetrieveDatapoint2File$inboundSchema.parse(JSON.parse(x)),
|
|
373
|
+
`Failed to parse 'RetrieveDatapoint2File' from JSON`,
|
|
374
|
+
);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/** @internal */
|
|
378
|
+
export const RetrieveDatapoint23$inboundSchema: z.ZodType<
|
|
379
|
+
RetrieveDatapoint23,
|
|
380
|
+
z.ZodTypeDef,
|
|
381
|
+
unknown
|
|
382
|
+
> = z.object({
|
|
383
|
+
type: RetrieveDatapoint2DatasetsResponseType$inboundSchema,
|
|
384
|
+
file: z.lazy(() => RetrieveDatapoint2File$inboundSchema),
|
|
385
|
+
});
|
|
386
|
+
|
|
387
|
+
/** @internal */
|
|
388
|
+
export type RetrieveDatapoint23$Outbound = {
|
|
389
|
+
type: string;
|
|
390
|
+
file: RetrieveDatapoint2File$Outbound;
|
|
391
|
+
};
|
|
392
|
+
|
|
393
|
+
/** @internal */
|
|
394
|
+
export const RetrieveDatapoint23$outboundSchema: z.ZodType<
|
|
395
|
+
RetrieveDatapoint23$Outbound,
|
|
396
|
+
z.ZodTypeDef,
|
|
397
|
+
RetrieveDatapoint23
|
|
398
|
+
> = z.object({
|
|
399
|
+
type: RetrieveDatapoint2DatasetsResponseType$outboundSchema,
|
|
400
|
+
file: z.lazy(() => RetrieveDatapoint2File$outboundSchema),
|
|
401
|
+
});
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* @internal
|
|
405
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
406
|
+
*/
|
|
407
|
+
export namespace RetrieveDatapoint23$ {
|
|
408
|
+
/** @deprecated use `RetrieveDatapoint23$inboundSchema` instead. */
|
|
409
|
+
export const inboundSchema = RetrieveDatapoint23$inboundSchema;
|
|
410
|
+
/** @deprecated use `RetrieveDatapoint23$outboundSchema` instead. */
|
|
411
|
+
export const outboundSchema = RetrieveDatapoint23$outboundSchema;
|
|
412
|
+
/** @deprecated use `RetrieveDatapoint23$Outbound` instead. */
|
|
413
|
+
export type Outbound = RetrieveDatapoint23$Outbound;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
export function retrieveDatapoint23ToJSON(
|
|
417
|
+
retrieveDatapoint23: RetrieveDatapoint23,
|
|
418
|
+
): string {
|
|
419
|
+
return JSON.stringify(
|
|
420
|
+
RetrieveDatapoint23$outboundSchema.parse(retrieveDatapoint23),
|
|
421
|
+
);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
export function retrieveDatapoint23FromJSON(
|
|
425
|
+
jsonString: string,
|
|
426
|
+
): SafeParseResult<RetrieveDatapoint23, SDKValidationError> {
|
|
427
|
+
return safeParse(
|
|
428
|
+
jsonString,
|
|
429
|
+
(x) => RetrieveDatapoint23$inboundSchema.parse(JSON.parse(x)),
|
|
430
|
+
`Failed to parse 'RetrieveDatapoint23' from JSON`,
|
|
431
|
+
);
|
|
432
|
+
}
|
|
433
|
+
|
|
253
434
|
/** @internal */
|
|
254
435
|
export const RetrieveDatapoint2DatasetsType$inboundSchema: z.ZodNativeEnum<
|
|
255
436
|
typeof RetrieveDatapoint2DatasetsType
|
|
@@ -482,12 +663,14 @@ export const RetrieveDatapointContent2$inboundSchema: z.ZodType<
|
|
|
482
663
|
> = z.union([
|
|
483
664
|
z.lazy(() => RetrieveDatapoint21$inboundSchema),
|
|
484
665
|
z.lazy(() => RetrieveDatapoint22$inboundSchema),
|
|
666
|
+
z.lazy(() => RetrieveDatapoint23$inboundSchema),
|
|
485
667
|
]);
|
|
486
668
|
|
|
487
669
|
/** @internal */
|
|
488
670
|
export type RetrieveDatapointContent2$Outbound =
|
|
489
671
|
| RetrieveDatapoint21$Outbound
|
|
490
|
-
| RetrieveDatapoint22$Outbound
|
|
672
|
+
| RetrieveDatapoint22$Outbound
|
|
673
|
+
| RetrieveDatapoint23$Outbound;
|
|
491
674
|
|
|
492
675
|
/** @internal */
|
|
493
676
|
export const RetrieveDatapointContent2$outboundSchema: z.ZodType<
|
|
@@ -497,6 +680,7 @@ export const RetrieveDatapointContent2$outboundSchema: z.ZodType<
|
|
|
497
680
|
> = z.union([
|
|
498
681
|
z.lazy(() => RetrieveDatapoint21$outboundSchema),
|
|
499
682
|
z.lazy(() => RetrieveDatapoint22$outboundSchema),
|
|
683
|
+
z.lazy(() => RetrieveDatapoint23$outboundSchema),
|
|
500
684
|
]);
|
|
501
685
|
|
|
502
686
|
/**
|
|
@@ -540,13 +724,18 @@ export const RetrieveDatapointContent$inboundSchema: z.ZodType<
|
|
|
540
724
|
z.array(z.union([
|
|
541
725
|
z.lazy(() => RetrieveDatapoint21$inboundSchema),
|
|
542
726
|
z.lazy(() => RetrieveDatapoint22$inboundSchema),
|
|
727
|
+
z.lazy(() => RetrieveDatapoint23$inboundSchema),
|
|
543
728
|
])),
|
|
544
729
|
]);
|
|
545
730
|
|
|
546
731
|
/** @internal */
|
|
547
732
|
export type RetrieveDatapointContent$Outbound =
|
|
548
733
|
| string
|
|
549
|
-
| Array<
|
|
734
|
+
| Array<
|
|
735
|
+
| RetrieveDatapoint21$Outbound
|
|
736
|
+
| RetrieveDatapoint22$Outbound
|
|
737
|
+
| RetrieveDatapoint23$Outbound
|
|
738
|
+
>;
|
|
550
739
|
|
|
551
740
|
/** @internal */
|
|
552
741
|
export const RetrieveDatapointContent$outboundSchema: z.ZodType<
|
|
@@ -558,6 +747,7 @@ export const RetrieveDatapointContent$outboundSchema: z.ZodType<
|
|
|
558
747
|
z.array(z.union([
|
|
559
748
|
z.lazy(() => RetrieveDatapoint21$outboundSchema),
|
|
560
749
|
z.lazy(() => RetrieveDatapoint22$outboundSchema),
|
|
750
|
+
z.lazy(() => RetrieveDatapoint23$outboundSchema),
|
|
561
751
|
])),
|
|
562
752
|
]);
|
|
563
753
|
|
|
@@ -745,6 +935,7 @@ export const RetrieveDatapointMessages$inboundSchema: z.ZodType<
|
|
|
745
935
|
z.array(z.union([
|
|
746
936
|
z.lazy(() => RetrieveDatapoint21$inboundSchema),
|
|
747
937
|
z.lazy(() => RetrieveDatapoint22$inboundSchema),
|
|
938
|
+
z.lazy(() => RetrieveDatapoint23$inboundSchema),
|
|
748
939
|
])),
|
|
749
940
|
]),
|
|
750
941
|
tool_calls: z.array(z.lazy(() => RetrieveDatapointToolCalls$inboundSchema))
|
|
@@ -762,7 +953,11 @@ export type RetrieveDatapointMessages$Outbound = {
|
|
|
762
953
|
role: string;
|
|
763
954
|
content:
|
|
764
955
|
| string
|
|
765
|
-
| Array<
|
|
956
|
+
| Array<
|
|
957
|
+
| RetrieveDatapoint21$Outbound
|
|
958
|
+
| RetrieveDatapoint22$Outbound
|
|
959
|
+
| RetrieveDatapoint23$Outbound
|
|
960
|
+
>;
|
|
766
961
|
tool_calls?: Array<RetrieveDatapointToolCalls$Outbound> | undefined;
|
|
767
962
|
tool_call_id?: string | undefined;
|
|
768
963
|
};
|
|
@@ -779,6 +974,7 @@ export const RetrieveDatapointMessages$outboundSchema: z.ZodType<
|
|
|
779
974
|
z.array(z.union([
|
|
780
975
|
z.lazy(() => RetrieveDatapoint21$outboundSchema),
|
|
781
976
|
z.lazy(() => RetrieveDatapoint22$outboundSchema),
|
|
977
|
+
z.lazy(() => RetrieveDatapoint23$outboundSchema),
|
|
782
978
|
])),
|
|
783
979
|
]),
|
|
784
980
|
toolCalls: z.array(z.lazy(() => RetrieveDatapointToolCalls$outboundSchema))
|
|
@@ -840,7 +1036,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
840
1036
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
841
1037
|
.optional(),
|
|
842
1038
|
updated: z.string().datetime({ offset: true }).default(
|
|
843
|
-
"2025-05-
|
|
1039
|
+
"2025-05-27T12:52:03.139Z",
|
|
844
1040
|
).transform(v => new Date(v)),
|
|
845
1041
|
}).transform((v) => {
|
|
846
1042
|
return remap$(v, {
|
|
@@ -883,7 +1079,7 @@ export const RetrieveDatapointResponseBody$outboundSchema: z.ZodType<
|
|
|
883
1079
|
createdById: z.string().optional(),
|
|
884
1080
|
updatedById: z.string().optional(),
|
|
885
1081
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
886
|
-
updated: z.date().default(() => new Date("2025-05-
|
|
1082
|
+
updated: z.date().default(() => new Date("2025-05-27T12:52:03.139Z"))
|
|
887
1083
|
.transform(v => v.toISOString()),
|
|
888
1084
|
}).transform((v) => {
|
|
889
1085
|
return remap$(v, {
|
|
@@ -201,7 +201,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
201
201
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
202
202
|
.optional(),
|
|
203
203
|
updated: z.string().datetime({ offset: true }).default(
|
|
204
|
-
"2025-05-
|
|
204
|
+
"2025-05-27T12:52:03.139Z",
|
|
205
205
|
).transform(v => new Date(v)),
|
|
206
206
|
}).transform((v) => {
|
|
207
207
|
return remap$(v, {
|
|
@@ -241,7 +241,7 @@ export const RetrieveDatasetResponseBody$outboundSchema: z.ZodType<
|
|
|
241
241
|
updatedById: z.string().optional(),
|
|
242
242
|
metadata: z.lazy(() => RetrieveDatasetMetadata$outboundSchema),
|
|
243
243
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
244
|
-
updated: z.date().default(() => new Date("2025-05-
|
|
244
|
+
updated: z.date().default(() => new Date("2025-05-27T12:52:03.139Z"))
|
|
245
245
|
.transform(v => v.toISOString()),
|
|
246
246
|
}).transform((v) => {
|
|
247
247
|
return remap$(v, {
|
|
@@ -172,7 +172,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
172
172
|
z.ZodTypeDef,
|
|
173
173
|
unknown
|
|
174
174
|
> = z.object({
|
|
175
|
-
_id: z.string().default("
|
|
175
|
+
_id: z.string().default("01JW8WSSGYG722K8MK6A4FTTMA"),
|
|
176
176
|
display_name: z.string(),
|
|
177
177
|
description: z.string().optional(),
|
|
178
178
|
status: RetrieveDatasourceStatus$inboundSchema,
|
|
@@ -216,7 +216,7 @@ export const RetrieveDatasourceResponseBody$outboundSchema: z.ZodType<
|
|
|
216
216
|
z.ZodTypeDef,
|
|
217
217
|
RetrieveDatasourceResponseBody
|
|
218
218
|
> = z.object({
|
|
219
|
-
id: z.string().default("
|
|
219
|
+
id: z.string().default("01JW8WSSGYG722K8MK6A4FTTMA"),
|
|
220
220
|
displayName: z.string(),
|
|
221
221
|
description: z.string().optional(),
|
|
222
222
|
status: RetrieveDatasourceStatus$outboundSchema,
|