@dxos/client-services 0.4.10-main.c42bfdb → 0.4.10-main.cb83c78

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 (40) hide show
  1. package/dist/lib/browser/{chunk-W7UANCHR.mjs → chunk-MR3A4F5A.mjs} +216 -149
  2. package/dist/lib/browser/chunk-MR3A4F5A.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +3 -3
  4. package/dist/lib/browser/meta.json +1 -1
  5. package/dist/lib/browser/packlets/testing/index.mjs +9 -4
  6. package/dist/lib/browser/packlets/testing/index.mjs.map +3 -3
  7. package/dist/lib/node/{chunk-JSVLZGJM.cjs → chunk-SICZTC25.cjs} +230 -163
  8. package/dist/lib/node/chunk-SICZTC25.cjs.map +7 -0
  9. package/dist/lib/node/index.cjs +43 -43
  10. package/dist/lib/node/meta.json +1 -1
  11. package/dist/lib/node/packlets/testing/index.cjs +14 -9
  12. package/dist/lib/node/packlets/testing/index.cjs.map +3 -3
  13. package/dist/types/src/packlets/indexing/util.d.ts +2 -1
  14. package/dist/types/src/packlets/indexing/util.d.ts.map +1 -1
  15. package/dist/types/src/packlets/invitations/invitation-extension.d.ts +1 -0
  16. package/dist/types/src/packlets/invitations/invitation-extension.d.ts.map +1 -1
  17. package/dist/types/src/packlets/invitations/invitations-handler.d.ts +4 -2
  18. package/dist/types/src/packlets/invitations/invitations-handler.d.ts.map +1 -1
  19. package/dist/types/src/packlets/invitations/invitations-service.d.ts.map +1 -1
  20. package/dist/types/src/packlets/services/service-context.d.ts.map +1 -1
  21. package/dist/types/src/packlets/services/service-host.d.ts +3 -1
  22. package/dist/types/src/packlets/services/service-host.d.ts.map +1 -1
  23. package/dist/types/src/packlets/testing/test-builder.d.ts +3 -1
  24. package/dist/types/src/packlets/testing/test-builder.d.ts.map +1 -1
  25. package/dist/types/src/version.d.ts +1 -1
  26. package/package.json +34 -34
  27. package/src/packlets/indexing/util.ts +2 -2
  28. package/src/packlets/invitations/invitation-extension.ts +28 -1
  29. package/src/packlets/invitations/invitations-handler.ts +73 -32
  30. package/src/packlets/invitations/invitations-service.ts +5 -5
  31. package/src/packlets/services/automerge-host.test.ts +9 -3
  32. package/src/packlets/services/service-context.test.ts +4 -1
  33. package/src/packlets/services/service-context.ts +5 -3
  34. package/src/packlets/services/service-host.ts +14 -3
  35. package/src/packlets/spaces/data-space-manager.test.ts +4 -4
  36. package/src/packlets/storage/level.ts +1 -1
  37. package/src/packlets/testing/test-builder.ts +20 -4
  38. package/src/version.ts +1 -1
  39. package/dist/lib/browser/chunk-W7UANCHR.mjs.map +0 -7
  40. package/dist/lib/node/chunk-JSVLZGJM.cjs.map +0 -7
@@ -18,50 +18,50 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var node_exports = {};
20
20
  __export(node_exports, {
21
- ClientRpcServer: () => import_chunk_JSVLZGJM.ClientRpcServer,
22
- ClientServicesHost: () => import_chunk_JSVLZGJM.ClientServicesHost,
23
- ClientServicesProviderResource: () => import_chunk_JSVLZGJM.ClientServicesProviderResource,
24
- DataSpace: () => import_chunk_JSVLZGJM.DataSpace,
25
- DataSpaceManager: () => import_chunk_JSVLZGJM.DataSpaceManager,
26
- DeviceInvitationProtocol: () => import_chunk_JSVLZGJM.DeviceInvitationProtocol,
27
- DevtoolsHostEvents: () => import_chunk_JSVLZGJM.DevtoolsHostEvents,
28
- DevtoolsServiceImpl: () => import_chunk_JSVLZGJM.DevtoolsServiceImpl,
29
- DiagnosticsCollector: () => import_chunk_JSVLZGJM.DiagnosticsCollector,
21
+ ClientRpcServer: () => import_chunk_SICZTC25.ClientRpcServer,
22
+ ClientServicesHost: () => import_chunk_SICZTC25.ClientServicesHost,
23
+ ClientServicesProviderResource: () => import_chunk_SICZTC25.ClientServicesProviderResource,
24
+ DataSpace: () => import_chunk_SICZTC25.DataSpace,
25
+ DataSpaceManager: () => import_chunk_SICZTC25.DataSpaceManager,
26
+ DeviceInvitationProtocol: () => import_chunk_SICZTC25.DeviceInvitationProtocol,
27
+ DevtoolsHostEvents: () => import_chunk_SICZTC25.DevtoolsHostEvents,
28
+ DevtoolsServiceImpl: () => import_chunk_SICZTC25.DevtoolsServiceImpl,
29
+ DiagnosticsCollector: () => import_chunk_SICZTC25.DiagnosticsCollector,
30
30
  IFrameHostRuntime: () => IFrameHostRuntime,
31
- Identity: () => import_chunk_JSVLZGJM.Identity,
32
- IdentityManager: () => import_chunk_JSVLZGJM.IdentityManager,
33
- IdentityServiceImpl: () => import_chunk_JSVLZGJM.IdentityServiceImpl,
34
- InvitationsHandler: () => import_chunk_JSVLZGJM.InvitationsHandler,
35
- InvitationsServiceImpl: () => import_chunk_JSVLZGJM.InvitationsServiceImpl,
36
- Lock: () => import_chunk_JSVLZGJM.Lock,
37
- ServiceContext: () => import_chunk_JSVLZGJM.ServiceContext,
38
- ServiceRegistry: () => import_chunk_JSVLZGJM.ServiceRegistry,
31
+ Identity: () => import_chunk_SICZTC25.Identity,
32
+ IdentityManager: () => import_chunk_SICZTC25.IdentityManager,
33
+ IdentityServiceImpl: () => import_chunk_SICZTC25.IdentityServiceImpl,
34
+ InvitationsHandler: () => import_chunk_SICZTC25.InvitationsHandler,
35
+ InvitationsServiceImpl: () => import_chunk_SICZTC25.InvitationsServiceImpl,
36
+ Lock: () => import_chunk_SICZTC25.Lock,
37
+ ServiceContext: () => import_chunk_SICZTC25.ServiceContext,
38
+ ServiceRegistry: () => import_chunk_SICZTC25.ServiceRegistry,
39
39
  SharedWorkerConnection: () => SharedWorkerConnection,
40
40
  ShellRuntimeImpl: () => ShellRuntimeImpl,
41
- SpaceInvitationProtocol: () => import_chunk_JSVLZGJM.SpaceInvitationProtocol,
42
- SpacesServiceImpl: () => import_chunk_JSVLZGJM.SpacesServiceImpl,
43
- TrustedKeySetAuthVerifier: () => import_chunk_JSVLZGJM.TrustedKeySetAuthVerifier,
41
+ SpaceInvitationProtocol: () => import_chunk_SICZTC25.SpaceInvitationProtocol,
42
+ SpacesServiceImpl: () => import_chunk_SICZTC25.SpacesServiceImpl,
43
+ TrustedKeySetAuthVerifier: () => import_chunk_SICZTC25.TrustedKeySetAuthVerifier,
44
44
  WorkerRuntime: () => WorkerRuntime,
45
45
  WorkerSession: () => WorkerSession,
46
- createAuthProvider: () => import_chunk_JSVLZGJM.createAuthProvider,
47
- createCollectDiagnosticsBroadcastHandler: () => import_chunk_JSVLZGJM.createCollectDiagnosticsBroadcastHandler,
48
- createCollectDiagnosticsBroadcastSender: () => import_chunk_JSVLZGJM.createCollectDiagnosticsBroadcastSender,
49
- createDiagnostics: () => import_chunk_JSVLZGJM.createDiagnostics,
50
- createLevel: () => import_chunk_JSVLZGJM.createLevel,
51
- createStorageObjects: () => import_chunk_JSVLZGJM.createStorageObjects,
52
- getNetworkPeers: () => import_chunk_JSVLZGJM.getNetworkPeers,
53
- invitationExpired: () => import_chunk_JSVLZGJM.invitationExpired,
54
- isLocked: () => import_chunk_JSVLZGJM.isLocked,
55
- subscribeToFeedBlocks: () => import_chunk_JSVLZGJM.subscribeToFeedBlocks,
56
- subscribeToFeeds: () => import_chunk_JSVLZGJM.subscribeToFeeds,
57
- subscribeToNetworkStatus: () => import_chunk_JSVLZGJM.subscribeToNetworkStatus,
58
- subscribeToNetworkTopics: () => import_chunk_JSVLZGJM.subscribeToNetworkTopics,
59
- subscribeToSignal: () => import_chunk_JSVLZGJM.subscribeToSignal,
60
- subscribeToSpaces: () => import_chunk_JSVLZGJM.subscribeToSpaces,
61
- subscribeToSwarmInfo: () => import_chunk_JSVLZGJM.subscribeToSwarmInfo
46
+ createAdmissionKeypair: () => import_chunk_SICZTC25.createAdmissionKeypair,
47
+ createAuthProvider: () => import_chunk_SICZTC25.createAuthProvider,
48
+ createCollectDiagnosticsBroadcastHandler: () => import_chunk_SICZTC25.createCollectDiagnosticsBroadcastHandler,
49
+ createCollectDiagnosticsBroadcastSender: () => import_chunk_SICZTC25.createCollectDiagnosticsBroadcastSender,
50
+ createDiagnostics: () => import_chunk_SICZTC25.createDiagnostics,
51
+ createLevel: () => import_chunk_SICZTC25.createLevel,
52
+ createStorageObjects: () => import_chunk_SICZTC25.createStorageObjects,
53
+ getNetworkPeers: () => import_chunk_SICZTC25.getNetworkPeers,
54
+ isLocked: () => import_chunk_SICZTC25.isLocked,
55
+ subscribeToFeedBlocks: () => import_chunk_SICZTC25.subscribeToFeedBlocks,
56
+ subscribeToFeeds: () => import_chunk_SICZTC25.subscribeToFeeds,
57
+ subscribeToNetworkStatus: () => import_chunk_SICZTC25.subscribeToNetworkStatus,
58
+ subscribeToNetworkTopics: () => import_chunk_SICZTC25.subscribeToNetworkTopics,
59
+ subscribeToSignal: () => import_chunk_SICZTC25.subscribeToSignal,
60
+ subscribeToSpaces: () => import_chunk_SICZTC25.subscribeToSpaces,
61
+ subscribeToSwarmInfo: () => import_chunk_SICZTC25.subscribeToSwarmInfo
62
62
  });
63
63
  module.exports = __toCommonJS(node_exports);
64
- var import_chunk_JSVLZGJM = require("./chunk-JSVLZGJM.cjs");
64
+ var import_chunk_SICZTC25 = require("./chunk-SICZTC25.cjs");
65
65
  var import_async = require("@dxos/async");
66
66
  var import_client_protocol = require("@dxos/client-protocol");
67
67
  var import_context = require("@dxos/context");
@@ -196,7 +196,7 @@ var IFrameHostRuntime = class {
196
196
  iceServers: this._config.get("runtime.services.ice")
197
197
  });
198
198
  const signals = this._config.get("runtime.services.signaling");
199
- this._clientServices = new import_chunk_JSVLZGJM.ClientServicesHost({
199
+ this._clientServices = new import_chunk_SICZTC25.ClientServicesHost({
200
200
  lockKey: LOCK_KEY,
201
201
  config: this._config,
202
202
  signalManager: signals ? new import_messaging.WebsocketSignalManager(signals) : new import_messaging.MemorySignalManager(new import_messaging.MemorySignalManagerContext()),
@@ -222,7 +222,7 @@ var IFrameHostRuntime = class {
222
222
  return handler(method, params);
223
223
  }
224
224
  };
225
- this._clientRpc = new import_chunk_JSVLZGJM.ClientRpcServer({
225
+ this._clientRpc = new import_chunk_SICZTC25.ClientRpcServer({
226
226
  serviceRegistry: this._clientServices.serviceRegistry,
227
227
  port: this._appPort,
228
228
  ...middleware
@@ -387,12 +387,12 @@ var WorkerSession = class {
387
387
  return handler(method, params);
388
388
  }
389
389
  };
390
- this._clientRpc = new import_chunk_JSVLZGJM.ClientRpcServer({
390
+ this._clientRpc = new import_chunk_SICZTC25.ClientRpcServer({
391
391
  serviceRegistry: this._serviceHost.serviceRegistry,
392
392
  port: appPort,
393
393
  ...middleware
394
394
  });
395
- this._shellClientRpc = shellPort ? new import_chunk_JSVLZGJM.ClientRpcServer({
395
+ this._shellClientRpc = shellPort ? new import_chunk_SICZTC25.ClientRpcServer({
396
396
  serviceRegistry: this._serviceHost.serviceRegistry,
397
397
  port: shellPort,
398
398
  ...middleware
@@ -519,7 +519,7 @@ var WorkerRuntime = class {
519
519
  this._signalTelemetryEnabled = false;
520
520
  this._acquireLock = acquireLock;
521
521
  this._releaseLock = releaseLock;
522
- this._clientServices = new import_chunk_JSVLZGJM.ClientServicesHost({
522
+ this._clientServices = new import_chunk_SICZTC25.ClientServicesHost({
523
523
  callbacks: {
524
524
  onReset: async () => onReset()
525
525
  }
@@ -663,6 +663,7 @@ var WorkerRuntime = class {
663
663
  TrustedKeySetAuthVerifier,
664
664
  WorkerRuntime,
665
665
  WorkerSession,
666
+ createAdmissionKeypair,
666
667
  createAuthProvider,
667
668
  createCollectDiagnosticsBroadcastHandler,
668
669
  createCollectDiagnosticsBroadcastSender,
@@ -670,7 +671,6 @@ var WorkerRuntime = class {
670
671
  createLevel,
671
672
  createStorageObjects,
672
673
  getNetworkPeers,
673
- invitationExpired,
674
674
  isLocked,
675
675
  subscribeToFeedBlocks,
676
676
  subscribeToFeeds,