@dxos/client-services 0.1.13 → 0.1.14
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.
- package/dist/lib/browser/index.mjs +2747 -0
- package/dist/lib/browser/index.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -0
- package/dist/lib/node/index.cjs +2823 -0
- package/dist/lib/node/index.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -0
- package/dist/{src → types/src}/index.d.ts +0 -0
- package/dist/types/src/index.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/deprecated/index.d.ts +0 -0
- package/dist/types/src/packlets/deprecated/index.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/deprecated/invitations.d.ts +4 -4
- package/dist/types/src/packlets/deprecated/invitations.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/deprecated/profile.d.ts +0 -0
- package/dist/types/src/packlets/deprecated/profile.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/deprecated/space.d.ts +0 -0
- package/dist/types/src/packlets/deprecated/space.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/deprecated/system.d.ts +0 -0
- package/dist/types/src/packlets/deprecated/system.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/deprecated/tracing.d.ts +0 -0
- package/dist/types/src/packlets/deprecated/tracing.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/devtools/devtools.d.ts +1 -1
- package/dist/types/src/packlets/devtools/devtools.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/devtools/feeds.d.ts +0 -0
- package/dist/types/src/packlets/devtools/feeds.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/devtools/index.d.ts +0 -0
- package/dist/types/src/packlets/devtools/index.d.ts.map +1 -0
- package/dist/types/src/packlets/devtools/keys.d.ts +7 -0
- package/dist/types/src/packlets/devtools/keys.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/devtools/network.d.ts +0 -0
- package/dist/types/src/packlets/devtools/network.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/devtools/spaces.d.ts +0 -0
- package/dist/types/src/packlets/devtools/spaces.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/identity/authenticator.d.ts +0 -0
- package/dist/types/src/packlets/identity/authenticator.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/identity/authenticator.test.d.ts +0 -0
- package/dist/types/src/packlets/identity/authenticator.test.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/identity/devices-service-impl.d.ts +0 -0
- package/dist/types/src/packlets/identity/devices-service-impl.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/identity/identity-manager.d.ts +3 -3
- package/dist/types/src/packlets/identity/identity-manager.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/identity/identity-manager.test.d.ts +0 -0
- package/dist/types/src/packlets/identity/identity-manager.test.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/identity/identity.d.ts +2 -2
- package/dist/types/src/packlets/identity/identity.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/identity/identity.test.d.ts +0 -0
- package/dist/types/src/packlets/identity/identity.test.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/identity/index.d.ts +0 -0
- package/dist/types/src/packlets/identity/index.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/invitations/encoder.d.ts +0 -0
- package/dist/types/src/packlets/invitations/encoder.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/invitations/encoder.test.d.ts +0 -0
- package/dist/types/src/packlets/invitations/encoder.test.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/invitations/halo-invitations-handler.d.ts +0 -0
- package/dist/types/src/packlets/invitations/halo-invitations-handler.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/invitations/halo-invitations-handler.test.d.ts +0 -0
- package/dist/types/src/packlets/invitations/halo-invitations-handler.test.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/invitations/halo-invitations-proxy.d.ts +0 -0
- package/dist/types/src/packlets/invitations/halo-invitations-proxy.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/invitations/halo-invitations-service.d.ts +0 -0
- package/dist/types/src/packlets/invitations/halo-invitations-service.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/invitations/halo-invitations-service.test.d.ts +0 -0
- package/dist/types/src/packlets/invitations/halo-invitations-service.test.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/invitations/index.d.ts +0 -0
- package/dist/types/src/packlets/invitations/index.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/invitations/invitations-handler.d.ts +10 -10
- package/dist/types/src/packlets/invitations/invitations-handler.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/invitations/invitations-proxy.d.ts +0 -0
- package/dist/types/src/packlets/invitations/invitations-proxy.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/invitations/invitations-service.d.ts +0 -0
- package/dist/types/src/packlets/invitations/invitations-service.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/invitations/invitations.d.ts +0 -0
- package/dist/types/src/packlets/invitations/invitations.d.ts.map +1 -0
- package/dist/types/src/packlets/invitations/rpc-extension.d.ts +17 -0
- package/dist/types/src/packlets/invitations/rpc-extension.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/invitations/space-invitations-handler.d.ts +3 -1
- package/dist/types/src/packlets/invitations/space-invitations-handler.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/invitations/space-invitations-handler.test.d.ts +0 -0
- package/dist/types/src/packlets/invitations/space-invitations-handler.test.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/invitations/space-invitations-proxy.d.ts +0 -0
- package/dist/types/src/packlets/invitations/space-invitations-proxy.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/invitations/space-invitations-service.d.ts +0 -0
- package/dist/types/src/packlets/invitations/space-invitations-service.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/invitations/space-invitations-service.test.d.ts +0 -0
- package/dist/types/src/packlets/invitations/space-invitations-service.test.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/services/index.d.ts +0 -0
- package/dist/types/src/packlets/services/index.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/services/service-context.d.ts +0 -0
- package/dist/types/src/packlets/services/service-context.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/services/service-definitions.d.ts +1 -1
- package/dist/types/src/packlets/services/service-definitions.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/services/service-host.d.ts +1 -1
- package/dist/types/src/packlets/services/service-host.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/services/service-proxy.d.ts +0 -0
- package/dist/types/src/packlets/services/service-proxy.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/services/service-registry.d.ts +0 -0
- package/dist/types/src/packlets/services/service-registry.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/services/service-registry.test.d.ts +0 -0
- package/dist/types/src/packlets/services/service-registry.test.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/services/signer.d.ts +0 -0
- package/dist/types/src/packlets/services/signer.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/spaces/index.d.ts +0 -0
- package/dist/types/src/packlets/spaces/index.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/spaces/spaces-service.d.ts +0 -0
- package/dist/types/src/packlets/spaces/spaces-service.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/storage/index.d.ts +0 -0
- package/dist/types/src/packlets/storage/index.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/storage/storage.d.ts +1 -1
- package/dist/types/src/packlets/storage/storage.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/testing/index.d.ts +0 -0
- package/dist/types/src/packlets/testing/index.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/testing/test-builder.d.ts +0 -0
- package/dist/types/src/packlets/testing/test-builder.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/vault/iframe-runtime.d.ts +1 -1
- package/dist/types/src/packlets/vault/iframe-runtime.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/vault/index.d.ts +0 -0
- package/dist/types/src/packlets/vault/index.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/vault/services.d.ts +2 -2
- package/dist/types/src/packlets/vault/services.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/vault/worker-runtime.d.ts +1 -1
- package/dist/types/src/packlets/vault/worker-runtime.d.ts.map +1 -0
- package/dist/{src → types/src}/packlets/vault/worker-session.d.ts +1 -1
- package/dist/types/src/packlets/vault/worker-session.d.ts.map +1 -0
- package/package.json +32 -30
- package/src/packlets/devtools/devtools.ts +2 -1
- package/src/packlets/devtools/keys.ts +19 -0
- package/src/packlets/identity/authenticator.test.ts +5 -8
- package/src/packlets/identity/identity-manager.test.ts +5 -5
- package/src/packlets/identity/identity-manager.ts +6 -4
- package/src/packlets/identity/identity.test.ts +4 -4
- package/src/packlets/identity/identity.ts +1 -1
- package/src/packlets/invitations/encoder.test.ts +3 -2
- package/src/packlets/invitations/halo-invitations-handler.test.ts +5 -5
- package/src/packlets/invitations/halo-invitations-handler.ts +232 -135
- package/src/packlets/invitations/halo-invitations-service.test.ts +4 -4
- package/src/packlets/invitations/invitations-handler.ts +9 -9
- package/src/packlets/invitations/invitations-proxy.ts +1 -1
- package/src/packlets/invitations/invitations-service.ts +1 -1
- package/src/packlets/invitations/invitations.ts +1 -1
- package/src/packlets/invitations/rpc-extension.ts +56 -0
- package/src/packlets/invitations/space-invitations-handler.test.ts +15 -9
- package/src/packlets/invitations/space-invitations-handler.ts +293 -152
- package/src/packlets/invitations/space-invitations-service.test.ts +5 -5
- package/src/packlets/invitations/space-invitations-service.ts +1 -1
- package/src/packlets/services/service-context.ts +6 -1
- package/src/packlets/services/service-registry.test.ts +4 -3
- package/src/packlets/vault/worker-session.ts +8 -3
- package/testing.d.ts +1 -1
- package/testing.js +1 -1
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -27
- package/dist/src/index.js.map +0 -1
- package/dist/src/packlets/deprecated/index.d.ts.map +0 -1
- package/dist/src/packlets/deprecated/index.js +0 -24
- package/dist/src/packlets/deprecated/index.js.map +0 -1
- package/dist/src/packlets/deprecated/invitations.d.ts.map +0 -1
- package/dist/src/packlets/deprecated/invitations.js +0 -12
- package/dist/src/packlets/deprecated/invitations.js.map +0 -1
- package/dist/src/packlets/deprecated/profile.d.ts.map +0 -1
- package/dist/src/packlets/deprecated/profile.js +0 -60
- package/dist/src/packlets/deprecated/profile.js.map +0 -1
- package/dist/src/packlets/deprecated/space.d.ts.map +0 -1
- package/dist/src/packlets/deprecated/space.js +0 -209
- package/dist/src/packlets/deprecated/space.js.map +0 -1
- package/dist/src/packlets/deprecated/system.d.ts.map +0 -1
- package/dist/src/packlets/deprecated/system.js +0 -33
- package/dist/src/packlets/deprecated/system.js.map +0 -1
- package/dist/src/packlets/deprecated/tracing.d.ts.map +0 -1
- package/dist/src/packlets/deprecated/tracing.js +0 -22
- package/dist/src/packlets/deprecated/tracing.js.map +0 -1
- package/dist/src/packlets/devtools/devtools.d.ts.map +0 -1
- package/dist/src/packlets/devtools/devtools.js +0 -88
- package/dist/src/packlets/devtools/devtools.js.map +0 -1
- package/dist/src/packlets/devtools/feeds.d.ts.map +0 -1
- package/dist/src/packlets/devtools/feeds.js +0 -77
- package/dist/src/packlets/devtools/feeds.js.map +0 -1
- package/dist/src/packlets/devtools/index.d.ts.map +0 -1
- package/dist/src/packlets/devtools/index.js +0 -24
- package/dist/src/packlets/devtools/index.js.map +0 -1
- package/dist/src/packlets/devtools/network.d.ts.map +0 -1
- package/dist/src/packlets/devtools/network.js +0 -79
- package/dist/src/packlets/devtools/network.js.map +0 -1
- package/dist/src/packlets/devtools/spaces.d.ts.map +0 -1
- package/dist/src/packlets/devtools/spaces.js +0 -39
- package/dist/src/packlets/devtools/spaces.js.map +0 -1
- package/dist/src/packlets/identity/authenticator.d.ts.map +0 -1
- package/dist/src/packlets/identity/authenticator.js +0 -40
- package/dist/src/packlets/identity/authenticator.js.map +0 -1
- package/dist/src/packlets/identity/authenticator.test.d.ts.map +0 -1
- package/dist/src/packlets/identity/authenticator.test.js +0 -32
- package/dist/src/packlets/identity/authenticator.test.js.map +0 -1
- package/dist/src/packlets/identity/devices-service-impl.d.ts.map +0 -1
- package/dist/src/packlets/identity/devices-service-impl.js +0 -47
- package/dist/src/packlets/identity/devices-service-impl.js.map +0 -1
- package/dist/src/packlets/identity/identity-manager.d.ts.map +0 -1
- package/dist/src/packlets/identity/identity-manager.js +0 -156
- package/dist/src/packlets/identity/identity-manager.js.map +0 -1
- package/dist/src/packlets/identity/identity-manager.test.d.ts.map +0 -1
- package/dist/src/packlets/identity/identity-manager.test.js +0 -88
- package/dist/src/packlets/identity/identity-manager.test.js.map +0 -1
- package/dist/src/packlets/identity/identity.d.ts.map +0 -1
- package/dist/src/packlets/identity/identity.js +0 -133
- package/dist/src/packlets/identity/identity.js.map +0 -1
- package/dist/src/packlets/identity/identity.test.d.ts.map +0 -1
- package/dist/src/packlets/identity/identity.test.js +0 -257
- package/dist/src/packlets/identity/identity.test.js.map +0 -1
- package/dist/src/packlets/identity/index.d.ts.map +0 -1
- package/dist/src/packlets/identity/index.js +0 -23
- package/dist/src/packlets/identity/index.js.map +0 -1
- package/dist/src/packlets/invitations/encoder.d.ts.map +0 -1
- package/dist/src/packlets/invitations/encoder.js +0 -27
- package/dist/src/packlets/invitations/encoder.js.map +0 -1
- package/dist/src/packlets/invitations/encoder.test.d.ts.map +0 -1
- package/dist/src/packlets/invitations/encoder.test.js +0 -19
- package/dist/src/packlets/invitations/encoder.test.js.map +0 -1
- package/dist/src/packlets/invitations/halo-invitations-handler.d.ts.map +0 -1
- package/dist/src/packlets/invitations/halo-invitations-handler.js +0 -231
- package/dist/src/packlets/invitations/halo-invitations-handler.js.map +0 -1
- package/dist/src/packlets/invitations/halo-invitations-handler.test.d.ts.map +0 -1
- package/dist/src/packlets/invitations/halo-invitations-handler.test.js +0 -69
- package/dist/src/packlets/invitations/halo-invitations-handler.test.js.map +0 -1
- package/dist/src/packlets/invitations/halo-invitations-proxy.d.ts.map +0 -1
- package/dist/src/packlets/invitations/halo-invitations-proxy.js +0 -17
- package/dist/src/packlets/invitations/halo-invitations-proxy.js.map +0 -1
- package/dist/src/packlets/invitations/halo-invitations-service.d.ts.map +0 -1
- package/dist/src/packlets/invitations/halo-invitations-service.js +0 -20
- package/dist/src/packlets/invitations/halo-invitations-service.js.map +0 -1
- package/dist/src/packlets/invitations/halo-invitations-service.test.d.ts.map +0 -1
- package/dist/src/packlets/invitations/halo-invitations-service.test.js +0 -83
- package/dist/src/packlets/invitations/halo-invitations-service.test.js.map +0 -1
- package/dist/src/packlets/invitations/index.d.ts.map +0 -1
- package/dist/src/packlets/invitations/index.js +0 -31
- package/dist/src/packlets/invitations/index.js.map +0 -1
- package/dist/src/packlets/invitations/invitations-handler.d.ts.map +0 -1
- package/dist/src/packlets/invitations/invitations-handler.js +0 -18
- package/dist/src/packlets/invitations/invitations-handler.js.map +0 -1
- package/dist/src/packlets/invitations/invitations-proxy.d.ts.map +0 -1
- package/dist/src/packlets/invitations/invitations-proxy.js +0 -121
- package/dist/src/packlets/invitations/invitations-proxy.js.map +0 -1
- package/dist/src/packlets/invitations/invitations-service.d.ts.map +0 -1
- package/dist/src/packlets/invitations/invitations-service.js +0 -174
- package/dist/src/packlets/invitations/invitations-service.js.map +0 -1
- package/dist/src/packlets/invitations/invitations.d.ts.map +0 -1
- package/dist/src/packlets/invitations/invitations.js +0 -59
- package/dist/src/packlets/invitations/invitations.js.map +0 -1
- package/dist/src/packlets/invitations/space-invitations-handler.d.ts.map +0 -1
- package/dist/src/packlets/invitations/space-invitations-handler.js +0 -239
- package/dist/src/packlets/invitations/space-invitations-handler.js.map +0 -1
- package/dist/src/packlets/invitations/space-invitations-handler.test.d.ts.map +0 -1
- package/dist/src/packlets/invitations/space-invitations-handler.test.js +0 -131
- package/dist/src/packlets/invitations/space-invitations-handler.test.js.map +0 -1
- package/dist/src/packlets/invitations/space-invitations-proxy.d.ts.map +0 -1
- package/dist/src/packlets/invitations/space-invitations-proxy.js +0 -17
- package/dist/src/packlets/invitations/space-invitations-proxy.js.map +0 -1
- package/dist/src/packlets/invitations/space-invitations-service.d.ts.map +0 -1
- package/dist/src/packlets/invitations/space-invitations-service.js +0 -31
- package/dist/src/packlets/invitations/space-invitations-service.js.map +0 -1
- package/dist/src/packlets/invitations/space-invitations-service.test.d.ts.map +0 -1
- package/dist/src/packlets/invitations/space-invitations-service.test.js +0 -100
- package/dist/src/packlets/invitations/space-invitations-service.test.js.map +0 -1
- package/dist/src/packlets/services/index.d.ts.map +0 -1
- package/dist/src/packlets/services/index.js +0 -26
- package/dist/src/packlets/services/index.js.map +0 -1
- package/dist/src/packlets/services/service-context.d.ts.map +0 -1
- package/dist/src/packlets/services/service-context.js +0 -103
- package/dist/src/packlets/services/service-context.js.map +0 -1
- package/dist/src/packlets/services/service-definitions.d.ts.map +0 -1
- package/dist/src/packlets/services/service-definitions.js +0 -25
- package/dist/src/packlets/services/service-definitions.js.map +0 -1
- package/dist/src/packlets/services/service-host.d.ts.map +0 -1
- package/dist/src/packlets/services/service-host.js +0 -88
- package/dist/src/packlets/services/service-host.js.map +0 -1
- package/dist/src/packlets/services/service-proxy.d.ts.map +0 -1
- package/dist/src/packlets/services/service-proxy.js +0 -48
- package/dist/src/packlets/services/service-proxy.js.map +0 -1
- package/dist/src/packlets/services/service-registry.d.ts.map +0 -1
- package/dist/src/packlets/services/service-registry.js +0 -24
- package/dist/src/packlets/services/service-registry.js.map +0 -1
- package/dist/src/packlets/services/service-registry.test.d.ts.map +0 -1
- package/dist/src/packlets/services/service-registry.test.js +0 -75
- package/dist/src/packlets/services/service-registry.test.js.map +0 -1
- package/dist/src/packlets/services/signer.d.ts.map +0 -1
- package/dist/src/packlets/services/signer.js +0 -6
- package/dist/src/packlets/services/signer.js.map +0 -1
- package/dist/src/packlets/spaces/index.d.ts.map +0 -1
- package/dist/src/packlets/spaces/index.js +0 -21
- package/dist/src/packlets/spaces/index.js.map +0 -1
- package/dist/src/packlets/spaces/spaces-service.d.ts.map +0 -1
- package/dist/src/packlets/spaces/spaces-service.js +0 -22
- package/dist/src/packlets/spaces/spaces-service.js.map +0 -1
- package/dist/src/packlets/storage/index.d.ts.map +0 -1
- package/dist/src/packlets/storage/index.js +0 -21
- package/dist/src/packlets/storage/index.js.map +0 -1
- package/dist/src/packlets/storage/storage.d.ts.map +0 -1
- package/dist/src/packlets/storage/storage.js +0 -89
- package/dist/src/packlets/storage/storage.js.map +0 -1
- package/dist/src/packlets/testing/index.d.ts.map +0 -1
- package/dist/src/packlets/testing/index.js +0 -21
- package/dist/src/packlets/testing/index.js.map +0 -1
- package/dist/src/packlets/testing/test-builder.d.ts.map +0 -1
- package/dist/src/packlets/testing/test-builder.js +0 -66
- package/dist/src/packlets/testing/test-builder.js.map +0 -1
- package/dist/src/packlets/vault/iframe-runtime.d.ts.map +0 -1
- package/dist/src/packlets/vault/iframe-runtime.js +0 -46
- package/dist/src/packlets/vault/iframe-runtime.js.map +0 -1
- package/dist/src/packlets/vault/index.d.ts.map +0 -1
- package/dist/src/packlets/vault/index.js +0 -23
- package/dist/src/packlets/vault/index.js.map +0 -1
- package/dist/src/packlets/vault/services.d.ts.map +0 -1
- package/dist/src/packlets/vault/services.js +0 -15
- package/dist/src/packlets/vault/services.js.map +0 -1
- package/dist/src/packlets/vault/worker-runtime.d.ts.map +0 -1
- package/dist/src/packlets/vault/worker-runtime.js +0 -99
- package/dist/src/packlets/vault/worker-runtime.js.map +0 -1
- package/dist/src/packlets/vault/worker-session.d.ts.map +0 -1
- package/dist/src/packlets/vault/worker-session.js +0 -106
- package/dist/src/packlets/vault/worker-session.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worker-runtime.d.ts","sourceRoot":"","sources":["../../../../../src/packlets/vault/worker-runtime.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAGtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAM1C,oBAAY,mBAAmB,GAAG;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF;;;;GAIG;AACH,qBAAa,aAAa;IAUtB,OAAO,CAAC,QAAQ,CAAC,eAAe;IATlC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAqC;IACvE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAC3D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA4B;IACrD,OAAO,CAAC,qBAAqB,CAAC,CAAgB;IAC9C,OAAO,CAAC,eAAe,CAAsB;IAC7C,OAAO,CAAC,OAAO,CAAU;gBAIN,eAAe,EAAE,MAAM,YAAY,CAAC,MAAM,CAAC;IAGxD,KAAK;IAsBL,IAAI;IAKV;;OAEG;IACG,aAAa,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,mBAAmB;IA0BhE;;OAEG;IACH,OAAO,CAAC,gBAAgB;CAmBzB"}
|
|
@@ -3,7 +3,7 @@ import { BridgeService } from '@dxos/protocols/proto/dxos/mesh/bridge';
|
|
|
3
3
|
import { RpcPort } from '@dxos/rpc';
|
|
4
4
|
import { Callback } from '@dxos/util';
|
|
5
5
|
import { ClientServicesHost } from '../services';
|
|
6
|
-
export type WorkerSessionParams = {
|
|
6
|
+
export declare type WorkerSessionParams = {
|
|
7
7
|
getServices: () => Promise<ClientServicesHost>;
|
|
8
8
|
systemPort: RpcPort;
|
|
9
9
|
appPort: RpcPort;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worker-session.d.ts","sourceRoot":"","sources":["../../../../../src/packlets/vault/worker-session.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAoC,OAAO,EAAE,MAAM,WAAW,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAuC,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGtF,oBAAY,mBAAmB,GAAG;IAChC,WAAW,EAAE,MAAM,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAC/C,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC;IACxC,OAAO,CAAC,EAAE;QACR,iBAAiB,EAAE,MAAM,CAAC;KAC3B,CAAC;CACH,CAAC;AAEF;;GAEG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA+B;IAC1D,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAoC;IAC/D,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAiB;IAC/C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAoC;IACjE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA8C;IACvE,OAAO,CAAC,eAAe,CAAC,CAAiB;IAEzC,SAAgB,OAAO,iBAAsB,QAAQ,IAAI,CAAC,EAAI;IAGvD,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,aAAa,CAAC,EAAE,aAAa,CAAC;gBAEzB,EACV,WAAW,EACX,UAAU,EACV,OAAO,EACP,OAEC,EACF,EAAE,mBAAmB;IAmDhB,IAAI;IAuBJ,KAAK;CAcZ"}
|
package/package.json
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/client-services",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"description": "DXOS client services implementation",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"author": "DXOS.org",
|
|
9
|
-
"main": "dist/
|
|
9
|
+
"main": "dist/lib/node/index.cjs",
|
|
10
10
|
"browser": {
|
|
11
|
-
"node
|
|
11
|
+
"./dist/lib/node/index.cjs": "./dist/lib/browser/index.mjs",
|
|
12
|
+
"./dist/lib/node/packlets/testing/index.cjs": "./dist/lib/browser/packlets/testing/index.mjs"
|
|
12
13
|
},
|
|
13
|
-
"types": "dist/src/index.d.ts",
|
|
14
|
+
"types": "dist/types/src/index.d.ts",
|
|
14
15
|
"files": [
|
|
15
16
|
"testing.d.ts",
|
|
16
17
|
"testing.js",
|
|
@@ -19,41 +20,42 @@
|
|
|
19
20
|
],
|
|
20
21
|
"dependencies": {
|
|
21
22
|
"abstract-leveldown": "~7.0.0",
|
|
22
|
-
"assert": "^2.0.0",
|
|
23
23
|
"base-x": "~3.0.9",
|
|
24
24
|
"jsondown": "dxos/jsondown#main",
|
|
25
25
|
"level-js": "^5.0.2",
|
|
26
26
|
"memdown": "^5.1.0",
|
|
27
|
-
"@dxos/async": "0.1.
|
|
28
|
-
"@dxos/codec-protobuf": "0.1.
|
|
29
|
-
"@dxos/config": "0.1.
|
|
30
|
-
"@dxos/
|
|
31
|
-
"@dxos/
|
|
32
|
-
"@dxos/
|
|
33
|
-
"@dxos/
|
|
34
|
-
"@dxos/
|
|
35
|
-
"@dxos/
|
|
36
|
-
"@dxos/
|
|
37
|
-
"@dxos/
|
|
38
|
-
"@dxos/
|
|
39
|
-
"@dxos/
|
|
40
|
-
"@dxos/
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/
|
|
27
|
+
"@dxos/async": "0.1.14",
|
|
28
|
+
"@dxos/codec-protobuf": "0.1.14",
|
|
29
|
+
"@dxos/config": "0.1.14",
|
|
30
|
+
"@dxos/context": "0.1.14",
|
|
31
|
+
"@dxos/credentials": "0.1.14",
|
|
32
|
+
"@dxos/crypto": "0.1.14",
|
|
33
|
+
"@dxos/debug": "0.1.14",
|
|
34
|
+
"@dxos/echo-db": "0.1.14",
|
|
35
|
+
"@dxos/errors": "0.1.14",
|
|
36
|
+
"@dxos/feed-store": "0.1.14",
|
|
37
|
+
"@dxos/keyring": "0.1.14",
|
|
38
|
+
"@dxos/keys": "0.1.14",
|
|
39
|
+
"@dxos/log": "0.1.14",
|
|
40
|
+
"@dxos/messaging": "0.1.14",
|
|
41
|
+
"@dxos/model-factory": "0.1.14",
|
|
42
|
+
"@dxos/network-manager": "0.1.14",
|
|
43
|
+
"@dxos/node-std": "0.1.14",
|
|
44
|
+
"@dxos/object-model": "0.1.14",
|
|
45
|
+
"@dxos/protocol-plugin-rpc": "0.1.14",
|
|
46
|
+
"@dxos/protocols": "0.1.14",
|
|
47
|
+
"@dxos/random-access-storage": "0.1.14",
|
|
48
|
+
"@dxos/rpc": "0.1.14",
|
|
49
|
+
"@dxos/teleport": "0.1.14",
|
|
50
|
+
"@dxos/text-model": "0.1.14",
|
|
51
|
+
"@dxos/timeframe": "0.1.14",
|
|
52
|
+
"@dxos/util": "0.1.14"
|
|
50
53
|
},
|
|
51
54
|
"devDependencies": {
|
|
52
55
|
"@types/level-js": "~4.0.1",
|
|
53
56
|
"@types/memdown": "^3.0.0",
|
|
54
57
|
"@types/readable-stream": "^2.3.9",
|
|
55
|
-
"@dxos/signal": "0.1.
|
|
56
|
-
"@dxos/testutils": "0.1.13"
|
|
58
|
+
"@dxos/signal": "0.1.14"
|
|
57
59
|
},
|
|
58
60
|
"publishConfig": {
|
|
59
61
|
"access": "public"
|
|
@@ -39,6 +39,7 @@ import {
|
|
|
39
39
|
|
|
40
40
|
import { ServiceContext } from '../services';
|
|
41
41
|
import { subscribeToFeedBlocks, subscribeToFeeds } from './feeds';
|
|
42
|
+
import { subscribeToKeyringKeys } from './keys';
|
|
42
43
|
import { subscribeToNetworkStatus, subscribeToSignalTrace, subscribeToSwarmInfo } from './network';
|
|
43
44
|
import { subscribeToSpaces } from './spaces';
|
|
44
45
|
|
|
@@ -83,7 +84,7 @@ export class DevtoolsServiceImpl implements DevtoolsHost {
|
|
|
83
84
|
}
|
|
84
85
|
|
|
85
86
|
subscribeToKeyringKeys(request: SubscribeToKeyringKeysRequest): Stream<SubscribeToKeyringKeysResponse> {
|
|
86
|
-
|
|
87
|
+
return subscribeToKeyringKeys({ keyring: this.params.context.keyring });
|
|
87
88
|
}
|
|
88
89
|
|
|
89
90
|
subscribeToCredentialMessages(
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2020 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { Stream } from '@dxos/codec-protobuf';
|
|
6
|
+
import { Keyring } from '@dxos/keyring';
|
|
7
|
+
import { SubscribeToKeyringKeysResponse } from '@dxos/protocols/proto/dxos/devtools/host';
|
|
8
|
+
|
|
9
|
+
export const subscribeToKeyringKeys = ({ keyring }: { keyring: Keyring }) =>
|
|
10
|
+
new Stream<SubscribeToKeyringKeysResponse>(({ next }) => {
|
|
11
|
+
const update = () => {
|
|
12
|
+
next({
|
|
13
|
+
keys: keyring.list()
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
const unsubscribe = keyring.keysUpdate.on(update);
|
|
17
|
+
update();
|
|
18
|
+
return unsubscribe;
|
|
19
|
+
});
|
|
@@ -2,22 +2,19 @@
|
|
|
2
2
|
// Copyright 2022 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import assert from 'assert';
|
|
6
5
|
import expect from 'expect';
|
|
6
|
+
import assert from 'node:assert';
|
|
7
7
|
|
|
8
8
|
import { createCredentialSignerWithKey } from '@dxos/credentials';
|
|
9
9
|
import { Keyring } from '@dxos/keyring';
|
|
10
10
|
import { PublicKey } from '@dxos/keys';
|
|
11
|
+
import { describe, test } from '@dxos/test';
|
|
11
12
|
import { ComplexSet } from '@dxos/util';
|
|
12
13
|
|
|
13
14
|
import { createHaloAuthProvider, createHaloAuthVerifier } from './authenticator';
|
|
14
15
|
|
|
15
|
-
describe('identity/authenticator',
|
|
16
|
-
|
|
17
|
-
if (mochaExecutor.environment !== 'nodejs') {
|
|
18
|
-
this.skip();
|
|
19
|
-
}
|
|
20
|
-
|
|
16
|
+
describe('identity/authenticator', () => {
|
|
17
|
+
test('verifies credentials', async () => {
|
|
21
18
|
const keyring = new Keyring();
|
|
22
19
|
const deviceKey = await keyring.createKey();
|
|
23
20
|
const signer = createCredentialSignerWithKey(keyring, deviceKey);
|
|
@@ -28,5 +25,5 @@ describe('identity/authenticator', function () {
|
|
|
28
25
|
const credential = await authProvider(nonce);
|
|
29
26
|
assert(credential);
|
|
30
27
|
expect(await authVerifier(nonce, credential)).toBeTruthy();
|
|
31
|
-
});
|
|
28
|
+
}).onlyEnvironments('nodejs');
|
|
32
29
|
});
|
|
@@ -11,12 +11,12 @@ import { MemorySignalManager, MemorySignalManagerContext } from '@dxos/messaging
|
|
|
11
11
|
import { MemoryTransportFactory, NetworkManager } from '@dxos/network-manager';
|
|
12
12
|
import type { FeedMessage } from '@dxos/protocols/proto/dxos/echo/feed';
|
|
13
13
|
import { createStorage, Storage, StorageType } from '@dxos/random-access-storage';
|
|
14
|
-
import { afterTest } from '@dxos/
|
|
14
|
+
import { describe, test, afterTest } from '@dxos/test';
|
|
15
15
|
|
|
16
16
|
import { createDefaultModelFactory } from '../services';
|
|
17
17
|
import { IdentityManager } from './identity-manager';
|
|
18
18
|
|
|
19
|
-
describe('identity/identity-manager',
|
|
19
|
+
describe('identity/identity-manager', () => {
|
|
20
20
|
const setupPeer = async ({
|
|
21
21
|
signalContext = new MemorySignalManagerContext(),
|
|
22
22
|
storage = createStorage({ type: StorageType.RAM })
|
|
@@ -58,7 +58,7 @@ describe('identity/identity-manager', function () {
|
|
|
58
58
|
};
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
test('creates identity', async () => {
|
|
62
62
|
const { identityManager } = await setupPeer();
|
|
63
63
|
await identityManager.open();
|
|
64
64
|
afterTest(() => identityManager.close());
|
|
@@ -67,7 +67,7 @@ describe('identity/identity-manager', function () {
|
|
|
67
67
|
expect(identity).to.exist;
|
|
68
68
|
});
|
|
69
69
|
|
|
70
|
-
|
|
70
|
+
test('reload from storage', async () => {
|
|
71
71
|
const storage = createStorage({ type: StorageType.RAM });
|
|
72
72
|
|
|
73
73
|
const peer1 = await setupPeer({ storage });
|
|
@@ -86,7 +86,7 @@ describe('identity/identity-manager', function () {
|
|
|
86
86
|
// TODO(dmaretskyi): Check that identity is "alive" (space is working and can write mutations).
|
|
87
87
|
});
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
test('admit another device', async () => {
|
|
90
90
|
const signalContext = new MemorySignalManagerContext();
|
|
91
91
|
|
|
92
92
|
const peer1 = await setupPeer({ signalContext });
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Copyright 2022 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import assert from 'assert';
|
|
5
|
+
import assert from 'node:assert';
|
|
6
6
|
|
|
7
7
|
import { Event } from '@dxos/async';
|
|
8
8
|
import { CredentialGenerator } from '@dxos/credentials';
|
|
@@ -144,13 +144,13 @@ export class IdentityManager {
|
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
|
-
* Accept an existing identity. Expects it's device key to be authorized.
|
|
147
|
+
* Accept an existing identity. Expects it's device key to be authorized (now or later).
|
|
148
148
|
*/
|
|
149
149
|
async acceptIdentity(params: JoinIdentityParams) {
|
|
150
150
|
log('accepting identity', { params });
|
|
151
151
|
assert(!this._identity, 'Identity already exists.');
|
|
152
152
|
|
|
153
|
-
const
|
|
153
|
+
const identityRecord: IdentityRecord = {
|
|
154
154
|
identityKey: params.identityKey,
|
|
155
155
|
deviceKey: await this._keyring.createKey(),
|
|
156
156
|
haloSpace: {
|
|
@@ -159,10 +159,12 @@ export class IdentityManager {
|
|
|
159
159
|
writeControlFeedKey: await this._keyring.createKey(),
|
|
160
160
|
writeDataFeedKey: await this._keyring.createKey()
|
|
161
161
|
}
|
|
162
|
-
}
|
|
162
|
+
};
|
|
163
|
+
const identity = await this._constructIdentity(identityRecord);
|
|
163
164
|
|
|
164
165
|
await identity.open();
|
|
165
166
|
this._identity = identity;
|
|
167
|
+
await this._metadataStore.setIdentityRecord(identityRecord);
|
|
166
168
|
this.stateUpdate.emit();
|
|
167
169
|
return identity;
|
|
168
170
|
}
|
|
@@ -14,7 +14,7 @@ import { MemoryTransportFactory, NetworkManager } from '@dxos/network-manager';
|
|
|
14
14
|
import { FeedMessage } from '@dxos/protocols/proto/dxos/echo/feed';
|
|
15
15
|
import { AdmittedFeed } from '@dxos/protocols/proto/dxos/halo/credentials';
|
|
16
16
|
import { createStorage, StorageType } from '@dxos/random-access-storage';
|
|
17
|
-
import { afterTest } from '@dxos/
|
|
17
|
+
import { describe, test, afterTest } from '@dxos/test';
|
|
18
18
|
|
|
19
19
|
import { createDefaultModelFactory } from '../services';
|
|
20
20
|
import { createHaloAuthProvider, createHaloAuthVerifier } from './authenticator';
|
|
@@ -22,8 +22,8 @@ import { Identity } from './identity';
|
|
|
22
22
|
|
|
23
23
|
const modelFactory = createDefaultModelFactory();
|
|
24
24
|
|
|
25
|
-
describe('identity/identity',
|
|
26
|
-
|
|
25
|
+
describe('identity/identity', () => {
|
|
26
|
+
test('create', async () => {
|
|
27
27
|
const keyring = new Keyring();
|
|
28
28
|
const identityKey = await keyring.createKey();
|
|
29
29
|
const deviceKey = await keyring.createKey();
|
|
@@ -116,7 +116,7 @@ describe('identity/identity', function () {
|
|
|
116
116
|
expect(await verifyCredential(credential)).toEqual({ kind: 'pass' });
|
|
117
117
|
});
|
|
118
118
|
|
|
119
|
-
|
|
119
|
+
test('two devices', async () => {
|
|
120
120
|
const signalContext = new MemorySignalManagerContext();
|
|
121
121
|
|
|
122
122
|
let spaceKey: PublicKey;
|
|
@@ -6,11 +6,12 @@ import { expect } from 'chai';
|
|
|
6
6
|
|
|
7
7
|
import { PublicKey } from '@dxos/keys';
|
|
8
8
|
import { Invitation } from '@dxos/protocols/proto/dxos/client/services';
|
|
9
|
+
import { describe, test } from '@dxos/test';
|
|
9
10
|
|
|
10
11
|
import { InvitationEncoder } from './encoder';
|
|
11
12
|
|
|
12
|
-
describe('Invitation utils',
|
|
13
|
-
|
|
13
|
+
describe('Invitation utils', () => {
|
|
14
|
+
test('encodes and decodes an invitation', () => {
|
|
14
15
|
const invitation: Invitation = {
|
|
15
16
|
swarmKey: PublicKey.random()
|
|
16
17
|
};
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
// Copyright 2022 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import assert from 'assert';
|
|
6
5
|
import { expect } from 'chai';
|
|
6
|
+
import assert from 'node:assert';
|
|
7
7
|
|
|
8
8
|
import { asyncChain, Trigger } from '@dxos/async';
|
|
9
9
|
import { raise } from '@dxos/debug';
|
|
10
10
|
import { PublicKey } from '@dxos/keys';
|
|
11
11
|
import { Invitation } from '@dxos/protocols/proto/dxos/client/services';
|
|
12
|
-
import { afterTest } from '@dxos/
|
|
12
|
+
import { describe, test, afterTest } from '@dxos/test';
|
|
13
13
|
|
|
14
14
|
import { ServiceContext } from '../services';
|
|
15
15
|
import { createPeers, createServiceContext } from '../testing';
|
|
@@ -19,8 +19,8 @@ const closeAfterTest = async (peer: ServiceContext) => {
|
|
|
19
19
|
return peer;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
describe('services/halo',
|
|
23
|
-
|
|
22
|
+
describe('services/halo', () => {
|
|
23
|
+
test('creates identity', async () => {
|
|
24
24
|
const peer = createServiceContext();
|
|
25
25
|
await peer.open();
|
|
26
26
|
afterTest(() => peer.close());
|
|
@@ -29,7 +29,7 @@ describe('services/halo', function () {
|
|
|
29
29
|
expect(identity).not.to.be.undefined;
|
|
30
30
|
});
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
test('creates and accepts invitation', async () => {
|
|
33
33
|
const [host, guest] = await asyncChain<ServiceContext>([closeAfterTest])(createPeers(2));
|
|
34
34
|
|
|
35
35
|
const identity1 = await host.createIdentity();
|