@prisma/orm-family-sql 8.0.0-rc.20-dev.13 → 8.0.0-rc.20-dev.15

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 (84) hide show
  1. package/dist/{attribute-specs-DA_RwQFB.d.mts → attribute-specs-Dcd2ZUrY.d.mts} +4 -3
  2. package/dist/attribute-specs-Dcd2ZUrY.d.mts.map +1 -0
  3. package/dist/{authoring-entity-types-CgKIgWq5-pEdfjam5.d.mts → authoring-entity-types-CgKIgWq5-CZK1F9a_.d.mts} +2 -2
  4. package/dist/{authoring-entity-types-CgKIgWq5-pEdfjam5.d.mts.map → authoring-entity-types-CgKIgWq5-CZK1F9a_.d.mts.map} +1 -1
  5. package/dist/compare-strings-BVf3BgCV-CefXnrMB.mjs +10 -0
  6. package/dist/compare-strings-BVf3BgCV-CefXnrMB.mjs.map +1 -0
  7. package/dist/{contract-builder-C_Zi57iD.d.mts → contract-builder-B-Q9T1CO.d.mts} +10 -79
  8. package/dist/contract-builder-B-Q9T1CO.d.mts.map +1 -0
  9. package/dist/{contract-builder-50lF0kz1.mjs → contract-builder-DMNe_jX9.mjs} +109 -96
  10. package/dist/contract-builder-DMNe_jX9.mjs.map +1 -0
  11. package/dist/contract-prisma7__provider.mjs +2 -2
  12. package/dist/contract-psl.d.mts +2 -2
  13. package/dist/contract-psl.d.mts.map +1 -1
  14. package/dist/contract-psl.mjs +1 -1
  15. package/dist/contract-psl__attribute-specs.d.mts +1 -1
  16. package/dist/contract-psl__attribute-specs.mjs +1 -1
  17. package/dist/contract-psl__diagnostics.d.mts +3 -4
  18. package/dist/contract-psl__diagnostics.d.mts.map +1 -1
  19. package/dist/contract-psl__diagnostics.mjs +1 -1
  20. package/dist/contract-psl__provider.mjs +1 -1
  21. package/dist/contract-psl__provider.mjs.map +1 -1
  22. package/dist/contract-ts.d.mts +1 -1
  23. package/dist/contract-ts.mjs +1 -1
  24. package/dist/contract-ts__contract-builder.d.mts +1 -1
  25. package/dist/contract-ts__contract-builder.mjs +1 -1
  26. package/dist/contract.d.mts +2 -1
  27. package/dist/contract.mjs +2 -1
  28. package/dist/contract__generated-id-column-aliases.d.mts +2 -0
  29. package/dist/contract__generated-id-column-aliases.mjs +2 -0
  30. package/dist/{control-CffuMKgt.d.mts → control-B6W_VEZ9.d.mts} +50 -176
  31. package/dist/control-B6W_VEZ9.d.mts.map +1 -0
  32. package/dist/{control-D7N_L18S.mjs → control-D6wIw5Fi.mjs} +4 -5
  33. package/dist/control-D6wIw5Fi.mjs.map +1 -0
  34. package/dist/diagnostics-C7jR1Jyf.mjs +109 -0
  35. package/dist/diagnostics-C7jR1Jyf.mjs.map +1 -0
  36. package/dist/family.d.mts +4 -4
  37. package/dist/family.mjs +5 -6
  38. package/dist/family__control.d.mts +1 -1
  39. package/dist/family__control.mjs +1 -1
  40. package/dist/family__pack.d.mts +2 -2
  41. package/dist/family__pack.mjs +27 -3
  42. package/dist/family__pack.mjs.map +1 -0
  43. package/dist/family__psl-build.mjs +1 -1
  44. package/dist/family__runtime.d.mts +1 -1
  45. package/dist/family__runtime.mjs +1 -1
  46. package/dist/generated-id-column-aliases-DCuTuZrU.d.mts +71 -0
  47. package/dist/generated-id-column-aliases-DCuTuZrU.d.mts.map +1 -0
  48. package/dist/generated-id-column-aliases-DPUii1fN.mjs +51 -0
  49. package/dist/generated-id-column-aliases-DPUii1fN.mjs.map +1 -0
  50. package/dist/{generator-functions-Cg5QkM46-C1ByFzyT.mjs → generator-functions-Hy4pDDr9-AUCNpeg5.mjs} +49 -187
  51. package/dist/generator-functions-Hy4pDDr9-AUCNpeg5.mjs.map +1 -0
  52. package/dist/{interpreter-D5qk4B---CG0C7kdx.mjs → interpreter-CS21wD1i-G0u1x8t_.mjs} +13 -10
  53. package/dist/interpreter-CS21wD1i-G0u1x8t_.mjs.map +1 -0
  54. package/dist/orm-client.d.mts +2 -2
  55. package/dist/orm-client.mjs +2 -2
  56. package/dist/orm-client.mjs.map +1 -1
  57. package/dist/{pack-DA8HZ2mo.d.mts → pack-Cap3oVPy.d.mts} +69 -280
  58. package/dist/pack-Cap3oVPy.d.mts.map +1 -0
  59. package/dist/{psl-build-DFBG6vhz.mjs → psl-build-DqqYhOsa.mjs} +2 -2
  60. package/dist/psl-build-DqqYhOsa.mjs.map +1 -0
  61. package/dist/{psl-column-resolution-ChZqioOc-BREg4J7d.d.mts → psl-column-resolution-djGEITmJ-B5iMpe8H.d.mts} +4 -4
  62. package/dist/psl-column-resolution-djGEITmJ-B5iMpe8H.d.mts.map +1 -0
  63. package/dist/{psl-field-resolution-C5KQ7kzP-B0NwuRWV.mjs → psl-field-resolution-Bvhx79fP-CQqHf_L4.mjs} +20 -107
  64. package/dist/psl-field-resolution-Bvhx79fP-CQqHf_L4.mjs.map +1 -0
  65. package/dist/{runtime-6tH1yOxK.mjs → runtime-CCzfa1mY.mjs} +2 -3
  66. package/dist/{runtime-6tH1yOxK.mjs.map → runtime-CCzfa1mY.mjs.map} +1 -1
  67. package/dist/{runtime-CF6rAlE5.d.mts → runtime-JKWb27L5.d.mts} +2 -3
  68. package/dist/{runtime-CF6rAlE5.d.mts.map → runtime-JKWb27L5.d.mts.map} +1 -1
  69. package/package.json +19 -18
  70. package/dist/attribute-specs-DA_RwQFB.d.mts.map +0 -1
  71. package/dist/contract-builder-50lF0kz1.mjs.map +0 -1
  72. package/dist/contract-builder-C_Zi57iD.d.mts.map +0 -1
  73. package/dist/control-CffuMKgt.d.mts.map +0 -1
  74. package/dist/control-D7N_L18S.mjs.map +0 -1
  75. package/dist/diagnostics-RHJxoiIk.mjs +0 -23
  76. package/dist/diagnostics-RHJxoiIk.mjs.map +0 -1
  77. package/dist/generator-functions-Cg5QkM46-C1ByFzyT.mjs.map +0 -1
  78. package/dist/interpreter-D5qk4B---CG0C7kdx.mjs.map +0 -1
  79. package/dist/pack-DA8HZ2mo.d.mts.map +0 -1
  80. package/dist/pack-DOTaBfUC.mjs +0 -80
  81. package/dist/pack-DOTaBfUC.mjs.map +0 -1
  82. package/dist/psl-build-DFBG6vhz.mjs.map +0 -1
  83. package/dist/psl-column-resolution-ChZqioOc-BREg4J7d.d.mts.map +0 -1
  84. package/dist/psl-field-resolution-C5KQ7kzP-B0NwuRWV.mjs.map +0 -1
@@ -14,8 +14,8 @@ import { invariant } from "@prisma/orm-framework/utils/assertions";
14
14
  import { notOk, ok } from "@prisma/orm-framework/utils/result";
15
15
  import { describeTaggedLiteralFailure as describeTaggedLiteralFailure$1 } from "@prisma/orm-framework/components/control";
16
16
  import { bool, contributedTypeCodecId, contributedTypeOf, dataTypeValue, diagnosticSource, entityRef, fieldAttribute, fieldRef, funcCall, generatorAttributeSpec, identifier, interpretAttribute, leafDiagnostic, list, mapArg, modelAttribute, nodePslSpan, nodeSourceText, numLiteral, oneOf, optional, record, referencedFieldRef, refuseRepeatedTypeAliasAttributes, str, taggedLiteral, typeAttribute, typeAttributeSpecContextOfField, typeAttributeSubjectLabel, typeGeneratorAttributeSpec, typeReferenceNode, writtenList, writtenScalar } from "@prisma/orm-framework/psl-parser";
17
- import { instantiatePslFieldPreset, isBareTypeConstructor, mapPslHelperArgs, reportPresetNotCalled, reportTypeConstructorNotCalled } from "@prisma/orm-framework/psl-parser/interpret";
18
- //#region ../../../2-sql-family/2-authoring/contract-psl/dist/psl-field-resolution-C5KQ7kzP.mjs
17
+ import { isBareTypeConstructor, mapPslHelperArgs, reportTypeConstructorNotCalled } from "@prisma/orm-framework/psl-parser/interpret";
18
+ //#region ../../../2-sql-family/2-authoring/contract-psl/dist/psl-field-resolution-Bvhx79fP.mjs
19
19
  function contractError(code, message, options) {
20
20
  return structuredError(code, message, options);
21
21
  }
@@ -446,7 +446,7 @@ function defaultFunctionCall(name, entry, dataTypes) {
446
446
  const signature = blindCast(entry.signature);
447
447
  return funcCall(name, typeof signature === "function" ? signature(dataTypes) : signature, { label: `Default function "${name}"` });
448
448
  }
449
- /** The data type of the column a field declares, when its type, or the named type it is declared with, is a constructor or preset the stack knows. */
449
+ /** The data type of the column a field declares, when its type, or the named type it is declared with, is a constructor the stack knows. */
450
450
  function receivingDataType(ctx) {
451
451
  const typeConstructor = ctx.typeConstructor;
452
452
  return typeConstructor === void 0 ? void 0 : ctx.dataTypes.dataTypeOfCodec(contributedTypeCodecId(typeConstructor.descriptor));
@@ -968,7 +968,7 @@ function argumentSpan(call, descriptors, index) {
968
968
  return (named ?? positional)?.span ?? call.span;
969
969
  }
970
970
  /**
971
- * Checks the type parameters a constructor or preset produced against its codec's parameter schema,
971
+ * Checks the type parameters a constructor produced against its codec's parameter schema,
972
972
  * reporting a failure at the argument the failing parameter came from. Returns whether they passed.
973
973
  */
974
974
  function checkPslTypeParams(input) {
@@ -1158,32 +1158,6 @@ function instantiateFieldTypeConstructor(input) {
1158
1158
  descriptor: instantiated
1159
1159
  };
1160
1160
  }
1161
- function instantiateFieldPreset(input) {
1162
- const instantiated = instantiatePslFieldPreset(input);
1163
- if (!instantiated) return NOT_RESOLVED;
1164
- if (!checkPslTypeParams({
1165
- call: input.call,
1166
- subject: `${input.entityLabel} preset "${input.call.path.join(".")}"`,
1167
- args: input.descriptor.args,
1168
- template: input.descriptor.output,
1169
- typeParams: instantiated.descriptor.typeParams,
1170
- codecLookup: input.codecLookup,
1171
- diagnostics: input.diagnostics,
1172
- source: input.source
1173
- })) return NOT_RESOLVED;
1174
- const presetContributions = {
1175
- nullable: instantiated.nullable,
1176
- id: instantiated.id,
1177
- unique: instantiated.unique,
1178
- ...instantiated.default !== void 0 ? { default: instantiated.default } : {},
1179
- ...instantiated.executionDefaults !== void 0 ? { executionDefaults: instantiated.executionDefaults } : {}
1180
- };
1181
- return {
1182
- ok: true,
1183
- descriptor: instantiated.descriptor,
1184
- presetContributions
1185
- };
1186
- }
1187
1161
  function resolvedKindLabel(resolution) {
1188
1162
  switch (resolution.kind) {
1189
1163
  case "compositeType": return "composite type";
@@ -1228,27 +1202,6 @@ function resolveFieldTypeDescriptor(input) {
1228
1202
  descriptor: instantiateAuthoringTypeAlias(descriptor).type
1229
1203
  };
1230
1204
  }
1231
- if (descriptor.kind === "fieldPreset") {
1232
- if (call === void 0) {
1233
- reportPresetNotCalled({
1234
- entityLabel,
1235
- presetPath: written,
1236
- source,
1237
- span: field.span,
1238
- diagnostics
1239
- });
1240
- return NOT_RESOLVED;
1241
- }
1242
- return instantiateFieldPreset({
1243
- call,
1244
- descriptor,
1245
- codecLookup: input.codecLookup,
1246
- diagnostics,
1247
- source,
1248
- entityLabel,
1249
- dataTypes: input.dataTypes
1250
- });
1251
- }
1252
1205
  if (call !== void 0) return instantiateFieldTypeConstructor({
1253
1206
  ...input,
1254
1207
  call,
@@ -1710,7 +1663,7 @@ function extractFieldConstraintNames(input) {
1710
1663
  };
1711
1664
  }
1712
1665
  function collectResolvedFields(input) {
1713
- const { model, symbolTable, enumTypeDescriptors, typeAliases, valueObjectTypes, authoringContributions, binder, targetId, defaultFunctionRegistry, generatorFunctions, dataTypes, diagnostics, sources, scalarColumnDescriptors, enumHandles, capabilities, namespaceId, namespaceExtensionEntities, codecLookup } = input;
1666
+ const { model, symbolTable, enumTypeDescriptors, typeAliases, valueObjectTypes, authoringContributions, binder, targetId, defaultFunctionRegistry, generatorFunctions, dataTypes, diagnostics, droppedFields, sources, scalarColumnDescriptors, enumHandles, capabilities, namespaceId, namespaceExtensionEntities, codecLookup } = input;
1714
1667
  const resolvedFields = [];
1715
1668
  const valueObjectStorageTypeName = authoringContributions?.valueObjectStorageType;
1716
1669
  for (const field of Object.values(model.fields)) {
@@ -1731,7 +1684,6 @@ function collectResolvedFields(input) {
1731
1684
  typedByValueObject: isValueObjectField
1732
1685
  });
1733
1686
  let descriptor;
1734
- let presetContributions;
1735
1687
  const resolveInput = {
1736
1688
  field,
1737
1689
  resolution: fieldTypeResolution,
@@ -1767,31 +1719,20 @@ function collectResolvedFields(input) {
1767
1719
  continue;
1768
1720
  }
1769
1721
  const resolved = resolveFieldTypeDescriptor(resolveInput);
1770
- if (!resolved.ok) continue;
1771
- if (resolved.presetContributions) {
1772
- diagnostics.push({
1773
- code: "PSL_PRESET_NOT_LIST",
1774
- message: `Field "${model.name}.${field.name}" uses a field-preset call as a list element type. Presets cannot be list elements; remove "[]" or use a scalar type.`,
1775
- ...source.at(field.span)
1776
- });
1722
+ if (!resolved.ok) {
1723
+ droppedFields.add(field);
1777
1724
  continue;
1778
1725
  }
1779
1726
  descriptor = resolved.descriptor;
1780
1727
  } else {
1781
1728
  const resolved = resolveFieldTypeDescriptor(resolveInput);
1782
- if (!resolved.ok) continue;
1729
+ if (!resolved.ok) {
1730
+ droppedFields.add(field);
1731
+ continue;
1732
+ }
1783
1733
  descriptor = resolved.descriptor;
1784
- presetContributions = resolved.presetContributions;
1785
1734
  }
1786
1735
  if (!descriptor) continue;
1787
- if (presetContributions?.id && field.optional) {
1788
- diagnostics.push({
1789
- code: "PSL_PRESET_NOT_OPTIONAL",
1790
- message: `Field "${model.name}.${field.name}" is a primary key through its field preset, so it cannot be optional; primary key columns must be NOT NULL. Remove "?" or use a preset that does not make the field a primary key.`,
1791
- ...source.at(field.span)
1792
- });
1793
- continue;
1794
- }
1795
1736
  const typeAlias = typeAliases.ofResolution(fieldTypeResolution);
1796
1737
  if (typeAlias !== void 0) refuseRepeatedTypeAliasAttributes({
1797
1738
  field,
@@ -1801,14 +1742,6 @@ function collectResolvedFields(input) {
1801
1742
  diagnostics
1802
1743
  });
1803
1744
  const defaultAttribute = getAttribute(field.attributes, "default");
1804
- if (presetContributions?.default && defaultAttribute) {
1805
- diagnostics.push({
1806
- code: "PSL_PRESET_AND_DEFAULT_CONFLICT",
1807
- message: `Field "${model.name}.${field.name}" uses a field-preset call that already sets a database default, so it cannot also declare @default(...). Remove @default(...) or use a preset without a default.`,
1808
- ...source.at(defaultAttribute.span)
1809
- });
1810
- continue;
1811
- }
1812
1745
  const enumHandle = fieldTypeResolution?.kind === "block" ? enumHandles.get(fieldTypeResolution.symbol) : typeAlias?.enumHandle;
1813
1746
  const fieldLowering = {
1814
1747
  modelName: model.name,
@@ -1872,16 +1805,6 @@ function collectResolvedFields(input) {
1872
1805
  });
1873
1806
  continue;
1874
1807
  }
1875
- const presetPhaseConflict = GENERATOR_ATTRIBUTE_NAMES.find((phase) => presetContributions?.executionDefaults?.[phase] !== void 0 && generatedValues?.[phase] !== void 0);
1876
- if (presetPhaseConflict !== void 0) {
1877
- const phaseText = presetPhaseConflict === "onCreate" ? "on create" : "on update";
1878
- diagnostics.push({
1879
- code: "PSL_PRESET_AND_DEFAULT_CONFLICT",
1880
- message: `Field "${model.name}.${field.name}" uses a field-preset call that already generates a value ${phaseText}, so @${presetPhaseConflict}(...) cannot set one too. Remove @${presetPhaseConflict}(...) or use a preset without an ${presetPhaseConflict} generator.`,
1881
- ...source.at(getAttribute(field.attributes, presetPhaseConflict)?.span ?? field.span)
1882
- });
1883
- continue;
1884
- }
1885
1808
  const mappedColumnName = storageName(field, input.physicalNames);
1886
1809
  const specContext = fieldSpecContext({
1887
1810
  symbols: symbolTable,
@@ -1918,25 +1841,15 @@ function collectResolvedFields(input) {
1918
1841
  });
1919
1842
  isIdField = false;
1920
1843
  }
1921
- if (presetContributions && idAttribute && !presetContributions.id) {
1922
- diagnostics.push({
1923
- code: "PSL_PRESET_AND_ID_CONFLICT",
1924
- message: `Field "${model.name}.${field.name}" uses a field-preset call and cannot also declare @id. Use a preset that contributes id semantics, or drop @id.`,
1925
- ...source.at(idAttribute.span)
1926
- });
1927
- continue;
1928
- }
1929
- const fieldExecutionDefaults = mergeExecutionDefaults(generatedValues, presetContributions?.executionDefaults);
1930
- const fieldDefaultValue = presetContributions?.default ?? loweredDefault.defaultValue;
1931
1844
  resolvedFields.push({
1932
1845
  field,
1933
1846
  columnName: mappedColumnName,
1934
1847
  descriptor,
1935
- nullable: field.optional || Boolean(presetContributions?.nullable),
1936
- ...ifDefined("defaultValue", fieldDefaultValue),
1937
- ...ifDefined("executionDefaults", fieldExecutionDefaults),
1938
- isId: isIdField || Boolean(presetContributions?.id),
1939
- isUnique: Boolean(uniqueAttribute) || Boolean(presetContributions?.unique),
1848
+ nullable: field.optional,
1849
+ ...ifDefined("defaultValue", loweredDefault.defaultValue),
1850
+ ...ifDefined("executionDefaults", generatedValues),
1851
+ isId: isIdField,
1852
+ isUnique: Boolean(uniqueAttribute),
1940
1853
  ...ifDefined("idName", idName),
1941
1854
  ...ifDefined("uniqueName", uniqueName),
1942
1855
  ...ifDefined("many", isListField ? true : void 0),
@@ -1947,14 +1860,14 @@ function collectResolvedFields(input) {
1947
1860
  }
1948
1861
  return resolvedFields;
1949
1862
  }
1950
- function mergeExecutionDefaults(fromAttributes, fromPreset) {
1951
- if (fromAttributes === void 0 || fromPreset === void 0) return fromPreset ?? fromAttributes;
1863
+ function mergeExecutionDefaults(fromAttributes, fromTypeAlias) {
1864
+ if (fromAttributes === void 0 || fromTypeAlias === void 0) return fromTypeAlias ?? fromAttributes;
1952
1865
  return {
1953
1866
  ...fromAttributes,
1954
- ...fromPreset
1867
+ ...fromTypeAlias
1955
1868
  };
1956
1869
  }
1957
1870
  //#endregion
1958
1871
  export { modelSpecContext as _, describeUnsupportedSqlAttribute as a, sqlAttributeSpecs as b, instantiateFieldTypeConstructor as c, interpretModelAttribute as d, lowerEnumDefault as f, modelCoordinateKey as g, modelAttributeSpecsFrom as h, defaultFunctionCall as i, instantiatePslTypeConstructor as l, lowerTypeGenerators as m, collectResolvedFields as n, fieldSpecContext as o, lowerTypeDefault as p, contractError as r, getAuthoringEntity as s, PSL_CHECK_ON_STI_VARIANT as t, interpretFieldAttribute as u, readDataTypeDefault as v, resolveFieldTypeDescriptor as y };
1959
1872
 
1960
- //# sourceMappingURL=psl-field-resolution-C5KQ7kzP-B0NwuRWV.mjs.map
1873
+ //# sourceMappingURL=psl-field-resolution-Bvhx79fP-CQqHf_L4.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"psl-field-resolution-Bvhx79fP-CQqHf_L4.mjs","names":["describeTaggedLiteralFailure"],"sources":["../../../../2-sql-family/2-authoring/contract-psl/dist/psl-field-resolution-Bvhx79fP.mjs"],"sourcesContent":["import { n as getAttribute, o as storageName, t as formatDbAttributeMigrationMessage } from \"./psl-attribute-parsing-BCsFWsSp.mjs\";\nimport { bool, contributedTypeCodecId, contributedTypeOf, dataTypeValue, diagnosticSource, entityRef, fieldAttribute, fieldRef, funcCall, generatorAttributeSpec, identifier, interpretAttribute, leafDiagnostic, list, mapArg, modelAttribute, nodePslSpan, nodeSourceText, numLiteral, oneOf, optional, record, referencedFieldRef, refuseRepeatedTypeAliasAttributes, str, taggedLiteral, typeAttribute, typeAttributeSpecContextOfField, typeAttributeSubjectLabel, typeGeneratorAttributeSpec, typeReferenceNode, writtenList, writtenScalar } from \"@internal/psl-parser\";\nimport { isValueObjectMember, storedAsListColumn } from \"@internal/sql-contract-ts/contract-builder\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { InternalError, isInternalError } from \"@internal/utils/internal-error\";\nimport { invariant } from \"@internal/utils/assertions\";\nimport { admittedForms, castTypedValue, describeExpected, describeRefusal, describeRefusedValueType, exactRewrite, instantiateAuthoringTypeAlias, instantiateAuthoringTypeConstructor, isAuthoringEntityTypeDescriptor, readWrittenValue, tagForm, validateAuthoringHelperArguments, validateAuthoringTypeParams } from \"@internal/framework-components/authoring\";\nimport { describeTaggedLiteralFailure } from \"@internal/framework-components/control\";\nimport { isBareTypeConstructor, mapPslHelperArgs, reportTypeConstructorNotCalled } from \"@internal/psl-parser/interpret\";\nimport { sqlCodecColumnLength } from \"@internal/sql-contract/data-type\";\nimport { SQL_EXPRESSION_DATA_TYPE_ID, SQL_EXPRESSION_TAG, sqlTextFromStored } from \"@internal/sql-contract/sql-expression\";\nimport { checkSqlDefaultText, reservedSqlDefaultText } from \"@internal/sql-contract/validators\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { codecForRef, dataTypeParams, readContractValue } from \"@internal/framework-components/codec\";\nimport { FunctionCallAst } from \"@internal/psl-parser/syntax\";\nimport { notOk, ok } from \"@internal/utils/result\";\n//#region src/contract-errors.ts\nfunction contractError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\n//#endregion\n//#region src/data-type-default.ts\n/** A written value the column's type, under the column's parameters, or the column's codec refuses. */\nconst PSL_INVALID_DEFAULT_LITERAL = \"PSL_INVALID_DEFAULT_LITERAL\";\n/** A written value whose data type the receiving type neither is nor casts from. */\nconst PSL_VALUE_TYPE_INCOMPATIBLE = \"PSL_VALUE_TYPE_INCOMPATIBLE\";\n/** A single value written as the default of a column that holds a list. */\nconst PSL_DEFAULT_LIST_EXPECTED = \"PSL_DEFAULT_LIST_EXPECTED\";\nfunction messageOf(error) {\n\treturn error instanceof Error ? error.message : String(error);\n}\nfunction refused(refusal, suggestedTypes) {\n\treturn {\n\t\tok: false,\n\t\trefusal,\n\t\tsuggestedTypes\n\t};\n}\nfunction readOneValue(dataTypes, written, elementIndex, suggestedTypes) {\n\tconst read = readWrittenValue(dataTypes, written);\n\treturn read.ok ? {\n\t\tok: true,\n\t\ttyped: read.value\n\t} : refused({\n\t\t...read.failure,\n\t\telementIndex\n\t}, suggestedTypes);\n}\n/** The column's `typeParams` as the codec reference carries them, so `vector(3)` checks its length. */\nfunction codecRefTypeParams(typeParams) {\n\treturn typeParams === void 0 ? void 0 : blindCast(typeParams);\n}\n/**\n* The column's codec descriptor, and `read`, which makes a value in its stored JSON form a value of the column's type under the column's parameters, and checks it with the column's codec, built with those parameters.\n*/\nfunction storedValueReader(input) {\n\tconst descriptor = input.lookups.codecLookup.descriptorFor(input.column.codecId);\n\tconst codec = codecForRef(input.lookups.codecLookup, {\n\t\tcodecId: input.column.codecId,\n\t\t...ifDefined(\"typeParams\", codecRefTypeParams(input.column.typeParams))\n\t});\n\tif (codec === void 0 || descriptor === void 0) throw new InternalError(`Field \"${input.fieldPath}\": no codec descriptor is registered for \"${input.column.codecId}\", but the column was resolved from one.`);\n\tconst suggestedTypes = [descriptor.dataType];\n\tconst params = dataTypeParams(codec.dataType, input.column.typeParams);\n\tconst read = (written, elementIndex) => {\n\t\tlet stored;\n\t\ttry {\n\t\t\tconst value = codec.dataType.valueFrom(written, params);\n\t\t\tcodec.fromDataTypeValue(value);\n\t\t\tstored = codec.dataType.toContract(value);\n\t\t} catch (error) {\n\t\t\tif (isInternalError(error)) throw error;\n\t\t\treturn {\n\t\t\t\tok: false,\n\t\t\t\trefusal: {\n\t\t\t\t\tkind: \"refused-by-column\",\n\t\t\t\t\tcodecId: input.column.codecId,\n\t\t\t\t\tmessage: messageOf(error),\n\t\t\t\t\telementIndex\n\t\t\t\t},\n\t\t\t\tsuggestedTypes\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\tok: true,\n\t\t\tvalue: stored\n\t\t};\n\t};\n\treturn {\n\t\tdescriptor,\n\t\tparams,\n\t\tread\n\t};\n}\n/**\n* Reads a value already in its stored JSON form, such as one member of a JSON document default, as a value of the column's type checked by the column's codec. Worded as {@link lowerDataTypeDefault} words the same refusals.\n*/\nfunction readStoredValue(input) {\n\tconst reading = storedValueReader(input).read(input.value, void 0);\n\treturn reading.ok ? reading : {\n\t\tok: false,\n\t\t...storedRefusalMessage(reading.refusal, `Field \"${input.fieldPath}\"`)\n\t};\n}\n/**\n* Read one `@default(...)` value for a column, refusing in parts so each contract source words its\n* own diagnostic. `isList` selects the check: a list column's elements are each read and cast\n* against the element codec's data type, while a scalar column takes a written list only through\n* its type's list cast — which is how `pgvector.Vector(3) @default([0.1, 0.2])` is read.\n*/\nfunction readDataTypeDefault(input) {\n\tconst { descriptor, params, read: readStored } = storedValueReader({\n\t\tcolumn: input.column,\n\t\tlookups: {\n\t\t\tcodecLookup: input.codecLookup,\n\t\t\tdataTypeLookup: input.dataTypes.lookup\n\t\t},\n\t\tfieldPath: input.fieldPath\n\t});\n\tconst columnType = descriptor.dataType;\n\tconst suggestedTypes = [columnType];\n\tconst readOne = (written, elementIndex) => {\n\t\tconst read = readOneValue(input.dataTypes, written, elementIndex, suggestedTypes);\n\t\tif (!read.ok) return read;\n\t\tconst cast = castTypedValue(input.dataTypes, columnType, params, read.typed);\n\t\tif (!cast.ok) {\n\t\t\tconst { failure } = cast;\n\t\t\treturn failure.kind === \"refused-by-type\" ? refused({\n\t\t\t\tkind: \"refused-by-column\",\n\t\t\t\tcodecId: input.column.codecId,\n\t\t\t\tmessage: failure.message,\n\t\t\t\telementIndex\n\t\t\t}, suggestedTypes) : refused({\n\t\t\t\t...failure,\n\t\t\t\telementIndex\n\t\t\t}, suggestedTypes);\n\t\t}\n\t\treturn readStored(cast.value.value, elementIndex);\n\t};\n\tif (input.written.kind !== \"list\") {\n\t\tif (input.isList) return refused({\n\t\t\tkind: \"not-a-list\",\n\t\t\telementIndex: void 0\n\t\t}, suggestedTypes);\n\t\treturn readOne(input.written, void 0);\n\t}\n\tif (input.isList) {\n\t\tconst elements = [];\n\t\tfor (const [elementIndex, written] of input.written.elements.entries()) {\n\t\t\tif (written.kind === \"list\") return nestedList(elementIndex, suggestedTypes);\n\t\t\tconst element = readOne(written, elementIndex);\n\t\t\tif (!element.ok) return element;\n\t\t\telements.push(element.value);\n\t\t}\n\t\treturn {\n\t\t\tok: true,\n\t\t\tvalue: elements\n\t\t};\n\t}\n\treturn readListIntoScalar({\n\t\t...input,\n\t\twritten: input.written,\n\t\tcolumnType,\n\t\treadStored\n\t});\n}\nfunction nestedList(elementIndex, suggestedTypes) {\n\treturn refused({\n\t\tkind: \"unreadable\",\n\t\tmessage: \"a list holds values, not other lists\",\n\t\telementIndex\n\t}, suggestedTypes);\n}\n/** A written list on a column that is not a list: the column's type takes it through its list cast. */\nfunction readListIntoScalar(input) {\n\tconst declaration = input.dataTypes.lookup.get(input.columnType);\n\tconst listCast = declaration?.listCast;\n\tif (listCast === void 0) return refused({\n\t\tkind: \"no-list-cast\",\n\t\treceivingType: input.columnType,\n\t\tcasts: Object.keys(declaration?.casts ?? {}),\n\t\telementIndex: void 0\n\t}, [input.columnType]);\n\tconst elements = [];\n\tfor (const [elementIndex, written] of input.written.elements.entries()) {\n\t\tif (written.kind === \"list\") return nestedList(elementIndex, listCast.of);\n\t\tconst read = readOneValue(input.dataTypes, written, elementIndex, listCast.of);\n\t\tif (!read.ok) return read;\n\t\tif (!listCast.of.includes(read.typed.type)) return refused({\n\t\t\tkind: \"no-element-cast\",\n\t\t\treceivingType: input.columnType,\n\t\t\tvalueType: read.typed.type,\n\t\t\telementTypes: listCast.of,\n\t\t\telementIndex\n\t\t}, listCast.of);\n\t\telements.push(read.typed.value);\n\t}\n\ttry {\n\t\treturn input.readStored(listCast.cast(elements), void 0);\n\t} catch (error) {\n\t\tif (isInternalError(error)) throw error;\n\t\treturn refused({\n\t\t\tkind: \"unreadable\",\n\t\t\tmessage: messageOf(error),\n\t\t\telementIndex: void 0\n\t\t}, [input.columnType]);\n\t}\n}\n/** Where a diagnostic is about, for a message: `Field \"N.count\" at element 2`. */\nfunction location(subject, elementIndex) {\n\treturn elementIndex === void 0 ? subject : `${subject} at element ${elementIndex + 1}`;\n}\n/**\n* What may be written where every one of `types` is received, each form once: `a number`. A column\n* whose type nothing writes still takes a `sql` literal, which `@default` stores as a SQL expression.\n*/\nfunction formsOf(dataTypes, types) {\n\tconst forms = admittedForms(dataTypes, types);\n\treturn forms.length === 0 ? [tagForm(SQL_EXPRESSION_TAG)] : forms;\n}\n/** The exact rewrite of the written value a `no-cast` refusal is about, before list elements are renumbered to the source list. */\nfunction rewriteOf(refusal, written, dataTypes) {\n\tif (refusal.kind !== \"no-cast\") return void 0;\n\tconst refused = refusal.elementIndex === void 0 || written.kind !== \"list\" ? written : written.elements[refusal.elementIndex];\n\treturn refused === void 0 || refused.kind === \"list\" ? void 0 : exactRewrite(dataTypes, refusal, refused);\n}\n/**\n* {@link readDataTypeDefault} worded as a PSL diagnostic's code, message and span: a cast-rule\n* refusal at the written value, or the element of a written list it is about; a refusal only\n* defaults have at the `@default` attribute.\n*/\nfunction lowerDataTypeDefault(input) {\n\tconst read = readDataTypeDefault({\n\t\t...input,\n\t\tfieldPath: input.subject\n\t});\n\tif (read.ok) return read;\n\tconst refusal = atSourceElement(read.refusal, input.sourceElementIndexes);\n\treturn {\n\t\tok: false,\n\t\t...refusalMessage(refusal, input.subject, input.dataTypes, guidanceFor(read, input.written, input.dataTypes)),\n\t\tspan: refusalSpan(refusal, input.spans, input.subject)\n\t};\n}\n/** What a refusal of `written` tells the author to write instead. */\nfunction guidanceFor(failure, written, dataTypes) {\n\treturn {\n\t\tforms: formsOf(dataTypes, failure.suggestedTypes),\n\t\trewrite: rewriteOf(failure.refusal, written, dataTypes)\n\t};\n}\nfunction atSourceElement(refusal, sourceElementIndexes) {\n\tif (refusal.elementIndex === void 0) return refusal;\n\tconst elementIndex = sourceElementIndexes?.[refusal.elementIndex];\n\treturn elementIndex === void 0 ? refusal : {\n\t\t...refusal,\n\t\telementIndex\n\t};\n}\nfunction codecRefusalMessage(refusal, subject) {\n\treturn {\n\t\tcode: PSL_INVALID_DEFAULT_LITERAL,\n\t\tmessage: `${location(subject, refusal.elementIndex)}: ${refusal.message}`\n\t};\n}\nfunction storedRefusalMessage(refusal, subject) {\n\tif (refusal.kind === \"refused-by-column\") return codecRefusalMessage(refusal, subject);\n\treturn {\n\t\tcode: \"PSL_INVALID_LITERAL\",\n\t\tmessage: `${location(subject, refusal.elementIndex)}: ${refusal.message}`\n\t};\n}\n/** A refusal worded as a PSL diagnostic's code and message; `guidance` says what to write instead. */\nfunction refusalMessage(refusal, subject, dataTypes, guidance) {\n\tconst where = location(subject, refusal.elementIndex);\n\tswitch (refusal.kind) {\n\t\tcase \"not-a-list\": return {\n\t\t\tcode: PSL_DEFAULT_LIST_EXPECTED,\n\t\t\tmessage: `${where}: this column holds a list, so its default is a list literal, as in [1, 2]`\n\t\t};\n\t\tcase \"refused-by-column\": return codecRefusalMessage(refusal, subject);\n\t\tcase \"no-list-cast\": return {\n\t\t\tcode: PSL_VALUE_TYPE_INCOMPATIBLE,\n\t\t\tmessage: `${where}: ${describeExpected(guidance.forms)}; got a list`\n\t\t};\n\t\tcase \"no-element-cast\": return {\n\t\t\tcode: PSL_VALUE_TYPE_INCOMPATIBLE,\n\t\t\tmessage: `${where}: ${describeRefusedValueType(refusal, dataTypes, guidance)}`\n\t\t};\n\t\tdefault: {\n\t\t\tconst { code, message } = describeRefusal(refusal, dataTypes, guidance);\n\t\t\treturn {\n\t\t\t\tcode,\n\t\t\t\tmessage: `${where}: ${message}`\n\t\t\t};\n\t\t}\n\t}\n}\nfunction refusalSpan(refusal, spans, subject) {\n\tswitch (refusal.kind) {\n\t\tcase \"not-a-list\":\n\t\tcase \"refused-by-column\": return spans.attribute;\n\t\tdefault: return writtenValueSpan(spans, refusal.elementIndex, subject);\n\t}\n}\nfunction writtenValueSpan(spans, elementIndex, subject) {\n\tif (elementIndex === void 0) return spans.value;\n\tconst span = spans.elements[elementIndex];\n\tif (span === void 0) throw new InternalError(`${subject}: a refused @default list element ${elementIndex + 1} has no written span.`);\n\treturn span;\n}\n//#endregion\n//#region src/default-function-registry.ts\nfunction formatSupportedFunctionList(registry) {\n\tconst signatures = Array.from(registry.entries()).sort(([a], [b]) => a.localeCompare(b)).flatMap(([functionName, entry]) => {\n\t\tconst usageSignatures = entry.usageSignatures?.filter((signature) => signature.length > 0);\n\t\treturn usageSignatures && usageSignatures.length > 0 ? usageSignatures : [`${functionName}()`];\n\t});\n\treturn signatures.length > 0 ? signatures.join(\", \") : \"none\";\n}\n/** The diagnostic message for a `dbgenerated(...)` call, which raw SQL tagged literals replaced. */\nfunction removedDbgeneratedMessage(registry) {\n\treturn `Default function \"dbgenerated\" was removed. Write the SQL as a tagged literal: @default(sql\\`<expression>\\`). Supported functions: ${formatSupportedFunctionList(registry)}.`;\n}\nfunction lowerDefaultFunctionWithRegistry(input) {\n\tconst entry = input.registry.get(input.call.fn);\n\tif (entry) {\n\t\tconst result = entry.lower({\n\t\t\tcall: input.call,\n\t\t\tcontext: input.context\n\t\t});\n\t\treturn result.ok ? result : {\n\t\t\t...result,\n\t\t\tkind: \"external\"\n\t\t};\n\t}\n\tconst supportedFunctionList = formatSupportedFunctionList(input.registry);\n\treturn {\n\t\tok: false,\n\t\tkind: \"owned\",\n\t\tdiagnostic: {\n\t\t\tcode: \"PSL_UNKNOWN_DEFAULT_FUNCTION\",\n\t\t\tmessage: `Default function \"${input.call.fn}\" is not supported in SQL PSL provider v1. Supported functions: ${supportedFunctionList}.`,\n\t\t\t...input.source.at(input.call.span)\n\t\t}\n\t};\n}\n//#endregion\n//#region src/sql-attribute-specs.ts\nfunction buildModelAttributeCtx(input) {\n\treturn {\n\t\tsources: input.sources,\n\t\tselfModel: input.selfModel,\n\t\tbinder: input.binder,\n\t\tsymbols: input.symbols\n\t};\n}\nfunction buildFieldAttributeCtx(input) {\n\treturn {\n\t\tsources: input.sources,\n\t\tselfModel: input.selfModel,\n\t\tfield: input.field,\n\t\tbinder: input.binder,\n\t\tsymbols: input.symbols\n\t};\n}\nfunction modelAttributeSpecsFrom(modelAttributesByName) {\n\tconst result = Object.create(null);\n\tfor (const [name, descriptor] of modelAttributesByName) result[name] = blindCast(descriptor.spec);\n\treturn result;\n}\nfunction interpretModelAttribute(input) {\n\tconst result = interpretAttribute(input.node, input.spec, buildModelAttributeCtx({\n\t\tsymbols: input.symbols,\n\t\tselfModel: input.model,\n\t\tsources: input.sources,\n\t\tbinder: input.binder\n\t}));\n\tif (!result.ok) {\n\t\tinput.diagnostics.push(...result.failure);\n\t\treturn;\n\t}\n\treturn result.value;\n}\nfunction interpretFieldAttribute(input) {\n\tconst result = interpretAttribute(input.node, input.spec, buildFieldAttributeCtx({\n\t\tsymbols: input.symbols,\n\t\tselfModel: input.model,\n\t\tfield: input.field,\n\t\tsources: input.sources,\n\t\tbinder: input.binder\n\t}));\n\tif (!result.ok) {\n\t\tinput.diagnostics.push(...result.failure);\n\t\treturn;\n\t}\n\treturn result.value;\n}\n/** Interprets an attribute that reads only its type, such as `@default` on a field or a type alias, draining parse failures into `diagnostics`. */\nfunction interpretTypeAttribute(input) {\n\tconst result = interpretAttribute(input.node, input.spec, {\n\t\tsources: input.sources,\n\t\tsymbols: input.symbols,\n\t\tbinder: input.binder\n\t});\n\tif (!result.ok) {\n\t\tinput.diagnostics.push(...result.failure);\n\t\treturn;\n\t}\n\treturn result.value;\n}\nfunction validateMappedName(value, ctx, attributeNode) {\n\treturn value.name === \"\" ? [leafDiagnostic(ctx, attributeNode, \"Mapped name must not be empty\")] : [];\n}\nconst mapModelSpec = modelAttribute(\"map\", {\n\tdocumentation: \"Maps this model to a database table name.\",\n\tpositional: [{\n\t\tkey: \"name\",\n\t\ttype: str(),\n\t\tdocumentation: \"The nonempty database table name.\"\n\t}],\n\trefine: validateMappedName\n});\nconst mapFieldSpec = fieldAttribute(\"map\", {\n\tdocumentation: \"Maps this field to a database column name.\",\n\tpositional: [{\n\t\tkey: \"name\",\n\t\ttype: str(),\n\t\tdocumentation: \"The nonempty database column name.\"\n\t}],\n\trefine: validateMappedName\n});\nfunction nullLiteral() {\n\tconst nullIdentifier = identifier(\"null\", { documentation: \"A null list element or nullable scalar default.\" });\n\treturn mapArg({\n\t\tkind: \"null\",\n\t\tlabel: \"null\",\n\t\tparse: (arg, ctx) => {\n\t\t\tconst result = nullIdentifier.parse(arg, ctx);\n\t\t\treturn result.ok ? ok(null) : result;\n\t\t}\n\t}, (_null, arg, ctx) => ({\n\t\tkind: \"null\",\n\t\tspan: nodePslSpan(arg.syntax, ctx.sources)\n\t}));\n}\n/**\n* A call to the registered default function `name`, with its signature built from the stack's data types when it needs them. Its binding diagnostics name it as a default function.\n*/\nfunction defaultFunctionCall(name, entry, dataTypes) {\n\tconst signature = blindCast(entry.signature);\n\treturn funcCall(name, typeof signature === \"function\" ? signature(dataTypes) : signature, { label: `Default function \"${name}\"` });\n}\n/** The data type of the column a field declares, when its type, or the named type it is declared with, is a constructor the stack knows. */\nfunction receivingDataType(ctx) {\n\tconst typeConstructor = ctx.typeConstructor;\n\treturn typeConstructor === void 0 ? void 0 : ctx.dataTypes.dataTypeOfCodec(contributedTypeCodecId(typeConstructor.descriptor));\n}\n/** Whether a value of `type` can be written for a column of `receiving`: it is that type, or the column's type casts from it. An unknown column takes every type. */\nfunction receives(dataTypes, receiving, type) {\n\tif (receiving === void 0 || type === receiving) return true;\n\tconst receivingType = dataTypes.lookup.get(receiving);\n\tif (receivingType === void 0) return true;\n\treturn Object.hasOwn(receivingType.casts, type) || (receivingType.listCast?.of.some((of) => of === type) ?? false);\n}\nfunction scalarDefaultArms(isList, receiving, dataTypes, defaultFunctionRegistry) {\n\tconst tagArms = (admits) => {\n\t\tconst tagsByDocumentation = /* @__PURE__ */ new Map();\n\t\tfor (const [key, entry] of Object.entries(dataTypes.entries)) {\n\t\t\tif (entry.written.kind !== \"tag\" || !admits(key)) continue;\n\t\t\tconst tags = tagsByDocumentation.get(entry.documentation);\n\t\t\tif (tags === void 0) tagsByDocumentation.set(entry.documentation, [entry.written.tag]);\n\t\t\telse tags.push(entry.written.tag);\n\t\t}\n\t\treturn [...tagsByDocumentation].map(([documentation, tags]) => writtenScalar(taggedLiteral(tags, { documentation })));\n\t};\n\tconst columnTags = () => tagArms((dataType) => dataType === SQL_EXPRESSION_DATA_TYPE_ID || !isList && receives(dataTypes, receiving, dataType));\n\tconst literal = () => oneOf(writtenScalar(str()), writtenScalar(numLiteral()), writtenScalar(bool()), nullLiteral(), ...tagArms((dataType) => dataType !== SQL_EXPRESSION_DATA_TYPE_ID && receives(dataTypes, receiving, dataType)));\n\tconst listArm = () => writtenList(literal());\n\tconst funcArms = [...defaultFunctionRegistry.entries()].map(([name, entry]) => mapArg(defaultFunctionCall(name, entry, dataTypes), (call) => ({\n\t\tkind: \"default-function\",\n\t\tcall\n\t})));\n\treturn isList ? [\n\t\tlistArm(),\n\t\t...funcArms,\n\t\t...columnTags()\n\t] : [\n\t\twrittenScalar(str()),\n\t\twrittenScalar(numLiteral()),\n\t\twrittenScalar(bool()),\n\t\tnullLiteral(),\n\t\t...funcArms,\n\t\t...columnTags(),\n\t\tlistArm()\n\t];\n}\n/**\n* The `@default` value arms, with a `dbgenerated(...)` call reported as removed before the arms\n* are tried, so the author is told what replaced it instead of being shown the list of arms.\n*/\nfunction defaultValueArm(arms, registry, generatorFunctions, subject) {\n\tconst value = arms.length === 1 && arms[0].kind === \"list\" ? arms[0] : oneOf(...arms);\n\treturn {\n\t\t...value,\n\t\tparse: (arg, ctx) => {\n\t\t\tconst callee = FunctionCallAst.cast(arg.syntax)?.path().join(\".\");\n\t\t\tif (callee === \"dbgenerated\") return notOk([leafDiagnostic(ctx, arg, removedDbgeneratedMessage(registry), \"PSL_UNKNOWN_DEFAULT_FUNCTION\")]);\n\t\t\tif (callee !== void 0 && !registry.has(callee) && generatorFunctions.has(callee)) {\n\t\t\t\tconst call = nodeSourceText(arg, ctx);\n\t\t\t\treturn notOk([leafDiagnostic(ctx, arg, `${subject}: ${call} is a value the client generates, and @default sets a database default only. Write @onCreate(${call}) instead.`, \"PSL_GENERATOR_IN_DEFAULT\")]);\n\t\t\t}\n\t\t\treturn value.parse(arg, ctx);\n\t\t}\n\t};\n}\nfunction noEnumMember() {\n\treturn {\n\t\tkind: \"rejecting\",\n\t\tlabel: \"enum member\",\n\t\tmessage: \"Enum declares no members\",\n\t\tparse: (arg, ctx) => notOk([leafDiagnostic(ctx, arg, \"Enum declares no members\")])\n\t};\n}\nfunction enumMemberNames(ctx) {\n\tconst resolution = ctx.typeResolution;\n\tif (resolution?.kind !== \"block\" || resolution.symbol.keyword !== \"enum\") return void 0;\n\tconst block = resolution.symbol;\n\tconst names = [];\n\tconst seen = /* @__PURE__ */ new Set();\n\tfor (const entry of block.entries) {\n\t\tconst key = entry.key()?.name();\n\t\tif (key === void 0 || seen.has(key)) continue;\n\t\tseen.add(key);\n\t\tnames.push(key);\n\t}\n\treturn names;\n}\nfunction enumDefaultArms(members, enumName, isList) {\n\tconst [first, ...rest] = members;\n\tif (first === void 0) return [noEnumMember()];\n\tconst member = (name) => mapArg(identifier(name, { documentation: `The \\`${name}\\` member of enum \\`${enumName}\\`.` }), (parsed) => ({\n\t\tkind: \"member\",\n\t\tname: parsed\n\t}));\n\tif (isList) return [mapArg(list(oneOf(member(first), ...rest.map(member), nullLiteral())), (elements) => ({\n\t\tkind: \"member-list\",\n\t\telements\n\t}))];\n\treturn [member(first), ...rest.map(member)];\n}\n/** The spec of `@default` on a field or a type alias, offering the values its type takes. */\nfunction typeDefaultSpec(ctx) {\n\tconst members = enumMemberNames(ctx);\n\treturn typeAttribute(\"default\", {\n\t\tdocumentation: \"Supplies a default value when this field is omitted from a mutation.\",\n\t\tpositional: [{\n\t\t\tkey: \"value\",\n\t\t\ttype: defaultValueArm(members === void 0 ? scalarDefaultArms(ctx.list, receivingDataType(ctx), ctx.dataTypes, ctx.defaultFunctionRegistry) : enumDefaultArms(members, ctx.typeName, ctx.list), ctx.defaultFunctionRegistry, ctx.generatorFunctions, typeAttributeSubjectLabel(ctx.subject)),\n\t\t\tdocumentation: \"A literal, enum member, or registered default function compatible with this field.\"\n\t\t}]\n\t});\n}\nconst idFieldSpec = fieldAttribute(\"id\", {\n\tdocumentation: \"Makes this field the primary key of the table.\",\n\tnamed: { map: {\n\t\ttype: optional(str()),\n\t\tdocumentation: \"The database primary-key constraint name.\"\n\t} }\n});\nconst uniqueFieldSpec = fieldAttribute(\"unique\", {\n\tdocumentation: \"Requires values in this field to be unique.\",\n\tnamed: { map: {\n\t\ttype: optional(str()),\n\t\tdocumentation: \"The database unique-constraint name.\"\n\t} }\n});\nconst idModelSpec = modelAttribute(\"id\", {\n\tdocumentation: \"Declares a compound primary key for this table.\",\n\tpositional: [{\n\t\tkey: \"fields\",\n\t\ttype: list(fieldRef(), {\n\t\t\tallowEmpty: false,\n\t\t\tunique: true\n\t\t}),\n\t\tdocumentation: \"The ordered, nonempty list of distinct primary-key fields.\"\n\t}],\n\tnamed: { map: {\n\t\ttype: optional(str()),\n\t\tdocumentation: \"The database primary-key constraint name.\"\n\t} }\n});\nconst uniqueModelSpec = modelAttribute(\"unique\", {\n\tdocumentation: \"Requires the combination of these fields to be unique.\",\n\tpositional: [{\n\t\tkey: \"fields\",\n\t\ttype: list(fieldRef(), {\n\t\t\tallowEmpty: false,\n\t\t\tunique: true\n\t\t}),\n\t\tdocumentation: \"The ordered, nonempty list of distinct fields in the unique constraint.\"\n\t}],\n\tnamed: { map: {\n\t\ttype: optional(str()),\n\t\tdocumentation: \"The database unique-constraint name.\"\n\t} }\n});\nconst PSL_INDEX_FIELDS_XOR_EXPRESSION = \"PSL_INDEX_FIELDS_XOR_EXPRESSION\";\nconst PSL_INDEX_EXPRESSION_REQUIRES_NAME = \"PSL_INDEX_EXPRESSION_REQUIRES_NAME\";\nconst PSL_INDEX_NAME_XOR_MAP = \"PSL_INDEX_NAME_XOR_MAP\";\nfunction indexModelSpec(ctx) {\n\treturn modelAttribute(\"index\", {\n\t\tdocumentation: \"Declares a database index over fields or a SQL expression, optionally restricted by a predicate.\",\n\t\tpositional: [{\n\t\t\tkey: \"fields\",\n\t\t\ttype: optional(list(fieldRef(), {\n\t\t\t\tallowEmpty: false,\n\t\t\t\tunique: true\n\t\t\t})),\n\t\t\tdocumentation: \"The ordered list of distinct indexed fields. Mutually exclusive with `expression`.\"\n\t\t}],\n\t\tnamed: {\n\t\t\texpression: {\n\t\t\t\ttype: optional(dataTypeValue(SQL_EXPRESSION_DATA_TYPE_ID, ctx.dataTypes)),\n\t\t\t\tdocumentation: \"The SQL index expression. Requires `name` or `map` and cannot be combined with a fields list.\"\n\t\t\t},\n\t\t\twhere: {\n\t\t\t\ttype: optional(dataTypeValue(SQL_EXPRESSION_DATA_TYPE_ID, ctx.dataTypes)),\n\t\t\t\tdocumentation: \"The SQL predicate restricting rows included in a partial index.\"\n\t\t\t},\n\t\t\tunique: {\n\t\t\t\ttype: optional(bool()),\n\t\t\t\tdocumentation: \"Whether the index enforces uniqueness.\"\n\t\t\t},\n\t\t\tname: {\n\t\t\t\ttype: optional(str()),\n\t\t\t\tdocumentation: \"The index name. Mutually exclusive with `map`.\"\n\t\t\t},\n\t\t\tmap: {\n\t\t\t\ttype: optional(str()),\n\t\t\t\tdocumentation: \"The database index name. Mutually exclusive with `name`.\"\n\t\t\t},\n\t\t\ttype: {\n\t\t\t\ttype: optional(str()),\n\t\t\t\tdocumentation: \"The target-specific index access method.\"\n\t\t\t},\n\t\t\toptions: {\n\t\t\t\ttype: optional(record(str())),\n\t\t\t\tdocumentation: \"Target-specific index options. Requires an explicit `type`.\"\n\t\t\t}\n\t\t},\n\t\trefine: (value, ctx, attributeNode) => {\n\t\t\tconst diagnostics = [];\n\t\t\tif (value.fields === void 0 === (value.expression === void 0)) diagnostics.push(leafDiagnostic(ctx, attributeNode, \"`@@index` requires exactly one of a fields list or an `expression` argument\", PSL_INDEX_FIELDS_XOR_EXPRESSION));\n\t\t\tif (value.expression !== void 0 && value.name === void 0 && value.map === void 0) diagnostics.push(leafDiagnostic(ctx, attributeNode, \"`@@index` with an `expression` argument requires a `name` or `map` argument (a default name cannot be derived from an expression)\", PSL_INDEX_EXPRESSION_REQUIRES_NAME));\n\t\t\tif (value.name !== void 0 && value.map !== void 0) diagnostics.push(leafDiagnostic(ctx, attributeNode, \"`@@index` takes at most one of `name` and `map`\", PSL_INDEX_NAME_XOR_MAP));\n\t\t\tif (value.options !== void 0 && value.type === void 0) diagnostics.push(leafDiagnostic(ctx, attributeNode, \"`@@index` options argument requires a type argument\"));\n\t\t\treturn diagnostics;\n\t\t}\n\t});\n}\nconst PSL_CHECK_REQUIRES_NAME_OR_MAP = \"PSL_CHECK_REQUIRES_NAME_OR_MAP\";\nconst PSL_CHECK_NAME_XOR_MAP = \"PSL_CHECK_NAME_XOR_MAP\";\nconst PSL_CHECK_EXPRESSION_EMPTY = \"PSL_CHECK_EXPRESSION_EMPTY\";\n/**\n* A single-table-inheritance variant (`@@base` with no own `@@map`) shares\n* its base model's storage table and has no table of its own to declare a\n* check on — raised from {@link interpretPslDocumentToSqlContract}, not from\n* this spec's own `refine`, because the rule needs the model's `@@base`\n* declaration, which a single attribute's `refine` cannot see.\n*/\nconst PSL_CHECK_ON_STI_VARIANT = \"PSL_CHECK_ON_STI_VARIANT\";\nfunction checkModelSpec(ctx) {\n\treturn modelAttribute(\"check\", {\n\t\tdocumentation: \"Declares a named database CHECK constraint on this table.\",\n\t\tnamed: {\n\t\t\texpression: {\n\t\t\t\ttype: dataTypeValue(SQL_EXPRESSION_DATA_TYPE_ID, ctx.dataTypes),\n\t\t\t\tdocumentation: \"The nonempty SQL predicate checked for each row.\"\n\t\t\t},\n\t\t\tname: {\n\t\t\t\ttype: optional(str()),\n\t\t\t\tdocumentation: \"The constraint name. Exactly one of `name` and `map` is required.\"\n\t\t\t},\n\t\t\tmap: {\n\t\t\t\ttype: optional(str()),\n\t\t\t\tdocumentation: \"The database constraint name. Exactly one of `name` and `map` is required.\"\n\t\t\t}\n\t\t},\n\t\trefine: (value, ctx, attributeNode) => {\n\t\t\tconst diagnostics = [];\n\t\t\tif (sqlTextFromStored(value.expression.value.value).trim().length === 0) diagnostics.push(leafDiagnostic(ctx, attributeNode, \"`@@check` expression must not be empty — an empty predicate is not a constraint\", PSL_CHECK_EXPRESSION_EMPTY));\n\t\t\tif (value.name === void 0 && value.map === void 0) diagnostics.push(leafDiagnostic(ctx, attributeNode, \"`@@check` requires a `name` or `map` argument (a default name cannot be derived — a check has no column tuple to name itself after)\", PSL_CHECK_REQUIRES_NAME_OR_MAP));\n\t\t\tif (value.name !== void 0 && value.map !== void 0) diagnostics.push(leafDiagnostic(ctx, attributeNode, \"`@@check` takes at most one of `name` and `map`\", PSL_CHECK_NAME_XOR_MAP));\n\t\t\treturn diagnostics;\n\t\t}\n\t});\n}\nconst controlModelSpec = modelAttribute(\"control\", {\n\tdocumentation: \"Sets how schema management treats this model’s storage.\",\n\tpositional: [{\n\t\tkey: \"policy\",\n\t\tdocumentation: \"The storage control policy: `managed`, `tolerated`, `external`, or `observed`.\",\n\t\ttype: oneOf(identifier(\"managed\", { documentation: \"Verifies the declared shape strictly and allows migrations to create, alter, or drop the storage object.\" }), identifier(\"tolerated\", { documentation: \"Verifies declared columns while allowing extra columns. Migrations may create missing storage, but never alter or drop existing storage.\" }), identifier(\"external\", { documentation: \"Verifies declared storage without creating, altering, or dropping it.\" }), identifier(\"observed\", { documentation: \"Reports storage differences as warnings rather than verification failures and never emits migration operations.\" }))\n\t}]\n});\nconst discriminatorModelSpec = modelAttribute(\"discriminator\", {\n\tdocumentation: \"Selects the field that identifies inheritance variants of this model.\",\n\tpositional: [{\n\t\tkey: \"field\",\n\t\ttype: fieldRef(),\n\t\tdocumentation: \"The discriminator field on this model.\"\n\t}]\n});\nfunction baseModelSpec() {\n\treturn modelAttribute(\"base\", {\n\t\tdocumentation: \"Declares this model as a variant of a base model.\",\n\t\tpositional: [{\n\t\t\tkey: \"base\",\n\t\t\ttype: entityRef({ kind: \"model\" }),\n\t\t\tdocumentation: \"The base model to inherit from.\"\n\t\t}, {\n\t\t\tkey: \"value\",\n\t\t\ttype: writtenScalar(str()),\n\t\t\tdocumentation: \"The discriminator value identifying this variant, a value of the discriminator column's type.\"\n\t\t}]\n\t});\n}\nfunction relationAttributeSpan(ctx) {\n\tconst node = getAttribute(ctx.field.attributes, \"relation\")?.node;\n\tif (node !== void 0) return nodePslSpan(node.syntax, ctx.sources);\n\treturn ctx.field.span;\n}\nfunction relationInvariants(parsed, ctx) {\n\tif (parsed.fields !== void 0 !== (parsed.references !== void 0)) return [{\n\t\tcode: \"PSL_INVALID_ATTRIBUTE_SYNTAX\",\n\t\tmessage: `Relation field \"${ctx.selfModel.name}.${ctx.field.name}\" requires fields and references arguments`,\n\t\t...diagnosticSource(ctx.sources, ctx.field.node.syntax).at(relationAttributeSpan(ctx))\n\t}];\n\treturn [];\n}\nconst referentialActionArgument = () => oneOf(identifier(\"NoAction\", { documentation: \"Rejects a change that would violate the foreign key when the constraint is checked; checking may be deferred when supported and configured.\" }), identifier(\"Restrict\", { documentation: \"Rejects deleting or updating a referenced row while referencing rows remain, without deferring the check.\" }), identifier(\"Cascade\", { documentation: \"Propagates deletion or key updates of a referenced row to its referencing rows.\" }), identifier(\"SetNull\", { documentation: \"Sets referencing foreign-key fields to null when the referenced row is deleted or its key changes. The fields must allow null.\" }), identifier(\"SetDefault\", { documentation: \"Sets referencing foreign-key fields to their defaults when the referenced row is deleted or its key changes. The resulting values must satisfy the foreign key.\" }));\nconst relationFieldSpec = fieldAttribute(\"relation\", {\n\tdocumentation: \"Defines the relation name, foreign-key fields, and referential actions for this relation.\",\n\tpositional: [{\n\t\tkey: \"name\",\n\t\ttype: optional(str()),\n\t\tdocumentation: \"The relation name used to pair both sides. May also be supplied by name.\"\n\t}],\n\tnamed: {\n\t\tname: {\n\t\t\ttype: optional(str()),\n\t\t\tdocumentation: \"The relation name used to pair both sides. Cannot also be supplied positionally.\"\n\t\t},\n\t\tfields: {\n\t\t\ttype: optional(list(fieldRef(), {\n\t\t\t\tallowEmpty: false,\n\t\t\t\tunique: true\n\t\t\t})),\n\t\t\tdocumentation: \"The ordered local foreign-key fields. Must be supplied together with `references`.\"\n\t\t},\n\t\treferences: {\n\t\t\ttype: optional(list(referencedFieldRef(), {\n\t\t\t\tallowEmpty: false,\n\t\t\t\tunique: true\n\t\t\t})),\n\t\t\tdocumentation: \"The corresponding fields on the referenced model. Must be supplied together with `fields`.\"\n\t\t},\n\t\tmap: {\n\t\t\ttype: optional(str()),\n\t\t\tdocumentation: \"The database foreign-key constraint name.\"\n\t\t},\n\t\tonDelete: {\n\t\t\ttype: optional(referentialActionArgument()),\n\t\t\tdocumentation: \"The referential action when a referenced row is deleted.\"\n\t\t},\n\t\tonUpdate: {\n\t\t\ttype: optional(referentialActionArgument()),\n\t\t\tdocumentation: \"The referential action when a referenced key is updated.\"\n\t\t},\n\t\tindex: {\n\t\t\ttype: optional(oneOf(bool(), str())),\n\t\t\tdocumentation: \"Whether to create an index for the relation’s foreign-key fields (`false` for none), or the name of an index, unique constraint or primary key on this model to use instead. The name is the `name` or `map` it was given, or an index’s stored name, and its first columns must be the foreign-key fields in order.\"\n\t\t}\n\t},\n\trefine: relationInvariants\n});\nfunction modelSpecContext(input) {\n\treturn {\n\t\tsymbols: input.symbols,\n\t\tmodel: input.model,\n\t\tdefaultFunctionRegistry: input.defaultFunctionRegistry,\n\t\tgeneratorFunctions: input.generatorFunctions,\n\t\tdataTypes: input.dataTypes\n\t};\n}\nfunction fieldSpecContext(input) {\n\tconst node = typeReferenceNode(input.field);\n\tconst typeResolution = node === void 0 ? void 0 : input.binder.symbolForNode(node);\n\treturn {\n\t\tsymbols: input.symbols,\n\t\tmodel: input.model,\n\t\tfield: input.field,\n\t\ttypeResolution,\n\t\ttypeConstructor: contributedTypeOf(typeResolution, input.binder),\n\t\tdefaultFunctionRegistry: input.defaultFunctionRegistry,\n\t\tgeneratorFunctions: input.generatorFunctions,\n\t\tdataTypes: input.dataTypes\n\t};\n}\n/** Every entry is a factory over the spec context, whether or not its spec reads it. ADR 249. */\nconst sqlAttributeSpecs = {\n\tmodel: {\n\t\tmap: (_ctx) => mapModelSpec,\n\t\tid: (_ctx) => idModelSpec,\n\t\tunique: (_ctx) => uniqueModelSpec,\n\t\tindex: indexModelSpec,\n\t\tcheck: checkModelSpec,\n\t\tcontrol: (_ctx) => controlModelSpec,\n\t\tdiscriminator: (_ctx) => discriminatorModelSpec,\n\t\tbase: (_ctx) => baseModelSpec()\n\t},\n\tfield: {\n\t\tmap: (_ctx) => mapFieldSpec,\n\t\tid: (_ctx) => idFieldSpec,\n\t\tunique: (_ctx) => uniqueFieldSpec,\n\t\trelation: (_ctx) => relationFieldSpec,\n\t\tdefault: (ctx) => typeDefaultSpec(typeAttributeSpecContextOfField(ctx)),\n\t\tonCreate: generatorAttributeSpec(\"onCreate\"),\n\t\tonUpdate: generatorAttributeSpec(\"onUpdate\")\n\t}\n};\n//#endregion\n//#region src/value-object-default.ts\n/**\n* The value-object column's default as the document it holds, and in the form the column stores. A\n* column may store the document's JSON text, as `sqlite/json@1` does, so its codec reads the stored\n* value into the document the composite type describes. A list literal on a list of value objects\n* is read element by element; the column stores the list's document in its own form.\n*/\nfunction valueObjectDefaultDocument(input) {\n\tconst codec = codecForRef(input.codecLookup, { codecId: input.codecId });\n\tif (codec === void 0) return {\n\t\tdocument: input.stored,\n\t\tstored: input.stored\n\t};\n\tif (input.elementwise && Array.isArray(input.stored)) {\n\t\tconst document = input.stored.map((element) => readDocument(codec, element));\n\t\treturn {\n\t\t\tdocument,\n\t\t\tstored: codec.dataType.toContract(codec.toDataTypeValue(document))\n\t\t};\n\t}\n\treturn {\n\t\tdocument: readDocument(codec, input.stored),\n\t\tstored: input.stored\n\t};\n}\n/** The column's codec has already read `stored` while the default was lowered, so it reads again. */\nfunction readDocument(codec, stored) {\n\tif (stored === null) return null;\n\treturn blindCast(readContractValue(codec, stored, void 0));\n}\n/** Each way the default does not match the composite type. */\nfunction valueObjectDefaultMismatches(input) {\n\tconst mismatches = [];\n\tconst shape = (path, message) => mismatches.push({\n\t\tcode: PSL_VALUE_TYPE_INCOMPATIBLE,\n\t\tmessage: `Field \"${path}\": ${message}`\n\t});\n\tconst checkObject = (value, valueObjectName, path) => {\n\t\tconst valueObject = input.types.nodes.get(valueObjectName);\n\t\tconst declared = input.types.declaredMembers.get(valueObjectName);\n\t\tif (valueObject === void 0 || declared === void 0) throw new InternalError(`Field \"${path}\" is typed by the value object \"${valueObjectName}\", which the contract does not declare.`);\n\t\tif (!isJsonObject(value)) {\n\t\t\tshape(path, `a value of \"${valueObjectName}\" is a JSON object, not ${jsonKind(value)}`);\n\t\t\treturn;\n\t\t}\n\t\tfor (const key of Object.keys(value)) if (!declared.has(key)) shape(path, `\"${key}\" is not a member of \"${valueObjectName}\"`);\n\t\tfor (const member of valueObject.fields) checkMember(value[member.fieldName], member, `${path}.${member.fieldName}`);\n\t};\n\tconst checkMember = (value, member, path) => {\n\t\tif (value === void 0) {\n\t\t\tif (!member.nullable) shape(path, \"the member is required, and the default has no value for it\");\n\t\t\treturn;\n\t\t}\n\t\tif (value === null && member.nullable) return;\n\t\tif (member.many === true) {\n\t\t\tif (!Array.isArray(value)) {\n\t\t\t\tshape(path, `the member is a list, so its value is a JSON array, not ${jsonKind(value)}`);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tfor (const [index, element] of value.entries()) {\n\t\t\t\tif (element === null && member.elementNullable) continue;\n\t\t\t\tcheckOne(element, member, `${path}[${index}]`, \"an element of the member is not null\");\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tcheckOne(value, member, path, \"the member is not optional, so its value is not null\");\n\t};\n\tconst checkOne = (value, member, path, notNull) => {\n\t\tif (isValueObjectMember(member)) {\n\t\t\tif (value === null) shape(path, notNull);\n\t\t\telse checkObject(value, member.valueObjectName, path);\n\t\t\treturn;\n\t\t}\n\t\tconst reading = readStoredValue({\n\t\t\tvalue,\n\t\t\tcolumn: member.descriptor,\n\t\t\tlookups: input.lookups,\n\t\t\tfieldPath: path\n\t\t});\n\t\tif (!reading.ok) {\n\t\t\tif (value === null) shape(path, notNull);\n\t\t\telse mismatches.push({\n\t\t\t\tcode: reading.code,\n\t\t\t\tmessage: reading.message\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tconst enumMismatch = enumValueMismatch(value, member, path, input.lookups.codecLookup);\n\t\tif (enumMismatch !== void 0) mismatches.push(enumMismatch);\n\t};\n\tif (input.value === null) {\n\t\tif (input.nullable) return mismatches;\n\t\tshape(input.fieldPath, input.list ? \"the default of a list of value objects is a JSON array, not null\" : \"the default of a value object is a JSON object, not null\");\n\t\treturn mismatches;\n\t}\n\tif (input.list) {\n\t\tif (!Array.isArray(input.value)) {\n\t\t\tshape(input.fieldPath, `the default of a list of value objects is a JSON array, not ${jsonKind(input.value)}`);\n\t\t\treturn mismatches;\n\t\t}\n\t\tfor (const [index, element] of input.value.entries()) {\n\t\t\tif (element === null && input.elementNullable) continue;\n\t\t\tcheckObject(element, input.valueObjectName, `${input.fieldPath}[${index}]`);\n\t\t}\n\t\treturn mismatches;\n\t}\n\tif (!isJsonObject(input.value)) {\n\t\tshape(input.fieldPath, `the default of a value object is a JSON object, not ${jsonKind(input.value)}`);\n\t\treturn mismatches;\n\t}\n\tcheckObject(input.value, input.valueObjectName, input.fieldPath);\n\treturn mismatches;\n}\n/**\n* A member typed by an enum takes only the enum's values, in the form its codec stores them, as a model field of that enum takes only its members.\n*/\nfunction enumValueMismatch(value, member, path, codecLookup) {\n\tconst handle = member.enumTypeHandle;\n\tif (handle === void 0) return void 0;\n\tconst codec = codecLookup.get(handle.codecId);\n\tconst stored = handle.values.map((enumValue) => codec === void 0 ? enumValue : codec.dataType.toContract(codec.toDataTypeValue(enumValue)));\n\tif (stored.some((storedValue) => storedValue === value)) return void 0;\n\treturn {\n\t\tcode: PSL_INVALID_DEFAULT_LITERAL,\n\t\tmessage: `Field \"${path}\": Expected one of: ${stored.map((storedValue) => JSON.stringify(storedValue)).join(\" | \")}`\n\t};\n}\nfunction isJsonObject(value) {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\nfunction jsonKind(value) {\n\tif (value === null) return \"null\";\n\tif (Array.isArray(value)) return \"a JSON array\";\n\tif (typeof value === \"object\") return \"a JSON object\";\n\treturn `a JSON ${typeof value}`;\n}\n//#endregion\n//#region src/psl-column-resolution.ts\nfunction argumentSpan(call, descriptors, index) {\n\tif (index === void 0) return call.span;\n\tconst name = descriptors?.[index]?.name;\n\tconst named = call.args.find((arg) => arg.kind === \"named\" && arg.name === name);\n\tconst positional = call.args.filter((arg) => arg.kind === \"positional\")[index];\n\treturn (named ?? positional)?.span ?? call.span;\n}\n/**\n* Checks the type parameters a constructor produced against its codec's parameter schema,\n* reporting a failure at the argument the failing parameter came from. Returns whether they passed.\n*/\nfunction checkPslTypeParams(input) {\n\tconst helperPath = input.call.path.join(\".\");\n\ttry {\n\t\tvalidateAuthoringTypeParams(helperPath, input.template, input.typeParams, input.codecLookup.descriptorFor(input.template.codecId)?.paramsSchema);\n\t\treturn true;\n\t} catch (error) {\n\t\tconst message = error instanceof Error ? error.message : String(error);\n\t\tinput.diagnostics.push({\n\t\t\tcode: \"PSL_INVALID_ATTRIBUTE_ARGUMENT\",\n\t\t\tmessage: `${input.subject} ${message}`,\n\t\t\t...input.source.at(argumentSpan(input.call, input.args, argumentIndexOf(error)))\n\t\t});\n\t\treturn false;\n\t}\n}\nfunction argumentIndexOf(error) {\n\tif (typeof error !== \"object\" || error === null || !(\"details\" in error)) return void 0;\n\tconst { details } = error;\n\tif (typeof details !== \"object\" || details === null || !(\"argumentIndex\" in details)) return;\n\treturn typeof details.argumentIndex === \"number\" ? details.argumentIndex : void 0;\n}\n/**\n* Walks `authoringContributions.entityTypes` segment-by-segment and returns\n* the entity type descriptor at the resolved path, or `undefined` if no\n* descriptor is registered.\n*\n* Used by the PSL interpreter to dispatch declarative entity-shaped\n* declarations (`enum`, future `namespace { … }`, …) through the\n* pack entity-type mechanism — the descriptor's `factory` (or\n* `template`) materialises the IR-class instance without the\n* interpreter knowing target-specific construction.\n*/\nfunction getAuthoringEntity(contributions, path) {\n\tlet current = contributions?.entityTypes;\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 && isAuthoringEntityTypeDescriptor(current) ? current : void 0;\n}\nfunction instantiatePslTypeConstructor(input) {\n\tconst helperPath = input.call.path.join(\".\");\n\tconst args = mapPslHelperArgs({\n\t\targs: input.call.args,\n\t\tdescriptors: input.descriptor.args ?? [],\n\t\thelperLabel: `constructor \"${helperPath}\"`,\n\t\tspan: input.call.span,\n\t\tdiagnostics: input.diagnostics,\n\t\tsource: input.source,\n\t\tentityLabel: input.entityLabel,\n\t\tdataTypes: input.dataTypes\n\t});\n\tif (!args) return;\n\tlet output;\n\ttry {\n\t\tvalidateAuthoringHelperArguments(helperPath, input.descriptor.args, args);\n\t\toutput = instantiateAuthoringTypeConstructor(input.descriptor, args);\n\t} catch (error) {\n\t\tif (isInternalError(error)) throw error;\n\t\tconst message = error instanceof Error ? error.message : String(error);\n\t\tinput.diagnostics.push({\n\t\t\tcode: \"PSL_INVALID_ATTRIBUTE_ARGUMENT\",\n\t\t\tmessage: `${input.entityLabel} constructor \"${helperPath}\" ${message}`,\n\t\t\t...input.source.at(input.call.span)\n\t\t});\n\t\treturn;\n\t}\n\treturn checkPslTypeParams({\n\t\tcall: input.call,\n\t\tsubject: `${input.entityLabel} constructor \"${helperPath}\"`,\n\t\targs: input.descriptor.args,\n\t\ttemplate: input.descriptor.output,\n\t\ttypeParams: output.typeParams,\n\t\tcodecLookup: input.codecLookup,\n\t\tdiagnostics: input.diagnostics,\n\t\tsource: input.source\n\t}) ? output : void 0;\n}\n/**\n* Structural check for a codec descriptor exposing the authoring-time\n* `columnFromEntity` hook a type constructor's `entityRefArg` resolves\n* through (e.g. the `pg/enum@1` codec descriptor). No casts.\n*/\nfunction hasColumnFromEntityHook(descriptor) {\n\treturn \"columnFromEntity\" in descriptor && typeof descriptor.columnFromEntity === \"function\";\n}\n/**\n* Resolves a type-constructor call whose descriptor declares an\n* `entityRefArg` (e.g. `pg.enum(AalLevel)`): extracts the call's sole\n* positional-argument ref string, resolves it against the field's\n* namespace's already-lowered extension entities (keyed by the declared\n* `entityRefArg.entityKind`, then block name), and converts the resolved\n* entity to column params via the `columnFromEntity` authoring hook on the\n* codec descriptor registered for `descriptor.output.codecId`. The\n* `typeParams.typeName` `columnFromEntity` returns is bare — schema\n* qualification (e.g. `auth.aal_level`) is a target concern, applied later\n* when the target builds the field's namespace. A `valueSet` ref is\n* attached when the same namespace derived a value-set under the same block\n* name (the generic `deriveValueSet` mechanism), scoped to the field's own\n* namespace.\n*/\nfunction resolveEntityRefTypeConstructorCall(input) {\n\tconst entityRefArg = input.descriptor.entityRefArg;\n\tif (entityRefArg === void 0) throw new InternalError(\"resolveEntityRefTypeConstructorCall called with a descriptor that does not declare an entityRefArg. This is an interpreter bug.\");\n\tconst helperPath = input.call.path.join(\".\");\n\tconst positionalArgs = input.call.args.filter((arg) => arg.kind === \"positional\");\n\tconst argument = positionalArgs[entityRefArg.index];\n\tconst ref = argument?.value;\n\tconst node = argument?.expression?.syntax;\n\tconst resolution = node === void 0 ? void 0 : input.binder?.symbolForNode(node);\n\tif (input.call.args.length !== 1 || positionalArgs.length !== 1 || ref === void 0 || input.binder !== void 0 && resolution === void 0) {\n\t\tinput.diagnostics.push({\n\t\t\tcode: \"PSL_INVALID_ATTRIBUTE_ARGUMENT\",\n\t\t\tmessage: `${input.entityLabel} type constructor \"${helperPath}\" expects exactly one positional argument naming the referenced entity`,\n\t\t\t...input.source.at(input.call.span)\n\t\t});\n\t\treturn NOT_RESOLVED;\n\t}\n\tlet entityName = ref;\n\tlet entityNamespaceId = input.namespaceId;\n\tconst reportUnknownRef = () => {\n\t\tinput.diagnostics.push({\n\t\t\tcode: \"PSL_UNKNOWN_ENTITY_REF\",\n\t\t\tmessage: `${input.entityLabel} type constructor \"${helperPath}(${ref})\" does not resolve — no entity named \"${ref}\" was found in namespace \"${entityNamespaceId ?? \"(unspecified)\"}\"`,\n\t\t\t...input.source.at(input.call.span)\n\t\t});\n\t\treturn NOT_RESOLVED;\n\t};\n\tif (resolution !== void 0) {\n\t\tif (resolution.kind === \"unresolved\") return NOT_RESOLVED;\n\t\tif (resolution.kind !== \"block\") return reportUnknownRef();\n\t\tentityName = resolution.symbol.name;\n\t\tentityNamespaceId = resolution.namespace.id;\n\t}\n\tconst entities = entityNamespaceId === void 0 ? void 0 : input.namespaceExtensionEntities?.get(entityNamespaceId);\n\tconst entity = entities?.[entityRefArg.entityKind]?.[entityName];\n\tif (entity === void 0) return reportUnknownRef();\n\tconst codecId = input.descriptor.output.codecId;\n\tconst codecDescriptor = input.codecLookup.descriptorFor(codecId);\n\tif (codecDescriptor === void 0 || !hasColumnFromEntityHook(codecDescriptor)) throw contractError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Type constructor \"${helperPath}\" registers codecId \"${codecId}\" with an entity-ref argument, but its codec descriptor has no \"columnFromEntity\" authoring hook. This is a contributor bug in the pack registering \"${helperPath}\", not a user-schema error.`, { meta: {\n\t\thelperPath,\n\t\tcodecId\n\t} });\n\tconst resolved = codecDescriptor.columnFromEntity(entity);\n\tif (resolved === void 0) return reportUnknownRef();\n\tconst valueSet = entities?.[\"valueSet\"]?.[entityName] !== void 0 && entityNamespaceId !== void 0 ? {\n\t\tplane: \"storage\",\n\t\tentityKind: \"valueSet\",\n\t\tnamespaceId: entityNamespaceId,\n\t\tentityName\n\t} : void 0;\n\treturn {\n\t\tok: true,\n\t\tdescriptor: {\n\t\t\tcodecId,\n\t\t\t...resolved.typeParams !== void 0 ? { typeParams: resolved.typeParams } : {},\n\t\t\t...valueSet !== void 0 ? { valueSet } : {}\n\t\t}\n\t};\n}\nconst NOT_RESOLVED = { ok: false };\nfunction instantiateFieldTypeConstructor(input) {\n\tif (input.descriptor.entityRefArg !== void 0) return resolveEntityRefTypeConstructorCall({\n\t\tcall: input.call,\n\t\tdescriptor: input.descriptor,\n\t\tnamespaceId: input.namespaceId,\n\t\tnamespaceExtensionEntities: input.namespaceExtensionEntities,\n\t\tbinder: input.binder,\n\t\tcodecLookup: input.codecLookup,\n\t\tdiagnostics: input.diagnostics,\n\t\tsource: input.source,\n\t\tentityLabel: input.entityLabel\n\t});\n\tconst instantiated = instantiatePslTypeConstructor({\n\t\tcall: input.call,\n\t\tdescriptor: input.descriptor,\n\t\tcodecLookup: input.codecLookup,\n\t\tdiagnostics: input.diagnostics,\n\t\tsource: input.source,\n\t\tentityLabel: input.entityLabel,\n\t\tdataTypes: input.dataTypes\n\t});\n\treturn instantiated === void 0 ? NOT_RESOLVED : {\n\t\tok: true,\n\t\tdescriptor: instantiated\n\t};\n}\nfunction resolvedKindLabel(resolution) {\n\tswitch (resolution.kind) {\n\t\tcase \"compositeType\": return \"composite type\";\n\t\tcase \"namedType\": return \"type alias\";\n\t\tcase \"block\": return resolution.symbol.keyword;\n\t\tcase \"crossSpace\": return \"type of another contract space\";\n\t\tdefault: return resolution.kind;\n\t}\n}\nfunction resolveFieldTypeDescriptor(input) {\n\tconst { field, resolution, entityLabel, diagnostics } = input;\n\tif (field.malformedType || resolution === void 0) return NOT_RESOLVED;\n\tconst source = diagnosticSource(input.sources, field.node.syntax);\n\tconst unsupported = (message) => {\n\t\tdiagnostics.push({\n\t\t\tcode: \"PSL_UNSUPPORTED_FIELD_TYPE\",\n\t\t\tmessage,\n\t\t\t...source.at(field.span)\n\t\t});\n\t\treturn NOT_RESOLVED;\n\t};\n\tconst call = field.typeConstructor;\n\tswitch (resolution.kind) {\n\t\tcase \"unresolved\":\n\t\tcase \"namespace\":\n\t\tcase \"contributedNamespace\":\n\t\tcase \"mixin\": return NOT_RESOLVED;\n\t\tcase \"contributedType\": {\n\t\t\tconst { descriptor, path } = resolution.symbol;\n\t\t\tconst written = path.join(\".\");\n\t\t\tif (descriptor.kind === \"typeAlias\") {\n\t\t\t\tif (call !== void 0) {\n\t\t\t\t\tdiagnostics.push({\n\t\t\t\t\t\tcode: \"PSL_INVALID_ATTRIBUTE_ARGUMENT\",\n\t\t\t\t\t\tmessage: `${written} is a type alias and takes no arguments.`,\n\t\t\t\t\t\t...source.at(call.span)\n\t\t\t\t\t});\n\t\t\t\t\treturn NOT_RESOLVED;\n\t\t\t\t}\n\t\t\t\treturn {\n\t\t\t\t\tok: true,\n\t\t\t\t\tdescriptor: instantiateAuthoringTypeAlias(descriptor).type\n\t\t\t\t};\n\t\t\t}\n\t\t\tif (call !== void 0) return instantiateFieldTypeConstructor({\n\t\t\t\t...input,\n\t\t\t\tcall,\n\t\t\t\tdescriptor,\n\t\t\t\tsource\n\t\t\t});\n\t\t\tif (!isBareTypeConstructor(descriptor)) {\n\t\t\t\treportTypeConstructorNotCalled({\n\t\t\t\t\tentityLabel,\n\t\t\t\t\tpath: written,\n\t\t\t\t\tdescriptor,\n\t\t\t\t\tsource,\n\t\t\t\t\tspan: field.span,\n\t\t\t\t\tdiagnostics\n\t\t\t\t});\n\t\t\t\treturn NOT_RESOLVED;\n\t\t\t}\n\t\t\treturn {\n\t\t\t\tok: true,\n\t\t\t\tdescriptor: instantiateAuthoringTypeConstructor(descriptor, [])\n\t\t\t};\n\t\t}\n\t\tcase \"field\":\n\t\tcase \"attribute\":\n\t\tcase \"parameter\":\n\t\tcase \"function\":\n\t\tcase \"constant\": throw new InternalError(`The type of ${entityLabel} resolved to a ${resolution.kind}; a type reference never names one. This is a binder bug.`);\n\t}\n\tif (call !== void 0) return unsupported(`${entityLabel} calls \"${call.path.join(\".\")}\", which is a ${resolvedKindLabel(resolution)}, not a type constructor. Remove the arguments.`);\n\tswitch (resolution.kind) {\n\t\tcase \"namedType\": {\n\t\t\tconst alias = input.typeAliases.get(resolution.symbol);\n\t\t\treturn alias === void 0 ? NOT_RESOLVED : {\n\t\t\t\tok: true,\n\t\t\t\tdescriptor: alias.descriptor\n\t\t\t};\n\t\t}\n\t\tcase \"block\": {\n\t\t\tif (resolution.symbol.keyword !== \"enum\") return unsupported(`${entityLabel} is typed by the ${resolution.symbol.keyword} \"${resolution.symbol.name}\", which is not a column type.`);\n\t\t\tconst descriptor = input.enumTypeDescriptors.get(resolution.symbol);\n\t\t\treturn descriptor === void 0 ? NOT_RESOLVED : {\n\t\t\t\tok: true,\n\t\t\t\tdescriptor\n\t\t\t};\n\t\t}\n\t\tcase \"model\":\n\t\tcase \"compositeType\": return unsupported(`${entityLabel} is typed by the ${resolvedKindLabel(resolution)} \"${resolution.symbol.name}\", which is not a column type.`);\n\t\tcase \"crossSpace\": return unsupported(`${entityLabel} type \"${field.typeName}\" is a type of contract space \"${field.typeContractSpaceId}\"; only a relation field can name a type of another contract space.`);\n\t}\n}\nconst PSL_INVALID_DEFAULT_SQL = \"PSL_INVALID_DEFAULT_SQL\";\nconst TAGGED_LITERAL_CANONICALIZATION_CODES = {\n\tnul: \"PSL_TAGGED_LITERAL_NUL\",\n\t\"too-large\": \"PSL_TAGGED_LITERAL_TOO_LARGE\"\n};\n/**\n* Refuses a `null` element in the list default of a field whose list elements are not nullable,\n* at the first `null`. Returns whether it refused.\n*/\nfunction rejectStrictListNullDefault(input) {\n\tif (input.owner.elementOptional) return false;\n\tconst nullElement = input.elements.find(isParsedNullLiteral);\n\tif (nullElement === void 0) return false;\n\tinput.diagnostics.push({\n\t\tcode: \"PSL_INVALID_DEFAULT_APPLICABILITY\",\n\t\tmessage: `${typeAttributeSubjectLabel(input.owner.specContext.subject)} has strict list elements and cannot use null in a literal list default. Make the element type nullable or remove null from the default.`,\n\t\t...input.source.at(nullElement.span)\n\t});\n\treturn true;\n}\nfunction isParsedNullLiteral(element) {\n\treturn element.kind === \"null\";\n}\nfunction fieldAttributeOwner(input) {\n\tconst { field, model } = input;\n\treturn {\n\t\tattributes: field.attributes,\n\t\toptional: field.optional,\n\t\tlist: field.list,\n\t\telementOptional: field.elementOptional,\n\t\tspecContext: typeAttributeSpecContextOfField(fieldSpecContext({\n\t\t\tsymbols: input.symbolTable,\n\t\t\tmodel,\n\t\t\tfield,\n\t\t\tbinder: input.binder,\n\t\t\tdefaultFunctionRegistry: input.defaultFunctionRegistry,\n\t\t\tgeneratorFunctions: input.generatorFunctions,\n\t\t\tdataTypes: input.dataTypes\n\t\t})),\n\t\tloweringNames: {\n\t\t\tmodelName: model.name,\n\t\t\tfieldName: field.name\n\t\t}\n\t};\n}\nfunction lowerDefaultForField(input) {\n\treturn lowerTypeDefault({\n\t\t...input,\n\t\towner: fieldAttributeOwner(input)\n\t});\n}\n/** The default a field's or type alias's `@default(...)` lowers to for its column. */\nfunction lowerTypeDefault(input) {\n\tconst node = getAttribute(input.owner.attributes, \"default\")?.node;\n\tif (node === void 0) return {};\n\tconst source = diagnosticSource(input.sources, node.syntax);\n\tconst subject = typeAttributeSubjectLabel(input.owner.specContext.subject);\n\tconst interpreted = interpretTypeAttribute({\n\t\tsymbols: input.symbolTable,\n\t\tnode,\n\t\tspec: typeDefaultSpec(input.owner.specContext),\n\t\tsources: input.sources,\n\t\tbinder: input.binder,\n\t\tdiagnostics: input.diagnostics\n\t});\n\tif (interpreted === void 0) return {};\n\tconst value = interpreted.value;\n\tconst attributeSpan = nodePslSpan(node.syntax, input.sources);\n\tif (value.kind === \"null\") {\n\t\tif (!input.owner.optional) {\n\t\t\tinput.diagnostics.push({\n\t\t\t\tcode: \"PSL_INVALID_DEFAULT_APPLICABILITY\",\n\t\t\t\tmessage: `${subject} is non-nullable and cannot use null as its literal default. Make the field nullable or use a non-null default.`,\n\t\t\t\t...source.at()\n\t\t\t});\n\t\t\treturn {};\n\t\t}\n\t\treturn { defaultValue: {\n\t\t\tkind: \"literal\",\n\t\t\tvalue: null,\n\t\t\tinStoredForm: true\n\t\t} };\n\t}\n\tif (value.kind === \"list\" && rejectStrictListNullDefault({\n\t\t...input,\n\t\telements: value.elements,\n\t\tsource\n\t})) return {};\n\tconst readsListElements = (written) => input.isListColumn || input.owner.list && written.kind === \"list\";\n\tconst readAsLiteral = (written, spans, sourceElementIndexes) => {\n\t\tconst lowered = lowerDataTypeDefault({\n\t\t\twritten,\n\t\t\tspans,\n\t\t\tsourceElementIndexes,\n\t\t\tisList: readsListElements(written),\n\t\t\tcolumn: {\n\t\t\t\tcodecId: input.columnDescriptor.codecId,\n\t\t\t\ttypeParams: input.columnTypeParams\n\t\t\t},\n\t\t\tcodecLookup: input.codecLookup,\n\t\t\tdataTypes: input.dataTypes,\n\t\t\tsubject\n\t\t});\n\t\tif (!lowered.ok) {\n\t\t\tinput.diagnostics.push({\n\t\t\t\tcode: lowered.code,\n\t\t\t\tmessage: lowered.message,\n\t\t\t\t...source.at(lowered.span)\n\t\t\t});\n\t\t\treturn {};\n\t\t}\n\t\tlet restoredValue = lowered.value;\n\t\tif (value.kind === \"list\" && value.elements.some(isParsedNullLiteral) && Array.isArray(lowered.value)) {\n\t\t\tlet index = 0;\n\t\t\tconst nonNullValues = lowered.value;\n\t\t\trestoredValue = value.elements.map((element) => element.kind === \"null\" ? null : nonNullValues[index++] ?? null);\n\t\t}\n\t\tif (input.valueObjectDefault !== void 0) {\n\t\t\tconst { document, stored } = valueObjectDefaultDocument({\n\t\t\t\tstored: restoredValue,\n\t\t\t\telementwise: readsListElements(written) && !input.isListColumn,\n\t\t\t\tcodecId: input.columnDescriptor.codecId,\n\t\t\t\tcodecLookup: input.codecLookup\n\t\t\t});\n\t\t\tconst mismatches = valueObjectDefaultMismatches({\n\t\t\t\tfieldPath: input.owner.specContext.subject.name,\n\t\t\t\tvalue: document,\n\t\t\t\tlist: input.owner.list,\n\t\t\t\tnullable: input.owner.optional,\n\t\t\t\telementNullable: input.owner.elementOptional,\n\t\t\t\t...input.valueObjectDefault,\n\t\t\t\tlookups: {\n\t\t\t\t\tcodecLookup: input.codecLookup,\n\t\t\t\t\tdataTypeLookup: input.dataTypes.lookup\n\t\t\t\t}\n\t\t\t});\n\t\t\tfor (const { code, message } of mismatches) input.diagnostics.push({\n\t\t\t\tcode,\n\t\t\t\tmessage,\n\t\t\t\t...source.at()\n\t\t\t});\n\t\t\tif (mismatches.length > 0) return {};\n\t\t\treturn { defaultValue: {\n\t\t\t\tkind: \"literal\",\n\t\t\t\tvalue: stored,\n\t\t\t\tinStoredForm: true\n\t\t\t} };\n\t\t}\n\t\treturn { defaultValue: {\n\t\t\tkind: \"literal\",\n\t\t\tvalue: restoredValue,\n\t\t\tinStoredForm: true\n\t\t} };\n\t};\n\tconst canonicalized = (scalar) => {\n\t\tif (scalar.written !== void 0) return scalar.written;\n\t\tinput.diagnostics.push({\n\t\t\tcode: TAGGED_LITERAL_CANONICALIZATION_CODES[scalar.reason],\n\t\t\tmessage: describeTaggedLiteralFailure(scalar.reason),\n\t\t\t...source.at(scalar.span)\n\t\t});\n\t};\n\tconst sqlExpressionDefault = (text, span) => {\n\t\tconst reserved = reservedSqlDefaultText(text);\n\t\tconst refusal = reserved === void 0 ? checkSqlDefaultText(text) : `Write @default(${reserved}()) instead of ${SQL_EXPRESSION_TAG}\\`${reserved}()\\`; ${reserved}() is a Prisma default function, not raw SQL.`;\n\t\tif (refusal !== void 0) {\n\t\t\tinput.diagnostics.push({\n\t\t\t\tcode: PSL_INVALID_DEFAULT_SQL,\n\t\t\t\tmessage: refusal,\n\t\t\t\t...source.at(span)\n\t\t\t});\n\t\t\treturn {};\n\t\t}\n\t\treturn { defaultValue: {\n\t\t\tkind: \"function\",\n\t\t\texpression: text\n\t\t} };\n\t};\n\tif (value.kind === \"member\" || value.kind === \"member-list\") return {};\n\tif (input.columnDescriptor.valueSet !== void 0) {\n\t\tconst memberName = (element) => element.kind === \"scalar\" && element.written?.kind === \"string\" ? element.written.text : void 0;\n\t\tif (value.kind === \"scalar\") {\n\t\t\tconst member = memberName(value);\n\t\t\tif (member !== void 0) return { defaultValue: {\n\t\t\t\tkind: \"literal\",\n\t\t\t\tvalue: member\n\t\t\t} };\n\t\t}\n\t\tif (value.kind === \"list\") {\n\t\t\tconst members = value.elements.map((element) => element.kind === \"null\" ? null : memberName(element));\n\t\t\tif (members.every((member) => member !== void 0)) return { defaultValue: {\n\t\t\t\tkind: \"literal\",\n\t\t\t\tvalue: members\n\t\t\t} };\n\t\t}\n\t}\n\tif (value.kind === \"list\") {\n\t\tconst elements = [];\n\t\tconst sourceElementIndexes = [];\n\t\tfor (const [sourceIndex, element] of value.elements.entries()) {\n\t\t\tif (element.kind === \"null\") continue;\n\t\t\tconst written = canonicalized(element);\n\t\t\tif (written === void 0) return {};\n\t\t\telements.push(written);\n\t\t\tsourceElementIndexes.push(sourceIndex);\n\t\t}\n\t\treturn readAsLiteral({\n\t\t\tkind: \"list\",\n\t\t\telements\n\t\t}, {\n\t\t\tattribute: attributeSpan,\n\t\t\tvalue: value.span,\n\t\t\telements: value.elements.map((element) => element.span)\n\t\t}, sourceElementIndexes);\n\t}\n\tif (value.kind === \"scalar\") {\n\t\tconst written = canonicalized(value);\n\t\tif (written === void 0) return {};\n\t\tconst spans = {\n\t\t\tattribute: attributeSpan,\n\t\t\tvalue: value.span,\n\t\t\telements: []\n\t\t};\n\t\tif (written.kind !== \"tag\") return readAsLiteral(written, spans);\n\t\tconst read = readWrittenValue(input.dataTypes, written);\n\t\tif (read.ok && read.value.type === SQL_EXPRESSION_DATA_TYPE_ID) return sqlExpressionDefault(sqlTextFromStored(read.value.value), value.span);\n\t\treturn readAsLiteral(written, spans);\n\t}\n\tconst { call } = value;\n\tconst context = {\n\t\tsourceId: input.sources.sourceFileFor(node.syntax).filename,\n\t\t...input.owner.loweringNames,\n\t\tcolumnCodecId: input.columnDescriptor.codecId\n\t};\n\tconst lowered = lowerDefaultFunctionWithRegistry({\n\t\tcall,\n\t\tregistry: input.defaultFunctionRegistry,\n\t\tcontext,\n\t\tsource\n\t});\n\tif (!lowered.ok) {\n\t\tif (lowered.kind === \"owned\") input.diagnostics.push(lowered.diagnostic);\n\t\telse input.diagnostics.pushExternal(lowered.diagnostic);\n\t\treturn {};\n\t}\n\treturn { defaultValue: lowered.value.defaultValue };\n}\nconst GENERATOR_PHASES = [\"onCreate\", \"onUpdate\"];\n/** The generators a field's `@onCreate(fn())` and `@onUpdate(fn())` resolve to for its column, or `undefined` for a field with neither. */\nfunction lowerGeneratorAttributesForField(input) {\n\treturn lowerTypeGenerators({\n\t\t...input,\n\t\towner: fieldAttributeOwner(input)\n\t});\n}\n/** The generators the `@onCreate(fn())` and `@onUpdate(fn())` of a field or type alias resolve to for its column, or `undefined` when it has neither. */\nfunction lowerTypeGenerators(input) {\n\tconst { subject } = input.owner.specContext;\n\tconst label = typeAttributeSubjectLabel(subject);\n\tconst phases = {};\n\tfor (const phase of GENERATOR_PHASES) {\n\t\tconst [attribute, duplicate] = input.owner.attributes.filter(({ name }) => name === phase);\n\t\tif (attribute === void 0) continue;\n\t\tif (duplicate !== void 0) {\n\t\t\tinput.diagnostics.push({\n\t\t\t\tcode: \"PSL_DUPLICATE_ATTRIBUTE\",\n\t\t\t\tmessage: `\\`@${phase}\\` declared more than once on ${subject.kind} \"${subject.name}\".`,\n\t\t\t\t...diagnosticSource(input.sources, duplicate.node.syntax).at(duplicate.span)\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tconst node = attribute.node;\n\t\tconst interpreted = interpretTypeAttribute({\n\t\t\tsymbols: input.symbolTable,\n\t\t\tnode,\n\t\t\tspec: typeGeneratorAttributeSpec(phase, input.owner.specContext),\n\t\t\tsources: input.sources,\n\t\t\tbinder: input.binder,\n\t\t\tdiagnostics: input.diagnostics\n\t\t});\n\t\tif (interpreted === void 0) continue;\n\t\tconst call = interpreted.value;\n\t\tconst resolution = input.generatorFunctions.resolve({\n\t\t\tname: call.fn,\n\t\t\targs: call.args\n\t\t}, {\n\t\t\tcodecId: input.columnDescriptor.codecId,\n\t\t\ttypeParams: input.columnTypeParams,\n\t\t\tlength: sqlCodecColumnLength(input.dataTypes, input.columnDescriptor.codecId, input.columnTypeParams)\n\t\t});\n\t\tif (resolution.ok) {\n\t\t\tphases[phase] = resolution.generator;\n\t\t\tcontinue;\n\t\t}\n\t\tinput.diagnostics.push({\n\t\t\tcode: \"PSL_GENERATOR_NOT_APPLICABLE\",\n\t\t\tmessage: resolution.reason === \"refused\" ? `${label}: ${resolution.message}` : `${label}: ${call.fn}() does not apply to codec \"${input.columnDescriptor.codecId}\".`,\n\t\t\t...diagnosticSource(input.sources, node.syntax).at(call.span)\n\t\t});\n\t}\n\treturn phases.onCreate === void 0 && phases.onUpdate === void 0 ? void 0 : phases;\n}\n/** The default a field's or type alias's `@default(...)` names among the members of its enum. */\nfunction lowerEnumDefault(input) {\n\tconst { owner, enumHandle, diagnostics } = input;\n\tconst node = getAttribute(owner.attributes, \"default\")?.node;\n\tif (node === void 0) return {};\n\tif (enumHandle.enumMembers.length === 0) return {};\n\tconst interpreted = interpretTypeAttribute({\n\t\tnode,\n\t\tspec: typeDefaultSpec(owner.specContext),\n\t\tsymbols: input.symbolTable,\n\t\tsources: input.sources,\n\t\tbinder: input.binder,\n\t\tdiagnostics\n\t});\n\tif (interpreted === void 0) return {};\n\tconst member = interpreted.value;\n\tif (member.kind === \"member-list\") {\n\t\tif (rejectStrictListNullDefault({\n\t\t\towner,\n\t\t\telements: member.elements,\n\t\t\tsource: diagnosticSource(input.sources, node.syntax),\n\t\t\tdiagnostics\n\t\t})) return {};\n\t\treturn { defaultValue: {\n\t\t\tkind: \"literal\",\n\t\t\tvalue: blindCast(member.elements.map((entry) => entry.kind === \"null\" ? null : enumHandle.enumMembers.find((candidate) => candidate.name === entry.name)?.value))\n\t\t} };\n\t}\n\tinvariant(member.kind === \"member\", \"the enum @default grammar admits only member identifiers\");\n\tconst match = enumHandle.enumMembers.find((m) => m.name === member.name);\n\tif (!match) return {};\n\treturn { defaultValue: {\n\t\tkind: \"literal\",\n\t\tvalue: blindCast(match.value)\n\t} };\n}\n//#endregion\n//#region src/psl-field-resolution.ts\nconst MODEL_COORDINATE_SEPARATOR = \"\\0\";\nfunction modelCoordinateKey(namespaceId, modelName) {\n\treturn `${namespaceId}${MODEL_COORDINATE_SEPARATOR}${modelName}`;\n}\nconst GENERATOR_ATTRIBUTE_NAMES = [\"onCreate\", \"onUpdate\"];\nconst REMOVED_ATTRIBUTE_RULES = /* @__PURE__ */ new Map([[\"updatedAt\", {\n\thint: \"Use @onCreate(now()) @onUpdate(now()), or type the field temporal.UpdatedAt.\",\n\tsuppressWhen: (field) => field.attributes.some((attribute) => attribute.name === \"onUpdate\")\n}]]);\n{\n\tconst overlap = [...REMOVED_ATTRIBUTE_RULES.keys()].filter((name) => Object.hasOwn(sqlAttributeSpecs.field, name));\n\tif (overlap.length > 0) throw new InternalError(`Registered SQL field attributes and REMOVED_ATTRIBUTE_RULES must not overlap. Names in both: ${overlap.join(\", \")}`);\n}\nfunction describeUnsupportedSqlAttribute(sources) {\n\treturn ({ attribute, level, owner, field }) => {\n\t\tif (owner.kind === \"compositeType\") return void 0;\n\t\tif (owner.kind === \"mixin\" && owner.keyword === \"type\") return void 0;\n\t\tif (level === \"model\") {\n\t\t\tconst source = diagnosticSource(sources, owner.node.syntax);\n\t\t\treturn {\n\t\t\t\tcode: \"PSL_UNSUPPORTED_MODEL_ATTRIBUTE\",\n\t\t\t\tmessage: `${owner.kind === \"mixin\" ? \"Mixin\" : \"Model\"} \"${owner.name}\" uses unsupported attribute \"@@${attribute.name}\"`,\n\t\t\t\t...source.at(attribute.span)\n\t\t\t};\n\t\t}\n\t\tif (field === void 0) return void 0;\n\t\tconst source = diagnosticSource(sources, field.node.syntax);\n\t\tif (attribute.name.startsWith(\"db.\")) return {\n\t\t\tcode: \"PSL_UNSUPPORTED_FIELD_ATTRIBUTE\",\n\t\t\tmessage: formatDbAttributeMigrationMessage(attribute),\n\t\t\t...source.at(attribute.span)\n\t\t};\n\t\tconst baseMessage = `Field \"${owner.name}.${field.name}\" uses unsupported attribute \"@${attribute.name}\"`;\n\t\tconst removedRule = REMOVED_ATTRIBUTE_RULES.get(attribute.name);\n\t\treturn {\n\t\t\tcode: \"PSL_UNSUPPORTED_FIELD_ATTRIBUTE\",\n\t\t\tmessage: removedRule && !removedRule.suppressWhen(field) ? `${baseMessage}. ${removedRule.hint}` : baseMessage,\n\t\t\t...source.at(attribute.span)\n\t\t};\n\t};\n}\nfunction extractFieldConstraintNames(input) {\n\tconst idAttribute = getAttribute(input.field.attributes, \"id\");\n\tconst uniqueAttribute = getAttribute(input.field.attributes, \"unique\");\n\tconst idNode = getAttribute(input.field.attributes, \"id\")?.node;\n\tconst idName = idNode === void 0 ? void 0 : interpretFieldAttribute({\n\t\tnode: idNode,\n\t\tsymbols: input.symbolTable,\n\t\tspec: sqlAttributeSpecs.field.id(input.specContext),\n\t\tmodel: input.model,\n\t\tfield: input.field,\n\t\tsources: input.sources,\n\t\tbinder: input.binder,\n\t\tdiagnostics: input.diagnostics\n\t})?.map;\n\tconst uniqueNode = getAttribute(input.field.attributes, \"unique\")?.node;\n\treturn {\n\t\tidAttribute,\n\t\tuniqueAttribute,\n\t\tidName,\n\t\tuniqueName: uniqueNode === void 0 ? void 0 : interpretFieldAttribute({\n\t\t\tnode: uniqueNode,\n\t\t\tsymbols: input.symbolTable,\n\t\t\tspec: sqlAttributeSpecs.field.unique(input.specContext),\n\t\t\tmodel: input.model,\n\t\t\tfield: input.field,\n\t\t\tsources: input.sources,\n\t\t\tbinder: input.binder,\n\t\t\tdiagnostics: input.diagnostics\n\t\t})?.map\n\t};\n}\nfunction collectResolvedFields(input) {\n\tconst { model, symbolTable, enumTypeDescriptors, typeAliases, valueObjectTypes, authoringContributions, binder, targetId, defaultFunctionRegistry, generatorFunctions, dataTypes, diagnostics, droppedFields, sources, scalarColumnDescriptors, enumHandles, capabilities, namespaceId, namespaceExtensionEntities, codecLookup } = input;\n\tconst resolvedFields = [];\n\tconst valueObjectStorageTypeName = authoringContributions?.valueObjectStorageType;\n\tfor (const field of Object.values(model.fields)) {\n\t\tconst source = diagnosticSource(sources, field.node.syntax);\n\t\tconst fieldTypeReference = typeReferenceNode(field);\n\t\tconst fieldTypeResolution = fieldTypeReference === void 0 ? void 0 : binder.symbolForNode(fieldTypeReference);\n\t\tconst isModelField = fieldTypeResolution?.kind === \"model\";\n\t\tif (field.list && isModelField) continue;\n\t\tconst relationAttribute = getAttribute(field.attributes, \"relation\");\n\t\tif (isModelField && relationAttribute) continue;\n\t\tif (field.typeContractSpaceId !== void 0 && relationAttribute) continue;\n\t\tif (isModelField) continue;\n\t\tconst valueObjectName = fieldTypeResolution?.kind === \"compositeType\" ? fieldTypeResolution.symbol.name : void 0;\n\t\tconst isValueObjectField = valueObjectName !== void 0;\n\t\tconst isListField = field.list;\n\t\tconst isListColumn = storedAsListColumn({\n\t\t\tlist: isListField,\n\t\t\ttypedByValueObject: isValueObjectField\n\t\t});\n\t\tlet descriptor;\n\t\tconst resolveInput = {\n\t\t\tfield,\n\t\t\tresolution: fieldTypeResolution,\n\t\t\tenumTypeDescriptors,\n\t\t\ttypeAliases,\n\t\t\tdiagnostics,\n\t\t\tsources,\n\t\t\tentityLabel: `Field \"${model.name}.${field.name}\"`,\n\t\t\t...ifDefined(\"namespaceId\", namespaceId),\n\t\t\t...ifDefined(\"namespaceExtensionEntities\", namespaceExtensionEntities),\n\t\t\tbinder,\n\t\t\tcodecLookup,\n\t\t\tdataTypes\n\t\t};\n\t\tif (isValueObjectField) {\n\t\t\tif (valueObjectStorageTypeName === void 0) {\n\t\t\t\tdiagnostics.push({\n\t\t\t\t\tcode: \"PSL_UNSUPPORTED_FIELD_TYPE\",\n\t\t\t\t\tmessage: `Field \"${model.name}.${field.name}\" is typed by the composite type \"${field.typeName}\", but the adapter of the stack declares no storage type for value objects, so the field has no column to be stored in.`,\n\t\t\t\t\t...source.at(field.span)\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tdescriptor = scalarColumnDescriptors.get(valueObjectStorageTypeName);\n\t\t\tif (descriptor === void 0) throw new InternalError(`The stack declares \"${valueObjectStorageTypeName}\" as its value-object storage type, but it is not one of the stack's scalar types; the control stack checks this when it is assembled.`);\n\t\t} else if (isListField) {\n\t\t\tif (capabilities[\"sql\"]?.[\"scalarList\"] !== true) {\n\t\t\t\tdiagnostics.push({\n\t\t\t\t\tcode: \"PSL_SCALAR_LIST_UNSUPPORTED_TARGET\",\n\t\t\t\t\tmessage: `Field \"${model.name}.${field.name}\" is a scalar list, but target \"${targetId}\" does not support scalar lists (the adapter does not report the \"scalarList\" capability). Remove the list or author it against a target that supports scalar lists.`,\n\t\t\t\t\t...source.at(field.span)\n\t\t\t\t});\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst resolved = resolveFieldTypeDescriptor(resolveInput);\n\t\t\tif (!resolved.ok) {\n\t\t\t\tdroppedFields.add(field);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tdescriptor = resolved.descriptor;\n\t\t} else {\n\t\t\tconst resolved = resolveFieldTypeDescriptor(resolveInput);\n\t\t\tif (!resolved.ok) {\n\t\t\t\tdroppedFields.add(field);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tdescriptor = resolved.descriptor;\n\t\t}\n\t\tif (!descriptor) continue;\n\t\tconst typeAlias = typeAliases.ofResolution(fieldTypeResolution);\n\t\tif (typeAlias !== void 0) refuseRepeatedTypeAliasAttributes({\n\t\t\tfield,\n\t\t\tfieldPath: `${model.name}.${field.name}`,\n\t\t\talias: typeAlias.alias,\n\t\t\tsources,\n\t\t\tdiagnostics\n\t\t});\n\t\tconst defaultAttribute = getAttribute(field.attributes, \"default\");\n\t\tconst enumHandle = fieldTypeResolution?.kind === \"block\" ? enumHandles.get(fieldTypeResolution.symbol) : typeAlias?.enumHandle;\n\t\tconst fieldLowering = {\n\t\t\tmodelName: model.name,\n\t\t\tfieldName: field.name,\n\t\t\tfield,\n\t\t\tmodel,\n\t\t\tsymbolTable,\n\t\t\tsources: input.sources,\n\t\t\tbinder: input.binder,\n\t\t\tdefaultFunctionRegistry,\n\t\t\tgeneratorFunctions,\n\t\t\tdataTypes,\n\t\t\tdiagnostics\n\t\t};\n\t\tconst ownDefault = defaultAttribute ? enumHandle ? lowerEnumDefault({\n\t\t\t...fieldLowering,\n\t\t\towner: fieldAttributeOwner(fieldLowering),\n\t\t\tenumHandle\n\t\t}) : lowerDefaultForField({\n\t\t\t...fieldLowering,\n\t\t\tcolumnDescriptor: descriptor,\n\t\t\tcolumnTypeParams: descriptor.typeParams,\n\t\t\tisListColumn,\n\t\t\tvalueObjectDefault: valueObjectName === void 0 ? void 0 : {\n\t\t\t\tvalueObjectName,\n\t\t\t\ttypes: valueObjectTypes\n\t\t\t},\n\t\t\tcodecLookup\n\t\t}) : {};\n\t\tif (isListField && typeAlias?.defaultValue !== void 0) {\n\t\t\tdiagnostics.push({\n\t\t\t\tcode: \"PSL_DEFAULT_LIST_EXPECTED\",\n\t\t\t\tmessage: `Field \"${model.name}.${field.name}\" is a list, but its type alias \"${typeAlias.name}\" sets @default for a single value. Remove \"[]\" or the @default of the alias.`,\n\t\t\t\t...source.at(field.span)\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tconst loweredDefault = { ...ifDefined(\"defaultValue\", typeAlias?.defaultValue ?? ownDefault.defaultValue) };\n\t\tconst generatedValues = mergeExecutionDefaults(lowerGeneratorAttributesForField({\n\t\t\t...fieldLowering,\n\t\t\tcolumnDescriptor: descriptor,\n\t\t\tcolumnTypeParams: descriptor.typeParams\n\t\t}), typeAlias?.executionDefaults);\n\t\tif (isListField && loweredDefault.defaultValue?.kind === \"function\" && loweredDefault.defaultValue.expression === \"autoincrement()\") {\n\t\t\tdiagnostics.push({\n\t\t\t\tcode: \"PSL_LIST_AUTOINCREMENT_UNSUPPORTED\",\n\t\t\t\tmessage: `Field \"${model.name}.${field.name}\" is a list and cannot use autoincrement(); it is a Prisma marker for a sequence-backed scalar column, not SQL.`,\n\t\t\t\t...source.at(defaultAttribute?.span ?? field.span)\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tconst ownGeneratorAttribute = GENERATOR_ATTRIBUTE_NAMES.map((name) => getAttribute(field.attributes, name)).find((attribute) => attribute !== void 0);\n\t\tif (isListField && generatedValues !== void 0) {\n\t\t\tconst fieldLabel = `Field \"${model.name}.${field.name}\"`;\n\t\t\tconst perElement = \"Lists have no per-element generated values;\";\n\t\t\tconst call = ownGeneratorAttribute?.args.find((arg) => arg.kind === \"positional\")?.value.trim() ?? \"\";\n\t\t\tdiagnostics.push({\n\t\t\t\tcode: \"PSL_LIST_EXECUTION_DEFAULT_UNSUPPORTED\",\n\t\t\t\tmessage: ownGeneratorAttribute === void 0 ? `${fieldLabel} is a list, and its type alias \"${typeAlias?.name}\" generates a value. ${perElement} remove \"[]\" or type the field without the alias.` : `${fieldLabel} is a list and cannot use @${ownGeneratorAttribute.name}(${call}). ${perElement} remove @${ownGeneratorAttribute.name}(...).`,\n\t\t\t\t...source.at(ownGeneratorAttribute?.span ?? field.span)\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tconst mappedColumnName = storageName(field, input.physicalNames);\n\t\tconst specContext = fieldSpecContext({\n\t\t\tsymbols: symbolTable,\n\t\t\tmodel,\n\t\t\tfield,\n\t\t\tbinder,\n\t\t\tdefaultFunctionRegistry,\n\t\t\tgeneratorFunctions,\n\t\t\tdataTypes\n\t\t});\n\t\tconst { idAttribute, uniqueAttribute, idName, uniqueName } = extractFieldConstraintNames({\n\t\t\tsymbolTable: input.symbolTable,\n\t\t\tmodel,\n\t\t\tfield,\n\t\t\tspecContext,\n\t\t\tsources: input.sources,\n\t\t\tbinder: input.binder,\n\t\t\tdiagnostics\n\t\t});\n\t\tlet isIdField = Boolean(idAttribute);\n\t\tif (idAttribute && isListField) {\n\t\t\tdiagnostics.push({\n\t\t\t\tcode: \"PSL_LIST_ID_UNSUPPORTED\",\n\t\t\t\tmessage: `Field \"${model.name}.${field.name}\" is a list and cannot be a primary key. Remove @id; a list cannot be an identity column.`,\n\t\t\t\t...source.at(idAttribute.span)\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (idAttribute && field.optional) {\n\t\t\tdiagnostics.push({\n\t\t\t\tcode: \"PSL_INVALID_ATTRIBUTE_ARGUMENT\",\n\t\t\t\tmessage: `Field \"${model.name}.${field.name}\" @id cannot be optional; primary key columns must be NOT NULL`,\n\t\t\t\t...source.at(idAttribute.span)\n\t\t\t});\n\t\t\tisIdField = false;\n\t\t}\n\t\tresolvedFields.push({\n\t\t\tfield,\n\t\t\tcolumnName: mappedColumnName,\n\t\t\tdescriptor,\n\t\t\tnullable: field.optional,\n\t\t\t...ifDefined(\"defaultValue\", loweredDefault.defaultValue),\n\t\t\t...ifDefined(\"executionDefaults\", generatedValues),\n\t\t\tisId: isIdField,\n\t\t\tisUnique: Boolean(uniqueAttribute),\n\t\t\t...ifDefined(\"idName\", idName),\n\t\t\t...ifDefined(\"uniqueName\", uniqueName),\n\t\t\t...ifDefined(\"many\", isListField ? true : void 0),\n\t\t\t...ifDefined(\"elementNullable\", field.elementOptional ? true : void 0),\n\t\t\t...ifDefined(\"valueObjectTypeName\", valueObjectName),\n\t\t\t...ifDefined(\"enumTypeHandle\", enumHandle)\n\t\t});\n\t}\n\treturn resolvedFields;\n}\nfunction mergeExecutionDefaults(fromAttributes, fromTypeAlias) {\n\tif (fromAttributes === void 0 || fromTypeAlias === void 0) return fromTypeAlias ?? fromAttributes;\n\treturn {\n\t\t...fromAttributes,\n\t\t...fromTypeAlias\n\t};\n}\n//#endregion\nexport { modelSpecContext as _, instantiateFieldTypeConstructor as a, contractError as b, lowerTypeDefault as c, PSL_CHECK_ON_STI_VARIANT as d, defaultFunctionCall as f, modelAttributeSpecsFrom as g, interpretModelAttribute as h, getAuthoringEntity as i, lowerTypeGenerators as l, interpretFieldAttribute as m, describeUnsupportedSqlAttribute as n, instantiatePslTypeConstructor as o, fieldSpecContext as p, modelCoordinateKey as r, lowerEnumDefault as s, collectResolvedFields as t, resolveFieldTypeDescriptor as u, sqlAttributeSpecs as v, readDataTypeDefault as y };\n\n//# sourceMappingURL=psl-field-resolution-Bvhx79fP.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;AAkBA,SAAS,cAAc,MAAM,SAAS,SAAS;CAC9C,OAAO,gBAAgB,MAAM,SAAS,OAAO;AAC9C;;AAIA,MAAM,8BAA8B;;AAEpC,MAAM,8BAA8B;;AAEpC,MAAM,4BAA4B;AAClC,SAAS,UAAU,OAAO;CACzB,OAAO,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;AAC7D;AACA,SAAS,QAAQ,SAAS,gBAAgB;CACzC,OAAO;EACN,IAAI;EACJ;EACA;CACD;AACD;AACA,SAAS,aAAa,WAAW,SAAS,cAAc,gBAAgB;CACvE,MAAM,OAAO,iBAAiB,WAAW,OAAO;CAChD,OAAO,KAAK,KAAK;EAChB,IAAI;EACJ,OAAO,KAAK;CACb,IAAI,QAAQ;EACX,GAAG,KAAK;EACR;CACD,GAAG,cAAc;AAClB;;AAEA,SAAS,mBAAmB,YAAY;CACvC,OAAO,eAAe,KAAK,IAAI,KAAK,IAAI,UAAU,UAAU;AAC7D;;;;AAIA,SAAS,kBAAkB,OAAO;CACjC,MA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iB;CACnF,OAAO;EACN,GAAG;EACH,GAAG;CACJ;AACD"}
@@ -38,8 +38,7 @@ Object.freeze(sqlRuntimeFamilyDescriptor);
38
38
  * semantics: one `new Date()` per lowered mutation, not per row.
39
39
  *
40
40
  * Lives in its own module, exported only through `exports/runtime.ts`,
41
- * so the control-plane `timestamp-now-generator.ts` (descriptor +
42
- * authoring presets) stays free of runtime-plane imports.
41
+ * so the control plane stays free of runtime-plane imports.
43
42
  */
44
43
  function timestampNowRuntimeGenerator() {
45
44
  return {
@@ -52,4 +51,4 @@ var runtime_default = sqlRuntimeFamilyDescriptor;
52
51
  //#endregion
53
52
  export { timestampNowRuntimeGenerator as i, resolveDomainModel as n, runtime_default as r, UNBOUND_DOMAIN_NAMESPACE_ID as t };
54
53
 
55
- //# sourceMappingURL=runtime-6tH1yOxK.mjs.map
54
+ //# sourceMappingURL=runtime-CCzfa1mY.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-6tH1yOxK.mjs","names":[],"sources":["../../../../2-sql-family/9-family/dist/runtime.mjs"],"sourcesContent":["import { TIMESTAMP_NOW_GENERATOR_ID } from \"@internal/framework-components/authoring\";\nimport { UNBOUND_DOMAIN_NAMESPACE_ID, resolveDomainModel } from \"@internal/contract/types\";\nimport { resolveStorageTable } from \"@internal/sql-contract/resolve-storage-table\";\n//#region src/core/runtime-instance.ts\n/**\n* Creates a SQL execution-plane family instance.\n*\n* This will be renamed to `createSqlExecutionFamilyInstance()` as part of `TML-1842`.\n*/\nfunction createSqlRuntimeFamilyInstance() {\n\treturn { familyId: \"sql\" };\n}\n//#endregion\n//#region src/core/runtime-descriptor.ts\n/**\n* SQL execution-plane family descriptor.\n*\n* Note: this is currently named `sqlRuntimeFamilyDescriptor` because the execution plane\n* framework types are still using the `Runtime*` naming (`RuntimeFamilyDescriptor`, etc.).\n*\n* This will be renamed to `sqlExecutionFamilyDescriptor` as part of `TML-1842`.\n*/\nconst sqlRuntimeFamilyDescriptor = {\n\tkind: \"family\",\n\tid: \"sql\",\n\tfamilyId: \"sql\",\n\tversion: \"0.0.1\",\n\tcreate() {\n\t\treturn createSqlRuntimeFamilyInstance();\n\t}\n};\nObject.freeze(sqlRuntimeFamilyDescriptor);\n//#endregion\n//#region src/core/timestamp-now-runtime-generator.ts\n/**\n* Builds the canonical runtime-plane generator for the wall-clock-now\n* mutation default. Returns `new Date()`; semantics are target-agnostic\n* so all SQL targets share this single implementation.\n*\n* Declares `stability: 'query'` so a single ORM bulk operation\n* (e.g. `createAll([...])`) shares one timestamp across every row and\n* every timestamp-defaulted column. Matches Prisma 6's `@updatedAt`\n* semantics: one `new Date()` per lowered mutation, not per row.\n*\n* Lives in its own module, exported only through `exports/runtime.ts`,\n* so the control-plane `timestamp-now-generator.ts` (descriptor +\n* authoring presets) stays free of runtime-plane imports.\n*/\nfunction timestampNowRuntimeGenerator() {\n\treturn {\n\t\tid: TIMESTAMP_NOW_GENERATOR_ID,\n\t\tgenerate: () => /* @__PURE__ */ new Date(),\n\t\tstability: \"query\"\n\t};\n}\n//#endregion\n//#region src/exports/runtime.ts\nvar runtime_default = sqlRuntimeFamilyDescriptor;\n//#endregion\nexport { UNBOUND_DOMAIN_NAMESPACE_ID, runtime_default as default, resolveDomainModel, resolveStorageTable, timestampNowRuntimeGenerator };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;;;;;;;AASA,SAAS,iCAAiC;CACzC,OAAO,EAAE,UAAU,MAAM;AAC1B;;;;;;;;;AAWA,MAAM,6BAA6B;CAClC,MAAM;CACN,IAAI;CACJ,UAAU;CACV,SAAS;CACT,SAAS;EACR,OAAO,+BAA+B;CACvC;AACD;AACA,OAAO,OAAO,0BAA0B;;;;;;;;;;;;;;;AAiBxC,SAAS,+BAA+B;CACvC,OAAO;EACN,IAAI;EACJ,gCAAgC,IAAI,KAAK;EACzC,WAAW;CACZ;AACD;AAGA,IAAI,kBAAkB"}
1
+ {"version":3,"file":"runtime-CCzfa1mY.mjs","names":[],"sources":["../../../../2-sql-family/9-family/dist/runtime.mjs"],"sourcesContent":["import { TIMESTAMP_NOW_GENERATOR_ID } from \"@internal/framework-components/authoring\";\nimport { UNBOUND_DOMAIN_NAMESPACE_ID, resolveDomainModel } from \"@internal/contract/types\";\nimport { resolveStorageTable } from \"@internal/sql-contract/resolve-storage-table\";\n//#region src/core/runtime-instance.ts\n/**\n* Creates a SQL execution-plane family instance.\n*\n* This will be renamed to `createSqlExecutionFamilyInstance()` as part of `TML-1842`.\n*/\nfunction createSqlRuntimeFamilyInstance() {\n\treturn { familyId: \"sql\" };\n}\n//#endregion\n//#region src/core/runtime-descriptor.ts\n/**\n* SQL execution-plane family descriptor.\n*\n* Note: this is currently named `sqlRuntimeFamilyDescriptor` because the execution plane\n* framework types are still using the `Runtime*` naming (`RuntimeFamilyDescriptor`, etc.).\n*\n* This will be renamed to `sqlExecutionFamilyDescriptor` as part of `TML-1842`.\n*/\nconst sqlRuntimeFamilyDescriptor = {\n\tkind: \"family\",\n\tid: \"sql\",\n\tfamilyId: \"sql\",\n\tversion: \"0.0.1\",\n\tcreate() {\n\t\treturn createSqlRuntimeFamilyInstance();\n\t}\n};\nObject.freeze(sqlRuntimeFamilyDescriptor);\n//#endregion\n//#region src/core/timestamp-now-runtime-generator.ts\n/**\n* Builds the canonical runtime-plane generator for the wall-clock-now\n* mutation default. Returns `new Date()`; semantics are target-agnostic\n* so all SQL targets share this single implementation.\n*\n* Declares `stability: 'query'` so a single ORM bulk operation\n* (e.g. `createAll([...])`) shares one timestamp across every row and\n* every timestamp-defaulted column. Matches Prisma 6's `@updatedAt`\n* semantics: one `new Date()` per lowered mutation, not per row.\n*\n* Lives in its own module, exported only through `exports/runtime.ts`,\n* so the control plane stays free of runtime-plane imports.\n*/\nfunction timestampNowRuntimeGenerator() {\n\treturn {\n\t\tid: TIMESTAMP_NOW_GENERATOR_ID,\n\t\tgenerate: () => /* @__PURE__ */ new Date(),\n\t\tstability: \"query\"\n\t};\n}\n//#endregion\n//#region src/exports/runtime.ts\nvar runtime_default = sqlRuntimeFamilyDescriptor;\n//#endregion\nexport { UNBOUND_DOMAIN_NAMESPACE_ID, runtime_default as default, resolveDomainModel, resolveStorageTable, timestampNowRuntimeGenerator };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;;;;;;;AASA,SAAS,iCAAiC;CACzC,OAAO,EAAE,UAAU,MAAM;AAC1B;;;;;;;;;AAWA,MAAM,6BAA6B;CAClC,MAAM;CACN,IAAI;CACJ,UAAU;CACV,SAAS;CACT,SAAS;EACR,OAAO,+BAA+B;CACvC;AACD;AACA,OAAO,OAAO,0BAA0B;;;;;;;;;;;;;;AAgBxC,SAAS,+BAA+B;CACvC,OAAO;EACN,IAAI;EACJ,gCAAgC,IAAI,KAAK;EACzC,WAAW;CACZ;AACD;AAGA,IAAI,kBAAkB"}
@@ -37,10 +37,9 @@ declare const sqlRuntimeFamilyDescriptor: RuntimeFamilyDescriptor<'sql', SqlRunt
37
37
  * semantics: one `new Date()` per lowered mutation, not per row.
38
38
  *
39
39
  * Lives in its own module, exported only through `exports/runtime.ts`,
40
- * so the control-plane `timestamp-now-generator.ts` (descriptor +
41
- * authoring presets) stays free of runtime-plane imports.
40
+ * so the control plane stays free of runtime-plane imports.
42
41
  */
43
42
  declare function timestampNowRuntimeGenerator(): RuntimeMutationDefaultGenerator;
44
43
  //#endregion
45
44
  export { timestampNowRuntimeGenerator as a, sqlRuntimeFamilyDescriptor as i, UNBOUND_DOMAIN_NAMESPACE_ID as n, resolveDomainModel as r, ResolvedDomainModel as t };
46
- //# sourceMappingURL=runtime-CF6rAlE5.d.mts.map
45
+ //# sourceMappingURL=runtime-JKWb27L5.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-CF6rAlE5.d.mts","names":[],"sources":["../../../../2-sql-family/9-family/dist/runtime.d.mts"],"mappings":";;;;;;;;;;;;;;UAaU,iCAAiC;;;;;;;;;;;cAW7B,4BAA4B,+BAA+B;;;;;;;;;;;;;;;;;iBAiBxD,gCAAgC"}
1
+ {"version":3,"file":"runtime-JKWb27L5.d.mts","names":[],"sources":["../../../../2-sql-family/9-family/dist/runtime.d.mts"],"mappings":";;;;;;;;;;;;;;UAaU,iCAAiC;;;;;;;;;;;cAW7B,4BAA4B,+BAA+B;;;;;;;;;;;;;;;;iBAgBxD,gCAAgC"}