@prisma/orm-framework 0.16.0

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 (332) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +27 -0
  3. package/dist/abortable-CQO6uG9F.mjs +39 -0
  4. package/dist/abortable-CQO6uG9F.mjs.map +1 -0
  5. package/dist/abortable-DBbAaT_4.d.mts +29 -0
  6. package/dist/abortable-DBbAaT_4.d.mts.map +1 -0
  7. package/dist/apply-specifier-default-control-policy-CAxiXxKg.d.mts +7 -0
  8. package/dist/apply-specifier-default-control-policy-CAxiXxKg.d.mts.map +1 -0
  9. package/dist/apply-specifier-default-control-policy-CsYHsfTF.mjs +12 -0
  10. package/dist/apply-specifier-default-control-policy-CsYHsfTF.mjs.map +1 -0
  11. package/dist/array-equal-28xupwIB.mjs +26 -0
  12. package/dist/array-equal-28xupwIB.mjs.map +1 -0
  13. package/dist/array-equal-dUd-VPlk.d.mts +22 -0
  14. package/dist/array-equal-dUd-VPlk.d.mts.map +1 -0
  15. package/dist/assertions-BEQnOIQd.d.mts +31 -0
  16. package/dist/assertions-BEQnOIQd.d.mts.map +1 -0
  17. package/dist/assertions-Cz-GWH8P.mjs +36 -0
  18. package/dist/assertions-Cz-GWH8P.mjs.map +1 -0
  19. package/dist/authoring-Dd7p6pTS.d.mts +1 -0
  20. package/dist/canonical-stringify-Bl6agy_g.d.mts +51 -0
  21. package/dist/canonical-stringify-Bl6agy_g.d.mts.map +1 -0
  22. package/dist/canonical-stringify-DY4NaAJi.mjs +104 -0
  23. package/dist/canonical-stringify-DY4NaAJi.mjs.map +1 -0
  24. package/dist/canonicalization-DFpB09nP-4OdB2nsy.d.mts +69 -0
  25. package/dist/canonicalization-DFpB09nP-4OdB2nsy.d.mts.map +1 -0
  26. package/dist/canonicalization-path-match-CNgHuwM_-CCPBeUuk.mjs +25 -0
  27. package/dist/canonicalization-path-match-CNgHuwM_-CCPBeUuk.mjs.map +1 -0
  28. package/dist/capabilities-CPj7MfXO-GRkp0Q_D.mjs +64 -0
  29. package/dist/capabilities-CPj7MfXO-GRkp0Q_D.mjs.map +1 -0
  30. package/dist/capabilities-Cupq4-1--C71ORI3N.d.mts +34 -0
  31. package/dist/capabilities-Cupq4-1--C71ORI3N.d.mts.map +1 -0
  32. package/dist/casts-D29CHGrr.d.mts +78 -0
  33. package/dist/casts-D29CHGrr.d.mts.map +1 -0
  34. package/dist/casts-DpaahrlC-Bd5n2coI.mjs +82 -0
  35. package/dist/casts-DpaahrlC-Bd5n2coI.mjs.map +1 -0
  36. package/dist/codec-Cly9VPoA.mjs +78 -0
  37. package/dist/codec-Cly9VPoA.mjs.map +1 -0
  38. package/dist/codec-D3GVAkR_.d.mts +116 -0
  39. package/dist/codec-D3GVAkR_.d.mts.map +1 -0
  40. package/dist/codec-types-XJO6eC9U-B_K2q0zm.d.mts +221 -0
  41. package/dist/codec-types-XJO6eC9U-B_K2q0zm.d.mts.map +1 -0
  42. package/dist/components-CawuxTia.d.mts +1 -0
  43. package/dist/components.d.mts +20 -0
  44. package/dist/components.mjs +15 -0
  45. package/dist/components__authoring.d.mts +3 -0
  46. package/dist/components__authoring.mjs +2 -0
  47. package/dist/components__codec.d.mts +3 -0
  48. package/dist/components__codec.mjs +3 -0
  49. package/dist/components__components.d.mts +4 -0
  50. package/dist/components__components.mjs +3 -0
  51. package/dist/components__control.d.mts +4 -0
  52. package/dist/components__control.mjs +2 -0
  53. package/dist/components__emission.d.mts +4 -0
  54. package/dist/components__emission.mjs +2 -0
  55. package/dist/components__execution.d.mts +2 -0
  56. package/dist/components__execution.mjs +2 -0
  57. package/dist/components__ir.d.mts +3 -0
  58. package/dist/components__ir.mjs +3 -0
  59. package/dist/components__psl-ast.d.mts +4 -0
  60. package/dist/components__psl-ast.mjs +2 -0
  61. package/dist/components__runtime.d.mts +2 -0
  62. package/dist/components__runtime.mjs +3 -0
  63. package/dist/components__utils.d.mts +2 -0
  64. package/dist/components__utils.mjs +2 -0
  65. package/dist/config-errors-CBdiX587-DwIyJIX9.mjs +9 -0
  66. package/dist/config-errors-CBdiX587-DwIyJIX9.mjs.map +1 -0
  67. package/dist/config-types-Cf9lVsHR.mjs +62 -0
  68. package/dist/config-types-Cf9lVsHR.mjs.map +1 -0
  69. package/dist/config-types-W-87vhZ4-BgYaH8YO.d.mts +162 -0
  70. package/dist/config-types-W-87vhZ4-BgYaH8YO.d.mts.map +1 -0
  71. package/dist/config-types-zrHI32Om.d.mts +1 -0
  72. package/dist/config-validation-ByGTw6zQ.mjs +99 -0
  73. package/dist/config-validation-ByGTw6zQ.mjs.map +1 -0
  74. package/dist/config-validation-DXggMTZf.d.mts +14 -0
  75. package/dist/config-validation-DXggMTZf.d.mts.map +1 -0
  76. package/dist/config.d.mts +4 -0
  77. package/dist/config.mjs +3 -0
  78. package/dist/config__config-types.d.mts +3 -0
  79. package/dist/config__config-types.mjs +2 -0
  80. package/dist/config__config-validation.d.mts +2 -0
  81. package/dist/config__config-validation.mjs +2 -0
  82. package/dist/contract-authoring.d.mts +213 -0
  83. package/dist/contract-authoring.d.mts.map +1 -0
  84. package/dist/contract-authoring.mjs +133 -0
  85. package/dist/contract-authoring.mjs.map +1 -0
  86. package/dist/contract-types-CkdMH7F7-9EHXSwbH.d.mts +77 -0
  87. package/dist/contract-types-CkdMH7F7-9EHXSwbH.d.mts.map +1 -0
  88. package/dist/contract-validation-error-DEiWp_EI-CRwtUgRw.mjs +14 -0
  89. package/dist/contract-validation-error-DEiWp_EI-CRwtUgRw.mjs.map +1 -0
  90. package/dist/contract-validation-error-R7cMoK04.d.mts +11 -0
  91. package/dist/contract-validation-error-R7cMoK04.d.mts.map +1 -0
  92. package/dist/contract.d.mts +14 -0
  93. package/dist/contract.mjs +13 -0
  94. package/dist/contract__apply-specifier-default-control-policy.d.mts +2 -0
  95. package/dist/contract__apply-specifier-default-control-policy.mjs +2 -0
  96. package/dist/contract__contract-validation-error.d.mts +2 -0
  97. package/dist/contract__contract-validation-error.mjs +2 -0
  98. package/dist/contract__default-namespace.d.mts +2 -0
  99. package/dist/contract__default-namespace.mjs +2 -0
  100. package/dist/contract__enum-accessor.d.mts +2 -0
  101. package/dist/contract__enum-accessor.mjs +2 -0
  102. package/dist/contract__hashing-utils.d.mts +2 -0
  103. package/dist/contract__hashing-utils.mjs +3 -0
  104. package/dist/contract__hashing.d.mts +3 -0
  105. package/dist/contract__hashing.mjs +2 -0
  106. package/dist/contract__is-plain-record.d.mts +2 -0
  107. package/dist/contract__is-plain-record.mjs +2 -0
  108. package/dist/contract__resolve-domain-model.d.mts +2 -0
  109. package/dist/contract__resolve-domain-model.mjs +2 -0
  110. package/dist/contract__types.d.mts +6 -0
  111. package/dist/contract__types.mjs +5 -0
  112. package/dist/contract__validate-domain.d.mts +2 -0
  113. package/dist/contract__validate-domain.mjs +2 -0
  114. package/dist/control-B87KWI_K-C_R8WfEr.d.mts +213 -0
  115. package/dist/control-B87KWI_K-C_R8WfEr.d.mts.map +1 -0
  116. package/dist/control-CBvTj7Ia.d.mts +1383 -0
  117. package/dist/control-CBvTj7Ia.d.mts.map +1 -0
  118. package/dist/control-DTouE89s.mjs +621 -0
  119. package/dist/control-DTouE89s.mjs.map +1 -0
  120. package/dist/control-Ftiau058-CCeJcAVQ.mjs +284 -0
  121. package/dist/control-Ftiau058-CCeJcAVQ.mjs.map +1 -0
  122. package/dist/declarations-DR6To8_k-BFwkCGeP.mjs +1046 -0
  123. package/dist/declarations-DR6To8_k-BFwkCGeP.mjs.map +1 -0
  124. package/dist/default-namespace-D4vCwkXg-BaiW8LNK.mjs +39 -0
  125. package/dist/default-namespace-D4vCwkXg-BaiW8LNK.mjs.map +1 -0
  126. package/dist/default-namespace-D5X_k6hJ-GH8P1ror.d.mts +26 -0
  127. package/dist/default-namespace-D5X_k6hJ-GH8P1ror.d.mts.map +1 -0
  128. package/dist/defined-BQWA85QH-BRSBMULx.mjs +31 -0
  129. package/dist/defined-BQWA85QH-BRSBMULx.mjs.map +1 -0
  130. package/dist/defined-BSXuxrnl.d.mts +28 -0
  131. package/dist/defined-BSXuxrnl.d.mts.map +1 -0
  132. package/dist/domain-envelope-D6Wn9AmZ-BqZKTT9U.d.mts +359 -0
  133. package/dist/domain-envelope-D6Wn9AmZ-BqZKTT9U.d.mts.map +1 -0
  134. package/dist/emission-CeoAV9mj.mjs +26 -0
  135. package/dist/emission-CeoAV9mj.mjs.map +1 -0
  136. package/dist/emission-DeoQufVd.d.mts +1 -0
  137. package/dist/emission-types-hfRVB_Yw-DpQ3hISB.d.mts +75 -0
  138. package/dist/emission-types-hfRVB_Yw-DpQ3hISB.d.mts.map +1 -0
  139. package/dist/enum-accessor-Db5DaTNX.mjs +35 -0
  140. package/dist/enum-accessor-Db5DaTNX.mjs.map +1 -0
  141. package/dist/enum-accessor-PH5vjghI.d.mts +85 -0
  142. package/dist/enum-accessor-PH5vjghI.d.mts.map +1 -0
  143. package/dist/errors.d.mts +4 -0
  144. package/dist/errors.mjs +4 -0
  145. package/dist/errors__control.d.mts +2 -0
  146. package/dist/errors__control.mjs +2 -0
  147. package/dist/errors__execution.d.mts +2 -0
  148. package/dist/errors__execution.mjs +2 -0
  149. package/dist/errors__migration.d.mts +2 -0
  150. package/dist/errors__migration.mjs +2 -0
  151. package/dist/execution-BNwBzmRd.mjs +40 -0
  152. package/dist/execution-BNwBzmRd.mjs.map +1 -0
  153. package/dist/execution-BbOD4GyR.mjs +164 -0
  154. package/dist/execution-BbOD4GyR.mjs.map +1 -0
  155. package/dist/execution-Bo5Bu2Ys.d.mts +79 -0
  156. package/dist/execution-Bo5Bu2Ys.d.mts.map +1 -0
  157. package/dist/execution-MOde1lmD.d.mts +98 -0
  158. package/dist/execution-MOde1lmD.d.mts.map +1 -0
  159. package/dist/framework-authoring-7YMP9TwM-C9P-N6_a.d.mts +777 -0
  160. package/dist/framework-authoring-7YMP9TwM-C9P-N6_a.d.mts.map +1 -0
  161. package/dist/framework-authoring-CDEvlouU-mlMWSksD.mjs +698 -0
  162. package/dist/framework-authoring-CDEvlouU-mlMWSksD.mjs.map +1 -0
  163. package/dist/framework-components-D6j4Y5K7-RW9H184y.mjs +27 -0
  164. package/dist/framework-components-D6j4Y5K7-RW9H184y.mjs.map +1 -0
  165. package/dist/framework-components-MFoo0sYx-G_6k9jt4.d.mts +388 -0
  166. package/dist/framework-components-MFoo0sYx-G_6k9jt4.d.mts.map +1 -0
  167. package/dist/hash-content-Bugg_nZn.mjs +63 -0
  168. package/dist/hash-content-Bugg_nZn.mjs.map +1 -0
  169. package/dist/hash-content-DwEUh-Rx.d.mts +59 -0
  170. package/dist/hash-content-DwEUh-Rx.d.mts.map +1 -0
  171. package/dist/hashing-BtIZVNYX.mjs +199 -0
  172. package/dist/hashing-BtIZVNYX.mjs.map +1 -0
  173. package/dist/hashing-CccSPELN.d.mts +25 -0
  174. package/dist/hashing-CccSPELN.d.mts.map +1 -0
  175. package/dist/hashing-utils-DQgS3nOe.mjs +48 -0
  176. package/dist/hashing-utils-DQgS3nOe.mjs.map +1 -0
  177. package/dist/hashing-utils-qKu59RSC.d.mts +19 -0
  178. package/dist/hashing-utils-qKu59RSC.d.mts.map +1 -0
  179. package/dist/ids.d.mts +44 -0
  180. package/dist/ids.d.mts.map +1 -0
  181. package/dist/ids.mjs +96 -0
  182. package/dist/ids.mjs.map +1 -0
  183. package/dist/ids__runtime.d.mts +7 -0
  184. package/dist/ids__runtime.d.mts.map +1 -0
  185. package/dist/ids__runtime.mjs +31 -0
  186. package/dist/ids__runtime.mjs.map +1 -0
  187. package/dist/index-GY2oGH9L.d.mts +120 -0
  188. package/dist/index-GY2oGH9L.d.mts.map +1 -0
  189. package/dist/internal-error-BIc-ehme-ouBQPoEL.mjs +24 -0
  190. package/dist/internal-error-BIc-ehme-ouBQPoEL.mjs.map +1 -0
  191. package/dist/internal-error-kK8QvlDE.d.mts +19 -0
  192. package/dist/internal-error-kK8QvlDE.d.mts.map +1 -0
  193. package/dist/ir-BvE7L9FK.d.mts +359 -0
  194. package/dist/ir-BvE7L9FK.d.mts.map +1 -0
  195. package/dist/ir-ChmSSAhX.mjs +200 -0
  196. package/dist/ir-ChmSSAhX.mjs.map +1 -0
  197. package/dist/is-plain-record-C9BWiqcw.d.mts +12 -0
  198. package/dist/is-plain-record-C9BWiqcw.d.mts.map +1 -0
  199. package/dist/is-plain-record-CUofyVQ7-DWEzdhIx.mjs +16 -0
  200. package/dist/is-plain-record-CUofyVQ7-DWEzdhIx.mjs.map +1 -0
  201. package/dist/json-Dkqr3say.d.mts +26 -0
  202. package/dist/json-Dkqr3say.d.mts.map +1 -0
  203. package/dist/migration-4VOHVEzx.mjs +118 -0
  204. package/dist/migration-4VOHVEzx.mjs.map +1 -0
  205. package/dist/migration-DKbDzBwy.d.mts +74 -0
  206. package/dist/migration-DKbDzBwy.d.mts.map +1 -0
  207. package/dist/namespace-id-asbWpwMw-3yxn-tRe.mjs +9 -0
  208. package/dist/namespace-id-asbWpwMw-3yxn-tRe.mjs.map +1 -0
  209. package/dist/operations.d.mts +46 -0
  210. package/dist/operations.d.mts.map +1 -0
  211. package/dist/operations.mjs +28 -0
  212. package/dist/operations.mjs.map +1 -0
  213. package/dist/parse-0ZJjj_2N-WZZ1nlrv.d.mts +427 -0
  214. package/dist/parse-0ZJjj_2N-WZZ1nlrv.d.mts.map +1 -0
  215. package/dist/parse-GbZGfMUj-BFSrD2AN.mjs +621 -0
  216. package/dist/parse-GbZGfMUj-BFSrD2AN.mjs.map +1 -0
  217. package/dist/promise-D8meygPf.mjs +13 -0
  218. package/dist/promise-D8meygPf.mjs.map +1 -0
  219. package/dist/promise-DHJWZv49.d.mts +11 -0
  220. package/dist/promise-DHJWZv49.d.mts.map +1 -0
  221. package/dist/psl-ast-BEwO80EH.d.mts +37 -0
  222. package/dist/psl-ast-BEwO80EH.d.mts.map +1 -0
  223. package/dist/psl-ast-Chgi8e4o-rSlBk1UV.d.mts +259 -0
  224. package/dist/psl-ast-Chgi8e4o-rSlBk1UV.d.mts.map +1 -0
  225. package/dist/psl-ast-DUCvVXbB.mjs +239 -0
  226. package/dist/psl-ast-DUCvVXbB.mjs.map +1 -0
  227. package/dist/psl-parser.d.mts +158 -0
  228. package/dist/psl-parser.d.mts.map +1 -0
  229. package/dist/psl-parser.mjs +804 -0
  230. package/dist/psl-parser.mjs.map +1 -0
  231. package/dist/psl-parser__format.d.mts +12 -0
  232. package/dist/psl-parser__format.d.mts.map +1 -0
  233. package/dist/psl-parser__format.mjs +464 -0
  234. package/dist/psl-parser__format.mjs.map +1 -0
  235. package/dist/psl-parser__interpret.d.mts +40 -0
  236. package/dist/psl-parser__interpret.d.mts.map +1 -0
  237. package/dist/psl-parser__interpret.mjs +25 -0
  238. package/dist/psl-parser__interpret.mjs.map +1 -0
  239. package/dist/psl-parser__syntax.d.mts +31 -0
  240. package/dist/psl-parser__syntax.d.mts.map +1 -0
  241. package/dist/psl-parser__syntax.mjs +43 -0
  242. package/dist/psl-parser__syntax.mjs.map +1 -0
  243. package/dist/psl-parser__tokenizer.d.mts +2 -0
  244. package/dist/psl-parser__tokenizer.mjs +2 -0
  245. package/dist/psl-printer.d.mts +37 -0
  246. package/dist/psl-printer.d.mts.map +1 -0
  247. package/dist/psl-printer.mjs +393 -0
  248. package/dist/psl-printer.mjs.map +1 -0
  249. package/dist/redact-db-url-BlaloOwt.d.mts +22 -0
  250. package/dist/redact-db-url-BlaloOwt.d.mts.map +1 -0
  251. package/dist/redact-db-url-CRWJWdB1.mjs +26 -0
  252. package/dist/redact-db-url-CRWJWdB1.mjs.map +1 -0
  253. package/dist/resolve-codec-BZF8TZh_-D-xORT9Q.mjs +59 -0
  254. package/dist/resolve-codec-BZF8TZh_-D-xORT9Q.mjs.map +1 -0
  255. package/dist/resolve-domain-model-BVSb5wS5-C6Yq0dsD.d.mts +17 -0
  256. package/dist/resolve-domain-model-BVSb5wS5-C6Yq0dsD.d.mts.map +1 -0
  257. package/dist/resolve-domain-model-BovPAsW2-8rwyzjxp.mjs +20 -0
  258. package/dist/resolve-domain-model-BovPAsW2-8rwyzjxp.mjs.map +1 -0
  259. package/dist/result-Bpupv5vO.d.mts +54 -0
  260. package/dist/result-Bpupv5vO.d.mts.map +1 -0
  261. package/dist/result-CBZ8X9mU.mjs +92 -0
  262. package/dist/result-CBZ8X9mU.mjs.map +1 -0
  263. package/dist/runtime--RZXG1zP.d.mts +901 -0
  264. package/dist/runtime--RZXG1zP.d.mts.map +1 -0
  265. package/dist/runtime-DYTFHGwh.mjs +516 -0
  266. package/dist/runtime-DYTFHGwh.mjs.map +1 -0
  267. package/dist/runtime-error-BA9d7XjZ-BlT8t6LB.mjs +40 -0
  268. package/dist/runtime-error-BA9d7XjZ-BlT8t6LB.mjs.map +1 -0
  269. package/dist/simplify-deep-Dw9I_ZUl.d.mts +6 -0
  270. package/dist/simplify-deep-Dw9I_ZUl.d.mts.map +1 -0
  271. package/dist/structured-error-BVmv2aPB.d.mts +34 -0
  272. package/dist/structured-error-BVmv2aPB.d.mts.map +1 -0
  273. package/dist/structured-error-H6WU9Kjt.mjs +31 -0
  274. package/dist/structured-error-H6WU9Kjt.mjs.map +1 -0
  275. package/dist/symbol-table-CZ7EVCTL-oYQtrmzq.d.mts +125 -0
  276. package/dist/symbol-table-CZ7EVCTL-oYQtrmzq.d.mts.map +1 -0
  277. package/dist/tokenizer-1hAHZzmp-QGPORvmA.mjs +228 -0
  278. package/dist/tokenizer-1hAHZzmp-QGPORvmA.mjs.map +1 -0
  279. package/dist/tokenizer-DcYI0Xrq-C-nNE9mE.d.mts +16 -0
  280. package/dist/tokenizer-DcYI0Xrq-C-nNE9mE.d.mts.map +1 -0
  281. package/dist/ts-render.d.mts +2 -0
  282. package/dist/ts-render.mjs +240 -0
  283. package/dist/ts-render.mjs.map +1 -0
  284. package/dist/types-ByeQhU9p.d.mts +17 -0
  285. package/dist/types-ByeQhU9p.d.mts.map +1 -0
  286. package/dist/types-DGxlljKG.d.mts +7 -0
  287. package/dist/types-DGxlljKG.d.mts.map +1 -0
  288. package/dist/types-DgdgskBY.mjs +96 -0
  289. package/dist/types-DgdgskBY.mjs.map +1 -0
  290. package/dist/types-import-spec-DRKzrJ20-WYwyCtil.d.mts +14 -0
  291. package/dist/types-import-spec-DRKzrJ20-WYwyCtil.d.mts.map +1 -0
  292. package/dist/utils-DMAM0unR.mjs +20 -0
  293. package/dist/utils-DMAM0unR.mjs.map +1 -0
  294. package/dist/utils-DeWL_zD9.d.mts +11 -0
  295. package/dist/utils-DeWL_zD9.d.mts.map +1 -0
  296. package/dist/utils.d.mts +16 -0
  297. package/dist/utils.mjs +13 -0
  298. package/dist/utils__abortable.d.mts +2 -0
  299. package/dist/utils__abortable.mjs +2 -0
  300. package/dist/utils__array-equal.d.mts +2 -0
  301. package/dist/utils__array-equal.mjs +2 -0
  302. package/dist/utils__assertions.d.mts +2 -0
  303. package/dist/utils__assertions.mjs +2 -0
  304. package/dist/utils__canonical-stringify.d.mts +2 -0
  305. package/dist/utils__canonical-stringify.mjs +2 -0
  306. package/dist/utils__casts.d.mts +2 -0
  307. package/dist/utils__casts.mjs +2 -0
  308. package/dist/utils__defined.d.mts +2 -0
  309. package/dist/utils__defined.mjs +2 -0
  310. package/dist/utils__hash-content.d.mts +2 -0
  311. package/dist/utils__hash-content.mjs +2 -0
  312. package/dist/utils__internal-error.d.mts +2 -0
  313. package/dist/utils__internal-error.mjs +2 -0
  314. package/dist/utils__json.d.mts +2 -0
  315. package/dist/utils__json.mjs +1 -0
  316. package/dist/utils__promise.d.mts +2 -0
  317. package/dist/utils__promise.mjs +2 -0
  318. package/dist/utils__redact-db-url.d.mts +2 -0
  319. package/dist/utils__redact-db-url.mjs +2 -0
  320. package/dist/utils__result.d.mts +2 -0
  321. package/dist/utils__result.mjs +2 -0
  322. package/dist/utils__simplify-deep.d.mts +2 -0
  323. package/dist/utils__simplify-deep.mjs +1 -0
  324. package/dist/utils__structured-error.d.mts +2 -0
  325. package/dist/utils__structured-error.mjs +2 -0
  326. package/dist/utils__types.d.mts +2 -0
  327. package/dist/utils__types.mjs +1 -0
  328. package/dist/validate-domain-BNBs-TVv.d.mts +22 -0
  329. package/dist/validate-domain-BNBs-TVv.d.mts.map +1 -0
  330. package/dist/validate-domain-BkvFlY3B.mjs +143 -0
  331. package/dist/validate-domain-BkvFlY3B.mjs.map +1 -0
  332. package/package.json +109 -0
@@ -0,0 +1,133 @@
1
+ import { t as blindCast } from "./casts-DpaahrlC-Bd5n2coI.mjs";
2
+ import { a as structuredError } from "./structured-error-H6WU9Kjt.mjs";
3
+ import { c as instantiateAuthoringEntityType } from "./framework-authoring-CDEvlouU-mlMWSksD.mjs";
4
+ //#region ../../../1-framework/2-authoring/contract/dist/index.mjs
5
+ /**
6
+ * Deep-merges any number of capability matrices into a single matrix.
7
+ *
8
+ * Merge is purely structural — namespaces and capability flags from later
9
+ * sources overlay earlier ones. Undefined entries are skipped so callers
10
+ * can pass optional sources without pre-filtering.
11
+ *
12
+ * The helper is target-agnostic: it contains no SQL or family-specific
13
+ * knowledge. Higher layers contribute their own capability matrices (for
14
+ * example, a target pack, an extension pack, or the contract author's
15
+ * own `capabilities` block) and call this helper to fold them together.
16
+ */
17
+ function mergeCapabilityMatrices(...sources) {
18
+ const result = {};
19
+ for (const source of sources) {
20
+ if (source === void 0) continue;
21
+ for (const [namespace, capabilities] of Object.entries(source)) {
22
+ const existing = result[namespace];
23
+ result[namespace] = existing ? {
24
+ ...existing,
25
+ ...capabilities
26
+ } : { ...capabilities };
27
+ }
28
+ }
29
+ return result;
30
+ }
31
+ /**
32
+ * Walks an entity-type namespace (after cross-pack merge) and produces the
33
+ * runtime callable surface mirroring its tree shape. Each leaf
34
+ * descriptor becomes a function `(input) => factory(input, ctx)`;
35
+ * nested namespace objects recurse.
36
+ */
37
+ function createEntityHelpersFromNamespace(namespace, options, path = []) {
38
+ const result = {};
39
+ for (const [key, value] of Object.entries(namespace)) {
40
+ const currentPath = [...path, key];
41
+ if (isLeafEntityDescriptor(value)) {
42
+ result[key] = createEntityHelper(currentPath.join("."), value, options);
43
+ continue;
44
+ }
45
+ if (typeof value === "object" && value !== null && !Array.isArray(value)) result[key] = createEntityHelpersFromNamespace(value, options, currentPath);
46
+ }
47
+ return result;
48
+ }
49
+ function isLeafEntityDescriptor(value) {
50
+ if (typeof value !== "object" || value === null || value.kind !== "entity") return false;
51
+ const discriminator = value.discriminator;
52
+ return typeof discriminator === "string" && discriminator.length > 0;
53
+ }
54
+ function createEntityHelper(helperPath, descriptor, options) {
55
+ return (...args) => instantiateAuthoringEntityType(helperPath, descriptor, args, options.ctx);
56
+ }
57
+ function contractError(code, message, options) {
58
+ return structuredError(code, message, options);
59
+ }
60
+ function member(name, value) {
61
+ return {
62
+ name,
63
+ value: blindCast(value === void 0 ? name : value)
64
+ };
65
+ }
66
+ const ENUM_TYPE_HANDLE_BRAND = "__prismaNextEnumTypeHandle__";
67
+ function enumType(name, codec, ...members) {
68
+ if (members.length === 0) throw contractError("CONTRACT.ENUM_INVALID", `enumType("${name}"): must have at least one member.`, { meta: {
69
+ enumName: name,
70
+ reason: "no-members"
71
+ } });
72
+ const seenNames = /* @__PURE__ */ new Set();
73
+ const seenValues = /* @__PURE__ */ new Set();
74
+ for (const m of members) {
75
+ if (seenNames.has(m.name)) throw contractError("CONTRACT.ENUM_INVALID", `enumType("${name}"): duplicate member name "${m.name}". Member names must be unique.`, { meta: {
76
+ enumName: name,
77
+ member: m.name,
78
+ reason: "duplicate-member-name"
79
+ } });
80
+ seenNames.add(m.name);
81
+ const loweredValue = String(m.value);
82
+ if (seenValues.has(loweredValue)) throw contractError("CONTRACT.ENUM_INVALID", `enumType("${name}"): duplicate member value "${loweredValue}". Member values must be unique.`, { meta: {
83
+ enumName: name,
84
+ member: loweredValue,
85
+ reason: "duplicate-member-value"
86
+ } });
87
+ seenValues.add(loweredValue);
88
+ }
89
+ const values = Object.freeze(members.map((m) => m.value));
90
+ const names = Object.freeze(members.map((m) => m.name));
91
+ const enumMembers = Object.freeze(members.map((m) => ({
92
+ name: m.name,
93
+ value: m.value
94
+ })));
95
+ const membersAccessor = Object.freeze(Object.fromEntries(members.map((m) => [m.name, m.value])));
96
+ const valueSet = new Set(values);
97
+ const valueToName = new Map(members.map((m) => [m.value, m.name]));
98
+ const valueToOrdinal = new Map(values.map((v, i) => [v, i]));
99
+ return {
100
+ [ENUM_TYPE_HANDLE_BRAND]: true,
101
+ enumName: name,
102
+ codecId: codec.codecId,
103
+ nativeType: codec.nativeType,
104
+ enumMembers,
105
+ values,
106
+ names,
107
+ members: membersAccessor,
108
+ has: (v) => valueSet.has(v),
109
+ nameOf: (v) => valueToName.get(v),
110
+ ordinalOf: (v) => valueToOrdinal.get(v) ?? -1
111
+ };
112
+ }
113
+ /**
114
+ * Bind `enumType` to a target's codec typemap. The returned function is the
115
+ * same runtime `enumType`, retyped so member values are constrained to the
116
+ * codec's input type. Target packages call this with their pack's
117
+ * `ExtractCodecTypesFromPack<Pack>` to expose a codec-aware `enumType`.
118
+ */
119
+ function bindEnumType() {
120
+ return enumType;
121
+ }
122
+ /**
123
+ * Returns true when the value is an `EnumTypeHandle` produced by
124
+ * `enumType()`. Used in the lowering pipeline to detect enum handles
125
+ * in field state without importing the brand key at every call site.
126
+ */
127
+ function isEnumTypeHandle(value) {
128
+ return typeof value === "object" && value !== null && Reflect.get(value, "__prismaNextEnumTypeHandle__") === true;
129
+ }
130
+ //#endregion
131
+ export { ENUM_TYPE_HANDLE_BRAND, bindEnumType, createEntityHelpersFromNamespace, enumType, isEnumTypeHandle, member, mergeCapabilityMatrices };
132
+
133
+ //# sourceMappingURL=contract-authoring.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract-authoring.mjs","names":[],"sources":["../../../../1-framework/2-authoring/contract/dist/index.mjs"],"sourcesContent":["import { instantiateAuthoringEntityType } from \"@internal/framework-components/authoring\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { structuredError } from \"@internal/utils/structured-error\";\n//#region src/capability-registry.ts\n/**\n* Deep-merges any number of capability matrices into a single matrix.\n*\n* Merge is purely structural — namespaces and capability flags from later\n* sources overlay earlier ones. Undefined entries are skipped so callers\n* can pass optional sources without pre-filtering.\n*\n* The helper is target-agnostic: it contains no SQL or family-specific\n* knowledge. Higher layers contribute their own capability matrices (for\n* example, a target pack, an extension pack, or the contract author's\n* own `capabilities` block) and call this helper to fold them together.\n*/\nfunction mergeCapabilityMatrices(...sources) {\n\tconst result = {};\n\tfor (const source of sources) {\n\t\tif (source === void 0) continue;\n\t\tfor (const [namespace, capabilities] of Object.entries(source)) {\n\t\t\tconst existing = result[namespace];\n\t\t\tresult[namespace] = existing ? {\n\t\t\t\t...existing,\n\t\t\t\t...capabilities\n\t\t\t} : { ...capabilities };\n\t\t}\n\t}\n\treturn result;\n}\n//#endregion\n//#region src/composed-helpers-scaffolding.ts\n/**\n* Walks an entity-type namespace (after cross-pack merge) and produces the\n* runtime callable surface mirroring its tree shape. Each leaf\n* descriptor becomes a function `(input) => factory(input, ctx)`;\n* nested namespace objects recurse.\n*/\nfunction createEntityHelpersFromNamespace(namespace, options, path = []) {\n\tconst result = {};\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isLeafEntityDescriptor(value)) {\n\t\t\tresult[key] = createEntityHelper(currentPath.join(\".\"), value, options);\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof value === \"object\" && value !== null && !Array.isArray(value)) result[key] = createEntityHelpersFromNamespace(value, options, currentPath);\n\t}\n\treturn result;\n}\nfunction isLeafEntityDescriptor(value) {\n\tif (typeof value !== \"object\" || value === null || value.kind !== \"entity\") return false;\n\tconst discriminator = value.discriminator;\n\treturn typeof discriminator === \"string\" && discriminator.length > 0;\n}\nfunction createEntityHelper(helperPath, descriptor, options) {\n\treturn (...args) => instantiateAuthoringEntityType(helperPath, descriptor, args, options.ctx);\n}\n//#endregion\n//#region src/contract-errors.ts\nfunction contractError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\n//#endregion\n//#region src/enum-type.ts\nfunction member(name, value) {\n\treturn {\n\t\tname,\n\t\tvalue: blindCast(value === void 0 ? name : value)\n\t};\n}\nconst ENUM_TYPE_HANDLE_BRAND = \"__prismaNextEnumTypeHandle__\";\nfunction enumType(name, codec, ...members) {\n\tif (members.length === 0) throw contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${name}\"): must have at least one member.`, { meta: {\n\t\tenumName: name,\n\t\treason: \"no-members\"\n\t} });\n\tconst seenNames = /* @__PURE__ */ new Set();\n\tconst seenValues = /* @__PURE__ */ new Set();\n\tfor (const m of members) {\n\t\tif (seenNames.has(m.name)) throw contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${name}\"): duplicate member name \"${m.name}\". Member names must be unique.`, { meta: {\n\t\t\tenumName: name,\n\t\t\tmember: m.name,\n\t\t\treason: \"duplicate-member-name\"\n\t\t} });\n\t\tseenNames.add(m.name);\n\t\tconst loweredValue = String(m.value);\n\t\tif (seenValues.has(loweredValue)) throw contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${name}\"): duplicate member value \"${loweredValue}\". Member values must be unique.`, { meta: {\n\t\t\tenumName: name,\n\t\t\tmember: loweredValue,\n\t\t\treason: \"duplicate-member-value\"\n\t\t} });\n\t\tseenValues.add(loweredValue);\n\t}\n\tconst values = Object.freeze(members.map((m) => m.value));\n\tconst names = Object.freeze(members.map((m) => m.name));\n\tconst enumMembers = Object.freeze(members.map((m) => ({\n\t\tname: m.name,\n\t\tvalue: m.value\n\t})));\n\tconst membersAccessor = Object.freeze(Object.fromEntries(members.map((m) => [m.name, m.value])));\n\tconst valueSet = new Set(values);\n\tconst valueToName = new Map(members.map((m) => [m.value, m.name]));\n\tconst valueToOrdinal = new Map(values.map((v, i) => [v, i]));\n\treturn {\n\t\t[ENUM_TYPE_HANDLE_BRAND]: true,\n\t\tenumName: name,\n\t\tcodecId: codec.codecId,\n\t\tnativeType: codec.nativeType,\n\t\tenumMembers,\n\t\tvalues,\n\t\tnames,\n\t\tmembers: membersAccessor,\n\t\thas: (v) => valueSet.has(v),\n\t\tnameOf: (v) => valueToName.get(v),\n\t\tordinalOf: (v) => valueToOrdinal.get(v) ?? -1\n\t};\n}\n/**\n* Bind `enumType` to a target's codec typemap. The returned function is the\n* same runtime `enumType`, retyped so member values are constrained to the\n* codec's input type. Target packages call this with their pack's\n* `ExtractCodecTypesFromPack<Pack>` to expose a codec-aware `enumType`.\n*/\nfunction bindEnumType() {\n\treturn enumType;\n}\n/**\n* Returns true when the value is an `EnumTypeHandle` produced by\n* `enumType()`. Used in the lowering pipeline to detect enum handles\n* in field state without importing the brand key at every call site.\n*/\nfunction isEnumTypeHandle(value) {\n\treturn typeof value === \"object\" && value !== null && Reflect.get(value, \"__prismaNextEnumTypeHandle__\") === true;\n}\n//#endregion\nexport { ENUM_TYPE_HANDLE_BRAND, bindEnumType, createEntityHelpersFromNamespace, enumType, isEnumTypeHandle, member, mergeCapabilityMatrices };\n\n//# sourceMappingURL=index.mjs.map"],"mappings":";;;;;;;;;;;;;;;;AAgBA,SAAS,wBAAwB,GAAG,SAAS;CAC5C,MAAM,SAAS,CAAC;CAChB,KAAK,MAAM,UAAU,SAAS;EAC7B,IAAI,WAAW,KAAK,GAAG;EACvB,KAAK,MAAM,CAAC,WAAW,iBAAiB,OAAO,QAAQ,MAAM,GAAG;GAC/D,MAAM,WAAW,OAAO;GACxB,OAAO,aAAa,WAAW;IAC9B,GAAG;IACH,GAAG;GACJ,IAAI,EAAE,GAAG,aAAa;EACvB;CACD;CACA,OAAO;AACR;;;;;;;AASA,SAAS,iCAAiC,WAAW,SAAS,OAAO,CAAC,GAAG;CACxE,MAAM,SAAS,CAAC;CAChB,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,SAAS,GAAG;EACrD,MAAM,cAAc,CAAC,GAAG,MAAM,GAAG;EACjC,IAAI,uBAAuB,KAAK,GAAG;GAClC,OAAO,OAAO,mBAAmB,YAAY,KAAK,GAAG,GAAG,OAAO,OAAO;GACtE;EACD;EACA,IAAI,OAAO,UAAU,YAAY,UAAU,QAAQ,CAAC,MAAM,QAAQ,KAAK,GAAG,OAAO,OAAO,iCAAiC,OAAO,SAAS,WAAW;CACrJ;CACA,OAAO;AACR;AACA,SAAS,uBAAuB,OAAO;CACtC,IAAI,OAAO,UAAU,YAAY,UAAU,QAAQ,MAAM,SAAS,UAAU,OAAO;CACnF,MAAM,gBAAgB,MAAM;CAC5B,OAAO,OAAO,kBAAkB,YAAY,cAAc,SAAS;AACpE;AACA,SAAS,mBAAmB,YAAY,YAAY,SAAS;CAC5D,QAAQ,GAAG,SAAS,+BAA+B,YAAY,YAAY,MAAM,QAAQ,GAAG;AAC7F;AAGA,SAAS,cAAc,MAAM,SAAS,SAAS;CAC9C,OAAO,gBAAgB,MAAM,SAAS,OAAO;AAC9C;AAGA,SAAS,OAAO,MAAM,OAAO;CAC5B,OAAO;EACN;EACA,OAAO,UAAU,UAAU,KAAK,IAAI,OAAO,KAAK;CACjD;AACD;AACA,MAAM,yBAAyB;AAC/B,SAAS,SAAS,MAAM,OAAO,GAAG,SAAS;CAC1C,IAAI,QAAQ,WAAW,GAAG,MAAM,cAAc,yBAAyB,aAAa,KAAK,qCAAqC,EAAE,MAAM;EACrI,UAAU;EACV,QAAQ;CACT,EAAE,CAAC;CACH,MAAM,4BAA4B,IAAI,IAAI;CAC1C,MAAM,6BAA6B,IAAI,IAAI;CAC3C,KAAK,MAAM,KAAK,SAAS;EACxB,IAAI,UAAU,IAAI,EAAE,IAAI,GAAG,MAAM,cAAc,yBAAyB,aAAa,KAAK,6BAA6B,EAAE,KAAK,kCAAkC,EAAE,MAAM;GACvK,UAAU;GACV,QAAQ,EAAE;GACV,QAAQ;EACT,EAAE,CAAC;EACH,UAAU,IAAI,EAAE,IAAI;EACpB,MAAM,eAAe,OAAO,EAAE,KAAK;EACnC,IAAI,WAAW,IAAI,YAAY,GAAG,MAAM,cAAc,yBAAyB,aAAa,KAAK,8BAA8B,aAAa,mCAAmC,EAAE,MAAM;GACtL,UAAU;GACV,QAAQ;GACR,QAAQ;EACT,EAAE,CAAC;EACH,WAAW,IAAI,YAAY;CAC5B;CACA,MAAM,SAAS,OAAO,OAAO,QAAQ,KAAK,MAAM,EAAE,KAAK,CAAC;CACxD,MAAM,QAAQ,OAAO,OAAO,QAAQ,KAAK,MAAM,EAAE,IAAI,CAAC;CACtD,MAAM,cAAc,OAAO,OAAO,QAAQ,KAAK,OAAO;EACrD,MAAM,EAAE;EACR,OAAO,EAAE;CACV,EAAE,CAAC;CACH,MAAM,kBAAkB,OAAO,OAAO,OAAO,YAAY,QAAQ,KAAK,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;CAC/F,MAAM,WAAW,IAAI,IAAI,MAAM;CAC/B,MAAM,cAAc,IAAI,IAAI,QAAQ,KAAK,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;CACjE,MAAM,iBAAiB,IAAI,IAAI,OAAO,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;CAC3D,OAAO;GACL,yBAAyB;EAC1B,UAAU;EACV,SAAS,MAAM;EACf,YAAY,MAAM;EAClB;EACA;EACA;EACA,SAAS;EACT,MAAM,MAAM,SAAS,IAAI,CAAC;EAC1B,SAAS,MAAM,YAAY,IAAI,CAAC;EAChC,YAAY,MAAM,eAAe,IAAI,CAAC,KAAK;CAC5C;AACD;;;;;;;AAOA,SAAS,eAAe;CACvB,OAAO;AACR;;;;;;AAMA,SAAS,iBAAiB,OAAO;CAChC,OAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,QAAQ,IAAI,OAAO,8BAA8B,MAAM;AAC9G"}
@@ -0,0 +1,77 @@
1
+ import { A as ExecutionHashBase, J as StorageBase, S as ContractValueObject, T as CrossReference, W as ProfileHashBase, j as ExecutionMutationDefault, n as ApplicationDomain } from "./domain-envelope-D6Wn9AmZ-BqZKTT9U.mjs";
2
+ //#region ../../../1-framework/0-foundation/contract/dist/contract-types-CkdMH7F7.d.mts
3
+ //#region src/control-policy.d.ts
4
+ /**
5
+ * Governance posture for a storage-plane node or for the contract as a whole.
6
+ *
7
+ * - `managed` — Prisma Next owns the full lifecycle (DDL, migrations, verification).
8
+ * - `tolerated` — node was found in the database but is not schema-managed; Prisma Next
9
+ * leaves it untouched while tracking its existence.
10
+ * - `external` — node is owned by an external system; Prisma Next never emits DDL for it.
11
+ * - `observed` — read-only access; Prisma Next does not write to or migrate the node.
12
+ */
13
+ type ControlPolicy = 'managed' | 'tolerated' | 'external' | 'observed';
14
+ /**
15
+ * Resolves the effective control policy for a storage-plane node.
16
+ *
17
+ * Precedence: node-level value → contract default → `'managed'`.
18
+ *
19
+ * Both parameters are optional raw values so this function stays node-type-agnostic
20
+ * and can be called by any consumer (verifier, planner, etc.) without importing IR classes.
21
+ */
22
+ declare function effectiveControlPolicy(nodeControl: ControlPolicy | undefined, defaultControlPolicy: ControlPolicy | undefined): ControlPolicy;
23
+ //#endregion
24
+ //#region src/contract-types.d.ts
25
+ /**
26
+ * Execution section for the unified contract (ADR 182).
27
+ *
28
+ * Unlike the legacy {@link import('./types').ExecutionSection}, this type
29
+ * requires `executionHash` — when an execution section is present, its
30
+ * hash must be too (consistent with `StorageBase.storageHash`).
31
+ *
32
+ * @template THash Literal hash string type for type-safe hash tracking.
33
+ */
34
+ type ContractExecutionSection<THash extends string = string> = {
35
+ readonly executionHash: ExecutionHashBase<THash>;
36
+ readonly mutations: {
37
+ readonly defaults: ReadonlyArray<ExecutionMutationDefault>;
38
+ };
39
+ };
40
+ /**
41
+ * Unified contract representation (ADR 182).
42
+ *
43
+ * A `Contract` is the canonical in-memory representation of a data contract.
44
+ * It is model-first (domain models carry their own storage bridge) and
45
+ * family-parameterized (SQL, Mongo, etc. specialize via `TStorage` and model
46
+ * storage generics on `ContractModel`).
47
+ *
48
+ * JSON persistence fields (`schemaVersion`, `sources`) are not represented
49
+ * here — they are handled at the serialization boundary.
50
+ *
51
+ * @template TStorage Family-specific storage block (extends {@link StorageBase}).
52
+ */
53
+ interface Contract<TStorage extends StorageBase = StorageBase> {
54
+ readonly target: string;
55
+ readonly targetFamily: string;
56
+ readonly roots: Record<string, CrossReference>;
57
+ /**
58
+ * Application plane (ADR 221): `domain.namespaces.<nsId>.{ models, valueObjects }`.
59
+ */
60
+ readonly domain: ApplicationDomain;
61
+ readonly storage: TStorage;
62
+ readonly capabilities: Record<string, Record<string, boolean>>;
63
+ readonly extensions: Record<string, unknown>;
64
+ readonly execution?: ContractExecutionSection;
65
+ readonly profileHash: ProfileHashBase<string>;
66
+ readonly meta: Record<string, unknown>;
67
+ readonly defaultControlPolicy?: ControlPolicy;
68
+ }
69
+ type ExactlyOneNamespace<T extends Record<string, unknown>> = keyof T extends (infer Only extends keyof T) ? [keyof T] extends [Only] ? Only : never : never;
70
+ type NamespaceValueObjectsOf<TNamespace> = TNamespace extends {
71
+ readonly valueObjects?: infer VO;
72
+ } ? VO extends Record<string, ContractValueObject> ? VO : Record<never, never> : Record<never, never>;
73
+ /** Value-object map when the contract declares exactly one domain namespace. */
74
+ type ContractValueObjectDefinitions<TContract extends Contract> = NamespaceValueObjectsOf<TContract['domain']['namespaces'][ExactlyOneNamespace<TContract['domain']['namespaces']>]> extends (infer Projected) ? Projected extends Record<string, ContractValueObject> ? Projected : Record<never, never> : Record<never, never>;
75
+ //#endregion
76
+ export { effectiveControlPolicy as a, ControlPolicy as i, ContractExecutionSection as n, ContractValueObjectDefinitions as r, Contract as t };
77
+ //# sourceMappingURL=contract-types-CkdMH7F7-9EHXSwbH.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract-types-CkdMH7F7-9EHXSwbH.d.mts","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/contract-types-CkdMH7F7.d.mts"],"mappings":";;;;;;;;;;;;KAWK;;;;;;;;;iBASY,uBAAuB,aAAa,2BAA2B,sBAAsB,4BAA4B;;;;;;;;;;;;KAY7H,yBAAyB;WACnB,eAAe,kBAAkB;WACjC;aACE,UAAU,cAAc;;;;;;;;;;;;;;;;UAgB3B,SAAS,iBAAiB,cAAc;WACvC;WACA;WACA,OAAO,eAAe;;;;WAItB,QAAQ;WACR,SAAS;WACT,cAAc,eAAe;WAC7B,YAAY;WACZ,YAAY;WACZ,aAAa;WACb,MAAM;WACN,uBAAuB;;KAE7B,oBAAoB,UAAU,iCAAiC,iBAAiB,mBAAmB,YAAY,YAAY,QAAQ;KACnI,wBAAwB,cAAc;WAChC,qBAAqB;IAC5B,WAAW,eAAe,uBAAuB,KAAK,uBAAuB;;KAE5E,+BAA+B,kBAAkB,YAAY,wBAAwB,kCAAkC,oBAAoB,oDAAoD,aAAa,kBAAkB,eAAe,uBAAuB,YAAY,uBAAuB"}
@@ -0,0 +1,14 @@
1
+ //#region ../../../1-framework/0-foundation/contract/dist/contract-validation-error-DEiWp_EI.mjs
2
+ var ContractValidationError = class extends Error {
3
+ code = "CONTRACT.VALIDATION_FAILED";
4
+ phase;
5
+ constructor(message, phase) {
6
+ super(message);
7
+ this.name = "ContractValidationError";
8
+ this.phase = phase;
9
+ }
10
+ };
11
+ //#endregion
12
+ export { ContractValidationError as t };
13
+
14
+ //# sourceMappingURL=contract-validation-error-DEiWp_EI-CRwtUgRw.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract-validation-error-DEiWp_EI-CRwtUgRw.mjs","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/contract-validation-error-DEiWp_EI.mjs"],"sourcesContent":["//#region src/contract-validation-error.ts\nvar ContractValidationError = class extends Error {\n\tcode = \"CONTRACT.VALIDATION_FAILED\";\n\tphase;\n\tconstructor(message, phase) {\n\t\tsuper(message);\n\t\tthis.name = \"ContractValidationError\";\n\t\tthis.phase = phase;\n\t}\n};\n//#endregion\nexport { ContractValidationError as t };\n\n//# sourceMappingURL=contract-validation-error-DEiWp_EI.mjs.map"],"mappings":";AACA,IAAI,0BAA0B,cAAc,MAAM;CACjD,OAAO;CACP;CACA,YAAY,SAAS,OAAO;EAC3B,MAAM,OAAO;EACb,KAAK,OAAO;EACZ,KAAK,QAAQ;CACd;AACD"}
@@ -0,0 +1,11 @@
1
+ //#region ../../../1-framework/0-foundation/contract/dist/contract-validation-error.d.mts
2
+ //#region src/contract-validation-error.d.ts
3
+ type ContractValidationPhase = 'structural' | 'domain' | 'storage';
4
+ declare class ContractValidationError extends Error {
5
+ readonly code = "CONTRACT.VALIDATION_FAILED";
6
+ readonly phase: ContractValidationPhase;
7
+ constructor(message: string, phase: ContractValidationPhase);
8
+ }
9
+ //#endregion
10
+ export { ContractValidationPhase as n, ContractValidationError as t };
11
+ //# sourceMappingURL=contract-validation-error-R7cMoK04.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract-validation-error-R7cMoK04.d.mts","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/contract-validation-error.d.mts"],"mappings":";;KACK;cACS,gCAAgC;WACnC;WACA,OAAO;EAChB,YAAY,iBAAiB,OAAO"}
@@ -0,0 +1,14 @@
1
+ import { $ as ValueObjectFieldType, A as ExecutionHashBase, B as LedgerEntryRecord, C as ContractVariantEntry, D as DocCollection, E as CrossReferenceSchema, F as Expr, G as ReferenceRelationKeys, H as NamespaceId, I as FieldType, J as StorageBase, K as ScalarFieldType, L as GeneratedValueSpec, M as ExecutionMutationDefaultPhases, N as ExecutionMutationDefaultValue, O as DocIndex, P as ExecutionSection, Q as UnionFieldType, R as JsonPrimitive, S as ContractValueObject, T as CrossReference, U as PlanMeta, V as ModelStorageBase, W as ProfileHashBase, X as StorageHashBase, Y as StorageEntitySlot, Z as StorageNamespace, _ as ContractNonJunctionRelation, a as ColumnDefault, at as isColumnDefault, b as ContractRelationOn, c as ContractDiscriminator, ct as profileHash, d as ContractField, et as ValueSetRef, f as ContractFieldType, g as ContractModelBase, h as ContractModel, i as Brand, it as executionHash, j as ExecutionMutationDefault, k as EmbedRelationKeys, l as ContractEmbedRelation, m as ContractMarkerRecord, n as ApplicationDomain, nt as coreHash, o as ColumnDefaultLiteralInputValue, ot as isColumnDefaultLiteralInputValue, p as ContractManyToManyRelation, q as Source, r as ApplicationDomainNamespace, rt as crossRef, s as ColumnDefaultLiteralValue, st as isExecutionMutationDefaultValue, t as $, tt as asNamespaceId, u as ContractEnum, v as ContractReferenceRelation, w as ContractWithDomain, x as ContractRelationThrough, y as ContractRelation, z as JsonValue } from "./domain-envelope-D6Wn9AmZ-BqZKTT9U.mjs";
2
+ import { a as effectiveControlPolicy, i as ControlPolicy, n as ContractExecutionSection, r as ContractValueObjectDefinitions, t as Contract } from "./contract-types-CkdMH7F7-9EHXSwbH.mjs";
3
+ import { n as soleDomainNamespaceId, t as UNBOUND_DOMAIN_NAMESPACE_ID } from "./default-namespace-D5X_k6hJ-GH8P1ror.mjs";
4
+ import { n as resolveDomainModel, t as ResolvedDomainModel } from "./resolve-domain-model-BVSb5wS5-C6Yq0dsD.mjs";
5
+ import { n as domainValueObjectsAtDefaultNamespace, t as domainModelsAtDefaultNamespace } from "./types-ByeQhU9p.mjs";
6
+ import { a as canonicalizeContract, i as StorageSort, n as PreserveEmptyPredicate, o as canonicalizeContractToObject, r as SerializeContract, t as CanonicalizeContractOptions } from "./canonicalization-DFpB09nP-4OdB2nsy.mjs";
7
+ import { n as computeProfileHash, r as computeStorageHash, t as computeExecutionHash } from "./hashing-CccSPELN.mjs";
8
+ import { t as isPlainRecord } from "./is-plain-record-C9BWiqcw.mjs";
9
+ import { t as applySpecifierDefaultControlPolicy } from "./apply-specifier-default-control-policy-CAxiXxKg.mjs";
10
+ import { n as ContractValidationPhase, t as ContractValidationError } from "./contract-validation-error-R7cMoK04.mjs";
11
+ import { a as EnumValues, c as buildEnumsMapForNamespace, i as EnumMemberNames, l as buildNamespacedEnums, n as EnumAccessor, o as NamespaceEnumAccessors, r as EnumEntriesToAccessors, s as NamespacedEnums, t as ContractEnumAccessor, u as createEnumAccessor } from "./enum-accessor-PH5vjghI.mjs";
12
+ import { a as compareByNameProperty, c as matchesPathPattern, i as PathSegment$1, n as PathPattern, o as createPreserveEmptyPredicate, r as PathSegment, s as createStorageSort, t as NamedArraySortTarget } from "./hashing-utils-qKu59RSC.mjs";
13
+ import { n as DomainModelShape, r as validateContractDomain, t as DomainContractShape } from "./validate-domain-BNBs-TVv.mjs";
14
+ export { type $, type ApplicationDomain, type ApplicationDomainNamespace, type Brand, type CanonicalizeContractOptions, type ColumnDefault, type ColumnDefaultLiteralInputValue, type ColumnDefaultLiteralValue, type Contract, type ContractDiscriminator, type ContractEmbedRelation, type ContractEnum, type ContractEnumAccessor, type ContractExecutionSection, type ContractField, type ContractFieldType, type ContractManyToManyRelation, type ContractMarkerRecord, type ContractModel, type ContractModelBase, type ContractNonJunctionRelation, type ContractReferenceRelation, type ContractRelation, type ContractRelationOn, type ContractRelationThrough, ContractValidationError, type ContractValidationPhase, type ContractValueObject, type ContractValueObjectDefinitions, type ContractVariantEntry, type ContractWithDomain, type ControlPolicy, type CrossReference, CrossReferenceSchema, type DocCollection, type DocIndex, type DomainContractShape, type DomainModelShape, type EmbedRelationKeys, type EnumAccessor, type EnumEntriesToAccessors, type EnumMemberNames, type EnumValues, type ExecutionHashBase, type ExecutionMutationDefault, type ExecutionMutationDefaultPhases, type ExecutionMutationDefaultValue, type ExecutionSection, type Expr, type FieldType, type GeneratedValueSpec, type JsonPrimitive, type JsonValue, type LedgerEntryRecord, type ModelStorageBase, type NamedArraySortTarget, type NamespaceEnumAccessors, type NamespaceId, type NamespacedEnums, type PathPattern, type PlanMeta, type PathSegment as PreserveEmptyPathSegment, type PreserveEmptyPredicate, type ProfileHashBase, type ReferenceRelationKeys, type ResolvedDomainModel, type ScalarFieldType, type SerializeContract, type Source, type StorageBase, type StorageEntitySlot, type StorageHashBase, type StorageNamespace, type StorageSort, type PathSegment$1 as StorageSortPathSegment, UNBOUND_DOMAIN_NAMESPACE_ID, type UnionFieldType, type ValueObjectFieldType, type ValueSetRef, applySpecifierDefaultControlPolicy, asNamespaceId, buildEnumsMapForNamespace, buildNamespacedEnums, canonicalizeContract, canonicalizeContractToObject, compareByNameProperty, computeExecutionHash, computeProfileHash, computeStorageHash, coreHash, createEnumAccessor, createPreserveEmptyPredicate, createStorageSort, crossRef, domainModelsAtDefaultNamespace, domainValueObjectsAtDefaultNamespace, effectiveControlPolicy, executionHash, isColumnDefault, isColumnDefaultLiteralInputValue, isExecutionMutationDefaultValue, isPlainRecord, matchesPathPattern, profileHash, resolveDomainModel, soleDomainNamespaceId, validateContractDomain };
@@ -0,0 +1,13 @@
1
+ import { t as applySpecifierDefaultControlPolicy } from "./apply-specifier-default-control-policy-CsYHsfTF.mjs";
2
+ import { t as ContractValidationError } from "./contract-validation-error-DEiWp_EI-CRwtUgRw.mjs";
3
+ import { r as soleDomainNamespaceId, t as UNBOUND_DOMAIN_NAMESPACE_ID } from "./default-namespace-D4vCwkXg-BaiW8LNK.mjs";
4
+ import { n as buildNamespacedEnums, r as createEnumAccessor, t as buildEnumsMapForNamespace } from "./enum-accessor-Db5DaTNX.mjs";
5
+ import { n as matchesPathPattern, t as createPreserveEmptyPredicate } from "./canonicalization-path-match-CNgHuwM_-CCPBeUuk.mjs";
6
+ import { t as isPlainRecord } from "./is-plain-record-CUofyVQ7-DWEzdhIx.mjs";
7
+ import { a as computeStorageHash, i as computeProfileHash, n as canonicalizeContractToObject, r as computeExecutionHash, t as canonicalizeContract } from "./hashing-BtIZVNYX.mjs";
8
+ import { n as createStorageSort, t as compareByNameProperty } from "./hashing-utils-DQgS3nOe.mjs";
9
+ import { t as resolveDomainModel } from "./resolve-domain-model-BovPAsW2-8rwyzjxp.mjs";
10
+ import { t as asNamespaceId } from "./namespace-id-asbWpwMw-3yxn-tRe.mjs";
11
+ import { a as domainValueObjectsAtDefaultNamespace, c as isColumnDefault, d as profileHash, i as domainModelsAtDefaultNamespace, l as isColumnDefaultLiteralInputValue, n as coreHash, o as effectiveControlPolicy, r as crossRef, s as executionHash, t as CrossReferenceSchema, u as isExecutionMutationDefaultValue } from "./types-DgdgskBY.mjs";
12
+ import { t as validateContractDomain } from "./validate-domain-BkvFlY3B.mjs";
13
+ export { ContractValidationError, CrossReferenceSchema, UNBOUND_DOMAIN_NAMESPACE_ID, applySpecifierDefaultControlPolicy, asNamespaceId, buildEnumsMapForNamespace, buildNamespacedEnums, canonicalizeContract, canonicalizeContractToObject, compareByNameProperty, computeExecutionHash, computeProfileHash, computeStorageHash, coreHash, createEnumAccessor, createPreserveEmptyPredicate, createStorageSort, crossRef, domainModelsAtDefaultNamespace, domainValueObjectsAtDefaultNamespace, effectiveControlPolicy, executionHash, isColumnDefault, isColumnDefaultLiteralInputValue, isExecutionMutationDefaultValue, isPlainRecord, matchesPathPattern, profileHash, resolveDomainModel, soleDomainNamespaceId, validateContractDomain };
@@ -0,0 +1,2 @@
1
+ import { t as applySpecifierDefaultControlPolicy } from "./apply-specifier-default-control-policy-CAxiXxKg.mjs";
2
+ export { applySpecifierDefaultControlPolicy };
@@ -0,0 +1,2 @@
1
+ import { t as applySpecifierDefaultControlPolicy } from "./apply-specifier-default-control-policy-CsYHsfTF.mjs";
2
+ export { applySpecifierDefaultControlPolicy };
@@ -0,0 +1,2 @@
1
+ import { n as ContractValidationPhase, t as ContractValidationError } from "./contract-validation-error-R7cMoK04.mjs";
2
+ export { ContractValidationError, type ContractValidationPhase };
@@ -0,0 +1,2 @@
1
+ import { t as ContractValidationError } from "./contract-validation-error-DEiWp_EI-CRwtUgRw.mjs";
2
+ export { ContractValidationError };
@@ -0,0 +1,2 @@
1
+ import { n as soleDomainNamespaceId, t as UNBOUND_DOMAIN_NAMESPACE_ID } from "./default-namespace-D5X_k6hJ-GH8P1ror.mjs";
2
+ export { UNBOUND_DOMAIN_NAMESPACE_ID, soleDomainNamespaceId };
@@ -0,0 +1,2 @@
1
+ import { r as soleDomainNamespaceId, t as UNBOUND_DOMAIN_NAMESPACE_ID } from "./default-namespace-D4vCwkXg-BaiW8LNK.mjs";
2
+ export { UNBOUND_DOMAIN_NAMESPACE_ID, soleDomainNamespaceId };
@@ -0,0 +1,2 @@
1
+ import { a as EnumValues, c as buildEnumsMapForNamespace, i as EnumMemberNames, l as buildNamespacedEnums, n as EnumAccessor, o as NamespaceEnumAccessors, r as EnumEntriesToAccessors, s as NamespacedEnums, t as ContractEnumAccessor, u as createEnumAccessor } from "./enum-accessor-PH5vjghI.mjs";
2
+ export { type ContractEnumAccessor, type EnumAccessor, type EnumEntriesToAccessors, type EnumMemberNames, type EnumValues, type NamespaceEnumAccessors, type NamespacedEnums, buildEnumsMapForNamespace, buildNamespacedEnums, createEnumAccessor };
@@ -0,0 +1,2 @@
1
+ import { n as buildNamespacedEnums, r as createEnumAccessor, t as buildEnumsMapForNamespace } from "./enum-accessor-Db5DaTNX.mjs";
2
+ export { buildEnumsMapForNamespace, buildNamespacedEnums, createEnumAccessor };
@@ -0,0 +1,2 @@
1
+ import { a as compareByNameProperty, c as matchesPathPattern, i as PathSegment$1, n as PathPattern, o as createPreserveEmptyPredicate, r as PathSegment, s as createStorageSort, t as NamedArraySortTarget } from "./hashing-utils-qKu59RSC.mjs";
2
+ export { type NamedArraySortTarget, type PathPattern, type PathSegment as PreserveEmptyPathSegment, type PathSegment$1 as StorageSortPathSegment, compareByNameProperty, createPreserveEmptyPredicate, createStorageSort, matchesPathPattern };
@@ -0,0 +1,3 @@
1
+ import { n as matchesPathPattern, t as createPreserveEmptyPredicate } from "./canonicalization-path-match-CNgHuwM_-CCPBeUuk.mjs";
2
+ import { n as createStorageSort, t as compareByNameProperty } from "./hashing-utils-DQgS3nOe.mjs";
3
+ export { compareByNameProperty, createPreserveEmptyPredicate, createStorageSort, matchesPathPattern };
@@ -0,0 +1,3 @@
1
+ import { a as canonicalizeContract, i as StorageSort, n as PreserveEmptyPredicate, o as canonicalizeContractToObject, r as SerializeContract, t as CanonicalizeContractOptions } from "./canonicalization-DFpB09nP-4OdB2nsy.mjs";
2
+ import { n as computeProfileHash, r as computeStorageHash, t as computeExecutionHash } from "./hashing-CccSPELN.mjs";
3
+ export { type CanonicalizeContractOptions, type PreserveEmptyPredicate, type SerializeContract, type StorageSort, canonicalizeContract, canonicalizeContractToObject, computeExecutionHash, computeProfileHash, computeStorageHash };
@@ -0,0 +1,2 @@
1
+ import { a as computeStorageHash, i as computeProfileHash, n as canonicalizeContractToObject, r as computeExecutionHash, t as canonicalizeContract } from "./hashing-BtIZVNYX.mjs";
2
+ export { canonicalizeContract, canonicalizeContractToObject, computeExecutionHash, computeProfileHash, computeStorageHash };
@@ -0,0 +1,2 @@
1
+ import { t as isPlainRecord } from "./is-plain-record-C9BWiqcw.mjs";
2
+ export { isPlainRecord };
@@ -0,0 +1,2 @@
1
+ import { t as isPlainRecord } from "./is-plain-record-CUofyVQ7-DWEzdhIx.mjs";
2
+ export { isPlainRecord };
@@ -0,0 +1,2 @@
1
+ import { n as resolveDomainModel, t as ResolvedDomainModel } from "./resolve-domain-model-BVSb5wS5-C6Yq0dsD.mjs";
2
+ export { type ResolvedDomainModel, resolveDomainModel };
@@ -0,0 +1,2 @@
1
+ import { t as resolveDomainModel } from "./resolve-domain-model-BovPAsW2-8rwyzjxp.mjs";
2
+ export { resolveDomainModel };
@@ -0,0 +1,6 @@
1
+ import { $ as ValueObjectFieldType, A as ExecutionHashBase, B as LedgerEntryRecord, C as ContractVariantEntry, D as DocCollection, E as CrossReferenceSchema, F as Expr, G as ReferenceRelationKeys, H as NamespaceId, I as FieldType, J as StorageBase, K as ScalarFieldType, L as GeneratedValueSpec, M as ExecutionMutationDefaultPhases, N as ExecutionMutationDefaultValue, O as DocIndex, P as ExecutionSection, Q as UnionFieldType, R as JsonPrimitive, S as ContractValueObject, T as CrossReference, U as PlanMeta, V as ModelStorageBase, W as ProfileHashBase, X as StorageHashBase, Y as StorageEntitySlot, Z as StorageNamespace, _ as ContractNonJunctionRelation, a as ColumnDefault, at as isColumnDefault, b as ContractRelationOn, c as ContractDiscriminator, ct as profileHash, d as ContractField, et as ValueSetRef, f as ContractFieldType, g as ContractModelBase, h as ContractModel, i as Brand, it as executionHash, j as ExecutionMutationDefault, k as EmbedRelationKeys, l as ContractEmbedRelation, m as ContractMarkerRecord, n as ApplicationDomain, nt as coreHash, o as ColumnDefaultLiteralInputValue, ot as isColumnDefaultLiteralInputValue, p as ContractManyToManyRelation, q as Source, r as ApplicationDomainNamespace, rt as crossRef, s as ColumnDefaultLiteralValue, st as isExecutionMutationDefaultValue, t as $, tt as asNamespaceId, u as ContractEnum, v as ContractReferenceRelation, w as ContractWithDomain, x as ContractRelationThrough, y as ContractRelation, z as JsonValue } from "./domain-envelope-D6Wn9AmZ-BqZKTT9U.mjs";
2
+ import { a as effectiveControlPolicy, i as ControlPolicy, n as ContractExecutionSection, r as ContractValueObjectDefinitions, t as Contract } from "./contract-types-CkdMH7F7-9EHXSwbH.mjs";
3
+ import { n as soleDomainNamespaceId, t as UNBOUND_DOMAIN_NAMESPACE_ID } from "./default-namespace-D5X_k6hJ-GH8P1ror.mjs";
4
+ import { n as resolveDomainModel, t as ResolvedDomainModel } from "./resolve-domain-model-BVSb5wS5-C6Yq0dsD.mjs";
5
+ import { n as domainValueObjectsAtDefaultNamespace, t as domainModelsAtDefaultNamespace } from "./types-ByeQhU9p.mjs";
6
+ export { type $, type ApplicationDomain, type ApplicationDomainNamespace, type Brand, type ColumnDefault, type ColumnDefaultLiteralInputValue, type ColumnDefaultLiteralValue, type Contract, type ContractDiscriminator, type ContractEmbedRelation, type ContractEnum, type ContractExecutionSection, type ContractField, type ContractFieldType, type ContractManyToManyRelation, type ContractMarkerRecord, type ContractModel, type ContractModelBase, type ContractNonJunctionRelation, type ContractReferenceRelation, type ContractRelation, type ContractRelationOn, type ContractRelationThrough, type ContractValueObject, type ContractValueObjectDefinitions, type ContractVariantEntry, type ContractWithDomain, type ControlPolicy, type CrossReference, CrossReferenceSchema, type DocCollection, type DocIndex, type EmbedRelationKeys, type ExecutionHashBase, type ExecutionMutationDefault, type ExecutionMutationDefaultPhases, type ExecutionMutationDefaultValue, type ExecutionSection, type Expr, type FieldType, type GeneratedValueSpec, type JsonPrimitive, type JsonValue, type LedgerEntryRecord, type ModelStorageBase, type NamespaceId, type PlanMeta, type ProfileHashBase, type ReferenceRelationKeys, type ResolvedDomainModel, type ScalarFieldType, type Source, type StorageBase, type StorageEntitySlot, type StorageHashBase, type StorageNamespace, UNBOUND_DOMAIN_NAMESPACE_ID, type UnionFieldType, type ValueObjectFieldType, type ValueSetRef, asNamespaceId, coreHash, crossRef, domainModelsAtDefaultNamespace, domainValueObjectsAtDefaultNamespace, effectiveControlPolicy, executionHash, isColumnDefault, isColumnDefaultLiteralInputValue, isExecutionMutationDefaultValue, profileHash, resolveDomainModel, soleDomainNamespaceId };
@@ -0,0 +1,5 @@
1
+ import { r as soleDomainNamespaceId, t as UNBOUND_DOMAIN_NAMESPACE_ID } from "./default-namespace-D4vCwkXg-BaiW8LNK.mjs";
2
+ import { t as resolveDomainModel } from "./resolve-domain-model-BovPAsW2-8rwyzjxp.mjs";
3
+ import { t as asNamespaceId } from "./namespace-id-asbWpwMw-3yxn-tRe.mjs";
4
+ import { a as domainValueObjectsAtDefaultNamespace, c as isColumnDefault, d as profileHash, i as domainModelsAtDefaultNamespace, l as isColumnDefaultLiteralInputValue, n as coreHash, o as effectiveControlPolicy, r as crossRef, s as executionHash, t as CrossReferenceSchema, u as isExecutionMutationDefaultValue } from "./types-DgdgskBY.mjs";
5
+ export { CrossReferenceSchema, UNBOUND_DOMAIN_NAMESPACE_ID, asNamespaceId, coreHash, crossRef, domainModelsAtDefaultNamespace, domainValueObjectsAtDefaultNamespace, effectiveControlPolicy, executionHash, isColumnDefault, isColumnDefaultLiteralInputValue, isExecutionMutationDefaultValue, profileHash, resolveDomainModel, soleDomainNamespaceId };
@@ -0,0 +1,2 @@
1
+ import { n as DomainModelShape, r as validateContractDomain, t as DomainContractShape } from "./validate-domain-BNBs-TVv.mjs";
2
+ export { type DomainContractShape, type DomainModelShape, validateContractDomain };
@@ -0,0 +1,2 @@
1
+ import { t as validateContractDomain } from "./validate-domain-BkvFlY3B.mjs";
2
+ export { validateContractDomain };
@@ -0,0 +1,213 @@
1
+ import { r as StructuredError } from "./structured-error-BVmv2aPB.mjs";
2
+ //#region ../../../1-framework/1-core/errors/dist/control-B87KWI_K.d.mts
3
+ //#region src/control.d.ts
4
+ /**
5
+ * CLI error envelope for output formatting.
6
+ * This is the serialized form of a CliStructuredError.
7
+ */
8
+ interface CliErrorEnvelope {
9
+ readonly ok: false;
10
+ readonly code: string;
11
+ readonly severity: 'error' | 'warn' | 'info';
12
+ readonly summary: string;
13
+ readonly why?: string;
14
+ readonly fix?: string;
15
+ readonly where?: {
16
+ readonly path?: string;
17
+ readonly line?: number;
18
+ };
19
+ readonly meta?: Record<string, unknown>;
20
+ readonly docsUrl?: string;
21
+ }
22
+ /**
23
+ * Minimal conflict data structure expected by CLI output.
24
+ */
25
+ interface CliErrorConflict {
26
+ readonly kind: string;
27
+ readonly summary: string;
28
+ readonly why?: string;
29
+ }
30
+ /**
31
+ * Structured CLI error that contains all information needed for error envelopes.
32
+ * Call sites throw these errors with full context.
33
+ *
34
+ * A `CliStructuredError` is a `StructuredError` (see
35
+ * `@internal/utils/structured-error`): `code` is a dotted
36
+ * `NAMESPACE.SUBCODE` string, and the namespace prefix is the error's
37
+ * category — there is no separate `domain` field. See
38
+ * [ADR 239](../../../../../docs/architecture%20docs/adrs/ADR%20239%20-%20Errors%20are%20structural%20envelopes%20with%20dotted%20namespace%20codes.md)
39
+ * for the namespace taxonomy.
40
+ */
41
+ declare class CliStructuredError extends Error implements StructuredError {
42
+ readonly code: `${string}.${string}`;
43
+ readonly severity: 'error' | 'warn' | 'info';
44
+ readonly why?: string;
45
+ readonly fix?: string;
46
+ readonly where?: {
47
+ readonly path?: string;
48
+ readonly line?: number;
49
+ };
50
+ readonly meta?: Record<string, unknown>;
51
+ readonly docsUrl?: string;
52
+ constructor(code: `${string}.${string}`, summary: string, options?: {
53
+ readonly severity?: 'error' | 'warn' | 'info';
54
+ readonly why?: string;
55
+ readonly fix?: string;
56
+ readonly where?: {
57
+ readonly path?: string;
58
+ readonly line?: number;
59
+ };
60
+ readonly meta?: Record<string, unknown>;
61
+ readonly docsUrl?: string;
62
+ });
63
+ /**
64
+ * Converts this error to a CLI error envelope for output formatting.
65
+ */
66
+ toEnvelope(): CliErrorEnvelope;
67
+ /**
68
+ * Type guard to check if an error is a CliStructuredError.
69
+ * Uses duck-typing to work across module boundaries where instanceof may fail.
70
+ */
71
+ static is(error: unknown): error is CliStructuredError;
72
+ }
73
+ /**
74
+ * Config file not found or missing.
75
+ */
76
+ declare function errorConfigFileNotFound(configPath?: string, options?: {
77
+ readonly why?: string;
78
+ }): CliStructuredError;
79
+ /**
80
+ * Contract configuration missing from config.
81
+ */
82
+ declare function errorContractConfigMissing(options?: {
83
+ readonly why?: string;
84
+ }): CliStructuredError;
85
+ /**
86
+ * Contract validation failed.
87
+ */
88
+ declare function errorContractValidationFailed(reason: string, options?: {
89
+ readonly where?: {
90
+ readonly path?: string;
91
+ readonly line?: number;
92
+ };
93
+ }): CliStructuredError;
94
+ /**
95
+ * File not found.
96
+ */
97
+ declare function errorFileNotFound(filePath: string, options?: {
98
+ readonly why?: string;
99
+ readonly fix?: string;
100
+ readonly docsUrl?: string;
101
+ }): CliStructuredError;
102
+ /**
103
+ * Database connection is required but not provided.
104
+ */
105
+ declare function errorDatabaseConnectionRequired(options?: {
106
+ readonly why?: string;
107
+ readonly commandName?: string;
108
+ readonly retryCommand?: string;
109
+ readonly missingFlags?: readonly string[];
110
+ }): CliStructuredError;
111
+ /**
112
+ * Query runner factory is required but not provided in config.
113
+ */
114
+ declare function errorQueryRunnerFactoryRequired(options?: {
115
+ readonly why?: string;
116
+ }): CliStructuredError;
117
+ /**
118
+ * Family verify.readMarker is required but not provided.
119
+ */
120
+ declare function errorFamilyReadMarkerSqlRequired(options?: {
121
+ readonly why?: string;
122
+ }): CliStructuredError;
123
+ /**
124
+ * JSON output format not supported.
125
+ */
126
+ declare function errorJsonFormatNotSupported(options: {
127
+ readonly command: string;
128
+ readonly format: string;
129
+ readonly supportedFormats: readonly string[];
130
+ }): CliStructuredError;
131
+ /**
132
+ * Driver is required for DB-connected commands but not provided.
133
+ */
134
+ declare function errorDriverRequired(options?: {
135
+ readonly why?: string;
136
+ }): CliStructuredError;
137
+ /**
138
+ * Contract requires extension packs that are not provided by config descriptors.
139
+ */
140
+ declare function errorContractMissingExtensions(options: {
141
+ readonly missingExtensions: readonly string[];
142
+ readonly providedComponentIds: readonly string[];
143
+ }): CliStructuredError;
144
+ /**
145
+ * Migration planning failed due to conflicts.
146
+ */
147
+ declare function errorMigrationPlanningFailed(options: {
148
+ readonly conflicts: readonly CliErrorConflict[];
149
+ readonly why?: string;
150
+ }): CliStructuredError;
151
+ /**
152
+ * Target does not support migrations (missing createPlanner/createRunner).
153
+ */
154
+ declare function errorTargetMigrationNotSupported(options?: {
155
+ readonly why?: string;
156
+ }): CliStructuredError;
157
+ /**
158
+ * The migration-file CLI received `--config` without a path argument (either
159
+ * a bare trailing `--config`, or `--config` followed by another flag like
160
+ * `--config --dry-run`). Surfacing this as a structured error fails fast
161
+ * rather than silently consuming the next flag as the config path or
162
+ * falling back to default discovery against the wrong project.
163
+ */
164
+ declare function errorMigrationCliInvalidConfigArg(options?: {
165
+ readonly nextToken?: string;
166
+ }): CliStructuredError;
167
+ /**
168
+ * The migration-file CLI received a flag it does not recognise. Surfaced as a
169
+ * structured error so consumers can render their own "did you mean"
170
+ * suggestions from `meta.knownFlags` rather than parsing the message.
171
+ *
172
+ * Designed to wrap clipanion's `UnknownSyntaxError` at the parser boundary:
173
+ * pass the offending token as `flag` and the option declarations as
174
+ * `knownFlags`.
175
+ */
176
+ declare function errorMigrationCliUnknownFlag(options: {
177
+ readonly flag: string;
178
+ readonly knownFlags: readonly string[];
179
+ }): CliStructuredError;
180
+ /**
181
+ * The main CLI received an unsupported `--format` value.
182
+ */
183
+ declare function errorInvalidOutputFormat(value: string): CliStructuredError;
184
+ /**
185
+ * The main CLI received mutually exclusive output format flags
186
+ * (`--format pretty` together with `--json`).
187
+ */
188
+ declare function errorOutputFormatMutex(): CliStructuredError;
189
+ /**
190
+ * Config validation error (missing required fields).
191
+ */
192
+ declare function errorConfigValidation(field: string, options?: {
193
+ readonly why?: string;
194
+ }): CliStructuredError;
195
+ /**
196
+ * An enum declares a codecId that no component in the contract's pack stack provides,
197
+ * so its member values cannot be encoded. Thrown by both authoring paths (TS `defineContract`
198
+ * and PSL interpretation) when the codec lookup built from the contract's packs has no
199
+ * descriptor for the codecId.
200
+ */
201
+ declare function errorEnumCodecNotInPackStack(options: {
202
+ readonly codecId: string;
203
+ }): CliStructuredError;
204
+ /**
205
+ * Generic unexpected error.
206
+ */
207
+ declare function errorUnexpected(message: string, options?: {
208
+ readonly why?: string;
209
+ readonly fix?: string;
210
+ }): CliStructuredError;
211
+ //#endregion
212
+ export { errorUnexpected as S, errorMigrationCliUnknownFlag as _, errorConfigValidation as a, errorQueryRunnerFactoryRequired as b, errorContractValidationFailed as c, errorEnumCodecNotInPackStack as d, errorFamilyReadMarkerSqlRequired as f, errorMigrationCliInvalidConfigArg as g, errorJsonFormatNotSupported as h, errorConfigFileNotFound as i, errorDatabaseConnectionRequired as l, errorInvalidOutputFormat as m, CliErrorEnvelope as n, errorContractConfigMissing as o, errorFileNotFound as p, CliStructuredError as r, errorContractMissingExtensions as s, CliErrorConflict as t, errorDriverRequired as u, errorMigrationPlanningFailed as v, errorTargetMigrationNotSupported as x, errorOutputFormatMutex as y };
213
+ //# sourceMappingURL=control-B87KWI_K-C_R8WfEr.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control-B87KWI_K-C_R8WfEr.d.mts","names":[],"sources":["../../../../1-framework/1-core/errors/dist/control-B87KWI_K.d.mts"],"mappings":";;;;;;;UAMU;WACC;WACA;WACA;WACA;WACA;WACA;WACA;aACE;aACA;;WAEF,OAAO;WACP;;;;;UAKD;WACC;WACA;WACA;;;;;;;;;;;;;cAaG,2BAA2B,iBAAiB;WAC/C;WACA;WACA;WACA;WACA;aACE;aACA;;WAEF,OAAO;WACP;EACT,YAAY,6BAA6B,iBAAiB;aAC/C;aACA;aACA;aACA;eACE;eACA;;aAEF,OAAO;aACP;;;;;EAKX,cAAc;;;;;SAKP,GAAG,iBAAiB,SAAS;;;;;iBAKrB,wBAAwB,qBAAqB;WACnD;IACP;;;;iBAIa,2BAA2B;WACjC;IACP;;;;iBAIa,8BAA8B,gBAAgB;WACpD;aACE;aACA;;IAET;;;;iBAIa,kBAAkB,kBAAkB;WAC1C;WACA;WACA;IACP;;;;iBAIa,gCAAgC;WACtC;WACA;WACA;WACA;IACP;;;;iBAIa,gCAAgC;WACtC;IACP;;;;iBAIa,iCAAiC;WACvC;IACP;;;;iBAIa,4BAA4B;WAClC;WACA;WACA;IACP;;;;iBAIa,oBAAoB;WAC1B;IACP;;;;iBAIa,+BAA+B;WACrC;WACA;IACP;;;;iBAIa,6BAA6B;WACnC,oBAAoB;WACpB;IACP;;;;iBAIa,iCAAiC;WACvC;IACP;;;;;;;;iBAQa,kCAAkC;WACxC;IACP;;;;;;;;;;iBAUa,6BAA6B;WACnC;WACA;IACP;;;;iBAIa,yBAAyB,gBAAgB;;;;;iBAKzC,0BAA0B;;;;iBAI1B,sBAAsB,eAAe;WAC3C;IACP;;;;;;;iBAOa,6BAA6B;WACnC;IACP;;;;iBAIa,gBAAgB,iBAAiB;WACvC;WACA;IACP"}