@interop/wallet-core 0.94.0 → 0.95.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.
- package/README.md +21 -20
- package/dist/clientAnnex/mend.js +4 -1
- package/dist/clientAnnex/mend.js.map +1 -1
- package/dist/clients/index.d.ts +3 -2
- package/dist/clients/index.d.ts.map +1 -1
- package/dist/clients/index.js +3 -2
- package/dist/clients/index.js.map +1 -1
- package/dist/clients/listing.d.ts +19 -12
- package/dist/clients/listing.d.ts.map +1 -1
- package/dist/clients/listing.js +69 -22
- package/dist/clients/listing.js.map +1 -1
- package/dist/connections/didKey.d.ts +25 -0
- package/dist/connections/didKey.d.ts.map +1 -0
- package/dist/connections/didKey.js +49 -0
- package/dist/connections/didKey.js.map +1 -0
- package/dist/connections/entry.d.ts +226 -0
- package/dist/connections/entry.d.ts.map +1 -0
- package/dist/connections/entry.js +287 -0
- package/dist/connections/entry.js.map +1 -0
- package/dist/connections/errors.d.ts +33 -0
- package/dist/connections/errors.d.ts.map +1 -0
- package/dist/connections/errors.js +36 -0
- package/dist/connections/errors.js.map +1 -0
- package/dist/connections/grants.d.ts +94 -0
- package/dist/connections/grants.d.ts.map +1 -0
- package/dist/connections/grants.js +120 -0
- package/dist/connections/grants.js.map +1 -0
- package/dist/connections/index.d.ts +47 -0
- package/dist/connections/index.d.ts.map +1 -0
- package/dist/connections/index.js +40 -0
- package/dist/connections/index.js.map +1 -0
- package/dist/connections/read.d.ts +82 -0
- package/dist/connections/read.d.ts.map +1 -0
- package/dist/connections/read.js +100 -0
- package/dist/connections/read.js.map +1 -0
- package/dist/connections/resourceId.d.ts +36 -0
- package/dist/connections/resourceId.d.ts.map +1 -0
- package/dist/connections/resourceId.js +49 -0
- package/dist/connections/resourceId.js.map +1 -0
- package/dist/connections/store.d.ts +103 -0
- package/dist/connections/store.d.ts.map +1 -0
- package/dist/connections/store.js +67 -0
- package/dist/connections/store.js.map +1 -0
- package/dist/connections/upsert.d.ts +214 -0
- package/dist/connections/upsert.d.ts.map +1 -0
- package/dist/connections/upsert.js +468 -0
- package/dist/connections/upsert.js.map +1 -0
- package/dist/connections/writers.d.ts +217 -0
- package/dist/connections/writers.d.ts.map +1 -0
- package/dist/connections/writers.js +485 -0
- package/dist/connections/writers.js.map +1 -0
- package/dist/enrollment/onboardingResponse.d.ts +3 -3
- package/dist/enrollment/onboardingResponse.d.ts.map +1 -1
- package/dist/enrollment/onboardingResponse.js +17 -13
- package/dist/enrollment/onboardingResponse.js.map +1 -1
- package/dist/keys/index.d.ts +0 -7
- package/dist/keys/index.d.ts.map +1 -1
- package/dist/keys/index.js +0 -6
- package/dist/keys/index.js.map +1 -1
- package/dist/labelText.d.ts +30 -3
- package/dist/labelText.d.ts.map +1 -1
- package/dist/labelText.js +35 -3
- package/dist/labelText.js.map +1 -1
- package/dist/menders/ids.d.ts +1 -1
- package/dist/menders/ids.d.ts.map +1 -1
- package/dist/menders/ids.js +7 -2
- package/dist/menders/ids.js.map +1 -1
- package/dist/space/collections.d.ts +15 -25
- package/dist/space/collections.d.ts.map +1 -1
- package/dist/space/collections.js +19 -29
- package/dist/space/collections.js.map +1 -1
- package/dist/space/index.d.ts +4 -3
- package/dist/space/index.d.ts.map +1 -1
- package/dist/space/index.js +4 -3
- package/dist/space/index.js.map +1 -1
- package/package.json +8 -8
- package/dist/keys/clientLabels.d.ts +0 -85
- package/dist/keys/clientLabels.d.ts.map +0 -1
- package/dist/keys/clientLabels.js +0 -96
- package/dist/keys/clientLabels.js.map +0 -1
- package/dist/keys/wasLabelsStore.d.ts +0 -33
- package/dist/keys/wasLabelsStore.d.ts.map +0 -1
- package/dist/keys/wasLabelsStore.js +0 -35
- package/dist/keys/wasLabelsStore.js.map +0 -1
- package/dist/writers/entry.d.ts +0 -95
- package/dist/writers/entry.d.ts.map +0 -1
- package/dist/writers/entry.js +0 -90
- package/dist/writers/entry.js.map +0 -1
- package/dist/writers/index.d.ts +0 -17
- package/dist/writers/index.d.ts.map +0 -1
- package/dist/writers/index.js +0 -14
- package/dist/writers/index.js.map +0 -1
- package/dist/writers/roster.d.ts +0 -152
- package/dist/writers/roster.d.ts.map +0 -1
- package/dist/writers/roster.js +0 -365
- package/dist/writers/roster.js.map +0 -1
- package/dist/writers/store.d.ts +0 -71
- package/dist/writers/store.d.ts.map +0 -1
- package/dist/writers/store.js +0 -55
- package/dist/writers/store.js.map +0 -1
package/dist/labelText.d.ts
CHANGED
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* The character set and length every attacker-adjacent display string is
|
|
6
|
-
* held to: the onboarding response's suggested label,
|
|
7
|
-
* identifier the ceremony event helpers carry. An
|
|
8
|
-
* layer that must not load the enrollment ceremony can
|
|
6
|
+
* held to: the onboarding response's suggested label, a directory entry's
|
|
7
|
+
* `name`, and a server-served identifier the ceremony event helpers carry. An
|
|
8
|
+
* import-free leaf, so a layer that must not load the enrollment ceremony can
|
|
9
|
+
* still take it.
|
|
9
10
|
*/
|
|
10
11
|
/**
|
|
11
12
|
* The longest suggested display label an onboarding response may carry, in
|
|
@@ -21,4 +22,30 @@ export declare const ONBOARDING_LABEL_MAX_LENGTH = 64;
|
|
|
21
22
|
* reorder or hide what a consent screen or a log line shows.
|
|
22
23
|
*/
|
|
23
24
|
export declare const LABEL_STRIPPED_CHARACTERS: RegExp;
|
|
25
|
+
/**
|
|
26
|
+
* A display string with the {@link LABEL_STRIPPED_CHARACTERS} removed and the
|
|
27
|
+
* surrounding whitespace trimmed: the text a display name is measured by.
|
|
28
|
+
*
|
|
29
|
+
* @param options {object}
|
|
30
|
+
* @param options.value {string}
|
|
31
|
+
* @returns {string}
|
|
32
|
+
*/
|
|
33
|
+
export declare function strippedDisplayText({ value }: {
|
|
34
|
+
value: string;
|
|
35
|
+
}): string;
|
|
36
|
+
/**
|
|
37
|
+
* The one display-name rule every producer and reader shares: the stripped
|
|
38
|
+
* text (see {@link strippedDisplayText}) when it holds at least one and at
|
|
39
|
+
* most {@link ONBOARDING_LABEL_MAX_LENGTH} code points, else `undefined`. The
|
|
40
|
+
* onboarding response's suggested label, the directory entry's `name` member,
|
|
41
|
+
* and every write of that member all run through it, so no producer can
|
|
42
|
+
* write a name a reader refuses.
|
|
43
|
+
*
|
|
44
|
+
* @param options {object}
|
|
45
|
+
* @param options.value {string}
|
|
46
|
+
* @returns {string | undefined}
|
|
47
|
+
*/
|
|
48
|
+
export declare function normalizeDisplayName({ value }: {
|
|
49
|
+
value: string;
|
|
50
|
+
}): string | undefined;
|
|
24
51
|
//# sourceMappingURL=labelText.d.ts.map
|
package/dist/labelText.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"labelText.d.ts","sourceRoot":"","sources":["../src/labelText.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH
|
|
1
|
+
{"version":3,"file":"labelText.d.ts","sourceRoot":"","sources":["../src/labelText.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;GAMG;AAEH;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,KAAK,CAAA;AAE7C;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,QAEkC,CAAA;AAExE;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAExE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACN,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;CACd,GAAG,MAAM,GAAG,SAAS,CAOrB"}
|
package/dist/labelText.js
CHANGED
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* The character set and length every attacker-adjacent display string is
|
|
6
|
-
* held to: the onboarding response's suggested label,
|
|
7
|
-
* identifier the ceremony event helpers carry. An
|
|
8
|
-
* layer that must not load the enrollment ceremony can
|
|
6
|
+
* held to: the onboarding response's suggested label, a directory entry's
|
|
7
|
+
* `name`, and a server-served identifier the ceremony event helpers carry. An
|
|
8
|
+
* import-free leaf, so a layer that must not load the enrollment ceremony can
|
|
9
|
+
* still take it.
|
|
9
10
|
*/
|
|
10
11
|
/**
|
|
11
12
|
* The longest suggested display label an onboarding response may carry, in
|
|
@@ -23,4 +24,35 @@ export const ONBOARDING_LABEL_MAX_LENGTH = 64;
|
|
|
23
24
|
export const LABEL_STRIPPED_CHARACTERS =
|
|
24
25
|
// eslint-disable-next-line no-control-regex
|
|
25
26
|
/[\u0000-\u001f\u007f-\u009f\u200e\u200f\u202a-\u202e\u2066-\u2069]/gu;
|
|
27
|
+
/**
|
|
28
|
+
* A display string with the {@link LABEL_STRIPPED_CHARACTERS} removed and the
|
|
29
|
+
* surrounding whitespace trimmed: the text a display name is measured by.
|
|
30
|
+
*
|
|
31
|
+
* @param options {object}
|
|
32
|
+
* @param options.value {string}
|
|
33
|
+
* @returns {string}
|
|
34
|
+
*/
|
|
35
|
+
export function strippedDisplayText({ value }) {
|
|
36
|
+
return value.replace(LABEL_STRIPPED_CHARACTERS, '').trim();
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* The one display-name rule every producer and reader shares: the stripped
|
|
40
|
+
* text (see {@link strippedDisplayText}) when it holds at least one and at
|
|
41
|
+
* most {@link ONBOARDING_LABEL_MAX_LENGTH} code points, else `undefined`. The
|
|
42
|
+
* onboarding response's suggested label, the directory entry's `name` member,
|
|
43
|
+
* and every write of that member all run through it, so no producer can
|
|
44
|
+
* write a name a reader refuses.
|
|
45
|
+
*
|
|
46
|
+
* @param options {object}
|
|
47
|
+
* @param options.value {string}
|
|
48
|
+
* @returns {string | undefined}
|
|
49
|
+
*/
|
|
50
|
+
export function normalizeDisplayName({ value }) {
|
|
51
|
+
const stripped = strippedDisplayText({ value });
|
|
52
|
+
const length = [...stripped].length;
|
|
53
|
+
if (length === 0 || length > ONBOARDING_LABEL_MAX_LENGTH) {
|
|
54
|
+
return undefined;
|
|
55
|
+
}
|
|
56
|
+
return stripped;
|
|
57
|
+
}
|
|
26
58
|
//# sourceMappingURL=labelText.js.map
|
package/dist/labelText.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"labelText.js","sourceRoot":"","sources":["../src/labelText.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH
|
|
1
|
+
{"version":3,"file":"labelText.js","sourceRoot":"","sources":["../src/labelText.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;GAMG;AAEH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,EAAE,CAAA;AAE7C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,yBAAyB;AACpC,4CAA4C;AAC5C,sEAAsE,CAAA;AAExE;;;;;;;GAOG;AACH,MAAM,UAAU,mBAAmB,CAAC,EAAE,KAAK,EAAqB;IAC9D,OAAO,KAAK,CAAC,OAAO,CAAC,yBAAyB,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAA;AAC5D,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,oBAAoB,CAAC,EACnC,KAAK,EAGN;IACC,MAAM,QAAQ,GAAG,mBAAmB,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;IAC/C,MAAM,MAAM,GAAG,CAAC,GAAG,QAAQ,CAAC,CAAC,MAAM,CAAA;IACnC,IAAI,MAAM,KAAK,CAAC,IAAI,MAAM,GAAG,2BAA2B,EAAE,CAAC;QACzD,OAAO,SAAS,CAAA;IAClB,CAAC;IACD,OAAO,QAAQ,CAAA;AACjB,CAAC"}
|
package/dist/menders/ids.d.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
/**
|
|
16
16
|
* Every invariant id, in design-table order.
|
|
17
17
|
*/
|
|
18
|
-
export declare const INVARIANT_IDS: readonly ["roster-wraps-exactly-the-document-key-set", "governed-log-heads-anchor-past-the-membership-change", "collection-epochs-name-the-current-user-key", "unlock-registry-opens-under-the-current-user-key", "registry-passphrase-entry-names-the-standing-credential", "passkey-entry-carries-its-standing-configuration", "registry-lists-the-passphrase-method", "standing-delegations-verify-under-the-current-document", "registry-records-the-committed-ladder-rung", "unlock-record-points-at-the-account-did", "account-pointer-names-the-account-did", "space-controller-is-the-account-did", "roster-and-collection-epochs-exist", "registry-records-the-establishing-credential", "annex-generation-is-reachable", "generation-delegation-is-current", "acting-credential-manage-zcap-is-current", "did-web-projection-matches-the-log", "no-annex-generation-outlives-its-pointer", "app-keys-live-only-in-app-connections", "client-key-record-matches-the-pointed-account", "this-browser-is-still-an-enrolled-client", "no-client-key-record-stays-pending", "recovery-spend-is-completed", "retired-credential-leaves-no-annex-inventory", "document-lists-the-acting-credential", "keystore-controller-is-the-account-did", "account-document-publishes-an-authentication-key", "every-document-key-agreement-entry-has-a-locatable-credential", "no-unlock-space-outlives-its-credential", "no-keystore-outlives-its-account", "saved-recovery-codes-locate-their-account", "standard-collections-are-provisioned", "no-auxiliary-space-stands-unnamed", "no-registered-writer-outlives-its-expiry"];
|
|
18
|
+
export declare const INVARIANT_IDS: readonly ["roster-wraps-exactly-the-document-key-set", "governed-log-heads-anchor-past-the-membership-change", "collection-epochs-name-the-current-user-key", "unlock-registry-opens-under-the-current-user-key", "registry-passphrase-entry-names-the-standing-credential", "passkey-entry-carries-its-standing-configuration", "registry-lists-the-passphrase-method", "standing-delegations-verify-under-the-current-document", "registry-records-the-committed-ladder-rung", "unlock-record-points-at-the-account-did", "account-pointer-names-the-account-did", "space-controller-is-the-account-did", "roster-and-collection-epochs-exist", "registry-records-the-establishing-credential", "annex-generation-is-reachable", "generation-delegation-is-current", "acting-credential-manage-zcap-is-current", "did-web-projection-matches-the-log", "no-annex-generation-outlives-its-pointer", "app-keys-live-only-in-app-connections", "client-key-record-matches-the-pointed-account", "this-browser-is-still-an-enrolled-client", "no-client-key-record-stays-pending", "recovery-spend-is-completed", "retired-credential-leaves-no-annex-inventory", "document-lists-the-acting-credential", "keystore-controller-is-the-account-did", "account-document-publishes-an-authentication-key", "every-document-key-agreement-entry-has-a-locatable-credential", "no-unlock-space-outlives-its-credential", "no-keystore-outlives-its-account", "saved-recovery-codes-locate-their-account", "standard-collections-are-provisioned", "no-auxiliary-space-stands-unnamed", "no-registered-writer-outlives-its-expiry", "every-party-with-authority-has-a-connection-entry"];
|
|
19
19
|
/**
|
|
20
20
|
* One id from {@link INVARIANT_IDS}.
|
|
21
21
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids.d.ts","sourceRoot":"","sources":["../../src/menders/ids.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;GAUG;AAEH;;GAEG;AACH,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"ids.d.ts","sourceRoot":"","sources":["../../src/menders/ids.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;GAUG;AAEH;;GAEG;AACH,eAAO,MAAM,aAAa,klDA4EhB,CAAA;AAEV;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAA"}
|
package/dist/menders/ids.js
CHANGED
|
@@ -84,7 +84,12 @@ export const INVARIANT_IDS = [
|
|
|
84
84
|
'standard-collections-are-provisioned',
|
|
85
85
|
// 34
|
|
86
86
|
'no-auxiliary-space-stands-unnamed',
|
|
87
|
-
// 35
|
|
88
|
-
|
|
87
|
+
// 35: no `writers` member of any `connections` entry stays `active` past
|
|
88
|
+
// the inactivity window, and no entry holds more than the writer cap once
|
|
89
|
+
// a sweep has run over it. The id predates the directory and stays.
|
|
90
|
+
'no-registered-writer-outlives-its-expiry',
|
|
91
|
+
// 36: every party holding a live grant, or listed in an unprotected
|
|
92
|
+
// collection's current epoch, has an unretired `connections` entry.
|
|
93
|
+
'every-party-with-authority-has-a-connection-entry'
|
|
89
94
|
];
|
|
90
95
|
//# sourceMappingURL=ids.js.map
|
package/dist/menders/ids.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ids.js","sourceRoot":"","sources":["../../src/menders/ids.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;GAUG;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,IAAI;IACJ,2CAA2C;IAC3C,IAAI;IACJ,sDAAsD;IACtD,IAAI;IACJ,6CAA6C;IAC7C,IAAI;IACJ,kDAAkD;IAClD,IAAI;IACJ,yDAAyD;IACzD,IAAI;IACJ,kDAAkD;IAClD,IAAI;IACJ,sCAAsC;IACtC,IAAI;IACJ,wDAAwD;IACxD,IAAI;IACJ,4CAA4C;IAC5C,KAAK;IACL,yCAAyC;IACzC,KAAK;IACL,uCAAuC;IACvC,KAAK;IACL,qCAAqC;IACrC,KAAK;IACL,oCAAoC;IACpC,KAAK;IACL,8CAA8C;IAC9C,KAAK;IACL,+BAA+B;IAC/B,KAAK;IACL,kCAAkC;IAClC,KAAK;IACL,0CAA0C;IAC1C,KAAK;IACL,oCAAoC;IACpC,KAAK;IACL,0CAA0C;IAC1C,KAAK;IACL,uCAAuC;IACvC,KAAK;IACL,+CAA+C;IAC/C,KAAK;IACL,0CAA0C;IAC1C,KAAK;IACL,oCAAoC;IACpC,KAAK;IACL,6BAA6B;IAC7B,KAAK;IACL,8CAA8C;IAC9C,KAAK;IACL,sCAAsC;IACtC,KAAK;IACL,wCAAwC;IACxC,KAAK;IACL,kDAAkD;IAClD,KAAK;IACL,+DAA+D;IAC/D,KAAK;IACL,yCAAyC;IACzC,KAAK;IACL,kCAAkC;IAClC,KAAK;IACL,2CAA2C;IAC3C,KAAK;IACL,sCAAsC;IACtC,KAAK;IACL,mCAAmC;IACnC,
|
|
1
|
+
{"version":3,"file":"ids.js","sourceRoot":"","sources":["../../src/menders/ids.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;GAUG;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,IAAI;IACJ,2CAA2C;IAC3C,IAAI;IACJ,sDAAsD;IACtD,IAAI;IACJ,6CAA6C;IAC7C,IAAI;IACJ,kDAAkD;IAClD,IAAI;IACJ,yDAAyD;IACzD,IAAI;IACJ,kDAAkD;IAClD,IAAI;IACJ,sCAAsC;IACtC,IAAI;IACJ,wDAAwD;IACxD,IAAI;IACJ,4CAA4C;IAC5C,KAAK;IACL,yCAAyC;IACzC,KAAK;IACL,uCAAuC;IACvC,KAAK;IACL,qCAAqC;IACrC,KAAK;IACL,oCAAoC;IACpC,KAAK;IACL,8CAA8C;IAC9C,KAAK;IACL,+BAA+B;IAC/B,KAAK;IACL,kCAAkC;IAClC,KAAK;IACL,0CAA0C;IAC1C,KAAK;IACL,oCAAoC;IACpC,KAAK;IACL,0CAA0C;IAC1C,KAAK;IACL,uCAAuC;IACvC,KAAK;IACL,+CAA+C;IAC/C,KAAK;IACL,0CAA0C;IAC1C,KAAK;IACL,oCAAoC;IACpC,KAAK;IACL,6BAA6B;IAC7B,KAAK;IACL,8CAA8C;IAC9C,KAAK;IACL,sCAAsC;IACtC,KAAK;IACL,wCAAwC;IACxC,KAAK;IACL,kDAAkD;IAClD,KAAK;IACL,+DAA+D;IAC/D,KAAK;IACL,yCAAyC;IACzC,KAAK;IACL,kCAAkC;IAClC,KAAK;IACL,2CAA2C;IAC3C,KAAK;IACL,sCAAsC;IACtC,KAAK;IACL,mCAAmC;IACnC,yEAAyE;IACzE,0EAA0E;IAC1E,oEAAoE;IACpE,0CAA0C;IAC1C,oEAAoE;IACpE,oEAAoE;IACpE,mDAAmD;CAC3C,CAAA"}
|
|
@@ -22,10 +22,10 @@ export declare const WALLET_ACTIVITY_COLLECTION = "wallet-activity";
|
|
|
22
22
|
*/
|
|
23
23
|
export declare const APP_CONNECTIONS_COLLECTION = "app-connections";
|
|
24
24
|
/**
|
|
25
|
-
* The EDV-encrypted
|
|
26
|
-
*
|
|
25
|
+
* The EDV-encrypted `connections` directory: one entry per party the wallet
|
|
26
|
+
* has dealt with (an app, an agent, a wallet client, a contact).
|
|
27
27
|
*/
|
|
28
|
-
export declare const
|
|
28
|
+
export declare const CONNECTIONS_COLLECTION = "connections";
|
|
29
29
|
/**
|
|
30
30
|
* What provisioning a wallet Space collection needs: the collection id, the
|
|
31
31
|
* friendly display name both wallets pass as the server-side collection name,
|
|
@@ -125,16 +125,16 @@ export declare const CONTACTS_HISTORY_SPACE_COLLECTION_SPEC: SpaceCollectionSpec
|
|
|
125
125
|
*/
|
|
126
126
|
export declare const APP_CONNECTIONS_COLLECTION_SPEC: SpaceCollectionSpec;
|
|
127
127
|
/**
|
|
128
|
-
* The
|
|
129
|
-
* resource id
|
|
130
|
-
* (`
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
128
|
+
* The `connections` directory: one mutable EDV envelope per party, at a
|
|
129
|
+
* resource id keyed by the collection's blinded-index key
|
|
130
|
+
* (`connectionResourceId` in `@interop/wallet-core/connections`). It is the
|
|
131
|
+
* wallet's revocation index (each entry's `grants`) and its party names, so
|
|
132
|
+
* one reader would learn every party, its names and origins, and every
|
|
133
|
+
* capability delegated to it. Hence neither shareable nor grantable. Its only
|
|
134
|
+
* key-epoch recipient is the user key, and no party ever writes it. It is
|
|
135
|
+
* read and written directly, with no local replica and no sync feed.
|
|
136
136
|
*/
|
|
137
|
-
export declare const
|
|
137
|
+
export declare const CONNECTIONS_COLLECTION_SPEC: SpaceCollectionSpec;
|
|
138
138
|
/**
|
|
139
139
|
* The `id` collection's provisioning attributes: plaintext (it holds only
|
|
140
140
|
* world-readable DID artifacts) with a collection-level public-read grant.
|
|
@@ -175,9 +175,9 @@ export declare const WALLET_SPACE_SYNCED_SPECS: SpaceCollectionSpec[];
|
|
|
175
175
|
export declare const WALLET_SPACE_SYSTEM_SPECS: SpaceProvisionSpec[];
|
|
176
176
|
/**
|
|
177
177
|
* The full wallet Space layout -- every collection the provisioning wallet
|
|
178
|
-
* ensures: the synced feeds first, then the directly read
|
|
179
|
-
* the system collections. A Space provisioned from this roster
|
|
180
|
-
* matter which wallet app created it.
|
|
178
|
+
* ensures: the synced feeds first, then the directly read `connections`
|
|
179
|
+
* directory, then the system collections. A Space provisioned from this roster
|
|
180
|
+
* is identical no matter which wallet app created it.
|
|
181
181
|
*/
|
|
182
182
|
export declare const WALLET_SPACE_PROVISION_ROSTER: SpaceProvisionSpec[];
|
|
183
183
|
/**
|
|
@@ -238,16 +238,6 @@ export declare const USER_KEY_ROSTER_LOG_RESOURCE = "user-key.jsonl";
|
|
|
238
238
|
* reads and writes exactly this sub-resource through the Collection handle.
|
|
239
239
|
*/
|
|
240
240
|
export declare const COLLECTION_HISTORY_LOG_SUBRESOURCE = "meta/log";
|
|
241
|
-
/**
|
|
242
|
-
* The enrolled-client display labels, sibling of `keys.json` and
|
|
243
|
-
* `user-key.jsonl` in the same private `key-map` collection: a plain-JSON map
|
|
244
|
-
* from a client's signing-key multibase to its human-chosen label. Display
|
|
245
|
-
* metadata only -- the did:webvh document carries key material, never labels --
|
|
246
|
-
* and plaintext by the collection's convention: the storage host can read the
|
|
247
|
-
* labels, but it already serves the world-readable log that names every client
|
|
248
|
-
* key, so a label adds only the display name.
|
|
249
|
-
*/
|
|
250
|
-
export declare const CLIENT_LABELS_RESOURCE = "client-labels.json";
|
|
251
241
|
/**
|
|
252
242
|
* The account's unlock-method registry, the single resource of the
|
|
253
243
|
* `unlock-methods` collection: the records naming which methods can unlock the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../src/space/collections.ts"],"names":[],"mappings":"AAiCA,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,yBAAyB,EAC1B,MAAM,wBAAwB,CAAA;AAE/B;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,iBAAiB,CAAA;AAE/C;;GAEG;AACH,eAAO,MA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
47
47
|
*/
|
|
48
48
|
export const APP_CONNECTIONS_COLLECTION = 'app-connections';
|
|
49
49
|
/**
|
|
50
|
-
* The EDV-encrypted
|
|
51
|
-
*
|
|
50
|
+
* The EDV-encrypted `connections` directory: one entry per party the wallet
|
|
51
|
+
* has dealt with (an app, an agent, a wallet client, a contact).
|
|
52
52
|
*/
|
|
53
|
-
export const
|
|
53
|
+
export const CONNECTIONS_COLLECTION = 'connections';
|
|
54
54
|
/**
|
|
55
55
|
* The immutable credential replica: each credential stored as an EDV envelope,
|
|
56
56
|
* addressed by the envelope's content hash, never overwritten, never public.
|
|
@@ -149,24 +149,24 @@ export const APP_CONNECTIONS_COLLECTION_SPEC = {
|
|
|
149
149
|
grantable: false
|
|
150
150
|
};
|
|
151
151
|
/**
|
|
152
|
-
* The
|
|
153
|
-
* resource id
|
|
154
|
-
* (`
|
|
155
|
-
*
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
*
|
|
159
|
-
*
|
|
152
|
+
* The `connections` directory: one mutable EDV envelope per party, at a
|
|
153
|
+
* resource id keyed by the collection's blinded-index key
|
|
154
|
+
* (`connectionResourceId` in `@interop/wallet-core/connections`). It is the
|
|
155
|
+
* wallet's revocation index (each entry's `grants`) and its party names, so
|
|
156
|
+
* one reader would learn every party, its names and origins, and every
|
|
157
|
+
* capability delegated to it. Hence neither shareable nor grantable. Its only
|
|
158
|
+
* key-epoch recipient is the user key, and no party ever writes it. It is
|
|
159
|
+
* read and written directly, with no local replica and no sync feed.
|
|
160
160
|
*/
|
|
161
|
-
export const
|
|
162
|
-
collectionId:
|
|
163
|
-
name: '
|
|
161
|
+
export const CONNECTIONS_COLLECTION_SPEC = {
|
|
162
|
+
collectionId: CONNECTIONS_COLLECTION,
|
|
163
|
+
name: 'Connections',
|
|
164
164
|
idDerivation: 'random',
|
|
165
165
|
mutable: true,
|
|
166
166
|
encryption: 'edv',
|
|
167
167
|
isPublic: false,
|
|
168
168
|
shareable: false,
|
|
169
|
-
grantable:
|
|
169
|
+
grantable: false
|
|
170
170
|
};
|
|
171
171
|
/**
|
|
172
172
|
* The `id` collection's provisioning attributes: plaintext (it holds only
|
|
@@ -237,13 +237,13 @@ export const WALLET_SPACE_SYSTEM_SPECS = [
|
|
|
237
237
|
];
|
|
238
238
|
/**
|
|
239
239
|
* The full wallet Space layout -- every collection the provisioning wallet
|
|
240
|
-
* ensures: the synced feeds first, then the directly read
|
|
241
|
-
* the system collections. A Space provisioned from this roster
|
|
242
|
-
* matter which wallet app created it.
|
|
240
|
+
* ensures: the synced feeds first, then the directly read `connections`
|
|
241
|
+
* directory, then the system collections. A Space provisioned from this roster
|
|
242
|
+
* is identical no matter which wallet app created it.
|
|
243
243
|
*/
|
|
244
244
|
export const WALLET_SPACE_PROVISION_ROSTER = [
|
|
245
245
|
...WALLET_SPACE_SYNCED_SPECS,
|
|
246
|
-
|
|
246
|
+
CONNECTIONS_COLLECTION_SPEC,
|
|
247
247
|
...WALLET_SPACE_SYSTEM_SPECS
|
|
248
248
|
];
|
|
249
249
|
/**
|
|
@@ -306,16 +306,6 @@ export const USER_KEY_ROSTER_LOG_RESOURCE = 'user-key.jsonl';
|
|
|
306
306
|
* reads and writes exactly this sub-resource through the Collection handle.
|
|
307
307
|
*/
|
|
308
308
|
export const COLLECTION_HISTORY_LOG_SUBRESOURCE = 'meta/log';
|
|
309
|
-
/**
|
|
310
|
-
* The enrolled-client display labels, sibling of `keys.json` and
|
|
311
|
-
* `user-key.jsonl` in the same private `key-map` collection: a plain-JSON map
|
|
312
|
-
* from a client's signing-key multibase to its human-chosen label. Display
|
|
313
|
-
* metadata only -- the did:webvh document carries key material, never labels --
|
|
314
|
-
* and plaintext by the collection's convention: the storage host can read the
|
|
315
|
-
* labels, but it already serves the world-readable log that names every client
|
|
316
|
-
* key, so a label adds only the display name.
|
|
317
|
-
*/
|
|
318
|
-
export const CLIENT_LABELS_RESOURCE = 'client-labels.json';
|
|
319
309
|
/**
|
|
320
310
|
* The account's unlock-method registry, the single resource of the
|
|
321
311
|
* `unlock-methods` collection: the records naming which methods can unlock the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collections.js","sourceRoot":"","sources":["../../src/space/collections.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EACL,wBAAwB,EACxB,gCAAgC,EACjC,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,yBAAyB,EAC1B,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,yBAAyB,EAC1B,MAAM,wBAAwB,CAAA;AAE/B;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,cAAc,CAAA;AAE/C;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,qBAAqB,CAAA;AACnE;;GAEG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,oBAAoB,CAAA;AACjE;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,iBAAiB,CAAA;AAC3D;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,iBAAiB,CAAA;AAC3D;;;GAGG;AACH,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"collections.js","sourceRoot":"","sources":["../../src/space/collections.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EACL,wBAAwB,EACxB,gCAAgC,EACjC,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,yBAAyB,EAC1B,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,yBAAyB,EAC1B,MAAM,wBAAwB,CAAA;AAE/B;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAi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AG,UAAU,CAAA;AAC5D;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,cAAc,CAAA"}
|
package/dist/space/index.d.ts
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* WAS-enabled wallet apps share.
|
|
7
7
|
*
|
|
8
8
|
* - The shared collection ids and descriptive specs (`private-credentials`,
|
|
9
|
-
* `public-credentials`, `wallet-activity`, `app-connections
|
|
9
|
+
* `public-credentials`, `wallet-activity`, `app-connections`, and the
|
|
10
|
+
* directly read `connections` directory; the contacts
|
|
10
11
|
* identity contract
|
|
11
12
|
* stays in `@interop/social-core`, spread into the wallet-Space specs here),
|
|
12
13
|
* and the provisioning rosters that split them into synced feeds vs.
|
|
@@ -38,8 +39,8 @@
|
|
|
38
39
|
* ids, including the ceremonies still implemented app-side.
|
|
39
40
|
*/
|
|
40
41
|
export { deleteSpaceWithCapability } from './deleteSpace.js';
|
|
41
|
-
export { WALLET_SPACE_NAME, PRIVATE_CREDENTIALS_COLLECTION, PUBLIC_CREDENTIALS_COLLECTION, WALLET_ACTIVITY_COLLECTION, APP_CONNECTIONS_COLLECTION,
|
|
42
|
-
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, COLLECTION_HISTORY_LOG_SUBRESOURCE,
|
|
42
|
+
export { WALLET_SPACE_NAME, PRIVATE_CREDENTIALS_COLLECTION, PUBLIC_CREDENTIALS_COLLECTION, WALLET_ACTIVITY_COLLECTION, APP_CONNECTIONS_COLLECTION, CONNECTIONS_COLLECTION, PRIVATE_CREDENTIALS_COLLECTION_SPEC, PUBLIC_CREDENTIALS_COLLECTION_SPEC, WALLET_ACTIVITY_COLLECTION_SPEC, CONTACTS_SPACE_COLLECTION_SPEC, CONTACTS_HISTORY_SPACE_COLLECTION_SPEC, APP_CONNECTIONS_COLLECTION_SPEC, CONNECTIONS_COLLECTION_SPEC, WALLET_SPACE_SYNCED_SPECS, WALLET_SPACE_SYSTEM_SPECS, WALLET_SPACE_PROVISION_ROSTER } from './collections.js';
|
|
43
|
+
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, COLLECTION_HISTORY_LOG_SUBRESOURCE, UNLOCK_METHODS_RESOURCE, KEYRING_RESOURCE } from './collections.js';
|
|
43
44
|
export type { SpaceProvisionSpec, SpaceCollectionSpec } from './collections.js';
|
|
44
45
|
export { provisionWalletSpace } from './provisioning.js';
|
|
45
46
|
export { plaintextCollection } from './plaintextCollection.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/space/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/space/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,EACL,iBAAiB,EACjB,8BAA8B,EAC9B,6BAA6B,EAC7B,0BAA0B,EAC1B,0BAA0B,EAC1B,sBAAsB,EACtB,mCAAmC,EACnC,kCAAkC,EAClC,+BAA+B,EAC/B,8BAA8B,EAC9B,sCAAsC,EACtC,+BAA+B,EAC/B,2BAA2B,EAC3B,yBAAyB,EACzB,yBAAyB,EACzB,6BAA6B,EAC9B,MAA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
|
|
8
8
|
* - The shared collection ids and descriptive specs (`private-credentials`,
|
|
9
|
-
* `public-credentials`, `wallet-activity`, `app-connections
|
|
9
|
+
* `public-credentials`, `wallet-activity`, `app-connections`, and the
|
|
10
|
+
* directly read `connections` directory; the contacts
|
|
10
11
|
* identity contract
|
|
11
12
|
* stays in `@interop/social-core`, spread into the wallet-Space specs here),
|
|
12
13
|
* and the provisioning rosters that split them into synced feeds vs.
|
|
@@ -38,8 +39,8 @@
|
|
|
38
39
|
* ids, including the ceremonies still implemented app-side.
|
|
39
40
|
*/
|
|
40
41
|
export { deleteSpaceWithCapability } from './deleteSpace.js';
|
|
41
|
-
export { WALLET_SPACE_NAME, PRIVATE_CREDENTIALS_COLLECTION, PUBLIC_CREDENTIALS_COLLECTION, WALLET_ACTIVITY_COLLECTION, APP_CONNECTIONS_COLLECTION,
|
|
42
|
-
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, COLLECTION_HISTORY_LOG_SUBRESOURCE,
|
|
42
|
+
export { WALLET_SPACE_NAME, PRIVATE_CREDENTIALS_COLLECTION, PUBLIC_CREDENTIALS_COLLECTION, WALLET_ACTIVITY_COLLECTION, APP_CONNECTIONS_COLLECTION, CONNECTIONS_COLLECTION, PRIVATE_CREDENTIALS_COLLECTION_SPEC, PUBLIC_CREDENTIALS_COLLECTION_SPEC, WALLET_ACTIVITY_COLLECTION_SPEC, CONTACTS_SPACE_COLLECTION_SPEC, CONTACTS_HISTORY_SPACE_COLLECTION_SPEC, APP_CONNECTIONS_COLLECTION_SPEC, CONNECTIONS_COLLECTION_SPEC, WALLET_SPACE_SYNCED_SPECS, WALLET_SPACE_SYSTEM_SPECS, WALLET_SPACE_PROVISION_ROSTER } from './collections.js';
|
|
43
|
+
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, COLLECTION_HISTORY_LOG_SUBRESOURCE, UNLOCK_METHODS_RESOURCE, KEYRING_RESOURCE } from './collections.js';
|
|
43
44
|
export { provisionWalletSpace } from './provisioning.js';
|
|
44
45
|
export { plaintextCollection } from './plaintextCollection.js';
|
|
45
46
|
export { ACTIVITY_TYPE, addHistoryNewAccount, addHistorySpaceCreated, addHistoryCredentialCreated, addHistoryCredentialDeleted, addHistoryCredentialShared, addHistoryCredentialUnshared, addHistoryLogin, addHistoryGrant, addHistoryWalletLogin, addHistoryAppRevoke, addHistoryAgentRevoke, addHistoryClientRevoked, addHistoryGenerationCollected, addHistoryContentImported, addHistoryProfileCreated, addHistoryCollectionShared, addHistoryCollectionUnshared } from './activity.js';
|
package/dist/space/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/space/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/space/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,EACL,iBAAiB,EACjB,8BAA8B,EAC9B,6BAA6B,EAC7B,0BAA0B,EAC1B,0BAA0B,EAC1B,sBAAsB,EACtB,mCAAmC,EACnC,kCAAkC,EAClC,+BAA+B,EAC/B,8BAA8B,EAC9B,sCAAsC,EACtC,+BAA+B,EAC/B,2BAA2B,EAC3B,yBAAyB,EACzB,yBAAyB,EACzB,6BAA6B,EAC9B,MAAM,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,kCAAkC,EAClC,uBAAuB,EACvB,gBAAgB,EACjB,MAAM,kBAAkB,CAAA;AAGzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAExD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAE9D,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,sBAAsB,EACtB,2BAA2B,EAC3B,2BAA2B,EAC3B,0BAA0B,EAC1B,4BAA4B,EAC5B,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,6BAA6B,EAC7B,yBAAyB,EACzB,wBAAwB,EACxB,0BAA0B,EAC1B,4BAA4B,EAC7B,MAAM,eAAe,CAAA;AAOtB,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAErD,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,cAAc,CAAA;AAGrB,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAEhD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@interop/wallet-core",
|
|
3
3
|
"description": "Shared wallet-domain logic (WAS sync engine core and wallet Space layout contracts) for Interop wallet apps.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.95.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "pnpm run clear && tsc",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@eslint/js": "^10.0.1",
|
|
39
39
|
"@interop/logger": "^0.2.0",
|
|
40
|
-
"@interop/storage-core": "^0.
|
|
41
|
-
"@interop/was-client": "^0.
|
|
40
|
+
"@interop/storage-core": "^0.25.0",
|
|
41
|
+
"@interop/was-client": "^0.81.0",
|
|
42
42
|
"@playwright/test": "^1.60.0",
|
|
43
43
|
"@types/node": "^26.0.1",
|
|
44
44
|
"@vitest/coverage-v8": "^4.1.7",
|
|
@@ -199,11 +199,11 @@
|
|
|
199
199
|
"import": "./dist/clients/index.js",
|
|
200
200
|
"default": "./dist/clients/index.js"
|
|
201
201
|
},
|
|
202
|
-
"./
|
|
203
|
-
"types": "./dist/
|
|
204
|
-
"react-native": "./dist/
|
|
205
|
-
"import": "./dist/
|
|
206
|
-
"default": "./dist/
|
|
202
|
+
"./connections": {
|
|
203
|
+
"types": "./dist/connections/index.d.ts",
|
|
204
|
+
"react-native": "./dist/connections/index.js",
|
|
205
|
+
"import": "./dist/connections/index.js",
|
|
206
|
+
"default": "./dist/connections/index.js"
|
|
207
207
|
},
|
|
208
208
|
"./menders": {
|
|
209
209
|
"types": "./dist/menders/index.d.ts",
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) 2026 Interop Alliance. All rights reserved.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Enrolled-client display labels: the `key-map/client-labels.json` record, a
|
|
6
|
-
* plain-JSON map from a client's signing-key multibase to the human-chosen
|
|
7
|
-
* label a "your wallets" surface shows. The did:webvh document is the roster
|
|
8
|
-
* of record and deliberately carries key material only, so labels live
|
|
9
|
-
* beside the account's other key-map resources instead -- private,
|
|
10
|
-
* capability-gated, and shared by every enrolled client (each wallet app
|
|
11
|
-
* reads and writes the same record).
|
|
12
|
-
*
|
|
13
|
-
* The record is display metadata with no authority: a missing or malformed
|
|
14
|
-
* record degrades to unlabeled rows, an entry whose key the document no
|
|
15
|
-
* longer lists is simply never shown, and writes are last-write-wins (a lost
|
|
16
|
-
* race costs at most a label). I/O runs through the two-method
|
|
17
|
-
* {@link ClientLabelsStore} seam a wallet app satisfies with its own
|
|
18
|
-
* remote-store class.
|
|
19
|
-
*/
|
|
20
|
-
/**
|
|
21
|
-
* The Space-side seam: the single `client-labels.json` resource in the
|
|
22
|
-
* private `key-map` collection.
|
|
23
|
-
*/
|
|
24
|
-
export interface ClientLabelsStore {
|
|
25
|
-
/**
|
|
26
|
-
* The parsed JSON body of `client-labels.json`, or `undefined` when it has
|
|
27
|
-
* never been written.
|
|
28
|
-
*/
|
|
29
|
-
get(): Promise<unknown>;
|
|
30
|
-
/**
|
|
31
|
-
* Writes (upserts) `client-labels.json`.
|
|
32
|
-
*/
|
|
33
|
-
put(options: {
|
|
34
|
-
content: object;
|
|
35
|
-
}): Promise<void>;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* The version-1 labels record: signing-key multibase to label.
|
|
39
|
-
*/
|
|
40
|
-
export interface ClientLabelsRecord {
|
|
41
|
-
version: 1;
|
|
42
|
-
labels: Record<string, string>;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Reads the labels record, degrading to an empty record when it is missing
|
|
46
|
-
* or malformed (labels are display metadata; a broken record must never
|
|
47
|
-
* block a listing).
|
|
48
|
-
*
|
|
49
|
-
* @param options {object}
|
|
50
|
-
* @param options.store {ClientLabelsStore}
|
|
51
|
-
* @returns {Promise<ClientLabelsRecord>}
|
|
52
|
-
*/
|
|
53
|
-
export declare function readClientLabels({ store }: {
|
|
54
|
-
store: ClientLabelsStore;
|
|
55
|
-
}): Promise<ClientLabelsRecord>;
|
|
56
|
-
/**
|
|
57
|
-
* Sets (or renames) one client's label, read-modify-write over the stored
|
|
58
|
-
* record. A blank label removes the entry instead of storing whitespace.
|
|
59
|
-
*
|
|
60
|
-
* @param options {object}
|
|
61
|
-
* @param options.store {ClientLabelsStore}
|
|
62
|
-
* @param options.signingKeyMultibase {string}
|
|
63
|
-
* @param options.label {string}
|
|
64
|
-
* @returns {Promise<ClientLabelsRecord>} the record as written
|
|
65
|
-
*/
|
|
66
|
-
export declare function setClientLabel({ store, signingKeyMultibase, label }: {
|
|
67
|
-
store: ClientLabelsStore;
|
|
68
|
-
signingKeyMultibase: string;
|
|
69
|
-
label: string;
|
|
70
|
-
}): Promise<ClientLabelsRecord>;
|
|
71
|
-
/**
|
|
72
|
-
* Drops one client's label (revocation hygiene -- the label of a
|
|
73
|
-
* disconnected client points at nothing). A record without the entry is a
|
|
74
|
-
* no-op that writes nothing.
|
|
75
|
-
*
|
|
76
|
-
* @param options {object}
|
|
77
|
-
* @param options.store {ClientLabelsStore}
|
|
78
|
-
* @param options.signingKeyMultibase {string}
|
|
79
|
-
* @returns {Promise<ClientLabelsRecord>} the record as stored
|
|
80
|
-
*/
|
|
81
|
-
export declare function removeClientLabel({ store, signingKeyMultibase }: {
|
|
82
|
-
store: ClientLabelsStore;
|
|
83
|
-
signingKeyMultibase: string;
|
|
84
|
-
}): Promise<ClientLabelsRecord>;
|
|
85
|
-
//# sourceMappingURL=clientLabels.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clientLabels.d.ts","sourceRoot":"","sources":["../../src/keys/clientLabels.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;GAeG;AAEH;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC,CAAA;IACvB;;OAEG;IACH,GAAG,CAAC,OAAO,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACjD;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,CAAC,CAAA;IACV,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAC/B;AAED;;;;;;;;GAQG;AACH,wBAAsB,gBAAgB,CAAC,EACrC,KAAK,EACN,EAAE;IACD,KAAK,EAAE,iBAAiB,CAAA;CACzB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAqB9B;AAED;;;;;;;;;GASG;AACH,wBAAsB,cAAc,CAAC,EACnC,KAAK,EACL,mBAAmB,EACnB,KAAK,EACN,EAAE;IACD,KAAK,EAAE,iBAAiB,CAAA;IACxB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,KAAK,EAAE,MAAM,CAAA;CACd,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAY9B;AAED;;;;;;;;;GASG;AACH,wBAAsB,iBAAiB,CAAC,EACtC,KAAK,EACL,mBAAmB,EACpB,EAAE;IACD,KAAK,EAAE,iBAAiB,CAAA;IACxB,mBAAmB,EAAE,MAAM,CAAA;CAC5B,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAU9B"}
|