@interop/wallet-core 0.47.0 → 0.49.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.
@@ -45,6 +45,7 @@ export declare const ACTIVITY_TYPE: {
45
45
  readonly ClientRevoke: "ClientRevoke";
46
46
  readonly CollectionShare: "CollectionShare";
47
47
  readonly CollectionUnshare: "CollectionUnshare";
48
+ readonly GenerationCollect: "GenerationCollect";
48
49
  };
49
50
  /**
50
51
  * A minimal actor descriptor; the wallet records the user's email.
@@ -228,6 +229,43 @@ export declare function addHistoryClientRevoked({ user, signingKeyMultibase, lab
228
229
  id?: string;
229
230
  created?: string;
230
231
  }): WalletActivity;
232
+ /**
233
+ * The GenerationCollect activity: companion GC collected one generation --
234
+ * the owner-side digest written BEFORE the generation collection is deleted,
235
+ * and the only record of the collected window's visits that survives the
236
+ * delete. One row per collected generation.
237
+ *
238
+ * The id is the generation id VERBATIM -- a deliberate exception to the
239
+ * uuidv7 id convention (readers must not assume activity ids are UUIDs):
240
+ * the deterministic payload id is what lets a torn re-run's second row
241
+ * collapse at read time under the store's documented dedupe model.
242
+ *
243
+ * `firstEntry` / `lastEntry` quote the collected companion log's first and
244
+ * last entries' `versionTime` strings verbatim (the digest outlives the log
245
+ * it describes, so it does not launder its source), and `entryCount` is the
246
+ * log's total entry count, genesis included -- an entry count, deliberately
247
+ * not a visit count.
248
+ *
249
+ * @param options {object}
250
+ * @param options.user {Actor}
251
+ * @param options.generationId {string} the collected generation's id (the
252
+ * `gen-` collection name); doubles as the activity id
253
+ * @param [options.firstEntry] {string} the log's first entry
254
+ * `versionTime`, verbatim
255
+ * @param [options.lastEntry] {string} the log's last entry `versionTime`,
256
+ * verbatim
257
+ * @param [options.entryCount] {number} total log entries, genesis included
258
+ * @param [options.created] {string}
259
+ * @returns {WalletActivity}
260
+ */
261
+ export declare function addHistoryGenerationCollected({ user, generationId, firstEntry, lastEntry, entryCount, created }: {
262
+ user: Actor;
263
+ generationId: string;
264
+ firstEntry?: string;
265
+ lastEntry?: string;
266
+ entryCount?: number;
267
+ created?: string;
268
+ }): WalletActivity;
231
269
  export declare function addHistoryAppRevoke({ user, origin, name, cid, revoked, skipped, id, created }: {
232
270
  user: Actor;
233
271
  origin: string;
@@ -1 +1 @@
1
- {"version":3,"file":"activity.d.ts","sourceRoot":"","sources":["../../src/space/activity.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;GAiBG;AAEH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;CAUhB,CAAA;AAEV;;GAEG;AACH,KAAK,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAY5C;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,IAAI,EACJ,EAAE,EACF,OAAO,EACR,EAAE;IACD,IAAI,EAAE,KAAK,CAAA;IACX,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,GAAG,cAAc,CAUjB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,KAAK,EACL,MAAM,EACN,MAAM,EACN,EAAE,EACF,OAAO,EACR,EAAE;IACD,KAAK,EAAE,OAAO,CAAA;IACd,MAAM,EAAE,OAAO,CAAA;IACf,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,OAAO,CAAC,EAAE,MAAM,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IVITY_TYPE = {
31
31
  Revoke: 'Revoke',
32
32
  ClientRevoke: 'ClientRevoke',
33
33
  CollectionShare: 'CollectionShare',
34
- CollectionUnshare: 'CollectionUnshare'
34
+ CollectionUnshare: 'CollectionUnshare',
35
+ GenerationCollect: 'GenerationCollect'
35
36
  };
36
37
  /**
37
38
  * Fills in the id / created defaults shared by every builder.
@@ -266,6 +267,45 @@ export function addHistoryClientRevoked({ user, signingKeyMultibase, label, rota
266
267
  created: stamped.created
267
268
  };
268
269
  }
270
+ /**
271
+ * The GenerationCollect activity: companion GC collected one generation --
272
+ * the owner-side digest written BEFORE the generation collection is deleted,
273
+ * and the only record of the collected window's visits that survives the
274
+ * delete. One row per collected generation.
275
+ *
276
+ * The id is the generation id VERBATIM -- a deliberate exception to the
277
+ * uuidv7 id convention (readers must not assume activity ids are UUIDs):
278
+ * the deterministic payload id is what lets a torn re-run's second row
279
+ * collapse at read time under the store's documented dedupe model.
280
+ *
281
+ * `firstEntry` / `lastEntry` quote the collected companion log's first and
282
+ * last entries' `versionTime` strings verbatim (the digest outlives the log
283
+ * it describes, so it does not launder its source), and `entryCount` is the
284
+ * log's total entry count, genesis included -- an entry count, deliberately
285
+ * not a visit count.
286
+ *
287
+ * @param options {object}
288
+ * @param options.user {Actor}
289
+ * @param options.generationId {string} the collected generation's id (the
290
+ * `gen-` collection name); doubles as the activity id
291
+ * @param [options.firstEntry] {string} the log's first entry
292
+ * `versionTime`, verbatim
293
+ * @param [options.lastEntry] {string} the log's last entry `versionTime`,
294
+ * verbatim
295
+ * @param [options.entryCount] {number} total log entries, genesis included
296
+ * @param [options.created] {string}
297
+ * @returns {WalletActivity}
298
+ */
299
+ export function addHistoryGenerationCollected({ user, generationId, firstEntry, lastEntry, entryCount, created }) {
300
+ return {
301
+ id: generationId,
302
+ type: [ACTIVITY_TYPE.GenerationCollect],
303
+ summary: `Collected companion generation "${generationId}".`,
304
+ actor: { email: user.email },
305
+ object: { generationId, firstEntry, lastEntry, entryCount },
306
+ created: created ?? new Date().toISOString()
307
+ };
308
+ }
269
309
  export function addHistoryAppRevoke({ user, origin, name, cid, revoked, skipped, id, created }) {
270
310
  const stamped = stamp(id, created);
271
311
  const summary = typeof revoked === 'number'
@@ -1 +1 @@
1
- {"version":3,"file":"activity.js","sourceRoot":"","sources":["../../src/space/activity.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;GAiBG;AAgBH;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,YAAY,EAAE,cAAc;IAC5B,eAAe,EAAE,iBAAiB;IAClC,iBAAiB,EAAE,mBAAmB;CAC9B,CAAA;AAOV;;GAEG;AACH,SAAS,KAAK,CAAC,EAAW,EAAE,OAAgB;IAC1C,OAAO;QACL,EAAE,EAAE,EAAE,IAAI,MAAM,CAAC,UAAU,EAAE;QAC7B,OAAO,EAAE,OAAO,IAAI,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;KAC7C,CAAA;AACH,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,oBAAoB,CAAC,EACnC,IAAI,EACJ,EAAE,EACF,OAAO,EAKR;IACC,MAAM,OAAO,GAAG,KAAK,CAAC,EAAE,EAAE,OAAO,CAAC,CAAA;IAClC,OAAO;QACL,EAAE,EAAE,OAAO,CAAC,EAAE;QACd,IAAI,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC;QAC5B,OAAO,EAAE,yCAAyC;QAClD,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE;QAC5B,MAAM,EAAE,IAAI,CAAC,EAAE;QACf,OAAO,EAAE,OAAO,CAAC,OAAO;KACzB,CAAA;AACH,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAA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AE,OAAO,EAAE;QAC/D,OAAO,EAAE,OAAO,CAAC,OAAO;KACzB,CAAA;AACH,CAAC"}
@@ -31,7 +31,7 @@ export { WALLET_SPACE_NAME, PRIVATE_CREDENTIALS_COLLECTION, PUBLIC_CREDENTIALS_C
31
31
  export { ID_COLLECTION, KEY_MAP_COLLECTION, UNLOCK_METHODS_COLLECTION, KEYRING_COLLECTION, ID_COLLECTION_SPEC, KEY_MAP_COLLECTION_SPEC, UNLOCK_METHODS_COLLECTION_SPEC, DID_DOCUMENT_RESOURCE, DID_LOG_RESOURCE, DID_KEYS_RESOURCE, USER_KEY_ROSTER_LOG_RESOURCE, CLIENT_LABELS_RESOURCE, UNLOCK_METHODS_RESOURCE, KEYRING_RESOURCE } from './collections.js';
32
32
  export type { SpaceProvisionSpec, SpaceCollectionSpec } from './collections.js';
33
33
  export { provisionWalletSpace } from './provisioning.js';
34
- export { ACTIVITY_TYPE, addHistoryNewAccount, addHistorySpaceCreated, addHistoryCredentialCreated, addHistoryCredentialDeleted, addHistoryCredentialShared, addHistoryCredentialUnshared, addHistoryLogin, addHistoryWalletLogin, addHistoryAppRevoke, addHistoryClientRevoked } from './activity.js';
34
+ export { ACTIVITY_TYPE, addHistoryNewAccount, addHistorySpaceCreated, addHistoryCredentialCreated, addHistoryCredentialDeleted, addHistoryCredentialShared, addHistoryCredentialUnshared, addHistoryLogin, addHistoryWalletLogin, addHistoryAppRevoke, addHistoryClientRevoked, addHistoryGenerationCollected } from './activity.js';
35
35
  export type { WalletActivity, ActivityGrant } from './activity.js';
36
36
  export { publicCredentialUrl } from './publicLink.js';
37
37
  export { encodeWasLinkSecret, buildWasLinkPayload, parseWasLinkPayload } from './wasLink.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/space/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EACL,iBAAiB,EACjB,8BAA8B,EAC9B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_CREDENTIALS_COLLECTION_SPEC, WALLET_ACTIVITY_COLLECTION_SPEC, CONTACTS_SPACE_COLLECTION_SPEC, CONTACTS_HISTORY_SPACE_COLLECTION_SPEC, APP_CONNECTIONS_COLLECTION_SPEC, WALLET_SPACE_SYNCED_SPECS, WALLET_SPACE_SYSTEM_SPECS, WALLET_SPACE_PROVISION_ROSTER } from './collections.js';
31
31
  export { ID_COLLECTION, KEY_MAP_COLLECTION, UNLOCK_METHODS_COLLECTION, KEYRING_COLLECTION, ID_COLLECTION_SPEC, KEY_MAP_COLLECTION_SPEC, UNLOCK_METHODS_COLLECTION_SPEC, DID_DOCUMENT_RESOURCE, DID_LOG_RESOURCE, DID_KEYS_RESOURCE, USER_KEY_ROSTER_LOG_RESOURCE, CLIENT_LABELS_RESOURCE, UNLOCK_METHODS_RESOURCE, KEYRING_RESOURCE } from './collections.js';
32
32
  export { provisionWalletSpace } from './provisioning.js';
33
- export { ACTIVITY_TYPE, addHistoryNewAccount, addHistorySpaceCreated, addHistoryCredentialCreated, addHistoryCredentialDeleted, addHistoryCredentialShared, addHistoryCredentialUnshared, addHistoryLogin, addHistoryWalletLogin, addHistoryAppRevoke, addHistoryClientRevoked } from './activity.js';
33
+ export { ACTIVITY_TYPE, addHistoryNewAccount, addHistorySpaceCreated, addHistoryCredentialCreated, addHistoryCredentialDeleted, addHistoryCredentialShared, addHistoryCredentialUnshared, addHistoryLogin, addHistoryWalletLogin, addHistoryAppRevoke, addHistoryClientRevoked, addHistoryGenerationCollected } from './activity.js';
34
34
  export { publicCredentialUrl } from './publicLink.js';
35
35
  export { encodeWasLinkSecret, buildWasLinkPayload, parseWasLinkPayload } from './wasLink.js';
36
36
  export { HumanReadableError } from './errors.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/space/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EACL,iBAAiB,EACjB,8BA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AAM,kBAAkB,CAAA;AACzB,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,yBAAyB,EACzB,kBAAkB,EAClB,kBAAkB,EAClB,uBAAuB,EACvB,8BAA8B,EAC9B,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EACjB,4BAA4B,EAC5B,sBAAsB,EACtB,uBAAuB,EACvB,gBAAgB,EACjB,MAAM,kBAAkB,CAAA;AAGzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAExD,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,sBAAsB,EACtB,2BAA2B,EAC3B,2BAA2B,EAC3B,0BAA0B,EAC1B,4BAA4B,EAC5B,eAAe,EACf,qBAAqB,EACrB,mBAAmB,EACnB,uBAAuB,EACvB,6BAA6B,EAC9B,MAAM,eAAe,CAAA;AAGtB,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAErD,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,cAAc,CAAA;AAGrB,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA"}
@@ -96,26 +96,28 @@ export declare function ladderVmKeyMultibase({ ladderSeed }: {
96
96
  /**
97
97
  * Derives the 32-byte update-key seed of a companion generation's rung 0 --
98
98
  * the credential's STATIC update key on that generation's companion log. The
99
- * sequence is domain-separated per generation by the collection segment
100
- * (`<segment>/rung/0` under the one {@link LADDER_SALT}): one shared sequence
99
+ * sequence is domain-separated per generation by the generation id
100
+ * (`<generationId>/rung/0` under the one {@link LADDER_SALT}): one shared
101
+ * sequence
101
102
  * would hand the storage host, a legitimate reader of the private companion,
102
103
  * a revealed key matching the ACCOUNT log's standing commitment, and a fresh
103
104
  * per-generation sequence is what makes GC replacement self-healing (no rung
104
105
  * index survives the deleted log, and none is needed).
105
106
  *
106
- * The segment is trusted here rather than re-validated -- the companion
107
- * ceremonies assert the `gen-<random>` shape (`assertGenerationSegment`)
107
+ * The generation id is trusted here rather than re-validated -- the companion
108
+ * ceremonies assert the `gen-<random>` shape (`assertGenerationId`)
108
109
  * before any derivation, and the label families stay disjoint for any
109
- * segment regardless (an account-rung label carries exactly one slash).
110
+ * generation id regardless (an account-rung label carries exactly one
111
+ * slash).
110
112
  *
111
113
  * @param options {object}
112
114
  * @param options.ladderSeed {Uint8Array}
113
- * @param options.segment {string} the generation collection's name
115
+ * @param options.generationId {string} the generation collection's name
114
116
  * @returns {Uint8Array}
115
117
  */
116
- export declare function companionRungSeed({ ladderSeed, segment }: {
118
+ export declare function companionRungSeed({ ladderSeed, generationId }: {
117
119
  ladderSeed: Uint8Array;
118
- segment: string;
120
+ generationId: string;
119
121
  }): Uint8Array;
120
122
  /**
121
123
  * Derives a companion generation's rung 0 in full: seed and public multibase.
@@ -125,12 +127,12 @@ export declare function companionRungSeed({ ladderSeed, segment }: {
125
127
  *
126
128
  * @param options {object}
127
129
  * @param options.ladderSeed {Uint8Array}
128
- * @param options.segment {string} the generation collection's name
130
+ * @param options.generationId {string} the generation collection's name
129
131
  * @returns {Promise<{ seed: Uint8Array, keyMultibase: string }>}
130
132
  */
131
- export declare function companionRung({ ladderSeed, segment }: {
133
+ export declare function companionRung({ ladderSeed, generationId }: {
132
134
  ladderSeed: Uint8Array;
133
- segment: string;
135
+ generationId: string;
134
136
  }): Promise<{
135
137
  seed: Uint8Array;
136
138
  keyMultibase: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ladder.d.ts","sourceRoot":"","sources":["../../src/unlock/ladder.ts"],"names":[],"mappings":"AAiCA;;;GAGG;AACH,eAAO,MAAM,iBAAiB,KAAK,CAAA;AA8BnC;;;;;GAKG;AACH,eAAO,MAAM,eAAe,MAAM,CAAA;AAElC;;;;;;GAMG;AACH,qBAAa,sBAAuB,SAAQ,KAAK;gBACnC,OAAO,EAAE,MAAM;CAI5B;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,IAAI,UAAU,CAE/C;AA6BD;;;GAGG;AACH,MAAM,WA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EACX,EAAE;IACD,UAAU,EAAE,UAAU,CAAA;CACvB,GAAG,UAAU,CAEb;AAED;;;;;;;GAOG;AACH,wBAAsB,oBAAoB,CAAC,EACzC,UAAU,EACX,EAAE;IACD,UAAU,EAAE,UAAU,CAAA;CACvB,GAAG,OAAO,CAAC,MAAM,CAAC,CAElB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,UAAU,EACV,YAAY,EACb,EAAE;IACD,UAAU,EAAE,UAAU,CAAA;IACtB,YAAY,EAAE,MAAM,CAAA;CACrB,GAAG,UAAU,CAKb;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,aAAa,CAAC,EAClC,UAAU,EACV,YAAY,EACb,EAAE;IACD,UAAU,EAAE,UAAU,CAAA;IACtB,YAAY,EAAE,MAAM,CAAA;CACrB,GAAG,OAAO,CAAC;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,CAAC,CAGtD;AAED;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,UAAU,CAAA;AAEtD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,mBAAmB,CAAC,EACxC,UAAU,EACV,SAAS,EACT,OAAyB,EAC1B,EAAE;IACD,UAAU,EAAE,UAAU,CAAA;IACtB,SAAS,EAAE;QAAE,UAAU,EAAE,MAAM,EAAE,CAAC;QAAC,aAAa,EAAE,MAAM,EAAE,CAAA;KAAE,CAAA;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,GAAG,OAAO,CAAC;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,eAAe,CAAA;CAAE,CAAC,CA+BxD"}
@@ -51,13 +51,15 @@ const LADDER_RUNG_INFO_PREFIX = 'rung/';
51
51
  const LADDER_VM_INFO = 'vm';
52
52
  /**
53
53
  * The info-label suffix of a companion rung: the label is
54
- * `<segment>/rung/<k>` where `<segment>` is the generation collection's name
54
+ * `<generationId>/rung/<k>` where `<generationId>` is the generation
55
+ * collection's name
55
56
  * (`gen-<random>`) and `k` is pinned at 0 -- the companion log's update
56
57
  * authority is each standing credential's STATIC rung 0 (chain length one,
57
58
  * never advanced), so only `/rung/0` is ever derived. The three families
58
59
  * under the one salt stay disjoint: `rung/<n>` labels carry exactly one
59
60
  * slash followed by a decimal index, `vm` carries none, and a companion
60
- * label always carries two slashes behind its `gen-` segment. Permanent.
61
+ * label always carries two slashes behind its `gen-` generation id.
62
+ * Permanent.
61
63
  */
62
64
  const COMPANION_RUNG_INFO_SUFFIX = '/rung/0';
63
65
  /**
@@ -168,27 +170,29 @@ export async function ladderVmKeyMultibase({ ladderSeed }) {
168
170
  /**
169
171
  * Derives the 32-byte update-key seed of a companion generation's rung 0 --
170
172
  * the credential's STATIC update key on that generation's companion log. The
171
- * sequence is domain-separated per generation by the collection segment
172
- * (`<segment>/rung/0` under the one {@link LADDER_SALT}): one shared sequence
173
+ * sequence is domain-separated per generation by the generation id
174
+ * (`<generationId>/rung/0` under the one {@link LADDER_SALT}): one shared
175
+ * sequence
173
176
  * would hand the storage host, a legitimate reader of the private companion,
174
177
  * a revealed key matching the ACCOUNT log's standing commitment, and a fresh
175
178
  * per-generation sequence is what makes GC replacement self-healing (no rung
176
179
  * index survives the deleted log, and none is needed).
177
180
  *
178
- * The segment is trusted here rather than re-validated -- the companion
179
- * ceremonies assert the `gen-<random>` shape (`assertGenerationSegment`)
181
+ * The generation id is trusted here rather than re-validated -- the companion
182
+ * ceremonies assert the `gen-<random>` shape (`assertGenerationId`)
180
183
  * before any derivation, and the label families stay disjoint for any
181
- * segment regardless (an account-rung label carries exactly one slash).
184
+ * generation id regardless (an account-rung label carries exactly one
185
+ * slash).
182
186
  *
183
187
  * @param options {object}
184
188
  * @param options.ladderSeed {Uint8Array}
185
- * @param options.segment {string} the generation collection's name
189
+ * @param options.generationId {string} the generation collection's name
186
190
  * @returns {Uint8Array}
187
191
  */
188
- export function companionRungSeed({ ladderSeed, segment }) {
192
+ export function companionRungSeed({ ladderSeed, generationId }) {
189
193
  return ladderDerive({
190
194
  ladderSeed,
191
- info: `${segment}${COMPANION_RUNG_INFO_SUFFIX}`
195
+ info: `${generationId}${COMPANION_RUNG_INFO_SUFFIX}`
192
196
  });
193
197
  }
194
198
  /**
@@ -199,11 +203,11 @@ export function companionRungSeed({ ladderSeed, segment }) {
199
203
  *
200
204
  * @param options {object}
201
205
  * @param options.ladderSeed {Uint8Array}
202
- * @param options.segment {string} the generation collection's name
206
+ * @param options.generationId {string} the generation collection's name
203
207
  * @returns {Promise<{ seed: Uint8Array, keyMultibase: string }>}
204
208
  */
205
- export async function companionRung({ ladderSeed, segment }) {
206
- const seed = companionRungSeed({ ladderSeed, segment });
209
+ export async function companionRung({ ladderSeed, generationId }) {
210
+ const seed = companionRungSeed({ ladderSeed, generationId });
207
211
  return { seed, keyMultibase: await updateKeyMultibase({ seed }) };
208
212
  }
209
213
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ladder.js","sourceRoot":"","sources":["../../src/unlock/ladder.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAEzD;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,EAAE,CAAA;AAEnC;;;;GAIG;AACH,MAAM,WAAW,GAAG,oCAAoC,CAAA;AACxD,MAAM,uBAAuB,GAAG,OAAO,CAAA;AAEvC;;;;;GAKG;AACH,MAAM,cAAc,GAAG,IAAI,CAAA;AAE3B;;;;;;;;;GASG;AACH,MAAM,0BAA0B,GAAG,SAAS,CAAA;AAE5C;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AuE;QACrE,wEAAwE,CAC3E,CAAA;AACH,CAAC"}
@@ -16,30 +16,30 @@ export declare const COMPANION_SPACE_TYPE: string[];
16
16
  /**
17
17
  * The literal prefix of every generation collection's name. Wire-level and
18
18
  * permanent: orphan discovery is a plain prefix match over the auxiliary
19
- * Space's collection listing, and the segment embeds in every companion DID
20
- * string ever published.
19
+ * Space's collection listing, and the generation id embeds in every companion
20
+ * DID string ever published.
21
21
  */
22
- export declare const GENERATION_SEGMENT_PREFIX = "gen-";
22
+ export declare const GENERATION_ID_PREFIX = "gen-";
23
23
  /**
24
- * Mints a fresh generation segment -- the generation collection's name, e.g.
24
+ * Mints a fresh generation id -- the generation collection's name, e.g.
25
25
  * `gen-Ux3v0kQf9aPmB2hZ`. Random rather than a counter on purpose: never-reuse
26
26
  * is structural (nothing durable survives GC to carry a counter), at the same
27
27
  * probabilistic order as every other random-id convention in the system.
28
28
  *
29
29
  * @returns {string}
30
30
  */
31
- export declare function mintGenerationSegment(): string;
31
+ export declare function mintGenerationId(): string;
32
32
  /**
33
- * Refuses anything that is not a well-formed generation segment. Run by every
34
- * companion builder that takes a segment, so a malformed one is refused
33
+ * Refuses anything that is not a well-formed generation id. Run by every
34
+ * companion builder that takes a generation id, so a malformed one is refused
35
35
  * before it can reach a DID string, an HKDF label, or a collection id.
36
36
  *
37
- * @param segment {string}
37
+ * @param generationId {string}
38
38
  */
39
- export declare function assertGenerationSegment(segment: string): void;
39
+ export declare function assertGenerationId(generationId: string): void;
40
40
  /**
41
41
  * The pin-slot key for one companion generation's log -- host-free like every
42
- * pin-slot key, keyed by the auxiliary Space id and the generation segment.
42
+ * pin-slot key, keyed by the auxiliary Space id and the generation id.
43
43
  * A transient session keeps this slot in an in-memory pin store (a durable
44
44
  * pin is the wrong lifetime for a disposable log, and a transient session
45
45
  * must not durably create the pin store on a read); a durable client's store
@@ -47,12 +47,12 @@ export declare function assertGenerationSegment(segment: string): void;
47
47
  *
48
48
  * @param options {object}
49
49
  * @param options.spaceId {string} the auxiliary companion Space's id
50
- * @param options.segment {string} the generation collection's name
50
+ * @param options.generationId {string} the generation collection's name
51
51
  * @returns {string}
52
52
  */
53
- export declare function companionLogPinId({ spaceId, segment }: {
53
+ export declare function companionLogPinId({ spaceId, generationId }: {
54
54
  spaceId: string;
55
- segment: string;
55
+ generationId: string;
56
56
  }): string;
57
57
  /**
58
58
  * The WAS-backed store a companion generation's ceremonies read and publish
@@ -64,13 +64,13 @@ export declare function companionLogPinId({ spaceId, segment }: {
64
64
  * @param options {object}
65
65
  * @param options.was {WasClient}
66
66
  * @param options.spaceId {string} the auxiliary companion Space's id
67
- * @param options.segment {string} the generation collection's name
67
+ * @param options.generationId {string} the generation collection's name
68
68
  * @returns {WebvhLogResourceStore}
69
69
  */
70
- export declare function companionLogStore({ was, spaceId, segment }: {
70
+ export declare function companionLogStore({ was, spaceId, generationId }: {
71
71
  was: WasClient;
72
72
  spaceId: string;
73
- segment: string;
73
+ generationId: string;
74
74
  }): WebvhLogResourceStore;
75
75
  /**
76
76
  * Creates the one-entry companion generation log. The genesis parameters are
@@ -92,7 +92,7 @@ export declare function companionLogStore({ was, spaceId, segment }: {
92
92
  * @param options {object}
93
93
  * @param options.wasServerUrl {string}
94
94
  * @param options.spaceId {string} the auxiliary companion Space's id
95
- * @param options.segment {string} the generation collection's name
95
+ * @param options.generationId {string} the generation collection's name
96
96
  * @param options.updateKeyPublicKeyMultibase {string} the minting
97
97
  * credential's companion rung-0 key
98
98
  * @param options.nextKeyHashes {string[]} every standing credential's
@@ -100,10 +100,10 @@ export declare function companionLogStore({ was, spaceId, segment }: {
100
100
  * @param options.signer {Signer} the minting credential's rung-0 signer
101
101
  * @returns {Promise<{ log: DIDLog; did: string; doc: DIDDoc }>}
102
102
  */
103
- export declare function createCompanionLog({ wasServerUrl, spaceId, segment, updateKeyPublicKeyMultibase, nextKeyHashes, signer }: {
103
+ export declare function createCompanionLog({ wasServerUrl, spaceId, generationId, updateKeyPublicKeyMultibase, nextKeyHashes, signer }: {
104
104
  wasServerUrl: string;
105
105
  spaceId: string;
106
- segment: string;
106
+ generationId: string;
107
107
  updateKeyPublicKeyMultibase: string;
108
108
  nextKeyHashes: string[];
109
109
  signer: Signer;
@@ -143,10 +143,11 @@ export declare function ensureCompanionSpace({ was, spaceId, controller }: {
143
143
  }): Promise<void>;
144
144
  /**
145
145
  * Mints a fresh companion generation with controller-tier signing: ensures
146
- * the typed auxiliary Space, mints a fresh random segment, creates the
146
+ * the typed auxiliary Space, mints a fresh random generation id, creates the
147
147
  * generation collection, and publishes the genesis `did.jsonl` as a
148
148
  * create-if-absent -- the same conditional-publish discipline as every log
149
- * write, though a fresh random segment makes a create collision negligible.
149
+ * write, though a fresh random generation id makes a create collision
150
+ * negligible.
150
151
  *
151
152
  * The account document's `#DelegatedClients` service entry is deliberately
152
153
  * NOT written here: the companion log publishes first, and the caller
@@ -172,7 +173,7 @@ export declare function ensureCompanionSpace({ was, spaceId, controller }: {
172
173
  * @param options.nextKeyHashes {string[]} every standing credential's
173
174
  * rung-0 hash, the minting credential's included
174
175
  * @param options.signer {Signer} the minting credential's rung-0 signer
175
- * @returns {Promise<{ did: string; segment: string; log: DIDLog;
176
+ * @returns {Promise<{ did: string; generationId: string; log: DIDLog;
176
177
  * doc: DIDDoc }>}
177
178
  */
178
179
  export declare function mintCompanionGeneration({ was, wasServerUrl, spaceId, controller, updateKeyPublicKeyMultibase, nextKeyHashes, signer }: {
@@ -185,7 +186,49 @@ export declare function mintCompanionGeneration({ was, wasServerUrl, spaceId, co
185
186
  signer: Signer;
186
187
  }): Promise<{
187
188
  did: string;
188
- segment: string;
189
+ generationId: string;
190
+ log: DIDLog;
191
+ doc: DIDDoc;
192
+ }>;
193
+ /**
194
+ * Mints a fresh companion generation signed by a standing CREDENTIAL's
195
+ * companion rung 0 -- the mint a ladder-seed holder runs (a credential-in-hand
196
+ * login, or a test harness standing in for one). The generation id must exist
197
+ * before the update authority can: the rung-0 key derives from the ladder
198
+ * seed AND the generation id (`companionRung`), so this helper mints the
199
+ * generation id
200
+ * first, derives the rung, and states its own carry-over hash in
201
+ * `nextKeyHashes` -- {@link mintCompanionGeneration}'s caller-supplied-key
202
+ * shape cannot express that ordering. Everything else matches it: the typed
203
+ * Space ensure, the collection create, the create-if-absent genesis publish,
204
+ * and the pointer deliberately left to the caller.
205
+ *
206
+ * @param options {object}
207
+ * @param options.was {WasClient} the storage client, signing as an enrolled
208
+ * client (or the bootstrap controller on a client-less signup)
209
+ * @param options.wasServerUrl {string}
210
+ * @param options.spaceId {string} the auxiliary companion Space's id
211
+ * @param options.controller {string} the auxiliary Space's controller, used
212
+ * only when the Space does not exist yet
213
+ * @param options.ladderSeed {Uint8Array} the minting credential's ladder
214
+ * seed, from its unlock record
215
+ * @param [options.extraNextKeyHashes] {string[]} the OTHER standing
216
+ * credentials' rung-0 hashes for this generation id, when the account has
217
+ * more
218
+ * than one; the minting credential's own carry-over hash is always included
219
+ * @returns {Promise<{ did: string; generationId: string; log: DIDLog;
220
+ * doc: DIDDoc }>}
221
+ */
222
+ export declare function mintCredentialCompanionGeneration({ was, wasServerUrl, spaceId, controller, ladderSeed, extraNextKeyHashes }: {
223
+ was: WasClient;
224
+ wasServerUrl: string;
225
+ spaceId: string;
226
+ controller: string;
227
+ ladderSeed: Uint8Array;
228
+ extraNextKeyHashes?: string[];
229
+ }): Promise<{
230
+ did: string;
231
+ generationId: string;
189
232
  log: DIDLog;
190
233
  doc: DIDDoc;
191
234
  }>;
@@ -252,7 +295,8 @@ export declare const DELEGATED_CLIENTS_DELEGATION_TTL_MS: number;
252
295
  * - `invocationTarget` is the AUXILIARY companion Space's items subtree --
253
296
  * the Space URL with a trailing slash, built with was-client's paths
254
297
  * helpers so the bytes match the server's target check on a sub-path
255
- * deployment. Generation coverage comes from segment-bounded attenuation
298
+ * deployment. Generation coverage comes from generation-id-bounded
299
+ * attenuation
256
300
  * over the flat `gen-` collection names, so no GC cycle rewrites the
257
301
  * record or the registry.
258
302
  * - `controller` is the credential-derived signing DID (the same grantee
@@ -416,22 +460,23 @@ export declare function embeddedGenerationDelegation({ doc }: {
416
460
  doc: DIDDoc;
417
461
  }): IZcap | undefined;
418
462
  /**
419
- * Parses the auxiliary Space id and generation segment out of a companion DID
463
+ * Parses the auxiliary Space id and generation id out of a companion DID
420
464
  * string. Both are permanent substrings of every companion DID by
421
- * construction (`did:webvh:<scid>:<host>:...:space:<spaceId>:<segment>`), and
422
- * the segment is the generation-identifying half of the companion rung HKDF
465
+ * construction: the generation id is the final path segment of the companion
466
+ * DID (`did:webvh:<scid>:<host>:...:space:<spaceId>:<generationId>`), and it
467
+ * is the generation-identifying half of the companion rung HKDF
423
468
  * labels, so this parse is what lets an enrollee derive its writing key from
424
469
  * the pointer alone -- no log read, no registry.
425
470
  *
426
471
  * @param options {object}
427
472
  * @param options.did {string} a companion did:webvh string
428
- * @returns {{ spaceId: string, segment: string }}
473
+ * @returns {{ spaceId: string, generationId: string }}
429
474
  */
430
475
  export declare function companionDidParts({ did }: {
431
476
  did: string;
432
477
  }): {
433
478
  spaceId: string;
434
- segment: string;
479
+ generationId: string;
435
480
  };
436
481
  /**
437
482
  * Thrown when the published companion log commits neither the writing
@@ -457,7 +502,8 @@ export type CompanionWriteStore = Pick<WebvhIdStore, 'getIdResourceRaw' | 'putId
457
502
  /**
458
503
  * TRANSIENT ENROLLMENT: publishes one per-visit verification method into a
459
504
  * companion generation's log -- one atomic entry, signed by the writing
460
- * credential's static rung 0 (derived from the ladder seed and the segment;
505
+ * credential's static rung 0 (derived from the ladder seed and the generation
506
+ * id;
461
507
  * see `companionRung`). The entry:
462
508
  *
463
509
  * - reveals the writer's rung-0 key into `updateKeys` at its first companion
@@ -488,7 +534,7 @@ export type CompanionWriteStore = Pick<WebvhIdStore, 'getIdResourceRaw' | 'putId
488
534
  * controller-tier)
489
535
  * @param options.ladderSeed {Uint8Array} the credential's ladder seed, from
490
536
  * its unlock record
491
- * @param options.segment {string} the generation collection's name
537
+ * @param options.generationId {string} the generation collection's name
492
538
  * @param options.transientKeyMultibase {string} the visit's in-memory
493
539
  * Ed25519 signing key, public multibase
494
540
  * @param [options.services] {ServiceEndpoint[]} the companion document's
@@ -515,7 +561,7 @@ export type CompanionWriteStore = Pick<WebvhIdStore, 'getIdResourceRaw' | 'putId
515
561
  export declare function enrollCompanionTransientClient(options: {
516
562
  store: CompanionWriteStore;
517
563
  ladderSeed: Uint8Array;
518
- segment: string;
564
+ generationId: string;
519
565
  transientKeyMultibase: string;
520
566
  services?: ServiceEndpoint[];
521
567
  mintGenerationDelegation?: (options: {
@@ -584,8 +630,9 @@ export declare function setDelegatedClientsPointer(options: {
584
630
  * @param options.readAccountDocument {Function} reads the VERIFIED account
585
631
  * document (the caller's `verifyAccountLog` read, pins and `expectedDid`
586
632
  * applied there); called once per round
587
- * @param options.storeForSegment {Function} builds the generation's log
588
- * store for a segment (the delegated store over the credential's sibling
633
+ * @param options.storeForGenerationId {Function} builds the generation's log
634
+ * store for a generation id (the delegated store over the credential's
635
+ * sibling
589
636
  * delegation, or a controller-tier store)
590
637
  * @param options.ladderSeed {Uint8Array} the credential's ladder seed
591
638
  * @param options.transientKeyMultibase {string} the visit's in-memory
@@ -605,9 +652,9 @@ export declare function setDelegatedClientsPointer(options: {
605
652
  * move means something else is wrong)
606
653
  * @returns {Promise<{ companionDid: string, doc: DIDDoc, log: DIDLog }>}
607
654
  */
608
- export declare function enrollTransientClient({ readAccountDocument, storeForSegment, ladderSeed, transientKeyMultibase, mintGenerationDelegation: mintDelegation, pinStore, maxRounds }: {
655
+ export declare function enrollTransientClient({ readAccountDocument, storeForGenerationId, ladderSeed, transientKeyMultibase, mintGenerationDelegation: mintDelegation, pinStore, maxRounds }: {
609
656
  readAccountDocument: () => Promise<DIDDoc>;
610
- storeForSegment: (segment: string) => CompanionWriteStore;
657
+ storeForGenerationId: (generationId: string) => CompanionWriteStore;
611
658
  ladderSeed: Uint8Array;
612
659
  transientKeyMultibase: string;
613
660
  mintGenerationDelegation?: (options: {
@@ -650,7 +697,7 @@ export declare function enrollTransientClient({ readAccountDocument, storeForSeg
650
697
  * controller-tier)
651
698
  * @param options.ladderSeed {Uint8Array} the credential's ladder seed, from
652
699
  * its unlock record
653
- * @param options.segment {string} the generation collection's name
700
+ * @param options.generationId {string} the generation collection's name
654
701
  * @param options.mintGenerationDelegation {Function}
655
702
  * `({ companionDid }) => Promise<IZcap>` -- mints the replacement
656
703
  * delegation (ladder-signed in a transient session)
@@ -666,7 +713,7 @@ export declare function enrollTransientClient({ readAccountDocument, storeForSeg
666
713
  export declare function ensureGenerationDelegationCurrent(options: {
667
714
  store: CompanionWriteStore;
668
715
  ladderSeed: Uint8Array;
669
- segment: string;
716
+ generationId: string;
670
717
  mintGenerationDelegation: (options: {
671
718
  companionDid: string;
672
719
  }) => Promise<IZcap>;