@open-e2ee/signal-protocol-sdk 0.1.0-alpha.6 → 0.1.0-alpha.8
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 +1 -1
- package/ARCHITECTURE.md +1 -1
- package/CHANGELOG.md +876 -3
- package/COMMERCIAL.md +56 -0
- package/README.md +13 -8
- package/SECURITY.md +15 -1
- package/client/README.md +1 -1
- package/dist/client/client.d.ts +32 -28
- package/dist/client/client.d.ts.map +1 -1
- package/dist/client/client.js +136 -80
- package/dist/client/client.js.map +1 -1
- package/dist/client/compose.d.ts +6 -1
- package/dist/client/compose.d.ts.map +1 -1
- package/dist/client/compose.js +2 -0
- package/dist/client/compose.js.map +1 -1
- package/dist/client/config.d.ts +53 -19
- package/dist/client/config.d.ts.map +1 -1
- package/dist/client/config.js.map +1 -1
- package/dist/client/endorsement-manager.d.ts +23 -2
- package/dist/client/endorsement-manager.d.ts.map +1 -1
- package/dist/client/endorsement-manager.js +35 -10
- package/dist/client/endorsement-manager.js.map +1 -1
- package/dist/client/groups.d.ts +29 -29
- package/dist/client/groups.d.ts.map +1 -1
- package/dist/client/groups.js +54 -37
- package/dist/client/groups.js.map +1 -1
- package/dist/client/headless.d.ts +1 -1
- package/dist/client/headless.js +1 -1
- package/dist/client/sealed-sender-ops.d.ts +27 -1
- package/dist/client/sealed-sender-ops.d.ts.map +1 -1
- package/dist/client/sealed-sender-ops.js +36 -6
- package/dist/client/sealed-sender-ops.js.map +1 -1
- package/dist/client/signal-service-cipher.d.ts +21 -2
- package/dist/client/signal-service-cipher.d.ts.map +1 -1
- package/dist/client/signal-service-cipher.js +119 -53
- package/dist/client/signal-service-cipher.js.map +1 -1
- package/dist/client/types.d.ts +20 -7
- package/dist/client/types.d.ts.map +1 -1
- package/dist/client/types.js.map +1 -1
- package/dist/groups/index.d.ts +4 -4
- package/dist/groups/index.d.ts.map +1 -1
- package/dist/groups/index.js +3 -3
- package/dist/groups/index.js.map +1 -1
- package/dist/index.d.ts +12 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -3
- package/dist/index.js.map +1 -1
- package/dist/internal/crypto/index.d.ts +1 -1
- package/dist/internal/crypto/index.d.ts.map +1 -1
- package/dist/internal/crypto/index.js +1 -1
- package/dist/internal/crypto/index.js.map +1 -1
- package/dist/internal/crypto/random.d.ts +9 -0
- package/dist/internal/crypto/random.d.ts.map +1 -1
- package/dist/internal/crypto/random.js +16 -0
- package/dist/internal/crypto/random.js.map +1 -1
- package/dist/internal/groups/access-control.d.ts +170 -0
- package/dist/internal/groups/access-control.d.ts.map +1 -0
- package/dist/internal/groups/access-control.js +284 -0
- package/dist/internal/groups/access-control.js.map +1 -0
- package/dist/internal/groups/change-actions.d.ts +57 -0
- package/dist/internal/groups/change-actions.d.ts.map +1 -0
- package/dist/internal/groups/change-actions.js +827 -0
- package/dist/internal/groups/change-actions.js.map +1 -0
- package/dist/internal/groups/change-authorization.d.ts +16 -0
- package/dist/internal/groups/change-authorization.d.ts.map +1 -0
- package/dist/internal/groups/change-authorization.js +120 -0
- package/dist/internal/groups/change-authorization.js.map +1 -0
- package/dist/internal/{groups-v2 → groups}/encrypted-state.d.ts +12 -2
- package/dist/internal/groups/encrypted-state.d.ts.map +1 -0
- package/dist/internal/{groups-v2 → groups}/encrypted-state.js +122 -22
- package/dist/internal/groups/encrypted-state.js.map +1 -0
- package/dist/internal/groups/group-id.d.ts +9 -9
- package/dist/internal/groups/group-id.d.ts.map +1 -1
- package/dist/internal/groups/group-id.js +11 -12
- package/dist/internal/groups/group-id.js.map +1 -1
- package/dist/internal/groups/index.d.ts +16 -6
- package/dist/internal/groups/index.d.ts.map +1 -1
- package/dist/internal/groups/index.js +9 -1
- package/dist/internal/groups/index.js.map +1 -1
- package/dist/internal/groups/invite-link.d.ts.map +1 -0
- package/dist/internal/groups/invite-link.js.map +1 -0
- package/dist/internal/{groups-v2 → groups}/manager.d.ts +188 -40
- package/dist/internal/groups/manager.d.ts.map +1 -0
- package/dist/internal/groups/manager.js +1923 -0
- package/dist/internal/groups/manager.js.map +1 -0
- package/dist/internal/groups/sdk-store.d.ts +32 -0
- package/dist/internal/groups/sdk-store.d.ts.map +1 -0
- package/dist/internal/groups/sdk-store.js +111 -0
- package/dist/internal/groups/sdk-store.js.map +1 -0
- package/dist/internal/groups/server-engine.d.ts +83 -0
- package/dist/internal/groups/server-engine.d.ts.map +1 -0
- package/dist/internal/groups/server-engine.js +1186 -0
- package/dist/internal/groups/server-engine.js.map +1 -0
- package/dist/internal/groups/trust-root.d.ts +32 -0
- package/dist/internal/groups/trust-root.d.ts.map +1 -0
- package/dist/internal/groups/trust-root.js +91 -0
- package/dist/internal/groups/trust-root.js.map +1 -0
- package/dist/internal/{groups-v2 → groups}/types.d.ts +188 -46
- package/dist/internal/groups/types.d.ts.map +1 -0
- package/dist/internal/{groups-v2 → groups}/types.js +3 -2
- package/dist/internal/groups/types.js.map +1 -0
- package/dist/internal/groups/wire.d.ts +68 -0
- package/dist/internal/groups/wire.d.ts.map +1 -0
- package/dist/internal/groups/wire.js +708 -0
- package/dist/internal/groups/wire.js.map +1 -0
- package/dist/internal/protocol/sealed-sender/decryption-v2.d.ts.map +1 -1
- package/dist/internal/protocol/sealed-sender/decryption-v2.js +32 -18
- package/dist/internal/protocol/sealed-sender/decryption-v2.js.map +1 -1
- package/dist/internal/protocol/sealed-sender/decryption.d.ts.map +1 -1
- package/dist/internal/protocol/sealed-sender/decryption.js +33 -19
- package/dist/internal/protocol/sealed-sender/decryption.js.map +1 -1
- package/dist/internal/protocol/sealed-sender/encryption-v2.d.ts.map +1 -1
- package/dist/internal/protocol/sealed-sender/encryption-v2.js +8 -14
- package/dist/internal/protocol/sealed-sender/encryption-v2.js.map +1 -1
- package/dist/internal/protocol/sealed-sender/encryption.d.ts +9 -4
- package/dist/internal/protocol/sealed-sender/encryption.d.ts.map +1 -1
- package/dist/internal/protocol/sealed-sender/encryption.js +7 -15
- package/dist/internal/protocol/sealed-sender/encryption.js.map +1 -1
- package/dist/internal/protocol/sealed-sender/proto/index.d.ts +6 -7
- package/dist/internal/protocol/sealed-sender/proto/index.d.ts.map +1 -1
- package/dist/internal/protocol/sealed-sender/proto/index.js +5 -7
- package/dist/internal/protocol/sealed-sender/proto/index.js.map +1 -1
- package/dist/internal/protocol/sealed-sender/trust-root.d.ts +45 -0
- package/dist/internal/protocol/sealed-sender/trust-root.d.ts.map +1 -0
- package/dist/internal/protocol/sealed-sender/trust-root.js +77 -0
- package/dist/internal/protocol/sealed-sender/trust-root.js.map +1 -0
- package/dist/internal/protocol/sealed-sender/types.d.ts +64 -9
- package/dist/internal/protocol/sealed-sender/types.d.ts.map +1 -1
- package/dist/internal/protocol/sealed-sender/types.js +43 -0
- package/dist/internal/protocol/sealed-sender/types.js.map +1 -1
- package/dist/internal/protocol/sender-keys/index.d.ts +1 -1
- package/dist/internal/protocol/sender-keys/manager.d.ts +38 -1
- package/dist/internal/protocol/sender-keys/manager.d.ts.map +1 -1
- package/dist/internal/protocol/sender-keys/manager.js +109 -8
- package/dist/internal/protocol/sender-keys/manager.js.map +1 -1
- package/dist/internal/protocol/zk/groups/auth-credential.d.ts +9 -7
- package/dist/internal/protocol/zk/groups/auth-credential.d.ts.map +1 -1
- package/dist/internal/protocol/zk/groups/auth-credential.js +68 -29
- package/dist/internal/protocol/zk/groups/auth-credential.js.map +1 -1
- package/dist/internal/protocol/zk/groups/server-params.d.ts +1 -1
- package/dist/internal/protocol/zk/groups/server-params.d.ts.map +1 -1
- package/dist/internal/protocol/zk/groups/server-params.js.map +1 -1
- package/dist/internal/protocol/zk/groups/uid-struct.d.ts +2 -0
- package/dist/internal/protocol/zk/groups/uid-struct.d.ts.map +1 -1
- package/dist/internal/protocol/zk/groups/uid-struct.js +4 -0
- package/dist/internal/protocol/zk/groups/uid-struct.js.map +1 -1
- package/dist/layers.d.ts +1 -1
- package/dist/layers.js +3 -3
- package/dist/layers.js.map +1 -1
- package/dist/local/store/expo/adapter.d.ts +14 -15
- package/dist/local/store/expo/adapter.d.ts.map +1 -1
- package/dist/local/store/expo/adapter.js +109 -102
- package/dist/local/store/expo/adapter.js.map +1 -1
- package/dist/local/store/expo/db.d.ts +4 -1
- package/dist/local/store/expo/db.d.ts.map +1 -1
- package/dist/local/store/expo/db.js +5 -0
- package/dist/local/store/expo/db.js.map +1 -1
- package/dist/local/store/expo/index.d.ts +0 -2
- package/dist/local/store/expo/index.d.ts.map +1 -1
- package/dist/local/store/expo/index.js +1 -1
- package/dist/local/store/expo/index.js.map +1 -1
- package/dist/local/store/expo/models/index.d.ts +1 -1
- package/dist/local/store/expo/models/index.d.ts.map +1 -1
- package/dist/local/store/expo/models/index.js +2 -2
- package/dist/local/store/expo/models/index.js.map +1 -1
- package/dist/local/store/expo/models/sender-key.d.ts +101 -77
- package/dist/local/store/expo/models/sender-key.d.ts.map +1 -1
- package/dist/local/store/expo/models/sender-key.js +154 -124
- package/dist/local/store/expo/models/sender-key.js.map +1 -1
- package/dist/local/store/expo/schema.d.ts +134 -32
- package/dist/local/store/expo/schema.d.ts.map +1 -1
- package/dist/local/store/expo/schema.js +36 -7
- package/dist/local/store/expo/schema.js.map +1 -1
- package/dist/local/store/mock/adapter.d.ts +1 -0
- package/dist/local/store/mock/adapter.d.ts.map +1 -1
- package/dist/local/store/mock/adapter.js +18 -0
- package/dist/local/store/mock/adapter.js.map +1 -1
- package/dist/local/store/react-native/adapter.d.ts +39 -0
- package/dist/local/store/react-native/adapter.d.ts.map +1 -1
- package/dist/local/store/react-native/adapter.js +163 -8
- package/dist/local/store/react-native/adapter.js.map +1 -1
- package/dist/local/store/web/adapter.d.ts +1 -0
- package/dist/local/store/web/adapter.d.ts.map +1 -1
- package/dist/local/store/web/adapter.js +33 -1
- package/dist/local/store/web/adapter.js.map +1 -1
- package/dist/remote/relay/convex/backend.d.ts +402 -0
- package/dist/remote/relay/convex/backend.d.ts.map +1 -0
- package/dist/remote/relay/convex/backend.js +684 -0
- package/dist/remote/relay/convex/backend.js.map +1 -0
- package/dist/remote/relay/convex/component/_generated/api.d.ts +58 -0
- package/dist/remote/relay/convex/component/_generated/api.d.ts.map +1 -0
- package/dist/remote/relay/convex/component/_generated/api.js +31 -0
- package/dist/remote/relay/convex/component/_generated/api.js.map +1 -0
- package/dist/remote/relay/convex/component/_generated/component.d.ts +480 -0
- package/dist/remote/relay/convex/component/_generated/component.d.ts.map +1 -0
- package/dist/remote/relay/convex/component/_generated/component.js +11 -0
- package/dist/remote/relay/convex/component/_generated/component.js.map +1 -0
- package/dist/remote/relay/convex/component/_generated/dataModel.d.ts +46 -0
- package/dist/remote/relay/convex/component/_generated/dataModel.d.ts.map +1 -0
- package/dist/remote/relay/convex/component/_generated/dataModel.js +11 -0
- package/dist/remote/relay/convex/component/_generated/dataModel.js.map +1 -0
- package/dist/remote/relay/convex/component/_generated/server.d.ts +129 -0
- package/dist/remote/relay/convex/component/_generated/server.d.ts.map +1 -0
- package/dist/remote/relay/convex/component/_generated/server.js +79 -0
- package/dist/remote/relay/convex/component/_generated/server.js.map +1 -0
- package/dist/remote/relay/convex/component/accounts.d.ts +43 -0
- package/dist/remote/relay/convex/component/accounts.d.ts.map +1 -0
- package/dist/remote/relay/convex/component/accounts.js +181 -0
- package/dist/remote/relay/convex/component/accounts.js.map +1 -0
- package/dist/remote/relay/convex/component/certificates.d.ts +10 -0
- package/dist/remote/relay/convex/component/certificates.d.ts.map +1 -0
- package/dist/remote/relay/convex/component/certificates.js +122 -0
- package/dist/remote/relay/convex/component/certificates.js.map +1 -0
- package/dist/remote/relay/convex/component/cleanup.d.ts +26 -0
- package/dist/remote/relay/convex/component/cleanup.d.ts.map +1 -0
- package/dist/remote/relay/convex/component/cleanup.js +127 -0
- package/dist/remote/relay/convex/component/cleanup.js.map +1 -0
- package/dist/remote/relay/convex/component/convex.config.d.ts +5 -0
- package/dist/remote/relay/convex/component/convex.config.d.ts.map +1 -0
- package/dist/remote/relay/convex/component/convex.config.js +33 -0
- package/dist/remote/relay/convex/component/convex.config.js.map +1 -0
- package/dist/remote/relay/convex/component/crons.d.ts +3 -0
- package/dist/remote/relay/convex/component/crons.d.ts.map +1 -0
- package/dist/remote/relay/convex/component/crons.js +9 -0
- package/dist/remote/relay/convex/component/crons.js.map +1 -0
- package/dist/remote/relay/convex/component/devices.d.ts +101 -0
- package/dist/remote/relay/convex/component/devices.d.ts.map +1 -0
- package/dist/remote/relay/convex/component/devices.js +299 -0
- package/dist/remote/relay/convex/component/devices.js.map +1 -0
- package/dist/remote/relay/convex/component/errors.d.ts +22 -0
- package/dist/remote/relay/convex/component/errors.d.ts.map +1 -0
- package/dist/remote/relay/convex/component/errors.js +17 -0
- package/dist/remote/relay/convex/component/errors.js.map +1 -0
- package/dist/remote/relay/convex/component/groups.d.ts +60 -0
- package/dist/remote/relay/convex/component/groups.d.ts.map +1 -0
- package/dist/remote/relay/convex/component/groups.js +331 -0
- package/dist/remote/relay/convex/component/groups.js.map +1 -0
- package/dist/remote/relay/convex/component/keys.d.ts +130 -0
- package/dist/remote/relay/convex/component/keys.d.ts.map +1 -0
- package/dist/remote/relay/convex/component/keys.js +578 -0
- package/dist/remote/relay/convex/component/keys.js.map +1 -0
- package/dist/remote/relay/convex/component/messages.d.ts +119 -0
- package/dist/remote/relay/convex/component/messages.d.ts.map +1 -0
- package/dist/remote/relay/convex/component/messages.js +649 -0
- package/dist/remote/relay/convex/component/messages.js.map +1 -0
- package/dist/remote/relay/convex/component/provisioning.d.ts +92 -0
- package/dist/remote/relay/convex/component/provisioning.d.ts.map +1 -0
- package/dist/remote/relay/convex/component/provisioning.js +359 -0
- package/dist/remote/relay/convex/component/provisioning.js.map +1 -0
- package/dist/remote/relay/convex/component/runtime.d.ts +18 -0
- package/dist/remote/relay/convex/component/runtime.d.ts.map +1 -0
- package/dist/remote/relay/convex/component/runtime.js +142 -0
- package/dist/remote/relay/convex/component/runtime.js.map +1 -0
- package/dist/remote/relay/convex/component/schema.d.ts +344 -0
- package/dist/remote/relay/convex/component/schema.d.ts.map +1 -0
- package/dist/remote/relay/convex/component/schema.js +266 -0
- package/dist/remote/relay/convex/component/schema.js.map +1 -0
- package/dist/remote/relay/convex/component/zkAuth.d.ts +12 -0
- package/dist/remote/relay/convex/component/zkAuth.d.ts.map +1 -0
- package/dist/remote/relay/convex/component/zkAuth.js +71 -0
- package/dist/remote/relay/convex/component/zkAuth.js.map +1 -0
- package/dist/remote/relay/convex/constants.d.ts +3 -0
- package/dist/remote/relay/convex/constants.d.ts.map +1 -0
- package/dist/remote/relay/convex/constants.js +3 -0
- package/dist/remote/relay/convex/constants.js.map +1 -0
- package/dist/remote/relay/convex/group-server.d.ts +25 -21
- package/dist/remote/relay/convex/group-server.d.ts.map +1 -1
- package/dist/remote/relay/convex/group-server.js +51 -21
- package/dist/remote/relay/convex/group-server.js.map +1 -1
- package/dist/remote/relay/convex/index.d.ts +4 -1
- package/dist/remote/relay/convex/index.d.ts.map +1 -1
- package/dist/remote/relay/convex/index.js +3 -1
- package/dist/remote/relay/convex/index.js.map +1 -1
- package/dist/remote/relay/convex/relay.d.ts +54 -67
- package/dist/remote/relay/convex/relay.d.ts.map +1 -1
- package/dist/remote/relay/convex/relay.js +123 -42
- package/dist/remote/relay/convex/relay.js.map +1 -1
- package/dist/remote/relay/convex/types.d.ts +16 -103
- package/dist/remote/relay/convex/types.d.ts.map +1 -1
- package/dist/remote/relay/convex/types.js +8 -13
- package/dist/remote/relay/convex/types.js.map +1 -1
- package/dist/remote/relay/index.d.ts +1 -1
- package/dist/remote/relay/index.d.ts.map +1 -1
- package/dist/remote/relay/mock/adapter.d.ts +33 -20
- package/dist/remote/relay/mock/adapter.d.ts.map +1 -1
- package/dist/remote/relay/mock/adapter.js +98 -81
- package/dist/remote/relay/mock/adapter.js.map +1 -1
- package/dist/remote/relay/mock/group-server.d.ts +9 -0
- package/dist/remote/relay/mock/group-server.d.ts.map +1 -0
- package/dist/remote/relay/mock/group-server.js +9 -0
- package/dist/remote/relay/mock/group-server.js.map +1 -0
- package/dist/remote/relay/types.d.ts +73 -79
- package/dist/remote/relay/types.d.ts.map +1 -1
- package/dist/remote/relay/types.js +0 -1
- package/dist/remote/relay/types.js.map +1 -1
- package/dist/types/api.d.ts +23 -2
- package/dist/types/api.d.ts.map +1 -1
- package/dist/types/protocol-config.d.ts +51 -0
- package/dist/types/protocol-config.d.ts.map +1 -1
- package/dist/types/protocol-config.js +46 -0
- package/dist/types/protocol-config.js.map +1 -1
- package/docs/ASSURANCE.md +10 -6
- package/docs/CLIENT_COMPOSITION.md +23 -69
- package/docs/DEVIATIONS.md +77 -41
- package/docs/E2EE.md +71 -6
- package/docs/GETTING_STARTED.md +1 -1
- package/docs/PACKAGE_SURFACE.md +6 -0
- package/docs/RECIPES.md +1 -1
- package/docs/SECURITY.md +8 -0
- package/groups/README.md +16 -5
- package/local/store/expo/README.md +10 -1
- package/local/store/node/README.md +10 -1
- package/package.json +20 -4
- package/remote/relay/convex/README.md +6 -0
- package/remote/relay/convex/component/README.md +428 -0
- package/scripts/oe-groups.mjs +162 -0
- package/dist/internal/groups-v2/access-control.d.ts +0 -108
- package/dist/internal/groups-v2/access-control.d.ts.map +0 -1
- package/dist/internal/groups-v2/access-control.js +0 -191
- package/dist/internal/groups-v2/access-control.js.map +0 -1
- package/dist/internal/groups-v2/change-actions.d.ts +0 -40
- package/dist/internal/groups-v2/change-actions.d.ts.map +0 -1
- package/dist/internal/groups-v2/change-actions.js +0 -363
- package/dist/internal/groups-v2/change-actions.js.map +0 -1
- package/dist/internal/groups-v2/encrypted-state.d.ts.map +0 -1
- package/dist/internal/groups-v2/encrypted-state.js.map +0 -1
- package/dist/internal/groups-v2/index.d.ts +0 -19
- package/dist/internal/groups-v2/index.d.ts.map +0 -1
- package/dist/internal/groups-v2/index.js +0 -11
- package/dist/internal/groups-v2/index.js.map +0 -1
- package/dist/internal/groups-v2/invite-link.d.ts.map +0 -1
- package/dist/internal/groups-v2/invite-link.js.map +0 -1
- package/dist/internal/groups-v2/manager.d.ts.map +0 -1
- package/dist/internal/groups-v2/manager.js +0 -1095
- package/dist/internal/groups-v2/manager.js.map +0 -1
- package/dist/internal/groups-v2/types.d.ts.map +0 -1
- package/dist/internal/groups-v2/types.js.map +0 -1
- package/docs/api/README.md +0 -471
- package/docs/api/classes/EncryptionError.md +0 -112
- package/docs/api/classes/EndorsementManager.md +0 -307
- package/docs/api/classes/SealedSenderAuthError.md +0 -127
- package/docs/api/classes/ServerDerivedKeyPair.md +0 -68
- package/docs/api/classes/ServerDerivedPublicKey.md +0 -33
- package/docs/api/classes/ServerRootKeyPair.md +0 -94
- package/docs/api/classes/ServerRootPublicKey.md +0 -72
- package/docs/api/classes/SignalProtocolBlockingManager.md +0 -106
- package/docs/api/classes/SignalProtocolClient.md +0 -2654
- package/docs/api/classes/VerificationFailure.md +0 -25
- package/docs/api/enumerations/ContentHint.md +0 -63
- package/docs/api/enumerations/EncryptionErrorCode.md +0 -488
- package/docs/api/enumerations/IdentityKeyChange.md +0 -65
- package/docs/api/enumerations/MessageType.md +0 -29
- package/docs/api/enumerations/TrustDirection.md +0 -33
- package/docs/api/enumerations/TypingAction.md +0 -31
- package/docs/api/functions/createDefaultSignalProtocolContentAdapter.md +0 -13
- package/docs/api/functions/createDefaultSignalProtocolLogger.md +0 -36
- package/docs/api/functions/createGroupId.md +0 -32
- package/docs/api/functions/createSignalProtocolClient.md +0 -36
- package/docs/api/functions/createSignalProtocolClientConfig.md +0 -24
- package/docs/api/functions/extractGroupId.md +0 -32
- package/docs/api/functions/formatVersion.md +0 -25
- package/docs/api/functions/isCompatible.md +0 -31
- package/docs/api/functions/isGroupId.md +0 -37
- package/docs/api/functions/isSealedSenderAuthError.md +0 -25
- package/docs/api/functions/parseVersion.md +0 -29
- package/docs/api/functions/resolveSPQRLimits.md +0 -21
- package/docs/api/functions/resolveSignalProtocolLogger.md +0 -42
- package/docs/api/interfaces/AccountIdentityProvisioning.md +0 -43
- package/docs/api/interfaces/AccountIdentityRotation.md +0 -69
- package/docs/api/interfaces/AttachmentTransferOptions.md +0 -49
- package/docs/api/interfaces/BlockedRecipientEntry.md +0 -25
- package/docs/api/interfaces/BlockedRecipientsSyncInput.md +0 -27
- package/docs/api/interfaces/ConfigurationSyncInput.md +0 -19
- package/docs/api/interfaces/CredentialPublicKey.md +0 -25
- package/docs/api/interfaces/DataMessageInput.md +0 -21
- package/docs/api/interfaces/DecryptedEnvelope.md +0 -95
- package/docs/api/interfaces/DecryptedGroup.md +0 -86
- package/docs/api/interfaces/DeviceInfo.md +0 -79
- package/docs/api/interfaces/DeviceRecord.md +0 -87
- package/docs/api/interfaces/DeviceRegistration.md +0 -27
- package/docs/api/interfaces/DoubleRatchetConfig.md +0 -36
- package/docs/api/interfaces/EcOneTimePreKey.md +0 -27
- package/docs/api/interfaces/EcSignedPreKey.md +0 -39
- package/docs/api/interfaces/EcSignedPreKeyUpload.md +0 -50
- package/docs/api/interfaces/EncryptionErrorContext.md +0 -51
- package/docs/api/interfaces/Envelope.md +0 -154
- package/docs/api/interfaces/ForceKeyResetResult.md +0 -37
- package/docs/api/interfaces/GroupAuthorization.md +0 -23
- package/docs/api/interfaces/GroupChangeEntry.md +0 -42
- package/docs/api/interfaces/GroupMemberDevice.md +0 -26
- package/docs/api/interfaces/IEcOneTimePreKeyStore.md +0 -86
- package/docs/api/interfaces/IEcSignedPreKeyStore.md +0 -133
- package/docs/api/interfaces/IGroupServer.md +0 -120
- package/docs/api/interfaces/IGroupStateStore.md +0 -128
- package/docs/api/interfaces/IIdentityKeyStore.md +0 -312
- package/docs/api/interfaces/IKemPreKeyStore.md +0 -144
- package/docs/api/interfaces/IKyberLastResortPreKeyStore.md +0 -112
- package/docs/api/interfaces/ILogger.md +0 -117
- package/docs/api/interfaces/IProtocolStore.md +0 -1033
- package/docs/api/interfaces/ISenderKeyStore.md +0 -417
- package/docs/api/interfaces/ISesameStore.md +0 -249
- package/docs/api/interfaces/ISessionStore.md +0 -178
- package/docs/api/interfaces/ISignalProtocolClient.md +0 -1185
- package/docs/api/interfaces/ISignalProtocolLocalSecretVault.md +0 -71
- package/docs/api/interfaces/ISignalProtocolLocalStore.md +0 -2053
- package/docs/api/interfaces/ISignalProtocolManager.md +0 -272
- package/docs/api/interfaces/ISignalProtocolRelayServer.md +0 -1329
- package/docs/api/interfaces/IdentityKeyPair.md +0 -49
- package/docs/api/interfaces/IncomingEnvelope.md +0 -91
- package/docs/api/interfaces/InspectedSignalProtocolContent.md +0 -43
- package/docs/api/interfaces/KDFChain.md +0 -31
- package/docs/api/interfaces/KemLastResortPreKeyUpload.md +0 -50
- package/docs/api/interfaces/KeyPair.md +0 -23
- package/docs/api/interfaces/KyberPreKey.md +0 -42
- package/docs/api/interfaces/MLKEMBraidAgentState.md +0 -191
- package/docs/api/interfaces/MLKEMBraidMessage.md +0 -49
- package/docs/api/interfaces/MediaAttachmentDeleteSyncInput.md +0 -31
- package/docs/api/interfaces/MessageHeader.md +0 -49
- package/docs/api/interfaces/MessageRecord.md +0 -86
- package/docs/api/interfaces/ParsedReceiptContent.md +0 -19
- package/docs/api/interfaces/ParsedTypingContent.md +0 -19
- package/docs/api/interfaces/PreKeyMaintenanceStore.md +0 -88
- package/docs/api/interfaces/PreKeyMessage.md +0 -159
- package/docs/api/interfaces/PreKeyStatusResult.md +0 -21
- package/docs/api/interfaces/PreKeyUpload.md +0 -42
- package/docs/api/interfaces/ProcessEnvelopeOptions.md +0 -72
- package/docs/api/interfaces/ProtocolAddress.md +0 -38
- package/docs/api/interfaces/ProtocolStrategyConfig.md +0 -91
- package/docs/api/interfaces/RatchetMessage.md +0 -96
- package/docs/api/interfaces/ReadSyncEntryInput.md +0 -19
- package/docs/api/interfaces/ReceiverChain.md +0 -43
- package/docs/api/interfaces/RecipientUsernameSyncInput.md +0 -31
- package/docs/api/interfaces/RelayPreKeyBundle.md +0 -254
- package/docs/api/interfaces/RemoteObjectDownload.md +0 -33
- package/docs/api/interfaces/RemoteObjectUpload.md +0 -49
- package/docs/api/interfaces/ResolvedSPQRInfoStrings.md +0 -27
- package/docs/api/interfaces/ResolvedSPQRLimits.md +0 -37
- package/docs/api/interfaces/RetryRequest.md +0 -80
- package/docs/api/interfaces/SCKAState.md +0 -65
- package/docs/api/interfaces/SPQRLimits.md +0 -40
- package/docs/api/interfaces/SPQRState.md +0 -191
- package/docs/api/interfaces/SafetyNumber.md +0 -60
- package/docs/api/interfaces/SafetyNumberConfirmation.md +0 -46
- package/docs/api/interfaces/SealedSenderConfig.md +0 -70
- package/docs/api/interfaces/SendOptions.md +0 -191
- package/docs/api/interfaces/SendResult.md +0 -93
- package/docs/api/interfaces/SenderKeyDistributionMessage.md +0 -43
- package/docs/api/interfaces/SenderKeyState.md +0 -76
- package/docs/api/interfaces/SenderKeysConfig.md +0 -65
- package/docs/api/interfaces/SentSyncTranscriptInput.md +0 -31
- package/docs/api/interfaces/ServiceId.md +0 -19
- package/docs/api/interfaces/SesameMessage.md +0 -84
- package/docs/api/interfaces/SesameStats.md +0 -57
- package/docs/api/interfaces/SessionHealthResult.md +0 -120
- package/docs/api/interfaces/SessionRecord.md +0 -80
- package/docs/api/interfaces/SessionRecordMetadata.md +0 -109
- package/docs/api/interfaces/SessionState.md +0 -368
- package/docs/api/interfaces/SessionTrustCommit.md +0 -58
- package/docs/api/interfaces/SignalProtocolBlockingHooks.md +0 -44
- package/docs/api/interfaces/SignalProtocolBlockingManagerOptions.md +0 -31
- package/docs/api/interfaces/SignalProtocolBlockingMirror.md +0 -30
- package/docs/api/interfaces/SignalProtocolBlockingStore.md +0 -83
- package/docs/api/interfaces/SignalProtocolClientAdapterConfig.md +0 -44
- package/docs/api/interfaces/SignalProtocolClientCompositionOptions.md +0 -693
- package/docs/api/interfaces/SignalProtocolClientConfig.md +0 -839
- package/docs/api/interfaces/SignalProtocolClientDeleteLocalAttachmentInput.md +0 -25
- package/docs/api/interfaces/SignalProtocolClientHooks.md +0 -506
- package/docs/api/interfaces/SignalProtocolClientIdentityConfig.md +0 -35
- package/docs/api/interfaces/SignalProtocolClientLoadLocalAttachmentInput.md +0 -187
- package/docs/api/interfaces/SignalProtocolClientLoadedLocalAttachment.md +0 -19
- package/docs/api/interfaces/SignalProtocolClientMedia.md +0 -83
- package/docs/api/interfaces/SignalProtocolClientMediaCompletedResult.md +0 -25
- package/docs/api/interfaces/SignalProtocolClientMediaConfig.md +0 -157
- package/docs/api/interfaces/SignalProtocolClientMediaDownloadCompletedResult.md +0 -37
- package/docs/api/interfaces/SignalProtocolClientMediaDownloadNotNeededResult.md +0 -25
- package/docs/api/interfaces/SignalProtocolClientMediaFailedResult.md +0 -19
- package/docs/api/interfaces/SignalProtocolClientMediaOperationOptions.md +0 -53
- package/docs/api/interfaces/SignalProtocolClientMediaPendingResult.md +0 -19
- package/docs/api/interfaces/SignalProtocolClientMediaProcessResult.md +0 -43
- package/docs/api/interfaces/SignalProtocolClientMediaSkippedResult.md +0 -25
- package/docs/api/interfaces/SignalProtocolClientMediaUploadCompletedResult.md +0 -31
- package/docs/api/interfaces/SignalProtocolClientProcessPendingMediaOptions.md +0 -87
- package/docs/api/interfaces/SignalProtocolClientSaveDownloadedAttachmentInput.md +0 -25
- package/docs/api/interfaces/SignalProtocolClientSaveUploadedAttachmentInput.md +0 -25
- package/docs/api/interfaces/SignalProtocolClientSyncDeleteInput.md +0 -19
- package/docs/api/interfaces/SignalProtocolConfig.md +0 -50
- package/docs/api/interfaces/SignalProtocolContentAdapter.md +0 -325
- package/docs/api/interfaces/SignalProtocolRemoteObjectStore.md +0 -88
- package/docs/api/interfaces/SkippedSenderMessageKey.md +0 -26
- package/docs/api/interfaces/TaskNotificationAckSyncInput.md +0 -31
- package/docs/api/interfaces/TripleRatchetState.md +0 -64
- package/docs/api/interfaces/UserRecord.md +0 -71
- package/docs/api/interfaces/UsernameStateSyncInput.md +0 -19
- package/docs/api/interfaces/VerificationStateSyncInput.md +0 -31
- package/docs/api/interfaces/VersionNegotiationState.md +0 -84
- package/docs/api/interfaces/ViewOnceOpenSyncInput.md +0 -19
- package/docs/api/namespaces/ProtocolAddress/README.md +0 -33
- package/docs/api/namespaces/ProtocolAddress/functions/create.md +0 -41
- package/docs/api/namespaces/ProtocolAddress/functions/equals.md +0 -39
- package/docs/api/namespaces/ProtocolAddress/functions/fromStorageKey.md +0 -36
- package/docs/api/namespaces/ProtocolAddress/functions/isUser.md +0 -39
- package/docs/api/namespaces/ProtocolAddress/functions/isValid.md +0 -34
- package/docs/api/namespaces/ProtocolAddress/functions/parse.md +0 -41
- package/docs/api/namespaces/ProtocolAddress/functions/toStorageKey.md +0 -38
- package/docs/api/namespaces/ProtocolAddress/functions/toString.md +0 -34
- package/docs/api/namespaces/SessionRecord/README.md +0 -30
- package/docs/api/namespaces/SessionRecord/functions/archiveCurrent.md +0 -40
- package/docs/api/namespaces/SessionRecord/functions/archiveCurrentState.md +0 -34
- package/docs/api/namespaces/SessionRecord/functions/create.md +0 -25
- package/docs/api/namespaces/SessionRecord/functions/deserialize.md +0 -29
- package/docs/api/namespaces/SessionRecord/functions/findSession.md +0 -34
- package/docs/api/namespaces/SessionRecord/functions/getAllSessions.md +0 -25
- package/docs/api/namespaces/SessionRecord/functions/getArchivedCount.md +0 -25
- package/docs/api/namespaces/SessionRecord/functions/hasCurrentSession.md +0 -25
- package/docs/api/namespaces/SessionRecord/functions/hasUsableSenderChain.md +0 -36
- package/docs/api/namespaces/SessionRecord/functions/promoteSession.md +0 -34
- package/docs/api/namespaces/SessionRecord/functions/serialize.md +0 -28
- package/docs/api/namespaces/SessionRecord/variables/MAX_ARCHIVED_SESSIONS.md +0 -14
- package/docs/api/namespaces/SessionState/README.md +0 -15
- package/docs/api/namespaces/SessionState/functions/getSessionId.md +0 -32
- package/docs/api/namespaces/blocking/README.md +0 -43
- package/docs/api/namespaces/encoding/README.md +0 -33
- package/docs/api/namespaces/encoding/functions/base64ToUrlSafe.md +0 -28
- package/docs/api/namespaces/encoding/functions/bytesToBase64.md +0 -21
- package/docs/api/namespaces/encoding/functions/bytesToString.md +0 -21
- package/docs/api/namespaces/encoding/functions/bytesToUrlSafeBase64.md +0 -33
- package/docs/api/namespaces/encoding/functions/concatBytes.md +0 -21
- package/docs/api/namespaces/encoding/functions/stringToBytes.md +0 -21
- package/docs/api/namespaces/encoding/functions/urlSafeToBase64.md +0 -27
- package/docs/api/namespaces/keys/README.md +0 -130
- package/docs/api/namespaces/keys/functions/acceptContactIdentityRotation.md +0 -33
- package/docs/api/namespaces/keys/functions/assertIdentityCommitment.md +0 -25
- package/docs/api/namespaces/keys/functions/canonicalizeDeviceIdentityKey.md +0 -30
- package/docs/api/namespaces/keys/functions/compareDeviceIdentityKeys.md +0 -28
- package/docs/api/namespaces/keys/functions/compositeIdentitiesEqual.md +0 -23
- package/docs/api/namespaces/keys/functions/createCompositeIdentityV1.md +0 -19
- package/docs/api/namespaces/keys/functions/createPreKeySignatureContext.md +0 -31
- package/docs/api/namespaces/keys/functions/createUnverifiedContactIdentityRecord.md +0 -23
- package/docs/api/namespaces/keys/functions/decodeCompositeIdentityV1.md +0 -19
- package/docs/api/namespaces/keys/functions/deriveIdentityCommitment.md +0 -19
- package/docs/api/namespaces/keys/functions/encodeCompositeIdentityV1.md +0 -19
- package/docs/api/namespaces/keys/functions/evaluateContactIdentityCandidate.md +0 -27
- package/docs/api/namespaces/keys/functions/generateEcOneTimePreKeys.md +0 -37
- package/docs/api/namespaces/keys/functions/generateEcSignedPreKey.md +0 -39
- package/docs/api/namespaces/keys/functions/generateEcSignedPreKeyId.md +0 -21
- package/docs/api/namespaces/keys/functions/generateIdentityKeyPair.md +0 -24
- package/docs/api/namespaces/keys/functions/generateKemOneTimePreKeys.md +0 -47
- package/docs/api/namespaces/keys/functions/generateKyberLastResortPreKey.md +0 -37
- package/docs/api/namespaces/keys/functions/generateRegistrationId.md +0 -13
- package/docs/api/namespaces/keys/functions/isValidDeviceIdentityKey.md +0 -22
- package/docs/api/namespaces/keys/functions/signMlKem1024PreKey.md +0 -29
- package/docs/api/namespaces/keys/functions/signPreKey.md +0 -31
- package/docs/api/namespaces/keys/functions/validateContactIdentityRecord.md +0 -19
- package/docs/api/namespaces/keys/functions/verifyContactIdentityRecord.md +0 -31
- package/docs/api/namespaces/keys/functions/verifyMlKem1024PreKey.md +0 -33
- package/docs/api/namespaces/keys/functions/verifyPreKeySignature.md +0 -35
- package/docs/api/namespaces/keys/interfaces/CompositeIdentityV1.md +0 -33
- package/docs/api/namespaces/keys/interfaces/ContactIdentityRecord.md +0 -53
- package/docs/api/namespaces/keys/interfaces/KemOneTimePreKey.md +0 -43
- package/docs/api/namespaces/keys/type-aliases/IdentityCandidateStatus.md +0 -9
- package/docs/api/namespaces/keys/type-aliases/IdentityTrustState.md +0 -9
- package/docs/api/namespaces/keys/type-aliases/IdentityType.md +0 -9
- package/docs/api/namespaces/keys/variables/COMPOSITE_IDENTITY_V1_ED25519_TAG.md +0 -9
- package/docs/api/namespaces/keys/variables/COMPOSITE_IDENTITY_V1_LENGTH.md +0 -9
- package/docs/api/namespaces/keys/variables/COMPOSITE_IDENTITY_V1_VERSION.md +0 -9
- package/docs/api/namespaces/keys/variables/COMPOSITE_IDENTITY_V1_X25519_TAG.md +0 -9
- package/docs/api/namespaces/keys/variables/IDENTITY_COMMITMENT_V1_DOMAIN.md +0 -9
- package/docs/api/namespaces/keys/variables/PREKEY_ALGORITHM_ML_KEM_1024.md +0 -9
- package/docs/api/namespaces/keys/variables/PREKEY_ALGORITHM_X25519.md +0 -9
- package/docs/api/namespaces/keys/variables/PREKEY_SIGNATURE_V1_DOMAIN.md +0 -9
- package/docs/api/namespaces/keys/variables/UNPINNED_DEVICE_IDENTITY_KEY.md +0 -18
- package/docs/api/namespaces/media/README.md +0 -105
- package/docs/api/namespaces/media/classes/MediaAttachmentError.md +0 -57
- package/docs/api/namespaces/media/functions/createByteRangeMediaAttachmentTransfer.md +0 -19
- package/docs/api/namespaces/media/functions/createMediaAttachmentDeliveryId.md +0 -29
- package/docs/api/namespaces/media/functions/createMediaAttachmentId.md +0 -19
- package/docs/api/namespaces/media/functions/createMediaAttachmentMessage.md +0 -25
- package/docs/api/namespaces/media/functions/createMediaAttachmentPointer.md +0 -19
- package/docs/api/namespaces/media/functions/createTusMediaAttachmentTransfer.md +0 -19
- package/docs/api/namespaces/media/functions/deleteMediaAttachment.md +0 -23
- package/docs/api/namespaces/media/functions/executeMediaAttachmentJob.md +0 -23
- package/docs/api/namespaces/media/functions/isMediaAttachmentFlagSet.md +0 -19
- package/docs/api/namespaces/media/functions/parseMediaAttachmentMessage.md +0 -19
- package/docs/api/namespaces/media/functions/planMediaAttachmentCleanup.md +0 -23
- package/docs/api/namespaces/media/functions/planMediaAttachmentCleanupJobs.md +0 -19
- package/docs/api/namespaces/media/functions/planMediaAttachmentDeleteSync.md +0 -19
- package/docs/api/namespaces/media/functions/planMediaAttachmentDownloadJob.md +0 -19
- package/docs/api/namespaces/media/functions/planMediaAttachmentOpen.md +0 -19
- package/docs/api/namespaces/media/functions/planMediaAttachmentProcessing.md +0 -19
- package/docs/api/namespaces/media/functions/planMediaAttachmentUploadJob.md +0 -19
- package/docs/api/namespaces/media/functions/prepareMediaAttachmentUpload.md +0 -30
- package/docs/api/namespaces/media/functions/resolveMediaAttachment.md +0 -30
- package/docs/api/namespaces/media/functions/serializeMediaAttachmentMessage.md +0 -25
- package/docs/api/namespaces/media/functions/validateMediaAttachmentPolicy.md +0 -23
- package/docs/api/namespaces/media/interfaces/ByteRangeMediaAttachmentPartialStore.md +0 -68
- package/docs/api/namespaces/media/interfaces/ByteRangeMediaAttachmentTransferOptions.md +0 -91
- package/docs/api/namespaces/media/interfaces/DeleteMediaAttachmentOptions.md +0 -25
- package/docs/api/namespaces/media/interfaces/DeleteMediaAttachmentResult.md +0 -19
- package/docs/api/namespaces/media/interfaces/ExecuteMediaAttachmentJobOptions.md +0 -157
- package/docs/api/namespaces/media/interfaces/MediaAttachmentBackgroundJob.md +0 -85
- package/docs/api/namespaces/media/interfaces/MediaAttachmentCleanupPlan.md +0 -37
- package/docs/api/namespaces/media/interfaces/MediaAttachmentJobExecutionResult.md +0 -55
- package/docs/api/namespaces/media/interfaces/MediaAttachmentMessage.md +0 -31
- package/docs/api/namespaces/media/interfaces/MediaAttachmentOpenDecision.md +0 -31
- package/docs/api/namespaces/media/interfaces/MediaAttachmentPointer.md +0 -133
- package/docs/api/namespaces/media/interfaces/MediaAttachmentPolicy.md +0 -67
- package/docs/api/namespaces/media/interfaces/MediaAttachmentProcessingPlan.md +0 -73
- package/docs/api/namespaces/media/interfaces/MediaAttachmentProgress.md +0 -69
- package/docs/api/namespaces/media/interfaces/MediaAttachmentResumeState.md +0 -37
- package/docs/api/namespaces/media/interfaces/MediaAttachmentRetryOptions.md +0 -31
- package/docs/api/namespaces/media/interfaces/MediaAttachmentTransfer.md +0 -51
- package/docs/api/namespaces/media/interfaces/MediaAttachmentTransferCheckpoint.md +0 -69
- package/docs/api/namespaces/media/interfaces/MediaAttachmentTransferOptions.md +0 -67
- package/docs/api/namespaces/media/interfaces/MediaAttachmentUploadJobData.md +0 -19
- package/docs/api/namespaces/media/interfaces/MediaAttachmentUploadResponse.md +0 -25
- package/docs/api/namespaces/media/interfaces/PlanMediaAttachmentCleanupJobsInput.md +0 -61
- package/docs/api/namespaces/media/interfaces/PlanMediaAttachmentDeleteSyncInput.md +0 -25
- package/docs/api/namespaces/media/interfaces/PlanMediaAttachmentDownloadJobInput.md +0 -161
- package/docs/api/namespaces/media/interfaces/PlanMediaAttachmentOpenInput.md +0 -25
- package/docs/api/namespaces/media/interfaces/PlanMediaAttachmentProcessingInput.md +0 -83
- package/docs/api/namespaces/media/interfaces/PlanMediaAttachmentUploadJobInput.md +0 -147
- package/docs/api/namespaces/media/interfaces/PrepareMediaAttachmentUploadOptions.md +0 -144
- package/docs/api/namespaces/media/interfaces/ResolveMediaAttachmentOptions.md +0 -55
- package/docs/api/namespaces/media/interfaces/ResolvedMediaAttachment.md +0 -109
- package/docs/api/namespaces/media/interfaces/TusMediaAttachmentTransferOptions.md +0 -85
- package/docs/api/namespaces/media/type-aliases/CreateMediaAttachmentPointerInput.md +0 -15
- package/docs/api/namespaces/media/type-aliases/MediaAttachmentCheckpointCallback.md +0 -19
- package/docs/api/namespaces/media/type-aliases/MediaAttachmentCleanupReason.md +0 -9
- package/docs/api/namespaces/media/type-aliases/MediaAttachmentErrorCode.md +0 -9
- package/docs/api/namespaces/media/type-aliases/MediaAttachmentFlag.md +0 -9
- package/docs/api/namespaces/media/type-aliases/MediaAttachmentJobExecutionStatus.md +0 -9
- package/docs/api/namespaces/media/type-aliases/MediaAttachmentJobOperation.md +0 -9
- package/docs/api/namespaces/media/type-aliases/MediaAttachmentJobPriority.md +0 -9
- package/docs/api/namespaces/media/type-aliases/MediaAttachmentJobSkipReason.md +0 -9
- package/docs/api/namespaces/media/type-aliases/MediaAttachmentJobSource.md +0 -9
- package/docs/api/namespaces/media/type-aliases/MediaAttachmentKnownIds.md +0 -9
- package/docs/api/namespaces/media/type-aliases/MediaAttachmentMessageType.md +0 -9
- package/docs/api/namespaces/media/type-aliases/MediaAttachmentProgressCallback.md +0 -19
- package/docs/api/namespaces/media/variables/MEDIA_ATTACHMENT_POLICY_DEFAULTS.md +0 -47
- package/docs/api/namespaces/media/variables/MEDIA_ATTACHMENT_POLICY_PRESETS.md +0 -95
- package/docs/api/namespaces/media/variables/MediaAttachmentCleanupReason.md +0 -27
- package/docs/api/namespaces/media/variables/MediaAttachmentErrorCode.md +0 -75
- package/docs/api/namespaces/media/variables/MediaAttachmentFlag.md +0 -23
- package/docs/api/namespaces/media/variables/MediaAttachmentJobExecutionStatus.md +0 -19
- package/docs/api/namespaces/media/variables/MediaAttachmentJobOperation.md +0 -31
- package/docs/api/namespaces/media/variables/MediaAttachmentJobPriority.md +0 -23
- package/docs/api/namespaces/media/variables/MediaAttachmentJobSource.md +0 -51
- package/docs/api/namespaces/media/variables/MediaAttachmentMessageType.md +0 -15
- package/docs/api/namespaces/media/variables/downloadMediaAttachment.md +0 -30
- package/docs/api/namespaces/safety/README.md +0 -61
- package/docs/api/namespaces/safety/classes/DisplayableFingerprint.md +0 -108
- package/docs/api/namespaces/safety/classes/Fingerprint.md +0 -104
- package/docs/api/namespaces/safety/classes/ScannableFingerprint.md +0 -209
- package/docs/api/namespaces/safety/functions/base64ToBytes.md +0 -21
- package/docs/api/namespaces/safety/functions/clearFingerprintCache.md +0 -15
- package/docs/api/namespaces/safety/functions/compareSafetyNumbers.md +0 -25
- package/docs/api/namespaces/safety/functions/createFingerprintData.md +0 -60
- package/docs/api/namespaces/safety/functions/extractQrData.md +0 -34
- package/docs/api/namespaces/safety/functions/generateCompositeSafetyNumber.md +0 -39
- package/docs/api/namespaces/safety/functions/generateEmojiFingerprint.md +0 -24
- package/docs/api/namespaces/safety/functions/generateSingleKeyReferenceSafetyNumber.md +0 -51
- package/docs/api/namespaces/safety/functions/generateVerifySchemeUrl.md +0 -32
- package/docs/api/namespaces/safety/functions/generateVerifyUrl.md +0 -49
- package/docs/api/namespaces/safety/functions/isValidSafetyNumber.md +0 -21
- package/docs/api/namespaces/safety/functions/isVerifyUrl.md +0 -45
- package/docs/api/namespaces/safety/functions/parseVerifyUrl.md +0 -31
- package/docs/api/namespaces/safety/interfaces/FingerprintData.md +0 -52
- package/docs/api/namespaces/safety/interfaces/SafetyNumber.md +0 -49
- package/docs/api/namespaces/safety/interfaces/VerifyLinkConfig.md +0 -28
- package/docs/api/namespaces/safety/interfaces/VerifyUrlParams.md +0 -49
- package/docs/api/namespaces/safety/type-aliases/CompareResult.md +0 -21
- package/docs/api/namespaces/safety/variables/DEFAULT_VERIFY_LINK_CONFIG.md +0 -12
- package/docs/api/namespaces/safety/variables/FINGERPRINT_ITERATIONS.md +0 -12
- package/docs/api/namespaces/safety/variables/FINGERPRINT_VERSION.md +0 -12
- package/docs/api/namespaces/safety/variables/VERIFY_BASE_URL.md +0 -11
- package/docs/api/namespaces/safety/variables/VERIFY_SCHEME_URL.md +0 -11
- package/docs/api/type-aliases/Base64.md +0 -20
- package/docs/api/type-aliases/BraidPolicy.md +0 -11
- package/docs/api/type-aliases/Bytes.md +0 -20
- package/docs/api/type-aliases/Ciphertext.md +0 -21
- package/docs/api/type-aliases/DeviceType.md +0 -11
- package/docs/api/type-aliases/DownloadedAttachment.md +0 -11
- package/docs/api/type-aliases/GroupId.md +0 -27
- package/docs/api/type-aliases/Hex.md +0 -20
- package/docs/api/type-aliases/HookName.md +0 -11
- package/docs/api/type-aliases/PostQuantumPolicy.md +0 -11
- package/docs/api/type-aliases/PreparedAttachmentUpload.md +0 -14
- package/docs/api/type-aliases/PrivateKey.md +0 -22
- package/docs/api/type-aliases/ProgressCallback.md +0 -45
- package/docs/api/type-aliases/PublicKey.md +0 -22
- package/docs/api/type-aliases/RemoteObjectCompleteUploadRequest.md +0 -19
- package/docs/api/type-aliases/RemoteObjectDeleteRequest.md +0 -19
- package/docs/api/type-aliases/RemoteObjectDownloadRequest.md +0 -19
- package/docs/api/type-aliases/RemoteObjectUploadRequest.md +0 -42
- package/docs/api/type-aliases/SCKAMode.md +0 -11
- package/docs/api/type-aliases/SealedSenderAuth.md +0 -15
- package/docs/api/type-aliases/SignalProtocolClientMediaCleanupInput.md +0 -9
- package/docs/api/type-aliases/SignalProtocolClientMediaCleanupResult.md +0 -9
- package/docs/api/type-aliases/SignalProtocolClientMediaDownloadInput.md +0 -9
- package/docs/api/type-aliases/SignalProtocolClientMediaDownloadResult.md +0 -9
- package/docs/api/type-aliases/SignalProtocolClientMediaOperationResult.md +0 -9
- package/docs/api/type-aliases/SignalProtocolClientMediaUploadInput.md +0 -9
- package/docs/api/type-aliases/SignalProtocolClientMediaUploadResult.md +0 -9
- package/docs/api/type-aliases/Signature.md +0 -21
- package/docs/api/type-aliases/Unsubscribe.md +0 -15
- package/docs/api/variables/BraidPolicy.md +0 -21
- package/docs/api/variables/DEFAULT_DEVICE_ID.md +0 -12
- package/docs/api/variables/DOUBLE_RATCHET_SPEC.md +0 -11
- package/docs/api/variables/GROUP_V2_PREFIX.md +0 -11
- package/docs/api/variables/KEY_REFRESH_INTERVAL_MS_DEFAULT.md +0 -11
- package/docs/api/variables/MAX_MESSAGE_KEYS.md +0 -14
- package/docs/api/variables/MAX_PREKEY_AGE_MS_DEFAULT.md +0 -11
- package/docs/api/variables/MAX_RECEIVER_CHAINS.md +0 -14
- package/docs/api/variables/MAX_REGISTRATION_ID.md +0 -16
- package/docs/api/variables/MAX_SKIP.md +0 -11
- package/docs/api/variables/MESSAGE_FORMAT.md +0 -11
- package/docs/api/variables/MIN_REGISTRATION_ID.md +0 -16
- package/docs/api/variables/ML_KEM_BRAID_SPEC.md +0 -11
- package/docs/api/variables/ONE_TIME_PREKEY_BATCH_SIZE.md +0 -21
- package/docs/api/variables/PQXDH_SPEC.md +0 -11
- package/docs/api/variables/PostQuantumPolicy.md +0 -21
- package/docs/api/variables/SENDER_KEY_FORMAT.md +0 -11
- package/docs/api/variables/SENDER_KEY_SPEC.md +0 -11
- package/docs/api/variables/SESAME_SPEC.md +0 -11
- package/docs/api/variables/SESSION_FORMAT.md +0 -11
- package/docs/api/variables/SPQR_LIMITS_DEFAULTS.md +0 -11
- package/docs/api/variables/X3DH_SPEC.md +0 -9
- package/docs/api/variables/defaultSignalProtocolLogger.md +0 -32
- /package/dist/internal/{groups-v2 → groups}/invite-link.d.ts +0 -0
- /package/dist/internal/{groups-v2 → groups}/invite-link.js +0 -0
package/dist/client/groups.js
CHANGED
|
@@ -55,8 +55,9 @@ export async function processSenderKeyDistribution(ctx, senderKeyManager, groupI
|
|
|
55
55
|
* @param plaintext - Message to encrypt (string or Uint8Array)
|
|
56
56
|
* @returns Framed SenderKeyMessage bytes
|
|
57
57
|
*/
|
|
58
|
-
export async function encryptGroupMessage(ctx, senderKeyManager, groupId, plaintext) {
|
|
58
|
+
export async function encryptGroupMessage(ctx, senderKeyManager, groupId, plaintext, assertCanSend) {
|
|
59
59
|
try {
|
|
60
|
+
await assertCanSend?.(groupId);
|
|
60
61
|
const plaintextBytes = typeof plaintext === 'string' ? new TextEncoder().encode(plaintext) : plaintext;
|
|
61
62
|
const encrypted = await senderKeyManager.encryptGroupMessage(groupId, ctx.userId, ctx.deviceId, plaintextBytes);
|
|
62
63
|
ctx.logger.debug('Encrypted group message', {
|
|
@@ -71,6 +72,10 @@ export async function encryptGroupMessage(ctx, senderKeyManager, groupId, plaint
|
|
|
71
72
|
throw error;
|
|
72
73
|
}
|
|
73
74
|
const err = error;
|
|
75
|
+
if (err.message?.startsWith('GROUP_SEND_BLOCKED_BY_SECURITY_REACTION:') ||
|
|
76
|
+
err.message?.startsWith('GROUP_SEND_BLOCKED_BY_ELIGIBILITY:')) {
|
|
77
|
+
throw err;
|
|
78
|
+
}
|
|
74
79
|
if (err.message?.includes('SENDER_KEY_NOT_FOUND')) {
|
|
75
80
|
throw new EncryptionError(`No sender key for group ${groupId} - call createGroupSenderKey() first`, EncryptionErrorCode.SESSION_NOT_FOUND, { originalError: err });
|
|
76
81
|
}
|
|
@@ -231,12 +236,12 @@ export async function getGroupSenderKeyStats(ctx, groupId, senderId, senderDevic
|
|
|
231
236
|
};
|
|
232
237
|
}
|
|
233
238
|
// ============================================================================
|
|
234
|
-
//
|
|
239
|
+
// GROUP OPERATIONS (Signal Private Group System)
|
|
235
240
|
// ============================================================================
|
|
236
241
|
/**
|
|
237
|
-
* Wrap a
|
|
242
|
+
* Wrap a group operation with consistent logging and error handling.
|
|
238
243
|
*
|
|
239
|
-
* All
|
|
244
|
+
* All group functions follow the same pattern: call manager, log success, throw
|
|
240
245
|
* EncryptionError on failure. This helper eliminates that boilerplate.
|
|
241
246
|
*/
|
|
242
247
|
async function wrapGroupOp(label, logger, op, logData, errorCode = EncryptionErrorCode.INVALID_STATE) {
|
|
@@ -246,95 +251,107 @@ async function wrapGroupOp(label, logger, op, logData, errorCode = EncryptionErr
|
|
|
246
251
|
return result;
|
|
247
252
|
}
|
|
248
253
|
catch (error) {
|
|
254
|
+
if (error instanceof Error &&
|
|
255
|
+
error.name === 'GroupSecurityReactionPendingError') {
|
|
256
|
+
throw error;
|
|
257
|
+
}
|
|
249
258
|
throw new EncryptionError(label, errorCode, { originalError: error });
|
|
250
259
|
}
|
|
251
260
|
}
|
|
252
261
|
/**
|
|
253
|
-
* Create a new
|
|
262
|
+
* Create a new group
|
|
254
263
|
*
|
|
255
264
|
* Generates a master key, builds initial encrypted state, and uploads
|
|
256
265
|
* to the server. The creator is added as an administrator.
|
|
257
266
|
*/
|
|
258
|
-
export async function
|
|
259
|
-
return wrapGroupOp(`Created
|
|
267
|
+
export async function createGroup(ctx, manager, creatorAci, creatorProfileKey, members, title, options) {
|
|
268
|
+
return wrapGroupOp(`Created group "${title}"`, ctx.logger, () => manager.createGroup(creatorAci, creatorProfileKey, members, title, options), { memberCount: members.length + 1, title }, EncryptionErrorCode.INITIALIZATION_FAILED);
|
|
260
269
|
}
|
|
261
270
|
/**
|
|
262
|
-
* Get the decrypted state for a
|
|
271
|
+
* Get the decrypted state for a group
|
|
263
272
|
*
|
|
264
273
|
* Returns cached state if available, otherwise fetches from server.
|
|
265
274
|
*/
|
|
266
|
-
export async function
|
|
267
|
-
return wrapGroupOp(`Retrieved
|
|
275
|
+
export async function getGroupState(ctx, manager, groupId) {
|
|
276
|
+
return wrapGroupOp(`Retrieved group state for ${groupId}`, ctx.logger, async () => {
|
|
268
277
|
const state = await manager.getGroupState(groupId);
|
|
269
278
|
return state;
|
|
270
279
|
}, { groupId });
|
|
271
280
|
}
|
|
272
281
|
/**
|
|
273
|
-
* Sync
|
|
282
|
+
* Sync group state from server
|
|
274
283
|
*
|
|
275
284
|
* Fetches the latest state or replays the change log to bring
|
|
276
285
|
* local state up to date.
|
|
277
286
|
*/
|
|
278
|
-
export async function
|
|
279
|
-
return wrapGroupOp(`Synced
|
|
287
|
+
export async function syncGroup(ctx, manager, groupId) {
|
|
288
|
+
return wrapGroupOp(`Synced group state for ${groupId}`, ctx.logger, async () => {
|
|
280
289
|
const state = await manager.syncGroup(groupId);
|
|
281
290
|
return state;
|
|
282
291
|
}, { groupId });
|
|
283
292
|
}
|
|
284
293
|
/**
|
|
285
|
-
* Add a member to a
|
|
294
|
+
* Add a member to a group
|
|
286
295
|
*/
|
|
287
|
-
export async function
|
|
288
|
-
return wrapGroupOp(`Added member to
|
|
296
|
+
export async function addGroupMember(ctx, manager, groupId, editorAci, member) {
|
|
297
|
+
return wrapGroupOp(`Added member to group ${groupId}`, ctx.logger, () => manager.addMember(groupId, editorAci, member), { groupId });
|
|
298
|
+
}
|
|
299
|
+
/** Accept this client's pending profile-key invitation. */
|
|
300
|
+
export async function acceptGroupMemberInvitation(ctx, manager, groupId) {
|
|
301
|
+
return wrapGroupOp(`Accepted group invitation for ${groupId}`, ctx.logger, () => manager.acceptMemberInvitation(groupId), { groupId });
|
|
302
|
+
}
|
|
303
|
+
/** Decline this client's ACI- or PNI-keyed pending invitation. */
|
|
304
|
+
export async function declineGroupMemberInvitation(ctx, manager, groupId, identity = 'aci') {
|
|
305
|
+
return wrapGroupOp(`Declined ${identity.toUpperCase()} group invitation for ${groupId}`, ctx.logger, () => manager.declineMemberInvitation(groupId, identity), { groupId });
|
|
289
306
|
}
|
|
290
307
|
/**
|
|
291
|
-
* Remove a member from a
|
|
308
|
+
* Remove a member from a group
|
|
292
309
|
*
|
|
293
310
|
* Triggers sender key rotation for forward secrecy.
|
|
294
311
|
*/
|
|
295
|
-
export async function
|
|
296
|
-
return wrapGroupOp(`Removed member from
|
|
312
|
+
export async function removeGroupMember(ctx, manager, groupId, editorAci, targetAci) {
|
|
313
|
+
return wrapGroupOp(`Removed member from group ${groupId}`, ctx.logger, () => manager.removeMember(groupId, editorAci, targetAci), { groupId });
|
|
297
314
|
}
|
|
298
315
|
/**
|
|
299
|
-
* Leave a
|
|
316
|
+
* Leave a group (self-remove)
|
|
300
317
|
*/
|
|
301
|
-
export async function
|
|
302
|
-
return wrapGroupOp(`Left
|
|
318
|
+
export async function leaveGroup(ctx, manager, groupId, userAci) {
|
|
319
|
+
return wrapGroupOp(`Left group ${groupId}`, ctx.logger, () => manager.leaveGroup(groupId, userAci), {
|
|
303
320
|
groupId,
|
|
304
321
|
});
|
|
305
322
|
}
|
|
306
323
|
/**
|
|
307
|
-
* Update the title of a
|
|
324
|
+
* Update the title of a group
|
|
308
325
|
*/
|
|
309
|
-
export async function
|
|
310
|
-
return wrapGroupOp(`Updated
|
|
326
|
+
export async function updateGroupTitle(ctx, manager, groupId, editorAci, title) {
|
|
327
|
+
return wrapGroupOp(`Updated group title for ${groupId}`, ctx.logger, () => manager.updateTitle(groupId, editorAci, title), { groupId, title });
|
|
311
328
|
}
|
|
312
329
|
/**
|
|
313
|
-
* Update the description of a
|
|
330
|
+
* Update the description of a group
|
|
314
331
|
*/
|
|
315
|
-
export async function
|
|
316
|
-
return wrapGroupOp(`Updated
|
|
332
|
+
export async function updateGroupDescription(ctx, manager, groupId, editorAci, description) {
|
|
333
|
+
return wrapGroupOp(`Updated group description for ${groupId}`, ctx.logger, () => manager.updateDescription(groupId, editorAci, description), { groupId });
|
|
317
334
|
}
|
|
318
335
|
/**
|
|
319
|
-
* Update access control settings for a
|
|
336
|
+
* Update access control settings for a group
|
|
320
337
|
*/
|
|
321
|
-
export async function
|
|
322
|
-
return wrapGroupOp(`Updated
|
|
338
|
+
export async function updateGroupAccessControl(ctx, manager, groupId, editorAci, updates) {
|
|
339
|
+
return wrapGroupOp(`Updated group access control for ${groupId}`, ctx.logger, () => manager.updateAccessControl(groupId, editorAci, updates), { groupId, updates });
|
|
323
340
|
}
|
|
324
341
|
/**
|
|
325
|
-
* Create an invite link for a
|
|
342
|
+
* Create an invite link for a group
|
|
326
343
|
*/
|
|
327
|
-
export async function
|
|
328
|
-
return wrapGroupOp(`Created
|
|
344
|
+
export async function createGroupInviteLink(ctx, manager, groupId, editorAci) {
|
|
345
|
+
return wrapGroupOp(`Created group invite link for ${groupId}`, ctx.logger, () => manager.createInviteLink(groupId, editorAci), { groupId });
|
|
329
346
|
}
|
|
330
347
|
/**
|
|
331
|
-
* Join a
|
|
348
|
+
* Join a group via invite link
|
|
332
349
|
*
|
|
333
350
|
* Parses the invite link, validates the password, and adds
|
|
334
351
|
* the user as a member or to the requesting members list
|
|
335
352
|
* (if admin approval is required).
|
|
336
353
|
*/
|
|
337
|
-
export async function
|
|
338
|
-
return wrapGroupOp(`Joined
|
|
354
|
+
export async function joinGroupViaInviteLink(ctx, manager, url, userAci, userProfileKey) {
|
|
355
|
+
return wrapGroupOp(`Joined group via invite link`, ctx.logger, () => manager.joinViaInviteLink(url, userAci, userProfileKey), {}, EncryptionErrorCode.INITIALIZATION_FAILED);
|
|
339
356
|
}
|
|
340
357
|
//# sourceMappingURL=groups.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"groups.js","sourceRoot":"","sources":["../../client/groups.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAsBhE,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,GAAgC,EAChC,gBAAkC,EAClC,OAAe;IAEf,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC,eAAe,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC;QAEzF,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,0BAA0B,EAAE;YAC3C,QAAQ,EAAE,MAAM;YAChB,IAAI,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,CAAC,WAAW,EAAE;SACnD,CAAC,CAAC;QAEH,OAAO,MAAM,CAAC;IAChB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,eAAe,CACvB,yCAAyC,OAAO,EAAE,EAClD,mBAAmB,CAAC,qBAAqB,EACzC,EAAE,aAAa,EAAE,KAAc,EAAE,CAClC,CAAC;IACJ,CAAC;AACH,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAChD,GA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A+B;IAE/B,OAAO,WAAW,CAChB,oCAAoC,OAAO,EAAE,EAC7C,GAAG,CAAC,MAAM,EACV,GAAG,EAAE,CAAC,OAAO,CAAC,mBAAmB,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,EAC9D,EAAE,OAAO,EAAE,OAAO,EAAE,CACrB,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACzC,GAAgC,EAChC,OAAqB,EACrB,OAAgB,EAChB,SAAqB;IAErB,OAAO,WAAW,CAChB,iCAAiC,OAAO,EAAE,EAC1C,GAAG,CAAC,MAAM,EACV,GAAG,EAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,OAAO,EAAE,SAAS,CAAC,EAClD,EAAE,OAAO,EAAE,CACZ,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAC1C,GAAgC,EAChC,OAAqB,EACrB,GAAW,EACX,OAAmB,EACnB,cAA0B;IAE1B,OAAO,WAAW,CAChB,8BAA8B,EAC9B,GAAG,CAAC,MAAM,EACV,GAAG,EAAE,CAAC,OAAO,CAAC,iBAAiB,CAAC,GAAG,EAAE,OAAO,EAAE,cAAc,CAAC,EAC7D,EAAE,EACF,mBAAmB,CAAC,qBAAqB,CAC1C,CAAC;AACJ,CAAC"}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* convex.setAuth(authToken);
|
|
18
18
|
* const signalApi = api.signal satisfies ConvexSignalProtocolRelayApi;
|
|
19
19
|
* const relay = convexRelay({ convex, api: signalApi, currentUserId: userId });
|
|
20
|
-
* const storage = expoStore(
|
|
20
|
+
* const storage = expoStore();
|
|
21
21
|
*
|
|
22
22
|
* const result = await rotateKeysHeadless(relay, userId, deviceId, { storage });
|
|
23
23
|
* console.log(result); // { signedRotated: true, kyberRotated: false, oneTimeReplenished: true }
|
package/dist/client/headless.js
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* convex.setAuth(authToken);
|
|
18
18
|
* const signalApi = api.signal satisfies ConvexSignalProtocolRelayApi;
|
|
19
19
|
* const relay = convexRelay({ convex, api: signalApi, currentUserId: userId });
|
|
20
|
-
* const storage = expoStore(
|
|
20
|
+
* const storage = expoStore();
|
|
21
21
|
*
|
|
22
22
|
* const result = await rotateKeysHeadless(relay, userId, deviceId, { storage });
|
|
23
23
|
* console.log(result); // { signedRotated: true, kyberRotated: false, oneTimeReplenished: true }
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
import type { SealedSenderConfig } from './config.js';
|
|
10
10
|
import type { Envelope } from '../remote/relay/types.js';
|
|
11
11
|
import { type ILogger } from '../logger.js';
|
|
12
|
+
import { SealedSenderContentType } from '../internal/protocol/sealed-sender/types.js';
|
|
12
13
|
/**
|
|
13
14
|
* Wrap an encrypted ciphertext with sealed sender encryption.
|
|
14
15
|
*
|
|
@@ -20,10 +21,13 @@ import { type ILogger } from '../logger.js';
|
|
|
20
21
|
* @param senderIdentityPrivate - Sender's X25519 identity private key
|
|
21
22
|
* @param recipientIdentityPublic - Recipient's X25519 identity public key
|
|
22
23
|
* @param config - Sealed sender config with trust roots
|
|
24
|
+
* @param contentType - How the recipient should decrypt the inner ciphertext.
|
|
25
|
+
* The outer envelope is `unidentified_sender` for every sealed message, so
|
|
26
|
+
* this is the only signal that a payload is a framed SenderKeyMessage.
|
|
23
27
|
* @returns Base64-encoded sealed sender message
|
|
24
28
|
*/
|
|
25
29
|
export {};
|
|
26
|
-
export declare function sealMessage(ciphertextBase64: string, senderCertificateBase64: string, senderIdentityPrivate: Uint8Array, recipientIdentityPublic: Uint8Array, _config: SealedSenderConfig, _providedLogger?: ILogger): Promise<string>;
|
|
30
|
+
export declare function sealMessage(ciphertextBase64: string, senderCertificateBase64: string, senderIdentityPrivate: Uint8Array, recipientIdentityPublic: Uint8Array, _config: SealedSenderConfig, _providedLogger?: ILogger, contentType?: SealedSenderContentType): Promise<string>;
|
|
27
31
|
/**
|
|
28
32
|
* Unseal a sealed sender message to reveal the sender and inner ciphertext.
|
|
29
33
|
*
|
|
@@ -42,6 +46,7 @@ export declare function unsealMessage(sealedCiphertextBase64: string, recipientI
|
|
|
42
46
|
senderUserId: string;
|
|
43
47
|
senderDeviceId: number;
|
|
44
48
|
innerCiphertextBase64: string;
|
|
49
|
+
contentType: SealedSenderContentType;
|
|
45
50
|
}>;
|
|
46
51
|
/**
|
|
47
52
|
* Reconstruct an Envelope from an unsealed message.
|
|
@@ -57,5 +62,26 @@ export declare function reconstructEnvelope(originalEnvelope: Envelope, unsealed
|
|
|
57
62
|
senderUserId: string;
|
|
58
63
|
senderDeviceId: number;
|
|
59
64
|
innerCiphertextBase64: string;
|
|
65
|
+
contentType: SealedSenderContentType;
|
|
60
66
|
}): Envelope;
|
|
67
|
+
/**
|
|
68
|
+
* Map a sealed envelope's content type onto the envelope type the decrypt
|
|
69
|
+
* path routes on.
|
|
70
|
+
*
|
|
71
|
+
* Exported because both receive paths need it — `SignalProtocolServiceCipher`
|
|
72
|
+
* via `reconstructEnvelope`, and `SignalProtocolClient.processIncomingEnvelope`
|
|
73
|
+
* directly. Two copies of this mapping would drift.
|
|
74
|
+
*
|
|
75
|
+
* `SENDERKEY_MESSAGE` is the only case that matters here: it is what keeps
|
|
76
|
+
* group routing working now that no group identifier travels on an envelope,
|
|
77
|
+
* sealed or otherwise. `PREKEY_MESSAGE` and `MESSAGE` both decrypt as pairwise
|
|
78
|
+
* ratchet messages, and the ratchet distinguishes them from the payload
|
|
79
|
+
* itself.
|
|
80
|
+
*
|
|
81
|
+
* The default is unreachable: `isSealedSenderContentType` rejects every other
|
|
82
|
+
* value at the parse, so nothing arrives here that this function cannot map.
|
|
83
|
+
* It exists so that adding an enum member without a route fails loudly rather
|
|
84
|
+
* than silently decrypting as something it is not.
|
|
85
|
+
*/
|
|
86
|
+
export declare function envelopeTypeForContent(contentType: SealedSenderContentType): Envelope['messageType'];
|
|
61
87
|
//# sourceMappingURL=sealed-sender-ops.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sealed-sender-ops.d.ts","sourceRoot":"","sources":["../../client/sealed-sender-ops.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAA+B,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"sealed-sender-ops.d.ts","sourceRoot":"","sources":["../../client/sealed-sender-ops.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAA+B,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AAEtE,OAAO,EACL,uBAAuB,EAGxB,MAAM,0CAA0C,CAAC;AAElD;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,CAAC;AACV,wBAAsB,WAAW,CAC/B,gBAAgB,EAAE,MAAM,EACxB,uBAAuB,EAAE,MAAM,EAC/B,qBAAqB,EAAE,UAAU,EACjC,uBAAuB,EAAE,UAAU,EACnC,OAAO,EAAE,kBAAkB,EAC3B,eAAe,CAAC,EAAE,OAAO,EACzB,WAAW,CAAC,EAAE,uBAAuB,GACpC,OAAO,CAAC,MAAM,CAAC,CAkCjB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,aAAa,CACjC,sBAAsB,EAAE,MAAM,EAC9B,wBAAwB,EAAE,UAAU,EACpC,aAAa,EAAE,MAAM,EACrB,iBAAiB,EAAE,MAAM,EACzB,MAAM,EAAE,kBAAkB,EAC1B,cAAc,CAAC,EAAE,OAAO,GACvB,OAAO,CAAC;IACT,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,WAAW,EAAE,uBAAuB,CAAC;CACtC,CAAC,CAgED;AA8ED;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CACjC,gBAAgB,EAAE,QAAQ,EAC1B,QAAQ,EAAE;IACR,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,WAAW,EAAE,uBAAuB,CAAC;CACtC,GACA,QAAQ,CAQV;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,uBAAuB,GACnC,QAAQ,CAAC,aAAa,CAAC,CAUzB"}
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
* @see https://signal.org/blog/sealed-sender/
|
|
8
8
|
*/
|
|
9
9
|
import { resolveSignalProtocolLogger } from '../logger.js';
|
|
10
|
-
|
|
10
|
+
import { SealedSenderContentType, SEALED_SENDER_V2_SERVICE_ID_VERSION, SEALED_SENDER_V2_UUID_VERSION, } from '../internal/protocol/sealed-sender/types.js';
|
|
11
|
+
export async function sealMessage(ciphertextBase64, senderCertificateBase64, senderIdentityPrivate, recipientIdentityPublic, _config, _providedLogger, contentType) {
|
|
11
12
|
const { seal, deserializeSenderCertificate, encodeUnidentifiedSenderMessage } = await import('../internal/protocol/sealed-sender/index.js');
|
|
12
13
|
const { base64ToBytes, bytesToBase64 } = await import('../internal/crypto/index.js');
|
|
13
14
|
// Deserialize the sender certificate
|
|
@@ -21,6 +22,7 @@ export async function sealMessage(ciphertextBase64, senderCertificateBase64, sen
|
|
|
21
22
|
senderIdentityPrivate,
|
|
22
23
|
recipientIdentityPublic,
|
|
23
24
|
signalProtocolMessage,
|
|
25
|
+
contentType,
|
|
24
26
|
});
|
|
25
27
|
// Serialize: version byte + protobuf-encoded message (Sealed Sender wire format)
|
|
26
28
|
const protoBytes = encodeUnidentifiedSenderMessage({
|
|
@@ -55,7 +57,6 @@ export async function unsealMessage(sealedCiphertextBase64, recipientIdentityPri
|
|
|
55
57
|
const sealedBytes = base64ToBytes(sealedCiphertextBase64);
|
|
56
58
|
const versionByte = sealedBytes[0];
|
|
57
59
|
// V2 detection: 0x22 = UUID version (ReceivedMessage), 0x23 = ServiceId version
|
|
58
|
-
const { SEALED_SENDER_V2_UUID_VERSION, SEALED_SENDER_V2_SERVICE_ID_VERSION } = await import('../internal/protocol/sealed-sender/types.js');
|
|
59
60
|
if (versionByte === SEALED_SENDER_V2_UUID_VERSION ||
|
|
60
61
|
versionByte === SEALED_SENDER_V2_SERVICE_ID_VERSION) {
|
|
61
62
|
return unsealV2Message(sealedBytes, recipientIdentityPrivate, recipientUuid, recipientDeviceId, config, logger);
|
|
@@ -92,6 +93,7 @@ export async function unsealMessage(sealedCiphertextBase64, recipientIdentityPri
|
|
|
92
93
|
senderUserId: content.senderCertificate.senderUuid,
|
|
93
94
|
senderDeviceId: content.senderCertificate.senderDeviceId,
|
|
94
95
|
innerCiphertextBase64: content.signalProtocolMessage,
|
|
96
|
+
contentType: content.contentType,
|
|
95
97
|
};
|
|
96
98
|
}
|
|
97
99
|
/**
|
|
@@ -103,7 +105,6 @@ export async function unsealMessage(sealedCiphertextBase64, recipientIdentityPri
|
|
|
103
105
|
async function unsealV2Message(sealedBytes, recipientIdentityPrivate, recipientUuid, recipientDeviceId, config, logger) {
|
|
104
106
|
const { deserializeReceivedMessage } = await import('../internal/protocol/sealed-sender/v2-binary.js');
|
|
105
107
|
const { unsealV2 } = await import('../internal/protocol/sealed-sender/decryption-v2.js');
|
|
106
|
-
const { SEALED_SENDER_V2_UUID_VERSION } = await import('../internal/protocol/sealed-sender/types.js');
|
|
107
108
|
const { bytesToBase64 } = await import('../internal/crypto/index.js');
|
|
108
109
|
const { x25519 } = await import('@noble/curves/ed25519.js');
|
|
109
110
|
// 1. Deserialize per-device ReceivedMessage
|
|
@@ -147,6 +148,7 @@ async function unsealV2Message(sealedBytes, recipientIdentityPrivate, recipientU
|
|
|
147
148
|
senderUserId: content.senderCertificate.senderUuid,
|
|
148
149
|
senderDeviceId: content.senderCertificate.senderDeviceId,
|
|
149
150
|
innerCiphertextBase64: content.signalProtocolMessage,
|
|
151
|
+
contentType: content.contentType,
|
|
150
152
|
};
|
|
151
153
|
}
|
|
152
154
|
/**
|
|
@@ -165,9 +167,37 @@ export function reconstructEnvelope(originalEnvelope, unsealed) {
|
|
|
165
167
|
senderUserId: unsealed.senderUserId,
|
|
166
168
|
senderDeviceId: unsealed.senderDeviceId,
|
|
167
169
|
ciphertext: unsealed.innerCiphertextBase64,
|
|
168
|
-
|
|
169
|
-
// Group vs 1:1 routing happens after decryption based on Content fields.
|
|
170
|
-
messageType: 'ciphertext',
|
|
170
|
+
messageType: envelopeTypeForContent(unsealed.contentType),
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
|
+
/**
|
|
174
|
+
* Map a sealed envelope's content type onto the envelope type the decrypt
|
|
175
|
+
* path routes on.
|
|
176
|
+
*
|
|
177
|
+
* Exported because both receive paths need it — `SignalProtocolServiceCipher`
|
|
178
|
+
* via `reconstructEnvelope`, and `SignalProtocolClient.processIncomingEnvelope`
|
|
179
|
+
* directly. Two copies of this mapping would drift.
|
|
180
|
+
*
|
|
181
|
+
* `SENDERKEY_MESSAGE` is the only case that matters here: it is what keeps
|
|
182
|
+
* group routing working now that no group identifier travels on an envelope,
|
|
183
|
+
* sealed or otherwise. `PREKEY_MESSAGE` and `MESSAGE` both decrypt as pairwise
|
|
184
|
+
* ratchet messages, and the ratchet distinguishes them from the payload
|
|
185
|
+
* itself.
|
|
186
|
+
*
|
|
187
|
+
* The default is unreachable: `isSealedSenderContentType` rejects every other
|
|
188
|
+
* value at the parse, so nothing arrives here that this function cannot map.
|
|
189
|
+
* It exists so that adding an enum member without a route fails loudly rather
|
|
190
|
+
* than silently decrypting as something it is not.
|
|
191
|
+
*/
|
|
192
|
+
export function envelopeTypeForContent(contentType) {
|
|
193
|
+
switch (contentType) {
|
|
194
|
+
case SealedSenderContentType.SENDERKEY_MESSAGE:
|
|
195
|
+
return 'sender_key';
|
|
196
|
+
case SealedSenderContentType.PREKEY_MESSAGE:
|
|
197
|
+
case SealedSenderContentType.MESSAGE:
|
|
198
|
+
return 'ciphertext';
|
|
199
|
+
default:
|
|
200
|
+
throw new Error('Unsupported sealed sender content type');
|
|
201
|
+
}
|
|
202
|
+
}
|
|
173
203
|
//# sourceMappingURL=sealed-sender-ops.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sealed-sender-ops.js","sourceRoot":"","sources":["../../client/sealed-sender-ops.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,EAAE,2BAA2B,EAAgB,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"sealed-sender-ops.js","sourceRoot":"","sources":["../../client/sealed-sender-ops.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,EAAE,2BAA2B,EAAgB,MAAM,WAAW,CAAC;AAEtE,OAAO,EACL,uBAAuB,EACvB,mCAAmC,EACnC,6BAA6B,GAC9B,MAAM,0CAA0C,CAAC;AAmBlD,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,gBAAwB,EACxB,uBAA+B,EAC/B,qBAAiC,EACjC,uBAAmC,EACnC,OAA2B,EAC3B,eAAyB,EACzB,WAAqC;IAErC,MAAM,EAAE,IAAI,EAAE,4BAA4B,EAAE,+BAA+B,EAAE,GAC3E,MAAM,MAAM,CAAC,oCAAoC,CAAC,CAAC;IACrD,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,CAAC;IAE5E,qCAAqC;IACrC,MAAM,SAAS,GAAG,aAAa,CAAC,uBAAiC,CAAC,CAAC;IACnE,MAAM,iBAAiB,GAAG,4BAA4B,CAAC,SAAS,CAAC,CAAC;IAElE,yCAAyC;IACzC,MAAM,qBAAq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@@ export type StaleSessionRefresher = (recipientUserId: string, recipientDeviceId:
|
|
|
78
78
|
*
|
|
79
79
|
*/
|
|
80
80
|
export type EndorsementRefresher = (groupId: string, memberUserIds: string[]) => Promise<boolean>;
|
|
81
|
+
export type GroupSendBarrierChecker = (groupId: string) => Promise<void>;
|
|
81
82
|
/**
|
|
82
83
|
* SignalProtocolServiceCipher - Routes encryption and decryption to appropriate ciphers
|
|
83
84
|
*
|
|
@@ -115,6 +116,7 @@ export declare class SignalProtocolServiceCipher {
|
|
|
115
116
|
private contactProfileStateStore?;
|
|
116
117
|
private endorsementManager?;
|
|
117
118
|
private endorsementRefresher?;
|
|
119
|
+
private groupSendBarrierChecker?;
|
|
118
120
|
private groupSecretParamsProvider?;
|
|
119
121
|
constructor(userId: string, deviceId: number, sesameManager: ISesameManager, senderKeyManager: SenderKeyManager, storage: ISignalProtocolLocalStore, relay?: ISignalProtocolRelayServer | undefined, remoteObjectStore?: SignalProtocolRemoteObjectStore | undefined, contentAdapter?: SignalProtocolContentAdapter | undefined, logger?: Required<ILogger>);
|
|
120
122
|
private getResolvedContentAdapter;
|
|
@@ -171,6 +173,8 @@ export declare class SignalProtocolServiceCipher {
|
|
|
171
173
|
*
|
|
172
174
|
*/
|
|
173
175
|
setEndorsementRefresher(refresher: EndorsementRefresher): void;
|
|
176
|
+
/** Enforce the group-system C7 barrier at the sender-key send boundary. */
|
|
177
|
+
setGroupSendBarrierChecker(checker: GroupSendBarrierChecker): void;
|
|
174
178
|
/**
|
|
175
179
|
* Set the group secret params provider callback.
|
|
176
180
|
*
|
|
@@ -202,7 +206,7 @@ export declare class SignalProtocolServiceCipher {
|
|
|
202
206
|
* - Binary content with mimeType → encryptBlob (two-layer encryption)
|
|
203
207
|
* - User ID → encryptToUser (SESAME)
|
|
204
208
|
*
|
|
205
|
-
* @param recipientId - User ID or group ID (groups use the
|
|
209
|
+
* @param recipientId - User ID or group ID (groups use the package group ID prefix)
|
|
206
210
|
* @param content - Uint8Array bytes to encrypt and send
|
|
207
211
|
* @param options - Optional send options (mimeType for binary content, etc.)
|
|
208
212
|
* @returns SendResult with messageId, timestamp, and device count
|
|
@@ -229,7 +233,12 @@ export declare class SignalProtocolServiceCipher {
|
|
|
229
233
|
*/
|
|
230
234
|
decryptPairwise(sesameMessage: SesameMessage): Promise<string>;
|
|
231
235
|
/**
|
|
232
|
-
* Decrypt a group message via Sender Keys
|
|
236
|
+
* Decrypt a group message via Sender Keys.
|
|
237
|
+
*
|
|
238
|
+
* The envelope names no group, so the group is resolved from the opaque
|
|
239
|
+
* distribution identifier inside the frame and returned alongside the
|
|
240
|
+
* plaintext — callers need it for the conversation ID and cannot read it off
|
|
241
|
+
* the envelope.
|
|
233
242
|
*
|
|
234
243
|
* @throws {EncryptionError} DECRYPTION_FAILED if decryption fails
|
|
235
244
|
*/
|
|
@@ -305,6 +314,16 @@ export declare class SignalProtocolServiceCipher {
|
|
|
305
314
|
* V1 per-device sealed sender fanout (legacy path, used as fallback).
|
|
306
315
|
*/
|
|
307
316
|
private perDeviceFanoutSend;
|
|
317
|
+
/**
|
|
318
|
+
* Resolve the group roster to concrete devices via the relay.
|
|
319
|
+
*
|
|
320
|
+
* `options.groupMemberUserIds` is required for relayed group sends: group
|
|
321
|
+
* membership is local-first (each client derives it from its own decrypted
|
|
322
|
+
* group state), and the relay deliberately keeps no server-side membership
|
|
323
|
+
* map — a groupId → member lookup would hand the relay the social graph
|
|
324
|
+
* the zero-knowledge group design exists to hide.
|
|
325
|
+
*/
|
|
326
|
+
private resolveGroupMemberDevices;
|
|
308
327
|
/**
|
|
309
328
|
* Encrypt to a group via Sender Keys (O(1) encryption)
|
|
310
329
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signal-service-cipher.d.ts","sourceRoot":"","sources":["../../client/signal-service-cipher.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,KAAK,EACV,0BAA0B,EAC1B,QAAQ,EAIT,MAAM,uBAAu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