@orq-ai/node 3.12.3 → 3.12.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 +112 -112
- package/bin/mcp-server.js.map +30 -30
- package/examples/contactsCreate.example.ts +1 -1
- package/examples/package-lock.json +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 +16 -16
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- 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/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 +16 -16
- package/package.json +1 -1
- package/packages/orq-rc/FUNCTIONS.md +9 -19
- package/packages/orq-rc/README.md +180 -181
- package/packages/orq-rc/docs/sdks/agents/README.md +702 -0
- package/packages/orq-rc/docs/sdks/budgets/README.md +5 -5
- package/packages/orq-rc/docs/sdks/memorystores/README.md +1172 -0
- package/packages/orq-rc/docs/sdks/orq/README.md +81 -0
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/examples/postV2AgentsInternal.example.ts +30 -0
- 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/agentsList.ts +167 -0
- package/packages/orq-rc/src/funcs/agentsListActions.ts +169 -0
- package/packages/orq-rc/src/funcs/agentsRetrieve.ts +175 -0
- package/packages/orq-rc/src/funcs/agentsRetrieveAction.ts +173 -0
- package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +179 -0
- package/packages/orq-rc/src/funcs/agentsReviewAction.ts +177 -0
- package/packages/orq-rc/src/funcs/agentsRun.ts +163 -0
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +187 -0
- package/packages/orq-rc/src/funcs/budgetsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/budgetsGet.ts +2 -2
- package/packages/orq-rc/src/funcs/budgetsList.ts +2 -2
- package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +171 -0
- package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +175 -0
- package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +170 -0
- package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +168 -0
- package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +184 -0
- package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +179 -0
- package/packages/orq-rc/src/funcs/memoryStoresList.ts +178 -0
- package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +181 -0
- package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +176 -0
- package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +177 -0
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +178 -0
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +173 -0
- package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +168 -0
- package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +179 -0
- package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +174 -0
- package/packages/orq-rc/src/funcs/postV2AgentsInternal.ts +159 -0
- 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 +49 -1
- package/packages/orq-rc/src/mcp-server/tools/agentsList.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/agentsListActions.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveAction.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveTask.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/agentsReviewAction.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/budgetsCreate.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/budgetsGet.ts +2 -2
- package/packages/orq-rc/src/mcp-server/tools/budgetsList.ts +2 -2
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreate.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateDocument.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateMemory.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresDelete.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteDocument.ts +40 -0
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteMemory.ts +40 -0
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresList.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresListDocuments.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresListMemories.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieve.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveDocument.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveMemory.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdate.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateDocument.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateMemory.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/postV2AgentsInternal.ts +33 -0
- package/packages/orq-rc/src/models/errors/getagent.ts +80 -0
- package/packages/orq-rc/src/models/errors/getagenttask.ts +80 -0
- package/packages/orq-rc/src/models/errors/index.ts +3 -0
- package/packages/orq-rc/src/models/errors/streamrunagent.ts +80 -0
- package/packages/orq-rc/src/models/operations/createbudget.ts +57 -58
- 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 +6383 -1075
- package/packages/orq-rc/src/models/operations/creatememory.ts +265 -0
- package/packages/orq-rc/src/models/operations/creatememorydocument.ts +284 -0
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +1956 -0
- package/packages/orq-rc/src/models/operations/deletememory.ts +87 -0
- package/packages/orq-rc/src/models/operations/deletememorydocument.ts +98 -0
- package/packages/orq-rc/src/models/operations/deletememorystore.ts +78 -0
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +36 -27
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +31 -24
- 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 +1171 -0
- package/packages/orq-rc/src/models/operations/getagenttask.ts +257 -0
- package/packages/orq-rc/src/models/operations/getallmemories.ts +315 -0
- package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +335 -0
- package/packages/orq-rc/src/models/operations/getallmemorystores.ts +1241 -0
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -11
- package/packages/orq-rc/src/models/operations/getevals.ts +1362 -1166
- package/packages/orq-rc/src/models/operations/index.ts +24 -0
- package/packages/orq-rc/src/models/operations/listactions.ts +517 -0
- package/packages/orq-rc/src/models/operations/listagents.ts +1335 -0
- package/packages/orq-rc/src/models/operations/listbudgets.ts +5 -15
- package/packages/orq-rc/src/models/operations/listchunks.ts +21 -21
- package/packages/orq-rc/src/models/operations/listcontacts.ts +44 -37
- 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/postv2agentsinternal.ts +103 -0
- package/packages/orq-rc/src/models/operations/retrieveaction.ts +419 -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/retrievememory.ts +198 -0
- package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +217 -0
- package/packages/orq-rc/src/models/operations/retrievememorystore.ts +1124 -0
- package/packages/orq-rc/src/models/operations/reviewaction.ts +258 -0
- package/packages/orq-rc/src/models/operations/runagent.ts +3428 -0
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +3361 -0
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -11
- 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 +6627 -1224
- package/packages/orq-rc/src/models/operations/updatememory.ts +274 -0
- package/packages/orq-rc/src/models/operations/updatememorydocument.ts +293 -0
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +1348 -0
- package/packages/orq-rc/src/models/operations/updateprompt.ts +64 -19
- package/packages/orq-rc/src/sdk/agents.ts +148 -0
- package/packages/orq-rc/src/sdk/budgets.ts +5 -5
- package/packages/orq-rc/src/sdk/memorystores.ts +286 -0
- package/packages/orq-rc/src/sdk/sdk.ts +27 -1
- 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 +16 -16
- 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/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- 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/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 +16 -16
- package/packages/orq-rc/examples/contactsCreate.example.ts +0 -42
|
@@ -12,6 +12,9 @@ export * from "./createdatasource.js";
|
|
|
12
12
|
export * from "./createeval.js";
|
|
13
13
|
export * from "./createfeedback.js";
|
|
14
14
|
export * from "./createknowledge.js";
|
|
15
|
+
export * from "./creatememory.js";
|
|
16
|
+
export * from "./creatememorydocument.js";
|
|
17
|
+
export * from "./creatememorystore.js";
|
|
15
18
|
export * from "./createprompt.js";
|
|
16
19
|
export * from "./deletebudget.js";
|
|
17
20
|
export * from "./deletechunk.js";
|
|
@@ -21,6 +24,9 @@ export * from "./deletedataset.js";
|
|
|
21
24
|
export * from "./deletedatasource.js";
|
|
22
25
|
export * from "./deleteeval.js";
|
|
23
26
|
export * from "./deleteknowledge.js";
|
|
27
|
+
export * from "./deletememory.js";
|
|
28
|
+
export * from "./deletememorydocument.js";
|
|
29
|
+
export * from "./deletememorystore.js";
|
|
24
30
|
export * from "./deleteprompt.js";
|
|
25
31
|
export * from "./deploymentcreatemetric.js";
|
|
26
32
|
export * from "./deploymentgetconfig.js";
|
|
@@ -68,6 +74,11 @@ export * from "./filedelete.js";
|
|
|
68
74
|
export * from "./fileget.js";
|
|
69
75
|
export * from "./filelist.js";
|
|
70
76
|
export * from "./fileupload.js";
|
|
77
|
+
export * from "./getagent.js";
|
|
78
|
+
export * from "./getagenttask.js";
|
|
79
|
+
export * from "./getallmemories.js";
|
|
80
|
+
export * from "./getallmemorydocuments.js";
|
|
81
|
+
export * from "./getallmemorystores.js";
|
|
71
82
|
export * from "./getallprompts.js";
|
|
72
83
|
export * from "./getbudget.js";
|
|
73
84
|
export * from "./getevals.js";
|
|
@@ -76,6 +87,8 @@ export * from "./getoneknowledge.js";
|
|
|
76
87
|
export * from "./getoneprompt.js";
|
|
77
88
|
export * from "./getpromptversion.js";
|
|
78
89
|
export * from "./invokeeval.js";
|
|
90
|
+
export * from "./listactions.js";
|
|
91
|
+
export * from "./listagents.js";
|
|
79
92
|
export * from "./listbudgets.js";
|
|
80
93
|
export * from "./listchunks.js";
|
|
81
94
|
export * from "./listcontacts.js";
|
|
@@ -86,12 +99,20 @@ export * from "./listknowledgebases.js";
|
|
|
86
99
|
export * from "./listmodels.js";
|
|
87
100
|
export * from "./listpromptversions.js";
|
|
88
101
|
export * from "./parse.js";
|
|
102
|
+
export * from "./postv2agentsinternal.js";
|
|
89
103
|
export * from "./remoteconfigsgetconfig.js";
|
|
104
|
+
export * from "./retrieveaction.js";
|
|
90
105
|
export * from "./retrievecontact.js";
|
|
91
106
|
export * from "./retrievedatapoint.js";
|
|
92
107
|
export * from "./retrievedataset.js";
|
|
93
108
|
export * from "./retrievedatasource.js";
|
|
109
|
+
export * from "./retrievememory.js";
|
|
110
|
+
export * from "./retrievememorydocument.js";
|
|
111
|
+
export * from "./retrievememorystore.js";
|
|
112
|
+
export * from "./reviewaction.js";
|
|
113
|
+
export * from "./runagent.js";
|
|
94
114
|
export * from "./searchknowledge.js";
|
|
115
|
+
export * from "./streamrunagent.js";
|
|
95
116
|
export * from "./updatebudget.js";
|
|
96
117
|
export * from "./updatechunk.js";
|
|
97
118
|
export * from "./updatecontact.js";
|
|
@@ -100,4 +121,7 @@ export * from "./updatedataset.js";
|
|
|
100
121
|
export * from "./updatedatasource.js";
|
|
101
122
|
export * from "./updateeval.js";
|
|
102
123
|
export * from "./updateknowledge.js";
|
|
124
|
+
export * from "./updatememory.js";
|
|
125
|
+
export * from "./updatememorydocument.js";
|
|
126
|
+
export * from "./updatememorystore.js";
|
|
103
127
|
export * from "./updateprompt.js";
|
|
@@ -0,0 +1,517 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type ListActionsRequest = {
|
|
13
|
+
agentKey: string;
|
|
14
|
+
taskId: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const ListActionsObject = {
|
|
18
|
+
List: "list",
|
|
19
|
+
} as const;
|
|
20
|
+
export type ListActionsObject = ClosedEnum<typeof ListActionsObject>;
|
|
21
|
+
|
|
22
|
+
export type ListActionsTool = {
|
|
23
|
+
/**
|
|
24
|
+
* The tool' id in orq
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
displayName: string;
|
|
28
|
+
requiresApproval?: boolean | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export const ListActionsReview = {
|
|
32
|
+
Approved: "approved",
|
|
33
|
+
Rejected: "rejected",
|
|
34
|
+
} as const;
|
|
35
|
+
export type ListActionsReview = ClosedEnum<typeof ListActionsReview>;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* An action is a tool that an agent chooses to use. If executed is false, together with the output being there, it can indicate that a tool was mocked
|
|
39
|
+
*/
|
|
40
|
+
export type ListActionsState = {
|
|
41
|
+
review?: ListActionsReview | null | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* The source of the review, where it was approved or rejected
|
|
44
|
+
*/
|
|
45
|
+
reviewSource?: string | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Only refers to an internal user of the platform, who approved or rejected the tool execution
|
|
48
|
+
*/
|
|
49
|
+
reviewedById?: string | undefined;
|
|
50
|
+
executed?: boolean | undefined;
|
|
51
|
+
error?: string | undefined;
|
|
52
|
+
input: { [k: string]: any };
|
|
53
|
+
output: { [k: string]: any };
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export type ListActionsData = {
|
|
57
|
+
/**
|
|
58
|
+
* Internal id for the action
|
|
59
|
+
*/
|
|
60
|
+
id: string;
|
|
61
|
+
/**
|
|
62
|
+
* The tool call id what the agent chooses to use and generates
|
|
63
|
+
*/
|
|
64
|
+
agentToolCallId: string;
|
|
65
|
+
tool: ListActionsTool;
|
|
66
|
+
created: string;
|
|
67
|
+
updated: string;
|
|
68
|
+
started?: string | undefined;
|
|
69
|
+
finished?: string | undefined;
|
|
70
|
+
agentId: string;
|
|
71
|
+
actionType: string;
|
|
72
|
+
agentExecutionId: string;
|
|
73
|
+
workspaceId: string;
|
|
74
|
+
/**
|
|
75
|
+
* An action is a tool that an agent chooses to use. If executed is false, together with the output being there, it can indicate that a tool was mocked
|
|
76
|
+
*/
|
|
77
|
+
state: ListActionsState;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* List of actions
|
|
82
|
+
*/
|
|
83
|
+
export type ListActionsResponseBody = {
|
|
84
|
+
object: ListActionsObject;
|
|
85
|
+
data: Array<ListActionsData>;
|
|
86
|
+
hasMore: boolean;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
/** @internal */
|
|
90
|
+
export const ListActionsRequest$inboundSchema: z.ZodType<
|
|
91
|
+
ListActionsRequest,
|
|
92
|
+
z.ZodTypeDef,
|
|
93
|
+
unknown
|
|
94
|
+
> = z.object({
|
|
95
|
+
agent_key: z.string(),
|
|
96
|
+
task_id: z.string(),
|
|
97
|
+
}).transform((v) => {
|
|
98
|
+
return remap$(v, {
|
|
99
|
+
"agent_key": "agentKey",
|
|
100
|
+
"task_id": "taskId",
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
/** @internal */
|
|
105
|
+
export type ListActionsRequest$Outbound = {
|
|
106
|
+
agent_key: string;
|
|
107
|
+
task_id: string;
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
/** @internal */
|
|
111
|
+
export const ListActionsRequest$outboundSchema: z.ZodType<
|
|
112
|
+
ListActionsRequest$Outbound,
|
|
113
|
+
z.ZodTypeDef,
|
|
114
|
+
ListActionsRequest
|
|
115
|
+
> = z.object({
|
|
116
|
+
agentKey: z.string(),
|
|
117
|
+
taskId: z.string(),
|
|
118
|
+
}).transform((v) => {
|
|
119
|
+
return remap$(v, {
|
|
120
|
+
agentKey: "agent_key",
|
|
121
|
+
taskId: "task_id",
|
|
122
|
+
});
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @internal
|
|
127
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
128
|
+
*/
|
|
129
|
+
export namespace ListActionsRequest$ {
|
|
130
|
+
/** @deprecated use `ListActionsRequest$inboundSchema` instead. */
|
|
131
|
+
export const inboundSchema = ListActionsRequest$inboundSchema;
|
|
132
|
+
/** @deprecated use `ListActionsRequest$outboundSchema` instead. */
|
|
133
|
+
export const outboundSchema = ListActionsRequest$outboundSchema;
|
|
134
|
+
/** @deprecated use `ListActionsRequest$Outbound` instead. */
|
|
135
|
+
export type Outbound = ListActionsRequest$Outbound;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export function listActionsRequestToJSON(
|
|
139
|
+
listActionsRequest: ListActionsRequest,
|
|
140
|
+
): string {
|
|
141
|
+
return JSON.stringify(
|
|
142
|
+
ListActionsRequest$outboundSchema.parse(listActionsRequest),
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export function listActionsRequestFromJSON(
|
|
147
|
+
jsonString: string,
|
|
148
|
+
): SafeParseResult<ListActionsRequest, SDKValidationError> {
|
|
149
|
+
return safeParse(
|
|
150
|
+
jsonString,
|
|
151
|
+
(x) => ListActionsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
152
|
+
`Failed to parse 'ListActionsRequest' from JSON`,
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/** @internal */
|
|
157
|
+
export const ListActionsObject$inboundSchema: z.ZodNativeEnum<
|
|
158
|
+
typeof ListActionsObject
|
|
159
|
+
> = z.nativeEnum(ListActionsObject);
|
|
160
|
+
|
|
161
|
+
/** @internal */
|
|
162
|
+
export const ListActionsObject$outboundSchema: z.ZodNativeEnum<
|
|
163
|
+
typeof ListActionsObject
|
|
164
|
+
> = ListActionsObject$inboundSchema;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* @internal
|
|
168
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
169
|
+
*/
|
|
170
|
+
export namespace ListActionsObject$ {
|
|
171
|
+
/** @deprecated use `ListActionsObject$inboundSchema` instead. */
|
|
172
|
+
export const inboundSchema = ListActionsObject$inboundSchema;
|
|
173
|
+
/** @deprecated use `ListActionsObject$outboundSchema` instead. */
|
|
174
|
+
export const outboundSchema = ListActionsObject$outboundSchema;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/** @internal */
|
|
178
|
+
export const ListActionsTool$inboundSchema: z.ZodType<
|
|
179
|
+
ListActionsTool,
|
|
180
|
+
z.ZodTypeDef,
|
|
181
|
+
unknown
|
|
182
|
+
> = z.object({
|
|
183
|
+
id: z.string(),
|
|
184
|
+
display_name: z.string(),
|
|
185
|
+
requires_approval: z.boolean().default(false),
|
|
186
|
+
}).transform((v) => {
|
|
187
|
+
return remap$(v, {
|
|
188
|
+
"display_name": "displayName",
|
|
189
|
+
"requires_approval": "requiresApproval",
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
/** @internal */
|
|
194
|
+
export type ListActionsTool$Outbound = {
|
|
195
|
+
id: string;
|
|
196
|
+
display_name: string;
|
|
197
|
+
requires_approval: boolean;
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
/** @internal */
|
|
201
|
+
export const ListActionsTool$outboundSchema: z.ZodType<
|
|
202
|
+
ListActionsTool$Outbound,
|
|
203
|
+
z.ZodTypeDef,
|
|
204
|
+
ListActionsTool
|
|
205
|
+
> = z.object({
|
|
206
|
+
id: z.string(),
|
|
207
|
+
displayName: z.string(),
|
|
208
|
+
requiresApproval: z.boolean().default(false),
|
|
209
|
+
}).transform((v) => {
|
|
210
|
+
return remap$(v, {
|
|
211
|
+
displayName: "display_name",
|
|
212
|
+
requiresApproval: "requires_approval",
|
|
213
|
+
});
|
|
214
|
+
});
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* @internal
|
|
218
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
219
|
+
*/
|
|
220
|
+
export namespace ListActionsTool$ {
|
|
221
|
+
/** @deprecated use `ListActionsTool$inboundSchema` instead. */
|
|
222
|
+
export const inboundSchema = ListActionsTool$inboundSchema;
|
|
223
|
+
/** @deprecated use `ListActionsTool$outboundSchema` instead. */
|
|
224
|
+
export const outboundSchema = ListActionsTool$outboundSchema;
|
|
225
|
+
/** @deprecated use `ListActionsTool$Outbound` instead. */
|
|
226
|
+
export type Outbound = ListActionsTool$Outbound;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export function listActionsToolToJSON(
|
|
230
|
+
listActionsTool: ListActionsTool,
|
|
231
|
+
): string {
|
|
232
|
+
return JSON.stringify(ListActionsTool$outboundSchema.parse(listActionsTool));
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export function listActionsToolFromJSON(
|
|
236
|
+
jsonString: string,
|
|
237
|
+
): SafeParseResult<ListActionsTool, SDKValidationError> {
|
|
238
|
+
return safeParse(
|
|
239
|
+
jsonString,
|
|
240
|
+
(x) => ListActionsTool$inboundSchema.parse(JSON.parse(x)),
|
|
241
|
+
`Failed to parse 'ListActionsTool' from JSON`,
|
|
242
|
+
);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/** @internal */
|
|
246
|
+
export const ListActionsReview$inboundSchema: z.ZodNativeEnum<
|
|
247
|
+
typeof ListActionsReview
|
|
248
|
+
> = z.nativeEnum(ListActionsReview);
|
|
249
|
+
|
|
250
|
+
/** @internal */
|
|
251
|
+
export const ListActionsReview$outboundSchema: z.ZodNativeEnum<
|
|
252
|
+
typeof ListActionsReview
|
|
253
|
+
> = ListActionsReview$inboundSchema;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* @internal
|
|
257
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
258
|
+
*/
|
|
259
|
+
export namespace ListActionsReview$ {
|
|
260
|
+
/** @deprecated use `ListActionsReview$inboundSchema` instead. */
|
|
261
|
+
export const inboundSchema = ListActionsReview$inboundSchema;
|
|
262
|
+
/** @deprecated use `ListActionsReview$outboundSchema` instead. */
|
|
263
|
+
export const outboundSchema = ListActionsReview$outboundSchema;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/** @internal */
|
|
267
|
+
export const ListActionsState$inboundSchema: z.ZodType<
|
|
268
|
+
ListActionsState,
|
|
269
|
+
z.ZodTypeDef,
|
|
270
|
+
unknown
|
|
271
|
+
> = z.object({
|
|
272
|
+
review: z.nullable(ListActionsReview$inboundSchema).optional(),
|
|
273
|
+
review_source: z.string().optional(),
|
|
274
|
+
reviewed_by_id: z.string().optional(),
|
|
275
|
+
executed: z.boolean().default(false),
|
|
276
|
+
error: z.string().optional(),
|
|
277
|
+
input: z.record(z.any()),
|
|
278
|
+
output: z.record(z.any()),
|
|
279
|
+
}).transform((v) => {
|
|
280
|
+
return remap$(v, {
|
|
281
|
+
"review_source": "reviewSource",
|
|
282
|
+
"reviewed_by_id": "reviewedById",
|
|
283
|
+
});
|
|
284
|
+
});
|
|
285
|
+
|
|
286
|
+
/** @internal */
|
|
287
|
+
export type ListActionsState$Outbound = {
|
|
288
|
+
review?: string | null | undefined;
|
|
289
|
+
review_source?: string | undefined;
|
|
290
|
+
reviewed_by_id?: string | undefined;
|
|
291
|
+
executed: boolean;
|
|
292
|
+
error?: string | undefined;
|
|
293
|
+
input: { [k: string]: any };
|
|
294
|
+
output: { [k: string]: any };
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
/** @internal */
|
|
298
|
+
export const ListActionsState$outboundSchema: z.ZodType<
|
|
299
|
+
ListActionsState$Outbound,
|
|
300
|
+
z.ZodTypeDef,
|
|
301
|
+
ListActionsState
|
|
302
|
+
> = z.object({
|
|
303
|
+
review: z.nullable(ListActionsReview$outboundSchema).optional(),
|
|
304
|
+
reviewSource: z.string().optional(),
|
|
305
|
+
reviewedById: z.string().optional(),
|
|
306
|
+
executed: z.boolean().default(false),
|
|
307
|
+
error: z.string().optional(),
|
|
308
|
+
input: z.record(z.any()),
|
|
309
|
+
output: z.record(z.any()),
|
|
310
|
+
}).transform((v) => {
|
|
311
|
+
return remap$(v, {
|
|
312
|
+
reviewSource: "review_source",
|
|
313
|
+
reviewedById: "reviewed_by_id",
|
|
314
|
+
});
|
|
315
|
+
});
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* @internal
|
|
319
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
320
|
+
*/
|
|
321
|
+
export namespace ListActionsState$ {
|
|
322
|
+
/** @deprecated use `ListActionsState$inboundSchema` instead. */
|
|
323
|
+
export const inboundSchema = ListActionsState$inboundSchema;
|
|
324
|
+
/** @deprecated use `ListActionsState$outboundSchema` instead. */
|
|
325
|
+
export const outboundSchema = ListActionsState$outboundSchema;
|
|
326
|
+
/** @deprecated use `ListActionsState$Outbound` instead. */
|
|
327
|
+
export type Outbound = ListActionsState$Outbound;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
export function listActionsStateToJSON(
|
|
331
|
+
listActionsState: ListActionsState,
|
|
332
|
+
): string {
|
|
333
|
+
return JSON.stringify(
|
|
334
|
+
ListActionsState$outboundSchema.parse(listActionsState),
|
|
335
|
+
);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
export function listActionsStateFromJSON(
|
|
339
|
+
jsonString: string,
|
|
340
|
+
): SafeParseResult<ListActionsState, SDKValidationError> {
|
|
341
|
+
return safeParse(
|
|
342
|
+
jsonString,
|
|
343
|
+
(x) => ListActionsState$inboundSchema.parse(JSON.parse(x)),
|
|
344
|
+
`Failed to parse 'ListActionsState' from JSON`,
|
|
345
|
+
);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/** @internal */
|
|
349
|
+
export const ListActionsData$inboundSchema: z.ZodType<
|
|
350
|
+
ListActionsData,
|
|
351
|
+
z.ZodTypeDef,
|
|
352
|
+
unknown
|
|
353
|
+
> = z.object({
|
|
354
|
+
_id: z.string(),
|
|
355
|
+
agent_tool_call_id: z.string(),
|
|
356
|
+
tool: z.lazy(() => ListActionsTool$inboundSchema),
|
|
357
|
+
created: z.string(),
|
|
358
|
+
updated: z.string(),
|
|
359
|
+
started: z.string().optional(),
|
|
360
|
+
finished: z.string().optional(),
|
|
361
|
+
agent_id: z.string(),
|
|
362
|
+
action_type: z.string(),
|
|
363
|
+
agent_execution_id: z.string(),
|
|
364
|
+
workspace_id: z.string(),
|
|
365
|
+
state: z.lazy(() => ListActionsState$inboundSchema),
|
|
366
|
+
}).transform((v) => {
|
|
367
|
+
return remap$(v, {
|
|
368
|
+
"_id": "id",
|
|
369
|
+
"agent_tool_call_id": "agentToolCallId",
|
|
370
|
+
"agent_id": "agentId",
|
|
371
|
+
"action_type": "actionType",
|
|
372
|
+
"agent_execution_id": "agentExecutionId",
|
|
373
|
+
"workspace_id": "workspaceId",
|
|
374
|
+
});
|
|
375
|
+
});
|
|
376
|
+
|
|
377
|
+
/** @internal */
|
|
378
|
+
export type ListActionsData$Outbound = {
|
|
379
|
+
_id: string;
|
|
380
|
+
agent_tool_call_id: string;
|
|
381
|
+
tool: ListActionsTool$Outbound;
|
|
382
|
+
created: string;
|
|
383
|
+
updated: string;
|
|
384
|
+
started?: string | undefined;
|
|
385
|
+
finished?: string | undefined;
|
|
386
|
+
agent_id: string;
|
|
387
|
+
action_type: string;
|
|
388
|
+
agent_execution_id: string;
|
|
389
|
+
workspace_id: string;
|
|
390
|
+
state: ListActionsState$Outbound;
|
|
391
|
+
};
|
|
392
|
+
|
|
393
|
+
/** @internal */
|
|
394
|
+
export const ListActionsData$outboundSchema: z.ZodType<
|
|
395
|
+
ListActionsData$Outbound,
|
|
396
|
+
z.ZodTypeDef,
|
|
397
|
+
ListActionsData
|
|
398
|
+
> = z.object({
|
|
399
|
+
id: z.string(),
|
|
400
|
+
agentToolCallId: z.string(),
|
|
401
|
+
tool: z.lazy(() => ListActionsTool$outboundSchema),
|
|
402
|
+
created: z.string(),
|
|
403
|
+
updated: z.string(),
|
|
404
|
+
started: z.string().optional(),
|
|
405
|
+
finished: z.string().optional(),
|
|
406
|
+
agentId: z.string(),
|
|
407
|
+
actionType: z.string(),
|
|
408
|
+
agentExecutionId: z.string(),
|
|
409
|
+
workspaceId: z.string(),
|
|
410
|
+
state: z.lazy(() => ListActionsState$outboundSchema),
|
|
411
|
+
}).transform((v) => {
|
|
412
|
+
return remap$(v, {
|
|
413
|
+
id: "_id",
|
|
414
|
+
agentToolCallId: "agent_tool_call_id",
|
|
415
|
+
agentId: "agent_id",
|
|
416
|
+
actionType: "action_type",
|
|
417
|
+
agentExecutionId: "agent_execution_id",
|
|
418
|
+
workspaceId: "workspace_id",
|
|
419
|
+
});
|
|
420
|
+
});
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* @internal
|
|
424
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
425
|
+
*/
|
|
426
|
+
export namespace ListActionsData$ {
|
|
427
|
+
/** @deprecated use `ListActionsData$inboundSchema` instead. */
|
|
428
|
+
export const inboundSchema = ListActionsData$inboundSchema;
|
|
429
|
+
/** @deprecated use `ListActionsData$outboundSchema` instead. */
|
|
430
|
+
export const outboundSchema = ListActionsData$outboundSchema;
|
|
431
|
+
/** @deprecated use `ListActionsData$Outbound` instead. */
|
|
432
|
+
export type Outbound = ListActionsData$Outbound;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
export function listActionsDataToJSON(
|
|
436
|
+
listActionsData: ListActionsData,
|
|
437
|
+
): string {
|
|
438
|
+
return JSON.stringify(ListActionsData$outboundSchema.parse(listActionsData));
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
export function listActionsDataFromJSON(
|
|
442
|
+
jsonString: string,
|
|
443
|
+
): SafeParseResult<ListActionsData, SDKValidationError> {
|
|
444
|
+
return safeParse(
|
|
445
|
+
jsonString,
|
|
446
|
+
(x) => ListActionsData$inboundSchema.parse(JSON.parse(x)),
|
|
447
|
+
`Failed to parse 'ListActionsData' from JSON`,
|
|
448
|
+
);
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
/** @internal */
|
|
452
|
+
export const ListActionsResponseBody$inboundSchema: z.ZodType<
|
|
453
|
+
ListActionsResponseBody,
|
|
454
|
+
z.ZodTypeDef,
|
|
455
|
+
unknown
|
|
456
|
+
> = z.object({
|
|
457
|
+
object: ListActionsObject$inboundSchema,
|
|
458
|
+
data: z.array(z.lazy(() => ListActionsData$inboundSchema)),
|
|
459
|
+
has_more: z.boolean(),
|
|
460
|
+
}).transform((v) => {
|
|
461
|
+
return remap$(v, {
|
|
462
|
+
"has_more": "hasMore",
|
|
463
|
+
});
|
|
464
|
+
});
|
|
465
|
+
|
|
466
|
+
/** @internal */
|
|
467
|
+
export type ListActionsResponseBody$Outbound = {
|
|
468
|
+
object: string;
|
|
469
|
+
data: Array<ListActionsData$Outbound>;
|
|
470
|
+
has_more: boolean;
|
|
471
|
+
};
|
|
472
|
+
|
|
473
|
+
/** @internal */
|
|
474
|
+
export const ListActionsResponseBody$outboundSchema: z.ZodType<
|
|
475
|
+
ListActionsResponseBody$Outbound,
|
|
476
|
+
z.ZodTypeDef,
|
|
477
|
+
ListActionsResponseBody
|
|
478
|
+
> = z.object({
|
|
479
|
+
object: ListActionsObject$outboundSchema,
|
|
480
|
+
data: z.array(z.lazy(() => ListActionsData$outboundSchema)),
|
|
481
|
+
hasMore: z.boolean(),
|
|
482
|
+
}).transform((v) => {
|
|
483
|
+
return remap$(v, {
|
|
484
|
+
hasMore: "has_more",
|
|
485
|
+
});
|
|
486
|
+
});
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* @internal
|
|
490
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
491
|
+
*/
|
|
492
|
+
export namespace ListActionsResponseBody$ {
|
|
493
|
+
/** @deprecated use `ListActionsResponseBody$inboundSchema` instead. */
|
|
494
|
+
export const inboundSchema = ListActionsResponseBody$inboundSchema;
|
|
495
|
+
/** @deprecated use `ListActionsResponseBody$outboundSchema` instead. */
|
|
496
|
+
export const outboundSchema = ListActionsResponseBody$outboundSchema;
|
|
497
|
+
/** @deprecated use `ListActionsResponseBody$Outbound` instead. */
|
|
498
|
+
export type Outbound = ListActionsResponseBody$Outbound;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
export function listActionsResponseBodyToJSON(
|
|
502
|
+
listActionsResponseBody: ListActionsResponseBody,
|
|
503
|
+
): string {
|
|
504
|
+
return JSON.stringify(
|
|
505
|
+
ListActionsResponseBody$outboundSchema.parse(listActionsResponseBody),
|
|
506
|
+
);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
export function listActionsResponseBodyFromJSON(
|
|
510
|
+
jsonString: string,
|
|
511
|
+
): SafeParseResult<ListActionsResponseBody, SDKValidationError> {
|
|
512
|
+
return safeParse(
|
|
513
|
+
jsonString,
|
|
514
|
+
(x) => ListActionsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
515
|
+
`Failed to parse 'ListActionsResponseBody' from JSON`,
|
|
516
|
+
);
|
|
517
|
+
}
|