@interop/wallet-core 0.66.0 → 0.68.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 (257) hide show
  1. package/README.md +12 -8
  2. package/dist/clientAnnex/credentialAnchoredGenesis.d.ts +6 -10
  3. package/dist/clientAnnex/credentialAnchoredGenesis.d.ts.map +1 -1
  4. package/dist/clientAnnex/credentialAnchoredGenesis.js +34 -56
  5. package/dist/clientAnnex/credentialAnchoredGenesis.js.map +1 -1
  6. package/dist/clientAnnex/establish.d.ts +46 -29
  7. package/dist/clientAnnex/establish.d.ts.map +1 -1
  8. package/dist/clientAnnex/establish.js +111 -86
  9. package/dist/clientAnnex/establish.js.map +1 -1
  10. package/dist/clientAnnex/forget.d.ts +7 -16
  11. package/dist/clientAnnex/forget.d.ts.map +1 -1
  12. package/dist/clientAnnex/forget.js +13 -24
  13. package/dist/clientAnnex/forget.js.map +1 -1
  14. package/dist/clientAnnex/forgetLast.d.ts +33 -129
  15. package/dist/clientAnnex/forgetLast.d.ts.map +1 -1
  16. package/dist/clientAnnex/forgetLast.js +43 -182
  17. package/dist/clientAnnex/forgetLast.js.map +1 -1
  18. package/dist/clientAnnex/gc.d.ts +26 -12
  19. package/dist/clientAnnex/gc.d.ts.map +1 -1
  20. package/dist/clientAnnex/gc.js +60 -57
  21. package/dist/clientAnnex/gc.js.map +1 -1
  22. package/dist/clientAnnex/heal.d.ts +75 -18
  23. package/dist/clientAnnex/heal.d.ts.map +1 -1
  24. package/dist/clientAnnex/heal.js +79 -147
  25. package/dist/clientAnnex/heal.js.map +1 -1
  26. package/dist/clientAnnex/index.d.ts +8 -8
  27. package/dist/clientAnnex/index.d.ts.map +1 -1
  28. package/dist/clientAnnex/index.js +5 -5
  29. package/dist/clientAnnex/index.js.map +1 -1
  30. package/dist/clientAnnex/ladder.d.ts +51 -4
  31. package/dist/clientAnnex/ladder.d.ts.map +1 -1
  32. package/dist/clientAnnex/ladder.js +283 -47
  33. package/dist/clientAnnex/ladder.js.map +1 -1
  34. package/dist/clientAnnex/ladderAnchored.d.ts +62 -73
  35. package/dist/clientAnnex/ladderAnchored.d.ts.map +1 -1
  36. package/dist/clientAnnex/ladderAnchored.js +103 -117
  37. package/dist/clientAnnex/ladderAnchored.js.map +1 -1
  38. package/dist/clientAnnex/log.d.ts +123 -125
  39. package/dist/clientAnnex/log.d.ts.map +1 -1
  40. package/dist/clientAnnex/log.js +174 -233
  41. package/dist/clientAnnex/log.js.map +1 -1
  42. package/dist/clientAnnex/mend.d.ts +0 -4
  43. package/dist/clientAnnex/mend.d.ts.map +1 -1
  44. package/dist/clientAnnex/mend.js +50 -51
  45. package/dist/clientAnnex/mend.js.map +1 -1
  46. package/dist/clientAnnex/recoveryLadderAnchored.d.ts +25 -13
  47. package/dist/clientAnnex/recoveryLadderAnchored.d.ts.map +1 -1
  48. package/dist/clientAnnex/recoveryLadderAnchored.js +80 -303
  49. package/dist/clientAnnex/recoveryLadderAnchored.js.map +1 -1
  50. package/dist/clientAnnex/rosterDeliveredEpochs.d.ts +13 -5
  51. package/dist/clientAnnex/rosterDeliveredEpochs.d.ts.map +1 -1
  52. package/dist/clientAnnex/rosterDeliveredEpochs.js +18 -9
  53. package/dist/clientAnnex/rosterDeliveredEpochs.js.map +1 -1
  54. package/dist/clientAnnex/selfEnroll.d.ts +6 -10
  55. package/dist/clientAnnex/selfEnroll.d.ts.map +1 -1
  56. package/dist/clientAnnex/selfEnroll.js +13 -18
  57. package/dist/clientAnnex/selfEnroll.js.map +1 -1
  58. package/dist/clientAnnex/zcap.d.ts +19 -0
  59. package/dist/clientAnnex/zcap.d.ts.map +1 -1
  60. package/dist/clientAnnex/zcap.js +80 -12
  61. package/dist/clientAnnex/zcap.js.map +1 -1
  62. package/dist/clients/index.d.ts +3 -2
  63. package/dist/clients/index.d.ts.map +1 -1
  64. package/dist/clients/index.js +3 -2
  65. package/dist/clients/index.js.map +1 -1
  66. package/dist/clients/listing.d.ts.map +1 -1
  67. package/dist/clients/listing.js +33 -15
  68. package/dist/clients/listing.js.map +1 -1
  69. package/dist/clients/policy.d.ts +18 -0
  70. package/dist/clients/policy.d.ts.map +1 -1
  71. package/dist/clients/policy.js +22 -8
  72. package/dist/clients/policy.js.map +1 -1
  73. package/dist/clients/revocation.d.ts +18 -30
  74. package/dist/clients/revocation.d.ts.map +1 -1
  75. package/dist/clients/revocation.js +12 -27
  76. package/dist/clients/revocation.js.map +1 -1
  77. package/dist/clients/rosterPolicy.d.ts +6 -1
  78. package/dist/clients/rosterPolicy.d.ts.map +1 -1
  79. package/dist/clients/rosterPolicy.js +27 -30
  80. package/dist/clients/rosterPolicy.js.map +1 -1
  81. package/dist/descriptors/errors.d.ts +6 -5
  82. package/dist/descriptors/errors.d.ts.map +1 -1
  83. package/dist/descriptors/errors.js +6 -5
  84. package/dist/descriptors/errors.js.map +1 -1
  85. package/dist/descriptors/index.d.ts +7 -3
  86. package/dist/descriptors/index.d.ts.map +1 -1
  87. package/dist/descriptors/index.js +7 -3
  88. package/dist/descriptors/index.js.map +1 -1
  89. package/dist/descriptors/logSource.d.ts +28 -6
  90. package/dist/descriptors/logSource.d.ts.map +1 -1
  91. package/dist/descriptors/logSource.js +33 -7
  92. package/dist/descriptors/logSource.js.map +1 -1
  93. package/dist/enrollment/enrollment.d.ts.map +1 -1
  94. package/dist/enrollment/enrollment.js +3 -7
  95. package/dist/enrollment/enrollment.js.map +1 -1
  96. package/dist/genesis/accountGenesis.d.ts +11 -16
  97. package/dist/genesis/accountGenesis.d.ts.map +1 -1
  98. package/dist/genesis/accountGenesis.js +43 -47
  99. package/dist/genesis/accountGenesis.js.map +1 -1
  100. package/dist/genesis/kmsAuthentication.d.ts +50 -0
  101. package/dist/genesis/kmsAuthentication.d.ts.map +1 -0
  102. package/dist/genesis/kmsAuthentication.js +49 -0
  103. package/dist/genesis/kmsAuthentication.js.map +1 -0
  104. package/dist/keyring/kdf.d.ts +16 -20
  105. package/dist/keyring/kdf.d.ts.map +1 -1
  106. package/dist/keyring/kdf.js +2 -2
  107. package/dist/keyring/kdf.js.map +1 -1
  108. package/dist/keyring/unlockSpace.d.ts +8 -30
  109. package/dist/keyring/unlockSpace.d.ts.map +1 -1
  110. package/dist/keyring/unlockSpace.js +8 -31
  111. package/dist/keyring/unlockSpace.js.map +1 -1
  112. package/dist/keys/clientKeyRecord.d.ts +2 -1
  113. package/dist/keys/clientKeyRecord.d.ts.map +1 -1
  114. package/dist/keys/clientKeyRecord.js +28 -11
  115. package/dist/keys/clientKeyRecord.js.map +1 -1
  116. package/dist/keys/index.d.ts +6 -2
  117. package/dist/keys/index.d.ts.map +1 -1
  118. package/dist/keys/index.js +5 -1
  119. package/dist/keys/index.js.map +1 -1
  120. package/dist/keys/rosterLogStore.d.ts.map +1 -1
  121. package/dist/keys/rosterLogStore.js +14 -5
  122. package/dist/keys/rosterLogStore.js.map +1 -1
  123. package/dist/keys/spaceEpochs.d.ts +92 -3
  124. package/dist/keys/spaceEpochs.d.ts.map +1 -1
  125. package/dist/keys/spaceEpochs.js +110 -4
  126. package/dist/keys/spaceEpochs.js.map +1 -1
  127. package/dist/keys/userKeyRoster.d.ts +30 -3
  128. package/dist/keys/userKeyRoster.d.ts.map +1 -1
  129. package/dist/keys/userKeyRoster.js +90 -15
  130. package/dist/keys/userKeyRoster.js.map +1 -1
  131. package/dist/keys/userKeyRosterCascade.d.ts.map +1 -1
  132. package/dist/keys/userKeyRosterCascade.js +5 -1
  133. package/dist/keys/userKeyRosterCascade.js.map +1 -1
  134. package/dist/recovery/continuation.d.ts +250 -0
  135. package/dist/recovery/continuation.d.ts.map +1 -0
  136. package/dist/recovery/continuation.js +467 -0
  137. package/dist/recovery/continuation.js.map +1 -0
  138. package/dist/recovery/index.d.ts +12 -8
  139. package/dist/recovery/index.d.ts.map +1 -1
  140. package/dist/recovery/index.js +11 -7
  141. package/dist/recovery/index.js.map +1 -1
  142. package/dist/recovery/recoveryDelegation.d.ts +23 -126
  143. package/dist/recovery/recoveryDelegation.d.ts.map +1 -1
  144. package/dist/recovery/recoveryDelegation.js +1 -266
  145. package/dist/recovery/recoveryDelegation.js.map +1 -1
  146. package/dist/recovery/recoveryWebvh.d.ts +52 -107
  147. package/dist/recovery/recoveryWebvh.d.ts.map +1 -1
  148. package/dist/recovery/recoveryWebvh.js +54 -403
  149. package/dist/recovery/recoveryWebvh.js.map +1 -1
  150. package/dist/request/classify.d.ts +3 -14
  151. package/dist/request/classify.d.ts.map +1 -1
  152. package/dist/request/classify.js +19 -40
  153. package/dist/request/classify.js.map +1 -1
  154. package/dist/request/index.d.ts +1 -0
  155. package/dist/request/index.d.ts.map +1 -1
  156. package/dist/request/index.js +1 -0
  157. package/dist/request/index.js.map +1 -1
  158. package/dist/request/onboarding.d.ts.map +1 -1
  159. package/dist/request/onboarding.js +19 -27
  160. package/dist/request/onboarding.js.map +1 -1
  161. package/dist/request/parse.d.ts +5 -3
  162. package/dist/request/parse.d.ts.map +1 -1
  163. package/dist/request/parse.js +7 -6
  164. package/dist/request/parse.js.map +1 -1
  165. package/dist/request/processRequest.d.ts.map +1 -1
  166. package/dist/request/processRequest.js +2 -1
  167. package/dist/request/processRequest.js.map +1 -1
  168. package/dist/request/queryPredicates.d.ts +98 -0
  169. package/dist/request/queryPredicates.d.ts.map +1 -0
  170. package/dist/request/queryPredicates.js +107 -0
  171. package/dist/request/queryPredicates.js.map +1 -0
  172. package/dist/resourceLog/document.d.ts +39 -0
  173. package/dist/resourceLog/document.d.ts.map +1 -1
  174. package/dist/resourceLog/document.js +41 -0
  175. package/dist/resourceLog/document.js.map +1 -1
  176. package/dist/resourceLog/index.d.ts +2 -2
  177. package/dist/resourceLog/index.js +2 -2
  178. package/dist/resourceLog/ladderRungs.d.ts.map +1 -1
  179. package/dist/resourceLog/ladderRungs.js +3 -2
  180. package/dist/resourceLog/ladderRungs.js.map +1 -1
  181. package/dist/sync/contactsConflict.d.ts.map +1 -1
  182. package/dist/sync/contactsConflict.js +8 -2
  183. package/dist/sync/contactsConflict.js.map +1 -1
  184. package/dist/sync/engine.d.ts +38 -23
  185. package/dist/sync/engine.d.ts.map +1 -1
  186. package/dist/sync/engine.js +36 -5
  187. package/dist/sync/engine.js.map +1 -1
  188. package/dist/sync/index.d.ts +9 -12
  189. package/dist/sync/index.d.ts.map +1 -1
  190. package/dist/sync/index.js +8 -11
  191. package/dist/sync/index.js.map +1 -1
  192. package/dist/sync/push.d.ts.map +1 -1
  193. package/dist/sync/push.js +1 -2
  194. package/dist/sync/push.js.map +1 -1
  195. package/dist/sync/remint.d.ts +0 -31
  196. package/dist/sync/remint.d.ts.map +1 -1
  197. package/dist/sync/remint.js +32 -1
  198. package/dist/sync/remint.js.map +1 -1
  199. package/dist/sync/types.d.ts +4 -41
  200. package/dist/sync/types.d.ts.map +1 -1
  201. package/dist/sync/types.js +4 -47
  202. package/dist/sync/types.js.map +1 -1
  203. package/dist/unlock/index.d.ts +1 -1
  204. package/dist/unlock/index.d.ts.map +1 -1
  205. package/dist/unlock/index.js +1 -1
  206. package/dist/unlock/index.js.map +1 -1
  207. package/dist/unlock/retire.d.ts +16 -64
  208. package/dist/unlock/retire.d.ts.map +1 -1
  209. package/dist/unlock/retire.js +7 -86
  210. package/dist/unlock/retire.js.map +1 -1
  211. package/dist/unlock/standingWebvh.d.ts +27 -61
  212. package/dist/unlock/standingWebvh.d.ts.map +1 -1
  213. package/dist/unlock/standingWebvh.js +40 -92
  214. package/dist/unlock/standingWebvh.js.map +1 -1
  215. package/dist/unlock/unlockRecord.d.ts.map +1 -1
  216. package/dist/unlock/unlockRecord.js +69 -44
  217. package/dist/unlock/unlockRecord.js.map +1 -1
  218. package/dist/webvh/accountEntry.d.ts +68 -19
  219. package/dist/webvh/accountEntry.d.ts.map +1 -1
  220. package/dist/webvh/accountEntry.js +117 -37
  221. package/dist/webvh/accountEntry.js.map +1 -1
  222. package/dist/webvh/delegatedLogStore.d.ts +24 -13
  223. package/dist/webvh/delegatedLogStore.d.ts.map +1 -1
  224. package/dist/webvh/delegatedLogStore.js +40 -11
  225. package/dist/webvh/delegatedLogStore.js.map +1 -1
  226. package/dist/webvh/didWebvh.d.ts +91 -86
  227. package/dist/webvh/didWebvh.d.ts.map +1 -1
  228. package/dist/webvh/didWebvh.js +117 -142
  229. package/dist/webvh/didWebvh.js.map +1 -1
  230. package/dist/webvh/enrollClient.d.ts +2 -8
  231. package/dist/webvh/enrollClient.d.ts.map +1 -1
  232. package/dist/webvh/enrollClient.js +22 -31
  233. package/dist/webvh/enrollClient.js.map +1 -1
  234. package/dist/webvh/index.d.ts +12 -8
  235. package/dist/webvh/index.d.ts.map +1 -1
  236. package/dist/webvh/index.js +10 -7
  237. package/dist/webvh/index.js.map +1 -1
  238. package/dist/webvh/listClients.d.ts.map +1 -1
  239. package/dist/webvh/listClients.js +102 -65
  240. package/dist/webvh/listClients.js.map +1 -1
  241. package/dist/webvh/mergeMethods.d.ts +84 -0
  242. package/dist/webvh/mergeMethods.d.ts.map +1 -0
  243. package/dist/webvh/mergeMethods.js +46 -0
  244. package/dist/webvh/mergeMethods.js.map +1 -0
  245. package/dist/webvh/revokeClient.d.ts +15 -11
  246. package/dist/webvh/revokeClient.d.ts.map +1 -1
  247. package/dist/webvh/revokeClient.js +130 -57
  248. package/dist/webvh/revokeClient.js.map +1 -1
  249. package/dist/webvh/verifyLog.d.ts +45 -4
  250. package/dist/webvh/verifyLog.d.ts.map +1 -1
  251. package/dist/webvh/verifyLog.js +62 -21
  252. package/dist/webvh/verifyLog.js.map +1 -1
  253. package/dist/webvh/wasIdStore.d.ts +16 -3
  254. package/dist/webvh/wasIdStore.d.ts.map +1 -1
  255. package/dist/webvh/wasIdStore.js +18 -3
  256. package/dist/webvh/wasIdStore.js.map +1 -1
  257. package/package.json +11 -11
@@ -1,91 +1,49 @@
1
- import type { DIDDoc, DIDLog } from '@interop/did-method-webvh';
2
- import type { ClientWebvhUpdateKeys, WebvhEnrollmentKeys, WebvhIdStore } from '../webvh/didWebvh.js';
3
- import type { ResourceLogPinStore } from '@interop/vh-resource-log';
4
- import type { UnlockInventoryPart } from '../unlock/standingWebvh.js';
5
- import type { AccountLogSigner } from '../webvh/accountEntry.js';
1
+ /*!
2
+ * Copyright (c) 2026 Interop Alliance. All rights reserved.
3
+ */
6
4
  /**
7
- * What the add-and-retire entry retired, read back OFF THE LOG -- the resumed
8
- * spend's answer to the same question the live run answers from the document
9
- * it is editing. A run torn after that entry but before the caller's registry
10
- * and unlock-Space teardown resumes into the already-complete branch, and
11
- * without this it would be told nothing was retired and leave every other
12
- * credential's registry entry standing.
5
+ * The did:webvh half of recovery-code lifecycle: the split configuration a
6
+ * code holds as a standing unlock credential that retires on spend. At
7
+ * issuance the document gains the code's `keyAgreement` verification method
8
+ * (an ordinary Multikey entry -- deliberately unmarked; a recovery key is
9
+ * distinguishable structurally, since it appears under `keyAgreement` and
10
+ * `assertionMethod`/`capabilityDelegation` while every enrolled client also
11
+ * publishes an invocation relationship, so client listings key on
12
+ * `capabilityInvocation` and never see it), the code's ladder VM, and its
13
+ * rung-0 hash in `nextKeyHashes` -- decryption and delegation standing,
14
+ * update authority latent: rung 0 joins `updateKeys` nowhere, and every key
15
+ * of the set exists nowhere until the code is typed.
13
16
  *
14
- * The entry is located by its own signature on the log: it is the first entry
15
- * whose effective `updateKeys` authorize the successor key (the fresh
16
- * ladder's rung 0 on the transient continuation, the new client's update key
17
- * on the remembered one), which only that entry writes. What it retired is
18
- * then the credential-class `keyAgreement` ids its predecessor published and
19
- * it does not, less the spent code's own id -- the same exclusion the live
20
- * branch makes, since the caller retires that one by name.
17
+ * At recovery time the pre-committed rung 0 reveals itself to sign the
18
+ * self-enrolling continuation, two entries:
21
19
  *
22
- * @param options {object}
23
- * @param options.log {DIDLog} the verified account log
24
- * @param options.did {string} the account DID the log resolves to
25
- * @param options.successorKeyMultibase {string} the update key only the
26
- * add-and-retire entry authorizes
27
- * @param options.spentVmId {string} the spent code's key-agreement
28
- * verification-method id, excluded from the result
29
- * @returns {string[]} the retired credentials' key-agreement ids, empty
30
- * when no entry authorizes the successor key or it is the genesis entry
31
- */
32
- export declare function retiredCredentialVmIdsFromLog({ log, did, successorKeyMultibase, spentVmId }: {
33
- log: DIDLog;
34
- did: string;
35
- successorKeyMultibase: string;
36
- spentVmId: string;
37
- }): string[];
38
- /**
39
- * The verification-method id a code's key-agreement key publishes under --
40
- * the ordinary `<did>#<multibase>` form, indistinguishable by id from any
41
- * other keyAgreement entry. Consumers that must exclude recovery entries do
42
- * it structurally (an enrolled client is a `capabilityInvocation` entry; a
43
- * recovery key never has one) or by the registry's recorded multibase.
20
+ * 1. **Reveal + commit**: rung 0 joins `updateKeys` (its hash stands
21
+ * committed since issuance, which is what makes the entry verify -- the
22
+ * ordinary ladder reveal) and `nextKeyHashes` extends with the NEW
23
+ * ordinary client's update- and staged-key hashes plus the replacement
24
+ * code's rung-0 hash.
25
+ * 2. **Add + retire**: signed by the new client's update key (revealed from
26
+ * the commit), this entry publishes the new client's verification methods
27
+ * and update key, removes the spent code's `keyAgreement` VM and its
28
+ * ladder VM (with every other standing credential's, by the relation
29
+ * asymmetry), publishes the replacement code's inventory, and drops the
30
+ * spent code's revealed rung and its hash -- so no recovery authority
31
+ * stands afterwards.
44
32
  *
45
- * @param options {object}
46
- * @param options.did {string} the account's did:webvh
47
- * @param options.keyAgreementKeyMultibase {string}
48
- * @returns {string}
49
- */
50
- export declare function recoveryVmId({ did, keyAgreementKeyMultibase }: {
51
- did: string;
52
- keyAgreementKeyMultibase: string;
53
- }): string;
54
- /**
55
- * The public halves of a recovery code as the document and log carry them:
56
- * the X25519 key-agreement key published as the recovery VM, and the update
57
- * key whose hash stands in `nextKeyHashes`.
58
- */
59
- export interface RecoveryPublicKeys {
60
- keyAgreementKeyMultibase: string;
61
- updateKeyMultibase: string;
62
- }
63
- /**
64
- * The public halves a SPEND needs of the replacement code it publishes: the
65
- * two above plus the code's ladder VM key, which the add-and-retire entry
66
- * installs under `assertionMethod` and `capabilityDelegation`. A code is a
67
- * standing unlock credential with a ladder (`decisions/0020`) and its bridge
68
- * delegation is signed by that ladder's VM (`decisions/0019`), so a
69
- * replacement published without the VM could neither sign its own bridge nor
70
- * spend. `recoveryClientFromCode` produces all three.
71
- */
72
- export interface ReplacementRecoveryPublicKeys extends RecoveryPublicKeys {
73
- ladderVmKeyMultibase: string;
74
- }
75
- /**
76
- * Thrown by the recovery continuation when the log carries neither the code's
77
- * update key nor its committed hash -- the code was revoked (or never
78
- * issued), so no continuation can verify.
33
+ * Both entries are written through the caller's store seam; the recovery
34
+ * continuation publishes ONLY `did.jsonl` (the delegation the record carries
35
+ * covers nothing else -- narrow scope preserves loudness), and hands back the
36
+ * final `webDoc` so the recovered session can republish `did.json` once it is
37
+ * the authorized controller. Every step is idempotent/resumable: re-running
38
+ * with the same key material converges without forking the log.
79
39
  */
80
- export declare class RecoveryKeyNotCommittedError extends Error {
81
- constructor(message?: string);
82
- }
83
- /**
84
- * The narrow store seam the recovery continuation writes through: a public
85
- * read of the log and the delegated `did.jsonl` PUT. A subset of
86
- * {@link WebvhIdStore}, so an app's remote-store class satisfies it too.
87
- */
88
- export type RecoveryLogStore = Pick<WebvhIdStore, 'getIdResourceRaw' | 'putIdResource'>;
40
+ import type { DIDDoc, DIDLog } from '@interop/did-method-webvh';
41
+ import type { ClientWebvhUpdateKeys, WebvhEnrollmentKeys, WebvhIdStore } from '../webvh/didWebvh.js';
42
+ import type { UnlockInventoryPart } from '../unlock/standingWebvh.js';
43
+ import type { AccountLogSigner } from '../webvh/accountEntry.js';
44
+ import type { RecoveryLogStore, RecoveryPublicKeys, ReplacementRecoveryPublicKeys } from './continuation.js';
45
+ export { RecoveryCredentialStandingError, RecoveryKeyNotCommittedError, recoveryVmId, retiredCredentialVmIdsFromLog } from './continuation.js';
46
+ export type { RecoveryLogStore, RecoveryPublicKeys, ReplacementRecoveryPublicKeys } from './continuation.js';
89
47
  /**
90
48
  * ISSUANCE: publishes a recovery code's split configuration into the
91
49
  * document -- the code's `keyAgreement` verification method (an ordinary,
@@ -115,25 +73,20 @@ export type RecoveryLogStore = Pick<WebvhIdStore, 'getIdResourceRaw' | 'putIdRes
115
73
  * @param [options.part] {string} `'all'` (the default), `'key'`, or
116
74
  * `'authority'` -- see above
117
75
  * @param [options.expectedDid] {string} the account DID the log must
118
- * resolve to, from the caller's stored account pointer
119
- * @param [options.pinStore] {ResourceLogPinStore} the caller's chain-head
120
- * pins; a served log that is a rollback, a fork, or an identity switch
121
- * against the pinned head is refused (`ResourceLogContinuityError`)
122
- * @param [options.logId] {string} the account log's pin slot
123
- * (`accountLogPinId({ spaceId })`); required whenever a `pinStore` is
124
- * supplied
76
+ * resolve to, from the caller's stored account pointer. The read runs under
77
+ * the store's own chain-head pin: a served log that is a rollback, a fork,
78
+ * or an identity switch against the pinned head is refused
79
+ * (`ResourceLogContinuityError`)
125
80
  * @returns {Promise<{ did: string, doc: DIDDoc, log: DIDLog }>} the account
126
81
  * DID and the document and log as this call leaves them
127
82
  */
128
- export declare function publishRecoveryKey({ idStore, signer, recovery, ladderSeed, part, expectedDid, pinStore, logId }: {
83
+ export declare function publishRecoveryKey({ idStore, signer, recovery, ladderSeed, part, expectedDid }: {
129
84
  idStore: WebvhIdStore;
130
85
  signer: AccountLogSigner;
131
86
  recovery: RecoveryPublicKeys;
132
87
  ladderSeed: Uint8Array;
133
88
  part?: UnlockInventoryPart;
134
89
  expectedDid?: string;
135
- pinStore?: ResourceLogPinStore;
136
- logId?: string;
137
90
  }): Promise<{
138
91
  did: string;
139
92
  doc: DIDDoc;
@@ -169,15 +122,13 @@ export declare function publishRecoveryKey({ idStore, signer, recovery, ladderSe
169
122
  * @returns {Promise<{ did: string, doc: DIDDoc, log: DIDLog }>} see
170
123
  * {@link publishRecoveryKey}
171
124
  */
172
- export declare function removeRecoveryKey({ idStore, signer, recovery, ladderSeed, projectionStore, expectedDid, pinStore, logId }: {
125
+ export declare function removeRecoveryKey({ idStore, signer, recovery, ladderSeed, projectionStore, expectedDid }: {
173
126
  idStore: WebvhIdStore;
174
127
  signer: AccountLogSigner;
175
128
  recovery: RecoveryPublicKeys;
176
129
  ladderSeed?: Uint8Array;
177
130
  projectionStore?: Pick<WebvhIdStore, 'getIdResourceRaw' | 'putIdResource'>;
178
131
  expectedDid?: string;
179
- pinStore?: ResourceLogPinStore;
180
- logId?: string;
181
132
  }): Promise<{
182
133
  did: string;
183
134
  doc: DIDDoc;
@@ -241,15 +192,11 @@ export declare function removeRecoveryKey({ idStore, signer, recovery, ladderSee
241
192
  * `nextKeyHashes` exactly as on the self-enrollment seam (keys of a lost
242
193
  * random seed; nothing can reveal them)
243
194
  * @param [options.expectedDid] {string} the account DID the log must resolve
244
- * to, where the recovering flow already knows it
245
- * @param [options.pinStore] {ResourceLogPinStore} this caller's chain-head
246
- * pins; every read both entries are built on is checked against the pinned
247
- * head (a served prefix is refused before the reveal entry lands, not only
248
- * by a verify that follows both entries), and the pin advances to each
249
- * entry as it publishes
250
- * @param [options.logId] {string} the account log's pin slot
251
- * (`accountLogPinId({ spaceId })`); required whenever a `pinStore` is
252
- * supplied
195
+ * to, where the recovering flow already knows it. Every read both entries
196
+ * are built on is checked against the store's own chain-head pin (a served
197
+ * prefix is refused before the reveal entry lands, not only by a verify
198
+ * that follows both entries), and the pin advances to each entry as it
199
+ * publishes
253
200
  * @returns {Promise<object>}
254
201
  * the account DID, the final `did.json` projection when the add-and-retire
255
202
  * entry ran here, and `committed` -- whether THIS call published the pivot
@@ -280,8 +227,6 @@ export declare function recoverWebvhClient(options: {
280
227
  };
281
228
  }) => Promise<void>;
282
229
  expectedDid?: string;
283
- pinStore?: ResourceLogPinStore;
284
- logId?: string;
285
230
  }): Promise<{
286
231
  did: string;
287
232
  webDoc?: object;
@@ -1 +1 @@
1
- {"version":3,"file":"recoveryWebvh.d.ts","sourceRoot":"","sources":["../../src/recovery/recoveryWebvh.ts"],"names":[],"mappings":"AAwCA,OAAO,KAAK,EACV,MAAM,EACN,MAAM,EAEP,MAAM,2BAA2B,CAAA;AAclC,OAA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