@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
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { edgeClass } from '@astrale-os/kernel-dsl/v1';
|
|
2
|
+
import { Domain } from '../domain/index.js';
|
|
3
|
+
import { Edge } from '../meta/index.js';
|
|
4
|
+
import { View } from './view.js';
|
|
5
|
+
export const Entrypoint = edgeClass.directed({
|
|
6
|
+
abstract: false,
|
|
7
|
+
source: { as: 'view', accepts: [View], outgoing: '0..1' },
|
|
8
|
+
target: { as: 'domain', accepts: [Domain], incoming: '0..1' },
|
|
9
|
+
description: 'The one View a Domain opens by default; a Domain declares at most one.',
|
|
10
|
+
extends: [Edge],
|
|
11
|
+
constraints: { noSelf: true },
|
|
12
|
+
});
|
|
@@ -0,0 +1,569 @@
|
|
|
1
|
+
import { type builder } from '@astrale-os/kernel-dsl/v1';
|
|
2
|
+
export declare const Execution: builder.NodeClass<{
|
|
3
|
+
readonly depth: 1;
|
|
4
|
+
readonly abstract: false;
|
|
5
|
+
readonly extends: readonly [builder.ClassReferenceProjection<"node", {
|
|
6
|
+
readonly abstract: true;
|
|
7
|
+
readonly depth: 0;
|
|
8
|
+
readonly properties: never;
|
|
9
|
+
readonly methods: Readonly<Record<never, never>>;
|
|
10
|
+
}, never, never, never>, builder.ClassReferenceProjection<"node", {
|
|
11
|
+
readonly abstract: true;
|
|
12
|
+
readonly depth: 1;
|
|
13
|
+
readonly properties: {
|
|
14
|
+
readonly createdAt: builder.AuthoredPropertyProjection<never, import("@astrale-os/kernel-dsl/value").Value, true, "createdAt", "self", undefined>;
|
|
15
|
+
readonly updatedAt: builder.AuthoredPropertyProjection<never, import("@astrale-os/kernel-dsl/value").Value, true, "updatedAt", "self", undefined>;
|
|
16
|
+
};
|
|
17
|
+
readonly methods: Readonly<Record<never, never>>;
|
|
18
|
+
}, builder.AuthoredPropertyProjection<never, import("@astrale-os/kernel-dsl/value").Value, true, "createdAt", builder.ClassOwnerProjection<"node", {
|
|
19
|
+
readonly abstract: true;
|
|
20
|
+
readonly depth: 1;
|
|
21
|
+
readonly properties: {
|
|
22
|
+
readonly createdAt: builder.AuthoredPropertyProjection<never, import("@astrale-os/kernel-dsl/value").Value, true, "createdAt", "self", undefined>;
|
|
23
|
+
readonly updatedAt: builder.AuthoredPropertyProjection<never, import("@astrale-os/kernel-dsl/value").Value, true, "updatedAt", "self", undefined>;
|
|
24
|
+
};
|
|
25
|
+
readonly methods: Readonly<Record<never, never>>;
|
|
26
|
+
}, builder.AuthoredPropertyProjection<never, import("@astrale-os/kernel-dsl/value").Value, true, "createdAt", unknown, undefined> | builder.AuthoredPropertyProjection<never, import("@astrale-os/kernel-dsl/value").Value, true, "updatedAt", unknown, undefined>, never, never>, undefined> | builder.AuthoredPropertyProjection<never, import("@astrale-os/kernel-dsl/value").Value, true, "updatedAt", builder.ClassOwnerProjection<"node", {
|
|
27
|
+
readonly abstract: true;
|
|
28
|
+
readonly depth: 1;
|
|
29
|
+
readonly properties: {
|
|
30
|
+
readonly createdAt: builder.AuthoredPropertyProjection<never, import("@astrale-os/kernel-dsl/value").Value, true, "createdAt", "self", undefined>;
|
|
31
|
+
readonly updatedAt: builder.AuthoredPropertyProjection<never, import("@astrale-os/kernel-dsl/value").Value, true, "updatedAt", "self", undefined>;
|
|
32
|
+
};
|
|
33
|
+
readonly methods: Readonly<Record<never, never>>;
|
|
34
|
+
}, builder.AuthoredPropertyProjection<never, import("@astrale-os/kernel-dsl/value").Value, true, "createdAt", unknown, undefined> | builder.AuthoredPropertyProjection<never, import("@astrale-os/kernel-dsl/value").Value, true, "updatedAt", unknown, undefined>, never, never>, undefined>, never, never>];
|
|
35
|
+
readonly properties: {
|
|
36
|
+
readonly function: builder.AuthoredPropertyProjection<import("@astrale-os/kernel-dsl/value").Value, import("@astrale-os/kernel-dsl/value").Value, true, "function", "self", undefined>;
|
|
37
|
+
readonly version: builder.AuthoredPropertyProjection<import("@astrale-os/kernel-dsl/value").Value, import("@astrale-os/kernel-dsl/value").Value, true, "version", "self", undefined>;
|
|
38
|
+
readonly domain: builder.AuthoredPropertyProjection<import("@astrale-os/kernel-dsl/value").Value, import("@astrale-os/kernel-dsl/value").Value, true, "domain", "self", undefined>;
|
|
39
|
+
readonly principal: builder.AuthoredPropertyProjection<import("@astrale-os/kernel-dsl/value").Value, import("@astrale-os/kernel-dsl/value").Value, true, "principal", "self", undefined>;
|
|
40
|
+
readonly receiver: builder.AuthoredPropertyProjection<import("@astrale-os/kernel-dsl/value").Value, import("@astrale-os/kernel-dsl/value").Value, false, "receiver", "self", never>;
|
|
41
|
+
readonly key: builder.AuthoredPropertyProjection<import("@astrale-os/kernel-dsl/value").Value, import("@astrale-os/kernel-dsl/value").Value, true, "key", "self", undefined>;
|
|
42
|
+
readonly input: builder.AuthoredPropertyProjection<import("@astrale-os/kernel-dsl/value").Value, import("@astrale-os/kernel-dsl/value").Value, true, "input", "self", undefined>;
|
|
43
|
+
};
|
|
44
|
+
readonly methods: Readonly<{
|
|
45
|
+
status: builder.Method<builder.CallableProjection<Record<string, never>, {
|
|
46
|
+
readonly mode: 'value';
|
|
47
|
+
readonly value: {
|
|
48
|
+
id: string;
|
|
49
|
+
function: string;
|
|
50
|
+
version: string;
|
|
51
|
+
state: "cancelled" | "completed" | "expired" | "failed" | "paused" | "pending" | "running" | "waiting";
|
|
52
|
+
createdAt: string;
|
|
53
|
+
detail?: {
|
|
54
|
+
phase: "activating" | "attempting" | "awaiting" | "cancelled" | "classifying" | "completed" | "draining" | "rejected" | "validating";
|
|
55
|
+
class?: "immediate" | "noop" | "revalidate" | undefined;
|
|
56
|
+
mode?: "maintenance" | "online" | undefined;
|
|
57
|
+
validation?: {
|
|
58
|
+
scope: "full" | "incremental";
|
|
59
|
+
counts: "exact" | "sample";
|
|
60
|
+
} | undefined;
|
|
61
|
+
progress?: {
|
|
62
|
+
pages: number;
|
|
63
|
+
interruptions: number;
|
|
64
|
+
} | undefined;
|
|
65
|
+
instance?: "attempt" | "draining" | "open" | "repair" | undefined;
|
|
66
|
+
command?: number | undefined;
|
|
67
|
+
expires?: number | undefined;
|
|
68
|
+
attempt?: {
|
|
69
|
+
number: number;
|
|
70
|
+
destination: "previous" | "target";
|
|
71
|
+
} | undefined;
|
|
72
|
+
report?: {
|
|
73
|
+
attempt: number;
|
|
74
|
+
destination: "previous" | "target";
|
|
75
|
+
result: "aborted" | "interrupted" | "migration-required";
|
|
76
|
+
reason?: string | undefined;
|
|
77
|
+
summary?: unknown;
|
|
78
|
+
} | undefined;
|
|
79
|
+
uncertified?: {
|
|
80
|
+
since: number;
|
|
81
|
+
session?: string | undefined;
|
|
82
|
+
operator?: string | undefined;
|
|
83
|
+
reason?: string | undefined;
|
|
84
|
+
} | undefined;
|
|
85
|
+
} | undefined;
|
|
86
|
+
outcome?: {
|
|
87
|
+
kind: "completed";
|
|
88
|
+
value: unknown;
|
|
89
|
+
} | {
|
|
90
|
+
kind: "failed";
|
|
91
|
+
error: {
|
|
92
|
+
code: string;
|
|
93
|
+
message: string;
|
|
94
|
+
family?: string | undefined;
|
|
95
|
+
details?: unknown;
|
|
96
|
+
};
|
|
97
|
+
} | {
|
|
98
|
+
kind: "cancelled";
|
|
99
|
+
} | undefined;
|
|
100
|
+
} | {
|
|
101
|
+
id: string;
|
|
102
|
+
state: "deleted";
|
|
103
|
+
outcome: {
|
|
104
|
+
kind: "completed";
|
|
105
|
+
value: unknown;
|
|
106
|
+
} | {
|
|
107
|
+
kind: "failed";
|
|
108
|
+
error: {
|
|
109
|
+
code: string;
|
|
110
|
+
message: string;
|
|
111
|
+
family?: string | undefined;
|
|
112
|
+
details?: unknown;
|
|
113
|
+
};
|
|
114
|
+
} | {
|
|
115
|
+
kind: "cancelled";
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
}, "authenticated", false, false, undefined>>;
|
|
119
|
+
result: builder.Method<builder.CallableProjection<{
|
|
120
|
+
waitMs?: number | undefined;
|
|
121
|
+
}, {
|
|
122
|
+
readonly mode: 'value';
|
|
123
|
+
readonly value: {
|
|
124
|
+
kind: "completed";
|
|
125
|
+
value: unknown;
|
|
126
|
+
} | {
|
|
127
|
+
kind: "failed";
|
|
128
|
+
error: {
|
|
129
|
+
code: string;
|
|
130
|
+
message: string;
|
|
131
|
+
family?: string | undefined;
|
|
132
|
+
details?: unknown;
|
|
133
|
+
};
|
|
134
|
+
} | {
|
|
135
|
+
kind: "cancelled";
|
|
136
|
+
};
|
|
137
|
+
}, "authenticated", false, false, undefined>>;
|
|
138
|
+
cancel: builder.Method<builder.CallableProjection<{
|
|
139
|
+
force?: boolean | undefined;
|
|
140
|
+
}, {
|
|
141
|
+
readonly mode: 'value';
|
|
142
|
+
readonly value: {
|
|
143
|
+
id: string;
|
|
144
|
+
function: string;
|
|
145
|
+
version: string;
|
|
146
|
+
state: "cancelled" | "completed" | "expired" | "failed" | "paused" | "pending" | "running" | "waiting";
|
|
147
|
+
createdAt: string;
|
|
148
|
+
detail?: {
|
|
149
|
+
phase: "activating" | "attempting" | "awaiting" | "cancelled" | "classifying" | "completed" | "draining" | "rejected" | "validating";
|
|
150
|
+
class?: "immediate" | "noop" | "revalidate" | undefined;
|
|
151
|
+
mode?: "maintenance" | "online" | undefined;
|
|
152
|
+
validation?: {
|
|
153
|
+
scope: "full" | "incremental";
|
|
154
|
+
counts: "exact" | "sample";
|
|
155
|
+
} | undefined;
|
|
156
|
+
progress?: {
|
|
157
|
+
pages: number;
|
|
158
|
+
interruptions: number;
|
|
159
|
+
} | undefined;
|
|
160
|
+
instance?: "attempt" | "draining" | "open" | "repair" | undefined;
|
|
161
|
+
command?: number | undefined;
|
|
162
|
+
expires?: number | undefined;
|
|
163
|
+
attempt?: {
|
|
164
|
+
number: number;
|
|
165
|
+
destination: "previous" | "target";
|
|
166
|
+
} | undefined;
|
|
167
|
+
report?: {
|
|
168
|
+
attempt: number;
|
|
169
|
+
destination: "previous" | "target";
|
|
170
|
+
result: "aborted" | "interrupted" | "migration-required";
|
|
171
|
+
reason?: string | undefined;
|
|
172
|
+
summary?: unknown;
|
|
173
|
+
} | undefined;
|
|
174
|
+
uncertified?: {
|
|
175
|
+
since: number;
|
|
176
|
+
session?: string | undefined;
|
|
177
|
+
operator?: string | undefined;
|
|
178
|
+
reason?: string | undefined;
|
|
179
|
+
} | undefined;
|
|
180
|
+
} | undefined;
|
|
181
|
+
outcome?: {
|
|
182
|
+
kind: "completed";
|
|
183
|
+
value: unknown;
|
|
184
|
+
} | {
|
|
185
|
+
kind: "failed";
|
|
186
|
+
error: {
|
|
187
|
+
code: string;
|
|
188
|
+
message: string;
|
|
189
|
+
family?: string | undefined;
|
|
190
|
+
details?: unknown;
|
|
191
|
+
};
|
|
192
|
+
} | {
|
|
193
|
+
kind: "cancelled";
|
|
194
|
+
} | undefined;
|
|
195
|
+
} | {
|
|
196
|
+
id: string;
|
|
197
|
+
state: "deleted";
|
|
198
|
+
outcome: {
|
|
199
|
+
kind: "completed";
|
|
200
|
+
value: unknown;
|
|
201
|
+
} | {
|
|
202
|
+
kind: "failed";
|
|
203
|
+
error: {
|
|
204
|
+
code: string;
|
|
205
|
+
message: string;
|
|
206
|
+
family?: string | undefined;
|
|
207
|
+
details?: unknown;
|
|
208
|
+
};
|
|
209
|
+
} | {
|
|
210
|
+
kind: "cancelled";
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
}, "authenticated", false, false, undefined>>;
|
|
214
|
+
signal: builder.Method<builder.CallableProjection<{
|
|
215
|
+
name: string;
|
|
216
|
+
value: unknown;
|
|
217
|
+
}, {
|
|
218
|
+
readonly mode: 'value';
|
|
219
|
+
readonly value: Record<string, never>;
|
|
220
|
+
}, "authenticated", false, false, undefined>>;
|
|
221
|
+
resume: builder.Method<builder.CallableProjection<Record<string, never>, {
|
|
222
|
+
readonly mode: 'value';
|
|
223
|
+
readonly value: {
|
|
224
|
+
id: string;
|
|
225
|
+
function: string;
|
|
226
|
+
version: string;
|
|
227
|
+
state: "cancelled" | "completed" | "expired" | "failed" | "paused" | "pending" | "running" | "waiting";
|
|
228
|
+
createdAt: string;
|
|
229
|
+
detail?: {
|
|
230
|
+
phase: "activating" | "attempting" | "awaiting" | "cancelled" | "classifying" | "completed" | "draining" | "rejected" | "validating";
|
|
231
|
+
class?: "immediate" | "noop" | "revalidate" | undefined;
|
|
232
|
+
mode?: "maintenance" | "online" | undefined;
|
|
233
|
+
validation?: {
|
|
234
|
+
scope: "full" | "incremental";
|
|
235
|
+
counts: "exact" | "sample";
|
|
236
|
+
} | undefined;
|
|
237
|
+
progress?: {
|
|
238
|
+
pages: number;
|
|
239
|
+
interruptions: number;
|
|
240
|
+
} | undefined;
|
|
241
|
+
instance?: "attempt" | "draining" | "open" | "repair" | undefined;
|
|
242
|
+
command?: number | undefined;
|
|
243
|
+
expires?: number | undefined;
|
|
244
|
+
attempt?: {
|
|
245
|
+
number: number;
|
|
246
|
+
destination: "previous" | "target";
|
|
247
|
+
} | undefined;
|
|
248
|
+
report?: {
|
|
249
|
+
attempt: number;
|
|
250
|
+
destination: "previous" | "target";
|
|
251
|
+
result: "aborted" | "interrupted" | "migration-required";
|
|
252
|
+
reason?: string | undefined;
|
|
253
|
+
summary?: unknown;
|
|
254
|
+
} | undefined;
|
|
255
|
+
uncertified?: {
|
|
256
|
+
since: number;
|
|
257
|
+
session?: string | undefined;
|
|
258
|
+
operator?: string | undefined;
|
|
259
|
+
reason?: string | undefined;
|
|
260
|
+
} | undefined;
|
|
261
|
+
} | undefined;
|
|
262
|
+
outcome?: {
|
|
263
|
+
kind: "completed";
|
|
264
|
+
value: unknown;
|
|
265
|
+
} | {
|
|
266
|
+
kind: "failed";
|
|
267
|
+
error: {
|
|
268
|
+
code: string;
|
|
269
|
+
message: string;
|
|
270
|
+
family?: string | undefined;
|
|
271
|
+
details?: unknown;
|
|
272
|
+
};
|
|
273
|
+
} | {
|
|
274
|
+
kind: "cancelled";
|
|
275
|
+
} | undefined;
|
|
276
|
+
} | {
|
|
277
|
+
id: string;
|
|
278
|
+
state: "deleted";
|
|
279
|
+
outcome: {
|
|
280
|
+
kind: "completed";
|
|
281
|
+
value: unknown;
|
|
282
|
+
} | {
|
|
283
|
+
kind: "failed";
|
|
284
|
+
error: {
|
|
285
|
+
code: string;
|
|
286
|
+
message: string;
|
|
287
|
+
family?: string | undefined;
|
|
288
|
+
details?: unknown;
|
|
289
|
+
};
|
|
290
|
+
} | {
|
|
291
|
+
kind: "cancelled";
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
}, "authenticated", false, false, undefined>>;
|
|
295
|
+
delete: builder.Method<builder.CallableProjection<Record<string, never>, {
|
|
296
|
+
readonly mode: 'value';
|
|
297
|
+
readonly value: Record<string, never>;
|
|
298
|
+
}, "authenticated", false, false, undefined>>;
|
|
299
|
+
}>;
|
|
300
|
+
readonly effectiveProperties: builder.AuthoredPropertyProjection<never, import("@astrale-os/kernel-dsl/value").Value, true, "createdAt", builder.ClassOwnerProjection<"node", {
|
|
301
|
+
readonly abstract: true;
|
|
302
|
+
readonly depth: 1;
|
|
303
|
+
readonly properties: {
|
|
304
|
+
readonly createdAt: builder.AuthoredPropertyProjection<never, import("@astrale-os/kernel-dsl/value").Value, true, "createdAt", "self", undefined>;
|
|
305
|
+
readonly updatedAt: builder.AuthoredPropertyProjection<never, import("@astrale-os/kernel-dsl/value").Value, true, "updatedAt", "self", undefined>;
|
|
306
|
+
};
|
|
307
|
+
readonly methods: Readonly<Record<never, never>>;
|
|
308
|
+
}, builder.AuthoredPropertyProjection<never, import("@astrale-os/kernel-dsl/value").Value, true, "createdAt", unknown, undefined> | builder.AuthoredPropertyProjection<never, import("@astrale-os/kernel-dsl/value").Value, true, "updatedAt", unknown, undefined>, never, never>, undefined> | builder.AuthoredPropertyProjection<never, import("@astrale-os/kernel-dsl/value").Value, true, "updatedAt", builder.ClassOwnerProjection<"node", {
|
|
309
|
+
readonly abstract: true;
|
|
310
|
+
readonly depth: 1;
|
|
311
|
+
readonly properties: {
|
|
312
|
+
readonly createdAt: builder.AuthoredPropertyProjection<never, import("@astrale-os/kernel-dsl/value").Value, true, "createdAt", "self", undefined>;
|
|
313
|
+
readonly updatedAt: builder.AuthoredPropertyProjection<never, import("@astrale-os/kernel-dsl/value").Value, true, "updatedAt", "self", undefined>;
|
|
314
|
+
};
|
|
315
|
+
readonly methods: Readonly<Record<never, never>>;
|
|
316
|
+
}, builder.AuthoredPropertyProjection<never, import("@astrale-os/kernel-dsl/value").Value, true, "createdAt", unknown, undefined> | builder.AuthoredPropertyProjection<never, import("@astrale-os/kernel-dsl/value").Value, true, "updatedAt", unknown, undefined>, never, never>, undefined> | (builder.AuthoredPropertyProjection<import("@astrale-os/kernel-dsl/value").Value, import("@astrale-os/kernel-dsl/value").Value, true, "domain", "self", undefined> | builder.AuthoredPropertyProjection<import("@astrale-os/kernel-dsl/value").Value, import("@astrale-os/kernel-dsl/value").Value, true, "function", "self", undefined> | builder.AuthoredPropertyProjection<import("@astrale-os/kernel-dsl/value").Value, import("@astrale-os/kernel-dsl/value").Value, true, "input", "self", undefined> | builder.AuthoredPropertyProjection<import("@astrale-os/kernel-dsl/value").Value, import("@astrale-os/kernel-dsl/value").Value, true, "key", "self", undefined> | builder.AuthoredPropertyProjection<import("@astrale-os/kernel-dsl/value").Value, import("@astrale-os/kernel-dsl/value").Value, true, "principal", "self", undefined> | builder.AuthoredPropertyProjection<import("@astrale-os/kernel-dsl/value").Value, import("@astrale-os/kernel-dsl/value").Value, false, "receiver", "self", never> | builder.AuthoredPropertyProjection<import("@astrale-os/kernel-dsl/value").Value, import("@astrale-os/kernel-dsl/value").Value, true, "version", "self", undefined>);
|
|
317
|
+
readonly abstractInstanceMethods: never;
|
|
318
|
+
readonly abstractStaticMethods: never;
|
|
319
|
+
readonly effectiveInstanceMethods: builder.AuthoredMethodProjection<builder.Method<builder.CallableProjection<Record<string, never>, {
|
|
320
|
+
readonly mode: 'value';
|
|
321
|
+
readonly value: Record<string, never>;
|
|
322
|
+
}, "authenticated", false, false, undefined>>, "delete", "self"> | builder.AuthoredMethodProjection<builder.Method<builder.CallableProjection<Record<string, never>, {
|
|
323
|
+
readonly mode: 'value';
|
|
324
|
+
readonly value: {
|
|
325
|
+
id: string;
|
|
326
|
+
function: string;
|
|
327
|
+
version: string;
|
|
328
|
+
state: "cancelled" | "completed" | "expired" | "failed" | "paused" | "pending" | "running" | "waiting";
|
|
329
|
+
createdAt: string;
|
|
330
|
+
detail?: {
|
|
331
|
+
phase: "activating" | "attempting" | "awaiting" | "cancelled" | "classifying" | "completed" | "draining" | "rejected" | "validating";
|
|
332
|
+
class?: "immediate" | "noop" | "revalidate" | undefined;
|
|
333
|
+
mode?: "maintenance" | "online" | undefined;
|
|
334
|
+
validation?: {
|
|
335
|
+
scope: "full" | "incremental";
|
|
336
|
+
counts: "exact" | "sample";
|
|
337
|
+
} | undefined;
|
|
338
|
+
progress?: {
|
|
339
|
+
pages: number;
|
|
340
|
+
interruptions: number;
|
|
341
|
+
} | undefined;
|
|
342
|
+
instance?: "attempt" | "draining" | "open" | "repair" | undefined;
|
|
343
|
+
command?: number | undefined;
|
|
344
|
+
expires?: number | undefined;
|
|
345
|
+
attempt?: {
|
|
346
|
+
number: number;
|
|
347
|
+
destination: "previous" | "target";
|
|
348
|
+
} | undefined;
|
|
349
|
+
report?: {
|
|
350
|
+
attempt: number;
|
|
351
|
+
destination: "previous" | "target";
|
|
352
|
+
result: "aborted" | "interrupted" | "migration-required";
|
|
353
|
+
reason?: string | undefined;
|
|
354
|
+
summary?: unknown;
|
|
355
|
+
} | undefined;
|
|
356
|
+
uncertified?: {
|
|
357
|
+
since: number;
|
|
358
|
+
session?: string | undefined;
|
|
359
|
+
operator?: string | undefined;
|
|
360
|
+
reason?: string | undefined;
|
|
361
|
+
} | undefined;
|
|
362
|
+
} | undefined;
|
|
363
|
+
outcome?: {
|
|
364
|
+
kind: "completed";
|
|
365
|
+
value: unknown;
|
|
366
|
+
} | {
|
|
367
|
+
kind: "failed";
|
|
368
|
+
error: {
|
|
369
|
+
code: string;
|
|
370
|
+
message: string;
|
|
371
|
+
family?: string | undefined;
|
|
372
|
+
details?: unknown;
|
|
373
|
+
};
|
|
374
|
+
} | {
|
|
375
|
+
kind: "cancelled";
|
|
376
|
+
} | undefined;
|
|
377
|
+
} | {
|
|
378
|
+
id: string;
|
|
379
|
+
state: "deleted";
|
|
380
|
+
outcome: {
|
|
381
|
+
kind: "completed";
|
|
382
|
+
value: unknown;
|
|
383
|
+
} | {
|
|
384
|
+
kind: "failed";
|
|
385
|
+
error: {
|
|
386
|
+
code: string;
|
|
387
|
+
message: string;
|
|
388
|
+
family?: string | undefined;
|
|
389
|
+
details?: unknown;
|
|
390
|
+
};
|
|
391
|
+
} | {
|
|
392
|
+
kind: "cancelled";
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
}, "authenticated", false, false, undefined>>, "resume", "self"> | builder.AuthoredMethodProjection<builder.Method<builder.CallableProjection<Record<string, never>, {
|
|
396
|
+
readonly mode: 'value';
|
|
397
|
+
readonly value: {
|
|
398
|
+
id: string;
|
|
399
|
+
function: string;
|
|
400
|
+
version: string;
|
|
401
|
+
state: "cancelled" | "completed" | "expired" | "failed" | "paused" | "pending" | "running" | "waiting";
|
|
402
|
+
createdAt: string;
|
|
403
|
+
detail?: {
|
|
404
|
+
phase: "activating" | "attempting" | "awaiting" | "cancelled" | "classifying" | "completed" | "draining" | "rejected" | "validating";
|
|
405
|
+
class?: "immediate" | "noop" | "revalidate" | undefined;
|
|
406
|
+
mode?: "maintenance" | "online" | undefined;
|
|
407
|
+
validation?: {
|
|
408
|
+
scope: "full" | "incremental";
|
|
409
|
+
counts: "exact" | "sample";
|
|
410
|
+
} | undefined;
|
|
411
|
+
progress?: {
|
|
412
|
+
pages: number;
|
|
413
|
+
interruptions: number;
|
|
414
|
+
} | undefined;
|
|
415
|
+
instance?: "attempt" | "draining" | "open" | "repair" | undefined;
|
|
416
|
+
command?: number | undefined;
|
|
417
|
+
expires?: number | undefined;
|
|
418
|
+
attempt?: {
|
|
419
|
+
number: number;
|
|
420
|
+
destination: "previous" | "target";
|
|
421
|
+
} | undefined;
|
|
422
|
+
report?: {
|
|
423
|
+
attempt: number;
|
|
424
|
+
destination: "previous" | "target";
|
|
425
|
+
result: "aborted" | "interrupted" | "migration-required";
|
|
426
|
+
reason?: string | undefined;
|
|
427
|
+
summary?: unknown;
|
|
428
|
+
} | undefined;
|
|
429
|
+
uncertified?: {
|
|
430
|
+
since: number;
|
|
431
|
+
session?: string | undefined;
|
|
432
|
+
operator?: string | undefined;
|
|
433
|
+
reason?: string | undefined;
|
|
434
|
+
} | undefined;
|
|
435
|
+
} | undefined;
|
|
436
|
+
outcome?: {
|
|
437
|
+
kind: "completed";
|
|
438
|
+
value: unknown;
|
|
439
|
+
} | {
|
|
440
|
+
kind: "failed";
|
|
441
|
+
error: {
|
|
442
|
+
code: string;
|
|
443
|
+
message: string;
|
|
444
|
+
family?: string | undefined;
|
|
445
|
+
details?: unknown;
|
|
446
|
+
};
|
|
447
|
+
} | {
|
|
448
|
+
kind: "cancelled";
|
|
449
|
+
} | undefined;
|
|
450
|
+
} | {
|
|
451
|
+
id: string;
|
|
452
|
+
state: "deleted";
|
|
453
|
+
outcome: {
|
|
454
|
+
kind: "completed";
|
|
455
|
+
value: unknown;
|
|
456
|
+
} | {
|
|
457
|
+
kind: "failed";
|
|
458
|
+
error: {
|
|
459
|
+
code: string;
|
|
460
|
+
message: string;
|
|
461
|
+
family?: string | undefined;
|
|
462
|
+
details?: unknown;
|
|
463
|
+
};
|
|
464
|
+
} | {
|
|
465
|
+
kind: "cancelled";
|
|
466
|
+
};
|
|
467
|
+
};
|
|
468
|
+
}, "authenticated", false, false, undefined>>, "status", "self"> | builder.AuthoredMethodProjection<builder.Method<builder.CallableProjection<{
|
|
469
|
+
waitMs?: number | undefined;
|
|
470
|
+
}, {
|
|
471
|
+
readonly mode: 'value';
|
|
472
|
+
readonly value: {
|
|
473
|
+
kind: "completed";
|
|
474
|
+
value: unknown;
|
|
475
|
+
} | {
|
|
476
|
+
kind: "failed";
|
|
477
|
+
error: {
|
|
478
|
+
code: string;
|
|
479
|
+
message: string;
|
|
480
|
+
family?: string | undefined;
|
|
481
|
+
details?: unknown;
|
|
482
|
+
};
|
|
483
|
+
} | {
|
|
484
|
+
kind: "cancelled";
|
|
485
|
+
};
|
|
486
|
+
}, "authenticated", false, false, undefined>>, "result", "self"> | builder.AuthoredMethodProjection<builder.Method<builder.CallableProjection<{
|
|
487
|
+
force?: boolean | undefined;
|
|
488
|
+
}, {
|
|
489
|
+
readonly mode: 'value';
|
|
490
|
+
readonly value: {
|
|
491
|
+
id: string;
|
|
492
|
+
function: string;
|
|
493
|
+
version: string;
|
|
494
|
+
state: "cancelled" | "completed" | "expired" | "failed" | "paused" | "pending" | "running" | "waiting";
|
|
495
|
+
createdAt: string;
|
|
496
|
+
detail?: {
|
|
497
|
+
phase: "activating" | "attempting" | "awaiting" | "cancelled" | "classifying" | "completed" | "draining" | "rejected" | "validating";
|
|
498
|
+
class?: "immediate" | "noop" | "revalidate" | undefined;
|
|
499
|
+
mode?: "maintenance" | "online" | undefined;
|
|
500
|
+
validation?: {
|
|
501
|
+
scope: "full" | "incremental";
|
|
502
|
+
counts: "exact" | "sample";
|
|
503
|
+
} | undefined;
|
|
504
|
+
progress?: {
|
|
505
|
+
pages: number;
|
|
506
|
+
interruptions: number;
|
|
507
|
+
} | undefined;
|
|
508
|
+
instance?: "attempt" | "draining" | "open" | "repair" | undefined;
|
|
509
|
+
command?: number | undefined;
|
|
510
|
+
expires?: number | undefined;
|
|
511
|
+
attempt?: {
|
|
512
|
+
number: number;
|
|
513
|
+
destination: "previous" | "target";
|
|
514
|
+
} | undefined;
|
|
515
|
+
report?: {
|
|
516
|
+
attempt: number;
|
|
517
|
+
destination: "previous" | "target";
|
|
518
|
+
result: "aborted" | "interrupted" | "migration-required";
|
|
519
|
+
reason?: string | undefined;
|
|
520
|
+
summary?: unknown;
|
|
521
|
+
} | undefined;
|
|
522
|
+
uncertified?: {
|
|
523
|
+
since: number;
|
|
524
|
+
session?: string | undefined;
|
|
525
|
+
operator?: string | undefined;
|
|
526
|
+
reason?: string | undefined;
|
|
527
|
+
} | undefined;
|
|
528
|
+
} | undefined;
|
|
529
|
+
outcome?: {
|
|
530
|
+
kind: "completed";
|
|
531
|
+
value: unknown;
|
|
532
|
+
} | {
|
|
533
|
+
kind: "failed";
|
|
534
|
+
error: {
|
|
535
|
+
code: string;
|
|
536
|
+
message: string;
|
|
537
|
+
family?: string | undefined;
|
|
538
|
+
details?: unknown;
|
|
539
|
+
};
|
|
540
|
+
} | {
|
|
541
|
+
kind: "cancelled";
|
|
542
|
+
} | undefined;
|
|
543
|
+
} | {
|
|
544
|
+
id: string;
|
|
545
|
+
state: "deleted";
|
|
546
|
+
outcome: {
|
|
547
|
+
kind: "completed";
|
|
548
|
+
value: unknown;
|
|
549
|
+
} | {
|
|
550
|
+
kind: "failed";
|
|
551
|
+
error: {
|
|
552
|
+
code: string;
|
|
553
|
+
message: string;
|
|
554
|
+
family?: string | undefined;
|
|
555
|
+
details?: unknown;
|
|
556
|
+
};
|
|
557
|
+
} | {
|
|
558
|
+
kind: "cancelled";
|
|
559
|
+
};
|
|
560
|
+
};
|
|
561
|
+
}, "authenticated", false, false, undefined>>, "cancel", "self"> | builder.AuthoredMethodProjection<builder.Method<builder.CallableProjection<{
|
|
562
|
+
name: string;
|
|
563
|
+
value: unknown;
|
|
564
|
+
}, {
|
|
565
|
+
readonly mode: 'value';
|
|
566
|
+
readonly value: Record<string, never>;
|
|
567
|
+
}, "authenticated", false, false, undefined>>, "signal", "self">;
|
|
568
|
+
readonly effectiveStaticMethods: never;
|
|
569
|
+
}>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { nodeClass, property } from '@astrale-os/kernel-dsl/v1';
|
|
2
|
+
import { ExecutionMethods } from '../kernel/syscalls/declarations/index.js';
|
|
3
|
+
import { Node, Timestamped } from '../meta/index.js';
|
|
4
|
+
const nodeId = {
|
|
5
|
+
type: 'string',
|
|
6
|
+
minLength: 1,
|
|
7
|
+
maxLength: 255,
|
|
8
|
+
fullMatch: '[A-Za-z0-9._-]+',
|
|
9
|
+
};
|
|
10
|
+
// Immutable facts written once by the durable call path through trusted qualification. Generic
|
|
11
|
+
// mutation cannot create an Execution, change its Properties or rewrite its created_by Edge; its
|
|
12
|
+
// authority Domain deletes it by ordinary mutation. `function` is a scalar, not an Edge, so deleting
|
|
13
|
+
// the Function never has to detach its Executions. State and outcome are read through the engine.
|
|
14
|
+
// Runtime admits every Execution method against these facts; a public read sees none of them, since
|
|
15
|
+
// `input` carries the arguments of the call. The constant rule joins nothing, where a relational
|
|
16
|
+
// read Policy would join every polymorphic Query reaching Node or Timestamped.
|
|
17
|
+
export const Execution = nodeClass({
|
|
18
|
+
abstract: false,
|
|
19
|
+
description: 'One accepted durable call of a Function, recorded as immutable facts.',
|
|
20
|
+
extends: [Node, Timestamped],
|
|
21
|
+
policies: { read: false, traverse: false },
|
|
22
|
+
properties: {
|
|
23
|
+
function: nodeId,
|
|
24
|
+
version: { type: 'string', fullMatch: 'sha256:[0-9a-f]{64}' },
|
|
25
|
+
domain: nodeId,
|
|
26
|
+
principal: nodeId,
|
|
27
|
+
receiver: property(nodeId, { required: false }),
|
|
28
|
+
key: { type: 'string', minLength: 1, maxLength: 128 },
|
|
29
|
+
input: {},
|
|
30
|
+
},
|
|
31
|
+
methods: ExecutionMethods,
|
|
32
|
+
});
|