@prisma/orm-framework 8.0.0-rc.14-dev.35 → 8.0.0-rc.14-dev.37

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 (107) hide show
  1. package/dist/{authoring-CUDReFVP.d.mts → authoring-CcT010vl.d.mts} +5 -5
  2. package/dist/{authoring-CUDReFVP.d.mts.map → authoring-CcT010vl.d.mts.map} +1 -1
  3. package/dist/{authoring-Cp71GImA.mjs → authoring-iMWszF7p.mjs} +15 -5
  4. package/dist/authoring-iMWszF7p.mjs.map +1 -0
  5. package/dist/{binder-Dz5zT7tr-CCCwiQ29.d.mts → binder-Dz5zT7tr-UEfDpcxO.d.mts} +9 -9
  6. package/dist/{binder-Dz5zT7tr-CCCwiQ29.d.mts.map → binder-Dz5zT7tr-UEfDpcxO.d.mts.map} +1 -1
  7. package/dist/{codec-0XB-9TzG.d.mts → codec-BSm2qNVe.d.mts} +4 -8
  8. package/dist/codec-BSm2qNVe.d.mts.map +1 -0
  9. package/dist/{codec-Cz-bOon3.mjs → codec-U-xbQys_.mjs} +12 -7
  10. package/dist/codec-U-xbQys_.mjs.map +1 -0
  11. package/dist/{codec-types-CZ8xRBJy-BMjCsUt1.d.mts → codec-types-8NKqm4AQ-DyNSay3e.d.mts} +17 -5
  12. package/dist/codec-types-8NKqm4AQ-DyNSay3e.d.mts.map +1 -0
  13. package/dist/{components-CRRIFm30.d.mts → components-CK8GHz8l.d.mts} +4 -4
  14. package/dist/{components-CRRIFm30.d.mts.map → components-CK8GHz8l.d.mts.map} +1 -1
  15. package/dist/components.d.mts +18 -18
  16. package/dist/components.mjs +7 -7
  17. package/dist/components__authoring.d.mts +4 -4
  18. package/dist/components__authoring.mjs +3 -3
  19. package/dist/components__codec.d.mts +3 -3
  20. package/dist/components__codec.mjs +3 -3
  21. package/dist/components__components.d.mts +3 -3
  22. package/dist/components__control.d.mts +4 -4
  23. package/dist/components__control.mjs +3 -3
  24. package/dist/components__emission.d.mts +3 -3
  25. package/dist/components__execution.d.mts +1 -1
  26. package/dist/components__ir.d.mts +1 -1
  27. package/dist/components__psl-ast.d.mts +3 -3
  28. package/dist/components__runtime.d.mts +2 -2
  29. package/dist/components__runtime.mjs +2 -2
  30. package/dist/{config-types-E4OZwoHK.d.mts → config-types-D7Gkm2iv.d.mts} +6 -6
  31. package/dist/{config-types-E4OZwoHK.d.mts.map → config-types-D7Gkm2iv.d.mts.map} +1 -1
  32. package/dist/config.d.mts +1 -1
  33. package/dist/config__config-types.d.mts +1 -1
  34. package/dist/contract-authoring.d.mts +10 -13
  35. package/dist/contract-authoring.d.mts.map +1 -1
  36. package/dist/contract-authoring.mjs +1 -3
  37. package/dist/contract-authoring.mjs.map +1 -1
  38. package/dist/{control-D9TxxGse.mjs → control-BIv_-3QB.mjs} +20 -5
  39. package/dist/control-BIv_-3QB.mjs.map +1 -0
  40. package/dist/{control-DtFLqCvx.d.mts → control-C1x8zzHb.d.mts} +56 -41
  41. package/dist/control-C1x8zzHb.d.mts.map +1 -0
  42. package/dist/{declarations-DDT0hm5r-D_XDM-WN.mjs → declarations-DDT0hm5r-BZoOKiu1.mjs} +2 -2
  43. package/dist/{declarations-DDT0hm5r-D_XDM-WN.mjs.map → declarations-DDT0hm5r-BZoOKiu1.mjs.map} +1 -1
  44. package/dist/emission-D9NsURmS.d.mts +2 -0
  45. package/dist/{emission-types-CKbNqwUs-hrIslUsL.d.mts → emission-types-BpY3maMX-pzm7Xmn7.d.mts} +4 -4
  46. package/dist/{emission-types-CKbNqwUs-hrIslUsL.d.mts.map → emission-types-BpY3maMX-pzm7Xmn7.d.mts.map} +1 -1
  47. package/dist/errors.d.mts +1 -1
  48. package/dist/errors__execution.d.mts +1 -1
  49. package/dist/{execution-ZWG0tqRB.d.mts → execution-gjfB1CvH.d.mts} +2 -2
  50. package/dist/{execution-ZWG0tqRB.d.mts.map → execution-gjfB1CvH.d.mts.map} +1 -1
  51. package/dist/{execution-DHWSU95b.d.mts → execution-o-z5gzZh.d.mts} +2 -2
  52. package/dist/{execution-DHWSU95b.d.mts.map → execution-o-z5gzZh.d.mts.map} +1 -1
  53. package/dist/{framework-authoring-BJf_-FTJ-K8fp3V_r.d.mts → framework-authoring-DRrZ8_s0-CJ7XXqvx.d.mts} +37 -4
  54. package/dist/framework-authoring-DRrZ8_s0-CJ7XXqvx.d.mts.map +1 -0
  55. package/dist/{framework-components-7SQpxVko-BaUd55aP.d.mts → framework-components-DDr6lZoZ-EpXYrZj7.d.mts} +6 -12
  56. package/dist/framework-components-DDr6lZoZ-EpXYrZj7.d.mts.map +1 -0
  57. package/dist/ids.d.mts +1 -1
  58. package/dist/ids.mjs +1 -4
  59. package/dist/ids.mjs.map +1 -1
  60. package/dist/{ir-BOKp6I1y.d.mts → ir-bkQr_x1E.d.mts} +2 -2
  61. package/dist/{ir-BOKp6I1y.d.mts.map → ir-bkQr_x1E.d.mts.map} +1 -1
  62. package/dist/{mutation-default-types-CrA6rrwU-BkMgh2pO.d.mts → mutation-default-types-D_M8NC3U-BQNexfRU.d.mts} +3 -3
  63. package/dist/{mutation-default-types-CrA6rrwU-BkMgh2pO.d.mts.map → mutation-default-types-D_M8NC3U-BQNexfRU.d.mts.map} +1 -1
  64. package/dist/{parse-eSQ_clQv-BIek6vrj.d.mts → parse-eSQ_clQv-BQKtf4px.d.mts} +6 -6
  65. package/dist/{parse-eSQ_clQv-BIek6vrj.d.mts.map → parse-eSQ_clQv-BQKtf4px.d.mts.map} +1 -1
  66. package/dist/{parse-ymgXJUnk-SzrYveCt.mjs → parse-ymgXJUnk-CwVCe8ZD.mjs} +2 -2
  67. package/dist/{parse-ymgXJUnk-SzrYveCt.mjs.map → parse-ymgXJUnk-CwVCe8ZD.mjs.map} +1 -1
  68. package/dist/{psl-ast-DtjFlM-c-amCHIsWc.d.mts → psl-ast-BVYEC5xX-BEqjBVqF.d.mts} +3 -3
  69. package/dist/{psl-ast-DtjFlM-c-amCHIsWc.d.mts.map → psl-ast-BVYEC5xX-BEqjBVqF.d.mts.map} +1 -1
  70. package/dist/psl-ast-a1L1ep0a.d.mts +2 -0
  71. package/dist/psl-parser.d.mts +8 -8
  72. package/dist/psl-parser.mjs +19 -6
  73. package/dist/psl-parser.mjs.map +1 -1
  74. package/dist/psl-parser__format.d.mts +1 -1
  75. package/dist/psl-parser__format.mjs +2 -2
  76. package/dist/psl-parser__interpret.d.mts +6 -6
  77. package/dist/psl-parser__interpret.mjs +1 -1
  78. package/dist/psl-parser__syntax.d.mts +1 -1
  79. package/dist/psl-parser__syntax.mjs +2 -2
  80. package/dist/psl-printer.d.mts +4 -4
  81. package/dist/psl-printer.mjs +1 -1
  82. package/dist/{resolve-codec-qE0g980d-Ck_gIaTi.mjs → resolve-codec-vOfdHcIJ-IeNjz3Tm.mjs} +6 -5
  83. package/dist/resolve-codec-vOfdHcIJ-IeNjz3Tm.mjs.map +1 -0
  84. package/dist/{runtime-DhUFoLHx.mjs → runtime-7NCyLoeP.mjs} +109 -5
  85. package/dist/{runtime-DhUFoLHx.mjs.map → runtime-7NCyLoeP.mjs.map} +1 -1
  86. package/dist/{runtime-BccsLa5m.d.mts → runtime-NuBiQEuH.d.mts} +45 -3
  87. package/dist/runtime-NuBiQEuH.d.mts.map +1 -0
  88. package/dist/{temporal-presets-pC0xlwib-Diikns1l.d.mts → temporal-presets-CLsu00ZK-CAx-cLAM.d.mts} +4 -4
  89. package/dist/{temporal-presets-pC0xlwib-Diikns1l.d.mts.map → temporal-presets-CLsu00ZK-CAx-cLAM.d.mts.map} +1 -1
  90. package/dist/{temporal-presets-UoKnoAlu-6864WUSv.mjs → temporal-presets-DIo9uYtS-Odk6WBk8.mjs} +19 -3
  91. package/dist/temporal-presets-DIo9uYtS-Odk6WBk8.mjs.map +1 -0
  92. package/dist/{types-import-spec-BLFYPur6-QN7ntocb.d.mts → types-import-spec-U2GFdg-x-CRt_XdWj.d.mts} +3 -3
  93. package/dist/{types-import-spec-BLFYPur6-QN7ntocb.d.mts.map → types-import-spec-U2GFdg-x-CRt_XdWj.d.mts.map} +1 -1
  94. package/package.json +15 -15
  95. package/dist/authoring-Cp71GImA.mjs.map +0 -1
  96. package/dist/codec-0XB-9TzG.d.mts.map +0 -1
  97. package/dist/codec-Cz-bOon3.mjs.map +0 -1
  98. package/dist/codec-types-CZ8xRBJy-BMjCsUt1.d.mts.map +0 -1
  99. package/dist/control-D9TxxGse.mjs.map +0 -1
  100. package/dist/control-DtFLqCvx.d.mts.map +0 -1
  101. package/dist/emission-CKIZBZw3.d.mts +0 -2
  102. package/dist/framework-authoring-BJf_-FTJ-K8fp3V_r.d.mts.map +0 -1
  103. package/dist/framework-components-7SQpxVko-BaUd55aP.d.mts.map +0 -1
  104. package/dist/psl-ast-CcQp_u_l.d.mts +0 -2
  105. package/dist/resolve-codec-qE0g980d-Ck_gIaTi.mjs.map +0 -1
  106. package/dist/runtime-BccsLa5m.d.mts.map +0 -1
  107. package/dist/temporal-presets-UoKnoAlu-6864WUSv.mjs.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { V as JsonValue } from "./domain-envelope-C2vVIWGK-C5x7cBpU.mjs";
2
- import { i as Codec } from "./codec-types-CZ8xRBJy-BMjCsUt1.mjs";
3
- import { $ as instantiateAuthoringTypeConstructor, F as ParsedPslExtensionBlock, a as AuthoringContributions, k as AuthoringTypeNamespace, p as AuthoringFieldPresetDescriptor, s as AuthoringEntityContext } from "./framework-authoring-BJf_-FTJ-K8fp3V_r.mjs";
4
- import "./temporal-presets-pC0xlwib-Diikns1l.mjs";
2
+ import { i as Codec } from "./codec-types-8NKqm4AQ-DyNSay3e.mjs";
3
+ import { F as ParsedPslExtensionBlock, a as AuthoringContributions, et as instantiateAuthoringTypeConstructor, k as AuthoringTypeNamespace, p as AuthoringFieldPresetDescriptor, s as AuthoringEntityContext } from "./framework-authoring-DRrZ8_s0-CJ7XXqvx.mjs";
4
+ import "./temporal-presets-CLsu00ZK-CAx-cLAM.mjs";
5
5
  //#region ../../../1-framework/1-core/framework-components/dist/authoring.d.mts
6
6
  //#region src/shared/authoring-type-constructor-call.d.ts
7
7
  /** What a type constructor call produces for a column. */
@@ -25,7 +25,7 @@ interface EnumBlockMember {
25
25
  readonly value: unknown;
26
26
  }
27
27
  /**
28
- * Reads the members of an `enum` block through its codec. A bare member is read from its own name.
28
+ * Reads the members of an `enum` block through its codec. A member written as a number literal is read from its source text as a column default is read, when the family gives a reader for it (`ctx.readWrittenNumber`), so no digit is lost; when that reader refuses the number, the codec's `decodeJson` reads it, and only if the codec refuses it too is the reader's reason reported. Every other member goes to the codec's `decodeJson`, and a bare member is read from its own name.
29
29
  * Pushes a diagnostic and returns `undefined` when the codec refuses a member, when two members
30
30
  * store the same value, or when the block has no members. Shared by every family's enum factory.
31
31
  */
@@ -42,4 +42,4 @@ declare function fieldPresetSpellings(contributions: AuthoringContributions | un
42
42
  declare function getAuthoringFieldPreset(contributions: AuthoringContributions | undefined, path: readonly string[]): AuthoringFieldPresetDescriptor | undefined;
43
43
  //#endregion
44
44
  export { findAuthoringTypeConstructorCall as a, fieldPresetSpellings as i, AuthoringTypeConstructorOutput as n, getAuthoringFieldPreset as o, EnumBlockMember as r, readEnumBlockMembers as s, AuthoringTypeConstructorCall as t };
45
- //# sourceMappingURL=authoring-CUDReFVP.d.mts.map
45
+ //# sourceMappingURL=authoring-CcT010vl.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"authoring-CUDReFVP.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/authoring.d.mts"],"mappings":";;;;;;;KAMK,iCAAiC,kBAAkB;;UAE9C;WACC;WACA;;;;;;;;iBAQM,iCAAiC,WAAW,wBAAwB,QAAQ,iCAAiC;;;UAGpH;WACC;WACA;;;;;;;iBAOM,qBAAqB,OAAO,wBAAwB,SAAS,eAAe,0BAA0B,iBAAiB,OAAO,OAAO,KAAK,kCAAkC;;;;;;iBAM5K,qBAAqB,eAAe,oCAAoC;;;;iBAIxE,wBAAwB,eAAe,oCAAoC,0BAA0B"}
1
+ {"version":3,"file":"authoring-CcT010vl.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/authoring.d.mts"],"mappings":";;;;;;;KAMK,iCAAiC,kBAAkB;;UAE9C;WACC;WACA;;;;;;;;iBAQM,iCAAiC,WAAW,wBAAwB,QAAQ,iCAAiC;;;UAGpH;WACC;WACA;;;;;;;iBAOM,qBAAqB,OAAO,wBAAwB,SAAS,eAAe,0BAA0B,iBAAiB,OAAO,OAAO,KAAK,kCAAkC;;;;;;iBAM5K,qBAAqB,eAAe,oCAAoC;;;;iBAIxE,wBAAwB,eAAe,oCAAoC,0BAA0B"}
@@ -1,7 +1,7 @@
1
1
  import { r as isInternalError } from "./internal-error-ChGYPVpq-DhUD05u0.mjs";
2
2
  import { t as canonicalStringify } from "./canonical-stringify-DY4NaAJi.mjs";
3
3
  import { t as canonicalizeJson } from "./canonicalize-json-ZPawceQR-Dua1VNEB.mjs";
4
- import { S as isAuthoringTypeConstructorDescriptor, _ as isAuthoringArgRef, g as instantiateAuthoringTypeConstructor, y as isAuthoringFieldPresetDescriptor } from "./temporal-presets-UoKnoAlu-6864WUSv.mjs";
4
+ import { C as isAuthoringTypeConstructorDescriptor, _ as instantiateAuthoringTypeConstructor, b as isAuthoringFieldPresetDescriptor, v as isAuthoringArgRef } from "./temporal-presets-DIo9uYtS-Odk6WBk8.mjs";
5
5
  //#region ../../../1-framework/1-core/framework-components/dist/authoring.mjs
6
6
  function* typeConstructors(namespace, path = []) {
7
7
  for (const [name, value] of Object.entries(namespace)) if (isAuthoringTypeConstructorDescriptor(value)) yield {
@@ -56,7 +56,7 @@ function findAuthoringTypeConstructorCall(namespace, output) {
56
56
  }
57
57
  }
58
58
  /**
59
- * Reads the members of an `enum` block through its codec. A bare member is read from its own name.
59
+ * Reads the members of an `enum` block through its codec. A member written as a number literal is read from its source text as a column default is read, when the family gives a reader for it (`ctx.readWrittenNumber`), so no digit is lost; when that reader refuses the number, the codec's `decodeJson` reads it, and only if the codec refuses it too is the reader's reason reported. Every other member goes to the codec's `decodeJson`, and a bare member is read from its own name.
60
60
  * Pushes a diagnostic and returns `undefined` when the codec refuses a member, when two members
61
61
  * store the same value, or when the block has no members. Shared by every family's enum factory.
62
62
  */
@@ -68,13 +68,23 @@ function readEnumBlockMembers(block, codecId, codec, ctx) {
68
68
  let memberError = false;
69
69
  for (const [memberName, memberValue] of Object.entries(block.values)) {
70
70
  const span = block.parameterSpans[memberName] ?? block.span;
71
- const written = memberValue === void 0 ? memberName : memberValue;
71
+ const reading = typeof memberValue === "number" ? ctx.readWrittenNumber?.({
72
+ text: block.numberTexts?.[memberName] ?? String(memberValue),
73
+ codecId,
74
+ subject: `enum "${block.name}" member "${memberName}"`
75
+ }) : void 0;
76
+ const written = reading?.ok ? reading.value : memberValue === void 0 ? memberName : memberValue;
72
77
  let read;
73
78
  try {
74
79
  read = codec.decodeJson(written);
75
80
  } catch (err) {
76
81
  if (isInternalError(err)) throw err;
77
- diagnostics?.push(memberValue === void 0 ? {
82
+ diagnostics?.push(reading !== void 0 && !reading.ok ? {
83
+ code: "PSL_EXTENSION_INVALID_VALUE",
84
+ message: reading.message,
85
+ sourceId,
86
+ span
87
+ } : memberValue === void 0 ? {
78
88
  code: "PSL_ENUM_BARE_MEMBER_NON_STRING_CODEC",
79
89
  message: `enum "${block.name}" member "${memberName}" has no value and codec "${codecId}" does not accept a bare name as input`,
80
90
  sourceId,
@@ -144,4 +154,4 @@ function getAuthoringFieldPreset(contributions, path) {
144
154
  //#endregion
145
155
  export { readEnumBlockMembers as i, findAuthoringTypeConstructorCall as n, getAuthoringFieldPreset as r, fieldPresetSpellings as t };
146
156
 
147
- //# sourceMappingURL=authoring-Cp71GImA.mjs.map
157
+ //# sourceMappingURL=authoring-iMWszF7p.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authoring-iMWszF7p.mjs","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/authoring.mjs"],"sourcesContent":["import { t as canonicalizeJson } from \"./canonicalize-json-ZPawceQR.mjs\";\nimport { A as isAuthoringTypeConstructorDescriptor, C as instantiateAuthoringFieldPreset, D as isAuthoringFieldPresetDescriptor, E as isAuthoringEntityTypeDescriptor, F as resolveEnumCodecId, I as tagEntryKey, L as validateAuthoringHelperArguments, N as mergeAuthoringNamespaces, O as isAuthoringModelAttributeDescriptor, P as resolveAuthoringTemplateValue, R as validateAuthoringTypeParams, S as instantiateAuthoringEntityType, T as isAuthoringArgRef, _ as classifyEnumMemberType, a as temporalCodecPreset, b as flushAuthoringWarnings, d as printTaggedLiteral, g as authoringEntryType, h as assertResolvableTypeConstructorTemplates, i as temporalAuthoringPresets, j as isTagEntryKey, k as isAuthoringPslBlockDescriptor, m as assertNoCrossRegistryCollisions, n as TEMPORAL_ON_UPDATE_ARG, o as temporalPhaseTemplate, r as TIMESTAMP_NOW_GENERATOR_ID, t as TEMPORAL_ON_CREATE_ARG, w as instantiateAuthoringTypeConstructor, x as getAuthoringTypeConstructor, y as collectScalarTypeConstructors } from \"./temporal-presets-DIo9uYtS.mjs\";\nimport { isInternalError } from \"@internal/utils/internal-error\";\nimport { canonicalStringify } from \"@internal/utils/canonical-stringify\";\n//#region src/shared/authoring-type-constructor-call.ts\nfunction* typeConstructors(namespace, path = []) {\n\tfor (const [name, value] of Object.entries(namespace)) if (isAuthoringTypeConstructorDescriptor(value)) yield {\n\t\tpath: [...path, name],\n\t\tdescriptor: value\n\t};\n\telse yield* typeConstructors(value, [...path, name]);\n}\nfunction produces(produced, wanted) {\n\tconst wantedFields = {\n\t\t...wanted,\n\t\ttypeParams: wanted.typeParams ?? {}\n\t};\n\treturn Object.entries({\n\t\t...produced,\n\t\ttypeParams: produced.typeParams ?? {}\n\t}).every(([key, value]) => canonicalizeJson(value) === canonicalizeJson(wantedFields[key]));\n}\n/**\n* The arguments that make `descriptor` produce exactly `output`, when each of its type parameters\n* comes straight from one argument; `undefined` when it cannot produce `output`, including when\n* `output` has no value for an argument the constructor requires.\n*/\nfunction argumentsFor(descriptor, output) {\n\tif (descriptor.entityRefArg !== void 0 || descriptor.output.codecId !== output.codecId) return;\n\tconst args = [];\n\tfor (const [key, template] of Object.entries(descriptor.output.typeParams ?? {})) {\n\t\tconst value = output.typeParams?.[key];\n\t\tif (value !== void 0 && isAuthoringArgRef(template) && template.path === void 0) args[template.index] = value;\n\t}\n\tconst requiredArgs = (descriptor.args ?? []).filter((arg) => arg.optional !== true).length;\n\tif (args.length < requiredArgs || Array.from(args).includes(void 0)) return void 0;\n\ttry {\n\t\treturn produces(instantiateAuthoringTypeConstructor(descriptor, args), output) ? args : void 0;\n\t} catch {\n\t\treturn;\n\t}\n}\n/**\n* The first call, in namespace order, to a type constructor in `namespace` that produces exactly\n* `output`. The inverse of {@link instantiateAuthoringTypeConstructor} for constructors whose type\n* parameters each come straight from one argument. A constructor whose argument names another\n* entity is never chosen. `undefined` when no call produces `output`.\n*/\nfunction findAuthoringTypeConstructorCall(namespace, output) {\n\tfor (const { path, descriptor } of typeConstructors(namespace)) {\n\t\tconst args = argumentsFor(descriptor, output);\n\t\tif (args !== void 0) return {\n\t\t\tpath,\n\t\t\targs\n\t\t};\n\t}\n}\n//#endregion\n//#region src/shared/enum-block-members.ts\n/**\n* Reads the members of an `enum` block through its codec. A member written as a number literal is read from its source text as a column default is read, when the family gives a reader for it (`ctx.readWrittenNumber`), so no digit is lost; when that reader refuses the number, the codec's `decodeJson` reads it, and only if the codec refuses it too is the reader's reason reported. Every other member goes to the codec's `decodeJson`, and a bare member is read from its own name.\n* Pushes a diagnostic and returns `undefined` when the codec refuses a member, when two members\n* store the same value, or when the block has no members. Shared by every family's enum factory.\n*/\nfunction readEnumBlockMembers(block, codecId, codec, ctx) {\n\tconst sourceId = ctx.sourceId ?? \"unknown\";\n\tconst diagnostics = ctx.diagnostics;\n\tconst memberByStoredValue = /* @__PURE__ */ new Map();\n\tconst members = [];\n\tlet memberError = false;\n\tfor (const [memberName, memberValue] of Object.entries(block.values)) {\n\t\tconst span = block.parameterSpans[memberName] ?? block.span;\n\t\tconst reading = typeof memberValue === \"number\" ? ctx.readWrittenNumber?.({\n\t\t\ttext: block.numberTexts?.[memberName] ?? String(memberValue),\n\t\t\tcodecId,\n\t\t\tsubject: `enum \"${block.name}\" member \"${memberName}\"`\n\t\t}) : void 0;\n\t\tconst written = reading?.ok ? reading.value : memberValue === void 0 ? memberName : memberValue;\n\t\tlet read;\n\t\ttry {\n\t\t\tread = codec.decodeJson(written);\n\t\t} catch (err) {\n\t\t\tif (isInternalError(err)) throw err;\n\t\t\tdiagnostics?.push(reading !== void 0 && !reading.ok ? {\n\t\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\t\tmessage: reading.message,\n\t\t\t\tsourceId,\n\t\t\t\tspan\n\t\t\t} : memberValue === void 0 ? {\n\t\t\t\tcode: \"PSL_ENUM_BARE_MEMBER_NON_STRING_CODEC\",\n\t\t\t\tmessage: `enum \"${block.name}\" member \"${memberName}\" has no value and codec \"${codecId}\" does not accept a bare name as input`,\n\t\t\t\tsourceId,\n\t\t\t\tspan\n\t\t\t} : {\n\t\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\t\tmessage: `enum \"${block.name}\" member \"${memberName}\" was rejected by codec \"${codecId}\": ${err instanceof Error ? err.message : String(err)}`,\n\t\t\t\tsourceId,\n\t\t\t\tspan\n\t\t\t});\n\t\t\tmemberError = true;\n\t\t\tcontinue;\n\t\t}\n\t\tconst stored = codec.encodeJson(read);\n\t\tconst storedKey = canonicalStringify(stored);\n\t\tconst earlier = memberByStoredValue.get(storedKey);\n\t\tif (earlier !== void 0) {\n\t\t\tdiagnostics?.push({\n\t\t\t\tcode: \"PSL_ENUM_DUPLICATE_MEMBER_VALUE\",\n\t\t\t\tmessage: `enum \"${block.name}\": members \"${earlier}\" and \"${memberName}\" both store ${JSON.stringify(stored)}`,\n\t\t\t\tsourceId,\n\t\t\t\tspan\n\t\t\t});\n\t\t\tmemberError = true;\n\t\t\tcontinue;\n\t\t}\n\t\tmemberByStoredValue.set(storedKey, memberName);\n\t\tmembers.push({\n\t\t\tname: memberName,\n\t\t\tvalue: read\n\t\t});\n\t}\n\tif (memberError) return void 0;\n\tif (members.length === 0) {\n\t\tdiagnostics?.push({\n\t\t\tcode: \"PSL_ENUM_MISSING_TYPE\",\n\t\t\tmessage: `enum \"${block.name}\" must have at least one member`,\n\t\t\tsourceId,\n\t\t\tspan: block.span\n\t\t});\n\t\treturn;\n\t}\n\treturn members;\n}\n//#endregion\n//#region src/shared/field-preset-resolution.ts\nfunction presetSpellingsUnder(members, prefix) {\n\treturn Object.entries(members).flatMap(([name, member]) => isAuthoringFieldPresetDescriptor(member) ? [`${prefix}.${name}(${(member.args ?? []).map((arg, index) => arg.name ?? `argument${index + 1}`).join(\", \")})`] : presetSpellingsUnder(member, `${prefix}.${name}`));\n}\n/**\n* How each field preset registered under `namespace`, at any depth, is written, with the names of its arguments: `temporal.timestamp(onCreate, onUpdate)`.\n*/\nfunction fieldPresetSpellings(contributions, namespace) {\n\tconst members = contributions?.field?.[namespace];\n\tif (members === void 0 || isAuthoringFieldPresetDescriptor(members)) return [];\n\treturn presetSpellingsUnder(members, namespace);\n}\n/**\n* Walks `authoringContributions.field` segment by segment and returns the field-preset descriptor at the path, or `undefined` when none is registered there.\n*/\nfunction getAuthoringFieldPreset(contributions, path) {\n\tlet current = contributions?.field;\n\tfor (const segment of path) {\n\t\tif (typeof current !== \"object\" || current === null || \"kind\" in current) return;\n\t\tcurrent = current[segment];\n\t}\n\treturn current !== void 0 && isAuthoringFieldPresetDescriptor(current) ? current : void 0;\n}\n//#endregion\nexport { TEMPORAL_ON_CREATE_ARG, TEMPORAL_ON_UPDATE_ARG, TIMESTAMP_NOW_GENERATOR_ID, assertNoCrossRegistryCollisions, assertResolvableTypeConstructorTemplates, authoringEntryType, classifyEnumMemberType, collectScalarTypeConstructors, fieldPresetSpellings, findAuthoringTypeConstructorCall, flushAuthoringWarnings, getAuthoringFieldPreset, getAuthoringTypeConstructor, instantiateAuthoringEntityType, instantiateAuthoringFieldPreset, instantiateAuthoringTypeConstructor, isAuthoringArgRef, isAuthoringEntityTypeDescriptor, isAuthoringFieldPresetDescriptor, isAuthoringModelAttributeDescriptor, isAuthoringPslBlockDescriptor, isAuthoringTypeConstructorDescriptor, isTagEntryKey, mergeAuthoringNamespaces, printTaggedLiteral, readEnumBlockMembers, resolveAuthoringTemplateValue, resolveEnumCodecId, tagEntryKey, temporalAuthoringPresets, temporalCodecPreset, temporalPhaseTemplate, validateAuthoringHelperArguments, validateAuthoringTypeParams };\n\n//# sourceMappingURL=authoring.mjs.map"],"mappings":";;;;;AAKA,UAAU,iBAAiB,WAAW,OAAO,CAAC,GAAG;CAChD,KAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAQ,SAAS,GAAG,IAAI,qCAAqC,KAAK,GAAG,MAAM;EAC7G,MAAM,CAAC,GAAG,MAAM,IAAI;EACpB,YAAY;CACb;MACK,OAAO,iBAAiB,OAAO,CAAC,GAAG,MAAM,IAAI,CAAC;AACpD;AACA,SAAS,SAAS,UAAU,QAAQ;CACnC,MAAM,eAAe;EACpB,GAAG;EACH,YAAY,OAAO,cAAc,CAAC;CACnC;CACA,OAAO,OAAO,QAAQ;EACrB,GAAG;EACH,YAAY,SAAS,cAAc,CAAC;CACrC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,WAAW,iBAAiB,KAAK,MAAM,iBAAiB,aAAa,IAAI,CAAC;AAC3F;;;;;;AAMA,SAAS,aAAa,YAAY,QAAQ;CACzC,IAAI,WAAW,iBAAiB,KAAK,KAAK,WAAW,OAAO,YAAY,OAAO,SAAS;CACxF,MAAM,OAAO,CAAC;CACd,KAAK,MAAM,CAAC,KAAK,aAAa,OAAO,QAAQ,WAAW,OAAO,cAAc,CAAC,CAAC,GAAG;EACjF,MAAM,QAAQ,OAAO,aAAa;EAClC,IAAI,UAAU,KAAK,KAAK,kBAAkB,QAAQ,KAAK,SAAS,SAAS,KAAK,GAAG,KAA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W;CACvD,MAAM,UAAU,eAAe,QAAQ;CACvC,IAAI,YAAY,KAAK,KAAK,iCAAiC,OAAO,GAAG,OAAO,CAAC;CAC7E,OAAO,qBAAqB,SAAS,SAAS;AAC/C;;;;AAIA,SAAS,wBAAwB,eAAe,MAAM;CACrD,IAAI,UAAU,eAAe;CAC7B,KAAK,MAAM,WAAW,MAAM;EAC3B,IAAI,OAAO,YAAY,YAAY,YAAY,QAAQ,UAAU,SAAS;EAC1E,UAAU,QAAQ;CACnB;CACA,OAAO,YAAY,KAAK,KAAK,iCAAiC,OAAO,IAAI,UAAU,KAAK;AACzF"}
@@ -1,13 +1,13 @@
1
1
  import { V as JsonValue } from "./domain-envelope-C2vVIWGK-C5x7cBpU.mjs";
2
- import { D as AuthoringTypeConstructorDescriptor, U as PslSpan, p as AuthoringFieldPresetDescriptor } from "./framework-authoring-BJf_-FTJ-K8fp3V_r.mjs";
3
- import { i as ControlMutationDefaults } from "./mutation-default-types-CrA6rrwU-BkMgh2pO.mjs";
4
- import { o as TaggedLiteralCanonicalization } from "./temporal-presets-pC0xlwib-Diikns1l.mjs";
5
- import "./authoring-CUDReFVP.mjs";
2
+ import { D as AuthoringTypeConstructorDescriptor, U as PslSpan, p as AuthoringFieldPresetDescriptor } from "./framework-authoring-DRrZ8_s0-CJ7XXqvx.mjs";
3
+ import { i as ControlMutationDefaults } from "./mutation-default-types-D_M8NC3U-BQNexfRU.mjs";
4
+ import { o as TaggedLiteralCanonicalization } from "./temporal-presets-CLsu00ZK-CAx-cLAM.mjs";
5
+ import "./authoring-CcT010vl.mjs";
6
6
  import { r as Result } from "./result-BYCOANWy.mjs";
7
- import "./control-DtFLqCvx.mjs";
8
- import "./psl-ast-CcQp_u_l.mjs";
9
- import { n as ContractSourceContext } from "./config-types-E4OZwoHK.mjs";
10
- import { D as NamedTypeDeclarationAst, E as ModelDeclarationAst, L as PslDiagnostic, N as ParseDiagnostic, O as NamespaceDeclarationAst, T as ModelAttributeAst, Z as TypeAnnotationAst, _ as GenericBlockDeclarationAst, f as DocumentAst, h as FieldDeclarationAst, l as CompositeTypeDeclarationAst, m as FieldAttributeAst, n as AstNode, p as ExpressionAst, q as SyntaxNode, z as PslSources } from "./parse-eSQ_clQv-BIek6vrj.mjs";
7
+ import "./control-C1x8zzHb.mjs";
8
+ import "./psl-ast-a1L1ep0a.mjs";
9
+ import { n as ContractSourceContext } from "./config-types-D7Gkm2iv.mjs";
10
+ import { D as NamedTypeDeclarationAst, E as ModelDeclarationAst, L as PslDiagnostic, N as ParseDiagnostic, O as NamespaceDeclarationAst, T as ModelAttributeAst, Z as TypeAnnotationAst, _ as GenericBlockDeclarationAst, f as DocumentAst, h as FieldDeclarationAst, l as CompositeTypeDeclarationAst, m as FieldAttributeAst, n as AstNode, p as ExpressionAst, q as SyntaxNode, z as PslSources } from "./parse-eSQ_clQv-BQKtf4px.mjs";
11
11
  import { n as UnionToIntersection, t as Simplify } from "./types-DGxlljKG.mjs";
12
12
  //#region ../../../1-framework/2-authoring/psl-parser/dist/binder-Dz5zT7tr.d.mts
13
13
  //#region src/resolve.d.ts
@@ -476,4 +476,4 @@ declare function contributedTypeOf(resolution: Resolution | undefined, binder: B
476
476
  declare function createBinder(input: CreateBinderInput): BinderResult;
477
477
  //#endregion
478
478
  export { NamedTypeSymbol as $, DescribeUnsupportedAttribute as A, TypedFuncCall as At, FuncCallArgType as B, isNamespaceLike as Bt, ContributedTypeNamespace as C, ResolvedTypeConstructorCall as Ct, CtxOf as D, SymbolTableResult as Dt, CreateBinderInput as E, SymbolTable as Et, FieldRefArgType as F, UnsupportedAttribute as Ft, InspectableArgType as G, readResolvedAttribute as Gt, FunctionSymbol as H, matchesSelector as Ht, FieldSymbol as I, buildSymbolTable as It, JsonValueArgType as J, typeReferenceNode as Jt, IntArgType as K, readResolvedAttributes as Kt, FixedIdentifierArgType as L, contributedTypeOf as Lt, EntityRefArgType as M, UnrestrictedIdentifierArgType as Mt, EntitySelector as N, UnrestrictedNumArgType as Nt, DeclarationFor as O, TaggedLiteralArgType as Ot, FieldAttributeCtx as P, UnrestrictedStrArgType as Pt, NamedOut as Q, FixedNumArgType as R, createBinder as Rt, ContributedTypeDescriptor as S, ResolvedNamedTypeBinding as St, ContributedTypeSymbol as T, ScopeResolution as Tt, IdentifierArgType as U, memberEntries as Ut, FuncCallSig as V, keywordPslSpan as Vt, InferAttr as W, nodePslSpan as Wt, ModelAttributeCtx as X, ListArgType as Y, ModelSymbol as Z, CompositeTypeSymbol as _, RequiredContextFor as _t, AttributeLevel as a, OptionalArgType as at, ContributedMember as b, ResolvedAttributeArg as bt, AttributeSymbol as c, Param as ct, BinderResult as d, PosOut as dt, NamespaceSymbol as et, BlockAttributeCtx as f, PositionalParam as ft, BuildSymbolTableOptions as g, RejectingArgType as gt, BoundSpec as h, ReferencedFieldRefArgType as ht, AttributeCtx as i, OneOfArgType as it, EntityDeclaration as j, UnresolvedTypeReference as jt, DescribeUnresolvedType as k, TopLevelScope as kt, Binder as l, ParameterSymbol as lt, BoolArgType as m, RecordArgType as mt, ArgType as n, NumLiteral as nt, AttributeOut as o, OutOf as ot, BlockSymbol as p, PslSymbol as pt, JsonArgType as q, readResolvedConstructorCall as qt, ArgTypeKind as r, NumLiteralArgType as rt, AttributeSpec as s, PSL_UNRESOLVED_REFERENCE as st, AnyArgType as t, NullArgType as tt, BinderContext as u, ParsedTaggedLiteral as ut, ConstantSymbol as v, Resolution as vt, ContributedTypeScope as w, Scope as wt, ContributedNamespaceSymbol as x, ResolvedEntityReference as xt, ContextForRequirement as y, ResolvedAttribute as yt, FixedStrArgType as z, entityReference as zt };
479
- //# sourceMappingURL=binder-Dz5zT7tr-CCCwiQ29.d.mts.map
479
+ //# sourceMappingURL=binder-Dz5zT7tr-UEfDpcxO.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"binder-Dz5zT7tr-CCCwiQ29.d.mts","names":[],"sources":["../../../../1-framework/2-authoring/psl-parser/dist/binder-Dz5zT7tr.d.mts"],"mappings":";;;;;;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ACP,OAAO,cAAc;WACrB;;KAEN,0BAA0B,YAAY;UACjC,sBAAsB,KAAK;WAC1B,yBAAyB,KAAK;;UAE/B;WACC,SAAS;WACT,aAAa;WACb,SAAS;;UAEV;WACC,QAAQ;WACR,sBAAsB;;iBAEhB,kBAAkB,QAAQ,cAAc,kBAAkB;iBAC1D,kBAAkB,YAAY,wBAAwB,QAAQ,SAAS;iBACvE,aAAa,OAAO,oBAAoB"}
1
+ {"version":3,"file":"binder-Dz5zT7tr-UEfDpcxO.d.mts","names":[],"sources":["../../../../1-framework/2-authoring/psl-parser/dist/binder-Dz5zT7tr.d.mts"],"mappings":";;;;;;;;;;;;;UASU;WACC;WACA;WACA;WACA,aAAa;WACb,MAAM;;UAEP,kBAAkB,cAAc,oBAAoB,oBAAoB,oBAAoB;WAC3F;WACA,eAAe;WACf,MAAM;WACN,MAAM;;UAEP;WACC;WACA,eAAe;WACf,MAAM;;iBAEA,sBAAsB,cAAc,oBAAoB,mBAAmB,WAAW,OAAO,SAAS,aAAa,kBAAkB;iBACrI,uBAAuB,cAAc,oBAAoB,mBAAmB,YAAY,SAAS,QAAQ,SAAS,sBAAsB,kBAAkB;iBAC1J,4BAA4B,YAAY,+BAA+B,SAAS,aAAa;iBAC7F,YAAY,MAAM,YAAY,SAAS,aAAa;;iBAEpD,eAAe,MAAM,YAAY,iBAAiB,SAAS,aAAa;;;UAG/E;WACC,UAAU;;UAEX;WACC,YAAY,eAAe;WAC3B,YAAY,eAAe;WAC3B,QAAQ,eAAe;WACvB,QAAQ,eAAe;WACvB,gBAAgB,eAAe;;UAEhC;WACC,MAAM;WACN,MAAM;;UAEP;WACC;WACA;WACA,eAAe,yBAAyB;WACxC,QAAQ,eAAe;WACvB,gBAAgB,eAAe;WAC/B,QAAQ,eAAe;;UAExB;WACC;WACA;WACA,MAAM;WACN,MAAM;WACN,QAAQ,eAAe;WACvB,qBAAqB,kBAAkB;;UAExC;WACC;WACA;WACA,MAAM;WACN,MAAM;WACN,QAAQ,e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;UAER;WACC;WACA;WACA,WAAW;;UAEZ;WACC;WACA;WACA;;KAEN,YAAY,cAAc,sBAAsB,kBAAkB,cAAc,kBAAkB;KAClG,aAAa;WACP;WACA,QAAQ;;WAER;WACA,QAAQ;;WAER;WACA,QAAQ;;WAER;WACA,QAAQ;;WAER;WACA,QAAQ;;WAER;;WAEA;WACA;;UAED;EACR,eAAe,MAAM,aAAa;EAClC,cAAc,MAAM,aAAa;EACjC,QAAQ,MAAM,aAAa;;UAEnB;WACC,WAAW;WACX;WACA,OAAO,cAAc;WACrB,OAAO;;KAEb,gCAAgC,aAAa,yBAAyB;UACjE;WACC,OAAO;WACP,OAAO,cAAc;WACrB;;KAEN,0BAA0B,YAAY;UACjC,sBAAsB,KAAK;WAC1B,yBAAyB,KAAK;;UAE/B;WACC,SAAS;WACT,aAAa;WACb,SAAS;;UAEV;WACC,QAAQ;WACR,sBAAsB;;iBAEhB,kBAAkB,QAAQ,cAAc,kBAAkB;iBAC1D,kBAAkB,YAAY,wBAAwB,QAAQ,SAAS;iBACvE,aAAa,OAAO,oBAAoB"}
@@ -1,9 +1,9 @@
1
1
  import { V as JsonValue, nt as ValueSetRef } from "./domain-envelope-C2vVIWGK-C5x7cBpU.mjs";
2
- import { c as CodecDescriptorTemplate, d as CodecInstanceContext, i as Codec, m as CodecRef, p as CodecLookupWithDescriptors, t as AnyCodecDescriptor } from "./codec-types-CZ8xRBJy-BMjCsUt1.mjs";
2
+ import { c as CodecDescriptorTemplate, d as CodecInstanceContext, i as Codec, m as CodecRef, p as CodecLookupWithDescriptors, t as AnyCodecDescriptor } from "./codec-types-8NKqm4AQ-DyNSay3e.mjs";
3
3
  //#region ../../../1-framework/1-core/framework-components/dist/codec.d.mts
4
4
  //#region src/shared/column-spec.d.ts
5
5
  /**
6
- * Authored column-type descriptor — the data shape an authoring site (PSL or TypeScript builders) attaches to a column to identify its codec and its native database type.
6
+ * Authored column-type descriptor — the data shape an authoring site (PSL or TypeScript builders) attaches to a column to identify its codec.
7
7
  *
8
8
  * Lives at the framework-components layer alongside the codec types so codec-author packages (e.g. column-spec / `column()` packagers) can extend it directly without crossing layer boundaries.
9
9
  *
@@ -11,8 +11,6 @@ import { c as CodecDescriptorTemplate, d as CodecInstanceContext, i as Codec, m
11
11
  */
12
12
  type ColumnTypeDescriptor<TCodecId extends string = string> = {
13
13
  readonly codecId: TCodecId;
14
- /** Ignored: the contract names the database type from the codec's data type. */
15
- readonly nativeType?: string;
16
14
  readonly typeParams?: Record<string, unknown> | undefined;
17
15
  readonly typeRef?: string;
18
16
  /**
@@ -49,10 +47,8 @@ interface ColumnSpec<R, P extends Record<string, unknown> | undefined> extends C
49
47
  }
50
48
  /**
51
49
  * Trivial column packager. Per-codec helpers call this directly with the result of `descriptor.factory(params)` — direct method invocation binds the descriptor's method-level generic at the call site and the literal flows through `R`.
52
- *
53
- * `nativeType` is ignored: the contract names the column's database type from the data type the codec represents.
54
50
  */
55
- declare function column<R, P extends Record<string, unknown> | undefined>(codecFactory: (ctx: CodecInstanceContext) => R, codecId: string, typeParams: P, nativeType: string): ColumnSpec<R, P>;
51
+ declare function column<R, P extends Record<string, unknown> | undefined>(codecFactory: (ctx: CodecInstanceContext) => R, codecId: string, typeParams: P): ColumnSpec<R, P>;
56
52
  /**
57
53
  * Coarse `satisfies` shape — checks the helper's typeParams record matches the descriptor's factory params. Catches "wrong typeParams shape" wiring mistakes; does NOT catch "wrong descriptor's factory" mistakes (the codec slot is left as `unknown`).
58
54
  *
@@ -149,4 +145,4 @@ declare function materializeCodec(descriptor: AnyCodecDescriptor, ref: CodecRef,
149
145
  declare function codecForRef(lookup: Pick<CodecLookupWithDescriptors, 'descriptorFor'>, ref: CodecRef): Codec | undefined;
150
146
  //#endregion
151
147
  export { materializeCodec as C, validateCodecTypeParams as D, resolveCodecDescriptorOrThrow as E, isNonFiniteText as S, renderTsLiteral as T, decodeJsonIntegerText as _, ColumnSpec as a, encodeJsonFloat as b, INT64_RANGE as c, SAFE_INTEGER_RANGE as d, codecForRef as f, decodeJsonInteger as g, decodeJsonFloat as h, ColumnHelperForStrict as i, IntegerRange as l, decodeJsonBoolean as m, CONTRACT_CODEC_DESCRIPTOR_MISSING as n, ColumnTypeDescriptor as o, column as p, ColumnHelperFor as r, INT32_RANGE as s, BigIntRange as t, SAFE_INTEGER_BIGINT_RANGE as u, decodeJsonMatching as v, refuseJsonValue as w, isIntegerIn as x, decodeJsonString as y };
152
- //# sourceMappingURL=codec-0XB-9TzG.d.mts.map
148
+ //# sourceMappingURL=codec-BSm2qNVe.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codec-BSm2qNVe.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/codec.d.mts"],"mappings":";;;;;;;;;;;KAUK,qBAAqB;WACf,SAAS;WACT,aAAa;WACb;;;;;;;;;WASA,WAAW;WACX,YAAY;;;;;;;;;KASlB;WACM;WACA;WACA;;;;;;;UAOD,WAAW,GAAG,UAAU,6CAA6C;WACpE,eAAe,KAAK,yBAAyB;WAC7C,YAAY;;;;;iBAKN,OAAO,GAAG,UAAU,qCAAqC,eAAe,KAAK,yBAAyB,GAAG,iBAAiB,YAAY,IAAI,WAAW,GAAG;;;;;;KAMpK,gBAAgB,UAAU,oCAAoC,gBAAgB,oBAAoB,mBAAmB;;;;KAIrH,sBAAsB,UAAU,oCAAoC,gBAAgB,WAAW,WAAW,WAAW,gBAAgB,mBAAmB;;;;KAIxJ,mBAAmB,UAAU,gCAAgC,WAAW,yBAAyB,0BAA0B,WAAW;;;;;;iBAM1H,gBAAgB,iBAAiB,kBAAkB,MAAM;iBACzD,iBAAiB,iBAAiB,MAAM;;iBAExC,mBAAmB,iBAAiB,MAAM,WAAW,SAAS,QAAQ;iBACtE,kBAAkB,iBAAiB,MAAM;UAChD;WACC;WACA;;;iBAGM,YAAY,gBAAgB,OAAO,eAAe;;cAErD,oBAAoB;;cAEpB,aAAa;iBACV,kBAAkB,iBAAiB,MAAM,WAAW,OAAO;UAClE;WACC;WACA;;;cAGG,aAAa;;cAEb,2BAA2B;;iBAExB,sBAAsB,iBAAiB,MAAM,WAAW,QAAQ;;iBAEhE,gBAAgB;;iBAEhB,gBAAgB,gBAAgB;iBAChC,gBAAgB,iBAAiB,MAAM;;;;;;;;;;;;iBAYvC,gBAAgB,OAAO;;;cAG1B;;;;;;;iBAOG,8BAA8B,gBAAgB,oBAAoB,gCAAgC,KAAK,UAAU,iFAAiF;;;;;;;;;;;iBAWlM,wBAAwB,YAAY,oBAAoB,KAAK;;;;;;;iBAO7D,iBAAiB,YAAY,oBAAoB,KAAK,UAAU,KAAK,uBAAuB;;;;iBAI5F,YAAY,QAAQ,KAAK,8CAA8C,KAAK,WAAW"}
@@ -19,6 +19,12 @@ var CodecImpl = class {
19
19
  }
20
20
  };
21
21
  /**
22
+ * The canonical form of the values of a column whose codec is `codec` (ADR 254): the codec's own when it declares one, else its data type's. Whatever reads, compares or writes a stored value of a column takes its canonical form from here.
23
+ */
24
+ function canonicalFormOf(codec, dataTypes) {
25
+ return codec.toCanonicalForm ?? dataTypes.get(codec.dataType)?.toCanonicalForm;
26
+ }
27
+ /**
22
28
  * Abstract base class for concrete codec descriptors.
23
29
  *
24
30
  * Codec authors extend this class with their typed `TParams` and declare `codecId`, `traits`, `paramsSchema`, the curried `factory(params)`, and (optionally) `renderOutputType`.
@@ -29,6 +35,8 @@ var CodecDescriptorTemplateImpl = class {
29
35
  get isParameterized() {
30
36
  return this.paramsSchema !== void 0;
31
37
  }
38
+ /** Optional canonical form of the codec's values. See {@link CodecDescriptorTemplate.toCanonicalForm}. */
39
+ toCanonicalForm;
32
40
  };
33
41
  /**
34
42
  * Abstract base for a concrete codec descriptor: a {@link CodecDescriptorTemplateImpl} that also
@@ -41,15 +49,12 @@ var CodecDescriptorTemplateImpl = class {
41
49
  var CodecDescriptorImpl = class extends CodecDescriptorTemplateImpl {};
42
50
  /**
43
51
  * Trivial column packager. Per-codec helpers call this directly with the result of `descriptor.factory(params)` — direct method invocation binds the descriptor's method-level generic at the call site and the literal flows through `R`.
44
- *
45
- * `nativeType` is ignored: the contract names the column's database type from the data type the codec represents.
46
52
  */
47
- function column(codecFactory, codecId, typeParams, nativeType) {
53
+ function column(codecFactory, codecId, typeParams) {
48
54
  return {
49
55
  codecFactory,
50
56
  codecId,
51
- typeParams,
52
- nativeType
57
+ typeParams
53
58
  };
54
59
  }
55
60
  /**
@@ -150,6 +155,6 @@ function renderTsLiteral(value) {
150
155
  if (typeof value === "number" || typeof value === "boolean") return String(value);
151
156
  }
152
157
  //#endregion
153
- export { isNonFiniteText as _, INT64_RANGE as a, column as c, decodeJsonInteger as d, decodeJsonIntegerText as f, isIntegerIn as g, encodeJsonFloat as h, INT32_RANGE as i, decodeJsonBoolean as l, decodeJsonString as m, CodecDescriptorTemplateImpl as n, SAFE_INTEGER_BIGINT_RANGE as o, decodeJsonMatching as p, CodecImpl as r, SAFE_INTEGER_RANGE as s, CodecDescriptorImpl as t, decodeJsonFloat as u, refuseJsonValue as v, renderTsLiteral as y };
158
+ export { isIntegerIn as _, INT64_RANGE as a, renderTsLiteral as b, canonicalFormOf as c, decodeJsonFloat as d, decodeJsonInteger as f, encodeJsonFloat as g, decodeJsonString as h, INT32_RANGE as i, column as l, decodeJsonMatching as m, CodecDescriptorTemplateImpl as n, SAFE_INTEGER_BIGINT_RANGE as o, decodeJsonIntegerText as p, CodecImpl as r, SAFE_INTEGER_RANGE as s, CodecDescriptorImpl as t, decodeJsonBoolean as u, isNonFiniteText as v, refuseJsonValue as y };
154
159
 
155
- //# sourceMappingURL=codec-Cz-bOon3.mjs.map
160
+ //# sourceMappingURL=codec-U-xbQys_.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codec-U-xbQys_.mjs","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/codec.mjs"],"sourcesContent":["import { t as emptyCodecLookup } from \"./codec-types-BXLUbk-Y.mjs\";\nimport { a as resolveCodecDescriptorOrThrow, c as assembleDataTypes, d as dataTypeId, f as objectSchemaKeys, i as materializeCodec, l as createDataTypeLookup, m as requiredSchemaKeys, o as validateCodecTypeParams, p as requiredParamKeys, r as codecForRef, s as DATA_TYPE_ID_PATTERN, t as CONTRACT_CODEC_DESCRIPTOR_MISSING, u as dataType } from \"./resolve-codec-vOfdHcIJ.mjs\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { tsStringLiteral } from \"@internal/ts-render\";\n//#region src/shared/codec.ts\n/**\n* Abstract base class for concrete codec implementations.\n*\n* Codec authors extend this class with their typed `Id`, `TTraits`, `TWire`, `TInput` and override all four abstract conversion methods: `encode`, `decode`, `encodeJson`, and `decodeJson`. The runtime instance carries only its `id` (proxied through the descriptor so alias subclasses inherit the descriptor's id automatically) and the conversion methods — static metadata lives on the {@link CodecDescriptor}.\n*/\nvar CodecImpl = class {\n\tdescriptor;\n\t/**\n\t* Variance-erased descriptor reference. Concrete codec subclasses receive the typed descriptor in their own constructors and forward it via `super(descriptor)`; the variance erasure lives at this base because the abstract surface can't carry the concrete `TParams`.\n\t*/\n\tconstructor(descriptor) {\n\t\tthis.descriptor = descriptor;\n\t}\n\tget id() {\n\t\treturn this.descriptor.codecId;\n\t}\n};\n//#endregion\n//#region src/shared/codec-descriptor.ts\n/**\n* The canonical form of the values of a column whose codec is `codec` (ADR 254): the codec's own when it declares one, else its data type's. Whatever reads, compares or writes a stored value of a column takes its canonical form from here.\n*/\nfunction canonicalFormOf(codec, dataTypes) {\n\treturn codec.toCanonicalForm ?? dataTypes.get(codec.dataType)?.toCanonicalForm;\n}\n/**\n* Abstract base class for concrete codec descriptors.\n*\n* Codec authors extend this class with their typed `TParams` and declare `codecId`, `traits`, `paramsSchema`, the curried `factory(params)`, and (optionally) `renderOutputType`.\n*\n* Implements the {@link CodecDescriptor} interface so a concrete subclass instance is directly usable wherever the framework expects a `CodecDescriptor<P>`.\n*/\nvar CodecDescriptorTemplateImpl = class {\n\tget isParameterized() {\n\t\treturn this.paramsSchema !== void 0;\n\t}\n\t/** Optional canonical form of the codec's values. See {@link CodecDescriptorTemplate.toCanonicalForm}. */\n\ttoCanonicalForm;\n};\n/**\n* Abstract base for a concrete codec descriptor: a {@link CodecDescriptorTemplateImpl} that also\n* names the data type its codec represents.\n*\n* A codec whose data type depends on the target that adopts it extends\n* {@link CodecDescriptorTemplateImpl} instead, and the target names the type when it adapts the\n* template.\n*/\nvar CodecDescriptorImpl = class extends CodecDescriptorTemplateImpl {};\n//#endregion\n//#region src/shared/column-spec.ts\n/**\n* Trivial column packager. Per-codec helpers call this directly with the result of `descriptor.factory(params)` — direct method invocation binds the descriptor's method-level generic at the call site and the literal flows through `R`.\n*/\nfunction column(codecFactory, codecId, typeParams) {\n\treturn {\n\t\tcodecFactory,\n\t\tcodecId,\n\t\ttypeParams\n\t};\n}\n//#endregion\n//#region src/shared/decode-json.ts\n/**\n* Readers for the JSON forms codecs share, each built as {@link Codec.decodeJson} requires: it returns the application value for a stored form of the codec's type and refuses anything else with {@link refuseJsonValue}.\n*/\nconst RECEIVED_PREVIEW_LIMIT = 100;\n/** The value a refusal names: its JSON text, or its digits for a number JSON cannot write, cut to 100 characters. */\nfunction receivedPreview(json) {\n\treturn (typeof json === \"number\" ? String(json) : JSON.stringify(json)).slice(0, RECEIVED_PREVIEW_LIMIT);\n}\n/**\n* The refusal every `decodeJson` raises: `RUNTIME.DECODE_FAILED`, `<codecId> JSON value must be <expected>`, with `meta.codecId` and `meta.received`, the value it was given as JSON text, cut to 100 characters.\n*/\nfunction refuseJsonValue(codecId, expected, json) {\n\tthrow structuredError(\"RUNTIME.DECODE_FAILED\", `${codecId} JSON value must be ${expected}`, { meta: {\n\t\tcodecId,\n\t\treceived: receivedPreview(json)\n\t} });\n}\nfunction decodeJsonString(codecId, json) {\n\tif (typeof json !== \"string\") return refuseJsonValue(codecId, \"a string\", json);\n\treturn json;\n}\n/** Reads a JSON string that matches `pattern`; `form` names what the pattern accepts, for the refusal. */\nfunction decodeJsonMatching(codecId, json, pattern, form) {\n\tif (typeof json !== \"string\" || !pattern.test(json)) return refuseJsonValue(codecId, form, json);\n\treturn json;\n}\nfunction decodeJsonBoolean(codecId, json) {\n\tif (typeof json !== \"boolean\") return refuseJsonValue(codecId, \"a boolean\", json);\n\treturn json;\n}\n/** Whether `value` is an integer within `range`, its ends included. */\nfunction isIntegerIn(value, range) {\n\treturn typeof value === \"number\" && Number.isInteger(value) && value >= range.min && value <= range.max;\n}\n/** The integers a JavaScript `number` holds exactly. */\nconst SAFE_INTEGER_RANGE = {\n\tmin: Number.MIN_SAFE_INTEGER,\n\tmax: Number.MAX_SAFE_INTEGER\n};\n/** The integers a signed 32-bit integer holds. */\nconst INT32_RANGE = {\n\tmin: -(2 ** 31),\n\tmax: 2 ** 31 - 1\n};\nfunction decodeJsonInteger(codecId, json, range) {\n\tif (!isIntegerIn(json, range)) return refuseJsonValue(codecId, `an integer from ${range.min} to ${range.max}`, json);\n\treturn json;\n}\n/** The integers a signed 64-bit integer holds. */\nconst INT64_RANGE = {\n\tmin: -(2n ** 63n),\n\tmax: 2n ** 63n - 1n\n};\n/** The integers a JavaScript `number` holds exactly, as a `bigint` range. */\nconst SAFE_INTEGER_BIGINT_RANGE = {\n\tmin: BigInt(Number.MIN_SAFE_INTEGER),\n\tmax: BigInt(Number.MAX_SAFE_INTEGER)\n};\nconst DECIMAL_INTEGER_TEXT = /^-?\\d+$/;\n/** Reads an integer a codec writes as decimal text, because a JSON number cannot hold every value of its type. */\nfunction decodeJsonIntegerText(codecId, json, range) {\n\tconst expected = range === void 0 ? \"a decimal integer string\" : `a decimal integer string from ${range.min} to ${range.max}`;\n\tconst value = BigInt(decodeJsonMatching(codecId, json, DECIMAL_INTEGER_TEXT, expected));\n\tif (range !== void 0 && (value < range.min || value > range.max)) return refuseJsonValue(codecId, expected, json);\n\treturn value;\n}\nconst NON_FINITE_TEXT = /* @__PURE__ */ new Set([\n\t\"NaN\",\n\t\"Infinity\",\n\t\"-Infinity\"\n]);\n/** Whether `text` is `NaN`, `Infinity` or `-Infinity`, the text a float's JSON form writes for a value JSON has no number for. */\nfunction isNonFiniteText(text) {\n\treturn NON_FINITE_TEXT.has(text);\n}\n/** JSON has no number for NaN or an infinity, so a float's JSON form writes them as the text `NaN`, `Infinity` and `-Infinity`. */\nfunction encodeJsonFloat(value) {\n\treturn Number.isFinite(value) ? value : String(value);\n}\nfunction decodeJsonFloat(codecId, json) {\n\tif (typeof json === \"number\" && Number.isFinite(json)) return json;\n\tif (typeof json === \"string\" && isNonFiniteText(json)) return Number(json);\n\treturn refuseJsonValue(codecId, \"a finite number or the text NaN, Infinity or -Infinity\", json);\n}\n//#endregion\n//#region src/shared/render-ts-literal.ts\n/**\n* Renders a codec-encoded value as a TypeScript literal (e.g. `\"low\"`, `1`, `true`), or `undefined`\n* when the value isn't literal-expressible (objects, arrays, null).\n*\n* Valid **only for identity codecs** whose `encodeJson` output equals their decoded output type\n* (text, int, float, bool). A non-identity codec (e.g. one that encodes to an int but decodes to a\n* string literal) must NOT use this: it has to `decodeJson` first, then render, in its own\n* `renderValueLiteral`.\n*/\nfunction renderTsLiteral(value) {\n\tif (typeof value === \"string\") return tsStringLiteral(value);\n\tif (typeof value === \"number\" || typeof value === \"boolean\") return String(value);\n}\n//#endregion\nexport { CONTRACT_CODEC_DESCRIPTOR_MISSING, CodecDescriptorImpl, CodecDescriptorTemplateImpl, CodecImpl, DATA_TYPE_ID_PATTERN, INT32_RANGE, INT64_RANGE, SAFE_INTEGER_BIGINT_RANGE, SAFE_INTEGER_RANGE, assembleDataTypes, canonicalFormOf, codecForRef, column, createDataTypeLookup, dataType, dataTypeId, decodeJsonBoolean, decodeJsonFloat, decodeJsonInteger, decodeJsonIntegerText, decodeJsonMatching, decodeJsonString, emptyCodecLookup, encodeJsonFloat, isIntegerIn, isNonFiniteText, materializeCodec, objectSchemaKeys, refuseJsonValue, renderTsLiteral, requiredParamKeys, requiredSchemaKeys, resolveCodecDescriptorOrThrow, validateCodecTypeParams };\n\n//# sourceMappingURL=codec.mjs.map"],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O,IAAI;CACzE,OAAO,gBAAgB,SAAS,0DAA0D,IAAI;AAC/F;;;;;;;;;;AAYA,SAAS,gBAAgB,OAAO;CAC/B,IAAI,OAAO,UAAU,UAAU,OAAO,gBAAgB,KAAK;CAC3D,IAAI,OAAO,UAAU,YAAY,OAAO,UAAU,WAAW,OAAO,OAAO,KAAK;AACjF"}
@@ -1,7 +1,7 @@
1
1
  import { V as JsonValue } from "./domain-envelope-C2vVIWGK-C5x7cBpU.mjs";
2
2
  import { Type } from "arktype";
3
3
  import { StandardSchemaV1 } from "@standard-schema/spec";
4
- //#region ../../../1-framework/1-core/framework-components/dist/codec-types-CZ8xRBJy.d.mts
4
+ //#region ../../../1-framework/1-core/framework-components/dist/codec-types-8NKqm4AQ.d.mts
5
5
  //#region src/shared/data-type.d.ts
6
6
  /**
7
7
  * The identity of a data type: `owner/name`, with no version. A type's identity does not change;
@@ -38,8 +38,8 @@ interface DataType {
38
38
  readonly casts: Readonly<Record<DataTypeId, Cast>>;
39
39
  readonly listCast?: ListCast;
40
40
  /**
41
- * Gives a value of this type its canonical form. Everything that reads, compares or writes a
42
- * stored value of the type goes through it, so two forms of one value are one value.
41
+ * Gives a value of this type its canonical form, so two forms of one value are one value. Read it
42
+ * through `canonicalFormOf`, which takes a codec's own form in its place.
43
43
  */
44
44
  readonly toCanonicalForm?: ToCanonicalForm;
45
45
  }
@@ -57,6 +57,8 @@ interface DataTypeLookup {
57
57
  get(id: string): DataType | undefined;
58
58
  has(id: string): boolean;
59
59
  }
60
+ /** The whole of what a data type id is: `owner/name` in lower case, with no version. */
61
+ declare const DATA_TYPE_ID_PATTERN: RegExp;
60
62
  /** Read `id` as a data type id, refusing anything that is not `owner/name` in lower case. */
61
63
  declare function dataTypeId(id: string): DataTypeId;
62
64
  /** Declare a data type. Every id it names, its own and each cast's source, is validated here. */
@@ -116,6 +118,10 @@ interface CodecDescriptorTemplate<P = void> {
116
118
  * per permitted value; the caller joins the results with `|`.
117
119
  */
118
120
  readonly renderValueLiteral?: (value: JsonValue, side: 'output' | 'input') => string | undefined;
121
+ /**
122
+ * Gives a value this codec reads its canonical form, for a codec whose data type stores several codecs' values in one form and so declares none for them: a SQLite datetime, which `sqlite/text` stores. Read it through {@link canonicalFormOf}, which takes it in place of the data type's. ADR 254.
123
+ */
124
+ readonly toCanonicalForm?: ToCanonicalForm;
119
125
  /** The curried higher-order codec. For non-parameterized codecs, the factory is constant — every call returns the same shared codec instance. For parameterized codecs, the factory is called once per `storage.types` instance (or once per inline-`typeParams` column), with `ctx` carrying the column set the resulting codec serves. */
120
126
  readonly factory: (params: P) => (ctx: CodecInstanceContext) => Codec;
121
127
  }
@@ -130,6 +136,10 @@ interface CodecDescriptor<P = void> extends CodecDescriptorTemplate<P> {
130
136
  /** The data type this codec is one representation of. */
131
137
  readonly dataType: DataTypeId;
132
138
  }
139
+ /**
140
+ * The canonical form of the values of a column whose codec is `codec` (ADR 254): the codec's own when it declares one, else its data type's. Whatever reads, compares or writes a stored value of a column takes its canonical form from here.
141
+ */
142
+ declare function canonicalFormOf(codec: Pick<CodecDescriptor, 'dataType' | 'toCanonicalForm'>, dataTypes: Pick<DataTypeLookup, 'get'>): ToCanonicalForm | undefined;
133
143
  /**
134
144
  * Variance-erased {@link CodecDescriptorTemplate} alias, for the same reason as
135
145
  * {@link AnyCodecDescriptor}.
@@ -159,6 +169,8 @@ declare abstract class CodecDescriptorTemplateImpl<TParams = void> implements Co
159
169
  renderInputType?(params: TParams): string | undefined;
160
170
  /** Optional emit-path renderer for a single stored value. See {@link CodecDescriptor.renderValueLiteral}. */
161
171
  renderValueLiteral?(value: JsonValue, side: 'output' | 'input'): string | undefined;
172
+ /** Optional canonical form of the codec's values. See {@link CodecDescriptorTemplate.toCanonicalForm}. */
173
+ readonly toCanonicalForm?: ToCanonicalForm;
162
174
  /**
163
175
  * Materialize a curried codec factory for the given params. Concrete subclasses override with a typed return type (e.g. `factory<N>(params: { length: N }): (ctx) => VectorCodec<N>`); per-codec helpers read the typed return at the *direct* call site, which is what preserves method-level generics. Type extraction (e.g. `ReturnType<D['factory']>`) widens method generics to their constraint — that's why the column-helper surface is per-codec, not polymorphic.
164
176
  */
@@ -316,5 +328,5 @@ interface CodecInstanceContext {
316
328
  readonly name: string;
317
329
  }
318
330
  //#endregion
319
- export { requiredSchemaKeys as A, assembleDataTypes as C, emptyCodecLookup as D, dataTypeId as E, objectSchemaKeys as O, ToCanonicalForm as S, dataType as T, DataType as _, CodecCallContext as a, DataTypeSpec as b, CodecDescriptorTemplate as c, CodecInstanceContext as d, CodecLookup as f, CodecTrait as g, CodecRegistry as h, Codec as i, requiredParamKeys as k, CodecDescriptorTemplateImpl as l, CodecRef as m, AnyCodecDescriptorTemplate as n, CodecDescriptor as o, CodecLookupWithDescriptors as p, Cast as r, CodecDescriptorImpl as s, AnyCodecDescriptor as t, CodecImpl as u, DataTypeId as v, createDataTypeLookup as w, ListCast as x, DataTypeLookup as y };
320
- //# sourceMappingURL=codec-types-CZ8xRBJy-BMjCsUt1.d.mts.map
331
+ export { objectSchemaKeys as A, ToCanonicalForm as C, dataType as D, createDataTypeLookup as E, requiredSchemaKeys as M, dataTypeId as O, ListCast as S, canonicalFormOf as T, DATA_TYPE_ID_PATTERN as _, CodecCallContext as a, DataTypeLookup as b, CodecDescriptorTemplate as c, CodecInstanceContext as d, CodecLookup as f, CodecTrait as g, CodecRegistry as h, Codec as i, requiredParamKeys as j, emptyCodecLookup as k, CodecDescriptorTemplateImpl as l, CodecRef as m, AnyCodecDescriptorTemplate as n, CodecDescriptor as o, CodecLookupWithDescriptors as p, Cast as r, CodecDescriptorImpl as s, AnyCodecDescriptor as t, CodecImpl as u, DataType as v, assembleDataTypes as w, DataTypeSpec as x, DataTypeId as y };
332
+ //# sourceMappingURL=codec-types-8NKqm4AQ-DyNSay3e.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codec-types-8NKqm4AQ-DyNSay3e.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/codec-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,WAAW,KAAK,yBAAyB,uBAAuB;;;;;;;;;;uBAUpE,oBAAoB,wBAAwB,4BAA4B,oBAAoB,gBAAgB;oBAC/G,UAAU;;;;;;;;;;;;;;;;;;;;;;;UAuBpB,MAAM,4BAA4B,yBAAyB,wBAAwB,cAAc,iBAAiB;;WAEjH,IAAI;;WAEJ,gBAAgB;;EAEzB,OAAO,OAAO,QAAQ,KAAK,mBAAmB,QAAQ;;EAEtD,OAAO,MAAM,OAAO,KAAK,mBAAmB,QAAQ;;EAEpD,WAAW,OAAO,SAAS;;;;EAI3B,WAAW,MAAM,YAAY;;;;;;;uBAOR,UAAU,4BAA4B,yBAAyB,wBAAwB,cAAc,iBAAiB,6BAA6B,MAAM,IAAI,SAAS,OAAO;WACzL,YAAY;;;;EAIrB,YAAY,YAAY;MACpB,MAAM;WACD,OAAO,OAAO,QAAQ,KAAK,mBAAmB,QAAQ;WACtD,OAAO,MAAM,OAAO,KAAK,mBAAmB,QAAQ;WACpD,WAAW,OAAO,SAAS;;WAE3B,WAAW,MAAM,YAAY;;;;;cAK1B;KACT,qBAAqB;;;;;;;;;;;;UAYhB;WACC;WACA,aAAa;WACb;;;;;;;;;;;;;UAaD;WACC,SAAS;;;;;;;;UAQV;EACR,IAAI,aAAa;EACjB,oBAAoB,YAAY,QAAQ;;EAExC,oBAAoB,YAAY,QAAQ;;EAExC,uBAAuB,YAAY,OAAO,WAAW;;;UAG7C,mCAAmC;;;;EAI3C,cAAc,aAAa;;;;;;;;;;;;;;;UAenB,sBAAsB;EAC9B,YAAY,KAAK,WAAW;EAC5B,UAAU,qBAAqB,eAAe,iBAAiB;;;cAGnD,kBAAkB;;;;;;;;UAQtB;WACC"}
@@ -1,6 +1,6 @@
1
- import { g as CodecTrait } from "./codec-types-CZ8xRBJy-BMjCsUt1.mjs";
2
- import { t as AggregateDescriptor } from "./types-import-spec-BLFYPur6-QN7ntocb.mjs";
3
- import "./framework-components-7SQpxVko-BaUd55aP.mjs";
1
+ import { g as CodecTrait } from "./codec-types-8NKqm4AQ-DyNSay3e.mjs";
2
+ import { t as AggregateDescriptor } from "./types-import-spec-U2GFdg-x-CRt_XdWj.mjs";
3
+ import "./framework-components-DDr6lZoZ-EpXYrZj7.mjs";
4
4
  //#region ../../../1-framework/1-core/framework-components/dist/components.d.mts
5
5
  //#region src/shared/aggregate-overloads.d.ts
6
6
  /** What settling needs to know about a codec: its id, and the traits an overload can claim it by. */
@@ -47,4 +47,4 @@ interface SettledAggregateOverloads<TDescriptor extends AggregateDescriptor> {
47
47
  declare function settleAggregateOverloads<TDescriptor extends AggregateDescriptor>(descriptors: readonly TDescriptor[], codecs: Iterable<AggregateCodecTraits>): SettledAggregateOverloads<TDescriptor>;
48
48
  //#endregion
49
49
  export { SettledAggregateOverloads as a, SettledAggregateOperation as i, AggregateOverloadAmbiguity as n, settleAggregateOverloads as o, AggregateOverloadDuplicate as r, AggregateCodecTraits as t };
50
- //# sourceMappingURL=components-CRRIFm30.d.mts.map
50
+ //# sourceMappingURL=components-CK8GHz8l.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"components-CRRIFm30.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/components.d.mts"],"mappings":";;;;;;UAOU;WACC;WACA,iBAAiB;;;UAGlB,0BAA0B,oBAAoB;;WAE7C,WAAW,oBAAoB;;WAE/B,SAAS;;WAET,UAAU;;;UAGX;WACC;WACA;WACA,iBAAiB;;;UAGlB,2BAA2B,oBAAoB;WAC9C;WACA;WACA,OAAO;WACP,QAAQ;;UAET,0BAA0B,oBAAoB;WAC7C,YAAY,oBAAoB,0BAA0B;WAC1D,sBAAsB;WACtB,qBAAqB,2BAA2B;;;;;;;;;;;iBAW1C,yBAAyB,oBAAoB,qBAAqB,sBAAsB,eAAe,QAAQ,SAAS,wBAAwB,0BAA0B"}
1
+ {"version":3,"file":"components-CK8GHz8l.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/components.d.mts"],"mappings":";;;;;;UAOU;WACC;WACA,iBAAiB;;;UAGlB,0BAA0B,oBAAoB;;WAE7C,WAAW,oBAAoB;;WAE/B,SAAS;;WAET,UAAU;;;UAGX;WACC;WACA;WACA,iBAAiB;;;UAGlB,2BAA2B,oBAAoB;WAC9C;WACA;WACA,OAAO;WACP,QAAQ;;UAET,0BAA0B,oBAAoB;WAC7C,YAAY,oBAAoB,0BAA0B;WAC1D,sBAAsB;WACtB,qBAAqB,2BAA2B;;;;;;;;;;;iBAW1C,yBAAyB,oBAAoB,qBAAqB,sBAAsB,eAAe,QAAQ,SAAS,wBAAwB,0BAA0B"}
@@ -1,23 +1,23 @@
1
- import { A as requiredSchemaKeys, C as assembleDataTypes, D as emptyCodecLookup, E as dataTypeId, O as objectSchemaKeys, S as ToCanonicalForm, T as dataType, _ as DataType, a as CodecCallContext, b as DataTypeSpec, c as CodecDescriptorTemplate, d as CodecInstanceContext, f as CodecLookup, g as CodecTrait, h as CodecRegistry, i as Codec, k as requiredParamKeys, l as CodecDescriptorTemplateImpl, m as CodecRef, n as AnyCodecDescriptorTemplate, o as CodecDescriptor, p as CodecLookupWithDescriptors, r as Cast, s as CodecDescriptorImpl, t as AnyCodecDescriptor, u as CodecImpl, v as DataTypeId, w as createDataTypeLookup, x as ListCast, y as DataTypeLookup } from "./codec-types-CZ8xRBJy-BMjCsUt1.mjs";
2
- import { $ as instantiateAuthoringTypeConstructor, A as AuthoringWarning, B as PslExtensionBlockParsedAttribute, C as AuthoringPslBlockDescriptorNamespace, D as AuthoringTypeConstructorDescriptor, E as AuthoringTemplateValue, F as ParsedPslExtensionBlock, G as assertNoCrossRegistryCollisions, H as PslPosition, I as PslDiagnosticCode, J as collectScalarTypeConstructors, K as assertResolvableTypeConstructorTemplates, L as PslExtensionBlock, M as ContributedPslDiagnosticCode, N as DataTypeAuthoringEntry, O as AuthoringTypeConstructorEntityRef, P as DataTypeWrittenForm, Q as instantiateAuthoringFieldPreset, R as PslExtensionBlockAttribute, S as AuthoringPslBlockDescriptor, T as AuthoringStorageTypeTemplate, U as PslSpan, V as PslExtensionBlockPrintEntry, W as ScalarTypeConstructorOutput, X as getAuthoringTypeConstructor, Y as flushAuthoringWarnings, Z as instantiateAuthoringEntityType, _ as AuthoringModelAttributeDescriptorNamespace, a as AuthoringContributions, at as isAuthoringTypeConstructorDescriptor, b as AuthoringModelAttributeLoweringOutput, c as AuthoringEntityTypeDescriptor, ct as resolveEnumCodecId, d as AuthoringEntityTypeTemplateOutput, et as isAuthoringArgRef, f as AuthoringFieldNamespace, g as AuthoringModelAttributeDescriptor, h as AuthoringModelAttributeContext, i as AuthoringColumnDefaultTemplate, it as isAuthoringPslBlockDescriptor, j as AuthoringWarningSink, k as AuthoringTypeNamespace, l as AuthoringEntityTypeFactoryOutput, lt as validateAuthoringHelperArguments, m as AuthoringFieldPresetOutput, n as AuthoringArgumentDescriptor, nt as isAuthoringFieldPresetDescriptor, o as AuthoringDiagnosticSink, ot as mergeAuthoringNamespaces, p as AuthoringFieldPresetDescriptor, q as classifyEnumMemberType, r as AuthoringAttributeSpecContributions, rt as isAuthoringModelAttributeDescriptor, s as AuthoringEntityContext, st as resolveAuthoringTemplateValue, t as AuthoringArgRef, tt as isAuthoringEntityTypeDescriptor, u as AuthoringEntityTypeNamespace, ut as validateAuthoringTypeParams, v as AuthoringModelAttributeEntityOutput, w as AuthoringSelectRef, x as AuthoringOption, y as AuthoringModelAttributeIndexOutput, z as PslExtensionBlockAttributeArg } from "./framework-authoring-BJf_-FTJ-K8fp3V_r.mjs";
3
- import { a as DefaultFunctionLoweringContext, c as MutationDefaultGeneratorDescriptor, d as TypedDefaultFunctionCall, i as ControlMutationDefaults, l as SourceDiagnostic, n as ControlMutationDefaultEntry, o as LoweredDefaultResult, r as ControlMutationDefaultRegistry, s as LoweredDefaultValue, t as ControlDefaultRegistries, u as SourceSpan } from "./mutation-default-types-CrA6rrwU-BkMgh2pO.mjs";
4
- import { a as TIMESTAMP_NOW_GENERATOR_ID, c as describeTaggedLiteralFailure, d as resolveTemplateTagEscapes, f as temporalAuthoringPresets, h as timestampNowControlDescriptor, i as TEMPORAL_ON_UPDATE_ARG, l as printTaggedLiteral, m as temporalPhaseTemplate, n as TAGGED_LITERAL_MAX_BYTES, o as TaggedLiteralCanonicalization, p as temporalCodecPreset, r as TEMPORAL_ON_CREATE_ARG, s as canonicalizeTaggedLiteralBody, t as PresetStorageTemplate, u as resolvePslBacktickEscapes } from "./temporal-presets-pC0xlwib-Diikns1l.mjs";
5
- import { a as findAuthoringTypeConstructorCall, i as fieldPresetSpellings, n as AuthoringTypeConstructorOutput, o as getAuthoringFieldPreset, r as EnumBlockMember, s as readEnumBlockMembers, t as AuthoringTypeConstructorCall } from "./authoring-CUDReFVP.mjs";
6
- import { C as materializeCodec, D as validateCodecTypeParams, E as resolveCodecDescriptorOrThrow, S as isNonFiniteText, T as renderTsLiteral, _ as decodeJsonIntegerText, a as ColumnSpec, b as encodeJsonFloat, c as INT64_RANGE, d as SAFE_INTEGER_RANGE, f as codecForRef, g as decodeJsonInteger, h as decodeJsonFloat, i as ColumnHelperForStrict, l as IntegerRange, m as decodeJsonBoolean, n as CONTRACT_CODEC_DESCRIPTOR_MISSING, o as ColumnTypeDescriptor, p as column, r as ColumnHelperFor, s as INT32_RANGE, t as BigIntRange, u as SAFE_INTEGER_BIGINT_RANGE, v as decodeJsonMatching, w as refuseJsonValue, x as isIntegerIn, y as decodeJsonString } from "./codec-0XB-9TzG.mjs";
7
- import { a as AnyInputAggregateDescriptor, c as SelfAggregateOutput, d as aggregateDescriptorKey, f as isAggregateDescriptor, i as AggregateResultNullability, l as TypesImportSpec, m as isNoInputAggregateDescriptor, n as AggregateInputMatch, o as NamedAggregateOutput, p as isAnyInputAggregateDescriptor, r as AggregateOutputCodec, s as NoInputAggregateDescriptor, t as AggregateDescriptor, u as ValueInputAggregateDescriptor } from "./types-import-spec-BLFYPur6-QN7ntocb.mjs";
1
+ import { A as objectSchemaKeys, C as ToCanonicalForm, D as dataType, E as createDataTypeLookup, M as requiredSchemaKeys, O as dataTypeId, S as ListCast, T as canonicalFormOf, _ as DATA_TYPE_ID_PATTERN, a as CodecCallContext, b as DataTypeLookup, c as CodecDescriptorTemplate, d as CodecInstanceContext, f as CodecLookup, g as CodecTrait, h as CodecRegistry, i as Codec, j as requiredParamKeys, k as emptyCodecLookup, l as CodecDescriptorTemplateImpl, m as CodecRef, n as AnyCodecDescriptorTemplate, o as CodecDescriptor, p as CodecLookupWithDescriptors, r as Cast, s as CodecDescriptorImpl, t as AnyCodecDescriptor, u as CodecImpl, v as DataType, w as assembleDataTypes, x as DataTypeSpec, y as DataTypeId } from "./codec-types-8NKqm4AQ-DyNSay3e.mjs";
2
+ import { $ as instantiateAuthoringFieldPreset, A as AuthoringWarning, B as PslExtensionBlockParsedAttribute, C as AuthoringPslBlockDescriptorNamespace, D as AuthoringTypeConstructorDescriptor, E as AuthoringTemplateValue, F as ParsedPslExtensionBlock, G as assertNoCrossRegistryCollisions, H as PslPosition, I as PslDiagnosticCode, J as classifyEnumMemberType, K as assertResolvableTypeConstructorTemplates, L as PslExtensionBlock, M as ContributedPslDiagnosticCode, N as DataTypeAuthoringEntry, O as AuthoringTypeConstructorEntityRef, P as DataTypeWrittenForm, Q as instantiateAuthoringEntityType, R as PslExtensionBlockAttribute, S as AuthoringPslBlockDescriptor, T as AuthoringStorageTypeTemplate, U as PslSpan, V as PslExtensionBlockPrintEntry, W as ScalarTypeConstructorOutput, X as flushAuthoringWarnings, Y as collectScalarTypeConstructors, Z as getAuthoringTypeConstructor, _ as AuthoringModelAttributeDescriptorNamespace, a as AuthoringContributions, at as isAuthoringPslBlockDescriptor, b as AuthoringModelAttributeLoweringOutput, c as AuthoringEntityTypeDescriptor, ct as mergeAuthoringNamespaces, d as AuthoringEntityTypeTemplateOutput, dt as tagEntryKey, et as instantiateAuthoringTypeConstructor, f as AuthoringFieldNamespace, ft as validateAuthoringHelperArguments, g as AuthoringModelAttributeDescriptor, h as AuthoringModelAttributeContext, i as AuthoringColumnDefaultTemplate, it as isAuthoringModelAttributeDescriptor, j as AuthoringWarningSink, k as AuthoringTypeNamespace, l as AuthoringEntityTypeFactoryOutput, lt as resolveAuthoringTemplateValue, m as AuthoringFieldPresetOutput, n as AuthoringArgumentDescriptor, nt as isAuthoringEntityTypeDescriptor, o as AuthoringDiagnosticSink, ot as isAuthoringTypeConstructorDescriptor, p as AuthoringFieldPresetDescriptor, pt as validateAuthoringTypeParams, q as authoringEntryType, r as AuthoringAttributeSpecContributions, rt as isAuthoringFieldPresetDescriptor, s as AuthoringEntityContext, st as isTagEntryKey, t as AuthoringArgRef, tt as isAuthoringArgRef, u as AuthoringEntityTypeNamespace, ut as resolveEnumCodecId, v as AuthoringModelAttributeEntityOutput, w as AuthoringSelectRef, x as AuthoringOption, y as AuthoringModelAttributeIndexOutput, z as PslExtensionBlockAttributeArg } from "./framework-authoring-DRrZ8_s0-CJ7XXqvx.mjs";
3
+ import { a as DefaultFunctionLoweringContext, c as MutationDefaultGeneratorDescriptor, d as TypedDefaultFunctionCall, i as ControlMutationDefaults, l as SourceDiagnostic, n as ControlMutationDefaultEntry, o as LoweredDefaultResult, r as ControlMutationDefaultRegistry, s as LoweredDefaultValue, t as ControlDefaultRegistries, u as SourceSpan } from "./mutation-default-types-D_M8NC3U-BQNexfRU.mjs";
4
+ import { a as TIMESTAMP_NOW_GENERATOR_ID, c as describeTaggedLiteralFailure, d as resolveTemplateTagEscapes, f as temporalAuthoringPresets, h as timestampNowControlDescriptor, i as TEMPORAL_ON_UPDATE_ARG, l as printTaggedLiteral, m as temporalPhaseTemplate, n as TAGGED_LITERAL_MAX_BYTES, o as TaggedLiteralCanonicalization, p as temporalCodecPreset, r as TEMPORAL_ON_CREATE_ARG, s as canonicalizeTaggedLiteralBody, t as PresetStorageTemplate, u as resolvePslBacktickEscapes } from "./temporal-presets-CLsu00ZK-CAx-cLAM.mjs";
5
+ import { a as findAuthoringTypeConstructorCall, i as fieldPresetSpellings, n as AuthoringTypeConstructorOutput, o as getAuthoringFieldPreset, r as EnumBlockMember, s as readEnumBlockMembers, t as AuthoringTypeConstructorCall } from "./authoring-CcT010vl.mjs";
6
+ import { C as materializeCodec, D as validateCodecTypeParams, E as resolveCodecDescriptorOrThrow, S as isNonFiniteText, T as renderTsLiteral, _ as decodeJsonIntegerText, a as ColumnSpec, b as encodeJsonFloat, c as INT64_RANGE, d as SAFE_INTEGER_RANGE, f as codecForRef, g as decodeJsonInteger, h as decodeJsonFloat, i as ColumnHelperForStrict, l as IntegerRange, m as decodeJsonBoolean, n as CONTRACT_CODEC_DESCRIPTOR_MISSING, o as ColumnTypeDescriptor, p as column, r as ColumnHelperFor, s as INT32_RANGE, t as BigIntRange, u as SAFE_INTEGER_BIGINT_RANGE, v as decodeJsonMatching, w as refuseJsonValue, x as isIntegerIn, y as decodeJsonString } from "./codec-BSm2qNVe.mjs";
7
+ import { a as AnyInputAggregateDescriptor, c as SelfAggregateOutput, d as aggregateDescriptorKey, f as isAggregateDescriptor, i as AggregateResultNullability, l as TypesImportSpec, m as isNoInputAggregateDescriptor, n as AggregateInputMatch, o as NamedAggregateOutput, p as isAnyInputAggregateDescriptor, r as AggregateOutputCodec, s as NoInputAggregateDescriptor, t as AggregateDescriptor, u as ValueInputAggregateDescriptor } from "./types-import-spec-U2GFdg-x-CRt_XdWj.mjs";
8
8
  import { n as mergeCapabilityMatrices, t as CapabilityMatrix } from "./capabilities-Cupq4-1--C71ORI3N.mjs";
9
- import { S as checkContractComponentRequirements, _ as PackRefBase, a as ComponentMetadata, b as TargetInstance, c as DriverDescriptor, d as ExtensionDescriptor, f as ExtensionInstance, g as FamilyPackRef, h as FamilyInstance, i as ComponentDescriptor, l as DriverInstance, m as FamilyDescriptor, n as AdapterInstance, o as ContractComponentRequirementsCheckInput, p as ExtensionPackRef, r as AdapterPackRef, s as ContractComponentRequirementsCheckResult, t as AdapterDescriptor, u as DriverPackRef, v as TargetBoundComponentDescriptor, x as TargetPackRef, y as TargetDescriptor } from "./framework-components-7SQpxVko-BaUd55aP.mjs";
9
+ import { S as checkContractComponentRequirements, _ as PackRefBase, a as ComponentMetadata, b as TargetInstance, c as DriverDescriptor, d as ExtensionDescriptor, f as ExtensionInstance, g as FamilyPackRef, h as FamilyInstance, i as ComponentDescriptor, l as DriverInstance, m as FamilyDescriptor, n as AdapterInstance, o as ContractComponentRequirementsCheckInput, p as ExtensionPackRef, r as AdapterPackRef, s as ContractComponentRequirementsCheckResult, t as AdapterDescriptor, u as DriverPackRef, v as TargetBoundComponentDescriptor, x as TargetPackRef, y as TargetDescriptor } from "./framework-components-DDr6lZoZ-EpXYrZj7.mjs";
10
10
  import { n as isRuntimeError, r as runtimeError, t as RuntimeErrorEnvelope } from "./runtime-error-CO4MA3Px-YW5SCUcH.mjs";
11
- import { a as SettledAggregateOverloads, i as SettledAggregateOperation, n as AggregateOverloadAmbiguity, o as settleAggregateOverloads, r as AggregateOverloadDuplicate, t as AggregateCodecTraits } from "./components-CRRIFm30.mjs";
12
- import { a as keepInternalSpecifiers, i as ValidationContext, n as GenerateContractTypesOptions, o as resolveRequirementSpecifiers, r as ImportSpecifierResolver, t as EmissionSpi } from "./emission-types-CKbNqwUs-hrIslUsL.mjs";
13
- import { A as makePslNamespaceEntries, C as PslTypesBlock, D as flatPslCompositeTypes, E as UNSPECIFIED_PSL_NAMESPACE_ID, O as flatPslModels, S as PslTypeConstructorCall, T as UNBOUND_PSL_NAMESPACE_NAME, _ as PslModelAttribute, a as PslAttributePositionalArgument, b as PslNamespaceEntry, c as PslDefaultFunctionValue, d as PslDiagnostic, f as PslDocumentAst, g as PslModel, h as PslIndexConstraint, i as PslAttributeNamedArgument, j as namespacePslExtensionBlocks, k as makePslNamespace, l as PslDefaultLiteralValue, m as PslFieldAttribute, n as PslAttribute, o as PslAttributeTarget, p as PslField, r as PslAttributeArgument, s as PslCompositeType, t as BUILTIN_PSL_KIND_KEYS, u as PslDefaultValue, v as PslNamedTypeDeclaration, w as PslUniqueConstraint, x as PslReferentialAction, y as PslNamespace } from "./psl-ast-DtjFlM-c-amCHIsWc.mjs";
11
+ import { a as SettledAggregateOverloads, i as SettledAggregateOperation, n as AggregateOverloadAmbiguity, o as settleAggregateOverloads, r as AggregateOverloadDuplicate, t as AggregateCodecTraits } from "./components-CK8GHz8l.mjs";
12
+ import { a as keepInternalSpecifiers, i as ValidationContext, n as GenerateContractTypesOptions, o as resolveRequirementSpecifiers, r as ImportSpecifierResolver, t as EmissionSpi } from "./emission-types-BpY3maMX-pzm7Xmn7.mjs";
13
+ import { A as makePslNamespaceEntries, C as PslTypesBlock, D as flatPslCompositeTypes, E as UNSPECIFIED_PSL_NAMESPACE_ID, O as flatPslModels, S as PslTypeConstructorCall, T as UNBOUND_PSL_NAMESPACE_NAME, _ as PslModelAttribute, a as PslAttributePositionalArgument, b as PslNamespaceEntry, c as PslDefaultFunctionValue, d as PslDiagnostic, f as PslDocumentAst, g as PslModel, h as PslIndexConstraint, i as PslAttributeNamedArgument, j as namespacePslExtensionBlocks, k as makePslNamespace, l as PslDefaultLiteralValue, m as PslFieldAttribute, n as PslAttribute, o as PslAttributeTarget, p as PslField, r as PslAttributeArgument, s as PslCompositeType, t as BUILTIN_PSL_KIND_KEYS, u as PslDefaultValue, v as PslNamedTypeDeclaration, w as PslUniqueConstraint, x as PslReferentialAction, y as PslNamespace } from "./psl-ast-BVYEC5xX-BEqjBVqF.mjs";
14
14
  import { t as ImportRequirement } from "./index-DeSumOoq.mjs";
15
- import { $ as PslContractDocument, A as MigrationPackage, At as assertUniqueCodecOwner, B as MigrationRunnerExecutionChecks, Bt as extractComponentIds, C as EmitContractResult, Ct as VerifierIssueCategory, D as MigrationMetadata, Dt as assembleAuthoringContributions, E as MigratableTargetDescriptor, Et as VerifyDatabaseSchemaResult, F as MigrationPlannerConflict, Ft as diffSchemas, G as MigrationRunnerSuccessValue, Gt as hasPslContractInfer, H as MigrationRunnerPerSpaceOptions, Ht as hasMigrations, I as MigrationPlannerFailureResult, It as dispositionForCategory, J as OperationContext, Jt as issueOutcome, K as MigrationScaffoldContext, Kt as hasSchemaSubjectClassifier, L as MigrationPlannerResult, Lt as enforceDataTypeInvariants, M as MigrationPlanOperation, Mt as contractSnapshotJsonSpecifier, N as MigrationPlanWithAuthoringSurface, Nt as contractSnapshotTypesSpecifier, O as MigrationOperationClass, Ot as assembleAuthoringDataTypes, P as MigrationPlanner, Pt as createControlStack, Q as PslContractBuildCapable, R as MigrationPlannerSuccessResult, Rt as extractCodecLookup, S as DiffableNode, St as VerificationStatus, T as IntrospectSchemaResult, Tt as VerifyDatabaseResult, U as MigrationRunnerPerSpaceSuccessValue, Ut as hasOperationPreview, V as MigrationRunnerFailure, Vt as extractQueryOperationTypeImports, W as MigrationRunnerResult, Wt as hasPslContractBuild, X as OperationPreviewCapable, Xt as storageHashHex, Y as OperationPreview, Yt as orderIssuesByDependencies, Z as OperationPreviewStatement, _ as ControlTargetInstance, _t as TargetMigrationsCapability, a as ContractSpace, at as SchemaNodeRef, b as DataTypeInvariantInput, bt as VERIFY_CODE_SCHEMA_FAILURE, c as ControlAdapterInstance, ct as SchemaTreeNode, d as ControlExtensionDescriptor, dt as SchemaVerifier, et as PslContractInferCapable, f as ControlExtensionInstance, ft as SchemaVerifyOptions, g as ControlTargetDescriptor, gt as SignDatabaseResult, h as ControlStack, ht as SchemaViewNodeKind, i as ContractSerializer, it as SchemaEntityCoordinate, j as MigrationPlan, jt as buildExtensionLoadOrder, k as MigrationOperationPolicy, kt as assembleControlMutationDefaults, l as ControlDriverDescriptor, lt as SchemaTreeNodeOptions, m as ControlFamilyInstance, mt as SchemaViewCapable, n as AssembledAuthoringContributions, nt as SchemaDiff, o as ContractSpaceHeadRef, ot as SchemaOwnership, p as ControlFamilyDescriptor, pt as SchemaVerifyResult, q as OpFactoryCall, qt as hasSchemaView, r as CONTRACT_SNAPSHOTS_DIRNAME, rt as SchemaDiffIssue, s as ControlAdapterDescriptor, st as SchemaSubjectClassifierCapable, t as APP_SPACE_ID, tt as PslSourceSettings, u as ControlDriverInstance, ut as SchemaTreeVisitor, v as CoreSchemaView, vt as VERIFY_CODE_HASH_MISMATCH, w as ExpectationFailureReason, wt as VerifierOutcome, x as DiffSubjectGranularity, xt as VERIFY_CODE_TARGET_MISMATCH, y as CreateControlStackInput, yt as VERIFY_CODE_MARKER_MISSING, z as MigrationRunner, zt as extractCodecTypeImports } from "./control-DtFLqCvx.mjs";
16
- import "./emission-CKIZBZw3.mjs";
17
- import { a as RuntimeDriverDescriptor, c as RuntimeExtensionInstance, d as RuntimeTargetDescriptor, f as RuntimeTargetInstance, h as instantiateExecutionStack, i as RuntimeAdapterInstance, l as RuntimeFamilyDescriptor, m as createExecutionStack, n as ExecutionStackInstance, o as RuntimeDriverInstance, p as assertRuntimeContractRequirementsSatisfied, r as RuntimeAdapterDescriptor, s as RuntimeExtensionDescriptor, t as ExecutionStack, u as RuntimeFamilyInstance } from "./execution-ZWG0tqRB.mjs";
15
+ import { $ as PslContractBuildCapable, $t as orderIssuesByDependencies, A as MigrationOperationPolicy, At as VerifyDatabaseSchemaResult, B as MigrationRunner, Bt as dispositionForCategory, C as EmitContractResult, Ct as VERIFY_CODE_MARKER_MISSING, D as MigratableTargetDescriptor, Dt as VerifierIssueCategory, E as MarkerHashes, Et as VerificationStatus, F as MigrationPlanner, Ft as buildExtensionLoadOrder, G as MigrationRunnerResult, Gt as extractQueryOperationTypeImports, H as MigrationRunnerFailure, Ht as extractCodecLookup, I as MigrationPlannerConflict, It as contractSnapshotJsonSpecifier, J as OpFactoryCall, Jt as hasPslContractBuild, K as MigrationRunnerSuccessValue, Kt as hasMigrations, L as MigrationPlannerFailureResult, Lt as contractSnapshotTypesSpecifier, M as MigrationPlan, Mt as assembleAuthoringDataTypes, N as MigrationPlanOperation, Nt as assembleControlMutationDefaults, O as MigrationMetadata, Ot as VerifierOutcome, P as MigrationPlanWithAuthoringSurface, Pt as assertUniqueCodecOwner, Q as OperationPreviewStatement, Qt as issueOutcome, R as MigrationPlannerResult, Rt as createControlStack, S as DiffableNode, St as VERIFY_CODE_HASH_MISMATCH, T as IntrospectSchemaResult, Tt as VERIFY_CODE_TARGET_MISMATCH, U as MigrationRunnerPerSpaceOptions, Ut as extractCodecTypeImports, V as MigrationRunnerExecutionChecks, Vt as enforceDataTypeInvariants, W as MigrationRunnerPerSpaceSuccessValue, Wt as extractComponentIds, X as OperationPreview, Xt as hasSchemaSubjectClassifier, Y as OperationContext, Yt as hasPslContractInfer, Z as OperationPreviewCapable, Zt as hasSchemaView, _ as ControlTargetInstance, _t as SpaceMarkerConflict, a as ContractSpace, at as SchemaEntityCoordinate, b as DataTypeInvariantInput, bt as SpaceToSign, c as ControlAdapterInstance, ct as SchemaSubjectClassifierCapable, d as ControlExtensionDescriptor, dt as SchemaTreeVisitor, en as sameMarkerHashes, et as PslContractDocument, f as ControlExtensionInstance, ft as SchemaVerifier, g as ControlTargetDescriptor, gt as SchemaViewNodeKind, h as ControlStack, ht as SchemaViewCapable, i as ContractSerializer, it as SchemaDiffIssue, j as MigrationPackage, jt as assembleAuthoringContributions, k as MigrationOperationClass, kt as VerifyDatabaseResult, l as ControlDriverDescriptor, lt as SchemaTreeNode, m as ControlFamilyInstance, mt as SchemaVerifyResult, n as AssembledAuthoringContributions, nt as PslSourceSettings, o as ContractSpaceHeadRef, ot as SchemaNodeRef, p as ControlFamilyDescriptor, pt as SchemaVerifyOptions, q as MigrationScaffoldContext, qt as hasOperationPreview, r as CONTRACT_SNAPSHOTS_DIRNAME, rt as SchemaDiff, s as ControlAdapterDescriptor, st as SchemaOwnership, t as APP_SPACE_ID, tn as storageHashHex, tt as PslContractInferCapable, u as ControlDriverInstance, ut as SchemaTreeNodeOptions, v as CoreSchemaView, vt as SpaceSignature, w as ExpectationFailureReason, wt as VERIFY_CODE_SCHEMA_FAILURE, x as DiffSubjectGranularity, xt as TargetMigrationsCapability, y as CreateControlStackInput, yt as SpaceSigned, z as MigrationPlannerSuccessResult, zt as diffSchemas } from "./control-C1x8zzHb.mjs";
16
+ import "./emission-D9NsURmS.mjs";
17
+ import { a as RuntimeDriverDescriptor, c as RuntimeExtensionInstance, d as RuntimeTargetDescriptor, f as RuntimeTargetInstance, h as instantiateExecutionStack, i as RuntimeAdapterInstance, l as RuntimeFamilyDescriptor, m as createExecutionStack, n as ExecutionStackInstance, o as RuntimeDriverInstance, p as assertRuntimeContractRequirementsSatisfied, r as RuntimeAdapterDescriptor, s as RuntimeExtensionDescriptor, t as ExecutionStack, u as RuntimeFamilyInstance } from "./execution-gjfB1CvH.mjs";
18
18
  import { t as isPlainRecord } from "./is-plain-record-C9BWiqcw.mjs";
19
- import { S as promoteBuiltinKinds, _ as domainElementCoordinates, a as IRNode, b as freezeNode, c as NamespaceBase, d as Storage, f as StorageType, g as coordinateKey, h as buildSingleNamespaceView, i as EntityKindDescriptor, l as NamespacedEntities, m as buildNamespacedEntities, n as DefaultNamespaceEntries, o as IRNodeBase, p as UNBOUND_NAMESPACE_ID, r as EntityCoordinate, s as Namespace, t as AnyEntityKindDescriptor, u as SingleNamespaceView, v as elementCoordinates, x as hydrateNamespaceEntities, y as entityAt } from "./ir-BOKp6I1y.mjs";
20
- import "./psl-ast-CcQp_u_l.mjs";
21
- import { $ as runtimeAborted, A as RuntimeExecutor, B as applyMutationDefaults, C as RelationKeys, D as RuntimeCore, E as RuntimeAbortedPhase, F as RuntimeStatementStats, G as collectMutationDefaultGenerators, H as assertMutationDefaultGeneratorsAvailable, I as Scalars, J as raceAgainstAbort, K as createMetaBuilder, L as Shape, M as RuntimeMiddleware, N as RuntimeMiddlewareContext, O as RuntimeCoreOptions, P as RuntimeMutationDefaultGenerator, Q as runQueryWithMiddleware, R as ShapeSpec, S as RUNTIME_ABORTED, T as ResultType, U as checkAborted, V as assertAnnotationsApplicable, W as checkMiddlewareCompatibility, X as runBeforeQueryChain, Y as runBeforeExecuteChain, Z as runExecuteWithMiddleware, _ as MutationDefaultsOptions, a as AppliedMutationDefault, b as QueryInterceptResult, c as DefineAnnotationOptions, d as GeneratorStability, f as LaneMetaBuilder, g as MutationDefaultsOp, h as MutationDefaults, i as AnnotationValue, j as RuntimeLog, k as RuntimeExecuteOptions, l as ExecuteInterceptResult, m as MutationDefaultGeneratorContributor, n as AfterQueryResult, o as AsyncIterableResult, p as MetaBuilder, q as defineAnnotation, r as AnnotationHandle, s as CrossFamilyMiddleware, t as AfterExecuteResult, u as ExecutionPlan, v as OperationKind, w as RelationNamesOf, x as QueryPlan, y as ParamRefMutator, z as ValidAnnotations } from "./runtime-BccsLa5m.mjs";
19
+ import { S as promoteBuiltinKinds, _ as domainElementCoordinates, a as IRNode, b as freezeNode, c as NamespaceBase, d as Storage, f as StorageType, g as coordinateKey, h as buildSingleNamespaceView, i as EntityKindDescriptor, l as NamespacedEntities, m as buildNamespacedEntities, n as DefaultNamespaceEntries, o as IRNodeBase, p as UNBOUND_NAMESPACE_ID, r as EntityCoordinate, s as Namespace, t as AnyEntityKindDescriptor, u as SingleNamespaceView, v as elementCoordinates, x as hydrateNamespaceEntities, y as entityAt } from "./ir-bkQr_x1E.mjs";
20
+ import "./psl-ast-a1L1ep0a.mjs";
21
+ import { $ as reportQueryEnding, A as RuntimeCoreOptions, B as ShapeSpec, C as QueryPlan, D as ResultType, E as RelationNamesOf, F as RuntimeMiddlewareContext, G as checkAborted, H as applyMutationDefaults, I as RuntimeMutationDefaultGenerator, J as createMetaBuilder, K as checkMiddlewareCompatibility, L as RuntimeStatementStats, M as RuntimeExecutor, N as RuntimeLog, O as RuntimeAbortedPhase, P as RuntimeMiddleware, Q as reportExecuteEnding, R as Scalars, S as QueryInterceptResult, T as RelationKeys, U as assertAnnotationsApplicable, V as ValidAnnotations, W as assertMutationDefaultGeneratorsAvailable, X as onQueryEndOutsideTransaction, Y as defineAnnotation, Z as raceAgainstAbort, _ as MutationDefaultsOp, a as AnnotationValue, at as runtimeAborted, b as ParamRefMutator, c as CrossFamilyMiddleware, d as ExecutionPlan, et as runAfterTransaction, f as GeneratorStability, g as MutationDefaults, h as MutationDefaultGeneratorContributor, i as AnnotationHandle, it as runQueryWithMiddleware, j as RuntimeExecuteOptions, k as RuntimeCore, l as DefineAnnotationOptions, m as MetaBuilder, n as AfterQueryResult, nt as runBeforeQueryChain, o as AppliedMutationDefault, p as LaneMetaBuilder, q as collectMutationDefaultGenerators, r as AfterTransactionResult, rt as runExecuteWithMiddleware, s as AsyncIterableResult, t as AfterExecuteResult, tt as runBeforeExecuteChain, u as ExecuteInterceptResult, v as MutationDefaultsOptions, w as RUNTIME_ABORTED, x as QueryEnding, y as OperationKind, z as Shape } from "./runtime-NuBiQEuH.mjs";
22
22
  import { t as canonicalizeJson } from "./utils-DeWL_zD9.mjs";
23
- export { APP_SPACE_ID, type AdapterDescriptor, type AdapterInstance, type AdapterPackRef, type AfterExecuteResult, type AfterQueryResult, type AggregateCodecTraits, type AggregateDescriptor, type AggregateInputMatch, type AggregateOutputCodec, type AggregateOverloadAmbiguity, type AggregateOverloadDuplicate, type AggregateResultNullability, type AnnotationHandle, type AnnotationValue, type AnyCodecDescriptor, type AnyCodecDescriptorTemplate, type AnyEntityKindDescriptor, type AnyInputAggregateDescriptor, type AppliedMutationDefault, type AssembledAuthoringContributions, AsyncIterableResult, type AuthoringArgRef, type AuthoringArgumentDescriptor, type AuthoringAttributeSpecContributions, type AuthoringColumnDefaultTemplate, type AuthoringContributions, type AuthoringDiagnosticSink, type AuthoringEntityContext, type AuthoringEntityTypeDescriptor, type AuthoringEntityTypeFactoryOutput, type AuthoringEntityTypeNamespace, type AuthoringEntityTypeTemplateOutput, type AuthoringFieldNamespace, type AuthoringFieldPresetDescriptor, type AuthoringFieldPresetOutput, type AuthoringModelAttributeContext, type AuthoringModelAttributeDescriptor, type AuthoringModelAttributeDescriptorNamespace, type AuthoringModelAttributeEntityOutput, type AuthoringModelAttributeIndexOutput, type AuthoringModelAttributeLoweringOutput, type AuthoringOption, type AuthoringPslBlockDescriptor, type AuthoringPslBlockDescriptorNamespace, type AuthoringSelectRef, type AuthoringStorageTypeTemplate, type AuthoringTemplateValue, type AuthoringTypeConstructorCall, type AuthoringTypeConstructorDescriptor, type AuthoringTypeConstructorEntityRef, type AuthoringTypeConstructorOutput, type AuthoringTypeNamespace, type AuthoringWarning, type AuthoringWarningSink, BUILTIN_PSL_KIND_KEYS, type BigIntRange, CONTRACT_CODEC_DESCRIPTOR_MISSING, CONTRACT_SNAPSHOTS_DIRNAME, type CapabilityMatrix, type Cast, type Codec, type CodecCallContext, type CodecDescriptor, CodecDescriptorImpl, type CodecDescriptorTemplate, CodecDescriptorTemplateImpl, CodecImpl, type CodecInstanceContext, type CodecLookup, type CodecLookupWithDescriptors, type CodecRef, type CodecRegistry, type CodecTrait, type ColumnHelperFor, type ColumnHelperForStrict, type ColumnSpec, type ColumnTypeDescriptor, type ComponentDescriptor, type ComponentMetadata, type ContractComponentRequirementsCheckInput, type ContractComponentRequirementsCheckResult, type ContractSerializer, type ContractSpace, type ContractSpaceHeadRef, type ContributedPslDiagnosticCode, type ControlAdapterDescriptor, type ControlAdapterInstance, type ControlDefaultRegistries, type ControlDriverDescriptor, type ControlDriverInstance, type ControlExtensionDescriptor, type ControlExtensionInstance, type ControlFamilyDescriptor, type ControlFamilyInstance, type ControlMutationDefaultEntry, type ControlMutationDefaultRegistry, type ControlMutationDefaults, type ControlStack, type ControlTargetDescriptor, type ControlTargetInstance, type CoreSchemaView, type CreateControlStackInput, type CrossFamilyMiddleware, type DataType, type DataTypeAuthoringEntry, type DataTypeId, type DataTypeInvariantInput, type DataTypeLookup, type DataTypeSpec, type DataTypeWrittenForm, type DefaultFunctionLoweringContext, type DefaultNamespaceEntries, type DefineAnnotationOptions, type DiffSubjectGranularity, type DiffableNode, type DriverDescriptor, type DriverInstance, type DriverPackRef, type EmissionSpi, type EmitContractResult, type EntityCoordinate, type EntityKindDescriptor, type EnumBlockMember, type ExecuteInterceptResult, type ExecutionPlan, type ExecutionStack, type ExecutionStackInstance, type ExpectationFailureReason, type ExtensionDescriptor, type ExtensionInstance, type ExtensionPackRef, type FamilyDescriptor, type FamilyInstance, type FamilyPackRef, type GenerateContractTypesOptions, type GeneratorStability, INT32_RANGE, INT64_RANGE, type IRNode, IRNodeBase, type ImportRequirement, type ImportSpecifierResolver, type IntegerRange, type IntrospectSchemaResult, type LaneMetaBuilder, type ListCast, type LoweredDefaultResult, type LoweredDefaultValue, type MetaBuilder, type MigratableTargetDescriptor, type MigrationMetadata, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPackage, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanWithAuthoringSurface, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerFailureResult, type MigrationPlannerResult, type MigrationPlannerSuccessResult, type MigrationRunner, type MigrationRunnerExecutionChecks, type MigrationRunnerFailure, type MigrationRunnerPerSpaceOptions, type MigrationRunnerPerSpaceSuccessValue, type MigrationRunnerResult, type MigrationRunnerSuccessValue, type MigrationScaffoldContext, type MutationDefaultGeneratorContributor, type MutationDefaultGeneratorDescriptor, type MutationDefaults, type MutationDefaultsOp, type MutationDefaultsOptions, type NamedAggregateOutput, type Namespace, NamespaceBase, type NamespacedEntities, type NoInputAggregateDescriptor, type OpFactoryCall, type OperationContext, type OperationKind, type OperationPreview, type OperationPreviewCapable, type OperationPreviewStatement, type PackRefBase, type ParamRefMutator, type ParsedPslExtensionBlock, type PresetStorageTemplate, PslAttribute, PslAttributeArgument, PslAttributeNamedArgument, PslAttributePositionalArgument, PslAttributeTarget, PslCompositeType, type PslContractBuildCapable, type PslContractDocument, type PslContractInferCapable, PslDefaultFunctionValue, PslDefaultLiteralValue, PslDefaultValue, PslDiagnostic, type PslDiagnosticCode, PslDocumentAst, type PslExtensionBlock, type PslExtensionBlockAttribute, type PslExtensionBlockAttributeArg, type PslExtensionBlockParsedAttribute, type PslExtensionBlockPrintEntry, PslField, PslFieldAttribute, PslIndexConstraint, PslModel, PslModelAttribute, PslNamedTypeDeclaration, PslNamespace, PslNamespaceEntry, type PslPosition, PslReferentialAction, type PslSourceSettings, type PslSpan, PslTypeConstructorCall, PslTypesBlock, PslUniqueConstraint, type QueryInterceptResult, type QueryPlan, RUNTIME_ABORTED, RelationKeys, type RelationNamesOf, type ResultType, type RuntimeAbortedPhase, type RuntimeAdapterDescriptor, type RuntimeAdapterInstance, RuntimeCore, type RuntimeCoreOptions, type RuntimeDriverDescriptor, type RuntimeDriverInstance, type RuntimeErrorEnvelope, type RuntimeExecuteOptions, type RuntimeExecutor, type RuntimeExtensionDescriptor, type RuntimeExtensionInstance, type RuntimeFamilyDescriptor, type RuntimeFamilyInstance, type RuntimeLog, type RuntimeMiddleware, type RuntimeMiddlewareContext, type RuntimeMutationDefaultGenerator, type RuntimeStatementStats, type RuntimeTargetDescriptor, type RuntimeTargetInstance, SAFE_INTEGER_BIGINT_RANGE, SAFE_INTEGER_RANGE, type ScalarTypeConstructorOutput, type Scalars, SchemaDiff, type SchemaDiffIssue, type SchemaEntityCoordinate, type SchemaNodeRef, type SchemaOwnership, type SchemaSubjectClassifierCapable, SchemaTreeNode, type SchemaTreeNodeOptions, type SchemaTreeVisitor, type SchemaVerifier, type SchemaVerifyOptions, type SchemaVerifyResult, type SchemaViewCapable, type SchemaViewNodeKind, type SelfAggregateOutput, type SettledAggregateOperation, type SettledAggregateOverloads, type Shape, type ShapeSpec, type SignDatabaseResult, type SingleNamespaceView, type SourceDiagnostic, type SourceSpan, type Storage, type StorageType, TAGGED_LITERAL_MAX_BYTES, TEMPORAL_ON_CREATE_ARG, TEMPORAL_ON_UPDATE_ARG, TIMESTAMP_NOW_GENERATOR_ID, type TaggedLiteralCanonicalization, type TargetBoundComponentDescriptor, type TargetDescriptor, type TargetInstance, type TargetMigrationsCapability, type TargetPackRef, type ToCanonicalForm, type TypedDefaultFunctionCall, type TypesImportSpec, UNBOUND_NAMESPACE_ID, UNBOUND_PSL_NAMESPACE_NAME, UNSPECIFIED_PSL_NAMESPACE_ID, VERIFY_CODE_HASH_MISMATCH, VERIFY_CODE_MARKER_MISSING, VERIFY_CODE_SCHEMA_FAILURE, VERIFY_CODE_TARGET_MISMATCH, type ValidAnnotations, type ValidationContext, type ValueInputAggregateDescriptor, type VerificationStatus, type VerifierIssueCategory, type VerifierOutcome, type VerifyDatabaseResult, type VerifyDatabaseSchemaResult, aggregateDescriptorKey, applyMutationDefaults, assembleAuthoringContributions, assembleAuthoringDataTypes, assembleControlMutationDefaults, assembleDataTypes, assertAnnotationsApplicable, assertMutationDefaultGeneratorsAvailable, assertNoCrossRegistryCollisions, assertResolvableTypeConstructorTemplates, assertRuntimeContractRequirementsSatisfied, assertUniqueCodecOwner, buildExtensionLoadOrder, buildNamespacedEntities, buildSingleNamespaceView, canonicalizeJson, canonicalizeTaggedLiteralBody, checkAborted, checkContractComponentRequirements, checkMiddlewareCompatibility, classifyEnumMemberType, codecForRef, collectMutationDefaultGenerators, collectScalarTypeConstructors, column, contractSnapshotJsonSpecifier, contractSnapshotTypesSpecifier, coordinateKey, createControlStack, createDataTypeLookup, createExecutionStack, createMetaBuilder, dataType, dataTypeId, decodeJsonBoolean, decodeJsonFloat, decodeJsonInteger, decodeJsonIntegerText, decodeJsonMatching, decodeJsonString, defineAnnotation, describeTaggedLiteralFailure, diffSchemas, dispositionForCategory, domainElementCoordinates, elementCoordinates, emptyCodecLookup, encodeJsonFloat, enforceDataTypeInvariants, entityAt, extractCodecLookup, extractCodecTypeImports, extractComponentIds, extractQueryOperationTypeImports, fieldPresetSpellings, findAuthoringTypeConstructorCall, flatPslCompositeTypes, flatPslModels, flushAuthoringWarnings, freezeNode, getAuthoringFieldPreset, getAuthoringTypeConstructor, hasMigrations, hasOperationPreview, hasPslContractBuild, hasPslContractInfer, hasSchemaSubjectClassifier, hasSchemaView, hydrateNamespaceEntities, instantiateAuthoringEntityType, instantiateAuthoringFieldPreset, instantiateAuthoringTypeConstructor, instantiateExecutionStack, isAggregateDescriptor, isAnyInputAggregateDescriptor, isAuthoringArgRef, isAuthoringEntityTypeDescriptor, isAuthoringFieldPresetDescriptor, isAuthoringModelAttributeDescriptor, isAuthoringPslBlockDescriptor, isAuthoringTypeConstructorDescriptor, isIntegerIn, isNoInputAggregateDescriptor, isNonFiniteText, isPlainRecord, isRuntimeError, issueOutcome, keepInternalSpecifiers, makePslNamespace, makePslNamespaceEntries, materializeCodec, mergeAuthoringNamespaces, mergeCapabilityMatrices, namespacePslExtensionBlocks, objectSchemaKeys, orderIssuesByDependencies, printTaggedLiteral, promoteBuiltinKinds, raceAgainstAbort, readEnumBlockMembers, refuseJsonValue, renderTsLiteral, requiredParamKeys, requiredSchemaKeys, resolveAuthoringTemplateValue, resolveCodecDescriptorOrThrow, resolveEnumCodecId, resolvePslBacktickEscapes, resolveRequirementSpecifiers, resolveTemplateTagEscapes, runBeforeExecuteChain, runBeforeQueryChain, runExecuteWithMiddleware, runQueryWithMiddleware, runtimeAborted, runtimeError, settleAggregateOverloads, storageHashHex, temporalAuthoringPresets, temporalCodecPreset, temporalPhaseTemplate, timestampNowControlDescriptor, validateAuthoringHelperArguments, validateAuthoringTypeParams, validateCodecTypeParams };
23
+ export { APP_SPACE_ID, type AdapterDescriptor, type AdapterInstance, type AdapterPackRef, type AfterExecuteResult, type AfterQueryResult, type AfterTransactionResult, type AggregateCodecTraits, type AggregateDescriptor, type AggregateInputMatch, type AggregateOutputCodec, type AggregateOverloadAmbiguity, type AggregateOverloadDuplicate, type AggregateResultNullability, type AnnotationHandle, type AnnotationValue, type AnyCodecDescriptor, type AnyCodecDescriptorTemplate, type AnyEntityKindDescriptor, type AnyInputAggregateDescriptor, type AppliedMutationDefault, type AssembledAuthoringContributions, AsyncIterableResult, type AuthoringArgRef, type AuthoringArgumentDescriptor, type AuthoringAttributeSpecContributions, type AuthoringColumnDefaultTemplate, type AuthoringContributions, type AuthoringDiagnosticSink, type AuthoringEntityContext, type AuthoringEntityTypeDescriptor, type AuthoringEntityTypeFactoryOutput, type AuthoringEntityTypeNamespace, type AuthoringEntityTypeTemplateOutput, type AuthoringFieldNamespace, type AuthoringFieldPresetDescriptor, type AuthoringFieldPresetOutput, type AuthoringModelAttributeContext, type AuthoringModelAttributeDescriptor, type AuthoringModelAttributeDescriptorNamespace, type AuthoringModelAttributeEntityOutput, type AuthoringModelAttributeIndexOutput, type AuthoringModelAttributeLoweringOutput, type AuthoringOption, type AuthoringPslBlockDescriptor, type AuthoringPslBlockDescriptorNamespace, type AuthoringSelectRef, type AuthoringStorageTypeTemplate, type AuthoringTemplateValue, type AuthoringTypeConstructorCall, type AuthoringTypeConstructorDescriptor, type AuthoringTypeConstructorEntityRef, type AuthoringTypeConstructorOutput, type AuthoringTypeNamespace, type AuthoringWarning, type AuthoringWarningSink, BUILTIN_PSL_KIND_KEYS, type BigIntRange, CONTRACT_CODEC_DESCRIPTOR_MISSING, CONTRACT_SNAPSHOTS_DIRNAME, type CapabilityMatrix, type Cast, type Codec, type CodecCallContext, type CodecDescriptor, CodecDescriptorImpl, type CodecDescriptorTemplate, CodecDescriptorTemplateImpl, CodecImpl, type CodecInstanceContext, type CodecLookup, type CodecLookupWithDescriptors, type CodecRef, type CodecRegistry, type CodecTrait, type ColumnHelperFor, type ColumnHelperForStrict, type ColumnSpec, type ColumnTypeDescriptor, type ComponentDescriptor, type ComponentMetadata, type ContractComponentRequirementsCheckInput, type ContractComponentRequirementsCheckResult, type ContractSerializer, type ContractSpace, type ContractSpaceHeadRef, type ContributedPslDiagnosticCode, type ControlAdapterDescriptor, type ControlAdapterInstance, type ControlDefaultRegistries, type ControlDriverDescriptor, type ControlDriverInstance, type ControlExtensionDescriptor, type ControlExtensionInstance, type ControlFamilyDescriptor, type ControlFamilyInstance, type ControlMutationDefaultEntry, type ControlMutationDefaultRegistry, type ControlMutationDefaults, type ControlStack, type ControlTargetDescriptor, type ControlTargetInstance, type CoreSchemaView, type CreateControlStackInput, type CrossFamilyMiddleware, DATA_TYPE_ID_PATTERN, type DataType, type DataTypeAuthoringEntry, type DataTypeId, type DataTypeInvariantInput, type DataTypeLookup, type DataTypeSpec, type DataTypeWrittenForm, type DefaultFunctionLoweringContext, type DefaultNamespaceEntries, type DefineAnnotationOptions, type DiffSubjectGranularity, type DiffableNode, type DriverDescriptor, type DriverInstance, type DriverPackRef, type EmissionSpi, type EmitContractResult, type EntityCoordinate, type EntityKindDescriptor, type EnumBlockMember, type ExecuteInterceptResult, type ExecutionPlan, type ExecutionStack, type ExecutionStackInstance, type ExpectationFailureReason, type ExtensionDescriptor, type ExtensionInstance, type ExtensionPackRef, type FamilyDescriptor, type FamilyInstance, type FamilyPackRef, type GenerateContractTypesOptions, type GeneratorStability, INT32_RANGE, INT64_RANGE, type IRNode, IRNodeBase, type ImportRequirement, type ImportSpecifierResolver, type IntegerRange, type IntrospectSchemaResult, type LaneMetaBuilder, type ListCast, type LoweredDefaultResult, type LoweredDefaultValue, type MarkerHashes, type MetaBuilder, type MigratableTargetDescriptor, type MigrationMetadata, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPackage, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanWithAuthoringSurface, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerFailureResult, type MigrationPlannerResult, type MigrationPlannerSuccessResult, type MigrationRunner, type MigrationRunnerExecutionChecks, type MigrationRunnerFailure, type MigrationRunnerPerSpaceOptions, type MigrationRunnerPerSpaceSuccessValue, type MigrationRunnerResult, type MigrationRunnerSuccessValue, type MigrationScaffoldContext, type MutationDefaultGeneratorContributor, type MutationDefaultGeneratorDescriptor, type MutationDefaults, type MutationDefaultsOp, type MutationDefaultsOptions, type NamedAggregateOutput, type Namespace, NamespaceBase, type NamespacedEntities, type NoInputAggregateDescriptor, type OpFactoryCall, type OperationContext, type OperationKind, type OperationPreview, type OperationPreviewCapable, type OperationPreviewStatement, type PackRefBase, type ParamRefMutator, type ParsedPslExtensionBlock, type PresetStorageTemplate, PslAttribute, PslAttributeArgument, PslAttributeNamedArgument, PslAttributePositionalArgument, PslAttributeTarget, PslCompositeType, type PslContractBuildCapable, type PslContractDocument, type PslContractInferCapable, PslDefaultFunctionValue, PslDefaultLiteralValue, PslDefaultValue, PslDiagnostic, type PslDiagnosticCode, PslDocumentAst, type PslExtensionBlock, type PslExtensionBlockAttribute, type PslExtensionBlockAttributeArg, type PslExtensionBlockParsedAttribute, type PslExtensionBlockPrintEntry, PslField, PslFieldAttribute, PslIndexConstraint, PslModel, PslModelAttribute, PslNamedTypeDeclaration, PslNamespace, PslNamespaceEntry, type PslPosition, PslReferentialAction, type PslSourceSettings, type PslSpan, PslTypeConstructorCall, PslTypesBlock, PslUniqueConstraint, type QueryEnding, type QueryInterceptResult, type QueryPlan, RUNTIME_ABORTED, RelationKeys, type RelationNamesOf, type ResultType, type RuntimeAbortedPhase, type RuntimeAdapterDescriptor, type RuntimeAdapterInstance, RuntimeCore, type RuntimeCoreOptions, type RuntimeDriverDescriptor, type RuntimeDriverInstance, type RuntimeErrorEnvelope, type RuntimeExecuteOptions, type RuntimeExecutor, type RuntimeExtensionDescriptor, type RuntimeExtensionInstance, type RuntimeFamilyDescriptor, type RuntimeFamilyInstance, type RuntimeLog, type RuntimeMiddleware, type RuntimeMiddlewareContext, type RuntimeMutationDefaultGenerator, type RuntimeStatementStats, type RuntimeTargetDescriptor, type RuntimeTargetInstance, SAFE_INTEGER_BIGINT_RANGE, SAFE_INTEGER_RANGE, type ScalarTypeConstructorOutput, type Scalars, SchemaDiff, type SchemaDiffIssue, type SchemaEntityCoordinate, type SchemaNodeRef, type SchemaOwnership, type SchemaSubjectClassifierCapable, SchemaTreeNode, type SchemaTreeNodeOptions, type SchemaTreeVisitor, type SchemaVerifier, type SchemaVerifyOptions, type SchemaVerifyResult, type SchemaViewCapable, type SchemaViewNodeKind, type SelfAggregateOutput, type SettledAggregateOperation, type SettledAggregateOverloads, type Shape, type ShapeSpec, type SingleNamespaceView, type SourceDiagnostic, type SourceSpan, type SpaceMarkerConflict, type SpaceSignature, type SpaceSigned, type SpaceToSign, type Storage, type StorageType, TAGGED_LITERAL_MAX_BYTES, TEMPORAL_ON_CREATE_ARG, TEMPORAL_ON_UPDATE_ARG, TIMESTAMP_NOW_GENERATOR_ID, type TaggedLiteralCanonicalization, type TargetBoundComponentDescriptor, type TargetDescriptor, type TargetInstance, type TargetMigrationsCapability, type TargetPackRef, type ToCanonicalForm, type TypedDefaultFunctionCall, type TypesImportSpec, UNBOUND_NAMESPACE_ID, UNBOUND_PSL_NAMESPACE_NAME, UNSPECIFIED_PSL_NAMESPACE_ID, VERIFY_CODE_HASH_MISMATCH, VERIFY_CODE_MARKER_MISSING, VERIFY_CODE_SCHEMA_FAILURE, VERIFY_CODE_TARGET_MISMATCH, type ValidAnnotations, type ValidationContext, type ValueInputAggregateDescriptor, type VerificationStatus, type VerifierIssueCategory, type VerifierOutcome, type VerifyDatabaseResult, type VerifyDatabaseSchemaResult, aggregateDescriptorKey, applyMutationDefaults, assembleAuthoringContributions, assembleAuthoringDataTypes, assembleControlMutationDefaults, assembleDataTypes, assertAnnotationsApplicable, assertMutationDefaultGeneratorsAvailable, assertNoCrossRegistryCollisions, assertResolvableTypeConstructorTemplates, assertRuntimeContractRequirementsSatisfied, assertUniqueCodecOwner, authoringEntryType, buildExtensionLoadOrder, buildNamespacedEntities, buildSingleNamespaceView, canonicalFormOf, canonicalizeJson, canonicalizeTaggedLiteralBody, checkAborted, checkContractComponentRequirements, checkMiddlewareCompatibility, classifyEnumMemberType, codecForRef, collectMutationDefaultGenerators, collectScalarTypeConstructors, column, contractSnapshotJsonSpecifier, contractSnapshotTypesSpecifier, coordinateKey, createControlStack, createDataTypeLookup, createExecutionStack, createMetaBuilder, dataType, dataTypeId, decodeJsonBoolean, decodeJsonFloat, decodeJsonInteger, decodeJsonIntegerText, decodeJsonMatching, decodeJsonString, defineAnnotation, describeTaggedLiteralFailure, diffSchemas, dispositionForCategory, domainElementCoordinates, elementCoordinates, emptyCodecLookup, encodeJsonFloat, enforceDataTypeInvariants, entityAt, extractCodecLookup, extractCodecTypeImports, extractComponentIds, extractQueryOperationTypeImports, fieldPresetSpellings, findAuthoringTypeConstructorCall, flatPslCompositeTypes, flatPslModels, flushAuthoringWarnings, freezeNode, getAuthoringFieldPreset, getAuthoringTypeConstructor, hasMigrations, hasOperationPreview, hasPslContractBuild, hasPslContractInfer, hasSchemaSubjectClassifier, hasSchemaView, hydrateNamespaceEntities, instantiateAuthoringEntityType, instantiateAuthoringFieldPreset, instantiateAuthoringTypeConstructor, instantiateExecutionStack, isAggregateDescriptor, isAnyInputAggregateDescriptor, isAuthoringArgRef, isAuthoringEntityTypeDescriptor, isAuthoringFieldPresetDescriptor, isAuthoringModelAttributeDescriptor, isAuthoringPslBlockDescriptor, isAuthoringTypeConstructorDescriptor, isIntegerIn, isNoInputAggregateDescriptor, isNonFiniteText, isPlainRecord, isRuntimeError, isTagEntryKey, issueOutcome, keepInternalSpecifiers, makePslNamespace, makePslNamespaceEntries, materializeCodec, mergeAuthoringNamespaces, mergeCapabilityMatrices, namespacePslExtensionBlocks, objectSchemaKeys, onQueryEndOutsideTransaction, orderIssuesByDependencies, printTaggedLiteral, promoteBuiltinKinds, raceAgainstAbort, readEnumBlockMembers, refuseJsonValue, renderTsLiteral, reportExecuteEnding, reportQueryEnding, requiredParamKeys, requiredSchemaKeys, resolveAuthoringTemplateValue, resolveCodecDescriptorOrThrow, resolveEnumCodecId, resolvePslBacktickEscapes, resolveRequirementSpecifiers, resolveTemplateTagEscapes, runAfterTransaction, runBeforeExecuteChain, runBeforeQueryChain, runExecuteWithMiddleware, runQueryWithMiddleware, runtimeAborted, runtimeError, sameMarkerHashes, settleAggregateOverloads, storageHashHex, tagEntryKey, temporalAuthoringPresets, temporalCodecPreset, temporalPhaseTemplate, timestampNowControlDescriptor, validateAuthoringHelperArguments, validateAuthoringTypeParams, validateCodecTypeParams };