@orq-ai/node 3.13.3 → 3.13.5
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 +216 -246
- package/bin/mcp-server.js.map +42 -42
- package/docs/sdks/agents/README.md +3 -3
- package/examples/package-lock.json +1 -1
- package/funcs/agentsRetrieveTask.js +2 -2
- package/funcs/agentsRetrieveTask.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createbudget.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/createeval.js +28 -28
- package/models/operations/createtool.js +14 -14
- package/models/operations/duplicatetool.js +10 -10
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getagent.d.ts +5 -2
- package/models/operations/getagent.d.ts.map +1 -1
- package/models/operations/getagent.js +4 -12
- package/models/operations/getagent.js.map +1 -1
- package/models/operations/getagenttask.d.ts +2 -2
- package/models/operations/getagenttask.d.ts.map +1 -1
- package/models/operations/getagenttask.js +4 -2
- package/models/operations/getagenttask.js.map +1 -1
- package/models/operations/getalltools.js +10 -10
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listagents.d.ts +5 -2
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +4 -12
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +10 -10
- package/models/operations/runagent.d.ts +5 -2
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +4 -12
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +5 -2
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +4 -12
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/packages/orq-rc/README.md +102 -93
- package/packages/orq-rc/docs/sdks/agents/README.md +97 -22
- package/packages/orq-rc/docs/sdks/knowledge/README.md +228 -0
- package/packages/orq-rc/docs/sdks/tools/README.md +14 -16
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/agentsListTasks.ts +183 -0
- package/packages/orq-rc/src/funcs/agentsRetrieve.ts +3 -3
- package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +2 -2
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +170 -0
- package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +170 -0
- package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +171 -0
- package/packages/orq-rc/src/funcs/toolsDelete.ts +2 -2
- package/packages/orq-rc/src/funcs/toolsDuplicate.ts +3 -3
- package/packages/orq-rc/src/funcs/toolsRetrieve.ts +3 -3
- package/packages/orq-rc/src/funcs/toolsUpdate.ts +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 +10 -2
- package/packages/orq-rc/src/mcp-server/tools/agentsListTasks.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunks.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/knowledgeGetChunksCount.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunksPaginated.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsDuplicate.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +1 -1
- package/packages/orq-rc/src/models/errors/index.ts +1 -0
- package/packages/orq-rc/src/models/errors/listagenttasks.ts +80 -0
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- 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 +2 -2
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/createprompt.ts +8 -0
- package/packages/orq-rc/src/models/operations/createtool.ts +10 -22
- package/packages/orq-rc/src/models/operations/deletechunks.ts +243 -0
- package/packages/orq-rc/src/models/operations/deletetool.ts +6 -6
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +4 -0
- package/packages/orq-rc/src/models/operations/deployments.ts +4 -0
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +23 -15
- 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/getagent.ts +30 -27
- package/packages/orq-rc/src/models/operations/getagenttask.ts +6 -4
- package/packages/orq-rc/src/models/operations/getallprompts.ts +4 -0
- package/packages/orq-rc/src/models/operations/getalltools.ts +10 -10
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getchunkscount.ts +230 -0
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +4 -0
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +4 -0
- package/packages/orq-rc/src/models/operations/index.ts +4 -0
- package/packages/orq-rc/src/models/operations/listagents.ts +17 -22
- package/packages/orq-rc/src/models/operations/listagenttasks.ts +1099 -0
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listchunks.ts +21 -21
- package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +507 -0
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +29 -22
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +4 -0
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievetool.ts +16 -16
- package/packages/orq-rc/src/models/operations/runagent.ts +7 -18
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +7 -18
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/updateprompt.ts +8 -0
- package/packages/orq-rc/src/models/operations/updatetool.ts +44 -28
- package/packages/orq-rc/src/sdk/agents.ts +25 -7
- package/packages/orq-rc/src/sdk/knowledge.ts +45 -0
- package/packages/orq-rc/src/sdk/tools.ts +2 -2
- package/src/funcs/agentsRetrieveTask.ts +2 -2
- 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/createbudget.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/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +14 -14
- package/src/models/operations/duplicatetool.ts +10 -10
- 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/getagent.ts +9 -14
- package/src/models/operations/getagenttask.ts +6 -4
- package/src/models/operations/getalltools.ts +10 -10
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listagents.ts +9 -14
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +10 -10
- package/src/models/operations/runagent.ts +9 -14
- package/src/models/operations/streamrunagent.ts +9 -14
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +14 -14
|
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export type DeleteToolRequest = {
|
|
12
|
-
|
|
12
|
+
toolId: string;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
/** @internal */
|
|
@@ -18,16 +18,16 @@ export const DeleteToolRequest$inboundSchema: z.ZodType<
|
|
|
18
18
|
z.ZodTypeDef,
|
|
19
19
|
unknown
|
|
20
20
|
> = z.object({
|
|
21
|
-
|
|
21
|
+
tool_id: z.string(),
|
|
22
22
|
}).transform((v) => {
|
|
23
23
|
return remap$(v, {
|
|
24
|
-
"
|
|
24
|
+
"tool_id": "toolId",
|
|
25
25
|
});
|
|
26
26
|
});
|
|
27
27
|
|
|
28
28
|
/** @internal */
|
|
29
29
|
export type DeleteToolRequest$Outbound = {
|
|
30
|
-
|
|
30
|
+
tool_id: string;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
/** @internal */
|
|
@@ -36,10 +36,10 @@ export const DeleteToolRequest$outboundSchema: z.ZodType<
|
|
|
36
36
|
z.ZodTypeDef,
|
|
37
37
|
DeleteToolRequest
|
|
38
38
|
> = z.object({
|
|
39
|
-
|
|
39
|
+
toolId: z.string(),
|
|
40
40
|
}).transform((v) => {
|
|
41
41
|
return remap$(v, {
|
|
42
|
-
|
|
42
|
+
toolId: "tool_id",
|
|
43
43
|
});
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -1570,6 +1570,7 @@ export type DeploymentGetConfig1DeploymentsResponseType = ClosedEnum<
|
|
|
1570
1570
|
|
|
1571
1571
|
export type DeploymentGetConfig1JsonSchema = {
|
|
1572
1572
|
name: string;
|
|
1573
|
+
description?: string | undefined;
|
|
1573
1574
|
strict?: boolean | undefined;
|
|
1574
1575
|
schema: { [k: string]: any };
|
|
1575
1576
|
};
|
|
@@ -9822,6 +9823,7 @@ export const DeploymentGetConfig1JsonSchema$inboundSchema: z.ZodType<
|
|
|
9822
9823
|
unknown
|
|
9823
9824
|
> = z.object({
|
|
9824
9825
|
name: z.string(),
|
|
9826
|
+
description: z.string().optional(),
|
|
9825
9827
|
strict: z.boolean().optional(),
|
|
9826
9828
|
schema: z.record(z.any()),
|
|
9827
9829
|
});
|
|
@@ -9829,6 +9831,7 @@ export const DeploymentGetConfig1JsonSchema$inboundSchema: z.ZodType<
|
|
|
9829
9831
|
/** @internal */
|
|
9830
9832
|
export type DeploymentGetConfig1JsonSchema$Outbound = {
|
|
9831
9833
|
name: string;
|
|
9834
|
+
description?: string | undefined;
|
|
9832
9835
|
strict?: boolean | undefined;
|
|
9833
9836
|
schema: { [k: string]: any };
|
|
9834
9837
|
};
|
|
@@ -9840,6 +9843,7 @@ export const DeploymentGetConfig1JsonSchema$outboundSchema: z.ZodType<
|
|
|
9840
9843
|
DeploymentGetConfig1JsonSchema
|
|
9841
9844
|
> = z.object({
|
|
9842
9845
|
name: z.string(),
|
|
9846
|
+
description: z.string().optional(),
|
|
9843
9847
|
strict: z.boolean().optional(),
|
|
9844
9848
|
schema: z.record(z.any()),
|
|
9845
9849
|
});
|
|
@@ -183,6 +183,7 @@ export type Deployments1DeploymentsResponseType = ClosedEnum<
|
|
|
183
183
|
|
|
184
184
|
export type Deployments1JsonSchema = {
|
|
185
185
|
name: string;
|
|
186
|
+
description?: string | undefined;
|
|
186
187
|
strict?: boolean | undefined;
|
|
187
188
|
schema: { [k: string]: any };
|
|
188
189
|
};
|
|
@@ -1180,6 +1181,7 @@ export const Deployments1JsonSchema$inboundSchema: z.ZodType<
|
|
|
1180
1181
|
unknown
|
|
1181
1182
|
> = z.object({
|
|
1182
1183
|
name: z.string(),
|
|
1184
|
+
description: z.string().optional(),
|
|
1183
1185
|
strict: z.boolean().optional(),
|
|
1184
1186
|
schema: z.record(z.any()),
|
|
1185
1187
|
});
|
|
@@ -1187,6 +1189,7 @@ export const Deployments1JsonSchema$inboundSchema: z.ZodType<
|
|
|
1187
1189
|
/** @internal */
|
|
1188
1190
|
export type Deployments1JsonSchema$Outbound = {
|
|
1189
1191
|
name: string;
|
|
1192
|
+
description?: string | undefined;
|
|
1190
1193
|
strict?: boolean | undefined;
|
|
1191
1194
|
schema: { [k: string]: any };
|
|
1192
1195
|
};
|
|
@@ -1198,6 +1201,7 @@ export const Deployments1JsonSchema$outboundSchema: z.ZodType<
|
|
|
1198
1201
|
Deployments1JsonSchema
|
|
1199
1202
|
> = z.object({
|
|
1200
1203
|
name: z.string(),
|
|
1204
|
+
description: z.string().optional(),
|
|
1201
1205
|
strict: z.boolean().optional(),
|
|
1202
1206
|
schema: z.record(z.any()),
|
|
1203
1207
|
});
|
|
@@ -11,9 +11,9 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
11
11
|
|
|
12
12
|
export type DuplicateToolRequest = {
|
|
13
13
|
/**
|
|
14
|
-
* The
|
|
14
|
+
* The id of the tool to duplicate
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
toolId: string;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
/**
|
|
@@ -555,12 +555,16 @@ export const DuplicateToolRequest$inboundSchema: z.ZodType<
|
|
|
555
555
|
z.ZodTypeDef,
|
|
556
556
|
unknown
|
|
557
557
|
> = z.object({
|
|
558
|
-
|
|
558
|
+
tool_id: z.string(),
|
|
559
|
+
}).transform((v) => {
|
|
560
|
+
return remap$(v, {
|
|
561
|
+
"tool_id": "toolId",
|
|
562
|
+
});
|
|
559
563
|
});
|
|
560
564
|
|
|
561
565
|
/** @internal */
|
|
562
566
|
export type DuplicateToolRequest$Outbound = {
|
|
563
|
-
|
|
567
|
+
tool_id: string;
|
|
564
568
|
};
|
|
565
569
|
|
|
566
570
|
/** @internal */
|
|
@@ -569,7 +573,11 @@ export const DuplicateToolRequest$outboundSchema: z.ZodType<
|
|
|
569
573
|
z.ZodTypeDef,
|
|
570
574
|
DuplicateToolRequest
|
|
571
575
|
> = z.object({
|
|
572
|
-
|
|
576
|
+
toolId: z.string(),
|
|
577
|
+
}).transform((v) => {
|
|
578
|
+
return remap$(v, {
|
|
579
|
+
toolId: "tool_id",
|
|
580
|
+
});
|
|
573
581
|
});
|
|
574
582
|
|
|
575
583
|
/**
|
|
@@ -750,7 +758,7 @@ export const DuplicateToolResponseBody5$inboundSchema: z.ZodType<
|
|
|
750
758
|
z.ZodTypeDef,
|
|
751
759
|
unknown
|
|
752
760
|
> = z.object({
|
|
753
|
-
_id: z.string().default("
|
|
761
|
+
_id: z.string().default("01K6N5KY4695WABEPP7RHJ14V5"),
|
|
754
762
|
path: z.string(),
|
|
755
763
|
key: z.string(),
|
|
756
764
|
display_name: z.string(),
|
|
@@ -806,7 +814,7 @@ export const DuplicateToolResponseBody5$outboundSchema: z.ZodType<
|
|
|
806
814
|
z.ZodTypeDef,
|
|
807
815
|
DuplicateToolResponseBody5
|
|
808
816
|
> = z.object({
|
|
809
|
-
id: z.string().default("
|
|
817
|
+
id: z.string().default("01K6N5KY4695WABEPP7RHJ14V5"),
|
|
810
818
|
path: z.string(),
|
|
811
819
|
key: z.string(),
|
|
812
820
|
displayName: z.string(),
|
|
@@ -1194,7 +1202,7 @@ export const DuplicateToolResponseBody4$inboundSchema: z.ZodType<
|
|
|
1194
1202
|
z.ZodTypeDef,
|
|
1195
1203
|
unknown
|
|
1196
1204
|
> = z.object({
|
|
1197
|
-
_id: z.string().default("
|
|
1205
|
+
_id: z.string().default("01K6N5KY452P6ADFNE8PBFWJMS"),
|
|
1198
1206
|
path: z.string(),
|
|
1199
1207
|
key: z.string(),
|
|
1200
1208
|
display_name: z.string(),
|
|
@@ -1248,7 +1256,7 @@ export const DuplicateToolResponseBody4$outboundSchema: z.ZodType<
|
|
|
1248
1256
|
z.ZodTypeDef,
|
|
1249
1257
|
DuplicateToolResponseBody4
|
|
1250
1258
|
> = z.object({
|
|
1251
|
-
id: z.string().default("
|
|
1259
|
+
id: z.string().default("01K6N5KY452P6ADFNE8PBFWJMS"),
|
|
1252
1260
|
path: z.string(),
|
|
1253
1261
|
key: z.string(),
|
|
1254
1262
|
displayName: z.string(),
|
|
@@ -1675,7 +1683,7 @@ export const DuplicateToolResponseBody3$inboundSchema: z.ZodType<
|
|
|
1675
1683
|
z.ZodTypeDef,
|
|
1676
1684
|
unknown
|
|
1677
1685
|
> = z.object({
|
|
1678
|
-
_id: z.string().default("
|
|
1686
|
+
_id: z.string().default("01K6N5KY45NY2DCH4VJGHZNR78"),
|
|
1679
1687
|
path: z.string(),
|
|
1680
1688
|
key: z.string(),
|
|
1681
1689
|
display_name: z.string(),
|
|
@@ -1729,7 +1737,7 @@ export const DuplicateToolResponseBody3$outboundSchema: z.ZodType<
|
|
|
1729
1737
|
z.ZodTypeDef,
|
|
1730
1738
|
DuplicateToolResponseBody3
|
|
1731
1739
|
> = z.object({
|
|
1732
|
-
id: z.string().default("
|
|
1740
|
+
id: z.string().default("01K6N5KY45NY2DCH4VJGHZNR78"),
|
|
1733
1741
|
path: z.string(),
|
|
1734
1742
|
key: z.string(),
|
|
1735
1743
|
displayName: z.string(),
|
|
@@ -1909,7 +1917,7 @@ export const DuplicateToolResponseBody2$inboundSchema: z.ZodType<
|
|
|
1909
1917
|
z.ZodTypeDef,
|
|
1910
1918
|
unknown
|
|
1911
1919
|
> = z.object({
|
|
1912
|
-
_id: z.string().default("
|
|
1920
|
+
_id: z.string().default("01K6N5KY44TCX89N81QVM2ZF3E"),
|
|
1913
1921
|
path: z.string(),
|
|
1914
1922
|
key: z.string(),
|
|
1915
1923
|
display_name: z.string(),
|
|
@@ -1962,7 +1970,7 @@ export const DuplicateToolResponseBody2$outboundSchema: z.ZodType<
|
|
|
1962
1970
|
z.ZodTypeDef,
|
|
1963
1971
|
DuplicateToolResponseBody2
|
|
1964
1972
|
> = z.object({
|
|
1965
|
-
id: z.string().default("
|
|
1973
|
+
id: z.string().default("01K6N5KY44TCX89N81QVM2ZF3E"),
|
|
1966
1974
|
path: z.string(),
|
|
1967
1975
|
key: z.string(),
|
|
1968
1976
|
displayName: z.string(),
|
|
@@ -2135,7 +2143,7 @@ export const DuplicateToolResponseBody1$inboundSchema: z.ZodType<
|
|
|
2135
2143
|
z.ZodTypeDef,
|
|
2136
2144
|
unknown
|
|
2137
2145
|
> = z.object({
|
|
2138
|
-
_id: z.string().default("
|
|
2146
|
+
_id: z.string().default("01K6N5KY446H61KQQSVJMVFRJK"),
|
|
2139
2147
|
path: z.string(),
|
|
2140
2148
|
key: z.string(),
|
|
2141
2149
|
display_name: z.string(),
|
|
@@ -2187,7 +2195,7 @@ export const DuplicateToolResponseBody1$outboundSchema: z.ZodType<
|
|
|
2187
2195
|
z.ZodTypeDef,
|
|
2188
2196
|
DuplicateToolResponseBody1
|
|
2189
2197
|
> = z.object({
|
|
2190
|
-
id: z.string().default("
|
|
2198
|
+
id: z.string().default("01K6N5KY446H61KQQSVJMVFRJK"),
|
|
2191
2199
|
path: z.string(),
|
|
2192
2200
|
key: z.string(),
|
|
2193
2201
|
displayName: z.string(),
|
|
@@ -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-10-
|
|
149
|
+
"2025-10-03T13:54:00.973Z",
|
|
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-10-
|
|
183
|
+
created: z.date().default(() => new Date("2025-10-03T13:54:00.973Z"))
|
|
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-10-
|
|
199
|
+
"2025-10-03T13:54:00.973Z",
|
|
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-10-
|
|
233
|
+
created: z.date().default(() => new Date("2025-10-03T13:54:00.973Z"))
|
|
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-10-
|
|
253
|
+
"2025-10-03T13:54:00.973Z",
|
|
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-10-
|
|
287
|
+
created: z.date().default(() => new Date("2025-10-03T13:54:00.973Z"))
|
|
288
288
|
.transform(v => v.toISOString()),
|
|
289
289
|
}).transform((v) => {
|
|
290
290
|
return remap$(v, {
|
|
@@ -11,9 +11,9 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
11
11
|
|
|
12
12
|
export type GetAgentRequest = {
|
|
13
13
|
/**
|
|
14
|
-
* The
|
|
14
|
+
* The unique key of the agent to retrieve
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
agentKey: string;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
/**
|
|
@@ -103,11 +103,11 @@ export type GetAgentModel = {
|
|
|
103
103
|
/**
|
|
104
104
|
* Optional integration ID for custom model configurations
|
|
105
105
|
*/
|
|
106
|
-
integrationId?: string | undefined;
|
|
106
|
+
integrationId?: string | null | undefined;
|
|
107
107
|
/**
|
|
108
108
|
* Optional array of fallback model IDs that will be used automatically in order if the primary model fails
|
|
109
109
|
*/
|
|
110
|
-
fallbackModels?: Array<string> | undefined;
|
|
110
|
+
fallbackModels?: Array<string> | null | undefined;
|
|
111
111
|
/**
|
|
112
112
|
* Maximum number of tokens for model responses
|
|
113
113
|
*/
|
|
@@ -119,7 +119,10 @@ export type GetAgentModel = {
|
|
|
119
119
|
};
|
|
120
120
|
|
|
121
121
|
export type GetAgentTeamOfAgents = {
|
|
122
|
-
|
|
122
|
+
/**
|
|
123
|
+
* The unique key of the agent within the workspace
|
|
124
|
+
*/
|
|
125
|
+
key: string;
|
|
123
126
|
/**
|
|
124
127
|
* The role of the agent in this context. This is used to give extra information to the leader to help it decide which agent to hand off to.
|
|
125
128
|
*/
|
|
@@ -245,12 +248,16 @@ export const GetAgentRequest$inboundSchema: z.ZodType<
|
|
|
245
248
|
z.ZodTypeDef,
|
|
246
249
|
unknown
|
|
247
250
|
> = z.object({
|
|
248
|
-
|
|
251
|
+
agent_key: z.string(),
|
|
252
|
+
}).transform((v) => {
|
|
253
|
+
return remap$(v, {
|
|
254
|
+
"agent_key": "agentKey",
|
|
255
|
+
});
|
|
249
256
|
});
|
|
250
257
|
|
|
251
258
|
/** @internal */
|
|
252
259
|
export type GetAgentRequest$Outbound = {
|
|
253
|
-
|
|
260
|
+
agent_key: string;
|
|
254
261
|
};
|
|
255
262
|
|
|
256
263
|
/** @internal */
|
|
@@ -259,7 +266,11 @@ export const GetAgentRequest$outboundSchema: z.ZodType<
|
|
|
259
266
|
z.ZodTypeDef,
|
|
260
267
|
GetAgentRequest
|
|
261
268
|
> = z.object({
|
|
262
|
-
|
|
269
|
+
agentKey: z.string(),
|
|
270
|
+
}).transform((v) => {
|
|
271
|
+
return remap$(v, {
|
|
272
|
+
agentKey: "agent_key",
|
|
273
|
+
});
|
|
263
274
|
});
|
|
264
275
|
|
|
265
276
|
/**
|
|
@@ -555,8 +566,8 @@ export const GetAgentModel$inboundSchema: z.ZodType<
|
|
|
555
566
|
unknown
|
|
556
567
|
> = z.object({
|
|
557
568
|
id: z.string(),
|
|
558
|
-
integration_id: z.string().optional(),
|
|
559
|
-
fallback_models: z.array(z.string()).optional(),
|
|
569
|
+
integration_id: z.nullable(z.string()).optional(),
|
|
570
|
+
fallback_models: z.nullable(z.array(z.string())).optional(),
|
|
560
571
|
max_tokens: z.number().int().optional(),
|
|
561
572
|
temperature: z.number().optional(),
|
|
562
573
|
}).transform((v) => {
|
|
@@ -570,8 +581,8 @@ export const GetAgentModel$inboundSchema: z.ZodType<
|
|
|
570
581
|
/** @internal */
|
|
571
582
|
export type GetAgentModel$Outbound = {
|
|
572
583
|
id: string;
|
|
573
|
-
integration_id?: string | undefined;
|
|
574
|
-
fallback_models?: Array<string> | undefined;
|
|
584
|
+
integration_id?: string | null | undefined;
|
|
585
|
+
fallback_models?: Array<string> | null | undefined;
|
|
575
586
|
max_tokens?: number | undefined;
|
|
576
587
|
temperature?: number | undefined;
|
|
577
588
|
};
|
|
@@ -583,8 +594,8 @@ export const GetAgentModel$outboundSchema: z.ZodType<
|
|
|
583
594
|
GetAgentModel
|
|
584
595
|
> = z.object({
|
|
585
596
|
id: z.string(),
|
|
586
|
-
integrationId: z.string().optional(),
|
|
587
|
-
fallbackModels: z.array(z.string()).optional(),
|
|
597
|
+
integrationId: z.nullable(z.string()).optional(),
|
|
598
|
+
fallbackModels: z.nullable(z.array(z.string())).optional(),
|
|
588
599
|
maxTokens: z.number().int().optional(),
|
|
589
600
|
temperature: z.number().optional(),
|
|
590
601
|
}).transform((v) => {
|
|
@@ -628,17 +639,13 @@ export const GetAgentTeamOfAgents$inboundSchema: z.ZodType<
|
|
|
628
639
|
z.ZodTypeDef,
|
|
629
640
|
unknown
|
|
630
641
|
> = z.object({
|
|
631
|
-
|
|
642
|
+
key: z.string(),
|
|
632
643
|
role: z.string().optional(),
|
|
633
|
-
}).transform((v) => {
|
|
634
|
-
return remap$(v, {
|
|
635
|
-
"_id": "id",
|
|
636
|
-
});
|
|
637
644
|
});
|
|
638
645
|
|
|
639
646
|
/** @internal */
|
|
640
647
|
export type GetAgentTeamOfAgents$Outbound = {
|
|
641
|
-
|
|
648
|
+
key: string;
|
|
642
649
|
role?: string | undefined;
|
|
643
650
|
};
|
|
644
651
|
|
|
@@ -648,12 +655,8 @@ export const GetAgentTeamOfAgents$outboundSchema: z.ZodType<
|
|
|
648
655
|
z.ZodTypeDef,
|
|
649
656
|
GetAgentTeamOfAgents
|
|
650
657
|
> = z.object({
|
|
651
|
-
|
|
658
|
+
key: z.string(),
|
|
652
659
|
role: z.string().optional(),
|
|
653
|
-
}).transform((v) => {
|
|
654
|
-
return remap$(v, {
|
|
655
|
-
id: "_id",
|
|
656
|
-
});
|
|
657
660
|
});
|
|
658
661
|
|
|
659
662
|
/**
|
|
@@ -1000,7 +1003,7 @@ export const GetAgentKnowledgeBases$inboundSchema: z.ZodType<
|
|
|
1000
1003
|
z.ZodTypeDef,
|
|
1001
1004
|
unknown
|
|
1002
1005
|
> = z.object({
|
|
1003
|
-
id: z.string().default("
|
|
1006
|
+
id: z.string().default("01K6N5KXWNG0EMDX6VB663WJKX"),
|
|
1004
1007
|
knowledge_id: z.string(),
|
|
1005
1008
|
configuration: z.union([
|
|
1006
1009
|
z.lazy(() =>
|
|
@@ -1031,7 +1034,7 @@ export const GetAgentKnowledgeBases$outboundSchema: z.ZodType<
|
|
|
1031
1034
|
z.ZodTypeDef,
|
|
1032
1035
|
GetAgentKnowledgeBases
|
|
1033
1036
|
> = z.object({
|
|
1034
|
-
id: z.string().default("
|
|
1037
|
+
id: z.string().default("01K6N5KXWNG0EMDX6VB663WJKX"),
|
|
1035
1038
|
knowledgeId: z.string(),
|
|
1036
1039
|
configuration: z.union([
|
|
1037
1040
|
z.lazy(() =>
|
|
@@ -10,7 +10,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
export type GetAgentTaskRequest = {
|
|
13
|
-
|
|
13
|
+
agentKey: string;
|
|
14
14
|
taskId: string;
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -44,17 +44,18 @@ export const GetAgentTaskRequest$inboundSchema: z.ZodType<
|
|
|
44
44
|
z.ZodTypeDef,
|
|
45
45
|
unknown
|
|
46
46
|
> = z.object({
|
|
47
|
-
|
|
47
|
+
agent_key: z.string(),
|
|
48
48
|
task_id: z.string(),
|
|
49
49
|
}).transform((v) => {
|
|
50
50
|
return remap$(v, {
|
|
51
|
+
"agent_key": "agentKey",
|
|
51
52
|
"task_id": "taskId",
|
|
52
53
|
});
|
|
53
54
|
});
|
|
54
55
|
|
|
55
56
|
/** @internal */
|
|
56
57
|
export type GetAgentTaskRequest$Outbound = {
|
|
57
|
-
|
|
58
|
+
agent_key: string;
|
|
58
59
|
task_id: string;
|
|
59
60
|
};
|
|
60
61
|
|
|
@@ -64,10 +65,11 @@ export const GetAgentTaskRequest$outboundSchema: z.ZodType<
|
|
|
64
65
|
z.ZodTypeDef,
|
|
65
66
|
GetAgentTaskRequest
|
|
66
67
|
> = z.object({
|
|
67
|
-
|
|
68
|
+
agentKey: z.string(),
|
|
68
69
|
taskId: z.string(),
|
|
69
70
|
}).transform((v) => {
|
|
70
71
|
return remap$(v, {
|
|
72
|
+
agentKey: "agent_key",
|
|
71
73
|
taskId: "task_id",
|
|
72
74
|
});
|
|
73
75
|
});
|
|
@@ -127,6 +127,7 @@ export type GetAllPrompts1Type = ClosedEnum<typeof GetAllPrompts1Type>;
|
|
|
127
127
|
|
|
128
128
|
export type GetAllPrompts1JsonSchema = {
|
|
129
129
|
name: string;
|
|
130
|
+
description?: string | undefined;
|
|
130
131
|
strict?: boolean | undefined;
|
|
131
132
|
schema: { [k: string]: any };
|
|
132
133
|
};
|
|
@@ -982,6 +983,7 @@ export const GetAllPrompts1JsonSchema$inboundSchema: z.ZodType<
|
|
|
982
983
|
unknown
|
|
983
984
|
> = z.object({
|
|
984
985
|
name: z.string(),
|
|
986
|
+
description: z.string().optional(),
|
|
985
987
|
strict: z.boolean().optional(),
|
|
986
988
|
schema: z.record(z.any()),
|
|
987
989
|
});
|
|
@@ -989,6 +991,7 @@ export const GetAllPrompts1JsonSchema$inboundSchema: z.ZodType<
|
|
|
989
991
|
/** @internal */
|
|
990
992
|
export type GetAllPrompts1JsonSchema$Outbound = {
|
|
991
993
|
name: string;
|
|
994
|
+
description?: string | undefined;
|
|
992
995
|
strict?: boolean | undefined;
|
|
993
996
|
schema: { [k: string]: any };
|
|
994
997
|
};
|
|
@@ -1000,6 +1003,7 @@ export const GetAllPrompts1JsonSchema$outboundSchema: z.ZodType<
|
|
|
1000
1003
|
GetAllPrompts1JsonSchema
|
|
1001
1004
|
> = z.object({
|
|
1002
1005
|
name: z.string(),
|
|
1006
|
+
description: z.string().optional(),
|
|
1003
1007
|
strict: z.boolean().optional(),
|
|
1004
1008
|
schema: z.record(z.any()),
|
|
1005
1009
|
});
|
|
@@ -763,7 +763,7 @@ export function dataCodeToolFromJSON(
|
|
|
763
763
|
/** @internal */
|
|
764
764
|
export const Data5$inboundSchema: z.ZodType<Data5, z.ZodTypeDef, unknown> = z
|
|
765
765
|
.object({
|
|
766
|
-
_id: z.string().default("
|
|
766
|
+
_id: z.string().default("01K6N5KY3P266MW0VJZ79VJZ3E"),
|
|
767
767
|
path: z.string(),
|
|
768
768
|
key: z.string(),
|
|
769
769
|
display_name: z.string(),
|
|
@@ -816,7 +816,7 @@ export const Data5$outboundSchema: z.ZodType<
|
|
|
816
816
|
z.ZodTypeDef,
|
|
817
817
|
Data5
|
|
818
818
|
> = z.object({
|
|
819
|
-
id: z.string().default("
|
|
819
|
+
id: z.string().default("01K6N5KY3P266MW0VJZ79VJZ3E"),
|
|
820
820
|
path: z.string(),
|
|
821
821
|
key: z.string(),
|
|
822
822
|
displayName: z.string(),
|
|
@@ -1159,7 +1159,7 @@ export function dataMcpFromJSON(
|
|
|
1159
1159
|
/** @internal */
|
|
1160
1160
|
export const Data4$inboundSchema: z.ZodType<Data4, z.ZodTypeDef, unknown> = z
|
|
1161
1161
|
.object({
|
|
1162
|
-
_id: z.string().default("
|
|
1162
|
+
_id: z.string().default("01K6N5KY3PERQ6DVMBE0178EF7"),
|
|
1163
1163
|
path: z.string(),
|
|
1164
1164
|
key: z.string(),
|
|
1165
1165
|
display_name: z.string(),
|
|
@@ -1211,7 +1211,7 @@ export const Data4$outboundSchema: z.ZodType<
|
|
|
1211
1211
|
z.ZodTypeDef,
|
|
1212
1212
|
Data4
|
|
1213
1213
|
> = z.object({
|
|
1214
|
-
id: z.string().default("
|
|
1214
|
+
id: z.string().default("01K6N5KY3PERQ6DVMBE0178EF7"),
|
|
1215
1215
|
path: z.string(),
|
|
1216
1216
|
key: z.string(),
|
|
1217
1217
|
displayName: z.string(),
|
|
@@ -1594,7 +1594,7 @@ export function getAllToolsDataHttpFromJSON(
|
|
|
1594
1594
|
/** @internal */
|
|
1595
1595
|
export const Data3$inboundSchema: z.ZodType<Data3, z.ZodTypeDef, unknown> = z
|
|
1596
1596
|
.object({
|
|
1597
|
-
_id: z.string().default("
|
|
1597
|
+
_id: z.string().default("01K6N5KY3NMYF3SSASJR53JP63"),
|
|
1598
1598
|
path: z.string(),
|
|
1599
1599
|
key: z.string(),
|
|
1600
1600
|
display_name: z.string(),
|
|
@@ -1646,7 +1646,7 @@ export const Data3$outboundSchema: z.ZodType<
|
|
|
1646
1646
|
z.ZodTypeDef,
|
|
1647
1647
|
Data3
|
|
1648
1648
|
> = z.object({
|
|
1649
|
-
id: z.string().default("
|
|
1649
|
+
id: z.string().default("01K6N5KY3NMYF3SSASJR53JP63"),
|
|
1650
1650
|
path: z.string(),
|
|
1651
1651
|
key: z.string(),
|
|
1652
1652
|
displayName: z.string(),
|
|
@@ -1804,7 +1804,7 @@ export function dataJsonSchemaFromJSON(
|
|
|
1804
1804
|
/** @internal */
|
|
1805
1805
|
export const Data2$inboundSchema: z.ZodType<Data2, z.ZodTypeDef, unknown> = z
|
|
1806
1806
|
.object({
|
|
1807
|
-
_id: z.string().default("
|
|
1807
|
+
_id: z.string().default("01K6N5KY3MP7G088VX26TTD0D1"),
|
|
1808
1808
|
path: z.string(),
|
|
1809
1809
|
key: z.string(),
|
|
1810
1810
|
display_name: z.string(),
|
|
@@ -1857,7 +1857,7 @@ export const Data2$outboundSchema: z.ZodType<
|
|
|
1857
1857
|
z.ZodTypeDef,
|
|
1858
1858
|
Data2
|
|
1859
1859
|
> = z.object({
|
|
1860
|
-
id: z.string().default("
|
|
1860
|
+
id: z.string().default("01K6N5KY3MP7G088VX26TTD0D1"),
|
|
1861
1861
|
path: z.string(),
|
|
1862
1862
|
key: z.string(),
|
|
1863
1863
|
displayName: z.string(),
|
|
@@ -2018,7 +2018,7 @@ export function getAllToolsDataFunctionFromJSON(
|
|
|
2018
2018
|
/** @internal */
|
|
2019
2019
|
export const Data1$inboundSchema: z.ZodType<Data1, z.ZodTypeDef, unknown> = z
|
|
2020
2020
|
.object({
|
|
2021
|
-
_id: z.string().default("
|
|
2021
|
+
_id: z.string().default("01K6N5KY3KDPEXNNR8P3V7RYHJ"),
|
|
2022
2022
|
path: z.string(),
|
|
2023
2023
|
key: z.string(),
|
|
2024
2024
|
display_name: z.string(),
|
|
@@ -2070,7 +2070,7 @@ export const Data1$outboundSchema: z.ZodType<
|
|
|
2070
2070
|
z.ZodTypeDef,
|
|
2071
2071
|
Data1
|
|
2072
2072
|
> = z.object({
|
|
2073
|
-
id: z.string().default("
|
|
2073
|
+
id: z.string().default("01K6N5KY3KDPEXNNR8P3V7RYHJ"),
|
|
2074
2074
|
path: z.string(),
|
|
2075
2075
|
key: z.string(),
|
|
2076
2076
|
displayName: z.string(),
|
|
@@ -351,7 +351,7 @@ export const GetBudgetResponseBody$inboundSchema: z.ZodType<
|
|
|
351
351
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
352
352
|
.optional(),
|
|
353
353
|
updated: z.string().datetime({ offset: true }).default(
|
|
354
|
-
"2025-10-
|
|
354
|
+
"2025-10-03T13:53:58.021Z",
|
|
355
355
|
).transform(v => new Date(v)),
|
|
356
356
|
}).transform((v) => {
|
|
357
357
|
return remap$(v, {
|
|
@@ -386,7 +386,7 @@ export const GetBudgetResponseBody$outboundSchema: z.ZodType<
|
|
|
386
386
|
isActive: z.boolean(),
|
|
387
387
|
consumption: z.lazy(() => GetBudgetConsumption$outboundSchema).optional(),
|
|
388
388
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
389
|
-
updated: z.date().default(() => new Date("2025-10-
|
|
389
|
+
updated: z.date().default(() => new Date("2025-10-03T13:53:58.021Z"))
|
|
390
390
|
.transform(v => v.toISOString()),
|
|
391
391
|
}).transform((v) => {
|
|
392
392
|
return remap$(v, {
|