@astrale-os/kernel-core 0.9.0-beta.9 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/authority/accept.js +4 -0
- package/dist/auth/authority/admission/admission.d.ts +4 -1
- package/dist/auth/authority/admission/admission.js +46 -147
- package/dist/auth/authority/admission/index.d.ts +1 -1
- package/dist/auth/authority/admission/index.js +1 -1
- package/dist/auth/authority/admission/references.d.ts +13 -0
- package/dist/auth/authority/admission/references.js +38 -0
- package/dist/auth/authority/admission/term.d.ts +6 -0
- package/dist/auth/authority/admission/term.js +60 -0
- package/dist/auth/authority/admission/wire.d.ts +8 -0
- package/dist/auth/authority/admission/wire.js +33 -0
- package/dist/auth/authority/canonical.d.ts +2 -0
- package/dist/auth/authority/canonical.js +15 -0
- package/dist/auth/authority/index.d.ts +9 -2
- package/dist/auth/authority/index.js +6 -1
- package/dist/auth/authority/language/index.d.ts +3 -1
- package/dist/auth/authority/language/index.js +1 -0
- package/dist/auth/authority/language/predicate.d.ts +31 -16
- package/dist/auth/authority/language/predicate.js +1 -1
- package/dist/auth/authority/language/program.d.ts +21 -0
- package/dist/auth/authority/language/program.js +2 -0
- package/dist/auth/authority/normalization/index.d.ts +1 -1
- package/dist/auth/authority/normalization/index.js +1 -1
- package/dist/auth/authority/normalization/normalize.d.ts +2 -0
- package/dist/auth/authority/normalization/normalize.js +38 -16
- package/dist/auth/authority/ownership.optimization.d.ts +8 -0
- package/dist/auth/authority/ownership.optimization.js +83 -0
- package/dist/auth/authority/prepare-binder-body.d.ts +4 -0
- package/dist/auth/authority/prepare-binder-body.js +31 -0
- package/dist/auth/authority/program.d.ts +28 -0
- package/dist/auth/authority/program.js +191 -0
- package/dist/auth/authority/semantics/class-authority.d.ts +8 -0
- package/dist/auth/authority/semantics/class-authority.js +26 -0
- package/dist/auth/authority/semantics/composition.d.ts +46 -0
- package/dist/auth/authority/semantics/composition.js +150 -0
- package/dist/auth/authority/semantics/failure.d.ts +21 -0
- package/dist/auth/authority/semantics/failure.js +10 -0
- package/dist/auth/authority/semantics/index.d.ts +13 -0
- package/dist/auth/authority/semantics/index.js +6 -0
- package/dist/auth/authority/semantics/interpret.d.ts +41 -0
- package/dist/auth/authority/semantics/interpret.js +388 -0
- package/dist/auth/authority/semantics/residual.d.ts +32 -0
- package/dist/auth/authority/semantics/residual.js +166 -0
- package/dist/auth/authority/semantics/snapshot.d.ts +40 -0
- package/dist/auth/authority/semantics/terms.d.ts +22 -0
- package/dist/auth/authority/semantics/terms.js +96 -0
- package/dist/auth/authority/semantics/vocabulary.d.ts +19 -0
- package/dist/auth/context/context.d.ts +4 -3
- package/dist/auth/expression/authoring/builder.d.ts +2 -11
- package/dist/auth/expression/authoring/builder.js +1 -45
- package/dist/auth/expression/authoring/index.d.ts +1 -1
- package/dist/auth/expression/authoring/index.js +1 -1
- package/dist/auth/expression/index.d.ts +1 -2
- package/dist/auth/expression/index.js +1 -2
- package/dist/auth/expression/language/identity-expression.d.ts +2 -22
- package/dist/auth/grant/index.d.ts +1 -1
- package/dist/auth/grant/index.js +1 -1
- package/dist/auth/grant/resolved/admission.d.ts +4 -3
- package/dist/auth/grant/resolved/admission.js +23 -13
- package/dist/auth/grant/resolved/grant.d.ts +1 -1
- package/dist/auth/grant/resolved/index.d.ts +1 -1
- package/dist/auth/grant/resolved/index.js +1 -1
- package/dist/auth/grant/unresolved/admission.d.ts +4 -1
- package/dist/auth/grant/unresolved/admission.js +27 -67
- package/dist/auth/grant/unresolved/limits.d.ts +2 -4
- package/dist/auth/grant/unresolved/limits.js +1 -5
- package/dist/auth/identity/admission.js +11 -3
- package/dist/auth/identity/identity.d.ts +15 -3
- package/dist/auth/identity/index.d.ts +1 -1
- package/dist/auth/index.d.ts +4 -4
- package/dist/auth/index.js +1 -1
- package/dist/auth/jwk/index.d.ts +1 -1
- package/dist/auth/jwk/index.js +1 -1
- package/dist/auth/jwk/thumbprint.d.ts +2 -0
- package/dist/auth/jwk/thumbprint.js +12 -6
- package/dist/auth/register/fingerprint/fingerprint.d.ts +25 -0
- package/dist/auth/register/fingerprint/fingerprint.js +31 -0
- package/dist/auth/register/fingerprint/index.d.ts +2 -0
- package/dist/auth/register/index.d.ts +5 -0
- package/dist/auth/register/request/admission.d.ts +3 -0
- package/dist/auth/register/request/admission.js +103 -0
- package/dist/auth/register/request/index.d.ts +3 -0
- package/dist/auth/register/request/limits.d.ts +6 -0
- package/dist/auth/register/request/limits.js +6 -0
- package/dist/auth/register/request/request.d.ts +19 -0
- package/dist/auth/{provision → register}/request/self-issuer.d.ts +1 -1
- package/dist/auth/{provision → register}/request/self-issuer.js +1 -1
- package/dist/auth/register/result/index.d.ts +1 -0
- package/dist/auth/register/result/result.d.ts +10 -0
- package/dist/auth/register/result/result.js +1 -0
- package/dist/callable/contract/body.d.ts +10 -0
- package/dist/callable/contract/body.js +7 -0
- package/dist/callable/contract/index.d.ts +2 -1
- package/dist/callable/contract/index.js +1 -1
- package/dist/callable/contract/output.d.ts +18 -2
- package/dist/callable/index.d.ts +3 -2
- package/dist/callable/index.js +2 -1
- package/dist/callable/invocation/call.d.ts +16 -2
- package/dist/callable/invocation/call.js +41 -1
- package/dist/callable/invocation/index.d.ts +1 -1
- package/dist/callable/invocation/index.js +1 -1
- package/dist/callable/invocation/result.d.ts +10 -3
- package/dist/dns-label.d.ts +1 -2
- package/dist/dns-label.js +2 -3
- package/dist/graph/graph/graph.d.ts +1 -5
- package/dist/graph/graph/graph.js +3 -27
- package/dist/graph/graph/index.d.ts +2 -4
- package/dist/graph/graph/index.js +2 -3
- package/dist/graph/graph/model/codec.js +4 -4
- package/dist/graph/graph/model/index.d.ts +1 -1
- package/dist/graph/graph/model/index.js +1 -1
- package/dist/graph/graph/model/model.d.ts +7 -7
- package/dist/graph/graph/model/model.js +6 -6
- package/dist/graph/graph/model/wire.d.ts +58 -78
- package/dist/graph/graph/model/wire.js +18 -19
- package/dist/graph/mutate/authoring/builder.d.ts +2 -2
- package/dist/graph/mutate/authoring/builder.js +2 -2
- package/dist/graph/mutate/authoring/create.js +13 -5
- package/dist/graph/mutate/index.d.ts +1 -1
- package/dist/graph/mutate/language/codec.js +3 -3
- package/dist/graph/mutate/language/model.d.ts +4 -4
- package/dist/graph/mutate/language/wire.d.ts +226 -215
- package/dist/graph/mutate/language/wire.js +42 -47
- package/dist/graph/mutate/result/index.d.ts +4 -3
- package/dist/graph/mutate/result/index.js +8 -6
- package/dist/graph/mutate/result/wire.d.ts +4 -4
- package/dist/graph/mutate/result/wire.js +7 -4
- package/dist/graph/node/identity/id.d.ts +0 -4
- package/dist/graph/node/identity/id.js +0 -5
- package/dist/graph/node/identity/order.js +20 -0
- package/dist/graph/path/authoring/path.d.ts +8 -5
- package/dist/graph/path/authoring/path.js +21 -3
- package/dist/graph/path/language/model.d.ts +8 -3
- package/dist/graph/path/language/syntax.js +23 -8
- package/dist/graph/query/authoring/builder.js +37 -5
- package/dist/graph/query/authoring/model.d.ts +20 -1
- package/dist/graph/query/index.d.ts +4 -2
- package/dist/graph/query/index.js +1 -0
- package/dist/graph/query/language/codec.js +18 -3
- package/dist/graph/query/language/fingerprint.js +8 -0
- package/dist/graph/query/language/model.d.ts +22 -4
- package/dist/graph/query/language/wire.d.ts +124 -114
- package/dist/graph/query/language/wire.js +54 -47
- package/dist/graph/query/order/index.d.ts +53 -0
- package/dist/graph/query/order/index.js +79 -0
- package/dist/graph/query/reference/evaluate.d.ts +1 -0
- package/dist/graph/query/reference/evaluate.js +39 -52
- package/dist/graph/query/result/index.js +1 -1
- package/dist/graph/query/result/wire.d.ts +93 -94
- package/dist/graph/query/result/wire.js +20 -20
- package/dist/graph/reconcile/condition/model.d.ts +2 -2
- package/dist/graph/reconcile/condition/references.d.ts +0 -1
- package/dist/graph/reconcile/condition/references.js +4 -4
- package/dist/graph/reconcile/correspondence.d.ts +9 -8
- package/dist/graph/reconcile/evidence.d.ts +2 -2
- package/dist/graph/reconcile/mutation/assess.d.ts +2 -1
- package/dist/graph/reconcile/observation.d.ts +4 -3
- package/dist/graph/reconcile/planning/canonical.d.ts +6 -0
- package/dist/graph/reconcile/planning/canonical.js +28 -0
- package/dist/graph/reconcile/planning/context.d.ts +3 -3
- package/dist/graph/reconcile/planning/model.d.ts +8 -4
- package/dist/graph/reconcile/planning/plan.js +2 -1
- package/dist/schema/authority/authority-relation.js +3 -0
- package/dist/schema/authority/claims.d.ts +24 -25
- package/dist/schema/authority/claims.js +8 -8
- package/dist/schema/authority/governed-by.d.ts +16 -91
- package/dist/schema/authority/governed-by.js +1 -1
- package/dist/schema/authority/operation-node.d.ts +27 -13
- package/dist/schema/authority/operations.d.ts +8 -168
- package/dist/schema/authority/policy.d.ts +27 -15
- package/dist/schema/authority/vocabulary.d.ts +3 -0
- package/dist/schema/authority/vocabulary.js +25 -0
- package/dist/schema/callables/entrypoint.d.ts +32 -0
- package/dist/schema/callables/entrypoint.js +12 -0
- package/dist/schema/callables/execution.d.ts +569 -0
- package/dist/schema/callables/execution.js +32 -0
- package/dist/schema/callables/function.d.ts +3400 -55
- package/dist/schema/callables/function.js +6 -4
- package/dist/schema/callables/index.d.ts +2 -1
- package/dist/schema/callables/index.js +2 -1
- package/dist/schema/callables/method-of.d.ts +18 -143
- package/dist/schema/callables/method-of.js +2 -2
- package/dist/schema/callables/view.d.ts +83 -51
- package/dist/schema/definitions/class.d.ts +45 -33
- package/dist/schema/definitions/extends.d.ts +16 -110
- package/dist/schema/definitions/instance-of.d.ts +17 -69
- package/dist/schema/domain/domain.d.ts +3343 -148
- package/dist/schema/domain/domain.js +6 -3
- package/dist/schema/domain/of-domain.d.ts +18 -192
- package/dist/schema/domain/of-domain.js +1 -1
- package/dist/schema/identity/composition.d.ts +5 -0
- package/dist/schema/identity/composition.js +5 -0
- package/dist/schema/identity/identity.d.ts +225 -122
- package/dist/schema/identity/identity.js +3 -4
- package/dist/schema/index.d.ts +1 -0
- package/dist/schema/index.js +1 -0
- package/dist/schema/installation/operation-id.d.ts +1 -2
- package/dist/schema/installation/operation-id.js +2 -4
- package/dist/schema/introspection/index.d.ts +1 -1
- package/dist/schema/introspection/language.d.ts +12 -28
- package/dist/schema/kernel/projection/callables.js +2 -3
- package/dist/schema/kernel/projection/core.d.ts +7 -0
- package/dist/schema/kernel/projection/core.js +51 -0
- package/dist/schema/kernel/projection/definitions.d.ts +13 -0
- package/dist/schema/kernel/projection/definitions.js +71 -0
- package/dist/schema/kernel/projection/index.d.ts +3 -3
- package/dist/schema/kernel/projection/index.js +2 -2
- package/dist/schema/kernel/projection/methods.d.ts +5 -0
- package/dist/schema/kernel/projection/methods.js +41 -0
- package/dist/schema/kernel/projection/part.d.ts +34 -0
- package/dist/schema/kernel/projection/part.js +42 -0
- package/dist/schema/kernel/projection/paths.d.ts +6 -0
- package/dist/schema/kernel/projection/{keys.js → paths.js} +12 -14
- package/dist/schema/kernel/projection/project.d.ts +4 -2
- package/dist/schema/kernel/projection/project.js +33 -258
- package/dist/schema/kernel/projection/properties.d.ts +11 -0
- package/dist/schema/kernel/projection/properties.js +36 -0
- package/dist/schema/kernel/projection/relations.d.ts +7 -0
- package/dist/schema/kernel/projection/relations.js +61 -0
- package/dist/schema/kernel/projection/types.d.ts +28 -2
- package/dist/schema/kernel/schema.d.ts +9008 -4939
- package/dist/schema/kernel/schema.js +12 -8
- package/dist/schema/kernel/syscalls/contracts/admit.d.ts +15 -12
- package/dist/schema/kernel/syscalls/contracts/admit.js +16 -9
- package/dist/schema/kernel/syscalls/contracts/blob.d.ts +31 -0
- package/dist/schema/kernel/syscalls/contracts/blob.js +24 -0
- package/dist/schema/kernel/syscalls/contracts/can.d.ts +19 -8
- package/dist/schema/kernel/syscalls/contracts/can.js +12 -4
- package/dist/schema/kernel/syscalls/contracts/delegate.d.ts +6 -7
- package/dist/schema/kernel/syscalls/contracts/delegate.js +5 -5
- package/dist/schema/kernel/syscalls/contracts/execution.d.ts +300 -0
- package/dist/schema/kernel/syscalls/contracts/execution.js +116 -0
- package/dist/schema/kernel/syscalls/contracts/expected.d.ts +5 -0
- package/dist/schema/kernel/syscalls/contracts/expected.js +9 -0
- package/dist/schema/kernel/syscalls/contracts/identity.d.ts +18 -19
- package/dist/schema/kernel/syscalls/contracts/identity.js +6 -7
- package/dist/schema/kernel/syscalls/contracts/impersonate.d.ts +6 -0
- package/dist/schema/kernel/syscalls/contracts/impersonate.js +4 -0
- package/dist/schema/kernel/syscalls/contracts/index.d.ts +6 -3
- package/dist/schema/kernel/syscalls/contracts/index.js +6 -3
- package/dist/schema/kernel/syscalls/contracts/install.d.ts +309 -217
- package/dist/schema/kernel/syscalls/contracts/install.js +68 -26
- package/dist/schema/kernel/syscalls/contracts/installation.d.ts +70 -351
- package/dist/schema/kernel/syscalls/contracts/installation.js +29 -67
- package/dist/schema/kernel/syscalls/contracts/introspect.d.ts +11 -15
- package/dist/schema/kernel/syscalls/contracts/introspect.js +8 -15
- package/dist/schema/kernel/syscalls/contracts/journal.d.ts +26 -27
- package/dist/schema/kernel/syscalls/contracts/journal.js +15 -15
- package/dist/schema/kernel/syscalls/contracts/mint.d.ts +5 -7
- package/dist/schema/kernel/syscalls/contracts/mint.js +4 -5
- package/dist/schema/kernel/syscalls/contracts/mutate.d.ts +243 -224
- package/dist/schema/kernel/syscalls/contracts/mutate.js +7 -1
- package/dist/schema/kernel/syscalls/contracts/query.d.ts +239 -222
- package/dist/schema/kernel/syscalls/contracts/query.js +17 -15
- package/dist/schema/kernel/syscalls/contracts/register.d.ts +20 -0
- package/dist/schema/kernel/syscalls/contracts/register.js +24 -0
- package/dist/schema/kernel/syscalls/contracts/uninstall.d.ts +55 -148
- package/dist/schema/kernel/syscalls/contracts/uninstall.js +7 -5
- package/dist/schema/kernel/syscalls/contracts/view-host-requirements.d.ts +17 -0
- package/dist/schema/kernel/syscalls/contracts/view-host-requirements.js +40 -0
- package/dist/schema/kernel/syscalls/contracts/view-resolve.d.ts +27 -28
- package/dist/schema/kernel/syscalls/contracts/view-resolve.js +16 -24
- package/dist/schema/kernel/syscalls/contracts/whoami.d.ts +19 -20
- package/dist/schema/kernel/syscalls/contracts/whoami.js +2 -2
- package/dist/schema/kernel/syscalls/contracts/whois.d.ts +22 -23
- package/dist/schema/kernel/syscalls/contracts/whois.js +3 -3
- package/dist/schema/kernel/syscalls/declarations/admit.d.ts +18 -18
- package/dist/schema/kernel/syscalls/declarations/admit.js +3 -3
- package/dist/schema/kernel/syscalls/declarations/can.d.ts +19 -14
- package/dist/schema/kernel/syscalls/declarations/can.js +4 -4
- package/dist/schema/kernel/syscalls/declarations/delegate.d.ts +9 -12
- package/dist/schema/kernel/syscalls/declarations/delegate.js +4 -4
- package/dist/schema/kernel/syscalls/declarations/download.d.ts +12 -0
- package/dist/schema/kernel/syscalls/declarations/download.js +10 -0
- package/dist/schema/kernel/syscalls/declarations/execution.d.ts +255 -0
- package/dist/schema/kernel/syscalls/declarations/execution.js +52 -0
- package/dist/schema/kernel/syscalls/declarations/impersonate.d.ts +9 -0
- package/dist/schema/kernel/syscalls/declarations/impersonate.js +12 -0
- package/dist/schema/kernel/syscalls/declarations/index.d.ts +1079 -1323
- package/dist/schema/kernel/syscalls/declarations/index.js +18 -2
- package/dist/schema/kernel/syscalls/declarations/install.d.ts +85 -172
- package/dist/schema/kernel/syscalls/declarations/install.js +7 -3
- package/dist/schema/kernel/syscalls/declarations/introspect.d.ts +8 -19
- package/dist/schema/kernel/syscalls/declarations/introspect.js +3 -4
- package/dist/schema/kernel/syscalls/declarations/journal.d.ts +29 -31
- package/dist/schema/kernel/syscalls/declarations/journal.js +4 -2
- package/dist/schema/kernel/syscalls/declarations/mint.d.ts +8 -13
- package/dist/schema/kernel/syscalls/declarations/mint.js +5 -5
- package/dist/schema/kernel/syscalls/declarations/mutate.d.ts +239 -256
- package/dist/schema/kernel/syscalls/declarations/mutate.js +4 -2
- package/dist/schema/kernel/syscalls/declarations/query.d.ts +236 -260
- package/dist/schema/kernel/syscalls/declarations/query.js +4 -2
- package/dist/schema/kernel/syscalls/declarations/register.d.ts +23 -0
- package/dist/schema/kernel/syscalls/declarations/register.js +10 -0
- package/dist/schema/kernel/syscalls/declarations/uninstall.d.ts +51 -153
- package/dist/schema/kernel/syscalls/declarations/uninstall.js +6 -2
- package/dist/schema/kernel/syscalls/declarations/upload.d.ts +15 -0
- package/dist/schema/kernel/syscalls/declarations/upload.js +10 -0
- package/dist/schema/kernel/syscalls/declarations/use-policy.d.ts +4 -0
- package/dist/schema/kernel/syscalls/declarations/use-policy.js +9 -0
- package/dist/schema/kernel/syscalls/declarations/view-resolve.d.ts +30 -37
- package/dist/schema/kernel/syscalls/declarations/view-resolve.js +5 -3
- package/dist/schema/kernel/syscalls/declarations/whoami.d.ts +22 -26
- package/dist/schema/kernel/syscalls/declarations/whoami.js +3 -3
- package/dist/schema/kernel/syscalls/declarations/whois.d.ts +25 -29
- package/dist/schema/kernel/syscalls/declarations/whois.js +5 -3
- package/dist/schema/kernel/syscalls/descriptors/execution.d.ts +303 -0
- package/dist/schema/kernel/syscalls/descriptors/execution.js +11 -0
- package/dist/schema/kernel/syscalls/descriptors/function.d.ts +8 -2
- package/dist/schema/kernel/syscalls/descriptors/functions.d.ts +3 -1
- package/dist/schema/kernel/syscalls/descriptors/functions.js +3 -1
- package/dist/schema/kernel/syscalls/descriptors/identity.d.ts +47 -13
- package/dist/schema/kernel/syscalls/descriptors/identity.js +2 -1
- package/dist/schema/kernel/syscalls/descriptors/index.d.ts +2 -1
- package/dist/schema/kernel/syscalls/descriptors/index.js +2 -1
- package/dist/schema/kernel/syscalls/descriptors/results/view-resolution.d.ts +5 -2
- package/dist/schema/kernel/syscalls/descriptors/results/view-resolution.js +8 -38
- package/dist/schema/kernel/syscalls/descriptors/view.d.ts +11 -9
- package/dist/schema/kernel/syscalls/index.d.ts +2 -2
- package/dist/schema/kernel/syscalls/index.js +2 -2
- package/dist/schema/kernel/syscalls/references/execution.d.ts +55 -0
- package/dist/schema/kernel/syscalls/references/execution.js +13 -0
- package/dist/schema/kernel/syscalls/references/functions.d.ts +12 -2
- package/dist/schema/kernel/syscalls/references/functions.js +3 -1
- package/dist/schema/kernel/syscalls/references/identity.d.ts +9 -0
- package/dist/schema/kernel/syscalls/references/identity.js +1 -0
- package/dist/schema/kernel/syscalls/references/index.d.ts +2 -1
- package/dist/schema/kernel/syscalls/references/index.js +2 -1
- package/dist/schema/meta/created-by.d.ts +32 -0
- package/dist/schema/meta/created-by.js +17 -0
- package/dist/schema/meta/descriptable.d.ts +13 -11
- package/dist/schema/meta/edge.d.ts +5 -9
- package/dist/schema/meta/iconable.d.ts +13 -11
- package/dist/schema/meta/index.d.ts +1 -0
- package/dist/schema/meta/index.js +1 -0
- package/dist/schema/meta/named.d.ts +13 -9
- package/dist/schema/meta/node.d.ts +9 -1
- package/dist/schema/meta/remotable.d.ts +15 -22
- package/dist/schema/meta/statused.d.ts +13 -7
- package/dist/schema/meta/timestamped.d.ts +14 -12
- package/package.json +9 -7
- package/dist/auth/expression/normalization/canonicalize.d.ts +0 -7
- package/dist/auth/expression/normalization/canonicalize.js +0 -102
- package/dist/auth/expression/normalization/index.d.ts +0 -2
- package/dist/auth/expression/normalization/index.js +0 -2
- package/dist/auth/expression/normalization/raise-denials.d.ts +0 -3
- package/dist/auth/expression/normalization/raise-denials.js +0 -59
- package/dist/auth/provision/fingerprint/fingerprint.d.ts +0 -9
- package/dist/auth/provision/fingerprint/fingerprint.js +0 -33
- package/dist/auth/provision/fingerprint/index.d.ts +0 -2
- package/dist/auth/provision/index.d.ts +0 -5
- package/dist/auth/provision/request/admission.d.ts +0 -3
- package/dist/auth/provision/request/admission.js +0 -125
- package/dist/auth/provision/request/index.d.ts +0 -3
- package/dist/auth/provision/request/request.d.ts +0 -29
- package/dist/auth/provision/result/index.d.ts +0 -1
- package/dist/auth/provision/result/result.d.ts +0 -12
- package/dist/graph/graph/navigation/error.d.ts +0 -12
- package/dist/graph/graph/navigation/error.js +0 -20
- package/dist/graph/graph/navigation/index.d.ts +0 -2
- package/dist/graph/graph/navigation/index.js +0 -1
- package/dist/graph/graph/navigation/model.d.ts +0 -15
- package/dist/schema/callables/view-for.d.ts +0 -296
- package/dist/schema/callables/view-for.js +0 -12
- package/dist/schema/kernel/projection/keys.d.ts +0 -3
- package/dist/schema/kernel/projection/path.d.ts +0 -2
- package/dist/schema/kernel/projection/path.js +0 -140
- package/dist/schema/kernel/syscalls/contracts/provision.d.ts +0 -292
- package/dist/schema/kernel/syscalls/contracts/provision.js +0 -19
- package/dist/schema/kernel/syscalls/declarations/define.d.ts +0 -5
- package/dist/schema/kernel/syscalls/declarations/define.js +0 -7
- package/dist/schema/kernel/syscalls/declarations/provision.d.ts +0 -296
- package/dist/schema/kernel/syscalls/declarations/provision.js +0 -8
- /package/dist/auth/{provision/request/request.js → authority/semantics/snapshot.js} +0 -0
- /package/dist/auth/{provision/result/index.js → authority/semantics/vocabulary.js} +0 -0
- /package/dist/auth/{provision → register}/fingerprint/index.js +0 -0
- /package/dist/auth/{provision → register}/index.js +0 -0
- /package/dist/auth/{provision → register}/request/index.js +0 -0
- /package/dist/auth/{provision/result/result.js → register/request/request.js} +0 -0
- /package/dist/{graph/graph/navigation/model.js → auth/register/result/index.js} +0 -0
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { edgeClass } from '@astrale-os/kernel-dsl/v1';
|
|
2
|
-
import { Class } from '../definitions/index.js';
|
|
3
|
-
import { Domain } from '../domain/index.js';
|
|
4
|
-
import { Edge } from '../meta/index.js';
|
|
5
|
-
import { View } from './view.js';
|
|
6
|
-
export const ViewFor = edgeClass.directed({
|
|
7
|
-
abstract: false,
|
|
8
|
-
source: { as: 'view', accepts: [View], outgoing: '1..*' },
|
|
9
|
-
target: { as: 'target', accepts: [Class, Domain], incoming: '0..*' },
|
|
10
|
-
description: 'A View declaration targets one Domain or a non-empty set of Classes.',
|
|
11
|
-
extends: [Edge],
|
|
12
|
-
});
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { ClassKey } from '@astrale-os/kernel-dsl/v1/addressing';
|
|
2
|
-
import { GraphPathAmbiguousError } from '#graph/graph';
|
|
3
|
-
import { K } from '../index.js';
|
|
4
|
-
export const projectionPathWalker = Object.freeze({
|
|
5
|
-
walk: walkProjectionPath,
|
|
6
|
-
});
|
|
7
|
-
function walkProjectionPath(path, context) {
|
|
8
|
-
let candidates = anchorCandidates(path.ast, context);
|
|
9
|
-
for (const step of path.ast.steps)
|
|
10
|
-
candidates = applyStep(candidates, step, context);
|
|
11
|
-
if (candidates.length === 0)
|
|
12
|
-
return undefined;
|
|
13
|
-
if (candidates.length === 1)
|
|
14
|
-
return candidates[0];
|
|
15
|
-
throw new GraphPathAmbiguousError(path.raw, candidates.length);
|
|
16
|
-
}
|
|
17
|
-
function anchorCandidates(ast, context) {
|
|
18
|
-
if (ast.anchor.kind === 'id') {
|
|
19
|
-
const node = context.nodes.byId(ast.anchor.id);
|
|
20
|
-
return node === undefined ? [] : [node];
|
|
21
|
-
}
|
|
22
|
-
const domainClass = ClassKey.of(K.classes.Domain.ref);
|
|
23
|
-
const origin = ast.anchor.origin;
|
|
24
|
-
return context.nodes
|
|
25
|
-
.byClass(domainClass)
|
|
26
|
-
.filter((node) => node.props[K.classes.Domain.properties.origin.key] === origin);
|
|
27
|
-
}
|
|
28
|
-
function applyStep(current, step, context) {
|
|
29
|
-
switch (step.kind) {
|
|
30
|
-
case 'projection':
|
|
31
|
-
return domainMembers(current, `${step.projection.kind}.${step.projection.name}`, context);
|
|
32
|
-
case 'method':
|
|
33
|
-
return step.dispatch === 'static'
|
|
34
|
-
? directMethods(current, step.name, true, context)
|
|
35
|
-
: instanceMethods(current, step.name, context);
|
|
36
|
-
case 'traverse':
|
|
37
|
-
return traverse(current, step, context);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
function domainMembers(domains, member, context) {
|
|
41
|
-
const domainIds = new Set(domains.map((node) => node.id));
|
|
42
|
-
return distinctNodes(edgesOf(K.classes.of_domain, context).flatMap((edge) => {
|
|
43
|
-
if (!domainIds.has(edge.target) ||
|
|
44
|
-
edge.props[K.classes.of_domain.properties.member.key] !== member) {
|
|
45
|
-
return [];
|
|
46
|
-
}
|
|
47
|
-
const node = context.nodes.byId(edge.source);
|
|
48
|
-
return node === undefined ? [] : [node];
|
|
49
|
-
}));
|
|
50
|
-
}
|
|
51
|
-
function directMethods(owners, name, isStatic, context) {
|
|
52
|
-
const ownerIds = new Set(owners.map((node) => node.id));
|
|
53
|
-
return distinctNodes(edgesOf(K.classes.method_of, context).flatMap((edge) => {
|
|
54
|
-
if (!ownerIds.has(edge.target) ||
|
|
55
|
-
edge.props[K.classes.method_of.properties.name.key] !== name ||
|
|
56
|
-
edge.props[K.classes.method_of.properties.static.key] !== isStatic) {
|
|
57
|
-
return [];
|
|
58
|
-
}
|
|
59
|
-
const method = context.nodes.byId(edge.source);
|
|
60
|
-
return method === undefined ? [] : [method];
|
|
61
|
-
}));
|
|
62
|
-
}
|
|
63
|
-
function instanceMethods(instances, name, context) {
|
|
64
|
-
return distinctNodes(instances.flatMap((instance) => {
|
|
65
|
-
const owner = resolveClassProjection(instance.class, context);
|
|
66
|
-
return owner.length === 0 ? [] : effectiveMethods(owner, name, context);
|
|
67
|
-
}));
|
|
68
|
-
}
|
|
69
|
-
function resolveClassProjection(key, context) {
|
|
70
|
-
const domainClass = ClassKey.of(K.classes.Domain.ref);
|
|
71
|
-
const domains = context.nodes
|
|
72
|
-
.byClass(domainClass)
|
|
73
|
-
.filter((node) => node.props[K.classes.Domain.properties.origin.key] === ClassKey.ref(key).origin);
|
|
74
|
-
return domainMembers(domains, `class.${ClassKey.ref(key).name}`, context);
|
|
75
|
-
}
|
|
76
|
-
/** Select the nearest declared Method in the valid Definition inheritance graph. */
|
|
77
|
-
function effectiveMethods(roots, name, context) {
|
|
78
|
-
let level = distinctNodes(roots);
|
|
79
|
-
const visited = new Set();
|
|
80
|
-
while (level.length > 0) {
|
|
81
|
-
const fresh = level.filter((node) => !visited.has(node.id));
|
|
82
|
-
for (const node of fresh)
|
|
83
|
-
visited.add(node.id);
|
|
84
|
-
if (fresh.length === 0)
|
|
85
|
-
return [];
|
|
86
|
-
const methods = directMethods(fresh, name, false, context);
|
|
87
|
-
if (methods.length > 0)
|
|
88
|
-
return methods;
|
|
89
|
-
level = parentDefinitions(fresh, context);
|
|
90
|
-
}
|
|
91
|
-
return [];
|
|
92
|
-
}
|
|
93
|
-
function parentDefinitions(definitions, context) {
|
|
94
|
-
const ids = new Set(definitions.map((node) => node.id));
|
|
95
|
-
const relations = [K.classes.extends];
|
|
96
|
-
return distinctNodes(relations.flatMap((relation) => edgesOf(relation, context).flatMap((edge) => {
|
|
97
|
-
if (!ids.has(edge.source))
|
|
98
|
-
return [];
|
|
99
|
-
const parent = context.nodes.byId(edge.target);
|
|
100
|
-
return parent === undefined ? [] : [parent];
|
|
101
|
-
})));
|
|
102
|
-
}
|
|
103
|
-
function traverse(current, step, context) {
|
|
104
|
-
const currentIds = new Set(current.map((node) => node.id));
|
|
105
|
-
const edgeClass = step.class;
|
|
106
|
-
const orientation = context.orientation(edgeClass);
|
|
107
|
-
const candidates = context.edges.byClass(edgeClass);
|
|
108
|
-
return distinctNodes(candidates.flatMap((edge) => {
|
|
109
|
-
if (step.slug !== undefined && edge.slug !== step.slug)
|
|
110
|
-
return [];
|
|
111
|
-
const endpoint = traversedEndpoint(edge, currentIds, step.direction, orientation);
|
|
112
|
-
if (endpoint === undefined)
|
|
113
|
-
return [];
|
|
114
|
-
const node = context.nodes.byId(endpoint);
|
|
115
|
-
return node === undefined ? [] : [node];
|
|
116
|
-
}));
|
|
117
|
-
}
|
|
118
|
-
function traversedEndpoint(edge, current, direction, orientation) {
|
|
119
|
-
if (orientation === 'undirected') {
|
|
120
|
-
if (current.has(edge.source))
|
|
121
|
-
return edge.target;
|
|
122
|
-
if (current.has(edge.target))
|
|
123
|
-
return edge.source;
|
|
124
|
-
return undefined;
|
|
125
|
-
}
|
|
126
|
-
if (direction === 'out' && current.has(edge.source))
|
|
127
|
-
return edge.target;
|
|
128
|
-
if (direction === 'in' && current.has(edge.target))
|
|
129
|
-
return edge.source;
|
|
130
|
-
return undefined;
|
|
131
|
-
}
|
|
132
|
-
function edgesOf(relation, context) {
|
|
133
|
-
return context.edges.byClass(ClassKey.of(relation.ref));
|
|
134
|
-
}
|
|
135
|
-
function distinctNodes(nodes) {
|
|
136
|
-
const byId = new Map();
|
|
137
|
-
for (const node of nodes)
|
|
138
|
-
byId.set(node.id, node);
|
|
139
|
-
return [...byId.values()];
|
|
140
|
-
}
|
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const provisionInput: z.ZodObject<{
|
|
3
|
-
idempotencyKey: z.ZodString;
|
|
4
|
-
mutation: z.ZodObject<{
|
|
5
|
-
format: z.ZodLiteral<"astrale.graph.mutation">;
|
|
6
|
-
version: z.ZodLiteral<"v3">;
|
|
7
|
-
preconditions: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
8
|
-
kind: z.ZodLiteral<"node">;
|
|
9
|
-
node: z.ZodString;
|
|
10
|
-
class: z.ZodString;
|
|
11
|
-
props: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
12
|
-
equals: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
13
|
-
absent: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
15
|
-
absent: z.ZodArray<z.ZodString>;
|
|
16
|
-
}, z.core.$strict>]>>;
|
|
17
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
18
|
-
kind: z.ZodLiteral<"edge">;
|
|
19
|
-
edge: z.ZodObject<{
|
|
20
|
-
source: z.ZodString;
|
|
21
|
-
target: z.ZodString;
|
|
22
|
-
class: z.ZodString;
|
|
23
|
-
}, z.core.$strict>;
|
|
24
|
-
slug: z.ZodOptional<z.ZodNullable<z.ZodType<import("../../../../graph/edge/index.js").EdgeSlug, unknown, z.core.$ZodTypeInternals<import("../../../../graph/edge/index.js").EdgeSlug, unknown>>>>;
|
|
25
|
-
props: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
26
|
-
equals: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
27
|
-
absent: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
28
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
29
|
-
absent: z.ZodArray<z.ZodString>;
|
|
30
|
-
}, z.core.$strict>]>>;
|
|
31
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
32
|
-
kind: z.ZodLiteral<"query">;
|
|
33
|
-
query: z.ZodObject<{
|
|
34
|
-
format: z.ZodLiteral<"astrale.graph.query">;
|
|
35
|
-
version: z.ZodLiteral<"v6">;
|
|
36
|
-
source: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
37
|
-
kind: z.ZodLiteral<"node">;
|
|
38
|
-
terms: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
39
|
-
kind: z.ZodLiteral<"path">;
|
|
40
|
-
path: z.ZodString;
|
|
41
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
42
|
-
kind: z.ZodLiteral<"class">;
|
|
43
|
-
class: z.ZodObject<{
|
|
44
|
-
origin: z.ZodString;
|
|
45
|
-
kind: z.ZodLiteral<"class">;
|
|
46
|
-
name: z.ZodString;
|
|
47
|
-
}, z.core.$strict>;
|
|
48
|
-
}, z.core.$strict>], "kind">>;
|
|
49
|
-
binding: z.ZodString;
|
|
50
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
51
|
-
kind: z.ZodLiteral<"edge">;
|
|
52
|
-
terms: z.ZodArray<z.ZodObject<{
|
|
53
|
-
kind: z.ZodLiteral<"class">;
|
|
54
|
-
class: z.ZodObject<{
|
|
55
|
-
origin: z.ZodString;
|
|
56
|
-
kind: z.ZodLiteral<"class">;
|
|
57
|
-
name: z.ZodString;
|
|
58
|
-
}, z.core.$strict>;
|
|
59
|
-
}, z.core.$strict>>;
|
|
60
|
-
bindings: z.ZodObject<{
|
|
61
|
-
source: z.ZodString;
|
|
62
|
-
edge: z.ZodString;
|
|
63
|
-
target: z.ZodString;
|
|
64
|
-
}, z.core.$strict>;
|
|
65
|
-
}, z.core.$strict>], "kind">;
|
|
66
|
-
steps: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
67
|
-
op: z.ZodLiteral<"filter">;
|
|
68
|
-
binding: z.ZodString;
|
|
69
|
-
predicate: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
70
|
-
kind: z.ZodLiteral<"class.satisfies">;
|
|
71
|
-
class: z.ZodObject<{
|
|
72
|
-
origin: z.ZodString;
|
|
73
|
-
kind: z.ZodLiteral<"class">;
|
|
74
|
-
name: z.ZodString;
|
|
75
|
-
}, z.core.$strict>;
|
|
76
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
77
|
-
kind: z.ZodLiteral<"class.equal">;
|
|
78
|
-
class: z.ZodObject<{
|
|
79
|
-
origin: z.ZodString;
|
|
80
|
-
kind: z.ZodLiteral<"class">;
|
|
81
|
-
name: z.ZodString;
|
|
82
|
-
}, z.core.$strict>;
|
|
83
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
84
|
-
kind: z.ZodLiteral<"property.equal">;
|
|
85
|
-
property: z.ZodString;
|
|
86
|
-
value: z.ZodUnknown;
|
|
87
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
88
|
-
kind: z.ZodLiteral<"property.present">;
|
|
89
|
-
property: z.ZodString;
|
|
90
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
91
|
-
kind: z.ZodLiteral<"identity.equal">;
|
|
92
|
-
identity: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
93
|
-
source: z.ZodString;
|
|
94
|
-
target: z.ZodString;
|
|
95
|
-
class: z.ZodString;
|
|
96
|
-
}, z.core.$strict>]>;
|
|
97
|
-
}, z.core.$strict>], "kind">;
|
|
98
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
99
|
-
op: z.ZodLiteral<"expand">;
|
|
100
|
-
from: z.ZodString;
|
|
101
|
-
via: z.ZodArray<z.ZodObject<{
|
|
102
|
-
origin: z.ZodString;
|
|
103
|
-
kind: z.ZodLiteral<"class">;
|
|
104
|
-
name: z.ZodString;
|
|
105
|
-
}, z.core.$strict>>;
|
|
106
|
-
direction: z.ZodEnum<{
|
|
107
|
-
incident: "incident";
|
|
108
|
-
incoming: "incoming";
|
|
109
|
-
outgoing: "outgoing";
|
|
110
|
-
}>;
|
|
111
|
-
bindings: z.ZodObject<{
|
|
112
|
-
edge: z.ZodString;
|
|
113
|
-
node: z.ZodString;
|
|
114
|
-
}, z.core.$strict>;
|
|
115
|
-
}, z.core.$strict>], "op">>;
|
|
116
|
-
select: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
117
|
-
kind: z.ZodLiteral<"graph">;
|
|
118
|
-
binding: z.ZodString;
|
|
119
|
-
order: z.ZodOptional<z.ZodObject<{
|
|
120
|
-
property: z.ZodString;
|
|
121
|
-
direction: z.ZodEnum<{
|
|
122
|
-
asc: "asc";
|
|
123
|
-
desc: "desc";
|
|
124
|
-
}>;
|
|
125
|
-
unranked: z.ZodEnum<{
|
|
126
|
-
first: "first";
|
|
127
|
-
last: "last";
|
|
128
|
-
}>;
|
|
129
|
-
}, z.core.$strict>>;
|
|
130
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
131
|
-
kind: z.ZodLiteral<"nodes">;
|
|
132
|
-
binding: z.ZodString;
|
|
133
|
-
projection: z.ZodObject<{
|
|
134
|
-
kind: z.ZodEnum<{
|
|
135
|
-
reference: "reference";
|
|
136
|
-
value: "value";
|
|
137
|
-
}>;
|
|
138
|
-
}, z.core.$strict>;
|
|
139
|
-
order: z.ZodOptional<z.ZodObject<{
|
|
140
|
-
property: z.ZodString;
|
|
141
|
-
direction: z.ZodEnum<{
|
|
142
|
-
asc: "asc";
|
|
143
|
-
desc: "desc";
|
|
144
|
-
}>;
|
|
145
|
-
unranked: z.ZodEnum<{
|
|
146
|
-
first: "first";
|
|
147
|
-
last: "last";
|
|
148
|
-
}>;
|
|
149
|
-
}, z.core.$strict>>;
|
|
150
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
151
|
-
kind: z.ZodLiteral<"edges">;
|
|
152
|
-
binding: z.ZodString;
|
|
153
|
-
projection: z.ZodObject<{
|
|
154
|
-
edge: z.ZodEnum<{
|
|
155
|
-
reference: "reference";
|
|
156
|
-
value: "value";
|
|
157
|
-
}>;
|
|
158
|
-
source: z.ZodEnum<{
|
|
159
|
-
reference: "reference";
|
|
160
|
-
value: "value";
|
|
161
|
-
}>;
|
|
162
|
-
target: z.ZodEnum<{
|
|
163
|
-
reference: "reference";
|
|
164
|
-
value: "value";
|
|
165
|
-
}>;
|
|
166
|
-
}, z.core.$strict>;
|
|
167
|
-
order: z.ZodOptional<z.ZodObject<{
|
|
168
|
-
property: z.ZodString;
|
|
169
|
-
direction: z.ZodEnum<{
|
|
170
|
-
asc: "asc";
|
|
171
|
-
desc: "desc";
|
|
172
|
-
}>;
|
|
173
|
-
unranked: z.ZodEnum<{
|
|
174
|
-
first: "first";
|
|
175
|
-
last: "last";
|
|
176
|
-
}>;
|
|
177
|
-
}, z.core.$strict>>;
|
|
178
|
-
}, z.core.$strict>], "kind">;
|
|
179
|
-
}, z.core.$strict>;
|
|
180
|
-
equals: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
181
|
-
kind: z.ZodLiteral<"node">;
|
|
182
|
-
ids: z.ZodArray<z.ZodString>;
|
|
183
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
184
|
-
kind: z.ZodLiteral<"edge">;
|
|
185
|
-
keys: z.ZodArray<z.ZodObject<{
|
|
186
|
-
source: z.ZodString;
|
|
187
|
-
target: z.ZodString;
|
|
188
|
-
class: z.ZodString;
|
|
189
|
-
}, z.core.$strict>>;
|
|
190
|
-
}, z.core.$strict>], "kind">;
|
|
191
|
-
}, z.core.$strict>]>>;
|
|
192
|
-
operations: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
193
|
-
op: z.ZodLiteral<"node.create">;
|
|
194
|
-
as: z.ZodString;
|
|
195
|
-
class: z.ZodString;
|
|
196
|
-
props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
197
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
198
|
-
op: z.ZodLiteral<"node.update">;
|
|
199
|
-
node: z.ZodString;
|
|
200
|
-
class: z.ZodString;
|
|
201
|
-
props: z.ZodObject<{
|
|
202
|
-
set: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
203
|
-
unset: z.ZodArray<z.ZodString>;
|
|
204
|
-
}, z.core.$strict>;
|
|
205
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
206
|
-
op: z.ZodLiteral<"node.delete">;
|
|
207
|
-
node: z.ZodString;
|
|
208
|
-
class: z.ZodString;
|
|
209
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
210
|
-
op: z.ZodLiteral<"edge.create">;
|
|
211
|
-
class: z.ZodString;
|
|
212
|
-
source: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
213
|
-
created: z.ZodString;
|
|
214
|
-
}, z.core.$strict>]>;
|
|
215
|
-
target: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
216
|
-
created: z.ZodString;
|
|
217
|
-
}, z.core.$strict>]>;
|
|
218
|
-
slug: z.ZodOptional<z.ZodType<import("../../../../graph/edge/index.js").EdgeSlug, unknown, z.core.$ZodTypeInternals<import("../../../../graph/edge/index.js").EdgeSlug, unknown>>>;
|
|
219
|
-
props: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
220
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
221
|
-
op: z.ZodLiteral<"edge.update">;
|
|
222
|
-
edge: z.ZodObject<{
|
|
223
|
-
source: z.ZodString;
|
|
224
|
-
target: z.ZodString;
|
|
225
|
-
class: z.ZodString;
|
|
226
|
-
}, z.core.$strict>;
|
|
227
|
-
slug: z.ZodNullable<z.ZodType<import("../../../../graph/edge/index.js").EdgeSlug, unknown, z.core.$ZodTypeInternals<import("../../../../graph/edge/index.js").EdgeSlug, unknown>>>;
|
|
228
|
-
props: z.ZodOptional<z.ZodObject<{
|
|
229
|
-
set: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
230
|
-
unset: z.ZodArray<z.ZodString>;
|
|
231
|
-
}, z.core.$strict>>;
|
|
232
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
233
|
-
op: z.ZodLiteral<"edge.update">;
|
|
234
|
-
edge: z.ZodObject<{
|
|
235
|
-
source: z.ZodString;
|
|
236
|
-
target: z.ZodString;
|
|
237
|
-
class: z.ZodString;
|
|
238
|
-
}, z.core.$strict>;
|
|
239
|
-
props: z.ZodObject<{
|
|
240
|
-
set: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
241
|
-
unset: z.ZodArray<z.ZodString>;
|
|
242
|
-
}, z.core.$strict>;
|
|
243
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
244
|
-
op: z.ZodLiteral<"edge.delete">;
|
|
245
|
-
edge: z.ZodObject<{
|
|
246
|
-
source: z.ZodString;
|
|
247
|
-
target: z.ZodString;
|
|
248
|
-
class: z.ZodString;
|
|
249
|
-
}, z.core.$strict>;
|
|
250
|
-
}, z.core.$strict>]>>;
|
|
251
|
-
}, z.core.$strict>;
|
|
252
|
-
identities: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
253
|
-
issuer: z.ZodString;
|
|
254
|
-
subject: z.ZodString;
|
|
255
|
-
requiredClaims: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
256
|
-
claim: z.ZodString;
|
|
257
|
-
op: z.ZodLiteral<"contains">;
|
|
258
|
-
value: z.ZodNonOptional<z.ZodUnknown>;
|
|
259
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
260
|
-
claim: z.ZodString;
|
|
261
|
-
op: z.ZodLiteral<"eq">;
|
|
262
|
-
value: z.ZodNonOptional<z.ZodUnknown>;
|
|
263
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
264
|
-
claim: z.ZodString;
|
|
265
|
-
op: z.ZodLiteral<"exists">;
|
|
266
|
-
}, z.core.$strict>], "op">>>;
|
|
267
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
268
|
-
credentials: z.ZodObject<{
|
|
269
|
-
publicKey: z.ZodUnknown;
|
|
270
|
-
proof: z.ZodString;
|
|
271
|
-
}, z.core.$strict>;
|
|
272
|
-
requiredClaims: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
273
|
-
claim: z.ZodString;
|
|
274
|
-
op: z.ZodLiteral<"contains">;
|
|
275
|
-
value: z.ZodNonOptional<z.ZodUnknown>;
|
|
276
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
277
|
-
claim: z.ZodString;
|
|
278
|
-
op: z.ZodLiteral<"eq">;
|
|
279
|
-
value: z.ZodNonOptional<z.ZodUnknown>;
|
|
280
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
281
|
-
claim: z.ZodString;
|
|
282
|
-
op: z.ZodLiteral<"exists">;
|
|
283
|
-
}, z.core.$strict>], "op">>>;
|
|
284
|
-
}, z.core.$strict>]>>;
|
|
285
|
-
}, z.core.$strict>;
|
|
286
|
-
export declare const provisionOutput: z.ZodObject<{
|
|
287
|
-
createdNodes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
288
|
-
identities: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
289
|
-
issuer: z.ZodString;
|
|
290
|
-
subject: z.ZodString;
|
|
291
|
-
}, z.core.$strict>>;
|
|
292
|
-
}, z.core.$strict>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { mutationAstSchema } from '#graph/mutate/wire';
|
|
3
|
-
import { requiredClaimsSchema } from '../../../authority/claims.js';
|
|
4
|
-
const text = z.string().min(1);
|
|
5
|
-
const requiredClaims = requiredClaimsSchema.optional();
|
|
6
|
-
const asserted = z.strictObject({ issuer: text, subject: text, requiredClaims });
|
|
7
|
-
const self = z.strictObject({
|
|
8
|
-
credentials: z.strictObject({ publicKey: z.unknown(), proof: text }),
|
|
9
|
-
requiredClaims,
|
|
10
|
-
});
|
|
11
|
-
export const provisionInput = z.strictObject({
|
|
12
|
-
idempotencyKey: text,
|
|
13
|
-
mutation: mutationAstSchema,
|
|
14
|
-
identities: z.record(z.string(), z.union([asserted, self])),
|
|
15
|
-
});
|
|
16
|
-
export const provisionOutput = z.strictObject({
|
|
17
|
-
createdNodes: z.record(z.string(), text),
|
|
18
|
-
identities: z.record(z.string(), z.strictObject({ issuer: text, subject: text })),
|
|
19
|
-
});
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type builder } from '@astrale-os/kernel-dsl/v1';
|
|
2
|
-
export type SyscallFunctionDefinition = builder.FunctionInput;
|
|
3
|
-
export type SyscallMethodDefinition = builder.MethodInput;
|
|
4
|
-
export declare function defineFunction<const Config extends SyscallFunctionDefinition>(config: Config): builder.Function<Config>;
|
|
5
|
-
export declare function defineMethod<const Config extends SyscallMethodDefinition>(config: Config): builder.Method<Config>;
|