@open-e2ee/signal-protocol-sdk 2.0.1 → 3.0.0
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/ADAPTERS.md +10 -17
- package/ARCHITECTURE.md +1 -2
- package/CHANGELOG.md +80 -0
- package/LICENSE +11 -655
- package/LICENSE-APACHE +201 -0
- package/LICENSE-MIT +21 -0
- package/NOTICE +5 -7
- package/README.md +11 -11
- package/SECURITY.md +2 -2
- package/TROUBLESHOOTING.md +2 -6
- package/client/README.md +34 -16
- package/device/README.md +1 -1
- package/dist/client/client.d.ts +13 -2
- package/dist/client/client.d.ts.map +1 -1
- package/dist/client/client.js +136 -73
- package/dist/client/client.js.map +1 -1
- package/dist/client/config.d.ts +14 -18
- package/dist/client/config.d.ts.map +1 -1
- package/dist/client/config.js.map +1 -1
- package/dist/client/content-adapter.d.ts +2 -0
- package/dist/client/content-adapter.d.ts.map +1 -1
- package/dist/client/content-adapter.js +4 -0
- package/dist/client/content-adapter.js.map +1 -1
- package/dist/client/endorsement-manager.d.ts +4 -1
- package/dist/client/endorsement-manager.d.ts.map +1 -1
- package/dist/client/endorsement-manager.js +14 -6
- package/dist/client/endorsement-manager.js.map +1 -1
- package/dist/client/group-authority.d.ts +8 -0
- package/dist/client/group-authority.d.ts.map +1 -0
- package/dist/client/group-authority.js +2 -0
- package/dist/client/group-authority.js.map +1 -0
- package/dist/client/headless.d.ts +3 -8
- package/dist/client/headless.d.ts.map +1 -1
- package/dist/client/headless.js +3 -8
- package/dist/client/headless.js.map +1 -1
- package/dist/client/hosted-anonymous-delivery.d.ts +32 -0
- package/dist/client/hosted-anonymous-delivery.d.ts.map +1 -0
- package/dist/client/hosted-anonymous-delivery.js +239 -0
- package/dist/client/hosted-anonymous-delivery.js.map +1 -0
- package/dist/client/hosted-connection.d.ts +1 -1
- package/dist/client/hosted-connection.d.ts.map +1 -1
- package/dist/client/hosted-connection.js +18 -51
- package/dist/client/hosted-connection.js.map +1 -1
- package/dist/client/hosted-group-authority.d.ts +11 -0
- package/dist/client/hosted-group-authority.d.ts.map +1 -0
- package/dist/client/hosted-group-authority.js +96 -0
- package/dist/client/hosted-group-authority.js.map +1 -0
- package/dist/client/hosted-groups.d.ts +31 -0
- package/dist/client/hosted-groups.d.ts.map +1 -0
- package/dist/client/hosted-groups.js +217 -0
- package/dist/client/hosted-groups.js.map +1 -0
- package/dist/client/hosted-mailbox-subscription.d.ts +34 -0
- package/dist/client/hosted-mailbox-subscription.d.ts.map +1 -0
- package/dist/client/hosted-mailbox-subscription.js +257 -0
- package/dist/client/hosted-mailbox-subscription.js.map +1 -0
- package/dist/client/hosted-prekey-publication.d.ts +51 -0
- package/dist/client/hosted-prekey-publication.d.ts.map +1 -0
- package/dist/client/hosted-prekey-publication.js +249 -0
- package/dist/client/hosted-prekey-publication.js.map +1 -0
- package/dist/client/hosted-push.d.ts +4 -5
- package/dist/client/hosted-push.d.ts.map +1 -1
- package/dist/client/hosted-push.js +22 -22
- package/dist/client/hosted-push.js.map +1 -1
- package/dist/client/hosted-transport.d.ts +57 -35
- package/dist/client/hosted-transport.d.ts.map +1 -1
- package/dist/client/hosted-transport.js +666 -341
- package/dist/client/hosted-transport.js.map +1 -1
- package/dist/client/hosted-trust.d.ts +29 -0
- package/dist/client/hosted-trust.d.ts.map +1 -0
- package/dist/client/hosted-trust.js +28 -0
- package/dist/client/hosted-trust.js.map +1 -0
- package/dist/client/hosted.d.ts +18 -13
- package/dist/client/hosted.d.ts.map +1 -1
- package/dist/client/hosted.js +78 -34
- package/dist/client/hosted.js.map +1 -1
- package/dist/client/index.d.ts +14 -14
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +7 -7
- package/dist/client/index.js.map +1 -1
- package/dist/client/key-rotation-core.d.ts +8 -0
- package/dist/client/key-rotation-core.d.ts.map +1 -1
- package/dist/client/key-rotation-core.js +12 -1
- package/dist/client/key-rotation-core.js.map +1 -1
- package/dist/client/key-rotation.d.ts +2 -1
- package/dist/client/key-rotation.d.ts.map +1 -1
- package/dist/client/key-rotation.js +4 -4
- package/dist/client/key-rotation.js.map +1 -1
- package/dist/client/media-queue-persistence.d.ts +14 -0
- package/dist/client/media-queue-persistence.d.ts.map +1 -0
- package/dist/client/media-queue-persistence.js +123 -0
- package/dist/client/media-queue-persistence.js.map +1 -0
- package/dist/client/media-upload-budget.d.ts +3 -0
- package/dist/client/media-upload-budget.d.ts.map +1 -0
- package/dist/client/media-upload-budget.js +27 -0
- package/dist/client/media-upload-budget.js.map +1 -0
- package/dist/client/media.d.ts +51 -15
- package/dist/client/media.d.ts.map +1 -1
- package/dist/client/media.js +541 -73
- package/dist/client/media.js.map +1 -1
- package/dist/client/messages.d.ts.map +1 -1
- package/dist/client/messages.js +13 -14
- package/dist/client/messages.js.map +1 -1
- package/dist/client/prekeys.d.ts.map +1 -1
- package/dist/client/prekeys.js +131 -43
- package/dist/client/prekeys.js.map +1 -1
- package/dist/client/relay-subscription.d.ts +4 -0
- package/dist/client/relay-subscription.d.ts.map +1 -1
- package/dist/client/relay-subscription.js +58 -25
- package/dist/client/relay-subscription.js.map +1 -1
- package/dist/client/sender-key-distribution.d.ts +8 -0
- package/dist/client/sender-key-distribution.d.ts.map +1 -0
- package/dist/client/sender-key-distribution.js +59 -0
- package/dist/client/sender-key-distribution.js.map +1 -0
- package/dist/client/signal-service-cipher.d.ts +7 -3
- package/dist/client/signal-service-cipher.d.ts.map +1 -1
- package/dist/client/signal-service-cipher.js +41 -16
- package/dist/client/signal-service-cipher.js.map +1 -1
- package/dist/device/{expo-metadata.d.ts → expo/index.d.ts} +3 -3
- package/dist/device/expo/index.d.ts.map +1 -0
- package/dist/device/{expo-metadata.js → expo/index.js} +2 -2
- package/dist/device/expo/index.js.map +1 -0
- package/dist/device/index.js +1 -1
- package/dist/device/index.js.map +1 -1
- package/dist/device/provisioning.d.ts +1 -1
- package/dist/device/provisioning.js +1 -1
- package/dist/device/types.d.ts +1 -1
- package/dist/groups/server.d.ts +10 -0
- package/dist/groups/server.d.ts.map +1 -0
- package/dist/groups/server.js +6 -0
- package/dist/groups/server.js.map +1 -0
- package/dist/hooks/use-connection-presence.d.ts +2 -4
- package/dist/hooks/use-connection-presence.d.ts.map +1 -1
- package/dist/hooks/use-connection-presence.js +2 -4
- package/dist/hooks/use-connection-presence.js.map +1 -1
- package/dist/index.d.ts +51 -49
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +25 -24
- package/dist/index.js.map +1 -1
- package/dist/internal/groups/authority-certificate.d.ts +22 -0
- package/dist/internal/groups/authority-certificate.d.ts.map +1 -0
- package/dist/internal/groups/authority-certificate.js +99 -0
- package/dist/internal/groups/authority-certificate.js.map +1 -0
- package/dist/internal/groups/error-details.d.ts +9 -0
- package/dist/internal/groups/error-details.d.ts.map +1 -0
- package/dist/internal/groups/error-details.js +30 -0
- package/dist/internal/groups/error-details.js.map +1 -0
- package/dist/internal/groups/manager.d.ts +5 -0
- package/dist/internal/groups/manager.d.ts.map +1 -1
- package/dist/internal/groups/manager.js +3 -0
- package/dist/internal/groups/manager.js.map +1 -1
- package/dist/internal/groups/server-engine.d.ts +7 -0
- package/dist/internal/groups/server-engine.d.ts.map +1 -1
- package/dist/internal/groups/server-engine.js +51 -19
- package/dist/internal/groups/server-engine.js.map +1 -1
- package/dist/internal/groups/wire.d.ts.map +1 -1
- package/dist/internal/groups/wire.js +10 -9
- package/dist/internal/groups/wire.js.map +1 -1
- package/dist/internal/manager/manager.d.ts +1 -1
- package/dist/internal/manager/manager.d.ts.map +1 -1
- package/dist/internal/manager/manager.js +22 -25
- package/dist/internal/manager/manager.js.map +1 -1
- package/dist/internal/protocol/sender-keys/manager.d.ts +1 -1
- package/dist/internal/protocol/sender-keys/manager.d.ts.map +1 -1
- package/dist/internal/protocol/sender-keys/manager.js +27 -14
- package/dist/internal/protocol/sender-keys/manager.js.map +1 -1
- package/dist/internal/sesame/manager.d.ts +2 -2
- package/dist/internal/sesame/manager.d.ts.map +1 -1
- package/dist/internal/sesame/manager.js +6 -6
- package/dist/internal/sesame/manager.js.map +1 -1
- package/dist/internal/sesame/types.d.ts +1 -1
- package/dist/internal/sesame/types.d.ts.map +1 -1
- package/dist/internal/session/cipher.d.ts +1 -1
- package/dist/internal/session/cipher.d.ts.map +1 -1
- package/dist/internal/session/cipher.js +31 -28
- package/dist/internal/session/cipher.js.map +1 -1
- package/dist/layers.d.ts +1 -1
- package/dist/layers.d.ts.map +1 -1
- package/dist/layers.js +1 -1
- package/dist/layers.js.map +1 -1
- package/dist/local/store/expo/adapter.d.ts +8 -2
- package/dist/local/store/expo/adapter.d.ts.map +1 -1
- package/dist/local/store/expo/adapter.js +28 -9
- package/dist/local/store/expo/adapter.js.map +1 -1
- package/dist/local/store/expo/key-storage.d.ts +7 -1
- package/dist/local/store/expo/key-storage.d.ts.map +1 -1
- package/dist/local/store/expo/key-storage.js +82 -17
- package/dist/local/store/expo/key-storage.js.map +1 -1
- package/dist/local/store/expo/models/kyber-prekey-used.d.ts +1 -4
- package/dist/local/store/expo/models/kyber-prekey-used.d.ts.map +1 -1
- package/dist/local/store/expo/models/kyber-prekey-used.js +23 -9
- package/dist/local/store/expo/models/kyber-prekey-used.js.map +1 -1
- package/dist/local/store/expo/models/kyber-prekey.d.ts +4 -4
- package/dist/local/store/expo/models/kyber-prekey.d.ts.map +1 -1
- package/dist/local/store/expo/models/kyber-prekey.js +67 -26
- package/dist/local/store/expo/models/kyber-prekey.js.map +1 -1
- package/dist/local/store/expo/schema.d.ts +21 -2
- package/dist/local/store/expo/schema.d.ts.map +1 -1
- package/dist/local/store/expo/schema.js +10 -2
- package/dist/local/store/expo/schema.js.map +1 -1
- package/dist/local/store/kyber-prekey-lifecycle.d.ts +46 -0
- package/dist/local/store/kyber-prekey-lifecycle.d.ts.map +1 -0
- package/dist/local/store/kyber-prekey-lifecycle.js +88 -0
- package/dist/local/store/kyber-prekey-lifecycle.js.map +1 -0
- package/dist/local/store/memory/adapter.d.ts +11 -3
- package/dist/local/store/memory/adapter.d.ts.map +1 -1
- package/dist/local/store/memory/adapter.js +113 -28
- package/dist/local/store/memory/adapter.js.map +1 -1
- package/dist/local/store/node/adapter.d.ts +8 -2
- package/dist/local/store/node/adapter.d.ts.map +1 -1
- package/dist/local/store/node/adapter.js +31 -13
- package/dist/local/store/node/adapter.js.map +1 -1
- package/dist/local/store/node/database-file-commit.d.ts +8 -0
- package/dist/local/store/node/database-file-commit.d.ts.map +1 -0
- package/dist/local/store/node/database-file-commit.js +62 -0
- package/dist/local/store/node/database-file-commit.js.map +1 -0
- package/dist/local/store/node/database-key.d.ts +6 -1
- package/dist/local/store/node/database-key.d.ts.map +1 -1
- package/dist/local/store/node/database-key.js +79 -44
- package/dist/local/store/node/database-key.js.map +1 -1
- package/dist/local/store/node/database-lock.d.ts +8 -0
- package/dist/local/store/node/database-lock.d.ts.map +1 -0
- package/dist/local/store/node/database-lock.js +44 -0
- package/dist/local/store/node/database-lock.js.map +1 -0
- package/dist/local/store/node/database.d.ts +15 -14
- package/dist/local/store/node/database.d.ts.map +1 -1
- package/dist/local/store/node/database.js +197 -202
- package/dist/local/store/node/database.js.map +1 -1
- package/dist/local/store/react-native/adapter.d.ts +8 -2
- package/dist/local/store/react-native/adapter.d.ts.map +1 -1
- package/dist/local/store/react-native/adapter.js +151 -66
- package/dist/local/store/react-native/adapter.js.map +1 -1
- package/dist/local/store/received-content.d.ts +9 -0
- package/dist/local/store/received-content.d.ts.map +1 -0
- package/dist/local/store/received-content.js +46 -0
- package/dist/local/store/received-content.js.map +1 -0
- package/dist/local/store/reliability.d.ts +2 -2
- package/dist/local/store/reliability.d.ts.map +1 -1
- package/dist/local/store/reliability.js +7 -4
- package/dist/local/store/reliability.js.map +1 -1
- package/dist/local/store/web/adapter.d.ts +8 -2
- package/dist/local/store/web/adapter.d.ts.map +1 -1
- package/dist/local/store/web/adapter.js +206 -73
- package/dist/local/store/web/adapter.js.map +1 -1
- package/dist/media/index.d.ts +71 -61
- package/dist/media/index.d.ts.map +1 -1
- package/dist/media/index.js +550 -386
- package/dist/media/index.js.map +1 -1
- package/dist/media/prepared-upload.d.ts +37 -0
- package/dist/media/prepared-upload.d.ts.map +1 -0
- package/dist/media/prepared-upload.js +46 -0
- package/dist/media/prepared-upload.js.map +1 -0
- package/dist/remote/object-store/convex-r2/server.d.ts +2 -1
- package/dist/remote/object-store/convex-r2/server.d.ts.map +1 -1
- package/dist/remote/object-store/convex-r2/server.js +4 -0
- package/dist/remote/object-store/convex-r2/server.js.map +1 -1
- package/dist/remote/object-store/convex-r2/storage.d.ts.map +1 -1
- package/dist/remote/object-store/convex-r2/storage.js +1 -0
- package/dist/remote/object-store/convex-r2/storage.js.map +1 -1
- package/dist/remote/object-store/index.d.ts +3 -1
- package/dist/remote/object-store/index.d.ts.map +1 -1
- package/dist/remote/object-store/index.js +1 -1
- package/dist/remote/object-store/index.js.map +1 -1
- package/dist/remote/object-store/s3/storage.d.ts +3 -1
- package/dist/remote/object-store/s3/storage.d.ts.map +1 -1
- package/dist/remote/object-store/s3/storage.js +9 -2
- package/dist/remote/object-store/s3/storage.js.map +1 -1
- package/dist/remote/object-store/types.d.ts +33 -4
- package/dist/remote/object-store/types.d.ts.map +1 -1
- package/dist/remote/object-store/upload-error.d.ts +23 -0
- package/dist/remote/object-store/upload-error.d.ts.map +1 -0
- package/dist/remote/object-store/upload-error.js +33 -0
- package/dist/remote/object-store/upload-error.js.map +1 -0
- package/dist/remote/object-store/validation.d.ts +7 -1
- package/dist/remote/object-store/validation.d.ts.map +1 -1
- package/dist/remote/object-store/validation.js +39 -25
- package/dist/remote/object-store/validation.js.map +1 -1
- package/dist/remote/relay/index.d.ts +5 -12
- package/dist/remote/relay/index.d.ts.map +1 -1
- package/dist/remote/relay/index.js +4 -11
- package/dist/remote/relay/index.js.map +1 -1
- package/dist/remote/relay/memory/adapter.d.ts +2 -1
- package/dist/remote/relay/memory/adapter.d.ts.map +1 -1
- package/dist/remote/relay/memory/adapter.js +10 -0
- package/dist/remote/relay/memory/adapter.js.map +1 -1
- package/dist/remote/relay/types.d.ts +28 -17
- package/dist/remote/relay/types.d.ts.map +1 -1
- package/dist/types/api.d.ts +36 -1
- package/dist/types/api.d.ts.map +1 -1
- package/dist/types/session.d.ts +6 -0
- package/dist/types/session.d.ts.map +1 -1
- package/dist/types/session.js.map +1 -1
- package/docs/ASSURANCE.md +7 -7
- package/docs/CLIENT_COMPOSITION.md +12 -19
- package/docs/DEVIATIONS.md +1 -1
- package/docs/DOCUMENTATION_STANDARDS.md +4 -0
- package/docs/GETTING_STARTED.md +23 -38
- package/docs/INTERFACES.md +22 -13
- package/docs/PACKAGE_SURFACE.md +5 -12
- package/docs/RECIPES.md +10 -23
- package/examples/browser/index.html +2 -2
- package/local/store/README.md +16 -1
- package/local/store/expo/README.md +23 -19
- package/local/store/node/README.md +29 -0
- package/media/README.md +94 -0
- package/package.json +17 -27
- package/remote/README.md +16 -16
- package/remote/object-store/README.md +8 -0
- package/remote/object-store/s3/README.md +10 -1
- package/remote/relay/README.md +3 -2
- package/COMMERCIAL.md +0 -56
- package/dist/device/expo-metadata.d.ts.map +0 -1
- package/dist/device/expo-metadata.js.map +0 -1
- package/dist/remote/relay/convex/backend.d.ts +0 -394
- package/dist/remote/relay/convex/backend.d.ts.map +0 -1
- package/dist/remote/relay/convex/backend.js +0 -678
- package/dist/remote/relay/convex/backend.js.map +0 -1
- package/dist/remote/relay/convex/component/_generated/api.d.ts +0 -58
- package/dist/remote/relay/convex/component/_generated/api.d.ts.map +0 -1
- package/dist/remote/relay/convex/component/_generated/api.js +0 -31
- package/dist/remote/relay/convex/component/_generated/api.js.map +0 -1
- package/dist/remote/relay/convex/component/_generated/component.d.ts +0 -475
- package/dist/remote/relay/convex/component/_generated/component.d.ts.map +0 -1
- package/dist/remote/relay/convex/component/_generated/component.js +0 -11
- package/dist/remote/relay/convex/component/_generated/component.js.map +0 -1
- package/dist/remote/relay/convex/component/_generated/dataModel.d.ts +0 -46
- package/dist/remote/relay/convex/component/_generated/dataModel.d.ts.map +0 -1
- package/dist/remote/relay/convex/component/_generated/dataModel.js +0 -11
- package/dist/remote/relay/convex/component/_generated/dataModel.js.map +0 -1
- package/dist/remote/relay/convex/component/_generated/server.d.ts +0 -129
- package/dist/remote/relay/convex/component/_generated/server.d.ts.map +0 -1
- package/dist/remote/relay/convex/component/_generated/server.js +0 -79
- package/dist/remote/relay/convex/component/_generated/server.js.map +0 -1
- package/dist/remote/relay/convex/component/accounts.d.ts +0 -45
- package/dist/remote/relay/convex/component/accounts.d.ts.map +0 -1
- package/dist/remote/relay/convex/component/accounts.js +0 -184
- package/dist/remote/relay/convex/component/accounts.js.map +0 -1
- package/dist/remote/relay/convex/component/certificates.d.ts +0 -10
- package/dist/remote/relay/convex/component/certificates.d.ts.map +0 -1
- package/dist/remote/relay/convex/component/certificates.js +0 -126
- package/dist/remote/relay/convex/component/certificates.js.map +0 -1
- package/dist/remote/relay/convex/component/cleanup.d.ts +0 -32
- package/dist/remote/relay/convex/component/cleanup.d.ts.map +0 -1
- package/dist/remote/relay/convex/component/cleanup.js +0 -146
- package/dist/remote/relay/convex/component/cleanup.js.map +0 -1
- package/dist/remote/relay/convex/component/convex.config.d.ts +0 -5
- package/dist/remote/relay/convex/component/convex.config.d.ts.map +0 -1
- package/dist/remote/relay/convex/component/convex.config.js +0 -35
- package/dist/remote/relay/convex/component/convex.config.js.map +0 -1
- package/dist/remote/relay/convex/component/crons.d.ts +0 -3
- package/dist/remote/relay/convex/component/crons.d.ts.map +0 -1
- package/dist/remote/relay/convex/component/crons.js +0 -10
- package/dist/remote/relay/convex/component/crons.js.map +0 -1
- package/dist/remote/relay/convex/component/devices.d.ts +0 -102
- package/dist/remote/relay/convex/component/devices.d.ts.map +0 -1
- package/dist/remote/relay/convex/component/devices.js +0 -300
- package/dist/remote/relay/convex/component/devices.js.map +0 -1
- package/dist/remote/relay/convex/component/errors.d.ts +0 -22
- package/dist/remote/relay/convex/component/errors.d.ts.map +0 -1
- package/dist/remote/relay/convex/component/errors.js +0 -17
- package/dist/remote/relay/convex/component/errors.js.map +0 -1
- package/dist/remote/relay/convex/component/groups.d.ts +0 -63
- package/dist/remote/relay/convex/component/groups.d.ts.map +0 -1
- package/dist/remote/relay/convex/component/groups.js +0 -341
- package/dist/remote/relay/convex/component/groups.js.map +0 -1
- package/dist/remote/relay/convex/component/keys.d.ts +0 -130
- package/dist/remote/relay/convex/component/keys.d.ts.map +0 -1
- package/dist/remote/relay/convex/component/keys.js +0 -578
- package/dist/remote/relay/convex/component/keys.js.map +0 -1
- package/dist/remote/relay/convex/component/messages.d.ts +0 -105
- package/dist/remote/relay/convex/component/messages.d.ts.map +0 -1
- package/dist/remote/relay/convex/component/messages.js +0 -702
- package/dist/remote/relay/convex/component/messages.js.map +0 -1
- package/dist/remote/relay/convex/component/provisioning.d.ts +0 -92
- package/dist/remote/relay/convex/component/provisioning.d.ts.map +0 -1
- package/dist/remote/relay/convex/component/provisioning.js +0 -360
- package/dist/remote/relay/convex/component/provisioning.js.map +0 -1
- package/dist/remote/relay/convex/component/runtime.d.ts +0 -18
- package/dist/remote/relay/convex/component/runtime.d.ts.map +0 -1
- package/dist/remote/relay/convex/component/runtime.js +0 -144
- package/dist/remote/relay/convex/component/runtime.js.map +0 -1
- package/dist/remote/relay/convex/component/schema.d.ts +0 -358
- package/dist/remote/relay/convex/component/schema.d.ts.map +0 -1
- package/dist/remote/relay/convex/component/schema.js +0 -288
- package/dist/remote/relay/convex/component/schema.js.map +0 -1
- package/dist/remote/relay/convex/component/zkAuth.d.ts +0 -18
- package/dist/remote/relay/convex/component/zkAuth.d.ts.map +0 -1
- package/dist/remote/relay/convex/component/zkAuth.js +0 -86
- package/dist/remote/relay/convex/component/zkAuth.js.map +0 -1
- package/dist/remote/relay/convex/constants.d.ts +0 -3
- package/dist/remote/relay/convex/constants.d.ts.map +0 -1
- package/dist/remote/relay/convex/constants.js +0 -3
- package/dist/remote/relay/convex/constants.js.map +0 -1
- package/dist/remote/relay/convex/group-server.d.ts +0 -123
- package/dist/remote/relay/convex/group-server.d.ts.map +0 -1
- package/dist/remote/relay/convex/group-server.js +0 -184
- package/dist/remote/relay/convex/group-server.js.map +0 -1
- package/dist/remote/relay/convex/index.d.ts +0 -42
- package/dist/remote/relay/convex/index.d.ts.map +0 -1
- package/dist/remote/relay/convex/index.js +0 -38
- package/dist/remote/relay/convex/index.js.map +0 -1
- package/dist/remote/relay/convex/relay.d.ts +0 -323
- package/dist/remote/relay/convex/relay.d.ts.map +0 -1
- package/dist/remote/relay/convex/relay.js +0 -1144
- package/dist/remote/relay/convex/relay.js.map +0 -1
- package/dist/remote/relay/convex/types.d.ts +0 -24
- package/dist/remote/relay/convex/types.d.ts.map +0 -1
- package/dist/remote/relay/convex/types.js +0 -14
- package/dist/remote/relay/convex/types.js.map +0 -1
- package/remote/relay/convex/README.md +0 -61
- package/remote/relay/convex/component/README.md +0 -462
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"relay.js","sourceRoot":"","sources":["../../../../remote/relay/convex/relay.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAIH,OAAO,EAAE,YAAY,IAAI,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AA0BrE,OAAO,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAE9F,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,2BAA2B,EAAgB,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAOnD,MAAM,sBAAsB,GAAG,IAAI,CAAC;AAEpC;;;GAGG;AACH,MAAM,wBAAwB,GAAG,IAAI,CAAC;AAEtC;;;GAGG;AACH,MAAM,yBAAyB,GAAG,GAAG,CAAC;AAEtC;;;GAGG;AACH,MAAM,mBAAmB,GAAG,IAAI,CAAC;AAEjC;;;;;;;;;;;GAWG;AACH,SAAS,uBAAuB,CAAC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K,CAAC;IACf,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAO;QACX,uCAAuC;QACvC,KAAK,MAAM,WAAW,IAAI,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,CAAC;YACtD,WAAW,EAAE,CAAC;QAChB,CAAC;QACD,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;QAE3B,sDAAsD;QACtD,IAAI,IAAI,CAAC,kBAAkB,EAAE,CAAC;YAC5B,MAAM,IAAI,CAAC,kBAAkB,CAAC,KAAK,EAAE,CAAC;YACtC,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC;QACjC,CAAC;IACH,CAAC;CACF"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wire types for the Convex relay adapter.
|
|
3
|
-
*
|
|
4
|
-
* The component isolates its tables. An application cannot read or query
|
|
5
|
-
* them, only call the component's functions. Row types for those tables would
|
|
6
|
-
* describe values no consumer can read, so this module declares none. See
|
|
7
|
-
* `remote/relay/convex/component/schema.ts` for the storage layout and
|
|
8
|
-
* `docs/SCHEMA.md` for what the relay stores, and for how long.
|
|
9
|
-
*
|
|
10
|
-
* What crosses the boundary is function arguments and return values, and those
|
|
11
|
-
* types follow the component's own validators instead of repeating them.
|
|
12
|
-
*/
|
|
13
|
-
import type { FunctionReturnType } from 'convex/server';
|
|
14
|
-
import type { ConvexSignalProtocolRelayApi } from './relay.js';
|
|
15
|
-
/**
|
|
16
|
-
* Prekey bundle returned by the `fetchPreKeyBundle` mutation.
|
|
17
|
-
*
|
|
18
|
-
* Derived from the component's return validator, so it cannot drift from what
|
|
19
|
-
* the component actually emits. This type excludes `null`, which means no such
|
|
20
|
-
* device, or no keys uploaded. The adapter's `fetchPreKeyBundle` returns `null`
|
|
21
|
-
* in that case before it constructs a bundle.
|
|
22
|
-
*/
|
|
23
|
-
export type FetchedPreKeyBundle = NonNullable<FunctionReturnType<ConvexSignalProtocolRelayApi['keys']['fetchPreKeyBundle']>>;
|
|
24
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../remote/relay/convex/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAE5D;;;;;;;GAOG;AACH,MAAM,MAAM,mBAAmB,GAAG,WAAW,CAC3C,kBAAkB,CAAC,4BAA4B,CAAC,MAAM,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAC9E,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wire types for the Convex relay adapter.
|
|
3
|
-
*
|
|
4
|
-
* The component isolates its tables. An application cannot read or query
|
|
5
|
-
* them, only call the component's functions. Row types for those tables would
|
|
6
|
-
* describe values no consumer can read, so this module declares none. See
|
|
7
|
-
* `remote/relay/convex/component/schema.ts` for the storage layout and
|
|
8
|
-
* `docs/SCHEMA.md` for what the relay stores, and for how long.
|
|
9
|
-
*
|
|
10
|
-
* What crosses the boundary is function arguments and return values, and those
|
|
11
|
-
* types follow the component's own validators instead of repeating them.
|
|
12
|
-
*/
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../remote/relay/convex/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
# Convex Relay Adapter
|
|
2
|
-
|
|
3
|
-
The Convex relay adapter maps an application-owned generated Convex API module
|
|
4
|
-
to `ISignalProtocolRelayServer`.
|
|
5
|
-
|
|
6
|
-
## Why it exists
|
|
7
|
-
|
|
8
|
-
Convex generated references retain precise query and mutation types but do not
|
|
9
|
-
implement the SDK relay contract directly. The adapter maps those references
|
|
10
|
-
onto the contract on the client, and leaves backend registration and policy in
|
|
11
|
-
the application.
|
|
12
|
-
|
|
13
|
-
## Ownership boundary
|
|
14
|
-
|
|
15
|
-
The SDK supplies the client adapter and exact function-reference types. The
|
|
16
|
-
application owns its Convex deployment, schema, authentication, authorization,
|
|
17
|
-
functions, retention policy, and operational controls.
|
|
18
|
-
|
|
19
|
-
## Usage
|
|
20
|
-
|
|
21
|
-
Organize the application functions under one generated module namespace, then
|
|
22
|
-
pass that namespace directly:
|
|
23
|
-
|
|
24
|
-
<!-- doc-snippet:skip requires-external-context -->
|
|
25
|
-
```ts
|
|
26
|
-
import { createSignalProtocolClient } from "@open-e2ee/signal-protocol-sdk";
|
|
27
|
-
import {
|
|
28
|
-
convexRelay,
|
|
29
|
-
type ConvexSignalProtocolRelayApi,
|
|
30
|
-
} from "@open-e2ee/signal-protocol-sdk/remote/relay/convex";
|
|
31
|
-
import { api } from "../convex/_generated/api";
|
|
32
|
-
|
|
33
|
-
const signalApi = api.signal satisfies ConvexSignalProtocolRelayApi;
|
|
34
|
-
|
|
35
|
-
const relay = convexRelay({
|
|
36
|
-
convex,
|
|
37
|
-
api: signalApi,
|
|
38
|
-
currentUserId: userId,
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
const client = await createSignalProtocolClient({
|
|
42
|
-
identity: { userId },
|
|
43
|
-
adapters: { storage, relay },
|
|
44
|
-
});
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
The generated `api.signal` namespace must expose the nested functions described
|
|
48
|
-
by `ConvexSignalProtocolRelayApi`. Use `satisfies` to get a compile-time diagnostic
|
|
49
|
-
without widening the generated references.
|
|
50
|
-
|
|
51
|
-
To serve groups from this deployment, also mount the
|
|
52
|
-
[Convex Signal Protocol component](./component/README.md) inside the same namespace
|
|
53
|
-
(`convex/signal/groups.ts` and `convex/signal/zkAuth.ts`). The relay
|
|
54
|
-
advertises its `groupServer` capability only when you configure both modules.
|
|
55
|
-
|
|
56
|
-
Public-key reads may be available to authenticated peers, but every write must
|
|
57
|
-
derive ownership from server-side authentication rather than trusting a
|
|
58
|
-
client-supplied user ID.
|
|
59
|
-
|
|
60
|
-
See the [relay guide](../README.md) and
|
|
61
|
-
[API reference](../../../docs/api/README.md).
|
|
@@ -1,462 +0,0 @@
|
|
|
1
|
-
# Convex Signal Protocol component
|
|
2
|
-
|
|
3
|
-
This installable Convex component owns the complete relay backend:
|
|
4
|
-
|
|
5
|
-
- account and device registration
|
|
6
|
-
- identity and prekey storage
|
|
7
|
-
- message queues, sealed-sender delivery, and retry requests
|
|
8
|
-
- provisioning and sender certificates
|
|
9
|
-
- canonical encrypted group state and anonymous group authorization
|
|
10
|
-
- credential issuance and group-send endorsements
|
|
11
|
-
|
|
12
|
-
The app owns only its authentication-to-protocol-identity mapping and thin
|
|
13
|
-
public wrappers.
|
|
14
|
-
|
|
15
|
-
## Install the component
|
|
16
|
-
|
|
17
|
-
Mount the component in the app's Convex configuration:
|
|
18
|
-
|
|
19
|
-
<!-- doc-snippet:skip requires-external-context -->
|
|
20
|
-
```ts
|
|
21
|
-
// convex/convex.config.ts
|
|
22
|
-
import { defineApp } from 'convex/server';
|
|
23
|
-
import { v } from 'convex/values';
|
|
24
|
-
import signalProtocol from '@open-e2ee/signal-protocol-sdk/convex.config';
|
|
25
|
-
|
|
26
|
-
const app = defineApp({
|
|
27
|
-
env: { OE_GROUPS_SERVER_SECRET: v.optional(v.string()) },
|
|
28
|
-
});
|
|
29
|
-
app.use(signalProtocol, {
|
|
30
|
-
env: { OE_GROUPS_SERVER_SECRET: app.env.OE_GROUPS_SERVER_SECRET },
|
|
31
|
-
});
|
|
32
|
-
export default app;
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
The `env` forwarding is load-bearing. Convex isolates each component from the
|
|
36
|
-
app's environment variables. Without the forwarding, the component cannot see
|
|
37
|
-
the deployment's `OE_GROUPS_SERVER_SECRET`, and every group,
|
|
38
|
-
credential-issuance, and sender-certificate call fails at runtime. The
|
|
39
|
-
messaging, device, key, and provisioning namespaces work without the secret.
|
|
40
|
-
|
|
41
|
-
The component owns these isolated tables. They do not appear in the app schema
|
|
42
|
-
and need no package-specific prefixes:
|
|
43
|
-
|
|
44
|
-
- `accounts`: reverse lookup from application account IDs to protocol service
|
|
45
|
-
identifiers and sealed-sender access keys.
|
|
46
|
-
- `devices` and `deviceHeartbeats`: device lifecycle and presence state.
|
|
47
|
-
- `identityKeys` and `identityRegistrations`: account-scoped composite
|
|
48
|
-
identities and device-scoped registration IDs.
|
|
49
|
-
- `ecPreKeys`, `ecSignedPreKeys`, `kemOneTimePreKeys`, and
|
|
50
|
-
`kemLastResortPreKeys`: the four prekey kinds, including durable one-time-key
|
|
51
|
-
consumption tombstones.
|
|
52
|
-
- `messages` and `retryRequests`: device delivery and retry queues.
|
|
53
|
-
- `provisioningSessions`: the linked-device provisioning state machine.
|
|
54
|
-
- `senderCertificates`: cached account/device certificate material.
|
|
55
|
-
- `groups`, `groupChanges`, and `groupSnapshots`: canonical encrypted group
|
|
56
|
-
state, immutable signed changes, and per-version signed snapshots.
|
|
57
|
-
|
|
58
|
-
The component derives **no** membership map from group state. Zero-knowledge
|
|
59
|
-
presentations authorize every group read and write. Therefore `groups`,
|
|
60
|
-
`groupChanges`, and `groupSnapshots` never name an account, and the relay
|
|
61
|
-
surface has no `getGroupMembers` endpoint. Membership is local-first. Each
|
|
62
|
-
client resolves fan-out recipients from its own decrypted group state and
|
|
63
|
-
passes their user IDs with the send (`SendOptions.groupMemberUserIds`). The
|
|
64
|
-
relay expands users to devices through `getActiveDevices`.
|
|
65
|
-
|
|
66
|
-
See [Group metadata privacy](#group-metadata-privacy) for what the relay can
|
|
67
|
-
still infer from delivery traffic. The absence of a membership endpoint is not
|
|
68
|
-
by itself a metadata-privacy guarantee.
|
|
69
|
-
|
|
70
|
-
The mounted `@convex-dev/rate-limiter` child component separately owns its
|
|
71
|
-
isolated `rateLimits` table.
|
|
72
|
-
|
|
73
|
-
The tables store:
|
|
74
|
-
|
|
75
|
-
- the latest canonical encrypted state
|
|
76
|
-
- the exact accepted and signed action bytes
|
|
77
|
-
- every historical encrypted snapshot with its cached S14 baseline signature
|
|
78
|
-
|
|
79
|
-
They never store the group master key, group secret parameters, plaintext group
|
|
80
|
-
attributes, or the server secret.
|
|
81
|
-
|
|
82
|
-
Storage grows with one full encrypted snapshot per accepted version and is
|
|
83
|
-
never pruned. Old snapshots are load-bearing: `getGroupChanges` serves signed
|
|
84
|
-
history from them, so deleting rows breaks catch-up for clients behind that
|
|
85
|
-
version. A snapshot-compaction protocol is future work. Budget storage as
|
|
86
|
-
O(versions × state size) per group.
|
|
87
|
-
|
|
88
|
-
## Mount the public wrappers
|
|
89
|
-
|
|
90
|
-
Create the wrapper once with the mounted component reference and the app's
|
|
91
|
-
authentication hook:
|
|
92
|
-
|
|
93
|
-
<!-- doc-snippet:skip requires-external-context -->
|
|
94
|
-
```ts
|
|
95
|
-
// convex/relayBackend.ts
|
|
96
|
-
import { components } from './_generated/api';
|
|
97
|
-
import { defineConvexSignalProtocolBackend } from '@open-e2ee/signal-protocol-sdk/remote/relay/convex';
|
|
98
|
-
import { resolveProtocolIdentity } from './auth';
|
|
99
|
-
|
|
100
|
-
export const signalRelay = defineConvexSignalProtocolBackend(
|
|
101
|
-
components.signalProtocol,
|
|
102
|
-
{
|
|
103
|
-
identify: async (ctx) => {
|
|
104
|
-
const identity = await resolveProtocolIdentity(ctx);
|
|
105
|
-
return {
|
|
106
|
-
userId: identity.userId,
|
|
107
|
-
aciBytes: identity.aciBytes,
|
|
108
|
-
pniBytes: identity.pniBytes,
|
|
109
|
-
};
|
|
110
|
-
},
|
|
111
|
-
}
|
|
112
|
-
);
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
The relay reads these functions through `api.signal`, so the modules must live
|
|
116
|
-
inside that namespace rather than at the top of `convex/`:
|
|
117
|
-
|
|
118
|
-
<!-- doc-snippet:skip requires-external-context -->
|
|
119
|
-
```ts
|
|
120
|
-
// convex/signal/groups.ts
|
|
121
|
-
import { signalRelay } from '../relayBackend';
|
|
122
|
-
|
|
123
|
-
export const {
|
|
124
|
-
createGroup,
|
|
125
|
-
getGroup,
|
|
126
|
-
getGroupJoinInfo,
|
|
127
|
-
getGroupChanges,
|
|
128
|
-
submitGroupChange,
|
|
129
|
-
refreshGroupSendEndorsements,
|
|
130
|
-
} = signalRelay.groups;
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
<!-- doc-snippet:skip requires-external-context -->
|
|
134
|
-
```ts
|
|
135
|
-
// convex/signal/zkAuth.ts
|
|
136
|
-
import { signalRelay } from '../relayBackend';
|
|
137
|
-
|
|
138
|
-
export const {
|
|
139
|
-
issueAuthCredentialMutation,
|
|
140
|
-
issueProfileKeyCredentialMutation,
|
|
141
|
-
} = signalRelay.zkAuth;
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
Mount the remaining relay namespaces alongside those group modules:
|
|
145
|
-
|
|
146
|
-
<!-- doc-snippet:skip requires-external-context -->
|
|
147
|
-
```ts
|
|
148
|
-
// convex/signal/messages.ts
|
|
149
|
-
import { signalRelay } from '../relayBackend';
|
|
150
|
-
export const {
|
|
151
|
-
send,
|
|
152
|
-
getPendingMessages,
|
|
153
|
-
markDelivered,
|
|
154
|
-
getActiveDevices,
|
|
155
|
-
sendMultiRecipientUnidentified,
|
|
156
|
-
sendRetryRequest,
|
|
157
|
-
getPendingRetryRequests,
|
|
158
|
-
markRetryRequestHandled,
|
|
159
|
-
} = signalRelay.messages;
|
|
160
|
-
```
|
|
161
|
-
|
|
162
|
-
<!-- doc-snippet:skip requires-external-context -->
|
|
163
|
-
```ts
|
|
164
|
-
// convex/signal/devices.ts
|
|
165
|
-
import { signalRelay } from '../relayBackend';
|
|
166
|
-
export const {
|
|
167
|
-
getDevices,
|
|
168
|
-
registerDevice,
|
|
169
|
-
removeDevice,
|
|
170
|
-
markDeviceConnected,
|
|
171
|
-
markDeviceDisconnected,
|
|
172
|
-
presenceHeartbeat,
|
|
173
|
-
} = signalRelay.devices;
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
<!-- doc-snippet:skip requires-external-context -->
|
|
177
|
-
```ts
|
|
178
|
-
// convex/signal/keys.ts
|
|
179
|
-
import { signalRelay } from '../relayBackend';
|
|
180
|
-
export const {
|
|
181
|
-
uploadIdentityKey,
|
|
182
|
-
getIdentityKey,
|
|
183
|
-
uploadPreKeys,
|
|
184
|
-
fetchPreKeyBundle,
|
|
185
|
-
getPreKeyCount,
|
|
186
|
-
clearStaleKemPreKeys,
|
|
187
|
-
uploadEcSignedPreKey,
|
|
188
|
-
uploadKemLastResortPreKey,
|
|
189
|
-
getEcSignedPreKeyMetadata,
|
|
190
|
-
getKemLastResortPreKeyMetadata,
|
|
191
|
-
} = signalRelay.keys;
|
|
192
|
-
```
|
|
193
|
-
|
|
194
|
-
<!-- doc-snippet:skip requires-external-context -->
|
|
195
|
-
```ts
|
|
196
|
-
// convex/signal/certificates.ts
|
|
197
|
-
import { signalRelay } from '../relayBackend';
|
|
198
|
-
export const { issueSenderCertificate } = signalRelay.certificates;
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
<!-- doc-snippet:skip requires-external-context -->
|
|
202
|
-
```ts
|
|
203
|
-
// convex/signal/provisioning.ts
|
|
204
|
-
import { signalRelay } from '../relayBackend';
|
|
205
|
-
export const {
|
|
206
|
-
createProvisioningSession,
|
|
207
|
-
connectNewDevice,
|
|
208
|
-
sendProvisioningMessage,
|
|
209
|
-
getProvisioningMessage,
|
|
210
|
-
completeProvisioning,
|
|
211
|
-
acknowledgeProvisioning,
|
|
212
|
-
rollbackProvisioning,
|
|
213
|
-
deleteProvisioningSession,
|
|
214
|
-
} = signalRelay.provisioning;
|
|
215
|
-
```
|
|
216
|
-
|
|
217
|
-
- `messages` owns identified and sealed delivery, multi-recipient fan-out,
|
|
218
|
-
retry queues, and message/device lookup reads.
|
|
219
|
-
- `devices` owns registration, removal, connection state, and presence.
|
|
220
|
-
- `keys` owns identity provisioning and compare-and-swap rotation, prekey
|
|
221
|
-
upload, atomic one-time-key consumption, and key metadata.
|
|
222
|
-
- `certificates` issues sender certificates for registered account/device
|
|
223
|
-
identities.
|
|
224
|
-
- `provisioning` owns the linked-device session state machine through
|
|
225
|
-
acknowledgment or rollback.
|
|
226
|
-
|
|
227
|
-
The account-scoped wrappers resolve the caller identity on the server and
|
|
228
|
-
inject the application `userId`, raw ACI, and optional PNI bytes into the
|
|
229
|
-
isolated component. Client-supplied owner IDs are never trusted. Credential
|
|
230
|
-
issuance also resolves identity. Group wrappers pass client arguments through
|
|
231
|
-
untouched because group reads and writes authenticate membership solely through
|
|
232
|
-
the supplied zero-knowledge presentation.
|
|
233
|
-
|
|
234
|
-
`sendMultiRecipientUnidentified` is the deliberate exception: this
|
|
235
|
-
sealed-sender path does **not** call `identify`. It authorizes
|
|
236
|
-
the bearer request with the target's unidentified-access key or verified group
|
|
237
|
-
send material, which keeps delivery available without an authenticated
|
|
238
|
-
application session. Rejections carry structured `ConvexError` data. The relay
|
|
239
|
-
adapter reads `data.code === 'UNAUTHORIZED'` to decide the fallback to
|
|
240
|
-
identified delivery, and never matches on the message text. A deployment that
|
|
241
|
-
wraps or re-throws component rejections must preserve `code`. If it drops
|
|
242
|
-
`code`, a sealed send that must retry on the identified path surfaces as a hard
|
|
243
|
-
failure instead.
|
|
244
|
-
|
|
245
|
-
The zero-knowledge profile-key credential flow
|
|
246
|
-
(`issueProfileKeyCredentialMutation`) registers a recipient's
|
|
247
|
-
unidentified-access key as a side effect. Until a recipient completes that flow,
|
|
248
|
-
the component rejects access-key-authorized sealed sends to them, and the client
|
|
249
|
-
falls back to identified delivery. Messages still arrive, but without sender
|
|
250
|
-
anonymity. Deployments that want sealed sender for 1:1 messaging must drive
|
|
251
|
-
the profile-key credential flow during account setup, not lazily.
|
|
252
|
-
|
|
253
|
-
`identify` must return the authenticated account's real ACI, and its real PNI
|
|
254
|
-
or **no PNI at all**, plus the application-owned `userId` used for relay
|
|
255
|
-
routing. Never substitute a shared placeholder value for accounts without a
|
|
256
|
-
PNI. The credential layer matches by ACI-or-PNI alias. A constant PNI issued to
|
|
257
|
-
every account would therefore let any authenticated user act on any
|
|
258
|
-
PNI-addressed pending membership. An absent PNI must be absent.
|
|
259
|
-
|
|
260
|
-
## Retention and rate limiting
|
|
261
|
-
|
|
262
|
-
Component-owned interval jobs delete expired seven-day messages hourly,
|
|
263
|
-
expired seven-day retry requests hourly, expired provisioning sessions every
|
|
264
|
-
minute, and stale KEM prekeys daily. Cleanup mutations delete bounded batches
|
|
265
|
-
and schedule immediate continuations until the indexed range is empty.
|
|
266
|
-
|
|
267
|
-
Completing a provisioning session grants the acknowledgment its own full
|
|
268
|
-
session TTL. The cron rolls back a link that nobody acknowledges within that
|
|
269
|
-
window. It deletes the device the link created, together with all of its key
|
|
270
|
-
material, queued messages, and heartbeats. Teardown matches the device's
|
|
271
|
-
`linkedAt` stamp recorded at completion. A stale session therefore never reaps
|
|
272
|
-
a device that a legitimate re-registration put into the freed slot.
|
|
273
|
-
|
|
274
|
-
Prekey-bundle fetches use the mounted `@convex-dev/rate-limiter` child
|
|
275
|
-
component. Each authenticated fetcher/target-account pair receives ten fetches
|
|
276
|
-
per fixed one-minute window. The eleventh request fails with structured
|
|
277
|
-
`RATE_LIMITED` data and HTTP-equivalent status 429.
|
|
278
|
-
|
|
279
|
-
## Upgrading to 2.0: clear `messages` before deployment
|
|
280
|
-
|
|
281
|
-
Version 2.0 replaces the optional `urgent` and `ephemeral` booleans with one
|
|
282
|
-
required `deliveryClass`. Every 1.x `messages` row lacks that field.
|
|
283
|
-
|
|
284
|
-
Convex validates every existing document against the new schema **during the
|
|
285
|
-
push**, before any of your code runs. Any retained 1.x row therefore fails the
|
|
286
|
-
deploy. No migration mutation can run first, because the deploy that would ship
|
|
287
|
-
it is the deploy that fails. The order is: empty the table first, then deploy.
|
|
288
|
-
Version 2.0 does not keep a compatibility field or parser for the old shape.
|
|
289
|
-
|
|
290
|
-
Messages are transient by design. The table has a seven-day TTL and an hourly
|
|
291
|
-
cleanup cron. Clients re-request undelivered messages through the retry path,
|
|
292
|
-
so clearing the table is a normal operation rather than data loss.
|
|
293
|
-
|
|
294
|
-
Check whether the deployment has anything to clear. Run the check while the
|
|
295
|
-
deployment is still on the previous version, because the table lives inside the
|
|
296
|
-
component rather than the app:
|
|
297
|
-
|
|
298
|
-
```sh
|
|
299
|
-
npx convex data messages --component signalProtocol
|
|
300
|
-
```
|
|
301
|
-
|
|
302
|
-
Add `--prod` or `--deployment <name-or-reference>` to target a deployment other
|
|
303
|
-
than your development deployment. An empty table needs no action.
|
|
304
|
-
|
|
305
|
-
If there are rows, either wait or clear:
|
|
306
|
-
|
|
307
|
-
- **Wait**. Stop sending, and the hourly cleanup cron drains the table as the
|
|
308
|
-
seven-day retention window expires. No manual step, but it takes a week.
|
|
309
|
-
- **Clear**. In the Convex dashboard, select the `signalProtocol` component,
|
|
310
|
-
open the `messages` table, and clear it. Undelivered messages are lost.
|
|
311
|
-
Clients re-request them over the retry path.
|
|
312
|
-
|
|
313
|
-
Deploy once the table is empty.
|
|
314
|
-
|
|
315
|
-
## Secret initialization and pinned trust root
|
|
316
|
-
|
|
317
|
-
From the Convex app directory, run:
|
|
318
|
-
|
|
319
|
-
```sh
|
|
320
|
-
npx oe-groups trust-root
|
|
321
|
-
```
|
|
322
|
-
|
|
323
|
-
Add `--prod` for the default production deployment or
|
|
324
|
-
`--deployment <name-or-reference>` for another deployment. The command:
|
|
325
|
-
|
|
326
|
-
- checks `OE_GROUPS_SERVER_SECRET`
|
|
327
|
-
- generates a cryptographically random 32-byte seed only when the secret is
|
|
328
|
-
absent
|
|
329
|
-
- writes the seed to the selected Convex deployment through stdin
|
|
330
|
-
- prints the serialized group trust root, the Ed25519 sender-certificate root,
|
|
331
|
-
and the sender-certificate relay scope as labeled base64 values
|
|
332
|
-
|
|
333
|
-
Pin both in the client build. See
|
|
334
|
-
[Sender certificate trust root](#sender-certificate-trust-root) for where each
|
|
335
|
-
one goes. Never fetch and trust either at runtime.
|
|
336
|
-
|
|
337
|
-
The seed remains in the Convex environment and deterministically derives all
|
|
338
|
-
four server keypairs. It is never written to a Convex table or log. Back up the
|
|
339
|
-
deployment secret: deleting or replacing it rotates the trust root and strands
|
|
340
|
-
clients pinned to the previous deployment.
|
|
341
|
-
|
|
342
|
-
## Sender certificate trust root
|
|
343
|
-
|
|
344
|
-
`certificates.issueSenderCertificate` signs sender certificates with an Ed25519
|
|
345
|
-
key pair deterministically derived from the deployment secret, domain-separated
|
|
346
|
-
from the group signing key by distinct KDF labels
|
|
347
|
-
(`open-e2ee:sealed-sender:root:v1` / `:server:v1`). Clients verify inbound
|
|
348
|
-
sealed-sender certificates against the matching Ed25519 **root** public key.
|
|
349
|
-
|
|
350
|
-
`oe-groups trust-root` prints both roots, labeled:
|
|
351
|
-
|
|
352
|
-
```
|
|
353
|
-
group trust root: <base64>
|
|
354
|
-
sealed sender trust root: <base64>
|
|
355
|
-
sealed sender relay scope: <base64>
|
|
356
|
-
```
|
|
357
|
-
|
|
358
|
-
The two roots go in different places and are not interchangeable. The group
|
|
359
|
-
trust root goes into the group configuration, and the sealed-sender root into
|
|
360
|
-
`sealedSender.trustRoots` in the client build. Put the matching relay scope into
|
|
361
|
-
`sealedSender.relayScopeId`, and configure the operator-owned issuer revocation
|
|
362
|
-
list in `sealedSender.revokedIssuerKeyIds`. Pin these values at build time.
|
|
363
|
-
Never fetch them from a relay at runtime, because a relay that chooses its own
|
|
364
|
-
validation policy can mint certificates for any sender.
|
|
365
|
-
|
|
366
|
-
The component derives both from the same deployment secret, so rotating
|
|
367
|
-
`OE_GROUPS_SERVER_SECRET` rotates both and strands clients pinned to either
|
|
368
|
-
previous value.
|
|
369
|
-
|
|
370
|
-
With `trustRoots` left empty, inbound sealed-sender validation stays disabled,
|
|
371
|
-
and sends fall back to identified delivery. Messages still arrive, but they
|
|
372
|
-
disclose the sender to the relay.
|
|
373
|
-
|
|
374
|
-
## Group metadata privacy
|
|
375
|
-
|
|
376
|
-
The relay cannot read message contents and cannot derive membership from group
|
|
377
|
-
state. It also no longer sees a group identifier on the two channels that used
|
|
378
|
-
to carry one.
|
|
379
|
-
|
|
380
|
-
**Closed: the distribution identifier in the frame**. The identified send path
|
|
381
|
-
stores the framed `SenderKeyMessage` as its `ciphertext`, and that frame's
|
|
382
|
-
`distributionUuid` is **not** encrypted. It used to embed
|
|
383
|
-
`groupId:senderUserId:senderDeviceId:timestamp`. The group and the sender's
|
|
384
|
-
device were therefore readable straight out of the ciphertext column. Worse
|
|
385
|
-
than a column, they were readable off every message in flight to any relay on
|
|
386
|
-
the path.
|
|
387
|
-
|
|
388
|
-
Sealed sender did not help. It hides the frame from the relay, but not from the
|
|
389
|
-
rest of the path. The component also keeps sealed sender disabled until you
|
|
390
|
-
export the trust root (see above), so group traffic takes the identified path
|
|
391
|
-
anyway. Distribution identifiers are now opaque random UUIDs carrying no group,
|
|
392
|
-
sender, device, or clock, as the reference implementation uses, as the
|
|
393
|
-
sender-keys specification now requires.
|
|
394
|
-
|
|
395
|
-
**Closed: the `groupId` column**. Every `messages` row used to store a plaintext
|
|
396
|
-
`groupId` next to `targetUserId` for the seven-day retention window. The column
|
|
397
|
-
is gone, and a `sender_key` message type replaces it. The type tells the
|
|
398
|
-
receiver to decrypt the payload as a framed `SenderKeyMessage` and nothing
|
|
399
|
-
more. The receiver reads the opaque distribution identifier out of the frame
|
|
400
|
-
and resolves the group against its own sender key store. No group identifier
|
|
401
|
-
travels on an envelope, sealed or not.
|
|
402
|
-
|
|
403
|
-
**Open: the group partition itself**. Removing the identifier removed the
|
|
404
|
-
group's *name*, not the ability to group rows. Be precise about what is left,
|
|
405
|
-
because the difference matters and it is easy to overstate:
|
|
406
|
-
|
|
407
|
-
- The frame leaves `distributionUuid` unencrypted, and the row stores it
|
|
408
|
-
verbatim inside `messages.ciphertext`. The paragraph above says as much. It
|
|
409
|
-
is opaque, but stable for the life of a sender key. Nothing rotates keys on a
|
|
410
|
-
timer. Grouping rows by it recovers the recipient set for a sender's group
|
|
411
|
-
traffic.
|
|
412
|
-
- Sender keys encrypt once and fan out, so every recipient row of one send
|
|
413
|
-
carries a byte-identical `ciphertext`. Grouping by that recovers the
|
|
414
|
-
recipient set of a single send, which is sharper than the old column.
|
|
415
|
-
- The fan-out stamps one `timestamp` across every recipient row, and passes
|
|
416
|
-
through one `clientMessageId` when the application supplies one.
|
|
417
|
-
- `sendMultiRecipientUnidentified` hands the relay the roster explicitly, in
|
|
418
|
-
one call. The sealed-sender path names the recipient set outright.
|
|
419
|
-
|
|
420
|
-
So the relay cannot learn *which* group, or its name, membership list, or
|
|
421
|
-
attributes. It can still partition delivery pairs into unlabeled groups, and
|
|
422
|
-
any one of those channels suffices. That is a real improvement on a plaintext
|
|
423
|
-
`groupId`, which handed over a stable, meaningful, cross-send label. It is not
|
|
424
|
-
anonymity of the partition. The `sender_key` type is also a single-column
|
|
425
|
-
filter that isolates group traffic from pairwise traffic. The old design did
|
|
426
|
-
not offer that filter, because group messages used to hide among `ciphertext`
|
|
427
|
-
rows.
|
|
428
|
-
|
|
429
|
-
**Still visible**. Delivery metadata itself: who sent to whom, when, and how
|
|
430
|
-
much. Every relay sees this. Sealed sender removes the sender from the
|
|
431
|
-
identified half of it.
|
|
432
|
-
|
|
433
|
-
## Authorization is account-scoped, not device-scoped
|
|
434
|
-
|
|
435
|
-
`identify` maps an authenticated session to an account (`userId`), with no
|
|
436
|
-
device. Every account-scoped endpoint therefore authorizes at account
|
|
437
|
-
granularity, and the caller chooses each `deviceId` argument as a route
|
|
438
|
-
selector rather than an authenticated claim. Concretely, any session for an
|
|
439
|
-
account can:
|
|
440
|
-
|
|
441
|
-
- read and delete **any** of that account's device queues
|
|
442
|
-
(`getPendingMessages`, `markDelivered`)
|
|
443
|
-
- send as any of its device IDs (`send.senderDeviceId`)
|
|
444
|
-
- upload or rotate key material for any of its devices (`keys`)
|
|
445
|
-
|
|
446
|
-
This is the intended model, because a compromised session already holds the
|
|
447
|
-
account. It does mean that the component provides no isolation *between* an
|
|
448
|
-
account's own devices. Deployments that need device isolation must issue
|
|
449
|
-
device-scoped sessions and enforce the binding in their own `identify` wrapper.
|
|
450
|
-
The component cannot do it while its identity has no device field.
|
|
451
|
-
|
|
452
|
-
## Profile-key issuance threat model
|
|
453
|
-
|
|
454
|
-
`issueProfileKeyCredentialMutation` receives a 160-byte blinded request bound
|
|
455
|
-
to the authenticated ACI. The group server sees the ACI and redemption window,
|
|
456
|
-
but it does not receive the raw 32-byte profile key or the client's ephemeral
|
|
457
|
-
blinding secret. The client unblinds and verifies the response before it uses
|
|
458
|
-
the credential in a group presentation.
|
|
459
|
-
|
|
460
|
-
`setUnidentifiedAccessKeyMutation` is a separate delivery-authorization seam.
|
|
461
|
-
It receives only the 16-byte access key that the client derives from its
|
|
462
|
-
profile key. Credential issuance does not derive or register that access key.
|