@open-e2ee/signal-protocol-sdk 0.1.0-alpha.7 → 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/CHANGELOG.md +680 -2
- 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.map +1 -1
- package/dist/client/client.js +16 -8
- package/dist/client/client.js.map +1 -1
- package/dist/client/config.d.ts +12 -2
- package/dist/client/config.d.ts.map +1 -1
- package/dist/client/config.js.map +1 -1
- package/dist/client/endorsement-manager.d.ts +19 -2
- package/dist/client/endorsement-manager.d.ts.map +1 -1
- package/dist/client/endorsement-manager.js +26 -10
- package/dist/client/endorsement-manager.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 +16 -1
- package/dist/client/signal-service-cipher.d.ts.map +1 -1
- package/dist/client/signal-service-cipher.js +112 -52
- 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/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -0
- 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/manager.d.ts +13 -0
- package/dist/internal/groups/manager.d.ts.map +1 -1
- package/dist/internal/groups/manager.js +73 -12
- package/dist/internal/groups/manager.js.map +1 -1
- package/dist/internal/groups/server-engine.d.ts +31 -0
- package/dist/internal/groups/server-engine.d.ts.map +1 -1
- package/dist/internal/groups/server-engine.js +67 -7
- package/dist/internal/groups/server-engine.js.map +1 -1
- 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/manager.d.ts +37 -0
- package/dist/internal/protocol/sender-keys/manager.d.ts.map +1 -1
- package/dist/internal/protocol/sender-keys/manager.js +108 -7
- package/dist/internal/protocol/sender-keys/manager.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 +4 -2
- package/dist/remote/relay/convex/group-server.d.ts.map +1 -1
- package/dist/remote/relay/convex/group-server.js +4 -2
- 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 +42 -63
- package/dist/remote/relay/convex/relay.d.ts.map +1 -1
- package/dist/remote/relay/convex/relay.js +51 -29
- 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/index.js.map +1 -1
- package/dist/remote/relay/mock/adapter.d.ts +2 -7
- package/dist/remote/relay/mock/adapter.d.ts.map +1 -1
- package/dist/remote/relay/mock/adapter.js +32 -20
- package/dist/remote/relay/mock/adapter.js.map +1 -1
- package/dist/remote/relay/types.d.ts +32 -69
- 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 +21 -0
- 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 +44 -11
- package/docs/E2EE.md +71 -6
- package/docs/GETTING_STARTED.md +1 -1
- package/docs/PACKAGE_SURFACE.md +6 -5
- package/docs/RECIPES.md +1 -1
- package/docs/SECURITY.md +8 -0
- package/local/store/expo/README.md +10 -1
- package/local/store/node/README.md +10 -1
- package/package.json +12 -7
- package/remote/relay/convex/README.md +1 -1
- package/remote/relay/convex/component/README.md +428 -0
- package/scripts/oe-groups.mjs +21 -1
- package/dist/remote/relay/convex/server/index.d.ts +0 -2
- package/dist/remote/relay/convex/server/index.d.ts.map +0 -1
- package/dist/remote/relay/convex/server/index.js +0 -2
- package/dist/remote/relay/convex/server/index.js.map +0 -1
- package/dist/remote/relay/convex/server.d.ts +0 -150
- package/dist/remote/relay/convex/server.d.ts.map +0 -1
- package/dist/remote/relay/convex/server.js +0 -506
- package/dist/remote/relay/convex/server.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 -325
- 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/decodeGroupTrustRoot.md +0 -21
- package/docs/api/functions/encodeGroupTrustRoot.md +0 -28
- 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/GroupTrustRoot.md +0 -33
- 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/IRelayGroupServer.md +0 -60
- 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 -1337
- 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 -731
- package/docs/api/interfaces/SignalProtocolClientConfig.md +0 -895
- package/docs/api/interfaces/SignalProtocolClientDeleteLocalAttachmentInput.md +0 -25
- package/docs/api/interfaces/SignalProtocolClientHooks.md +0 -506
- package/docs/api/interfaces/SignalProtocolClientIdentityConfig.md +0 -51
- 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_ID_PREFIX.md +0 -11
- package/docs/api/variables/GROUP_TRUST_ROOT_VERSION.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/remote/relay/convex/server/README.md +0 -146
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { ConvexError } from 'convex/values';
|
|
2
|
+
import { base64ToBytes, bytesToBase64 } from '../../../../internal/crypto/utils.js';
|
|
3
|
+
import { generateServerSecretParams, } from '../../../../internal/protocol/zk/groups/server-params.js';
|
|
4
|
+
import { SERVICE_ID_ACI, SERVICE_ID_PNI, } from '../../../../internal/protocol/zk/groups/uid-struct.js';
|
|
5
|
+
import { asBase64 } from '../../../../types/utils.js';
|
|
6
|
+
import { CONVEX_GROUP_SERVER_SECRET_ENV_VAR } from '../constants.js';
|
|
7
|
+
import { env } from './_generated/server.js';
|
|
8
|
+
const UUID_LENGTH = 16;
|
|
9
|
+
let testDependencies = null;
|
|
10
|
+
/**
|
|
11
|
+
* @internal Test-only deterministic secret/runtime injection seam.
|
|
12
|
+
*
|
|
13
|
+
* Module-global by necessity: component functions are module-scope exports
|
|
14
|
+
* with no per-instance closure. Guarded default-deny: injection is allowed
|
|
15
|
+
* only inside a recognized test runner (and never when CONVEX_CLOUD_URL
|
|
16
|
+
* marks a deployment). Component isolates see only their declared
|
|
17
|
+
* environment variables, so a permissive env-based check could be inert in
|
|
18
|
+
* exactly the environment it must protect — an unrecognized environment
|
|
19
|
+
* therefore refuses injection rather than allowing it.
|
|
20
|
+
*/
|
|
21
|
+
export function configureConvexSignalProtocolComponentForTest(config) {
|
|
22
|
+
const inTestRunner = process.env.JEST_WORKER_ID !== undefined ||
|
|
23
|
+
process.env.VITEST !== undefined ||
|
|
24
|
+
process.env.NODE_ENV === 'test';
|
|
25
|
+
if (process.env.CONVEX_CLOUD_URL || !inTestRunner) {
|
|
26
|
+
throw new Error('Test-only component configuration is unavailable in deployments');
|
|
27
|
+
}
|
|
28
|
+
testDependencies = config;
|
|
29
|
+
}
|
|
30
|
+
function defaultConvexRuntime() {
|
|
31
|
+
return {
|
|
32
|
+
now: () => Date.now(),
|
|
33
|
+
randomBytes: (length) => crypto.getRandomValues(new Uint8Array(length)),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Derived server parameters, cached per isolate and keyed by the exact
|
|
38
|
+
* environment value so a rotated secret is picked up on the next request.
|
|
39
|
+
* Derivation costs tens of milliseconds; without the cache every query and
|
|
40
|
+
* mutation would pay it before doing any work.
|
|
41
|
+
*/
|
|
42
|
+
let cachedSecretParams = null;
|
|
43
|
+
function secretParamsFromEnvironment() {
|
|
44
|
+
// Read through the component's *declared* environment (convex.config.ts).
|
|
45
|
+
// Component isolates cannot see undeclared app deployment variables, so
|
|
46
|
+
// the app must forward the secret at mount time:
|
|
47
|
+
// app.use(signalProtocol, {
|
|
48
|
+
// env: { OE_GROUPS_SERVER_SECRET: app.env.OE_GROUPS_SERVER_SECRET },
|
|
49
|
+
// });
|
|
50
|
+
const encoded = env.OE_GROUPS_SERVER_SECRET;
|
|
51
|
+
if (!encoded) {
|
|
52
|
+
throw new Error(`${CONVEX_GROUP_SERVER_SECRET_ENV_VAR} is not configured; run npx oe-groups trust-root and forward it to the component with app.use(signalProtocol, { env: { ${CONVEX_GROUP_SERVER_SECRET_ENV_VAR}: app.env.${CONVEX_GROUP_SERVER_SECRET_ENV_VAR} } })`);
|
|
53
|
+
}
|
|
54
|
+
if (cachedSecretParams && cachedSecretParams.encoded === encoded) {
|
|
55
|
+
return cachedSecretParams.params;
|
|
56
|
+
}
|
|
57
|
+
let seed;
|
|
58
|
+
try {
|
|
59
|
+
seed = base64ToBytes(asBase64(encoded));
|
|
60
|
+
}
|
|
61
|
+
catch {
|
|
62
|
+
throw new Error(`${CONVEX_GROUP_SERVER_SECRET_ENV_VAR} must be canonical base64`);
|
|
63
|
+
}
|
|
64
|
+
try {
|
|
65
|
+
if (seed.length !== 32) {
|
|
66
|
+
throw new Error(`${CONVEX_GROUP_SERVER_SECRET_ENV_VAR} must decode to exactly 32 bytes`);
|
|
67
|
+
}
|
|
68
|
+
if (bytesToBase64(seed) !== encoded) {
|
|
69
|
+
throw new Error(`${CONVEX_GROUP_SERVER_SECRET_ENV_VAR} must be canonical base64`);
|
|
70
|
+
}
|
|
71
|
+
const params = generateServerSecretParams(seed);
|
|
72
|
+
cachedSecretParams = { encoded, params };
|
|
73
|
+
return params;
|
|
74
|
+
}
|
|
75
|
+
finally {
|
|
76
|
+
seed.fill(0);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
export function groupServerRuntime() {
|
|
80
|
+
return testDependencies?.runtime ?? defaultConvexRuntime();
|
|
81
|
+
}
|
|
82
|
+
export function groupServerSecretParams() {
|
|
83
|
+
return testDependencies?.secretParams ?? secretParamsFromEnvironment();
|
|
84
|
+
}
|
|
85
|
+
function requireUuid(value, label) {
|
|
86
|
+
if (!(value instanceof Uint8Array) || value.length !== UUID_LENGTH) {
|
|
87
|
+
throw new Error(`${label} must be a ${UUID_LENGTH}-byte UUID`);
|
|
88
|
+
}
|
|
89
|
+
if (value.every((byte) => byte === 0)) {
|
|
90
|
+
throw new Error(`${label} must not be the nil UUID`);
|
|
91
|
+
}
|
|
92
|
+
return value;
|
|
93
|
+
}
|
|
94
|
+
export function serviceIds(input) {
|
|
95
|
+
if (input === null || typeof input !== 'object') {
|
|
96
|
+
throw new ConvexError({
|
|
97
|
+
code: 'UNAUTHORIZED',
|
|
98
|
+
status: 401,
|
|
99
|
+
message: 'identify() returned no identity',
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
const aci = {
|
|
103
|
+
kind: SERVICE_ID_ACI,
|
|
104
|
+
uuid: requireUuid(new Uint8Array(input.aciBytes), 'identify().aciBytes'),
|
|
105
|
+
};
|
|
106
|
+
const pni = input.pniBytes === undefined
|
|
107
|
+
? undefined
|
|
108
|
+
: {
|
|
109
|
+
kind: SERVICE_ID_PNI,
|
|
110
|
+
uuid: requireUuid(new Uint8Array(input.pniBytes), 'identify().pniBytes'),
|
|
111
|
+
};
|
|
112
|
+
return { aci, pni };
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Translate an engine rejection into a `ConvexError` so its structured
|
|
116
|
+
* `{ code, status }` data survives serialization to real deployments.
|
|
117
|
+
*/
|
|
118
|
+
export async function translateEngineErrors(operation) {
|
|
119
|
+
try {
|
|
120
|
+
return await operation();
|
|
121
|
+
}
|
|
122
|
+
catch (error) {
|
|
123
|
+
if (!(error instanceof ConvexError) && error instanceof Error) {
|
|
124
|
+
const data = error.data;
|
|
125
|
+
if (data !== null &&
|
|
126
|
+
typeof data === 'object' &&
|
|
127
|
+
typeof data.code === 'string' &&
|
|
128
|
+
typeof data.status === 'number') {
|
|
129
|
+
throw new ConvexError({
|
|
130
|
+
code: data.code,
|
|
131
|
+
status: data.status,
|
|
132
|
+
message: error.message,
|
|
133
|
+
...(typeof data.reason === 'string'
|
|
134
|
+
? { reason: data.reason }
|
|
135
|
+
: {}),
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
throw error;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
//# sourceMappingURL=runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../../../../remote/relay/convex/component/runtime.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
declare const _default: import("convex/server").SchemaDefinition<{
|
|
2
|
+
accounts: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
3
|
+
aciBytes: ArrayBuffer;
|
|
4
|
+
pniBytes?: ArrayBuffer | undefined;
|
|
5
|
+
unidentifiedAccessKey?: string | undefined;
|
|
6
|
+
updatedAt: number;
|
|
7
|
+
userId: string;
|
|
8
|
+
}, {
|
|
9
|
+
userId: import("convex/values").VString<string, "required">;
|
|
10
|
+
aciBytes: import("convex/values").VBytes<ArrayBuffer, "required">;
|
|
11
|
+
pniBytes: import("convex/values").VBytes<ArrayBuffer | undefined, "optional">;
|
|
12
|
+
unidentifiedAccessKey: import("convex/values").VString<string | undefined, "optional">;
|
|
13
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
14
|
+
}, "required", "aciBytes" | "pniBytes" | "unidentifiedAccessKey" | "updatedAt" | "userId">, {
|
|
15
|
+
by_aci_bytes: ["aciBytes", "_creationTime"];
|
|
16
|
+
by_user_id: ["userId", "_creationTime"];
|
|
17
|
+
}, {}, {}>;
|
|
18
|
+
devices: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
19
|
+
active: boolean;
|
|
20
|
+
createdAt: number;
|
|
21
|
+
deviceId: number;
|
|
22
|
+
deviceType?: "desktop" | "mobile" | "tablet" | "web" | undefined;
|
|
23
|
+
enabled: boolean;
|
|
24
|
+
encryptedDeviceName?: ArrayBuffer | undefined;
|
|
25
|
+
lastSeen: number;
|
|
26
|
+
linkToken?: string | undefined;
|
|
27
|
+
linked: boolean;
|
|
28
|
+
linkedAt?: number | undefined;
|
|
29
|
+
registered: boolean;
|
|
30
|
+
userId: string;
|
|
31
|
+
}, {
|
|
32
|
+
userId: import("convex/values").VString<string, "required">;
|
|
33
|
+
deviceId: import("convex/values").VFloat64<number, "required">;
|
|
34
|
+
encryptedDeviceName: import("convex/values").VBytes<ArrayBuffer | undefined, "optional">;
|
|
35
|
+
deviceType: import("convex/values").VUnion<"desktop" | "mobile" | "tablet" | "web" | undefined, [import("convex/values").VLiteral<"mobile", "required">, import("convex/values").VLiteral<"desktop", "required">, import("convex/values").VLiteral<"tablet", "required">, import("convex/values").VLiteral<"web", "required">], "optional", never>;
|
|
36
|
+
registered: import("convex/values").VBoolean<boolean, "required">;
|
|
37
|
+
linked: import("convex/values").VBoolean<boolean, "required">;
|
|
38
|
+
enabled: import("convex/values").VBoolean<boolean, "required">;
|
|
39
|
+
active: import("convex/values").VBoolean<boolean, "required">;
|
|
40
|
+
lastSeen: import("convex/values").VFloat64<number, "required">;
|
|
41
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
42
|
+
linkedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
43
|
+
linkToken: import("convex/values").VString<string | undefined, "optional">;
|
|
44
|
+
}, "required", "active" | "createdAt" | "deviceId" | "deviceType" | "enabled" | "encryptedDeviceName" | "lastSeen" | "linkToken" | "linked" | "linkedAt" | "registered" | "userId">, {
|
|
45
|
+
by_user_id: ["userId", "_creationTime"];
|
|
46
|
+
by_user_id_and_device_id: ["userId", "deviceId", "_creationTime"];
|
|
47
|
+
}, {}, {}>;
|
|
48
|
+
deviceHeartbeats: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
49
|
+
deviceId: number;
|
|
50
|
+
lastSeen: number;
|
|
51
|
+
userId: string;
|
|
52
|
+
}, {
|
|
53
|
+
userId: import("convex/values").VString<string, "required">;
|
|
54
|
+
deviceId: import("convex/values").VFloat64<number, "required">;
|
|
55
|
+
lastSeen: import("convex/values").VFloat64<number, "required">;
|
|
56
|
+
}, "required", "deviceId" | "lastSeen" | "userId">, {
|
|
57
|
+
by_user_id_and_device_id: ["userId", "deviceId", "_creationTime"];
|
|
58
|
+
}, {}, {}>;
|
|
59
|
+
identityKeys: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
60
|
+
compositeIdentity: string;
|
|
61
|
+
createdAt: number;
|
|
62
|
+
identityType: "aci" | "pni";
|
|
63
|
+
updatedAt: number;
|
|
64
|
+
userId: string;
|
|
65
|
+
}, {
|
|
66
|
+
userId: import("convex/values").VString<string, "required">;
|
|
67
|
+
identityType: import("convex/values").VUnion<"aci" | "pni", [import("convex/values").VLiteral<"aci", "required">, import("convex/values").VLiteral<"pni", "required">], "required", never>;
|
|
68
|
+
compositeIdentity: import("convex/values").VString<string, "required">;
|
|
69
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
70
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
71
|
+
}, "required", "compositeIdentity" | "createdAt" | "identityType" | "updatedAt" | "userId">, {
|
|
72
|
+
by_user_id_and_identity_type: ["userId", "identityType", "_creationTime"];
|
|
73
|
+
}, {}, {}>;
|
|
74
|
+
identityRegistrations: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
75
|
+
deviceId: number;
|
|
76
|
+
identityType: "aci" | "pni";
|
|
77
|
+
registrationId: number;
|
|
78
|
+
updatedAt: number;
|
|
79
|
+
userId: string;
|
|
80
|
+
}, {
|
|
81
|
+
userId: import("convex/values").VString<string, "required">;
|
|
82
|
+
deviceId: import("convex/values").VFloat64<number, "required">;
|
|
83
|
+
identityType: import("convex/values").VUnion<"aci" | "pni", [import("convex/values").VLiteral<"aci", "required">, import("convex/values").VLiteral<"pni", "required">], "required", never>;
|
|
84
|
+
registrationId: import("convex/values").VFloat64<number, "required">;
|
|
85
|
+
updatedAt: import("convex/values").VFloat64<number, "required">;
|
|
86
|
+
}, "required", "deviceId" | "identityType" | "registrationId" | "updatedAt" | "userId">, {
|
|
87
|
+
by_user_id_and_device_id_and_identity_type: ["userId", "deviceId", "identityType", "_creationTime"];
|
|
88
|
+
by_user_id_and_identity_type: ["userId", "identityType", "_creationTime"];
|
|
89
|
+
}, {}, {}>;
|
|
90
|
+
ecPreKeys: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
91
|
+
consumedAt?: number | undefined;
|
|
92
|
+
deviceId: number;
|
|
93
|
+
identityType: "aci" | "pni";
|
|
94
|
+
keyId: number;
|
|
95
|
+
publicKey: string;
|
|
96
|
+
uploadedAt: number;
|
|
97
|
+
userId: string;
|
|
98
|
+
}, {
|
|
99
|
+
userId: import("convex/values").VString<string, "required">;
|
|
100
|
+
deviceId: import("convex/values").VFloat64<number, "required">;
|
|
101
|
+
identityType: import("convex/values").VUnion<"aci" | "pni", [import("convex/values").VLiteral<"aci", "required">, import("convex/values").VLiteral<"pni", "required">], "required", never>;
|
|
102
|
+
keyId: import("convex/values").VFloat64<number, "required">;
|
|
103
|
+
publicKey: import("convex/values").VString<string, "required">;
|
|
104
|
+
uploadedAt: import("convex/values").VFloat64<number, "required">;
|
|
105
|
+
consumedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
106
|
+
}, "required", "consumedAt" | "deviceId" | "identityType" | "keyId" | "publicKey" | "uploadedAt" | "userId">, {
|
|
107
|
+
by_user_id_and_device_id_and_identity_type_and_consumed_at: ["userId", "deviceId", "identityType", "consumedAt", "_creationTime"];
|
|
108
|
+
by_user_id_and_device_id_and_identity_type_and_key_id: ["userId", "deviceId", "identityType", "keyId", "_creationTime"];
|
|
109
|
+
by_user_id_and_identity_type: ["userId", "identityType", "_creationTime"];
|
|
110
|
+
}, {}, {}>;
|
|
111
|
+
ecSignedPreKeys: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
112
|
+
createdAt: number;
|
|
113
|
+
deviceId: number;
|
|
114
|
+
expiresAt: number;
|
|
115
|
+
identityType: "aci" | "pni";
|
|
116
|
+
keyId: number;
|
|
117
|
+
publicKey: string;
|
|
118
|
+
signature: string;
|
|
119
|
+
userId: string;
|
|
120
|
+
}, {
|
|
121
|
+
userId: import("convex/values").VString<string, "required">;
|
|
122
|
+
deviceId: import("convex/values").VFloat64<number, "required">;
|
|
123
|
+
identityType: import("convex/values").VUnion<"aci" | "pni", [import("convex/values").VLiteral<"aci", "required">, import("convex/values").VLiteral<"pni", "required">], "required", never>;
|
|
124
|
+
keyId: import("convex/values").VFloat64<number, "required">;
|
|
125
|
+
publicKey: import("convex/values").VString<string, "required">;
|
|
126
|
+
signature: import("convex/values").VString<string, "required">;
|
|
127
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
128
|
+
expiresAt: import("convex/values").VFloat64<number, "required">;
|
|
129
|
+
}, "required", "createdAt" | "deviceId" | "expiresAt" | "identityType" | "keyId" | "publicKey" | "signature" | "userId">, {
|
|
130
|
+
by_user_id_and_device_id_and_identity_type: ["userId", "deviceId", "identityType", "_creationTime"];
|
|
131
|
+
by_user_id_and_identity_type: ["userId", "identityType", "_creationTime"];
|
|
132
|
+
}, {}, {}>;
|
|
133
|
+
kemOneTimePreKeys: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
134
|
+
consumedAt?: number | undefined;
|
|
135
|
+
deviceId: number;
|
|
136
|
+
identityType: "aci" | "pni";
|
|
137
|
+
keyId: number;
|
|
138
|
+
publicKey: string;
|
|
139
|
+
signature?: string | undefined;
|
|
140
|
+
uploadedAt: number;
|
|
141
|
+
userId: string;
|
|
142
|
+
}, {
|
|
143
|
+
userId: import("convex/values").VString<string, "required">;
|
|
144
|
+
deviceId: import("convex/values").VFloat64<number, "required">;
|
|
145
|
+
identityType: import("convex/values").VUnion<"aci" | "pni", [import("convex/values").VLiteral<"aci", "required">, import("convex/values").VLiteral<"pni", "required">], "required", never>;
|
|
146
|
+
keyId: import("convex/values").VFloat64<number, "required">;
|
|
147
|
+
publicKey: import("convex/values").VString<string, "required">;
|
|
148
|
+
signature: import("convex/values").VString<string | undefined, "optional">;
|
|
149
|
+
uploadedAt: import("convex/values").VFloat64<number, "required">;
|
|
150
|
+
consumedAt: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
151
|
+
}, "required", "consumedAt" | "deviceId" | "identityType" | "keyId" | "publicKey" | "signature" | "uploadedAt" | "userId">, {
|
|
152
|
+
by_consumed_at_and_uploaded_at: ["consumedAt", "uploadedAt", "_creationTime"];
|
|
153
|
+
by_uploaded_at: ["uploadedAt", "_creationTime"];
|
|
154
|
+
by_user_id_and_device_id_and_identity_type_and_consumed_at: ["userId", "deviceId", "identityType", "consumedAt", "_creationTime"];
|
|
155
|
+
by_user_id_and_device_id_and_identity_type_and_key_id: ["userId", "deviceId", "identityType", "keyId", "_creationTime"];
|
|
156
|
+
by_user_id_and_identity_type: ["userId", "identityType", "_creationTime"];
|
|
157
|
+
}, {}, {}>;
|
|
158
|
+
kemLastResortPreKeys: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
159
|
+
createdAt: number;
|
|
160
|
+
deviceId: number;
|
|
161
|
+
expiresAt: number;
|
|
162
|
+
identityType: "aci" | "pni";
|
|
163
|
+
keyId: number;
|
|
164
|
+
publicKey: string;
|
|
165
|
+
signature: string;
|
|
166
|
+
userId: string;
|
|
167
|
+
}, {
|
|
168
|
+
userId: import("convex/values").VString<string, "required">;
|
|
169
|
+
deviceId: import("convex/values").VFloat64<number, "required">;
|
|
170
|
+
identityType: import("convex/values").VUnion<"aci" | "pni", [import("convex/values").VLiteral<"aci", "required">, import("convex/values").VLiteral<"pni", "required">], "required", never>;
|
|
171
|
+
keyId: import("convex/values").VFloat64<number, "required">;
|
|
172
|
+
publicKey: import("convex/values").VString<string, "required">;
|
|
173
|
+
signature: import("convex/values").VString<string, "required">;
|
|
174
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
175
|
+
expiresAt: import("convex/values").VFloat64<number, "required">;
|
|
176
|
+
}, "required", "createdAt" | "deviceId" | "expiresAt" | "identityType" | "keyId" | "publicKey" | "signature" | "userId">, {
|
|
177
|
+
by_expires_at: ["expiresAt", "_creationTime"];
|
|
178
|
+
by_user_id_and_device_id_and_identity_type: ["userId", "deviceId", "identityType", "_creationTime"];
|
|
179
|
+
by_user_id_and_identity_type: ["userId", "identityType", "_creationTime"];
|
|
180
|
+
}, {}, {}>;
|
|
181
|
+
messages: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
182
|
+
ciphertext: string;
|
|
183
|
+
clientMessageId?: string | undefined;
|
|
184
|
+
ephemeral?: boolean | undefined;
|
|
185
|
+
expiresAt: number;
|
|
186
|
+
messageId: string;
|
|
187
|
+
messageType: "ciphertext" | "prekey_bundle" | "sender_key" | "server_delivery_receipt" | "unidentified_sender";
|
|
188
|
+
senderDeviceId: number;
|
|
189
|
+
senderUserId: string;
|
|
190
|
+
serverTimestamp: number;
|
|
191
|
+
targetDeviceId: number;
|
|
192
|
+
targetUserId: string;
|
|
193
|
+
timestamp: number;
|
|
194
|
+
urgent?: boolean | undefined;
|
|
195
|
+
}, {
|
|
196
|
+
messageId: import("convex/values").VString<string, "required">;
|
|
197
|
+
targetUserId: import("convex/values").VString<string, "required">;
|
|
198
|
+
targetDeviceId: import("convex/values").VFloat64<number, "required">;
|
|
199
|
+
senderUserId: import("convex/values").VString<string, "required">;
|
|
200
|
+
senderDeviceId: import("convex/values").VFloat64<number, "required">;
|
|
201
|
+
ciphertext: import("convex/values").VString<string, "required">;
|
|
202
|
+
messageType: import("convex/values").VUnion<"ciphertext" | "prekey_bundle" | "sender_key" | "server_delivery_receipt" | "unidentified_sender", [import("convex/values").VLiteral<"ciphertext", "required">, import("convex/values").VLiteral<"prekey_bundle", "required">, import("convex/values").VLiteral<"sender_key", "required">, import("convex/values").VLiteral<"server_delivery_receipt", "required">, import("convex/values").VLiteral<"unidentified_sender", "required">], "required", never>;
|
|
203
|
+
urgent: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
204
|
+
ephemeral: import("convex/values").VBoolean<boolean | undefined, "optional">;
|
|
205
|
+
timestamp: import("convex/values").VFloat64<number, "required">;
|
|
206
|
+
serverTimestamp: import("convex/values").VFloat64<number, "required">;
|
|
207
|
+
clientMessageId: import("convex/values").VString<string | undefined, "optional">;
|
|
208
|
+
expiresAt: import("convex/values").VFloat64<number, "required">;
|
|
209
|
+
}, "required", "ciphertext" | "clientMessageId" | "ephemeral" | "expiresAt" | "messageId" | "messageType" | "senderDeviceId" | "senderUserId" | "serverTimestamp" | "targetDeviceId" | "targetUserId" | "timestamp" | "urgent">, {
|
|
210
|
+
by_expires_at: ["expiresAt", "_creationTime"];
|
|
211
|
+
by_message_id: ["messageId", "_creationTime"];
|
|
212
|
+
by_target_and_client_message_id: ["targetUserId", "targetDeviceId", "senderUserId", "clientMessageId", "_creationTime"];
|
|
213
|
+
by_target_user_id_and_target_device_id: ["targetUserId", "targetDeviceId", "_creationTime"];
|
|
214
|
+
}, {}, {}>;
|
|
215
|
+
retryRequests: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
216
|
+
expiresAt: number;
|
|
217
|
+
failedTimestamp: number;
|
|
218
|
+
originalSenderDeviceId: number;
|
|
219
|
+
originalSenderUserId: string;
|
|
220
|
+
reason: "DECRYPTION_FAILED" | "IDENTITY_KEY_MISMATCH" | "INVALID_MESSAGE" | "NO_SESSION" | "SESSION_EXPIRED" | "STALE_DEVICE_LIST";
|
|
221
|
+
requestId: string;
|
|
222
|
+
requesterDeviceId: number;
|
|
223
|
+
requesterUserId: string;
|
|
224
|
+
timestamp: number;
|
|
225
|
+
}, {
|
|
226
|
+
requestId: import("convex/values").VString<string, "required">;
|
|
227
|
+
requesterUserId: import("convex/values").VString<string, "required">;
|
|
228
|
+
requesterDeviceId: import("convex/values").VFloat64<number, "required">;
|
|
229
|
+
originalSenderUserId: import("convex/values").VString<string, "required">;
|
|
230
|
+
originalSenderDeviceId: import("convex/values").VFloat64<number, "required">;
|
|
231
|
+
failedTimestamp: import("convex/values").VFloat64<number, "required">;
|
|
232
|
+
timestamp: import("convex/values").VFloat64<number, "required">;
|
|
233
|
+
reason: import("convex/values").VUnion<"DECRYPTION_FAILED" | "IDENTITY_KEY_MISMATCH" | "INVALID_MESSAGE" | "NO_SESSION" | "SESSION_EXPIRED" | "STALE_DEVICE_LIST", [import("convex/values").VLiteral<"NO_SESSION", "required">, import("convex/values").VLiteral<"DECRYPTION_FAILED", "required">, import("convex/values").VLiteral<"SESSION_EXPIRED", "required">, import("convex/values").VLiteral<"INVALID_MESSAGE", "required">, import("convex/values").VLiteral<"STALE_DEVICE_LIST", "required">, import("convex/values").VLiteral<"IDENTITY_KEY_MISMATCH", "required">], "required", never>;
|
|
234
|
+
expiresAt: import("convex/values").VFloat64<number, "required">;
|
|
235
|
+
}, "required", "expiresAt" | "failedTimestamp" | "originalSenderDeviceId" | "originalSenderUserId" | "reason" | "requestId" | "requesterDeviceId" | "requesterUserId" | "timestamp">, {
|
|
236
|
+
by_expires_at: ["expiresAt", "_creationTime"];
|
|
237
|
+
by_original_sender_user_id_and_original_sender_device_id: ["originalSenderUserId", "originalSenderDeviceId", "_creationTime"];
|
|
238
|
+
by_request_id: ["requestId", "_creationTime"];
|
|
239
|
+
}, {}, {}>;
|
|
240
|
+
provisioningSessions: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
241
|
+
assignedDeviceId?: number | undefined;
|
|
242
|
+
createdAt: number;
|
|
243
|
+
deviceMetadata?: {
|
|
244
|
+
appVersion?: string | undefined;
|
|
245
|
+
osVersion?: string | undefined;
|
|
246
|
+
platform?: string | undefined;
|
|
247
|
+
} | undefined;
|
|
248
|
+
encryptedMessage?: string | undefined;
|
|
249
|
+
ephemeralPublicKey: string;
|
|
250
|
+
expiresAt: number;
|
|
251
|
+
linkedDeviceToken?: string | undefined;
|
|
252
|
+
newDeviceEphemeralPublicKey?: string | undefined;
|
|
253
|
+
sessionId: string;
|
|
254
|
+
status: "completed" | "connected" | "linked_pending_ack" | "ready" | "rolled_back" | "waiting";
|
|
255
|
+
userId: string;
|
|
256
|
+
}, {
|
|
257
|
+
sessionId: import("convex/values").VString<string, "required">;
|
|
258
|
+
userId: import("convex/values").VString<string, "required">;
|
|
259
|
+
ephemeralPublicKey: import("convex/values").VString<string, "required">;
|
|
260
|
+
newDeviceEphemeralPublicKey: import("convex/values").VString<string | undefined, "optional">;
|
|
261
|
+
deviceMetadata: import("convex/values").VObject<{
|
|
262
|
+
appVersion?: string | undefined;
|
|
263
|
+
osVersion?: string | undefined;
|
|
264
|
+
platform?: string | undefined;
|
|
265
|
+
} | undefined, {
|
|
266
|
+
platform: import("convex/values").VString<string | undefined, "optional">;
|
|
267
|
+
appVersion: import("convex/values").VString<string | undefined, "optional">;
|
|
268
|
+
osVersion: import("convex/values").VString<string | undefined, "optional">;
|
|
269
|
+
}, "optional", "appVersion" | "osVersion" | "platform">;
|
|
270
|
+
encryptedMessage: import("convex/values").VString<string | undefined, "optional">;
|
|
271
|
+
assignedDeviceId: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
272
|
+
linkedDeviceToken: import("convex/values").VString<string | undefined, "optional">;
|
|
273
|
+
status: import("convex/values").VUnion<"completed" | "connected" | "linked_pending_ack" | "ready" | "rolled_back" | "waiting", [import("convex/values").VLiteral<"waiting", "required">, import("convex/values").VLiteral<"connected", "required">, import("convex/values").VLiteral<"ready", "required">, import("convex/values").VLiteral<"linked_pending_ack", "required">, import("convex/values").VLiteral<"completed", "required">, import("convex/values").VLiteral<"rolled_back", "required">], "required", never>;
|
|
274
|
+
createdAt: import("convex/values").VFloat64<number, "required">;
|
|
275
|
+
expiresAt: import("convex/values").VFloat64<number, "required">;
|
|
276
|
+
}, "required", "assignedDeviceId" | "createdAt" | "deviceMetadata" | "deviceMetadata.appVersion" | "deviceMetadata.osVersion" | "deviceMetadata.platform" | "encryptedMessage" | "ephemeralPublicKey" | "expiresAt" | "linkedDeviceToken" | "newDeviceEphemeralPublicKey" | "sessionId" | "status" | "userId">, {
|
|
277
|
+
by_expires_at: ["expiresAt", "_creationTime"];
|
|
278
|
+
by_session_id: ["sessionId", "_creationTime"];
|
|
279
|
+
by_user_id: ["userId", "_creationTime"];
|
|
280
|
+
}, {}, {}>;
|
|
281
|
+
senderCertificates: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
282
|
+
certificate: string;
|
|
283
|
+
deviceId: number;
|
|
284
|
+
expiresAt: number;
|
|
285
|
+
identityKey: string;
|
|
286
|
+
identityType: "aci" | "pni";
|
|
287
|
+
issuedAt: number;
|
|
288
|
+
userId: string;
|
|
289
|
+
}, {
|
|
290
|
+
userId: import("convex/values").VString<string, "required">;
|
|
291
|
+
deviceId: import("convex/values").VFloat64<number, "required">;
|
|
292
|
+
identityType: import("convex/values").VUnion<"aci" | "pni", [import("convex/values").VLiteral<"aci", "required">, import("convex/values").VLiteral<"pni", "required">], "required", never>;
|
|
293
|
+
identityKey: import("convex/values").VString<string, "required">;
|
|
294
|
+
certificate: import("convex/values").VString<string, "required">;
|
|
295
|
+
issuedAt: import("convex/values").VFloat64<number, "required">;
|
|
296
|
+
expiresAt: import("convex/values").VFloat64<number, "required">;
|
|
297
|
+
}, "required", "certificate" | "deviceId" | "expiresAt" | "identityKey" | "identityType" | "issuedAt" | "userId">, {
|
|
298
|
+
by_user_id_and_device_id_and_identity_type: ["userId", "deviceId", "identityType", "_creationTime"];
|
|
299
|
+
by_user_id_and_identity_type: ["userId", "identityType", "_creationTime"];
|
|
300
|
+
}, {}, {}>;
|
|
301
|
+
groups: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
302
|
+
encryptedState: ArrayBuffer;
|
|
303
|
+
groupId: string;
|
|
304
|
+
version: number;
|
|
305
|
+
}, {
|
|
306
|
+
groupId: import("convex/values").VString<string, "required">;
|
|
307
|
+
encryptedState: import("convex/values").VBytes<ArrayBuffer, "required">;
|
|
308
|
+
version: import("convex/values").VFloat64<number, "required">;
|
|
309
|
+
}, "required", "encryptedState" | "groupId" | "version">, {
|
|
310
|
+
by_group_id: ["groupId", "_creationTime"];
|
|
311
|
+
}, {}, {}>;
|
|
312
|
+
groupChanges: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
313
|
+
actions: ArrayBuffer;
|
|
314
|
+
changeEpoch: number;
|
|
315
|
+
groupId: string;
|
|
316
|
+
serverSignature: ArrayBuffer;
|
|
317
|
+
timestamp: number;
|
|
318
|
+
version: number;
|
|
319
|
+
}, {
|
|
320
|
+
groupId: import("convex/values").VString<string, "required">;
|
|
321
|
+
version: import("convex/values").VFloat64<number, "required">;
|
|
322
|
+
actions: import("convex/values").VBytes<ArrayBuffer, "required">;
|
|
323
|
+
serverSignature: import("convex/values").VBytes<ArrayBuffer, "required">;
|
|
324
|
+
changeEpoch: import("convex/values").VFloat64<number, "required">;
|
|
325
|
+
timestamp: import("convex/values").VFloat64<number, "required">;
|
|
326
|
+
}, "required", "actions" | "changeEpoch" | "groupId" | "serverSignature" | "timestamp" | "version">, {
|
|
327
|
+
by_group_id_version: ["groupId", "version", "_creationTime"];
|
|
328
|
+
}, {}, {}>;
|
|
329
|
+
groupSnapshots: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
330
|
+
baselineSignature: ArrayBuffer;
|
|
331
|
+
encryptedState: ArrayBuffer;
|
|
332
|
+
groupId: string;
|
|
333
|
+
version: number;
|
|
334
|
+
}, {
|
|
335
|
+
groupId: import("convex/values").VString<string, "required">;
|
|
336
|
+
version: import("convex/values").VFloat64<number, "required">;
|
|
337
|
+
encryptedState: import("convex/values").VBytes<ArrayBuffer, "required">;
|
|
338
|
+
baselineSignature: import("convex/values").VBytes<ArrayBuffer, "required">;
|
|
339
|
+
}, "required", "baselineSignature" | "encryptedState" | "groupId" | "version">, {
|
|
340
|
+
by_group_id_version: ["groupId", "version", "_creationTime"];
|
|
341
|
+
}, {}, {}>;
|
|
342
|
+
}, true>;
|
|
343
|
+
export default _default;
|
|
344
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../remote/relay/convex/component/schema.ts"],"names":[],"mappings":""}
|