@substrat-run/control-plane-api 0.137.0 → 0.138.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/dist/api.d.ts.map +1 -1
- package/dist/api.js +17 -1
- package/dist/api.js.map +1 -1
- package/dist/errors.d.ts +23 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +26 -109
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/reconcile.d.ts +23 -7
- package/dist/reconcile.d.ts.map +1 -1
- package/dist/reconcile.js +19 -11
- package/dist/reconcile.js.map +1 -1
- package/dist/vertical-client.d.ts +36 -1
- package/dist/vertical-client.d.ts.map +1 -1
- package/dist/vertical-client.js +33 -0
- package/dist/vertical-client.js.map +1 -1
- package/package.json +8 -8
package/dist/errors.d.ts
CHANGED
|
@@ -4,5 +4,28 @@ export interface ApiError {
|
|
|
4
4
|
status: ContentfulStatusCode;
|
|
5
5
|
body: Problem;
|
|
6
6
|
}
|
|
7
|
+
/**
|
|
8
|
+
* Map a `HostAdmin` throw onto a problem document — #113.
|
|
9
|
+
*
|
|
10
|
+
* **The code decides, and nothing else does.** A throw that declared what it is
|
|
11
|
+
* (`substratError`, `PermissionDenied`, anything carrying a `Substrat.<code>` name) is
|
|
12
|
+
* rendered from its own declaration by `toProblem`, extensions and all. There is no
|
|
13
|
+
* message table behind it any more: every `HostAdmin` refusal that used to reach one is
|
|
14
|
+
* typed at its throw site, on both adapters, and the contract suite asserts the code
|
|
15
|
+
* rather than the sentence. The last fourteen rows went together, so a reworded refusal
|
|
16
|
+
* can no longer slip past the table into the generic 500, or be caught by the wrong row.
|
|
17
|
+
*
|
|
18
|
+
* Where the throw is raised inside a Durable Object, its code does not survive being
|
|
19
|
+
* THROWN across the hop: workerd folds `name` into the message and drops every own
|
|
20
|
+
* property. Those refusals travel as a value instead — the DO answers a `DoReply`
|
|
21
|
+
* (`adapter-cloudflare/src/do-reply.ts`) or a refusal record, and the coordinator throws
|
|
22
|
+
* it, typed, on this side. So a new DO-side refusal needs that envelope as well as its
|
|
23
|
+
* code, or it arrives here untyped.
|
|
24
|
+
*
|
|
25
|
+
* Anything untyped is a 500 with a GENERIC body: an unrecognised throw is, by
|
|
26
|
+
* definition, one whose message we have not reviewed for what it discloses, and this
|
|
27
|
+
* surface has cross-tenant reach. That is also what makes a new untyped refusal VISIBLE:
|
|
28
|
+
* it answers `internal error` in its first test, rather than being quietly matched.
|
|
29
|
+
*/
|
|
7
30
|
export declare function mapError(err: unknown): ApiError;
|
|
8
31
|
//# sourceMappingURL=errors.d.ts.map
|
package/dist/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAOL,KAAK,OAAO,EACb,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAOL,KAAK,OAAO,EACb,MAAM,yBAAyB,CAAC;AAKjC,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,oBAAoB,CAAC;IAC7B,IAAI,EAAE,OAAO,CAAC;CACf;AAcD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,OAAO,GAAG,QAAQ,CAqD/C"}
|
package/dist/errors.js
CHANGED
|
@@ -2,106 +2,6 @@ import { errorCodeOf, PROBLEM_CATALOG, problemForStatus, substratError, toProble
|
|
|
2
2
|
import { SecretBoxUnconfiguredError } from '@substrat-run/kernel';
|
|
3
3
|
import { ControlPlaneError } from '@substrat-run/control-plane-client';
|
|
4
4
|
import { ConnectionRelayError } from './connection-relay.js';
|
|
5
|
-
/**
|
|
6
|
-
* Map a `HostAdmin` throw onto a problem document — #113 phase 4.
|
|
7
|
-
*
|
|
8
|
-
* **The code is read first, and the table below is what is left.** A throw that
|
|
9
|
-
* declared what it is (`substratError`, `PermissionDenied`, anything carrying a
|
|
10
|
-
* `Substrat.<code>` name across the RPC hop) is rendered from its own declaration by
|
|
11
|
-
* `toProblem`, extensions and all. Only a throw that declared nothing reaches the
|
|
12
|
-
* patterns, and each pattern that survives is one more `HostAdmin` throw site nobody
|
|
13
|
-
* has typed yet — a to-do list that shortens, rather than a mapping layer that grows.
|
|
14
|
-
*
|
|
15
|
-
* The table names a CODE now, not a status. The status follows from the catalog, so the
|
|
16
|
-
* two can no longer disagree — and the entry says what the failure IS, which is the
|
|
17
|
-
* thing a reviewer can check against the throw site. `409` was never checkable.
|
|
18
|
-
*
|
|
19
|
-
* What has not changed, and should not:
|
|
20
|
-
*
|
|
21
|
-
* - The patterns are less brittle than they look. Every one is a message the CONTRACT
|
|
22
|
-
* SUITE asserts on (`/unknown tenant/`, `/illegal scope transition/`, `/already
|
|
23
|
-
* taken/`, `/not active/`), against both adapters. Changing one turns a contract test
|
|
24
|
-
* red, not just this mapping. Phase 5 migrates those assertions onto codes and this
|
|
25
|
-
* table goes with them — **one family at a time, and ten are gone.** `unknown vertical`
|
|
26
|
-
* went first; `unknown version` followed, its ten throw sites across the two adapters
|
|
27
|
-
* now saying `substratError('not_found', …)` with the contract suite asserting that
|
|
28
|
-
* code rather than the sentence, so the row had nothing left to do. `deploy refused:`
|
|
29
|
-
* is the third, and the first whose throw is not in an adapter at all: its one site
|
|
30
|
-
* is `assertSandboxContract` in this package's own `deploy.ts`, now `substratError(
|
|
31
|
-
* 'forbidden', …)`, pinned by `test/deploy.test.ts` on the code. `still backs` is the
|
|
32
|
-
* fourth, and the first that fixed an operator-facing BUG rather than only removing a
|
|
33
|
-
* row: `deleteVertical` refuses twice, and the row read `/still backs \d+ scope\(s\)/`
|
|
34
|
-
* — which the archived sentence ("still backs 1 ARCHIVED scope(s) — reap or restore
|
|
35
|
-
* them first") does not match, because the word sits between the digits and `scope(s)`.
|
|
36
|
-
* Nothing else caught it, so archiving an app and then deleting its vertical answered
|
|
37
|
-
* `internal error`. Both branches are typed now and a code cannot miss a reword.
|
|
38
|
-
* `was rejected — publish a new one` is the fifth: `admitVersion`'s refusal of a rejected
|
|
39
|
-
* version, one site per adapter, now `substratError('conflict', …)` and pinned on the
|
|
40
|
-
* code by the contract suite. The sixth to eighth are the registry's own refusals, all in
|
|
41
|
-
* `host.ts` / `adapter-sqlite` and all `conflict`: `is owned by` (`registerVertical` —
|
|
42
|
-
* claim-on-first-push, a slug's owner is fixed at first push), `is auto-admitted` (the
|
|
43
|
-
* publish seam, `setVerticalListed`: prod points at a version only the AUTO admission note
|
|
44
|
-
* vouches for, so a staff admit is what it names as the way out) and `not admitted`
|
|
45
|
-
* (`bindScopeVersion` and `promoteVersion` refusing a version that is not admitted).
|
|
46
|
-
* The ninth and tenth are the last two coordinator-only registry refusals: `is already admitted`
|
|
47
|
-
* (`rejectVersion` — an admitted version may be bound, so it cannot be un-vouched) and
|
|
48
|
-
* `belongs to '` (`promoteVersion` — a version promoted through a vertical that does not own
|
|
49
|
-
* it), now `substratError('conflict', …)` at one site per adapter each.
|
|
50
|
-
* That is the shape every remaining row is waiting for: type the throws, move the
|
|
51
|
-
* suite's assertion, delete the row. A row is not removed before its throws are typed —
|
|
52
|
-
* deleting one early turns its refusal into the generic 500 below.
|
|
53
|
-
*
|
|
54
|
-
* **What decides whether a row CAN go, and it is not the row:** where its throws live.
|
|
55
|
-
* Both families removed so far are thrown on the COORDINATOR — `adapter-cloudflare`'s
|
|
56
|
-
* `host.ts` and `adapter-sqlite` — where the real error object reaches this function and
|
|
57
|
-
* `errorCodeOf` reads it. A throw raised inside a Durable Object does not arrive that
|
|
58
|
-
* way. workerd folds `name` into the message and resets it, so a `substratError` thrown
|
|
59
|
-
* in `scope-do.ts` or `control-plane-do.ts` arrives here as a plain `Error` whose
|
|
60
|
-
* message has grown a `Substrat.<code>: ` prefix — the code lost, and the sentence no
|
|
61
|
-
* longer the one that was written (it lands in the SQL console UI). That is measured,
|
|
62
|
-
* not assumed: see the note on `toRpcError` in `adapter-cloudflare/src/scope-do.ts`,
|
|
63
|
-
* which also names the fix — structure must travel as a VALUE, the `{ ok, error }`
|
|
64
|
-
* envelope, not as `name`. So typing a DO-side throw today makes things WORSE, and
|
|
65
|
-
* roughly half the rows still below are waiting on that envelope rather than on
|
|
66
|
-
* somebody getting around to them. Check where a family throws before planning its row.
|
|
67
|
-
* - Anything unmatched is a 500 with a GENERIC body: an unrecognised throw is, by
|
|
68
|
-
* definition, one whose message we have not reviewed for what it discloses, and this
|
|
69
|
-
* surface has cross-tenant reach.
|
|
70
|
-
*
|
|
71
|
-
* **ORDER IS SIGNIFICANT** — first match wins, so every specific pattern must precede
|
|
72
|
-
* the general one it would otherwise be swallowed by. `cannot provision scope under
|
|
73
|
-
* unknown tenant` contains `unknown tenant:`, and listing the general one first turned a
|
|
74
|
-
* precondition conflict into a 404 claiming POST /scopes does not exist. That is the
|
|
75
|
-
* message-matching fragility this file admits to above, caught by the test below rather
|
|
76
|
-
* than by reading.
|
|
77
|
-
*/
|
|
78
|
-
const CODE_PATTERNS = [
|
|
79
|
-
// Well-formed, but conflicts with current state or references something absent.
|
|
80
|
-
// The addressed collection exists; the request cannot be applied to it.
|
|
81
|
-
[/cannot provision scope under unknown tenant/, 'conflict'],
|
|
82
|
-
[/already taken/, 'conflict'],
|
|
83
|
-
[/illegal scope transition/, 'conflict'],
|
|
84
|
-
// #1738: a ScopeDO refusing a projection for a tenant other than the one it was provisioned
|
|
85
|
-
// for. Thrown inside the DO, so it arrives with the code flattened into the message.
|
|
86
|
-
[/applyProjection refused/, 'conflict'],
|
|
87
|
-
[/non-active tenant/, 'conflict'],
|
|
88
|
-
[/not active \(status:/, 'conflict'],
|
|
89
|
-
// Registry (#31): well-formed, but conflicts with a version's admission state or
|
|
90
|
-
// ownership, or needs an unacknowledged change acknowledged (the two checkpoints).
|
|
91
|
-
[/is already registered/, 'conflict'],
|
|
92
|
-
[/acknowledge it explicitly to promote/, 'conflict'],
|
|
93
|
-
// The ADDRESSED resource does not exist — including the K-3 fail-closed case
|
|
94
|
-
// where it exists under a DIFFERENT tenant and must read as absent.
|
|
95
|
-
[/unknown tenant:/, 'not_found'],
|
|
96
|
-
[/unknown scope for tenant/, 'not_found'],
|
|
97
|
-
[/unknown scope /, 'not_found'],
|
|
98
|
-
// A read-only introspection read (§5.4) for a table the scope's schema does not have.
|
|
99
|
-
[/unknown table /, 'not_found'],
|
|
100
|
-
// The SQL console's gate (#219) refused the statement — a malformed request, not a
|
|
101
|
-
// server fault. The prefix is pinned by the contract suite against both adapters.
|
|
102
|
-
[/read-only console/, 'validation_failed'],
|
|
103
|
-
[/scope has no tenant record/, 'not_found'],
|
|
104
|
-
];
|
|
105
5
|
/** A body built from a code this layer decided, rather than one the throw declared. */
|
|
106
6
|
const coded = (code, message) => ({
|
|
107
7
|
status: PROBLEM_CATALOG[code].status,
|
|
@@ -112,6 +12,29 @@ const relayed = (status, message) => ({
|
|
|
112
12
|
status: status,
|
|
113
13
|
body: problemForStatus(status, message),
|
|
114
14
|
});
|
|
15
|
+
/**
|
|
16
|
+
* Map a `HostAdmin` throw onto a problem document — #113.
|
|
17
|
+
*
|
|
18
|
+
* **The code decides, and nothing else does.** A throw that declared what it is
|
|
19
|
+
* (`substratError`, `PermissionDenied`, anything carrying a `Substrat.<code>` name) is
|
|
20
|
+
* rendered from its own declaration by `toProblem`, extensions and all. There is no
|
|
21
|
+
* message table behind it any more: every `HostAdmin` refusal that used to reach one is
|
|
22
|
+
* typed at its throw site, on both adapters, and the contract suite asserts the code
|
|
23
|
+
* rather than the sentence. The last fourteen rows went together, so a reworded refusal
|
|
24
|
+
* can no longer slip past the table into the generic 500, or be caught by the wrong row.
|
|
25
|
+
*
|
|
26
|
+
* Where the throw is raised inside a Durable Object, its code does not survive being
|
|
27
|
+
* THROWN across the hop: workerd folds `name` into the message and drops every own
|
|
28
|
+
* property. Those refusals travel as a value instead — the DO answers a `DoReply`
|
|
29
|
+
* (`adapter-cloudflare/src/do-reply.ts`) or a refusal record, and the coordinator throws
|
|
30
|
+
* it, typed, on this side. So a new DO-side refusal needs that envelope as well as its
|
|
31
|
+
* code, or it arrives here untyped.
|
|
32
|
+
*
|
|
33
|
+
* Anything untyped is a 500 with a GENERIC body: an unrecognised throw is, by
|
|
34
|
+
* definition, one whose message we have not reviewed for what it discloses, and this
|
|
35
|
+
* surface has cross-tenant reach. That is also what makes a new untyped refusal VISIBLE:
|
|
36
|
+
* it answers `internal error` in its first test, rather than being quietly matched.
|
|
37
|
+
*/
|
|
115
38
|
export function mapError(err) {
|
|
116
39
|
// A ControlPlaneError is a DELIBERATE downstream answer, not an unreviewed throw —
|
|
117
40
|
// the VerticalClient wraps the vertical's own JSON status/message in it. Passing it
|
|
@@ -152,19 +75,13 @@ export function mapError(err) {
|
|
|
152
75
|
// screen alone.
|
|
153
76
|
if (err instanceof ConnectionRelayError)
|
|
154
77
|
return relayed(err.status, err.message);
|
|
155
|
-
// THE CODE
|
|
156
|
-
//
|
|
157
|
-
//
|
|
158
|
-
// line is a throw site nobody has typed yet.
|
|
78
|
+
// THE CODE (#113). A throw that declared what it is renders from its own declaration —
|
|
79
|
+
// extensions included, so a `conflict` arrives carrying the `reason` the engine narrowed
|
|
80
|
+
// it with, and a parse failure its field list.
|
|
159
81
|
const declared = errorCodeOf(err);
|
|
160
82
|
if (declared !== undefined && err instanceof Error) {
|
|
161
83
|
return { status: PROBLEM_CATALOG[declared].status, body: toProblem(err) };
|
|
162
84
|
}
|
|
163
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
164
|
-
for (const [pattern, code] of CODE_PATTERNS) {
|
|
165
|
-
if (pattern.test(message))
|
|
166
|
-
return coded(code, message);
|
|
167
|
-
}
|
|
168
85
|
// The generic 500. `toProblem` refuses to disclose the message — that is the rule, and
|
|
169
86
|
// this surface has cross-tenant reach — so the body carries no `detail`. The deprecated
|
|
170
87
|
// `error` duplicate is set by hand to the same constant this branch has always
|
package/dist/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,SAAS,GAGV,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,SAAS,GAGV,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAO7D,uFAAuF;AACvF,MAAM,KAAK,GAAG,CAAC,IAAe,EAAE,OAAe,EAAY,EAAE,CAAC,CAAC;IAC7D,MAAM,EAAE,eAAe,CAAC,IAAI,CAAC,CAAC,MAA8B;IAC5D,IAAI,EAAE,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;CAC9C,CAAC,CAAC;AAEH,0FAA0F;AAC1F,MAAM,OAAO,GAAG,CAAC,MAAc,EAAE,OAAe,EAAY,EAAE,CAAC,CAAC;IAC9D,MAAM,EAAE,MAA8B;IACtC,IAAI,EAAE,gBAAgB,C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AM,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAC,MAA8B,EAAE,IAAI,EAAE,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;IACpG,CAAC;IAED,uFAAuF;IACvF,wFAAwF;IACxF,+EAA+E;IAC/E,uFAAuF;IACvF,4DAA4D;IAC5D,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,GAAG,SAAS,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,gBAAgB,EAAE,EAAE,CAAC;AAC/E,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export { retireAllPreviewClients, retireClientsOfReapedScope, tenantIssuers, wir
|
|
|
16
16
|
export type { PreviewAuthDeps, WirePreviewAuthInput } from './preview-auth.js';
|
|
17
17
|
export type { ScopeDeployment, ScopeDeploymentVia } from './scope-deployment.js';
|
|
18
18
|
export { drainScopePlatformRequests, MAX_PLATFORM_REQUEST_ATTEMPTS, provisionSiblingScope, provisionSiblingHandler, archiveScopeHandler, peerInvokeHandler, provisionTenantHandler, setEntitlementsHandler, modelUsageHandler, sweepRunsHandler, connectorDispatchHandler, type ConnectorDispatchDeps, type ManagedTenantDeps, type PlatformDrainOptions, type ArchiveScopeDeps, type PlatformRequestHandler, type PlatformDrainContext, type PlatformRequestContext, type PlatformRequestOutcome, type PlatformDrainReport, type PeerInvokeDeps, type ProvisionSiblingDeps, type ProvisionSiblingInput, type ProvisionSiblingResult, } from './platform-drain.js';
|
|
19
|
-
export { reconcilePayloadFor, reconcileThenReassert } from './reconcile.js';
|
|
19
|
+
export { reconcilePayloadFor, reconcileThenReassert, switchCarryFor, type SwitchCarry } from './reconcile.js';
|
|
20
20
|
export type { ReconcilePayload, ReconcileGatherAdmin } from './reconcile.js';
|
|
21
21
|
export { attributeFailure, terminalFailureNote } from './failure-attribution.js';
|
|
22
22
|
export { isTerminalDispatchFailure, isTerminalProviderError, providerErrorStatus, RETRYABLE_CLIENT_STATUSES, } from './provider-error.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,UAAU,CAAC;AAClB,YAAY,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAC5E,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,EACb,2BAA2B,EAC3B,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,cAAc,GACf,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AACjH,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACzE,YAAY,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EACL,yBAAyB,EACzB,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,GACpC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACrG,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACxF,YAAY,EACV,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,SAAS,GACV,MAAM,WAAW,CAAC;AAGnB,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAE,wBAAwB,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ANGED
|
@@ -16,7 +16,7 @@ export { hostedCrossVerticalReach } from './cross-vertical.js';
|
|
|
16
16
|
// platform sweep also runs when it garbage-collects an expired preview.
|
|
17
17
|
export { retireAllPreviewClients, retireClientsOfReapedScope, tenantIssuers, wirePreviewAuth } from './preview-auth.js';
|
|
18
18
|
export { drainScopePlatformRequests, MAX_PLATFORM_REQUEST_ATTEMPTS, provisionSiblingScope, provisionSiblingHandler, archiveScopeHandler, peerInvokeHandler, provisionTenantHandler, setEntitlementsHandler, modelUsageHandler, sweepRunsHandler, connectorDispatchHandler, } from './platform-drain.js';
|
|
19
|
-
export { reconcilePayloadFor, reconcileThenReassert } from './reconcile.js';
|
|
19
|
+
export { reconcilePayloadFor, reconcileThenReassert, switchCarryFor } from './reconcile.js';
|
|
20
20
|
export { attributeFailure, terminalFailureNote } from './failure-attribution.js';
|
|
21
21
|
// #1978: moving here from the kernel — the drain is its only reader.
|
|
22
22
|
export { isTerminalDispatchFailure, isTerminalProviderError, providerErrorStatus, RETRYABLE_CLIENT_STATUSES, } from './provider-error.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,UAAU,CAAC;AAElB,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,EACb,2BAA2B,EAC3B,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,cAAc,GACf,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AACjH,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAEzE,OAAO,EACL,yBAAyB,GAG1B,MAAM,wBAAwB,CAAC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F;AAClF,iFAAiF;AACjF,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,yFAAyF;AACzF,yFAAyF;AACzF,oFAAoF;AACpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAE7D,uFAAuF;AACvF,yFAAyF;AACzF,uFAAuF;AACvF,yFAAyF;AACzF,8EAA8E;AAC9E,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAG3E,OAAO,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC"}
|
package/dist/reconcile.d.ts
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* intent, the sweep records a receipt.
|
|
14
14
|
*/
|
|
15
15
|
import type { ModuleId, PlatformActorId, ScopeId, SwitchedOffInUnit, TenantId } from '@substrat-run/contracts';
|
|
16
|
-
import type
|
|
16
|
+
import { type HostAdmin } from '@substrat-run/kernel';
|
|
17
17
|
/** The slice of `HostAdmin` a gather needs. Narrow on purpose: this reads, never writes. */
|
|
18
18
|
export interface ReconcileGatherAdmin {
|
|
19
19
|
listEntitlements: (actor: PlatformActorId, tenantId: TenantId) => Promise<unknown[]>;
|
|
@@ -41,8 +41,8 @@ export declare function reconcilePayloadFor(admin: ReconcileGatherAdmin, actor:
|
|
|
41
41
|
vertical: string | null;
|
|
42
42
|
}): Promise<ReconcilePayload>;
|
|
43
43
|
/**
|
|
44
|
-
* What a reconcile, provision or restore carries of the
|
|
45
|
-
* directory records OFF on this one scope. Spread into the call's body, so the deployment
|
|
44
|
+
* What a reconcile, provision or restore carries of the switches (#1742): the modules (and,
|
|
45
|
+
* #2029, the peers) the directory records OFF on this one scope. Spread into the call's body, so the deployment
|
|
46
46
|
* switches them off again inside the unit that re-creates the scope's grants. Empty when
|
|
47
47
|
* nothing is recorded off, so a body for a scope never switched off is unchanged.
|
|
48
48
|
*/
|
|
@@ -54,13 +54,29 @@ export interface SwitchCarry {
|
|
|
54
54
|
* only because the platform says so. Absent when none is.
|
|
55
55
|
*/
|
|
56
56
|
tenantHeld?: ModuleId[];
|
|
57
|
+
/**
|
|
58
|
+
* #2029: the peers the directory records OFF on this scope, switched off again in the same
|
|
59
|
+
* unit. A deployment built before the field strips it, and the re-assert after the call
|
|
60
|
+
* switches them off instead. Absent when none is.
|
|
61
|
+
*/
|
|
62
|
+
switchedOffPeers?: string[];
|
|
63
|
+
/** Of `switchedOffPeers`, those held on this scope only by a tenant-level grant (#2030). */
|
|
64
|
+
tenantHeldPeers?: string[];
|
|
65
|
+
/**
|
|
66
|
+
* #2045: each recorded-off subject's fence, by tuple subject (`system:<m>`, `vertical:<v>`): the
|
|
67
|
+
* operation id of the call the record holds, so the deployment's in-unit OFF leaves a subject a
|
|
68
|
+
* newer call has moved as that call put it. A deployment built before it strips it.
|
|
69
|
+
*/
|
|
70
|
+
switchFences?: Record<string, string>;
|
|
57
71
|
}
|
|
72
|
+
/** The slice of `HostAdmin` that `switchCarryFor` reads. */
|
|
73
|
+
export type SwitchCarryAdmin = Pick<HostAdmin, 'listSystemSwitches' | 'tenantHeldSystemModules' | 'peerSwitchCarry'>;
|
|
58
74
|
/**
|
|
59
75
|
* Read the record for one scope, for `SwitchCarry`. The fleet read, narrowed to this scope
|
|
60
|
-
* and `off`, and of those the modules the tenant holds a tenant-level grant for (#1823);
|
|
61
|
-
*
|
|
76
|
+
* and `off`, and of those the modules the tenant holds a tenant-level grant for (#1823); then
|
|
77
|
+
* the same for the peers (#2029). Access-logged like the gather's other reads.
|
|
62
78
|
*/
|
|
63
|
-
export declare function switchCarryFor(admin:
|
|
79
|
+
export declare function switchCarryFor(admin: SwitchCarryAdmin, actor: PlatformActorId, node: {
|
|
64
80
|
tenantId: TenantId;
|
|
65
81
|
scopeId: ScopeId;
|
|
66
82
|
}): Promise<SwitchCarry>;
|
|
@@ -83,7 +99,7 @@ export declare function switchCarryFor(admin: Pick<HostAdmin, 'listSystemSwitche
|
|
|
83
99
|
*/
|
|
84
100
|
export declare function reconcileThenReassert<T extends {
|
|
85
101
|
switchedOff?: SwitchedOffInUnit[];
|
|
86
|
-
} | 'unsupported'>(admin: Pick<HostAdmin, 'reassertSystemSwitches'
|
|
102
|
+
} | 'unsupported'>(admin: Pick<HostAdmin, 'reassertSystemSwitches'> & SwitchCarryAdmin, actor: PlatformActorId, node: {
|
|
87
103
|
tenantId: TenantId;
|
|
88
104
|
scopeId: ScopeId;
|
|
89
105
|
}, reconcile: (carry: SwitchCarry) => Promise<T>): Promise<T>;
|
package/dist/reconcile.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reconcile.d.ts","sourceRoot":"","sources":["../src/reconcile.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,EACV,QAAQ,EACR,eAAe,EACf,OAAO,EACP,iBAAiB,EACjB,QAAQ,EACT,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"reconcile.d.ts","sourceRoot":"","sources":["../src/reconcile.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,EACV,QAAQ,EACR,eAAe,EACf,OAAO,EACP,iBAAiB,EACjB,QAAQ,EACT,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGvE,4FAA4F;AAC5F,MAAM,WAAW,oBAAoB;IACnC,gBAAgB,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,QAAQ,KAAK,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;IACrF,iBAAiB,EAAE,CACjB,KAAK,EAAE,eAAe,EACtB,QAAQ,EAAE,QAAQ,KACf,OAAO,CAAC;QAAE,QAAQ,EAAE,QA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AAgB,EACvB,KAAK,EAAE,eAAe,EACtB,IAAI,EAAE;IAAE,QAAQ,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,GAC7C,OAAO,CAAC,WAAW,CAAC,CAkBtB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,qBAAqB,CAAC,CAAC,SAAS;IAAE,WAAW,CAAC,EAAE,iBAAiB,EAAE,CAAA;CAAE,GAAG,aAAa,EACzG,KAAK,EAAE,IAAI,CAAC,SAAS,EAAE,wBAAwB,CAAC,GAAG,gBAAgB,EACnE,KAAK,EAAE,eAAe,EACtB,IAAI,EAAE;IAAE,QAAQ,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,EAC9C,SAAS,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,GAC5C,OAAO,CAAC,CAAC,CAAC,CAMZ"}
|
package/dist/reconcile.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { switchSubjectOf } from '@substrat-run/kernel';
|
|
1
2
|
import { connectionGrantsForScope } from './vertical-client.js';
|
|
2
3
|
/**
|
|
3
4
|
* Gather what a reconcile of this scope must carry.
|
|
@@ -25,20 +26,27 @@ export async function reconcilePayloadFor(admin, actor, scope) {
|
|
|
25
26
|
}
|
|
26
27
|
/**
|
|
27
28
|
* Read the record for one scope, for `SwitchCarry`. The fleet read, narrowed to this scope
|
|
28
|
-
* and `off`, and of those the modules the tenant holds a tenant-level grant for (#1823);
|
|
29
|
-
*
|
|
29
|
+
* and `off`, and of those the modules the tenant holds a tenant-level grant for (#1823); then
|
|
30
|
+
* the same for the peers (#2029). Access-logged like the gather's other reads.
|
|
30
31
|
*/
|
|
31
32
|
export async function switchCarryFor(admin, actor, node) {
|
|
32
|
-
const rows = await
|
|
33
|
-
position: 'off',
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
});
|
|
37
|
-
if (!rows.length)
|
|
38
|
-
return {};
|
|
33
|
+
const [rows, peers] = await Promise.all([
|
|
34
|
+
admin.listSystemSwitches(actor, { position: 'off', tenantId: node.tenantId, scopeId: node.scopeId }),
|
|
35
|
+
admin.peerSwitchCarry(actor, node),
|
|
36
|
+
]);
|
|
39
37
|
const switchedOff = rows.map((r) => r.moduleId);
|
|
40
|
-
const tenantHeld = await admin.tenantHeldSystemModules(actor, node.tenantId, switchedOff);
|
|
41
|
-
|
|
38
|
+
const tenantHeld = switchedOff.length ? await admin.tenantHeldSystemModules(actor, node.tenantId, switchedOff) : [];
|
|
39
|
+
const switchFences = Object.fromEntries([
|
|
40
|
+
...rows.map((r) => [switchSubjectOf('system', r.moduleId), r.operationId]),
|
|
41
|
+
...Object.entries(peers.fences).map(([v, fence]) => [switchSubjectOf('peer', v), fence]),
|
|
42
|
+
]);
|
|
43
|
+
return {
|
|
44
|
+
...(switchedOff.length ? { switchedOff } : {}),
|
|
45
|
+
...(tenantHeld.length ? { tenantHeld } : {}),
|
|
46
|
+
...(peers.switchedOffPeers.length ? { switchedOffPeers: peers.switchedOffPeers } : {}),
|
|
47
|
+
...(peers.tenantHeldPeers.length ? { tenantHeldPeers: peers.tenantHeldPeers } : {}),
|
|
48
|
+
...(Object.keys(switchFences).length ? { switchFences } : {}),
|
|
49
|
+
};
|
|
42
50
|
}
|
|
43
51
|
/**
|
|
44
52
|
* Run a hosted reconcile or provision, then put the directory's recorded OFF positions back
|
package/dist/reconcile.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reconcile.js","sourceRoot":"","sources":["../src/reconcile.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reconcile.js","sourceRoot":"","sources":["../src/reconcile.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,eAAe,EAAkB,MAAM,sBAAsB,CAAC;AACvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAoBhE;;;;;GAKG;AACH,MAAM,CAAC,KAA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,EAAE,KAAK,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACnF,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC9D,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACzC,KAAmE,EACnE,KAAsB,EACtB,IAA8C,EAC9C,SAA6C;IAE7C,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,MAAM,cAAc,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;IACzE,sFAAsF;IACtF,MAAM,aAAa,GAAG,MAAM,KAAK,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC;IAChF,MAAM,KAAK,CAAC,sBAAsB,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,aAAa,EAAE,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AttachmentRecord, ScopeLineage, ConnectionId, EntityRef, EntitlementGrant, ModuleId, PermissionKey, PlatformActorId, PlatformRequest, PlatformRequestFilter, PlatformRequestId, PlatformRequestStatus, PlatformRequestFailure, MintedPreviewClient, PreviewClientCheck, PreviewClientClaim, PreviewClientMint, PreviewClientRetire, PrincipalId, RetiredPreviewClients, PeerGrantsEntry, PeerSwitchOutcome, SystemSwitchOutcome, SystemScheduleEntry, ConnectionGrantRecord, ProjectedConnectionGrant, ProjectedConnectionKey, ProjectedIdentityLink, OwnerSeat, OwnerClaimLink, OwnerTransferResult, QueryScopeInput, ReadScopeTableInput, EntityHistoryInput, EventFacetInput, EventCauseInput, EventEffectsInput, EffectsTree, InvocationEventsInput, InvocationEvents, DeadLettersInput, DeadLetter, LifecycleFlowInput, LifecycleFlowResult, CauseChain, EventFacetResult, HistoryEntry, Page, ScopeDumpTable, ScopeId, ScopeQueryResult, DenialFilter, DenialSummary, PermissionDenial, ScopeTable, ScopeTablePage, TenantId, TenantStoreHandle, Visibility } from '@substrat-run/contracts';
|
|
1
|
+
import type { AttachmentRecord, ScopeLineage, ConnectionId, EntityRef, EntitlementGrant, ModuleId, PermissionKey, PlatformActorId, PlatformRequest, PlatformRequestFilter, PlatformRequestId, PlatformRequestStatus, PlatformRequestFailure, MintedPreviewClient, PreviewClientCheck, PreviewClientClaim, PreviewClientMint, PreviewClientRetire, PrincipalId, RetiredPreviewClients, PeerGrantsEntry, PeerSwitchOutcome, SystemSwitchOutcome, SystemScheduleEntry, ConnectionGrantRecord, ProjectedConnectionGrant, ProjectedConnectionKey, ProjectedIdentityLink, OwnerSeat, OwnerClaimLink, OwnerTransferResult, QueryScopeInput, ReadScopeTableInput, EntityHistoryInput, EventFacetInput, EventCauseInput, EventEffectsInput, EffectsTree, InvocationEventsInput, InvocationEvents, DeadLettersInput, DeadLetter, LifecycleFlowInput, LifecycleFlowResult, OperationSeriesInput, OperationSeriesResult, CauseChain, EventFacetResult, HistoryEntry, Page, ScopeDumpTable, ScopeId, ScopeQueryResult, DenialFilter, DenialSummary, PermissionDenial, ScopeTable, ScopeTablePage, TenantId, TenantStoreHandle, Visibility } from '@substrat-run/contracts';
|
|
2
2
|
import { type CapabilityFilter, type CapabilityPage, type LifecycleDelivery, type ScopeLifecycle, type SwitchedOffInUnit, type ImportCursorMoveAt, type ImportCursorMoved, type ExportReadInput, type ExportedBatch, type ImportBatch, type ImportResult, type ImportState } from '@substrat-run/contracts';
|
|
3
3
|
import type { KeptCopy, LoadMarker, OpenedAttachment, UndrainedEvents } from '@substrat-run/kernel';
|
|
4
4
|
/**
|
|
@@ -115,6 +115,12 @@ export interface ProvisionInstanceInput {
|
|
|
115
115
|
switchedOff?: ModuleId[];
|
|
116
116
|
/** Of `switchedOff`, the modules held on this scope only by a tenant-level grant (#1823). */
|
|
117
117
|
tenantHeld?: ModuleId[];
|
|
118
|
+
/** #2029: the peers the record holds OFF here, switched off in the same unit; a vertical that
|
|
119
|
+
* predates the field ignores it. And of those, the ones held only by a tenant grant (#2030). */
|
|
120
|
+
switchedOffPeers?: string[];
|
|
121
|
+
tenantHeldPeers?: string[];
|
|
122
|
+
/** #2045: each recorded-off subject's fence, by tuple subject. A vertical that predates it ignores it. */
|
|
123
|
+
switchFences?: Record<string, string>;
|
|
118
124
|
}
|
|
119
125
|
export interface ConfigureInstanceInput {
|
|
120
126
|
/** The scope's tenant — CP-less verticals shard identity/config storage per tenant
|
|
@@ -178,6 +184,11 @@ export interface ReconcileInstanceInput {
|
|
|
178
184
|
switchedOff?: ModuleId[];
|
|
179
185
|
/** Of `switchedOff`, the modules held only by a tenant-level grant (#1823) — as at provision. */
|
|
180
186
|
tenantHeld?: ModuleId[];
|
|
187
|
+
/** #2029: the recorded-off peers, and those held only by a tenant grant — as at provision. */
|
|
188
|
+
switchedOffPeers?: string[];
|
|
189
|
+
tenantHeldPeers?: string[];
|
|
190
|
+
/** #2045: each recorded-off subject's fence, by tuple subject. A vertical that predates it ignores it. */
|
|
191
|
+
switchFences?: Record<string, string>;
|
|
181
192
|
}
|
|
182
193
|
/**
|
|
183
194
|
* Materialize a tenant's directory-side connection grants for ONE scope (#592) — the
|
|
@@ -404,7 +415,21 @@ export declare class VerticalClient {
|
|
|
404
415
|
to: 'on' | 'off';
|
|
405
416
|
/** #1823: the platform holds a live tenant-level grant for the module — see the route's body. */
|
|
406
417
|
tenantHeld?: boolean;
|
|
418
|
+
/** #2045: the switch call's fence — see the route's body. */
|
|
419
|
+
fence?: string;
|
|
407
420
|
}): Promise<SystemSwitchOutcome>;
|
|
421
|
+
/**
|
|
422
|
+
* The switch fence's preflight (#2045, Codex r3): does the deployment serving this scope honour
|
|
423
|
+
* a switch call's fence? Asked before any switch call records or moves anything there.
|
|
424
|
+
*
|
|
425
|
+
* `false` only on the deployment's own proof that it cannot: a **404** (built before the route)
|
|
426
|
+
* or its **501** (a host that predates the fence). Everything else — a transport failure, a
|
|
427
|
+
* refusal, an unreadable or wrong-shaped 200 — throws, so a probe that could not be answered
|
|
428
|
+
* never reads as either verdict, and the switch call fails before it has written anything.
|
|
429
|
+
*/
|
|
430
|
+
switchFence(input: {
|
|
431
|
+
scopeId: ScopeId;
|
|
432
|
+
}): Promise<boolean>;
|
|
408
433
|
/**
|
|
409
434
|
* The read half of the schedule kill switch's status (#1674): every module the
|
|
410
435
|
* deployment serving this scope holds or has held system authority for, and where each
|
|
@@ -446,6 +471,10 @@ export declare class VerticalClient {
|
|
|
446
471
|
scopeId: ScopeId;
|
|
447
472
|
vertical: string;
|
|
448
473
|
to: 'on' | 'off';
|
|
474
|
+
/** #2030: the platform holds a live tenant-level grant for the peer — see the route's body. */
|
|
475
|
+
tenantHeld?: boolean;
|
|
476
|
+
/** #2045: the switch call's fence — see the route's body. */
|
|
477
|
+
fence?: string;
|
|
449
478
|
}): Promise<PeerSwitchOutcome>;
|
|
450
479
|
/**
|
|
451
480
|
* A preview's own client at a team auth-server (#1704, `@substrat-run/contracts`'
|
|
@@ -542,6 +571,10 @@ export declare class VerticalClient {
|
|
|
542
571
|
opts?: {
|
|
543
572
|
switchedOff?: ModuleId[];
|
|
544
573
|
tenantHeld?: ModuleId[];
|
|
574
|
+
/** #2029: the recorded-off peers, and those held only by a tenant grant (#2030). */
|
|
575
|
+
switchedOffPeers?: string[];
|
|
576
|
+
tenantHeldPeers?: string[];
|
|
577
|
+
switchFences?: Record<string, string>;
|
|
545
578
|
sourceScopeId?: ScopeId;
|
|
546
579
|
exact?: boolean;
|
|
547
580
|
loadStamp?: string;
|
|
@@ -664,6 +697,8 @@ export declare class VerticalClient {
|
|
|
664
697
|
deadLetters(scopeId: ScopeId, input: DeadLettersInput): Promise<Page<DeadLetter>>;
|
|
665
698
|
/** One entity's lifecycle replayed (#1744) — through the vertical that holds the outbox. */
|
|
666
699
|
lifecycleFlow(scopeId: ScopeId, input: LifecycleFlowInput): Promise<LifecycleFlowResult>;
|
|
700
|
+
/** Business volumes per bucket (#1750) — through the vertical that holds the outbox. */
|
|
701
|
+
operationSeries(scopeId: ScopeId, input: OperationSeriesInput): Promise<OperationSeriesResult>;
|
|
667
702
|
/** One record's event history (#1235) — `readHistory`'s answer, through the vertical that holds the data. */
|
|
668
703
|
entityHistory(scopeId: ScopeId, input: EntityHistoryInput): Promise<Page<HistoryEntry>>;
|
|
669
704
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vertical-client.d.ts","sourceRoot":"","sources":["../src/vertical-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,YAAY,EACZ,YAAY,EAEZ,SAAS,EACT,gBAAgB,EAChB,QAAQ,EACR,aAAa,EACb,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,EACX,qBAAqB,EACrB,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,WAAW,EACX,qBAAqB,EACrB,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,EACV,kBAAkB,EAClB,mBAAmB,EACnB,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,IAAI,EACJ,cAAc,EACd,OAAO,EACP,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,QAAQ,EACR,iBAAiB,EACjB,UAAU,EACX,MAAM,yBAAyB,CAAC;AACjC,OAA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A;KAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAI1H;IAED;;;OAGG;YACW,iBAAiB;YA+BjB,YAAY;IAgB1B,4EAA4E;YAC9D,WAAW;IAIzB,oGAAoG;YACtF,mBAAmB;CAUlC"}
|
|
1
|
+
{"version":3,"file":"vertical-client.d.ts","sourceRoot":"","sources":["../src/vertical-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,YAAY,EACZ,YAAY,EAEZ,SAAS,EACT,gBAAgB,EAChB,QAAQ,EACR,aAAa,EACb,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,EACX,qBAAqB,EACrB,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,WAAW,EACX,qBAAqB,EACrB,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,EACV,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,IAAI,EACJ,cAAc,EACd,OAAO,EACP,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,QAAQ,EACR,iBAAiB,EACjB,UAAU,EACX,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAML,KAAK,gBAAgB,EACrB,KAAK,cAAc,EAWnB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EAGnB,KAAK,iBAAiB,EAItB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EAE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AE,MAAM,CAAC;QAClB,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,GAAG,OAAO,CAAC,OAAO,CAAC,CAcnB;IAED;;;;;;;;;;;OAWG;IACG,cAAc,CAAC,KAAK,EAAE;QAAE,QAAQ,EAAE,QAAQ,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,KAAK,EAAE,eAAe,CAAA;KAAE,GAAG,OAAO,CAAC,aAAa,CAAC,CAEpH;IAED;;;;;OAKG;IACG,WAAW,CAAC,KAAK,EAAE;QAAE,QAAQ,EAAE,QAAQ,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CAGvF;IAED;;;;OAIG;IACG,YAAY,CAAC,KAAK,EAAE;QAAE,QAAQ,EAAE,QAAQ,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,KAAK,EAAE,WAAW,CAAA;KAAE,GAAG,OAAO,CAAC,YAAY,CAAC,CAE7G;IAED;;;;;OAKG;IACG,gBAAgB,CAAC,KAAK,EAAE;QAAE,QAAQ,EAAE,QAAQ,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,EAAE,EAAE,kBAAkB,CAAA;KAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAI1H;IAED;;;OAGG;YACW,iBAAiB;YA+BjB,YAAY;IAgB1B,4EAA4E;YAC9D,WAAW;IAIzB,oGAAoG;YACtF,mBAAmB;CAUlC"}
|
package/dist/vertical-client.js
CHANGED
|
@@ -396,6 +396,32 @@ export class VerticalClient {
|
|
|
396
396
|
body: JSON.stringify(input),
|
|
397
397
|
}));
|
|
398
398
|
}
|
|
399
|
+
/**
|
|
400
|
+
* The switch fence's preflight (#2045, Codex r3): does the deployment serving this scope honour
|
|
401
|
+
* a switch call's fence? Asked before any switch call records or moves anything there.
|
|
402
|
+
*
|
|
403
|
+
* `false` only on the deployment's own proof that it cannot: a **404** (built before the route)
|
|
404
|
+
* or its **501** (a host that predates the fence). Everything else — a transport failure, a
|
|
405
|
+
* refusal, an unreadable or wrong-shaped 200 — throws, so a probe that could not be answered
|
|
406
|
+
* never reads as either verdict, and the switch call fails before it has written anything.
|
|
407
|
+
*/
|
|
408
|
+
async switchFence(input) {
|
|
409
|
+
const verb = 'switch-fence';
|
|
410
|
+
const base = this.options.baseUrl ?? 'https://vertical.invalid';
|
|
411
|
+
const rule = {
|
|
412
|
+
legacy501: true,
|
|
413
|
+
lost: `whether the deployment serving scope ${input.scopeId} honours the switch fence could not be read. Nothing was switched; retry.`,
|
|
414
|
+
};
|
|
415
|
+
const answer = await this.routeAnswer(verb, rule, () => this.options.fetch(`${base}/internal/switch-fence?scopeId=${encodeURIComponent(input.scopeId)}`, {
|
|
416
|
+
method: 'GET',
|
|
417
|
+
headers: { [PLATFORM_SECRET_HEADER]: this.options.platformSecret },
|
|
418
|
+
}));
|
|
419
|
+
if (answer === PREDATES)
|
|
420
|
+
return false;
|
|
421
|
+
if (answer?.fenced === true)
|
|
422
|
+
return true;
|
|
423
|
+
throw new ControlPlaneError(502, `vertical answered ${verb} with an unexpected shape — ${rule.lost}`);
|
|
424
|
+
}
|
|
399
425
|
/**
|
|
400
426
|
* The read half of the schedule kill switch's status (#1674): every module the
|
|
401
427
|
* deployment serving this scope holds or has held system authority for, and where each
|
|
@@ -595,6 +621,9 @@ export class VerticalClient {
|
|
|
595
621
|
tables,
|
|
596
622
|
...(opts?.switchedOff ? { switchedOff: opts.switchedOff } : {}),
|
|
597
623
|
...(opts?.tenantHeld ? { tenantHeld: opts.tenantHeld } : {}),
|
|
624
|
+
...(opts?.switchedOffPeers ? { switchedOffPeers: opts.switchedOffPeers } : {}),
|
|
625
|
+
...(opts?.tenantHeldPeers ? { tenantHeldPeers: opts.tenantHeldPeers } : {}),
|
|
626
|
+
...(opts?.switchFences ? { switchFences: opts.switchFences } : {}),
|
|
598
627
|
...(opts?.sourceScopeId ? { sourceScopeId: opts.sourceScopeId } : {}),
|
|
599
628
|
...(opts?.exact ? { exact: true } : {}),
|
|
600
629
|
...(opts?.loadStamp ? { loadStamp: opts.loadStamp } : {}),
|
|
@@ -833,6 +862,10 @@ export class VerticalClient {
|
|
|
833
862
|
async lifecycleFlow(scopeId, input) {
|
|
834
863
|
return this.postInternal('/internal/lifecycle-flow', { scopeId, ...input }, 'lifecycle-flow');
|
|
835
864
|
}
|
|
865
|
+
/** Business volumes per bucket (#1750) — through the vertical that holds the outbox. */
|
|
866
|
+
async operationSeries(scopeId, input) {
|
|
867
|
+
return this.postInternal('/internal/operation-series', { scopeId, ...input }, 'operation-series');
|
|
868
|
+
}
|
|
836
869
|
/** One record's event history (#1235) — `readHistory`'s answer, through the vertical that holds the data. */
|
|
837
870
|
async entityHistory(scopeId, input) {
|
|
838
871
|
const q = new URLSearchParams({
|