@ravi-os/sdk 0.260927.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.js CHANGED
@@ -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) => {
@@ -2959,6 +3265,34 @@ export class RaviClient {
2959
3265
  }
2960
3266
  };
2961
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
+ },
2962
3296
  /** Advanced/compat: host-only Pages record; does not upload HTML. Prefer pages ship to get a URL */
2963
3297
  create: async (args, options) => {
2964
3298
  return this.transport.call({
@@ -3017,7 +3351,7 @@ export class RaviClient {
3017
3351
  body: { project, ...(options ?? {}) },
3018
3352
  });
3019
3353
  },
3020
- /** One-shot: ensure a Pages host and publish HTML or a site directory */
3354
+ /** One-shot: publish a route on the project default Pages host */
3021
3355
  ship: async (args, options) => {
3022
3356
  return this.transport.call({
3023
3357
  groupSegments: ["pages"],
@@ -3059,6 +3393,22 @@ export class RaviClient {
3059
3393
  body: { ...(options ?? {}) },
3060
3394
  });
3061
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
+ },
3062
3412
  /** Materialize provider-runtime capabilities for a subject */
3063
3413
  materialize: async (options) => {
3064
3414
  return this.transport.call({
@@ -4385,7 +4735,7 @@ export class RaviClient {
4385
4735
  }
4386
4736
  };
4387
4737
  skills = {
4388
- /** Grant a custom skill to an agent (per-agent visibility). System skills follow permissions. */
4738
+ /** Grant a catalog or installed skill to an agent (per-agent visibility). Catalog skills need no install; use:skill:<name> capabilities work too. */
4389
4739
  grant: async (agent, skill, options) => {
4390
4740
  return this.transport.call({
4391
4741
  groupSegments: ["skills"],