@ravi-os/sdk 0.260915.1 → 0.261009.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.d.ts +432 -9
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +420 -12
- package/dist/client.js.map +1 -1
- package/dist/fetch.d.ts +14 -0
- package/dist/fetch.d.ts.map +1 -0
- package/dist/fetch.js +20 -0
- package/dist/fetch.js.map +1 -0
- package/dist/schemas.d.ts +20699 -10197
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +14935 -1689
- package/dist/schemas.js.map +1 -1
- package/dist/streaming.generated.d.ts.map +1 -1
- package/dist/streaming.generated.js +2 -4
- package/dist/streaming.generated.js.map +1 -1
- package/dist/transport/http.d.ts.map +1 -1
- package/dist/transport/http.js +2 -4
- package/dist/transport/http.js.map +1 -1
- package/dist/types.d.ts +2651 -109
- package/dist/types.d.ts.map +1 -1
- package/dist/version.d.ts +2 -2
- package/dist/version.js +2 -2
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -105,12 +105,12 @@ export class RaviClient {
|
|
|
105
105
|
body: { id },
|
|
106
106
|
});
|
|
107
107
|
},
|
|
108
|
-
/** Set agent property
|
|
109
|
-
set: async (id, key, value) => {
|
|
108
|
+
/** Set agent property; rematerialize no-override sessions when provider/model changes */
|
|
109
|
+
set: async (id, key, value, options) => {
|
|
110
110
|
return this.transport.call({
|
|
111
111
|
groupSegments: ["agents"],
|
|
112
112
|
command: "set",
|
|
113
|
-
body: { id, key, value },
|
|
113
|
+
body: { id, key, value, ...(options ?? {}) },
|
|
114
114
|
});
|
|
115
115
|
},
|
|
116
116
|
/** Show agent details */
|
|
@@ -380,6 +380,312 @@ export class RaviClient {
|
|
|
380
380
|
});
|
|
381
381
|
}
|
|
382
382
|
};
|
|
383
|
+
bases = {
|
|
384
|
+
/** Group and aggregate rows on the server (direct readers) */
|
|
385
|
+
aggregate: async (base, options) => {
|
|
386
|
+
return this.transport.call({
|
|
387
|
+
groupSegments: ["bases"],
|
|
388
|
+
command: "aggregate",
|
|
389
|
+
body: { base, ...(options ?? {}) },
|
|
390
|
+
});
|
|
391
|
+
},
|
|
392
|
+
/** Archive a base (read-only, hidden from lists) */
|
|
393
|
+
archive: async (base, options) => {
|
|
394
|
+
return this.transport.call({
|
|
395
|
+
groupSegments: ["bases"],
|
|
396
|
+
command: "archive",
|
|
397
|
+
body: { base, ...(options ?? {}) },
|
|
398
|
+
});
|
|
399
|
+
},
|
|
400
|
+
charts: {
|
|
401
|
+
/** Archive a chart */
|
|
402
|
+
archive: async (base, chart, options) => {
|
|
403
|
+
return this.transport.call({
|
|
404
|
+
groupSegments: ["bases", "charts"],
|
|
405
|
+
command: "archive",
|
|
406
|
+
body: { base, chart, ...(options ?? {}) },
|
|
407
|
+
});
|
|
408
|
+
},
|
|
409
|
+
/** Create a chart on a view from a Vega-Lite subset spec */
|
|
410
|
+
create: async (base, options) => {
|
|
411
|
+
return this.transport.call({
|
|
412
|
+
groupSegments: ["bases", "charts"],
|
|
413
|
+
command: "create",
|
|
414
|
+
body: { base, ...(options ?? {}) },
|
|
415
|
+
});
|
|
416
|
+
},
|
|
417
|
+
/** Fetch the aggregated data of a chart */
|
|
418
|
+
data: async (base, chart, options) => {
|
|
419
|
+
return this.transport.call({
|
|
420
|
+
groupSegments: ["bases", "charts"],
|
|
421
|
+
command: "data",
|
|
422
|
+
body: { base, chart, ...(options ?? {}) },
|
|
423
|
+
});
|
|
424
|
+
},
|
|
425
|
+
/** List the charts you can read on a base */
|
|
426
|
+
list: async (base, options) => {
|
|
427
|
+
return this.transport.call({
|
|
428
|
+
groupSegments: ["bases", "charts"],
|
|
429
|
+
command: "list",
|
|
430
|
+
body: { base, ...(options ?? {}) },
|
|
431
|
+
});
|
|
432
|
+
},
|
|
433
|
+
/** Show a chart spec */
|
|
434
|
+
show: async (base, chart, options) => {
|
|
435
|
+
return this.transport.call({
|
|
436
|
+
groupSegments: ["bases", "charts"],
|
|
437
|
+
command: "show",
|
|
438
|
+
body: { base, chart, ...(options ?? {}) },
|
|
439
|
+
});
|
|
440
|
+
},
|
|
441
|
+
/** Update a chart from a partial JSON spec */
|
|
442
|
+
update: async (base, chart, options) => {
|
|
443
|
+
return this.transport.call({
|
|
444
|
+
groupSegments: ["bases", "charts"],
|
|
445
|
+
command: "update",
|
|
446
|
+
body: { base, chart, ...(options ?? {}) },
|
|
447
|
+
});
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
/** Create a base, optionally with an initial schema */
|
|
451
|
+
create: async (name, options) => {
|
|
452
|
+
return this.transport.call({
|
|
453
|
+
groupSegments: ["bases"],
|
|
454
|
+
command: "create",
|
|
455
|
+
body: { name, ...(options ?? {}) },
|
|
456
|
+
});
|
|
457
|
+
},
|
|
458
|
+
/** List the bases of a Console project */
|
|
459
|
+
list: async (options) => {
|
|
460
|
+
return this.transport.call({
|
|
461
|
+
groupSegments: ["bases"],
|
|
462
|
+
command: "list",
|
|
463
|
+
body: { ...(options ?? {}) },
|
|
464
|
+
});
|
|
465
|
+
},
|
|
466
|
+
props: {
|
|
467
|
+
/** Add a property to a base */
|
|
468
|
+
add: async (base, name, options) => {
|
|
469
|
+
return this.transport.call({
|
|
470
|
+
groupSegments: ["bases", "props"],
|
|
471
|
+
command: "add",
|
|
472
|
+
body: { base, name, ...(options ?? {}) },
|
|
473
|
+
});
|
|
474
|
+
},
|
|
475
|
+
/** Soft-delete a property; reports dependents unless --execute */
|
|
476
|
+
delete: async (base, prop, options) => {
|
|
477
|
+
return this.transport.call({
|
|
478
|
+
groupSegments: ["bases", "props"],
|
|
479
|
+
command: "delete",
|
|
480
|
+
body: { base, prop, ...(options ?? {}) },
|
|
481
|
+
});
|
|
482
|
+
},
|
|
483
|
+
/** List the properties of a base */
|
|
484
|
+
list: async (base, options) => {
|
|
485
|
+
return this.transport.call({
|
|
486
|
+
groupSegments: ["bases", "props"],
|
|
487
|
+
command: "list",
|
|
488
|
+
body: { base, ...(options ?? {}) },
|
|
489
|
+
});
|
|
490
|
+
},
|
|
491
|
+
/** Restore a soft-deleted property while its key is free */
|
|
492
|
+
restore: async (base, prop, options) => {
|
|
493
|
+
return this.transport.call({
|
|
494
|
+
groupSegments: ["bases", "props"],
|
|
495
|
+
command: "restore",
|
|
496
|
+
body: { base, prop, ...(options ?? {}) },
|
|
497
|
+
});
|
|
498
|
+
},
|
|
499
|
+
/** Update a property; type changes are dry-run unless --execute */
|
|
500
|
+
update: async (base, prop, options) => {
|
|
501
|
+
return this.transport.call({
|
|
502
|
+
groupSegments: ["bases", "props"],
|
|
503
|
+
command: "update",
|
|
504
|
+
body: { base, prop, ...(options ?? {}) },
|
|
505
|
+
});
|
|
506
|
+
}
|
|
507
|
+
},
|
|
508
|
+
/** Restore an archived base */
|
|
509
|
+
restore: async (base, options) => {
|
|
510
|
+
return this.transport.call({
|
|
511
|
+
groupSegments: ["bases"],
|
|
512
|
+
command: "restore",
|
|
513
|
+
body: { base, ...(options ?? {}) },
|
|
514
|
+
});
|
|
515
|
+
},
|
|
516
|
+
rows: {
|
|
517
|
+
/** Create a row (directly or through a view) */
|
|
518
|
+
add: async (base, options) => {
|
|
519
|
+
return this.transport.call({
|
|
520
|
+
groupSegments: ["bases", "rows"],
|
|
521
|
+
command: "add",
|
|
522
|
+
body: { base, ...(options ?? {}) },
|
|
523
|
+
});
|
|
524
|
+
},
|
|
525
|
+
/** Archive a row (restorable) */
|
|
526
|
+
archive: async (base, row, options) => {
|
|
527
|
+
return this.transport.call({
|
|
528
|
+
groupSegments: ["bases", "rows"],
|
|
529
|
+
command: "archive",
|
|
530
|
+
body: { base, row, ...(options ?? {}) },
|
|
531
|
+
});
|
|
532
|
+
},
|
|
533
|
+
/** Export rows as CSV or JSON (follows every page) */
|
|
534
|
+
export: async (base, options) => {
|
|
535
|
+
return this.transport.call({
|
|
536
|
+
groupSegments: ["bases", "rows"],
|
|
537
|
+
command: "export",
|
|
538
|
+
body: { base, ...(options ?? {}) },
|
|
539
|
+
});
|
|
540
|
+
},
|
|
541
|
+
/** Read one row (with its body) */
|
|
542
|
+
get: async (base, row, options) => {
|
|
543
|
+
return this.transport.call({
|
|
544
|
+
groupSegments: ["bases", "rows"],
|
|
545
|
+
command: "get",
|
|
546
|
+
body: { base, row, ...(options ?? {}) },
|
|
547
|
+
});
|
|
548
|
+
},
|
|
549
|
+
/** Show the ledger of a row (who changed what, when) */
|
|
550
|
+
history: async (base, row, options) => {
|
|
551
|
+
return this.transport.call({
|
|
552
|
+
groupSegments: ["bases", "rows"],
|
|
553
|
+
command: "history",
|
|
554
|
+
body: { base, row, ...(options ?? {}) },
|
|
555
|
+
});
|
|
556
|
+
},
|
|
557
|
+
/** Import a CSV file as new rows in batches (dry-run unless --execute) */
|
|
558
|
+
import: async (base, file, options) => {
|
|
559
|
+
return this.transport.call({
|
|
560
|
+
groupSegments: ["bases", "rows"],
|
|
561
|
+
command: "import",
|
|
562
|
+
body: { base, file, ...(options ?? {}) },
|
|
563
|
+
});
|
|
564
|
+
},
|
|
565
|
+
/** Hard-delete a row and its history (irreversible) */
|
|
566
|
+
purge: async (base, row, options) => {
|
|
567
|
+
return this.transport.call({
|
|
568
|
+
groupSegments: ["bases", "rows"],
|
|
569
|
+
command: "purge",
|
|
570
|
+
body: { base, row, ...(options ?? {}) },
|
|
571
|
+
});
|
|
572
|
+
},
|
|
573
|
+
/** Query rows with the Query AST (directly or through a view) */
|
|
574
|
+
query: async (base, options) => {
|
|
575
|
+
return this.transport.call({
|
|
576
|
+
groupSegments: ["bases", "rows"],
|
|
577
|
+
command: "query",
|
|
578
|
+
body: { base, ...(options ?? {}) },
|
|
579
|
+
});
|
|
580
|
+
},
|
|
581
|
+
/** Restore an archived row (direct writers) */
|
|
582
|
+
restore: async (base, row, options) => {
|
|
583
|
+
return this.transport.call({
|
|
584
|
+
groupSegments: ["bases", "rows"],
|
|
585
|
+
command: "restore",
|
|
586
|
+
body: { base, row, ...(options ?? {}) },
|
|
587
|
+
});
|
|
588
|
+
},
|
|
589
|
+
/** Patch a row; needs --expected-version or --last-write-wins */
|
|
590
|
+
update: async (base, row, options) => {
|
|
591
|
+
return this.transport.call({
|
|
592
|
+
groupSegments: ["bases", "rows"],
|
|
593
|
+
command: "update",
|
|
594
|
+
body: { base, row, ...(options ?? {}) },
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
},
|
|
598
|
+
/** Show a base: schema, views, and charts */
|
|
599
|
+
show: async (base, options) => {
|
|
600
|
+
return this.transport.call({
|
|
601
|
+
groupSegments: ["bases"],
|
|
602
|
+
command: "show",
|
|
603
|
+
body: { base, ...(options ?? {}) },
|
|
604
|
+
});
|
|
605
|
+
},
|
|
606
|
+
/** Deliver this base's row events to this installation's inbox */
|
|
607
|
+
subscribe: async (base, options) => {
|
|
608
|
+
return this.transport.call({
|
|
609
|
+
groupSegments: ["bases"],
|
|
610
|
+
command: "subscribe",
|
|
611
|
+
body: { base, ...(options ?? {}) },
|
|
612
|
+
});
|
|
613
|
+
},
|
|
614
|
+
/** List row-event subscriptions of a base */
|
|
615
|
+
subscriptions: async (base, options) => {
|
|
616
|
+
return this.transport.call({
|
|
617
|
+
groupSegments: ["bases"],
|
|
618
|
+
command: "subscriptions",
|
|
619
|
+
body: { base, ...(options ?? {}) },
|
|
620
|
+
});
|
|
621
|
+
},
|
|
622
|
+
/** Stop delivering this base's row events to an installation */
|
|
623
|
+
unsubscribe: async (base, subscription, options) => {
|
|
624
|
+
return this.transport.call({
|
|
625
|
+
groupSegments: ["bases"],
|
|
626
|
+
command: "unsubscribe",
|
|
627
|
+
body: { base, subscription, ...(options ?? {}) },
|
|
628
|
+
});
|
|
629
|
+
},
|
|
630
|
+
/** Update base metadata (name, slug, description, icon, timezone) */
|
|
631
|
+
update: async (base, options) => {
|
|
632
|
+
return this.transport.call({
|
|
633
|
+
groupSegments: ["bases"],
|
|
634
|
+
command: "update",
|
|
635
|
+
body: { base, ...(options ?? {}) },
|
|
636
|
+
});
|
|
637
|
+
},
|
|
638
|
+
views: {
|
|
639
|
+
/** Archive a view (Pages and charts using it stop working) */
|
|
640
|
+
archive: async (base, view, options) => {
|
|
641
|
+
return this.transport.call({
|
|
642
|
+
groupSegments: ["bases", "views"],
|
|
643
|
+
command: "archive",
|
|
644
|
+
body: { base, view, ...(options ?? {}) },
|
|
645
|
+
});
|
|
646
|
+
},
|
|
647
|
+
/** Create a view from a JSON spec (columns, query, layout, access) */
|
|
648
|
+
create: async (base, options) => {
|
|
649
|
+
return this.transport.call({
|
|
650
|
+
groupSegments: ["bases", "views"],
|
|
651
|
+
command: "create",
|
|
652
|
+
body: { base, ...(options ?? {}) },
|
|
653
|
+
});
|
|
654
|
+
},
|
|
655
|
+
/** List the views you can use on a base */
|
|
656
|
+
list: async (base, options) => {
|
|
657
|
+
return this.transport.call({
|
|
658
|
+
groupSegments: ["bases", "views"],
|
|
659
|
+
command: "list",
|
|
660
|
+
body: { base, ...(options ?? {}) },
|
|
661
|
+
});
|
|
662
|
+
},
|
|
663
|
+
/** Query rows through a view (its filter and columns apply) */
|
|
664
|
+
query: async (base, view, options) => {
|
|
665
|
+
return this.transport.call({
|
|
666
|
+
groupSegments: ["bases", "views"],
|
|
667
|
+
command: "query",
|
|
668
|
+
body: { base, view, ...(options ?? {}) },
|
|
669
|
+
});
|
|
670
|
+
},
|
|
671
|
+
/** Describe a view: columns, layout, your capabilities (and policy for managers) */
|
|
672
|
+
show: async (base, view, options) => {
|
|
673
|
+
return this.transport.call({
|
|
674
|
+
groupSegments: ["bases", "views"],
|
|
675
|
+
command: "show",
|
|
676
|
+
body: { base, view, ...(options ?? {}) },
|
|
677
|
+
});
|
|
678
|
+
},
|
|
679
|
+
/** Update a view from a partial JSON spec */
|
|
680
|
+
update: async (base, view, options) => {
|
|
681
|
+
return this.transport.call({
|
|
682
|
+
groupSegments: ["bases", "views"],
|
|
683
|
+
command: "update",
|
|
684
|
+
body: { base, view, ...(options ?? {}) },
|
|
685
|
+
});
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
};
|
|
383
689
|
bridges = {
|
|
384
690
|
/** Create a Ravi MCP bridge URL for a Console project */
|
|
385
691
|
create: async (options) => {
|
|
@@ -407,6 +713,14 @@ export class RaviClient {
|
|
|
407
713
|
}
|
|
408
714
|
};
|
|
409
715
|
bug = {
|
|
716
|
+
/** Append sanitized follow-up evidence or a comment to an existing Console bug report (dry-run by default; requires --execute) */
|
|
717
|
+
comment: async (id, options) => {
|
|
718
|
+
return this.transport.call({
|
|
719
|
+
groupSegments: ["bug"],
|
|
720
|
+
command: "comment",
|
|
721
|
+
body: { id, ...(options ?? {}) },
|
|
722
|
+
});
|
|
723
|
+
},
|
|
410
724
|
/** List your Console bug reports */
|
|
411
725
|
list: async (options) => {
|
|
412
726
|
return this.transport.call({
|
|
@@ -1136,11 +1450,11 @@ export class RaviClient {
|
|
|
1136
1450
|
});
|
|
1137
1451
|
},
|
|
1138
1452
|
/** Evaluate a Codex PreToolUse Bash hook payload from stdin using the current Ravi context */
|
|
1139
|
-
codexBashHook: async () => {
|
|
1453
|
+
codexBashHook: async (options) => {
|
|
1140
1454
|
return this.transport.call({
|
|
1141
1455
|
groupSegments: ["context"],
|
|
1142
1456
|
command: "codex-bash-hook",
|
|
1143
|
-
body: {},
|
|
1457
|
+
body: { ...(options ?? {}) },
|
|
1144
1458
|
});
|
|
1145
1459
|
},
|
|
1146
1460
|
credentials: {
|
|
@@ -2424,6 +2738,56 @@ export class RaviClient {
|
|
|
2424
2738
|
});
|
|
2425
2739
|
}
|
|
2426
2740
|
};
|
|
2741
|
+
jobs = {
|
|
2742
|
+
/** Stop a running job */
|
|
2743
|
+
kill: async (id) => {
|
|
2744
|
+
return this.transport.call({
|
|
2745
|
+
groupSegments: ["jobs"],
|
|
2746
|
+
command: "kill",
|
|
2747
|
+
body: { id },
|
|
2748
|
+
});
|
|
2749
|
+
},
|
|
2750
|
+
/** List jobs */
|
|
2751
|
+
list: async (options) => {
|
|
2752
|
+
return this.transport.call({
|
|
2753
|
+
groupSegments: ["jobs"],
|
|
2754
|
+
command: "list",
|
|
2755
|
+
body: { ...(options ?? {}) },
|
|
2756
|
+
});
|
|
2757
|
+
},
|
|
2758
|
+
/** Start a long command in the background and return immediately */
|
|
2759
|
+
run: async (command, options) => {
|
|
2760
|
+
return this.transport.call({
|
|
2761
|
+
groupSegments: ["jobs"],
|
|
2762
|
+
command: "run",
|
|
2763
|
+
body: { command, ...(options ?? {}) },
|
|
2764
|
+
});
|
|
2765
|
+
},
|
|
2766
|
+
/** Show one job */
|
|
2767
|
+
show: async (id) => {
|
|
2768
|
+
return this.transport.call({
|
|
2769
|
+
groupSegments: ["jobs"],
|
|
2770
|
+
command: "show",
|
|
2771
|
+
body: { id },
|
|
2772
|
+
});
|
|
2773
|
+
},
|
|
2774
|
+
/** Print the job log tail */
|
|
2775
|
+
tail: async (id, options) => {
|
|
2776
|
+
return this.transport.call({
|
|
2777
|
+
groupSegments: ["jobs"],
|
|
2778
|
+
command: "tail",
|
|
2779
|
+
body: { id, ...(options ?? {}) },
|
|
2780
|
+
});
|
|
2781
|
+
},
|
|
2782
|
+
/** Wait for a job to finish */
|
|
2783
|
+
wait: async (id, options) => {
|
|
2784
|
+
return this.transport.call({
|
|
2785
|
+
groupSegments: ["jobs"],
|
|
2786
|
+
command: "wait",
|
|
2787
|
+
body: { id, ...(options ?? {}) },
|
|
2788
|
+
});
|
|
2789
|
+
}
|
|
2790
|
+
};
|
|
2427
2791
|
mail = {
|
|
2428
2792
|
accounts: {
|
|
2429
2793
|
/** Create or update a local mail provider account */
|
|
@@ -2901,6 +3265,34 @@ export class RaviClient {
|
|
|
2901
3265
|
}
|
|
2902
3266
|
};
|
|
2903
3267
|
pages = {
|
|
3268
|
+
assertion: {
|
|
3269
|
+
audiences: {
|
|
3270
|
+
/** List viewer-assertion audiences registered on a Pages host */
|
|
3271
|
+
list: async (options) => {
|
|
3272
|
+
return this.transport.call({
|
|
3273
|
+
groupSegments: ["pages", "assertion", "audiences"],
|
|
3274
|
+
command: "list",
|
|
3275
|
+
body: { ...(options ?? {}) },
|
|
3276
|
+
});
|
|
3277
|
+
},
|
|
3278
|
+
/** Remove one viewer-assertion audience from a Pages host */
|
|
3279
|
+
remove: async (options) => {
|
|
3280
|
+
return this.transport.call({
|
|
3281
|
+
groupSegments: ["pages", "assertion", "audiences"],
|
|
3282
|
+
command: "remove",
|
|
3283
|
+
body: { ...(options ?? {}) },
|
|
3284
|
+
});
|
|
3285
|
+
},
|
|
3286
|
+
/** Replace the https origins of this Pages site that may receive a viewer assertion for one audience */
|
|
3287
|
+
set: async (options) => {
|
|
3288
|
+
return this.transport.call({
|
|
3289
|
+
groupSegments: ["pages", "assertion", "audiences"],
|
|
3290
|
+
command: "set",
|
|
3291
|
+
body: { ...(options ?? {}) },
|
|
3292
|
+
});
|
|
3293
|
+
}
|
|
3294
|
+
}
|
|
3295
|
+
},
|
|
2904
3296
|
/** Advanced/compat: host-only Pages record; does not upload HTML. Prefer pages ship to get a URL */
|
|
2905
3297
|
create: async (args, options) => {
|
|
2906
3298
|
return this.transport.call({
|
|
@@ -2959,7 +3351,7 @@ export class RaviClient {
|
|
|
2959
3351
|
body: { project, ...(options ?? {}) },
|
|
2960
3352
|
});
|
|
2961
3353
|
},
|
|
2962
|
-
/** One-shot:
|
|
3354
|
+
/** One-shot: publish a route on the project default Pages host */
|
|
2963
3355
|
ship: async (args, options) => {
|
|
2964
3356
|
return this.transport.call({
|
|
2965
3357
|
groupSegments: ["pages"],
|
|
@@ -2975,7 +3367,7 @@ export class RaviClient {
|
|
|
2975
3367
|
body: { args, ...(options ?? {}) },
|
|
2976
3368
|
});
|
|
2977
3369
|
},
|
|
2978
|
-
/** Set a Ravi Pages site default visibility */
|
|
3370
|
+
/** Set a Ravi Pages site default visibility, or one route with --route */
|
|
2979
3371
|
visibility: async (args, options) => {
|
|
2980
3372
|
return this.transport.call({
|
|
2981
3373
|
groupSegments: ["pages"],
|
|
@@ -3001,6 +3393,22 @@ export class RaviClient {
|
|
|
3001
3393
|
body: { ...(options ?? {}) },
|
|
3002
3394
|
});
|
|
3003
3395
|
},
|
|
3396
|
+
/** Plan or revoke a contact permission profile grant in a chat scope */
|
|
3397
|
+
deny: async (profile, options) => {
|
|
3398
|
+
return this.transport.call({
|
|
3399
|
+
groupSegments: ["permissions"],
|
|
3400
|
+
command: "deny",
|
|
3401
|
+
body: { profile, ...(options ?? {}) },
|
|
3402
|
+
});
|
|
3403
|
+
},
|
|
3404
|
+
/** List contact permission profile grants in a chat scope */
|
|
3405
|
+
list: async (options) => {
|
|
3406
|
+
return this.transport.call({
|
|
3407
|
+
groupSegments: ["permissions"],
|
|
3408
|
+
command: "list",
|
|
3409
|
+
body: { ...(options ?? {}) },
|
|
3410
|
+
});
|
|
3411
|
+
},
|
|
3004
3412
|
/** Materialize provider-runtime capabilities for a subject */
|
|
3005
3413
|
materialize: async (options) => {
|
|
3006
3414
|
return this.transport.call({
|
|
@@ -4178,19 +4586,19 @@ export class RaviClient {
|
|
|
4178
4586
|
});
|
|
4179
4587
|
},
|
|
4180
4588
|
/** Set session model override */
|
|
4181
|
-
setModel: async (nameOrKey, model) => {
|
|
4589
|
+
setModel: async (nameOrKey, model, options) => {
|
|
4182
4590
|
return this.transport.call({
|
|
4183
4591
|
groupSegments: ["sessions"],
|
|
4184
4592
|
command: "set-model",
|
|
4185
|
-
body: { nameOrKey, model },
|
|
4593
|
+
body: { nameOrKey, model, ...(options ?? {}) },
|
|
4186
4594
|
});
|
|
4187
4595
|
},
|
|
4188
4596
|
/** Set session runtime provider override */
|
|
4189
|
-
setProvider: async (nameOrKey, provider) => {
|
|
4597
|
+
setProvider: async (nameOrKey, provider, options) => {
|
|
4190
4598
|
return this.transport.call({
|
|
4191
4599
|
groupSegments: ["sessions"],
|
|
4192
4600
|
command: "set-provider",
|
|
4193
|
-
body: { nameOrKey, provider },
|
|
4601
|
+
body: { nameOrKey, provider, ...(options ?? {}) },
|
|
4194
4602
|
});
|
|
4195
4603
|
},
|
|
4196
4604
|
/** Set session thinking level */
|
|
@@ -4327,7 +4735,7 @@ export class RaviClient {
|
|
|
4327
4735
|
}
|
|
4328
4736
|
};
|
|
4329
4737
|
skills = {
|
|
4330
|
-
/** Grant a
|
|
4738
|
+
/** Grant a catalog or installed skill to an agent (per-agent visibility). Catalog skills need no install; use:skill:<name> capabilities work too. */
|
|
4331
4739
|
grant: async (agent, skill, options) => {
|
|
4332
4740
|
return this.transport.call({
|
|
4333
4741
|
groupSegments: ["skills"],
|