@prisma/orm-family-sql 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 (564) hide show
  1. package/README.md +2 -6
  2. package/dist/{aggregate-descriptor-registry-C7hel5O7.mjs → aggregate-descriptor-registry-ZrKjxwQe.mjs} +5 -5
  3. package/dist/aggregate-descriptor-registry-ZrKjxwQe.mjs.map +1 -0
  4. package/dist/ast-D0miQ1B6.mjs +372 -0
  5. package/dist/ast-D0miQ1B6.mjs.map +1 -0
  6. package/dist/ast-YEMe_B8z.d.mts +292 -0
  7. package/dist/ast-YEMe_B8z.d.mts.map +1 -0
  8. package/dist/attribute-specs-DA_RwQFB.d.mts +114 -0
  9. package/dist/attribute-specs-DA_RwQFB.d.mts.map +1 -0
  10. package/dist/{authored-check-naming-Hf9990DV.mjs → authored-check-naming-BHGJhjqn.mjs} +5 -5
  11. package/dist/authored-check-naming-BHGJhjqn.mjs.map +1 -0
  12. package/dist/{authored-check-naming-BWBe-PVE.d.mts → authored-check-naming-D-o196ry.d.mts} +3 -3
  13. package/dist/authored-check-naming-D-o196ry.d.mts.map +1 -0
  14. package/dist/authoring-entity-types-CgKIgWq5-pEdfjam5.d.mts +9 -0
  15. package/dist/authoring-entity-types-CgKIgWq5-pEdfjam5.d.mts.map +1 -0
  16. package/dist/builder.d.mts +4 -3
  17. package/dist/builder__runtime.d.mts +29 -31
  18. package/dist/builder__runtime.d.mts.map +1 -1
  19. package/dist/builder__runtime.mjs +261 -191
  20. package/dist/builder__runtime.mjs.map +1 -1
  21. package/dist/builder__types.d.mts +6 -3
  22. package/dist/{canonicalization-hooks-dmXkOR4a.mjs → canonicalization-hooks-Ce1v_TDl.mjs} +2 -2
  23. package/dist/canonicalization-hooks-Ce1v_TDl.mjs.map +1 -0
  24. package/dist/{canonicalization-hooks-CYnW_sGn.d.mts → canonicalization-hooks-DyapQ0my.d.mts} +2 -2
  25. package/dist/canonicalization-hooks-DyapQ0my.d.mts.map +1 -0
  26. package/dist/{check-constraint-B7qGu6rc-HvQjjX82.d.mts → check-constraint-B7qGu6rc-Bk2ezWXu.d.mts} +4 -4
  27. package/dist/check-constraint-B7qGu6rc-Bk2ezWXu.d.mts.map +1 -0
  28. package/dist/{codec-descriptor-registry-N0dhtKaH.mjs → codec-descriptor-registry-CiiFzMtb.mjs} +13 -40
  29. package/dist/codec-descriptor-registry-CiiFzMtb.mjs.map +1 -0
  30. package/dist/collection-methods-BB8YH69u.d.mts +1 -0
  31. package/dist/collection-methods-D2UnCS0S-DOy2qHYS.d.mts +77 -0
  32. package/dist/collection-methods-D2UnCS0S-DOy2qHYS.d.mts.map +1 -0
  33. package/dist/{config-types-D9fdKG3g.d.mts → config-types-C-1mIiJO.d.mts} +5 -5
  34. package/dist/config-types-C-1mIiJO.d.mts.map +1 -0
  35. package/dist/{config-types-gAm54C_v.mjs → config-types-DkEeq_qq.mjs} +10 -6
  36. package/dist/config-types-DkEeq_qq.mjs.map +1 -0
  37. package/dist/{contract-builder-D4a5dT7j.mjs → contract-builder-50lF0kz1.mjs} +431 -226
  38. package/dist/contract-builder-50lF0kz1.mjs.map +1 -0
  39. package/dist/contract-builder-C_Zi57iD.d.mts +1967 -0
  40. package/dist/contract-builder-C_Zi57iD.d.mts.map +1 -0
  41. package/dist/contract-emitter.d.mts +4 -7
  42. package/dist/contract-emitter.d.mts.map +1 -1
  43. package/dist/contract-emitter.mjs +1 -1
  44. package/dist/{contract-errors-BCN6RVI5-5IHBF_lg.mjs → contract-errors-BCN6RVI5-DoH6b_KZ.mjs} +2 -2
  45. package/dist/contract-errors-BCN6RVI5-DoH6b_KZ.mjs.map +1 -0
  46. package/dist/contract-prisma7__provider.d.mts +97 -0
  47. package/dist/contract-prisma7__provider.d.mts.map +1 -0
  48. package/dist/contract-prisma7__provider.mjs +2011 -0
  49. package/dist/contract-prisma7__provider.mjs.map +1 -0
  50. package/dist/contract-psl.d.mts +18 -29
  51. package/dist/contract-psl.d.mts.map +1 -1
  52. package/dist/contract-psl.mjs +1 -1
  53. package/dist/contract-psl__attribute-specs.d.mts +2 -0
  54. package/dist/contract-psl__attribute-specs.mjs +2 -0
  55. package/dist/contract-psl__default-table-name.d.mts +7 -0
  56. package/dist/contract-psl__default-table-name.d.mts.map +1 -0
  57. package/dist/contract-psl__default-table-name.mjs +2 -0
  58. package/dist/contract-psl__diagnostics.d.mts +12 -0
  59. package/dist/contract-psl__diagnostics.d.mts.map +1 -0
  60. package/dist/contract-psl__diagnostics.mjs +2 -0
  61. package/dist/contract-psl__map-names.d.mts +16 -0
  62. package/dist/contract-psl__map-names.d.mts.map +1 -0
  63. package/dist/contract-psl__map-names.mjs +21 -0
  64. package/dist/contract-psl__map-names.mjs.map +1 -0
  65. package/dist/contract-psl__provider.d.mts +3 -3
  66. package/dist/contract-psl__provider.d.mts.map +1 -1
  67. package/dist/contract-psl__provider.mjs +95 -46
  68. package/dist/contract-psl__provider.mjs.map +1 -1
  69. package/dist/contract-ts.d.mts +5 -5
  70. package/dist/contract-ts.mjs +5 -4
  71. package/dist/contract-ts__config-types.d.mts +1 -1
  72. package/dist/contract-ts__config-types.mjs +1 -1
  73. package/dist/contract-ts__contract-builder.d.mts +4 -4
  74. package/dist/contract-ts__contract-builder.mjs +4 -3
  75. package/dist/{contract-view-BMR5IWk4.mjs → contract-view-DqpzeYeE.mjs} +2 -2
  76. package/dist/contract-view-DqpzeYeE.mjs.map +1 -0
  77. package/dist/{contract-view-CPHxoAEX.d.mts → contract-view-DuB35or0.d.mts} +3 -3
  78. package/dist/contract-view-DuB35or0.d.mts.map +1 -0
  79. package/dist/contract.d.mts +30 -28
  80. package/dist/contract.mjs +23 -18
  81. package/dist/contract__authored-check-naming.d.mts +1 -1
  82. package/dist/contract__authored-check-naming.mjs +1 -1
  83. package/dist/contract__canonicalization-hooks.d.mts +1 -1
  84. package/dist/contract__canonicalization-hooks.mjs +1 -1
  85. package/dist/contract__contract-view.d.mts +1 -1
  86. package/dist/contract__contract-view.mjs +1 -1
  87. package/dist/contract__data-type-support.d.mts +2 -0
  88. package/dist/contract__data-type-support.mjs +2 -0
  89. package/dist/contract__data-type.d.mts +2 -0
  90. package/dist/contract__data-type.mjs +3 -0
  91. package/dist/contract__entity-handle-lowering-hook.d.mts +2 -2
  92. package/dist/contract__entity-handle-lowering-hook.mjs +2 -2
  93. package/dist/contract__entity-kinds.d.mts +1 -1
  94. package/dist/contract__entity-kinds.mjs +1 -1
  95. package/dist/contract__factories.d.mts +1 -1
  96. package/dist/contract__factories.mjs +1 -1
  97. package/dist/contract__foreign-key-materialization.d.mts +2 -2
  98. package/dist/contract__foreign-key-materialization.mjs +3 -2
  99. package/dist/contract__index-naming.d.mts +2 -2
  100. package/dist/contract__index-naming.mjs +2 -2
  101. package/dist/contract__index-type-validation.d.mts +2 -2
  102. package/dist/contract__index-type-validation.mjs +1 -1
  103. package/dist/contract__index-types.d.mts +3 -3
  104. package/dist/contract__index-types.mjs +2 -2
  105. package/dist/contract__referential-action-sql.d.mts +1 -1
  106. package/dist/contract__referential-action-sql.mjs +1 -1
  107. package/dist/contract__resolve-storage-table.d.mts +1 -1
  108. package/dist/contract__resolve-storage-table.mjs +1 -1
  109. package/dist/contract__sql-expression.d.mts +2 -0
  110. package/dist/contract__sql-expression.mjs +2 -0
  111. package/dist/contract__types.d.mts +12 -12
  112. package/dist/contract__types.mjs +4 -4
  113. package/dist/contract__validators.d.mts +2 -2
  114. package/dist/contract__validators.mjs +3 -3
  115. package/dist/contract__value-set-derivation-hook.d.mts +1 -1
  116. package/dist/contract__value-set-derivation-hook.mjs +1 -1
  117. package/dist/control-BK50zF6c.mjs +2721 -0
  118. package/dist/control-BK50zF6c.mjs.map +1 -0
  119. package/dist/control-ChAUdOOu.d.mts +1416 -0
  120. package/dist/control-ChAUdOOu.d.mts.map +1 -0
  121. package/dist/{control-adapter-C99J7aEF-B7eQd7vD.d.mts → control-adapter-Bn0uhplA-BzP2uPqJ.d.mts} +27 -44
  122. package/dist/control-adapter-Bn0uhplA-BzP2uPqJ.d.mts.map +1 -0
  123. package/dist/control-adapter-NZ2kKc4x.d.mts +13 -0
  124. package/dist/control-adapter-NZ2kKc4x.d.mts.map +1 -0
  125. package/dist/control-adapter-SlQkTEwT.mjs +16 -0
  126. package/dist/control-adapter-SlQkTEwT.mjs.map +1 -0
  127. package/dist/data-type-BFSpaotu.mjs +52 -0
  128. package/dist/data-type-BFSpaotu.mjs.map +1 -0
  129. package/dist/data-type-DJIvKQHf.d.mts +158 -0
  130. package/dist/data-type-DJIvKQHf.d.mts.map +1 -0
  131. package/dist/data-type-support-BhSoPUFj.mjs +9 -0
  132. package/dist/data-type-support-BhSoPUFj.mjs.map +1 -0
  133. package/dist/data-type-support-CXpA0ex-.d.mts +7 -0
  134. package/dist/data-type-support-CXpA0ex-.d.mts.map +1 -0
  135. package/dist/{db-D18PrXKW-DvTv4JFn.d.mts → db-D1d75IvM-D4mRDC6w.d.mts} +123 -128
  136. package/dist/db-D1d75IvM-D4mRDC6w.d.mts.map +1 -0
  137. package/dist/{ddl-types-CXx4vPz6-BsgrnSUY.d.mts → ddl-types-By5mT2_S-CdaaFvsX.d.mts} +24 -29
  138. package/dist/ddl-types-By5mT2_S-CdaaFvsX.d.mts.map +1 -0
  139. package/dist/default-mapping-CAOONlKQ-4m07nb-O.d.mts +39 -0
  140. package/dist/default-mapping-CAOONlKQ-4m07nb-O.d.mts.map +1 -0
  141. package/dist/default-table-name-BfFY8qYR-CWZFDX6v.mjs +9 -0
  142. package/dist/default-table-name-BfFY8qYR-CWZFDX6v.mjs.map +1 -0
  143. package/dist/derived-checks-D5HVRvqN-BJx1gwPA.mjs +1508 -0
  144. package/dist/derived-checks-D5HVRvqN-BJx1gwPA.mjs.map +1 -0
  145. package/dist/{derived-checks-DPdD01O0-DGqOFjs6.d.mts → derived-checks-DpPkO6Dt-9U9UJZOo.d.mts} +4 -4
  146. package/dist/derived-checks-DpPkO6Dt-9U9UJZOo.d.mts.map +1 -0
  147. package/dist/diagnostics-RHJxoiIk.mjs +23 -0
  148. package/dist/diagnostics-RHJxoiIk.mjs.map +1 -0
  149. package/dist/{diff-DbTNVm2f.d.mts → diff-1qHOLoUB.d.mts} +23 -10
  150. package/dist/diff-1qHOLoUB.d.mts.map +1 -0
  151. package/dist/diff-C1rFOhek.mjs +21 -0
  152. package/dist/diff-C1rFOhek.mjs.map +1 -0
  153. package/dist/{dist-ZK6oeI5e.mjs → dist-C8Y-PPuE.mjs} +36 -212
  154. package/dist/dist-C8Y-PPuE.mjs.map +1 -0
  155. package/dist/{dist-C_q1_QR9.mjs → dist-CHz1hF8M.mjs} +2 -2
  156. package/dist/dist-CHz1hF8M.mjs.map +1 -0
  157. package/dist/{dist-x6jvtkKM.mjs → dist-CMDXybwm.mjs} +2 -2
  158. package/dist/dist-CMDXybwm.mjs.map +1 -0
  159. package/dist/{driver-types-BQtRkOJ0-Bv2RPSfr.d.mts → driver-types-DRsYeq3j-BimeCnUk.d.mts} +11 -2
  160. package/dist/driver-types-DRsYeq3j-BimeCnUk.d.mts.map +1 -0
  161. package/dist/entity-handle-lowering-hook-BJZSlVVF.mjs +16 -0
  162. package/dist/entity-handle-lowering-hook-BJZSlVVF.mjs.map +1 -0
  163. package/dist/{entity-handle-lowering-hook-CIvRKBfa.d.mts → entity-handle-lowering-hook-BuvLtgFi.d.mts} +8 -11
  164. package/dist/entity-handle-lowering-hook-BuvLtgFi.d.mts.map +1 -0
  165. package/dist/{entity-kinds-B5cUFU22.d.mts → entity-kinds-BPG2xCZV.d.mts} +7 -7
  166. package/dist/entity-kinds-BPG2xCZV.d.mts.map +1 -0
  167. package/dist/{entity-kinds-D7vwoN_T-CCBwFJy0.mjs → entity-kinds-JR5SAm5h-DOH6VUtL.mjs} +31 -28
  168. package/dist/entity-kinds-JR5SAm5h-DOH6VUtL.mjs.map +1 -0
  169. package/dist/{errors-B5g0xWro-mWH2C07F.mjs → errors-B5g0xWro-C8plbqga.mjs} +2 -2
  170. package/dist/errors-B5g0xWro-C8plbqga.mjs.map +1 -0
  171. package/dist/errors.d.mts +1 -1
  172. package/dist/errors.d.mts.map +1 -1
  173. package/dist/errors.mjs +1 -1
  174. package/dist/exports-C3wGYtID-D65DEUTC.mjs +2389 -0
  175. package/dist/exports-C3wGYtID-D65DEUTC.mjs.map +1 -0
  176. package/dist/{expression-FJK6Ar-d.d.mts → expression-6ld_ZQL6-fOuazzzm.d.mts} +37 -16
  177. package/dist/expression-6ld_ZQL6-fOuazzzm.d.mts.map +1 -0
  178. package/dist/expression-CieaNuRM-B1uVqxwd.d.mts +22 -0
  179. package/dist/expression-CieaNuRM-B1uVqxwd.d.mts.map +1 -0
  180. package/dist/expression-D8HstQiB.d.mts +2 -0
  181. package/dist/{expression-CX5mTA-z.mjs → expression-impl-B-XNINxr-BhN2sysZ.mjs} +41 -18
  182. package/dist/expression-impl-B-XNINxr-BhN2sysZ.mjs.map +1 -0
  183. package/dist/{factories-SVor5xIT.mjs → factories-Crobuxwn.mjs} +27 -20
  184. package/dist/factories-Crobuxwn.mjs.map +1 -0
  185. package/dist/{factories-P3qBQhO-.d.mts → factories-DbNP9qfs.d.mts} +16 -10
  186. package/dist/factories-DbNP9qfs.d.mts.map +1 -0
  187. package/dist/family.d.mts +17 -13
  188. package/dist/family.mjs +17 -12
  189. package/dist/family__control-adapter.d.mts +3 -3
  190. package/dist/family__control-adapter.mjs +2 -1
  191. package/dist/family__control.d.mts +5 -4
  192. package/dist/family__control.mjs +4 -4
  193. package/dist/family__diff.d.mts +2 -3
  194. package/dist/family__diff.mjs +2 -2
  195. package/dist/family__ir.d.mts +1 -1
  196. package/dist/family__ir.mjs +2 -2
  197. package/dist/family__migration.d.mts +1 -1
  198. package/dist/family__migration.mjs +1 -1
  199. package/dist/family__pack.d.mts +2 -249
  200. package/dist/family__pack.mjs +3 -18
  201. package/dist/family__psl-build.d.mts +3 -0
  202. package/dist/family__psl-build.mjs +3 -0
  203. package/dist/family__psl-infer.d.mts +2 -2
  204. package/dist/family__psl-infer.mjs +2 -2
  205. package/dist/family__runtime.d.mts +2 -2
  206. package/dist/family__runtime.mjs +2 -2
  207. package/dist/family__verify.d.mts +1 -1
  208. package/dist/family__verify.mjs +1 -1
  209. package/dist/foreign-key-materialization-48P2V8on.d.mts +98 -0
  210. package/dist/foreign-key-materialization-48P2V8on.d.mts.map +1 -0
  211. package/dist/foreign-key-materialization-BM59w_Xg.mjs +287 -0
  212. package/dist/foreign-key-materialization-BM59w_Xg.mjs.map +1 -0
  213. package/dist/{foreign-key-C-iTPuRT-C9ip8zFx.d.mts → foreign-key-qkDFfG8t-TaK_GYWR.d.mts} +21 -5
  214. package/dist/foreign-key-qkDFfG8t-TaK_GYWR.d.mts.map +1 -0
  215. package/dist/functions-CsOoN7I3.mjs +88 -0
  216. package/dist/functions-CsOoN7I3.mjs.map +1 -0
  217. package/dist/functions-EW-RrRn3.d.mts +73 -0
  218. package/dist/functions-EW-RrRn3.d.mts.map +1 -0
  219. package/dist/generator-functions-D_qdqBV--Bq296cED.mjs +544 -0
  220. package/dist/generator-functions-D_qdqBV--Bq296cED.mjs.map +1 -0
  221. package/dist/index-7nHHQsAj.d.mts +606 -0
  222. package/dist/index-7nHHQsAj.d.mts.map +1 -0
  223. package/dist/{index-C5I8D-MB.d.mts → index-Nqc3OHR_.d.mts} +4 -5
  224. package/dist/index-Nqc3OHR_.d.mts.map +1 -0
  225. package/dist/index-equivalence-DswCiq5l-CGsyPP9B.mjs +109 -0
  226. package/dist/index-equivalence-DswCiq5l-CGsyPP9B.mjs.map +1 -0
  227. package/dist/{index-naming-DREt6js7-CRH27yUv.mjs → index-naming-BOcJT1B3-mG8Fd6KN.mjs} +35 -9
  228. package/dist/index-naming-BOcJT1B3-mG8Fd6KN.mjs.map +1 -0
  229. package/dist/{index-naming-Ct65z5Xk.d.mts → index-naming-Cs6wwia3.d.mts} +15 -5
  230. package/dist/index-naming-Cs6wwia3.d.mts.map +1 -0
  231. package/dist/index-reference-4wsdeB7v-DCwswK-q.d.mts +67 -0
  232. package/dist/index-reference-4wsdeB7v-DCwswK-q.d.mts.map +1 -0
  233. package/dist/index-reference-BQSrkRfT.mjs +55 -0
  234. package/dist/index-reference-BQSrkRfT.mjs.map +1 -0
  235. package/dist/index-reference-D8ewQRJr.d.mts +1 -0
  236. package/dist/index-type-validation-DJEMmmw0.mjs +42 -0
  237. package/dist/index-type-validation-DJEMmmw0.mjs.map +1 -0
  238. package/dist/index-type-validation-fGGwAHWc.d.mts +16 -0
  239. package/dist/index-type-validation-fGGwAHWc.d.mts.map +1 -0
  240. package/dist/index-types-H1O43iYT-BD0VwPqV.d.mts +66 -0
  241. package/dist/index-types-H1O43iYT-BD0VwPqV.d.mts.map +1 -0
  242. package/dist/index-types-pC_5vADQ-BOOBi14R.mjs +95 -0
  243. package/dist/index-types-pC_5vADQ-BOOBi14R.mjs.map +1 -0
  244. package/dist/index-types-snhtt_Fo.d.mts +1 -0
  245. package/dist/interpreter-D5qk4B---CG0C7kdx.mjs +2280 -0
  246. package/dist/interpreter-D5qk4B---CG0C7kdx.mjs.map +1 -0
  247. package/dist/{ir-Bghjt-FG.d.mts → ir-BvptQsFW.d.mts} +11 -5
  248. package/dist/ir-BvptQsFW.d.mts.map +1 -0
  249. package/dist/{ir-I-xciGUH.mjs → ir-DzsUDO8e.mjs} +2 -2
  250. package/dist/ir-DzsUDO8e.mjs.map +1 -0
  251. package/dist/{middleware-AhTz1BOW-th-Suxuf.d.mts → middleware-DHkW6pRr-DM6hd9iZ.d.mts} +5 -5
  252. package/dist/middleware-DHkW6pRr-DM6hd9iZ.d.mts.map +1 -0
  253. package/dist/middleware-gqy3l13N.d.mts +1 -0
  254. package/dist/{middleware-CMr4CHNz-DHIUdxlm.mjs → middleware-yBAfiVWn-DZO0vCRQ.mjs} +3 -3
  255. package/dist/middleware-yBAfiVWn-DZO0vCRQ.mjs.map +1 -0
  256. package/dist/{migration-CK4oePIo.mjs → migration-BJQjkqFz.mjs} +4 -4
  257. package/dist/migration-BJQjkqFz.mjs.map +1 -0
  258. package/dist/{migration-CjDRZNep.d.mts → migration-Cxmpzaz0.d.mts} +6 -6
  259. package/dist/migration-Cxmpzaz0.d.mts.map +1 -0
  260. package/dist/{naming-CV9j2pXl-KARaDReS.d.mts → naming-BcD36g9T-Mfe_xGGL.d.mts} +9 -14
  261. package/dist/naming-BcD36g9T-Mfe_xGGL.d.mts.map +1 -0
  262. package/dist/{naming-DKr4TJd7-Cszhq9RV.mjs → naming-bM5qm5PY-jOg3JFMb.mjs} +20 -31
  263. package/dist/naming-bM5qm5PY-jOg3JFMb.mjs.map +1 -0
  264. package/dist/{ddl-types-BGdnAbXo-DKPHPUGx.mjs → opaque-sql-Dset3kln-CtsPDTXn.mjs} +24 -11
  265. package/dist/opaque-sql-Dset3kln-CtsPDTXn.mjs.map +1 -0
  266. package/dist/operations.d.mts +1 -1
  267. package/dist/operations.mjs +1 -1
  268. package/dist/orm-client.d.mts +817 -267
  269. package/dist/orm-client.d.mts.map +1 -1
  270. package/dist/orm-client.mjs +4719 -2942
  271. package/dist/orm-client.mjs.map +1 -1
  272. package/dist/pack-DA8HZ2mo.d.mts +535 -0
  273. package/dist/pack-DA8HZ2mo.d.mts.map +1 -0
  274. package/dist/pack-gSvGQWqs.mjs +80 -0
  275. package/dist/pack-gSvGQWqs.mjs.map +1 -0
  276. package/dist/{plan-CDxduYaN-pLIyyJaB.d.mts → plan-Cr4azjnG-CuL8FqXC.d.mts} +12 -8
  277. package/dist/plan-Cr4azjnG-CuL8FqXC.d.mts.map +1 -0
  278. package/dist/{plan-Dh0LbYIv-Crx5-ThG.mjs → plan-Dh0LbYIv-ubBSdUgl.mjs} +2 -2
  279. package/dist/plan-Dh0LbYIv-ubBSdUgl.mjs.map +1 -0
  280. package/dist/plan-Di6Gs2JD.d.mts +2 -0
  281. package/dist/psl-attribute-parsing-BCsFWsSp-BJ-wGlY6.mjs +42 -0
  282. package/dist/psl-attribute-parsing-BCsFWsSp-BJ-wGlY6.mjs.map +1 -0
  283. package/dist/psl-build-DFBG6vhz.mjs +426 -0
  284. package/dist/psl-build-DFBG6vhz.mjs.map +1 -0
  285. package/dist/psl-build-RelubU2E.d.mts +112 -0
  286. package/dist/psl-build-RelubU2E.d.mts.map +1 -0
  287. package/dist/psl-column-resolution-ChZqioOc-BREg4J7d.d.mts +24 -0
  288. package/dist/psl-column-resolution-ChZqioOc-BREg4J7d.d.mts.map +1 -0
  289. package/dist/psl-field-resolution-C5KQ7kzP-B0NwuRWV.mjs +1960 -0
  290. package/dist/psl-field-resolution-C5KQ7kzP-B0NwuRWV.mjs.map +1 -0
  291. package/dist/psl-infer--g4i84Go.mjs +201 -0
  292. package/dist/psl-infer--g4i84Go.mjs.map +1 -0
  293. package/dist/psl-infer-DzoxPZGd.d.mts +80 -0
  294. package/dist/psl-infer-DzoxPZGd.d.mts.map +1 -0
  295. package/dist/psl-names-C3cwe0rg-D1CTmC3a.mjs +66 -0
  296. package/dist/psl-names-C3cwe0rg-D1CTmC3a.mjs.map +1 -0
  297. package/dist/{query-lane-context-Qa-eddrE-kuZ8Z86-.d.mts → query-lane-context-BCEoKy0_-CzmyavC9.d.mts} +20 -49
  298. package/dist/query-lane-context-BCEoKy0_-CzmyavC9.d.mts.map +1 -0
  299. package/dist/query-lane-context-VqH0mS9B.d.mts +1 -0
  300. package/dist/{referential-action-sql-DJ9ps6-S.d.mts → referential-action-sql-B2vKoUK6.d.mts} +3 -3
  301. package/dist/referential-action-sql-B2vKoUK6.d.mts.map +1 -0
  302. package/dist/{referential-action-sql-DSqkrySN.mjs → referential-action-sql-BLzCtTi8.mjs} +2 -2
  303. package/dist/referential-action-sql-BLzCtTi8.mjs.map +1 -0
  304. package/dist/relational-core.d.mts +14 -13
  305. package/dist/relational-core.mjs +8 -8
  306. package/dist/relational-core__aggregate-descriptor-registry.d.mts +2 -2
  307. package/dist/relational-core__aggregate-descriptor-registry.d.mts.map +1 -1
  308. package/dist/relational-core__aggregate-descriptor-registry.mjs +1 -1
  309. package/dist/relational-core__ast.d.mts +5 -5
  310. package/dist/relational-core__ast.mjs +5 -5
  311. package/dist/relational-core__codec-descriptor-registry.d.mts +7 -8
  312. package/dist/relational-core__codec-descriptor-registry.d.mts.map +1 -1
  313. package/dist/relational-core__codec-descriptor-registry.mjs +1 -1
  314. package/dist/relational-core__collection-methods.d.mts +3 -0
  315. package/dist/relational-core__contract-free.d.mts +18 -8
  316. package/dist/relational-core__contract-free.d.mts.map +1 -1
  317. package/dist/relational-core__contract-free.mjs +26 -10
  318. package/dist/relational-core__contract-free.mjs.map +1 -1
  319. package/dist/relational-core__expression.d.mts +4 -2
  320. package/dist/relational-core__expression.mjs +2 -2
  321. package/dist/relational-core__functions.d.mts +2 -0
  322. package/dist/relational-core__functions.mjs +2 -0
  323. package/dist/relational-core__index-reference.d.mts +3 -0
  324. package/dist/relational-core__index-reference.mjs +2 -0
  325. package/dist/relational-core__middleware.d.mts +2 -2
  326. package/dist/relational-core__middleware.mjs +1 -1
  327. package/dist/relational-core__plan.d.mts +4 -4
  328. package/dist/relational-core__plan.mjs +1 -1
  329. package/dist/relational-core__query-lane-context.d.mts +3 -3
  330. package/dist/relational-core__types.d.mts +2 -2
  331. package/dist/{resolve-storage-table-DZsfnzeW.mjs → resolve-storage-table-BHLQsOza.mjs} +3 -3
  332. package/dist/resolve-storage-table-BHLQsOza.mjs.map +1 -0
  333. package/dist/{resolve-storage-table-Nyrgk4h8.d.mts → resolve-storage-table-DCqtmnSU.d.mts} +4 -4
  334. package/dist/resolve-storage-table-DCqtmnSU.d.mts.map +1 -0
  335. package/dist/{runtime-tIHpGCcG.mjs → runtime-6tH1yOxK.mjs} +6 -6
  336. package/dist/runtime-6tH1yOxK.mjs.map +1 -0
  337. package/dist/{runtime-DpKF2Yu2.d.mts → runtime-CF6rAlE5.d.mts} +7 -8
  338. package/dist/runtime-CF6rAlE5.d.mts.map +1 -0
  339. package/dist/runtime.d.mts +5 -5
  340. package/dist/runtime.mjs +2 -1799
  341. package/dist/runtime__internal__prepared-query.d.mts +2 -2
  342. package/dist/runtime__internal__prepared-query.mjs +2 -2
  343. package/dist/{schema-differ-DpG_gnur-DFAtGezx.d.mts → schema-differ-DmP74bB8-tqHKiJ88.d.mts} +6 -6
  344. package/dist/schema-differ-DmP74bB8-tqHKiJ88.d.mts.map +1 -0
  345. package/dist/schema-ir.d.mts +2 -2
  346. package/dist/schema-ir.mjs +2 -2
  347. package/dist/schema-ir__naming.d.mts +1 -1
  348. package/dist/schema-ir__naming.mjs +1 -1
  349. package/dist/schema-ir__types.d.mts +3 -3
  350. package/dist/schema-ir__types.mjs +2 -2
  351. package/dist/{schema-verify-C_PEdlAr-Dxxjm6EM.mjs → schema-verify-C3wbdviw-DMjIubOr.mjs} +50 -8
  352. package/dist/schema-verify-C3wbdviw-DMjIubOr.mjs.map +1 -0
  353. package/dist/{serialized-index-CrgG8ct1-DG3JpHc7.d.mts → serialized-index-CrgG8ct1-DKVJ7TDX.d.mts} +4 -4
  354. package/dist/serialized-index-CrgG8ct1-DKVJ7TDX.d.mts.map +1 -0
  355. package/dist/{serialized-index-nBTwanKy-_ddEK4tk.mjs → serialized-index-DjCCnXB1-DMA7BtO2.mjs} +4 -4
  356. package/dist/serialized-index-DjCCnXB1-DMA7BtO2.mjs.map +1 -0
  357. package/dist/{sql-contract-serializer-2oBWuxTe-DKZTf2n8.mjs → sql-contract-serializer-sMY3prTx-D2BfrNxs.mjs} +41 -16
  358. package/dist/sql-contract-serializer-sMY3prTx-D2BfrNxs.mjs.map +1 -0
  359. package/dist/sql-data-type-D7M-YTTY-D2vRqDxn.mjs +400 -0
  360. package/dist/sql-data-type-D7M-YTTY-D2vRqDxn.mjs.map +1 -0
  361. package/dist/{sql-execution-plan--jKyLpe5-CMGhgO0M.d.mts → sql-execution-plan-3uxYjHyu-DLknM-Pj.d.mts} +3 -3
  362. package/dist/sql-execution-plan-3uxYjHyu-DLknM-Pj.d.mts.map +1 -0
  363. package/dist/sql-expression-B4BrhGPi.d.mts +62 -0
  364. package/dist/sql-expression-B4BrhGPi.d.mts.map +1 -0
  365. package/dist/sql-expression-CKgKznXS.mjs +137 -0
  366. package/dist/sql-expression-CKgKznXS.mjs.map +1 -0
  367. package/dist/{sql-index-ByAAE7K8-DKj2V86p.d.mts → sql-index-ByAAE7K8-Dqtn_vUL.d.mts} +4 -4
  368. package/dist/sql-index-ByAAE7K8-Dqtn_vUL.d.mts.map +1 -0
  369. package/dist/{sql-node-kEz6YFZo-v2F7delx.d.mts → sql-node-kEz6YFZo-1ogT6Cxt.d.mts} +2 -2
  370. package/dist/sql-node-kEz6YFZo-1ogT6Cxt.d.mts.map +1 -0
  371. package/dist/{sql-storage-8LqxeLAY-DH4DdUXx.d.mts → sql-storage-DeCAh5Hi-CEM-m8cs.d.mts} +19 -22
  372. package/dist/sql-storage-DeCAh5Hi-CEM-m8cs.d.mts.map +1 -0
  373. package/dist/{storage-table-DSeWszOL-CI-cItEK.d.mts → storage-table-Bf1ZjnxO-pUj6pyP0.d.mts} +17 -24
  374. package/dist/storage-table-Bf1ZjnxO-pUj6pyP0.d.mts.map +1 -0
  375. package/dist/{storage-table-ZzbR-xzQ-BRoTQE_2.mjs → storage-table-DDvN83mw-DkbBFmK9.mjs} +12 -9
  376. package/dist/storage-table-DDvN83mw-DkbBFmK9.mjs.map +1 -0
  377. package/dist/{storage-value-set-BGlj5Uus-CvZD--GG.d.mts → storage-value-set-BGlj5Uus-ny2k-0PA.d.mts} +3 -3
  378. package/dist/storage-value-set-BGlj5Uus-ny2k-0PA.d.mts.map +1 -0
  379. package/dist/transaction-state-BfXhs7D7-DhmbySW9.mjs +45 -0
  380. package/dist/transaction-state-BfXhs7D7-DhmbySW9.mjs.map +1 -0
  381. package/dist/transaction-state-DR3nKTmH-D29jmVE-.d.mts +115 -0
  382. package/dist/transaction-state-DR3nKTmH-D29jmVE-.d.mts.map +1 -0
  383. package/dist/types-B9wSEUsV.d.mts +1 -0
  384. package/dist/{types-CUsJrvEl.mjs → types-CTdSkl0s.mjs} +13 -6
  385. package/dist/types-CTdSkl0s.mjs.map +1 -0
  386. package/dist/types-CkAd8SWm.d.mts +57 -0
  387. package/dist/types-CkAd8SWm.d.mts.map +1 -0
  388. package/dist/{types-IqZMLrFC-DcH8v_u3.d.mts → types-Cq6ImLAB-RlU4jJAX.d.mts} +27 -41
  389. package/dist/types-Cq6ImLAB-RlU4jJAX.d.mts.map +1 -0
  390. package/dist/{types-YStFFkKs-D9UAmnON.d.mts → types-CuCxAQat-Dz8P4xyt.d.mts} +141 -86
  391. package/dist/types-CuCxAQat-Dz8P4xyt.d.mts.map +1 -0
  392. package/dist/types-DfKvtJwS-CrpWTGBJ.d.mts +273 -0
  393. package/dist/types-DfKvtJwS-CrpWTGBJ.d.mts.map +1 -0
  394. package/dist/{types-4YenawkP-CwaaZSid.mjs → types-DoyiTsjg-2YMhMJDA.mjs} +181 -80
  395. package/dist/types-DoyiTsjg-2YMhMJDA.mjs.map +1 -0
  396. package/dist/{types-v3qxLLxo-DCeKv7yY.d.mts → types-DriMIMNQ-BkbsW7w3.d.mts} +68 -34
  397. package/dist/types-DriMIMNQ-BkbsW7w3.d.mts.map +1 -0
  398. package/dist/{types-Dt4e_jC--COeP8xzN.mjs → types-NTQsD2MS-xcLtvKO9.mjs} +83 -17
  399. package/dist/types-NTQsD2MS-xcLtvKO9.mjs.map +1 -0
  400. package/dist/{types-CyxGtOOh-BggSa6Fe.d.mts → types-TXO7x1BA-CYYIY8NI.d.mts} +14 -14
  401. package/dist/types-TXO7x1BA-CYYIY8NI.d.mts.map +1 -0
  402. package/dist/types-ljUNyiWe.d.mts +1 -0
  403. package/dist/{unique-constraint-M5TlQnJQ-BiIHJ85k.d.mts → unique-constraint-M5TlQnJQ-qX-maNUV.d.mts} +3 -3
  404. package/dist/unique-constraint-M5TlQnJQ-qX-maNUV.d.mts.map +1 -0
  405. package/dist/{util-DQQgv2j1-D6INZaRG.mjs → util-BBgcP3gI-CpL-0VuC.mjs} +12 -3
  406. package/dist/util-BBgcP3gI-CpL-0VuC.mjs.map +1 -0
  407. package/dist/{validators-CrWD6bSP.mjs → validators-BwA7ttZM.mjs} +0 -0
  408. package/dist/validators-BwA7ttZM.mjs.map +1 -0
  409. package/dist/{validators-Belo8QqM.d.mts → validators-FJs8HvFr.d.mts} +54 -16
  410. package/dist/validators-FJs8HvFr.d.mts.map +1 -0
  411. package/dist/{value-set-derivation-hook-BhgGVtw0.d.mts → value-set-derivation-hook-3E437jPU.d.mts} +3 -3
  412. package/dist/value-set-derivation-hook-3E437jPU.d.mts.map +1 -0
  413. package/dist/{value-set-derivation-hook-Di9JZ0X7.mjs → value-set-derivation-hook-HVaxhALD.mjs} +2 -2
  414. package/dist/value-set-derivation-hook-HVaxhALD.mjs.map +1 -0
  415. package/dist/{verify-u0UTdZgD-DSAaz9rW.mjs → verify-BVk5bjdH-DhKm6hB3.mjs} +8 -7
  416. package/dist/verify-BVk5bjdH-DhKm6hB3.mjs.map +1 -0
  417. package/dist/{verify-zDRnw0Rn.d.mts → verify-DHXbuZPB.d.mts} +2 -2
  418. package/dist/verify-DHXbuZPB.d.mts.map +1 -0
  419. package/package.json +33 -22
  420. package/dist/aggregate-descriptor-registry-C7hel5O7.mjs.map +0 -1
  421. package/dist/ast-HFcfQZr-.d.mts +0 -206
  422. package/dist/ast-HFcfQZr-.d.mts.map +0 -1
  423. package/dist/ast-Lbl4VwqP.mjs +0 -325
  424. package/dist/ast-Lbl4VwqP.mjs.map +0 -1
  425. package/dist/authored-check-naming-BWBe-PVE.d.mts.map +0 -1
  426. package/dist/authored-check-naming-Hf9990DV.mjs.map +0 -1
  427. package/dist/authoring-type-constructors-Blqoa2Ua-DqvNCOb2.mjs +0 -316
  428. package/dist/authoring-type-constructors-Blqoa2Ua-DqvNCOb2.mjs.map +0 -1
  429. package/dist/canonicalization-hooks-CYnW_sGn.d.mts.map +0 -1
  430. package/dist/canonicalization-hooks-dmXkOR4a.mjs.map +0 -1
  431. package/dist/check-constraint-B7qGu6rc-HvQjjX82.d.mts.map +0 -1
  432. package/dist/codec-descriptor-registry-N0dhtKaH.mjs.map +0 -1
  433. package/dist/config-types-D9fdKG3g.d.mts.map +0 -1
  434. package/dist/config-types-gAm54C_v.mjs.map +0 -1
  435. package/dist/contract-builder-CG_tGDbB.d.mts +0 -1360
  436. package/dist/contract-builder-CG_tGDbB.d.mts.map +0 -1
  437. package/dist/contract-builder-D4a5dT7j.mjs.map +0 -1
  438. package/dist/contract-errors-BCN6RVI5-5IHBF_lg.mjs.map +0 -1
  439. package/dist/contract-view-BMR5IWk4.mjs.map +0 -1
  440. package/dist/contract-view-CPHxoAEX.d.mts.map +0 -1
  441. package/dist/contract__pack-types.d.mts +0 -2
  442. package/dist/control-D3cB5YQp.mjs +0 -1267
  443. package/dist/control-D3cB5YQp.mjs.map +0 -1
  444. package/dist/control-DTLJ1WtZ.d.mts +0 -945
  445. package/dist/control-DTLJ1WtZ.d.mts.map +0 -1
  446. package/dist/control-adapter-C99J7aEF-B7eQd7vD.d.mts.map +0 -1
  447. package/dist/control-adapter-MZJQiwcE.d.mts +0 -1
  448. package/dist/db-D18PrXKW-DvTv4JFn.d.mts.map +0 -1
  449. package/dist/ddl-types-BGdnAbXo-DKPHPUGx.mjs.map +0 -1
  450. package/dist/ddl-types-CXx4vPz6-BsgrnSUY.d.mts.map +0 -1
  451. package/dist/derived-checks-DFMRmiAu-DGfB8aS4.mjs +0 -1057
  452. package/dist/derived-checks-DFMRmiAu-DGfB8aS4.mjs.map +0 -1
  453. package/dist/derived-checks-DPdD01O0-DGqOFjs6.d.mts.map +0 -1
  454. package/dist/diff-B16bL_IR.mjs +0 -13
  455. package/dist/diff-B16bL_IR.mjs.map +0 -1
  456. package/dist/diff-DbTNVm2f.d.mts.map +0 -1
  457. package/dist/dist-C_q1_QR9.mjs.map +0 -1
  458. package/dist/dist-ZK6oeI5e.mjs.map +0 -1
  459. package/dist/dist-x6jvtkKM.mjs.map +0 -1
  460. package/dist/driver-types-BQtRkOJ0-Bv2RPSfr.d.mts.map +0 -1
  461. package/dist/entity-handle-lowering-hook-CIvRKBfa.d.mts.map +0 -1
  462. package/dist/entity-handle-lowering-hook-DwLIKNiS.mjs +0 -11
  463. package/dist/entity-handle-lowering-hook-DwLIKNiS.mjs.map +0 -1
  464. package/dist/entity-kinds-B5cUFU22.d.mts.map +0 -1
  465. package/dist/entity-kinds-D7vwoN_T-CCBwFJy0.mjs.map +0 -1
  466. package/dist/errors-B5g0xWro-mWH2C07F.mjs.map +0 -1
  467. package/dist/expression-CX5mTA-z.mjs.map +0 -1
  468. package/dist/expression-FJK6Ar-d.d.mts.map +0 -1
  469. package/dist/factories-P3qBQhO-.d.mts.map +0 -1
  470. package/dist/factories-SVor5xIT.mjs.map +0 -1
  471. package/dist/family__pack.d.mts.map +0 -1
  472. package/dist/family__pack.mjs.map +0 -1
  473. package/dist/foreign-key-C-iTPuRT-C9ip8zFx.d.mts.map +0 -1
  474. package/dist/foreign-key-materialization-CkvOzJWy.d.mts +0 -65
  475. package/dist/foreign-key-materialization-CkvOzJWy.d.mts.map +0 -1
  476. package/dist/foreign-key-materialization-Cu7-7LHl.mjs +0 -73
  477. package/dist/foreign-key-materialization-Cu7-7LHl.mjs.map +0 -1
  478. package/dist/index-C-vQOMY_.d.mts +0 -84
  479. package/dist/index-C-vQOMY_.d.mts.map +0 -1
  480. package/dist/index-C5I8D-MB.d.mts.map +0 -1
  481. package/dist/index-naming-Ct65z5Xk.d.mts.map +0 -1
  482. package/dist/index-naming-DREt6js7-CRH27yUv.mjs.map +0 -1
  483. package/dist/index-type-validation-COH4d78M.mjs +0 -17
  484. package/dist/index-type-validation-COH4d78M.mjs.map +0 -1
  485. package/dist/index-type-validation-CZ5L2lli.d.mts +0 -10
  486. package/dist/index-type-validation-CZ5L2lli.d.mts.map +0 -1
  487. package/dist/index-types-CNhHgKHi.d.mts +0 -1
  488. package/dist/index-types-DJQ_xwaE.mjs +0 -40
  489. package/dist/index-types-DJQ_xwaE.mjs.map +0 -1
  490. package/dist/index-types-DPVhsW0v-D-BikM4h.d.mts +0 -31
  491. package/dist/index-types-DPVhsW0v-D-BikM4h.d.mts.map +0 -1
  492. package/dist/interpreter-DyiUUAWh-DYdjIpiE.mjs +0 -3680
  493. package/dist/interpreter-DyiUUAWh-DYdjIpiE.mjs.map +0 -1
  494. package/dist/ir-Bghjt-FG.d.mts.map +0 -1
  495. package/dist/ir-I-xciGUH.mjs.map +0 -1
  496. package/dist/lane-query-builder.d.mts +0 -236
  497. package/dist/lane-query-builder.d.mts.map +0 -1
  498. package/dist/lane-query-builder.mjs +0 -67
  499. package/dist/lane-query-builder.mjs.map +0 -1
  500. package/dist/middleware--TtoxUiW.d.mts +0 -1
  501. package/dist/middleware-AhTz1BOW-th-Suxuf.d.mts.map +0 -1
  502. package/dist/middleware-CMr4CHNz-DHIUdxlm.mjs.map +0 -1
  503. package/dist/migration-CK4oePIo.mjs.map +0 -1
  504. package/dist/migration-CjDRZNep.d.mts.map +0 -1
  505. package/dist/naming-CV9j2pXl-KARaDReS.d.mts.map +0 -1
  506. package/dist/naming-DKr4TJd7-Cszhq9RV.mjs.map +0 -1
  507. package/dist/pack-types-BcLTpwbv.d.mts +0 -14
  508. package/dist/pack-types-BcLTpwbv.d.mts.map +0 -1
  509. package/dist/plan-BHLdb0Z7.d.mts +0 -2
  510. package/dist/plan-CDxduYaN-pLIyyJaB.d.mts.map +0 -1
  511. package/dist/plan-Dh0LbYIv-Crx5-ThG.mjs.map +0 -1
  512. package/dist/prepared-query-BJr50wPm-ChoqfJbX.mjs +0 -22
  513. package/dist/prepared-query-BJr50wPm-ChoqfJbX.mjs.map +0 -1
  514. package/dist/prepared-statement-9QpkE6JG-C430V3MO.d.mts +0 -529
  515. package/dist/prepared-statement-9QpkE6JG-C430V3MO.d.mts.map +0 -1
  516. package/dist/psl-infer-CCAD6FWA.d.mts +0 -119
  517. package/dist/psl-infer-CCAD6FWA.d.mts.map +0 -1
  518. package/dist/psl-infer-Dk5kgKre.mjs +0 -362
  519. package/dist/psl-infer-Dk5kgKre.mjs.map +0 -1
  520. package/dist/query-lane-context-Qa-eddrE-kuZ8Z86-.d.mts.map +0 -1
  521. package/dist/query-lane-context-XMvk7fmY.d.mts +0 -1
  522. package/dist/referential-action-sql-DJ9ps6-S.d.mts.map +0 -1
  523. package/dist/referential-action-sql-DSqkrySN.mjs.map +0 -1
  524. package/dist/resolve-storage-table-DZsfnzeW.mjs.map +0 -1
  525. package/dist/resolve-storage-table-Nyrgk4h8.d.mts.map +0 -1
  526. package/dist/runtime-DpKF2Yu2.d.mts.map +0 -1
  527. package/dist/runtime-tIHpGCcG.mjs.map +0 -1
  528. package/dist/runtime.mjs.map +0 -1
  529. package/dist/schema-differ-DpG_gnur-DFAtGezx.d.mts.map +0 -1
  530. package/dist/schema-verify-C_PEdlAr-Dxxjm6EM.mjs.map +0 -1
  531. package/dist/serialized-index-CrgG8ct1-DG3JpHc7.d.mts.map +0 -1
  532. package/dist/serialized-index-nBTwanKy-_ddEK4tk.mjs.map +0 -1
  533. package/dist/sql-contract-serializer-2oBWuxTe-DKZTf2n8.mjs.map +0 -1
  534. package/dist/sql-execution-plan--jKyLpe5-CMGhgO0M.d.mts.map +0 -1
  535. package/dist/sql-index-ByAAE7K8-DKj2V86p.d.mts.map +0 -1
  536. package/dist/sql-node-kEz6YFZo-v2F7delx.d.mts.map +0 -1
  537. package/dist/sql-storage-8LqxeLAY-DH4DdUXx.d.mts.map +0 -1
  538. package/dist/storage-table-DSeWszOL-CI-cItEK.d.mts.map +0 -1
  539. package/dist/storage-table-ZzbR-xzQ-BRoTQE_2.mjs.map +0 -1
  540. package/dist/storage-value-set-BGlj5Uus-CvZD--GG.d.mts.map +0 -1
  541. package/dist/timestamp-now-generator-DRXygu32-DN9Qb1uI.mjs +0 -173
  542. package/dist/timestamp-now-generator-DRXygu32-DN9Qb1uI.mjs.map +0 -1
  543. package/dist/types-4YenawkP-CwaaZSid.mjs.map +0 -1
  544. package/dist/types-B0msOnBM.d.mts +0 -1
  545. package/dist/types-BDUG29Df-LE85dIXP.d.mts +0 -161
  546. package/dist/types-BDUG29Df-LE85dIXP.d.mts.map +0 -1
  547. package/dist/types-CUsJrvEl.mjs.map +0 -1
  548. package/dist/types-CyxGtOOh-BggSa6Fe.d.mts.map +0 -1
  549. package/dist/types-Dt4e_jC--COeP8xzN.mjs.map +0 -1
  550. package/dist/types-Dwcw0F8X.d.mts +0 -1
  551. package/dist/types-IqZMLrFC-DcH8v_u3.d.mts.map +0 -1
  552. package/dist/types-UcHa2cTe.d.mts +0 -17
  553. package/dist/types-UcHa2cTe.d.mts.map +0 -1
  554. package/dist/types-YStFFkKs-D9UAmnON.d.mts.map +0 -1
  555. package/dist/types-v3qxLLxo-DCeKv7yY.d.mts.map +0 -1
  556. package/dist/unique-constraint-M5TlQnJQ-BiIHJ85k.d.mts.map +0 -1
  557. package/dist/util-DQQgv2j1-D6INZaRG.mjs.map +0 -1
  558. package/dist/validators-Belo8QqM.d.mts.map +0 -1
  559. package/dist/validators-CrWD6bSP.mjs.map +0 -1
  560. package/dist/value-set-derivation-hook-BhgGVtw0.d.mts.map +0 -1
  561. package/dist/value-set-derivation-hook-Di9JZ0X7.mjs.map +0 -1
  562. package/dist/verify-u0UTdZgD-DSAaz9rW.mjs.map +0 -1
  563. package/dist/verify-zDRnw0Rn.d.mts.map +0 -1
  564. /package/dist/{contract__pack-types.mjs → relational-core__collection-methods.mjs} +0 -0
@@ -1,945 +0,0 @@
1
- import { t as StorageColumn } from "./storage-table-DSeWszOL-CI-cItEK.mjs";
2
- import { c as SqlStorage } from "./sql-storage-8LqxeLAY-DH4DdUXx.mjs";
3
- import { O as SqlControlDriverInstance } from "./types-BDUG29Df-LE85dIXP.mjs";
4
- import "./types-UcHa2cTe.mjs";
5
- import { r as SqlOperationDescriptors } from "./index-C5I8D-MB.mjs";
6
- import { m as AnyQueryAst } from "./types-v3qxLLxo-DCeKv7yY.mjs";
7
- import { o as SqlExecuteRequest } from "./driver-types-BQtRkOJ0-Bv2RPSfr.mjs";
8
- import { s as DdlNode } from "./ddl-types-CXx4vPz6-BsgrnSUY.mjs";
9
- import { a as LowererContext } from "./ast-HFcfQZr-.mjs";
10
- import { g as SqlSchemaIR, v as SqlSchemaIRNode } from "./types-YStFFkKs-D9UAmnON.mjs";
11
- import "./types-Dwcw0F8X.mjs";
12
- import { i as SqlControlAdapter } from "./control-adapter-C99J7aEF-B7eQd7vD.mjs";
13
- import { A as SqlPlannerSuccessResult, C as SqlMigrationRunnerSuccessValue, O as SqlPlannerFailureResult, T as SqlPlannerConflict, _ as SqlMigrationRunner, h as SqlMigrationPlanner, n as CodecControlHooks, r as CreateSqlMigrationPlanOptions, t as AnyRecord, u as SqlMigrationPlan, v as SqlMigrationRunnerErrorCode, x as SqlMigrationRunnerFailure } from "./types-IqZMLrFC-DcH8v_u3.mjs";
14
- import { t as SqlSchemaDiffFn } from "./schema-differ-DpG_gnur-DFAtGezx.mjs";
15
- import { ColumnDefault, Contract, ControlPolicy } from "@prisma/orm-framework/contract/types";
16
- import { NotOk, Ok } from "@prisma/orm-framework/utils/result";
17
- import { TargetBoundComponentDescriptor } from "@prisma/orm-framework/components/components";
18
- import { ContractSerializer, ControlFamilyDescriptor, ControlFamilyInstance, ControlStack, DiffSubjectGranularity, MigratableTargetDescriptor, MigrationOperationClass, MigrationOperationPolicy, MigrationOperationPolicy as MigrationOperationPolicy$1, MigrationPlan as MigrationPlan$1, MigrationPlanOperation, MigrationPlanOperation as MigrationPlanOperation$1, MigrationPlanner, MigrationPlannerConflict, MigrationPlannerConflict as MigrationPlannerConflict$1, MigrationPlannerResult, MutationDefaultGeneratorDescriptor, OpFactoryCall, OperationPreview, OperationPreviewCapable, PslContractInferCapable, SchemaDiffIssue, SchemaVerifier, SchemaViewCapable, SignDatabaseResult, TargetMigrationsCapability, VerifyDatabaseResult, VerifyDatabaseSchemaResult, assembleAuthoringContributions } from "@prisma/orm-framework/components/control";
19
- import { EmissionSpi, TypesImportSpec } from "@prisma/orm-framework/components/emission";
20
- import { PslDocumentAst } from "@prisma/orm-framework/components/psl-ast";
21
- //#region ../../../2-sql/9-family/dist/control.d.mts
22
- //#region src/core/control-instance.d.ts
23
- interface SqlTypeMetadata {
24
- readonly typeId: string;
25
- readonly familyId: 'sql';
26
- readonly targetId: string;
27
- readonly nativeType?: string;
28
- }
29
- type SqlTypeMetadataRegistry = Map<string, SqlTypeMetadata>;
30
- interface SqlFamilyInstanceState {
31
- readonly codecTypeImports: ReadonlyArray<TypesImportSpec>;
32
- readonly extensionIds: ReadonlyArray<string>;
33
- readonly typeMetadataRegistry: SqlTypeMetadataRegistry;
34
- }
35
- interface SqlControlFamilyInstance extends ControlFamilyInstance<'sql', SqlSchemaIRNode>, SchemaViewCapable<SqlSchemaIRNode>, PslContractInferCapable<SqlSchemaIRNode>, OperationPreviewCapable, SqlFamilyInstanceState {
36
- /**
37
- * The family seam-of-record for on-disk contract reads. Structurally
38
- * validates the JSON envelope, then hydrates IR-class instances via
39
- * the per-target ContractSerializer. The single named entry point
40
- * every CLI on-disk read crosses (TML-2536) — `as Contract` casts
41
- * in production package sources are a serializer-bypass smell guarded
42
- * by `pnpm lint:no-contract-cast`.
43
- */
44
- deserializeContract(contractJson: unknown): Contract;
45
- verify(options: {
46
- readonly driver: SqlControlDriverInstance<string>;
47
- readonly contract: unknown;
48
- readonly expectedTargetId: string;
49
- readonly contractPath: string;
50
- readonly configPath?: string;
51
- }): Promise<VerifyDatabaseResult>;
52
- /**
53
- * Verify a contract against an already-introspected schema.
54
- *
55
- * Callers that need to verify against the live database compose
56
- * `introspect({ driver })` + `verifySchema({ contract, schema, ... })`.
57
- * The aggregate verifier hands in the full introspected schema and scopes
58
- * the returned result to each member's contract space afterwards — so
59
- * sibling-space tables never survive as `extras`.
60
- */
61
- verifySchema(options: {
62
- readonly contract: unknown;
63
- readonly schema: SqlSchemaIRNode;
64
- readonly strict: boolean;
65
- readonly frameworkComponents: ReadonlyArray<TargetBoundComponentDescriptor<'sql', string>>;
66
- }): VerifyDatabaseSchemaResult;
67
- /**
68
- * Classifies a diff issue's subject granularity on demand, resolved from
69
- * its node's `nodeKind` via the target's classifier. Satisfies the
70
- * {@link import('@prisma/orm-framework/components/control').SchemaSubjectClassifierCapable}
71
- * capability that framework consumers spanning contract spaces (the
72
- * migration aggregate's unclaimed-elements sweep) detect via
73
- * `hasSchemaSubjectClassifier` and call instead of reading family/target
74
- * node vocabulary. Nothing is stamped on the issue or the node.
75
- */
76
- classifySubjectGranularity(issue: SchemaDiffIssue): DiffSubjectGranularity | undefined;
77
- /**
78
- * Classifies a diff issue's subject storage `entityKind` on demand,
79
- * resolved from its node's `nodeKind` via the target's classifier —
80
- * sibling of `classifySubjectGranularity` above, part of the same
81
- * {@link import('@prisma/orm-framework/components/control').SchemaSubjectClassifierCapable}
82
- * capability. Nothing is stamped on the issue or the node.
83
- */
84
- classifyEntityKind(issue: SchemaDiffIssue): string | undefined;
85
- sign(options: {
86
- readonly driver: SqlControlDriverInstance<string>;
87
- readonly contract: unknown;
88
- readonly contractPath: string;
89
- readonly configPath?: string;
90
- }): Promise<SignDatabaseResult>;
91
- introspect(options: {
92
- readonly driver: SqlControlDriverInstance<string>;
93
- readonly contract?: unknown;
94
- }): Promise<SqlSchemaIRNode>;
95
- inferPslContract(schemaIR: SqlSchemaIRNode): PslDocumentAst;
96
- lowerAst(ast: AnyQueryAst | DdlNode, context: LowererContext<unknown>): Promise<SqlExecuteRequest>;
97
- /**
98
- * Inserts the initial marker row for `space` (upsert on `space`).
99
- * Delegates to the target control adapter's write SPI; see
100
- * `SqlControlAdapter.initMarker`.
101
- */
102
- initMarker(options: {
103
- readonly driver: SqlControlDriverInstance<string>;
104
- readonly space: string;
105
- readonly destination: {
106
- readonly storageHash: string;
107
- readonly profileHash: string;
108
- readonly invariants?: readonly string[];
109
- };
110
- }): Promise<void>;
111
- /**
112
- * Compare-and-swap advance of the marker row for `space`. Returns `true`
113
- * when the swap matched a row; see `SqlControlAdapter.updateMarker`.
114
- */
115
- updateMarker(options: {
116
- readonly driver: SqlControlDriverInstance<string>;
117
- readonly space: string;
118
- readonly expectedFrom: string;
119
- readonly destination: {
120
- readonly storageHash: string;
121
- readonly profileHash: string;
122
- readonly invariants?: readonly string[];
123
- };
124
- }): Promise<boolean>;
125
- /**
126
- * Appends a ledger entry for `space`; see
127
- * `SqlControlAdapter.writeLedgerEntry`.
128
- */
129
- writeLedgerEntry(options: {
130
- readonly driver: SqlControlDriverInstance<string>;
131
- readonly space: string;
132
- readonly entry: {
133
- readonly edgeId: string;
134
- readonly from: string;
135
- readonly to: string;
136
- readonly migrationName: string;
137
- readonly migrationHash: string;
138
- readonly operations: readonly unknown[];
139
- readonly destinationContractJson?: unknown;
140
- };
141
- }): Promise<void>;
142
- bootstrapControlTableQueries(): readonly DdlNode[];
143
- toOperationPreview(operations: readonly MigrationPlanOperation[]): OperationPreview;
144
- }
145
- //#endregion
146
- //#region src/core/control-descriptor.d.ts
147
- declare class SqlFamilyDescriptor implements ControlFamilyDescriptor<'sql', SqlControlFamilyInstance> {
148
- readonly kind: "family";
149
- readonly id = "sql";
150
- readonly familyId: "sql";
151
- readonly version = "0.0.1";
152
- readonly emission: EmissionSpi;
153
- readonly authoring: {
154
- readonly field: {
155
- readonly uuidString: {
156
- readonly kind: "fieldPreset";
157
- readonly output: {
158
- readonly codecId: "sql/char@1";
159
- readonly nativeType: "character";
160
- readonly typeParams: {
161
- readonly length: 36;
162
- };
163
- };
164
- };
165
- readonly ulid: {
166
- readonly kind: "fieldPreset";
167
- readonly output: {
168
- readonly codecId: "sql/char@1";
169
- readonly nativeType: "character";
170
- readonly typeParams: {
171
- readonly length: 26;
172
- };
173
- };
174
- };
175
- readonly nanoid: {
176
- readonly kind: "fieldPreset";
177
- readonly args: readonly [{
178
- readonly kind: "object";
179
- readonly optional: true;
180
- readonly properties: {
181
- readonly size: {
182
- readonly kind: "number";
183
- readonly optional: true;
184
- readonly integer: true;
185
- readonly minimum: 2;
186
- readonly maximum: 255;
187
- };
188
- };
189
- }];
190
- readonly output: {
191
- readonly codecId: "sql/char@1";
192
- readonly nativeType: "character";
193
- readonly typeParams: {
194
- readonly length: {
195
- readonly kind: "arg";
196
- readonly index: 0;
197
- readonly path: readonly ["size"];
198
- readonly default: 21;
199
- };
200
- };
201
- };
202
- };
203
- readonly cuid2: {
204
- readonly kind: "fieldPreset";
205
- readonly output: {
206
- readonly codecId: "sql/char@1";
207
- readonly nativeType: "character";
208
- readonly typeParams: {
209
- readonly length: 24;
210
- };
211
- };
212
- };
213
- readonly ksuid: {
214
- readonly kind: "fieldPreset";
215
- readonly output: {
216
- readonly codecId: "sql/char@1";
217
- readonly nativeType: "character";
218
- readonly typeParams: {
219
- readonly length: 27;
220
- };
221
- };
222
- };
223
- readonly id: {
224
- readonly uuidv4String: {
225
- readonly kind: "fieldPreset";
226
- readonly output: {
227
- readonly codecId: "sql/char@1";
228
- readonly nativeType: "character";
229
- readonly typeParams: {
230
- readonly length: 36;
231
- };
232
- readonly executionDefaults: {
233
- readonly onCreate: {
234
- readonly kind: "generator";
235
- readonly id: "uuidv4";
236
- };
237
- };
238
- readonly id: true;
239
- };
240
- };
241
- readonly uuidv7String: {
242
- readonly kind: "fieldPreset";
243
- readonly output: {
244
- readonly codecId: "sql/char@1";
245
- readonly nativeType: "character";
246
- readonly typeParams: {
247
- readonly length: 36;
248
- };
249
- readonly executionDefaults: {
250
- readonly onCreate: {
251
- readonly kind: "generator";
252
- readonly id: "uuidv7";
253
- };
254
- };
255
- readonly id: true;
256
- };
257
- };
258
- readonly ulid: {
259
- readonly kind: "fieldPreset";
260
- readonly output: {
261
- readonly codecId: "sql/char@1";
262
- readonly nativeType: "character";
263
- readonly typeParams: {
264
- readonly length: 26;
265
- };
266
- readonly executionDefaults: {
267
- readonly onCreate: {
268
- readonly kind: "generator";
269
- readonly id: "ulid";
270
- };
271
- };
272
- readonly id: true;
273
- };
274
- };
275
- readonly nanoid: {
276
- readonly kind: "fieldPreset";
277
- readonly args: readonly [{
278
- readonly kind: "object";
279
- readonly optional: true;
280
- readonly properties: {
281
- readonly size: {
282
- readonly kind: "number";
283
- readonly optional: true;
284
- readonly integer: true;
285
- readonly minimum: 2;
286
- readonly maximum: 255;
287
- };
288
- };
289
- }];
290
- readonly output: {
291
- readonly codecId: "sql/char@1";
292
- readonly nativeType: "character";
293
- readonly typeParams: {
294
- readonly length: {
295
- readonly kind: "arg";
296
- readonly index: 0;
297
- readonly path: readonly ["size"];
298
- readonly default: 21;
299
- };
300
- };
301
- readonly executionDefaults: {
302
- readonly onCreate: {
303
- readonly kind: "generator";
304
- readonly id: "nanoid";
305
- readonly params: {
306
- readonly size: {
307
- readonly kind: "arg";
308
- readonly index: 0;
309
- readonly path: readonly ["size"];
310
- };
311
- };
312
- };
313
- };
314
- readonly id: true;
315
- };
316
- };
317
- readonly cuid2: {
318
- readonly kind: "fieldPreset";
319
- readonly output: {
320
- readonly codecId: "sql/char@1";
321
- readonly nativeType: "character";
322
- readonly typeParams: {
323
- readonly length: 24;
324
- };
325
- readonly executionDefaults: {
326
- readonly onCreate: {
327
- readonly kind: "generator";
328
- readonly id: "cuid2";
329
- };
330
- };
331
- readonly id: true;
332
- };
333
- };
334
- readonly ksuid: {
335
- readonly kind: "fieldPreset";
336
- readonly output: {
337
- readonly codecId: "sql/char@1";
338
- readonly nativeType: "character";
339
- readonly typeParams: {
340
- readonly length: 27;
341
- };
342
- readonly executionDefaults: {
343
- readonly onCreate: {
344
- readonly kind: "generator";
345
- readonly id: "ksuid";
346
- };
347
- };
348
- readonly id: true;
349
- };
350
- };
351
- };
352
- };
353
- readonly type: {
354
- readonly sql: {
355
- readonly String: {
356
- readonly kind: "typeConstructor";
357
- readonly args: readonly [{
358
- readonly kind: "number";
359
- readonly name: "length";
360
- readonly integer: true;
361
- readonly minimum: 1;
362
- readonly maximum: 10485760;
363
- }];
364
- readonly output: {
365
- readonly codecId: "sql/varchar@1";
366
- readonly nativeType: "character varying";
367
- readonly typeParams: {
368
- readonly length: {
369
- readonly kind: "arg";
370
- readonly index: 0;
371
- };
372
- };
373
- };
374
- };
375
- };
376
- };
377
- readonly entityTypes: import("@prisma/orm-framework/components/authoring").AuthoringEntityTypeNamespace;
378
- readonly pslBlockDescriptors: {
379
- readonly enum: {
380
- readonly kind: "pslBlock";
381
- readonly keyword: "enum";
382
- readonly discriminator: "enum";
383
- readonly name: {
384
- readonly required: true;
385
- };
386
- readonly parameters: {};
387
- readonly variadicParameters: true;
388
- };
389
- };
390
- };
391
- create<TTargetId extends string>(stack: ControlStack<'sql', TTargetId>): SqlControlFamilyInstance;
392
- }
393
- //#endregion
394
- //#region src/core/assembly.d.ts
395
- declare function extractCodecControlHooks(descriptors: ReadonlyArray<TargetBoundComponentDescriptor<'sql', string>>): Map<string, CodecControlHooks>;
396
- //#endregion
397
- //#region src/core/control-target-descriptor.d.ts
398
- /**
399
- * One stack extension pack's already-assembled contract, paired with the
400
- * `spaceId` its extension descriptor was registered under. `contract infer`
401
- * needs both: the contract to know which elements the pack describes and to
402
- * resolve the domain model a cross-space foreign key targets, the `spaceId`
403
- * to qualify the emitted relation type (`<spaceId>:<namespace>.<Model>`).
404
- * Neither the contract JSON nor the framework's `ContractSpace` wrapper
405
- * self-declares its owning space id — it is only known from the extension
406
- * descriptor that carries the `ContractSpace`.
407
- */
408
- interface SqlDescribedContractSpace {
409
- readonly spaceId: string;
410
- readonly contract: Contract<SqlStorage>;
411
- }
412
- interface SqlControlTargetDescriptor<TTargetId extends string, TTargetDetails, TContract extends Contract<SqlStorage> = Contract<SqlStorage>> extends MigratableTargetDescriptor<'sql', TTargetId, SqlControlFamilyInstance> {
413
- readonly queryOperations?: () => SqlOperationDescriptors;
414
- /**
415
- * JSON ⇄ class boundary for the SQL target's contract. The descriptor
416
- * composes a concrete `SqlContractSerializerBase` subclass; the rest
417
- * of the control stack reaches `descriptor.contractSerializer` rather
418
- * than importing a per-target deserialization function.
419
- */
420
- readonly contractSerializer: ContractSerializer<TContract>;
421
- /**
422
- * Per-target schema verifier walking the contract against
423
- * `SqlSchemaIR`. The descriptor composes a concrete
424
- * `SqlSchemaVerifierBase` subclass; the family-shared walk lives on
425
- * the base, the target-specific dispatch on the subclass.
426
- */
427
- readonly schemaVerifier: SchemaVerifier<TContract, SqlSchemaIR>;
428
- /**
429
- * Database→PSL inference for `contract infer`. Target logic (owns the dialect
430
- * maps), so it lives on the descriptor. Optional: targets without `contract
431
- * infer` (Mongo) omit it, and the family instance throws when it is absent.
432
- * `describedContracts` carries the stack's extension packs' already-assembled
433
- * contracts (each paired with its `spaceId`) so the inferrer can omit elements
434
- * they already describe, and can qualify a cross-space relation with the
435
- * owning pack's space id.
436
- */
437
- readonly inferPslContract?: (schema: SqlSchemaIRNode, describedContracts?: readonly SqlDescribedContractSpace[]) => PslDocumentAst;
438
- /**
439
- * The full-tree node diff the family verify verdict derives from —
440
- * expected-tree derivation, pre-diff normalization, the generic differ,
441
- * and ownership scoping, all target-side. The family applies strict
442
- * gating + control-policy disposition over the returned issues; verify
443
- * rejects when a surviving issue is a failure.
444
- */
445
- readonly diffSchema: SqlSchemaDiffFn;
446
- /**
447
- * Classifies a diff-tree node's `nodeKind` into its framework-neutral
448
- * {@link DiffSubjectGranularity} — the target owns the full node vocabulary
449
- * that appears in its diff tree (its own kinds plus the relational kinds it
450
- * delegates to), so it is the one place that can resolve this. The family
451
- * verdict calls it inline per issue (never stamping the result); the
452
- * framework aggregate's unclaimed-elements sweep reaches the same
453
- * classifier via the family instance's `classifySubjectGranularity`
454
- * capability.
455
- */
456
- readonly classifySubjectGranularity: (nodeKind: string) => DiffSubjectGranularity;
457
- /**
458
- * Classifies a diff-tree node's `nodeKind` into its storage `entityKind` —
459
- * the same vocabulary the contract storage's `entries` dictionary keys use
460
- * (e.g. `'table'`). Sibling of `classifySubjectGranularity`, resolved the
461
- * same way: the target owns the full node vocabulary, so it is the one
462
- * place that can resolve this. `undefined` for a node kind with no
463
- * storage entity of its own (a column, an index, …). The framework
464
- * aggregate's unclaimed-elements sweep reaches this via the family
465
- * instance's `classifyEntityKind` capability, so it never hardcodes a
466
- * family entity kind.
467
- */
468
- readonly classifyEntityKind: (nodeKind: string) => string | undefined;
469
- createPlanner(adapter: SqlControlAdapter<TTargetId>): SqlMigrationPlanner<TTargetDetails>;
470
- createRunner(family: SqlControlFamilyInstance): SqlMigrationRunner<TTargetDetails>;
471
- }
472
- //#endregion
473
- //#region src/core/migrations/contract-to-schema-ir.d.ts
474
- /**
475
- * Target-specific callback that expands a column's base `nativeType` and optional
476
- * `typeParams` into the fully-qualified type string used by the database
477
- * (e.g. `character` + `{ length: 36 }` → `character(36)`).
478
- *
479
- * This lives in the family layer as a callback rather than importing a concrete
480
- * implementation because each target (Postgres, MySQL, SQLite, …) has its own
481
- * parameterization syntax. The target wires its expander when calling
482
- * `contractToSchemaIR`, keeping the family layer target-agnostic.
483
- */
484
- type NativeTypeExpander = (input: {
485
- readonly nativeType: string;
486
- readonly codecId?: string;
487
- readonly typeParams?: Record<string, unknown>;
488
- }) => string;
489
- /**
490
- * Target-specific callback that renders a `ColumnDefault` into the raw SQL literal
491
- * string stored in `SqlColumnIR.default`.
492
- *
493
- * Default value serialization is target-specific (quoting, casting, type syntax vary
494
- * between Postgres, MySQL, SQLite, …). This callback follows the same IoC pattern as
495
- * `NativeTypeExpander`: the target provides its renderer when calling
496
- * `contractToSchemaIR`, keeping the family layer target-agnostic.
497
- */
498
- type DefaultRenderer = (def: ColumnDefault, column: StorageColumn) => string;
499
- /**
500
- * Target-supplied hook (same IoC seam as `NativeTypeExpander`/`DefaultRenderer`)
501
- * that normalizes a contract-declared `ColumnDefault` into the resolved shape
502
- * the target's introspection parses from the live database — e.g. a
503
- * `dbgenerated("'{}'::jsonb")` function call and the literal Postgres reports
504
- * are the same value in different shapes, and `resolvedDefaultsEqual`
505
- * compares `kind` before content. When omitted, the contract's raw default
506
- * is the resolved default unchanged.
507
- */
508
- type DefaultResolver = (def: ColumnDefault, resolvedNativeType: string) => ColumnDefault;
509
- /**
510
- * Target-supplied callback that resolves a contract namespace to the live
511
- * database schema its enums are stored under.
512
- *
513
- * The projected enum annotations are nested by schema
514
- * (`storageTypes[schema][nativeType]`) so two namespaces holding an enum with
515
- * the same native type resolve to distinct live-database types. Mapping a
516
- * namespace to its DDL schema is target-specific (Postgres schemas;
517
- * SQLite/MySQL differ), so the target injects it here rather than the family
518
- * importing a concrete `ddlSchemaName`. This keeps the family layer
519
- * target-agnostic while the projection nests under the same schema the
520
- * target's read side (`readExistingEnumValues`) looks up.
521
- */
522
- type EnumNamespaceSchemaResolver = (storage: SqlStorage, namespaceId: string) => string;
523
- /**
524
- * Detects destructive changes between two contract storages.
525
- *
526
- * The additive-only planner silently ignores removals (tables, columns).
527
- * This function detects those removals so callers can report them as conflicts
528
- * rather than silently producing an empty plan.
529
- *
530
- * Returns an empty array if no destructive changes are found.
531
- */
532
- declare function detectDestructiveChanges(from: SqlStorage | null, to: SqlStorage): readonly MigrationPlannerConflict[];
533
- interface ContractToSchemaIROptions {
534
- readonly annotationNamespace: string;
535
- readonly expandNativeType?: NativeTypeExpander;
536
- readonly renderDefault?: DefaultRenderer;
537
- readonly resolveDefault?: DefaultResolver;
538
- /**
539
- * Target-supplied resolver mapping a namespace to the live database schema
540
- * its enums are stored under. When provided (Postgres), namespace-scoped
541
- * enums are nested by that schema in `enumTypes` so the projection matches
542
- * the target's `readExistingEnumValues` lookup. Targets without
543
- * schema-scoped enum storage (SQLite) omit it; enums are absent there.
544
- */
545
- readonly resolveEnumNamespaceSchema?: EnumNamespaceSchemaResolver;
546
- }
547
- /**
548
- * Converts a `Contract` to `SqlSchemaIR`.
549
- *
550
- * Reads `contract.storage` for tables and `contract.storage.types` for type
551
- * annotations. Storage-type annotations are written under
552
- * `options.annotationNamespace`.
553
- *
554
- * Drops codec metadata (`codecId`, `typeRef`) since the schema IR only represents
555
- * structural information. When `expandNativeType` is provided, parameterized types
556
- * are expanded (e.g. `character` + `{ length: 36 }` → `character(36)`) so the
557
- * resulting IR compares correctly against the "to" contract during planning.
558
- *
559
- * Returns an empty schema IR when `contract` is `null` (new project).
560
- */
561
- /**
562
- * Converts the tables of a single namespace into a `SqlSchemaIR`, keyed by
563
- * table name within that namespace. Unlike {@link contractToSchemaIR}, which
564
- * flattens every namespace's tables into one bare-keyed record (and throws on a
565
- * cross-namespace name collision), this scopes the table iteration to one
566
- * namespace so the same table name can exist in two schemas.
567
- *
568
- * The full `storage` is still passed to `convertTable`, so value-set / enum /
569
- * type resolution that legitimately spans namespaces is unaffected. Foreign
570
- * keys are built purely from the FK descriptor (`fk.target`), so cross-namespace
571
- * FKs survive per-namespace conversion. The `annotations` block (storage-type
572
- * derived) is omitted here — the per-namespace tree consumer reads only the
573
- * per-table fields.
574
- */
575
- declare function contractNamespaceToSchemaIR(storage: SqlStorage, namespaceId: string, options: ContractToSchemaIROptions): SqlSchemaIR;
576
- declare function contractToSchemaIR(contract: Contract<SqlStorage> | null, options: ContractToSchemaIROptions): SqlSchemaIR;
577
- //#endregion
578
- //#region src/core/migrations/control-policy.d.ts
579
- /**
580
- * The target object a control policy governs for a single planner call,
581
- * resolved from the target's own IR. `undefined` means the call's target
582
- * object could not be positively established — a fail-closed signal: any
583
- * policy stricter than `managed` drops such a call rather than emitting it.
584
- *
585
- * The object identity is a generic storage coordinate — `(entityKind,
586
- * entityName)`, absent for a whole-namespace subject — never a target-specific
587
- * `table`/`typeName` field. The family reasons about the coordinate for policy
588
- * and deduplication; the target owns any vocabulary (table vs enum) when it
589
- * renders a suppression.
590
- */
591
- interface ControlPolicySubject {
592
- readonly namespaceId: string;
593
- readonly entityKind?: string;
594
- readonly entityName?: string;
595
- readonly column?: string;
596
- /**
597
- * Names the RLS policy when the suppressed thing is a policy-level unit
598
- * on the subject's table (mirrors `column`) — the report must say which
599
- * policy, not just which table.
600
- */
601
- readonly rlsPolicy?: string;
602
- readonly explicitNodeControlPolicy?: ControlPolicy;
603
- /**
604
- * Whether the call creates a whole, previously-absent top-level storage
605
- * object (e.g. a table or an enum/type), as opposed to modifying an
606
- * existing object. This is the only thing `tolerated` permits: it is a
607
- * create-if-absent policy, so an op that touches an existing object — add
608
- * column, add index/constraint, alter, drop — is never allowed under it.
609
- */
610
- readonly createsNewObject: boolean;
611
- }
612
- /**
613
- * The structured record a control-policy partition emits for one suppressed
614
- * subject or call. It carries only raw data — no strings, no vocabulary — so
615
- * the consumer (the target) renders the user-facing message itself:
616
- *
617
- * - `subject` — the suppressed subject (its coordinate + namespace), or
618
- * `undefined` when the subject could not be resolved (fail-closed).
619
- * - `policy` — the effective control policy that caused the suppression.
620
- * - `factoryName` — the resolved creation factory name if the suppressed thing
621
- * was a whole-object creation (e.g. `createTable`), else `undefined`. The
622
- * family never invents a verb for a modification that produced no call.
623
- * - `createsNewObject` — whether the suppressed thing was object creation.
624
- */
625
- interface SuppressionRecord {
626
- readonly subject: ControlPolicySubject | undefined;
627
- readonly policy: ControlPolicy;
628
- readonly factoryName: string | undefined;
629
- readonly createsNewObject: boolean;
630
- }
631
- /**
632
- * The control policy that governs a single call. The `external` default is an
633
- * un-overridable namespace floor: when the contract default is `external`, no
634
- * per-object `managed` override can escalate DDL above the floor, so the
635
- * policy is forced to `external` regardless of the node's own declaration.
636
- * Every other default defers to the node's effective control policy.
637
- */
638
- declare function controlPolicyForCall(subject: ControlPolicySubject | undefined, defaultControlPolicy: ControlPolicy | undefined): ControlPolicy;
639
- /**
640
- * Partition the calls produced for a single set of subjects into those the
641
- * effective control policy permits (`kept`) and a list of
642
- * {@link SuppressionRecord}s describing the suppressed calls.
643
- *
644
- * **Prefer {@link partitionIssuesByControlPolicy}** for the schema-issue
645
- * pipeline: it filters subjects out of the planner's *input* so the planner
646
- * never has to reason about un-modeled state on `external`/`observed`
647
- * subjects. This call-level helper remains for paths that bypass the issue
648
- * pipeline — currently the codec-emitted field-event ops, which originate
649
- * from declared contract fields rather than from introspected schema state
650
- * and therefore cannot trip the diff engine.
651
- */
652
- declare function partitionCallsByControlPolicy<TCall>(options: {
653
- readonly calls: readonly TCall[];
654
- readonly contract: Contract<SqlStorage>;
655
- readonly resolveControlPolicySubject: (call: TCall) => ControlPolicySubject | undefined;
656
- readonly resolveFactoryName: (call: TCall) => string;
657
- }): {
658
- readonly kept: readonly TCall[];
659
- readonly suppressions: readonly SuppressionRecord[];
660
- };
661
- /**
662
- * Partition a list of schema-issue-shaped inputs by the effective control
663
- * policy of each issue's subject *before* the planner is invoked.
664
- *
665
- * `plannable` is the list of issues whose subject's effective policy permits
666
- * the planner to act on them (`managed`, or `tolerated` for whole-object
667
- * creation issues only). Issues for `external`/`observed` subjects, and
668
- * non-creation issues for `tolerated` subjects, are dropped from the planner's
669
- * input entirely — they never enter introspection-driven planning, never feed
670
- * the diff engine, and never produce DDL calls that would have to be
671
- * post-filtered. This sidesteps a class of failure where the diff engine
672
- * cannot reason about the live shape of a subject the user marked as
673
- * out-of-scope (`external`).
674
- *
675
- * `suppressions` is one {@link SuppressionRecord} per suppressed subject (not
676
- * per suppressed issue). Its `factoryName` is the creation factory name when any
677
- * of the subject's issues is whole-object creation (e.g. `createTable`), else
678
- * `undefined` — the family never invents a modification verb for an op that
679
- * produced no call; the target renders the message.
680
- *
681
- * Unresolved-subject issues (`resolveControlPolicySubject` returns
682
- * `undefined`) emit one record each; they cannot be deduplicated because they
683
- * carry no subject coordinate.
684
- */
685
- declare function partitionIssuesByControlPolicy<TIssue>(options: {
686
- readonly issues: readonly TIssue[];
687
- readonly contract: Contract<SqlStorage>;
688
- /**
689
- * Resolve the subject targeted by this issue (or `undefined` to fail-closed:
690
- * any policy stricter than `managed` drops the issue).
691
- */
692
- readonly resolveControlPolicySubject: (issue: TIssue) => ControlPolicySubject | undefined;
693
- /**
694
- * Resolve a creation factoryName for this issue if it represents the
695
- * absence of the whole top-level object (e.g. `'createTable'` for a
696
- * missing-table issue). When the issue describes a modification to an
697
- * existing object, return `undefined`. Both decisions feed off this signal:
698
- *
699
- * 1. Under `tolerated`, only issues whose `resolveCreationFactoryName`
700
- * returns a value flow into the planner (create-if-absent).
701
- * 2. A suppressed subject's record carries the resolved creation factoryName
702
- * when it has at least one creation-flavoured issue, else `undefined`.
703
- */
704
- readonly resolveCreationFactoryName: (issue: TIssue) => string | undefined;
705
- }): {
706
- readonly plannable: readonly TIssue[];
707
- readonly suppressions: readonly SuppressionRecord[];
708
- };
709
- //#endregion
710
- //#region src/core/migrations/field-event-planner.d.ts
711
- interface PlanFieldEventOperationsOptions {
712
- /**
713
- * Prior contract the planner is diffing against. `null` for first emits
714
- * (every field is treated as added).
715
- */
716
- readonly priorContract: Contract<SqlStorage> | null;
717
- /**
718
- * New contract the user just authored.
719
- */
720
- readonly newContract: Contract<SqlStorage>;
721
- /**
722
- * Codec-id keyed map of control hooks, as produced by
723
- * {@link import('./assembly').extractCodecControlHooks}. Hooks carry
724
- * `unknown` target details after extraction; the caller casts the
725
- * helper's returned ops to its target's `SqlMigrationPlanOperation`
726
- * specialisation at the integration boundary, mirroring how
727
- * `storageTypePlanCallStrategy` lifts `planTypeOperations` results into
728
- * `RawSqlCall`.
729
- */
730
- readonly codecHooks: ReadonlyMap<string, CodecControlHooks>;
731
- }
732
- declare function planFieldEventOperations(options: PlanFieldEventOperationsOptions): readonly OpFactoryCall[];
733
- //#endregion
734
- //#region src/core/migrations/native-type-expander.d.ts
735
- /**
736
- * Builds the codec-hook-composed `expandNativeType` callback the contract→IR
737
- * derivation uses to expand parameterized native types (e.g. `character` +
738
- * `{ length: 36 }` → `character(36)`). Returns `undefined` when no framework
739
- * components are supplied, so callers can omit the option entirely.
740
- */
741
- declare function buildNativeTypeExpander(frameworkComponents?: ReadonlyArray<TargetBoundComponentDescriptor<'sql', string>>): ((input: {
742
- readonly nativeType: string;
743
- readonly codecId?: string;
744
- readonly typeParams?: Record<string, unknown>;
745
- }) => string) | undefined;
746
- //#endregion
747
- //#region src/core/migrations/plan-helpers.d.ts
748
- declare function createMigrationPlan<TTargetDetails>(options: CreateSqlMigrationPlanOptions<TTargetDetails>): SqlMigrationPlan<TTargetDetails>;
749
- declare function plannerSuccess<TTargetDetails>(plan: SqlMigrationPlan<TTargetDetails>, warnings?: readonly SqlPlannerConflict[]): SqlPlannerSuccessResult<TTargetDetails>;
750
- declare function plannerFailure(conflicts: readonly SqlPlannerConflict[]): SqlPlannerFailureResult;
751
- /**
752
- * Creates a successful migration runner result.
753
- */
754
- declare function runnerSuccess(value: {
755
- operationsPlanned: number;
756
- operationsExecuted: number;
757
- }): Ok<SqlMigrationRunnerSuccessValue>;
758
- /**
759
- * Creates a failed migration runner result.
760
- */
761
- declare function runnerFailure(code: SqlMigrationRunnerErrorCode, summary: string, options?: {
762
- why?: string;
763
- meta?: AnyRecord;
764
- }): NotOk<SqlMigrationRunnerFailure>;
765
- //#endregion
766
- //#region src/core/migrations/policies.d.ts
767
- /**
768
- * Policy used by `db init`: additive-only operations, no widening/destructive steps.
769
- */
770
- declare const INIT_ADDITIVE_POLICY: MigrationOperationPolicy;
771
- //#endregion
772
- //#region src/core/timestamp-now-generator.d.ts
773
- /**
774
- * Builds the canonical control-plane descriptor for the wall-clock-now
775
- * mutation default generator. The descriptor's `id` and `buildPhases`
776
- * are target-agnostic so PSL `temporal.updatedAt()` and TS
777
- * `field.temporal.updatedAt()` lower to byte-identical contracts.
778
- *
779
- * `applicableCodecIds` is omitted: `timestampNow` is preset-only (not
780
- * reachable via `@default(timestampNow())` lowering), and the codec is
781
- * co-registered by the preset descriptor itself, so the
782
- * `@default(...)` compatibility check has no role to play here.
783
- */
784
- declare function timestampNowControlDescriptor(): MutationDefaultGeneratorDescriptor;
785
- /**
786
- * Builds the canonical `temporal.{createdAt,updatedAt}` field-preset pair
787
- * for a SQL target. `createdAt` lowers to a `now()` storage default;
788
- * `updatedAt` lowers to the `timestampNow` execution generator on both
789
- * `onCreate` and `onUpdate` (RD: "last modified time", non-null). Targets
790
- * supply the codec/native-type pair that matches their timestamp column;
791
- * everything else is shared so PSL `temporal.updatedAt()` and TS
792
- * `field.temporal.updatedAt()` lower to byte-identical contracts across
793
- * targets by construction.
794
- */
795
- declare function temporalAuthoringPresets<const CodecId extends string, const NativeType extends string>(input: {
796
- readonly codecId: CodecId;
797
- readonly nativeType: NativeType;
798
- }): {
799
- readonly createdAt: {
800
- readonly kind: "fieldPreset";
801
- readonly output: {
802
- readonly codecId: CodecId;
803
- readonly nativeType: NativeType;
804
- readonly default: {
805
- readonly kind: "function";
806
- readonly expression: "now()";
807
- };
808
- };
809
- };
810
- readonly updatedAt: {
811
- readonly kind: "fieldPreset";
812
- readonly output: {
813
- readonly codecId: CodecId;
814
- readonly nativeType: NativeType;
815
- readonly executionDefaults: {
816
- readonly onCreate: {
817
- readonly kind: "generator";
818
- readonly id: "timestampNow";
819
- };
820
- readonly onUpdate: {
821
- readonly kind: "generator";
822
- readonly id: "timestampNow";
823
- };
824
- };
825
- };
826
- };
827
- };
828
- /**
829
- * Builds a `temporal.<codec>` field preset for a codec that takes a precision
830
- * parameter (`pg/timestamp@1`, `pg/timestamptz@1`). Arguments change field
831
- * properties only — never the codec, which the caller fixes here.
832
- *
833
- * All three arguments are optional: omitting `precision` omits `typeParams`
834
- * entirely, and omitting a phase omits that phase (both omitted omits
835
- * `executionDefaults`).
836
- */
837
- declare function temporalCodecPresetWithPrecision<const CodecId extends string, const NativeType extends string>(input: {
838
- readonly codecId: CodecId;
839
- readonly nativeType: NativeType;
840
- }): {
841
- readonly kind: "fieldPreset";
842
- readonly args: readonly [{
843
- readonly name: "precision";
844
- readonly kind: "number";
845
- readonly optional: true;
846
- readonly integer: true;
847
- readonly minimum: 0;
848
- }, {
849
- readonly name: "onCreate";
850
- readonly kind: "option";
851
- readonly values: readonly ["now"];
852
- readonly optional: true;
853
- }, {
854
- readonly name: "onUpdate";
855
- readonly kind: "option";
856
- readonly values: readonly ["now"];
857
- readonly optional: true;
858
- }];
859
- readonly output: {
860
- readonly codecId: CodecId;
861
- readonly nativeType: NativeType;
862
- readonly typeParams: {
863
- readonly precision: {
864
- readonly kind: "arg";
865
- readonly index: 0;
866
- };
867
- };
868
- readonly executionDefaults: {
869
- readonly onCreate: {
870
- readonly kind: "select";
871
- readonly index: 1;
872
- readonly cases: {
873
- readonly now: {
874
- readonly kind: "generator";
875
- readonly id: "timestampNow";
876
- };
877
- };
878
- };
879
- readonly onUpdate: {
880
- readonly kind: "select";
881
- readonly index: 2;
882
- readonly cases: {
883
- readonly now: {
884
- readonly kind: "generator";
885
- readonly id: "timestampNow";
886
- };
887
- };
888
- };
889
- };
890
- };
891
- };
892
- /**
893
- * Builds a `temporal.<codec>` field preset for a codec with no type
894
- * parameters (`sqlite/datetime@1`). As with the precision-bearing variant,
895
- * both phase arguments are optional and omitting one omits that phase.
896
- */
897
- declare function temporalCodecPreset<const CodecId extends string, const NativeType extends string>(input: {
898
- readonly codecId: CodecId;
899
- readonly nativeType: NativeType;
900
- }): {
901
- readonly kind: "fieldPreset";
902
- readonly args: readonly [{
903
- readonly name: "onCreate";
904
- readonly kind: "option";
905
- readonly values: readonly ["now"];
906
- readonly optional: true;
907
- }, {
908
- readonly name: "onUpdate";
909
- readonly kind: "option";
910
- readonly values: readonly ["now"];
911
- readonly optional: true;
912
- }];
913
- readonly output: {
914
- readonly codecId: CodecId;
915
- readonly nativeType: NativeType;
916
- readonly executionDefaults: {
917
- readonly onCreate: {
918
- readonly kind: "select";
919
- readonly index: 0;
920
- readonly cases: {
921
- readonly now: {
922
- readonly kind: "generator";
923
- readonly id: "timestampNow";
924
- };
925
- };
926
- };
927
- readonly onUpdate: {
928
- readonly kind: "select";
929
- readonly index: 1;
930
- readonly cases: {
931
- readonly now: {
932
- readonly kind: "generator";
933
- readonly id: "timestampNow";
934
- };
935
- };
936
- };
937
- };
938
- };
939
- };
940
- //#endregion
941
- //#region src/exports/control.d.ts
942
- declare const _default: SqlFamilyDescriptor;
943
- //#endregion
944
- export { partitionCallsByControlPolicy as A, timestampNowControlDescriptor as B, buildNativeTypeExpander as C, createMigrationPlan as D, controlPolicyForCall as E, runnerFailure as F, runnerSuccess as I, temporalAuthoringPresets as L, planFieldEventOperations as M, plannerFailure as N, detectDestructiveChanges as O, plannerSuccess as P, temporalCodecPreset as R, assembleAuthoringContributions as S, contractToSchemaIR as T, SqlControlTargetDescriptor as _, EnumNamespaceSchemaResolver as a, TargetMigrationsCapability as b, MigrationOperationPolicy$1 as c, MigrationPlanner as d, MigrationPlannerConflict$1 as f, SqlControlFamilyInstance as g, PlanFieldEventOperationsOptions as h, DefaultResolver as i, partitionIssuesByControlPolicy as j, extractCodecControlHooks as k, MigrationPlan$1 as l, NativeTypeExpander as m, ControlPolicySubject as n, INIT_ADDITIVE_POLICY as o, MigrationPlannerResult as p, DefaultRenderer as r, MigrationOperationClass as s, ContractToSchemaIROptions as t, MigrationPlanOperation$1 as u, SqlDescribedContractSpace as v, contractNamespaceToSchemaIR as w, _default as x, SuppressionRecord as y, temporalCodecPresetWithPrecision as z };
945
- //# sourceMappingURL=control-DTLJ1WtZ.d.mts.map