@dxos/client-services 0.1.52 → 0.1.53-main.00be1a9

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 (52) hide show
  1. package/dist/lib/browser/{chunk-C3SPTMW3.mjs → chunk-RKD47ENR.mjs} +678 -638
  2. package/dist/lib/browser/chunk-RKD47ENR.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +94 -119
  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 +6 -6
  7. package/dist/lib/browser/packlets/testing/index.mjs.map +3 -3
  8. package/dist/lib/node/index.cjs +739 -726
  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 +650 -612
  12. package/dist/lib/node/packlets/testing/index.cjs.map +3 -3
  13. package/dist/types/src/packlets/devtools/devtools.d.ts.map +1 -1
  14. package/dist/types/src/packlets/services/service-host.d.ts +1 -0
  15. package/dist/types/src/packlets/services/service-host.d.ts.map +1 -1
  16. package/dist/types/src/packlets/spaces/data-space-manager.d.ts.map +1 -1
  17. package/dist/types/src/packlets/spaces/spaces-service.d.ts +1 -1
  18. package/dist/types/src/packlets/spaces/spaces-service.d.ts.map +1 -1
  19. package/dist/types/src/packlets/testing/test-builder.d.ts.map +1 -1
  20. package/dist/types/src/packlets/vault/iframe-host-runtime.d.ts +1 -1
  21. package/dist/types/src/packlets/vault/iframe-host-runtime.d.ts.map +1 -1
  22. package/dist/types/src/packlets/vault/iframe-proxy-runtime.d.ts +1 -1
  23. package/dist/types/src/packlets/vault/iframe-proxy-runtime.d.ts.map +1 -1
  24. package/dist/types/src/packlets/vault/shell-runtime.d.ts +1 -21
  25. package/dist/types/src/packlets/vault/shell-runtime.d.ts.map +1 -1
  26. package/package.json +33 -32
  27. package/src/packlets/devtools/devtools.ts +2 -2
  28. package/src/packlets/identity/identity-manager.test.ts +1 -1
  29. package/src/packlets/identity/identity-manager.ts +8 -8
  30. package/src/packlets/identity/identity-service.ts +2 -2
  31. package/src/packlets/identity/identity.test.ts +1 -1
  32. package/src/packlets/identity/identity.ts +2 -2
  33. package/src/packlets/invitations/device-invitation-protocol.ts +4 -4
  34. package/src/packlets/invitations/invitation-extension.ts +5 -5
  35. package/src/packlets/invitations/invitations-handler.ts +6 -6
  36. package/src/packlets/invitations/invitations-service.ts +3 -3
  37. package/src/packlets/invitations/space-invitation-protocol.ts +9 -9
  38. package/src/packlets/locks/node.ts +2 -2
  39. package/src/packlets/logging/logging-service.ts +4 -4
  40. package/src/packlets/services/service-context.test.ts +1 -1
  41. package/src/packlets/services/service-context.ts +3 -3
  42. package/src/packlets/services/service-host.ts +19 -10
  43. package/src/packlets/spaces/data-space-manager.ts +5 -6
  44. package/src/packlets/spaces/notarization-plugin.ts +4 -4
  45. package/src/packlets/spaces/spaces-service.ts +20 -24
  46. package/src/packlets/testing/invitation-utils.ts +2 -2
  47. package/src/packlets/testing/test-builder.ts +1 -2
  48. package/src/packlets/vault/iframe-host-runtime.ts +2 -2
  49. package/src/packlets/vault/iframe-proxy-runtime.ts +2 -2
  50. package/src/packlets/vault/shell-runtime.ts +3 -49
  51. package/src/packlets/vault/worker-session.ts +2 -2
  52. package/dist/lib/browser/chunk-C3SPTMW3.mjs.map +0 -7
@@ -1 +1 @@
1
- {"inputs":{"packages/sdk/client-services/src/packlets/devtools/feeds.ts":{"bytes":10386,"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":1968,"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":1758,"imports":[{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/devtools/network.ts":{"bytes":10505,"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":5907,"imports":[{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/devtools/devtools.ts":{"bytes":15628,"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":626,"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":11540,"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":19293,"imports":[{"path":"@dxos/node-std/assert","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":30528,"imports":[{"path":"@dxos/node-std/assert","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":7007,"imports":[{"path":"@dxos/node-std/assert","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":697,"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":7567,"imports":[{"path":"@dxos/node-std/assert","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":1340,"imports":[]},"packages/sdk/client-services/src/packlets/invitations/invitation-extension.ts":{"bytes":36016,"imports":[{"path":"@dxos/node-std/assert","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":60035,"imports":[{"path":"@dxos/node-std/assert","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":20879,"imports":[{"path":"@dxos/node-std/assert","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":13008,"imports":[{"path":"@dxos/node-std/assert","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":900,"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/spaces/notarization-plugin.ts":{"bytes":27613,"imports":[{"path":"@dxos/node-std/assert","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":34150,"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":8653,"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":31620,"imports":[{"path":"@dxos/node-std/assert","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":26502,"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/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":598,"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":29486,"imports":[{"path":"@dxos/node-std/assert","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":5846,"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":395,"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":956,"imports":[]},"packages/sdk/client-services/src/packlets/locks/browser.ts":{"bytes":10270,"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":469,"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":10937,"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":395,"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":4278,"imports":[{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/network/index.ts":{"bytes":395,"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":7201,"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":375,"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":5467,"imports":[{"path":"@dxos/codec-protobuf","kind":"import-statement","external":true}]},"packages/sdk/client-services/src/packlets/system/index.ts":{"bytes":394,"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":2558,"imports":[]},"packages/sdk/client-services/src/packlets/services/service-host.ts":{"bytes":30428,"imports":[{"path":"@dxos/node-std/assert","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","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/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":"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":603,"imports":[{"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/services/client-rpc-server.ts":{"bytes":9623,"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/vault/shell-runtime.ts":{"bytes":10624,"imports":[{"path":"@dxos/node-std/assert","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":14748,"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":10559,"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":15573,"imports":[{"path":"@dxos/node-std/assert","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/client-rpc-server.ts","kind":"import-statement","original":"../services/client-rpc-server"}]},"packages/sdk/client-services/src/packlets/vault/worker-runtime.ts":{"bytes":12372,"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":836,"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":1166,"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":2190,"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":23060,"imports":[{"path":"@dxos/node-std/assert","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":18615,"imports":[{"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/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"}]},"packages/sdk/client-services/src/packlets/testing/index.ts":{"bytes":608,"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":37266},"packages/sdk/client-services/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/sdk/client-services/dist/lib/browser/chunk-C3SPTMW3.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/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/node-std/assert","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":"@dxos/node-std/assert","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":["ClientServicesHost","DataSpace","DataSpaceManager","DeviceInvitationProtocol","DevtoolsHostEvents","DevtoolsServiceImpl","IFrameHostRuntime","IFrameProxyRuntime","Identity","IdentityManager","IdentityServiceImpl","InvitationsHandler","InvitationsServiceImpl","Lock","MemoryShellRuntime","ServiceContext","ServiceRegistry","ShellRuntimeImpl","SpaceInvitationProtocol","SpacesServiceImpl","TrustedKeySetAuthVerifier","WorkerRuntime","WorkerSession","createAuthProvider","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":4036},"packages/sdk/client-services/src/packlets/services/client-rpc-server.ts":{"bytesInOutput":2060},"packages/sdk/client-services/src/packlets/vault/shell-runtime.ts":{"bytesInOutput":2357},"packages/sdk/client-services/src/packlets/vault/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/vault/iframe-proxy-runtime.ts":{"bytesInOutput":2419},"packages/sdk/client-services/src/packlets/vault/worker-runtime.ts":{"bytesInOutput":3013},"packages/sdk/client-services/src/packlets/vault/worker-session.ts":{"bytesInOutput":4528}},"bytes":20422},"packages/sdk/client-services/dist/lib/browser/packlets/testing/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":23310},"packages/sdk/client-services/dist/lib/browser/packlets/testing/index.mjs":{"imports":[{"path":"packages/sdk/client-services/dist/lib/browser/chunk-C3SPTMW3.mjs","kind":"import-statement"},{"path":"@dxos/credentials","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/node-std/assert","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/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/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":6774},"packages/sdk/client-services/src/packlets/testing/test-builder.ts":{"bytesInOutput":4872}},"bytes":12642},"packages/sdk/client-services/dist/lib/browser/chunk-C3SPTMW3.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":237103},"packages/sdk/client-services/dist/lib/browser/chunk-C3SPTMW3.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/node-std/assert","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":"@dxos/node-std/assert","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":"@dxos/node-std/assert","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/node-std/assert","kind":"import-statement","external":true},{"path":"@dxos/protocols/proto/dxos/client/services","kind":"import-statement","external":true},{"path":"@dxos/node-std/assert","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":"@dxos/node-std/assert","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":"@dxos/node-std/assert","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/node-std/assert","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/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/node-std/assert","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":"@dxos/node-std/assert","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/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/node-std/assert","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":"@dxos/node-std/assert","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/client-protocol","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/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/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":["ClientServicesHost","DataSpace","DataSpaceManager","DeviceInvitationProtocol","DevtoolsHostEvents","DevtoolsServiceImpl","Identity","IdentityManager","IdentityServiceImpl","InvitationsHandler","InvitationsServiceImpl","Lock","ServiceContext","ServiceRegistry","SpaceInvitationProtocol","SpacesServiceImpl","TrustedKeySetAuthVerifier","createAuthProvider","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":2936},"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":3146},"packages/sdk/client-services/src/packlets/identity/identity.ts":{"bytesInOutput":4641},"packages/sdk/client-services/src/packlets/identity/identity-manager.ts":{"bytesInOutput":8639},"packages/sdk/client-services/src/packlets/identity/identity-service.ts":{"bytesInOutput":1582},"packages/sdk/client-services/src/packlets/identity/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/invitations/device-invitation-protocol.ts":{"bytesInOutput":1717},"packages/sdk/client-services/src/packlets/invitations/invitations-handler.ts":{"bytesInOutput":18256},"packages/sdk/client-services/src/packlets/invitations/invitation-extension.ts":{"bytesInOutput":10546},"packages/sdk/client-services/src/packlets/invitations/invitations-service.ts":{"bytesInOutput":5435},"packages/sdk/client-services/src/packlets/invitations/space-invitation-protocol.ts":{"bytesInOutput":3133},"packages/sdk/client-services/src/packlets/invitations/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/spaces/data-space.ts":{"bytesInOutput":8866},"packages/sdk/client-services/src/packlets/spaces/notarization-plugin.ts":{"bytesInOutput":7505},"packages/sdk/client-services/src/packlets/spaces/data-space-manager.ts":{"bytesInOutput":9621},"packages/sdk/client-services/src/packlets/spaces/genesis.ts":{"bytesInOutput":2315},"packages/sdk/client-services/src/packlets/spaces/spaces-service.ts":{"bytesInOutput":7068},"packages/sdk/client-services/src/packlets/spaces/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/services/service-context.ts":{"bytesInOutput":7965},"packages/sdk/client-services/src/packlets/locks/browser.ts":{"bytesInOutput":3586},"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":7975},"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":2690},"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":1018},"packages/sdk/client-services/src/packlets/system/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/services/index.ts":{"bytesInOutput":0}},"bytes":133290}}}
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":11467,"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":19671,"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":30499,"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":7167,"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":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":7806,"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":1467,"imports":[]},"packages/sdk/client-services/src/packlets/invitations/invitation-extension.ts":{"bytes":36218,"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":59050,"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":21119,"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":13276,"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":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/spaces/notarization-plugin.ts":{"bytes":27412,"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":34469,"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":31624,"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":26723,"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/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":30078,"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":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":10966,"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":5735,"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":32472,"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":717,"imports":[{"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/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/vault/shell-runtime.ts":{"bytes":7331,"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":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":15748,"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/client-rpc-server.ts","kind":"import-statement","original":"../services/client-rpc-server"}]},"packages/sdk/client-services/src/packlets/vault/worker-runtime.ts":{"bytes":12612,"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":22885,"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":18616,"imports":[{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/credentials","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"}]},"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":35338},"packages/sdk/client-services/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/sdk/client-services/dist/lib/browser/chunk-RKD47ENR.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/codec-protobuf","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/rpc","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":["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":4029},"packages/sdk/client-services/src/packlets/services/client-rpc-server.ts":{"bytesInOutput":2060},"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":2517},"packages/sdk/client-services/src/packlets/vault/worker-runtime.ts":{"bytesInOutput":3054},"packages/sdk/client-services/src/packlets/vault/worker-session.ts":{"bytesInOutput":4548}},"bytes":19838},"packages/sdk/client-services/dist/lib/browser/packlets/testing/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":23265},"packages/sdk/client-services/dist/lib/browser/packlets/testing/index.mjs":{"imports":[{"path":"packages/sdk/client-services/dist/lib/browser/chunk-RKD47ENR.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/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":4805}},"bytes":12604},"packages/sdk/client-services/dist/lib/browser/chunk-RKD47ENR.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":238453},"packages/sdk/client-services/dist/lib/browser/chunk-RKD47ENR.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/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/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":["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":3126},"packages/sdk/client-services/src/packlets/identity/identity.ts":{"bytesInOutput":4737},"packages/sdk/client-services/src/packlets/identity/identity-manager.ts":{"bytesInOutput":8461},"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":17591},"packages/sdk/client-services/src/packlets/invitations/invitation-extension.ts":{"bytesInOutput":10264},"packages/sdk/client-services/src/packlets/invitations/invitations-service.ts":{"bytesInOutput":5461},"packages/sdk/client-services/src/packlets/invitations/space-invitation-protocol.ts":{"bytesInOutput":3253},"packages/sdk/client-services/src/packlets/invitations/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/spaces/data-space.ts":{"bytesInOutput":8896},"packages/sdk/client-services/src/packlets/spaces/notarization-plugin.ts":{"bytesInOutput":7361},"packages/sdk/client-services/src/packlets/spaces/data-space-manager.ts":{"bytesInOutput":9431},"packages/sdk/client-services/src/packlets/spaces/genesis.ts":{"bytesInOutput":2315},"packages/sdk/client-services/src/packlets/spaces/spaces-service.ts":{"bytesInOutput":7213},"packages/sdk/client-services/src/packlets/spaces/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/services/service-context.ts":{"bytesInOutput":7860},"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":8914},"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":2678},"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":1018},"packages/sdk/client-services/src/packlets/system/index.ts":{"bytesInOutput":0},"packages/sdk/client-services/src/packlets/services/index.ts":{"bytesInOutput":0}},"bytes":133155}}}
@@ -1,8 +1,9 @@
1
- import "@dxos/node-std/globals"
1
+ import "@dxos/node-std/globals";
2
2
  import {
3
3
  ClientServicesHost,
4
- ServiceContext
5
- } from "../../chunk-C3SPTMW3.mjs";
4
+ ServiceContext,
5
+ createDefaultModelFactory
6
+ } from "../../chunk-RKD47ENR.mjs";
6
7
 
7
8
  // packages/sdk/client-services/src/packlets/testing/credential-utils.ts
8
9
  import { createCredential } from "@dxos/credentials";
@@ -21,7 +22,7 @@ var createMockCredential = async ({ signer, issuer }) => createCredential({
21
22
  });
22
23
 
23
24
  // packages/sdk/client-services/src/packlets/testing/invitation-utils.ts
24
- import assert from "@dxos/node-std/assert";
25
+ import invariant from "tiny-invariant";
25
26
  import { Trigger } from "@dxos/async";
26
27
  import { Invitation } from "@dxos/protocols/proto/dxos/client/services";
27
28
  var sanitizeInvitation = (invitation) => {
@@ -55,7 +56,7 @@ var performInvitation = ({ host, guest, options, hooks }) => {
55
56
  if ((_b2 = (_a2 = hooks == null ? void 0 : hooks.guest) == null ? void 0 : _a2.onConnecting) == null ? void 0 : _b2.call(_a2, guestObservable)) {
56
57
  break;
57
58
  }
58
- assert(hostInvitation.swarmKey.equals(guestInvitation.swarmKey));
59
+ invariant(hostInvitation.swarmKey.equals(guestInvitation.swarmKey));
59
60
  break;
60
61
  }
61
62
  case Invitation.State.CONNECTED: {
@@ -196,7 +197,6 @@ var acceptInvitation = (guest, invitation) => {
196
197
  };
197
198
 
198
199
  // packages/sdk/client-services/src/packlets/testing/test-builder.ts
199
- import { createDefaultModelFactory } from "@dxos/client-protocol";
200
200
  import { Context } from "@dxos/context";
201
201
  import { createCredentialSignerWithChain, CredentialGenerator } from "@dxos/credentials";
202
202
  import { SnapshotStore, MetadataStore, SpaceManager, valueEncoding } from "@dxos/echo-pipeline";
@@ -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 assert from 'node:assert';\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 assert(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 { createDefaultModelFactory } from '@dxos/client-protocol';\nimport { Config } from '@dxos/config';\nimport { Context } from '@dxos/context';\nimport { createCredentialSignerWithChain, CredentialGenerator } from '@dxos/credentials';\nimport { SnapshotStore, DataPipeline, MetadataStore, SpaceManager, valueEncoding } 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, ServiceContext } from '../services';\nimport { 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 snapshotStore?: SnapshotStore;\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 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 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,MAKNJ,iBAAiB;EACfG;EACAC;EACAC,SAAS,IAAIJ,UAAUK,OAAOC,KAAK,MAAA,CAAA;EACnCC,WAAW;IACT,SAAS;I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Df,WAAW,KAAKA;MAChBnC,gBAAgB,KAAKA;MACrB2C,eAAe,KAAKA;MACpBzC,cAAcC,0BAAAA;MACd4C,eAAe,KAAKA;MACpBF,WAAW,KAAKA;IAClB,CAAA;EACF;EAEA,MAAMnB,UAAU;AACd,UAAM,KAAK/B,QAAQwD,MAAK;EAC1B;AACF;AAEO,IAAMC,uBAAuB,OAAOpB,YAA8C;AACvF,QAAMqB,cAAc,MAAMrB,QAAQsB,UAAS;AAC3C,QAAMC,YAAY,MAAMvB,QAAQsB,UAAS;AAEzC,SAAO;IACLD;IACAE;IACAC,kBAAkBC,gCAChBzB,SACA;MACE0B,YAAY,MAAM,IAAIC,oBAAoB3B,SAASqB,aAAaE,SAAAA,EAAWK,0BAA0BL,SAAAA;IACvG,GACAA,SAAAA;IAEFM,kBAAkB,YAAY;IAAC;EACjC;AACF;",
6
- "names": ["createCredential", "PublicKey", "createMockCredential", "signer", "issuer", "subject", "Buffer", "from", "assertion", "payload", "value", "assert", "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", "assert", "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", "createDefaultModelFactory", "Context", "createCredentialSignerWithChain", "CredentialGenerator", "SnapshotStore", "MetadataStore", "SpaceManager", "valueEncoding", "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", "keyring", "Keyring", "createDirectory", "feedStore", "FeedStore", "factory", "FeedFactory", "root", "signer", "hypercore", "valueEncoding", "metadataStore", "MetadataStore", "blobStore", "BlobStore", "snapshotStore", "SnapshotStore", "spaceManager", "SpaceManager", "reset", "createSigningContext", "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 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 { SnapshotStore, DataPipeline, MetadataStore, SpaceManager, valueEncoding } 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 { 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 snapshotStore?: SnapshotStore;\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 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 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,MAA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;MACpDf,WAAW,KAAKA;MAChBnC,gBAAgB,KAAKA;MACrB2C,eAAe,KAAKA;MACpBzC,cAAcC,0BAAAA;MACd4C,eAAe,KAAKA;MACpBF,WAAW,KAAKA;IAClB,CAAA;EACF;EAEA,MAAMnB,UAAU;AACd,UAAM,KAAK/B,QAAQwD,MAAK;EAC1B;AACF;AAEO,IAAMC,uBAAuB,OAAOpB,YAAAA;AACzC,QAAMqB,cAAc,MAAMrB,QAAQsB,UAAS;AAC3C,QAAMC,YAAY,MAAMvB,QAAQsB,UAAS;AAEzC,SAAO;IACLD;IACAE;IACAC,kBAAkBC,gCAChBzB,SACA;MACE0B,YAAY,MAAM,IAAIC,oBAAoB3B,SAASqB,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", "SnapshotStore", "MetadataStore", "SpaceManager", "valueEncoding", "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", "keyring", "Keyring", "createDirectory", "feedStore", "FeedStore", "factory", "FeedFactory", "root", "signer", "hypercore", "valueEncoding", "metadataStore", "MetadataStore", "blobStore", "BlobStore", "snapshotStore", "SnapshotStore", "spaceManager", "SpaceManager", "reset", "createSigningContext", "identityKey", "createKey", "deviceKey", "credentialSigner", "createCredentialSignerWithChain", "credential", "CredentialGenerator", "createDeviceAuthorization", "recordCredential"]
7
7
  }