@open-e2ee/signal-protocol-sdk 11.0.0 → 12.0.1
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 +4 -4
- package/ARCHITECTURE.md +6 -8
- package/CHANGELOG.md +1348 -0
- package/README.md +1 -1
- package/SECURITY.md +2 -2
- package/TROUBLESHOOTING.md +8 -8
- package/client/README.md +70 -37
- package/device/README.md +39 -85
- package/dist/client/client.d.ts +334 -63
- package/dist/client/client.d.ts.map +1 -1
- package/dist/client/client.js +1175 -186
- package/dist/client/client.js.map +1 -1
- package/dist/client/config.d.ts +57 -42
- package/dist/client/config.d.ts.map +1 -1
- package/dist/client/config.js +1 -1
- package/dist/client/config.js.map +1 -1
- package/dist/client/constants.d.ts +42 -8
- package/dist/client/constants.d.ts.map +1 -1
- package/dist/client/constants.js +48 -3
- package/dist/client/constants.js.map +1 -1
- package/dist/client/content-adapter.d.ts +80 -0
- package/dist/client/content-adapter.d.ts.map +1 -1
- package/dist/client/content-adapter.js +225 -12
- package/dist/client/content-adapter.js.map +1 -1
- package/dist/client/delivery-error.d.ts +150 -0
- package/dist/client/delivery-error.d.ts.map +1 -0
- package/dist/client/delivery-error.js +226 -0
- package/dist/client/delivery-error.js.map +1 -0
- package/dist/client/delivery-status.d.ts +32 -6
- package/dist/client/delivery-status.d.ts.map +1 -1
- package/dist/client/delivery-status.js +61 -13
- package/dist/client/delivery-status.js.map +1 -1
- package/dist/client/device-set-reconciliation.d.ts +196 -0
- package/dist/client/device-set-reconciliation.d.ts.map +1 -0
- package/dist/client/device-set-reconciliation.js +282 -0
- package/dist/client/device-set-reconciliation.js.map +1 -0
- package/dist/client/distribution-records.d.ts +29 -0
- package/dist/client/distribution-records.d.ts.map +1 -0
- package/dist/client/distribution-records.js +33 -0
- package/dist/client/distribution-records.js.map +1 -0
- package/dist/client/event-hooks.d.ts +280 -14
- package/dist/client/event-hooks.d.ts.map +1 -1
- package/dist/client/event-hooks.js +8 -0
- package/dist/client/event-hooks.js.map +1 -1
- package/dist/client/group-device-set.d.ts +47 -0
- package/dist/client/group-device-set.d.ts.map +1 -0
- package/dist/client/group-device-set.js +65 -0
- package/dist/client/group-device-set.js.map +1 -0
- package/dist/client/group-fetcher.d.ts +116 -0
- package/dist/client/group-fetcher.d.ts.map +1 -0
- package/dist/client/group-fetcher.js +598 -0
- package/dist/client/group-fetcher.js.map +1 -0
- package/dist/client/group-outbox.d.ts +172 -10
- package/dist/client/group-outbox.d.ts.map +1 -1
- package/dist/client/group-outbox.js +915 -74
- package/dist/client/group-outbox.js.map +1 -1
- package/dist/client/group-receive-authorization.d.ts +127 -4
- package/dist/client/group-receive-authorization.d.ts.map +1 -1
- package/dist/client/group-receive-authorization.js +270 -20
- package/dist/client/group-receive-authorization.js.map +1 -1
- package/dist/client/group-sealed-sender.d.ts +3 -0
- package/dist/client/group-sealed-sender.d.ts.map +1 -1
- package/dist/client/group-sealed-sender.js +1 -0
- package/dist/client/group-sealed-sender.js.map +1 -1
- package/dist/client/group-sender-key-operations.d.ts +14 -3
- package/dist/client/group-sender-key-operations.d.ts.map +1 -1
- package/dist/client/group-sender-key-operations.js +26 -5
- package/dist/client/group-sender-key-operations.js.map +1 -1
- package/dist/client/groups.d.ts +5 -5
- package/dist/client/groups.d.ts.map +1 -1
- package/dist/client/groups.js +5 -4
- package/dist/client/groups.js.map +1 -1
- package/dist/client/hosted-anonymous-delivery.d.ts +61 -9
- package/dist/client/hosted-anonymous-delivery.d.ts.map +1 -1
- package/dist/client/hosted-anonymous-delivery.js +242 -48
- package/dist/client/hosted-anonymous-delivery.js.map +1 -1
- package/dist/client/hosted-assertion-id.d.ts +7 -0
- package/dist/client/hosted-assertion-id.d.ts.map +1 -0
- package/dist/client/hosted-assertion-id.js +51 -0
- package/dist/client/hosted-assertion-id.js.map +1 -0
- package/dist/client/hosted-mailbox-subscription.d.ts +34 -2
- package/dist/client/hosted-mailbox-subscription.d.ts.map +1 -1
- package/dist/client/hosted-mailbox-subscription.js +87 -17
- package/dist/client/hosted-mailbox-subscription.js.map +1 -1
- package/dist/client/hosted-push.d.ts +22 -4
- package/dist/client/hosted-push.d.ts.map +1 -1
- package/dist/client/hosted-push.js +75 -22
- package/dist/client/hosted-push.js.map +1 -1
- package/dist/client/hosted-transport.d.ts +22 -28
- package/dist/client/hosted-transport.d.ts.map +1 -1
- package/dist/client/hosted-transport.js +115 -55
- package/dist/client/hosted-transport.js.map +1 -1
- package/dist/client/hosted.d.ts +10 -4
- package/dist/client/hosted.d.ts.map +1 -1
- package/dist/client/hosted.js +10 -4
- package/dist/client/hosted.js.map +1 -1
- package/dist/client/index.d.ts +5 -3
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +2 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/messages.d.ts +25 -3
- package/dist/client/messages.d.ts.map +1 -1
- package/dist/client/messages.js +111 -20
- package/dist/client/messages.js.map +1 -1
- package/dist/client/receive-admission.d.ts +58 -0
- package/dist/client/receive-admission.d.ts.map +1 -0
- package/dist/client/receive-admission.js +78 -0
- package/dist/client/receive-admission.js.map +1 -0
- package/dist/client/receive-expiry.d.ts +31 -0
- package/dist/client/receive-expiry.d.ts.map +1 -0
- package/dist/client/receive-expiry.js +35 -0
- package/dist/client/receive-expiry.js.map +1 -0
- package/dist/client/receive-hook-bound.d.ts +50 -0
- package/dist/client/receive-hook-bound.d.ts.map +1 -0
- package/dist/client/receive-hook-bound.js +115 -0
- package/dist/client/receive-hook-bound.js.map +1 -0
- package/dist/client/receive-queue.d.ts +299 -0
- package/dist/client/receive-queue.d.ts.map +1 -0
- package/dist/client/receive-queue.js +1420 -0
- package/dist/client/receive-queue.js.map +1 -0
- package/dist/client/receive-work-seed.d.ts +54 -0
- package/dist/client/receive-work-seed.d.ts.map +1 -0
- package/dist/client/receive-work-seed.js +116 -0
- package/dist/client/receive-work-seed.js.map +1 -0
- package/dist/client/recovery-driver.d.ts +25 -0
- package/dist/client/recovery-driver.d.ts.map +1 -0
- package/dist/client/recovery-driver.js +121 -0
- package/dist/client/recovery-driver.js.map +1 -0
- package/dist/client/relay-acceptance.d.ts +20 -7
- package/dist/client/relay-acceptance.d.ts.map +1 -1
- package/dist/client/relay-acceptance.js +30 -12
- package/dist/client/relay-acceptance.js.map +1 -1
- package/dist/client/relay-device-refusal.d.ts +18 -0
- package/dist/client/relay-device-refusal.d.ts.map +1 -1
- package/dist/client/relay-device-refusal.js +31 -0
- package/dist/client/relay-device-refusal.js.map +1 -1
- package/dist/client/relay-sealed-route.d.ts +36 -0
- package/dist/client/relay-sealed-route.d.ts.map +1 -0
- package/dist/client/relay-sealed-route.js +45 -0
- package/dist/client/relay-sealed-route.js.map +1 -0
- package/dist/client/relay-subscription.d.ts +56 -13
- package/dist/client/relay-subscription.d.ts.map +1 -1
- package/dist/client/relay-subscription.js +193 -123
- package/dist/client/relay-subscription.js.map +1 -1
- package/dist/client/resendable-content.d.ts +98 -0
- package/dist/client/resendable-content.d.ts.map +1 -0
- package/dist/client/resendable-content.js +136 -0
- package/dist/client/resendable-content.js.map +1 -0
- package/dist/client/retry-family.d.ts +57 -10
- package/dist/client/retry-family.d.ts.map +1 -1
- package/dist/client/retry-family.js +54 -12
- package/dist/client/retry-family.js.map +1 -1
- package/dist/client/retry-request-envelope.d.ts +107 -8
- package/dist/client/retry-request-envelope.d.ts.map +1 -1
- package/dist/client/retry-request-envelope.js +172 -23
- package/dist/client/retry-request-envelope.js.map +1 -1
- package/dist/client/retry-request-lifecycle.d.ts +70 -14
- package/dist/client/retry-request-lifecycle.d.ts.map +1 -1
- package/dist/client/retry-request-lifecycle.js +162 -32
- package/dist/client/retry-request-lifecycle.js.map +1 -1
- package/dist/client/retry-terminal-recovery.d.ts +100 -0
- package/dist/client/retry-terminal-recovery.d.ts.map +1 -0
- package/dist/client/retry-terminal-recovery.js +164 -0
- package/dist/client/retry-terminal-recovery.js.map +1 -0
- package/dist/client/retry-utils.d.ts +27 -0
- package/dist/client/retry-utils.d.ts.map +1 -1
- package/dist/client/retry-utils.js +46 -0
- package/dist/client/retry-utils.js.map +1 -1
- package/dist/client/retry.d.ts +100 -12
- package/dist/client/retry.d.ts.map +1 -1
- package/dist/client/retry.js +619 -116
- package/dist/client/retry.js.map +1 -1
- package/dist/client/sealed-sender.d.ts +23 -6
- package/dist/client/sealed-sender.d.ts.map +1 -1
- package/dist/client/sealed-sender.js +30 -6
- package/dist/client/sealed-sender.js.map +1 -1
- package/dist/client/sessions.d.ts +2 -2
- package/dist/client/sessions.js +2 -2
- package/dist/client/signal-service-cipher.d.ts +726 -19
- package/dist/client/signal-service-cipher.d.ts.map +1 -1
- package/dist/client/signal-service-cipher.js +2260 -342
- package/dist/client/signal-service-cipher.js.map +1 -1
- package/dist/client/state.d.ts +5 -0
- package/dist/client/state.d.ts.map +1 -1
- package/dist/client/state.js +11 -1
- package/dist/client/state.js.map +1 -1
- package/dist/client/storage-protection.d.ts +64 -0
- package/dist/client/storage-protection.d.ts.map +1 -0
- package/dist/client/storage-protection.js +150 -0
- package/dist/client/storage-protection.js.map +1 -0
- package/dist/client/types.d.ts +149 -15
- package/dist/client/types.d.ts.map +1 -1
- package/dist/client/types.js +1 -1
- package/dist/client/types.js.map +1 -1
- package/dist/device/constants.d.ts +0 -5
- package/dist/device/constants.d.ts.map +1 -1
- package/dist/device/constants.js +0 -5
- package/dist/device/constants.js.map +1 -1
- package/dist/device/expo/index.d.ts +4 -17
- package/dist/device/expo/index.d.ts.map +1 -1
- package/dist/device/expo/index.js +4 -23
- package/dist/device/expo/index.js.map +1 -1
- package/dist/device/index.d.ts +0 -2
- package/dist/device/index.d.ts.map +1 -1
- package/dist/device/index.js +0 -7
- package/dist/device/index.js.map +1 -1
- package/dist/device/lifecycle/manager.d.ts +5 -4
- package/dist/device/lifecycle/manager.d.ts.map +1 -1
- package/dist/device/lifecycle/manager.js +16 -16
- package/dist/device/lifecycle/manager.js.map +1 -1
- package/dist/device/lifecycle/types.d.ts +2 -2
- package/dist/device/lifecycle/types.d.ts.map +1 -1
- package/dist/device/react-native/index.d.ts +4 -15
- package/dist/device/react-native/index.d.ts.map +1 -1
- package/dist/device/react-native/index.js +4 -21
- package/dist/device/react-native/index.js.map +1 -1
- package/dist/device/types.d.ts +1 -1
- package/dist/groups/index.d.ts +1 -1
- package/dist/groups/index.d.ts.map +1 -1
- package/dist/index.d.ts +8 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/internal/crypto/ec/x25519-validation.d.ts +0 -1
- package/dist/internal/crypto/ec/x25519-validation.d.ts.map +1 -1
- package/dist/internal/crypto/ec/x25519-validation.js +0 -1
- package/dist/internal/crypto/ec/x25519-validation.js.map +1 -1
- package/dist/internal/crypto/validation.d.ts +2 -2
- package/dist/internal/groups/index.d.ts +1 -0
- package/dist/internal/groups/index.d.ts.map +1 -1
- package/dist/internal/groups/index.js +1 -0
- package/dist/internal/groups/index.js.map +1 -1
- package/dist/internal/groups/manager.d.ts +37 -16
- package/dist/internal/groups/manager.d.ts.map +1 -1
- package/dist/internal/groups/manager.js +46 -1
- package/dist/internal/groups/manager.js.map +1 -1
- package/dist/internal/groups/receive-record.d.ts +78 -0
- package/dist/internal/groups/receive-record.d.ts.map +1 -0
- package/dist/internal/groups/receive-record.js +43 -0
- package/dist/internal/groups/receive-record.js.map +1 -0
- package/dist/internal/groups/sdk-store.d.ts +27 -3
- package/dist/internal/groups/sdk-store.d.ts.map +1 -1
- package/dist/internal/groups/sdk-store.js +151 -19
- package/dist/internal/groups/sdk-store.js.map +1 -1
- package/dist/internal/groups/wire.d.ts +12 -1
- package/dist/internal/groups/wire.d.ts.map +1 -1
- package/dist/internal/groups/wire.js +36 -0
- package/dist/internal/groups/wire.js.map +1 -1
- package/dist/internal/manager/index.d.ts +1 -1
- package/dist/internal/manager/manager.d.ts +26 -20
- package/dist/internal/manager/manager.d.ts.map +1 -1
- package/dist/internal/manager/manager.js +64 -41
- package/dist/internal/manager/manager.js.map +1 -1
- package/dist/internal/protocol/double-ratchet/chains.d.ts +4 -18
- package/dist/internal/protocol/double-ratchet/chains.d.ts.map +1 -1
- package/dist/internal/protocol/double-ratchet/chains.js +23 -74
- package/dist/internal/protocol/double-ratchet/chains.js.map +1 -1
- package/dist/internal/protocol/double-ratchet/index.d.ts +1 -1
- package/dist/internal/protocol/double-ratchet/index.d.ts.map +1 -1
- package/dist/internal/protocol/double-ratchet/index.js +1 -1
- package/dist/internal/protocol/double-ratchet/index.js.map +1 -1
- package/dist/internal/protocol/double-ratchet/ratchet.d.ts +5 -7
- package/dist/internal/protocol/double-ratchet/ratchet.d.ts.map +1 -1
- package/dist/internal/protocol/double-ratchet/ratchet.js +4 -6
- package/dist/internal/protocol/double-ratchet/ratchet.js.map +1 -1
- package/dist/internal/protocol/pqxdh/pqxdh.d.ts.map +1 -1
- package/dist/internal/protocol/pqxdh/pqxdh.js +2 -1
- package/dist/internal/protocol/pqxdh/pqxdh.js.map +1 -1
- package/dist/internal/protocol/sealed-sender/types.d.ts +6 -8
- package/dist/internal/protocol/sealed-sender/types.d.ts.map +1 -1
- package/dist/internal/protocol/sealed-sender/types.js +8 -9
- package/dist/internal/protocol/sealed-sender/types.js.map +1 -1
- package/dist/internal/protocol/sender-keys/handoff-ledger.d.ts +110 -0
- package/dist/internal/protocol/sender-keys/handoff-ledger.d.ts.map +1 -0
- package/dist/internal/protocol/sender-keys/handoff-ledger.js +124 -0
- package/dist/internal/protocol/sender-keys/handoff-ledger.js.map +1 -0
- package/dist/internal/protocol/sender-keys/manager.d.ts +71 -62
- package/dist/internal/protocol/sender-keys/manager.d.ts.map +1 -1
- package/dist/internal/protocol/sender-keys/manager.js +228 -175
- package/dist/internal/protocol/sender-keys/manager.js.map +1 -1
- package/dist/internal/protocol/spqr/index.d.ts +2 -2
- package/dist/internal/protocol/spqr/index.d.ts.map +1 -1
- package/dist/internal/protocol/spqr/index.js +2 -2
- package/dist/internal/protocol/spqr/index.js.map +1 -1
- package/dist/internal/protocol/spqr/serialize.d.ts +9 -1
- package/dist/internal/protocol/spqr/serialize.d.ts.map +1 -1
- package/dist/internal/protocol/spqr/serialize.js +56 -16
- package/dist/internal/protocol/spqr/serialize.js.map +1 -1
- package/dist/internal/protocol/spqr/spqr.d.ts +1 -14
- package/dist/internal/protocol/spqr/spqr.d.ts.map +1 -1
- package/dist/internal/protocol/spqr/spqr.js +54 -42
- package/dist/internal/protocol/spqr/spqr.js.map +1 -1
- package/dist/internal/protocol/spqr/validate.d.ts +26 -6
- package/dist/internal/protocol/spqr/validate.d.ts.map +1 -1
- package/dist/internal/protocol/spqr/validate.js +49 -21
- package/dist/internal/protocol/spqr/validate.js.map +1 -1
- package/dist/internal/sesame/index.d.ts +1 -1
- package/dist/internal/sesame/index.d.ts.map +1 -1
- package/dist/internal/sesame/index.js.map +1 -1
- package/dist/internal/sesame/manager.d.ts +66 -13
- package/dist/internal/sesame/manager.d.ts.map +1 -1
- package/dist/internal/sesame/manager.js +221 -87
- package/dist/internal/sesame/manager.js.map +1 -1
- package/dist/internal/sesame/types.d.ts +95 -17
- package/dist/internal/sesame/types.d.ts.map +1 -1
- package/dist/internal/sesame/types.js +17 -0
- package/dist/internal/sesame/types.js.map +1 -1
- package/dist/internal/session/builder.d.ts +5 -5
- package/dist/internal/session/builder.d.ts.map +1 -1
- package/dist/internal/session/builder.js +12 -17
- package/dist/internal/session/builder.js.map +1 -1
- package/dist/internal/session/cipher.d.ts +15 -13
- package/dist/internal/session/cipher.d.ts.map +1 -1
- package/dist/internal/session/cipher.js +41 -23
- package/dist/internal/session/cipher.js.map +1 -1
- package/dist/internal/session/factory.d.ts +5 -5
- package/dist/internal/session/factory.d.ts.map +1 -1
- package/dist/internal/session/factory.js +4 -4
- package/dist/internal/session/factory.js.map +1 -1
- package/dist/internal/session/handshake.d.ts +14 -16
- package/dist/internal/session/handshake.d.ts.map +1 -1
- package/dist/internal/session/handshake.js +18 -75
- package/dist/internal/session/handshake.js.map +1 -1
- package/dist/internal/session/index.d.ts +1 -1
- package/dist/internal/session/index.js +1 -1
- package/dist/internal/session/record-locks.d.ts +17 -6
- package/dist/internal/session/record-locks.d.ts.map +1 -1
- package/dist/internal/session/record-locks.js +43 -7
- package/dist/internal/session/record-locks.js.map +1 -1
- package/dist/internal/session/session-resolver.d.ts +1 -1
- package/dist/internal/session/session-resolver.js +1 -1
- package/dist/internal/session/state.d.ts +2 -2
- package/dist/internal/session/state.js +1 -1
- package/dist/internal/session/types.d.ts +5 -13
- package/dist/internal/session/types.d.ts.map +1 -1
- package/dist/internal/session/types.js +1 -1
- package/dist/keys/generation.d.ts +2 -2
- package/dist/keys/generation.js +2 -2
- package/dist/keys/types.d.ts +5 -5
- package/dist/keys/types.d.ts.map +1 -1
- package/dist/keys/types.js +1 -1
- package/dist/layers.d.ts +1 -1
- package/dist/layers.js +2 -2
- package/dist/layers.js.map +1 -1
- package/dist/local/store/expo/adapter.d.ts.map +1 -1
- package/dist/local/store/expo/adapter.js +12 -8
- package/dist/local/store/expo/adapter.js.map +1 -1
- package/dist/local/store/key-value/adapter.d.ts +76 -10
- package/dist/local/store/key-value/adapter.d.ts.map +1 -1
- package/dist/local/store/key-value/adapter.js +367 -61
- package/dist/local/store/key-value/adapter.js.map +1 -1
- package/dist/local/store/key-value/backend-conformance.d.ts.map +1 -1
- package/dist/local/store/key-value/backend-conformance.js +74 -0
- package/dist/local/store/key-value/backend-conformance.js.map +1 -1
- package/dist/local/store/key-value/batch.d.ts +2 -0
- package/dist/local/store/key-value/batch.d.ts.map +1 -1
- package/dist/local/store/key-value/batch.js +26 -0
- package/dist/local/store/key-value/batch.js.map +1 -1
- package/dist/local/store/key-value/receive-work.d.ts +55 -0
- package/dist/local/store/key-value/receive-work.d.ts.map +1 -0
- package/dist/local/store/key-value/receive-work.js +162 -0
- package/dist/local/store/key-value/receive-work.js.map +1 -0
- package/dist/local/store/key-value/send-log.d.ts +61 -0
- package/dist/local/store/key-value/send-log.d.ts.map +1 -0
- package/dist/local/store/key-value/send-log.js +430 -0
- package/dist/local/store/key-value/send-log.js.map +1 -0
- package/dist/local/store/key-value/sender-key-handoff.d.ts +68 -0
- package/dist/local/store/key-value/sender-key-handoff.d.ts.map +1 -0
- package/dist/local/store/key-value/sender-key-handoff.js +189 -0
- package/dist/local/store/key-value/sender-key-handoff.js.map +1 -0
- package/dist/local/store/key-value/storage.d.ts +15 -0
- package/dist/local/store/key-value/storage.d.ts.map +1 -1
- package/dist/local/store/keyed-index.d.ts +23 -0
- package/dist/local/store/keyed-index.d.ts.map +1 -0
- package/dist/local/store/keyed-index.js +41 -0
- package/dist/local/store/keyed-index.js.map +1 -0
- package/dist/local/store/memory/adapter.d.ts +44 -12
- package/dist/local/store/memory/adapter.d.ts.map +1 -1
- package/dist/local/store/memory/adapter.js +197 -46
- package/dist/local/store/memory/adapter.js.map +1 -1
- package/dist/local/store/memory/send-log.d.ts +42 -0
- package/dist/local/store/memory/send-log.d.ts.map +1 -0
- package/dist/local/store/memory/send-log.js +190 -0
- package/dist/local/store/memory/send-log.js.map +1 -0
- package/dist/local/store/node/adapter.d.ts.map +1 -1
- package/dist/local/store/node/adapter.js +8 -6
- package/dist/local/store/node/adapter.js.map +1 -1
- package/dist/local/store/react-native/adapter.d.ts.map +1 -1
- package/dist/local/store/react-native/adapter.js +12 -8
- package/dist/local/store/react-native/adapter.js.map +1 -1
- package/dist/local/store/receive-work.d.ts +87 -0
- package/dist/local/store/receive-work.d.ts.map +1 -0
- package/dist/local/store/receive-work.js +204 -0
- package/dist/local/store/receive-work.js.map +1 -0
- package/dist/local/store/received-content.d.ts +3 -3
- package/dist/local/store/received-content.d.ts.map +1 -1
- package/dist/local/store/received-content.js +2 -11
- package/dist/local/store/received-content.js.map +1 -1
- package/dist/local/store/reliability.d.ts +317 -18
- package/dist/local/store/reliability.d.ts.map +1 -1
- package/dist/local/store/reliability.js +371 -46
- package/dist/local/store/reliability.js.map +1 -1
- package/dist/local/store/send-log-order.d.ts +15 -0
- package/dist/local/store/send-log-order.d.ts.map +1 -0
- package/dist/local/store/send-log-order.js +24 -0
- package/dist/local/store/send-log-order.js.map +1 -0
- package/dist/local/store/sender-key-handoff-index.d.ts +38 -0
- package/dist/local/store/sender-key-handoff-index.d.ts.map +1 -0
- package/dist/local/store/sender-key-handoff-index.js +101 -0
- package/dist/local/store/sender-key-handoff-index.js.map +1 -0
- package/dist/local/store/sender-key-handoff-table.d.ts +29 -0
- package/dist/local/store/sender-key-handoff-table.d.ts.map +1 -0
- package/dist/local/store/sender-key-handoff-table.js +97 -0
- package/dist/local/store/sender-key-handoff-table.js.map +1 -0
- package/dist/local/store/sqlite/driver.d.ts +9 -0
- package/dist/local/store/sqlite/driver.d.ts.map +1 -1
- package/dist/local/store/sqlite/encryption.d.ts +8 -1
- package/dist/local/store/sqlite/encryption.d.ts.map +1 -1
- package/dist/local/store/sqlite/encryption.js +9 -0
- package/dist/local/store/sqlite/encryption.js.map +1 -1
- package/dist/local/store/sqlite/key-storage/index.d.ts +25 -4
- package/dist/local/store/sqlite/key-storage/index.d.ts.map +1 -1
- package/dist/local/store/sqlite/key-storage/index.js +68 -7
- package/dist/local/store/sqlite/key-storage/index.js.map +1 -1
- package/dist/local/store/sqlite/key-storage/message-records.d.ts +16 -4
- package/dist/local/store/sqlite/key-storage/message-records.d.ts.map +1 -1
- package/dist/local/store/sqlite/key-storage/message-records.js +49 -6
- package/dist/local/store/sqlite/key-storage/message-records.js.map +1 -1
- package/dist/local/store/sqlite/key-storage/metadata.d.ts +8 -7
- package/dist/local/store/sqlite/key-storage/metadata.d.ts.map +1 -1
- package/dist/local/store/sqlite/key-storage/metadata.js +17 -15
- package/dist/local/store/sqlite/key-storage/metadata.js.map +1 -1
- package/dist/local/store/sqlite/key-storage/receive-work.d.ts +27 -0
- package/dist/local/store/sqlite/key-storage/receive-work.d.ts.map +1 -0
- package/dist/local/store/sqlite/key-storage/receive-work.js +98 -0
- package/dist/local/store/sqlite/key-storage/receive-work.js.map +1 -0
- package/dist/local/store/sqlite/key-storage/send-log.d.ts +27 -0
- package/dist/local/store/sqlite/key-storage/send-log.d.ts.map +1 -0
- package/dist/local/store/sqlite/key-storage/send-log.js +178 -0
- package/dist/local/store/sqlite/key-storage/send-log.js.map +1 -0
- package/dist/local/store/sqlite/key-storage/sender-key-handoff.d.ts +27 -0
- package/dist/local/store/sqlite/key-storage/sender-key-handoff.d.ts.map +1 -0
- package/dist/local/store/sqlite/key-storage/sender-key-handoff.js +75 -0
- package/dist/local/store/sqlite/key-storage/sender-key-handoff.js.map +1 -0
- package/dist/local/store/sqlite/key-storage/session-trust.d.ts +2 -2
- package/dist/local/store/sqlite/key-storage/session-trust.js +5 -5
- package/dist/local/store/sqlite/key-storage/session-trust.js.map +1 -1
- package/dist/local/store/sqlite/migrations.d.ts.map +1 -1
- package/dist/local/store/sqlite/migrations.js +101 -0
- package/dist/local/store/sqlite/migrations.js.map +1 -1
- package/dist/local/store/sqlite/models/index.d.ts +2 -1
- package/dist/local/store/sqlite/models/index.d.ts.map +1 -1
- package/dist/local/store/sqlite/models/index.js +5 -1
- package/dist/local/store/sqlite/models/index.js.map +1 -1
- package/dist/local/store/sqlite/models/message-record.d.ts +15 -0
- package/dist/local/store/sqlite/models/message-record.d.ts.map +1 -1
- package/dist/local/store/sqlite/models/message-record.js +24 -0
- package/dist/local/store/sqlite/models/message-record.js.map +1 -1
- package/dist/local/store/sqlite/models/send-log.d.ts +51 -0
- package/dist/local/store/sqlite/models/send-log.d.ts.map +1 -0
- package/dist/local/store/sqlite/models/send-log.js +206 -0
- package/dist/local/store/sqlite/models/send-log.js.map +1 -0
- package/dist/local/store/sqlite/open-store.d.ts +9 -1
- package/dist/local/store/sqlite/open-store.d.ts.map +1 -1
- package/dist/local/store/sqlite/open-store.js +20 -1
- package/dist/local/store/sqlite/open-store.js.map +1 -1
- package/dist/local/store/sqlite/schema.d.ts +34 -1
- package/dist/local/store/sqlite/schema.d.ts.map +1 -1
- package/dist/local/store/sqlite/schema.js +14 -0
- package/dist/local/store/sqlite/schema.js.map +1 -1
- package/dist/local/store/sqlite/store.d.ts +61 -11
- package/dist/local/store/sqlite/store.d.ts.map +1 -1
- package/dist/local/store/sqlite/store.js +191 -27
- package/dist/local/store/sqlite/store.js.map +1 -1
- package/dist/local/store/sqlite/web/sqlite3mc/sqlite3.mjs +2 -1
- package/dist/local/store/sqlite/web/worker.d.ts +8 -0
- package/dist/local/store/sqlite/web/worker.d.ts.map +1 -1
- package/dist/local/store/sqlite/web/worker.js +64 -2
- package/dist/local/store/sqlite/web/worker.js.map +1 -1
- package/dist/local/store/web/adapter.d.ts +76 -8
- package/dist/local/store/web/adapter.d.ts.map +1 -1
- package/dist/local/store/web/adapter.js +579 -127
- package/dist/local/store/web/adapter.js.map +1 -1
- package/dist/local/store/web/receive-work.d.ts +57 -0
- package/dist/local/store/web/receive-work.d.ts.map +1 -0
- package/dist/local/store/web/receive-work.js +99 -0
- package/dist/local/store/web/receive-work.js.map +1 -0
- package/dist/local/store/web/send-log.d.ts +92 -0
- package/dist/local/store/web/send-log.d.ts.map +1 -0
- package/dist/local/store/web/send-log.js +267 -0
- package/dist/local/store/web/send-log.js.map +1 -0
- package/dist/local/store/web/sender-key-handoff.d.ts +81 -0
- package/dist/local/store/web/sender-key-handoff.d.ts.map +1 -0
- package/dist/local/store/web/sender-key-handoff.js +156 -0
- package/dist/local/store/web/sender-key-handoff.js.map +1 -0
- package/dist/local/store/web-sqlite/adapter.d.ts +2 -0
- package/dist/local/store/web-sqlite/adapter.d.ts.map +1 -1
- package/dist/local/store/web-sqlite/adapter.js +12 -6
- package/dist/local/store/web-sqlite/adapter.js.map +1 -1
- package/dist/local/vault/custody.d.ts +8 -0
- package/dist/local/vault/custody.d.ts.map +1 -0
- package/dist/local/vault/custody.js +9 -0
- package/dist/local/vault/custody.js.map +1 -0
- package/dist/local/vault/electron-safe-storage.d.ts +3 -1
- package/dist/local/vault/electron-safe-storage.d.ts.map +1 -1
- package/dist/local/vault/electron-safe-storage.js +2 -0
- package/dist/local/vault/electron-safe-storage.js.map +1 -1
- package/dist/local/vault/expo-secure-store.d.ts +3 -1
- package/dist/local/vault/expo-secure-store.d.ts.map +1 -1
- package/dist/local/vault/expo-secure-store.js +2 -0
- package/dist/local/vault/expo-secure-store.js.map +1 -1
- package/dist/local/vault/indexed-db.d.ts +3 -1
- package/dist/local/vault/indexed-db.d.ts.map +1 -1
- package/dist/local/vault/indexed-db.js +2 -0
- package/dist/local/vault/indexed-db.js.map +1 -1
- package/dist/local/vault/react-native-keychain.d.ts +3 -1
- package/dist/local/vault/react-native-keychain.d.ts.map +1 -1
- package/dist/local/vault/react-native-keychain.js +2 -0
- package/dist/local/vault/react-native-keychain.js.map +1 -1
- package/dist/remote/relay/device-set.d.ts +94 -0
- package/dist/remote/relay/device-set.d.ts.map +1 -0
- package/dist/remote/relay/device-set.js +156 -0
- package/dist/remote/relay/device-set.js.map +1 -0
- package/dist/remote/relay/types.d.ts +92 -107
- package/dist/remote/relay/types.d.ts.map +1 -1
- package/dist/safety/core.d.ts +15 -6
- package/dist/safety/core.d.ts.map +1 -1
- package/dist/safety/core.js +41 -27
- package/dist/safety/core.js.map +1 -1
- package/dist/safety/index.d.ts +2 -1
- package/dist/safety/index.d.ts.map +1 -1
- package/dist/safety/index.js +12 -18
- package/dist/safety/index.js.map +1 -1
- package/dist/types/api.d.ts +707 -62
- package/dist/types/api.d.ts.map +1 -1
- package/dist/types/errors.d.ts +14 -33
- package/dist/types/errors.d.ts.map +1 -1
- package/dist/types/errors.js +14 -24
- package/dist/types/errors.js.map +1 -1
- package/dist/types/messages.d.ts +2 -2
- package/dist/types/messages.js +1 -1
- package/dist/types/protocol-config.d.ts +175 -42
- package/dist/types/protocol-config.d.ts.map +1 -1
- package/dist/types/protocol-config.js +19 -38
- package/dist/types/protocol-config.js.map +1 -1
- package/dist/types/protocol-constants.d.ts +6 -6
- package/dist/types/protocol-constants.js +6 -6
- package/dist/types/session.d.ts +7 -7
- package/dist/types/session.d.ts.map +1 -1
- package/dist/types/session.js +39 -21
- package/dist/types/session.js.map +1 -1
- package/dist/username/link.d.ts +2 -2
- package/dist/username/link.js +2 -2
- package/dist/utils/origin-lock.d.ts +45 -0
- package/dist/utils/origin-lock.d.ts.map +1 -0
- package/dist/utils/origin-lock.js +80 -0
- package/dist/utils/origin-lock.js.map +1 -0
- package/docs/ASSURANCE.md +6 -6
- package/docs/CLIENT_COMPOSITION.md +2 -2
- package/docs/DEVIATIONS.md +677 -182
- package/docs/E2EE.md +1 -1
- package/docs/ERROR_HANDLING.md +165 -2
- package/docs/GETTING_STARTED.md +7 -4
- package/docs/INTERFACES.md +1 -1
- package/docs/PACKAGE_SURFACE.md +6 -5
- package/docs/PROTOCOL_POLICY.md +102 -22
- package/docs/RECIPES.md +3 -15
- package/docs/SECURITY.md +90 -5
- package/keys/README.md +3 -3
- package/local/store/README.md +78 -14
- package/local/store/key-value/README.md +14 -3
- package/local/store/node/README.md +8 -3
- package/local/store/web/README.md +9 -0
- package/local/store/web-sqlite/README.md +14 -2
- package/local/vault/README.md +21 -0
- package/package.json +1 -6
- package/remote/README.md +0 -1
- package/remote/relay/README.md +2 -2
- package/dist/device/provisioning.d.ts +0 -242
- package/dist/device/provisioning.d.ts.map +0 -1
- package/dist/device/provisioning.js +0 -421
- package/dist/device/provisioning.js.map +0 -1
- package/dist/internal/protocol/x3dh/index.d.ts +0 -15
- package/dist/internal/protocol/x3dh/index.d.ts.map +0 -1
- package/dist/internal/protocol/x3dh/index.js +0 -13
- package/dist/internal/protocol/x3dh/index.js.map +0 -1
- package/dist/internal/protocol/x3dh/x3dh.d.ts +0 -131
- package/dist/internal/protocol/x3dh/x3dh.d.ts.map +0 -1
- package/dist/internal/protocol/x3dh/x3dh.js +0 -261
- package/dist/internal/protocol/x3dh/x3dh.js.map +0 -1
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
* avoids protocol internals importing from `client/config`.
|
|
7
7
|
*/
|
|
8
8
|
import type { IdentityType } from '../keys/types.js';
|
|
9
|
+
import type { LocalStoreAtRest, LocalStoreKeyCustody } from './api.js';
|
|
9
10
|
/**
|
|
10
11
|
* Developer-facing post-quantum policy values.
|
|
11
12
|
*/
|
|
12
13
|
export declare const PostQuantumPolicy: {
|
|
13
14
|
readonly Required: 'required';
|
|
14
|
-
readonly Compatible: 'compatible';
|
|
15
15
|
};
|
|
16
16
|
export type PostQuantumPolicy = (typeof PostQuantumPolicy)[keyof typeof PostQuantumPolicy];
|
|
17
17
|
/**
|
|
@@ -26,15 +26,14 @@ export type BraidPolicy = (typeof BraidPolicy)[keyof typeof BraidPolicy];
|
|
|
26
26
|
* Public Signal Protocol configuration.
|
|
27
27
|
*
|
|
28
28
|
* This keeps application code in product/security terms. Internal protocol
|
|
29
|
-
* strategy details
|
|
29
|
+
* strategy details remain below the SignalProtocolClient seam.
|
|
30
30
|
*/
|
|
31
31
|
export interface SignalProtocolConfig {
|
|
32
32
|
/**
|
|
33
33
|
* Post-quantum policy for session establishment.
|
|
34
34
|
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* compatibility only for peers with no PQ material at all.
|
|
35
|
+
* `required` is the only value. Every new session uses PQXDH, and a peer
|
|
36
|
+
* without ML-KEM prekeys fails closed with `PQXDH_REQUIRED`.
|
|
38
37
|
*
|
|
39
38
|
* @default 'required'
|
|
40
39
|
*/
|
|
@@ -51,6 +50,163 @@ export interface SignalProtocolConfig {
|
|
|
51
50
|
* @default 'required'
|
|
52
51
|
*/
|
|
53
52
|
braid?: BraidPolicy;
|
|
53
|
+
/**
|
|
54
|
+
* Policy for the content that a sender keeps to answer a retry request.
|
|
55
|
+
*
|
|
56
|
+
* A device that cannot decrypt a message asks the sender for it again. To
|
|
57
|
+
* answer, the sender keeps the plaintext of each resendable message in its
|
|
58
|
+
* local store until the recipient device confirms it or the retention
|
|
59
|
+
* ends. This policy decides whether the local store may hold that
|
|
60
|
+
* plaintext. The client reads it at creation and shows the decision in
|
|
61
|
+
* `contentRecoveryStatus`.
|
|
62
|
+
*
|
|
63
|
+
* @default { mode: 'require-protected' }
|
|
64
|
+
*/
|
|
65
|
+
contentRecovery?: ContentRecoveryPolicy;
|
|
66
|
+
/**
|
|
67
|
+
* Policy for received content that waits on this device.
|
|
68
|
+
*
|
|
69
|
+
* The client stores decrypted content before it acknowledges the Relay
|
|
70
|
+
* message, then processes it. Content waits when its group state is not
|
|
71
|
+
* current, when its delivery receipt is due, or until the application
|
|
72
|
+
* completes a helper receive. This policy bounds the queue. Content that
|
|
73
|
+
* waits 30 days from its first durable admission on this device expires,
|
|
74
|
+
* and the client runs `onReceiveExpired` and drops it. Content whose
|
|
75
|
+
* delivery receipt is due completes with no receipt and no
|
|
76
|
+
* `onReceiveExpired` report at that age, or 1 day after the receipt
|
|
77
|
+
* became due if that is earlier. The age uses the wall clock: a forward
|
|
78
|
+
* clock jump can expire content early. Retention cannot recover content
|
|
79
|
+
* whose keys or sender content are gone. No setting changes this age.
|
|
80
|
+
*
|
|
81
|
+
* @default { maxItems: 3000, maxBytes: 786432000, blockedGroupShare: 0.25 }
|
|
82
|
+
*/
|
|
83
|
+
receiveQueue?: ReceiveQueuePolicy;
|
|
84
|
+
}
|
|
85
|
+
/** The receive queue policy of a client. */
|
|
86
|
+
export interface ReceiveQueuePolicy {
|
|
87
|
+
/**
|
|
88
|
+
* The most receive records that the queue holds. At the bound, the client
|
|
89
|
+
* decrypts nothing more and does not acknowledge the message, so the
|
|
90
|
+
* Relay keeps it. A message that the Relay keeps expires at the TTL of
|
|
91
|
+
* the Relay project, and no local hook reports that expiry. While the
|
|
92
|
+
* mailbox of the device is full, the Relay refuses a new message to it
|
|
93
|
+
* with `MAILBOX_FULL` to its sender. The value is provisional until a
|
|
94
|
+
* measurement sets it.
|
|
95
|
+
* Two processes over one store, such as two tabs, can each pass the check
|
|
96
|
+
* and overshoot it.
|
|
97
|
+
*
|
|
98
|
+
* @default 3000
|
|
99
|
+
*/
|
|
100
|
+
maxItems?: number;
|
|
101
|
+
/**
|
|
102
|
+
* The most plaintext bytes that the queue holds. It acts as `maxItems`.
|
|
103
|
+
*
|
|
104
|
+
* @default 786432000 (750 MiB)
|
|
105
|
+
*/
|
|
106
|
+
maxBytes?: number;
|
|
107
|
+
/**
|
|
108
|
+
* The part of `maxItems` and `maxBytes` that the waiting records of one
|
|
109
|
+
* group can fill. A sender-key message of a group at its part is not
|
|
110
|
+
* decrypted, so other conversations keep room. Pairwise group content
|
|
111
|
+
* counts toward its group after decrypt. The value must be above 0 and at
|
|
112
|
+
* most 1.
|
|
113
|
+
*
|
|
114
|
+
* @default 0.25
|
|
115
|
+
*/
|
|
116
|
+
blockedGroupShare?: number;
|
|
117
|
+
/**
|
|
118
|
+
* The longest time, in milliseconds, that a receive pass waits for one
|
|
119
|
+
* hook, such as `onMessageDecrypted`. At the bound, the client logs `RECEIVE_HOOK_TIMEOUT` and stops waiting for
|
|
120
|
+
* the call. A timeout of `onMessageDecrypted` or `onDelivered` counts as
|
|
121
|
+
* one failed attempt, so the content runs again after the backoff. A
|
|
122
|
+
* timeout of another hook ends that call, and the pass continues. The
|
|
123
|
+
* client ignores a result that the call gives after the bound. The value
|
|
124
|
+
* must be a positive integer of at most 2147483647 ms.
|
|
125
|
+
*
|
|
126
|
+
* @default 120000 (2 minutes)
|
|
127
|
+
*/
|
|
128
|
+
receiveHookTimeoutMs?: number;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Which local store protection lets the client keep resendable content.
|
|
132
|
+
*
|
|
133
|
+
* - `require-protected`: keep it only when the store is encrypted and its
|
|
134
|
+
* key is in an operating system keychain or a declared application vault.
|
|
135
|
+
* - `allow-co-located-key`: also keep it when the key is in storage that
|
|
136
|
+
* the data shares, such as the same browser origin. Use it only after a
|
|
137
|
+
* product review accepts that custody.
|
|
138
|
+
* - `off`: never keep it.
|
|
139
|
+
*/
|
|
140
|
+
export type ContentRecoveryMode = 'require-protected' | 'allow-co-located-key' | 'off';
|
|
141
|
+
/** The content recovery policy of a client. */
|
|
142
|
+
export interface ContentRecoveryPolicy {
|
|
143
|
+
/** @default 'require-protected' */
|
|
144
|
+
mode?: ContentRecoveryMode;
|
|
145
|
+
/**
|
|
146
|
+
* How long the sender keeps resendable content, in milliseconds, from the
|
|
147
|
+
* time it first stored the content. A retry does not extend it. The value
|
|
148
|
+
* must be a positive integer of at most 30 days.
|
|
149
|
+
*
|
|
150
|
+
* @default 1209600000 (14 days)
|
|
151
|
+
*/
|
|
152
|
+
retentionMs?: number;
|
|
153
|
+
/**
|
|
154
|
+
* Answer whether a user is a current member of an ad hoc group. The
|
|
155
|
+
* sender asks it before it gives logged group content to a device again.
|
|
156
|
+
* A managed group is checked against its verified group state instead.
|
|
157
|
+
* The hook gets the prefixed group ID that `createGroupId` makes. Without
|
|
158
|
+
* this hook, the sender gives no content again for an ad hoc group.
|
|
159
|
+
* `contentRecoveryStatus.groupMembershipSource` names the source that the
|
|
160
|
+
* client has.
|
|
161
|
+
*/
|
|
162
|
+
isCurrentMember?: (groupId: string, userId: string) => Promise<boolean>;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* How well a local store protects resendable content.
|
|
166
|
+
*
|
|
167
|
+
* - `protected`: the store is encrypted, and its key is in an operating
|
|
168
|
+
* system keychain or a declared application vault.
|
|
169
|
+
* - `co-located`: the store is encrypted, and its key is in storage that the
|
|
170
|
+
* data shares, such as the same browser origin. This is weaker key
|
|
171
|
+
* custody, not missing encryption.
|
|
172
|
+
* - `none`: the store has no encryption or no key.
|
|
173
|
+
*/
|
|
174
|
+
export type StorageProtectionLevel = 'protected' | 'co-located' | 'none';
|
|
175
|
+
/**
|
|
176
|
+
* Where the client finds whether a user is a current member of a group,
|
|
177
|
+
* before it gives group content to a device again.
|
|
178
|
+
*
|
|
179
|
+
* - `managed`: `groups` with `resolveAciBytesByUserIds`. The client checks
|
|
180
|
+
* a managed group against its verified group state. When
|
|
181
|
+
* `isCurrentMember` is also set, it answers for an ad hoc group.
|
|
182
|
+
* - `hook`: only `protocol.contentRecovery.isCurrentMember`. It answers for
|
|
183
|
+
* an ad hoc group. A resend for a managed group is refused.
|
|
184
|
+
* - `none`: no source. Each group resend is refused. A direct message
|
|
185
|
+
* resend needs no source.
|
|
186
|
+
*/
|
|
187
|
+
export type GroupMembershipSource = 'managed' | 'hook' | 'none';
|
|
188
|
+
/** Why the client keeps no resendable content. */
|
|
189
|
+
export type ContentRecoveryDisabledReason = 'policy-off' | 'co-located-key-not-allowed' | 'unprotected-store';
|
|
190
|
+
/**
|
|
191
|
+
* The content recovery decision of a client. The client makes it at
|
|
192
|
+
* creation from the protection that the local store declares and from
|
|
193
|
+
* `protocol.contentRecovery`. It does not change while the client runs.
|
|
194
|
+
*
|
|
195
|
+
* When `enabled` is false, the client keeps no resendable content. A retry
|
|
196
|
+
* request for a direct message then resets the session with no content, and
|
|
197
|
+
* a group message is sent with the `Default` content hint instead of
|
|
198
|
+
* `Resendable`.
|
|
199
|
+
*/
|
|
200
|
+
export interface ContentRecoveryStatus {
|
|
201
|
+
readonly enabled: boolean;
|
|
202
|
+
readonly level: StorageProtectionLevel;
|
|
203
|
+
readonly mode: ContentRecoveryMode;
|
|
204
|
+
readonly atRest: LocalStoreAtRest;
|
|
205
|
+
readonly keyCustody: LocalStoreKeyCustody;
|
|
206
|
+
/** Set only when `enabled` is false. */
|
|
207
|
+
readonly reason?: ContentRecoveryDisabledReason;
|
|
208
|
+
/** The group membership source that a group resend uses. */
|
|
209
|
+
readonly groupMembershipSource: GroupMembershipSource;
|
|
54
210
|
}
|
|
55
211
|
/**
|
|
56
212
|
* Translate the public protocol config into the internal strategy shape.
|
|
@@ -59,19 +215,14 @@ export declare function protocolConfigToStrategy(config?: SignalProtocolConfig):
|
|
|
59
215
|
/**
|
|
60
216
|
* Resolve public and advanced protocol configuration.
|
|
61
217
|
*
|
|
62
|
-
* Public `protocol` owns
|
|
63
|
-
* options may still provide telemetry callbacks, SPQR limits, KDF
|
|
64
|
-
* and protocol diagnostic hooks. They cannot also set
|
|
65
|
-
* behavior.
|
|
218
|
+
* Public `protocol` owns the post-quantum and Braid semantics. Advanced
|
|
219
|
+
* strategy options may still provide telemetry callbacks, SPQR limits, KDF
|
|
220
|
+
* strings, and protocol diagnostic hooks. They cannot also set the SCKA mode.
|
|
66
221
|
*/
|
|
67
222
|
export declare function resolveSignalProtocolStrategy(config?: {
|
|
68
223
|
protocol?: SignalProtocolConfig;
|
|
69
224
|
protocolStrategy?: ProtocolStrategyConfig;
|
|
70
225
|
}): ProtocolStrategyConfig | undefined;
|
|
71
|
-
/**
|
|
72
|
-
* Reason for using explicit classical compatibility fallback.
|
|
73
|
-
*/
|
|
74
|
-
export type ClassicalFallbackReason = 'remote_lacks_kem';
|
|
75
226
|
/**
|
|
76
227
|
* Protocol selection event for analytics and debugging.
|
|
77
228
|
*/
|
|
@@ -80,10 +231,6 @@ export interface ProtocolSelectionEvent {
|
|
|
80
231
|
usedPQXDH: boolean;
|
|
81
232
|
/** Whether Triple Ratchet (SPQR) was enabled for the session. */
|
|
82
233
|
usedTripleRatchet: boolean;
|
|
83
|
-
/** Whether explicit X3DH compatibility fallback was used. */
|
|
84
|
-
usedClassicalFallback: boolean;
|
|
85
|
-
/** Narrow reason for explicit X3DH compatibility fallback. */
|
|
86
|
-
classicalFallbackReason?: ClassicalFallbackReason;
|
|
87
234
|
/** Remote party's address (userId:deviceId). */
|
|
88
235
|
remoteAddress: string;
|
|
89
236
|
/** Timestamp of protocol selection. */
|
|
@@ -145,12 +292,15 @@ export interface NetworkConstraints {
|
|
|
145
292
|
* SPQR security and performance limits.
|
|
146
293
|
*
|
|
147
294
|
* Defaults bound a forward jump to 25,000 and retained out-of-order keys to
|
|
148
|
-
* 2,000.
|
|
295
|
+
* 2,000 in each epoch.
|
|
149
296
|
*/
|
|
150
297
|
export interface SPQRLimits {
|
|
151
298
|
/** Maximum forward jump in message numbers. @default 25000 */
|
|
152
299
|
maxMessageJump?: number;
|
|
153
|
-
/**
|
|
300
|
+
/**
|
|
301
|
+
* Maximum out-of-order keys that each epoch keeps. A key more than this
|
|
302
|
+
* count behind the newest received index is refused. @default 2000
|
|
303
|
+
*/
|
|
154
304
|
maxOutOfOrderKeys?: number;
|
|
155
305
|
}
|
|
156
306
|
/**
|
|
@@ -173,16 +323,6 @@ export interface SPQRInfoStrings {
|
|
|
173
323
|
* Protocol strategy configuration for PQXDH and SPQR.
|
|
174
324
|
*/
|
|
175
325
|
export interface ProtocolStrategyConfig {
|
|
176
|
-
/**
|
|
177
|
-
* Allow explicit X3DH compatibility fallback for peers that advertise no
|
|
178
|
-
* KEM/PQ material at all.
|
|
179
|
-
*
|
|
180
|
-
* This does not allow downgrade after malformed KEM metadata, failed PQXDH
|
|
181
|
-
* processing, or missing local KEM prekeys for incoming PQXDH messages.
|
|
182
|
-
*
|
|
183
|
-
* @default false
|
|
184
|
-
*/
|
|
185
|
-
allowClassicalFallback?: boolean;
|
|
186
326
|
/**
|
|
187
327
|
* SCKA mode for SPQR key exchange.
|
|
188
328
|
*
|
|
@@ -209,7 +349,7 @@ export interface ProtocolStrategyConfig {
|
|
|
209
349
|
*/
|
|
210
350
|
spqrInfoStrings?: SPQRInfoStrings;
|
|
211
351
|
/**
|
|
212
|
-
* Override HKDF info string for
|
|
352
|
+
* Override HKDF info string for PQXDH key derivation.
|
|
213
353
|
*/
|
|
214
354
|
keyExchangeInfoString?: string;
|
|
215
355
|
/**
|
|
@@ -386,14 +526,6 @@ export declare const ARCHIVED_STATES_MAX_LENGTH = 40;
|
|
|
386
526
|
* exists for.
|
|
387
527
|
*/
|
|
388
528
|
export declare const PQXDH_INFO_DEFAULT = "OpenE2EE_X25519_SHA-256_ML-KEM-1024";
|
|
389
|
-
/**
|
|
390
|
-
* Default HKDF info string for X3DH session initialization.
|
|
391
|
-
*
|
|
392
|
-
* X3DH section 2.1 defines `info` as an ASCII string identifying the
|
|
393
|
-
* application. Section 3.3 uses it as the HKDF info directly, and unlike
|
|
394
|
-
* PQXDH, no parameters are appended.
|
|
395
|
-
*/
|
|
396
|
-
export declare const X3DH_INFO_DEFAULT = "OpenE2EE";
|
|
397
529
|
/**
|
|
398
530
|
* Validation result for protocol strategy configuration.
|
|
399
531
|
*/
|
|
@@ -412,14 +544,17 @@ export declare function validateProtocolStrategy(config?: ProtocolStrategyConfig
|
|
|
412
544
|
/**
|
|
413
545
|
* Apply default values to protocol strategy configuration.
|
|
414
546
|
*/
|
|
415
|
-
export declare function applyProtocolStrategyDefaults(config?: ProtocolStrategyConfig): Required<Pick<ProtocolStrategyConfig, 'sckaMode'
|
|
547
|
+
export declare function applyProtocolStrategyDefaults(config?: ProtocolStrategyConfig): Required<Pick<ProtocolStrategyConfig, 'sckaMode'>> & Pick<ProtocolStrategyConfig, 'onProtocolSelected' | 'onBraidProgress' | 'networkConstraints' | 'spqrInfoStrings' | 'spqrLimits' | 'keyExchangeInfoString'>;
|
|
416
548
|
/**
|
|
417
549
|
* Resolved SPQR limits with profile defaults applied.
|
|
418
550
|
*/
|
|
419
551
|
export interface ResolvedSPQRLimits {
|
|
420
552
|
/** Max forward jump in message numbers. @default 25000 */
|
|
421
553
|
maxMessageJump: number;
|
|
422
|
-
/**
|
|
554
|
+
/**
|
|
555
|
+
* Max out-of-order keys that each epoch keeps. A key more than this count
|
|
556
|
+
* behind the newest received index is refused. @default 2000
|
|
557
|
+
*/
|
|
423
558
|
maxOutOfOrderKeys: number;
|
|
424
559
|
}
|
|
425
560
|
/**
|
|
@@ -440,8 +575,6 @@ export declare function resolveSCKAMode(config?: ProtocolStrategyConfig): SCKAMo
|
|
|
440
575
|
export interface ResolvedKeyExchangeInfoStrings {
|
|
441
576
|
/** PQXDH info string. */
|
|
442
577
|
pqxdh: string;
|
|
443
|
-
/** X3DH info string. */
|
|
444
|
-
x3dh: string;
|
|
445
578
|
}
|
|
446
579
|
/**
|
|
447
580
|
* Resolve key exchange info strings.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol-config.d.ts","sourceRoot":"","sources":["../../types/protocol-config.ts"],"names":[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,MAAM,CAAC,EAAE,sBAAsB,GAC9B,QAAQ,CAAC,IAAI,CAAC,sBAAsB,EAAE,UAAU,CAAC,CAAC,GACnD,IAAI,CACF,sBAAsB,EACpB,oBAAoB,GACpB,iBAAiB,GACjB,oBAAoB,GACpB,iBAAiB,GACjB,YAAY,GACZ,uBAAuB,CAC1B,CAUF;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,0DAA0D;IAC1D,cAAc,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,kBAGlC,CAAC;AAEF;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,CAAC,EAAE,UAAU,GAAG,kBAAkB,CAKzE;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,MAAM,CAAC,EAAE,sBAAsB,GAAG,QAAQ,CAEzE;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,8BAA8B,CAE/F"}
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
*/
|
|
11
11
|
export const PostQuantumPolicy = {
|
|
12
12
|
Required: 'required',
|
|
13
|
-
Compatible: 'compatible',
|
|
14
13
|
};
|
|
15
14
|
/**
|
|
16
15
|
* Developer-facing ML-KEM Braid policy values.
|
|
@@ -25,39 +24,28 @@ export const BraidPolicy = {
|
|
|
25
24
|
export function protocolConfigToStrategy(config) {
|
|
26
25
|
const postQuantum = config?.postQuantum ?? PostQuantumPolicy.Required;
|
|
27
26
|
const braid = config?.braid ?? BraidPolicy.Required;
|
|
28
|
-
|
|
29
|
-
if (postQuantum === PostQuantumPolicy.Required) {
|
|
30
|
-
allowClassicalFallback = false;
|
|
31
|
-
}
|
|
32
|
-
else if (postQuantum === PostQuantumPolicy.Compatible) {
|
|
33
|
-
allowClassicalFallback = true;
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
27
|
+
if (postQuantum !== PostQuantumPolicy.Required) {
|
|
36
28
|
throw new Error(`Unsupported postQuantum policy: ${String(postQuantum)}`);
|
|
37
29
|
}
|
|
38
30
|
if (braid === BraidPolicy.Required) {
|
|
39
|
-
return {
|
|
31
|
+
return { sckaMode: 'braid' };
|
|
40
32
|
}
|
|
41
33
|
if (braid === BraidPolicy.Disabled) {
|
|
42
|
-
return {
|
|
34
|
+
return { sckaMode: 'direct' };
|
|
43
35
|
}
|
|
44
36
|
throw new Error(`Unsupported braid policy: ${String(braid)}`);
|
|
45
37
|
}
|
|
46
38
|
/**
|
|
47
39
|
* Resolve public and advanced protocol configuration.
|
|
48
40
|
*
|
|
49
|
-
* Public `protocol` owns
|
|
50
|
-
* options may still provide telemetry callbacks, SPQR limits, KDF
|
|
51
|
-
* and protocol diagnostic hooks. They cannot also set
|
|
52
|
-
* behavior.
|
|
41
|
+
* Public `protocol` owns the post-quantum and Braid semantics. Advanced
|
|
42
|
+
* strategy options may still provide telemetry callbacks, SPQR limits, KDF
|
|
43
|
+
* strings, and protocol diagnostic hooks. They cannot also set the SCKA mode.
|
|
53
44
|
*/
|
|
54
45
|
export function resolveSignalProtocolStrategy(config) {
|
|
55
|
-
if (!config?.protocol) {
|
|
46
|
+
if (!config?.protocol || isPolicyOnly(config.protocol)) {
|
|
56
47
|
return config?.protocolStrategy;
|
|
57
48
|
}
|
|
58
|
-
if (config.protocolStrategy?.allowClassicalFallback !== undefined) {
|
|
59
|
-
throw new Error('Do not set protocolStrategy.allowClassicalFallback with protocol.postQuantum; use protocol.postQuantum.');
|
|
60
|
-
}
|
|
61
49
|
if (config.protocolStrategy?.sckaMode !== undefined) {
|
|
62
50
|
throw new Error('Do not set protocolStrategy.sckaMode with protocol.braid; use protocol.braid.');
|
|
63
51
|
}
|
|
@@ -66,6 +54,17 @@ export function resolveSignalProtocolStrategy(config) {
|
|
|
66
54
|
...protocolConfigToStrategy(config.protocol),
|
|
67
55
|
};
|
|
68
56
|
}
|
|
57
|
+
/** The `protocol` keys that set a client policy, not a protocol strategy. */
|
|
58
|
+
const POLICY_KEYS = ['contentRecovery', 'receiveQueue'];
|
|
59
|
+
/**
|
|
60
|
+
* The content recovery and receive queue policies are not a protocol
|
|
61
|
+
* strategy. A `protocol` object that sets only those policies leaves the
|
|
62
|
+
* advanced strategy alone.
|
|
63
|
+
*/
|
|
64
|
+
function isPolicyOnly(protocol) {
|
|
65
|
+
const keys = Object.keys(protocol);
|
|
66
|
+
return keys.length > 0 && keys.every((key) => POLICY_KEYS.includes(key));
|
|
67
|
+
}
|
|
69
68
|
/**
|
|
70
69
|
* Hard upper bound on {@link SenderKeysConfig.maxSenderKeyAge}, in
|
|
71
70
|
* milliseconds.
|
|
@@ -161,14 +160,6 @@ export const ARCHIVED_STATES_MAX_LENGTH = 40;
|
|
|
161
160
|
* exists for.
|
|
162
161
|
*/
|
|
163
162
|
export const PQXDH_INFO_DEFAULT = 'OpenE2EE_X25519_SHA-256_ML-KEM-1024';
|
|
164
|
-
/**
|
|
165
|
-
* Default HKDF info string for X3DH session initialization.
|
|
166
|
-
*
|
|
167
|
-
* X3DH section 2.1 defines `info` as an ASCII string identifying the
|
|
168
|
-
* application. Section 3.3 uses it as the HKDF info directly, and unlike
|
|
169
|
-
* PQXDH, no parameters are appended.
|
|
170
|
-
*/
|
|
171
|
-
export const X3DH_INFO_DEFAULT = 'OpenE2EE';
|
|
172
163
|
/**
|
|
173
164
|
* Validate protocol strategy configuration.
|
|
174
165
|
*/
|
|
@@ -178,9 +169,6 @@ export function validateProtocolStrategy(config) {
|
|
|
178
169
|
if (!config) {
|
|
179
170
|
return { valid: true, warnings, errors };
|
|
180
171
|
}
|
|
181
|
-
if (config.allowClassicalFallback) {
|
|
182
|
-
warnings.push('Classical compatibility fallback is enabled; it is used only for peers with no KEM material.');
|
|
183
|
-
}
|
|
184
172
|
if (config.sckaMode === 'direct') {
|
|
185
173
|
warnings.push('Direct SPQR SCKA is non-canonical; use it only for protocol tests or product-reviewed constraints.');
|
|
186
174
|
}
|
|
@@ -195,7 +183,6 @@ export function validateProtocolStrategy(config) {
|
|
|
195
183
|
*/
|
|
196
184
|
export function applyProtocolStrategyDefaults(config) {
|
|
197
185
|
return {
|
|
198
|
-
allowClassicalFallback: config?.allowClassicalFallback ?? false,
|
|
199
186
|
sckaMode: config?.sckaMode ?? 'braid',
|
|
200
187
|
onProtocolSelected: config?.onProtocolSelected,
|
|
201
188
|
onBraidProgress: config?.onBraidProgress,
|
|
@@ -231,12 +218,6 @@ export function resolveSCKAMode(config) {
|
|
|
231
218
|
* Resolve key exchange info strings.
|
|
232
219
|
*/
|
|
233
220
|
export function resolveKeyExchangeInfoStrings(override) {
|
|
234
|
-
|
|
235
|
-
return { pqxdh: override, x3dh: override };
|
|
236
|
-
}
|
|
237
|
-
return {
|
|
238
|
-
pqxdh: PQXDH_INFO_DEFAULT,
|
|
239
|
-
x3dh: X3DH_INFO_DEFAULT,
|
|
240
|
-
};
|
|
221
|
+
return { pqxdh: override || PQXDH_INFO_DEFAULT };
|
|
241
222
|
}
|
|
242
223
|
//# sourceMappingURL=protocol-config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol-config.js","sourceRoot":"","sources":["../../types/protocol-config.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"protocol-config.js","sourceRoot":"","sources":["../../types/protocol-config.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,QAAQ,EAAE,UAAU;CACZ,CAAC;AAIX;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAiNX;;GAEG;AACH,MAAM,UAAU,wBAAwB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C,iBAAiB;KACvF,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,MAA+B;IAC7D,OAAO,MAAM,EAAE,QAAQ,IAAI,OAAO,CAAC;AACrC,CAAC;AAUD;;GAEG;AACH,MAAM,UAAU,6BAA6B,CAAC,QAAiB;IAC7D,OAAO,EAAE,KAAK,EAAE,QAAQ,IAAI,kBAAkB,EAAE,CAAC;AACnD,CAAC"}
|
|
@@ -36,9 +36,9 @@ export declare const MAX_REGISTRATION_ID = 16380;
|
|
|
36
36
|
*/
|
|
37
37
|
export declare const ONE_TIME_PREKEY_BATCH_SIZE = 100;
|
|
38
38
|
/**
|
|
39
|
-
* Total bytes derived from
|
|
39
|
+
* Total bytes derived from PQXDH HKDF.
|
|
40
40
|
*
|
|
41
|
-
*
|
|
41
|
+
* PQXDH derives 96 bytes total:
|
|
42
42
|
* - Bytes 0-32: Shared secret (SK) / root key
|
|
43
43
|
* - Bytes 32-64: Reserved / receiving chain key placeholder (Alice) or sending (Bob)
|
|
44
44
|
* - Bytes 64-96: Sending chain key placeholder (Alice) or receiving (Bob)
|
|
@@ -47,7 +47,7 @@ export declare const ONE_TIME_PREKEY_BATCH_SIZE = 100;
|
|
|
47
47
|
*/
|
|
48
48
|
export declare const HKDF_OUTPUT_SIZE = 96;
|
|
49
49
|
/**
|
|
50
|
-
* HKDF output byte ranges for
|
|
50
|
+
* HKDF output byte ranges for PQXDH key derivation.
|
|
51
51
|
*
|
|
52
52
|
* These ranges are relative to the 96-byte HKDF output.
|
|
53
53
|
* For `additionalDerivedBytes` (bytes 32-96), subtract 32 from each range.
|
|
@@ -72,7 +72,7 @@ export declare const HKDF_RANGES: {
|
|
|
72
72
|
* Initial PQR key (32 bytes, positions 32-64).
|
|
73
73
|
*
|
|
74
74
|
* Used as the SPQR initial-state authenticator key. Provides authentication
|
|
75
|
-
* binding between the
|
|
75
|
+
* binding between the PQXDH shared secret and SPQR state.
|
|
76
76
|
*
|
|
77
77
|
* Named "RESERVED" in older documentation but actively used for SPQR.
|
|
78
78
|
*/
|
|
@@ -89,12 +89,12 @@ export declare const HKDF_RANGES: {
|
|
|
89
89
|
/**
|
|
90
90
|
* HKDF byte ranges relative to additionalDerivedBytes (SK already removed).
|
|
91
91
|
*
|
|
92
|
-
* When using `additionalDerivedBytes` from
|
|
92
|
+
* When using `additionalDerivedBytes` from PQXDH results,
|
|
93
93
|
* use these offsets since the first 32 bytes (SK) are separate.
|
|
94
94
|
*
|
|
95
95
|
* @example
|
|
96
96
|
* ```typescript
|
|
97
|
-
* const { sharedSecret, additionalDerivedBytes } =
|
|
97
|
+
* const { sharedSecret, additionalDerivedBytes } = pqxdhResult;
|
|
98
98
|
* // sharedSecret is bytes 0-32 (SK)
|
|
99
99
|
* // additionalDerivedBytes is bytes 32-96, so use ADDITIONAL_RANGES
|
|
100
100
|
* const pqrKey = additionalDerivedBytes.slice(
|
|
@@ -44,9 +44,9 @@ export const ONE_TIME_PREKEY_BATCH_SIZE = 100;
|
|
|
44
44
|
// HKDF Key Derivation Constants
|
|
45
45
|
// ============================================================================
|
|
46
46
|
/**
|
|
47
|
-
* Total bytes derived from
|
|
47
|
+
* Total bytes derived from PQXDH HKDF.
|
|
48
48
|
*
|
|
49
|
-
*
|
|
49
|
+
* PQXDH derives 96 bytes total:
|
|
50
50
|
* - Bytes 0-32: Shared secret (SK) / root key
|
|
51
51
|
* - Bytes 32-64: Reserved / receiving chain key placeholder (Alice) or sending (Bob)
|
|
52
52
|
* - Bytes 64-96: Sending chain key placeholder (Alice) or receiving (Bob)
|
|
@@ -55,7 +55,7 @@ export const ONE_TIME_PREKEY_BATCH_SIZE = 100;
|
|
|
55
55
|
*/
|
|
56
56
|
export const HKDF_OUTPUT_SIZE = 96;
|
|
57
57
|
/**
|
|
58
|
-
* HKDF output byte ranges for
|
|
58
|
+
* HKDF output byte ranges for PQXDH key derivation.
|
|
59
59
|
*
|
|
60
60
|
* These ranges are relative to the 96-byte HKDF output.
|
|
61
61
|
* For `additionalDerivedBytes` (bytes 32-96), subtract 32 from each range.
|
|
@@ -77,7 +77,7 @@ export const HKDF_RANGES = {
|
|
|
77
77
|
* Initial PQR key (32 bytes, positions 32-64).
|
|
78
78
|
*
|
|
79
79
|
* Used as the SPQR initial-state authenticator key. Provides authentication
|
|
80
|
-
* binding between the
|
|
80
|
+
* binding between the PQXDH shared secret and SPQR state.
|
|
81
81
|
*
|
|
82
82
|
* Named "RESERVED" in older documentation but actively used for SPQR.
|
|
83
83
|
*/
|
|
@@ -88,12 +88,12 @@ export const HKDF_RANGES = {
|
|
|
88
88
|
/**
|
|
89
89
|
* HKDF byte ranges relative to additionalDerivedBytes (SK already removed).
|
|
90
90
|
*
|
|
91
|
-
* When using `additionalDerivedBytes` from
|
|
91
|
+
* When using `additionalDerivedBytes` from PQXDH results,
|
|
92
92
|
* use these offsets since the first 32 bytes (SK) are separate.
|
|
93
93
|
*
|
|
94
94
|
* @example
|
|
95
95
|
* ```typescript
|
|
96
|
-
* const { sharedSecret, additionalDerivedBytes } =
|
|
96
|
+
* const { sharedSecret, additionalDerivedBytes } = pqxdhResult;
|
|
97
97
|
* // sharedSecret is bytes 0-32 (SK)
|
|
98
98
|
* // additionalDerivedBytes is bytes 32-96, so use ADDITIONAL_RANGES
|
|
99
99
|
* const pqrKey = additionalDerivedBytes.slice(
|
package/dist/types/session.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export interface StoredMessageKey {
|
|
|
35
35
|
*/
|
|
36
36
|
seed: Base64;
|
|
37
37
|
/**
|
|
38
|
-
* Storage timestamp for
|
|
38
|
+
* Storage timestamp for the 7-day expiry. The per-chain cap evicts by index, not by this field.
|
|
39
39
|
*
|
|
40
40
|
* Per Signal Protocol Section 8.4:
|
|
41
41
|
* "A recommended policy is to delete message keys more than one week old"
|
|
@@ -96,9 +96,9 @@ export interface SessionState {
|
|
|
96
96
|
* The initiator's ephemeral public key is the unique identifier for this
|
|
97
97
|
* session state. This field takes the name "baseKey" because:
|
|
98
98
|
* - "ephemeral" describes the key's LIFECYCLE (temporary, single-use)
|
|
99
|
-
* - "base" describes the key's ROLE (foundation for SK derivation in
|
|
99
|
+
* - "base" describes the key's ROLE (foundation for SK derivation in PQXDH)
|
|
100
100
|
*
|
|
101
|
-
* For initiator (Alice): Set to ephemeralKeyPair.publicKey from
|
|
101
|
+
* For initiator (Alice): Set to ephemeralKeyPair.publicKey from PQXDH
|
|
102
102
|
* For responder (Bob): Set to senderEphemeralKey from PreKeyMessage
|
|
103
103
|
*
|
|
104
104
|
* CRITICAL: This is different from sessionId/ProtocolAddress lookup.
|
|
@@ -149,7 +149,7 @@ export interface SessionState {
|
|
|
149
149
|
* This nested structure provides bounded skipped-key storage:
|
|
150
150
|
* - Up to MAX_RECEIVER_CHAINS (5) chains stored
|
|
151
151
|
* - Each chain indexed by sender's ratchet public key
|
|
152
|
-
* - Each chain contains up to MAX_MESSAGE_KEYS (2000
|
|
152
|
+
* - Each chain contains up to MAX_MESSAGE_KEYS (2000) message keys
|
|
153
153
|
*
|
|
154
154
|
* @see Signal Protocol Double Ratchet Section 3.1 (state.MKSKIPPED)
|
|
155
155
|
*/
|
|
@@ -497,7 +497,7 @@ export interface SessionConfig {
|
|
|
497
497
|
* Session Lookup Architecture:
|
|
498
498
|
* 1. A ProtocolAddress (userId:deviceId) LOOKS UP a session
|
|
499
499
|
* 2. Within a SessionRecord, a baseKey IDENTIFIES a session state
|
|
500
|
-
* 3. The baseKey is the initiator's ephemeral public key from
|
|
500
|
+
* 3. The baseKey is the initiator's ephemeral public key from PQXDH
|
|
501
501
|
*
|
|
502
502
|
* @see https://signal.org/docs/specifications/sesame/
|
|
503
503
|
*/
|
|
@@ -622,11 +622,11 @@ export declare namespace SessionRecord {
|
|
|
622
622
|
* Archive the current session and optionally set a new one.
|
|
623
623
|
*
|
|
624
624
|
* The function moves the current session to archivedSessions, keyed by its
|
|
625
|
-
* baseKey
|
|
625
|
+
* baseKey, at the newest end. Over maxArchived, the oldest insertions leave.
|
|
626
626
|
*
|
|
627
627
|
* @param record - SessionRecord to modify
|
|
628
628
|
* @param newSession - Optional new session to set as current
|
|
629
|
-
* @param maxArchived - Maximum number of archived sessions to keep (default:
|
|
629
|
+
* @param maxArchived - Maximum number of archived sessions to keep (default: 40)
|
|
630
630
|
* @returns Modified SessionRecord
|
|
631
631
|
*/
|
|
632
632
|
function archiveCurrent(record: SessionRecord, newSession?: SessionState | null, maxArchived?: number): SessionRecord;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../types/session.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,KAAK,EACV,mBAAmB,EACnB,eAAe,EACf,YAAY,EACZ,SAAS,EACT,UAAU,EACX,MAAM,SAAS,CAAC;AAMjB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAGtC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,KAAK,EACV,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,8CAA8C,CAAC;AACtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAMtE;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B,IAAI,CAAC;AAMhD;;;;;;GAMG;AACH,OAAO,EAAE,CAAC;AACV,MAAM,WAAW,gBAAgB;IAC/B,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;IAEd;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;OAKG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;;OAIG;IAC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