@interop/wallet-core 0.65.0 → 0.67.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 (256) hide show
  1. package/README.md +12 -8
  2. package/dist/clientAnnex/credentialAnchoredGenesis.d.ts +5 -4
  3. package/dist/clientAnnex/credentialAnchoredGenesis.d.ts.map +1 -1
  4. package/dist/clientAnnex/credentialAnchoredGenesis.js +32 -50
  5. package/dist/clientAnnex/credentialAnchoredGenesis.js.map +1 -1
  6. package/dist/clientAnnex/establish.d.ts +112 -21
  7. package/dist/clientAnnex/establish.d.ts.map +1 -1
  8. package/dist/clientAnnex/establish.js +248 -180
  9. package/dist/clientAnnex/establish.js.map +1 -1
  10. package/dist/clientAnnex/forget.d.ts +2 -6
  11. package/dist/clientAnnex/forget.d.ts.map +1 -1
  12. package/dist/clientAnnex/forget.js +31 -61
  13. package/dist/clientAnnex/forget.js.map +1 -1
  14. package/dist/clientAnnex/forgetLast.d.ts +48 -132
  15. package/dist/clientAnnex/forgetLast.d.ts.map +1 -1
  16. package/dist/clientAnnex/forgetLast.js +88 -221
  17. package/dist/clientAnnex/forgetLast.js.map +1 -1
  18. package/dist/clientAnnex/gc.d.ts.map +1 -1
  19. package/dist/clientAnnex/gc.js +9 -0
  20. package/dist/clientAnnex/gc.js.map +1 -1
  21. package/dist/clientAnnex/heal.d.ts +97 -13
  22. package/dist/clientAnnex/heal.d.ts.map +1 -1
  23. package/dist/clientAnnex/heal.js +108 -174
  24. package/dist/clientAnnex/heal.js.map +1 -1
  25. package/dist/clientAnnex/index.d.ts +8 -8
  26. package/dist/clientAnnex/index.d.ts.map +1 -1
  27. package/dist/clientAnnex/index.js +6 -6
  28. package/dist/clientAnnex/index.js.map +1 -1
  29. package/dist/clientAnnex/ladder.d.ts +51 -4
  30. package/dist/clientAnnex/ladder.d.ts.map +1 -1
  31. package/dist/clientAnnex/ladder.js +310 -55
  32. package/dist/clientAnnex/ladder.js.map +1 -1
  33. package/dist/clientAnnex/ladderAnchored.d.ts +37 -3
  34. package/dist/clientAnnex/ladderAnchored.d.ts.map +1 -1
  35. package/dist/clientAnnex/ladderAnchored.js +69 -34
  36. package/dist/clientAnnex/ladderAnchored.js.map +1 -1
  37. package/dist/clientAnnex/log.d.ts +148 -72
  38. package/dist/clientAnnex/log.d.ts.map +1 -1
  39. package/dist/clientAnnex/log.js +211 -137
  40. package/dist/clientAnnex/log.js.map +1 -1
  41. package/dist/clientAnnex/mend.d.ts.map +1 -1
  42. package/dist/clientAnnex/mend.js +63 -81
  43. package/dist/clientAnnex/mend.js.map +1 -1
  44. package/dist/clientAnnex/recoveryLadderAnchored.d.ts +20 -1
  45. package/dist/clientAnnex/recoveryLadderAnchored.d.ts.map +1 -1
  46. package/dist/clientAnnex/recoveryLadderAnchored.js +77 -294
  47. package/dist/clientAnnex/recoveryLadderAnchored.js.map +1 -1
  48. package/dist/clientAnnex/rosterDeliveredEpochs.d.ts +13 -5
  49. package/dist/clientAnnex/rosterDeliveredEpochs.d.ts.map +1 -1
  50. package/dist/clientAnnex/rosterDeliveredEpochs.js +18 -9
  51. package/dist/clientAnnex/rosterDeliveredEpochs.js.map +1 -1
  52. package/dist/clientAnnex/selfEnroll.js +1 -1
  53. package/dist/clientAnnex/selfEnroll.js.map +1 -1
  54. package/dist/clientAnnex/zcap.d.ts +19 -0
  55. package/dist/clientAnnex/zcap.d.ts.map +1 -1
  56. package/dist/clientAnnex/zcap.js +80 -12
  57. package/dist/clientAnnex/zcap.js.map +1 -1
  58. package/dist/clients/index.d.ts +3 -2
  59. package/dist/clients/index.d.ts.map +1 -1
  60. package/dist/clients/index.js +3 -2
  61. package/dist/clients/index.js.map +1 -1
  62. package/dist/clients/listing.d.ts.map +1 -1
  63. package/dist/clients/listing.js +33 -15
  64. package/dist/clients/listing.js.map +1 -1
  65. package/dist/clients/policy.d.ts +18 -0
  66. package/dist/clients/policy.d.ts.map +1 -1
  67. package/dist/clients/policy.js +22 -8
  68. package/dist/clients/policy.js.map +1 -1
  69. package/dist/clients/revocation.d.ts +18 -30
  70. package/dist/clients/revocation.d.ts.map +1 -1
  71. package/dist/clients/revocation.js +12 -27
  72. package/dist/clients/revocation.js.map +1 -1
  73. package/dist/clients/rosterPolicy.d.ts +6 -1
  74. package/dist/clients/rosterPolicy.d.ts.map +1 -1
  75. package/dist/clients/rosterPolicy.js +27 -30
  76. package/dist/clients/rosterPolicy.js.map +1 -1
  77. package/dist/descriptors/errors.d.ts +6 -5
  78. package/dist/descriptors/errors.d.ts.map +1 -1
  79. package/dist/descriptors/errors.js +6 -5
  80. package/dist/descriptors/errors.js.map +1 -1
  81. package/dist/descriptors/index.d.ts +7 -3
  82. package/dist/descriptors/index.d.ts.map +1 -1
  83. package/dist/descriptors/index.js +7 -3
  84. package/dist/descriptors/index.js.map +1 -1
  85. package/dist/descriptors/logSource.d.ts +28 -6
  86. package/dist/descriptors/logSource.d.ts.map +1 -1
  87. package/dist/descriptors/logSource.js +33 -7
  88. package/dist/descriptors/logSource.js.map +1 -1
  89. package/dist/enrollment/enrollment.d.ts.map +1 -1
  90. package/dist/enrollment/enrollment.js +3 -7
  91. package/dist/enrollment/enrollment.js.map +1 -1
  92. package/dist/genesis/accountGenesis.d.ts +8 -10
  93. package/dist/genesis/accountGenesis.d.ts.map +1 -1
  94. package/dist/genesis/accountGenesis.js +39 -41
  95. package/dist/genesis/accountGenesis.js.map +1 -1
  96. package/dist/genesis/kmsAuthentication.d.ts +50 -0
  97. package/dist/genesis/kmsAuthentication.d.ts.map +1 -0
  98. package/dist/genesis/kmsAuthentication.js +49 -0
  99. package/dist/genesis/kmsAuthentication.js.map +1 -0
  100. package/dist/keyring/kdf.d.ts +16 -20
  101. package/dist/keyring/kdf.d.ts.map +1 -1
  102. package/dist/keyring/kdf.js +2 -2
  103. package/dist/keyring/kdf.js.map +1 -1
  104. package/dist/keyring/unlockSpace.d.ts +8 -30
  105. package/dist/keyring/unlockSpace.d.ts.map +1 -1
  106. package/dist/keyring/unlockSpace.js +8 -31
  107. package/dist/keyring/unlockSpace.js.map +1 -1
  108. package/dist/keys/clientKeyRecord.d.ts +2 -1
  109. package/dist/keys/clientKeyRecord.d.ts.map +1 -1
  110. package/dist/keys/clientKeyRecord.js +28 -11
  111. package/dist/keys/clientKeyRecord.js.map +1 -1
  112. package/dist/keys/index.d.ts +19 -5
  113. package/dist/keys/index.d.ts.map +1 -1
  114. package/dist/keys/index.js +17 -3
  115. package/dist/keys/index.js.map +1 -1
  116. package/dist/keys/rosterLogStore.d.ts +3 -1
  117. package/dist/keys/rosterLogStore.d.ts.map +1 -1
  118. package/dist/keys/rosterLogStore.js +20 -8
  119. package/dist/keys/rosterLogStore.js.map +1 -1
  120. package/dist/keys/spaceEpochs.d.ts +92 -3
  121. package/dist/keys/spaceEpochs.d.ts.map +1 -1
  122. package/dist/keys/spaceEpochs.js +110 -4
  123. package/dist/keys/spaceEpochs.js.map +1 -1
  124. package/dist/keys/userKeyCascade.d.ts +8 -5
  125. package/dist/keys/userKeyCascade.d.ts.map +1 -1
  126. package/dist/keys/userKeyCascade.js +7 -6
  127. package/dist/keys/userKeyCascade.js.map +1 -1
  128. package/dist/keys/userKeyRoster.d.ts +68 -4
  129. package/dist/keys/userKeyRoster.d.ts.map +1 -1
  130. package/dist/keys/userKeyRoster.js +146 -33
  131. package/dist/keys/userKeyRoster.js.map +1 -1
  132. package/dist/keys/userKeyRosterCascade.d.ts +110 -10
  133. package/dist/keys/userKeyRosterCascade.d.ts.map +1 -1
  134. package/dist/keys/userKeyRosterCascade.js +184 -40
  135. package/dist/keys/userKeyRosterCascade.js.map +1 -1
  136. package/dist/recovery/continuation.d.ts +255 -0
  137. package/dist/recovery/continuation.d.ts.map +1 -0
  138. package/dist/recovery/continuation.js +471 -0
  139. package/dist/recovery/continuation.js.map +1 -0
  140. package/dist/recovery/index.d.ts +12 -8
  141. package/dist/recovery/index.d.ts.map +1 -1
  142. package/dist/recovery/index.js +11 -7
  143. package/dist/recovery/index.js.map +1 -1
  144. package/dist/recovery/recoveryDelegation.d.ts +40 -120
  145. package/dist/recovery/recoveryDelegation.d.ts.map +1 -1
  146. package/dist/recovery/recoveryDelegation.js +36 -268
  147. package/dist/recovery/recoveryDelegation.js.map +1 -1
  148. package/dist/recovery/recoveryWebvh.d.ts +42 -83
  149. package/dist/recovery/recoveryWebvh.d.ts.map +1 -1
  150. package/dist/recovery/recoveryWebvh.js +44 -380
  151. package/dist/recovery/recoveryWebvh.js.map +1 -1
  152. package/dist/request/appKey.d.ts +35 -1
  153. package/dist/request/appKey.d.ts.map +1 -1
  154. package/dist/request/appKey.js +29 -10
  155. package/dist/request/appKey.js.map +1 -1
  156. package/dist/request/classify.d.ts +3 -14
  157. package/dist/request/classify.d.ts.map +1 -1
  158. package/dist/request/classify.js +19 -40
  159. package/dist/request/classify.js.map +1 -1
  160. package/dist/request/index.d.ts +1 -0
  161. package/dist/request/index.d.ts.map +1 -1
  162. package/dist/request/index.js +1 -0
  163. package/dist/request/index.js.map +1 -1
  164. package/dist/request/onboarding.d.ts.map +1 -1
  165. package/dist/request/onboarding.js +19 -27
  166. package/dist/request/onboarding.js.map +1 -1
  167. package/dist/request/parse.d.ts +5 -3
  168. package/dist/request/parse.d.ts.map +1 -1
  169. package/dist/request/parse.js +7 -6
  170. package/dist/request/parse.js.map +1 -1
  171. package/dist/request/processRequest.d.ts.map +1 -1
  172. package/dist/request/processRequest.js +2 -1
  173. package/dist/request/processRequest.js.map +1 -1
  174. package/dist/request/queryPredicates.d.ts +98 -0
  175. package/dist/request/queryPredicates.d.ts.map +1 -0
  176. package/dist/request/queryPredicates.js +107 -0
  177. package/dist/request/queryPredicates.js.map +1 -0
  178. package/dist/resourceLog/document.d.ts +39 -0
  179. package/dist/resourceLog/document.d.ts.map +1 -1
  180. package/dist/resourceLog/document.js +41 -0
  181. package/dist/resourceLog/document.js.map +1 -1
  182. package/dist/resourceLog/ladderRungs.d.ts.map +1 -1
  183. package/dist/resourceLog/ladderRungs.js +3 -2
  184. package/dist/resourceLog/ladderRungs.js.map +1 -1
  185. package/dist/sync/contactsConflict.d.ts.map +1 -1
  186. package/dist/sync/contactsConflict.js +8 -2
  187. package/dist/sync/contactsConflict.js.map +1 -1
  188. package/dist/sync/engine.d.ts +38 -23
  189. package/dist/sync/engine.d.ts.map +1 -1
  190. package/dist/sync/engine.js +36 -5
  191. package/dist/sync/engine.js.map +1 -1
  192. package/dist/sync/index.d.ts +9 -12
  193. package/dist/sync/index.d.ts.map +1 -1
  194. package/dist/sync/index.js +8 -11
  195. package/dist/sync/index.js.map +1 -1
  196. package/dist/sync/push.d.ts.map +1 -1
  197. package/dist/sync/push.js +1 -2
  198. package/dist/sync/push.js.map +1 -1
  199. package/dist/sync/remint.d.ts +0 -31
  200. package/dist/sync/remint.d.ts.map +1 -1
  201. package/dist/sync/remint.js +32 -1
  202. package/dist/sync/remint.js.map +1 -1
  203. package/dist/sync/types.d.ts +4 -41
  204. package/dist/sync/types.d.ts.map +1 -1
  205. package/dist/sync/types.js +4 -47
  206. package/dist/sync/types.js.map +1 -1
  207. package/dist/unlock/index.d.ts +1 -1
  208. package/dist/unlock/index.d.ts.map +1 -1
  209. package/dist/unlock/index.js +1 -1
  210. package/dist/unlock/index.js.map +1 -1
  211. package/dist/unlock/retire.d.ts +16 -56
  212. package/dist/unlock/retire.d.ts.map +1 -1
  213. package/dist/unlock/retire.js +7 -76
  214. package/dist/unlock/retire.js.map +1 -1
  215. package/dist/unlock/standingWebvh.d.ts +20 -40
  216. package/dist/unlock/standingWebvh.d.ts.map +1 -1
  217. package/dist/unlock/standingWebvh.js +35 -76
  218. package/dist/unlock/standingWebvh.js.map +1 -1
  219. package/dist/unlock/unlockRecord.d.ts.map +1 -1
  220. package/dist/unlock/unlockRecord.js +69 -44
  221. package/dist/unlock/unlockRecord.js.map +1 -1
  222. package/dist/webvh/accountEntry.d.ts +63 -7
  223. package/dist/webvh/accountEntry.d.ts.map +1 -1
  224. package/dist/webvh/accountEntry.js +110 -19
  225. package/dist/webvh/accountEntry.js.map +1 -1
  226. package/dist/webvh/delegatedLogStore.d.ts +18 -12
  227. package/dist/webvh/delegatedLogStore.d.ts.map +1 -1
  228. package/dist/webvh/delegatedLogStore.js +32 -11
  229. package/dist/webvh/delegatedLogStore.js.map +1 -1
  230. package/dist/webvh/didWebvh.d.ts +39 -23
  231. package/dist/webvh/didWebvh.d.ts.map +1 -1
  232. package/dist/webvh/didWebvh.js +63 -45
  233. package/dist/webvh/didWebvh.js.map +1 -1
  234. package/dist/webvh/enrollClient.d.ts.map +1 -1
  235. package/dist/webvh/enrollClient.js +19 -23
  236. package/dist/webvh/enrollClient.js.map +1 -1
  237. package/dist/webvh/index.d.ts +11 -7
  238. package/dist/webvh/index.d.ts.map +1 -1
  239. package/dist/webvh/index.js +9 -6
  240. package/dist/webvh/index.js.map +1 -1
  241. package/dist/webvh/listClients.d.ts.map +1 -1
  242. package/dist/webvh/listClients.js +102 -65
  243. package/dist/webvh/listClients.js.map +1 -1
  244. package/dist/webvh/mergeMethods.d.ts +84 -0
  245. package/dist/webvh/mergeMethods.d.ts.map +1 -0
  246. package/dist/webvh/mergeMethods.js +46 -0
  247. package/dist/webvh/mergeMethods.js.map +1 -0
  248. package/dist/webvh/revokeClient.d.ts +12 -2
  249. package/dist/webvh/revokeClient.d.ts.map +1 -1
  250. package/dist/webvh/revokeClient.js +126 -48
  251. package/dist/webvh/revokeClient.js.map +1 -1
  252. package/dist/webvh/verifyLog.d.ts +21 -0
  253. package/dist/webvh/verifyLog.d.ts.map +1 -1
  254. package/dist/webvh/verifyLog.js +36 -14
  255. package/dist/webvh/verifyLog.js.map +1 -1
  256. package/package.json +11 -11
@@ -1 +1 @@
1
- {"version":3,"file":"engine.js","sourceRoot":"","sources":["../../src/sync/engine.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAOnC,MAAM,kBAAkB,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and are re-exported here so an engine consumer
13
13
  * imports one package.
14
- * - `isSyncConflictError` / `isSyncNotFoundError` / `isUnknownEpochError` are
15
- * how those three signals are classified. They are raised inside the app's
16
- * own injected seams, which may resolve to a second copy of
17
- * `@interop/was-client`, so they are matched on `err.name`; the engine core
18
- * and both apps share these predicates rather than each writing an
19
- * `instanceof` that a duplicated dependency would silently defeat.
14
+ * - The predicates that classify those signals (`isSyncConflictError` /
15
+ * `isSyncNotFoundError` / `isUnknownEpochError`) and the `SyncStatus`
16
+ * vocabulary ship from `@interop/was-client/sync` too. They are imported
17
+ * from there rather than re-exported here: one owner per name.
20
18
  * - `SyncStore` / `SyncedRow` / `ProjectionAction` / `ResolveConflict` are the
21
19
  * replica-side persistence seam.
22
20
  * - `runPull` / `projectionForDoc`, `runPush`, and `SyncEngine` are the pull,
@@ -30,20 +28,19 @@
30
28
  * last-write-wins rule for the one mutable collection (`contacts`), which
31
29
  * needs a `DocCipher` to reach the fields it compares.
32
30
  *
33
- * The RxDB adapter (the web wallet's driver) is intentionally not part of this
34
- * subpath in v0: that app keeps its own `replicateRxCollection` driver, and its
35
- * metadata (`putMeta` / `metaVersion`) push half stays driver-side. See
36
- * `push.ts` for why the metadata half is left out of the shared core.
31
+ * The RxDB driver is intentionally not part of this subpath: it ships from
32
+ * `@interop/was-sync`, and its metadata (`putMeta` / `metaVersion`) push half
33
+ * stays driver-side. See `push.ts` for why the metadata half is left out of
34
+ * the shared core.
37
35
  */
38
36
  export { UnknownEpochError, WasSyncConflictError, WasSyncNotFoundError } from '@interop/was-client/sync';
39
37
  export type { Json, SyncCheckpoint, WireDoc, MasterState, WasSyncPort, DocCipher } from '@interop/was-client/sync';
40
- export { isSyncConflictError, isSyncNotFoundError, isUnknownEpochError } from './types.js';
41
38
  export type { SyncStore, SyncedRow, ProjectionAction, ResolveConflict } from './types.js';
42
39
  export { runPull, projectionForDoc } from './pull.js';
43
40
  export { runPush, formatEtag } from './push.js';
44
41
  export { remintPendingEnvelopes } from './remint.js';
45
42
  export { SyncEngine } from './engine.js';
46
- export type { SyncEngineDeps, SyncStatus } from './engine.js';
43
+ export type { SyncEngineDeps } from './engine.js';
47
44
  export type { SyncedCollectionSpec } from './collections.js';
48
45
  export { contactHeadPayloadOf, resolveContactHeadConflict } from './contactsConflict.js';
49
46
  export type { ContactConflictWinner } from './contactsConflict.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sync/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,0BAA0B,CAAA;AACjC,YAAY,EACV,IAAI,EACJ,cAAc,EACd,OAAO,EACP,WAAW,EACX,WAAW,EACX,SAAS,EACV,MAAM,0BAA0B,CAAA;AAEjC,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,YAAY,CAAA;AACnB,YAAY,EACV,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,eAAe,EAChB,MAAM,YAAY,CAAA;AAEnB,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAC/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAC7D,YAAY,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAE5D,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC3B,MAAM,uBAAuB,CAAA;AAC9B,YAAY,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sync/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,0BAA0B,CAAA;AACjC,YAAY,EACV,IAAI,EACJ,cAAc,EACd,OAAO,EACP,WAAW,EACX,WAAW,EACX,SAAS,EACV,MAAM,0BAA0B,CAAA;AAEjC,YAAY,EACV,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,eAAe,EAChB,MAAM,YAAY,CAAA;AAEnB,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAC/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACjD,YAAY,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAE5D,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC3B,MAAM,uBAAuB,CAAA;AAC9B,YAAY,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAA"}
@@ -11,12 +11,10 @@
11
11
  * `WasSyncNotFoundError` / `UnknownEpochError` signals) come from
12
12
  * `@interop/was-client/sync` and are re-exported here so an engine consumer
13
13
  * imports one package.
14
- * - `isSyncConflictError` / `isSyncNotFoundError` / `isUnknownEpochError` are
15
- * how those three signals are classified. They are raised inside the app's
16
- * own injected seams, which may resolve to a second copy of
17
- * `@interop/was-client`, so they are matched on `err.name`; the engine core
18
- * and both apps share these predicates rather than each writing an
19
- * `instanceof` that a duplicated dependency would silently defeat.
14
+ * - The predicates that classify those signals (`isSyncConflictError` /
15
+ * `isSyncNotFoundError` / `isUnknownEpochError`) and the `SyncStatus`
16
+ * vocabulary ship from `@interop/was-client/sync` too. They are imported
17
+ * from there rather than re-exported here: one owner per name.
20
18
  * - `SyncStore` / `SyncedRow` / `ProjectionAction` / `ResolveConflict` are the
21
19
  * replica-side persistence seam.
22
20
  * - `runPull` / `projectionForDoc`, `runPush`, and `SyncEngine` are the pull,
@@ -30,13 +28,12 @@
30
28
  * last-write-wins rule for the one mutable collection (`contacts`), which
31
29
  * needs a `DocCipher` to reach the fields it compares.
32
30
  *
33
- * The RxDB adapter (the web wallet's driver) is intentionally not part of this
34
- * subpath in v0: that app keeps its own `replicateRxCollection` driver, and its
35
- * metadata (`putMeta` / `metaVersion`) push half stays driver-side. See
36
- * `push.ts` for why the metadata half is left out of the shared core.
31
+ * The RxDB driver is intentionally not part of this subpath: it ships from
32
+ * `@interop/was-sync`, and its metadata (`putMeta` / `metaVersion`) push half
33
+ * stays driver-side. See `push.ts` for why the metadata half is left out of
34
+ * the shared core.
37
35
  */
38
36
  export { UnknownEpochError, WasSyncConflictError, WasSyncNotFoundError } from '@interop/was-client/sync';
39
- export { isSyncConflictError, isSyncNotFoundError, isUnknownEpochError } from './types.js';
40
37
  export { runPull, projectionForDoc } from './pull.js';
41
38
  export { runPush, formatEtag } from './push.js';
42
39
  export { remintPendingEnvelopes } from './remint.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sync/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,0BAA0B,CAAA;AAUjC,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,YAAY,CAAA;AAQnB,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAC/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAIxC,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC3B,MAAM,uBAAuB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sync/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,0BAA0B,CAAA;AAiBjC,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAC/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAIxC,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC3B,MAAM,uBAAuB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"push.d.ts","sourceRoot":"","sources":["../../src/sync/push.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACrD,OAAO,KAAK,EAAQ,eAAe,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAM/E,OAAO,EAAE,UAAU,EAAE,CAAA;AA+KrB;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,OAAO,CAAC,EAC5B,IAAI,EACJ,KAAK,EACL,eAAe,EACf,MAAM,EACP,EAAE;IACD,IAAI,EAAE,WAAW,CAAA;IACjB,KAAK,EAAE,SAAS,CAAA;IAChB,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,MAAM,CAAC,EAAE,WAAW,CAAA;CACrB,GAAG,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAA;CAAE,CAAC,CAwBzD"}
1
+ {"version":3,"file":"push.d.ts","sourceRoot":"","sources":["../../src/sync/push.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,EACL,UAAU,EAGX,MAAM,0BAA0B,CAAA;AACjC,OAAO,KAAK,EAAQ,eAAe,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAK/E,OAAO,EAAE,UAAU,EAAE,CAAA;AA+KrB;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,OAAO,CAAC,EAC5B,IAAI,EACJ,KAAK,EACL,eAAe,EACf,MAAM,EACP,EAAE;IACD,IAAI,EAAE,WAAW,CAAA;IACjB,KAAK,EAAE,SAAS,CAAA;IAChB,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,MAAM,CAAC,EAAE,WAAW,CAAA;CACrB,GAAG,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAA;CAAE,CAAC,CAwBzD"}
package/dist/sync/push.js CHANGED
@@ -25,8 +25,7 @@
25
25
  * no collection to exercise it. The `WasSyncPort.putMeta` capability stays
26
26
  * optional on the port for the driver that needs it.
27
27
  */
28
- import { formatEtag } from '@interop/was-client/sync';
29
- import { isSyncConflictError, isSyncNotFoundError } from './types.js';
28
+ import { formatEtag, isSyncConflictError, isSyncNotFoundError } from '@interop/was-client/sync';
30
29
  // Formats a master revision as the quoted strong ETag the server compares
31
30
  // `If-Match` against (revision `3` becomes `"3"`). Re-exported so callers keep
32
31
  // importing it from here.
@@ -1 +1 @@
1
- {"version":3,"file":"push.js","sourceRoot":"","sources":["../../src/sync/push.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAErD,OAAO,EAAE,mBAAmB,EAA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EAMP;IACC,MAAM,IAAI,GAAG,MAAM,KAAK,CAAC,YAAY,EAAE,CAAA;IACvC,IAAI,MAAM,GAAG,CAAC,CAAA;IACd,IAAI,iBAAiB,GAAG,CAAC,CAAA;IACzB,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,IAAI,MAAM,EAAE,OAAO,EAAE,CAAC;YACpB,MAAK;QACP,CAAC;QACD,IAAI,GAAG,CAAC,OAAO,EAAE,CAAC;YAChB,MAAM,UAAU,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;QACxC,CAAC;aAAM,CAAC;YACN,MAAM,EAAE,gBAAgB,EAAE,GAAG,MAAM,UAAU,CAAC;gBAC5C,IAAI;gBACJ,KAAK;gBACL,GAAG;gBACH,eAAe;aAChB,CAAC,CAAA;YACF,IAAI,gBAAgB,EAAE,CAAC;gBACrB,iBAAiB,IAAI,CAAC,CAAA;YACxB,CAAC;QACH,CAAC;QACD,MAAM,IAAI,CAAC,CAAA;IACb,CAAC;IACD,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,CAAA;AACtC,CAAC"}
@@ -1,34 +1,3 @@
1
- /*!
2
- * Copyright (c) 2026 Interop Alliance. All rights reserved.
3
- */
4
- /**
5
- * The create-loss re-mint: the eager-minter half of the
6
- * descriptor-before-first-content-push ordering invariant.
7
- *
8
- * The invariant: a collection's encryption descriptor -- its key-epoch
9
- * roster -- is published before the collection's first content push, so no
10
- * envelope can reach the feed sealed under an epoch the published descriptor
11
- * does not carry. The engine enforces it structurally: `ensureProvisioned`
12
- * (which publishes the descriptor, create-if-absent) runs before every
13
- * cycle's migration sweep and push, so a lazy minter's envelopes are always
14
- * minted after the published descriptor has settled.
15
- *
16
- * An eager minter -- a replica that mints envelopes at local write time,
17
- * against a cached descriptor -- has one residual hole: envelopes minted
18
- * against a locally-minted epoch[0] while ANOTHER provisioner's descriptor
19
- * create won. At the next sync, provisioning adopts the winner's descriptor
20
- * (the create is compare-and-swap, never clobbering), leaving the pending
21
- * envelopes sealed under an epoch the published descriptor does not carry;
22
- * pushing them would land feed entries no other replica can route. The
23
- * remedy is {@link remintPendingEnvelopes}, run after adoption and before
24
- * the next push: each pending row the adopted cipher cannot route is
25
- * decrypted through the caller's stale-capable seam and re-encrypted under
26
- * the adopted descriptor's current epoch. This is legal exactly because a
27
- * pending row (dirty, never server-acked) has no feed existence -- envelope
28
- * immutability bites only once an envelope is ON the feed -- and the
29
- * re-encryption may therefore re-key the row (a content-derived id hashes
30
- * the ciphertext, so a re-mint mints a new id).
31
- */
32
1
  import type { DocCipher, Json, SyncStore } from './types.js';
33
2
  /**
34
3
  * Re-mints every pending (dirty, never-acked, live) row whose envelope the
@@ -1 +1 @@
1
- {"version":3,"file":"remint.d.ts","sourceRoot":"","sources":["../../src/sync/remint.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAW5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,wBAAsB,sBAAsB,CAAC,EAC3C,KAAK,EACL,MAAM,EACN,YAAY,EACZ,MAAM,EACP,EAAE;IACD,KAAK,EAAE,SAAS,GAAG;QACjB,cAAc,EAAE,WAAW,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,CAAA;KACzD,CAAA;IACD,MAAM,EAAE,SAAS,CAAA;IACjB,YAAY,EAAE,CAAC,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACxE,MAAM,CAAC,EAAE,WAAW,CAAA;CACrB,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,CA4DjD"}
1
+ {"version":3,"file":"remint.d.ts","sourceRoot":"","sources":["../../src/sync/remint.ts"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAU5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,wBAAsB,sBAAsB,CAAC,EAC3C,KAAK,EACL,MAAM,EACN,YAAY,EACZ,MAAM,EACP,EAAE;IACD,KAAK,EAAE,SAAS,GAAG;QACjB,cAAc,EAAE,WAAW,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,CAAA;KACzD,CAAA;IACD,MAAM,EAAE,SAAS,CAAA;IACjB,YAAY,EAAE,CAAC,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACxE,MAAM,CAAC,EAAE,WAAW,CAAA;CACrB,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,CA4DjD"}
@@ -1,4 +1,35 @@
1
- import { isUnknownEpochError } from './types.js';
1
+ /*!
2
+ * Copyright (c) 2026 Interop Alliance. All rights reserved.
3
+ */
4
+ /**
5
+ * The create-loss re-mint: the eager-minter half of the
6
+ * descriptor-before-first-content-push ordering invariant.
7
+ *
8
+ * The invariant: a collection's encryption descriptor -- its key-epoch
9
+ * roster -- is published before the collection's first content push, so no
10
+ * envelope can reach the feed sealed under an epoch the published descriptor
11
+ * does not carry. The engine enforces it structurally: `ensureProvisioned`
12
+ * (which publishes the descriptor, create-if-absent) runs before every
13
+ * cycle's migration sweep and push, so a lazy minter's envelopes are always
14
+ * minted after the published descriptor has settled.
15
+ *
16
+ * An eager minter -- a replica that mints envelopes at local write time,
17
+ * against a cached descriptor -- has one residual hole: envelopes minted
18
+ * against a locally-minted epoch[0] while ANOTHER provisioner's descriptor
19
+ * create won. At the next sync, provisioning adopts the winner's descriptor
20
+ * (the create is compare-and-swap, never clobbering), leaving the pending
21
+ * envelopes sealed under an epoch the published descriptor does not carry;
22
+ * pushing them would land feed entries no other replica can route. The
23
+ * remedy is {@link remintPendingEnvelopes}, run after adoption and before
24
+ * the next push: each pending row the adopted cipher cannot route is
25
+ * decrypted through the caller's stale-capable seam and re-encrypted under
26
+ * the adopted descriptor's current epoch. This is legal exactly because a
27
+ * pending row (dirty, never server-acked) has no feed existence -- envelope
28
+ * immutability bites only once an envelope is ON the feed -- and the
29
+ * re-encryption may therefore re-key the row (a content-derived id hashes
30
+ * the ciphertext, so a re-mint mints a new id).
31
+ */
32
+ import { isUnknownEpochError } from '@interop/was-client/sync';
2
33
  /**
3
34
  * How many full re-mint passes are attempted before giving up. A pass that
4
35
  * ends with skipped rows (a local write bumped a row's revision between the
@@ -1 +1 @@
1
- {"version":3,"file":"remint.js","sourceRoot":"","sources":["../../src/sync/remint.ts"],"names":[],"mappings":"AAgCA,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAEhD;;;;;GAKG;AACH,MAAM,mBAAmB,GAAG,CAAC,CAAA;AAE7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,EAC3C,KAAK,EACL,MAAM,EACN,YAAY,EACZ,MAAM,EAQP;IACC,IAAI,OAA2B,CAAA;IAC/B,IAAI,QAAQ,GAAG,CAAC,CAAA;IAChB,IAAI,OAAO,GAAa,EAAE,CAAA;IAE1B,KAAK,IAAI,OAAO,GAAG,CAAC,EAAE,OAAO,GAAG,mBAAmB,EAAE,OAAO,IAAI,CAAC,EAAE,CAAC;QAClE,IAAI,MAAM,EAAE,OAAO,EAAE,CAAC;YACpB,MAAK;QACP,CAAC;QACD,MAAM,IAAI,GAAG,MAAM,KAAK,CAAC,Y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G,CAAC,QAAQ,EAAE,CAAC;aAC9D,CAAC,CAAA;YACF,IAAI,OAAO,EAAE,CAAC;gBACZ,QAAQ,IAAI,CAAC,CAAA;YACf,CAAC;iBAAM,CAAC;gBACN,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;YACtB,CAAC;QACH,CAAC;QAED,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,EAAE,OAAO,EAAE,CAAC;YAC5C,MAAK;QACP,CAAC;IACH,CAAC;IAED,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC;QAC3C,MAAM,IAAI,KAAK,CACb,yBAAyB,mBAAmB,qBAAqB;YAC/D,UAAU,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,wCAAwC;YACpE,qEAAqE;YACrE,uEAAuE,CAC1E,CAAA;IACH,CAAC;IACD,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAA;AAC5C,CAAC"}
@@ -8,18 +8,10 @@
8
8
  * `MasterState`, `WasSyncPort`, `DocCipher`, and the `WasSyncConflictError` /
9
9
  * `WasSyncNotFoundError` / `UnknownEpochError` signals) come from
10
10
  * `@interop/was-client/sync` and are re-exported here so a single import gives
11
- * a consumer both the wire types and the replica-side seams. Beside the three
12
- * signal classes sit the three predicates that CLASSIFY them
13
- * ({@link isSyncConflictError}, {@link isSyncNotFoundError},
14
- * {@link isUnknownEpochError}): each is raised inside an app-injected seam --
15
- * the port for the two wire signals, the caller's `DocCipher` for the third --
16
- * which can resolve to a second copy of `@interop/was-client` (a `link:` dev
17
- * setup, a dedupe miss through a dependency tree), so they are matched on
18
- * `err.name` and never with `instanceof`. The same rule the resource-log
19
- * refusal classes follow, and for the same reason: an `instanceof` miss here
20
- * turns every push 412 into a fatal cycle error and makes the create-loss
21
- * re-mint rethrow instead of re-minting. Every one of the three classes
22
- * assigns its `name` explicitly, which is what makes the string a contract.
11
+ * a consumer both the wire types and the replica-side seams. The predicates
12
+ * that CLASSIFY those signals ship from `@interop/was-client/sync` too, beside
13
+ * the classes that assign the names they match; `push.ts` and `remint.ts`
14
+ * import them from there.
23
15
  *
24
16
  * The local-persistence seam (`SyncStore`, `SyncedRow`, `ProjectionAction`,
25
17
  * `ResolveConflict`) is the replica's side of the contract: it stands in for a
@@ -35,35 +27,6 @@
35
27
  export { UnknownEpochError, WasSyncConflictError, WasSyncNotFoundError } from '@interop/was-client/sync';
36
28
  export type { Json, SyncCheckpoint, WireDoc, MasterState, WasSyncPort, DocCipher } from '@interop/was-client/sync';
37
29
  import type { Json, MasterState, SyncCheckpoint, WireDoc } from '@interop/was-client/sync';
38
- /**
39
- * Whether an error is the replication port's rejected-conditional-write signal
40
- * (`WasSyncConflictError`, HTTP 412): a lost-update `If-Match` mismatch, or a
41
- * create-if-absent whose target already exists. The push loop's one settle-and-
42
- * reconcile branch; everything else propagates to the engine's backoff.
43
- *
44
- * @param err {unknown}
45
- * @returns {boolean}
46
- */
47
- export declare function isSyncConflictError(err: unknown): boolean;
48
- /**
49
- * Whether an error is the replication port's absent-target signal
50
- * (`WasSyncNotFoundError`, HTTP 404). On a delete that is a settled outcome
51
- * -- already gone, or the write never reached the server -- not a conflict.
52
- *
53
- * @param err {unknown}
54
- * @returns {boolean}
55
- */
56
- export declare function isSyncNotFoundError(err: unknown): boolean;
57
- /**
58
- * Whether an error is the cipher's unknown-epoch signal (`UnknownEpochError`):
59
- * an envelope naming recipient key ids whose epoch the descriptor this reader
60
- * holds does not list at all. Distinct from a key the reader simply does not
61
- * have (`KeyUnwrapError`), which re-reading the descriptor cannot fix.
62
- *
63
- * @param err {unknown}
64
- * @returns {boolean}
65
- */
66
- export declare function isUnknownEpochError(err: unknown): boolean;
67
30
  /**
68
31
  * A dirty local synced-docs row awaiting push. `data` is the stored body (the
69
32
  * EDV envelope on an encrypted collection, or the plaintext JSON on a plaintext
@@ -1 +1 @@
1
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,EAAE,MAAM,GAAG,MAAM,CAAA;KAC3B,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAA;CAClC"}
@@ -8,18 +8,10 @@
8
8
  * `MasterState`, `WasSyncPort`, `DocCipher`, and the `WasSyncConflictError` /
9
9
  * `WasSyncNotFoundError` / `UnknownEpochError` signals) come from
10
10
  * `@interop/was-client/sync` and are re-exported here so a single import gives
11
- * a consumer both the wire types and the replica-side seams. Beside the three
12
- * signal classes sit the three predicates that CLASSIFY them
13
- * ({@link isSyncConflictError}, {@link isSyncNotFoundError},
14
- * {@link isUnknownEpochError}): each is raised inside an app-injected seam --
15
- * the port for the two wire signals, the caller's `DocCipher` for the third --
16
- * which can resolve to a second copy of `@interop/was-client` (a `link:` dev
17
- * setup, a dedupe miss through a dependency tree), so they are matched on
18
- * `err.name` and never with `instanceof`. The same rule the resource-log
19
- * refusal classes follow, and for the same reason: an `instanceof` miss here
20
- * turns every push 412 into a fatal cycle error and makes the create-loss
21
- * re-mint rethrow instead of re-minting. Every one of the three classes
22
- * assigns its `name` explicitly, which is what makes the string a contract.
11
+ * a consumer both the wire types and the replica-side seams. The predicates
12
+ * that CLASSIFY those signals ship from `@interop/was-client/sync` too, beside
13
+ * the classes that assign the names they match; `push.ts` and `remint.ts`
14
+ * import them from there.
23
15
  *
24
16
  * The local-persistence seam (`SyncStore`, `SyncedRow`, `ProjectionAction`,
25
17
  * `ResolveConflict`) is the replica's side of the contract: it stands in for a
@@ -33,39 +25,4 @@
33
25
  * Native, against a fake port and an in-memory store.
34
26
  */
35
27
  export { UnknownEpochError, WasSyncConflictError, WasSyncNotFoundError } from '@interop/was-client/sync';
36
- /**
37
- * Whether an error is the replication port's rejected-conditional-write signal
38
- * (`WasSyncConflictError`, HTTP 412): a lost-update `If-Match` mismatch, or a
39
- * create-if-absent whose target already exists. The push loop's one settle-and-
40
- * reconcile branch; everything else propagates to the engine's backoff.
41
- *
42
- * @param err {unknown}
43
- * @returns {boolean}
44
- */
45
- export function isSyncConflictError(err) {
46
- return err?.name === 'WasSyncConflictError';
47
- }
48
- /**
49
- * Whether an error is the replication port's absent-target signal
50
- * (`WasSyncNotFoundError`, HTTP 404). On a delete that is a settled outcome
51
- * -- already gone, or the write never reached the server -- not a conflict.
52
- *
53
- * @param err {unknown}
54
- * @returns {boolean}
55
- */
56
- export function isSyncNotFoundError(err) {
57
- return err?.name === 'WasSyncNotFoundError';
58
- }
59
- /**
60
- * Whether an error is the cipher's unknown-epoch signal (`UnknownEpochError`):
61
- * an envelope naming recipient key ids whose epoch the descriptor this reader
62
- * holds does not list at all. Distinct from a key the reader simply does not
63
- * have (`KeyUnwrapError`), which re-reading the descriptor cannot fix.
64
- *
65
- * @param err {unknown}
66
- * @returns {boolean}
67
- */
68
- export function isUnknownEpochError(err) {
69
- return err?.name === 'UnknownEpochError';
70
- }
71
28
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/sync/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,0BAA0B,CAAA;AAiBjC;;;;;;;;GAQG;AACH,MAAM,UAAU,mBAAmB,CAAC,GAAY;IAC9C,OAAQ,GAAiC,EAAE,IAAI,KAAK,sBAAsB,CAAA;AAC5E,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,mBAAmB,CAAC,GAAY;IAC9C,OAAQ,GAAiC,EAAE,IAAI,KAAK,sBAAsB,CAAA;AAC5E,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,mBAAmB,CAAC,GAAY;IAC9C,OAAQ,GAAiC,EAAE,IAAI,KAAK,mBAAmB,CAAA;AACzE,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/sync/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,0BAA0B,CAAA"}
@@ -39,7 +39,7 @@ export { standingClientFromUnlockSeed, STANDING_CLIENT_SALT, unlockClientIdentit
39
39
  export type { StandingUnlockClient, UnlockClientIdentity } from './standingClient.js';
40
40
  export { computeUnlockBinding, LADDER_SEED_BYTES, recordSealedRecipientKeys, remintUnlockRecordDelegations, UnlockBindingError, unlockRecordBinding, unlockRecordSealedTo, unwrapUnlockRecord, wrapUnlockRecord } from './unlockRecord.js';
41
41
  export type { SealedRecordMember, SignedUnlockRecord, UnlockRecordContents, UnlockRecordProofState } from './unlockRecord.js';
42
- export { assertLadderVmClaimed, LadderInventoryDriftError, ladderVmClaimOf, preflightUnlockCredentialRetirement, publishUnlockKey, removeUnlockKey, UnclaimedLadderVmRetirementError, unlockKeyVerificationMethod, unlockKeyVmId } from './standingWebvh.js';
42
+ export { assertLadderVmClaimed, ladderVmClaimOf, preflightUnlockCredentialRetirement, publishUnlockKey, removeUnlockKey, UnclaimedLadderVmRetirementError, unlockKeyVerificationMethod, unlockKeyVmId } from './standingWebvh.js';
43
43
  export type { LadderVmRemovalReport, StandingUnlockKeys, UnlockKeyAgreementPublication, UnlockLogStore } from './standingWebvh.js';
44
44
  export { retireUnlockCredential } from './retire.js';
45
45
  export type { ClientAnnexInventoryRetirement, UnlockCredentialRetirementResult } from './retire.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/unlock/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,OAAO,EACL,4BAA4B,EAC5B,oBAAoB,EACpB,4BAA4B,EAC7B,MAAM,qBAAqB,CAAA;AAC5B,YAAY,EACV,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,yBAAyB,EACzB,6BAA6B,EAC7B,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,mBAAmB,CAAA;AAC1B,YAAY,EACV,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,mBAAmB,CAAA;AAE1B,OAAO,EACL,qBAAqB,EACrB,yBAAyB,EACzB,eAAe,EACf,mCAAmC,EACnC,gBAAgB,EAChB,eAAe,EACf,gCAAgC,EAChC,2BAA2B,EAC3B,aAAa,EACd,MAAM,oBAAoB,CAAA;AAC3B,YAAY,EACV,qBAAqB,EACrB,kBAAkB,EAClB,6BAA6B,EAC7B,cAAc,EACf,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AACpD,YAAY,EACV,8BAA8B,EAC9B,gCAAgC,EACjC,MAAM,aAAa,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/unlock/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,OAAO,EACL,4BAA4B,EAC5B,oBAAoB,EACpB,4BAA4B,EAC7B,MAAM,qBAAqB,CAAA;AAC5B,YAAY,EACV,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,yBAAyB,EACzB,6BAA6B,EAC7B,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,mBAAmB,CAAA;AAC1B,YAAY,EACV,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,mBAAmB,CAAA;AAE1B,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,mCAAmC,EACnC,gBAAgB,EAChB,eAAe,EACf,gCAAgC,EAChC,2BAA2B,EAC3B,aAAa,EACd,MAAM,oBAAoB,CAAA;AAC3B,YAAY,EACV,qBAAqB,EACrB,kBAAkB,EAClB,6BAA6B,EAC7B,cAAc,EACf,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AACpD,YAAY,EACV,8BAA8B,EAC9B,gCAAgC,EACjC,MAAM,aAAa,CAAA"}
@@ -37,6 +37,6 @@
37
37
  */
38
38
  export { standingClientFromUnlockSeed, STANDING_CLIENT_SALT, unlockClientIdentityFromSeed } from './standingClient.js';
39
39
  export { computeUnlockBinding, LADDER_SEED_BYTES, recordSealedRecipientKeys, remintUnlockRecordDelegations, UnlockBindingError, unlockRecordBinding, unlockRecordSealedTo, unwrapUnlockRecord, wrapUnlockRecord } from './unlockRecord.js';
40
- export { assertLadderVmClaimed, LadderInventoryDriftError, ladderVmClaimOf, preflightUnlockCredentialRetirement, publishUnlockKey, removeUnlockKey, UnclaimedLadderVmRetirementError, unlockKeyVerificationMethod, unlockKeyVmId } from './standingWebvh.js';
40
+ export { assertLadderVmClaimed, ladderVmClaimOf, preflightUnlockCredentialRetirement, publishUnlockKey, removeUnlockKey, UnclaimedLadderVmRetirementError, unlockKeyVerificationMethod, unlockKeyVmId } from './standingWebvh.js';
41
41
  export { retireUnlockCredential } from './retire.js';
42
42
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/unlock/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,OAAO,EACL,4BAA4B,EAC5B,oBAAoB,EACpB,4BAA4B,EAC7B,MAAM,qBAAqB,CAAA;AAM5B,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,yBAAyB,EACzB,6BAA6B,EAC7B,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,mBAAmB,CAAA;AAQ1B,OAAO,EACL,qBAAqB,EACrB,yBAAyB,EACzB,eAAe,EACf,mCAAmC,EACnC,gBAAgB,EAChB,eAAe,EACf,gCAAgC,EAChC,2BAA2B,EAC3B,aAAa,EACd,MAAM,oBAAoB,CAAA;AAQ3B,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/unlock/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,OAAO,EACL,4BAA4B,EAC5B,oBAAoB,EACpB,4BAA4B,EAC7B,MAAM,qBAAqB,CAAA;AAM5B,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,yBAAyB,EACzB,6BAA6B,EAC7B,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,mBAAmB,CAAA;AAQ1B,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,mCAAmC,EACnC,gBAAgB,EAChB,eAAe,EACf,gCAAgC,EAChC,2BAA2B,EAC3B,aAAa,EACd,MAAM,oBAAoB,CAAA;AAQ3B,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA"}
@@ -9,13 +9,6 @@
9
9
  * inventory in the account's did:webvh document -- so retiring one is a real
10
10
  * rotation, on the same stages the client-revocation cascade runs.
11
11
  *
12
- * 0. **The dependent-record re-mint** (the injected `remintDependentRecords`
13
- * closure), against the PRE-edit document: the credential's ladder VM is
14
- * about to be struck, and a struck VM rots every record and bridge
15
- * delegation it signed for OTHER credentials -- the last-client transition
16
- * signs siblings' records with one, and `currentAccountRecordSigners`
17
- * accepts it. The stage names the doomed VM ids to the pass, which
18
- * re-signs those records under a key that outlives the edit.
19
12
  * 1. **The document inventory edit** (`removeUnlockKey`): the credential's
20
13
  * `keyAgreement` entry (verbatim key or commitment) and its committed
21
14
  * update-key hash leave the document in one log entry. That kills the
@@ -36,21 +29,15 @@
36
29
  * inventory still standing would simply re-escrow the credential and look
37
30
  * healthy.
38
31
  *
39
- * Stage 0 is the one stage that runs BEFORE the edit, and its placement is
40
- * the point. Run after the edit it would leave a window in which every
41
- * sibling credential's record is unverifiable, and a run torn there bricks
42
- * exactly what the stage exists to protect: a record whose frame proof names
43
- * a struck key refuses before decryption, and the credential's own login dies
44
- * at that check with no repair arm. Run before it, a tear leaves the sibling
45
- * records signed by a key that still stands and the retiring credential still
46
- * standing -- the correct resting state, converged by a re-run. So the stage
47
- * is fail-closed rather than best-effort: a throw from the closure aborts the
48
- * retirement before anything is published, unlike the annex closure at 1b.
49
- *
50
- * That corrects what this module used to reason. A retired credential's own
51
- * bridge delegation does die with its unlock Space, which the app deletes as
52
- * part of the change-method ceremony. Its ladder VM is the part that reaches
53
- * further: other credentials' records and bridges chain through it.
32
+ * No stage runs before the edit, and no sibling credential's record is
33
+ * touched anywhere in the ceremony. Every unlock record's frame proof is
34
+ * signed by its own credential's unlock identity key, and its bridge and
35
+ * `delegatedClients` sibling delegations by that credential's own ladder VM
36
+ * (`decisions/0019`), so the only record this strike can rot is the retired
37
+ * credential's own -- which dies with the unlock Space the app deletes as
38
+ * part of the change-method ceremony. A sibling credential's bridge is
39
+ * refreshed by that credential's own login, on the three staleness axes
40
+ * (expiry, the renewal window, a signer that left the document).
54
41
  *
55
42
  * The client annex reach is its own stage (1b, the injected
56
43
  * `retireClientAnnexInventory` closure), between the document edit and the
@@ -71,12 +58,11 @@
71
58
  * skip, so the roster rotation -- the ceremony's essential remedy -- always
72
59
  * runs.
73
60
  *
74
- * Both stages carry the retirement gate (`decisions/0015`): a credential
61
+ * The edit carries the retirement gate (`decisions/0015`): a credential
75
62
  * retired here carries a ladder, so its ladder VM must be claimed -- by the
76
63
  * seed, or by the log's attribution -- before the edit strikes anything. A
77
64
  * claim that strikes nothing while ladder VMs stand unclaimed refuses with
78
- * `UnclaimedLadderVmRetirementError`, at stage 0 before the re-mint pass
79
- * writes a sibling record and again inside the edit before its entry
65
+ * `UnclaimedLadderVmRetirementError`, inside the edit before its entry
80
66
  * publishes, so the credential still stands and the log is unchanged. The
81
67
  * leftover the gate closes is a retired credential's VM standing under
82
68
  * `capabilityDelegation`, which could still sign a DELETE-only capability on
@@ -86,15 +72,6 @@
86
72
  * removal shares the edit but not the gate: a code carries no ladder VM to
87
73
  * claim.
88
74
  *
89
- * Stage 0 and stage 1 each read the log for themselves, and the two reads are
90
- * tied by a cross-check rather than by luck: stage 0 hands its attributed
91
- * ladder VM ids to the edit as `expectedLadderVmIds`, and the edit refuses
92
- * before writing when its own attribution resolves a different set
93
- * (`LadderInventoryDriftError`). So a concurrent ceremony, or a host serving
94
- * different log versions to the two reads, cannot leave the strike diverging
95
- * from what the re-mint pass acted on. Both reads take the caller's
96
- * `pinStore` and `logId`, so both are checked against the same chain head.
97
- *
98
75
  * Convergence is the design: every stage detects its own completion from
99
76
  * durable state alone -- the inventory edit no-ops when the document is already
100
77
  * settled, the rotation no-ops once every current-epoch recipient is
@@ -121,9 +98,7 @@ import { type LadderVmRemovalReport, type StandingUnlockKeys } from './standingW
121
98
  * roster's seal-backstop report (present when the roster store is sealable and
122
99
  * the roster stage ran), the per-collection fan-out result, the document as
123
100
  * the inventory edit left it, the rotated key with the roster descriptor it
124
- * was read from, whatever the dependent-record re-mint pass returned
125
- * (`dependentRecords`, absent when no closure was supplied), and the
126
- * inventory edit's ladder VM report (`ladderVm`: what the edit struck, and
101
+ * was read from, and the inventory edit's ladder VM report (`ladderVm`: what the edit struck, and
127
102
  * what stands unclaimed after it -- a seedless strike that claimed nothing
128
103
  * reports its credential's VM there rather than reading as clean).
129
104
  */
@@ -136,7 +111,6 @@ export interface UnlockCredentialRetirementResult {
136
111
  userKey?: UserKey;
137
112
  rosterDescriptor?: CollectionEncryption;
138
113
  clientAnnex?: ClientAnnexInventoryRetirement;
139
- dependentRecords?: unknown;
140
114
  }
141
115
  /**
142
116
  * What the annex-inventory stage reports: `struck` (a strike entry dropped
@@ -180,10 +154,9 @@ export interface ClientAnnexInventoryRetirement {
180
154
  * stored account pointer; supplied, the inventory edit refuses a `did.jsonl`
181
155
  * resolving to any other account
182
156
  * @param [options.pinStore] {ResourceLogPinStore} this client's chain-head
183
- * pins, threaded to BOTH account-log reads the ceremony makes -- stage 0's
184
- * attribution read and the inventory edit's own read inside its
185
- * conflict-retry loop -- so a served rollback or fork is refused before
186
- * anything is published
157
+ * pins, threaded to the inventory edit's own read inside its conflict-retry
158
+ * loop, so a served rollback or fork is refused before anything is
159
+ * published
187
160
  * @param [options.logId] {string} the account log's pin slot
188
161
  * (`accountLogPinId({ spaceId })`); required whenever a `pinStore` is
189
162
  * supplied
@@ -200,15 +173,6 @@ export interface ClientAnnexInventoryRetirement {
200
173
  * called with `{ userKey, latestEpochId, descriptor }` after the roster read
201
174
  * and BEFORE the fan-out. The key and the epoch pin must persist atomically
202
175
  * @param options.collections {CascadeCollections} the fan-out's work
203
- * @param [options.remintDependentRecords] {Function} `({ document,
204
- * retiringKeyMultibases }) => Promise<unknown>` -- the dependent-record
205
- * re-mint (stage 0), run against the PRE-edit document with the ladder VM
206
- * ids this retirement is about to strike. Fail-closed: a throw aborts the
207
- * retirement before the document edit. Absent, the stage is skipped and no
208
- * log read happens for it (the no-WAS path). It is also skipped on the
209
- * ladder arm: every unlock record is signed by its own credential's ladder
210
- * VM, so this strike rots no sibling record, and there is nothing to
211
- * re-mint (`decisions/0019`)
212
176
  * @param [options.retireClientAnnexInventory] {Function} `({ document }) =>
213
177
  * Promise<ClientAnnexInventoryRetirement>` -- the annex reach (stage 1b in
214
178
  * the module doc), run against the post-edit document; a throw is caught
@@ -218,7 +182,7 @@ export interface ClientAnnexInventoryRetirement {
218
182
  * the session keeps operating without a re-login
219
183
  * @returns {Promise<UnlockCredentialRetirementResult>}
220
184
  */
221
- export declare function retireUnlockCredential({ idStore, signer, unlockKeys, ladderSeed, projectionStore, expectedDid, pinStore, logId, verb, rosterStore, userKey, clientKeyAgreementKey, pinnedEpochId, onUserKeyAdopted, collections, remintDependentRecords, retireClientAnnexInventory, onRotationAdopted }: {
185
+ export declare function retireUnlockCredential({ idStore, signer, unlockKeys, ladderSeed, projectionStore, expectedDid, pinStore, logId, verb, rosterStore, userKey, clientKeyAgreementKey, pinnedEpochId, onUserKeyAdopted, collections, retireClientAnnexInventory, onRotationAdopted }: {
222
186
  idStore: WebvhIdStore;
223
187
  signer: AccountLogSigner;
224
188
  unlockKeys: StandingUnlockKeys;
@@ -238,10 +202,6 @@ export declare function retireUnlockCredential({ idStore, signer, unlockKeys, la
238
202
  descriptor: CollectionEncryption;
239
203
  }) => Promise<void>;
240
204
  collections: CascadeCollections;
241
- remintDependentRecords?: (options: {
242
- document: object;
243
- retiringKeyMultibases: string[];
244
- }) => Promise<unknown>;
245
205
  retireClientAnnexInventory?: (options: {
246
206
  document: object;
247
207
  }) => Promise<ClientAnnexInventoryRetirement>;
@@ -1 +1 @@
1
- {"version":3,"file":"retire.d.ts","sourceRoot":"","sources":["../../src/unlock/retire.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyGG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAC/D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAA;AACxE,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,OAAO,EACZ,KAAK,oBAAoB,EAC1B,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAA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