@open-e2ee/signal-protocol-sdk 10.1.0 → 12.0.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 (595) hide show
  1. package/ADAPTERS.md +4 -4
  2. package/ARCHITECTURE.md +6 -8
  3. package/CHANGELOG.md +1413 -0
  4. package/README.md +1 -1
  5. package/SECURITY.md +2 -2
  6. package/TROUBLESHOOTING.md +1 -1
  7. package/client/README.md +84 -37
  8. package/device/README.md +39 -85
  9. package/dist/client/client.d.ts +342 -62
  10. package/dist/client/client.d.ts.map +1 -1
  11. package/dist/client/client.js +1195 -179
  12. package/dist/client/client.js.map +1 -1
  13. package/dist/client/config.d.ts +40 -32
  14. package/dist/client/config.d.ts.map +1 -1
  15. package/dist/client/config.js +1 -1
  16. package/dist/client/config.js.map +1 -1
  17. package/dist/client/constants.d.ts +42 -8
  18. package/dist/client/constants.d.ts.map +1 -1
  19. package/dist/client/constants.js +48 -3
  20. package/dist/client/constants.js.map +1 -1
  21. package/dist/client/content-adapter.d.ts +80 -0
  22. package/dist/client/content-adapter.d.ts.map +1 -1
  23. package/dist/client/content-adapter.js +225 -12
  24. package/dist/client/content-adapter.js.map +1 -1
  25. package/dist/client/delivery-error.d.ts +150 -0
  26. package/dist/client/delivery-error.d.ts.map +1 -0
  27. package/dist/client/delivery-error.js +226 -0
  28. package/dist/client/delivery-error.js.map +1 -0
  29. package/dist/client/delivery-status.d.ts +32 -6
  30. package/dist/client/delivery-status.d.ts.map +1 -1
  31. package/dist/client/delivery-status.js +61 -13
  32. package/dist/client/delivery-status.js.map +1 -1
  33. package/dist/client/device-set-reconciliation.d.ts +196 -0
  34. package/dist/client/device-set-reconciliation.d.ts.map +1 -0
  35. package/dist/client/device-set-reconciliation.js +282 -0
  36. package/dist/client/device-set-reconciliation.js.map +1 -0
  37. package/dist/client/distribution-records.d.ts +29 -0
  38. package/dist/client/distribution-records.d.ts.map +1 -0
  39. package/dist/client/distribution-records.js +33 -0
  40. package/dist/client/distribution-records.js.map +1 -0
  41. package/dist/client/event-hooks.d.ts +308 -6
  42. package/dist/client/event-hooks.d.ts.map +1 -1
  43. package/dist/client/event-hooks.js +9 -0
  44. package/dist/client/event-hooks.js.map +1 -1
  45. package/dist/client/group-device-set.d.ts +47 -0
  46. package/dist/client/group-device-set.d.ts.map +1 -0
  47. package/dist/client/group-device-set.js +65 -0
  48. package/dist/client/group-device-set.js.map +1 -0
  49. package/dist/client/group-fetcher.d.ts +116 -0
  50. package/dist/client/group-fetcher.d.ts.map +1 -0
  51. package/dist/client/group-fetcher.js +598 -0
  52. package/dist/client/group-fetcher.js.map +1 -0
  53. package/dist/client/group-outbox.d.ts +172 -10
  54. package/dist/client/group-outbox.d.ts.map +1 -1
  55. package/dist/client/group-outbox.js +915 -74
  56. package/dist/client/group-outbox.js.map +1 -1
  57. package/dist/client/group-receive-authorization.d.ts +127 -4
  58. package/dist/client/group-receive-authorization.d.ts.map +1 -1
  59. package/dist/client/group-receive-authorization.js +270 -20
  60. package/dist/client/group-receive-authorization.js.map +1 -1
  61. package/dist/client/group-sealed-sender.d.ts +3 -0
  62. package/dist/client/group-sealed-sender.d.ts.map +1 -1
  63. package/dist/client/group-sealed-sender.js +1 -0
  64. package/dist/client/group-sealed-sender.js.map +1 -1
  65. package/dist/client/group-sender-key-operations.d.ts +14 -3
  66. package/dist/client/group-sender-key-operations.d.ts.map +1 -1
  67. package/dist/client/group-sender-key-operations.js +26 -5
  68. package/dist/client/group-sender-key-operations.js.map +1 -1
  69. package/dist/client/groups.d.ts +5 -5
  70. package/dist/client/groups.d.ts.map +1 -1
  71. package/dist/client/groups.js +5 -4
  72. package/dist/client/groups.js.map +1 -1
  73. package/dist/client/hosted-anonymous-delivery.d.ts +61 -9
  74. package/dist/client/hosted-anonymous-delivery.d.ts.map +1 -1
  75. package/dist/client/hosted-anonymous-delivery.js +242 -48
  76. package/dist/client/hosted-anonymous-delivery.js.map +1 -1
  77. package/dist/client/hosted-assertion-id.d.ts +7 -0
  78. package/dist/client/hosted-assertion-id.d.ts.map +1 -0
  79. package/dist/client/hosted-assertion-id.js +51 -0
  80. package/dist/client/hosted-assertion-id.js.map +1 -0
  81. package/dist/client/hosted-device-standing.d.ts +52 -0
  82. package/dist/client/hosted-device-standing.d.ts.map +1 -0
  83. package/dist/client/hosted-device-standing.js +74 -0
  84. package/dist/client/hosted-device-standing.js.map +1 -0
  85. package/dist/client/hosted-mailbox-subscription.d.ts +48 -3
  86. package/dist/client/hosted-mailbox-subscription.d.ts.map +1 -1
  87. package/dist/client/hosted-mailbox-subscription.js +288 -74
  88. package/dist/client/hosted-mailbox-subscription.js.map +1 -1
  89. package/dist/client/hosted-push.d.ts +22 -4
  90. package/dist/client/hosted-push.d.ts.map +1 -1
  91. package/dist/client/hosted-push.js +75 -22
  92. package/dist/client/hosted-push.js.map +1 -1
  93. package/dist/client/hosted-transport.d.ts +22 -28
  94. package/dist/client/hosted-transport.d.ts.map +1 -1
  95. package/dist/client/hosted-transport.js +167 -69
  96. package/dist/client/hosted-transport.js.map +1 -1
  97. package/dist/client/hosted.d.ts +22 -5
  98. package/dist/client/hosted.d.ts.map +1 -1
  99. package/dist/client/hosted.js +122 -45
  100. package/dist/client/hosted.js.map +1 -1
  101. package/dist/client/index.d.ts +6 -4
  102. package/dist/client/index.d.ts.map +1 -1
  103. package/dist/client/index.js +3 -1
  104. package/dist/client/index.js.map +1 -1
  105. package/dist/client/messages.d.ts +25 -3
  106. package/dist/client/messages.d.ts.map +1 -1
  107. package/dist/client/messages.js +118 -17
  108. package/dist/client/messages.js.map +1 -1
  109. package/dist/client/one-time-prekey-refill.d.ts +7 -0
  110. package/dist/client/one-time-prekey-refill.d.ts.map +1 -1
  111. package/dist/client/one-time-prekey-refill.js +5 -1
  112. package/dist/client/one-time-prekey-refill.js.map +1 -1
  113. package/dist/client/receive-admission.d.ts +58 -0
  114. package/dist/client/receive-admission.d.ts.map +1 -0
  115. package/dist/client/receive-admission.js +78 -0
  116. package/dist/client/receive-admission.js.map +1 -0
  117. package/dist/client/receive-expiry.d.ts +31 -0
  118. package/dist/client/receive-expiry.d.ts.map +1 -0
  119. package/dist/client/receive-expiry.js +35 -0
  120. package/dist/client/receive-expiry.js.map +1 -0
  121. package/dist/client/receive-hook-bound.d.ts +50 -0
  122. package/dist/client/receive-hook-bound.d.ts.map +1 -0
  123. package/dist/client/receive-hook-bound.js +115 -0
  124. package/dist/client/receive-hook-bound.js.map +1 -0
  125. package/dist/client/receive-queue.d.ts +299 -0
  126. package/dist/client/receive-queue.d.ts.map +1 -0
  127. package/dist/client/receive-queue.js +1420 -0
  128. package/dist/client/receive-queue.js.map +1 -0
  129. package/dist/client/receive-work-seed.d.ts +54 -0
  130. package/dist/client/receive-work-seed.d.ts.map +1 -0
  131. package/dist/client/receive-work-seed.js +116 -0
  132. package/dist/client/receive-work-seed.js.map +1 -0
  133. package/dist/client/recovery-driver.d.ts +25 -0
  134. package/dist/client/recovery-driver.d.ts.map +1 -0
  135. package/dist/client/recovery-driver.js +121 -0
  136. package/dist/client/recovery-driver.js.map +1 -0
  137. package/dist/client/relay-acceptance.d.ts +30 -0
  138. package/dist/client/relay-acceptance.d.ts.map +1 -1
  139. package/dist/client/relay-acceptance.js +55 -0
  140. package/dist/client/relay-acceptance.js.map +1 -1
  141. package/dist/client/relay-device-refusal.d.ts +18 -0
  142. package/dist/client/relay-device-refusal.d.ts.map +1 -1
  143. package/dist/client/relay-device-refusal.js +31 -0
  144. package/dist/client/relay-device-refusal.js.map +1 -1
  145. package/dist/client/relay-sealed-route.d.ts +36 -0
  146. package/dist/client/relay-sealed-route.d.ts.map +1 -0
  147. package/dist/client/relay-sealed-route.js +45 -0
  148. package/dist/client/relay-sealed-route.js.map +1 -0
  149. package/dist/client/relay-subscription.d.ts +56 -13
  150. package/dist/client/relay-subscription.d.ts.map +1 -1
  151. package/dist/client/relay-subscription.js +220 -150
  152. package/dist/client/relay-subscription.js.map +1 -1
  153. package/dist/client/resendable-content.d.ts +98 -0
  154. package/dist/client/resendable-content.d.ts.map +1 -0
  155. package/dist/client/resendable-content.js +136 -0
  156. package/dist/client/resendable-content.js.map +1 -0
  157. package/dist/client/retry-family.d.ts +68 -19
  158. package/dist/client/retry-family.d.ts.map +1 -1
  159. package/dist/client/retry-family.js +59 -17
  160. package/dist/client/retry-family.js.map +1 -1
  161. package/dist/client/retry-request-envelope.d.ts +145 -18
  162. package/dist/client/retry-request-envelope.d.ts.map +1 -1
  163. package/dist/client/retry-request-envelope.js +301 -64
  164. package/dist/client/retry-request-envelope.js.map +1 -1
  165. package/dist/client/retry-request-lifecycle.d.ts +157 -0
  166. package/dist/client/retry-request-lifecycle.d.ts.map +1 -0
  167. package/dist/client/retry-request-lifecycle.js +437 -0
  168. package/dist/client/retry-request-lifecycle.js.map +1 -0
  169. package/dist/client/retry-terminal-recovery.d.ts +100 -0
  170. package/dist/client/retry-terminal-recovery.d.ts.map +1 -0
  171. package/dist/client/retry-terminal-recovery.js +164 -0
  172. package/dist/client/retry-terminal-recovery.js.map +1 -0
  173. package/dist/client/retry-utils.d.ts +27 -0
  174. package/dist/client/retry-utils.d.ts.map +1 -1
  175. package/dist/client/retry-utils.js +46 -0
  176. package/dist/client/retry-utils.js.map +1 -1
  177. package/dist/client/retry.d.ts +106 -18
  178. package/dist/client/retry.d.ts.map +1 -1
  179. package/dist/client/retry.js +687 -139
  180. package/dist/client/retry.js.map +1 -1
  181. package/dist/client/sealed-sender.d.ts +23 -6
  182. package/dist/client/sealed-sender.d.ts.map +1 -1
  183. package/dist/client/sealed-sender.js +30 -6
  184. package/dist/client/sealed-sender.js.map +1 -1
  185. package/dist/client/sessions.d.ts +2 -2
  186. package/dist/client/sessions.js +2 -2
  187. package/dist/client/signal-service-cipher.d.ts +726 -19
  188. package/dist/client/signal-service-cipher.d.ts.map +1 -1
  189. package/dist/client/signal-service-cipher.js +2265 -343
  190. package/dist/client/signal-service-cipher.js.map +1 -1
  191. package/dist/client/state.d.ts +5 -0
  192. package/dist/client/state.d.ts.map +1 -1
  193. package/dist/client/state.js +11 -1
  194. package/dist/client/state.js.map +1 -1
  195. package/dist/client/storage-protection.d.ts +64 -0
  196. package/dist/client/storage-protection.d.ts.map +1 -0
  197. package/dist/client/storage-protection.js +150 -0
  198. package/dist/client/storage-protection.js.map +1 -0
  199. package/dist/client/types.d.ts +149 -15
  200. package/dist/client/types.d.ts.map +1 -1
  201. package/dist/client/types.js +1 -1
  202. package/dist/client/types.js.map +1 -1
  203. package/dist/device/constants.d.ts +0 -5
  204. package/dist/device/constants.d.ts.map +1 -1
  205. package/dist/device/constants.js +0 -5
  206. package/dist/device/constants.js.map +1 -1
  207. package/dist/device/expo/index.d.ts +4 -17
  208. package/dist/device/expo/index.d.ts.map +1 -1
  209. package/dist/device/expo/index.js +4 -23
  210. package/dist/device/expo/index.js.map +1 -1
  211. package/dist/device/index.d.ts +0 -2
  212. package/dist/device/index.d.ts.map +1 -1
  213. package/dist/device/index.js +0 -7
  214. package/dist/device/index.js.map +1 -1
  215. package/dist/device/lifecycle/manager.d.ts +5 -4
  216. package/dist/device/lifecycle/manager.d.ts.map +1 -1
  217. package/dist/device/lifecycle/manager.js +16 -16
  218. package/dist/device/lifecycle/manager.js.map +1 -1
  219. package/dist/device/lifecycle/types.d.ts +2 -2
  220. package/dist/device/lifecycle/types.d.ts.map +1 -1
  221. package/dist/device/react-native/index.d.ts +4 -15
  222. package/dist/device/react-native/index.d.ts.map +1 -1
  223. package/dist/device/react-native/index.js +4 -21
  224. package/dist/device/react-native/index.js.map +1 -1
  225. package/dist/device/types.d.ts +1 -1
  226. package/dist/groups/index.d.ts +1 -1
  227. package/dist/groups/index.d.ts.map +1 -1
  228. package/dist/index.d.ts +8 -6
  229. package/dist/index.d.ts.map +1 -1
  230. package/dist/index.js +2 -1
  231. package/dist/index.js.map +1 -1
  232. package/dist/internal/crypto/ec/x25519-validation.d.ts +0 -1
  233. package/dist/internal/crypto/ec/x25519-validation.d.ts.map +1 -1
  234. package/dist/internal/crypto/ec/x25519-validation.js +0 -1
  235. package/dist/internal/crypto/ec/x25519-validation.js.map +1 -1
  236. package/dist/internal/crypto/validation.d.ts +2 -2
  237. package/dist/internal/groups/index.d.ts +1 -0
  238. package/dist/internal/groups/index.d.ts.map +1 -1
  239. package/dist/internal/groups/index.js +1 -0
  240. package/dist/internal/groups/index.js.map +1 -1
  241. package/dist/internal/groups/manager.d.ts +37 -16
  242. package/dist/internal/groups/manager.d.ts.map +1 -1
  243. package/dist/internal/groups/manager.js +46 -1
  244. package/dist/internal/groups/manager.js.map +1 -1
  245. package/dist/internal/groups/receive-record.d.ts +78 -0
  246. package/dist/internal/groups/receive-record.d.ts.map +1 -0
  247. package/dist/internal/groups/receive-record.js +43 -0
  248. package/dist/internal/groups/receive-record.js.map +1 -0
  249. package/dist/internal/groups/sdk-store.d.ts +27 -3
  250. package/dist/internal/groups/sdk-store.d.ts.map +1 -1
  251. package/dist/internal/groups/sdk-store.js +151 -19
  252. package/dist/internal/groups/sdk-store.js.map +1 -1
  253. package/dist/internal/groups/wire.d.ts +12 -1
  254. package/dist/internal/groups/wire.d.ts.map +1 -1
  255. package/dist/internal/groups/wire.js +36 -0
  256. package/dist/internal/groups/wire.js.map +1 -1
  257. package/dist/internal/manager/index.d.ts +1 -1
  258. package/dist/internal/manager/manager.d.ts +20 -19
  259. package/dist/internal/manager/manager.d.ts.map +1 -1
  260. package/dist/internal/manager/manager.js +56 -39
  261. package/dist/internal/manager/manager.js.map +1 -1
  262. package/dist/internal/protocol/double-ratchet/chains.d.ts +4 -18
  263. package/dist/internal/protocol/double-ratchet/chains.d.ts.map +1 -1
  264. package/dist/internal/protocol/double-ratchet/chains.js +23 -74
  265. package/dist/internal/protocol/double-ratchet/chains.js.map +1 -1
  266. package/dist/internal/protocol/double-ratchet/index.d.ts +1 -1
  267. package/dist/internal/protocol/double-ratchet/index.d.ts.map +1 -1
  268. package/dist/internal/protocol/double-ratchet/index.js +1 -1
  269. package/dist/internal/protocol/double-ratchet/index.js.map +1 -1
  270. package/dist/internal/protocol/double-ratchet/ratchet.d.ts +5 -7
  271. package/dist/internal/protocol/double-ratchet/ratchet.d.ts.map +1 -1
  272. package/dist/internal/protocol/double-ratchet/ratchet.js +4 -6
  273. package/dist/internal/protocol/double-ratchet/ratchet.js.map +1 -1
  274. package/dist/internal/protocol/pqxdh/pqxdh.d.ts.map +1 -1
  275. package/dist/internal/protocol/pqxdh/pqxdh.js +2 -1
  276. package/dist/internal/protocol/pqxdh/pqxdh.js.map +1 -1
  277. package/dist/internal/protocol/sealed-sender/types.d.ts +6 -8
  278. package/dist/internal/protocol/sealed-sender/types.d.ts.map +1 -1
  279. package/dist/internal/protocol/sealed-sender/types.js +8 -9
  280. package/dist/internal/protocol/sealed-sender/types.js.map +1 -1
  281. package/dist/internal/protocol/sender-keys/handoff-ledger.d.ts +110 -0
  282. package/dist/internal/protocol/sender-keys/handoff-ledger.d.ts.map +1 -0
  283. package/dist/internal/protocol/sender-keys/handoff-ledger.js +124 -0
  284. package/dist/internal/protocol/sender-keys/handoff-ledger.js.map +1 -0
  285. package/dist/internal/protocol/sender-keys/manager.d.ts +71 -62
  286. package/dist/internal/protocol/sender-keys/manager.d.ts.map +1 -1
  287. package/dist/internal/protocol/sender-keys/manager.js +228 -175
  288. package/dist/internal/protocol/sender-keys/manager.js.map +1 -1
  289. package/dist/internal/protocol/spqr/index.d.ts +2 -2
  290. package/dist/internal/protocol/spqr/index.d.ts.map +1 -1
  291. package/dist/internal/protocol/spqr/index.js +2 -2
  292. package/dist/internal/protocol/spqr/index.js.map +1 -1
  293. package/dist/internal/protocol/spqr/serialize.d.ts +9 -1
  294. package/dist/internal/protocol/spqr/serialize.d.ts.map +1 -1
  295. package/dist/internal/protocol/spqr/serialize.js +56 -16
  296. package/dist/internal/protocol/spqr/serialize.js.map +1 -1
  297. package/dist/internal/protocol/spqr/spqr.d.ts +1 -14
  298. package/dist/internal/protocol/spqr/spqr.d.ts.map +1 -1
  299. package/dist/internal/protocol/spqr/spqr.js +54 -42
  300. package/dist/internal/protocol/spqr/spqr.js.map +1 -1
  301. package/dist/internal/protocol/spqr/validate.d.ts +26 -6
  302. package/dist/internal/protocol/spqr/validate.d.ts.map +1 -1
  303. package/dist/internal/protocol/spqr/validate.js +49 -21
  304. package/dist/internal/protocol/spqr/validate.js.map +1 -1
  305. package/dist/internal/sesame/index.d.ts +1 -1
  306. package/dist/internal/sesame/index.d.ts.map +1 -1
  307. package/dist/internal/sesame/index.js.map +1 -1
  308. package/dist/internal/sesame/manager.d.ts +66 -13
  309. package/dist/internal/sesame/manager.d.ts.map +1 -1
  310. package/dist/internal/sesame/manager.js +221 -87
  311. package/dist/internal/sesame/manager.js.map +1 -1
  312. package/dist/internal/sesame/types.d.ts +95 -17
  313. package/dist/internal/sesame/types.d.ts.map +1 -1
  314. package/dist/internal/sesame/types.js +17 -0
  315. package/dist/internal/sesame/types.js.map +1 -1
  316. package/dist/internal/session/builder.d.ts +5 -5
  317. package/dist/internal/session/builder.d.ts.map +1 -1
  318. package/dist/internal/session/builder.js +12 -17
  319. package/dist/internal/session/builder.js.map +1 -1
  320. package/dist/internal/session/cipher.d.ts +13 -11
  321. package/dist/internal/session/cipher.d.ts.map +1 -1
  322. package/dist/internal/session/cipher.js +40 -22
  323. package/dist/internal/session/cipher.js.map +1 -1
  324. package/dist/internal/session/factory.d.ts +5 -5
  325. package/dist/internal/session/factory.d.ts.map +1 -1
  326. package/dist/internal/session/factory.js +4 -4
  327. package/dist/internal/session/factory.js.map +1 -1
  328. package/dist/internal/session/handshake.d.ts +14 -16
  329. package/dist/internal/session/handshake.d.ts.map +1 -1
  330. package/dist/internal/session/handshake.js +18 -75
  331. package/dist/internal/session/handshake.js.map +1 -1
  332. package/dist/internal/session/index.d.ts +1 -1
  333. package/dist/internal/session/index.js +1 -1
  334. package/dist/internal/session/record-locks.d.ts +17 -6
  335. package/dist/internal/session/record-locks.d.ts.map +1 -1
  336. package/dist/internal/session/record-locks.js +43 -7
  337. package/dist/internal/session/record-locks.js.map +1 -1
  338. package/dist/internal/session/session-resolver.d.ts +1 -1
  339. package/dist/internal/session/session-resolver.js +1 -1
  340. package/dist/internal/session/state.d.ts +2 -2
  341. package/dist/internal/session/state.js +1 -1
  342. package/dist/internal/session/types.d.ts +4 -12
  343. package/dist/internal/session/types.d.ts.map +1 -1
  344. package/dist/internal/session/types.js +1 -1
  345. package/dist/keys/generation.d.ts +2 -2
  346. package/dist/keys/generation.js +2 -2
  347. package/dist/keys/types.d.ts +5 -5
  348. package/dist/keys/types.d.ts.map +1 -1
  349. package/dist/keys/types.js +1 -1
  350. package/dist/layers.d.ts +1 -1
  351. package/dist/layers.js +2 -2
  352. package/dist/layers.js.map +1 -1
  353. package/dist/local/store/expo/adapter.d.ts.map +1 -1
  354. package/dist/local/store/expo/adapter.js +12 -8
  355. package/dist/local/store/expo/adapter.js.map +1 -1
  356. package/dist/local/store/key-value/adapter.d.ts +76 -10
  357. package/dist/local/store/key-value/adapter.d.ts.map +1 -1
  358. package/dist/local/store/key-value/adapter.js +367 -61
  359. package/dist/local/store/key-value/adapter.js.map +1 -1
  360. package/dist/local/store/key-value/backend-conformance.d.ts.map +1 -1
  361. package/dist/local/store/key-value/backend-conformance.js +74 -0
  362. package/dist/local/store/key-value/backend-conformance.js.map +1 -1
  363. package/dist/local/store/key-value/batch.d.ts +2 -0
  364. package/dist/local/store/key-value/batch.d.ts.map +1 -1
  365. package/dist/local/store/key-value/batch.js +26 -0
  366. package/dist/local/store/key-value/batch.js.map +1 -1
  367. package/dist/local/store/key-value/receive-work.d.ts +55 -0
  368. package/dist/local/store/key-value/receive-work.d.ts.map +1 -0
  369. package/dist/local/store/key-value/receive-work.js +162 -0
  370. package/dist/local/store/key-value/receive-work.js.map +1 -0
  371. package/dist/local/store/key-value/send-log.d.ts +61 -0
  372. package/dist/local/store/key-value/send-log.d.ts.map +1 -0
  373. package/dist/local/store/key-value/send-log.js +430 -0
  374. package/dist/local/store/key-value/send-log.js.map +1 -0
  375. package/dist/local/store/key-value/sender-key-handoff.d.ts +68 -0
  376. package/dist/local/store/key-value/sender-key-handoff.d.ts.map +1 -0
  377. package/dist/local/store/key-value/sender-key-handoff.js +189 -0
  378. package/dist/local/store/key-value/sender-key-handoff.js.map +1 -0
  379. package/dist/local/store/key-value/storage.d.ts +15 -0
  380. package/dist/local/store/key-value/storage.d.ts.map +1 -1
  381. package/dist/local/store/keyed-index.d.ts +23 -0
  382. package/dist/local/store/keyed-index.d.ts.map +1 -0
  383. package/dist/local/store/keyed-index.js +41 -0
  384. package/dist/local/store/keyed-index.js.map +1 -0
  385. package/dist/local/store/memory/adapter.d.ts +44 -12
  386. package/dist/local/store/memory/adapter.d.ts.map +1 -1
  387. package/dist/local/store/memory/adapter.js +197 -46
  388. package/dist/local/store/memory/adapter.js.map +1 -1
  389. package/dist/local/store/memory/send-log.d.ts +42 -0
  390. package/dist/local/store/memory/send-log.d.ts.map +1 -0
  391. package/dist/local/store/memory/send-log.js +190 -0
  392. package/dist/local/store/memory/send-log.js.map +1 -0
  393. package/dist/local/store/node/adapter.d.ts.map +1 -1
  394. package/dist/local/store/node/adapter.js +8 -6
  395. package/dist/local/store/node/adapter.js.map +1 -1
  396. package/dist/local/store/react-native/adapter.d.ts.map +1 -1
  397. package/dist/local/store/react-native/adapter.js +12 -8
  398. package/dist/local/store/react-native/adapter.js.map +1 -1
  399. package/dist/local/store/receive-work.d.ts +87 -0
  400. package/dist/local/store/receive-work.d.ts.map +1 -0
  401. package/dist/local/store/receive-work.js +204 -0
  402. package/dist/local/store/receive-work.js.map +1 -0
  403. package/dist/local/store/received-content.d.ts +3 -3
  404. package/dist/local/store/received-content.d.ts.map +1 -1
  405. package/dist/local/store/received-content.js +2 -11
  406. package/dist/local/store/received-content.js.map +1 -1
  407. package/dist/local/store/reliability.d.ts +411 -14
  408. package/dist/local/store/reliability.d.ts.map +1 -1
  409. package/dist/local/store/reliability.js +532 -58
  410. package/dist/local/store/reliability.js.map +1 -1
  411. package/dist/local/store/send-log-order.d.ts +15 -0
  412. package/dist/local/store/send-log-order.d.ts.map +1 -0
  413. package/dist/local/store/send-log-order.js +24 -0
  414. package/dist/local/store/send-log-order.js.map +1 -0
  415. package/dist/local/store/sender-key-handoff-index.d.ts +38 -0
  416. package/dist/local/store/sender-key-handoff-index.d.ts.map +1 -0
  417. package/dist/local/store/sender-key-handoff-index.js +101 -0
  418. package/dist/local/store/sender-key-handoff-index.js.map +1 -0
  419. package/dist/local/store/sender-key-handoff-table.d.ts +29 -0
  420. package/dist/local/store/sender-key-handoff-table.d.ts.map +1 -0
  421. package/dist/local/store/sender-key-handoff-table.js +97 -0
  422. package/dist/local/store/sender-key-handoff-table.js.map +1 -0
  423. package/dist/local/store/sqlite/encryption.d.ts +8 -1
  424. package/dist/local/store/sqlite/encryption.d.ts.map +1 -1
  425. package/dist/local/store/sqlite/encryption.js +9 -0
  426. package/dist/local/store/sqlite/encryption.js.map +1 -1
  427. package/dist/local/store/sqlite/key-storage/index.d.ts +25 -4
  428. package/dist/local/store/sqlite/key-storage/index.d.ts.map +1 -1
  429. package/dist/local/store/sqlite/key-storage/index.js +68 -7
  430. package/dist/local/store/sqlite/key-storage/index.js.map +1 -1
  431. package/dist/local/store/sqlite/key-storage/message-records.d.ts +16 -4
  432. package/dist/local/store/sqlite/key-storage/message-records.d.ts.map +1 -1
  433. package/dist/local/store/sqlite/key-storage/message-records.js +49 -6
  434. package/dist/local/store/sqlite/key-storage/message-records.js.map +1 -1
  435. package/dist/local/store/sqlite/key-storage/metadata.d.ts +8 -7
  436. package/dist/local/store/sqlite/key-storage/metadata.d.ts.map +1 -1
  437. package/dist/local/store/sqlite/key-storage/metadata.js +17 -15
  438. package/dist/local/store/sqlite/key-storage/metadata.js.map +1 -1
  439. package/dist/local/store/sqlite/key-storage/receive-work.d.ts +27 -0
  440. package/dist/local/store/sqlite/key-storage/receive-work.d.ts.map +1 -0
  441. package/dist/local/store/sqlite/key-storage/receive-work.js +98 -0
  442. package/dist/local/store/sqlite/key-storage/receive-work.js.map +1 -0
  443. package/dist/local/store/sqlite/key-storage/send-log.d.ts +27 -0
  444. package/dist/local/store/sqlite/key-storage/send-log.d.ts.map +1 -0
  445. package/dist/local/store/sqlite/key-storage/send-log.js +178 -0
  446. package/dist/local/store/sqlite/key-storage/send-log.js.map +1 -0
  447. package/dist/local/store/sqlite/key-storage/sender-key-handoff.d.ts +27 -0
  448. package/dist/local/store/sqlite/key-storage/sender-key-handoff.d.ts.map +1 -0
  449. package/dist/local/store/sqlite/key-storage/sender-key-handoff.js +75 -0
  450. package/dist/local/store/sqlite/key-storage/sender-key-handoff.js.map +1 -0
  451. package/dist/local/store/sqlite/key-storage/session-trust.d.ts +2 -2
  452. package/dist/local/store/sqlite/key-storage/session-trust.js +5 -5
  453. package/dist/local/store/sqlite/key-storage/session-trust.js.map +1 -1
  454. package/dist/local/store/sqlite/migrations.d.ts.map +1 -1
  455. package/dist/local/store/sqlite/migrations.js +101 -0
  456. package/dist/local/store/sqlite/migrations.js.map +1 -1
  457. package/dist/local/store/sqlite/models/index.d.ts +2 -1
  458. package/dist/local/store/sqlite/models/index.d.ts.map +1 -1
  459. package/dist/local/store/sqlite/models/index.js +5 -1
  460. package/dist/local/store/sqlite/models/index.js.map +1 -1
  461. package/dist/local/store/sqlite/models/message-record.d.ts +15 -0
  462. package/dist/local/store/sqlite/models/message-record.d.ts.map +1 -1
  463. package/dist/local/store/sqlite/models/message-record.js +24 -0
  464. package/dist/local/store/sqlite/models/message-record.js.map +1 -1
  465. package/dist/local/store/sqlite/models/send-log.d.ts +51 -0
  466. package/dist/local/store/sqlite/models/send-log.d.ts.map +1 -0
  467. package/dist/local/store/sqlite/models/send-log.js +206 -0
  468. package/dist/local/store/sqlite/models/send-log.js.map +1 -0
  469. package/dist/local/store/sqlite/open-store.d.ts +9 -1
  470. package/dist/local/store/sqlite/open-store.d.ts.map +1 -1
  471. package/dist/local/store/sqlite/open-store.js +20 -1
  472. package/dist/local/store/sqlite/open-store.js.map +1 -1
  473. package/dist/local/store/sqlite/schema.d.ts +34 -1
  474. package/dist/local/store/sqlite/schema.d.ts.map +1 -1
  475. package/dist/local/store/sqlite/schema.js +14 -0
  476. package/dist/local/store/sqlite/schema.js.map +1 -1
  477. package/dist/local/store/sqlite/store.d.ts +61 -11
  478. package/dist/local/store/sqlite/store.d.ts.map +1 -1
  479. package/dist/local/store/sqlite/store.js +191 -27
  480. package/dist/local/store/sqlite/store.js.map +1 -1
  481. package/dist/local/store/web/adapter.d.ts +76 -8
  482. package/dist/local/store/web/adapter.d.ts.map +1 -1
  483. package/dist/local/store/web/adapter.js +579 -127
  484. package/dist/local/store/web/adapter.js.map +1 -1
  485. package/dist/local/store/web/receive-work.d.ts +57 -0
  486. package/dist/local/store/web/receive-work.d.ts.map +1 -0
  487. package/dist/local/store/web/receive-work.js +99 -0
  488. package/dist/local/store/web/receive-work.js.map +1 -0
  489. package/dist/local/store/web/send-log.d.ts +92 -0
  490. package/dist/local/store/web/send-log.d.ts.map +1 -0
  491. package/dist/local/store/web/send-log.js +267 -0
  492. package/dist/local/store/web/send-log.js.map +1 -0
  493. package/dist/local/store/web/sender-key-handoff.d.ts +81 -0
  494. package/dist/local/store/web/sender-key-handoff.d.ts.map +1 -0
  495. package/dist/local/store/web/sender-key-handoff.js +156 -0
  496. package/dist/local/store/web/sender-key-handoff.js.map +1 -0
  497. package/dist/local/store/web-sqlite/adapter.d.ts +2 -0
  498. package/dist/local/store/web-sqlite/adapter.d.ts.map +1 -1
  499. package/dist/local/store/web-sqlite/adapter.js +12 -6
  500. package/dist/local/store/web-sqlite/adapter.js.map +1 -1
  501. package/dist/local/vault/custody.d.ts +8 -0
  502. package/dist/local/vault/custody.d.ts.map +1 -0
  503. package/dist/local/vault/custody.js +9 -0
  504. package/dist/local/vault/custody.js.map +1 -0
  505. package/dist/local/vault/electron-safe-storage.d.ts +3 -1
  506. package/dist/local/vault/electron-safe-storage.d.ts.map +1 -1
  507. package/dist/local/vault/electron-safe-storage.js +2 -0
  508. package/dist/local/vault/electron-safe-storage.js.map +1 -1
  509. package/dist/local/vault/expo-secure-store.d.ts +3 -1
  510. package/dist/local/vault/expo-secure-store.d.ts.map +1 -1
  511. package/dist/local/vault/expo-secure-store.js +2 -0
  512. package/dist/local/vault/expo-secure-store.js.map +1 -1
  513. package/dist/local/vault/indexed-db.d.ts +3 -1
  514. package/dist/local/vault/indexed-db.d.ts.map +1 -1
  515. package/dist/local/vault/indexed-db.js +2 -0
  516. package/dist/local/vault/indexed-db.js.map +1 -1
  517. package/dist/local/vault/react-native-keychain.d.ts +3 -1
  518. package/dist/local/vault/react-native-keychain.d.ts.map +1 -1
  519. package/dist/local/vault/react-native-keychain.js +2 -0
  520. package/dist/local/vault/react-native-keychain.js.map +1 -1
  521. package/dist/remote/relay/device-set.d.ts +94 -0
  522. package/dist/remote/relay/device-set.d.ts.map +1 -0
  523. package/dist/remote/relay/device-set.js +156 -0
  524. package/dist/remote/relay/device-set.js.map +1 -0
  525. package/dist/remote/relay/types.d.ts +104 -110
  526. package/dist/remote/relay/types.d.ts.map +1 -1
  527. package/dist/safety/core.d.ts +15 -6
  528. package/dist/safety/core.d.ts.map +1 -1
  529. package/dist/safety/core.js +41 -27
  530. package/dist/safety/core.js.map +1 -1
  531. package/dist/safety/index.d.ts +2 -1
  532. package/dist/safety/index.d.ts.map +1 -1
  533. package/dist/safety/index.js +12 -18
  534. package/dist/safety/index.js.map +1 -1
  535. package/dist/types/api.d.ts +707 -62
  536. package/dist/types/api.d.ts.map +1 -1
  537. package/dist/types/errors.d.ts +14 -33
  538. package/dist/types/errors.d.ts.map +1 -1
  539. package/dist/types/errors.js +14 -24
  540. package/dist/types/errors.js.map +1 -1
  541. package/dist/types/messages.d.ts +2 -2
  542. package/dist/types/messages.js +1 -1
  543. package/dist/types/protocol-config.d.ts +175 -42
  544. package/dist/types/protocol-config.d.ts.map +1 -1
  545. package/dist/types/protocol-config.js +19 -38
  546. package/dist/types/protocol-config.js.map +1 -1
  547. package/dist/types/protocol-constants.d.ts +6 -6
  548. package/dist/types/protocol-constants.js +6 -6
  549. package/dist/types/session.d.ts +7 -7
  550. package/dist/types/session.d.ts.map +1 -1
  551. package/dist/types/session.js +39 -21
  552. package/dist/types/session.js.map +1 -1
  553. package/dist/username/link.d.ts +2 -2
  554. package/dist/username/link.js +2 -2
  555. package/dist/utils/origin-lock.d.ts +45 -0
  556. package/dist/utils/origin-lock.d.ts.map +1 -0
  557. package/dist/utils/origin-lock.js +80 -0
  558. package/dist/utils/origin-lock.js.map +1 -0
  559. package/dist/utils/retry.d.ts +2 -0
  560. package/dist/utils/retry.d.ts.map +1 -1
  561. package/dist/utils/retry.js +7 -0
  562. package/dist/utils/retry.js.map +1 -1
  563. package/docs/ASSURANCE.md +6 -6
  564. package/docs/CLIENT_COMPOSITION.md +2 -2
  565. package/docs/DEVIATIONS.md +677 -182
  566. package/docs/E2EE.md +1 -1
  567. package/docs/ERROR_HANDLING.md +235 -2
  568. package/docs/GETTING_STARTED.md +7 -4
  569. package/docs/INTERFACES.md +1 -1
  570. package/docs/PACKAGE_SURFACE.md +6 -5
  571. package/docs/PROTOCOL_POLICY.md +102 -22
  572. package/docs/RECIPES.md +3 -15
  573. package/docs/SECURITY.md +90 -5
  574. package/keys/README.md +3 -3
  575. package/local/store/README.md +78 -14
  576. package/local/store/key-value/README.md +14 -3
  577. package/local/store/node/README.md +8 -3
  578. package/local/store/web/README.md +9 -0
  579. package/local/store/web-sqlite/README.md +14 -2
  580. package/local/vault/README.md +21 -0
  581. package/package.json +1 -6
  582. package/remote/README.md +0 -1
  583. package/remote/relay/README.md +2 -2
  584. package/dist/device/provisioning.d.ts +0 -242
  585. package/dist/device/provisioning.d.ts.map +0 -1
  586. package/dist/device/provisioning.js +0 -421
  587. package/dist/device/provisioning.js.map +0 -1
  588. package/dist/internal/protocol/x3dh/index.d.ts +0 -15
  589. package/dist/internal/protocol/x3dh/index.d.ts.map +0 -1
  590. package/dist/internal/protocol/x3dh/index.js +0 -13
  591. package/dist/internal/protocol/x3dh/index.js.map +0 -1
  592. package/dist/internal/protocol/x3dh/x3dh.d.ts +0 -131
  593. package/dist/internal/protocol/x3dh/x3dh.d.ts.map +0 -1
  594. package/dist/internal/protocol/x3dh/x3dh.js +0 -261
  595. package/dist/internal/protocol/x3dh/x3dh.js.map +0 -1
@@ -12,6 +12,13 @@ export declare const RELIABILITY_RECORD_TTL_MS: number;
12
12
  * time after the failure.
13
13
  */
14
14
  export declare const RETRY_REQUESTER_RECORD_TTL_MS: number;
15
+ /**
16
+ * The time from the first failure of a retry request to its end: 14 days,
17
+ * the default retention of resendable content of a sender,
18
+ * `RESENDABLE_CONTENT_RETENTION_MS`. A request whose content did not come
19
+ * at this time ends as `expired-content`.
20
+ */
21
+ export declare const RETRY_REQUEST_DEADLINE_MS: number;
15
22
  export interface StoredOutgoingDeviceMessage {
16
23
  recipientUserId: string;
17
24
  recipientDeviceId: number;
@@ -24,6 +31,15 @@ export interface StoredOutgoingDeviceMessage {
24
31
  sealedSenderAccessKey?: string;
25
32
  sealedSenderAuthorization?: 'access_key' | 'group_send_token';
26
33
  sealedSenderDeliveryMode?: 'preferred' | 'required';
34
+ /**
35
+ * The own sender key that a distribution pre-message gives. When the Relay
36
+ * accepts the pre-message, the send records a handoff row for this key and
37
+ * `recipientRegistrationId`. It holds no key material.
38
+ */
39
+ senderKeyHandoff?: {
40
+ senderKeyId: string;
41
+ generation: number;
42
+ };
27
43
  }
28
44
  export interface StoredGroupSharedMessage {
29
45
  groupId: string;
@@ -57,6 +73,33 @@ export interface StoredOutgoingMessageIntent {
57
73
  * not yet applied the list to this intent.
58
74
  */
59
75
  reconcilePending?: true;
76
+ /**
77
+ * The restarts of each phase of a declared send. The write that commits a
78
+ * repair also adds one to the count of its phase.
79
+ */
80
+ deviceSetRestarts?: {
81
+ recipient?: number;
82
+ sync?: number;
83
+ };
84
+ /** The terminal record of a phase that ended without reconciliation. */
85
+ deviceSetUnresolved?: StoredDeviceSetUnresolved;
86
+ /**
87
+ * The listed devices of each phase of a declared send that had no prekey
88
+ * bundle at the last repair of the phase. They have no message in the
89
+ * intent. A replay starts a session with each of them before its first
90
+ * post, so a device that uploaded a bundle after the repair gets the
91
+ * message. A new run after a terminal end keeps them.
92
+ */
93
+ deviceSetBundleMissing?: {
94
+ recipient?: OutgoingGroupDevice[];
95
+ sync?: OutgoingGroupDevice[];
96
+ };
97
+ /**
98
+ * The recipient phase completed and the sync phase did not. The intent
99
+ * keeps its sync messages, and a replay posts only them. With no sync
100
+ * messages, the read of the own device list failed, and a replay reads it.
101
+ */
102
+ syncPending?: true;
60
103
  result?: {
61
104
  clientMessageId: string;
62
105
  messageId: string;
@@ -64,24 +107,136 @@ export interface StoredOutgoingMessageIntent {
64
107
  recipientDeviceCount: number;
65
108
  duplicate?: boolean;
66
109
  expiresAt?: number;
110
+ refusedDestinationCount?: number;
67
111
  groupId?: string;
68
112
  };
69
113
  }
114
+ /** The terminal record of a declared send phase that ended without reconciliation. */
115
+ export interface StoredDeviceSetUnresolved {
116
+ phase: 'recipient' | 'sync';
117
+ reason: 'exhausted' | 'expired';
118
+ restarts: number;
119
+ lastRefusal?: {
120
+ code: 'DEVICE_SET_MISMATCH' | 'STALE_DEVICE' | 'BUNDLE_NOT_FOUND';
121
+ accounts: {
122
+ userId: string;
123
+ missingDeviceIds: number[];
124
+ extraDeviceIds: number[];
125
+ staleDeviceIds: number[];
126
+ }[];
127
+ };
128
+ }
70
129
  type ReliabilityMetadataStore = Pick<SignalProtocolLocalStore, 'getMetadata' | 'setMetadata' | 'deleteMetadata'>;
71
130
  export declare function withOutgoingMessageIntentLock<T>(store: ReliabilityMetadataStore, clientMessageId: string, operation: () => Promise<T>): Promise<T>;
72
131
  export declare function withProcessedEnvelopeLock<T>(store: ReliabilityMetadataStore, envelopeId: string, operation: () => Promise<T>): Promise<T>;
73
- export declare function appendOutgoingGroupDeviceMessages(store: ReliabilityMetadataStore, clientMessageId: string, messages: StoredOutgoingDeviceMessage[]): Promise<StoredOutgoingMessageIntent>;
132
+ /** One device of a group intent: an account and one of its devices. */
133
+ export interface OutgoingGroupDevice {
134
+ userId: string;
135
+ deviceId: number;
136
+ }
137
+ /** A change of the device set of a group intent. */
138
+ export interface OutgoingGroupDeviceSetChange {
139
+ /** The devices whose pre-messages, device messages, and sync messages leave the intent. */
140
+ removed: readonly OutgoingGroupDevice[];
141
+ preMessages: readonly StoredOutgoingDeviceMessage[];
142
+ deviceMessages: readonly StoredOutgoingDeviceMessage[];
143
+ syncMessages: readonly StoredOutgoingDeviceMessage[];
144
+ /**
145
+ * The sealed shared body that replaces the stored body, or null when the
146
+ * send no longer has a shared body. Absent when the body does not change.
147
+ */
148
+ groupSharedMessage?: StoredGroupSharedMessage | null;
149
+ }
150
+ /**
151
+ * Apply a change of the device set to a group intent in one write. Each
152
+ * removed device first loses all of its messages. Then each new message is
153
+ * appended to its list. A new message for a device that still has a message
154
+ * in the same list must be equal to it, and is not appended again. The same
155
+ * write replaces or removes the shared body when the change names one.
156
+ */
157
+ export declare function reconcileOutgoingGroupDeviceSet(store: ReliabilityMetadataStore, clientMessageId: string, change: OutgoingGroupDeviceSetChange): Promise<StoredOutgoingMessageIntent>;
158
+ /** A repair of the device set of one phase of a declared send. */
159
+ export interface OutgoingDeviceSetRepair {
160
+ phase: 'recipient' | 'sync';
161
+ /** The restart count after this repair. It is one more than the stored count. */
162
+ restarts: number;
163
+ /** The devices whose pre-messages, device messages, and sync messages leave the intent. */
164
+ removed: readonly OutgoingGroupDevice[];
165
+ /**
166
+ * The listed devices of the phase that had no prekey bundle at this
167
+ * repair. They replace the stored bundle-missing devices of the phase.
168
+ */
169
+ bundleMissing?: readonly OutgoingGroupDevice[];
170
+ preMessages?: readonly StoredOutgoingDeviceMessage[];
171
+ deviceMessages?: readonly StoredOutgoingDeviceMessage[];
172
+ syncMessages?: readonly StoredOutgoingDeviceMessage[];
173
+ /**
174
+ * The sealed shared body that replaces the refused body of a group send,
175
+ * or null when no member of the send remains in a shared body.
176
+ */
177
+ groupSharedMessage?: StoredGroupSharedMessage | null;
178
+ }
179
+ /**
180
+ * Commit the repair of a declared send phase and its restart count in one
181
+ * write. Each removed device first loses all of its messages. Then each new
182
+ * message is appended to its list. A completed intent takes a repair only of
183
+ * its pending sync phase, and a terminal intent takes none.
184
+ */
185
+ export declare function repairOutgoingDeviceSet(store: ReliabilityMetadataStore, clientMessageId: string, repair: OutgoingDeviceSetRepair): Promise<StoredOutgoingMessageIntent>;
186
+ /**
187
+ * Record that a phase of a declared send ended without reconciliation. The
188
+ * restart counts stay. The SDK does not post the phase again until the
189
+ * application calls `send()` with the same `clientMessageId`.
190
+ */
191
+ export declare function markOutgoingDeviceSetUnresolved(store: ReliabilityMetadataStore, clientMessageId: string, unresolved: StoredDeviceSetUnresolved): Promise<StoredOutgoingMessageIntent>;
192
+ /**
193
+ * Start a new run of a terminal declared send at 0 restarts: remove the
194
+ * terminal record and the restart counts in one write. An intent that is not
195
+ * terminal keeps its counts.
196
+ */
197
+ export declare function restartOutgoingDeviceSet(store: ReliabilityMetadataStore, clientMessageId: string): Promise<StoredOutgoingMessageIntent>;
198
+ /**
199
+ * Complete the pending sync phase of a completed intent: remove its sync
200
+ * messages, its restart counts, and its terminal record.
201
+ */
202
+ export declare function completeOutgoingSyncPhase(store: ReliabilityMetadataStore, clientMessageId: string): Promise<void>;
74
203
  /**
75
- * Remove the pre-messages that the relay accepted from a group intent, so a
76
- * replay posts only the pre-messages that the relay did not accept.
204
+ * The result of a completed intent as a send returns it. A pending sync
205
+ * phase gives `syncPending`.
77
206
  */
78
- export declare function confirmOutgoingPreMessages(store: ReliabilityMetadataStore, clientMessageId: string, acceptedClientMessageIds: readonly string[]): Promise<StoredOutgoingMessageIntent>;
207
+ export declare function outgoingMessageIntentResult(intent: StoredOutgoingMessageIntent): (NonNullable<StoredOutgoingMessageIntent['result']> & {
208
+ syncPending?: true;
209
+ }) | undefined;
210
+ /**
211
+ * Remove the pre-messages that the relay accepted or that the send dropped
212
+ * from a group intent, so a replay posts only the pre-messages that the relay
213
+ * did not accept. Each device in `removedDevices` loses all of its messages
214
+ * in the same write.
215
+ */
216
+ export declare function confirmOutgoingPreMessages(store: ReliabilityMetadataStore, clientMessageId: string, acceptedClientMessageIds: readonly string[], removedDevices?: readonly OutgoingGroupDevice[]): Promise<StoredOutgoingMessageIntent>;
217
+ /**
218
+ * Replace stored pre-messages of a group intent in one write. Each
219
+ * replacement keeps the target and the timestamp of the pre-message that it
220
+ * replaces, and the stored pre-message must still equal the expected one.
221
+ */
222
+ export declare function replaceOutgoingGroupPreMessages(store: ReliabilityMetadataStore, clientMessageId: string, replacements: readonly {
223
+ expected: StoredOutgoingDeviceMessage;
224
+ replacement: StoredOutgoingDeviceMessage;
225
+ }[]): Promise<StoredOutgoingMessageIntent>;
79
226
  /**
80
227
  * Apply the recipient's device list to a direct intent in one write: remove
81
228
  * the messages of the devices that the list no longer shows, append a message
82
229
  * for each newly listed device, and clear the pending reconcile.
83
230
  */
84
231
  export declare function reconcileOutgoingDirectDeviceMessages(store: ReliabilityMetadataStore, clientMessageId: string, removedDeviceIds: readonly number[], messages: StoredOutgoingDeviceMessage[]): Promise<StoredOutgoingMessageIntent>;
232
+ /**
233
+ * Change the sync copies of a direct or group intent in one write. The sync
234
+ * copies of each removed own device leave the intent first. Then each new
235
+ * sync copy is appended. A new copy for a device that still has a copy must
236
+ * be equal to it, and is not appended again. A completed intent accepts the
237
+ * change only while its sync phase is pending.
238
+ */
239
+ export declare function reconcileOutgoingSyncMessages(store: ReliabilityMetadataStore, clientMessageId: string, removedDeviceIds: readonly number[], additions: readonly StoredOutgoingDeviceMessage[]): Promise<StoredOutgoingMessageIntent>;
85
240
  export declare function replaceOutgoingDirectDeviceMessage(store: ReliabilityMetadataStore, clientMessageId: string, expected: StoredOutgoingDeviceMessage, replacement: StoredOutgoingDeviceMessage): Promise<StoredOutgoingMessageIntent>;
86
241
  export declare function getOutgoingMessageIntent(store: ReliabilityMetadataStore, clientMessageId: string, now?: number): Promise<StoredOutgoingMessageIntent | null>;
87
242
  export declare function storeOutgoingMessageIntent(store: ReliabilityMetadataStore, intent: StoredOutgoingMessageIntent, now?: number): Promise<void>;
@@ -118,7 +273,16 @@ export interface StoredDeliveryStatus {
118
273
  * message ID counts.
119
274
  */
120
275
  export declare function updateDeliveryStatus<T>(store: ReliabilityMetadataStore, clientMessageId: string, update: (status: StoredDeliveryStatus, intent: StoredOutgoingMessageIntent) => T, now?: number): Promise<T | undefined>;
121
- export declare function completeOutgoingMessageIntent(store: ReliabilityMetadataStore, clientMessageId: string, result: NonNullable<StoredOutgoingMessageIntent['result']>): Promise<void>;
276
+ /**
277
+ * Complete an outgoing intent with its Relay result. With `syncPending`,
278
+ * the recipient phase completed and the sync phase did not: the intent keeps
279
+ * its sync messages and the restart count of its sync phase, so a replay
280
+ * posts only the sync messages. With `syncPending` and no sync messages, the
281
+ * read of the own device list failed, and a replay reads it.
282
+ */
283
+ export declare function completeOutgoingMessageIntent(store: ReliabilityMetadataStore, clientMessageId: string, result: NonNullable<StoredOutgoingMessageIntent['result']>, options?: {
284
+ syncPending?: boolean;
285
+ }): Promise<void>;
122
286
  /** The record of one envelope ID that the local device processed. */
123
287
  export interface ProcessedEnvelope {
124
288
  /** The time of the processing. The record expires from this time. */
@@ -131,6 +295,28 @@ export interface ProcessedEnvelope {
131
295
  * each later member of its retry family.
132
296
  */
133
297
  fulfilled?: true;
298
+ /**
299
+ * True when the application finished the content of this failed envelope:
300
+ * the receive record of its resend completed. `onDeliveryRecovered` waits
301
+ * for this fact, not for `fulfilled`.
302
+ */
303
+ completed?: true;
304
+ /**
305
+ * The end of a receive record that the application never got: `denied`
306
+ * after a refusal, `expired` after 30 days of waiting or after
307
+ * `discardPendingReceive`.
308
+ */
309
+ outcome?: ProcessedEnvelopeOutcome;
310
+ }
311
+ /** The end of a receive record that the application never got. */
312
+ export type ProcessedEnvelopeOutcome = 'denied' | 'expired';
313
+ /** The fields of one processed-envelope write. */
314
+ export interface ProcessedEnvelopeWrite {
315
+ envelopeId: string;
316
+ fingerprint?: string;
317
+ fulfilled?: true;
318
+ completed?: true;
319
+ outcome?: ProcessedEnvelopeOutcome;
134
320
  }
135
321
  /**
136
322
  * Get the processed-envelope record of one envelope ID. A record older
@@ -145,7 +331,7 @@ export declare function getProcessedEnvelope(store: ReliabilityMetadataStore, en
145
331
  export declare function hasProcessedEnvelope(store: ReliabilityMetadataStore, envelopeId: string, now?: number): Promise<boolean>;
146
332
  /**
147
333
  * Record that the local device processed one envelope ID. The write keeps
148
- * the fingerprint and the fulfilled flag of a record that counts, so a
334
+ * the fingerprint, the flags, and the outcome of a record that counts, so a
149
335
  * later store for the same ID never clears them.
150
336
  *
151
337
  * @param fulfilled - True when the application got the content of this
@@ -153,6 +339,22 @@ export declare function hasProcessedEnvelope(store: ReliabilityMetadataStore, en
153
339
  * one write.
154
340
  */
155
341
  export declare function storeProcessedEnvelope(store: ReliabilityMetadataStore, envelopeId: string, processedAt?: number, fingerprint?: string, fulfilled?: true): Promise<void>;
342
+ /**
343
+ * Write several processed-envelope records in one turn of the mutation
344
+ * queue. A denial with no receive record uses it: the denied outcome and
345
+ * the processed fact of the envelope land together.
346
+ */
347
+ export declare function writeProcessedEnvelopes(store: ReliabilityMetadataStore, writes: readonly ProcessedEnvelopeWrite[], processedAt?: number): Promise<void>;
348
+ /**
349
+ * Complete one receive record: delete it and write its processed-envelope
350
+ * records in one atomic store write. The writes run against a buffer over
351
+ * the store, so the ledger index and the records commit with the delete or
352
+ * not at all.
353
+ *
354
+ * @returns False, with nothing written, when the stored revision of the
355
+ * receive record is not `expectedRevision`.
356
+ */
357
+ export declare function completeReceiveRecord(store: ReliabilityMetadataStore & Pick<SignalProtocolLocalStore, 'completeReceiveWork'>, workId: string, expectedRevision: number, writes: readonly ProcessedEnvelopeWrite[], processedAt?: number): Promise<boolean>;
156
358
  /**
157
359
  * The relay gave a failed envelope ID again with other content after the
158
360
  * local device stored a retry request for that ID.
@@ -277,9 +479,152 @@ export interface StoredRetryRequest {
277
479
  * answer attempt n, and its post is a replay.
278
480
  */
279
481
  answered: boolean;
280
- /** The request envelope of the stored attempt. */
281
- envelope: Envelope;
482
+ /**
483
+ * True when the failed envelope is a sender-key group message. A resend
484
+ * that brings only the sender key then does not give the content of the
485
+ * failed envelope.
486
+ */
487
+ groupMessage?: boolean;
488
+ /**
489
+ * The client message ID of the failed envelope, when its relay delivered
490
+ * one. Every attempt of the record carries it.
491
+ */
492
+ failedClientMessageId?: string;
493
+ /**
494
+ * The raw group ID of the failed envelope, when the local device knows it
495
+ * from the sender key that the message names, from the receive that
496
+ * resolved its group, or from the decrypt that gave its content. A
497
+ * pairwise failure has none. Each later attempt keeps it.
498
+ */
499
+ groupId?: string;
500
+ /**
501
+ * The time when the local device first failed to decrypt the failed
502
+ * envelope. Each later attempt keeps it. The delivery error of the record
503
+ * counts from it.
504
+ */
505
+ receivedAt?: number;
506
+ /**
507
+ * The content hint of the failed envelope, when it named one. It sets
508
+ * when the client reports the delivery error. Each later attempt keeps it.
509
+ */
510
+ contentHint?: ContentHint;
511
+ /** The device that sent the failed envelope. Each later attempt keeps it. */
512
+ failedSender?: {
513
+ userId: string;
514
+ deviceId: number;
515
+ };
516
+ /**
517
+ * True after the `onDeliveryError` hook returned for the failed envelope.
518
+ * Each later attempt keeps it, so the hook runs again only when it did not
519
+ * return.
520
+ */
521
+ errorShown?: boolean;
522
+ /**
523
+ * True after the `onDeliveryRecovered` hook returned for the failed
524
+ * envelope. Each later attempt keeps it, so the hook runs again only when
525
+ * it did not return.
526
+ */
527
+ recoveredEmitted?: boolean;
528
+ /**
529
+ * The end of the attempts: the time of attempt 1, which is the first
530
+ * failure, plus `RETRY_REQUEST_DEADLINE_MS`. The failed message timestamp
531
+ * does not change it, and each later attempt keeps it. A request whose
532
+ * content did not come at this time ends as `expired-content`, also when
533
+ * its stored attempt is answered.
534
+ */
535
+ deadlineAt: number;
536
+ /**
537
+ * The earliest time of the next post of the stored attempt. A new attempt
538
+ * stores its own time, so an attempt whose post a stop or a crash ended
539
+ * stays due. A post that failed with a retryable class sets a later time.
540
+ * A post that the Relay accepts, and a terminal state, clear it. With no
541
+ * value, the Relay holds the attempt, and the record waits for its answer
542
+ * or its deadline.
543
+ */
544
+ nextAttemptAt?: number;
545
+ /** The class of the last post that failed, until a post succeeds. */
546
+ lastFailureClass?: RetryFailureClass;
547
+ /** The conclusive end of the request. No attempt posts after it. */
548
+ terminal?: RetryTerminal;
549
+ /**
550
+ * The request envelope of the stored attempt. Only a request that ended
551
+ * before its first post, as at an exhausted abuse allowance, has none.
552
+ */
553
+ envelope?: Envelope;
554
+ /**
555
+ * The session reset of an `expired-content` end. Each step is stored when
556
+ * it ends, so a replay does not do a step again. Only a record whose
557
+ * terminal class is `expired-content` has it.
558
+ */
559
+ recovery?: RetryTerminalRecovery;
282
560
  }
561
+ /**
562
+ * The conclusive end of a retry request or a retry resend.
563
+ *
564
+ * - `missing-sender`: the device that sent the failed message is gone, or
565
+ * it still refuses the request after a refresh of the session with it.
566
+ * - `missing-prekey`: the Relay has no prekey bundle of the requester, so the
567
+ * sender of the resend cannot start a new session.
568
+ * - `revoked-authority`: the Relay revoked the authority of the post.
569
+ * - `expired-content`: the content of the request did not come before its
570
+ * deadline.
571
+ * - `attempts-exhausted`: the resend that answered the fifth attempt of the
572
+ * request, `MAX_RETRY_RESPONSES_PER_MESSAGE`, also failed. The sender
573
+ * answers no later attempt.
574
+ * - `deletion`: the account of the other device is deleted.
575
+ * - `abuse-allowance-exhausted`: the sender used up its retry allowance.
576
+ * - `membership-refused`: the requester is not a current member of the group
577
+ * of the content, or the sender has no source of current group membership.
578
+ * The sender sends no content. Only the answer of a sender ends with it.
579
+ */
580
+ export type RetryTerminalClass = 'missing-sender' | 'missing-prekey' | 'revoked-authority' | 'expired-content' | 'attempts-exhausted' | 'deletion' | 'abuse-allowance-exhausted' | 'membership-refused';
581
+ /**
582
+ * The class of a retry request post that failed and can succeed later.
583
+ * `transport-outage`: the post did not reach the Relay, its answer is
584
+ * unknown, or the Relay marked its refusal `retryable`. `rate-refusal`: a
585
+ * rate limit or a full mailbox refused it.
586
+ */
587
+ export type RetryFailureClass = 'transport-outage' | 'rate-refusal';
588
+ /** The terminal state of a retry record. */
589
+ export interface RetryTerminal {
590
+ class: RetryTerminalClass;
591
+ /** The time of the end. */
592
+ at: number;
593
+ /** True after the `onRetryTerminal` hook returned for this end. */
594
+ emitted: boolean;
595
+ }
596
+ /**
597
+ * The session reset that the requester did after a request ended as
598
+ * `expired-content`.
599
+ */
600
+ export interface RetryTerminalRecovery {
601
+ /** The user of the device that sent the failed envelope. */
602
+ userId: string;
603
+ /** The device whose session the requester archived. */
604
+ deviceId: number;
605
+ /**
606
+ * `applied`: the failed envelope has a known group, and the requester has
607
+ * a sender key for it. `skipped`: the failed envelope has no known group,
608
+ * or the requester has no sender key for it. With each outcome, the reset
609
+ * deletes the handoff rows of each device of the account in every group.
610
+ */
611
+ senderKey: 'applied' | 'skipped';
612
+ /** The null message to the device. It is absent until that step ends. */
613
+ nullMessage?: RetryTerminalNullMessage;
614
+ }
615
+ /**
616
+ * The null message of a session reset. `sent`: the Relay accepted it.
617
+ * `limited`: the requester sent one to the device less than
618
+ * `RETRY_TERMINAL_NULL_MESSAGE_INTERVAL_MS` before. `failed`: its send
619
+ * failed, and the next ordinary message starts the new session.
620
+ */
621
+ export interface RetryTerminalNullMessage {
622
+ outcome: 'sent' | 'limited' | 'failed';
623
+ /** The time of the outcome. */
624
+ at: number;
625
+ }
626
+ /** The shortest time between two session reset null messages to one device. */
627
+ export declare const RETRY_TERMINAL_NULL_MESSAGE_INTERVAL_MS: number;
283
628
  /**
284
629
  * Get the stored retry request for one failed envelope. A record older than
285
630
  * `RETRY_REQUESTER_RECORD_TTL_MS` does not count.
@@ -301,6 +646,33 @@ export declare function getRetryRequest(store: ReliabilityMetadataStore, failedE
301
646
  * @param now - The current time.
302
647
  */
303
648
  export declare function markRetryRequestAnswered(store: ReliabilityMetadataStore, failedEnvelopeId: string, retryId: string, attempt: number, now?: number): Promise<void>;
649
+ /**
650
+ * Change the lifecycle fields of the stored attempt of a retry request. It
651
+ * writes only when the record holds the given retry ID and attempt, so a
652
+ * change for an attempt that a later attempt replaced writes nothing. A
653
+ * field with the value undefined is removed. The attempt keeps its time,
654
+ * so its bucket index stays.
655
+ *
656
+ * @returns The changed record, or null when no record matched.
657
+ */
658
+ export declare function updateRetryRequest(store: ReliabilityMetadataStore, failedEnvelopeId: string, retryId: string, attempt: number, changes: Partial<Pick<StoredRetryRequest, 'nextAttemptAt' | 'lastFailureClass' | 'terminal' | 'errorShown' | 'recoveredEmitted' | 'groupId' | 'recovery'>>, now?: number): Promise<StoredRetryRequest | null>;
659
+ /**
660
+ * The failed envelope IDs of the stored retry requests that are not older
661
+ * than `RETRY_REQUESTER_RECORD_TTL_MS`. The caller reads each record with
662
+ * `getRetryRequest`.
663
+ */
664
+ export declare function listRetryRequestIds(store: ReliabilityMetadataStore, now?: number): Promise<string[]>;
665
+ /**
666
+ * Move each retry request record of the v1 prefix to the current prefix,
667
+ * and delete the v1 keys. A v1 record has no deadline, so the moved record
668
+ * gets the time of its stored attempt plus `RETRY_REQUEST_DEADLINE_MS`. A
669
+ * v1 record does not tell whether the post of its attempt reached the
670
+ * Relay, so an unanswered record is due at the time of its stored attempt,
671
+ * and the scheduler posts its stored bytes again. A
672
+ * record older than `RETRY_REQUESTER_RECORD_TTL_MS`, and a record that does
673
+ * not parse, is deleted. With no v1 keys, it writes nothing.
674
+ */
675
+ export declare function migrateRetryRequestRecords(store: ReliabilityMetadataStore, now?: number): Promise<void>;
304
676
  /**
305
677
  * Record the request envelope of a retry request before its post, and the
306
678
  * family index entry from its retry ID to the failed envelope ID. One
@@ -347,24 +719,49 @@ export interface StoredRetryResend extends RetryResendTarget {
347
719
  /** The operation epoch of the stored bytes. The record expires from this time. */
348
720
  operationEpochMilliseconds: number;
349
721
  transportMode: StoredOutgoingMessageIntent['transportMode'];
722
+ /**
723
+ * The sealed authorization of the post. A group endorsement is stored by
724
+ * its group, and the endorsement of the device's account resolves again
725
+ * at each post.
726
+ */
350
727
  sealedSenderAuth?: {
351
728
  type: 'accessKey';
352
729
  unidentifiedAccessKey: string;
730
+ } | {
731
+ type: 'groupSendToken';
732
+ groupId: string;
353
733
  };
354
734
  contentHint?: ContentHint;
355
735
  message: StoredOutgoingDeviceMessage;
736
+ /** A stored encryption has no terminal state. */
737
+ terminal?: undefined;
738
+ }
739
+ /**
740
+ * The conclusive end of the answer to one device for one failed envelope,
741
+ * in place of an encryption. The sender answers no later request for that
742
+ * envelope from that device. The record expires from the time of the end.
743
+ */
744
+ export interface RetryResendTerminal extends RetryResendTarget {
745
+ /** The attempt number of the request that ended the answer. */
746
+ attempt: number;
747
+ /** The user that asked for the answer. */
748
+ recipientUserId: string;
749
+ /** The device that asked for the answer. */
750
+ recipientDeviceId: number;
751
+ terminal: RetryTerminal;
356
752
  }
357
753
  /**
358
754
  * Get the stored answer to one device for one failed envelope. A record
359
755
  * older than `RELIABILITY_RECORD_TTL_MS` does not count.
360
756
  */
361
- export declare function getRetryResend(store: ReliabilityMetadataStore, recipientUserId: string, recipientDeviceId: number, failedEnvelopeId: string, now?: number): Promise<StoredRetryResend | null>;
757
+ export declare function getRetryResend(store: ReliabilityMetadataStore, recipientUserId: string, recipientDeviceId: number, failedEnvelopeId: string, now?: number): Promise<StoredRetryResend | RetryResendTerminal | null>;
362
758
  /**
363
- * Record the encrypted bytes of a retry resend before their post. A later
364
- * encryption replaces the earlier one in one write, so the record holds an
365
- * encryption at each point. Throws, and writes nothing, when the attempt
366
- * is not the attempt number of the request envelope.
759
+ * Record the encrypted bytes of a retry resend before their post, or the
760
+ * terminal state of the answer. A later write replaces the earlier one in
761
+ * one write, so the record holds one state at each point. Throws, and
762
+ * writes nothing, when the attempt is not the attempt number of the
763
+ * request envelope.
367
764
  */
368
- export declare function storeRetryResend(store: ReliabilityMetadataStore, resend: StoredRetryResend): Promise<void>;
765
+ export declare function storeRetryResend(store: ReliabilityMetadataStore, resend: StoredRetryResend | RetryResendTerminal): Promise<void>;
369
766
  export {};
370
767
  //# sourceMappingURL=reliability.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reliability.d.ts","sourceRoot":"","sources":["../../../local/store/reliability.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAYxD,eAAO,MAAM,yBAAyB,QAAc,CAAC;AAErD;;;;;;;;GAQG;AACH,eAAO,MAAM,6BAA6B,QAAgC,CAAC;AAE3E,MAAM,WAAW,2BAA2B;IAC1C,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,eAAe,GAAG,YAAY,GAAG,YAAY,CAAC;IAC3D,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,yBAAyB,CAAC,EAAE,YAAY,GAAG,kBAAkB,CAAC;IAC9D,wBAAwB,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC;CACrD;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,YAAY,EAAE,WAAW,GAAG,UAAU,CAAC;CACxC;AAED,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM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