@prisma/orm-family-sql 8.0.0-rc.14-dev.13 → 8.0.0-rc.14-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 (205) hide show
  1. package/dist/{ast-qnGR-fmK.d.mts → ast-S4eEzFmO.d.mts} +3 -3
  2. package/dist/{ast-qnGR-fmK.d.mts.map → ast-S4eEzFmO.d.mts.map} +1 -1
  3. package/dist/{authoring-entity-types-CZ-vdwYS-BCsVtN8A.d.mts → authoring-entity-types-CZ-vdwYS-CvNNLogv.d.mts} +2 -2
  4. package/dist/{authoring-entity-types-CZ-vdwYS-BCsVtN8A.d.mts.map → authoring-entity-types-CZ-vdwYS-CvNNLogv.d.mts.map} +1 -1
  5. package/dist/{authoring-type-constructors-DIyheCzv-BgR6EC_E.mjs → authoring-type-constructors-DIyheCzv-BuirUCc_.mjs} +2 -2
  6. package/dist/{authoring-type-constructors-DIyheCzv-BgR6EC_E.mjs.map → authoring-type-constructors-DIyheCzv-BuirUCc_.mjs.map} +1 -1
  7. package/dist/builder.d.mts +2 -2
  8. package/dist/builder__runtime.d.mts +9 -9
  9. package/dist/builder__runtime.mjs +1 -1
  10. package/dist/builder__types.d.mts +2 -2
  11. package/dist/{codec-descriptor-registry-B1v3GEdK.mjs → codec-descriptor-registry-BSoMKDUv.mjs} +2 -2
  12. package/dist/{codec-descriptor-registry-B1v3GEdK.mjs.map → codec-descriptor-registry-BSoMKDUv.mjs.map} +1 -1
  13. package/dist/{config-types-BzCtgjh6.mjs → config-types-CYRUgWbg.mjs} +2 -2
  14. package/dist/{config-types-BzCtgjh6.mjs.map → config-types-CYRUgWbg.mjs.map} +1 -1
  15. package/dist/{config-types-VJ5O9Ert.d.mts → config-types-Dpg3tzCJ.d.mts} +4 -4
  16. package/dist/{config-types-VJ5O9Ert.d.mts.map → config-types-Dpg3tzCJ.d.mts.map} +1 -1
  17. package/dist/{contract-builder-CyJOBIFB.mjs → contract-builder-CUfUvDc1.mjs} +16 -10
  18. package/dist/contract-builder-CUfUvDc1.mjs.map +1 -0
  19. package/dist/{contract-builder-ezejmfrY.d.mts → contract-builder-_39f3LuO.d.mts} +73 -26
  20. package/dist/contract-builder-_39f3LuO.d.mts.map +1 -0
  21. package/dist/contract-emitter.mjs +1 -1
  22. package/dist/contract-prisma7__provider.d.mts +2 -2
  23. package/dist/contract-prisma7__provider.mjs +9 -6
  24. package/dist/contract-prisma7__provider.mjs.map +1 -1
  25. package/dist/contract-psl.d.mts +3 -3
  26. package/dist/contract-psl.mjs +1 -1
  27. package/dist/contract-psl__attribute-specs.d.mts +2 -2
  28. package/dist/contract-psl__attribute-specs.d.mts.map +1 -1
  29. package/dist/contract-psl__attribute-specs.mjs +1 -1
  30. package/dist/contract-psl__provider.d.mts +2 -2
  31. package/dist/contract-psl__provider.mjs +2 -2
  32. package/dist/contract-psl__provider.mjs.map +1 -1
  33. package/dist/contract-ts.d.mts +4 -4
  34. package/dist/contract-ts.mjs +3 -3
  35. package/dist/contract-ts__config-types.d.mts +1 -1
  36. package/dist/contract-ts__config-types.mjs +1 -1
  37. package/dist/contract-ts__contract-builder.d.mts +3 -3
  38. package/dist/contract-ts__contract-builder.mjs +2 -2
  39. package/dist/{contract-view-BTFdP8wh.d.mts → contract-view-D8enRe9A.d.mts} +2 -2
  40. package/dist/{contract-view-BTFdP8wh.d.mts.map → contract-view-D8enRe9A.d.mts.map} +1 -1
  41. package/dist/contract.d.mts +10 -10
  42. package/dist/contract.mjs +6 -6
  43. package/dist/contract__contract-view.d.mts +1 -1
  44. package/dist/contract__entity-kinds.d.mts +1 -1
  45. package/dist/contract__entity-kinds.mjs +1 -1
  46. package/dist/contract__factories.d.mts +1 -1
  47. package/dist/contract__factories.mjs +1 -1
  48. package/dist/contract__index-type-validation.d.mts +1 -1
  49. package/dist/contract__resolve-storage-table.d.mts +1 -1
  50. package/dist/contract__types.d.mts +4 -4
  51. package/dist/contract__types.mjs +3 -3
  52. package/dist/contract__validators.d.mts +1 -1
  53. package/dist/contract__validators.mjs +2 -2
  54. package/dist/{control-BFgBjkQh.d.mts → control--13SHD7X.d.mts} +15 -15
  55. package/dist/{control-BFgBjkQh.d.mts.map → control--13SHD7X.d.mts.map} +1 -1
  56. package/dist/{control-D7yb7l7O.mjs → control-B8LE0HRq.mjs} +13 -12
  57. package/dist/control-B8LE0HRq.mjs.map +1 -0
  58. package/dist/{control-adapter-C4_cgvzB-BhRxZg-n.d.mts → control-adapter-C4_cgvzB-C9dQipiW.d.mts} +6 -6
  59. package/dist/{control-adapter-C4_cgvzB-BhRxZg-n.d.mts.map → control-adapter-C4_cgvzB-C9dQipiW.d.mts.map} +1 -1
  60. package/dist/control-adapter-D2k9sW7u.d.mts +1 -0
  61. package/dist/{db-DLjWu9-f-B79_8TyU.d.mts → db-DLjWu9-f-NJprwMBN.d.mts} +9 -9
  62. package/dist/{db-DLjWu9-f-B79_8TyU.d.mts.map → db-DLjWu9-f-NJprwMBN.d.mts.map} +1 -1
  63. package/dist/{ddl-types-B23QEzDx-ridB7leA.d.mts → ddl-types-B23QEzDx-DnMvLEgB.d.mts} +3 -3
  64. package/dist/{ddl-types-B23QEzDx-ridB7leA.d.mts.map → ddl-types-B23QEzDx-DnMvLEgB.d.mts.map} +1 -1
  65. package/dist/{derived-checks-a_OpD3OE-BLAb_lZ9.mjs → derived-checks-C_y1rk6O-DdqjzGNy.mjs} +23 -16
  66. package/dist/derived-checks-C_y1rk6O-DdqjzGNy.mjs.map +1 -0
  67. package/dist/{derived-checks-DPdD01O0-zXZEuy5P.d.mts → derived-checks-DPdD01O0-CwIwhhTu.d.mts} +3 -3
  68. package/dist/{derived-checks-DPdD01O0-zXZEuy5P.d.mts.map → derived-checks-DPdD01O0-CwIwhhTu.d.mts.map} +1 -1
  69. package/dist/{diff-CPnJUpHZ.d.mts → diff-D3Ocd7-r.d.mts} +6 -6
  70. package/dist/{diff-CPnJUpHZ.d.mts.map → diff-D3Ocd7-r.d.mts.map} +1 -1
  71. package/dist/{dist-DeiKZwAD.mjs → dist-BW8u_IDQ.mjs} +5 -4
  72. package/dist/dist-BW8u_IDQ.mjs.map +1 -0
  73. package/dist/{entity-kinds-B5cUFU22.d.mts → entity-kinds-BG4YTvrr.d.mts} +2 -2
  74. package/dist/{entity-kinds-B5cUFU22.d.mts.map → entity-kinds-BG4YTvrr.d.mts.map} +1 -1
  75. package/dist/{entity-kinds-D7vwoN_T-NmeI6TpT.mjs → entity-kinds-ChX-owgJ-BgpQHnfy.mjs} +16 -12
  76. package/dist/entity-kinds-ChX-owgJ-BgpQHnfy.mjs.map +1 -0
  77. package/dist/{expression-C6yUAU4j.d.mts → expression-DLgBXKdO.d.mts} +7 -7
  78. package/dist/{expression-C6yUAU4j.d.mts.map → expression-DLgBXKdO.d.mts.map} +1 -1
  79. package/dist/{factories-aJoZYxkD.mjs → factories-16A63DkK.mjs} +21 -15
  80. package/dist/factories-16A63DkK.mjs.map +1 -0
  81. package/dist/{factories-TIM9dI6S.d.mts → factories-CLPZYUUw.d.mts} +12 -6
  82. package/dist/factories-CLPZYUUw.d.mts.map +1 -0
  83. package/dist/family.d.mts +12 -12
  84. package/dist/family.mjs +5 -5
  85. package/dist/family__control-adapter.d.mts +2 -2
  86. package/dist/family__control.d.mts +4 -4
  87. package/dist/family__control.mjs +3 -3
  88. package/dist/family__diff.d.mts +2 -2
  89. package/dist/family__diff.mjs +1 -1
  90. package/dist/family__ir.d.mts +1 -1
  91. package/dist/family__ir.mjs +1 -1
  92. package/dist/family__migration.d.mts +1 -1
  93. package/dist/family__pack.d.mts +1 -1
  94. package/dist/family__pack.mjs +2 -2
  95. package/dist/family__psl-build.mjs +1 -1
  96. package/dist/family__runtime.d.mts +2 -2
  97. package/dist/{index-DrUd8HwS.d.mts → index-BlVbNiHO.d.mts} +3 -3
  98. package/dist/{index-DrUd8HwS.d.mts.map → index-BlVbNiHO.d.mts.map} +1 -1
  99. package/dist/{index-CQ74jdOW.d.mts → index-VjA5whAC.d.mts} +11 -11
  100. package/dist/{index-CQ74jdOW.d.mts.map → index-VjA5whAC.d.mts.map} +1 -1
  101. package/dist/{index-type-validation-BAQWs-c_.d.mts → index-type-validation-DLPW4oTq.d.mts} +3 -3
  102. package/dist/{index-type-validation-BAQWs-c_.d.mts.map → index-type-validation-DLPW4oTq.d.mts.map} +1 -1
  103. package/dist/{interpreter-j1ewAXPb-BbCjJ0ta.mjs → interpreter-CkCfPqup-DF7bZvNM.mjs} +82 -16
  104. package/dist/interpreter-CkCfPqup-DF7bZvNM.mjs.map +1 -0
  105. package/dist/{ir-DI4cwMsy.d.mts → ir-DbwRAIkx.d.mts} +3 -3
  106. package/dist/{ir-DI4cwMsy.d.mts.map → ir-DbwRAIkx.d.mts.map} +1 -1
  107. package/dist/middleware-BwwcaXlc.d.mts +1 -0
  108. package/dist/{middleware-CuGBptK0-CGDI6sQU.d.mts → middleware-CuGBptK0-BEYuhhG2.d.mts} +2 -2
  109. package/dist/{middleware-CuGBptK0-CGDI6sQU.d.mts.map → middleware-CuGBptK0-BEYuhhG2.d.mts.map} +1 -1
  110. package/dist/{migration-Ixy5Tqxd.d.mts → migration-BqUra50L.d.mts} +4 -4
  111. package/dist/{migration-Ixy5Tqxd.d.mts.map → migration-BqUra50L.d.mts.map} +1 -1
  112. package/dist/operations.d.mts +1 -1
  113. package/dist/orm-client.d.mts +15 -15
  114. package/dist/orm-client.mjs +2 -2
  115. package/dist/orm-client.mjs.map +1 -1
  116. package/dist/{pack-DcSVDz7M.d.mts → pack-fBtj2dsq.d.mts} +3 -3
  117. package/dist/{pack-DcSVDz7M.d.mts.map → pack-fBtj2dsq.d.mts.map} +1 -1
  118. package/dist/{plan-B7g2kDfQ-Do1iWC4q.d.mts → plan-B7g2kDfQ-BVlzwDKL.d.mts} +4 -4
  119. package/dist/{plan-B7g2kDfQ-Do1iWC4q.d.mts.map → plan-B7g2kDfQ-BVlzwDKL.d.mts.map} +1 -1
  120. package/dist/plan-hQv6wCbk.d.mts +2 -0
  121. package/dist/{prepared-statement-Cv54gpY_-CbIaPDc1.d.mts → prepared-statement-Cv54gpY_-BObeNp2I.d.mts} +16 -16
  122. package/dist/{prepared-statement-Cv54gpY_-CbIaPDc1.d.mts.map → prepared-statement-Cv54gpY_-BObeNp2I.d.mts.map} +1 -1
  123. package/dist/{psl-build-139T3MMA.mjs → psl-build-CqhSpaQE.mjs} +2 -2
  124. package/dist/{psl-build-139T3MMA.mjs.map → psl-build-CqhSpaQE.mjs.map} +1 -1
  125. package/dist/{query-lane-context-BSmWfohZ-QAWw_dXQ.d.mts → query-lane-context-BSmWfohZ-yCQ9qzQZ.d.mts} +5 -5
  126. package/dist/{query-lane-context-BSmWfohZ-QAWw_dXQ.d.mts.map → query-lane-context-BSmWfohZ-yCQ9qzQZ.d.mts.map} +1 -1
  127. package/dist/query-lane-context-DbJO1bmQ.d.mts +1 -0
  128. package/dist/relational-core.d.mts +11 -11
  129. package/dist/relational-core__aggregate-descriptor-registry.d.mts +1 -1
  130. package/dist/relational-core__ast.d.mts +3 -3
  131. package/dist/relational-core__codec-descriptor-registry.d.mts +4 -4
  132. package/dist/relational-core__codec-descriptor-registry.mjs +1 -1
  133. package/dist/relational-core__contract-free.d.mts +3 -3
  134. package/dist/relational-core__expression.d.mts +1 -1
  135. package/dist/relational-core__middleware.d.mts +2 -2
  136. package/dist/relational-core__plan.d.mts +3 -3
  137. package/dist/relational-core__query-lane-context.d.mts +2 -2
  138. package/dist/relational-core__types.d.mts +2 -2
  139. package/dist/{resolve-storage-table-DhgzQjow.d.mts → resolve-storage-table-5G0L5k6M.d.mts} +3 -3
  140. package/dist/{resolve-storage-table-DhgzQjow.d.mts.map → resolve-storage-table-5G0L5k6M.d.mts.map} +1 -1
  141. package/dist/{runtime-I-W0bhvd.d.mts → runtime-CajhgB9z.d.mts} +2 -2
  142. package/dist/{runtime-I-W0bhvd.d.mts.map → runtime-CajhgB9z.d.mts.map} +1 -1
  143. package/dist/runtime.d.mts +4 -4
  144. package/dist/runtime.mjs +1 -1
  145. package/dist/runtime__internal__prepared-query.d.mts +1 -1
  146. package/dist/{schema-differ-DpG_gnur-gLIPLPVI.d.mts → schema-differ-DpG_gnur-CYpc6zuh.d.mts} +3 -3
  147. package/dist/{schema-differ-DpG_gnur-gLIPLPVI.d.mts.map → schema-differ-DpG_gnur-CYpc6zuh.d.mts.map} +1 -1
  148. package/dist/schema-ir.mjs +1 -1
  149. package/dist/schema-ir__types.mjs +1 -1
  150. package/dist/{schema-verify-DI0aJQ9d-DL-C6on7.mjs → schema-verify-DI0aJQ9d-TpdeERRD.mjs} +2 -2
  151. package/dist/{schema-verify-DI0aJQ9d-DL-C6on7.mjs.map → schema-verify-DI0aJQ9d-TpdeERRD.mjs.map} +1 -1
  152. package/dist/{serialized-index-nBTwanKy-B0C03Q_R.mjs → serialized-index-B5X7s-oX-TKQhXsZz.mjs} +3 -3
  153. package/dist/{serialized-index-nBTwanKy-B0C03Q_R.mjs.map → serialized-index-B5X7s-oX-TKQhXsZz.mjs.map} +1 -1
  154. package/dist/{sql-attribute-specs-Bs9QDuS7-DmIRJUz9.mjs → sql-attribute-specs-DxpHr9Fk-CeWmMP7y.mjs} +20 -7
  155. package/dist/sql-attribute-specs-DxpHr9Fk-CeWmMP7y.mjs.map +1 -0
  156. package/dist/{sql-contract-serializer-C90xg7_q-DBJSt3MT.mjs → sql-contract-serializer-C90xg7_q-CxzBoB0F.mjs} +4 -4
  157. package/dist/{sql-contract-serializer-C90xg7_q-DBJSt3MT.mjs.map → sql-contract-serializer-C90xg7_q-CxzBoB0F.mjs.map} +1 -1
  158. package/dist/{sql-execution-plan-Db0j752I-uGUWy8sD.d.mts → sql-execution-plan-Db0j752I-B3yGocR6.d.mts} +2 -2
  159. package/dist/{sql-execution-plan-Db0j752I-uGUWy8sD.d.mts.map → sql-execution-plan-Db0j752I-B3yGocR6.d.mts.map} +1 -1
  160. package/dist/{sql-storage-BSxD7_vv-C4ugLH39.d.mts → sql-storage-jJySr7bL-1Eh2i2r1.d.mts} +3 -3
  161. package/dist/{sql-storage-BSxD7_vv-C4ugLH39.d.mts.map → sql-storage-jJySr7bL-1Eh2i2r1.d.mts.map} +1 -1
  162. package/dist/{storage-table-ZzbR-xzQ-C8gXT45E.mjs → storage-table-ADhJ4Imk-0FbJXvSZ.mjs} +6 -3
  163. package/dist/storage-table-ADhJ4Imk-0FbJXvSZ.mjs.map +1 -0
  164. package/dist/{storage-table-DSeWszOL-CI-cItEK.d.mts → storage-table-DLFvP77v-BfO2iOT4.d.mts} +9 -6
  165. package/dist/storage-table-DLFvP77v-BfO2iOT4.d.mts.map +1 -0
  166. package/dist/{types-C5QzgUrH-B7IJM6qN.mjs → types-B9rf_EdI-CEYrMMeO.mjs} +6 -2
  167. package/dist/types-B9rf_EdI-CEYrMMeO.mjs.map +1 -0
  168. package/dist/{types-BGHABElw-C5MKkR3c.d.mts → types-BGHABElw-CZyfbuWe.d.mts} +10 -10
  169. package/dist/{types-BGHABElw-C5MKkR3c.d.mts.map → types-BGHABElw-CZyfbuWe.d.mts.map} +1 -1
  170. package/dist/{types-BHKZ4M-a-DYsrOHhh.d.mts → types-BHKZ4M-a-CPFh-lCl.d.mts} +7 -7
  171. package/dist/{types-BHKZ4M-a-DYsrOHhh.d.mts.map → types-BHKZ4M-a-CPFh-lCl.d.mts.map} +1 -1
  172. package/dist/{types-DTUyRqZv-DLh98w8w.d.mts → types-Bl6ohp1g-ROH3Mwm9.d.mts} +4 -4
  173. package/dist/{types-DTUyRqZv-DLh98w8w.d.mts.map → types-Bl6ohp1g-ROH3Mwm9.d.mts.map} +1 -1
  174. package/dist/types-CHcsPFTv.d.mts +1 -0
  175. package/dist/{types-BoMDdzjD.d.mts → types-E46h1SEX.d.mts} +4 -4
  176. package/dist/{types-BoMDdzjD.d.mts.map → types-E46h1SEX.d.mts.map} +1 -1
  177. package/dist/{types-Yui2yFf6-DQkiEr9B.d.mts → types-Yui2yFf6-Ceyf2gJ2.d.mts} +2 -2
  178. package/dist/{types-Yui2yFf6-DQkiEr9B.d.mts.map → types-Yui2yFf6-Ceyf2gJ2.d.mts.map} +1 -1
  179. package/dist/{types-BmXzMDQL.mjs → types-jFnALKoT.mjs} +2 -2
  180. package/dist/{types-BmXzMDQL.mjs.map → types-jFnALKoT.mjs.map} +1 -1
  181. package/dist/{validators-CZNulH-_.d.mts → validators-CQ_fniE7.d.mts} +6 -4
  182. package/dist/validators-CQ_fniE7.d.mts.map +1 -0
  183. package/dist/{validators-BlqrBU7I.mjs → validators-DvzOZLel.mjs} +34 -32
  184. package/dist/validators-DvzOZLel.mjs.map +1 -0
  185. package/package.json +18 -18
  186. package/dist/contract-builder-CyJOBIFB.mjs.map +0 -1
  187. package/dist/contract-builder-ezejmfrY.d.mts.map +0 -1
  188. package/dist/control-D7yb7l7O.mjs.map +0 -1
  189. package/dist/control-adapter-Cj6XQ7Yo.d.mts +0 -1
  190. package/dist/derived-checks-a_OpD3OE-BLAb_lZ9.mjs.map +0 -1
  191. package/dist/dist-DeiKZwAD.mjs.map +0 -1
  192. package/dist/entity-kinds-D7vwoN_T-NmeI6TpT.mjs.map +0 -1
  193. package/dist/factories-TIM9dI6S.d.mts.map +0 -1
  194. package/dist/factories-aJoZYxkD.mjs.map +0 -1
  195. package/dist/interpreter-j1ewAXPb-BbCjJ0ta.mjs.map +0 -1
  196. package/dist/middleware-C6T9FExV.d.mts +0 -1
  197. package/dist/plan-BBBYfvlz.d.mts +0 -2
  198. package/dist/query-lane-context-B0R8L6W-.d.mts +0 -1
  199. package/dist/sql-attribute-specs-Bs9QDuS7-DmIRJUz9.mjs.map +0 -1
  200. package/dist/storage-table-DSeWszOL-CI-cItEK.d.mts.map +0 -1
  201. package/dist/storage-table-ZzbR-xzQ-C8gXT45E.mjs.map +0 -1
  202. package/dist/types-C5QzgUrH-B7IJM6qN.mjs.map +0 -1
  203. package/dist/types-CXe4fCcu.d.mts +0 -1
  204. package/dist/validators-BlqrBU7I.mjs.map +0 -1
  205. package/dist/validators-CZNulH-_.d.mts.map +0 -1
@@ -1,6 +1,6 @@
1
- import { E as CodecRef$1, dt as LoweredStatement, h as AnyQueryAst, m as AnyParamRef } from "./types-Yui2yFf6-DQkiEr9B.mjs";
1
+ import { E as CodecRef$1, dt as LoweredStatement, h as AnyQueryAst, m as AnyParamRef } from "./types-Yui2yFf6-Ceyf2gJ2.mjs";
2
2
  import { c as SqlQueryable } from "./driver-types-DYGFEcyv-DPaNalPf.mjs";
3
- import "./ddl-types-B23QEzDx-ridB7leA.mjs";
3
+ import "./ddl-types-B23QEzDx-DnMvLEgB.mjs";
4
4
  import { ColumnDefaultLiteralInputValue, ContractMarkerRecord, JsonValue } from "@prisma/orm-framework/contract/types";
5
5
  import { CodecCallContext, CodecDescriptorTemplateImpl, CodecImpl, CodecInstanceContext, CodecLookupWithDescriptors, DataTypeId, ToCanonicalForm } from "@prisma/orm-framework/components/codec";
6
6
  import { StandardSchemaV1 } from "@standard-schema/spec";
@@ -285,4 +285,4 @@ declare function compact<T extends Record<string, unknown>>(o: T): T;
285
285
  declare function collectOrderedParamRefs(ast: AnyQueryAst): ReadonlyArray<AnyParamRef>;
286
286
  //#endregion
287
287
  export { sqlIntDecode as $, canonicalNumeralText as A, parseJsonBody as B, SqlIntCodec as C, SqlVarcharCodec as D, SqlTextDescriptor as E, encodeLiteralDefault as F, sqlCharDescriptor as G, signedRange as H, escapePslString as I, sqlFloatColumn as J, sqlCharEncode as K, integerTextCanonicalForm as L, compact as M, createNumberClassifier as N, SqlVarcharDescriptor as O, encodeListLiteralDefault as P, sqlIntColumn as Q, isNumeralText as R, SqlFloatDescriptor as S, SqlTextCodec as T, sqlCharColumn as U, printJsonBody as V, sqlCharDecode as W, sqlFloatDescriptor as X, sqlFloatDecode as Y, sqlFloatEncode as Z, SQL_TEXT_CODEC_ID as _, DateTimeShape as a, sqlTextEncode as at, SqlCharDescriptor as b, LiteralDefaultColumn as c, sqlVarcharDescriptor as ct, MarkerReadResult as d, sqlIntDescriptor as et, NumberClassification as f, SQL_INT_CODEC_ID as g, SQL_FLOAT_CODEC_ID as h, CanonicalDateTimeOptions as i, sqlTextDescriptor as it, collectOrderedParamRefs as j, canonicalDateTime as k, Lowerer as l, sqlVarcharEncode as lt, SQL_CHAR_CODEC_ID as m, AdapterProfile as n, sqlTextColumn as nt, EncodedLiteralDefault as o, sqlVarcharColumn as ot, NumberClassifierSpec as p, sqlCharRenderOutputType as q, AdapterTarget as r, sqlTextDecode as rt, IntegerStep as s, sqlVarcharDecode as st, Adapter as t, sqlIntEncode as tt, LowererContext as u, sqlVarcharRenderOutputType as ut, SQL_VARCHAR_CODEC_ID as v, SqlIntDescriptor as w, SqlFloatCodec as x, SqlCharCodec as y, numeralText as z };
288
- //# sourceMappingURL=ast-qnGR-fmK.d.mts.map
288
+ //# sourceMappingURL=ast-S4eEzFmO.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ast-qnGR-fmK.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/exports/ast.d.mts"],"mappings":";;;;;;;;KAOK;;;;;;;KAOA;WACM;WACA,QAAQ;;WAER;;WAEA;;UAED,eAAe,gBAAgB,gBAAgB;WAC9C;WACA,QAAQ;WACR,cAAc;;;;EAIvB,WAAW,WAAW,eAAe,QAAQ;;UAErC,eAAe;WACd,UAAU;WACV;;KAEN,QAAQ,eAAe,qBAAqB,QAAQ,qBAAqB,KAAK,KAAK,SAAS,eAAe,eAAe;;;;UAIrH,QAAQ,eAAe,qBAAqB,QAAQ;WACnD,SAAS;EAClB,MAAM,KAAK,KAAK,SAAS,eAAe,aAAa;;;;;iBAKtC,cAAc;;;;;iBAKd,qBAAqB;;;;;iBAKrB,YAAY;;;;cAIf,0BAA0B;;iBAEvB,gBAAgB;;UAEvB;WACC,MAAM;WACN;;;UAGD,oBAAoB;WACnB;WACA;;;iBAGM,YAAY;WAClB;WACA;;UAED;;WAEC,mBAAmB;;WAEnB,cAAc;;WAEd,WAAW;;WAEX,QAAQ;;;;;;;iBAOF,uBAAuB,MAAM,wB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ring";
3
3
  import "@prisma/orm-framework/psl-parser";
4
4
  //#region ../../../2-sql/9-family/dist/authoring-entity-types-CZ-vdwYS.d.mts
@@ -6,4 +6,4 @@ import "@prisma/orm-framework/psl-parser";
6
6
  declare function sqlFamilyEnumSpec(): import("@prisma/orm-framework/psl-parser").MapBlockSpec<Record<string, import("@prisma/orm-framework/contract/types").JsonValue | undefined>>;
7
7
  //#endregion
8
8
  export { sqlFamilyEnumSpec as t };
9
- //# sourceMappingURL=authoring-entity-types-CZ-vdwYS-BCsVtN8A.d.mts.map
9
+ //# sourceMappingURL=authoring-entity-types-CZ-vdwYS-CvNNLogv.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"authoring-entity-types-CZ-vdwYS-BCsVtN8A.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/authoring-entity-types-CZ-vdwYS.d.mts"],"mappings":";;;;;iBAIiB,oDAAoD,aAAa,kDAAkD"}
1
+ {"version":3,"file":"authoring-entity-types-CZ-vdwYS-CvNNLogv.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/authoring-entity-types-CZ-vdwYS.d.mts"],"mappings":";;;;;iBAIiB,oDAAoD,aAAa,kDAAkD"}
@@ -1,4 +1,4 @@
1
- import { s as enumType } from "./contract-builder-CyJOBIFB.mjs";
1
+ import { s as enumType } from "./contract-builder-CUfUvDc1.mjs";
2
2
  import { readEnumBlockMembers, resolveEnumCodecId } from "@prisma/orm-framework/components/authoring";
3
3
  import { blockAttribute, jsonValue, mapBlock, str } from "@prisma/orm-framework/psl-parser";
4
4
  //#region ../../../2-sql/9-family/dist/authoring-type-constructors-DIyheCzv.mjs
@@ -259,4 +259,4 @@ const sqlFamilyAuthoringTypes = { sql: { String: {
259
259
  //#endregion
260
260
  export { sqlFamilyPslBlockDescriptors as i, sqlFamilyAuthoringTypes as n, sqlFamilyEntityTypes as r, sqlFamilyAuthoringFieldPresets as t };
261
261
 
262
- //# sourceMappingURL=authoring-type-constructors-DIyheCzv-BgR6EC_E.mjs.map
262
+ //# sourceMappingURL=authoring-type-constructors-DIyheCzv-BuirUCc_.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"authoring-type-constructors-DIyheCzv-BgR6EC_E.mjs","names":[],"sources":["../../../../2-sql/9-family/dist/authoring-type-constructors-DIyheCzv.mjs"],"sourcesContent":["import { readEnumBlockMembers, resolveEnumCodecId } from \"@internal/framework-components/authoring\";\nimport { blockAttribute, jsonValue, mapBlock, str } from \"@internal/psl-parser\";\nimport { enumType } from \"@internal/sql-contract-ts/contract-builder\";\n//#region src/core/authoring-entity-types.ts\nfunction sqlFamilyEnumSpec() {\n\treturn mapBlock({\n\t\tvalue: {\n\t\t\ttype: jsonValue(),\n\t\t\tdocumentation: \"The stored member value; a bare member stores its own name.\"\n\t\t},\n\t\tallowBare: true\n\t});\n}\nconst sqlFamilyEntityTypes = { enum: {\n\tkind: \"entity\",\n\tdiscriminator: \"enum\",\n\toutput: { factory: (block, ctx) => {\n\t\tconst sourceId = ctx.sourceId ?? \"unknown\";\n\t\tconst diagnostics = ctx.diagnostics;\n\t\tconst resolved = resolveEnumCodecId(block, ctx);\n\t\tif (resolved === void 0) return;\n\t\tconst { codecId, codecSpan } = resolved;\n\t\tconst nativeType = ctx.codecLookup?.targetTypesFor(codecId)?.[0];\n\t\tif (nativeType === void 0) {\n\t\t\tdiagnostics?.push({\n\t\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\t\tmessage: `enum \"${block.name}\" @@type references unknown codec \"${codecId}\"`,\n\t\t\t\tsourceId,\n\t\t\t\tspan: codecSpan\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tconst codec = ctx.codecLookup?.get(codecId);\n\t\tif (codec === void 0) {\n\t\t\tdiagnostics?.push({\n\t\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\t\tmessage: `enum \"${block.name}\" @@type codec \"${codecId}\" resolves in targetTypesFor but is absent from codecLookup.get`,\n\t\t\t\tsourceId,\n\t\t\t\tspan: codecSpan\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tconst members = readEnumBlockMembers(block, codecId, codec, ctx);\n\t\tif (members === void 0) return void 0;\n\t\treturn enumType(block.name, {\n\t\t\tcodecId,\n\t\t\tnativeType\n\t\t}, ...members);\n\t} }\n} };\nconst enumTypeBlockAttribute = blockAttribute(\"type\", {\n\tdocumentation: \"Selects the storage codec for this enum.\",\n\tpositional: [{\n\t\tkey: \"codecId\",\n\t\ttype: str(),\n\t\tdocumentation: \"The fully qualified codec identifier used to store enum values.\"\n\t}]\n});\nconst sqlFamilyPslBlockDescriptors = { enum: {\n\tkind: \"pslBlock\",\n\tkeyword: \"enum\",\n\tdocumentation: \"Defines an enum with named values and an inferred or explicitly selected storage codec.\",\n\tdiscriminator: \"enum\",\n\tname: { required: true },\n\tspec: sqlFamilyEnumSpec,\n\tattributes: { type: () => enumTypeBlockAttribute }\n} };\n//#endregion\n//#region src/core/authoring-field-presets.ts\n/**\n* Family-level SQL authoring field presets.\n*\n* Only presets whose codec IDs align with the ID generator metadata live here\n* (see `@internal/ids`). These presets are target-agnostic because the\n* generator metadata fixes their codec/native-type to `sql/char@1`\n* (`character`) regardless of target, and the PSL interpreter lets the\n* generator override the scalar descriptor.\n*\n* The `uuidString` / `id.uuidv4String` / `id.uuidv7String` presets store UUID\n* values as `character(36)` — portable across all SQL targets. For a native\n* Postgres `uuid` column use `uuidNative` / `id.uuidv4Native` /\n* `id.uuidv7Native` from `@internal/target-postgres`.\n*\n* Scalar presets that map to target-specific codecs (e.g. `text`, `int`,\n* `boolean`, `dateTime`) are contributed by the target pack (see\n* `postgresAuthoringFieldPresets` in `@internal/target-postgres`) so the\n* TS callback surface and the PSL scalar surface lower to byte-identical\n* contracts for the active target.\n*/\nconst CHARACTER_CODEC_ID = \"sql/char@1\";\nconst CHARACTER_NATIVE_TYPE = \"character\";\nconst nanoidOptionsArgument = {\n\tkind: \"object\",\n\toptional: true,\n\tproperties: { size: {\n\t\tkind: \"number\",\n\t\toptional: true,\n\t\tinteger: true,\n\t\tminimum: 2,\n\t\tmaximum: 255\n\t} }\n};\nconst sqlFamilyAuthoringFieldPresets = {\n\tuuidString: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: {\n\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\ttypeParams: { length: 36 }\n\t\t}\n\t},\n\tulid: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: {\n\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\ttypeParams: { length: 26 }\n\t\t}\n\t},\n\tnanoid: {\n\t\tkind: \"fieldPreset\",\n\t\targs: [nanoidOptionsArgument],\n\t\toutput: {\n\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\ttypeParams: { length: {\n\t\t\t\tkind: \"arg\",\n\t\t\t\tindex: 0,\n\t\t\t\tpath: [\"size\"],\n\t\t\t\tdefault: 21\n\t\t\t} }\n\t\t}\n\t},\n\tcuid2: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: {\n\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\ttypeParams: { length: 24 }\n\t\t}\n\t},\n\tksuid: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: {\n\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\ttypeParams: { length: 27 }\n\t\t}\n\t},\n\tid: {\n\t\tuuidv4String: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\t\ttypeParams: { length: 36 },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"uuidv4\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t},\n\t\tuuidv7String: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\t\ttypeParams: { length: 36 },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"uuidv7\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t},\n\t\tulid: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\t\ttypeParams: { length: 26 },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"ulid\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t},\n\t\tnanoid: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\targs: [nanoidOptionsArgument],\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\t\ttypeParams: { length: {\n\t\t\t\t\tkind: \"arg\",\n\t\t\t\t\tindex: 0,\n\t\t\t\t\tpath: [\"size\"],\n\t\t\t\t\tdefault: 21\n\t\t\t\t} },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"nanoid\",\n\t\t\t\t\tparams: { size: {\n\t\t\t\t\t\tkind: \"arg\",\n\t\t\t\t\t\tindex: 0,\n\t\t\t\t\t\tpath: [\"size\"]\n\t\t\t\t\t} }\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t},\n\t\tcuid2: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\t\ttypeParams: { length: 24 },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"cuid2\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t},\n\t\tksuid: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\t\ttypeParams: { length: 27 },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"ksuid\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t}\n\t}\n};\n//#endregion\n//#region src/core/authoring-type-constructors.ts\nconst sqlFamilyAuthoringTypes = { sql: { String: {\n\tkind: \"typeConstructor\",\n\tdocumentation: \"Variable-length text with a required maximum character length.\",\n\targs: [{\n\t\tkind: \"number\",\n\t\tname: \"length\",\n\t\tinteger: true,\n\t\tminimum: 1,\n\t\tmaximum: 10485760\n\t}],\n\toutput: {\n\t\tcodecId: \"sql/varchar@1\",\n\t\tnativeType: \"character varying\",\n\t\ttypeParams: { length: {\n\t\t\tkind: \"arg\",\n\t\t\tindex: 0\n\t\t} }\n\t}\n} } };\n//#endregion\nexport { sqlFamilyPslBlockDescriptors as i, sqlFamilyAuthoringFieldPresets as n, sqlFamilyEntityTypes as r, sqlFamilyAuthoringTypes as t };\n\n//# sourceMappingURL=authoring-type-constructors-DIyheCzv.mjs.map"],"mappings":";;;;AAIA,SAAS,oBAAoB;CAC5B,OAAO,SAAS;EACf,OAAO;GACN,MAAM,UAAU;GAChB,eAAe;EAChB;EACA,WAAW;CACZ,CAAC;AACF;AACA,MAAM,uBAAuB,EAAE,MAAM;CACpC,MAAM;CACN,eA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Y,EAAE,QAAQ;KACrB,MAAM;KACN,OAAO;KACP,MAAM,CAAC,MAAM;KACb,SAAS;IACV,EAAE;IACF,mBAAmB,EAAE,UAAU;KAC9B,MAAM;KACN,IAAI;KACJ,QAAQ,EAAE,MAAM;MACf,MAAM;MACN,OAAO;MACP,MAAM,CAAC,MAAM;KACd,EAAE;IACH,EAAE;IACF,IAAI;GACL;EACD;EACA,OAAO;GACN,MAAM;GACN,QAAQ;IACP,SAAS;IACT,YAAY;IACZ,YAAY,EAAE,QAAQ,GAAG;IACzB,mBAAmB,EAAE,UAAU;KAC9B,MAAM;KACN,IAAI;IACL,EAAE;IACF,IAAI;GACL;EACD;EACA,OAAO;GACN,MAAM;GACN,QAAQ;IACP,SAAS;IACT,YAAY;IACZ,YAAY,EAAE,QAAQ,GAAG;IACzB,mBAAmB,EAAE,UAAU;KAC9B,MAAM;KACN,IAAI;IACL,EAAE;IACF,IAAI;GACL;EACD;CACD;AACD;AAGA,MAAM,0BAA0B,EAAE,KAAK,EAAE,QAAQ;CAChD,MAAM;CACN,eAAe;CACf,MAAM,CAAC;EACN,MAAM;EACN,MAAM;EACN,SAAS;EACT,SAAS;EACT,SAAS;CACV,CAAC;CACD,QAAQ;EACP,SAAS;EACT,YAAY;EACZ,YAAY,EAAE,QAAQ;GACrB,MAAM;GACN,OAAO;EACR,EAAE;CACH;AACD,EAAE,EAAE"}
1
+ {"version":3,"file":"authoring-type-constructors-DIyheCzv-BuirUCc_.mjs","names":[],"sources":["../../../../2-sql/9-family/dist/authoring-type-constructors-DIyheCzv.mjs"],"sourcesContent":["import { readEnumBlockMembers, resolveEnumCodecId } from \"@internal/framework-components/authoring\";\nimport { blockAttribute, jsonValue, mapBlock, str } from \"@internal/psl-parser\";\nimport { enumType } from \"@internal/sql-contract-ts/contract-builder\";\n//#region src/core/authoring-entity-types.ts\nfunction sqlFamilyEnumSpec() {\n\treturn mapBlock({\n\t\tvalue: {\n\t\t\ttype: jsonValue(),\n\t\t\tdocumentation: \"The stored member value; a bare member stores its own name.\"\n\t\t},\n\t\tallowBare: true\n\t});\n}\nconst sqlFamilyEntityTypes = { enum: {\n\tkind: \"entity\",\n\tdiscriminator: \"enum\",\n\toutput: { factory: (block, ctx) => {\n\t\tconst sourceId = ctx.sourceId ?? \"unknown\";\n\t\tconst diagnostics = ctx.diagnostics;\n\t\tconst resolved = resolveEnumCodecId(block, ctx);\n\t\tif (resolved === void 0) return;\n\t\tconst { codecId, codecSpan } = resolved;\n\t\tconst nativeType = ctx.codecLookup?.targetTypesFor(codecId)?.[0];\n\t\tif (nativeType === void 0) {\n\t\t\tdiagnostics?.push({\n\t\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\t\tmessage: `enum \"${block.name}\" @@type references unknown codec \"${codecId}\"`,\n\t\t\t\tsourceId,\n\t\t\t\tspan: codecSpan\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tconst codec = ctx.codecLookup?.get(codecId);\n\t\tif (codec === void 0) {\n\t\t\tdiagnostics?.push({\n\t\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\t\tmessage: `enum \"${block.name}\" @@type codec \"${codecId}\" resolves in targetTypesFor but is absent from codecLookup.get`,\n\t\t\t\tsourceId,\n\t\t\t\tspan: codecSpan\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tconst members = readEnumBlockMembers(block, codecId, codec, ctx);\n\t\tif (members === void 0) return void 0;\n\t\treturn enumType(block.name, {\n\t\t\tcodecId,\n\t\t\tnativeType\n\t\t}, ...members);\n\t} }\n} };\nconst enumTypeBlockAttribute = blockAttribute(\"type\", {\n\tdocumentation: \"Selects the storage codec for this enum.\",\n\tpositional: [{\n\t\tkey: \"codecId\",\n\t\ttype: str(),\n\t\tdocumentation: \"The fully qualified codec identifier used to store enum values.\"\n\t}]\n});\nconst sqlFamilyPslBlockDescriptors = { enum: {\n\tkind: \"pslBlock\",\n\tkeyword: \"enum\",\n\tdocumentation: \"Defines an enum with named values and an inferred or explicitly selected storage codec.\",\n\tdiscriminator: \"enum\",\n\tname: { required: true },\n\tspec: sqlFamilyEnumSpec,\n\tattributes: { type: () => enumTypeBlockAttribute }\n} };\n//#endregion\n//#region src/core/authoring-field-presets.ts\n/**\n* Family-level SQL authoring field presets.\n*\n* Only presets whose codec IDs align with the ID generator metadata live here\n* (see `@internal/ids`). These presets are target-agnostic because the\n* generator metadata fixes their codec/native-type to `sql/char@1`\n* (`character`) regardless of target, and the PSL interpreter lets the\n* generator override the scalar descriptor.\n*\n* The `uuidString` / `id.uuidv4String` / `id.uuidv7String` presets store UUID\n* values as `character(36)` — portable across all SQL targets. For a native\n* Postgres `uuid` column use `uuidNative` / `id.uuidv4Native` /\n* `id.uuidv7Native` from `@internal/target-postgres`.\n*\n* Scalar presets that map to target-specific codecs (e.g. `text`, `int`,\n* `boolean`, `dateTime`) are contributed by the target pack (see\n* `postgresAuthoringFieldPresets` in `@internal/target-postgres`) so the\n* TS callback surface and the PSL scalar surface lower to byte-identical\n* contracts for the active target.\n*/\nconst CHARACTER_CODEC_ID = \"sql/char@1\";\nconst CHARACTER_NATIVE_TYPE = \"character\";\nconst nanoidOptionsArgument = {\n\tkind: \"object\",\n\toptional: true,\n\tproperties: { size: {\n\t\tkind: \"number\",\n\t\toptional: true,\n\t\tinteger: true,\n\t\tminimum: 2,\n\t\tmaximum: 255\n\t} }\n};\nconst sqlFamilyAuthoringFieldPresets = {\n\tuuidString: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: {\n\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\ttypeParams: { length: 36 }\n\t\t}\n\t},\n\tulid: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: {\n\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\ttypeParams: { length: 26 }\n\t\t}\n\t},\n\tnanoid: {\n\t\tkind: \"fieldPreset\",\n\t\targs: [nanoidOptionsArgument],\n\t\toutput: {\n\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\ttypeParams: { length: {\n\t\t\t\tkind: \"arg\",\n\t\t\t\tindex: 0,\n\t\t\t\tpath: [\"size\"],\n\t\t\t\tdefault: 21\n\t\t\t} }\n\t\t}\n\t},\n\tcuid2: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: {\n\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\ttypeParams: { length: 24 }\n\t\t}\n\t},\n\tksuid: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: {\n\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\ttypeParams: { length: 27 }\n\t\t}\n\t},\n\tid: {\n\t\tuuidv4String: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\t\ttypeParams: { length: 36 },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"uuidv4\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t},\n\t\tuuidv7String: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\t\ttypeParams: { length: 36 },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"uuidv7\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t},\n\t\tulid: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\t\ttypeParams: { length: 26 },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"ulid\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t},\n\t\tnanoid: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\targs: [nanoidOptionsArgument],\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\t\ttypeParams: { length: {\n\t\t\t\t\tkind: \"arg\",\n\t\t\t\t\tindex: 0,\n\t\t\t\t\tpath: [\"size\"],\n\t\t\t\t\tdefault: 21\n\t\t\t\t} },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"nanoid\",\n\t\t\t\t\tparams: { size: {\n\t\t\t\t\t\tkind: \"arg\",\n\t\t\t\t\t\tindex: 0,\n\t\t\t\t\t\tpath: [\"size\"]\n\t\t\t\t\t} }\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t},\n\t\tcuid2: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\t\ttypeParams: { length: 24 },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"cuid2\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t},\n\t\tksuid: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\t\ttypeParams: { length: 27 },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"ksuid\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t}\n\t}\n};\n//#endregion\n//#region src/core/authoring-type-constructors.ts\nconst sqlFamilyAuthoringTypes = { sql: { String: {\n\tkind: \"typeConstructor\",\n\tdocumentation: \"Variable-length text with a required maximum character length.\",\n\targs: [{\n\t\tkind: \"number\",\n\t\tname: \"length\",\n\t\tinteger: true,\n\t\tminimum: 1,\n\t\tmaximum: 10485760\n\t}],\n\toutput: {\n\t\tcodecId: \"sql/varchar@1\",\n\t\tnativeType: \"character varying\",\n\t\ttypeParams: { length: {\n\t\t\tkind: \"arg\",\n\t\t\tindex: 0\n\t\t} }\n\t}\n} } };\n//#endregion\nexport { sqlFamilyPslBlockDescriptors as i, sqlFamilyAuthoringFieldPresets as n, sqlFamilyEntityTypes as r, sqlFamilyAuthoringTypes as t };\n\n//# sourceMappingURL=authoring-type-constructors-DIyheCzv.mjs.map"],"mappings":";;;;AAIA,SAAS,oBAAoB;CAC5B,OAAO,SAAS;EACf,OAAO;GACN,MAAM,UAAU;GAChB,eAAe;EAChB;EACA,WAAW;CACZ,CAAC;AACF;AACA,MAAM,uBAAuB,EAAE,MAAM;CACpC,MAAM;CACN,eAAe;CACf,QAAQ,EAAE,UAAU,OAAO,QAAQ;EAClC,MAAM,WAAW,IAAI,YAAY;EACjC,MAAM,cAAc,IAAI;EACxB,MAAM,WAAW,mBAAmB,OAAO,GAAG;EAC9C,IAAI,aAAa,KAAK,GAAG;EACzB,MAAM,EAAE,SAAS,cAAc;EAC/B,MAAM,aAAa,IAAI,aAAa,eAAe,OAAO,CAAC,GAAG;EAC9D,IAAI,eAAe,KAAK,GAAG;GAC1B,aAAa,KAAK;IACjB,MAAM;IACN,SAAS,SAAS,MAAM,KAAK,qCAAqC,QAAQ;IAC1E;IACA,MAAM;GACP,CAAC;GACD;EACD;EACA,MAAM,QAAQ,IAAI,aAAa,IAAI,OAAO;EAC1C,IAAI,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SAAS;IACT,YAAY;IACZ,YAAY,EAAE,QAAQ,GAAG;IACzB,mBAAmB,EAAE,UAAU;KAC9B,MAAM;KACN,IAAI;IACL,EAAE;IACF,IAAI;GACL;EACD;CACD;AACD;AAGA,MAAM,0BAA0B,EAAE,KAAK,EAAE,QAAQ;CAChD,MAAM;CACN,eAAe;CACf,MAAM,CAAC;EACN,MAAM;EACN,MAAM;EACN,SAAS;EACT,SAAS;EACT,SAAS;CACV,CAAC;CACD,QAAQ;EACP,SAAS;EACT,YAAY;EACZ,YAAY,EAAE,QAAQ;GACrB,MAAM;GACN,OAAO;EACR,EAAE;CACH;AACD,EAAE,EAAE"}
@@ -1,3 +1,3 @@
1
- import { o as Expression, x as ScopeField } from "./expression-C6yUAU4j.mjs";
2
- import { T as WhereFilter, _ as SelectQuery, a as DeleteQuery, c as GatedMethod, f as QueryContext, g as Scope, h as ResolveRow, i as Db, l as GroupedQuery, s as Functions, t as AggregateFunctions, u as InsertQuery, v as Subquery, w as UpdateQuery, x as TableProxy } from "./db-DLjWu9-f-B79_8TyU.mjs";
1
+ import { o as Expression, x as ScopeField } from "./expression-DLgBXKdO.mjs";
2
+ import { T as WhereFilter, _ as SelectQuery, a as DeleteQuery, c as GatedMethod, f as QueryContext, g as Scope, h as ResolveRow, i as Db, l as GroupedQuery, s as Functions, t as AggregateFunctions, u as InsertQuery, v as Subquery, w as UpdateQuery, x as TableProxy } from "./db-DLjWu9-f-NJprwMBN.mjs";
3
3
  export type { AggregateFunctions, Db, DeleteQuery, Expression, Functions, GatedMethod, GroupedQuery, InsertQuery, QueryContext, ResolveRow, Scope, ScopeField, SelectQuery, Subquery, TableProxy, UpdateQuery, WhereFilter };
@@ -1,12 +1,12 @@
1
- import { c as SqlStorage } from "./sql-storage-BSxD7_vv-C4ugLH39.mjs";
2
- import "./types-BoMDdzjD.mjs";
3
- import { i as SqlOperationEntry } from "./index-DrUd8HwS.mjs";
4
- import { c as AnyExpression } from "./types-Yui2yFf6-DQkiEr9B.mjs";
5
- import "./ast-qnGR-fmK.mjs";
6
- import { l as RawCodecInferer, o as Expression, x as ScopeField } from "./expression-C6yUAU4j.mjs";
7
- import { S as TableProxyContract, f as QueryContext, g as Scope, i as Db, o as FieldProxy, p as RawLane, s as Functions, t as AggregateFunctions } from "./db-DLjWu9-f-B79_8TyU.mjs";
8
- import { a as SqlAggregateDescriptorRegistry, n as ExecutionContext } from "./query-lane-context-BSmWfohZ-QAWw_dXQ.mjs";
9
- import "./query-lane-context-B0R8L6W-.mjs";
1
+ import { c as SqlStorage } from "./sql-storage-jJySr7bL-1Eh2i2r1.mjs";
2
+ import "./types-E46h1SEX.mjs";
3
+ import { i as SqlOperationEntry } from "./index-BlVbNiHO.mjs";
4
+ import { c as AnyExpression } from "./types-Yui2yFf6-Ceyf2gJ2.mjs";
5
+ import "./ast-S4eEzFmO.mjs";
6
+ import { l as RawCodecInferer, o as Expression, x as ScopeField } from "./expression-DLgBXKdO.mjs";
7
+ import { S as TableProxyContract, f as QueryContext, g as Scope, i as Db, o as FieldProxy, p as RawLane, s as Functions, t as AggregateFunctions } from "./db-DLjWu9-f-NJprwMBN.mjs";
8
+ import { a as SqlAggregateDescriptorRegistry, n as ExecutionContext } from "./query-lane-context-BSmWfohZ-yCQ9qzQZ.mjs";
9
+ import "./query-lane-context-DbJO1bmQ.mjs";
10
10
  import { Contract } from "@prisma/orm-framework/contract/types";
11
11
  //#region ../../../2-sql/4-lanes/sql-builder/dist/runtime/index.d.mts
12
12
  //#region src/runtime/expression-impl.d.ts
@@ -1,7 +1,7 @@
1
1
  import { C as LiteralExpr, D as OrExpr, F as SubqueryExpr, H as isOrderByDirection, I as TableSource, L as UpdateAst, O as OrderByItem, P as SelectAst, S as ListExpression, T as NullCheckExpr, U as isOrderByNulls, V as isAggregateFn, _ as InsertAst, c as DeleteAst, g as IdentifierRef, j as ProjectionItem, k as ParamRef, l as DerivedTableSource, n as AndExpr, o as ColumnRef, p as ExistsExpr, r as BinaryExpr, t as AggregateExpr, y as JoinAst } from "./types-BPi4d3WI-D8PIEqBU.mjs";
2
2
  import { t as collectOrderedParamRefs } from "./util-DQQgv2j1-D6INZaRG.mjs";
3
3
  import { i as isExpression, n as codecOf, o as toExpr, r as createRawSql } from "./expression-vAEOvq7J.mjs";
4
- import { n as codecRefForStorageColumn } from "./codec-descriptor-registry-B1v3GEdK.mjs";
4
+ import { n as codecRefForStorageColumn } from "./codec-descriptor-registry-BSoMKDUv.mjs";
5
5
  import { assertAnnotationsApplicable } from "@prisma/orm-framework/components/runtime";
6
6
  //#region ../../../2-sql/4-lanes/sql-builder/dist/runtime/index.mjs
7
7
  /**
@@ -1,3 +1,3 @@
1
- import { o as Expression, x as ScopeField } from "./expression-C6yUAU4j.mjs";
2
- import { C as UnboundTables, S as TableProxyContract, T as WhereFilter, _ as SelectQuery, a as DeleteQuery, b as TableNamesAcrossNamespaces, c as GatedMethod, d as Namespace, f as QueryContext, g as Scope, h as ResolveRow, i as Db, l as GroupedQuery, m as RawTagFor, n as BooleanCodecType, p as RawLane, r as ContractRawTag, s as Functions, t as AggregateFunctions, u as InsertQuery, v as Subquery, w as UpdateQuery, x as TableProxy, y as TableInAnyNamespace } from "./db-DLjWu9-f-B79_8TyU.mjs";
1
+ import { o as Expression, x as ScopeField } from "./expression-DLgBXKdO.mjs";
2
+ import { C as UnboundTables, S as TableProxyContract, T as WhereFilter, _ as SelectQuery, a as DeleteQuery, b as TableNamesAcrossNamespaces, c as GatedMethod, d as Namespace, f as QueryContext, g as Scope, h as ResolveRow, i as Db, l as GroupedQuery, m as RawTagFor, n as BooleanCodecType, p as RawLane, r as ContractRawTag, s as Functions, t as AggregateFunctions, u as InsertQuery, v as Subquery, w as UpdateQuery, x as TableProxy, y as TableInAnyNamespace } from "./db-DLjWu9-f-NJprwMBN.mjs";
3
3
  export type { AggregateFunctions, BooleanCodecType, ContractRawTag, Db, DeleteQuery, Expression, Functions, GatedMethod, GroupedQuery, InsertQuery, Namespace, QueryContext, RawLane, RawTagFor, ResolveRow, Scope, ScopeField, SelectQuery, Subquery, TableInAnyNamespace, TableNamesAcrossNamespaces, TableProxy, TableProxyContract, UnboundTables, UpdateQuery, WhereFilter };
@@ -1,5 +1,5 @@
1
1
  import { t as resolveStorageTable } from "./resolve-storage-table-DZsfnzeW.mjs";
2
- import { d as resolvedTypeParams, u as isStorageTypeInstance } from "./types-BmXzMDQL.mjs";
2
+ import { d as resolvedTypeParams, u as isStorageTypeInstance } from "./types-jFnALKoT.mjs";
3
3
  import { structuredError } from "@prisma/orm-framework/utils/structured-error";
4
4
  import { blindCast } from "@prisma/orm-framework/utils/casts";
5
5
  //#region ../../../2-sql/4-lanes/relational-core/dist/exports/codec-descriptor-registry.mjs
@@ -84,4 +84,4 @@ function buildCodecDescriptorRegistry(allDescriptors, storage) {
84
84
  //#endregion
85
85
  export { codecRefForStorageColumn as n, buildCodecDescriptorRegistry as t };
86
86
 
87
- //# sourceMappingURL=codec-descriptor-registry-B1v3GEdK.mjs.map
87
+ //# sourceMappingURL=codec-descriptor-registry-BSoMKDUv.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"codec-descriptor-registry-B1v3GEdK.mjs","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/exports/codec-descriptor-registry.mjs"],"sourcesContent":["import { structuredError } from \"@internal/utils/structured-error\";\nimport { resolveStorageTable } from \"@internal/sql-contract/resolve-storage-table\";\nimport { isStorageTypeInstance, resolvedTypeParams } from \"@internal/sql-contract/types\";\nimport { blindCast } from \"@internal/utils/casts\";\n//#region src/codec-ref-for-column.ts\n/**\n* Derive the canonical {@link CodecRef} for a `(table, column)` pair against a {@link SqlStorage}. This is the build-time path every column-bound `ParamRef` / `ProjectionItem` uses to stamp its `codec` slot before the AST is handed to the runtime — the runtime resolver then materialises a memoised {@link import('@internal/sql-relational-core/ast').Codec} for the same `CodecRef` via `forCodecRef`.\n*\n* Resolution rules over namespace `entries.table[table].columns[column]`:\n*\n* - `typeRef` column → `{codecId, typeParams}` from `storage.types[typeRef]` (multiple columns sharing the typeRef share one ref → one memoised codec).\n* - inline `typeParams` column → `{codecId, typeParams}` from the column itself.\n* - non-parameterized column → `{codecId}` with `typeParams` undefined.\n*\n* Returns `undefined` when the table or column is unknown, or when a `typeRef` column references a `storage.types` entry that does not exist.\n*\n* `namespaceId` leads the coordinate args and is always supplied: every\n* model/table sits in an explicit namespace, so the table is resolved strictly\n* within that namespace (see {@link resolveStorageTable}).\n*/\nfunction codecRefForStorageColumn(storage, namespaceId, tableName, columnName) {\n\tconst resolved = resolveStorageTable(storage, tableName, namespaceId);\n\tif (resolved === void 0) return void 0;\n\tconst columnDef = resolved.table.columns[columnName];\n\tif (!columnDef) return void 0;\n\tconst typeParams = resolvedTypeParams(columnDef, storage.types);\n\tconst params = typeParams === void 0 ? {} : { typeParams: blindCast(typeParams) };\n\tif (columnDef.typeRef !== void 0) {\n\t\tconst instance = storage.types?.[columnDef.typeRef];\n\t\tif (!instance || !isStorageTypeInstance(instance)) return void 0;\n\t\treturn {\n\t\t\tcodecId: instance.codecId,\n\t\t\t...params\n\t\t};\n\t}\n\treturn columnDef.many ? {\n\t\tcodecId: columnDef.codecId,\n\t\t...params,\n\t\tmany: true\n\t} : {\n\t\tcodecId: columnDef.codecId,\n\t\t...params\n\t};\n}\n//#endregion\n//#region src/codec-descriptor-registry.ts\n/**\n* Build a {@link CodecDescriptorRegistry} from a flat descriptor list.\n*\n* Used by:\n* - Each codec-shipping package's `core/registry.ts` to expose a package-scoped registry as the public consumer surface (replacing raw descriptor-array exports). See ADR 208.\n* - The runtime's `buildExecutionContext` to construct the contract-bound combined registry from every contributor's `codecs:` slot.\n*\n* The descriptor map is heterogeneous in `P` — each codec id has its own params shape. The public {@link CodecDescriptorRegistry} interface widens to `CodecDescriptor<unknown>` and consumers narrow per codec id at the call site (the descriptor's `paramsSchema` validates JSON-sourced params before the factory ever sees them, so the runtime narrow is safe). The cast at registration goes through `unknown` because\n* `CodecDescriptor<P>` is invariant in `P` (the `factory` and `renderOutputType` slots use `P` contravariantly).\n*/\nfunction buildCodecDescriptorRegistry(allDescriptors, storage) {\n\tconst byId = /* @__PURE__ */ new Map();\n\tconst byTargetType = /* @__PURE__ */ new Map();\n\tfor (const descriptor of allDescriptors) {\n\t\tif (byId.has(descriptor.codecId)) throw structuredError(\"RUNTIME.DUPLICATE_CODEC\", `Duplicate codec descriptor id: '${descriptor.codecId}' — registered twice during registry construction. Each codecId must be contributed by exactly one component (target / adapter / extension pack).`, { meta: { codecId: descriptor.codecId } });\n\t\tconst widened = descriptor;\n\t\tbyId.set(descriptor.codecId, widened);\n\t\tfor (const targetType of descriptor.targetTypes) {\n\t\t\tconst list = byTargetType.get(targetType);\n\t\t\tif (list) list.push(widened);\n\t\t\telse byTargetType.set(targetType, [widened]);\n\t\t}\n\t}\n\treturn {\n\t\tdescriptorFor(codecId) {\n\t\t\treturn byId.get(codecId);\n\t\t},\n\t\tcodecRefForColumn(namespaceId, table, column) {\n\t\t\tif (!storage) return void 0;\n\t\t\treturn codecRefForStorageColumn(storage, namespaceId, table, column);\n\t\t},\n\t\t*values() {\n\t\t\tyield* byId.values();\n\t\t},\n\t\tbyTargetType(targetType) {\n\t\t\treturn byTargetType.get(targetType) ?? Object.freeze([]);\n\t\t}\n\t};\n}\n//#endregion\nexport { buildCodecDescriptorRegistry, codecRefForStorageColumn };\n\n//# sourceMappingURL=codec-descriptor-registry.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;;AAoBA,SAAS,yBAAyB,SAAS,aAAa,WAAW,YAAY;CAC9E,MAAM,WAAW,oBAAoB,SAAS,WAAW,WAAW;CACpE,IAAI,aAAa,KAAK,GAAG,OAAO,KAAK;CACrC,MAAM,YAAY,SAAS,MAAM,QAAQ;CACzC,IAAI,CAAC,WAAW,OAAO,KAAK;CAC5B,MAAM,aAAa,mBAAmB,WAAW,QAAQ,KAAK;CAC9D,MAAM,SAAS,eAAe,KAAK,IAAI,CAAC,IAAI,EAAE,YAAY,UAAU,UAAU,EAAE;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-descriptor-registry.mjs"],"sourcesContent":["import { structuredError } from \"@internal/utils/structured-error\";\nimport { resolveStorageTable } from \"@internal/sql-contract/resolve-storage-table\";\nimport { isStorageTypeInstance, resolvedTypeParams } from \"@internal/sql-contract/types\";\nimport { blindCast } from \"@internal/utils/casts\";\n//#region src/codec-ref-for-column.ts\n/**\n* Derive the canonical {@link CodecRef} for a `(table, column)` pair against a {@link SqlStorage}. This is the build-time path every column-bound `ParamRef` / `ProjectionItem` uses to stamp its `codec` slot before the AST is handed to the runtime — the runtime resolver then materialises a memoised {@link import('@internal/sql-relational-core/ast').Codec} for the same `CodecRef` via `forCodecRef`.\n*\n* Resolution rules over namespace `entries.table[table].columns[column]`:\n*\n* - `typeRef` column → `{codecId, typeParams}` from `storage.types[typeRef]` (multiple columns sharing the typeRef share one ref → one memoised codec).\n* - inline `typeParams` column → `{codecId, typeParams}` from the column itself.\n* - non-parameterized column → `{codecId}` with `typeParams` undefined.\n*\n* Returns `undefined` when the table or column is unknown, or when a `typeRef` column references a `storage.types` entry that does not exist.\n*\n* `namespaceId` leads the coordinate args and is always supplied: every\n* model/table sits in an explicit namespace, so the table is resolved strictly\n* within that namespace (see {@link resolveStorageTable}).\n*/\nfunction codecRefForStorageColumn(storage, namespaceId, tableName, columnName) {\n\tconst resolved = resolveStorageTable(storage, tableName, namespaceId);\n\tif (resolved === void 0) return void 0;\n\tconst columnDef = resolved.table.columns[columnName];\n\tif (!columnDef) return void 0;\n\tconst typeParams = resolvedTypeParams(columnDef, storage.types);\n\tconst params = typeParams === void 0 ? {} : { typeParams: blindCast(typeParams) };\n\tif (columnDef.typeRef !== void 0) {\n\t\tconst instance = storage.types?.[columnDef.typeRef];\n\t\tif (!instance || !isStorageTypeInstance(instance)) return void 0;\n\t\treturn {\n\t\t\tcodecId: instance.codecId,\n\t\t\t...params\n\t\t};\n\t}\n\treturn columnDef.many ? {\n\t\tcodecId: columnDef.codecId,\n\t\t...params,\n\t\tmany: true\n\t} : {\n\t\tcodecId: columnDef.codecId,\n\t\t...params\n\t};\n}\n//#endregion\n//#region src/codec-descriptor-registry.ts\n/**\n* Build a {@link CodecDescriptorRegistry} from a flat descriptor list.\n*\n* Used by:\n* - Each codec-shipping package's `core/registry.ts` to expose a package-scoped registry as the public consumer surface (replacing raw descriptor-array exports). See ADR 208.\n* - The runtime's `buildExecutionContext` to construct the contract-bound combined registry from every contributor's `codecs:` slot.\n*\n* The descriptor map is heterogeneous in `P` — each codec id has its own params shape. The public {@link CodecDescriptorRegistry} interface widens to `CodecDescriptor<unknown>` and consumers narrow per codec id at the call site (the descriptor's `paramsSchema` validates JSON-sourced params before the factory ever sees them, so the runtime narrow is safe). The cast at registration goes through `unknown` because\n* `CodecDescriptor<P>` is invariant in `P` (the `factory` and `renderOutputType` slots use `P` contravariantly).\n*/\nfunction buildCodecDescriptorRegistry(allDescriptors, storage) {\n\tconst byId = /* @__PURE__ */ new Map();\n\tconst byTargetType = /* @__PURE__ */ new Map();\n\tfor (const descriptor of allDescriptors) {\n\t\tif (byId.has(descriptor.codecId)) throw structuredError(\"RUNTIME.DUPLICATE_CODEC\", `Duplicate codec descriptor id: '${descriptor.codecId}' — registered twice during registry construction. Each codecId must be contributed by exactly one component (target / adapter / extension pack).`, { meta: { codecId: descriptor.codecId } });\n\t\tconst widened = descriptor;\n\t\tbyId.set(descriptor.codecId, widened);\n\t\tfor (const targetType of descriptor.targetTypes) {\n\t\t\tconst list = byTargetType.get(targetType);\n\t\t\tif (list) list.push(widened);\n\t\t\telse byTargetType.set(targetType, [widened]);\n\t\t}\n\t}\n\treturn {\n\t\tdescriptorFor(codecId) {\n\t\t\treturn byId.get(codecId);\n\t\t},\n\t\tcodecRefForColumn(namespaceId, table, column) {\n\t\t\tif (!storage) return void 0;\n\t\t\treturn codecRefForStorageColumn(storage, namespaceId, table, column);\n\t\t},\n\t\t*values() {\n\t\t\tyield* byId.values();\n\t\t},\n\t\tbyTargetType(targetType) {\n\t\t\treturn byTargetType.get(targetType) ?? Object.free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O;QACtB,aAAa,IAAI,YAAY,CAAC,OAAO,CAAC;EAC5C;CACD;CACA,OAAO;EACN,cAAc,SAAS;GACtB,OAAO,KAAK,IAAI,OAAO;EACxB;EACA,kBAAkB,aAAa,OAAO,QAAQ;GAC7C,IAAI,CAAC,SAAS,OAAO,KAAK;GAC1B,OAAO,yBAAyB,SAAS,aAAa,OAAO,MAAM;EACpE;EACA,CAAC,SAAS;GACT,OAAO,KAAK,OAAO;EACpB;EACA,aAAa,YAAY;GACxB,OAAO,aAAa,IAAI,UAAU,KAAK,OAAO,OAAO,CAAC,CAAC;EACxD;CACD;AACD"}
@@ -1,4 +1,4 @@
1
- import { n as buildSqlContractFromDefinition, r as contractError, t as applySqlSpecifierControlPolicy } from "./derived-checks-a_OpD3OE-BLAb_lZ9.mjs";
1
+ import { n as buildSqlContractFromDefinition, r as contractError, t as applySqlSpecifierControlPolicy } from "./derived-checks-C_y1rk6O-DdqjzGNy.mjs";
2
2
  import { InternalError } from "@prisma/orm-framework/utils/internal-error";
3
3
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
4
4
  import { ok } from "@prisma/orm-framework/utils/result";
@@ -61,4 +61,4 @@ function typescriptContractFromPath(contractPath, output, options) {
61
61
  //#endregion
62
62
  export { typescriptContract as n, typescriptContractFromPath as r, emptyContract as t };
63
63
 
64
- //# sourceMappingURL=config-types-BzCtgjh6.mjs.map
64
+ //# sourceMappingURL=config-types-CYRUgWbg.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"config-types-BzCtgjh6.mjs","names":[],"sources":["../../../../2-sql/2-authoring/contract-ts/dist/config-types.mjs"],"sourcesContent":["import { i as contractError, n as buildSqlContractFromDefinition, t as applySqlSpecifierControlPolicy } from \"./derived-checks-a_OpD3OE.mjs\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { pathToFileURL } from \"node:url\";\nimport { ok } from \"@internal/utils/result\";\nimport { extname } from \"pathe\";\n//#region src/config-types.ts\n/**\n* Derives the emit output path from the TS contract input so artefacts land\n* colocated with the source (e.g. `prisma/contract.ts` →\n* `prisma/contract.json`). Mirrors the same default-derivation logic in\n* `@internal/sql-contract-psl/provider`.\n*/\nfunction defaultOutputFromContractPath(contractPath) {\n\tconst ext = extname(contractPath);\n\tif (ext.length === 0) return `${contractPath}.json`;\n\treturn `${contractPath.slice(0, -ext.length)}.json`;\n}\nfunction emptyContract(options) {\n\treturn {\n\t\tsource: {\n\t\t\tformat: \"typescript\",\n\t\t\tload: async () => {\n\t\t\t\treturn ok(applySqlSpecifierControlPolicy(buildSqlContractFromDefinition({\n\t\t\t\t\twarnings: void 0,\n\t\t\t\t\ttarget: options.target,\n\t\t\t\t\tcreateNamespace: options.createNamespace,\n\t\t\t\t\tmodels: []\n\t\t\t\t}), options.defaultControlPolicy, options.createNamespace));\n\t\t\t}\n\t\t},\n\t\t...ifDefined(\"output\", options.output)\n\t};\n}\nfunction typescriptContract(contract, output, options) {\n\treturn {\n\t\tsource: {\n\t\t\tformat: \"typescript\",\n\t\t\tload: async () => ok(options === void 0 ? contract : applySqlSpecifierControlPolicy(contract, options.defaultControlPolicy, options.createNamespace))\n\t\t},\n\t\t...ifDefined(\"output\", output)\n\t};\n}\nfunction typescriptContractFromPath(contractPath, output, options) {\n\treturn {\n\t\tsource: {\n\t\t\tformat: \"typescript\",\n\t\t\tinputs: [contractPath],\n\t\t\tload: async (context) => {\n\t\t\t\tconst [absolutePath] = context.resolvedInputs;\n\t\t\t\tif (absolutePath === void 0) throw new InternalError(\"typescriptContractFromPath: context.resolvedInputs is empty. The CLI config loader should populate it from source.inputs.\");\n\t\t\t\tconst mod = await import(pathToFileURL(absolutePath).href);\n\t\t\t\tconst contract = mod.default ?? mod.contract;\n\t\t\t\tif (contract === void 0) throw contractError(\"CONTRACT.MODULE_EXPORT_MISSING\", `typescriptContractFromPath: module at \"${absolutePath}\" has no \"default\" or \"contract\" export.`, { meta: { path: absolutePath } });\n\t\t\t\treturn ok(options === void 0 ? contract : applySqlSpecifierControlPolicy(contract, options.defaultControlPolicy, options.createNamespace));\n\t\t\t}\n\t\t},\n\t\toutput: output ?? defaultOutputFromContractPath(contractPath)\n\t};\n}\n//#endregion\nexport { emptyContract, typescriptContract, typescriptContractFromPath };\n\n//# sourceMappingURL=config-types.mjs.map"],"mappings":";;;;;;;;;;;;;AAaA,SAAS,8BAA8B,cAAc;CACpD,MAAM,MAAM,QAAQ,YAAY;CAChC,IAAI,IAAI,WAAW,GAAG,OAAO,GAAG,aAAa;CAC7C,OAAO,GAAG,aAAa,MAAM,GAAG,CAAC,IAAI,MAAM,EAAE;AAC9C;AACA,SAAS,cAAc,SAAS;CAC/B,OAAO;EACN,QAAQ;GACP,QAAQ;GACR,MAAM,YAAY;IACjB,OAAO,GAAG,+BAA+B,+BAA+B;KACvE,UAAU,KAAK;KACf,QAAQ,QAAQ;KAChB,iBAAiB,QAAQ;KACzB,QAAQ,CAAC;IACV,CAAC,GAAG,QAAQ,sBAAsB,QAAQ,eAAe,CAAC;GAC3D;EACD;EACA,GAAG,UAAU,UAAU,QAAQ,MAAM;CACtC;AACD;AACA,SAAS,mBAAmB,UAAU,QAAQ,SAAS;CACtD,OAAO;EACN,QAAQ;GACP,QAAQ;GACR,MAAM,YAAY,GAAG,YAAY,KAAK,IAAI,WAAW,+BAA+B,UAAU,QAAQ,sBAAsB,QAAQ,eAAe,CAAC;EACrJ;EACA,GAAG,UAAU,UAAU,MAAM;CAC9B;AACD;AACA,SAAS,2BAA2B,cAAc,QAAQ,SAAS;CAClE,OAAO;EACN,QAAQ;GACP,QAAQ;GACR,QAAQ,CAAC,YAAY;GACrB,MAAM,OAAO,YAAY;IACxB,MAAM,CAAC,gBAAgB,QAAQ;IAC/B,IAAI,iBAAiB,KAAK,GAAG,MAAM,IAAI,cAAc,2HAA2H;IAChL,MAAM,MAAM,MAAM,OAAO,cAAc,YAAY,CAAC,CAAC;IACrD,MAAM,WAAW,IAAI,WAAW,IAAI;IACpC,IAAI,aAAa,KAAK,GAAG,MAAM,cAAc,kCAAkC,0CAA0C,aAAa,2CAA2C,EAAE,MAAM,EAAE,MAAM,aAAa,EAAE,CAAC;IACjN,OAAO,GAAG,YAAY,KAAK,IAAI,WAAW,+BAA+B,UAAU,QAAQ,sBAAsB,QAAQ,eAAe,CAAC;GAC1I;EACD;EACA,QAAQ,UAAU,8BAA8B,YAAY;CAC7D;AACD"}
1
+ {"version":3,"file":"config-types-CYRUgWbg.mjs","names":[],"sources":["../../../../2-sql/2-authoring/contract-ts/dist/config-types.mjs"],"sourcesContent":["import { i as contractError, n as buildSqlContractFromDefinition, t as applySqlSpecifierControlPolicy } from \"./derived-checks-C_y1rk6O.mjs\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { pathToFileURL } from \"node:url\";\nimport { ok } from \"@internal/utils/result\";\nimport { extname } from \"pathe\";\n//#region src/config-types.ts\n/**\n* Derives the emit output path from the TS contract input so artefacts land\n* colocated with the source (e.g. `prisma/contract.ts` →\n* `prisma/contract.json`). Mirrors the same default-derivation logic in\n* `@internal/sql-contract-psl/provider`.\n*/\nfunction defaultOutputFromContractPath(contractPath) {\n\tconst ext = extname(contractPath);\n\tif (ext.length === 0) return `${contractPath}.json`;\n\treturn `${contractPath.slice(0, -ext.length)}.json`;\n}\nfunction emptyContract(options) {\n\treturn {\n\t\tsource: {\n\t\t\tformat: \"typescript\",\n\t\t\tload: async () => {\n\t\t\t\treturn ok(applySqlSpecifierControlPolicy(buildSqlContractFromDefinition({\n\t\t\t\t\twarnings: void 0,\n\t\t\t\t\ttarget: options.target,\n\t\t\t\t\tcreateNamespace: options.createNamespace,\n\t\t\t\t\tmodels: []\n\t\t\t\t}), options.defaultControlPolicy, options.createNamespace));\n\t\t\t}\n\t\t},\n\t\t...ifDefined(\"output\", options.output)\n\t};\n}\nfunction typescriptContract(contract, output, options) {\n\treturn {\n\t\tsource: {\n\t\t\tformat: \"typescript\",\n\t\t\tload: async () => ok(options === void 0 ? contract : applySqlSpecifierControlPolicy(contract, options.defaultControlPolicy, options.createNamespace))\n\t\t},\n\t\t...ifDefined(\"output\", output)\n\t};\n}\nfunction typescriptContractFromPath(contractPath, output, options) {\n\treturn {\n\t\tsource: {\n\t\t\tformat: \"typescript\",\n\t\t\tinputs: [contractPath],\n\t\t\tload: async (context) => {\n\t\t\t\tconst [absolutePath] = context.resolvedInputs;\n\t\t\t\tif (absolutePath === void 0) throw new InternalError(\"typescriptContractFromPath: context.resolvedInputs is empty. The CLI config loader should populate it from source.inputs.\");\n\t\t\t\tconst mod = await import(pathToFileURL(absolutePath).href);\n\t\t\t\tconst contract = mod.default ?? mod.contract;\n\t\t\t\tif (contract === void 0) throw contractError(\"CONTRACT.MODULE_EXPORT_MISSING\", `typescriptContractFromPath: module at \"${absolutePath}\" has no \"default\" or \"contract\" export.`, { meta: { path: absolutePath } });\n\t\t\t\treturn ok(options === void 0 ? contract : applySqlSpecifierControlPolicy(contract, options.defaultControlPolicy, options.createNamespace));\n\t\t\t}\n\t\t},\n\t\toutput: output ?? defaultOutputFromContractPath(contractPath)\n\t};\n}\n//#endregion\nexport { emptyContract, typescriptContract, typescriptContractFromPath };\n\n//# sourceMappingURL=config-types.mjs.map"],"mappings":";;;;;;;;;;;;;AAaA,SAAS,8BAA8B,cAAc;CACpD,MAAM,MAAM,QAAQ,YAAY;CAChC,IAAI,IAAI,WAAW,GAAG,OAAO,GAAG,aAAa;CAC7C,OAAO,GAAG,aAAa,MAAM,GAAG,CAAC,IAAI,MAAM,EAAE;AAC9C;AACA,SAAS,cAAc,SAAS;CAC/B,OAAO;EACN,QAAQ;GACP,QAAQ;GACR,MAAM,YAAY;IACjB,OAAO,GAAG,+BAA+B,+BAA+B;KACvE,UAAU,KAAK;KACf,QAAQ,QAAQ;KAChB,iBAAiB,QAAQ;KACzB,QAAQ,CAAC;IACV,CAAC,GAAG,QAAQ,sBAAsB,QAAQ,eAAe,CAAC;GAC3D;EACD;EACA,GAAG,UAAU,UAAU,QAAQ,MAAM;CACtC;AACD;AACA,SAAS,mBAAmB,UAAU,QAAQ,SAAS;CACtD,OAAO;EACN,QAAQ;GACP,QAAQ;GACR,MAAM,YAAY,GAAG,YAAY,KAAK,IAAI,WAAW,+BAA+B,UAAU,QAAQ,sBAAsB,QAAQ,eAAe,CAAC;EACrJ;EACA,GAAG,UAAU,UAAU,MAAM;CAC9B;AACD;AACA,SAAS,2BAA2B,cAAc,QAAQ,SAAS;CAClE,OAAO;EACN,QAAQ;GACP,QAAQ;GACR,QAAQ,CAAC,YAAY;GACrB,MAAM,OAAO,YAAY;IACxB,MAAM,CAAC,gBAAgB,QAAQ;IAC/B,IAAI,iBAAiB,KAAK,GAAG,MAAM,IAAI,cAAc,2HAA2H;IAChL,MAAM,MAAM,MAAM,OAAO,cAAc,YAAY,CAAC,CAAC;IACrD,MAAM,WAAW,IAAI,WAAW,IAAI;IACpC,IAAI,aAAa,KAAK,GAAG,MAAM,cAAc,kCAAkC,0CAA0C,aAAa,2CAA2C,EAAE,MAAM,EAAE,MAAM,aAAa,EAAE,CAAC;IACjN,OAAO,GAAG,YAAY,KAAK,IAAI,WAAW,+BAA+B,UAAU,QAAQ,sBAAsB,QAAQ,eAAe,CAAC;GAC1I;EACD;EACA,QAAQ,UAAU,8BAA8B,YAAY;CAC7D;AACD"}
@@ -1,6 +1,6 @@
1
- import { i as SqlNamespaceBase, s as SqlNamespaceInput } from "./sql-storage-BSxD7_vv-C4ugLH39.mjs";
2
- import "./types-BoMDdzjD.mjs";
3
- import { t as SqlNamespaceFactory } from "./derived-checks-DPdD01O0-zXZEuy5P.mjs";
1
+ import { i as SqlNamespaceBase, s as SqlNamespaceInput } from "./sql-storage-jJySr7bL-1Eh2i2r1.mjs";
2
+ import "./types-E46h1SEX.mjs";
3
+ import { t as SqlNamespaceFactory } from "./derived-checks-DPdD01O0-CwIwhhTu.mjs";
4
4
  import { Contract, ControlPolicy } from "@prisma/orm-framework/contract/types";
5
5
  import { TargetPackRef } from "@prisma/orm-framework/components/components";
6
6
  import { ContractConfig, ContractConfig as ContractConfig$1 } from "@prisma/orm-framework/config/config-types";
@@ -25,4 +25,4 @@ declare function typescriptContract(contract: Contract, output?: string, options
25
25
  declare function typescriptContractFromPath(contractPath: string, output?: string, options?: TypeScriptContractSpecifierOptions): ContractConfig;
26
26
  //#endregion
27
27
  export { typescriptContractFromPath as i, emptyContract as n, typescriptContract as r, ContractConfig$1 as t };
28
- //# sourceMappingURL=config-types-VJ5O9Ert.d.mts.map
28
+ //# sourceMappingURL=config-types-Dpg3tzCJ.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config-types-VJ5O9Ert.d.mts","names":[],"sources":["../../../../2-sql/2-authoring/contract-ts/dist/config-types.d.mts"],"mappings":";;;;;;;;;;;;;UAWU;WACC,sBAAsB;WACtB,iBAAiB;;iBAEX,cAAc;WACpB;WACA,QAAQ;WACR,kBAAkB,OAAO,sBAAsB;WAC/C,uBAAuB;IAC9B;iBACa,mBAAmB,UAAU,UAAU,iBAAiB,UAAU,qCAAqC;iBACvG,2BAA2B,sBAAsB,iBAAiB,UAAU,qCAAqC"}
1
+ {"version":3,"file":"config-types-Dpg3tzCJ.d.mts","names":[],"sources":["../../../../2-sql/2-authoring/contract-ts/dist/config-types.d.mts"],"mappings":";;;;;;;;;;;;;UAWU;WACC,sBAAsB;WACtB,iBAAiB;;iBAEX,cAAc;WACpB;WACA,QAAQ;WACR,kBAAkB,OAAO,sBAAsB;WAC/C,uBAAuB;IAC9B;iBACa,mBAAmB,UAAU,UAAU,iBAAiB,UAAU,qCAAqC;iBACvG,2BAA2B,sBAAsB,iBAAiB,UAAU,qCAAqC"}
@@ -1,7 +1,7 @@
1
1
  import { t as providesEntityHandleLowering } from "./entity-handle-lowering-hook-B3atrRKX.mjs";
2
- import { f as toStorageTypeInstance } from "./types-BmXzMDQL.mjs";
3
- import { n as checkSqlDefaultBody, o as reservedSqlDefaultBody } from "./validators-BlqrBU7I.mjs";
4
- import { n as buildSqlContractFromDefinition, o as toOneNullabilityContradictionMessage, r as contractError } from "./derived-checks-a_OpD3OE-BLAb_lZ9.mjs";
2
+ import { f as toStorageTypeInstance } from "./types-jFnALKoT.mjs";
3
+ import { n as checkSqlDefaultBody, o as reservedSqlDefaultBody } from "./validators-DvzOZLel.mjs";
4
+ import { n as buildSqlContractFromDefinition, o as toOneNullabilityContradictionMessage, r as contractError } from "./derived-checks-C_y1rk6O-DdqjzGNy.mjs";
5
5
  import { assertNoCrossRegistryCollisions, instantiateAuthoringFieldPreset, instantiateAuthoringTypeConstructor, isAuthoringEntityTypeDescriptor, isAuthoringTypeConstructorDescriptor, validateAuthoringHelperArguments } from "@prisma/orm-framework/components/authoring";
6
6
  import { InternalError } from "@prisma/orm-framework/utils/internal-error";
7
7
  import { isColumnDefault } from "@prisma/orm-framework/contract/types";
@@ -95,10 +95,10 @@ var ScalarFieldBuilder = class ScalarFieldBuilder {
95
95
  columnName: name
96
96
  }));
97
97
  }
98
- many() {
98
+ many(options) {
99
99
  return new ScalarFieldBuilder(blindCast({
100
100
  ...this.state,
101
- many: true
101
+ many: { elementNullable: options?.elementsNullable === true }
102
102
  }));
103
103
  }
104
104
  /**
@@ -183,7 +183,8 @@ var EnumScalarFieldBuilder = class EnumScalarFieldBuilder extends ScalarFieldBui
183
183
  const columnField = (descriptor) => new ScalarFieldBuilder({
184
184
  kind: "scalar",
185
185
  descriptor,
186
- nullable: false
186
+ nullable: false,
187
+ many: false
187
188
  });
188
189
  function generatedField(spec) {
189
190
  return new ScalarFieldBuilder({
@@ -193,6 +194,7 @@ function generatedField(spec) {
193
194
  ...spec.typeParams ? { typeParams: spec.typeParams } : {}
194
195
  },
195
196
  nullable: false,
197
+ many: false,
196
198
  executionDefaults: { onCreate: spec.generated }
197
199
  });
198
200
  }
@@ -200,12 +202,14 @@ function untypedNamedTypeField(typeRef) {
200
202
  if (isEnumTypeHandle(typeRef)) return new EnumScalarFieldBuilder(blindCast({
201
203
  kind: "scalar",
202
204
  typeRef,
203
- nullable: false
205
+ nullable: false,
206
+ many: false
204
207
  }), typeRef);
205
208
  return new ScalarFieldBuilder({
206
209
  kind: "scalar",
207
210
  typeRef,
208
- nullable: false
211
+ nullable: false,
212
+ many: false
209
213
  });
210
214
  }
211
215
  const namedTypeField = blindCast(untypedNamedTypeField);
@@ -215,6 +219,7 @@ function buildFieldPreset(descriptor, args, namedConstraintOptions) {
215
219
  kind: "scalar",
216
220
  descriptor: preset.descriptor,
217
221
  nullable: preset.nullable,
222
+ many: false,
218
223
  ...ifDefined("default", preset.default),
219
224
  ...ifDefined("executionDefaults", preset.executionDefaults),
220
225
  ...preset.id ? { id: namedConstraintOptions?.name ? { name: namedConstraintOptions.name } : {} } : {},
@@ -1216,7 +1221,8 @@ function resolveModelNode(spec, allSpecs, storageTypes, storageTypeReverseLookup
1216
1221
  columnName,
1217
1222
  descriptor,
1218
1223
  nullable: fieldState.nullable,
1219
- ...fieldState.many === true ? { many: true } : {},
1224
+ many: fieldState.many !== false,
1225
+ ...fieldState.many !== false ? { elementNullable: fieldState.many.elementNullable } : {},
1220
1226
  ...fieldState.noCheck !== void 0 ? { noCheck: fieldState.noCheck } : {},
1221
1227
  ...fieldState.default ? { default: fieldState.default } : {},
1222
1228
  ...fieldState.executionDefaults ? { executionDefaults: fieldState.executionDefaults } : {},
@@ -1686,4 +1692,4 @@ function sql(strings, ...values) {
1686
1692
  //#endregion
1687
1693
  export { check as a, extensionModel as c, model as d, now as f, buildContractDefinition as i, field as l, sql as m, bindEnumType as n, defineContract as o, rel as p, buildBoundContract as r, enumType as s, autoincrement as t, member as u };
1688
1694
 
1689
- //# sourceMappingURL=contract-builder-CyJOBIFB.mjs.map
1695
+ //# sourceMappingURL=contract-builder-CUfUvDc1.mjs.map