@opengeni/api-router 3.2.2 → 3.4.0
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/access-grant-rls.d.ts +15 -0
- package/dist/app.js +1 -1
- package/dist/billing-stripe-customer.d.ts +18 -0
- package/dist/billing-subscription-store.d.ts +34 -0
- package/dist/billing-subscriptions.d.ts +64 -0
- package/dist/{chunk-PQBHZ2YH.js → chunk-6DZ4H5JQ.js} +3133 -1711
- package/dist/{chunk-PQBHZ2YH.js.map → chunk-6DZ4H5JQ.js.map} +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/integrations/marketplace-plugin.d.ts +43 -43
- package/dist/mcp/server.d.ts +11 -1
- package/dist/routes/browser-sessions.d.ts +23 -2
- package/dist/routes/sessions.d.ts +1 -0
- package/dist/sandbox/channel-a.d.ts +10 -1
- package/dist/site-publishing/agent-data-tools.d.ts +5 -5
- package/dist/site-publishing/agent-session.d.ts +3 -2
- package/dist/site-publishing/runtime.d.ts +7 -6
- package/dist/site-publishing/service.d.ts +8 -11
- package/dist/site-publishing/session-request-authority.d.ts +3 -0
- package/package.json +24 -24
- package/src/access-grant-rls.ts +99 -10
- package/src/app.ts +105 -43
- package/src/billing-stripe-customer.ts +40 -0
- package/src/billing-subscription-store.ts +121 -0
- package/src/billing-subscriptions.ts +759 -0
- package/src/http/sse.ts +5 -1
- package/src/index.ts +3 -0
- package/src/mcp/action-catalog.gen.ts +113 -0
- package/src/mcp/action-schema-imports.gen.ts +5 -1
- package/src/mcp/server.ts +28 -0
- package/src/routes/billing.ts +161 -21
- package/src/routes/browser-sessions.ts +420 -26
- package/src/routes/computer-sessions.ts +102 -39
- package/src/routes/insights-usage.ts +22 -0
- package/src/routes/organization-memberships.ts +12 -0
- package/src/routes/sessions.ts +30 -5
- package/src/routes/site-runtime.ts +62 -20
- package/src/sandbox/channel-a.ts +18 -1
- package/src/sandbox/metrics-ingestion.ts +1 -0
- package/src/site-frame-guard.ts +11 -2
- package/src/site-publishing/agent-data-tools.ts +16 -8
- package/src/site-publishing/agent-session.ts +24 -6
- package/src/site-publishing/runtime.ts +29 -7
- package/src/site-publishing/service.ts +65 -77
- package/src/site-publishing/session-request-authority.ts +14 -0
|
@@ -53,8 +53,8 @@ export declare function marketplacePlugin(url: string): {
|
|
|
53
53
|
keywords: never[];
|
|
54
54
|
author: {
|
|
55
55
|
name: string;
|
|
56
|
-
email?: never;
|
|
57
56
|
url?: never;
|
|
57
|
+
email?: never;
|
|
58
58
|
};
|
|
59
59
|
version: string;
|
|
60
60
|
license: null;
|
|
@@ -349,9 +349,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
349
349
|
installation: string;
|
|
350
350
|
upstream: {
|
|
351
351
|
source: {
|
|
352
|
+
url?: never;
|
|
352
353
|
source: string;
|
|
353
354
|
path: string;
|
|
354
|
-
url?: never;
|
|
355
355
|
};
|
|
356
356
|
policy: {
|
|
357
357
|
installation: string;
|
|
@@ -369,9 +369,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
369
369
|
category: string;
|
|
370
370
|
keywords: string[];
|
|
371
371
|
author: {
|
|
372
|
+
url?: never;
|
|
372
373
|
name: string;
|
|
373
374
|
email?: never;
|
|
374
|
-
url?: never;
|
|
375
375
|
};
|
|
376
376
|
version: string;
|
|
377
377
|
license: string;
|
|
@@ -395,9 +395,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
395
395
|
installation: string;
|
|
396
396
|
upstream: {
|
|
397
397
|
source: {
|
|
398
|
+
url?: never;
|
|
398
399
|
source: string;
|
|
399
400
|
path: string;
|
|
400
|
-
url?: never;
|
|
401
401
|
};
|
|
402
402
|
policy: {
|
|
403
403
|
installation: string;
|
|
@@ -415,9 +415,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
415
415
|
category: string;
|
|
416
416
|
keywords: never[];
|
|
417
417
|
author: {
|
|
418
|
+
url?: never;
|
|
418
419
|
name: string;
|
|
419
420
|
email?: never;
|
|
420
|
-
url?: never;
|
|
421
421
|
};
|
|
422
422
|
version: string;
|
|
423
423
|
license: null;
|
|
@@ -441,9 +441,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
441
441
|
installation: string;
|
|
442
442
|
upstream: {
|
|
443
443
|
source: {
|
|
444
|
+
url?: never;
|
|
444
445
|
source: string;
|
|
445
446
|
path: string;
|
|
446
|
-
url?: never;
|
|
447
447
|
};
|
|
448
448
|
policy: {
|
|
449
449
|
products?: never;
|
|
@@ -461,9 +461,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
461
461
|
category: string;
|
|
462
462
|
keywords: string[];
|
|
463
463
|
author: {
|
|
464
|
+
url?: never;
|
|
464
465
|
name: string;
|
|
465
466
|
email?: never;
|
|
466
|
-
url?: never;
|
|
467
467
|
};
|
|
468
468
|
version: string;
|
|
469
469
|
license: string;
|
|
@@ -487,9 +487,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
487
487
|
installation: string;
|
|
488
488
|
upstream: {
|
|
489
489
|
source: {
|
|
490
|
+
url?: never;
|
|
490
491
|
source: string;
|
|
491
492
|
path: string;
|
|
492
|
-
url?: never;
|
|
493
493
|
};
|
|
494
494
|
policy: {
|
|
495
495
|
products?: never;
|
|
@@ -507,9 +507,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
507
507
|
category: string;
|
|
508
508
|
keywords: string[];
|
|
509
509
|
author: {
|
|
510
|
+
url?: never;
|
|
510
511
|
name: string;
|
|
511
512
|
email: string;
|
|
512
|
-
url?: never;
|
|
513
513
|
};
|
|
514
514
|
version: string;
|
|
515
515
|
license: string;
|
|
@@ -533,9 +533,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
533
533
|
installation: string;
|
|
534
534
|
upstream: {
|
|
535
535
|
source: {
|
|
536
|
+
url?: never;
|
|
536
537
|
source: string;
|
|
537
538
|
path: string;
|
|
538
|
-
url?: never;
|
|
539
539
|
};
|
|
540
540
|
policy: {
|
|
541
541
|
products?: never;
|
|
@@ -553,9 +553,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
553
553
|
category: string;
|
|
554
554
|
keywords: never[];
|
|
555
555
|
author: {
|
|
556
|
+
url?: never;
|
|
556
557
|
email?: never;
|
|
557
558
|
name: string;
|
|
558
|
-
url?: never;
|
|
559
559
|
};
|
|
560
560
|
version: string;
|
|
561
561
|
license: string;
|
|
@@ -576,9 +576,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
576
576
|
installation: string;
|
|
577
577
|
upstream: {
|
|
578
578
|
source: {
|
|
579
|
+
url?: never;
|
|
579
580
|
source: string;
|
|
580
581
|
path: string;
|
|
581
|
-
url?: never;
|
|
582
582
|
};
|
|
583
583
|
policy: {
|
|
584
584
|
products?: never;
|
|
@@ -596,9 +596,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
596
596
|
category: string;
|
|
597
597
|
keywords: never[];
|
|
598
598
|
author: {
|
|
599
|
+
url?: never;
|
|
599
600
|
email?: never;
|
|
600
601
|
name: string;
|
|
601
|
-
url?: never;
|
|
602
602
|
};
|
|
603
603
|
version: string;
|
|
604
604
|
license: null;
|
|
@@ -622,9 +622,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
622
622
|
installation: string;
|
|
623
623
|
upstream: {
|
|
624
624
|
source: {
|
|
625
|
+
url?: never;
|
|
625
626
|
source: string;
|
|
626
627
|
path: string;
|
|
627
|
-
url?: never;
|
|
628
628
|
};
|
|
629
629
|
policy: {
|
|
630
630
|
products?: never;
|
|
@@ -769,9 +769,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
769
769
|
category: string;
|
|
770
770
|
keywords: never[];
|
|
771
771
|
author: {
|
|
772
|
+
url?: never;
|
|
772
773
|
name: string;
|
|
773
774
|
email: string;
|
|
774
|
-
url?: never;
|
|
775
775
|
};
|
|
776
776
|
version: string;
|
|
777
777
|
license: string;
|
|
@@ -813,9 +813,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
813
813
|
category: string;
|
|
814
814
|
keywords: never[];
|
|
815
815
|
author: {
|
|
816
|
+
url?: never;
|
|
816
817
|
email?: never;
|
|
817
818
|
name: string;
|
|
818
|
-
url?: never;
|
|
819
819
|
};
|
|
820
820
|
version: null;
|
|
821
821
|
license: null;
|
|
@@ -896,9 +896,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
896
896
|
category: string;
|
|
897
897
|
keywords: string[];
|
|
898
898
|
author: {
|
|
899
|
+
url?: never;
|
|
899
900
|
name: string;
|
|
900
901
|
email: string;
|
|
901
|
-
url?: never;
|
|
902
902
|
};
|
|
903
903
|
version: string;
|
|
904
904
|
license: string;
|
|
@@ -940,9 +940,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
940
940
|
category: string;
|
|
941
941
|
keywords: never[];
|
|
942
942
|
author: {
|
|
943
|
+
url?: never;
|
|
943
944
|
email?: never;
|
|
944
945
|
name: string;
|
|
945
|
-
url?: never;
|
|
946
946
|
};
|
|
947
947
|
version: null;
|
|
948
948
|
license: null;
|
|
@@ -984,9 +984,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
984
984
|
category: string;
|
|
985
985
|
keywords: string[];
|
|
986
986
|
author: {
|
|
987
|
+
url?: never;
|
|
987
988
|
email?: never;
|
|
988
989
|
name: string;
|
|
989
|
-
url?: never;
|
|
990
990
|
};
|
|
991
991
|
version: string;
|
|
992
992
|
license: string;
|
|
@@ -1033,9 +1033,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
1033
1033
|
category: string;
|
|
1034
1034
|
keywords: string[];
|
|
1035
1035
|
author: {
|
|
1036
|
+
url?: never;
|
|
1036
1037
|
name: string;
|
|
1037
1038
|
email: string;
|
|
1038
|
-
url?: never;
|
|
1039
1039
|
};
|
|
1040
1040
|
version: string;
|
|
1041
1041
|
license: null;
|
|
@@ -1118,9 +1118,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
1118
1118
|
category: string;
|
|
1119
1119
|
keywords: string[];
|
|
1120
1120
|
author: {
|
|
1121
|
+
url?: never;
|
|
1121
1122
|
email?: never;
|
|
1122
1123
|
name: string;
|
|
1123
|
-
url?: never;
|
|
1124
1124
|
};
|
|
1125
1125
|
version: string;
|
|
1126
1126
|
license: null;
|
|
@@ -1162,9 +1162,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
1162
1162
|
category: string;
|
|
1163
1163
|
keywords: string[];
|
|
1164
1164
|
author: {
|
|
1165
|
+
url?: never;
|
|
1165
1166
|
email?: never;
|
|
1166
1167
|
name: string;
|
|
1167
|
-
url?: never;
|
|
1168
1168
|
};
|
|
1169
1169
|
version: string;
|
|
1170
1170
|
license: string;
|
|
@@ -1243,9 +1243,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
1243
1243
|
category: string;
|
|
1244
1244
|
keywords: never[];
|
|
1245
1245
|
author: {
|
|
1246
|
+
url?: never;
|
|
1246
1247
|
name: string;
|
|
1247
1248
|
email: string;
|
|
1248
|
-
url?: never;
|
|
1249
1249
|
};
|
|
1250
1250
|
version: string;
|
|
1251
1251
|
license: null;
|
|
@@ -1273,9 +1273,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
1273
1273
|
category: string;
|
|
1274
1274
|
keywords: never[];
|
|
1275
1275
|
author: {
|
|
1276
|
+
url?: never;
|
|
1276
1277
|
name: string;
|
|
1277
1278
|
email: string;
|
|
1278
|
-
url?: never;
|
|
1279
1279
|
};
|
|
1280
1280
|
version: string;
|
|
1281
1281
|
license: null;
|
|
@@ -1306,9 +1306,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
1306
1306
|
category: string;
|
|
1307
1307
|
keywords: string[];
|
|
1308
1308
|
author: {
|
|
1309
|
+
url?: never;
|
|
1309
1310
|
name: string;
|
|
1310
1311
|
email: string;
|
|
1311
|
-
url?: never;
|
|
1312
1312
|
};
|
|
1313
1313
|
version: string;
|
|
1314
1314
|
license: string;
|
|
@@ -1339,9 +1339,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
1339
1339
|
category: null;
|
|
1340
1340
|
keywords: string[];
|
|
1341
1341
|
author: {
|
|
1342
|
+
url?: never;
|
|
1342
1343
|
name: string;
|
|
1343
1344
|
email: string;
|
|
1344
|
-
url?: never;
|
|
1345
1345
|
};
|
|
1346
1346
|
version: string;
|
|
1347
1347
|
license: string;
|
|
@@ -1427,9 +1427,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
1427
1427
|
category: string;
|
|
1428
1428
|
keywords: string[];
|
|
1429
1429
|
author: {
|
|
1430
|
+
url?: never;
|
|
1430
1431
|
email?: never;
|
|
1431
1432
|
name: string;
|
|
1432
|
-
url?: never;
|
|
1433
1433
|
};
|
|
1434
1434
|
version: string;
|
|
1435
1435
|
license: string;
|
|
@@ -1471,9 +1471,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
1471
1471
|
category: string;
|
|
1472
1472
|
keywords: never[];
|
|
1473
1473
|
author: {
|
|
1474
|
+
url?: never;
|
|
1474
1475
|
email?: never;
|
|
1475
1476
|
name: string;
|
|
1476
|
-
url?: never;
|
|
1477
1477
|
};
|
|
1478
1478
|
version: null;
|
|
1479
1479
|
license: null;
|
|
@@ -1614,9 +1614,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
1614
1614
|
category: string;
|
|
1615
1615
|
keywords: never[];
|
|
1616
1616
|
author: {
|
|
1617
|
+
url?: never;
|
|
1617
1618
|
name: string;
|
|
1618
1619
|
email: string;
|
|
1619
|
-
url?: never;
|
|
1620
1620
|
};
|
|
1621
1621
|
version: string;
|
|
1622
1622
|
license: null;
|
|
@@ -1658,9 +1658,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
1658
1658
|
category: null;
|
|
1659
1659
|
keywords: string[];
|
|
1660
1660
|
author: {
|
|
1661
|
+
url?: never;
|
|
1661
1662
|
email?: never;
|
|
1662
1663
|
name: string;
|
|
1663
|
-
url?: never;
|
|
1664
1664
|
};
|
|
1665
1665
|
version: string;
|
|
1666
1666
|
license: null;
|
|
@@ -1697,9 +1697,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
1697
1697
|
category: null;
|
|
1698
1698
|
keywords: never[];
|
|
1699
1699
|
author: {
|
|
1700
|
+
url?: never;
|
|
1700
1701
|
email?: never;
|
|
1701
1702
|
name: string;
|
|
1702
|
-
url?: never;
|
|
1703
1703
|
};
|
|
1704
1704
|
version: string;
|
|
1705
1705
|
license: string;
|
|
@@ -1741,9 +1741,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
1741
1741
|
category: string;
|
|
1742
1742
|
keywords: never[];
|
|
1743
1743
|
author: {
|
|
1744
|
+
url?: never;
|
|
1744
1745
|
email?: never;
|
|
1745
1746
|
name: string;
|
|
1746
|
-
url?: never;
|
|
1747
1747
|
};
|
|
1748
1748
|
version: null;
|
|
1749
1749
|
license: null;
|
|
@@ -1776,9 +1776,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
1776
1776
|
category: string;
|
|
1777
1777
|
keywords: never[];
|
|
1778
1778
|
author: {
|
|
1779
|
+
url?: never;
|
|
1779
1780
|
name: string;
|
|
1780
1781
|
email: string;
|
|
1781
|
-
url?: never;
|
|
1782
1782
|
};
|
|
1783
1783
|
version: null;
|
|
1784
1784
|
license: null;
|
|
@@ -1853,9 +1853,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
1853
1853
|
category: string;
|
|
1854
1854
|
keywords: string[];
|
|
1855
1855
|
author: {
|
|
1856
|
+
url?: never;
|
|
1856
1857
|
name: string;
|
|
1857
1858
|
email: string;
|
|
1858
|
-
url?: never;
|
|
1859
1859
|
};
|
|
1860
1860
|
version: string;
|
|
1861
1861
|
license: string;
|
|
@@ -1897,9 +1897,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
1897
1897
|
category: string;
|
|
1898
1898
|
keywords: string[];
|
|
1899
1899
|
author: {
|
|
1900
|
+
url?: never;
|
|
1900
1901
|
name: string;
|
|
1901
1902
|
email: string;
|
|
1902
|
-
url?: never;
|
|
1903
1903
|
};
|
|
1904
1904
|
version: string;
|
|
1905
1905
|
license: string;
|
|
@@ -1941,9 +1941,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
1941
1941
|
category: string;
|
|
1942
1942
|
keywords: string[];
|
|
1943
1943
|
author: {
|
|
1944
|
+
url?: never;
|
|
1944
1945
|
name: string;
|
|
1945
1946
|
email: string;
|
|
1946
|
-
url?: never;
|
|
1947
1947
|
};
|
|
1948
1948
|
version: null;
|
|
1949
1949
|
license: string;
|
|
@@ -1985,9 +1985,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
1985
1985
|
category: string;
|
|
1986
1986
|
keywords: string[];
|
|
1987
1987
|
author: {
|
|
1988
|
+
url?: never;
|
|
1988
1989
|
email?: never;
|
|
1989
1990
|
name: string;
|
|
1990
|
-
url?: never;
|
|
1991
1991
|
};
|
|
1992
1992
|
version: null;
|
|
1993
1993
|
license: string;
|
|
@@ -2024,9 +2024,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
2024
2024
|
category: string;
|
|
2025
2025
|
keywords: string[];
|
|
2026
2026
|
author: {
|
|
2027
|
+
url?: never;
|
|
2027
2028
|
email?: never;
|
|
2028
2029
|
name: string;
|
|
2029
|
-
url?: never;
|
|
2030
2030
|
};
|
|
2031
2031
|
version: string;
|
|
2032
2032
|
license: null;
|
|
@@ -2235,9 +2235,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
2235
2235
|
category: string;
|
|
2236
2236
|
keywords: string[];
|
|
2237
2237
|
author: {
|
|
2238
|
+
url?: never;
|
|
2238
2239
|
email?: never;
|
|
2239
2240
|
name: string;
|
|
2240
|
-
url?: never;
|
|
2241
2241
|
};
|
|
2242
2242
|
version: string;
|
|
2243
2243
|
license: null;
|
|
@@ -2279,9 +2279,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
2279
2279
|
category: null;
|
|
2280
2280
|
keywords: never[];
|
|
2281
2281
|
author: {
|
|
2282
|
+
url?: never;
|
|
2282
2283
|
email?: never;
|
|
2283
2284
|
name: string;
|
|
2284
|
-
url?: never;
|
|
2285
2285
|
};
|
|
2286
2286
|
version: null;
|
|
2287
2287
|
license: null;
|
|
@@ -2369,9 +2369,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
2369
2369
|
category: null;
|
|
2370
2370
|
keywords: string[];
|
|
2371
2371
|
author: {
|
|
2372
|
+
url?: never;
|
|
2372
2373
|
email?: never;
|
|
2373
2374
|
name: string;
|
|
2374
|
-
url?: never;
|
|
2375
2375
|
};
|
|
2376
2376
|
version: string;
|
|
2377
2377
|
license: string;
|
|
@@ -2408,9 +2408,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
2408
2408
|
category: string;
|
|
2409
2409
|
keywords: string[];
|
|
2410
2410
|
author: {
|
|
2411
|
+
url?: never;
|
|
2411
2412
|
name: string;
|
|
2412
2413
|
email: string;
|
|
2413
|
-
url?: never;
|
|
2414
2414
|
};
|
|
2415
2415
|
version: string;
|
|
2416
2416
|
license: null;
|
|
@@ -2657,9 +2657,9 @@ export declare function marketplacePlugin(url: string): {
|
|
|
2657
2657
|
category: string;
|
|
2658
2658
|
keywords: string[];
|
|
2659
2659
|
author: {
|
|
2660
|
+
url?: never;
|
|
2660
2661
|
name: string;
|
|
2661
2662
|
email: string;
|
|
2662
|
-
url?: never;
|
|
2663
2663
|
};
|
|
2664
2664
|
version: string;
|
|
2665
2665
|
license: string;
|
package/dist/mcp/server.d.ts
CHANGED
|
@@ -50,6 +50,7 @@ export declare function orchestrationFailureEnvelope(tool: OrchestrationToolName
|
|
|
50
50
|
};
|
|
51
51
|
} | {
|
|
52
52
|
error: {
|
|
53
|
+
reason?: never;
|
|
53
54
|
code: "nested_agent_depth_exceeded" | "nested_agent_depth_override_forbidden";
|
|
54
55
|
details: {
|
|
55
56
|
readonly denial: {
|
|
@@ -70,7 +71,6 @@ export declare function orchestrationFailureEnvelope(tool: OrchestrationToolName
|
|
|
70
71
|
createdAt: string;
|
|
71
72
|
};
|
|
72
73
|
};
|
|
73
|
-
reason?: never;
|
|
74
74
|
retryable?: never;
|
|
75
75
|
message: string;
|
|
76
76
|
};
|
|
@@ -116,6 +116,16 @@ export declare function slackBotFileContentResult(result: Awaited<ReturnType<Ope
|
|
|
116
116
|
data: string;
|
|
117
117
|
})[];
|
|
118
118
|
};
|
|
119
|
+
/**
|
|
120
|
+
* The first-party server as seen by MCP protocol messages that touch no tool:
|
|
121
|
+
* `initialize`, `ping` and notifications. It advertises exactly what the full
|
|
122
|
+
* server does (the same name, version and tools capability) without the
|
|
123
|
+
* workspace, catalog, Memory and admin reads that registering tools needs.
|
|
124
|
+
* Never route `tools/*` here: it lists no tools.
|
|
125
|
+
*/
|
|
126
|
+
export declare function buildOpenGeniMcpProtocolServer(grant: AccessGrant): McpServer;
|
|
127
|
+
/** JSON-RPC methods {@link buildOpenGeniMcpProtocolServer} answers like the full server. */
|
|
128
|
+
export declare function isOpenGeniMcpProtocolOnlyMessage(message: unknown): boolean;
|
|
119
129
|
export declare function buildOpenGeniMcpServer(deps: ApiRouteDeps, grant: AccessGrant, options?: McpServerOptions): McpServer;
|
|
120
130
|
/** Only a prompt explicitly supplied through the human/API channel may redirect a user-paused goal. */
|
|
121
131
|
export declare function isHumanDirectedTurn(turn: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { InteractionActor, type AccessGrant, type FileAsset, type CreateBrowserSessionRequest as CreateBrowserSessionRequestValue, type InteractionPlacement } from "@opengeni/contracts";
|
|
1
|
+
import { BrowserObservation, type BrowserTarget, InteractionActor, type AccessGrant, type FileAsset, type CreateBrowserSessionRequest as CreateBrowserSessionRequestValue, type InteractionPlacement } from "@opengeni/contracts";
|
|
2
2
|
import { type ApiRouteDeps, type ResolvedSessionAuthorization } from "@opengeni/core";
|
|
3
|
-
import { type BrowserControlScreenshotOptions, type BrowserControlFrame } from "@opengeni/runtime/sandbox";
|
|
3
|
+
import { BrowserControlClient, type BrowserControlScreenshotOptions, type BrowserControlFrame } from "@opengeni/runtime/sandbox";
|
|
4
4
|
import type { Hono } from "hono";
|
|
5
5
|
import { type InteractionSecretsPort } from "../interaction-secrets.js";
|
|
6
6
|
export declare function registerBrowserSessionRoutes(app: Hono, deps: ApiRouteDeps, options?: {
|
|
@@ -59,6 +59,27 @@ export declare function browserNeedsStandaloneDisplayStack(input: {
|
|
|
59
59
|
linkedComputer: boolean;
|
|
60
60
|
nativeBrowserControl: boolean;
|
|
61
61
|
}): boolean;
|
|
62
|
+
/** Attach the controller's launch view to a create that activated exactly that
|
|
63
|
+
* launch in this request. Replays, failures and other bindings get nothing, so
|
|
64
|
+
* a caller then reads the targets and observes as before. */
|
|
65
|
+
export declare function withInitialView<T extends {
|
|
66
|
+
session: {
|
|
67
|
+
id: string;
|
|
68
|
+
lifecycle: string;
|
|
69
|
+
controller: {
|
|
70
|
+
controllerGeneration: string;
|
|
71
|
+
} | null;
|
|
72
|
+
};
|
|
73
|
+
operation: {
|
|
74
|
+
state: string;
|
|
75
|
+
replayed: boolean;
|
|
76
|
+
};
|
|
77
|
+
}>(response: T, launched: Awaited<ReturnType<BrowserControlClient["createSession"]>> | null): T | (T & {
|
|
78
|
+
initialView: {
|
|
79
|
+
targets: BrowserTarget[];
|
|
80
|
+
observation: BrowserObservation;
|
|
81
|
+
};
|
|
82
|
+
});
|
|
62
83
|
export declare function parseBrowserScreenshotOptions(query: URLSearchParams): BrowserControlScreenshotOptions;
|
|
63
84
|
/** Preserve the controller's definite tab diagnosis (a tab that stopped
|
|
64
85
|
* answering, or one whose renderer crashed) through the public API with its
|
|
@@ -27,6 +27,7 @@ export declare function sessionListQuery(query: Record<string, string>, allowCur
|
|
|
27
27
|
includeTotals: boolean;
|
|
28
28
|
needsYouOnly: boolean;
|
|
29
29
|
contentArchivedOnly: boolean;
|
|
30
|
+
mineOnly: boolean;
|
|
30
31
|
archivedOnly: boolean;
|
|
31
32
|
sortBy: "updatedAt" | "createdAt" | "name" | undefined;
|
|
32
33
|
archiveStatus: "active" | "archived" | "all" | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Settings } from "@opengeni/config";
|
|
2
2
|
import type { AccessGrant, Session } from "@opengeni/contracts";
|
|
3
|
-
import { type Database, type LeaseSnapshot } from "@opengeni/db";
|
|
3
|
+
import { type Database, type EnrollmentRecord, type LeaseSnapshot } from "@opengeni/db";
|
|
4
4
|
import { type EventBus } from "@opengeni/events";
|
|
5
5
|
import { type Observability } from "@opengeni/observability";
|
|
6
6
|
import type { ObjectStorage } from "@opengeni/storage";
|
|
@@ -56,6 +56,15 @@ export type ChannelAHandle = {
|
|
|
56
56
|
* who started an agent's turn, or the calling person. Routes that look up
|
|
57
57
|
* the routed machine again must use it rather than the raw caller grant. */
|
|
58
58
|
machineAuthority: () => Promise<ChannelAMachineAuthority>;
|
|
59
|
+
/** For a machine-home request, the Connected Machine and live runner this
|
|
60
|
+
* request was pinned to under `machineAuthority`. The routing session fails
|
|
61
|
+
* rather than follow a changed pointer, so a route that resolved this same
|
|
62
|
+
* sandbox can use it instead of looking the machine up again. */
|
|
63
|
+
pinnedMachine: {
|
|
64
|
+
sandboxId: string;
|
|
65
|
+
sandboxWorkspaceId: string;
|
|
66
|
+
enrollment: EnrollmentRecord;
|
|
67
|
+
} | null;
|
|
59
68
|
requestId: string;
|
|
60
69
|
};
|
|
61
70
|
export type EstablishedHandleCacheKind = "read" | "process" | "none";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type FirstPartyMcpToolName, type SiteLimitProfileKind } from "@opengeni/contracts";
|
|
2
|
-
import type
|
|
1
|
+
import { type FirstPartyMcpToolName, type Permission, type SiteLimitProfileKind } from "@opengeni/contracts";
|
|
2
|
+
import { type ApiRouteDeps } from "@opengeni/core";
|
|
3
3
|
import { type SiteRuntimeConversationViewerKind } from "@opengeni/db";
|
|
4
4
|
import type { PublishedSiteDataViewer } from "../site-data/service.js";
|
|
5
5
|
import { type SiteRuntimeHost } from "./runtime.js";
|
|
@@ -21,8 +21,6 @@ import { type SiteRuntimeHost } from "./runtime.js";
|
|
|
21
21
|
export declare const SITE_AGENT_DATA_TOOLS: readonly ["site_data_query", "site_data_write"];
|
|
22
22
|
export declare const SITE_AGENT_SQL_TOOLS: readonly ["site_sql_run"];
|
|
23
23
|
export declare const SITE_AGENT_MEMBER_SQL_TOOLS: readonly ["site_sql_query"];
|
|
24
|
-
/** The first-party permissions those tools need (Site Data writes need publish). */
|
|
25
|
-
export declare const SITE_AGENT_DATA_TOOL_PERMISSIONS: readonly ["artifacts:read", "artifacts:publish"];
|
|
26
24
|
export declare const SITE_AGENT_OTHER_SITE_MESSAGE = "This Site's assistant can only use this Site's data";
|
|
27
25
|
export declare const SITE_AGENT_MANAGEMENT_MESSAGE = "This Site's assistant can use the Site's data, not manage the Site";
|
|
28
26
|
/** The data tools one viewer's Site agent conversation gets, within the deployment's tools. */
|
|
@@ -32,6 +30,8 @@ export declare function siteAgentDataToolNames(input: {
|
|
|
32
30
|
siteSql: boolean;
|
|
33
31
|
/** The deployment's first-party tool allowlist. */
|
|
34
32
|
allowed: readonly string[];
|
|
33
|
+
/** Live member ceiling; omitted only where the native caller filters tools itself. */
|
|
34
|
+
memberPermissions?: readonly Permission[];
|
|
35
35
|
}): FirstPartyMcpToolName[];
|
|
36
36
|
/** Whether Site SQL is offered on this deployment and turned on for the Site. */
|
|
37
37
|
export declare function siteAgentSiteSqlOn(deps: Pick<ApiRouteDeps, "db" | "settings">, scope: {
|
|
@@ -42,7 +42,7 @@ export declare function siteAgentSiteSqlOn(deps: Pick<ApiRouteDeps, "db" | "sett
|
|
|
42
42
|
export declare function siteAgentDataToolsForStart(deps: Pick<ApiRouteDeps, "db" | "settings">, scope: {
|
|
43
43
|
accountId: string;
|
|
44
44
|
workspaceId: string;
|
|
45
|
-
}, siteId: string, viewerKind: SiteRuntimeConversationViewerKind): Promise<FirstPartyMcpToolName[]>;
|
|
45
|
+
}, siteId: string, viewerKind: SiteRuntimeConversationViewerKind, memberPermissions?: readonly Permission[]): Promise<FirstPartyMcpToolName[]>;
|
|
46
46
|
/** This Site's viewer (`user:<subject>` or `guest:<visitor>`) as Site Data and Site SQL see it. */
|
|
47
47
|
export declare function sitePublishedDataViewer(host: Pick<SiteRuntimeHost, "scope" | "site">, principal: string, guest: boolean): PublishedSiteDataViewer;
|
|
48
48
|
/**
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { type Permission } from "@opengeni/contracts";
|
|
1
2
|
import { type ApiRouteDeps } from "@opengeni/core";
|
|
2
3
|
import type { SiteRuntimeHost } from "./runtime.js";
|
|
3
4
|
import type { SiteRuntimeViewer } from "./viewer.js";
|
|
4
|
-
export declare const SITE_AGENT_DEFAULTS_VERSION =
|
|
5
|
+
export declare const SITE_AGENT_DEFAULTS_VERSION = 2;
|
|
5
6
|
/**
|
|
6
7
|
* Before admitting more work, converge pre-redesign published-host sessions to
|
|
7
8
|
* the same Site-local tools as a new conversation. This is a trusted host
|
|
@@ -13,4 +14,4 @@ export declare const SITE_AGENT_DEFAULTS_VERSION = 1;
|
|
|
13
14
|
* audit event and completion marker atomic. Failed writes remain retryable.
|
|
14
15
|
* Existing attempts keep their accepted execution policy; no turn is rewritten.
|
|
15
16
|
*/
|
|
16
|
-
export declare function normalizeSiteAgentSession(deps: Pick<ApiRouteDeps, "db" | "settings" | "bus" | "objectStorage">, host: SiteRuntimeHost, viewer: SiteRuntimeViewer, sessionId: string, retainedToolIds: readonly string[]): Promise<void>;
|
|
17
|
+
export declare function normalizeSiteAgentSession(deps: Pick<ApiRouteDeps, "db" | "settings" | "bus" | "objectStorage">, host: SiteRuntimeHost, viewer: SiteRuntimeViewer, sessionId: string, retainedToolIds: readonly string[], memberPermissions?: readonly Permission[]): Promise<void>;
|
|
@@ -7,8 +7,8 @@ import { type SiteRuntimeViewer } from "./viewer.js";
|
|
|
7
7
|
/**
|
|
8
8
|
* Site-runtime: the narrow API a Site gateway calls for one published Site
|
|
9
9
|
* host, after the gateway signature passed. Everything here works for exactly
|
|
10
|
-
* one Site: the host names it
|
|
11
|
-
*
|
|
10
|
+
* one Site: the host names it and the viewer is resolved for it. Members retain
|
|
11
|
+
* their human identity; outsiders use the viewer-bound `site:<siteId>` principal.
|
|
12
12
|
*/
|
|
13
13
|
export type SiteRuntimeDeps = Pick<ApiRouteDeps, "db" | "settings" | "objectStorage">;
|
|
14
14
|
export type SiteRuntimeHost = {
|
|
@@ -43,7 +43,7 @@ export declare function resolveSiteRuntimeViewer(deps: SiteRuntimeDeps, host: Si
|
|
|
43
43
|
ignoreViewAs?: boolean;
|
|
44
44
|
}): Promise<SiteRuntimeViewer>;
|
|
45
45
|
/** What a viewer cannot do on a Site: 403 with `details.code` `not_available_for_viewer`. */
|
|
46
|
-
export type SiteViewerFeature = "agent" | "agent_model" | "workspace_tools" | "site_data" | "site_sql";
|
|
46
|
+
export type SiteViewerFeature = "agent" | "private_conversations" | "agent_model" | "workspace_tools" | "site_data" | "site_sql";
|
|
47
47
|
export declare function siteNotAvailableForViewer(feature: SiteViewerFeature, message: string, extra?: Record<string, unknown>): import("../http/api-error.js").ApiHttpError;
|
|
48
48
|
/** The viewer capabilities a page reads from `site.config` to hide what won't work. */
|
|
49
49
|
export declare function siteViewerCapabilities(deps: SiteRuntimeDeps, host: SiteRuntimeHost, viewer: SiteRuntimeViewer, limits: SiteLimits): SiteViewerCapabilities;
|
|
@@ -160,9 +160,9 @@ export declare function meterSiteRuntime(deps: SiteRuntimeDeps, host: SiteRuntim
|
|
|
160
160
|
viewer?: SiteRuntimeViewer;
|
|
161
161
|
}): Promise<void>;
|
|
162
162
|
/**
|
|
163
|
-
* Run an ordinary session route in this process as the
|
|
164
|
-
* principal
|
|
165
|
-
*
|
|
163
|
+
* Run an ordinary session route in this process as the verified member, or
|
|
164
|
+
* the Site service principal for an outsider. The latter uses a 60-second
|
|
165
|
+
* delegated token plus the separate trusted viewer audience. The Site and the
|
|
166
166
|
* served version ride along as the request's Site origin, so new sessions and
|
|
167
167
|
* turns record where they came from. The route authorizes as usual.
|
|
168
168
|
*/
|
|
@@ -174,6 +174,7 @@ export declare function siteRuntimeSessionRequest(deps: SiteRuntimeDeps, host: S
|
|
|
174
174
|
path: string;
|
|
175
175
|
body?: unknown;
|
|
176
176
|
extraPermissions?: readonly Permission[];
|
|
177
|
+
reauthorize: () => Promise<void>;
|
|
177
178
|
}): Promise<Request>;
|
|
178
179
|
/** A forwarded response without cookies (site-runtime never sets any). */
|
|
179
180
|
export declare function siteRuntimeForwardedResponse(response: Response): Response;
|