@astrale-os/kernel-core 0.9.0-beta.9 → 1.0.0-beta.2
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 +39 -0
- package/dist/auth/authority/semantics/composition.js +112 -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 +11 -0
- package/dist/auth/authority/semantics/index.js +5 -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/snapshot.d.ts +40 -0
- package/dist/auth/authority/semantics/terms.d.ts +20 -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 +2 -2
- 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 +269 -0
- package/dist/schema/callables/execution.js +32 -0
- package/dist/schema/callables/function.d.ts +3400 -55
- package/dist/schema/callables/function.js +4 -3
- 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 +8737 -5086
- 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 +60 -0
- package/dist/schema/kernel/syscalls/contracts/execution.js +46 -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 +149 -217
- package/dist/schema/kernel/syscalls/contracts/install.js +22 -26
- package/dist/schema/kernel/syscalls/contracts/installation.d.ts +65 -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 +232 -222
- package/dist/schema/kernel/syscalls/contracts/query.js +10 -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 +54 -148
- package/dist/schema/kernel/syscalls/contracts/uninstall.js +6 -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 +105 -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 +870 -1323
- package/dist/schema/kernel/syscalls/declarations/index.js +18 -2
- package/dist/schema/kernel/syscalls/declarations/install.d.ts +29 -172
- package/dist/schema/kernel/syscalls/declarations/install.js +7 -5
- 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 +235 -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 +49 -153
- package/dist/schema/kernel/syscalls/declarations/uninstall.js +4 -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 +153 -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,11 @@
|
|
|
1
|
+
import { K } from '../../index.js';
|
|
2
|
+
import * as references from '../references/execution.js';
|
|
3
|
+
import { methodSyscall } from './model.js';
|
|
4
|
+
// Instance Methods: the handler receives the Execution receiver as `self`.
|
|
5
|
+
export const status = methodSyscall(references.status, K.classes.Execution.methods.status);
|
|
6
|
+
export const result = methodSyscall(references.result, K.classes.Execution.methods.result);
|
|
7
|
+
export const cancel = methodSyscall(references.cancel, K.classes.Execution.methods.cancel);
|
|
8
|
+
export const signal = methodSyscall(references.signal, K.classes.Execution.methods.signal);
|
|
9
|
+
export const resume = methodSyscall(references.resume, K.classes.Execution.methods.resume);
|
|
10
|
+
const remove = methodSyscall(references.delete, K.classes.Execution.methods.delete);
|
|
11
|
+
export { remove as delete };
|
|
@@ -2,7 +2,11 @@ import type { ClassRef } from '@astrale-os/kernel-dsl/v1';
|
|
|
2
2
|
import { type MethodSyscall } from './model.js';
|
|
3
3
|
declare const Admit: import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
|
|
4
4
|
call: {
|
|
5
|
-
target: string
|
|
5
|
+
target: string | {
|
|
6
|
+
callable: string;
|
|
7
|
+
instance?: string | undefined;
|
|
8
|
+
fingerprint?: string | undefined;
|
|
9
|
+
};
|
|
6
10
|
input: unknown;
|
|
7
11
|
};
|
|
8
12
|
credential?: string | undefined;
|
|
@@ -12,8 +16,10 @@ declare const Admit: import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
|
|
|
12
16
|
callable: string;
|
|
13
17
|
receiver?: string | undefined;
|
|
14
18
|
};
|
|
15
|
-
}, true,
|
|
19
|
+
}, true, false, "authenticated", import("@astrale-os/kernel-dsl/v1").CallablePolicy, "kernel.astrale.ai:class.Function.method.admit"> & {
|
|
16
20
|
readonly name: "admit";
|
|
21
|
+
readonly executable: true;
|
|
22
|
+
readonly execution: undefined;
|
|
17
23
|
};
|
|
18
24
|
export declare const admit: MethodSyscall<ClassRef<'Function'> & {
|
|
19
25
|
readonly origin: 'kernel.astrale.ai';
|
|
@@ -2,8 +2,10 @@ import { K } from '../../index.js';
|
|
|
2
2
|
import { type FunctionSyscall } from './model.js';
|
|
3
3
|
export declare const query: FunctionSyscall<'kernel.astrale.ai', 'query', typeof K.functions.query>;
|
|
4
4
|
export declare const mutate: FunctionSyscall<'kernel.astrale.ai', 'mutate', typeof K.functions.mutate>;
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const register: FunctionSyscall<'kernel.astrale.ai', 'register', typeof K.functions.register>;
|
|
6
6
|
export declare const install: FunctionSyscall<'kernel.astrale.ai', 'install', typeof K.functions.install>;
|
|
7
7
|
export declare const introspect: FunctionSyscall<'kernel.astrale.ai', 'introspect', typeof K.functions.introspect>;
|
|
8
8
|
export declare const uninstall: FunctionSyscall<'kernel.astrale.ai', 'uninstall', typeof K.functions.uninstall>;
|
|
9
9
|
export declare const journal: FunctionSyscall<'kernel.astrale.ai', 'journal', typeof K.functions.journal>;
|
|
10
|
+
export declare const upload: FunctionSyscall<'kernel.astrale.ai', 'upload', typeof K.functions.upload>;
|
|
11
|
+
export declare const download: FunctionSyscall<'kernel.astrale.ai', 'download', typeof K.functions.download>;
|
|
@@ -3,8 +3,10 @@ import * as references from '../references/functions.js';
|
|
|
3
3
|
import { functionSyscall } from './model.js';
|
|
4
4
|
export const query = functionSyscall(references.query, K.functions.query);
|
|
5
5
|
export const mutate = functionSyscall(references.mutate, K.functions.mutate);
|
|
6
|
-
export const
|
|
6
|
+
export const register = functionSyscall(references.register, K.functions.register);
|
|
7
7
|
export const install = functionSyscall(references.install, K.functions.install);
|
|
8
8
|
export const introspect = functionSyscall(references.introspect, K.functions.introspect);
|
|
9
9
|
export const uninstall = functionSyscall(references.uninstall, K.functions.uninstall);
|
|
10
10
|
export const journal = functionSyscall(references.journal, K.functions.journal);
|
|
11
|
+
export const upload = functionSyscall(references.upload, K.functions.upload);
|
|
12
|
+
export const download = functionSyscall(references.download, K.functions.download);
|
|
@@ -3,14 +3,16 @@ export declare const delegate: import("./model.js").MethodSyscall<Readonly<{
|
|
|
3
3
|
kind: 'class';
|
|
4
4
|
name: 'Identity';
|
|
5
5
|
}>, "delegate", import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
|
|
6
|
+
principal: string;
|
|
6
7
|
audience: string;
|
|
7
8
|
ttlSeconds: number;
|
|
8
|
-
attenuation: unknown;
|
|
9
9
|
}, {
|
|
10
10
|
readonly mode: 'value';
|
|
11
11
|
readonly value: string;
|
|
12
|
-
}, false, "
|
|
12
|
+
}, true, false, "authenticated", import("@astrale-os/kernel-dsl/v1").CallablePolicy, "kernel.astrale.ai:class.Identity.method.delegate"> & {
|
|
13
13
|
readonly name: "delegate";
|
|
14
|
+
readonly executable: true;
|
|
15
|
+
readonly execution: undefined;
|
|
14
16
|
}>;
|
|
15
17
|
export declare const can: import("./model.js").MethodSyscall<Readonly<{
|
|
16
18
|
origin: 'kernel.astrale.ai';
|
|
@@ -19,13 +21,24 @@ export declare const can: import("./model.js").MethodSyscall<Readonly<{
|
|
|
19
21
|
}>, "can", import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
|
|
20
22
|
policy: string;
|
|
21
23
|
object: string;
|
|
24
|
+
} | {
|
|
25
|
+
checks: {
|
|
26
|
+
policy: string;
|
|
27
|
+
object: string;
|
|
28
|
+
}[];
|
|
22
29
|
}, {
|
|
23
30
|
readonly mode: 'value';
|
|
24
31
|
readonly value: {
|
|
25
32
|
allowed: boolean;
|
|
33
|
+
} | {
|
|
34
|
+
decisions: {
|
|
35
|
+
allowed: boolean;
|
|
36
|
+
}[];
|
|
26
37
|
};
|
|
27
|
-
}, true,
|
|
38
|
+
}, true, false, "authenticated", import("@astrale-os/kernel-dsl/v1").CallablePolicy, "kernel.astrale.ai:class.Identity.method.can"> & {
|
|
28
39
|
readonly name: "can";
|
|
40
|
+
readonly executable: true;
|
|
41
|
+
readonly execution: undefined;
|
|
29
42
|
}>;
|
|
30
43
|
export declare const whoami: import("./model.js").MethodSyscall<Readonly<{
|
|
31
44
|
origin: 'kernel.astrale.ai';
|
|
@@ -35,8 +48,8 @@ export declare const whoami: import("./model.js").MethodSyscall<Readonly<{
|
|
|
35
48
|
readonly mode: 'value';
|
|
36
49
|
readonly value: {
|
|
37
50
|
id: string;
|
|
38
|
-
|
|
39
|
-
|
|
51
|
+
iss: string;
|
|
52
|
+
sub: string;
|
|
40
53
|
frozen: boolean;
|
|
41
54
|
requiredClaims: ({
|
|
42
55
|
claim: string;
|
|
@@ -51,22 +64,24 @@ export declare const whoami: import("./model.js").MethodSyscall<Readonly<{
|
|
|
51
64
|
op: "exists";
|
|
52
65
|
})[];
|
|
53
66
|
};
|
|
54
|
-
}, true,
|
|
67
|
+
}, true, false, "authenticated", import("@astrale-os/kernel-dsl/v1").CallablePolicy, "kernel.astrale.ai:class.Identity.method.whoami"> & {
|
|
55
68
|
readonly name: "whoami";
|
|
69
|
+
readonly executable: true;
|
|
70
|
+
readonly execution: undefined;
|
|
56
71
|
}>;
|
|
57
72
|
export declare const whois: import("./model.js").MethodSyscall<Readonly<{
|
|
58
73
|
origin: 'kernel.astrale.ai';
|
|
59
74
|
kind: 'class';
|
|
60
75
|
name: 'Identity';
|
|
61
76
|
}>, "whois", import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
|
|
62
|
-
|
|
63
|
-
|
|
77
|
+
iss: string;
|
|
78
|
+
sub: string;
|
|
64
79
|
}, {
|
|
65
80
|
readonly mode: 'value';
|
|
66
81
|
readonly value: {
|
|
67
82
|
id: string;
|
|
68
|
-
|
|
69
|
-
|
|
83
|
+
iss: string;
|
|
84
|
+
sub: string;
|
|
70
85
|
frozen: boolean;
|
|
71
86
|
requiredClaims: ({
|
|
72
87
|
claim: string;
|
|
@@ -81,8 +96,26 @@ export declare const whois: import("./model.js").MethodSyscall<Readonly<{
|
|
|
81
96
|
op: "exists";
|
|
82
97
|
})[];
|
|
83
98
|
} | null;
|
|
84
|
-
}, true,
|
|
99
|
+
}, true, false, "authorized", import("@astrale-os/kernel-dsl/v1").CallablePolicy, "kernel.astrale.ai:class.Identity.method.whois"> & {
|
|
85
100
|
readonly name: "whois";
|
|
101
|
+
readonly executable: true;
|
|
102
|
+
readonly execution: undefined;
|
|
103
|
+
}>;
|
|
104
|
+
export declare const impersonate: import("./model.js").MethodSyscall<Readonly<{
|
|
105
|
+
origin: 'kernel.astrale.ai';
|
|
106
|
+
kind: 'class';
|
|
107
|
+
name: 'Identity';
|
|
108
|
+
}>, "impersonate", import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
|
|
109
|
+
audience?: string | undefined;
|
|
110
|
+
ttlSeconds: number;
|
|
111
|
+
identity: string;
|
|
112
|
+
}, {
|
|
113
|
+
readonly mode: 'value';
|
|
114
|
+
readonly value: string;
|
|
115
|
+
}, true, false, "authorized", import("@astrale-os/kernel-dsl/v1").CallablePolicy, "kernel.astrale.ai:class.Identity.method.impersonate"> & {
|
|
116
|
+
readonly name: "impersonate";
|
|
117
|
+
readonly executable: true;
|
|
118
|
+
readonly execution: undefined;
|
|
86
119
|
}>;
|
|
87
120
|
export declare const mint: import("./model.js").MethodSyscall<Readonly<{
|
|
88
121
|
origin: 'kernel.astrale.ai';
|
|
@@ -91,10 +124,11 @@ export declare const mint: import("./model.js").MethodSyscall<Readonly<{
|
|
|
91
124
|
}>, "mint", import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
|
|
92
125
|
audience?: string | undefined;
|
|
93
126
|
ttlSeconds: number;
|
|
94
|
-
grant?: unknown;
|
|
95
127
|
}, {
|
|
96
128
|
readonly mode: 'value';
|
|
97
129
|
readonly value: string;
|
|
98
|
-
}, true,
|
|
130
|
+
}, true, false, "authenticated", import("@astrale-os/kernel-dsl/v1").CallablePolicy, "kernel.astrale.ai:class.Identity.method.mint"> & {
|
|
99
131
|
readonly name: "mint";
|
|
132
|
+
readonly executable: true;
|
|
133
|
+
readonly execution: undefined;
|
|
100
134
|
}>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { K } from '../../index.js';
|
|
2
2
|
import * as references from '../references/identity.js';
|
|
3
3
|
import { methodSyscall } from './model.js';
|
|
4
|
-
export const delegate = methodSyscall(references.delegate, K.classes.Identity.methods.delegate);
|
|
4
|
+
export const delegate = methodSyscall(references.delegate, K.classes.Identity.static.methods.delegate);
|
|
5
5
|
export const can = methodSyscall(references.can, K.classes.Identity.static.methods.can);
|
|
6
6
|
export const whoami = methodSyscall(references.whoami, K.classes.Identity.static.methods.whoami);
|
|
7
7
|
export const whois = methodSyscall(references.whois, K.classes.Identity.static.methods.whois);
|
|
8
|
+
export const impersonate = methodSyscall(references.impersonate, K.classes.Identity.static.methods.impersonate);
|
|
8
9
|
export const mint = methodSyscall(references.mint, K.classes.Identity.static.methods.mint);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type { FunctionSyscall, MethodSyscall, Syscall, SyscallRef } from './model.js';
|
|
2
|
-
export { install, introspect, journal, mutate,
|
|
2
|
+
export { download, install, introspect, journal, mutate, register, query, uninstall, upload, } from './functions.js';
|
|
3
|
+
export * as execution from './execution.js';
|
|
3
4
|
export * as identity from './identity.js';
|
|
4
5
|
export * as function from './function.js';
|
|
5
6
|
export * as view from './view.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { install, introspect, journal, mutate,
|
|
1
|
+
export { download, install, introspect, journal, mutate, register, query, uninstall, upload, } from './functions.js';
|
|
2
|
+
export * as execution from './execution.js';
|
|
2
3
|
export * as identity from './identity.js';
|
|
3
4
|
export * as function from './function.js';
|
|
4
5
|
export * as view from './view.js';
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import type { Revision, ViewDefinition } from '@astrale-os/kernel-dsl/v1';
|
|
2
2
|
import type { Key as KeyType } from '@astrale-os/kernel-dsl/v1/addressing';
|
|
3
3
|
import type { IssuerId } from '../../../../../auth/index.js';
|
|
4
|
+
import { type ViewHostRequirements } from '../../contracts/view-host-requirements.js';
|
|
5
|
+
export { acceptViewHostRequirements, type ViewHostRequirements, } from '../../contracts/view-host-requirements.js';
|
|
4
6
|
export interface ResolvedView {
|
|
5
7
|
readonly key: KeyType.View;
|
|
6
8
|
readonly declaration: ViewDeclaration;
|
|
7
9
|
readonly href: string;
|
|
8
10
|
readonly handshake: 'shell' | 'none';
|
|
11
|
+
readonly host?: ViewHostRequirements;
|
|
9
12
|
readonly issuer: IssuerId;
|
|
10
|
-
|
|
13
|
+
/** Digest of the exact DomainRelease that owns this View. */
|
|
14
|
+
readonly release: `sha256:${string}`;
|
|
11
15
|
readonly revision: Revision;
|
|
12
16
|
}
|
|
13
17
|
type ViewDeclaration = Omit<ViewDefinition, 'ref'>;
|
|
@@ -17,4 +21,3 @@ export interface ViewResolution {
|
|
|
17
21
|
}
|
|
18
22
|
/** Admit one detached, deeply immutable result of the Kernel View.resolve syscall. */
|
|
19
23
|
export declare function acceptViewResolution(input: unknown): ViewResolution;
|
|
20
|
-
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { Key
|
|
1
|
+
import { Key } from '@astrale-os/kernel-dsl/v1/addressing';
|
|
2
2
|
import * as portable from '@astrale-os/kernel-dsl/value';
|
|
3
3
|
import { issuer } from '../../../../../auth/index.js';
|
|
4
4
|
import { viewResolveOutput } from '../../contracts/index.js';
|
|
5
|
+
import { acceptViewHostRequirements, } from '../../contracts/view-host-requirements.js';
|
|
6
|
+
export { acceptViewHostRequirements, } from '../../contracts/view-host-requirements.js';
|
|
5
7
|
/** Admit one detached, deeply immutable result of the Kernel View.resolve syscall. */
|
|
6
8
|
export function acceptViewResolution(input) {
|
|
7
9
|
const candidate = portable.accept(input);
|
|
@@ -23,13 +25,15 @@ export function acceptViewResolution(input) {
|
|
|
23
25
|
if (!issuer.is(view.issuer))
|
|
24
26
|
invalid(`Resolved View ${index} issuer is not canonical.`);
|
|
25
27
|
const declaration = acceptDeclaration(view.declaration, index);
|
|
28
|
+
const host = acceptViewHostRequirements(view.host, view.handshake);
|
|
26
29
|
return Object.freeze({
|
|
27
30
|
key,
|
|
28
31
|
declaration,
|
|
29
32
|
href: view.href,
|
|
30
33
|
handshake: view.handshake,
|
|
34
|
+
...(host === undefined ? {} : { host }),
|
|
31
35
|
issuer: view.issuer,
|
|
32
|
-
|
|
36
|
+
release: digest(view.release, `Resolved View ${index} release`),
|
|
33
37
|
revision: digest(view.revision, `Resolved View ${index} revision`),
|
|
34
38
|
});
|
|
35
39
|
});
|
|
@@ -43,51 +47,17 @@ export function acceptViewResolution(input) {
|
|
|
43
47
|
views: Object.freeze(views),
|
|
44
48
|
});
|
|
45
49
|
}
|
|
46
|
-
function acceptDeclaration(input,
|
|
47
|
-
if (input.target.kind === 'domain') {
|
|
48
|
-
return Object.freeze({
|
|
49
|
-
...(input.description === undefined ? {} : { description: input.description }),
|
|
50
|
-
target: Object.freeze({ kind: 'domain' }),
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
const definitions = input.target.definitions.map((definition, definitionIndex) => {
|
|
54
|
-
if (!patterns.origin.test(definition.origin) ||
|
|
55
|
-
definition.kind !== 'class' ||
|
|
56
|
-
!patterns.memberName.test(definition.name)) {
|
|
57
|
-
invalid(`Resolved View ${viewIndex} target definition ${definitionIndex} is invalid.`);
|
|
58
|
-
}
|
|
59
|
-
return Object.freeze({
|
|
60
|
-
origin: definition.origin,
|
|
61
|
-
kind: definition.kind,
|
|
62
|
-
name: definition.name,
|
|
63
|
-
});
|
|
64
|
-
});
|
|
65
|
-
for (let index = 1; index < definitions.length; index++) {
|
|
66
|
-
if (compareDefinitionRefs(definitions[index - 1], definitions[index]) >= 0) {
|
|
67
|
-
invalid(`Resolved View ${viewIndex} target definitions are not in strict canonical order.`);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
50
|
+
function acceptDeclaration(input, _viewIndex) {
|
|
70
51
|
return Object.freeze({
|
|
71
52
|
...(input.description === undefined ? {} : { description: input.description }),
|
|
72
|
-
target: Object.freeze({
|
|
73
|
-
kind: 'definition',
|
|
74
|
-
definitions: Object.freeze(definitions),
|
|
75
|
-
}),
|
|
53
|
+
target: Object.freeze({ kind: 'domain' }),
|
|
76
54
|
});
|
|
77
55
|
}
|
|
78
|
-
function compareDefinitionRefs(left, right) {
|
|
79
|
-
return (compare(left.origin, right.origin) ||
|
|
80
|
-
compare(left.kind, right.kind) ||
|
|
81
|
-
compare(left.name, right.name));
|
|
82
|
-
}
|
|
83
56
|
function digest(input, label) {
|
|
84
57
|
if (!/^sha256:[0-9a-f]{64}$/u.test(input))
|
|
85
58
|
invalid(`${label} is invalid.`);
|
|
86
59
|
return input;
|
|
87
60
|
}
|
|
88
|
-
function compare(left, right) {
|
|
89
|
-
return left < right ? -1 : left > right ? 1 : 0;
|
|
90
|
-
}
|
|
91
61
|
function invalid(message) {
|
|
92
62
|
throw new TypeError(message);
|
|
93
63
|
}
|
|
@@ -15,24 +15,26 @@ export declare const resolve: import("./model.js").MethodSyscall<Readonly<{
|
|
|
15
15
|
description?: string | undefined;
|
|
16
16
|
target: {
|
|
17
17
|
kind: "domain";
|
|
18
|
-
} | {
|
|
19
|
-
kind: "definition";
|
|
20
|
-
definitions: {
|
|
21
|
-
origin: string;
|
|
22
|
-
kind: "class";
|
|
23
|
-
name: string;
|
|
24
|
-
}[];
|
|
25
18
|
};
|
|
26
19
|
};
|
|
27
20
|
href: string;
|
|
28
21
|
handshake: "none" | "shell";
|
|
22
|
+
host?: {
|
|
23
|
+
navigation: {
|
|
24
|
+
external: {
|
|
25
|
+
origins: string[];
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
} | undefined;
|
|
29
29
|
issuer: string;
|
|
30
|
-
|
|
30
|
+
release: string;
|
|
31
31
|
revision: string;
|
|
32
32
|
}[];
|
|
33
33
|
};
|
|
34
|
-
}, true,
|
|
34
|
+
}, true, false, "authorized", import("@astrale-os/kernel-dsl/v1").CallablePolicy, "kernel.astrale.ai:class.View.method.resolve"> & {
|
|
35
35
|
readonly name: "resolve";
|
|
36
|
+
readonly executable: true;
|
|
37
|
+
readonly execution: undefined;
|
|
36
38
|
}>;
|
|
37
39
|
export type { ResolvedView, ViewResolution as Resolution };
|
|
38
40
|
export declare const acceptResolution: typeof acceptViewResolution;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type { FunctionSyscall, MethodSyscall, Syscall, SyscallRef } from './descriptors/index.js';
|
|
2
2
|
export * as references from './references/index.js';
|
|
3
|
-
export { install, introspect, journal, mutate,
|
|
4
|
-
export { function, identity, view } from './descriptors/index.js';
|
|
3
|
+
export { download, install, introspect, journal, mutate, register, query, uninstall, upload, } from './descriptors/index.js';
|
|
4
|
+
export { execution, function, identity, view } from './descriptors/index.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export * as references from './references/index.js';
|
|
2
|
-
export { install, introspect, journal, mutate,
|
|
3
|
-
export { function, identity, view } from './descriptors/index.js';
|
|
2
|
+
export { download, install, introspect, journal, mutate, register, query, uninstall, upload, } from './descriptors/index.js';
|
|
3
|
+
export { execution, function, identity, view } from './descriptors/index.js';
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export declare const status: Readonly<{
|
|
2
|
+
kind: 'method';
|
|
3
|
+
owner: Readonly<{
|
|
4
|
+
origin: 'kernel.astrale.ai';
|
|
5
|
+
kind: 'class';
|
|
6
|
+
name: 'Execution';
|
|
7
|
+
}>;
|
|
8
|
+
name: "status";
|
|
9
|
+
}>;
|
|
10
|
+
export declare const result: Readonly<{
|
|
11
|
+
kind: 'method';
|
|
12
|
+
owner: Readonly<{
|
|
13
|
+
origin: 'kernel.astrale.ai';
|
|
14
|
+
kind: 'class';
|
|
15
|
+
name: 'Execution';
|
|
16
|
+
}>;
|
|
17
|
+
name: "result";
|
|
18
|
+
}>;
|
|
19
|
+
export declare const cancel: Readonly<{
|
|
20
|
+
kind: 'method';
|
|
21
|
+
owner: Readonly<{
|
|
22
|
+
origin: 'kernel.astrale.ai';
|
|
23
|
+
kind: 'class';
|
|
24
|
+
name: 'Execution';
|
|
25
|
+
}>;
|
|
26
|
+
name: "cancel";
|
|
27
|
+
}>;
|
|
28
|
+
export declare const signal: Readonly<{
|
|
29
|
+
kind: 'method';
|
|
30
|
+
owner: Readonly<{
|
|
31
|
+
origin: 'kernel.astrale.ai';
|
|
32
|
+
kind: 'class';
|
|
33
|
+
name: 'Execution';
|
|
34
|
+
}>;
|
|
35
|
+
name: "signal";
|
|
36
|
+
}>;
|
|
37
|
+
export declare const resume: Readonly<{
|
|
38
|
+
kind: 'method';
|
|
39
|
+
owner: Readonly<{
|
|
40
|
+
origin: 'kernel.astrale.ai';
|
|
41
|
+
kind: 'class';
|
|
42
|
+
name: 'Execution';
|
|
43
|
+
}>;
|
|
44
|
+
name: "resume";
|
|
45
|
+
}>;
|
|
46
|
+
declare const remove: Readonly<{
|
|
47
|
+
kind: 'method';
|
|
48
|
+
owner: Readonly<{
|
|
49
|
+
origin: 'kernel.astrale.ai';
|
|
50
|
+
kind: 'class';
|
|
51
|
+
name: 'Execution';
|
|
52
|
+
}>;
|
|
53
|
+
name: "delete";
|
|
54
|
+
}>;
|
|
55
|
+
export { remove as delete };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const owner = Object.freeze({
|
|
2
|
+
origin: 'kernel.astrale.ai',
|
|
3
|
+
kind: 'class',
|
|
4
|
+
name: 'Execution',
|
|
5
|
+
});
|
|
6
|
+
const methodRef = (name) => Object.freeze({ kind: 'method', owner, name });
|
|
7
|
+
export const status = methodRef('status');
|
|
8
|
+
export const result = methodRef('result');
|
|
9
|
+
export const cancel = methodRef('cancel');
|
|
10
|
+
export const signal = methodRef('signal');
|
|
11
|
+
export const resume = methodRef('resume');
|
|
12
|
+
const remove = methodRef('delete');
|
|
13
|
+
export { remove as delete };
|
|
@@ -8,10 +8,10 @@ export declare const mutate: Readonly<{
|
|
|
8
8
|
kind: 'function';
|
|
9
9
|
name: "mutate";
|
|
10
10
|
}>;
|
|
11
|
-
export declare const
|
|
11
|
+
export declare const register: Readonly<{
|
|
12
12
|
origin: 'kernel.astrale.ai';
|
|
13
13
|
kind: 'function';
|
|
14
|
-
name: "
|
|
14
|
+
name: "register";
|
|
15
15
|
}>;
|
|
16
16
|
export declare const install: Readonly<{
|
|
17
17
|
origin: 'kernel.astrale.ai';
|
|
@@ -33,3 +33,13 @@ export declare const journal: Readonly<{
|
|
|
33
33
|
kind: 'function';
|
|
34
34
|
name: "journal";
|
|
35
35
|
}>;
|
|
36
|
+
export declare const upload: Readonly<{
|
|
37
|
+
origin: 'kernel.astrale.ai';
|
|
38
|
+
kind: 'function';
|
|
39
|
+
name: "upload";
|
|
40
|
+
}>;
|
|
41
|
+
export declare const download: Readonly<{
|
|
42
|
+
origin: 'kernel.astrale.ai';
|
|
43
|
+
kind: 'function';
|
|
44
|
+
name: "download";
|
|
45
|
+
}>;
|
|
@@ -5,8 +5,10 @@ const functionRef = (name) => Object.freeze({
|
|
|
5
5
|
});
|
|
6
6
|
export const query = functionRef('query');
|
|
7
7
|
export const mutate = functionRef('mutate');
|
|
8
|
-
export const
|
|
8
|
+
export const register = functionRef('register');
|
|
9
9
|
export const install = functionRef('install');
|
|
10
10
|
export const introspect = functionRef('introspect');
|
|
11
11
|
export const uninstall = functionRef('uninstall');
|
|
12
12
|
export const journal = functionRef('journal');
|
|
13
|
+
export const upload = functionRef('upload');
|
|
14
|
+
export const download = functionRef('download');
|
|
@@ -43,3 +43,12 @@ export declare const mint: Readonly<{
|
|
|
43
43
|
}>;
|
|
44
44
|
name: "mint";
|
|
45
45
|
}>;
|
|
46
|
+
export declare const impersonate: Readonly<{
|
|
47
|
+
kind: 'method';
|
|
48
|
+
owner: Readonly<{
|
|
49
|
+
origin: 'kernel.astrale.ai';
|
|
50
|
+
kind: 'class';
|
|
51
|
+
name: 'Identity';
|
|
52
|
+
}>;
|
|
53
|
+
name: "impersonate";
|
|
54
|
+
}>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type { FunctionRef, SyscallRef } from './reference.js';
|
|
2
|
-
export { install, introspect, journal, mutate,
|
|
2
|
+
export { download, install, introspect, journal, mutate, register, query, uninstall, upload, } from './functions.js';
|
|
3
|
+
export * as execution from './execution.js';
|
|
3
4
|
export * as identity from './identity.js';
|
|
4
5
|
export * as function from './function.js';
|
|
5
6
|
export * as view from './view.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { install, introspect, journal, mutate,
|
|
1
|
+
export { download, install, introspect, journal, mutate, register, query, uninstall, upload, } from './functions.js';
|
|
2
|
+
export * as execution from './execution.js';
|
|
2
3
|
export * as identity from './identity.js';
|
|
3
4
|
export * as function from './function.js';
|
|
4
5
|
export * as view from './view.js';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type builder } from '@astrale-os/kernel-dsl/v1';
|
|
2
|
+
export declare const CreatedBy: builder.DirectedEdgeClass<{
|
|
3
|
+
readonly depth: 1;
|
|
4
|
+
readonly abstract: false;
|
|
5
|
+
readonly extends: readonly [builder.ClassReferenceProjection<"edge", {
|
|
6
|
+
readonly abstract: true;
|
|
7
|
+
readonly depth: 0;
|
|
8
|
+
readonly properties: never;
|
|
9
|
+
readonly source: {
|
|
10
|
+
readonly as: "source";
|
|
11
|
+
readonly outgoing: "0..*";
|
|
12
|
+
};
|
|
13
|
+
readonly target: {
|
|
14
|
+
readonly as: "target";
|
|
15
|
+
readonly incoming: "0..*";
|
|
16
|
+
};
|
|
17
|
+
readonly constraints: Record<never, never>;
|
|
18
|
+
}, never, never, never>];
|
|
19
|
+
readonly properties: never;
|
|
20
|
+
readonly source: {
|
|
21
|
+
readonly as: "resource";
|
|
22
|
+
readonly outgoing: "0..1";
|
|
23
|
+
};
|
|
24
|
+
readonly target: {
|
|
25
|
+
readonly as: "creator";
|
|
26
|
+
readonly incoming: "0..*";
|
|
27
|
+
};
|
|
28
|
+
readonly constraints: {
|
|
29
|
+
readonly noSelf: true;
|
|
30
|
+
};
|
|
31
|
+
readonly effectiveProperties: never;
|
|
32
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { edgeClass } from '@astrale-os/kernel-dsl/v1';
|
|
2
|
+
import { Edge } from './edge.js';
|
|
3
|
+
import { Node } from './node.js';
|
|
4
|
+
// Identity composes meta, so meta names it by reference instead of importing it.
|
|
5
|
+
const IdentityRef = {
|
|
6
|
+
origin: 'kernel.astrale.ai',
|
|
7
|
+
kind: 'class',
|
|
8
|
+
name: 'Identity',
|
|
9
|
+
};
|
|
10
|
+
export const CreatedBy = edgeClass.directed({
|
|
11
|
+
abstract: false,
|
|
12
|
+
source: { as: 'resource', accepts: [Node], outgoing: '0..1' },
|
|
13
|
+
target: { as: 'creator', accepts: [IdentityRef], incoming: '0..*' },
|
|
14
|
+
description: 'Kernel-authored attribution of a Node to the Identity whose call created it; it grants no authority by itself.',
|
|
15
|
+
extends: [Edge],
|
|
16
|
+
constraints: { noSelf: true },
|
|
17
|
+
});
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { type builder } from '@astrale-os/kernel-dsl/v1';
|
|
2
2
|
export declare const Descriptable: builder.NodeClass<{
|
|
3
|
+
readonly depth: 1;
|
|
3
4
|
readonly abstract: true;
|
|
4
|
-
readonly extends: readonly [builder.
|
|
5
|
+
readonly extends: readonly [builder.ClassReferenceProjection<"node", {
|
|
5
6
|
readonly abstract: true;
|
|
6
|
-
readonly
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
readonly depth: 0;
|
|
8
|
+
readonly properties: never;
|
|
9
|
+
readonly methods: Readonly<Record<never, never>>;
|
|
10
|
+
}, never, never, never>];
|
|
9
11
|
readonly properties: {
|
|
10
|
-
description: builder.
|
|
11
|
-
readonly type: 'string';
|
|
12
|
-
readonly minLength: 1;
|
|
13
|
-
readonly maxLength: 1000;
|
|
14
|
-
}>, {
|
|
15
|
-
readonly required: false;
|
|
16
|
-
}>;
|
|
12
|
+
readonly description: builder.AuthoredPropertyProjection<import("@astrale-os/kernel-dsl/value").Value, import("@astrale-os/kernel-dsl/value").Value, false, "description", "self", never>;
|
|
17
13
|
};
|
|
14
|
+
readonly methods: Readonly<Record<never, never>>;
|
|
15
|
+
readonly effectiveProperties: builder.AuthoredPropertyProjection<import("@astrale-os/kernel-dsl/value").Value, import("@astrale-os/kernel-dsl/value").Value, false, "description", "self", never>;
|
|
16
|
+
readonly abstractInstanceMethods: never;
|
|
17
|
+
readonly abstractStaticMethods: never;
|
|
18
|
+
readonly effectiveInstanceMethods: never;
|
|
19
|
+
readonly effectiveStaticMethods: never;
|
|
18
20
|
}>;
|
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
import { type builder } from '@astrale-os/kernel-dsl/v1';
|
|
2
2
|
export declare const Edge: builder.DirectedEdgeClass<{
|
|
3
|
+
readonly depth: 0;
|
|
3
4
|
readonly abstract: true;
|
|
5
|
+
readonly extends: readonly [];
|
|
6
|
+
readonly properties: never;
|
|
4
7
|
readonly source: {
|
|
5
8
|
readonly as: "source";
|
|
6
|
-
readonly accepts: readonly [builder.NodeClass<{
|
|
7
|
-
readonly abstract: true;
|
|
8
|
-
readonly description: "The abstract universal kernel Node Class extended by every Kernel Node Class.";
|
|
9
|
-
}>];
|
|
10
9
|
readonly outgoing: "0..*";
|
|
11
10
|
};
|
|
12
11
|
readonly target: {
|
|
13
12
|
readonly as: "target";
|
|
14
|
-
readonly accepts: readonly [builder.NodeClass<{
|
|
15
|
-
readonly abstract: true;
|
|
16
|
-
readonly description: "The abstract universal kernel Node Class extended by every Kernel Node Class.";
|
|
17
|
-
}>];
|
|
18
13
|
readonly incoming: "0..*";
|
|
19
14
|
};
|
|
20
|
-
readonly
|
|
15
|
+
readonly constraints: Record<never, never>;
|
|
16
|
+
readonly effectiveProperties: never;
|
|
21
17
|
}>;
|