@beeos-ai/bma-sdk 0.4.2 → 1.0.1
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/README.md +122 -34
- package/dist/core.d.ts +105 -0
- package/dist/core.js +406 -0
- package/dist/core.js.map +1 -0
- package/dist/errors.d.ts +77 -0
- package/dist/errors.js +109 -0
- package/dist/errors.js.map +1 -0
- package/dist/facade-extensions.d.ts +17 -61
- package/dist/facade-extensions.js +25 -112
- package/dist/facade-extensions.js.map +1 -1
- package/dist/generated/facade-extensions-operations.d.ts +133 -0
- package/dist/generated/facade-extensions-operations.js +11 -0
- package/dist/generated/facade-extensions-operations.js.map +1 -0
- package/dist/generated/facade-extensions-resources.d.ts +34 -0
- package/dist/generated/facade-extensions-resources.js +47 -0
- package/dist/generated/facade-extensions-resources.js.map +1 -0
- package/dist/generated/facade-extensions-types.d.ts +14 -0
- package/dist/generated/facade-extensions-types.js +2 -0
- package/dist/generated/facade-extensions-types.js.map +1 -0
- package/dist/generated/rest-operations.d.ts +4079 -0
- package/dist/generated/rest-operations.js +234 -0
- package/dist/generated/rest-operations.js.map +1 -0
- package/dist/generated/rest-resources.d.ts +666 -0
- package/dist/generated/rest-resources.js +1124 -0
- package/dist/generated/rest-resources.js.map +1 -0
- package/dist/generated/rest-types.d.ts +572 -0
- package/dist/generated/rest-types.js +2 -0
- package/dist/generated/rest-types.js.map +1 -0
- package/dist/generated/rest.d.ts +244 -21
- package/dist/index.d.ts +41 -76
- package/dist/index.js +49 -239
- package/dist/index.js.map +1 -1
- package/dist/lib/artifacts.d.ts +14 -0
- package/dist/lib/artifacts.js +56 -0
- package/dist/lib/artifacts.js.map +1 -0
- package/dist/lib/tool-runner.d.ts +99 -0
- package/dist/lib/tool-runner.js +140 -0
- package/dist/lib/tool-runner.js.map +1 -0
- package/dist/pagination.d.ts +31 -0
- package/dist/pagination.js +66 -0
- package/dist/pagination.js.map +1 -0
- package/dist/resource.d.ts +8 -0
- package/dist/resource.js +9 -0
- package/dist/resource.js.map +1 -0
- package/dist/streaming.d.ts +27 -0
- package/dist/streaming.js +89 -0
- package/dist/streaming.js.map +1 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +4 -0
- package/dist/version.js.map +1 -0
- package/package.json +5 -3
|
@@ -0,0 +1,1124 @@
|
|
|
1
|
+
import { ClientCore } from "../core.js";
|
|
2
|
+
import { APIResource } from "../resource.js";
|
|
3
|
+
import { OP } from "./rest-operations.js";
|
|
4
|
+
import { ArtifactsBase } from "../lib/artifacts.js";
|
|
5
|
+
import { ToolCallsBase } from "../lib/tool-runner.js";
|
|
6
|
+
export class AgentsSessionsModelOverride extends APIResource {
|
|
7
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/agents/{agentID}/sessions/{sessionID}/model-override` (GetAgentSessionModelOverride) */
|
|
8
|
+
retrieve(agentId, sessionId, params = {}, options) {
|
|
9
|
+
return this._client._request(OP.GetAgentSessionModelOverride, { agentID: agentId, sessionID: sessionId }, params, options);
|
|
10
|
+
}
|
|
11
|
+
/** `PUT /orgs/{orgID}/projects/{projectID}/agents/{agentID}/sessions/{sessionID}/model-override` (PutAgentSessionModelOverride) */
|
|
12
|
+
set(agentId, sessionId, params, options) {
|
|
13
|
+
return this._client._request(OP.PutAgentSessionModelOverride, { agentID: agentId, sessionID: sessionId }, params, options);
|
|
14
|
+
}
|
|
15
|
+
/** `PATCH /orgs/{orgID}/projects/{projectID}/agents/{agentID}/sessions/{sessionID}/model-override` (PatchAgentSessionModelOverride) */
|
|
16
|
+
update(agentId, sessionId, params = {}, options) {
|
|
17
|
+
return this._client._request(OP.PatchAgentSessionModelOverride, { agentID: agentId, sessionID: sessionId }, params, options);
|
|
18
|
+
}
|
|
19
|
+
/** `DELETE /orgs/{orgID}/projects/{projectID}/agents/{agentID}/sessions/{sessionID}/model-override` (DeleteAgentSessionModelOverride) */
|
|
20
|
+
delete(agentId, sessionId, params = {}, options) {
|
|
21
|
+
return this._client._request(OP.DeleteAgentSessionModelOverride, { agentID: agentId, sessionID: sessionId }, params, options);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export class AgentsSessionsArtifacts extends APIResource {
|
|
25
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/agents/{agentID}/sessions/{sessionID}/artifacts` (listSessionArtifacts) */
|
|
26
|
+
list(agentId, sessionId, params = {}, options) {
|
|
27
|
+
return this._client._page(OP.listSessionArtifacts, { agentID: agentId, sessionID: sessionId }, params, options);
|
|
28
|
+
}
|
|
29
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/agents/{agentID}/sessions/{sessionID}/artifacts` (uploadSessionArtifact) */
|
|
30
|
+
upload(agentId, sessionId, params, options) {
|
|
31
|
+
return this._client._request(OP.uploadSessionArtifact, { agentID: agentId, sessionID: sessionId }, params, options);
|
|
32
|
+
}
|
|
33
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/agents/{agentID}/sessions/{sessionID}/artifacts/{artifactID}/content` (getSessionArtifactContent) */
|
|
34
|
+
download(agentId, sessionId, artifactId, params = {}, options) {
|
|
35
|
+
return this._client._request(OP.getSessionArtifactContent, { agentID: agentId, sessionID: sessionId, artifactID: artifactId }, params, options);
|
|
36
|
+
}
|
|
37
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/agents/{agentID}/sessions/{sessionID}/artifacts/{artifactID}/promote` (promoteSessionArtifact) */
|
|
38
|
+
promote(agentId, sessionId, artifactId, params = {}, options) {
|
|
39
|
+
return this._client._request(OP.promoteSessionArtifact, { agentID: agentId, sessionID: sessionId, artifactID: artifactId }, params, options);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
export class AgentsSessionsResources extends APIResource {
|
|
43
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/agents/{agentID}/sessions/{sessionID}/resources` (listSessionResources) */
|
|
44
|
+
list(agentId, sessionId, params = {}, options) {
|
|
45
|
+
return this._client._request(OP.listSessionResources, { agentID: agentId, sessionID: sessionId }, params, options);
|
|
46
|
+
}
|
|
47
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/agents/{agentID}/sessions/{sessionID}/resources` (addSessionResource) */
|
|
48
|
+
add(agentId, sessionId, params, options) {
|
|
49
|
+
return this._client._request(OP.addSessionResource, { agentID: agentId, sessionID: sessionId }, params, options);
|
|
50
|
+
}
|
|
51
|
+
/** `DELETE /orgs/{orgID}/projects/{projectID}/agents/{agentID}/sessions/{sessionID}/resources/{resourceID}` (deleteSessionResource) */
|
|
52
|
+
delete(agentId, sessionId, resourceId, params = {}, options) {
|
|
53
|
+
return this._client._request(OP.deleteSessionResource, { agentID: agentId, sessionID: sessionId, resourceID: resourceId }, params, options);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
export class AgentsSessions extends APIResource {
|
|
57
|
+
modelOverride = new AgentsSessionsModelOverride(this._client);
|
|
58
|
+
artifacts = new AgentsSessionsArtifacts(this._client);
|
|
59
|
+
resources = new AgentsSessionsResources(this._client);
|
|
60
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/agents/{agentID}/sessions` (createAgentSession) */
|
|
61
|
+
create(agentId, params = {}, options) {
|
|
62
|
+
return this._client._request(OP.createAgentSession, { agentID: agentId }, params, options);
|
|
63
|
+
}
|
|
64
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/agents/{agentID}/sessions` (listAgentSessions) */
|
|
65
|
+
list(agentId, params = {}, options) {
|
|
66
|
+
return this._client._page(OP.listAgentSessions, { agentID: agentId }, params, options);
|
|
67
|
+
}
|
|
68
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/agents/{agentID}/sessions/{sessionID}` (getAgentSession) */
|
|
69
|
+
retrieve(agentId, sessionId, params = {}, options) {
|
|
70
|
+
return this._client._request(OP.getAgentSession, { agentID: agentId, sessionID: sessionId }, params, options);
|
|
71
|
+
}
|
|
72
|
+
/** `PATCH /orgs/{orgID}/projects/{projectID}/agents/{agentID}/sessions/{sessionID}` (updateAgentSession) */
|
|
73
|
+
update(agentId, sessionId, params = {}, options) {
|
|
74
|
+
return this._client._request(OP.updateAgentSession, { agentID: agentId, sessionID: sessionId }, params, options);
|
|
75
|
+
}
|
|
76
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/agents/{agentID}/sessions/{sessionID}/archive` (archiveAgentSession) */
|
|
77
|
+
archive(agentId, sessionId, params = {}, options) {
|
|
78
|
+
return this._client._request(OP.archiveAgentSession, { agentID: agentId, sessionID: sessionId }, params, options);
|
|
79
|
+
}
|
|
80
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/agents/{agentID}/sessions/{sessionID}/cancel` (cancelAgentSession) */
|
|
81
|
+
cancel(agentId, sessionId, params = {}, options) {
|
|
82
|
+
return this._client._request(OP.cancelAgentSession, { agentID: agentId, sessionID: sessionId }, params, options);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
export class AgentsInputs extends APIResource {
|
|
86
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/agents/{agentID}/inputs` (createAgentInput) */
|
|
87
|
+
create(agentId, params, options) {
|
|
88
|
+
return this._client._request(OP.createAgentInput, { agentID: agentId }, params, options);
|
|
89
|
+
}
|
|
90
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/agents/{agentID}/inputs/backlog` (listQueuedBacklogInputs) */
|
|
91
|
+
listBacklog(agentId, params = {}, options) {
|
|
92
|
+
return this._client._page(OP.listQueuedBacklogInputs, { agentID: agentId }, params, options);
|
|
93
|
+
}
|
|
94
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/agents/{agentID}/inputs/{inputID}/cancel` (cancelQueuedBacklogInput) */
|
|
95
|
+
cancel(agentId, inputId, params = {}, options) {
|
|
96
|
+
return this._client._request(OP.cancelQueuedBacklogInput, { agentID: agentId, inputID: inputId }, params, options);
|
|
97
|
+
}
|
|
98
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/agents/{agentID}/inputs/{inputID}/move` (moveQueuedBacklogInput) */
|
|
99
|
+
move(agentId, inputId, params, options) {
|
|
100
|
+
return this._client._request(OP.moveQueuedBacklogInput, { agentID: agentId, inputID: inputId }, params, options);
|
|
101
|
+
}
|
|
102
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/agents/{agentID}/inputs/{inputID}/promote_to_steering` (promoteQueuedInputToSteering) */
|
|
103
|
+
promoteToSteering(agentId, inputId, params = {}, options) {
|
|
104
|
+
return this._client._request(OP.promoteQueuedInputToSteering, { agentID: agentId, inputID: inputId }, params, options);
|
|
105
|
+
}
|
|
106
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/agents/{agentID}/inputs/{inputID}/demote_to_queued` (demoteSteeringInputToQueued) */
|
|
107
|
+
demoteToQueued(agentId, inputId, params = {}, options) {
|
|
108
|
+
return this._client._request(OP.demoteSteeringInputToQueued, { agentID: agentId, inputID: inputId }, params, options);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
export class AgentsEvents extends APIResource {
|
|
112
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/agents/{agentID}/events` (listEvents) */
|
|
113
|
+
list(agentId, params = {}, options) {
|
|
114
|
+
return this._client._page(OP.listEvents, { agentID: agentId }, params, options);
|
|
115
|
+
}
|
|
116
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/agents/{agentID}/events/stream` (streamEvents) */
|
|
117
|
+
stream(agentId, params = {}, options) {
|
|
118
|
+
return this._client._stream(OP.streamEvents, { agentID: agentId }, params, options);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
export class AgentsTurnsEvents extends APIResource {
|
|
122
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/agents/{agentID}/turns/{turnID}/events` (listTurnEvents) */
|
|
123
|
+
list(agentId, turnId, params = {}, options) {
|
|
124
|
+
return this._client._page(OP.listTurnEvents, { agentID: agentId, turnID: turnId }, params, options);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
export class AgentsTurns extends APIResource {
|
|
128
|
+
events = new AgentsTurnsEvents(this._client);
|
|
129
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/agents/{agentID}/turns` (listTurns) */
|
|
130
|
+
list(agentId, params = {}, options) {
|
|
131
|
+
return this._client._page(OP.listTurns, { agentID: agentId }, params, options);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
export class AgentsToolCalls extends ToolCallsBase {
|
|
135
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/agents/{agentID}/tool-calls` (listToolCalls) */
|
|
136
|
+
list(agentId, params = {}, options) {
|
|
137
|
+
return this._client._page(OP.listToolCalls, { agentID: agentId }, params, options);
|
|
138
|
+
}
|
|
139
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/agents/{agentID}/tool-calls/{toolCallID}` (getToolCall) */
|
|
140
|
+
retrieve(agentId, toolCallId, params = {}, options) {
|
|
141
|
+
return this._client._request(OP.getToolCall, { agentID: agentId, toolCallID: toolCallId }, params, options);
|
|
142
|
+
}
|
|
143
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/agents/{agentID}/tool-calls/{toolCallID}/result` (submitToolCallResult) */
|
|
144
|
+
submitResult(agentId, toolCallId, params, options) {
|
|
145
|
+
return this._client._request(OP.submitToolCallResult, { agentID: agentId, toolCallID: toolCallId }, params, options);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
export class AgentsInteractions extends APIResource {
|
|
149
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/agents/{agentID}/interactions` (listAgentInteractions) */
|
|
150
|
+
list(agentId, params = {}, options) {
|
|
151
|
+
return this._client._page(OP.listAgentInteractions, { agentID: agentId }, params, options);
|
|
152
|
+
}
|
|
153
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/agents/{agentID}/interactions/{interactionID}/resolve` (resolveAgentInteraction) */
|
|
154
|
+
resolve(agentId, interactionId, params, options) {
|
|
155
|
+
return this._client._request(OP.resolveAgentInteraction, { agentID: agentId, interactionID: interactionId }, params, options);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
export class AgentsMachines extends APIResource {
|
|
159
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/agents/{agentID}/machines` (listAgentMachines) */
|
|
160
|
+
list(agentId, params = {}, options) {
|
|
161
|
+
return this._client._request(OP.listAgentMachines, { agentID: agentId }, params, options);
|
|
162
|
+
}
|
|
163
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/agents/{agentID}/machines` (createAgentPersistentMachine) */
|
|
164
|
+
create(agentId, params, options) {
|
|
165
|
+
return this._client._request(OP.createAgentPersistentMachine, { agentID: agentId }, params, options);
|
|
166
|
+
}
|
|
167
|
+
/** `DELETE /orgs/{orgID}/projects/{projectID}/agents/{agentID}/machines/{machineID}` (deleteAgentMachine) */
|
|
168
|
+
delete(agentId, machineId, params = {}, options) {
|
|
169
|
+
return this._client._request(OP.deleteAgentMachine, { agentID: agentId, machineID: machineId }, params, options);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
export class AgentsModelOverride extends APIResource {
|
|
173
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/agents/{agentID}/model-override` (GetAgentModelOverride) */
|
|
174
|
+
retrieve(agentId, params = {}, options) {
|
|
175
|
+
return this._client._request(OP.GetAgentModelOverride, { agentID: agentId }, params, options);
|
|
176
|
+
}
|
|
177
|
+
/** `PUT /orgs/{orgID}/projects/{projectID}/agents/{agentID}/model-override` (PutAgentModelOverride) */
|
|
178
|
+
set(agentId, params, options) {
|
|
179
|
+
return this._client._request(OP.PutAgentModelOverride, { agentID: agentId }, params, options);
|
|
180
|
+
}
|
|
181
|
+
/** `PATCH /orgs/{orgID}/projects/{projectID}/agents/{agentID}/model-override` (PatchAgentModelOverride) */
|
|
182
|
+
update(agentId, params = {}, options) {
|
|
183
|
+
return this._client._request(OP.PatchAgentModelOverride, { agentID: agentId }, params, options);
|
|
184
|
+
}
|
|
185
|
+
/** `DELETE /orgs/{orgID}/projects/{projectID}/agents/{agentID}/model-override` (DeleteAgentModelOverride) */
|
|
186
|
+
delete(agentId, params = {}, options) {
|
|
187
|
+
return this._client._request(OP.DeleteAgentModelOverride, { agentID: agentId }, params, options);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
export class AgentsExecutorBinding extends APIResource {
|
|
191
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/agents/{agentID}/executor-binding` (GetAgentExecutorBinding) */
|
|
192
|
+
retrieve(agentId, params = {}, options) {
|
|
193
|
+
return this._client._request(OP.GetAgentExecutorBinding, { agentID: agentId }, params, options);
|
|
194
|
+
}
|
|
195
|
+
/** `PUT /orgs/{orgID}/projects/{projectID}/agents/{agentID}/executor-binding` (PutAgentExecutorBinding) */
|
|
196
|
+
set(agentId, params, options) {
|
|
197
|
+
return this._client._request(OP.PutAgentExecutorBinding, { agentID: agentId }, params, options);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
export class AgentsArtifacts extends ArtifactsBase {
|
|
201
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/agents/{agentID}/artifacts/{artifactID}` (getArtifact) */
|
|
202
|
+
retrieve(agentId, artifactId, params = {}, options) {
|
|
203
|
+
return this._client._request(OP.getArtifact, { agentID: agentId, artifactID: artifactId }, params, options);
|
|
204
|
+
}
|
|
205
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/agents/{agentID}/artifacts/{artifactID}/content` (getArtifactContent) */
|
|
206
|
+
download(agentId, artifactId, params = {}, options) {
|
|
207
|
+
return this._client._request(OP.getArtifactContent, { agentID: agentId, artifactID: artifactId }, params, options);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
export class Agents extends APIResource {
|
|
211
|
+
sessions = new AgentsSessions(this._client);
|
|
212
|
+
inputs = new AgentsInputs(this._client);
|
|
213
|
+
events = new AgentsEvents(this._client);
|
|
214
|
+
turns = new AgentsTurns(this._client);
|
|
215
|
+
toolCalls = new AgentsToolCalls(this._client);
|
|
216
|
+
interactions = new AgentsInteractions(this._client);
|
|
217
|
+
machines = new AgentsMachines(this._client);
|
|
218
|
+
modelOverride = new AgentsModelOverride(this._client);
|
|
219
|
+
executorBinding = new AgentsExecutorBinding(this._client);
|
|
220
|
+
artifacts = new AgentsArtifacts(this._client);
|
|
221
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/agents` (createAgent) */
|
|
222
|
+
create(params, options) {
|
|
223
|
+
return this._client._request(OP.createAgent, {}, params, options);
|
|
224
|
+
}
|
|
225
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/agents` (listAgents) */
|
|
226
|
+
list(params = {}, options) {
|
|
227
|
+
return this._client._page(OP.listAgents, {}, params, options);
|
|
228
|
+
}
|
|
229
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/agents/{agentID}` (getAgent) */
|
|
230
|
+
retrieve(agentId, params = {}, options) {
|
|
231
|
+
return this._client._request(OP.getAgent, { agentID: agentId }, params, options);
|
|
232
|
+
}
|
|
233
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/agents/{agentID}/archive` (archiveAgent) */
|
|
234
|
+
archive(agentId, params = {}, options) {
|
|
235
|
+
return this._client._request(OP.archiveAgent, { agentID: agentId }, params, options);
|
|
236
|
+
}
|
|
237
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/agents/{agentID}/cancel` (cancelAgent) */
|
|
238
|
+
cancel(agentId, params = {}, options) {
|
|
239
|
+
return this._client._request(OP.cancelAgent, { agentID: agentId }, params, options);
|
|
240
|
+
}
|
|
241
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/agents/{agentID}/config` (updateAgentConfig) */
|
|
242
|
+
updateConfig(agentId, params, options) {
|
|
243
|
+
return this._client._request(OP.updateAgentConfig, { agentID: agentId }, params, options);
|
|
244
|
+
}
|
|
245
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/agents/{agentID}/usage` (getAgentUsage) */
|
|
246
|
+
usage(agentId, params = {}, options) {
|
|
247
|
+
return this._client._request(OP.getAgentUsage, { agentID: agentId }, params, options);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
export class Sessions extends APIResource {
|
|
251
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/agent-sessions` (listProjectAgentSessions) */
|
|
252
|
+
list(params = {}, options) {
|
|
253
|
+
return this._client._page(OP.listProjectAgentSessions, {}, params, options);
|
|
254
|
+
}
|
|
255
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/agent-sessions/{sessionID}` (getProjectAgentSession) */
|
|
256
|
+
retrieve(sessionId, params = {}, options) {
|
|
257
|
+
return this._client._request(OP.getProjectAgentSession, { sessionID: sessionId }, params, options);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
export class AgentConfigs extends APIResource {
|
|
261
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/agent-configs` (createAgentConfig) */
|
|
262
|
+
create(params, options) {
|
|
263
|
+
return this._client._request(OP.createAgentConfig, {}, params, options);
|
|
264
|
+
}
|
|
265
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/agent-configs/{agentConfigID}` (getAgentConfig) */
|
|
266
|
+
retrieve(agentConfigId, params = {}, options) {
|
|
267
|
+
return this._client._request(OP.getAgentConfig, { agentConfigID: agentConfigId }, params, options);
|
|
268
|
+
}
|
|
269
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/agent-configs/{agentConfigID}/generated-source` (getAgentConfigGeneratedSource) */
|
|
270
|
+
generatedSource(agentConfigId, params = {}, options) {
|
|
271
|
+
return this._client._request(OP.getAgentConfigGeneratedSource, { agentConfigID: agentConfigId }, params, options);
|
|
272
|
+
}
|
|
273
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/agent-configs/tools` (resolveAgentConfigTools) */
|
|
274
|
+
resolveTools(params, options) {
|
|
275
|
+
return this._client._request(OP.resolveAgentConfigTools, {}, params, options);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
export class AgentProfiles extends APIResource {
|
|
279
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/agent-profiles` (createAgentProfile) */
|
|
280
|
+
create(params, options) {
|
|
281
|
+
return this._client._request(OP.createAgentProfile, {}, params, options);
|
|
282
|
+
}
|
|
283
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/agent-profiles` (listAgentProfiles) */
|
|
284
|
+
list(params = {}, options) {
|
|
285
|
+
return this._client._page(OP.listAgentProfiles, {}, params, options);
|
|
286
|
+
}
|
|
287
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/agent-profiles/{agentProfileID}` (getAgentProfile) */
|
|
288
|
+
retrieve(agentProfileId, params = {}, options) {
|
|
289
|
+
return this._client._request(OP.getAgentProfile, { agentProfileID: agentProfileId }, params, options);
|
|
290
|
+
}
|
|
291
|
+
/** `PATCH /orgs/{orgID}/projects/{projectID}/agent-profiles/{agentProfileID}` (renameAgentProfile) */
|
|
292
|
+
rename(agentProfileId, params, options) {
|
|
293
|
+
return this._client._request(OP.renameAgentProfile, { agentProfileID: agentProfileId }, params, options);
|
|
294
|
+
}
|
|
295
|
+
/** `DELETE /orgs/{orgID}/projects/{projectID}/agent-profiles/{agentProfileID}` (deleteAgentProfile) */
|
|
296
|
+
delete(agentProfileId, params = {}, options) {
|
|
297
|
+
return this._client._request(OP.deleteAgentProfile, { agentProfileID: agentProfileId }, params, options);
|
|
298
|
+
}
|
|
299
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/agent-profiles/{agentProfileID}/usage` (getAgentProfileUsage) */
|
|
300
|
+
usage(agentProfileId, params = {}, options) {
|
|
301
|
+
return this._client._request(OP.getAgentProfileUsage, { agentProfileID: agentProfileId }, params, options);
|
|
302
|
+
}
|
|
303
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/agent-profiles/{agentProfileID}/config` (updateAgentProfile) */
|
|
304
|
+
updateConfig(agentProfileId, params, options) {
|
|
305
|
+
return this._client._request(OP.updateAgentProfile, { agentProfileID: agentProfileId }, params, options);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
export class CronTriggers extends APIResource {
|
|
309
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/cron-triggers` (createCronTrigger) */
|
|
310
|
+
create(params, options) {
|
|
311
|
+
return this._client._request(OP.createCronTrigger, {}, params, options);
|
|
312
|
+
}
|
|
313
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/cron-triggers` (listCronTriggers) */
|
|
314
|
+
list(params = {}, options) {
|
|
315
|
+
return this._client._page(OP.listCronTriggers, {}, params, options);
|
|
316
|
+
}
|
|
317
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/cron-triggers/{cronTriggerID}` (getCronTrigger) */
|
|
318
|
+
retrieve(cronTriggerId, params = {}, options) {
|
|
319
|
+
return this._client._request(OP.getCronTrigger, { cronTriggerID: cronTriggerId }, params, options);
|
|
320
|
+
}
|
|
321
|
+
/** `PATCH /orgs/{orgID}/projects/{projectID}/cron-triggers/{cronTriggerID}` (updateCronTrigger) */
|
|
322
|
+
update(cronTriggerId, params = {}, options) {
|
|
323
|
+
return this._client._request(OP.updateCronTrigger, { cronTriggerID: cronTriggerId }, params, options);
|
|
324
|
+
}
|
|
325
|
+
/** `DELETE /orgs/{orgID}/projects/{projectID}/cron-triggers/{cronTriggerID}` (deleteCronTrigger) */
|
|
326
|
+
delete(cronTriggerId, params = {}, options) {
|
|
327
|
+
return this._client._request(OP.deleteCronTrigger, { cronTriggerID: cronTriggerId }, params, options);
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
export class EventWebhooks extends APIResource {
|
|
331
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/event-webhooks` (createEventWebhook) */
|
|
332
|
+
create(params, options) {
|
|
333
|
+
return this._client._request(OP.createEventWebhook, {}, params, options);
|
|
334
|
+
}
|
|
335
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/event-webhooks` (listEventWebhooks) */
|
|
336
|
+
list(params, options) {
|
|
337
|
+
return this._client._request(OP.listEventWebhooks, {}, params, options);
|
|
338
|
+
}
|
|
339
|
+
/** `PATCH /orgs/{orgID}/projects/{projectID}/event-webhooks/{webhookID}` (updateEventWebhook) */
|
|
340
|
+
update(webhookId, params = {}, options) {
|
|
341
|
+
return this._client._request(OP.updateEventWebhook, { webhookID: webhookId }, params, options);
|
|
342
|
+
}
|
|
343
|
+
/** `DELETE /orgs/{orgID}/projects/{projectID}/event-webhooks/{webhookID}` (deleteEventWebhook) */
|
|
344
|
+
delete(webhookId, params = {}, options) {
|
|
345
|
+
return this._client._request(OP.deleteEventWebhook, { webhookID: webhookId }, params, options);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
export class Files extends APIResource {
|
|
349
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/files` (uploadFile) */
|
|
350
|
+
upload(params, options) {
|
|
351
|
+
return this._client._request(OP.uploadFile, {}, params, options);
|
|
352
|
+
}
|
|
353
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/files` (listFiles) */
|
|
354
|
+
list(params = {}, options) {
|
|
355
|
+
return this._client._page(OP.listFiles, {}, params, options);
|
|
356
|
+
}
|
|
357
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/files/{fileID}` (getFile) */
|
|
358
|
+
retrieve(fileId, params = {}, options) {
|
|
359
|
+
return this._client._request(OP.getFile, { fileID: fileId }, params, options);
|
|
360
|
+
}
|
|
361
|
+
/** `DELETE /orgs/{orgID}/projects/{projectID}/files/{fileID}` (deleteFile) */
|
|
362
|
+
delete(fileId, params = {}, options) {
|
|
363
|
+
return this._client._request(OP.deleteFile, { fileID: fileId }, params, options);
|
|
364
|
+
}
|
|
365
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/files/{fileID}/content` (getFileContent) */
|
|
366
|
+
download(fileId, params = {}, options) {
|
|
367
|
+
return this._client._request(OP.getFileContent, { fileID: fileId }, params, options);
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
export class MemoryStoresFiles extends APIResource {
|
|
371
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/memory-stores/{memoryStoreID}/files` (listMemoryFiles) */
|
|
372
|
+
list(memoryStoreId, params = {}, options) {
|
|
373
|
+
return this._client._page(OP.listMemoryFiles, { memoryStoreID: memoryStoreId }, params, options);
|
|
374
|
+
}
|
|
375
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/memory-stores/{memoryStoreID}/file` (downloadMemoryFile) */
|
|
376
|
+
download(memoryStoreId, params, options) {
|
|
377
|
+
return this._client._request(OP.downloadMemoryFile, { memoryStoreID: memoryStoreId }, params, options);
|
|
378
|
+
}
|
|
379
|
+
/** `PUT /orgs/{orgID}/projects/{projectID}/memory-stores/{memoryStoreID}/file` (writeMemoryFile) */
|
|
380
|
+
write(memoryStoreId, params, options) {
|
|
381
|
+
return this._client._request(OP.writeMemoryFile, { memoryStoreID: memoryStoreId }, params, options);
|
|
382
|
+
}
|
|
383
|
+
/** `DELETE /orgs/{orgID}/projects/{projectID}/memory-stores/{memoryStoreID}/file` (deleteMemoryFile) */
|
|
384
|
+
delete(memoryStoreId, params, options) {
|
|
385
|
+
return this._client._request(OP.deleteMemoryFile, { memoryStoreID: memoryStoreId }, params, options);
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
export class MemoryStores extends APIResource {
|
|
389
|
+
files = new MemoryStoresFiles(this._client);
|
|
390
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/memory-stores` (createMemoryStore) */
|
|
391
|
+
create(params, options) {
|
|
392
|
+
return this._client._request(OP.createMemoryStore, {}, params, options);
|
|
393
|
+
}
|
|
394
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/memory-stores` (listMemoryStores) */
|
|
395
|
+
list(params = {}, options) {
|
|
396
|
+
return this._client._page(OP.listMemoryStores, {}, params, options);
|
|
397
|
+
}
|
|
398
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/memory-stores/{memoryStoreID}` (getMemoryStore) */
|
|
399
|
+
retrieve(memoryStoreId, params = {}, options) {
|
|
400
|
+
return this._client._request(OP.getMemoryStore, { memoryStoreID: memoryStoreId }, params, options);
|
|
401
|
+
}
|
|
402
|
+
/** `PATCH /orgs/{orgID}/projects/{projectID}/memory-stores/{memoryStoreID}` (updateMemoryStore) */
|
|
403
|
+
update(memoryStoreId, params = {}, options) {
|
|
404
|
+
return this._client._request(OP.updateMemoryStore, { memoryStoreID: memoryStoreId }, params, options);
|
|
405
|
+
}
|
|
406
|
+
/** `DELETE /orgs/{orgID}/projects/{projectID}/memory-stores/{memoryStoreID}` (deleteMemoryStore) */
|
|
407
|
+
delete(memoryStoreId, params = {}, options) {
|
|
408
|
+
return this._client._request(OP.deleteMemoryStore, { memoryStoreID: memoryStoreId }, params, options);
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
export class Actors extends APIResource {
|
|
412
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/actors` (listActors) */
|
|
413
|
+
list(params = {}, options) {
|
|
414
|
+
return this._client._page(OP.listActors, {}, params, options);
|
|
415
|
+
}
|
|
416
|
+
/** `PUT /orgs/{orgID}/projects/{projectID}/actors` (putActor) */
|
|
417
|
+
upsert(params, options) {
|
|
418
|
+
return this._client._request(OP.putActor, {}, params, options);
|
|
419
|
+
}
|
|
420
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/actors/{actorID}` (getActor) */
|
|
421
|
+
retrieve(actorId, params = {}, options) {
|
|
422
|
+
return this._client._request(OP.getActor, { actorID: actorId }, params, options);
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
export class IntegrationsSubscriptions extends APIResource {
|
|
426
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/integrations/{integrationID}/subscriptions` (createIntegrationSubscription) */
|
|
427
|
+
create(integrationId, params, options) {
|
|
428
|
+
return this._client._request(OP.createIntegrationSubscription, { integrationID: integrationId }, params, options);
|
|
429
|
+
}
|
|
430
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/integrations/{integrationID}/subscriptions` (listIntegrationSubscriptions) */
|
|
431
|
+
list(integrationId, params = {}, options) {
|
|
432
|
+
return this._client._page(OP.listIntegrationSubscriptions, { integrationID: integrationId }, params, options);
|
|
433
|
+
}
|
|
434
|
+
/** `DELETE /orgs/{orgID}/projects/{projectID}/integrations/{integrationID}/subscriptions/{subscriptionID}` (deleteIntegrationSubscription) */
|
|
435
|
+
delete(integrationId, subscriptionId, params = {}, options) {
|
|
436
|
+
return this._client._request(OP.deleteIntegrationSubscription, { integrationID: integrationId, subscriptionID: subscriptionId }, params, options);
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
export class Integrations extends APIResource {
|
|
440
|
+
subscriptions = new IntegrationsSubscriptions(this._client);
|
|
441
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/integrations` (createIntegration) */
|
|
442
|
+
create(params, options) {
|
|
443
|
+
return this._client._request(OP.createIntegration, {}, params, options);
|
|
444
|
+
}
|
|
445
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/integrations` (listIntegrations) */
|
|
446
|
+
list(params = {}, options) {
|
|
447
|
+
return this._client._page(OP.listIntegrations, {}, params, options);
|
|
448
|
+
}
|
|
449
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/integrations/{integrationID}` (getIntegration) */
|
|
450
|
+
retrieve(integrationId, params = {}, options) {
|
|
451
|
+
return this._client._request(OP.getIntegration, { integrationID: integrationId }, params, options);
|
|
452
|
+
}
|
|
453
|
+
/** `PUT /orgs/{orgID}/projects/{projectID}/integrations/{integrationID}` (updateIntegration) */
|
|
454
|
+
update(integrationId, params, options) {
|
|
455
|
+
return this._client._request(OP.updateIntegration, { integrationID: integrationId }, params, options);
|
|
456
|
+
}
|
|
457
|
+
/** `DELETE /orgs/{orgID}/projects/{projectID}/integrations/{integrationID}` (deleteIntegration) */
|
|
458
|
+
delete(integrationId, params = {}, options) {
|
|
459
|
+
return this._client._request(OP.deleteIntegration, { integrationID: integrationId }, params, options);
|
|
460
|
+
}
|
|
461
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/integrations/{integrationID}/setup` (configureIntegration) */
|
|
462
|
+
configure(integrationId, params, options) {
|
|
463
|
+
return this._client._request(OP.configureIntegration, { integrationID: integrationId }, params, options);
|
|
464
|
+
}
|
|
465
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/integrations/{integrationID}/disconnect` (disconnectIntegration) */
|
|
466
|
+
disconnect(integrationId, params = {}, options) {
|
|
467
|
+
return this._client._request(OP.disconnectIntegration, { integrationID: integrationId }, params, options);
|
|
468
|
+
}
|
|
469
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/integrations/{integrationID}/oauth/setup` (createIntegrationOAuthSetup) */
|
|
470
|
+
createOAuthSetup(integrationId, params, options) {
|
|
471
|
+
return this._client._request(OP.createIntegrationOAuthSetup, { integrationID: integrationId }, params, options);
|
|
472
|
+
}
|
|
473
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/integrations/{integrationID}/slack-setup` (createIntegrationSlackSetup) */
|
|
474
|
+
createSlackSetup(integrationId, params, options) {
|
|
475
|
+
return this._client._request(OP.createIntegrationSlackSetup, { integrationID: integrationId }, params, options);
|
|
476
|
+
}
|
|
477
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/integrations/{integrationID}/github-setup` (createIntegrationGitHubSetup) */
|
|
478
|
+
createGitHubSetup(integrationId, params, options) {
|
|
479
|
+
return this._client._request(OP.createIntegrationGitHubSetup, { integrationID: integrationId }, params, options);
|
|
480
|
+
}
|
|
481
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/integrations/{integrationID}/github-setup/installations` (inspectIntegrationGitHubInstallations) */
|
|
482
|
+
inspectGitHubInstallations(integrationId, params, options) {
|
|
483
|
+
return this._client._request(OP.inspectIntegrationGitHubInstallations, { integrationID: integrationId }, params, options);
|
|
484
|
+
}
|
|
485
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/integrations/{integrationID}/github-repositories` (listIntegrationGitHubRepositories) */
|
|
486
|
+
listGitHubRepositories(integrationId, params = {}, options) {
|
|
487
|
+
return this._client._page(OP.listIntegrationGitHubRepositories, { integrationID: integrationId }, params, options);
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
export class IntegrationDefinitions extends APIResource {
|
|
491
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/integration-definitions` (listIntegrationDefinitions) */
|
|
492
|
+
list(params = {}, options) {
|
|
493
|
+
return this._client._request(OP.listIntegrationDefinitions, {}, params, options);
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
export class MachineGrants extends APIResource {
|
|
497
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/machine-grants` (createProjectMachineGrant) */
|
|
498
|
+
create(params, options) {
|
|
499
|
+
return this._client._request(OP.createProjectMachineGrant, {}, params, options);
|
|
500
|
+
}
|
|
501
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/machine-grants` (listProjectMachineGrants) */
|
|
502
|
+
list(params = {}, options) {
|
|
503
|
+
return this._client._page(OP.listProjectMachineGrants, {}, params, options);
|
|
504
|
+
}
|
|
505
|
+
/** `DELETE /orgs/{orgID}/projects/{projectID}/machine-grants/{grantID}` (deleteProjectMachineGrant) */
|
|
506
|
+
delete(grantId, params = {}, options) {
|
|
507
|
+
return this._client._request(OP.deleteProjectMachineGrant, { grantID: grantId }, params, options);
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
export class MachinePoolGrants extends APIResource {
|
|
511
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/machine-pool-grants` (createProjectMachinePoolGrant) */
|
|
512
|
+
create(params, options) {
|
|
513
|
+
return this._client._request(OP.createProjectMachinePoolGrant, {}, params, options);
|
|
514
|
+
}
|
|
515
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/machine-pool-grants` (listProjectMachinePoolGrants) */
|
|
516
|
+
list(params = {}, options) {
|
|
517
|
+
return this._client._page(OP.listProjectMachinePoolGrants, {}, params, options);
|
|
518
|
+
}
|
|
519
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/machine-pool-grants/{poolGrantID}` (getProjectMachinePoolGrant) */
|
|
520
|
+
retrieve(poolGrantId, params = {}, options) {
|
|
521
|
+
return this._client._request(OP.getProjectMachinePoolGrant, { poolGrantID: poolGrantId }, params, options);
|
|
522
|
+
}
|
|
523
|
+
/** `PATCH /orgs/{orgID}/projects/{projectID}/machine-pool-grants/{poolGrantID}` (updateProjectMachinePoolGrant) */
|
|
524
|
+
update(poolGrantId, params = {}, options) {
|
|
525
|
+
return this._client._request(OP.updateProjectMachinePoolGrant, { poolGrantID: poolGrantId }, params, options);
|
|
526
|
+
}
|
|
527
|
+
/** `DELETE /orgs/{orgID}/projects/{projectID}/machine-pool-grants/{poolGrantID}` (deleteProjectMachinePoolGrant) */
|
|
528
|
+
delete(poolGrantId, params = {}, options) {
|
|
529
|
+
return this._client._request(OP.deleteProjectMachinePoolGrant, { poolGrantID: poolGrantId }, params, options);
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
export class ModelGrants extends APIResource {
|
|
533
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/model-grants` (createProjectModelGrant) */
|
|
534
|
+
create(params, options) {
|
|
535
|
+
return this._client._request(OP.createProjectModelGrant, {}, params, options);
|
|
536
|
+
}
|
|
537
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/model-grants` (listProjectModelGrants) */
|
|
538
|
+
list(params = {}, options) {
|
|
539
|
+
return this._client._page(OP.listProjectModelGrants, {}, params, options);
|
|
540
|
+
}
|
|
541
|
+
/** `PATCH /orgs/{orgID}/projects/{projectID}/model-grants/{modelGrantID}` (updateProjectModelGrant) */
|
|
542
|
+
update(modelGrantId, params = {}, options) {
|
|
543
|
+
return this._client._request(OP.updateProjectModelGrant, { modelGrantID: modelGrantId }, params, options);
|
|
544
|
+
}
|
|
545
|
+
/** `DELETE /orgs/{orgID}/projects/{projectID}/model-grants/{modelGrantID}` (deleteProjectModelGrant) */
|
|
546
|
+
delete(modelGrantId, params = {}, options) {
|
|
547
|
+
return this._client._request(OP.deleteProjectModelGrant, { modelGrantID: modelGrantId }, params, options);
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
export class Secrets extends APIResource {
|
|
551
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/secrets` (listProjectAvailableSecrets) */
|
|
552
|
+
list(params = {}, options) {
|
|
553
|
+
return this._client._page(OP.listProjectAvailableSecrets, {}, params, options);
|
|
554
|
+
}
|
|
555
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/secrets/{secretID}` (getProjectAvailableSecret) */
|
|
556
|
+
retrieve(secretId, params = {}, options) {
|
|
557
|
+
return this._client._request(OP.getProjectAvailableSecret, { secretID: secretId }, params, options);
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
export class Skills extends APIResource {
|
|
561
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/skills` (listProjectAvailableSkills) */
|
|
562
|
+
list(params = {}, options) {
|
|
563
|
+
return this._client._page(OP.listProjectAvailableSkills, {}, params, options);
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
export class McpServersTools extends APIResource {
|
|
567
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/mcp-servers/tools` (listMCPServerTools) */
|
|
568
|
+
list(params, options) {
|
|
569
|
+
return this._client._request(OP.listMCPServerTools, {}, params, options);
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
export class McpServers extends APIResource {
|
|
573
|
+
tools = new McpServersTools(this._client);
|
|
574
|
+
/** `GET /mcp-servers` (listMCPServers) */
|
|
575
|
+
list(params = {}, options) {
|
|
576
|
+
return this._client._page(OP.listMCPServers, {}, params, options);
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
export class MachinesBackups extends APIResource {
|
|
580
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/machines/{machineID}/backups` (createMachineBackup) */
|
|
581
|
+
create(machineId, params = {}, options) {
|
|
582
|
+
return this._client._request(OP.createMachineBackup, { machineID: machineId }, params, options);
|
|
583
|
+
}
|
|
584
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/machines/{machineID}/backups` (listMachineBackups) */
|
|
585
|
+
list(machineId, params = {}, options) {
|
|
586
|
+
return this._client._request(OP.listMachineBackups, { machineID: machineId }, params, options);
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
export class MachinesDesktopSessionsControl extends APIResource {
|
|
590
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/machines/{machineID}/desktop-sessions/{desktopSessionID}/control` (getDesktopControl) */
|
|
591
|
+
retrieve(machineId, desktopSessionId, params = {}, options) {
|
|
592
|
+
return this._client._request(OP.getDesktopControl, { machineID: machineId, desktopSessionID: desktopSessionId }, params, options);
|
|
593
|
+
}
|
|
594
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/machines/{machineID}/desktop-sessions/{desktopSessionID}/control/acquire` (acquireDesktopControl) */
|
|
595
|
+
acquire(machineId, desktopSessionId, params = {}, options) {
|
|
596
|
+
return this._client._request(OP.acquireDesktopControl, { machineID: machineId, desktopSessionID: desktopSessionId }, params, options);
|
|
597
|
+
}
|
|
598
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/machines/{machineID}/desktop-sessions/{desktopSessionID}/control/renew` (renewDesktopControl) */
|
|
599
|
+
renew(machineId, desktopSessionId, params = {}, options) {
|
|
600
|
+
return this._client._request(OP.renewDesktopControl, { machineID: machineId, desktopSessionID: desktopSessionId }, params, options);
|
|
601
|
+
}
|
|
602
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/machines/{machineID}/desktop-sessions/{desktopSessionID}/control/release` (releaseDesktopControl) */
|
|
603
|
+
release(machineId, desktopSessionId, params = {}, options) {
|
|
604
|
+
return this._client._request(OP.releaseDesktopControl, { machineID: machineId, desktopSessionID: desktopSessionId }, params, options);
|
|
605
|
+
}
|
|
606
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/machines/{machineID}/desktop-sessions/{desktopSessionID}/control/handback` (handbackDesktopControl) */
|
|
607
|
+
handback(machineId, desktopSessionId, params = {}, options) {
|
|
608
|
+
return this._client._request(OP.handbackDesktopControl, { machineID: machineId, desktopSessionID: desktopSessionId }, params, options);
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
export class MachinesDesktopSessionsAgent extends APIResource {
|
|
612
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/machines/{machineID}/desktop-sessions/{desktopSessionID}/agent/observe` (observeDesktop) */
|
|
613
|
+
observe(machineId, desktopSessionId, params = {}, options) {
|
|
614
|
+
return this._client._request(OP.observeDesktop, { machineID: machineId, desktopSessionID: desktopSessionId }, params, options);
|
|
615
|
+
}
|
|
616
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/machines/{machineID}/desktop-sessions/{desktopSessionID}/agent/resume` (resumeDesktopAgent) */
|
|
617
|
+
resume(machineId, desktopSessionId, params, options) {
|
|
618
|
+
return this._client._request(OP.resumeDesktopAgent, { machineID: machineId, desktopSessionID: desktopSessionId }, params, options);
|
|
619
|
+
}
|
|
620
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/machines/{machineID}/desktop-sessions/{desktopSessionID}/agent/actions` (submitDesktopAction) */
|
|
621
|
+
submitAction(machineId, desktopSessionId, params, options) {
|
|
622
|
+
return this._client._request(OP.submitDesktopAction, { machineID: machineId, desktopSessionID: desktopSessionId }, params, options);
|
|
623
|
+
}
|
|
624
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/machines/{machineID}/desktop-sessions/{desktopSessionID}/agent/actions/{pendingID}/confirm` (confirmDesktopAction) */
|
|
625
|
+
confirmAction(machineId, desktopSessionId, pendingId, params, options) {
|
|
626
|
+
return this._client._request(OP.confirmDesktopAction, { machineID: machineId, desktopSessionID: desktopSessionId, pendingID: pendingId }, params, options);
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
export class MachinesDesktopSessions extends APIResource {
|
|
630
|
+
control = new MachinesDesktopSessionsControl(this._client);
|
|
631
|
+
agent = new MachinesDesktopSessionsAgent(this._client);
|
|
632
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/machines/{machineID}/desktop-sessions` (createDesktopSession) */
|
|
633
|
+
create(machineId, params = {}, options) {
|
|
634
|
+
return this._client._request(OP.createDesktopSession, { machineID: machineId }, params, options);
|
|
635
|
+
}
|
|
636
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/machines/{machineID}/desktop-sessions/{desktopSessionID}` (getDesktopSession) */
|
|
637
|
+
retrieve(machineId, desktopSessionId, params = {}, options) {
|
|
638
|
+
return this._client._request(OP.getDesktopSession, { machineID: machineId, desktopSessionID: desktopSessionId }, params, options);
|
|
639
|
+
}
|
|
640
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/machines/{machineID}/desktop-sessions/{desktopSessionID}/close` (closeDesktopSession) */
|
|
641
|
+
close(machineId, desktopSessionId, params = {}, options) {
|
|
642
|
+
return this._client._request(OP.closeDesktopSession, { machineID: machineId, desktopSessionID: desktopSessionId }, params, options);
|
|
643
|
+
}
|
|
644
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/machines/{machineID}/desktop-sessions/{desktopSessionID}/screenshot` (captureDesktopScreenshot) */
|
|
645
|
+
screenshot(machineId, desktopSessionId, params = {}, options) {
|
|
646
|
+
return this._client._request(OP.captureDesktopScreenshot, { machineID: machineId, desktopSessionID: desktopSessionId }, params, options);
|
|
647
|
+
}
|
|
648
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/machines/{machineID}/desktop-sessions/{desktopSessionID}/actions` (sendDesktopActions) */
|
|
649
|
+
sendActions(machineId, desktopSessionId, params, options) {
|
|
650
|
+
return this._client._request(OP.sendDesktopActions, { machineID: machineId, desktopSessionID: desktopSessionId }, params, options);
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
export class MachinesTerminalSessions extends APIResource {
|
|
654
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/machines/{machineID}/terminal-sessions` (createTerminalSession) */
|
|
655
|
+
create(machineId, params = {}, options) {
|
|
656
|
+
return this._client._request(OP.createTerminalSession, { machineID: machineId }, params, options);
|
|
657
|
+
}
|
|
658
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/machines/{machineID}/terminal-sessions` (listTerminalSessions) */
|
|
659
|
+
list(machineId, params = {}, options) {
|
|
660
|
+
return this._client._request(OP.listTerminalSessions, { machineID: machineId }, params, options);
|
|
661
|
+
}
|
|
662
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/machines/{machineID}/terminal-sessions/{terminalSessionID}` (getTerminalSession) */
|
|
663
|
+
retrieve(machineId, terminalSessionId, params = {}, options) {
|
|
664
|
+
return this._client._request(OP.getTerminalSession, { machineID: machineId, terminalSessionID: terminalSessionId }, params, options);
|
|
665
|
+
}
|
|
666
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/machines/{machineID}/terminal-sessions/{terminalSessionID}/close` (closeTerminalSession) */
|
|
667
|
+
close(machineId, terminalSessionId, params = {}, options) {
|
|
668
|
+
return this._client._request(OP.closeTerminalSession, { machineID: machineId, terminalSessionID: terminalSessionId }, params, options);
|
|
669
|
+
}
|
|
670
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/machines/{machineID}/terminal-sessions/{terminalSessionID}/connection-ticket` (createTerminalConnectionTicket) */
|
|
671
|
+
connectionTicket(machineId, terminalSessionId, params = {}, options) {
|
|
672
|
+
return this._client._request(OP.createTerminalConnectionTicket, { machineID: machineId, terminalSessionID: terminalSessionId }, params, options);
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
export class Machines extends APIResource {
|
|
676
|
+
backups = new MachinesBackups(this._client);
|
|
677
|
+
desktopSessions = new MachinesDesktopSessions(this._client);
|
|
678
|
+
terminalSessions = new MachinesTerminalSessions(this._client);
|
|
679
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/machines` (listVisibleProjectMachines) */
|
|
680
|
+
list(params = {}, options) {
|
|
681
|
+
return this._client._page(OP.listVisibleProjectMachines, {}, params, options);
|
|
682
|
+
}
|
|
683
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/machines/{machineID}/capabilities` (getMachineCapabilities) */
|
|
684
|
+
capabilities(machineId, params = {}, options) {
|
|
685
|
+
return this._client._request(OP.getMachineCapabilities, { machineID: machineId }, params, options);
|
|
686
|
+
}
|
|
687
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/machines/{machineID}/resume` (resumeMachine) */
|
|
688
|
+
resume(machineId, params = {}, options) {
|
|
689
|
+
return this._client._request(OP.resumeMachine, { machineID: machineId }, params, options);
|
|
690
|
+
}
|
|
691
|
+
/** `POST /orgs/{orgID}/projects/{projectID}/machines/{machineID}/restore` (restoreMachineFromBackup) */
|
|
692
|
+
restore(machineId, params = {}, options) {
|
|
693
|
+
return this._client._request(OP.restoreMachineFromBackup, { machineID: machineId }, params, options);
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
export class Projects extends APIResource {
|
|
697
|
+
/** `POST /orgs/{orgID}/projects` (createProject) */
|
|
698
|
+
create(params, options) {
|
|
699
|
+
return this._client._request(OP.createProject, {}, params, options);
|
|
700
|
+
}
|
|
701
|
+
/** `GET /orgs/{orgID}/projects` (listVisibleProjects) */
|
|
702
|
+
list(params = {}, options) {
|
|
703
|
+
return this._client._page(OP.listVisibleProjects, {}, params, options);
|
|
704
|
+
}
|
|
705
|
+
/** `DELETE /orgs/{orgID}/projects/{projectID}` (deleteProject) */
|
|
706
|
+
delete(projectId, params = {}, options) {
|
|
707
|
+
return this._client._request(OP.deleteProject, { projectID: projectId }, params, options);
|
|
708
|
+
}
|
|
709
|
+
/** `GET /orgs/{orgID}/projects/{projectID}/usage` (getProjectUsage) */
|
|
710
|
+
usage(params = {}, options) {
|
|
711
|
+
return this._client._request(OP.getProjectUsage, {}, params, options);
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
export class OrgsMembersProjects extends APIResource {
|
|
715
|
+
/** `GET /orgs/{orgID}/members/{userID}/projects` (listMemberProjectAccess) */
|
|
716
|
+
list(userId, params = {}, options) {
|
|
717
|
+
return this._client._request(OP.listMemberProjectAccess, { userID: userId }, params, options);
|
|
718
|
+
}
|
|
719
|
+
/** `PUT /orgs/{orgID}/members/{userID}/projects/{projectID}` (setMemberProjectAccess) */
|
|
720
|
+
set(userId, projectId, params, options) {
|
|
721
|
+
return this._client._request(OP.setMemberProjectAccess, { userID: userId, projectID: projectId }, params, options);
|
|
722
|
+
}
|
|
723
|
+
/** `DELETE /orgs/{orgID}/members/{userID}/projects/{projectID}` (removeMemberProjectAccess) */
|
|
724
|
+
remove(userId, projectId, params = {}, options) {
|
|
725
|
+
return this._client._request(OP.removeMemberProjectAccess, { userID: userId, projectID: projectId }, params, options);
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
export class OrgsMembers extends APIResource {
|
|
729
|
+
projects = new OrgsMembersProjects(this._client);
|
|
730
|
+
/** `GET /orgs/{orgID}/members` (listOrgMembers) */
|
|
731
|
+
list(params = {}, options) {
|
|
732
|
+
return this._client._page(OP.listOrgMembers, {}, params, options);
|
|
733
|
+
}
|
|
734
|
+
/** `PATCH /orgs/{orgID}/members/{userID}` (updateOrgMember) */
|
|
735
|
+
update(userId, params, options) {
|
|
736
|
+
return this._client._request(OP.updateOrgMember, { userID: userId }, params, options);
|
|
737
|
+
}
|
|
738
|
+
/** `DELETE /orgs/{orgID}/members/{userID}` (removeOrgMember) */
|
|
739
|
+
remove(userId, params = {}, options) {
|
|
740
|
+
return this._client._request(OP.removeOrgMember, { userID: userId }, params, options);
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
export class OrgsApiKeysProjects extends APIResource {
|
|
744
|
+
/** `GET /orgs/{orgID}/api-keys/{keyID}/projects` (listOrgAPIKeyProjectAccess) */
|
|
745
|
+
list(keyId, params = {}, options) {
|
|
746
|
+
return this._client._request(OP.listOrgAPIKeyProjectAccess, { keyID: keyId }, params, options);
|
|
747
|
+
}
|
|
748
|
+
/** `PUT /orgs/{orgID}/api-keys/{keyID}/projects/{projectID}` (setOrgAPIKeyProjectRole) */
|
|
749
|
+
set(keyId, projectId, params, options) {
|
|
750
|
+
return this._client._request(OP.setOrgAPIKeyProjectRole, { keyID: keyId, projectID: projectId }, params, options);
|
|
751
|
+
}
|
|
752
|
+
/** `DELETE /orgs/{orgID}/api-keys/{keyID}/projects/{projectID}` (removeOrgAPIKeyProjectRole) */
|
|
753
|
+
remove(keyId, projectId, params = {}, options) {
|
|
754
|
+
return this._client._request(OP.removeOrgAPIKeyProjectRole, { keyID: keyId, projectID: projectId }, params, options);
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
export class OrgsApiKeys extends APIResource {
|
|
758
|
+
projects = new OrgsApiKeysProjects(this._client);
|
|
759
|
+
/** `POST /orgs/{orgID}/api-keys` (createOrgAPIKey) */
|
|
760
|
+
create(params, options) {
|
|
761
|
+
return this._client._request(OP.createOrgAPIKey, {}, params, options);
|
|
762
|
+
}
|
|
763
|
+
/** `GET /orgs/{orgID}/api-keys` (listOrgAPIKeys) */
|
|
764
|
+
list(params = {}, options) {
|
|
765
|
+
return this._client._page(OP.listOrgAPIKeys, {}, params, options);
|
|
766
|
+
}
|
|
767
|
+
/** `GET /orgs/{orgID}/api-keys/{keyID}` (getOrgAPIKey) */
|
|
768
|
+
retrieve(keyId, params = {}, options) {
|
|
769
|
+
return this._client._request(OP.getOrgAPIKey, { keyID: keyId }, params, options);
|
|
770
|
+
}
|
|
771
|
+
/** `PATCH /orgs/{orgID}/api-keys/{keyID}` (updateOrgAPIKey) */
|
|
772
|
+
update(keyId, params = {}, options) {
|
|
773
|
+
return this._client._request(OP.updateOrgAPIKey, { keyID: keyId }, params, options);
|
|
774
|
+
}
|
|
775
|
+
/** `POST /orgs/{orgID}/api-keys/{keyID}/revoke` (revokeOrgAPIKey) */
|
|
776
|
+
revoke(keyId, params = {}, options) {
|
|
777
|
+
return this._client._request(OP.revokeOrgAPIKey, { keyID: keyId }, params, options);
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
export class OrgsInvitations extends APIResource {
|
|
781
|
+
/** `POST /orgs/{orgID}/invitations` (createOrgInvitation) */
|
|
782
|
+
create(params, options) {
|
|
783
|
+
return this._client._request(OP.createOrgInvitation, {}, params, options);
|
|
784
|
+
}
|
|
785
|
+
/** `GET /orgs/{orgID}/invitations` (listOrgInvitations) */
|
|
786
|
+
list(params = {}, options) {
|
|
787
|
+
return this._client._page(OP.listOrgInvitations, {}, params, options);
|
|
788
|
+
}
|
|
789
|
+
/** `DELETE /orgs/{orgID}/invitations/{invitationID}` (deleteOrgInvitation) */
|
|
790
|
+
delete(invitationId, params = {}, options) {
|
|
791
|
+
return this._client._request(OP.deleteOrgInvitation, { invitationID: invitationId }, params, options);
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
export class OrgsSkillsGrants extends APIResource {
|
|
795
|
+
/** `POST /orgs/{orgID}/skills/{skillID}/grants` (createSkillGrant) */
|
|
796
|
+
create(skillId, params, options) {
|
|
797
|
+
return this._client._request(OP.createSkillGrant, { skillID: skillId }, params, options);
|
|
798
|
+
}
|
|
799
|
+
/** `GET /orgs/{orgID}/skills/{skillID}/grants` (listSkillGrants) */
|
|
800
|
+
list(skillId, params = {}, options) {
|
|
801
|
+
return this._client._page(OP.listSkillGrants, { skillID: skillId }, params, options);
|
|
802
|
+
}
|
|
803
|
+
/** `DELETE /orgs/{orgID}/skills/{skillID}/grants/{grantID}` (deleteSkillGrant) */
|
|
804
|
+
delete(skillId, grantId, params = {}, options) {
|
|
805
|
+
return this._client._request(OP.deleteSkillGrant, { skillID: skillId, grantID: grantId }, params, options);
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
export class OrgsSkills extends APIResource {
|
|
809
|
+
grants = new OrgsSkillsGrants(this._client);
|
|
810
|
+
/** `POST /orgs/{orgID}/skills` (createSkill) */
|
|
811
|
+
create(params, options) {
|
|
812
|
+
return this._client._request(OP.createSkill, {}, params, options);
|
|
813
|
+
}
|
|
814
|
+
/** `GET /orgs/{orgID}/skills` (listSkills) */
|
|
815
|
+
list(params = {}, options) {
|
|
816
|
+
return this._client._page(OP.listSkills, {}, params, options);
|
|
817
|
+
}
|
|
818
|
+
/** `GET /orgs/{orgID}/skills/{skillID}` (getSkill) */
|
|
819
|
+
retrieve(skillId, params = {}, options) {
|
|
820
|
+
return this._client._request(OP.getSkill, { skillID: skillId }, params, options);
|
|
821
|
+
}
|
|
822
|
+
/** `POST /orgs/{orgID}/skills/{skillID}` (updateSkill) */
|
|
823
|
+
update(skillId, params, options) {
|
|
824
|
+
return this._client._request(OP.updateSkill, { skillID: skillId }, params, options);
|
|
825
|
+
}
|
|
826
|
+
/** `DELETE /orgs/{orgID}/skills/{skillID}` (deleteSkill) */
|
|
827
|
+
delete(skillId, params = {}, options) {
|
|
828
|
+
return this._client._request(OP.deleteSkill, { skillID: skillId }, params, options);
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
export class OrgsSecretsVersions extends APIResource {
|
|
832
|
+
/** `POST /orgs/{orgID}/secrets/{secretID}/versions` (createSecretVersion) */
|
|
833
|
+
create(secretId, params, options) {
|
|
834
|
+
return this._client._request(OP.createSecretVersion, { secretID: secretId }, params, options);
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
export class OrgsSecretsGrants extends APIResource {
|
|
838
|
+
/** `POST /orgs/{orgID}/secrets/{secretID}/grants` (createSecretGrant) */
|
|
839
|
+
create(secretId, params, options) {
|
|
840
|
+
return this._client._request(OP.createSecretGrant, { secretID: secretId }, params, options);
|
|
841
|
+
}
|
|
842
|
+
/** `GET /orgs/{orgID}/secrets/{secretID}/grants` (listSecretGrants) */
|
|
843
|
+
list(secretId, params = {}, options) {
|
|
844
|
+
return this._client._page(OP.listSecretGrants, { secretID: secretId }, params, options);
|
|
845
|
+
}
|
|
846
|
+
/** `DELETE /orgs/{orgID}/secrets/{secretID}/grants/{grantID}` (deleteSecretGrant) */
|
|
847
|
+
delete(secretId, grantId, params = {}, options) {
|
|
848
|
+
return this._client._request(OP.deleteSecretGrant, { secretID: secretId, grantID: grantId }, params, options);
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
export class OrgsSecrets extends APIResource {
|
|
852
|
+
versions = new OrgsSecretsVersions(this._client);
|
|
853
|
+
grants = new OrgsSecretsGrants(this._client);
|
|
854
|
+
/** `POST /orgs/{orgID}/secrets` (createSecret) */
|
|
855
|
+
create(params, options) {
|
|
856
|
+
return this._client._request(OP.createSecret, {}, params, options);
|
|
857
|
+
}
|
|
858
|
+
/** `GET /orgs/{orgID}/secrets` (listSecrets) */
|
|
859
|
+
list(params = {}, options) {
|
|
860
|
+
return this._client._page(OP.listSecrets, {}, params, options);
|
|
861
|
+
}
|
|
862
|
+
/** `GET /orgs/{orgID}/secrets/{secretID}` (getSecret) */
|
|
863
|
+
retrieve(secretId, params = {}, options) {
|
|
864
|
+
return this._client._request(OP.getSecret, { secretID: secretId }, params, options);
|
|
865
|
+
}
|
|
866
|
+
/** `PATCH /orgs/{orgID}/secrets/{secretID}` (updateSecret) */
|
|
867
|
+
update(secretId, params = {}, options) {
|
|
868
|
+
return this._client._request(OP.updateSecret, { secretID: secretId }, params, options);
|
|
869
|
+
}
|
|
870
|
+
/** `DELETE /orgs/{orgID}/secrets/{secretID}` (deleteSecret) */
|
|
871
|
+
delete(secretId, params = {}, options) {
|
|
872
|
+
return this._client._request(OP.deleteSecret, { secretID: secretId }, params, options);
|
|
873
|
+
}
|
|
874
|
+
/** `POST /orgs/{orgID}/secrets/mcp-oauth` (startSecretMCPOAuth) */
|
|
875
|
+
startMcpOAuth(params, options) {
|
|
876
|
+
return this._client._request(OP.startSecretMCPOAuth, {}, params, options);
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
export class OrgsMachinesDaemonTokens extends APIResource {
|
|
880
|
+
/** `POST /orgs/{orgID}/machines/{machineID}/daemon-tokens` (createBYOMachineDaemonToken) */
|
|
881
|
+
create(machineId, params = {}, options) {
|
|
882
|
+
return this._client._request(OP.createBYOMachineDaemonToken, { machineID: machineId }, params, options);
|
|
883
|
+
}
|
|
884
|
+
/** `GET /orgs/{orgID}/machines/{machineID}/daemon-tokens` (listBYOMachineDaemonTokens) */
|
|
885
|
+
list(machineId, params = {}, options) {
|
|
886
|
+
return this._client._page(OP.listBYOMachineDaemonTokens, { machineID: machineId }, params, options);
|
|
887
|
+
}
|
|
888
|
+
/** `POST /orgs/{orgID}/machines/{machineID}/daemon-tokens/{tokenID}/revoke` (revokeMachineDaemonToken) */
|
|
889
|
+
revoke(machineId, tokenId, params = {}, options) {
|
|
890
|
+
return this._client._request(OP.revokeMachineDaemonToken, { machineID: machineId, tokenID: tokenId }, params, options);
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
export class OrgsMachines extends APIResource {
|
|
894
|
+
daemonTokens = new OrgsMachinesDaemonTokens(this._client);
|
|
895
|
+
/** `POST /orgs/{orgID}/machines` (createMachine) */
|
|
896
|
+
create(params, options) {
|
|
897
|
+
return this._client._request(OP.createMachine, {}, params, options);
|
|
898
|
+
}
|
|
899
|
+
/** `GET /orgs/{orgID}/machines` (listVisibleMachines) */
|
|
900
|
+
list(params = {}, options) {
|
|
901
|
+
return this._client._page(OP.listVisibleMachines, {}, params, options);
|
|
902
|
+
}
|
|
903
|
+
/** `POST /orgs/{orgID}/machines/connect` (connectBYOMachine) */
|
|
904
|
+
connect(params, options) {
|
|
905
|
+
return this._client._request(OP.connectBYOMachine, {}, params, options);
|
|
906
|
+
}
|
|
907
|
+
/** `GET /orgs/{orgID}/machines/{machineID}` (getMachine) */
|
|
908
|
+
retrieve(machineId, params = {}, options) {
|
|
909
|
+
return this._client._request(OP.getMachine, { machineID: machineId }, params, options);
|
|
910
|
+
}
|
|
911
|
+
/** `PATCH /orgs/{orgID}/machines/{machineID}` (updateMachine) */
|
|
912
|
+
update(machineId, params = {}, options) {
|
|
913
|
+
return this._client._request(OP.updateMachine, { machineID: machineId }, params, options);
|
|
914
|
+
}
|
|
915
|
+
/** `DELETE /orgs/{orgID}/machines/{machineID}` (deleteMachine) */
|
|
916
|
+
delete(machineId, params = {}, options) {
|
|
917
|
+
return this._client._request(OP.deleteMachine, { machineID: machineId }, params, options);
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
export class OrgsMachinePools extends APIResource {
|
|
921
|
+
/** `POST /orgs/{orgID}/machine-pools` (createMachinePool) */
|
|
922
|
+
create(params, options) {
|
|
923
|
+
return this._client._request(OP.createMachinePool, {}, params, options);
|
|
924
|
+
}
|
|
925
|
+
/** `GET /orgs/{orgID}/machine-pools` (listMachinePools) */
|
|
926
|
+
list(params = {}, options) {
|
|
927
|
+
return this._client._page(OP.listMachinePools, {}, params, options);
|
|
928
|
+
}
|
|
929
|
+
/** `GET /orgs/{orgID}/machine-pools/{poolID}` (getMachinePool) */
|
|
930
|
+
retrieve(poolId, params = {}, options) {
|
|
931
|
+
return this._client._request(OP.getMachinePool, { poolID: poolId }, params, options);
|
|
932
|
+
}
|
|
933
|
+
/** `PUT /orgs/{orgID}/machine-pools/{poolID}` (updateMachinePool) */
|
|
934
|
+
update(poolId, params = {}, options) {
|
|
935
|
+
return this._client._request(OP.updateMachinePool, { poolID: poolId }, params, options);
|
|
936
|
+
}
|
|
937
|
+
/** `DELETE /orgs/{orgID}/machine-pools/{poolID}` (deleteMachinePool) */
|
|
938
|
+
delete(poolId, params = {}, options) {
|
|
939
|
+
return this._client._request(OP.deleteMachinePool, { poolID: poolId }, params, options);
|
|
940
|
+
}
|
|
941
|
+
/** `POST /orgs/{orgID}/machine-pools/check-connection` (checkMachinePoolConnection) */
|
|
942
|
+
checkConnection(params, options) {
|
|
943
|
+
return this._client._request(OP.checkMachinePoolConnection, {}, params, options);
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
export class OrgsModelProvidersModels extends APIResource {
|
|
947
|
+
/** `POST /orgs/{orgID}/model-provider-configs/{modelProviderConfigID}/models` (createConfiguredModel) */
|
|
948
|
+
create(modelProviderConfigId, params, options) {
|
|
949
|
+
return this._client._request(OP.createConfiguredModel, { modelProviderConfigID: modelProviderConfigId }, params, options);
|
|
950
|
+
}
|
|
951
|
+
/** `GET /orgs/{orgID}/model-provider-configs/{modelProviderConfigID}/models` (listConfiguredModels) */
|
|
952
|
+
list(modelProviderConfigId, params = {}, options) {
|
|
953
|
+
return this._client._page(OP.listConfiguredModels, { modelProviderConfigID: modelProviderConfigId }, params, options);
|
|
954
|
+
}
|
|
955
|
+
/** `PUT /orgs/{orgID}/model-provider-configs/{modelProviderConfigID}/models/{configuredModelID}` (updateConfiguredModel) */
|
|
956
|
+
update(modelProviderConfigId, configuredModelId, params = {}, options) {
|
|
957
|
+
return this._client._request(OP.updateConfiguredModel, { modelProviderConfigID: modelProviderConfigId, configuredModelID: configuredModelId }, params, options);
|
|
958
|
+
}
|
|
959
|
+
/** `DELETE /orgs/{orgID}/model-provider-configs/{modelProviderConfigID}/models/{configuredModelID}` (deleteConfiguredModel) */
|
|
960
|
+
delete(modelProviderConfigId, configuredModelId, params = {}, options) {
|
|
961
|
+
return this._client._request(OP.deleteConfiguredModel, { modelProviderConfigID: modelProviderConfigId, configuredModelID: configuredModelId }, params, options);
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
export class OrgsModelProviders extends APIResource {
|
|
965
|
+
models = new OrgsModelProvidersModels(this._client);
|
|
966
|
+
/** `POST /orgs/{orgID}/model-provider-configs` (createModelProviderConfig) */
|
|
967
|
+
create(params, options) {
|
|
968
|
+
return this._client._request(OP.createModelProviderConfig, {}, params, options);
|
|
969
|
+
}
|
|
970
|
+
/** `GET /orgs/{orgID}/model-provider-configs` (listModelProviderConfigs) */
|
|
971
|
+
list(params = {}, options) {
|
|
972
|
+
return this._client._page(OP.listModelProviderConfigs, {}, params, options);
|
|
973
|
+
}
|
|
974
|
+
/** `GET /orgs/{orgID}/model-provider-configs/{modelProviderConfigID}` (getModelProviderConfig) */
|
|
975
|
+
retrieve(modelProviderConfigId, params = {}, options) {
|
|
976
|
+
return this._client._request(OP.getModelProviderConfig, { modelProviderConfigID: modelProviderConfigId }, params, options);
|
|
977
|
+
}
|
|
978
|
+
/** `PUT /orgs/{orgID}/model-provider-configs/{modelProviderConfigID}` (updateModelProviderConfig) */
|
|
979
|
+
update(modelProviderConfigId, params = {}, options) {
|
|
980
|
+
return this._client._request(OP.updateModelProviderConfig, { modelProviderConfigID: modelProviderConfigId }, params, options);
|
|
981
|
+
}
|
|
982
|
+
/** `DELETE /orgs/{orgID}/model-provider-configs/{modelProviderConfigID}` (deleteModelProviderConfig) */
|
|
983
|
+
delete(modelProviderConfigId, params = {}, options) {
|
|
984
|
+
return this._client._request(OP.deleteModelProviderConfig, { modelProviderConfigID: modelProviderConfigId }, params, options);
|
|
985
|
+
}
|
|
986
|
+
/** `GET /orgs/{orgID}/model-provider-configs/{modelProviderConfigID}/model-catalog` (getModelCatalog) */
|
|
987
|
+
catalog(modelProviderConfigId, params = {}, options) {
|
|
988
|
+
return this._client._request(OP.getModelCatalog, { modelProviderConfigID: modelProviderConfigId }, params, options);
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
export class OrgsMemoryStores extends APIResource {
|
|
992
|
+
/** `GET /orgs/{orgID}/memory-stores` (listOrgMemoryStores) */
|
|
993
|
+
list(params = {}, options) {
|
|
994
|
+
return this._client._page(OP.listOrgMemoryStores, {}, params, options);
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
export class OrgsAgents extends APIResource {
|
|
998
|
+
/** `GET /orgs/{orgID}/agents` (listOrgAgents) */
|
|
999
|
+
list(params = {}, options) {
|
|
1000
|
+
return this._client._page(OP.listOrgAgents, {}, params, options);
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
export class OrgsAgentProfiles extends APIResource {
|
|
1004
|
+
/** `GET /orgs/{orgID}/agent-profiles` (listOrgAgentProfiles) */
|
|
1005
|
+
list(params = {}, options) {
|
|
1006
|
+
return this._client._page(OP.listOrgAgentProfiles, {}, params, options);
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
export class OrgsIntegrations extends APIResource {
|
|
1010
|
+
/** `GET /orgs/{orgID}/integrations` (listOrgIntegrations) */
|
|
1011
|
+
list(params = {}, options) {
|
|
1012
|
+
return this._client._page(OP.listOrgIntegrations, {}, params, options);
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
export class Orgs extends APIResource {
|
|
1016
|
+
members = new OrgsMembers(this._client);
|
|
1017
|
+
apiKeys = new OrgsApiKeys(this._client);
|
|
1018
|
+
invitations = new OrgsInvitations(this._client);
|
|
1019
|
+
skills = new OrgsSkills(this._client);
|
|
1020
|
+
secrets = new OrgsSecrets(this._client);
|
|
1021
|
+
machines = new OrgsMachines(this._client);
|
|
1022
|
+
machinePools = new OrgsMachinePools(this._client);
|
|
1023
|
+
modelProviders = new OrgsModelProviders(this._client);
|
|
1024
|
+
memoryStores = new OrgsMemoryStores(this._client);
|
|
1025
|
+
agents = new OrgsAgents(this._client);
|
|
1026
|
+
agentProfiles = new OrgsAgentProfiles(this._client);
|
|
1027
|
+
integrations = new OrgsIntegrations(this._client);
|
|
1028
|
+
/** `POST /orgs` (createOrganization) */
|
|
1029
|
+
create(params, options) {
|
|
1030
|
+
return this._client._request(OP.createOrganization, {}, params, options);
|
|
1031
|
+
}
|
|
1032
|
+
/** `GET /orgs` (listOrganizations) */
|
|
1033
|
+
list(params = {}, options) {
|
|
1034
|
+
return this._client._request(OP.listOrganizations, {}, params, options);
|
|
1035
|
+
}
|
|
1036
|
+
/** `DELETE /orgs/{orgID}` (deleteOrganization) */
|
|
1037
|
+
delete(orgId, params = {}, options) {
|
|
1038
|
+
return this._client._request(OP.deleteOrganization, { orgID: orgId }, params, options);
|
|
1039
|
+
}
|
|
1040
|
+
/** `GET /orgs/{orgID}/overview` (getOrgOverview) */
|
|
1041
|
+
overview(params = {}, options) {
|
|
1042
|
+
return this._client._request(OP.getOrgOverview, {}, params, options);
|
|
1043
|
+
}
|
|
1044
|
+
/** `GET /orgs/{orgID}/usage` (getOrgUsage) */
|
|
1045
|
+
usage(params = {}, options) {
|
|
1046
|
+
return this._client._request(OP.getOrgUsage, {}, params, options);
|
|
1047
|
+
}
|
|
1048
|
+
/** `GET /orgs/{orgID}/usage/timeseries` (getOrgUsageTimeseries) */
|
|
1049
|
+
usageTimeseries(params = {}, options) {
|
|
1050
|
+
return this._client._request(OP.getOrgUsageTimeseries, {}, params, options);
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
export class Me extends APIResource {
|
|
1054
|
+
/** `GET /me` (getCurrentUser) */
|
|
1055
|
+
retrieve(params = {}, options) {
|
|
1056
|
+
return this._client._request(OP.getCurrentUser, {}, params, options);
|
|
1057
|
+
}
|
|
1058
|
+
/** `DELETE /me` (deleteCurrentUser) */
|
|
1059
|
+
delete(params = {}, options) {
|
|
1060
|
+
return this._client._request(OP.deleteCurrentUser, {}, params, options);
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
export class PersonalAccessTokens extends APIResource {
|
|
1064
|
+
/** `POST /personal-access-tokens` (createPersonalAccessToken) */
|
|
1065
|
+
create(params, options) {
|
|
1066
|
+
return this._client._request(OP.createPersonalAccessToken, {}, params, options);
|
|
1067
|
+
}
|
|
1068
|
+
/** `GET /personal-access-tokens` (listPersonalAccessTokens) */
|
|
1069
|
+
list(params = {}, options) {
|
|
1070
|
+
return this._client._page(OP.listPersonalAccessTokens, {}, params, options);
|
|
1071
|
+
}
|
|
1072
|
+
/** `POST /personal-access-tokens/{tokenID}/revoke` (revokePersonalAccessToken) */
|
|
1073
|
+
revoke(tokenId, params = {}, options) {
|
|
1074
|
+
return this._client._request(OP.revokePersonalAccessToken, { tokenID: tokenId }, params, options);
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
export class Invitations extends APIResource {
|
|
1078
|
+
/** `GET /invitations` (listPendingInvitations) */
|
|
1079
|
+
list(params = {}, options) {
|
|
1080
|
+
return this._client._page(OP.listPendingInvitations, {}, params, options);
|
|
1081
|
+
}
|
|
1082
|
+
/** `POST /invitations/{invitationID}/accept` (acceptInvitation) */
|
|
1083
|
+
accept(invitationId, params = {}, options) {
|
|
1084
|
+
return this._client._request(OP.acceptInvitation, { invitationID: invitationId }, params, options);
|
|
1085
|
+
}
|
|
1086
|
+
/** `POST /invitations/{invitationID}/decline` (declineInvitation) */
|
|
1087
|
+
decline(invitationId, params = {}, options) {
|
|
1088
|
+
return this._client._request(OP.declineInvitation, { invitationID: invitationId }, params, options);
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
export class ToolCatalog extends APIResource {
|
|
1092
|
+
/** `GET /tool-catalog` (getToolCatalog) */
|
|
1093
|
+
retrieve(params = {}, options) {
|
|
1094
|
+
return this._client._request(OP.getToolCatalog, {}, params, options);
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
/** Client with the top-level resources of the rest API. */
|
|
1098
|
+
export class RestClientBase extends ClientCore {
|
|
1099
|
+
agents = new Agents(this);
|
|
1100
|
+
sessions = new Sessions(this);
|
|
1101
|
+
agentConfigs = new AgentConfigs(this);
|
|
1102
|
+
agentProfiles = new AgentProfiles(this);
|
|
1103
|
+
cronTriggers = new CronTriggers(this);
|
|
1104
|
+
eventWebhooks = new EventWebhooks(this);
|
|
1105
|
+
files = new Files(this);
|
|
1106
|
+
memoryStores = new MemoryStores(this);
|
|
1107
|
+
actors = new Actors(this);
|
|
1108
|
+
integrations = new Integrations(this);
|
|
1109
|
+
integrationDefinitions = new IntegrationDefinitions(this);
|
|
1110
|
+
machineGrants = new MachineGrants(this);
|
|
1111
|
+
machinePoolGrants = new MachinePoolGrants(this);
|
|
1112
|
+
modelGrants = new ModelGrants(this);
|
|
1113
|
+
secrets = new Secrets(this);
|
|
1114
|
+
skills = new Skills(this);
|
|
1115
|
+
mcpServers = new McpServers(this);
|
|
1116
|
+
machines = new Machines(this);
|
|
1117
|
+
projects = new Projects(this);
|
|
1118
|
+
orgs = new Orgs(this);
|
|
1119
|
+
me = new Me(this);
|
|
1120
|
+
personalAccessTokens = new PersonalAccessTokens(this);
|
|
1121
|
+
invitations = new Invitations(this);
|
|
1122
|
+
toolCatalog = new ToolCatalog(this);
|
|
1123
|
+
}
|
|
1124
|
+
//# sourceMappingURL=rest-resources.js.map
|