@econ-v1/rpc 7.6.220 → 7.6.223
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/dist/device-boot-contract.d.ts +111 -1
- package/dist/device-boot-contract.d.ts.map +1 -1
- package/dist/dialog-contract.d.ts +1 -1
- package/dist/dialog-contract.d.ts.map +1 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/onboarding/onboarding-contract.d.ts +1 -1
- package/dist/onboarding/onboarding-contract.d.ts.map +1 -1
- package/dist/protocol.d.ts.map +1 -1
- package/dist/stage-context.d.ts +36 -0
- package/dist/stage-context.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/device-boot-contract.js +66 -2
- package/src/dialog-contract.js +3 -1
- package/src/index.js +8 -1
- package/src/onboarding/onboarding-contract.js +3 -1
- package/src/protocol.js +27 -1
- package/src/stage-context.js +21 -0
|
@@ -1,15 +1,125 @@
|
|
|
1
|
+
/** @typedef {{ readonly id: "boot-state"; readonly kind: "unpaired" | "paired" | "paired-expired" | "revoked" | "key-unusable" | "signed-out"; readonly delegationExpiresAt?: string; readonly detectedAt?: string; readonly reason?: string; readonly sessionRefused?: true; readonly pairingRequired?: true; readonly removalPending?: true; }} DeviceBootStateRow */
|
|
2
|
+
/** `removalPending` on a `"signed-out"` row (ADR-332 Amendment 1): the sign-out's removal of local
|
|
3
|
+
* data is unfinished (the marker's `wipe` is `"pending"`); a start or the person's sign-in
|
|
4
|
+
* finishes it, and the row is published again when it does. */
|
|
5
|
+
/** `pairingRequired` on an `"unpaired"` row (ADR-332): the node refused this device when the
|
|
6
|
+
* person asked to sign in again, and they have not acted since. The gate shows pairing without
|
|
7
|
+
* asking the node, so a later start cannot sign this browser in by itself. */
|
|
8
|
+
/** What `device.sign-out.v1` answers. `node` is one of {@link DEVICE_SIGN_OUT_NODE_RESULTS}:
|
|
9
|
+
* `"told"` when the node accepted this device's sign-out (ADR-332 Amendment 1, ADR-347): it ended
|
|
10
|
+
* this device's sessions without removing the device. It is `"unknown"` when the signed request
|
|
11
|
+
* was sent and no answer came back (a connection lost on the way back, or the deadline after
|
|
12
|
+
* sending): the node may have ended the sessions, and a later start tells it again. It is
|
|
13
|
+
* `"not-told"` for every other outcome, a node that does not know the request and one that could
|
|
14
|
+
* not be reached within 5 seconds included; the node's copy of the credential then stays valid
|
|
15
|
+
* until the node is told at a later start, the person signs in again, or it expires. None is an
|
|
16
|
+
* error: the browser is signed out either way. A repeated command answers what was recorded.
|
|
17
|
+
* `unsentDiscarded` counts the changes that were still waiting to be sent and were discarded.
|
|
18
|
+
* A sign-out that could not remove everything yet is rejected with code `conflict` and
|
|
19
|
+
* `details.reason === DEVICE_SIGN_OUT_LOCAL_DATA_PENDING`: the person is signed out all the same.
|
|
20
|
+
* @typedef {{ readonly node: DeviceSignOutNodeResult; readonly unsentDiscarded: number }} DeviceSignOutResult */
|
|
21
|
+
/** What the browser knows of its node after a sign-out: one of {@link DEVICE_SIGN_OUT_NODE_RESULTS}.
|
|
22
|
+
* @typedef {(typeof DEVICE_SIGN_OUT_NODE_RESULTS)[number]} DeviceSignOutNodeResult */
|
|
23
|
+
/** The one row of `device.sign-out-preview.v1`. `unsentChanges` is the number of changes made in
|
|
24
|
+
* this browser that have not reached the node, counted the way `device.sign-out.v1` counts the
|
|
25
|
+
* changes it discards: every identity scope's outbox and the older shared outbox, waiting or
|
|
26
|
+
* being sent. It is absent when the local database cannot be read right now; nothing can be
|
|
27
|
+
* counted then, and nothing can be sent either.
|
|
28
|
+
* @typedef {{ readonly id: "sign-out-preview"; readonly unsentChanges?: number }} DeviceSignOutPreviewRow */
|
|
29
|
+
/** What `device.sign-in.v1` answers. `established` says whether the session ceremony it ran was
|
|
30
|
+
* accepted; when it was not, the browser is still signed out. On a browser that is not signed
|
|
31
|
+
* out the command does nothing and answers `{ established: false, reason: "not-signed-out" }`.
|
|
32
|
+
* @typedef {{ readonly established: boolean; readonly reason?: "not-signed-out" }} DeviceSignInResult */
|
|
1
33
|
export const DEVICE_BOOT_STATE_QUERY: "device.boot-state.v1";
|
|
2
34
|
/** The node refused this browser's session (`device_not_registered`). The device stays paired on
|
|
3
35
|
* this browser; the owner chooses between retrying and signing out. */
|
|
4
36
|
export const DEVICE_SESSION_RETRY_COMMAND: "device.session-refusal.retry.v1";
|
|
5
37
|
/** Explicit, owner-confirmed sign-out after a refused session: drops the delegation only. */
|
|
6
38
|
export const DEVICE_SESSION_SIGN_OUT_COMMAND: "device.session-refusal.sign-out.v1";
|
|
39
|
+
/**
|
|
40
|
+
* The person's own sign-out (ADR-332): removes this browser's credentials and every piece of
|
|
41
|
+
* local user data, keeps the device key, and leaves `device.boot-state.v1` at `"signed-out"`.
|
|
42
|
+
* Payload `{ confirmation: DEVICE_SIGN_OUT_CONFIRMATION }`; answers {@link DeviceSignOutResult}.
|
|
43
|
+
* Only a person's explicit action may send it. Nothing the browser observes on its own does.
|
|
44
|
+
*/
|
|
45
|
+
export const DEVICE_SIGN_OUT_COMMAND: "device.sign-out.v1";
|
|
46
|
+
/**
|
|
47
|
+
* Every value `device.sign-out.v1` can answer for `node` (ADR-332 Amendment 1): the node is told
|
|
48
|
+
* to end this device's sessions, and nothing else on it changes. The Sign out confirmation tells
|
|
49
|
+
* the person "Your node is told to end this browser's sessions. Nothing else on your node
|
|
50
|
+
* changes, and your other devices are not changed." because of these values, and
|
|
51
|
+
* `client/ui/src/shell/profile-sign-out.test.js` holds the two together: a sign-out that answers
|
|
52
|
+
* anything else for the node changes this list, and that test, and that sentence.
|
|
53
|
+
*/
|
|
54
|
+
export const DEVICE_SIGN_OUT_NODE_RESULTS: readonly ["told", "not-told", "unknown"];
|
|
55
|
+
/** The literal `device.sign-out.v1` requires, so it cannot be sent by accident. */
|
|
56
|
+
export const DEVICE_SIGN_OUT_CONFIRMATION: "SIGN OUT AND REMOVE LOCAL DATA";
|
|
57
|
+
/** `details.reason` of the `conflict` that `device.sign-out.v1` and `device.sign-in.v1` answer
|
|
58
|
+
* while some local data a sign-out removes is still there. After `device.sign-out.v1` the person
|
|
59
|
+
* is signed out all the same; the removal runs again at the next start. */
|
|
60
|
+
export const DEVICE_SIGN_OUT_LOCAL_DATA_PENDING: "sign-out-local-data-pending";
|
|
61
|
+
/**
|
|
62
|
+
* What signing out of this browser would discard, read before the person confirms it
|
|
63
|
+
* (ADR-332 Amendment 1): one {@link DeviceSignOutPreviewRow}, live, re-read whenever the outbox
|
|
64
|
+
* changes. It changes nothing and is served whether or not local services have started, as the
|
|
65
|
+
* sign-out itself is.
|
|
66
|
+
*/
|
|
67
|
+
export const DEVICE_SIGN_OUT_PREVIEW_QUERY: "device.sign-out-preview.v1";
|
|
68
|
+
/** The person's own sign-in on a signed-out browser: runs the ordinary session ceremony with
|
|
69
|
+
* the kept device key, and the signed-out state ends when that ceremony's credential is stored.
|
|
70
|
+
* A removal the sign-out left unfinished is finished first, or the command is rejected with
|
|
71
|
+
* `details.reason === DEVICE_SIGN_OUT_LOCAL_DATA_PENDING`. Payload `{}`; answers {@link DeviceSignInResult}. */
|
|
72
|
+
export const DEVICE_SIGN_IN_COMMAND: "device.sign-in.v1";
|
|
7
73
|
export type DeviceBootStateRow = {
|
|
8
74
|
readonly id: "boot-state";
|
|
9
|
-
readonly kind: "unpaired" | "paired" | "paired-expired" | "revoked" | "key-unusable";
|
|
75
|
+
readonly kind: "unpaired" | "paired" | "paired-expired" | "revoked" | "key-unusable" | "signed-out";
|
|
10
76
|
readonly delegationExpiresAt?: string;
|
|
11
77
|
readonly detectedAt?: string;
|
|
12
78
|
readonly reason?: string;
|
|
13
79
|
readonly sessionRefused?: true;
|
|
80
|
+
readonly pairingRequired?: true;
|
|
81
|
+
readonly removalPending?: true;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* What `device.sign-out.v1` answers. `node` is one of {@link DEVICE_SIGN_OUT_NODE_RESULTS}:
|
|
85
|
+
* `"told"` when the node accepted this device's sign-out (ADR-332 Amendment 1, ADR-347): it ended
|
|
86
|
+
* this device's sessions without removing the device. It is `"unknown"` when the signed request
|
|
87
|
+
* was sent and no answer came back (a connection lost on the way back, or the deadline after
|
|
88
|
+
* sending): the node may have ended the sessions, and a later start tells it again. It is
|
|
89
|
+
* `"not-told"` for every other outcome, a node that does not know the request and one that could
|
|
90
|
+
* not be reached within 5 seconds included; the node's copy of the credential then stays valid
|
|
91
|
+
* until the node is told at a later start, the person signs in again, or it expires. None is an
|
|
92
|
+
* error: the browser is signed out either way. A repeated command answers what was recorded.
|
|
93
|
+
* `unsentDiscarded` counts the changes that were still waiting to be sent and were discarded.
|
|
94
|
+
* A sign-out that could not remove everything yet is rejected with code `conflict` and
|
|
95
|
+
* `details.reason === DEVICE_SIGN_OUT_LOCAL_DATA_PENDING`: the person is signed out all the same.
|
|
96
|
+
*/
|
|
97
|
+
export type DeviceSignOutResult = {
|
|
98
|
+
readonly node: DeviceSignOutNodeResult;
|
|
99
|
+
readonly unsentDiscarded: number;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* What the browser knows of its node after a sign-out: one of {@link DEVICE_SIGN_OUT_NODE_RESULTS}.
|
|
103
|
+
*/
|
|
104
|
+
export type DeviceSignOutNodeResult = (typeof DEVICE_SIGN_OUT_NODE_RESULTS)[number];
|
|
105
|
+
/**
|
|
106
|
+
* The one row of `device.sign-out-preview.v1`. `unsentChanges` is the number of changes made in
|
|
107
|
+
* this browser that have not reached the node, counted the way `device.sign-out.v1` counts the
|
|
108
|
+
* changes it discards: every identity scope's outbox and the older shared outbox, waiting or
|
|
109
|
+
* being sent. It is absent when the local database cannot be read right now; nothing can be
|
|
110
|
+
* counted then, and nothing can be sent either.
|
|
111
|
+
*/
|
|
112
|
+
export type DeviceSignOutPreviewRow = {
|
|
113
|
+
readonly id: "sign-out-preview";
|
|
114
|
+
readonly unsentChanges?: number;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* What `device.sign-in.v1` answers. `established` says whether the session ceremony it ran was
|
|
118
|
+
* accepted; when it was not, the browser is still signed out. On a browser that is not signed
|
|
119
|
+
* out the command does nothing and answers `{ established: false, reason: "not-signed-out" }`.
|
|
120
|
+
*/
|
|
121
|
+
export type DeviceSignInResult = {
|
|
122
|
+
readonly established: boolean;
|
|
123
|
+
readonly reason?: "not-signed-out";
|
|
14
124
|
};
|
|
15
125
|
//# sourceMappingURL=device-boot-contract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-boot-contract.d.ts","sourceRoot":"","sources":["../src/device-boot-contract.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"device-boot-contract.d.ts","sourceRoot":"","sources":["../src/device-boot-contract.js"],"names":[],"mappings":"AACA,yWAAyW;AACzW;;+DAE+D;AAC/D;;8EAE8E;AAC9E;;;;;;;;;;;;iHAYiH;AACjH;sFACsF;AACtF;;;;;6GAK6G;AAC7G;;;yGAGyG;AACzG,sCAA6D,sBAAsB,CAAE;AACrF;uEACuE;AACvE,2CAAkE,iCAAiC,CAAE;AACrG,6FAA6F;AAC7F,8CAAqE,oCAAoC,CAAE;AAC3G;;;;;GAKG;AACH,sCAA6D,oBAAoB,CAAE;AACnF;;;;;;;GAOG;AACH,oFAAmG;AACnG,mFAAmF;AACnF,2CAAkE,gCAAgC,CAAE;AACpG;;2EAE2E;AAC3E,iDAAwE,6BAA6B,CAAE;AACvG;;;;;GAKG;AACH,4CAAmE,4BAA4B,CAAE;AACjG;;;gHAGgH;AAChH,qCAA4D,mBAAmB,CAAE;iCAvElE;IAAE,QAAQ,CAAC,EAAE,EAAE,YAAY,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,UAAU,GAAG,QAAQ,GAAG,gBAAgB,GAAG,SAAS,GAAG,cAAc,GAAG,YAAY,CAAC;IAAC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,IAAI,CAAC;CAAE;;;;;;;;;;;;;;;kCAmBrU;IAAE,QAAQ,CAAC,IAAI,EAAE,uBAAuB,CAAC;IAAC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAA;CAAE;;;;sCAE5E,CAAC,OAAO,4BAA4B,EAAE,MAAM,CAAC;;;;;;;;sCAM7C;IAAE,QAAQ,CAAC,EAAE,EAAE,kBAAkB,CAAC;IAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAA;CAAE;;;;;;iCAIpE;IAAE,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,gBAAgB,CAAA;CAAE"}
|
|
@@ -8,7 +8,7 @@ export type DialogAction = {
|
|
|
8
8
|
};
|
|
9
9
|
export type DialogRequest = {
|
|
10
10
|
readonly body: readonly string[];
|
|
11
|
-
readonly emphasis?: string;
|
|
11
|
+
readonly emphasis?: string | undefined;
|
|
12
12
|
readonly initialFocus?: string;
|
|
13
13
|
readonly actions: readonly DialogAction[];
|
|
14
14
|
readonly title: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog-contract.d.ts","sourceRoot":"","sources":["../src/dialog-contract.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dialog-contract.d.ts","sourceRoot":"","sources":["../src/dialog-contract.js"],"names":[],"mappings":"2BAGc;IAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;CAAE;4BAChN;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,SAAS,YAAY,EAAE,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE;2BAC/K;IAAE,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAAC,KAAK,IAAI,IAAI,CAAC;IAAC,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;IAAC,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,IAAI,CAAA;CAAE;2BACzM;IAAE,IAAI,CAAC,OAAO,EAAE,aAAa,GAAG,YAAY,CAAA;CAAE"}
|
package/dist/index.d.ts
CHANGED
|
@@ -168,6 +168,10 @@ export type MentionablePeerRow = import("./peers-contract.js").MentionablePeerRo
|
|
|
168
168
|
export type PeerIntent = import("./peers-contract.js").PeerIntent;
|
|
169
169
|
export type ClientDevicePairingStatusRow = import("./pairing-status-contract.js").ClientDevicePairingStatusRow;
|
|
170
170
|
export type DeviceBootStateRow = import("./device-boot-contract.js").DeviceBootStateRow;
|
|
171
|
+
export type DeviceSignOutResult = import("./device-boot-contract.js").DeviceSignOutResult;
|
|
172
|
+
export type DeviceSignOutNodeResult = import("./device-boot-contract.js").DeviceSignOutNodeResult;
|
|
173
|
+
export type DeviceSignInResult = import("./device-boot-contract.js").DeviceSignInResult;
|
|
174
|
+
export type DeviceSignOutPreviewRow = import("./device-boot-contract.js").DeviceSignOutPreviewRow;
|
|
171
175
|
export type CleanupState = import("./device-cleanup-contract.js").CleanupState;
|
|
172
176
|
export type DeviceCleanupRequestResult = import("./device-cleanup-contract.js").DeviceCleanupRequestResult;
|
|
173
177
|
export type DeviceCleanupRow = import("./device-cleanup-contract.js").DeviceCleanupRow;
|
|
@@ -216,6 +220,9 @@ export type RpcEvent = import("./protocol.js").RpcEvent;
|
|
|
216
220
|
export type RpcRequest = import("./protocol.js").RpcRequest;
|
|
217
221
|
export type RpcResponse = import("./protocol.js").RpcResponse;
|
|
218
222
|
export type MountedStage = import("./stage-context.js").MountedStage;
|
|
223
|
+
export type StageCollectionDiff = import("./stage-context.js").StageCollectionDiff;
|
|
224
|
+
export type StageCollectionRow = import("./stage-context.js").StageCollectionRow;
|
|
225
|
+
export type StageCollectionStatus = import("./stage-context.js").StageCollectionStatus;
|
|
219
226
|
export type StageComposition = import("./stage-context.js").StageComposition;
|
|
220
227
|
export type StageLoadOptions = import("./stage-context.js").StageLoadOptions;
|
|
221
228
|
export type StageContext = import("./stage-context.js").StageContext;
|
|
@@ -280,7 +287,7 @@ export { SHELL_CONTEXT_DEVELOPER_MODE_FIELD, SHELL_CONTEXT_REPORT_COMMAND, shell
|
|
|
280
287
|
export { L402_ENFORCEMENT_QUERY, L402_ENFORCEMENT_ROW_ID, L402_ENFORCEMENT_SET_COMMAND } from "./l402-enforcement-contract.js";
|
|
281
288
|
export { isRouteMode, ROUTE_MODES } from "./model-picker-contract.js";
|
|
282
289
|
export { FACTORY_RESET_ARM_COMMAND, FACTORY_RESET_CANCEL_COMMAND, FACTORY_RESET_CHALLENGE_COMMAND, FACTORY_RESET_ROW_ID, FACTORY_RESET_STATUS_QUERY } from "./factory-reset-contract.js";
|
|
283
|
-
export { DEVICE_BOOT_STATE_QUERY, DEVICE_SESSION_RETRY_COMMAND, DEVICE_SESSION_SIGN_OUT_COMMAND } from "./device-boot-contract.js";
|
|
290
|
+
export { DEVICE_BOOT_STATE_QUERY, DEVICE_SESSION_RETRY_COMMAND, DEVICE_SESSION_SIGN_OUT_COMMAND, DEVICE_SIGN_IN_COMMAND, DEVICE_SIGN_OUT_COMMAND, DEVICE_SIGN_OUT_CONFIRMATION, DEVICE_SIGN_OUT_LOCAL_DATA_PENDING, DEVICE_SIGN_OUT_NODE_RESULTS, DEVICE_SIGN_OUT_PREVIEW_QUERY } from "./device-boot-contract.js";
|
|
284
291
|
export { SESSION_LEASE_CLAIM_COMMAND, SESSION_LEASE_QUERY, SESSION_LEASE_RELEASE_COMMAND, SESSION_LIMIT_QUERY, SESSION_LEASE_PAUSE_COMMAND, SESSION_LIMIT_SET_COMMAND, parseSessionLeaseClaimMode, parseSessionLeasePausePayload, parseSessionLimitSetPayload } from "./session-lease-contract.js";
|
|
285
292
|
export { PEER_INTENTS, PEERS_ASK_CANCEL_COMMAND, PEERS_COMPOSE_CANCEL_COMMAND, PEERS_COMPOSE_PREPARE_COMMAND, PEERS_COMPOSE_SEND_COMMAND, PEERS_MENTIONABLE_QUERY } from "./peers-contract.js";
|
|
286
293
|
export { CLIENT_DEVICE_PAIRING_STATUS_QUERY, isActivePairingResult, CLIENT_DEVICE_WIRE_ERROR_DELEGATION_REVOKED, CLIENT_DEVICE_WIRE_ERROR_DEVICE_LIMIT_EXCEEDED, CLIENT_DEVICE_WIRE_ERROR_DEVICE_NOT_REGISTERED, CLIENT_DEVICE_WIRE_ERROR_LAST_DEVICE, CLIENT_DEVICE_WIRE_ERROR_LAST_DEVICE_PROTECTED, CLIENT_DEVICE_WIRE_ERROR_NAME_TAKEN, CLIENT_DEVICE_WIRE_ERROR_REVOKED } from "./pairing-status-contract.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";;;;;;;;;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EAAE,cAAc;4BAExC,OAAO,iBAAiB,EAAE,aAAa;mCAEvC,OAAO,gBAAgB,EAAE,oBAAoB;mCAC7C,OAAO,gBAAgB,EAAE,oBAAoB;8BAC7C,OAAO,gBAAgB,EAAE,eAAe;iCACxC,OAAO,gBAAgB,EAAE,kBAAkB;kCAM3C,OAAO,4BAA4B,EAAE,mBAAmB;4BACxD,OAAO,4BAA4B,EAAE,aAAa;gCAElD,OAAO,mCAAmC,EAAE,iBAAiB;gCAO7D,OAAO,yBAAyB,EAAE,iBAAiB;2BAEnD,OAAO,6BAA6B,EAAE,YAAY;6BAElD,OAAO,gBAAgB,EAAE,cAAc;+BACvC,OAAO,gBAAgB,EAAE,gBAAgB;2BACzC,OAAO,gBAAgB,EAAE,YAAY;sCACrC,OAAO,gBAAgB,EAAE,uBAAuB;0BAEhD,OAAO,yBAAyB,EAAE,WAAW;8BAC7C,OAAO,yBAAyB,EAAE,eAAe"}
|
|
@@ -22,7 +22,7 @@ export const ONBOARDING_STEP_IDS: readonly ["join-qr", "open-browser", "choose-n
|
|
|
22
22
|
export type OnboardingScenario = "new" | "pair" | "wifi" | "expired" | "lost";
|
|
23
23
|
export type OnboardingScreen = "scan" | "invite" | "identity" | "matchcode" | "handoff" | "done";
|
|
24
24
|
export type OnboardingPhase = "connect" | "install" | "secure" | "identify" | "ready";
|
|
25
|
-
export type OnboardingLifecycleState = "bootstrap-required" | "needs-onboarding" | "needs-pairing" | "ready";
|
|
25
|
+
export type OnboardingLifecycleState = "bootstrap-required" | "needs-onboarding" | "needs-pairing" | "ready" | "signed-out";
|
|
26
26
|
export type OnboardingLifecycleReason = "unreachable" | "other-node";
|
|
27
27
|
export type OnboardingLifecycleStatus = {
|
|
28
28
|
readonly invitationsEnabled?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onboarding-contract.d.ts","sourceRoot":"","sources":["../../src/onboarding/onboarding-contract.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"on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AAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAAE,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,gBAAgB,CAAA;CAAE,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,sBAAsB,CAAA;CAAE,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAA;CAAE,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;CAAE"}
|
package/dist/protocol.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../src/protocol.js"],"names":[],"mappings":"AAmBA;;;GAGG;AACH,6CAHW,UAAU,GACR,MAAM,CA2ClB;AACD;;;GAGG;AACH,kDAHW,MAAM,GACJ,UAAU,CAoCtB;AAoBD;;;GAGG;AACH,+CAHW,WAAW,GACT,MAAM,CAMlB;AACD;;;GAGG;AACH,mDAHW,MAAM,GACJ,WAAW,CAUvB;AACD;;;GAGG;AACH,yCAHW,QAAQ,GACN,MAAM,CAclB;AACD;;;GAGG;AACH,gDAHW,MAAM,GACJ,QAAQ,CAwBpB;
|
|
1
|
+
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../src/protocol.js"],"names":[],"mappings":"AAmBA;;;GAGG;AACH,6CAHW,UAAU,GACR,MAAM,CA2ClB;AACD;;;GAGG;AACH,kDAHW,MAAM,GACJ,UAAU,CAoCtB;AAoBD;;;GAGG;AACH,+CAHW,WAAW,GACT,MAAM,CAMlB;AACD;;;GAGG;AACH,mDAHW,MAAM,GACJ,WAAW,CAUvB;AAC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AE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAA;CAAE,GACjE;IAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAA;CAAE,GACjG;IAAE,QAAQ,CAAC,KAAK,EAAE,mBAAmB,CAAC;IAAC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAA;CAAE,GACvG;IAAE,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAC;IAAC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAA;CAAE;uCA/xCpG;IAAE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE;QAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,wBAAwB,CAAA;CAAE;kCACvH,WAAW,GAAG,wBAAwB;0CACtC,mBAAmB,GAAG,wBAAwB;+BALuG,iBAAiB;iCAAjB,iBAAiB;iCAAjB,iBAAiB;+BAAjB,iBAAiB;+BAAjB,iBAAiB;uCAE7I,aAAa;yCAF+G,iBAAiB"}
|
package/dist/stage-context.d.ts
CHANGED
|
@@ -46,6 +46,42 @@ export type StageHost = {
|
|
|
46
46
|
describe?: (state: StageChildState, title?: string) => StageChildStateCopy;
|
|
47
47
|
perform?: (appName: string, action: "retry-preparation") => Promise<void>;
|
|
48
48
|
};
|
|
49
|
+
/**
|
|
50
|
+
* One row of a replicated collection the stage declares in `ui.data.collections`, as
|
|
51
|
+
* `ctx.query("<app>.<name>.vN", params)` returns it and `ctx.liveQuery` delivers it (one-stack
|
|
52
|
+
* Phase 3). `key` is the row's key and the live query's diff key; `value` is whatever JSON the
|
|
53
|
+
* app's pull capability put there; `ord` is the row's place in the list and `part` the group it
|
|
54
|
+
* belongs to (`""` for none). `pending` marks a row one of this person's unsent writes put there.
|
|
55
|
+
* Rows come in `ord`, then `key`, order; a diff does not carry order, so a stage that keeps rows
|
|
56
|
+
* from diffs sorts them the same way.
|
|
57
|
+
*/
|
|
58
|
+
export type StageCollectionRow = {
|
|
59
|
+
readonly key: string;
|
|
60
|
+
readonly value: JsonValue;
|
|
61
|
+
readonly ord: number;
|
|
62
|
+
readonly part: string;
|
|
63
|
+
readonly pending?: true;
|
|
64
|
+
};
|
|
65
|
+
export type StageCollectionDiff = import("@econ-v1/domain").QueryDiff<StageCollectionRow>;
|
|
66
|
+
/**
|
|
67
|
+
* One row of `replica.status.v1` (listed in `ui.requires.queries`): how fresh one of the stage's
|
|
68
|
+
* collections is. `state` is `empty` until the collection was first filled (it then has no rows
|
|
69
|
+
* because none arrived yet, not because the list is empty), then `ready`. `live` is true while
|
|
70
|
+
* the node is connected and the last check of the collection succeeded. `checkedAt` and
|
|
71
|
+
* `changedAt` are ISO timestamps, or `null` before the first time. `held` counts rows waiting
|
|
72
|
+
* behind the shell's New updates control and `queued` this person's unsent writes. Nothing turns
|
|
73
|
+
* stale on a timer: offline, the rows are the last known, without limit.
|
|
74
|
+
*/
|
|
75
|
+
export type StageCollectionStatus = {
|
|
76
|
+
readonly key: string;
|
|
77
|
+
readonly state: "empty" | "ready";
|
|
78
|
+
readonly version: number;
|
|
79
|
+
readonly checkedAt: string | null;
|
|
80
|
+
readonly changedAt: string | null;
|
|
81
|
+
readonly live: boolean;
|
|
82
|
+
readonly held: number;
|
|
83
|
+
readonly queued: number;
|
|
84
|
+
};
|
|
49
85
|
export type StageLifecycleState = "active" | "suspended";
|
|
50
86
|
/**
|
|
51
87
|
* Whether the shell is showing the stage (ADR-313). A stage the owner navigates away from may be
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stage-context.d.ts","sourceRoot":"","sources":["../src/stage-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KAAK,IAAI,IAAI,CAAA;KAAE,CAAC;IAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,oBAAoB,CAAC;IAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,gBAAgB,CAAA;CAAE;6BAC5S,kBAAkB,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,eAAe,GAAG;QAAE,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAA;KAAE,CAAA;CAAE;6BAC/E,kBAAkB,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,eAAe,GAAG;QAAE,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;QAAC,QAAQ,CAAC,WAAW,EAAE,iBAAiB,CAAC;QAAC,QAAQ,CAAC,aAAa,EAAE,kBAAkB,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAA;KAAE,CAAA;CAAE;2BACpM,cAAc,GAAG,cAAc;0BAC/B;IAAE,QAAQ,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,GAAG,EAAE,YAAY,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAAC,OAAO,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAAE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@econ-v1/rpc",
|
|
3
|
-
"version": "7.6.
|
|
3
|
+
"version": "7.6.223",
|
|
4
4
|
"description": "Typed runtime and contracts for Node client stage-to-kernel RPC",
|
|
5
5
|
"license": "MIT OR Apache-2.0",
|
|
6
6
|
"author": "Node contributors",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"access": "public"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@econ-v1/domain": "7.6.
|
|
60
|
-
"@econ-v1/ports": "7.6.
|
|
59
|
+
"@econ-v1/domain": "7.6.223",
|
|
60
|
+
"@econ-v1/ports": "7.6.223"
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -1,9 +1,73 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
-
/** @typedef {{ readonly id: "boot-state"; readonly kind: "unpaired" | "paired" | "paired-expired" | "revoked" | "key-unusable"; readonly delegationExpiresAt?: string; readonly detectedAt?: string; readonly reason?: string; readonly sessionRefused?: true; }} DeviceBootStateRow */
|
|
3
|
-
|
|
2
|
+
/** @typedef {{ readonly id: "boot-state"; readonly kind: "unpaired" | "paired" | "paired-expired" | "revoked" | "key-unusable" | "signed-out"; readonly delegationExpiresAt?: string; readonly detectedAt?: string; readonly reason?: string; readonly sessionRefused?: true; readonly pairingRequired?: true; readonly removalPending?: true; }} DeviceBootStateRow */
|
|
3
|
+
/** `removalPending` on a `"signed-out"` row (ADR-332 Amendment 1): the sign-out's removal of local
|
|
4
|
+
* data is unfinished (the marker's `wipe` is `"pending"`); a start or the person's sign-in
|
|
5
|
+
* finishes it, and the row is published again when it does. */
|
|
6
|
+
/** `pairingRequired` on an `"unpaired"` row (ADR-332): the node refused this device when the
|
|
7
|
+
* person asked to sign in again, and they have not acted since. The gate shows pairing without
|
|
8
|
+
* asking the node, so a later start cannot sign this browser in by itself. */
|
|
9
|
+
/** What `device.sign-out.v1` answers. `node` is one of {@link DEVICE_SIGN_OUT_NODE_RESULTS}:
|
|
10
|
+
* `"told"` when the node accepted this device's sign-out (ADR-332 Amendment 1, ADR-347): it ended
|
|
11
|
+
* this device's sessions without removing the device. It is `"unknown"` when the signed request
|
|
12
|
+
* was sent and no answer came back (a connection lost on the way back, or the deadline after
|
|
13
|
+
* sending): the node may have ended the sessions, and a later start tells it again. It is
|
|
14
|
+
* `"not-told"` for every other outcome, a node that does not know the request and one that could
|
|
15
|
+
* not be reached within 5 seconds included; the node's copy of the credential then stays valid
|
|
16
|
+
* until the node is told at a later start, the person signs in again, or it expires. None is an
|
|
17
|
+
* error: the browser is signed out either way. A repeated command answers what was recorded.
|
|
18
|
+
* `unsentDiscarded` counts the changes that were still waiting to be sent and were discarded.
|
|
19
|
+
* A sign-out that could not remove everything yet is rejected with code `conflict` and
|
|
20
|
+
* `details.reason === DEVICE_SIGN_OUT_LOCAL_DATA_PENDING`: the person is signed out all the same.
|
|
21
|
+
* @typedef {{ readonly node: DeviceSignOutNodeResult; readonly unsentDiscarded: number }} DeviceSignOutResult */
|
|
22
|
+
/** What the browser knows of its node after a sign-out: one of {@link DEVICE_SIGN_OUT_NODE_RESULTS}.
|
|
23
|
+
* @typedef {(typeof DEVICE_SIGN_OUT_NODE_RESULTS)[number]} DeviceSignOutNodeResult */
|
|
24
|
+
/** The one row of `device.sign-out-preview.v1`. `unsentChanges` is the number of changes made in
|
|
25
|
+
* this browser that have not reached the node, counted the way `device.sign-out.v1` counts the
|
|
26
|
+
* changes it discards: every identity scope's outbox and the older shared outbox, waiting or
|
|
27
|
+
* being sent. It is absent when the local database cannot be read right now; nothing can be
|
|
28
|
+
* counted then, and nothing can be sent either.
|
|
29
|
+
* @typedef {{ readonly id: "sign-out-preview"; readonly unsentChanges?: number }} DeviceSignOutPreviewRow */
|
|
30
|
+
/** What `device.sign-in.v1` answers. `established` says whether the session ceremony it ran was
|
|
31
|
+
* accepted; when it was not, the browser is still signed out. On a browser that is not signed
|
|
32
|
+
* out the command does nothing and answers `{ established: false, reason: "not-signed-out" }`.
|
|
33
|
+
* @typedef {{ readonly established: boolean; readonly reason?: "not-signed-out" }} DeviceSignInResult */
|
|
4
34
|
export const DEVICE_BOOT_STATE_QUERY = /** @type {const} */ ("device.boot-state.v1");
|
|
5
35
|
/** The node refused this browser's session (`device_not_registered`). The device stays paired on
|
|
6
36
|
* this browser; the owner chooses between retrying and signing out. */
|
|
7
37
|
export const DEVICE_SESSION_RETRY_COMMAND = /** @type {const} */ ("device.session-refusal.retry.v1");
|
|
8
38
|
/** Explicit, owner-confirmed sign-out after a refused session: drops the delegation only. */
|
|
9
39
|
export const DEVICE_SESSION_SIGN_OUT_COMMAND = /** @type {const} */ ("device.session-refusal.sign-out.v1");
|
|
40
|
+
/**
|
|
41
|
+
* The person's own sign-out (ADR-332): removes this browser's credentials and every piece of
|
|
42
|
+
* local user data, keeps the device key, and leaves `device.boot-state.v1` at `"signed-out"`.
|
|
43
|
+
* Payload `{ confirmation: DEVICE_SIGN_OUT_CONFIRMATION }`; answers {@link DeviceSignOutResult}.
|
|
44
|
+
* Only a person's explicit action may send it. Nothing the browser observes on its own does.
|
|
45
|
+
*/
|
|
46
|
+
export const DEVICE_SIGN_OUT_COMMAND = /** @type {const} */ ("device.sign-out.v1");
|
|
47
|
+
/**
|
|
48
|
+
* Every value `device.sign-out.v1` can answer for `node` (ADR-332 Amendment 1): the node is told
|
|
49
|
+
* to end this device's sessions, and nothing else on it changes. The Sign out confirmation tells
|
|
50
|
+
* the person "Your node is told to end this browser's sessions. Nothing else on your node
|
|
51
|
+
* changes, and your other devices are not changed." because of these values, and
|
|
52
|
+
* `client/ui/src/shell/profile-sign-out.test.js` holds the two together: a sign-out that answers
|
|
53
|
+
* anything else for the node changes this list, and that test, and that sentence.
|
|
54
|
+
*/
|
|
55
|
+
export const DEVICE_SIGN_OUT_NODE_RESULTS = /** @type {const} */ (["told", "not-told", "unknown"]);
|
|
56
|
+
/** The literal `device.sign-out.v1` requires, so it cannot be sent by accident. */
|
|
57
|
+
export const DEVICE_SIGN_OUT_CONFIRMATION = /** @type {const} */ ("SIGN OUT AND REMOVE LOCAL DATA");
|
|
58
|
+
/** `details.reason` of the `conflict` that `device.sign-out.v1` and `device.sign-in.v1` answer
|
|
59
|
+
* while some local data a sign-out removes is still there. After `device.sign-out.v1` the person
|
|
60
|
+
* is signed out all the same; the removal runs again at the next start. */
|
|
61
|
+
export const DEVICE_SIGN_OUT_LOCAL_DATA_PENDING = /** @type {const} */ ("sign-out-local-data-pending");
|
|
62
|
+
/**
|
|
63
|
+
* What signing out of this browser would discard, read before the person confirms it
|
|
64
|
+
* (ADR-332 Amendment 1): one {@link DeviceSignOutPreviewRow}, live, re-read whenever the outbox
|
|
65
|
+
* changes. It changes nothing and is served whether or not local services have started, as the
|
|
66
|
+
* sign-out itself is.
|
|
67
|
+
*/
|
|
68
|
+
export const DEVICE_SIGN_OUT_PREVIEW_QUERY = /** @type {const} */ ("device.sign-out-preview.v1");
|
|
69
|
+
/** The person's own sign-in on a signed-out browser: runs the ordinary session ceremony with
|
|
70
|
+
* the kept device key, and the signed-out state ends when that ceremony's credential is stored.
|
|
71
|
+
* A removal the sign-out left unfinished is finished first, or the command is rejected with
|
|
72
|
+
* `details.reason === DEVICE_SIGN_OUT_LOCAL_DATA_PENDING`. Payload `{}`; answers {@link DeviceSignInResult}. */
|
|
73
|
+
export const DEVICE_SIGN_IN_COMMAND = /** @type {const} */ ("device.sign-in.v1");
|
package/src/dialog-contract.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
+
/** A request's `emphasis` is one highlighted line under the body. `update({ emphasis: undefined })`
|
|
3
|
+
* removes it from a dialog that is open. */
|
|
2
4
|
/** @typedef {{ readonly cancel?: boolean, readonly href?: string, readonly id: string, readonly label: string, readonly onSelect?: (handle: DialogHandle) => void | Promise<void>, readonly variant?: "neutral" | "primary" }} DialogAction */
|
|
3
|
-
/** @typedef {{ readonly body: readonly string[], readonly emphasis?: string, readonly initialFocus?: string, readonly actions: readonly DialogAction[], readonly title: string }} DialogRequest */
|
|
5
|
+
/** @typedef {{ readonly body: readonly string[], readonly emphasis?: string | undefined, readonly initialFocus?: string, readonly actions: readonly DialogAction[], readonly title: string }} DialogRequest */
|
|
4
6
|
/** @typedef {{ readonly closed: Promise<string | undefined>, close(): void, setActionBusy(id: string, busy: boolean): void, setError(message: string | undefined): void, update(patch: Partial<DialogRequest>): void }} DialogHandle */
|
|
5
7
|
/** @typedef {{ open(request: DialogRequest): DialogHandle }} DialogCenter */
|
|
6
8
|
export {};
|
package/src/index.js
CHANGED
|
@@ -159,6 +159,10 @@ export { ADDRESS_MOVE_QUERY, ADDRESS_HISTORY_QUERY, ADDRESS_MOVE_DISMISS, ADDRES
|
|
|
159
159
|
/** @typedef {import("./peers-contract.js").PeerIntent} PeerIntent */
|
|
160
160
|
/** @typedef {import("./pairing-status-contract.js").ClientDevicePairingStatusRow} ClientDevicePairingStatusRow */
|
|
161
161
|
/** @typedef {import("./device-boot-contract.js").DeviceBootStateRow} DeviceBootStateRow */
|
|
162
|
+
/** @typedef {import("./device-boot-contract.js").DeviceSignOutResult} DeviceSignOutResult */
|
|
163
|
+
/** @typedef {import("./device-boot-contract.js").DeviceSignOutNodeResult} DeviceSignOutNodeResult */
|
|
164
|
+
/** @typedef {import("./device-boot-contract.js").DeviceSignInResult} DeviceSignInResult */
|
|
165
|
+
/** @typedef {import("./device-boot-contract.js").DeviceSignOutPreviewRow} DeviceSignOutPreviewRow */
|
|
162
166
|
/** @typedef {import("./device-cleanup-contract.js").CleanupState} CleanupState */
|
|
163
167
|
/** @typedef {import("./device-cleanup-contract.js").DeviceCleanupRequestResult} DeviceCleanupRequestResult */
|
|
164
168
|
/** @typedef {import("./device-cleanup-contract.js").DeviceCleanupRow} DeviceCleanupRow */
|
|
@@ -207,6 +211,9 @@ export { ADDRESS_MOVE_QUERY, ADDRESS_HISTORY_QUERY, ADDRESS_MOVE_DISMISS, ADDRES
|
|
|
207
211
|
/** @typedef {import("./protocol.js").RpcRequest} RpcRequest */
|
|
208
212
|
/** @typedef {import("./protocol.js").RpcResponse} RpcResponse */
|
|
209
213
|
/** @typedef {import("./stage-context.js").MountedStage} MountedStage */
|
|
214
|
+
/** @typedef {import("./stage-context.js").StageCollectionDiff} StageCollectionDiff */
|
|
215
|
+
/** @typedef {import("./stage-context.js").StageCollectionRow} StageCollectionRow */
|
|
216
|
+
/** @typedef {import("./stage-context.js").StageCollectionStatus} StageCollectionStatus */
|
|
210
217
|
/** @typedef {import("./stage-context.js").StageComposition} StageComposition */
|
|
211
218
|
/** @typedef {import("./stage-context.js").StageLoadOptions} StageLoadOptions */
|
|
212
219
|
/** @typedef {import("./stage-context.js").StageContext} StageContext */
|
|
@@ -252,7 +259,7 @@ export {
|
|
|
252
259
|
FACTORY_RESET_ROW_ID,
|
|
253
260
|
FACTORY_RESET_STATUS_QUERY,
|
|
254
261
|
} from "./factory-reset-contract.js";
|
|
255
|
-
export { DEVICE_BOOT_STATE_QUERY, DEVICE_SESSION_RETRY_COMMAND, DEVICE_SESSION_SIGN_OUT_COMMAND } from "./device-boot-contract.js";
|
|
262
|
+
export { DEVICE_BOOT_STATE_QUERY, DEVICE_SESSION_RETRY_COMMAND, DEVICE_SESSION_SIGN_OUT_COMMAND, DEVICE_SIGN_IN_COMMAND, DEVICE_SIGN_OUT_COMMAND, DEVICE_SIGN_OUT_CONFIRMATION, DEVICE_SIGN_OUT_LOCAL_DATA_PENDING, DEVICE_SIGN_OUT_NODE_RESULTS, DEVICE_SIGN_OUT_PREVIEW_QUERY } from "./device-boot-contract.js";
|
|
256
263
|
export {
|
|
257
264
|
SESSION_LEASE_CLAIM_COMMAND,
|
|
258
265
|
SESSION_LEASE_QUERY,
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
/** @typedef {"new" | "pair" | "wifi" | "expired" | "lost"} OnboardingScenario */
|
|
3
3
|
/** @typedef {"scan" | "invite" | "identity" | "matchcode" | "handoff" | "done"} OnboardingScreen */
|
|
4
4
|
/** @typedef {"connect" | "install" | "secure" | "identify" | "ready"} OnboardingPhase */
|
|
5
|
-
/**
|
|
5
|
+
/** `"signed-out"` (ADR-332): the person signed out of this browser. Onboarding and node discovery
|
|
6
|
+
* stand aside, the node is asked nothing, and the pairing gate shows the signed-out card. */
|
|
7
|
+
/** @typedef {| "bootstrap-required" | "needs-onboarding" | "needs-pairing" | "ready" | "signed-out"} OnboardingLifecycleState */
|
|
6
8
|
/** @typedef {"unreachable" | "other-node"} OnboardingLifecycleReason */
|
|
7
9
|
/** @typedef {{ readonly invitationsEnabled?: boolean; readonly reason?: OnboardingLifecycleReason; readonly scenario?: OnboardingScenario; readonly state: OnboardingLifecycleState; }} OnboardingLifecycleStatus */
|
|
8
10
|
/** @typedef {{ readonly id: string; readonly maskedNodeId: string; readonly name: string; readonly ownership: "checking" | "owned" | "unowned"; }} OnboardingDiscoveryCandidate */
|
package/src/protocol.js
CHANGED
|
@@ -342,6 +342,10 @@ function domainEventField(value) {
|
|
|
342
342
|
return { occurredAt, payload: {}, type: coreType };
|
|
343
343
|
case "node.update-gate.changed":
|
|
344
344
|
return { occurredAt, payload: nodeUpdateGateChangedPayload(event), type: coreType };
|
|
345
|
+
case "replica.committed":
|
|
346
|
+
return { occurredAt, payload: replicaCommittedPayload(event), type: coreType };
|
|
347
|
+
case "replica.view-changed":
|
|
348
|
+
return { occurredAt, payload: { appName: stringField(objectField(event, "payload"), "appName") }, type: coreType };
|
|
345
349
|
case "ip-pool.health-changed":
|
|
346
350
|
return { occurredAt, payload: ipPoolHealthChangedPayload(event), type: coreType };
|
|
347
351
|
case "shell.stage.app-changed": {
|
|
@@ -509,6 +513,27 @@ function clientStorageStateChangedPayload(event) {
|
|
|
509
513
|
status,
|
|
510
514
|
};
|
|
511
515
|
}
|
|
516
|
+
/**
|
|
517
|
+
* One-stack Phase 3: a collection's rows changed on the device. Only the four declared fields are
|
|
518
|
+
* decoded; the event never carries row values.
|
|
519
|
+
* @param {JsonObject} event
|
|
520
|
+
* @returns {KernelEventPayload<"replica.committed">}
|
|
521
|
+
*/
|
|
522
|
+
function replicaCommittedPayload(event) {
|
|
523
|
+
const payload = objectField(event, "payload");
|
|
524
|
+
const cause = payload["cause"];
|
|
525
|
+
if (cause !== "local" && cause !== "remote" && cause !== "reset")
|
|
526
|
+
throw new TypeError("Expected a known replica commit cause");
|
|
527
|
+
const version = payload["version"];
|
|
528
|
+
if (!Number.isSafeInteger(version) || /** @type {number} */ (version) < 0)
|
|
529
|
+
throw new TypeError("Expected version to be a non-negative safe integer");
|
|
530
|
+
return {
|
|
531
|
+
appName: stringField(payload, "appName"),
|
|
532
|
+
cause,
|
|
533
|
+
collection: stringField(payload, "collection"),
|
|
534
|
+
version: /** @type {number} */ (version),
|
|
535
|
+
};
|
|
536
|
+
}
|
|
512
537
|
/**
|
|
513
538
|
* ADR-315: `closed` is required; `reason`/`sinceMs`/`expectedBackMs` accompany a closed gate
|
|
514
539
|
* only — an open gate's frame is well-formed without them, so they decode as optional rather
|
|
@@ -753,6 +778,7 @@ function queryDiffField(value) {
|
|
|
753
778
|
const record = objectField(value, "diff", "Expected a query diff");
|
|
754
779
|
return {
|
|
755
780
|
added: arrayField(record, "added"),
|
|
781
|
+
...(record.cause === "applied" ? { cause: "applied" } : {}),
|
|
756
782
|
deleted: arrayField(record, "deleted"),
|
|
757
783
|
revision: numberField(record, "revision"),
|
|
758
784
|
updated: arrayField(record, "updated"),
|
|
@@ -770,7 +796,7 @@ function projectDomainEvent(event) {
|
|
|
770
796
|
* @returns {object}
|
|
771
797
|
*/
|
|
772
798
|
function projectQueryDiff(diff) {
|
|
773
|
-
return { added: diff.added, deleted: diff.deleted, revision: diff.revision, updated: diff.updated };
|
|
799
|
+
return { added: diff.added, ...(diff.cause === "applied" ? { cause: "applied" } : {}), deleted: diff.deleted, revision: diff.revision, updated: diff.updated };
|
|
774
800
|
}
|
|
775
801
|
/**
|
|
776
802
|
* @param {JsonObject} value
|
package/src/stage-context.js
CHANGED
|
@@ -19,6 +19,27 @@
|
|
|
19
19
|
/** @typedef {{ readonly code: "ready" | "starting" | "preparing" | "updating" | "cache-failed" | "blocked" | "needs-approval" | "needs-host-update" | "package-broken" | "offline-unavailable" | "needs-first-sync" | "not-installed" | "unavailable-on-this-node", readonly title?: string, readonly features?: readonly string[], readonly minHost?: string, readonly reason?: string }} StageChildState */
|
|
20
20
|
/** @typedef {{ readonly title: string, readonly detail: string, readonly action?: "retry-preparation" }} StageChildStateCopy */
|
|
21
21
|
/** @typedef {{ load: StageLoadHandler, watch?: (appName: string, listener: (state: StageChildState) => void) => Unsubscribe, describe?: (state: StageChildState, title?: string) => StageChildStateCopy, perform?: (appName: string, action: "retry-preparation") => Promise<void> }} StageHost */
|
|
22
|
+
/**
|
|
23
|
+
* One row of a replicated collection the stage declares in `ui.data.collections`, as
|
|
24
|
+
* `ctx.query("<app>.<name>.vN", params)` returns it and `ctx.liveQuery` delivers it (one-stack
|
|
25
|
+
* Phase 3). `key` is the row's key and the live query's diff key; `value` is whatever JSON the
|
|
26
|
+
* app's pull capability put there; `ord` is the row's place in the list and `part` the group it
|
|
27
|
+
* belongs to (`""` for none). `pending` marks a row one of this person's unsent writes put there.
|
|
28
|
+
* Rows come in `ord`, then `key`, order; a diff does not carry order, so a stage that keeps rows
|
|
29
|
+
* from diffs sorts them the same way.
|
|
30
|
+
* @typedef {{ readonly key: string, readonly value: JsonValue, readonly ord: number, readonly part: string, readonly pending?: true }} StageCollectionRow
|
|
31
|
+
*/
|
|
32
|
+
/** @typedef {import("@econ-v1/domain").QueryDiff<StageCollectionRow>} StageCollectionDiff */
|
|
33
|
+
/**
|
|
34
|
+
* One row of `replica.status.v1` (listed in `ui.requires.queries`): how fresh one of the stage's
|
|
35
|
+
* collections is. `state` is `empty` until the collection was first filled (it then has no rows
|
|
36
|
+
* because none arrived yet, not because the list is empty), then `ready`. `live` is true while
|
|
37
|
+
* the node is connected and the last check of the collection succeeded. `checkedAt` and
|
|
38
|
+
* `changedAt` are ISO timestamps, or `null` before the first time. `held` counts rows waiting
|
|
39
|
+
* behind the shell's New updates control and `queued` this person's unsent writes. Nothing turns
|
|
40
|
+
* stale on a timer: offline, the rows are the last known, without limit.
|
|
41
|
+
* @typedef {{ readonly key: string, readonly state: "empty" | "ready", readonly version: number, readonly checkedAt: string | null, readonly changedAt: string | null, readonly live: boolean, readonly held: number, readonly queued: number }} StageCollectionStatus
|
|
42
|
+
*/
|
|
22
43
|
/** @typedef {"active" | "suspended"} StageLifecycleState */
|
|
23
44
|
/**
|
|
24
45
|
* Whether the shell is showing the stage (ADR-313). A stage the owner navigates away from may be
|