@dxos/client-services 0.1.55 → 0.1.56-main.09ca29d

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 (48) hide show
  1. package/dist/lib/browser/{chunk-XSZIBW37.mjs → chunk-FD4L7N4K.mjs} +677 -293
  2. package/dist/lib/browser/chunk-FD4L7N4K.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +50 -33
  4. package/dist/lib/browser/index.mjs.map +3 -3
  5. package/dist/lib/browser/meta.json +1 -1
  6. package/dist/lib/browser/packlets/testing/index.mjs +12 -3
  7. package/dist/lib/browser/packlets/testing/index.mjs.map +3 -3
  8. package/dist/lib/node/index.cjs +729 -330
  9. package/dist/lib/node/index.cjs.map +3 -3
  10. package/dist/lib/node/meta.json +1 -1
  11. package/dist/lib/node/packlets/testing/index.cjs +691 -300
  12. package/dist/lib/node/packlets/testing/index.cjs.map +3 -3
  13. package/dist/types/src/packlets/identity/identity-manager.d.ts.map +1 -1
  14. package/dist/types/src/packlets/identity/identity-service.d.ts.map +1 -1
  15. package/dist/types/src/packlets/identity/identity.d.ts.map +1 -1
  16. package/dist/types/src/packlets/invitations/device-invitation-protocol.d.ts.map +1 -1
  17. package/dist/types/src/packlets/invitations/invitation-extension.d.ts.map +1 -1
  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/invitations/space-invitation-protocol.d.ts.map +1 -1
  21. package/dist/types/src/packlets/services/service-context.d.ts.map +1 -1
  22. package/dist/types/src/packlets/services/service-host.d.ts.map +1 -1
  23. package/dist/types/src/packlets/spaces/data-space-manager.d.ts.map +1 -1
  24. package/dist/types/src/packlets/spaces/notarization-plugin.d.ts.map +1 -1
  25. package/dist/types/src/packlets/spaces/spaces-service.d.ts.map +1 -1
  26. package/dist/types/src/packlets/testing/invitation-utils.d.ts.map +1 -1
  27. package/dist/types/src/packlets/vault/shell-runtime.d.ts.map +1 -1
  28. package/dist/types/src/packlets/vault/worker-session.d.ts.map +1 -1
  29. package/package.json +33 -33
  30. package/src/packlets/identity/authenticator.test.ts +2 -2
  31. package/src/packlets/identity/identity-manager.ts +1 -2
  32. package/src/packlets/identity/identity-service.ts +1 -2
  33. package/src/packlets/identity/identity.ts +1 -2
  34. package/src/packlets/invitations/device-invitation-protocol.ts +1 -2
  35. package/src/packlets/invitations/invitation-extension.ts +1 -2
  36. package/src/packlets/invitations/invitations-handler.ts +1 -2
  37. package/src/packlets/invitations/invitations-service.ts +1 -2
  38. package/src/packlets/invitations/space-invitation-protocol.ts +1 -2
  39. package/src/packlets/locks/node.ts +1 -1
  40. package/src/packlets/services/service-context.ts +1 -2
  41. package/src/packlets/services/service-host.ts +1 -2
  42. package/src/packlets/spaces/data-space-manager.ts +2 -3
  43. package/src/packlets/spaces/notarization-plugin.ts +1 -2
  44. package/src/packlets/spaces/spaces-service.ts +18 -12
  45. package/src/packlets/testing/invitation-utils.ts +1 -2
  46. package/src/packlets/vault/shell-runtime.ts +1 -2
  47. package/src/packlets/vault/worker-session.ts +1 -2
  48. package/dist/lib/browser/chunk-XSZIBW37.mjs.map +0 -7
@@ -1 +1 @@
1
- {"inputs":{"packages/sdk/client-services/src/packlets/devtools/feeds.ts":{"bytes":10371,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/devtools/keys.ts":{"bytes":2052,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/devtools/metadata.ts":{"bytes":1854,"imports":[{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/devtools/network.ts":{"bytes":10480,"imports":[{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/devtools/spaces.ts":{"bytes":5959,"imports":[{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/devtools/devtools.ts":{"bytes":15951,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"packages/sdk/client-services/src/packlets/devtools/feeds.ts","kind":"import-statement","original":"./feeds"},{"path":"packages/sdk/client-services/src/packlets/devtools/keys.ts","kind":"import-statement","original":"./keys"},{"path":"packages/sdk/client-services/src/packlets/devtools/metadata.ts","kind":"import-statement","original":"./metadata"},{"path":"packages/sdk/client-services/src/packlets/devtools/network.ts","kind":"import-statement","original":"./network"},{"path":"packages/sdk/client-services/src/packlets/devtools/spaces.ts","kind":"import-statement","original":"./spaces"}]},"packages/sdk/client-services/src/packlets/devtools/index.ts":{"bytes":726,"imports":[{"path":"packages/sdk/client-services/src/packlets/devtools/devtools.ts","kind":"import-statement","original":"./devtools"},{"path":"packages/sdk/client-services/src/packlets/devtools/feeds.ts","kind":"import-statement","original":"./feeds"},{"path":"packages/sdk/client-services/src/packlets/devtools/network.ts","kind":"import-statement","original":"./network"},{"path":"packages/sdk/client-services/src/packlets/devtools/spaces.ts","kind":"import-statement","original":"./spaces"}]},"packages/sdk/client-services/src/packlets/identity/authenticator.ts":{"bytes":11432,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/identity/identity.ts":{"bytes":19547,"imports":[{"path":"tiny-invariant","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"packages/sdk/client-services/src/packlets/identity/authenticator.ts","kind":"import-statement","original":"./authenticator"}]},"packages/sdk/client-services/src/packlets/identity/identity-manager.ts":{"bytes":30489,"imports":[{"path":"tiny-invariant","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/sdk/client-services/src/packlets/identity/authenticator.ts","kind":"import-statement","original":"./authenticator"},{"path":"packages/sdk/client-services/src/packlets/identity/identity.ts","kind":"import-statement","original":"./identity"}]},"packages/sdk/client-services/src/packlets/identity/identity-service.ts":{"bytes":7157,"imports":[{"path":"tiny-invariant","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/identity/index.ts":{"bytes":797,"imports":[{"path":"packages/sdk/client-services/src/packlets/identity/authenticator.ts","kind":"import-statement","original":"./authenticator"},{"path":"packages/sdk/client-services/src/packlets/identity/identity.ts","kind":"import-statement","original":"./identity"},{"path":"packages/sdk/client-services/src/packlets/identity/identity-manager.ts","kind":"import-statement","original":"./identity-manager"},{"path":"packages/sdk/client-services/src/packlets/identity/identity-service.ts","kind":"import-statement","original":"./identity-service"}]},"packages/sdk/client-services/src/packlets/invitations/device-invitation-protocol.ts":{"bytes":7796,"imports":[{"path":"tiny-invariant","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/invitations/invitation-protocol.ts":{"bytes":1457,"imports":[]},"packages/sdk/client-services/src/packlets/invitations/invitation-extension.ts":{"bytes":36208,"imports":[{"path":"tiny-invariant","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/errors","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/invitations","kind":"import-statement","external":true},{"path":"@dxos/teleport","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/invitations/invitations-handler.ts":{"bytes":59040,"imports":[{"path":"tiny-invariant","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/errors","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/invitations","kind":"import-statement","external":true},{"path":"packages/sdk/client-services/src/packlets/invitations/invitation-extension.ts","kind":"import-statement","original":"./invitation-extension"}]},"packages/sdk/client-services/src/packlets/invitations/invitations-service.ts":{"bytes":21109,"imports":[{"path":"tiny-invariant","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/invitations/space-invitation-protocol.ts":{"bytes":13266,"imports":[{"path":"tiny-invariant","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/invitations/index.ts":{"bytes":1003,"imports":[{"path":"packages/sdk/client-services/src/packlets/invitations/device-invitation-protocol.ts","kind":"import-statement","original":"./device-invitation-protocol"},{"path":"packages/sdk/client-services/src/packlets/invitations/invitation-protocol.ts","kind":"import-statement","original":"./invitation-protocol"},{"path":"packages/sdk/client-services/src/packlets/invitations/invitations-handler.ts","kind":"import-statement","original":"./invitations-handler"},{"path":"packages/sdk/client-services/src/packlets/invitations/invitations-service.ts","kind":"import-statement","original":"./invitations-service"},{"path":"packages/sdk/client-services/src/packlets/invitations/space-invitation-protocol.ts","kind":"import-statement","original":"./space-invitation-protocol"}]},"packages/sdk/client-services/src/packlets/services/client-rpc-server.ts":{"bytes":9824,"imports":[{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/rpc","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/spaces/notarization-plugin.ts":{"bytes":27672,"imports":[{"path":"tiny-invariant","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/teleport","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/spaces/data-space.ts":{"bytes":38427,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/echo-pipeline","kind":"import-statement","external":true},{"path":"@dxos/errors","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"@dxos/timeframe","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/sdk/client-services/src/packlets/identity/index.ts","kind":"import-statement","original":"../identity"},{"path":"packages/sdk/client-services/src/packlets/spaces/notarization-plugin.ts","kind":"import-statement","original":"./notarization-plugin"}]},"packages/sdk/client-services/src/packlets/spaces/genesis.ts":{"bytes":8749,"imports":[{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"@dxos/timeframe","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/spaces/data-space-manager.ts":{"bytes":33551,"imports":[{"path":"tiny-invariant","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/teleport-extension-gossip","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/sdk/client-services/src/packlets/identity/index.ts","kind":"import-statement","original":"../identity"},{"path":"packages/sdk/client-services/src/packlets/spaces/data-space.ts","kind":"import-statement","original":"./data-space"},{"path":"packages/sdk/client-services/src/packlets/spaces/genesis.ts","kind":"import-statement","original":"./genesis"}]},"packages/sdk/client-services/src/packlets/spaces/spaces-service.ts":{"bytes":28794,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/echo-pipeline","kind":"import-statement","external":true},{"path":"@dxos/errors","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/spaces/index.ts":{"bytes":700,"imports":[{"path":"packages/sdk/client-services/src/packlets/spaces/data-space-manager.ts","kind":"import-statement","original":"./data-space-manager"},{"path":"packages/sdk/client-services/src/packlets/spaces/data-space.ts","kind":"import-statement","original":"./data-space"},{"path":"packages/sdk/client-services/src/packlets/spaces/spaces-service.ts","kind":"import-statement","original":"./spaces-service"}]},"packages/sdk/client-services/src/packlets/services/service-context.ts":{"bytes":30649,"imports":[{"path":"tiny-invariant","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/echo-pipeline","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/keyring","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/teleport-extension-object-sync","kind":"import-statement","external":true},{"path":"packages/sdk/client-services/src/packlets/identity/index.ts","kind":"import-statement","original":"../identity"},{"path":"packages/sdk/client-services/src/packlets/invitations/index.ts","kind":"import-statement","original":"../invitations"},{"path":"packages/sdk/client-services/src/packlets/spaces/index.ts","kind":"import-statement","original":"../spaces"}]},"packages/sdk/client-services/src/packlets/devices/devices-service.ts":{"bytes":5924,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/devices/index.ts":{"bytes":494,"imports":[{"path":"packages/sdk/client-services/src/packlets/devices/devices-service.ts","kind":"import-statement","original":"./devices-service"}]},"packages/sdk/client-services/src/packlets/locks/resource-lock.ts":{"bytes":1065,"imports":[]},"packages/sdk/client-services/src/packlets/locks/browser.ts":{"bytes":10266,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/locks/index.ts":{"bytes":566,"imports":[{"path":"packages/sdk/client-services/src/packlets/locks/resource-lock.ts","kind":"import-statement","original":"./resource-lock"},{"path":"packages/sdk/client-services/src/packlets/locks/browser.ts","kind":"import-statement","original":"./node"}]},"packages/sdk/client-services/src/packlets/logging/logging-service.ts":{"bytes":15137,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/logging/index.ts":{"bytes":494,"imports":[{"path":"packages/sdk/client-services/src/packlets/logging/logging-service.ts","kind":"import-statement","original":"./logging-service"}]},"packages/sdk/client-services/src/packlets/network/network-service.ts":{"bytes":4415,"imports":[{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/network/index.ts":{"bytes":494,"imports":[{"path":"packages/sdk/client-services/src/packlets/network/network-service.ts","kind":"import-statement","original":"./network-service"}]},"packages/sdk/client-services/src/packlets/storage/storage.ts":{"bytes":7200,"imports":[{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/errors","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/config","kind":"import-statement","external":true},{"path":"@dxos/random-access-storage","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/storage/index.ts":{"bytes":474,"imports":[{"path":"packages/sdk/client-services/src/packlets/storage/storage.ts","kind":"import-statement","original":"./storage"}]},"packages/sdk/client-services/src/packlets/system/system-service.ts":{"bytes":5989,"imports":[{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/system/index.ts":{"bytes":492,"imports":[{"path":"packages/sdk/client-services/src/packlets/system/system-service.ts","kind":"import-statement","original":"./system-service"}]},"packages/sdk/client-services/src/packlets/services/service-registry.ts":{"bytes":2712,"imports":[]},"packages/sdk/client-services/src/packlets/services/service-host.ts":{"bytes":33090,"imports":[{"path":"tiny-invariant","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/document-model","kind":"import-statement","external":true},{"path":"@dxos/echo-pipeline","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/messaging","kind":"import-statement","external":true},{"path":"@dxos/model-factory","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/text-model","kind":"import-statement","external":true},{"path":"packages/sdk/client-services/src/packlets/devices/index.ts","kind":"import-statement","original":"../devices"},{"path":"packages/sdk/client-services/src/packlets/devtools/index.ts","kind":"import-statement","original":"../devtools"},{"path":"packages/sdk/client-services/src/packlets/identity/index.ts","kind":"import-statement","original":"../identity"},{"path":"packages/sdk/client-services/src/packlets/invitations/index.ts","kind":"import-statement","original":"../invitations"},{"path":"packages/sdk/client-services/src/packlets/locks/index.ts","kind":"import-statement","original":"../locks"},{"path":"packages/sdk/client-services/src/packlets/logging/index.ts","kind":"import-statement","original":"../logging"},{"path":"packages/sdk/client-services/src/packlets/network/index.ts","kind":"import-statement","original":"../network"},{"path":"packages/sdk/client-services/src/packlets/spaces/index.ts","kind":"import-statement","original":"../spaces"},{"path":"packages/sdk/client-services/src/packlets/storage/index.ts","kind":"import-statement","original":"../storage"},{"path":"packages/sdk/client-services/src/packlets/system/index.ts","kind":"import-statement","original":"../system"},{"path":"packages/sdk/client-services/src/packlets/services/service-context.ts","kind":"import-statement","original":"./service-context"},{"path":"packages/sdk/client-services/src/packlets/services/service-registry.ts","kind":"import-statement","original":"./service-registry"}]},"packages/sdk/client-services/src/packlets/services/index.ts":{"bytes":816,"imports":[{"path":"packages/sdk/client-services/src/packlets/services/client-rpc-server.ts","kind":"import-statement","original":"./client-rpc-server"},{"path":"packages/sdk/client-services/src/packlets/services/service-context.ts","kind":"import-statement","original":"./service-context"},{"path":"packages/sdk/client-services/src/packlets/services/service-host.ts","kind":"import-statement","original":"./service-host"},{"path":"packages/sdk/client-services/src/packlets/services/service-registry.ts","kind":"import-statement","original":"./service-registry"}]},"packages/sdk/client-services/src/packlets/vault/shell-runtime.ts":{"bytes":7321,"imports":[{"path":"tiny-invariant","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/iframe","kind":"import-statement","external":true},{"path":"@dxos/rpc","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/vault/iframe-host-runtime.ts":{"bytes":15068,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/messaging","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/sdk/client-services/src/packlets/services/index.ts","kind":"import-statement","original":"../services"},{"path":"packages/sdk/client-services/src/packlets/services/client-rpc-server.ts","kind":"import-statement","original":"../services/client-rpc-server"},{"path":"packages/sdk/client-services/src/packlets/vault/shell-runtime.ts","kind":"import-statement","original":"./shell-runtime"}]},"packages/sdk/client-services/src/packlets/vault/iframe-proxy-runtime.ts":{"bytes":10863,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/errors","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"@dxos/rpc","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/sdk/client-services/src/packlets/vault/shell-runtime.ts","kind":"import-statement","original":"./shell-runtime"}]},"packages/sdk/client-services/src/packlets/vault/worker-session.ts":{"bytes":16101,"imports":[{"path":"tiny-invariant","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/rpc","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/sdk/client-services/src/packlets/services/index.ts","kind":"import-statement","original":"../services"}]},"packages/sdk/client-services/src/packlets/vault/worker-runtime.ts":{"bytes":12945,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/messaging","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"packages/sdk/client-services/src/packlets/services/index.ts","kind":"import-statement","original":"../services"},{"path":"packages/sdk/client-services/src/packlets/vault/worker-session.ts","kind":"import-statement","original":"./worker-session"}]},"packages/sdk/client-services/src/packlets/vault/index.ts":{"bytes":933,"imports":[{"path":"packages/sdk/client-services/src/packlets/vault/iframe-host-runtime.ts","kind":"import-statement","original":"./iframe-host-runtime"},{"path":"packages/sdk/client-services/src/packlets/vault/iframe-proxy-runtime.ts","kind":"import-statement","original":"./iframe-proxy-runtime"},{"path":"packages/sdk/client-services/src/packlets/vault/shell-runtime.ts","kind":"import-statement","original":"./shell-runtime"},{"path":"packages/sdk/client-services/src/packlets/vault/worker-runtime.ts","kind":"import-statement","original":"./worker-runtime"},{"path":"packages/sdk/client-services/src/packlets/vault/worker-session.ts","kind":"import-statement","original":"./worker-session"}]},"packages/sdk/client-services/src/index.ts":{"bytes":1252,"imports":[{"path":"packages/sdk/client-services/src/packlets/devtools/index.ts","kind":"import-statement","original":"./packlets/devtools"},{"path":"packages/sdk/client-services/src/packlets/identity/index.ts","kind":"import-statement","original":"./packlets/identity"},{"path":"packages/sdk/client-services/src/packlets/invitations/index.ts","kind":"import-statement","original":"./packlets/invitations"},{"path":"packages/sdk/client-services/src/packlets/services/index.ts","kind":"import-statement","original":"./packlets/services"},{"path":"packages/sdk/client-services/src/packlets/spaces/index.ts","kind":"import-statement","original":"./packlets/spaces"},{"path":"packages/sdk/client-services/src/packlets/storage/index.ts","kind":"import-statement","original":"./packlets/storage"},{"path":"packages/sdk/client-services/src/packlets/vault/index.ts","kind":"import-statement","original":"./packlets/vault"},{"path":"packages/sdk/client-services/src/packlets/locks/index.ts","kind":"import-statement","original":"./packlets/locks"}]},"packages/sdk/client-services/src/packlets/testing/credential-utils.ts":{"bytes":2298,"imports":[{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/testing/invitation-utils.ts":{"bytes":22875,"imports":[{"path":"tiny-invariant","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"packages/sdk/client-services/src/packlets/services/index.ts","kind":"import-statement","original":"../services"}]},"packages/sdk/client-services/src/packlets/testing/test-builder.ts":{"bytes":20949,"imports":[{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/echo-pipeline","kind":"import-statement","external":true},{"path":"@dxos/echo-pipeline/testing","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/keyring","kind":"import-statement","external":true},{"path":"@dxos/messaging","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"@dxos/random-access-storage","kind":"import-statement","external":true},{"path":"@dxos/teleport-extension-object-sync","kind":"import-statement","external":true},{"path":"packages/sdk/client-services/src/packlets/services/index.ts","kind":"import-statement","original":"../services"},{"path":"packages/sdk/client-services/src/packlets/spaces/index.ts","kind":"import-statement","original":"../spaces"}]},"packages/sdk/client-services/src/packlets/testing/index.ts":{"bytes":707,"imports":[{"path":"packages/sdk/client-services/src/packlets/testing/credential-utils.ts","kind":"import-statement","original":"./credential-utils"},{"path":"packages/sdk/client-services/src/packlets/testing/invitation-utils.ts","kind":"import-statement","original":"./invitation-utils"},{"path":"packages/sdk/client-services/src/packlets/testing/test-builder.ts","kind":"import-statement","original":"./test-builder"}]}},"outputs":{"packages/sdk/client-services/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":30293},"packages/sdk/client-services/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/sdk/client-services/dist/lib/browser/chunk-XSZIBW37.mjs","kind":"import-statement"},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/messaging","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"tiny-invariant","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/iframe","kind":"import-statement","external":true},{"path":"@dxos/rpc","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/errors","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"@dxos/rpc","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/messaging","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"tiny-invariant","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/rpc","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["ClientRpcServer","ClientServicesHost","DataSpace","DataSpaceManager","DeviceInvitationProtocol","DevtoolsHostEvents","DevtoolsServiceImpl","IFrameHostRuntime","IFrameProxyRuntime","Identity","IdentityManager","IdentityServiceImpl","InvitationsHandler","InvitationsServiceImpl","Lock","ServiceContext","ServiceRegistry","ShellRuntimeImpl","SpaceInvitationProtocol","SpacesServiceImpl","TrustedKeySetAuthVerifier","WorkerRuntime","WorkerSession","createAuthProvider","createDefaultModelFactory","createStorageObjects","getNetworkPeers","isLocked","subscribeToFeedBlocks","subscribeToFeeds","subscribeToNetworkStatus","subscribeToNetworkTopics","subscribeToSignal","subscribeToSpaces","subscribeToSwarmInfo"],"entryPoint":"packages/sdk/client-services/src/index.ts","inputs":{"packages/sdk/client-services/src/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/vault/iframe-host-runtime.ts":{"bytesInOutput":4019},"packages/sdk/client-services/src/packlets/vault/shell-runtime.ts":{"bytesInOutput":1584},"packages/sdk/client-services/src/packlets/vault/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/vault/iframe-proxy-runtime.ts":{"bytesInOutput":2507},"packages/sdk/client-services/src/packlets/vault/worker-runtime.ts":{"bytesInOutput":3143},"packages/sdk/client-services/src/packlets/vault/worker-session.ts":{"bytesInOutput":4783}},"bytes":18044},"packages/sdk/client-services/dist/lib/browser/packlets/testing/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":24532},"packages/sdk/client-services/dist/lib/browser/packlets/testing/index.mjs":{"imports":[{"path":"packages/sdk/client-services/dist/lib/browser/chunk-XSZIBW37.mjs","kind":"import-statement"},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"tiny-invariant","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/echo-pipeline","kind":"import-statement","external":true},{"path":"@dxos/echo-pipeline/testing","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/keyring","kind":"import-statement","external":true},{"path":"@dxos/messaging","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"@dxos/random-access-storage","kind":"import-statement","external":true},{"path":"@dxos/teleport-extension-object-sync","kind":"import-statement","external":true}],"exports":["TestBuilder","TestPeer","createIdentity","createMockCredential","createPeers","createServiceContext","createServiceHost","createSigningContext","performInvitation","sanitizeInvitation","syncItemsLocal"],"entryPoint":"packages/sdk/client-services/src/packlets/testing/index.ts","inputs":{"packages/sdk/client-services/src/packlets/testing/credential-utils.ts":{"bytesInOutput":403},"packages/sdk/client-services/src/packlets/testing/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/testing/invitation-utils.ts":{"bytesInOutput":6773},"packages/sdk/client-services/src/packlets/testing/test-builder.ts":{"bytesInOutput":5477}},"bytes":13296},"packages/sdk/client-services/dist/lib/browser/chunk-XSZIBW37.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":250685},"packages/sdk/client-services/dist/lib/browser/chunk-XSZIBW37.mjs":{"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"tiny-invariant","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"tiny-invariant","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"tiny-invariant","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"tiny-invariant","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"tiny-invariant","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/errors","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/invitations","kind":"import-statement","external":true},{"path":"tiny-invariant","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/errors","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/invitations","kind":"import-statement","external":true},{"path":"@dxos/teleport","kind":"import-statement","external":true},{"path":"tiny-invariant","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"tiny-invariant","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/rpc","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/echo-pipeline","kind":"import-statement","external":true},{"path":"@dxos/errors","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"@dxos/timeframe","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"tiny-invariant","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/teleport","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"tiny-invariant","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/teleport-extension-gossip","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"@dxos/timeframe","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/echo-pipeline","kind":"import-statement","external":true},{"path":"@dxos/errors","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"tiny-invariant","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/echo-pipeline","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/keyring","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/teleport-extension-object-sync","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/errors","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/config","kind":"import-statement","external":true},{"path":"@dxos/random-access-storage","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"tiny-invariant","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/document-model","kind":"import-statement","external":true},{"path":"@dxos/echo-pipeline","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/messaging","kind":"import-statement","external":true},{"path":"@dxos/model-factory","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/text-model","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true}],"exports":["ClientRpcServer","ClientServicesHost","DataSpace","DataSpaceManager","DeviceInvitationProtocol","DevtoolsHostEvents","DevtoolsServiceImpl","Identity","IdentityManager","IdentityServiceImpl","InvitationsHandler","InvitationsServiceImpl","Lock","ServiceContext","ServiceRegistry","SpaceInvitationProtocol","SpacesServiceImpl","TrustedKeySetAuthVerifier","createAuthProvider","createDefaultModelFactory","createStorageObjects","getNetworkPeers","isLocked","subscribeToFeedBlocks","subscribeToFeeds","subscribeToNetworkStatus","subscribeToNetworkTopics","subscribeToSignal","subscribeToSpaces","subscribeToSwarmInfo"],"inputs":{"packages/sdk/client-services/src/packlets/devtools/feeds.ts":{"bytesInOutput":2446},"packages/sdk/client-services/src/packlets/devtools/network.ts":{"bytesInOutput":2399},"packages/sdk/client-services/src/packlets/devtools/spaces.ts":{"bytesInOutput":1284},"packages/sdk/client-services/src/packlets/devtools/devtools.ts":{"bytesInOutput":2995},"packages/sdk/client-services/src/packlets/devtools/keys.ts":{"bytesInOutput":340},"packages/sdk/client-services/src/packlets/devtools/metadata.ts":{"bytesInOutput":280},"packages/sdk/client-services/src/packlets/devtools/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/identity/authenticator.ts":{"bytesInOutput":3097},"packages/sdk/client-services/src/packlets/identity/identity.ts":{"bytesInOutput":4745},"packages/sdk/client-services/src/packlets/identity/identity-manager.ts":{"bytesInOutput":8451},"packages/sdk/client-services/src/packlets/identity/identity-service.ts":{"bytesInOutput":1581},"packages/sdk/client-services/src/packlets/identity/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/invitations/device-invitation-protocol.ts":{"bytesInOutput":1722},"packages/sdk/client-services/src/packlets/invitations/invitations-handler.ts":{"bytesInOutput":17581},"packages/sdk/client-services/src/packlets/invitations/invitation-extension.ts":{"bytesInOutput":10254},"packages/sdk/client-services/src/packlets/invitations/invitations-service.ts":{"bytesInOutput":5451},"packages/sdk/client-services/src/packlets/invitations/space-invitation-protocol.ts":{"bytesInOutput":3243},"packages/sdk/client-services/src/packlets/invitations/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/services/client-rpc-server.ts":{"bytesInOutput":2072},"packages/sdk/client-services/src/packlets/spaces/data-space.ts":{"bytesInOutput":10069},"packages/sdk/client-services/src/packlets/spaces/notarization-plugin.ts":{"bytesInOutput":7413},"packages/sdk/client-services/src/packlets/spaces/data-space-manager.ts":{"bytesInOutput":10041},"packages/sdk/client-services/src/packlets/spaces/genesis.ts":{"bytesInOutput":2315},"packages/sdk/client-services/src/packlets/spaces/spaces-service.ts":{"bytesInOutput":7810},"packages/sdk/client-services/src/packlets/spaces/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/services/service-context.ts":{"bytesInOutput":7963},"packages/sdk/client-services/src/packlets/locks/browser.ts":{"bytesInOutput":3588},"packages/sdk/client-services/src/packlets/locks/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/storage/storage.ts":{"bytesInOutput":1856},"packages/sdk/client-services/src/packlets/storage/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/services/service-registry.ts":{"bytesInOutput":480},"packages/sdk/client-services/src/packlets/services/service-host.ts":{"bytesInOutput":9064},"packages/sdk/client-services/src/packlets/devices/devices-service.ts":{"bytesInOutput":1491},"packages/sdk/client-services/src/packlets/devices/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/logging/logging-service.ts":{"bytesInOutput":3671},"packages/sdk/client-services/src/packlets/logging/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/network/network-service.ts":{"bytesInOutput":938},"packages/sdk/client-services/src/packlets/network/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/system/system-service.ts":{"bytesInOutput":1098},"packages/sdk/client-services/src/packlets/system/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/services/index.ts":{"bytesInOutput":0}},"bytes":138999}}}
1
+ {"inputs":{"packages/sdk/client-services/src/packlets/devtools/feeds.ts":{"bytes":10381,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/devtools/keys.ts":{"bytes":2062,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/devtools/metadata.ts":{"bytes":1864,"imports":[{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/devtools/network.ts":{"bytes":10490,"imports":[{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/devtools/spaces.ts":{"bytes":5969,"imports":[{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/devtools/devtools.ts":{"bytes":15961,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"packages/sdk/client-services/src/packlets/devtools/feeds.ts","kind":"import-statement","original":"./feeds"},{"path":"packages/sdk/client-services/src/packlets/devtools/keys.ts","kind":"import-statement","original":"./keys"},{"path":"packages/sdk/client-services/src/packlets/devtools/metadata.ts","kind":"import-statement","original":"./metadata"},{"path":"packages/sdk/client-services/src/packlets/devtools/network.ts","kind":"import-statement","original":"./network"},{"path":"packages/sdk/client-services/src/packlets/devtools/spaces.ts","kind":"import-statement","original":"./spaces"}]},"packages/sdk/client-services/src/packlets/devtools/index.ts":{"bytes":736,"imports":[{"path":"packages/sdk/client-services/src/packlets/devtools/devtools.ts","kind":"import-statement","original":"./devtools"},{"path":"packages/sdk/client-services/src/packlets/devtools/feeds.ts","kind":"import-statement","original":"./feeds"},{"path":"packages/sdk/client-services/src/packlets/devtools/network.ts","kind":"import-statement","original":"./network"},{"path":"packages/sdk/client-services/src/packlets/devtools/spaces.ts","kind":"import-statement","original":"./spaces"}]},"packages/sdk/client-services/src/packlets/identity/authenticator.ts":{"bytes":11442,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/identity/identity.ts":{"bytes":19820,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"packages/sdk/client-services/src/packlets/identity/authenticator.ts","kind":"import-statement","original":"./authenticator"}]},"packages/sdk/client-services/src/packlets/identity/identity-manager.ts":{"bytes":32052,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/sdk/client-services/src/packlets/identity/authenticator.ts","kind":"import-statement","original":"./authenticator"},{"path":"packages/sdk/client-services/src/packlets/identity/identity.ts","kind":"import-statement","original":"./identity"}]},"packages/sdk/client-services/src/packlets/identity/identity-service.ts":{"bytes":7416,"imports":[{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/identity/index.ts":{"bytes":807,"imports":[{"path":"packages/sdk/client-services/src/packlets/identity/authenticator.ts","kind":"import-statement","original":"./authenticator"},{"path":"packages/sdk/client-services/src/packlets/identity/identity.ts","kind":"import-statement","original":"./identity"},{"path":"packages/sdk/client-services/src/packlets/identity/identity-manager.ts","kind":"import-statement","original":"./identity-manager"},{"path":"packages/sdk/client-services/src/packlets/identity/identity-service.ts","kind":"import-statement","original":"./identity-service"}]},"packages/sdk/client-services/src/packlets/invitations/device-invitation-protocol.ts":{"bytes":8378,"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/invitations/invitation-protocol.ts":{"bytes":1467,"imports":[]},"packages/sdk/client-services/src/packlets/invitations/invitation-extension.ts":{"bytes":37482,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/errors","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/invitations","kind":"import-statement","external":true},{"path":"@dxos/teleport","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/invitations/invitations-handler.ts":{"bytes":60186,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/errors","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/invitations","kind":"import-statement","external":true},{"path":"packages/sdk/client-services/src/packlets/invitations/invitation-extension.ts","kind":"import-statement","original":"./invitation-extension"}]},"packages/sdk/client-services/src/packlets/invitations/invitations-service.ts":{"bytes":21502,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/invitations/space-invitation-protocol.ts":{"bytes":14956,"imports":[{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/invitations/index.ts":{"bytes":1013,"imports":[{"path":"packages/sdk/client-services/src/packlets/invitations/device-invitation-protocol.ts","kind":"import-statement","original":"./device-invitation-protocol"},{"path":"packages/sdk/client-services/src/packlets/invitations/invitation-protocol.ts","kind":"import-statement","original":"./invitation-protocol"},{"path":"packages/sdk/client-services/src/packlets/invitations/invitations-handler.ts","kind":"import-statement","original":"./invitations-handler"},{"path":"packages/sdk/client-services/src/packlets/invitations/invitations-service.ts","kind":"import-statement","original":"./invitations-service"},{"path":"packages/sdk/client-services/src/packlets/invitations/space-invitation-protocol.ts","kind":"import-statement","original":"./space-invitation-protocol"}]},"packages/sdk/client-services/src/packlets/services/client-rpc-server.ts":{"bytes":9834,"imports":[{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/rpc","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/spaces/notarization-plugin.ts":{"bytes":28368,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/teleport","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/spaces/data-space.ts":{"bytes":38437,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/echo-pipeline","kind":"import-statement","external":true},{"path":"@dxos/errors","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"@dxos/timeframe","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/sdk/client-services/src/packlets/identity/index.ts","kind":"import-statement","original":"../identity"},{"path":"packages/sdk/client-services/src/packlets/spaces/notarization-plugin.ts","kind":"import-statement","original":"./notarization-plugin"}]},"packages/sdk/client-services/src/packlets/spaces/genesis.ts":{"bytes":8759,"imports":[{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"@dxos/timeframe","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/spaces/data-space-manager.ts":{"bytes":34438,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/teleport-extension-gossip","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/sdk/client-services/src/packlets/identity/index.ts","kind":"import-statement","original":"../identity"},{"path":"packages/sdk/client-services/src/packlets/spaces/data-space.ts","kind":"import-statement","original":"./data-space"},{"path":"packages/sdk/client-services/src/packlets/spaces/genesis.ts","kind":"import-statement","original":"./genesis"}]},"packages/sdk/client-services/src/packlets/spaces/spaces-service.ts":{"bytes":29531,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/echo-pipeline","kind":"import-statement","external":true},{"path":"@dxos/errors","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/spaces/index.ts":{"bytes":710,"imports":[{"path":"packages/sdk/client-services/src/packlets/spaces/data-space-manager.ts","kind":"import-statement","original":"./data-space-manager"},{"path":"packages/sdk/client-services/src/packlets/spaces/data-space.ts","kind":"import-statement","original":"./data-space"},{"path":"packages/sdk/client-services/src/packlets/spaces/spaces-service.ts","kind":"import-statement","original":"./spaces-service"}]},"packages/sdk/client-services/src/packlets/services/service-context.ts":{"bytes":31145,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/echo-pipeline","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keyring","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/teleport-extension-object-sync","kind":"import-statement","external":true},{"path":"packages/sdk/client-services/src/packlets/identity/index.ts","kind":"import-statement","original":"../identity"},{"path":"packages/sdk/client-services/src/packlets/invitations/index.ts","kind":"import-statement","original":"../invitations"},{"path":"packages/sdk/client-services/src/packlets/spaces/index.ts","kind":"import-statement","original":"../spaces"}]},"packages/sdk/client-services/src/packlets/devices/devices-service.ts":{"bytes":5934,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/devices/index.ts":{"bytes":504,"imports":[{"path":"packages/sdk/client-services/src/packlets/devices/devices-service.ts","kind":"import-statement","original":"./devices-service"}]},"packages/sdk/client-services/src/packlets/locks/resource-lock.ts":{"bytes":1075,"imports":[]},"packages/sdk/client-services/src/packlets/locks/browser.ts":{"bytes":10276,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/locks/index.ts":{"bytes":576,"imports":[{"path":"packages/sdk/client-services/src/packlets/locks/resource-lock.ts","kind":"import-statement","original":"./resource-lock"},{"path":"packages/sdk/client-services/src/packlets/locks/browser.ts","kind":"import-statement","original":"./node"}]},"packages/sdk/client-services/src/packlets/logging/logging-service.ts":{"bytes":15147,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/logging/index.ts":{"bytes":504,"imports":[{"path":"packages/sdk/client-services/src/packlets/logging/logging-service.ts","kind":"import-statement","original":"./logging-service"}]},"packages/sdk/client-services/src/packlets/network/network-service.ts":{"bytes":4425,"imports":[{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/network/index.ts":{"bytes":504,"imports":[{"path":"packages/sdk/client-services/src/packlets/network/network-service.ts","kind":"import-statement","original":"./network-service"}]},"packages/sdk/client-services/src/packlets/storage/storage.ts":{"bytes":7210,"imports":[{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/errors","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/config","kind":"import-statement","external":true},{"path":"@dxos/random-access-storage","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/storage/index.ts":{"bytes":484,"imports":[{"path":"packages/sdk/client-services/src/packlets/storage/storage.ts","kind":"import-statement","original":"./storage"}]},"packages/sdk/client-services/src/packlets/system/system-service.ts":{"bytes":5999,"imports":[{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/system/index.ts":{"bytes":502,"imports":[{"path":"packages/sdk/client-services/src/packlets/system/system-service.ts","kind":"import-statement","original":"./system-service"}]},"packages/sdk/client-services/src/packlets/services/service-registry.ts":{"bytes":2722,"imports":[]},"packages/sdk/client-services/src/packlets/services/service-host.ts":{"bytes":34554,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/document-model","kind":"import-statement","external":true},{"path":"@dxos/echo-pipeline","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/messaging","kind":"import-statement","external":true},{"path":"@dxos/model-factory","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/text-model","kind":"import-statement","external":true},{"path":"packages/sdk/client-services/src/packlets/devices/index.ts","kind":"import-statement","original":"../devices"},{"path":"packages/sdk/client-services/src/packlets/devtools/index.ts","kind":"import-statement","original":"../devtools"},{"path":"packages/sdk/client-services/src/packlets/identity/index.ts","kind":"import-statement","original":"../identity"},{"path":"packages/sdk/client-services/src/packlets/invitations/index.ts","kind":"import-statement","original":"../invitations"},{"path":"packages/sdk/client-services/src/packlets/locks/index.ts","kind":"import-statement","original":"../locks"},{"path":"packages/sdk/client-services/src/packlets/logging/index.ts","kind":"import-statement","original":"../logging"},{"path":"packages/sdk/client-services/src/packlets/network/index.ts","kind":"import-statement","original":"../network"},{"path":"packages/sdk/client-services/src/packlets/spaces/index.ts","kind":"import-statement","original":"../spaces"},{"path":"packages/sdk/client-services/src/packlets/storage/index.ts","kind":"import-statement","original":"../storage"},{"path":"packages/sdk/client-services/src/packlets/system/index.ts","kind":"import-statement","original":"../system"},{"path":"packages/sdk/client-services/src/packlets/services/service-context.ts","kind":"import-statement","original":"./service-context"},{"path":"packages/sdk/client-services/src/packlets/services/service-registry.ts","kind":"import-statement","original":"./service-registry"}]},"packages/sdk/client-services/src/packlets/services/index.ts":{"bytes":826,"imports":[{"path":"packages/sdk/client-services/src/packlets/services/client-rpc-server.ts","kind":"import-statement","original":"./client-rpc-server"},{"path":"packages/sdk/client-services/src/packlets/services/service-context.ts","kind":"import-statement","original":"./service-context"},{"path":"packages/sdk/client-services/src/packlets/services/service-host.ts","kind":"import-statement","original":"./service-host"},{"path":"packages/sdk/client-services/src/packlets/services/service-registry.ts","kind":"import-statement","original":"./service-registry"}]},"packages/sdk/client-services/src/packlets/vault/shell-runtime.ts":{"bytes":7538,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/iframe","kind":"import-statement","external":true},{"path":"@dxos/rpc","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/vault/iframe-host-runtime.ts":{"bytes":15078,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/messaging","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/sdk/client-services/src/packlets/services/index.ts","kind":"import-statement","original":"../services"},{"path":"packages/sdk/client-services/src/packlets/services/client-rpc-server.ts","kind":"import-statement","original":"../services/client-rpc-server"},{"path":"packages/sdk/client-services/src/packlets/vault/shell-runtime.ts","kind":"import-statement","original":"./shell-runtime"}]},"packages/sdk/client-services/src/packlets/vault/iframe-proxy-runtime.ts":{"bytes":10873,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/errors","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"@dxos/rpc","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/sdk/client-services/src/packlets/vault/shell-runtime.ts","kind":"import-statement","original":"./shell-runtime"}]},"packages/sdk/client-services/src/packlets/vault/worker-session.ts":{"bytes":16307,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/rpc","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/sdk/client-services/src/packlets/services/index.ts","kind":"import-statement","original":"../services"}]},"packages/sdk/client-services/src/packlets/vault/worker-runtime.ts":{"bytes":12955,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/messaging","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"packages/sdk/client-services/src/packlets/services/index.ts","kind":"import-statement","original":"../services"},{"path":"packages/sdk/client-services/src/packlets/vault/worker-session.ts","kind":"import-statement","original":"./worker-session"}]},"packages/sdk/client-services/src/packlets/vault/index.ts":{"bytes":943,"imports":[{"path":"packages/sdk/client-services/src/packlets/vault/iframe-host-runtime.ts","kind":"import-statement","original":"./iframe-host-runtime"},{"path":"packages/sdk/client-services/src/packlets/vault/iframe-proxy-runtime.ts","kind":"import-statement","original":"./iframe-proxy-runtime"},{"path":"packages/sdk/client-services/src/packlets/vault/shell-runtime.ts","kind":"import-statement","original":"./shell-runtime"},{"path":"packages/sdk/client-services/src/packlets/vault/worker-runtime.ts","kind":"import-statement","original":"./worker-runtime"},{"path":"packages/sdk/client-services/src/packlets/vault/worker-session.ts","kind":"import-statement","original":"./worker-session"}]},"packages/sdk/client-services/src/index.ts":{"bytes":1262,"imports":[{"path":"packages/sdk/client-services/src/packlets/devtools/index.ts","kind":"import-statement","original":"./packlets/devtools"},{"path":"packages/sdk/client-services/src/packlets/identity/index.ts","kind":"import-statement","original":"./packlets/identity"},{"path":"packages/sdk/client-services/src/packlets/invitations/index.ts","kind":"import-statement","original":"./packlets/invitations"},{"path":"packages/sdk/client-services/src/packlets/services/index.ts","kind":"import-statement","original":"./packlets/services"},{"path":"packages/sdk/client-services/src/packlets/spaces/index.ts","kind":"import-statement","original":"./packlets/spaces"},{"path":"packages/sdk/client-services/src/packlets/storage/index.ts","kind":"import-statement","original":"./packlets/storage"},{"path":"packages/sdk/client-services/src/packlets/vault/index.ts","kind":"import-statement","original":"./packlets/vault"},{"path":"packages/sdk/client-services/src/packlets/locks/index.ts","kind":"import-statement","original":"./packlets/locks"}]},"packages/sdk/client-services/src/packlets/testing/credential-utils.ts":{"bytes":2308,"imports":[{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/testing/invitation-utils.ts":{"bytes":23352,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"packages/sdk/client-services/src/packlets/services/index.ts","kind":"import-statement","original":"../services"}]},"packages/sdk/client-services/src/packlets/testing/test-builder.ts":{"bytes":20959,"imports":[{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/echo-pipeline","kind":"import-statement","external":true},{"path":"@dxos/echo-pipeline/testing","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/keyring","kind":"import-statement","external":true},{"path":"@dxos/messaging","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"@dxos/random-access-storage","kind":"import-statement","external":true},{"path":"@dxos/teleport-extension-object-sync","kind":"import-statement","external":true},{"path":"packages/sdk/client-services/src/packlets/services/index.ts","kind":"import-statement","original":"../services"},{"path":"packages/sdk/client-services/src/packlets/spaces/index.ts","kind":"import-statement","original":"../spaces"}]},"packages/sdk/client-services/src/packlets/testing/index.ts":{"bytes":717,"imports":[{"path":"packages/sdk/client-services/src/packlets/testing/credential-utils.ts","kind":"import-statement","original":"./credential-utils"},{"path":"packages/sdk/client-services/src/packlets/testing/invitation-utils.ts","kind":"import-statement","original":"./invitation-utils"},{"path":"packages/sdk/client-services/src/packlets/testing/test-builder.ts","kind":"import-statement","original":"./test-builder"}]}},"outputs":{"packages/sdk/client-services/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":30233},"packages/sdk/client-services/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/sdk/client-services/dist/lib/browser/chunk-FD4L7N4K.mjs","kind":"import-statement"},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/messaging","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/iframe","kind":"import-statement","external":true},{"path":"@dxos/rpc","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/errors","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"@dxos/rpc","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/messaging","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/rpc","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["ClientRpcServer","ClientServicesHost","DataSpace","DataSpaceManager","DeviceInvitationProtocol","DevtoolsHostEvents","DevtoolsServiceImpl","IFrameHostRuntime","IFrameProxyRuntime","Identity","IdentityManager","IdentityServiceImpl","InvitationsHandler","InvitationsServiceImpl","Lock","ServiceContext","ServiceRegistry","ShellRuntimeImpl","SpaceInvitationProtocol","SpacesServiceImpl","TrustedKeySetAuthVerifier","WorkerRuntime","WorkerSession","createAuthProvider","createDefaultModelFactory","createStorageObjects","getNetworkPeers","isLocked","subscribeToFeedBlocks","subscribeToFeeds","subscribeToNetworkStatus","subscribeToNetworkTopics","subscribeToSignal","subscribeToSpaces","subscribeToSwarmInfo"],"entryPoint":"packages/sdk/client-services/src/index.ts","inputs":{"packages/sdk/client-services/src/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/vault/iframe-host-runtime.ts":{"bytesInOutput":4035},"packages/sdk/client-services/src/packlets/vault/shell-runtime.ts":{"bytesInOutput":1836},"packages/sdk/client-services/src/packlets/vault/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/vault/iframe-proxy-runtime.ts":{"bytesInOutput":2517},"packages/sdk/client-services/src/packlets/vault/worker-runtime.ts":{"bytesInOutput":3153},"packages/sdk/client-services/src/packlets/vault/worker-session.ts":{"bytesInOutput":4933}},"bytes":18482},"packages/sdk/client-services/dist/lib/browser/packlets/testing/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":24551},"packages/sdk/client-services/dist/lib/browser/packlets/testing/index.mjs":{"imports":[{"path":"packages/sdk/client-services/dist/lib/browser/chunk-FD4L7N4K.mjs","kind":"import-statement"},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/echo-pipeline","kind":"import-statement","external":true},{"path":"@dxos/echo-pipeline/testing","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/keyring","kind":"import-statement","external":true},{"path":"@dxos/messaging","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"@dxos/random-access-storage","kind":"import-statement","external":true},{"path":"@dxos/teleport-extension-object-sync","kind":"import-statement","external":true}],"exports":["TestBuilder","TestPeer","createIdentity","createMockCredential","createPeers","createServiceContext","createServiceHost","createSigningContext","performInvitation","sanitizeInvitation","syncItemsLocal"],"entryPoint":"packages/sdk/client-services/src/packlets/testing/index.ts","inputs":{"packages/sdk/client-services/src/packlets/testing/credential-utils.ts":{"bytesInOutput":403},"packages/sdk/client-services/src/packlets/testing/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/testing/invitation-utils.ts":{"bytesInOutput":7148},"packages/sdk/client-services/src/packlets/testing/test-builder.ts":{"bytesInOutput":5477}},"bytes":13671},"packages/sdk/client-services/dist/lib/browser/chunk-FD4L7N4K.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":251570},"packages/sdk/client-services/dist/lib/browser/chunk-FD4L7N4K.mjs":{"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/errors","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/invitations","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/errors","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/invitations","kind":"import-statement","external":true},{"path":"@dxos/teleport","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/rpc","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/echo-pipeline","kind":"import-statement","external":true},{"path":"@dxos/errors","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"@dxos/timeframe","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/teleport","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/teleport-extension-gossip","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/halo/credentials","kind":"import-statement","external":true},{"path":"@dxos/timeframe","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/echo-pipeline","kind":"import-statement","external":true},{"path":"@dxos/errors","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/echo-pipeline","kind":"import-statement","external":true},{"path":"@dxos/feed-store","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keyring","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/teleport-extension-object-sync","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/errors","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/config","kind":"import-statement","external":true},{"path":"@dxos/random-access-storage","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","kind":"import-statement","external":true},{"path":"@dxos/document-model","kind":"import-statement","external":true},{"path":"@dxos/echo-pipeline","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/messaging","kind":"import-statement","external":true},{"path":"@dxos/model-factory","kind":"import-statement","external":true},{"path":"@dxos/network-manager","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/text-model","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true}],"exports":["ClientRpcServer","ClientServicesHost","DataSpace","DataSpaceManager","DeviceInvitationProtocol","DevtoolsHostEvents","DevtoolsServiceImpl","Identity","IdentityManager","IdentityServiceImpl","InvitationsHandler","InvitationsServiceImpl","Lock","ServiceContext","ServiceRegistry","SpaceInvitationProtocol","SpacesServiceImpl","TrustedKeySetAuthVerifier","createAuthProvider","createDefaultModelFactory","createStorageObjects","getNetworkPeers","isLocked","subscribeToFeedBlocks","subscribeToFeeds","subscribeToNetworkStatus","subscribeToNetworkTopics","subscribeToSignal","subscribeToSpaces","subscribeToSwarmInfo"],"inputs":{"packages/sdk/client-services/src/packlets/devtools/feeds.ts":{"bytesInOutput":2446},"packages/sdk/client-services/src/packlets/devtools/network.ts":{"bytesInOutput":2399},"packages/sdk/client-services/src/packlets/devtools/spaces.ts":{"bytesInOutput":1284},"packages/sdk/client-services/src/packlets/devtools/devtools.ts":{"bytesInOutput":2995},"packages/sdk/client-services/src/packlets/devtools/keys.ts":{"bytesInOutput":340},"packages/sdk/client-services/src/packlets/devtools/metadata.ts":{"bytesInOutput":280},"packages/sdk/client-services/src/packlets/devtools/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/identity/authenticator.ts":{"bytesInOutput":3107},"packages/sdk/client-services/src/packlets/identity/identity.ts":{"bytesInOutput":4949},"packages/sdk/client-services/src/packlets/identity/identity-manager.ts":{"bytesInOutput":9568},"packages/sdk/client-services/src/packlets/identity/identity-service.ts":{"bytesInOutput":1896},"packages/sdk/client-services/src/packlets/identity/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/invitations/device-invitation-protocol.ts":{"bytesInOutput":2251},"packages/sdk/client-services/src/packlets/invitations/invitations-handler.ts":{"bytesInOutput":18335},"packages/sdk/client-services/src/packlets/invitations/invitation-extension.ts":{"bytesInOutput":11081},"packages/sdk/client-services/src/packlets/invitations/invitations-service.ts":{"bytesInOutput":5727},"packages/sdk/client-services/src/packlets/invitations/space-invitation-protocol.ts":{"bytesInOutput":4458},"packages/sdk/client-services/src/packlets/invitations/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/services/client-rpc-server.ts":{"bytesInOutput":2072},"packages/sdk/client-services/src/packlets/spaces/data-space.ts":{"bytesInOutput":10085},"packages/sdk/client-services/src/packlets/spaces/notarization-plugin.ts":{"bytesInOutput":7933},"packages/sdk/client-services/src/packlets/spaces/data-space-manager.ts":{"bytesInOutput":10687},"packages/sdk/client-services/src/packlets/spaces/genesis.ts":{"bytesInOutput":2315},"packages/sdk/client-services/src/packlets/spaces/spaces-service.ts":{"bytesInOutput":7987},"packages/sdk/client-services/src/packlets/spaces/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/services/service-context.ts":{"bytesInOutput":8328},"packages/sdk/client-services/src/packlets/locks/browser.ts":{"bytesInOutput":3598},"packages/sdk/client-services/src/packlets/locks/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/storage/storage.ts":{"bytesInOutput":1856},"packages/sdk/client-services/src/packlets/storage/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/services/service-registry.ts":{"bytesInOutput":480},"packages/sdk/client-services/src/packlets/services/service-host.ts":{"bytesInOutput":10105},"packages/sdk/client-services/src/packlets/devices/devices-service.ts":{"bytesInOutput":1491},"packages/sdk/client-services/src/packlets/devices/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/logging/logging-service.ts":{"bytesInOutput":3671},"packages/sdk/client-services/src/packlets/logging/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/network/network-service.ts":{"bytesInOutput":938},"packages/sdk/client-services/src/packlets/network/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/system/system-service.ts":{"bytesInOutput":1098},"packages/sdk/client-services/src/packlets/system/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/services/index.ts":{"bytesInOutput":0}},"bytes":147021}}}
@@ -4,7 +4,7 @@ import {
4
4
  DataSpaceManager,
5
5
  ServiceContext,
6
6
  createDefaultModelFactory
7
- } from "../../chunk-XSZIBW37.mjs";
7
+ } from "../../chunk-FD4L7N4K.mjs";
8
8
 
9
9
  // packages/sdk/client-services/src/packlets/testing/credential-utils.ts
10
10
  import { createCredential } from "@dxos/credentials";
@@ -23,9 +23,10 @@ var createMockCredential = async ({ signer, issuer }) => createCredential({
23
23
  });
24
24
 
25
25
  // packages/sdk/client-services/src/packlets/testing/invitation-utils.ts
26
- import invariant from "tiny-invariant";
27
26
  import { Trigger } from "@dxos/async";
27
+ import { invariant } from "@dxos/invariant";
28
28
  import { Invitation } from "@dxos/protocols/proto/dxos/client/services";
29
+ var __dxlog_file = "/home/runner/work/dxos/dxos/packages/sdk/client-services/src/packlets/testing/invitation-utils.ts";
29
30
  var sanitizeInvitation = (invitation) => {
30
31
  return {
31
32
  invitationId: invitation.invitationId,
@@ -57,7 +58,15 @@ var performInvitation = ({ host, guest, options, hooks }) => {
57
58
  if ((_b2 = (_a2 = hooks == null ? void 0 : hooks.guest) == null ? void 0 : _a2.onConnecting) == null ? void 0 : _b2.call(_a2, guestObservable)) {
58
59
  break;
59
60
  }
60
- invariant(hostInvitation.swarmKey.equals(guestInvitation.swarmKey));
61
+ invariant(hostInvitation.swarmKey.equals(guestInvitation.swarmKey), void 0, {
62
+ F: __dxlog_file,
63
+ L: 84,
64
+ S: void 0,
65
+ A: [
66
+ "hostInvitation.swarmKey!.equals(guestInvitation.swarmKey!)",
67
+ ""
68
+ ]
69
+ });
61
70
  break;
62
71
  }
63
72
  case Invitation.State.CONNECTED: {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../src/packlets/testing/credential-utils.ts", "../../../../../src/packlets/testing/invitation-utils.ts", "../../../../../src/packlets/testing/test-builder.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { createCredential } from '@dxos/credentials';\nimport { Signer } from '@dxos/crypto';\nimport { PublicKey } from '@dxos/keys';\nimport { Credential } from '@dxos/protocols/proto/dxos/halo/credentials';\n\nexport const createMockCredential = async ({\n signer,\n issuer,\n}: {\n signer: Signer;\n issuer: PublicKey;\n}): Promise<Credential> =>\n createCredential({\n signer,\n issuer,\n subject: new PublicKey(Buffer.from('test')),\n assertion: {\n '@type': 'example.testing.rpc.MessageWithAny',\n payload: {\n '@type': 'google.protobuf.Any',\n value: Buffer.from('test'),\n },\n },\n });\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport invariant from 'tiny-invariant';\n\nimport { Trigger } from '@dxos/async';\nimport { AuthenticatingInvitationObservable, CancellableInvitationObservable } from '@dxos/client-protocol';\nimport { Invitation } from '@dxos/protocols/proto/dxos/client/services';\n\nimport { ServiceContext } from '../services';\n\n/**\n * Strip secrets from invitation before giving it to the peer.\n */\nexport const sanitizeInvitation = (invitation: Invitation): Invitation => {\n return {\n invitationId: invitation.invitationId,\n type: invitation.type,\n kind: invitation.kind,\n authMethod: invitation.authMethod,\n swarmKey: invitation.swarmKey,\n state: invitation.state,\n timeout: invitation.timeout,\n };\n};\n\nexport type InvitationHost = {\n createInvitation(options?: Partial<Invitation>): CancellableInvitationObservable;\n};\n\nexport type InvitationGuest = {\n acceptInvitation(invitation: Invitation): AuthenticatingInvitationObservable;\n};\n\nexport type PerformInvitationCallbacks<T> = {\n onConnecting?: (value: T) => boolean | void;\n onConnected?: (value: T) => boolean | void;\n onReady?: (value: T) => boolean | void;\n onAuthenticating?: (value: T) => boolean | void;\n onSuccess?: (value: T) => boolean | void;\n onCancelled?: (value: T) => boolean | void;\n onTimeout?: (value: T) => boolean | void;\n onError?: (value: T) => boolean | void;\n};\n\nexport type PerformInvitationParams = {\n host: ServiceContext | InvitationHost;\n guest: ServiceContext | InvitationGuest;\n options?: Partial<Invitation>;\n hooks?: {\n host?: PerformInvitationCallbacks<CancellableInvitationObservable>;\n guest?: PerformInvitationCallbacks<AuthenticatingInvitationObservable>;\n };\n};\n\nexport type Result = { invitation?: Invitation; error?: Error };\n\nexport const performInvitation = ({\n host,\n guest,\n options,\n hooks,\n}: PerformInvitationParams): [Promise<Result>, Promise<Result>] => {\n const hostComplete = new Trigger<Result>();\n const guestComplete = new Trigger<Result>();\n const authCode = new Trigger<string>();\n\n const hostObservable = createInvitation(host, options);\n hostObservable.subscribe(\n async (hostInvitation: Invitation) => {\n switch (hostInvitation.state) {\n case Invitation.State.CONNECTING: {\n if (hooks?.host?.onConnecting?.(hostObservable)) {\n break;\n }\n const guestObservable = acceptInvitation(guest, hostInvitation);\n guestObservable.subscribe(\n async (guestInvitation: Invitation) => {\n switch (guestInvitation.state) {\n case Invitation.State.CONNECTING: {\n if (hooks?.guest?.onConnecting?.(guestObservable)) {\n break;\n }\n invariant(hostInvitation.swarmKey!.equals(guestInvitation.swarmKey!));\n break;\n }\n\n case Invitation.State.CONNECTED: {\n hooks?.guest?.onConnected?.(guestObservable);\n break;\n }\n\n case Invitation.State.READY_FOR_AUTHENTICATION: {\n if (hooks?.guest?.onReady?.(guestObservable)) {\n break;\n }\n await guestObservable.authenticate(await authCode.wait());\n break;\n }\n\n case Invitation.State.AUTHENTICATING: {\n hooks?.guest?.onAuthenticating?.(guestObservable);\n break;\n }\n\n case Invitation.State.SUCCESS: {\n if (hooks?.guest?.onSuccess?.(guestObservable)) {\n break;\n }\n guestComplete.wake({ invitation: guestInvitation });\n break;\n }\n\n case Invitation.State.CANCELLED: {\n if (hooks?.guest?.onCancelled?.(guestObservable)) {\n break;\n }\n guestComplete.wake({ invitation: guestInvitation });\n break;\n }\n\n case Invitation.State.TIMEOUT: {\n if (hooks?.guest?.onTimeout?.(guestObservable)) {\n return;\n }\n guestComplete.wake({ invitation: guestInvitation });\n }\n }\n },\n (error: Error) => {\n if (hooks?.guest?.onError?.(guestObservable)) {\n return;\n }\n guestComplete.wake({ error });\n },\n );\n break;\n }\n\n case Invitation.State.CONNECTED: {\n hooks?.host?.onConnected?.(hostObservable);\n break;\n }\n\n case Invitation.State.READY_FOR_AUTHENTICATION: {\n if (hooks?.host?.onReady?.(hostObservable)) {\n break;\n }\n if (hostInvitation.authCode) {\n authCode.wake(hostInvitation.authCode);\n }\n break;\n }\n\n case Invitation.State.AUTHENTICATING: {\n hooks?.host?.onAuthenticating?.(hostObservable);\n break;\n }\n\n case Invitation.State.SUCCESS: {\n if (hooks?.host?.onSuccess?.(hostObservable)) {\n break;\n }\n hostComplete.wake({ invitation: hostInvitation });\n break;\n }\n\n case Invitation.State.CANCELLED: {\n if (hooks?.host?.onCancelled?.(hostObservable)) {\n break;\n }\n hostComplete.wake({ invitation: hostInvitation });\n break;\n }\n\n case Invitation.State.TIMEOUT: {\n if (hooks?.host?.onTimeout?.(hostObservable)) {\n break;\n }\n hostComplete.wake({ invitation: hostInvitation });\n break;\n }\n }\n },\n (error: Error) => {\n if (hooks?.host?.onError?.(hostObservable)) {\n return;\n }\n hostComplete.wake({ error });\n },\n );\n\n return [hostComplete.wait(), guestComplete.wait()];\n};\n\nconst createInvitation = (\n host: ServiceContext | InvitationHost,\n options?: Partial<Invitation>,\n): CancellableInvitationObservable => {\n options ??= {\n authMethod: Invitation.AuthMethod.NONE,\n ...(options ?? {}),\n };\n\n if (host instanceof ServiceContext) {\n const hostHandler = host.getInvitationHandler({ kind: Invitation.Kind.SPACE, ...options });\n return host.invitations.createInvitation(hostHandler, options);\n }\n\n return host.createInvitation(options);\n};\n\nconst acceptInvitation = (\n guest: ServiceContext | InvitationGuest,\n invitation: Invitation,\n): AuthenticatingInvitationObservable => {\n invitation = sanitizeInvitation(invitation);\n\n if (guest instanceof ServiceContext) {\n const guestHandler = guest.getInvitationHandler({ kind: invitation.kind });\n return guest.invitations.acceptInvitation(guestHandler, invitation);\n }\n\n return guest.acceptInvitation(invitation);\n};\n", "//\n// Copyright 2022 DXOS.org\n//\n\nimport { Config } from '@dxos/config';\nimport { Context } from '@dxos/context';\nimport { createCredentialSignerWithChain, CredentialGenerator } from '@dxos/credentials';\nimport { failUndefined } from '@dxos/debug';\nimport {\n SnapshotStore,\n DataPipeline,\n MetadataStore,\n SpaceManager,\n valueEncoding,\n DataServiceSubscriptions,\n} from '@dxos/echo-pipeline';\nimport { testLocalDatabase } from '@dxos/echo-pipeline/testing';\nimport { FeedFactory, FeedStore } from '@dxos/feed-store';\nimport { Keyring } from '@dxos/keyring';\nimport { MemorySignalManager, MemorySignalManagerContext } from '@dxos/messaging';\nimport { MemoryTransportFactory, NetworkManager } from '@dxos/network-manager';\nimport { createStorage, Storage, StorageType } from '@dxos/random-access-storage';\nimport { BlobStore } from '@dxos/teleport-extension-object-sync';\n\nimport { ClientServicesHost, createDefaultModelFactory, ServiceContext } from '../services';\nimport { DataSpaceManager, SigningContext } from '../spaces';\n\n//\n// TODO(burdon): Replace with test builder.\n//\n\nexport const createServiceHost = (config: Config, signalManagerContext: MemorySignalManagerContext) => {\n return new ClientServicesHost({\n config,\n signalManager: new MemorySignalManager(signalManagerContext),\n transportFactory: MemoryTransportFactory,\n });\n};\n\nexport const createServiceContext = ({\n signalContext = new MemorySignalManagerContext(),\n storage = createStorage({ type: StorageType.RAM }),\n}: {\n signalContext?: MemorySignalManagerContext;\n storage?: Storage;\n} = {}) => {\n const signalManager = new MemorySignalManager(signalContext);\n const networkManager = new NetworkManager({\n signalManager,\n transportFactory: MemoryTransportFactory,\n });\n\n const modelFactory = createDefaultModelFactory();\n return new ServiceContext(storage, networkManager, signalManager, modelFactory);\n};\n\nexport const createPeers = async (numPeers: number) => {\n const signalContext = new MemorySignalManagerContext();\n\n return await Promise.all(\n Array.from(Array(numPeers)).map(async () => {\n const peer = createServiceContext({ signalContext });\n await peer.open();\n return peer;\n }),\n );\n};\n\nexport const createIdentity = async (peer: ServiceContext) => {\n await peer.createIdentity();\n return peer;\n};\n\n// TODO(burdon): Remove @dxos/client-testing.\n// TODO(burdon): Create builder and make configurable.\nexport const syncItemsLocal = async (db1: DataPipeline, db2: DataPipeline) => {\n await testLocalDatabase(db1, db2);\n await testLocalDatabase(db2, db1);\n};\n\nexport class TestBuilder {\n public readonly signalContext = new MemorySignalManagerContext();\n private readonly _ctx = new Context();\n\n createPeer(peerOptions?: TestPeerOpts): TestPeer {\n const peer = new TestPeer(this.signalContext, peerOptions);\n this._ctx.onDispose(async () => peer.destroy());\n return peer;\n }\n\n async destroy() {\n await this._ctx.dispose();\n }\n}\n\nexport type TestPeerOpts = {\n storageType?: StorageType;\n};\n\nexport type TestPeerProps = {\n storage?: Storage;\n feedStore?: FeedStore<any>;\n metadataStore?: MetadataStore;\n keyring?: Keyring;\n networkManager?: NetworkManager;\n spaceManager?: SpaceManager;\n dataSpaceManager?: DataSpaceManager;\n snapshotStore?: SnapshotStore;\n signingContext?: SigningContext;\n blobStore?: BlobStore;\n};\n\nexport class TestPeer {\n private _props: TestPeerProps = {};\n\n constructor(\n private readonly signalContext: MemorySignalManagerContext,\n private readonly opts: TestPeerOpts = { storageType: StorageType.RAM },\n ) {}\n\n get props() {\n return this._props;\n }\n\n get storage() {\n return (this._props.storage ??= createStorage({ type: this.opts.storageType }));\n }\n\n get keyring() {\n return (this._props.keyring ??= new Keyring(this.storage.createDirectory('keyring')));\n }\n\n get feedStore() {\n return (this._props.feedStore ??= new FeedStore({\n factory: new FeedFactory({\n root: this.storage.createDirectory('feeds'),\n signer: this.keyring,\n hypercore: {\n valueEncoding,\n },\n }),\n }));\n }\n\n get metadataStore() {\n return (this._props.metadataStore ??= new MetadataStore(this.storage.createDirectory('metadata')));\n }\n\n get blobStore() {\n return (this._props.blobStore ??= new BlobStore(this.storage.createDirectory('blobs')));\n }\n\n get snapshotStore() {\n return (this._props.snapshotStore ??= new SnapshotStore(this.storage.createDirectory('snapshots')));\n }\n\n get networkManager() {\n return (this._props.networkManager ??= new NetworkManager({\n signalManager: new MemorySignalManager(this.signalContext),\n transportFactory: MemoryTransportFactory,\n }));\n }\n\n get spaceManager() {\n return (this._props.spaceManager ??= new SpaceManager({\n feedStore: this.feedStore,\n networkManager: this.networkManager,\n metadataStore: this.metadataStore,\n modelFactory: createDefaultModelFactory(),\n snapshotStore: this.snapshotStore,\n blobStore: this.blobStore,\n }));\n }\n\n get identity() {\n return this._props.signingContext ?? failUndefined();\n }\n\n get dataSpaceManager() {\n return (this._props.dataSpaceManager ??= new DataSpaceManager(\n this.spaceManager,\n this.metadataStore,\n new DataServiceSubscriptions(),\n this.keyring,\n this.identity,\n this.feedStore,\n ));\n }\n\n async createIdentity() {\n this._props.signingContext ??= await createSigningContext(this.keyring);\n }\n\n async destroy() {\n await this.storage.reset();\n }\n}\n\nexport const createSigningContext = async (keyring: Keyring): Promise<SigningContext> => {\n const identityKey = await keyring.createKey();\n const deviceKey = await keyring.createKey();\n\n return {\n identityKey,\n deviceKey,\n credentialSigner: createCredentialSignerWithChain(\n keyring,\n {\n credential: await new CredentialGenerator(keyring, identityKey, deviceKey).createDeviceAuthorization(deviceKey),\n },\n deviceKey,\n ),\n recordCredential: async () => {}, // No-op.\n };\n};\n"],
5
- "mappings": ";;;;;;;;;AAIA,SAASA,wBAAwB;AAEjC,SAASC,iBAAiB;AAGnB,IAAMC,uBAAuB,OAAO,EACzCC,QACAC,OAAM,MAKNC,iBAAiB;EACfF;EACAC;EACAE,SAAS,IAAIC,UAAUC,OAAOC,KAAK,MAAA,CAAA;EACnCC,WAAW;IACT,SAAS;IACTC,SAAS;MACP,SAAS;MACTC,OAAOJ,OAAOC,KAAK,MAAA;IACrB;EACF;AACF,CAAA;;;ACvBF,OAAOI,eAAe;AAEtB,SAASC,eAAe;AAExB,SAASC,kBAAkB;AAOpB,IAAMC,qBAAqB,CAACC,eAAAA;AACjC,SAAO;IACLC,cAAcD,WAAWC;IACzBC,MAAMF,WAAWE;IACjBC,MAAMH,WAAWG;IACjBC,YAAYJ,WAAWI;IACvBC,UAAUL,WAAWK;IACrBC,OAAON,WAAWM;IAClBC,SAASP,WAAWO;EACtB;AACF;AAiCO,IAAMC,oBAAoB,CAAC,EAChCC,MACAC,OACAC,SACAC,MAAK,MACmB;AACxB,QAAMC,eAAe,IAAIC,QAAAA;AACzB,QAAMC,gBAAgB,IAAID,QAAAA;AAC1B,QAAME,WAAW,IAAIF,QAAAA;AAErB,QAAMG,iBAAiBC,iBA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AAMK,qBAAqB,KAAKzB,OAAO;EACxE;EAEA,MAAMP,UAAU;AACd,UAAM,KAAK/B,QAAQgE,MAAK;EAC1B;AACF;AAEO,IAAMD,uBAAuB,OAAOzB,YAAAA;AACzC,QAAM2B,cAAc,MAAM3B,QAAQ4B,UAAS;AAC3C,QAAMC,YAAY,MAAM7B,QAAQ4B,UAAS;AAEzC,SAAO;IACLD;IACAE;IACAC,kBAAkBC,gCAChB/B,SACA;MACEgC,YAAY,MAAM,IAAIC,oBAAoBjC,SAAS2B,aAAaE,SAAAA,EAAWK,0BAA0BL,SAAAA;IACvG,GACAA,SAAAA;IAEFM,kBAAkB,YAAA;IAAa;EACjC;AACF;",
6
- "names": ["createCredential", "PublicKey", "createMockCredential", "signer", "issuer", "createCredential", "subject", "PublicKey", "Buffer", "from", "assertion", "payload", "value", "invariant", "Trigger", "Invitation", "sanitizeInvitation", "invitation", "invitationId", "type", "kind", "authMethod", "swarmKey", "state", "timeout", "performInvitation", "host", "guest", "options", "hooks", "hostComplete", "Trigger", "guestComplete", "authCode", "hostObservable", "createInvitation", "subscribe", "hostInvitation", "Invitation", "State", "CONNECTING", "onConnecting", "guestObservable", "acceptInvitation", "guestInvitation", "_a", "_b", "_c", "_d", "_e", "_f", "_g", "_h", "_i", "_j", "_k", "_l", "_m", "_n", "invariant", "equals", "CONNECTED", "onConnected", "READY_FOR_AUTHENTICATION", "onReady", "authenticate", "wait", "AUTHENTICATING", "onAuthenticating", "SUCCESS", "onSuccess", "wake", "CANCELLED", "onCancelled", "TIMEOUT", "onTimeout", "error", "onError", "AuthMethod", "NONE", "ServiceContext", "hostHandler", "getInvitationHandler", "Kind", "SPACE", "invitations", "guestHandler", "Context", "createCredentialSignerWithChain", "CredentialGenerator", "failUndefined", "SnapshotStore", "MetadataStore", "SpaceManager", "valueEncoding", "DataServiceSubscriptions", "testLocalDatabase", "FeedFactory", "FeedStore", "Keyring", "MemorySignalManager", "MemorySignalManagerContext", "MemoryTransportFactory", "NetworkManager", "createStorage", "StorageType", "BlobStore", "createServiceHost", "config", "signalManagerContext", "ClientServicesHost", "signalManager", "MemorySignalManager", "transportFactory", "MemoryTransportFactory", "createServiceContext", "signalContext", "MemorySignalManagerContext", "storage", "createStorage", "type", "StorageType", "RAM", "networkManager", "NetworkManager", "modelFactory", "createDefaultModelFactory", "ServiceContext", "createPeers", "numPeers", "Promise", "all", "Array", "from", "map", "peer", "open", "createIdentity", "syncItemsLocal", "db1", "db2", "testLocalDatabase", "TestBuilder", "_ctx", "Context", "createPeer", "peerOptions", "TestPeer", "onDispose", "destroy", "dispose", "constructor", "opts", "storageType", "_props", "props", "keyring", "Keyring", "createDirectory", "feedStore", "FeedStore", "factory", "FeedFactory", "root", "signer", "hypercore", "valueEncoding", "metadataStore", "MetadataStore", "blobStore", "BlobStore", "snapshotStore", "SnapshotStore", "spaceManager", "SpaceManager", "identity", "signingContext", "failUndefined", "dataSpaceManager", "DataSpaceManager", "DataServiceSubscriptions", "createSigningContext", "reset", "identityKey", "createKey", "deviceKey", "credentialSigner", "createCredentialSignerWithChain", "credential", "CredentialGenerator", "createDeviceAuthorization", "recordCredential"]
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { createCredential } from '@dxos/credentials';\nimport { Signer } from '@dxos/crypto';\nimport { PublicKey } from '@dxos/keys';\nimport { Credential } from '@dxos/protocols/proto/dxos/halo/credentials';\n\nexport const createMockCredential = async ({\n signer,\n issuer,\n}: {\n signer: Signer;\n issuer: PublicKey;\n}): Promise<Credential> =>\n createCredential({\n signer,\n issuer,\n subject: new PublicKey(Buffer.from('test')),\n assertion: {\n '@type': 'example.testing.rpc.MessageWithAny',\n payload: {\n '@type': 'google.protobuf.Any',\n value: Buffer.from('test'),\n },\n },\n });\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { Trigger } from '@dxos/async';\nimport { AuthenticatingInvitationObservable, CancellableInvitationObservable } from '@dxos/client-protocol';\nimport { invariant } from '@dxos/invariant';\nimport { Invitation } from '@dxos/protocols/proto/dxos/client/services';\n\nimport { ServiceContext } from '../services';\n\n/**\n * Strip secrets from invitation before giving it to the peer.\n */\nexport const sanitizeInvitation = (invitation: Invitation): Invitation => {\n return {\n invitationId: invitation.invitationId,\n type: invitation.type,\n kind: invitation.kind,\n authMethod: invitation.authMethod,\n swarmKey: invitation.swarmKey,\n state: invitation.state,\n timeout: invitation.timeout,\n };\n};\n\nexport type InvitationHost = {\n createInvitation(options?: Partial<Invitation>): CancellableInvitationObservable;\n};\n\nexport type InvitationGuest = {\n acceptInvitation(invitation: Invitation): AuthenticatingInvitationObservable;\n};\n\nexport type PerformInvitationCallbacks<T> = {\n onConnecting?: (value: T) => boolean | void;\n onConnected?: (value: T) => boolean | void;\n onReady?: (value: T) => boolean | void;\n onAuthenticating?: (value: T) => boolean | void;\n onSuccess?: (value: T) => boolean | void;\n onCancelled?: (value: T) => boolean | void;\n onTimeout?: (value: T) => boolean | void;\n onError?: (value: T) => boolean | void;\n};\n\nexport type PerformInvitationParams = {\n host: ServiceContext | InvitationHost;\n guest: ServiceContext | InvitationGuest;\n options?: Partial<Invitation>;\n hooks?: {\n host?: PerformInvitationCallbacks<CancellableInvitationObservable>;\n guest?: PerformInvitationCallbacks<AuthenticatingInvitationObservable>;\n };\n};\n\nexport type Result = { invitation?: Invitation; error?: Error };\n\nexport const performInvitation = ({\n host,\n guest,\n options,\n hooks,\n}: PerformInvitationParams): [Promise<Result>, Promise<Result>] => {\n const hostComplete = new Trigger<Result>();\n const guestComplete = new Trigger<Result>();\n const authCode = new Trigger<string>();\n\n const hostObservable = createInvitation(host, options);\n hostObservable.subscribe(\n async (hostInvitation: Invitation) => {\n switch (hostInvitation.state) {\n case Invitation.State.CONNECTING: {\n if (hooks?.host?.onConnecting?.(hostObservable)) {\n break;\n }\n const guestObservable = acceptInvitation(guest, hostInvitation);\n guestObservable.subscribe(\n async (guestInvitation: Invitation) => {\n switch (guestInvitation.state) {\n case Invitation.State.CONNECTING: {\n if (hooks?.guest?.onConnecting?.(guestObservable)) {\n break;\n }\n invariant(hostInvitation.swarmKey!.equals(guestInvitation.swarmKey!));\n break;\n }\n\n case Invitation.State.CONNECTED: {\n hooks?.guest?.onConnected?.(guestObservable);\n break;\n }\n\n case Invitation.State.READY_FOR_AUTHENTICATION: {\n if (hooks?.guest?.onReady?.(guestObservable)) {\n break;\n }\n await guestObservable.authenticate(await authCode.wait());\n break;\n }\n\n case Invitation.State.AUTHENTICATING: {\n hooks?.guest?.onAuthenticating?.(guestObservable);\n break;\n }\n\n case Invitation.State.SUCCESS: {\n if (hooks?.guest?.onSuccess?.(guestObservable)) {\n break;\n }\n guestComplete.wake({ invitation: guestInvitation });\n break;\n }\n\n case Invitation.State.CANCELLED: {\n if (hooks?.guest?.onCancelled?.(guestObservable)) {\n break;\n }\n guestComplete.wake({ invitation: guestInvitation });\n break;\n }\n\n case Invitation.State.TIMEOUT: {\n if (hooks?.guest?.onTimeout?.(guestObservable)) {\n return;\n }\n guestComplete.wake({ invitation: guestInvitation });\n }\n }\n },\n (error: Error) => {\n if (hooks?.guest?.onError?.(guestObservable)) {\n return;\n }\n guestComplete.wake({ error });\n },\n );\n break;\n }\n\n case Invitation.State.CONNECTED: {\n hooks?.host?.onConnected?.(hostObservable);\n break;\n }\n\n case Invitation.State.READY_FOR_AUTHENTICATION: {\n if (hooks?.host?.onReady?.(hostObservable)) {\n break;\n }\n if (hostInvitation.authCode) {\n authCode.wake(hostInvitation.authCode);\n }\n break;\n }\n\n case Invitation.State.AUTHENTICATING: {\n hooks?.host?.onAuthenticating?.(hostObservable);\n break;\n }\n\n case Invitation.State.SUCCESS: {\n if (hooks?.host?.onSuccess?.(hostObservable)) {\n break;\n }\n hostComplete.wake({ invitation: hostInvitation });\n break;\n }\n\n case Invitation.State.CANCELLED: {\n if (hooks?.host?.onCancelled?.(hostObservable)) {\n break;\n }\n hostComplete.wake({ invitation: hostInvitation });\n break;\n }\n\n case Invitation.State.TIMEOUT: {\n if (hooks?.host?.onTimeout?.(hostObservable)) {\n break;\n }\n hostComplete.wake({ invitation: hostInvitation });\n break;\n }\n }\n },\n (error: Error) => {\n if (hooks?.host?.onError?.(hostObservable)) {\n return;\n }\n hostComplete.wake({ error });\n },\n );\n\n return [hostComplete.wait(), guestComplete.wait()];\n};\n\nconst createInvitation = (\n host: ServiceContext | InvitationHost,\n options?: Partial<Invitation>,\n): CancellableInvitationObservable => {\n options ??= {\n authMethod: Invitation.AuthMethod.NONE,\n ...(options ?? {}),\n };\n\n if (host instanceof ServiceContext) {\n const hostHandler = host.getInvitationHandler({ kind: Invitation.Kind.SPACE, ...options });\n return host.invitations.createInvitation(hostHandler, options);\n }\n\n return host.createInvitation(options);\n};\n\nconst acceptInvitation = (\n guest: ServiceContext | InvitationGuest,\n invitation: Invitation,\n): AuthenticatingInvitationObservable => {\n invitation = sanitizeInvitation(invitation);\n\n if (guest instanceof ServiceContext) {\n const guestHandler = guest.getInvitationHandler({ kind: invitation.kind });\n return guest.invitations.acceptInvitation(guestHandler, invitation);\n }\n\n return guest.acceptInvitation(invitation);\n};\n", "//\n// Copyright 2022 DXOS.org\n//\n\nimport { Config } from '@dxos/config';\nimport { Context } from '@dxos/context';\nimport { createCredentialSignerWithChain, CredentialGenerator } from '@dxos/credentials';\nimport { failUndefined } from '@dxos/debug';\nimport {\n SnapshotStore,\n DataPipeline,\n MetadataStore,\n SpaceManager,\n valueEncoding,\n DataServiceSubscriptions,\n} from '@dxos/echo-pipeline';\nimport { testLocalDatabase } from '@dxos/echo-pipeline/testing';\nimport { FeedFactory, FeedStore } from '@dxos/feed-store';\nimport { Keyring } from '@dxos/keyring';\nimport { MemorySignalManager, MemorySignalManagerContext } from '@dxos/messaging';\nimport { MemoryTransportFactory, NetworkManager } from '@dxos/network-manager';\nimport { createStorage, Storage, StorageType } from '@dxos/random-access-storage';\nimport { BlobStore } from '@dxos/teleport-extension-object-sync';\n\nimport { ClientServicesHost, createDefaultModelFactory, ServiceContext } from '../services';\nimport { DataSpaceManager, SigningContext } from '../spaces';\n\n//\n// TODO(burdon): Replace with test builder.\n//\n\nexport const createServiceHost = (config: Config, signalManagerContext: MemorySignalManagerContext) => {\n return new ClientServicesHost({\n config,\n signalManager: new MemorySignalManager(signalManagerContext),\n transportFactory: MemoryTransportFactory,\n });\n};\n\nexport const createServiceContext = ({\n signalContext = new MemorySignalManagerContext(),\n storage = createStorage({ type: StorageType.RAM }),\n}: {\n signalContext?: MemorySignalManagerContext;\n storage?: Storage;\n} = {}) => {\n const signalManager = new MemorySignalManager(signalContext);\n const networkManager = new NetworkManager({\n signalManager,\n transportFactory: MemoryTransportFactory,\n });\n\n const modelFactory = createDefaultModelFactory();\n return new ServiceContext(storage, networkManager, signalManager, modelFactory);\n};\n\nexport const createPeers = async (numPeers: number) => {\n const signalContext = new MemorySignalManagerContext();\n\n return await Promise.all(\n Array.from(Array(numPeers)).map(async () => {\n const peer = createServiceContext({ signalContext });\n await peer.open();\n return peer;\n }),\n );\n};\n\nexport const createIdentity = async (peer: ServiceContext) => {\n await peer.createIdentity();\n return peer;\n};\n\n// TODO(burdon): Remove @dxos/client-testing.\n// TODO(burdon): Create builder and make configurable.\nexport const syncItemsLocal = async (db1: DataPipeline, db2: DataPipeline) => {\n await testLocalDatabase(db1, db2);\n await testLocalDatabase(db2, db1);\n};\n\nexport class TestBuilder {\n public readonly signalContext = new MemorySignalManagerContext();\n private readonly _ctx = new Context();\n\n createPeer(peerOptions?: TestPeerOpts): TestPeer {\n const peer = new TestPeer(this.signalContext, peerOptions);\n this._ctx.onDispose(async () => peer.destroy());\n return peer;\n }\n\n async destroy() {\n await this._ctx.dispose();\n }\n}\n\nexport type TestPeerOpts = {\n storageType?: StorageType;\n};\n\nexport type TestPeerProps = {\n storage?: Storage;\n feedStore?: FeedStore<any>;\n metadataStore?: MetadataStore;\n keyring?: Keyring;\n networkManager?: NetworkManager;\n spaceManager?: SpaceManager;\n dataSpaceManager?: DataSpaceManager;\n snapshotStore?: SnapshotStore;\n signingContext?: SigningContext;\n blobStore?: BlobStore;\n};\n\nexport class TestPeer {\n private _props: TestPeerProps = {};\n\n constructor(\n private readonly signalContext: MemorySignalManagerContext,\n private readonly opts: TestPeerOpts = { storageType: StorageType.RAM },\n ) {}\n\n get props() {\n return this._props;\n }\n\n get storage() {\n return (this._props.storage ??= createStorage({ type: this.opts.storageType }));\n }\n\n get keyring() {\n return (this._props.keyring ??= new Keyring(this.storage.createDirectory('keyring')));\n }\n\n get feedStore() {\n return (this._props.feedStore ??= new FeedStore({\n factory: new FeedFactory({\n root: this.storage.createDirectory('feeds'),\n signer: this.keyring,\n hypercore: {\n valueEncoding,\n },\n }),\n }));\n }\n\n get metadataStore() {\n return (this._props.metadataStore ??= new MetadataStore(this.storage.createDirectory('metadata')));\n }\n\n get blobStore() {\n return (this._props.blobStore ??= new BlobStore(this.storage.createDirectory('blobs')));\n }\n\n get snapshotStore() {\n return (this._props.snapshotStore ??= new SnapshotStore(this.storage.createDirectory('snapshots')));\n }\n\n get networkManager() {\n return (this._props.networkManager ??= new NetworkManager({\n signalManager: new MemorySignalManager(this.signalContext),\n transportFactory: MemoryTransportFactory,\n }));\n }\n\n get spaceManager() {\n return (this._props.spaceManager ??= new SpaceManager({\n feedStore: this.feedStore,\n networkManager: this.networkManager,\n metadataStore: this.metadataStore,\n modelFactory: createDefaultModelFactory(),\n snapshotStore: this.snapshotStore,\n blobStore: this.blobStore,\n }));\n }\n\n get identity() {\n return this._props.signingContext ?? failUndefined();\n }\n\n get dataSpaceManager() {\n return (this._props.dataSpaceManager ??= new DataSpaceManager(\n this.spaceManager,\n this.metadataStore,\n new DataServiceSubscriptions(),\n this.keyring,\n this.identity,\n this.feedStore,\n ));\n }\n\n async createIdentity() {\n this._props.signingContext ??= await createSigningContext(this.keyring);\n }\n\n async destroy() {\n await this.storage.reset();\n }\n}\n\nexport const createSigningContext = async (keyring: Keyring): Promise<SigningContext> => {\n const identityKey = await keyring.createKey();\n const deviceKey = await keyring.createKey();\n\n return {\n identityKey,\n deviceKey,\n credentialSigner: createCredentialSignerWithChain(\n keyring,\n {\n credential: await new CredentialGenerator(keyring, identityKey, deviceKey).createDeviceAuthorization(deviceKey),\n },\n deviceKey,\n ),\n recordCredential: async () => {}, // No-op.\n };\n};\n"],
5
+ "mappings": ";;;;;;;;;AAIA,SAASA,wBAAwB;AAEjC,SAASC,iBAAiB;AAGnB,IAAMC,uBAAuB,OAAO,EACzCC,QACAC,OAAM,MAKNC,iBAAiB;EACfF;EACAC;EACAE,SAAS,IAAIC,UAAUC,OAAOC,KAAK,MAAA,CAAA;EACnCC,WAAW;IACT,SAAS;IACTC,SAAS;MACP,SAAS;MACTC,OAAOJ,OAAOC,KAAK,MAAA;IACrB;EACF;AACF,CAAA;;;ACvBF,SAASI,eAAe;AAExB,SAASC,iBAAiB;AAC1B,SAASC,kBAAkB;;AAOpB,IAAMC,qBAAqB,CAACC,eAAAA;AACjC,SAAO;IACLC,cAAcD,WAAWC;IACzBC,MAAMF,WAAWE;IACjBC,MAAMH,WAAWG;IACjBC,YAAYJ,WAAWI;IACvBC,UAAUL,WAAWK;IACrBC,OAAON,WAAWM;IAClBC,SAASP,WAAWO;EACtB;AACF;AAiCO,IAAMC,oBAAoB,CAAC,EAChCC,MACAC,OACAC,SACAC,MAAK,MACmB;AACxB,QAAMC,eAAe,IAAIC,QAAAA;AACzB,QAAMC,gBAAgB,IAAID,QAAAA;AAC1B,QAAME,WAAW,IAAIF,QAAAA;AAErB,QAAMG,iBAAiBC,iBAAiBT,MAAME,OAAAA;AAC9CM,iBAAeE,UACb,OAAOC,mBAAAA;AArEX;AAsEM,YAAQA,eAAed,OAAK;MAC1B,KAAKe,WAAWC,MAAMC,YAAY;AAChC,aAAIX,0CAAOH,SAAPG,mBAAaY,iBAAbZ,4BAA4BK,iBAAiB;AAC/C;QACF;AACA,cAAMQ,kBAAkBC,iBAAiBhB,OAAOU,cAAAA;AAChDK,wBAAgBN,UACd,OAAOQ,oBAAAA;AA7EnB,cAAAC,KAAAC,KA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M,IAAIC,oBAAoBjC,SAAS2B,aAAaE,SAAAA,EAAWK,0BAA0BL,SAAAA;IACvG,GACAA,SAAAA;IAEFM,kBAAkB,YAAA;IAAa;EACjC;AACF;",
6
+ "names": ["createCredential", "PublicKey", "createMockCredential", "signer", "issuer", "createCredential", "subject", "PublicKey", "Buffer", "from", "assertion", "payload", "value", "Trigger", "invariant", "Invitation", "sanitizeInvitation", "invitation", "invitationId", "type", "kind", "authMethod", "swarmKey", "state", "timeout", "performInvitation", "host", "guest", "options", "hooks", "hostComplete", "Trigger", "guestComplete", "authCode", "hostObservable", "createInvitation", "subscribe", "hostInvitation", "Invitation", "State", "CONNECTING", "onConnecting", "guestObservable", "acceptInvitation", "guestInvitation", "_a", "_b", "_c", "_d", "_e", "_f", "_g", "_h", "_i", "_j", "_k", "_l", "_m", "_n", "invariant", "equals", "CONNECTED", "onConnected", "READY_FOR_AUTHENTICATION", "onReady", "authenticate", "wait", "AUTHENTICATING", "onAuthenticating", "SUCCESS", "onSuccess", "wake", "CANCELLED", "onCancelled", "TIMEOUT", "onTimeout", "error", "onError", "AuthMethod", "NONE", "ServiceContext", "hostHandler", "getInvitationHandler", "Kind", "SPACE", "invitations", "guestHandler", "Context", "createCredentialSignerWithChain", "CredentialGenerator", "failUndefined", "SnapshotStore", "MetadataStore", "SpaceManager", "valueEncoding", "DataServiceSubscriptions", "testLocalDatabase", "FeedFactory", "FeedStore", "Keyring", "MemorySignalManager", "MemorySignalManagerContext", "MemoryTransportFactory", "NetworkManager", "createStorage", "StorageType", "BlobStore", "createServiceHost", "config", "signalManagerContext", "ClientServicesHost", "signalManager", "MemorySignalManager", "transportFactory", "MemoryTransportFactory", "createServiceContext", "signalContext", "MemorySignalManagerContext", "storage", "createStorage", "type", "StorageType", "RAM", "networkManager", "NetworkManager", "modelFactory", "createDefaultModelFactory", "ServiceContext", "createPeers", "numPeers", "Promise", "all", "Array", "from", "map", "peer", "open", "createIdentity", "syncItemsLocal", "db1", "db2", "testLocalDatabase", "TestBuilder", "_ctx", "Context", "createPeer", "peerOptions", "TestPeer", "onDispose", "destroy", "dispose", "constructor", "opts", "storageType", "_props", "props", "keyring", "Keyring", "createDirectory", "feedStore", "FeedStore", "factory", "FeedFactory", "root", "signer", "hypercore", "valueEncoding", "metadataStore", "MetadataStore", "blobStore", "BlobStore", "snapshotStore", "SnapshotStore", "spaceManager", "SpaceManager", "identity", "signingContext", "failUndefined", "dataSpaceManager", "DataSpaceManager", "DataServiceSubscriptions", "createSigningContext", "reset", "identityKey", "createKey", "deviceKey", "credentialSigner", "createCredentialSignerWithChain", "credential", "CredentialGenerator", "createDeviceAuthorization", "recordCredential"]
7
7
  }