@undefineds.co/xpod 0.3.52 → 0.3.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/config/cli.json +72 -0
  2. package/config/components-ignore.json +21 -0
  3. package/config/extensions.local.initializer.json +77 -8
  4. package/config/resolver.json +72 -4
  5. package/dist/api/ApiServer.d.ts +12 -0
  6. package/dist/api/ApiServer.js +14 -3
  7. package/dist/api/ApiServer.js.map +1 -1
  8. package/dist/api/auth/NodeTokenAuthenticator.d.ts +0 -8
  9. package/dist/api/auth/NodeTokenAuthenticator.js +3 -46
  10. package/dist/api/auth/NodeTokenAuthenticator.js.map +1 -1
  11. package/dist/api/container/local.js +5 -36
  12. package/dist/api/container/local.js.map +1 -1
  13. package/dist/api/container/routes.js +6 -0
  14. package/dist/api/container/routes.js.map +1 -1
  15. package/dist/api/handlers/EdgeNodeSignalHandler.js +25 -3
  16. package/dist/api/handlers/EdgeNodeSignalHandler.js.map +1 -1
  17. package/dist/api/handlers/ReachabilityHandler.d.ts +13 -0
  18. package/dist/api/handlers/ReachabilityHandler.js +388 -0
  19. package/dist/api/handlers/ReachabilityHandler.js.map +1 -0
  20. package/dist/api/runs/InngestRunExecutionBackend.d.ts +2 -2
  21. package/dist/api/tasks/InngestTaskScheduler.d.ts +4 -4
  22. package/dist/cli/lib/oidc-auth.js +27 -3
  23. package/dist/cli/lib/oidc-auth.js.map +1 -1
  24. package/dist/components/components.jsonld +14 -2
  25. package/dist/components/context.jsonld +439 -3
  26. package/dist/edge/EdgeNodeAgent.d.ts +43 -0
  27. package/dist/edge/EdgeNodeAgent.js +208 -1
  28. package/dist/edge/EdgeNodeAgent.js.map +1 -1
  29. package/dist/edge/EdgeNodeAgent.jsonld +166 -0
  30. package/dist/edge/EdgeNodeAgentInitializer.d.ts +20 -2
  31. package/dist/edge/EdgeNodeAgentInitializer.js +53 -2
  32. package/dist/edge/EdgeNodeAgentInitializer.js.map +1 -1
  33. package/dist/edge/EdgeNodeAgentInitializer.jsonld +409 -0
  34. package/dist/edge/reachability/CanonicalFetch.d.ts +7 -0
  35. package/dist/edge/reachability/CanonicalFetch.js +49 -0
  36. package/dist/edge/reachability/CanonicalFetch.js.map +1 -0
  37. package/dist/edge/reachability/CanonicalFetch.jsonld +25 -0
  38. package/dist/edge/reachability/ManagedClientFetch.d.ts +26 -0
  39. package/dist/edge/reachability/ManagedClientFetch.js +155 -0
  40. package/dist/edge/reachability/ManagedClientFetch.js.map +1 -0
  41. package/dist/edge/reachability/ManagedClientFetch.jsonld +83 -0
  42. package/dist/edge/reachability/ManagedClientP2PSmoke.d.ts +16 -0
  43. package/dist/edge/reachability/ManagedClientP2PSmoke.js +31 -0
  44. package/dist/edge/reachability/ManagedClientP2PSmoke.js.map +1 -0
  45. package/dist/edge/reachability/ManagedClientP2PSmoke.jsonld +65 -0
  46. package/dist/edge/reachability/ManagedRouteSelector.d.ts +7 -0
  47. package/dist/edge/reachability/ManagedRouteSelector.js +43 -0
  48. package/dist/edge/reachability/ManagedRouteSelector.js.map +1 -0
  49. package/dist/edge/reachability/ManagedRouteSelector.jsonld +29 -0
  50. package/dist/edge/reachability/P2PDataPlane.d.ts +37 -0
  51. package/dist/edge/reachability/P2PDataPlane.js +160 -0
  52. package/dist/edge/reachability/P2PDataPlane.js.map +1 -0
  53. package/dist/edge/reachability/P2PDataPlane.jsonld +134 -0
  54. package/dist/edge/reachability/P2PRealnetAcceptance.d.ts +74 -0
  55. package/dist/edge/reachability/P2PRealnetAcceptance.js +240 -0
  56. package/dist/edge/reachability/P2PRealnetAcceptance.js.map +1 -0
  57. package/dist/edge/reachability/P2PRealnetAcceptance.jsonld +283 -0
  58. package/dist/edge/reachability/P2PSignalingClient.d.ts +24 -0
  59. package/dist/edge/reachability/P2PSignalingClient.js +138 -0
  60. package/dist/edge/reachability/P2PSignalingClient.js.map +1 -0
  61. package/dist/edge/reachability/P2PSignalingClient.jsonld +79 -0
  62. package/dist/edge/reachability/ReachabilitySessionService.d.ts +55 -0
  63. package/dist/edge/reachability/ReachabilitySessionService.js +439 -0
  64. package/dist/edge/reachability/ReachabilitySessionService.js.map +1 -0
  65. package/dist/edge/reachability/ReachabilitySessionService.jsonld +196 -0
  66. package/dist/edge/reachability/RouteSetBuilder.d.ts +2 -0
  67. package/dist/edge/reachability/RouteSetBuilder.js +205 -0
  68. package/dist/edge/reachability/RouteSetBuilder.js.map +1 -0
  69. package/dist/edge/reachability/TcpP2PDataPlaneTransport.d.ts +47 -0
  70. package/dist/edge/reachability/TcpP2PDataPlaneTransport.js +281 -0
  71. package/dist/edge/reachability/TcpP2PDataPlaneTransport.js.map +1 -0
  72. package/dist/edge/reachability/TcpP2PDataPlaneTransport.jsonld +183 -0
  73. package/dist/edge/reachability/TcpP2PSignalingSession.d.ts +149 -0
  74. package/dist/edge/reachability/TcpP2PSignalingSession.js +699 -0
  75. package/dist/edge/reachability/TcpP2PSignalingSession.js.map +1 -0
  76. package/dist/edge/reachability/TcpP2PSignalingSession.jsonld +474 -0
  77. package/dist/edge/reachability/index.d.ts +12 -0
  78. package/dist/edge/reachability/index.js +29 -0
  79. package/dist/edge/reachability/index.js.map +1 -0
  80. package/dist/edge/reachability/types.d.ts +114 -0
  81. package/dist/edge/reachability/types.js +3 -0
  82. package/dist/edge/reachability/types.js.map +1 -0
  83. package/dist/edge/reachability/types.jsonld +457 -0
  84. package/dist/http/EdgeNodeProxyHttpHandler.d.ts +2 -0
  85. package/dist/http/EdgeNodeProxyHttpHandler.js +19 -1
  86. package/dist/http/EdgeNodeProxyHttpHandler.js.map +1 -1
  87. package/dist/http/EdgeNodeProxyHttpHandler.jsonld +8 -0
  88. package/dist/identity/drizzle/EdgeNodeRepository.js +1 -1
  89. package/dist/identity/drizzle/EdgeNodeRepository.js.map +1 -1
  90. package/dist/index.d.ts +4 -1
  91. package/dist/index.js +5 -2
  92. package/dist/index.js.map +1 -1
  93. package/dist/runtime/bootstrap.js +8 -0
  94. package/dist/runtime/bootstrap.js.map +1 -1
  95. package/dist/service/EdgeNodeSignalClient.js +5 -1
  96. package/dist/service/EdgeNodeSignalClient.js.map +1 -1
  97. package/dist/storage/rdf/PostgresRdfEngine.d.ts +1 -0
  98. package/dist/storage/rdf/PostgresRdfEngine.js +53 -37
  99. package/dist/storage/rdf/PostgresRdfEngine.js.map +1 -1
  100. package/dist/storage/rdf/PostgresRdfEngine.jsonld +4 -0
  101. package/dist/test-utils/index.d.ts +2 -0
  102. package/dist/test-utils/index.js +3 -1
  103. package/dist/test-utils/index.js.map +1 -1
  104. package/dist/test-utils/local-managed-client-p2p-e2e-smoke.d.ts +63 -0
  105. package/dist/test-utils/local-managed-client-p2p-e2e-smoke.js +478 -0
  106. package/dist/test-utils/local-managed-client-p2p-e2e-smoke.js.map +1 -0
  107. package/package.json +11 -4
  108. package/static/app/assets/_commonjsHelpers-B-UnjaXt.js +1 -0
  109. package/static/app/assets/index-AaQ1qxhy.js +171 -0
  110. package/static/app/assets/inrupt-smoke.js +131 -0
  111. package/static/app/assets/main.css +1 -0
  112. package/static/app/assets/main.js +6 -6
  113. package/static/app/index.html +2 -1
  114. package/static/app/inrupt-smoke.html +14 -0
  115. package/static/app/reachability.html +221 -0
  116. package/static/app/reachability.svg +7 -0
  117. package/static/app/reachability.webmanifest +18 -0
  118. package/static/app/signal-pod.html +293 -0
  119. package/static/app/assets/index.css +0 -1
@@ -296,6 +296,21 @@
296
296
  "@prefix": true,
297
297
  "@context": {}
298
298
  },
299
+ "EdgeNodeAgentOptions": {
300
+ "@id": "undefineds:dist/edge/EdgeNodeAgent.jsonld#EdgeNodeAgentOptions",
301
+ "@prefix": true,
302
+ "@context": {}
303
+ },
304
+ "EdgeNodeP2PAcceptEvent": {
305
+ "@id": "undefineds:dist/edge/EdgeNodeAgent.jsonld#EdgeNodeP2PAcceptEvent",
306
+ "@prefix": true,
307
+ "@context": {}
308
+ },
309
+ "EdgeNodeAgent": {
310
+ "@id": "undefineds:dist/edge/EdgeNodeAgent.jsonld#EdgeNodeAgent",
311
+ "@prefix": true,
312
+ "@context": {}
313
+ },
299
314
  "EdgeNodeTunnelManager": {
300
315
  "@id": "undefineds:dist/edge/interfaces/EdgeNodeTunnelManager.jsonld#EdgeNodeTunnelManager",
301
316
  "@prefix": true,
@@ -1427,10 +1442,117 @@
1427
1442
  }
1428
1443
  }
1429
1444
  },
1430
- "EdgeNodeAgent": {
1431
- "@id": "undefineds:dist/edge/EdgeNodeAgent.jsonld#EdgeNodeAgent",
1445
+ "EdgeNodeAgentInitializer": {
1446
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer",
1432
1447
  "@prefix": true,
1433
- "@context": {}
1448
+ "@context": {
1449
+ "options_enabled": {
1450
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_enabled"
1451
+ },
1452
+ "options_signalEndpoint": {
1453
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_signalEndpoint"
1454
+ },
1455
+ "options_nodeId": {
1456
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_nodeId"
1457
+ },
1458
+ "options_nodeToken": {
1459
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_nodeToken"
1460
+ },
1461
+ "options_baseUrl": {
1462
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_baseUrl"
1463
+ },
1464
+ "options_directCandidates": {
1465
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_directCandidates"
1466
+ },
1467
+ "options_pods": {
1468
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_pods",
1469
+ "@container": "@list"
1470
+ },
1471
+ "options_includeSystemMetrics": {
1472
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_includeSystemMetrics"
1473
+ },
1474
+ "options_enableNetworkDetection": {
1475
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_enableNetworkDetection"
1476
+ },
1477
+ "options_metadata": {
1478
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_metadata",
1479
+ "@container": "@list"
1480
+ },
1481
+ "options_intervalMs": {
1482
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_intervalMs"
1483
+ },
1484
+ "options_p2pEnabled": {
1485
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_p2pEnabled"
1486
+ },
1487
+ "options_p2pTargetBaseUrl": {
1488
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_p2pTargetBaseUrl"
1489
+ },
1490
+ "options_p2pLabel": {
1491
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_p2pLabel"
1492
+ },
1493
+ "options_p2pAcceptIntervalMs": {
1494
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_p2pAcceptIntervalMs"
1495
+ },
1496
+ "options_p2pConnectTimeoutMs": {
1497
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_p2pConnectTimeoutMs"
1498
+ },
1499
+ "options_p2pWinnerSelectionWindowMs": {
1500
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_p2pWinnerSelectionWindowMs"
1501
+ },
1502
+ "enabled": {
1503
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_enabled"
1504
+ },
1505
+ "signalEndpoint": {
1506
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_signalEndpoint"
1507
+ },
1508
+ "nodeId": {
1509
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_nodeId"
1510
+ },
1511
+ "nodeToken": {
1512
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_nodeToken"
1513
+ },
1514
+ "baseUrl": {
1515
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_baseUrl"
1516
+ },
1517
+ "directCandidates": {
1518
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_directCandidates"
1519
+ },
1520
+ "pods": {
1521
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_pods",
1522
+ "@container": "@list"
1523
+ },
1524
+ "includeSystemMetrics": {
1525
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_includeSystemMetrics"
1526
+ },
1527
+ "enableNetworkDetection": {
1528
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_enableNetworkDetection"
1529
+ },
1530
+ "metadata": {
1531
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_metadata",
1532
+ "@container": "@list"
1533
+ },
1534
+ "intervalMs": {
1535
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_intervalMs"
1536
+ },
1537
+ "p2pEnabled": {
1538
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_p2pEnabled"
1539
+ },
1540
+ "p2pTargetBaseUrl": {
1541
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_p2pTargetBaseUrl"
1542
+ },
1543
+ "p2pLabel": {
1544
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_p2pLabel"
1545
+ },
1546
+ "p2pAcceptIntervalMs": {
1547
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_p2pAcceptIntervalMs"
1548
+ },
1549
+ "p2pConnectTimeoutMs": {
1550
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_p2pConnectTimeoutMs"
1551
+ },
1552
+ "p2pWinnerSelectionWindowMs": {
1553
+ "@id": "undefineds:dist/edge/EdgeNodeAgentInitializer.jsonld#EdgeNodeAgentInitializer_options_p2pWinnerSelectionWindowMs"
1554
+ }
1555
+ }
1434
1556
  },
1435
1557
  "EdgeNodeCertificateService": {
1436
1558
  "@id": "undefineds:dist/service/EdgeNodeCertificateService.jsonld#EdgeNodeCertificateService",
@@ -2554,6 +2676,320 @@
2554
2676
  "@id": "undefineds:dist/api/reconciler/ServerGroupReconcilerService.jsonld#ServerGroupReconcilerServiceOptions",
2555
2677
  "@prefix": true,
2556
2678
  "@context": {}
2679
+ },
2680
+ "AccessRoute": {
2681
+ "@id": "undefineds:dist/edge/reachability/types.jsonld#AccessRoute",
2682
+ "@prefix": true,
2683
+ "@context": {}
2684
+ },
2685
+ "RouteSet": {
2686
+ "@id": "undefineds:dist/edge/reachability/types.jsonld#RouteSet",
2687
+ "@prefix": true,
2688
+ "@context": {}
2689
+ },
2690
+ "BuildRouteSetSource": {
2691
+ "@id": "undefineds:dist/edge/reachability/types.jsonld#BuildRouteSetSource",
2692
+ "@prefix": true,
2693
+ "@context": {}
2694
+ },
2695
+ "BuildRouteSetOptions": {
2696
+ "@id": "undefineds:dist/edge/reachability/types.jsonld#BuildRouteSetOptions",
2697
+ "@prefix": true,
2698
+ "@context": {}
2699
+ },
2700
+ "P2PSessionRequest": {
2701
+ "@id": "undefineds:dist/edge/reachability/types.jsonld#P2PSessionRequest",
2702
+ "@prefix": true,
2703
+ "@context": {}
2704
+ },
2705
+ "P2PSessionOwner": {
2706
+ "@id": "undefineds:dist/edge/reachability/types.jsonld#P2PSessionOwner",
2707
+ "@prefix": true,
2708
+ "@context": {}
2709
+ },
2710
+ "P2PTransportCandidate": {
2711
+ "@id": "undefineds:dist/edge/reachability/types.jsonld#P2PTransportCandidate",
2712
+ "@prefix": true,
2713
+ "@context": {}
2714
+ },
2715
+ "P2PCandidateUpdateRequest": {
2716
+ "@id": "undefineds:dist/edge/reachability/types.jsonld#P2PCandidateUpdateRequest",
2717
+ "@prefix": true,
2718
+ "@context": {}
2719
+ },
2720
+ "P2PSessionLimits": {
2721
+ "@id": "undefineds:dist/edge/reachability/types.jsonld#P2PSessionLimits",
2722
+ "@prefix": true,
2723
+ "@context": {}
2724
+ },
2725
+ "P2PSession": {
2726
+ "@id": "undefineds:dist/edge/reachability/types.jsonld#P2PSession",
2727
+ "@prefix": true,
2728
+ "@context": {}
2729
+ },
2730
+ "P2PSessionList": {
2731
+ "@id": "undefineds:dist/edge/reachability/types.jsonld#P2PSessionList",
2732
+ "@prefix": true,
2733
+ "@context": {}
2734
+ },
2735
+ "RelaySessionRequest": {
2736
+ "@id": "undefineds:dist/edge/reachability/types.jsonld#RelaySessionRequest",
2737
+ "@prefix": true,
2738
+ "@context": {}
2739
+ },
2740
+ "RelaySession": {
2741
+ "@id": "undefineds:dist/edge/reachability/types.jsonld#RelaySession",
2742
+ "@prefix": true,
2743
+ "@context": {}
2744
+ },
2745
+ "ReachabilitySessionService": {
2746
+ "@id": "undefineds:dist/edge/reachability/ReachabilitySessionService.jsonld#ReachabilitySessionService",
2747
+ "@prefix": true,
2748
+ "@context": {
2749
+ "options": {
2750
+ "@id": "undefineds:dist/edge/reachability/ReachabilitySessionService.jsonld#ReachabilitySessionService_options"
2751
+ }
2752
+ }
2753
+ },
2754
+ "P2PActiveSessionLimitExceededError": {
2755
+ "@id": "undefineds:dist/edge/reachability/ReachabilitySessionService.jsonld#P2PActiveSessionLimitExceededError",
2756
+ "@prefix": true,
2757
+ "@context": {}
2758
+ },
2759
+ "P2PCandidateUpdateLimitExceededError": {
2760
+ "@id": "undefineds:dist/edge/reachability/ReachabilitySessionService.jsonld#P2PCandidateUpdateLimitExceededError",
2761
+ "@prefix": true,
2762
+ "@context": {}
2763
+ },
2764
+ "P2PCandidateSessionLimitExceededError": {
2765
+ "@id": "undefineds:dist/edge/reachability/ReachabilitySessionService.jsonld#P2PCandidateSessionLimitExceededError",
2766
+ "@prefix": true,
2767
+ "@context": {}
2768
+ },
2769
+ "ReachabilitySessionServiceOptions": {
2770
+ "@id": "undefineds:dist/edge/reachability/ReachabilitySessionService.jsonld#ReachabilitySessionServiceOptions",
2771
+ "@prefix": true,
2772
+ "@context": {}
2773
+ },
2774
+ "ChooseAccessRouteOptions": {
2775
+ "@id": "undefineds:dist/edge/reachability/ManagedRouteSelector.jsonld#ChooseAccessRouteOptions",
2776
+ "@prefix": true,
2777
+ "@context": {}
2778
+ },
2779
+ "CanonicalFetchOptions": {
2780
+ "@id": "undefineds:dist/edge/reachability/CanonicalFetch.jsonld#CanonicalFetchOptions",
2781
+ "@prefix": true,
2782
+ "@context": {}
2783
+ },
2784
+ "P2PHttpRequestFrame": {
2785
+ "@id": "undefineds:dist/edge/reachability/P2PDataPlane.jsonld#P2PHttpRequestFrame",
2786
+ "@prefix": true,
2787
+ "@context": {}
2788
+ },
2789
+ "P2PHttpResponseFrame": {
2790
+ "@id": "undefineds:dist/edge/reachability/P2PDataPlane.jsonld#P2PHttpResponseFrame",
2791
+ "@prefix": true,
2792
+ "@context": {}
2793
+ },
2794
+ "P2PDataPlaneTransport": {
2795
+ "@id": "undefineds:dist/edge/reachability/P2PDataPlane.jsonld#P2PDataPlaneTransport",
2796
+ "@prefix": true,
2797
+ "@context": {}
2798
+ },
2799
+ "P2PDataPlaneFetchOptions": {
2800
+ "@id": "undefineds:dist/edge/reachability/P2PDataPlane.jsonld#P2PDataPlaneFetchOptions",
2801
+ "@prefix": true,
2802
+ "@context": {}
2803
+ },
2804
+ "P2PDataPlaneHandlerOptions": {
2805
+ "@id": "undefineds:dist/edge/reachability/P2PDataPlane.jsonld#P2PDataPlaneHandlerOptions",
2806
+ "@prefix": true,
2807
+ "@context": {}
2808
+ },
2809
+ "P2PDataPlaneHandler": {
2810
+ "@id": "undefineds:dist/edge/reachability/P2PDataPlane.jsonld#P2PDataPlaneHandler",
2811
+ "@prefix": true,
2812
+ "@context": {}
2813
+ },
2814
+ "P2PSignalingClientOptions": {
2815
+ "@id": "undefineds:dist/edge/reachability/P2PSignalingClient.jsonld#P2PSignalingClientOptions",
2816
+ "@prefix": true,
2817
+ "@context": {}
2818
+ },
2819
+ "CreateP2PSessionInput": {
2820
+ "@id": "undefineds:dist/edge/reachability/P2PSignalingClient.jsonld#CreateP2PSessionInput",
2821
+ "@prefix": true,
2822
+ "@context": {}
2823
+ },
2824
+ "P2PSignalingClient": {
2825
+ "@id": "undefineds:dist/edge/reachability/P2PSignalingClient.jsonld#P2PSignalingClient",
2826
+ "@prefix": true,
2827
+ "@context": {}
2828
+ },
2829
+ "TcpP2PDataPlaneTransportOptions": {
2830
+ "@id": "undefineds:dist/edge/reachability/TcpP2PDataPlaneTransport.jsonld#TcpP2PDataPlaneTransportOptions",
2831
+ "@prefix": true,
2832
+ "@context": {}
2833
+ },
2834
+ "TcpP2PDataPlaneTransport": {
2835
+ "@id": "undefineds:dist/edge/reachability/TcpP2PDataPlaneTransport.jsonld#TcpP2PDataPlaneTransport",
2836
+ "@prefix": true,
2837
+ "@context": {}
2838
+ },
2839
+ "TcpP2PDataPlaneServerOptions": {
2840
+ "@id": "undefineds:dist/edge/reachability/TcpP2PDataPlaneTransport.jsonld#TcpP2PDataPlaneServerOptions",
2841
+ "@prefix": true,
2842
+ "@context": {}
2843
+ },
2844
+ "TcpP2PDataPlaneServer": {
2845
+ "@id": "undefineds:dist/edge/reachability/TcpP2PDataPlaneTransport.jsonld#TcpP2PDataPlaneServer",
2846
+ "@prefix": true,
2847
+ "@context": {}
2848
+ },
2849
+ "TcpP2PDataPlaneSocketOptions": {
2850
+ "@id": "undefineds:dist/edge/reachability/TcpP2PDataPlaneTransport.jsonld#TcpP2PDataPlaneSocketOptions",
2851
+ "@prefix": true,
2852
+ "@context": {}
2853
+ },
2854
+ "TcpP2PDataPlaneSocketHandle": {
2855
+ "@id": "undefineds:dist/edge/reachability/TcpP2PDataPlaneTransport.jsonld#TcpP2PDataPlaneSocketHandle",
2856
+ "@prefix": true,
2857
+ "@context": {}
2858
+ },
2859
+ "TcpHolePunchPlanOptions": {
2860
+ "@id": "undefineds:dist/edge/reachability/TcpP2PDataPlaneTransport.jsonld#TcpHolePunchPlanOptions",
2861
+ "@prefix": true,
2862
+ "@context": {}
2863
+ },
2864
+ "TcpHolePunchPlan": {
2865
+ "@id": "undefineds:dist/edge/reachability/TcpP2PDataPlaneTransport.jsonld#TcpHolePunchPlan",
2866
+ "@prefix": true,
2867
+ "@context": {}
2868
+ },
2869
+ "CreateRawTcpHolePunchCandidatesOptions": {
2870
+ "@id": "undefineds:dist/edge/reachability/TcpP2PSignalingSession.jsonld#CreateRawTcpHolePunchCandidatesOptions",
2871
+ "@prefix": true,
2872
+ "@context": {}
2873
+ },
2874
+ "SignaledRawTcpP2PSessionOptions": {
2875
+ "@id": "undefineds:dist/edge/reachability/TcpP2PSignalingSession.jsonld#SignaledRawTcpP2PSessionOptions",
2876
+ "@prefix": true,
2877
+ "@context": {}
2878
+ },
2879
+ "SignaledRawTcpP2PSession": {
2880
+ "@id": "undefineds:dist/edge/reachability/TcpP2PSignalingSession.jsonld#SignaledRawTcpP2PSession",
2881
+ "@prefix": true,
2882
+ "@context": {}
2883
+ },
2884
+ "AnswerPendingRawTcpP2PSessionsOnceOptions": {
2885
+ "@id": "undefineds:dist/edge/reachability/TcpP2PSignalingSession.jsonld#AnswerPendingRawTcpP2PSessionsOnceOptions",
2886
+ "@prefix": true,
2887
+ "@context": {}
2888
+ },
2889
+ "WaitForRawTcpRemoteCandidatesOptions": {
2890
+ "@id": "undefineds:dist/edge/reachability/TcpP2PSignalingSession.jsonld#WaitForRawTcpRemoteCandidatesOptions",
2891
+ "@prefix": true,
2892
+ "@context": {}
2893
+ },
2894
+ "ConnectRawTcpP2PTransportOptions": {
2895
+ "@id": "undefineds:dist/edge/reachability/TcpP2PSignalingSession.jsonld#ConnectRawTcpP2PTransportOptions",
2896
+ "@prefix": true,
2897
+ "@context": {}
2898
+ },
2899
+ "RawTcpP2PConnectAttempt": {
2900
+ "@id": "undefineds:dist/edge/reachability/TcpP2PSignalingSession.jsonld#RawTcpP2PConnectAttempt",
2901
+ "@prefix": true,
2902
+ "@context": {}
2903
+ },
2904
+ "NodeRawTcpP2PConnectSocketEventBase": {
2905
+ "@id": "undefineds:dist/edge/reachability/TcpP2PSignalingSession.jsonld#NodeRawTcpP2PConnectSocketEventBase",
2906
+ "@prefix": true,
2907
+ "@context": {}
2908
+ },
2909
+ "CreateNodeRawTcpP2PConnectSocketOptions": {
2910
+ "@id": "undefineds:dist/edge/reachability/TcpP2PSignalingSession.jsonld#CreateNodeRawTcpP2PConnectSocketOptions",
2911
+ "@prefix": true,
2912
+ "@context": {}
2913
+ },
2914
+ "ConnectSignaledRawTcpP2PTransportOptions": {
2915
+ "@id": "undefineds:dist/edge/reachability/TcpP2PSignalingSession.jsonld#ConnectSignaledRawTcpP2PTransportOptions",
2916
+ "@prefix": true,
2917
+ "@context": {}
2918
+ },
2919
+ "ConnectedSignaledRawTcpP2PTransport": {
2920
+ "@id": "undefineds:dist/edge/reachability/TcpP2PSignalingSession.jsonld#ConnectedSignaledRawTcpP2PTransport",
2921
+ "@prefix": true,
2922
+ "@context": {}
2923
+ },
2924
+ "AcceptSignaledRawTcpP2PConnectionOnceOptions": {
2925
+ "@id": "undefineds:dist/edge/reachability/TcpP2PSignalingSession.jsonld#AcceptSignaledRawTcpP2PConnectionOnceOptions",
2926
+ "@prefix": true,
2927
+ "@context": {}
2928
+ },
2929
+ "AcceptedSignaledRawTcpP2PConnection": {
2930
+ "@id": "undefineds:dist/edge/reachability/TcpP2PSignalingSession.jsonld#AcceptedSignaledRawTcpP2PConnection",
2931
+ "@prefix": true,
2932
+ "@context": {}
2933
+ },
2934
+ "ManagedClientFetchOptions": {
2935
+ "@id": "undefineds:dist/edge/reachability/ManagedClientFetch.jsonld#ManagedClientFetchOptions",
2936
+ "@prefix": true,
2937
+ "@context": {}
2938
+ },
2939
+ "ManagedClientFetch": {
2940
+ "@id": "undefineds:dist/edge/reachability/ManagedClientFetch.jsonld#ManagedClientFetch",
2941
+ "@prefix": true,
2942
+ "@context": {}
2943
+ },
2944
+ "SignaledManagedClientFetchOptions": {
2945
+ "@id": "undefineds:dist/edge/reachability/ManagedClientFetch.jsonld#SignaledManagedClientFetchOptions",
2946
+ "@prefix": true,
2947
+ "@context": {}
2948
+ },
2949
+ "ManagedClientP2PSmokeOptions": {
2950
+ "@id": "undefineds:dist/edge/reachability/ManagedClientP2PSmoke.jsonld#ManagedClientP2PSmokeOptions",
2951
+ "@prefix": true,
2952
+ "@context": {}
2953
+ },
2954
+ "ManagedClientP2PSmokeResult": {
2955
+ "@id": "undefineds:dist/edge/reachability/ManagedClientP2PSmoke.jsonld#ManagedClientP2PSmokeResult",
2956
+ "@prefix": true,
2957
+ "@context": {}
2958
+ },
2959
+ "P2PRealnetAcceptancePlanOptions": {
2960
+ "@id": "undefineds:dist/edge/reachability/P2PRealnetAcceptance.jsonld#P2PRealnetAcceptancePlanOptions",
2961
+ "@prefix": true,
2962
+ "@context": {}
2963
+ },
2964
+ "P2PRealnetAcceptanceCommand": {
2965
+ "@id": "undefineds:dist/edge/reachability/P2PRealnetAcceptance.jsonld#P2PRealnetAcceptanceCommand",
2966
+ "@prefix": true,
2967
+ "@context": {}
2968
+ },
2969
+ "P2PRealnetAcceptanceMobilePlan": {
2970
+ "@id": "undefineds:dist/edge/reachability/P2PRealnetAcceptance.jsonld#P2PRealnetAcceptanceMobilePlan",
2971
+ "@prefix": true,
2972
+ "@context": {}
2973
+ },
2974
+ "P2PRealnetAcceptancePlan": {
2975
+ "@id": "undefineds:dist/edge/reachability/P2PRealnetAcceptance.jsonld#P2PRealnetAcceptancePlan",
2976
+ "@prefix": true,
2977
+ "@context": {}
2978
+ },
2979
+ "P2PRealnetAcceptanceVerifyOptions": {
2980
+ "@id": "undefineds:dist/edge/reachability/P2PRealnetAcceptance.jsonld#P2PRealnetAcceptanceVerifyOptions",
2981
+ "@prefix": true,
2982
+ "@context": {}
2983
+ },
2984
+ "P2PRealnetAcceptanceCheck": {
2985
+ "@id": "undefineds:dist/edge/reachability/P2PRealnetAcceptance.jsonld#P2PRealnetAcceptanceCheck",
2986
+ "@prefix": true,
2987
+ "@context": {}
2988
+ },
2989
+ "P2PRealnetAcceptanceVerification": {
2990
+ "@id": "undefineds:dist/edge/reachability/P2PRealnetAcceptance.jsonld#P2PRealnetAcceptanceVerification",
2991
+ "@prefix": true,
2992
+ "@context": {}
2557
2993
  }
2558
2994
  }
2559
2995
  ]
@@ -1,3 +1,15 @@
1
+ import { type P2PSignalingClient, type RawTcpP2PConnectSocket, type RawTcpP2PSleep } from './reachability';
2
+ export interface EdgeNodeP2PAcceptEvent {
3
+ sessionId: string;
4
+ nodeId: string;
5
+ clientId: string;
6
+ localCandidateCount: number;
7
+ remoteCandidateCount: number;
8
+ nodeAddress: CandidateAddressEvidence;
9
+ clientAddress: CandidateAddressEvidence;
10
+ acceptedAt: string;
11
+ }
12
+ type CandidateAddressEvidence = 'explicit-host' | 'explicit-address' | 'signal-observed' | 'candidate-url' | 'port-only';
1
13
  export interface EdgeNodeAgentOptions {
2
14
  signalEndpoint: string;
3
15
  nodeId: string;
@@ -30,6 +42,21 @@ export interface EdgeNodeAgentOptions {
30
42
  logPrefix?: string;
31
43
  autoRestart?: boolean;
32
44
  };
45
+ p2p?: {
46
+ enabled?: boolean | string;
47
+ targetBaseUrl: string | URL;
48
+ label?: string;
49
+ host?: string;
50
+ address?: string;
51
+ signaling?: P2PSignalingClient;
52
+ acceptIntervalMs?: number | string;
53
+ connectTimeoutMs?: number | string;
54
+ winnerSelectionWindowMs?: number | string;
55
+ localAddress?: string;
56
+ sleepMs?: RawTcpP2PSleep;
57
+ connectSocket?: RawTcpP2PConnectSocket;
58
+ onP2PAccept?: (event: EdgeNodeP2PAcceptEvent) => void;
59
+ };
33
60
  }
34
61
  export declare class EdgeNodeAgent {
35
62
  private readonly logger;
@@ -39,11 +66,26 @@ export declare class EdgeNodeAgent {
39
66
  private networkDetector?;
40
67
  private cachedNetworkInfo?;
41
68
  private lastNetworkDetection;
69
+ private p2pAcceptInterval?;
70
+ private p2pAcceptRunning;
71
+ private p2pAcceptGeneration;
72
+ private readonly p2pAcceptedSessionIds;
73
+ private readonly p2pSocketHandles;
42
74
  private readonly networkDetectionIntervalMs;
43
75
  start(options: EdgeNodeAgentOptions): Promise<void>;
44
76
  stop(): void;
77
+ private startP2PAcceptLoop;
78
+ private acceptP2PConnectionOnce;
79
+ private skipAcceptedP2PSessions;
80
+ private resolveP2PApiBaseUrl;
45
81
  private stringifyIfContent;
46
82
  private collectSystemMetrics;
83
+ private buildHeartbeatMetadata;
84
+ private buildP2PHeartbeatRoute;
85
+ private mergeHeartbeatRoutes;
86
+ private normalizePositiveInteger;
87
+ private normalizeNonNegativeInteger;
88
+ private normalizeBoolean;
47
89
  private handleHeartbeatResponse;
48
90
  private issueCertificateLocally;
49
91
  private ensureClusterCertificate;
@@ -54,3 +96,4 @@ export declare class EdgeNodeAgent {
54
96
  */
55
97
  private getNetworkInfo;
56
98
  }
99
+ export {};