@ravi-os/sdk 0.261009.1 → 0.261128.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 +11 -2
- package/dist/channel-backend.d.ts +241 -2
- package/dist/channel-backend.d.ts.map +1 -1
- package/dist/channel-backend.js +286 -5
- package/dist/channel-backend.js.map +1 -1
- package/dist/channel-runtime-events.d.ts +16 -0
- package/dist/channel-runtime-events.d.ts.map +1 -1
- package/dist/channel-runtime-events.js +1 -0
- package/dist/channel-runtime-events.js.map +1 -1
- package/dist/client.d.ts +1370 -165
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +1814 -212
- package/dist/client.js.map +1 -1
- package/dist/diagnostic-redactor.d.ts +12 -0
- package/dist/diagnostic-redactor.d.ts.map +1 -0
- package/dist/diagnostic-redactor.js +207 -0
- package/dist/diagnostic-redactor.js.map +1 -0
- package/dist/errors.d.ts +23 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +67 -24
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/schemas.d.ts +92264 -52988
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +121638 -68393
- package/dist/schemas.js.map +1 -1
- package/dist/streaming.generated.d.ts +103 -0
- package/dist/streaming.generated.d.ts.map +1 -1
- package/dist/streaming.generated.js +18 -0
- package/dist/streaming.generated.js.map +1 -1
- package/dist/types.d.ts +10107 -847
- package/dist/types.d.ts.map +1 -1
- package/dist/version.d.ts +2 -2
- package/dist/version.js +2 -2
- package/package.json +14 -1
- package/platform/sha256.d.ts +2 -0
- package/platform/sha256.node.js +10 -0
- package/platform/sha256.web.js +8 -0
package/dist/client.js
CHANGED
|
@@ -14,6 +14,24 @@ export class RaviClient {
|
|
|
14
14
|
constructor(transport) {
|
|
15
15
|
this.transport = transport;
|
|
16
16
|
}
|
|
17
|
+
access = {
|
|
18
|
+
/** Ask the managers of a Ravi Page for access */
|
|
19
|
+
request: async (url, options) => {
|
|
20
|
+
return this.transport.call({
|
|
21
|
+
groupSegments: ["access"],
|
|
22
|
+
command: "request",
|
|
23
|
+
body: { url, ...(options ?? {}) },
|
|
24
|
+
});
|
|
25
|
+
},
|
|
26
|
+
/** Show an access request's status */
|
|
27
|
+
status: async (requestId, options) => {
|
|
28
|
+
return this.transport.call({
|
|
29
|
+
groupSegments: ["access"],
|
|
30
|
+
command: "status",
|
|
31
|
+
body: { requestId, ...(options ?? {}) },
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
};
|
|
17
35
|
adapters = {
|
|
18
36
|
/** List session adapters with health and bind state */
|
|
19
37
|
list: async (options) => {
|
|
@@ -32,7 +50,81 @@ export class RaviClient {
|
|
|
32
50
|
});
|
|
33
51
|
}
|
|
34
52
|
};
|
|
53
|
+
agenda = {
|
|
54
|
+
/** Store the meeting's briefing (Markdown), shown on its Console page */
|
|
55
|
+
briefing: async (eventId, options) => {
|
|
56
|
+
return this.transport.call({
|
|
57
|
+
groupSegments: ["agenda"],
|
|
58
|
+
command: "briefing",
|
|
59
|
+
body: { eventId, ...(options ?? {}) },
|
|
60
|
+
});
|
|
61
|
+
},
|
|
62
|
+
/** List the next meetings on the operator's calendar */
|
|
63
|
+
list: async (options) => {
|
|
64
|
+
return this.transport.call({
|
|
65
|
+
groupSegments: ["agenda"],
|
|
66
|
+
command: "list",
|
|
67
|
+
body: { ...(options ?? {}) },
|
|
68
|
+
});
|
|
69
|
+
},
|
|
70
|
+
/** Record this meeting (the Console sends the bot at the start) */
|
|
71
|
+
record: async (eventId, options) => {
|
|
72
|
+
return this.transport.call({
|
|
73
|
+
groupSegments: ["agenda"],
|
|
74
|
+
command: "record",
|
|
75
|
+
body: { eventId, ...(options ?? {}) },
|
|
76
|
+
});
|
|
77
|
+
},
|
|
78
|
+
/** Change how a calendar is used: sync, recording, project, briefing */
|
|
79
|
+
settings: async (options) => {
|
|
80
|
+
return this.transport.call({
|
|
81
|
+
groupSegments: ["agenda"],
|
|
82
|
+
command: "settings",
|
|
83
|
+
body: { ...(options ?? {}) },
|
|
84
|
+
});
|
|
85
|
+
},
|
|
86
|
+
/** Show one calendar event with its briefing */
|
|
87
|
+
show: async (eventId) => {
|
|
88
|
+
return this.transport.call({
|
|
89
|
+
groupSegments: ["agenda"],
|
|
90
|
+
command: "show",
|
|
91
|
+
body: { eventId },
|
|
92
|
+
});
|
|
93
|
+
},
|
|
94
|
+
/** Do not record this meeting */
|
|
95
|
+
skip: async (eventId) => {
|
|
96
|
+
return this.transport.call({
|
|
97
|
+
groupSegments: ["agenda"],
|
|
98
|
+
command: "skip",
|
|
99
|
+
body: { eventId },
|
|
100
|
+
});
|
|
101
|
+
},
|
|
102
|
+
/** Show the calendar connections, their settings and the projects */
|
|
103
|
+
status: async () => {
|
|
104
|
+
return this.transport.call({
|
|
105
|
+
groupSegments: ["agenda"],
|
|
106
|
+
command: "status",
|
|
107
|
+
body: {},
|
|
108
|
+
});
|
|
109
|
+
},
|
|
110
|
+
/** Clear the record or skip decision of this meeting */
|
|
111
|
+
undo: async (eventId, options) => {
|
|
112
|
+
return this.transport.call({
|
|
113
|
+
groupSegments: ["agenda"],
|
|
114
|
+
command: "undo",
|
|
115
|
+
body: { eventId, ...(options ?? {}) },
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
};
|
|
35
119
|
agents = {
|
|
120
|
+
/** Ask an agent on another Ravi machine of the organization. Requires --execute. */
|
|
121
|
+
ask: async (target, message, options) => {
|
|
122
|
+
return this.transport.call({
|
|
123
|
+
groupSegments: ["agents"],
|
|
124
|
+
command: "ask",
|
|
125
|
+
body: { target, message, ...(options ?? {}) },
|
|
126
|
+
});
|
|
127
|
+
},
|
|
36
128
|
/** Create a new agent */
|
|
37
129
|
create: async (id, cwd, options) => {
|
|
38
130
|
return this.transport.call({
|
|
@@ -65,6 +157,22 @@ export class RaviClient {
|
|
|
65
157
|
body: { id, ...(options ?? {}) },
|
|
66
158
|
});
|
|
67
159
|
},
|
|
160
|
+
/** List agents on the organization's other Ravi machines that you can ask */
|
|
161
|
+
directory: async (query, options) => {
|
|
162
|
+
return this.transport.call({
|
|
163
|
+
groupSegments: ["agents"],
|
|
164
|
+
command: "directory",
|
|
165
|
+
body: { query, ...(options ?? {}) },
|
|
166
|
+
});
|
|
167
|
+
},
|
|
168
|
+
/** Create a local agent from a Library agent definition. Requires --execute when it raises the permission profile or grants skills. */
|
|
169
|
+
install: async (ref, options) => {
|
|
170
|
+
return this.transport.call({
|
|
171
|
+
groupSegments: ["agents"],
|
|
172
|
+
command: "install",
|
|
173
|
+
body: { ref, ...(options ?? {}) },
|
|
174
|
+
});
|
|
175
|
+
},
|
|
68
176
|
/** List all agents */
|
|
69
177
|
list: async (options) => {
|
|
70
178
|
return this.transport.call({
|
|
@@ -73,6 +181,14 @@ export class RaviClient {
|
|
|
73
181
|
body: { ...(options ?? {}) },
|
|
74
182
|
});
|
|
75
183
|
},
|
|
184
|
+
/** Show or set whether an agent appears in the organization's directory (on requires --execute) */
|
|
185
|
+
listing: async (id, state, options) => {
|
|
186
|
+
return this.transport.call({
|
|
187
|
+
groupSegments: ["agents"],
|
|
188
|
+
command: "listing",
|
|
189
|
+
body: { id, state, ...(options ?? {}) },
|
|
190
|
+
});
|
|
191
|
+
},
|
|
76
192
|
/** Set or inspect an agent's generic model-broker profile */
|
|
77
193
|
modelBroker: async (id, options) => {
|
|
78
194
|
return this.transport.call({
|
|
@@ -89,6 +205,40 @@ export class RaviClient {
|
|
|
89
205
|
body: { id, profile, ...(options ?? {}) },
|
|
90
206
|
});
|
|
91
207
|
},
|
|
208
|
+
/** Publish a local agent as a Library agent definition for the organization or one project (or --propose it). Requires --execute. */
|
|
209
|
+
publish: async (id, options) => {
|
|
210
|
+
return this.transport.call({
|
|
211
|
+
groupSegments: ["agents"],
|
|
212
|
+
command: "publish",
|
|
213
|
+
body: { id, ...(options ?? {}) },
|
|
214
|
+
});
|
|
215
|
+
},
|
|
216
|
+
requests: {
|
|
217
|
+
/** Cancel a request the asked agent has not taken yet */
|
|
218
|
+
cancel: async (id) => {
|
|
219
|
+
return this.transport.call({
|
|
220
|
+
groupSegments: ["agents", "requests"],
|
|
221
|
+
command: "cancel",
|
|
222
|
+
body: { id },
|
|
223
|
+
});
|
|
224
|
+
},
|
|
225
|
+
/** List this machine's requests (sent by default) */
|
|
226
|
+
list: async (options) => {
|
|
227
|
+
return this.transport.call({
|
|
228
|
+
groupSegments: ["agents", "requests"],
|
|
229
|
+
command: "list",
|
|
230
|
+
body: { ...(options ?? {}) },
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
/** Show or set whether an agent answers requests from other machines (on requires --execute) */
|
|
235
|
+
requestsCommand: async (id, state, options) => {
|
|
236
|
+
return this.transport.call({
|
|
237
|
+
groupSegments: ["agents"],
|
|
238
|
+
command: "requests",
|
|
239
|
+
body: { id, state, ...(options ?? {}) },
|
|
240
|
+
});
|
|
241
|
+
},
|
|
92
242
|
/** Reset agent session */
|
|
93
243
|
reset: async (id, nameOrKey, options) => {
|
|
94
244
|
return this.transport.call({
|
|
@@ -97,6 +247,14 @@ export class RaviClient {
|
|
|
97
247
|
body: { id, nameOrKey, ...(options ?? {}) },
|
|
98
248
|
});
|
|
99
249
|
},
|
|
250
|
+
/** Search the Console Library for agent definitions to install */
|
|
251
|
+
search: async (query, options) => {
|
|
252
|
+
return this.transport.call({
|
|
253
|
+
groupSegments: ["agents"],
|
|
254
|
+
command: "search",
|
|
255
|
+
body: { query, ...(options ?? {}) },
|
|
256
|
+
});
|
|
257
|
+
},
|
|
100
258
|
/** Show agent session status */
|
|
101
259
|
session: async (id) => {
|
|
102
260
|
return this.transport.call({
|
|
@@ -136,6 +294,14 @@ export class RaviClient {
|
|
|
136
294
|
command: "sync-instructions",
|
|
137
295
|
body: { ...(options ?? {}) },
|
|
138
296
|
});
|
|
297
|
+
},
|
|
298
|
+
/** Update an agent installed from the Library to the latest version. Requires --execute when it raises the profile or grants skills. */
|
|
299
|
+
update: async (id, options) => {
|
|
300
|
+
return this.transport.call({
|
|
301
|
+
groupSegments: ["agents"],
|
|
302
|
+
command: "update",
|
|
303
|
+
body: { id, ...(options ?? {}) },
|
|
304
|
+
});
|
|
139
305
|
}
|
|
140
306
|
};
|
|
141
307
|
apps = {
|
|
@@ -187,6 +353,14 @@ export class RaviClient {
|
|
|
187
353
|
body: { id },
|
|
188
354
|
});
|
|
189
355
|
},
|
|
356
|
+
/** Fetch and verify the signed official index, keys and block list */
|
|
357
|
+
refresh: async () => {
|
|
358
|
+
return this.transport.call({
|
|
359
|
+
groupSegments: ["apps"],
|
|
360
|
+
command: "refresh",
|
|
361
|
+
body: {},
|
|
362
|
+
});
|
|
363
|
+
},
|
|
190
364
|
/** Run a Ravi app operation through the runtime app router */
|
|
191
365
|
run: async (id, operation, args, options) => {
|
|
192
366
|
return this.transport.call({
|
|
@@ -203,6 +377,14 @@ export class RaviClient {
|
|
|
203
377
|
body: { id, ...(options ?? {}) },
|
|
204
378
|
});
|
|
205
379
|
},
|
|
380
|
+
/** Search the official Ravi Apps index */
|
|
381
|
+
search: async (query, options) => {
|
|
382
|
+
return this.transport.call({
|
|
383
|
+
groupSegments: ["apps"],
|
|
384
|
+
command: "search",
|
|
385
|
+
body: { query, ...(options ?? {}) },
|
|
386
|
+
});
|
|
387
|
+
},
|
|
206
388
|
/** Show a Ravi app manifest */
|
|
207
389
|
show: async (id) => {
|
|
208
390
|
return this.transport.call({
|
|
@@ -210,6 +392,14 @@ export class RaviClient {
|
|
|
210
392
|
command: "show",
|
|
211
393
|
body: { id },
|
|
212
394
|
});
|
|
395
|
+
},
|
|
396
|
+
/** Check installed store apps against their receipts and the block list */
|
|
397
|
+
verify: async (id) => {
|
|
398
|
+
return this.transport.call({
|
|
399
|
+
groupSegments: ["apps"],
|
|
400
|
+
command: "verify",
|
|
401
|
+
body: { id },
|
|
402
|
+
});
|
|
213
403
|
}
|
|
214
404
|
};
|
|
215
405
|
artifacts = {
|
|
@@ -522,6 +712,14 @@ export class RaviClient {
|
|
|
522
712
|
body: { base, ...(options ?? {}) },
|
|
523
713
|
});
|
|
524
714
|
},
|
|
715
|
+
/** Approve a row on an approval property (dry-run unless --execute) */
|
|
716
|
+
approve: async (base, row, prop, options) => {
|
|
717
|
+
return this.transport.call({
|
|
718
|
+
groupSegments: ["bases", "rows"],
|
|
719
|
+
command: "approve",
|
|
720
|
+
body: { base, row, prop, ...(options ?? {}) },
|
|
721
|
+
});
|
|
722
|
+
},
|
|
525
723
|
/** Archive a row (restorable) */
|
|
526
724
|
archive: async (base, row, options) => {
|
|
527
725
|
return this.transport.call({
|
|
@@ -538,6 +736,14 @@ export class RaviClient {
|
|
|
538
736
|
body: { base, ...(options ?? {}) },
|
|
539
737
|
});
|
|
540
738
|
},
|
|
739
|
+
/** Store an agent column's value (or error) for the inputs you read */
|
|
740
|
+
fill: async (base, row, prop, options) => {
|
|
741
|
+
return this.transport.call({
|
|
742
|
+
groupSegments: ["bases", "rows"],
|
|
743
|
+
command: "fill",
|
|
744
|
+
body: { base, row, prop, ...(options ?? {}) },
|
|
745
|
+
});
|
|
746
|
+
},
|
|
541
747
|
/** Read one row (with its body) */
|
|
542
748
|
get: async (base, row, options) => {
|
|
543
749
|
return this.transport.call({
|
|
@@ -578,6 +784,30 @@ export class RaviClient {
|
|
|
578
784
|
body: { base, ...(options ?? {}) },
|
|
579
785
|
});
|
|
580
786
|
},
|
|
787
|
+
/** Reject a row on an approval property (dry-run unless --execute) */
|
|
788
|
+
reject: async (base, row, prop, options) => {
|
|
789
|
+
return this.transport.call({
|
|
790
|
+
groupSegments: ["bases", "rows"],
|
|
791
|
+
command: "reject",
|
|
792
|
+
body: { base, row, prop, ...(options ?? {}) },
|
|
793
|
+
});
|
|
794
|
+
},
|
|
795
|
+
/** Ask for a decision on an approval property (state pending) */
|
|
796
|
+
requestApproval: async (base, row, prop, options) => {
|
|
797
|
+
return this.transport.call({
|
|
798
|
+
groupSegments: ["bases", "rows"],
|
|
799
|
+
command: "request-approval",
|
|
800
|
+
body: { base, row, prop, ...(options ?? {}) },
|
|
801
|
+
});
|
|
802
|
+
},
|
|
803
|
+
/** Ask the agent again for an agent column (state pending) */
|
|
804
|
+
rerun: async (base, row, prop, options) => {
|
|
805
|
+
return this.transport.call({
|
|
806
|
+
groupSegments: ["bases", "rows"],
|
|
807
|
+
command: "rerun",
|
|
808
|
+
body: { base, row, prop, ...(options ?? {}) },
|
|
809
|
+
});
|
|
810
|
+
},
|
|
581
811
|
/** Restore an archived row (direct writers) */
|
|
582
812
|
restore: async (base, row, options) => {
|
|
583
813
|
return this.transport.call({
|
|
@@ -603,7 +833,7 @@ export class RaviClient {
|
|
|
603
833
|
body: { base, ...(options ?? {}) },
|
|
604
834
|
});
|
|
605
835
|
},
|
|
606
|
-
/** Deliver this base's row events to this installation's inbox */
|
|
836
|
+
/** Deliver this base's row events to this installation's inbox, optionally filtered and with a trigger */
|
|
607
837
|
subscribe: async (base, options) => {
|
|
608
838
|
return this.transport.call({
|
|
609
839
|
groupSegments: ["bases"],
|
|
@@ -644,6 +874,14 @@ export class RaviClient {
|
|
|
644
874
|
body: { base, view, ...(options ?? {}) },
|
|
645
875
|
});
|
|
646
876
|
},
|
|
877
|
+
/** Bind a Library widget to a board, list, gallery or calendar view (layout.widget), or none to unbind */
|
|
878
|
+
bind: async (base, view, widget, options) => {
|
|
879
|
+
return this.transport.call({
|
|
880
|
+
groupSegments: ["bases", "views"],
|
|
881
|
+
command: "bind",
|
|
882
|
+
body: { base, view, widget, ...(options ?? {}) },
|
|
883
|
+
});
|
|
884
|
+
},
|
|
647
885
|
/** Create a view from a JSON spec (columns, query, layout, access) */
|
|
648
886
|
create: async (base, options) => {
|
|
649
887
|
return this.transport.call({
|
|
@@ -668,6 +906,14 @@ export class RaviClient {
|
|
|
668
906
|
body: { base, view, ...(options ?? {}) },
|
|
669
907
|
});
|
|
670
908
|
},
|
|
909
|
+
/** Give a Ravi Pages site (every route of its host) read, and optionally write, access to a view */
|
|
910
|
+
share: async (base, view, options) => {
|
|
911
|
+
return this.transport.call({
|
|
912
|
+
groupSegments: ["bases", "views"],
|
|
913
|
+
command: "share",
|
|
914
|
+
body: { base, view, ...(options ?? {}) },
|
|
915
|
+
});
|
|
916
|
+
},
|
|
671
917
|
/** Describe a view: columns, layout, your capabilities (and policy for managers) */
|
|
672
918
|
show: async (base, view, options) => {
|
|
673
919
|
return this.transport.call({
|
|
@@ -1075,8 +1321,130 @@ export class RaviClient {
|
|
|
1075
1321
|
}
|
|
1076
1322
|
};
|
|
1077
1323
|
cloud = {
|
|
1324
|
+
agents: {
|
|
1325
|
+
/** Approve a cloud agent's capability manifest (owner or admin). Requires --execute. */
|
|
1326
|
+
approve: async (agent, options) => {
|
|
1327
|
+
return this.transport.call({
|
|
1328
|
+
groupSegments: ["cloud", "agents"],
|
|
1329
|
+
command: "approve",
|
|
1330
|
+
body: { agent, ...(options ?? {}) },
|
|
1331
|
+
});
|
|
1332
|
+
},
|
|
1333
|
+
/** Archive a cloud agent (no new runs; past runs stay readable) */
|
|
1334
|
+
archive: async (agent, options) => {
|
|
1335
|
+
return this.transport.call({
|
|
1336
|
+
groupSegments: ["cloud", "agents"],
|
|
1337
|
+
command: "archive",
|
|
1338
|
+
body: { agent, ...(options ?? {}) },
|
|
1339
|
+
});
|
|
1340
|
+
},
|
|
1341
|
+
/** Set a cloud agent's monthly cap in US$ (or none). Requires --execute when raising it. */
|
|
1342
|
+
cap: async (agent, usd, options) => {
|
|
1343
|
+
return this.transport.call({
|
|
1344
|
+
groupSegments: ["cloud", "agents"],
|
|
1345
|
+
command: "cap",
|
|
1346
|
+
body: { agent, usd, ...(options ?? {}) },
|
|
1347
|
+
});
|
|
1348
|
+
},
|
|
1349
|
+
/** Deploy a Library agent to the cloud for a project. Requires --execute. */
|
|
1350
|
+
deploy: async (agent, options) => {
|
|
1351
|
+
return this.transport.call({
|
|
1352
|
+
groupSegments: ["cloud", "agents"],
|
|
1353
|
+
command: "deploy",
|
|
1354
|
+
body: { agent, ...(options ?? {}) },
|
|
1355
|
+
});
|
|
1356
|
+
},
|
|
1357
|
+
/** List the cloud agents of a Console project */
|
|
1358
|
+
list: async (options) => {
|
|
1359
|
+
return this.transport.call({
|
|
1360
|
+
groupSegments: ["cloud", "agents"],
|
|
1361
|
+
command: "list",
|
|
1362
|
+
body: { ...(options ?? {}) },
|
|
1363
|
+
});
|
|
1364
|
+
},
|
|
1365
|
+
/** Archive a cloud agent's memory stores (its runs start with empty memory). Requires --execute. */
|
|
1366
|
+
memoryReset: async (agent, options) => {
|
|
1367
|
+
return this.transport.call({
|
|
1368
|
+
groupSegments: ["cloud", "agents"],
|
|
1369
|
+
command: "memory-reset",
|
|
1370
|
+
body: { agent, ...(options ?? {}) },
|
|
1371
|
+
});
|
|
1372
|
+
},
|
|
1373
|
+
/** Show one cloud agent (id, Library slug or name) */
|
|
1374
|
+
show: async (agent, options) => {
|
|
1375
|
+
return this.transport.call({
|
|
1376
|
+
groupSegments: ["cloud", "agents"],
|
|
1377
|
+
command: "show",
|
|
1378
|
+
body: { agent, ...(options ?? {}) },
|
|
1379
|
+
});
|
|
1380
|
+
}
|
|
1381
|
+
},
|
|
1382
|
+
catalog: {
|
|
1383
|
+
/** Install a catalog agent in a project. Requires --execute. */
|
|
1384
|
+
install: async (entry, options) => {
|
|
1385
|
+
return this.transport.call({
|
|
1386
|
+
groupSegments: ["cloud", "catalog"],
|
|
1387
|
+
command: "install",
|
|
1388
|
+
body: { entry, ...(options ?? {}) },
|
|
1389
|
+
});
|
|
1390
|
+
},
|
|
1391
|
+
/** List the catalog's agents and packs */
|
|
1392
|
+
list: async (options) => {
|
|
1393
|
+
return this.transport.call({
|
|
1394
|
+
groupSegments: ["cloud", "catalog"],
|
|
1395
|
+
command: "list",
|
|
1396
|
+
body: { ...(options ?? {}) },
|
|
1397
|
+
});
|
|
1398
|
+
},
|
|
1399
|
+
packs: {
|
|
1400
|
+
/** Install every agent of a catalog pack in a project. Requires --execute. */
|
|
1401
|
+
install: async (pack, options) => {
|
|
1402
|
+
return this.transport.call({
|
|
1403
|
+
groupSegments: ["cloud", "catalog", "packs"],
|
|
1404
|
+
command: "install",
|
|
1405
|
+
body: { pack, ...(options ?? {}) },
|
|
1406
|
+
});
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
},
|
|
1410
|
+
credits: {
|
|
1411
|
+
/** Show the credits balance, this month's spend and the latest entries */
|
|
1412
|
+
show: async () => {
|
|
1413
|
+
return this.transport.call({
|
|
1414
|
+
groupSegments: ["cloud", "credits"],
|
|
1415
|
+
command: "show",
|
|
1416
|
+
body: {},
|
|
1417
|
+
});
|
|
1418
|
+
},
|
|
1419
|
+
/** Add Ravi credits with a Pix charge (prints the link and code). Requires --execute. */
|
|
1420
|
+
topup: async (amount, options) => {
|
|
1421
|
+
return this.transport.call({
|
|
1422
|
+
groupSegments: ["cloud", "credits"],
|
|
1423
|
+
command: "topup",
|
|
1424
|
+
body: { amount, ...(options ?? {}) },
|
|
1425
|
+
});
|
|
1426
|
+
}
|
|
1427
|
+
},
|
|
1428
|
+
key: {
|
|
1429
|
+
/** Remove the organization's cloud agents key (runs stop starting) */
|
|
1430
|
+
remove: async () => {
|
|
1431
|
+
return this.transport.call({
|
|
1432
|
+
groupSegments: ["cloud", "key"],
|
|
1433
|
+
command: "remove",
|
|
1434
|
+
body: {},
|
|
1435
|
+
});
|
|
1436
|
+
},
|
|
1437
|
+
/** Show whether the organization has a cloud agents key, and this month's cost */
|
|
1438
|
+
status: async () => {
|
|
1439
|
+
return this.transport.call({
|
|
1440
|
+
groupSegments: ["cloud", "key"],
|
|
1441
|
+
command: "status",
|
|
1442
|
+
body: {},
|
|
1443
|
+
});
|
|
1444
|
+
}
|
|
1445
|
+
},
|
|
1078
1446
|
projects: {
|
|
1079
|
-
/** Create a
|
|
1447
|
+
/** Create a project in Console */
|
|
1080
1448
|
create: async (slug, options) => {
|
|
1081
1449
|
return this.transport.call({
|
|
1082
1450
|
groupSegments: ["cloud", "projects"],
|
|
@@ -1084,7 +1452,7 @@ export class RaviClient {
|
|
|
1084
1452
|
body: { slug, ...(options ?? {}) },
|
|
1085
1453
|
});
|
|
1086
1454
|
},
|
|
1087
|
-
/** List
|
|
1455
|
+
/** List the organization's projects in Console */
|
|
1088
1456
|
list: async (options) => {
|
|
1089
1457
|
return this.transport.call({
|
|
1090
1458
|
groupSegments: ["cloud", "projects"],
|
|
@@ -1093,6 +1461,114 @@ export class RaviClient {
|
|
|
1093
1461
|
});
|
|
1094
1462
|
}
|
|
1095
1463
|
},
|
|
1464
|
+
runs: {
|
|
1465
|
+
/** Answer a question a cloud run asked its person (only that person can). Requires --execute. */
|
|
1466
|
+
answer: async (run, question, text, options) => {
|
|
1467
|
+
return this.transport.call({
|
|
1468
|
+
groupSegments: ["cloud", "runs"],
|
|
1469
|
+
command: "answer",
|
|
1470
|
+
body: { run, question, text, ...(options ?? {}) },
|
|
1471
|
+
});
|
|
1472
|
+
},
|
|
1473
|
+
/** Approve a write a cloud run is waiting on (only the run's person can). Requires --execute. */
|
|
1474
|
+
approve: async (run, approval, options) => {
|
|
1475
|
+
return this.transport.call({
|
|
1476
|
+
groupSegments: ["cloud", "runs"],
|
|
1477
|
+
command: "approve",
|
|
1478
|
+
body: { run, approval, ...(options ?? {}) },
|
|
1479
|
+
});
|
|
1480
|
+
},
|
|
1481
|
+
/** Deny a write a cloud run is waiting on (applies at once) */
|
|
1482
|
+
deny: async (run, approval, options) => {
|
|
1483
|
+
return this.transport.call({
|
|
1484
|
+
groupSegments: ["cloud", "runs"],
|
|
1485
|
+
command: "deny",
|
|
1486
|
+
body: { run, approval, ...(options ?? {}) },
|
|
1487
|
+
});
|
|
1488
|
+
},
|
|
1489
|
+
/** List cloud runs of a Console project */
|
|
1490
|
+
list: async (options) => {
|
|
1491
|
+
return this.transport.call({
|
|
1492
|
+
groupSegments: ["cloud", "runs"],
|
|
1493
|
+
command: "list",
|
|
1494
|
+
body: { ...(options ?? {}) },
|
|
1495
|
+
});
|
|
1496
|
+
},
|
|
1497
|
+
/** List a cloud run's output files, or download them with --download <dir> */
|
|
1498
|
+
outputs: async (run, options) => {
|
|
1499
|
+
return this.transport.call({
|
|
1500
|
+
groupSegments: ["cloud", "runs"],
|
|
1501
|
+
command: "outputs",
|
|
1502
|
+
body: { run, ...(options ?? {}) },
|
|
1503
|
+
});
|
|
1504
|
+
},
|
|
1505
|
+
/** Send a follow-up message to a cloud run. Requires --execute. */
|
|
1506
|
+
reply: async (run, text, options) => {
|
|
1507
|
+
return this.transport.call({
|
|
1508
|
+
groupSegments: ["cloud", "runs"],
|
|
1509
|
+
command: "reply",
|
|
1510
|
+
body: { run, text, ...(options ?? {}) },
|
|
1511
|
+
});
|
|
1512
|
+
},
|
|
1513
|
+
/** Show a cloud run: status, cost, approvals, outputs and result */
|
|
1514
|
+
show: async (run) => {
|
|
1515
|
+
return this.transport.call({
|
|
1516
|
+
groupSegments: ["cloud", "runs"],
|
|
1517
|
+
command: "show",
|
|
1518
|
+
body: { run },
|
|
1519
|
+
});
|
|
1520
|
+
},
|
|
1521
|
+
/** Start a paid cloud run of a Library agent. Requires --execute. */
|
|
1522
|
+
start: async (agent, prompt, options) => {
|
|
1523
|
+
return this.transport.call({
|
|
1524
|
+
groupSegments: ["cloud", "runs"],
|
|
1525
|
+
command: "start",
|
|
1526
|
+
body: { agent, prompt, ...(options ?? {}) },
|
|
1527
|
+
});
|
|
1528
|
+
},
|
|
1529
|
+
/** Stop a cloud run now (applies at once) */
|
|
1530
|
+
stop: async (run) => {
|
|
1531
|
+
return this.transport.call({
|
|
1532
|
+
groupSegments: ["cloud", "runs"],
|
|
1533
|
+
command: "stop",
|
|
1534
|
+
body: { run },
|
|
1535
|
+
});
|
|
1536
|
+
}
|
|
1537
|
+
},
|
|
1538
|
+
schedules: {
|
|
1539
|
+
/** Schedule cloud runs of an agent on a cron. Requires --execute unless --disabled. */
|
|
1540
|
+
add: async (agent, options) => {
|
|
1541
|
+
return this.transport.call({
|
|
1542
|
+
groupSegments: ["cloud", "schedules"],
|
|
1543
|
+
command: "add",
|
|
1544
|
+
body: { agent, ...(options ?? {}) },
|
|
1545
|
+
});
|
|
1546
|
+
},
|
|
1547
|
+
/** List the cloud schedules of a Console project */
|
|
1548
|
+
list: async (options) => {
|
|
1549
|
+
return this.transport.call({
|
|
1550
|
+
groupSegments: ["cloud", "schedules"],
|
|
1551
|
+
command: "list",
|
|
1552
|
+
body: { ...(options ?? {}) },
|
|
1553
|
+
});
|
|
1554
|
+
},
|
|
1555
|
+
/** Delete a cloud schedule (applies at once) */
|
|
1556
|
+
remove: async (id) => {
|
|
1557
|
+
return this.transport.call({
|
|
1558
|
+
groupSegments: ["cloud", "schedules"],
|
|
1559
|
+
command: "remove",
|
|
1560
|
+
body: { id },
|
|
1561
|
+
});
|
|
1562
|
+
},
|
|
1563
|
+
/** Change a cloud schedule. Requires --execute when it stays or becomes enabled. */
|
|
1564
|
+
update: async (id, options) => {
|
|
1565
|
+
return this.transport.call({
|
|
1566
|
+
groupSegments: ["cloud", "schedules"],
|
|
1567
|
+
command: "update",
|
|
1568
|
+
body: { id, ...(options ?? {}) },
|
|
1569
|
+
});
|
|
1570
|
+
}
|
|
1571
|
+
},
|
|
1096
1572
|
scope: {
|
|
1097
1573
|
/** Clear a default Console project for a session, agent, workspace, or install */
|
|
1098
1574
|
clear: async (options) => {
|
|
@@ -1118,11 +1594,135 @@ export class RaviClient {
|
|
|
1118
1594
|
body: { ...(options ?? {}) },
|
|
1119
1595
|
});
|
|
1120
1596
|
},
|
|
1121
|
-
/** Show the effective Ravi Console scope for this process */
|
|
1122
|
-
show: async (options) => {
|
|
1597
|
+
/** Show the effective Ravi Console scope for this process */
|
|
1598
|
+
show: async (options) => {
|
|
1599
|
+
return this.transport.call({
|
|
1600
|
+
groupSegments: ["cloud", "scope"],
|
|
1601
|
+
command: "show",
|
|
1602
|
+
body: { ...(options ?? {}) },
|
|
1603
|
+
});
|
|
1604
|
+
}
|
|
1605
|
+
},
|
|
1606
|
+
secrets: {
|
|
1607
|
+
/** List the organization's (or a project's) cloud secrets: names and hints */
|
|
1608
|
+
list: async (options) => {
|
|
1609
|
+
return this.transport.call({
|
|
1610
|
+
groupSegments: ["cloud", "secrets"],
|
|
1611
|
+
command: "list",
|
|
1612
|
+
body: { ...(options ?? {}) },
|
|
1613
|
+
});
|
|
1614
|
+
},
|
|
1615
|
+
/** Remove a cloud secret (runs that name it stop starting) */
|
|
1616
|
+
remove: async (secret, options) => {
|
|
1617
|
+
return this.transport.call({
|
|
1618
|
+
groupSegments: ["cloud", "secrets"],
|
|
1619
|
+
command: "remove",
|
|
1620
|
+
body: { secret, ...(options ?? {}) },
|
|
1621
|
+
});
|
|
1622
|
+
}
|
|
1623
|
+
},
|
|
1624
|
+
settings: {
|
|
1625
|
+
/** Change the billing mode or caps. Requires --execute when it can raise spending. */
|
|
1626
|
+
set: async (options) => {
|
|
1627
|
+
return this.transport.call({
|
|
1628
|
+
groupSegments: ["cloud", "settings"],
|
|
1629
|
+
command: "set",
|
|
1630
|
+
body: { ...(options ?? {}) },
|
|
1631
|
+
});
|
|
1632
|
+
},
|
|
1633
|
+
/** Show the billing mode, caps, pause state and webhook status */
|
|
1634
|
+
show: async () => {
|
|
1635
|
+
return this.transport.call({
|
|
1636
|
+
groupSegments: ["cloud", "settings"],
|
|
1637
|
+
command: "show",
|
|
1638
|
+
body: {},
|
|
1639
|
+
});
|
|
1640
|
+
}
|
|
1641
|
+
},
|
|
1642
|
+
triggers: {
|
|
1643
|
+
/** Start cloud runs of an agent from Console events. Requires --execute unless --disabled. */
|
|
1644
|
+
create: async (agent, options) => {
|
|
1645
|
+
return this.transport.call({
|
|
1646
|
+
groupSegments: ["cloud", "triggers"],
|
|
1647
|
+
command: "create",
|
|
1648
|
+
body: { agent, ...(options ?? {}) },
|
|
1649
|
+
});
|
|
1650
|
+
},
|
|
1651
|
+
/** List the cloud triggers of a Console project */
|
|
1652
|
+
list: async (options) => {
|
|
1653
|
+
return this.transport.call({
|
|
1654
|
+
groupSegments: ["cloud", "triggers"],
|
|
1655
|
+
command: "list",
|
|
1656
|
+
body: { ...(options ?? {}) },
|
|
1657
|
+
});
|
|
1658
|
+
},
|
|
1659
|
+
/** Delete a cloud trigger (applies at once) */
|
|
1660
|
+
remove: async (id) => {
|
|
1661
|
+
return this.transport.call({
|
|
1662
|
+
groupSegments: ["cloud", "triggers"],
|
|
1663
|
+
command: "remove",
|
|
1664
|
+
body: { id },
|
|
1665
|
+
});
|
|
1666
|
+
},
|
|
1667
|
+
/** Show the prompt a trigger would send now (no run starts) */
|
|
1668
|
+
test: async (id) => {
|
|
1669
|
+
return this.transport.call({
|
|
1670
|
+
groupSegments: ["cloud", "triggers"],
|
|
1671
|
+
command: "test",
|
|
1672
|
+
body: { id },
|
|
1673
|
+
});
|
|
1674
|
+
},
|
|
1675
|
+
/** Change a cloud trigger. Requires --execute when it stays or becomes enabled. */
|
|
1676
|
+
update: async (id, options) => {
|
|
1677
|
+
return this.transport.call({
|
|
1678
|
+
groupSegments: ["cloud", "triggers"],
|
|
1679
|
+
command: "update",
|
|
1680
|
+
body: { id, ...(options ?? {}) },
|
|
1681
|
+
});
|
|
1682
|
+
}
|
|
1683
|
+
},
|
|
1684
|
+
webhook: {
|
|
1685
|
+
/** Remove the webhook signing secret (runs sync on the periodic pass) */
|
|
1686
|
+
remove: async () => {
|
|
1687
|
+
return this.transport.call({
|
|
1688
|
+
groupSegments: ["cloud", "webhook"],
|
|
1689
|
+
command: "remove",
|
|
1690
|
+
body: {},
|
|
1691
|
+
});
|
|
1692
|
+
},
|
|
1693
|
+
/** Show the webhook URL to register and whether a signing secret is set */
|
|
1694
|
+
show: async () => {
|
|
1695
|
+
return this.transport.call({
|
|
1696
|
+
groupSegments: ["cloud", "webhook"],
|
|
1697
|
+
command: "show",
|
|
1698
|
+
body: {},
|
|
1699
|
+
});
|
|
1700
|
+
}
|
|
1701
|
+
},
|
|
1702
|
+
worker: {
|
|
1703
|
+
/** Stop running cloud agents' tools on this machine (applies at once) */
|
|
1704
|
+
disable: async () => {
|
|
1705
|
+
return this.transport.call({
|
|
1706
|
+
groupSegments: ["cloud", "worker"],
|
|
1707
|
+
command: "disable",
|
|
1708
|
+
body: {},
|
|
1709
|
+
});
|
|
1710
|
+
},
|
|
1711
|
+
key: {
|
|
1712
|
+
/** Delete a worker's stored environment key (its worker stops) */
|
|
1713
|
+
remove: async (workerId) => {
|
|
1714
|
+
return this.transport.call({
|
|
1715
|
+
groupSegments: ["cloud", "worker", "key"],
|
|
1716
|
+
command: "remove",
|
|
1717
|
+
body: { workerId },
|
|
1718
|
+
});
|
|
1719
|
+
}
|
|
1720
|
+
},
|
|
1721
|
+
/** List the workers assigned to this installation, with their key and the daemon's state */
|
|
1722
|
+
list: async (options) => {
|
|
1123
1723
|
return this.transport.call({
|
|
1124
|
-
groupSegments: ["cloud", "
|
|
1125
|
-
command: "
|
|
1724
|
+
groupSegments: ["cloud", "worker"],
|
|
1725
|
+
command: "list",
|
|
1126
1726
|
body: { ...(options ?? {}) },
|
|
1127
1727
|
});
|
|
1128
1728
|
}
|
|
@@ -1163,7 +1763,7 @@ export class RaviClient {
|
|
|
1163
1763
|
}
|
|
1164
1764
|
};
|
|
1165
1765
|
connectors = {
|
|
1166
|
-
/** List your
|
|
1766
|
+
/** List your connections */
|
|
1167
1767
|
list: async (options) => {
|
|
1168
1768
|
return this.transport.call({
|
|
1169
1769
|
groupSegments: ["connectors"],
|
|
@@ -1171,7 +1771,15 @@ export class RaviClient {
|
|
|
1171
1771
|
body: { ...(options ?? {}) },
|
|
1172
1772
|
});
|
|
1173
1773
|
},
|
|
1174
|
-
/**
|
|
1774
|
+
/** Show or set whose account an agent uses for a provider: owner, person-asking or shared */
|
|
1775
|
+
mode: async (agent, provider, mode, options) => {
|
|
1776
|
+
return this.transport.call({
|
|
1777
|
+
groupSegments: ["connectors"],
|
|
1778
|
+
command: "mode",
|
|
1779
|
+
body: { agent, provider, mode, ...(options ?? {}) },
|
|
1780
|
+
});
|
|
1781
|
+
},
|
|
1782
|
+
/** Disconnect one of your connections and delete its stored credentials */
|
|
1175
1783
|
revoke: async (id, options) => {
|
|
1176
1784
|
return this.transport.call({
|
|
1177
1785
|
groupSegments: ["connectors"],
|
|
@@ -1179,7 +1787,7 @@ export class RaviClient {
|
|
|
1179
1787
|
body: { id, ...(options ?? {}) },
|
|
1180
1788
|
});
|
|
1181
1789
|
},
|
|
1182
|
-
/** Show details of
|
|
1790
|
+
/** Show details of one of your connections */
|
|
1183
1791
|
show: async (id) => {
|
|
1184
1792
|
return this.transport.call({
|
|
1185
1793
|
groupSegments: ["connectors"],
|
|
@@ -1285,6 +1893,14 @@ export class RaviClient {
|
|
|
1285
1893
|
body: { contact, ...(options ?? {}) },
|
|
1286
1894
|
});
|
|
1287
1895
|
},
|
|
1896
|
+
/** Link a platform identity to an agent (bot senders resolve to an agent actor) */
|
|
1897
|
+
linkAgent: async (agent, options) => {
|
|
1898
|
+
return this.transport.call({
|
|
1899
|
+
groupSegments: ["contacts"],
|
|
1900
|
+
command: "link-agent",
|
|
1901
|
+
body: { agent, ...(options ?? {}) },
|
|
1902
|
+
});
|
|
1903
|
+
},
|
|
1288
1904
|
/** List all contacts */
|
|
1289
1905
|
list: async (options) => {
|
|
1290
1906
|
return this.transport.call({
|
|
@@ -1425,6 +2041,14 @@ export class RaviClient {
|
|
|
1425
2041
|
body: { permission, objectType, objectId },
|
|
1426
2042
|
});
|
|
1427
2043
|
},
|
|
2044
|
+
/** Authorize one Console bridge command, including an owner decision when eligible */
|
|
2045
|
+
bridgeToolHook: async (options) => {
|
|
2046
|
+
return this.transport.call({
|
|
2047
|
+
groupSegments: ["context"],
|
|
2048
|
+
command: "bridge-tool-hook",
|
|
2049
|
+
body: { ...(options ?? {}) },
|
|
2050
|
+
});
|
|
2051
|
+
},
|
|
1428
2052
|
/** List inherited capabilities for the current runtime context */
|
|
1429
2053
|
capabilities: async () => {
|
|
1430
2054
|
return this.transport.call({
|
|
@@ -1624,6 +2248,14 @@ export class RaviClient {
|
|
|
1624
2248
|
body: { ...(options ?? {}) },
|
|
1625
2249
|
});
|
|
1626
2250
|
},
|
|
2251
|
+
/** Metadata-only snapshot of up to 500 connections (active and disabled; `total` counts all): lifecycle, last use, backend version/times and recent audit. Never reads a secret value */
|
|
2252
|
+
inventory: async (options) => {
|
|
2253
|
+
return this.transport.call({
|
|
2254
|
+
groupSegments: ["credentials", "connections"],
|
|
2255
|
+
command: "inventory",
|
|
2256
|
+
body: { ...(options ?? {}) },
|
|
2257
|
+
});
|
|
2258
|
+
},
|
|
1627
2259
|
/** List provider credential connections without secret values */
|
|
1628
2260
|
list: async (options) => {
|
|
1629
2261
|
return this.transport.call({
|
|
@@ -1650,6 +2282,22 @@ export class RaviClient {
|
|
|
1650
2282
|
body: { ...(options ?? {}) },
|
|
1651
2283
|
});
|
|
1652
2284
|
}
|
|
2285
|
+
},
|
|
2286
|
+
/** Send a private Slack button to add an API credential; accepts metadata only */
|
|
2287
|
+
request: async (target, options) => {
|
|
2288
|
+
return this.transport.call({
|
|
2289
|
+
groupSegments: ["credentials"],
|
|
2290
|
+
command: "request",
|
|
2291
|
+
body: { target, ...(options ?? {}) },
|
|
2292
|
+
});
|
|
2293
|
+
},
|
|
2294
|
+
/** Reconcile a remote credential request without reading or resubmitting its secret */
|
|
2295
|
+
requestStatus: async (target, requestId) => {
|
|
2296
|
+
return this.transport.call({
|
|
2297
|
+
groupSegments: ["credentials"],
|
|
2298
|
+
command: "request-status",
|
|
2299
|
+
body: { target, requestId },
|
|
2300
|
+
});
|
|
1653
2301
|
}
|
|
1654
2302
|
};
|
|
1655
2303
|
crm = {
|
|
@@ -2017,6 +2665,14 @@ export class RaviClient {
|
|
|
2017
2665
|
}
|
|
2018
2666
|
};
|
|
2019
2667
|
cron = {
|
|
2668
|
+
/** Mark failed runs as reported without notifying the owner (dry-run by default) */
|
|
2669
|
+
ackFailures: async (options) => {
|
|
2670
|
+
return this.transport.call({
|
|
2671
|
+
groupSegments: ["cron"],
|
|
2672
|
+
command: "ack-failures",
|
|
2673
|
+
body: { ...(options ?? {}) },
|
|
2674
|
+
});
|
|
2675
|
+
},
|
|
2020
2676
|
/** Add a new scheduled job */
|
|
2021
2677
|
add: async (name, options) => {
|
|
2022
2678
|
return this.transport.call({
|
|
@@ -2156,6 +2812,64 @@ export class RaviClient {
|
|
|
2156
2812
|
});
|
|
2157
2813
|
}
|
|
2158
2814
|
};
|
|
2815
|
+
decisions = {
|
|
2816
|
+
/** Record an immutable answer; thread answers resume the waiting work */
|
|
2817
|
+
answer: async (id, options) => {
|
|
2818
|
+
return this.transport.call({
|
|
2819
|
+
groupSegments: ["decisions"],
|
|
2820
|
+
command: "answer",
|
|
2821
|
+
body: { id, ...(options ?? {}) },
|
|
2822
|
+
});
|
|
2823
|
+
},
|
|
2824
|
+
/** Ask or update one open question on an explicit origin */
|
|
2825
|
+
ask: async (options) => {
|
|
2826
|
+
return this.transport.call({
|
|
2827
|
+
groupSegments: ["decisions"],
|
|
2828
|
+
command: "ask",
|
|
2829
|
+
body: { ...(options ?? {}) },
|
|
2830
|
+
});
|
|
2831
|
+
},
|
|
2832
|
+
/** Read visible decisions; open only unless --all */
|
|
2833
|
+
list: async (options) => {
|
|
2834
|
+
return this.transport.call({
|
|
2835
|
+
groupSegments: ["decisions"],
|
|
2836
|
+
command: "list",
|
|
2837
|
+
body: { ...(options ?? {}) },
|
|
2838
|
+
});
|
|
2839
|
+
},
|
|
2840
|
+
/** Local operator recovery of uncertain runtime admission using trace evidence */
|
|
2841
|
+
resolveDelivery: async (id, options) => {
|
|
2842
|
+
return this.transport.call({
|
|
2843
|
+
groupSegments: ["decisions"],
|
|
2844
|
+
command: "resolve-delivery",
|
|
2845
|
+
body: { id, ...(options ?? {}) },
|
|
2846
|
+
});
|
|
2847
|
+
},
|
|
2848
|
+
/** Retry a failed thread delivery without recording another answer */
|
|
2849
|
+
retry: async (id, options) => {
|
|
2850
|
+
return this.transport.call({
|
|
2851
|
+
groupSegments: ["decisions"],
|
|
2852
|
+
command: "retry",
|
|
2853
|
+
body: { id, ...(options ?? {}) },
|
|
2854
|
+
});
|
|
2855
|
+
},
|
|
2856
|
+
/** Read a decision, its immutable history and delivery state */
|
|
2857
|
+
show: async (id) => {
|
|
2858
|
+
return this.transport.call({
|
|
2859
|
+
groupSegments: ["decisions"],
|
|
2860
|
+
command: "show",
|
|
2861
|
+
body: { id },
|
|
2862
|
+
});
|
|
2863
|
+
},
|
|
2864
|
+
/** Replace an answered decision with a later answered one; the old leaves turn context, history stays */
|
|
2865
|
+
supersede: async (id, options) => {
|
|
2866
|
+
return this.transport.call({
|
|
2867
|
+
groupSegments: ["decisions"],
|
|
2868
|
+
command: "supersede",
|
|
2869
|
+
body: { id, ...(options ?? {}) },
|
|
2870
|
+
});
|
|
2871
|
+
}
|
|
2872
|
+
};
|
|
2159
2873
|
devin = {
|
|
2160
2874
|
auth: {
|
|
2161
2875
|
/** Validate Devin API credentials */
|
|
@@ -2286,6 +3000,14 @@ export class RaviClient {
|
|
|
2286
3000
|
command: "read",
|
|
2287
3001
|
body: { id, ...(options ?? {}) },
|
|
2288
3002
|
});
|
|
3003
|
+
},
|
|
3004
|
+
/** Send an email through Gmail */
|
|
3005
|
+
send: async (options) => {
|
|
3006
|
+
return this.transport.call({
|
|
3007
|
+
groupSegments: ["gmail"],
|
|
3008
|
+
command: "send",
|
|
3009
|
+
body: { ...(options ?? {}) },
|
|
3010
|
+
});
|
|
2289
3011
|
}
|
|
2290
3012
|
};
|
|
2291
3013
|
heartbeat = {
|
|
@@ -2396,6 +3118,24 @@ export class RaviClient {
|
|
|
2396
3118
|
});
|
|
2397
3119
|
}
|
|
2398
3120
|
};
|
|
3121
|
+
identity = {
|
|
3122
|
+
/** Send the message author a private link to approve in the Console */
|
|
3123
|
+
link: async () => {
|
|
3124
|
+
return this.transport.call({
|
|
3125
|
+
groupSegments: ["identity"],
|
|
3126
|
+
command: "link",
|
|
3127
|
+
body: {},
|
|
3128
|
+
});
|
|
3129
|
+
},
|
|
3130
|
+
/** Remove the message author's Console link on this installation */
|
|
3131
|
+
unlink: async () => {
|
|
3132
|
+
return this.transport.call({
|
|
3133
|
+
groupSegments: ["identity"],
|
|
3134
|
+
command: "unlink",
|
|
3135
|
+
body: {},
|
|
3136
|
+
});
|
|
3137
|
+
}
|
|
3138
|
+
};
|
|
2399
3139
|
image = {
|
|
2400
3140
|
atlas: {
|
|
2401
3141
|
/** Split an image atlas/contact sheet into deterministic crop artifacts */
|
|
@@ -2738,6 +3478,32 @@ export class RaviClient {
|
|
|
2738
3478
|
});
|
|
2739
3479
|
}
|
|
2740
3480
|
};
|
|
3481
|
+
invites = {
|
|
3482
|
+
/** Create a single-use organization invite link */
|
|
3483
|
+
create: async (options) => {
|
|
3484
|
+
return this.transport.call({
|
|
3485
|
+
groupSegments: ["invites"],
|
|
3486
|
+
command: "create",
|
|
3487
|
+
body: { ...(options ?? {}) },
|
|
3488
|
+
});
|
|
3489
|
+
},
|
|
3490
|
+
/** List pending organization invites */
|
|
3491
|
+
list: async (options) => {
|
|
3492
|
+
return this.transport.call({
|
|
3493
|
+
groupSegments: ["invites"],
|
|
3494
|
+
command: "list",
|
|
3495
|
+
body: { ...(options ?? {}) },
|
|
3496
|
+
});
|
|
3497
|
+
},
|
|
3498
|
+
/** Revoke a pending invite link */
|
|
3499
|
+
revoke: async (inviteId, options) => {
|
|
3500
|
+
return this.transport.call({
|
|
3501
|
+
groupSegments: ["invites"],
|
|
3502
|
+
command: "revoke",
|
|
3503
|
+
body: { inviteId, ...(options ?? {}) },
|
|
3504
|
+
});
|
|
3505
|
+
}
|
|
3506
|
+
};
|
|
2741
3507
|
jobs = {
|
|
2742
3508
|
/** Stop a running job */
|
|
2743
3509
|
kill: async (id) => {
|
|
@@ -2788,6 +3554,72 @@ export class RaviClient {
|
|
|
2788
3554
|
});
|
|
2789
3555
|
}
|
|
2790
3556
|
};
|
|
3557
|
+
knowledge = {
|
|
3558
|
+
/** Archive or redact what Knowledge keeps */
|
|
3559
|
+
forget: async (id, options) => {
|
|
3560
|
+
return this.transport.call({
|
|
3561
|
+
groupSegments: ["knowledge"],
|
|
3562
|
+
command: "forget",
|
|
3563
|
+
body: { id, ...(options ?? {}) },
|
|
3564
|
+
});
|
|
3565
|
+
},
|
|
3566
|
+
/** Show which page routes are marked for clients */
|
|
3567
|
+
marks: async (options) => {
|
|
3568
|
+
return this.transport.call({
|
|
3569
|
+
groupSegments: ["knowledge"],
|
|
3570
|
+
command: "marks",
|
|
3571
|
+
body: { ...(options ?? {}) },
|
|
3572
|
+
});
|
|
3573
|
+
},
|
|
3574
|
+
/** Propose a note, answer, correction or transcript to the Console */
|
|
3575
|
+
propose: async (options) => {
|
|
3576
|
+
return this.transport.call({
|
|
3577
|
+
groupSegments: ["knowledge"],
|
|
3578
|
+
command: "propose",
|
|
3579
|
+
body: { ...(options ?? {}) },
|
|
3580
|
+
});
|
|
3581
|
+
},
|
|
3582
|
+
/** Show one result with its neighbours */
|
|
3583
|
+
read: async (ref, options) => {
|
|
3584
|
+
return this.transport.call({
|
|
3585
|
+
groupSegments: ["knowledge"],
|
|
3586
|
+
command: "read",
|
|
3587
|
+
body: { ref, ...(options ?? {}) },
|
|
3588
|
+
});
|
|
3589
|
+
},
|
|
3590
|
+
/** Save a fact about a contact or chat */
|
|
3591
|
+
remember: async (text, options) => {
|
|
3592
|
+
return this.transport.call({
|
|
3593
|
+
groupSegments: ["knowledge"],
|
|
3594
|
+
command: "remember",
|
|
3595
|
+
body: { text, ...(options ?? {}) },
|
|
3596
|
+
});
|
|
3597
|
+
},
|
|
3598
|
+
/** Search meetings, pages, notes and local history, with sources */
|
|
3599
|
+
search: async (query, options) => {
|
|
3600
|
+
return this.transport.call({
|
|
3601
|
+
groupSegments: ["knowledge"],
|
|
3602
|
+
command: "search",
|
|
3603
|
+
body: { query, ...(options ?? {}) },
|
|
3604
|
+
});
|
|
3605
|
+
},
|
|
3606
|
+
/** Show what Knowledge indexes and what is failing */
|
|
3607
|
+
sources: async (options) => {
|
|
3608
|
+
return this.transport.call({
|
|
3609
|
+
groupSegments: ["knowledge"],
|
|
3610
|
+
command: "sources",
|
|
3611
|
+
body: { ...(options ?? {}) },
|
|
3612
|
+
});
|
|
3613
|
+
},
|
|
3614
|
+
/** Show what a search returned and cited */
|
|
3615
|
+
why: async (options) => {
|
|
3616
|
+
return this.transport.call({
|
|
3617
|
+
groupSegments: ["knowledge"],
|
|
3618
|
+
command: "why",
|
|
3619
|
+
body: { ...(options ?? {}) },
|
|
3620
|
+
});
|
|
3621
|
+
}
|
|
3622
|
+
};
|
|
2791
3623
|
mail = {
|
|
2792
3624
|
accounts: {
|
|
2793
3625
|
/** Create or update a local mail provider account */
|
|
@@ -3053,6 +3885,14 @@ export class RaviClient {
|
|
|
3053
3885
|
}
|
|
3054
3886
|
};
|
|
3055
3887
|
meetings = {
|
|
3888
|
+
/** Download a finished cloud recording into a meeting.raw artifact */
|
|
3889
|
+
fetch: async (meetingId, options) => {
|
|
3890
|
+
return this.transport.call({
|
|
3891
|
+
groupSegments: ["meetings"],
|
|
3892
|
+
command: "fetch",
|
|
3893
|
+
body: { meetingId, ...(options ?? {}) },
|
|
3894
|
+
});
|
|
3895
|
+
},
|
|
3056
3896
|
/** Finalize a completed meeting recorder run into a Ravi meeting.raw artifact */
|
|
3057
3897
|
finalize: async (options) => {
|
|
3058
3898
|
return this.transport.call({
|
|
@@ -3061,6 +3901,30 @@ export class RaviClient {
|
|
|
3061
3901
|
body: { ...(options ?? {}) },
|
|
3062
3902
|
});
|
|
3063
3903
|
},
|
|
3904
|
+
/** Join a meeting through a native Ravi meeting provider */
|
|
3905
|
+
join: async (options) => {
|
|
3906
|
+
return this.transport.call({
|
|
3907
|
+
groupSegments: ["meetings"],
|
|
3908
|
+
command: "join",
|
|
3909
|
+
body: { ...(options ?? {}) },
|
|
3910
|
+
});
|
|
3911
|
+
},
|
|
3912
|
+
/** Ask a cloud meeting bot to leave the call now */
|
|
3913
|
+
leave: async (meetingId, options) => {
|
|
3914
|
+
return this.transport.call({
|
|
3915
|
+
groupSegments: ["meetings"],
|
|
3916
|
+
command: "leave",
|
|
3917
|
+
body: { meetingId, ...(options ?? {}) },
|
|
3918
|
+
});
|
|
3919
|
+
},
|
|
3920
|
+
/** List the project's cloud meeting bots */
|
|
3921
|
+
list: async (options) => {
|
|
3922
|
+
return this.transport.call({
|
|
3923
|
+
groupSegments: ["meetings"],
|
|
3924
|
+
command: "list",
|
|
3925
|
+
body: { ...(options ?? {}) },
|
|
3926
|
+
});
|
|
3927
|
+
},
|
|
3064
3928
|
profiles: {
|
|
3065
3929
|
/** Create a reusable meeting profile scaffold */
|
|
3066
3930
|
init: async (profileId, options) => {
|
|
@@ -3095,6 +3959,22 @@ export class RaviClient {
|
|
|
3095
3959
|
});
|
|
3096
3960
|
}
|
|
3097
3961
|
},
|
|
3962
|
+
/** Read a Console meeting's transcript for this turn (operator only; nothing is saved) */
|
|
3963
|
+
read: async (meeting, options) => {
|
|
3964
|
+
return this.transport.call({
|
|
3965
|
+
groupSegments: ["meetings"],
|
|
3966
|
+
command: "read",
|
|
3967
|
+
body: { meeting, ...(options ?? {}) },
|
|
3968
|
+
});
|
|
3969
|
+
},
|
|
3970
|
+
/** Show one cloud meeting bot */
|
|
3971
|
+
show: async (meetingId, options) => {
|
|
3972
|
+
return this.transport.call({
|
|
3973
|
+
groupSegments: ["meetings"],
|
|
3974
|
+
command: "show",
|
|
3975
|
+
body: { meetingId, ...(options ?? {}) },
|
|
3976
|
+
});
|
|
3977
|
+
},
|
|
3098
3978
|
/** List meeting voice runtime candidates and current recommendation */
|
|
3099
3979
|
voiceRuntimes: async () => {
|
|
3100
3980
|
return this.transport.call({
|
|
@@ -3265,6 +4145,14 @@ export class RaviClient {
|
|
|
3265
4145
|
}
|
|
3266
4146
|
};
|
|
3267
4147
|
pages = {
|
|
4148
|
+
/** Show who was given access to a page's site, for what and until when */
|
|
4149
|
+
access: async (url, options) => {
|
|
4150
|
+
return this.transport.call({
|
|
4151
|
+
groupSegments: ["pages"],
|
|
4152
|
+
command: "access",
|
|
4153
|
+
body: { url, ...(options ?? {}) },
|
|
4154
|
+
});
|
|
4155
|
+
},
|
|
3268
4156
|
assertion: {
|
|
3269
4157
|
audiences: {
|
|
3270
4158
|
/** List viewer-assertion audiences registered on a Pages host */
|
|
@@ -3293,6 +4181,24 @@ export class RaviClient {
|
|
|
3293
4181
|
}
|
|
3294
4182
|
}
|
|
3295
4183
|
},
|
|
4184
|
+
chat: {
|
|
4185
|
+
/** Change a Pages site's Page Chat settings */
|
|
4186
|
+
set: async (site, options) => {
|
|
4187
|
+
return this.transport.call({
|
|
4188
|
+
groupSegments: ["pages", "chat"],
|
|
4189
|
+
command: "set",
|
|
4190
|
+
body: { site, ...(options ?? {}) },
|
|
4191
|
+
});
|
|
4192
|
+
},
|
|
4193
|
+
/** Show a Pages site's Page Chat settings */
|
|
4194
|
+
show: async (site, options) => {
|
|
4195
|
+
return this.transport.call({
|
|
4196
|
+
groupSegments: ["pages", "chat"],
|
|
4197
|
+
command: "show",
|
|
4198
|
+
body: { site, ...(options ?? {}) },
|
|
4199
|
+
});
|
|
4200
|
+
}
|
|
4201
|
+
},
|
|
3296
4202
|
/** Advanced/compat: host-only Pages record; does not upload HTML. Prefer pages ship to get a URL */
|
|
3297
4203
|
create: async (args, options) => {
|
|
3298
4204
|
return this.transport.call({
|
|
@@ -3317,6 +4223,14 @@ export class RaviClient {
|
|
|
3317
4223
|
body: { project, ...(options ?? {}) },
|
|
3318
4224
|
});
|
|
3319
4225
|
},
|
|
4226
|
+
/** List published routes shipped with an older theme, widget or page runtime */
|
|
4227
|
+
outdated: async (options) => {
|
|
4228
|
+
return this.transport.call({
|
|
4229
|
+
groupSegments: ["pages"],
|
|
4230
|
+
command: "outdated",
|
|
4231
|
+
body: { ...(options ?? {}) },
|
|
4232
|
+
});
|
|
4233
|
+
},
|
|
3320
4234
|
password: {
|
|
3321
4235
|
/** Remove a route password after activating an explicit replacement visibility */
|
|
3322
4236
|
remove: async (args, options) => {
|
|
@@ -3351,6 +4265,22 @@ export class RaviClient {
|
|
|
3351
4265
|
body: { project, ...(options ?? {}) },
|
|
3352
4266
|
});
|
|
3353
4267
|
},
|
|
4268
|
+
/** Read a published Ravi Page's content by URL */
|
|
4269
|
+
read: async (url, options) => {
|
|
4270
|
+
return this.transport.call({
|
|
4271
|
+
groupSegments: ["pages"],
|
|
4272
|
+
command: "read",
|
|
4273
|
+
body: { url, ...(options ?? {}) },
|
|
4274
|
+
});
|
|
4275
|
+
},
|
|
4276
|
+
/** Give one person, by email, access to a private page (or its whole site with --site) */
|
|
4277
|
+
share: async (url, options) => {
|
|
4278
|
+
return this.transport.call({
|
|
4279
|
+
groupSegments: ["pages"],
|
|
4280
|
+
command: "share",
|
|
4281
|
+
body: { url, ...(options ?? {}) },
|
|
4282
|
+
});
|
|
4283
|
+
},
|
|
3354
4284
|
/** One-shot: publish a route on the project default Pages host */
|
|
3355
4285
|
ship: async (args, options) => {
|
|
3356
4286
|
return this.transport.call({
|
|
@@ -3359,6 +4289,14 @@ export class RaviClient {
|
|
|
3359
4289
|
body: { args, ...(options ?? {}) },
|
|
3360
4290
|
});
|
|
3361
4291
|
},
|
|
4292
|
+
/** Remove one person's access to a page or site (applies immediately) */
|
|
4293
|
+
unshare: async (url, options) => {
|
|
4294
|
+
return this.transport.call({
|
|
4295
|
+
groupSegments: ["pages"],
|
|
4296
|
+
command: "unshare",
|
|
4297
|
+
body: { url, ...(options ?? {}) },
|
|
4298
|
+
});
|
|
4299
|
+
},
|
|
3362
4300
|
/** Update a Ravi Pages site in a Console project */
|
|
3363
4301
|
update: async (args, options) => {
|
|
3364
4302
|
return this.transport.call({
|
|
@@ -3417,202 +4355,92 @@ export class RaviClient {
|
|
|
3417
4355
|
body: { ...(options ?? {}) },
|
|
3418
4356
|
});
|
|
3419
4357
|
},
|
|
3420
|
-
/**
|
|
3421
|
-
|
|
4358
|
+
/** Ask the admins, on any channel that can reach them, to approve full access for one contact in one chat; applies only when one approves */
|
|
4359
|
+
request: async (profile, options) => {
|
|
3422
4360
|
return this.transport.call({
|
|
3423
4361
|
groupSegments: ["permissions"],
|
|
3424
|
-
command: "
|
|
3425
|
-
body: {
|
|
4362
|
+
command: "request",
|
|
4363
|
+
body: { profile, ...(options ?? {}) },
|
|
3426
4364
|
});
|
|
3427
4365
|
},
|
|
3428
|
-
/** Show the
|
|
3429
|
-
|
|
4366
|
+
/** Show the state of a full-access request made with `permissions request` */
|
|
4367
|
+
requestStatus: async (requestId) => {
|
|
3430
4368
|
return this.transport.call({
|
|
3431
4369
|
groupSegments: ["permissions"],
|
|
3432
|
-
command: "status",
|
|
3433
|
-
body: {},
|
|
3434
|
-
});
|
|
3435
|
-
}
|
|
3436
|
-
};
|
|
3437
|
-
projects = {
|
|
3438
|
-
/** Create one project */
|
|
3439
|
-
create: async (title, options) => {
|
|
3440
|
-
return this.transport.call({
|
|
3441
|
-
groupSegments: ["projects"],
|
|
3442
|
-
command: "create",
|
|
3443
|
-
body: { title, ...(options ?? {}) },
|
|
3444
|
-
});
|
|
3445
|
-
},
|
|
3446
|
-
fixtures: {
|
|
3447
|
-
/** Reset and seed the canonical project fixtures used in demos and smoke tests */
|
|
3448
|
-
seed: async (options) => {
|
|
3449
|
-
return this.transport.call({
|
|
3450
|
-
groupSegments: ["projects", "fixtures"],
|
|
3451
|
-
command: "seed",
|
|
3452
|
-
body: { ...(options ?? {}) },
|
|
3453
|
-
});
|
|
3454
|
-
}
|
|
3455
|
-
},
|
|
3456
|
-
/** Materialize a project with cheap links and optional canonical workflows */
|
|
3457
|
-
init: async (title, options) => {
|
|
3458
|
-
return this.transport.call({
|
|
3459
|
-
groupSegments: ["projects"],
|
|
3460
|
-
command: "init",
|
|
3461
|
-
body: { title, ...(options ?? {}) },
|
|
3462
|
-
});
|
|
3463
|
-
},
|
|
3464
|
-
/** Link workflow/session/agent/resource/spec context to a project */
|
|
3465
|
-
link: async (assetType, project, target, options) => {
|
|
3466
|
-
return this.transport.call({
|
|
3467
|
-
groupSegments: ["projects"],
|
|
3468
|
-
command: "link",
|
|
3469
|
-
body: { assetType, project, target, ...(options ?? {}) },
|
|
4370
|
+
command: "request-status",
|
|
4371
|
+
body: { requestId },
|
|
3470
4372
|
});
|
|
3471
4373
|
},
|
|
3472
|
-
/**
|
|
3473
|
-
|
|
3474
|
-
return this.transport.call({
|
|
3475
|
-
groupSegments: ["
|
|
3476
|
-
command: "
|
|
3477
|
-
body: { ...(options ?? {}) },
|
|
4374
|
+
/** Plan or apply a provider-owned fix for a recorded permission denial */
|
|
4375
|
+
resolve: async (denialId, options) => {
|
|
4376
|
+
return this.transport.call({
|
|
4377
|
+
groupSegments: ["permissions"],
|
|
4378
|
+
command: "resolve",
|
|
4379
|
+
body: { denialId, ...(options ?? {}) },
|
|
3478
4380
|
});
|
|
3479
4381
|
},
|
|
3480
|
-
/**
|
|
3481
|
-
|
|
4382
|
+
/** Show the active provider-runtime permission chain */
|
|
4383
|
+
status: async () => {
|
|
3482
4384
|
return this.transport.call({
|
|
3483
|
-
groupSegments: ["
|
|
3484
|
-
command: "
|
|
3485
|
-
body: {
|
|
4385
|
+
groupSegments: ["permissions"],
|
|
4386
|
+
command: "status",
|
|
4387
|
+
body: {},
|
|
3486
4388
|
});
|
|
3487
|
-
}
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
groupSegments: ["projects", "resources"],
|
|
3493
|
-
command: "add",
|
|
3494
|
-
body: { project, target, ...(options ?? {}) },
|
|
3495
|
-
});
|
|
3496
|
-
},
|
|
3497
|
-
/** Import multiple cheap resources into a project */
|
|
3498
|
-
import: async (project, options) => {
|
|
3499
|
-
return this.transport.call({
|
|
3500
|
-
groupSegments: ["projects", "resources"],
|
|
3501
|
-
command: "import",
|
|
3502
|
-
body: { project, ...(options ?? {}) },
|
|
3503
|
-
});
|
|
3504
|
-
},
|
|
3505
|
-
/** List resource links for a project */
|
|
3506
|
-
list: async (project, options) => {
|
|
3507
|
-
return this.transport.call({
|
|
3508
|
-
groupSegments: ["projects", "resources"],
|
|
3509
|
-
command: "list",
|
|
3510
|
-
body: { project, ...(options ?? {}) },
|
|
3511
|
-
});
|
|
3512
|
-
},
|
|
3513
|
-
/** Show one resource link on a project */
|
|
3514
|
-
show: async (project, resource) => {
|
|
3515
|
-
return this.transport.call({
|
|
3516
|
-
groupSegments: ["projects", "resources"],
|
|
3517
|
-
command: "show",
|
|
3518
|
-
body: { project, resource },
|
|
3519
|
-
});
|
|
3520
|
-
}
|
|
3521
|
-
},
|
|
3522
|
-
/** Show one project with linked context */
|
|
3523
|
-
show: async (project) => {
|
|
4389
|
+
}
|
|
4390
|
+
};
|
|
4391
|
+
pr = {
|
|
4392
|
+
/** Upload the current branch, publish a ready PR and verify CI follow */
|
|
4393
|
+
publish: async (options) => {
|
|
3524
4394
|
return this.transport.call({
|
|
3525
|
-
groupSegments: ["
|
|
3526
|
-
command: "
|
|
3527
|
-
body: {
|
|
4395
|
+
groupSegments: ["pr"],
|
|
4396
|
+
command: "publish",
|
|
4397
|
+
body: { ...(options ?? {}) },
|
|
3528
4398
|
});
|
|
3529
|
-
}
|
|
3530
|
-
|
|
3531
|
-
|
|
4399
|
+
}
|
|
4400
|
+
};
|
|
4401
|
+
projects = {
|
|
4402
|
+
/** Create a project in Console */
|
|
4403
|
+
create: async (slug, options) => {
|
|
3532
4404
|
return this.transport.call({
|
|
3533
4405
|
groupSegments: ["projects"],
|
|
3534
|
-
command: "
|
|
3535
|
-
body: {
|
|
4406
|
+
command: "create",
|
|
4407
|
+
body: { slug, ...(options ?? {}) },
|
|
3536
4408
|
});
|
|
3537
4409
|
},
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
attach: async (project, nodeKey, taskId, options) => {
|
|
3541
|
-
return this.transport.call({
|
|
3542
|
-
groupSegments: ["projects", "tasks"],
|
|
3543
|
-
command: "attach",
|
|
3544
|
-
body: { project, nodeKey, taskId, ...(options ?? {}) },
|
|
3545
|
-
});
|
|
3546
|
-
},
|
|
3547
|
-
/** Create a task attempt from a project workflow node */
|
|
3548
|
-
create: async (project, nodeKey, title, options) => {
|
|
3549
|
-
return this.transport.call({
|
|
3550
|
-
groupSegments: ["projects", "tasks"],
|
|
3551
|
-
command: "create",
|
|
3552
|
-
body: { project, nodeKey, title, ...(options ?? {}) },
|
|
3553
|
-
});
|
|
3554
|
-
},
|
|
3555
|
-
/** Dispatch a task using project owner/session defaults */
|
|
3556
|
-
dispatch: async (project, taskId, options) => {
|
|
3557
|
-
return this.transport.call({
|
|
3558
|
-
groupSegments: ["projects", "tasks"],
|
|
3559
|
-
command: "dispatch",
|
|
3560
|
-
body: { project, taskId, ...(options ?? {}) },
|
|
3561
|
-
});
|
|
3562
|
-
}
|
|
3563
|
-
},
|
|
3564
|
-
/** Update one project */
|
|
3565
|
-
update: async (project, options) => {
|
|
4410
|
+
/** List the organization's projects in Console */
|
|
4411
|
+
list: async (options) => {
|
|
3566
4412
|
return this.transport.call({
|
|
3567
4413
|
groupSegments: ["projects"],
|
|
3568
|
-
command: "
|
|
3569
|
-
body: {
|
|
4414
|
+
command: "list",
|
|
4415
|
+
body: { ...(options ?? {}) },
|
|
3570
4416
|
});
|
|
3571
|
-
},
|
|
3572
|
-
workflows: {
|
|
3573
|
-
/** Attach one existing workflow run to a project in one step */
|
|
3574
|
-
attach: async (project, runId, options) => {
|
|
3575
|
-
return this.transport.call({
|
|
3576
|
-
groupSegments: ["projects", "workflows"],
|
|
3577
|
-
command: "attach",
|
|
3578
|
-
body: { project, runId, ...(options ?? {}) },
|
|
3579
|
-
});
|
|
3580
|
-
},
|
|
3581
|
-
/** Start one workflow run from a project and link it in one step */
|
|
3582
|
-
start: async (project, specId, options) => {
|
|
3583
|
-
return this.transport.call({
|
|
3584
|
-
groupSegments: ["projects", "workflows"],
|
|
3585
|
-
command: "start",
|
|
3586
|
-
body: { project, specId, ...(options ?? {}) },
|
|
3587
|
-
});
|
|
3588
|
-
}
|
|
3589
4417
|
}
|
|
3590
4418
|
};
|
|
3591
4419
|
prox = {
|
|
3592
4420
|
calls: {
|
|
3593
4421
|
/** Cancel a pending call request */
|
|
3594
|
-
cancel: async (
|
|
4422
|
+
cancel: async (callRequestId, options) => {
|
|
3595
4423
|
return this.transport.call({
|
|
3596
4424
|
groupSegments: ["prox", "calls"],
|
|
3597
4425
|
command: "cancel",
|
|
3598
|
-
body: { call_request_id, ...(options ?? {}) },
|
|
4426
|
+
body: { "call_request_id": callRequestId, ...(options ?? {}) },
|
|
3599
4427
|
});
|
|
3600
4428
|
},
|
|
3601
4429
|
/** Show event timeline for a call request */
|
|
3602
|
-
events: async (
|
|
4430
|
+
events: async (callRequestId) => {
|
|
3603
4431
|
return this.transport.call({
|
|
3604
4432
|
groupSegments: ["prox", "calls"],
|
|
3605
4433
|
command: "events",
|
|
3606
|
-
body: { call_request_id },
|
|
4434
|
+
body: { "call_request_id": callRequestId },
|
|
3607
4435
|
});
|
|
3608
4436
|
},
|
|
3609
4437
|
profiles: {
|
|
3610
4438
|
/** Configure a call profile's provider settings */
|
|
3611
|
-
configure: async (
|
|
4439
|
+
configure: async (profileId, options) => {
|
|
3612
4440
|
return this.transport.call({
|
|
3613
4441
|
groupSegments: ["prox", "calls", "profiles"],
|
|
3614
4442
|
command: "configure",
|
|
3615
|
-
body: { profile_id, ...(options ?? {}) },
|
|
4443
|
+
body: { "profile_id": profileId, ...(options ?? {}) },
|
|
3616
4444
|
});
|
|
3617
4445
|
},
|
|
3618
4446
|
/** List available call profiles */
|
|
@@ -3624,11 +4452,11 @@ export class RaviClient {
|
|
|
3624
4452
|
});
|
|
3625
4453
|
},
|
|
3626
4454
|
/** Show a call profile by ID */
|
|
3627
|
-
show: async (
|
|
4455
|
+
show: async (profileId) => {
|
|
3628
4456
|
return this.transport.call({
|
|
3629
4457
|
groupSegments: ["prox", "calls", "profiles"],
|
|
3630
4458
|
command: "show",
|
|
3631
|
-
body: { profile_id },
|
|
4459
|
+
body: { "profile_id": profileId },
|
|
3632
4460
|
});
|
|
3633
4461
|
}
|
|
3634
4462
|
},
|
|
@@ -3649,36 +4477,36 @@ export class RaviClient {
|
|
|
3649
4477
|
});
|
|
3650
4478
|
},
|
|
3651
4479
|
/** Show details of a call request */
|
|
3652
|
-
show: async (
|
|
4480
|
+
show: async (callRequestId) => {
|
|
3653
4481
|
return this.transport.call({
|
|
3654
4482
|
groupSegments: ["prox", "calls"],
|
|
3655
4483
|
command: "show",
|
|
3656
|
-
body: { call_request_id },
|
|
4484
|
+
body: { "call_request_id": callRequestId },
|
|
3657
4485
|
});
|
|
3658
4486
|
},
|
|
3659
4487
|
tools: {
|
|
3660
4488
|
/** Bind a tool to a profile */
|
|
3661
|
-
bind: async (
|
|
4489
|
+
bind: async (profileId, toolId, options) => {
|
|
3662
4490
|
return this.transport.call({
|
|
3663
4491
|
groupSegments: ["prox", "calls", "tools"],
|
|
3664
4492
|
command: "bind",
|
|
3665
|
-
body: { profile_id, tool_id, ...(options ?? {}) },
|
|
4493
|
+
body: { "profile_id": profileId, "tool_id": toolId, ...(options ?? {}) },
|
|
3666
4494
|
});
|
|
3667
4495
|
},
|
|
3668
4496
|
/** Configure a call tool */
|
|
3669
|
-
configure: async (
|
|
4497
|
+
configure: async (toolId, options) => {
|
|
3670
4498
|
return this.transport.call({
|
|
3671
4499
|
groupSegments: ["prox", "calls", "tools"],
|
|
3672
4500
|
command: "configure",
|
|
3673
|
-
body: { tool_id, ...(options ?? {}) },
|
|
4501
|
+
body: { "tool_id": toolId, ...(options ?? {}) },
|
|
3674
4502
|
});
|
|
3675
4503
|
},
|
|
3676
4504
|
/** Create a new call tool */
|
|
3677
|
-
create: async (
|
|
4505
|
+
create: async (toolId, options) => {
|
|
3678
4506
|
return this.transport.call({
|
|
3679
4507
|
groupSegments: ["prox", "calls", "tools"],
|
|
3680
4508
|
command: "create",
|
|
3681
|
-
body: { tool_id, ...(options ?? {}) },
|
|
4509
|
+
body: { "tool_id": toolId, ...(options ?? {}) },
|
|
3682
4510
|
});
|
|
3683
4511
|
},
|
|
3684
4512
|
/** List call tools */
|
|
@@ -3690,69 +4518,69 @@ export class RaviClient {
|
|
|
3690
4518
|
});
|
|
3691
4519
|
},
|
|
3692
4520
|
/** Execute a tool (dry-run validates without side effects) */
|
|
3693
|
-
run: async (
|
|
4521
|
+
run: async (toolId, options) => {
|
|
3694
4522
|
return this.transport.call({
|
|
3695
4523
|
groupSegments: ["prox", "calls", "tools"],
|
|
3696
4524
|
command: "run",
|
|
3697
|
-
body: { tool_id, ...(options ?? {}) },
|
|
4525
|
+
body: { "tool_id": toolId, ...(options ?? {}) },
|
|
3698
4526
|
});
|
|
3699
4527
|
},
|
|
3700
4528
|
/** List tool runs for a call request */
|
|
3701
|
-
runs: async (
|
|
4529
|
+
runs: async (callRequestId) => {
|
|
3702
4530
|
return this.transport.call({
|
|
3703
4531
|
groupSegments: ["prox", "calls", "tools"],
|
|
3704
4532
|
command: "runs",
|
|
3705
|
-
body: { call_request_id },
|
|
4533
|
+
body: { "call_request_id": callRequestId },
|
|
3706
4534
|
});
|
|
3707
4535
|
},
|
|
3708
4536
|
/** Show a call tool by ID */
|
|
3709
|
-
show: async (
|
|
4537
|
+
show: async (toolId) => {
|
|
3710
4538
|
return this.transport.call({
|
|
3711
4539
|
groupSegments: ["prox", "calls", "tools"],
|
|
3712
4540
|
command: "show",
|
|
3713
|
-
body: { tool_id },
|
|
4541
|
+
body: { "tool_id": toolId },
|
|
3714
4542
|
});
|
|
3715
4543
|
},
|
|
3716
4544
|
/** Unbind a tool from a profile */
|
|
3717
|
-
unbind: async (
|
|
4545
|
+
unbind: async (profileId, toolId) => {
|
|
3718
4546
|
return this.transport.call({
|
|
3719
4547
|
groupSegments: ["prox", "calls", "tools"],
|
|
3720
4548
|
command: "unbind",
|
|
3721
|
-
body: { profile_id, tool_id },
|
|
4549
|
+
body: { "profile_id": profileId, "tool_id": toolId },
|
|
3722
4550
|
});
|
|
3723
4551
|
}
|
|
3724
4552
|
},
|
|
3725
4553
|
/** Show call transcript, syncing provider state when needed */
|
|
3726
|
-
transcript: async (
|
|
4554
|
+
transcript: async (callRequestId, options) => {
|
|
3727
4555
|
return this.transport.call({
|
|
3728
4556
|
groupSegments: ["prox", "calls"],
|
|
3729
4557
|
command: "transcript",
|
|
3730
|
-
body: { call_request_id, ...(options ?? {}) },
|
|
4558
|
+
body: { "call_request_id": callRequestId, ...(options ?? {}) },
|
|
3731
4559
|
});
|
|
3732
4560
|
},
|
|
3733
4561
|
voiceAgents: {
|
|
3734
4562
|
/** Bind a tool to a voice agent */
|
|
3735
|
-
bindTool: async (
|
|
4563
|
+
bindTool: async (voiceAgentId, toolId, options) => {
|
|
3736
4564
|
return this.transport.call({
|
|
3737
4565
|
groupSegments: ["prox", "calls", "voice-agents"],
|
|
3738
4566
|
command: "bind-tool",
|
|
3739
|
-
body: { voice_agent_id, tool_id, ...(options ?? {}) },
|
|
4567
|
+
body: { "voice_agent_id": voiceAgentId, "tool_id": toolId, ...(options ?? {}) },
|
|
3740
4568
|
});
|
|
3741
4569
|
},
|
|
3742
4570
|
/** Configure a voice agent */
|
|
3743
|
-
configure: async (
|
|
4571
|
+
configure: async (voiceAgentId, options) => {
|
|
3744
4572
|
return this.transport.call({
|
|
3745
4573
|
groupSegments: ["prox", "calls", "voice-agents"],
|
|
3746
4574
|
command: "configure",
|
|
3747
|
-
body: { voice_agent_id, ...(options ?? {}) },
|
|
4575
|
+
body: { "voice_agent_id": voiceAgentId, ...(options ?? {}) },
|
|
3748
4576
|
});
|
|
3749
4577
|
},
|
|
3750
4578
|
/** Create a new voice agent */
|
|
3751
|
-
create: async (
|
|
4579
|
+
create: async (voiceAgentId, options) => {
|
|
3752
4580
|
return this.transport.call({
|
|
3753
4581
|
groupSegments: ["prox", "calls", "voice-agents"],
|
|
3754
4582
|
command: "create",
|
|
3755
|
-
body: { voice_agent_id, ...(options ?? {}) },
|
|
4583
|
+
body: { "voice_agent_id": voiceAgentId, ...(options ?? {}) },
|
|
3756
4584
|
});
|
|
3757
4585
|
},
|
|
3758
4586
|
/** List voice agents */
|
|
@@ -3764,27 +4592,27 @@ export class RaviClient {
|
|
|
3764
4592
|
});
|
|
3765
4593
|
},
|
|
3766
4594
|
/** Show a voice agent by ID */
|
|
3767
|
-
show: async (
|
|
4595
|
+
show: async (voiceAgentId) => {
|
|
3768
4596
|
return this.transport.call({
|
|
3769
4597
|
groupSegments: ["prox", "calls", "voice-agents"],
|
|
3770
4598
|
command: "show",
|
|
3771
|
-
body: { voice_agent_id },
|
|
4599
|
+
body: { "voice_agent_id": voiceAgentId },
|
|
3772
4600
|
});
|
|
3773
4601
|
},
|
|
3774
4602
|
/** Sync voice agent to provider (dry-run by default) */
|
|
3775
|
-
sync: async (
|
|
4603
|
+
sync: async (voiceAgentId, options) => {
|
|
3776
4604
|
return this.transport.call({
|
|
3777
4605
|
groupSegments: ["prox", "calls", "voice-agents"],
|
|
3778
4606
|
command: "sync",
|
|
3779
|
-
body: { voice_agent_id, ...(options ?? {}) },
|
|
4607
|
+
body: { "voice_agent_id": voiceAgentId, ...(options ?? {}) },
|
|
3780
4608
|
});
|
|
3781
4609
|
},
|
|
3782
4610
|
/** Unbind a tool from a voice agent */
|
|
3783
|
-
unbindTool: async (
|
|
4611
|
+
unbindTool: async (voiceAgentId, toolId) => {
|
|
3784
4612
|
return this.transport.call({
|
|
3785
4613
|
groupSegments: ["prox", "calls", "voice-agents"],
|
|
3786
4614
|
command: "unbind-tool",
|
|
3787
|
-
body: { voice_agent_id, tool_id },
|
|
4615
|
+
body: { "voice_agent_id": voiceAgentId, "tool_id": toolId },
|
|
3788
4616
|
});
|
|
3789
4617
|
}
|
|
3790
4618
|
}
|
|
@@ -4277,6 +5105,14 @@ export class RaviClient {
|
|
|
4277
5105
|
body: { nameOrKey, ...(options ?? {}) },
|
|
4278
5106
|
});
|
|
4279
5107
|
},
|
|
5108
|
+
/** Clone a session into a new chat with the chosen name: same agent, new session seeded with the recap; dry-run unless --execute */
|
|
5109
|
+
clone: async (name, options) => {
|
|
5110
|
+
return this.transport.call({
|
|
5111
|
+
groupSegments: ["sessions"],
|
|
5112
|
+
command: "clone",
|
|
5113
|
+
body: { name, ...(options ?? {}) },
|
|
5114
|
+
});
|
|
5115
|
+
},
|
|
4280
5116
|
/** Close the current Slack thread session, optionally returning a result to its parent */
|
|
4281
5117
|
closeThread: async (options) => {
|
|
4282
5118
|
return this.transport.call({
|
|
@@ -4285,6 +5121,96 @@ export class RaviClient {
|
|
|
4285
5121
|
body: { ...(options ?? {}) },
|
|
4286
5122
|
});
|
|
4287
5123
|
},
|
|
5124
|
+
conversations: {
|
|
5125
|
+
/** agents.list in the authorized private session store */
|
|
5126
|
+
agents: async (projectId, requestId, createdAt) => {
|
|
5127
|
+
return this.transport.call({
|
|
5128
|
+
groupSegments: ["sessions", "conversations"],
|
|
5129
|
+
command: "agents",
|
|
5130
|
+
body: { projectId, requestId, createdAt },
|
|
5131
|
+
});
|
|
5132
|
+
},
|
|
5133
|
+
/** turns.cancel in the authorized private session store */
|
|
5134
|
+
cancel: async (projectId, requestId, createdAt, conversationId, turnId) => {
|
|
5135
|
+
return this.transport.call({
|
|
5136
|
+
groupSegments: ["sessions", "conversations"],
|
|
5137
|
+
command: "cancel",
|
|
5138
|
+
body: { projectId, requestId, createdAt, conversationId, turnId },
|
|
5139
|
+
});
|
|
5140
|
+
},
|
|
5141
|
+
/** conversations.create in the authorized private session store */
|
|
5142
|
+
create: async (projectId, requestId, createdAt, agentId) => {
|
|
5143
|
+
return this.transport.call({
|
|
5144
|
+
groupSegments: ["sessions", "conversations"],
|
|
5145
|
+
command: "create",
|
|
5146
|
+
body: { projectId, requestId, createdAt, agentId },
|
|
5147
|
+
});
|
|
5148
|
+
},
|
|
5149
|
+
/** approvals.decide in the authorized private session store */
|
|
5150
|
+
decide: async (projectId, requestId, createdAt, conversationId, approvalId, decision, expectedVersion, actionDigest) => {
|
|
5151
|
+
return this.transport.call({
|
|
5152
|
+
groupSegments: ["sessions", "conversations"],
|
|
5153
|
+
command: "decide",
|
|
5154
|
+
body: { projectId, requestId, createdAt, conversationId, approvalId, decision, expectedVersion, actionDigest },
|
|
5155
|
+
});
|
|
5156
|
+
},
|
|
5157
|
+
/** events.read in the authorized private session store */
|
|
5158
|
+
events: async (projectId, requestId, createdAt, conversationId, cursor) => {
|
|
5159
|
+
return this.transport.call({
|
|
5160
|
+
groupSegments: ["sessions", "conversations"],
|
|
5161
|
+
command: "events",
|
|
5162
|
+
body: { projectId, requestId, createdAt, conversationId, cursor },
|
|
5163
|
+
});
|
|
5164
|
+
},
|
|
5165
|
+
/** messages.list in the authorized private session store */
|
|
5166
|
+
history: async (projectId, requestId, createdAt, conversationId, before) => {
|
|
5167
|
+
return this.transport.call({
|
|
5168
|
+
groupSegments: ["sessions", "conversations"],
|
|
5169
|
+
command: "history",
|
|
5170
|
+
body: { projectId, requestId, createdAt, conversationId, before },
|
|
5171
|
+
});
|
|
5172
|
+
},
|
|
5173
|
+
/** conversations.list in the authorized private session store */
|
|
5174
|
+
list: async (projectId, requestId, createdAt, options) => {
|
|
5175
|
+
return this.transport.call({
|
|
5176
|
+
groupSegments: ["sessions", "conversations"],
|
|
5177
|
+
command: "list",
|
|
5178
|
+
body: { projectId, requestId, createdAt, ...(options ?? {}) },
|
|
5179
|
+
});
|
|
5180
|
+
},
|
|
5181
|
+
/** conversations.open in the authorized private session store */
|
|
5182
|
+
open: async (projectId, requestId, createdAt, conversationId) => {
|
|
5183
|
+
return this.transport.call({
|
|
5184
|
+
groupSegments: ["sessions", "conversations"],
|
|
5185
|
+
command: "open",
|
|
5186
|
+
body: { projectId, requestId, createdAt, conversationId },
|
|
5187
|
+
});
|
|
5188
|
+
},
|
|
5189
|
+
/** requests.get in the authorized private session store */
|
|
5190
|
+
receipt: async (projectId, requestId, createdAt, targetRequestId) => {
|
|
5191
|
+
return this.transport.call({
|
|
5192
|
+
groupSegments: ["sessions", "conversations"],
|
|
5193
|
+
command: "receipt",
|
|
5194
|
+
body: { projectId, requestId, createdAt, targetRequestId },
|
|
5195
|
+
});
|
|
5196
|
+
},
|
|
5197
|
+
/** lease.renew in the authorized private session store */
|
|
5198
|
+
renew: async (projectId, requestId, createdAt, conversationId) => {
|
|
5199
|
+
return this.transport.call({
|
|
5200
|
+
groupSegments: ["sessions", "conversations"],
|
|
5201
|
+
command: "renew",
|
|
5202
|
+
body: { projectId, requestId, createdAt, conversationId },
|
|
5203
|
+
});
|
|
5204
|
+
},
|
|
5205
|
+
/** messages.send in the authorized private session store */
|
|
5206
|
+
send: async (projectId, requestId, createdAt, conversationId, text, expectedVersion) => {
|
|
5207
|
+
return this.transport.call({
|
|
5208
|
+
groupSegments: ["sessions", "conversations"],
|
|
5209
|
+
command: "send",
|
|
5210
|
+
body: { projectId, requestId, createdAt, conversationId, text, expectedVersion },
|
|
5211
|
+
});
|
|
5212
|
+
}
|
|
5213
|
+
},
|
|
4288
5214
|
/** Create a native Slack thread and start a child session in it */
|
|
4289
5215
|
createThread: async (message, options) => {
|
|
4290
5216
|
return this.transport.call({
|
|
@@ -4431,6 +5357,22 @@ export class RaviClient {
|
|
|
4431
5357
|
body: { action, nameOrKey, objective, ...(options ?? {}) },
|
|
4432
5358
|
});
|
|
4433
5359
|
},
|
|
5360
|
+
/** Mark a thread's open handoff as handled by the parent (for actions that do not message the thread) */
|
|
5361
|
+
handoffAck: async (handoff, options) => {
|
|
5362
|
+
return this.transport.call({
|
|
5363
|
+
groupSegments: ["sessions"],
|
|
5364
|
+
command: "handoff-ack",
|
|
5365
|
+
body: { handoff, ...(options ?? {}) },
|
|
5366
|
+
});
|
|
5367
|
+
},
|
|
5368
|
+
/** List what threads are waiting for their parent session to do (open handoffs) */
|
|
5369
|
+
handoffs: async (options) => {
|
|
5370
|
+
return this.transport.call({
|
|
5371
|
+
groupSegments: ["sessions"],
|
|
5372
|
+
command: "handoffs",
|
|
5373
|
+
body: { ...(options ?? {}) },
|
|
5374
|
+
});
|
|
5375
|
+
},
|
|
4434
5376
|
/** Show unified session inspection details */
|
|
4435
5377
|
info: async (nameOrKey) => {
|
|
4436
5378
|
return this.transport.call({
|
|
@@ -4463,6 +5405,22 @@ export class RaviClient {
|
|
|
4463
5405
|
body: { ...(options ?? {}) },
|
|
4464
5406
|
});
|
|
4465
5407
|
},
|
|
5408
|
+
/** Watch another session and get a short notice in this one when something is wrong (or on every turn) */
|
|
5409
|
+
observe: async (source, options) => {
|
|
5410
|
+
return this.transport.call({
|
|
5411
|
+
groupSegments: ["sessions"],
|
|
5412
|
+
command: "observe",
|
|
5413
|
+
body: { source, ...(options ?? {}) },
|
|
5414
|
+
});
|
|
5415
|
+
},
|
|
5416
|
+
/** List the observations started with 'ravi sessions observe' that you can see */
|
|
5417
|
+
observing: async () => {
|
|
5418
|
+
return this.transport.call({
|
|
5419
|
+
groupSegments: ["sessions"],
|
|
5420
|
+
command: "observing",
|
|
5421
|
+
body: {},
|
|
5422
|
+
});
|
|
5423
|
+
},
|
|
4466
5424
|
/** Prune sessions inactive for a duration (dry-run by default) */
|
|
4467
5425
|
prune: async (options) => {
|
|
4468
5426
|
return this.transport.call({
|
|
@@ -4495,6 +5453,14 @@ export class RaviClient {
|
|
|
4495
5453
|
body: { nameOrKey, newName },
|
|
4496
5454
|
});
|
|
4497
5455
|
},
|
|
5456
|
+
/** Report progress from a Slack thread to its parent session without closing the thread */
|
|
5457
|
+
report: async (message, options) => {
|
|
5458
|
+
return this.transport.call({
|
|
5459
|
+
groupSegments: ["sessions"],
|
|
5460
|
+
command: "report",
|
|
5461
|
+
body: { message, ...(options ?? {}) },
|
|
5462
|
+
});
|
|
5463
|
+
},
|
|
4498
5464
|
/** Reset a session (fresh start) */
|
|
4499
5465
|
reset: async (nameOrKey, options) => {
|
|
4500
5466
|
return this.transport.call({
|
|
@@ -4625,6 +5591,30 @@ export class RaviClient {
|
|
|
4625
5591
|
body: { nameOrKey },
|
|
4626
5592
|
});
|
|
4627
5593
|
},
|
|
5594
|
+
/** Configure runtime options for a Slack thread owned by this parent session */
|
|
5595
|
+
threadConfigure: async (thread, options) => {
|
|
5596
|
+
return this.transport.call({
|
|
5597
|
+
groupSegments: ["sessions"],
|
|
5598
|
+
command: "thread-configure",
|
|
5599
|
+
body: { thread, ...(options ?? {}) },
|
|
5600
|
+
});
|
|
5601
|
+
},
|
|
5602
|
+
/** Send new instructions to one of this session's Slack threads */
|
|
5603
|
+
threadSend: async (thread, message, options) => {
|
|
5604
|
+
return this.transport.call({
|
|
5605
|
+
groupSegments: ["sessions"],
|
|
5606
|
+
command: "thread-send",
|
|
5607
|
+
body: { thread, message, ...(options ?? {}) },
|
|
5608
|
+
});
|
|
5609
|
+
},
|
|
5610
|
+
/** List the Slack threads this session opened or owns */
|
|
5611
|
+
threads: async (options) => {
|
|
5612
|
+
return this.transport.call({
|
|
5613
|
+
groupSegments: ["sessions"],
|
|
5614
|
+
command: "threads",
|
|
5615
|
+
body: { ...(options ?? {}) },
|
|
5616
|
+
});
|
|
5617
|
+
},
|
|
4628
5618
|
/** Read the SQLite session trace timeline */
|
|
4629
5619
|
trace: async (nameOrKey, options) => {
|
|
4630
5620
|
return this.transport.call({
|
|
@@ -4633,6 +5623,22 @@ export class RaviClient {
|
|
|
4633
5623
|
body: { nameOrKey, ...(options ?? {}) },
|
|
4634
5624
|
});
|
|
4635
5625
|
},
|
|
5626
|
+
/** Stop watching a session started with 'ravi sessions observe' */
|
|
5627
|
+
unobserve: async (source, options) => {
|
|
5628
|
+
return this.transport.call({
|
|
5629
|
+
groupSegments: ["sessions"],
|
|
5630
|
+
command: "unobserve",
|
|
5631
|
+
body: { source, ...(options ?? {}) },
|
|
5632
|
+
});
|
|
5633
|
+
},
|
|
5634
|
+
/** Atomically update session provider/model/effort/thinking, prove the result with a live provider turn, and roll back on failure */
|
|
5635
|
+
update: async (nameOrKey, options) => {
|
|
5636
|
+
return this.transport.call({
|
|
5637
|
+
groupSegments: ["sessions"],
|
|
5638
|
+
command: "update",
|
|
5639
|
+
body: { nameOrKey, ...(options ?? {}) },
|
|
5640
|
+
});
|
|
5641
|
+
},
|
|
4636
5642
|
/** Show runtime session visibility state */
|
|
4637
5643
|
visibility: async (nameOrKey) => {
|
|
4638
5644
|
return this.transport.call({
|
|
@@ -4676,6 +5682,112 @@ export class RaviClient {
|
|
|
4676
5682
|
});
|
|
4677
5683
|
}
|
|
4678
5684
|
};
|
|
5685
|
+
signals = {
|
|
5686
|
+
/** Acknowledge a signal */
|
|
5687
|
+
ack: async (idOrKey, options) => {
|
|
5688
|
+
return this.transport.call({
|
|
5689
|
+
groupSegments: ["signals"],
|
|
5690
|
+
command: "ack",
|
|
5691
|
+
body: { idOrKey, ...(options ?? {}) },
|
|
5692
|
+
});
|
|
5693
|
+
},
|
|
5694
|
+
/** Show the daily surface budget */
|
|
5695
|
+
budget: async () => {
|
|
5696
|
+
return this.transport.call({
|
|
5697
|
+
groupSegments: ["signals"],
|
|
5698
|
+
command: "budget",
|
|
5699
|
+
body: {},
|
|
5700
|
+
});
|
|
5701
|
+
},
|
|
5702
|
+
/** Explain why a signal is or is not visible */
|
|
5703
|
+
explain: async (idOrKey) => {
|
|
5704
|
+
return this.transport.call({
|
|
5705
|
+
groupSegments: ["signals"],
|
|
5706
|
+
command: "explain",
|
|
5707
|
+
body: { idOrKey },
|
|
5708
|
+
});
|
|
5709
|
+
},
|
|
5710
|
+
/** List signals */
|
|
5711
|
+
list: async (options) => {
|
|
5712
|
+
return this.transport.call({
|
|
5713
|
+
groupSegments: ["signals"],
|
|
5714
|
+
command: "list",
|
|
5715
|
+
body: { ...(options ?? {}) },
|
|
5716
|
+
});
|
|
5717
|
+
},
|
|
5718
|
+
/** Mute a signal for a duration */
|
|
5719
|
+
mute: async (idOrKey, options) => {
|
|
5720
|
+
return this.transport.call({
|
|
5721
|
+
groupSegments: ["signals"],
|
|
5722
|
+
command: "mute",
|
|
5723
|
+
body: { idOrKey, ...(options ?? {}) },
|
|
5724
|
+
});
|
|
5725
|
+
},
|
|
5726
|
+
/** Mute a key across reopenings */
|
|
5727
|
+
muteKey: async (key, options) => {
|
|
5728
|
+
return this.transport.call({
|
|
5729
|
+
groupSegments: ["signals"],
|
|
5730
|
+
command: "mute-key",
|
|
5731
|
+
body: { key, ...(options ?? {}) },
|
|
5732
|
+
});
|
|
5733
|
+
},
|
|
5734
|
+
/** Raise or refresh a signal */
|
|
5735
|
+
raise: async (key, options) => {
|
|
5736
|
+
return this.transport.call({
|
|
5737
|
+
groupSegments: ["signals"],
|
|
5738
|
+
command: "raise",
|
|
5739
|
+
body: { key, ...(options ?? {}) },
|
|
5740
|
+
});
|
|
5741
|
+
},
|
|
5742
|
+
/** Resolve a signal with a reason */
|
|
5743
|
+
resolve: async (idOrKey, options) => {
|
|
5744
|
+
return this.transport.call({
|
|
5745
|
+
groupSegments: ["signals"],
|
|
5746
|
+
command: "resolve",
|
|
5747
|
+
body: { idOrKey, ...(options ?? {}) },
|
|
5748
|
+
});
|
|
5749
|
+
},
|
|
5750
|
+
/** Show one signal */
|
|
5751
|
+
show: async (idOrKey) => {
|
|
5752
|
+
return this.transport.call({
|
|
5753
|
+
groupSegments: ["signals"],
|
|
5754
|
+
command: "show",
|
|
5755
|
+
body: { idOrKey },
|
|
5756
|
+
});
|
|
5757
|
+
},
|
|
5758
|
+
/** Evaluate signals and escalate due ones (dry-run unless --execute) */
|
|
5759
|
+
tick: async (options) => {
|
|
5760
|
+
return this.transport.call({
|
|
5761
|
+
groupSegments: ["signals"],
|
|
5762
|
+
command: "tick",
|
|
5763
|
+
body: { ...(options ?? {}) },
|
|
5764
|
+
});
|
|
5765
|
+
},
|
|
5766
|
+
/** Unmute a signal */
|
|
5767
|
+
unmute: async (idOrKey) => {
|
|
5768
|
+
return this.transport.call({
|
|
5769
|
+
groupSegments: ["signals"],
|
|
5770
|
+
command: "unmute",
|
|
5771
|
+
body: { idOrKey },
|
|
5772
|
+
});
|
|
5773
|
+
},
|
|
5774
|
+
/** Unmute a key */
|
|
5775
|
+
unmuteKey: async (key) => {
|
|
5776
|
+
return this.transport.call({
|
|
5777
|
+
groupSegments: ["signals"],
|
|
5778
|
+
command: "unmute-key",
|
|
5779
|
+
body: { key },
|
|
5780
|
+
});
|
|
5781
|
+
},
|
|
5782
|
+
/** Update a non-terminal signal */
|
|
5783
|
+
update: async (idOrKey, options) => {
|
|
5784
|
+
return this.transport.call({
|
|
5785
|
+
groupSegments: ["signals"],
|
|
5786
|
+
command: "update",
|
|
5787
|
+
body: { idOrKey, ...(options ?? {}) },
|
|
5788
|
+
});
|
|
5789
|
+
}
|
|
5790
|
+
};
|
|
4679
5791
|
skillGates = {
|
|
4680
5792
|
/** Disable a skill gate rule */
|
|
4681
5793
|
disable: async (id) => {
|
|
@@ -4735,7 +5847,7 @@ export class RaviClient {
|
|
|
4735
5847
|
}
|
|
4736
5848
|
};
|
|
4737
5849
|
skills = {
|
|
4738
|
-
/** Grant a catalog or
|
|
5850
|
+
/** Grant a catalog, installed or Library skill (org/<slug>, <project>/<slug>) to an agent (per-agent visibility). Catalog skills need no install; use:skill:<name> capabilities work too. */
|
|
4739
5851
|
grant: async (agent, skill, options) => {
|
|
4740
5852
|
return this.transport.call({
|
|
4741
5853
|
groupSegments: ["skills"],
|
|
@@ -4751,28 +5863,76 @@ export class RaviClient {
|
|
|
4751
5863
|
body: { ...(options ?? {}) },
|
|
4752
5864
|
});
|
|
4753
5865
|
},
|
|
4754
|
-
/** Show the resolved per-agent skill allowlist (baseline ∪ permission-derived ∪ grants) */
|
|
4755
|
-
inspect: async (agent) => {
|
|
5866
|
+
/** Show the resolved per-agent skill allowlist (baseline ∪ permission-derived ∪ grants) */
|
|
5867
|
+
inspect: async (agent) => {
|
|
5868
|
+
return this.transport.call({
|
|
5869
|
+
groupSegments: ["skills"],
|
|
5870
|
+
command: "inspect",
|
|
5871
|
+
body: { agent },
|
|
5872
|
+
});
|
|
5873
|
+
},
|
|
5874
|
+
/** Install Ravi catalog skills or skills from an explicit source. Git sources and overwrites require --execute. */
|
|
5875
|
+
install: async (name, options) => {
|
|
5876
|
+
return this.transport.call({
|
|
5877
|
+
groupSegments: ["skills"],
|
|
5878
|
+
command: "install",
|
|
5879
|
+
body: { name, ...(options ?? {}) },
|
|
5880
|
+
});
|
|
5881
|
+
},
|
|
5882
|
+
/** List Ravi catalog skills, installed skills or source skills */
|
|
5883
|
+
list: async (options) => {
|
|
5884
|
+
return this.transport.call({
|
|
5885
|
+
groupSegments: ["skills"],
|
|
5886
|
+
command: "list",
|
|
5887
|
+
body: { ...(options ?? {}) },
|
|
5888
|
+
});
|
|
5889
|
+
},
|
|
5890
|
+
/** Pin a Library skill to an agent of this installation: it loads natively and is authorized for it. Requires --execute. */
|
|
5891
|
+
pin: async (ref, options) => {
|
|
5892
|
+
return this.transport.call({
|
|
5893
|
+
groupSegments: ["skills"],
|
|
5894
|
+
command: "pin",
|
|
5895
|
+
body: { ref, ...(options ?? {}) },
|
|
5896
|
+
});
|
|
5897
|
+
},
|
|
5898
|
+
/** List Library skills pinned to this installation's agents, or (<ref>) where one item is pinned */
|
|
5899
|
+
pins: async (ref, options) => {
|
|
5900
|
+
return this.transport.call({
|
|
5901
|
+
groupSegments: ["skills"],
|
|
5902
|
+
command: "pins",
|
|
5903
|
+
body: { ref, ...(options ?? {}) },
|
|
5904
|
+
});
|
|
5905
|
+
},
|
|
5906
|
+
/** Show one proposal of a Library skill: status, files and review comments */
|
|
5907
|
+
proposal: async (ref, number) => {
|
|
5908
|
+
return this.transport.call({
|
|
5909
|
+
groupSegments: ["skills"],
|
|
5910
|
+
command: "proposal",
|
|
5911
|
+
body: { ref, number },
|
|
5912
|
+
});
|
|
5913
|
+
},
|
|
5914
|
+
/** List proposals of Library skills: one item's (<ref>) or every one you can see */
|
|
5915
|
+
proposals: async (ref, options) => {
|
|
4756
5916
|
return this.transport.call({
|
|
4757
5917
|
groupSegments: ["skills"],
|
|
4758
|
-
command: "
|
|
4759
|
-
body: {
|
|
5918
|
+
command: "proposals",
|
|
5919
|
+
body: { ref, ...(options ?? {}) },
|
|
4760
5920
|
});
|
|
4761
5921
|
},
|
|
4762
|
-
/**
|
|
4763
|
-
|
|
5922
|
+
/** Propose a new version of a Library skill for review instead of publishing it (agents use this). Requires --execute. */
|
|
5923
|
+
propose: async (dir, options) => {
|
|
4764
5924
|
return this.transport.call({
|
|
4765
5925
|
groupSegments: ["skills"],
|
|
4766
|
-
command: "
|
|
4767
|
-
body: {
|
|
5926
|
+
command: "propose",
|
|
5927
|
+
body: { dir, ...(options ?? {}) },
|
|
4768
5928
|
});
|
|
4769
5929
|
},
|
|
4770
|
-
/**
|
|
4771
|
-
|
|
5930
|
+
/** Publish a skill folder to the Console Library for the organization (--scope org) or one project. Requires --execute. */
|
|
5931
|
+
publish: async (dir, options) => {
|
|
4772
5932
|
return this.transport.call({
|
|
4773
5933
|
groupSegments: ["skills"],
|
|
4774
|
-
command: "
|
|
4775
|
-
body: { ...(options ?? {}) },
|
|
5934
|
+
command: "publish",
|
|
5935
|
+
body: { dir, ...(options ?? {}) },
|
|
4776
5936
|
});
|
|
4777
5937
|
},
|
|
4778
5938
|
/** Revoke a skill grant from an agent */
|
|
@@ -4791,7 +5951,15 @@ export class RaviClient {
|
|
|
4791
5951
|
body: { ...(options ?? {}) },
|
|
4792
5952
|
});
|
|
4793
5953
|
},
|
|
4794
|
-
/**
|
|
5954
|
+
/** Search local skills and the Console Library by words (case and accent insensitive) */
|
|
5955
|
+
search: async (query, options) => {
|
|
5956
|
+
return this.transport.call({
|
|
5957
|
+
groupSegments: ["skills"],
|
|
5958
|
+
command: "search",
|
|
5959
|
+
body: { query, ...(options ?? {}) },
|
|
5960
|
+
});
|
|
5961
|
+
},
|
|
5962
|
+
/** Show a Ravi catalog skill, installed skill, source skill or Library skill (org/<slug> or <project>/<slug>) */
|
|
4795
5963
|
show: async (name, options) => {
|
|
4796
5964
|
return this.transport.call({
|
|
4797
5965
|
groupSegments: ["skills"],
|
|
@@ -4807,6 +5975,14 @@ export class RaviClient {
|
|
|
4807
5975
|
body: {},
|
|
4808
5976
|
});
|
|
4809
5977
|
},
|
|
5978
|
+
/** Unpin a Library skill from an agent of this installation (runs immediately: it reduces authority) */
|
|
5979
|
+
unpin: async (ref, options) => {
|
|
5980
|
+
return this.transport.call({
|
|
5981
|
+
groupSegments: ["skills"],
|
|
5982
|
+
command: "unpin",
|
|
5983
|
+
body: { ref, ...(options ?? {}) },
|
|
5984
|
+
});
|
|
5985
|
+
},
|
|
4810
5986
|
/** List agents currently granted a skill (or list all grants for an agent with --agent) */
|
|
4811
5987
|
who: async (skill, options) => {
|
|
4812
5988
|
return this.transport.call({
|
|
@@ -5299,6 +6475,14 @@ export class RaviClient {
|
|
|
5299
6475
|
body: { slug, ...(options ?? {}) },
|
|
5300
6476
|
});
|
|
5301
6477
|
},
|
|
6478
|
+
/** Read-only health report: unused tags, orphan bindings, tags without consumer, tags that grant power */
|
|
6479
|
+
doctor: async (options) => {
|
|
6480
|
+
return this.transport.call({
|
|
6481
|
+
groupSegments: ["tags"],
|
|
6482
|
+
command: "doctor",
|
|
6483
|
+
body: { ...(options ?? {}) },
|
|
6484
|
+
});
|
|
6485
|
+
},
|
|
5302
6486
|
/** List tag definitions */
|
|
5303
6487
|
list: async (options) => {
|
|
5304
6488
|
return this.transport.call({
|
|
@@ -5341,6 +6525,14 @@ export class RaviClient {
|
|
|
5341
6525
|
body: { taskId, ...(options ?? {}) },
|
|
5342
6526
|
});
|
|
5343
6527
|
},
|
|
6528
|
+
/** Deterministic read of open decisions waiting on humans, agents or nobody */
|
|
6529
|
+
attention: async (options) => {
|
|
6530
|
+
return this.transport.call({
|
|
6531
|
+
groupSegments: ["tasks"],
|
|
6532
|
+
command: "attention",
|
|
6533
|
+
body: { ...(options ?? {}) },
|
|
6534
|
+
});
|
|
6535
|
+
},
|
|
5344
6536
|
automations: {
|
|
5345
6537
|
/** Create a new task automation */
|
|
5346
6538
|
add: async (name, options) => {
|
|
@@ -5400,11 +6592,11 @@ export class RaviClient {
|
|
|
5400
6592
|
});
|
|
5401
6593
|
},
|
|
5402
6594
|
/** Add a comment to a task and steer the assignee if it is active */
|
|
5403
|
-
comment: async (taskId, body) => {
|
|
6595
|
+
comment: async (taskId, body, options) => {
|
|
5404
6596
|
return this.transport.call({
|
|
5405
6597
|
groupSegments: ["tasks"],
|
|
5406
6598
|
command: "comment",
|
|
5407
|
-
body: { taskId, body },
|
|
6599
|
+
body: { taskId, body, ...(options ?? {}) },
|
|
5408
6600
|
});
|
|
5409
6601
|
},
|
|
5410
6602
|
/** Create a tracked task; unresolved dependencies arm launch plans instead of dispatching early */
|
|
@@ -5540,6 +6732,88 @@ export class RaviClient {
|
|
|
5540
6732
|
});
|
|
5541
6733
|
}
|
|
5542
6734
|
};
|
|
6735
|
+
themes = {
|
|
6736
|
+
/** Show the org's and the project's active theme and the effective one */
|
|
6737
|
+
active: async (options) => {
|
|
6738
|
+
return this.transport.call({
|
|
6739
|
+
groupSegments: ["themes"],
|
|
6740
|
+
command: "active",
|
|
6741
|
+
body: { ...(options ?? {}) },
|
|
6742
|
+
});
|
|
6743
|
+
},
|
|
6744
|
+
/** Check a theme folder with the Console: compile errors and WCAG contrast (exit 2 on errors) */
|
|
6745
|
+
check: async (dir) => {
|
|
6746
|
+
return this.transport.call({
|
|
6747
|
+
groupSegments: ["themes"],
|
|
6748
|
+
command: "check",
|
|
6749
|
+
body: { dir },
|
|
6750
|
+
});
|
|
6751
|
+
},
|
|
6752
|
+
/** Write the Console's default theme files into a folder to start a theme */
|
|
6753
|
+
init: async (dir, options) => {
|
|
6754
|
+
return this.transport.call({
|
|
6755
|
+
groupSegments: ["themes"],
|
|
6756
|
+
command: "init",
|
|
6757
|
+
body: { dir, ...(options ?? {}) },
|
|
6758
|
+
});
|
|
6759
|
+
},
|
|
6760
|
+
/** Show one proposal of a Library theme: status, files and review comments */
|
|
6761
|
+
proposal: async (ref, number) => {
|
|
6762
|
+
return this.transport.call({
|
|
6763
|
+
groupSegments: ["themes"],
|
|
6764
|
+
command: "proposal",
|
|
6765
|
+
body: { ref, number },
|
|
6766
|
+
});
|
|
6767
|
+
},
|
|
6768
|
+
/** List proposals of Library themes: one item's (<ref>) or every one you can see */
|
|
6769
|
+
proposals: async (ref, options) => {
|
|
6770
|
+
return this.transport.call({
|
|
6771
|
+
groupSegments: ["themes"],
|
|
6772
|
+
command: "proposals",
|
|
6773
|
+
body: { ref, ...(options ?? {}) },
|
|
6774
|
+
});
|
|
6775
|
+
},
|
|
6776
|
+
/** Propose a new version of a Library theme for review instead of publishing it (agents use this). Requires --execute. */
|
|
6777
|
+
propose: async (dir, options) => {
|
|
6778
|
+
return this.transport.call({
|
|
6779
|
+
groupSegments: ["themes"],
|
|
6780
|
+
command: "propose",
|
|
6781
|
+
body: { dir, ...(options ?? {}) },
|
|
6782
|
+
});
|
|
6783
|
+
},
|
|
6784
|
+
/** Publish a theme folder to the Console Library for the organization (--scope org) or one project. Requires --execute. */
|
|
6785
|
+
publish: async (dir, options) => {
|
|
6786
|
+
return this.transport.call({
|
|
6787
|
+
groupSegments: ["themes"],
|
|
6788
|
+
command: "publish",
|
|
6789
|
+
body: { dir, ...(options ?? {}) },
|
|
6790
|
+
});
|
|
6791
|
+
},
|
|
6792
|
+
/** Search the Library's themes (org and the caller's project) by words */
|
|
6793
|
+
search: async (query, options) => {
|
|
6794
|
+
return this.transport.call({
|
|
6795
|
+
groupSegments: ["themes"],
|
|
6796
|
+
command: "search",
|
|
6797
|
+
body: { query, ...(options ?? {}) },
|
|
6798
|
+
});
|
|
6799
|
+
},
|
|
6800
|
+
/** Show a Library theme (org/<slug>, <project>/<slug> or a slug): version and files */
|
|
6801
|
+
show: async (ref, options) => {
|
|
6802
|
+
return this.transport.call({
|
|
6803
|
+
groupSegments: ["themes"],
|
|
6804
|
+
command: "show",
|
|
6805
|
+
body: { ref, ...(options ?? {}) },
|
|
6806
|
+
});
|
|
6807
|
+
},
|
|
6808
|
+
/** Set the active theme of the organization or a project (none clears it); the plan lists the Pages hosts it reaches. Requires --execute. */
|
|
6809
|
+
use: async (ref, options) => {
|
|
6810
|
+
return this.transport.call({
|
|
6811
|
+
groupSegments: ["themes"],
|
|
6812
|
+
command: "use",
|
|
6813
|
+
body: { ref, ...(options ?? {}) },
|
|
6814
|
+
});
|
|
6815
|
+
}
|
|
6816
|
+
};
|
|
5543
6817
|
threads = {
|
|
5544
6818
|
/** Render the bounded thread brief used for handoff */
|
|
5545
6819
|
brief: async (thread, options) => {
|
|
@@ -5766,6 +7040,252 @@ export class RaviClient {
|
|
|
5766
7040
|
});
|
|
5767
7041
|
}
|
|
5768
7042
|
};
|
|
7043
|
+
voice = {
|
|
7044
|
+
calls: {
|
|
7045
|
+
/** Tell the call whether the person is talking (holds when_idle speech until they stop) */
|
|
7046
|
+
activity: async (call, state) => {
|
|
7047
|
+
return this.transport.call({
|
|
7048
|
+
groupSegments: ["voice", "calls"],
|
|
7049
|
+
command: "activity",
|
|
7050
|
+
body: { call, state },
|
|
7051
|
+
});
|
|
7052
|
+
},
|
|
7053
|
+
/** Approve a request shown in the call (tap only; dry-run by default; requires --execute) */
|
|
7054
|
+
approve: async (call, approval, options) => {
|
|
7055
|
+
return this.transport.call({
|
|
7056
|
+
groupSegments: ["voice", "calls"],
|
|
7057
|
+
command: "approve",
|
|
7058
|
+
body: { call, approval, ...(options ?? {}) },
|
|
7059
|
+
});
|
|
7060
|
+
},
|
|
7061
|
+
/** Fetch a synthesized clip of the call */
|
|
7062
|
+
audio: async (call, item, options) => {
|
|
7063
|
+
return this.transport.call({
|
|
7064
|
+
groupSegments: ["voice", "calls"],
|
|
7065
|
+
command: "audio",
|
|
7066
|
+
body: { call, item, ...(options ?? {}) },
|
|
7067
|
+
});
|
|
7068
|
+
},
|
|
7069
|
+
/** Cancel one of this call's turns (never other work) */
|
|
7070
|
+
cancelTurn: async (call, options) => {
|
|
7071
|
+
return this.transport.call({
|
|
7072
|
+
groupSegments: ["voice", "calls"],
|
|
7073
|
+
command: "cancel-turn",
|
|
7074
|
+
body: { call, ...(options ?? {}) },
|
|
7075
|
+
});
|
|
7076
|
+
},
|
|
7077
|
+
/** (Re)connect the call's media: a new WebRTC offer or a fresh room token */
|
|
7078
|
+
connect: async (call, options) => {
|
|
7079
|
+
return this.transport.call({
|
|
7080
|
+
groupSegments: ["voice", "calls"],
|
|
7081
|
+
command: "connect",
|
|
7082
|
+
body: { call, ...(options ?? {}) },
|
|
7083
|
+
});
|
|
7084
|
+
},
|
|
7085
|
+
/** Deny a request shown in the call */
|
|
7086
|
+
deny: async (call, approval) => {
|
|
7087
|
+
return this.transport.call({
|
|
7088
|
+
groupSegments: ["voice", "calls"],
|
|
7089
|
+
command: "deny",
|
|
7090
|
+
body: { call, approval },
|
|
7091
|
+
});
|
|
7092
|
+
},
|
|
7093
|
+
/** End the call (work already running keeps going in the session) */
|
|
7094
|
+
end: async (call) => {
|
|
7095
|
+
return this.transport.call({
|
|
7096
|
+
groupSegments: ["voice", "calls"],
|
|
7097
|
+
command: "end",
|
|
7098
|
+
body: { call },
|
|
7099
|
+
});
|
|
7100
|
+
},
|
|
7101
|
+
/** Stored call events after a sequence number */
|
|
7102
|
+
events: async (call, options) => {
|
|
7103
|
+
return this.transport.call({
|
|
7104
|
+
groupSegments: ["voice", "calls"],
|
|
7105
|
+
command: "events",
|
|
7106
|
+
body: { call, ...(options ?? {}) },
|
|
7107
|
+
});
|
|
7108
|
+
},
|
|
7109
|
+
/** List voice calls */
|
|
7110
|
+
list: async (options) => {
|
|
7111
|
+
return this.transport.call({
|
|
7112
|
+
groupSegments: ["voice", "calls"],
|
|
7113
|
+
command: "list",
|
|
7114
|
+
body: { ...(options ?? {}) },
|
|
7115
|
+
});
|
|
7116
|
+
},
|
|
7117
|
+
/** Push-to-talk: send one recorded clip to the call */
|
|
7118
|
+
push: async (call, options) => {
|
|
7119
|
+
return this.transport.call({
|
|
7120
|
+
groupSegments: ["voice", "calls"],
|
|
7121
|
+
command: "push",
|
|
7122
|
+
body: { call, ...(options ?? {}) },
|
|
7123
|
+
});
|
|
7124
|
+
},
|
|
7125
|
+
/** Type into the call (or, for the voice worker, what it heard) */
|
|
7126
|
+
send: async (call, text, options) => {
|
|
7127
|
+
return this.transport.call({
|
|
7128
|
+
groupSegments: ["voice", "calls"],
|
|
7129
|
+
command: "send",
|
|
7130
|
+
body: { call, text, ...(options ?? {}) },
|
|
7131
|
+
});
|
|
7132
|
+
},
|
|
7133
|
+
/** Show one call, its engine and open approvals */
|
|
7134
|
+
show: async (call) => {
|
|
7135
|
+
return this.transport.call({
|
|
7136
|
+
groupSegments: ["voice", "calls"],
|
|
7137
|
+
command: "show",
|
|
7138
|
+
body: { call },
|
|
7139
|
+
});
|
|
7140
|
+
},
|
|
7141
|
+
/** Stop speaking now (work keeps running) */
|
|
7142
|
+
silence: async (call) => {
|
|
7143
|
+
return this.transport.call({
|
|
7144
|
+
groupSegments: ["voice", "calls"],
|
|
7145
|
+
command: "silence",
|
|
7146
|
+
body: { call },
|
|
7147
|
+
});
|
|
7148
|
+
},
|
|
7149
|
+
/** Open a voice call on an existing session */
|
|
7150
|
+
start: async (session, options) => {
|
|
7151
|
+
return this.transport.call({
|
|
7152
|
+
groupSegments: ["voice", "calls"],
|
|
7153
|
+
command: "start",
|
|
7154
|
+
body: { session, ...(options ?? {}) },
|
|
7155
|
+
});
|
|
7156
|
+
},
|
|
7157
|
+
/** What was said in the call */
|
|
7158
|
+
transcript: async (call) => {
|
|
7159
|
+
return this.transport.call({
|
|
7160
|
+
groupSegments: ["voice", "calls"],
|
|
7161
|
+
command: "transcript",
|
|
7162
|
+
body: { call },
|
|
7163
|
+
});
|
|
7164
|
+
}
|
|
7165
|
+
},
|
|
7166
|
+
devices: {
|
|
7167
|
+
/** List paired devices (never their keys) */
|
|
7168
|
+
list: async (options) => {
|
|
7169
|
+
return this.transport.call({
|
|
7170
|
+
groupSegments: ["voice", "devices"],
|
|
7171
|
+
command: "list",
|
|
7172
|
+
body: { ...(options ?? {}) },
|
|
7173
|
+
});
|
|
7174
|
+
},
|
|
7175
|
+
/** Pair a device for one person and issue its key (dry-run by default; requires --execute) */
|
|
7176
|
+
pair: async (options) => {
|
|
7177
|
+
return this.transport.call({
|
|
7178
|
+
groupSegments: ["voice", "devices"],
|
|
7179
|
+
command: "pair",
|
|
7180
|
+
body: { ...(options ?? {}) },
|
|
7181
|
+
});
|
|
7182
|
+
},
|
|
7183
|
+
/** Revoke a device key and end its calls */
|
|
7184
|
+
revoke: async (device) => {
|
|
7185
|
+
return this.transport.call({
|
|
7186
|
+
groupSegments: ["voice", "devices"],
|
|
7187
|
+
command: "revoke",
|
|
7188
|
+
body: { device },
|
|
7189
|
+
});
|
|
7190
|
+
}
|
|
7191
|
+
},
|
|
7192
|
+
engines: {
|
|
7193
|
+
/** Show what each engine is missing (no vendor calls) */
|
|
7194
|
+
check: async () => {
|
|
7195
|
+
return this.transport.call({
|
|
7196
|
+
groupSegments: ["voice", "engines"],
|
|
7197
|
+
command: "check",
|
|
7198
|
+
body: {},
|
|
7199
|
+
});
|
|
7200
|
+
},
|
|
7201
|
+
/** List voice engines and their capabilities */
|
|
7202
|
+
list: async (options) => {
|
|
7203
|
+
return this.transport.call({
|
|
7204
|
+
groupSegments: ["voice", "engines"],
|
|
7205
|
+
command: "list",
|
|
7206
|
+
body: { ...(options ?? {}) },
|
|
7207
|
+
});
|
|
7208
|
+
}
|
|
7209
|
+
},
|
|
7210
|
+
profiles: {
|
|
7211
|
+
/** Make a profile the default for one session's calls */
|
|
7212
|
+
bind: async (id, session) => {
|
|
7213
|
+
return this.transport.call({
|
|
7214
|
+
groupSegments: ["voice", "profiles"],
|
|
7215
|
+
command: "bind",
|
|
7216
|
+
body: { id, session },
|
|
7217
|
+
});
|
|
7218
|
+
},
|
|
7219
|
+
/** Create a voice profile */
|
|
7220
|
+
create: async (id, options) => {
|
|
7221
|
+
return this.transport.call({
|
|
7222
|
+
groupSegments: ["voice", "profiles"],
|
|
7223
|
+
command: "create",
|
|
7224
|
+
body: { id, ...(options ?? {}) },
|
|
7225
|
+
});
|
|
7226
|
+
},
|
|
7227
|
+
/** Delete a voice profile */
|
|
7228
|
+
delete: async (id) => {
|
|
7229
|
+
return this.transport.call({
|
|
7230
|
+
groupSegments: ["voice", "profiles"],
|
|
7231
|
+
command: "delete",
|
|
7232
|
+
body: { id },
|
|
7233
|
+
});
|
|
7234
|
+
},
|
|
7235
|
+
/** List voice profiles */
|
|
7236
|
+
list: async (options) => {
|
|
7237
|
+
return this.transport.call({
|
|
7238
|
+
groupSegments: ["voice", "profiles"],
|
|
7239
|
+
command: "list",
|
|
7240
|
+
body: { ...(options ?? {}) },
|
|
7241
|
+
});
|
|
7242
|
+
},
|
|
7243
|
+
/** Show one voice profile */
|
|
7244
|
+
show: async (id) => {
|
|
7245
|
+
return this.transport.call({
|
|
7246
|
+
groupSegments: ["voice", "profiles"],
|
|
7247
|
+
command: "show",
|
|
7248
|
+
body: { id },
|
|
7249
|
+
});
|
|
7250
|
+
},
|
|
7251
|
+
/** Remove a session's default profile */
|
|
7252
|
+
unbind: async (session) => {
|
|
7253
|
+
return this.transport.call({
|
|
7254
|
+
groupSegments: ["voice", "profiles"],
|
|
7255
|
+
command: "unbind",
|
|
7256
|
+
body: { session },
|
|
7257
|
+
});
|
|
7258
|
+
},
|
|
7259
|
+
/** Update a voice profile */
|
|
7260
|
+
update: async (id, options) => {
|
|
7261
|
+
return this.transport.call({
|
|
7262
|
+
groupSegments: ["voice", "profiles"],
|
|
7263
|
+
command: "update",
|
|
7264
|
+
body: { id, ...(options ?? {}) },
|
|
7265
|
+
});
|
|
7266
|
+
}
|
|
7267
|
+
},
|
|
7268
|
+
targets: {
|
|
7269
|
+
/** List sessions this caller can open a voice call on */
|
|
7270
|
+
list: async (options) => {
|
|
7271
|
+
return this.transport.call({
|
|
7272
|
+
groupSegments: ["voice", "targets"],
|
|
7273
|
+
command: "list",
|
|
7274
|
+
body: { ...(options ?? {}) },
|
|
7275
|
+
});
|
|
7276
|
+
}
|
|
7277
|
+
},
|
|
7278
|
+
voices: {
|
|
7279
|
+
/** List ElevenLabs voices for push-to-talk and hands-free */
|
|
7280
|
+
list: async (options) => {
|
|
7281
|
+
return this.transport.call({
|
|
7282
|
+
groupSegments: ["voice", "voices"],
|
|
7283
|
+
command: "list",
|
|
7284
|
+
body: { ...(options ?? {}) },
|
|
7285
|
+
});
|
|
7286
|
+
}
|
|
7287
|
+
}
|
|
7288
|
+
};
|
|
5769
7289
|
watch = {
|
|
5770
7290
|
/** List available watch connectors and event types */
|
|
5771
7291
|
connectors: async (options) => {
|
|
@@ -5990,6 +7510,88 @@ export class RaviClient {
|
|
|
5990
7510
|
}
|
|
5991
7511
|
}
|
|
5992
7512
|
};
|
|
7513
|
+
widgets = {
|
|
7514
|
+
/** Print the Console's widget catalog for agents: pieces, filters, field types, the org's widgets */
|
|
7515
|
+
catalog: async (options) => {
|
|
7516
|
+
return this.transport.call({
|
|
7517
|
+
groupSegments: ["widgets"],
|
|
7518
|
+
command: "catalog",
|
|
7519
|
+
body: { ...(options ?? {}) },
|
|
7520
|
+
});
|
|
7521
|
+
},
|
|
7522
|
+
/** Check a widget folder with the Console: template and accessibility errors (exit 2 on errors) */
|
|
7523
|
+
check: async (dir) => {
|
|
7524
|
+
return this.transport.call({
|
|
7525
|
+
groupSegments: ["widgets"],
|
|
7526
|
+
command: "check",
|
|
7527
|
+
body: { dir },
|
|
7528
|
+
});
|
|
7529
|
+
},
|
|
7530
|
+
/** Write a widget folder from the Console's scaffold (fields from a Bases view with --from-view) */
|
|
7531
|
+
init: async (dir, options) => {
|
|
7532
|
+
return this.transport.call({
|
|
7533
|
+
groupSegments: ["widgets"],
|
|
7534
|
+
command: "init",
|
|
7535
|
+
body: { dir, ...(options ?? {}) },
|
|
7536
|
+
});
|
|
7537
|
+
},
|
|
7538
|
+
/** Render a widget folder to a standalone HTML file (every variant, light and dark) through the Console */
|
|
7539
|
+
preview: async (dir, options) => {
|
|
7540
|
+
return this.transport.call({
|
|
7541
|
+
groupSegments: ["widgets"],
|
|
7542
|
+
command: "preview",
|
|
7543
|
+
body: { dir, ...(options ?? {}) },
|
|
7544
|
+
});
|
|
7545
|
+
},
|
|
7546
|
+
/** Show one proposal of a Library widget: status, files and review comments */
|
|
7547
|
+
proposal: async (ref, number) => {
|
|
7548
|
+
return this.transport.call({
|
|
7549
|
+
groupSegments: ["widgets"],
|
|
7550
|
+
command: "proposal",
|
|
7551
|
+
body: { ref, number },
|
|
7552
|
+
});
|
|
7553
|
+
},
|
|
7554
|
+
/** List proposals of Library widgets: one item's (<ref>) or every one you can see */
|
|
7555
|
+
proposals: async (ref, options) => {
|
|
7556
|
+
return this.transport.call({
|
|
7557
|
+
groupSegments: ["widgets"],
|
|
7558
|
+
command: "proposals",
|
|
7559
|
+
body: { ref, ...(options ?? {}) },
|
|
7560
|
+
});
|
|
7561
|
+
},
|
|
7562
|
+
/** Propose a new version of a Library widget for review instead of publishing it (agents use this). Requires --execute. */
|
|
7563
|
+
propose: async (dir, options) => {
|
|
7564
|
+
return this.transport.call({
|
|
7565
|
+
groupSegments: ["widgets"],
|
|
7566
|
+
command: "propose",
|
|
7567
|
+
body: { dir, ...(options ?? {}) },
|
|
7568
|
+
});
|
|
7569
|
+
},
|
|
7570
|
+
/** Publish a widget folder to the Console Library for the organization (--scope org) or one project. Requires --execute. */
|
|
7571
|
+
publish: async (dir, options) => {
|
|
7572
|
+
return this.transport.call({
|
|
7573
|
+
groupSegments: ["widgets"],
|
|
7574
|
+
command: "publish",
|
|
7575
|
+
body: { dir, ...(options ?? {}) },
|
|
7576
|
+
});
|
|
7577
|
+
},
|
|
7578
|
+
/** Search the Library's widgets (org and the caller's project) by words and field names */
|
|
7579
|
+
search: async (query, options) => {
|
|
7580
|
+
return this.transport.call({
|
|
7581
|
+
groupSegments: ["widgets"],
|
|
7582
|
+
command: "search",
|
|
7583
|
+
body: { query, ...(options ?? {}) },
|
|
7584
|
+
});
|
|
7585
|
+
},
|
|
7586
|
+
/** Show a Library widget (org/<slug>, <project>/<slug> or a slug): version and files */
|
|
7587
|
+
show: async (ref, options) => {
|
|
7588
|
+
return this.transport.call({
|
|
7589
|
+
groupSegments: ["widgets"],
|
|
7590
|
+
command: "show",
|
|
7591
|
+
body: { ref, ...(options ?? {}) },
|
|
7592
|
+
});
|
|
7593
|
+
}
|
|
7594
|
+
};
|
|
5993
7595
|
workObjects = {
|
|
5994
7596
|
/** Execute one Work Object action */
|
|
5995
7597
|
action: async (type, id, actionId, options) => {
|