@prisma/orm-framework 8.0.0-rc.13 → 8.0.0-rc.13-dev.3

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.
Files changed (79) hide show
  1. package/dist/{authoring-BffMNBO5.d.mts → authoring-DhT5W5e0.d.mts} +3 -3
  2. package/dist/{authoring-BffMNBO5.d.mts.map → authoring-DhT5W5e0.d.mts.map} +1 -1
  3. package/dist/{authoring-DbG78eh2.mjs → authoring-DhgHAcho.mjs} +2 -2
  4. package/dist/{authoring-DbG78eh2.mjs.map → authoring-DhgHAcho.mjs.map} +1 -1
  5. package/dist/{components-CTkZKWVB.d.mts → components-WdVKzR2I.d.mts} +2 -2
  6. package/dist/{components-CTkZKWVB.d.mts.map → components-WdVKzR2I.d.mts.map} +1 -1
  7. package/dist/components.d.mts +10 -10
  8. package/dist/components.mjs +5 -5
  9. package/dist/components__authoring.d.mts +4 -4
  10. package/dist/components__authoring.mjs +2 -2
  11. package/dist/components__components.d.mts +2 -2
  12. package/dist/components__control.d.mts +3 -3
  13. package/dist/components__control.mjs +2 -2
  14. package/dist/components__execution.d.mts +1 -1
  15. package/dist/components__psl-ast.d.mts +4 -4
  16. package/dist/components__psl-ast.mjs +2 -2
  17. package/dist/{config-types-CWeyMWBV.d.mts → config-types-ChFDZpdy.d.mts} +4 -4
  18. package/dist/{config-types-CWeyMWBV.d.mts.map → config-types-ChFDZpdy.d.mts.map} +1 -1
  19. package/dist/config.d.mts +1 -1
  20. package/dist/config__config-types.d.mts +1 -1
  21. package/dist/contract-authoring.d.mts +2 -2
  22. package/dist/contract-authoring.mjs +1 -1
  23. package/dist/{control-BTo8rNKi.d.mts → control-BCjP3x_F.d.mts} +5 -5
  24. package/dist/{control-BTo8rNKi.d.mts.map → control-BCjP3x_F.d.mts.map} +1 -1
  25. package/dist/{control-CS45l6kB.mjs → control-CJHZj7vF.mjs} +2 -2
  26. package/dist/{control-CS45l6kB.mjs.map → control-CJHZj7vF.mjs.map} +1 -1
  27. package/dist/{declarations-43E1JFHg-DGBa0YH_.mjs → declarations-BrSntcPa-Bm0uutX8.mjs} +15 -3
  28. package/dist/declarations-BrSntcPa-Bm0uutX8.mjs.map +1 -0
  29. package/dist/errors.d.mts +1 -1
  30. package/dist/errors__execution.d.mts +1 -1
  31. package/dist/{execution-BsiK0DjS.d.mts → execution-BcrxxJSJ.d.mts} +2 -2
  32. package/dist/{execution-BsiK0DjS.d.mts.map → execution-BcrxxJSJ.d.mts.map} +1 -1
  33. package/dist/{execution-CmKm3jvH.d.mts → execution-DEsldtrH.d.mts} +2 -2
  34. package/dist/{execution-CmKm3jvH.d.mts.map → execution-DEsldtrH.d.mts.map} +1 -1
  35. package/dist/{framework-authoring-C9VTqnML-BXtBl2dJ.d.mts → framework-authoring-BEHHwGOv-mQMbHGI_.d.mts} +19 -173
  36. package/dist/framework-authoring-BEHHwGOv-mQMbHGI_.d.mts.map +1 -0
  37. package/dist/{framework-components-dUUePWt8-DpoUmGO3.d.mts → framework-components-PQoZtnmv-B_lFgPip.d.mts} +3 -3
  38. package/dist/{framework-components-dUUePWt8-DpoUmGO3.d.mts.map → framework-components-PQoZtnmv-B_lFgPip.d.mts.map} +1 -1
  39. package/dist/{parse-Km2Ne67K-CakfHP9f.mjs → parse-CfZKsx8i-D2Oz7q-X.mjs} +4 -4
  40. package/dist/{parse-Km2Ne67K-CakfHP9f.mjs.map → parse-CfZKsx8i-D2Oz7q-X.mjs.map} +1 -1
  41. package/dist/{parse-DZRO_CK2-D8YAg23m.d.mts → parse-DZRO_CK2-Dxl0WwMz.d.mts} +5 -5
  42. package/dist/{parse-DZRO_CK2-D8YAg23m.d.mts.map → parse-DZRO_CK2-Dxl0WwMz.d.mts.map} +1 -1
  43. package/dist/{psl-ast-BePuKena-AYNqFKCE.d.mts → psl-ast-CjO3JX8O-CyqkfgDM.d.mts} +4 -39
  44. package/dist/psl-ast-CjO3JX8O-CyqkfgDM.d.mts.map +1 -0
  45. package/dist/psl-ast-CyvE6CR-.mjs +116 -0
  46. package/dist/psl-ast-CyvE6CR-.mjs.map +1 -0
  47. package/dist/psl-ast-f9IZqFG7.d.mts +2 -0
  48. package/dist/psl-parser.d.mts +107 -25
  49. package/dist/psl-parser.d.mts.map +1 -1
  50. package/dist/psl-parser.mjs +532 -317
  51. package/dist/psl-parser.mjs.map +1 -1
  52. package/dist/psl-parser__format.mjs +2 -2
  53. package/dist/psl-parser__format.mjs.map +1 -1
  54. package/dist/psl-parser__interpret.d.mts +6 -6
  55. package/dist/psl-parser__interpret.mjs +2 -2
  56. package/dist/psl-parser__interpret.mjs.map +1 -1
  57. package/dist/psl-parser__syntax.d.mts +1 -1
  58. package/dist/psl-parser__syntax.mjs +2 -2
  59. package/dist/psl-parser__syntax.mjs.map +1 -1
  60. package/dist/psl-printer.d.mts +4 -19
  61. package/dist/psl-printer.d.mts.map +1 -1
  62. package/dist/psl-printer.mjs +8 -87
  63. package/dist/psl-printer.mjs.map +1 -1
  64. package/dist/{symbol-table-CRtoii4t-DubuO_5j.d.mts → symbol-table-EcNdXojD-B-bUCgem.d.mts} +5 -9
  65. package/dist/symbol-table-EcNdXojD-B-bUCgem.d.mts.map +1 -0
  66. package/dist/{temporal-presets-L05Tl534-jgcrZX_O.d.mts → temporal-presets-Cj9AecXJ-gUtNP82K.d.mts} +3 -3
  67. package/dist/{temporal-presets-L05Tl534-jgcrZX_O.d.mts.map → temporal-presets-Cj9AecXJ-gUtNP82K.d.mts.map} +1 -1
  68. package/dist/{temporal-presets-DABMpaxB-DDEaCwpa.mjs → temporal-presets-Cqi6Fnl--DNtY0oCw.mjs} +10 -32
  69. package/dist/temporal-presets-Cqi6Fnl--DNtY0oCw.mjs.map +1 -0
  70. package/package.json +15 -15
  71. package/dist/declarations-43E1JFHg-DGBa0YH_.mjs.map +0 -1
  72. package/dist/framework-authoring-C9VTqnML-BXtBl2dJ.d.mts.map +0 -1
  73. package/dist/psl-ast-BePuKena-AYNqFKCE.d.mts.map +0 -1
  74. package/dist/psl-ast-Cec7KbOn.d.mts +0 -37
  75. package/dist/psl-ast-Cec7KbOn.d.mts.map +0 -1
  76. package/dist/psl-ast-DYtFdynZ.mjs +0 -244
  77. package/dist/psl-ast-DYtFdynZ.mjs.map +0 -1
  78. package/dist/symbol-table-CRtoii4t-DubuO_5j.d.mts.map +0 -1
  79. package/dist/temporal-presets-DABMpaxB-DDEaCwpa.mjs.map +0 -1
@@ -1,6 +1,5 @@
1
- import { f as CodecLookup } from "./codec-types-C4Bx6jXr-C2MBP0-0.mjs";
2
- import { N as ContributedPslDiagnosticCode, X as PslDiagnosticCode, Z as PslExtensionBlock, ct as PslSpan, w as AuthoringPslBlockDescriptorNamespace } from "./framework-authoring-C9VTqnML-BXtBl2dJ.mjs";
3
- //#region ../../../1-framework/1-core/framework-components/dist/psl-ast-BePuKena.d.mts
1
+ import { $ as PslSpan, K as PslDiagnosticCode, N as ContributedPslDiagnosticCode, q as PslExtensionBlock } from "./framework-authoring-BEHHwGOv-mQMbHGI_.mjs";
2
+ //#region ../../../1-framework/1-core/framework-components/dist/psl-ast-CjO3JX8O.d.mts
4
3
  //#region src/control/psl-ast.d.ts
5
4
  interface PslDiagnostic {
6
5
  /**
@@ -225,40 +224,6 @@ declare const BUILTIN_PSL_KIND_KEYS: ReadonlySet<string>;
225
224
  * only `PslExtensionBlock` nodes by construction (see `makePslNamespaceEntries`).
226
225
  */
227
226
  declare function namespacePslExtensionBlocks(ns: PslNamespace): readonly PslExtensionBlock[];
228
- interface ParsePslDocumentInput {
229
- readonly schema: string;
230
- readonly sourceId: string;
231
- /**
232
- * Registry of declarative block descriptors, keyed by arbitrary path
233
- * segments with {@link AuthoringPslBlockDescriptor} leaves. The registry
234
- * teaches the parser which top-level keywords belong to extension
235
- * contributions: when the parser encounters an unknown keyword, it looks
236
- * it up here and, when found, reads the block generically into a
237
- * {@link PslExtensionBlock} node. Absent or undefined means no extension
238
- * blocks are registered and any unknown keyword yields
239
- * `PSL_UNSUPPORTED_TOP_LEVEL_BLOCK`.
240
- *
241
- * Contrast with the parsed block nodes themselves, which live in
242
- * {@link PslNamespace.entries} under their discriminator key (read them with
243
- * {@link namespacePslExtensionBlocks}); this field holds the registry of
244
- * descriptors that teach the parser how to read those blocks.
245
- */
246
- readonly pslBlockDescriptors?: AuthoringPslBlockDescriptorNamespace;
247
- /**
248
- * Codec lookup for validating `value`-kind extension block parameters.
249
- * When provided alongside `pslBlockDescriptors`, the generic validator runs
250
- * over every parsed extension block after the full AST is assembled,
251
- * appending any diagnostics to the parse result. Absent or undefined means
252
- * no codec validation runs; `ref` resolution still runs when namespace
253
- * context is available (built from the assembled namespaces).
254
- */
255
- readonly codecLookup?: CodecLookup;
256
- }
257
- interface ParsePslDocumentResult {
258
- readonly ast: PslDocumentAst;
259
- readonly diagnostics: readonly PslDiagnostic[];
260
- readonly ok: boolean;
261
- }
262
227
  //#endregion
263
- export { flatPslModels as A, PslReferentialAction as C, UNBOUND_PSL_NAMESPACE_NAME as D, PslUniqueConstraint as E, makePslNamespaceEntries as M, namespacePslExtensionBlocks as N, UNSPECIFIED_PSL_NAMESPACE_ID as O, PslNamespaceEntry as S, PslTypesBlock as T, PslIndexConstraint as _, PslAttributeArgument as a, PslNamedTypeDeclaration as b, PslAttributeTarget as c, PslDefaultLiteralValue as d, PslDefaultValue as f, PslFieldAttribute as g, PslField as h, PslAttribute as i, makePslNamespace as j, flatPslCompositeTypes as k, PslCompositeType as l, PslDocumentAst as m, ParsePslDocumentInput as n, PslAttributeNamedArgument as o, PslDiagnostic as p, ParsePslDocumentResult as r, PslAttributePositionalArgument as s, BUILTIN_PSL_KIND_KEYS as t, PslDefaultFunctionValue as u, PslModel as v, PslTypeConstructorCall as w, PslNamespace as x, PslModelAttribute as y };
264
- //# sourceMappingURL=psl-ast-BePuKena-AYNqFKCE.d.mts.map
228
+ export { makePslNamespaceEntries as A, PslTypesBlock as C, flatPslCompositeTypes as D, UNSPECIFIED_PSL_NAMESPACE_ID as E, flatPslModels as O, PslTypeConstructorCall as S, UNBOUND_PSL_NAMESPACE_NAME as T, PslModelAttribute as _, PslAttributePositionalArgument as a, PslNamespaceEntry as b, PslDefaultFunctionValue as c, PslDiagnostic as d, PslDocumentAst as f, PslModel as g, PslIndexConstraint as h, PslAttributeNamedArgument as i, namespacePslExtensionBlocks as j, makePslNamespace as k, PslDefaultLiteralValue as l, PslFieldAttribute as m, PslAttribute as n, PslAttributeTarget as o, PslField as p, PslAttributeArgument as r, PslCompositeType as s, BUILTIN_PSL_KIND_KEYS as t, PslDefaultValue as u, PslNamedTypeDeclaration as v, PslUniqueConstraint as w, PslReferentialAction as x, PslNamespace as y };
229
+ //# sourceMappingURL=psl-ast-CjO3JX8O-CyqkfgDM.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"psl-ast-CjO3JX8O-CyqkfgDM.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/psl-ast-CjO3JX8O.d.mts"],"mappings":";;;UAEU;;;;;;;;;;;WAWC,MAAM,oBAAoB;WAC1B;WACA;WACA,MAAM;;UAEP;WACC;WACA;;UAED;WACC;WACA;;KAEN,kBAAkB,0BAA0B;KAC5C;UACK;WACC;WACA;WACA,MAAM;;UAEP;WACC;WACA;WACA;WACA,MAAM;;KAEZ,uBAAuB,iCAAiC;UACnD;WACC;WACA;WACA,eAAe;WACf,MAAM;;UAEP;WACC;WACA,QAAQ;WACR;WACA,eAAe;WACf,MAAM;;KAEZ;KACA,oBAAoB;UACf;WACC;WACA;;WAEA;;WAEA;;;;;;;;;WASA;WACA,kBAAkB;WAClB;WACA;WACA;WACA,qBAAqB;WACrB,MAAM;;UAEP;WACC;WACA;WACA,MAAM;;UAEP;WACC;WACA;WACA,MAAM;;KAEZ,oBAAoB;UACf;WACC;WACA;WACA,iBAAiB;WACjB,qBAAqB;WACrB,MAAM;;;;;;;;WAQN;;;;;;;UAOD;WACC;WACA;WACA,iBAAiB;WACjB,qBAAqB;WACrB,MAAM;;UAEP;WACC;WACA;;;;;;WAMA;WACA,kBAAkB;WAClB,qBAAqB;WACrB,MAAM;;UAEP;WACC;WACA,uBAAuB;WACvB,MAAM;;;;;;;;;;;;;;cAcH;;;;;cAKA;;KAET,oBAAoB,WAAW,mBAAmB;;;;;;;;;;;;UAY7C;WACC;WACA;;WAEA,SAAS,SAAS,eAAe,SAAS,eAAe;;WAEzD,iBAAiB;;WAEjB,yBAAyB;WACzB,MAAM;;;iBAGA,iBAAiB;WACvB;WACA;WACA,SAAS,SAAS,eAAe,SAAS,eAAe;WACzD,MAAM;IACb;;;;;;iBAMa,wBAAwB,iBAAiB,YAAY,yBAAyB,oBAAoB,0BAA0B,sBAAsB,SAAS,eAAe,SAAS,eAAe;UACzM;WACC;WACA;WACA,qBAAqB;WACrB,QAAQ;WACR,MAAM;;;;;;iBAMA,cAAc,KAAK,0BAA0B;;;;iBAI7C,sBAAsB,KAAK,0BAA0B;;;;;;;;;;;cAWxD,uBAAuB;;;;;;;;;iBASpB,4BAA4B,IAAI,wBAAwB"}
@@ -0,0 +1,116 @@
1
+ import { t as blindCast } from "./casts-DpaahrlC-Bd5n2coI.mjs";
2
+ //#region ../../../1-framework/1-core/framework-components/dist/psl-ast.mjs
3
+ /**
4
+ * Name of the synthesised namespace bucket the framework parser uses for
5
+ * top-level declarations that appear outside any `namespace { … }` block.
6
+ * The double-underscore decoration signals that the identifier is parser-
7
+ * synthesised and never appears in user-authored PSL source — writing
8
+ * `namespace __unspecified__ { … }` is a parse error.
9
+ *
10
+ * Distinct from the IR sentinel `__unbound__`: the PSL bucket describes
11
+ * syntactic absence at the parser layer; the IR sentinel describes a late-
12
+ * bound storage slot at the IR layer. Per-target interpreters decide how
13
+ * (or whether) to map the PSL bucket to the IR sentinel.
14
+ */
15
+ const UNSPECIFIED_PSL_NAMESPACE_ID = "__unspecified__";
16
+ /**
17
+ * The name the unbound namespace is written under in PSL: `namespace unbound { … }`. Readers map it
18
+ * to the IR's `__unbound__` namespace id, and writers map that id back to it.
19
+ */
20
+ const UNBOUND_PSL_NAMESPACE_NAME = "unbound";
21
+ /**
22
+ * Stores `entries`; exposes `models`/`enums`/`compositeTypes` as getters over
23
+ * it. The getters are prototype members (non-enumerable), so spreading or
24
+ * `JSON.stringify`-ing a namespace copies only `entries`, never a duplicate view.
25
+ */
26
+ var PslNamespaceNode = class {
27
+ kind = "namespace";
28
+ name;
29
+ entries;
30
+ span;
31
+ constructor(init) {
32
+ this.name = init.name;
33
+ this.entries = init.entries;
34
+ this.span = init.span;
35
+ Object.freeze(this);
36
+ }
37
+ get models() {
38
+ return blindCast(Object.values(this.entries["model"] ?? {}));
39
+ }
40
+ get compositeTypes() {
41
+ return blindCast(Object.values(this.entries["compositeType"] ?? {}));
42
+ }
43
+ };
44
+ /** Constructs a {@link PslNamespace}. Use this, never a namespace literal — the accessors must derive from `entries`. */
45
+ function makePslNamespace(init) {
46
+ return new PslNamespaceNode(init);
47
+ }
48
+ /**
49
+ * Builds the frozen `entries[kind][name]` container from per-kind arrays.
50
+ * Built-ins key on their PSL keyword; extension blocks key on their `kind`
51
+ * discriminator. Call this rather than hand-building the literal.
52
+ */
53
+ function makePslNamespaceEntries(models, compositeTypes, extensionBlocks) {
54
+ const container = {};
55
+ if (models.length > 0) {
56
+ const map = {};
57
+ for (const m of models) map[m.name] = m;
58
+ container["model"] = Object.freeze(map);
59
+ }
60
+ if (compositeTypes.length > 0) {
61
+ const map = {};
62
+ for (const ct of compositeTypes) map[ct.name] = ct;
63
+ container["compositeType"] = Object.freeze(map);
64
+ }
65
+ for (const block of extensionBlocks) {
66
+ const existing = container[block.kind];
67
+ const newMap = existing ? blindCast({ ...existing }) : {};
68
+ newMap[block.name] = block;
69
+ container[block.kind] = Object.freeze(newMap);
70
+ }
71
+ return Object.freeze(container);
72
+ }
73
+ /**
74
+ * Returns all models from every namespace in document order. Convenience
75
+ * for consumers that don't (yet) need namespace-awareness.
76
+ */
77
+ function flatPslModels(ast) {
78
+ return ast.namespaces.flatMap((ns) => blindCast(Object.values(ns.entries["model"] ?? {})));
79
+ }
80
+ /**
81
+ * Returns all composite types from every namespace in document order.
82
+ */
83
+ function flatPslCompositeTypes(ast) {
84
+ return ast.namespaces.flatMap((ns) => blindCast(Object.values(ns.entries["compositeType"] ?? {})));
85
+ }
86
+ /**
87
+ * The set of `entries` kind keys that the framework parser reserves for
88
+ * built-in PSL entity kinds. Any own-enumerable key on `PslNamespace.entries`
89
+ * that is **not** in this set was contributed by an extension-block descriptor.
90
+ *
91
+ * Built-in keys match the PSL keyword used on each block type:
92
+ * `'model'`, `'compositeType'`. The `'enum'` keyword is claimed by the
93
+ * extension-block grammar via a registered descriptor, so `entries['enum']`
94
+ * holds `PslExtensionBlock` nodes and is returned by `namespacePslExtensionBlocks`.
95
+ */
96
+ const BUILTIN_PSL_KIND_KEYS = /* @__PURE__ */ new Set(["model", "compositeType"]);
97
+ /**
98
+ * Returns all extension-contributed blocks in the given namespace, in
99
+ * insertion order (the order the parser encountered them in the source).
100
+ *
101
+ * Reads from `namespace.entries`, skipping the built-in kind keys
102
+ * (`'model'`, `'compositeType'`). All remaining kind maps contain
103
+ * only `PslExtensionBlock` nodes by construction (see `makePslNamespaceEntries`).
104
+ */
105
+ function namespacePslExtensionBlocks(ns) {
106
+ const result = [];
107
+ for (const [kindKey, kindMap] of Object.entries(ns.entries)) {
108
+ if (BUILTIN_PSL_KIND_KEYS.has(kindKey)) continue;
109
+ for (const entry of Object.values(kindMap)) result.push(blindCast(entry));
110
+ }
111
+ return result;
112
+ }
113
+ //#endregion
114
+ export { flatPslModels as a, namespacePslExtensionBlocks as c, flatPslCompositeTypes as i, UNBOUND_PSL_NAMESPACE_NAME as n, makePslNamespace as o, UNSPECIFIED_PSL_NAMESPACE_ID as r, makePslNamespaceEntries as s, BUILTIN_PSL_KIND_KEYS as t };
115
+
116
+ //# sourceMappingURL=psl-ast-CyvE6CR-.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"psl-ast-CyvE6CR-.mjs","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/psl-ast.mjs"],"sourcesContent":["import { blindCast } from \"@internal/utils/casts\";\n//#region src/control/psl-ast.ts\n/**\n* Name of the synthesised namespace bucket the framework parser uses for\n* top-level declarations that appear outside any `namespace { … }` block.\n* The double-underscore decoration signals that the identifier is parser-\n* synthesised and never appears in user-authored PSL source — writing\n* `namespace __unspecified__ { … }` is a parse error.\n*\n* Distinct from the IR sentinel `__unbound__`: the PSL bucket describes\n* syntactic absence at the parser layer; the IR sentinel describes a late-\n* bound storage slot at the IR layer. Per-target interpreters decide how\n* (or whether) to map the PSL bucket to the IR sentinel.\n*/\nconst UNSPECIFIED_PSL_NAMESPACE_ID = \"__unspecified__\";\n/**\n* The name the unbound namespace is written under in PSL: `namespace unbound { … }`. Readers map it\n* to the IR's `__unbound__` namespace id, and writers map that id back to it.\n*/\nconst UNBOUND_PSL_NAMESPACE_NAME = \"unbound\";\n/**\n* Stores `entries`; exposes `models`/`enums`/`compositeTypes` as getters over\n* it. The getters are prototype members (non-enumerable), so spreading or\n* `JSON.stringify`-ing a namespace copies only `entries`, never a duplicate view.\n*/\nvar PslNamespaceNode = class {\n\tkind = \"namespace\";\n\tname;\n\tentries;\n\tspan;\n\tconstructor(init) {\n\t\tthis.name = init.name;\n\t\tthis.entries = init.entries;\n\t\tthis.span = init.span;\n\t\tObject.freeze(this);\n\t}\n\tget models() {\n\t\treturn blindCast(Object.values(this.entries[\"model\"] ?? {}));\n\t}\n\tget compositeTypes() {\n\t\treturn blindCast(Object.values(this.entries[\"compositeType\"] ?? {}));\n\t}\n};\n/** Constructs a {@link PslNamespace}. Use this, never a namespace literal — the accessors must derive from `entries`. */\nfunction makePslNamespace(init) {\n\treturn new PslNamespaceNode(init);\n}\n/**\n* Builds the frozen `entries[kind][name]` container from per-kind arrays.\n* Built-ins key on their PSL keyword; extension blocks key on their `kind`\n* discriminator. Call this rather than hand-building the literal.\n*/\nfunction makePslNamespaceEntries(models, compositeTypes, extensionBlocks) {\n\tconst container = {};\n\tif (models.length > 0) {\n\t\tconst map = {};\n\t\tfor (const m of models) map[m.name] = m;\n\t\tcontainer[\"model\"] = Object.freeze(map);\n\t}\n\tif (compositeTypes.length > 0) {\n\t\tconst map = {};\n\t\tfor (const ct of compositeTypes) map[ct.name] = ct;\n\t\tcontainer[\"compositeType\"] = Object.freeze(map);\n\t}\n\tfor (const block of extensionBlocks) {\n\t\tconst existing = container[block.kind];\n\t\tconst newMap = existing ? blindCast({ ...existing }) : {};\n\t\tnewMap[block.name] = block;\n\t\tcontainer[block.kind] = Object.freeze(newMap);\n\t}\n\treturn Object.freeze(container);\n}\n/**\n* Returns all models from every namespace in document order. Convenience\n* for consumers that don't (yet) need namespace-awareness.\n*/\nfunction flatPslModels(ast) {\n\treturn ast.namespaces.flatMap((ns) => blindCast(Object.values(ns.entries[\"model\"] ?? {})));\n}\n/**\n* Returns all composite types from every namespace in document order.\n*/\nfunction flatPslCompositeTypes(ast) {\n\treturn ast.namespaces.flatMap((ns) => blindCast(Object.values(ns.entries[\"compositeType\"] ?? {})));\n}\n/**\n* The set of `entries` kind keys that the framework parser reserves for\n* built-in PSL entity kinds. Any own-enumerable key on `PslNamespace.entries`\n* that is **not** in this set was contributed by an extension-block descriptor.\n*\n* Built-in keys match the PSL keyword used on each block type:\n* `'model'`, `'compositeType'`. The `'enum'` keyword is claimed by the\n* extension-block grammar via a registered descriptor, so `entries['enum']`\n* holds `PslExtensionBlock` nodes and is returned by `namespacePslExtensionBlocks`.\n*/\nconst BUILTIN_PSL_KIND_KEYS = /* @__PURE__ */ new Set([\"model\", \"compositeType\"]);\n/**\n* Returns all extension-contributed blocks in the given namespace, in\n* insertion order (the order the parser encountered them in the source).\n*\n* Reads from `namespace.entries`, skipping the built-in kind keys\n* (`'model'`, `'compositeType'`). All remaining kind maps contain\n* only `PslExtensionBlock` nodes by construction (see `makePslNamespaceEntries`).\n*/\nfunction namespacePslExtensionBlocks(ns) {\n\tconst result = [];\n\tfor (const [kindKey, kindMap] of Object.entries(ns.entries)) {\n\t\tif (BUILTIN_PSL_KIND_KEYS.has(kindKey)) continue;\n\t\tfor (const entry of Object.values(kindMap)) result.push(blindCast(entry));\n\t}\n\treturn result;\n}\n//#endregion\nexport { BUILTIN_PSL_KIND_KEYS, UNBOUND_PSL_NAMESPACE_NAME, UNSPECIFIED_PSL_NAMESPACE_ID, flatPslCompositeTypes, flatPslModels, makePslNamespace, makePslNamespaceEntries, namespacePslExtensionBlocks };\n\n//# sourceMappingURL=psl-ast.mjs.map"],"mappings":";;;;;;;;;;;;;;AAcA,MAAM,+BAA+B;;;;;AAKrC,MAAM,6BAA6B;;;;;;AAMnC,IAAI,mBAAmB,MAAM;CAC5B,OAAO;CACP;CACA;CACA;CACA,YAAY,MAAM;EACjB,KAAK,OAAO,KAAK;EACjB,KAAK,UAAU,KAAK;EACpB,KAAK,OAAO,KAAK;EACjB,OAAO,OAAO,IAAI;CACnB;CACA,IAAI,SAAS;EACZ,OAAO,UAAU,OAAO,OAAO,KAAK,QAAQ,YAAY,CAAC,CAAC,CAAC;CAC5D;CACA,IAAI,iBAAiB;EACpB,OAAO,UAAU,OAAO,OAAO,KAAK,QAAQ,oBAAoB,CAAC,CAAC,CAAC;CACpE;AACD;;AAEA,SAAS,iBAAiB,MAAM;CAC/B,OAAO,IAAI,iBAAiB,IAAI;AACjC;;;;;;AAMA,SAAS,wBAAwB,QAAQ,gBAAgB,iBAAiB;CACzE,MAAM,YAAY,CAAC;CACnB,IAAI,OAAO,SAAS,GAAG;EACtB,MAAM,MAAM,CAAC;EACb,KAAK,MAAM,KAAK,QAAQ,IAAI,EAAE,QAAQ;EACtC,UAAU,WAAW,OAAO,OAAO,GAAG;CACvC;CACA,IAAI,eAAe,SAAS,GAAG;EAC9B,MAAM,MAAM,CAAC;EACb,KAAK,MAAM,MAAM,gBAAgB,IAAI,GAAG,QAAQ;EAChD,UAAU,mBAAmB,OAAO,OAAO,GAAG;CAC/C;CACA,KAAK,MAAM,SAAS,iBAAiB;EACpC,MAAM,WAAW,UAAU,MAAM;EACjC,MAAM,SAAS,WAAW,UAAU,EAAE,GAAG,SAAS,CAAC,IAAI,CAAC;EACxD,OAAO,MAAM,QAAQ;EACrB,UAAU,MAAM,QAAQ,OAAO,OAAO,MAAM;CAC7C;CACA,OAAO,OAAO,OAAO,SAAS;AAC/B;;;;;AAKA,SAAS,cAAc,KAAK;CAC3B,OAAO,IAAI,WAAW,SAAS,OAAO,UAAU,OAAO,OAAO,GAAG,QAAQ,YAAY,CAAC,CAAC,CAAC,CAAC;AAC1F;;;;AAIA,SAAS,sBAAsB,KAAK;CACnC,OAAO,IAAI,WAAW,SAAS,OAAO,UAAU,OAAO,OAAO,GAAG,QAAQ,oBAAoB,CAAC,CAAC,CAAC,CAAC;AAClG;;;;;;;;;;;AAWA,MAAM,wCAAwC,IAAI,IAAI,CAAC,SAAS,eAAe,CAAC;;;;;;;;;AAShF,SAAS,4BAA4B,IAAI;CACxC,MAAM,SAAS,CAAC;CAChB,KAAK,MAAM,CAAC,SAAS,YAAY,OAAO,QAAQ,GAAG,OAAO,GAAG;EAC5D,IAAI,sBAAsB,IAAI,OAAO,GAAG;EACxC,KAAK,MAAM,SAAS,OAAO,OAAO,OAAO,GAAG,OAAO,KAAK,UAAU,KAAK,CAAC;CACzE;CACA,OAAO;AACR"}
@@ -0,0 +1,2 @@
1
+ import "./framework-authoring-BEHHwGOv-mQMbHGI_.mjs";
2
+ import "./psl-ast-CjO3JX8O-CyqkfgDM.mjs";
@@ -1,14 +1,13 @@
1
- import { f as CodecLookup } from "./codec-types-C4Bx6jXr-C2MBP0-0.mjs";
2
- import { $ as PslExtensionBlockAttributeArg, A as AuthoringTypeNamespace, C as AuthoringPslBlockDescriptor, O as AuthoringTypeConstructorDescriptor, P as ControlDefaultRegistries, Q as PslExtensionBlockAttribute, X as PslDiagnosticCode, Z as PslExtensionBlock, at as PslExtensionBlockParamValue, ct as PslSpan, et as PslExtensionBlockParamBare, it as PslExtensionBlockParamScalarValue, nt as PslExtensionBlockParamOption, rt as PslExtensionBlockParamRef, st as PslPosition, tt as PslExtensionBlockParamList, w as AuthoringPslBlockDescriptorNamespace } from "./framework-authoring-C9VTqnML-BXtBl2dJ.mjs";
3
- import "./authoring-BffMNBO5.mjs";
4
- import "./codec-D5McQin0.mjs";
5
- import { A as flatPslModels, N as namespacePslExtensionBlocks, T as PslTypesBlock, a as PslAttributeArgument, b as PslNamedTypeDeclaration, c as PslAttributeTarget, d as PslDefaultLiteralValue, f as PslDefaultValue, g as PslFieldAttribute, h as PslField, i as PslAttribute, l as PslCompositeType, m as PslDocumentAst, o as PslAttributeNamedArgument, s as PslAttributePositionalArgument, u as PslDefaultFunctionValue, v as PslModel, w as PslTypeConstructorCall, x as PslNamespace, y as PslModelAttribute } from "./psl-ast-BePuKena-AYNqFKCE.mjs";
1
+ import { V as JsonValue } from "./domain-envelope-gHv58hD1-B8mta2A6.mjs";
2
+ import { $ as PslSpan, A as AuthoringTypeNamespace, C as AuthoringPslBlockDescriptor, G as ParsedPslExtensionBlock, J as PslExtensionBlockAttribute, K as PslDiagnosticCode, O as AuthoringTypeConstructorDescriptor, P as ControlDefaultRegistries, Q as PslPosition, X as PslExtensionBlockParsedAttribute, Y as PslExtensionBlockAttributeArg, Z as PslExtensionBlockPrintEntry, q as PslExtensionBlock, w as AuthoringPslBlockDescriptorNamespace } from "./framework-authoring-BEHHwGOv-mQMbHGI_.mjs";
3
+ import "./authoring-DhT5W5e0.mjs";
4
+ import { C as PslTypesBlock, O as flatPslModels, S as PslTypeConstructorCall, _ as PslModelAttribute, a as PslAttributePositionalArgument, c as PslDefaultFunctionValue, f as PslDocumentAst, g as PslModel, i as PslAttributeNamedArgument, j as namespacePslExtensionBlocks, l as PslDefaultLiteralValue, m as PslFieldAttribute, n as PslAttribute, o as PslAttributeTarget, p as PslField, r as PslAttributeArgument, s as PslCompositeType, u as PslDefaultValue, v as PslNamedTypeDeclaration, y as PslNamespace } from "./psl-ast-CjO3JX8O-CyqkfgDM.mjs";
6
5
  import { r as Result } from "./result-BYCOANWy.mjs";
7
- import { n as AssembledAuthoringContributions, vt as TaggedLiteralCanonicalization } from "./control-BTo8rNKi.mjs";
8
- import "./psl-ast-Cec7KbOn.mjs";
6
+ import { n as AssembledAuthoringContributions, vt as TaggedLiteralCanonicalization } from "./control-BCjP3x_F.mjs";
7
+ import "./psl-ast-f9IZqFG7.mjs";
9
8
  import { i as isPslIdentifier } from "./tokenizer-DW30uwhx-BHsWTwYk.mjs";
10
- import { $ as createPslDiagnosticCollector, F as PslDiagnostic, G as SyntaxNode, I as PslDiagnosticCollector, L as PslSources, M as ParseDiagnostic, ct as mapPslDiagnostics, d as DiagnosticSource, m as FieldAttributeAst, n as AstNode, nt as diagnosticSource, p as ExpressionAst, r as AttributeArgAst, tt as diagnosticFromSpan, w as ModelAttributeAst } from "./parse-DZRO_CK2-D8YAg23m.mjs";
11
- import { _ as nodePslSpan, a as ModelSymbol, b as readResolvedConstructorCall, c as ResolvedAttribute, d as ResolvedTypeConstructorCall, f as SymbolTable, g as keywordPslSpan, h as buildSymbolTable, i as FieldSymbol, l as ResolvedAttributeArg, m as TopLevelScope, n as BuildSymbolTableOptions, o as NamedTypeSymbol, p as SymbolTableResult, r as CompositeTypeSymbol, s as NamespaceSymbol, t as BlockSymbol, u as ResolvedNamedTypeBinding, v as readResolvedAttribute, y as readResolvedAttributes } from "./symbol-table-CRtoii4t-DubuO_5j.mjs";
9
+ import { $ as createPslDiagnosticCollector, F as PslDiagnostic, G as SyntaxNode, I as PslDiagnosticCollector, L as PslSources, M as ParseDiagnostic, ct as mapPslDiagnostics, d as DiagnosticSource, m as FieldAttributeAst, n as AstNode, nt as diagnosticSource, p as ExpressionAst, r as AttributeArgAst, tt as diagnosticFromSpan, w as ModelAttributeAst } from "./parse-DZRO_CK2-Dxl0WwMz.mjs";
10
+ import { _ as nodePslSpan, a as ModelSymbol, b as readResolvedConstructorCall, c as ResolvedAttribute, d as ResolvedTypeConstructorCall, f as SymbolTable, g as keywordPslSpan, h as buildSymbolTable, i as FieldSymbol, l as ResolvedAttributeArg, m as TopLevelScope, n as BuildSymbolTableOptions, o as NamedTypeSymbol, p as SymbolTableResult, r as CompositeTypeSymbol, s as NamespaceSymbol, t as BlockSymbol, u as ResolvedNamedTypeBinding, v as readResolvedAttribute, y as readResolvedAttributes } from "./symbol-table-EcNdXojD-B-bUCgem.mjs";
12
11
  import { n as UnionToIntersection, t as Simplify } from "./types-DGxlljKG.mjs";
13
12
  //#region ../../../1-framework/2-authoring/psl-parser/dist/index.d.mts
14
13
  //#region src/attribute-helpers.d.ts
@@ -103,6 +102,7 @@ interface CreateBinderOptions {
103
102
  readonly typeConstructors: AuthoringTypeNamespace;
104
103
  readonly attributeSpecs: AttributeSpecNamespace;
105
104
  readonly controlMutationDefaults: ControlDefaultRegistries;
105
+ readonly pslBlockDescriptors?: AuthoringPslBlockDescriptorNamespace | undefined;
106
106
  readonly describeUnsupportedAttribute?: DescribeUnsupportedAttribute | undefined;
107
107
  }
108
108
  interface BinderResult {
@@ -136,15 +136,15 @@ type AttributeLevel = 'field' | 'model' | 'block';
136
136
  interface AttributeCtx {
137
137
  readonly sources: PslSources;
138
138
  readonly symbols: SymbolTable;
139
+ readonly binder: Binder;
139
140
  }
140
141
  interface ModelAttributeCtx extends AttributeCtx {
141
142
  readonly selfModel: ModelSymbol;
142
- readonly binder: Binder;
143
143
  }
144
144
  interface FieldAttributeCtx extends ModelAttributeCtx {
145
145
  readonly field: FieldSymbol;
146
146
  }
147
- type ArgTypeKind = 'bool' | 'entityRef' | 'fieldRef' | 'funcCall' | 'identifier' | 'int' | 'json' | 'list' | 'num' | 'oneOf' | 'record' | 'referencedFieldRef' | 'rejecting' | 'str' | 'taggedLiteral';
147
+ type ArgTypeKind = 'bool' | 'entityRef' | 'fieldRef' | 'funcCall' | 'identifier' | 'int' | 'json' | 'null' | 'list' | 'num' | 'oneOf' | 'record' | 'referencedFieldRef' | 'rejecting' | 'str' | 'taggedLiteral';
148
148
  type ArgTypeContext = 'attribute' | 'field' | 'model';
149
149
  interface ArgTypeOutput<T, Ctx extends AttributeCtx> {
150
150
  readonly label: string;
@@ -197,6 +197,13 @@ interface IntArgType<Ctx extends AttributeCtx = AttributeCtx> extends ArgTypeOut
197
197
  interface JsonArgType<Ctx extends AttributeCtx = AttributeCtx> extends ArgTypeOutput<Record<string, unknown>, Ctx> {
198
198
  readonly kind: 'json';
199
199
  }
200
+ interface JsonValueArgType<Ctx extends AttributeCtx = AttributeCtx> extends ArgTypeOutput<JsonValue, Ctx> {
201
+ readonly kind: 'oneOf';
202
+ readonly alternatives: readonly [UnrestrictedStrArgType<Ctx>, UnrestrictedNumArgType<Ctx>, BoolArgType<Ctx>, NullArgType<Ctx>, ListArgType<JsonValue, Ctx>, RecordArgType<JsonValue, Ctx>];
203
+ }
204
+ interface NullArgType<Ctx extends AttributeCtx = AttributeCtx> extends ArgTypeOutput<null, Ctx> {
205
+ readonly kind: 'null';
206
+ }
200
207
  interface ListArgType<T = unknown, Ctx extends AttributeCtx = AttributeCtx> extends ArgTypeOutput<T[], Ctx> {
201
208
  readonly kind: 'list';
202
209
  readonly of: ArgType<T, Ctx>;
@@ -218,10 +225,13 @@ interface NumLiteralArgType<Ctx extends AttributeCtx = AttributeCtx> extends Arg
218
225
  readonly kind: 'num';
219
226
  readonly value: undefined;
220
227
  }
221
- interface OneOfArgType<Alts extends readonly [AnyArgType, ...AnyArgType[]], Ctx extends AttributeCtx = ContextForRequirement<RequiredContextFor<CtxOf<Alts[number]>>>> extends ArgTypeOutput<OutOf<Alts[number]>, Ctx> {
222
- readonly kind: 'oneOf';
228
+ interface OneOfArgType<Alts extends readonly [AnyArgType, ...AnyArgType[]], Ctx extends AttributeCtx = ContextForRequirement<RequiredContextFor<CtxOf<Alts[number]>>>> extends ArgTypeOutput<OutOf<Alts[number]>, Ctx>, OneOfMetadata {
223
229
  readonly alternatives: Alts;
224
230
  }
231
+ interface OneOfMetadata {
232
+ readonly kind: 'oneOf';
233
+ readonly alternatives: readonly [AnyArgType, ...AnyArgType[]];
234
+ }
225
235
  interface RecordArgType<T = unknown, Ctx extends AttributeCtx = AttributeCtx> extends ArgTypeOutput<Record<string, T>, Ctx> {
226
236
  readonly kind: 'record';
227
237
  readonly of: ArgType<T, Ctx>;
@@ -252,14 +262,14 @@ interface TaggedLiteralArgType<Ctx extends AttributeCtx = AttributeCtx> extends
252
262
  readonly tags: readonly string[];
253
263
  readonly documentation: string;
254
264
  }
255
- interface ArgType<T, Ctx extends AttributeCtx> extends ArgTypeOutput<T, Ctx> {
256
- readonly kind: ArgTypeKind;
257
- }
265
+ type ArgTypeMetadata<Type> = Type extends object ? Omit<Type, keyof ArgTypeOutput<unknown, never>> : never;
266
+ type ArgType<T, Ctx extends AttributeCtx> = ArgTypeOutput<T, Ctx> & ArgTypeMetadata<ArgTypeVariant<Ctx>>;
258
267
  type AnyArgType = ArgType<unknown, AttributeCtx> | ArgType<unknown, ModelAttributeCtx> | ArgType<unknown, FieldAttributeCtx>;
259
268
  type CtxOf<P> = P extends ArgTypeOutput<unknown, infer Ctx> ? Ctx : never;
260
269
  type RequiredContextFor<Ctx extends AttributeCtx> = [Extract<Ctx, FieldAttributeCtx>] extends [never] ? [Extract<Ctx, ModelAttributeCtx>] extends [never] ? 'attribute' : 'model' : 'field';
261
270
  type ContextForRequirement<Req extends ArgTypeContext> = Req extends 'field' ? FieldAttributeCtx : Req extends 'model' ? ModelAttributeCtx : AttributeCtx;
262
- type InspectableArgType<Ctx extends AttributeCtx> = BoolArgType<Ctx> | EntityRefArgType<EntityDeclaration, Ctx> | FieldRefArgType<ModelAttributeCtx & Ctx> | FuncCallArgType<string, Ctx> | IdentifierArgType<string, Ctx> | IntArgType<Ctx> | JsonArgType<Ctx> | ListArgType<unknown, Ctx> | FixedNumArgType<number, Ctx> | UnrestrictedNumArgType<Ctx> | NumLiteralArgType<Ctx> | OneOfArgType<readonly [AnyArgType, ...AnyArgType[]], Ctx> | RecordArgType<unknown, Ctx> | ReferencedFieldRefArgType<FieldAttributeCtx & Ctx> | RejectingArgType<never, Ctx> | FixedStrArgType<string, Ctx> | UnrestrictedStrArgType<Ctx> | TaggedLiteralArgType<Ctx>;
271
+ type InspectableArgType<Ctx extends AttributeCtx> = ArgType<unknown, Ctx>;
272
+ type ArgTypeVariant<Ctx extends AttributeCtx> = BoolArgType<Ctx> | EntityRefArgType<EntityDeclaration, Ctx> | FieldRefArgType<ModelAttributeCtx & Ctx> | FuncCallArgType<string, Ctx> | IdentifierArgType<string, Ctx> | IntArgType<Ctx> | JsonArgType<Ctx> | NullArgType<Ctx> | ListArgType<unknown, Ctx> | FixedNumArgType<number, Ctx> | UnrestrictedNumArgType<Ctx> | NumLiteralArgType<Ctx> | OneOfMetadata | RecordArgType<unknown, Ctx> | ReferencedFieldRefArgType<FieldAttributeCtx & Ctx> | RejectingArgType<never, Ctx> | FixedStrArgType<string, Ctx> | UnrestrictedStrArgType<Ctx> | TaggedLiteralArgType<Ctx>;
263
273
  type OptionalArgType<T, Ctx extends AttributeCtx, Type extends object = ArgType<T, Ctx>, HasDefault extends boolean = boolean> = Type & {
264
274
  readonly optional: true;
265
275
  readonly hasDefault: HasDefault;
@@ -297,6 +307,30 @@ type PosOut<Pos extends readonly PositionalParam<unknown, never>[]> = Simplify<U
297
307
  type AttributeOut<Pos extends readonly PositionalParam<unknown, never>[], Named extends Record<string, Param<unknown, never>>> = Simplify<PosOut<Pos> & NamedOut<Named>>;
298
308
  type InferAttr<S> = S extends AttributeSpec<infer Out, never> ? Out : never;
299
309
  //#endregion
310
+ //#region src/block-spec/types.d.ts
311
+ interface BlockSpecContext {
312
+ readonly symbols: SymbolTable;
313
+ readonly block: BlockSymbol;
314
+ }
315
+ interface BlockEntryValueSpec {
316
+ readonly type: ArgType<unknown, AttributeCtx>;
317
+ readonly documentation: string;
318
+ }
319
+ interface StructBlockSpec<Out = unknown> {
320
+ readonly mode: 'struct';
321
+ readonly parameters: Readonly<Record<string, Param<unknown, AttributeCtx>>>;
322
+ readonly _out?: Out;
323
+ }
324
+ interface MapBlockSpec<Out = unknown> {
325
+ readonly mode: 'map';
326
+ readonly value: BlockEntryValueSpec;
327
+ readonly allowBare: boolean;
328
+ readonly _out?: Out;
329
+ }
330
+ type BlockSpec<Out = unknown> = StructBlockSpec<Out> | MapBlockSpec<Out>;
331
+ type InferBlock<S> = S extends BlockSpec<infer Out> ? Out : never;
332
+ type BlockSpecFactory = (ctx: BlockSpecContext) => BlockSpec<Readonly<Record<string, unknown>>>;
333
+ //#endregion
300
334
  //#region src/attribute-spec/spec-context.d.ts
301
335
  interface AttributeSpecContext {
302
336
  readonly symbols: SymbolTable;
@@ -312,7 +346,7 @@ interface AttributeSpecNamespace {
312
346
  readonly model: Readonly<Record<string, ModelAttributeSpecFactory>>;
313
347
  readonly field: Readonly<Record<string, FieldAttributeSpecFactory>>;
314
348
  }
315
- type BlockAttributeSpecFactory = () => AttributeSpec<never, AttributeCtx>;
349
+ type BlockAttributeSpecFactory = (ctx: BlockSpecContext) => AttributeSpec<never, AttributeCtx>;
316
350
  //#endregion
317
351
  //#region src/attribute-spec/assemble.d.ts
318
352
  interface AssembledAttributeSpecs {
@@ -337,7 +371,7 @@ declare function bool(): BoolArgType<AttributeCtx>;
337
371
  declare function leafDiagnostic(ctx: Pick<AttributeCtx, 'sources'>, node: AstNode, message: string, code?: PslDiagnostic['code']): PslDiagnostic;
338
372
  //#endregion
339
373
  //#region src/attribute-spec/combinators/entity-ref.d.ts
340
- declare function entityRef<const S extends EntitySelector>(expected: S): EntityRefArgType<DeclarationFor<S>, ModelAttributeCtx>;
374
+ declare function entityRef<const S extends EntitySelector>(expected: S): EntityRefArgType<DeclarationFor<S>, AttributeCtx>;
341
375
  //#endregion
342
376
  //#region src/attribute-spec/combinators/field-ref.d.ts
343
377
  declare function fieldRef(): FieldRefArgType<ModelAttributeCtx>;
@@ -366,6 +400,9 @@ declare function int(opts?: {
366
400
  */
367
401
  declare function json(): JsonArgType<AttributeCtx>;
368
402
  //#endregion
403
+ //#region src/attribute-spec/combinators/json-value.d.ts
404
+ declare function jsonValue(): JsonValueArgType<AttributeCtx>;
405
+ //#endregion
369
406
  //#region src/attribute-spec/combinators/list.d.ts
370
407
  interface ListOptions {
371
408
  readonly allowEmpty?: boolean;
@@ -434,15 +471,60 @@ declare function modelAttribute<const Pos extends readonly PositionalParam<unkno
434
471
  //#region src/attribute-spec/optional.d.ts
435
472
  declare function optional<Type extends AnyArgType>(type: Type, ...rest: [] | [defaultValue: OutOf<Type> | undefined]): OptionalArgType<OutOf<Type>, CtxOf<Type>, Type>;
436
473
  //#endregion
437
- //#region src/extension-block.d.ts
438
- declare function findBlockDescriptor(descriptors: AuthoringPslBlockDescriptorNamespace | undefined, keyword: string): AuthoringPslBlockDescriptor | undefined;
439
- declare function validateExtensionBlockFromSymbol(input: {
474
+ //#region src/block-spec/constructors.d.ts
475
+ declare function structBlock<const P extends Record<string, Param<unknown, AttributeCtx>>>(config: {
476
+ readonly parameters: P;
477
+ }): StructBlockSpec<NamedOut<P>>;
478
+ declare function mapBlock<R extends ArgType<unknown, AttributeCtx>, Bare extends boolean = false>(config: {
479
+ readonly value: {
480
+ readonly type: R;
481
+ readonly documentation: string;
482
+ };
483
+ readonly allowBare?: Bare;
484
+ }): MapBlockSpec<Record<string, Bare extends true ? OutOf<R> | undefined : OutOf<R>>>;
485
+ //#endregion
486
+ //#region src/block-spec/descriptor.d.ts
487
+ interface PslBlockSpecDescriptor extends AuthoringPslBlockDescriptor {
488
+ readonly spec: BlockSpecFactory;
489
+ readonly attributes?: Readonly<Record<string, BlockAttributeSpecFactory>>;
490
+ }
491
+ declare function blockSpecFactoryOf(descriptor: AuthoringPslBlockDescriptor): BlockSpecFactory;
492
+ //#endregion
493
+ //#region src/block-spec/interpret.d.ts
494
+ interface InterpretExtensionBlockInput<S> {
495
+ readonly block: BlockSymbol;
496
+ readonly descriptor: AuthoringPslBlockDescriptor;
497
+ readonly spec: S;
498
+ readonly symbols: SymbolTable;
499
+ readonly sources: PslSources;
500
+ readonly binder: Binder;
501
+ }
502
+ declare function interpretExtensionBlock<S extends BlockSpec<unknown>>(input: InterpretExtensionBlockInput<S>): Result<ParsedPslExtensionBlock<InferBlock<S>>, readonly PslDiagnostic[]>;
503
+ interface InterpretExtensionBlockAttributesInput {
440
504
  readonly block: BlockSymbol;
441
505
  readonly descriptor: AuthoringPslBlockDescriptor;
506
+ readonly symbols: SymbolTable;
507
+ readonly sources: PslSources;
508
+ readonly binder: Binder;
509
+ }
510
+ declare function interpretExtensionBlockAttributes(input: InterpretExtensionBlockAttributesInput): {
511
+ readonly attributes: Readonly<Record<string, PslExtensionBlockParsedAttribute>>;
512
+ readonly diagnostics: readonly PslDiagnostic[];
513
+ };
514
+ interface InterpretExtensionBlocksResult {
515
+ readonly parsedBlocks: ReadonlyMap<BlockSymbol, ParsedPslExtensionBlock>;
516
+ readonly diagnostics: readonly PslDiagnostic[];
517
+ }
518
+ interface InterpretExtensionBlocksInput {
442
519
  readonly symbolTable: SymbolTable;
443
520
  readonly sources: PslSources;
444
- readonly codecLookup: CodecLookup;
445
- }): readonly PslDiagnostic[];
521
+ readonly pslBlockDescriptors: AuthoringPslBlockDescriptorNamespace;
522
+ readonly binder: Binder;
523
+ }
524
+ declare function interpretExtensionBlocks(input: InterpretExtensionBlocksInput): InterpretExtensionBlocksResult;
525
+ //#endregion
526
+ //#region src/extension-block.d.ts
527
+ declare function findBlockDescriptor(descriptors: AuthoringPslBlockDescriptorNamespace | undefined, keyword: string): AuthoringPslBlockDescriptor | undefined;
446
528
  //#endregion
447
529
  //#region src/name-the-psl-source-loses.d.ts
448
530
  /**
@@ -455,5 +537,5 @@ declare function isPrismaNextSchema(text: string): boolean;
455
537
  /** The document with the directive earlier releases wrote replaced by the current one. */
456
538
  declare function renameLegacyDirective(text: string): string;
457
539
  //#endregion
458
- export { type ArgBindingSpec, type ArgType, type ArgTypeKind, type AssembledAttributeSpecs, type AttributeCtx, type AttributeLevel, type AttributeOut, type AttributeSpec, type AttributeSpecContext, type AttributeSpecNamespace, type AttributeSymbol, type Binder, type BinderResult, type BlockAttributeSpecFactory, type BlockSymbol, type BoundSpec, type BuildSymbolTableOptions, type CompositeTypeSymbol, type ContributedMember, type ContributedNamespaceSymbol, type ContributedTypeScope, type ContributedTypeSymbol, type CreateBinderOptions, type DeclarationFor, type DescribeUnsupportedAttribute, type DiagnosticSource, type EntityDeclaration, type EntityRefArgType, type EntitySelector, type FieldAttributeCtx, type FieldAttributeSpecContext, type FieldAttributeSpecFactory, type FieldSymbol, type FixedIdentifierArgType, type FuncCallSig, type IdentifierArgType, type InferAttr, type InspectableArgType, type ListOptions, type ModelAttributeCtx, type ModelAttributeSpecFactory, type ModelSymbol, NAME_THE_PSL_SOURCE_LOSES, type NamedOut, type NamedTypeSymbol, type NamespaceSymbol, type NumLiteral, type OptionalArgType, type OutOf, PSL_UNRESOLVED_REFERENCE, type Param, type ParsedTaggedLiteral, type PosOut, type PositionalParam, type PslAttribute, type PslAttributeArgument, type PslAttributeNamedArgument, type PslAttributePositionalArgument, type PslAttributeTarget, type PslCompositeType, type PslDefaultFunctionValue, type PslDefaultLiteralValue, type PslDefaultValue, type PslDiagnostic, type PslDiagnosticCode, type PslDiagnosticCollector, type PslDocumentAst, type PslExtensionBlock, type PslExtensionBlockAttribute, type PslExtensionBlockAttributeArg, type PslExtensionBlockParamBare, type PslExtensionBlockParamList, type PslExtensionBlockParamOption, type PslExtensionBlockParamRef, type PslExtensionBlockParamScalarValue, type PslExtensionBlockParamValue, type PslField, type PslFieldAttribute, type PslModel, type PslModelAttribute, type PslNamedTypeDeclaration, type PslNamespace, type PslPosition, type PslSpan, type PslSymbol, type PslTypeConstructorCall, type PslTypesBlock, type RejectingArgType, type Resolution, type ResolvedAttribute, type ResolvedAttributeArg, type ResolvedEntityReference, type ResolvedNamedTypeBinding, type ResolvedTypeConstructorCall, type Scope, type ScopeResolution, type SymbolTable, type SymbolTableResult, type TaggedLiteralArgType, type TopLevelScope, type TypedFuncCall, type UnrestrictedIdentifierArgType, type UnsupportedAttribute, assembleAttributeSpecs, blockAttribute, bool, buildSymbolTable, createBinder, createPslDiagnosticCollector, diagnosticFromSpan, diagnosticSource, entityRef, fieldAttribute, fieldRef, findBlockDescriptor, flatPslModels, funcCall, getPositionalArgument, identifier, int, interpretArgs, interpretAttribute, isPrismaNextSchema, isPslIdentifier, json, keywordPslSpan, leafDiagnostic, list, mapPslDiagnostics, modelAttribute, namespacePslExtensionBlocks, nodePslSpan, num, numLiteral, oneOf, optional, parseQuotedStringLiteral, readResolvedAttribute, readResolvedAttributes, readResolvedConstructorCall, record, referencedFieldRef, renameLegacyDirective, str, taggedLiteral, validateExtensionBlockFromSymbol };
540
+ export { type ArgBindingSpec, type ArgType, type ArgTypeKind, type AssembledAttributeSpecs, type AttributeCtx, type AttributeLevel, type AttributeOut, type AttributeSpec, type AttributeSpecContext, type AttributeSpecNamespace, type AttributeSymbol, type Binder, type BinderResult, type BlockAttributeSpecFactory, type BlockEntryValueSpec, type BlockSpec, type BlockSpecContext, type BlockSpecFactory, type BlockSymbol, type BoundSpec, type BuildSymbolTableOptions, type CompositeTypeSymbol, type ContributedMember, type ContributedNamespaceSymbol, type ContributedTypeScope, type ContributedTypeSymbol, type CreateBinderOptions, type DeclarationFor, type DescribeUnsupportedAttribute, type DiagnosticSource, type EntityDeclaration, type EntityRefArgType, type EntitySelector, type FieldAttributeCtx, type FieldAttributeSpecContext, type FieldAttributeSpecFactory, type FieldSymbol, type FixedIdentifierArgType, type FuncCallSig, type IdentifierArgType, type InferAttr, type InferBlock, type InspectableArgType, type InterpretExtensionBlockAttributesInput, type InterpretExtensionBlockInput, type InterpretExtensionBlocksResult, type JsonValueArgType, type ListOptions, type MapBlockSpec, type ModelAttributeCtx, type ModelAttributeSpecFactory, type ModelSymbol, NAME_THE_PSL_SOURCE_LOSES, type NamedOut, type NamedTypeSymbol, type NamespaceSymbol, type NullArgType, type NumLiteral, type OptionalArgType, type OutOf, PSL_UNRESOLVED_REFERENCE, type Param, type ParsedPslExtensionBlock, type ParsedTaggedLiteral, type PosOut, type PositionalParam, type PslAttribute, type PslAttributeArgument, type PslAttributeNamedArgument, type PslAttributePositionalArgument, type PslAttributeTarget, type PslBlockSpecDescriptor, type PslCompositeType, type PslDefaultFunctionValue, type PslDefaultLiteralValue, type PslDefaultValue, type PslDiagnostic, type PslDiagnosticCode, type PslDiagnosticCollector, type PslDocumentAst, type PslExtensionBlock, type PslExtensionBlockAttribute, type PslExtensionBlockAttributeArg, type PslExtensionBlockParsedAttribute, type PslExtensionBlockPrintEntry, type PslField, type PslFieldAttribute, type PslModel, type PslModelAttribute, type PslNamedTypeDeclaration, type PslNamespace, type PslPosition, type PslSpan, type PslSymbol, type PslTypeConstructorCall, type PslTypesBlock, type RejectingArgType, type Resolution, type ResolvedAttribute, type ResolvedAttributeArg, type ResolvedEntityReference, type ResolvedNamedTypeBinding, type ResolvedTypeConstructorCall, type Scope, type ScopeResolution, type StructBlockSpec, type SymbolTable, type SymbolTableResult, type TaggedLiteralArgType, type TopLevelScope, type TypedFuncCall, type UnrestrictedIdentifierArgType, type UnsupportedAttribute, assembleAttributeSpecs, blockAttribute, blockSpecFactoryOf, bool, buildSymbolTable, createBinder, createPslDiagnosticCollector, diagnosticFromSpan, diagnosticSource, entityRef, fieldAttribute, fieldRef, findBlockDescriptor, flatPslModels, funcCall, getPositionalArgument, identifier, int, interpretArgs, interpretAttribute, interpretExtensionBlock, interpretExtensionBlockAttributes, interpretExtensionBlocks, isPrismaNextSchema, isPslIdentifier, json, jsonValue, keywordPslSpan, leafDiagnostic, list, mapBlock, mapPslDiagnostics, modelAttribute, namespacePslExtensionBlocks, nodePslSpan, num, numLiteral, oneOf, optional, parseQuotedStringLiteral, readResolvedAttribute, readResolvedAttributes, readResolvedConstructorCall, record, referencedFieldRef, renameLegacyDirective, str, structBlock, taggedLiteral };
459
541
  //# sourceMappingURL=psl-parser.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"psl-parser.d.mts","names":[],"sources":["../../../../1-framework/2-authoring/psl-parser/dist/index.d.mts"],"mappings":";;;;;;;;;;;;;;iBAUiB,sBAAsB,WAAW,cAAgB;iBACjD,yBAAyB;;;UAGhC;WACC;WACA;WACA;WACA,YAAY;;UAEb;WACC;WACA;WACA;WACA,SAAS,oBAAoB;;KAEnC,oBAAoB,wBAAwB;UACvC;EACR,OAAO,eAAe;;;;KAInB;WACM;WACA,QAAQ;WACR,YAAY;;WAEZ;WACA,QAAQ;WACR,YAAY;;WAEZ;WACA,QAAQ;WACR,YAAY;;WAEZ;WACA,QAAQ;WACR,YAAY;;WAEZ;WACA,QAAQ;;WAER;WACA,QAAQ;;WAER;WACA,QAAQ;;UAET;EACR,OAAO,eAAe;;;;cAIV;KACT,YAAY,qBAAqB,qBAAqB,qBAAqB;UACtE;WACC;WACA;WACA;WACA,MAAM;;KAEZ,YAAY,cAAc,sBAAsB,kBAAkB,cAAc,kBAAkB;KAClG,aAAa;WACP;WACA,QAAQ;;WAER;WACA,QAAQ;;WAER;;WAEA;WACA;;UAED;EACR,eAAe,MAAM,aAAa;EAClC,cAAc,MAAM,aAAa;;UAEzB;WACC,WAAW;WACX;WACA,OAAO,cAAc;WACrB,OAAO;;KAEb,gCAAgC,aAAa,yBAAyB;UACjE;WACC,SAAS;WACT,aAAa;WACb,kBAAkB;WAClB,gBAAgB;WAChB,yBAAyB;WACzB,+BAA+B;;UAEhC;WACC,QAAQ;WACR,sBAAsB;;iBAEhB,aAAa,SAAS,sBAAsB;;;KAGxD;WACM;;WAEA;;WAEA;;WAEA;WACA;;KAEN,oBAAoB,cAAc,sBAAsB,kBAAkB;KAC1E,eAAe,UAAU,kBAAkB,QAAQ;EACtD,MAAM;;UAEE,wBAAwB,UAAU,oBAAoB;WACrD,aAAa;WACb,WAAW;;;;KAIjB;UACK;WACC,SAAS;WACT,SAAS;;UAEV,0BAA0B;WACzB,WAAW;WACX,QAAQ;;UAET,0BAA0B;WACzB,OAAO;;KA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