schemair 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +420 -11
- package/dist/authoring/index.cjs +13 -350
- package/dist/authoring/index.d.cts +2 -90
- package/dist/authoring/index.d.ts +2 -90
- package/dist/authoring/index.js +2 -304
- package/dist/authoring-D3V0iyTe.js +362 -0
- package/dist/authoring-Dnrg5TXm.cjs +389 -0
- package/dist/chunk-BgLxgFZR.js +18 -0
- package/dist/definition/index.cjs +10 -2
- package/dist/definition/index.d.cts +3 -21
- package/dist/definition/index.d.ts +3 -21
- package/dist/definition/index.js +2 -2
- package/dist/definition-BLLBpLKv.cjs +1187 -0
- package/dist/definition-DmYnDmQO.js +1115 -0
- package/dist/index-4aMF0cTE.d.ts +368 -0
- package/dist/index-BqfGAU1K.d.ts +56 -0
- package/dist/{index-eK2Xgrwp.d.ts → index-CBbd4hXJ.d.ts} +13 -2
- package/dist/index-CIim1dG7.d.cts +92 -0
- package/dist/{index-TACcK_mi.d.cts → index-CNjYUKvu.d.cts} +13 -2
- package/dist/index-CQynt7ft.d.cts +420 -0
- package/dist/index-D3mfwaSO.d.cts +56 -0
- package/dist/index-DDMwVy2I.d.cts +368 -0
- package/dist/index-DM5DSLLL.d.ts +99 -0
- package/dist/index-DXWoNYFB.d.ts +92 -0
- package/dist/index-DhmHCGpT.d.cts +99 -0
- package/dist/index-bQy-C-1l.d.ts +418 -0
- package/dist/index.cjs +64 -52
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +7 -5
- package/dist/integrations/json-schema/index.cjs +328 -0
- package/dist/integrations/json-schema/index.d.cts +53 -0
- package/dist/integrations/json-schema/index.d.ts +53 -0
- package/dist/integrations/json-schema/index.js +324 -0
- package/dist/integrations/standard-schema/index.cjs +32 -0
- package/dist/integrations/standard-schema/index.d.cts +22 -0
- package/dist/integrations/standard-schema/index.d.ts +22 -0
- package/dist/integrations/standard-schema/index.js +32 -0
- package/dist/payload/index.cjs +1 -1
- package/dist/payload/index.d.cts +1 -55
- package/dist/payload/index.d.ts +1 -55
- package/dist/payload/index.js +1 -1
- package/dist/relations/index.cjs +3 -1
- package/dist/relations/index.d.cts +2 -2
- package/dist/relations/index.d.ts +2 -2
- package/dist/relations/index.js +2 -2
- package/dist/{relations-CMz_0nf4.cjs → relations-Cymx4iTc.cjs} +158 -5
- package/dist/{relations-By0bK3UK.js → relations-ysXDmi-Z.js} +147 -6
- package/dist/spec/index.cjs +9 -0
- package/dist/spec/index.d.cts +2 -2
- package/dist/spec/index.d.ts +2 -2
- package/dist/spec/index.js +3 -1
- package/dist/standard/index.cjs +810 -0
- package/dist/standard/index.d.cts +3 -0
- package/dist/standard/index.d.ts +3 -0
- package/dist/standard/index.js +777 -0
- package/dist/standard-DhKsxu9U.js +471 -0
- package/dist/standard-etPFZDJI.cjs +513 -0
- package/dist/type-interpreter/index.cjs +3 -3
- package/dist/type-interpreter/index.d.cts +2 -99
- package/dist/type-interpreter/index.d.ts +2 -99
- package/dist/type-interpreter/index.js +2 -2
- package/dist/{type-interpreter-Ck0VDhzn.js → type-interpreter-DnrId8aM.js} +5 -284
- package/dist/{type-interpreter-DAIBUqKf.cjs → type-interpreter-OLt2W2yd.cjs} +15 -294
- package/package.json +38 -3
- package/dist/definition-BXj3T94L.js +0 -467
- package/dist/definition-DSZZTz4e.cjs +0 -473
- package/dist/index-CEzHfht2.d.ts +0 -269
- package/dist/index-rzkFjgrt.d.cts +0 -269
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_definition = require('./definition-
|
|
1
|
+
const require_definition = require('./definition-BLLBpLKv.cjs');
|
|
2
2
|
|
|
3
3
|
//#region src/relations/validator.ts
|
|
4
4
|
function equalLiteral(left, right) {
|
|
@@ -349,10 +349,10 @@ function validateSchema(schema, side) {
|
|
|
349
349
|
if (definition.ok) return definition.node;
|
|
350
350
|
return {
|
|
351
351
|
status: "rejected",
|
|
352
|
-
issues: definition.issues.map((issue) => ({
|
|
353
|
-
code: `relation.rejected.schema.${side}.${issue.code}`,
|
|
354
|
-
path: issue.path,
|
|
355
|
-
message: issue.message
|
|
352
|
+
issues: definition.issues.map((issue$1) => ({
|
|
353
|
+
code: `relation.rejected.schema.${side}.${issue$1.code}`,
|
|
354
|
+
path: issue$1.path,
|
|
355
|
+
message: issue$1.message
|
|
356
356
|
}))
|
|
357
357
|
};
|
|
358
358
|
}
|
|
@@ -570,6 +570,159 @@ async function checkSchemaRelationAsync(source, target, context = {}) {
|
|
|
570
570
|
const checkSchemaAssignabilityAsync = checkSchemaRelationAsync;
|
|
571
571
|
|
|
572
572
|
//#endregion
|
|
573
|
+
//#region src/relations/operation.ts
|
|
574
|
+
function issue(status, path, code, message, component, direction) {
|
|
575
|
+
return { result: {
|
|
576
|
+
status,
|
|
577
|
+
issues: [{
|
|
578
|
+
code: `operation.relation.${code}`,
|
|
579
|
+
path,
|
|
580
|
+
message,
|
|
581
|
+
...component === void 0 ? {} : { details: {
|
|
582
|
+
component,
|
|
583
|
+
...direction === void 0 ? {} : { direction }
|
|
584
|
+
} }
|
|
585
|
+
}]
|
|
586
|
+
} };
|
|
587
|
+
}
|
|
588
|
+
function payload(source, target, path) {
|
|
589
|
+
const component = path[0] === "input" ? "input" : path[0] === "output" ? "output" : "emission";
|
|
590
|
+
const direction = component === "input" ? "target-to-source" : "source-to-target";
|
|
591
|
+
if (source === void 0 && target === void 0) return [];
|
|
592
|
+
if (source === void 0 || target === void 0) return [issue("incompatible", path, "presence", "A value and absence are distinct contracts.", component, direction)];
|
|
593
|
+
if (source.kind !== target.kind) return [issue("incompatible", path, "payload-kind", "Structured and binary payloads are distinct.", component, direction)];
|
|
594
|
+
if (source.kind === "structured" && target.kind === "structured") return [{
|
|
595
|
+
source: source.schema,
|
|
596
|
+
target: target.schema,
|
|
597
|
+
path: [...path, "schema"]
|
|
598
|
+
}];
|
|
599
|
+
if (source.kind === "binary" && target.kind === "binary") {
|
|
600
|
+
if (target.meta === void 0 || source.meta?.value === target.meta.value) return [];
|
|
601
|
+
return [issue("unknown", [...path, "meta"], "binary-metadata", "The declared metadata does not prove the target MIME requirement.", component, direction)];
|
|
602
|
+
}
|
|
603
|
+
return [];
|
|
604
|
+
}
|
|
605
|
+
function errors(source, target, path) {
|
|
606
|
+
const comparisons$1 = [];
|
|
607
|
+
for (const [code, error] of Object.entries(source ?? {})) {
|
|
608
|
+
const at = [...path, code];
|
|
609
|
+
if (!target || !Object.hasOwn(target, code)) {
|
|
610
|
+
comparisons$1.push(issue("incompatible", at, "error-code", "The source may produce an error not declared by the target.", "error", "source-to-target"));
|
|
611
|
+
continue;
|
|
612
|
+
}
|
|
613
|
+
const expected = target[code];
|
|
614
|
+
if (error.data !== void 0 && expected.data !== void 0) comparisons$1.push({
|
|
615
|
+
source: error.data,
|
|
616
|
+
target: expected.data,
|
|
617
|
+
path: [...at, "data"]
|
|
618
|
+
});
|
|
619
|
+
else if (error.data !== expected.data) comparisons$1.push(issue("incompatible", [...at, "data"], "presence", "Error details and absence are distinct contracts.", "error", "source-to-target"));
|
|
620
|
+
}
|
|
621
|
+
return comparisons$1;
|
|
622
|
+
}
|
|
623
|
+
function comparisons(source, target) {
|
|
624
|
+
const result = [
|
|
625
|
+
...payload(target.input, source.input, ["input"]),
|
|
626
|
+
...payload(source.output, target.output, ["output"]),
|
|
627
|
+
...errors(source.errors, target.errors, ["errors"])
|
|
628
|
+
];
|
|
629
|
+
for (const [name, channel] of Object.entries(source.emits ?? {})) {
|
|
630
|
+
const path = ["emits", name];
|
|
631
|
+
if (!target.emits || !Object.hasOwn(target.emits, name)) {
|
|
632
|
+
result.push(issue("incompatible", path, "channel", "The source may emit on a channel not declared by the target.", "emission", "source-to-target"));
|
|
633
|
+
continue;
|
|
634
|
+
}
|
|
635
|
+
const expected = target.emits[name];
|
|
636
|
+
result.push(...payload(channel.data, expected.data, [...path, "data"]));
|
|
637
|
+
result.push(...errors(channel.errors, expected.errors, [...path, "errors"]));
|
|
638
|
+
}
|
|
639
|
+
return result;
|
|
640
|
+
}
|
|
641
|
+
function prepare(source, target) {
|
|
642
|
+
const left = require_definition.validateOperationDefinition(source);
|
|
643
|
+
const right = require_definition.validateOperationDefinition(target);
|
|
644
|
+
if (!left.ok || !right.ok) return {
|
|
645
|
+
status: "rejected",
|
|
646
|
+
issues: [...!left.ok ? left.issues.map((i) => ({
|
|
647
|
+
...i,
|
|
648
|
+
path: ["source", ...i.path],
|
|
649
|
+
code: `operation.relation.rejected.${i.code}`,
|
|
650
|
+
details: {
|
|
651
|
+
component: "definition",
|
|
652
|
+
side: "source"
|
|
653
|
+
}
|
|
654
|
+
})) : [], ...!right.ok ? right.issues.map((i) => ({
|
|
655
|
+
...i,
|
|
656
|
+
path: ["target", ...i.path],
|
|
657
|
+
code: `operation.relation.rejected.${i.code}`,
|
|
658
|
+
details: {
|
|
659
|
+
component: "definition",
|
|
660
|
+
side: "target"
|
|
661
|
+
}
|
|
662
|
+
})) : []]
|
|
663
|
+
};
|
|
664
|
+
return comparisons(left.operation, right.operation);
|
|
665
|
+
}
|
|
666
|
+
const priority = {
|
|
667
|
+
assignable: 0,
|
|
668
|
+
unknown: 1,
|
|
669
|
+
incompatible: 2,
|
|
670
|
+
rejected: 3
|
|
671
|
+
};
|
|
672
|
+
function combine(results) {
|
|
673
|
+
let status = "assignable";
|
|
674
|
+
for (const result of results) if (priority[result.status] > priority[status]) status = result.status;
|
|
675
|
+
return {
|
|
676
|
+
status,
|
|
677
|
+
issues: results.flatMap((result) => result.issues)
|
|
678
|
+
};
|
|
679
|
+
}
|
|
680
|
+
function prefix(result, path) {
|
|
681
|
+
const component = path[0] === "input" ? "input" : path[0] === "output" ? "output" : path[0] === "errors" ? "error" : path[0] === "emits" ? "emission" : "definition";
|
|
682
|
+
const direction = component === "input" ? "target-to-source" : "source-to-target";
|
|
683
|
+
return {
|
|
684
|
+
status: result.status,
|
|
685
|
+
issues: result.issues.map((issue$1) => ({
|
|
686
|
+
...issue$1,
|
|
687
|
+
path: [...path, ...issue$1.path],
|
|
688
|
+
details: {
|
|
689
|
+
...issue$1.details ?? {},
|
|
690
|
+
component,
|
|
691
|
+
direction
|
|
692
|
+
}
|
|
693
|
+
}))
|
|
694
|
+
};
|
|
695
|
+
}
|
|
696
|
+
/** Can source replace target for callers using the target contract?
|
|
697
|
+
* Provider contexts describe each directed schema comparison; input reverses sides.
|
|
698
|
+
*/
|
|
699
|
+
function checkOperationRelation(source, target, context = {}) {
|
|
700
|
+
const work = prepare(source, target);
|
|
701
|
+
if (!Array.isArray(work)) return work;
|
|
702
|
+
return combine(work.map((item) => "result" in item ? item.result : prefix(checkSchemaRelation(item.source, item.target, context), item.path)));
|
|
703
|
+
}
|
|
704
|
+
/** Async companion with the same substitution rules and schema-local providers. */
|
|
705
|
+
async function checkOperationRelationAsync(source, target, context = {}) {
|
|
706
|
+
const work = prepare(source, target);
|
|
707
|
+
if (!Array.isArray(work)) return work;
|
|
708
|
+
const results = [];
|
|
709
|
+
for (const item of work) results.push("result" in item ? item.result : prefix(await checkSchemaRelationAsync(item.source, item.target, context), item.path));
|
|
710
|
+
return combine(results);
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
//#endregion
|
|
714
|
+
Object.defineProperty(exports, 'checkOperationRelation', {
|
|
715
|
+
enumerable: true,
|
|
716
|
+
get: function () {
|
|
717
|
+
return checkOperationRelation;
|
|
718
|
+
}
|
|
719
|
+
});
|
|
720
|
+
Object.defineProperty(exports, 'checkOperationRelationAsync', {
|
|
721
|
+
enumerable: true,
|
|
722
|
+
get: function () {
|
|
723
|
+
return checkOperationRelationAsync;
|
|
724
|
+
}
|
|
725
|
+
});
|
|
573
726
|
Object.defineProperty(exports, 'checkSchemaAssignability', {
|
|
574
727
|
enumerable: true,
|
|
575
728
|
get: function () {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f as validateSchemaNodeDefinition, l as validateOperationDefinition } from "./definition-DmYnDmQO.js";
|
|
2
2
|
|
|
3
3
|
//#region src/relations/validator.ts
|
|
4
4
|
function equalLiteral(left, right) {
|
|
@@ -349,10 +349,10 @@ function validateSchema(schema, side) {
|
|
|
349
349
|
if (definition.ok) return definition.node;
|
|
350
350
|
return {
|
|
351
351
|
status: "rejected",
|
|
352
|
-
issues: definition.issues.map((issue) => ({
|
|
353
|
-
code: `relation.rejected.schema.${side}.${issue.code}`,
|
|
354
|
-
path: issue.path,
|
|
355
|
-
message: issue.message
|
|
352
|
+
issues: definition.issues.map((issue$1) => ({
|
|
353
|
+
code: `relation.rejected.schema.${side}.${issue$1.code}`,
|
|
354
|
+
path: issue$1.path,
|
|
355
|
+
message: issue$1.message
|
|
356
356
|
}))
|
|
357
357
|
};
|
|
358
358
|
}
|
|
@@ -570,4 +570,145 @@ async function checkSchemaRelationAsync(source, target, context = {}) {
|
|
|
570
570
|
const checkSchemaAssignabilityAsync = checkSchemaRelationAsync;
|
|
571
571
|
|
|
572
572
|
//#endregion
|
|
573
|
-
|
|
573
|
+
//#region src/relations/operation.ts
|
|
574
|
+
function issue(status, path, code, message, component, direction) {
|
|
575
|
+
return { result: {
|
|
576
|
+
status,
|
|
577
|
+
issues: [{
|
|
578
|
+
code: `operation.relation.${code}`,
|
|
579
|
+
path,
|
|
580
|
+
message,
|
|
581
|
+
...component === void 0 ? {} : { details: {
|
|
582
|
+
component,
|
|
583
|
+
...direction === void 0 ? {} : { direction }
|
|
584
|
+
} }
|
|
585
|
+
}]
|
|
586
|
+
} };
|
|
587
|
+
}
|
|
588
|
+
function payload(source, target, path) {
|
|
589
|
+
const component = path[0] === "input" ? "input" : path[0] === "output" ? "output" : "emission";
|
|
590
|
+
const direction = component === "input" ? "target-to-source" : "source-to-target";
|
|
591
|
+
if (source === void 0 && target === void 0) return [];
|
|
592
|
+
if (source === void 0 || target === void 0) return [issue("incompatible", path, "presence", "A value and absence are distinct contracts.", component, direction)];
|
|
593
|
+
if (source.kind !== target.kind) return [issue("incompatible", path, "payload-kind", "Structured and binary payloads are distinct.", component, direction)];
|
|
594
|
+
if (source.kind === "structured" && target.kind === "structured") return [{
|
|
595
|
+
source: source.schema,
|
|
596
|
+
target: target.schema,
|
|
597
|
+
path: [...path, "schema"]
|
|
598
|
+
}];
|
|
599
|
+
if (source.kind === "binary" && target.kind === "binary") {
|
|
600
|
+
if (target.meta === void 0 || source.meta?.value === target.meta.value) return [];
|
|
601
|
+
return [issue("unknown", [...path, "meta"], "binary-metadata", "The declared metadata does not prove the target MIME requirement.", component, direction)];
|
|
602
|
+
}
|
|
603
|
+
return [];
|
|
604
|
+
}
|
|
605
|
+
function errors(source, target, path) {
|
|
606
|
+
const comparisons$1 = [];
|
|
607
|
+
for (const [code, error] of Object.entries(source ?? {})) {
|
|
608
|
+
const at = [...path, code];
|
|
609
|
+
if (!target || !Object.hasOwn(target, code)) {
|
|
610
|
+
comparisons$1.push(issue("incompatible", at, "error-code", "The source may produce an error not declared by the target.", "error", "source-to-target"));
|
|
611
|
+
continue;
|
|
612
|
+
}
|
|
613
|
+
const expected = target[code];
|
|
614
|
+
if (error.data !== void 0 && expected.data !== void 0) comparisons$1.push({
|
|
615
|
+
source: error.data,
|
|
616
|
+
target: expected.data,
|
|
617
|
+
path: [...at, "data"]
|
|
618
|
+
});
|
|
619
|
+
else if (error.data !== expected.data) comparisons$1.push(issue("incompatible", [...at, "data"], "presence", "Error details and absence are distinct contracts.", "error", "source-to-target"));
|
|
620
|
+
}
|
|
621
|
+
return comparisons$1;
|
|
622
|
+
}
|
|
623
|
+
function comparisons(source, target) {
|
|
624
|
+
const result = [
|
|
625
|
+
...payload(target.input, source.input, ["input"]),
|
|
626
|
+
...payload(source.output, target.output, ["output"]),
|
|
627
|
+
...errors(source.errors, target.errors, ["errors"])
|
|
628
|
+
];
|
|
629
|
+
for (const [name, channel] of Object.entries(source.emits ?? {})) {
|
|
630
|
+
const path = ["emits", name];
|
|
631
|
+
if (!target.emits || !Object.hasOwn(target.emits, name)) {
|
|
632
|
+
result.push(issue("incompatible", path, "channel", "The source may emit on a channel not declared by the target.", "emission", "source-to-target"));
|
|
633
|
+
continue;
|
|
634
|
+
}
|
|
635
|
+
const expected = target.emits[name];
|
|
636
|
+
result.push(...payload(channel.data, expected.data, [...path, "data"]));
|
|
637
|
+
result.push(...errors(channel.errors, expected.errors, [...path, "errors"]));
|
|
638
|
+
}
|
|
639
|
+
return result;
|
|
640
|
+
}
|
|
641
|
+
function prepare(source, target) {
|
|
642
|
+
const left = validateOperationDefinition(source);
|
|
643
|
+
const right = validateOperationDefinition(target);
|
|
644
|
+
if (!left.ok || !right.ok) return {
|
|
645
|
+
status: "rejected",
|
|
646
|
+
issues: [...!left.ok ? left.issues.map((i) => ({
|
|
647
|
+
...i,
|
|
648
|
+
path: ["source", ...i.path],
|
|
649
|
+
code: `operation.relation.rejected.${i.code}`,
|
|
650
|
+
details: {
|
|
651
|
+
component: "definition",
|
|
652
|
+
side: "source"
|
|
653
|
+
}
|
|
654
|
+
})) : [], ...!right.ok ? right.issues.map((i) => ({
|
|
655
|
+
...i,
|
|
656
|
+
path: ["target", ...i.path],
|
|
657
|
+
code: `operation.relation.rejected.${i.code}`,
|
|
658
|
+
details: {
|
|
659
|
+
component: "definition",
|
|
660
|
+
side: "target"
|
|
661
|
+
}
|
|
662
|
+
})) : []]
|
|
663
|
+
};
|
|
664
|
+
return comparisons(left.operation, right.operation);
|
|
665
|
+
}
|
|
666
|
+
const priority = {
|
|
667
|
+
assignable: 0,
|
|
668
|
+
unknown: 1,
|
|
669
|
+
incompatible: 2,
|
|
670
|
+
rejected: 3
|
|
671
|
+
};
|
|
672
|
+
function combine(results) {
|
|
673
|
+
let status = "assignable";
|
|
674
|
+
for (const result of results) if (priority[result.status] > priority[status]) status = result.status;
|
|
675
|
+
return {
|
|
676
|
+
status,
|
|
677
|
+
issues: results.flatMap((result) => result.issues)
|
|
678
|
+
};
|
|
679
|
+
}
|
|
680
|
+
function prefix(result, path) {
|
|
681
|
+
const component = path[0] === "input" ? "input" : path[0] === "output" ? "output" : path[0] === "errors" ? "error" : path[0] === "emits" ? "emission" : "definition";
|
|
682
|
+
const direction = component === "input" ? "target-to-source" : "source-to-target";
|
|
683
|
+
return {
|
|
684
|
+
status: result.status,
|
|
685
|
+
issues: result.issues.map((issue$1) => ({
|
|
686
|
+
...issue$1,
|
|
687
|
+
path: [...path, ...issue$1.path],
|
|
688
|
+
details: {
|
|
689
|
+
...issue$1.details ?? {},
|
|
690
|
+
component,
|
|
691
|
+
direction
|
|
692
|
+
}
|
|
693
|
+
}))
|
|
694
|
+
};
|
|
695
|
+
}
|
|
696
|
+
/** Can source replace target for callers using the target contract?
|
|
697
|
+
* Provider contexts describe each directed schema comparison; input reverses sides.
|
|
698
|
+
*/
|
|
699
|
+
function checkOperationRelation(source, target, context = {}) {
|
|
700
|
+
const work = prepare(source, target);
|
|
701
|
+
if (!Array.isArray(work)) return work;
|
|
702
|
+
return combine(work.map((item) => "result" in item ? item.result : prefix(checkSchemaRelation(item.source, item.target, context), item.path)));
|
|
703
|
+
}
|
|
704
|
+
/** Async companion with the same substitution rules and schema-local providers. */
|
|
705
|
+
async function checkOperationRelationAsync(source, target, context = {}) {
|
|
706
|
+
const work = prepare(source, target);
|
|
707
|
+
if (!Array.isArray(work)) return work;
|
|
708
|
+
const results = [];
|
|
709
|
+
for (const item of work) results.push("result" in item ? item.result : prefix(await checkSchemaRelationAsync(item.source, item.target, context), item.path));
|
|
710
|
+
return combine(results);
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
//#endregion
|
|
714
|
+
export { checkSchemaRelation as a, checkSchemaAssignabilityAsync as i, checkOperationRelationAsync as n, checkSchemaRelationAsync as o, checkSchemaAssignability as r, checkOperationRelation as t };
|
package/dist/spec/index.cjs
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const require_standard = require('../standard-etPFZDJI.cjs');
|
|
2
|
+
|
|
3
|
+
exports.STANDARD_CONSTRAINT_DEFINITIONS = require_standard.STANDARD_CONSTRAINT_DEFINITIONS;
|
|
4
|
+
exports.STANDARD_CONSTRAINT_PATHS = require_standard.STANDARD_CONSTRAINT_PATHS;
|
|
5
|
+
exports.STANDARD_CONSTRAINT_PATH_LIST = require_standard.STANDARD_CONSTRAINT_PATH_LIST;
|
|
6
|
+
exports.STANDARD_SEMANTIC_DEFINITIONS = require_standard.STANDARD_SEMANTIC_DEFINITIONS;
|
|
7
|
+
exports.STANDARD_SEMANTIC_PATHS = require_standard.STANDARD_SEMANTIC_PATHS;
|
|
8
|
+
exports.STANDARD_SEMANTIC_PATH_LIST = require_standard.STANDARD_SEMANTIC_PATH_LIST;
|
|
9
|
+
exports.STANDARD_SEMANTIC_RELATIONS = require_standard.STANDARD_SEMANTIC_RELATIONS;
|
package/dist/spec/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { Expression, ExpressionArgument, JsonValue, LiteralValue,
|
|
1
|
+
import { $ as StructuredOperationPayloadDefinition, A as SchemaTypeOpaqueHostExpr, B as SchemaTypeValueOfExpr, C as SchemaTypeIntersectExpr, D as SchemaTypeNeverExpr, E as SchemaTypeMergeRecordsExpr, F as SchemaTypeRequiredFieldsExpr, G as OperationChannelDefinition, H as SchemaVariantSelector, I as SchemaTypeTaggedUnionExpr, J as OperationErrorDefinition, K as OperationContainerDefinition, L as SchemaTypeTerm, M as SchemaTypePickFieldsExpr, N as SchemaTypeRecordExpr, O as SchemaTypeNullableExpr, P as SchemaTypeRefineExpr, Q as StructuredOperationDefinition, R as SchemaTypeTupleExpr, S as SchemaTypeFieldsOfExpr, T as SchemaTypeMaybeAbsentExpr, U as Operation, V as SchemaTypeVariableExpr, W as OperationBinaryMetadata, X as StructuredOperationChannelDefinition, Y as OperationPayloadDefinition, Z as StructuredOperationContainerDefinition, _ as SchemaTypeElementOfExpr, _t as SchemaStringNode, a as StandardSemanticDefinition, at as SchemaConstraint, b as SchemaTypeExtractVariantsExpr, bt as SchemaTupleNode, c as STANDARD_CONSTRAINT_PATH_LIST, ct as SchemaNode, d as Expression, dt as SchemaNumberNode, et as JsonValue, f as ExpressionArgument, ft as SchemaPrimitiveNode, g as SchemaTypeElementAtExpr, gt as SchemaSelfRefNode, h as SchemaTypeArrayExpr, ht as SchemaRefNode, i as StandardConstraintDefinition, it as SchemaBooleanNode, j as SchemaTypePartialFieldsExpr, k as SchemaTypeOmitFieldsExpr, l as STANDARD_SEMANTIC_PATHS, lt as SchemaNullNode, m as SchemaTypeAbsentExpr, mt as SchemaRecordNode, n as STANDARD_SEMANTIC_DEFINITIONS, nt as PrimitiveName, o as StandardSemanticRelation, ot as SchemaLiteralNode, p as SchemaFieldSelector, pt as SchemaRecordField, q as OperationDefinition, r as STANDARD_SEMANTIC_RELATIONS, rt as SchemaArrayNode, s as STANDARD_CONSTRAINT_PATHS, st as SchemaLiteralUnionNode, t as STANDARD_CONSTRAINT_DEFINITIONS, tt as LiteralValue, u as STANDARD_SEMANTIC_PATH_LIST, ut as SchemaNullableNode, v as SchemaTypeExcludeVariantsExpr, vt as SchemaTaggedUnionNode, w as SchemaTypeKeyOfExpr, x as SchemaTypeFieldOfExpr, y as SchemaTypeExpr, yt as SchemaTaggedUnionVariant, z as SchemaTypeUnknownExpr } from "../index-DDMwVy2I.cjs";
|
|
2
|
+
export { Expression, ExpressionArgument, JsonValue, LiteralValue, Operation, OperationBinaryMetadata, OperationChannelDefinition, OperationContainerDefinition, OperationDefinition, OperationErrorDefinition, OperationPayloadDefinition, PrimitiveName, STANDARD_CONSTRAINT_DEFINITIONS, STANDARD_CONSTRAINT_PATHS, STANDARD_CONSTRAINT_PATH_LIST, STANDARD_SEMANTIC_DEFINITIONS, STANDARD_SEMANTIC_PATHS, STANDARD_SEMANTIC_PATH_LIST, STANDARD_SEMANTIC_RELATIONS, SchemaArrayNode, SchemaBooleanNode, SchemaConstraint, SchemaFieldSelector, SchemaLiteralNode, SchemaLiteralUnionNode, SchemaNode, SchemaNullNode, SchemaNullableNode, SchemaNumberNode, SchemaPrimitiveNode, SchemaRecordField, SchemaRecordNode, SchemaRefNode, SchemaSelfRefNode, SchemaStringNode, SchemaTaggedUnionNode, SchemaTaggedUnionVariant, SchemaTupleNode, SchemaTypeAbsentExpr, SchemaTypeArrayExpr, SchemaTypeElementAtExpr, SchemaTypeElementOfExpr, SchemaTypeExcludeVariantsExpr, SchemaTypeExpr, SchemaTypeExtractVariantsExpr, SchemaTypeFieldOfExpr, SchemaTypeFieldsOfExpr, SchemaTypeIntersectExpr, SchemaTypeKeyOfExpr, SchemaTypeMaybeAbsentExpr, SchemaTypeMergeRecordsExpr, SchemaTypeNeverExpr, SchemaTypeNullableExpr, SchemaTypeOmitFieldsExpr, SchemaTypeOpaqueHostExpr, SchemaTypePartialFieldsExpr, SchemaTypePickFieldsExpr, SchemaTypeRecordExpr, SchemaTypeRefineExpr, SchemaTypeRequiredFieldsExpr, SchemaTypeTaggedUnionExpr, SchemaTypeTerm, SchemaTypeTupleExpr, SchemaTypeUnknownExpr, SchemaTypeValueOfExpr, SchemaTypeVariableExpr, SchemaVariantSelector, StandardConstraintDefinition, StandardSemanticDefinition, StandardSemanticRelation, StructuredOperationChannelDefinition, StructuredOperationContainerDefinition, StructuredOperationDefinition, StructuredOperationPayloadDefinition };
|
package/dist/spec/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { Expression, ExpressionArgument, JsonValue, LiteralValue,
|
|
1
|
+
import { $ as StructuredOperationPayloadDefinition, A as SchemaTypeOpaqueHostExpr, B as SchemaTypeValueOfExpr, C as SchemaTypeIntersectExpr, D as SchemaTypeNeverExpr, E as SchemaTypeMergeRecordsExpr, F as SchemaTypeRequiredFieldsExpr, G as OperationChannelDefinition, H as SchemaVariantSelector, I as SchemaTypeTaggedUnionExpr, J as OperationErrorDefinition, K as OperationContainerDefinition, L as SchemaTypeTerm, M as SchemaTypePickFieldsExpr, N as SchemaTypeRecordExpr, O as SchemaTypeNullableExpr, P as SchemaTypeRefineExpr, Q as StructuredOperationDefinition, R as SchemaTypeTupleExpr, S as SchemaTypeFieldsOfExpr, T as SchemaTypeMaybeAbsentExpr, U as Operation, V as SchemaTypeVariableExpr, W as OperationBinaryMetadata, X as StructuredOperationChannelDefinition, Y as OperationPayloadDefinition, Z as StructuredOperationContainerDefinition, _ as SchemaTypeElementOfExpr, _t as SchemaStringNode, a as StandardSemanticDefinition, at as SchemaConstraint, b as SchemaTypeExtractVariantsExpr, bt as SchemaTupleNode, c as STANDARD_CONSTRAINT_PATH_LIST, ct as SchemaNode, d as Expression, dt as SchemaNumberNode, et as JsonValue, f as ExpressionArgument, ft as SchemaPrimitiveNode, g as SchemaTypeElementAtExpr, gt as SchemaSelfRefNode, h as SchemaTypeArrayExpr, ht as SchemaRefNode, i as StandardConstraintDefinition, it as SchemaBooleanNode, j as SchemaTypePartialFieldsExpr, k as SchemaTypeOmitFieldsExpr, l as STANDARD_SEMANTIC_PATHS, lt as SchemaNullNode, m as SchemaTypeAbsentExpr, mt as SchemaRecordNode, n as STANDARD_SEMANTIC_DEFINITIONS, nt as PrimitiveName, o as StandardSemanticRelation, ot as SchemaLiteralNode, p as SchemaFieldSelector, pt as SchemaRecordField, q as OperationDefinition, r as STANDARD_SEMANTIC_RELATIONS, rt as SchemaArrayNode, s as STANDARD_CONSTRAINT_PATHS, st as SchemaLiteralUnionNode, t as STANDARD_CONSTRAINT_DEFINITIONS, tt as LiteralValue, u as STANDARD_SEMANTIC_PATH_LIST, ut as SchemaNullableNode, v as SchemaTypeExcludeVariantsExpr, vt as SchemaTaggedUnionNode, w as SchemaTypeKeyOfExpr, x as SchemaTypeFieldOfExpr, y as SchemaTypeExpr, yt as SchemaTaggedUnionVariant, z as SchemaTypeUnknownExpr } from "../index-4aMF0cTE.js";
|
|
2
|
+
export { Expression, ExpressionArgument, JsonValue, LiteralValue, Operation, OperationBinaryMetadata, OperationChannelDefinition, OperationContainerDefinition, OperationDefinition, OperationErrorDefinition, OperationPayloadDefinition, PrimitiveName, STANDARD_CONSTRAINT_DEFINITIONS, STANDARD_CONSTRAINT_PATHS, STANDARD_CONSTRAINT_PATH_LIST, STANDARD_SEMANTIC_DEFINITIONS, STANDARD_SEMANTIC_PATHS, STANDARD_SEMANTIC_PATH_LIST, STANDARD_SEMANTIC_RELATIONS, SchemaArrayNode, SchemaBooleanNode, SchemaConstraint, SchemaFieldSelector, SchemaLiteralNode, SchemaLiteralUnionNode, SchemaNode, SchemaNullNode, SchemaNullableNode, SchemaNumberNode, SchemaPrimitiveNode, SchemaRecordField, SchemaRecordNode, SchemaRefNode, SchemaSelfRefNode, SchemaStringNode, SchemaTaggedUnionNode, SchemaTaggedUnionVariant, SchemaTupleNode, SchemaTypeAbsentExpr, SchemaTypeArrayExpr, SchemaTypeElementAtExpr, SchemaTypeElementOfExpr, SchemaTypeExcludeVariantsExpr, SchemaTypeExpr, SchemaTypeExtractVariantsExpr, SchemaTypeFieldOfExpr, SchemaTypeFieldsOfExpr, SchemaTypeIntersectExpr, SchemaTypeKeyOfExpr, SchemaTypeMaybeAbsentExpr, SchemaTypeMergeRecordsExpr, SchemaTypeNeverExpr, SchemaTypeNullableExpr, SchemaTypeOmitFieldsExpr, SchemaTypeOpaqueHostExpr, SchemaTypePartialFieldsExpr, SchemaTypePickFieldsExpr, SchemaTypeRecordExpr, SchemaTypeRefineExpr, SchemaTypeRequiredFieldsExpr, SchemaTypeTaggedUnionExpr, SchemaTypeTerm, SchemaTypeTupleExpr, SchemaTypeUnknownExpr, SchemaTypeValueOfExpr, SchemaTypeVariableExpr, SchemaVariantSelector, StandardConstraintDefinition, StandardSemanticDefinition, StandardSemanticRelation, StructuredOperationChannelDefinition, StructuredOperationContainerDefinition, StructuredOperationDefinition, StructuredOperationPayloadDefinition };
|
package/dist/spec/index.js
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { a as STANDARD_CONSTRAINT_PATH_LIST, i as STANDARD_CONSTRAINT_PATHS, n as STANDARD_SEMANTIC_DEFINITIONS, o as STANDARD_SEMANTIC_PATHS, r as STANDARD_SEMANTIC_RELATIONS, s as STANDARD_SEMANTIC_PATH_LIST, t as STANDARD_CONSTRAINT_DEFINITIONS } from "../standard-DhKsxu9U.js";
|
|
2
|
+
|
|
3
|
+
export { STANDARD_CONSTRAINT_DEFINITIONS, STANDARD_CONSTRAINT_PATHS, STANDARD_CONSTRAINT_PATH_LIST, STANDARD_SEMANTIC_DEFINITIONS, STANDARD_SEMANTIC_PATHS, STANDARD_SEMANTIC_PATH_LIST, STANDARD_SEMANTIC_RELATIONS };
|