@astrale-os/kernel-dsl 0.2.0-beta.3 → 0.2.0-beta.30
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/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/upgrade/contract.d.ts +0 -1
- package/dist/upgrade/contract.js +0 -1
- package/dist/upgrade/index.d.ts +0 -1
- package/dist/upgrade/index.js +0 -1
- package/dist/v1/addressing/class-key.d.ts +12 -0
- package/dist/v1/addressing/class-key.js +39 -0
- package/dist/v1/addressing/definition-ref.d.ts +28 -0
- package/dist/v1/addressing/definition-ref.js +63 -0
- package/dist/v1/addressing/domain-dependency.d.ts +18 -0
- package/dist/v1/addressing/domain-dependency.js +6 -0
- package/dist/v1/addressing/index.d.ts +10 -4
- package/dist/v1/addressing/index.js +5 -3
- package/dist/v1/addressing/key.d.ts +14 -16
- package/dist/v1/addressing/key.js +24 -34
- package/dist/v1/addressing/method-address.d.ts +9 -0
- package/dist/v1/addressing/method-address.js +1 -0
- package/dist/v1/addressing/method-key.d.ts +15 -0
- package/dist/v1/addressing/method-key.js +60 -0
- package/dist/v1/addressing/ordering.d.ts +6 -0
- package/dist/v1/addressing/ordering.js +20 -0
- package/dist/v1/addressing/patterns.d.ts +12 -3
- package/dist/v1/addressing/patterns.js +11 -2
- package/dist/v1/addressing/property-key.d.ts +10 -15
- package/dist/v1/addressing/property-key.js +24 -15
- package/dist/v1/addressing/revision.d.ts +8 -0
- package/dist/v1/addressing/revision.js +8 -0
- package/dist/v1/builder/callable/authoring.d.ts +118 -0
- package/dist/v1/builder/{callable.js → callable/authoring.js} +28 -7
- package/dist/v1/builder/class/authoring.d.ts +380 -0
- package/dist/v1/builder/class/authoring.js +134 -0
- package/dist/v1/builder/class/property.d.ts +58 -0
- package/dist/v1/builder/class/property.js +57 -0
- package/dist/v1/builder/core/authoring.d.ts +42 -0
- package/dist/v1/builder/core/authoring.js +39 -0
- package/dist/v1/builder/index.d.ts +26 -22
- package/dist/v1/builder/index.js +11 -11
- package/dist/v1/builder/lowering/callable.d.ts +24 -0
- package/dist/v1/builder/{compiler → lowering}/callable.js +39 -38
- package/dist/v1/builder/lowering/class.d.ts +22 -0
- package/dist/v1/builder/lowering/class.js +134 -0
- package/dist/v1/builder/lowering/core-properties.d.ts +10 -0
- package/dist/v1/builder/{compiler/core.properties.js → lowering/core-properties.js} +14 -8
- package/dist/v1/builder/lowering/core.d.ts +22 -0
- package/dist/v1/builder/{compiler → lowering}/core.js +17 -11
- package/dist/v1/builder/lowering/policy.d.ts +16 -0
- package/dist/v1/builder/{compiler → lowering}/policy.js +20 -14
- package/dist/v1/builder/{compiler/schema.capture.d.ts → lowering/schema/capture.d.ts} +2 -3
- package/dist/v1/builder/lowering/schema/capture.js +70 -0
- package/dist/v1/builder/{compiler/schema.d.ts → lowering/schema/compile.d.ts} +4 -4
- package/dist/v1/builder/{compiler/schema.js → lowering/schema/compile.js} +34 -44
- package/dist/v1/builder/lowering/schema/context.d.ts +44 -0
- package/dist/v1/builder/{compiler/schema.context.js → lowering/schema/context.js} +92 -81
- package/dist/v1/builder/lowering/schema/ownership.d.ts +8 -0
- package/dist/v1/builder/{compiler/schema.ownership.js → lowering/schema/ownership.js} +1 -2
- package/dist/v1/builder/lowering/value/compile.d.ts +15 -0
- package/dist/v1/builder/{compiler/value.js → lowering/value/compile.js} +44 -61
- package/dist/v1/builder/lowering/value/path.d.ts +3 -0
- package/dist/v1/builder/{compiler/value.path.js → lowering/value/path.js} +1 -2
- package/dist/v1/builder/{compiler/value.zod.d.ts → lowering/value/zod.d.ts} +8 -9
- package/dist/v1/builder/{compiler/value.zod.js → lowering/value/zod.js} +10 -11
- package/dist/v1/builder/lowering/view.d.ts +11 -0
- package/dist/v1/builder/{compiler → lowering}/view.js +7 -7
- package/dist/v1/builder/{policy.d.ts → policy/authoring.d.ts} +28 -17
- package/dist/v1/builder/policy/authoring.js +115 -0
- package/dist/v1/builder/schema/define.d.ts +11 -0
- package/dist/v1/builder/{schema.js → schema/define.js} +1 -2
- package/dist/v1/builder/schema/diagnostic.d.ts +16 -0
- package/dist/v1/builder/schema/diagnostic.js +31 -0
- package/dist/v1/builder/{internal/authoring.d.ts → schema/handle.d.ts} +1 -2
- package/dist/v1/builder/{internal/authoring.js → schema/handle.js} +0 -1
- package/dist/v1/builder/schema/input.d.ts +15 -0
- package/dist/v1/builder/schema/input.js +1 -0
- package/dist/v1/builder/{internal/authoring.lazy.d.ts → schema/lazy.d.ts} +0 -1
- package/dist/v1/builder/{internal/authoring.lazy.js → schema/lazy.js} +0 -1
- package/dist/v1/builder/schema/projection.d.ts +370 -0
- package/dist/v1/builder/schema/projection.js +1 -0
- package/dist/v1/builder/value/full-match.d.ts +4 -0
- package/dist/v1/builder/value/full-match.js +11 -0
- package/dist/v1/builder/value/path-metadata.d.ts +4 -0
- package/dist/v1/builder/{internal/path.metadata.js → value/path-metadata.js} +0 -1
- package/dist/v1/builder/value/path.d.ts +8 -0
- package/dist/v1/builder/{path.js → value/path.js} +4 -5
- package/dist/v1/builder/{value-schema.d.ts → value/schema.d.ts} +2 -3
- package/dist/v1/builder/{value-schema.js → value/schema.js} +0 -1
- package/dist/v1/builder/view/authoring.d.ts +17 -0
- package/dist/v1/builder/view/authoring.js +16 -0
- package/dist/v1/bundle/codec.d.ts +0 -1
- package/dist/v1/bundle/codec.js +36 -19
- package/dist/v1/bundle/create.d.ts +3 -0
- package/dist/v1/bundle/create.js +5 -0
- package/dist/v1/bundle/diagnostic.d.ts +10 -0
- package/dist/v1/bundle/diagnostic.js +17 -0
- package/dist/v1/bundle/index.d.ts +3 -2
- package/dist/v1/bundle/index.js +2 -2
- package/dist/v1/bundle/model.d.ts +1 -4
- package/dist/v1/bundle/model.js +0 -6
- package/dist/v1/bundle/structure.d.ts +1 -2
- package/dist/v1/bundle/structure.js +6 -6
- package/dist/v1/bundle/transport.d.ts +8 -0
- package/dist/v1/bundle/transport.js +7 -0
- package/dist/v1/compiled/admission/accept.d.ts +3 -0
- package/dist/v1/compiled/admission/accept.js +950 -0
- package/dist/v1/compiled/admission/revision.d.ts +4 -0
- package/dist/v1/compiled/admission/revision.js +73 -0
- package/dist/v1/compiled/admission/semantics.d.ts +7 -0
- package/dist/v1/compiled/admission/semantics.js +1157 -0
- package/dist/v1/compiled/codec/json.d.ts +3 -0
- package/dist/v1/compiled/codec/json.js +9 -0
- package/dist/v1/compiled/compiler/compile.d.ts +4 -0
- package/dist/v1/compiled/compiler/compile.js +113 -0
- package/dist/v1/compiled/diagnostic.d.ts +11 -0
- package/dist/v1/compiled/diagnostic.js +13 -0
- package/dist/v1/compiled/generated.d.ts +10 -0
- package/dist/v1/compiled/generated.js +15 -0
- package/dist/v1/compiled/index.d.ts +7 -0
- package/dist/v1/compiled/index.js +5 -0
- package/dist/v1/compiled/loader/index.d.ts +1 -0
- package/dist/v1/compiled/loader/index.js +1 -0
- package/dist/v1/compiled/loader/load.d.ts +9 -0
- package/dist/v1/compiled/loader/load.js +147 -0
- package/dist/v1/compiled/model/schema.d.ts +73 -0
- package/dist/v1/compiled/model/schema.js +1 -0
- package/dist/v1/domain/create.d.ts +8 -0
- package/dist/v1/domain/create.js +264 -0
- package/dist/v1/domain/index.d.ts +2 -0
- package/dist/v1/domain/index.js +1 -0
- package/dist/v1/domain/model/domain.d.ts +59 -0
- package/dist/v1/domain/model/domain.js +1 -0
- package/dist/v1/domain/model/input.d.ts +31 -0
- package/dist/v1/domain/model/input.js +1 -0
- package/dist/v1/domain/namespace/member-collection.d.ts +5 -0
- package/dist/v1/domain/namespace/member-collection.js +81 -0
- package/dist/v1/domain/projection/classes.d.ts +4 -0
- package/dist/v1/domain/projection/classes.js +181 -0
- package/dist/v1/domain/validation/create.d.ts +18 -0
- package/dist/v1/domain/validation/create.js +75 -0
- package/dist/v1/index.d.ts +14 -5
- package/dist/v1/index.js +6 -3
- package/dist/v1/language/callable/index.d.ts +2 -0
- package/dist/v1/language/callable/index.js +1 -0
- package/dist/v1/language/callable/model/callable.d.ts +33 -0
- package/dist/v1/language/callable/model/callable.js +1 -0
- package/dist/v1/language/callable/resolved.d.ts +68 -0
- package/dist/v1/language/callable/resolved.js +1 -0
- package/dist/v1/language/class/facets.d.ts +58 -0
- package/dist/v1/language/class/facets.js +1 -0
- package/dist/v1/language/class/index.d.ts +8 -0
- package/dist/v1/language/class/index.js +1 -0
- package/dist/v1/language/class/model/class.d.ts +37 -0
- package/dist/v1/language/class/model/class.js +1 -0
- package/dist/v1/{schema/definition → language/class/model}/data.d.ts +2 -3
- package/dist/v1/{schema/definition → language/class/model}/data.js +0 -1
- package/dist/v1/{schema/definition → language/class/model}/edge.d.ts +9 -6
- package/dist/v1/language/class/model/edge.js +1 -0
- package/dist/v1/language/class/model/property.d.ts +17 -0
- package/dist/v1/language/class/model/property.js +1 -0
- package/dist/v1/language/class/property-values.d.ts +15 -0
- package/dist/v1/language/class/property-values.js +30 -0
- package/dist/v1/language/class/resolved.d.ts +119 -0
- package/dist/v1/language/class/resolved.js +1 -0
- package/dist/v1/language/core/index.d.ts +2 -0
- package/dist/v1/language/core/index.js +1 -0
- package/dist/v1/language/core/model/core.d.ts +20 -0
- package/dist/v1/language/core/model/core.js +1 -0
- package/dist/v1/language/core/resolved.d.ts +21 -0
- package/dist/v1/language/core/resolved.js +1 -0
- package/dist/v1/{schema → language/definition}/metadata.d.ts +0 -1
- package/dist/v1/{schema → language/definition}/metadata.js +0 -1
- package/dist/v1/language/definition.d.ts +7 -0
- package/dist/v1/language/definition.js +1 -0
- package/dist/v1/language/index.d.ts +26 -0
- package/dist/v1/language/index.js +3 -0
- package/dist/v1/{schema/policy/validation → language/policy/analysis}/branches.d.ts +4 -5
- package/dist/v1/{schema/policy/validation → language/policy/analysis}/branches.js +43 -24
- package/dist/v1/{schema/policy/validation → language/policy/analysis}/budgets.d.ts +1 -4
- package/dist/v1/language/policy/analysis/budgets.js +25 -0
- package/dist/v1/language/policy/index.d.ts +4 -0
- package/dist/v1/language/policy/index.js +2 -0
- package/dist/v1/{schema/policy/ast.d.ts → language/policy/model/policy.d.ts} +45 -10
- package/dist/v1/language/policy/model/policy.js +9 -0
- package/dist/v1/language/policy/normalization/normalize.d.ts +4 -0
- package/dist/v1/{schema/policy → language/policy/normalization}/normalize.js +65 -20
- package/dist/v1/language/policy/resolved.d.ts +9 -0
- package/dist/v1/language/policy/resolved.js +1 -0
- package/dist/v1/language/resolved.d.ts +10 -0
- package/dist/v1/language/resolved.js +1 -0
- package/dist/v1/language/state/index.d.ts +3 -0
- package/dist/v1/language/state/index.js +1 -0
- package/dist/v1/language/state/machine.d.ts +28 -0
- package/dist/v1/language/state/machine.js +40 -0
- package/dist/v1/language/state/topology.d.ts +14 -0
- package/dist/v1/language/state/topology.js +69 -0
- package/dist/v1/language/validation/diagnostic.d.ts +8 -0
- package/dist/v1/language/validation/diagnostic.js +3 -0
- package/dist/v1/language/value/compile/fields.d.ts +3 -0
- package/dist/v1/language/value/compile/fields.js +60 -0
- package/dist/v1/{schema/compiled/program.d.ts → language/value/compile/load.d.ts} +1 -2
- package/dist/v1/{schema/compiled/program.js → language/value/compile/load.js} +2 -3
- package/dist/v1/language/value/compile/model.d.ts +27 -0
- package/dist/v1/language/value/compile/model.js +1 -0
- package/dist/v1/{schema/value/instance → language/value/evaluate}/assertions.d.ts +0 -1
- package/dist/v1/{schema/value/instance → language/value/evaluate}/assertions.js +1 -2
- package/dist/v1/{schema/value/instance → language/value/evaluate}/evaluator.d.ts +0 -1
- package/dist/v1/{schema/value/instance → language/value/evaluate}/evaluator.js +3 -4
- package/dist/v1/{schema/value/instance → language/value/evaluate}/preparation.d.ts +2 -3
- package/dist/v1/{schema/value/instance → language/value/evaluate}/preparation.js +6 -8
- package/dist/v1/language/value/evaluate/program.d.ts +3 -0
- package/dist/v1/language/value/evaluate/program.js +16 -0
- package/dist/v1/{schema/value/instance → language/value/evaluate}/types.d.ts +4 -5
- package/dist/v1/{schema/value/instance → language/value/evaluate}/types.js +0 -1
- package/dist/v1/{schema/value/instance.validate.d.ts → language/value/evaluate/validate.d.ts} +4 -5
- package/dist/v1/{schema/value/instance.validate.js → language/value/evaluate/validate.js} +4 -5
- package/dist/v1/language/value/index.d.ts +11 -0
- package/dist/v1/language/value/index.js +8 -0
- package/dist/v1/{schema/value → language/value/model}/instant.d.ts +1 -1
- package/dist/v1/{schema/value → language/value/model}/instant.js +1 -1
- package/dist/v1/{schema/value → language/value/model}/object.d.ts +1 -1
- package/dist/v1/{schema/value → language/value/model}/object.js +0 -1
- package/dist/v1/{schema/value → language/value/model}/schema.d.ts +3 -4
- package/dist/v1/{schema/value → language/value/model}/schema.js +0 -2
- package/dist/v1/{schema → language}/value/ordering.d.ts +5 -3
- package/dist/v1/{schema → language}/value/ordering.js +15 -13
- package/dist/v1/{schema → language}/value/profile/canonicalize.d.ts +2 -3
- package/dist/v1/{schema → language}/value/profile/canonicalize.js +4 -7
- package/dist/v1/language/value/profile/json.validate.d.ts +2 -0
- package/dist/v1/{schema → language}/value/profile/json.validate.js +1 -2
- package/dist/v1/{schema → language}/value/profile/meta-schema.compiled.d.ts +0 -1
- package/dist/v1/{schema → language}/value/profile/meta-schema.compiled.js +0 -1
- package/dist/v1/language/value/profile/meta-schema.d.ts +4 -0
- package/dist/v1/{schema → language}/value/profile/meta-schema.js +1 -2
- package/dist/v1/language/value/profile/rules.d.ts +3 -0
- package/dist/v1/{schema → language}/value/profile/rules.js +7 -50
- package/dist/v1/language/value/profile/validate.d.ts +4 -0
- package/dist/v1/{schema → language}/value/profile/validate.js +13 -21
- package/dist/v1/{schema → language}/value/profile/vocabulary.d.ts +0 -1
- package/dist/v1/{schema → language}/value/profile/vocabulary.js +0 -1
- package/dist/v1/language/value/reference/closure.d.ts +11 -0
- package/dist/v1/{schema/value/resources → language/value/reference}/closure.js +13 -21
- package/dist/v1/{schema/value/resources → language/value/reference}/recursion.d.ts +3 -4
- package/dist/v1/{schema/value/resources → language/value/reference}/recursion.js +5 -6
- package/dist/v1/language/value/reference/references.d.ts +17 -0
- package/dist/v1/language/value/reference/references.js +45 -0
- package/dist/v1/{schema/value → language/value/reference}/registry.d.ts +9 -7
- package/dist/v1/language/value/reference/registry.index.d.ts +14 -0
- package/dist/v1/{schema/value/resources → language/value/reference}/registry.index.js +7 -45
- package/dist/v1/language/value/reference/registry.js +1 -0
- package/dist/v1/{schema → language}/value/regexp/ast.d.ts +0 -1
- package/dist/v1/{schema → language}/value/regexp/ast.js +0 -1
- package/dist/v1/{schema → language}/value/regexp/compile.d.ts +1 -2
- package/dist/v1/{schema → language}/value/regexp/compile.js +8 -12
- package/dist/v1/{schema → language}/value/regexp/lower.d.ts +1 -2
- package/dist/v1/{schema → language}/value/regexp/lower.js +2 -3
- package/dist/v1/{schema → language}/value/regexp/matcher.d.ts +1 -2
- package/dist/v1/{schema → language}/value/regexp/matcher.js +0 -1
- package/dist/v1/{schema → language}/value/regexp/pattern.d.ts +0 -1
- package/dist/v1/{schema → language}/value/regexp/pattern.js +0 -1
- package/dist/v1/{schema → language}/value/regexp/syntax.d.ts +0 -1
- package/dist/v1/{schema → language}/value/regexp/syntax.js +0 -1
- package/dist/v1/{schema/value → language/value/syntax}/full-match.d.ts +0 -1
- package/dist/v1/{schema/value → language/value/syntax}/full-match.js +5 -6
- package/dist/v1/{schema/value/location → language/value/syntax}/keywords.d.ts +0 -1
- package/dist/v1/{schema/value/location → language/value/syntax}/keywords.js +0 -1
- package/dist/v1/{schema/value/extensions → language/value/syntax}/node-path/schema.d.ts +1 -2
- package/dist/v1/{schema/value/extensions → language/value/syntax}/node-path/schema.js +2 -3
- package/dist/v1/language/value/syntax/node-path/validate.d.ts +4 -0
- package/dist/v1/{schema/value/extensions → language/value/syntax}/node-path/validate.js +16 -18
- package/dist/v1/{schema/value/location → language/value/syntax}/pointer.d.ts +0 -1
- package/dist/v1/{schema/value/location → language/value/syntax}/pointer.js +1 -2
- package/dist/v1/{schema/value/location → language/value/syntax}/walk.d.ts +1 -2
- package/dist/v1/{schema/value/location → language/value/syntax}/walk.js +1 -2
- package/dist/v1/language/view/index.d.ts +2 -0
- package/dist/v1/language/view/index.js +1 -0
- package/dist/v1/language/view/model/view.d.ts +11 -0
- package/dist/v1/language/view/model/view.js +1 -0
- package/dist/v1/language/view/resolved.d.ts +9 -0
- package/dist/v1/language/view/resolved.js +1 -0
- package/dist/v1/schema/admission/accept.d.ts +3 -0
- package/dist/v1/schema/{domain.accept.js → admission/accept.js} +8 -9
- package/dist/v1/schema/{definition/analysis.d.ts → analysis/class.d.ts} +17 -18
- package/dist/v1/schema/{definition/analysis.js → analysis/class.js} +21 -30
- package/dist/v1/schema/canonical/domain.d.ts +2 -2
- package/dist/v1/schema/canonical/domain.digest.d.ts +1 -2
- package/dist/v1/schema/canonical/domain.digest.js +2 -6
- package/dist/v1/schema/canonical/domain.js +3 -224
- package/dist/v1/schema/canonical/freeze.d.ts +0 -1
- package/dist/v1/schema/canonical/freeze.js +0 -1
- package/dist/v1/schema/{domain.revision.d.ts → canonical/revision.d.ts} +2 -3
- package/dist/v1/schema/{domain.revision.js → canonical/revision.js} +7 -5
- package/dist/v1/schema/codec/header.d.ts +17 -0
- package/dist/v1/schema/codec/header.js +26 -0
- package/dist/v1/schema/{domain.codec.d.ts → codec/schema.d.ts} +2 -3
- package/dist/v1/schema/{domain.codec.js → codec/schema.js} +4 -5
- package/dist/v1/schema/{dependency.meaning.d.ts → compatibility/meaning.d.ts} +4 -5
- package/dist/v1/schema/{dependency.meaning.js → compatibility/meaning.js} +121 -124
- package/dist/v1/schema/{domain.lookup.d.ts → dependency/lookup.d.ts} +3 -4
- package/dist/v1/schema/{domain.lookup.js → dependency/lookup.js} +1 -2
- package/dist/v1/schema/diagnostic.d.ts +7 -7
- package/dist/v1/schema/diagnostic.js +9 -9
- package/dist/v1/schema/index.d.ts +24 -40
- package/dist/v1/schema/index.js +11 -18
- package/dist/v1/schema/model/format.d.ts +2 -0
- package/dist/v1/schema/model/format.js +2 -0
- package/dist/v1/schema/model/schema.d.ts +30 -0
- package/dist/v1/schema/model/schema.js +4 -0
- package/dist/v1/schema/normalization/domain.d.ts +2 -0
- package/dist/v1/schema/normalization/domain.js +210 -0
- package/dist/v1/schema/resolution/closure.d.ts +3 -4
- package/dist/v1/schema/resolution/closure.js +6 -7
- package/dist/v1/schema/resolution/context.d.ts +11 -12
- package/dist/v1/schema/resolution/context.js +82 -50
- package/dist/v1/schema/resolution/definition.index.d.ts +13 -35
- package/dist/v1/schema/resolution/definition.index.js +8 -18
- package/dist/v1/schema/resolution/domain.d.ts +4 -0
- package/dist/v1/schema/resolution/domain.js +112 -0
- package/dist/v1/schema/resolution/origins.d.ts +11 -14
- package/dist/v1/schema/resolution/origins.js +52 -45
- package/dist/v1/schema/resolution/value.registry.d.ts +3 -4
- package/dist/v1/schema/resolution/value.registry.js +7 -14
- package/dist/v1/schema/revision.d.ts +1 -0
- package/dist/v1/schema/revision.js +1 -0
- package/dist/v1/schema/validation/class.d.ts +5 -0
- package/dist/v1/schema/validation/class.js +241 -0
- package/dist/v1/schema/validation/core.d.ts +5 -0
- package/dist/v1/schema/{core/validate.js → validation/core.js} +39 -30
- package/dist/v1/schema/validation/domain.d.ts +11 -0
- package/dist/v1/schema/{domain.validate.js → validation/domain.js} +12 -12
- package/dist/v1/schema/validation/domain.route.d.ts +1 -2
- package/dist/v1/schema/validation/domain.route.js +3 -4
- package/dist/v1/schema/validation/domain.structure.d.ts +3 -4
- package/dist/v1/schema/validation/domain.structure.js +217 -210
- package/dist/v1/schema/validation/policy/budgets.d.ts +4 -0
- package/dist/v1/schema/{policy/validation → validation/policy}/budgets.js +22 -35
- package/dist/v1/schema/validation/policy/context.d.ts +28 -0
- package/dist/v1/schema/{policy/validation → validation/policy}/context.js +23 -33
- package/dist/v1/schema/validation/policy/objects.d.ts +4 -0
- package/dist/v1/schema/validation/policy/objects.js +64 -0
- package/dist/v1/schema/{policy/validation → validation/policy}/references.d.ts +0 -1
- package/dist/v1/schema/{policy/validation → validation/policy}/references.js +32 -13
- package/dist/v1/schema/{policy/validation → validation/policy}/typing.d.ts +4 -8
- package/dist/v1/schema/{policy/validation → validation/policy}/typing.js +56 -69
- package/dist/v1/schema/{policy/validation → validation/policy}/uses.d.ts +0 -1
- package/dist/v1/schema/{policy/validation → validation/policy}/uses.js +36 -113
- package/dist/v1/schema/{policy/validation → validation/policy}/validate.d.ts +3 -4
- package/dist/v1/schema/{policy/validation → validation/policy}/validate.js +0 -1
- package/dist/v1/schema/{value/index.d.ts → validation/value-api.d.ts} +9 -10
- package/dist/v1/schema/{value/index.js → validation/value-api.js} +4 -5
- package/dist/v1/schema/validation/value.d.ts +4 -5
- package/dist/v1/schema/validation/value.js +4 -9
- package/dist/v1/schema/validation/view.d.ts +3 -0
- package/dist/v1/schema/{view/validate.js → validation/view.js} +11 -4
- package/dist/v1/value/full-match.d.ts +2 -0
- package/dist/v1/value/full-match.js +2 -0
- package/dist/v1.d.ts +1 -2
- package/dist/v1.js +1 -2
- package/dist/value/accept.d.ts +0 -1
- package/dist/value/accept.js +0 -1
- package/dist/value/canonical.d.ts +3 -1
- package/dist/value/canonical.js +11 -5
- package/dist/value/decode.d.ts +0 -1
- package/dist/value/decode.js +0 -1
- package/dist/value/equal.d.ts +0 -1
- package/dist/value/equal.js +0 -1
- package/dist/value/error.d.ts +0 -1
- package/dist/value/error.js +0 -1
- package/dist/value/index.d.ts +0 -1
- package/dist/value/index.js +0 -1
- package/dist/value/json.d.ts +1 -2
- package/dist/value/json.js +1 -2
- package/dist/value/limits.d.ts +0 -1
- package/dist/value/limits.js +0 -1
- package/dist/value/types.d.ts +0 -1
- package/dist/value/types.js +0 -1
- package/dist/value/unicode.d.ts +0 -1
- package/dist/value/unicode.js +0 -1
- package/dist/version/dispatch.d.ts +0 -1
- package/dist/version/dispatch.js +0 -1
- package/dist/version/index.d.ts +0 -1
- package/dist/version/index.js +0 -1
- package/package.json +53 -21
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/upgrade/contract.d.ts.map +0 -1
- package/dist/upgrade/contract.js.map +0 -1
- package/dist/upgrade/index.d.ts.map +0 -1
- package/dist/upgrade/index.js.map +0 -1
- package/dist/v1/addressing/index.d.ts.map +0 -1
- package/dist/v1/addressing/index.js.map +0 -1
- package/dist/v1/addressing/key.d.ts.map +0 -1
- package/dist/v1/addressing/key.js.map +0 -1
- package/dist/v1/addressing/patterns.d.ts.map +0 -1
- package/dist/v1/addressing/patterns.js.map +0 -1
- package/dist/v1/addressing/property-key.d.ts.map +0 -1
- package/dist/v1/addressing/property-key.js.map +0 -1
- package/dist/v1/addressing/ref.d.ts +0 -35
- package/dist/v1/addressing/ref.d.ts.map +0 -1
- package/dist/v1/addressing/ref.js +0 -94
- package/dist/v1/addressing/ref.js.map +0 -1
- package/dist/v1/addressing/schema-ref.d.ts +0 -8
- package/dist/v1/addressing/schema-ref.d.ts.map +0 -1
- package/dist/v1/addressing/schema-ref.js +0 -2
- package/dist/v1/addressing/schema-ref.js.map +0 -1
- package/dist/v1/builder/callable.d.ts +0 -91
- package/dist/v1/builder/callable.d.ts.map +0 -1
- package/dist/v1/builder/callable.js.map +0 -1
- package/dist/v1/builder/compiler/callable.d.ts +0 -20
- package/dist/v1/builder/compiler/callable.d.ts.map +0 -1
- package/dist/v1/builder/compiler/callable.js.map +0 -1
- package/dist/v1/builder/compiler/core.d.ts +0 -6
- package/dist/v1/builder/compiler/core.d.ts.map +0 -1
- package/dist/v1/builder/compiler/core.js.map +0 -1
- package/dist/v1/builder/compiler/core.properties.d.ts +0 -6
- package/dist/v1/builder/compiler/core.properties.d.ts.map +0 -1
- package/dist/v1/builder/compiler/core.properties.js.map +0 -1
- package/dist/v1/builder/compiler/definition.d.ts +0 -32
- package/dist/v1/builder/compiler/definition.d.ts.map +0 -1
- package/dist/v1/builder/compiler/definition.js +0 -197
- package/dist/v1/builder/compiler/definition.js.map +0 -1
- package/dist/v1/builder/compiler/policy.d.ts +0 -17
- package/dist/v1/builder/compiler/policy.d.ts.map +0 -1
- package/dist/v1/builder/compiler/policy.js.map +0 -1
- package/dist/v1/builder/compiler/schema.capture.d.ts.map +0 -1
- package/dist/v1/builder/compiler/schema.capture.js +0 -85
- package/dist/v1/builder/compiler/schema.capture.js.map +0 -1
- package/dist/v1/builder/compiler/schema.context.d.ts +0 -45
- package/dist/v1/builder/compiler/schema.context.d.ts.map +0 -1
- package/dist/v1/builder/compiler/schema.context.js.map +0 -1
- package/dist/v1/builder/compiler/schema.d.ts.map +0 -1
- package/dist/v1/builder/compiler/schema.js.map +0 -1
- package/dist/v1/builder/compiler/schema.ownership.d.ts +0 -9
- package/dist/v1/builder/compiler/schema.ownership.d.ts.map +0 -1
- package/dist/v1/builder/compiler/schema.ownership.js.map +0 -1
- package/dist/v1/builder/compiler/value.d.ts +0 -26
- package/dist/v1/builder/compiler/value.d.ts.map +0 -1
- package/dist/v1/builder/compiler/value.js.map +0 -1
- package/dist/v1/builder/compiler/value.path.d.ts +0 -4
- package/dist/v1/builder/compiler/value.path.d.ts.map +0 -1
- package/dist/v1/builder/compiler/value.path.js.map +0 -1
- package/dist/v1/builder/compiler/value.zod.d.ts.map +0 -1
- package/dist/v1/builder/compiler/value.zod.js.map +0 -1
- package/dist/v1/builder/compiler/view.d.ts +0 -12
- package/dist/v1/builder/compiler/view.d.ts.map +0 -1
- package/dist/v1/builder/compiler/view.js.map +0 -1
- package/dist/v1/builder/core.d.ts +0 -27
- package/dist/v1/builder/core.d.ts.map +0 -1
- package/dist/v1/builder/core.js +0 -21
- package/dist/v1/builder/core.js.map +0 -1
- package/dist/v1/builder/definition.d.ts +0 -155
- package/dist/v1/builder/definition.d.ts.map +0 -1
- package/dist/v1/builder/definition.js +0 -141
- package/dist/v1/builder/definition.js.map +0 -1
- package/dist/v1/builder/full-match.d.ts +0 -5
- package/dist/v1/builder/full-match.d.ts.map +0 -1
- package/dist/v1/builder/full-match.js +0 -12
- package/dist/v1/builder/full-match.js.map +0 -1
- package/dist/v1/builder/index.d.ts.map +0 -1
- package/dist/v1/builder/index.js.map +0 -1
- package/dist/v1/builder/internal/authoring.d.ts.map +0 -1
- package/dist/v1/builder/internal/authoring.js.map +0 -1
- package/dist/v1/builder/internal/authoring.lazy.d.ts.map +0 -1
- package/dist/v1/builder/internal/authoring.lazy.js.map +0 -1
- package/dist/v1/builder/internal/diagnostic.d.ts +0 -4
- package/dist/v1/builder/internal/diagnostic.d.ts.map +0 -1
- package/dist/v1/builder/internal/diagnostic.js +0 -16
- package/dist/v1/builder/internal/diagnostic.js.map +0 -1
- package/dist/v1/builder/internal/path.metadata.d.ts +0 -5
- package/dist/v1/builder/internal/path.metadata.d.ts.map +0 -1
- package/dist/v1/builder/internal/path.metadata.js.map +0 -1
- package/dist/v1/builder/path.d.ts +0 -9
- package/dist/v1/builder/path.d.ts.map +0 -1
- package/dist/v1/builder/path.js.map +0 -1
- package/dist/v1/builder/policy.d.ts.map +0 -1
- package/dist/v1/builder/policy.js +0 -79
- package/dist/v1/builder/policy.js.map +0 -1
- package/dist/v1/builder/property.d.ts +0 -37
- package/dist/v1/builder/property.d.ts.map +0 -1
- package/dist/v1/builder/property.js +0 -36
- package/dist/v1/builder/property.js.map +0 -1
- package/dist/v1/builder/schema.d.ts +0 -6
- package/dist/v1/builder/schema.d.ts.map +0 -1
- package/dist/v1/builder/schema.input.d.ts +0 -19
- package/dist/v1/builder/schema.input.d.ts.map +0 -1
- package/dist/v1/builder/schema.input.js +0 -2
- package/dist/v1/builder/schema.input.js.map +0 -1
- package/dist/v1/builder/schema.js.map +0 -1
- package/dist/v1/builder/value-schema.d.ts.map +0 -1
- package/dist/v1/builder/value-schema.js.map +0 -1
- package/dist/v1/builder/view.d.ts +0 -19
- package/dist/v1/builder/view.d.ts.map +0 -1
- package/dist/v1/builder/view.js +0 -7
- package/dist/v1/builder/view.js.map +0 -1
- package/dist/v1/builder.d.ts +0 -3
- package/dist/v1/builder.d.ts.map +0 -1
- package/dist/v1/builder.js +0 -2
- package/dist/v1/builder.js.map +0 -1
- package/dist/v1/bundle/codec.d.ts.map +0 -1
- package/dist/v1/bundle/codec.js.map +0 -1
- package/dist/v1/bundle/index.d.ts.map +0 -1
- package/dist/v1/bundle/index.js.map +0 -1
- package/dist/v1/bundle/model.d.ts.map +0 -1
- package/dist/v1/bundle/model.js.map +0 -1
- package/dist/v1/bundle/structure.d.ts.map +0 -1
- package/dist/v1/bundle/structure.js.map +0 -1
- package/dist/v1/bundle.d.ts +0 -3
- package/dist/v1/bundle.d.ts.map +0 -1
- package/dist/v1/bundle.js +0 -3
- package/dist/v1/bundle.js.map +0 -1
- package/dist/v1/index.d.ts.map +0 -1
- package/dist/v1/index.js.map +0 -1
- package/dist/v1/schema/callable.d.ts +0 -29
- package/dist/v1/schema/callable.d.ts.map +0 -1
- package/dist/v1/schema/callable.js +0 -2
- package/dist/v1/schema/callable.js.map +0 -1
- package/dist/v1/schema/canonical/domain.d.ts.map +0 -1
- package/dist/v1/schema/canonical/domain.digest.d.ts.map +0 -1
- package/dist/v1/schema/canonical/domain.digest.js.map +0 -1
- package/dist/v1/schema/canonical/domain.js.map +0 -1
- package/dist/v1/schema/canonical/freeze.d.ts.map +0 -1
- package/dist/v1/schema/canonical/freeze.js.map +0 -1
- package/dist/v1/schema/compiled/admission.d.ts +0 -4
- package/dist/v1/schema/compiled/admission.d.ts.map +0 -1
- package/dist/v1/schema/compiled/admission.js +0 -217
- package/dist/v1/schema/compiled/admission.js.map +0 -1
- package/dist/v1/schema/compiled/authored-validator.d.ts +0 -5
- package/dist/v1/schema/compiled/authored-validator.d.ts.map +0 -1
- package/dist/v1/schema/compiled/authored-validator.js +0 -7
- package/dist/v1/schema/compiled/authored-validator.js.map +0 -1
- package/dist/v1/schema/compiled/compiler.d.ts +0 -5
- package/dist/v1/schema/compiled/compiler.d.ts.map +0 -1
- package/dist/v1/schema/compiled/compiler.js +0 -86
- package/dist/v1/schema/compiled/compiler.js.map +0 -1
- package/dist/v1/schema/compiled/model.d.ts +0 -61
- package/dist/v1/schema/compiled/model.d.ts.map +0 -1
- package/dist/v1/schema/compiled/model.js +0 -2
- package/dist/v1/schema/compiled/model.js.map +0 -1
- package/dist/v1/schema/compiled/program.d.ts.map +0 -1
- package/dist/v1/schema/compiled/program.js.map +0 -1
- package/dist/v1/schema/compiled/validator.d.ts +0 -23
- package/dist/v1/schema/compiled/validator.d.ts.map +0 -1
- package/dist/v1/schema/compiled/validator.js +0 -62
- package/dist/v1/schema/compiled/validator.js.map +0 -1
- package/dist/v1/schema/core/declaration.d.ts +0 -17
- package/dist/v1/schema/core/declaration.d.ts.map +0 -1
- package/dist/v1/schema/core/declaration.js +0 -2
- package/dist/v1/schema/core/declaration.js.map +0 -1
- package/dist/v1/schema/core/validate.d.ts +0 -6
- package/dist/v1/schema/core/validate.d.ts.map +0 -1
- package/dist/v1/schema/core/validate.js.map +0 -1
- package/dist/v1/schema/definition/analysis.d.ts.map +0 -1
- package/dist/v1/schema/definition/analysis.js.map +0 -1
- package/dist/v1/schema/definition/class.d.ts +0 -28
- package/dist/v1/schema/definition/class.d.ts.map +0 -1
- package/dist/v1/schema/definition/class.js +0 -2
- package/dist/v1/schema/definition/class.js.map +0 -1
- package/dist/v1/schema/definition/data.d.ts.map +0 -1
- package/dist/v1/schema/definition/data.js.map +0 -1
- package/dist/v1/schema/definition/edge.d.ts.map +0 -1
- package/dist/v1/schema/definition/edge.js +0 -2
- package/dist/v1/schema/definition/edge.js.map +0 -1
- package/dist/v1/schema/definition/interface.d.ts +0 -22
- package/dist/v1/schema/definition/interface.d.ts.map +0 -1
- package/dist/v1/schema/definition/interface.js +0 -2
- package/dist/v1/schema/definition/interface.js.map +0 -1
- package/dist/v1/schema/definition/property.d.ts +0 -18
- package/dist/v1/schema/definition/property.d.ts.map +0 -1
- package/dist/v1/schema/definition/property.js +0 -2
- package/dist/v1/schema/definition/property.js.map +0 -1
- package/dist/v1/schema/definition/validate.d.ts +0 -5
- package/dist/v1/schema/definition/validate.d.ts.map +0 -1
- package/dist/v1/schema/definition/validate.js +0 -221
- package/dist/v1/schema/definition/validate.js.map +0 -1
- package/dist/v1/schema/dependency.meaning.d.ts.map +0 -1
- package/dist/v1/schema/dependency.meaning.js.map +0 -1
- package/dist/v1/schema/diagnostic.d.ts.map +0 -1
- package/dist/v1/schema/diagnostic.js.map +0 -1
- package/dist/v1/schema/domain.accept.d.ts +0 -4
- package/dist/v1/schema/domain.accept.d.ts.map +0 -1
- package/dist/v1/schema/domain.accept.js.map +0 -1
- package/dist/v1/schema/domain.codec.d.ts.map +0 -1
- package/dist/v1/schema/domain.codec.js.map +0 -1
- package/dist/v1/schema/domain.header.d.ts +0 -15
- package/dist/v1/schema/domain.header.d.ts.map +0 -1
- package/dist/v1/schema/domain.header.js +0 -21
- package/dist/v1/schema/domain.header.js.map +0 -1
- package/dist/v1/schema/domain.ir.d.ts +0 -40
- package/dist/v1/schema/domain.ir.d.ts.map +0 -1
- package/dist/v1/schema/domain.ir.js +0 -5
- package/dist/v1/schema/domain.ir.js.map +0 -1
- package/dist/v1/schema/domain.lookup.d.ts.map +0 -1
- package/dist/v1/schema/domain.lookup.js.map +0 -1
- package/dist/v1/schema/domain.resolve.d.ts +0 -26
- package/dist/v1/schema/domain.resolve.d.ts.map +0 -1
- package/dist/v1/schema/domain.resolve.js +0 -43
- package/dist/v1/schema/domain.resolve.js.map +0 -1
- package/dist/v1/schema/domain.revision.d.ts.map +0 -1
- package/dist/v1/schema/domain.revision.js.map +0 -1
- package/dist/v1/schema/domain.validate.d.ts +0 -12
- package/dist/v1/schema/domain.validate.d.ts.map +0 -1
- package/dist/v1/schema/domain.validate.js.map +0 -1
- package/dist/v1/schema/index.d.ts.map +0 -1
- package/dist/v1/schema/index.js.map +0 -1
- package/dist/v1/schema/metadata.d.ts.map +0 -1
- package/dist/v1/schema/metadata.js.map +0 -1
- package/dist/v1/schema/policy/ast.d.ts.map +0 -1
- package/dist/v1/schema/policy/ast.js +0 -2
- package/dist/v1/schema/policy/ast.js.map +0 -1
- package/dist/v1/schema/policy/normalize.d.ts +0 -5
- package/dist/v1/schema/policy/normalize.d.ts.map +0 -1
- package/dist/v1/schema/policy/normalize.js.map +0 -1
- package/dist/v1/schema/policy/validation/branches.d.ts.map +0 -1
- package/dist/v1/schema/policy/validation/branches.js.map +0 -1
- package/dist/v1/schema/policy/validation/budgets.d.ts.map +0 -1
- package/dist/v1/schema/policy/validation/budgets.js.map +0 -1
- package/dist/v1/schema/policy/validation/context.d.ts +0 -28
- package/dist/v1/schema/policy/validation/context.d.ts.map +0 -1
- package/dist/v1/schema/policy/validation/context.js.map +0 -1
- package/dist/v1/schema/policy/validation/references.d.ts.map +0 -1
- package/dist/v1/schema/policy/validation/references.js.map +0 -1
- package/dist/v1/schema/policy/validation/typing.d.ts.map +0 -1
- package/dist/v1/schema/policy/validation/typing.js.map +0 -1
- package/dist/v1/schema/policy/validation/uses.d.ts.map +0 -1
- package/dist/v1/schema/policy/validation/uses.js.map +0 -1
- package/dist/v1/schema/policy/validation/validate.d.ts.map +0 -1
- package/dist/v1/schema/policy/validation/validate.js.map +0 -1
- package/dist/v1/schema/reference.d.ts +0 -43
- package/dist/v1/schema/reference.d.ts.map +0 -1
- package/dist/v1/schema/reference.js +0 -31
- package/dist/v1/schema/reference.js.map +0 -1
- package/dist/v1/schema/resolution/closure.d.ts.map +0 -1
- package/dist/v1/schema/resolution/closure.js.map +0 -1
- package/dist/v1/schema/resolution/context.d.ts.map +0 -1
- package/dist/v1/schema/resolution/context.js.map +0 -1
- package/dist/v1/schema/resolution/definition.index.d.ts.map +0 -1
- package/dist/v1/schema/resolution/definition.index.js.map +0 -1
- package/dist/v1/schema/resolution/origins.d.ts.map +0 -1
- package/dist/v1/schema/resolution/origins.js.map +0 -1
- package/dist/v1/schema/resolution/value.registry.d.ts.map +0 -1
- package/dist/v1/schema/resolution/value.registry.js.map +0 -1
- package/dist/v1/schema/validation/domain.route.d.ts.map +0 -1
- package/dist/v1/schema/validation/domain.route.js.map +0 -1
- package/dist/v1/schema/validation/domain.structure.d.ts.map +0 -1
- package/dist/v1/schema/validation/domain.structure.js.map +0 -1
- package/dist/v1/schema/validation/value.d.ts.map +0 -1
- package/dist/v1/schema/validation/value.js.map +0 -1
- package/dist/v1/schema/value/extensions/node-path/schema.d.ts.map +0 -1
- package/dist/v1/schema/value/extensions/node-path/schema.js.map +0 -1
- package/dist/v1/schema/value/extensions/node-path/validate.d.ts +0 -5
- package/dist/v1/schema/value/extensions/node-path/validate.d.ts.map +0 -1
- package/dist/v1/schema/value/extensions/node-path/validate.js.map +0 -1
- package/dist/v1/schema/value/full-match.d.ts.map +0 -1
- package/dist/v1/schema/value/full-match.js.map +0 -1
- package/dist/v1/schema/value/index.d.ts.map +0 -1
- package/dist/v1/schema/value/index.js.map +0 -1
- package/dist/v1/schema/value/instance/assertions.d.ts.map +0 -1
- package/dist/v1/schema/value/instance/assertions.js.map +0 -1
- package/dist/v1/schema/value/instance/evaluator.d.ts.map +0 -1
- package/dist/v1/schema/value/instance/evaluator.js.map +0 -1
- package/dist/v1/schema/value/instance/preparation.d.ts.map +0 -1
- package/dist/v1/schema/value/instance/preparation.js.map +0 -1
- package/dist/v1/schema/value/instance/types.d.ts.map +0 -1
- package/dist/v1/schema/value/instance/types.js.map +0 -1
- package/dist/v1/schema/value/instance.validate.d.ts.map +0 -1
- package/dist/v1/schema/value/instance.validate.js.map +0 -1
- package/dist/v1/schema/value/instant.d.ts.map +0 -1
- package/dist/v1/schema/value/instant.js.map +0 -1
- package/dist/v1/schema/value/location/keywords.d.ts.map +0 -1
- package/dist/v1/schema/value/location/keywords.js.map +0 -1
- package/dist/v1/schema/value/location/pointer.d.ts.map +0 -1
- package/dist/v1/schema/value/location/pointer.js.map +0 -1
- package/dist/v1/schema/value/location/walk.d.ts.map +0 -1
- package/dist/v1/schema/value/location/walk.js.map +0 -1
- package/dist/v1/schema/value/object.d.ts.map +0 -1
- package/dist/v1/schema/value/object.js.map +0 -1
- package/dist/v1/schema/value/ordering.d.ts.map +0 -1
- package/dist/v1/schema/value/ordering.js.map +0 -1
- package/dist/v1/schema/value/profile/canonicalize.d.ts.map +0 -1
- package/dist/v1/schema/value/profile/canonicalize.js.map +0 -1
- package/dist/v1/schema/value/profile/dialect.d.ts +0 -5
- package/dist/v1/schema/value/profile/dialect.d.ts.map +0 -1
- package/dist/v1/schema/value/profile/dialect.js +0 -36
- package/dist/v1/schema/value/profile/dialect.js.map +0 -1
- package/dist/v1/schema/value/profile/json.validate.d.ts +0 -3
- package/dist/v1/schema/value/profile/json.validate.d.ts.map +0 -1
- package/dist/v1/schema/value/profile/json.validate.js.map +0 -1
- package/dist/v1/schema/value/profile/meta-schema.compiled.d.ts.map +0 -1
- package/dist/v1/schema/value/profile/meta-schema.compiled.js.map +0 -1
- package/dist/v1/schema/value/profile/meta-schema.d.ts +0 -5
- package/dist/v1/schema/value/profile/meta-schema.d.ts.map +0 -1
- package/dist/v1/schema/value/profile/meta-schema.js.map +0 -1
- package/dist/v1/schema/value/profile/rules.d.ts +0 -5
- package/dist/v1/schema/value/profile/rules.d.ts.map +0 -1
- package/dist/v1/schema/value/profile/rules.js.map +0 -1
- package/dist/v1/schema/value/profile/validate.d.ts +0 -5
- package/dist/v1/schema/value/profile/validate.d.ts.map +0 -1
- package/dist/v1/schema/value/profile/validate.js.map +0 -1
- package/dist/v1/schema/value/profile/vocabulary.d.ts.map +0 -1
- package/dist/v1/schema/value/profile/vocabulary.js.map +0 -1
- package/dist/v1/schema/value/regexp/ast.d.ts.map +0 -1
- package/dist/v1/schema/value/regexp/ast.js.map +0 -1
- package/dist/v1/schema/value/regexp/compile.d.ts.map +0 -1
- package/dist/v1/schema/value/regexp/compile.js.map +0 -1
- package/dist/v1/schema/value/regexp/linear.d.ts +0 -20
- package/dist/v1/schema/value/regexp/linear.d.ts.map +0 -1
- package/dist/v1/schema/value/regexp/linear.js +0 -24
- package/dist/v1/schema/value/regexp/linear.js.map +0 -1
- package/dist/v1/schema/value/regexp/lower.d.ts.map +0 -1
- package/dist/v1/schema/value/regexp/lower.js.map +0 -1
- package/dist/v1/schema/value/regexp/matcher.d.ts.map +0 -1
- package/dist/v1/schema/value/regexp/matcher.js.map +0 -1
- package/dist/v1/schema/value/regexp/pattern.d.ts.map +0 -1
- package/dist/v1/schema/value/regexp/pattern.js.map +0 -1
- package/dist/v1/schema/value/regexp/syntax.d.ts.map +0 -1
- package/dist/v1/schema/value/regexp/syntax.js.map +0 -1
- package/dist/v1/schema/value/registry.d.ts.map +0 -1
- package/dist/v1/schema/value/registry.js +0 -2
- package/dist/v1/schema/value/registry.js.map +0 -1
- package/dist/v1/schema/value/resources/closure.d.ts +0 -12
- package/dist/v1/schema/value/resources/closure.d.ts.map +0 -1
- package/dist/v1/schema/value/resources/closure.js.map +0 -1
- package/dist/v1/schema/value/resources/recursion.d.ts.map +0 -1
- package/dist/v1/schema/value/resources/recursion.js.map +0 -1
- package/dist/v1/schema/value/resources/references.d.ts +0 -25
- package/dist/v1/schema/value/resources/references.d.ts.map +0 -1
- package/dist/v1/schema/value/resources/references.js +0 -93
- package/dist/v1/schema/value/resources/references.js.map +0 -1
- package/dist/v1/schema/value/resources/registry.index.d.ts +0 -22
- package/dist/v1/schema/value/resources/registry.index.d.ts.map +0 -1
- package/dist/v1/schema/value/resources/registry.index.js.map +0 -1
- package/dist/v1/schema/value/schema.d.ts.map +0 -1
- package/dist/v1/schema/value/schema.js.map +0 -1
- package/dist/v1/schema/view/declaration.d.ts +0 -14
- package/dist/v1/schema/view/declaration.d.ts.map +0 -1
- package/dist/v1/schema/view/declaration.js +0 -2
- package/dist/v1/schema/view/declaration.js.map +0 -1
- package/dist/v1/schema/view/validate.d.ts +0 -4
- package/dist/v1/schema/view/validate.d.ts.map +0 -1
- package/dist/v1/schema/view/validate.js.map +0 -1
- package/dist/v1/schema.d.ts +0 -3
- package/dist/v1/schema.d.ts.map +0 -1
- package/dist/v1/schema.js +0 -3
- package/dist/v1/schema.js.map +0 -1
- package/dist/v1.d.ts.map +0 -1
- package/dist/v1.js.map +0 -1
- package/dist/value/accept.d.ts.map +0 -1
- package/dist/value/accept.js.map +0 -1
- package/dist/value/canonical.d.ts.map +0 -1
- package/dist/value/canonical.js.map +0 -1
- package/dist/value/decode.d.ts.map +0 -1
- package/dist/value/decode.js.map +0 -1
- package/dist/value/equal.d.ts.map +0 -1
- package/dist/value/equal.js.map +0 -1
- package/dist/value/error.d.ts.map +0 -1
- package/dist/value/error.js.map +0 -1
- package/dist/value/index.d.ts.map +0 -1
- package/dist/value/index.js.map +0 -1
- package/dist/value/json.d.ts.map +0 -1
- package/dist/value/json.js.map +0 -1
- package/dist/value/limits.d.ts.map +0 -1
- package/dist/value/limits.js.map +0 -1
- package/dist/value/types.d.ts.map +0 -1
- package/dist/value/types.js.map +0 -1
- package/dist/value/unicode.d.ts.map +0 -1
- package/dist/value/unicode.js.map +0 -1
- package/dist/version/dispatch.d.ts.map +0 -1
- package/dist/version/dispatch.js.map +0 -1
- package/dist/version/index.d.ts.map +0 -1
- package/dist/version/index.js.map +0 -1
|
@@ -1,43 +1,21 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type { DomainSchemaIR } from '../
|
|
4
|
-
|
|
5
|
-
export type
|
|
1
|
+
import type { ClassRef, DefinitionRef } from '../../addressing/index.js';
|
|
2
|
+
import type { ClassDefinition } from '../../language/class/model/class.js';
|
|
3
|
+
import type { DomainSchemaIR } from '../model/schema.js';
|
|
4
|
+
/** One exact Class declaration resolved within the retained Domain closure. */
|
|
5
|
+
export type IndexedClassDefinition = {
|
|
6
6
|
readonly ref: ClassRef;
|
|
7
|
-
readonly
|
|
7
|
+
readonly kind: 'node';
|
|
8
8
|
readonly owner: DomainSchemaIR;
|
|
9
|
-
readonly declaration: Extract<
|
|
10
|
-
readonly
|
|
9
|
+
readonly declaration: Extract<ClassDefinition, {
|
|
10
|
+
readonly kind: 'node';
|
|
11
11
|
}>;
|
|
12
12
|
} | {
|
|
13
13
|
readonly ref: ClassRef;
|
|
14
|
-
readonly
|
|
14
|
+
readonly kind: 'edge';
|
|
15
15
|
readonly owner: DomainSchemaIR;
|
|
16
|
-
readonly declaration: Extract<
|
|
17
|
-
readonly
|
|
18
|
-
}>;
|
|
19
|
-
} | {
|
|
20
|
-
readonly ref: InterfaceRef;
|
|
21
|
-
readonly family: 'both';
|
|
22
|
-
readonly owner: DomainSchemaIR;
|
|
23
|
-
readonly declaration: Extract<InterfaceDeclaration, {
|
|
24
|
-
readonly family: 'both';
|
|
25
|
-
}>;
|
|
26
|
-
} | {
|
|
27
|
-
readonly ref: InterfaceRef;
|
|
28
|
-
readonly family: 'node';
|
|
29
|
-
readonly owner: DomainSchemaIR;
|
|
30
|
-
readonly declaration: Extract<InterfaceDeclaration, {
|
|
31
|
-
readonly family: 'node';
|
|
32
|
-
}>;
|
|
33
|
-
} | {
|
|
34
|
-
readonly ref: InterfaceRef;
|
|
35
|
-
readonly family: 'edge';
|
|
36
|
-
readonly owner: DomainSchemaIR;
|
|
37
|
-
readonly declaration: Extract<InterfaceDeclaration, {
|
|
38
|
-
readonly family: 'edge';
|
|
16
|
+
readonly declaration: Extract<ClassDefinition, {
|
|
17
|
+
readonly kind: 'edge';
|
|
39
18
|
}>;
|
|
40
19
|
};
|
|
41
|
-
export declare function indexSchemaDefinitions(schema: DomainSchemaIR): ReadonlyMap<string,
|
|
42
|
-
export declare function resolveIndexedReference(indexes: ReadonlyMap<string,
|
|
43
|
-
//# sourceMappingURL=definition.index.d.ts.map
|
|
20
|
+
export declare function indexSchemaDefinitions(schema: DomainSchemaIR): ReadonlyMap<string, IndexedClassDefinition>;
|
|
21
|
+
export declare function resolveIndexedReference(indexes: ReadonlyMap<string, IndexedClassDefinition>, ref: DefinitionRef): IndexedClassDefinition | undefined;
|
|
@@ -1,27 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { definitionRefIndex } from '../../addressing/ordering.js';
|
|
2
2
|
export function indexSchemaDefinitions(schema) {
|
|
3
3
|
const result = new Map();
|
|
4
|
-
for (const [name, declaration] of Object.entries(schema.interfaces)) {
|
|
5
|
-
const ref = { origin: schema.origin, kind: 'interface', name };
|
|
6
|
-
result.set(schemaRefIndex(ref), {
|
|
7
|
-
ref,
|
|
8
|
-
family: declaration.family,
|
|
9
|
-
owner: schema,
|
|
10
|
-
declaration,
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
4
|
for (const [name, declaration] of Object.entries(schema.classes)) {
|
|
14
5
|
const ref = { origin: schema.origin, kind: 'class', name };
|
|
15
|
-
|
|
16
|
-
ref,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
declaration
|
|
20
|
-
}
|
|
6
|
+
if (declaration.kind === 'node') {
|
|
7
|
+
result.set(definitionRefIndex(ref), { ref, kind: 'node', owner: schema, declaration });
|
|
8
|
+
}
|
|
9
|
+
else {
|
|
10
|
+
result.set(definitionRefIndex(ref), { ref, kind: 'edge', owner: schema, declaration });
|
|
11
|
+
}
|
|
21
12
|
}
|
|
22
13
|
return result;
|
|
23
14
|
}
|
|
24
15
|
export function resolveIndexedReference(indexes, ref) {
|
|
25
|
-
return indexes.get(
|
|
16
|
+
return ref.kind === 'class' ? indexes.get(definitionRefIndex(ref)) : undefined;
|
|
26
17
|
}
|
|
27
|
-
//# sourceMappingURL=definition.index.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { SourceDomain } from '../../domain/model/domain.js';
|
|
2
|
+
import type { DomainSchema } from '../model/schema.js';
|
|
3
|
+
/** Resolve one accepted Schema through its exact retained source closure. */
|
|
4
|
+
export declare function resolve<const S extends DomainSchema>(schema: S): SourceDomain<S>;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { Key, MethodKey, PropertyKey } from '../../addressing/index.js';
|
|
2
|
+
import { compareUnicode } from '../../addressing/ordering.js';
|
|
3
|
+
import { createDomain, createSourceDomain } from '../../domain/create.js';
|
|
4
|
+
import { createDomainValidation, unknownInputField } from '../../domain/validation/create.js';
|
|
5
|
+
import { inputFieldNodes } from '../../language/value/compile/fields.js';
|
|
6
|
+
import { prepareValueSchema } from '../../language/value/evaluate/preparation.js';
|
|
7
|
+
import { validateValueProgram } from '../../language/value/evaluate/program.js';
|
|
8
|
+
import { validateJsonInstance } from '../../language/value/evaluate/validate.js';
|
|
9
|
+
import { classifyOrdering } from '../../language/value/ordering.js';
|
|
10
|
+
import { revisionOfDomainSchema } from '../canonical/revision.js';
|
|
11
|
+
import { SchemaError } from '../diagnostic.js';
|
|
12
|
+
import { validateDomainSchemaSemantics } from '../validation/domain.js';
|
|
13
|
+
import { lookupForDomainClosure } from './closure.js';
|
|
14
|
+
import { createDomainValueSchemaRegistry } from './value.registry.js';
|
|
15
|
+
const resolvedSchemas = new WeakMap();
|
|
16
|
+
/** Resolve one accepted Schema through its exact retained source closure. */
|
|
17
|
+
export function resolve(schema) {
|
|
18
|
+
const cached = resolvedSchemas.get(schema);
|
|
19
|
+
if (cached !== undefined)
|
|
20
|
+
return cached;
|
|
21
|
+
const resolved = resolveWithLookup(schema, lookupForDomainClosure(schema));
|
|
22
|
+
resolvedSchemas.set(schema, resolved);
|
|
23
|
+
return resolved;
|
|
24
|
+
}
|
|
25
|
+
function resolveWithLookup(schema, lookup) {
|
|
26
|
+
const validation = validateDomainSchemaSemantics(schema, lookup);
|
|
27
|
+
if (validation.diagnostics.length > 0)
|
|
28
|
+
throw new SchemaError(validation.diagnostics);
|
|
29
|
+
const closure = [schema, ...validation.context.dependencies.values()];
|
|
30
|
+
const registries = new Map(closure.map((owner) => [owner.origin, createDomainValueSchemaRegistry(owner, lookup)]));
|
|
31
|
+
const input = {
|
|
32
|
+
root: Object.freeze({
|
|
33
|
+
origin: schema.origin,
|
|
34
|
+
revision: revisionOfDomainSchema(schema),
|
|
35
|
+
}),
|
|
36
|
+
entries: Object.freeze(closure
|
|
37
|
+
.filter((owner, index, values) => values.findIndex(({ origin }) => origin === owner.origin) === index)
|
|
38
|
+
.map((owner) => Object.freeze({
|
|
39
|
+
origin: owner.origin,
|
|
40
|
+
revision: revisionOfDomainSchema(owner),
|
|
41
|
+
dependencies: owner.dependencies,
|
|
42
|
+
definitions: Object.freeze(definitionsOf(owner)),
|
|
43
|
+
coreEdges: owner.core.edges,
|
|
44
|
+
}))
|
|
45
|
+
.sort((left, right) => compareUnicode(left.origin, right.origin))),
|
|
46
|
+
validation: sourceValidation(closure, registries),
|
|
47
|
+
};
|
|
48
|
+
const domain = createDomain(input);
|
|
49
|
+
return createSourceDomain(domain, schema);
|
|
50
|
+
}
|
|
51
|
+
function sourceValidation(closure, registries) {
|
|
52
|
+
const properties = new Map();
|
|
53
|
+
const callables = new Map();
|
|
54
|
+
for (const owner of closure) {
|
|
55
|
+
const registry = registries.get(owner.origin);
|
|
56
|
+
if (registry === undefined)
|
|
57
|
+
throw new TypeError(`No Value registry exists for ${owner.origin}.`);
|
|
58
|
+
for (const definition of Object.values(owner.classes)) {
|
|
59
|
+
for (const [name, property] of Object.entries(definition.properties)) {
|
|
60
|
+
properties.set(PropertyKey.of(definition.ref, name), Object.freeze({
|
|
61
|
+
ordering: classifyOrdering(property.schema, registry),
|
|
62
|
+
validate: (input) => validateJsonInstance(property.schema, input, registry),
|
|
63
|
+
}));
|
|
64
|
+
}
|
|
65
|
+
if (definition.kind !== 'node')
|
|
66
|
+
continue;
|
|
67
|
+
for (const [name, method] of Object.entries(definition.methods)) {
|
|
68
|
+
callables.set(MethodKey.of(definition.ref, name), callableValidation(method.input, method.output.mode === 'binary'
|
|
69
|
+
? undefined
|
|
70
|
+
: method.output.mode === 'value'
|
|
71
|
+
? method.output.schema
|
|
72
|
+
: method.output.item, registry));
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
for (const definition of Object.values(owner.functions)) {
|
|
76
|
+
callables.set(Key.of(definition.ref), callableValidation(definition.input, definition.output.mode === 'binary'
|
|
77
|
+
? undefined
|
|
78
|
+
: definition.output.mode === 'value'
|
|
79
|
+
? definition.output.schema
|
|
80
|
+
: definition.output.item, registry));
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return createDomainValidation(properties, callables);
|
|
84
|
+
}
|
|
85
|
+
function callableValidation(input, output, registry) {
|
|
86
|
+
const prepared = prepareValueSchema(input, registry, '');
|
|
87
|
+
if (!prepared.compiled) {
|
|
88
|
+
throw new TypeError(`Accepted callable input cannot be prepared: ${prepared.message}`);
|
|
89
|
+
}
|
|
90
|
+
const inputProgram = prepared.value.program();
|
|
91
|
+
const fields = inputFieldNodes(inputProgram);
|
|
92
|
+
return Object.freeze({
|
|
93
|
+
...(fields === undefined ? {} : { fields: Object.freeze(Object.keys(fields)) }),
|
|
94
|
+
validateInput: (value) => validateJsonInstance(input, value, registry),
|
|
95
|
+
validateInputField(field, value) {
|
|
96
|
+
const nodes = fields?.[field];
|
|
97
|
+
return nodes === undefined
|
|
98
|
+
? unknownInputField(field)
|
|
99
|
+
: validateValueProgram(inputProgram, value, nodes);
|
|
100
|
+
},
|
|
101
|
+
validateOutput: (value) => output === undefined ? [] : validateJsonInstance(output, value, registry),
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
function definitionsOf(schema) {
|
|
105
|
+
return [
|
|
106
|
+
...Object.values(schema.classes),
|
|
107
|
+
...Object.values(schema.functions),
|
|
108
|
+
...Object.values(schema.policies),
|
|
109
|
+
...Object.values(schema.views),
|
|
110
|
+
...Object.values(schema.core.nodes),
|
|
111
|
+
];
|
|
112
|
+
}
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type { JsonSchema } from '../value/schema.js';
|
|
1
|
+
import type { DefinitionRef } from '../../addressing/index.js';
|
|
2
|
+
import type { FunctionDefinition, MethodDefinition } from '../../language/callable/model/callable.js';
|
|
3
|
+
import type { ClassDefinition } from '../../language/class/model/class.js';
|
|
4
|
+
import type { PolicyDefinition } from '../../language/policy/model/policy.js';
|
|
5
|
+
import type { JsonSchema } from '../../language/value/model/schema.js';
|
|
6
|
+
import type { DomainSchemaIR } from '../model/schema.js';
|
|
8
7
|
/** Collect only semantic refs, never strings or objects embedded as JSON data. */
|
|
9
8
|
export declare function collectUsedForeignOrigins(schema: DomainSchemaIR): ReadonlySet<string>;
|
|
10
9
|
/** Complete structured references in one schema, in canonical order. */
|
|
11
|
-
export declare function
|
|
12
|
-
export declare function
|
|
13
|
-
export declare function
|
|
14
|
-
export declare function
|
|
15
|
-
export declare function
|
|
16
|
-
export declare function collectValueSchemaRefs(schema: JsonSchema, add: (ref: SchemaRef) => void): void;
|
|
17
|
-
//# sourceMappingURL=origins.d.ts.map
|
|
10
|
+
export declare function collectDomainDefinitionRefs(schema: DomainSchemaIR): readonly DefinitionRef[];
|
|
11
|
+
export declare function collectClassRefs(declaration: ClassDefinition, add: (ref: DefinitionRef) => void): void;
|
|
12
|
+
export declare function collectCallableRefs(declaration: FunctionDefinition | MethodDefinition, add: (ref: DefinitionRef) => void): void;
|
|
13
|
+
export declare function collectPolicyDefinitionRefs(declaration: PolicyDefinition, add: (ref: DefinitionRef) => void): void;
|
|
14
|
+
export declare function collectValueDefinitionRefs(schema: JsonSchema, add: (ref: DefinitionRef) => void): void;
|
|
@@ -1,24 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { isValueObject as isJsonObject } from '
|
|
4
|
-
import {
|
|
1
|
+
import { compareDefinitionRefs, definitionRefIndex } from '../../addressing/ordering.js';
|
|
2
|
+
import { policyVariableClass } from '../../language/policy/model/policy.js';
|
|
3
|
+
import { isValueObject as isJsonObject } from '../../language/value/model/object.js';
|
|
4
|
+
import { walkSchema } from '../../language/value/syntax/walk.js';
|
|
5
5
|
/** Collect only semantic refs, never strings or objects embedded as JSON data. */
|
|
6
6
|
export function collectUsedForeignOrigins(schema) {
|
|
7
|
-
return new Set(
|
|
7
|
+
return new Set(collectDomainDefinitionRefs(schema)
|
|
8
8
|
.filter((ref) => ref.origin !== schema.origin)
|
|
9
9
|
.map((ref) => ref.origin));
|
|
10
10
|
}
|
|
11
11
|
/** Complete structured references in one schema, in canonical order. */
|
|
12
|
-
export function
|
|
12
|
+
export function collectDomainDefinitionRefs(schema) {
|
|
13
13
|
const result = new Map();
|
|
14
14
|
const add = (ref) => {
|
|
15
|
-
result.set(
|
|
15
|
+
result.set(definitionRefIndex(ref), ref);
|
|
16
16
|
};
|
|
17
|
-
for (const value of Object.values(schema.types))
|
|
18
|
-
collectValueSchemaRefs(value, add);
|
|
19
|
-
for (const declaration of Object.values(schema.interfaces)) {
|
|
20
|
-
collectInterfaceRefs(declaration, add);
|
|
21
|
-
}
|
|
22
17
|
for (const declaration of Object.values(schema.classes)) {
|
|
23
18
|
collectClassRefs(declaration, add);
|
|
24
19
|
}
|
|
@@ -26,7 +21,7 @@ export function collectDomainSchemaRefs(schema) {
|
|
|
26
21
|
collectCallableRefs(declaration, add);
|
|
27
22
|
}
|
|
28
23
|
for (const declaration of Object.values(schema.policies)) {
|
|
29
|
-
|
|
24
|
+
collectPolicyDefinitionRefs(declaration, add);
|
|
30
25
|
}
|
|
31
26
|
for (const declaration of Object.values(schema.views)) {
|
|
32
27
|
if (declaration.target.kind === 'definition')
|
|
@@ -34,29 +29,27 @@ export function collectDomainSchemaRefs(schema) {
|
|
|
34
29
|
}
|
|
35
30
|
for (const node of Object.values(schema.core.nodes))
|
|
36
31
|
add(node.class);
|
|
37
|
-
for (const edge of schema.core.edges)
|
|
32
|
+
for (const edge of schema.core.edges) {
|
|
38
33
|
add(edge.class);
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
collectValueSchemaRefs(declaration.properties, add);
|
|
44
|
-
if ('methods' in declaration) {
|
|
45
|
-
Object.values(declaration.methods).forEach((method) => collectCallableRefs(method, add));
|
|
34
|
+
if (edge.source.kind !== 'domain')
|
|
35
|
+
add(edge.source);
|
|
36
|
+
if (edge.target.kind !== 'domain')
|
|
37
|
+
add(edge.target);
|
|
46
38
|
}
|
|
47
|
-
|
|
48
|
-
collectEndpointRefs(declaration, add);
|
|
39
|
+
return Object.freeze([...result.values()].sort(compareDefinitionRefs));
|
|
49
40
|
}
|
|
50
41
|
export function collectClassRefs(declaration, add) {
|
|
51
|
-
declaration.
|
|
52
|
-
|
|
53
|
-
if (declaration.
|
|
42
|
+
declaration.extends.forEach(add);
|
|
43
|
+
Object.values(declaration.properties).forEach((property) => collectValueDefinitionRefs(property.schema, add));
|
|
44
|
+
if (declaration.policies.read !== undefined)
|
|
45
|
+
add(declaration.policies.read);
|
|
46
|
+
if (declaration.policies.traverse !== undefined)
|
|
47
|
+
add(declaration.policies.traverse);
|
|
48
|
+
if (declaration.kind === 'edge') {
|
|
54
49
|
collectEndpointRefs(declaration, add);
|
|
55
50
|
return;
|
|
56
51
|
}
|
|
57
52
|
Object.values(declaration.methods).forEach((method) => collectCallableRefs(method, add));
|
|
58
|
-
if (declaration.policies.read !== undefined)
|
|
59
|
-
add(declaration.policies.read);
|
|
60
53
|
}
|
|
61
54
|
function collectEndpointRefs(declaration, add) {
|
|
62
55
|
const endpoints = declaration.orientation === 'directed'
|
|
@@ -66,29 +59,45 @@ function collectEndpointRefs(declaration, add) {
|
|
|
66
59
|
endpoints[1].accepts.forEach(add);
|
|
67
60
|
}
|
|
68
61
|
export function collectCallableRefs(declaration, add) {
|
|
69
|
-
|
|
62
|
+
collectValueDefinitionRefs(declaration.input, add);
|
|
70
63
|
if (declaration.output.mode === 'value')
|
|
71
|
-
|
|
64
|
+
collectValueDefinitionRefs(declaration.output.schema, add);
|
|
72
65
|
if (declaration.output.mode === 'stream')
|
|
73
|
-
|
|
66
|
+
collectValueDefinitionRefs(declaration.output.item, add);
|
|
74
67
|
if (declaration.policy !== undefined)
|
|
75
68
|
collectPolicyCheckRefs(declaration.policy, add);
|
|
76
69
|
}
|
|
77
|
-
export function
|
|
78
|
-
|
|
79
|
-
|
|
70
|
+
export function collectPolicyDefinitionRefs(declaration, add) {
|
|
71
|
+
collectPolicyExpressionRefs(declaration.expression, add);
|
|
72
|
+
}
|
|
73
|
+
function collectPolicyExpressionRefs(expression, add) {
|
|
74
|
+
if ('match' in expression) {
|
|
75
|
+
collectPolicyPatternRefs(expression.match, add);
|
|
80
76
|
return;
|
|
81
77
|
}
|
|
82
|
-
const refs = 'allOf' in
|
|
78
|
+
const refs = 'allOf' in expression ? expression.allOf : expression.anyOf;
|
|
83
79
|
refs.forEach(add);
|
|
84
80
|
}
|
|
85
81
|
function collectPolicyPatternRefs(expression, add) {
|
|
82
|
+
if ('sameNode' in expression) {
|
|
83
|
+
for (const term of [expression.sameNode.left, expression.sameNode.right])
|
|
84
|
+
if (term.kind === 'ref')
|
|
85
|
+
add(term.ref);
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
86
88
|
if ('source' in expression) {
|
|
89
|
+
for (const term of [expression.source, expression.target])
|
|
90
|
+
if (term.kind === 'ref')
|
|
91
|
+
add(term.ref);
|
|
87
92
|
add(expression.class);
|
|
88
93
|
return;
|
|
89
94
|
}
|
|
90
95
|
if ('exists' in expression) {
|
|
91
|
-
expression.exists.nodes.forEach((node) =>
|
|
96
|
+
expression.exists.nodes.forEach((node) => {
|
|
97
|
+
const ref = policyVariableClass(node);
|
|
98
|
+
if (ref !== undefined)
|
|
99
|
+
add(ref);
|
|
100
|
+
});
|
|
92
101
|
collectPolicyPatternRefs(expression.exists.where, add);
|
|
93
102
|
return;
|
|
94
103
|
}
|
|
@@ -96,6 +105,12 @@ function collectPolicyPatternRefs(expression, add) {
|
|
|
96
105
|
children.forEach((child) => collectPolicyPatternRefs(child, add));
|
|
97
106
|
}
|
|
98
107
|
function collectPolicyCheckRefs(expression, add) {
|
|
108
|
+
if ('sameNode' in expression) {
|
|
109
|
+
for (const term of [expression.sameNode.left, expression.sameNode.right])
|
|
110
|
+
if (term.kind === 'ref')
|
|
111
|
+
add(term.ref);
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
99
114
|
if ('check' in expression) {
|
|
100
115
|
add(expression.check);
|
|
101
116
|
if (expression.object.kind === 'ref')
|
|
@@ -105,17 +120,10 @@ function collectPolicyCheckRefs(expression, add) {
|
|
|
105
120
|
const children = 'allOf' in expression ? expression.allOf : expression.anyOf;
|
|
106
121
|
children.forEach((child) => collectPolicyCheckRefs(child, add));
|
|
107
122
|
}
|
|
108
|
-
export function
|
|
123
|
+
export function collectValueDefinitionRefs(schema, add) {
|
|
109
124
|
walkSchema(schema, ({ schema: current }) => {
|
|
110
125
|
if (!isJsonObject(current))
|
|
111
126
|
return;
|
|
112
|
-
if (typeof current.$ref === 'string') {
|
|
113
|
-
const named = parseNamedTypeReference(current.$ref);
|
|
114
|
-
if (named !== undefined) {
|
|
115
|
-
const ref = { origin: named.origin, kind: 'type', name: named.name };
|
|
116
|
-
add(ref);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
127
|
const annotation = current['x-astrale-path'];
|
|
120
128
|
if (!isJsonObject(annotation) || !Array.isArray(annotation.accepts))
|
|
121
129
|
return;
|
|
@@ -129,4 +137,3 @@ export function collectValueSchemaRefs(schema, add) {
|
|
|
129
137
|
}
|
|
130
138
|
});
|
|
131
139
|
}
|
|
132
|
-
//# sourceMappingURL=origins.js.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { DomainSchemaLookup } from '../
|
|
3
|
-
import type {
|
|
1
|
+
import type { ValueSchemaRegistry } from '../../language/value/reference/registry.js';
|
|
2
|
+
import type { DomainSchemaLookup } from '../dependency/lookup.js';
|
|
3
|
+
import type { DomainSchema } from '../model/schema.js';
|
|
4
4
|
import type { DomainResolutionContext } from './context.js';
|
|
5
5
|
/** Build the exact value-schema resource closure for one installed Domain. */
|
|
6
6
|
export declare function createDomainValueSchemaRegistry(schema: DomainSchema, lookup?: DomainSchemaLookup): ValueSchemaRegistry;
|
|
7
7
|
export declare function createValueSchemaRegistry(context: DomainResolutionContext): ValueSchemaRegistry;
|
|
8
|
-
//# sourceMappingURL=value.registry.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { graphNodePathSchema } from '../../language/value/syntax/node-path/schema.js';
|
|
2
|
+
import { revisionOfDomainSchema } from '../canonical/revision.js';
|
|
3
3
|
import { lookupForDomainClosure } from './closure.js';
|
|
4
4
|
import { buildDomainResolutionContext } from './context.js';
|
|
5
5
|
/** Build the exact value-schema resource closure for one installed Domain. */
|
|
@@ -9,7 +9,7 @@ export function createDomainValueSchemaRegistry(schema, lookup = lookupForDomain
|
|
|
9
9
|
export function createValueSchemaRegistry(context) {
|
|
10
10
|
const directDependencies = [];
|
|
11
11
|
const transitiveDependencies = [];
|
|
12
|
-
const directOrigins = new Set(context.candidate.dependencies.map(({ origin }) => origin));
|
|
12
|
+
const directOrigins = new Set(Object.values(context.candidate.dependencies).map(({ origin }) => origin));
|
|
13
13
|
for (const schema of context.dependencies.values()) {
|
|
14
14
|
const entry = {
|
|
15
15
|
...domainValueRegistry(schema),
|
|
@@ -28,19 +28,12 @@ export function createValueSchemaRegistry(context) {
|
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
function domainValueRegistry(schema) {
|
|
31
|
-
const nodeDefinitions =
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
.map(([name]) => ({ origin: schema.origin, kind: 'interface', name })),
|
|
35
|
-
...Object.entries(schema.classes)
|
|
36
|
-
.filter(([, declaration]) => declaration.family === 'node')
|
|
37
|
-
.map(([name]) => ({ origin: schema.origin, kind: 'class', name })),
|
|
38
|
-
];
|
|
31
|
+
const nodeDefinitions = Object.entries(schema.classes)
|
|
32
|
+
.filter(([, declaration]) => declaration.kind === 'node')
|
|
33
|
+
.map(([name]) => ({ origin: schema.origin, kind: 'class', name }));
|
|
39
34
|
return Object.freeze({
|
|
40
35
|
origin: schema.origin,
|
|
41
|
-
dependencies: schema.dependencies,
|
|
42
|
-
types: schema.types,
|
|
36
|
+
dependencies: Object.values(schema.dependencies),
|
|
43
37
|
nodeDefinitions: Object.freeze(nodeDefinitions),
|
|
44
38
|
});
|
|
45
39
|
}
|
|
46
|
-
//# sourceMappingURL=value.registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { revisionOfDomainSchema as revision } from './canonical/revision.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { revisionOfDomainSchema as revision } from './canonical/revision.js';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DefinitionAnalysisResult } from '../analysis/class.js';
|
|
2
|
+
import type { SchemaDiagnostic } from '../diagnostic.js';
|
|
3
|
+
import type { DomainResolutionContext } from '../resolution/context.js';
|
|
4
|
+
/** Validate the semantic contracts owned by Class declarations. */
|
|
5
|
+
export declare function validateDefinitions(environment: DomainResolutionContext, analysis: DefinitionAnalysisResult): readonly SchemaDiagnostic[];
|