@open-e2ee/signal-protocol-sdk 7.2.0 → 8.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (721) hide show
  1. package/ADAPTERS.md +55 -8
  2. package/ARCHITECTURE.md +1 -0
  3. package/CHANGELOG.md +538 -0
  4. package/README.md +10 -6
  5. package/SECURITY.md +2 -2
  6. package/THIRD_PARTY_NOTICES.md +429 -0
  7. package/client/README.md +1 -2
  8. package/device/README.md +50 -19
  9. package/dist/client/client.d.ts +31 -5
  10. package/dist/client/client.d.ts.map +1 -1
  11. package/dist/client/client.js +151 -91
  12. package/dist/client/client.js.map +1 -1
  13. package/dist/client/event-hooks.d.ts.map +1 -1
  14. package/dist/client/event-hooks.js +2 -0
  15. package/dist/client/event-hooks.js.map +1 -1
  16. package/dist/client/files.d.ts.map +1 -1
  17. package/dist/client/files.js +19 -2
  18. package/dist/client/files.js.map +1 -1
  19. package/dist/client/headless.d.ts +1 -1
  20. package/dist/client/headless.js +1 -1
  21. package/dist/client/hosted-anonymous-delivery.d.ts.map +1 -1
  22. package/dist/client/hosted-anonymous-delivery.js +2 -1
  23. package/dist/client/hosted-anonymous-delivery.js.map +1 -1
  24. package/dist/client/hosted-connection.d.ts +1 -1
  25. package/dist/client/hosted-connection.d.ts.map +1 -1
  26. package/dist/client/hosted-connection.js +8 -12
  27. package/dist/client/hosted-connection.js.map +1 -1
  28. package/dist/client/hosted-group-authority.d.ts.map +1 -1
  29. package/dist/client/hosted-group-authority.js +2 -1
  30. package/dist/client/hosted-group-authority.js.map +1 -1
  31. package/dist/client/hosted-groups.d.ts.map +1 -1
  32. package/dist/client/hosted-groups.js +2 -1
  33. package/dist/client/hosted-groups.js.map +1 -1
  34. package/dist/client/hosted-push.d.ts.map +1 -1
  35. package/dist/client/hosted-push.js +2 -1
  36. package/dist/client/hosted-push.js.map +1 -1
  37. package/dist/client/hosted-transport.d.ts +9 -0
  38. package/dist/client/hosted-transport.d.ts.map +1 -1
  39. package/dist/client/hosted-transport.js +59 -24
  40. package/dist/client/hosted-transport.js.map +1 -1
  41. package/dist/client/hosted-trust.d.ts +11 -11
  42. package/dist/client/hosted-trust.d.ts.map +1 -1
  43. package/dist/client/hosted-trust.js +12 -12
  44. package/dist/client/hosted-trust.js.map +1 -1
  45. package/dist/client/messages.d.ts.map +1 -1
  46. package/dist/client/messages.js +6 -1
  47. package/dist/client/messages.js.map +1 -1
  48. package/dist/client/multi-device.d.ts.map +1 -1
  49. package/dist/client/multi-device.js +2 -1
  50. package/dist/client/multi-device.js.map +1 -1
  51. package/dist/client/relay-work.d.ts +30 -0
  52. package/dist/client/relay-work.d.ts.map +1 -0
  53. package/dist/client/relay-work.js +189 -0
  54. package/dist/client/relay-work.js.map +1 -0
  55. package/dist/client/retry.d.ts.map +1 -1
  56. package/dist/client/retry.js +2 -0
  57. package/dist/client/retry.js.map +1 -1
  58. package/dist/client/sessions.d.ts.map +1 -1
  59. package/dist/client/sessions.js +3 -0
  60. package/dist/client/sessions.js.map +1 -1
  61. package/dist/client/signal-service-cipher.d.ts +19 -11
  62. package/dist/client/signal-service-cipher.d.ts.map +1 -1
  63. package/dist/client/signal-service-cipher.js +48 -46
  64. package/dist/client/signal-service-cipher.js.map +1 -1
  65. package/dist/client/state.d.ts +8 -0
  66. package/dist/client/state.d.ts.map +1 -1
  67. package/dist/client/state.js +11 -0
  68. package/dist/client/state.js.map +1 -1
  69. package/dist/device/connection.d.ts +1 -1
  70. package/dist/device/connection.d.ts.map +1 -1
  71. package/dist/device/connection.js +4 -11
  72. package/dist/device/connection.js.map +1 -1
  73. package/dist/device/device-id.d.ts +10 -4
  74. package/dist/device/device-id.d.ts.map +1 -1
  75. package/dist/device/device-id.js +15 -9
  76. package/dist/device/device-id.js.map +1 -1
  77. package/dist/device/device-name-crypto.d.ts.map +1 -1
  78. package/dist/device/device-name-crypto.js +2 -2
  79. package/dist/device/device-name-crypto.js.map +1 -1
  80. package/dist/device/expo/index.d.ts +25 -8
  81. package/dist/device/expo/index.d.ts.map +1 -1
  82. package/dist/device/expo/index.js +58 -8
  83. package/dist/device/expo/index.js.map +1 -1
  84. package/dist/device/index.d.ts +2 -2
  85. package/dist/device/index.d.ts.map +1 -1
  86. package/dist/device/index.js +3 -2
  87. package/dist/device/index.js.map +1 -1
  88. package/dist/device/lifecycle/index.d.ts +4 -2
  89. package/dist/device/lifecycle/index.d.ts.map +1 -1
  90. package/dist/device/lifecycle/index.js.map +1 -1
  91. package/dist/device/lifecycle/manager.d.ts +12 -14
  92. package/dist/device/lifecycle/manager.d.ts.map +1 -1
  93. package/dist/device/lifecycle/manager.js +52 -97
  94. package/dist/device/lifecycle/manager.js.map +1 -1
  95. package/dist/device/lifecycle/types.d.ts +26 -16
  96. package/dist/device/lifecycle/types.d.ts.map +1 -1
  97. package/dist/device/lifecycle/utils.d.ts +8 -4
  98. package/dist/device/lifecycle/utils.d.ts.map +1 -1
  99. package/dist/device/lifecycle/utils.js +12 -16
  100. package/dist/device/lifecycle/utils.js.map +1 -1
  101. package/dist/device/provisioning.d.ts.map +1 -1
  102. package/dist/device/provisioning.js +6 -8
  103. package/dist/device/provisioning.js.map +1 -1
  104. package/dist/device/react-native/index.d.ts +40 -0
  105. package/dist/device/react-native/index.d.ts.map +1 -0
  106. package/dist/device/react-native/index.js +74 -0
  107. package/dist/device/react-native/index.js.map +1 -0
  108. package/dist/device/transfer.d.ts +15 -7
  109. package/dist/device/transfer.d.ts.map +1 -1
  110. package/dist/device/transfer.js +30 -22
  111. package/dist/device/transfer.js.map +1 -1
  112. package/dist/device/types.d.ts +15 -7
  113. package/dist/device/types.d.ts.map +1 -1
  114. package/dist/device/types.js.map +1 -1
  115. package/dist/device/vault-text.d.ts +13 -0
  116. package/dist/device/vault-text.d.ts.map +1 -0
  117. package/dist/device/vault-text.js +17 -0
  118. package/dist/device/vault-text.js.map +1 -0
  119. package/dist/index.d.ts +9 -5
  120. package/dist/index.d.ts.map +1 -1
  121. package/dist/index.js +9 -5
  122. package/dist/index.js.map +1 -1
  123. package/dist/internal/crypto/index.d.ts +3 -3
  124. package/dist/internal/crypto/index.d.ts.map +1 -1
  125. package/dist/internal/crypto/index.js +3 -3
  126. package/dist/internal/crypto/index.js.map +1 -1
  127. package/dist/internal/crypto/random-host.d.ts +1 -1
  128. package/dist/internal/crypto/random-host.d.ts.map +1 -1
  129. package/dist/internal/crypto/random-host.js +3 -2
  130. package/dist/internal/crypto/random-host.js.map +1 -1
  131. package/dist/internal/crypto/random-host.native.d.ts +6 -1
  132. package/dist/internal/crypto/random-host.native.d.ts.map +1 -1
  133. package/dist/internal/crypto/random-host.native.js +14 -10
  134. package/dist/internal/crypto/random-host.native.js.map +1 -1
  135. package/dist/internal/crypto/random-host.node.d.ts +1 -1
  136. package/dist/internal/crypto/random-host.node.d.ts.map +1 -1
  137. package/dist/internal/crypto/random-host.node.js +1 -1
  138. package/dist/internal/crypto/random-host.node.js.map +1 -1
  139. package/dist/internal/crypto/random.d.ts +12 -3
  140. package/dist/internal/crypto/random.d.ts.map +1 -1
  141. package/dist/internal/crypto/random.js +14 -3
  142. package/dist/internal/crypto/random.js.map +1 -1
  143. package/dist/internal/crypto/utils.d.ts.map +1 -1
  144. package/dist/internal/crypto/utils.js +10 -6
  145. package/dist/internal/crypto/utils.js.map +1 -1
  146. package/dist/internal/encoding/proto/primitives.d.ts +2 -0
  147. package/dist/internal/encoding/proto/primitives.d.ts.map +1 -1
  148. package/dist/internal/encoding/proto/primitives.js +2 -1
  149. package/dist/internal/encoding/proto/primitives.js.map +1 -1
  150. package/dist/internal/encoding/proto/signal-message.d.ts +1 -0
  151. package/dist/internal/encoding/proto/signal-message.d.ts.map +1 -1
  152. package/dist/internal/encoding/proto/signal-message.js +2 -1
  153. package/dist/internal/encoding/proto/signal-message.js.map +1 -1
  154. package/dist/internal/groups/authority-certificate.d.ts.map +1 -1
  155. package/dist/internal/groups/authority-certificate.js +2 -1
  156. package/dist/internal/groups/authority-certificate.js.map +1 -1
  157. package/dist/internal/groups/encrypted-state.d.ts.map +1 -1
  158. package/dist/internal/groups/encrypted-state.js +9 -7
  159. package/dist/internal/groups/encrypted-state.js.map +1 -1
  160. package/dist/internal/groups/invite-link.d.ts.map +1 -1
  161. package/dist/internal/groups/invite-link.js +2 -1
  162. package/dist/internal/groups/invite-link.js.map +1 -1
  163. package/dist/internal/groups/manager.d.ts.map +1 -1
  164. package/dist/internal/groups/manager.js +5 -5
  165. package/dist/internal/groups/manager.js.map +1 -1
  166. package/dist/internal/groups/sdk-store.d.ts.map +1 -1
  167. package/dist/internal/groups/sdk-store.js +4 -3
  168. package/dist/internal/groups/sdk-store.js.map +1 -1
  169. package/dist/internal/groups/server-engine.d.ts +6 -1
  170. package/dist/internal/groups/server-engine.d.ts.map +1 -1
  171. package/dist/internal/groups/server-engine.js +11 -15
  172. package/dist/internal/groups/server-engine.js.map +1 -1
  173. package/dist/internal/groups/wire.d.ts.map +1 -1
  174. package/dist/internal/groups/wire.js +2 -1
  175. package/dist/internal/groups/wire.js.map +1 -1
  176. package/dist/internal/platform/blob.d.ts +10 -0
  177. package/dist/internal/platform/blob.d.ts.map +1 -0
  178. package/dist/internal/platform/blob.js +30 -0
  179. package/dist/internal/platform/blob.js.map +1 -0
  180. package/dist/internal/platform/env.d.ts +13 -0
  181. package/dist/internal/platform/env.d.ts.map +1 -0
  182. package/dist/internal/platform/env.js +17 -0
  183. package/dist/internal/platform/env.js.map +1 -0
  184. package/dist/internal/platform/index.d.ts +5 -0
  185. package/dist/internal/platform/index.d.ts.map +1 -0
  186. package/dist/internal/platform/index.js +5 -0
  187. package/dist/internal/platform/index.js.map +1 -0
  188. package/dist/internal/platform/url.d.ts +72 -0
  189. package/dist/internal/platform/url.d.ts.map +1 -0
  190. package/dist/internal/platform/url.js +275 -0
  191. package/dist/internal/platform/url.js.map +1 -0
  192. package/dist/internal/platform/utf8.d.ts +28 -0
  193. package/dist/internal/platform/utf8.d.ts.map +1 -0
  194. package/dist/internal/platform/utf8.js +167 -0
  195. package/dist/internal/platform/utf8.js.map +1 -0
  196. package/dist/internal/protocol/sealed-sender/delivery-token.d.ts +1 -1
  197. package/dist/internal/protocol/sealed-sender/delivery-token.d.ts.map +1 -1
  198. package/dist/internal/protocol/sealed-sender/delivery-token.js +5 -10
  199. package/dist/internal/protocol/sealed-sender/delivery-token.js.map +1 -1
  200. package/dist/internal/protocol/sealed-sender/proto/index.d.ts.map +1 -1
  201. package/dist/internal/protocol/sealed-sender/proto/index.js +2 -4
  202. package/dist/internal/protocol/sealed-sender/proto/index.js.map +1 -1
  203. package/dist/internal/protocol/sender-keys/manager.d.ts.map +1 -1
  204. package/dist/internal/protocol/sender-keys/manager.js +4 -3
  205. package/dist/internal/protocol/sender-keys/manager.js.map +1 -1
  206. package/dist/internal/protocol/spqr/ml-kem-braid/noble-pq/index.d.ts +4 -4
  207. package/dist/internal/protocol/spqr/ml-kem-braid/noble-pq/index.d.ts.map +1 -1
  208. package/dist/internal/protocol/spqr/ml-kem-braid/noble-pq/index.js +8 -10
  209. package/dist/internal/protocol/spqr/ml-kem-braid/noble-pq/index.js.map +1 -1
  210. package/dist/internal/protocol/username/hash.d.ts.map +1 -1
  211. package/dist/internal/protocol/username/hash.js +18 -3
  212. package/dist/internal/protocol/username/hash.js.map +1 -1
  213. package/dist/internal/protocol/username/link.d.ts.map +1 -1
  214. package/dist/internal/protocol/username/link.js +2 -1
  215. package/dist/internal/protocol/username/link.js.map +1 -1
  216. package/dist/internal/protocol/username/proof.d.ts.map +1 -1
  217. package/dist/internal/protocol/username/proof.js +2 -1
  218. package/dist/internal/protocol/username/proof.js.map +1 -1
  219. package/dist/internal/protocol/zk/credentials/attributes.d.ts.map +1 -1
  220. package/dist/internal/protocol/zk/credentials/attributes.js +2 -1
  221. package/dist/internal/protocol/zk/credentials/attributes.js.map +1 -1
  222. package/dist/internal/protocol/zk/credentials/credentials.d.ts.map +1 -1
  223. package/dist/internal/protocol/zk/credentials/credentials.js +8 -6
  224. package/dist/internal/protocol/zk/credentials/credentials.js.map +1 -1
  225. package/dist/internal/protocol/zk/credentials/presentation.d.ts.map +1 -1
  226. package/dist/internal/protocol/zk/credentials/presentation.js +19 -13
  227. package/dist/internal/protocol/zk/credentials/presentation.js.map +1 -1
  228. package/dist/internal/protocol/zk/groups/lizard.d.ts +8 -0
  229. package/dist/internal/protocol/zk/groups/lizard.d.ts.map +1 -1
  230. package/dist/internal/protocol/zk/groups/lizard.js +18 -5
  231. package/dist/internal/protocol/zk/groups/lizard.js.map +1 -1
  232. package/dist/internal/protocol/zk/groups/profile-key-commitment.d.ts.map +1 -1
  233. package/dist/internal/protocol/zk/groups/profile-key-commitment.js +7 -6
  234. package/dist/internal/protocol/zk/groups/profile-key-commitment.js.map +1 -1
  235. package/dist/internal/protocol/zk/groups/profile-key-encryption.d.ts.map +1 -1
  236. package/dist/internal/protocol/zk/groups/profile-key-encryption.js +3 -2
  237. package/dist/internal/protocol/zk/groups/profile-key-encryption.js.map +1 -1
  238. package/dist/internal/protocol/zk/groups/uid-encryption.d.ts.map +1 -1
  239. package/dist/internal/protocol/zk/groups/uid-encryption.js +3 -2
  240. package/dist/internal/protocol/zk/groups/uid-encryption.js.map +1 -1
  241. package/dist/internal/protocol/zk/proofs/point-multiplication.d.ts +53 -0
  242. package/dist/internal/protocol/zk/proofs/point-multiplication.d.ts.map +1 -0
  243. package/dist/internal/protocol/zk/proofs/point-multiplication.js +164 -0
  244. package/dist/internal/protocol/zk/proofs/point-multiplication.js.map +1 -0
  245. package/dist/internal/protocol/zk/proofs/sho.d.ts +1 -0
  246. package/dist/internal/protocol/zk/proofs/sho.d.ts.map +1 -1
  247. package/dist/internal/protocol/zk/proofs/sho.js.map +1 -1
  248. package/dist/internal/protocol/zk/proofs/statement.d.ts.map +1 -1
  249. package/dist/internal/protocol/zk/proofs/statement.js +11 -11
  250. package/dist/internal/protocol/zk/proofs/statement.js.map +1 -1
  251. package/dist/internal/sesame/device-registry.d.ts +16 -3
  252. package/dist/internal/sesame/device-registry.d.ts.map +1 -1
  253. package/dist/internal/sesame/device-registry.js +10 -7
  254. package/dist/internal/sesame/device-registry.js.map +1 -1
  255. package/dist/internal/sesame/index.d.ts +1 -1
  256. package/dist/internal/sesame/index.d.ts.map +1 -1
  257. package/dist/internal/sesame/manager.d.ts.map +1 -1
  258. package/dist/internal/sesame/manager.js +3 -2
  259. package/dist/internal/sesame/manager.js.map +1 -1
  260. package/dist/internal/session/index.d.ts +1 -2
  261. package/dist/internal/session/index.d.ts.map +1 -1
  262. package/dist/internal/session/index.js +1 -1
  263. package/dist/internal/session/index.js.map +1 -1
  264. package/dist/internal/session/validation.d.ts +0 -80
  265. package/dist/internal/session/validation.d.ts.map +1 -1
  266. package/dist/internal/session/validation.js +0 -134
  267. package/dist/internal/session/validation.js.map +1 -1
  268. package/dist/local/store/device-record.d.ts +18 -0
  269. package/dist/local/store/device-record.d.ts.map +1 -0
  270. package/dist/local/store/device-record.js +34 -0
  271. package/dist/local/store/device-record.js.map +1 -0
  272. package/dist/local/store/expo/adapter.d.ts +59 -238
  273. package/dist/local/store/expo/adapter.d.ts.map +1 -1
  274. package/dist/local/store/expo/adapter.js +83 -640
  275. package/dist/local/store/expo/adapter.js.map +1 -1
  276. package/dist/local/store/expo/driver.d.ts +16 -0
  277. package/dist/local/store/expo/driver.d.ts.map +1 -0
  278. package/dist/local/store/expo/driver.js +141 -0
  279. package/dist/local/store/expo/driver.js.map +1 -0
  280. package/dist/local/store/expo/index.d.ts +3 -12
  281. package/dist/local/store/expo/index.d.ts.map +1 -1
  282. package/dist/local/store/expo/index.js +1 -8
  283. package/dist/local/store/expo/index.js.map +1 -1
  284. package/dist/local/store/expo/maintenance.d.ts +3 -2
  285. package/dist/local/store/expo/maintenance.d.ts.map +1 -1
  286. package/dist/local/store/expo/maintenance.js +5 -34
  287. package/dist/local/store/expo/maintenance.js.map +1 -1
  288. package/dist/local/store/index.d.ts +11 -6
  289. package/dist/local/store/index.d.ts.map +1 -1
  290. package/dist/local/store/index.js +11 -6
  291. package/dist/local/store/index.js.map +1 -1
  292. package/dist/local/store/key-value/adapter.d.ts +326 -0
  293. package/dist/local/store/key-value/adapter.d.ts.map +1 -0
  294. package/dist/local/store/key-value/adapter.js +1472 -0
  295. package/dist/local/store/key-value/adapter.js.map +1 -0
  296. package/dist/local/store/{react-native → key-value}/backend-conformance.d.ts +6 -6
  297. package/dist/local/store/key-value/backend-conformance.d.ts.map +1 -0
  298. package/dist/local/store/{react-native → key-value}/backend-conformance.js +3 -3
  299. package/dist/local/store/key-value/backend-conformance.js.map +1 -0
  300. package/dist/local/store/key-value/batch.d.ts +41 -0
  301. package/dist/local/store/key-value/batch.d.ts.map +1 -0
  302. package/dist/local/store/key-value/batch.js +77 -0
  303. package/dist/local/store/key-value/batch.js.map +1 -0
  304. package/dist/local/store/key-value/device-record.d.ts +23 -0
  305. package/dist/local/store/key-value/device-record.d.ts.map +1 -0
  306. package/dist/local/store/key-value/device-record.js +33 -0
  307. package/dist/local/store/key-value/device-record.js.map +1 -0
  308. package/dist/local/store/key-value/index.d.ts +24 -0
  309. package/dist/local/store/key-value/index.d.ts.map +1 -0
  310. package/dist/local/store/key-value/index.js +8 -0
  311. package/dist/local/store/key-value/index.js.map +1 -0
  312. package/dist/local/store/key-value/realm/index.d.ts +83 -0
  313. package/dist/local/store/key-value/realm/index.d.ts.map +1 -0
  314. package/dist/local/store/key-value/realm/index.js +102 -0
  315. package/dist/local/store/key-value/realm/index.js.map +1 -0
  316. package/dist/local/store/{react-native → key-value}/storage.d.ts +6 -6
  317. package/dist/local/store/key-value/storage.d.ts.map +1 -0
  318. package/dist/local/store/key-value/storage.js.map +1 -0
  319. package/dist/local/store/key-value/transactional-backend.d.ts +50 -0
  320. package/dist/local/store/key-value/transactional-backend.d.ts.map +1 -0
  321. package/dist/local/store/key-value/transactional-backend.js +90 -0
  322. package/dist/local/store/key-value/transactional-backend.js.map +1 -0
  323. package/dist/local/store/key-value/value-key.d.ts +34 -0
  324. package/dist/local/store/key-value/value-key.d.ts.map +1 -0
  325. package/dist/local/store/key-value/value-key.js +83 -0
  326. package/dist/local/store/key-value/value-key.js.map +1 -0
  327. package/dist/local/store/memory/adapter.d.ts +8 -0
  328. package/dist/local/store/memory/adapter.d.ts.map +1 -1
  329. package/dist/local/store/memory/adapter.js +60 -75
  330. package/dist/local/store/memory/adapter.js.map +1 -1
  331. package/dist/local/store/node/adapter.d.ts +74 -130
  332. package/dist/local/store/node/adapter.d.ts.map +1 -1
  333. package/dist/local/store/node/adapter.js +83 -727
  334. package/dist/local/store/node/adapter.js.map +1 -1
  335. package/dist/local/store/node/index.d.ts +8 -6
  336. package/dist/local/store/node/index.d.ts.map +1 -1
  337. package/dist/local/store/node/index.js +3 -7
  338. package/dist/local/store/node/index.js.map +1 -1
  339. package/dist/local/store/node/maintenance.d.ts +5 -0
  340. package/dist/local/store/node/maintenance.d.ts.map +1 -0
  341. package/dist/local/store/node/maintenance.js +7 -0
  342. package/dist/local/store/node/maintenance.js.map +1 -0
  343. package/dist/local/store/node/owner-lock.d.ts +26 -0
  344. package/dist/local/store/node/owner-lock.d.ts.map +1 -0
  345. package/dist/local/store/node/owner-lock.js +88 -0
  346. package/dist/local/store/node/owner-lock.js.map +1 -0
  347. package/dist/local/store/react-native/adapter.d.ts +63 -274
  348. package/dist/local/store/react-native/adapter.d.ts.map +1 -1
  349. package/dist/local/store/react-native/adapter.js +80 -1406
  350. package/dist/local/store/react-native/adapter.js.map +1 -1
  351. package/dist/local/store/react-native/index.d.ts +7 -19
  352. package/dist/local/store/react-native/index.d.ts.map +1 -1
  353. package/dist/local/store/react-native/index.js +2 -7
  354. package/dist/local/store/react-native/index.js.map +1 -1
  355. package/dist/local/store/react-native/maintenance.d.ts +5 -0
  356. package/dist/local/store/react-native/maintenance.d.ts.map +1 -0
  357. package/dist/local/store/react-native/maintenance.js +7 -0
  358. package/dist/local/store/react-native/maintenance.js.map +1 -0
  359. package/dist/local/store/sqlite/better-sqlite3-multiple-ciphers-driver.d.ts +38 -0
  360. package/dist/local/store/sqlite/better-sqlite3-multiple-ciphers-driver.d.ts.map +1 -0
  361. package/dist/local/store/sqlite/better-sqlite3-multiple-ciphers-driver.js +196 -0
  362. package/dist/local/store/sqlite/better-sqlite3-multiple-ciphers-driver.js.map +1 -0
  363. package/dist/local/store/sqlite/database.d.ts +20 -0
  364. package/dist/local/store/sqlite/database.d.ts.map +1 -0
  365. package/dist/local/store/sqlite/database.js +41 -0
  366. package/dist/local/store/sqlite/database.js.map +1 -0
  367. package/dist/local/store/sqlite/driver.d.ts +138 -0
  368. package/dist/local/store/sqlite/driver.d.ts.map +1 -0
  369. package/dist/local/store/sqlite/driver.js +10 -0
  370. package/dist/local/store/sqlite/driver.js.map +1 -0
  371. package/dist/local/store/sqlite/encryption.d.ts +61 -0
  372. package/dist/local/store/sqlite/encryption.d.ts.map +1 -0
  373. package/dist/local/store/sqlite/encryption.js +98 -0
  374. package/dist/local/store/sqlite/encryption.js.map +1 -0
  375. package/dist/local/store/sqlite/errors.d.ts +70 -0
  376. package/dist/local/store/sqlite/errors.d.ts.map +1 -0
  377. package/dist/local/store/sqlite/errors.js +101 -0
  378. package/dist/local/store/sqlite/errors.js.map +1 -0
  379. package/dist/local/store/sqlite/executor.d.ts +22 -0
  380. package/dist/local/store/sqlite/executor.d.ts.map +1 -0
  381. package/dist/local/store/sqlite/executor.js +129 -0
  382. package/dist/local/store/sqlite/executor.js.map +1 -0
  383. package/dist/local/store/sqlite/index.d.ts +20 -0
  384. package/dist/local/store/sqlite/index.d.ts.map +1 -0
  385. package/dist/local/store/sqlite/index.js +18 -0
  386. package/dist/local/store/sqlite/index.js.map +1 -0
  387. package/dist/local/store/sqlite/key-storage/account.d.ts +45 -0
  388. package/dist/local/store/sqlite/key-storage/account.d.ts.map +1 -0
  389. package/dist/local/store/sqlite/key-storage/account.js +125 -0
  390. package/dist/local/store/sqlite/key-storage/account.js.map +1 -0
  391. package/dist/local/store/sqlite/key-storage/contact-identities.d.ts +19 -0
  392. package/dist/local/store/sqlite/key-storage/contact-identities.d.ts.map +1 -0
  393. package/dist/local/store/sqlite/key-storage/contact-identities.js +85 -0
  394. package/dist/local/store/sqlite/key-storage/contact-identities.js.map +1 -0
  395. package/dist/local/store/sqlite/key-storage/context.d.ts +19 -0
  396. package/dist/local/store/sqlite/key-storage/context.d.ts.map +1 -0
  397. package/dist/local/store/sqlite/key-storage/context.js +18 -0
  398. package/dist/local/store/sqlite/key-storage/context.js.map +1 -0
  399. package/dist/local/store/sqlite/key-storage/identity-keys.d.ts +18 -0
  400. package/dist/local/store/sqlite/key-storage/identity-keys.d.ts.map +1 -0
  401. package/dist/local/store/sqlite/key-storage/identity-keys.js +88 -0
  402. package/dist/local/store/sqlite/key-storage/identity-keys.js.map +1 -0
  403. package/dist/local/store/sqlite/key-storage/index.d.ts +108 -0
  404. package/dist/local/store/sqlite/key-storage/index.d.ts.map +1 -0
  405. package/dist/local/store/sqlite/key-storage/index.js +241 -0
  406. package/dist/local/store/sqlite/key-storage/index.js.map +1 -0
  407. package/dist/local/store/sqlite/key-storage/message-records.d.ts +41 -0
  408. package/dist/local/store/sqlite/key-storage/message-records.d.ts.map +1 -0
  409. package/dist/local/store/sqlite/key-storage/message-records.js +133 -0
  410. package/dist/local/store/sqlite/key-storage/message-records.js.map +1 -0
  411. package/dist/local/store/sqlite/key-storage/metadata.d.ts +16 -0
  412. package/dist/local/store/sqlite/key-storage/metadata.d.ts.map +1 -0
  413. package/dist/local/store/sqlite/key-storage/metadata.js +53 -0
  414. package/dist/local/store/sqlite/key-storage/metadata.js.map +1 -0
  415. package/dist/local/store/sqlite/key-storage/one-time-prekeys.d.ts +36 -0
  416. package/dist/local/store/sqlite/key-storage/one-time-prekeys.d.ts.map +1 -0
  417. package/dist/local/store/sqlite/key-storage/one-time-prekeys.js +129 -0
  418. package/dist/local/store/sqlite/key-storage/one-time-prekeys.js.map +1 -0
  419. package/dist/local/store/sqlite/key-storage/session-trust.d.ts +10 -0
  420. package/dist/local/store/sqlite/key-storage/session-trust.d.ts.map +1 -0
  421. package/dist/local/store/sqlite/key-storage/session-trust.js +88 -0
  422. package/dist/local/store/sqlite/key-storage/session-trust.js.map +1 -0
  423. package/dist/local/store/sqlite/key-storage/sessions.d.ts +50 -0
  424. package/dist/local/store/sqlite/key-storage/sessions.d.ts.map +1 -0
  425. package/dist/local/store/sqlite/key-storage/sessions.js +209 -0
  426. package/dist/local/store/sqlite/key-storage/sessions.js.map +1 -0
  427. package/dist/local/store/sqlite/key-storage/signed-prekeys.d.ts +69 -0
  428. package/dist/local/store/sqlite/key-storage/signed-prekeys.d.ts.map +1 -0
  429. package/dist/local/store/sqlite/key-storage/signed-prekeys.js +219 -0
  430. package/dist/local/store/sqlite/key-storage/signed-prekeys.js.map +1 -0
  431. package/dist/local/store/sqlite/maintenance.d.ts +7 -0
  432. package/dist/local/store/sqlite/maintenance.d.ts.map +1 -0
  433. package/dist/local/store/sqlite/maintenance.js +32 -0
  434. package/dist/local/store/sqlite/maintenance.js.map +1 -0
  435. package/dist/local/store/sqlite/migrations.d.ts +31 -0
  436. package/dist/local/store/sqlite/migrations.d.ts.map +1 -0
  437. package/dist/local/store/sqlite/migrations.js +232 -0
  438. package/dist/local/store/sqlite/migrations.js.map +1 -0
  439. package/dist/local/store/{expo → sqlite}/models/ec-one-time-prekey.d.ts +17 -22
  440. package/dist/local/store/sqlite/models/ec-one-time-prekey.d.ts.map +1 -0
  441. package/dist/local/store/{expo → sqlite}/models/ec-one-time-prekey.js +61 -99
  442. package/dist/local/store/sqlite/models/ec-one-time-prekey.js.map +1 -0
  443. package/dist/local/store/{expo → sqlite}/models/ec-signed-prekey.d.ts +22 -25
  444. package/dist/local/store/sqlite/models/ec-signed-prekey.d.ts.map +1 -0
  445. package/dist/local/store/{expo → sqlite}/models/ec-signed-prekey.js +82 -128
  446. package/dist/local/store/sqlite/models/ec-signed-prekey.js.map +1 -0
  447. package/dist/local/store/sqlite/models/identity-key-id.d.ts.map +1 -0
  448. package/dist/local/store/sqlite/models/identity-key-id.js.map +1 -0
  449. package/dist/local/store/{expo → sqlite}/models/index.d.ts +5 -5
  450. package/dist/local/store/sqlite/models/index.d.ts.map +1 -0
  451. package/dist/local/store/{expo → sqlite}/models/index.js +12 -5
  452. package/dist/local/store/sqlite/models/index.js.map +1 -0
  453. package/dist/local/store/{expo → sqlite}/models/kyber-one-time-prekey.d.ts +17 -20
  454. package/dist/local/store/sqlite/models/kyber-one-time-prekey.d.ts.map +1 -0
  455. package/dist/local/store/{expo → sqlite}/models/kyber-one-time-prekey.js +65 -105
  456. package/dist/local/store/sqlite/models/kyber-one-time-prekey.js.map +1 -0
  457. package/dist/local/store/{expo → sqlite}/models/kyber-prekey-used.d.ts +3 -3
  458. package/dist/local/store/sqlite/models/kyber-prekey-used.d.ts.map +1 -0
  459. package/dist/local/store/{expo → sqlite}/models/kyber-prekey-used.js +13 -25
  460. package/dist/local/store/sqlite/models/kyber-prekey-used.js.map +1 -0
  461. package/dist/local/store/{expo → sqlite}/models/kyber-prekey.d.ts +16 -19
  462. package/dist/local/store/sqlite/models/kyber-prekey.d.ts.map +1 -0
  463. package/dist/local/store/{expo → sqlite}/models/kyber-prekey.js +67 -111
  464. package/dist/local/store/sqlite/models/kyber-prekey.js.map +1 -0
  465. package/dist/local/store/sqlite/models/local-identity.d.ts +51 -0
  466. package/dist/local/store/sqlite/models/local-identity.d.ts.map +1 -0
  467. package/dist/local/store/sqlite/models/local-identity.js +150 -0
  468. package/dist/local/store/sqlite/models/local-identity.js.map +1 -0
  469. package/dist/local/store/{expo → sqlite}/models/message-record.d.ts +15 -44
  470. package/dist/local/store/sqlite/models/message-record.d.ts.map +1 -0
  471. package/dist/local/store/{expo → sqlite}/models/message-record.js +43 -109
  472. package/dist/local/store/sqlite/models/message-record.js.map +1 -0
  473. package/dist/local/store/sqlite/models/recipient-identity.d.ts +21 -0
  474. package/dist/local/store/sqlite/models/recipient-identity.d.ts.map +1 -0
  475. package/dist/local/store/sqlite/models/recipient-identity.js +59 -0
  476. package/dist/local/store/sqlite/models/recipient-identity.js.map +1 -0
  477. package/dist/local/store/sqlite/models/replaced-prekeys.d.ts +23 -0
  478. package/dist/local/store/sqlite/models/replaced-prekeys.d.ts.map +1 -0
  479. package/dist/local/store/sqlite/models/replaced-prekeys.js +42 -0
  480. package/dist/local/store/sqlite/models/replaced-prekeys.js.map +1 -0
  481. package/dist/local/store/{expo → sqlite}/models/sender-key.d.ts +22 -23
  482. package/dist/local/store/sqlite/models/sender-key.d.ts.map +1 -0
  483. package/dist/local/store/{expo → sqlite}/models/sender-key.js +66 -94
  484. package/dist/local/store/sqlite/models/sender-key.js.map +1 -0
  485. package/dist/local/store/sqlite/models/sesame-user-record.d.ts +32 -0
  486. package/dist/local/store/sqlite/models/sesame-user-record.d.ts.map +1 -0
  487. package/dist/local/store/sqlite/models/sesame-user-record.js +78 -0
  488. package/dist/local/store/sqlite/models/sesame-user-record.js.map +1 -0
  489. package/dist/local/store/{expo → sqlite}/models/session.d.ts +24 -20
  490. package/dist/local/store/sqlite/models/session.d.ts.map +1 -0
  491. package/dist/local/store/{expo → sqlite}/models/session.js +54 -72
  492. package/dist/local/store/sqlite/models/session.js.map +1 -0
  493. package/dist/local/store/sqlite/models/skipped-sender-key.d.ts +24 -0
  494. package/dist/local/store/sqlite/models/skipped-sender-key.d.ts.map +1 -0
  495. package/dist/local/store/sqlite/models/skipped-sender-key.js +62 -0
  496. package/dist/local/store/sqlite/models/skipped-sender-key.js.map +1 -0
  497. package/dist/local/store/sqlite/op-sqlite-driver.d.ts +14 -0
  498. package/dist/local/store/sqlite/op-sqlite-driver.d.ts.map +1 -0
  499. package/dist/local/store/sqlite/op-sqlite-driver.js +180 -0
  500. package/dist/local/store/sqlite/op-sqlite-driver.js.map +1 -0
  501. package/dist/local/store/sqlite/open-store.d.ts +83 -0
  502. package/dist/local/store/sqlite/open-store.d.ts.map +1 -0
  503. package/dist/local/store/sqlite/open-store.js +177 -0
  504. package/dist/local/store/sqlite/open-store.js.map +1 -0
  505. package/dist/local/store/sqlite/schema.d.ts +102 -0
  506. package/dist/local/store/sqlite/schema.d.ts.map +1 -0
  507. package/dist/local/store/sqlite/schema.js +61 -0
  508. package/dist/local/store/sqlite/schema.js.map +1 -0
  509. package/dist/local/store/sqlite/store.d.ts +199 -0
  510. package/dist/local/store/sqlite/store.d.ts.map +1 -0
  511. package/dist/local/store/sqlite/store.js +494 -0
  512. package/dist/local/store/sqlite/store.js.map +1 -0
  513. package/dist/local/store/sqlite/web/driver.d.ts +50 -0
  514. package/dist/local/store/sqlite/web/driver.d.ts.map +1 -0
  515. package/dist/local/store/sqlite/web/driver.js +171 -0
  516. package/dist/local/store/sqlite/web/driver.js.map +1 -0
  517. package/dist/local/store/sqlite/web/protocol.d.ts +80 -0
  518. package/dist/local/store/sqlite/web/protocol.d.ts.map +1 -0
  519. package/dist/local/store/sqlite/web/protocol.js +13 -0
  520. package/dist/local/store/sqlite/web/protocol.js.map +1 -0
  521. package/dist/local/store/sqlite/web/sqlite3mc/sqlite3.mjs +14526 -0
  522. package/dist/local/store/sqlite/web/sqlite3mc/sqlite3.wasm +0 -0
  523. package/dist/local/store/sqlite/web/worker.d.ts +39 -0
  524. package/dist/local/store/sqlite/web/worker.d.ts.map +1 -0
  525. package/dist/local/store/sqlite/web/worker.js +646 -0
  526. package/dist/local/store/sqlite/web/worker.js.map +1 -0
  527. package/dist/local/store/web/adapter.d.ts +5 -14
  528. package/dist/local/store/web/adapter.d.ts.map +1 -1
  529. package/dist/local/store/web/adapter.js +119 -106
  530. package/dist/local/store/web/adapter.js.map +1 -1
  531. package/dist/local/store/web/device-record.d.ts +23 -0
  532. package/dist/local/store/web/device-record.d.ts.map +1 -0
  533. package/dist/local/store/web/device-record.js +31 -0
  534. package/dist/local/store/web/device-record.js.map +1 -0
  535. package/dist/local/store/web-sqlite/adapter.d.ts +101 -0
  536. package/dist/local/store/web-sqlite/adapter.d.ts.map +1 -0
  537. package/dist/local/store/web-sqlite/adapter.js +154 -0
  538. package/dist/local/store/web-sqlite/adapter.js.map +1 -0
  539. package/dist/local/store/web-sqlite/index.d.ts +14 -0
  540. package/dist/local/store/web-sqlite/index.d.ts.map +1 -0
  541. package/dist/local/store/web-sqlite/index.js +3 -0
  542. package/dist/local/store/web-sqlite/index.js.map +1 -0
  543. package/dist/local/store/web-sqlite/maintenance.d.ts +5 -0
  544. package/dist/local/store/web-sqlite/maintenance.d.ts.map +1 -0
  545. package/dist/local/store/web-sqlite/maintenance.js +7 -0
  546. package/dist/local/store/web-sqlite/maintenance.js.map +1 -0
  547. package/dist/local/store/web-sqlite/store-locks.d.ts +33 -0
  548. package/dist/local/store/web-sqlite/store-locks.d.ts.map +1 -0
  549. package/dist/local/store/web-sqlite/store-locks.js +60 -0
  550. package/dist/local/store/web-sqlite/store-locks.js.map +1 -0
  551. package/dist/local/vault/electron-safe-storage.d.ts +45 -0
  552. package/dist/local/vault/electron-safe-storage.d.ts.map +1 -0
  553. package/dist/local/vault/electron-safe-storage.js +212 -0
  554. package/dist/local/vault/electron-safe-storage.js.map +1 -0
  555. package/dist/local/vault/index.d.ts +4 -2
  556. package/dist/local/vault/index.d.ts.map +1 -1
  557. package/dist/local/vault/indexed-db.d.ts +37 -0
  558. package/dist/local/vault/indexed-db.d.ts.map +1 -0
  559. package/dist/local/vault/indexed-db.js +102 -0
  560. package/dist/local/vault/indexed-db.js.map +1 -0
  561. package/dist/local/vault/react-native-keychain.d.ts +12 -0
  562. package/dist/local/vault/react-native-keychain.d.ts.map +1 -0
  563. package/dist/local/vault/react-native-keychain.js +71 -0
  564. package/dist/local/vault/react-native-keychain.js.map +1 -0
  565. package/dist/local/vault/require.d.ts +10 -0
  566. package/dist/local/vault/require.d.ts.map +1 -0
  567. package/dist/local/vault/require.js +16 -0
  568. package/dist/local/vault/require.js.map +1 -0
  569. package/dist/logger.d.ts.map +1 -1
  570. package/dist/logger.js +2 -1
  571. package/dist/logger.js.map +1 -1
  572. package/dist/media/index.d.ts.map +1 -1
  573. package/dist/media/index.js +2 -1
  574. package/dist/media/index.js.map +1 -1
  575. package/dist/profile/contact-state.d.ts.map +1 -1
  576. package/dist/profile/contact-state.js +2 -4
  577. package/dist/profile/contact-state.js.map +1 -1
  578. package/dist/profile/index.d.ts +0 -1
  579. package/dist/profile/index.d.ts.map +1 -1
  580. package/dist/profile/index.js +0 -2
  581. package/dist/profile/index.js.map +1 -1
  582. package/dist/profile/profile-key.d.ts +16 -11
  583. package/dist/profile/profile-key.d.ts.map +1 -1
  584. package/dist/profile/profile-key.js +29 -29
  585. package/dist/profile/profile-key.js.map +1 -1
  586. package/dist/profile/update-service.d.ts +6 -0
  587. package/dist/profile/update-service.d.ts.map +1 -1
  588. package/dist/profile/update-service.js +3 -1
  589. package/dist/profile/update-service.js.map +1 -1
  590. package/dist/remote/object-store/validation.d.ts.map +1 -1
  591. package/dist/remote/object-store/validation.js +2 -1
  592. package/dist/remote/object-store/validation.js.map +1 -1
  593. package/dist/remote/relay/memory/adapter.d.ts +2 -3
  594. package/dist/remote/relay/memory/adapter.d.ts.map +1 -1
  595. package/dist/remote/relay/memory/adapter.js +22 -30
  596. package/dist/remote/relay/memory/adapter.js.map +1 -1
  597. package/dist/remote/relay/memory/failures.d.ts.map +1 -1
  598. package/dist/remote/relay/memory/failures.js +2 -1
  599. package/dist/remote/relay/memory/failures.js.map +1 -1
  600. package/dist/remote/relay/memory/group-server.d.ts +5 -1
  601. package/dist/remote/relay/memory/group-server.d.ts.map +1 -1
  602. package/dist/remote/relay/memory/group-server.js +11 -1
  603. package/dist/remote/relay/memory/group-server.js.map +1 -1
  604. package/dist/safety/url.d.ts.map +1 -1
  605. package/dist/safety/url.js +21 -26
  606. package/dist/safety/url.js.map +1 -1
  607. package/dist/types/api.d.ts +15 -2
  608. package/dist/types/api.d.ts.map +1 -1
  609. package/dist/types/errors.d.ts +97 -1
  610. package/dist/types/errors.d.ts.map +1 -1
  611. package/dist/types/errors.js +105 -1
  612. package/dist/types/errors.js.map +1 -1
  613. package/dist/types/session.d.ts.map +1 -1
  614. package/dist/types/session.js +2 -1
  615. package/dist/types/session.js.map +1 -1
  616. package/dist/utils/retry.d.ts +2 -0
  617. package/dist/utils/retry.d.ts.map +1 -1
  618. package/dist/utils/retry.js +4 -2
  619. package/dist/utils/retry.js.map +1 -1
  620. package/docs/ASSURANCE.md +84 -11
  621. package/docs/CLIENT_COMPOSITION.md +1 -2
  622. package/docs/DEVIATIONS.md +1 -1
  623. package/docs/ERROR_HANDLING.md +7 -1
  624. package/docs/GETTING_STARTED.md +1 -2
  625. package/docs/PACKAGE_SURFACE.md +32 -12
  626. package/docs/RECIPES.md +1 -2
  627. package/examples/browser/index.html +1 -1
  628. package/local/store/README.md +142 -42
  629. package/local/store/expo/README.md +67 -47
  630. package/local/store/key-value/README.md +278 -0
  631. package/local/store/node/README.md +206 -46
  632. package/local/store/react-native/README.md +120 -61
  633. package/local/store/web/README.md +14 -0
  634. package/local/store/web-sqlite/README.md +210 -0
  635. package/local/vault/README.md +115 -2
  636. package/package.json +42 -23
  637. package/profile/README.md +9 -11
  638. package/remote/README.md +1 -2
  639. package/dist/local/store/expo/database-key.d.ts +0 -142
  640. package/dist/local/store/expo/database-key.d.ts.map +0 -1
  641. package/dist/local/store/expo/database-key.js +0 -312
  642. package/dist/local/store/expo/database-key.js.map +0 -1
  643. package/dist/local/store/expo/db.d.ts +0 -95
  644. package/dist/local/store/expo/db.d.ts.map +0 -1
  645. package/dist/local/store/expo/db.js +0 -147
  646. package/dist/local/store/expo/db.js.map +0 -1
  647. package/dist/local/store/expo/key-storage.d.ts +0 -429
  648. package/dist/local/store/expo/key-storage.d.ts.map +0 -1
  649. package/dist/local/store/expo/key-storage.js +0 -1361
  650. package/dist/local/store/expo/key-storage.js.map +0 -1
  651. package/dist/local/store/expo/models/ec-one-time-prekey.d.ts.map +0 -1
  652. package/dist/local/store/expo/models/ec-one-time-prekey.js.map +0 -1
  653. package/dist/local/store/expo/models/ec-signed-prekey.d.ts.map +0 -1
  654. package/dist/local/store/expo/models/ec-signed-prekey.js.map +0 -1
  655. package/dist/local/store/expo/models/identity-key-id.d.ts.map +0 -1
  656. package/dist/local/store/expo/models/identity-key-id.js.map +0 -1
  657. package/dist/local/store/expo/models/index.d.ts.map +0 -1
  658. package/dist/local/store/expo/models/index.js.map +0 -1
  659. package/dist/local/store/expo/models/kyber-one-time-prekey.d.ts.map +0 -1
  660. package/dist/local/store/expo/models/kyber-one-time-prekey.js.map +0 -1
  661. package/dist/local/store/expo/models/kyber-prekey-used.d.ts.map +0 -1
  662. package/dist/local/store/expo/models/kyber-prekey-used.js.map +0 -1
  663. package/dist/local/store/expo/models/kyber-prekey.d.ts.map +0 -1
  664. package/dist/local/store/expo/models/kyber-prekey.js.map +0 -1
  665. package/dist/local/store/expo/models/local-identity.d.ts +0 -52
  666. package/dist/local/store/expo/models/local-identity.d.ts.map +0 -1
  667. package/dist/local/store/expo/models/local-identity.js +0 -166
  668. package/dist/local/store/expo/models/local-identity.js.map +0 -1
  669. package/dist/local/store/expo/models/message-record.d.ts.map +0 -1
  670. package/dist/local/store/expo/models/message-record.js.map +0 -1
  671. package/dist/local/store/expo/models/recipient-identity.d.ts +0 -21
  672. package/dist/local/store/expo/models/recipient-identity.d.ts.map +0 -1
  673. package/dist/local/store/expo/models/recipient-identity.js +0 -66
  674. package/dist/local/store/expo/models/recipient-identity.js.map +0 -1
  675. package/dist/local/store/expo/models/replaced-prekey-utils.d.ts +0 -33
  676. package/dist/local/store/expo/models/replaced-prekey-utils.d.ts.map +0 -1
  677. package/dist/local/store/expo/models/replaced-prekey-utils.js +0 -54
  678. package/dist/local/store/expo/models/replaced-prekey-utils.js.map +0 -1
  679. package/dist/local/store/expo/models/sender-key.d.ts.map +0 -1
  680. package/dist/local/store/expo/models/sender-key.js.map +0 -1
  681. package/dist/local/store/expo/models/session.d.ts.map +0 -1
  682. package/dist/local/store/expo/models/session.js.map +0 -1
  683. package/dist/local/store/expo/schema.d.ts +0 -1917
  684. package/dist/local/store/expo/schema.d.ts.map +0 -1
  685. package/dist/local/store/expo/schema.js +0 -197
  686. package/dist/local/store/expo/schema.js.map +0 -1
  687. package/dist/local/store/node/database-encryption.d.ts +0 -109
  688. package/dist/local/store/node/database-encryption.d.ts.map +0 -1
  689. package/dist/local/store/node/database-encryption.js +0 -202
  690. package/dist/local/store/node/database-encryption.js.map +0 -1
  691. package/dist/local/store/node/database-file-commit.d.ts +0 -8
  692. package/dist/local/store/node/database-file-commit.d.ts.map +0 -1
  693. package/dist/local/store/node/database-file-commit.js +0 -62
  694. package/dist/local/store/node/database-file-commit.js.map +0 -1
  695. package/dist/local/store/node/database-key.d.ts +0 -129
  696. package/dist/local/store/node/database-key.d.ts.map +0 -1
  697. package/dist/local/store/node/database-key.js +0 -293
  698. package/dist/local/store/node/database-key.js.map +0 -1
  699. package/dist/local/store/node/database-lock.d.ts +0 -8
  700. package/dist/local/store/node/database-lock.d.ts.map +0 -1
  701. package/dist/local/store/node/database-lock.js +0 -44
  702. package/dist/local/store/node/database-lock.js.map +0 -1
  703. package/dist/local/store/node/database.d.ts +0 -226
  704. package/dist/local/store/node/database.d.ts.map +0 -1
  705. package/dist/local/store/node/database.js +0 -813
  706. package/dist/local/store/node/database.js.map +0 -1
  707. package/dist/local/store/react-native/backend-conformance.d.ts.map +0 -1
  708. package/dist/local/store/react-native/backend-conformance.js.map +0 -1
  709. package/dist/local/store/react-native/reference-backend.d.ts +0 -43
  710. package/dist/local/store/react-native/reference-backend.d.ts.map +0 -1
  711. package/dist/local/store/react-native/reference-backend.js +0 -178
  712. package/dist/local/store/react-native/reference-backend.js.map +0 -1
  713. package/dist/local/store/react-native/storage.d.ts.map +0 -1
  714. package/dist/local/store/react-native/storage.js.map +0 -1
  715. package/dist/profile/storage.d.ts +0 -61
  716. package/dist/profile/storage.d.ts.map +0 -1
  717. package/dist/profile/storage.js +0 -145
  718. package/dist/profile/storage.js.map +0 -1
  719. /package/dist/local/store/{react-native → key-value}/storage.js +0 -0
  720. /package/dist/local/store/{expo → sqlite}/models/identity-key-id.d.ts +0 -0
  721. /package/dist/local/store/{expo → sqlite}/models/identity-key-id.js +0 -0
package/ADAPTERS.md CHANGED
@@ -33,15 +33,39 @@ The storage interface handles client-owned Signal Protocol state:
33
33
 
34
34
  Use:
35
35
 
36
- - `ExpoSignalProtocolStore` from `@open-e2ee/signal-protocol-sdk/local/store/expo`
37
- - Expo integration helpers like `getKeyStorage`, `getDatabaseKeyManager`, `clearDatabaseKeyCache`, and `createPreKeyMaintenanceStore` from `@open-e2ee/signal-protocol-sdk/local/store/expo`
38
- - `IndexedDbSignalProtocolStore` from `@open-e2ee/signal-protocol-sdk/local/store/web`
39
- - `ReactNativeSignalProtocolStore` from `@open-e2ee/signal-protocol-sdk/local/store/react-native` (use `await ReactNativeSignalProtocolStore.create({ storage })` with a caller-provided key-value backend, verified with the exported backend-conformance kit)
40
- - `NodeSignalProtocolStore` from `@open-e2ee/signal-protocol-sdk/local/store/node`
36
+ - `expoStore` and `ExpoSignalProtocolStore` from `@open-e2ee/signal-protocol-sdk/local/store/expo` (`await expoStore()` opens the SDK-owned SQLCipher database; `resetExpoStore` deletes it and opens an empty one; `createPreKeyMaintenanceStore` takes an open store)
37
+ - `reactNativeStore` and `ReactNativeSignalProtocolStore` from `@open-e2ee/signal-protocol-sdk/local/store/react-native` (bare React Native: `await reactNativeStore()` opens the SDK-owned SQLCipher database on op-sqlite with its key in the react-native-keychain vault; `resetReactNativeStore` deletes it and opens an empty one; `createPreKeyMaintenanceStore` takes an open store)
38
+ - `webSqliteStore` and `WebSqliteSignalProtocolStore` from `@open-e2ee/signal-protocol-sdk/local/store/web-sqlite` (browsers: `await webSqliteStore()` opens the SDK-owned SQLite database in the origin private file system, encrypted in a Wasm worker; `resetWebSqliteStore` deletes it and opens an empty one; `createPreKeyMaintenanceStore` takes an open store; the page's Content Security Policy must allow `'wasm-unsafe-eval'`)
39
+ - `IndexedDbSignalProtocolStore` from `@open-e2ee/signal-protocol-sdk/local/store/web` (browsers without the origin private file system, where `webSqliteStore` fails with `OPFS_UNAVAILABLE`)
40
+ - `KeyValueSignalProtocolStore` from `@open-e2ee/signal-protocol-sdk/local/store/key-value` (use `await KeyValueSignalProtocolStore.create({ storage, vault })` with a caller-provided key-value backend, verified with the exported backend-conformance kit, and a secret vault that holds the value key)
41
+ - `createRealmKeyValueBackend` from `@open-e2ee/signal-protocol-sdk/local/store/key-value/realm` (a key-value backend over an application-installed Realm)
42
+ - `createTransactionalKeyValueBackend` from `@open-e2ee/signal-protocol-sdk/local/store/key-value` (a key-value backend over another engine's transaction, through a synchronous `KeyValueTransaction` handle; the SDK applies each `atomicWrite` batch inside the transaction)
43
+ - `nodeStore` and `NodeSignalProtocolStore` from `@open-e2ee/signal-protocol-sdk/local/store/node` (`await nodeStore({ directory, vault })` opens the SDK-owned SQLCipher database on the `better-sqlite3-multiple-ciphers` peer; `resetNodeStore` deletes it and opens an empty one; one process at a time owns the file; `createPreKeyMaintenanceStore` takes an open store)
41
44
  - `InMemorySignalProtocolStore` from `@open-e2ee/signal-protocol-sdk/local/store/memory`
42
45
  - or a custom implementation
43
46
 
44
- The bare React Native store uses `expo-crypto` for random bytes. A bare React Native application must install Expo modules.
47
+ On React Native and Expo, the SDK reads random bytes only from the global `crypto.getRandomValues`. Install `react-native-get-random-values` 2.x or `react-native-quick-crypto`, and load it before the first SDK call. Without a global source, the SDK throws `SecureRandomUnavailableError`.
48
+
49
+ ### Local secret vault: `SignalProtocolLocalSecretVault`
50
+
51
+ The device ID, the device-lifecycle state, the own profile key, and the value
52
+ key of the key-value store live in the vault that the application passes. The SDK does not choose a vault, and it
53
+ never writes these secrets to `localStorage`. A call without a vault throws an
54
+ `EncryptionError` with code `SECRET_VAULT_REQUIRED`.
55
+
56
+ Use:
57
+
58
+ - `ExpoSecureStoreSignalProtocolSecretVault` from `@open-e2ee/signal-protocol-sdk/local/vault/expo-secure-store`
59
+ - or a custom implementation
60
+
61
+ ### Device metadata
62
+
63
+ The shared `./device` entries take platform metadata as an input and omit each
64
+ field that the application does not supply. These entries read it from the
65
+ platform:
66
+
67
+ - `@open-e2ee/signal-protocol-sdk/device/expo` (`react-native`, `expo-constants`, `expo-device`)
68
+ - `@open-e2ee/signal-protocol-sdk/device/react-native` (`react-native`, `react-native-device-info`)
45
69
 
46
70
  ### Remote object store: `SignalProtocolRemoteObjectStore`
47
71
 
@@ -65,6 +89,30 @@ private to the backend. The Convex server helper can supply generic validators,
65
89
  R2 calls, expiry parsing, and metadata verification, while app-owned internal
66
90
  functions retain authentication, authorization, and persistence.
67
91
 
92
+ ### Local secret vault: `SignalProtocolLocalSecretVault`
93
+
94
+ Stores small bootstrap secrets, such as a database encryption key, in the
95
+ platform secret store, apart from the local store.
96
+
97
+ Use:
98
+
99
+ - `ExpoSecureStoreSignalProtocolSecretVault` from `@open-e2ee/signal-protocol-sdk/local/vault/expo-secure-store`
100
+ - `ReactNativeKeychainSignalProtocolSecretVault` from `@open-e2ee/signal-protocol-sdk/local/vault/react-native-keychain` (optional peer `react-native-keychain` 10.0.0 or later)
101
+ - `ElectronSafeStorageSignalProtocolSecretVault` from `@open-e2ee/signal-protocol-sdk/local/vault/electron-safe-storage`, in the Electron main process, with the app's `safeStorage`
102
+ - or a custom implementation
103
+
104
+ The Expo and React Native adapters keep the secret on this device. The Electron
105
+ adapter keeps only ciphertexts in a file that the app names, and the key that
106
+ decrypts them stays in the OS secret store. It fails closed on the Linux
107
+ `basic_text` backend. The react-native-keychain adapter
108
+ sets fixed options that the application cannot change: iOS
109
+ `AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY`, Android `AES_GCM_NO_AUTH` storage at the
110
+ `SECURE_SOFTWARE` level, and no `cloudSync` key. react-native-keychain 10.0.0
111
+ turns iCloud sync on for any `cloudSync` value, `false` included
112
+ ([issue #800](https://github.com/oblador/react-native-keychain/issues/800)).
113
+ The [secret-vault guide](./local/vault/README.md) gives the reason for each
114
+ option.
115
+
68
116
  ## Composition
69
117
 
70
118
  ### Minimal local client
@@ -88,11 +136,10 @@ const signal = await createSignalProtocolClient({
88
136
  import { createHostedSignalProtocolClient } from "@open-e2ee/signal-protocol-sdk";
89
137
  import { expoStore } from "@open-e2ee/signal-protocol-sdk/local/store/expo";
90
138
 
91
- // Initialize the application-owned Expo/SQLCipher database bindings first.
92
139
  const signal = await createHostedSignalProtocolClient({
93
140
  adapters: {
94
141
  // Expo storage owns this device's private keys and session state.
95
- storage: expoStore(),
142
+ storage: await expoStore(),
96
143
  },
97
144
  hosted: {
98
145
  // The environment-scoped connection URL from the OpenE2EE console.
package/ARCHITECTURE.md CHANGED
@@ -73,6 +73,7 @@ import {
73
73
  Platform and backend integrations are explicit subpaths such as:
74
74
 
75
75
  - `@open-e2ee/signal-protocol-sdk/local/store/expo`
76
+ - `@open-e2ee/signal-protocol-sdk/local/store/react-native`
76
77
  - `@open-e2ee/signal-protocol-sdk/local/store/memory`
77
78
  - `@open-e2ee/signal-protocol-sdk/remote/relay/memory`
78
79
  - `@open-e2ee/signal-protocol-sdk/remote/object-store/convex-r2`
package/CHANGELOG.md CHANGED
@@ -1,5 +1,543 @@
1
1
  # Changelog
2
2
 
3
+ ## 8.1.0
4
+
5
+ - **Changed: the web SQLite store is no longer experimental.** Its last
6
+ graduation gate, a soak, now runs in Chromium on each change to the main
7
+ branch and on each pull request that is ready for review. It drives open,
8
+ write, read, and close cycles, one long session of churn, and writes that
9
+ two tabs make in turn, and it fails when latency, memory, or the file size
10
+ grows over the run. The guides now name `webSqliteStore` first for
11
+ browsers where the origin private file system works, and `indexedDbStore`
12
+ where it is not available. The error of `DefaultSignalProtocolClient.create()`
13
+ without storage names both.
14
+ - **Fixed: an open of the web SQLite store under a full origin quota rejects
15
+ with `StorageQuotaExceededError`.** The open rejected with
16
+ `OPFS_FILE_BUSY`. After a failed first open, the store could also fail every
17
+ later open with `SQLITE_CANTOPEN`. Now the open rejects with
18
+ `StorageQuotaExceededError` (`STORAGE_QUOTA_EXCEEDED`), a new store writes
19
+ no key and no database file, and the open succeeds after space frees.
20
+ - **Changed: hosted prekey reads send the destination mailbox generation.**
21
+ The hosted Relay client sends the `mailboxGeneration` field on each prekey
22
+ bundle fetch and each prekey status read, which includes an identity key
23
+ read. The Relay keeps the prekeys of a device for each mailbox generation,
24
+ so a read after a recovery gets the prekeys of the recovered device. The own
25
+ device sends the generation of its session. For another device, the client
26
+ reads the device directory first. When the Relay does not find the prekeys
27
+ at a cached generation, the client reads the directory one more time and
28
+ tries again. A directory read now also removes the cached generation of each
29
+ device that the directory no longer lists.
30
+ - **Changed: group zero-knowledge proofs and credential presentations are
31
+ about twice as fast.** The constant generators of the group credential and
32
+ encryption systems keep a table of their multiples and their encoding. A
33
+ proof, a presentation, and a presentation verification calculate each sum
34
+ of products with one constant-time multiscalar multiplication, which uses
35
+ these tables. The Lizard decode uses an addition chain for its field
36
+ exponentiation. The proofs, the credentials, and their bytes do not change.
37
+
38
+ ## 8.0.0
39
+
40
+ 8.0.0 is a major release. The entries below give the details. To upgrade from
41
+ 7.2.0:
42
+
43
+ 1. **React Native and Expo: install a global random source.** Install
44
+ `react-native-get-random-values` 2.x or `react-native-quick-crypto`, and
45
+ load it before the first SDK call.
46
+ 2. **Pass a secret vault.** The profile key, the device ID, the
47
+ device-lifecycle state, and the key-value store's value key live in a
48
+ `SignalProtocolLocalSecretVault` that the app passes. A call without one
49
+ throws `SECRET_VAULT_REQUIRED`. Bare React Native apps can use
50
+ `./local/vault/react-native-keychain`, Expo apps
51
+ `./local/vault/expo-secure-store`, and Electron apps
52
+ `./local/vault/electron-safe-storage`.
53
+ 3. **Key-value store: change the import and the names.** The store moves from
54
+ `./local/store/react-native` to `./local/store/key-value`, and its names
55
+ drop the `ReactNative` prefix. To keep existing data, move its value key
56
+ into the vault before the first open.
57
+ 4. **Bare React Native: `./local/store/react-native` is now the SQLite
58
+ store.** `reactNativeStore()` opens an SDK-owned SQLCipher database on the
59
+ optional peer `@op-engineering/op-sqlite` 18.2.5 or later, with the
60
+ op-sqlite SQLCipher build turned on.
61
+ 5. **Expo: await the store.** Replace `expoStore()` with `await expoStore()`.
62
+ The SDK owns the database, its schema, and its key.
63
+ 6. **Node and Electron: open the new SQLCipher store.** `nodeStore({
64
+ directory, vault })` opens an SDK-owned SQLCipher database on the optional
65
+ peer `better-sqlite3-multiple-ciphers` 13.0.3 or later. It does not read
66
+ the files of the 7.2.0 Node store.
67
+ 7. **Remove the deleted names.** The `./local/store/expo/db` and
68
+ `./local/store/expo/schema` entries, the Expo database and key functions,
69
+ the profile-key storage functions, `createReferenceReactNativeBackend`, and
70
+ the `drizzle-orm`, `expo-crypto`, and `fs-native-extensions` peers are
71
+ removed.
72
+ 8. **Hosted Relay: copy the connection URL from the console again.** The
73
+ API path and the developer environment kind changed, and the sandbox and
74
+ staging hosts moved to new names.
75
+
76
+ Browser apps can also use the new `./local/store/web-sqlite` store, an
77
+ encrypted SQLite database in the origin private file system. It is optional,
78
+ and the IndexedDB store stays at `./local/store/web`.
79
+
80
+ - **Removed: the optional `expo-crypto` peer.** The SDK does not load
81
+ `expo-crypto`, so `package.json` no longer lists it. An app that installed
82
+ `expo-crypto` only for the SDK can uninstall it.
83
+ - **Added: web SQLite store gates in WebKit.** A macOS job runs the web
84
+ SQLite store's contract, interruption, and multi-tab gates in WebKit on
85
+ each change to the web SQLite store, the SQLite core, the storage contract,
86
+ the key vault, the gate, or a dependency. Linux WebKit (WebKitGTK) has no
87
+ origin private file system, so the web SQLite store does not run there. In
88
+ each job that must run these gates, a gate that skips for want of the
89
+ origin private file system fails. The store stays experimental: its
90
+ storage-pressure and soak gates do not exist yet.
91
+ - **Fixed: the SQLite stores report full storage as
92
+ `StorageQuotaExceededError`.** When the database file cannot grow because
93
+ the disk or the storage quota is full, a write on the Expo, bare React
94
+ Native, Node, or web SQLite store rejects with `StorageQuotaExceededError`
95
+ (`STORAGE_QUOTA_EXCEEDED`), with the SQLite error as `originalError`. It
96
+ rejected with the SQLite error or a `KEY_STORAGE_ERROR`, and the web SQLite
97
+ store reported a full origin quota as a disk I/O error. The rejected write
98
+ does not persist, the store stays open, and the write succeeds after space
99
+ frees.
100
+ - **Changed: each store and vault guide names the optional peers of its
101
+ entry.** Each guide has an install command for the peers that its entry
102
+ loads. For example, `./local/store/web` and `./local/store/web-sqlite` need
103
+ `idb`, and a bundler fails the app build without it.
104
+ - **Fixed: a group delete deletes the skipped sender keys.** The in-memory,
105
+ key-value, and IndexedDB stores kept them after
106
+ `deleteAllSenderKeysForGroup`. These keys decrypt skipped group messages.
107
+ The stores now delete them together with the sender keys of the group. A
108
+ group whose identifier starts with the identifier of the deleted group
109
+ keeps its keys.
110
+ - **Fixed: sender keys no longer collide.** Group `a` with sender `b:c` and
111
+ group `a:b` with sender `c` shared keys. In the in-memory and IndexedDB
112
+ stores, they shared one sender key record. In IndexedDB, they also shared
113
+ one skipped key. In database version 7, a sender key record has an array
114
+ key of group, sender, and device. The key of a skipped key adds the index,
115
+ and a group index finds the skipped keys of a group. The in-memory store
116
+ keys both with JSON arrays.
117
+ - **Changed: IndexedDB version 7 deletes stored sender keys.** The upgrade
118
+ deletes the version 6 sender key records and skipped keys. After the
119
+ upgrade, each group needs a new sender key distribution before its messages
120
+ decrypt. A late message for a deleted skipped key does not decrypt.
121
+ - **Fixed: `deleteAllSenderKeysForGroup` on the Expo store deletes the
122
+ group's skipped message keys.** On a store from `expoStore()`, it deleted
123
+ the group's sender keys and kept each skipped message key, which still
124
+ decrypts its message after the group is gone.
125
+ - **Fixed: the Expo store keeps SESAME user records and device identity
126
+ pins.** On a store from `expoStore()`, `setUserRecord` stored nothing, and
127
+ `setDeviceRecord` stored only the session. A user or device with no session
128
+ had no record, and `getDeviceRecord` returned the identity from the contact
129
+ trust store, not the pin that was set. The store now returns each user and
130
+ device that was set, with the pin that was set and the device's current
131
+ session, if any. `setDeviceRecord` and `deleteDeviceRecord` change the
132
+ record and its session together or not at all. `getAllUserIds` and
133
+ `getSesameDeviceIds` list the users and devices that were set, as on the
134
+ other stores.
135
+ - **Fixed: the Expo store keeps a registration ID that is set before the
136
+ identity key.** On a store from `expoStore()`, `setLocalRegistrationId` did
137
+ nothing until an identity key was stored.
138
+ - **Fixed: a client on the key-value store can send after it establishes a
139
+ session.** `./local/store/key-value` (`./local/store/react-native` before
140
+ the move) lost the session from each SESAME device record, so every send
141
+ failed with `No active session`. It also returned the device identity pin as
142
+ a plain object, not its bytes, after a reopen. The store now joins each
143
+ device with the session under its session key, and it keeps the pin bytes.
144
+ - **Fixed: a client on the IndexedDB store can send after it establishes a
145
+ session.** `./local/store/web` returned each SESAME device record with no
146
+ session, so every send failed with `No active session`. `getUserRecord` and
147
+ `getDeviceRecord` on the IndexedDB store, and `getUserRecord` on the
148
+ in-memory store, now join each device with the session under its address,
149
+ and the stored identity pin wins over one derived from the session. On the
150
+ IndexedDB store, `setDeviceRecord` writes the device and its session in one
151
+ transaction, and `deleteDeviceRecord` removes the session with the device.
152
+ - **Fixed: the in-memory store returns no session for a device whose session
153
+ is deleted.** After `deleteSessionRecord`, `getDeviceRecord` and
154
+ `getUserRecord` on `./local/store/memory` returned the session that
155
+ `setDeviceRecord` stored earlier. The store now keeps each device without
156
+ its session and joins the device with the session under its address, as
157
+ the other stores do. `setDeviceRecord` rejects a session record that is not
158
+ current, and `setUserRecord` stores no session.
159
+ - **Added: `./local/store/web-sqlite`, a web store on encrypted SQLite.**
160
+ `webSqliteStore(options?)` opens an SDK-owned SQLite database in the origin
161
+ private file system. The SQLite3 Multiple Ciphers Wasm engine runs in a
162
+ dedicated module worker and encrypts the whole file. On first use the store
163
+ creates the database key in the secret vault, by default IndexedDB in the
164
+ same origin, then the file. Each open applies the SDK migrations.
165
+ `resetWebSqliteStore(options?)` deletes the file, creates a new key, and
166
+ opens an empty store. `createPreKeyMaintenanceStore` takes an open store.
167
+ The tabs of an origin share the database, and the opens and resets of a
168
+ name run one at a time across the tabs. A reset fails with `INVALID_STATE`
169
+ while any tab has the store open. The page's Content Security Policy must
170
+ allow `'wasm-unsafe-eval'` for the worker; without it, the open fails with
171
+ `SQLITE_ENGINE_UNAVAILABLE`. A context without OPFS gets
172
+ `OPFS_UNAVAILABLE`. The key in IndexedDB protects a copy of the database
173
+ file; it is not an XSS defense.
174
+ - **Breaking: the SDK owns the Expo database.** `expoStore(options?)`
175
+ opens an SDK-owned SQLCipher database in the `expo-sqlite` default
176
+ directory. On first use it creates the database key in the secret vault
177
+ (Expo SecureStore by default), then the file. Each open applies the SDK
178
+ migrations. `ExpoSignalProtocolStore` has no public constructor, and
179
+ `close()` closes the store. An open fails with `LOCAL_STORE_KEY_LOST` when
180
+ the file exists and the vault holds no key for it. It fails with
181
+ `INVALID_STATE` when a store of the process holds the same name, or when a
182
+ newer SDK wrote the file. `createPreKeyMaintenanceStore` takes the open
183
+ store. The options accept `encryptionAtRest: false`, which opens a
184
+ plaintext database and does not use the vault. An open with the other
185
+ setting than the one that created the file fails with
186
+ `SqliteKeyMismatchError` (`KEY_STORAGE_ERROR`), not `LOCAL_STORE_KEY_LOST`.
187
+ Keep application tables in a separate database file.
188
+ - **Breaking: `expoStore()` is now async.** It returns a promise of the open
189
+ store. Replace `expoStore()` with `await expoStore()`.
190
+ `ExpoSignalProtocolStoreFactoryOptions` is now `ExpoSignalProtocolStoreOptions`.
191
+ - **Breaking: the Expo module functions that exposed the database or its key
192
+ are removed.** The `./local/store/expo` entry no longer exports
193
+ `getKeyStorage`, `resetKeyStorage`, `getDatabaseKeyManager`,
194
+ `resetDatabaseKeyManager`, `clearDatabaseKeyCache`, `getPrimaryIdentityKey`,
195
+ or `getContactIdentity`. The `./local/store/expo/db` entry, with
196
+ `configureSignalProtocolExpoDbBindings`,
197
+ `resetSignalProtocolExpoDbBindings`, `getDrizzle`, `getRawDatabase`, and its
198
+ tables, is removed. The `./local/store/expo/schema` entry is removed. The
199
+ `drizzle-orm` peer dependency is removed.
200
+ - **Breaking: `ExpoSignalProtocolStore.getDatabaseKey()` is removed.** The
201
+ database key stays in the secret vault, and the store does not return it.
202
+ - **Changed: `clearAllKeys` on the Expo store empties every table and keeps
203
+ the database key.** The file stays open with the same key.
204
+ `resetExpoStore(options?)` is the full teardown: it deletes the database
205
+ file, creates a new key, and opens an empty store. It is the only way to
206
+ open a store whose key is lost.
207
+ - **Added: `@open-e2ee/signal-protocol-sdk/local/vault/electron-safe-storage`.**
208
+ `ElectronSafeStorageSignalProtocolSecretVault` is a
209
+ `SignalProtocolLocalSecretVault` for the Electron main process. The app
210
+ passes its own `safeStorage`, so the SDK does not import `electron`. The
211
+ vault encrypts each secret with `safeStorage` and keeps only the ciphertexts
212
+ in a file that the app names. It fails closed when async encryption is not
213
+ available, on the Linux `basic_text` and `unknown` backends, and on Linux
214
+ when a ciphertext does not start with `v11`. A `v10` ciphertext means that
215
+ no secret service answered, so `safeStorage` used its fixed fallback key.
216
+ - **Added: the optional peer `better-sqlite3-multiple-ciphers` 13.0.3 or
217
+ later.** The SQLite store for Node and Electron uses it. An app that does
218
+ not use that store does not install it.
219
+ - **Breaking: the Node store is an SDK-owned SQLCipher database.**
220
+ `nodeStore(options)` takes `{ directory, vault }` in place of the optional
221
+ `{ dataDir }`, and opens an encrypted SQLite database on
222
+ `better-sqlite3-multiple-ciphers` in `directory`. On first use it creates
223
+ the database key in `vault`, then the file. The options also accept `name`,
224
+ `encryptionAtRest: false`, and `logger`, as the Expo store does. It runs in
225
+ Node and in the Electron main process; in Electron, pass the safeStorage
226
+ vault. `NodeSignalProtocolStore` has no public constructor, and
227
+ `NodeSignalProtocolStoreConfig` is now `NodeSignalProtocolStoreOptions`.
228
+ `close()` closes the store. An open fails with `LOCAL_STORE_KEY_LOST` when
229
+ the file exists and the vault holds no key for it, and with
230
+ `INVALID_STATE` when a store of the process holds the same file or a newer
231
+ SDK wrote it. The store does not read the files of the earlier Node store.
232
+ Keep application tables in a separate database file.
233
+ - **Breaking: the `fs-native-extensions` peer dependency is removed.**
234
+ - **The Node store has one owner process.** An open store holds the owner
235
+ lock `<name>.lock` beside the database until `close()`, and the operating
236
+ system releases it when the process exits. An open or a reset in another
237
+ process fails at once with `SqliteStoreInUseError` (`KEY_STORAGE_ERROR`),
238
+ before it reads the vault or touches the file.
239
+ - **Added: `resetNodeStore(options)`, `createPreKeyMaintenanceStore(store)`,
240
+ and `sqliteDatabaseKeySlot(path)` on `./local/store/node`.**
241
+ `resetNodeStore` deletes the database file, creates a new key, and opens an
242
+ empty store. `sqliteDatabaseKeySlot` names the vault slot of the key for a
243
+ database path, so an app can move the key when it moves the directory.
244
+ - **Changed: the Node store has the semantics of the Expo store.** A user
245
+ record is the aggregate of the user's sessions, so `setUserRecord` stores
246
+ nothing. `setDeviceRecord` does not pin the identity key of a device,
247
+ `setDeviceSession` does not require a registered device, and
248
+ `setLocalRegistrationId` stores nothing before the identity key.
249
+ `deleteAllSenderKeysForGroup` keeps the group's skipped sender keys.
250
+ - **The Expo store runs on a shared SQLite core.** The store's schema,
251
+ queries, and transactions move from the Expo entry to an internal core that
252
+ runs on any SQLite binding. Every statement and transaction on the
253
+ database goes through one queue, so concurrent store calls no longer
254
+ collide in `BEGIN` or `ROLLBACK`. A save that replaces a signed prekey with
255
+ the same key ID now zeroes the private key that it replaces.
256
+ - **The Expo account wipe empties every SDK table.** `clearAllKeys` and
257
+ `wipeAllSignalProtocolData` on the Expo store now empty every SDK table, as
258
+ the web and Node stores do. This adds the metadata, sender keys, skipped
259
+ sender keys, message records, profile keys, group master keys, group state
260
+ cache, and auth credential cache, and for `clearAllKeys` the KEM one-time
261
+ prekeys.
262
+ - **A bare React Native app can bundle the SDK.** The root entry no longer
263
+ uses `export * as` to export the `safety`, `keys`, `encoding`, `blocking`,
264
+ and `media` namespaces. `@react-native/babel-preset` has no transform for
265
+ that syntax, so Metro in a bare React Native app rejected the whole bundle.
266
+ The namespaces and their members do not change.
267
+ - **Added: `EncryptionErrorCode.SQLITE_ENGINE_UNAVAILABLE`,
268
+ `EncryptionErrorCode.OPFS_UNAVAILABLE`, and
269
+ `EncryptionErrorCode.OPFS_FILE_BUSY`.** The web SQLite store fails with
270
+ these codes when its Wasm engine cannot load in its worker, when the browser context has no OPFS storage for it, or when it
271
+ cannot open its database file this time, usually because another tab still
272
+ holds the file. Retry after `OPFS_FILE_BUSY`; the file is unchanged. An
273
+ exhaustive `switch` over `EncryptionErrorCode` needs the three new cases.
274
+ - **Changed: the package ships the SQLite3 Multiple Ciphers 2.5.1 Wasm
275
+ engine.** `dist/local/store/sqlite/web/sqlite3mc/` holds `sqlite3.mjs` and
276
+ `sqlite3.wasm` from the signed release, about 1.5 MB. `sqlite3.wasm` is
277
+ unmodified. `sqlite3.mjs` carries two recorded patches, so a failed pool
278
+ install never deletes the database files and a failed attach holds no file
279
+ handle. Both files are pinned by sha256. Only the worker of
280
+ `./local/store/web-sqlite` loads them. `THIRD_PARTY_NOTICES.md` lists their
281
+ licenses.
282
+ - **Added: the bare React Native SQLite store at `./local/store/react-native`.**
283
+ `reactNativeStore(options?)` opens an SDK-owned SQLCipher database on
284
+ op-sqlite, with its key in the react-native-keychain vault by default, on
285
+ the same SQLite core and with the same options, errors, and reset as
286
+ `expoStore`. `resetReactNativeStore(options?)` deletes the database
287
+ and opens an empty store, and `createPreKeyMaintenanceStore` takes the open
288
+ store. `close()` checkpoints the write-ahead log into the database file
289
+ before it closes the connection. The app turns on the op-sqlite SQLCipher build with
290
+ `"op-sqlite": { "sqlcipher": true }` in its `package.json`. Without it, an
291
+ encrypted open fails with `KEY_STORAGE_ERROR` before it creates a file.
292
+ `@op-engineering/op-sqlite` 18.2.5 or later is an optional peer, and only
293
+ this entry imports it.
294
+ - **Breaking: the own profile key lives in the application's secret vault.**
295
+ The SDK no longer writes the profile key to `localStorage`, and it no longer
296
+ picks a storage by platform. `getOwnProfileKey`, `setOwnProfileKey`,
297
+ `getOrCreateOwnProfileKey`, `getOwnProfileKeyBase64`, and
298
+ `rotateOwnProfileKey` take a `SignalProtocolLocalSecretVault` as their first
299
+ argument. `updateEncryptedProfile` takes a `vault` parameter when it gets no
300
+ `profileKey`. The vault holds the key as its raw 32 bytes under
301
+ `signal_profile_key_v1`. To upgrade, pass the vault to each call. On Expo,
302
+ use `ExpoSecureStoreSignalProtocolSecretVault` from
303
+ `@open-e2ee/signal-protocol-sdk/local/vault/expo-secure-store`. Remove each
304
+ use of `setProfileKeyStorage`, `getProfileKeyStorage`,
305
+ `resetProfileKeyStorage`, `createMemoryStorage`, and `ProfileKeyStorage`.
306
+ These exports are deleted.
307
+ - **Breaking: the device ID and the device-lifecycle state live in the
308
+ application's secret vault.** `getDeviceId` and `preloadDeviceId` take the
309
+ vault as their first argument. `DeviceLifecycleDeps` has a `vault` field in
310
+ place of `secureStore`, and the `DeviceLifecycleSecureStore` type is
311
+ deleted. The vault holds each value as UTF-8 text. To upgrade, pass the same
312
+ vault to `DeviceLifecycleManager`, `getDeviceId`, and `preloadDeviceId`. The
313
+ SDK does not read the plain SecureStore values that an earlier version
314
+ wrote, so reset the device when you upgrade.
315
+ - **Breaking: a call without a vault throws `SECRET_VAULT_REQUIRED`.** Each
316
+ function above, and the `DeviceLifecycleManager` constructor, throws an
317
+ `EncryptionError` with the new code `EncryptionErrorCode.SECRET_VAULT_REQUIRED`
318
+ when the vault is absent. The error context names the operation.
319
+ - **Breaking: the shared `./device` entries import no platform package.**
320
+ `./device`, `./device/device-id`, and `./device/lifecycle` now load without
321
+ Expo, React Native, or `react-native-device-info`. They take platform
322
+ metadata as input, and they omit each field that the application does not
323
+ supply. To upgrade:
324
+ - Spread `getDeviceLifecyclePlatform()` into the `DeviceLifecycleManager`
325
+ dependencies. `DeviceLifecycleDeps` extends the new
326
+ `DeviceLifecyclePlatform` type: `generateDeviceName`,
327
+ `getDeviceFingerprint`, `deviceType`, `platform`, `osVersion`, and
328
+ `appVersion`, each optional. Without `generateDeviceName`, the device name
329
+ is `Unknown Device`. Without `getDeviceFingerprint`, registration sends no
330
+ `idfv` and does not reclaim a device.
331
+ - Pass the same facts to `getLocalDeviceMetadata`, which now takes them as
332
+ its argument.
333
+ - Pass a `TransferDeviceInfo` to `generateTransferQRCode`,
334
+ `prepareNewDeviceTransfer`, `createEmptyBackup`, `createDeviceBackup`, and
335
+ `prepareOldDeviceTransferWithBackup`. Get it from
336
+ `getTransferDeviceInfo()`, or pass `{}` to send no metadata. The QR code
337
+ omits `deviceType` when the metadata has no platform, and
338
+ `TransferQRCode.deviceType` is optional.
339
+ - **Added: `./device/react-native`.** It reads device metadata on bare React
340
+ Native through `react-native` and `react-native-device-info`, and it reaches
341
+ no Expo package. It exports `getDeviceMetadata`, `getTransferDeviceInfo`,
342
+ and `getDeviceLifecyclePlatform`. Its lifecycle facts include a fingerprint
343
+ from `getUniqueId()`.
344
+ - **Changed: `./device/expo` reads the lifecycle and transfer metadata.** It
345
+ now imports `expo-device` too, and it adds `getTransferDeviceInfo` and
346
+ `getDeviceLifecyclePlatform`. Expo has no device fingerprint without another
347
+ package, so its lifecycle facts have no `getDeviceFingerprint`. Supply one
348
+ to keep reclaim detection.
349
+ - **Added: a secret vault for bare React Native apps.**
350
+ `ReactNativeKeychainSignalProtocolSecretVault` from
351
+ `@open-e2ee/signal-protocol-sdk/local/vault/react-native-keychain` stores
352
+ vault secrets with `react-native-keychain`, a new optional peer at 10.0.0 or
353
+ later. The adapter sets fixed options that the app cannot change: iOS
354
+ `AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY`, Android `AES_GCM_NO_AUTH` storage at
355
+ the `SECURE_SOFTWARE` level, and no `cloudSync` key. The secret stays on the
356
+ device. react-native-keychain 10.0.0 turns iCloud sync on for any
357
+ `cloudSync` value, `false` included, so the adapter never sends that key.
358
+ - **Breaking: React Native and Expo apps must install a global random
359
+ source.** The SDK reads random bytes on React Native only from the global
360
+ `crypto.getRandomValues`. It no longer uses `expo-crypto` for random bytes,
361
+ and the key-value store no longer imports `expo-crypto`. To
362
+ upgrade, install `react-native-get-random-values` 2.x or
363
+ `react-native-quick-crypto`, and load it before the first SDK call.
364
+ Without a global source, the SDK throws `SecureRandomUnavailableError`.
365
+ - Added: `SecureRandomUnavailableError`, with the code
366
+ `SECURE_RANDOM_UNAVAILABLE` and the guard `isSecureRandomUnavailableError`,
367
+ exported from `/types`. The SDK throws it when the runtime has no
368
+ cryptographically secure random source.
369
+ - **Breaking: `getGroupServiceIds` on the in-memory relay is now
370
+ asynchronous.** It returns a `Promise`. To upgrade, `await` each call.
371
+ - **Breaking: `GroupAuthorizationServerEngine` takes its runtime as a
372
+ required argument.** The engine no longer picks a host random source, so a
373
+ server bundle of the engine reaches no client platform seam. To upgrade,
374
+ pass a `GroupServerEngineRuntime` with `now` and `randomBytes` as the second
375
+ constructor argument. The in-memory relay's
376
+ `InMemoryGroupAuthorizationServer` still supplies its own runtime.
377
+ - Fixed: the username discriminator had a small bias toward low values. The
378
+ SDK now draws it with rejection sampling, so each value in the range has
379
+ the same probability.
380
+ - **Fixed: on React Native, the hosted Relay socket did not open.** The SDK
381
+ built the socket URL with the `protocol` setter of `URL`, and the React
382
+ Native `URL` has no setters. Now the SDK builds the URL itself.
383
+ - **Fixed: on React Native, `isVerifyUrl`, `parseVerifyUrl`, and
384
+ `parseProvisioningQR` accepted a lookalike custom-scheme link,** such as
385
+ `signalprotocol://verify-evil`. The React Native `URL` reads no host or path
386
+ for a custom scheme. The SDK now parses these links, the relay connection
387
+ URL, Web Push endpoints, object store URLs, and TUS upload locations with
388
+ its own parser, which gives the same result on every runtime.
389
+ - **Changed: the SDK rejects a URL that is not in a canonical form.** Upgrade
390
+ step: give each URL as ASCII, without credentials, a fragment, an empty
391
+ query (`?` with nothing after it), or a `.` or `..` path segment. Write the
392
+ host in the form that a WHATWG `URL` gives, and do not use an `xn--` label,
393
+ an IPv4 address in a short or hexadecimal form, or an IPv6 address in a
394
+ non-compressed form. Do not write a port with a leading zero. Percent-encode
395
+ a space, a non-ASCII character, and a `'` in a query. This applies to the
396
+ verification and provisioning links and their `VerifyLinkConfig` and link
397
+ prefix, the relay connection URL, Web Push endpoints, and object store
398
+ upload and download URLs. A TUS server must return a `Location` that is an
399
+ absolute URL, a path that starts with `/`, or a relative path, not a
400
+ network-path reference that starts with `//`. A query value that is not
401
+ valid UTF-8 now makes a verification or provisioning link invalid.
402
+ - **Changed: `encryptFile` and `decryptFile` throw an `EncryptionError` with
403
+ the new code `BINARY_BLOB_UNAVAILABLE` when the runtime's `Blob` cannot hold
404
+ bytes.** The React Native `Blob` rejects binary parts and has no
405
+ `arrayBuffer()` or `text()`, so these methods cannot work there. They now
406
+ throw before they touch the session, so the key message stays unconsumed.
407
+ Upgrade step: on React Native, use `streamingEncrypt` and `streamingDecrypt`
408
+ from `@open-e2ee/signal-protocol-sdk/files`.
409
+ - **Fixed: on a React Native runtime without `Buffer`, `TextDecoder`, or
410
+ `structuredClone`, the stores, the relay clients, and message decoding
411
+ failed.** These parts now use the SDK's base64, UTF-8, and clone functions.
412
+ UTF-8 decoding uses the runtime's `TextDecoder` only when it passes a
413
+ conformance check, and a built-in WHATWG decoder otherwise, so invalid
414
+ UTF-8 gives the same result on every runtime.
415
+ - Changed: the Expo store models decode base64 strictly. A stored key that is
416
+ not padded standard base64 with zero trailing bits now fails to load.
417
+ Before, the models skipped invalid characters. The SDK writes only this
418
+ form, so the change affects only a row that was changed by hand.
419
+ - Fixed: the Convex relay's `subscribe` threw in a browser that loads the SDK
420
+ without a bundler `define`, where there is no `process` global. It now
421
+ falls back to polling there, as it does when `EXPO_PUBLIC_CONVEX_URL` is not
422
+ set.
423
+ - **Fixed: the Expo store's `getDetailedStats()` and full data wipe now
424
+ complete.** Before, both read or deleted a table that does not exist, so
425
+ `getDetailedStats()` failed and the wipe (`wipeAllSignalProtocolData()` on
426
+ the store from `getKeyStorage()`) rolled back. The `users` count is now the
427
+ number of distinct users that have a session.
428
+ - Fixed: on the Expo store, a signed prekey that reuses the ID of a replaced
429
+ signed prekey is now the current signed prekey. Before, the store kept the
430
+ replaced mark, so `getEcSignedPreKey()` returned `null`.
431
+ - Fixed: `createPreKeyMaintenanceStore().cullReplacedPreKeys()` on the Expo
432
+ store now culls the four prekey tables one at a time. Before, it opened
433
+ four transactions at the same time on one connection, and the cull failed
434
+ with "cannot start a transaction within a transaction".
435
+ - **Breaking: the key-value store moves to `./local/store/key-value`.** In
436
+ 7.2.0, `./local/store/react-native` exported it. Change each import of the
437
+ key-value store from `@open-e2ee/signal-protocol-sdk/local/store/react-native`
438
+ to `@open-e2ee/signal-protocol-sdk/local/store/key-value`.
439
+ `./local/store/react-native` now exports the bare React Native SQLite
440
+ store.
441
+ - **Breaking: the key-value store names drop the React Native prefix.** The
442
+ store works over any key-value backend, so its names do not name a
443
+ platform. Change each name:
444
+ - `ReactNativeSignalProtocolStore` → `KeyValueSignalProtocolStore`
445
+ - `reactNativeStore` → `keyValueStore`
446
+ - `ReactNativeStoreFactoryOptions` → `KeyValueSignalProtocolStoreOptions`,
447
+ which `create`, `reset`, and `keyValueStore` all take
448
+ - `ReactNativeKeyValueStorage` → `KeyValueStorage`
449
+ - `ReactNativeKeyValueOperation` → `KeyValueOperation`
450
+ - **Breaking: the key-value store keeps its value key in a secret vault.**
451
+ Before, the store wrote its 32-byte value key into the same key-value
452
+ backend as the data it encrypted, under `@signal:databaseKey`, and logged a
453
+ warning. Pass a `SignalProtocolLocalSecretVault` backed by the platform
454
+ keychain or keystore, such as `ReactNativeKeychainSignalProtocolSecretVault`,
455
+ as `vault` to `create`, `reset`, or `keyValueStore`. Without a vault,
456
+ each of them throws `SECRET_VAULT_REQUIRED`. To keep
457
+ existing data, before the first open on this version, read the base64 value
458
+ of `@signal:databaseKey` from your backend, write its decoded bytes to the
459
+ vault under `signal_key_value_encryption_key`, and remove
460
+ `@signal:databaseKey` from the backend. The key-value store guide describes
461
+ key custody.
462
+ - **Breaking: a lost value key is an error, not a new key.** When the backend
463
+ holds store data and the vault holds no key, `create` rejects with an
464
+ `EncryptionError` whose code is the new `LOCAL_STORE_KEY_LOST`, and it
465
+ changes nothing. Before, a missing key gave a new key that could not read
466
+ the old data. Catch the code, and then restore the vault entry or call
467
+ `KeyValueSignalProtocolStore.reset({ storage, vault })`. `reset` deletes
468
+ every store record, and then makes a new key. If the process stops between
469
+ the two steps, the next `create` opens an empty store.
470
+ - **Breaking: `createReferenceReactNativeBackend` is no longer exported.** It
471
+ is now test code of the SDK. To verify your backend, use
472
+ `assertBackendConformance` or `runBackendConformance`, which stay exported.
473
+ To get an in-memory backend for your own tests, write one that passes the
474
+ kit.
475
+ - Added: `./local/store/key-value/realm` with `createRealmKeyValueBackend`, a
476
+ key-value backend over an open Realm. The SDK does not import `realm` and
477
+ does not declare it as a dependency or peer. Your application installs
478
+ `realm` and adds `realmKeyValueSchema` to its schema list. Each store write
479
+ runs in one `realm.write` transaction. The adapter is tested with the
480
+ conformance kit on realm 20.2.0 in Node. Realm has no maintainer since
481
+ 2025-09-30. The key-value store guide lists its known build issues.
482
+ - Added: `createTransactionalKeyValueBackend` in `./local/store/key-value`,
483
+ with the types `TransactionalKeyValueEngine`, `KeyValueTransaction`, and
484
+ `KeyValueReader`. It makes a key-value backend from an engine's own
485
+ transaction and a synchronous handle with `get`, `set`, `delete`, and
486
+ `keysWithPrefix`. The SDK applies each `atomicWrite` batch inside that
487
+ transaction, so a backend does not copy the batch rules. The Realm backend
488
+ uses it. To upgrade a backend that you wrote for an engine with
489
+ transactions, replace its `atomicWrite` code with this function and run the
490
+ conformance kit again. The key-value store guide has an op-sqlite sketch.
491
+ - **Fixed: `stop()` resolved while a relay delivery or a retry request was in
492
+ progress.** The decrypt then went on after logout and wrote to the store
493
+ after the app could have closed it. `stop()` now resolves only after the SDK
494
+ work of the deliveries, retry requests, and receipt sends in progress
495
+ finishes. It does not wait for app hooks, so a hook can await `stop()`. This
496
+ includes the session hooks of a resend for a retry request, when the resend
497
+ sets up a session with a new or stale device. Another resend to the same
498
+ user that waits while such a hook runs stops waiting and sends nothing, and
499
+ its message record stays for the next retry request. When a hook returns
500
+ after `stop()`, the SDK drops the work after the hook and writes nothing
501
+ more. The relay delivers the envelope again after the next start, and the
502
+ hook gets the plaintext again. A delivery that fails is logged and no longer
503
+ rejects as an unhandled promise.
504
+ - **Breaking: the managed Signal Protocol Relay hosts use the lane tokens.**
505
+ The SDK pins `https://sandbox.relay.open-e2ee.dev`,
506
+ `https://stage.relay.open-e2ee.dev`, and
507
+ `https://stage-sandbox.relay.open-e2ee.dev`.
508
+ `https://relay.open-e2ee.dev` does not change. A connection URL on
509
+ `development.relay.open-e2ee.dev`, `staging.relay.open-e2ee.dev`, or
510
+ `staging-customer-development.relay.open-e2ee.dev` is now invalid. Copy the
511
+ connection URL from the console again.
512
+ - **Breaking: the Signal Protocol Relay API path is `/signal/v1/*`.** A
513
+ connection URL is now `https://<host>/signal/v1/connection/<key>`, and the
514
+ SDK sends each request under `/signal/v1/`. The SDK rejects a connection URL
515
+ with the old `/v1/connection/` path, and a connection document whose
516
+ `protocolEndpoint` is not `<origin>/signal/v1`.
517
+ - **Breaking: the developer environment kind is `sandbox`.** The
518
+ `environment` of a hosted Relay connection is now `'sandbox' |
519
+ 'production'`. The SDK rejects a connection document that names the old
520
+ kind. The Relay gives a sandbox publishable key the prefix `pk_sandbox_`.
521
+
522
+ - **A bare React Native example.** `examples/react-native` runs the encrypted
523
+ exchange in a React Native 0.87.1 app with no Expo module. Alice uses
524
+ `reactNativeStore()` on the op-sqlite SQLCipher build, with the database key
525
+ in `react-native-keychain`. On each launch, the app logs the SQLCipher
526
+ version and the first 16 bytes of the SDK database file, and requires that a
527
+ wrong key fails the open of an SDK database. The run fails when the build has
528
+ no SQLCipher or when the file starts with the plaintext SQLite header. CI
529
+ builds the release APK and runs it twice on an Android emulator, and requires
530
+ these lines on each run. On every change, CI also builds the example's Metro
531
+ release bundle with the packed SDK and the stock Babel preset, and compiles
532
+ it with Hermes.
533
+
534
+ - **The Expo example checks that SQLCipher encrypts its database.** On each launch,
535
+ `examples/expo` logs the SQLCipher version and the first 16 bytes of the SDK
536
+ database file. The run fails when the build has no SQLCipher or when the
537
+ file starts with the plaintext SQLite header. The Android emulator job
538
+ requires both lines on each run. The example now depends on
539
+ `expo-file-system` to read the file.
540
+
3
541
  ## 7.2.0
4
542
 
5
543
  - **Fixed: a send now reaches every device that the relay lists for the