@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
|
@@ -270,6 +270,38 @@ export const GetPromptVersionRole = {
|
|
|
270
270
|
*/
|
|
271
271
|
export type GetPromptVersionRole = ClosedEnum<typeof GetPromptVersionRole>;
|
|
272
272
|
|
|
273
|
+
/**
|
|
274
|
+
* The type of the content part. Always `file`.
|
|
275
|
+
*/
|
|
276
|
+
export const GetPromptVersion2PromptsResponseType = {
|
|
277
|
+
File: "file",
|
|
278
|
+
} as const;
|
|
279
|
+
/**
|
|
280
|
+
* The type of the content part. Always `file`.
|
|
281
|
+
*/
|
|
282
|
+
export type GetPromptVersion2PromptsResponseType = ClosedEnum<
|
|
283
|
+
typeof GetPromptVersion2PromptsResponseType
|
|
284
|
+
>;
|
|
285
|
+
|
|
286
|
+
export type GetPromptVersion2File = {
|
|
287
|
+
/**
|
|
288
|
+
* The base64 encoded file data, used when passing the file to the model as a string.
|
|
289
|
+
*/
|
|
290
|
+
fileData: string;
|
|
291
|
+
/**
|
|
292
|
+
* The name of the file, used when passing the file to the model as a string.
|
|
293
|
+
*/
|
|
294
|
+
filename?: string | undefined;
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
export type GetPromptVersion23 = {
|
|
298
|
+
/**
|
|
299
|
+
* The type of the content part. Always `file`.
|
|
300
|
+
*/
|
|
301
|
+
type: GetPromptVersion2PromptsResponseType;
|
|
302
|
+
file: GetPromptVersion2File;
|
|
303
|
+
};
|
|
304
|
+
|
|
273
305
|
export const GetPromptVersion2PromptsType = {
|
|
274
306
|
ImageUrl: "image_url",
|
|
275
307
|
} as const;
|
|
@@ -313,14 +345,17 @@ export type GetPromptVersion21 = {
|
|
|
313
345
|
text: string;
|
|
314
346
|
};
|
|
315
347
|
|
|
316
|
-
export type GetPromptVersionContent2 =
|
|
348
|
+
export type GetPromptVersionContent2 =
|
|
349
|
+
| GetPromptVersion21
|
|
350
|
+
| GetPromptVersion22
|
|
351
|
+
| GetPromptVersion23;
|
|
317
352
|
|
|
318
353
|
/**
|
|
319
354
|
* 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.
|
|
320
355
|
*/
|
|
321
356
|
export type GetPromptVersionContent =
|
|
322
357
|
| string
|
|
323
|
-
| Array<GetPromptVersion21 | GetPromptVersion22>;
|
|
358
|
+
| Array<GetPromptVersion21 | GetPromptVersion22 | GetPromptVersion23>;
|
|
324
359
|
|
|
325
360
|
export const GetPromptVersionType = {
|
|
326
361
|
Function: "function",
|
|
@@ -350,7 +385,9 @@ export type GetPromptVersionMessages = {
|
|
|
350
385
|
/**
|
|
351
386
|
* 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.
|
|
352
387
|
*/
|
|
353
|
-
content:
|
|
388
|
+
content:
|
|
389
|
+
| string
|
|
390
|
+
| Array<GetPromptVersion21 | GetPromptVersion22 | GetPromptVersion23>;
|
|
354
391
|
toolCalls?: Array<GetPromptVersionToolCalls> | undefined;
|
|
355
392
|
toolCallId?: string | undefined;
|
|
356
393
|
};
|
|
@@ -1098,6 +1135,152 @@ export namespace GetPromptVersionRole$ {
|
|
|
1098
1135
|
export const outboundSchema = GetPromptVersionRole$outboundSchema;
|
|
1099
1136
|
}
|
|
1100
1137
|
|
|
1138
|
+
/** @internal */
|
|
1139
|
+
export const GetPromptVersion2PromptsResponseType$inboundSchema:
|
|
1140
|
+
z.ZodNativeEnum<typeof GetPromptVersion2PromptsResponseType> = z.nativeEnum(
|
|
1141
|
+
GetPromptVersion2PromptsResponseType,
|
|
1142
|
+
);
|
|
1143
|
+
|
|
1144
|
+
/** @internal */
|
|
1145
|
+
export const GetPromptVersion2PromptsResponseType$outboundSchema:
|
|
1146
|
+
z.ZodNativeEnum<typeof GetPromptVersion2PromptsResponseType> =
|
|
1147
|
+
GetPromptVersion2PromptsResponseType$inboundSchema;
|
|
1148
|
+
|
|
1149
|
+
/**
|
|
1150
|
+
* @internal
|
|
1151
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1152
|
+
*/
|
|
1153
|
+
export namespace GetPromptVersion2PromptsResponseType$ {
|
|
1154
|
+
/** @deprecated use `GetPromptVersion2PromptsResponseType$inboundSchema` instead. */
|
|
1155
|
+
export const inboundSchema =
|
|
1156
|
+
GetPromptVersion2PromptsResponseType$inboundSchema;
|
|
1157
|
+
/** @deprecated use `GetPromptVersion2PromptsResponseType$outboundSchema` instead. */
|
|
1158
|
+
export const outboundSchema =
|
|
1159
|
+
GetPromptVersion2PromptsResponseType$outboundSchema;
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
/** @internal */
|
|
1163
|
+
export const GetPromptVersion2File$inboundSchema: z.ZodType<
|
|
1164
|
+
GetPromptVersion2File,
|
|
1165
|
+
z.ZodTypeDef,
|
|
1166
|
+
unknown
|
|
1167
|
+
> = z.object({
|
|
1168
|
+
file_data: z.string(),
|
|
1169
|
+
filename: z.string().optional(),
|
|
1170
|
+
}).transform((v) => {
|
|
1171
|
+
return remap$(v, {
|
|
1172
|
+
"file_data": "fileData",
|
|
1173
|
+
});
|
|
1174
|
+
});
|
|
1175
|
+
|
|
1176
|
+
/** @internal */
|
|
1177
|
+
export type GetPromptVersion2File$Outbound = {
|
|
1178
|
+
file_data: string;
|
|
1179
|
+
filename?: string | undefined;
|
|
1180
|
+
};
|
|
1181
|
+
|
|
1182
|
+
/** @internal */
|
|
1183
|
+
export const GetPromptVersion2File$outboundSchema: z.ZodType<
|
|
1184
|
+
GetPromptVersion2File$Outbound,
|
|
1185
|
+
z.ZodTypeDef,
|
|
1186
|
+
GetPromptVersion2File
|
|
1187
|
+
> = z.object({
|
|
1188
|
+
fileData: z.string(),
|
|
1189
|
+
filename: z.string().optional(),
|
|
1190
|
+
}).transform((v) => {
|
|
1191
|
+
return remap$(v, {
|
|
1192
|
+
fileData: "file_data",
|
|
1193
|
+
});
|
|
1194
|
+
});
|
|
1195
|
+
|
|
1196
|
+
/**
|
|
1197
|
+
* @internal
|
|
1198
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1199
|
+
*/
|
|
1200
|
+
export namespace GetPromptVersion2File$ {
|
|
1201
|
+
/** @deprecated use `GetPromptVersion2File$inboundSchema` instead. */
|
|
1202
|
+
export const inboundSchema = GetPromptVersion2File$inboundSchema;
|
|
1203
|
+
/** @deprecated use `GetPromptVersion2File$outboundSchema` instead. */
|
|
1204
|
+
export const outboundSchema = GetPromptVersion2File$outboundSchema;
|
|
1205
|
+
/** @deprecated use `GetPromptVersion2File$Outbound` instead. */
|
|
1206
|
+
export type Outbound = GetPromptVersion2File$Outbound;
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
export function getPromptVersion2FileToJSON(
|
|
1210
|
+
getPromptVersion2File: GetPromptVersion2File,
|
|
1211
|
+
): string {
|
|
1212
|
+
return JSON.stringify(
|
|
1213
|
+
GetPromptVersion2File$outboundSchema.parse(getPromptVersion2File),
|
|
1214
|
+
);
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
export function getPromptVersion2FileFromJSON(
|
|
1218
|
+
jsonString: string,
|
|
1219
|
+
): SafeParseResult<GetPromptVersion2File, SDKValidationError> {
|
|
1220
|
+
return safeParse(
|
|
1221
|
+
jsonString,
|
|
1222
|
+
(x) => GetPromptVersion2File$inboundSchema.parse(JSON.parse(x)),
|
|
1223
|
+
`Failed to parse 'GetPromptVersion2File' from JSON`,
|
|
1224
|
+
);
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
/** @internal */
|
|
1228
|
+
export const GetPromptVersion23$inboundSchema: z.ZodType<
|
|
1229
|
+
GetPromptVersion23,
|
|
1230
|
+
z.ZodTypeDef,
|
|
1231
|
+
unknown
|
|
1232
|
+
> = z.object({
|
|
1233
|
+
type: GetPromptVersion2PromptsResponseType$inboundSchema,
|
|
1234
|
+
file: z.lazy(() => GetPromptVersion2File$inboundSchema),
|
|
1235
|
+
});
|
|
1236
|
+
|
|
1237
|
+
/** @internal */
|
|
1238
|
+
export type GetPromptVersion23$Outbound = {
|
|
1239
|
+
type: string;
|
|
1240
|
+
file: GetPromptVersion2File$Outbound;
|
|
1241
|
+
};
|
|
1242
|
+
|
|
1243
|
+
/** @internal */
|
|
1244
|
+
export const GetPromptVersion23$outboundSchema: z.ZodType<
|
|
1245
|
+
GetPromptVersion23$Outbound,
|
|
1246
|
+
z.ZodTypeDef,
|
|
1247
|
+
GetPromptVersion23
|
|
1248
|
+
> = z.object({
|
|
1249
|
+
type: GetPromptVersion2PromptsResponseType$outboundSchema,
|
|
1250
|
+
file: z.lazy(() => GetPromptVersion2File$outboundSchema),
|
|
1251
|
+
});
|
|
1252
|
+
|
|
1253
|
+
/**
|
|
1254
|
+
* @internal
|
|
1255
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1256
|
+
*/
|
|
1257
|
+
export namespace GetPromptVersion23$ {
|
|
1258
|
+
/** @deprecated use `GetPromptVersion23$inboundSchema` instead. */
|
|
1259
|
+
export const inboundSchema = GetPromptVersion23$inboundSchema;
|
|
1260
|
+
/** @deprecated use `GetPromptVersion23$outboundSchema` instead. */
|
|
1261
|
+
export const outboundSchema = GetPromptVersion23$outboundSchema;
|
|
1262
|
+
/** @deprecated use `GetPromptVersion23$Outbound` instead. */
|
|
1263
|
+
export type Outbound = GetPromptVersion23$Outbound;
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
export function getPromptVersion23ToJSON(
|
|
1267
|
+
getPromptVersion23: GetPromptVersion23,
|
|
1268
|
+
): string {
|
|
1269
|
+
return JSON.stringify(
|
|
1270
|
+
GetPromptVersion23$outboundSchema.parse(getPromptVersion23),
|
|
1271
|
+
);
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
export function getPromptVersion23FromJSON(
|
|
1275
|
+
jsonString: string,
|
|
1276
|
+
): SafeParseResult<GetPromptVersion23, SDKValidationError> {
|
|
1277
|
+
return safeParse(
|
|
1278
|
+
jsonString,
|
|
1279
|
+
(x) => GetPromptVersion23$inboundSchema.parse(JSON.parse(x)),
|
|
1280
|
+
`Failed to parse 'GetPromptVersion23' from JSON`,
|
|
1281
|
+
);
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1101
1284
|
/** @internal */
|
|
1102
1285
|
export const GetPromptVersion2PromptsType$inboundSchema: z.ZodNativeEnum<
|
|
1103
1286
|
typeof GetPromptVersion2PromptsType
|
|
@@ -1330,12 +1513,14 @@ export const GetPromptVersionContent2$inboundSchema: z.ZodType<
|
|
|
1330
1513
|
> = z.union([
|
|
1331
1514
|
z.lazy(() => GetPromptVersion21$inboundSchema),
|
|
1332
1515
|
z.lazy(() => GetPromptVersion22$inboundSchema),
|
|
1516
|
+
z.lazy(() => GetPromptVersion23$inboundSchema),
|
|
1333
1517
|
]);
|
|
1334
1518
|
|
|
1335
1519
|
/** @internal */
|
|
1336
1520
|
export type GetPromptVersionContent2$Outbound =
|
|
1337
1521
|
| GetPromptVersion21$Outbound
|
|
1338
|
-
| GetPromptVersion22$Outbound
|
|
1522
|
+
| GetPromptVersion22$Outbound
|
|
1523
|
+
| GetPromptVersion23$Outbound;
|
|
1339
1524
|
|
|
1340
1525
|
/** @internal */
|
|
1341
1526
|
export const GetPromptVersionContent2$outboundSchema: z.ZodType<
|
|
@@ -1345,6 +1530,7 @@ export const GetPromptVersionContent2$outboundSchema: z.ZodType<
|
|
|
1345
1530
|
> = z.union([
|
|
1346
1531
|
z.lazy(() => GetPromptVersion21$outboundSchema),
|
|
1347
1532
|
z.lazy(() => GetPromptVersion22$outboundSchema),
|
|
1533
|
+
z.lazy(() => GetPromptVersion23$outboundSchema),
|
|
1348
1534
|
]);
|
|
1349
1535
|
|
|
1350
1536
|
/**
|
|
@@ -1388,13 +1574,18 @@ export const GetPromptVersionContent$inboundSchema: z.ZodType<
|
|
|
1388
1574
|
z.array(z.union([
|
|
1389
1575
|
z.lazy(() => GetPromptVersion21$inboundSchema),
|
|
1390
1576
|
z.lazy(() => GetPromptVersion22$inboundSchema),
|
|
1577
|
+
z.lazy(() => GetPromptVersion23$inboundSchema),
|
|
1391
1578
|
])),
|
|
1392
1579
|
]);
|
|
1393
1580
|
|
|
1394
1581
|
/** @internal */
|
|
1395
1582
|
export type GetPromptVersionContent$Outbound =
|
|
1396
1583
|
| string
|
|
1397
|
-
| Array<
|
|
1584
|
+
| Array<
|
|
1585
|
+
| GetPromptVersion21$Outbound
|
|
1586
|
+
| GetPromptVersion22$Outbound
|
|
1587
|
+
| GetPromptVersion23$Outbound
|
|
1588
|
+
>;
|
|
1398
1589
|
|
|
1399
1590
|
/** @internal */
|
|
1400
1591
|
export const GetPromptVersionContent$outboundSchema: z.ZodType<
|
|
@@ -1406,6 +1597,7 @@ export const GetPromptVersionContent$outboundSchema: z.ZodType<
|
|
|
1406
1597
|
z.array(z.union([
|
|
1407
1598
|
z.lazy(() => GetPromptVersion21$outboundSchema),
|
|
1408
1599
|
z.lazy(() => GetPromptVersion22$outboundSchema),
|
|
1600
|
+
z.lazy(() => GetPromptVersion23$outboundSchema),
|
|
1409
1601
|
])),
|
|
1410
1602
|
]);
|
|
1411
1603
|
|
|
@@ -1593,6 +1785,7 @@ export const GetPromptVersionMessages$inboundSchema: z.ZodType<
|
|
|
1593
1785
|
z.array(z.union([
|
|
1594
1786
|
z.lazy(() => GetPromptVersion21$inboundSchema),
|
|
1595
1787
|
z.lazy(() => GetPromptVersion22$inboundSchema),
|
|
1788
|
+
z.lazy(() => GetPromptVersion23$inboundSchema),
|
|
1596
1789
|
])),
|
|
1597
1790
|
]),
|
|
1598
1791
|
tool_calls: z.array(z.lazy(() => GetPromptVersionToolCalls$inboundSchema))
|
|
@@ -1610,7 +1803,11 @@ export type GetPromptVersionMessages$Outbound = {
|
|
|
1610
1803
|
role: string;
|
|
1611
1804
|
content:
|
|
1612
1805
|
| string
|
|
1613
|
-
| Array<
|
|
1806
|
+
| Array<
|
|
1807
|
+
| GetPromptVersion21$Outbound
|
|
1808
|
+
| GetPromptVersion22$Outbound
|
|
1809
|
+
| GetPromptVersion23$Outbound
|
|
1810
|
+
>;
|
|
1614
1811
|
tool_calls?: Array<GetPromptVersionToolCalls$Outbound> | undefined;
|
|
1615
1812
|
tool_call_id?: string | undefined;
|
|
1616
1813
|
};
|
|
@@ -1627,6 +1824,7 @@ export const GetPromptVersionMessages$outboundSchema: z.ZodType<
|
|
|
1627
1824
|
z.array(z.union([
|
|
1628
1825
|
z.lazy(() => GetPromptVersion21$outboundSchema),
|
|
1629
1826
|
z.lazy(() => GetPromptVersion22$outboundSchema),
|
|
1827
|
+
z.lazy(() => GetPromptVersion23$outboundSchema),
|
|
1630
1828
|
])),
|
|
1631
1829
|
]),
|
|
1632
1830
|
toolCalls: z.array(z.lazy(() => GetPromptVersionToolCalls$outboundSchema))
|
|
@@ -52,6 +52,38 @@ export type ListDatasetDatapointsRole = ClosedEnum<
|
|
|
52
52
|
typeof ListDatasetDatapointsRole
|
|
53
53
|
>;
|
|
54
54
|
|
|
55
|
+
/**
|
|
56
|
+
* The type of the content part. Always `file`.
|
|
57
|
+
*/
|
|
58
|
+
export const ListDatasetDatapoints2DatasetsResponseType = {
|
|
59
|
+
File: "file",
|
|
60
|
+
} as const;
|
|
61
|
+
/**
|
|
62
|
+
* The type of the content part. Always `file`.
|
|
63
|
+
*/
|
|
64
|
+
export type ListDatasetDatapoints2DatasetsResponseType = ClosedEnum<
|
|
65
|
+
typeof ListDatasetDatapoints2DatasetsResponseType
|
|
66
|
+
>;
|
|
67
|
+
|
|
68
|
+
export type ListDatasetDatapoints2File = {
|
|
69
|
+
/**
|
|
70
|
+
* The base64 encoded file data, used when passing the file to the model as a string.
|
|
71
|
+
*/
|
|
72
|
+
fileData: string;
|
|
73
|
+
/**
|
|
74
|
+
* The name of the file, used when passing the file to the model as a string.
|
|
75
|
+
*/
|
|
76
|
+
filename?: string | undefined;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export type ListDatasetDatapoints23 = {
|
|
80
|
+
/**
|
|
81
|
+
* The type of the content part. Always `file`.
|
|
82
|
+
*/
|
|
83
|
+
type: ListDatasetDatapoints2DatasetsResponseType;
|
|
84
|
+
file: ListDatasetDatapoints2File;
|
|
85
|
+
};
|
|
86
|
+
|
|
55
87
|
export const ListDatasetDatapoints2DatasetsType = {
|
|
56
88
|
ImageUrl: "image_url",
|
|
57
89
|
} as const;
|
|
@@ -99,14 +131,17 @@ export type ListDatasetDatapoints21 = {
|
|
|
99
131
|
|
|
100
132
|
export type ListDatasetDatapointsContent2 =
|
|
101
133
|
| ListDatasetDatapoints21
|
|
102
|
-
| ListDatasetDatapoints22
|
|
134
|
+
| ListDatasetDatapoints22
|
|
135
|
+
| ListDatasetDatapoints23;
|
|
103
136
|
|
|
104
137
|
/**
|
|
105
138
|
* 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.
|
|
106
139
|
*/
|
|
107
140
|
export type ListDatasetDatapointsContent =
|
|
108
141
|
| string
|
|
109
|
-
| Array<
|
|
142
|
+
| Array<
|
|
143
|
+
ListDatasetDatapoints21 | ListDatasetDatapoints22 | ListDatasetDatapoints23
|
|
144
|
+
>;
|
|
110
145
|
|
|
111
146
|
export const ListDatasetDatapointsType = {
|
|
112
147
|
Function: "function",
|
|
@@ -138,7 +173,13 @@ export type ListDatasetDatapointsMessages = {
|
|
|
138
173
|
/**
|
|
139
174
|
* 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.
|
|
140
175
|
*/
|
|
141
|
-
content:
|
|
176
|
+
content:
|
|
177
|
+
| string
|
|
178
|
+
| Array<
|
|
179
|
+
| ListDatasetDatapoints21
|
|
180
|
+
| ListDatasetDatapoints22
|
|
181
|
+
| ListDatasetDatapoints23
|
|
182
|
+
>;
|
|
142
183
|
toolCalls?: Array<ListDatasetDatapointsToolCalls> | undefined;
|
|
143
184
|
toolCallId?: string | undefined;
|
|
144
185
|
};
|
|
@@ -311,6 +352,151 @@ export namespace ListDatasetDatapointsRole$ {
|
|
|
311
352
|
export const outboundSchema = ListDatasetDatapointsRole$outboundSchema;
|
|
312
353
|
}
|
|
313
354
|
|
|
355
|
+
/** @internal */
|
|
356
|
+
export const ListDatasetDatapoints2DatasetsResponseType$inboundSchema:
|
|
357
|
+
z.ZodNativeEnum<typeof ListDatasetDatapoints2DatasetsResponseType> = z
|
|
358
|
+
.nativeEnum(ListDatasetDatapoints2DatasetsResponseType);
|
|
359
|
+
|
|
360
|
+
/** @internal */
|
|
361
|
+
export const ListDatasetDatapoints2DatasetsResponseType$outboundSchema:
|
|
362
|
+
z.ZodNativeEnum<typeof ListDatasetDatapoints2DatasetsResponseType> =
|
|
363
|
+
ListDatasetDatapoints2DatasetsResponseType$inboundSchema;
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* @internal
|
|
367
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
368
|
+
*/
|
|
369
|
+
export namespace ListDatasetDatapoints2DatasetsResponseType$ {
|
|
370
|
+
/** @deprecated use `ListDatasetDatapoints2DatasetsResponseType$inboundSchema` instead. */
|
|
371
|
+
export const inboundSchema =
|
|
372
|
+
ListDatasetDatapoints2DatasetsResponseType$inboundSchema;
|
|
373
|
+
/** @deprecated use `ListDatasetDatapoints2DatasetsResponseType$outboundSchema` instead. */
|
|
374
|
+
export const outboundSchema =
|
|
375
|
+
ListDatasetDatapoints2DatasetsResponseType$outboundSchema;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/** @internal */
|
|
379
|
+
export const ListDatasetDatapoints2File$inboundSchema: z.ZodType<
|
|
380
|
+
ListDatasetDatapoints2File,
|
|
381
|
+
z.ZodTypeDef,
|
|
382
|
+
unknown
|
|
383
|
+
> = z.object({
|
|
384
|
+
file_data: z.string(),
|
|
385
|
+
filename: z.string().optional(),
|
|
386
|
+
}).transform((v) => {
|
|
387
|
+
return remap$(v, {
|
|
388
|
+
"file_data": "fileData",
|
|
389
|
+
});
|
|
390
|
+
});
|
|
391
|
+
|
|
392
|
+
/** @internal */
|
|
393
|
+
export type ListDatasetDatapoints2File$Outbound = {
|
|
394
|
+
file_data: string;
|
|
395
|
+
filename?: string | undefined;
|
|
396
|
+
};
|
|
397
|
+
|
|
398
|
+
/** @internal */
|
|
399
|
+
export const ListDatasetDatapoints2File$outboundSchema: z.ZodType<
|
|
400
|
+
ListDatasetDatapoints2File$Outbound,
|
|
401
|
+
z.ZodTypeDef,
|
|
402
|
+
ListDatasetDatapoints2File
|
|
403
|
+
> = z.object({
|
|
404
|
+
fileData: z.string(),
|
|
405
|
+
filename: z.string().optional(),
|
|
406
|
+
}).transform((v) => {
|
|
407
|
+
return remap$(v, {
|
|
408
|
+
fileData: "file_data",
|
|
409
|
+
});
|
|
410
|
+
});
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* @internal
|
|
414
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
415
|
+
*/
|
|
416
|
+
export namespace ListDatasetDatapoints2File$ {
|
|
417
|
+
/** @deprecated use `ListDatasetDatapoints2File$inboundSchema` instead. */
|
|
418
|
+
export const inboundSchema = ListDatasetDatapoints2File$inboundSchema;
|
|
419
|
+
/** @deprecated use `ListDatasetDatapoints2File$outboundSchema` instead. */
|
|
420
|
+
export const outboundSchema = ListDatasetDatapoints2File$outboundSchema;
|
|
421
|
+
/** @deprecated use `ListDatasetDatapoints2File$Outbound` instead. */
|
|
422
|
+
export type Outbound = ListDatasetDatapoints2File$Outbound;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
export function listDatasetDatapoints2FileToJSON(
|
|
426
|
+
listDatasetDatapoints2File: ListDatasetDatapoints2File,
|
|
427
|
+
): string {
|
|
428
|
+
return JSON.stringify(
|
|
429
|
+
ListDatasetDatapoints2File$outboundSchema.parse(listDatasetDatapoints2File),
|
|
430
|
+
);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
export function listDatasetDatapoints2FileFromJSON(
|
|
434
|
+
jsonString: string,
|
|
435
|
+
): SafeParseResult<ListDatasetDatapoints2File, SDKValidationError> {
|
|
436
|
+
return safeParse(
|
|
437
|
+
jsonString,
|
|
438
|
+
(x) => ListDatasetDatapoints2File$inboundSchema.parse(JSON.parse(x)),
|
|
439
|
+
`Failed to parse 'ListDatasetDatapoints2File' from JSON`,
|
|
440
|
+
);
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
/** @internal */
|
|
444
|
+
export const ListDatasetDatapoints23$inboundSchema: z.ZodType<
|
|
445
|
+
ListDatasetDatapoints23,
|
|
446
|
+
z.ZodTypeDef,
|
|
447
|
+
unknown
|
|
448
|
+
> = z.object({
|
|
449
|
+
type: ListDatasetDatapoints2DatasetsResponseType$inboundSchema,
|
|
450
|
+
file: z.lazy(() => ListDatasetDatapoints2File$inboundSchema),
|
|
451
|
+
});
|
|
452
|
+
|
|
453
|
+
/** @internal */
|
|
454
|
+
export type ListDatasetDatapoints23$Outbound = {
|
|
455
|
+
type: string;
|
|
456
|
+
file: ListDatasetDatapoints2File$Outbound;
|
|
457
|
+
};
|
|
458
|
+
|
|
459
|
+
/** @internal */
|
|
460
|
+
export const ListDatasetDatapoints23$outboundSchema: z.ZodType<
|
|
461
|
+
ListDatasetDatapoints23$Outbound,
|
|
462
|
+
z.ZodTypeDef,
|
|
463
|
+
ListDatasetDatapoints23
|
|
464
|
+
> = z.object({
|
|
465
|
+
type: ListDatasetDatapoints2DatasetsResponseType$outboundSchema,
|
|
466
|
+
file: z.lazy(() => ListDatasetDatapoints2File$outboundSchema),
|
|
467
|
+
});
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* @internal
|
|
471
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
472
|
+
*/
|
|
473
|
+
export namespace ListDatasetDatapoints23$ {
|
|
474
|
+
/** @deprecated use `ListDatasetDatapoints23$inboundSchema` instead. */
|
|
475
|
+
export const inboundSchema = ListDatasetDatapoints23$inboundSchema;
|
|
476
|
+
/** @deprecated use `ListDatasetDatapoints23$outboundSchema` instead. */
|
|
477
|
+
export const outboundSchema = ListDatasetDatapoints23$outboundSchema;
|
|
478
|
+
/** @deprecated use `ListDatasetDatapoints23$Outbound` instead. */
|
|
479
|
+
export type Outbound = ListDatasetDatapoints23$Outbound;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
export function listDatasetDatapoints23ToJSON(
|
|
483
|
+
listDatasetDatapoints23: ListDatasetDatapoints23,
|
|
484
|
+
): string {
|
|
485
|
+
return JSON.stringify(
|
|
486
|
+
ListDatasetDatapoints23$outboundSchema.parse(listDatasetDatapoints23),
|
|
487
|
+
);
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
export function listDatasetDatapoints23FromJSON(
|
|
491
|
+
jsonString: string,
|
|
492
|
+
): SafeParseResult<ListDatasetDatapoints23, SDKValidationError> {
|
|
493
|
+
return safeParse(
|
|
494
|
+
jsonString,
|
|
495
|
+
(x) => ListDatasetDatapoints23$inboundSchema.parse(JSON.parse(x)),
|
|
496
|
+
`Failed to parse 'ListDatasetDatapoints23' from JSON`,
|
|
497
|
+
);
|
|
498
|
+
}
|
|
499
|
+
|
|
314
500
|
/** @internal */
|
|
315
501
|
export const ListDatasetDatapoints2DatasetsType$inboundSchema: z.ZodNativeEnum<
|
|
316
502
|
typeof ListDatasetDatapoints2DatasetsType
|
|
@@ -546,12 +732,14 @@ export const ListDatasetDatapointsContent2$inboundSchema: z.ZodType<
|
|
|
546
732
|
> = z.union([
|
|
547
733
|
z.lazy(() => ListDatasetDatapoints21$inboundSchema),
|
|
548
734
|
z.lazy(() => ListDatasetDatapoints22$inboundSchema),
|
|
735
|
+
z.lazy(() => ListDatasetDatapoints23$inboundSchema),
|
|
549
736
|
]);
|
|
550
737
|
|
|
551
738
|
/** @internal */
|
|
552
739
|
export type ListDatasetDatapointsContent2$Outbound =
|
|
553
740
|
| ListDatasetDatapoints21$Outbound
|
|
554
|
-
| ListDatasetDatapoints22$Outbound
|
|
741
|
+
| ListDatasetDatapoints22$Outbound
|
|
742
|
+
| ListDatasetDatapoints23$Outbound;
|
|
555
743
|
|
|
556
744
|
/** @internal */
|
|
557
745
|
export const ListDatasetDatapointsContent2$outboundSchema: z.ZodType<
|
|
@@ -561,6 +749,7 @@ export const ListDatasetDatapointsContent2$outboundSchema: z.ZodType<
|
|
|
561
749
|
> = z.union([
|
|
562
750
|
z.lazy(() => ListDatasetDatapoints21$outboundSchema),
|
|
563
751
|
z.lazy(() => ListDatasetDatapoints22$outboundSchema),
|
|
752
|
+
z.lazy(() => ListDatasetDatapoints23$outboundSchema),
|
|
564
753
|
]);
|
|
565
754
|
|
|
566
755
|
/**
|
|
@@ -606,13 +795,18 @@ export const ListDatasetDatapointsContent$inboundSchema: z.ZodType<
|
|
|
606
795
|
z.array(z.union([
|
|
607
796
|
z.lazy(() => ListDatasetDatapoints21$inboundSchema),
|
|
608
797
|
z.lazy(() => ListDatasetDatapoints22$inboundSchema),
|
|
798
|
+
z.lazy(() => ListDatasetDatapoints23$inboundSchema),
|
|
609
799
|
])),
|
|
610
800
|
]);
|
|
611
801
|
|
|
612
802
|
/** @internal */
|
|
613
803
|
export type ListDatasetDatapointsContent$Outbound =
|
|
614
804
|
| string
|
|
615
|
-
| Array<
|
|
805
|
+
| Array<
|
|
806
|
+
| ListDatasetDatapoints21$Outbound
|
|
807
|
+
| ListDatasetDatapoints22$Outbound
|
|
808
|
+
| ListDatasetDatapoints23$Outbound
|
|
809
|
+
>;
|
|
616
810
|
|
|
617
811
|
/** @internal */
|
|
618
812
|
export const ListDatasetDatapointsContent$outboundSchema: z.ZodType<
|
|
@@ -624,6 +818,7 @@ export const ListDatasetDatapointsContent$outboundSchema: z.ZodType<
|
|
|
624
818
|
z.array(z.union([
|
|
625
819
|
z.lazy(() => ListDatasetDatapoints21$outboundSchema),
|
|
626
820
|
z.lazy(() => ListDatasetDatapoints22$outboundSchema),
|
|
821
|
+
z.lazy(() => ListDatasetDatapoints23$outboundSchema),
|
|
627
822
|
])),
|
|
628
823
|
]);
|
|
629
824
|
|
|
@@ -817,6 +1012,7 @@ export const ListDatasetDatapointsMessages$inboundSchema: z.ZodType<
|
|
|
817
1012
|
z.array(z.union([
|
|
818
1013
|
z.lazy(() => ListDatasetDatapoints21$inboundSchema),
|
|
819
1014
|
z.lazy(() => ListDatasetDatapoints22$inboundSchema),
|
|
1015
|
+
z.lazy(() => ListDatasetDatapoints23$inboundSchema),
|
|
820
1016
|
])),
|
|
821
1017
|
]),
|
|
822
1018
|
tool_calls: z.array(
|
|
@@ -836,7 +1032,9 @@ export type ListDatasetDatapointsMessages$Outbound = {
|
|
|
836
1032
|
content:
|
|
837
1033
|
| string
|
|
838
1034
|
| Array<
|
|
839
|
-
|
|
1035
|
+
| ListDatasetDatapoints21$Outbound
|
|
1036
|
+
| ListDatasetDatapoints22$Outbound
|
|
1037
|
+
| ListDatasetDatapoints23$Outbound
|
|
840
1038
|
>;
|
|
841
1039
|
tool_calls?: Array<ListDatasetDatapointsToolCalls$Outbound> | undefined;
|
|
842
1040
|
tool_call_id?: string | undefined;
|
|
@@ -854,6 +1052,7 @@ export const ListDatasetDatapointsMessages$outboundSchema: z.ZodType<
|
|
|
854
1052
|
z.array(z.union([
|
|
855
1053
|
z.lazy(() => ListDatasetDatapoints21$outboundSchema),
|
|
856
1054
|
z.lazy(() => ListDatasetDatapoints22$outboundSchema),
|
|
1055
|
+
z.lazy(() => ListDatasetDatapoints23$outboundSchema),
|
|
857
1056
|
])),
|
|
858
1057
|
]),
|
|
859
1058
|
toolCalls: z.array(
|
|
@@ -918,7 +1117,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
918
1117
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
919
1118
|
.optional(),
|
|
920
1119
|
updated: z.string().datetime({ offset: true }).default(
|
|
921
|
-
"2025-05-
|
|
1120
|
+
"2025-05-27T12:52:03.139Z",
|
|
922
1121
|
).transform(v => new Date(v)),
|
|
923
1122
|
}).transform((v) => {
|
|
924
1123
|
return remap$(v, {
|
|
@@ -961,7 +1160,7 @@ export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
|
|
|
961
1160
|
createdById: z.string().optional(),
|
|
962
1161
|
updatedById: z.string().optional(),
|
|
963
1162
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
964
|
-
updated: z.date().default(() => new Date("2025-05-
|
|
1163
|
+
updated: z.date().default(() => new Date("2025-05-27T12:52:03.139Z"))
|
|
965
1164
|
.transform(v => v.toISOString()),
|
|
966
1165
|
}).transform((v) => {
|
|
967
1166
|
return remap$(v, {
|
|
@@ -253,7 +253,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
|
|
|
253
253
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
254
254
|
.optional(),
|
|
255
255
|
updated: z.string().datetime({ offset: true }).default(
|
|
256
|
-
"2025-05-
|
|
256
|
+
"2025-05-27T12:52:03.139Z",
|
|
257
257
|
).transform(v => new Date(v)),
|
|
258
258
|
}).transform((v) => {
|
|
259
259
|
return remap$(v, {
|
|
@@ -293,7 +293,7 @@ export const ListDatasetsData$outboundSchema: z.ZodType<
|
|
|
293
293
|
updatedById: z.string().optional(),
|
|
294
294
|
metadata: z.lazy(() => ListDatasetsMetadata$outboundSchema),
|
|
295
295
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
296
|
-
updated: z.date().default(() => new Date("2025-05-
|
|
296
|
+
updated: z.date().default(() => new Date("2025-05-27T12:52:03.139Z"))
|
|
297
297
|
.transform(v => v.toISOString()),
|
|
298
298
|
}).transform((v) => {
|
|
299
299
|
return remap$(v, {
|
|
@@ -278,7 +278,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
|
|
|
278
278
|
z.ZodTypeDef,
|
|
279
279
|
unknown
|
|
280
280
|
> = z.object({
|
|
281
|
-
_id: z.string().default("
|
|
281
|
+
_id: z.string().default("01JW8WSSGX044KN4TBNSWRQFMG"),
|
|
282
282
|
display_name: z.string(),
|
|
283
283
|
description: z.string().optional(),
|
|
284
284
|
status: ListDatasourcesStatus$inboundSchema,
|
|
@@ -322,7 +322,7 @@ export const ListDatasourcesData$outboundSchema: z.ZodType<
|
|
|
322
322
|
z.ZodTypeDef,
|
|
323
323
|
ListDatasourcesData
|
|
324
324
|
> = z.object({
|
|
325
|
-
id: z.string().default("
|
|
325
|
+
id: z.string().default("01JW8WSSGX044KN4TBNSWRQFMG"),
|
|
326
326
|
displayName: z.string(),
|
|
327
327
|
description: z.string().optional(),
|
|
328
328
|
status: ListDatasourcesStatus$outboundSchema,
|