@dxos/client-services 0.5.9-main.bdf733d → 0.5.9-main.bf0ae3e

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 (45) hide show
  1. package/dist/lib/browser/{chunk-KNGR7BYM.mjs → chunk-4IR3JP4U.mjs} +767 -605
  2. package/dist/lib/browser/chunk-4IR3JP4U.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +1 -1
  4. package/dist/lib/browser/meta.json +1 -1
  5. package/dist/lib/browser/packlets/testing/index.mjs +11 -11
  6. package/dist/lib/browser/packlets/testing/index.mjs.map +3 -3
  7. package/dist/lib/node/{chunk-WWHTBQNR.cjs → chunk-ZBIDLLZ4.cjs} +982 -824
  8. package/dist/lib/node/chunk-ZBIDLLZ4.cjs.map +7 -0
  9. package/dist/lib/node/index.cjs +42 -42
  10. package/dist/lib/node/meta.json +1 -1
  11. package/dist/lib/node/packlets/testing/index.cjs +17 -17
  12. package/dist/lib/node/packlets/testing/index.cjs.map +3 -3
  13. package/dist/types/src/packlets/identity/default-space-state-machine.d.ts +19 -0
  14. package/dist/types/src/packlets/identity/default-space-state-machine.d.ts.map +1 -0
  15. package/dist/types/src/packlets/identity/identity-service.d.ts +14 -7
  16. package/dist/types/src/packlets/identity/identity-service.d.ts.map +1 -1
  17. package/dist/types/src/packlets/identity/identity.d.ts +4 -1
  18. package/dist/types/src/packlets/identity/identity.d.ts.map +1 -1
  19. package/dist/types/src/packlets/services/service-context.d.ts.map +1 -1
  20. package/dist/types/src/packlets/services/service-host.d.ts +1 -1
  21. package/dist/types/src/packlets/services/service-host.d.ts.map +1 -1
  22. package/dist/types/src/packlets/spaces/data-space-manager.d.ts +5 -3
  23. package/dist/types/src/packlets/spaces/data-space-manager.d.ts.map +1 -1
  24. package/dist/types/src/packlets/spaces/data-space.d.ts +1 -0
  25. package/dist/types/src/packlets/spaces/data-space.d.ts.map +1 -1
  26. package/dist/types/src/packlets/spaces/spaces-service.d.ts +1 -1
  27. package/dist/types/src/packlets/spaces/spaces-service.d.ts.map +1 -1
  28. package/dist/types/src/packlets/testing/test-builder.d.ts +8 -6
  29. package/dist/types/src/packlets/testing/test-builder.d.ts.map +1 -1
  30. package/dist/types/src/version.d.ts +1 -1
  31. package/package.json +36 -36
  32. package/src/packlets/identity/default-space-state-machine.ts +44 -0
  33. package/src/packlets/identity/identity-service.test.ts +35 -5
  34. package/src/packlets/identity/identity-service.ts +50 -8
  35. package/src/packlets/identity/identity.ts +25 -2
  36. package/src/packlets/services/service-context.ts +1 -4
  37. package/src/packlets/services/service-host.ts +13 -40
  38. package/src/packlets/spaces/data-space-manager.test.ts +46 -1
  39. package/src/packlets/spaces/data-space-manager.ts +54 -25
  40. package/src/packlets/spaces/data-space.ts +24 -5
  41. package/src/packlets/spaces/spaces-service.ts +2 -2
  42. package/src/packlets/testing/test-builder.ts +12 -10
  43. package/src/version.ts +1 -1
  44. package/dist/lib/browser/chunk-KNGR7BYM.mjs.map +0 -7
  45. package/dist/lib/node/chunk-WWHTBQNR.cjs.map +0 -7
@@ -18,49 +18,49 @@ 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_WWHTBQNR.ClientRpcServer,
22
- ClientServicesHost: () => import_chunk_WWHTBQNR.ClientServicesHost,
23
- ClientServicesProviderResource: () => import_chunk_WWHTBQNR.ClientServicesProviderResource,
24
- DataSpace: () => import_chunk_WWHTBQNR.DataSpace,
25
- DataSpaceManager: () => import_chunk_WWHTBQNR.DataSpaceManager,
26
- DeviceInvitationProtocol: () => import_chunk_WWHTBQNR.DeviceInvitationProtocol,
27
- DevtoolsHostEvents: () => import_chunk_WWHTBQNR.DevtoolsHostEvents,
28
- DevtoolsServiceImpl: () => import_chunk_WWHTBQNR.DevtoolsServiceImpl,
29
- DiagnosticsCollector: () => import_chunk_WWHTBQNR.DiagnosticsCollector,
30
- Identity: () => import_chunk_WWHTBQNR.Identity,
31
- IdentityManager: () => import_chunk_WWHTBQNR.IdentityManager,
32
- IdentityServiceImpl: () => import_chunk_WWHTBQNR.IdentityServiceImpl,
33
- InvitationsHandler: () => import_chunk_WWHTBQNR.InvitationsHandler,
34
- InvitationsManager: () => import_chunk_WWHTBQNR.InvitationsManager,
35
- InvitationsServiceImpl: () => import_chunk_WWHTBQNR.InvitationsServiceImpl,
36
- Lock: () => import_chunk_WWHTBQNR.Lock,
37
- ServiceContext: () => import_chunk_WWHTBQNR.ServiceContext,
38
- ServiceRegistry: () => import_chunk_WWHTBQNR.ServiceRegistry,
39
- SpaceInvitationProtocol: () => import_chunk_WWHTBQNR.SpaceInvitationProtocol,
40
- SpacesServiceImpl: () => import_chunk_WWHTBQNR.SpacesServiceImpl,
41
- TrustedKeySetAuthVerifier: () => import_chunk_WWHTBQNR.TrustedKeySetAuthVerifier,
21
+ ClientRpcServer: () => import_chunk_ZBIDLLZ4.ClientRpcServer,
22
+ ClientServicesHost: () => import_chunk_ZBIDLLZ4.ClientServicesHost,
23
+ ClientServicesProviderResource: () => import_chunk_ZBIDLLZ4.ClientServicesProviderResource,
24
+ DataSpace: () => import_chunk_ZBIDLLZ4.DataSpace,
25
+ DataSpaceManager: () => import_chunk_ZBIDLLZ4.DataSpaceManager,
26
+ DeviceInvitationProtocol: () => import_chunk_ZBIDLLZ4.DeviceInvitationProtocol,
27
+ DevtoolsHostEvents: () => import_chunk_ZBIDLLZ4.DevtoolsHostEvents,
28
+ DevtoolsServiceImpl: () => import_chunk_ZBIDLLZ4.DevtoolsServiceImpl,
29
+ DiagnosticsCollector: () => import_chunk_ZBIDLLZ4.DiagnosticsCollector,
30
+ Identity: () => import_chunk_ZBIDLLZ4.Identity,
31
+ IdentityManager: () => import_chunk_ZBIDLLZ4.IdentityManager,
32
+ IdentityServiceImpl: () => import_chunk_ZBIDLLZ4.IdentityServiceImpl,
33
+ InvitationsHandler: () => import_chunk_ZBIDLLZ4.InvitationsHandler,
34
+ InvitationsManager: () => import_chunk_ZBIDLLZ4.InvitationsManager,
35
+ InvitationsServiceImpl: () => import_chunk_ZBIDLLZ4.InvitationsServiceImpl,
36
+ Lock: () => import_chunk_ZBIDLLZ4.Lock,
37
+ ServiceContext: () => import_chunk_ZBIDLLZ4.ServiceContext,
38
+ ServiceRegistry: () => import_chunk_ZBIDLLZ4.ServiceRegistry,
39
+ SpaceInvitationProtocol: () => import_chunk_ZBIDLLZ4.SpaceInvitationProtocol,
40
+ SpacesServiceImpl: () => import_chunk_ZBIDLLZ4.SpacesServiceImpl,
41
+ TrustedKeySetAuthVerifier: () => import_chunk_ZBIDLLZ4.TrustedKeySetAuthVerifier,
42
42
  WorkerRuntime: () => WorkerRuntime,
43
43
  WorkerSession: () => WorkerSession,
44
- createAdmissionKeypair: () => import_chunk_WWHTBQNR.createAdmissionKeypair,
45
- createAuthProvider: () => import_chunk_WWHTBQNR.createAuthProvider,
46
- createCollectDiagnosticsBroadcastHandler: () => import_chunk_WWHTBQNR.createCollectDiagnosticsBroadcastHandler,
47
- createCollectDiagnosticsBroadcastSender: () => import_chunk_WWHTBQNR.createCollectDiagnosticsBroadcastSender,
48
- createDiagnostics: () => import_chunk_WWHTBQNR.createDiagnostics,
49
- createLevel: () => import_chunk_WWHTBQNR.createLevel,
50
- createStorageObjects: () => import_chunk_WWHTBQNR.createStorageObjects,
51
- findPropertiesObject: () => import_chunk_WWHTBQNR.findPropertiesObject,
52
- getNetworkPeers: () => import_chunk_WWHTBQNR.getNetworkPeers,
53
- isLocked: () => import_chunk_WWHTBQNR.isLocked,
54
- subscribeToFeedBlocks: () => import_chunk_WWHTBQNR.subscribeToFeedBlocks,
55
- subscribeToFeeds: () => import_chunk_WWHTBQNR.subscribeToFeeds,
56
- subscribeToNetworkStatus: () => import_chunk_WWHTBQNR.subscribeToNetworkStatus,
57
- subscribeToNetworkTopics: () => import_chunk_WWHTBQNR.subscribeToNetworkTopics,
58
- subscribeToSignal: () => import_chunk_WWHTBQNR.subscribeToSignal,
59
- subscribeToSpaces: () => import_chunk_WWHTBQNR.subscribeToSpaces,
60
- subscribeToSwarmInfo: () => import_chunk_WWHTBQNR.subscribeToSwarmInfo
44
+ createAdmissionKeypair: () => import_chunk_ZBIDLLZ4.createAdmissionKeypair,
45
+ createAuthProvider: () => import_chunk_ZBIDLLZ4.createAuthProvider,
46
+ createCollectDiagnosticsBroadcastHandler: () => import_chunk_ZBIDLLZ4.createCollectDiagnosticsBroadcastHandler,
47
+ createCollectDiagnosticsBroadcastSender: () => import_chunk_ZBIDLLZ4.createCollectDiagnosticsBroadcastSender,
48
+ createDiagnostics: () => import_chunk_ZBIDLLZ4.createDiagnostics,
49
+ createLevel: () => import_chunk_ZBIDLLZ4.createLevel,
50
+ createStorageObjects: () => import_chunk_ZBIDLLZ4.createStorageObjects,
51
+ findPropertiesObject: () => import_chunk_ZBIDLLZ4.findPropertiesObject,
52
+ getNetworkPeers: () => import_chunk_ZBIDLLZ4.getNetworkPeers,
53
+ isLocked: () => import_chunk_ZBIDLLZ4.isLocked,
54
+ subscribeToFeedBlocks: () => import_chunk_ZBIDLLZ4.subscribeToFeedBlocks,
55
+ subscribeToFeeds: () => import_chunk_ZBIDLLZ4.subscribeToFeeds,
56
+ subscribeToNetworkStatus: () => import_chunk_ZBIDLLZ4.subscribeToNetworkStatus,
57
+ subscribeToNetworkTopics: () => import_chunk_ZBIDLLZ4.subscribeToNetworkTopics,
58
+ subscribeToSignal: () => import_chunk_ZBIDLLZ4.subscribeToSignal,
59
+ subscribeToSpaces: () => import_chunk_ZBIDLLZ4.subscribeToSpaces,
60
+ subscribeToSwarmInfo: () => import_chunk_ZBIDLLZ4.subscribeToSwarmInfo
61
61
  });
62
62
  module.exports = __toCommonJS(node_exports);
63
- var import_chunk_WWHTBQNR = require("./chunk-WWHTBQNR.cjs");
63
+ var import_chunk_ZBIDLLZ4 = require("./chunk-ZBIDLLZ4.cjs");
64
64
  var import_async = require("@dxos/async");
65
65
  var import_context = require("@dxos/context");
66
66
  var import_invariant = require("@dxos/invariant");
@@ -118,12 +118,12 @@ var WorkerSession = class {
118
118
  return handler(method, params);
119
119
  }
120
120
  };
121
- this._clientRpc = new import_chunk_WWHTBQNR.ClientRpcServer({
121
+ this._clientRpc = new import_chunk_ZBIDLLZ4.ClientRpcServer({
122
122
  serviceRegistry: this._serviceHost.serviceRegistry,
123
123
  port: appPort,
124
124
  ...middleware
125
125
  });
126
- this._shellClientRpc = shellPort ? new import_chunk_WWHTBQNR.ClientRpcServer({
126
+ this._shellClientRpc = shellPort ? new import_chunk_ZBIDLLZ4.ClientRpcServer({
127
127
  serviceRegistry: this._serviceHost.serviceRegistry,
128
128
  port: shellPort,
129
129
  ...middleware
@@ -250,7 +250,7 @@ var WorkerRuntime = class {
250
250
  this._signalTelemetryEnabled = false;
251
251
  this._acquireLock = acquireLock;
252
252
  this._releaseLock = releaseLock;
253
- this._clientServices = new import_chunk_WWHTBQNR.ClientServicesHost({
253
+ this._clientServices = new import_chunk_ZBIDLLZ4.ClientServicesHost({
254
254
  callbacks: {
255
255
  onReset: async () => onReset()
256
256
  }