@serve.zone/interfaces 32.92.0 → 32.93.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.
@@ -5,19 +5,20 @@ import type { TSha256Digest } from './immutableimage.js';
5
5
  * Every reason the gateway intent refuses an operation: the controller's one vocabulary, which it
6
6
  * imports from here and keeps no copy of.
7
7
  *
8
- * The requests this package declares name only some of them: a dry run's `refusals` and the
8
+ * The requests this package declares cover the list between them: a dry run's `refusals` and the
9
9
  * report's `code` name `gateway-not-found`, `area-contract-missing`, `export-missing`,
10
10
  * `area-table-invalid`, `controller-origin-unserved`, `lifeline-unjudged` and
11
11
  * `compiled-table-invalid`; a takeover's report (`TGatewayTakeoverReport`) names those and
12
12
  * `gateway-not-adopted`, `gateway-areas-not-offered`, `gateway-taken-over`, `takeover-not-pure` and
13
- * `takeover-exports-moved`. The others are answered only by operations of the controller that this
14
- * package declares no request for (an operator's write of an area table, a recompile from the
15
- * controller's records).
13
+ * `takeover-exports-moved`; an operator's row read and write (`gatewayarearows.ts`) name
14
+ * `gateway-not-found`, `gateway-not-taken-over`, `row-compile-owned`, `intent-row-stale`,
15
+ * `kept-secret-unknown`, `area-table-invalid`, `controller-origin-unserved`, `lifeline-unjudged`,
16
+ * `gateway-vocabulary-newer` and `intent-revision-stale`.
16
17
  *
17
18
  * A reader of these answers shows a name it does not know as text and never refuses the answer for
18
19
  * it: they have no validator, and a controller built after the reader may name a newer reason.
19
20
  */
20
- export declare const gatewayIntentRefusals: readonly ["gateway-not-found", "gateway-not-adopted", "gateway-areas-not-offered", "area-contract-missing", "gateway-taken-over", "gateway-not-taken-over", "export-missing", "area-table-invalid", "takeover-not-pure", "takeover-exports-moved", "controller-origin-unserved", "lifeline-unjudged", "intent-revision-stale", "compiled-table-invalid", "row-compile-owned", "gateway-vocabulary-newer"];
21
+ export declare const gatewayIntentRefusals: readonly ["gateway-not-found", "gateway-not-adopted", "gateway-areas-not-offered", "area-contract-missing", "gateway-taken-over", "gateway-not-taken-over", "export-missing", "area-table-invalid", "takeover-not-pure", "takeover-exports-moved", "controller-origin-unserved", "lifeline-unjudged", "intent-revision-stale", "intent-row-stale", "kept-secret-unknown", "compiled-table-invalid", "row-compile-owned", "gateway-vocabulary-newer"];
21
22
  /** One of the reasons the gateway intent refuses an operation. */
22
23
  export type TGatewayIntentRefusal = typeof gatewayIntentRefusals[number];
23
24
  /** The kinds of controller record whose rows a compile builds. */
@@ -10,14 +10,15 @@
10
10
  * Every reason the gateway intent refuses an operation: the controller's one vocabulary, which it
11
11
  * imports from here and keeps no copy of.
12
12
  *
13
- * The requests this package declares name only some of them: a dry run's `refusals` and the
13
+ * The requests this package declares cover the list between them: a dry run's `refusals` and the
14
14
  * report's `code` name `gateway-not-found`, `area-contract-missing`, `export-missing`,
15
15
  * `area-table-invalid`, `controller-origin-unserved`, `lifeline-unjudged` and
16
16
  * `compiled-table-invalid`; a takeover's report (`TGatewayTakeoverReport`) names those and
17
17
  * `gateway-not-adopted`, `gateway-areas-not-offered`, `gateway-taken-over`, `takeover-not-pure` and
18
- * `takeover-exports-moved`. The others are answered only by operations of the controller that this
19
- * package declares no request for (an operator's write of an area table, a recompile from the
20
- * controller's records).
18
+ * `takeover-exports-moved`; an operator's row read and write (`gatewayarearows.ts`) name
19
+ * `gateway-not-found`, `gateway-not-taken-over`, `row-compile-owned`, `intent-row-stale`,
20
+ * `kept-secret-unknown`, `area-table-invalid`, `controller-origin-unserved`, `lifeline-unjudged`,
21
+ * `gateway-vocabulary-newer` and `intent-revision-stale`.
21
22
  *
22
23
  * A reader of these answers shows a name it does not know as text and never refuses the answer for
23
24
  * it: they have no validator, and a controller built after the reader may name a newer reason.
@@ -53,6 +54,18 @@ export const gatewayIntentRefusals = Object.freeze([
53
54
  'lifeline-unjudged',
54
55
  /** The table moved past the revision the write was based on. */
55
56
  'intent-revision-stale',
57
+ /**
58
+ * The row is not the one an operator's row write was based on (its `expectedDigest`): another write
59
+ * changed, added or removed it. Read the row again (`gatewayarearows.ts`).
60
+ */
61
+ 'intent-row-stale',
62
+ /**
63
+ * An operator's row write keeps a secret the row does not hold at that path under that version
64
+ * (a new row, a member stored `null`, another row's version). A row that moved since the read
65
+ * answers `intent-row-stale` first, so this names the written row, not a stale read: fix the
66
+ * written row rather than reading again (`gatewayarearows.ts`).
67
+ */
68
+ 'kept-secret-unknown',
56
69
  /**
57
70
  * A compile from the controller's records cannot build a record's rows (the operation that wrote
58
71
  * that record fails, the rest compile), or builds a table it cannot place: one its area contract
@@ -74,4 +87,4 @@ export const gatewayIntentRefusals = Object.freeze([
74
87
  * holds none (`absent`, which is the state of every identity that sends no mail).
75
88
  */
76
89
  export const gatewayMailIdentityPasswordStates = Object.freeze(['verifies', 'does-not-verify', 'absent']);
77
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2F0ZXdheWludGVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzL2RhdGEvZ2F0ZXdheWludGVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7OztHQU9HO0FBTUg7Ozs7Ozs7Ozs7Ozs7OztHQWVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0scUJBQXFCLEdBQUcsTUFBTSxDQUFDLE1BQU0sQ0FBQztJQUNqRCw0Q0FBNEM7SUFDNUMsbUJBQW1CO0lBQ25CLHVGQUF1RjtJQUN2RixxQkFBcUI7SUFDckIscUdBQXFHO0lBQ3JHLDJCQUEyQjtJQUMzQixpRkFBaUY7SUFDakYsdUJBQXVCO0lBQ3ZCLGdFQUFnRTtJQUNoRSxvQkFBb0I7SUFDcEIsOEVBQThFO0lBQzlFLHdCQUF3QjtJQUN4Qix1REFBdUQ7SUFDdkQsZ0JBQWdCO0lBQ2hCLHVGQUF1RjtJQUN2RixvQkFBb0I7SUFDcEIsMkdBQTJHO0lBQzNHLG1CQUFtQjtJQUNuQjs7O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csbUJBQW1CO0lBQ25COzs7O09BSUc7SUFDSCx3QkFBd0I7SUFDeEIsK0ZBQStGO0lBQy9GLDRCQUE0QjtJQUM1Qiw4RUFBOEU7SUFDOUUsbUJBQW1CO0lBQ25CLGdFQUFnRTtJQUNoRSx1QkFBdUI7SUFDdkI7OztPQUdHO0lBQ0gsa0JBQWtCO0lBQ2xCOzs7OztPQUtHO0lBQ0gscUJBQXFCO0lBQ3JCOzs7O09BSUc7SUFDSCx3QkFBd0I7SUFDeEIsd0VBQXdFO0lBQ3hFLG1CQUFtQjtJQUNuQjs7OztPQUlHO0lBQ0gsMEJBQTBCO0NBQ2xCLENBQUMsQ0FBQztBQXNGWjs7OztHQUlHO0FBQ0gsTUFBTSxDQUFDLE1BQU0saUNBQWlDLEdBQUcsTUFBTSxDQUFDLE1BQU0sQ0FBQyxDQUFDLFVBQVUsRUFBRSxpQkFBaUIsRUFBRSxRQUFRLENBQVUsQ0FBQyxDQUFDIn0=
@@ -31,6 +31,7 @@ export * from './fleetcutover.js';
31
31
  export * from './gateway.js';
32
32
  export * from './gatewayareas.js';
33
33
  export * from './gatewayareas.validation.js';
34
+ export * from './gatewayarearows.js';
34
35
  export * from './gatewayconnector.js';
35
36
  export * from './gatewayintent.js';
36
37
  export * from './hostedapp.js';
@@ -31,6 +31,7 @@ export * from './fleetcutover.js';
31
31
  export * from './gateway.js';
32
32
  export * from './gatewayareas.js';
33
33
  export * from './gatewayareas.validation.js';
34
+ export * from './gatewayarearows.js';
34
35
  export * from './gatewayconnector.js';
35
36
  export * from './gatewayintent.js';
36
37
  export * from './hostedapp.js';
@@ -101,4 +102,4 @@ export * from './version.js';
101
102
  export * from './webpush.js';
102
103
  export * from './witness.js';
103
104
  export * from './workloadreplicaidentity.js';
104
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9kYXRhL2luZGV4Ln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DLGNBQWMscUJBQXFCLENBQUM7QUFDcEMsY0FBYywwQkFBMEIsQ0FBQztBQUN6QyxjQUFjLGVBQWUsQ0FBQztBQUM5QixjQUFjLFVBQVUsQ0FBQztBQUN6QixjQUFjLGtDQUFrQyxDQUFDO0FBQ2pELGNBQWMsYUFBYSxDQUFDO0FBQzVCLGNBQWMsb0JBQW9CLENBQUM7QUFDbkMsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyxXQUFXLENBQUM7QUFDMUIsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyw4QkFBOEIsQ0FBQyJ9
@@ -2,6 +2,7 @@ import * as plugins from '../plugins.js';
2
2
  import type { IControllerPeerSet } from '../data/controller.js';
3
3
  import type { IAdoptGatewayResponse, IGateway, IGatewayAdoptionFacts, IGatewayAreaExport, IGatewayApplyReport, IGatewayDesiredState, IGatewayStatusDocument, IRegisterGatewaySessionRequest, TGatewayConfigArea } from '../data/gatewayconnector.js';
4
4
  import type { IGatewayTakeoverExportDigest, IGatewayTakeoverState, TGatewayDryRunReport, TGatewayTakeoverReport } from '../data/gatewayintent.js';
5
+ import type { TGatewayAreaMember, TGatewayAreaRowsReport, TGatewayAreaRowWrite, TGatewayAreaRowWriteReport } from '../data/gatewayarearows.js';
5
6
  import type { IGatewayRouteDnsResult } from '../data/gateway.js';
6
7
  import type { ILocationScope } from '../data/location.js';
7
8
  import type { IIdentityCredential } from '../data/user.js';
@@ -260,3 +261,72 @@ export interface IReq_Admin_Cloudly_ExportGatewayDesiredState extends plugins.ty
260
261
  desired: IGatewayDesiredState;
261
262
  };
262
263
  }
264
+ /**
265
+ * An administrator reads one area table of a taken-over gateway (Linus rulings 121 §6 item 7, 166
266
+ * point 4 and 171), all members or the one named: the table's revision and digest and, per row, its
267
+ * address, its compare token (`digest`, `data.computeGatewayAreaRowDigest`), whether the controller's
268
+ * records compile it (`owner`) and its write form with every secret as `keep` (a sealed member's
269
+ * version, never its value). It reads only and calls no gateway. The answer is
270
+ * `data.TGatewayAreaRowsReport`: the table, or `{ ok: false, code }` with `gateway-not-found` or
271
+ * `gateway-not-taken-over` (`data.gatewayAreaRowsRefusals`).
272
+ *
273
+ * Caller (Linus ruling 171 D6, the write's rule): a human administrator who signed in within the
274
+ * last five minutes, with neither a delegated admin temp token nor a machine identity. The
275
+ * controller judges it before it reads anything and refuses anyone else with a `TypedResponseError`
276
+ * naming the requirement, never a report. An area that is no configuration area, or a `member` the
277
+ * area does not have, is refused `request-invalid` (a connector refusal, thrown).
278
+ */
279
+ export interface IReq_Admin_Cloudly_GetGatewayAreaRows extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Admin_Cloudly_GetGatewayAreaRows> {
280
+ method: 'getGatewayAreaRows';
281
+ request: {
282
+ identity: IIdentityCredential;
283
+ gatewayId: string;
284
+ area: TGatewayConfigArea;
285
+ /** One member of the area; `null` for every member. */
286
+ member: TGatewayAreaMember | null;
287
+ };
288
+ response: {
289
+ report: TGatewayAreaRowsReport;
290
+ };
291
+ }
292
+ /**
293
+ * An administrator writes one row of a taken-over gateway's table with compare-and-swap (Linus
294
+ * rulings 121 §6 item 7, 166 point 4 and 171): put one row (or one singleton's value) or delete one
295
+ * list row, based on the row's `digest` as the administrator read it (`expectedDigest`; `null` for a
296
+ * list row that must be absent). The controller resolves the write form's secrets
297
+ * (`data.resolveGatewayAreaRowWrite`: a `keep` to the stored value, a `set` to a value under a
298
+ * version it mints), judges the resulting table with its area contract and the whole document, the
299
+ * lifeline of a routes change and the rows its own records compile, appends one `change` revision
300
+ * naming the administrator, and pushes the gateway, or leaves the revision to the gateway's next
301
+ * session. It never waits for the gateway and never depends on its session, so it answers while the
302
+ * gateway is away; the gateway list (`getGateways`) tells when it applied the revision. Nothing
303
+ * table-wide: a write never changes another row.
304
+ *
305
+ * Caller (Linus ruling 166 point 2): a human administrator who signed in within the last five
306
+ * minutes, with neither a delegated admin temp token nor a machine identity, judged again inside the
307
+ * write's transaction, so an authority that lapsed or changed meanwhile writes nothing. Anyone else
308
+ * is refused with a `TypedResponseError` naming the requirement before anything is read; a write
309
+ * `data.validateGatewayAreaRowWrite` refuses is the connector refusal `request-invalid`, thrown.
310
+ *
311
+ * The answer is `data.TGatewayAreaRowWriteReport`: what it changed (the revision, the row's and the
312
+ * table's digest, the versions it minted), or `{ ok: false, code, problems }` with one of
313
+ * `data.gatewayAreaRowWriteRefusals`, in the order its doc states, and the validator lines naming
314
+ * why. A put whose row equals the stored one, or a delete of an absent row, writes nothing and
315
+ * answers `revision: null` (judged after the gateway and `row-compile-owned`, before
316
+ * `expectedDigest`), so a repeat after a lost answer is safe; a put that sets a secret mints a new
317
+ * version each time, so its repeat is refused `intent-row-stale` (read the row: its versions tell
318
+ * whether the first one landed).
319
+ *
320
+ * Exclude bodies from logs: a `set` carries a secret value in plain text.
321
+ */
322
+ export interface IReq_Admin_Cloudly_WriteGatewayAreaRow extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_Admin_Cloudly_WriteGatewayAreaRow> {
323
+ method: 'writeGatewayAreaRow';
324
+ request: {
325
+ identity: IIdentityCredential;
326
+ gatewayId: string;
327
+ write: TGatewayAreaRowWrite;
328
+ };
329
+ response: {
330
+ report: TGatewayAreaRowWriteReport;
331
+ };
332
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serve.zone/interfaces",
3
- "version": "32.92.0",
3
+ "version": "32.93.0",
4
4
  "private": false,
5
5
  "description": "Shared TypeScript interfaces and TypedRequest contracts for the serve.zone ecosystem.",
6
6
  "exports": {
package/readme.md CHANGED
@@ -4545,8 +4545,8 @@ guard that names roles excludes it by type.
4545
4545
  them. Both read only and carry
4546
4546
  row ids, digests, names and states, never a table value, a password or a verifier, and neither has
4547
4547
  a validator: a reader shows a refusal name it does not know as text and never refuses the answer.
4548
- `data.gatewayIntentRefusals` is the controller's whole vocabulary, so it also holds names that only
4549
- operations without a request here answer (an operator's table write, a recompile).
4548
+ `data.gatewayIntentRefusals` is the controller's whole vocabulary; the requests declared here
4549
+ cover it between them (dry run, takeover, operator row read and write).
4550
4550
  - Takeover (`ts/data/gatewayintent.ts`, `requests.gatewayconnector.IReq_Admin_Cloudly_TakeOverGateway`):
4551
4551
  `takeOverGateway` takes `{ identity, gatewayId, exportDigests }`, where `exportDigests` lists one
4552
4552
  `data.IGatewayTakeoverExportDigest` `{ area, digest }` per configuration area, each the
@@ -4583,7 +4583,47 @@ guard that names roles excludes it by type.
4583
4583
  `data.validateAdoptGatewayResponse`, `data.validateRegisterGatewaySessionRequest`,
4584
4584
  `data.validateGatewayDesiredState` (envelope only), `data.validateGatewayApplyReport`,
4585
4585
  `data.validateGatewayStatusDocument`, `data.validateGatewayAreaExport`,
4586
- `data.validateGatewayRouteDnsResultsRequest` and `data.validateGatewayRouteDnsResultsResponse`.
4586
+ `data.validateGatewayRouteDnsResultsRequest`, `data.validateGatewayRouteDnsResultsResponse` and
4587
+ `data.validateGatewayAreaRowWrite`.
4588
+ - Operator rows (`ts/data/gatewayarearows.ts`, `requests.gatewayconnector`; Linus rulings 117 §4
4589
+ criterion 4, 121 §6 item 7, 166 points 2 and 4, 171): once a gateway is taken over, an
4590
+ administrator changes its tables one row at a time through the controller. A row is addressed
4591
+ `{ area, member, id }` (`id: null` for a singleton of `data.gatewayAreaSingletonMembers`).
4592
+ `getGatewayAreaRows` (`IReq_Admin_Cloudly_GetGatewayAreaRows`, `{ identity, gatewayId, area,
4593
+ member }`) answers a `data.TGatewayAreaRowsReport`: the table's revision and digest and, per row,
4594
+ its compare token `digest`, its `owner` (`compile` for a row the controller's records compile,
4595
+ which no operator write changes) and its write form (`data.IGatewayAreaRowWrites`), in which every
4596
+ secret of `data.gatewayAreaSecretPaths` is `{ kind: 'keep', version }` (sealed) or
4597
+ `{ kind: 'keep' }` (verifier), never a value; or `{ ok: false, code }` with one of
4598
+ `data.gatewayAreaRowsRefusals`. `writeGatewayAreaRow` (`IReq_Admin_Cloudly_WriteGatewayAreaRow`,
4599
+ `{ identity, gatewayId, write }`) puts one row or one singleton's value, or deletes one list row
4600
+ (`data.TGatewayAreaRowWrite`), based on the digest the administrator read (`expectedDigest`,
4601
+ `null` for a row that must be absent); a new secret is `{ kind: 'set', value }` and the controller
4602
+ mints its version, a new verifier `{ kind: 'set', verifier }`. It answers a
4603
+ `data.TGatewayAreaRowWriteReport`: the revision, the row's and the table's digest and the minted
4604
+ versions, or `{ ok: false, code, problems }` with one of `data.gatewayAreaRowWriteRefusals` and
4605
+ validator lines that never carry a value. `intent-row-stale` means the row moved since the read
4606
+ (read it again); `kept-secret-unknown` means the written row keeps a secret the row does not hold,
4607
+ because a moved row answers `intent-row-stale` first (fix the row, do not re-read). A put equal to
4608
+ the stored row and a delete of an absent row write nothing (`revision: null`). The write never
4609
+ waits for the gateway: `getGateways` tells when it applied the revision.
4610
+ - Caller, both requests: a human administrator who signed in within the last five minutes, with
4611
+ neither a delegated admin temp token nor a machine identity. The controller refuses anyone else
4612
+ with an error naming the requirement before it reads anything, and judges the write's caller
4613
+ again inside its transaction. No delegated admin scope names either request. The read takes
4614
+ the write's caller because it answers the whole table but the sealed values and the table
4615
+ digest, which hashes those values: only a caller entitled to the plaintext may hold both.
4616
+ - Compare token: `data.computeGatewayAreaRowDigest` of the stored row
4617
+ (`data.createGatewayAreaRowDigestInput`), which takes every sealed member by its version only and
4618
+ a verifier as stored. A version names one value, so the token moves with every change, and a
4619
+ reader who holds every other input cannot test a guess at a sealed value against it. A reader
4620
+ compares it for equality only.
4621
+ - One check, one list: `data.validateGatewayAreaRowWrite` judges a write's envelope and secret
4622
+ forms (the controller before it reads, a client before it signs in; the controller answers a
4623
+ problem as the connector refusal `request-invalid`), and `data.gatewayAreaSecretPaths` is the one
4624
+ list of where a table holds a secret, from which `data.listGatewayAreaSecrets` is computed and
4625
+ which `data.projectGatewayAreaRow` and `data.resolveGatewayAreaRowWrite` walk. The controller
4626
+ mints versions with `data.createGatewaySealedVersion`.
4587
4627
 
4588
4628
  ```typescript
4589
4629
  import { data, requests } from '@serve.zone/interfaces';
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@serve.zone/interfaces',
6
- version: '32.92.0',
6
+ version: '32.93.0',
7
7
  description: 'Shared TypeScript interfaces and TypedRequest contracts for the serve.zone ecosystem.'
8
8
  }