@astrale-os/kernel-core 0.9.0-beta.9 → 0.9.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/auth/authority/accept.js +4 -0
- package/dist/auth/authority/admission/admission.d.ts +4 -1
- package/dist/auth/authority/admission/admission.js +46 -147
- package/dist/auth/authority/admission/index.d.ts +1 -1
- package/dist/auth/authority/admission/index.js +1 -1
- package/dist/auth/authority/admission/references.d.ts +13 -0
- package/dist/auth/authority/admission/references.js +38 -0
- package/dist/auth/authority/admission/term.d.ts +6 -0
- package/dist/auth/authority/admission/term.js +60 -0
- package/dist/auth/authority/admission/wire.d.ts +8 -0
- package/dist/auth/authority/admission/wire.js +33 -0
- package/dist/auth/authority/canonical.d.ts +2 -0
- package/dist/auth/authority/canonical.js +15 -0
- package/dist/auth/authority/index.d.ts +9 -2
- package/dist/auth/authority/index.js +6 -1
- package/dist/auth/authority/language/index.d.ts +3 -1
- package/dist/auth/authority/language/index.js +1 -0
- package/dist/auth/authority/language/predicate.d.ts +31 -16
- package/dist/auth/authority/language/predicate.js +1 -1
- package/dist/auth/authority/language/program.d.ts +21 -0
- package/dist/auth/authority/language/program.js +2 -0
- package/dist/auth/authority/normalization/index.d.ts +1 -1
- package/dist/auth/authority/normalization/index.js +1 -1
- package/dist/auth/authority/normalization/normalize.d.ts +2 -0
- package/dist/auth/authority/normalization/normalize.js +38 -16
- package/dist/auth/authority/ownership.optimization.d.ts +8 -0
- package/dist/auth/authority/ownership.optimization.js +83 -0
- package/dist/auth/authority/prepare-binder-body.d.ts +4 -0
- package/dist/auth/authority/prepare-binder-body.js +31 -0
- package/dist/auth/authority/program.d.ts +28 -0
- package/dist/auth/authority/program.js +191 -0
- package/dist/auth/authority/semantics/class-authority.d.ts +8 -0
- package/dist/auth/authority/semantics/class-authority.js +26 -0
- package/dist/auth/authority/semantics/composition.d.ts +46 -0
- package/dist/auth/authority/semantics/composition.js +150 -0
- package/dist/auth/authority/semantics/failure.d.ts +21 -0
- package/dist/auth/authority/semantics/failure.js +10 -0
- package/dist/auth/authority/semantics/index.d.ts +13 -0
- package/dist/auth/authority/semantics/index.js +6 -0
- package/dist/auth/authority/semantics/interpret.d.ts +41 -0
- package/dist/auth/authority/semantics/interpret.js +388 -0
- package/dist/auth/authority/semantics/residual.d.ts +32 -0
- package/dist/auth/authority/semantics/residual.js +166 -0
- package/dist/auth/authority/semantics/snapshot.d.ts +40 -0
- package/dist/auth/authority/semantics/terms.d.ts +22 -0
- package/dist/auth/authority/semantics/terms.js +96 -0
- package/dist/auth/authority/semantics/vocabulary.d.ts +19 -0
- package/dist/auth/context/context.d.ts +4 -3
- package/dist/auth/expression/authoring/builder.d.ts +2 -11
- package/dist/auth/expression/authoring/builder.js +1 -45
- package/dist/auth/expression/authoring/index.d.ts +1 -1
- package/dist/auth/expression/authoring/index.js +1 -1
- package/dist/auth/expression/index.d.ts +1 -2
- package/dist/auth/expression/index.js +1 -2
- package/dist/auth/expression/language/identity-expression.d.ts +2 -22
- package/dist/auth/grant/index.d.ts +1 -1
- package/dist/auth/grant/index.js +1 -1
- package/dist/auth/grant/resolved/admission.d.ts +4 -3
- package/dist/auth/grant/resolved/admission.js +23 -13
- package/dist/auth/grant/resolved/grant.d.ts +1 -1
- package/dist/auth/grant/resolved/index.d.ts +1 -1
- package/dist/auth/grant/resolved/index.js +1 -1
- package/dist/auth/grant/unresolved/admission.d.ts +4 -1
- package/dist/auth/grant/unresolved/admission.js +27 -67
- package/dist/auth/grant/unresolved/limits.d.ts +2 -4
- package/dist/auth/grant/unresolved/limits.js +1 -5
- package/dist/auth/identity/admission.js +11 -3
- package/dist/auth/identity/identity.d.ts +15 -3
- package/dist/auth/identity/index.d.ts +1 -1
- package/dist/auth/index.d.ts +4 -4
- package/dist/auth/index.js +1 -1
- package/dist/auth/jwk/index.d.ts +1 -1
- package/dist/auth/jwk/index.js +1 -1
- package/dist/auth/jwk/thumbprint.d.ts +2 -0
- package/dist/auth/jwk/thumbprint.js +12 -6
- package/dist/auth/register/fingerprint/fingerprint.d.ts +25 -0
- package/dist/auth/register/fingerprint/fingerprint.js +31 -0
- package/dist/auth/register/fingerprint/index.d.ts +2 -0
- package/dist/auth/register/index.d.ts +5 -0
- package/dist/auth/register/request/admission.d.ts +3 -0
- package/dist/auth/register/request/admission.js +103 -0
- package/dist/auth/register/request/index.d.ts +3 -0
- package/dist/auth/register/request/limits.d.ts +6 -0
- package/dist/auth/register/request/limits.js +6 -0
- package/dist/auth/register/request/request.d.ts +19 -0
- package/dist/auth/{provision → register}/request/self-issuer.d.ts +1 -1
- package/dist/auth/{provision → register}/request/self-issuer.js +1 -1
- package/dist/auth/register/result/index.d.ts +1 -0
- package/dist/auth/register/result/result.d.ts +10 -0
- package/dist/auth/register/result/result.js +1 -0
- package/dist/callable/contract/body.d.ts +10 -0
- package/dist/callable/contract/body.js +7 -0
- package/dist/callable/contract/index.d.ts +2 -1
- package/dist/callable/contract/index.js +1 -1
- package/dist/callable/contract/output.d.ts +18 -2
- package/dist/callable/index.d.ts +3 -2
- package/dist/callable/index.js +2 -1
- package/dist/callable/invocation/call.d.ts +16 -2
- package/dist/callable/invocation/call.js +41 -1
- package/dist/callable/invocation/index.d.ts +1 -1
- package/dist/callable/invocation/index.js +1 -1
- package/dist/callable/invocation/result.d.ts +10 -3
- package/dist/dns-label.d.ts +1 -2
- package/dist/dns-label.js +2 -3
- package/dist/graph/graph/graph.d.ts +1 -5
- package/dist/graph/graph/graph.js +3 -27
- package/dist/graph/graph/index.d.ts +2 -4
- package/dist/graph/graph/index.js +2 -3
- package/dist/graph/graph/model/codec.js +4 -4
- package/dist/graph/graph/model/index.d.ts +1 -1
- package/dist/graph/graph/model/index.js +1 -1
- package/dist/graph/graph/model/model.d.ts +7 -7
- package/dist/graph/graph/model/model.js +6 -6
- package/dist/graph/graph/model/wire.d.ts +58 -78
- package/dist/graph/graph/model/wire.js +18 -19
- package/dist/graph/mutate/authoring/builder.d.ts +2 -2
- package/dist/graph/mutate/authoring/builder.js +2 -2
- package/dist/graph/mutate/authoring/create.js +13 -5
- package/dist/graph/mutate/index.d.ts +1 -1
- package/dist/graph/mutate/language/codec.js +3 -3
- package/dist/graph/mutate/language/model.d.ts +4 -4
- package/dist/graph/mutate/language/wire.d.ts +226 -215
- package/dist/graph/mutate/language/wire.js +42 -47
- package/dist/graph/mutate/result/index.d.ts +4 -3
- package/dist/graph/mutate/result/index.js +8 -6
- package/dist/graph/mutate/result/wire.d.ts +4 -4
- package/dist/graph/mutate/result/wire.js +7 -4
- package/dist/graph/node/identity/id.d.ts +0 -4
- package/dist/graph/node/identity/id.js +0 -5
- package/dist/graph/node/identity/order.js +20 -0
- package/dist/graph/path/authoring/path.d.ts +8 -5
- package/dist/graph/path/authoring/path.js +21 -3
- package/dist/graph/path/language/model.d.ts +8 -3
- package/dist/graph/path/language/syntax.js +23 -8
- package/dist/graph/query/authoring/builder.js +37 -5
- package/dist/graph/query/authoring/model.d.ts +20 -1
- package/dist/graph/query/index.d.ts +4 -2
- package/dist/graph/query/index.js +1 -0
- package/dist/graph/query/language/codec.js +18 -3
- package/dist/graph/query/language/fingerprint.js +8 -0
- package/dist/graph/query/language/model.d.ts +22 -4
- package/dist/graph/query/language/wire.d.ts +124 -114
- package/dist/graph/query/language/wire.js +54 -47
- package/dist/graph/query/order/index.d.ts +53 -0
- package/dist/graph/query/order/index.js +79 -0
- package/dist/graph/query/reference/evaluate.d.ts +1 -0
- package/dist/graph/query/reference/evaluate.js +39 -52
- package/dist/graph/query/result/index.js +1 -1
- package/dist/graph/query/result/wire.d.ts +93 -94
- package/dist/graph/query/result/wire.js +20 -20
- package/dist/graph/reconcile/condition/model.d.ts +2 -2
- package/dist/graph/reconcile/condition/references.d.ts +0 -1
- package/dist/graph/reconcile/condition/references.js +4 -4
- package/dist/graph/reconcile/correspondence.d.ts +9 -8
- package/dist/graph/reconcile/evidence.d.ts +2 -2
- package/dist/graph/reconcile/mutation/assess.d.ts +2 -1
- package/dist/graph/reconcile/observation.d.ts +4 -3
- package/dist/graph/reconcile/planning/canonical.d.ts +6 -0
- package/dist/graph/reconcile/planning/canonical.js +28 -0
- package/dist/graph/reconcile/planning/context.d.ts +3 -3
- package/dist/graph/reconcile/planning/model.d.ts +8 -4
- package/dist/graph/reconcile/planning/plan.js +2 -1
- package/dist/schema/authority/authority-relation.js +3 -0
- package/dist/schema/authority/claims.d.ts +24 -25
- package/dist/schema/authority/claims.js +8 -8
- package/dist/schema/authority/governed-by.d.ts +16 -91
- package/dist/schema/authority/governed-by.js +1 -1
- package/dist/schema/authority/operation-node.d.ts +27 -13
- package/dist/schema/authority/operations.d.ts +8 -168
- package/dist/schema/authority/policy.d.ts +27 -15
- package/dist/schema/authority/vocabulary.d.ts +3 -0
- package/dist/schema/authority/vocabulary.js +25 -0
- package/dist/schema/callables/entrypoint.d.ts +32 -0
- package/dist/schema/callables/entrypoint.js +12 -0
- package/dist/schema/callables/execution.d.ts +569 -0
- package/dist/schema/callables/execution.js +32 -0
- package/dist/schema/callables/function.d.ts +3400 -55
- package/dist/schema/callables/function.js +6 -4
- package/dist/schema/callables/index.d.ts +2 -1
- package/dist/schema/callables/index.js +2 -1
- package/dist/schema/callables/method-of.d.ts +18 -143
- package/dist/schema/callables/method-of.js +2 -2
- package/dist/schema/callables/view.d.ts +83 -51
- package/dist/schema/definitions/class.d.ts +45 -33
- package/dist/schema/definitions/extends.d.ts +16 -110
- package/dist/schema/definitions/instance-of.d.ts +17 -69
- package/dist/schema/domain/domain.d.ts +3343 -148
- package/dist/schema/domain/domain.js +6 -3
- package/dist/schema/domain/of-domain.d.ts +18 -192
- package/dist/schema/domain/of-domain.js +1 -1
- package/dist/schema/identity/composition.d.ts +5 -0
- package/dist/schema/identity/composition.js +5 -0
- package/dist/schema/identity/identity.d.ts +225 -122
- package/dist/schema/identity/identity.js +3 -4
- package/dist/schema/index.d.ts +1 -0
- package/dist/schema/index.js +1 -0
- package/dist/schema/installation/operation-id.d.ts +1 -2
- package/dist/schema/installation/operation-id.js +2 -4
- package/dist/schema/introspection/index.d.ts +1 -1
- package/dist/schema/introspection/language.d.ts +12 -28
- package/dist/schema/kernel/projection/callables.js +2 -3
- package/dist/schema/kernel/projection/core.d.ts +7 -0
- package/dist/schema/kernel/projection/core.js +51 -0
- package/dist/schema/kernel/projection/definitions.d.ts +13 -0
- package/dist/schema/kernel/projection/definitions.js +71 -0
- package/dist/schema/kernel/projection/index.d.ts +3 -3
- package/dist/schema/kernel/projection/index.js +2 -2
- package/dist/schema/kernel/projection/methods.d.ts +5 -0
- package/dist/schema/kernel/projection/methods.js +41 -0
- package/dist/schema/kernel/projection/part.d.ts +34 -0
- package/dist/schema/kernel/projection/part.js +42 -0
- package/dist/schema/kernel/projection/paths.d.ts +6 -0
- package/dist/schema/kernel/projection/{keys.js → paths.js} +12 -14
- package/dist/schema/kernel/projection/project.d.ts +4 -2
- package/dist/schema/kernel/projection/project.js +33 -258
- package/dist/schema/kernel/projection/properties.d.ts +11 -0
- package/dist/schema/kernel/projection/properties.js +36 -0
- package/dist/schema/kernel/projection/relations.d.ts +7 -0
- package/dist/schema/kernel/projection/relations.js +61 -0
- package/dist/schema/kernel/projection/types.d.ts +28 -2
- package/dist/schema/kernel/schema.d.ts +9008 -4939
- package/dist/schema/kernel/schema.js +12 -8
- package/dist/schema/kernel/syscalls/contracts/admit.d.ts +15 -12
- package/dist/schema/kernel/syscalls/contracts/admit.js +16 -9
- package/dist/schema/kernel/syscalls/contracts/blob.d.ts +31 -0
- package/dist/schema/kernel/syscalls/contracts/blob.js +24 -0
- package/dist/schema/kernel/syscalls/contracts/can.d.ts +19 -8
- package/dist/schema/kernel/syscalls/contracts/can.js +12 -4
- package/dist/schema/kernel/syscalls/contracts/delegate.d.ts +6 -7
- package/dist/schema/kernel/syscalls/contracts/delegate.js +5 -5
- package/dist/schema/kernel/syscalls/contracts/execution.d.ts +300 -0
- package/dist/schema/kernel/syscalls/contracts/execution.js +116 -0
- package/dist/schema/kernel/syscalls/contracts/expected.d.ts +5 -0
- package/dist/schema/kernel/syscalls/contracts/expected.js +9 -0
- package/dist/schema/kernel/syscalls/contracts/identity.d.ts +18 -19
- package/dist/schema/kernel/syscalls/contracts/identity.js +6 -7
- package/dist/schema/kernel/syscalls/contracts/impersonate.d.ts +6 -0
- package/dist/schema/kernel/syscalls/contracts/impersonate.js +4 -0
- package/dist/schema/kernel/syscalls/contracts/index.d.ts +6 -3
- package/dist/schema/kernel/syscalls/contracts/index.js +6 -3
- package/dist/schema/kernel/syscalls/contracts/install.d.ts +309 -217
- package/dist/schema/kernel/syscalls/contracts/install.js +68 -26
- package/dist/schema/kernel/syscalls/contracts/installation.d.ts +70 -351
- package/dist/schema/kernel/syscalls/contracts/installation.js +29 -67
- package/dist/schema/kernel/syscalls/contracts/introspect.d.ts +11 -15
- package/dist/schema/kernel/syscalls/contracts/introspect.js +8 -15
- package/dist/schema/kernel/syscalls/contracts/journal.d.ts +26 -27
- package/dist/schema/kernel/syscalls/contracts/journal.js +15 -15
- package/dist/schema/kernel/syscalls/contracts/mint.d.ts +5 -7
- package/dist/schema/kernel/syscalls/contracts/mint.js +4 -5
- package/dist/schema/kernel/syscalls/contracts/mutate.d.ts +243 -224
- package/dist/schema/kernel/syscalls/contracts/mutate.js +7 -1
- package/dist/schema/kernel/syscalls/contracts/query.d.ts +239 -222
- package/dist/schema/kernel/syscalls/contracts/query.js +17 -15
- package/dist/schema/kernel/syscalls/contracts/register.d.ts +20 -0
- package/dist/schema/kernel/syscalls/contracts/register.js +24 -0
- package/dist/schema/kernel/syscalls/contracts/uninstall.d.ts +55 -148
- package/dist/schema/kernel/syscalls/contracts/uninstall.js +7 -5
- package/dist/schema/kernel/syscalls/contracts/view-host-requirements.d.ts +17 -0
- package/dist/schema/kernel/syscalls/contracts/view-host-requirements.js +40 -0
- package/dist/schema/kernel/syscalls/contracts/view-resolve.d.ts +27 -28
- package/dist/schema/kernel/syscalls/contracts/view-resolve.js +16 -24
- package/dist/schema/kernel/syscalls/contracts/whoami.d.ts +19 -20
- package/dist/schema/kernel/syscalls/contracts/whoami.js +2 -2
- package/dist/schema/kernel/syscalls/contracts/whois.d.ts +22 -23
- package/dist/schema/kernel/syscalls/contracts/whois.js +3 -3
- package/dist/schema/kernel/syscalls/declarations/admit.d.ts +18 -18
- package/dist/schema/kernel/syscalls/declarations/admit.js +3 -3
- package/dist/schema/kernel/syscalls/declarations/can.d.ts +19 -14
- package/dist/schema/kernel/syscalls/declarations/can.js +4 -4
- package/dist/schema/kernel/syscalls/declarations/delegate.d.ts +9 -12
- package/dist/schema/kernel/syscalls/declarations/delegate.js +4 -4
- package/dist/schema/kernel/syscalls/declarations/download.d.ts +12 -0
- package/dist/schema/kernel/syscalls/declarations/download.js +10 -0
- package/dist/schema/kernel/syscalls/declarations/execution.d.ts +255 -0
- package/dist/schema/kernel/syscalls/declarations/execution.js +52 -0
- package/dist/schema/kernel/syscalls/declarations/impersonate.d.ts +9 -0
- package/dist/schema/kernel/syscalls/declarations/impersonate.js +12 -0
- package/dist/schema/kernel/syscalls/declarations/index.d.ts +1079 -1323
- package/dist/schema/kernel/syscalls/declarations/index.js +18 -2
- package/dist/schema/kernel/syscalls/declarations/install.d.ts +85 -172
- package/dist/schema/kernel/syscalls/declarations/install.js +7 -3
- package/dist/schema/kernel/syscalls/declarations/introspect.d.ts +8 -19
- package/dist/schema/kernel/syscalls/declarations/introspect.js +3 -4
- package/dist/schema/kernel/syscalls/declarations/journal.d.ts +29 -31
- package/dist/schema/kernel/syscalls/declarations/journal.js +4 -2
- package/dist/schema/kernel/syscalls/declarations/mint.d.ts +8 -13
- package/dist/schema/kernel/syscalls/declarations/mint.js +5 -5
- package/dist/schema/kernel/syscalls/declarations/mutate.d.ts +239 -256
- package/dist/schema/kernel/syscalls/declarations/mutate.js +4 -2
- package/dist/schema/kernel/syscalls/declarations/query.d.ts +236 -260
- package/dist/schema/kernel/syscalls/declarations/query.js +4 -2
- package/dist/schema/kernel/syscalls/declarations/register.d.ts +23 -0
- package/dist/schema/kernel/syscalls/declarations/register.js +10 -0
- package/dist/schema/kernel/syscalls/declarations/uninstall.d.ts +51 -153
- package/dist/schema/kernel/syscalls/declarations/uninstall.js +6 -2
- package/dist/schema/kernel/syscalls/declarations/upload.d.ts +15 -0
- package/dist/schema/kernel/syscalls/declarations/upload.js +10 -0
- package/dist/schema/kernel/syscalls/declarations/use-policy.d.ts +4 -0
- package/dist/schema/kernel/syscalls/declarations/use-policy.js +9 -0
- package/dist/schema/kernel/syscalls/declarations/view-resolve.d.ts +30 -37
- package/dist/schema/kernel/syscalls/declarations/view-resolve.js +5 -3
- package/dist/schema/kernel/syscalls/declarations/whoami.d.ts +22 -26
- package/dist/schema/kernel/syscalls/declarations/whoami.js +3 -3
- package/dist/schema/kernel/syscalls/declarations/whois.d.ts +25 -29
- package/dist/schema/kernel/syscalls/declarations/whois.js +5 -3
- package/dist/schema/kernel/syscalls/descriptors/execution.d.ts +303 -0
- package/dist/schema/kernel/syscalls/descriptors/execution.js +11 -0
- package/dist/schema/kernel/syscalls/descriptors/function.d.ts +8 -2
- package/dist/schema/kernel/syscalls/descriptors/functions.d.ts +3 -1
- package/dist/schema/kernel/syscalls/descriptors/functions.js +3 -1
- package/dist/schema/kernel/syscalls/descriptors/identity.d.ts +47 -13
- package/dist/schema/kernel/syscalls/descriptors/identity.js +2 -1
- package/dist/schema/kernel/syscalls/descriptors/index.d.ts +2 -1
- package/dist/schema/kernel/syscalls/descriptors/index.js +2 -1
- package/dist/schema/kernel/syscalls/descriptors/results/view-resolution.d.ts +5 -2
- package/dist/schema/kernel/syscalls/descriptors/results/view-resolution.js +8 -38
- package/dist/schema/kernel/syscalls/descriptors/view.d.ts +11 -9
- package/dist/schema/kernel/syscalls/index.d.ts +2 -2
- package/dist/schema/kernel/syscalls/index.js +2 -2
- package/dist/schema/kernel/syscalls/references/execution.d.ts +55 -0
- package/dist/schema/kernel/syscalls/references/execution.js +13 -0
- package/dist/schema/kernel/syscalls/references/functions.d.ts +12 -2
- package/dist/schema/kernel/syscalls/references/functions.js +3 -1
- package/dist/schema/kernel/syscalls/references/identity.d.ts +9 -0
- package/dist/schema/kernel/syscalls/references/identity.js +1 -0
- package/dist/schema/kernel/syscalls/references/index.d.ts +2 -1
- package/dist/schema/kernel/syscalls/references/index.js +2 -1
- package/dist/schema/meta/created-by.d.ts +32 -0
- package/dist/schema/meta/created-by.js +17 -0
- package/dist/schema/meta/descriptable.d.ts +13 -11
- package/dist/schema/meta/edge.d.ts +5 -9
- package/dist/schema/meta/iconable.d.ts +13 -11
- package/dist/schema/meta/index.d.ts +1 -0
- package/dist/schema/meta/index.js +1 -0
- package/dist/schema/meta/named.d.ts +13 -9
- package/dist/schema/meta/node.d.ts +9 -1
- package/dist/schema/meta/remotable.d.ts +15 -22
- package/dist/schema/meta/statused.d.ts +13 -7
- package/dist/schema/meta/timestamped.d.ts +14 -12
- package/package.json +9 -7
- package/dist/auth/expression/normalization/canonicalize.d.ts +0 -7
- package/dist/auth/expression/normalization/canonicalize.js +0 -102
- package/dist/auth/expression/normalization/index.d.ts +0 -2
- package/dist/auth/expression/normalization/index.js +0 -2
- package/dist/auth/expression/normalization/raise-denials.d.ts +0 -3
- package/dist/auth/expression/normalization/raise-denials.js +0 -59
- package/dist/auth/provision/fingerprint/fingerprint.d.ts +0 -9
- package/dist/auth/provision/fingerprint/fingerprint.js +0 -33
- package/dist/auth/provision/fingerprint/index.d.ts +0 -2
- package/dist/auth/provision/index.d.ts +0 -5
- package/dist/auth/provision/request/admission.d.ts +0 -3
- package/dist/auth/provision/request/admission.js +0 -125
- package/dist/auth/provision/request/index.d.ts +0 -3
- package/dist/auth/provision/request/request.d.ts +0 -29
- package/dist/auth/provision/result/index.d.ts +0 -1
- package/dist/auth/provision/result/result.d.ts +0 -12
- package/dist/graph/graph/navigation/error.d.ts +0 -12
- package/dist/graph/graph/navigation/error.js +0 -20
- package/dist/graph/graph/navigation/index.d.ts +0 -2
- package/dist/graph/graph/navigation/index.js +0 -1
- package/dist/graph/graph/navigation/model.d.ts +0 -15
- package/dist/schema/callables/view-for.d.ts +0 -296
- package/dist/schema/callables/view-for.js +0 -12
- package/dist/schema/kernel/projection/keys.d.ts +0 -3
- package/dist/schema/kernel/projection/path.d.ts +0 -2
- package/dist/schema/kernel/projection/path.js +0 -140
- package/dist/schema/kernel/syscalls/contracts/provision.d.ts +0 -292
- package/dist/schema/kernel/syscalls/contracts/provision.js +0 -19
- package/dist/schema/kernel/syscalls/declarations/define.d.ts +0 -5
- package/dist/schema/kernel/syscalls/declarations/define.js +0 -7
- package/dist/schema/kernel/syscalls/declarations/provision.d.ts +0 -296
- package/dist/schema/kernel/syscalls/declarations/provision.js +0 -8
- /package/dist/auth/{provision/request/request.js → authority/semantics/snapshot.js} +0 -0
- /package/dist/auth/{provision/result/index.js → authority/semantics/vocabulary.js} +0 -0
- /package/dist/auth/{provision → register}/fingerprint/index.js +0 -0
- /package/dist/auth/{provision → register}/index.js +0 -0
- /package/dist/auth/{provision → register}/request/index.js +0 -0
- /package/dist/auth/{provision/result/result.js → register/request/request.js} +0 -0
- /package/dist/{graph/graph/navigation/model.js → auth/register/result/index.js} +0 -0
|
@@ -1,229 +1,279 @@
|
|
|
1
|
-
import type { ClassRef, Key } from '@astrale-os/kernel-dsl/v1';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import type { AuthorityOperation } from '../../../authority/operation.js';
|
|
4
1
|
import type { OperationId } from '../../../installation/operation-id.js';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
export declare const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
revoke: "revoke";
|
|
128
|
-
traverse: "traverse";
|
|
129
|
-
update: "update";
|
|
130
|
-
use: "use";
|
|
131
|
-
}>>>;
|
|
132
|
-
revoke: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
133
|
-
create: "create";
|
|
134
|
-
delete: "delete";
|
|
135
|
-
grant: "grant";
|
|
136
|
-
read: "read";
|
|
137
|
-
revoke: "revoke";
|
|
138
|
-
traverse: "traverse";
|
|
139
|
-
update: "update";
|
|
140
|
-
use: "use";
|
|
141
|
-
}>>>;
|
|
142
|
-
}, z.core.$strict>>;
|
|
143
|
-
}, z.core.$strict>;
|
|
144
|
-
dependencies: z.ZodArray<z.ZodObject<{
|
|
145
|
-
origin: z.ZodString;
|
|
146
|
-
installation: z.ZodString;
|
|
147
|
-
target: z.ZodString;
|
|
148
|
-
readinessReceipt: z.ZodString;
|
|
149
|
-
meaningComparison: z.ZodString;
|
|
150
|
-
}, z.core.$strict>>;
|
|
151
|
-
}, z.core.$strict>>;
|
|
152
|
-
}, z.core.$strict>;
|
|
153
|
-
phase: z.ZodEnum<{
|
|
2
|
+
/**
|
|
3
|
+
* What an install does to the stored data: nothing changes (`noop`), it applies at once without
|
|
4
|
+
* reading the data (`immediate`), or it revalidates the data before it applies (`revalidate`).
|
|
5
|
+
*/
|
|
6
|
+
export declare const INSTALL_CLASSES: readonly ["noop", "immediate", "revalidate"];
|
|
7
|
+
/**
|
|
8
|
+
* How an install runs. `online` (the default) keeps the Instance open: it validates online and
|
|
9
|
+
* only its activation briefly pauses writes. `maintenance`, for Root only, opens a maintenance
|
|
10
|
+
* session: the Instance is closed to every other caller while Root repairs the data in it, then
|
|
11
|
+
* applies the target.
|
|
12
|
+
*/
|
|
13
|
+
export declare const INSTALL_MODES: readonly ["online", "maintenance"];
|
|
14
|
+
/** The validation options an install runs with, defaults filled in. */
|
|
15
|
+
export declare const validationOptions: import("zod").ZodObject<{
|
|
16
|
+
scope: import("zod").ZodEnum<{
|
|
17
|
+
full: "full";
|
|
18
|
+
incremental: "incremental";
|
|
19
|
+
}>;
|
|
20
|
+
counts: import("zod").ZodEnum<{
|
|
21
|
+
exact: "exact";
|
|
22
|
+
sample: "sample";
|
|
23
|
+
}>;
|
|
24
|
+
}, import("zod/v4/core").$strict>;
|
|
25
|
+
export declare const domainRequest: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
26
|
+
artifact: import("zod").ZodObject<{
|
|
27
|
+
digest: import("zod").ZodString;
|
|
28
|
+
mediaType: import("zod").ZodString;
|
|
29
|
+
size: import("zod").ZodNumber;
|
|
30
|
+
}, import("zod/v4/core").$strict>;
|
|
31
|
+
currentRevision: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
32
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
33
|
+
release: import("zod").ZodObject<{
|
|
34
|
+
url: import("zod").ZodString;
|
|
35
|
+
token: import("zod").ZodOptional<import("zod").ZodString>;
|
|
36
|
+
digest: import("zod").ZodOptional<import("zod").ZodString>;
|
|
37
|
+
}, import("zod/v4/core").$strict>;
|
|
38
|
+
consent: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
39
|
+
issuer: import("zod").ZodObject<{
|
|
40
|
+
from: import("zod").ZodString;
|
|
41
|
+
to: import("zod").ZodString;
|
|
42
|
+
}, import("zod/v4/core").$strict>;
|
|
43
|
+
previous: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
44
|
+
drain: "drain";
|
|
45
|
+
revoke: "revoke";
|
|
46
|
+
}>>;
|
|
47
|
+
}, import("zod/v4/core").$strict>>;
|
|
48
|
+
revision: import("zod").ZodOptional<import("zod").ZodString>;
|
|
49
|
+
currentRevision: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
50
|
+
}, import("zod/v4/core").$strict>]>;
|
|
51
|
+
/** One install, all of it its intent: its operation, its Domains, its mode and validation options. */
|
|
52
|
+
export declare const installInput: import("zod").ZodObject<{
|
|
53
|
+
operation: import("zod").ZodString;
|
|
54
|
+
domains: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
55
|
+
artifact: import("zod").ZodObject<{
|
|
56
|
+
digest: import("zod").ZodString;
|
|
57
|
+
mediaType: import("zod").ZodString;
|
|
58
|
+
size: import("zod").ZodNumber;
|
|
59
|
+
}, import("zod/v4/core").$strict>;
|
|
60
|
+
currentRevision: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
61
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
62
|
+
release: import("zod").ZodObject<{
|
|
63
|
+
url: import("zod").ZodString;
|
|
64
|
+
token: import("zod").ZodOptional<import("zod").ZodString>;
|
|
65
|
+
digest: import("zod").ZodOptional<import("zod").ZodString>;
|
|
66
|
+
}, import("zod/v4/core").$strict>;
|
|
67
|
+
consent: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
68
|
+
issuer: import("zod").ZodObject<{
|
|
69
|
+
from: import("zod").ZodString;
|
|
70
|
+
to: import("zod").ZodString;
|
|
71
|
+
}, import("zod/v4/core").$strict>;
|
|
72
|
+
previous: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
73
|
+
drain: "drain";
|
|
74
|
+
revoke: "revoke";
|
|
75
|
+
}>>;
|
|
76
|
+
}, import("zod/v4/core").$strict>>;
|
|
77
|
+
revision: import("zod").ZodOptional<import("zod").ZodString>;
|
|
78
|
+
currentRevision: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
79
|
+
}, import("zod/v4/core").$strict>]>>;
|
|
80
|
+
mode: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
81
|
+
maintenance: "maintenance";
|
|
82
|
+
online: "online";
|
|
83
|
+
}>>;
|
|
84
|
+
validation: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
85
|
+
scope: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
86
|
+
full: "full";
|
|
87
|
+
incremental: "incremental";
|
|
88
|
+
}>>;
|
|
89
|
+
counts: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
90
|
+
exact: "exact";
|
|
91
|
+
sample: "sample";
|
|
92
|
+
}>>;
|
|
93
|
+
}, import("zod/v4/core").$strict>>;
|
|
94
|
+
}, import("zod/v4/core").$strict>;
|
|
95
|
+
export declare const installReceipt: import("zod").ZodObject<{
|
|
96
|
+
operation: import("zod").ZodString;
|
|
97
|
+
transitions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
98
|
+
intent: import("zod").ZodObject<{
|
|
99
|
+
transition: import("zod").ZodString;
|
|
100
|
+
operation: import("zod").ZodString;
|
|
101
|
+
origin: import("zod").ZodString;
|
|
102
|
+
previous: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
103
|
+
origin: import("zod").ZodString;
|
|
104
|
+
revision: import("zod").ZodString;
|
|
105
|
+
generation: import("zod").ZodString;
|
|
106
|
+
}, import("zod/v4/core").$strict>>;
|
|
107
|
+
generation: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
108
|
+
origin: import("zod").ZodString;
|
|
109
|
+
revision: import("zod").ZodString;
|
|
110
|
+
generation: import("zod").ZodString;
|
|
111
|
+
}, import("zod/v4/core").$strict>>;
|
|
112
|
+
consent: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
113
|
+
issuer: import("zod").ZodObject<{
|
|
114
|
+
from: import("zod").ZodString;
|
|
115
|
+
to: import("zod").ZodString;
|
|
116
|
+
}, import("zod/v4/core").$strict>;
|
|
117
|
+
previous: import("zod").ZodEnum<{
|
|
118
|
+
drain: "drain";
|
|
119
|
+
revoke: "revoke";
|
|
120
|
+
}>;
|
|
121
|
+
}, import("zod/v4/core").$strict>>;
|
|
122
|
+
}, import("zod/v4/core").$strict>;
|
|
123
|
+
phase: import("zod").ZodEnum<{
|
|
154
124
|
converge: "converge";
|
|
155
125
|
cutover: "cutover";
|
|
156
126
|
}>;
|
|
157
|
-
state:
|
|
158
|
-
readiness:
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
127
|
+
state: import("zod").ZodLiteral<"committed">;
|
|
128
|
+
readiness: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
129
|
+
generation: import("zod").ZodString;
|
|
130
|
+
transition: import("zod").ZodString;
|
|
131
|
+
dependencies: import("zod").ZodArray<import("zod").ZodObject<{
|
|
132
|
+
origin: import("zod").ZodString;
|
|
133
|
+
generation: import("zod").ZodString;
|
|
134
|
+
readiness: import("zod").ZodString;
|
|
135
|
+
meaning: import("zod").ZodString;
|
|
136
|
+
}, import("zod/v4/core").$strict>>;
|
|
137
|
+
}, import("zod/v4/core").$strict>>;
|
|
138
|
+
}, import("zod/v4/core").$strict>>;
|
|
139
|
+
}, import("zod/v4/core").$strict>;
|
|
140
|
+
/**
|
|
141
|
+
* What a completed install ends with, the value its Execution's `result` yields: the committed
|
|
142
|
+
* receipt, or the exact generation of each root it proved unchanged.
|
|
143
|
+
*/
|
|
144
|
+
export declare const installOutput: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
145
|
+
changed: import("zod").ZodLiteral<true>;
|
|
146
|
+
receipt: import("zod").ZodObject<{
|
|
147
|
+
operation: import("zod").ZodString;
|
|
148
|
+
transitions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
149
|
+
intent: import("zod").ZodObject<{
|
|
150
|
+
transition: import("zod").ZodString;
|
|
151
|
+
operation: import("zod").ZodString;
|
|
152
|
+
origin: import("zod").ZodString;
|
|
153
|
+
previous: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
154
|
+
origin: import("zod").ZodString;
|
|
155
|
+
revision: import("zod").ZodString;
|
|
156
|
+
generation: import("zod").ZodString;
|
|
157
|
+
}, import("zod/v4/core").$strict>>;
|
|
158
|
+
generation: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
159
|
+
origin: import("zod").ZodString;
|
|
160
|
+
revision: import("zod").ZodString;
|
|
161
|
+
generation: import("zod").ZodString;
|
|
162
|
+
}, import("zod/v4/core").$strict>>;
|
|
163
|
+
consent: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
164
|
+
issuer: import("zod").ZodObject<{
|
|
165
|
+
from: import("zod").ZodString;
|
|
166
|
+
to: import("zod").ZodString;
|
|
167
|
+
}, import("zod/v4/core").$strict>;
|
|
168
|
+
previous: import("zod").ZodEnum<{
|
|
169
|
+
drain: "drain";
|
|
170
|
+
revoke: "revoke";
|
|
171
|
+
}>;
|
|
172
|
+
}, import("zod/v4/core").$strict>>;
|
|
173
|
+
}, import("zod/v4/core").$strict>;
|
|
174
|
+
phase: import("zod").ZodEnum<{
|
|
175
|
+
converge: "converge";
|
|
176
|
+
cutover: "cutover";
|
|
177
|
+
}>;
|
|
178
|
+
state: import("zod").ZodLiteral<"committed">;
|
|
179
|
+
readiness: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
180
|
+
generation: import("zod").ZodString;
|
|
181
|
+
transition: import("zod").ZodString;
|
|
182
|
+
dependencies: import("zod").ZodArray<import("zod").ZodObject<{
|
|
183
|
+
origin: import("zod").ZodString;
|
|
184
|
+
generation: import("zod").ZodString;
|
|
185
|
+
readiness: import("zod").ZodString;
|
|
186
|
+
meaning: import("zod").ZodString;
|
|
187
|
+
}, import("zod/v4/core").$strict>>;
|
|
188
|
+
}, import("zod/v4/core").$strict>>;
|
|
189
|
+
}, import("zod/v4/core").$strict>>;
|
|
190
|
+
}, import("zod/v4/core").$strict>;
|
|
191
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
192
|
+
changed: import("zod").ZodLiteral<false>;
|
|
193
|
+
domains: import("zod").ZodArray<import("zod").ZodObject<{
|
|
194
|
+
origin: import("zod").ZodString;
|
|
195
|
+
revision: import("zod").ZodString;
|
|
196
|
+
generation: import("zod").ZodString;
|
|
197
|
+
}, import("zod/v4/core").$strict>>;
|
|
198
|
+
}, import("zod/v4/core").$strict>]>;
|
|
199
|
+
/**
|
|
200
|
+
* The value of the `command:<n>` signal of a waiting repair session: attempt the target, with
|
|
201
|
+
* validation options that only widen the default.
|
|
202
|
+
*/
|
|
203
|
+
export declare const installSessionCommand: import("zod").ZodObject<{
|
|
204
|
+
kind: import("zod").ZodLiteral<"apply">;
|
|
205
|
+
validation: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
206
|
+
scope: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
207
|
+
full: "full";
|
|
208
|
+
incremental: "incremental";
|
|
209
|
+
}>>;
|
|
210
|
+
counts: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
211
|
+
exact: "exact";
|
|
212
|
+
sample: "sample";
|
|
213
|
+
}>>;
|
|
214
|
+
}, import("zod/v4/core").$strict>>;
|
|
215
|
+
}, import("zod/v4/core").$strict>;
|
|
216
|
+
/** The value of the `abort:<n>` signal of a repair session: stop attempt `n`, then wait again. */
|
|
217
|
+
export declare const installSessionAbort: import("zod").ZodObject<{
|
|
218
|
+
kind: import("zod").ZodLiteral<"abort">;
|
|
219
|
+
}, import("zod/v4/core").$strict>;
|
|
220
|
+
/** The name of the signal that sends the `n`th command to a repair session. */
|
|
221
|
+
export declare function commandSignal(n: number): `command:${number}`;
|
|
222
|
+
/** The name of the signal that aborts attempt `n` of a repair session. */
|
|
223
|
+
export declare function abortSignal(n: number): `abort:${number}`;
|
|
172
224
|
type NonEmpty<Value> = readonly [Value, ...Value[]];
|
|
173
225
|
export type InstallationDigest = `sha256:${string}`;
|
|
226
|
+
export type ReleaseDigest = InstallationDigest;
|
|
174
227
|
export interface ArtifactRef {
|
|
175
228
|
readonly digest: InstallationDigest;
|
|
176
229
|
readonly mediaType: string;
|
|
177
230
|
readonly size: number;
|
|
178
231
|
}
|
|
179
|
-
export interface
|
|
232
|
+
export interface DependencyReadinessEvidence {
|
|
180
233
|
readonly origin: string;
|
|
181
|
-
readonly
|
|
182
|
-
readonly
|
|
183
|
-
readonly
|
|
184
|
-
readonly meaningComparison: InstallationDigest;
|
|
234
|
+
readonly generation: InstallationDigest;
|
|
235
|
+
readonly readiness: InstallationDigest;
|
|
236
|
+
readonly meaning: InstallationDigest;
|
|
185
237
|
}
|
|
186
|
-
export
|
|
187
|
-
readonly
|
|
188
|
-
readonly
|
|
189
|
-
|
|
190
|
-
readonly kind: 'remote';
|
|
191
|
-
readonly etag: InstallationDigest;
|
|
192
|
-
};
|
|
193
|
-
export type ClassOperation = 'create' | 'read' | 'traverse' | 'update' | 'delete';
|
|
194
|
-
export interface ClassCapabilityRequirement {
|
|
195
|
-
readonly class: ClassRef;
|
|
196
|
-
readonly operations: NonEmpty<ClassOperation>;
|
|
238
|
+
export interface DomainGeneration {
|
|
239
|
+
readonly origin: string;
|
|
240
|
+
readonly revision: string;
|
|
241
|
+
readonly generation: InstallationDigest;
|
|
197
242
|
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
243
|
+
/**
|
|
244
|
+
* The operator's consent to replace the issuer an installation runs under (D7): a compare-and-swap
|
|
245
|
+
* of the exact installed issuer `from` for the exact issuer `to` the source serves.
|
|
246
|
+
*/
|
|
247
|
+
export interface IssuerConsent {
|
|
248
|
+
readonly issuer: {
|
|
249
|
+
readonly from: string;
|
|
250
|
+
readonly to: string;
|
|
204
251
|
};
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
readonly
|
|
210
|
-
readonly service: ServiceTarget;
|
|
211
|
-
readonly capabilities: CapabilityRequirements;
|
|
212
|
-
readonly dependencies: readonly DependencyReadinessCoordinate[];
|
|
252
|
+
/**
|
|
253
|
+
* What the replaced issuer keeps: `drain` (default) accepts it for a bounded time after the
|
|
254
|
+
* activation, then only for the steps of its durable runs; `revoke` cuts it at the activation.
|
|
255
|
+
*/
|
|
256
|
+
readonly previous?: 'drain' | 'revoke';
|
|
213
257
|
}
|
|
214
258
|
export interface TransitionIntent {
|
|
215
259
|
readonly transition: string;
|
|
216
260
|
readonly operation: OperationId;
|
|
217
|
-
readonly installation: string;
|
|
218
261
|
readonly origin: string;
|
|
219
|
-
readonly
|
|
220
|
-
readonly
|
|
262
|
+
readonly previous: DomainGeneration | null;
|
|
263
|
+
readonly generation: DomainGeneration | null;
|
|
264
|
+
/** Present only on a replacement that changed its issuer under consent. */
|
|
265
|
+
readonly consent?: {
|
|
266
|
+
readonly issuer: {
|
|
267
|
+
readonly from: string;
|
|
268
|
+
readonly to: string;
|
|
269
|
+
};
|
|
270
|
+
readonly previous: 'drain' | 'revoke';
|
|
271
|
+
};
|
|
221
272
|
}
|
|
222
273
|
export interface ReadinessReceipt {
|
|
223
|
-
readonly
|
|
224
|
-
readonly target: InstallationDigest;
|
|
274
|
+
readonly generation: InstallationDigest;
|
|
225
275
|
readonly transition: string;
|
|
226
|
-
readonly dependencies: readonly
|
|
276
|
+
readonly dependencies: readonly DependencyReadinessEvidence[];
|
|
227
277
|
}
|
|
228
278
|
export interface TransitionReceipt {
|
|
229
279
|
readonly intent: TransitionIntent;
|
|
@@ -231,28 +281,70 @@ export interface TransitionReceipt {
|
|
|
231
281
|
readonly state: 'committed';
|
|
232
282
|
readonly readiness?: ReadinessReceipt;
|
|
233
283
|
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
readonly artifact: ArtifactRef;
|
|
238
|
-
};
|
|
239
|
-
readonly currentRevision?: string | null;
|
|
240
|
-
} | {
|
|
241
|
-
readonly source: {
|
|
242
|
-
readonly kind: 'remote';
|
|
284
|
+
/** Installs the exact DomainRelease served by the URL. */
|
|
285
|
+
export interface ReleaseRequest {
|
|
286
|
+
readonly release: {
|
|
243
287
|
readonly url: string;
|
|
244
288
|
readonly token?: string;
|
|
289
|
+
/** Requires an exact release digest. Omit to accept the served release. */
|
|
290
|
+
readonly digest?: ReleaseDigest;
|
|
245
291
|
};
|
|
246
|
-
|
|
247
|
-
|
|
292
|
+
/**
|
|
293
|
+
* Required when the source serves another issuer than the installed one, refused otherwise:
|
|
294
|
+
* `from` must be the installed issuer and `to` the served one, neither the Kernel issuer.
|
|
295
|
+
*/
|
|
296
|
+
readonly consent?: IssuerConsent;
|
|
297
|
+
readonly revision?: string;
|
|
248
298
|
readonly currentRevision?: string | null;
|
|
249
|
-
}
|
|
299
|
+
}
|
|
300
|
+
export type DomainRequest = {
|
|
301
|
+
readonly artifact: ArtifactRef;
|
|
302
|
+
readonly currentRevision?: string | null;
|
|
303
|
+
} | ReleaseRequest;
|
|
304
|
+
/** `online` (default) never closes the Instance; `maintenance` opens a maintenance session. */
|
|
305
|
+
export type InstallMode = (typeof INSTALL_MODES)[number];
|
|
306
|
+
/** What an install does to the stored data; see `INSTALL_CLASSES`. */
|
|
307
|
+
export type InstallClass = (typeof INSTALL_CLASSES)[number];
|
|
308
|
+
/**
|
|
309
|
+
* What an install asks its data validation to read beyond the default. `scope: 'full'` trusts
|
|
310
|
+
* nothing of the stored data and reads every rule of the destination over every retained extent;
|
|
311
|
+
* `counts: 'exact'` walks every refuted rule to its end, so its count is exact. Each option only
|
|
312
|
+
* widens the default (`incremental`, `sample`).
|
|
313
|
+
*/
|
|
314
|
+
export interface InstallValidation {
|
|
315
|
+
readonly scope?: 'incremental' | 'full';
|
|
316
|
+
readonly counts?: 'sample' | 'exact';
|
|
317
|
+
}
|
|
318
|
+
/** The validation options an install runs with, defaults filled in. */
|
|
319
|
+
export interface ValidationOptions {
|
|
320
|
+
readonly scope: 'incremental' | 'full';
|
|
321
|
+
readonly counts: 'sample' | 'exact';
|
|
322
|
+
}
|
|
250
323
|
export interface InstallInput {
|
|
251
324
|
readonly operation: OperationId;
|
|
252
|
-
readonly domains: NonEmpty<
|
|
325
|
+
readonly domains: NonEmpty<DomainRequest>;
|
|
326
|
+
readonly mode?: InstallMode;
|
|
327
|
+
readonly validation?: InstallValidation;
|
|
253
328
|
}
|
|
254
|
-
export interface
|
|
329
|
+
export interface InstallReceipt {
|
|
255
330
|
readonly operation: OperationId;
|
|
256
331
|
readonly transitions: NonEmpty<TransitionReceipt>;
|
|
257
332
|
}
|
|
333
|
+
/** What a completed install ends with; see `installOutput`. */
|
|
334
|
+
export type InstallOutput = {
|
|
335
|
+
readonly changed: true;
|
|
336
|
+
readonly receipt: InstallReceipt;
|
|
337
|
+
} | {
|
|
338
|
+
readonly changed: false;
|
|
339
|
+
readonly domains: NonEmpty<DomainGeneration>;
|
|
340
|
+
};
|
|
341
|
+
/** The `command:<n>` signal value of a repair session. */
|
|
342
|
+
export interface InstallSessionCommand {
|
|
343
|
+
readonly kind: 'apply';
|
|
344
|
+
readonly validation?: InstallValidation;
|
|
345
|
+
}
|
|
346
|
+
/** The `abort:<n>` signal value of a repair session. */
|
|
347
|
+
export interface InstallSessionAbort {
|
|
348
|
+
readonly kind: 'abort';
|
|
349
|
+
}
|
|
258
350
|
export {};
|