@ravi-os/sdk 0.260608.1 → 0.260716.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/dist/client.js CHANGED
@@ -73,6 +73,14 @@ export class RaviClient {
73
73
  body: { ...(options ?? {}) },
74
74
  });
75
75
  },
76
+ /** Set or show an agent runtime permission profile */
77
+ permissions: async (id, profile, options) => {
78
+ return this.transport.call({
79
+ groupSegments: ["agents"],
80
+ command: "permissions",
81
+ body: { id, profile, ...(options ?? {}) },
82
+ });
83
+ },
76
84
  /** Reset agent session */
77
85
  reset: async (id, nameOrKey) => {
78
86
  return this.transport.call({
@@ -89,7 +97,7 @@ export class RaviClient {
89
97
  body: { id },
90
98
  });
91
99
  },
92
- /** Set agent property */
100
+ /** Set agent property and report active session runtime overrides */
93
101
  set: async (id, key, value) => {
94
102
  return this.transport.call({
95
103
  groupSegments: ["agents"],
@@ -131,6 +139,14 @@ export class RaviClient {
131
139
  body: { id },
132
140
  });
133
141
  },
142
+ /** Delete scaffold-owned artifacts for a Ravi app */
143
+ delete: async (id, options) => {
144
+ return this.transport.call({
145
+ groupSegments: ["apps"],
146
+ command: "delete",
147
+ body: { id, ...(options ?? {}) },
148
+ });
149
+ },
134
150
  /** Print agent guidance for discovering, scaffolding, and operating Ravi apps */
135
151
  guide: async (id) => {
136
152
  return this.transport.call({
@@ -139,6 +155,14 @@ export class RaviClient {
139
155
  body: { id },
140
156
  });
141
157
  },
158
+ /** Create a Ravi app draft from an existing CLI contract */
159
+ importCli: async (command, options) => {
160
+ return this.transport.call({
161
+ groupSegments: ["apps"],
162
+ command: "import-cli",
163
+ body: { command, ...(options ?? {}) },
164
+ });
165
+ },
142
166
  /** List discovered Ravi apps */
143
167
  list: async (options) => {
144
168
  return this.transport.call({
@@ -238,7 +262,7 @@ export class RaviClient {
238
262
  body: { ...(options ?? {}) },
239
263
  });
240
264
  },
241
- /** Publish a local artifact package through a Console-compatible endpoint */
265
+ /** Upload a local artifact/file/directory to Console and optionally release it to Ravi Pages */
242
266
  publish: async (target, options) => {
243
267
  return this.transport.call({
244
268
  groupSegments: ["artifacts"],
@@ -306,6 +330,15 @@ export class RaviClient {
306
330
  }
307
331
  };
308
332
  audio = {
333
+ /** Return generated TTS audio bytes */
334
+ blob: async (id) => {
335
+ return this.transport.call({
336
+ groupSegments: ["audio"],
337
+ command: "blob",
338
+ body: { id },
339
+ binary: true,
340
+ });
341
+ },
309
342
  /** Generate speech from text using ElevenLabs TTS */
310
343
  generate: async (text, options) => {
311
344
  return this.transport.call({
@@ -313,6 +346,30 @@ export class RaviClient {
313
346
  command: "generate",
314
347
  body: { text, ...(options ?? {}) },
315
348
  });
349
+ },
350
+ /** List generated ravi.tts playback items waiting for extension playback */
351
+ pending: async (options) => {
352
+ return this.transport.call({
353
+ groupSegments: ["audio"],
354
+ command: "pending",
355
+ body: { ...(options ?? {}) },
356
+ });
357
+ },
358
+ /** Publish a ravi.tts request for ElevenLabs generation and extension playback */
359
+ tts: async (text, options) => {
360
+ return this.transport.call({
361
+ groupSegments: ["audio"],
362
+ command: "tts",
363
+ body: { text, ...(options ?? {}) },
364
+ });
365
+ },
366
+ /** List available ElevenLabs voices for picker UIs */
367
+ voices: async (options) => {
368
+ return this.transport.call({
369
+ groupSegments: ["audio"],
370
+ command: "voices",
371
+ body: { ...(options ?? {}) },
372
+ });
316
373
  }
317
374
  };
318
375
  bridges = {
@@ -341,88 +398,36 @@ export class RaviClient {
341
398
  });
342
399
  }
343
400
  };
344
- calendar = {
345
- accounts: {
346
- /** Create or update a local calendar provider account */
347
- create: async (options) => {
348
- return this.transport.call({
349
- groupSegments: ["calendar", "accounts"],
350
- command: "create",
351
- body: { ...(options ?? {}) },
352
- });
353
- },
354
- /** List local calendar accounts */
355
- list: async (options) => {
356
- return this.transport.call({
357
- groupSegments: ["calendar", "accounts"],
358
- command: "list",
359
- body: { ...(options ?? {}) },
360
- });
361
- },
362
- /** Run one provider sync tick for an account */
363
- sync: async (account, options) => {
364
- return this.transport.call({
365
- groupSegments: ["calendar", "accounts"],
366
- command: "sync",
367
- body: { account, ...(options ?? {}) },
368
- });
369
- }
370
- },
401
+ calendars = {
371
402
  /** Return free/busy availability in a bounded time window */
372
403
  availability: async (options) => {
373
404
  return this.transport.call({
374
- groupSegments: ["calendar"],
405
+ groupSegments: ["calendars"],
375
406
  command: "availability",
376
407
  body: { ...(options ?? {}) },
377
408
  });
378
409
  },
379
- calendars: {
380
- /** Create or update a local calendar projection */
381
- create: async (options) => {
382
- return this.transport.call({
383
- groupSegments: ["calendar", "calendars"],
384
- command: "create",
385
- body: { ...(options ?? {}) },
386
- });
387
- },
388
- /** Disable a local calendar projection */
389
- disable: async (calendar) => {
390
- return this.transport.call({
391
- groupSegments: ["calendar", "calendars"],
392
- command: "disable",
393
- body: { calendar },
394
- });
395
- },
396
- /** List local calendars visible to the current requester */
397
- list: async (options) => {
398
- return this.transport.call({
399
- groupSegments: ["calendar", "calendars"],
400
- command: "list",
401
- body: { ...(options ?? {}) },
402
- });
403
- },
404
- /** Grant a calendar relation to an agent/contact/system subject */
405
- share: async (calendar, options) => {
406
- return this.transport.call({
407
- groupSegments: ["calendar", "calendars"],
408
- command: "share",
409
- body: { calendar, ...(options ?? {}) },
410
- });
411
- },
412
- /** Show a local calendar */
413
- show: async (calendar, options) => {
414
- return this.transport.call({
415
- groupSegments: ["calendar", "calendars"],
416
- command: "show",
417
- body: { calendar, ...(options ?? {}) },
418
- });
419
- }
410
+ /** Create or update a local calendar projection */
411
+ create: async (options) => {
412
+ return this.transport.call({
413
+ groupSegments: ["calendars"],
414
+ command: "create",
415
+ body: { ...(options ?? {}) },
416
+ });
417
+ },
418
+ /** Disable a local calendar projection */
419
+ disable: async (calendar) => {
420
+ return this.transport.call({
421
+ groupSegments: ["calendars"],
422
+ command: "disable",
423
+ body: { calendar },
424
+ });
420
425
  },
421
426
  events: {
422
427
  /** Cancel a local calendar event */
423
428
  cancel: async (event, options) => {
424
429
  return this.transport.call({
425
- groupSegments: ["calendar", "events"],
430
+ groupSegments: ["calendars", "events"],
426
431
  command: "cancel",
427
432
  body: { event, ...(options ?? {}) },
428
433
  });
@@ -430,7 +435,7 @@ export class RaviClient {
430
435
  /** Create a local calendar event and local outbox row */
431
436
  create: async (options) => {
432
437
  return this.transport.call({
433
- groupSegments: ["calendar", "events"],
438
+ groupSegments: ["calendars", "events"],
434
439
  command: "create",
435
440
  body: { ...(options ?? {}) },
436
441
  });
@@ -438,7 +443,7 @@ export class RaviClient {
438
443
  /** List local calendar events in a bounded time window */
439
444
  list: async (options) => {
440
445
  return this.transport.call({
441
- groupSegments: ["calendar", "events"],
446
+ groupSegments: ["calendars", "events"],
442
447
  command: "list",
443
448
  body: { ...(options ?? {}) },
444
449
  });
@@ -446,7 +451,7 @@ export class RaviClient {
446
451
  /** Read one local calendar event */
447
452
  read: async (event) => {
448
453
  return this.transport.call({
449
- groupSegments: ["calendar", "events"],
454
+ groupSegments: ["calendars", "events"],
450
455
  command: "read",
451
456
  body: { event },
452
457
  });
@@ -454,7 +459,7 @@ export class RaviClient {
454
459
  /** Record an attendee response and enqueue provider delivery */
455
460
  respond: async (event, options) => {
456
461
  return this.transport.call({
457
- groupSegments: ["calendar", "events"],
462
+ groupSegments: ["calendars", "events"],
458
463
  command: "respond",
459
464
  body: { event, ...(options ?? {}) },
460
465
  });
@@ -462,45 +467,109 @@ export class RaviClient {
462
467
  /** Update a local calendar event and enqueue provider delivery */
463
468
  update: async (event, options) => {
464
469
  return this.transport.call({
465
- groupSegments: ["calendar", "events"],
470
+ groupSegments: ["calendars", "events"],
466
471
  command: "update",
467
472
  body: { event, ...(options ?? {}) },
468
473
  });
469
474
  }
470
475
  },
471
- outbox: {
472
- /** Inspect one local calendar outbox row */
473
- inspect: async (outbox) => {
474
- return this.transport.call({
475
- groupSegments: ["calendar", "outbox"],
476
- command: "inspect",
477
- body: { outbox },
478
- });
479
- },
480
- /** List local calendar outbox rows */
481
- list: async (options) => {
482
- return this.transport.call({
483
- groupSegments: ["calendar", "outbox"],
484
- command: "list",
485
- body: { ...(options ?? {}) },
486
- });
487
- },
488
- /** Move a failed/dead local outbox row back to pending */
489
- retry: async (outbox) => {
490
- return this.transport.call({
491
- groupSegments: ["calendar", "outbox"],
492
- command: "retry",
493
- body: { outbox },
494
- });
495
- },
496
- /** Show local calendar outbox status */
497
- status: async () => {
498
- return this.transport.call({
499
- groupSegments: ["calendar", "outbox"],
500
- command: "status",
501
- body: {},
502
- });
503
- }
476
+ /** List local calendars visible to the current requester */
477
+ list: async (options) => {
478
+ return this.transport.call({
479
+ groupSegments: ["calendars"],
480
+ command: "list",
481
+ body: { ...(options ?? {}) },
482
+ });
483
+ },
484
+ /** Grant a calendar relation to an agent/contact/system subject */
485
+ share: async (calendar, options) => {
486
+ return this.transport.call({
487
+ groupSegments: ["calendars"],
488
+ command: "share",
489
+ body: { calendar, ...(options ?? {}) },
490
+ });
491
+ },
492
+ /** Show a local calendar */
493
+ show: async (calendar, options) => {
494
+ return this.transport.call({
495
+ groupSegments: ["calendars"],
496
+ command: "show",
497
+ body: { calendar, ...(options ?? {}) },
498
+ });
499
+ }
500
+ };
501
+ channels = {
502
+ /** Create or update a native channel config */
503
+ create: async (name, options) => {
504
+ return this.transport.call({
505
+ groupSegments: ["channels"],
506
+ command: "create",
507
+ body: { name, ...(options ?? {}) },
508
+ });
509
+ },
510
+ /** List configured native channels */
511
+ list: async (options) => {
512
+ return this.transport.call({
513
+ groupSegments: ["channels"],
514
+ command: "list",
515
+ body: { ...(options ?? {}) },
516
+ });
517
+ },
518
+ /** Start channel runner infrastructure and print foreground status */
519
+ probe: async () => {
520
+ return this.transport.call({
521
+ groupSegments: ["channels"],
522
+ command: "probe",
523
+ body: {},
524
+ });
525
+ },
526
+ /** Restart the channel runner */
527
+ restart: async (options) => {
528
+ return this.transport.call({
529
+ groupSegments: ["channels"],
530
+ command: "restart",
531
+ body: { ...(options ?? {}) },
532
+ });
533
+ },
534
+ /** Set a native channel config property */
535
+ set: async (name, key, value) => {
536
+ return this.transport.call({
537
+ groupSegments: ["channels"],
538
+ command: "set",
539
+ body: { name, key, value },
540
+ });
541
+ },
542
+ /** Show one configured native channel */
543
+ show: async (name) => {
544
+ return this.transport.call({
545
+ groupSegments: ["channels"],
546
+ command: "show",
547
+ body: { name },
548
+ });
549
+ },
550
+ /** Start the channel runner via PM2 */
551
+ start: async (options) => {
552
+ return this.transport.call({
553
+ groupSegments: ["channels"],
554
+ command: "start",
555
+ body: { ...(options ?? {}) },
556
+ });
557
+ },
558
+ /** Show channel runner status */
559
+ status: async () => {
560
+ return this.transport.call({
561
+ groupSegments: ["channels"],
562
+ command: "status",
563
+ body: {},
564
+ });
565
+ },
566
+ /** Stop the channel runner */
567
+ stop: async () => {
568
+ return this.transport.call({
569
+ groupSegments: ["channels"],
570
+ command: "stop",
571
+ body: {},
572
+ });
504
573
  }
505
574
  };
506
575
  chats = {
@@ -569,6 +638,22 @@ export class RaviClient {
569
638
  body: { list, ...(options ?? {}) },
570
639
  });
571
640
  },
641
+ /** Validate a dynamic selector and preview membership diff without writes */
642
+ preview: async (listId, options) => {
643
+ return this.transport.call({
644
+ groupSegments: ["chats", "lists"],
645
+ command: "preview",
646
+ body: { listId, ...(options ?? {}) },
647
+ });
648
+ },
649
+ /** Materialize dynamic reading-list selector membership */
650
+ recompute: async (listId, options) => {
651
+ return this.transport.call({
652
+ groupSegments: ["chats", "lists"],
653
+ command: "recompute",
654
+ body: { listId, ...(options ?? {}) },
655
+ });
656
+ },
572
657
  /** Remove a chat from a reading list without deleting cursor history */
573
658
  remove: async (list, chat, options) => {
574
659
  return this.transport.call({
@@ -576,6 +661,14 @@ export class RaviClient {
576
661
  command: "remove",
577
662
  body: { list, chat, ...(options ?? {}) },
578
663
  });
664
+ },
665
+ /** Show one reading list and explain whether its selector is safe */
666
+ show: async (listId, options) => {
667
+ return this.transport.call({
668
+ groupSegments: ["chats", "lists"],
669
+ command: "show",
670
+ body: { listId, ...(options ?? {}) },
671
+ });
579
672
  }
580
673
  },
581
674
  /** Read messages from one chat */
@@ -605,6 +698,40 @@ export class RaviClient {
605
698
  body: { ...(options ?? {}) },
606
699
  });
607
700
  }
701
+ },
702
+ scope: {
703
+ /** Clear a default Console project for a session, agent, workspace, or install */
704
+ clear: async (options) => {
705
+ return this.transport.call({
706
+ groupSegments: ["cloud", "scope"],
707
+ command: "clear",
708
+ body: { ...(options ?? {}) },
709
+ });
710
+ },
711
+ /** Explain how the effective Ravi Console scope is resolved */
712
+ explain: async (options) => {
713
+ return this.transport.call({
714
+ groupSegments: ["cloud", "scope"],
715
+ command: "explain",
716
+ body: { ...(options ?? {}) },
717
+ });
718
+ },
719
+ /** Set a default Console project for a session, agent, workspace, or install */
720
+ set: async (options) => {
721
+ return this.transport.call({
722
+ groupSegments: ["cloud", "scope"],
723
+ command: "set",
724
+ body: { ...(options ?? {}) },
725
+ });
726
+ },
727
+ /** Show the effective Ravi Console scope for this process */
728
+ show: async (options) => {
729
+ return this.transport.call({
730
+ groupSegments: ["cloud", "scope"],
731
+ command: "show",
732
+ body: { ...(options ?? {}) },
733
+ });
734
+ }
608
735
  }
609
736
  };
610
737
  commands = {
@@ -1002,6 +1129,14 @@ export class RaviClient {
1002
1129
  body: { ...(options ?? {}) },
1003
1130
  });
1004
1131
  },
1132
+ /** Compact the context store by deleting inactive (revoked/expired) contexts */
1133
+ prune: async (options) => {
1134
+ return this.transport.call({
1135
+ groupSegments: ["context"],
1136
+ command: "prune",
1137
+ body: { ...(options ?? {}) },
1138
+ });
1139
+ },
1005
1140
  /** Revoke a runtime context by context ID */
1006
1141
  revoke: async (contextId, options) => {
1007
1142
  return this.transport.call({
@@ -1044,6 +1179,14 @@ export class RaviClient {
1044
1179
  body: { ...(options ?? {}) },
1045
1180
  });
1046
1181
  },
1182
+ /** Audit pricing coverage for recent cost events */
1183
+ pricing: async (options) => {
1184
+ return this.transport.call({
1185
+ groupSegments: ["costs"],
1186
+ command: "pricing",
1187
+ body: { ...(options ?? {}) },
1188
+ });
1189
+ },
1047
1190
  /** Show detailed cost summary for one session */
1048
1191
  session: async (nameOrKey) => {
1049
1192
  return this.transport.call({
@@ -1069,34 +1212,80 @@ export class RaviClient {
1069
1212
  });
1070
1213
  }
1071
1214
  };
1072
- crm = {
1073
- account: {
1074
- /** Create a CRM account */
1075
- create: async (name, options) => {
1215
+ credentials = {
1216
+ connections: {
1217
+ /** Disable a credential connection */
1218
+ disable: async (options) => {
1076
1219
  return this.transport.call({
1077
- groupSegments: ["crm", "account"],
1078
- command: "create",
1079
- body: { name, ...(options ?? {}) },
1220
+ groupSegments: ["credentials", "connections"],
1221
+ command: "disable",
1222
+ body: { ...(options ?? {}) },
1080
1223
  });
1081
1224
  },
1082
- /** Link a contact to an account */
1083
- linkContact: async (account, contact, options) => {
1225
+ /** Enable a credential connection */
1226
+ enable: async (options) => {
1084
1227
  return this.transport.call({
1085
- groupSegments: ["crm", "account"],
1086
- command: "link-contact",
1087
- body: { account, contact, ...(options ?? {}) },
1228
+ groupSegments: ["credentials", "connections"],
1229
+ command: "enable",
1230
+ body: { ...(options ?? {}) },
1088
1231
  });
1089
1232
  },
1090
- /** Show CRM account */
1091
- show: async (account) => {
1233
+ /** List provider credential connections without secret values */
1234
+ list: async (options) => {
1092
1235
  return this.transport.call({
1093
- groupSegments: ["crm", "account"],
1236
+ groupSegments: ["credentials", "connections"],
1237
+ command: "list",
1238
+ body: { ...(options ?? {}) },
1239
+ });
1240
+ },
1241
+ /** Show one credential connection without secret values */
1242
+ show: async (options) => {
1243
+ return this.transport.call({
1244
+ groupSegments: ["credentials", "connections"],
1094
1245
  command: "show",
1095
- body: { account },
1246
+ body: { ...(options ?? {}) },
1096
1247
  });
1097
1248
  }
1098
1249
  },
1099
- /** Show CRM account */
1250
+ policies: {
1251
+ /** Explain capabilities required for a provider credential action */
1252
+ explain: async (options) => {
1253
+ return this.transport.call({
1254
+ groupSegments: ["credentials", "policies"],
1255
+ command: "explain",
1256
+ body: { ...(options ?? {}) },
1257
+ });
1258
+ }
1259
+ }
1260
+ };
1261
+ crm = {
1262
+ account: {
1263
+ /** Create a CRM account */
1264
+ create: async (name, options) => {
1265
+ return this.transport.call({
1266
+ groupSegments: ["crm", "account"],
1267
+ command: "create",
1268
+ body: { name, ...(options ?? {}) },
1269
+ });
1270
+ },
1271
+ /** Link a contact to an account */
1272
+ linkContact: async (account, contact, options) => {
1273
+ return this.transport.call({
1274
+ groupSegments: ["crm", "account"],
1275
+ command: "link-contact",
1276
+ body: { account, contact, ...(options ?? {}) },
1277
+ });
1278
+ },
1279
+ /** Show CRM account */
1280
+ show: async (account) => {
1281
+ return this.transport.call({
1282
+ groupSegments: ["crm", "account"],
1283
+ command: "show",
1284
+ body: { account },
1285
+ });
1286
+ }
1287
+ },
1288
+ /** Show CRM account */
1100
1289
  accountCommand: async (account) => {
1101
1290
  return this.transport.call({
1102
1291
  groupSegments: ["crm"],
@@ -1239,7 +1428,7 @@ export class RaviClient {
1239
1428
  });
1240
1429
  },
1241
1430
  pipeline: {
1242
- /** Create a CRM pipeline */
1431
+ /** Create a CRM pipeline (with optional declarative metadata) */
1243
1432
  create: async (name, options) => {
1244
1433
  return this.transport.call({
1245
1434
  groupSegments: ["crm", "pipeline"],
@@ -1255,20 +1444,46 @@ export class RaviClient {
1255
1444
  body: { ...(options ?? {}) },
1256
1445
  });
1257
1446
  },
1258
- /** Set a CRM pipeline field */
1259
- set: async (pipeline, field, value) => {
1447
+ policy: {
1448
+ /** Evaluate metadata.hitl_required_when against a JSON context (decide if send needs human approval) */
1449
+ hitlCheck: async (pipeline, options) => {
1450
+ return this.transport.call({
1451
+ groupSegments: ["crm", "pipeline", "policy"],
1452
+ command: "hitl-check",
1453
+ body: { pipeline, ...(options ?? {}) },
1454
+ });
1455
+ },
1456
+ /** Evaluate metadata.send_window for a pipeline at a given instant (allow / releaseAt) */
1457
+ sendWindowCheck: async (pipeline, options) => {
1458
+ return this.transport.call({
1459
+ groupSegments: ["crm", "pipeline", "policy"],
1460
+ command: "send-window-check",
1461
+ body: { pipeline, ...(options ?? {}) },
1462
+ });
1463
+ }
1464
+ },
1465
+ /** Review pipeline metadata against canonical schema (12 fields, ✓/⚠/✗ + suggestions) */
1466
+ review: async (pipeline) => {
1467
+ return this.transport.call({
1468
+ groupSegments: ["crm", "pipeline"],
1469
+ command: "review",
1470
+ body: { pipeline },
1471
+ });
1472
+ },
1473
+ /** Set a CRM pipeline field (or patch metadata via structured flags) */
1474
+ set: async (pipeline, field, value, options) => {
1260
1475
  return this.transport.call({
1261
1476
  groupSegments: ["crm", "pipeline"],
1262
1477
  command: "set",
1263
- body: { pipeline, field, value },
1478
+ body: { pipeline, field, value, ...(options ?? {}) },
1264
1479
  });
1265
1480
  },
1266
1481
  /** Show one CRM pipeline with stages and topics */
1267
- show: async (pipeline) => {
1482
+ show: async (pipeline, options) => {
1268
1483
  return this.transport.call({
1269
1484
  groupSegments: ["crm", "pipeline"],
1270
1485
  command: "show",
1271
- body: { pipeline },
1486
+ body: { pipeline, ...(options ?? {}) },
1272
1487
  });
1273
1488
  },
1274
1489
  stage: {
@@ -1346,6 +1561,14 @@ export class RaviClient {
1346
1561
  body: { pipeline, stage, ...(options ?? {}) },
1347
1562
  });
1348
1563
  }
1564
+ },
1565
+ /** Validate pipeline metadata against canonical JSON Schema (PASS/WARN/FAIL) */
1566
+ validate: async (pipeline, options) => {
1567
+ return this.transport.call({
1568
+ groupSegments: ["crm", "pipeline"],
1569
+ command: "validate",
1570
+ body: { pipeline, ...(options ?? {}) },
1571
+ });
1349
1572
  }
1350
1573
  },
1351
1574
  task: {
@@ -1424,7 +1647,7 @@ export class RaviClient {
1424
1647
  body: { id },
1425
1648
  });
1426
1649
  },
1427
- /** List all scheduled jobs */
1650
+ /** List scheduled jobs (agent-scoped by default) */
1428
1651
  list: async (options) => {
1429
1652
  return this.transport.call({
1430
1653
  groupSegments: ["cron"],
@@ -1643,6 +1866,16 @@ export class RaviClient {
1643
1866
  });
1644
1867
  }
1645
1868
  };
1869
+ feedback = {
1870
+ /** Submit structured feedback to Ravi Console */
1871
+ send: async (message, options) => {
1872
+ return this.transport.call({
1873
+ groupSegments: ["feedback"],
1874
+ command: "send",
1875
+ body: { message, ...(options ?? {}) },
1876
+ });
1877
+ }
1878
+ };
1646
1879
  gmail = {
1647
1880
  /** List messages in the connected Gmail mailbox */
1648
1881
  list: async (options) => {
@@ -2375,6 +2608,58 @@ export class RaviClient {
2375
2608
  });
2376
2609
  }
2377
2610
  };
2611
+ meetings = {
2612
+ /** Finalize a completed meeting recorder run into a Ravi meeting.raw artifact */
2613
+ finalize: async (options) => {
2614
+ return this.transport.call({
2615
+ groupSegments: ["meetings"],
2616
+ command: "finalize",
2617
+ body: { ...(options ?? {}) },
2618
+ });
2619
+ },
2620
+ profiles: {
2621
+ /** Create a reusable meeting profile scaffold */
2622
+ init: async (profileId, options) => {
2623
+ return this.transport.call({
2624
+ groupSegments: ["meetings", "profiles"],
2625
+ command: "init",
2626
+ body: { profileId, ...(options ?? {}) },
2627
+ });
2628
+ },
2629
+ /** List resolved meeting profiles */
2630
+ list: async (options) => {
2631
+ return this.transport.call({
2632
+ groupSegments: ["meetings", "profiles"],
2633
+ command: "list",
2634
+ body: { ...(options ?? {}) },
2635
+ });
2636
+ },
2637
+ /** Show one resolved meeting profile */
2638
+ show: async (profileId) => {
2639
+ return this.transport.call({
2640
+ groupSegments: ["meetings", "profiles"],
2641
+ command: "show",
2642
+ body: { profileId },
2643
+ });
2644
+ },
2645
+ /** Validate one meeting profile or the whole catalog */
2646
+ validate: async (profileId) => {
2647
+ return this.transport.call({
2648
+ groupSegments: ["meetings", "profiles"],
2649
+ command: "validate",
2650
+ body: { profileId },
2651
+ });
2652
+ }
2653
+ },
2654
+ /** List meeting voice runtime candidates and current recommendation */
2655
+ voiceRuntimes: async () => {
2656
+ return this.transport.call({
2657
+ groupSegments: ["meetings"],
2658
+ command: "voice-runtimes",
2659
+ body: {},
2660
+ });
2661
+ }
2662
+ };
2378
2663
  metrics = {
2379
2664
  /** List dates that have already been rolled up */
2380
2665
  dates: async () => {
@@ -2536,20 +2821,20 @@ export class RaviClient {
2536
2821
  }
2537
2822
  };
2538
2823
  pages = {
2539
- /** Create a Ravi Pages site in a Console project */
2540
- create: async (project, slug, options) => {
2824
+ /** Compatibility: ensure a Ravi Pages host record; does not upload HTML or assets */
2825
+ create: async (args, options) => {
2541
2826
  return this.transport.call({
2542
2827
  groupSegments: ["pages"],
2543
2828
  command: "create",
2544
- body: { project, slug, ...(options ?? {}) },
2829
+ body: { args, ...(options ?? {}) },
2545
2830
  });
2546
2831
  },
2547
2832
  /** Bind custom hostnames to a Ravi Pages site */
2548
- domains: async (project, site, hostnames, options) => {
2833
+ domains: async (args, options) => {
2549
2834
  return this.transport.call({
2550
2835
  groupSegments: ["pages"],
2551
2836
  command: "domains",
2552
- body: { project, site, hostnames, ...(options ?? {}) },
2837
+ body: { args, ...(options ?? {}) },
2553
2838
  });
2554
2839
  },
2555
2840
  /** List Ravi Pages sites in a Console project */
@@ -2560,77 +2845,77 @@ export class RaviClient {
2560
2845
  body: { project, ...(options ?? {}) },
2561
2846
  });
2562
2847
  },
2848
+ /** Publish a directory, file, or local artifact to a project Pages host */
2849
+ publish: async (args, options) => {
2850
+ return this.transport.call({
2851
+ groupSegments: ["pages"],
2852
+ command: "publish",
2853
+ body: { args, ...(options ?? {}) },
2854
+ });
2855
+ },
2856
+ /** List published Ravi Pages URLs in a Console project */
2857
+ published: async (project, options) => {
2858
+ return this.transport.call({
2859
+ groupSegments: ["pages"],
2860
+ command: "published",
2861
+ body: { project, ...(options ?? {}) },
2862
+ });
2863
+ },
2563
2864
  /** Update a Ravi Pages site in a Console project */
2564
- update: async (project, site, options) => {
2865
+ update: async (args, options) => {
2565
2866
  return this.transport.call({
2566
2867
  groupSegments: ["pages"],
2567
2868
  command: "update",
2568
- body: { project, site, ...(options ?? {}) },
2869
+ body: { args, ...(options ?? {}) },
2569
2870
  });
2570
2871
  },
2571
2872
  /** Set a Ravi Pages site default visibility */
2572
- visibility: async (project, site, visibility, options) => {
2873
+ visibility: async (args, options) => {
2573
2874
  return this.transport.call({
2574
2875
  groupSegments: ["pages"],
2575
2876
  command: "visibility",
2576
- body: { project, site, visibility, ...(options ?? {}) },
2877
+ body: { args, ...(options ?? {}) },
2577
2878
  });
2578
2879
  }
2579
2880
  };
2580
2881
  permissions = {
2581
- /** Check if a subject has a permission on an object */
2582
- check: async (subject, permission, object) => {
2882
+ /** Plan or apply a provider-owned permission profile to subjects */
2883
+ allow: async (profile, options) => {
2583
2884
  return this.transport.call({
2584
2885
  groupSegments: ["permissions"],
2585
- command: "check",
2586
- body: { subject, permission, object },
2886
+ command: "allow",
2887
+ body: { profile, ...(options ?? {}) },
2587
2888
  });
2588
2889
  },
2589
- /** Clear all manual relations */
2590
- clear: async (options) => {
2890
+ /** Evaluate a provider-runtime permission request */
2891
+ check: async (options) => {
2591
2892
  return this.transport.call({
2592
2893
  groupSegments: ["permissions"],
2593
- command: "clear",
2894
+ command: "check",
2594
2895
  body: { ...(options ?? {}) },
2595
2896
  });
2596
2897
  },
2597
- /** Grant a relation */
2598
- grant: async (subject, relation, object) => {
2599
- return this.transport.call({
2600
- groupSegments: ["permissions"],
2601
- command: "grant",
2602
- body: { subject, relation, object },
2603
- });
2604
- },
2605
- /** Apply a permission template to an agent */
2606
- init: async (subject, template) => {
2607
- return this.transport.call({
2608
- groupSegments: ["permissions"],
2609
- command: "init",
2610
- body: { subject, template },
2611
- });
2612
- },
2613
- /** List relations */
2614
- list: async (options) => {
2898
+ /** Materialize provider-runtime capabilities for a subject */
2899
+ materialize: async (options) => {
2615
2900
  return this.transport.call({
2616
2901
  groupSegments: ["permissions"],
2617
- command: "list",
2902
+ command: "materialize",
2618
2903
  body: { ...(options ?? {}) },
2619
2904
  });
2620
2905
  },
2621
- /** Revoke a relation */
2622
- revoke: async (subject, relation, object) => {
2906
+ /** Plan or apply a provider-owned fix for a recorded permission denial */
2907
+ resolve: async (denialId, options) => {
2623
2908
  return this.transport.call({
2624
2909
  groupSegments: ["permissions"],
2625
- command: "revoke",
2626
- body: { subject, relation, object },
2910
+ command: "resolve",
2911
+ body: { denialId, ...(options ?? {}) },
2627
2912
  });
2628
2913
  },
2629
- /** Re-sync relations from agent configs */
2630
- sync: async () => {
2914
+ /** Show the active provider-runtime permission chain */
2915
+ status: async () => {
2631
2916
  return this.transport.call({
2632
2917
  groupSegments: ["permissions"],
2633
- command: "sync",
2918
+ command: "status",
2634
2919
  body: {},
2635
2920
  });
2636
2921
  }
@@ -3127,6 +3412,72 @@ export class RaviClient {
3127
3412
  body: { id },
3128
3413
  });
3129
3414
  }
3415
+ },
3416
+ presets: {
3417
+ /** Create a runtime model preset */
3418
+ create: async (id, options) => {
3419
+ return this.transport.call({
3420
+ groupSegments: ["runtime", "presets"],
3421
+ command: "create",
3422
+ body: { id, ...(options ?? {}) },
3423
+ });
3424
+ },
3425
+ /** Delete an unreferenced runtime model preset */
3426
+ delete: async (id, options) => {
3427
+ return this.transport.call({
3428
+ groupSegments: ["runtime", "presets"],
3429
+ command: "delete",
3430
+ body: { id, ...(options ?? {}) },
3431
+ });
3432
+ },
3433
+ /** Disable an unreferenced runtime model preset */
3434
+ disable: async (id, options) => {
3435
+ return this.transport.call({
3436
+ groupSegments: ["runtime", "presets"],
3437
+ command: "disable",
3438
+ body: { id, ...(options ?? {}) },
3439
+ });
3440
+ },
3441
+ /** Enable a runtime model preset */
3442
+ enable: async (id, options) => {
3443
+ return this.transport.call({
3444
+ groupSegments: ["runtime", "presets"],
3445
+ command: "enable",
3446
+ body: { id, ...(options ?? {}) },
3447
+ });
3448
+ },
3449
+ /** Show agents/sessions affected by a preset */
3450
+ impact: async (id, options) => {
3451
+ return this.transport.call({
3452
+ groupSegments: ["runtime", "presets"],
3453
+ command: "impact",
3454
+ body: { id, ...(options ?? {}) },
3455
+ });
3456
+ },
3457
+ /** List runtime model presets */
3458
+ list: async (options) => {
3459
+ return this.transport.call({
3460
+ groupSegments: ["runtime", "presets"],
3461
+ command: "list",
3462
+ body: { ...(options ?? {}) },
3463
+ });
3464
+ },
3465
+ /** Update a runtime model preset field (model) */
3466
+ set: async (id, field, value, options) => {
3467
+ return this.transport.call({
3468
+ groupSegments: ["runtime", "presets"],
3469
+ command: "set",
3470
+ body: { id, field, value, ...(options ?? {}) },
3471
+ });
3472
+ },
3473
+ /** Show a runtime model preset */
3474
+ show: async (id) => {
3475
+ return this.transport.call({
3476
+ groupSegments: ["runtime", "presets"],
3477
+ command: "show",
3478
+ body: { id },
3479
+ });
3480
+ }
3130
3481
  }
3131
3482
  };
3132
3483
  sdk = {
@@ -3404,6 +3755,14 @@ export class RaviClient {
3404
3755
  command: "snooze",
3405
3756
  body: { id, ...(options ?? {}) },
3406
3757
  });
3758
+ },
3759
+ /** Update a session followup cadence without recreating it */
3760
+ update: async (id, options) => {
3761
+ return this.transport.call({
3762
+ groupSegments: ["sessions", "followups"],
3763
+ command: "update",
3764
+ body: { id, ...(options ?? {}) },
3765
+ });
3407
3766
  }
3408
3767
  },
3409
3768
  /** Inspect or mutate persisted session goal state */
@@ -3560,6 +3919,14 @@ export class RaviClient {
3560
3919
  body: { nameOrKey, displayName },
3561
3920
  });
3562
3921
  },
3922
+ /** Set session reasoning effort override */
3923
+ setEffort: async (nameOrKey, level) => {
3924
+ return this.transport.call({
3925
+ groupSegments: ["sessions"],
3926
+ command: "set-effort",
3927
+ body: { nameOrKey, level },
3928
+ });
3929
+ },
3563
3930
  /** Set session model override */
3564
3931
  setModel: async (nameOrKey, model) => {
3565
3932
  return this.transport.call({
@@ -3568,178 +3935,524 @@ export class RaviClient {
3568
3935
  body: { nameOrKey, model },
3569
3936
  });
3570
3937
  },
3938
+ /** Set session runtime provider override */
3939
+ setProvider: async (nameOrKey, provider) => {
3940
+ return this.transport.call({
3941
+ groupSegments: ["sessions"],
3942
+ command: "set-provider",
3943
+ body: { nameOrKey, provider },
3944
+ });
3945
+ },
3571
3946
  /** Set session thinking level */
3572
3947
  setThinking: async (nameOrKey, level) => {
3573
3948
  return this.transport.call({
3574
- groupSegments: ["sessions"],
3575
- command: "set-thinking",
3576
- body: { nameOrKey, level },
3949
+ groupSegments: ["sessions"],
3950
+ command: "set-thinking",
3951
+ body: { nameOrKey, level },
3952
+ });
3953
+ },
3954
+ /** Make a session ephemeral with a TTL */
3955
+ setTtl: async (nameOrKey, duration) => {
3956
+ return this.transport.call({
3957
+ groupSegments: ["sessions"],
3958
+ command: "set-ttl",
3959
+ body: { nameOrKey, duration },
3960
+ });
3961
+ },
3962
+ /** List chats attached to a session */
3963
+ subscriptions: async (nameOrKey) => {
3964
+ return this.transport.call({
3965
+ groupSegments: ["sessions"],
3966
+ command: "subscriptions",
3967
+ body: { nameOrKey },
3968
+ });
3969
+ },
3970
+ /** Read the SQLite session trace timeline */
3971
+ trace: async (nameOrKey, options) => {
3972
+ return this.transport.call({
3973
+ groupSegments: ["sessions"],
3974
+ command: "trace",
3975
+ body: { nameOrKey, ...(options ?? {}) },
3976
+ });
3977
+ },
3978
+ /** Allow a subscribed chat to receive session responses */
3979
+ unmute: async (nameOrKey, options) => {
3980
+ return this.transport.call({
3981
+ groupSegments: ["sessions"],
3982
+ command: "unmute",
3983
+ body: { nameOrKey, ...(options ?? {}) },
3984
+ });
3985
+ },
3986
+ /** Show runtime session visibility state */
3987
+ visibility: async (nameOrKey) => {
3988
+ return this.transport.call({
3989
+ groupSegments: ["sessions"],
3990
+ command: "visibility",
3991
+ body: { nameOrKey },
3992
+ });
3993
+ }
3994
+ };
3995
+ settings = {
3996
+ /** Delete a setting */
3997
+ delete: async (key) => {
3998
+ return this.transport.call({
3999
+ groupSegments: ["settings"],
4000
+ command: "delete",
4001
+ body: { key },
4002
+ });
4003
+ },
4004
+ /** Get a setting value */
4005
+ get: async (key) => {
4006
+ return this.transport.call({
4007
+ groupSegments: ["settings"],
4008
+ command: "get",
4009
+ body: { key },
4010
+ });
4011
+ },
4012
+ /** List live settings (legacy account.* hidden by default) */
4013
+ list: async (options) => {
4014
+ return this.transport.call({
4015
+ groupSegments: ["settings"],
4016
+ command: "list",
4017
+ body: { ...(options ?? {}) },
4018
+ });
4019
+ },
4020
+ /** Set a setting value */
4021
+ set: async (key, value) => {
4022
+ return this.transport.call({
4023
+ groupSegments: ["settings"],
4024
+ command: "set",
4025
+ body: { key, value },
4026
+ });
4027
+ }
4028
+ };
4029
+ skillGates = {
4030
+ /** Disable a skill gate rule */
4031
+ disable: async (id) => {
4032
+ return this.transport.call({
4033
+ groupSegments: ["skill-gates"],
4034
+ command: "disable",
4035
+ body: { id },
4036
+ });
4037
+ },
4038
+ /** Enable a configured skill gate rule */
4039
+ enable: async (id) => {
4040
+ return this.transport.call({
4041
+ groupSegments: ["skill-gates"],
4042
+ command: "enable",
4043
+ body: { id },
4044
+ });
4045
+ },
4046
+ /** List skill gate rules */
4047
+ list: async (options) => {
4048
+ return this.transport.call({
4049
+ groupSegments: ["skill-gates"],
4050
+ command: "list",
4051
+ body: { ...(options ?? {}) },
4052
+ });
4053
+ },
4054
+ /** Delete a configured override and restore the default behavior */
4055
+ reset: async (id) => {
4056
+ return this.transport.call({
4057
+ groupSegments: ["skill-gates"],
4058
+ command: "reset",
4059
+ body: { id },
4060
+ });
4061
+ },
4062
+ /** Remove a custom gate or disable a default gate */
4063
+ rm: async (id) => {
4064
+ return this.transport.call({
4065
+ groupSegments: ["skill-gates"],
4066
+ command: "rm",
4067
+ body: { id },
4068
+ });
4069
+ },
4070
+ /** Create or overwrite a skill gate rule */
4071
+ set: async (id, skill, options) => {
4072
+ return this.transport.call({
4073
+ groupSegments: ["skill-gates"],
4074
+ command: "set",
4075
+ body: { id, skill, ...(options ?? {}) },
4076
+ });
4077
+ },
4078
+ /** Show one skill gate rule */
4079
+ show: async (id) => {
4080
+ return this.transport.call({
4081
+ groupSegments: ["skill-gates"],
4082
+ command: "show",
4083
+ body: { id },
4084
+ });
4085
+ }
4086
+ };
4087
+ skills = {
4088
+ /** Grant a custom skill to an agent (per-agent visibility). System skills follow permissions. */
4089
+ grant: async (agent, skill, options) => {
4090
+ return this.transport.call({
4091
+ groupSegments: ["skills"],
4092
+ command: "grant",
4093
+ body: { agent, skill, ...(options ?? {}) },
4094
+ });
4095
+ },
4096
+ /** Grant skills to agents in bulk. Reuses the per-agent grant mechanism across many (agent, skill) pairs in one call. Idempotent (upsert). Use --dry-run to preview. */
4097
+ grantBatch: async (options) => {
4098
+ return this.transport.call({
4099
+ groupSegments: ["skills"],
4100
+ command: "grant-batch",
4101
+ body: { ...(options ?? {}) },
4102
+ });
4103
+ },
4104
+ /** Show the resolved per-agent skill allowlist (baseline ∪ permission-derived ∪ grants) */
4105
+ inspect: async (agent) => {
4106
+ return this.transport.call({
4107
+ groupSegments: ["skills"],
4108
+ command: "inspect",
4109
+ body: { agent },
4110
+ });
4111
+ },
4112
+ /** Install Ravi catalog skills or skills from an explicit source */
4113
+ install: async (name, options) => {
4114
+ return this.transport.call({
4115
+ groupSegments: ["skills"],
4116
+ command: "install",
4117
+ body: { name, ...(options ?? {}) },
4118
+ });
4119
+ },
4120
+ /** List Ravi catalog skills, installed skills or source skills */
4121
+ list: async (options) => {
4122
+ return this.transport.call({
4123
+ groupSegments: ["skills"],
4124
+ command: "list",
4125
+ body: { ...(options ?? {}) },
4126
+ });
4127
+ },
4128
+ /** Revoke a skill grant from an agent */
4129
+ revoke: async (agent, skill) => {
4130
+ return this.transport.call({
4131
+ groupSegments: ["skills"],
4132
+ command: "revoke",
4133
+ body: { agent, skill },
4134
+ });
4135
+ },
4136
+ /** Revoke skill grants from agents in bulk — the retirement counterpart of grant-batch. Same axes (--agent/--all-agents × --skill/--all-skills). Use --dry-run to preview. */
4137
+ revokeBatch: async (options) => {
4138
+ return this.transport.call({
4139
+ groupSegments: ["skills"],
4140
+ command: "revoke-batch",
4141
+ body: { ...(options ?? {}) },
4142
+ });
4143
+ },
4144
+ /** Show a Ravi catalog skill, installed skill or source skill */
4145
+ show: async (name, options) => {
4146
+ return this.transport.call({
4147
+ groupSegments: ["skills"],
4148
+ command: "show",
4149
+ body: { name, ...(options ?? {}) },
4150
+ });
4151
+ },
4152
+ /** Sync Ravi plugin skills into the Codex skills directory */
4153
+ sync: async () => {
4154
+ return this.transport.call({
4155
+ groupSegments: ["skills"],
4156
+ command: "sync",
4157
+ body: {},
4158
+ });
4159
+ },
4160
+ /** List agents currently granted a skill (or list all grants for an agent with --agent) */
4161
+ who: async (skill, options) => {
4162
+ return this.transport.call({
4163
+ groupSegments: ["skills"],
4164
+ command: "who",
4165
+ body: { skill, ...(options ?? {}) },
4166
+ });
4167
+ }
4168
+ };
4169
+ slack = {
4170
+ /** Send a Slack Block Kit message; dry-run unless --execute is set */
4171
+ blocksSend: async (channel, file, options) => {
4172
+ return this.transport.call({
4173
+ groupSegments: ["slack"],
4174
+ command: "blocks-send",
4175
+ body: { channel, file, ...(options ?? {}) },
4176
+ });
4177
+ },
4178
+ /** Send a Slack Block Kit showcase; dry-run unless --execute is set */
4179
+ blocksShowcase: async (channel, options) => {
4180
+ return this.transport.call({
4181
+ groupSegments: ["slack"],
4182
+ command: "blocks-showcase",
4183
+ body: { channel, ...(options ?? {}) },
4184
+ });
4185
+ },
4186
+ /** Update a Slack message with Block Kit; dry-run unless --execute is set */
4187
+ blocksUpdate: async (channel, ts, file, options) => {
4188
+ return this.transport.call({
4189
+ groupSegments: ["slack"],
4190
+ command: "blocks-update",
4191
+ body: { channel, ts, file, ...(options ?? {}) },
4192
+ });
4193
+ },
4194
+ /** Validate Slack Block Kit JSON with Slack blocks.validate */
4195
+ blocksValidate: async (file, options) => {
4196
+ return this.transport.call({
4197
+ groupSegments: ["slack"],
4198
+ command: "blocks-validate",
4199
+ body: { file, ...(options ?? {}) },
4200
+ });
4201
+ },
4202
+ /** Delete Slack standalone canvas access; dry-run unless --execute is set */
4203
+ canvasAccessDelete: async (canvas, options) => {
4204
+ return this.transport.call({
4205
+ groupSegments: ["slack"],
4206
+ command: "canvas-access-delete",
4207
+ body: { canvas, ...(options ?? {}) },
4208
+ });
4209
+ },
4210
+ /** Set Slack standalone canvas access; dry-run unless --execute is set */
4211
+ canvasAccessSet: async (canvas, access, options) => {
4212
+ return this.transport.call({
4213
+ groupSegments: ["slack"],
4214
+ command: "canvas-access-set",
4215
+ body: { canvas, access, ...(options ?? {}) },
4216
+ });
4217
+ },
4218
+ /** Compatibility helper for publishing Markdown to Slack Canvas; prefer native canvas-create/channel-create/edit --artifact */
4219
+ canvasArtifactPublish: async (artifactOrFile, options) => {
4220
+ return this.transport.call({
4221
+ groupSegments: ["slack"],
4222
+ command: "canvas-artifact-publish",
4223
+ body: { artifactOrFile, ...(options ?? {}) },
4224
+ });
4225
+ },
4226
+ /** Show local Slack Canvas publish status for a Ravi artifact */
4227
+ canvasArtifactStatus: async (artifact) => {
4228
+ return this.transport.call({
4229
+ groupSegments: ["slack"],
4230
+ command: "canvas-artifact-status",
4231
+ body: { artifact },
4232
+ });
4233
+ },
4234
+ /** Create a Slack channel canvas; dry-run unless --execute is set */
4235
+ canvasChannelCreate: async (channel, options) => {
4236
+ return this.transport.call({
4237
+ groupSegments: ["slack"],
4238
+ command: "canvas-channel-create",
4239
+ body: { channel, ...(options ?? {}) },
4240
+ });
4241
+ },
4242
+ /** Create or reuse a channel canvas and publish the Ravi showcase; dry-run unless --execute is set */
4243
+ canvasChannelShowcase: async (channel, options) => {
4244
+ return this.transport.call({
4245
+ groupSegments: ["slack"],
4246
+ command: "canvas-channel-showcase",
4247
+ body: { channel, ...(options ?? {}) },
4248
+ });
4249
+ },
4250
+ /** Create a Slack standalone canvas; dry-run unless --execute is set */
4251
+ canvasCreate: async (options) => {
4252
+ return this.transport.call({
4253
+ groupSegments: ["slack"],
4254
+ command: "canvas-create",
4255
+ body: { ...(options ?? {}) },
4256
+ });
4257
+ },
4258
+ /** Delete a Slack standalone canvas; dry-run unless --execute is set */
4259
+ canvasDelete: async (canvas, options) => {
4260
+ return this.transport.call({
4261
+ groupSegments: ["slack"],
4262
+ command: "canvas-delete",
4263
+ body: { canvas, ...(options ?? {}) },
4264
+ });
4265
+ },
4266
+ /** Edit a Slack canvas section or title; dry-run unless --execute is set */
4267
+ canvasEdit: async (canvas, operation, options) => {
4268
+ return this.transport.call({
4269
+ groupSegments: ["slack"],
4270
+ command: "canvas-edit",
4271
+ body: { canvas, operation, ...(options ?? {}) },
4272
+ });
4273
+ },
4274
+ /** Lookup Slack canvas section IDs */
4275
+ canvasSectionsLookup: async (canvas, options) => {
4276
+ return this.transport.call({
4277
+ groupSegments: ["slack"],
4278
+ command: "canvas-sections-lookup",
4279
+ body: { canvas, ...(options ?? {}) },
3577
4280
  });
3578
4281
  },
3579
- /** Make a session ephemeral with a TTL */
3580
- setTtl: async (nameOrKey, duration) => {
4282
+ /** Publish the Ravi Slack Canvas showcase into an existing canvas; dry-run unless --execute is set */
4283
+ canvasShowcase: async (canvas, options) => {
3581
4284
  return this.transport.call({
3582
- groupSegments: ["sessions"],
3583
- command: "set-ttl",
3584
- body: { nameOrKey, duration },
4285
+ groupSegments: ["slack"],
4286
+ command: "canvas-showcase",
4287
+ body: { canvas, ...(options ?? {}) },
3585
4288
  });
3586
4289
  },
3587
- /** List chats attached to a session */
3588
- subscriptions: async (nameOrKey) => {
4290
+ /** Create a Slack channel; dry-run unless --execute is set */
4291
+ channelsCreate: async (name, options) => {
3589
4292
  return this.transport.call({
3590
- groupSegments: ["sessions"],
3591
- command: "subscriptions",
3592
- body: { nameOrKey },
4293
+ groupSegments: ["slack"],
4294
+ command: "channels-create",
4295
+ body: { name, ...(options ?? {}) },
3593
4296
  });
3594
4297
  },
3595
- /** Read the SQLite session trace timeline */
3596
- trace: async (nameOrKey, options) => {
4298
+ /** Read Slack conversation history */
4299
+ channelsHistory: async (channel, options) => {
3597
4300
  return this.transport.call({
3598
- groupSegments: ["sessions"],
3599
- command: "trace",
3600
- body: { nameOrKey, ...(options ?? {}) },
4301
+ groupSegments: ["slack"],
4302
+ command: "channels-history",
4303
+ body: { channel, ...(options ?? {}) },
3601
4304
  });
3602
4305
  },
3603
- /** Allow a subscribed chat to receive session responses */
3604
- unmute: async (nameOrKey, options) => {
4306
+ /** Show Slack conversation metadata */
4307
+ channelsInfo: async (channel) => {
3605
4308
  return this.transport.call({
3606
- groupSegments: ["sessions"],
3607
- command: "unmute",
3608
- body: { nameOrKey, ...(options ?? {}) },
4309
+ groupSegments: ["slack"],
4310
+ command: "channels-info",
4311
+ body: { channel },
3609
4312
  });
3610
4313
  },
3611
- /** Show runtime session visibility state */
3612
- visibility: async (nameOrKey) => {
4314
+ /** Invite Slack users to a channel; dry-run unless --execute is set */
4315
+ channelsInvite: async (channel, users, options) => {
3613
4316
  return this.transport.call({
3614
- groupSegments: ["sessions"],
3615
- command: "visibility",
3616
- body: { nameOrKey },
4317
+ groupSegments: ["slack"],
4318
+ command: "channels-invite",
4319
+ body: { channel, users, ...(options ?? {}) },
3617
4320
  });
3618
- }
3619
- };
3620
- settings = {
3621
- /** Delete a setting */
3622
- delete: async (key) => {
4321
+ },
4322
+ /** List Slack conversations visible to the configured bot */
4323
+ channelsList: async (options) => {
3623
4324
  return this.transport.call({
3624
- groupSegments: ["settings"],
3625
- command: "delete",
3626
- body: { key },
4325
+ groupSegments: ["slack"],
4326
+ command: "channels-list",
4327
+ body: { ...(options ?? {}) },
3627
4328
  });
3628
4329
  },
3629
- /** Get a setting value */
3630
- get: async (key) => {
4330
+ /** Rename a Slack channel; dry-run unless --execute is set */
4331
+ channelsRename: async (channel, name, options) => {
3631
4332
  return this.transport.call({
3632
- groupSegments: ["settings"],
3633
- command: "get",
3634
- body: { key },
4333
+ groupSegments: ["slack"],
4334
+ command: "channels-rename",
4335
+ body: { channel, name, ...(options ?? {}) },
3635
4336
  });
3636
4337
  },
3637
- /** List live settings (legacy account.* hidden by default) */
3638
- list: async (options) => {
4338
+ /** List Slack files visible to the configured bot */
4339
+ filesList: async (options) => {
3639
4340
  return this.transport.call({
3640
- groupSegments: ["settings"],
3641
- command: "list",
4341
+ groupSegments: ["slack"],
4342
+ command: "files-list",
3642
4343
  body: { ...(options ?? {}) },
3643
4344
  });
3644
4345
  },
3645
- /** Set a setting value */
3646
- set: async (key, value) => {
4346
+ /** Respond to a Slack interaction response handle; dry-run unless --execute is set */
4347
+ interactionsRespond: async (responseUrlId, file, options) => {
3647
4348
  return this.transport.call({
3648
- groupSegments: ["settings"],
3649
- command: "set",
3650
- body: { key, value },
4349
+ groupSegments: ["slack"],
4350
+ command: "interactions-respond",
4351
+ body: { responseUrlId, file, ...(options ?? {}) },
3651
4352
  });
3652
- }
3653
- };
3654
- skillGates = {
3655
- /** Disable a skill gate rule */
3656
- disable: async (id) => {
4353
+ },
4354
+ /** List Slack conversation members */
4355
+ membersList: async (channel, options) => {
3657
4356
  return this.transport.call({
3658
- groupSegments: ["skill-gates"],
3659
- command: "disable",
3660
- body: { id },
4357
+ groupSegments: ["slack"],
4358
+ command: "members-list",
4359
+ body: { channel, ...(options ?? {}) },
3661
4360
  });
3662
4361
  },
3663
- /** Enable a configured skill gate rule */
3664
- enable: async (id) => {
4362
+ /** Inspect whether a Slack message exists in Slack and Ravi */
4363
+ messagesInspect: async (channel, ts) => {
3665
4364
  return this.transport.call({
3666
- groupSegments: ["skill-gates"],
3667
- command: "enable",
3668
- body: { id },
4365
+ groupSegments: ["slack"],
4366
+ command: "messages-inspect",
4367
+ body: { channel, ts },
3669
4368
  });
3670
4369
  },
3671
- /** List skill gate rules */
3672
- list: async (options) => {
4370
+ /** Replay a Slack message through the native Ravi channel pipeline */
4371
+ messagesReplay: async (channel, ts, options) => {
3673
4372
  return this.transport.call({
3674
- groupSegments: ["skill-gates"],
3675
- command: "list",
3676
- body: { ...(options ?? {}) },
4373
+ groupSegments: ["slack"],
4374
+ command: "messages-replay",
4375
+ body: { channel, ts, ...(options ?? {}) },
3677
4376
  });
3678
4377
  },
3679
- /** Delete a configured override and restore the default behavior */
3680
- reset: async (id) => {
4378
+ /** Send a Slack message; dry-run unless --execute is set */
4379
+ messagesSend: async (channel, text, options) => {
3681
4380
  return this.transport.call({
3682
- groupSegments: ["skill-gates"],
3683
- command: "reset",
3684
- body: { id },
4381
+ groupSegments: ["slack"],
4382
+ command: "messages-send",
4383
+ body: { channel, text, ...(options ?? {}) },
3685
4384
  });
3686
4385
  },
3687
- /** Remove a custom gate or disable a default gate */
3688
- rm: async (id) => {
4386
+ /** Open a Slack modal from an interaction trigger_id; dry-run unless --execute is set */
4387
+ modalsOpen: async (triggerId, file, options) => {
3689
4388
  return this.transport.call({
3690
- groupSegments: ["skill-gates"],
3691
- command: "rm",
3692
- body: { id },
4389
+ groupSegments: ["slack"],
4390
+ command: "modals-open",
4391
+ body: { triggerId, file, ...(options ?? {}) },
3693
4392
  });
3694
4393
  },
3695
- /** Create or overwrite a skill gate rule */
3696
- set: async (id, skill, options) => {
4394
+ /** Push a Slack modal view onto an existing modal stack; dry-run unless --execute is set */
4395
+ modalsPush: async (triggerId, file, options) => {
3697
4396
  return this.transport.call({
3698
- groupSegments: ["skill-gates"],
3699
- command: "set",
3700
- body: { id, skill, ...(options ?? {}) },
4397
+ groupSegments: ["slack"],
4398
+ command: "modals-push",
4399
+ body: { triggerId, file, ...(options ?? {}) },
3701
4400
  });
3702
4401
  },
3703
- /** Show one skill gate rule */
3704
- show: async (id) => {
4402
+ /** Update a Slack modal view; dry-run unless --execute is set */
4403
+ modalsUpdate: async (view, file, options) => {
3705
4404
  return this.transport.call({
3706
- groupSegments: ["skill-gates"],
3707
- command: "show",
3708
- body: { id },
4405
+ groupSegments: ["slack"],
4406
+ command: "modals-update",
4407
+ body: { view, file, ...(options ?? {}) },
3709
4408
  });
3710
- }
3711
- };
3712
- skills = {
3713
- /** Install Ravi catalog skills or skills from an explicit source */
3714
- install: async (name, options) => {
4409
+ },
4410
+ /** List OAuth scopes granted to the configured Slack bot token */
4411
+ permissionsList: async (options) => {
3715
4412
  return this.transport.call({
3716
- groupSegments: ["skills"],
3717
- command: "install",
3718
- body: { name, ...(options ?? {}) },
4413
+ groupSegments: ["slack"],
4414
+ command: "permissions-list",
4415
+ body: { ...(options ?? {}) },
3719
4416
  });
3720
4417
  },
3721
- /** List Ravi catalog skills, installed skills or source skills */
3722
- list: async (options) => {
4418
+ /** Show Slack channels and Ravi route/session ownership */
4419
+ topology: async (options) => {
3723
4420
  return this.transport.call({
3724
- groupSegments: ["skills"],
3725
- command: "list",
4421
+ groupSegments: ["slack"],
4422
+ command: "topology",
3726
4423
  body: { ...(options ?? {}) },
3727
4424
  });
3728
4425
  },
3729
- /** Show a Ravi catalog skill, installed skill or source skill */
3730
- show: async (name, options) => {
4426
+ /** Present Slack native Work Object flexpane details; dry-run unless --execute is set */
4427
+ workObjectsPresentDetails: async (triggerId, file, options) => {
3731
4428
  return this.transport.call({
3732
- groupSegments: ["skills"],
3733
- command: "show",
3734
- body: { name, ...(options ?? {}) },
4429
+ groupSegments: ["slack"],
4430
+ command: "work-objects-present-details",
4431
+ body: { triggerId, file, ...(options ?? {}) },
3735
4432
  });
3736
4433
  },
3737
- /** Sync Ravi plugin skills into the Codex skills directory */
3738
- sync: async () => {
4434
+ /** Send Slack native Work Object metadata with chat.postMessage; dry-run unless --execute is set */
4435
+ workObjectsSend: async (channel, file, options) => {
3739
4436
  return this.transport.call({
3740
- groupSegments: ["skills"],
3741
- command: "sync",
3742
- body: {},
4437
+ groupSegments: ["slack"],
4438
+ command: "work-objects-send",
4439
+ body: { channel, file, ...(options ?? {}) },
4440
+ });
4441
+ },
4442
+ /** Attach Slack native Work Object metadata with chat.unfurl; dry-run unless --execute is set */
4443
+ workObjectsUnfurl: async (channel, ts, url, file, options) => {
4444
+ return this.transport.call({
4445
+ groupSegments: ["slack"],
4446
+ command: "work-objects-unfurl",
4447
+ body: { channel, ts, url, file, ...(options ?? {}) },
4448
+ });
4449
+ },
4450
+ /** Validate Slack native Work Object metadata JSON */
4451
+ workObjectsValidate: async (file, options) => {
4452
+ return this.transport.call({
4453
+ groupSegments: ["slack"],
4454
+ command: "work-objects-validate",
4455
+ body: { file, ...(options ?? {}) },
3743
4456
  });
3744
4457
  }
3745
4458
  };
@@ -4252,6 +4965,14 @@ export class RaviClient {
4252
4965
  }
4253
4966
  };
4254
4967
  tools = {
4968
+ /** Execute a tool handler (real execution with full authorization) */
4969
+ invoke: async (name, args) => {
4970
+ return this.transport.call({
4971
+ groupSegments: ["tools"],
4972
+ command: "invoke",
4973
+ body: { name, args },
4974
+ });
4975
+ },
4255
4976
  /** List all available CLI tools */
4256
4977
  list: async (options) => {
4257
4978
  return this.transport.call({
@@ -4276,6 +4997,14 @@ export class RaviClient {
4276
4997
  body: {},
4277
4998
  });
4278
4999
  },
5000
+ /** Search tools by intent, name, description, or metadata */
5001
+ search: async (query, options) => {
5002
+ return this.transport.call({
5003
+ groupSegments: ["tools"],
5004
+ command: "search",
5005
+ body: { query, ...(options ?? {}) },
5006
+ });
5007
+ },
4279
5008
  /** Show details for a specific tool */
4280
5009
  show: async (name) => {
4281
5010
  return this.transport.call({
@@ -4284,7 +5013,7 @@ export class RaviClient {
4284
5013
  body: { name },
4285
5014
  });
4286
5015
  },
4287
- /** Test a tool execution */
5016
+ /** Dry-run plan for a tool (does not execute the handler) */
4288
5017
  test: async (name, args) => {
4289
5018
  return this.transport.call({
4290
5019
  groupSegments: ["tools"],
@@ -4611,6 +5340,40 @@ export class RaviClient {
4611
5340
  }
4612
5341
  }
4613
5342
  };
5343
+ workObjects = {
5344
+ /** Execute one Work Object action */
5345
+ action: async (type, id, actionId, options) => {
5346
+ return this.transport.call({
5347
+ groupSegments: ["work-objects"],
5348
+ command: "action",
5349
+ body: { type, id, actionId, ...(options ?? {}) },
5350
+ });
5351
+ },
5352
+ /** Resolve a Work Object by URL or external reference */
5353
+ resolve: async (target, options) => {
5354
+ return this.transport.call({
5355
+ groupSegments: ["work-objects"],
5356
+ command: "resolve",
5357
+ body: { target, ...(options ?? {}) },
5358
+ });
5359
+ },
5360
+ /** Suggest selectable options for a Work Object field */
5361
+ suggest: async (type, id, fieldId, options) => {
5362
+ return this.transport.call({
5363
+ groupSegments: ["work-objects"],
5364
+ command: "suggest",
5365
+ body: { type, id, fieldId, ...(options ?? {}) },
5366
+ });
5367
+ },
5368
+ /** Apply a structured patch to a Work Object */
5369
+ update: async (type, id, options) => {
5370
+ return this.transport.call({
5371
+ groupSegments: ["work-objects"],
5372
+ command: "update",
5373
+ body: { type, id, ...(options ?? {}) },
5374
+ });
5375
+ }
5376
+ };
4614
5377
  workflows = {
4615
5378
  runs: {
4616
5379
  /** Archive one node run from workflow aggregate state */
@@ -4713,5 +5476,231 @@ export class RaviClient {
4713
5476
  }
4714
5477
  }
4715
5478
  };
5479
+ yt = {
5480
+ /** Break down recent views and watch time by country */
5481
+ analyticsCountries: async (options) => {
5482
+ return this.transport.call({
5483
+ groupSegments: ["yt"],
5484
+ command: "analytics-countries",
5485
+ body: { ...(options ?? {}) },
5486
+ });
5487
+ },
5488
+ /** Break down viewer percentage by age group and gender */
5489
+ analyticsDemographics: async (options) => {
5490
+ return this.transport.call({
5491
+ groupSegments: ["yt"],
5492
+ command: "analytics-demographics",
5493
+ body: { ...(options ?? {}) },
5494
+ });
5495
+ },
5496
+ /** Break down recent views and watch time by device type */
5497
+ analyticsDevices: async (options) => {
5498
+ return this.transport.call({
5499
+ groupSegments: ["yt"],
5500
+ command: "analytics-devices",
5501
+ body: { ...(options ?? {}) },
5502
+ });
5503
+ },
5504
+ /** Return aggregate channel engagement metrics for a recent period */
5505
+ analyticsOverview: async (options) => {
5506
+ return this.transport.call({
5507
+ groupSegments: ["yt"],
5508
+ command: "analytics-overview",
5509
+ body: { ...(options ?? {}) },
5510
+ });
5511
+ },
5512
+ /** Return a daily time series for one approved YouTube Analytics metric */
5513
+ analyticsSeries: async (options) => {
5514
+ return this.transport.call({
5515
+ groupSegments: ["yt"],
5516
+ command: "analytics-series",
5517
+ body: { ...(options ?? {}) },
5518
+ });
5519
+ },
5520
+ /** Rank channel videos by views for a recent period */
5521
+ analyticsTop: async (options) => {
5522
+ return this.transport.call({
5523
+ groupSegments: ["yt"],
5524
+ command: "analytics-top",
5525
+ body: { ...(options ?? {}) },
5526
+ });
5527
+ },
5528
+ /** Break down recent views and watch time by traffic-source type */
5529
+ analyticsTraffic: async (options) => {
5530
+ return this.transport.call({
5531
+ groupSegments: ["yt"],
5532
+ command: "analytics-traffic",
5533
+ body: { ...(options ?? {}) },
5534
+ });
5535
+ },
5536
+ /** Download one caption track as text */
5537
+ captionDownload: async (captionId, options) => {
5538
+ return this.transport.call({
5539
+ groupSegments: ["yt"],
5540
+ command: "caption-download",
5541
+ body: { captionId, ...(options ?? {}) },
5542
+ });
5543
+ },
5544
+ /** List caption tracks for one video */
5545
+ captions: async (videoId, options) => {
5546
+ return this.transport.call({
5547
+ groupSegments: ["yt"],
5548
+ command: "captions",
5549
+ body: { videoId, ...(options ?? {}) },
5550
+ });
5551
+ },
5552
+ /** List top-level comment threads for a video */
5553
+ comments: async (videoId, options) => {
5554
+ return this.transport.call({
5555
+ groupSegments: ["yt"],
5556
+ command: "comments",
5557
+ body: { videoId, ...(options ?? {}) },
5558
+ });
5559
+ },
5560
+ /** Inspect YouTube credential metadata without resolving a secret or calling Google */
5561
+ health: async (options) => {
5562
+ return this.transport.call({
5563
+ groupSegments: ["yt"],
5564
+ command: "health",
5565
+ body: { ...(options ?? {}) },
5566
+ });
5567
+ },
5568
+ /** Return metadata and lifetime counters for the authenticated channel */
5569
+ info: async (options) => {
5570
+ return this.transport.call({
5571
+ groupSegments: ["yt"],
5572
+ command: "info",
5573
+ body: { ...(options ?? {}) },
5574
+ });
5575
+ },
5576
+ /** List videos and playlist-item IDs from one playlist */
5577
+ playlist: async (playlistId, options) => {
5578
+ return this.transport.call({
5579
+ groupSegments: ["yt"],
5580
+ command: "playlist",
5581
+ body: { playlistId, ...(options ?? {}) },
5582
+ });
5583
+ },
5584
+ /** Add one video to a YouTube playlist */
5585
+ playlistAdd: async (playlistId, videoId, options) => {
5586
+ return this.transport.call({
5587
+ groupSegments: ["yt"],
5588
+ command: "playlist-add",
5589
+ body: { playlistId, videoId, ...(options ?? {}) },
5590
+ });
5591
+ },
5592
+ /** Create a YouTube playlist */
5593
+ playlistCreate: async (title, options) => {
5594
+ return this.transport.call({
5595
+ groupSegments: ["yt"],
5596
+ command: "playlist-create",
5597
+ body: { title, ...(options ?? {}) },
5598
+ });
5599
+ },
5600
+ /** Permanently delete a YouTube playlist without deleting its videos */
5601
+ playlistDelete: async (playlistId, options) => {
5602
+ return this.transport.call({
5603
+ groupSegments: ["yt"],
5604
+ command: "playlist-delete",
5605
+ body: { playlistId, ...(options ?? {}) },
5606
+ });
5607
+ },
5608
+ /** Remove one playlist item without deleting the video */
5609
+ playlistRemove: async (playlistItemId, options) => {
5610
+ return this.transport.call({
5611
+ groupSegments: ["yt"],
5612
+ command: "playlist-remove",
5613
+ body: { playlistItemId, ...(options ?? {}) },
5614
+ });
5615
+ },
5616
+ /** List playlists owned by the authenticated channel */
5617
+ playlists: async (options) => {
5618
+ return this.transport.call({
5619
+ groupSegments: ["yt"],
5620
+ command: "playlists",
5621
+ body: { ...(options ?? {}) },
5622
+ });
5623
+ },
5624
+ /** Publish a reply to a top-level YouTube comment */
5625
+ reply: async (commentId, text, options) => {
5626
+ return this.transport.call({
5627
+ groupSegments: ["yt"],
5628
+ command: "reply",
5629
+ body: { commentId, text, ...(options ?? {}) },
5630
+ });
5631
+ },
5632
+ /** Search videos in the authenticated channel */
5633
+ search: async (query, options) => {
5634
+ return this.transport.call({
5635
+ groupSegments: ["yt"],
5636
+ command: "search",
5637
+ body: { query, ...(options ?? {}) },
5638
+ });
5639
+ },
5640
+ /** Calculate lifetime video counters, age and average views per day */
5641
+ stats: async (id, options) => {
5642
+ return this.transport.call({
5643
+ groupSegments: ["yt"],
5644
+ command: "stats",
5645
+ body: { id, ...(options ?? {}) },
5646
+ });
5647
+ },
5648
+ /** List channels followed by the authenticated channel */
5649
+ subscriptions: async (options) => {
5650
+ return this.transport.call({
5651
+ groupSegments: ["yt"],
5652
+ command: "subscriptions",
5653
+ body: { ...(options ?? {}) },
5654
+ });
5655
+ },
5656
+ /** List recent comment threads with zero replies */
5657
+ unanswered: async (videoId, options) => {
5658
+ return this.transport.call({
5659
+ groupSegments: ["yt"],
5660
+ command: "unanswered",
5661
+ body: { videoId, ...(options ?? {}) },
5662
+ });
5663
+ },
5664
+ /** Get one video by YouTube video ID */
5665
+ video: async (id, options) => {
5666
+ return this.transport.call({
5667
+ groupSegments: ["yt"],
5668
+ command: "video",
5669
+ body: { id, ...(options ?? {}) },
5670
+ });
5671
+ },
5672
+ /** List assignable YouTube video categories for a region */
5673
+ videoCategories: async (options) => {
5674
+ return this.transport.call({
5675
+ groupSegments: ["yt"],
5676
+ command: "video-categories",
5677
+ body: { ...(options ?? {}) },
5678
+ });
5679
+ },
5680
+ /** Permanently delete an owned YouTube video */
5681
+ videoDelete: async (id, options) => {
5682
+ return this.transport.call({
5683
+ groupSegments: ["yt"],
5684
+ command: "video-delete",
5685
+ body: { id, ...(options ?? {}) },
5686
+ });
5687
+ },
5688
+ /** Update selected metadata on an owned YouTube video */
5689
+ videoUpdate: async (id, options) => {
5690
+ return this.transport.call({
5691
+ groupSegments: ["yt"],
5692
+ command: "video-update",
5693
+ body: { id, ...(options ?? {}) },
5694
+ });
5695
+ },
5696
+ /** List videos from the authenticated channel uploads playlist */
5697
+ videos: async (options) => {
5698
+ return this.transport.call({
5699
+ groupSegments: ["yt"],
5700
+ command: "videos",
5701
+ body: { ...(options ?? {}) },
5702
+ });
5703
+ }
5704
+ };
4716
5705
  }
4717
5706
  //# sourceMappingURL=client.js.map