@orq-ai/node 3.8.0-rc.3 → 3.8.0-rc.31
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/FUNCTIONS.md +3 -5
- package/README.md +91 -95
- package/bin/mcp-server.js +2288 -883
- package/bin/mcp-server.js.map +71 -65
- package/docs/sdks/contacts/README.md +30 -2
- package/docs/sdks/knowledge/README.md +1 -1
- package/docs/sdks/orq/README.md +138 -0
- package/funcs/filesCreate.d.ts.map +1 -1
- package/funcs/filesCreate.js +7 -3
- package/funcs/filesCreate.js.map +1 -1
- package/funcs/getV2ModelsLitellmModels.d.ts +17 -0
- package/funcs/getV2ModelsLitellmModels.d.ts.map +1 -0
- package/funcs/getV2ModelsLitellmModels.js +105 -0
- package/funcs/getV2ModelsLitellmModels.js.map +1 -0
- package/funcs/knowledgeCreateChunks.d.ts +1 -1
- package/funcs/knowledgeCreateChunks.d.ts.map +1 -1
- package/funcs/knowledgeCreateChunks.js +1 -1
- package/funcs/knowledgeCreateChunks.js.map +1 -1
- package/funcs/postV2ModelsLitellmImport.d.ts +17 -0
- package/funcs/postV2ModelsLitellmImport.d.ts.map +1 -0
- package/funcs/postV2ModelsLitellmImport.js +117 -0
- package/funcs/postV2ModelsLitellmImport.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/files.d.ts +5 -0
- package/lib/files.d.ts.map +1 -1
- package/lib/files.js +41 -0
- package/lib/files.js.map +1 -1
- package/lib/security.d.ts +2 -2
- package/lib/security.d.ts.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +5 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/getV2ModelsLitellmModels.d.ts +3 -0
- package/mcp-server/tools/getV2ModelsLitellmModels.d.ts.map +1 -0
- package/mcp-server/tools/getV2ModelsLitellmModels.js +26 -0
- package/mcp-server/tools/getV2ModelsLitellmModels.js.map +1 -0
- package/mcp-server/tools/postV2ModelsLitellmImport.d.ts +9 -0
- package/mcp-server/tools/postV2ModelsLitellmImport.d.ts.map +1 -0
- package/mcp-server/tools/postV2ModelsLitellmImport.js +65 -0
- package/mcp-server/tools/postV2ModelsLitellmImport.js.map +1 -0
- package/models/components/deployments.d.ts +8 -8
- package/models/components/deployments.d.ts.map +1 -1
- package/models/components/deployments.js +8 -8
- package/models/components/deployments.js.map +1 -1
- package/models/operations/createchunk.d.ts +28 -28
- package/models/operations/createchunk.d.ts.map +1 -1
- package/models/operations/createchunk.js +35 -33
- package/models/operations/createchunk.js.map +1 -1
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.d.ts +8 -8
- package/models/operations/createdatasetitem.d.ts.map +1 -1
- package/models/operations/createdatasetitem.js +10 -10
- package/models/operations/createdatasetitem.js.map +1 -1
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.d.ts +36 -36
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +56 -56
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createfeedback.d.ts +8 -8
- package/models/operations/createfeedback.d.ts.map +1 -1
- package/models/operations/createfeedback.js +8 -8
- package/models/operations/createfeedback.js.map +1 -1
- package/models/operations/createprompt.d.ts +24 -18
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +20 -18
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/deploymentcreatemetric.d.ts +8 -8
- package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
- package/models/operations/deploymentcreatemetric.js +8 -8
- package/models/operations/deploymentcreatemetric.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +29 -29
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +32 -32
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +7 -4
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +9 -8
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +9 -6
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +7 -6
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +12 -12
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +12 -12
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/evalsageappropriate.d.ts +2 -2
- package/models/operations/evalsageappropriate.js +2 -2
- package/models/operations/evalsfactcheckingknowledgebase.d.ts +2 -2
- package/models/operations/evalsfactcheckingknowledgebase.js +2 -2
- package/models/operations/evalsgrammar.d.ts +2 -2
- package/models/operations/evalsgrammar.js +2 -2
- package/models/operations/evalslocalization.d.ts +2 -2
- package/models/operations/evalslocalization.js +2 -2
- package/models/operations/evalspii.d.ts +2 -2
- package/models/operations/evalspii.js +2 -2
- package/models/operations/evalsragascoherence.d.ts +2 -2
- package/models/operations/evalsragascoherence.js +2 -2
- package/models/operations/evalsragasconciseness.d.ts +2 -2
- package/models/operations/evalsragasconciseness.js +2 -2
- package/models/operations/evalsragascontextprecision.d.ts +2 -2
- package/models/operations/evalsragascontextprecision.js +2 -2
- package/models/operations/evalsragascorrectness.d.ts +2 -2
- package/models/operations/evalsragascorrectness.js +2 -2
- package/models/operations/evalsragasfaithfulness.d.ts +2 -2
- package/models/operations/evalsragasfaithfulness.js +2 -2
- package/models/operations/evalsragasharmfulness.d.ts +2 -2
- package/models/operations/evalsragasharmfulness.js +2 -2
- package/models/operations/evalsragasmaliciousness.d.ts +2 -2
- package/models/operations/evalsragasmaliciousness.js +2 -2
- package/models/operations/evalsragasresponserelevancy.d.ts +2 -2
- package/models/operations/evalsragasresponserelevancy.js +2 -2
- package/models/operations/evalssentimentclassification.d.ts +2 -2
- package/models/operations/evalssentimentclassification.js +2 -2
- package/models/operations/evalssummarization.d.ts +2 -2
- package/models/operations/evalssummarization.js +2 -2
- package/models/operations/evalstoneofvoice.d.ts +2 -2
- package/models/operations/evalstoneofvoice.js +2 -2
- package/models/operations/evalstranslation.d.ts +2 -2
- package/models/operations/evalstranslation.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/getallprompts.d.ts +13 -10
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +11 -10
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getevals.d.ts +88 -88
- package/models/operations/getevals.d.ts.map +1 -1
- package/models/operations/getevals.js +187 -182
- package/models/operations/getevals.js.map +1 -1
- package/models/operations/getoneprompt.d.ts +13 -10
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +11 -10
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +13 -10
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +11 -10
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/getv2modelslitellmmodels.d.ts +185 -0
- package/models/operations/getv2modelslitellmmodels.d.ts.map +1 -0
- package/models/operations/getv2modelslitellmmodels.js +349 -0
- package/models/operations/getv2modelslitellmmodels.js.map +1 -0
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeeval.d.ts +108 -108
- package/models/operations/invokeeval.d.ts.map +1 -1
- package/models/operations/invokeeval.js +141 -144
- package/models/operations/invokeeval.js.map +1 -1
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.d.ts +4 -4
- package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
- package/models/operations/listdatasetdatapoints.js +6 -6
- package/models/operations/listdatasetdatapoints.js.map +1 -1
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/listpromptversions.d.ts +13 -10
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +11 -10
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/postv2modelslitellmimport.d.ts +1333 -0
- package/models/operations/postv2modelslitellmimport.d.ts.map +1 -0
- package/models/operations/postv2modelslitellmimport.js +1400 -0
- package/models/operations/postv2modelslitellmimport.js.map +1 -0
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.d.ts +4 -4
- package/models/operations/retrievedatapoint.d.ts.map +1 -1
- package/models/operations/retrievedatapoint.js +6 -6
- package/models/operations/retrievedatapoint.js.map +1 -1
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.d.ts +8 -8
- package/models/operations/updatedatapoint.d.ts.map +1 -1
- package/models/operations/updatedatapoint.js +10 -10
- package/models/operations/updatedatapoint.js.map +1 -1
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.d.ts +38 -38
- package/models/operations/updateeval.d.ts.map +1 -1
- package/models/operations/updateeval.js +60 -60
- package/models/operations/updateeval.js.map +1 -1
- package/models/operations/updateprompt.d.ts +33 -86
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +41 -64
- package/models/operations/updateprompt.js.map +1 -1
- package/package.json +1 -1
- package/sdk/knowledge.d.ts +1 -1
- package/sdk/knowledge.d.ts.map +1 -1
- package/sdk/sdk.d.ts +16 -1
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +21 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/filesCreate.ts +11 -4
- package/src/funcs/getV2ModelsLitellmModels.ts +143 -0
- package/src/funcs/knowledgeCreateChunks.ts +4 -4
- package/src/funcs/postV2ModelsLitellmImport.ts +167 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/files.ts +42 -0
- package/src/lib/security.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/getV2ModelsLitellmModels.ts +30 -0
- package/src/mcp-server/tools/postV2ModelsLitellmImport.ts +38 -0
- package/src/models/components/deployments.ts +16 -16
- package/src/models/operations/createchunk.ts +54 -44
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +18 -18
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +121 -121
- package/src/models/operations/createfeedback.ts +16 -16
- package/src/models/operations/createprompt.ts +41 -39
- package/src/models/operations/deploymentcreatemetric.ts +22 -18
- package/src/models/operations/deploymentgetconfig.ts +60 -54
- package/src/models/operations/deploymentinvoke.ts +14 -13
- package/src/models/operations/deployments.ts +15 -14
- package/src/models/operations/deploymentstream.ts +26 -26
- package/src/models/operations/evalsageappropriate.ts +4 -4
- package/src/models/operations/evalsfactcheckingknowledgebase.ts +4 -4
- package/src/models/operations/evalsgrammar.ts +4 -4
- package/src/models/operations/evalslocalization.ts +4 -4
- package/src/models/operations/evalspii.ts +4 -4
- package/src/models/operations/evalsragascoherence.ts +4 -4
- package/src/models/operations/evalsragasconciseness.ts +4 -4
- package/src/models/operations/evalsragascontextprecision.ts +4 -4
- package/src/models/operations/evalsragascorrectness.ts +4 -4
- package/src/models/operations/evalsragasfaithfulness.ts +4 -4
- package/src/models/operations/evalsragasharmfulness.ts +4 -4
- package/src/models/operations/evalsragasmaliciousness.ts +4 -4
- package/src/models/operations/evalsragasresponserelevancy.ts +4 -4
- package/src/models/operations/evalssentimentclassification.ts +4 -4
- package/src/models/operations/evalssummarization.ts +4 -4
- package/src/models/operations/evalstoneofvoice.ts +4 -4
- package/src/models/operations/evalstranslation.ts +4 -4
- 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/getallprompts.ts +23 -22
- package/src/models/operations/getevals.ts +339 -364
- package/src/models/operations/getoneprompt.ts +23 -22
- package/src/models/operations/getpromptversion.ts +23 -22
- package/src/models/operations/getv2modelslitellmmodels.ts +530 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/invokeeval.ts +251 -223
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +16 -12
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/listpromptversions.ts +23 -22
- package/src/models/operations/postv2modelslitellmimport.ts +2408 -0
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +10 -10
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +21 -19
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +139 -139
- package/src/models/operations/updateprompt.ts +63 -106
- package/src/sdk/knowledge.ts +1 -1
- package/src/sdk/sdk.ts +37 -1
|
@@ -345,7 +345,7 @@ export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
|
|
|
345
345
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
346
346
|
.optional(),
|
|
347
347
|
updated: z.string().datetime({ offset: true }).default(
|
|
348
|
-
"2025-06-
|
|
348
|
+
"2025-06-17T09:09:46.815Z",
|
|
349
349
|
).transform(v => new Date(v)),
|
|
350
350
|
metrics: z.lazy(() => Metrics$inboundSchema),
|
|
351
351
|
}).transform((v) => {
|
|
@@ -382,7 +382,7 @@ export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
|
|
|
382
382
|
tags: z.array(z.string()).optional(),
|
|
383
383
|
metadata: z.record(z.any()).optional(),
|
|
384
384
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
385
|
-
updated: z.date().default(() => new Date("2025-06-
|
|
385
|
+
updated: z.date().default(() => new Date("2025-06-17T09:09:46.815Z"))
|
|
386
386
|
.transform(v => v.toISOString()),
|
|
387
387
|
metrics: z.lazy(() => Metrics$outboundSchema),
|
|
388
388
|
}).transform((v) => {
|
|
@@ -469,10 +469,10 @@ export type ListDatasetDatapointsMessagesDeveloperMessage = {
|
|
|
469
469
|
};
|
|
470
470
|
|
|
471
471
|
export type ListDatasetDatapointsMessages =
|
|
472
|
+
| ListDatasetDatapointsMessagesToolMessage
|
|
472
473
|
| ListDatasetDatapointsMessagesDeveloperMessage
|
|
473
474
|
| ListDatasetDatapointsMessagesSystemMessage
|
|
474
475
|
| ListDatasetDatapointsMessagesUserMessage
|
|
475
|
-
| ListDatasetDatapointsMessagesToolMessage
|
|
476
476
|
| ListDatasetDatapointsMessagesAssistantMessage;
|
|
477
477
|
|
|
478
478
|
export type ListDatasetDatapointsData = {
|
|
@@ -493,10 +493,10 @@ export type ListDatasetDatapointsData = {
|
|
|
493
493
|
*/
|
|
494
494
|
messages?:
|
|
495
495
|
| Array<
|
|
496
|
+
| ListDatasetDatapointsMessagesToolMessage
|
|
496
497
|
| ListDatasetDatapointsMessagesDeveloperMessage
|
|
497
498
|
| ListDatasetDatapointsMessagesSystemMessage
|
|
498
499
|
| ListDatasetDatapointsMessagesUserMessage
|
|
499
|
-
| ListDatasetDatapointsMessagesToolMessage
|
|
500
500
|
| ListDatasetDatapointsMessagesAssistantMessage
|
|
501
501
|
>
|
|
502
502
|
| undefined;
|
|
@@ -2516,19 +2516,19 @@ export const ListDatasetDatapointsMessages$inboundSchema: z.ZodType<
|
|
|
2516
2516
|
z.ZodTypeDef,
|
|
2517
2517
|
unknown
|
|
2518
2518
|
> = z.union([
|
|
2519
|
+
z.lazy(() => ListDatasetDatapointsMessagesToolMessage$inboundSchema),
|
|
2519
2520
|
z.lazy(() => ListDatasetDatapointsMessagesDeveloperMessage$inboundSchema),
|
|
2520
2521
|
z.lazy(() => ListDatasetDatapointsMessagesSystemMessage$inboundSchema),
|
|
2521
2522
|
z.lazy(() => ListDatasetDatapointsMessagesUserMessage$inboundSchema),
|
|
2522
|
-
z.lazy(() => ListDatasetDatapointsMessagesToolMessage$inboundSchema),
|
|
2523
2523
|
z.lazy(() => ListDatasetDatapointsMessagesAssistantMessage$inboundSchema),
|
|
2524
2524
|
]);
|
|
2525
2525
|
|
|
2526
2526
|
/** @internal */
|
|
2527
2527
|
export type ListDatasetDatapointsMessages$Outbound =
|
|
2528
|
+
| ListDatasetDatapointsMessagesToolMessage$Outbound
|
|
2528
2529
|
| ListDatasetDatapointsMessagesDeveloperMessage$Outbound
|
|
2529
2530
|
| ListDatasetDatapointsMessagesSystemMessage$Outbound
|
|
2530
2531
|
| ListDatasetDatapointsMessagesUserMessage$Outbound
|
|
2531
|
-
| ListDatasetDatapointsMessagesToolMessage$Outbound
|
|
2532
2532
|
| ListDatasetDatapointsMessagesAssistantMessage$Outbound;
|
|
2533
2533
|
|
|
2534
2534
|
/** @internal */
|
|
@@ -2537,10 +2537,10 @@ export const ListDatasetDatapointsMessages$outboundSchema: z.ZodType<
|
|
|
2537
2537
|
z.ZodTypeDef,
|
|
2538
2538
|
ListDatasetDatapointsMessages
|
|
2539
2539
|
> = z.union([
|
|
2540
|
+
z.lazy(() => ListDatasetDatapointsMessagesToolMessage$outboundSchema),
|
|
2540
2541
|
z.lazy(() => ListDatasetDatapointsMessagesDeveloperMessage$outboundSchema),
|
|
2541
2542
|
z.lazy(() => ListDatasetDatapointsMessagesSystemMessage$outboundSchema),
|
|
2542
2543
|
z.lazy(() => ListDatasetDatapointsMessagesUserMessage$outboundSchema),
|
|
2543
|
-
z.lazy(() => ListDatasetDatapointsMessagesToolMessage$outboundSchema),
|
|
2544
2544
|
z.lazy(() => ListDatasetDatapointsMessagesAssistantMessage$outboundSchema),
|
|
2545
2545
|
]);
|
|
2546
2546
|
|
|
@@ -2588,10 +2588,12 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
2588
2588
|
inputs: z.record(z.any()).optional(),
|
|
2589
2589
|
messages: z.array(
|
|
2590
2590
|
z.union([
|
|
2591
|
-
z.lazy(() =>
|
|
2591
|
+
z.lazy(() => ListDatasetDatapointsMessagesToolMessage$inboundSchema),
|
|
2592
|
+
z.lazy(() =>
|
|
2593
|
+
ListDatasetDatapointsMessagesDeveloperMessage$inboundSchema
|
|
2594
|
+
),
|
|
2592
2595
|
z.lazy(() => ListDatasetDatapointsMessagesSystemMessage$inboundSchema),
|
|
2593
2596
|
z.lazy(() => ListDatasetDatapointsMessagesUserMessage$inboundSchema),
|
|
2594
|
-
z.lazy(() => ListDatasetDatapointsMessagesToolMessage$inboundSchema),
|
|
2595
2597
|
z.lazy(() => ListDatasetDatapointsMessagesAssistantMessage$inboundSchema),
|
|
2596
2598
|
]),
|
|
2597
2599
|
).optional(),
|
|
@@ -2602,7 +2604,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
2602
2604
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2603
2605
|
.optional(),
|
|
2604
2606
|
updated: z.string().datetime({ offset: true }).default(
|
|
2605
|
-
"2025-06-
|
|
2607
|
+
"2025-06-17T09:09:46.815Z",
|
|
2606
2608
|
).transform(v => new Date(v)),
|
|
2607
2609
|
}).transform((v) => {
|
|
2608
2610
|
return remap$(v, {
|
|
@@ -2622,10 +2624,10 @@ export type ListDatasetDatapointsData$Outbound = {
|
|
|
2622
2624
|
inputs?: { [k: string]: any } | undefined;
|
|
2623
2625
|
messages?:
|
|
2624
2626
|
| Array<
|
|
2627
|
+
| ListDatasetDatapointsMessagesToolMessage$Outbound
|
|
2625
2628
|
| ListDatasetDatapointsMessagesDeveloperMessage$Outbound
|
|
2626
2629
|
| ListDatasetDatapointsMessagesSystemMessage$Outbound
|
|
2627
2630
|
| ListDatasetDatapointsMessagesUserMessage$Outbound
|
|
2628
|
-
| ListDatasetDatapointsMessagesToolMessage$Outbound
|
|
2629
2631
|
| ListDatasetDatapointsMessagesAssistantMessage$Outbound
|
|
2630
2632
|
>
|
|
2631
2633
|
| undefined;
|
|
@@ -2648,12 +2650,14 @@ export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
|
|
|
2648
2650
|
inputs: z.record(z.any()).optional(),
|
|
2649
2651
|
messages: z.array(
|
|
2650
2652
|
z.union([
|
|
2653
|
+
z.lazy(() => ListDatasetDatapointsMessagesToolMessage$outboundSchema),
|
|
2651
2654
|
z.lazy(() =>
|
|
2652
2655
|
ListDatasetDatapointsMessagesDeveloperMessage$outboundSchema
|
|
2653
2656
|
),
|
|
2654
|
-
z.lazy(() =>
|
|
2657
|
+
z.lazy(() =>
|
|
2658
|
+
ListDatasetDatapointsMessagesSystemMessage$outboundSchema
|
|
2659
|
+
),
|
|
2655
2660
|
z.lazy(() => ListDatasetDatapointsMessagesUserMessage$outboundSchema),
|
|
2656
|
-
z.lazy(() => ListDatasetDatapointsMessagesToolMessage$outboundSchema),
|
|
2657
2661
|
z.lazy(() =>
|
|
2658
2662
|
ListDatasetDatapointsMessagesAssistantMessage$outboundSchema
|
|
2659
2663
|
),
|
|
@@ -2664,7 +2668,7 @@ export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
|
|
|
2664
2668
|
createdById: z.string().optional(),
|
|
2665
2669
|
updatedById: z.string().optional(),
|
|
2666
2670
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
2667
|
-
updated: z.date().default(() => new Date("2025-06-
|
|
2671
|
+
updated: z.date().default(() => new Date("2025-06-17T09:09:46.815Z"))
|
|
2668
2672
|
.transform(v => v.toISOString()),
|
|
2669
2673
|
}).transform((v) => {
|
|
2670
2674
|
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-06-
|
|
256
|
+
"2025-06-17T09:09:46.815Z",
|
|
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-06-
|
|
296
|
+
updated: z.date().default(() => new Date("2025-06-17T09:09:46.815Z"))
|
|
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("01JXYJDX0JNJ7T07D95VJH505F"),
|
|
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("01JXYJDX0JNJ7T07D95VJH505F"),
|
|
326
326
|
displayName: z.string(),
|
|
327
327
|
description: z.string().optional(),
|
|
328
328
|
status: ListDatasourcesStatus$outboundSchema,
|
|
@@ -89,7 +89,7 @@ export type ListPromptVersionsResponseFormatType = ClosedEnum<
|
|
|
89
89
|
|
|
90
90
|
export type ListPromptVersionsResponseFormatJsonSchema = {
|
|
91
91
|
name: string;
|
|
92
|
-
strict
|
|
92
|
+
strict?: boolean | undefined;
|
|
93
93
|
schema: { [k: string]: any };
|
|
94
94
|
};
|
|
95
95
|
|
|
@@ -110,8 +110,8 @@ export type ListPromptVersionsResponseFormat1 = {
|
|
|
110
110
|
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
111
111
|
*/
|
|
112
112
|
export type ListPromptVersionsResponseFormat =
|
|
113
|
-
|
|
|
114
|
-
|
|
|
113
|
+
| ListPromptVersionsResponseFormat1
|
|
114
|
+
| ListPromptVersionsResponseFormat2;
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
117
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
@@ -220,8 +220,8 @@ export type ListPromptVersionsModelParameters = {
|
|
|
220
220
|
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
221
221
|
*/
|
|
222
222
|
responseFormat?:
|
|
223
|
-
| ListPromptVersionsResponseFormat2
|
|
224
223
|
| ListPromptVersionsResponseFormat1
|
|
224
|
+
| ListPromptVersionsResponseFormat2
|
|
225
225
|
| null
|
|
226
226
|
| undefined;
|
|
227
227
|
/**
|
|
@@ -261,6 +261,7 @@ export const ListPromptVersionsProvider = {
|
|
|
261
261
|
Jina: "jina",
|
|
262
262
|
Togetherai: "togetherai",
|
|
263
263
|
Elevenlabs: "elevenlabs",
|
|
264
|
+
Litellm: "litellm",
|
|
264
265
|
} as const;
|
|
265
266
|
export type ListPromptVersionsProvider = ClosedEnum<
|
|
266
267
|
typeof ListPromptVersionsProvider
|
|
@@ -417,11 +418,11 @@ export type ListPromptVersionsPromptConfig = {
|
|
|
417
418
|
/**
|
|
418
419
|
* The id of the resource
|
|
419
420
|
*/
|
|
420
|
-
modelDbId?: string | undefined;
|
|
421
|
+
modelDbId?: string | null | undefined;
|
|
421
422
|
/**
|
|
422
423
|
* The modality of the model
|
|
423
424
|
*/
|
|
424
|
-
modelType?: ListPromptVersionsModelType | undefined;
|
|
425
|
+
modelType?: ListPromptVersionsModelType | null | undefined;
|
|
425
426
|
/**
|
|
426
427
|
* Model Parameters: Not all parameters apply to every model
|
|
427
428
|
*/
|
|
@@ -763,14 +764,14 @@ export const ListPromptVersionsResponseFormatJsonSchema$inboundSchema:
|
|
|
763
764
|
z.ZodType<ListPromptVersionsResponseFormatJsonSchema, z.ZodTypeDef, unknown> =
|
|
764
765
|
z.object({
|
|
765
766
|
name: z.string(),
|
|
766
|
-
strict: z.boolean(),
|
|
767
|
+
strict: z.boolean().optional(),
|
|
767
768
|
schema: z.record(z.any()),
|
|
768
769
|
});
|
|
769
770
|
|
|
770
771
|
/** @internal */
|
|
771
772
|
export type ListPromptVersionsResponseFormatJsonSchema$Outbound = {
|
|
772
773
|
name: string;
|
|
773
|
-
strict
|
|
774
|
+
strict?: boolean | undefined;
|
|
774
775
|
schema: { [k: string]: any };
|
|
775
776
|
};
|
|
776
777
|
|
|
@@ -782,7 +783,7 @@ export const ListPromptVersionsResponseFormatJsonSchema$outboundSchema:
|
|
|
782
783
|
ListPromptVersionsResponseFormatJsonSchema
|
|
783
784
|
> = z.object({
|
|
784
785
|
name: z.string(),
|
|
785
|
-
strict: z.boolean(),
|
|
786
|
+
strict: z.boolean().optional(),
|
|
786
787
|
schema: z.record(z.any()),
|
|
787
788
|
});
|
|
788
789
|
|
|
@@ -906,14 +907,14 @@ export const ListPromptVersionsResponseFormat$inboundSchema: z.ZodType<
|
|
|
906
907
|
z.ZodTypeDef,
|
|
907
908
|
unknown
|
|
908
909
|
> = z.union([
|
|
909
|
-
z.lazy(() => ListPromptVersionsResponseFormat2$inboundSchema),
|
|
910
910
|
z.lazy(() => ListPromptVersionsResponseFormat1$inboundSchema),
|
|
911
|
+
z.lazy(() => ListPromptVersionsResponseFormat2$inboundSchema),
|
|
911
912
|
]);
|
|
912
913
|
|
|
913
914
|
/** @internal */
|
|
914
915
|
export type ListPromptVersionsResponseFormat$Outbound =
|
|
915
|
-
|
|
|
916
|
-
|
|
|
916
|
+
| ListPromptVersionsResponseFormat1$Outbound
|
|
917
|
+
| ListPromptVersionsResponseFormat2$Outbound;
|
|
917
918
|
|
|
918
919
|
/** @internal */
|
|
919
920
|
export const ListPromptVersionsResponseFormat$outboundSchema: z.ZodType<
|
|
@@ -921,8 +922,8 @@ export const ListPromptVersionsResponseFormat$outboundSchema: z.ZodType<
|
|
|
921
922
|
z.ZodTypeDef,
|
|
922
923
|
ListPromptVersionsResponseFormat
|
|
923
924
|
> = z.union([
|
|
924
|
-
z.lazy(() => ListPromptVersionsResponseFormat2$outboundSchema),
|
|
925
925
|
z.lazy(() => ListPromptVersionsResponseFormat1$outboundSchema),
|
|
926
|
+
z.lazy(() => ListPromptVersionsResponseFormat2$outboundSchema),
|
|
926
927
|
]);
|
|
927
928
|
|
|
928
929
|
/**
|
|
@@ -1043,8 +1044,8 @@ export const ListPromptVersionsModelParameters$inboundSchema: z.ZodType<
|
|
|
1043
1044
|
style: z.string().optional(),
|
|
1044
1045
|
responseFormat: z.nullable(
|
|
1045
1046
|
z.union([
|
|
1046
|
-
z.lazy(() => ListPromptVersionsResponseFormat2$inboundSchema),
|
|
1047
1047
|
z.lazy(() => ListPromptVersionsResponseFormat1$inboundSchema),
|
|
1048
|
+
z.lazy(() => ListPromptVersionsResponseFormat2$inboundSchema),
|
|
1048
1049
|
]),
|
|
1049
1050
|
).optional(),
|
|
1050
1051
|
photoRealVersion: ListPromptVersionsPhotoRealVersion$inboundSchema.optional(),
|
|
@@ -1072,8 +1073,8 @@ export type ListPromptVersionsModelParameters$Outbound = {
|
|
|
1072
1073
|
quality?: string | undefined;
|
|
1073
1074
|
style?: string | undefined;
|
|
1074
1075
|
responseFormat?:
|
|
1075
|
-
| ListPromptVersionsResponseFormat2$Outbound
|
|
1076
1076
|
| ListPromptVersionsResponseFormat1$Outbound
|
|
1077
|
+
| ListPromptVersionsResponseFormat2$Outbound
|
|
1077
1078
|
| null
|
|
1078
1079
|
| undefined;
|
|
1079
1080
|
photoRealVersion?: string | undefined;
|
|
@@ -1102,8 +1103,8 @@ export const ListPromptVersionsModelParameters$outboundSchema: z.ZodType<
|
|
|
1102
1103
|
style: z.string().optional(),
|
|
1103
1104
|
responseFormat: z.nullable(
|
|
1104
1105
|
z.union([
|
|
1105
|
-
z.lazy(() => ListPromptVersionsResponseFormat2$outboundSchema),
|
|
1106
1106
|
z.lazy(() => ListPromptVersionsResponseFormat1$outboundSchema),
|
|
1107
|
+
z.lazy(() => ListPromptVersionsResponseFormat2$outboundSchema),
|
|
1107
1108
|
]),
|
|
1108
1109
|
).optional(),
|
|
1109
1110
|
photoRealVersion: ListPromptVersionsPhotoRealVersion$outboundSchema
|
|
@@ -1938,8 +1939,8 @@ export const ListPromptVersionsPromptConfig$inboundSchema: z.ZodType<
|
|
|
1938
1939
|
> = z.object({
|
|
1939
1940
|
stream: z.boolean().optional(),
|
|
1940
1941
|
model: z.string().optional(),
|
|
1941
|
-
model_db_id: z.string().optional(),
|
|
1942
|
-
model_type: ListPromptVersionsModelType$inboundSchema.optional(),
|
|
1942
|
+
model_db_id: z.nullable(z.string()).optional(),
|
|
1943
|
+
model_type: z.nullable(ListPromptVersionsModelType$inboundSchema).optional(),
|
|
1943
1944
|
model_parameters: z.lazy(() =>
|
|
1944
1945
|
ListPromptVersionsModelParameters$inboundSchema
|
|
1945
1946
|
).optional(),
|
|
@@ -1960,8 +1961,8 @@ export const ListPromptVersionsPromptConfig$inboundSchema: z.ZodType<
|
|
|
1960
1961
|
export type ListPromptVersionsPromptConfig$Outbound = {
|
|
1961
1962
|
stream?: boolean | undefined;
|
|
1962
1963
|
model?: string | undefined;
|
|
1963
|
-
model_db_id?: string | undefined;
|
|
1964
|
-
model_type?: string | undefined;
|
|
1964
|
+
model_db_id?: string | null | undefined;
|
|
1965
|
+
model_type?: string | null | undefined;
|
|
1965
1966
|
model_parameters?: ListPromptVersionsModelParameters$Outbound | undefined;
|
|
1966
1967
|
provider?: string | undefined;
|
|
1967
1968
|
integration_id?: string | null | undefined;
|
|
@@ -1977,8 +1978,8 @@ export const ListPromptVersionsPromptConfig$outboundSchema: z.ZodType<
|
|
|
1977
1978
|
> = z.object({
|
|
1978
1979
|
stream: z.boolean().optional(),
|
|
1979
1980
|
model: z.string().optional(),
|
|
1980
|
-
modelDbId: z.string().optional(),
|
|
1981
|
-
modelType: ListPromptVersionsModelType$outboundSchema.optional(),
|
|
1981
|
+
modelDbId: z.nullable(z.string()).optional(),
|
|
1982
|
+
modelType: z.nullable(ListPromptVersionsModelType$outboundSchema).optional(),
|
|
1982
1983
|
modelParameters: z.lazy(() =>
|
|
1983
1984
|
ListPromptVersionsModelParameters$outboundSchema
|
|
1984
1985
|
).optional(),
|