@prisma/orm-framework 8.0.0-rc.2-dev.3 → 8.0.0-rc.20-dev.1

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 (354) hide show
  1. package/README.md +1 -5
  2. package/dist/{apply-specifier-default-control-policy-CAxiXxKg.d.mts → apply-specifier-default-control-policy-Dlz0iwnK.d.mts} +2 -2
  3. package/dist/apply-specifier-default-control-policy-Dlz0iwnK.d.mts.map +1 -0
  4. package/dist/{assertions-Cz-GWH8P.mjs → assertions-Dw1lZz_Q.mjs} +2 -2
  5. package/dist/{assertions-Cz-GWH8P.mjs.map → assertions-Dw1lZz_Q.mjs.map} +1 -1
  6. package/dist/authoring-CNUti739.mjs +764 -0
  7. package/dist/authoring-CNUti739.mjs.map +1 -0
  8. package/dist/authoring-CjwinhU5.d.mts +206 -0
  9. package/dist/authoring-CjwinhU5.d.mts.map +1 -0
  10. package/dist/binder-D_4RBHbt-BJ6VKwEZ.d.mts +515 -0
  11. package/dist/binder-D_4RBHbt-BJ6VKwEZ.d.mts.map +1 -0
  12. package/dist/{canonicalization-DFpB09nP-4OdB2nsy.d.mts → canonicalization-CyrrXGmj-CeKUkht1.d.mts} +3 -3
  13. package/dist/{canonicalization-DFpB09nP-4OdB2nsy.d.mts.map → canonicalization-CyrrXGmj-CeKUkht1.d.mts.map} +1 -1
  14. package/dist/{hashing-utils-DQgS3nOe.mjs → canonicalization-path-match-D88xLEq6-BFQC39ZG.mjs} +23 -3
  15. package/dist/canonicalization-path-match-D88xLEq6-BFQC39ZG.mjs.map +1 -0
  16. package/dist/{utils-DMAM0unR.mjs → canonicalize-json-ZPawceQR-Dua1VNEB.mjs} +2 -2
  17. package/dist/canonicalize-json-ZPawceQR-Dua1VNEB.mjs.map +1 -0
  18. package/dist/codec-B4ypaota.d.mts +289 -0
  19. package/dist/codec-B4ypaota.d.mts.map +1 -0
  20. package/dist/codec-Do8tfXqk.mjs +457 -0
  21. package/dist/codec-Do8tfXqk.mjs.map +1 -0
  22. package/dist/codec-descriptor-D0oY-hgs-C5e11ola.mjs +93 -0
  23. package/dist/codec-descriptor-D0oY-hgs-C5e11ola.mjs.map +1 -0
  24. package/dist/codec-types-BXLUbk-Y-DpGfKGK0.mjs +22 -0
  25. package/dist/codec-types-BXLUbk-Y-DpGfKGK0.mjs.map +1 -0
  26. package/dist/codec-types-CPgEZoIq-BL9hisr8.d.mts +384 -0
  27. package/dist/codec-types-CPgEZoIq-BL9hisr8.d.mts.map +1 -0
  28. package/dist/{components-dZRz3T5y.mjs → components-BaV9iCkq.mjs} +34 -3
  29. package/dist/components-BaV9iCkq.mjs.map +1 -0
  30. package/dist/components-CRBcIta_.d.mts +86 -0
  31. package/dist/components-CRBcIta_.d.mts.map +1 -0
  32. package/dist/components.d.mts +19 -17
  33. package/dist/components.mjs +16 -12
  34. package/dist/components__authoring.d.mts +4 -3
  35. package/dist/components__authoring.mjs +3 -2
  36. package/dist/components__codec.d.mts +3 -3
  37. package/dist/components__codec.mjs +6 -4
  38. package/dist/components__components.d.mts +6 -4
  39. package/dist/components__components.mjs +4 -3
  40. package/dist/components__control.d.mts +5 -4
  41. package/dist/components__control.mjs +3 -2
  42. package/dist/components__emission.d.mts +4 -4
  43. package/dist/components__execution.d.mts +1 -1
  44. package/dist/components__ir.d.mts +1 -1
  45. package/dist/components__ir.mjs +2 -1
  46. package/dist/components__psl-ast.d.mts +4 -4
  47. package/dist/components__psl-ast.mjs +2 -2
  48. package/dist/components__runtime.d.mts +3 -2
  49. package/dist/components__runtime.mjs +2 -2
  50. package/dist/components__utils.mjs +1 -1
  51. package/dist/{config-types-CW4PDwMC.d.mts → config-types-BTFT7QfJ.d.mts} +73 -41
  52. package/dist/config-types-BTFT7QfJ.d.mts.map +1 -0
  53. package/dist/config-types-D0mYyP62.mjs +61 -0
  54. package/dist/config-types-D0mYyP62.mjs.map +1 -0
  55. package/dist/config.d.mts +2 -3
  56. package/dist/config.mjs +2 -3
  57. package/dist/config__config-types.d.mts +2 -2
  58. package/dist/config__config-types.mjs +2 -2
  59. package/dist/contract-authoring.d.mts +152 -17
  60. package/dist/contract-authoring.d.mts.map +1 -1
  61. package/dist/contract-authoring.mjs +190 -9
  62. package/dist/contract-authoring.mjs.map +1 -1
  63. package/dist/{contract-types-CkdMH7F7-9EHXSwbH.d.mts → contract-types-DEIEpzU_-DvAVuBr5.d.mts} +14 -8
  64. package/dist/contract-types-DEIEpzU_-DvAVuBr5.d.mts.map +1 -0
  65. package/dist/{contract-validation-error-DEiWp_EI-CRwtUgRw.mjs → contract-validation-error-CAnTGhkt-DSnujRaK.mjs} +6 -3
  66. package/dist/contract-validation-error-CAnTGhkt-DSnujRaK.mjs.map +1 -0
  67. package/dist/{contract-validation-error-R7cMoK04.d.mts → contract-validation-error-D1QAeOh5.d.mts} +4 -2
  68. package/dist/contract-validation-error-D1QAeOh5.d.mts.map +1 -0
  69. package/dist/contract.d.mts +13 -12
  70. package/dist/contract.mjs +9 -9
  71. package/dist/contract__apply-specifier-default-control-policy.d.mts +1 -1
  72. package/dist/contract__contract-validation-error.d.mts +1 -1
  73. package/dist/contract__contract-validation-error.mjs +1 -1
  74. package/dist/contract__default-namespace.mjs +1 -1
  75. package/dist/contract__enum-accessor.d.mts +2 -2
  76. package/dist/contract__enum-accessor.mjs +1 -1
  77. package/dist/contract__hashing-utils.d.mts +2 -2
  78. package/dist/contract__hashing-utils.mjs +2 -3
  79. package/dist/contract__hashing.d.mts +3 -3
  80. package/dist/contract__hashing.mjs +2 -2
  81. package/dist/contract__resolve-domain-model.d.mts +1 -1
  82. package/dist/contract__types.d.mts +5 -5
  83. package/dist/contract__types.mjs +3 -3
  84. package/dist/contract__validate-domain.d.mts +1 -1
  85. package/dist/contract__validate-domain.mjs +1 -1
  86. package/dist/contract__validate-once.d.mts +2 -0
  87. package/dist/contract__validate-once.mjs +2 -0
  88. package/dist/{control-ql9N9u4f-r3Vv41kZ.d.mts → control-B5ezUWD2-BIAYxeSk.d.mts} +34 -6
  89. package/dist/control-B5ezUWD2-BIAYxeSk.d.mts.map +1 -0
  90. package/dist/{control-DLEm6u5m.mjs → control-DMJqhnwU.mjs} +309 -36
  91. package/dist/control-DMJqhnwU.mjs.map +1 -0
  92. package/dist/control-DrDTlxCS.d.mts +1 -0
  93. package/dist/{control-BD96JZi8-NUhO5Kkw.mjs → control-KsXr4fYD-D2Ows0NI.mjs} +70 -24
  94. package/dist/control-KsXr4fYD-D2Ows0NI.mjs.map +1 -0
  95. package/dist/{control-BF8qzdnM.d.mts → control-s5ECUABR.d.mts} +635 -156
  96. package/dist/control-s5ECUABR.d.mts.map +1 -0
  97. package/dist/data-type-V6mcDhcG-DVQAPOQT.mjs +275 -0
  98. package/dist/data-type-V6mcDhcG-DVQAPOQT.mjs.map +1 -0
  99. package/dist/declarations-BgUAq1RG-Dz_-EI1Q.mjs +459 -0
  100. package/dist/declarations-BgUAq1RG-Dz_-EI1Q.mjs.map +1 -0
  101. package/dist/{default-namespace-D4vCwkXg-lzVN7gSc.mjs → default-namespace-D4vCwkXg-BEZbN38y.mjs} +2 -2
  102. package/dist/{default-namespace-D4vCwkXg-lzVN7gSc.mjs.map → default-namespace-D4vCwkXg-BEZbN38y.mjs.map} +1 -1
  103. package/dist/{dist-Dqbo77p7.mjs → dist-D1f6xr7F.mjs} +51 -24
  104. package/dist/dist-D1f6xr7F.mjs.map +1 -0
  105. package/dist/{domain-envelope-D6Wn9AmZ-BqZKTT9U.d.mts → domain-envelope-CN721GnP-4huRt7Wc.d.mts} +27 -13
  106. package/dist/domain-envelope-CN721GnP-4huRt7Wc.d.mts.map +1 -0
  107. package/dist/emission-BtJvV97M.d.mts +2 -0
  108. package/dist/{emission-types-DLXP34Ki-CFms3VrX.d.mts → emission-types-B-jKEbjI-D7BW8Gk1.d.mts} +17 -16
  109. package/dist/emission-types-B-jKEbjI-D7BW8Gk1.d.mts.map +1 -0
  110. package/dist/enum-accessor-2OZgavDX.d.mts +104 -0
  111. package/dist/enum-accessor-2OZgavDX.d.mts.map +1 -0
  112. package/dist/enum-accessor-B-A2wNok.mjs +122 -0
  113. package/dist/enum-accessor-B-A2wNok.mjs.map +1 -0
  114. package/dist/errors.d.mts +5 -4
  115. package/dist/errors.mjs +4 -4
  116. package/dist/errors__control.d.mts +3 -2
  117. package/dist/errors__control.mjs +2 -2
  118. package/dist/errors__execution.d.mts +2 -2
  119. package/dist/errors__execution.mjs +2 -2
  120. package/dist/errors__migration.d.mts +2 -2
  121. package/dist/errors__migration.mjs +2 -2
  122. package/dist/execution-CjX5CCTb.d.mts +76 -0
  123. package/dist/execution-CjX5CCTb.d.mts.map +1 -0
  124. package/dist/{execution-CSnQT8EX.d.mts → execution-lMPVFj5o.d.mts} +2 -2
  125. package/dist/{execution-CSnQT8EX.d.mts.map → execution-lMPVFj5o.d.mts.map} +1 -1
  126. package/dist/execution-vfY4d-SZ.mjs +138 -0
  127. package/dist/execution-vfY4d-SZ.mjs.map +1 -0
  128. package/dist/{declarations-DR6To8_k-BFwkCGeP.mjs → expressions-CMQzbnHk-BL2zN0Iv.mjs} +199 -350
  129. package/dist/expressions-CMQzbnHk-BL2zN0Iv.mjs.map +1 -0
  130. package/dist/framework-authoring-DDxddXZm-uZYdhoE0.d.mts +1096 -0
  131. package/dist/framework-authoring-DDxddXZm-uZYdhoE0.d.mts.map +1 -0
  132. package/dist/{framework-components-hZ2tO-KH-CdRXBOYd.d.mts → framework-components-DKoQnPdB-lax1COaf.d.mts} +28 -91
  133. package/dist/framework-components-DKoQnPdB-lax1COaf.d.mts.map +1 -0
  134. package/dist/generator-functions-CXbQfvYu-BIFU1Ryx.mjs +271 -0
  135. package/dist/generator-functions-CXbQfvYu-BIFU1Ryx.mjs.map +1 -0
  136. package/dist/{hash-content-DwEUh-Rx.d.mts → hash-content-Bde14N2-.d.mts} +2 -2
  137. package/dist/{hash-content-DwEUh-Rx.d.mts.map → hash-content-Bde14N2-.d.mts.map} +1 -1
  138. package/dist/{hash-content-Bugg_nZn.mjs → hash-content-Bdl-HSfq.mjs} +2 -2
  139. package/dist/hash-content-Bdl-HSfq.mjs.map +1 -0
  140. package/dist/{hashing-BtIZVNYX.mjs → hashing-CLRfNAxh.mjs} +28 -9
  141. package/dist/hashing-CLRfNAxh.mjs.map +1 -0
  142. package/dist/hashing-D-DHz0zl.d.mts +36 -0
  143. package/dist/hashing-D-DHz0zl.d.mts.map +1 -0
  144. package/dist/{hashing-utils-qKu59RSC.d.mts → hashing-utils-DiGHKd3b.d.mts} +4 -3
  145. package/dist/{hashing-utils-qKu59RSC.d.mts.map → hashing-utils-DiGHKd3b.d.mts.map} +1 -1
  146. package/dist/ids.d.mts +90 -13
  147. package/dist/ids.d.mts.map +1 -1
  148. package/dist/ids.mjs +45 -59
  149. package/dist/ids.mjs.map +1 -1
  150. package/dist/ids__runtime.d.mts +1 -1
  151. package/dist/ids__runtime.mjs +1 -1
  152. package/dist/{index-CDk9yEbw.d.mts → index-MU-ksXsh.d.mts} +23 -6
  153. package/dist/index-MU-ksXsh.d.mts.map +1 -0
  154. package/dist/{internal-error-kK8QvlDE.d.mts → internal-error-2fJ9fcZX.d.mts} +2 -2
  155. package/dist/{internal-error-kK8QvlDE.d.mts.map → internal-error-2fJ9fcZX.d.mts.map} +1 -1
  156. package/dist/{internal-error-BIc-ehme-ouBQPoEL.mjs → internal-error-ChGYPVpq-DhUD05u0.mjs} +3 -3
  157. package/dist/internal-error-ChGYPVpq-DhUD05u0.mjs.map +1 -0
  158. package/dist/{ir-BvE7L9FK.d.mts → ir-LV4tXsw3.d.mts} +6 -5
  159. package/dist/{ir-BvE7L9FK.d.mts.map → ir-LV4tXsw3.d.mts.map} +1 -1
  160. package/dist/{ir-ChmSSAhX.mjs → ir-uDGU9vaj.mjs} +7 -53
  161. package/dist/ir-uDGU9vaj.mjs.map +1 -0
  162. package/dist/{migration-BvrgDZXw.d.mts → migration-Dluwnqe9.d.mts} +20 -3
  163. package/dist/migration-Dluwnqe9.d.mts.map +1 -0
  164. package/dist/{migration-C57VKLUY.mjs → migration-uC-bSKA4.mjs} +30 -4
  165. package/dist/migration-uC-bSKA4.mjs.map +1 -0
  166. package/dist/namespace-VUH2dgnS-By5y75h9.mjs +53 -0
  167. package/dist/namespace-VUH2dgnS-By5y75h9.mjs.map +1 -0
  168. package/dist/operations.mjs +1 -1
  169. package/dist/{parse-GbZGfMUj-BFSrD2AN.mjs → parse-bZgfjovA-BNgYhylT.mjs} +311 -55
  170. package/dist/parse-bZgfjovA-BNgYhylT.mjs.map +1 -0
  171. package/dist/{parse-0ZJjj_2N-DhQpSVmQ.d.mts → parse-djL5wker-B610mXG4.d.mts} +181 -52
  172. package/dist/parse-djL5wker-B610mXG4.d.mts.map +1 -0
  173. package/dist/psl-ast-COcYtLlz.d.mts +2 -0
  174. package/dist/psl-ast-CyvE6CR-.mjs +116 -0
  175. package/dist/psl-ast-CyvE6CR-.mjs.map +1 -0
  176. package/dist/{psl-ast-CWJQF8LA-Vr5JNPdn.d.mts → psl-ast-rY25o3Ze-ClLY3CYt.d.mts} +10 -40
  177. package/dist/psl-ast-rY25o3Ze-ClLY3CYt.d.mts.map +1 -0
  178. package/dist/psl-parser.d.mts +415 -101
  179. package/dist/psl-parser.d.mts.map +1 -1
  180. package/dist/psl-parser.mjs +2451 -537
  181. package/dist/psl-parser.mjs.map +1 -1
  182. package/dist/psl-parser__format.d.mts +8 -2
  183. package/dist/psl-parser__format.d.mts.map +1 -1
  184. package/dist/psl-parser__format.mjs +65 -34
  185. package/dist/psl-parser__format.mjs.map +1 -1
  186. package/dist/psl-parser__interpret.d.mts +98 -10
  187. package/dist/psl-parser__interpret.d.mts.map +1 -1
  188. package/dist/psl-parser__interpret.mjs +393 -2
  189. package/dist/psl-parser__interpret.mjs.map +1 -1
  190. package/dist/psl-parser__syntax.d.mts +3 -3
  191. package/dist/psl-parser__syntax.mjs +4 -43
  192. package/dist/psl-parser__tokenizer.d.mts +1 -1
  193. package/dist/psl-parser__tokenizer.mjs +1 -1
  194. package/dist/psl-printer.d.mts +7 -17
  195. package/dist/psl-printer.d.mts.map +1 -1
  196. package/dist/psl-printer.mjs +35 -104
  197. package/dist/psl-printer.mjs.map +1 -1
  198. package/dist/resolve-codec-qqMjZrmn-Cok8elAo.mjs +74 -0
  199. package/dist/resolve-codec-qqMjZrmn-Cok8elAo.mjs.map +1 -0
  200. package/dist/{resolve-domain-model-BVSb5wS5-C6Yq0dsD.d.mts → resolve-domain-model-BNr1glea-BLuR-phK.d.mts} +3 -3
  201. package/dist/resolve-domain-model-BNr1glea-BLuR-phK.d.mts.map +1 -0
  202. package/dist/{result-CBZ8X9mU.mjs → result-8OXF26MN.mjs} +14 -3
  203. package/dist/{result-CBZ8X9mU.mjs.map → result-8OXF26MN.mjs.map} +1 -1
  204. package/dist/{result-Bpupv5vO.d.mts → result-BYCOANWy.d.mts} +4 -2
  205. package/dist/result-BYCOANWy.d.mts.map +1 -0
  206. package/dist/runtime-B-YYuWy2.d.mts +899 -0
  207. package/dist/runtime-B-YYuWy2.d.mts.map +1 -0
  208. package/dist/runtime-DSYSc98Y.mjs +1059 -0
  209. package/dist/runtime-DSYSc98Y.mjs.map +1 -0
  210. package/dist/runtime-error-CO4MA3Px-YW5SCUcH.d.mts +19 -0
  211. package/dist/runtime-error-CO4MA3Px-YW5SCUcH.d.mts.map +1 -0
  212. package/dist/{structured-error-CgiSMpdU.mjs → structured-error-BXbihKQ-.mjs} +3 -3
  213. package/dist/{structured-error-CgiSMpdU.mjs.map → structured-error-BXbihKQ-.mjs.map} +1 -1
  214. package/dist/{structured-error-BsNT4Hun.d.mts → structured-error-Cc7AIRsp.d.mts} +19 -5
  215. package/dist/structured-error-Cc7AIRsp.d.mts.map +1 -0
  216. package/dist/suppress-idle-connection-errors-CKrTbp5P.d.mts +18 -0
  217. package/dist/suppress-idle-connection-errors-CKrTbp5P.d.mts.map +1 -0
  218. package/dist/suppress-idle-connection-errors-DzApeUb3.mjs +22 -0
  219. package/dist/suppress-idle-connection-errors-DzApeUb3.mjs.map +1 -0
  220. package/dist/temporal-presets-5TK1pTYJ-DmhrnMP1.mjs +1276 -0
  221. package/dist/temporal-presets-5TK1pTYJ-DmhrnMP1.mjs.map +1 -0
  222. package/dist/temporal-presets-BuMqk7h8-DZSuu4Z_.d.mts +258 -0
  223. package/dist/temporal-presets-BuMqk7h8-DZSuu4Z_.d.mts.map +1 -0
  224. package/dist/text-C3TTEtgd.mjs +35 -0
  225. package/dist/text-C3TTEtgd.mjs.map +1 -0
  226. package/dist/text-C8_-rheN.d.mts +15 -0
  227. package/dist/text-C8_-rheN.d.mts.map +1 -0
  228. package/dist/{tokenizer-1hAHZzmp-QGPORvmA.mjs → tokenizer-C-GTKKjR-B1vOzJy0.mjs} +54 -10
  229. package/dist/tokenizer-C-GTKKjR-B1vOzJy0.mjs.map +1 -0
  230. package/dist/{tokenizer-DcYI0Xrq-C-nNE9mE.d.mts → tokenizer-i8RaVWVa-7fRwlCPP.d.mts} +9 -4
  231. package/dist/tokenizer-i8RaVWVa-7fRwlCPP.d.mts.map +1 -0
  232. package/dist/ts-render.d.mts +2 -2
  233. package/dist/ts-render.mjs +2 -2
  234. package/dist/type-constructor-calls-BLf-HsFy-D_jbIqj8.mjs +261 -0
  235. package/dist/type-constructor-calls-BLf-HsFy-D_jbIqj8.mjs.map +1 -0
  236. package/dist/{types-BnH4zYvN.mjs → types-B8ULzMAX.mjs} +36 -3
  237. package/dist/types-B8ULzMAX.mjs.map +1 -0
  238. package/dist/types-GNXJ7xW2.d.mts +131 -0
  239. package/dist/types-GNXJ7xW2.d.mts.map +1 -0
  240. package/dist/{types-import-spec-3mjbVBhI-DQI6BvKU.d.mts → types-import-spec-DQjfX-gM-zVncuzs0.d.mts} +6 -6
  241. package/dist/types-import-spec-DQjfX-gM-zVncuzs0.d.mts.map +1 -0
  242. package/dist/utils.d.mts +7 -5
  243. package/dist/utils.mjs +9 -7
  244. package/dist/utils__assertions.mjs +1 -1
  245. package/dist/utils__hash-content.d.mts +1 -1
  246. package/dist/utils__hash-content.mjs +1 -1
  247. package/dist/utils__internal-error.d.mts +1 -1
  248. package/dist/utils__internal-error.mjs +1 -1
  249. package/dist/utils__result.d.mts +2 -2
  250. package/dist/utils__result.mjs +2 -2
  251. package/dist/utils__structured-error.d.mts +2 -2
  252. package/dist/utils__structured-error.mjs +1 -1
  253. package/dist/utils__suppress-idle-connection-errors.d.mts +2 -0
  254. package/dist/utils__suppress-idle-connection-errors.mjs +2 -0
  255. package/dist/utils__text.d.mts +2 -0
  256. package/dist/utils__text.mjs +2 -0
  257. package/dist/{validate-domain-BNBs-TVv.d.mts → validate-domain-B5kmlBFB.d.mts} +10 -6
  258. package/dist/validate-domain-B5kmlBFB.d.mts.map +1 -0
  259. package/dist/{validate-domain-BkvFlY3B.mjs → validate-domain-CbXHDYpF.mjs} +43 -22
  260. package/dist/validate-domain-CbXHDYpF.mjs.map +1 -0
  261. package/dist/validate-once-D-IwXHYP.mjs +42 -0
  262. package/dist/validate-once-D-IwXHYP.mjs.map +1 -0
  263. package/dist/validate-once-gfCOHsDh.d.mts +16 -0
  264. package/dist/validate-once-gfCOHsDh.d.mts.map +1 -0
  265. package/package.json +24 -20
  266. package/dist/apply-specifier-default-control-policy-CAxiXxKg.d.mts.map +0 -1
  267. package/dist/authoring-B2H-9qCv.d.mts +0 -1
  268. package/dist/canonicalization-path-match-CNgHuwM_-CCPBeUuk.mjs +0 -25
  269. package/dist/canonicalization-path-match-CNgHuwM_-CCPBeUuk.mjs.map +0 -1
  270. package/dist/capabilities-BCEONw9w-C-lo3rF8.mjs +0 -120
  271. package/dist/capabilities-BCEONw9w-C-lo3rF8.mjs.map +0 -1
  272. package/dist/codec-Cd0QcxAx.mjs +0 -63
  273. package/dist/codec-Cd0QcxAx.mjs.map +0 -1
  274. package/dist/codec-Ce07W3Mz.d.mts +0 -112
  275. package/dist/codec-Ce07W3Mz.d.mts.map +0 -1
  276. package/dist/codec-types-D6VRj2RE-BLElXc-O.d.mts +0 -223
  277. package/dist/codec-types-D6VRj2RE-BLElXc-O.d.mts.map +0 -1
  278. package/dist/codec-types-DcNvNeY1-BO6kUiH0.mjs +0 -30
  279. package/dist/codec-types-DcNvNeY1-BO6kUiH0.mjs.map +0 -1
  280. package/dist/components-CGA_WwEG.d.mts +0 -50
  281. package/dist/components-CGA_WwEG.d.mts.map +0 -1
  282. package/dist/components-dZRz3T5y.mjs.map +0 -1
  283. package/dist/config-types-BqhNxw0z.mjs +0 -67
  284. package/dist/config-types-BqhNxw0z.mjs.map +0 -1
  285. package/dist/config-types-CW4PDwMC.d.mts.map +0 -1
  286. package/dist/config-validation-DPt5hwQx.mjs +0 -168
  287. package/dist/config-validation-DPt5hwQx.mjs.map +0 -1
  288. package/dist/config-validation-Wiqew2J9.d.mts +0 -21
  289. package/dist/config-validation-Wiqew2J9.d.mts.map +0 -1
  290. package/dist/config__config-validation.d.mts +0 -2
  291. package/dist/config__config-validation.mjs +0 -2
  292. package/dist/contract-types-CkdMH7F7-9EHXSwbH.d.mts.map +0 -1
  293. package/dist/contract-validation-error-DEiWp_EI-CRwtUgRw.mjs.map +0 -1
  294. package/dist/contract-validation-error-R7cMoK04.d.mts.map +0 -1
  295. package/dist/control-BD96JZi8-NUhO5Kkw.mjs.map +0 -1
  296. package/dist/control-BF8qzdnM.d.mts.map +0 -1
  297. package/dist/control-DLEm6u5m.mjs.map +0 -1
  298. package/dist/control-ql9N9u4f-r3Vv41kZ.d.mts.map +0 -1
  299. package/dist/declarations-DR6To8_k-BFwkCGeP.mjs.map +0 -1
  300. package/dist/dist-Dqbo77p7.mjs.map +0 -1
  301. package/dist/domain-envelope-D6Wn9AmZ-BqZKTT9U.d.mts.map +0 -1
  302. package/dist/emission-CmUO03gQ.d.mts +0 -2
  303. package/dist/emission-types-DLXP34Ki-CFms3VrX.d.mts.map +0 -1
  304. package/dist/enum-accessor-Db5DaTNX.mjs +0 -35
  305. package/dist/enum-accessor-Db5DaTNX.mjs.map +0 -1
  306. package/dist/enum-accessor-PH5vjghI.d.mts +0 -85
  307. package/dist/enum-accessor-PH5vjghI.d.mts.map +0 -1
  308. package/dist/execution-Crk6IfTs.mjs +0 -218
  309. package/dist/execution-Crk6IfTs.mjs.map +0 -1
  310. package/dist/execution-Cyl2dXxX.d.mts +0 -115
  311. package/dist/execution-Cyl2dXxX.d.mts.map +0 -1
  312. package/dist/framework-authoring-BhctBwih-DQ_6noDM.d.mts +0 -777
  313. package/dist/framework-authoring-BhctBwih-DQ_6noDM.d.mts.map +0 -1
  314. package/dist/framework-authoring-CDEvlouU-DKklu-fL.mjs +0 -698
  315. package/dist/framework-authoring-CDEvlouU-DKklu-fL.mjs.map +0 -1
  316. package/dist/framework-components-hZ2tO-KH-CdRXBOYd.d.mts.map +0 -1
  317. package/dist/hash-content-Bugg_nZn.mjs.map +0 -1
  318. package/dist/hashing-BtIZVNYX.mjs.map +0 -1
  319. package/dist/hashing-CccSPELN.d.mts +0 -25
  320. package/dist/hashing-CccSPELN.d.mts.map +0 -1
  321. package/dist/hashing-utils-DQgS3nOe.mjs.map +0 -1
  322. package/dist/index-CDk9yEbw.d.mts.map +0 -1
  323. package/dist/internal-error-BIc-ehme-ouBQPoEL.mjs.map +0 -1
  324. package/dist/ir-ChmSSAhX.mjs.map +0 -1
  325. package/dist/migration-BvrgDZXw.d.mts.map +0 -1
  326. package/dist/migration-C57VKLUY.mjs.map +0 -1
  327. package/dist/parse-0ZJjj_2N-DhQpSVmQ.d.mts.map +0 -1
  328. package/dist/parse-GbZGfMUj-BFSrD2AN.mjs.map +0 -1
  329. package/dist/psl-ast-BXZoFQBk.d.mts +0 -37
  330. package/dist/psl-ast-BXZoFQBk.d.mts.map +0 -1
  331. package/dist/psl-ast-CWJQF8LA-Vr5JNPdn.d.mts.map +0 -1
  332. package/dist/psl-ast-DUCvVXbB.mjs +0 -239
  333. package/dist/psl-ast-DUCvVXbB.mjs.map +0 -1
  334. package/dist/psl-parser__syntax.mjs.map +0 -1
  335. package/dist/resolve-codec-BZF8TZh_-D-xORT9Q.mjs +0 -59
  336. package/dist/resolve-codec-BZF8TZh_-D-xORT9Q.mjs.map +0 -1
  337. package/dist/resolve-domain-model-BVSb5wS5-C6Yq0dsD.d.mts.map +0 -1
  338. package/dist/result-Bpupv5vO.d.mts.map +0 -1
  339. package/dist/runtime-BqzioOmU.mjs +0 -670
  340. package/dist/runtime-BqzioOmU.mjs.map +0 -1
  341. package/dist/runtime-Cuxw8obj.d.mts +0 -1038
  342. package/dist/runtime-Cuxw8obj.d.mts.map +0 -1
  343. package/dist/structured-error-BsNT4Hun.d.mts.map +0 -1
  344. package/dist/symbol-table-CZ7EVCTL-CR-ncCpD.d.mts +0 -125
  345. package/dist/symbol-table-CZ7EVCTL-CR-ncCpD.d.mts.map +0 -1
  346. package/dist/tokenizer-1hAHZzmp-QGPORvmA.mjs.map +0 -1
  347. package/dist/tokenizer-DcYI0Xrq-C-nNE9mE.d.mts.map +0 -1
  348. package/dist/types-BnH4zYvN.mjs.map +0 -1
  349. package/dist/types-ByeQhU9p.d.mts +0 -17
  350. package/dist/types-ByeQhU9p.d.mts.map +0 -1
  351. package/dist/types-import-spec-3mjbVBhI-DQI6BvKU.d.mts.map +0 -1
  352. package/dist/utils-DMAM0unR.mjs.map +0 -1
  353. package/dist/validate-domain-BNBs-TVv.d.mts.map +0 -1
  354. package/dist/validate-domain-BkvFlY3B.mjs.map +0 -1
@@ -1,158 +1,472 @@
1
- import { c as CodecLookup } from "./codec-types-D6VRj2RE-BLElXc-O.mjs";
2
- import { B as PslExtensionBlockParamList, F as PslDiagnosticCode, G as PslPosition, H as PslExtensionBlockParamRef, I as PslExtensionBlock, K as PslSpan, L as PslExtensionBlockAttribute, R as PslExtensionBlockAttributeArg, U as PslExtensionBlockParamScalarValue, V as PslExtensionBlockParamOption, W as PslExtensionBlockParamValue, b as AuthoringPslBlockDescriptorNamespace, y as AuthoringPslBlockDescriptor, z as PslExtensionBlockParamBare } from "./framework-authoring-BhctBwih-DQ_6noDM.mjs";
3
- import "./authoring-B2H-9qCv.mjs";
4
- import "./codec-Ce07W3Mz.mjs";
5
- import { M as namespacePslExtensionBlocks, T as PslTypesBlock, a as PslAttributeArgument, b as PslNamedTypeDeclaration, c as PslAttributeTarget, d as PslDefaultLiteralValue, f as PslDefaultValue, g as PslFieldAttribute, h as PslField, i as PslAttribute, k as flatPslModels, l as PslCompositeType, m as PslDocumentAst, o as PslAttributeNamedArgument, p as PslDiagnostic, s as PslAttributePositionalArgument, u as PslDefaultFunctionValue, v as PslModel, w as PslTypeConstructorCall, x as PslNamespace, y as PslModelAttribute } from "./psl-ast-CWJQF8LA-Vr5JNPdn.mjs";
6
- import { r as Result } from "./result-Bpupv5vO.mjs";
7
- import "./psl-ast-BXZoFQBk.mjs";
8
- import { C as ModelAttributeAst, I as SourceFile, f as ExpressionAst, n as AstNode, p as FieldAttributeAst, r as AttributeArgAst } from "./parse-0ZJjj_2N-DhQpSVmQ.mjs";
9
- import { _ as nodePslSpan, a as ModelSymbol, b as readResolvedAttributes, c as ResolvedAttribute, d as ResolvedTypeConstructorCall, f as SymbolTable, g as keywordPslSpan, h as buildSymbolTable, i as FieldSymbol, l as ResolvedAttributeArg, m as TopLevelScope, n as BuildSymbolTableOptions, o as NamedTypeSymbol, p as SymbolTableResult, r as CompositeTypeSymbol, s as NamespaceSymbol, t as BlockSymbol, u as ResolvedNamedTypeBinding, v as rangeToPslSpan, x as readResolvedConstructorCall, y as readResolvedAttribute } from "./symbol-table-CZ7EVCTL-CR-ncCpD.mjs";
10
- import { n as UnionToIntersection, t as Simplify } from "./types-DGxlljKG.mjs";
1
+ import { T as DataTypeValue, v as DataTypeId } from "./codec-types-CPgEZoIq-BL9hisr8.mjs";
2
+ import { r as Result } from "./result-BYCOANWy.mjs";
3
+ import { A as AuthoringTypeAliasDescriptor, Dt as WrittenScalar, E as AuthoringPslBlockDescriptorNamespace, K as DataTypeSupport, M as AuthoringTypeConstructorDescriptor, P as AuthoringTypeNamespace, T as AuthoringPslBlockDescriptor, U as ControlMutationDefaultRegistry, _t as PslPosition, ct as ParsedPslExtensionBlock, dt as PslDiagnosticCode, ft as PslExtensionBlock, gt as PslExtensionBlockPrintEntry, ht as PslExtensionBlockParsedAttribute, it as GeneratorPhase, mt as PslExtensionBlockAttributeArg, pt as PslExtensionBlockAttribute, tt as GeneratorFunctionRegistry, vt as PslSpan } from "./framework-authoring-DDxddXZm-uZYdhoE0.mjs";
4
+ import "./authoring-CjwinhU5.mjs";
5
+ import "./codec-B4ypaota.mjs";
6
+ import "./components-CRBcIta_.mjs";
7
+ import { C as PslTypesBlock, O as flatPslModels, S as PslTypeConstructorCall, _ as PslModelAttribute, a as PslAttributePositionalArgument, c as PslDefaultFunctionValue, f as PslDocumentAst, g as PslModel, i as PslAttributeNamedArgument, j as namespacePslExtensionBlocks, l as PslDefaultLiteralValue, m as PslFieldAttribute, n as PslAttribute, o as PslAttributeTarget, p as PslField, r as PslAttributeArgument, s as PslCompositeType, u as PslDefaultValue, v as PslNamedTypeDeclaration, y as PslNamespace } from "./psl-ast-rY25o3Ze-ClLY3CYt.mjs";
8
+ import { r as AssembledAuthoringContributions } from "./control-s5ECUABR.mjs";
9
+ import "./psl-ast-COcYtLlz.mjs";
10
+ import { i as isPslIdentifier } from "./tokenizer-i8RaVWVa-7fRwlCPP.mjs";
11
+ import { B as PslDiagnosticCollector, D as ModelAttributeAst, V as PslSources, Y as SyntaxNode, at as diagnosticFromSpan, d as DiagnosticSource, m as FieldAttributeAst, n as AstNode, ot as diagnosticSource, p as ExpressionAst, pt as mapPslDiagnostics, r as AttributeArgAst, rt as createPslDiagnosticCollector, z as PslDiagnostic } from "./parse-djL5wker-B610mXG4.mjs";
12
+ import { $ as ModelSymbol, A as DescribeUnresolvedType, At as SymbolTableResult, B as FixedStrArgType, Bt as contributedTypeOf, C as ContributedTypeNamespace, Ct as ResolvedAttributeArg, D as CtxOf, Dt as Scope, E as CreateBinderInput, Et as ResolvedTypeConstructorCall, F as FieldAttributeCtx, Ft as UnrestrictedNumArgType, G as InferAttr, Gt as matchesSelector, H as FuncCallSig, Ht as entityReference, I as FieldRefArgType, It as UnrestrictedStrArgType, J as JsonArgType, Jt as readResolvedAttribute, K as InspectableArgType, Kt as memberEntries, L as FieldSymbol, Lt as UnsupportedAttribute, M as EntityDeclaration, Mt as TypedFuncCall, N as EntityRefArgType, Nt as UnresolvedTypeReference, O as DataTypeValueArgType, Ot as ScopeResolution, P as EntitySelector, Pt as UnrestrictedIdentifierArgType, Q as ModelAttributeCtx, R as FixedIdentifierArgType, Rt as buildSymbolTable, S as ContributedTypeDescriptor, St as ResolvedAttribute, T as ContributedTypeSymbol, Tt as ResolvedNamedTypeBinding, U as FunctionSymbol, Ut as isNamespaceLike, V as FuncCallArgType, Vt as createBinder, W as IdentifierArgType, Wt as keywordPslSpan, X as ListArgType, Xt as readResolvedConstructorCall, Y as JsonValueArgType, Yt as readResolvedAttributes, Z as MixinSymbol, Zt as typeReferenceNode, _ as CompositeTypeSymbol, _t as RecordArgType, a as AttributeLevel, at as NumLiteralArgType, b as ContributedMember, bt as RequiredContextFor, c as AttributeSymbol, ct as OutOf, d as BinderResult, dt as ParameterSymbol, et as NamedOut, f as BlockAttributeCtx, ft as ParsedTaggedLiteral, g as BuildSymbolTableOptions, gt as PslSymbol, h as BoundSpec, ht as PositionalParam, i as AttributeCtx, it as NumLiteral, j as DescribeUnsupportedAttribute, jt as TaggedLiteralArgType, k as DeclarationFor, kt as SymbolTable, l as Binder, lt as PSL_UNRESOLVED_REFERENCE, m as BoolArgType, mt as PosOut, n as ArgType, nt as NamespaceSymbol, o as AttributeOut, ot as OneOfArgType, p as BlockSymbol, pt as ParsedTypedValue, q as IntArgType, qt as nodePslSpan, r as ArgTypeKind, rt as NullArgType, s as AttributeSpec, st as OptionalArgType, t as AnyArgType, tt as NamedTypeSymbol, u as BinderContext, ut as Param, v as ConstantSymbol, vt as ReferencedFieldRefArgType, w as ContributedTypeScope, wt as ResolvedEntityReference, x as ContributedNamespaceSymbol, xt as Resolution, y as ContextForRequirement, yt as RejectingArgType, z as FixedNumArgType, zt as contributedTypeCodecId } from "./binder-D_4RBHbt-BJ6VKwEZ.mjs";
11
13
  //#region ../../../1-framework/2-authoring/psl-parser/dist/index.d.mts
12
14
  //#region src/attribute-helpers.d.ts
13
15
  declare function getPositionalArgument(attribute: PslAttribute, index?: number): string | undefined;
14
16
  declare function parseQuotedStringLiteral(value: string): string | undefined;
15
17
  //#endregion
16
- //#region src/attribute-spec/types.d.ts
17
- type AttributeLevel = 'field' | 'model' | 'block';
18
- interface ArgType<T> {
19
- readonly kind: string;
20
- readonly label: string;
21
- readonly _out?: T;
22
- parse(arg: ExpressionAst, ctx: InterpretCtx): Result<T, readonly PslDiagnostic[]>;
23
- }
24
- interface InterpretCtx {
25
- readonly level: AttributeLevel;
26
- readonly sourceId: string;
27
- readonly sourceFile: SourceFile;
28
- readonly selfModel: ModelSymbol;
29
- resolveReferencedModel(): ModelSymbol | undefined;
30
- readonly field?: FieldSymbol;
31
- }
32
- interface OptionalArgType<T> extends ArgType<T> {
33
- readonly optional: true;
34
- readonly hasDefault: boolean;
35
- readonly defaultValue?: T;
36
- }
37
- type Param<T> = ArgType<T>;
38
- interface PositionalParam<T = unknown> {
39
- readonly key: string;
40
- readonly type: Param<T>;
41
- }
42
- interface AttributeSpec<Out> {
43
- readonly level: AttributeLevel;
18
+ //#region src/block-spec/types.d.ts
19
+ interface BlockSpecContext {
20
+ readonly symbols: SymbolTable;
21
+ readonly dataTypes: DataTypeSupport;
22
+ }
23
+ interface BlockEntryValueSpec {
24
+ readonly type: ArgType<unknown, BlockAttributeCtx>;
25
+ readonly documentation: string;
26
+ }
27
+ interface StructBlockSpec<Out = unknown> {
28
+ readonly mode: 'struct';
29
+ readonly parameters: Readonly<Record<string, Param<unknown, BlockAttributeCtx>>>;
30
+ readonly _out?: Out;
31
+ }
32
+ interface MapBlockSpec<Out = unknown> {
33
+ readonly mode: 'map';
34
+ readonly value: BlockEntryValueSpec;
35
+ readonly allowBare: boolean;
36
+ readonly _out?: Out;
37
+ }
38
+ type BlockSpec<Out = unknown> = StructBlockSpec<Out> | MapBlockSpec<Out>;
39
+ type InferBlock<S> = S extends BlockSpec<infer Out> ? Out : never;
40
+ type BlockSpecFactory = (ctx: BlockSpecContext) => BlockSpec<Readonly<Record<string, unknown>>>;
41
+ //#endregion
42
+ //#region src/attribute-spec/spec-context.d.ts
43
+ interface AttributeSpecContext {
44
+ readonly symbols: SymbolTable;
45
+ readonly model: ModelSymbol | MixinSymbol;
46
+ readonly defaultFunctionRegistry: ControlMutationDefaultRegistry;
47
+ readonly generatorFunctions: GeneratorFunctionRegistry;
48
+ readonly dataTypes: DataTypeSupport;
49
+ }
50
+ /** The data types of a stack that registers none. */
51
+ declare const EMPTY_DATA_TYPES: DataTypeSupport;
52
+ interface FieldAttributeSpecContext extends AttributeSpecContext {
53
+ readonly field: FieldSymbol;
54
+ readonly typeResolution: Resolution | undefined;
55
+ /** The type constructor or field preset the field's type resolves to, through a named type when it is declared with one. */
56
+ readonly typeConstructor: ContributedTypeSymbol | undefined;
57
+ }
58
+ /** The declaration an attribute that reads its type is written on: a field, or a type alias whose fields take the attribute. */
59
+ interface TypeAttributeSubject {
60
+ readonly kind: 'field' | 'type alias';
61
+ /** `Model.field` for a field; the alias's name for a type alias. */
44
62
  readonly name: string;
45
- readonly positional: readonly PositionalParam[];
46
- readonly named: Readonly<Record<string, Param<unknown>>>;
47
- /**
48
- * Cross-argument validation after all arguments parse. `attributeNode` is
49
- * the attribute's own AST node so refines can span-anchor their
50
- * diagnostics at the attribute rather than the enclosing model.
51
- */
52
- readonly refine?: (parsed: Out, ctx: InterpretCtx, attributeNode: AstNode) => readonly PslDiagnostic[];
53
- }
54
- type OutOf<P> = P extends ArgType<infer T> ? T : never;
55
- type NamedOut<N extends Record<string, Param<unknown>>> = Simplify<{ [K in keyof N as N[K] extends OptionalArgType<unknown> ? never : K]: OutOf<N[K]>; } & { [K in keyof N as N[K] extends OptionalArgType<unknown> ? K : never]?: OutOf<N[K]>; }>;
56
- type PosEntryObject<E extends PositionalParam> = E['type'] extends OptionalArgType<unknown> ? { [K in E['key']]?: OutOf<E['type']>; } : { [K in E['key']]: OutOf<E['type']>; };
57
- type PosOut<Pos extends readonly PositionalParam[]> = Simplify<UnionToIntersection<{ [I in keyof Pos]: PosEntryObject<Pos[I]>; }[number]>>;
58
- type AttributeOut<Pos extends readonly PositionalParam[], Named extends Record<string, Param<unknown>>> = Simplify<PosOut<Pos> & NamedOut<Named>>;
59
- type InferAttr<S> = S extends AttributeSpec<infer Out> ? Out : never;
63
+ }
64
+ /** How a diagnostic names a subject, as in `Field "Post.slug"` or `Type alias "Slug"`. */
65
+ declare function typeAttributeSubjectLabel(subject: TypeAttributeSubject): string;
66
+ /** What `@default`, `@onCreate` and `@onUpdate` are checked against: the type of the field or type alias they are written on. */
67
+ interface TypeAttributeSpecContext extends Omit<AttributeSpecContext, 'model'> {
68
+ readonly subject: TypeAttributeSubject;
69
+ readonly list: boolean;
70
+ /** The type as written, such as an enum's name. */
71
+ readonly typeName: string;
72
+ readonly typeResolution: Resolution | undefined;
73
+ /** The type constructor or field preset the type resolves to, through a named type when it is declared with one. */
74
+ readonly typeConstructor: ContributedTypeSymbol | undefined;
75
+ }
76
+ declare function typeAttributeSpecContextOfField(ctx: FieldAttributeSpecContext): TypeAttributeSpecContext;
77
+ type ModelAttributeSpecFactory = (ctx: AttributeSpecContext) => AttributeSpec<never, ModelAttributeCtx>;
78
+ type FieldAttributeSpecFactory = (ctx: FieldAttributeSpecContext) => AttributeSpec<never, FieldAttributeCtx>;
79
+ interface AttributeSpecNamespace {
80
+ readonly model: Readonly<Record<string, ModelAttributeSpecFactory>>;
81
+ readonly field: Readonly<Record<string, FieldAttributeSpecFactory>>;
82
+ }
83
+ type BlockAttributeSpecFactory = (ctx: BlockSpecContext) => AttributeSpec<never, BlockAttributeCtx>;
84
+ //#endregion
85
+ //#region src/attribute-spec/assemble.d.ts
86
+ interface AssembledAttributeSpecs {
87
+ readonly model: Readonly<Record<string, ModelAttributeSpecFactory>>;
88
+ readonly field: Readonly<Record<string, FieldAttributeSpecFactory>>;
89
+ }
90
+ declare function assembleAttributeSpecs(contributions: AssembledAuthoringContributions): AssembledAttributeSpecs;
91
+ //#endregion
92
+ //#region src/attribute-spec/block-attribute.d.ts
93
+ interface BlockAttributeConfig<Pos extends readonly PositionalParam<unknown, BlockAttributeCtx>[], Named extends Record<string, Param<unknown, BlockAttributeCtx>>> {
94
+ readonly documentation: string;
95
+ readonly positional?: Pos;
96
+ readonly named?: Named;
97
+ readonly refine?: (parsed: AttributeOut<Pos, Named>, ctx: BlockAttributeCtx, attributeNode: AstNode) => readonly PslDiagnostic[];
98
+ }
99
+ declare function blockAttribute<const Pos extends readonly PositionalParam<unknown, BlockAttributeCtx>[] = readonly [], const Named extends Record<string, Param<unknown, BlockAttributeCtx>> = Record<never, never>>(name: string, config: BlockAttributeConfig<Pos, Named>): AttributeSpec<AttributeOut<Pos, Named>, BlockAttributeCtx>;
60
100
  //#endregion
61
101
  //#region src/attribute-spec/combinators/bool.d.ts
62
- declare function bool(): ArgType<boolean>;
102
+ declare function bool(): BoolArgType<AttributeCtx>;
103
+ //#endregion
104
+ //#region src/attribute-spec/combinators/data-type-value.d.ts
105
+ /** An argument typed by a data type: any literal, admitted by the ADR 254 cast rule. Used as a parameter of an attribute, a block or a `funcCall`; `oneOf` refuses it as an arm. ADR 231, ADR 254, ADR 268. */
106
+ declare function dataTypeValue(dataType: DataTypeId, support: DataTypeSupport, options?: {
107
+ /** Written values offered for completion besides the tags. */
108
+ readonly suggestions?: readonly string[];
109
+ /** The label shown for the argument in place of the forms its type admits, such as the values a function takes. */
110
+ readonly label?: string;
111
+ }): DataTypeValueArgType<AttributeCtx>;
63
112
  //#endregion
64
113
  //#region src/attribute-spec/combinators/diagnostic.d.ts
65
- declare function leafDiagnostic(ctx: InterpretCtx, node: AstNode, message: string, code?: PslDiagnostic['code']): PslDiagnostic;
114
+ declare function leafDiagnostic(ctx: Pick<AttributeCtx, 'sources'>, node: AstNode, message: string, code?: PslDiagnostic['code']): PslDiagnostic;
66
115
  //#endregion
67
116
  //#region src/attribute-spec/combinators/entity-ref.d.ts
68
- declare function entityRef(): ArgType<string>;
117
+ declare function entityRef<const S extends EntitySelector>(expected: S): EntityRefArgType<DeclarationFor<S>, AttributeCtx>;
118
+ //#endregion
119
+ //#region src/attribute-spec/combinators/enum-member-value.d.ts
120
+ /**
121
+ * An enum member's written value: a string, a number, a boolean, a tagged literal, which it yields as the written value, its tag and canonical text, or a list of those. A tagged literal whose text cannot be canonicalized is refused. The block also records each member as written in `writtenValues`, from which the member reader takes it by the cast rule. ADR 254.
122
+ */
123
+ declare function enumMemberValue(): OneOfArgType<[UnrestrictedStrArgType<AttributeCtx>, UnrestrictedNumArgType<AttributeCtx>, BoolArgType<AttributeCtx>, ArgType<WrittenScalar, AttributeCtx>, {
124
+ claims: (arg: ExpressionAst) => boolean;
125
+ kind: "list";
126
+ of: ArgType<string | number | boolean | WrittenScalar, AttributeCtx>;
127
+ allowEmpty: boolean;
128
+ unique: boolean;
129
+ label: string;
130
+ parse: (arg: ExpressionAst, ctx: AttributeCtx) => Result<(string | number | boolean | WrittenScalar)[], readonly PslDiagnostic[]>;
131
+ _out?: (string | number | boolean | WrittenScalar)[];
132
+ }], AttributeCtx>;
69
133
  //#endregion
70
134
  //#region src/attribute-spec/combinators/field-ref.d.ts
71
- type FieldRefScope = 'self' | 'referenced';
72
- interface FieldRefArgType extends ArgType<string> {
73
- readonly scope: FieldRefScope;
74
- }
75
- declare function fieldRef(scope: FieldRefScope): FieldRefArgType;
135
+ declare function fieldRef(): FieldRefArgType<ModelAttributeCtx>;
136
+ declare function referencedFieldRef(): ReferencedFieldRefArgType<FieldAttributeCtx>;
76
137
  //#endregion
77
138
  //#region src/attribute-spec/combinators/func-call.d.ts
78
- interface FuncCallSig {
79
- readonly positional?: readonly PositionalParam<unknown>[];
80
- readonly named?: Readonly<Record<string, Param<unknown>>>;
81
- }
82
- interface TypedFuncCall {
83
- readonly fn: string;
84
- readonly span: PslSpan;
85
- readonly args: Readonly<Record<string, unknown>>;
86
- }
87
- declare function funcCall(name: string, sig: FuncCallSig): ArgType<TypedFuncCall>;
139
+ declare function funcCall<const Name extends string, Ctx extends AttributeCtx, const Signature extends FuncCallSig<Ctx>>(name: Name, sig: Signature & FuncCallSig<Ctx>, options?: {
140
+ readonly label?: string;
141
+ }): FuncCallArgType<Name, Ctx, Signature>;
88
142
  //#endregion
89
143
  //#region src/attribute-spec/combinators/identifier.d.ts
90
- declare function identifier<const N extends string>(name: N): ArgType<N>;
144
+ declare function identifier(): UnrestrictedIdentifierArgType<AttributeCtx>;
145
+ declare function identifier<const N extends string>(name: N, options: {
146
+ readonly documentation: string;
147
+ }): FixedIdentifierArgType<N, AttributeCtx>;
91
148
  //#endregion
92
149
  //#region src/attribute-spec/combinators/int.d.ts
93
150
  declare function int(opts?: {
94
151
  min?: number;
95
152
  max?: number;
96
- }): ArgType<number>;
153
+ }): IntArgType<AttributeCtx>;
154
+ //#endregion
155
+ //#region src/attribute-spec/combinators/json.d.ts
156
+ /**
157
+ * Reads an opaque JSON object from a quoted JSON string — the ADR's one text-encoded surface
158
+ * exception (e.g. an index `filter` / `weights` argument). The string is decoded by the parser,
159
+ * then JSON-parsed; a non-object (array/scalar) or invalid JSON is a diagnostic.
160
+ */
161
+ declare function json(): JsonArgType<AttributeCtx>;
162
+ //#endregion
163
+ //#region src/attribute-spec/combinators/json-value.d.ts
164
+ declare function jsonValue(): JsonValueArgType<AttributeCtx>;
97
165
  //#endregion
98
166
  //#region src/attribute-spec/combinators/list.d.ts
99
167
  interface ListOptions {
100
- readonly nonEmpty?: boolean;
168
+ readonly allowEmpty?: boolean;
101
169
  readonly unique?: boolean;
170
+ /** How the list reads in an "expected one of" message. Defaults to the element label plus `[]`, which is unreadable when the element label is itself a list of alternatives. */
171
+ readonly label?: string;
102
172
  }
103
- declare function list<T>(of: ArgType<T>, opts?: ListOptions): ArgType<T[]>;
173
+ declare function list<T, Ctx extends AttributeCtx>(of: ArgType<T, Ctx>, opts?: ListOptions): ListArgType<T, Ctx>;
174
+ //#endregion
175
+ //#region src/attribute-spec/combinators/map-arg.d.ts
176
+ /**
177
+ * `arm`, with the value it parses passed through `map`. The result keeps the arm's `kind`, `label`
178
+ * and metadata, which describe the syntax it accepts for tooling, not its output. A refusal passes
179
+ * through unchanged.
180
+ */
181
+ declare function mapArg<In, Out, Ctx extends AttributeCtx>(arm: ArgType<In, Ctx>, map: (value: In, arg: ExpressionAst, ctx: Ctx) => Out): ArgType<Out, Ctx>;
182
+ /**
183
+ * `arm`, with the value it parses passed through `refine`, which may refuse it. The result keeps the arm's `kind`, `label` and metadata, as `mapArg` does. A refusal of the arm passes through without running `refine`.
184
+ */
185
+ declare function refineArg<In, Out, Ctx extends AttributeCtx>(arm: ArgType<In, Ctx>, refine: (value: In, arg: ExpressionAst, ctx: Ctx) => Result<Out, readonly PslDiagnostic[]>): ArgType<Out, Ctx>;
104
186
  //#endregion
105
187
  //#region src/attribute-spec/combinators/num.d.ts
106
- declare function num(): ArgType<number>;
107
- declare function num(value: number): ArgType<number>;
188
+ /** The pinned form retains its value as the output literal type. */
189
+ declare function num(): UnrestrictedNumArgType<AttributeCtx>;
190
+ declare function num<const T extends number>(value: T): FixedNumArgType<T, AttributeCtx>;
191
+ //#endregion
192
+ //#region src/attribute-spec/combinators/num-literal.d.ts
193
+ /** A number literal kept as its source text, for consumers that must not round it through a JS number. */
194
+ declare function numLiteral(): NumLiteralArgType<AttributeCtx>;
108
195
  //#endregion
109
196
  //#region src/attribute-spec/combinators/one-of.d.ts
110
- declare function oneOf<Alts extends readonly [ArgType<unknown>, ...ArgType<unknown>[]]>(...alts: Alts): ArgType<OutOf<Alts[number]>>;
197
+ /**
198
+ * The first alternative that accepts the argument. When exactly one alternative claims the argument's shape, its result, success or failure, so its diagnostics about the argument are kept.
199
+ */
200
+ declare function oneOf<Alts extends readonly [AnyArgType, ...AnyArgType[]]>(...alts: Alts): OneOfArgType<Alts, ContextForRequirement<RequiredContextFor<CtxOf<Alts[number]>>>>;
111
201
  //#endregion
112
202
  //#region src/attribute-spec/combinators/record.d.ts
113
- declare function record<T>(of: ArgType<T>): ArgType<Record<string, T>>;
203
+ declare function record<T, Ctx extends AttributeCtx>(of: ArgType<T, Ctx>): RecordArgType<T, Ctx>;
114
204
  //#endregion
115
205
  //#region src/attribute-spec/combinators/str.d.ts
116
- declare function str(): ArgType<string>;
206
+ /** The pinned form retains its value as the output literal type. */
207
+ declare function str(): UnrestrictedStrArgType<AttributeCtx>;
208
+ declare function str<const T extends string>(value: T): FixedStrArgType<T, AttributeCtx>;
209
+ //#endregion
210
+ //#region src/attribute-spec/combinators/tagged-literal.d.ts
211
+ /**
212
+ * A `` tag`...` ``, `tag"..."`, or `tag'...'` argument. `tags` and `documentation` describe the
213
+ * registered tags for tooling; parsing accepts any tag.
214
+ */
215
+ declare function taggedLiteral(tags: readonly string[], options: {
216
+ readonly documentation: string;
217
+ }): TaggedLiteralArgType<AttributeCtx>;
218
+ //#endregion
219
+ //#region src/attribute-spec/combinators/written-scalar.d.ts
220
+ /** A literal argument read as a written scalar, with its span. A tagged literal whose text cannot be canonicalized has no `written` value and carries why. */
221
+ type ParsedWrittenScalar = {
222
+ readonly kind: 'scalar';
223
+ readonly written: WrittenScalar;
224
+ readonly span: PslSpan;
225
+ } | {
226
+ readonly kind: 'scalar';
227
+ readonly written: undefined;
228
+ readonly reason: 'nul' | 'too-large';
229
+ readonly span: PslSpan;
230
+ };
231
+ /**
232
+ * `arm`, yielding the literal it accepts as a written scalar with its span, so a consumer that reads
233
+ * the value by the cast rule reports at the value. `arm` must accept only literals. The result keeps
234
+ * the arm's `kind` and metadata, which describe the syntax it accepts for tooling, not its output.
235
+ * ADR 231, ADR 254.
236
+ */
237
+ declare function writtenScalar<Ctx extends AttributeCtx>(arm: ArgType<unknown, Ctx>): ArgType<ParsedWrittenScalar, Ctx>;
238
+ /** A written list with its span, so a refusal about the whole list is reported at it. */
239
+ interface ParsedWrittenList<Element = ParsedWrittenScalar> {
240
+ readonly kind: 'list';
241
+ readonly elements: readonly Element[];
242
+ readonly span: PslSpan;
243
+ }
244
+ /** A list of the elements `of` yields, with the span of the whole list. ADR 254. */
245
+ declare function writtenList<Element, Ctx extends AttributeCtx>(of: ArgType<Element, Ctx>): ArgType<ParsedWrittenList<Element>, Ctx>;
117
246
  //#endregion
118
247
  //#region src/attribute-spec/field-attribute.d.ts
119
- interface FieldAttributeConfig<Pos extends readonly PositionalParam[], Named extends Record<string, Param<unknown>>> {
248
+ interface FieldAttributeConfig<Pos extends readonly PositionalParam<unknown, Ctx>[], Named extends Record<string, Param<unknown, Ctx>>, Ctx extends AttributeCtx = FieldAttributeCtx> {
249
+ readonly documentation: string;
120
250
  readonly positional?: Pos;
121
251
  readonly named?: Named;
122
- readonly refine?: (parsed: AttributeOut<Pos, Named>, ctx: InterpretCtx, attributeNode: AstNode) => readonly PslDiagnostic[];
252
+ readonly refine?: (parsed: AttributeOut<Pos, Named>, ctx: Ctx, attributeNode: AstNode) => readonly PslDiagnostic[];
123
253
  }
124
- declare function fieldAttribute<const Pos extends readonly PositionalParam[] = readonly [], const Named extends Record<string, Param<unknown>> = Record<never, never>>(name: string, config: FieldAttributeConfig<Pos, Named>): AttributeSpec<AttributeOut<Pos, Named>>;
254
+ declare function fieldAttribute<const Pos extends readonly PositionalParam<unknown, FieldAttributeCtx>[] = readonly [], const Named extends Record<string, Param<unknown, FieldAttributeCtx>> = Record<never, never>>(name: string, config: FieldAttributeConfig<Pos, Named>): AttributeSpec<AttributeOut<Pos, Named>, FieldAttributeCtx>;
255
+ /**
256
+ * A field attribute that reads only its type, never the field it is written on, so a type alias can carry it too.
257
+ */
258
+ declare function typeAttribute<const Pos extends readonly PositionalParam<unknown, AttributeCtx>[] = readonly [], const Named extends Record<string, Param<unknown, AttributeCtx>> = Record<never, never>>(name: string, config: FieldAttributeConfig<Pos, Named, AttributeCtx>): AttributeSpec<AttributeOut<Pos, Named>, AttributeCtx>;
259
+ //#endregion
260
+ //#region src/attribute-spec/generator-attribute.d.ts
261
+ /** The source text of a node, as the author wrote it. */
262
+ declare function nodeSourceText(node: AstNode, ctx: Pick<AttributeCtx, 'sources'>): string;
263
+ /**
264
+ * A call to the generator function `name`, with its signature built from the stack's data types when it is written as a function of them. Its binding diagnostics name it as a generator function.
265
+ */
266
+ declare function generatorFunctionCall(name: string, signature: unknown, dataTypes: DataTypeSupport): ArgType<TypedFuncCall, AttributeCtx>;
267
+ /** The spec of `@onCreate(fn())` or `@onUpdate(fn())` on a field or type alias, offering the generator functions bound to its codec. */
268
+ declare function typeGeneratorAttributeSpec(phase: GeneratorPhase, ctx: TypeAttributeSpecContext): AttributeSpec<{
269
+ value: TypedFuncCall;
270
+ }, AttributeCtx>;
271
+ /** The spec of `@onCreate(fn())` or `@onUpdate(fn())`, offering the generator functions bound to the field's codec. */
272
+ declare function generatorAttributeSpec(phase: GeneratorPhase): (ctx: FieldAttributeSpecContext) => AttributeSpec<{
273
+ value: TypedFuncCall;
274
+ }, AttributeCtx>;
125
275
  //#endregion
126
276
  //#region src/attribute-spec/interpret.d.ts
127
- interface ArgBindingSpec {
128
- readonly name: string;
129
- readonly positional: readonly PositionalParam<unknown>[];
130
- readonly named: Readonly<Record<string, Param<unknown>>>;
277
+ interface ArgBindingSpec<Ctx extends AttributeCtx> {
278
+ readonly label: string;
279
+ readonly positional: readonly PositionalParam<unknown, Ctx>[];
280
+ readonly named: Readonly<Record<string, Param<unknown, Ctx>>>;
131
281
  }
132
- declare function interpretArgs(args: Iterable<AttributeArgAst>, spec: ArgBindingSpec, ctx: InterpretCtx, span: PslSpan): Result<Record<string, unknown>, readonly PslDiagnostic[]>;
133
- declare function interpretAttribute<Out>(attrNode: FieldAttributeAst | ModelAttributeAst, spec: AttributeSpec<Out>, ctx: InterpretCtx): Result<Out, readonly PslDiagnostic[]>;
282
+ declare function interpretArgs<Ctx extends AttributeCtx>(args: Iterable<AttributeArgAst>, spec: ArgBindingSpec<Ctx>, ctx: Ctx, span: PslSpan, sourceNode: SyntaxNode): Result<Record<string, unknown>, readonly PslDiagnostic[]>;
283
+ declare function interpretAttribute<Out, Ctx extends AttributeCtx>(attrNode: FieldAttributeAst | ModelAttributeAst, spec: AttributeSpec<Out, Ctx>, ctx: Ctx): Result<Out, readonly PslDiagnostic[]>;
134
284
  //#endregion
135
285
  //#region src/attribute-spec/model-attribute.d.ts
136
- interface ModelAttributeConfig<Pos extends readonly PositionalParam[], Named extends Record<string, Param<unknown>>> {
286
+ interface ModelAttributeConfig<Pos extends readonly PositionalParam<unknown, ModelAttributeCtx>[], Named extends Record<string, Param<unknown, ModelAttributeCtx>>> {
287
+ readonly documentation: string;
137
288
  readonly positional?: Pos;
138
289
  readonly named?: Named;
139
- readonly refine?: (parsed: AttributeOut<Pos, Named>, ctx: InterpretCtx, attributeNode: AstNode) => readonly PslDiagnostic[];
290
+ readonly refine?: (parsed: AttributeOut<Pos, Named>, ctx: ModelAttributeCtx, attributeNode: AstNode) => readonly PslDiagnostic[];
140
291
  }
141
- declare function modelAttribute<const Pos extends readonly PositionalParam[] = readonly [], const Named extends Record<string, Param<unknown>> = Record<never, never>>(name: string, config: ModelAttributeConfig<Pos, Named>): AttributeSpec<AttributeOut<Pos, Named>>;
292
+ declare function modelAttribute<const Pos extends readonly PositionalParam<unknown, ModelAttributeCtx>[] = readonly [], const Named extends Record<string, Param<unknown, ModelAttributeCtx>> = Record<never, never>>(name: string, config: ModelAttributeConfig<Pos, Named>): AttributeSpec<AttributeOut<Pos, Named>, ModelAttributeCtx>;
142
293
  //#endregion
143
294
  //#region src/attribute-spec/optional.d.ts
144
- declare function optional<T>(type: ArgType<T>, ...rest: [defaultValue: T] | []): OptionalArgType<T>;
295
+ declare function optional<Type extends AnyArgType>(type: Type, ...rest: [] | [defaultValue: OutOf<Type> | undefined]): OptionalArgType<OutOf<Type>, CtxOf<Type>, Type>;
145
296
  //#endregion
146
- //#region src/extension-block.d.ts
147
- declare function findBlockDescriptor(descriptors: AuthoringPslBlockDescriptorNamespace | undefined, keyword: string): AuthoringPslBlockDescriptor | undefined;
148
- declare function validateExtensionBlockFromSymbol(input: {
297
+ //#region src/block-spec/constructors.d.ts
298
+ declare function structBlock<const P extends Record<string, Param<unknown, BlockAttributeCtx>>>(config: {
299
+ readonly parameters: P;
300
+ }): StructBlockSpec<NamedOut<P>>;
301
+ declare function mapBlock<R extends ArgType<unknown, BlockAttributeCtx>, Bare extends boolean = false>(config: {
302
+ readonly value: {
303
+ readonly type: R;
304
+ readonly documentation: string;
305
+ };
306
+ readonly allowBare?: Bare;
307
+ }): MapBlockSpec<Record<string, Bare extends true ? OutOf<R> | undefined : OutOf<R>>>;
308
+ //#endregion
309
+ //#region src/block-spec/descriptor.d.ts
310
+ interface PslBlockSpecDescriptor extends AuthoringPslBlockDescriptor {
311
+ readonly spec: BlockSpecFactory;
312
+ readonly attributes?: Readonly<Record<string, BlockAttributeSpecFactory>>;
313
+ }
314
+ declare function blockSpecFactoryOf(descriptor: AuthoringPslBlockDescriptor): BlockSpecFactory;
315
+ //#endregion
316
+ //#region src/block-spec/interpret.d.ts
317
+ interface InterpretExtensionBlockInput<S> {
149
318
  readonly block: BlockSymbol;
150
319
  readonly descriptor: AuthoringPslBlockDescriptor;
320
+ readonly spec: S;
321
+ readonly symbols: SymbolTable;
322
+ readonly sources: PslSources;
323
+ readonly binder: Binder;
324
+ readonly dataTypes: DataTypeSupport;
325
+ }
326
+ declare function interpretExtensionBlock<S extends BlockSpec<unknown>>(input: InterpretExtensionBlockInput<S>): Result<ParsedPslExtensionBlock<InferBlock<S>>, readonly PslDiagnostic[]>;
327
+ interface InterpretExtensionBlockAttributesInput {
328
+ readonly block: BlockSymbol;
329
+ readonly descriptor: AuthoringPslBlockDescriptor;
330
+ readonly symbols: SymbolTable;
331
+ readonly sources: PslSources;
332
+ readonly binder: Binder;
333
+ readonly dataTypes: DataTypeSupport;
334
+ }
335
+ declare function interpretExtensionBlockAttributes(input: InterpretExtensionBlockAttributesInput): {
336
+ readonly attributes: Readonly<Record<string, PslExtensionBlockParsedAttribute>>;
337
+ readonly diagnostics: readonly PslDiagnostic[];
338
+ };
339
+ interface InterpretExtensionBlocksResult {
340
+ readonly parsedBlocks: ReadonlyMap<BlockSymbol, ParsedPslExtensionBlock>;
341
+ readonly diagnostics: readonly PslDiagnostic[];
342
+ }
343
+ interface InterpretExtensionBlocksInput {
151
344
  readonly symbolTable: SymbolTable;
152
- readonly sourceFile: SourceFile;
153
- readonly sourceId: string;
154
- readonly codecLookup: CodecLookup;
155
- }): readonly PslDiagnostic[];
345
+ readonly sources: PslSources;
346
+ readonly pslBlockDescriptors: AuthoringPslBlockDescriptorNamespace;
347
+ readonly binder: Binder;
348
+ /** The data types `binder` was created with, so binding and interpretation build each block's spec from the same data types. */
349
+ readonly dataTypes: DataTypeSupport;
350
+ }
351
+ declare function interpretExtensionBlocks(input: InterpretExtensionBlocksInput): InterpretExtensionBlocksResult;
352
+ //#endregion
353
+ //#region src/block-spec/spec-context.d.ts
354
+ /** The context a block spec factory and a block-attribute spec factory are built from. ADR 262. */
355
+ declare function blockSpecContext(input: {
356
+ readonly symbols: SymbolTable;
357
+ readonly dataTypes: DataTypeSupport;
358
+ }): BlockSpecContext;
359
+ //#endregion
360
+ //#region src/extension-block.d.ts
361
+ declare function findBlockDescriptor(descriptors: AuthoringPslBlockDescriptorNamespace | undefined, keyword: string): AuthoringPslBlockDescriptor | undefined;
362
+ //#endregion
363
+ //#region src/name-the-psl-source-loses.d.ts
364
+ /**
365
+ * A name that is lost when a PSL file is read. The parser keeps block members, and the PSL contract sources keep other names, as keys of plain objects, where assigning this key sets the object's prototype instead of adding a key. Code that writes PSL must not write this name anywhere a PSL source reads a name, including inside `@map` and `@@map`.
366
+ */
367
+ declare const NAME_THE_PSL_SOURCE_LOSES = "__proto__";
368
+ //#endregion
369
+ //#region src/read-expression-as.d.ts
370
+ /** Why a written expression is not a value of a data type, worded for a diagnostic at the expression. */
371
+ interface DataTypeValueRefusal {
372
+ readonly code: PslDiagnosticCode;
373
+ readonly message: string;
374
+ }
375
+ /**
376
+ * Reads `expression` as a value of `dataType`: the literal is read through the authoring entry for its syntax, then taken into `dataType` directly or through a cast it declares. The read every argument typed by a data type takes, in an attribute or a type constructor. ADR 254.
377
+ */
378
+ declare function readExpressionAs(support: DataTypeSupport, dataType: DataTypeId, expression: ExpressionAst): Result<DataTypeValue, DataTypeValueRefusal>;
379
+ //#endregion
380
+ //#region src/schema-directive.d.ts
381
+ declare function isPrismaNextSchema(text: string): boolean;
382
+ /** The document with the directive earlier releases wrote replaced by the current one. */
383
+ declare function renameLegacyDirective(text: string): string;
384
+ //#endregion
385
+ //#region src/type-aliases.d.ts
386
+ /** The attributes a type alias may carry. Every field typed by the alias takes them. */
387
+ declare const TYPE_ALIAS_ATTRIBUTE_NAMES: ReadonlySet<string>;
388
+ /** What a type alias is written as: a type constructor, called or bare, or a block such as an enum, which its family reads. */
389
+ type TypeAliasBase = {
390
+ readonly kind: 'typeConstructor';
391
+ readonly descriptor: AuthoringTypeConstructorDescriptor;
392
+ /** `undefined` when the constructor is written bare. */
393
+ readonly call: ResolvedTypeConstructorCall | undefined;
394
+ } | {
395
+ readonly kind: 'block';
396
+ readonly symbol: BlockSymbol;
397
+ };
398
+ /** A `types {}` declaration read as a type alias: its base, one level deep, and the attributes its fields take. */
399
+ interface TypeAlias {
400
+ readonly symbol: NamedTypeSymbol;
401
+ readonly base: TypeAliasBase;
402
+ /** The base as written, such as `VarChar(64)`'s `VarChar` or an enum's name. */
403
+ readonly baseName: string;
404
+ readonly baseResolution: Resolution;
405
+ /** The alias's `@default`, `@onCreate` and `@onUpdate`. */
406
+ readonly attributes: readonly ResolvedAttribute<FieldAttributeAst>[];
407
+ }
408
+ /**
409
+ * Reads each `types {}` declaration as a type alias. A base must be a type constructor or a block; another alias, a field preset or anything else is refused, as is an alias with no base. Of the attributes, those the family accepts are kept and every other one is refused and dropped, keeping the alias, so its fields are not refused for it too.
410
+ */
411
+ declare function resolveTypeAliases(input: {
412
+ readonly declarations: readonly NamedTypeSymbol[];
413
+ readonly binder: Binder;
414
+ readonly sources: PslSources;
415
+ readonly diagnostics: PslDiagnosticCollector;
416
+ /** The stack's type constructors, which the refusal of an alias written as a contributed alias suggests from. */
417
+ readonly authoringTypes: AuthoringTypeNamespace | undefined;
418
+ /** The attributes the family lets a type alias carry; `TYPE_ALIAS_ATTRIBUTE_NAMES` by default. */
419
+ readonly acceptedAttributes?: ReadonlySet<string>;
420
+ /** The family's wording for an attribute no type alias takes, or `undefined` for the shared wording. */
421
+ readonly describeUnsupportedAttribute?: (attribute: ResolvedAttribute<FieldAttributeAst>, declaration: NamedTypeSymbol) => string | undefined;
422
+ }): Map<NamedTypeSymbol, TypeAlias>;
423
+ /** A type alias a pack contributes, such as `temporal.CreatedAt`. */
424
+ interface ContributedTypeAlias {
425
+ /** The alias's path, as a field writes it. */
426
+ readonly name: string;
427
+ readonly descriptor: AuthoringTypeAliasDescriptor;
428
+ }
429
+ /** The contributed type alias a type reference resolves to, if it resolves to one. */
430
+ declare function contributedTypeAliasOf(resolution: Resolution | undefined): ContributedTypeAlias | undefined;
431
+ /** The names of the attributes a type alias sets for every field typed by it. */
432
+ declare function typeAliasAttributeNames(alias: TypeAlias | ContributedTypeAlias): ReadonlySet<string>;
433
+ /** The type alias a field is typed by, if it is typed by one. */
434
+ declare function typeAliasOfField(field: FieldSymbol, binder: Binder, aliases: ReadonlyMap<NamedTypeSymbol, TypeAlias>): TypeAlias | undefined;
435
+ /** The spec context the attributes a type alias carries are read in, as a field's are read in its own. */
436
+ declare function typeAliasSpecContext(alias: TypeAlias, input: {
437
+ readonly symbols: SymbolTable;
438
+ readonly binder: Binder;
439
+ readonly defaultFunctionRegistry: ControlMutationDefaultRegistry;
440
+ readonly generatorFunctions: GeneratorFunctionRegistry;
441
+ readonly dataTypes: DataTypeSupport;
442
+ }): TypeAttributeSpecContext;
443
+ /**
444
+ * Refuses each attribute a field writes that its type alias already carries, at the field's attribute. Returns whether it refused any.
445
+ */
446
+ declare function refuseRepeatedTypeAliasAttributes(input: {
447
+ readonly field: FieldSymbol;
448
+ /** `Model.field`. */
449
+ readonly fieldPath: string;
450
+ readonly alias: TypeAlias | ContributedTypeAlias;
451
+ readonly sources: PslSources;
452
+ readonly diagnostics: PslDiagnosticCollector;
453
+ }): boolean;
454
+ //#endregion
455
+ //#region src/written-scalar.d.ts
456
+ /** The written scalar a PSL literal expression is, or why it is not one. */
457
+ type WrittenScalarResult = {
458
+ readonly ok: true;
459
+ readonly written: WrittenScalar;
460
+ } | {
461
+ readonly ok: false;
462
+ readonly reason: 'nul' | 'too-large';
463
+ } | {
464
+ readonly ok: false;
465
+ readonly reason: 'not-a-literal';
466
+ readonly found: 'an identifier' | 'a function call' | 'a list' | 'an object' | 'an expression';
467
+ };
468
+ /** Reads a PSL literal expression as a `WrittenScalar`, for a position that takes a value of a data type. ADR 254. */
469
+ declare function readWrittenScalar(expression: ExpressionAst): WrittenScalarResult;
156
470
  //#endregion
157
- export { type ArgBindingSpec, type ArgType, type AttributeLevel, type AttributeOut, type AttributeSpec, type BlockSymbol, type BuildSymbolTableOptions, type CompositeTypeSymbol, type FieldRefArgType, type FieldRefScope, type FieldSymbol, type FuncCallSig, type InferAttr, type InterpretCtx, type ListOptions, type ModelSymbol, type NamedOut, type NamedTypeSymbol, type NamespaceSymbol, type OptionalArgType, type OutOf, type Param, type PosOut, type PositionalParam, type PslAttribute, type PslAttributeArgument, type PslAttributeNamedArgument, type PslAttributePositionalArgument, type PslAttributeTarget, type PslCompositeType, type PslDefaultFunctionValue, type PslDefaultLiteralValue, type PslDefaultValue, type PslDiagnostic, type PslDiagnosticCode, type PslDocumentAst, type PslExtensionBlock, type PslExtensionBlockAttribute, type PslExtensionBlockAttributeArg, type PslExtensionBlockParamBare, type PslExtensionBlockParamList, type PslExtensionBlockParamOption, type PslExtensionBlockParamRef, type PslExtensionBlockParamScalarValue, type PslExtensionBlockParamValue, type PslField, type PslFieldAttribute, type PslModel, type PslModelAttribute, type PslNamedTypeDeclaration, type PslNamespace, type PslPosition, type PslSpan, type PslTypeConstructorCall, type PslTypesBlock, type ResolvedAttribute, type ResolvedAttributeArg, type ResolvedNamedTypeBinding, type ResolvedTypeConstructorCall, type SymbolTable, type SymbolTableResult, type TopLevelScope, type TypedFuncCall, bool, buildSymbolTable, entityRef, fieldAttribute, fieldRef, findBlockDescriptor, flatPslModels, funcCall, getPositionalArgument, identifier, int, interpretArgs, interpretAttribute, keywordPslSpan, leafDiagnostic, list, modelAttribute, namespacePslExtensionBlocks, nodePslSpan, num, oneOf, optional, parseQuotedStringLiteral, rangeToPslSpan, readResolvedAttribute, readResolvedAttributes, readResolvedConstructorCall, record, str, validateExtensionBlockFromSymbol };
471
+ export { type ArgBindingSpec, type ArgType, type ArgTypeKind, type AssembledAttributeSpecs, type AttributeCtx, type AttributeLevel, type AttributeOut, type AttributeSpec, type AttributeSpecContext, type AttributeSpecNamespace, type AttributeSymbol, type Binder, type BinderContext, type BinderResult, type BlockAttributeCtx, type BlockAttributeSpecFactory, type BlockEntryValueSpec, type BlockSpec, type BlockSpecContext, type BlockSpecFactory, type BlockSymbol, type BoundSpec, type BuildSymbolTableOptions, type CompositeTypeSymbol, type ConstantSymbol, type ContributedMember, type ContributedNamespaceSymbol, type ContributedTypeAlias, type ContributedTypeDescriptor, type ContributedTypeNamespace, type ContributedTypeScope, type ContributedTypeSymbol, type CreateBinderInput, type DataTypeValueArgType, type DataTypeValueRefusal, type DeclarationFor, type DescribeUnresolvedType, type DescribeUnsupportedAttribute, type DiagnosticSource, EMPTY_DATA_TYPES, type EntityDeclaration, type EntityRefArgType, type EntitySelector, type FieldAttributeCtx, type FieldAttributeSpecContext, type FieldAttributeSpecFactory, type FieldSymbol, type FixedIdentifierArgType, type FixedNumArgType, type FuncCallSig, type FunctionSymbol, type IdentifierArgType, type InferAttr, type InferBlock, type InspectableArgType, type IntArgType, type InterpretExtensionBlockAttributesInput, type InterpretExtensionBlockInput, type InterpretExtensionBlocksResult, type JsonValueArgType, type ListOptions, type MapBlockSpec, type MixinSymbol, type ModelAttributeCtx, type ModelAttributeSpecFactory, type ModelSymbol, NAME_THE_PSL_SOURCE_LOSES, type NamedOut, type NamedTypeSymbol, type NamespaceSymbol, type NullArgType, type NumLiteral, type OneOfArgType, type OptionalArgType, type OutOf, PSL_UNRESOLVED_REFERENCE, type Param, type ParameterSymbol, type ParsedPslExtensionBlock, type ParsedTaggedLiteral, type ParsedTypedValue, type ParsedWrittenList, type ParsedWrittenScalar, type PosOut, type PositionalParam, type PslAttribute, type PslAttributeArgument, type PslAttributeNamedArgument, type PslAttributePositionalArgument, type PslAttributeTarget, type PslBlockSpecDescriptor, type PslCompositeType, type PslDefaultFunctionValue, type PslDefaultLiteralValue, type PslDefaultValue, type PslDiagnostic, type PslDiagnosticCode, type PslDiagnosticCollector, type PslDocumentAst, type PslExtensionBlock, type PslExtensionBlockAttribute, type PslExtensionBlockAttributeArg, type PslExtensionBlockParsedAttribute, type PslExtensionBlockPrintEntry, type PslField, type PslFieldAttribute, type PslModel, type PslModelAttribute, type PslNamedTypeDeclaration, type PslNamespace, type PslPosition, type PslSpan, type PslSymbol, type PslTypeConstructorCall, type PslTypesBlock, type RejectingArgType, type Resolution, type ResolvedAttribute, type ResolvedAttributeArg, type ResolvedEntityReference, type ResolvedNamedTypeBinding, type ResolvedTypeConstructorCall, type Scope, type ScopeResolution, type StructBlockSpec, type SymbolTable, type SymbolTableResult, TYPE_ALIAS_ATTRIBUTE_NAMES, type TaggedLiteralArgType, type TypeAlias, type TypeAliasBase, type TypeAttributeSpecContext, type TypeAttributeSubject, type TypedFuncCall, type UnresolvedTypeReference, type UnrestrictedIdentifierArgType, type UnrestrictedNumArgType, type UnsupportedAttribute, type WrittenScalarResult, assembleAttributeSpecs, blockAttribute, blockSpecContext, blockSpecFactoryOf, bool, buildSymbolTable, contributedTypeAliasOf, contributedTypeCodecId, contributedTypeOf, createBinder, createPslDiagnosticCollector, dataTypeValue, diagnosticFromSpan, diagnosticSource, entityRef, entityReference, enumMemberValue, fieldAttribute, fieldRef, findBlockDescriptor, flatPslModels, funcCall, generatorAttributeSpec, generatorFunctionCall, getPositionalArgument, identifier, int, interpretArgs, interpretAttribute, interpretExtensionBlock, interpretExtensionBlockAttributes, interpretExtensionBlocks, isNamespaceLike, isPrismaNextSchema, isPslIdentifier, json, jsonValue, keywordPslSpan, leafDiagnostic, list, mapArg, mapBlock, mapPslDiagnostics, matchesSelector, memberEntries, modelAttribute, namespacePslExtensionBlocks, nodePslSpan, nodeSourceText, num, numLiteral, oneOf, optional, parseQuotedStringLiteral, readExpressionAs, readResolvedAttribute, readResolvedAttributes, readResolvedConstructorCall, readWrittenScalar, record, referencedFieldRef, refineArg, refuseRepeatedTypeAliasAttributes, renameLegacyDirective, resolveTypeAliases, str, structBlock, taggedLiteral, typeAliasAttributeNames, typeAliasOfField, typeAliasSpecContext, typeAttribute, typeAttributeSpecContextOfField, typeAttributeSubjectLabel, typeGeneratorAttributeSpec, typeReferenceNode, writtenList, writtenScalar };
158
472
  //# sourceMappingURL=psl-parser.d.mts.map