@interop/wallet-core 0.104.2 → 0.106.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 +19 -18
- package/dist/clientAnnex/gc.d.ts +13 -2
- package/dist/clientAnnex/gc.d.ts.map +1 -1
- package/dist/clientAnnex/gc.js +17 -4
- package/dist/clientAnnex/gc.js.map +1 -1
- package/dist/clientAnnex/heal.js +2 -2
- package/dist/clientAnnex/heal.js.map +1 -1
- package/dist/clientAnnex/log.d.ts +17 -11
- package/dist/clientAnnex/log.d.ts.map +1 -1
- package/dist/clientAnnex/log.js +25 -21
- package/dist/clientAnnex/log.js.map +1 -1
- package/dist/clientAnnex/selfEnroll.d.ts.map +1 -1
- package/dist/clientAnnex/selfEnroll.js +0 -3
- package/dist/clientAnnex/selfEnroll.js.map +1 -1
- package/dist/clientAnnex/spaceCapability.js +2 -2
- package/dist/clientAnnex/spaceCapability.js.map +1 -1
- package/dist/enrollment/enrollment.d.ts.map +1 -1
- package/dist/enrollment/enrollment.js +0 -3
- package/dist/enrollment/enrollment.js.map +1 -1
- package/dist/genesis/accountGenesis.d.ts +9 -4
- package/dist/genesis/accountGenesis.d.ts.map +1 -1
- package/dist/genesis/accountGenesis.js +8 -9
- package/dist/genesis/accountGenesis.js.map +1 -1
- package/dist/keyring/unlockSpace.d.ts.map +1 -1
- package/dist/keyring/unlockSpace.js +2 -1
- package/dist/keyring/unlockSpace.js.map +1 -1
- package/dist/keys/collectionLogStore.d.ts.map +1 -1
- package/dist/keys/collectionLogStore.js +2 -1
- package/dist/keys/collectionLogStore.js.map +1 -1
- package/dist/keys/rosterStore.d.ts.map +1 -1
- package/dist/keys/rosterStore.js +2 -1
- package/dist/keys/rosterStore.js.map +1 -1
- package/dist/menders/derive.d.ts +16 -15
- package/dist/menders/derive.d.ts.map +1 -1
- package/dist/menders/derive.js +19 -26
- package/dist/menders/derive.js.map +1 -1
- package/dist/menders/index.d.ts +7 -3
- package/dist/menders/index.d.ts.map +1 -1
- package/dist/menders/index.js +7 -3
- package/dist/menders/index.js.map +1 -1
- package/dist/menders/registry.d.ts +15 -10
- package/dist/menders/registry.d.ts.map +1 -1
- package/dist/menders/registry.js +22 -11
- package/dist/menders/registry.js.map +1 -1
- package/dist/menders/runner.d.ts +19 -2
- package/dist/menders/runner.d.ts.map +1 -1
- package/dist/menders/runner.js +17 -8
- package/dist/menders/runner.js.map +1 -1
- package/dist/menders/types.d.ts +9 -6
- package/dist/menders/types.d.ts.map +1 -1
- package/dist/recovery/recoveryDelegation.js +1 -1
- package/dist/recovery/recoveryDelegation.js.map +1 -1
- package/dist/resourceLog/controller.d.ts +5 -4
- package/dist/resourceLog/controller.d.ts.map +1 -1
- package/dist/resourceLog/controller.js.map +1 -1
- package/dist/space/deleteSpace.d.ts.map +1 -1
- package/dist/space/deleteSpace.js +2 -1
- package/dist/space/deleteSpace.js.map +1 -1
- package/dist/space/publicLink.js +1 -1
- package/dist/space/publicLink.js.map +1 -1
- package/dist/testing/accountBuilder.d.ts.map +1 -1
- package/dist/testing/accountBuilder.js +6 -2
- package/dist/testing/accountBuilder.js.map +1 -1
- package/dist/unlock/standingClient.d.ts.map +1 -1
- package/dist/unlock/standingClient.js +0 -3
- package/dist/unlock/standingClient.js.map +1 -1
- package/dist/webvh/delegatedLogStore.d.ts.map +1 -1
- package/dist/webvh/delegatedLogStore.js +7 -3
- package/dist/webvh/delegatedLogStore.js.map +1 -1
- package/dist/webvh/index.d.ts +5 -2
- package/dist/webvh/index.d.ts.map +1 -1
- package/dist/webvh/index.js +5 -2
- package/dist/webvh/index.js.map +1 -1
- package/dist/webvh/verifyLog.d.ts +35 -2
- package/dist/webvh/verifyLog.d.ts.map +1 -1
- package/dist/webvh/verifyLog.js +106 -27
- package/dist/webvh/verifyLog.js.map +1 -1
- package/package.json +5 -5
package/dist/menders/derive.d.ts
CHANGED
|
@@ -22,13 +22,15 @@ type DerivedGap = Pick<InvariantGap, 'invariant' | 'kind'>;
|
|
|
22
22
|
* `login-routing` site counts unless the client-key-record probe guards it;
|
|
23
23
|
* an `encounter` site counts when its `reachedBy` names `transient` and the
|
|
24
24
|
* ladder held set admits every invariant it reports, the test a chain
|
|
25
|
-
* registration meets; a `ceremony-tail`
|
|
26
|
-
*
|
|
25
|
+
* registration meets; a `ceremony-tail` site counts under the same
|
|
26
|
+
* `reachedBy` and admits test, since a tail reaches only the session kinds
|
|
27
|
+
* its ceremony runs on and converges only under the authority its
|
|
28
|
+
* invariants declare; and a detector no site reports (a
|
|
27
29
|
* declaration carrying `holdsWhen`) counts when it is checked at routing or,
|
|
28
30
|
* on the transient chain, under an authority the ladder held set carries.
|
|
29
31
|
* An unreported declaration with no detector is reached by nothing. No
|
|
30
|
-
* unreported declaration lists `encounter
|
|
31
|
-
* one at construction.
|
|
32
|
+
* unreported declaration lists `encounter` or `ceremony-tail`, since
|
|
33
|
+
* `menderRegistry` refuses one at construction.
|
|
32
34
|
*
|
|
33
35
|
* The rule trusts each declaration's `authority`. A declaration claiming a
|
|
34
36
|
* wider authority than what converges it on a transient visit would count
|
|
@@ -42,17 +44,16 @@ export declare function transientReachableInvariants({ registry }: {
|
|
|
42
44
|
registry: MenderRegistry<RegistrationSite, never>;
|
|
43
45
|
}): ReadonlyArray<InvariantId>;
|
|
44
46
|
/**
|
|
45
|
-
* The gaps the index implies. An invariant no site reports derives `none
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
* `none`
|
|
50
|
-
* a
|
|
51
|
-
*
|
|
52
|
-
* a
|
|
53
|
-
* stand on, derives
|
|
54
|
-
*
|
|
55
|
-
* exemption does not extend to `encounter`. Nothing else derives a gap.
|
|
47
|
+
* The gaps the index implies. An invariant no site reports derives `none`.
|
|
48
|
+
* A detector is not a mender: a declaration carrying `holdsWhen` and no
|
|
49
|
+
* registration derives `none` like any other unreported one, so adding a
|
|
50
|
+
* detector never retires a gap. A declaration naming a trigger no site
|
|
51
|
+
* backs derives `none` whatever else it names. An invariant reported only
|
|
52
|
+
* at sites a transient visit cannot reach (a remembered chain sweep, an
|
|
53
|
+
* encounter no transient session meets, a tail on a ceremony no transient
|
|
54
|
+
* session runs or its authority keeps from a ladder visit), on an account
|
|
55
|
+
* shape the violation can stand on, derives
|
|
56
|
+
* `unreachable`. Nothing else derives a gap.
|
|
56
57
|
*
|
|
57
58
|
* @param options {object}
|
|
58
59
|
* @param options.registry {MenderRegistry}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"derive.d.ts","sourceRoot":"","sources":["../../src/menders/derive.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;GAOG;AACH,OAAO,EAAiB,KAAK,WAAW,EAAE,MAAM,UAAU,CAAA;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAEnD,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAEhE;;GAEG;AACH,KAAK,UAAU,GAAG,IAAI,CAAC,YAAY,EAAE,WAAW,GAAG,MAAM,CAAC,CAAA;AAW1D
|
|
1
|
+
{"version":3,"file":"derive.d.ts","sourceRoot":"","sources":["../../src/menders/derive.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;GAOG;AACH,OAAO,EAAiB,KAAK,WAAW,EAAE,MAAM,UAAU,CAAA;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAEnD,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAEhE;;GAEG;AACH,KAAK,UAAU,GAAG,IAAI,CAAC,YAAY,EAAE,WAAW,GAAG,MAAM,CAAC,CAAA;AAW1D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,4BAA4B,CAAC,EAC3C,QAAQ,EACT,EAAE;IACD,QAAQ,EAAE,cAAc,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAA;CAClD,GAAG,aAAa,CAAC,WAAW,CAAC,CAwC7B;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACT,EAAE;IACD,QAAQ,EAAE,cAAc,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAA;CAClD,GAAG,aAAa,CAAC,UAAU,CAAC,CAe5B;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,QAAQ,EACT,EAAE;IACD,OAAO,EAAE,aAAa,CAAC,UAAU,CAAC,CAAA;IAClC,QAAQ,EAAE,aAAa,CAAC,YAAY,CAAC,CAAA;CACtC,GAAG,aAAa,CAAC,UAAU,CAAC,CAS5B;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACT,EAAE;IACD,QAAQ,EAAE,cAAc,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAA;CAClD,GAAG,aAAa,CAAC,WAAW,CAAC,CAG7B"}
|
package/dist/menders/derive.js
CHANGED
|
@@ -23,13 +23,15 @@ function reportedIds(registry) {
|
|
|
23
23
|
* `login-routing` site counts unless the client-key-record probe guards it;
|
|
24
24
|
* an `encounter` site counts when its `reachedBy` names `transient` and the
|
|
25
25
|
* ladder held set admits every invariant it reports, the test a chain
|
|
26
|
-
* registration meets; a `ceremony-tail`
|
|
27
|
-
*
|
|
26
|
+
* registration meets; a `ceremony-tail` site counts under the same
|
|
27
|
+
* `reachedBy` and admits test, since a tail reaches only the session kinds
|
|
28
|
+
* its ceremony runs on and converges only under the authority its
|
|
29
|
+
* invariants declare; and a detector no site reports (a
|
|
28
30
|
* declaration carrying `holdsWhen`) counts when it is checked at routing or,
|
|
29
31
|
* on the transient chain, under an authority the ladder held set carries.
|
|
30
32
|
* An unreported declaration with no detector is reached by nothing. No
|
|
31
|
-
* unreported declaration lists `encounter
|
|
32
|
-
* one at construction.
|
|
33
|
+
* unreported declaration lists `encounter` or `ceremony-tail`, since
|
|
34
|
+
* `menderRegistry` refuses one at construction.
|
|
33
35
|
*
|
|
34
36
|
* The rule trusts each declaration's `authority`. A declaration claiming a
|
|
35
37
|
* wider authority than what converges it on a transient visit would count
|
|
@@ -52,10 +54,10 @@ export function transientReachableInvariants({ registry }) {
|
|
|
52
54
|
}
|
|
53
55
|
for (const site of registry.sites()) {
|
|
54
56
|
const routed = site.trigger === 'login-routing' && !site.guardedBy;
|
|
55
|
-
const
|
|
57
|
+
const visited = (site.trigger === 'encounter' || site.trigger === 'ceremony-tail') &&
|
|
56
58
|
site.reachedBy.includes('transient') &&
|
|
57
59
|
registry.admits({ site, held });
|
|
58
|
-
if (routed ||
|
|
60
|
+
if (routed || visited) {
|
|
59
61
|
for (const id of site.reports) {
|
|
60
62
|
reached.add(id);
|
|
61
63
|
}
|
|
@@ -63,10 +65,6 @@ export function transientReachableInvariants({ registry }) {
|
|
|
63
65
|
}
|
|
64
66
|
const reported = reportedIds(registry);
|
|
65
67
|
for (const decl of registry.all()) {
|
|
66
|
-
if (decl.triggers.includes('ceremony-tail')) {
|
|
67
|
-
reached.add(decl.id);
|
|
68
|
-
continue;
|
|
69
|
-
}
|
|
70
68
|
if (reported.has(decl.id) || !decl.holdsWhen) {
|
|
71
69
|
continue;
|
|
72
70
|
}
|
|
@@ -83,17 +81,16 @@ export function transientReachableInvariants({ registry }) {
|
|
|
83
81
|
.map(decl => decl.id);
|
|
84
82
|
}
|
|
85
83
|
/**
|
|
86
|
-
* The gaps the index implies. An invariant no site reports derives `none
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
* `none`
|
|
91
|
-
* a
|
|
92
|
-
*
|
|
93
|
-
* a
|
|
94
|
-
* stand on, derives
|
|
95
|
-
*
|
|
96
|
-
* exemption does not extend to `encounter`. Nothing else derives a gap.
|
|
84
|
+
* The gaps the index implies. An invariant no site reports derives `none`.
|
|
85
|
+
* A detector is not a mender: a declaration carrying `holdsWhen` and no
|
|
86
|
+
* registration derives `none` like any other unreported one, so adding a
|
|
87
|
+
* detector never retires a gap. A declaration naming a trigger no site
|
|
88
|
+
* backs derives `none` whatever else it names. An invariant reported only
|
|
89
|
+
* at sites a transient visit cannot reach (a remembered chain sweep, an
|
|
90
|
+
* encounter no transient session meets, a tail on a ceremony no transient
|
|
91
|
+
* session runs or its authority keeps from a ladder visit), on an account
|
|
92
|
+
* shape the violation can stand on, derives
|
|
93
|
+
* `unreachable`. Nothing else derives a gap.
|
|
97
94
|
*
|
|
98
95
|
* @param options {object}
|
|
99
96
|
* @param options.registry {MenderRegistry}
|
|
@@ -105,11 +102,7 @@ export function deriveGaps({ registry }) {
|
|
|
105
102
|
const gaps = [];
|
|
106
103
|
for (const decl of registry.all()) {
|
|
107
104
|
if (!reported.has(decl.id)) {
|
|
108
|
-
|
|
109
|
-
decl.triggers.every(trigger => trigger === 'ceremony-tail');
|
|
110
|
-
if (!tailOnly) {
|
|
111
|
-
gaps.push({ invariant: decl.id, kind: 'none' });
|
|
112
|
-
}
|
|
105
|
+
gaps.push({ invariant: decl.id, kind: 'none' });
|
|
113
106
|
}
|
|
114
107
|
else if (!reachable.has(decl.id) &&
|
|
115
108
|
decl.standsOn.includes('ladder-anchored')) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"derive.js","sourceRoot":"","sources":["../../src/menders/derive.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;GAOG;AACH,OAAO,EAAE,aAAa,EAAoB,MAAM,UAAU,CAAA;AAE1D,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAQ/C;;GAEG;AACH,SAAS,WAAW,CAClB,QAAiD;IAEjD,OAAO,IAAI,GAAG,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAA;AAChE,CAAC;AAED
|
|
1
|
+
{"version":3,"file":"derive.js","sourceRoot":"","sources":["../../src/menders/derive.ts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AC"}
|
package/dist/menders/index.d.ts
CHANGED
|
@@ -23,8 +23,12 @@
|
|
|
23
23
|
* discipline over one registration, shared by the chain runner and a
|
|
24
24
|
* wallet's encounter sites; `runMenderBlock`, that discipline over one
|
|
25
25
|
* chain trigger's registrations; `mendReportAccumulator`, the
|
|
26
|
-
* pre-session report collector its `onOutcome` feeds
|
|
27
|
-
* the
|
|
26
|
+
* pre-session report collector its `onOutcome` feeds; `matchesReports`,
|
|
27
|
+
* the one rule for whether a site's entries name its `reports` in that
|
|
28
|
+
* order and no others, which the runner applies to a converging
|
|
29
|
+
* registration and a report-only site applies to the entries it records;
|
|
30
|
+
* and `errorNameOf`, the name a report carries for a thrown value of any
|
|
31
|
+
* shape
|
|
28
32
|
* - the derived sets a wallet's audit tests pin:
|
|
29
33
|
* `transientReachableInvariants`, `deriveGaps`, `undeclaredGaps`, and
|
|
30
34
|
* `undeclaredInvariants`
|
|
@@ -39,7 +43,7 @@ export type { InvariantId } from './ids.js';
|
|
|
39
43
|
export { heldAuthorities, menderRegistry } from './registry.js';
|
|
40
44
|
export type { MenderRegistry, ResolvedAuthority } from './registry.js';
|
|
41
45
|
export { errorNameOf } from '../errorName.js';
|
|
42
|
-
export { MEND_REPORT_SHAPE_ERROR, mendReportAccumulator, runMenderBlock, runMenderRegistration } from './runner.js';
|
|
46
|
+
export { MEND_REPORT_SHAPE_ERROR, matchesReports, mendReportAccumulator, runMenderBlock, runMenderRegistration } from './runner.js';
|
|
43
47
|
export type { MendReportAccumulator } from './runner.js';
|
|
44
48
|
export type { InvariantDeclaration, InvariantGap, LoginRoute, MendOutcome, MendReport, MendReportEntry, Registration, RegistrationSite } from './types.js';
|
|
45
49
|
export { ACCOUNT_SHAPES, AUTHORITIES, CHAIN_TRIGGERS, EVIDENCE, GAP_KINDS, MEND_OUTCOMES, TRIGGERS } from './vocabulary.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/menders/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/menders/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,OAAO,EACL,UAAU,EACV,4BAA4B,EAC5B,cAAc,EACd,oBAAoB,EACrB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAC3C,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC/D,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,EACL,uBAAuB,EACvB,cAAc,EACd,qBAAqB,EACrB,cAAc,EACd,qBAAqB,EACtB,MAAM,aAAa,CAAA;AACpB,YAAY,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AACxD,YAAY,EACV,oBAAoB,EACpB,YAAY,EACZ,UAAU,EACV,WAAW,EACX,UAAU,EACV,eAAe,EACf,YAAY,EACZ,gBAAgB,EACjB,MAAM,YAAY,CAAA;AACnB,OAAO,EACL,cAAc,EACd,WAAW,EACX,cAAc,EACd,QAAQ,EACR,SAAS,EACT,aAAa,EACb,QAAQ,EACT,MAAM,iBAAiB,CAAA;AACxB,YAAY,EACV,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,eAAe,EACf,OAAO,EACR,MAAM,iBAAiB,CAAA"}
|
package/dist/menders/index.js
CHANGED
|
@@ -23,8 +23,12 @@
|
|
|
23
23
|
* discipline over one registration, shared by the chain runner and a
|
|
24
24
|
* wallet's encounter sites; `runMenderBlock`, that discipline over one
|
|
25
25
|
* chain trigger's registrations; `mendReportAccumulator`, the
|
|
26
|
-
* pre-session report collector its `onOutcome` feeds
|
|
27
|
-
* the
|
|
26
|
+
* pre-session report collector its `onOutcome` feeds; `matchesReports`,
|
|
27
|
+
* the one rule for whether a site's entries name its `reports` in that
|
|
28
|
+
* order and no others, which the runner applies to a converging
|
|
29
|
+
* registration and a report-only site applies to the entries it records;
|
|
30
|
+
* and `errorNameOf`, the name a report carries for a thrown value of any
|
|
31
|
+
* shape
|
|
28
32
|
* - the derived sets a wallet's audit tests pin:
|
|
29
33
|
* `transientReachableInvariants`, `deriveGaps`, `undeclaredGaps`, and
|
|
30
34
|
* `undeclaredInvariants`
|
|
@@ -37,6 +41,6 @@ export { deriveGaps, transientReachableInvariants, undeclaredGaps, undeclaredInv
|
|
|
37
41
|
export { INVARIANT_IDS } from './ids.js';
|
|
38
42
|
export { heldAuthorities, menderRegistry } from './registry.js';
|
|
39
43
|
export { errorNameOf } from '../errorName.js';
|
|
40
|
-
export { MEND_REPORT_SHAPE_ERROR, mendReportAccumulator, runMenderBlock, runMenderRegistration } from './runner.js';
|
|
44
|
+
export { MEND_REPORT_SHAPE_ERROR, matchesReports, mendReportAccumulator, runMenderBlock, runMenderRegistration } from './runner.js';
|
|
41
45
|
export { ACCOUNT_SHAPES, AUTHORITIES, CHAIN_TRIGGERS, EVIDENCE, GAP_KINDS, MEND_OUTCOMES, TRIGGERS } from './vocabulary.js';
|
|
42
46
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/menders/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/menders/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,OAAO,EACL,UAAU,EACV,4BAA4B,EAC5B,cAAc,EACd,oBAAoB,EACrB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,EACL,uBAAuB,EACvB,cAAc,EACd,qBAAqB,EACrB,cAAc,EACd,qBAAqB,EACtB,MAAM,aAAa,CAAA;AAYpB,OAAO,EACL,cAAc,EACd,WAAW,EACX,cAAc,EACd,QAAQ,EACR,SAAS,EACT,aAAa,EACb,QAAQ,EACT,MAAM,iBAAiB,CAAA"}
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
* Registration order is execution order; there is no dependency graph and
|
|
11
11
|
* no priority. The table and the sites are checked once, at construction: a
|
|
12
12
|
* duplicated declaration id, a site reporting an undeclared invariant, a
|
|
13
|
-
* guard on a non-routing site, an encounter site with no
|
|
14
|
-
* declaration listing `encounter` that no
|
|
15
|
-
* `TypeError` there, so no reader meets
|
|
16
|
-
* a login happens to hold. Both wallets
|
|
17
|
-
* the error surfaces at module load.
|
|
13
|
+
* guard on a non-routing site, an encounter or ceremony-tail site with no
|
|
14
|
+
* reach, or a declaration listing `encounter` or `ceremony-tail` that no
|
|
15
|
+
* site of that trigger reports is a `TypeError` there, so no reader meets
|
|
16
|
+
* the defect later, depending on what a login happens to hold. Both wallets
|
|
17
|
+
* build their registries at import, so the error surfaces at module load.
|
|
18
18
|
*/
|
|
19
19
|
import type { InvariantId } from './ids.js';
|
|
20
20
|
import type { InvariantDeclaration, LoginRoute, RegistrationSite } from './types.js';
|
|
@@ -71,9 +71,13 @@ export declare function heldAuthorities({ kind }: {
|
|
|
71
71
|
/**
|
|
72
72
|
* Builds the readers over one wallet's declarations and sites, checking
|
|
73
73
|
* both once: every declaration id is unique, every reported id is declared,
|
|
74
|
-
* only a `login-routing` site carries `guardedBy`, every `encounter`
|
|
75
|
-
* names at least one session kind in `reachedBy`, and
|
|
76
|
-
*
|
|
74
|
+
* only a `login-routing` site carries `guardedBy`, every `encounter` and
|
|
75
|
+
* `ceremony-tail` site names at least one session kind in `reachedBy`, and
|
|
76
|
+
* every declaration
|
|
77
|
+
* listing `encounter` or `ceremony-tail` among its triggers is reported by
|
|
78
|
+
* a site of that trigger. A tail site is report-only, as a routing site
|
|
79
|
+
* is: the ceremony's own sequenced code converges, and the site says which
|
|
80
|
+
* invariants it reports.
|
|
77
81
|
*
|
|
78
82
|
* @param options {object}
|
|
79
83
|
* @param options.declarations {ReadonlyArray<InvariantDeclaration>}
|
|
@@ -81,8 +85,9 @@ export declare function heldAuthorities({ kind }: {
|
|
|
81
85
|
* registration site, any trigger, in execution order within a trigger
|
|
82
86
|
* @returns {MenderRegistry}
|
|
83
87
|
* @throws {TypeError} on a duplicated declaration id, an undeclared
|
|
84
|
-
* report, a guard on a non-routing site, an encounter
|
|
85
|
-
* or an encounter trigger no
|
|
88
|
+
* report, a guard on a non-routing site, an encounter or ceremony-tail
|
|
89
|
+
* site with no reach, or an encounter or ceremony-tail trigger no site of
|
|
90
|
+
* that trigger backs
|
|
86
91
|
*/
|
|
87
92
|
export declare function menderRegistry<Site extends RegistrationSite, Deps, Ceremony extends string = string>({ declarations, sites }: {
|
|
88
93
|
declarations: ReadonlyArray<InvariantDeclaration<Deps, Ceremony>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/menders/registry.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAC3C,OAAO,KAAK,EACV,oBAAoB,EACpB,UAAU,EACV,gBAAgB,EACjB,MAAM,YAAY,CAAA;AACnB,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE9D;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,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,KAAK,EAAE,aAAa,CAAC,IAAI,CAAC,CAAA;CAC3B,GAAG,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,CAAC,CA4EvC"}
|
package/dist/menders/registry.js
CHANGED
|
@@ -14,9 +14,13 @@ export function heldAuthorities({ kind }) {
|
|
|
14
14
|
/**
|
|
15
15
|
* Builds the readers over one wallet's declarations and sites, checking
|
|
16
16
|
* both once: every declaration id is unique, every reported id is declared,
|
|
17
|
-
* only a `login-routing` site carries `guardedBy`, every `encounter`
|
|
18
|
-
* names at least one session kind in `reachedBy`, and
|
|
19
|
-
*
|
|
17
|
+
* only a `login-routing` site carries `guardedBy`, every `encounter` and
|
|
18
|
+
* `ceremony-tail` site names at least one session kind in `reachedBy`, and
|
|
19
|
+
* every declaration
|
|
20
|
+
* listing `encounter` or `ceremony-tail` among its triggers is reported by
|
|
21
|
+
* a site of that trigger. A tail site is report-only, as a routing site
|
|
22
|
+
* is: the ceremony's own sequenced code converges, and the site says which
|
|
23
|
+
* invariants it reports.
|
|
20
24
|
*
|
|
21
25
|
* @param options {object}
|
|
22
26
|
* @param options.declarations {ReadonlyArray<InvariantDeclaration>}
|
|
@@ -24,8 +28,9 @@ export function heldAuthorities({ kind }) {
|
|
|
24
28
|
* registration site, any trigger, in execution order within a trigger
|
|
25
29
|
* @returns {MenderRegistry}
|
|
26
30
|
* @throws {TypeError} on a duplicated declaration id, an undeclared
|
|
27
|
-
* report, a guard on a non-routing site, an encounter
|
|
28
|
-
* or an encounter trigger no
|
|
31
|
+
* report, a guard on a non-routing site, an encounter or ceremony-tail
|
|
32
|
+
* site with no reach, or an encounter or ceremony-tail trigger no site of
|
|
33
|
+
* that trigger backs
|
|
29
34
|
*/
|
|
30
35
|
export function menderRegistry({ declarations, sites }) {
|
|
31
36
|
const index = new Map();
|
|
@@ -42,23 +47,29 @@ export function menderRegistry({ declarations, sites }) {
|
|
|
42
47
|
}
|
|
43
48
|
return decl;
|
|
44
49
|
};
|
|
45
|
-
const
|
|
50
|
+
const reachTriggers = ['encounter', 'ceremony-tail'];
|
|
51
|
+
const backedBy = {
|
|
52
|
+
encounter: new Set(),
|
|
53
|
+
'ceremony-tail': new Set()
|
|
54
|
+
};
|
|
46
55
|
for (const site of sites) {
|
|
47
56
|
site.reports.forEach(requireDeclared);
|
|
48
57
|
const { trigger, guardedBy, reachedBy } = site;
|
|
49
58
|
if (guardedBy !== undefined && trigger !== 'login-routing') {
|
|
50
59
|
throw new TypeError(`A ${trigger} site carries a guard; only a login-routing site may`);
|
|
51
60
|
}
|
|
52
|
-
if (trigger === 'encounter') {
|
|
61
|
+
if (trigger === 'encounter' || trigger === 'ceremony-tail') {
|
|
53
62
|
if (!reachedBy || reachedBy.length === 0) {
|
|
54
|
-
throw new TypeError(`
|
|
63
|
+
throw new TypeError(`A ${trigger} site names no session kind that reaches it: ${site.reports.join(', ')}`);
|
|
55
64
|
}
|
|
56
|
-
site.reports.forEach(id =>
|
|
65
|
+
site.reports.forEach(id => backedBy[trigger].add(id));
|
|
57
66
|
}
|
|
58
67
|
}
|
|
59
68
|
for (const decl of declarations) {
|
|
60
|
-
|
|
61
|
-
|
|
69
|
+
for (const trigger of reachTriggers) {
|
|
70
|
+
if (decl.triggers.includes(trigger) && !backedBy[trigger].has(decl.id)) {
|
|
71
|
+
throw new TypeError(`An invariant lists the ${trigger} trigger but no ${trigger} site reports it: ${decl.id}`);
|
|
72
|
+
}
|
|
62
73
|
}
|
|
63
74
|
}
|
|
64
75
|
const admits = ({ site, held, route }) => site.reports.every(id => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/menders/registry.ts"],"names":[],"mappings":"AAoEA;;;;;;;;;GASG;AACH,MAAM,UAAU,eAAe,CAAC,EAC9B,IAAI,EAGL;IACC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,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,eAAe,CAAC,EAAE,CAAC,CAAA;QAChC,OAAO,CACL,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC;YAC7B,CAAC,KAAK,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CACxD,CAAA;IACH,CAAC,CAAC,CAAA;IACJ,OAAO;QACL,GAAG,EAAE,GAAG,EAAE,CAAC,YAAY;QACvB,IAAI,EAAE,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;QACzB,KAAK,EAAE,GAAG,EAAE,CAAC,KAAK;QAClB,MAAM;QACN,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,CAClC,KAAK,CAAC,MAAM,CACV,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,KAAK,OAAO,IAAI,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAClE;KACJ,CAAA;AACH,CAAC"}
|
package/dist/menders/runner.d.ts
CHANGED
|
@@ -91,8 +91,9 @@ export declare function mendReportAccumulator<Ceremony extends string = string>(
|
|
|
91
91
|
* reported, once per entry.
|
|
92
92
|
*
|
|
93
93
|
* `trigger` is one of the two chain values, so a `ceremony-tail` entry is
|
|
94
|
-
* out of reach here. Such an entry has
|
|
95
|
-
* stays inside its ceremony's sequenced code and it
|
|
94
|
+
* out of reach here. Such an entry has a report-only site and no
|
|
95
|
+
* `converge`: its body stays inside its ceremony's sequenced code and it
|
|
96
|
+
* reports from there.
|
|
96
97
|
*
|
|
97
98
|
* `Deps` is the wallet's own type, one object per registration block,
|
|
98
99
|
* handed to the seed and to every `converge` unread. This runner never
|
|
@@ -190,4 +191,20 @@ export declare function runMenderRegistration<Deps, Ceremony extends string = st
|
|
|
190
191
|
entries: MendReport<Ceremony>;
|
|
191
192
|
threw: boolean;
|
|
192
193
|
}>;
|
|
194
|
+
/**
|
|
195
|
+
* Whether a site's entries match its `reports`: the entries name the site's
|
|
196
|
+
* reported invariants, in that order, and no others. The runner holds a
|
|
197
|
+
* converging registration's return to this rule, and a report-only site (a
|
|
198
|
+
* routing site, a self-calling encounter site, a ceremony tail) holds the
|
|
199
|
+
* entries it records to the same one.
|
|
200
|
+
*
|
|
201
|
+
* @param options {object}
|
|
202
|
+
* @param options.site {RegistrationSite}
|
|
203
|
+
* @param options.entries {ReadonlyArray<MendReportEntry>}
|
|
204
|
+
* @returns {boolean}
|
|
205
|
+
*/
|
|
206
|
+
export declare function matchesReports<Ceremony extends string = string>({ site, entries }: {
|
|
207
|
+
site: RegistrationSite;
|
|
208
|
+
entries: ReadonlyArray<MendReportEntry<Ceremony>>;
|
|
209
|
+
}): boolean;
|
|
193
210
|
//# sourceMappingURL=runner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../src/menders/runner.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,eAAe,EACf,YAAY,EACZ,gBAAgB,EACjB,MAAM,YAAY,CAAA;AACnB,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE9D;;;GAGG;AACH,eAAO,MAAM,uBAAuB,yBAAyB,CAAA;AAE7D;;;;;;;GAOG;AACH,MAAM,WAAW,qBAAqB,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM;IACrE;;;;;;;;;;OAUG;IACH,MAAM,CAAC,KAAK,EAAE,eAAe,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAA;IAC3E;;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C,CAoChC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAsB,qBAAqB,CACzC,IAAI,EACJ,QAAQ,SAAS,MAAM,GAAG,MAAM,EAChC,IAAI,SAAS,gBAAgB,GAAG,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC,EAC5D,EACA,QAAQ,EACR,YAAY,EACZ,IAAI,EACJ,MAAM,EACN,KAAK,EACN,EAAE;IACD,QAAQ,EAAE,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAA;IAC9C,YAAY,EAAE,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAA;IAC1C,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,qBAAqB,CAAC,QAAQ,CAAC,CAAA;CACxC,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAAC,CAiB7D;AA6ED;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM,EAAE,EAC/D,IAAI,EACJ,OAAO,EACR,EAAE;IACD,IAAI,EAAE,gBAAgB,CAAA;IACtB,OAAO,EAAE,aAAa,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAA;CAClD,GAAG,OAAO,CAKV"}
|
package/dist/menders/runner.js
CHANGED
|
@@ -92,8 +92,9 @@ export function mendReportAccumulator({ logger } = {}) {
|
|
|
92
92
|
* reported, once per entry.
|
|
93
93
|
*
|
|
94
94
|
* `trigger` is one of the two chain values, so a `ceremony-tail` entry is
|
|
95
|
-
* out of reach here. Such an entry has
|
|
96
|
-
* stays inside its ceremony's sequenced code and it
|
|
95
|
+
* out of reach here. Such an entry has a report-only site and no
|
|
96
|
+
* `converge`: its body stays inside its ceremony's sequenced code and it
|
|
97
|
+
* reports from there.
|
|
97
98
|
*
|
|
98
99
|
* `Deps` is the wallet's own type, one object per registration block,
|
|
99
100
|
* handed to the seed and to every `converge` unread. This runner never
|
|
@@ -228,7 +229,7 @@ async function convergeUnderDiscipline({ registry, registration, deps, logger })
|
|
|
228
229
|
const { trigger } = registration;
|
|
229
230
|
try {
|
|
230
231
|
const entries = await registration.converge(deps);
|
|
231
|
-
if (!matchesReports({ registration, entries })) {
|
|
232
|
+
if (!matchesReports({ site: registration, entries })) {
|
|
232
233
|
logger.warn('A mender registration returned entries that do not match the invariants it reports', { trigger, reports: [...registration.reports] });
|
|
233
234
|
// A malformed return is a defect in the adapter rather than a mend
|
|
234
235
|
// failure: the step ran to completion, so a malformed seed does not
|
|
@@ -273,12 +274,20 @@ function isRegistration(site) {
|
|
|
273
274
|
return typeof site.converge === 'function';
|
|
274
275
|
}
|
|
275
276
|
/**
|
|
276
|
-
* Whether a
|
|
277
|
-
* order.
|
|
277
|
+
* Whether a site's entries match its `reports`: the entries name the site's
|
|
278
|
+
* reported invariants, in that order, and no others. The runner holds a
|
|
279
|
+
* converging registration's return to this rule, and a report-only site (a
|
|
280
|
+
* routing site, a self-calling encounter site, a ceremony tail) holds the
|
|
281
|
+
* entries it records to the same one.
|
|
282
|
+
*
|
|
283
|
+
* @param options {object}
|
|
284
|
+
* @param options.site {RegistrationSite}
|
|
285
|
+
* @param options.entries {ReadonlyArray<MendReportEntry>}
|
|
286
|
+
* @returns {boolean}
|
|
278
287
|
*/
|
|
279
|
-
function matchesReports({
|
|
280
|
-
return (entries.length ===
|
|
281
|
-
entries.every((entry, index) => entry.invariant ===
|
|
288
|
+
export function matchesReports({ site, entries }) {
|
|
289
|
+
return (entries.length === site.reports.length &&
|
|
290
|
+
entries.every((entry, index) => entry.invariant === site.reports[index]));
|
|
282
291
|
}
|
|
283
292
|
/**
|
|
284
293
|
* One `failed` entry per reported invariant, carrying the declaration's
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner.js","sourceRoot":"","sources":["../../src/menders/runner.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAY7C;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,sBAAsB,CAAA;AAuC7D;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,qBAAqB,CAAmC,EACtE,MAAM,KACiB,EAAE;IACzB,MAAM,QAAQ,GAAqC,EAAE,CAAA;IACrD,IAAI,cAAc,GAA2C,GAAG,EAAE,CAAC,SAAS,CAAA;IAC5E,MAAM,OAAO,GAAG,IAAI,OAAO,CAAuB,OAAO,CAAC,EAAE;QAC1D,cAAc,GAAG,OAAO,CAAA;IAC1B,CAAC,CAAC,CAAA;IACF,IAAI,SAA2C,CAAA;IAC/C,OAAO;QACL,MAAM,CAAC,KAAK,EAAE,EAAE,GAAG,KAAwB,EAAE;YAC3C,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;YACpB,IAAI,MAAM,EAAE,CAAC;gBACX,yDAAyD;gBACzD,WAAW,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;YAC1C,CAAC;QACH,CAAC;QACD,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,QAAQ,CAAC;QAC5B,MAAM;YACJ,IAAI,CAAC,SAAS,EAAE,CAAC;gBACf,SAAS,GAAG,CAAC,GAAG,QAAQ,CAAC,CAAA;gBACzB,cAAc,CAAC,SAAS,CAAC,CAAA;YAC3B,CAAC;YACD,OAAO,SAAS,CAAA;QAClB,CAAC;QACD,OAAO;KACR,CAAA;AACH,CAAC;AAED
|
|
1
|
+
{"version":3,"file":"runner.js","sourceRoot":"","sources":["../../src/menders/runner.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;GAcG;AACH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CAIpB,EACA,QAAQ,EACR,YAAY,EACZ,SAAS,EAKV;IACC,OAAO,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE;QACnC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,UAAU,CAAA;QAChD,OAAO;YACL,SAAS,EAAE,EAAE;YACb,OAAO,EAAE,QAAiB;YAC1B,SAAS;YACT,GAAG,CAAC,UAAU,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAC/D,CAAA;IACH,CAAC,CAAC,CAAA;AACJ,CAAC"}
|
package/dist/menders/types.d.ts
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* feed the same readers.
|
|
13
13
|
*/
|
|
14
14
|
import type { InvariantId } from './ids.js';
|
|
15
|
-
import type { AccountShape, Authority, Evidence, GapKind, MendOutcomeKind, Trigger } from './vocabulary.js';
|
|
15
|
+
import type { AccountShape, Authority, ChainTrigger, Evidence, GapKind, MendOutcomeKind, Trigger } from './vocabulary.js';
|
|
16
16
|
/**
|
|
17
17
|
* The login route a declaration's `when` predicate reads: the popup axis
|
|
18
18
|
* alone today, the CHAPI popup being the one route on which several chain
|
|
@@ -86,12 +86,15 @@ export interface InvariantDeclaration<Deps, Ceremony extends string = string> {
|
|
|
86
86
|
* or ceremony-tail site cannot carry one and the chain readers never have
|
|
87
87
|
* to honor it. An encounter site says which session kinds reach the read or
|
|
88
88
|
* write it rides, in `reachedBy`, since an encounter on a page a transient
|
|
89
|
-
* session never renders mends nothing on a credential-anchored account.
|
|
90
|
-
* site
|
|
91
|
-
*
|
|
89
|
+
* session never renders mends nothing on a credential-anchored account. A
|
|
90
|
+
* ceremony-tail site says the same of the ceremony it closes, since a tail
|
|
91
|
+
* on a ceremony only a remembered session runs (the forget ceremony,
|
|
92
|
+
* update-key rotation) reaches no credential-only visit. One site carries
|
|
93
|
+
* one reach: a call converging two invariants with different reach is
|
|
94
|
+
* declared as two sites.
|
|
92
95
|
*/
|
|
93
96
|
export type RegistrationSite = {
|
|
94
|
-
trigger:
|
|
97
|
+
trigger: ChainTrigger;
|
|
95
98
|
reports: ReadonlyArray<InvariantId>;
|
|
96
99
|
guardedBy?: undefined;
|
|
97
100
|
reachedBy?: undefined;
|
|
@@ -101,7 +104,7 @@ export type RegistrationSite = {
|
|
|
101
104
|
guardedBy?: 'client-key-record';
|
|
102
105
|
reachedBy?: undefined;
|
|
103
106
|
} | {
|
|
104
|
-
trigger: 'encounter';
|
|
107
|
+
trigger: 'encounter' | 'ceremony-tail';
|
|
105
108
|
reports: ReadonlyArray<InvariantId>;
|
|
106
109
|
guardedBy?: undefined;
|
|
107
110
|
reachedBy: ReadonlyArray<'remembered' | 'transient'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/menders/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAC3C,OAAO,KAAK,EACV,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,OAAO,EACP,eAAe,EACf,OAAO,EACR,MAAM,iBAAiB,CAAA;AAExB;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,OAAO,CAAA;CACf;AAED;;;;;;GAMG;AACH,MAAM,WAAW,oBAAoB,CAAC,IAAI,EAAE,QAAQ,SAAS,MAAM,GAAG,MAAM;IAC1E;;OAEG;IACH,EAAE,EAAE,WAAW,CAAA;IACf;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IACjB;;OAEG;IACH,QAAQ,EAAE,aAAa,CAAC,YAAY,CAAC,CAAA;IACrC;;;;OAIG;IACH,SAAS,EAAE,SAAS,CAAA;IACpB;;OAEG;IACH,QAAQ,EAAE,aAAa,CAAC,OAAO,CAAC,C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,MAAM,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe,CAC9B,QAAQ,SAAS,MAAM,GAAG,MAAM,CAChC,SAAQ,WAAW;IACnB,SAAS,EAAE,WAAW,CAAA;IACtB,UAAU,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAA;CACrC;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM,IAAI,aAAa,CACtE,eAAe,CAAC,QAAQ,CAAC,CAC1B,CAAA;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,WAAW,CAAA;IACtB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,aAAa,CAAC,YAAY,CAAC,CAAA;IACrC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,OAAO,CAAA;CACd"}
|
|
@@ -33,7 +33,7 @@ export { ZCAP_RENEWAL_WINDOW_MS, zcapExpiring } from '../webvh/standingZcap.js';
|
|
|
33
33
|
*/
|
|
34
34
|
function didLogUrl({ pointer }) {
|
|
35
35
|
return toUrl({
|
|
36
|
-
|
|
36
|
+
baseUrl: pointer.host,
|
|
37
37
|
path: resourcePath(pointer.spaceId, ID_COLLECTION.id, DID_LOG_RESOURCE)
|
|
38
38
|
});
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recoveryDelegation.js","sourceRoot":"","sources":["../../src/recovery/recoveryDelegation.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAEzE,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,0BAA0B,CAAA;AAEjC;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,o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|
|
|
75
75
|
* the credential-inventory accessor at a given version, which is what
|
|
76
76
|
* evaluating the ceremony-tail license and recognizing a ladder-signed
|
|
77
77
|
* append require (neither is answered by `documentAt` alone, which the
|
|
78
|
-
* library reads only for `assertionMethod`), plus the library's optional
|
|
79
|
-
* mandatory -- an account did:webvh
|
|
80
|
-
* over one must answer the
|
|
81
|
-
* obligation), whichever log class's
|
|
78
|
+
* library reads only for `assertionMethod`), plus the library's optional
|
|
79
|
+
* `admitAppend` admission hook made mandatory -- an account did:webvh
|
|
80
|
+
* document can list ladder VMs, so a view over one must answer the
|
|
81
|
+
* admission question (the port's stated obligation), whichever log class's
|
|
82
|
+
* rule that answer comes from. The
|
|
82
83
|
* pre-append license check in the log-governed descriptor store calls
|
|
83
84
|
* `inventoryAt` directly, which is why the accessor stays on the type
|
|
84
85
|
* beside the hook: a verify-time refusal alone would poison the served log
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../src/resourceLog/controller.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,KAAK,EAAE,MAAM,EAAe,MAAM,2BAA2B,CAAA;AACpE,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,0BAA0B,CAAA;AAOjC,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,kBAAkB,CAAA;AAGzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACvB,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC1B,kBAAkB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC/B,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC5B,cAAc,EAAE,cAAc,CAAA;CAC/B;AAED
|
|
1
|
+
{"version":3,"file":"controller.d.ts","source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