@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,12 +1,12 @@
|
|
|
1
1
|
import { defineSchema, schema } from '@astrale-os/kernel-dsl/v1';
|
|
2
2
|
import { AuthorityOperations, CanCreate, CanDelete, CanGrant, CanRead, CanRevoke, CanTraverse, CanUse, CanUpdate, GovernedBy, Operation, Policy, } from '../authority/index.js';
|
|
3
|
-
import { Function as FunctionClass, MethodOf, View,
|
|
3
|
+
import { Entrypoint, Execution, Function as FunctionClass, MethodOf, View, } from '../callables/index.js';
|
|
4
4
|
import { OperationCore } from '../core/index.js';
|
|
5
5
|
import { Class, Extends, InstanceOf } from '../definitions/index.js';
|
|
6
6
|
import { Domain as DomainClass, OfDomain } from '../domain/index.js';
|
|
7
7
|
import { ConstrainedBy, ExcludedFrom, ExtendsWith, Identity } from '../identity/index.js';
|
|
8
|
-
import { Descriptable, Edge, Iconable, Named, Node, Remotable, Statused, Timestamped, } from '../meta/index.js';
|
|
9
|
-
import { Functions } from './syscalls/declarations/index.js';
|
|
8
|
+
import { CreatedBy, Descriptable, Edge, Iconable, Named, Node, Remotable, Statused, Timestamped, } from '../meta/index.js';
|
|
9
|
+
import { Functions, CanUseSyscall } from './syscalls/declarations/index.js';
|
|
10
10
|
const KernelDefinitions = {
|
|
11
11
|
classes: {
|
|
12
12
|
Descriptable,
|
|
@@ -20,6 +20,7 @@ const KernelDefinitions = {
|
|
|
20
20
|
Timestamped,
|
|
21
21
|
Class,
|
|
22
22
|
Domain: DomainClass,
|
|
23
|
+
Execution,
|
|
23
24
|
Function: FunctionClass,
|
|
24
25
|
Operation,
|
|
25
26
|
Policy,
|
|
@@ -33,6 +34,8 @@ const KernelDefinitions = {
|
|
|
33
34
|
can_revoke: CanRevoke,
|
|
34
35
|
can_use: CanUse,
|
|
35
36
|
constrained_by: ConstrainedBy,
|
|
37
|
+
created_by: CreatedBy,
|
|
38
|
+
entrypoint: Entrypoint,
|
|
36
39
|
excluded_from: ExcludedFrom,
|
|
37
40
|
extends: Extends,
|
|
38
41
|
extends_with: ExtendsWith,
|
|
@@ -40,9 +43,8 @@ const KernelDefinitions = {
|
|
|
40
43
|
instance_of: InstanceOf,
|
|
41
44
|
method_of: MethodOf,
|
|
42
45
|
of_domain: OfDomain,
|
|
43
|
-
view_for: ViewFor,
|
|
44
46
|
},
|
|
45
|
-
policies: {},
|
|
47
|
+
policies: { canUseSyscall: CanUseSyscall },
|
|
46
48
|
functions: Functions,
|
|
47
49
|
};
|
|
48
50
|
const KernelCore = Object.freeze({
|
|
@@ -50,6 +52,7 @@ const KernelCore = Object.freeze({
|
|
|
50
52
|
edges: OperationCore.edges,
|
|
51
53
|
});
|
|
52
54
|
const KernelSchemaInput = {
|
|
55
|
+
name: 'Kernel',
|
|
53
56
|
...KernelDefinitions,
|
|
54
57
|
core: KernelCore,
|
|
55
58
|
};
|
|
@@ -71,13 +74,14 @@ export const AuthorityRelations = Object.freeze({
|
|
|
71
74
|
export const KernelRootFunctions = Object.freeze([
|
|
72
75
|
K.functions.query,
|
|
73
76
|
K.functions.mutate,
|
|
74
|
-
K.functions.
|
|
77
|
+
K.functions.upload,
|
|
78
|
+
K.functions.download,
|
|
79
|
+
K.functions.register,
|
|
75
80
|
K.functions.install,
|
|
76
|
-
K.functions.introspect,
|
|
77
81
|
K.functions.uninstall,
|
|
78
82
|
K.functions.journal,
|
|
79
83
|
K.classes.Identity.static.methods.whois,
|
|
80
|
-
K.classes.Identity.static.methods.
|
|
84
|
+
K.classes.Identity.static.methods.impersonate,
|
|
81
85
|
K.classes.View.static.methods.resolve,
|
|
82
86
|
].sort((left, right) => (left.key < right.key ? -1 : left.key > right.key ? 1 : 0)));
|
|
83
87
|
export { AuthorityOperationOrder, AuthorityOperations, operationOf } from '../authority/index.js';
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
export declare const admitInput: import("zod").ZodObject<{
|
|
2
|
+
call: import("zod").ZodObject<{
|
|
3
|
+
target: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodObject<{
|
|
4
|
+
callable: import("zod").ZodString;
|
|
5
|
+
instance: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6
|
+
fingerprint: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7
|
+
}, import("zod/v4/core").$strict>]>;
|
|
8
|
+
input: import("zod").ZodUnknown;
|
|
9
|
+
}, import("zod/v4/core").$strict>;
|
|
10
|
+
credential: import("zod").ZodOptional<import("zod").ZodString>;
|
|
11
|
+
}, import("zod/v4/core").$strict>;
|
|
12
|
+
export declare const admitOutput: import("zod").ZodObject<{
|
|
13
|
+
callable: import("zod").ZodString;
|
|
14
|
+
receiver: import("zod").ZodOptional<import("zod").ZodString>;
|
|
15
|
+
}, import("zod/v4/core").$strict>;
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export const admitInput =
|
|
3
|
-
call:
|
|
4
|
-
target:
|
|
5
|
-
|
|
1
|
+
import { strictObject, string, union, unknown as unknownSchema } from 'zod';
|
|
2
|
+
export const admitInput = strictObject({
|
|
3
|
+
call: strictObject({
|
|
4
|
+
target: union([
|
|
5
|
+
string().min(1),
|
|
6
|
+
strictObject({
|
|
7
|
+
callable: string().min(1),
|
|
8
|
+
instance: string().min(1).optional(),
|
|
9
|
+
fingerprint: string().min(1).optional(),
|
|
10
|
+
}),
|
|
11
|
+
]),
|
|
12
|
+
input: unknownSchema(),
|
|
6
13
|
}),
|
|
7
|
-
credential:
|
|
14
|
+
credential: string().optional(),
|
|
8
15
|
});
|
|
9
|
-
export const admitOutput =
|
|
10
|
-
callable:
|
|
11
|
-
receiver:
|
|
16
|
+
export const admitOutput = strictObject({
|
|
17
|
+
callable: string().min(1),
|
|
18
|
+
receiver: string().min(1).optional(),
|
|
12
19
|
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const MAXIMUM_BLOB_BYTES = 104857600;
|
|
2
|
+
export declare const blobSlot: import("zod").ZodObject<{
|
|
3
|
+
node: import("zod").ZodString;
|
|
4
|
+
property: import("zod").ZodString;
|
|
5
|
+
}, import("zod/v4/core").$strict>;
|
|
6
|
+
export declare const uploadInput: import("zod").ZodObject<{
|
|
7
|
+
mediaType: import("zod").ZodString;
|
|
8
|
+
}, import("zod/v4/core").$strict>;
|
|
9
|
+
export declare const uploadOutput: import("zod").ZodObject<{
|
|
10
|
+
receipt: import("zod").ZodString;
|
|
11
|
+
ref: import("zod").ZodObject<{
|
|
12
|
+
digest: import("zod").ZodString;
|
|
13
|
+
mediaType: import("zod").ZodString;
|
|
14
|
+
size: import("zod").ZodNumber;
|
|
15
|
+
}, import("zod/v4/core").$strict>;
|
|
16
|
+
expiresAt: import("zod").ZodString;
|
|
17
|
+
}, import("zod/v4/core").$strict>;
|
|
18
|
+
/** Upper bound of one multi-slot download; a client splits larger slot lists. */
|
|
19
|
+
export declare const MAXIMUM_DOWNLOAD_SLOTS = 256;
|
|
20
|
+
/** Media type of a multi-slot download body: one length-prefixed part per slot, in slot order. */
|
|
21
|
+
export declare const DOWNLOAD_PARTS_MEDIA_TYPE = "application/vnd.astrale.download-parts";
|
|
22
|
+
/** One slot, the original contract, or an ordered slot list answered part by part. */
|
|
23
|
+
export declare const downloadInput: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
24
|
+
node: import("zod").ZodString;
|
|
25
|
+
property: import("zod").ZodString;
|
|
26
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
27
|
+
slots: import("zod").ZodArray<import("zod").ZodObject<{
|
|
28
|
+
node: import("zod").ZodString;
|
|
29
|
+
property: import("zod").ZodString;
|
|
30
|
+
}, import("zod/v4/core").$strict>>;
|
|
31
|
+
}, import("zod/v4/core").$strict>]>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { patterns } from '@astrale-os/kernel-dsl/v1/addressing';
|
|
2
|
+
import { fullMatch } from '@astrale-os/kernel-dsl/v1/value/full-match';
|
|
3
|
+
import { array, strictObject, string, union } from 'zod';
|
|
4
|
+
import { artifactRef } from './installation.js';
|
|
5
|
+
export const MAXIMUM_BLOB_BYTES = 104_857_600;
|
|
6
|
+
export const blobSlot = strictObject({
|
|
7
|
+
node: string().check(fullMatch('[A-Za-z0-9._-]{1,255}')),
|
|
8
|
+
property: string().check(fullMatch(patterns.propertyKeyFullMatch)),
|
|
9
|
+
});
|
|
10
|
+
export const uploadInput = strictObject({ mediaType: string().min(1) });
|
|
11
|
+
export const uploadOutput = strictObject({
|
|
12
|
+
receipt: string().min(1),
|
|
13
|
+
ref: artifactRef,
|
|
14
|
+
expiresAt: string().min(1),
|
|
15
|
+
});
|
|
16
|
+
/** Upper bound of one multi-slot download; a client splits larger slot lists. */
|
|
17
|
+
export const MAXIMUM_DOWNLOAD_SLOTS = 256;
|
|
18
|
+
/** Media type of a multi-slot download body: one length-prefixed part per slot, in slot order. */
|
|
19
|
+
export const DOWNLOAD_PARTS_MEDIA_TYPE = 'application/vnd.astrale.download-parts';
|
|
20
|
+
/** One slot, the original contract, or an ordered slot list answered part by part. */
|
|
21
|
+
export const downloadInput = union([
|
|
22
|
+
blobSlot,
|
|
23
|
+
strictObject({ slots: array(blobSlot).min(1).max(MAXIMUM_DOWNLOAD_SLOTS) }),
|
|
24
|
+
]);
|
|
@@ -1,8 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
/** Upper bound of one Identity.can batch; a client splits larger check sets. */
|
|
2
|
+
export declare const MAXIMUM_CHECKS = 256;
|
|
3
|
+
/** One check, the original contract, or an ordered batch answered check by check. */
|
|
4
|
+
export declare const canInput: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
5
|
+
policy: import("zod").ZodString;
|
|
6
|
+
object: import("zod").ZodString;
|
|
7
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
8
|
+
checks: import("zod").ZodArray<import("zod").ZodObject<{
|
|
9
|
+
policy: import("zod").ZodString;
|
|
10
|
+
object: import("zod").ZodString;
|
|
11
|
+
}, import("zod/v4/core").$strict>>;
|
|
12
|
+
}, import("zod/v4/core").$strict>]>;
|
|
13
|
+
export declare const canOutput: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
14
|
+
allowed: import("zod").ZodBoolean;
|
|
15
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
16
|
+
decisions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
17
|
+
allowed: import("zod").ZodBoolean;
|
|
18
|
+
}, import("zod/v4/core").$strict>>;
|
|
19
|
+
}, import("zod/v4/core").$strict>]>;
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export const
|
|
4
|
-
|
|
1
|
+
import { array, boolean, strictObject, string, union } from 'zod';
|
|
2
|
+
/** Upper bound of one Identity.can batch; a client splits larger check sets. */
|
|
3
|
+
export const MAXIMUM_CHECKS = 256;
|
|
4
|
+
const text = string().min(1);
|
|
5
|
+
const check = strictObject({ policy: text, object: text });
|
|
6
|
+
const decision = strictObject({ allowed: boolean() });
|
|
7
|
+
/** One check, the original contract, or an ordered batch answered check by check. */
|
|
8
|
+
export const canInput = union([
|
|
9
|
+
check,
|
|
10
|
+
strictObject({ checks: array(check).min(1).max(MAXIMUM_CHECKS) }),
|
|
11
|
+
]);
|
|
12
|
+
export const canOutput = union([decision, strictObject({ decisions: array(decision) })]);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
audience:
|
|
4
|
-
ttlSeconds:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export declare const delegateOutput: z.ZodString;
|
|
1
|
+
export declare const delegateInput: import("zod").ZodObject<{
|
|
2
|
+
principal: import("zod").ZodString;
|
|
3
|
+
audience: import("zod").ZodString;
|
|
4
|
+
ttlSeconds: import("zod").ZodNumber;
|
|
5
|
+
}, import("zod/v4/core").$strict>;
|
|
6
|
+
export declare const delegateOutput: import("zod").ZodString;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const text =
|
|
3
|
-
export const delegateInput =
|
|
1
|
+
import { number, strictObject, string } from 'zod';
|
|
2
|
+
const text = string().min(1);
|
|
3
|
+
export const delegateInput = strictObject({
|
|
4
|
+
principal: text,
|
|
4
5
|
audience: text,
|
|
5
|
-
ttlSeconds:
|
|
6
|
-
attenuation: z.unknown(),
|
|
6
|
+
ttlSeconds: number().int().min(1),
|
|
7
7
|
});
|
|
8
8
|
export const delegateOutput = text;
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
import { type InstallClass, type InstallMode, type ValidationOptions } from './install.js';
|
|
2
|
+
/** Terminal outcome of one durable call; a handler failure is an outcome, not a call error. */
|
|
3
|
+
export declare const executionOutcome: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
4
|
+
kind: import("zod").ZodLiteral<"completed">;
|
|
5
|
+
value: import("zod").ZodUnknown;
|
|
6
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
7
|
+
kind: import("zod").ZodLiteral<"failed">;
|
|
8
|
+
error: import("zod").ZodObject<{
|
|
9
|
+
code: import("zod").ZodString;
|
|
10
|
+
message: import("zod").ZodString;
|
|
11
|
+
family: import("zod").ZodOptional<import("zod").ZodString>;
|
|
12
|
+
details: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
13
|
+
}, import("zod/v4/core").$strict>;
|
|
14
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
15
|
+
kind: import("zod").ZodLiteral<"cancelled">;
|
|
16
|
+
}, import("zod/v4/core").$strict>]>;
|
|
17
|
+
/**
|
|
18
|
+
* The steps a system execution reports as its `phase`: an install classifies, validates and
|
|
19
|
+
* activates; a repair session drains, awaits a command, attempts and activates; each ends
|
|
20
|
+
* `completed`, `rejected` or `cancelled`.
|
|
21
|
+
*/
|
|
22
|
+
export declare const SYSTEM_EXECUTION_PHASES: readonly ["classifying", "validating", "activating", "draining", "awaiting", "attempting", "completed", "rejected", "cancelled"];
|
|
23
|
+
/** Continuity interruptions a validation survives before it ends. */
|
|
24
|
+
export declare const MAXIMUM_VALIDATION_INTERRUPTIONS = 3;
|
|
25
|
+
/**
|
|
26
|
+
* What a system execution shows beside its engine state, as the Runtime writes it and the Client
|
|
27
|
+
* reads it. `phase` is its own step; every other member is present only where it applies: the
|
|
28
|
+
* install's class, mode and validation options, the validation progress the store keeps, and for a
|
|
29
|
+
* repair session the admission it holds the Instance in, the `n` of the `command:<n>` signal it
|
|
30
|
+
* awaits and, while that wait is bounded, when it expires, the attempt running now, which the
|
|
31
|
+
* `abort:<number>` signal stops, and the last attempt that ended without activating, with its
|
|
32
|
+
* report. `uncertified` is the break-glass mark the Instance carries, shown on a live execution
|
|
33
|
+
* and on the session the mark names.
|
|
34
|
+
*/
|
|
35
|
+
export declare const systemExecutionDetail: import("zod").ZodObject<{
|
|
36
|
+
phase: import("zod").ZodEnum<{
|
|
37
|
+
activating: "activating";
|
|
38
|
+
attempting: "attempting";
|
|
39
|
+
awaiting: "awaiting";
|
|
40
|
+
cancelled: "cancelled";
|
|
41
|
+
classifying: "classifying";
|
|
42
|
+
completed: "completed";
|
|
43
|
+
draining: "draining";
|
|
44
|
+
rejected: "rejected";
|
|
45
|
+
validating: "validating";
|
|
46
|
+
}>;
|
|
47
|
+
class: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
48
|
+
immediate: "immediate";
|
|
49
|
+
noop: "noop";
|
|
50
|
+
revalidate: "revalidate";
|
|
51
|
+
}>>;
|
|
52
|
+
mode: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
53
|
+
maintenance: "maintenance";
|
|
54
|
+
online: "online";
|
|
55
|
+
}>>;
|
|
56
|
+
validation: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
57
|
+
scope: import("zod").ZodEnum<{
|
|
58
|
+
full: "full";
|
|
59
|
+
incremental: "incremental";
|
|
60
|
+
}>;
|
|
61
|
+
counts: import("zod").ZodEnum<{
|
|
62
|
+
exact: "exact";
|
|
63
|
+
sample: "sample";
|
|
64
|
+
}>;
|
|
65
|
+
}, import("zod/v4/core").$strict>>;
|
|
66
|
+
progress: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
67
|
+
pages: import("zod").ZodNumber;
|
|
68
|
+
interruptions: import("zod").ZodNumber;
|
|
69
|
+
}, import("zod/v4/core").$strict>>;
|
|
70
|
+
instance: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
71
|
+
attempt: "attempt";
|
|
72
|
+
draining: "draining";
|
|
73
|
+
open: "open";
|
|
74
|
+
repair: "repair";
|
|
75
|
+
}>>;
|
|
76
|
+
command: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
77
|
+
expires: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
78
|
+
attempt: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
79
|
+
number: import("zod").ZodNumber;
|
|
80
|
+
destination: import("zod").ZodEnum<{
|
|
81
|
+
previous: "previous";
|
|
82
|
+
target: "target";
|
|
83
|
+
}>;
|
|
84
|
+
}, import("zod/v4/core").$strict>>;
|
|
85
|
+
report: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
86
|
+
attempt: import("zod").ZodNumber;
|
|
87
|
+
destination: import("zod").ZodEnum<{
|
|
88
|
+
previous: "previous";
|
|
89
|
+
target: "target";
|
|
90
|
+
}>;
|
|
91
|
+
result: import("zod").ZodEnum<{
|
|
92
|
+
aborted: "aborted";
|
|
93
|
+
interrupted: "interrupted";
|
|
94
|
+
"migration-required": "migration-required";
|
|
95
|
+
}>;
|
|
96
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
97
|
+
summary: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
98
|
+
}, import("zod/v4/core").$strict>>;
|
|
99
|
+
uncertified: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
100
|
+
since: import("zod").ZodNumber;
|
|
101
|
+
session: import("zod").ZodOptional<import("zod").ZodString>;
|
|
102
|
+
operator: import("zod").ZodOptional<import("zod").ZodString>;
|
|
103
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
104
|
+
}, import("zod/v4/core").$strict>>;
|
|
105
|
+
}, import("zod/v4/core").$strict>;
|
|
106
|
+
/**
|
|
107
|
+
* The status of one Execution: the engine state of one whose node exists, `detail` present on a
|
|
108
|
+
* system execution only; or, for Root alone, the state `deleted` of a system execution whose node
|
|
109
|
+
* was deleted, with the outcome its lifecycle record keeps for ever, so that it is never read as a
|
|
110
|
+
* live run.
|
|
111
|
+
*/
|
|
112
|
+
export declare const executionStatus: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
113
|
+
id: import("zod").ZodString;
|
|
114
|
+
function: import("zod").ZodString;
|
|
115
|
+
version: import("zod").ZodString;
|
|
116
|
+
state: import("zod").ZodEnum<{
|
|
117
|
+
cancelled: "cancelled";
|
|
118
|
+
completed: "completed";
|
|
119
|
+
expired: "expired";
|
|
120
|
+
failed: "failed";
|
|
121
|
+
paused: "paused";
|
|
122
|
+
pending: "pending";
|
|
123
|
+
running: "running";
|
|
124
|
+
waiting: "waiting";
|
|
125
|
+
}>;
|
|
126
|
+
createdAt: import("zod").ZodString;
|
|
127
|
+
detail: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
128
|
+
phase: import("zod").ZodEnum<{
|
|
129
|
+
activating: "activating";
|
|
130
|
+
attempting: "attempting";
|
|
131
|
+
awaiting: "awaiting";
|
|
132
|
+
cancelled: "cancelled";
|
|
133
|
+
classifying: "classifying";
|
|
134
|
+
completed: "completed";
|
|
135
|
+
draining: "draining";
|
|
136
|
+
rejected: "rejected";
|
|
137
|
+
validating: "validating";
|
|
138
|
+
}>;
|
|
139
|
+
class: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
140
|
+
immediate: "immediate";
|
|
141
|
+
noop: "noop";
|
|
142
|
+
revalidate: "revalidate";
|
|
143
|
+
}>>;
|
|
144
|
+
mode: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
145
|
+
maintenance: "maintenance";
|
|
146
|
+
online: "online";
|
|
147
|
+
}>>;
|
|
148
|
+
validation: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
149
|
+
scope: import("zod").ZodEnum<{
|
|
150
|
+
full: "full";
|
|
151
|
+
incremental: "incremental";
|
|
152
|
+
}>;
|
|
153
|
+
counts: import("zod").ZodEnum<{
|
|
154
|
+
exact: "exact";
|
|
155
|
+
sample: "sample";
|
|
156
|
+
}>;
|
|
157
|
+
}, import("zod/v4/core").$strict>>;
|
|
158
|
+
progress: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
159
|
+
pages: import("zod").ZodNumber;
|
|
160
|
+
interruptions: import("zod").ZodNumber;
|
|
161
|
+
}, import("zod/v4/core").$strict>>;
|
|
162
|
+
instance: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
163
|
+
attempt: "attempt";
|
|
164
|
+
draining: "draining";
|
|
165
|
+
open: "open";
|
|
166
|
+
repair: "repair";
|
|
167
|
+
}>>;
|
|
168
|
+
command: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
169
|
+
expires: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
170
|
+
attempt: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
171
|
+
number: import("zod").ZodNumber;
|
|
172
|
+
destination: import("zod").ZodEnum<{
|
|
173
|
+
previous: "previous";
|
|
174
|
+
target: "target";
|
|
175
|
+
}>;
|
|
176
|
+
}, import("zod/v4/core").$strict>>;
|
|
177
|
+
report: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
178
|
+
attempt: import("zod").ZodNumber;
|
|
179
|
+
destination: import("zod").ZodEnum<{
|
|
180
|
+
previous: "previous";
|
|
181
|
+
target: "target";
|
|
182
|
+
}>;
|
|
183
|
+
result: import("zod").ZodEnum<{
|
|
184
|
+
aborted: "aborted";
|
|
185
|
+
interrupted: "interrupted";
|
|
186
|
+
"migration-required": "migration-required";
|
|
187
|
+
}>;
|
|
188
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
189
|
+
summary: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
190
|
+
}, import("zod/v4/core").$strict>>;
|
|
191
|
+
uncertified: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
192
|
+
since: import("zod").ZodNumber;
|
|
193
|
+
session: import("zod").ZodOptional<import("zod").ZodString>;
|
|
194
|
+
operator: import("zod").ZodOptional<import("zod").ZodString>;
|
|
195
|
+
reason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
196
|
+
}, import("zod/v4/core").$strict>>;
|
|
197
|
+
}, import("zod/v4/core").$strict>>;
|
|
198
|
+
outcome: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
199
|
+
kind: import("zod").ZodLiteral<"completed">;
|
|
200
|
+
value: import("zod").ZodUnknown;
|
|
201
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
202
|
+
kind: import("zod").ZodLiteral<"failed">;
|
|
203
|
+
error: import("zod").ZodObject<{
|
|
204
|
+
code: import("zod").ZodString;
|
|
205
|
+
message: import("zod").ZodString;
|
|
206
|
+
family: import("zod").ZodOptional<import("zod").ZodString>;
|
|
207
|
+
details: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
208
|
+
}, import("zod/v4/core").$strict>;
|
|
209
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
210
|
+
kind: import("zod").ZodLiteral<"cancelled">;
|
|
211
|
+
}, import("zod/v4/core").$strict>]>>;
|
|
212
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
213
|
+
id: import("zod").ZodString;
|
|
214
|
+
state: import("zod").ZodLiteral<"deleted">;
|
|
215
|
+
outcome: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
216
|
+
kind: import("zod").ZodLiteral<"completed">;
|
|
217
|
+
value: import("zod").ZodUnknown;
|
|
218
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
219
|
+
kind: import("zod").ZodLiteral<"failed">;
|
|
220
|
+
error: import("zod").ZodObject<{
|
|
221
|
+
code: import("zod").ZodString;
|
|
222
|
+
message: import("zod").ZodString;
|
|
223
|
+
family: import("zod").ZodOptional<import("zod").ZodString>;
|
|
224
|
+
details: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
225
|
+
}, import("zod/v4/core").$strict>;
|
|
226
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
227
|
+
kind: import("zod").ZodLiteral<"cancelled">;
|
|
228
|
+
}, import("zod/v4/core").$strict>]>;
|
|
229
|
+
}, import("zod/v4/core").$strict>]>;
|
|
230
|
+
/** What a durable call answers at once: the Execution it created or recovered. */
|
|
231
|
+
export declare const executionRef: import("zod").ZodObject<{
|
|
232
|
+
id: import("zod").ZodString;
|
|
233
|
+
}, import("zod/v4/core").$strict>;
|
|
234
|
+
export declare const executionStatusInput: import("zod").ZodObject<{}, import("zod/v4/core").$strict>;
|
|
235
|
+
export declare const executionResultInput: import("zod").ZodObject<{
|
|
236
|
+
waitMs: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
237
|
+
}, import("zod/v4/core").$strict>;
|
|
238
|
+
export declare const executionCancelInput: import("zod").ZodObject<{
|
|
239
|
+
force: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
240
|
+
}, import("zod/v4/core").$strict>;
|
|
241
|
+
export declare const executionSignalInput: import("zod").ZodObject<{
|
|
242
|
+
name: import("zod").ZodString;
|
|
243
|
+
value: import("zod").ZodUnknown;
|
|
244
|
+
}, import("zod/v4/core").$strict>;
|
|
245
|
+
export declare const executionSignalOutput: import("zod").ZodObject<{}, import("zod/v4/core").$strict>;
|
|
246
|
+
export declare const executionResumeInput: import("zod").ZodObject<{}, import("zod/v4/core").$strict>;
|
|
247
|
+
export declare const executionDeleteInput: import("zod").ZodObject<{}, import("zod/v4/core").$strict>;
|
|
248
|
+
export declare const executionDeleteOutput: import("zod").ZodObject<{}, import("zod/v4/core").$strict>;
|
|
249
|
+
export type SystemExecutionPhase = (typeof SYSTEM_EXECUTION_PHASES)[number];
|
|
250
|
+
/** One attempt of a repair session that ended without activating its destination. */
|
|
251
|
+
export interface AttemptReport {
|
|
252
|
+
readonly attempt: number;
|
|
253
|
+
/** `target` for an `apply`, `previous` for a cooperative cancel or an idle expiry. */
|
|
254
|
+
readonly destination: 'target' | 'previous';
|
|
255
|
+
readonly result: 'migration-required' | 'interrupted' | 'aborted';
|
|
256
|
+
/** The public failure code that interrupted it. */
|
|
257
|
+
readonly reason?: string;
|
|
258
|
+
/** The public migration report of a refuted attempt, versioned by its owner. */
|
|
259
|
+
readonly summary?: unknown;
|
|
260
|
+
}
|
|
261
|
+
/** The detail of a system execution's status; see `systemExecutionDetail`. */
|
|
262
|
+
export interface SystemExecutionDetail {
|
|
263
|
+
readonly phase: SystemExecutionPhase;
|
|
264
|
+
readonly class?: InstallClass;
|
|
265
|
+
readonly mode?: InstallMode;
|
|
266
|
+
readonly validation?: ValidationOptions;
|
|
267
|
+
/** Pages validated so far, and continuity interruptions of at most three. */
|
|
268
|
+
readonly progress?: {
|
|
269
|
+
readonly pages: number;
|
|
270
|
+
readonly interruptions: number;
|
|
271
|
+
};
|
|
272
|
+
/** The admission a repair session holds the Instance in. */
|
|
273
|
+
readonly instance?: 'open' | 'draining' | 'repair' | 'attempt';
|
|
274
|
+
/** The `n` of the `command:<n>` signal a waiting session awaits. */
|
|
275
|
+
readonly command?: number;
|
|
276
|
+
/**
|
|
277
|
+
* When a waiting session's idle bound passes (epoch milliseconds): without a command by then, it
|
|
278
|
+
* tries to return to its source. Absent once an idle return was refuted: it then waits for Root.
|
|
279
|
+
*/
|
|
280
|
+
readonly expires?: number;
|
|
281
|
+
/** The attempt running now; the `abort:<number>` signal stops it. */
|
|
282
|
+
readonly attempt?: {
|
|
283
|
+
readonly number: number;
|
|
284
|
+
readonly destination: 'target' | 'previous';
|
|
285
|
+
};
|
|
286
|
+
/** The last attempt that ended without activating. */
|
|
287
|
+
readonly report?: AttemptReport;
|
|
288
|
+
/** The break-glass mark the Instance carries: no certificate covers its stored facts. */
|
|
289
|
+
readonly uncertified?: UncertifiedMark;
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* The mark a break-glass exit leaves on the Instance until a `full` validation commits: when it
|
|
293
|
+
* was set (epoch milliseconds), the session it closed, and the operator and reason the Host named.
|
|
294
|
+
*/
|
|
295
|
+
export interface UncertifiedMark {
|
|
296
|
+
readonly since: number;
|
|
297
|
+
readonly session?: string;
|
|
298
|
+
readonly operator?: string;
|
|
299
|
+
readonly reason?: string;
|
|
300
|
+
}
|