@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
|
@@ -146,7 +146,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
|
|
|
146
146
|
file_name: z.string(),
|
|
147
147
|
workspace_id: z.string(),
|
|
148
148
|
created: z.string().datetime({ offset: true }).default(
|
|
149
|
-
"2025-05-
|
|
149
|
+
"2025-05-27T12:52:06.043Z",
|
|
150
150
|
).transform(v => new Date(v)),
|
|
151
151
|
}).transform((v) => {
|
|
152
152
|
return remap$(v, {
|
|
@@ -180,7 +180,7 @@ export const FileGetResponseBody$outboundSchema: z.ZodType<
|
|
|
180
180
|
bytes: z.number(),
|
|
181
181
|
fileName: z.string(),
|
|
182
182
|
workspaceId: z.string(),
|
|
183
|
-
created: z.date().default(() => new Date("2025-05-
|
|
183
|
+
created: z.date().default(() => new Date("2025-05-27T12:52:06.043Z"))
|
|
184
184
|
.transform(v => v.toISOString()),
|
|
185
185
|
}).transform((v) => {
|
|
186
186
|
return remap$(v, {
|
|
@@ -196,7 +196,7 @@ export const FileListData$inboundSchema: z.ZodType<
|
|
|
196
196
|
file_name: z.string(),
|
|
197
197
|
workspace_id: z.string(),
|
|
198
198
|
created: z.string().datetime({ offset: true }).default(
|
|
199
|
-
"2025-05-
|
|
199
|
+
"2025-05-27T12:52:06.043Z",
|
|
200
200
|
).transform(v => new Date(v)),
|
|
201
201
|
}).transform((v) => {
|
|
202
202
|
return remap$(v, {
|
|
@@ -230,7 +230,7 @@ export const FileListData$outboundSchema: z.ZodType<
|
|
|
230
230
|
bytes: z.number(),
|
|
231
231
|
fileName: z.string(),
|
|
232
232
|
workspaceId: z.string(),
|
|
233
|
-
created: z.date().default(() => new Date("2025-05-
|
|
233
|
+
created: z.date().default(() => new Date("2025-05-27T12:52:06.043Z"))
|
|
234
234
|
.transform(v => v.toISOString()),
|
|
235
235
|
}).transform((v) => {
|
|
236
236
|
return remap$(v, {
|
|
@@ -250,7 +250,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
|
|
|
250
250
|
file_name: z.string(),
|
|
251
251
|
workspace_id: z.string(),
|
|
252
252
|
created: z.string().datetime({ offset: true }).default(
|
|
253
|
-
"2025-05-
|
|
253
|
+
"2025-05-27T12:52:06.043Z",
|
|
254
254
|
).transform(v => new Date(v)),
|
|
255
255
|
}).transform((v) => {
|
|
256
256
|
return remap$(v, {
|
|
@@ -284,7 +284,7 @@ export const FileUploadResponseBody$outboundSchema: z.ZodType<
|
|
|
284
284
|
bytes: z.number(),
|
|
285
285
|
fileName: z.string(),
|
|
286
286
|
workspaceId: z.string(),
|
|
287
|
-
created: z.date().default(() => new Date("2025-05-
|
|
287
|
+
created: z.date().default(() => new Date("2025-05-27T12:52:06.043Z"))
|
|
288
288
|
.transform(v => v.toISOString()),
|
|
289
289
|
}).transform((v) => {
|
|
290
290
|
return remap$(v, {
|
|
@@ -280,6 +280,38 @@ export const GetAllPromptsRole = {
|
|
|
280
280
|
*/
|
|
281
281
|
export type GetAllPromptsRole = ClosedEnum<typeof GetAllPromptsRole>;
|
|
282
282
|
|
|
283
|
+
/**
|
|
284
|
+
* The type of the content part. Always `file`.
|
|
285
|
+
*/
|
|
286
|
+
export const GetAllPrompts2PromptsResponseType = {
|
|
287
|
+
File: "file",
|
|
288
|
+
} as const;
|
|
289
|
+
/**
|
|
290
|
+
* The type of the content part. Always `file`.
|
|
291
|
+
*/
|
|
292
|
+
export type GetAllPrompts2PromptsResponseType = ClosedEnum<
|
|
293
|
+
typeof GetAllPrompts2PromptsResponseType
|
|
294
|
+
>;
|
|
295
|
+
|
|
296
|
+
export type GetAllPrompts2File = {
|
|
297
|
+
/**
|
|
298
|
+
* The base64 encoded file data, used when passing the file to the model as a string.
|
|
299
|
+
*/
|
|
300
|
+
fileData: string;
|
|
301
|
+
/**
|
|
302
|
+
* The name of the file, used when passing the file to the model as a string.
|
|
303
|
+
*/
|
|
304
|
+
filename?: string | undefined;
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
export type GetAllPrompts23 = {
|
|
308
|
+
/**
|
|
309
|
+
* The type of the content part. Always `file`.
|
|
310
|
+
*/
|
|
311
|
+
type: GetAllPrompts2PromptsResponseType;
|
|
312
|
+
file: GetAllPrompts2File;
|
|
313
|
+
};
|
|
314
|
+
|
|
283
315
|
export const GetAllPrompts2PromptsType = {
|
|
284
316
|
ImageUrl: "image_url",
|
|
285
317
|
} as const;
|
|
@@ -323,14 +355,17 @@ export type GetAllPrompts21 = {
|
|
|
323
355
|
text: string;
|
|
324
356
|
};
|
|
325
357
|
|
|
326
|
-
export type GetAllPromptsContent2 =
|
|
358
|
+
export type GetAllPromptsContent2 =
|
|
359
|
+
| GetAllPrompts21
|
|
360
|
+
| GetAllPrompts22
|
|
361
|
+
| GetAllPrompts23;
|
|
327
362
|
|
|
328
363
|
/**
|
|
329
364
|
* 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.
|
|
330
365
|
*/
|
|
331
366
|
export type GetAllPromptsContent =
|
|
332
367
|
| string
|
|
333
|
-
| Array<GetAllPrompts21 | GetAllPrompts22>;
|
|
368
|
+
| Array<GetAllPrompts21 | GetAllPrompts22 | GetAllPrompts23>;
|
|
334
369
|
|
|
335
370
|
export const GetAllPromptsPromptsType = {
|
|
336
371
|
Function: "function",
|
|
@@ -362,7 +397,7 @@ export type GetAllPromptsMessages = {
|
|
|
362
397
|
/**
|
|
363
398
|
* 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.
|
|
364
399
|
*/
|
|
365
|
-
content: string | Array<GetAllPrompts21 | GetAllPrompts22>;
|
|
400
|
+
content: string | Array<GetAllPrompts21 | GetAllPrompts22 | GetAllPrompts23>;
|
|
366
401
|
toolCalls?: Array<GetAllPromptsToolCalls> | undefined;
|
|
367
402
|
toolCallId?: string | undefined;
|
|
368
403
|
};
|
|
@@ -1159,6 +1194,148 @@ export namespace GetAllPromptsRole$ {
|
|
|
1159
1194
|
export const outboundSchema = GetAllPromptsRole$outboundSchema;
|
|
1160
1195
|
}
|
|
1161
1196
|
|
|
1197
|
+
/** @internal */
|
|
1198
|
+
export const GetAllPrompts2PromptsResponseType$inboundSchema: z.ZodNativeEnum<
|
|
1199
|
+
typeof GetAllPrompts2PromptsResponseType
|
|
1200
|
+
> = z.nativeEnum(GetAllPrompts2PromptsResponseType);
|
|
1201
|
+
|
|
1202
|
+
/** @internal */
|
|
1203
|
+
export const GetAllPrompts2PromptsResponseType$outboundSchema: z.ZodNativeEnum<
|
|
1204
|
+
typeof GetAllPrompts2PromptsResponseType
|
|
1205
|
+
> = GetAllPrompts2PromptsResponseType$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 GetAllPrompts2PromptsResponseType$ {
|
|
1212
|
+
/** @deprecated use `GetAllPrompts2PromptsResponseType$inboundSchema` instead. */
|
|
1213
|
+
export const inboundSchema = GetAllPrompts2PromptsResponseType$inboundSchema;
|
|
1214
|
+
/** @deprecated use `GetAllPrompts2PromptsResponseType$outboundSchema` instead. */
|
|
1215
|
+
export const outboundSchema =
|
|
1216
|
+
GetAllPrompts2PromptsResponseType$outboundSchema;
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
/** @internal */
|
|
1220
|
+
export const GetAllPrompts2File$inboundSchema: z.ZodType<
|
|
1221
|
+
GetAllPrompts2File,
|
|
1222
|
+
z.ZodTypeDef,
|
|
1223
|
+
unknown
|
|
1224
|
+
> = z.object({
|
|
1225
|
+
file_data: z.string(),
|
|
1226
|
+
filename: z.string().optional(),
|
|
1227
|
+
}).transform((v) => {
|
|
1228
|
+
return remap$(v, {
|
|
1229
|
+
"file_data": "fileData",
|
|
1230
|
+
});
|
|
1231
|
+
});
|
|
1232
|
+
|
|
1233
|
+
/** @internal */
|
|
1234
|
+
export type GetAllPrompts2File$Outbound = {
|
|
1235
|
+
file_data: string;
|
|
1236
|
+
filename?: string | undefined;
|
|
1237
|
+
};
|
|
1238
|
+
|
|
1239
|
+
/** @internal */
|
|
1240
|
+
export const GetAllPrompts2File$outboundSchema: z.ZodType<
|
|
1241
|
+
GetAllPrompts2File$Outbound,
|
|
1242
|
+
z.ZodTypeDef,
|
|
1243
|
+
GetAllPrompts2File
|
|
1244
|
+
> = z.object({
|
|
1245
|
+
fileData: z.string(),
|
|
1246
|
+
filename: z.string().optional(),
|
|
1247
|
+
}).transform((v) => {
|
|
1248
|
+
return remap$(v, {
|
|
1249
|
+
fileData: "file_data",
|
|
1250
|
+
});
|
|
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 GetAllPrompts2File$ {
|
|
1258
|
+
/** @deprecated use `GetAllPrompts2File$inboundSchema` instead. */
|
|
1259
|
+
export const inboundSchema = GetAllPrompts2File$inboundSchema;
|
|
1260
|
+
/** @deprecated use `GetAllPrompts2File$outboundSchema` instead. */
|
|
1261
|
+
export const outboundSchema = GetAllPrompts2File$outboundSchema;
|
|
1262
|
+
/** @deprecated use `GetAllPrompts2File$Outbound` instead. */
|
|
1263
|
+
export type Outbound = GetAllPrompts2File$Outbound;
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
export function getAllPrompts2FileToJSON(
|
|
1267
|
+
getAllPrompts2File: GetAllPrompts2File,
|
|
1268
|
+
): string {
|
|
1269
|
+
return JSON.stringify(
|
|
1270
|
+
GetAllPrompts2File$outboundSchema.parse(getAllPrompts2File),
|
|
1271
|
+
);
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
export function getAllPrompts2FileFromJSON(
|
|
1275
|
+
jsonString: string,
|
|
1276
|
+
): SafeParseResult<GetAllPrompts2File, SDKValidationError> {
|
|
1277
|
+
return safeParse(
|
|
1278
|
+
jsonString,
|
|
1279
|
+
(x) => GetAllPrompts2File$inboundSchema.parse(JSON.parse(x)),
|
|
1280
|
+
`Failed to parse 'GetAllPrompts2File' from JSON`,
|
|
1281
|
+
);
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
/** @internal */
|
|
1285
|
+
export const GetAllPrompts23$inboundSchema: z.ZodType<
|
|
1286
|
+
GetAllPrompts23,
|
|
1287
|
+
z.ZodTypeDef,
|
|
1288
|
+
unknown
|
|
1289
|
+
> = z.object({
|
|
1290
|
+
type: GetAllPrompts2PromptsResponseType$inboundSchema,
|
|
1291
|
+
file: z.lazy(() => GetAllPrompts2File$inboundSchema),
|
|
1292
|
+
});
|
|
1293
|
+
|
|
1294
|
+
/** @internal */
|
|
1295
|
+
export type GetAllPrompts23$Outbound = {
|
|
1296
|
+
type: string;
|
|
1297
|
+
file: GetAllPrompts2File$Outbound;
|
|
1298
|
+
};
|
|
1299
|
+
|
|
1300
|
+
/** @internal */
|
|
1301
|
+
export const GetAllPrompts23$outboundSchema: z.ZodType<
|
|
1302
|
+
GetAllPrompts23$Outbound,
|
|
1303
|
+
z.ZodTypeDef,
|
|
1304
|
+
GetAllPrompts23
|
|
1305
|
+
> = z.object({
|
|
1306
|
+
type: GetAllPrompts2PromptsResponseType$outboundSchema,
|
|
1307
|
+
file: z.lazy(() => GetAllPrompts2File$outboundSchema),
|
|
1308
|
+
});
|
|
1309
|
+
|
|
1310
|
+
/**
|
|
1311
|
+
* @internal
|
|
1312
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1313
|
+
*/
|
|
1314
|
+
export namespace GetAllPrompts23$ {
|
|
1315
|
+
/** @deprecated use `GetAllPrompts23$inboundSchema` instead. */
|
|
1316
|
+
export const inboundSchema = GetAllPrompts23$inboundSchema;
|
|
1317
|
+
/** @deprecated use `GetAllPrompts23$outboundSchema` instead. */
|
|
1318
|
+
export const outboundSchema = GetAllPrompts23$outboundSchema;
|
|
1319
|
+
/** @deprecated use `GetAllPrompts23$Outbound` instead. */
|
|
1320
|
+
export type Outbound = GetAllPrompts23$Outbound;
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
export function getAllPrompts23ToJSON(
|
|
1324
|
+
getAllPrompts23: GetAllPrompts23,
|
|
1325
|
+
): string {
|
|
1326
|
+
return JSON.stringify(GetAllPrompts23$outboundSchema.parse(getAllPrompts23));
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
export function getAllPrompts23FromJSON(
|
|
1330
|
+
jsonString: string,
|
|
1331
|
+
): SafeParseResult<GetAllPrompts23, SDKValidationError> {
|
|
1332
|
+
return safeParse(
|
|
1333
|
+
jsonString,
|
|
1334
|
+
(x) => GetAllPrompts23$inboundSchema.parse(JSON.parse(x)),
|
|
1335
|
+
`Failed to parse 'GetAllPrompts23' from JSON`,
|
|
1336
|
+
);
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1162
1339
|
/** @internal */
|
|
1163
1340
|
export const GetAllPrompts2PromptsType$inboundSchema: z.ZodNativeEnum<
|
|
1164
1341
|
typeof GetAllPrompts2PromptsType
|
|
@@ -1387,12 +1564,14 @@ export const GetAllPromptsContent2$inboundSchema: z.ZodType<
|
|
|
1387
1564
|
> = z.union([
|
|
1388
1565
|
z.lazy(() => GetAllPrompts21$inboundSchema),
|
|
1389
1566
|
z.lazy(() => GetAllPrompts22$inboundSchema),
|
|
1567
|
+
z.lazy(() => GetAllPrompts23$inboundSchema),
|
|
1390
1568
|
]);
|
|
1391
1569
|
|
|
1392
1570
|
/** @internal */
|
|
1393
1571
|
export type GetAllPromptsContent2$Outbound =
|
|
1394
1572
|
| GetAllPrompts21$Outbound
|
|
1395
|
-
| GetAllPrompts22$Outbound
|
|
1573
|
+
| GetAllPrompts22$Outbound
|
|
1574
|
+
| GetAllPrompts23$Outbound;
|
|
1396
1575
|
|
|
1397
1576
|
/** @internal */
|
|
1398
1577
|
export const GetAllPromptsContent2$outboundSchema: z.ZodType<
|
|
@@ -1402,6 +1581,7 @@ export const GetAllPromptsContent2$outboundSchema: z.ZodType<
|
|
|
1402
1581
|
> = z.union([
|
|
1403
1582
|
z.lazy(() => GetAllPrompts21$outboundSchema),
|
|
1404
1583
|
z.lazy(() => GetAllPrompts22$outboundSchema),
|
|
1584
|
+
z.lazy(() => GetAllPrompts23$outboundSchema),
|
|
1405
1585
|
]);
|
|
1406
1586
|
|
|
1407
1587
|
/**
|
|
@@ -1445,13 +1625,18 @@ export const GetAllPromptsContent$inboundSchema: z.ZodType<
|
|
|
1445
1625
|
z.array(z.union([
|
|
1446
1626
|
z.lazy(() => GetAllPrompts21$inboundSchema),
|
|
1447
1627
|
z.lazy(() => GetAllPrompts22$inboundSchema),
|
|
1628
|
+
z.lazy(() => GetAllPrompts23$inboundSchema),
|
|
1448
1629
|
])),
|
|
1449
1630
|
]);
|
|
1450
1631
|
|
|
1451
1632
|
/** @internal */
|
|
1452
1633
|
export type GetAllPromptsContent$Outbound =
|
|
1453
1634
|
| string
|
|
1454
|
-
| Array<
|
|
1635
|
+
| Array<
|
|
1636
|
+
| GetAllPrompts21$Outbound
|
|
1637
|
+
| GetAllPrompts22$Outbound
|
|
1638
|
+
| GetAllPrompts23$Outbound
|
|
1639
|
+
>;
|
|
1455
1640
|
|
|
1456
1641
|
/** @internal */
|
|
1457
1642
|
export const GetAllPromptsContent$outboundSchema: z.ZodType<
|
|
@@ -1463,6 +1648,7 @@ export const GetAllPromptsContent$outboundSchema: z.ZodType<
|
|
|
1463
1648
|
z.array(z.union([
|
|
1464
1649
|
z.lazy(() => GetAllPrompts21$outboundSchema),
|
|
1465
1650
|
z.lazy(() => GetAllPrompts22$outboundSchema),
|
|
1651
|
+
z.lazy(() => GetAllPrompts23$outboundSchema),
|
|
1466
1652
|
])),
|
|
1467
1653
|
]);
|
|
1468
1654
|
|
|
@@ -1650,6 +1836,7 @@ export const GetAllPromptsMessages$inboundSchema: z.ZodType<
|
|
|
1650
1836
|
z.array(z.union([
|
|
1651
1837
|
z.lazy(() => GetAllPrompts21$inboundSchema),
|
|
1652
1838
|
z.lazy(() => GetAllPrompts22$inboundSchema),
|
|
1839
|
+
z.lazy(() => GetAllPrompts23$inboundSchema),
|
|
1653
1840
|
])),
|
|
1654
1841
|
]),
|
|
1655
1842
|
tool_calls: z.array(z.lazy(() => GetAllPromptsToolCalls$inboundSchema))
|
|
@@ -1665,7 +1852,13 @@ export const GetAllPromptsMessages$inboundSchema: z.ZodType<
|
|
|
1665
1852
|
/** @internal */
|
|
1666
1853
|
export type GetAllPromptsMessages$Outbound = {
|
|
1667
1854
|
role: string;
|
|
1668
|
-
content:
|
|
1855
|
+
content:
|
|
1856
|
+
| string
|
|
1857
|
+
| Array<
|
|
1858
|
+
| GetAllPrompts21$Outbound
|
|
1859
|
+
| GetAllPrompts22$Outbound
|
|
1860
|
+
| GetAllPrompts23$Outbound
|
|
1861
|
+
>;
|
|
1669
1862
|
tool_calls?: Array<GetAllPromptsToolCalls$Outbound> | undefined;
|
|
1670
1863
|
tool_call_id?: string | undefined;
|
|
1671
1864
|
};
|
|
@@ -1682,6 +1875,7 @@ export const GetAllPromptsMessages$outboundSchema: z.ZodType<
|
|
|
1682
1875
|
z.array(z.union([
|
|
1683
1876
|
z.lazy(() => GetAllPrompts21$outboundSchema),
|
|
1684
1877
|
z.lazy(() => GetAllPrompts22$outboundSchema),
|
|
1878
|
+
z.lazy(() => GetAllPrompts23$outboundSchema),
|
|
1685
1879
|
])),
|
|
1686
1880
|
]),
|
|
1687
1881
|
toolCalls: z.array(z.lazy(() => GetAllPromptsToolCalls$outboundSchema))
|
|
@@ -267,6 +267,38 @@ export const GetOnePromptRole = {
|
|
|
267
267
|
*/
|
|
268
268
|
export type GetOnePromptRole = ClosedEnum<typeof GetOnePromptRole>;
|
|
269
269
|
|
|
270
|
+
/**
|
|
271
|
+
* The type of the content part. Always `file`.
|
|
272
|
+
*/
|
|
273
|
+
export const GetOnePrompt2PromptsResponseType = {
|
|
274
|
+
File: "file",
|
|
275
|
+
} as const;
|
|
276
|
+
/**
|
|
277
|
+
* The type of the content part. Always `file`.
|
|
278
|
+
*/
|
|
279
|
+
export type GetOnePrompt2PromptsResponseType = ClosedEnum<
|
|
280
|
+
typeof GetOnePrompt2PromptsResponseType
|
|
281
|
+
>;
|
|
282
|
+
|
|
283
|
+
export type GetOnePrompt2File = {
|
|
284
|
+
/**
|
|
285
|
+
* The base64 encoded file data, used when passing the file to the model as a string.
|
|
286
|
+
*/
|
|
287
|
+
fileData: string;
|
|
288
|
+
/**
|
|
289
|
+
* The name of the file, used when passing the file to the model as a string.
|
|
290
|
+
*/
|
|
291
|
+
filename?: string | undefined;
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
export type GetOnePrompt23 = {
|
|
295
|
+
/**
|
|
296
|
+
* The type of the content part. Always `file`.
|
|
297
|
+
*/
|
|
298
|
+
type: GetOnePrompt2PromptsResponseType;
|
|
299
|
+
file: GetOnePrompt2File;
|
|
300
|
+
};
|
|
301
|
+
|
|
270
302
|
export const GetOnePrompt2PromptsType = {
|
|
271
303
|
ImageUrl: "image_url",
|
|
272
304
|
} as const;
|
|
@@ -310,14 +342,17 @@ export type GetOnePrompt21 = {
|
|
|
310
342
|
text: string;
|
|
311
343
|
};
|
|
312
344
|
|
|
313
|
-
export type GetOnePromptContent2 =
|
|
345
|
+
export type GetOnePromptContent2 =
|
|
346
|
+
| GetOnePrompt21
|
|
347
|
+
| GetOnePrompt22
|
|
348
|
+
| GetOnePrompt23;
|
|
314
349
|
|
|
315
350
|
/**
|
|
316
351
|
* 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.
|
|
317
352
|
*/
|
|
318
353
|
export type GetOnePromptContent =
|
|
319
354
|
| string
|
|
320
|
-
| Array<GetOnePrompt21 | GetOnePrompt22>;
|
|
355
|
+
| Array<GetOnePrompt21 | GetOnePrompt22 | GetOnePrompt23>;
|
|
321
356
|
|
|
322
357
|
export const GetOnePromptPromptsType = {
|
|
323
358
|
Function: "function",
|
|
@@ -349,7 +384,7 @@ export type GetOnePromptMessages = {
|
|
|
349
384
|
/**
|
|
350
385
|
* 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.
|
|
351
386
|
*/
|
|
352
|
-
content: string | Array<GetOnePrompt21 | GetOnePrompt22>;
|
|
387
|
+
content: string | Array<GetOnePrompt21 | GetOnePrompt22 | GetOnePrompt23>;
|
|
353
388
|
toolCalls?: Array<GetOnePromptToolCalls> | undefined;
|
|
354
389
|
toolCallId?: string | undefined;
|
|
355
390
|
};
|
|
@@ -1097,6 +1132,145 @@ export namespace GetOnePromptRole$ {
|
|
|
1097
1132
|
export const outboundSchema = GetOnePromptRole$outboundSchema;
|
|
1098
1133
|
}
|
|
1099
1134
|
|
|
1135
|
+
/** @internal */
|
|
1136
|
+
export const GetOnePrompt2PromptsResponseType$inboundSchema: z.ZodNativeEnum<
|
|
1137
|
+
typeof GetOnePrompt2PromptsResponseType
|
|
1138
|
+
> = z.nativeEnum(GetOnePrompt2PromptsResponseType);
|
|
1139
|
+
|
|
1140
|
+
/** @internal */
|
|
1141
|
+
export const GetOnePrompt2PromptsResponseType$outboundSchema: z.ZodNativeEnum<
|
|
1142
|
+
typeof GetOnePrompt2PromptsResponseType
|
|
1143
|
+
> = GetOnePrompt2PromptsResponseType$inboundSchema;
|
|
1144
|
+
|
|
1145
|
+
/**
|
|
1146
|
+
* @internal
|
|
1147
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1148
|
+
*/
|
|
1149
|
+
export namespace GetOnePrompt2PromptsResponseType$ {
|
|
1150
|
+
/** @deprecated use `GetOnePrompt2PromptsResponseType$inboundSchema` instead. */
|
|
1151
|
+
export const inboundSchema = GetOnePrompt2PromptsResponseType$inboundSchema;
|
|
1152
|
+
/** @deprecated use `GetOnePrompt2PromptsResponseType$outboundSchema` instead. */
|
|
1153
|
+
export const outboundSchema = GetOnePrompt2PromptsResponseType$outboundSchema;
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
/** @internal */
|
|
1157
|
+
export const GetOnePrompt2File$inboundSchema: z.ZodType<
|
|
1158
|
+
GetOnePrompt2File,
|
|
1159
|
+
z.ZodTypeDef,
|
|
1160
|
+
unknown
|
|
1161
|
+
> = z.object({
|
|
1162
|
+
file_data: z.string(),
|
|
1163
|
+
filename: z.string().optional(),
|
|
1164
|
+
}).transform((v) => {
|
|
1165
|
+
return remap$(v, {
|
|
1166
|
+
"file_data": "fileData",
|
|
1167
|
+
});
|
|
1168
|
+
});
|
|
1169
|
+
|
|
1170
|
+
/** @internal */
|
|
1171
|
+
export type GetOnePrompt2File$Outbound = {
|
|
1172
|
+
file_data: string;
|
|
1173
|
+
filename?: string | undefined;
|
|
1174
|
+
};
|
|
1175
|
+
|
|
1176
|
+
/** @internal */
|
|
1177
|
+
export const GetOnePrompt2File$outboundSchema: z.ZodType<
|
|
1178
|
+
GetOnePrompt2File$Outbound,
|
|
1179
|
+
z.ZodTypeDef,
|
|
1180
|
+
GetOnePrompt2File
|
|
1181
|
+
> = z.object({
|
|
1182
|
+
fileData: z.string(),
|
|
1183
|
+
filename: z.string().optional(),
|
|
1184
|
+
}).transform((v) => {
|
|
1185
|
+
return remap$(v, {
|
|
1186
|
+
fileData: "file_data",
|
|
1187
|
+
});
|
|
1188
|
+
});
|
|
1189
|
+
|
|
1190
|
+
/**
|
|
1191
|
+
* @internal
|
|
1192
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1193
|
+
*/
|
|
1194
|
+
export namespace GetOnePrompt2File$ {
|
|
1195
|
+
/** @deprecated use `GetOnePrompt2File$inboundSchema` instead. */
|
|
1196
|
+
export const inboundSchema = GetOnePrompt2File$inboundSchema;
|
|
1197
|
+
/** @deprecated use `GetOnePrompt2File$outboundSchema` instead. */
|
|
1198
|
+
export const outboundSchema = GetOnePrompt2File$outboundSchema;
|
|
1199
|
+
/** @deprecated use `GetOnePrompt2File$Outbound` instead. */
|
|
1200
|
+
export type Outbound = GetOnePrompt2File$Outbound;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
export function getOnePrompt2FileToJSON(
|
|
1204
|
+
getOnePrompt2File: GetOnePrompt2File,
|
|
1205
|
+
): string {
|
|
1206
|
+
return JSON.stringify(
|
|
1207
|
+
GetOnePrompt2File$outboundSchema.parse(getOnePrompt2File),
|
|
1208
|
+
);
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
export function getOnePrompt2FileFromJSON(
|
|
1212
|
+
jsonString: string,
|
|
1213
|
+
): SafeParseResult<GetOnePrompt2File, SDKValidationError> {
|
|
1214
|
+
return safeParse(
|
|
1215
|
+
jsonString,
|
|
1216
|
+
(x) => GetOnePrompt2File$inboundSchema.parse(JSON.parse(x)),
|
|
1217
|
+
`Failed to parse 'GetOnePrompt2File' from JSON`,
|
|
1218
|
+
);
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
/** @internal */
|
|
1222
|
+
export const GetOnePrompt23$inboundSchema: z.ZodType<
|
|
1223
|
+
GetOnePrompt23,
|
|
1224
|
+
z.ZodTypeDef,
|
|
1225
|
+
unknown
|
|
1226
|
+
> = z.object({
|
|
1227
|
+
type: GetOnePrompt2PromptsResponseType$inboundSchema,
|
|
1228
|
+
file: z.lazy(() => GetOnePrompt2File$inboundSchema),
|
|
1229
|
+
});
|
|
1230
|
+
|
|
1231
|
+
/** @internal */
|
|
1232
|
+
export type GetOnePrompt23$Outbound = {
|
|
1233
|
+
type: string;
|
|
1234
|
+
file: GetOnePrompt2File$Outbound;
|
|
1235
|
+
};
|
|
1236
|
+
|
|
1237
|
+
/** @internal */
|
|
1238
|
+
export const GetOnePrompt23$outboundSchema: z.ZodType<
|
|
1239
|
+
GetOnePrompt23$Outbound,
|
|
1240
|
+
z.ZodTypeDef,
|
|
1241
|
+
GetOnePrompt23
|
|
1242
|
+
> = z.object({
|
|
1243
|
+
type: GetOnePrompt2PromptsResponseType$outboundSchema,
|
|
1244
|
+
file: z.lazy(() => GetOnePrompt2File$outboundSchema),
|
|
1245
|
+
});
|
|
1246
|
+
|
|
1247
|
+
/**
|
|
1248
|
+
* @internal
|
|
1249
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1250
|
+
*/
|
|
1251
|
+
export namespace GetOnePrompt23$ {
|
|
1252
|
+
/** @deprecated use `GetOnePrompt23$inboundSchema` instead. */
|
|
1253
|
+
export const inboundSchema = GetOnePrompt23$inboundSchema;
|
|
1254
|
+
/** @deprecated use `GetOnePrompt23$outboundSchema` instead. */
|
|
1255
|
+
export const outboundSchema = GetOnePrompt23$outboundSchema;
|
|
1256
|
+
/** @deprecated use `GetOnePrompt23$Outbound` instead. */
|
|
1257
|
+
export type Outbound = GetOnePrompt23$Outbound;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
export function getOnePrompt23ToJSON(getOnePrompt23: GetOnePrompt23): string {
|
|
1261
|
+
return JSON.stringify(GetOnePrompt23$outboundSchema.parse(getOnePrompt23));
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
export function getOnePrompt23FromJSON(
|
|
1265
|
+
jsonString: string,
|
|
1266
|
+
): SafeParseResult<GetOnePrompt23, SDKValidationError> {
|
|
1267
|
+
return safeParse(
|
|
1268
|
+
jsonString,
|
|
1269
|
+
(x) => GetOnePrompt23$inboundSchema.parse(JSON.parse(x)),
|
|
1270
|
+
`Failed to parse 'GetOnePrompt23' from JSON`,
|
|
1271
|
+
);
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1100
1274
|
/** @internal */
|
|
1101
1275
|
export const GetOnePrompt2PromptsType$inboundSchema: z.ZodNativeEnum<
|
|
1102
1276
|
typeof GetOnePrompt2PromptsType
|
|
@@ -1321,12 +1495,14 @@ export const GetOnePromptContent2$inboundSchema: z.ZodType<
|
|
|
1321
1495
|
> = z.union([
|
|
1322
1496
|
z.lazy(() => GetOnePrompt21$inboundSchema),
|
|
1323
1497
|
z.lazy(() => GetOnePrompt22$inboundSchema),
|
|
1498
|
+
z.lazy(() => GetOnePrompt23$inboundSchema),
|
|
1324
1499
|
]);
|
|
1325
1500
|
|
|
1326
1501
|
/** @internal */
|
|
1327
1502
|
export type GetOnePromptContent2$Outbound =
|
|
1328
1503
|
| GetOnePrompt21$Outbound
|
|
1329
|
-
| GetOnePrompt22$Outbound
|
|
1504
|
+
| GetOnePrompt22$Outbound
|
|
1505
|
+
| GetOnePrompt23$Outbound;
|
|
1330
1506
|
|
|
1331
1507
|
/** @internal */
|
|
1332
1508
|
export const GetOnePromptContent2$outboundSchema: z.ZodType<
|
|
@@ -1336,6 +1512,7 @@ export const GetOnePromptContent2$outboundSchema: z.ZodType<
|
|
|
1336
1512
|
> = z.union([
|
|
1337
1513
|
z.lazy(() => GetOnePrompt21$outboundSchema),
|
|
1338
1514
|
z.lazy(() => GetOnePrompt22$outboundSchema),
|
|
1515
|
+
z.lazy(() => GetOnePrompt23$outboundSchema),
|
|
1339
1516
|
]);
|
|
1340
1517
|
|
|
1341
1518
|
/**
|
|
@@ -1379,13 +1556,16 @@ export const GetOnePromptContent$inboundSchema: z.ZodType<
|
|
|
1379
1556
|
z.array(z.union([
|
|
1380
1557
|
z.lazy(() => GetOnePrompt21$inboundSchema),
|
|
1381
1558
|
z.lazy(() => GetOnePrompt22$inboundSchema),
|
|
1559
|
+
z.lazy(() => GetOnePrompt23$inboundSchema),
|
|
1382
1560
|
])),
|
|
1383
1561
|
]);
|
|
1384
1562
|
|
|
1385
1563
|
/** @internal */
|
|
1386
1564
|
export type GetOnePromptContent$Outbound =
|
|
1387
1565
|
| string
|
|
1388
|
-
| Array<
|
|
1566
|
+
| Array<
|
|
1567
|
+
GetOnePrompt21$Outbound | GetOnePrompt22$Outbound | GetOnePrompt23$Outbound
|
|
1568
|
+
>;
|
|
1389
1569
|
|
|
1390
1570
|
/** @internal */
|
|
1391
1571
|
export const GetOnePromptContent$outboundSchema: z.ZodType<
|
|
@@ -1397,6 +1577,7 @@ export const GetOnePromptContent$outboundSchema: z.ZodType<
|
|
|
1397
1577
|
z.array(z.union([
|
|
1398
1578
|
z.lazy(() => GetOnePrompt21$outboundSchema),
|
|
1399
1579
|
z.lazy(() => GetOnePrompt22$outboundSchema),
|
|
1580
|
+
z.lazy(() => GetOnePrompt23$outboundSchema),
|
|
1400
1581
|
])),
|
|
1401
1582
|
]);
|
|
1402
1583
|
|
|
@@ -1584,6 +1765,7 @@ export const GetOnePromptMessages$inboundSchema: z.ZodType<
|
|
|
1584
1765
|
z.array(z.union([
|
|
1585
1766
|
z.lazy(() => GetOnePrompt21$inboundSchema),
|
|
1586
1767
|
z.lazy(() => GetOnePrompt22$inboundSchema),
|
|
1768
|
+
z.lazy(() => GetOnePrompt23$inboundSchema),
|
|
1587
1769
|
])),
|
|
1588
1770
|
]),
|
|
1589
1771
|
tool_calls: z.array(z.lazy(() => GetOnePromptToolCalls$inboundSchema))
|
|
@@ -1599,7 +1781,13 @@ export const GetOnePromptMessages$inboundSchema: z.ZodType<
|
|
|
1599
1781
|
/** @internal */
|
|
1600
1782
|
export type GetOnePromptMessages$Outbound = {
|
|
1601
1783
|
role: string;
|
|
1602
|
-
content:
|
|
1784
|
+
content:
|
|
1785
|
+
| string
|
|
1786
|
+
| Array<
|
|
1787
|
+
| GetOnePrompt21$Outbound
|
|
1788
|
+
| GetOnePrompt22$Outbound
|
|
1789
|
+
| GetOnePrompt23$Outbound
|
|
1790
|
+
>;
|
|
1603
1791
|
tool_calls?: Array<GetOnePromptToolCalls$Outbound> | undefined;
|
|
1604
1792
|
tool_call_id?: string | undefined;
|
|
1605
1793
|
};
|
|
@@ -1616,6 +1804,7 @@ export const GetOnePromptMessages$outboundSchema: z.ZodType<
|
|
|
1616
1804
|
z.array(z.union([
|
|
1617
1805
|
z.lazy(() => GetOnePrompt21$outboundSchema),
|
|
1618
1806
|
z.lazy(() => GetOnePrompt22$outboundSchema),
|
|
1807
|
+
z.lazy(() => GetOnePrompt23$outboundSchema),
|
|
1619
1808
|
])),
|
|
1620
1809
|
]),
|
|
1621
1810
|
toolCalls: z.array(z.lazy(() => GetOnePromptToolCalls$outboundSchema))
|