@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,6 +1,5 @@
1
1
  import type { DIDDoc, DIDLog, UpdateDIDResult } from '@interop/did-method-webvh';
2
2
  import type { ClientWebvhUpdateKeys, CreatedWebvhLog, DidWebKeyMapV2, PublishedWebvhLog, WebvhEnrollmentKeys, WebvhIdStore } from '../webvh/didWebvh.js';
3
- import type { ResourceLogPinStore } from '@interop/vh-resource-log';
4
3
  import { type ClientRemovalTarget, type RevokedClientKeys } from '../webvh/revokeClient.js';
5
4
  import { type UnlockKeyAgreementPublication, type UnlockLogStore } from '../unlock/standingWebvh.js';
6
5
  import type { AccountEntryFields } from '../webvh/accountEntry.js';
@@ -62,9 +61,10 @@ export declare function createLadderAnchoredAccountLog({ wasServerUrl, spaceId,
62
61
  *
63
62
  * The publish is a conditional create-if-absent, so a concurrent signup's
64
63
  * winner is adopted on the conflict re-run rather than erased. On the create
65
- * path a supplied `pinStore` is written from the log this run minted (the
66
- * account-log trust-on-first-use convention: the creator knows the true
67
- * genesis); on the probe path the read itself carries the pin check.
64
+ * path the publish advances the store's own chain-head pin from the log this
65
+ * run minted (the account-log trust-on-first-use convention: the creator
66
+ * knows the true genesis); on the probe path the read itself carries the pin
67
+ * check.
68
68
  *
69
69
  * @param options {object}
70
70
  * @param options.idStore {WebvhIdStore}
@@ -83,9 +83,6 @@ export declare function createLadderAnchoredAccountLog({ wasServerUrl, spaceId,
83
83
  * @param [options.expectedDid] {string} the DID the published log must
84
84
  * resolve to, when the caller holds the account pointer; a heal login on a
85
85
  * fresh terminal legitimately holds none
86
- * @param [options.pinStore] {ResourceLogPinStore} this client's chain-head
87
- * pins; the account log's slot is keyed by `accountLogPinId` over the
88
- * `spaceId` above
89
86
  * @returns {Promise<{ did: string, published: PublishedWebvhLog,
90
87
  * logMinted: boolean }>} `published` is the head this stage stands on --
91
88
  * the served one on the adopt branch, the minted one paired with its
@@ -108,7 +105,6 @@ export declare function ensureLadderAnchoredDidWebvh(options: {
108
105
  ladderSeed: Uint8Array;
109
106
  keyAgreement: UnlockKeyAgreementPublication;
110
107
  expectedDid?: string;
111
- pinStore?: ResourceLogPinStore;
112
108
  }): Promise<{
113
109
  did: string;
114
110
  published: PublishedWebvhLog;
@@ -126,7 +122,9 @@ export type LadderSignedEntry = AccountEntryFields;
126
122
  * declined, which is the one test an idempotent caller needs ("did this call
127
123
  * publish an entry"). The ladder arm always attributes a rung, so `rung`,
128
124
  * `rungHash` and `state` stand on every non-skipped outcome -- which is what
129
- * this wrapper narrows over the seam's shared outcome.
125
+ * this wrapper narrows over the seam's shared outcome. `etag` is the
126
+ * published log's new validator when an entry was published and the backend
127
+ * serves one.
130
128
  */
131
129
  export type LadderSignedEntryOutcome = {
132
130
  skipped: true;
@@ -142,6 +140,7 @@ export type LadderSignedEntryOutcome = {
142
140
  rungHash: string;
143
141
  state: LadderRungState;
144
142
  updated?: UpdateDIDResult;
143
+ etag?: string;
145
144
  };
146
145
  /**
147
146
  * ONE LADDER-SIGNED ACCOUNT-LOG ENTRY: the account-entry seam
@@ -158,16 +157,12 @@ export type LadderSignedEntryOutcome = {
158
157
  * committed one (the retry-up-the-ladder resolution).
159
158
  *
160
159
  * @param options {object}
161
- * @param options.store {UnlockLogStore} public log read + delegated PUT
160
+ * @param options.store {UnlockLogStore} public log read + delegated PUT,
161
+ * carrying the chain-head pin the read is checked against and the publish
162
+ * advances
162
163
  * @param options.ladderSeed {Uint8Array} the credential's ladder seed
163
164
  * @param [options.expectedDid] {string} the account DID the log must resolve
164
165
  * to, from the caller's stored account pointer
165
- * @param [options.pinStore] {ResourceLogPinStore} the caller's chain-head
166
- * pins: the read is checked against the pinned head, and the pin advances
167
- * to the head this entry publishes
168
- * @param [options.logId] {string} the account log's pin slot
169
- * (`accountLogPinId({ spaceId })`); required whenever a `pinStore` is
170
- * supplied
171
166
  * @param [options.skip] {function} `(published) => boolean` -- run on the
172
167
  * read, before any attribution; `true` returns `skipped` with nothing
173
168
  * published
@@ -180,12 +175,10 @@ export type LadderSignedEntryOutcome = {
180
175
  * write it. See {@link signAccountEntry}
181
176
  * @returns {Promise<LadderSignedEntryOutcome>}
182
177
  */
183
- export declare function ladderSignedAccountEntry({ store, ladderSeed, expectedDid, pinStore, logId, skip, build, beforePublish }: {
178
+ export declare function ladderSignedAccountEntry({ store, ladderSeed, expectedDid, skip, build, beforePublish }: {
184
179
  store: UnlockLogStore;
185
180
  ladderSeed: Uint8Array;
186
181
  expectedDid?: string;
187
- pinStore?: ResourceLogPinStore;
188
- logId?: string;
189
182
  skip?: (published: PublishedWebvhLog) => boolean | Promise<boolean>;
190
183
  build: (context: {
191
184
  published: PublishedWebvhLog;
@@ -209,7 +202,11 @@ export declare function ladderSignedAccountEntry({ store, ladderSeed, expectedDi
209
202
  * re-attributing, which is exactly the retry-up-the-ladder resolution.
210
203
  *
211
204
  * @param options {object}
212
- * @param options.store {UnlockLogStore} public log read + delegated PUT
205
+ * @param options.store {UnlockLogStore} public log read + delegated PUT.
206
+ * Every read the two entries are built on is checked against the store's
207
+ * own chain-head pin (a served prefix is refused before the reveal entry
208
+ * lands, not only by a verify that follows both entries), and the pin
209
+ * advances to each entry as it publishes
213
210
  * @param options.ladderSeed {Uint8Array} the credential's ladder seed, from
214
211
  * its unlock record
215
212
  * @param options.newClientKeys {WebvhEnrollmentKeys} the new ordinary
@@ -260,14 +257,6 @@ export declare function ladderSignedAccountEntry({ store, ladderSeed, expectedDi
260
257
  * fork guard
261
258
  * @param [options.expectedDid] {string} the account DID the log must resolve
262
259
  * to, from the credential-authenticated pointer
263
- * @param [options.pinStore] {ResourceLogPinStore} this client's chain-head
264
- * pins; every read both entries are built on is checked against the pinned
265
- * head (a served prefix is refused before the reveal entry lands, not only
266
- * by a verify that follows both entries), and the pin advances to each
267
- * entry as it publishes
268
- * @param [options.logId] {string} the account log's pin slot
269
- * (`accountLogPinId({ spaceId })`); required whenever a `pinStore` is
270
- * supplied
271
260
  * @returns {Promise<{ did: string, webDoc?: object, committed: boolean }>}
272
261
  * the account DID, the final `did.json` projection when the add entry ran
273
262
  * here, and `committed` -- whether THIS call published the pivot entry
@@ -294,8 +283,6 @@ export declare function selfEnrollWebvhClient(options: {
294
283
  versionId: string;
295
284
  };
296
285
  expectedDid?: string;
297
- pinStore?: ResourceLogPinStore;
298
- logId?: string;
299
286
  }): Promise<{
300
287
  did: string;
301
288
  webDoc?: object;
@@ -405,7 +392,10 @@ export declare class LastEnrolledClientForgetError extends Error {
405
392
  *
406
393
  * @param options {object}
407
394
  * @param options.store {UnlockLogStore} the credential's delegated
408
- * `did.jsonl` bridge store
395
+ * `did.jsonl` bridge store; the read inside each attempt is checked against
396
+ * its chain-head pin (a served truncated prefix is refused as a `rollback`
397
+ * before anything is built on it), and the pin advances to the head this
398
+ * entry publishes
409
399
  * @param [options.projectionStore] {object} an `id`-collection store the
410
400
  * FORGETTING client can still write through (its own root-invoking store):
411
401
  * the post-removal `did:web` projection is PUT through it immediately
@@ -422,13 +412,6 @@ export declare class LastEnrolledClientForgetError extends Error {
422
412
  * excluded from the staged-hash attribution
423
413
  * @param [options.expectedDid] {string} the account DID the log must resolve
424
414
  * to, from the caller's stored account pointer
425
- * @param [options.pinStore] {ResourceLogPinStore} the caller's chain-head
426
- * pins: the read inside each attempt is checked against the pinned head
427
- * (a served truncated prefix is refused as a `rollback` before anything is
428
- * built on it), and the pin advances to the head this entry publishes
429
- * @param [options.logId] {string} the account log's pin slot
430
- * (`accountLogPinId({ spaceId })`); required whenever a `pinStore` is
431
- * supplied
432
415
  * @returns {Promise<{ did: string, doc: DIDDoc, log: DIDLog }>} the account
433
416
  * DID and the document and log as the removal entry leaves them (unchanged
434
417
  * on the idempotent no-op path)
@@ -440,13 +423,33 @@ export declare function forgetWebvhClient(options: {
440
423
  forgottenClient: RevokedClientKeys;
441
424
  knownLatentHashes?: string[];
442
425
  expectedDid?: string;
443
- pinStore?: ResourceLogPinStore;
444
- logId?: string;
445
426
  }): Promise<{
446
427
  did: string;
447
428
  doc: DIDDoc;
448
429
  log: DIDLog;
449
430
  }>;
431
+ /**
432
+ * Whether a verification method is the account's ONE enrolled client:
433
+ * `capabilityInvocation` lists exactly the enrolled clients' signing keys (a
434
+ * recovery code's key is `keyAgreement`-only and the KMS convenience key
435
+ * `authentication`-only), so a document listing this method there and nothing
436
+ * else stands on this client alone. A document that does not list it at all
437
+ * is not this client standing alone, which is why membership is asked
438
+ * alongside exclusivity.
439
+ *
440
+ * @param options {object}
441
+ * @param options.doc {object} a locally verified account document
442
+ * @param options.vmId {string} the client's signing verification-method id
443
+ * @returns {boolean}
444
+ */
445
+ export declare function isSoleEnrolledClient({ doc, vmId }: {
446
+ doc: {
447
+ capabilityInvocation?: Array<string | {
448
+ id?: string;
449
+ }>;
450
+ };
451
+ vmId: string;
452
+ }): boolean;
450
453
  /**
451
454
  * One attempt of {@link forgetWebvhClient} or `forgetLastWebvhClient`
452
455
  * (`forgetLast.ts`), re-invoked by their conflict retries. The two share the
@@ -478,15 +481,13 @@ export declare function forgetWebvhClient(options: {
478
481
  * built; it throws to refuse the removal
479
482
  * @returns {Promise<{ did: string, doc: DIDDoc, log: DIDLog }>}
480
483
  */
481
- export declare function clientForgetEntryOnce({ store, projectionStore, ladderSeed, forgottenClient, knownLatentHashes, expectedDid, pinStore, logId, assertRemovable }: {
484
+ export declare function clientForgetEntryOnce({ store, projectionStore, ladderSeed, forgottenClient, knownLatentHashes, expectedDid, assertRemovable }: {
482
485
  store: UnlockLogStore;
483
486
  projectionStore?: Pick<WebvhIdStore, 'getIdResourceRaw' | 'putIdResource'>;
484
487
  ladderSeed: Uint8Array;
485
488
  forgottenClient: RevokedClientKeys;
486
489
  knownLatentHashes?: string[];
487
490
  expectedDid?: string;
488
- pinStore?: ResourceLogPinStore;
489
- logId?: string;
490
491
  assertRemovable: (options: {
491
492
  published: PublishedWebvhLog;
492
493
  target: ClientRemovalTarget;
@@ -524,16 +525,11 @@ export declare function clientForgetEntryOnce({ store, projectionStore, ladderSe
524
525
  *
525
526
  * @param options {object}
526
527
  * @param options.store {UnlockLogStore} the credential's delegated
527
- * `did.jsonl` bridge store
528
+ * `did.jsonl` bridge store; the read inside each attempt is checked against
529
+ * its chain-head pin, and the pin advances to the head this entry publishes
528
530
  * @param options.ladderSeed {Uint8Array} the credential's ladder seed
529
531
  * @param [options.expectedDid] {string} the account DID the log must resolve
530
532
  * to, from the caller's stored account pointer
531
- * @param [options.pinStore] {ResourceLogPinStore} the caller's chain-head
532
- * pins: the read inside each attempt is checked against the pinned head,
533
- * and the pin advances to the head this entry publishes
534
- * @param [options.logId] {string} the account log's pin slot
535
- * (`accountLogPinId({ spaceId })`); required whenever a `pinStore` is
536
- * supplied
537
533
  * @returns {Promise<{ did: string, doc: DIDDoc, log: DIDLog, installed: boolean }>}
538
534
  * the account DID and the document and log as the install entry leaves them
539
535
  * (unchanged on the idempotent no-op path); `installed` says whether the
@@ -543,8 +539,6 @@ export declare function installLadderVmWebvh(options: {
543
539
  store: UnlockLogStore;
544
540
  ladderSeed: Uint8Array;
545
541
  expectedDid?: string;
546
- pinStore?: ResourceLogPinStore;
547
- logId?: string;
548
542
  }): Promise<{
549
543
  did: string;
550
544
  doc: DIDDoc;
@@ -580,16 +574,11 @@ export declare function installLadderVmWebvh(options: {
580
574
  *
581
575
  * @param options {object}
582
576
  * @param options.store {UnlockLogStore} the credential's delegated
583
- * `did.jsonl` bridge store
577
+ * `did.jsonl` bridge store; the read inside each attempt is checked against
578
+ * its chain-head pin, and the pin advances to the head this entry publishes
584
579
  * @param options.ladderSeed {Uint8Array} the credential's ladder seed
585
580
  * @param [options.expectedDid] {string} the account DID the log must resolve
586
581
  * to, from the caller's stored account pointer
587
- * @param [options.pinStore] {ResourceLogPinStore} the caller's chain-head
588
- * pins: the read inside each attempt is checked against the pinned head,
589
- * and the pin advances to the head this entry publishes
590
- * @param [options.logId] {string} the account log's pin slot
591
- * (`accountLogPinId({ spaceId })`); required whenever a `pinStore` is
592
- * supplied
593
582
  * @returns {Promise<{ did: string, doc: DIDDoc, log: DIDLog, struck: boolean }>}
594
583
  * the account DID and the document and log as the strike entry leaves them
595
584
  * (unchanged on the idempotent no-op path); `struck` says whether the entry
@@ -599,8 +588,6 @@ export declare function strikeLadderVmWebvh(options: {
599
588
  store: UnlockLogStore;
600
589
  ladderSeed: Uint8Array;
601
590
  expectedDid?: string;
602
- pinStore?: ResourceLogPinStore;
603
- logId?: string;
604
591
  }): Promise<{
605
592
  did: string;
606
593
  doc: DIDDoc;
@@ -633,26 +620,28 @@ export declare function strikeLadderVmWebvh(options: {
633
620
  *
634
621
  * @param options {object}
635
622
  * @param options.store {UnlockLogStore} the credential's delegated
636
- * `did.jsonl` bridge store
623
+ * `did.jsonl` bridge store; the read is checked against its chain-head pin,
624
+ * and the pin advances to the head this entry publishes
637
625
  * @param options.ladderSeed {Uint8Array} the credential's ladder seed
638
626
  * @param [options.expectedDid] {string} the account DID the log must
639
627
  * resolve to, from the caller's stored account pointer
640
- * @param [options.pinStore] {ResourceLogPinStore} the caller's chain-head
641
- * pins: the read is checked against the pinned head, and the pin advances
642
- * to the head this entry publishes
643
- * @param [options.logId] {string} the account log's pin slot
644
- * (`accountLogPinId({ spaceId })`); required whenever a `pinStore` is
645
- * supplied
646
- * @returns {Promise<{ revealed: boolean }>} whether this call published the
647
- * entry
628
+ * @returns {Promise<{ revealed: boolean, rung: LadderRung,
629
+ * published: PublishedWebvhLog }>} whether this call published the
630
+ * entry; the rung the attribution resolved, which stands REVEALED in
631
+ * `published.updateKeys` either way (it was revealed already, or this entry
632
+ * revealed it); and the head this call leaves standing -- the post-entry
633
+ * head when it published, the read it was built on when the rung was
634
+ * revealed already -- so a caller signing its next entry with the rung
635
+ * builds on this head instead of re-reading and re-attributing a log that
636
+ * provably did not change in between
648
637
  */
649
- export declare function revealLadderRungWebvh({ store, ladderSeed, expectedDid, pinStore, logId }: {
638
+ export declare function revealLadderRungWebvh({ store, ladderSeed, expectedDid }: {
650
639
  store: UnlockLogStore;
651
640
  ladderSeed: Uint8Array;
652
641
  expectedDid?: string;
653
- pinStore?: ResourceLogPinStore;
654
- logId?: string;
655
642
  }): Promise<{
656
643
  revealed: boolean;
644
+ rung: LadderRung;
645
+ published: PublishedWebvhLog;
657
646
  }>;
658
647
  //# sourceMappingURL=ladderAnchored.d.ts.map
@@ -1 +1 @@
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