@ravi-os/sdk 0.260927.1 → 0.261125.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 +1687 -156
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +2099 -211
- 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 +92631 -45463
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +122764 -59782
- 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 +13404 -2229
- 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 = {
|
|
@@ -380,6 +546,368 @@ export class RaviClient {
|
|
|
380
546
|
});
|
|
381
547
|
}
|
|
382
548
|
};
|
|
549
|
+
bases = {
|
|
550
|
+
/** Group and aggregate rows on the server (direct readers) */
|
|
551
|
+
aggregate: async (base, options) => {
|
|
552
|
+
return this.transport.call({
|
|
553
|
+
groupSegments: ["bases"],
|
|
554
|
+
command: "aggregate",
|
|
555
|
+
body: { base, ...(options ?? {}) },
|
|
556
|
+
});
|
|
557
|
+
},
|
|
558
|
+
/** Archive a base (read-only, hidden from lists) */
|
|
559
|
+
archive: async (base, options) => {
|
|
560
|
+
return this.transport.call({
|
|
561
|
+
groupSegments: ["bases"],
|
|
562
|
+
command: "archive",
|
|
563
|
+
body: { base, ...(options ?? {}) },
|
|
564
|
+
});
|
|
565
|
+
},
|
|
566
|
+
charts: {
|
|
567
|
+
/** Archive a chart */
|
|
568
|
+
archive: async (base, chart, options) => {
|
|
569
|
+
return this.transport.call({
|
|
570
|
+
groupSegments: ["bases", "charts"],
|
|
571
|
+
command: "archive",
|
|
572
|
+
body: { base, chart, ...(options ?? {}) },
|
|
573
|
+
});
|
|
574
|
+
},
|
|
575
|
+
/** Create a chart on a view from a Vega-Lite subset spec */
|
|
576
|
+
create: async (base, options) => {
|
|
577
|
+
return this.transport.call({
|
|
578
|
+
groupSegments: ["bases", "charts"],
|
|
579
|
+
command: "create",
|
|
580
|
+
body: { base, ...(options ?? {}) },
|
|
581
|
+
});
|
|
582
|
+
},
|
|
583
|
+
/** Fetch the aggregated data of a chart */
|
|
584
|
+
data: async (base, chart, options) => {
|
|
585
|
+
return this.transport.call({
|
|
586
|
+
groupSegments: ["bases", "charts"],
|
|
587
|
+
command: "data",
|
|
588
|
+
body: { base, chart, ...(options ?? {}) },
|
|
589
|
+
});
|
|
590
|
+
},
|
|
591
|
+
/** List the charts you can read on a base */
|
|
592
|
+
list: async (base, options) => {
|
|
593
|
+
return this.transport.call({
|
|
594
|
+
groupSegments: ["bases", "charts"],
|
|
595
|
+
command: "list",
|
|
596
|
+
body: { base, ...(options ?? {}) },
|
|
597
|
+
});
|
|
598
|
+
},
|
|
599
|
+
/** Show a chart spec */
|
|
600
|
+
show: async (base, chart, options) => {
|
|
601
|
+
return this.transport.call({
|
|
602
|
+
groupSegments: ["bases", "charts"],
|
|
603
|
+
command: "show",
|
|
604
|
+
body: { base, chart, ...(options ?? {}) },
|
|
605
|
+
});
|
|
606
|
+
},
|
|
607
|
+
/** Update a chart from a partial JSON spec */
|
|
608
|
+
update: async (base, chart, options) => {
|
|
609
|
+
return this.transport.call({
|
|
610
|
+
groupSegments: ["bases", "charts"],
|
|
611
|
+
command: "update",
|
|
612
|
+
body: { base, chart, ...(options ?? {}) },
|
|
613
|
+
});
|
|
614
|
+
}
|
|
615
|
+
},
|
|
616
|
+
/** Create a base, optionally with an initial schema */
|
|
617
|
+
create: async (name, options) => {
|
|
618
|
+
return this.transport.call({
|
|
619
|
+
groupSegments: ["bases"],
|
|
620
|
+
command: "create",
|
|
621
|
+
body: { name, ...(options ?? {}) },
|
|
622
|
+
});
|
|
623
|
+
},
|
|
624
|
+
/** List the bases of a Console project */
|
|
625
|
+
list: async (options) => {
|
|
626
|
+
return this.transport.call({
|
|
627
|
+
groupSegments: ["bases"],
|
|
628
|
+
command: "list",
|
|
629
|
+
body: { ...(options ?? {}) },
|
|
630
|
+
});
|
|
631
|
+
},
|
|
632
|
+
props: {
|
|
633
|
+
/** Add a property to a base */
|
|
634
|
+
add: async (base, name, options) => {
|
|
635
|
+
return this.transport.call({
|
|
636
|
+
groupSegments: ["bases", "props"],
|
|
637
|
+
command: "add",
|
|
638
|
+
body: { base, name, ...(options ?? {}) },
|
|
639
|
+
});
|
|
640
|
+
},
|
|
641
|
+
/** Soft-delete a property; reports dependents unless --execute */
|
|
642
|
+
delete: async (base, prop, options) => {
|
|
643
|
+
return this.transport.call({
|
|
644
|
+
groupSegments: ["bases", "props"],
|
|
645
|
+
command: "delete",
|
|
646
|
+
body: { base, prop, ...(options ?? {}) },
|
|
647
|
+
});
|
|
648
|
+
},
|
|
649
|
+
/** List the properties of a base */
|
|
650
|
+
list: async (base, options) => {
|
|
651
|
+
return this.transport.call({
|
|
652
|
+
groupSegments: ["bases", "props"],
|
|
653
|
+
command: "list",
|
|
654
|
+
body: { base, ...(options ?? {}) },
|
|
655
|
+
});
|
|
656
|
+
},
|
|
657
|
+
/** Restore a soft-deleted property while its key is free */
|
|
658
|
+
restore: async (base, prop, options) => {
|
|
659
|
+
return this.transport.call({
|
|
660
|
+
groupSegments: ["bases", "props"],
|
|
661
|
+
command: "restore",
|
|
662
|
+
body: { base, prop, ...(options ?? {}) },
|
|
663
|
+
});
|
|
664
|
+
},
|
|
665
|
+
/** Update a property; type changes are dry-run unless --execute */
|
|
666
|
+
update: async (base, prop, options) => {
|
|
667
|
+
return this.transport.call({
|
|
668
|
+
groupSegments: ["bases", "props"],
|
|
669
|
+
command: "update",
|
|
670
|
+
body: { base, prop, ...(options ?? {}) },
|
|
671
|
+
});
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
/** Restore an archived base */
|
|
675
|
+
restore: async (base, options) => {
|
|
676
|
+
return this.transport.call({
|
|
677
|
+
groupSegments: ["bases"],
|
|
678
|
+
command: "restore",
|
|
679
|
+
body: { base, ...(options ?? {}) },
|
|
680
|
+
});
|
|
681
|
+
},
|
|
682
|
+
rows: {
|
|
683
|
+
/** Create a row (directly or through a view) */
|
|
684
|
+
add: async (base, options) => {
|
|
685
|
+
return this.transport.call({
|
|
686
|
+
groupSegments: ["bases", "rows"],
|
|
687
|
+
command: "add",
|
|
688
|
+
body: { base, ...(options ?? {}) },
|
|
689
|
+
});
|
|
690
|
+
},
|
|
691
|
+
/** Approve a row on an approval property (dry-run unless --execute) */
|
|
692
|
+
approve: async (base, row, prop, options) => {
|
|
693
|
+
return this.transport.call({
|
|
694
|
+
groupSegments: ["bases", "rows"],
|
|
695
|
+
command: "approve",
|
|
696
|
+
body: { base, row, prop, ...(options ?? {}) },
|
|
697
|
+
});
|
|
698
|
+
},
|
|
699
|
+
/** Archive a row (restorable) */
|
|
700
|
+
archive: async (base, row, options) => {
|
|
701
|
+
return this.transport.call({
|
|
702
|
+
groupSegments: ["bases", "rows"],
|
|
703
|
+
command: "archive",
|
|
704
|
+
body: { base, row, ...(options ?? {}) },
|
|
705
|
+
});
|
|
706
|
+
},
|
|
707
|
+
/** Export rows as CSV or JSON (follows every page) */
|
|
708
|
+
export: async (base, options) => {
|
|
709
|
+
return this.transport.call({
|
|
710
|
+
groupSegments: ["bases", "rows"],
|
|
711
|
+
command: "export",
|
|
712
|
+
body: { base, ...(options ?? {}) },
|
|
713
|
+
});
|
|
714
|
+
},
|
|
715
|
+
/** Store an agent column's value (or error) for the inputs you read */
|
|
716
|
+
fill: async (base, row, prop, options) => {
|
|
717
|
+
return this.transport.call({
|
|
718
|
+
groupSegments: ["bases", "rows"],
|
|
719
|
+
command: "fill",
|
|
720
|
+
body: { base, row, prop, ...(options ?? {}) },
|
|
721
|
+
});
|
|
722
|
+
},
|
|
723
|
+
/** Read one row (with its body) */
|
|
724
|
+
get: async (base, row, options) => {
|
|
725
|
+
return this.transport.call({
|
|
726
|
+
groupSegments: ["bases", "rows"],
|
|
727
|
+
command: "get",
|
|
728
|
+
body: { base, row, ...(options ?? {}) },
|
|
729
|
+
});
|
|
730
|
+
},
|
|
731
|
+
/** Show the ledger of a row (who changed what, when) */
|
|
732
|
+
history: async (base, row, options) => {
|
|
733
|
+
return this.transport.call({
|
|
734
|
+
groupSegments: ["bases", "rows"],
|
|
735
|
+
command: "history",
|
|
736
|
+
body: { base, row, ...(options ?? {}) },
|
|
737
|
+
});
|
|
738
|
+
},
|
|
739
|
+
/** Import a CSV file as new rows in batches (dry-run unless --execute) */
|
|
740
|
+
import: async (base, file, options) => {
|
|
741
|
+
return this.transport.call({
|
|
742
|
+
groupSegments: ["bases", "rows"],
|
|
743
|
+
command: "import",
|
|
744
|
+
body: { base, file, ...(options ?? {}) },
|
|
745
|
+
});
|
|
746
|
+
},
|
|
747
|
+
/** Hard-delete a row and its history (irreversible) */
|
|
748
|
+
purge: async (base, row, options) => {
|
|
749
|
+
return this.transport.call({
|
|
750
|
+
groupSegments: ["bases", "rows"],
|
|
751
|
+
command: "purge",
|
|
752
|
+
body: { base, row, ...(options ?? {}) },
|
|
753
|
+
});
|
|
754
|
+
},
|
|
755
|
+
/** Query rows with the Query AST (directly or through a view) */
|
|
756
|
+
query: async (base, options) => {
|
|
757
|
+
return this.transport.call({
|
|
758
|
+
groupSegments: ["bases", "rows"],
|
|
759
|
+
command: "query",
|
|
760
|
+
body: { base, ...(options ?? {}) },
|
|
761
|
+
});
|
|
762
|
+
},
|
|
763
|
+
/** Reject a row on an approval property (dry-run unless --execute) */
|
|
764
|
+
reject: async (base, row, prop, options) => {
|
|
765
|
+
return this.transport.call({
|
|
766
|
+
groupSegments: ["bases", "rows"],
|
|
767
|
+
command: "reject",
|
|
768
|
+
body: { base, row, prop, ...(options ?? {}) },
|
|
769
|
+
});
|
|
770
|
+
},
|
|
771
|
+
/** Ask for a decision on an approval property (state pending) */
|
|
772
|
+
requestApproval: async (base, row, prop, options) => {
|
|
773
|
+
return this.transport.call({
|
|
774
|
+
groupSegments: ["bases", "rows"],
|
|
775
|
+
command: "request-approval",
|
|
776
|
+
body: { base, row, prop, ...(options ?? {}) },
|
|
777
|
+
});
|
|
778
|
+
},
|
|
779
|
+
/** Ask the agent again for an agent column (state pending) */
|
|
780
|
+
rerun: async (base, row, prop, options) => {
|
|
781
|
+
return this.transport.call({
|
|
782
|
+
groupSegments: ["bases", "rows"],
|
|
783
|
+
command: "rerun",
|
|
784
|
+
body: { base, row, prop, ...(options ?? {}) },
|
|
785
|
+
});
|
|
786
|
+
},
|
|
787
|
+
/** Restore an archived row (direct writers) */
|
|
788
|
+
restore: async (base, row, options) => {
|
|
789
|
+
return this.transport.call({
|
|
790
|
+
groupSegments: ["bases", "rows"],
|
|
791
|
+
command: "restore",
|
|
792
|
+
body: { base, row, ...(options ?? {}) },
|
|
793
|
+
});
|
|
794
|
+
},
|
|
795
|
+
/** Patch a row; needs --expected-version or --last-write-wins */
|
|
796
|
+
update: async (base, row, options) => {
|
|
797
|
+
return this.transport.call({
|
|
798
|
+
groupSegments: ["bases", "rows"],
|
|
799
|
+
command: "update",
|
|
800
|
+
body: { base, row, ...(options ?? {}) },
|
|
801
|
+
});
|
|
802
|
+
}
|
|
803
|
+
},
|
|
804
|
+
/** Show a base: schema, views, and charts */
|
|
805
|
+
show: async (base, options) => {
|
|
806
|
+
return this.transport.call({
|
|
807
|
+
groupSegments: ["bases"],
|
|
808
|
+
command: "show",
|
|
809
|
+
body: { base, ...(options ?? {}) },
|
|
810
|
+
});
|
|
811
|
+
},
|
|
812
|
+
/** Deliver this base's row events to this installation's inbox, optionally filtered and with a trigger */
|
|
813
|
+
subscribe: async (base, options) => {
|
|
814
|
+
return this.transport.call({
|
|
815
|
+
groupSegments: ["bases"],
|
|
816
|
+
command: "subscribe",
|
|
817
|
+
body: { base, ...(options ?? {}) },
|
|
818
|
+
});
|
|
819
|
+
},
|
|
820
|
+
/** List row-event subscriptions of a base */
|
|
821
|
+
subscriptions: async (base, options) => {
|
|
822
|
+
return this.transport.call({
|
|
823
|
+
groupSegments: ["bases"],
|
|
824
|
+
command: "subscriptions",
|
|
825
|
+
body: { base, ...(options ?? {}) },
|
|
826
|
+
});
|
|
827
|
+
},
|
|
828
|
+
/** Stop delivering this base's row events to an installation */
|
|
829
|
+
unsubscribe: async (base, subscription, options) => {
|
|
830
|
+
return this.transport.call({
|
|
831
|
+
groupSegments: ["bases"],
|
|
832
|
+
command: "unsubscribe",
|
|
833
|
+
body: { base, subscription, ...(options ?? {}) },
|
|
834
|
+
});
|
|
835
|
+
},
|
|
836
|
+
/** Update base metadata (name, slug, description, icon, timezone) */
|
|
837
|
+
update: async (base, options) => {
|
|
838
|
+
return this.transport.call({
|
|
839
|
+
groupSegments: ["bases"],
|
|
840
|
+
command: "update",
|
|
841
|
+
body: { base, ...(options ?? {}) },
|
|
842
|
+
});
|
|
843
|
+
},
|
|
844
|
+
views: {
|
|
845
|
+
/** Archive a view (Pages and charts using it stop working) */
|
|
846
|
+
archive: async (base, view, options) => {
|
|
847
|
+
return this.transport.call({
|
|
848
|
+
groupSegments: ["bases", "views"],
|
|
849
|
+
command: "archive",
|
|
850
|
+
body: { base, view, ...(options ?? {}) },
|
|
851
|
+
});
|
|
852
|
+
},
|
|
853
|
+
/** Bind a Library widget to a board, list, gallery or calendar view (layout.widget), or none to unbind */
|
|
854
|
+
bind: async (base, view, widget, options) => {
|
|
855
|
+
return this.transport.call({
|
|
856
|
+
groupSegments: ["bases", "views"],
|
|
857
|
+
command: "bind",
|
|
858
|
+
body: { base, view, widget, ...(options ?? {}) },
|
|
859
|
+
});
|
|
860
|
+
},
|
|
861
|
+
/** Create a view from a JSON spec (columns, query, layout, access) */
|
|
862
|
+
create: async (base, options) => {
|
|
863
|
+
return this.transport.call({
|
|
864
|
+
groupSegments: ["bases", "views"],
|
|
865
|
+
command: "create",
|
|
866
|
+
body: { base, ...(options ?? {}) },
|
|
867
|
+
});
|
|
868
|
+
},
|
|
869
|
+
/** List the views you can use on a base */
|
|
870
|
+
list: async (base, options) => {
|
|
871
|
+
return this.transport.call({
|
|
872
|
+
groupSegments: ["bases", "views"],
|
|
873
|
+
command: "list",
|
|
874
|
+
body: { base, ...(options ?? {}) },
|
|
875
|
+
});
|
|
876
|
+
},
|
|
877
|
+
/** Query rows through a view (its filter and columns apply) */
|
|
878
|
+
query: async (base, view, options) => {
|
|
879
|
+
return this.transport.call({
|
|
880
|
+
groupSegments: ["bases", "views"],
|
|
881
|
+
command: "query",
|
|
882
|
+
body: { base, view, ...(options ?? {}) },
|
|
883
|
+
});
|
|
884
|
+
},
|
|
885
|
+
/** Give a Ravi Pages site (every route of its host) read, and optionally write, access to a view */
|
|
886
|
+
share: async (base, view, options) => {
|
|
887
|
+
return this.transport.call({
|
|
888
|
+
groupSegments: ["bases", "views"],
|
|
889
|
+
command: "share",
|
|
890
|
+
body: { base, view, ...(options ?? {}) },
|
|
891
|
+
});
|
|
892
|
+
},
|
|
893
|
+
/** Describe a view: columns, layout, your capabilities (and policy for managers) */
|
|
894
|
+
show: async (base, view, options) => {
|
|
895
|
+
return this.transport.call({
|
|
896
|
+
groupSegments: ["bases", "views"],
|
|
897
|
+
command: "show",
|
|
898
|
+
body: { base, view, ...(options ?? {}) },
|
|
899
|
+
});
|
|
900
|
+
},
|
|
901
|
+
/** Update a view from a partial JSON spec */
|
|
902
|
+
update: async (base, view, options) => {
|
|
903
|
+
return this.transport.call({
|
|
904
|
+
groupSegments: ["bases", "views"],
|
|
905
|
+
command: "update",
|
|
906
|
+
body: { base, view, ...(options ?? {}) },
|
|
907
|
+
});
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
};
|
|
383
911
|
bridges = {
|
|
384
912
|
/** Create a Ravi MCP bridge URL for a Console project */
|
|
385
913
|
create: async (options) => {
|
|
@@ -769,8 +1297,130 @@ export class RaviClient {
|
|
|
769
1297
|
}
|
|
770
1298
|
};
|
|
771
1299
|
cloud = {
|
|
1300
|
+
agents: {
|
|
1301
|
+
/** Approve a cloud agent's capability manifest (owner or admin). Requires --execute. */
|
|
1302
|
+
approve: async (agent, options) => {
|
|
1303
|
+
return this.transport.call({
|
|
1304
|
+
groupSegments: ["cloud", "agents"],
|
|
1305
|
+
command: "approve",
|
|
1306
|
+
body: { agent, ...(options ?? {}) },
|
|
1307
|
+
});
|
|
1308
|
+
},
|
|
1309
|
+
/** Archive a cloud agent (no new runs; past runs stay readable) */
|
|
1310
|
+
archive: async (agent, options) => {
|
|
1311
|
+
return this.transport.call({
|
|
1312
|
+
groupSegments: ["cloud", "agents"],
|
|
1313
|
+
command: "archive",
|
|
1314
|
+
body: { agent, ...(options ?? {}) },
|
|
1315
|
+
});
|
|
1316
|
+
},
|
|
1317
|
+
/** Set a cloud agent's monthly cap in US$ (or none). Requires --execute when raising it. */
|
|
1318
|
+
cap: async (agent, usd, options) => {
|
|
1319
|
+
return this.transport.call({
|
|
1320
|
+
groupSegments: ["cloud", "agents"],
|
|
1321
|
+
command: "cap",
|
|
1322
|
+
body: { agent, usd, ...(options ?? {}) },
|
|
1323
|
+
});
|
|
1324
|
+
},
|
|
1325
|
+
/** Deploy a Library agent to the cloud for a project. Requires --execute. */
|
|
1326
|
+
deploy: async (agent, options) => {
|
|
1327
|
+
return this.transport.call({
|
|
1328
|
+
groupSegments: ["cloud", "agents"],
|
|
1329
|
+
command: "deploy",
|
|
1330
|
+
body: { agent, ...(options ?? {}) },
|
|
1331
|
+
});
|
|
1332
|
+
},
|
|
1333
|
+
/** List the cloud agents of a Console project */
|
|
1334
|
+
list: async (options) => {
|
|
1335
|
+
return this.transport.call({
|
|
1336
|
+
groupSegments: ["cloud", "agents"],
|
|
1337
|
+
command: "list",
|
|
1338
|
+
body: { ...(options ?? {}) },
|
|
1339
|
+
});
|
|
1340
|
+
},
|
|
1341
|
+
/** Archive a cloud agent's memory stores (its runs start with empty memory). Requires --execute. */
|
|
1342
|
+
memoryReset: async (agent, options) => {
|
|
1343
|
+
return this.transport.call({
|
|
1344
|
+
groupSegments: ["cloud", "agents"],
|
|
1345
|
+
command: "memory-reset",
|
|
1346
|
+
body: { agent, ...(options ?? {}) },
|
|
1347
|
+
});
|
|
1348
|
+
},
|
|
1349
|
+
/** Show one cloud agent (id, Library slug or name) */
|
|
1350
|
+
show: async (agent, options) => {
|
|
1351
|
+
return this.transport.call({
|
|
1352
|
+
groupSegments: ["cloud", "agents"],
|
|
1353
|
+
command: "show",
|
|
1354
|
+
body: { agent, ...(options ?? {}) },
|
|
1355
|
+
});
|
|
1356
|
+
}
|
|
1357
|
+
},
|
|
1358
|
+
catalog: {
|
|
1359
|
+
/** Install a catalog agent in a project. Requires --execute. */
|
|
1360
|
+
install: async (entry, options) => {
|
|
1361
|
+
return this.transport.call({
|
|
1362
|
+
groupSegments: ["cloud", "catalog"],
|
|
1363
|
+
command: "install",
|
|
1364
|
+
body: { entry, ...(options ?? {}) },
|
|
1365
|
+
});
|
|
1366
|
+
},
|
|
1367
|
+
/** List the catalog's agents and packs */
|
|
1368
|
+
list: async (options) => {
|
|
1369
|
+
return this.transport.call({
|
|
1370
|
+
groupSegments: ["cloud", "catalog"],
|
|
1371
|
+
command: "list",
|
|
1372
|
+
body: { ...(options ?? {}) },
|
|
1373
|
+
});
|
|
1374
|
+
},
|
|
1375
|
+
packs: {
|
|
1376
|
+
/** Install every agent of a catalog pack in a project. Requires --execute. */
|
|
1377
|
+
install: async (pack, options) => {
|
|
1378
|
+
return this.transport.call({
|
|
1379
|
+
groupSegments: ["cloud", "catalog", "packs"],
|
|
1380
|
+
command: "install",
|
|
1381
|
+
body: { pack, ...(options ?? {}) },
|
|
1382
|
+
});
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
},
|
|
1386
|
+
credits: {
|
|
1387
|
+
/** Show the credits balance, this month's spend and the latest entries */
|
|
1388
|
+
show: async () => {
|
|
1389
|
+
return this.transport.call({
|
|
1390
|
+
groupSegments: ["cloud", "credits"],
|
|
1391
|
+
command: "show",
|
|
1392
|
+
body: {},
|
|
1393
|
+
});
|
|
1394
|
+
},
|
|
1395
|
+
/** Add Ravi credits with a Pix charge (prints the link and code). Requires --execute. */
|
|
1396
|
+
topup: async (amount, options) => {
|
|
1397
|
+
return this.transport.call({
|
|
1398
|
+
groupSegments: ["cloud", "credits"],
|
|
1399
|
+
command: "topup",
|
|
1400
|
+
body: { amount, ...(options ?? {}) },
|
|
1401
|
+
});
|
|
1402
|
+
}
|
|
1403
|
+
},
|
|
1404
|
+
key: {
|
|
1405
|
+
/** Remove the organization's cloud agents key (runs stop starting) */
|
|
1406
|
+
remove: async () => {
|
|
1407
|
+
return this.transport.call({
|
|
1408
|
+
groupSegments: ["cloud", "key"],
|
|
1409
|
+
command: "remove",
|
|
1410
|
+
body: {},
|
|
1411
|
+
});
|
|
1412
|
+
},
|
|
1413
|
+
/** Show whether the organization has a cloud agents key, and this month's cost */
|
|
1414
|
+
status: async () => {
|
|
1415
|
+
return this.transport.call({
|
|
1416
|
+
groupSegments: ["cloud", "key"],
|
|
1417
|
+
command: "status",
|
|
1418
|
+
body: {},
|
|
1419
|
+
});
|
|
1420
|
+
}
|
|
1421
|
+
},
|
|
772
1422
|
projects: {
|
|
773
|
-
/** Create a
|
|
1423
|
+
/** Create a project in Console */
|
|
774
1424
|
create: async (slug, options) => {
|
|
775
1425
|
return this.transport.call({
|
|
776
1426
|
groupSegments: ["cloud", "projects"],
|
|
@@ -778,7 +1428,7 @@ export class RaviClient {
|
|
|
778
1428
|
body: { slug, ...(options ?? {}) },
|
|
779
1429
|
});
|
|
780
1430
|
},
|
|
781
|
-
/** List
|
|
1431
|
+
/** List the organization's projects in Console */
|
|
782
1432
|
list: async (options) => {
|
|
783
1433
|
return this.transport.call({
|
|
784
1434
|
groupSegments: ["cloud", "projects"],
|
|
@@ -787,36 +1437,268 @@ export class RaviClient {
|
|
|
787
1437
|
});
|
|
788
1438
|
}
|
|
789
1439
|
},
|
|
790
|
-
|
|
791
|
-
/**
|
|
792
|
-
|
|
1440
|
+
runs: {
|
|
1441
|
+
/** Answer a question a cloud run asked its person (only that person can). Requires --execute. */
|
|
1442
|
+
answer: async (run, question, text, options) => {
|
|
1443
|
+
return this.transport.call({
|
|
1444
|
+
groupSegments: ["cloud", "runs"],
|
|
1445
|
+
command: "answer",
|
|
1446
|
+
body: { run, question, text, ...(options ?? {}) },
|
|
1447
|
+
});
|
|
1448
|
+
},
|
|
1449
|
+
/** Approve a write a cloud run is waiting on (only the run's person can). Requires --execute. */
|
|
1450
|
+
approve: async (run, approval, options) => {
|
|
1451
|
+
return this.transport.call({
|
|
1452
|
+
groupSegments: ["cloud", "runs"],
|
|
1453
|
+
command: "approve",
|
|
1454
|
+
body: { run, approval, ...(options ?? {}) },
|
|
1455
|
+
});
|
|
1456
|
+
},
|
|
1457
|
+
/** Deny a write a cloud run is waiting on (applies at once) */
|
|
1458
|
+
deny: async (run, approval, options) => {
|
|
1459
|
+
return this.transport.call({
|
|
1460
|
+
groupSegments: ["cloud", "runs"],
|
|
1461
|
+
command: "deny",
|
|
1462
|
+
body: { run, approval, ...(options ?? {}) },
|
|
1463
|
+
});
|
|
1464
|
+
},
|
|
1465
|
+
/** List cloud runs of a Console project */
|
|
1466
|
+
list: async (options) => {
|
|
1467
|
+
return this.transport.call({
|
|
1468
|
+
groupSegments: ["cloud", "runs"],
|
|
1469
|
+
command: "list",
|
|
1470
|
+
body: { ...(options ?? {}) },
|
|
1471
|
+
});
|
|
1472
|
+
},
|
|
1473
|
+
/** List a cloud run's output files, or download them with --download <dir> */
|
|
1474
|
+
outputs: async (run, options) => {
|
|
1475
|
+
return this.transport.call({
|
|
1476
|
+
groupSegments: ["cloud", "runs"],
|
|
1477
|
+
command: "outputs",
|
|
1478
|
+
body: { run, ...(options ?? {}) },
|
|
1479
|
+
});
|
|
1480
|
+
},
|
|
1481
|
+
/** Send a follow-up message to a cloud run. Requires --execute. */
|
|
1482
|
+
reply: async (run, text, options) => {
|
|
1483
|
+
return this.transport.call({
|
|
1484
|
+
groupSegments: ["cloud", "runs"],
|
|
1485
|
+
command: "reply",
|
|
1486
|
+
body: { run, text, ...(options ?? {}) },
|
|
1487
|
+
});
|
|
1488
|
+
},
|
|
1489
|
+
/** Show a cloud run: status, cost, approvals, outputs and result */
|
|
1490
|
+
show: async (run) => {
|
|
1491
|
+
return this.transport.call({
|
|
1492
|
+
groupSegments: ["cloud", "runs"],
|
|
1493
|
+
command: "show",
|
|
1494
|
+
body: { run },
|
|
1495
|
+
});
|
|
1496
|
+
},
|
|
1497
|
+
/** Start a paid cloud run of a Library agent. Requires --execute. */
|
|
1498
|
+
start: async (agent, prompt, options) => {
|
|
1499
|
+
return this.transport.call({
|
|
1500
|
+
groupSegments: ["cloud", "runs"],
|
|
1501
|
+
command: "start",
|
|
1502
|
+
body: { agent, prompt, ...(options ?? {}) },
|
|
1503
|
+
});
|
|
1504
|
+
},
|
|
1505
|
+
/** Stop a cloud run now (applies at once) */
|
|
1506
|
+
stop: async (run) => {
|
|
1507
|
+
return this.transport.call({
|
|
1508
|
+
groupSegments: ["cloud", "runs"],
|
|
1509
|
+
command: "stop",
|
|
1510
|
+
body: { run },
|
|
1511
|
+
});
|
|
1512
|
+
}
|
|
1513
|
+
},
|
|
1514
|
+
schedules: {
|
|
1515
|
+
/** Schedule cloud runs of an agent on a cron. Requires --execute unless --disabled. */
|
|
1516
|
+
add: async (agent, options) => {
|
|
1517
|
+
return this.transport.call({
|
|
1518
|
+
groupSegments: ["cloud", "schedules"],
|
|
1519
|
+
command: "add",
|
|
1520
|
+
body: { agent, ...(options ?? {}) },
|
|
1521
|
+
});
|
|
1522
|
+
},
|
|
1523
|
+
/** List the cloud schedules of a Console project */
|
|
1524
|
+
list: async (options) => {
|
|
1525
|
+
return this.transport.call({
|
|
1526
|
+
groupSegments: ["cloud", "schedules"],
|
|
1527
|
+
command: "list",
|
|
1528
|
+
body: { ...(options ?? {}) },
|
|
1529
|
+
});
|
|
1530
|
+
},
|
|
1531
|
+
/** Delete a cloud schedule (applies at once) */
|
|
1532
|
+
remove: async (id) => {
|
|
1533
|
+
return this.transport.call({
|
|
1534
|
+
groupSegments: ["cloud", "schedules"],
|
|
1535
|
+
command: "remove",
|
|
1536
|
+
body: { id },
|
|
1537
|
+
});
|
|
1538
|
+
},
|
|
1539
|
+
/** Change a cloud schedule. Requires --execute when it stays or becomes enabled. */
|
|
1540
|
+
update: async (id, options) => {
|
|
1541
|
+
return this.transport.call({
|
|
1542
|
+
groupSegments: ["cloud", "schedules"],
|
|
1543
|
+
command: "update",
|
|
1544
|
+
body: { id, ...(options ?? {}) },
|
|
1545
|
+
});
|
|
1546
|
+
}
|
|
1547
|
+
},
|
|
1548
|
+
scope: {
|
|
1549
|
+
/** Clear a default Console project for a session, agent, workspace, or install */
|
|
1550
|
+
clear: async (options) => {
|
|
1551
|
+
return this.transport.call({
|
|
1552
|
+
groupSegments: ["cloud", "scope"],
|
|
1553
|
+
command: "clear",
|
|
1554
|
+
body: { ...(options ?? {}) },
|
|
1555
|
+
});
|
|
1556
|
+
},
|
|
1557
|
+
/** Explain how the effective Ravi Console scope is resolved */
|
|
1558
|
+
explain: async (options) => {
|
|
1559
|
+
return this.transport.call({
|
|
1560
|
+
groupSegments: ["cloud", "scope"],
|
|
1561
|
+
command: "explain",
|
|
1562
|
+
body: { ...(options ?? {}) },
|
|
1563
|
+
});
|
|
1564
|
+
},
|
|
1565
|
+
/** Set a default Console project for a session, agent, workspace, or install */
|
|
1566
|
+
set: async (options) => {
|
|
1567
|
+
return this.transport.call({
|
|
1568
|
+
groupSegments: ["cloud", "scope"],
|
|
1569
|
+
command: "set",
|
|
1570
|
+
body: { ...(options ?? {}) },
|
|
1571
|
+
});
|
|
1572
|
+
},
|
|
1573
|
+
/** Show the effective Ravi Console scope for this process */
|
|
1574
|
+
show: async (options) => {
|
|
1575
|
+
return this.transport.call({
|
|
1576
|
+
groupSegments: ["cloud", "scope"],
|
|
1577
|
+
command: "show",
|
|
1578
|
+
body: { ...(options ?? {}) },
|
|
1579
|
+
});
|
|
1580
|
+
}
|
|
1581
|
+
},
|
|
1582
|
+
secrets: {
|
|
1583
|
+
/** List the organization's (or a project's) cloud secrets: names and hints */
|
|
1584
|
+
list: async (options) => {
|
|
1585
|
+
return this.transport.call({
|
|
1586
|
+
groupSegments: ["cloud", "secrets"],
|
|
1587
|
+
command: "list",
|
|
1588
|
+
body: { ...(options ?? {}) },
|
|
1589
|
+
});
|
|
1590
|
+
},
|
|
1591
|
+
/** Remove a cloud secret (runs that name it stop starting) */
|
|
1592
|
+
remove: async (secret, options) => {
|
|
1593
|
+
return this.transport.call({
|
|
1594
|
+
groupSegments: ["cloud", "secrets"],
|
|
1595
|
+
command: "remove",
|
|
1596
|
+
body: { secret, ...(options ?? {}) },
|
|
1597
|
+
});
|
|
1598
|
+
}
|
|
1599
|
+
},
|
|
1600
|
+
settings: {
|
|
1601
|
+
/** Change the billing mode or caps. Requires --execute when it can raise spending. */
|
|
1602
|
+
set: async (options) => {
|
|
1603
|
+
return this.transport.call({
|
|
1604
|
+
groupSegments: ["cloud", "settings"],
|
|
1605
|
+
command: "set",
|
|
1606
|
+
body: { ...(options ?? {}) },
|
|
1607
|
+
});
|
|
1608
|
+
},
|
|
1609
|
+
/** Show the billing mode, caps, pause state and webhook status */
|
|
1610
|
+
show: async () => {
|
|
1611
|
+
return this.transport.call({
|
|
1612
|
+
groupSegments: ["cloud", "settings"],
|
|
1613
|
+
command: "show",
|
|
1614
|
+
body: {},
|
|
1615
|
+
});
|
|
1616
|
+
}
|
|
1617
|
+
},
|
|
1618
|
+
triggers: {
|
|
1619
|
+
/** Start cloud runs of an agent from Console events. Requires --execute unless --disabled. */
|
|
1620
|
+
create: async (agent, options) => {
|
|
1621
|
+
return this.transport.call({
|
|
1622
|
+
groupSegments: ["cloud", "triggers"],
|
|
1623
|
+
command: "create",
|
|
1624
|
+
body: { agent, ...(options ?? {}) },
|
|
1625
|
+
});
|
|
1626
|
+
},
|
|
1627
|
+
/** List the cloud triggers of a Console project */
|
|
1628
|
+
list: async (options) => {
|
|
1629
|
+
return this.transport.call({
|
|
1630
|
+
groupSegments: ["cloud", "triggers"],
|
|
1631
|
+
command: "list",
|
|
1632
|
+
body: { ...(options ?? {}) },
|
|
1633
|
+
});
|
|
1634
|
+
},
|
|
1635
|
+
/** Delete a cloud trigger (applies at once) */
|
|
1636
|
+
remove: async (id) => {
|
|
1637
|
+
return this.transport.call({
|
|
1638
|
+
groupSegments: ["cloud", "triggers"],
|
|
1639
|
+
command: "remove",
|
|
1640
|
+
body: { id },
|
|
1641
|
+
});
|
|
1642
|
+
},
|
|
1643
|
+
/** Show the prompt a trigger would send now (no run starts) */
|
|
1644
|
+
test: async (id) => {
|
|
1645
|
+
return this.transport.call({
|
|
1646
|
+
groupSegments: ["cloud", "triggers"],
|
|
1647
|
+
command: "test",
|
|
1648
|
+
body: { id },
|
|
1649
|
+
});
|
|
1650
|
+
},
|
|
1651
|
+
/** Change a cloud trigger. Requires --execute when it stays or becomes enabled. */
|
|
1652
|
+
update: async (id, options) => {
|
|
1653
|
+
return this.transport.call({
|
|
1654
|
+
groupSegments: ["cloud", "triggers"],
|
|
1655
|
+
command: "update",
|
|
1656
|
+
body: { id, ...(options ?? {}) },
|
|
1657
|
+
});
|
|
1658
|
+
}
|
|
1659
|
+
},
|
|
1660
|
+
webhook: {
|
|
1661
|
+
/** Remove the webhook signing secret (runs sync on the periodic pass) */
|
|
1662
|
+
remove: async () => {
|
|
793
1663
|
return this.transport.call({
|
|
794
|
-
groupSegments: ["cloud", "
|
|
795
|
-
command: "
|
|
796
|
-
body: {
|
|
1664
|
+
groupSegments: ["cloud", "webhook"],
|
|
1665
|
+
command: "remove",
|
|
1666
|
+
body: {},
|
|
797
1667
|
});
|
|
798
1668
|
},
|
|
799
|
-
/**
|
|
800
|
-
|
|
1669
|
+
/** Show the webhook URL to register and whether a signing secret is set */
|
|
1670
|
+
show: async () => {
|
|
801
1671
|
return this.transport.call({
|
|
802
|
-
groupSegments: ["cloud", "
|
|
803
|
-
command: "
|
|
804
|
-
body: {
|
|
1672
|
+
groupSegments: ["cloud", "webhook"],
|
|
1673
|
+
command: "show",
|
|
1674
|
+
body: {},
|
|
805
1675
|
});
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
|
|
1676
|
+
}
|
|
1677
|
+
},
|
|
1678
|
+
worker: {
|
|
1679
|
+
/** Stop running cloud agents' tools on this machine (applies at once) */
|
|
1680
|
+
disable: async () => {
|
|
809
1681
|
return this.transport.call({
|
|
810
|
-
groupSegments: ["cloud", "
|
|
811
|
-
command: "
|
|
812
|
-
body: {
|
|
1682
|
+
groupSegments: ["cloud", "worker"],
|
|
1683
|
+
command: "disable",
|
|
1684
|
+
body: {},
|
|
813
1685
|
});
|
|
814
1686
|
},
|
|
815
|
-
|
|
816
|
-
|
|
1687
|
+
key: {
|
|
1688
|
+
/** Delete a worker's stored environment key (its worker stops) */
|
|
1689
|
+
remove: async (workerId) => {
|
|
1690
|
+
return this.transport.call({
|
|
1691
|
+
groupSegments: ["cloud", "worker", "key"],
|
|
1692
|
+
command: "remove",
|
|
1693
|
+
body: { workerId },
|
|
1694
|
+
});
|
|
1695
|
+
}
|
|
1696
|
+
},
|
|
1697
|
+
/** List the workers assigned to this installation, with their key and the daemon's state */
|
|
1698
|
+
list: async (options) => {
|
|
817
1699
|
return this.transport.call({
|
|
818
|
-
groupSegments: ["cloud", "
|
|
819
|
-
command: "
|
|
1700
|
+
groupSegments: ["cloud", "worker"],
|
|
1701
|
+
command: "list",
|
|
820
1702
|
body: { ...(options ?? {}) },
|
|
821
1703
|
});
|
|
822
1704
|
}
|
|
@@ -857,7 +1739,7 @@ export class RaviClient {
|
|
|
857
1739
|
}
|
|
858
1740
|
};
|
|
859
1741
|
connectors = {
|
|
860
|
-
/** List your
|
|
1742
|
+
/** List your connections */
|
|
861
1743
|
list: async (options) => {
|
|
862
1744
|
return this.transport.call({
|
|
863
1745
|
groupSegments: ["connectors"],
|
|
@@ -865,7 +1747,15 @@ export class RaviClient {
|
|
|
865
1747
|
body: { ...(options ?? {}) },
|
|
866
1748
|
});
|
|
867
1749
|
},
|
|
868
|
-
/**
|
|
1750
|
+
/** Show or set whose account an agent uses for a provider: owner, person-asking or shared */
|
|
1751
|
+
mode: async (agent, provider, mode, options) => {
|
|
1752
|
+
return this.transport.call({
|
|
1753
|
+
groupSegments: ["connectors"],
|
|
1754
|
+
command: "mode",
|
|
1755
|
+
body: { agent, provider, mode, ...(options ?? {}) },
|
|
1756
|
+
});
|
|
1757
|
+
},
|
|
1758
|
+
/** Disconnect one of your connections and delete its stored credentials */
|
|
869
1759
|
revoke: async (id, options) => {
|
|
870
1760
|
return this.transport.call({
|
|
871
1761
|
groupSegments: ["connectors"],
|
|
@@ -873,7 +1763,7 @@ export class RaviClient {
|
|
|
873
1763
|
body: { id, ...(options ?? {}) },
|
|
874
1764
|
});
|
|
875
1765
|
},
|
|
876
|
-
/** Show details of
|
|
1766
|
+
/** Show details of one of your connections */
|
|
877
1767
|
show: async (id) => {
|
|
878
1768
|
return this.transport.call({
|
|
879
1769
|
groupSegments: ["connectors"],
|
|
@@ -979,6 +1869,14 @@ export class RaviClient {
|
|
|
979
1869
|
body: { contact, ...(options ?? {}) },
|
|
980
1870
|
});
|
|
981
1871
|
},
|
|
1872
|
+
/** Link a platform identity to an agent (bot senders resolve to an agent actor) */
|
|
1873
|
+
linkAgent: async (agent, options) => {
|
|
1874
|
+
return this.transport.call({
|
|
1875
|
+
groupSegments: ["contacts"],
|
|
1876
|
+
command: "link-agent",
|
|
1877
|
+
body: { agent, ...(options ?? {}) },
|
|
1878
|
+
});
|
|
1879
|
+
},
|
|
982
1880
|
/** List all contacts */
|
|
983
1881
|
list: async (options) => {
|
|
984
1882
|
return this.transport.call({
|
|
@@ -1119,6 +2017,14 @@ export class RaviClient {
|
|
|
1119
2017
|
body: { permission, objectType, objectId },
|
|
1120
2018
|
});
|
|
1121
2019
|
},
|
|
2020
|
+
/** Authorize one Console bridge command, including an owner decision when eligible */
|
|
2021
|
+
bridgeToolHook: async (options) => {
|
|
2022
|
+
return this.transport.call({
|
|
2023
|
+
groupSegments: ["context"],
|
|
2024
|
+
command: "bridge-tool-hook",
|
|
2025
|
+
body: { ...(options ?? {}) },
|
|
2026
|
+
});
|
|
2027
|
+
},
|
|
1122
2028
|
/** List inherited capabilities for the current runtime context */
|
|
1123
2029
|
capabilities: async () => {
|
|
1124
2030
|
return this.transport.call({
|
|
@@ -1318,6 +2224,14 @@ export class RaviClient {
|
|
|
1318
2224
|
body: { ...(options ?? {}) },
|
|
1319
2225
|
});
|
|
1320
2226
|
},
|
|
2227
|
+
/** 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 */
|
|
2228
|
+
inventory: async (options) => {
|
|
2229
|
+
return this.transport.call({
|
|
2230
|
+
groupSegments: ["credentials", "connections"],
|
|
2231
|
+
command: "inventory",
|
|
2232
|
+
body: { ...(options ?? {}) },
|
|
2233
|
+
});
|
|
2234
|
+
},
|
|
1321
2235
|
/** List provider credential connections without secret values */
|
|
1322
2236
|
list: async (options) => {
|
|
1323
2237
|
return this.transport.call({
|
|
@@ -1344,6 +2258,22 @@ export class RaviClient {
|
|
|
1344
2258
|
body: { ...(options ?? {}) },
|
|
1345
2259
|
});
|
|
1346
2260
|
}
|
|
2261
|
+
},
|
|
2262
|
+
/** Send a private Slack button to add an API credential; accepts metadata only */
|
|
2263
|
+
request: async (target, options) => {
|
|
2264
|
+
return this.transport.call({
|
|
2265
|
+
groupSegments: ["credentials"],
|
|
2266
|
+
command: "request",
|
|
2267
|
+
body: { target, ...(options ?? {}) },
|
|
2268
|
+
});
|
|
2269
|
+
},
|
|
2270
|
+
/** Reconcile a remote credential request without reading or resubmitting its secret */
|
|
2271
|
+
requestStatus: async (target, requestId) => {
|
|
2272
|
+
return this.transport.call({
|
|
2273
|
+
groupSegments: ["credentials"],
|
|
2274
|
+
command: "request-status",
|
|
2275
|
+
body: { target, requestId },
|
|
2276
|
+
});
|
|
1347
2277
|
}
|
|
1348
2278
|
};
|
|
1349
2279
|
crm = {
|
|
@@ -1711,6 +2641,14 @@ export class RaviClient {
|
|
|
1711
2641
|
}
|
|
1712
2642
|
};
|
|
1713
2643
|
cron = {
|
|
2644
|
+
/** Mark failed runs as reported without notifying the owner (dry-run by default) */
|
|
2645
|
+
ackFailures: async (options) => {
|
|
2646
|
+
return this.transport.call({
|
|
2647
|
+
groupSegments: ["cron"],
|
|
2648
|
+
command: "ack-failures",
|
|
2649
|
+
body: { ...(options ?? {}) },
|
|
2650
|
+
});
|
|
2651
|
+
},
|
|
1714
2652
|
/** Add a new scheduled job */
|
|
1715
2653
|
add: async (name, options) => {
|
|
1716
2654
|
return this.transport.call({
|
|
@@ -1850,6 +2788,56 @@ export class RaviClient {
|
|
|
1850
2788
|
});
|
|
1851
2789
|
}
|
|
1852
2790
|
};
|
|
2791
|
+
decisions = {
|
|
2792
|
+
/** Record an immutable answer; thread answers resume the waiting work */
|
|
2793
|
+
answer: async (id, options) => {
|
|
2794
|
+
return this.transport.call({
|
|
2795
|
+
groupSegments: ["decisions"],
|
|
2796
|
+
command: "answer",
|
|
2797
|
+
body: { id, ...(options ?? {}) },
|
|
2798
|
+
});
|
|
2799
|
+
},
|
|
2800
|
+
/** Ask or update one open question on an explicit origin */
|
|
2801
|
+
ask: async (options) => {
|
|
2802
|
+
return this.transport.call({
|
|
2803
|
+
groupSegments: ["decisions"],
|
|
2804
|
+
command: "ask",
|
|
2805
|
+
body: { ...(options ?? {}) },
|
|
2806
|
+
});
|
|
2807
|
+
},
|
|
2808
|
+
/** Read visible decisions; open only unless --all */
|
|
2809
|
+
list: async (options) => {
|
|
2810
|
+
return this.transport.call({
|
|
2811
|
+
groupSegments: ["decisions"],
|
|
2812
|
+
command: "list",
|
|
2813
|
+
body: { ...(options ?? {}) },
|
|
2814
|
+
});
|
|
2815
|
+
},
|
|
2816
|
+
/** Local operator recovery of uncertain runtime admission using trace evidence */
|
|
2817
|
+
resolveDelivery: async (id, options) => {
|
|
2818
|
+
return this.transport.call({
|
|
2819
|
+
groupSegments: ["decisions"],
|
|
2820
|
+
command: "resolve-delivery",
|
|
2821
|
+
body: { id, ...(options ?? {}) },
|
|
2822
|
+
});
|
|
2823
|
+
},
|
|
2824
|
+
/** Retry a failed thread delivery without recording another answer */
|
|
2825
|
+
retry: async (id, options) => {
|
|
2826
|
+
return this.transport.call({
|
|
2827
|
+
groupSegments: ["decisions"],
|
|
2828
|
+
command: "retry",
|
|
2829
|
+
body: { id, ...(options ?? {}) },
|
|
2830
|
+
});
|
|
2831
|
+
},
|
|
2832
|
+
/** Read a decision, its immutable history and delivery state */
|
|
2833
|
+
show: async (id) => {
|
|
2834
|
+
return this.transport.call({
|
|
2835
|
+
groupSegments: ["decisions"],
|
|
2836
|
+
command: "show",
|
|
2837
|
+
body: { id },
|
|
2838
|
+
});
|
|
2839
|
+
}
|
|
2840
|
+
};
|
|
1853
2841
|
devin = {
|
|
1854
2842
|
auth: {
|
|
1855
2843
|
/** Validate Devin API credentials */
|
|
@@ -1980,6 +2968,14 @@ export class RaviClient {
|
|
|
1980
2968
|
command: "read",
|
|
1981
2969
|
body: { id, ...(options ?? {}) },
|
|
1982
2970
|
});
|
|
2971
|
+
},
|
|
2972
|
+
/** Send an email through Gmail */
|
|
2973
|
+
send: async (options) => {
|
|
2974
|
+
return this.transport.call({
|
|
2975
|
+
groupSegments: ["gmail"],
|
|
2976
|
+
command: "send",
|
|
2977
|
+
body: { ...(options ?? {}) },
|
|
2978
|
+
});
|
|
1983
2979
|
}
|
|
1984
2980
|
};
|
|
1985
2981
|
heartbeat = {
|
|
@@ -2090,6 +3086,24 @@ export class RaviClient {
|
|
|
2090
3086
|
});
|
|
2091
3087
|
}
|
|
2092
3088
|
};
|
|
3089
|
+
identity = {
|
|
3090
|
+
/** Send the message author a private link to approve in the Console */
|
|
3091
|
+
link: async () => {
|
|
3092
|
+
return this.transport.call({
|
|
3093
|
+
groupSegments: ["identity"],
|
|
3094
|
+
command: "link",
|
|
3095
|
+
body: {},
|
|
3096
|
+
});
|
|
3097
|
+
},
|
|
3098
|
+
/** Remove the message author's Console link on this installation */
|
|
3099
|
+
unlink: async () => {
|
|
3100
|
+
return this.transport.call({
|
|
3101
|
+
groupSegments: ["identity"],
|
|
3102
|
+
command: "unlink",
|
|
3103
|
+
body: {},
|
|
3104
|
+
});
|
|
3105
|
+
}
|
|
3106
|
+
};
|
|
2093
3107
|
image = {
|
|
2094
3108
|
atlas: {
|
|
2095
3109
|
/** Split an image atlas/contact sheet into deterministic crop artifacts */
|
|
@@ -2432,6 +3446,32 @@ export class RaviClient {
|
|
|
2432
3446
|
});
|
|
2433
3447
|
}
|
|
2434
3448
|
};
|
|
3449
|
+
invites = {
|
|
3450
|
+
/** Create a single-use organization invite link */
|
|
3451
|
+
create: async (options) => {
|
|
3452
|
+
return this.transport.call({
|
|
3453
|
+
groupSegments: ["invites"],
|
|
3454
|
+
command: "create",
|
|
3455
|
+
body: { ...(options ?? {}) },
|
|
3456
|
+
});
|
|
3457
|
+
},
|
|
3458
|
+
/** List pending organization invites */
|
|
3459
|
+
list: async (options) => {
|
|
3460
|
+
return this.transport.call({
|
|
3461
|
+
groupSegments: ["invites"],
|
|
3462
|
+
command: "list",
|
|
3463
|
+
body: { ...(options ?? {}) },
|
|
3464
|
+
});
|
|
3465
|
+
},
|
|
3466
|
+
/** Revoke a pending invite link */
|
|
3467
|
+
revoke: async (inviteId, options) => {
|
|
3468
|
+
return this.transport.call({
|
|
3469
|
+
groupSegments: ["invites"],
|
|
3470
|
+
command: "revoke",
|
|
3471
|
+
body: { inviteId, ...(options ?? {}) },
|
|
3472
|
+
});
|
|
3473
|
+
}
|
|
3474
|
+
};
|
|
2435
3475
|
jobs = {
|
|
2436
3476
|
/** Stop a running job */
|
|
2437
3477
|
kill: async (id) => {
|
|
@@ -2482,6 +3522,72 @@ export class RaviClient {
|
|
|
2482
3522
|
});
|
|
2483
3523
|
}
|
|
2484
3524
|
};
|
|
3525
|
+
knowledge = {
|
|
3526
|
+
/** Archive or redact what Knowledge keeps */
|
|
3527
|
+
forget: async (id, options) => {
|
|
3528
|
+
return this.transport.call({
|
|
3529
|
+
groupSegments: ["knowledge"],
|
|
3530
|
+
command: "forget",
|
|
3531
|
+
body: { id, ...(options ?? {}) },
|
|
3532
|
+
});
|
|
3533
|
+
},
|
|
3534
|
+
/** Show which page routes are marked for clients */
|
|
3535
|
+
marks: async (options) => {
|
|
3536
|
+
return this.transport.call({
|
|
3537
|
+
groupSegments: ["knowledge"],
|
|
3538
|
+
command: "marks",
|
|
3539
|
+
body: { ...(options ?? {}) },
|
|
3540
|
+
});
|
|
3541
|
+
},
|
|
3542
|
+
/** Propose a note, answer, correction or transcript to the Console */
|
|
3543
|
+
propose: async (options) => {
|
|
3544
|
+
return this.transport.call({
|
|
3545
|
+
groupSegments: ["knowledge"],
|
|
3546
|
+
command: "propose",
|
|
3547
|
+
body: { ...(options ?? {}) },
|
|
3548
|
+
});
|
|
3549
|
+
},
|
|
3550
|
+
/** Show one result with its neighbours */
|
|
3551
|
+
read: async (ref, options) => {
|
|
3552
|
+
return this.transport.call({
|
|
3553
|
+
groupSegments: ["knowledge"],
|
|
3554
|
+
command: "read",
|
|
3555
|
+
body: { ref, ...(options ?? {}) },
|
|
3556
|
+
});
|
|
3557
|
+
},
|
|
3558
|
+
/** Save a fact about a contact or chat */
|
|
3559
|
+
remember: async (text, options) => {
|
|
3560
|
+
return this.transport.call({
|
|
3561
|
+
groupSegments: ["knowledge"],
|
|
3562
|
+
command: "remember",
|
|
3563
|
+
body: { text, ...(options ?? {}) },
|
|
3564
|
+
});
|
|
3565
|
+
},
|
|
3566
|
+
/** Search meetings, pages, notes and local history, with sources */
|
|
3567
|
+
search: async (query, options) => {
|
|
3568
|
+
return this.transport.call({
|
|
3569
|
+
groupSegments: ["knowledge"],
|
|
3570
|
+
command: "search",
|
|
3571
|
+
body: { query, ...(options ?? {}) },
|
|
3572
|
+
});
|
|
3573
|
+
},
|
|
3574
|
+
/** Show what Knowledge indexes and what is failing */
|
|
3575
|
+
sources: async (options) => {
|
|
3576
|
+
return this.transport.call({
|
|
3577
|
+
groupSegments: ["knowledge"],
|
|
3578
|
+
command: "sources",
|
|
3579
|
+
body: { ...(options ?? {}) },
|
|
3580
|
+
});
|
|
3581
|
+
},
|
|
3582
|
+
/** Show what a search returned and cited */
|
|
3583
|
+
why: async (options) => {
|
|
3584
|
+
return this.transport.call({
|
|
3585
|
+
groupSegments: ["knowledge"],
|
|
3586
|
+
command: "why",
|
|
3587
|
+
body: { ...(options ?? {}) },
|
|
3588
|
+
});
|
|
3589
|
+
}
|
|
3590
|
+
};
|
|
2485
3591
|
mail = {
|
|
2486
3592
|
accounts: {
|
|
2487
3593
|
/** Create or update a local mail provider account */
|
|
@@ -2747,6 +3853,14 @@ export class RaviClient {
|
|
|
2747
3853
|
}
|
|
2748
3854
|
};
|
|
2749
3855
|
meetings = {
|
|
3856
|
+
/** Download a finished cloud recording into a meeting.raw artifact */
|
|
3857
|
+
fetch: async (meetingId, options) => {
|
|
3858
|
+
return this.transport.call({
|
|
3859
|
+
groupSegments: ["meetings"],
|
|
3860
|
+
command: "fetch",
|
|
3861
|
+
body: { meetingId, ...(options ?? {}) },
|
|
3862
|
+
});
|
|
3863
|
+
},
|
|
2750
3864
|
/** Finalize a completed meeting recorder run into a Ravi meeting.raw artifact */
|
|
2751
3865
|
finalize: async (options) => {
|
|
2752
3866
|
return this.transport.call({
|
|
@@ -2755,6 +3869,30 @@ export class RaviClient {
|
|
|
2755
3869
|
body: { ...(options ?? {}) },
|
|
2756
3870
|
});
|
|
2757
3871
|
},
|
|
3872
|
+
/** Join a meeting through a native Ravi meeting provider */
|
|
3873
|
+
join: async (options) => {
|
|
3874
|
+
return this.transport.call({
|
|
3875
|
+
groupSegments: ["meetings"],
|
|
3876
|
+
command: "join",
|
|
3877
|
+
body: { ...(options ?? {}) },
|
|
3878
|
+
});
|
|
3879
|
+
},
|
|
3880
|
+
/** Ask a cloud meeting bot to leave the call now */
|
|
3881
|
+
leave: async (meetingId, options) => {
|
|
3882
|
+
return this.transport.call({
|
|
3883
|
+
groupSegments: ["meetings"],
|
|
3884
|
+
command: "leave",
|
|
3885
|
+
body: { meetingId, ...(options ?? {}) },
|
|
3886
|
+
});
|
|
3887
|
+
},
|
|
3888
|
+
/** List the project's cloud meeting bots */
|
|
3889
|
+
list: async (options) => {
|
|
3890
|
+
return this.transport.call({
|
|
3891
|
+
groupSegments: ["meetings"],
|
|
3892
|
+
command: "list",
|
|
3893
|
+
body: { ...(options ?? {}) },
|
|
3894
|
+
});
|
|
3895
|
+
},
|
|
2758
3896
|
profiles: {
|
|
2759
3897
|
/** Create a reusable meeting profile scaffold */
|
|
2760
3898
|
init: async (profileId, options) => {
|
|
@@ -2789,6 +3927,22 @@ export class RaviClient {
|
|
|
2789
3927
|
});
|
|
2790
3928
|
}
|
|
2791
3929
|
},
|
|
3930
|
+
/** Read a Console meeting's transcript for this turn (operator only; nothing is saved) */
|
|
3931
|
+
read: async (meeting, options) => {
|
|
3932
|
+
return this.transport.call({
|
|
3933
|
+
groupSegments: ["meetings"],
|
|
3934
|
+
command: "read",
|
|
3935
|
+
body: { meeting, ...(options ?? {}) },
|
|
3936
|
+
});
|
|
3937
|
+
},
|
|
3938
|
+
/** Show one cloud meeting bot */
|
|
3939
|
+
show: async (meetingId, options) => {
|
|
3940
|
+
return this.transport.call({
|
|
3941
|
+
groupSegments: ["meetings"],
|
|
3942
|
+
command: "show",
|
|
3943
|
+
body: { meetingId, ...(options ?? {}) },
|
|
3944
|
+
});
|
|
3945
|
+
},
|
|
2792
3946
|
/** List meeting voice runtime candidates and current recommendation */
|
|
2793
3947
|
voiceRuntimes: async () => {
|
|
2794
3948
|
return this.transport.call({
|
|
@@ -2959,6 +4113,60 @@ export class RaviClient {
|
|
|
2959
4113
|
}
|
|
2960
4114
|
};
|
|
2961
4115
|
pages = {
|
|
4116
|
+
/** Show who was given access to a page's site, for what and until when */
|
|
4117
|
+
access: async (url, options) => {
|
|
4118
|
+
return this.transport.call({
|
|
4119
|
+
groupSegments: ["pages"],
|
|
4120
|
+
command: "access",
|
|
4121
|
+
body: { url, ...(options ?? {}) },
|
|
4122
|
+
});
|
|
4123
|
+
},
|
|
4124
|
+
assertion: {
|
|
4125
|
+
audiences: {
|
|
4126
|
+
/** List viewer-assertion audiences registered on a Pages host */
|
|
4127
|
+
list: async (options) => {
|
|
4128
|
+
return this.transport.call({
|
|
4129
|
+
groupSegments: ["pages", "assertion", "audiences"],
|
|
4130
|
+
command: "list",
|
|
4131
|
+
body: { ...(options ?? {}) },
|
|
4132
|
+
});
|
|
4133
|
+
},
|
|
4134
|
+
/** Remove one viewer-assertion audience from a Pages host */
|
|
4135
|
+
remove: async (options) => {
|
|
4136
|
+
return this.transport.call({
|
|
4137
|
+
groupSegments: ["pages", "assertion", "audiences"],
|
|
4138
|
+
command: "remove",
|
|
4139
|
+
body: { ...(options ?? {}) },
|
|
4140
|
+
});
|
|
4141
|
+
},
|
|
4142
|
+
/** Replace the https origins of this Pages site that may receive a viewer assertion for one audience */
|
|
4143
|
+
set: async (options) => {
|
|
4144
|
+
return this.transport.call({
|
|
4145
|
+
groupSegments: ["pages", "assertion", "audiences"],
|
|
4146
|
+
command: "set",
|
|
4147
|
+
body: { ...(options ?? {}) },
|
|
4148
|
+
});
|
|
4149
|
+
}
|
|
4150
|
+
}
|
|
4151
|
+
},
|
|
4152
|
+
chat: {
|
|
4153
|
+
/** Change a Pages site's Page Chat settings */
|
|
4154
|
+
set: async (site, options) => {
|
|
4155
|
+
return this.transport.call({
|
|
4156
|
+
groupSegments: ["pages", "chat"],
|
|
4157
|
+
command: "set",
|
|
4158
|
+
body: { site, ...(options ?? {}) },
|
|
4159
|
+
});
|
|
4160
|
+
},
|
|
4161
|
+
/** Show a Pages site's Page Chat settings */
|
|
4162
|
+
show: async (site, options) => {
|
|
4163
|
+
return this.transport.call({
|
|
4164
|
+
groupSegments: ["pages", "chat"],
|
|
4165
|
+
command: "show",
|
|
4166
|
+
body: { site, ...(options ?? {}) },
|
|
4167
|
+
});
|
|
4168
|
+
}
|
|
4169
|
+
},
|
|
2962
4170
|
/** Advanced/compat: host-only Pages record; does not upload HTML. Prefer pages ship to get a URL */
|
|
2963
4171
|
create: async (args, options) => {
|
|
2964
4172
|
return this.transport.call({
|
|
@@ -2983,6 +4191,14 @@ export class RaviClient {
|
|
|
2983
4191
|
body: { project, ...(options ?? {}) },
|
|
2984
4192
|
});
|
|
2985
4193
|
},
|
|
4194
|
+
/** List published routes shipped with an older theme, widget or page runtime */
|
|
4195
|
+
outdated: async (options) => {
|
|
4196
|
+
return this.transport.call({
|
|
4197
|
+
groupSegments: ["pages"],
|
|
4198
|
+
command: "outdated",
|
|
4199
|
+
body: { ...(options ?? {}) },
|
|
4200
|
+
});
|
|
4201
|
+
},
|
|
2986
4202
|
password: {
|
|
2987
4203
|
/** Remove a route password after activating an explicit replacement visibility */
|
|
2988
4204
|
remove: async (args, options) => {
|
|
@@ -3017,12 +4233,36 @@ export class RaviClient {
|
|
|
3017
4233
|
body: { project, ...(options ?? {}) },
|
|
3018
4234
|
});
|
|
3019
4235
|
},
|
|
3020
|
-
/**
|
|
4236
|
+
/** Read a published Ravi Page's content by URL */
|
|
4237
|
+
read: async (url, options) => {
|
|
4238
|
+
return this.transport.call({
|
|
4239
|
+
groupSegments: ["pages"],
|
|
4240
|
+
command: "read",
|
|
4241
|
+
body: { url, ...(options ?? {}) },
|
|
4242
|
+
});
|
|
4243
|
+
},
|
|
4244
|
+
/** Give one person, by email, access to a private page (or its whole site with --site) */
|
|
4245
|
+
share: async (url, options) => {
|
|
4246
|
+
return this.transport.call({
|
|
4247
|
+
groupSegments: ["pages"],
|
|
4248
|
+
command: "share",
|
|
4249
|
+
body: { url, ...(options ?? {}) },
|
|
4250
|
+
});
|
|
4251
|
+
},
|
|
4252
|
+
/** One-shot: publish a route on the project default Pages host */
|
|
3021
4253
|
ship: async (args, options) => {
|
|
3022
4254
|
return this.transport.call({
|
|
3023
4255
|
groupSegments: ["pages"],
|
|
3024
|
-
command: "ship",
|
|
3025
|
-
body: { args, ...(options ?? {}) },
|
|
4256
|
+
command: "ship",
|
|
4257
|
+
body: { args, ...(options ?? {}) },
|
|
4258
|
+
});
|
|
4259
|
+
},
|
|
4260
|
+
/** Remove one person's access to a page or site (applies immediately) */
|
|
4261
|
+
unshare: async (url, options) => {
|
|
4262
|
+
return this.transport.call({
|
|
4263
|
+
groupSegments: ["pages"],
|
|
4264
|
+
command: "unshare",
|
|
4265
|
+
body: { url, ...(options ?? {}) },
|
|
3026
4266
|
});
|
|
3027
4267
|
},
|
|
3028
4268
|
/** Update a Ravi Pages site in a Console project */
|
|
@@ -3059,6 +4299,22 @@ export class RaviClient {
|
|
|
3059
4299
|
body: { ...(options ?? {}) },
|
|
3060
4300
|
});
|
|
3061
4301
|
},
|
|
4302
|
+
/** Plan or revoke a contact permission profile grant in a chat scope */
|
|
4303
|
+
deny: async (profile, options) => {
|
|
4304
|
+
return this.transport.call({
|
|
4305
|
+
groupSegments: ["permissions"],
|
|
4306
|
+
command: "deny",
|
|
4307
|
+
body: { profile, ...(options ?? {}) },
|
|
4308
|
+
});
|
|
4309
|
+
},
|
|
4310
|
+
/** List contact permission profile grants in a chat scope */
|
|
4311
|
+
list: async (options) => {
|
|
4312
|
+
return this.transport.call({
|
|
4313
|
+
groupSegments: ["permissions"],
|
|
4314
|
+
command: "list",
|
|
4315
|
+
body: { ...(options ?? {}) },
|
|
4316
|
+
});
|
|
4317
|
+
},
|
|
3062
4318
|
/** Materialize provider-runtime capabilities for a subject */
|
|
3063
4319
|
materialize: async (options) => {
|
|
3064
4320
|
return this.transport.call({
|
|
@@ -3067,6 +4323,22 @@ export class RaviClient {
|
|
|
3067
4323
|
body: { ...(options ?? {}) },
|
|
3068
4324
|
});
|
|
3069
4325
|
},
|
|
4326
|
+
/** 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 */
|
|
4327
|
+
request: async (profile, options) => {
|
|
4328
|
+
return this.transport.call({
|
|
4329
|
+
groupSegments: ["permissions"],
|
|
4330
|
+
command: "request",
|
|
4331
|
+
body: { profile, ...(options ?? {}) },
|
|
4332
|
+
});
|
|
4333
|
+
},
|
|
4334
|
+
/** Show the state of a full-access request made with `permissions request` */
|
|
4335
|
+
requestStatus: async (requestId) => {
|
|
4336
|
+
return this.transport.call({
|
|
4337
|
+
groupSegments: ["permissions"],
|
|
4338
|
+
command: "request-status",
|
|
4339
|
+
body: { requestId },
|
|
4340
|
+
});
|
|
4341
|
+
},
|
|
3070
4342
|
/** Plan or apply a provider-owned fix for a recorded permission denial */
|
|
3071
4343
|
resolve: async (denialId, options) => {
|
|
3072
4344
|
return this.transport.call({
|
|
@@ -3084,185 +4356,59 @@ export class RaviClient {
|
|
|
3084
4356
|
});
|
|
3085
4357
|
}
|
|
3086
4358
|
};
|
|
3087
|
-
|
|
3088
|
-
/**
|
|
3089
|
-
|
|
3090
|
-
return this.transport.call({
|
|
3091
|
-
groupSegments: ["projects"],
|
|
3092
|
-
command: "create",
|
|
3093
|
-
body: { title, ...(options ?? {}) },
|
|
3094
|
-
});
|
|
3095
|
-
},
|
|
3096
|
-
fixtures: {
|
|
3097
|
-
/** Reset and seed the canonical project fixtures used in demos and smoke tests */
|
|
3098
|
-
seed: async (options) => {
|
|
3099
|
-
return this.transport.call({
|
|
3100
|
-
groupSegments: ["projects", "fixtures"],
|
|
3101
|
-
command: "seed",
|
|
3102
|
-
body: { ...(options ?? {}) },
|
|
3103
|
-
});
|
|
3104
|
-
}
|
|
3105
|
-
},
|
|
3106
|
-
/** Materialize a project with cheap links and optional canonical workflows */
|
|
3107
|
-
init: async (title, options) => {
|
|
4359
|
+
pr = {
|
|
4360
|
+
/** Upload the current branch, publish a ready PR and verify CI follow */
|
|
4361
|
+
publish: async (options) => {
|
|
3108
4362
|
return this.transport.call({
|
|
3109
|
-
groupSegments: ["
|
|
3110
|
-
command: "
|
|
3111
|
-
body: {
|
|
4363
|
+
groupSegments: ["pr"],
|
|
4364
|
+
command: "publish",
|
|
4365
|
+
body: { ...(options ?? {}) },
|
|
3112
4366
|
});
|
|
3113
|
-
}
|
|
3114
|
-
|
|
3115
|
-
|
|
4367
|
+
}
|
|
4368
|
+
};
|
|
4369
|
+
projects = {
|
|
4370
|
+
/** Create a project in Console */
|
|
4371
|
+
create: async (slug, options) => {
|
|
3116
4372
|
return this.transport.call({
|
|
3117
4373
|
groupSegments: ["projects"],
|
|
3118
|
-
command: "
|
|
3119
|
-
body: {
|
|
4374
|
+
command: "create",
|
|
4375
|
+
body: { slug, ...(options ?? {}) },
|
|
3120
4376
|
});
|
|
3121
4377
|
},
|
|
3122
|
-
/** List projects */
|
|
4378
|
+
/** List the organization's projects in Console */
|
|
3123
4379
|
list: async (options) => {
|
|
3124
4380
|
return this.transport.call({
|
|
3125
4381
|
groupSegments: ["projects"],
|
|
3126
4382
|
command: "list",
|
|
3127
4383
|
body: { ...(options ?? {}) },
|
|
3128
4384
|
});
|
|
3129
|
-
},
|
|
3130
|
-
/** List projects as an operational next-work surface */
|
|
3131
|
-
next: async (options) => {
|
|
3132
|
-
return this.transport.call({
|
|
3133
|
-
groupSegments: ["projects"],
|
|
3134
|
-
command: "next",
|
|
3135
|
-
body: { ...(options ?? {}) },
|
|
3136
|
-
});
|
|
3137
|
-
},
|
|
3138
|
-
resources: {
|
|
3139
|
-
/** Add one resource link to a project */
|
|
3140
|
-
add: async (project, target, options) => {
|
|
3141
|
-
return this.transport.call({
|
|
3142
|
-
groupSegments: ["projects", "resources"],
|
|
3143
|
-
command: "add",
|
|
3144
|
-
body: { project, target, ...(options ?? {}) },
|
|
3145
|
-
});
|
|
3146
|
-
},
|
|
3147
|
-
/** Import multiple cheap resources into a project */
|
|
3148
|
-
import: async (project, options) => {
|
|
3149
|
-
return this.transport.call({
|
|
3150
|
-
groupSegments: ["projects", "resources"],
|
|
3151
|
-
command: "import",
|
|
3152
|
-
body: { project, ...(options ?? {}) },
|
|
3153
|
-
});
|
|
3154
|
-
},
|
|
3155
|
-
/** List resource links for a project */
|
|
3156
|
-
list: async (project, options) => {
|
|
3157
|
-
return this.transport.call({
|
|
3158
|
-
groupSegments: ["projects", "resources"],
|
|
3159
|
-
command: "list",
|
|
3160
|
-
body: { project, ...(options ?? {}) },
|
|
3161
|
-
});
|
|
3162
|
-
},
|
|
3163
|
-
/** Show one resource link on a project */
|
|
3164
|
-
show: async (project, resource) => {
|
|
3165
|
-
return this.transport.call({
|
|
3166
|
-
groupSegments: ["projects", "resources"],
|
|
3167
|
-
command: "show",
|
|
3168
|
-
body: { project, resource },
|
|
3169
|
-
});
|
|
3170
|
-
}
|
|
3171
|
-
},
|
|
3172
|
-
/** Show one project with linked context */
|
|
3173
|
-
show: async (project) => {
|
|
3174
|
-
return this.transport.call({
|
|
3175
|
-
groupSegments: ["projects"],
|
|
3176
|
-
command: "show",
|
|
3177
|
-
body: { project },
|
|
3178
|
-
});
|
|
3179
|
-
},
|
|
3180
|
-
/** Show one project with workflow runtime rollup */
|
|
3181
|
-
status: async (project) => {
|
|
3182
|
-
return this.transport.call({
|
|
3183
|
-
groupSegments: ["projects"],
|
|
3184
|
-
command: "status",
|
|
3185
|
-
body: { project },
|
|
3186
|
-
});
|
|
3187
|
-
},
|
|
3188
|
-
tasks: {
|
|
3189
|
-
/** Attach an existing task to a project workflow node */
|
|
3190
|
-
attach: async (project, nodeKey, taskId, options) => {
|
|
3191
|
-
return this.transport.call({
|
|
3192
|
-
groupSegments: ["projects", "tasks"],
|
|
3193
|
-
command: "attach",
|
|
3194
|
-
body: { project, nodeKey, taskId, ...(options ?? {}) },
|
|
3195
|
-
});
|
|
3196
|
-
},
|
|
3197
|
-
/** Create a task attempt from a project workflow node */
|
|
3198
|
-
create: async (project, nodeKey, title, options) => {
|
|
3199
|
-
return this.transport.call({
|
|
3200
|
-
groupSegments: ["projects", "tasks"],
|
|
3201
|
-
command: "create",
|
|
3202
|
-
body: { project, nodeKey, title, ...(options ?? {}) },
|
|
3203
|
-
});
|
|
3204
|
-
},
|
|
3205
|
-
/** Dispatch a task using project owner/session defaults */
|
|
3206
|
-
dispatch: async (project, taskId, options) => {
|
|
3207
|
-
return this.transport.call({
|
|
3208
|
-
groupSegments: ["projects", "tasks"],
|
|
3209
|
-
command: "dispatch",
|
|
3210
|
-
body: { project, taskId, ...(options ?? {}) },
|
|
3211
|
-
});
|
|
3212
|
-
}
|
|
3213
|
-
},
|
|
3214
|
-
/** Update one project */
|
|
3215
|
-
update: async (project, options) => {
|
|
3216
|
-
return this.transport.call({
|
|
3217
|
-
groupSegments: ["projects"],
|
|
3218
|
-
command: "update",
|
|
3219
|
-
body: { project, ...(options ?? {}) },
|
|
3220
|
-
});
|
|
3221
|
-
},
|
|
3222
|
-
workflows: {
|
|
3223
|
-
/** Attach one existing workflow run to a project in one step */
|
|
3224
|
-
attach: async (project, runId, options) => {
|
|
3225
|
-
return this.transport.call({
|
|
3226
|
-
groupSegments: ["projects", "workflows"],
|
|
3227
|
-
command: "attach",
|
|
3228
|
-
body: { project, runId, ...(options ?? {}) },
|
|
3229
|
-
});
|
|
3230
|
-
},
|
|
3231
|
-
/** Start one workflow run from a project and link it in one step */
|
|
3232
|
-
start: async (project, specId, options) => {
|
|
3233
|
-
return this.transport.call({
|
|
3234
|
-
groupSegments: ["projects", "workflows"],
|
|
3235
|
-
command: "start",
|
|
3236
|
-
body: { project, specId, ...(options ?? {}) },
|
|
3237
|
-
});
|
|
3238
|
-
}
|
|
3239
4385
|
}
|
|
3240
4386
|
};
|
|
3241
4387
|
prox = {
|
|
3242
4388
|
calls: {
|
|
3243
4389
|
/** Cancel a pending call request */
|
|
3244
|
-
cancel: async (
|
|
4390
|
+
cancel: async (callRequestId, options) => {
|
|
3245
4391
|
return this.transport.call({
|
|
3246
4392
|
groupSegments: ["prox", "calls"],
|
|
3247
4393
|
command: "cancel",
|
|
3248
|
-
body: { call_request_id, ...(options ?? {}) },
|
|
4394
|
+
body: { "call_request_id": callRequestId, ...(options ?? {}) },
|
|
3249
4395
|
});
|
|
3250
4396
|
},
|
|
3251
4397
|
/** Show event timeline for a call request */
|
|
3252
|
-
events: async (
|
|
4398
|
+
events: async (callRequestId) => {
|
|
3253
4399
|
return this.transport.call({
|
|
3254
4400
|
groupSegments: ["prox", "calls"],
|
|
3255
4401
|
command: "events",
|
|
3256
|
-
body: { call_request_id },
|
|
4402
|
+
body: { "call_request_id": callRequestId },
|
|
3257
4403
|
});
|
|
3258
4404
|
},
|
|
3259
4405
|
profiles: {
|
|
3260
4406
|
/** Configure a call profile's provider settings */
|
|
3261
|
-
configure: async (
|
|
4407
|
+
configure: async (profileId, options) => {
|
|
3262
4408
|
return this.transport.call({
|
|
3263
4409
|
groupSegments: ["prox", "calls", "profiles"],
|
|
3264
4410
|
command: "configure",
|
|
3265
|
-
body: { profile_id, ...(options ?? {}) },
|
|
4411
|
+
body: { "profile_id": profileId, ...(options ?? {}) },
|
|
3266
4412
|
});
|
|
3267
4413
|
},
|
|
3268
4414
|
/** List available call profiles */
|
|
@@ -3274,11 +4420,11 @@ export class RaviClient {
|
|
|
3274
4420
|
});
|
|
3275
4421
|
},
|
|
3276
4422
|
/** Show a call profile by ID */
|
|
3277
|
-
show: async (
|
|
4423
|
+
show: async (profileId) => {
|
|
3278
4424
|
return this.transport.call({
|
|
3279
4425
|
groupSegments: ["prox", "calls", "profiles"],
|
|
3280
4426
|
command: "show",
|
|
3281
|
-
body: { profile_id },
|
|
4427
|
+
body: { "profile_id": profileId },
|
|
3282
4428
|
});
|
|
3283
4429
|
}
|
|
3284
4430
|
},
|
|
@@ -3299,36 +4445,36 @@ export class RaviClient {
|
|
|
3299
4445
|
});
|
|
3300
4446
|
},
|
|
3301
4447
|
/** Show details of a call request */
|
|
3302
|
-
show: async (
|
|
4448
|
+
show: async (callRequestId) => {
|
|
3303
4449
|
return this.transport.call({
|
|
3304
4450
|
groupSegments: ["prox", "calls"],
|
|
3305
4451
|
command: "show",
|
|
3306
|
-
body: { call_request_id },
|
|
4452
|
+
body: { "call_request_id": callRequestId },
|
|
3307
4453
|
});
|
|
3308
4454
|
},
|
|
3309
4455
|
tools: {
|
|
3310
4456
|
/** Bind a tool to a profile */
|
|
3311
|
-
bind: async (
|
|
4457
|
+
bind: async (profileId, toolId, options) => {
|
|
3312
4458
|
return this.transport.call({
|
|
3313
4459
|
groupSegments: ["prox", "calls", "tools"],
|
|
3314
4460
|
command: "bind",
|
|
3315
|
-
body: { profile_id, tool_id, ...(options ?? {}) },
|
|
4461
|
+
body: { "profile_id": profileId, "tool_id": toolId, ...(options ?? {}) },
|
|
3316
4462
|
});
|
|
3317
4463
|
},
|
|
3318
4464
|
/** Configure a call tool */
|
|
3319
|
-
configure: async (
|
|
4465
|
+
configure: async (toolId, options) => {
|
|
3320
4466
|
return this.transport.call({
|
|
3321
4467
|
groupSegments: ["prox", "calls", "tools"],
|
|
3322
4468
|
command: "configure",
|
|
3323
|
-
body: { tool_id, ...(options ?? {}) },
|
|
4469
|
+
body: { "tool_id": toolId, ...(options ?? {}) },
|
|
3324
4470
|
});
|
|
3325
4471
|
},
|
|
3326
4472
|
/** Create a new call tool */
|
|
3327
|
-
create: async (
|
|
4473
|
+
create: async (toolId, options) => {
|
|
3328
4474
|
return this.transport.call({
|
|
3329
4475
|
groupSegments: ["prox", "calls", "tools"],
|
|
3330
4476
|
command: "create",
|
|
3331
|
-
body: { tool_id, ...(options ?? {}) },
|
|
4477
|
+
body: { "tool_id": toolId, ...(options ?? {}) },
|
|
3332
4478
|
});
|
|
3333
4479
|
},
|
|
3334
4480
|
/** List call tools */
|
|
@@ -3340,69 +4486,69 @@ export class RaviClient {
|
|
|
3340
4486
|
});
|
|
3341
4487
|
},
|
|
3342
4488
|
/** Execute a tool (dry-run validates without side effects) */
|
|
3343
|
-
run: async (
|
|
4489
|
+
run: async (toolId, options) => {
|
|
3344
4490
|
return this.transport.call({
|
|
3345
4491
|
groupSegments: ["prox", "calls", "tools"],
|
|
3346
4492
|
command: "run",
|
|
3347
|
-
body: { tool_id, ...(options ?? {}) },
|
|
4493
|
+
body: { "tool_id": toolId, ...(options ?? {}) },
|
|
3348
4494
|
});
|
|
3349
4495
|
},
|
|
3350
4496
|
/** List tool runs for a call request */
|
|
3351
|
-
runs: async (
|
|
4497
|
+
runs: async (callRequestId) => {
|
|
3352
4498
|
return this.transport.call({
|
|
3353
4499
|
groupSegments: ["prox", "calls", "tools"],
|
|
3354
4500
|
command: "runs",
|
|
3355
|
-
body: { call_request_id },
|
|
4501
|
+
body: { "call_request_id": callRequestId },
|
|
3356
4502
|
});
|
|
3357
4503
|
},
|
|
3358
4504
|
/** Show a call tool by ID */
|
|
3359
|
-
show: async (
|
|
4505
|
+
show: async (toolId) => {
|
|
3360
4506
|
return this.transport.call({
|
|
3361
4507
|
groupSegments: ["prox", "calls", "tools"],
|
|
3362
4508
|
command: "show",
|
|
3363
|
-
body: { tool_id },
|
|
4509
|
+
body: { "tool_id": toolId },
|
|
3364
4510
|
});
|
|
3365
4511
|
},
|
|
3366
4512
|
/** Unbind a tool from a profile */
|
|
3367
|
-
unbind: async (
|
|
4513
|
+
unbind: async (profileId, toolId) => {
|
|
3368
4514
|
return this.transport.call({
|
|
3369
4515
|
groupSegments: ["prox", "calls", "tools"],
|
|
3370
4516
|
command: "unbind",
|
|
3371
|
-
body: { profile_id, tool_id },
|
|
4517
|
+
body: { "profile_id": profileId, "tool_id": toolId },
|
|
3372
4518
|
});
|
|
3373
4519
|
}
|
|
3374
4520
|
},
|
|
3375
4521
|
/** Show call transcript, syncing provider state when needed */
|
|
3376
|
-
transcript: async (
|
|
4522
|
+
transcript: async (callRequestId, options) => {
|
|
3377
4523
|
return this.transport.call({
|
|
3378
4524
|
groupSegments: ["prox", "calls"],
|
|
3379
4525
|
command: "transcript",
|
|
3380
|
-
body: { call_request_id, ...(options ?? {}) },
|
|
4526
|
+
body: { "call_request_id": callRequestId, ...(options ?? {}) },
|
|
3381
4527
|
});
|
|
3382
4528
|
},
|
|
3383
4529
|
voiceAgents: {
|
|
3384
4530
|
/** Bind a tool to a voice agent */
|
|
3385
|
-
bindTool: async (
|
|
4531
|
+
bindTool: async (voiceAgentId, toolId, options) => {
|
|
3386
4532
|
return this.transport.call({
|
|
3387
4533
|
groupSegments: ["prox", "calls", "voice-agents"],
|
|
3388
4534
|
command: "bind-tool",
|
|
3389
|
-
body: { voice_agent_id, tool_id, ...(options ?? {}) },
|
|
4535
|
+
body: { "voice_agent_id": voiceAgentId, "tool_id": toolId, ...(options ?? {}) },
|
|
3390
4536
|
});
|
|
3391
4537
|
},
|
|
3392
4538
|
/** Configure a voice agent */
|
|
3393
|
-
configure: async (
|
|
4539
|
+
configure: async (voiceAgentId, options) => {
|
|
3394
4540
|
return this.transport.call({
|
|
3395
4541
|
groupSegments: ["prox", "calls", "voice-agents"],
|
|
3396
4542
|
command: "configure",
|
|
3397
|
-
body: { voice_agent_id, ...(options ?? {}) },
|
|
4543
|
+
body: { "voice_agent_id": voiceAgentId, ...(options ?? {}) },
|
|
3398
4544
|
});
|
|
3399
4545
|
},
|
|
3400
4546
|
/** Create a new voice agent */
|
|
3401
|
-
create: async (
|
|
4547
|
+
create: async (voiceAgentId, options) => {
|
|
3402
4548
|
return this.transport.call({
|
|
3403
4549
|
groupSegments: ["prox", "calls", "voice-agents"],
|
|
3404
4550
|
command: "create",
|
|
3405
|
-
body: { voice_agent_id, ...(options ?? {}) },
|
|
4551
|
+
body: { "voice_agent_id": voiceAgentId, ...(options ?? {}) },
|
|
3406
4552
|
});
|
|
3407
4553
|
},
|
|
3408
4554
|
/** List voice agents */
|
|
@@ -3414,27 +4560,27 @@ export class RaviClient {
|
|
|
3414
4560
|
});
|
|
3415
4561
|
},
|
|
3416
4562
|
/** Show a voice agent by ID */
|
|
3417
|
-
show: async (
|
|
4563
|
+
show: async (voiceAgentId) => {
|
|
3418
4564
|
return this.transport.call({
|
|
3419
4565
|
groupSegments: ["prox", "calls", "voice-agents"],
|
|
3420
4566
|
command: "show",
|
|
3421
|
-
body: { voice_agent_id },
|
|
4567
|
+
body: { "voice_agent_id": voiceAgentId },
|
|
3422
4568
|
});
|
|
3423
4569
|
},
|
|
3424
4570
|
/** Sync voice agent to provider (dry-run by default) */
|
|
3425
|
-
sync: async (
|
|
4571
|
+
sync: async (voiceAgentId, options) => {
|
|
3426
4572
|
return this.transport.call({
|
|
3427
4573
|
groupSegments: ["prox", "calls", "voice-agents"],
|
|
3428
4574
|
command: "sync",
|
|
3429
|
-
body: { voice_agent_id, ...(options ?? {}) },
|
|
4575
|
+
body: { "voice_agent_id": voiceAgentId, ...(options ?? {}) },
|
|
3430
4576
|
});
|
|
3431
4577
|
},
|
|
3432
4578
|
/** Unbind a tool from a voice agent */
|
|
3433
|
-
unbindTool: async (
|
|
4579
|
+
unbindTool: async (voiceAgentId, toolId) => {
|
|
3434
4580
|
return this.transport.call({
|
|
3435
4581
|
groupSegments: ["prox", "calls", "voice-agents"],
|
|
3436
4582
|
command: "unbind-tool",
|
|
3437
|
-
body: { voice_agent_id, tool_id },
|
|
4583
|
+
body: { "voice_agent_id": voiceAgentId, "tool_id": toolId },
|
|
3438
4584
|
});
|
|
3439
4585
|
}
|
|
3440
4586
|
}
|
|
@@ -3927,6 +5073,14 @@ export class RaviClient {
|
|
|
3927
5073
|
body: { nameOrKey, ...(options ?? {}) },
|
|
3928
5074
|
});
|
|
3929
5075
|
},
|
|
5076
|
+
/** Clone a session into a new chat with the chosen name: same agent, new session seeded with the recap; dry-run unless --execute */
|
|
5077
|
+
clone: async (name, options) => {
|
|
5078
|
+
return this.transport.call({
|
|
5079
|
+
groupSegments: ["sessions"],
|
|
5080
|
+
command: "clone",
|
|
5081
|
+
body: { name, ...(options ?? {}) },
|
|
5082
|
+
});
|
|
5083
|
+
},
|
|
3930
5084
|
/** Close the current Slack thread session, optionally returning a result to its parent */
|
|
3931
5085
|
closeThread: async (options) => {
|
|
3932
5086
|
return this.transport.call({
|
|
@@ -3935,6 +5089,96 @@ export class RaviClient {
|
|
|
3935
5089
|
body: { ...(options ?? {}) },
|
|
3936
5090
|
});
|
|
3937
5091
|
},
|
|
5092
|
+
conversations: {
|
|
5093
|
+
/** agents.list in the authorized private session store */
|
|
5094
|
+
agents: async (projectId, requestId, createdAt) => {
|
|
5095
|
+
return this.transport.call({
|
|
5096
|
+
groupSegments: ["sessions", "conversations"],
|
|
5097
|
+
command: "agents",
|
|
5098
|
+
body: { projectId, requestId, createdAt },
|
|
5099
|
+
});
|
|
5100
|
+
},
|
|
5101
|
+
/** turns.cancel in the authorized private session store */
|
|
5102
|
+
cancel: async (projectId, requestId, createdAt, conversationId, turnId) => {
|
|
5103
|
+
return this.transport.call({
|
|
5104
|
+
groupSegments: ["sessions", "conversations"],
|
|
5105
|
+
command: "cancel",
|
|
5106
|
+
body: { projectId, requestId, createdAt, conversationId, turnId },
|
|
5107
|
+
});
|
|
5108
|
+
},
|
|
5109
|
+
/** conversations.create in the authorized private session store */
|
|
5110
|
+
create: async (projectId, requestId, createdAt, agentId) => {
|
|
5111
|
+
return this.transport.call({
|
|
5112
|
+
groupSegments: ["sessions", "conversations"],
|
|
5113
|
+
command: "create",
|
|
5114
|
+
body: { projectId, requestId, createdAt, agentId },
|
|
5115
|
+
});
|
|
5116
|
+
},
|
|
5117
|
+
/** approvals.decide in the authorized private session store */
|
|
5118
|
+
decide: async (projectId, requestId, createdAt, conversationId, approvalId, decision, expectedVersion, actionDigest) => {
|
|
5119
|
+
return this.transport.call({
|
|
5120
|
+
groupSegments: ["sessions", "conversations"],
|
|
5121
|
+
command: "decide",
|
|
5122
|
+
body: { projectId, requestId, createdAt, conversationId, approvalId, decision, expectedVersion, actionDigest },
|
|
5123
|
+
});
|
|
5124
|
+
},
|
|
5125
|
+
/** events.read in the authorized private session store */
|
|
5126
|
+
events: async (projectId, requestId, createdAt, conversationId, cursor) => {
|
|
5127
|
+
return this.transport.call({
|
|
5128
|
+
groupSegments: ["sessions", "conversations"],
|
|
5129
|
+
command: "events",
|
|
5130
|
+
body: { projectId, requestId, createdAt, conversationId, cursor },
|
|
5131
|
+
});
|
|
5132
|
+
},
|
|
5133
|
+
/** messages.list in the authorized private session store */
|
|
5134
|
+
history: async (projectId, requestId, createdAt, conversationId, before) => {
|
|
5135
|
+
return this.transport.call({
|
|
5136
|
+
groupSegments: ["sessions", "conversations"],
|
|
5137
|
+
command: "history",
|
|
5138
|
+
body: { projectId, requestId, createdAt, conversationId, before },
|
|
5139
|
+
});
|
|
5140
|
+
},
|
|
5141
|
+
/** conversations.list in the authorized private session store */
|
|
5142
|
+
list: async (projectId, requestId, createdAt, options) => {
|
|
5143
|
+
return this.transport.call({
|
|
5144
|
+
groupSegments: ["sessions", "conversations"],
|
|
5145
|
+
command: "list",
|
|
5146
|
+
body: { projectId, requestId, createdAt, ...(options ?? {}) },
|
|
5147
|
+
});
|
|
5148
|
+
},
|
|
5149
|
+
/** conversations.open in the authorized private session store */
|
|
5150
|
+
open: async (projectId, requestId, createdAt, conversationId) => {
|
|
5151
|
+
return this.transport.call({
|
|
5152
|
+
groupSegments: ["sessions", "conversations"],
|
|
5153
|
+
command: "open",
|
|
5154
|
+
body: { projectId, requestId, createdAt, conversationId },
|
|
5155
|
+
});
|
|
5156
|
+
},
|
|
5157
|
+
/** requests.get in the authorized private session store */
|
|
5158
|
+
receipt: async (projectId, requestId, createdAt, targetRequestId) => {
|
|
5159
|
+
return this.transport.call({
|
|
5160
|
+
groupSegments: ["sessions", "conversations"],
|
|
5161
|
+
command: "receipt",
|
|
5162
|
+
body: { projectId, requestId, createdAt, targetRequestId },
|
|
5163
|
+
});
|
|
5164
|
+
},
|
|
5165
|
+
/** lease.renew in the authorized private session store */
|
|
5166
|
+
renew: async (projectId, requestId, createdAt, conversationId) => {
|
|
5167
|
+
return this.transport.call({
|
|
5168
|
+
groupSegments: ["sessions", "conversations"],
|
|
5169
|
+
command: "renew",
|
|
5170
|
+
body: { projectId, requestId, createdAt, conversationId },
|
|
5171
|
+
});
|
|
5172
|
+
},
|
|
5173
|
+
/** messages.send in the authorized private session store */
|
|
5174
|
+
send: async (projectId, requestId, createdAt, conversationId, text, expectedVersion) => {
|
|
5175
|
+
return this.transport.call({
|
|
5176
|
+
groupSegments: ["sessions", "conversations"],
|
|
5177
|
+
command: "send",
|
|
5178
|
+
body: { projectId, requestId, createdAt, conversationId, text, expectedVersion },
|
|
5179
|
+
});
|
|
5180
|
+
}
|
|
5181
|
+
},
|
|
3938
5182
|
/** Create a native Slack thread and start a child session in it */
|
|
3939
5183
|
createThread: async (message, options) => {
|
|
3940
5184
|
return this.transport.call({
|
|
@@ -4081,6 +5325,22 @@ export class RaviClient {
|
|
|
4081
5325
|
body: { action, nameOrKey, objective, ...(options ?? {}) },
|
|
4082
5326
|
});
|
|
4083
5327
|
},
|
|
5328
|
+
/** Mark a thread's open handoff as handled by the parent (for actions that do not message the thread) */
|
|
5329
|
+
handoffAck: async (handoff, options) => {
|
|
5330
|
+
return this.transport.call({
|
|
5331
|
+
groupSegments: ["sessions"],
|
|
5332
|
+
command: "handoff-ack",
|
|
5333
|
+
body: { handoff, ...(options ?? {}) },
|
|
5334
|
+
});
|
|
5335
|
+
},
|
|
5336
|
+
/** List what threads are waiting for their parent session to do (open handoffs) */
|
|
5337
|
+
handoffs: async (options) => {
|
|
5338
|
+
return this.transport.call({
|
|
5339
|
+
groupSegments: ["sessions"],
|
|
5340
|
+
command: "handoffs",
|
|
5341
|
+
body: { ...(options ?? {}) },
|
|
5342
|
+
});
|
|
5343
|
+
},
|
|
4084
5344
|
/** Show unified session inspection details */
|
|
4085
5345
|
info: async (nameOrKey) => {
|
|
4086
5346
|
return this.transport.call({
|
|
@@ -4113,6 +5373,22 @@ export class RaviClient {
|
|
|
4113
5373
|
body: { ...(options ?? {}) },
|
|
4114
5374
|
});
|
|
4115
5375
|
},
|
|
5376
|
+
/** Watch another session and get a short notice in this one when something is wrong (or on every turn) */
|
|
5377
|
+
observe: async (source, options) => {
|
|
5378
|
+
return this.transport.call({
|
|
5379
|
+
groupSegments: ["sessions"],
|
|
5380
|
+
command: "observe",
|
|
5381
|
+
body: { source, ...(options ?? {}) },
|
|
5382
|
+
});
|
|
5383
|
+
},
|
|
5384
|
+
/** List the observations started with 'ravi sessions observe' that you can see */
|
|
5385
|
+
observing: async () => {
|
|
5386
|
+
return this.transport.call({
|
|
5387
|
+
groupSegments: ["sessions"],
|
|
5388
|
+
command: "observing",
|
|
5389
|
+
body: {},
|
|
5390
|
+
});
|
|
5391
|
+
},
|
|
4116
5392
|
/** Prune sessions inactive for a duration (dry-run by default) */
|
|
4117
5393
|
prune: async (options) => {
|
|
4118
5394
|
return this.transport.call({
|
|
@@ -4145,6 +5421,14 @@ export class RaviClient {
|
|
|
4145
5421
|
body: { nameOrKey, newName },
|
|
4146
5422
|
});
|
|
4147
5423
|
},
|
|
5424
|
+
/** Report progress from a Slack thread to its parent session without closing the thread */
|
|
5425
|
+
report: async (message, options) => {
|
|
5426
|
+
return this.transport.call({
|
|
5427
|
+
groupSegments: ["sessions"],
|
|
5428
|
+
command: "report",
|
|
5429
|
+
body: { message, ...(options ?? {}) },
|
|
5430
|
+
});
|
|
5431
|
+
},
|
|
4148
5432
|
/** Reset a session (fresh start) */
|
|
4149
5433
|
reset: async (nameOrKey, options) => {
|
|
4150
5434
|
return this.transport.call({
|
|
@@ -4275,6 +5559,30 @@ export class RaviClient {
|
|
|
4275
5559
|
body: { nameOrKey },
|
|
4276
5560
|
});
|
|
4277
5561
|
},
|
|
5562
|
+
/** Configure runtime options for a Slack thread owned by this parent session */
|
|
5563
|
+
threadConfigure: async (thread, options) => {
|
|
5564
|
+
return this.transport.call({
|
|
5565
|
+
groupSegments: ["sessions"],
|
|
5566
|
+
command: "thread-configure",
|
|
5567
|
+
body: { thread, ...(options ?? {}) },
|
|
5568
|
+
});
|
|
5569
|
+
},
|
|
5570
|
+
/** Send new instructions to one of this session's Slack threads */
|
|
5571
|
+
threadSend: async (thread, message, options) => {
|
|
5572
|
+
return this.transport.call({
|
|
5573
|
+
groupSegments: ["sessions"],
|
|
5574
|
+
command: "thread-send",
|
|
5575
|
+
body: { thread, message, ...(options ?? {}) },
|
|
5576
|
+
});
|
|
5577
|
+
},
|
|
5578
|
+
/** List the Slack threads this session opened or owns */
|
|
5579
|
+
threads: async (options) => {
|
|
5580
|
+
return this.transport.call({
|
|
5581
|
+
groupSegments: ["sessions"],
|
|
5582
|
+
command: "threads",
|
|
5583
|
+
body: { ...(options ?? {}) },
|
|
5584
|
+
});
|
|
5585
|
+
},
|
|
4278
5586
|
/** Read the SQLite session trace timeline */
|
|
4279
5587
|
trace: async (nameOrKey, options) => {
|
|
4280
5588
|
return this.transport.call({
|
|
@@ -4283,6 +5591,22 @@ export class RaviClient {
|
|
|
4283
5591
|
body: { nameOrKey, ...(options ?? {}) },
|
|
4284
5592
|
});
|
|
4285
5593
|
},
|
|
5594
|
+
/** Stop watching a session started with 'ravi sessions observe' */
|
|
5595
|
+
unobserve: async (source, options) => {
|
|
5596
|
+
return this.transport.call({
|
|
5597
|
+
groupSegments: ["sessions"],
|
|
5598
|
+
command: "unobserve",
|
|
5599
|
+
body: { source, ...(options ?? {}) },
|
|
5600
|
+
});
|
|
5601
|
+
},
|
|
5602
|
+
/** Atomically update session provider/model/effort/thinking, prove the result with a live provider turn, and roll back on failure */
|
|
5603
|
+
update: async (nameOrKey, options) => {
|
|
5604
|
+
return this.transport.call({
|
|
5605
|
+
groupSegments: ["sessions"],
|
|
5606
|
+
command: "update",
|
|
5607
|
+
body: { nameOrKey, ...(options ?? {}) },
|
|
5608
|
+
});
|
|
5609
|
+
},
|
|
4286
5610
|
/** Show runtime session visibility state */
|
|
4287
5611
|
visibility: async (nameOrKey) => {
|
|
4288
5612
|
return this.transport.call({
|
|
@@ -4326,6 +5650,112 @@ export class RaviClient {
|
|
|
4326
5650
|
});
|
|
4327
5651
|
}
|
|
4328
5652
|
};
|
|
5653
|
+
signals = {
|
|
5654
|
+
/** Acknowledge a signal */
|
|
5655
|
+
ack: async (idOrKey, options) => {
|
|
5656
|
+
return this.transport.call({
|
|
5657
|
+
groupSegments: ["signals"],
|
|
5658
|
+
command: "ack",
|
|
5659
|
+
body: { idOrKey, ...(options ?? {}) },
|
|
5660
|
+
});
|
|
5661
|
+
},
|
|
5662
|
+
/** Show the daily surface budget */
|
|
5663
|
+
budget: async () => {
|
|
5664
|
+
return this.transport.call({
|
|
5665
|
+
groupSegments: ["signals"],
|
|
5666
|
+
command: "budget",
|
|
5667
|
+
body: {},
|
|
5668
|
+
});
|
|
5669
|
+
},
|
|
5670
|
+
/** Explain why a signal is or is not visible */
|
|
5671
|
+
explain: async (idOrKey) => {
|
|
5672
|
+
return this.transport.call({
|
|
5673
|
+
groupSegments: ["signals"],
|
|
5674
|
+
command: "explain",
|
|
5675
|
+
body: { idOrKey },
|
|
5676
|
+
});
|
|
5677
|
+
},
|
|
5678
|
+
/** List signals */
|
|
5679
|
+
list: async (options) => {
|
|
5680
|
+
return this.transport.call({
|
|
5681
|
+
groupSegments: ["signals"],
|
|
5682
|
+
command: "list",
|
|
5683
|
+
body: { ...(options ?? {}) },
|
|
5684
|
+
});
|
|
5685
|
+
},
|
|
5686
|
+
/** Mute a signal for a duration */
|
|
5687
|
+
mute: async (idOrKey, options) => {
|
|
5688
|
+
return this.transport.call({
|
|
5689
|
+
groupSegments: ["signals"],
|
|
5690
|
+
command: "mute",
|
|
5691
|
+
body: { idOrKey, ...(options ?? {}) },
|
|
5692
|
+
});
|
|
5693
|
+
},
|
|
5694
|
+
/** Mute a key across reopenings */
|
|
5695
|
+
muteKey: async (key, options) => {
|
|
5696
|
+
return this.transport.call({
|
|
5697
|
+
groupSegments: ["signals"],
|
|
5698
|
+
command: "mute-key",
|
|
5699
|
+
body: { key, ...(options ?? {}) },
|
|
5700
|
+
});
|
|
5701
|
+
},
|
|
5702
|
+
/** Raise or refresh a signal */
|
|
5703
|
+
raise: async (key, options) => {
|
|
5704
|
+
return this.transport.call({
|
|
5705
|
+
groupSegments: ["signals"],
|
|
5706
|
+
command: "raise",
|
|
5707
|
+
body: { key, ...(options ?? {}) },
|
|
5708
|
+
});
|
|
5709
|
+
},
|
|
5710
|
+
/** Resolve a signal with a reason */
|
|
5711
|
+
resolve: async (idOrKey, options) => {
|
|
5712
|
+
return this.transport.call({
|
|
5713
|
+
groupSegments: ["signals"],
|
|
5714
|
+
command: "resolve",
|
|
5715
|
+
body: { idOrKey, ...(options ?? {}) },
|
|
5716
|
+
});
|
|
5717
|
+
},
|
|
5718
|
+
/** Show one signal */
|
|
5719
|
+
show: async (idOrKey) => {
|
|
5720
|
+
return this.transport.call({
|
|
5721
|
+
groupSegments: ["signals"],
|
|
5722
|
+
command: "show",
|
|
5723
|
+
body: { idOrKey },
|
|
5724
|
+
});
|
|
5725
|
+
},
|
|
5726
|
+
/** Evaluate signals and escalate due ones (dry-run unless --execute) */
|
|
5727
|
+
tick: async (options) => {
|
|
5728
|
+
return this.transport.call({
|
|
5729
|
+
groupSegments: ["signals"],
|
|
5730
|
+
command: "tick",
|
|
5731
|
+
body: { ...(options ?? {}) },
|
|
5732
|
+
});
|
|
5733
|
+
},
|
|
5734
|
+
/** Unmute a signal */
|
|
5735
|
+
unmute: async (idOrKey) => {
|
|
5736
|
+
return this.transport.call({
|
|
5737
|
+
groupSegments: ["signals"],
|
|
5738
|
+
command: "unmute",
|
|
5739
|
+
body: { idOrKey },
|
|
5740
|
+
});
|
|
5741
|
+
},
|
|
5742
|
+
/** Unmute a key */
|
|
5743
|
+
unmuteKey: async (key) => {
|
|
5744
|
+
return this.transport.call({
|
|
5745
|
+
groupSegments: ["signals"],
|
|
5746
|
+
command: "unmute-key",
|
|
5747
|
+
body: { key },
|
|
5748
|
+
});
|
|
5749
|
+
},
|
|
5750
|
+
/** Update a non-terminal signal */
|
|
5751
|
+
update: async (idOrKey, options) => {
|
|
5752
|
+
return this.transport.call({
|
|
5753
|
+
groupSegments: ["signals"],
|
|
5754
|
+
command: "update",
|
|
5755
|
+
body: { idOrKey, ...(options ?? {}) },
|
|
5756
|
+
});
|
|
5757
|
+
}
|
|
5758
|
+
};
|
|
4329
5759
|
skillGates = {
|
|
4330
5760
|
/** Disable a skill gate rule */
|
|
4331
5761
|
disable: async (id) => {
|
|
@@ -4385,7 +5815,7 @@ export class RaviClient {
|
|
|
4385
5815
|
}
|
|
4386
5816
|
};
|
|
4387
5817
|
skills = {
|
|
4388
|
-
/** Grant a
|
|
5818
|
+
/** 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. */
|
|
4389
5819
|
grant: async (agent, skill, options) => {
|
|
4390
5820
|
return this.transport.call({
|
|
4391
5821
|
groupSegments: ["skills"],
|
|
@@ -4425,6 +5855,54 @@ export class RaviClient {
|
|
|
4425
5855
|
body: { ...(options ?? {}) },
|
|
4426
5856
|
});
|
|
4427
5857
|
},
|
|
5858
|
+
/** Pin a Library skill to an agent of this installation: it loads natively and is authorized for it. Requires --execute. */
|
|
5859
|
+
pin: async (ref, options) => {
|
|
5860
|
+
return this.transport.call({
|
|
5861
|
+
groupSegments: ["skills"],
|
|
5862
|
+
command: "pin",
|
|
5863
|
+
body: { ref, ...(options ?? {}) },
|
|
5864
|
+
});
|
|
5865
|
+
},
|
|
5866
|
+
/** List Library skills pinned to this installation's agents, or (<ref>) where one item is pinned */
|
|
5867
|
+
pins: async (ref, options) => {
|
|
5868
|
+
return this.transport.call({
|
|
5869
|
+
groupSegments: ["skills"],
|
|
5870
|
+
command: "pins",
|
|
5871
|
+
body: { ref, ...(options ?? {}) },
|
|
5872
|
+
});
|
|
5873
|
+
},
|
|
5874
|
+
/** Show one proposal of a Library skill: status, files and review comments */
|
|
5875
|
+
proposal: async (ref, number) => {
|
|
5876
|
+
return this.transport.call({
|
|
5877
|
+
groupSegments: ["skills"],
|
|
5878
|
+
command: "proposal",
|
|
5879
|
+
body: { ref, number },
|
|
5880
|
+
});
|
|
5881
|
+
},
|
|
5882
|
+
/** List proposals of Library skills: one item's (<ref>) or every one you can see */
|
|
5883
|
+
proposals: async (ref, options) => {
|
|
5884
|
+
return this.transport.call({
|
|
5885
|
+
groupSegments: ["skills"],
|
|
5886
|
+
command: "proposals",
|
|
5887
|
+
body: { ref, ...(options ?? {}) },
|
|
5888
|
+
});
|
|
5889
|
+
},
|
|
5890
|
+
/** Propose a new version of a Library skill for review instead of publishing it (agents use this). Requires --execute. */
|
|
5891
|
+
propose: async (dir, options) => {
|
|
5892
|
+
return this.transport.call({
|
|
5893
|
+
groupSegments: ["skills"],
|
|
5894
|
+
command: "propose",
|
|
5895
|
+
body: { dir, ...(options ?? {}) },
|
|
5896
|
+
});
|
|
5897
|
+
},
|
|
5898
|
+
/** Publish a skill folder to the Console Library for the organization (--scope org) or one project. Requires --execute. */
|
|
5899
|
+
publish: async (dir, options) => {
|
|
5900
|
+
return this.transport.call({
|
|
5901
|
+
groupSegments: ["skills"],
|
|
5902
|
+
command: "publish",
|
|
5903
|
+
body: { dir, ...(options ?? {}) },
|
|
5904
|
+
});
|
|
5905
|
+
},
|
|
4428
5906
|
/** Revoke a skill grant from an agent */
|
|
4429
5907
|
revoke: async (agent, skill) => {
|
|
4430
5908
|
return this.transport.call({
|
|
@@ -4441,7 +5919,15 @@ export class RaviClient {
|
|
|
4441
5919
|
body: { ...(options ?? {}) },
|
|
4442
5920
|
});
|
|
4443
5921
|
},
|
|
4444
|
-
/**
|
|
5922
|
+
/** Search local skills and the Console Library by words (case and accent insensitive) */
|
|
5923
|
+
search: async (query, options) => {
|
|
5924
|
+
return this.transport.call({
|
|
5925
|
+
groupSegments: ["skills"],
|
|
5926
|
+
command: "search",
|
|
5927
|
+
body: { query, ...(options ?? {}) },
|
|
5928
|
+
});
|
|
5929
|
+
},
|
|
5930
|
+
/** Show a Ravi catalog skill, installed skill, source skill or Library skill (org/<slug> or <project>/<slug>) */
|
|
4445
5931
|
show: async (name, options) => {
|
|
4446
5932
|
return this.transport.call({
|
|
4447
5933
|
groupSegments: ["skills"],
|
|
@@ -4457,6 +5943,14 @@ export class RaviClient {
|
|
|
4457
5943
|
body: {},
|
|
4458
5944
|
});
|
|
4459
5945
|
},
|
|
5946
|
+
/** Unpin a Library skill from an agent of this installation (runs immediately: it reduces authority) */
|
|
5947
|
+
unpin: async (ref, options) => {
|
|
5948
|
+
return this.transport.call({
|
|
5949
|
+
groupSegments: ["skills"],
|
|
5950
|
+
command: "unpin",
|
|
5951
|
+
body: { ref, ...(options ?? {}) },
|
|
5952
|
+
});
|
|
5953
|
+
},
|
|
4460
5954
|
/** List agents currently granted a skill (or list all grants for an agent with --agent) */
|
|
4461
5955
|
who: async (skill, options) => {
|
|
4462
5956
|
return this.transport.call({
|
|
@@ -4991,6 +6485,14 @@ export class RaviClient {
|
|
|
4991
6485
|
body: { taskId, ...(options ?? {}) },
|
|
4992
6486
|
});
|
|
4993
6487
|
},
|
|
6488
|
+
/** Deterministic read of open decisions waiting on humans, agents or nobody */
|
|
6489
|
+
attention: async (options) => {
|
|
6490
|
+
return this.transport.call({
|
|
6491
|
+
groupSegments: ["tasks"],
|
|
6492
|
+
command: "attention",
|
|
6493
|
+
body: { ...(options ?? {}) },
|
|
6494
|
+
});
|
|
6495
|
+
},
|
|
4994
6496
|
automations: {
|
|
4995
6497
|
/** Create a new task automation */
|
|
4996
6498
|
add: async (name, options) => {
|
|
@@ -5050,11 +6552,11 @@ export class RaviClient {
|
|
|
5050
6552
|
});
|
|
5051
6553
|
},
|
|
5052
6554
|
/** Add a comment to a task and steer the assignee if it is active */
|
|
5053
|
-
comment: async (taskId, body) => {
|
|
6555
|
+
comment: async (taskId, body, options) => {
|
|
5054
6556
|
return this.transport.call({
|
|
5055
6557
|
groupSegments: ["tasks"],
|
|
5056
6558
|
command: "comment",
|
|
5057
|
-
body: { taskId, body },
|
|
6559
|
+
body: { taskId, body, ...(options ?? {}) },
|
|
5058
6560
|
});
|
|
5059
6561
|
},
|
|
5060
6562
|
/** Create a tracked task; unresolved dependencies arm launch plans instead of dispatching early */
|
|
@@ -5190,6 +6692,88 @@ export class RaviClient {
|
|
|
5190
6692
|
});
|
|
5191
6693
|
}
|
|
5192
6694
|
};
|
|
6695
|
+
themes = {
|
|
6696
|
+
/** Show the org's and the project's active theme and the effective one */
|
|
6697
|
+
active: async (options) => {
|
|
6698
|
+
return this.transport.call({
|
|
6699
|
+
groupSegments: ["themes"],
|
|
6700
|
+
command: "active",
|
|
6701
|
+
body: { ...(options ?? {}) },
|
|
6702
|
+
});
|
|
6703
|
+
},
|
|
6704
|
+
/** Check a theme folder with the Console: compile errors and WCAG contrast (exit 2 on errors) */
|
|
6705
|
+
check: async (dir) => {
|
|
6706
|
+
return this.transport.call({
|
|
6707
|
+
groupSegments: ["themes"],
|
|
6708
|
+
command: "check",
|
|
6709
|
+
body: { dir },
|
|
6710
|
+
});
|
|
6711
|
+
},
|
|
6712
|
+
/** Write the Console's default theme files into a folder to start a theme */
|
|
6713
|
+
init: async (dir, options) => {
|
|
6714
|
+
return this.transport.call({
|
|
6715
|
+
groupSegments: ["themes"],
|
|
6716
|
+
command: "init",
|
|
6717
|
+
body: { dir, ...(options ?? {}) },
|
|
6718
|
+
});
|
|
6719
|
+
},
|
|
6720
|
+
/** Show one proposal of a Library theme: status, files and review comments */
|
|
6721
|
+
proposal: async (ref, number) => {
|
|
6722
|
+
return this.transport.call({
|
|
6723
|
+
groupSegments: ["themes"],
|
|
6724
|
+
command: "proposal",
|
|
6725
|
+
body: { ref, number },
|
|
6726
|
+
});
|
|
6727
|
+
},
|
|
6728
|
+
/** List proposals of Library themes: one item's (<ref>) or every one you can see */
|
|
6729
|
+
proposals: async (ref, options) => {
|
|
6730
|
+
return this.transport.call({
|
|
6731
|
+
groupSegments: ["themes"],
|
|
6732
|
+
command: "proposals",
|
|
6733
|
+
body: { ref, ...(options ?? {}) },
|
|
6734
|
+
});
|
|
6735
|
+
},
|
|
6736
|
+
/** Propose a new version of a Library theme for review instead of publishing it (agents use this). Requires --execute. */
|
|
6737
|
+
propose: async (dir, options) => {
|
|
6738
|
+
return this.transport.call({
|
|
6739
|
+
groupSegments: ["themes"],
|
|
6740
|
+
command: "propose",
|
|
6741
|
+
body: { dir, ...(options ?? {}) },
|
|
6742
|
+
});
|
|
6743
|
+
},
|
|
6744
|
+
/** Publish a theme folder to the Console Library for the organization (--scope org) or one project. Requires --execute. */
|
|
6745
|
+
publish: async (dir, options) => {
|
|
6746
|
+
return this.transport.call({
|
|
6747
|
+
groupSegments: ["themes"],
|
|
6748
|
+
command: "publish",
|
|
6749
|
+
body: { dir, ...(options ?? {}) },
|
|
6750
|
+
});
|
|
6751
|
+
},
|
|
6752
|
+
/** Search the Library's themes (org and the caller's project) by words */
|
|
6753
|
+
search: async (query, options) => {
|
|
6754
|
+
return this.transport.call({
|
|
6755
|
+
groupSegments: ["themes"],
|
|
6756
|
+
command: "search",
|
|
6757
|
+
body: { query, ...(options ?? {}) },
|
|
6758
|
+
});
|
|
6759
|
+
},
|
|
6760
|
+
/** Show a Library theme (org/<slug>, <project>/<slug> or a slug): version and files */
|
|
6761
|
+
show: async (ref, options) => {
|
|
6762
|
+
return this.transport.call({
|
|
6763
|
+
groupSegments: ["themes"],
|
|
6764
|
+
command: "show",
|
|
6765
|
+
body: { ref, ...(options ?? {}) },
|
|
6766
|
+
});
|
|
6767
|
+
},
|
|
6768
|
+
/** Set the active theme of the organization or a project (none clears it); the plan lists the Pages hosts it reaches. Requires --execute. */
|
|
6769
|
+
use: async (ref, options) => {
|
|
6770
|
+
return this.transport.call({
|
|
6771
|
+
groupSegments: ["themes"],
|
|
6772
|
+
command: "use",
|
|
6773
|
+
body: { ref, ...(options ?? {}) },
|
|
6774
|
+
});
|
|
6775
|
+
}
|
|
6776
|
+
};
|
|
5193
6777
|
threads = {
|
|
5194
6778
|
/** Render the bounded thread brief used for handoff */
|
|
5195
6779
|
brief: async (thread, options) => {
|
|
@@ -5416,6 +7000,228 @@ export class RaviClient {
|
|
|
5416
7000
|
});
|
|
5417
7001
|
}
|
|
5418
7002
|
};
|
|
7003
|
+
voice = {
|
|
7004
|
+
calls: {
|
|
7005
|
+
/** Approve a request shown in the call (tap only; dry-run by default; requires --execute) */
|
|
7006
|
+
approve: async (call, approval, options) => {
|
|
7007
|
+
return this.transport.call({
|
|
7008
|
+
groupSegments: ["voice", "calls"],
|
|
7009
|
+
command: "approve",
|
|
7010
|
+
body: { call, approval, ...(options ?? {}) },
|
|
7011
|
+
});
|
|
7012
|
+
},
|
|
7013
|
+
/** Fetch a synthesized clip of the call */
|
|
7014
|
+
audio: async (call, item, options) => {
|
|
7015
|
+
return this.transport.call({
|
|
7016
|
+
groupSegments: ["voice", "calls"],
|
|
7017
|
+
command: "audio",
|
|
7018
|
+
body: { call, item, ...(options ?? {}) },
|
|
7019
|
+
});
|
|
7020
|
+
},
|
|
7021
|
+
/** Cancel one of this call's turns (never other work) */
|
|
7022
|
+
cancelTurn: async (call, options) => {
|
|
7023
|
+
return this.transport.call({
|
|
7024
|
+
groupSegments: ["voice", "calls"],
|
|
7025
|
+
command: "cancel-turn",
|
|
7026
|
+
body: { call, ...(options ?? {}) },
|
|
7027
|
+
});
|
|
7028
|
+
},
|
|
7029
|
+
/** (Re)connect the call's media: a new WebRTC offer or a fresh room token */
|
|
7030
|
+
connect: async (call, options) => {
|
|
7031
|
+
return this.transport.call({
|
|
7032
|
+
groupSegments: ["voice", "calls"],
|
|
7033
|
+
command: "connect",
|
|
7034
|
+
body: { call, ...(options ?? {}) },
|
|
7035
|
+
});
|
|
7036
|
+
},
|
|
7037
|
+
/** Deny a request shown in the call */
|
|
7038
|
+
deny: async (call, approval) => {
|
|
7039
|
+
return this.transport.call({
|
|
7040
|
+
groupSegments: ["voice", "calls"],
|
|
7041
|
+
command: "deny",
|
|
7042
|
+
body: { call, approval },
|
|
7043
|
+
});
|
|
7044
|
+
},
|
|
7045
|
+
/** End the call (work already running keeps going in the session) */
|
|
7046
|
+
end: async (call) => {
|
|
7047
|
+
return this.transport.call({
|
|
7048
|
+
groupSegments: ["voice", "calls"],
|
|
7049
|
+
command: "end",
|
|
7050
|
+
body: { call },
|
|
7051
|
+
});
|
|
7052
|
+
},
|
|
7053
|
+
/** Stored call events after a sequence number */
|
|
7054
|
+
events: async (call, options) => {
|
|
7055
|
+
return this.transport.call({
|
|
7056
|
+
groupSegments: ["voice", "calls"],
|
|
7057
|
+
command: "events",
|
|
7058
|
+
body: { call, ...(options ?? {}) },
|
|
7059
|
+
});
|
|
7060
|
+
},
|
|
7061
|
+
/** List voice calls */
|
|
7062
|
+
list: async (options) => {
|
|
7063
|
+
return this.transport.call({
|
|
7064
|
+
groupSegments: ["voice", "calls"],
|
|
7065
|
+
command: "list",
|
|
7066
|
+
body: { ...(options ?? {}) },
|
|
7067
|
+
});
|
|
7068
|
+
},
|
|
7069
|
+
/** Push-to-talk: send one recorded clip to the call */
|
|
7070
|
+
push: async (call, options) => {
|
|
7071
|
+
return this.transport.call({
|
|
7072
|
+
groupSegments: ["voice", "calls"],
|
|
7073
|
+
command: "push",
|
|
7074
|
+
body: { call, ...(options ?? {}) },
|
|
7075
|
+
});
|
|
7076
|
+
},
|
|
7077
|
+
/** Type into the call (or, for the voice worker, what it heard) */
|
|
7078
|
+
send: async (call, text, options) => {
|
|
7079
|
+
return this.transport.call({
|
|
7080
|
+
groupSegments: ["voice", "calls"],
|
|
7081
|
+
command: "send",
|
|
7082
|
+
body: { call, text, ...(options ?? {}) },
|
|
7083
|
+
});
|
|
7084
|
+
},
|
|
7085
|
+
/** Show one call, its engine and open approvals */
|
|
7086
|
+
show: async (call) => {
|
|
7087
|
+
return this.transport.call({
|
|
7088
|
+
groupSegments: ["voice", "calls"],
|
|
7089
|
+
command: "show",
|
|
7090
|
+
body: { call },
|
|
7091
|
+
});
|
|
7092
|
+
},
|
|
7093
|
+
/** Stop speaking now (work keeps running) */
|
|
7094
|
+
silence: async (call) => {
|
|
7095
|
+
return this.transport.call({
|
|
7096
|
+
groupSegments: ["voice", "calls"],
|
|
7097
|
+
command: "silence",
|
|
7098
|
+
body: { call },
|
|
7099
|
+
});
|
|
7100
|
+
},
|
|
7101
|
+
/** Open a voice call on an existing session */
|
|
7102
|
+
start: async (session, options) => {
|
|
7103
|
+
return this.transport.call({
|
|
7104
|
+
groupSegments: ["voice", "calls"],
|
|
7105
|
+
command: "start",
|
|
7106
|
+
body: { session, ...(options ?? {}) },
|
|
7107
|
+
});
|
|
7108
|
+
},
|
|
7109
|
+
/** What was said in the call */
|
|
7110
|
+
transcript: async (call) => {
|
|
7111
|
+
return this.transport.call({
|
|
7112
|
+
groupSegments: ["voice", "calls"],
|
|
7113
|
+
command: "transcript",
|
|
7114
|
+
body: { call },
|
|
7115
|
+
});
|
|
7116
|
+
}
|
|
7117
|
+
},
|
|
7118
|
+
devices: {
|
|
7119
|
+
/** List paired devices (never their keys) */
|
|
7120
|
+
list: async (options) => {
|
|
7121
|
+
return this.transport.call({
|
|
7122
|
+
groupSegments: ["voice", "devices"],
|
|
7123
|
+
command: "list",
|
|
7124
|
+
body: { ...(options ?? {}) },
|
|
7125
|
+
});
|
|
7126
|
+
},
|
|
7127
|
+
/** Pair a device for one person and issue its key (dry-run by default; requires --execute) */
|
|
7128
|
+
pair: async (options) => {
|
|
7129
|
+
return this.transport.call({
|
|
7130
|
+
groupSegments: ["voice", "devices"],
|
|
7131
|
+
command: "pair",
|
|
7132
|
+
body: { ...(options ?? {}) },
|
|
7133
|
+
});
|
|
7134
|
+
},
|
|
7135
|
+
/** Revoke a device key and end its calls */
|
|
7136
|
+
revoke: async (device) => {
|
|
7137
|
+
return this.transport.call({
|
|
7138
|
+
groupSegments: ["voice", "devices"],
|
|
7139
|
+
command: "revoke",
|
|
7140
|
+
body: { device },
|
|
7141
|
+
});
|
|
7142
|
+
}
|
|
7143
|
+
},
|
|
7144
|
+
engines: {
|
|
7145
|
+
/** Show what each engine is missing (no vendor calls) */
|
|
7146
|
+
check: async () => {
|
|
7147
|
+
return this.transport.call({
|
|
7148
|
+
groupSegments: ["voice", "engines"],
|
|
7149
|
+
command: "check",
|
|
7150
|
+
body: {},
|
|
7151
|
+
});
|
|
7152
|
+
},
|
|
7153
|
+
/** List voice engines and their capabilities */
|
|
7154
|
+
list: async (options) => {
|
|
7155
|
+
return this.transport.call({
|
|
7156
|
+
groupSegments: ["voice", "engines"],
|
|
7157
|
+
command: "list",
|
|
7158
|
+
body: { ...(options ?? {}) },
|
|
7159
|
+
});
|
|
7160
|
+
}
|
|
7161
|
+
},
|
|
7162
|
+
profiles: {
|
|
7163
|
+
/** Create a voice profile */
|
|
7164
|
+
create: async (id, options) => {
|
|
7165
|
+
return this.transport.call({
|
|
7166
|
+
groupSegments: ["voice", "profiles"],
|
|
7167
|
+
command: "create",
|
|
7168
|
+
body: { id, ...(options ?? {}) },
|
|
7169
|
+
});
|
|
7170
|
+
},
|
|
7171
|
+
/** Delete a voice profile */
|
|
7172
|
+
delete: async (id) => {
|
|
7173
|
+
return this.transport.call({
|
|
7174
|
+
groupSegments: ["voice", "profiles"],
|
|
7175
|
+
command: "delete",
|
|
7176
|
+
body: { id },
|
|
7177
|
+
});
|
|
7178
|
+
},
|
|
7179
|
+
/** List voice profiles */
|
|
7180
|
+
list: async (options) => {
|
|
7181
|
+
return this.transport.call({
|
|
7182
|
+
groupSegments: ["voice", "profiles"],
|
|
7183
|
+
command: "list",
|
|
7184
|
+
body: { ...(options ?? {}) },
|
|
7185
|
+
});
|
|
7186
|
+
},
|
|
7187
|
+
/** Show one voice profile */
|
|
7188
|
+
show: async (id) => {
|
|
7189
|
+
return this.transport.call({
|
|
7190
|
+
groupSegments: ["voice", "profiles"],
|
|
7191
|
+
command: "show",
|
|
7192
|
+
body: { id },
|
|
7193
|
+
});
|
|
7194
|
+
},
|
|
7195
|
+
/** Update a voice profile */
|
|
7196
|
+
update: async (id, options) => {
|
|
7197
|
+
return this.transport.call({
|
|
7198
|
+
groupSegments: ["voice", "profiles"],
|
|
7199
|
+
command: "update",
|
|
7200
|
+
body: { id, ...(options ?? {}) },
|
|
7201
|
+
});
|
|
7202
|
+
}
|
|
7203
|
+
},
|
|
7204
|
+
targets: {
|
|
7205
|
+
/** List sessions this caller can open a voice call on */
|
|
7206
|
+
list: async (options) => {
|
|
7207
|
+
return this.transport.call({
|
|
7208
|
+
groupSegments: ["voice", "targets"],
|
|
7209
|
+
command: "list",
|
|
7210
|
+
body: { ...(options ?? {}) },
|
|
7211
|
+
});
|
|
7212
|
+
}
|
|
7213
|
+
},
|
|
7214
|
+
voices: {
|
|
7215
|
+
/** List ElevenLabs voices for push-to-talk and hands-free */
|
|
7216
|
+
list: async (options) => {
|
|
7217
|
+
return this.transport.call({
|
|
7218
|
+
groupSegments: ["voice", "voices"],
|
|
7219
|
+
command: "list",
|
|
7220
|
+
body: { ...(options ?? {}) },
|
|
7221
|
+
});
|
|
7222
|
+
}
|
|
7223
|
+
}
|
|
7224
|
+
};
|
|
5419
7225
|
watch = {
|
|
5420
7226
|
/** List available watch connectors and event types */
|
|
5421
7227
|
connectors: async (options) => {
|
|
@@ -5640,6 +7446,88 @@ export class RaviClient {
|
|
|
5640
7446
|
}
|
|
5641
7447
|
}
|
|
5642
7448
|
};
|
|
7449
|
+
widgets = {
|
|
7450
|
+
/** Print the Console's widget catalog for agents: pieces, filters, field types, the org's widgets */
|
|
7451
|
+
catalog: async (options) => {
|
|
7452
|
+
return this.transport.call({
|
|
7453
|
+
groupSegments: ["widgets"],
|
|
7454
|
+
command: "catalog",
|
|
7455
|
+
body: { ...(options ?? {}) },
|
|
7456
|
+
});
|
|
7457
|
+
},
|
|
7458
|
+
/** Check a widget folder with the Console: template and accessibility errors (exit 2 on errors) */
|
|
7459
|
+
check: async (dir) => {
|
|
7460
|
+
return this.transport.call({
|
|
7461
|
+
groupSegments: ["widgets"],
|
|
7462
|
+
command: "check",
|
|
7463
|
+
body: { dir },
|
|
7464
|
+
});
|
|
7465
|
+
},
|
|
7466
|
+
/** Write a widget folder from the Console's scaffold (fields from a Bases view with --from-view) */
|
|
7467
|
+
init: async (dir, options) => {
|
|
7468
|
+
return this.transport.call({
|
|
7469
|
+
groupSegments: ["widgets"],
|
|
7470
|
+
command: "init",
|
|
7471
|
+
body: { dir, ...(options ?? {}) },
|
|
7472
|
+
});
|
|
7473
|
+
},
|
|
7474
|
+
/** Render a widget folder to a standalone HTML file (every variant, light and dark) through the Console */
|
|
7475
|
+
preview: async (dir, options) => {
|
|
7476
|
+
return this.transport.call({
|
|
7477
|
+
groupSegments: ["widgets"],
|
|
7478
|
+
command: "preview",
|
|
7479
|
+
body: { dir, ...(options ?? {}) },
|
|
7480
|
+
});
|
|
7481
|
+
},
|
|
7482
|
+
/** Show one proposal of a Library widget: status, files and review comments */
|
|
7483
|
+
proposal: async (ref, number) => {
|
|
7484
|
+
return this.transport.call({
|
|
7485
|
+
groupSegments: ["widgets"],
|
|
7486
|
+
command: "proposal",
|
|
7487
|
+
body: { ref, number },
|
|
7488
|
+
});
|
|
7489
|
+
},
|
|
7490
|
+
/** List proposals of Library widgets: one item's (<ref>) or every one you can see */
|
|
7491
|
+
proposals: async (ref, options) => {
|
|
7492
|
+
return this.transport.call({
|
|
7493
|
+
groupSegments: ["widgets"],
|
|
7494
|
+
command: "proposals",
|
|
7495
|
+
body: { ref, ...(options ?? {}) },
|
|
7496
|
+
});
|
|
7497
|
+
},
|
|
7498
|
+
/** Propose a new version of a Library widget for review instead of publishing it (agents use this). Requires --execute. */
|
|
7499
|
+
propose: async (dir, options) => {
|
|
7500
|
+
return this.transport.call({
|
|
7501
|
+
groupSegments: ["widgets"],
|
|
7502
|
+
command: "propose",
|
|
7503
|
+
body: { dir, ...(options ?? {}) },
|
|
7504
|
+
});
|
|
7505
|
+
},
|
|
7506
|
+
/** Publish a widget folder to the Console Library for the organization (--scope org) or one project. Requires --execute. */
|
|
7507
|
+
publish: async (dir, options) => {
|
|
7508
|
+
return this.transport.call({
|
|
7509
|
+
groupSegments: ["widgets"],
|
|
7510
|
+
command: "publish",
|
|
7511
|
+
body: { dir, ...(options ?? {}) },
|
|
7512
|
+
});
|
|
7513
|
+
},
|
|
7514
|
+
/** Search the Library's widgets (org and the caller's project) by words and field names */
|
|
7515
|
+
search: async (query, options) => {
|
|
7516
|
+
return this.transport.call({
|
|
7517
|
+
groupSegments: ["widgets"],
|
|
7518
|
+
command: "search",
|
|
7519
|
+
body: { query, ...(options ?? {}) },
|
|
7520
|
+
});
|
|
7521
|
+
},
|
|
7522
|
+
/** Show a Library widget (org/<slug>, <project>/<slug> or a slug): version and files */
|
|
7523
|
+
show: async (ref, options) => {
|
|
7524
|
+
return this.transport.call({
|
|
7525
|
+
groupSegments: ["widgets"],
|
|
7526
|
+
command: "show",
|
|
7527
|
+
body: { ref, ...(options ?? {}) },
|
|
7528
|
+
});
|
|
7529
|
+
}
|
|
7530
|
+
};
|
|
5643
7531
|
workObjects = {
|
|
5644
7532
|
/** Execute one Work Object action */
|
|
5645
7533
|
action: async (type, id, actionId, options) => {
|