@open-e2ee/signal-protocol-sdk 14.1.0 → 14.3.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 +5 -5
- package/CHANGELOG.md +505 -0
- package/README.md +24 -19
- package/SECURITY.md +2 -2
- package/TROUBLESHOOTING.md +1 -1
- package/client/README.md +30 -18
- package/device/README.md +6 -5
- package/dist/client/client.d.ts +49 -38
- package/dist/client/client.d.ts.map +1 -1
- package/dist/client/client.js +231 -155
- package/dist/client/client.js.map +1 -1
- package/dist/client/compose.d.ts +4 -2
- package/dist/client/compose.d.ts.map +1 -1
- package/dist/client/compose.js +6 -1
- package/dist/client/compose.js.map +1 -1
- package/dist/client/config.d.ts +15 -6
- package/dist/client/config.d.ts.map +1 -1
- package/dist/client/config.js.map +1 -1
- package/dist/client/content-adapter.d.ts +9 -0
- package/dist/client/content-adapter.d.ts.map +1 -1
- package/dist/client/content-adapter.js +6 -0
- package/dist/client/content-adapter.js.map +1 -1
- package/dist/client/delivery-status.d.ts +2 -2
- package/dist/client/delivery-status.d.ts.map +1 -1
- package/dist/client/delivery-status.js +10 -4
- package/dist/client/delivery-status.js.map +1 -1
- package/dist/client/device-set-reconciliation.d.ts +23 -15
- package/dist/client/device-set-reconciliation.d.ts.map +1 -1
- package/dist/client/device-set-reconciliation.js +16 -13
- package/dist/client/device-set-reconciliation.js.map +1 -1
- package/dist/client/event-hooks.d.ts +15 -5
- package/dist/client/event-hooks.d.ts.map +1 -1
- package/dist/client/event-hooks.js +39 -4
- package/dist/client/event-hooks.js.map +1 -1
- package/dist/client/group-device-set.d.ts +1 -1
- package/dist/client/group-device-set.d.ts.map +1 -1
- package/dist/client/group-key-sync.js +1 -1
- package/dist/client/group-key-sync.js.map +1 -1
- package/dist/client/group-outbox.d.ts +7 -7
- package/dist/client/group-outbox.d.ts.map +1 -1
- package/dist/client/group-outbox.js +24 -24
- package/dist/client/group-outbox.js.map +1 -1
- package/dist/client/group-sealed-sender.d.ts +1 -1
- package/dist/client/group-sealed-sender.d.ts.map +1 -1
- package/dist/client/group-sender-key-operations.js +1 -1
- package/dist/client/group-sender-key-operations.js.map +1 -1
- package/dist/client/headless.d.ts +6 -6
- package/dist/client/headless.d.ts.map +1 -1
- package/dist/client/headless.js +7 -7
- package/dist/client/headless.js.map +1 -1
- package/dist/client/hosted-anonymous-delivery.d.ts +6 -6
- package/dist/client/hosted-anonymous-delivery.d.ts.map +1 -1
- package/dist/client/hosted-anonymous-delivery.js +17 -17
- package/dist/client/hosted-anonymous-delivery.js.map +1 -1
- package/dist/client/hosted-assertion-id.d.ts +1 -1
- package/dist/client/hosted-assertion-id.d.ts.map +1 -1
- package/dist/client/hosted-assertion-id.js +1 -1
- package/dist/client/hosted-assertion-id.js.map +1 -1
- package/dist/client/hosted-connection.d.ts +5 -5
- package/dist/client/hosted-connection.d.ts.map +1 -1
- package/dist/client/hosted-connection.js +32 -32
- package/dist/client/hosted-connection.js.map +1 -1
- package/dist/client/hosted-device-link-transport.d.ts +2 -2
- package/dist/client/hosted-device-link-transport.d.ts.map +1 -1
- package/dist/client/hosted-device-link-transport.js +1 -1
- package/dist/client/hosted-device-link-transport.js.map +1 -1
- package/dist/client/hosted-device-link.d.ts +5 -1
- package/dist/client/hosted-device-link.d.ts.map +1 -1
- package/dist/client/hosted-device-link.js +7 -4
- package/dist/client/hosted-device-link.js.map +1 -1
- package/dist/client/hosted-device-standing.d.ts +13 -5
- package/dist/client/hosted-device-standing.d.ts.map +1 -1
- package/dist/client/hosted-device-standing.js +11 -6
- package/dist/client/hosted-device-standing.js.map +1 -1
- package/dist/client/hosted-group-authority.d.ts +2 -2
- package/dist/client/hosted-group-authority.d.ts.map +1 -1
- package/dist/client/hosted-group-authority.js +8 -8
- package/dist/client/hosted-group-authority.js.map +1 -1
- package/dist/client/hosted-groups.d.ts +4 -4
- package/dist/client/hosted-groups.d.ts.map +1 -1
- package/dist/client/hosted-groups.js +8 -8
- package/dist/client/hosted-groups.js.map +1 -1
- package/dist/client/hosted-http-error.d.ts +7 -3
- package/dist/client/hosted-http-error.d.ts.map +1 -1
- package/dist/client/hosted-http-error.js +6 -3
- package/dist/client/hosted-http-error.js.map +1 -1
- package/dist/client/hosted-mailbox-subscription.d.ts +10 -10
- package/dist/client/hosted-mailbox-subscription.d.ts.map +1 -1
- package/dist/client/hosted-mailbox-subscription.js +17 -17
- package/dist/client/hosted-mailbox-subscription.js.map +1 -1
- package/dist/client/hosted-prekey-publication.d.ts +9 -9
- package/dist/client/hosted-prekey-publication.d.ts.map +1 -1
- package/dist/client/hosted-prekey-publication.js.map +1 -1
- package/dist/client/hosted-presence-frames.d.ts +62 -38
- package/dist/client/hosted-presence-frames.d.ts.map +1 -1
- package/dist/client/hosted-presence-frames.js +4 -2
- package/dist/client/hosted-presence-frames.js.map +1 -1
- package/dist/client/hosted-presence.d.ts +22 -14
- package/dist/client/hosted-presence.d.ts.map +1 -1
- package/dist/client/hosted-presence.js +26 -17
- package/dist/client/hosted-presence.js.map +1 -1
- package/dist/client/hosted-profile-keys.d.ts +3 -1
- package/dist/client/hosted-profile-keys.d.ts.map +1 -1
- package/dist/client/hosted-profile-keys.js +19 -15
- package/dist/client/hosted-profile-keys.js.map +1 -1
- package/dist/client/hosted-push.d.ts +38 -16
- package/dist/client/hosted-push.d.ts.map +1 -1
- package/dist/client/hosted-push.js +11 -5
- package/dist/client/hosted-push.js.map +1 -1
- package/dist/client/hosted-resume-error.d.ts +21 -9
- package/dist/client/hosted-resume-error.d.ts.map +1 -1
- package/dist/client/hosted-resume-error.js +4 -1
- package/dist/client/hosted-resume-error.js.map +1 -1
- package/dist/client/hosted-resume.d.ts +3 -3
- package/dist/client/hosted-resume.d.ts.map +1 -1
- package/dist/client/hosted-resume.js +12 -12
- package/dist/client/hosted-resume.js.map +1 -1
- package/dist/client/hosted-sandbox-identity.d.ts +32 -18
- package/dist/client/hosted-sandbox-identity.d.ts.map +1 -1
- package/dist/client/hosted-sandbox-identity.js +46 -27
- package/dist/client/hosted-sandbox-identity.js.map +1 -1
- package/dist/client/hosted-store-records.d.ts +46 -0
- package/dist/client/hosted-store-records.d.ts.map +1 -0
- package/dist/client/hosted-store-records.js +32 -0
- package/dist/client/hosted-store-records.js.map +1 -0
- package/dist/client/hosted-transport.d.ts +41 -33
- package/dist/client/hosted-transport.d.ts.map +1 -1
- package/dist/client/hosted-transport.js +146 -101
- package/dist/client/hosted-transport.js.map +1 -1
- package/dist/client/hosted-trust.d.ts +1 -1
- package/dist/client/hosted-trust.d.ts.map +1 -1
- package/dist/client/hosted-trust.js +1 -1
- package/dist/client/hosted-trust.js.map +1 -1
- package/dist/client/hosted.d.ts +138 -72
- package/dist/client/hosted.d.ts.map +1 -1
- package/dist/client/hosted.js +102 -60
- package/dist/client/hosted.js.map +1 -1
- package/dist/client/index.d.ts +4 -4
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +4 -4
- package/dist/client/index.js.map +1 -1
- package/dist/client/key-rotation-core.d.ts +4 -4
- package/dist/client/key-rotation-core.d.ts.map +1 -1
- package/dist/client/key-rotation-core.js +8 -8
- package/dist/client/key-rotation-core.js.map +1 -1
- package/dist/client/key-rotation.js +2 -2
- package/dist/client/key-rotation.js.map +1 -1
- package/dist/client/messages.d.ts +3 -3
- package/dist/client/messages.d.ts.map +1 -1
- package/dist/client/messages.js +18 -18
- package/dist/client/messages.js.map +1 -1
- package/dist/client/one-time-prekey-refill.d.ts +1 -1
- package/dist/client/one-time-prekey-refill.d.ts.map +1 -1
- package/dist/client/prekeys.js +17 -17
- package/dist/client/prekeys.js.map +1 -1
- package/dist/client/receive-queue.d.ts +4 -4
- package/dist/client/receive-queue.d.ts.map +1 -1
- package/dist/client/receive-queue.js +29 -29
- package/dist/client/receive-queue.js.map +1 -1
- package/dist/client/receive-work-seed.d.ts +6 -2
- package/dist/client/receive-work-seed.d.ts.map +1 -1
- package/dist/client/receive-work-seed.js.map +1 -1
- package/dist/client/recovery-driver.js +7 -7
- package/dist/client/recovery-driver.js.map +1 -1
- package/dist/client/retry-request-envelope.d.ts +3 -3
- package/dist/client/retry-request-envelope.d.ts.map +1 -1
- package/dist/client/retry-request-envelope.js +10 -10
- package/dist/client/retry-request-envelope.js.map +1 -1
- package/dist/client/retry-request-lifecycle.d.ts +1 -1
- package/dist/client/retry-request-lifecycle.d.ts.map +1 -1
- package/dist/client/retry-request-lifecycle.js +8 -8
- package/dist/client/retry-request-lifecycle.js.map +1 -1
- package/dist/client/retry-terminal-recovery.js +2 -2
- package/dist/client/retry-terminal-recovery.js.map +1 -1
- package/dist/client/retry.js +13 -13
- package/dist/client/retry.js.map +1 -1
- package/dist/client/sealed-sender.d.ts +13 -4
- package/dist/client/sealed-sender.d.ts.map +1 -1
- package/dist/client/sealed-sender.js +27 -15
- package/dist/client/sealed-sender.js.map +1 -1
- package/dist/client/send-deadline.d.ts +6 -6
- package/dist/client/send-deadline.d.ts.map +1 -1
- package/dist/client/send-deadline.js +37 -23
- package/dist/client/send-deadline.js.map +1 -1
- package/dist/client/send-intent-driver.js +9 -9
- package/dist/client/send-intent-driver.js.map +1 -1
- package/dist/client/sessions.js +11 -11
- package/dist/client/sessions.js.map +1 -1
- package/dist/client/{relay-acceptance.d.ts → signal-relay-acceptance.d.ts} +9 -9
- package/dist/client/signal-relay-acceptance.d.ts.map +1 -0
- package/dist/client/{relay-acceptance.js → signal-relay-acceptance.js} +7 -7
- package/dist/client/signal-relay-acceptance.js.map +1 -0
- package/dist/client/{relay-device-refusal.d.ts → signal-relay-device-refusal.d.ts} +7 -7
- package/dist/client/signal-relay-device-refusal.d.ts.map +1 -0
- package/dist/client/{relay-device-refusal.js → signal-relay-device-refusal.js} +9 -9
- package/dist/client/signal-relay-device-refusal.js.map +1 -0
- package/dist/client/{relay-lifecycle.d.ts → signal-relay-lifecycle.d.ts} +18 -9
- package/dist/client/signal-relay-lifecycle.d.ts.map +1 -0
- package/dist/client/{relay-lifecycle.js → signal-relay-lifecycle.js} +16 -7
- package/dist/client/signal-relay-lifecycle.js.map +1 -0
- package/dist/client/{relay-period-close.d.ts → signal-relay-period-close.d.ts} +1 -1
- package/dist/client/signal-relay-period-close.d.ts.map +1 -0
- package/dist/client/{relay-period-close.js → signal-relay-period-close.js} +1 -1
- package/dist/client/signal-relay-period-close.js.map +1 -0
- package/dist/client/{relay-protocol.d.ts → signal-relay-protocol.d.ts} +12 -8
- package/dist/client/signal-relay-protocol.d.ts.map +1 -0
- package/dist/client/{relay-protocol.js → signal-relay-protocol.js} +13 -10
- package/dist/client/signal-relay-protocol.js.map +1 -0
- package/dist/client/{relay-receipt-intake.d.ts → signal-relay-receipt-intake.d.ts} +12 -12
- package/dist/client/signal-relay-receipt-intake.d.ts.map +1 -0
- package/dist/client/{relay-receipt-intake.js → signal-relay-receipt-intake.js} +9 -9
- package/dist/client/signal-relay-receipt-intake.js.map +1 -0
- package/dist/client/{relay-receipt-join.d.ts → signal-relay-receipt-join.d.ts} +8 -8
- package/dist/client/signal-relay-receipt-join.d.ts.map +1 -0
- package/dist/client/{relay-receipt-join.js → signal-relay-receipt-join.js} +11 -11
- package/dist/client/signal-relay-receipt-join.js.map +1 -0
- package/dist/client/{relay-request-deadline.d.ts → signal-relay-request-deadline.d.ts} +3 -3
- package/dist/client/signal-relay-request-deadline.d.ts.map +1 -0
- package/dist/client/{relay-request-deadline.js → signal-relay-request-deadline.js} +4 -4
- package/dist/client/signal-relay-request-deadline.js.map +1 -0
- package/dist/client/{relay-sealed-route.d.ts → signal-relay-sealed-route.d.ts} +1 -1
- package/dist/client/signal-relay-sealed-route.d.ts.map +1 -0
- package/dist/client/{relay-sealed-route.js → signal-relay-sealed-route.js} +1 -1
- package/dist/client/signal-relay-sealed-route.js.map +1 -0
- package/dist/client/{relay-subscription.d.ts → signal-relay-subscription.d.ts} +12 -12
- package/dist/client/signal-relay-subscription.d.ts.map +1 -0
- package/dist/client/{relay-subscription.js → signal-relay-subscription.js} +23 -23
- package/dist/client/signal-relay-subscription.js.map +1 -0
- package/dist/client/{relay-work.d.ts → signal-relay-work.d.ts} +7 -7
- package/dist/client/signal-relay-work.d.ts.map +1 -0
- package/dist/client/{relay-work.js → signal-relay-work.js} +13 -13
- package/dist/client/signal-relay-work.js.map +1 -0
- package/dist/client/signal-service-cipher.d.ts +10 -8
- package/dist/client/signal-service-cipher.d.ts.map +1 -1
- package/dist/client/signal-service-cipher.js +102 -97
- package/dist/client/signal-service-cipher.js.map +1 -1
- package/dist/client/state.d.ts +4 -4
- package/dist/client/state.d.ts.map +1 -1
- package/dist/client/state.js +3 -3
- package/dist/client/state.js.map +1 -1
- package/dist/client/types.d.ts +13 -4
- package/dist/client/types.d.ts.map +1 -1
- package/dist/client/types.js.map +1 -1
- package/dist/device/connection.d.ts +10 -4
- package/dist/device/connection.d.ts.map +1 -1
- package/dist/device/connection.js +8 -3
- package/dist/device/connection.js.map +1 -1
- package/dist/device/index.d.ts +2 -2
- package/dist/device/index.d.ts.map +1 -1
- package/dist/device/index.js +1 -1
- package/dist/device/index.js.map +1 -1
- package/dist/device/types.d.ts +3 -1
- package/dist/device/types.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +2 -2
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/use-signal-relay-connection-state.d.ts +39 -0
- package/dist/hooks/use-signal-relay-connection-state.d.ts.map +1 -0
- package/dist/hooks/use-signal-relay-connection-state.js +45 -0
- package/dist/hooks/use-signal-relay-connection-state.js.map +1 -0
- package/dist/hooks/use-signal-relay-lifecycle.d.ts +43 -0
- package/dist/hooks/use-signal-relay-lifecycle.d.ts.map +1 -0
- package/dist/hooks/use-signal-relay-lifecycle.js +38 -0
- package/dist/hooks/use-signal-relay-lifecycle.js.map +1 -0
- package/dist/index.d.ts +16 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/internal/groups/authority-certificate.d.ts +8 -1
- package/dist/internal/groups/authority-certificate.d.ts.map +1 -1
- package/dist/internal/groups/authority-certificate.js +29 -6
- package/dist/internal/groups/authority-certificate.js.map +1 -1
- package/dist/internal/protocol/sealed-sender/certificate.js +2 -2
- package/dist/internal/protocol/sealed-sender/certificate.js.map +1 -1
- package/dist/internal/protocol/sealed-sender/proto/index.d.ts +1 -1
- package/dist/internal/protocol/sealed-sender/proto/index.d.ts.map +1 -1
- package/dist/internal/protocol/sealed-sender/proto/index.js +5 -5
- package/dist/internal/protocol/sealed-sender/proto/index.js.map +1 -1
- package/dist/internal/sesame/device-registry.d.ts +13 -13
- package/dist/internal/sesame/device-registry.d.ts.map +1 -1
- package/dist/internal/sesame/device-registry.js +20 -20
- package/dist/internal/sesame/device-registry.js.map +1 -1
- package/dist/local/store/receive-work.d.ts +29 -0
- package/dist/local/store/receive-work.d.ts.map +1 -1
- package/dist/local/store/receive-work.js +58 -1
- package/dist/local/store/receive-work.js.map +1 -1
- package/dist/local/store/received-content.d.ts +1 -1
- package/dist/local/store/received-content.d.ts.map +1 -1
- package/dist/local/store/reliability.d.ts +11 -3
- package/dist/local/store/reliability.d.ts.map +1 -1
- package/dist/local/store/reliability.js +4 -0
- package/dist/local/store/reliability.js.map +1 -1
- package/dist/local/store/sqlite/key-storage/index.d.ts +3 -9
- package/dist/local/store/sqlite/key-storage/index.d.ts.map +1 -1
- package/dist/local/store/sqlite/key-storage/index.js.map +1 -1
- package/dist/local/store/sqlite/key-storage/signed-prekeys.d.ts +1 -7
- package/dist/local/store/sqlite/key-storage/signed-prekeys.d.ts.map +1 -1
- package/dist/local/store/sqlite/key-storage/signed-prekeys.js.map +1 -1
- package/dist/local/store/sqlite/models/kyber-prekey.d.ts +4 -9
- package/dist/local/store/sqlite/models/kyber-prekey.d.ts.map +1 -1
- package/dist/local/store/sqlite/models/kyber-prekey.js +4 -1
- package/dist/local/store/sqlite/models/kyber-prekey.js.map +1 -1
- package/dist/local/store/sqlite/store.d.ts.map +1 -1
- package/dist/local/store/sqlite/store.js +1 -2
- package/dist/local/store/sqlite/store.js.map +1 -1
- package/dist/remote/signal-relay/connection-state.d.ts +16 -0
- package/dist/remote/signal-relay/connection-state.d.ts.map +1 -0
- package/dist/remote/{relay → signal-relay}/connection-state.js +1 -1
- package/dist/remote/signal-relay/connection-state.js.map +1 -0
- package/dist/remote/{relay → signal-relay}/device-set.d.ts +3 -3
- package/dist/remote/signal-relay/device-set.d.ts.map +1 -0
- package/dist/remote/{relay → signal-relay}/device-set.js +7 -7
- package/dist/remote/signal-relay/device-set.js.map +1 -0
- package/dist/remote/{relay → signal-relay}/index.d.ts +3 -3
- package/dist/remote/signal-relay/index.d.ts.map +1 -0
- package/dist/remote/{relay → signal-relay}/index.js +2 -2
- package/dist/remote/signal-relay/index.js.map +1 -0
- package/dist/remote/{relay → signal-relay}/request-admission.d.ts +2 -2
- package/dist/remote/signal-relay/request-admission.d.ts.map +1 -0
- package/dist/remote/{relay → signal-relay}/request-admission.js +5 -5
- package/dist/remote/signal-relay/request-admission.js.map +1 -0
- package/dist/remote/{relay → signal-relay}/types.d.ts +29 -10
- package/dist/remote/signal-relay/types.d.ts.map +1 -0
- package/dist/remote/{relay → signal-relay}/types.js +1 -1
- package/dist/remote/signal-relay/types.js.map +1 -0
- package/dist/safety/core.d.ts +1 -1
- package/dist/safety/core.js +1 -1
- package/dist/types/api.d.ts +38 -15
- package/dist/types/api.d.ts.map +1 -1
- package/dist/types/errors.d.ts +62 -7
- package/dist/types/errors.d.ts.map +1 -1
- package/dist/types/errors.js +68 -8
- package/dist/types/errors.js.map +1 -1
- package/dist/types/renamed-member.d.ts +48 -0
- package/dist/types/renamed-member.d.ts.map +1 -0
- package/dist/types/renamed-member.js +78 -0
- package/dist/types/renamed-member.js.map +1 -0
- package/dist/utils/bounded-fan-out.d.ts +2 -2
- package/dist/utils/bounded-fan-out.d.ts.map +1 -1
- package/dist/utils/bounded-fan-out.js +2 -2
- package/dist/utils/bounded-fan-out.js.map +1 -1
- package/dist/utils/retry.d.ts +3 -3
- package/dist/utils/retry.d.ts.map +1 -1
- package/dist/utils/retry.js +4 -3
- package/dist/utils/retry.js.map +1 -1
- package/docs/ASSURANCE.md +9 -9
- package/docs/CLIENT_COMPOSITION.md +7 -5
- package/docs/DEVIATIONS.md +8 -5
- package/docs/ERROR_HANDLING.md +21 -21
- package/docs/GETTING_STARTED.md +22 -15
- package/docs/INTERFACES.md +3 -3
- package/docs/PACKAGE_SURFACE.md +14 -4
- package/docs/RECIPES.md +271 -11
- package/hooks/README.md +11 -11
- package/local/store/key-value/README.md +1 -1
- package/local/store/web-sqlite/README.md +1 -1
- package/package.json +16 -6
- package/remote/README.md +3 -3
- package/remote/{relay → signal-relay}/README.md +15 -6
- package/dist/client/relay-acceptance.d.ts.map +0 -1
- package/dist/client/relay-acceptance.js.map +0 -1
- package/dist/client/relay-device-refusal.d.ts.map +0 -1
- package/dist/client/relay-device-refusal.js.map +0 -1
- package/dist/client/relay-lifecycle.d.ts.map +0 -1
- package/dist/client/relay-lifecycle.js.map +0 -1
- package/dist/client/relay-period-close.d.ts.map +0 -1
- package/dist/client/relay-period-close.js.map +0 -1
- package/dist/client/relay-protocol.d.ts.map +0 -1
- package/dist/client/relay-protocol.js.map +0 -1
- package/dist/client/relay-receipt-intake.d.ts.map +0 -1
- package/dist/client/relay-receipt-intake.js.map +0 -1
- package/dist/client/relay-receipt-join.d.ts.map +0 -1
- package/dist/client/relay-receipt-join.js.map +0 -1
- package/dist/client/relay-request-deadline.d.ts.map +0 -1
- package/dist/client/relay-request-deadline.js.map +0 -1
- package/dist/client/relay-sealed-route.d.ts.map +0 -1
- package/dist/client/relay-sealed-route.js.map +0 -1
- package/dist/client/relay-subscription.d.ts.map +0 -1
- package/dist/client/relay-subscription.js.map +0 -1
- package/dist/client/relay-work.d.ts.map +0 -1
- package/dist/client/relay-work.js.map +0 -1
- package/dist/hooks/use-relay-connection-state.d.ts +0 -32
- package/dist/hooks/use-relay-connection-state.d.ts.map +0 -1
- package/dist/hooks/use-relay-connection-state.js +0 -31
- package/dist/hooks/use-relay-connection-state.js.map +0 -1
- package/dist/hooks/use-relay-lifecycle.d.ts +0 -36
- package/dist/hooks/use-relay-lifecycle.d.ts.map +0 -1
- package/dist/hooks/use-relay-lifecycle.js +0 -35
- package/dist/hooks/use-relay-lifecycle.js.map +0 -1
- package/dist/remote/relay/connection-state.d.ts +0 -16
- package/dist/remote/relay/connection-state.d.ts.map +0 -1
- package/dist/remote/relay/connection-state.js.map +0 -1
- package/dist/remote/relay/device-set.d.ts.map +0 -1
- package/dist/remote/relay/device-set.js.map +0 -1
- package/dist/remote/relay/index.d.ts.map +0 -1
- package/dist/remote/relay/index.js.map +0 -1
- package/dist/remote/relay/request-admission.d.ts.map +0 -1
- package/dist/remote/relay/request-admission.js.map +0 -1
- package/dist/remote/relay/types.d.ts.map +0 -1
- package/dist/remote/relay/types.js.map +0 -1
package/dist/client/hosted.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import type { CompositeIdentityV1 } from '../keys/types.js';
|
|
2
|
-
import type { SignalProtocolRelayServer } from '../remote/relay/types.js';
|
|
2
|
+
import type { SignalProtocolRelayServer } from '../remote/signal-relay/types.js';
|
|
3
3
|
import type { SignalProtocolLocalStore } from '../types/index.js';
|
|
4
4
|
import { DefaultSignalProtocolClient } from './client.js';
|
|
5
5
|
import type { SignalProtocolClientCompositionOptions } from './compose.js';
|
|
6
6
|
import type { SealedSenderAccessMode } from './config.js';
|
|
7
|
-
import { type
|
|
7
|
+
import { type HostedSignalProtocolRelayProfileKeys } from './hosted-profile-keys.js';
|
|
8
8
|
import { type HostedGroupOptions } from './hosted-group-authority.js';
|
|
9
9
|
import type { GroupStateStore } from '../internal/groups/manager.js';
|
|
10
|
-
export { pullHostedRelayAfterWake, registerHostedRelayPush, removeHostedRelayPush, } from './hosted-push.js';
|
|
11
|
-
export { HostedRelayPresenceError, hostedRelayPresence, hostedRelayWakePresence, } from './hosted-presence.js';
|
|
12
|
-
export { HostedRelayDeviceRevokedError, HostedRelayDeviceUnknownError, } from './hosted-device-standing.js';
|
|
13
|
-
export { HostedRelayDeviceLinkError } from './hosted-device-link.js';
|
|
14
|
-
export { HostedRelayHttpError } from './hosted-http-error.js';
|
|
15
|
-
export { HostedRelayUpgradeRequiredError } from './relay-protocol.js';
|
|
16
|
-
export type { HostedRelayPresence, HostedRelayPresenceAccount, HostedRelayPresenceApproximateLastSeen, HostedRelayPresenceAudience, HostedRelayPresenceErrorCode, HostedRelayPresenceLastSeenPolicy, HostedRelayPresenceMode, HostedRelayPresencePolicy, HostedRelayPresenceSetting, HostedRelayPresenceStatus, HostedRelayPresenceVisibility, HostedRelayWakePresence, } from './hosted-presence.js';
|
|
17
|
-
export type { HostedRelayProfileKeys } from './hosted-profile-keys.js';
|
|
18
|
-
export { hostedRelayDeviceOwnedIdentity, hostedRelaySandboxIdentity, } from './hosted-sandbox-identity.js';
|
|
19
|
-
export type { HostedRelayPushPlatform, HostedRelayPushProfile, HostedRelayPushRegistration, HostedRelayTokenPushRegistration, HostedRelayWakeClient, HostedRelayWakeOptions, HostedRelayWakeResult, HostedRelayWebPushRegistration, } from './hosted-push.js';
|
|
10
|
+
export { pullHostedSignalProtocolRelayAfterWake, pullHostedRelayAfterWake, registerHostedSignalProtocolRelayPush, registerHostedRelayPush, removeHostedSignalProtocolRelayPush, removeHostedRelayPush, } from './hosted-push.js';
|
|
11
|
+
export { HostedSignalProtocolRelayPresenceError, HostedRelayPresenceError, hostedSignalProtocolRelayPresence, hostedRelayPresence, hostedSignalProtocolRelayWakePresence, hostedRelayWakePresence, } from './hosted-presence.js';
|
|
12
|
+
export { HostedSignalProtocolRelayDeviceRevokedError, HostedRelayDeviceRevokedError, HostedSignalProtocolRelayDeviceUnknownError, HostedRelayDeviceUnknownError, } from './hosted-device-standing.js';
|
|
13
|
+
export { HostedSignalProtocolRelayDeviceLinkError, HostedRelayDeviceLinkError } from './hosted-device-link.js';
|
|
14
|
+
export { HostedSignalProtocolRelayHttpError, HostedRelayHttpError } from './hosted-http-error.js';
|
|
15
|
+
export { HostedSignalProtocolRelayUpgradeRequiredError, HostedRelayUpgradeRequiredError } from './signal-relay-protocol.js';
|
|
16
|
+
export type { HostedSignalProtocolRelayPresence, HostedRelayPresence, HostedSignalProtocolRelayPresenceAccount, HostedRelayPresenceAccount, HostedSignalProtocolRelayPresenceApproximateLastSeen, HostedRelayPresenceApproximateLastSeen, HostedSignalProtocolRelayPresenceAudience, HostedRelayPresenceAudience, HostedSignalProtocolRelayPresenceErrorCode, HostedRelayPresenceErrorCode, HostedSignalProtocolRelayPresenceLastSeenPolicy, HostedRelayPresenceLastSeenPolicy, HostedSignalProtocolRelayPresenceMode, HostedRelayPresenceMode, HostedSignalProtocolRelayPresencePolicy, HostedRelayPresencePolicy, HostedSignalProtocolRelayPresenceSetting, HostedRelayPresenceSetting, HostedSignalProtocolRelayPresenceStatus, HostedRelayPresenceStatus, HostedSignalProtocolRelayPresenceVisibility, HostedRelayPresenceVisibility, HostedSignalProtocolRelayWakePresence, HostedRelayWakePresence, } from './hosted-presence.js';
|
|
17
|
+
export type { HostedSignalProtocolRelayProfileKeys, HostedRelayProfileKeys } from './hosted-profile-keys.js';
|
|
18
|
+
export { hostedSignalProtocolRelayDeviceOwnedIdentity, hostedRelayDeviceOwnedIdentity, hostedSignalProtocolRelaySandboxIdentity, hostedRelaySandboxIdentity, } from './hosted-sandbox-identity.js';
|
|
19
|
+
export type { HostedSignalProtocolRelayPushPlatform, HostedRelayPushPlatform, HostedSignalProtocolRelayPushProfile, HostedRelayPushProfile, HostedSignalProtocolRelayPushRegistration, HostedRelayPushRegistration, HostedSignalProtocolRelayTokenPushRegistration, HostedRelayTokenPushRegistration, HostedSignalProtocolRelayWakeClient, HostedRelayWakeClient, HostedSignalProtocolRelayWakeOptions, HostedRelayWakeOptions, HostedSignalProtocolRelayWakeResult, HostedRelayWakeResult, HostedSignalProtocolRelayWebPushRegistration, HostedRelayWebPushRegistration, } from './hosted-push.js';
|
|
20
20
|
/** Why the Signal Protocol Relay needs a fresh identity assertion. */
|
|
21
21
|
export type IdentityAssertionPurpose = 'register' | 'refresh' | 'recover';
|
|
22
22
|
/** Assurance requested from the application's identity provider. */
|
|
@@ -32,31 +32,31 @@ export interface IdentityAssertionRequest {
|
|
|
32
32
|
/** The publishable key in `relayUrl`. It identifies one Relay environment. */
|
|
33
33
|
readonly publishableKey: string;
|
|
34
34
|
readonly migration?: {
|
|
35
|
-
readonly action:
|
|
35
|
+
readonly action: HostedSignalProtocolRelayIdentityMigrationAction;
|
|
36
36
|
readonly providerRole: IdentityAssertionProviderRole;
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
/** Stable application callback for a signed identity-provider assertion. */
|
|
40
40
|
export type GetIdentityAssertion = (request: IdentityAssertionRequest) => Promise<string>;
|
|
41
41
|
/** Hosted identity operation progress suitable for application UI. */
|
|
42
|
-
export type
|
|
42
|
+
export type HostedSignalProtocolRelayIdentityProgress = {
|
|
43
43
|
readonly operation: 'bootstrap' | 'recovery';
|
|
44
44
|
readonly phase: 'preparing-local-state' | 'requesting-assertion' | 'submitting' | 'complete';
|
|
45
45
|
} | {
|
|
46
46
|
readonly operation: 'migration';
|
|
47
|
-
readonly action:
|
|
47
|
+
readonly action: HostedSignalProtocolRelayIdentityMigrationAction;
|
|
48
48
|
readonly phase: 'requesting-assertion' | 'submitting' | 'complete';
|
|
49
49
|
readonly providerRole?: IdentityAssertionProviderRole;
|
|
50
|
-
readonly state?:
|
|
50
|
+
readonly state?: HostedSignalProtocolRelayIdentityMigrationState;
|
|
51
51
|
} | {
|
|
52
52
|
readonly operation: 'device-link';
|
|
53
53
|
readonly phase: 'preparing-linked-device' | 'copying' | 'submitting' | 'complete';
|
|
54
54
|
readonly deviceId?: number;
|
|
55
55
|
};
|
|
56
56
|
/** Receives typed progress without receiving assertions or private key material. */
|
|
57
|
-
export type
|
|
57
|
+
export type HostedSignalProtocolRelayIdentityProgressCallback = (progress: HostedSignalProtocolRelayIdentityProgress) => void;
|
|
58
58
|
/** A device proof signer whose private key never leaves the SDK-owned local store. */
|
|
59
|
-
export interface
|
|
59
|
+
export interface HostedSignalProtocolRelayDeviceAuthentication {
|
|
60
60
|
readonly publicKey: Uint8Array;
|
|
61
61
|
/**
|
|
62
62
|
* Sign a Relay challenge with domain separation and publishable-key binding.
|
|
@@ -67,19 +67,19 @@ export interface HostedRelayDeviceAuthentication {
|
|
|
67
67
|
signCertificateRequest(tokenId: string, nonce: string): Promise<Uint8Array>;
|
|
68
68
|
}
|
|
69
69
|
/** Public prekey material sent during one atomic Signal Protocol Relay registration. */
|
|
70
|
-
export interface
|
|
70
|
+
export interface HostedSignalProtocolRelayRegistrationPreKey {
|
|
71
71
|
readonly algorithm: 'ec-x25519' | 'kem-ml-kem-1024';
|
|
72
72
|
readonly keyId: number;
|
|
73
73
|
readonly publicKey: Uint8Array;
|
|
74
74
|
readonly signature?: Uint8Array;
|
|
75
75
|
}
|
|
76
76
|
/** Complete EC/PQ inventory bound to the hosted device registration. */
|
|
77
|
-
export interface
|
|
78
|
-
readonly oneTimePreKeys: readonly
|
|
79
|
-
readonly signedPreKeys: readonly
|
|
77
|
+
export interface HostedSignalProtocolRelayRegistrationPreKeys {
|
|
78
|
+
readonly oneTimePreKeys: readonly HostedSignalProtocolRelayRegistrationPreKey[];
|
|
79
|
+
readonly signedPreKeys: readonly HostedSignalProtocolRelayRegistrationPreKey[];
|
|
80
80
|
}
|
|
81
81
|
/** Request passed to a Signal Protocol Relay bootstrap transport. */
|
|
82
|
-
export interface
|
|
82
|
+
export interface HostedSignalProtocolRelayBootstrapRequest {
|
|
83
83
|
readonly protocolEndpoint: string;
|
|
84
84
|
readonly publishableKey: string;
|
|
85
85
|
readonly assertion: string;
|
|
@@ -88,19 +88,30 @@ export interface HostedRelayBootstrapRequest {
|
|
|
88
88
|
readonly registrationId: number;
|
|
89
89
|
/** Stable for exact retries and changes when the public registration material changes. */
|
|
90
90
|
readonly operationId: string;
|
|
91
|
-
readonly registrationPreKeys:
|
|
92
|
-
readonly deviceAuthentication:
|
|
91
|
+
readonly registrationPreKeys: HostedSignalProtocolRelayRegistrationPreKeys;
|
|
92
|
+
readonly deviceAuthentication: HostedSignalProtocolRelayDeviceAuthentication;
|
|
93
93
|
}
|
|
94
|
-
/**
|
|
95
|
-
|
|
94
|
+
/**
|
|
95
|
+
* Canonical identity and authenticated Relay returned by hosted bootstrap.
|
|
96
|
+
*
|
|
97
|
+
* SDK 14 also accepts the deprecated `signalProtocolRelayScopeId` and
|
|
98
|
+
* `signalProtocolRelay` names. When an adapter sets both names of a member,
|
|
99
|
+
* two different values fail with `SignalProtocolRelayNameConflictError`.
|
|
100
|
+
* SDK 15.0.0 removes the deprecated names.
|
|
101
|
+
*/
|
|
102
|
+
export interface HostedSignalProtocolRelayBootstrapResult {
|
|
96
103
|
readonly canonicalAccountId: string;
|
|
97
104
|
readonly deviceId: number;
|
|
105
|
+
/** @deprecated Use `relayScopeId`. SDK 15.0.0 removes this name. */
|
|
106
|
+
readonly signalProtocolRelayScopeId?: Uint8Array;
|
|
98
107
|
readonly relayScopeId: Uint8Array;
|
|
108
|
+
/** @deprecated Use `relay`. SDK 15.0.0 removes this name. */
|
|
109
|
+
readonly signalProtocolRelay?: SignalProtocolRelayServer;
|
|
99
110
|
readonly relay: SignalProtocolRelayServer;
|
|
100
111
|
}
|
|
101
|
-
export type
|
|
102
|
-
export type
|
|
103
|
-
export interface
|
|
112
|
+
export type HostedSignalProtocolRelayIdentityMigrationAction = 'prepare' | 'inspect' | 'cutover' | 'rollback' | 'finalize';
|
|
113
|
+
export type HostedSignalProtocolRelayIdentityMigrationState = 'abandoned' | 'prepared' | 'cutover' | 'rolled-back' | 'finalized';
|
|
114
|
+
export interface HostedSignalProtocolRelayIdentityMigrationSnapshot {
|
|
104
115
|
readonly accountPreserved: true;
|
|
105
116
|
readonly collision: false;
|
|
106
117
|
readonly expiresAt: number;
|
|
@@ -109,34 +120,34 @@ export interface HostedRelayIdentityMigrationSnapshot {
|
|
|
109
120
|
readonly primaryProvider: IdentityAssertionProviderRole;
|
|
110
121
|
readonly proof: 'active-device' | 'dual-assertion';
|
|
111
122
|
readonly rollbackDeadline?: number;
|
|
112
|
-
readonly state:
|
|
123
|
+
readonly state: HostedSignalProtocolRelayIdentityMigrationState;
|
|
113
124
|
}
|
|
114
|
-
export interface
|
|
115
|
-
readonly action:
|
|
125
|
+
export interface HostedSignalProtocolRelayIdentityMigrationRequest {
|
|
126
|
+
readonly action: HostedSignalProtocolRelayIdentityMigrationAction;
|
|
116
127
|
readonly protocolEndpoint: string;
|
|
117
128
|
readonly publishableKey: string;
|
|
118
129
|
readonly operationId: string;
|
|
119
130
|
readonly manifestVersion?: number;
|
|
120
131
|
readonly authorization: {
|
|
121
132
|
readonly kind: 'active-device';
|
|
122
|
-
readonly deviceAuthentication:
|
|
133
|
+
readonly deviceAuthentication: HostedSignalProtocolRelayDeviceAuthentication;
|
|
123
134
|
} | {
|
|
124
135
|
readonly kind: 'assertion';
|
|
125
136
|
readonly assertion: string;
|
|
126
137
|
};
|
|
127
138
|
readonly targetAssertion?: string;
|
|
128
139
|
}
|
|
129
|
-
export interface
|
|
140
|
+
export interface HostedSignalProtocolRelayManagedDeviceLinkRequest {
|
|
130
141
|
readonly protocolEndpoint: string;
|
|
131
142
|
readonly publishableKey: string;
|
|
132
143
|
readonly signalIdentity: CompositeIdentityV1;
|
|
133
144
|
readonly registrationId: number;
|
|
134
145
|
readonly operationId: string;
|
|
135
|
-
readonly registrationPreKeys:
|
|
136
|
-
readonly activeDeviceAuthentication:
|
|
137
|
-
readonly newDeviceAuthentication:
|
|
146
|
+
readonly registrationPreKeys: HostedSignalProtocolRelayRegistrationPreKeys;
|
|
147
|
+
readonly activeDeviceAuthentication: HostedSignalProtocolRelayDeviceAuthentication;
|
|
148
|
+
readonly newDeviceAuthentication: HostedSignalProtocolRelayDeviceAuthentication;
|
|
138
149
|
}
|
|
139
|
-
export interface
|
|
150
|
+
export interface HostedSignalProtocolRelayManagedDeviceLinkResult extends HostedSignalProtocolRelayBootstrapResult {
|
|
140
151
|
readonly accountPreserved: true;
|
|
141
152
|
readonly protocolStateCopied: false;
|
|
142
153
|
}
|
|
@@ -150,24 +161,29 @@ export interface HostedRelayManagedDeviceLinkResult extends HostedRelayBootstrap
|
|
|
150
161
|
* supplies would weaken the managed trust boundary. Self-hosted trust stays in
|
|
151
162
|
* its separate explicit configuration.
|
|
152
163
|
*/
|
|
153
|
-
export interface
|
|
154
|
-
bootstrap(request:
|
|
164
|
+
export interface HostedSignalProtocolRelayBootstrapAdapter {
|
|
165
|
+
bootstrap(request: HostedSignalProtocolRelayBootstrapRequest): Promise<HostedSignalProtocolRelayBootstrapResult>;
|
|
155
166
|
}
|
|
156
167
|
/** Transport boundary for the Signal Protocol Relay identity-migration state machine. */
|
|
157
|
-
export interface
|
|
158
|
-
migrate(request:
|
|
168
|
+
export interface HostedSignalProtocolRelayIdentityMigrationAdapter {
|
|
169
|
+
migrate(request: HostedSignalProtocolRelayIdentityMigrationRequest): Promise<HostedSignalProtocolRelayIdentityMigrationSnapshot>;
|
|
159
170
|
}
|
|
160
171
|
/** Transport boundary for canonical managed device linking. */
|
|
161
|
-
export interface
|
|
162
|
-
linkDevice(request:
|
|
172
|
+
export interface HostedSignalProtocolRelayManagedDeviceLinkAdapter extends HostedSignalProtocolRelayBootstrapAdapter {
|
|
173
|
+
linkDevice(request: HostedSignalProtocolRelayManagedDeviceLinkRequest): Promise<HostedSignalProtocolRelayManagedDeviceLinkResult>;
|
|
163
174
|
}
|
|
164
175
|
/** Compact, runtime-neutral Signal Protocol Relay client configuration. */
|
|
165
176
|
export interface HostedSignalProtocolClientOptions extends Omit<SignalProtocolClientCompositionOptions, 'adapters' | 'identity' | 'sealedSender' | 'groups'> {
|
|
166
177
|
readonly groups?: HostedGroupOptions;
|
|
167
|
-
readonly adapters: Omit<SignalProtocolClientCompositionOptions['adapters'], 'relay' | 'remoteObjectStore'>;
|
|
178
|
+
readonly adapters: Omit<SignalProtocolClientCompositionOptions['adapters'], 'relay' | 'signalProtocolRelay' | 'remoteObjectStore'>;
|
|
168
179
|
readonly hosted: {
|
|
169
|
-
/**
|
|
170
|
-
|
|
180
|
+
/**
|
|
181
|
+
* Public environment-scoped Signal Protocol Relay connection URL. Set this
|
|
182
|
+
* member or the deprecated `signalProtocolRelayUrl`.
|
|
183
|
+
*/
|
|
184
|
+
readonly relayUrl?: string;
|
|
185
|
+
/** @deprecated Use `relayUrl`. SDK 15.0.0 removes this name. */
|
|
186
|
+
readonly signalProtocolRelayUrl?: string;
|
|
171
187
|
readonly getIdentityAssertion: GetIdentityAssertion;
|
|
172
188
|
/**
|
|
173
189
|
* `register` (the default) resumes the stored session or registers a new
|
|
@@ -175,13 +191,13 @@ export interface HostedSignalProtocolClientOptions extends Omit<SignalProtocolCl
|
|
|
175
191
|
*
|
|
176
192
|
* `reregister` registers this device again with its stored identity and
|
|
177
193
|
* device key, and skips the stored session. Use it only after a
|
|
178
|
-
* `
|
|
194
|
+
* `HostedSignalProtocolRelayDeviceUnknownError` and after the user confirms it. It asks
|
|
179
195
|
* for a `register` assertion. The Relay can give a new device ID, so the
|
|
180
196
|
* messages queued for the old device are lost.
|
|
181
197
|
*/
|
|
182
198
|
readonly assertionPurpose?: Exclude<IdentityAssertionPurpose, 'refresh'> | 'reregister';
|
|
183
199
|
readonly assurance?: IdentityAssertionAssurance;
|
|
184
|
-
readonly onProgress?:
|
|
200
|
+
readonly onProgress?: HostedSignalProtocolRelayIdentityProgressCallback;
|
|
185
201
|
readonly sealedSenderAccessMode?: SealedSenderAccessMode;
|
|
186
202
|
/**
|
|
187
203
|
* Carries this account's profile key in each end-to-end encrypted 1:1
|
|
@@ -197,18 +213,23 @@ export interface HostedSignalProtocolClientOptions extends Omit<SignalProtocolCl
|
|
|
197
213
|
* key that it derives from this account's profile key, so a contact that
|
|
198
214
|
* holds the profile key can send sealed messages to this account.
|
|
199
215
|
*/
|
|
200
|
-
readonly profileKeys?:
|
|
216
|
+
readonly profileKeys?: HostedSignalProtocolRelayProfileKeys;
|
|
201
217
|
};
|
|
202
218
|
}
|
|
203
|
-
export interface
|
|
204
|
-
readonly action:
|
|
205
|
-
readonly adapter:
|
|
219
|
+
export interface HostedSignalProtocolRelayIdentityMigrationOptions {
|
|
220
|
+
readonly action: HostedSignalProtocolRelayIdentityMigrationAction;
|
|
221
|
+
readonly adapter: HostedSignalProtocolRelayIdentityMigrationAdapter;
|
|
206
222
|
readonly getIdentityAssertion: GetIdentityAssertion;
|
|
207
223
|
readonly manifestVersion?: number;
|
|
208
224
|
readonly operationId: string;
|
|
209
|
-
readonly onProgress?:
|
|
210
|
-
/**
|
|
211
|
-
|
|
225
|
+
readonly onProgress?: HostedSignalProtocolRelayIdentityProgressCallback;
|
|
226
|
+
/**
|
|
227
|
+
* Public environment-scoped Signal Protocol Relay connection URL. Set this
|
|
228
|
+
* member or the deprecated `signalProtocolRelayUrl`.
|
|
229
|
+
*/
|
|
230
|
+
readonly relayUrl?: string;
|
|
231
|
+
/** @deprecated Use `relayUrl`. SDK 15.0.0 removes this name. */
|
|
232
|
+
readonly signalProtocolRelayUrl?: string;
|
|
212
233
|
readonly authorization: {
|
|
213
234
|
readonly kind: 'active-device';
|
|
214
235
|
readonly storage: SignalProtocolLocalStore;
|
|
@@ -217,9 +238,9 @@ export interface HostedRelayIdentityMigrationOptions {
|
|
|
217
238
|
readonly providerRole: IdentityAssertionProviderRole;
|
|
218
239
|
};
|
|
219
240
|
}
|
|
220
|
-
export interface
|
|
241
|
+
export interface HostedSignalProtocolRelayManagedDeviceLinkOptions extends Omit<SignalProtocolClientCompositionOptions, 'adapters' | 'identity' | 'sealedSender' | 'groups'> {
|
|
221
242
|
readonly groups?: HostedGroupOptions;
|
|
222
|
-
readonly adapters: Omit<SignalProtocolClientCompositionOptions['adapters'], 'relay'>;
|
|
243
|
+
readonly adapters: Omit<SignalProtocolClientCompositionOptions['adapters'], 'relay' | 'signalProtocolRelay'>;
|
|
223
244
|
readonly activeDeviceStorage: SignalProtocolLocalStore;
|
|
224
245
|
/**
|
|
225
246
|
* The group store of the active device. The link copies the master key of
|
|
@@ -232,11 +253,16 @@ export interface HostedRelayManagedDeviceLinkOptions extends Omit<SignalProtocol
|
|
|
232
253
|
*/
|
|
233
254
|
readonly activeGroupStore?: GroupStateStore;
|
|
234
255
|
readonly hosted: {
|
|
235
|
-
/**
|
|
236
|
-
|
|
256
|
+
/**
|
|
257
|
+
* Public environment-scoped Signal Protocol Relay connection URL. Set this
|
|
258
|
+
* member or the deprecated `signalProtocolRelayUrl`.
|
|
259
|
+
*/
|
|
260
|
+
readonly relayUrl?: string;
|
|
261
|
+
/** @deprecated Use `relayUrl`. SDK 15.0.0 removes this name. */
|
|
262
|
+
readonly signalProtocolRelayUrl?: string;
|
|
237
263
|
/** Override the default authenticated device-link transport. */
|
|
238
|
-
readonly adapter?:
|
|
239
|
-
readonly onProgress?:
|
|
264
|
+
readonly adapter?: HostedSignalProtocolRelayManagedDeviceLinkAdapter;
|
|
265
|
+
readonly onProgress?: HostedSignalProtocolRelayIdentityProgressCallback;
|
|
240
266
|
readonly sealedSenderAccessMode?: SealedSenderAccessMode;
|
|
241
267
|
};
|
|
242
268
|
}
|
|
@@ -247,7 +273,7 @@ export interface HostedRelayManagedDeviceLinkOptions extends Omit<SignalProtocol
|
|
|
247
273
|
* callback used by hosted bootstrap. The transport owns device-token storage
|
|
248
274
|
* and the HTTP representation.
|
|
249
275
|
*/
|
|
250
|
-
export declare function
|
|
276
|
+
export declare function advanceHostedSignalProtocolRelayIdentityMigration(options: HostedSignalProtocolRelayIdentityMigrationOptions): Promise<HostedSignalProtocolRelayIdentityMigrationSnapshot>;
|
|
251
277
|
/**
|
|
252
278
|
* Bind a linked-device store to the Relay-authoritative account.
|
|
253
279
|
*
|
|
@@ -271,7 +297,7 @@ export declare function advanceHostedRelayIdentityMigration(options: HostedRelay
|
|
|
271
297
|
* earlier release wrote, and that the active device has not read since, is not
|
|
272
298
|
* listed and is not copied. Read each group once on the active device before
|
|
273
299
|
* the link to copy it. A linked group store that lists a group that the link
|
|
274
|
-
* did not write is refused with `
|
|
300
|
+
* did not write is refused with `HostedSignalProtocolRelayDeviceLinkError` before any write.
|
|
275
301
|
* The copied keys live in the linked device's group store. The SDK does not
|
|
276
302
|
* move them again. A later move of that store is the application's store move.
|
|
277
303
|
*
|
|
@@ -279,7 +305,7 @@ export declare function advanceHostedRelayIdentityMigration(options: HostedRelay
|
|
|
279
305
|
* linked store's identity records before it registers, and a held PNI record
|
|
280
306
|
* gets a separate one. A link that an earlier release began keeps its stored
|
|
281
307
|
* registration ID. A linked store that holds a device-authentication key with
|
|
282
|
-
* no registration of this link is refused with `
|
|
308
|
+
* no registration of this link is refused with `HostedSignalProtocolRelayDeviceLinkError`
|
|
283
309
|
* before any write.
|
|
284
310
|
*
|
|
285
311
|
* The linked store keeps the state of the link. Call again with the same
|
|
@@ -293,20 +319,20 @@ export declare function advanceHostedRelayIdentityMigration(options: HostedRelay
|
|
|
293
319
|
* identity records and the registration, so the next call sends the same
|
|
294
320
|
* registration ID. Every other error keeps the link state and the copied
|
|
295
321
|
* groups. A completed link is never rolled back. A custom
|
|
296
|
-
* adapter throws `
|
|
322
|
+
* adapter throws `HostedSignalProtocolRelayHttpError` with the Relay's `code` and
|
|
297
323
|
* `retryable` when the Relay refuses the link, so that the call can roll the
|
|
298
324
|
* link back.
|
|
299
325
|
*/
|
|
300
|
-
export declare function
|
|
326
|
+
export declare function linkHostedSignalProtocolRelayDevice(options: HostedSignalProtocolRelayManagedDeviceLinkOptions): Promise<DefaultSignalProtocolClient>;
|
|
301
327
|
/**
|
|
302
328
|
* Create a Signal Protocol Relay client without accepting a caller-supplied account or device ID.
|
|
303
329
|
*
|
|
304
330
|
* The Relay verifies the assertion and device proof, then returns the canonical
|
|
305
331
|
* account, registered device, scope, and authenticated transport used by the client.
|
|
306
332
|
*
|
|
307
|
-
* In a Sandbox environment, {@link
|
|
333
|
+
* In a Sandbox environment, {@link hostedSignalProtocolRelaySandboxIdentity} supplies the
|
|
308
334
|
* assertion. The Sandbox helper cannot serve Production. A Production project
|
|
309
|
-
* in device-owned identity mode uses {@link
|
|
335
|
+
* in device-owned identity mode uses {@link hostedSignalProtocolRelayDeviceOwnedIdentity}. A
|
|
310
336
|
* Production project in application-bound mode needs an application callback
|
|
311
337
|
* that returns an assertion from your backend. Recovery and provider migration
|
|
312
338
|
* need an identity provider that authenticates the user.
|
|
@@ -317,11 +343,51 @@ export declare function linkHostedRelayDevice(options: HostedRelayManagedDeviceL
|
|
|
317
343
|
* const client = await createHostedSignalProtocolClient({
|
|
318
344
|
* adapters: { storage },
|
|
319
345
|
* hosted: {
|
|
320
|
-
* getIdentityAssertion:
|
|
321
|
-
* relayUrl: process.env.OPEN_E2EE_RELAY_URL!,
|
|
346
|
+
* getIdentityAssertion: hostedSignalProtocolRelaySandboxIdentity(storage),
|
|
347
|
+
* relayUrl: process.env.OPEN_E2EE_SIGNAL_RELAY_URL ?? process.env.OPEN_E2EE_RELAY_URL!,
|
|
322
348
|
* },
|
|
323
349
|
* });
|
|
324
350
|
* ```
|
|
325
351
|
*/
|
|
326
352
|
export declare function createHostedSignalProtocolClient(options: HostedSignalProtocolClientOptions): Promise<DefaultSignalProtocolClient>;
|
|
353
|
+
/** @deprecated Use `advanceHostedSignalProtocolRelayIdentityMigration`. SDK 15.0.0 removes this name. */
|
|
354
|
+
export declare const advanceHostedRelayIdentityMigration: typeof advanceHostedSignalProtocolRelayIdentityMigration;
|
|
355
|
+
/** @deprecated Use `HostedSignalProtocolRelayBootstrapAdapter`. SDK 15.0.0 removes this name. */
|
|
356
|
+
export type HostedRelayBootstrapAdapter = HostedSignalProtocolRelayBootstrapAdapter;
|
|
357
|
+
/** @deprecated Use `HostedSignalProtocolRelayBootstrapRequest`. SDK 15.0.0 removes this name. */
|
|
358
|
+
export type HostedRelayBootstrapRequest = HostedSignalProtocolRelayBootstrapRequest;
|
|
359
|
+
/** @deprecated Use `HostedSignalProtocolRelayBootstrapResult`. SDK 15.0.0 removes this name. */
|
|
360
|
+
export type HostedRelayBootstrapResult = HostedSignalProtocolRelayBootstrapResult;
|
|
361
|
+
/** @deprecated Use `HostedSignalProtocolRelayDeviceAuthentication`. SDK 15.0.0 removes this name. */
|
|
362
|
+
export type HostedRelayDeviceAuthentication = HostedSignalProtocolRelayDeviceAuthentication;
|
|
363
|
+
/** @deprecated Use `HostedSignalProtocolRelayIdentityMigrationAction`. SDK 15.0.0 removes this name. */
|
|
364
|
+
export type HostedRelayIdentityMigrationAction = HostedSignalProtocolRelayIdentityMigrationAction;
|
|
365
|
+
/** @deprecated Use `HostedSignalProtocolRelayIdentityMigrationAdapter`. SDK 15.0.0 removes this name. */
|
|
366
|
+
export type HostedRelayIdentityMigrationAdapter = HostedSignalProtocolRelayIdentityMigrationAdapter;
|
|
367
|
+
/** @deprecated Use `HostedSignalProtocolRelayIdentityMigrationOptions`. SDK 15.0.0 removes this name. */
|
|
368
|
+
export type HostedRelayIdentityMigrationOptions = HostedSignalProtocolRelayIdentityMigrationOptions;
|
|
369
|
+
/** @deprecated Use `HostedSignalProtocolRelayIdentityMigrationRequest`. SDK 15.0.0 removes this name. */
|
|
370
|
+
export type HostedRelayIdentityMigrationRequest = HostedSignalProtocolRelayIdentityMigrationRequest;
|
|
371
|
+
/** @deprecated Use `HostedSignalProtocolRelayIdentityMigrationSnapshot`. SDK 15.0.0 removes this name. */
|
|
372
|
+
export type HostedRelayIdentityMigrationSnapshot = HostedSignalProtocolRelayIdentityMigrationSnapshot;
|
|
373
|
+
/** @deprecated Use `HostedSignalProtocolRelayIdentityMigrationState`. SDK 15.0.0 removes this name. */
|
|
374
|
+
export type HostedRelayIdentityMigrationState = HostedSignalProtocolRelayIdentityMigrationState;
|
|
375
|
+
/** @deprecated Use `HostedSignalProtocolRelayIdentityProgress`. SDK 15.0.0 removes this name. */
|
|
376
|
+
export type HostedRelayIdentityProgress = HostedSignalProtocolRelayIdentityProgress;
|
|
377
|
+
/** @deprecated Use `HostedSignalProtocolRelayIdentityProgressCallback`. SDK 15.0.0 removes this name. */
|
|
378
|
+
export type HostedRelayIdentityProgressCallback = HostedSignalProtocolRelayIdentityProgressCallback;
|
|
379
|
+
/** @deprecated Use `HostedSignalProtocolRelayManagedDeviceLinkAdapter`. SDK 15.0.0 removes this name. */
|
|
380
|
+
export type HostedRelayManagedDeviceLinkAdapter = HostedSignalProtocolRelayManagedDeviceLinkAdapter;
|
|
381
|
+
/** @deprecated Use `HostedSignalProtocolRelayManagedDeviceLinkOptions`. SDK 15.0.0 removes this name. */
|
|
382
|
+
export type HostedRelayManagedDeviceLinkOptions = HostedSignalProtocolRelayManagedDeviceLinkOptions;
|
|
383
|
+
/** @deprecated Use `HostedSignalProtocolRelayManagedDeviceLinkRequest`. SDK 15.0.0 removes this name. */
|
|
384
|
+
export type HostedRelayManagedDeviceLinkRequest = HostedSignalProtocolRelayManagedDeviceLinkRequest;
|
|
385
|
+
/** @deprecated Use `HostedSignalProtocolRelayManagedDeviceLinkResult`. SDK 15.0.0 removes this name. */
|
|
386
|
+
export type HostedRelayManagedDeviceLinkResult = HostedSignalProtocolRelayManagedDeviceLinkResult;
|
|
387
|
+
/** @deprecated Use `HostedSignalProtocolRelayRegistrationPreKey`. SDK 15.0.0 removes this name. */
|
|
388
|
+
export type HostedRelayRegistrationPreKey = HostedSignalProtocolRelayRegistrationPreKey;
|
|
389
|
+
/** @deprecated Use `HostedSignalProtocolRelayRegistrationPreKeys`. SDK 15.0.0 removes this name. */
|
|
390
|
+
export type HostedRelayRegistrationPreKeys = HostedSignalProtocolRelayRegistrationPreKeys;
|
|
391
|
+
/** @deprecated Use `linkHostedSignalProtocolRelayDevice`. SDK 15.0.0 removes this name. */
|
|
392
|
+
export declare const linkHostedRelayDevice: typeof linkHostedSignalProtocolRelayDevice;
|
|
327
393
|
//# sourceMappingURL=hosted.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hosted.d.ts","sourceRoot":"","sources":["../../client/hosted.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAazD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"hosted.d.ts","sourceRoot":"","sources":["../../client/hosted.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAazD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,KAAK,EAAE,wBAAwB,EAAU,MAAM,UAAU,CAAC;AAEjE,OAAO,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AAUvD,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,WAAW,CAAC;AAExE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAcvD,OAAO,EAIL,KAAK,oCAAoC,EAC1C,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAalE,OAAO,EACL,sCAAsC,EACtC,wBAAwB,EACxB,qCAAqC,EACrC,uBAAuB,EACvB,mCAAmC,EACnC,qBAAqB,GACtB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,sCAAsC,EACtC,wBAAwB,EACxB,iCAAiC,EACjC,mBAAmB,EACnB,qCAAqC,EACrC,uBAAuB,GACxB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,2CAA2C,EAC3C,6BAA6B,EAC7B,2CAA2C,EAC3C,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,wCAAwC,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAC5G,OAAO,EAAE,kCAAkC,EAAE,oBAAoB,EAAE,MAAM,qBA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