@inflatable-cookie/longhorn 0.1.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/LICENSE +21 -0
- package/README.md +38 -0
- package/package.json +205 -0
- package/src/agent-control/index.ts +20 -0
- package/src/agent-control/inject.ts +4 -0
- package/src/agent-control/shim.ts +722 -0
- package/src/bridge/direct.ts +22 -0
- package/src/bridge/generated/fields.ts +32 -0
- package/src/bridge/generated/protocol.ts +218 -0
- package/src/bridge/generated/variant-fields.ts +10 -0
- package/src/bridge/index.ts +15 -0
- package/src/bridge/job.ts +51 -0
- package/src/bridge/loopback.ts +84 -0
- package/src/bridge/operation.ts +166 -0
- package/src/bridge/router.ts +71 -0
- package/src/bridge/runtime/connection.ts +318 -0
- package/src/bridge/runtime/policy.ts +89 -0
- package/src/bridge/runtime/retry.ts +60 -0
- package/src/bridge/runtime.ts +3 -0
- package/src/bridge/session.ts +67 -0
- package/src/bridge/stream/connection.ts +146 -0
- package/src/bridge/stream/source.ts +61 -0
- package/src/bridge/stream/tracker.ts +109 -0
- package/src/bridge/stream.ts +6 -0
- package/src/bridge/supervision.ts +204 -0
- package/src/bridge/validation/base.ts +164 -0
- package/src/bridge/validation/jobs.ts +105 -0
- package/src/bridge/validation/negotiation.ts +242 -0
- package/src/bridge/validation/operations.ts +213 -0
- package/src/bridge/validation/streams.ts +47 -0
- package/src/bridge/validation.ts +5 -0
- package/src/commands/client.ts +124 -0
- package/src/commands/controller.ts +411 -0
- package/src/commands/generated/fields.ts +43 -0
- package/src/commands/generated/protocol.ts +876 -0
- package/src/commands/generated/variant-fields.ts +88 -0
- package/src/commands/index.ts +13 -0
- package/src/commands/keyboard.ts +361 -0
- package/src/commands/ports.ts +82 -0
- package/src/commands/projectors.ts +306 -0
- package/src/commands/validation.ts +444 -0
- package/src/config/client.ts +215 -0
- package/src/config/generated/base.ts +714 -0
- package/src/config/generated/fields.ts +54 -0
- package/src/config/generated/label-template.ts +14 -0
- package/src/config/generated/labels.ts +30 -0
- package/src/config/generated/protocol.ts +3 -0
- package/src/config/generated/restore.ts +658 -0
- package/src/config/generated/variant-fields.ts +129 -0
- package/src/config/index.ts +12 -0
- package/src/config/names.ts +19 -0
- package/src/config/validation/commands.ts +155 -0
- package/src/config/validation/outcomes.ts +243 -0
- package/src/config/validation/primitives.ts +174 -0
- package/src/config/validation/projection.ts +351 -0
- package/src/config/validation.ts +7 -0
- package/src/core/connection.ts +252 -0
- package/src/core/index.ts +2 -0
- package/src/core/transport.ts +24 -0
- package/src/history/client.ts +65 -0
- package/src/history/controller.ts +385 -0
- package/src/history/direct.ts +21 -0
- package/src/history/generated/fields.ts +18 -0
- package/src/history/generated/protocol.ts +389 -0
- package/src/history/generated/variant-fields.ts +27 -0
- package/src/history/index.ts +13 -0
- package/src/history/ports.ts +31 -0
- package/src/history/serialized.ts +38 -0
- package/src/history/validation.ts +334 -0
- package/src/history-tree/client.ts +16 -0
- package/src/history-tree/controller.ts +199 -0
- package/src/history-tree/direct.ts +3 -0
- package/src/history-tree/generated/fields.ts +26 -0
- package/src/history-tree/generated/protocol.ts +711 -0
- package/src/history-tree/generated/variant-fields.ts +39 -0
- package/src/history-tree/index.ts +13 -0
- package/src/history-tree/ports.ts +43 -0
- package/src/history-tree/serialized.ts +15 -0
- package/src/history-tree/validation.ts +269 -0
- package/src/layout/generated/protocol.ts +289 -0
- package/src/layout/index.ts +4 -0
- package/src/layout/ratio.ts +22 -0
- package/src/layout/validation.ts +110 -0
- package/src/layout/visibility.ts +30 -0
- package/src/licence/client.ts +32 -0
- package/src/licence/controller.ts +301 -0
- package/src/licence/direct.ts +3 -0
- package/src/licence/generated/fields.ts +17 -0
- package/src/licence/generated/key-conformance.json +42 -0
- package/src/licence/generated/protocol.ts +249 -0
- package/src/licence/generated/variant-fields.ts +34 -0
- package/src/licence/index.ts +14 -0
- package/src/licence/key.ts +125 -0
- package/src/licence/ports.ts +39 -0
- package/src/licence/serialized.ts +13 -0
- package/src/licence/validation.ts +226 -0
- package/src/native-content/client.ts +474 -0
- package/src/native-content/direct.ts +16 -0
- package/src/native-content/generated/fields.ts +32 -0
- package/src/native-content/generated/protocol.ts +498 -0
- package/src/native-content/generated/variant-fields.ts +77 -0
- package/src/native-content/index.ts +12 -0
- package/src/native-content/ports.ts +46 -0
- package/src/native-content/serialized.ts +50 -0
- package/src/native-content/validation/base.ts +194 -0
- package/src/native-content/validation/messages.ts +192 -0
- package/src/native-content/validation/state.ts +404 -0
- package/src/native-content/validation.ts +7 -0
- package/src/notifications/client.ts +106 -0
- package/src/notifications/controller.ts +240 -0
- package/src/notifications/direct.ts +12 -0
- package/src/notifications/generated/fields.ts +19 -0
- package/src/notifications/generated/labels.ts +20 -0
- package/src/notifications/generated/protocol.ts +522 -0
- package/src/notifications/generated/variant-fields.ts +37 -0
- package/src/notifications/index.ts +16 -0
- package/src/notifications/ports.ts +22 -0
- package/src/notifications/serialized.ts +27 -0
- package/src/notifications/toast.ts +41 -0
- package/src/notifications/tone.ts +27 -0
- package/src/notifications/validation.ts +246 -0
- package/src/operation/bridge.ts +168 -0
- package/src/operation/client.ts +167 -0
- package/src/operation/controller.ts +321 -0
- package/src/operation/direct.ts +15 -0
- package/src/operation/generated/fields.ts +20 -0
- package/src/operation/generated/labels.ts +15 -0
- package/src/operation/generated/protocol.ts +762 -0
- package/src/operation/generated/variant-fields.ts +60 -0
- package/src/operation/index.ts +14 -0
- package/src/operation/ports.ts +29 -0
- package/src/operation/serialized.ts +39 -0
- package/src/operation/validation.ts +479 -0
- package/src/settings/client.ts +142 -0
- package/src/settings/connection.ts +246 -0
- package/src/settings/generated/fields.ts +34 -0
- package/src/settings/generated/protocol.ts +668 -0
- package/src/settings/generated/variant-fields.ts +26 -0
- package/src/settings/index.ts +12 -0
- package/src/settings/names.ts +8 -0
- package/src/settings/registry.ts +141 -0
- package/src/settings/validation/authority.ts +66 -0
- package/src/settings/validation/command.ts +165 -0
- package/src/settings/validation/error.ts +33 -0
- package/src/settings/validation/primitives.ts +203 -0
- package/src/settings/validation/projection.ts +50 -0
- package/src/settings/validation/registry.ts +170 -0
- package/src/settings/validation.ts +4 -0
- package/src/surface-transfer/client.ts +54 -0
- package/src/surface-transfer/generated/fields.ts +12 -0
- package/src/surface-transfer/generated/protocol.ts +61 -0
- package/src/surface-transfer/generated/variant-fields.ts +30 -0
- package/src/surface-transfer/index.ts +9 -0
- package/src/surface-transfer/validation.ts +209 -0
- package/src/surfaces/client.ts +140 -0
- package/src/surfaces/generated/fields.ts +19 -0
- package/src/surfaces/generated/protocol.ts +217 -0
- package/src/surfaces/generated/variant-fields.ts +42 -0
- package/src/surfaces/index.ts +9 -0
- package/src/surfaces/validation.ts +199 -0
- package/src/transfer/client.ts +133 -0
- package/src/transfer/connection.ts +87 -0
- package/src/transfer/generated/fields.ts +23 -0
- package/src/transfer/generated/protocol.ts +171 -0
- package/src/transfer/generated/variant-fields.ts +45 -0
- package/src/transfer/index.ts +11 -0
- package/src/transfer/payload.ts +71 -0
- package/src/transfer/validation.ts +282 -0
- package/src/update/client.ts +29 -0
- package/src/update/controller.ts +255 -0
- package/src/update/direct.ts +3 -0
- package/src/update/generated/fields.ts +14 -0
- package/src/update/generated/protocol.ts +238 -0
- package/src/update/generated/variant-fields.ts +44 -0
- package/src/update/index.ts +14 -0
- package/src/update/ports.ts +36 -0
- package/src/update/serialized.ts +12 -0
- package/src/update/validation.ts +191 -0
|
@@ -0,0 +1,658 @@
|
|
|
1
|
+
// @generated by `effigy generate:config`; do not edit.
|
|
2
|
+
// Rust serde types are the wire authority.
|
|
3
|
+
import type { BackupPublicationReceiptProjection, ConfigGeneration, ConfigOperationRejection, ConfigOperationsSnapshot, ConfigProtocolVersion, ConfigRequestId } from "./base.ts";
|
|
4
|
+
|
|
5
|
+
export const RESTORE_ARCHIVE_SELECTION_SOURCES = ["inventory","hostPicker"] as const;
|
|
6
|
+
export const RESTORE_IDENTITY_STATUSES = ["compatible","mismatch"] as const;
|
|
7
|
+
export const RESTORE_DOMAIN_COMPATIBILITY_STATUSES = ["ready","migrationRequired","unknownDomain","descriptorMismatch","domainCodeUnavailable","policyExcluded","customAdapterUnavailable","customAdapterReady","customAdapterRejected","targetUnavailable","sourcePreserved","sourceRejected","targetPreparationFailed"] as const;
|
|
8
|
+
export const RESTORE_ADAPTER_PARTICIPATION_KINDS = ["excluded","separate","failureAtomic","groupedFailureAtomic"] as const;
|
|
9
|
+
export const RESTORE_CURRENT_EVIDENCE_STATES = ["absent","present"] as const;
|
|
10
|
+
export const RESTORE_INSPECT_STATUSES = ["ready","locked","rejected"] as const;
|
|
11
|
+
export const RESTORE_PLAN_STATUSES = ["ready","rejected"] as const;
|
|
12
|
+
export const RESTORE_EXECUTE_STATUSES = ["succeeded","rolledBack","recoveryRequired","rejected"] as const;
|
|
13
|
+
export const RESTORE_ADAPTER_EXECUTE_STATUSES = ["completed","rejected"] as const;
|
|
14
|
+
export const RESTORE_RECOVERY_STATUSES = ["recovered","recoveryRequired","rejected"] as const;
|
|
15
|
+
|
|
16
|
+
export type RestoreOperationStateProjection = "inactive" | "active" | "recoveryRequired";
|
|
17
|
+
|
|
18
|
+
export type RestoreOperationsProjection = {
|
|
19
|
+
/**
|
|
20
|
+
* Exact durable journal state.
|
|
21
|
+
*/
|
|
22
|
+
state: RestoreOperationStateProjection,
|
|
23
|
+
/**
|
|
24
|
+
* Safety archive pinned by an unresolved journal, when readable.
|
|
25
|
+
*/
|
|
26
|
+
safetyBackupSha256: string | null, };
|
|
27
|
+
|
|
28
|
+
export type RestoreArchiveSelection = { "source": "inventory",
|
|
29
|
+
/**
|
|
30
|
+
* Digest over exact published archive bytes.
|
|
31
|
+
*/
|
|
32
|
+
archiveSha256: string, } | { "source": "hostPicker" };
|
|
33
|
+
|
|
34
|
+
export type RestoreIntegrityProjection = "verified";
|
|
35
|
+
|
|
36
|
+
export type RestoreAuthenticityProjection = "unauthenticated" | "authenticated";
|
|
37
|
+
|
|
38
|
+
export type RestoreIdentityStatusProjection = { "status": "compatible" } | { "status": "mismatch",
|
|
39
|
+
/**
|
|
40
|
+
* Stable identity required by the host.
|
|
41
|
+
*/
|
|
42
|
+
expected: string,
|
|
43
|
+
/**
|
|
44
|
+
* Stable identity declared by the archive.
|
|
45
|
+
*/
|
|
46
|
+
archive: string, };
|
|
47
|
+
|
|
48
|
+
export type RestoreIdentityProjection = {
|
|
49
|
+
/**
|
|
50
|
+
* Application-id compatibility.
|
|
51
|
+
*/
|
|
52
|
+
application: RestoreIdentityStatusProjection,
|
|
53
|
+
/**
|
|
54
|
+
* Producer-name compatibility.
|
|
55
|
+
*/
|
|
56
|
+
producer: RestoreIdentityStatusProjection, };
|
|
57
|
+
|
|
58
|
+
export type RestoreConsistencyGroupProjection = {
|
|
59
|
+
/**
|
|
60
|
+
* Stable group id.
|
|
61
|
+
*/
|
|
62
|
+
id: string,
|
|
63
|
+
/**
|
|
64
|
+
* Coordinated-bounded or external-snapshot mode.
|
|
65
|
+
*/
|
|
66
|
+
mode: string,
|
|
67
|
+
/**
|
|
68
|
+
* Declared transaction authority.
|
|
69
|
+
*/
|
|
70
|
+
authority: string, };
|
|
71
|
+
|
|
72
|
+
export type RestoreDomainCompatibilityProjection = { "status": "ready" } | { "status": "migrationRequired",
|
|
73
|
+
/**
|
|
74
|
+
* Archive schema.
|
|
75
|
+
*/
|
|
76
|
+
from: number,
|
|
77
|
+
/**
|
|
78
|
+
* Registered target schema.
|
|
79
|
+
*/
|
|
80
|
+
to: number, } | { "status": "unknownDomain" } | { "status": "descriptorMismatch" } | { "status": "domainCodeUnavailable" } | { "status": "policyExcluded",
|
|
81
|
+
/**
|
|
82
|
+
* Stable exclusion reason.
|
|
83
|
+
*/
|
|
84
|
+
reason: string, } | { "status": "customAdapterUnavailable",
|
|
85
|
+
/**
|
|
86
|
+
* Stable adapter id.
|
|
87
|
+
*/
|
|
88
|
+
adapter: string, } | { "status": "customAdapterReady",
|
|
89
|
+
/**
|
|
90
|
+
* Stable adapter id.
|
|
91
|
+
*/
|
|
92
|
+
adapter: string,
|
|
93
|
+
/**
|
|
94
|
+
* Adapter transaction guarantee.
|
|
95
|
+
*/
|
|
96
|
+
participation: RestoreAdapterParticipationProjection,
|
|
97
|
+
/**
|
|
98
|
+
* Digest required for this adapter operation.
|
|
99
|
+
*/
|
|
100
|
+
confirmationDigest: string, } | { "status": "customAdapterRejected",
|
|
101
|
+
/**
|
|
102
|
+
* Stable adapter id.
|
|
103
|
+
*/
|
|
104
|
+
adapter: string,
|
|
105
|
+
/**
|
|
106
|
+
* Stable non-secret failure.
|
|
107
|
+
*/
|
|
108
|
+
detail: string, } | { "status": "targetUnavailable",
|
|
109
|
+
/**
|
|
110
|
+
* Stable unavailable authority class.
|
|
111
|
+
*/
|
|
112
|
+
reason: string, } | { "status": "sourcePreserved",
|
|
113
|
+
/**
|
|
114
|
+
* Stable source issue.
|
|
115
|
+
*/
|
|
116
|
+
issue: string, } | { "status": "sourceRejected",
|
|
117
|
+
/**
|
|
118
|
+
* Stable source issue.
|
|
119
|
+
*/
|
|
120
|
+
issue: string, } | { "status": "targetPreparationFailed",
|
|
121
|
+
/**
|
|
122
|
+
* Stable consumer preparation detail.
|
|
123
|
+
*/
|
|
124
|
+
detail: string, };
|
|
125
|
+
|
|
126
|
+
export type RestoreAdapterParticipationProjection = { "kind": "excluded",
|
|
127
|
+
/**
|
|
128
|
+
* Stable exclusion reason.
|
|
129
|
+
*/
|
|
130
|
+
reason: string, } | { "kind": "separate" } | { "kind": "failureAtomic" } | { "kind": "groupedFailureAtomic" };
|
|
131
|
+
|
|
132
|
+
export type RestoreDomainInspectionProjection = {
|
|
133
|
+
/**
|
|
134
|
+
* Stable domain id.
|
|
135
|
+
*/
|
|
136
|
+
domainId: string,
|
|
137
|
+
/**
|
|
138
|
+
* Manifest storage class.
|
|
139
|
+
*/
|
|
140
|
+
storageClass: string,
|
|
141
|
+
/**
|
|
142
|
+
* Manifest consistency group.
|
|
143
|
+
*/
|
|
144
|
+
consistencyGroup: string,
|
|
145
|
+
/**
|
|
146
|
+
* Manifest adapter id.
|
|
147
|
+
*/
|
|
148
|
+
adapter: string,
|
|
149
|
+
/**
|
|
150
|
+
* Present, absent, or source-preserved state.
|
|
151
|
+
*/
|
|
152
|
+
sourceState: string,
|
|
153
|
+
/**
|
|
154
|
+
* Archive source schema when readable.
|
|
155
|
+
*/
|
|
156
|
+
sourceSchemaVersion: number | null,
|
|
157
|
+
/**
|
|
158
|
+
* Registered target schema when known.
|
|
159
|
+
*/
|
|
160
|
+
targetSchemaVersion: number | null,
|
|
161
|
+
/**
|
|
162
|
+
* Exact compatibility classification.
|
|
163
|
+
*/
|
|
164
|
+
compatibility: RestoreDomainCompatibilityProjection, };
|
|
165
|
+
|
|
166
|
+
export type RestoreExclusionProjection = {
|
|
167
|
+
/**
|
|
168
|
+
* Excluded domain.
|
|
169
|
+
*/
|
|
170
|
+
domainId: string,
|
|
171
|
+
/**
|
|
172
|
+
* Manifest storage class.
|
|
173
|
+
*/
|
|
174
|
+
storageClass: string,
|
|
175
|
+
/**
|
|
176
|
+
* Stable manifest reason.
|
|
177
|
+
*/
|
|
178
|
+
reason: string,
|
|
179
|
+
/**
|
|
180
|
+
* Whether the target registers this domain.
|
|
181
|
+
*/
|
|
182
|
+
registered: boolean, };
|
|
183
|
+
|
|
184
|
+
export type RestoreInspectionReceiptProjection = {
|
|
185
|
+
/**
|
|
186
|
+
* Included manifest domains inspected.
|
|
187
|
+
*/
|
|
188
|
+
manifestDomains: number,
|
|
189
|
+
/**
|
|
190
|
+
* Manifest exclusions inspected.
|
|
191
|
+
*/
|
|
192
|
+
exclusions: number,
|
|
193
|
+
/**
|
|
194
|
+
* Ordinary domains eligible for selection.
|
|
195
|
+
*/
|
|
196
|
+
restorable: number,
|
|
197
|
+
/**
|
|
198
|
+
* Eligible domains requiring migration.
|
|
199
|
+
*/
|
|
200
|
+
migrations: number,
|
|
201
|
+
/**
|
|
202
|
+
* Domains eligible for explicit adapter restore.
|
|
203
|
+
*/
|
|
204
|
+
adapterRestorable: number,
|
|
205
|
+
/**
|
|
206
|
+
* Included domains blocked from selection.
|
|
207
|
+
*/
|
|
208
|
+
blocked: number, };
|
|
209
|
+
|
|
210
|
+
export type RestoreInspectionProjection = {
|
|
211
|
+
/**
|
|
212
|
+
* Digest over exact selected archive bytes.
|
|
213
|
+
*/
|
|
214
|
+
archiveSha256: string,
|
|
215
|
+
/**
|
|
216
|
+
* Manifest archive identity.
|
|
217
|
+
*/
|
|
218
|
+
archiveId: string,
|
|
219
|
+
/**
|
|
220
|
+
* Strict manifest creation time.
|
|
221
|
+
*/
|
|
222
|
+
createdAt: string,
|
|
223
|
+
/**
|
|
224
|
+
* Archive purpose.
|
|
225
|
+
*/
|
|
226
|
+
kind: string,
|
|
227
|
+
/**
|
|
228
|
+
* Producing application version.
|
|
229
|
+
*/
|
|
230
|
+
applicationVersion: string,
|
|
231
|
+
/**
|
|
232
|
+
* Producing Longhorn version.
|
|
233
|
+
*/
|
|
234
|
+
producerVersion: string,
|
|
235
|
+
/**
|
|
236
|
+
* Byte-integrity result.
|
|
237
|
+
*/
|
|
238
|
+
integrity: RestoreIntegrityProjection,
|
|
239
|
+
/**
|
|
240
|
+
* Independent authenticity result.
|
|
241
|
+
*/
|
|
242
|
+
authenticity: RestoreAuthenticityProjection,
|
|
243
|
+
/**
|
|
244
|
+
* Application and producer compatibility.
|
|
245
|
+
*/
|
|
246
|
+
identity: RestoreIdentityProjection,
|
|
247
|
+
/**
|
|
248
|
+
* Independent archive consistency groups.
|
|
249
|
+
*/
|
|
250
|
+
consistencyGroups: Array<RestoreConsistencyGroupProjection>,
|
|
251
|
+
/**
|
|
252
|
+
* Included archive domains.
|
|
253
|
+
*/
|
|
254
|
+
domains: Array<RestoreDomainInspectionProjection>,
|
|
255
|
+
/**
|
|
256
|
+
* Explicit archive exclusions.
|
|
257
|
+
*/
|
|
258
|
+
exclusions: Array<RestoreExclusionProjection>,
|
|
259
|
+
/**
|
|
260
|
+
* Complete inspection counts.
|
|
261
|
+
*/
|
|
262
|
+
receipt: RestoreInspectionReceiptProjection, };
|
|
263
|
+
|
|
264
|
+
export type RestoreInspectCommand = {
|
|
265
|
+
/**
|
|
266
|
+
* Exact protocol version.
|
|
267
|
+
*/
|
|
268
|
+
protocolVersion: ConfigProtocolVersion,
|
|
269
|
+
/**
|
|
270
|
+
* Idempotency and correlation identity.
|
|
271
|
+
*/
|
|
272
|
+
requestId: ConfigRequestId,
|
|
273
|
+
/**
|
|
274
|
+
* Inventory digest or host picker request.
|
|
275
|
+
*/
|
|
276
|
+
selection: RestoreArchiveSelection, };
|
|
277
|
+
|
|
278
|
+
export type RestoreInspectOutcome = { "status": "ready",
|
|
279
|
+
/**
|
|
280
|
+
* Fresh host generation.
|
|
281
|
+
*/
|
|
282
|
+
generation: ConfigGeneration,
|
|
283
|
+
/**
|
|
284
|
+
* Complete verified inspection.
|
|
285
|
+
*/
|
|
286
|
+
inspection: RestoreInspectionProjection, } | { "status": "locked",
|
|
287
|
+
/**
|
|
288
|
+
* Redacted host detail.
|
|
289
|
+
*/
|
|
290
|
+
detail: string, } | { "status": "rejected",
|
|
291
|
+
/**
|
|
292
|
+
* Typed refusal.
|
|
293
|
+
*/
|
|
294
|
+
rejection: ConfigOperationRejection, };
|
|
295
|
+
|
|
296
|
+
export type RestoreConflictChoiceProjection = "useArchive" | "keepCurrent";
|
|
297
|
+
|
|
298
|
+
export type RestoreDomainChoice = {
|
|
299
|
+
/**
|
|
300
|
+
* Included manifest domain.
|
|
301
|
+
*/
|
|
302
|
+
domainId: string,
|
|
303
|
+
/**
|
|
304
|
+
* Explicit conflict resolution.
|
|
305
|
+
*/
|
|
306
|
+
choice: RestoreConflictChoiceProjection, };
|
|
307
|
+
|
|
308
|
+
export type RestoreCurrentEvidenceProjection = { "state": "absent" } | { "state": "present",
|
|
309
|
+
/**
|
|
310
|
+
* Exact current byte length.
|
|
311
|
+
*/
|
|
312
|
+
byteLength: number,
|
|
313
|
+
/**
|
|
314
|
+
* Digest over exact current bytes.
|
|
315
|
+
*/
|
|
316
|
+
sha256: string, };
|
|
317
|
+
|
|
318
|
+
export type RestorePlanEntryProjection = {
|
|
319
|
+
/**
|
|
320
|
+
* Included manifest domain.
|
|
321
|
+
*/
|
|
322
|
+
domainId: string,
|
|
323
|
+
/**
|
|
324
|
+
* Explicit user choice.
|
|
325
|
+
*/
|
|
326
|
+
choice: RestoreConflictChoiceProjection,
|
|
327
|
+
/**
|
|
328
|
+
* Derived action for a selected domain.
|
|
329
|
+
*/
|
|
330
|
+
action: string | null,
|
|
331
|
+
/**
|
|
332
|
+
* Current evidence bound for a selected domain.
|
|
333
|
+
*/
|
|
334
|
+
current: RestoreCurrentEvidenceProjection | null, };
|
|
335
|
+
|
|
336
|
+
export type RestorePlanReceiptProjection = {
|
|
337
|
+
/**
|
|
338
|
+
* Domains selecting archive state.
|
|
339
|
+
*/
|
|
340
|
+
selected: number,
|
|
341
|
+
/**
|
|
342
|
+
* Domains preserving current state.
|
|
343
|
+
*/
|
|
344
|
+
skipped: number,
|
|
345
|
+
/**
|
|
346
|
+
* Missing targets to create.
|
|
347
|
+
*/
|
|
348
|
+
creates: number,
|
|
349
|
+
/**
|
|
350
|
+
* Existing targets to replace.
|
|
351
|
+
*/
|
|
352
|
+
replaces: number,
|
|
353
|
+
/**
|
|
354
|
+
* Existing targets to delete.
|
|
355
|
+
*/
|
|
356
|
+
deletes: number,
|
|
357
|
+
/**
|
|
358
|
+
* Selected sources requiring migration.
|
|
359
|
+
*/
|
|
360
|
+
migrations: number,
|
|
361
|
+
/**
|
|
362
|
+
* Selected targets already equal to archive state.
|
|
363
|
+
*/
|
|
364
|
+
unchanged: number, };
|
|
365
|
+
|
|
366
|
+
export type RestorePlanProjection = {
|
|
367
|
+
/**
|
|
368
|
+
* Digest over the inspected archive.
|
|
369
|
+
*/
|
|
370
|
+
archiveSha256: string,
|
|
371
|
+
/**
|
|
372
|
+
* Digest binding archive, choices, actions, and current evidence.
|
|
373
|
+
*/
|
|
374
|
+
confirmationDigest: string,
|
|
375
|
+
/**
|
|
376
|
+
* Every explicit manifest-domain choice.
|
|
377
|
+
*/
|
|
378
|
+
entries: Array<RestorePlanEntryProjection>,
|
|
379
|
+
/**
|
|
380
|
+
* Complete action counts.
|
|
381
|
+
*/
|
|
382
|
+
receipt: RestorePlanReceiptProjection, };
|
|
383
|
+
|
|
384
|
+
export type RestorePlanCommand = {
|
|
385
|
+
/**
|
|
386
|
+
* Exact protocol version.
|
|
387
|
+
*/
|
|
388
|
+
protocolVersion: ConfigProtocolVersion,
|
|
389
|
+
/**
|
|
390
|
+
* Idempotency and correlation identity.
|
|
391
|
+
*/
|
|
392
|
+
requestId: ConfigRequestId,
|
|
393
|
+
/**
|
|
394
|
+
* Expected host generation.
|
|
395
|
+
*/
|
|
396
|
+
generation: ConfigGeneration,
|
|
397
|
+
/**
|
|
398
|
+
* Exact inspected archive digest.
|
|
399
|
+
*/
|
|
400
|
+
archiveSha256: string,
|
|
401
|
+
/**
|
|
402
|
+
* One explicit choice for every included domain.
|
|
403
|
+
*/
|
|
404
|
+
choices: Array<RestoreDomainChoice>, };
|
|
405
|
+
|
|
406
|
+
export type RestorePlanOutcome = { "status": "ready",
|
|
407
|
+
/**
|
|
408
|
+
* Fresh host generation.
|
|
409
|
+
*/
|
|
410
|
+
generation: ConfigGeneration,
|
|
411
|
+
/**
|
|
412
|
+
* Confirmation-bound plan.
|
|
413
|
+
*/
|
|
414
|
+
plan: RestorePlanProjection, } | { "status": "rejected",
|
|
415
|
+
/**
|
|
416
|
+
* Typed refusal.
|
|
417
|
+
*/
|
|
418
|
+
rejection: ConfigOperationRejection, };
|
|
419
|
+
|
|
420
|
+
export type RestoreExecuteCommand = {
|
|
421
|
+
/**
|
|
422
|
+
* Exact protocol version.
|
|
423
|
+
*/
|
|
424
|
+
protocolVersion: ConfigProtocolVersion,
|
|
425
|
+
/**
|
|
426
|
+
* Idempotency and correlation identity.
|
|
427
|
+
*/
|
|
428
|
+
requestId: ConfigRequestId,
|
|
429
|
+
/**
|
|
430
|
+
* Expected host generation.
|
|
431
|
+
*/
|
|
432
|
+
generation: ConfigGeneration,
|
|
433
|
+
/**
|
|
434
|
+
* Exact host-issued plan digest.
|
|
435
|
+
*/
|
|
436
|
+
confirmationDigest: string, };
|
|
437
|
+
|
|
438
|
+
export type RestoreStagingReceiptProjection = {
|
|
439
|
+
/**
|
|
440
|
+
* Selected domains staged together.
|
|
441
|
+
*/
|
|
442
|
+
selected: number,
|
|
443
|
+
/**
|
|
444
|
+
* Current-schema documents held privately.
|
|
445
|
+
*/
|
|
446
|
+
documents: number,
|
|
447
|
+
/**
|
|
448
|
+
* Selected deletions.
|
|
449
|
+
*/
|
|
450
|
+
deletions: number,
|
|
451
|
+
/**
|
|
452
|
+
* Selected domains needing no publication.
|
|
453
|
+
*/
|
|
454
|
+
unchanged: number,
|
|
455
|
+
/**
|
|
456
|
+
* Exact private document byte count.
|
|
457
|
+
*/
|
|
458
|
+
totalDocumentBytes: number, };
|
|
459
|
+
|
|
460
|
+
export type RestoreExecutionReceiptProjection = {
|
|
461
|
+
/**
|
|
462
|
+
* Executed plan digest.
|
|
463
|
+
*/
|
|
464
|
+
confirmationDigest: string,
|
|
465
|
+
/**
|
|
466
|
+
* Complete private staging evidence.
|
|
467
|
+
*/
|
|
468
|
+
staging: RestoreStagingReceiptProjection,
|
|
469
|
+
/**
|
|
470
|
+
* Verified pre-restore safety backup.
|
|
471
|
+
*/
|
|
472
|
+
safetyBackup: BackupPublicationReceiptProjection,
|
|
473
|
+
/**
|
|
474
|
+
* Domains whose documents were published.
|
|
475
|
+
*/
|
|
476
|
+
restoredDomainIds: Array<string>,
|
|
477
|
+
/**
|
|
478
|
+
* Domains deleted to reproduce archive absence.
|
|
479
|
+
*/
|
|
480
|
+
deletedDomainIds: Array<string>,
|
|
481
|
+
/**
|
|
482
|
+
* Restored domains migrated in private staging.
|
|
483
|
+
*/
|
|
484
|
+
migratedDomainIds: Array<string>,
|
|
485
|
+
/**
|
|
486
|
+
* Selected domains already matching the target.
|
|
487
|
+
*/
|
|
488
|
+
unchangedDomainIds: Array<string>,
|
|
489
|
+
/**
|
|
490
|
+
* Domains explicitly preserving current state.
|
|
491
|
+
*/
|
|
492
|
+
skippedDomainIds: Array<string>,
|
|
493
|
+
/**
|
|
494
|
+
* Manifest exclusions never selected.
|
|
495
|
+
*/
|
|
496
|
+
excludedDomainIds: Array<string>, };
|
|
497
|
+
|
|
498
|
+
export type RestoreExecutionFailureProjection = {
|
|
499
|
+
/**
|
|
500
|
+
* Failed journaled transaction phase.
|
|
501
|
+
*/
|
|
502
|
+
stage: string,
|
|
503
|
+
/**
|
|
504
|
+
* First affected domain when known.
|
|
505
|
+
*/
|
|
506
|
+
domainId: string | null,
|
|
507
|
+
/**
|
|
508
|
+
* Exact terminal guarantee established before return.
|
|
509
|
+
*/
|
|
510
|
+
terminal: string,
|
|
511
|
+
/**
|
|
512
|
+
* Safe failure detail.
|
|
513
|
+
*/
|
|
514
|
+
detail: string, };
|
|
515
|
+
|
|
516
|
+
export type RestoreExecuteOutcome = { "status": "succeeded",
|
|
517
|
+
/**
|
|
518
|
+
* Exact success evidence.
|
|
519
|
+
*/
|
|
520
|
+
receipt: RestoreExecutionReceiptProjection,
|
|
521
|
+
/**
|
|
522
|
+
* Fresh authority snapshot.
|
|
523
|
+
*/
|
|
524
|
+
snapshot: ConfigOperationsSnapshot, } | { "status": "rolledBack",
|
|
525
|
+
/**
|
|
526
|
+
* Failed phase and rollback guarantee.
|
|
527
|
+
*/
|
|
528
|
+
failure: RestoreExecutionFailureProjection,
|
|
529
|
+
/**
|
|
530
|
+
* Fresh authority snapshot.
|
|
531
|
+
*/
|
|
532
|
+
snapshot: ConfigOperationsSnapshot, } | { "status": "recoveryRequired",
|
|
533
|
+
/**
|
|
534
|
+
* Failed phase and recovery-required guarantee.
|
|
535
|
+
*/
|
|
536
|
+
failure: RestoreExecutionFailureProjection,
|
|
537
|
+
/**
|
|
538
|
+
* Fresh authority snapshot.
|
|
539
|
+
*/
|
|
540
|
+
snapshot: ConfigOperationsSnapshot, } | { "status": "rejected",
|
|
541
|
+
/**
|
|
542
|
+
* Typed refusal.
|
|
543
|
+
*/
|
|
544
|
+
rejection: ConfigOperationRejection, };
|
|
545
|
+
|
|
546
|
+
export type RestoreAdapterRequirementProjection = "failureAtomic" | "allowSeparate";
|
|
547
|
+
|
|
548
|
+
export type RestoreAdapterExecuteCommand = {
|
|
549
|
+
/**
|
|
550
|
+
* Exact protocol version.
|
|
551
|
+
*/
|
|
552
|
+
protocolVersion: ConfigProtocolVersion,
|
|
553
|
+
/**
|
|
554
|
+
* Idempotency and correlation identity.
|
|
555
|
+
*/
|
|
556
|
+
requestId: ConfigRequestId,
|
|
557
|
+
/**
|
|
558
|
+
* Expected host generation.
|
|
559
|
+
*/
|
|
560
|
+
generation: ConfigGeneration,
|
|
561
|
+
/**
|
|
562
|
+
* Exact inspected archive digest.
|
|
563
|
+
*/
|
|
564
|
+
archiveSha256: string,
|
|
565
|
+
/**
|
|
566
|
+
* Explicit custom domain.
|
|
567
|
+
*/
|
|
568
|
+
domainId: string,
|
|
569
|
+
/**
|
|
570
|
+
* Adapter-issued confirmation digest.
|
|
571
|
+
*/
|
|
572
|
+
confirmationDigest: string,
|
|
573
|
+
/**
|
|
574
|
+
* Minimum accepted transaction guarantee.
|
|
575
|
+
*/
|
|
576
|
+
requirement: RestoreAdapterRequirementProjection, };
|
|
577
|
+
|
|
578
|
+
export type RestoreAdapterReceiptProjection = {
|
|
579
|
+
/**
|
|
580
|
+
* Restored custom domain.
|
|
581
|
+
*/
|
|
582
|
+
domainId: string,
|
|
583
|
+
/**
|
|
584
|
+
* Stable adapter id.
|
|
585
|
+
*/
|
|
586
|
+
adapter: string,
|
|
587
|
+
/**
|
|
588
|
+
* Adapter transaction guarantee.
|
|
589
|
+
*/
|
|
590
|
+
participation: RestoreAdapterParticipationProjection,
|
|
591
|
+
/**
|
|
592
|
+
* Exact confirmed adapter preview.
|
|
593
|
+
*/
|
|
594
|
+
confirmationDigest: string,
|
|
595
|
+
/**
|
|
596
|
+
* Verified, rolled-back, or recovery-required terminal.
|
|
597
|
+
*/
|
|
598
|
+
outcome: string,
|
|
599
|
+
/**
|
|
600
|
+
* Exact semantic evidence when supplied.
|
|
601
|
+
*/
|
|
602
|
+
evidence: string | null, };
|
|
603
|
+
|
|
604
|
+
export type RestoreAdapterExecuteOutcome = { "status": "completed",
|
|
605
|
+
/**
|
|
606
|
+
* Exact adapter receipt.
|
|
607
|
+
*/
|
|
608
|
+
receipt: RestoreAdapterReceiptProjection,
|
|
609
|
+
/**
|
|
610
|
+
* Fresh authority snapshot.
|
|
611
|
+
*/
|
|
612
|
+
snapshot: ConfigOperationsSnapshot, } | { "status": "rejected",
|
|
613
|
+
/**
|
|
614
|
+
* Typed refusal.
|
|
615
|
+
*/
|
|
616
|
+
rejection: ConfigOperationRejection, };
|
|
617
|
+
|
|
618
|
+
export type RestoreRecoveryCommand = {
|
|
619
|
+
/**
|
|
620
|
+
* Exact protocol version.
|
|
621
|
+
*/
|
|
622
|
+
protocolVersion: ConfigProtocolVersion,
|
|
623
|
+
/**
|
|
624
|
+
* Idempotency and correlation identity.
|
|
625
|
+
*/
|
|
626
|
+
requestId: ConfigRequestId, };
|
|
627
|
+
|
|
628
|
+
export type RestoreRecoveryReceiptProjection = {
|
|
629
|
+
/**
|
|
630
|
+
* No-op, verified rollback, or terminal cleanup.
|
|
631
|
+
*/
|
|
632
|
+
outcome: string,
|
|
633
|
+
/**
|
|
634
|
+
* Journal domains considered by recovery.
|
|
635
|
+
*/
|
|
636
|
+
domainIds: Array<string>, };
|
|
637
|
+
|
|
638
|
+
export type RestoreRecoveryOutcomeProjection = { "status": "recovered",
|
|
639
|
+
/**
|
|
640
|
+
* Exact recovery evidence.
|
|
641
|
+
*/
|
|
642
|
+
receipt: RestoreRecoveryReceiptProjection,
|
|
643
|
+
/**
|
|
644
|
+
* Fresh authority snapshot.
|
|
645
|
+
*/
|
|
646
|
+
snapshot: ConfigOperationsSnapshot, } | { "status": "recoveryRequired",
|
|
647
|
+
/**
|
|
648
|
+
* Safe recovery failure.
|
|
649
|
+
*/
|
|
650
|
+
failure: RestoreExecutionFailureProjection,
|
|
651
|
+
/**
|
|
652
|
+
* Fresh authority snapshot.
|
|
653
|
+
*/
|
|
654
|
+
snapshot: ConfigOperationsSnapshot, } | { "status": "rejected",
|
|
655
|
+
/**
|
|
656
|
+
* Typed refusal.
|
|
657
|
+
*/
|
|
658
|
+
rejection: ConfigOperationRejection, };
|