@ravi-os/sdk 0.261009.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.
Files changed (40) hide show
  1. package/README.md +11 -2
  2. package/dist/channel-backend.d.ts +241 -2
  3. package/dist/channel-backend.d.ts.map +1 -1
  4. package/dist/channel-backend.js +286 -5
  5. package/dist/channel-backend.js.map +1 -1
  6. package/dist/channel-runtime-events.d.ts +16 -0
  7. package/dist/channel-runtime-events.d.ts.map +1 -1
  8. package/dist/channel-runtime-events.js +1 -0
  9. package/dist/channel-runtime-events.js.map +1 -1
  10. package/dist/client.d.ts +1327 -170
  11. package/dist/client.d.ts.map +1 -1
  12. package/dist/client.js +1754 -216
  13. package/dist/client.js.map +1 -1
  14. package/dist/diagnostic-redactor.d.ts +12 -0
  15. package/dist/diagnostic-redactor.d.ts.map +1 -0
  16. package/dist/diagnostic-redactor.js +207 -0
  17. package/dist/diagnostic-redactor.js.map +1 -0
  18. package/dist/errors.d.ts +23 -0
  19. package/dist/errors.d.ts.map +1 -1
  20. package/dist/errors.js +67 -24
  21. package/dist/errors.js.map +1 -1
  22. package/dist/index.d.ts +1 -1
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js.map +1 -1
  25. package/dist/schemas.d.ts +90180 -52210
  26. package/dist/schemas.d.ts.map +1 -1
  27. package/dist/schemas.js +121113 -69621
  28. package/dist/schemas.js.map +1 -1
  29. package/dist/streaming.generated.d.ts +103 -0
  30. package/dist/streaming.generated.d.ts.map +1 -1
  31. package/dist/streaming.generated.js +18 -0
  32. package/dist/streaming.generated.js.map +1 -1
  33. package/dist/types.d.ts +9391 -451
  34. package/dist/types.d.ts.map +1 -1
  35. package/dist/version.d.ts +2 -2
  36. package/dist/version.js +2 -2
  37. package/package.json +14 -1
  38. package/platform/sha256.d.ts +2 -0
  39. package/platform/sha256.node.js +10 -0
  40. 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 = {
@@ -522,6 +688,14 @@ export class RaviClient {
522
688
  body: { base, ...(options ?? {}) },
523
689
  });
524
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
+ },
525
699
  /** Archive a row (restorable) */
526
700
  archive: async (base, row, options) => {
527
701
  return this.transport.call({
@@ -538,6 +712,14 @@ export class RaviClient {
538
712
  body: { base, ...(options ?? {}) },
539
713
  });
540
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
+ },
541
723
  /** Read one row (with its body) */
542
724
  get: async (base, row, options) => {
543
725
  return this.transport.call({
@@ -578,6 +760,30 @@ export class RaviClient {
578
760
  body: { base, ...(options ?? {}) },
579
761
  });
580
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
+ },
581
787
  /** Restore an archived row (direct writers) */
582
788
  restore: async (base, row, options) => {
583
789
  return this.transport.call({
@@ -603,7 +809,7 @@ export class RaviClient {
603
809
  body: { base, ...(options ?? {}) },
604
810
  });
605
811
  },
606
- /** Deliver this base's row events to this installation's inbox */
812
+ /** Deliver this base's row events to this installation's inbox, optionally filtered and with a trigger */
607
813
  subscribe: async (base, options) => {
608
814
  return this.transport.call({
609
815
  groupSegments: ["bases"],
@@ -644,6 +850,14 @@ export class RaviClient {
644
850
  body: { base, view, ...(options ?? {}) },
645
851
  });
646
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
+ },
647
861
  /** Create a view from a JSON spec (columns, query, layout, access) */
648
862
  create: async (base, options) => {
649
863
  return this.transport.call({
@@ -668,6 +882,14 @@ export class RaviClient {
668
882
  body: { base, view, ...(options ?? {}) },
669
883
  });
670
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
+ },
671
893
  /** Describe a view: columns, layout, your capabilities (and policy for managers) */
672
894
  show: async (base, view, options) => {
673
895
  return this.transport.call({
@@ -1075,54 +1297,408 @@ export class RaviClient {
1075
1297
  }
1076
1298
  };
1077
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
+ },
1078
1422
  projects: {
1079
- /** Create a Ravi Cloud project in Console */
1423
+ /** Create a project in Console */
1080
1424
  create: async (slug, options) => {
1081
1425
  return this.transport.call({
1082
- groupSegments: ["cloud", "projects"],
1426
+ groupSegments: ["cloud", "projects"],
1427
+ command: "create",
1428
+ body: { slug, ...(options ?? {}) },
1429
+ });
1430
+ },
1431
+ /** List the organization's projects in Console */
1432
+ list: async (options) => {
1433
+ return this.transport.call({
1434
+ groupSegments: ["cloud", "projects"],
1435
+ command: "list",
1436
+ body: { ...(options ?? {}) },
1437
+ });
1438
+ }
1439
+ },
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"],
1083
1623
  command: "create",
1084
- body: { slug, ...(options ?? {}) },
1624
+ body: { agent, ...(options ?? {}) },
1085
1625
  });
1086
1626
  },
1087
- /** List Ravi Cloud projects from Console */
1627
+ /** List the cloud triggers of a Console project */
1088
1628
  list: async (options) => {
1089
1629
  return this.transport.call({
1090
- groupSegments: ["cloud", "projects"],
1630
+ groupSegments: ["cloud", "triggers"],
1091
1631
  command: "list",
1092
1632
  body: { ...(options ?? {}) },
1093
1633
  });
1094
- }
1095
- },
1096
- scope: {
1097
- /** Clear a default Console project for a session, agent, workspace, or install */
1098
- clear: async (options) => {
1634
+ },
1635
+ /** Delete a cloud trigger (applies at once) */
1636
+ remove: async (id) => {
1099
1637
  return this.transport.call({
1100
- groupSegments: ["cloud", "scope"],
1101
- command: "clear",
1102
- body: { ...(options ?? {}) },
1638
+ groupSegments: ["cloud", "triggers"],
1639
+ command: "remove",
1640
+ body: { id },
1103
1641
  });
1104
1642
  },
1105
- /** Explain how the effective Ravi Console scope is resolved */
1106
- explain: async (options) => {
1643
+ /** Show the prompt a trigger would send now (no run starts) */
1644
+ test: async (id) => {
1107
1645
  return this.transport.call({
1108
- groupSegments: ["cloud", "scope"],
1109
- command: "explain",
1110
- body: { ...(options ?? {}) },
1646
+ groupSegments: ["cloud", "triggers"],
1647
+ command: "test",
1648
+ body: { id },
1111
1649
  });
1112
1650
  },
1113
- /** Set a default Console project for a session, agent, workspace, or install */
1114
- set: async (options) => {
1651
+ /** Change a cloud trigger. Requires --execute when it stays or becomes enabled. */
1652
+ update: async (id, options) => {
1115
1653
  return this.transport.call({
1116
- groupSegments: ["cloud", "scope"],
1117
- command: "set",
1118
- body: { ...(options ?? {}) },
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 () => {
1663
+ return this.transport.call({
1664
+ groupSegments: ["cloud", "webhook"],
1665
+ command: "remove",
1666
+ body: {},
1119
1667
  });
1120
1668
  },
1121
- /** Show the effective Ravi Console scope for this process */
1122
- show: async (options) => {
1669
+ /** Show the webhook URL to register and whether a signing secret is set */
1670
+ show: async () => {
1123
1671
  return this.transport.call({
1124
- groupSegments: ["cloud", "scope"],
1672
+ groupSegments: ["cloud", "webhook"],
1125
1673
  command: "show",
1674
+ body: {},
1675
+ });
1676
+ }
1677
+ },
1678
+ worker: {
1679
+ /** Stop running cloud agents' tools on this machine (applies at once) */
1680
+ disable: async () => {
1681
+ return this.transport.call({
1682
+ groupSegments: ["cloud", "worker"],
1683
+ command: "disable",
1684
+ body: {},
1685
+ });
1686
+ },
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) => {
1699
+ return this.transport.call({
1700
+ groupSegments: ["cloud", "worker"],
1701
+ command: "list",
1126
1702
  body: { ...(options ?? {}) },
1127
1703
  });
1128
1704
  }
@@ -1163,7 +1739,7 @@ export class RaviClient {
1163
1739
  }
1164
1740
  };
1165
1741
  connectors = {
1166
- /** List your connectors */
1742
+ /** List your connections */
1167
1743
  list: async (options) => {
1168
1744
  return this.transport.call({
1169
1745
  groupSegments: ["connectors"],
@@ -1171,7 +1747,15 @@ export class RaviClient {
1171
1747
  body: { ...(options ?? {}) },
1172
1748
  });
1173
1749
  },
1174
- /** Revoke a connector and delete its stored credentials */
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 */
1175
1759
  revoke: async (id, options) => {
1176
1760
  return this.transport.call({
1177
1761
  groupSegments: ["connectors"],
@@ -1179,7 +1763,7 @@ export class RaviClient {
1179
1763
  body: { id, ...(options ?? {}) },
1180
1764
  });
1181
1765
  },
1182
- /** Show details of a single connector */
1766
+ /** Show details of one of your connections */
1183
1767
  show: async (id) => {
1184
1768
  return this.transport.call({
1185
1769
  groupSegments: ["connectors"],
@@ -1285,6 +1869,14 @@ export class RaviClient {
1285
1869
  body: { contact, ...(options ?? {}) },
1286
1870
  });
1287
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
+ },
1288
1880
  /** List all contacts */
1289
1881
  list: async (options) => {
1290
1882
  return this.transport.call({
@@ -1425,6 +2017,14 @@ export class RaviClient {
1425
2017
  body: { permission, objectType, objectId },
1426
2018
  });
1427
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
+ },
1428
2028
  /** List inherited capabilities for the current runtime context */
1429
2029
  capabilities: async () => {
1430
2030
  return this.transport.call({
@@ -1624,6 +2224,14 @@ export class RaviClient {
1624
2224
  body: { ...(options ?? {}) },
1625
2225
  });
1626
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
+ },
1627
2235
  /** List provider credential connections without secret values */
1628
2236
  list: async (options) => {
1629
2237
  return this.transport.call({
@@ -1650,6 +2258,22 @@ export class RaviClient {
1650
2258
  body: { ...(options ?? {}) },
1651
2259
  });
1652
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
+ });
1653
2277
  }
1654
2278
  };
1655
2279
  crm = {
@@ -2017,6 +2641,14 @@ export class RaviClient {
2017
2641
  }
2018
2642
  };
2019
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
+ },
2020
2652
  /** Add a new scheduled job */
2021
2653
  add: async (name, options) => {
2022
2654
  return this.transport.call({
@@ -2156,6 +2788,56 @@ export class RaviClient {
2156
2788
  });
2157
2789
  }
2158
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
+ };
2159
2841
  devin = {
2160
2842
  auth: {
2161
2843
  /** Validate Devin API credentials */
@@ -2286,6 +2968,14 @@ export class RaviClient {
2286
2968
  command: "read",
2287
2969
  body: { id, ...(options ?? {}) },
2288
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
+ });
2289
2979
  }
2290
2980
  };
2291
2981
  heartbeat = {
@@ -2396,6 +3086,24 @@ export class RaviClient {
2396
3086
  });
2397
3087
  }
2398
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
+ };
2399
3107
  image = {
2400
3108
  atlas: {
2401
3109
  /** Split an image atlas/contact sheet into deterministic crop artifacts */
@@ -2738,6 +3446,32 @@ export class RaviClient {
2738
3446
  });
2739
3447
  }
2740
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
+ };
2741
3475
  jobs = {
2742
3476
  /** Stop a running job */
2743
3477
  kill: async (id) => {
@@ -2788,6 +3522,72 @@ export class RaviClient {
2788
3522
  });
2789
3523
  }
2790
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
+ };
2791
3591
  mail = {
2792
3592
  accounts: {
2793
3593
  /** Create or update a local mail provider account */
@@ -3053,6 +3853,14 @@ export class RaviClient {
3053
3853
  }
3054
3854
  };
3055
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
+ },
3056
3864
  /** Finalize a completed meeting recorder run into a Ravi meeting.raw artifact */
3057
3865
  finalize: async (options) => {
3058
3866
  return this.transport.call({
@@ -3061,6 +3869,30 @@ export class RaviClient {
3061
3869
  body: { ...(options ?? {}) },
3062
3870
  });
3063
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
+ },
3064
3896
  profiles: {
3065
3897
  /** Create a reusable meeting profile scaffold */
3066
3898
  init: async (profileId, options) => {
@@ -3095,6 +3927,22 @@ export class RaviClient {
3095
3927
  });
3096
3928
  }
3097
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
+ },
3098
3946
  /** List meeting voice runtime candidates and current recommendation */
3099
3947
  voiceRuntimes: async () => {
3100
3948
  return this.transport.call({
@@ -3265,6 +4113,14 @@ export class RaviClient {
3265
4113
  }
3266
4114
  };
3267
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
+ },
3268
4124
  assertion: {
3269
4125
  audiences: {
3270
4126
  /** List viewer-assertion audiences registered on a Pages host */
@@ -3293,6 +4149,24 @@ export class RaviClient {
3293
4149
  }
3294
4150
  }
3295
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
+ },
3296
4170
  /** Advanced/compat: host-only Pages record; does not upload HTML. Prefer pages ship to get a URL */
3297
4171
  create: async (args, options) => {
3298
4172
  return this.transport.call({
@@ -3317,6 +4191,14 @@ export class RaviClient {
3317
4191
  body: { project, ...(options ?? {}) },
3318
4192
  });
3319
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
+ },
3320
4202
  password: {
3321
4203
  /** Remove a route password after activating an explicit replacement visibility */
3322
4204
  remove: async (args, options) => {
@@ -3343,12 +4225,28 @@ export class RaviClient {
3343
4225
  body: { args, ...(options ?? {}) },
3344
4226
  });
3345
4227
  },
3346
- /** List published Ravi Pages URLs in a Console project */
3347
- published: async (project, options) => {
4228
+ /** List published Ravi Pages URLs in a Console project */
4229
+ published: async (project, options) => {
4230
+ return this.transport.call({
4231
+ groupSegments: ["pages"],
4232
+ command: "published",
4233
+ body: { project, ...(options ?? {}) },
4234
+ });
4235
+ },
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) => {
3348
4246
  return this.transport.call({
3349
4247
  groupSegments: ["pages"],
3350
- command: "published",
3351
- body: { project, ...(options ?? {}) },
4248
+ command: "share",
4249
+ body: { url, ...(options ?? {}) },
3352
4250
  });
3353
4251
  },
3354
4252
  /** One-shot: publish a route on the project default Pages host */
@@ -3359,6 +4257,14 @@ export class RaviClient {
3359
4257
  body: { args, ...(options ?? {}) },
3360
4258
  });
3361
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 ?? {}) },
4266
+ });
4267
+ },
3362
4268
  /** Update a Ravi Pages site in a Console project */
3363
4269
  update: async (args, options) => {
3364
4270
  return this.transport.call({
@@ -3417,6 +4323,22 @@ export class RaviClient {
3417
4323
  body: { ...(options ?? {}) },
3418
4324
  });
3419
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
+ },
3420
4342
  /** Plan or apply a provider-owned fix for a recorded permission denial */
3421
4343
  resolve: async (denialId, options) => {
3422
4344
  return this.transport.call({
@@ -3434,185 +4356,59 @@ export class RaviClient {
3434
4356
  });
3435
4357
  }
3436
4358
  };
3437
- projects = {
3438
- /** Create one project */
3439
- create: async (title, options) => {
3440
- return this.transport.call({
3441
- groupSegments: ["projects"],
3442
- command: "create",
3443
- body: { title, ...(options ?? {}) },
3444
- });
3445
- },
3446
- fixtures: {
3447
- /** Reset and seed the canonical project fixtures used in demos and smoke tests */
3448
- seed: async (options) => {
3449
- return this.transport.call({
3450
- groupSegments: ["projects", "fixtures"],
3451
- command: "seed",
3452
- body: { ...(options ?? {}) },
3453
- });
3454
- }
3455
- },
3456
- /** Materialize a project with cheap links and optional canonical workflows */
3457
- init: async (title, options) => {
4359
+ pr = {
4360
+ /** Upload the current branch, publish a ready PR and verify CI follow */
4361
+ publish: async (options) => {
3458
4362
  return this.transport.call({
3459
- groupSegments: ["projects"],
3460
- command: "init",
3461
- body: { title, ...(options ?? {}) },
4363
+ groupSegments: ["pr"],
4364
+ command: "publish",
4365
+ body: { ...(options ?? {}) },
3462
4366
  });
3463
- },
3464
- /** Link workflow/session/agent/resource/spec context to a project */
3465
- link: async (assetType, project, target, options) => {
4367
+ }
4368
+ };
4369
+ projects = {
4370
+ /** Create a project in Console */
4371
+ create: async (slug, options) => {
3466
4372
  return this.transport.call({
3467
4373
  groupSegments: ["projects"],
3468
- command: "link",
3469
- body: { assetType, project, target, ...(options ?? {}) },
4374
+ command: "create",
4375
+ body: { slug, ...(options ?? {}) },
3470
4376
  });
3471
4377
  },
3472
- /** List projects */
4378
+ /** List the organization's projects in Console */
3473
4379
  list: async (options) => {
3474
4380
  return this.transport.call({
3475
4381
  groupSegments: ["projects"],
3476
4382
  command: "list",
3477
4383
  body: { ...(options ?? {}) },
3478
4384
  });
3479
- },
3480
- /** List projects as an operational next-work surface */
3481
- next: async (options) => {
3482
- return this.transport.call({
3483
- groupSegments: ["projects"],
3484
- command: "next",
3485
- body: { ...(options ?? {}) },
3486
- });
3487
- },
3488
- resources: {
3489
- /** Add one resource link to a project */
3490
- add: async (project, target, options) => {
3491
- return this.transport.call({
3492
- groupSegments: ["projects", "resources"],
3493
- command: "add",
3494
- body: { project, target, ...(options ?? {}) },
3495
- });
3496
- },
3497
- /** Import multiple cheap resources into a project */
3498
- import: async (project, options) => {
3499
- return this.transport.call({
3500
- groupSegments: ["projects", "resources"],
3501
- command: "import",
3502
- body: { project, ...(options ?? {}) },
3503
- });
3504
- },
3505
- /** List resource links for a project */
3506
- list: async (project, options) => {
3507
- return this.transport.call({
3508
- groupSegments: ["projects", "resources"],
3509
- command: "list",
3510
- body: { project, ...(options ?? {}) },
3511
- });
3512
- },
3513
- /** Show one resource link on a project */
3514
- show: async (project, resource) => {
3515
- return this.transport.call({
3516
- groupSegments: ["projects", "resources"],
3517
- command: "show",
3518
- body: { project, resource },
3519
- });
3520
- }
3521
- },
3522
- /** Show one project with linked context */
3523
- show: async (project) => {
3524
- return this.transport.call({
3525
- groupSegments: ["projects"],
3526
- command: "show",
3527
- body: { project },
3528
- });
3529
- },
3530
- /** Show one project with workflow runtime rollup */
3531
- status: async (project) => {
3532
- return this.transport.call({
3533
- groupSegments: ["projects"],
3534
- command: "status",
3535
- body: { project },
3536
- });
3537
- },
3538
- tasks: {
3539
- /** Attach an existing task to a project workflow node */
3540
- attach: async (project, nodeKey, taskId, options) => {
3541
- return this.transport.call({
3542
- groupSegments: ["projects", "tasks"],
3543
- command: "attach",
3544
- body: { project, nodeKey, taskId, ...(options ?? {}) },
3545
- });
3546
- },
3547
- /** Create a task attempt from a project workflow node */
3548
- create: async (project, nodeKey, title, options) => {
3549
- return this.transport.call({
3550
- groupSegments: ["projects", "tasks"],
3551
- command: "create",
3552
- body: { project, nodeKey, title, ...(options ?? {}) },
3553
- });
3554
- },
3555
- /** Dispatch a task using project owner/session defaults */
3556
- dispatch: async (project, taskId, options) => {
3557
- return this.transport.call({
3558
- groupSegments: ["projects", "tasks"],
3559
- command: "dispatch",
3560
- body: { project, taskId, ...(options ?? {}) },
3561
- });
3562
- }
3563
- },
3564
- /** Update one project */
3565
- update: async (project, options) => {
3566
- return this.transport.call({
3567
- groupSegments: ["projects"],
3568
- command: "update",
3569
- body: { project, ...(options ?? {}) },
3570
- });
3571
- },
3572
- workflows: {
3573
- /** Attach one existing workflow run to a project in one step */
3574
- attach: async (project, runId, options) => {
3575
- return this.transport.call({
3576
- groupSegments: ["projects", "workflows"],
3577
- command: "attach",
3578
- body: { project, runId, ...(options ?? {}) },
3579
- });
3580
- },
3581
- /** Start one workflow run from a project and link it in one step */
3582
- start: async (project, specId, options) => {
3583
- return this.transport.call({
3584
- groupSegments: ["projects", "workflows"],
3585
- command: "start",
3586
- body: { project, specId, ...(options ?? {}) },
3587
- });
3588
- }
3589
4385
  }
3590
4386
  };
3591
4387
  prox = {
3592
4388
  calls: {
3593
4389
  /** Cancel a pending call request */
3594
- cancel: async (call_request_id, options) => {
4390
+ cancel: async (callRequestId, options) => {
3595
4391
  return this.transport.call({
3596
4392
  groupSegments: ["prox", "calls"],
3597
4393
  command: "cancel",
3598
- body: { call_request_id, ...(options ?? {}) },
4394
+ body: { "call_request_id": callRequestId, ...(options ?? {}) },
3599
4395
  });
3600
4396
  },
3601
4397
  /** Show event timeline for a call request */
3602
- events: async (call_request_id) => {
4398
+ events: async (callRequestId) => {
3603
4399
  return this.transport.call({
3604
4400
  groupSegments: ["prox", "calls"],
3605
4401
  command: "events",
3606
- body: { call_request_id },
4402
+ body: { "call_request_id": callRequestId },
3607
4403
  });
3608
4404
  },
3609
4405
  profiles: {
3610
4406
  /** Configure a call profile's provider settings */
3611
- configure: async (profile_id, options) => {
4407
+ configure: async (profileId, options) => {
3612
4408
  return this.transport.call({
3613
4409
  groupSegments: ["prox", "calls", "profiles"],
3614
4410
  command: "configure",
3615
- body: { profile_id, ...(options ?? {}) },
4411
+ body: { "profile_id": profileId, ...(options ?? {}) },
3616
4412
  });
3617
4413
  },
3618
4414
  /** List available call profiles */
@@ -3624,11 +4420,11 @@ export class RaviClient {
3624
4420
  });
3625
4421
  },
3626
4422
  /** Show a call profile by ID */
3627
- show: async (profile_id) => {
4423
+ show: async (profileId) => {
3628
4424
  return this.transport.call({
3629
4425
  groupSegments: ["prox", "calls", "profiles"],
3630
4426
  command: "show",
3631
- body: { profile_id },
4427
+ body: { "profile_id": profileId },
3632
4428
  });
3633
4429
  }
3634
4430
  },
@@ -3649,36 +4445,36 @@ export class RaviClient {
3649
4445
  });
3650
4446
  },
3651
4447
  /** Show details of a call request */
3652
- show: async (call_request_id) => {
4448
+ show: async (callRequestId) => {
3653
4449
  return this.transport.call({
3654
4450
  groupSegments: ["prox", "calls"],
3655
4451
  command: "show",
3656
- body: { call_request_id },
4452
+ body: { "call_request_id": callRequestId },
3657
4453
  });
3658
4454
  },
3659
4455
  tools: {
3660
4456
  /** Bind a tool to a profile */
3661
- bind: async (profile_id, tool_id, options) => {
4457
+ bind: async (profileId, toolId, options) => {
3662
4458
  return this.transport.call({
3663
4459
  groupSegments: ["prox", "calls", "tools"],
3664
4460
  command: "bind",
3665
- body: { profile_id, tool_id, ...(options ?? {}) },
4461
+ body: { "profile_id": profileId, "tool_id": toolId, ...(options ?? {}) },
3666
4462
  });
3667
4463
  },
3668
4464
  /** Configure a call tool */
3669
- configure: async (tool_id, options) => {
4465
+ configure: async (toolId, options) => {
3670
4466
  return this.transport.call({
3671
4467
  groupSegments: ["prox", "calls", "tools"],
3672
4468
  command: "configure",
3673
- body: { tool_id, ...(options ?? {}) },
4469
+ body: { "tool_id": toolId, ...(options ?? {}) },
3674
4470
  });
3675
4471
  },
3676
4472
  /** Create a new call tool */
3677
- create: async (tool_id, options) => {
4473
+ create: async (toolId, options) => {
3678
4474
  return this.transport.call({
3679
4475
  groupSegments: ["prox", "calls", "tools"],
3680
4476
  command: "create",
3681
- body: { tool_id, ...(options ?? {}) },
4477
+ body: { "tool_id": toolId, ...(options ?? {}) },
3682
4478
  });
3683
4479
  },
3684
4480
  /** List call tools */
@@ -3690,69 +4486,69 @@ export class RaviClient {
3690
4486
  });
3691
4487
  },
3692
4488
  /** Execute a tool (dry-run validates without side effects) */
3693
- run: async (tool_id, options) => {
4489
+ run: async (toolId, options) => {
3694
4490
  return this.transport.call({
3695
4491
  groupSegments: ["prox", "calls", "tools"],
3696
4492
  command: "run",
3697
- body: { tool_id, ...(options ?? {}) },
4493
+ body: { "tool_id": toolId, ...(options ?? {}) },
3698
4494
  });
3699
4495
  },
3700
4496
  /** List tool runs for a call request */
3701
- runs: async (call_request_id) => {
4497
+ runs: async (callRequestId) => {
3702
4498
  return this.transport.call({
3703
4499
  groupSegments: ["prox", "calls", "tools"],
3704
4500
  command: "runs",
3705
- body: { call_request_id },
4501
+ body: { "call_request_id": callRequestId },
3706
4502
  });
3707
4503
  },
3708
4504
  /** Show a call tool by ID */
3709
- show: async (tool_id) => {
4505
+ show: async (toolId) => {
3710
4506
  return this.transport.call({
3711
4507
  groupSegments: ["prox", "calls", "tools"],
3712
4508
  command: "show",
3713
- body: { tool_id },
4509
+ body: { "tool_id": toolId },
3714
4510
  });
3715
4511
  },
3716
4512
  /** Unbind a tool from a profile */
3717
- unbind: async (profile_id, tool_id) => {
4513
+ unbind: async (profileId, toolId) => {
3718
4514
  return this.transport.call({
3719
4515
  groupSegments: ["prox", "calls", "tools"],
3720
4516
  command: "unbind",
3721
- body: { profile_id, tool_id },
4517
+ body: { "profile_id": profileId, "tool_id": toolId },
3722
4518
  });
3723
4519
  }
3724
4520
  },
3725
4521
  /** Show call transcript, syncing provider state when needed */
3726
- transcript: async (call_request_id, options) => {
4522
+ transcript: async (callRequestId, options) => {
3727
4523
  return this.transport.call({
3728
4524
  groupSegments: ["prox", "calls"],
3729
4525
  command: "transcript",
3730
- body: { call_request_id, ...(options ?? {}) },
4526
+ body: { "call_request_id": callRequestId, ...(options ?? {}) },
3731
4527
  });
3732
4528
  },
3733
4529
  voiceAgents: {
3734
4530
  /** Bind a tool to a voice agent */
3735
- bindTool: async (voice_agent_id, tool_id, options) => {
4531
+ bindTool: async (voiceAgentId, toolId, options) => {
3736
4532
  return this.transport.call({
3737
4533
  groupSegments: ["prox", "calls", "voice-agents"],
3738
4534
  command: "bind-tool",
3739
- body: { voice_agent_id, tool_id, ...(options ?? {}) },
4535
+ body: { "voice_agent_id": voiceAgentId, "tool_id": toolId, ...(options ?? {}) },
3740
4536
  });
3741
4537
  },
3742
4538
  /** Configure a voice agent */
3743
- configure: async (voice_agent_id, options) => {
4539
+ configure: async (voiceAgentId, options) => {
3744
4540
  return this.transport.call({
3745
4541
  groupSegments: ["prox", "calls", "voice-agents"],
3746
4542
  command: "configure",
3747
- body: { voice_agent_id, ...(options ?? {}) },
4543
+ body: { "voice_agent_id": voiceAgentId, ...(options ?? {}) },
3748
4544
  });
3749
4545
  },
3750
4546
  /** Create a new voice agent */
3751
- create: async (voice_agent_id, options) => {
4547
+ create: async (voiceAgentId, options) => {
3752
4548
  return this.transport.call({
3753
4549
  groupSegments: ["prox", "calls", "voice-agents"],
3754
4550
  command: "create",
3755
- body: { voice_agent_id, ...(options ?? {}) },
4551
+ body: { "voice_agent_id": voiceAgentId, ...(options ?? {}) },
3756
4552
  });
3757
4553
  },
3758
4554
  /** List voice agents */
@@ -3764,27 +4560,27 @@ export class RaviClient {
3764
4560
  });
3765
4561
  },
3766
4562
  /** Show a voice agent by ID */
3767
- show: async (voice_agent_id) => {
4563
+ show: async (voiceAgentId) => {
3768
4564
  return this.transport.call({
3769
4565
  groupSegments: ["prox", "calls", "voice-agents"],
3770
4566
  command: "show",
3771
- body: { voice_agent_id },
4567
+ body: { "voice_agent_id": voiceAgentId },
3772
4568
  });
3773
4569
  },
3774
4570
  /** Sync voice agent to provider (dry-run by default) */
3775
- sync: async (voice_agent_id, options) => {
4571
+ sync: async (voiceAgentId, options) => {
3776
4572
  return this.transport.call({
3777
4573
  groupSegments: ["prox", "calls", "voice-agents"],
3778
4574
  command: "sync",
3779
- body: { voice_agent_id, ...(options ?? {}) },
4575
+ body: { "voice_agent_id": voiceAgentId, ...(options ?? {}) },
3780
4576
  });
3781
4577
  },
3782
4578
  /** Unbind a tool from a voice agent */
3783
- unbindTool: async (voice_agent_id, tool_id) => {
4579
+ unbindTool: async (voiceAgentId, toolId) => {
3784
4580
  return this.transport.call({
3785
4581
  groupSegments: ["prox", "calls", "voice-agents"],
3786
4582
  command: "unbind-tool",
3787
- body: { voice_agent_id, tool_id },
4583
+ body: { "voice_agent_id": voiceAgentId, "tool_id": toolId },
3788
4584
  });
3789
4585
  }
3790
4586
  }
@@ -4277,6 +5073,14 @@ export class RaviClient {
4277
5073
  body: { nameOrKey, ...(options ?? {}) },
4278
5074
  });
4279
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
+ },
4280
5084
  /** Close the current Slack thread session, optionally returning a result to its parent */
4281
5085
  closeThread: async (options) => {
4282
5086
  return this.transport.call({
@@ -4285,6 +5089,96 @@ export class RaviClient {
4285
5089
  body: { ...(options ?? {}) },
4286
5090
  });
4287
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
+ },
4288
5182
  /** Create a native Slack thread and start a child session in it */
4289
5183
  createThread: async (message, options) => {
4290
5184
  return this.transport.call({
@@ -4431,6 +5325,22 @@ export class RaviClient {
4431
5325
  body: { action, nameOrKey, objective, ...(options ?? {}) },
4432
5326
  });
4433
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
+ },
4434
5344
  /** Show unified session inspection details */
4435
5345
  info: async (nameOrKey) => {
4436
5346
  return this.transport.call({
@@ -4463,6 +5373,22 @@ export class RaviClient {
4463
5373
  body: { ...(options ?? {}) },
4464
5374
  });
4465
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
+ },
4466
5392
  /** Prune sessions inactive for a duration (dry-run by default) */
4467
5393
  prune: async (options) => {
4468
5394
  return this.transport.call({
@@ -4495,6 +5421,14 @@ export class RaviClient {
4495
5421
  body: { nameOrKey, newName },
4496
5422
  });
4497
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
+ },
4498
5432
  /** Reset a session (fresh start) */
4499
5433
  reset: async (nameOrKey, options) => {
4500
5434
  return this.transport.call({
@@ -4625,6 +5559,30 @@ export class RaviClient {
4625
5559
  body: { nameOrKey },
4626
5560
  });
4627
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
+ },
4628
5586
  /** Read the SQLite session trace timeline */
4629
5587
  trace: async (nameOrKey, options) => {
4630
5588
  return this.transport.call({
@@ -4633,6 +5591,22 @@ export class RaviClient {
4633
5591
  body: { nameOrKey, ...(options ?? {}) },
4634
5592
  });
4635
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
+ },
4636
5610
  /** Show runtime session visibility state */
4637
5611
  visibility: async (nameOrKey) => {
4638
5612
  return this.transport.call({
@@ -4676,6 +5650,112 @@ export class RaviClient {
4676
5650
  });
4677
5651
  }
4678
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
+ };
4679
5759
  skillGates = {
4680
5760
  /** Disable a skill gate rule */
4681
5761
  disable: async (id) => {
@@ -4735,7 +5815,7 @@ export class RaviClient {
4735
5815
  }
4736
5816
  };
4737
5817
  skills = {
4738
- /** Grant a catalog or installed skill to an agent (per-agent visibility). Catalog skills need no install; use:skill:<name> capabilities work too. */
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. */
4739
5819
  grant: async (agent, skill, options) => {
4740
5820
  return this.transport.call({
4741
5821
  groupSegments: ["skills"],
@@ -4775,6 +5855,54 @@ export class RaviClient {
4775
5855
  body: { ...(options ?? {}) },
4776
5856
  });
4777
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
+ },
4778
5906
  /** Revoke a skill grant from an agent */
4779
5907
  revoke: async (agent, skill) => {
4780
5908
  return this.transport.call({
@@ -4791,7 +5919,15 @@ export class RaviClient {
4791
5919
  body: { ...(options ?? {}) },
4792
5920
  });
4793
5921
  },
4794
- /** Show a Ravi catalog skill, installed skill or source skill */
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>) */
4795
5931
  show: async (name, options) => {
4796
5932
  return this.transport.call({
4797
5933
  groupSegments: ["skills"],
@@ -4807,6 +5943,14 @@ export class RaviClient {
4807
5943
  body: {},
4808
5944
  });
4809
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
+ },
4810
5954
  /** List agents currently granted a skill (or list all grants for an agent with --agent) */
4811
5955
  who: async (skill, options) => {
4812
5956
  return this.transport.call({
@@ -5341,6 +6485,14 @@ export class RaviClient {
5341
6485
  body: { taskId, ...(options ?? {}) },
5342
6486
  });
5343
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
+ },
5344
6496
  automations: {
5345
6497
  /** Create a new task automation */
5346
6498
  add: async (name, options) => {
@@ -5400,11 +6552,11 @@ export class RaviClient {
5400
6552
  });
5401
6553
  },
5402
6554
  /** Add a comment to a task and steer the assignee if it is active */
5403
- comment: async (taskId, body) => {
6555
+ comment: async (taskId, body, options) => {
5404
6556
  return this.transport.call({
5405
6557
  groupSegments: ["tasks"],
5406
6558
  command: "comment",
5407
- body: { taskId, body },
6559
+ body: { taskId, body, ...(options ?? {}) },
5408
6560
  });
5409
6561
  },
5410
6562
  /** Create a tracked task; unresolved dependencies arm launch plans instead of dispatching early */
@@ -5540,6 +6692,88 @@ export class RaviClient {
5540
6692
  });
5541
6693
  }
5542
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
+ };
5543
6777
  threads = {
5544
6778
  /** Render the bounded thread brief used for handoff */
5545
6779
  brief: async (thread, options) => {
@@ -5766,6 +7000,228 @@ export class RaviClient {
5766
7000
  });
5767
7001
  }
5768
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
+ };
5769
7225
  watch = {
5770
7226
  /** List available watch connectors and event types */
5771
7227
  connectors: async (options) => {
@@ -5990,6 +7446,88 @@ export class RaviClient {
5990
7446
  }
5991
7447
  }
5992
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
+ };
5993
7531
  workObjects = {
5994
7532
  /** Execute one Work Object action */
5995
7533
  action: async (type, id, actionId, options) => {