@astrale-os/kernel-dsl 1.0.0-beta.2 → 1.0.0-beta.21
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/v1/addressing/class-key.js +3 -3
- package/dist/v1/addressing/definition-ref.js +21 -37
- package/dist/v1/addressing/domain-dependency.d.ts +0 -6
- package/dist/v1/addressing/domain-dependency.js +1 -6
- package/dist/v1/addressing/key.d.ts +4 -1
- package/dist/v1/addressing/key.js +23 -3
- package/dist/v1/addressing/ordering.d.ts +2 -0
- package/dist/v1/addressing/ordering.js +4 -0
- package/dist/v1/addressing/patterns.d.ts +1 -1
- package/dist/v1/addressing/patterns.js +2 -6
- package/dist/v1/builder/callable/authoring.d.ts +11 -5
- package/dist/v1/builder/callable/authoring.js +2 -0
- package/dist/v1/builder/class/authoring.d.ts +94 -224
- package/dist/v1/builder/class/authoring.js +31 -33
- package/dist/v1/builder/class/handle.d.ts +27 -0
- package/dist/v1/builder/class/handle.js +1 -0
- package/dist/v1/builder/class/input.d.ts +159 -0
- package/dist/v1/builder/class/projection.d.ts +129 -0
- package/dist/v1/builder/class/projection.js +1 -0
- package/dist/v1/builder/class/property.d.ts +3 -9
- package/dist/v1/builder/class/property.js +1 -0
- package/dist/v1/builder/core/authoring.d.ts +1 -1
- package/dist/v1/builder/index.d.ts +6 -2
- package/dist/v1/builder/lowering/callable.js +1 -0
- package/dist/v1/builder/lowering/class.d.ts +9 -1
- package/dist/v1/builder/lowering/class.js +62 -17
- package/dist/v1/builder/lowering/policy.js +2 -0
- package/dist/v1/builder/lowering/property-keys.d.ts +27 -0
- package/dist/v1/builder/lowering/property-keys.js +108 -0
- package/dist/v1/builder/lowering/schema/compile.js +11 -6
- package/dist/v1/builder/lowering/schema/context.d.ts +9 -1
- package/dist/v1/builder/lowering/schema/context.js +36 -4
- package/dist/v1/builder/lowering/schema/lifetime.d.ts +11 -0
- package/dist/v1/builder/lowering/schema/lifetime.js +55 -0
- package/dist/v1/builder/lowering/value/path.d.ts +1 -1
- package/dist/v1/builder/lowering/value/path.js +2 -4
- package/dist/v1/builder/lowering/value/zod.js +1 -3
- package/dist/v1/builder/policy/authoring.d.ts +80 -9
- package/dist/v1/builder/policy/authoring.js +99 -68
- package/dist/v1/builder/policy/legacy/edge.d.ts +28 -0
- package/dist/v1/builder/policy/legacy/edge.js +16 -0
- package/dist/v1/builder/schema/define.d.ts +0 -1
- package/dist/v1/builder/schema/diagnostic.d.ts +3 -2
- package/dist/v1/builder/schema/diagnostic.js +5 -10
- package/dist/v1/builder/schema/input.d.ts +1 -1
- package/dist/v1/builder/schema/projection/callable.d.ts +7 -5
- package/dist/v1/builder/schema/projection/class.d.ts +118 -15
- package/dist/v1/builder/schema/projection/core-input.d.ts +2 -1
- package/dist/v1/builder/schema/projection/identity.d.ts +2 -1
- package/dist/v1/builder/schema/projection/model.d.ts +4 -2
- package/dist/v1/builder/schema/projection/property.d.ts +1 -1
- package/dist/v1/builder/schema/projection/resolved-class.d.ts +2 -1
- package/dist/v1/builder/schema/projection.d.ts +1 -1
- package/dist/v1/builder/value/full-match.d.ts +0 -1
- package/dist/v1/builder/value/full-match.js +0 -1
- package/dist/v1/builder/value/path-metadata.d.ts +1 -1
- package/dist/v1/builder/value/path.d.ts +1 -1
- package/dist/v1/bundle/codec.js +11 -13
- package/dist/v1/bundle/diagnostic.d.ts +2 -0
- package/dist/v1/bundle/diagnostic.js +9 -7
- package/dist/v1/bundle/model.js +1 -1
- package/dist/v1/bundle/structure.js +4 -6
- package/dist/v1/compiled/admission/accept.js +4 -10
- package/dist/v1/compiled/admission/closure.js +2 -2
- package/dist/v1/compiled/admission/diagnostic.d.ts +1 -1
- package/dist/v1/compiled/admission/diagnostic.js +1 -3
- package/dist/v1/compiled/admission/revision.d.ts +9 -1
- package/dist/v1/compiled/admission/revision.js +6 -3
- package/dist/v1/compiled/admission/semantics/class.d.ts +4 -1
- package/dist/v1/compiled/admission/semantics/class.js +37 -12
- package/dist/v1/compiled/admission/semantics/core.d.ts +1 -24
- package/dist/v1/compiled/admission/semantics/core.js +56 -24
- package/dist/v1/compiled/admission/semantics/edge.d.ts +2 -4
- package/dist/v1/compiled/admission/semantics/edge.js +6 -65
- package/dist/v1/compiled/admission/semantics/policy/callable.js +0 -2
- package/dist/v1/compiled/admission/semantics/policy/contracts.d.ts +5 -20
- package/dist/v1/compiled/admission/semantics/policy/contracts.js +8 -21
- package/dist/v1/compiled/admission/semantics/policy/parity.js +40 -43
- package/dist/v1/compiled/admission/semantics/policy/pattern.d.ts +4 -1
- package/dist/v1/compiled/admission/semantics/policy/pattern.js +4 -16
- package/dist/v1/compiled/admission/semantics/policy/typing.d.ts +2 -24
- package/dist/v1/compiled/admission/semantics/policy/typing.js +19 -201
- package/dist/v1/compiled/admission/wire/callable.js +11 -1
- package/dist/v1/compiled/admission/wire/class.js +73 -21
- package/dist/v1/compiled/admission/wire/policy.d.ts +4 -3
- package/dist/v1/compiled/admission/wire/policy.js +8 -7
- package/dist/v1/compiled/compiler/compile.js +8 -8
- package/dist/v1/compiled/diagnostic.js +2 -3
- package/dist/v1/compiled/loader/load.d.ts +3 -2
- package/dist/v1/compiled/loader/load.js +11 -45
- package/dist/v1/domain/create.js +9 -10
- package/dist/v1/domain/model/domain.d.ts +2 -7
- package/dist/v1/domain/model/input.d.ts +15 -10
- package/dist/v1/domain/namespace/member-collection.js +4 -6
- package/dist/v1/domain/projection/classes.js +11 -8
- package/dist/v1/domain/validation/create.d.ts +5 -16
- package/dist/v1/domain/validation/create.js +22 -73
- package/dist/v1/index.d.ts +2 -1
- package/dist/v1/language/.spec/schemas/draft-2020-12.schema.json +462 -0
- package/dist/v1/language/.spec/schemas/value-schema.schema.json +22 -0
- package/dist/v1/language/callable/admission.d.ts +15 -0
- package/dist/v1/language/callable/admission.js +43 -0
- package/dist/v1/language/callable/model/callable.d.ts +10 -0
- package/dist/v1/language/callable/resolved.d.ts +16 -3
- package/dist/v1/language/class/inheritance.d.ts +36 -5
- package/dist/v1/language/class/inheritance.js +87 -1
- package/dist/v1/language/class/lifetime.d.ts +50 -11
- package/dist/v1/language/class/lifetime.js +89 -20
- package/dist/v1/language/class/model/class.d.ts +45 -9
- package/dist/v1/language/class/model/edge.d.ts +31 -2
- package/dist/v1/language/class/model/property.d.ts +16 -7
- package/dist/v1/language/class/property-values.js +2 -4
- package/dist/v1/language/class/unique.d.ts +143 -0
- package/dist/v1/language/class/unique.js +264 -0
- package/dist/v1/language/core/facts.d.ts +85 -0
- package/dist/v1/language/core/facts.js +116 -0
- package/dist/v1/language/definition/metadata.d.ts +5 -0
- package/dist/v1/language/definition/metadata.js +7 -0
- package/dist/v1/language/freeze.d.ts +5 -0
- package/dist/v1/{schema/canonical → language}/freeze.js +4 -0
- package/dist/v1/language/index.d.ts +7 -2
- package/dist/v1/language/index.js +5 -1
- package/dist/v1/language/limits.d.ts +64 -0
- package/dist/v1/language/limits.js +60 -0
- package/dist/v1/language/policy/analysis/branches.d.ts +8 -0
- package/dist/v1/language/policy/analysis/branches.js +2 -1
- package/dist/v1/language/policy/analysis/budgets.d.ts +45 -12
- package/dist/v1/language/policy/analysis/budgets.js +133 -19
- package/dist/v1/language/policy/analysis/checks.js +3 -2
- package/dist/v1/language/policy/analysis/typing.d.ts +51 -0
- package/dist/v1/language/policy/analysis/typing.js +455 -0
- package/dist/v1/language/policy/model/policy.d.ts +49 -9
- package/dist/v1/language/policy/model/policy.js +14 -0
- package/dist/v1/language/policy/normalization/normalize.d.ts +6 -6
- package/dist/v1/language/policy/normalization/normalize.js +22 -21
- package/dist/v1/language/validation/diagnostic.d.ts +15 -1
- package/dist/v1/language/validation/diagnostic.js +21 -0
- package/dist/v1/language/validation/rule.d.ts +45 -0
- package/dist/v1/language/validation/rule.js +109 -0
- package/dist/v1/language/value/compile/fields.js +4 -8
- package/dist/v1/language/value/evaluate/program.d.ts +2 -1
- package/dist/v1/language/value/evaluate/program.js +2 -2
- package/dist/v1/language/value/evaluate/validate.d.ts +2 -2
- package/dist/v1/language/value/evaluate/validate.js +6 -2
- package/dist/v1/language/value/evaluate/validity.optimization.d.ts +14 -0
- package/dist/v1/language/value/evaluate/validity.optimization.js +342 -0
- package/dist/v1/language/value/inclusion/arrays.d.ts +3 -0
- package/dist/v1/language/value/inclusion/arrays.js +85 -0
- package/dist/v1/language/value/inclusion/assertions.d.ts +18 -0
- package/dist/v1/language/value/inclusion/assertions.js +29 -0
- package/dist/v1/language/value/inclusion/combinators.d.ts +3 -0
- package/dist/v1/language/value/inclusion/combinators.js +67 -0
- package/dist/v1/language/value/inclusion/equivalence.d.ts +4 -0
- package/dist/v1/language/value/inclusion/equivalence.js +74 -0
- package/dist/v1/language/value/inclusion/evidence.d.ts +34 -0
- package/dist/v1/language/value/inclusion/evidence.js +138 -0
- package/dist/v1/language/value/inclusion/includes.d.ts +17 -0
- package/dist/v1/language/value/inclusion/includes.js +25 -719
- package/dist/v1/language/value/inclusion/keywords.d.ts +5 -0
- package/dist/v1/language/value/inclusion/keywords.js +31 -0
- package/dist/v1/language/value/inclusion/kinds.d.ts +17 -0
- package/dist/v1/language/value/inclusion/kinds.js +57 -0
- package/dist/v1/language/value/inclusion/location.d.ts +24 -0
- package/dist/v1/language/value/inclusion/location.js +63 -0
- package/dist/v1/language/value/inclusion/numbers.d.ts +3 -0
- package/dist/v1/language/value/inclusion/numbers.js +41 -0
- package/dist/v1/language/value/inclusion/objects.d.ts +3 -0
- package/dist/v1/language/value/inclusion/objects.js +190 -0
- package/dist/v1/language/value/inclusion/strings.d.ts +3 -0
- package/dist/v1/language/value/inclusion/strings.js +29 -0
- package/dist/v1/language/value/inclusion/types.d.ts +3 -0
- package/dist/v1/language/value/inclusion/types.js +11 -0
- package/dist/v1/language/value/ordering.d.ts +14 -0
- package/dist/v1/language/value/ordering.js +86 -9
- package/dist/v1/language/value/profile/canonicalize.js +6 -5
- package/dist/v1/language/value/profile/json.validate.d.ts +3 -1
- package/dist/v1/language/value/profile/json.validate.js +3 -2
- package/dist/v1/language/value/profile/meta-schema.compiled.js +4 -1
- package/dist/v1/language/value/profile/rules.js +17 -43
- package/dist/v1/language/value/profile/validate.js +1 -10
- package/dist/v1/language/value/profile/vocabulary.d.ts +35 -2
- package/dist/v1/language/value/profile/vocabulary.js +52 -5
- package/dist/v1/language/value/reference/closure.js +3 -4
- package/dist/v1/language/value/reference/recursion.js +2 -22
- package/dist/v1/language/value/reference/registry.index.d.ts +2 -0
- package/dist/v1/language/value/reference/registry.index.js +33 -16
- package/dist/v1/language/value/regexp/ast.js +6 -7
- package/dist/v1/language/value/regexp/compile.d.ts +5 -11
- package/dist/v1/language/value/regexp/compile.js +14 -12
- package/dist/v1/language/value/regexp/syntax.js +3 -2
- package/dist/v1/language/value/syntax/keywords.d.ts +3 -3
- package/dist/v1/language/value/syntax/keywords.js +4 -20
- package/dist/v1/language/value/syntax/node-path/validate.js +2 -3
- package/dist/v1/language/value/syntax/pointer.d.ts +2 -0
- package/dist/v1/language/value/syntax/pointer.js +5 -2
- package/dist/v1/language/value/syntax/walk.d.ts +2 -0
- package/dist/v1/language/value/syntax/walk.js +19 -20
- package/dist/v1/schema/.spec/schemas/domain-schema.schema.json +2519 -0
- package/dist/v1/schema/admission/accept.js +3 -14
- package/dist/v1/schema/admission/callable.d.ts +21 -0
- package/dist/v1/schema/admission/callable.js +96 -0
- package/dist/v1/schema/analysis/class.js +33 -15
- package/dist/v1/schema/canonical/revision.js +4 -4
- package/dist/v1/schema/compatibility/api.d.ts +2 -1
- package/dist/v1/schema/compatibility/api.js +1 -0
- package/dist/v1/schema/compatibility/comparators/callables.js +1 -1
- package/dist/v1/schema/compatibility/comparators/classes.d.ts +9 -4
- package/dist/v1/schema/compatibility/comparators/classes.js +29 -8
- package/dist/v1/schema/compatibility/comparators/index.d.ts +1 -1
- package/dist/v1/schema/compatibility/comparators/members.js +1 -1
- package/dist/v1/schema/compatibility/comparators/values.js +2 -2
- package/dist/v1/schema/compatibility/coordinate.js +3 -3
- package/dist/v1/schema/compatibility/diff.js +2 -4
- package/dist/v1/schema/compatibility/extension.d.ts +11 -0
- package/dist/v1/schema/compatibility/extension.js +22 -0
- package/dist/v1/schema/compatibility/fields.d.ts +20 -4
- package/dist/v1/schema/compatibility/fields.js +13 -3
- package/dist/v1/schema/compatibility/meaning/footprint.js +16 -50
- package/dist/v1/schema/compatibility/model.d.ts +17 -5
- package/dist/v1/schema/compatibility/report.js +1 -1
- package/dist/v1/schema/compatibility/scope.d.ts +2 -0
- package/dist/v1/schema/compatibility/scope.js +4 -1
- package/dist/v1/schema/compatibility/structure/index.js +6 -4
- package/dist/v1/schema/compatibility/structure/requirements.js +57 -58
- package/dist/v1/schema/compatibility/versioning/index.js +1 -1
- package/dist/v1/schema/compatibility/versioning/surface.d.ts +1 -1
- package/dist/v1/schema/compatibility/versioning/surface.js +30 -2
- package/dist/v1/schema/compatibility/walk.d.ts +17 -0
- package/dist/v1/schema/compatibility/walk.js +41 -0
- package/dist/v1/schema/diagnostic.d.ts +17 -3
- package/dist/v1/schema/diagnostic.js +14 -11
- package/dist/v1/schema/index.d.ts +10 -1
- package/dist/v1/schema/index.js +4 -0
- package/dist/v1/schema/model/schema.d.ts +20 -1
- package/dist/v1/schema/model/schema.js +1 -1
- package/dist/v1/schema/normalization/domain.d.ts +2 -0
- package/dist/v1/schema/normalization/domain.js +29 -9
- package/dist/v1/schema/resolution/closure.js +2 -1
- package/dist/v1/schema/resolution/context.js +13 -13
- package/dist/v1/schema/resolution/domain.d.ts +5 -0
- package/dist/v1/schema/resolution/domain.js +2 -2
- package/dist/v1/schema/resolution/origins.js +3 -2
- package/dist/v1/schema/rule.d.ts +26 -0
- package/dist/v1/schema/rule.js +440 -0
- package/dist/v1/schema/validation/callable.d.ts +35 -2
- package/dist/v1/schema/validation/callable.js +65 -9
- package/dist/v1/schema/validation/class.d.ts +6 -2
- package/dist/v1/schema/validation/class.js +127 -104
- package/dist/v1/schema/validation/core.js +90 -168
- package/dist/v1/schema/validation/domain.js +4 -13
- package/dist/v1/schema/validation/domain.json-schema.d.ts +15 -0
- package/dist/v1/schema/validation/domain.json-schema.js +197 -0
- package/dist/v1/schema/validation/domain.route.d.ts +6 -1
- package/dist/v1/schema/validation/domain.route.js +18 -0
- package/dist/v1/schema/validation/domain.structure.d.ts +7780 -0
- package/dist/v1/schema/validation/domain.structure.js +398 -147
- package/dist/v1/schema/validation/json.json-schema.d.ts +40 -0
- package/dist/v1/schema/validation/json.json-schema.js +46 -0
- package/dist/v1/schema/validation/policy/budgets.d.ts +33 -2
- package/dist/v1/schema/validation/policy/budgets.js +87 -121
- package/dist/v1/schema/validation/policy/context.d.ts +6 -5
- package/dist/v1/schema/validation/policy/context.js +7 -10
- package/dist/v1/schema/validation/policy/objects.d.ts +1 -1
- package/dist/v1/schema/validation/policy/objects.js +6 -14
- package/dist/v1/schema/validation/policy/references.js +11 -27
- package/dist/v1/schema/validation/policy/typing.d.ts +3 -18
- package/dist/v1/schema/validation/policy/typing.js +22 -356
- package/dist/v1/schema/validation/policy/uses.d.ts +40 -3
- package/dist/v1/schema/validation/policy/uses.js +66 -89
- package/dist/v1/schema/validation/policy/validate.js +5 -5
- package/dist/v1/schema/validation/value-api.d.ts +22 -0
- package/dist/v1/schema/validation/value-api.js +34 -1
- package/dist/v1/schema/validation/value.d.ts +3 -0
- package/dist/v1/schema/validation/value.js +9 -17
- package/dist/v1/schema/validation/value.json-schema.d.ts +49 -0
- package/dist/v1/schema/validation/value.json-schema.js +137 -0
- package/dist/v1/schema/validation/view.js +4 -8
- package/dist/value/canonical.d.ts +6 -0
- package/dist/value/canonical.js +36 -0
- package/dist/value/decode.d.ts +7 -0
- package/dist/value/decode.js +159 -9
- package/dist/value/index.d.ts +1 -1
- package/dist/value/json.d.ts +2 -2
- package/dist/value/json.js +2 -2
- package/dist/value/types.d.ts +6 -0
- package/dist/value/unicode.d.ts +2 -1
- package/dist/value/unicode.js +2 -0
- package/package.json +8 -1
- package/dist/v1/builder/lowering/core-properties.d.ts +0 -10
- package/dist/v1/builder/lowering/core-properties.js +0 -76
- package/dist/v1/compiled/admission/semantics/cardinality.d.ts +0 -5
- package/dist/v1/compiled/admission/semantics/cardinality.js +0 -113
- package/dist/v1/compiled/admission/semantics/policy/equality.d.ts +0 -8
- package/dist/v1/compiled/admission/semantics/policy/equality.js +0 -27
- package/dist/v1/compiled/admission/semantics/policy/measure.d.ts +0 -9
- package/dist/v1/compiled/admission/semantics/policy/measure.js +0 -81
- package/dist/v1/compiled/admission/semantics/policy/variants.d.ts +0 -10
- package/dist/v1/compiled/admission/semantics/policy/variants.js +0 -65
- package/dist/v1/language/class/index.d.ts +0 -8
- package/dist/v1/language/class/index.js +0 -1
- package/dist/v1/language/core/index.d.ts +0 -2
- package/dist/v1/language/value/index.d.ts +0 -11
- package/dist/v1/language/value/index.js +0 -8
- package/dist/v1/schema/canonical/domain.d.ts +0 -3
- package/dist/v1/schema/canonical/domain.digest.d.ts +0 -3
- package/dist/v1/schema/canonical/domain.digest.js +0 -5
- package/dist/v1/schema/canonical/domain.js +0 -5
- package/dist/v1/schema/canonical/freeze.d.ts +0 -1
- /package/dist/v1/{language/core/index.js → builder/class/input.js} +0 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Key, MethodKey, PropertyKey as PropertyKeyValue } from '../../addressing/index.js';
|
|
2
2
|
import { compareUnicode } from '../../addressing/ordering.js';
|
|
3
3
|
import { createDomain } from '../../domain/create.js';
|
|
4
|
-
import {
|
|
4
|
+
import { createDomainValidation, unknownInputField } from '../../domain/validation/create.js';
|
|
5
5
|
import { bindValueProgram } from '../../language/value/compile/load.js';
|
|
6
6
|
import { validateValueProgram } from '../../language/value/evaluate/program.js';
|
|
7
7
|
import { acceptCompiledSchema } from '../admission/accept.js';
|
|
8
|
+
import { schemaOf, sourceFunction, sourceMethod } from '../admission/revision.js';
|
|
8
9
|
export function load(input) {
|
|
9
10
|
return realize(acceptCompiledSchema(input));
|
|
10
11
|
}
|
|
@@ -14,13 +15,14 @@ export function load(input) {
|
|
|
14
15
|
*/
|
|
15
16
|
export function realize(compiled) {
|
|
16
17
|
const entries = new Map(compiled.closure.map((entry) => [entry.origin, loadEntry(entry)]));
|
|
18
|
+
const loaded = [...entries.values()];
|
|
17
19
|
const root = entries.get(compiled.root.origin);
|
|
18
20
|
if (root === undefined || root.entry.revision !== compiled.root.revision) {
|
|
19
21
|
throw new TypeError('Compiled root is absent or has the wrong revision.');
|
|
20
22
|
}
|
|
21
23
|
return createDomain({
|
|
22
24
|
root: compiled.root,
|
|
23
|
-
entries: Object.freeze(
|
|
25
|
+
entries: Object.freeze(loaded
|
|
24
26
|
.map(({ entry, definitions }) => Object.freeze({
|
|
25
27
|
origin: entry.origin,
|
|
26
28
|
revision: entry.revision,
|
|
@@ -29,7 +31,8 @@ export function realize(compiled) {
|
|
|
29
31
|
coreEdges: entry.facts.core,
|
|
30
32
|
}))
|
|
31
33
|
.sort((left, right) => compareUnicode(left.origin, right.origin))),
|
|
32
|
-
|
|
34
|
+
// Closure admission refuses a duplicate Definition, so no two entries share a key.
|
|
35
|
+
validation: createDomainValidation(new Map(loaded.flatMap(({ properties }) => [...properties])), new Map(loaded.flatMap(({ callables }) => [...callables]))),
|
|
33
36
|
});
|
|
34
37
|
}
|
|
35
38
|
function loadEntry(entry) {
|
|
@@ -52,13 +55,13 @@ function loadEntry(entry) {
|
|
|
52
55
|
const methods = Object.fromEntries(compiled.methods.map((method) => {
|
|
53
56
|
const key = MethodKey.of(compiled.ref, method.name);
|
|
54
57
|
callablePrograms.set(key, callableProgram(method));
|
|
55
|
-
return [method.name,
|
|
58
|
+
return [method.name, Object.freeze(sourceMethod(entry, method))];
|
|
56
59
|
}));
|
|
57
60
|
return Object.freeze({ ...definition, properties, methods });
|
|
58
61
|
});
|
|
59
62
|
const functions = entry.definitions.functions.map((compiled) => {
|
|
60
63
|
callablePrograms.set(Key.of(compiled.ref), callableProgram(compiled));
|
|
61
|
-
return
|
|
64
|
+
return Object.freeze(sourceFunction(entry, compiled));
|
|
62
65
|
});
|
|
63
66
|
return {
|
|
64
67
|
entry,
|
|
@@ -69,46 +72,9 @@ function loadEntry(entry) {
|
|
|
69
72
|
...entry.definitions.views,
|
|
70
73
|
...entry.definitions.core,
|
|
71
74
|
]),
|
|
72
|
-
|
|
75
|
+
...programValidation(entry.values.map((value) => bindValueProgram(value, entry.patterns)), propertyPrograms, propertyOrdering, callablePrograms),
|
|
73
76
|
};
|
|
74
77
|
}
|
|
75
|
-
function loadMethod(entry, value) {
|
|
76
|
-
const { name: _, input, fields: __, output, ...definition } = value;
|
|
77
|
-
return Object.freeze({
|
|
78
|
-
...definition,
|
|
79
|
-
input: schemaOf(entry, input),
|
|
80
|
-
output: loadOutput(entry, output),
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
function loadFunction(entry, value) {
|
|
84
|
-
const { input, fields: _, output, ...definition } = value;
|
|
85
|
-
return Object.freeze({
|
|
86
|
-
...definition,
|
|
87
|
-
input: typeof input === 'number'
|
|
88
|
-
? schemaOf(entry, input)
|
|
89
|
-
: {
|
|
90
|
-
mode: 'binary',
|
|
91
|
-
metadata: schemaOf(entry, input.metadata),
|
|
92
|
-
maximumBytes: input.maximumBytes,
|
|
93
|
-
},
|
|
94
|
-
output: loadOutput(entry, output),
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
function loadOutput(entry, output) {
|
|
98
|
-
if (output.mode === 'binary')
|
|
99
|
-
return output;
|
|
100
|
-
const schema = schemaOf(entry, output.value);
|
|
101
|
-
return output.mode === 'value'
|
|
102
|
-
? { mode: 'value', schema }
|
|
103
|
-
: { mode: 'stream', item: schema };
|
|
104
|
-
}
|
|
105
|
-
function schemaOf(entry, index) {
|
|
106
|
-
const program = entry.values[index];
|
|
107
|
-
const root = program?.nodes[program.root];
|
|
108
|
-
if (root === undefined)
|
|
109
|
-
throw new TypeError(`Compiled Value program ${index} is absent.`);
|
|
110
|
-
return root.schema;
|
|
111
|
-
}
|
|
112
78
|
function callableProgram(value) {
|
|
113
79
|
return {
|
|
114
80
|
input: typeof value.input === 'number' ? value.input : value.input.metadata,
|
|
@@ -141,7 +107,7 @@ function programValidation(programs, properties, propertyOrdering, callables) {
|
|
|
141
107
|
...(callable.fields === undefined
|
|
142
108
|
? {}
|
|
143
109
|
: { fields: Object.freeze(Object.keys(callable.fields)) }),
|
|
144
|
-
validateInput: (value) => validateValueProgram(input, value),
|
|
110
|
+
validateInput: (value, options) => validateValueProgram(input, value, [input.root], options),
|
|
145
111
|
validateInputField(field, value) {
|
|
146
112
|
const nodes = callable.fields?.[field];
|
|
147
113
|
return nodes === undefined
|
|
@@ -151,5 +117,5 @@ function programValidation(programs, properties, propertyOrdering, callables) {
|
|
|
151
117
|
validateOutput: (value) => output === undefined ? [] : validateValueProgram(output, value),
|
|
152
118
|
}));
|
|
153
119
|
}
|
|
154
|
-
return
|
|
120
|
+
return { properties: propertyValidation, callables: callableValidation };
|
|
155
121
|
}
|
package/dist/v1/domain/create.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Key, MethodKey } from '../addressing/index.js';
|
|
2
|
+
import { compareCodeUnits } from '../addressing/ordering.js';
|
|
2
3
|
import { frozenRecord } from './namespace/member-collection.js';
|
|
3
4
|
import { createClasses } from './projection/classes.js';
|
|
4
5
|
const admittedDomains = new WeakSet();
|
|
@@ -43,7 +44,7 @@ export function createDomain(input) {
|
|
|
43
44
|
const visibleOrigins = new Set(visibleEntries.map(({ origin }) => origin));
|
|
44
45
|
const local = [...definitionsByKey.values()]
|
|
45
46
|
.filter(({ ref }) => ref.origin === entry.origin)
|
|
46
|
-
.sort((left, right) =>
|
|
47
|
+
.sort((left, right) => compareCodeUnits(left.key, right.key));
|
|
47
48
|
const classes = namespace(local, 'class');
|
|
48
49
|
const functions = namespace(local, 'function');
|
|
49
50
|
const policies = namespace(local, 'policy');
|
|
@@ -86,7 +87,7 @@ export function createDomain(input) {
|
|
|
86
87
|
revision: entry.revision,
|
|
87
88
|
closure: Object.freeze(visibleEntries
|
|
88
89
|
.map(({ origin, revision }) => Object.freeze({ origin, revision }))
|
|
89
|
-
.sort((left, right) =>
|
|
90
|
+
.sort((left, right) => compareCodeUnits(left.origin, right.origin))),
|
|
90
91
|
dependencies,
|
|
91
92
|
classes,
|
|
92
93
|
functions,
|
|
@@ -122,7 +123,7 @@ function createDefinitions(declarations, classesByKey, input) {
|
|
|
122
123
|
continue;
|
|
123
124
|
if (isFunctionDefinition(definition)) {
|
|
124
125
|
const key = Key.of(definition.ref);
|
|
125
|
-
const
|
|
126
|
+
const { fields, validateInput, validateInputField, validateOutput } = input.validation.callable(key);
|
|
126
127
|
const resolved = Object.freeze({
|
|
127
128
|
ref: definition.ref,
|
|
128
129
|
key,
|
|
@@ -130,13 +131,14 @@ function createDefinitions(declarations, classesByKey, input) {
|
|
|
130
131
|
input: definition.input,
|
|
131
132
|
output: definition.output,
|
|
132
133
|
...(definition.execution === undefined ? {} : { execution: definition.execution }),
|
|
134
|
+
...(definition.admission === undefined ? {} : { admission: definition.admission }),
|
|
133
135
|
auth: definition.auth,
|
|
134
136
|
policy: definition.policy,
|
|
135
|
-
...(
|
|
137
|
+
...(fields === undefined ? {} : { inputFields: fields }),
|
|
136
138
|
definition,
|
|
137
|
-
validateInput
|
|
138
|
-
validateInputField
|
|
139
|
-
validateOutput
|
|
139
|
+
validateInput,
|
|
140
|
+
validateInputField,
|
|
141
|
+
validateOutput,
|
|
140
142
|
});
|
|
141
143
|
definitionsByKey.set(key, resolved);
|
|
142
144
|
continue;
|
|
@@ -249,6 +251,3 @@ function isViewDefinition(value) {
|
|
|
249
251
|
function isCoreDefinition(value) {
|
|
250
252
|
return value.ref.kind === 'core';
|
|
251
253
|
}
|
|
252
|
-
function compare(left, right) {
|
|
253
|
-
return left < right ? -1 : left > right ? 1 : 0;
|
|
254
|
-
}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import type { DefinitionKey, DefinitionRef, Key, Revision } from '../../addressing/index.js';
|
|
2
2
|
import type { DomainDependency } from '../../addressing/index.js';
|
|
3
|
-
import type { MethodOwnerKeyOf, ResolvedCallable, ResolvedFunction } from '../../language/
|
|
4
|
-
import type { AnyResolvedClass } from '../../language/class/resolved.js';
|
|
5
|
-
import type { ResolvedCoreDefinition, ResolvedCoreEdge } from '../../language/core/resolved.js';
|
|
6
|
-
import type { ResolvedPolicy } from '../../language/policy/resolved.js';
|
|
7
|
-
import type { ResolvedDefinition, ResolvedDefinitionOf } from '../../language/resolved.js';
|
|
8
|
-
import type { ResolvedView } from '../../language/view/resolved.js';
|
|
3
|
+
import type { AnyResolvedClass, MethodOwnerKeyOf, PropertyInputOf, ResolvedCallable, ResolvedCoreDefinition, ResolvedCoreEdge, ResolvedDefinition, ResolvedDefinitionOf, ResolvedFunction, ResolvedPolicy, ResolvedView } from '../../language/index.js';
|
|
9
4
|
export type ClassNamespace<Classes extends Readonly<Record<string, unknown>> = Readonly<Record<string, AnyResolvedClass>>> = Readonly<Classes>;
|
|
10
5
|
export type FunctionNamespace<Functions extends Readonly<Record<string, unknown>> = Readonly<Record<string, ResolvedFunction>>> = Readonly<Functions>;
|
|
11
6
|
export type PolicyNamespace<Policies extends Readonly<Record<string, unknown>> = Readonly<Record<string, ResolvedPolicy>>> = Readonly<Policies>;
|
|
@@ -53,6 +48,6 @@ export type MethodOwnerOf<Work extends Domain, Method> = Extract<ClassesOf<Work>
|
|
|
53
48
|
export type FunctionsOf<Value> = Value extends Domain<Readonly<Record<string, unknown>>, infer Functions> ? Functions : never;
|
|
54
49
|
export type PoliciesOf<Value> = Value extends Domain<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>, infer Policies> ? Policies : never;
|
|
55
50
|
export type ViewsOf<Value> = Value extends Domain<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>, infer Views> ? Views : never;
|
|
56
|
-
export type PropertyInputFor<Class extends AnyResolvedClass> =
|
|
51
|
+
export type PropertyInputFor<Class extends AnyResolvedClass> = PropertyInputOf<Class>;
|
|
57
52
|
export type PropertyValuesFor<Class extends AnyResolvedClass> = ReturnType<Class['properties']['from']>;
|
|
58
53
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Options } from '@astrale-os/kernel-dsl/value';
|
|
1
2
|
import type { Key as AddressKey, PropertyKey, Revision } from '../../addressing/index.js';
|
|
2
3
|
import type { DomainDependency, DomainDependencyMap } from '../../addressing/index.js';
|
|
3
4
|
import type { CoreEdge } from '../../language/core/model/core.js';
|
|
@@ -21,14 +22,18 @@ export interface DomainInput {
|
|
|
21
22
|
}
|
|
22
23
|
/** Already-bound validation semantics supplied by source compilation or compiled loading. */
|
|
23
24
|
export interface DomainValidation {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
25
|
+
property(key: PropertyKey): PropertyValidation;
|
|
26
|
+
callable(key: AddressKey.Callable): CallableValidation;
|
|
27
|
+
}
|
|
28
|
+
export interface PropertyValidation {
|
|
29
|
+
readonly ordering?: OrderingKind;
|
|
30
|
+
validate(input: unknown): readonly Diagnostic[];
|
|
31
|
+
/** The admitted program `validate` evaluates. */
|
|
32
|
+
program(): ValueProgram;
|
|
33
|
+
}
|
|
34
|
+
export interface CallableValidation {
|
|
35
|
+
readonly fields?: readonly string[];
|
|
36
|
+
validateInput(input: unknown, options?: Options): readonly Diagnostic[];
|
|
37
|
+
validateInputField(field: string, input: unknown): readonly Diagnostic[];
|
|
38
|
+
validateOutput(output: unknown): readonly Diagnostic[];
|
|
34
39
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { PropertyKey as PropertyKeyValue } from '../../addressing/index.js';
|
|
2
|
+
import { compareCodeUnits } from '../../addressing/ordering.js';
|
|
2
3
|
import { createPropertyValues } from '../../language/class/property-values.js';
|
|
3
4
|
const PROPERTY_OPERATIONS = new Set(['byKey', 'get', 'from']);
|
|
4
5
|
const METHOD_OPERATIONS = new Set(['byKey', 'get']);
|
|
5
6
|
export function createPropertyCollection(values) {
|
|
6
|
-
const ordered = [...values].sort((left, right) =>
|
|
7
|
+
const ordered = [...values].sort((left, right) => compareCodeUnits(left.key, right.key));
|
|
7
8
|
const byKey = frozenRecord(ordered.map((value) => [value.key, value]));
|
|
8
9
|
const named = uniqueNames(ordered);
|
|
9
10
|
const collection = {
|
|
@@ -39,7 +40,7 @@ export function createPropertyCollection(values) {
|
|
|
39
40
|
return Object.freeze(collection);
|
|
40
41
|
}
|
|
41
42
|
export function createMethodCollection(values) {
|
|
42
|
-
const ordered = [...values].sort((left, right) =>
|
|
43
|
+
const ordered = [...values].sort((left, right) => compareCodeUnits(left.key, right.key));
|
|
43
44
|
const byKey = frozenRecord(ordered.map((value) => [value.key, value]));
|
|
44
45
|
const named = uniqueNames(ordered);
|
|
45
46
|
const collection = {
|
|
@@ -71,11 +72,8 @@ function installShortcuts(target, named, reserved) {
|
|
|
71
72
|
}
|
|
72
73
|
export function frozenRecord(entries) {
|
|
73
74
|
const output = Object.create(null);
|
|
74
|
-
for (const [key, value] of [...entries].sort(([left], [right]) =>
|
|
75
|
+
for (const [key, value] of [...entries].sort(([left], [right]) => compareCodeUnits(left, right))) {
|
|
75
76
|
Object.defineProperty(output, key, { enumerable: true, value });
|
|
76
77
|
}
|
|
77
78
|
return Object.freeze(output);
|
|
78
79
|
}
|
|
79
|
-
function compare(left, right) {
|
|
80
|
-
return left < right ? -1 : left > right ? 1 : 0;
|
|
81
|
-
}
|
|
@@ -38,15 +38,15 @@ export function createClasses(definitions, validation) {
|
|
|
38
38
|
const ownProperties = [];
|
|
39
39
|
for (const [name, propertyDefinition] of Object.entries(definition.properties)) {
|
|
40
40
|
const propertyKey = PropertyKeyValue.of(ref, name);
|
|
41
|
-
const ordering = validation.
|
|
41
|
+
const { ordering, validate, program } = validation.property(propertyKey);
|
|
42
42
|
const property = Object.freeze({
|
|
43
43
|
owner: shell,
|
|
44
44
|
name,
|
|
45
45
|
key: propertyKey,
|
|
46
46
|
definition: propertyDefinition,
|
|
47
47
|
...(ordering === undefined ? {} : { ordering }),
|
|
48
|
-
validate
|
|
49
|
-
program
|
|
48
|
+
validate,
|
|
49
|
+
program,
|
|
50
50
|
});
|
|
51
51
|
ownProperties.push(property);
|
|
52
52
|
effectiveProperties.set(property.key, property);
|
|
@@ -59,7 +59,7 @@ export function createClasses(definitions, validation) {
|
|
|
59
59
|
if (definition.kind === 'node') {
|
|
60
60
|
for (const [name, methodDefinition] of Object.entries(definition.methods)) {
|
|
61
61
|
const methodKey = MethodKeyValue.of(ref, name);
|
|
62
|
-
const
|
|
62
|
+
const { fields, validateInput, validateInputField, validateOutput } = validation.callable(methodKey);
|
|
63
63
|
const method = Object.freeze({
|
|
64
64
|
owner: shell,
|
|
65
65
|
name,
|
|
@@ -70,16 +70,19 @@ export function createClasses(definitions, validation) {
|
|
|
70
70
|
...(methodDefinition.execution === undefined
|
|
71
71
|
? {}
|
|
72
72
|
: { execution: methodDefinition.execution }),
|
|
73
|
+
...(methodDefinition.admission === undefined
|
|
74
|
+
? {}
|
|
75
|
+
: { admission: methodDefinition.admission }),
|
|
73
76
|
auth: methodDefinition.auth,
|
|
74
77
|
policy: methodDefinition.policy,
|
|
75
78
|
static: methodDefinition.static,
|
|
76
79
|
abstract: methodDefinition.abstract,
|
|
77
80
|
executable: isMethodExecutable(definition, methodDefinition),
|
|
78
|
-
...(
|
|
81
|
+
...(fields === undefined ? {} : { inputFields: fields }),
|
|
79
82
|
definition: methodDefinition,
|
|
80
|
-
validateInput
|
|
81
|
-
validateInputField
|
|
82
|
-
validateOutput
|
|
83
|
+
validateInput,
|
|
84
|
+
validateInputField,
|
|
85
|
+
validateOutput,
|
|
83
86
|
});
|
|
84
87
|
(methodDefinition.static ? ownStaticMethods : ownInstanceMethods).push(method);
|
|
85
88
|
}
|
|
@@ -1,20 +1,9 @@
|
|
|
1
1
|
import type { Key, PropertyKey } from '../../addressing/index.js';
|
|
2
2
|
import type { Diagnostic } from '../../language/validation/diagnostic.js';
|
|
3
|
-
import type {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
validate(input: unknown): readonly Diagnostic[];
|
|
9
|
-
program(): ValueProgram;
|
|
10
|
-
}
|
|
11
|
-
export interface CallableValidation {
|
|
12
|
-
readonly fields?: readonly string[];
|
|
13
|
-
validateInput(input: unknown): readonly Diagnostic[];
|
|
14
|
-
validateInputField(field: string, input: unknown): readonly Diagnostic[];
|
|
15
|
-
validateOutput(output: unknown): readonly Diagnostic[];
|
|
16
|
-
}
|
|
17
|
-
/** Build the one Domain-level router shared by source resolution and compiled loading. */
|
|
3
|
+
import type { CallableValidation, DomainValidation, PropertyValidation } from '../model/input.js';
|
|
4
|
+
/**
|
|
5
|
+
* Build the one Domain-level router shared by source resolution and compiled loading. The Domain
|
|
6
|
+
* built from the same entries asks only for the Properties and Callables they declare.
|
|
7
|
+
*/
|
|
18
8
|
export declare function createDomainValidation(properties: ReadonlyMap<PropertyKey, PropertyValidation>, callables: ReadonlyMap<Key.Callable, CallableValidation>): DomainValidation;
|
|
19
|
-
export declare function combineDomainValidation(values: readonly DomainValidation[]): DomainValidation;
|
|
20
9
|
export declare function unknownInputField(field: string): readonly Diagnostic[];
|
|
@@ -1,71 +1,29 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* Build the one Domain-level router shared by source resolution and compiled loading. The Domain
|
|
3
|
+
* built from the same entries asks only for the Properties and Callables they declare.
|
|
4
|
+
*/
|
|
2
5
|
export function createDomainValidation(properties, callables) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
throw new TypeError(`Property ${key} is absent.`);
|
|
13
|
-
return target.program();
|
|
14
|
-
},
|
|
15
|
-
propertyOrdering: (key) => properties.get(key)?.ordering,
|
|
16
|
-
callableExists: (key) => callables.has(key),
|
|
17
|
-
callableInput(key, input) {
|
|
18
|
-
const target = callables.get(key);
|
|
19
|
-
return target === undefined ? unknownTarget('Callable', key) : target.validateInput(input);
|
|
20
|
-
},
|
|
21
|
-
callableFields: (key) => callables.get(key)?.fields,
|
|
22
|
-
callableInputField(key, field, input) {
|
|
23
|
-
const target = callables.get(key);
|
|
24
|
-
return target === undefined
|
|
25
|
-
? unknownTarget('Callable', key)
|
|
26
|
-
: target.validateInputField(field, input);
|
|
27
|
-
},
|
|
28
|
-
callableOutput(key, output) {
|
|
29
|
-
const target = callables.get(key);
|
|
30
|
-
return target === undefined ? unknownTarget('Callable', key) : target.validateOutput(output);
|
|
31
|
-
},
|
|
6
|
+
return Object.freeze({
|
|
7
|
+
property: (key) => properties.get(key) ?? absentProperty(key),
|
|
8
|
+
callable: (key) => callables.get(key) ?? absentCallable(key),
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
// An absent entry fails only when it is asked to validate, never when it is looked up.
|
|
12
|
+
function absentProperty(key) {
|
|
13
|
+
const absent = () => {
|
|
14
|
+
throw new TypeError(`Property ${key} is absent.`);
|
|
32
15
|
};
|
|
33
|
-
return Object.freeze(
|
|
16
|
+
return Object.freeze({ validate: absent, program: absent });
|
|
34
17
|
}
|
|
35
|
-
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
property(key, input) {
|
|
39
|
-
const owner = values.find((value) => value.propertyExists(key));
|
|
40
|
-
return owner === undefined ? unknownTarget('Property', key) : owner.property(key, input);
|
|
41
|
-
},
|
|
42
|
-
propertyProgram(key) {
|
|
43
|
-
const owner = values.find((value) => value.propertyExists(key));
|
|
44
|
-
if (owner === undefined)
|
|
45
|
-
throw new TypeError(`Property ${key} is absent.`);
|
|
46
|
-
return owner.propertyProgram(key);
|
|
47
|
-
},
|
|
48
|
-
propertyOrdering: (key) => values.find((value) => value.propertyExists(key))?.propertyOrdering(key),
|
|
49
|
-
callableExists: (key) => values.some((value) => value.callableExists(key)),
|
|
50
|
-
callableInput(key, input) {
|
|
51
|
-
const owner = values.find((value) => value.callableExists(key));
|
|
52
|
-
return owner === undefined ? unknownTarget('Callable', key) : owner.callableInput(key, input);
|
|
53
|
-
},
|
|
54
|
-
callableFields: (key) => values.find((value) => value.callableExists(key))?.callableFields(key),
|
|
55
|
-
callableInputField(key, field, input) {
|
|
56
|
-
const owner = values.find((value) => value.callableExists(key));
|
|
57
|
-
return owner === undefined
|
|
58
|
-
? unknownTarget('Callable', key)
|
|
59
|
-
: owner.callableInputField(key, field, input);
|
|
60
|
-
},
|
|
61
|
-
callableOutput(key, output) {
|
|
62
|
-
const owner = values.find((value) => value.callableExists(key));
|
|
63
|
-
return owner === undefined
|
|
64
|
-
? unknownTarget('Callable', key)
|
|
65
|
-
: owner.callableOutput(key, output);
|
|
66
|
-
},
|
|
18
|
+
function absentCallable(key) {
|
|
19
|
+
const absent = () => {
|
|
20
|
+
throw new TypeError(`Callable ${key} is absent.`);
|
|
67
21
|
};
|
|
68
|
-
return Object.freeze(
|
|
22
|
+
return Object.freeze({
|
|
23
|
+
validateInput: absent,
|
|
24
|
+
validateInputField: absent,
|
|
25
|
+
validateOutput: absent,
|
|
26
|
+
});
|
|
69
27
|
}
|
|
70
28
|
export function unknownInputField(field) {
|
|
71
29
|
return [
|
|
@@ -76,12 +34,3 @@ export function unknownInputField(field) {
|
|
|
76
34
|
}),
|
|
77
35
|
];
|
|
78
36
|
}
|
|
79
|
-
function unknownTarget(kind, key) {
|
|
80
|
-
return [
|
|
81
|
-
Object.freeze({
|
|
82
|
-
code: 'DOMAIN_VALIDATION_TARGET_UNKNOWN',
|
|
83
|
-
pointer: '',
|
|
84
|
-
message: `${kind} ${key} is absent.`,
|
|
85
|
-
}),
|
|
86
|
-
];
|
|
87
|
-
}
|
package/dist/v1/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export { isBinaryInput } from './language/callable/model/callable.js';
|
|
|
5
5
|
export type { EventOf, StateMachine, StateOf } from './language/state/index.js';
|
|
6
6
|
export { PropertyValues } from './language/index.js';
|
|
7
7
|
export * as metadata from './language/definition/metadata.js';
|
|
8
|
-
export type { AnyResolvedClass, BoundMethodOf, BoundMethodShortcutsOf, CallableResultOf, CallableInputOf, CallableInputModeOf, CallableOutputOf, ClassSatisfactionKeysOf, ClassDefinition, CoreDefinition, CoreEdge, FunctionAuth, FunctionDefinition, BinaryInput, BinaryInputProjection, CallableInputContract, MethodDefinition, MethodOwnerKeyOf, CallablePolicy, ClassPolicy, ClassRuleChecks, ClassRuleObject, NodeClassPolicy, PolicyCheckExpression, PolicyDefinition, PropertyImmutability, PropertyInputOf, PropertyAccessOf, PropertyOutputOf, PropertyShortcutsOf, PropertyValuesOf, ResolvedClass, ResolvedCoreDefinition, ResolvedCoreEndpoint, ResolvedData, ResolvedFunction, ExecutableMethod, ResolvedMethod, ResolvedMethodCollection, ResolvedPolicy, ResolvedProperty, ResolvedView, MethodAccessOf, SelfMethodsOf, SelfPropertiesOf, SelfStaticMethodsOf, StaticMethodsOf, ViewDefinition, } from './language/index.js';
|
|
8
|
+
export type { AnyResolvedClass, BoundMethodOf, BoundMethodShortcutsOf, CallableResultOf, CallableInputOf, CallableInputModeOf, CallableOutputOf, ClassSatisfactionKeysOf, ClassDefinition, CoreDefinition, CoreEdge, FunctionAuth, FunctionDefinition, Inheritance, BinaryInput, BinaryInputProjection, CallableInputContract, MethodDefinition, MethodOwnerKeyOf, CallablePolicy, ClassPolicy, ClassRuleChecks, ClassRuleObject, ClassWritePolicy, CreateRuleChecks, EdgeClassPolicy, EdgeClassWritePolicy, EdgeRuleChecks, NodeClassCreatePolicy, NodeClassPolicy, NodeClassWritePolicy, PolicyCheckExpression, PolicyDefinition, PropertyImmutability, PropertyInputOf, PropertyAccessOf, PropertyOutputOf, PropertyShortcutsOf, PropertyValuesOf, ResolvedClass, ResolvedCoreDefinition, ResolvedCoreEndpoint, ResolvedData, ResolvedFunction, ExecutableMethod, ResolvedMethod, ResolvedMethodCollection, ResolvedPolicy, ResolvedProperty, ResolvedView, MethodAccessOf, SelfMethodsOf, SelfPropertiesOf, SelfStaticMethodsOf, StaticMethodsOf, ViewDefinition, } from './language/index.js';
|
|
9
9
|
export { acceptDefinitionRef, callableAddress, ClassKey, equalDefinitionRefs, isDefinitionRef, Key, MethodKey, PropertyKey, } from './addressing/index.js';
|
|
10
10
|
export type { ClassRef, CoreRef, DefinitionBase, DefinitionKey, DefinitionRef, FunctionRef, MethodAddress, PolicyRef, Revision, ViewRef, } from './addressing/index.js';
|
|
11
11
|
export type { Definition } from './language/index.js';
|
|
@@ -14,6 +14,7 @@ export { isDomain } from './domain/index.js';
|
|
|
14
14
|
export type * as builder from './builder/index.js';
|
|
15
15
|
export type { PathAuthoring, TypedValueSchema } from './builder/index.js';
|
|
16
16
|
export type { PropertyValues as PropertyValuesValue } from './language/index.js';
|
|
17
|
+
export type { BlobReceipt, BlobRef } from './language/value/model/blob.js';
|
|
17
18
|
export type { CompiledSchema } from './compiled/index.js';
|
|
18
19
|
export * as schema from './schema/index.js';
|
|
19
20
|
export * as bundle from './bundle/index.js';
|