@baseplate-dev/plugin-auth 0.6.8 → 0.6.10

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 (643) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/auth/core/web.js +31 -2
  3. package/dist/better-auth/constants/packages.d.ts +1 -1
  4. package/dist/better-auth/constants/packages.js +1 -1
  5. package/dist/better-auth/core/web.js +15 -2
  6. package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.d.ts +0 -1
  7. package/dist/local-auth/core/web.js +15 -2
  8. package/dist/placeholder-auth/core/web.js +13 -2
  9. package/dist/web/assets/_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-ClIdhDoz.js +218 -0
  10. package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.mjs-DMKuehfC.js +100 -0
  11. package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.mjs-D-Ap1aU9.js +38 -0
  12. package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.mjs-BwkXxd-B.js +38 -0
  13. package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__-D-_Nu6mi.js +2 -0
  14. package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.mjs-CCE3BH4R.js +7061 -0
  15. package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react__loadShare__-Bed38hA6.js +3 -0
  16. package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__react_mf_2_dom__loadShare__-Bixm3Wfj.js +2 -0
  17. package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__-BArWH8PX.js +2 -0
  18. package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.mjs-BalS-ZNe.js +13533 -0
  19. package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__prebuild___mf_0_tanstack_mf_1_react_mf_2_router__prebuild__-C01b4AWM.js +2 -0
  20. package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__prebuild__react__prebuild__-D4n2cb00.js +3 -0
  21. package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__prebuild__react_mf_1_jsx_mf_2_runtime__prebuild__-BkswA-5f.js +2 -0
  22. package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__prebuild__react_mf_2_dom__prebuild__-CiX5bkAg.js +2 -0
  23. package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__prebuild__zod__prebuild__-BnF6dd62.js +2 -0
  24. package/dist/web/assets/auth-B91ghZtH.js +1 -0
  25. package/dist/web/assets/common-C7yhhy8-.js +39 -0
  26. package/dist/web/assets/common-DiDohcsR.js +37 -0
  27. package/dist/web/assets/common-DpbhYjND.js +39 -0
  28. package/dist/web/assets/common-DsAJIAWm.js +63 -0
  29. package/dist/web/assets/common-ERn8TuKQ.js +37 -0
  30. package/dist/web/assets/common-KNIYXbku.js +18 -0
  31. package/dist/web/assets/dist-B0GpYPx6.js +18145 -0
  32. package/dist/web/assets/dist-BhvYza4J.js +69565 -0
  33. package/dist/web/assets/dist-CEUHjZe8.js +3017 -0
  34. package/dist/web/assets/get-auth-plugin-definition-Bu_lkrUz.js +14 -0
  35. package/dist/web/assets/hostInit-BeM6xnlw.js +72 -0
  36. package/dist/web/assets/index-D5GoD4M0.js +2 -0
  37. package/dist/web/assets/index.esm-iUXrvsTx.js +2003 -0
  38. package/dist/web/assets/md-BLjaL5ZD.js +439 -0
  39. package/dist/web/assets/model-names-BluImOzu.js +27 -0
  40. package/dist/web/assets/model-names-CUS5rSei.js +12 -0
  41. package/dist/web/assets/model-utils-BPfI0c3Y.js +1287 -0
  42. package/dist/web/assets/models-BTYxwDyB.js +304 -0
  43. package/dist/web/assets/models-BufWBHGv.js +285 -0
  44. package/dist/web/assets/plugin-definition-BTHzuXv5.js +78 -0
  45. package/dist/web/assets/plugin-definition-D5s4GTfd.js +11 -0
  46. package/dist/web/assets/react-B4hMnLhV.js +49 -0
  47. package/dist/web/assets/rolldown-runtime-_TIqcEvS.js +35 -0
  48. package/dist/web/assets/stringify-pretty-stable-ByfjYf8u.js +155 -0
  49. package/dist/web/assets/styles-BpmWykfT.js +174 -0
  50. package/dist/web/assets/{style-DiK_rD1L.css → styles-CAm3HyKx.css} +1 -1
  51. package/dist/web/assets/virtualExposes-Bru0eAhP.js +2 -0
  52. package/dist/web/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-DK03x1PZ.js +270 -0
  53. package/dist/web/assets/virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-DBiKf3iL.js +168 -0
  54. package/dist/web/assets/web-BUa3uD-P.js +400 -0
  55. package/dist/web/assets/web-BmHd5WWD.js +124 -0
  56. package/dist/web/assets/web-CgosRRUN.js +119 -0
  57. package/dist/web/assets/web-DhTqWxxL.js +46 -0
  58. package/dist/web/assets/web-DlJyNEbj.js +357 -0
  59. package/dist/web/assets/web-ffSErgfF.js +46 -0
  60. package/dist/web/assets/web-nADEuz1b.js +107 -0
  61. package/dist/web/index.html +1 -1
  62. package/dist/web/mf-entry-bootstrap-0.js +17 -0
  63. package/dist/web/remoteEntry.js +2 -0
  64. package/package.json +23 -20
  65. package/dist/auth/core/common.d.ts.map +0 -1
  66. package/dist/auth/core/common.js.map +0 -1
  67. package/dist/auth/core/components/auth-definition-editor.d.ts.map +0 -1
  68. package/dist/auth/core/components/auth-definition-editor.js.map +0 -1
  69. package/dist/auth/core/components/role-editor-form/role-dialog.d.ts.map +0 -1
  70. package/dist/auth/core/components/role-editor-form/role-dialog.js.map +0 -1
  71. package/dist/auth/core/components/role-editor-form/role-editor-form.d.ts.map +0 -1
  72. package/dist/auth/core/components/role-editor-form/role-editor-form.js.map +0 -1
  73. package/dist/auth/core/node.d.ts.map +0 -1
  74. package/dist/auth/core/node.js.map +0 -1
  75. package/dist/auth/core/schema/migrations.d.ts.map +0 -1
  76. package/dist/auth/core/schema/migrations.js.map +0 -1
  77. package/dist/auth/core/schema/plugin-definition.d.ts.map +0 -1
  78. package/dist/auth/core/schema/plugin-definition.js.map +0 -1
  79. package/dist/auth/core/schema/roles/constants.d.ts.map +0 -1
  80. package/dist/auth/core/schema/roles/constants.js.map +0 -1
  81. package/dist/auth/core/schema/roles/index.d.ts.map +0 -1
  82. package/dist/auth/core/schema/roles/index.js.map +0 -1
  83. package/dist/auth/core/schema/roles/schema.d.ts.map +0 -1
  84. package/dist/auth/core/schema/roles/schema.js.map +0 -1
  85. package/dist/auth/core/web.d.ts.map +0 -1
  86. package/dist/auth/core/web.js.map +0 -1
  87. package/dist/auth/index.d.ts.map +0 -1
  88. package/dist/auth/index.js.map +0 -1
  89. package/dist/auth/utils/get-auth-plugin-definition.d.ts.map +0 -1
  90. package/dist/auth/utils/get-auth-plugin-definition.js.map +0 -1
  91. package/dist/auth/utils/index.d.ts.map +0 -1
  92. package/dist/auth/utils/index.js.map +0 -1
  93. package/dist/better-auth/admin/common.d.ts.map +0 -1
  94. package/dist/better-auth/admin/common.js.map +0 -1
  95. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts.map +0 -1
  96. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js.map +0 -1
  97. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts.map +0 -1
  98. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.js.map +0 -1
  99. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts.map +0 -1
  100. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js.map +0 -1
  101. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts.map +0 -1
  102. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js.map +0 -1
  103. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts.map +0 -1
  104. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js.map +0 -1
  105. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/index.d.ts.map +0 -1
  106. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/index.js.map +0 -1
  107. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts.map +0 -1
  108. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js.map +0 -1
  109. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts.map +0 -1
  110. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js.map +0 -1
  111. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts.map +0 -1
  112. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.js.map +0 -1
  113. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts.map +0 -1
  114. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js.map +0 -1
  115. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts.map +0 -1
  116. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js.map +0 -1
  117. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts.map +0 -1
  118. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js.map +0 -1
  119. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/index.d.ts.map +0 -1
  120. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/index.js.map +0 -1
  121. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts.map +0 -1
  122. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js.map +0 -1
  123. package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts.map +0 -1
  124. package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js.map +0 -1
  125. package/dist/better-auth/admin/generators/admin-crud-roles-column/index.d.ts.map +0 -1
  126. package/dist/better-auth/admin/generators/admin-crud-roles-column/index.js.map +0 -1
  127. package/dist/better-auth/admin/node.d.ts.map +0 -1
  128. package/dist/better-auth/admin/node.js.map +0 -1
  129. package/dist/better-auth/admin/schema/manage-role-action.d.ts.map +0 -1
  130. package/dist/better-auth/admin/schema/manage-role-action.js.map +0 -1
  131. package/dist/better-auth/admin/schema/reset-password-action.d.ts.map +0 -1
  132. package/dist/better-auth/admin/schema/reset-password-action.js.map +0 -1
  133. package/dist/better-auth/admin/schema/roles-column.d.ts.map +0 -1
  134. package/dist/better-auth/admin/schema/roles-column.js.map +0 -1
  135. package/dist/better-auth/admin/web.d.ts.map +0 -1
  136. package/dist/better-auth/admin/web.js.map +0 -1
  137. package/dist/better-auth/constants/model-names.d.ts.map +0 -1
  138. package/dist/better-auth/constants/model-names.js.map +0 -1
  139. package/dist/better-auth/constants/packages.d.ts.map +0 -1
  140. package/dist/better-auth/constants/packages.js.map +0 -1
  141. package/dist/better-auth/core/common.d.ts.map +0 -1
  142. package/dist/better-auth/core/common.js.map +0 -1
  143. package/dist/better-auth/core/components/better-auth-definition-editor.d.ts.map +0 -1
  144. package/dist/better-auth/core/components/better-auth-definition-editor.js.map +0 -1
  145. package/dist/better-auth/core/index.d.ts.map +0 -1
  146. package/dist/better-auth/core/index.js.map +0 -1
  147. package/dist/better-auth/core/node.d.ts.map +0 -1
  148. package/dist/better-auth/core/node.js.map +0 -1
  149. package/dist/better-auth/core/schema/models.d.ts.map +0 -1
  150. package/dist/better-auth/core/schema/models.js.map +0 -1
  151. package/dist/better-auth/core/schema/plugin-definition.d.ts.map +0 -1
  152. package/dist/better-auth/core/schema/plugin-definition.js.map +0 -1
  153. package/dist/better-auth/core/schema/schema-issue-checker.d.ts.map +0 -1
  154. package/dist/better-auth/core/schema/schema-issue-checker.js.map +0 -1
  155. package/dist/better-auth/core/web.d.ts.map +0 -1
  156. package/dist/better-auth/core/web.js.map +0 -1
  157. package/dist/better-auth/generators/fastify/better-auth-admin-module/better-auth-admin-module.generator.d.ts.map +0 -1
  158. package/dist/better-auth/generators/fastify/better-auth-admin-module/better-auth-admin-module.generator.js.map +0 -1
  159. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/index.d.ts.map +0 -1
  160. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/index.js.map +0 -1
  161. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-paths.d.ts.map +0 -1
  162. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-paths.js.map +0 -1
  163. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-renderers.d.ts.map +0 -1
  164. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-renderers.js.map +0 -1
  165. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/ts-import-providers.d.ts.map +0 -1
  166. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/ts-import-providers.js.map +0 -1
  167. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/typed-templates.d.ts.map +0 -1
  168. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/typed-templates.js.map +0 -1
  169. package/dist/better-auth/generators/fastify/better-auth-admin-module/index.d.ts.map +0 -1
  170. package/dist/better-auth/generators/fastify/better-auth-admin-module/index.js.map +0 -1
  171. package/dist/better-auth/generators/fastify/better-auth-email-templates/better-auth-email-templates.generator.d.ts.map +0 -1
  172. package/dist/better-auth/generators/fastify/better-auth-email-templates/better-auth-email-templates.generator.js.map +0 -1
  173. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/index.d.ts.map +0 -1
  174. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/index.js.map +0 -1
  175. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-paths.d.ts.map +0 -1
  176. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-paths.js.map +0 -1
  177. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-renderers.d.ts.map +0 -1
  178. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-renderers.js.map +0 -1
  179. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/typed-templates.d.ts.map +0 -1
  180. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/typed-templates.js.map +0 -1
  181. package/dist/better-auth/generators/fastify/better-auth-email-templates/index.d.ts.map +0 -1
  182. package/dist/better-auth/generators/fastify/better-auth-email-templates/index.js.map +0 -1
  183. package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts.map +0 -1
  184. package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js.map +0 -1
  185. package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts.map +0 -1
  186. package/dist/better-auth/generators/fastify/better-auth-module/generated/index.js.map +0 -1
  187. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-paths.d.ts.map +0 -1
  188. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-paths.js.map +0 -1
  189. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts.map +0 -1
  190. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.js.map +0 -1
  191. package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.d.ts.map +0 -1
  192. package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.js.map +0 -1
  193. package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts.map +0 -1
  194. package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.js.map +0 -1
  195. package/dist/better-auth/generators/fastify/better-auth-module/index.d.ts.map +0 -1
  196. package/dist/better-auth/generators/fastify/better-auth-module/index.js.map +0 -1
  197. package/dist/better-auth/generators/fastify/index.d.ts.map +0 -1
  198. package/dist/better-auth/generators/fastify/index.js.map +0 -1
  199. package/dist/better-auth/generators/fastify/seed-initial-user/generated/index.d.ts.map +0 -1
  200. package/dist/better-auth/generators/fastify/seed-initial-user/generated/index.js.map +0 -1
  201. package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-paths.d.ts.map +0 -1
  202. package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-paths.js.map +0 -1
  203. package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-renderers.d.ts.map +0 -1
  204. package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-renderers.js.map +0 -1
  205. package/dist/better-auth/generators/fastify/seed-initial-user/generated/typed-templates.d.ts.map +0 -1
  206. package/dist/better-auth/generators/fastify/seed-initial-user/generated/typed-templates.js.map +0 -1
  207. package/dist/better-auth/generators/fastify/seed-initial-user/index.d.ts.map +0 -1
  208. package/dist/better-auth/generators/fastify/seed-initial-user/index.js.map +0 -1
  209. package/dist/better-auth/generators/fastify/seed-initial-user/seed-initial-user.generator.d.ts.map +0 -1
  210. package/dist/better-auth/generators/fastify/seed-initial-user/seed-initial-user.generator.js.map +0 -1
  211. package/dist/better-auth/generators/index.d.ts.map +0 -1
  212. package/dist/better-auth/generators/index.js.map +0 -1
  213. package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.d.ts.map +0 -1
  214. package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.js.map +0 -1
  215. package/dist/better-auth/generators/react/better-auth-hooks/generated/index.d.ts.map +0 -1
  216. package/dist/better-auth/generators/react/better-auth-hooks/generated/index.js.map +0 -1
  217. package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.d.ts.map +0 -1
  218. package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.js.map +0 -1
  219. package/dist/better-auth/generators/react/better-auth-hooks/generated/template-renderers.d.ts.map +0 -1
  220. package/dist/better-auth/generators/react/better-auth-hooks/generated/template-renderers.js.map +0 -1
  221. package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.d.ts.map +0 -1
  222. package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.js.map +0 -1
  223. package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.d.ts.map +0 -1
  224. package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.js.map +0 -1
  225. package/dist/better-auth/generators/react/better-auth-hooks/index.d.ts.map +0 -1
  226. package/dist/better-auth/generators/react/better-auth-hooks/index.js.map +0 -1
  227. package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts.map +0 -1
  228. package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.js.map +0 -1
  229. package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts.map +0 -1
  230. package/dist/better-auth/generators/react/better-auth-pages/generated/index.js.map +0 -1
  231. package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.d.ts.map +0 -1
  232. package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.js.map +0 -1
  233. package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts.map +0 -1
  234. package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.js.map +0 -1
  235. package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts.map +0 -1
  236. package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.js.map +0 -1
  237. package/dist/better-auth/generators/react/better-auth-pages/index.d.ts.map +0 -1
  238. package/dist/better-auth/generators/react/better-auth-pages/index.js.map +0 -1
  239. package/dist/better-auth/generators/react/index.d.ts.map +0 -1
  240. package/dist/better-auth/generators/react/index.js.map +0 -1
  241. package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts.map +0 -1
  242. package/dist/better-auth/generators/react/react-better-auth/generated/index.js.map +0 -1
  243. package/dist/better-auth/generators/react/react-better-auth/generated/template-paths.d.ts.map +0 -1
  244. package/dist/better-auth/generators/react/react-better-auth/generated/template-paths.js.map +0 -1
  245. package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts.map +0 -1
  246. package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.js.map +0 -1
  247. package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.d.ts.map +0 -1
  248. package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.js.map +0 -1
  249. package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts.map +0 -1
  250. package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.js.map +0 -1
  251. package/dist/better-auth/generators/react/react-better-auth/index.d.ts.map +0 -1
  252. package/dist/better-auth/generators/react/react-better-auth/index.js.map +0 -1
  253. package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts.map +0 -1
  254. package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.js.map +0 -1
  255. package/dist/better-auth/index.d.ts.map +0 -1
  256. package/dist/better-auth/index.js.map +0 -1
  257. package/dist/common/components/auth-config-tabs.d.ts.map +0 -1
  258. package/dist/common/components/auth-config-tabs.js.map +0 -1
  259. package/dist/local-auth/admin/common.d.ts.map +0 -1
  260. package/dist/local-auth/admin/common.js.map +0 -1
  261. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts.map +0 -1
  262. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js.map +0 -1
  263. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts.map +0 -1
  264. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.js.map +0 -1
  265. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts.map +0 -1
  266. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js.map +0 -1
  267. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts.map +0 -1
  268. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js.map +0 -1
  269. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts.map +0 -1
  270. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js.map +0 -1
  271. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/index.d.ts.map +0 -1
  272. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/index.js.map +0 -1
  273. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts.map +0 -1
  274. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js.map +0 -1
  275. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts.map +0 -1
  276. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js.map +0 -1
  277. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts.map +0 -1
  278. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.js.map +0 -1
  279. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts.map +0 -1
  280. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js.map +0 -1
  281. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts.map +0 -1
  282. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js.map +0 -1
  283. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts.map +0 -1
  284. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js.map +0 -1
  285. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/index.d.ts.map +0 -1
  286. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/index.js.map +0 -1
  287. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts.map +0 -1
  288. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js.map +0 -1
  289. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts.map +0 -1
  290. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js.map +0 -1
  291. package/dist/local-auth/admin/generators/admin-crud-roles-column/index.d.ts.map +0 -1
  292. package/dist/local-auth/admin/generators/admin-crud-roles-column/index.js.map +0 -1
  293. package/dist/local-auth/admin/node.d.ts.map +0 -1
  294. package/dist/local-auth/admin/node.js.map +0 -1
  295. package/dist/local-auth/admin/schema/manage-role-action.d.ts.map +0 -1
  296. package/dist/local-auth/admin/schema/manage-role-action.js.map +0 -1
  297. package/dist/local-auth/admin/schema/reset-password-action.d.ts.map +0 -1
  298. package/dist/local-auth/admin/schema/reset-password-action.js.map +0 -1
  299. package/dist/local-auth/admin/schema/roles-column.d.ts.map +0 -1
  300. package/dist/local-auth/admin/schema/roles-column.js.map +0 -1
  301. package/dist/local-auth/admin/web.d.ts.map +0 -1
  302. package/dist/local-auth/admin/web.js.map +0 -1
  303. package/dist/local-auth/constants/model-names.d.ts.map +0 -1
  304. package/dist/local-auth/constants/model-names.js.map +0 -1
  305. package/dist/local-auth/core/common.d.ts.map +0 -1
  306. package/dist/local-auth/core/common.js.map +0 -1
  307. package/dist/local-auth/core/components/local-auth-definition-editor.d.ts.map +0 -1
  308. package/dist/local-auth/core/components/local-auth-definition-editor.js.map +0 -1
  309. package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.d.ts.map +0 -1
  310. package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.js.map +0 -1
  311. package/dist/local-auth/core/generators/auth-apollo/index.d.ts.map +0 -1
  312. package/dist/local-auth/core/generators/auth-apollo/index.js.map +0 -1
  313. package/dist/local-auth/core/generators/auth-apollo/templates/session-error-link.d.ts.map +0 -1
  314. package/dist/local-auth/core/generators/auth-apollo/templates/session-error-link.js.map +0 -1
  315. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts.map +0 -1
  316. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js.map +0 -1
  317. package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts.map +0 -1
  318. package/dist/local-auth/core/generators/auth-email-password/generated/index.js.map +0 -1
  319. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts.map +0 -1
  320. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.js.map +0 -1
  321. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts.map +0 -1
  322. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js.map +0 -1
  323. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts.map +0 -1
  324. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js.map +0 -1
  325. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts.map +0 -1
  326. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js.map +0 -1
  327. package/dist/local-auth/core/generators/auth-email-password/index.d.ts.map +0 -1
  328. package/dist/local-auth/core/generators/auth-email-password/index.js.map +0 -1
  329. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts.map +0 -1
  330. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.js.map +0 -1
  331. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.d.ts.map +0 -1
  332. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.js.map +0 -1
  333. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.d.ts.map +0 -1
  334. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.js.map +0 -1
  335. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.d.ts.map +0 -1
  336. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js.map +0 -1
  337. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.d.ts.map +0 -1
  338. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js.map +0 -1
  339. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts.map +0 -1
  340. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js.map +0 -1
  341. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts.map +0 -1
  342. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js.map +0 -1
  343. package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts.map +0 -1
  344. package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.js.map +0 -1
  345. package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts.map +0 -1
  346. package/dist/local-auth/core/generators/auth-email-templates/generated/index.js.map +0 -1
  347. package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.d.ts.map +0 -1
  348. package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.js.map +0 -1
  349. package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts.map +0 -1
  350. package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.js.map +0 -1
  351. package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts.map +0 -1
  352. package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.js.map +0 -1
  353. package/dist/local-auth/core/generators/auth-email-templates/index.d.ts.map +0 -1
  354. package/dist/local-auth/core/generators/auth-email-templates/index.js.map +0 -1
  355. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.d.ts.map +0 -1
  356. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.js.map +0 -1
  357. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.d.ts.map +0 -1
  358. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.js.map +0 -1
  359. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.d.ts.map +0 -1
  360. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.js.map +0 -1
  361. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts.map +0 -1
  362. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.js.map +0 -1
  363. package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts.map +0 -1
  364. package/dist/local-auth/core/generators/auth-hooks/generated/index.js.map +0 -1
  365. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts.map +0 -1
  366. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js.map +0 -1
  367. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts.map +0 -1
  368. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js.map +0 -1
  369. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts.map +0 -1
  370. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js.map +0 -1
  371. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts.map +0 -1
  372. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js.map +0 -1
  373. package/dist/local-auth/core/generators/auth-hooks/index.d.ts.map +0 -1
  374. package/dist/local-auth/core/generators/auth-hooks/index.js.map +0 -1
  375. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts.map +0 -1
  376. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js.map +0 -1
  377. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts.map +0 -1
  378. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.js.map +0 -1
  379. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts.map +0 -1
  380. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.js.map +0 -1
  381. package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts.map +0 -1
  382. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js.map +0 -1
  383. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts.map +0 -1
  384. package/dist/local-auth/core/generators/auth-module/generated/index.js.map +0 -1
  385. package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts.map +0 -1
  386. package/dist/local-auth/core/generators/auth-module/generated/template-paths.js.map +0 -1
  387. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts.map +0 -1
  388. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js.map +0 -1
  389. package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts.map +0 -1
  390. package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js.map +0 -1
  391. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts.map +0 -1
  392. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js.map +0 -1
  393. package/dist/local-auth/core/generators/auth-module/index.d.ts.map +0 -1
  394. package/dist/local-auth/core/generators/auth-module/index.js.map +0 -1
  395. package/dist/local-auth/core/generators/auth-module/templates/module/constants/user-session.constants.d.ts.map +0 -1
  396. package/dist/local-auth/core/generators/auth-module/templates/module/constants/user-session.constants.js.map +0 -1
  397. package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.d.ts.map +0 -1
  398. package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.js.map +0 -1
  399. package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.d.ts.map +0 -1
  400. package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.js.map +0 -1
  401. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-roles.mutations.d.ts.map +0 -1
  402. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-roles.mutations.js.map +0 -1
  403. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.d.ts.map +0 -1
  404. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.js.map +0 -1
  405. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.d.ts.map +0 -1
  406. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js.map +0 -1
  407. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.d.ts.map +0 -1
  408. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js.map +0 -1
  409. package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.d.ts.map +0 -1
  410. package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.js.map +0 -1
  411. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.d.ts.map +0 -1
  412. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.js.map +0 -1
  413. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.d.ts.map +0 -1
  414. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js.map +0 -1
  415. package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.d.ts.map +0 -1
  416. package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.js.map +0 -1
  417. package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.d.ts.map +0 -1
  418. package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.js.map +0 -1
  419. package/dist/local-auth/core/generators/auth-module/templates/module/utils/verify-request-origin.d.ts.map +0 -1
  420. package/dist/local-auth/core/generators/auth-module/templates/module/utils/verify-request-origin.js.map +0 -1
  421. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +0 -1
  422. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js.map +0 -1
  423. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts.map +0 -1
  424. package/dist/local-auth/core/generators/auth-routes/generated/index.js.map +0 -1
  425. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts.map +0 -1
  426. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js.map +0 -1
  427. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +0 -1
  428. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js.map +0 -1
  429. package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.d.ts.map +0 -1
  430. package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.js.map +0 -1
  431. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts.map +0 -1
  432. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js.map +0 -1
  433. package/dist/local-auth/core/generators/auth-routes/index.d.ts.map +0 -1
  434. package/dist/local-auth/core/generators/auth-routes/index.js.map +0 -1
  435. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.d.ts.map +0 -1
  436. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.js.map +0 -1
  437. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.d.ts.map +0 -1
  438. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.js.map +0 -1
  439. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts.map +0 -1
  440. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js.map +0 -1
  441. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts.map +0 -1
  442. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +0 -1
  443. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.d.ts.map +0 -1
  444. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js.map +0 -1
  445. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts.map +0 -1
  446. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/route.js.map +0 -1
  447. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.d.ts.map +0 -1
  448. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.js.map +0 -1
  449. package/dist/local-auth/core/generators/index.d.ts.map +0 -1
  450. package/dist/local-auth/core/generators/index.js.map +0 -1
  451. package/dist/local-auth/core/generators/react-auth/index.d.ts.map +0 -1
  452. package/dist/local-auth/core/generators/react-auth/index.js.map +0 -1
  453. package/dist/local-auth/core/generators/react-auth/react-auth.generator.d.ts.map +0 -1
  454. package/dist/local-auth/core/generators/react-auth/react-auth.generator.js.map +0 -1
  455. package/dist/local-auth/core/generators/react-session/generated/index.d.ts.map +0 -1
  456. package/dist/local-auth/core/generators/react-session/generated/index.js.map +0 -1
  457. package/dist/local-auth/core/generators/react-session/generated/template-paths.d.ts.map +0 -1
  458. package/dist/local-auth/core/generators/react-session/generated/template-paths.js.map +0 -1
  459. package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts.map +0 -1
  460. package/dist/local-auth/core/generators/react-session/generated/template-renderers.js.map +0 -1
  461. package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.d.ts.map +0 -1
  462. package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.js.map +0 -1
  463. package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts.map +0 -1
  464. package/dist/local-auth/core/generators/react-session/generated/typed-templates.js.map +0 -1
  465. package/dist/local-auth/core/generators/react-session/index.d.ts.map +0 -1
  466. package/dist/local-auth/core/generators/react-session/index.js.map +0 -1
  467. package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts.map +0 -1
  468. package/dist/local-auth/core/generators/react-session/react-session.generator.js.map +0 -1
  469. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.d.ts.map +0 -1
  470. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js.map +0 -1
  471. package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.d.ts.map +0 -1
  472. package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.js.map +0 -1
  473. package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts.map +0 -1
  474. package/dist/local-auth/core/generators/seed-initial-user/generated/index.js.map +0 -1
  475. package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.d.ts.map +0 -1
  476. package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.js.map +0 -1
  477. package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts.map +0 -1
  478. package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.js.map +0 -1
  479. package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts.map +0 -1
  480. package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.js.map +0 -1
  481. package/dist/local-auth/core/generators/seed-initial-user/index.d.ts.map +0 -1
  482. package/dist/local-auth/core/generators/seed-initial-user/index.js.map +0 -1
  483. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts.map +0 -1
  484. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js.map +0 -1
  485. package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.d.ts.map +0 -1
  486. package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.js.map +0 -1
  487. package/dist/local-auth/core/index.d.ts.map +0 -1
  488. package/dist/local-auth/core/index.js.map +0 -1
  489. package/dist/local-auth/core/node.d.ts.map +0 -1
  490. package/dist/local-auth/core/node.js.map +0 -1
  491. package/dist/local-auth/core/schema/models.d.ts.map +0 -1
  492. package/dist/local-auth/core/schema/models.js.map +0 -1
  493. package/dist/local-auth/core/schema/plugin-definition.d.ts.map +0 -1
  494. package/dist/local-auth/core/schema/plugin-definition.js.map +0 -1
  495. package/dist/local-auth/core/schema/schema-issue-checker.d.ts.map +0 -1
  496. package/dist/local-auth/core/schema/schema-issue-checker.js.map +0 -1
  497. package/dist/local-auth/core/web.d.ts.map +0 -1
  498. package/dist/local-auth/core/web.js.map +0 -1
  499. package/dist/local-auth/index.d.ts.map +0 -1
  500. package/dist/local-auth/index.js.map +0 -1
  501. package/dist/placeholder-auth/constants/model-names.d.ts.map +0 -1
  502. package/dist/placeholder-auth/constants/model-names.js.map +0 -1
  503. package/dist/placeholder-auth/core/common.d.ts.map +0 -1
  504. package/dist/placeholder-auth/core/common.js.map +0 -1
  505. package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.d.ts.map +0 -1
  506. package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js.map +0 -1
  507. package/dist/placeholder-auth/core/generators/index.d.ts.map +0 -1
  508. package/dist/placeholder-auth/core/generators/index.js.map +0 -1
  509. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts.map +0 -1
  510. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.js.map +0 -1
  511. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts.map +0 -1
  512. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js.map +0 -1
  513. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.d.ts.map +0 -1
  514. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.js.map +0 -1
  515. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts.map +0 -1
  516. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js.map +0 -1
  517. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts.map +0 -1
  518. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js.map +0 -1
  519. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/index.d.ts.map +0 -1
  520. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/index.js.map +0 -1
  521. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts.map +0 -1
  522. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.js.map +0 -1
  523. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-log-out.d.ts.map +0 -1
  524. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-log-out.js.map +0 -1
  525. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.d.ts.map +0 -1
  526. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.js.map +0 -1
  527. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts.map +0 -1
  528. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-user-id-or-throw.js.map +0 -1
  529. package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.d.ts.map +0 -1
  530. package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.js.map +0 -1
  531. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts.map +0 -1
  532. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.js.map +0 -1
  533. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-paths.d.ts.map +0 -1
  534. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-paths.js.map +0 -1
  535. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.d.ts.map +0 -1
  536. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.js.map +0 -1
  537. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.d.ts.map +0 -1
  538. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.js.map +0 -1
  539. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.d.ts.map +0 -1
  540. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.js.map +0 -1
  541. package/dist/placeholder-auth/core/generators/placeholder-auth-module/index.d.ts.map +0 -1
  542. package/dist/placeholder-auth/core/generators/placeholder-auth-module/index.js.map +0 -1
  543. package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.d.ts.map +0 -1
  544. package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.js.map +0 -1
  545. package/dist/placeholder-auth/core/generators/placeholder-react-auth/index.d.ts.map +0 -1
  546. package/dist/placeholder-auth/core/generators/placeholder-react-auth/index.js.map +0 -1
  547. package/dist/placeholder-auth/core/generators/placeholder-react-auth/react-auth.generator.d.ts.map +0 -1
  548. package/dist/placeholder-auth/core/generators/placeholder-react-auth/react-auth.generator.js.map +0 -1
  549. package/dist/placeholder-auth/core/index.d.ts.map +0 -1
  550. package/dist/placeholder-auth/core/index.js.map +0 -1
  551. package/dist/placeholder-auth/core/node.d.ts.map +0 -1
  552. package/dist/placeholder-auth/core/node.js.map +0 -1
  553. package/dist/placeholder-auth/core/schema/models.d.ts.map +0 -1
  554. package/dist/placeholder-auth/core/schema/models.js.map +0 -1
  555. package/dist/placeholder-auth/core/schema/plugin-definition.d.ts.map +0 -1
  556. package/dist/placeholder-auth/core/schema/plugin-definition.js.map +0 -1
  557. package/dist/placeholder-auth/core/web.d.ts.map +0 -1
  558. package/dist/placeholder-auth/core/web.js.map +0 -1
  559. package/dist/placeholder-auth/index.d.ts.map +0 -1
  560. package/dist/placeholder-auth/index.js.map +0 -1
  561. package/dist/web/assets/__federation_expose_authCoreCommon-Chd1hkDj.js +0 -85
  562. package/dist/web/assets/__federation_expose_authCoreCommon-Chd1hkDj.js.map +0 -1
  563. package/dist/web/assets/__federation_expose_authCoreWeb-B6MMIRwe.js +0 -453
  564. package/dist/web/assets/__federation_expose_authCoreWeb-B6MMIRwe.js.map +0 -1
  565. package/dist/web/assets/__federation_expose_better-authAdminCommon-BTbhl15Q.js +0 -63
  566. package/dist/web/assets/__federation_expose_better-authAdminCommon-BTbhl15Q.js.map +0 -1
  567. package/dist/web/assets/__federation_expose_better-authAdminWeb-CwKP2Fwx.js +0 -41
  568. package/dist/web/assets/__federation_expose_better-authAdminWeb-CwKP2Fwx.js.map +0 -1
  569. package/dist/web/assets/__federation_expose_better-authCoreCommon-DHvNg16x.js +0 -54
  570. package/dist/web/assets/__federation_expose_better-authCoreCommon-DHvNg16x.js.map +0 -1
  571. package/dist/web/assets/__federation_expose_better-authCoreWeb-DcL0DNwe.js +0 -157
  572. package/dist/web/assets/__federation_expose_better-authCoreWeb-DcL0DNwe.js.map +0 -1
  573. package/dist/web/assets/__federation_expose_local-authAdminCommon-BTbhl15Q.js +0 -63
  574. package/dist/web/assets/__federation_expose_local-authAdminCommon-BTbhl15Q.js.map +0 -1
  575. package/dist/web/assets/__federation_expose_local-authAdminWeb-DeDTjgfy.js +0 -41
  576. package/dist/web/assets/__federation_expose_local-authAdminWeb-DeDTjgfy.js.map +0 -1
  577. package/dist/web/assets/__federation_expose_local-authCoreCommon-CaB76kZh.js +0 -54
  578. package/dist/web/assets/__federation_expose_local-authCoreCommon-CaB76kZh.js.map +0 -1
  579. package/dist/web/assets/__federation_expose_local-authCoreWeb-J0GrCM1P.js +0 -167
  580. package/dist/web/assets/__federation_expose_local-authCoreWeb-J0GrCM1P.js.map +0 -1
  581. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-DEOS_PRC.js +0 -23
  582. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-DEOS_PRC.js.map +0 -1
  583. package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-xpLN9suD.js +0 -177
  584. package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-xpLN9suD.js.map +0 -1
  585. package/dist/web/assets/__federation_fn_import-DboThXN4.js +0 -421
  586. package/dist/web/assets/__federation_fn_import-DboThXN4.js.map +0 -1
  587. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-wm-FNH7x.js +0 -359
  588. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-wm-FNH7x.js.map +0 -1
  589. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CDRCjvEd.js +0 -22532
  590. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CDRCjvEd.js.map +0 -1
  591. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-Bwy1GWne.js +0 -78637
  592. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-Bwy1GWne.js.map +0 -1
  593. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-Cs-QtWzA.js +0 -1855
  594. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-Cs-QtWzA.js.map +0 -1
  595. package/dist/web/assets/__federation_shared_@tanstack/react-router-_N2czGX0.js +0 -6565
  596. package/dist/web/assets/__federation_shared_@tanstack/react-router-_N2czGX0.js.map +0 -1
  597. package/dist/web/assets/__federation_shared_react-CJ2OfFKA.js +0 -8
  598. package/dist/web/assets/__federation_shared_react-CJ2OfFKA.js.map +0 -1
  599. package/dist/web/assets/__federation_shared_react-dom-B4vgf5Ln.js +0 -251
  600. package/dist/web/assets/__federation_shared_react-dom-B4vgf5Ln.js.map +0 -1
  601. package/dist/web/assets/__federation_shared_zod-Do7Aa1b5.js +0 -13250
  602. package/dist/web/assets/__federation_shared_zod-Do7Aa1b5.js.map +0 -1
  603. package/dist/web/assets/_commonjsHelpers-B85MJLTf.js +0 -6
  604. package/dist/web/assets/_commonjsHelpers-B85MJLTf.js.map +0 -1
  605. package/dist/web/assets/get-auth-plugin-definition-Dy9T0JTI.js +0 -13
  606. package/dist/web/assets/get-auth-plugin-definition-Dy9T0JTI.js.map +0 -1
  607. package/dist/web/assets/index-DN2TTEo8.js +0 -101
  608. package/dist/web/assets/index-DN2TTEo8.js.map +0 -1
  609. package/dist/web/assets/index-DUwCgkeV.js +0 -570
  610. package/dist/web/assets/index-DUwCgkeV.js.map +0 -1
  611. package/dist/web/assets/index-l0sNRNKZ.js.map +0 -1
  612. package/dist/web/assets/index.esm-BMmVLbge.js +0 -2676
  613. package/dist/web/assets/index.esm-BMmVLbge.js.map +0 -1
  614. package/dist/web/assets/isEqual-tnzoadW8.js +0 -242
  615. package/dist/web/assets/isEqual-tnzoadW8.js.map +0 -1
  616. package/dist/web/assets/jsx-runtime-XI9uIe3W.js +0 -60
  617. package/dist/web/assets/jsx-runtime-XI9uIe3W.js.map +0 -1
  618. package/dist/web/assets/mergeWith-VagwCqUi.js +0 -76
  619. package/dist/web/assets/mergeWith-VagwCqUi.js.map +0 -1
  620. package/dist/web/assets/model-names-D7UT0B8x.js +0 -10
  621. package/dist/web/assets/model-names-D7UT0B8x.js.map +0 -1
  622. package/dist/web/assets/model-names-DrcaRxt1.js +0 -25
  623. package/dist/web/assets/model-names-DrcaRxt1.js.map +0 -1
  624. package/dist/web/assets/model-utils-DVlh_mZg.js +0 -840
  625. package/dist/web/assets/model-utils-DVlh_mZg.js.map +0 -1
  626. package/dist/web/assets/plugin-definition-BA3dR1I6.js +0 -16
  627. package/dist/web/assets/plugin-definition-BA3dR1I6.js.map +0 -1
  628. package/dist/web/assets/plugin-definition-DqIciiTP.js +0 -93
  629. package/dist/web/assets/plugin-definition-DqIciiTP.js.map +0 -1
  630. package/dist/web/assets/plugin-definition-TuWj1Cbs.js +0 -315
  631. package/dist/web/assets/plugin-definition-TuWj1Cbs.js.map +0 -1
  632. package/dist/web/assets/plugin-definition-YXnH0eeN.js +0 -304
  633. package/dist/web/assets/plugin-definition-YXnH0eeN.js.map +0 -1
  634. package/dist/web/assets/react-BFk_Rnee.js +0 -47
  635. package/dist/web/assets/react-BFk_Rnee.js.map +0 -1
  636. package/dist/web/assets/registries-Tz_dluz3.js +0 -1119
  637. package/dist/web/assets/registries-Tz_dluz3.js.map +0 -1
  638. package/dist/web/assets/remoteEntry.js +0 -84
  639. package/dist/web/assets/remoteEntry.js.map +0 -1
  640. package/dist/web/assets/styles-CdKqeRZD.js +0 -69
  641. package/dist/web/assets/styles-CdKqeRZD.js.map +0 -1
  642. package/dist/web/assets/with-selector-DTXBONcE.js +0 -201
  643. package/dist/web/assets/with-selector-DTXBONcE.js.map +0 -1
@@ -0,0 +1,1287 @@
1
+ import { n as __mf_0 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.mjs-BalS-ZNe.js";
2
+ //#region ../../packages/project-builder-lib/dist/plugins/spec/types.js
3
+ /**
4
+ * Creates a plugin spec with init and use phases.
5
+ *
6
+ * @example
7
+ * ```typescript
8
+ * const mySpec = createPluginSpec('core/my-spec', {
9
+ * initializer: () => {
10
+ * const items = new Map<string, Item>();
11
+ * return {
12
+ * init: {
13
+ * register: (item: Item) => items.set(item.name, item),
14
+ * },
15
+ * use: () => ({
16
+ * get: (name: string) => items.get(name),
17
+ * getAll: () => [...items.values()],
18
+ * }),
19
+ * };
20
+ * },
21
+ * });
22
+ * ```
23
+ *
24
+ * @param name - Unique identifier for the spec (e.g., 'core/my-spec')
25
+ * @param options - Options including the initializer function
26
+ * @returns A plugin spec that can be used with SpecStore
27
+ */
28
+ function createPluginSpec(name, options) {
29
+ const { initializer } = options;
30
+ return {
31
+ type: "plugin-spec",
32
+ name,
33
+ initializer
34
+ };
35
+ }
36
+ //#endregion
37
+ //#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/_internal/compareValues.mjs
38
+ function compareValues(a, b, order) {
39
+ if (a < b) return order === "asc" ? -1 : 1;
40
+ if (a > b) return order === "asc" ? 1 : -1;
41
+ return 0;
42
+ }
43
+ //#endregion
44
+ //#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/array/orderBy.mjs
45
+ function orderBy(arr, criteria, orders) {
46
+ return arr.slice().sort((a, b) => {
47
+ const ordersLength = orders.length;
48
+ for (let i = 0; i < criteria.length; i++) {
49
+ const order = ordersLength > i ? orders[i] : orders[ordersLength - 1];
50
+ const criterion = criteria[i];
51
+ const criterionIsFunction = typeof criterion === "function";
52
+ const result = compareValues(criterionIsFunction ? criterion(a) : a[criterion], criterionIsFunction ? criterion(b) : b[criterion], order);
53
+ if (result !== 0) return result;
54
+ }
55
+ return 0;
56
+ });
57
+ }
58
+ //#endregion
59
+ //#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/array/sortBy.mjs
60
+ function sortBy(arr, criteria) {
61
+ return orderBy(arr, criteria, ["asc"]);
62
+ }
63
+ //#endregion
64
+ //#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/function/noop.mjs
65
+ function noop() {}
66
+ //#endregion
67
+ //#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
68
+ function getSymbols(object) {
69
+ return Object.getOwnPropertySymbols(object).filter((symbol) => Object.prototype.propertyIsEnumerable.call(object, symbol));
70
+ }
71
+ //#endregion
72
+ //#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
73
+ function getTag(value) {
74
+ if (value == null) return value === void 0 ? "[object Undefined]" : "[object Null]";
75
+ return Object.prototype.toString.call(value);
76
+ }
77
+ //#endregion
78
+ //#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/compat/_internal/tags.mjs
79
+ var regexpTag = "[object RegExp]";
80
+ var stringTag = "[object String]";
81
+ var numberTag = "[object Number]";
82
+ var booleanTag = "[object Boolean]";
83
+ var argumentsTag = "[object Arguments]";
84
+ var symbolTag = "[object Symbol]";
85
+ var dateTag = "[object Date]";
86
+ var mapTag = "[object Map]";
87
+ var setTag = "[object Set]";
88
+ var arrayTag = "[object Array]";
89
+ var functionTag = "[object Function]";
90
+ var arrayBufferTag = "[object ArrayBuffer]";
91
+ var objectTag = "[object Object]";
92
+ var errorTag = "[object Error]";
93
+ var dataViewTag = "[object DataView]";
94
+ var uint8ArrayTag = "[object Uint8Array]";
95
+ var uint8ClampedArrayTag = "[object Uint8ClampedArray]";
96
+ var uint16ArrayTag = "[object Uint16Array]";
97
+ var uint32ArrayTag = "[object Uint32Array]";
98
+ var bigUint64ArrayTag = "[object BigUint64Array]";
99
+ var int8ArrayTag = "[object Int8Array]";
100
+ var int16ArrayTag = "[object Int16Array]";
101
+ var int32ArrayTag = "[object Int32Array]";
102
+ var bigInt64ArrayTag = "[object BigInt64Array]";
103
+ var float32ArrayTag = "[object Float32Array]";
104
+ var float64ArrayTag = "[object Float64Array]";
105
+ //#endregion
106
+ //#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
107
+ function isPlainObject(value) {
108
+ if (!value || typeof value !== "object") return false;
109
+ const proto = Object.getPrototypeOf(value);
110
+ if (!(proto === null || proto === Object.prototype || Object.getPrototypeOf(proto) === null)) return false;
111
+ return Object.prototype.toString.call(value) === "[object Object]";
112
+ }
113
+ //#endregion
114
+ //#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/_internal/isEqualsSameValueZero.mjs
115
+ function isEqualsSameValueZero(value, other) {
116
+ return value === other || Number.isNaN(value) && Number.isNaN(other);
117
+ }
118
+ //#endregion
119
+ //#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/predicate/isEqualWith.mjs
120
+ function isEqualWith(a, b, areValuesEqual) {
121
+ return isEqualWithImpl(a, b, void 0, void 0, void 0, void 0, areValuesEqual);
122
+ }
123
+ function isEqualWithImpl(a, b, property, aParent, bParent, stack, areValuesEqual) {
124
+ const result = areValuesEqual(a, b, property, aParent, bParent, stack);
125
+ if (result !== void 0) return result;
126
+ if (typeof a === typeof b) switch (typeof a) {
127
+ case "bigint":
128
+ case "string":
129
+ case "boolean":
130
+ case "symbol":
131
+ case "undefined": return a === b;
132
+ case "number": return a === b || Object.is(a, b);
133
+ case "function": return a === b;
134
+ case "object": return areObjectsEqual(a, b, stack, areValuesEqual);
135
+ }
136
+ return areObjectsEqual(a, b, stack, areValuesEqual);
137
+ }
138
+ function areObjectsEqual(a, b, stack, areValuesEqual) {
139
+ if (Object.is(a, b)) return true;
140
+ let aTag = getTag(a);
141
+ let bTag = getTag(b);
142
+ if (aTag === "[object Arguments]") aTag = objectTag;
143
+ if (bTag === "[object Arguments]") bTag = objectTag;
144
+ if (aTag !== bTag) return false;
145
+ switch (aTag) {
146
+ case stringTag: return a.toString() === b.toString();
147
+ case numberTag: return isEqualsSameValueZero(a.valueOf(), b.valueOf());
148
+ case booleanTag:
149
+ case dateTag:
150
+ case symbolTag: return Object.is(a.valueOf(), b.valueOf());
151
+ case regexpTag: return a.source === b.source && a.flags === b.flags;
152
+ case functionTag: return a === b;
153
+ }
154
+ stack = stack ?? /* @__PURE__ */ new Map();
155
+ const aStack = stack.get(a);
156
+ const bStack = stack.get(b);
157
+ if (aStack != null && bStack != null) return aStack === b;
158
+ stack.set(a, b);
159
+ stack.set(b, a);
160
+ try {
161
+ switch (aTag) {
162
+ case mapTag:
163
+ if (a.size !== b.size) return false;
164
+ for (const [key, value] of a.entries()) if (!b.has(key) || !isEqualWithImpl(value, b.get(key), key, a, b, stack, areValuesEqual)) return false;
165
+ return true;
166
+ case setTag: {
167
+ if (a.size !== b.size) return false;
168
+ const aValues = Array.from(a.values());
169
+ const bValues = Array.from(b.values());
170
+ for (let i = 0; i < aValues.length; i++) {
171
+ const aValue = aValues[i];
172
+ const index = bValues.findIndex((bValue) => {
173
+ return isEqualWithImpl(aValue, bValue, void 0, a, b, stack, areValuesEqual);
174
+ });
175
+ if (index === -1) return false;
176
+ bValues.splice(index, 1);
177
+ }
178
+ return true;
179
+ }
180
+ case arrayTag:
181
+ case uint8ArrayTag:
182
+ case uint8ClampedArrayTag:
183
+ case uint16ArrayTag:
184
+ case uint32ArrayTag:
185
+ case bigUint64ArrayTag:
186
+ case int8ArrayTag:
187
+ case int16ArrayTag:
188
+ case int32ArrayTag:
189
+ case bigInt64ArrayTag:
190
+ case float32ArrayTag:
191
+ case float64ArrayTag:
192
+ if (typeof Buffer !== "undefined" && Buffer.isBuffer(a) !== Buffer.isBuffer(b)) return false;
193
+ if (a.length !== b.length) return false;
194
+ for (let i = 0; i < a.length; i++) if (!isEqualWithImpl(a[i], b[i], i, a, b, stack, areValuesEqual)) return false;
195
+ return true;
196
+ case arrayBufferTag:
197
+ if (a.byteLength !== b.byteLength) return false;
198
+ return areObjectsEqual(new Uint8Array(a), new Uint8Array(b), stack, areValuesEqual);
199
+ case dataViewTag:
200
+ if (a.byteLength !== b.byteLength || a.byteOffset !== b.byteOffset) return false;
201
+ return areObjectsEqual(new Uint8Array(a), new Uint8Array(b), stack, areValuesEqual);
202
+ case errorTag: return a.name === b.name && a.message === b.message;
203
+ case objectTag: {
204
+ if (!(areObjectsEqual(a.constructor, b.constructor, stack, areValuesEqual) || isPlainObject(a) && isPlainObject(b))) return false;
205
+ const aKeys = [...Object.keys(a), ...getSymbols(a)];
206
+ const bKeys = [...Object.keys(b), ...getSymbols(b)];
207
+ if (aKeys.length !== bKeys.length) return false;
208
+ for (let i = 0; i < aKeys.length; i++) {
209
+ const propKey = aKeys[i];
210
+ const aProp = a[propKey];
211
+ if (!Object.hasOwn(b, propKey)) return false;
212
+ const bProp = b[propKey];
213
+ if (!isEqualWithImpl(aProp, bProp, propKey, a, b, stack, areValuesEqual)) return false;
214
+ }
215
+ return true;
216
+ }
217
+ default: return false;
218
+ }
219
+ } finally {
220
+ stack.delete(a);
221
+ stack.delete(b);
222
+ }
223
+ }
224
+ //#endregion
225
+ //#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/predicate/isEqual.mjs
226
+ function isEqual(a, b) {
227
+ return isEqualWith(a, b, noop);
228
+ }
229
+ //#endregion
230
+ //#region ../../packages/utils/dist/field-map/field-map.js
231
+ /**
232
+ * Field container for a single value that cannot be overridden once set
233
+ */
234
+ var ScalarContainer = class {
235
+ _value;
236
+ defaultValue;
237
+ isSet = false;
238
+ setBySource;
239
+ getDynamicSource;
240
+ constructor(defaultValue, options) {
241
+ this.defaultValue = defaultValue;
242
+ this.getDynamicSource = options?.getDynamicSource;
243
+ }
244
+ getValue() {
245
+ return this._value === void 0 ? this.defaultValue : this._value;
246
+ }
247
+ set(value, source) {
248
+ const setBySource = source ?? this.getDynamicSource?.() ?? "unknown";
249
+ if (this.isSet) throw new Error(`Value has already been set by ${this.setBySource} and cannot be overwritten by ${setBySource}`);
250
+ this._value = value;
251
+ this.isSet = true;
252
+ this.setBySource = setBySource;
253
+ }
254
+ };
255
+ var ArrayContainer = class {
256
+ _stripDuplicates;
257
+ _value;
258
+ constructor(initialValue, options) {
259
+ this._stripDuplicates = options?.stripDuplicates ?? false;
260
+ this._value = initialValue ?? [];
261
+ }
262
+ push(...items) {
263
+ let currentValue = this._value;
264
+ if (this._stripDuplicates) currentValue = [...new Set([...currentValue, ...items])];
265
+ else currentValue = [...currentValue, ...items];
266
+ this._value = currentValue;
267
+ }
268
+ getValue() {
269
+ return this._value;
270
+ }
271
+ };
272
+ var ObjectContainer = class {
273
+ map;
274
+ getDynamicSource;
275
+ constructor(initialValue, options) {
276
+ this.getDynamicSource = options?.getDynamicSource;
277
+ this.map = new Map(Object.entries(initialValue).map(([key, value]) => [key, {
278
+ value,
279
+ setBySource: this.getDynamicSource?.()
280
+ }]));
281
+ }
282
+ set(key, value, source) {
283
+ const existingValue = this.map.get(key);
284
+ const setBySource = source ?? this.getDynamicSource?.() ?? "unknown";
285
+ if (existingValue?.setBySource) throw new Error(`Value for key ${key} has already been set by ${existingValue.setBySource} and cannot be overwritten by ${setBySource}`);
286
+ this.map.set(key, {
287
+ value,
288
+ setBySource
289
+ });
290
+ }
291
+ merge(value, source) {
292
+ const mergeSource = source ?? this.getDynamicSource?.();
293
+ for (const [key, val] of Object.entries(value)) this.set(key, val, mergeSource);
294
+ }
295
+ getValue() {
296
+ return Object.fromEntries([...this.map.entries()].map(([key, value]) => [key, value.value]));
297
+ }
298
+ };
299
+ var MapContainer = class {
300
+ _value;
301
+ getDynamicSource;
302
+ constructor(initialValue, options) {
303
+ this.getDynamicSource = options?.getDynamicSource;
304
+ const initialMap = initialValue ?? /* @__PURE__ */ new Map();
305
+ this._value = new Map([...initialMap.entries()].map(([key, value]) => [key, {
306
+ value,
307
+ setBySource: this.getDynamicSource?.()
308
+ }]));
309
+ }
310
+ set(key, value, source) {
311
+ const existingValue = this._value.get(key);
312
+ const setBySource = source ?? this.getDynamicSource?.() ?? "unknown";
313
+ if (existingValue?.setBySource) throw new Error(`Value for key ${key} has already been set by ${existingValue.setBySource} and cannot be overwritten by ${setBySource}`);
314
+ this._value.set(key, {
315
+ value,
316
+ setBySource
317
+ });
318
+ }
319
+ merge(value, source) {
320
+ const mergeSource = source ?? this.getDynamicSource?.();
321
+ for (const [key, val] of value.entries()) this.set(key, val, mergeSource);
322
+ }
323
+ mergeObj(value, source) {
324
+ const mergeSource = source ?? this.getDynamicSource?.();
325
+ for (const [key, val] of Object.entries(value)) this.set(key, val, mergeSource);
326
+ }
327
+ getValue() {
328
+ return new Map([...this._value.entries()].map(([key, value]) => [key, value.value]));
329
+ }
330
+ };
331
+ /**
332
+ * Named field container
333
+ *
334
+ * This container stores objects that contains a name field that can be used for
335
+ * detecting duplicate names.
336
+ */
337
+ var NamedArrayFieldContainer = class {
338
+ _value;
339
+ getDynamicSource;
340
+ constructor(initialValue, options) {
341
+ this.getDynamicSource = options?.getDynamicSource;
342
+ const value = initialValue ?? [];
343
+ this._value = new Map(value.map((val) => [val.name, {
344
+ value: val,
345
+ setBySource: this.getDynamicSource?.()
346
+ }]));
347
+ }
348
+ add(value, source) {
349
+ const existingValue = this._value.get(value.name);
350
+ const setBySource = source ?? this.getDynamicSource?.() ?? "unknown";
351
+ if (existingValue?.setBySource) throw new Error(`Value for name ${value.name} has already been set by ${existingValue.setBySource} and cannot be overwritten by ${setBySource}`);
352
+ this._value.set(value.name, {
353
+ value,
354
+ setBySource
355
+ });
356
+ }
357
+ addMany(values, source) {
358
+ for (const value of values) this.add(value, source);
359
+ }
360
+ getValue() {
361
+ return sortBy([...this._value.values()].map((value) => value.value), [(v) => v.name]);
362
+ }
363
+ };
364
+ /**
365
+ * Named array field container that returns a map of names to values
366
+ */
367
+ var NamedArrayToMapFieldContainer = class {
368
+ _namedFieldContainer;
369
+ constructor(initialValue, options) {
370
+ this._namedFieldContainer = new NamedArrayFieldContainer(initialValue, options);
371
+ }
372
+ add(value, source) {
373
+ this._namedFieldContainer.add(value, source);
374
+ }
375
+ addMany(values, source) {
376
+ this._namedFieldContainer.addMany(values, source);
377
+ }
378
+ getValue() {
379
+ return new Map(this._namedFieldContainer.getValue().map((value) => [value.name, value]));
380
+ }
381
+ };
382
+ var MapOfMapsContainer = class {
383
+ _value;
384
+ getDynamicSource;
385
+ constructor(initialValue, options) {
386
+ this.getDynamicSource = options?.getDynamicSource;
387
+ const initialMap = initialValue ?? /* @__PURE__ */ new Map();
388
+ this._value = new Map([...initialMap.entries()].map(([key1, innerMap]) => [key1, {
389
+ value: new Map([...innerMap.entries()].map(([key2, value]) => [key2, {
390
+ value,
391
+ setBySource: this.getDynamicSource?.()
392
+ }])),
393
+ setBySource: this.getDynamicSource?.()
394
+ }]));
395
+ }
396
+ set(key1, key2, value, source) {
397
+ const existingOuterValue = this._value.get(key1);
398
+ const setBySource = source ?? this.getDynamicSource?.() ?? "unknown";
399
+ if (!existingOuterValue) {
400
+ const newInnerMap = new Map([[key2, {
401
+ value,
402
+ setBySource
403
+ }]]);
404
+ this._value.set(key1, {
405
+ value: newInnerMap,
406
+ setBySource
407
+ });
408
+ return;
409
+ }
410
+ const existingInnerValue = existingOuterValue.value.get(key2);
411
+ if (existingInnerValue?.setBySource) throw new Error(`Value for keys ${key1}+${key2} has already been set by ${existingInnerValue.setBySource} and cannot be overwritten by ${setBySource}`);
412
+ existingOuterValue.value.set(key2, {
413
+ value,
414
+ setBySource
415
+ });
416
+ }
417
+ merge(key1, value, source) {
418
+ const mergeSource = source ?? this.getDynamicSource?.() ?? "unknown";
419
+ for (const [key2, val] of value.entries()) this.set(key1, key2, val, mergeSource);
420
+ }
421
+ mergeObj(key1, value, source) {
422
+ const mergeSource = source ?? this.getDynamicSource?.() ?? "unknown";
423
+ for (const [key2, val] of Object.entries(value)) this.set(key1, key2, val, mergeSource);
424
+ }
425
+ getValue() {
426
+ return new Map([...this._value.entries()].map(([key1, outerValue]) => [key1, new Map([...outerValue.value.entries()].map(([key2, innerValue]) => [key2, innerValue.value]))]));
427
+ }
428
+ };
429
+ var FieldMapSchemaBuilder = class {
430
+ options;
431
+ constructor(options) {
432
+ this.options = options;
433
+ }
434
+ scalar(defaultValue) {
435
+ return new ScalarContainer(defaultValue, this.options);
436
+ }
437
+ string(defaultValue) {
438
+ return new ScalarContainer(defaultValue, this.options);
439
+ }
440
+ number(defaultValue) {
441
+ return new ScalarContainer(defaultValue, this.options);
442
+ }
443
+ boolean(defaultValue) {
444
+ return new ScalarContainer(defaultValue, this.options);
445
+ }
446
+ array(initialValue, options) {
447
+ return new ArrayContainer(initialValue, options);
448
+ }
449
+ object(defaultValue) {
450
+ return new ObjectContainer(defaultValue, this.options);
451
+ }
452
+ map(initialValue) {
453
+ return new MapContainer(initialValue ?? /* @__PURE__ */ new Map(), this.options);
454
+ }
455
+ mapFromObj(initialValue) {
456
+ return new MapContainer(new Map(Object.entries(initialValue ?? {})), this.options);
457
+ }
458
+ namedArray(initialValue) {
459
+ return new NamedArrayFieldContainer(initialValue, this.options);
460
+ }
461
+ namedArrayToMap(initialValue) {
462
+ return new NamedArrayToMapFieldContainer(initialValue, this.options);
463
+ }
464
+ mapOfMaps(initialValue) {
465
+ return new MapOfMapsContainer(initialValue ?? /* @__PURE__ */ new Map(), this.options);
466
+ }
467
+ mapOfMapsFromObj(initialValue) {
468
+ const map = /* @__PURE__ */ new Map();
469
+ if (initialValue) for (const [key1, innerObj] of Object.entries(initialValue)) map.set(key1, new Map(Object.entries(innerObj)));
470
+ return new MapOfMapsContainer(map, this.options);
471
+ }
472
+ };
473
+ /**
474
+ * Creates a field map with type-safe field definitions
475
+ */
476
+ function createFieldMap(schemaBuilder, options) {
477
+ const schema = schemaBuilder(new FieldMapSchemaBuilder(options));
478
+ return {
479
+ ...schema,
480
+ getValues: () => {
481
+ const values = {};
482
+ for (const key of Object.keys(schema)) values[key] = schema[key].getValue();
483
+ return values;
484
+ }
485
+ };
486
+ }
487
+ //#endregion
488
+ //#region ../../node_modules/.pnpm/nanoid@5.0.9/node_modules/nanoid/index.browser.js
489
+ var random = (bytes) => crypto.getRandomValues(new Uint8Array(bytes));
490
+ var customRandom = (alphabet, defaultSize, getRandom) => {
491
+ let mask = (2 << Math.log2(alphabet.length - 1)) - 1;
492
+ let step = -~(1.6 * mask * defaultSize / alphabet.length);
493
+ return (size = defaultSize) => {
494
+ let id = "";
495
+ while (true) {
496
+ let bytes = getRandom(step);
497
+ let j = step | 0;
498
+ while (j--) {
499
+ id += alphabet[bytes[j] & mask] || "";
500
+ if (id.length >= size) return id;
501
+ }
502
+ }
503
+ };
504
+ };
505
+ var customAlphabet = (alphabet, size = 21) => customRandom(alphabet, size | 0, random);
506
+ //#endregion
507
+ //#region ../../packages/utils/dist/string/random-key.js
508
+ /**
509
+ * Use custom ID generator for characters that be easily selected
510
+ */
511
+ var customNanoid = customAlphabet(`0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_`, 12);
512
+ /**
513
+ * Generate a random key string made up of numbers, lowercase, and uppercase letters
514
+ * @returns A random key string
515
+ */
516
+ function randomKey(length = 12) {
517
+ return customNanoid(length);
518
+ }
519
+ //#endregion
520
+ //#region ../../packages/utils/dist/validators/validation-hint-registry.js
521
+ /**
522
+ * Registry that stores human-readable validation hints on Zod schema instances.
523
+ *
524
+ * Used by `buildTsDescriptionRegistry` to annotate TypeScript type output with
525
+ * validation constraints (e.g., "camelCase", "CONSTANT_CASE") as JSDoc comments.
526
+ *
527
+ * Validators register hints at module load time. The registry is consumed
528
+ * during schema-to-TypeScript conversion to produce annotated output.
529
+ */
530
+ var validationHintRegistry = __mf_0.registry();
531
+ //#endregion
532
+ //#region ../../packages/utils/dist/validators/case-validators.js
533
+ /**
534
+ * Regex for validating kebab case, e.g. "my-project".
535
+ */
536
+ var KEBAB_CASE_REGEX = /^[a-z0-9-]+$/;
537
+ /**
538
+ * Regex for validating pascal case, e.g. "MyProject".
539
+ */
540
+ var PASCAL_CASE_REGEX = /^[A-Z][a-zA-Z0-9]*$/;
541
+ var CASE_VALIDATORS = {
542
+ /**
543
+ * Zod validator for validating kebab case, e.g. "my-project".
544
+ */
545
+ KEBAB_CASE: __mf_0.string().regex(KEBAB_CASE_REGEX, { message: "Must be kebab case (e.g. \"my-project\")" }).register(validationHintRegistry, { description: "kebab-case (e.g. \"my-project\")" }),
546
+ /**
547
+ * Zod validator for validating pascal case, e.g. "MyProject".
548
+ */
549
+ PASCAL_CASE: __mf_0.string().regex(PASCAL_CASE_REGEX, { message: "Must be pascal case (e.g. \"MyProject\")" }).register(validationHintRegistry, { description: "PascalCase (e.g. \"MyProject\")" }),
550
+ /**
551
+ * Zod validator for validating camel case, e.g. "myProject".
552
+ */
553
+ CAMEL_CASE: __mf_0.string().regex(/^[a-z][a-zA-Z0-9]*$/, { message: "Must be camel case (e.g. \"myProject\")" }).register(validationHintRegistry, { description: "camelCase (e.g. \"myProject\")" }),
554
+ /**
555
+ * Zod validator for validating constant case, e.g. "MY_PROJECT".
556
+ */
557
+ CONSTANT_CASE: __mf_0.string().regex(/^[A-Z][A-Z0-9_]*$/, { message: "Must be constant case (e.g. \"MY_PROJECT\")" }).register(validationHintRegistry, { description: "CONSTANT_CASE (e.g. \"MY_PROJECT\")" })
558
+ };
559
+ //#endregion
560
+ //#region ../../packages/project-builder-lib/dist/plugins/context/plugin-context.js
561
+ /**
562
+ * Plugin context module for tracking the current plugin being initialized.
563
+ *
564
+ * Uses a simple synchronous context that works on both Node and browser platforms.
565
+ * This is safe because plugin initialization is synchronous and single-threaded.
566
+ */
567
+ var currentPluginContext;
568
+ /**
569
+ * Runs a function within a plugin context.
570
+ *
571
+ * This sets the current plugin context for the duration of the function execution,
572
+ * allowing nested functions to access the plugin key via `getPluginContext()`.
573
+ *
574
+ * @param context - The plugin context to set
575
+ * @param fn - The function to run within the context
576
+ * @returns The result of the function
577
+ */
578
+ function runInPluginContext(context, fn) {
579
+ const prev = currentPluginContext;
580
+ currentPluginContext = context;
581
+ try {
582
+ return fn();
583
+ } finally {
584
+ currentPluginContext = prev;
585
+ }
586
+ }
587
+ /**
588
+ * Gets the current plugin context if one exists.
589
+ *
590
+ * @returns The current plugin context, or undefined if not in a plugin context
591
+ */
592
+ function getPluginContext() {
593
+ return currentPluginContext;
594
+ }
595
+ //#endregion
596
+ //#region ../../packages/project-builder-lib/dist/plugins/utils/create-plugin-field-map.js
597
+ /**
598
+ * Creates a field map that automatically tracks which plugin registered each value.
599
+ *
600
+ * Similar to `createConfigFieldMap` in the sync package, this utility uses the
601
+ * current plugin context to track the source of registrations. This enables
602
+ * clear error messages when registration conflicts occur.
603
+ *
604
+ * @example
605
+ * ```typescript
606
+ * const fieldMap = createPluginFieldMap((t) => ({
607
+ * transformers: t.map<string, Transformer>(),
608
+ * }));
609
+ *
610
+ * // When a plugin tries to overwrite a value:
611
+ * // Error: Value for key 'myTransformer' has already been set by plugin-auth
612
+ * // and cannot be overwritten by plugin-storage
613
+ * ```
614
+ *
615
+ * @param schemaBuilder - A function that builds the field map schema
616
+ * @returns A field map with automatic source tracking
617
+ */
618
+ function createPluginFieldMap(schemaBuilder) {
619
+ return createFieldMap(schemaBuilder, { getDynamicSource: () => getPluginContext()?.pluginKey });
620
+ }
621
+ //#endregion
622
+ //#region ../../packages/project-builder-lib/dist/plugins/utils/create-field-map-spec.js
623
+ /**
624
+ * Creates a plugin spec backed by a FieldMap for automatic source tracking.
625
+ *
626
+ * @param name - Unique identifier for the spec
627
+ * @param schemaBuilder - Function that builds the field map schema
628
+ * @param options - Optional configuration including custom use interface
629
+ */
630
+ function createFieldMapSpec(name, schemaBuilder, options) {
631
+ return createPluginSpec(name, { initializer: () => {
632
+ const fieldMap = createPluginFieldMap(schemaBuilder);
633
+ return {
634
+ init: fieldMap,
635
+ use: () => {
636
+ const values = fieldMap.getValues();
637
+ if (options?.use) return options.use(values);
638
+ return values;
639
+ }
640
+ };
641
+ } });
642
+ }
643
+ //#endregion
644
+ //#region ../../packages/project-builder-lib/dist/references/definition-ref-registry.js
645
+ /**
646
+ * Global registry that stores Baseplate metadata on Zod schema instances.
647
+ *
648
+ * Uses a plain WeakMap to avoid Zod's `$replace<Meta, S>` type substitution
649
+ * which causes "type instantiation excessively deep" errors with complex unions.
650
+ *
651
+ * Stores an array of metadata per schema to support schemas that carry multiple
652
+ * annotations (e.g. a schema that is both an `entity` and a `ref-context`).
653
+ *
654
+ * Used by `withEnt`, `withRef`, `withExpression`, and `refContext` to attach
655
+ * metadata to schema nodes. The parallel schema+data walker reads this registry
656
+ * to extract entity/reference/expression information after validation.
657
+ */
658
+ var definitionRefRegistry = (() => {
659
+ const map = /* @__PURE__ */ new WeakMap();
660
+ return {
661
+ add(schema, meta) {
662
+ const existing = map.get(schema);
663
+ if (existing) {
664
+ if ((meta.kind === "entity" || meta.kind === "reference") && existing.some((e) => e.kind === meta.kind && e.type === meta.type)) throw new Error(`Duplicate definition ref metadata kind "${meta.kind}" for type "${meta.type.name}" on the same schema instance. This usually means a shared/module-level schema was passed to withEnt/withRef multiple times. Create a fresh schema instance instead.`);
665
+ existing.push(meta);
666
+ } else map.set(schema, [meta]);
667
+ },
668
+ getAll(schema) {
669
+ return map.get(schema) ?? [];
670
+ },
671
+ has(schema) {
672
+ return map.has(schema);
673
+ }
674
+ };
675
+ })();
676
+ //#endregion
677
+ //#region ../../packages/project-builder-lib/dist/references/expression-parser-spec.js
678
+ /**
679
+ * Plugin spec for registering expression parsers.
680
+ *
681
+ * Expression parsers handle parsing, validation, and rename detection
682
+ * for expression fields in the project definition (e.g., authorizer
683
+ * role expressions).
684
+ *
685
+ * Built-in parsers (authorizer expressions) are registered by core modules.
686
+ * Plugins can register additional parsers during initialization.
687
+ *
688
+ * @example
689
+ * ```typescript
690
+ * createPluginModule({
691
+ * dependencies: { expressionParsers: expressionParserSpec },
692
+ * initialize: ({ expressionParsers }) => {
693
+ * expressionParsers.parsers.set('my-expression', myParser);
694
+ * },
695
+ * });
696
+ * ```
697
+ */
698
+ var expressionParserSpec = createFieldMapSpec("core/expression-parsers", (t) => ({ parsers: t.map() }), { use: (values) => ({ getParser: (name) => values.parsers.get(name) }) });
699
+ //#endregion
700
+ //#region ../../packages/project-builder-lib/dist/references/expression-types.js
701
+ /**
702
+ * A pluggable parser for ref expressions.
703
+ *
704
+ * The parser is format-agnostic - the core references system
705
+ * doesn't know or care what format the expressions are in. The parser
706
+ * handles all parsing, validation, and rename handling.
707
+ *
708
+ * Parsers can declare required slots via the TRequiredSlots generic parameter.
709
+ * When a parser requires slots, TypeScript enforces that they are provided
710
+ * when calling `withExpression()`.
711
+ *
712
+ * @typeParam TValue - The type of the raw expression value (e.g., string for TS expressions)
713
+ * @typeParam TParseResult - The type of the parsed result (e.g., AST for TS expressions)
714
+ * @typeParam TRequiredSlots - Record of required slot names to entity types
715
+ *
716
+ * @example
717
+ * ```typescript
718
+ * // A simple parser with no required slots
719
+ * class StubParser extends RefExpressionParser<string, undefined> {
720
+ * readonly name = 'stub';
721
+ * parse(): undefined { return undefined; }
722
+ * getWarnings(): [] { return []; }
723
+ * getReferencedEntities(): [] { return []; }
724
+ * }
725
+ *
726
+ * // A parser that requires a model slot
727
+ * class AuthorizerParser extends RefExpressionParser<
728
+ * string,
729
+ * TsAst,
730
+ * { model: typeof modelEntityType }
731
+ * > {
732
+ * readonly name = 'authorizer';
733
+ * // TypeScript enforces slot requirement in withExpression()
734
+ * }
735
+ * ```
736
+ */
737
+ var RefExpressionParser = class {
738
+ /**
739
+ * Convenience method that combines parse() and getWarnings() into a single call.
740
+ * Parses the expression and returns all validation warnings (including parse errors).
741
+ *
742
+ * @param value - The raw expression value
743
+ * @param projectDef - The project definition for context
744
+ * @param context - Validation context with project definition and plugin store
745
+ * @param resolvedSlots - The resolved slot paths for this expression
746
+ * @returns Array of warnings (empty if valid)
747
+ */
748
+ validate(value, projectDef, context, resolvedSlots) {
749
+ const parseResult = this.parse(value, projectDef);
750
+ if (!parseResult.success) return [{ message: parseResult.error }];
751
+ return this.getWarnings(parseResult.value, context, resolvedSlots);
752
+ }
753
+ /**
754
+ * Phantom property for TRequiredSlots type inference.
755
+ * This is never actually used at runtime.
756
+ * @internal
757
+ */
758
+ _requiredSlots;
759
+ };
760
+ //#endregion
761
+ //#region ../../packages/project-builder-lib/dist/references/ref-context-slot.js
762
+ /**
763
+ * Creates a new ref context slot for the given entity type.
764
+ * Each call creates a unique slot, even for the same entity type.
765
+ *
766
+ * @param name - A descriptive name for debugging (shows in Symbol description)
767
+ * @param entityType - The entity type this slot will be associated with
768
+ * @returns A new unique RefContextSlot instance
769
+ *
770
+ * @example
771
+ * ```typescript
772
+ * const modelSlot = createRefContextSlot('modelSlot', modelEntityType);
773
+ * const anotherModelSlot = createRefContextSlot('anotherModelSlot', modelEntityType);
774
+ *
775
+ * // These are different slots despite same entity type
776
+ * modelSlot.id !== anotherModelSlot.id
777
+ * // modelSlot.id.toString() === 'Symbol(modelSlot)'
778
+ * ```
779
+ */
780
+ function createRefContextSlot(name, entityType) {
781
+ return {
782
+ entityType,
783
+ id: Symbol(name)
784
+ };
785
+ }
786
+ /**
787
+ * Creates a RefContextSlotMap from a slot definition.
788
+ * Used internally by ctx.refContext().
789
+ *
790
+ * @param slotDefinition - Map of slot names to entity types
791
+ * @returns Map of slot names to RefContextSlot instances
792
+ */
793
+ function createRefContextSlotMap(slotDefinition) {
794
+ return Object.fromEntries(Object.entries(slotDefinition).map(([key, entityType]) => [key, createRefContextSlot(key, entityType)]));
795
+ }
796
+ //#endregion
797
+ //#region ../../packages/project-builder-lib/dist/references/extend-parser-context-with-refs.js
798
+ /**
799
+ * Creates a string schema annotated as a reference to another entity.
800
+ *
801
+ * Can be used standalone:
802
+ * ```typescript
803
+ * withRef({ type: modelEnumEntityType, onDelete: 'RESTRICT' })
804
+ * ```
805
+ *
806
+ * Or on the parser context:
807
+ * ```typescript
808
+ * ctx.withRef({ type: modelEnumEntityType, onDelete: 'RESTRICT' })
809
+ * ```
810
+ */
811
+ function withRef(reference) {
812
+ const schema = __mf_0.string().min(1);
813
+ definitionRefRegistry.add(schema, {
814
+ kind: "reference",
815
+ type: reference.type,
816
+ onDelete: reference.onDelete,
817
+ parentSlot: reference.parentSlot,
818
+ provides: reference.provides
819
+ });
820
+ return schema;
821
+ }
822
+ /**
823
+ * Creates a schema decorator that marks a schema as defining an entity.
824
+ *
825
+ * Can be used with `.apply()`:
826
+ * ```typescript
827
+ * schema.apply(withEnt({ type: modelEntityType, provides: modelSlot }))
828
+ * ```
829
+ *
830
+ * Or via the parser context (2-arg legacy form):
831
+ * ```typescript
832
+ * ctx.withEnt(schema, { type: modelEntityType, provides: modelSlot })
833
+ * ```
834
+ *
835
+ * @param entity - The entity definition input
836
+ * @returns A function that decorates a schema with entity metadata
837
+ */
838
+ function withEnt(entity) {
839
+ return (schema) => {
840
+ const idPath = entity.idPath ?? ["id"];
841
+ definitionRefRegistry.add(schema, {
842
+ kind: "entity",
843
+ type: entity.type,
844
+ idPath,
845
+ getNameResolver: entity.getNameResolver,
846
+ parentSlot: entity.parentSlot,
847
+ provides: entity.provides,
848
+ sortByName: entity.sortByName
849
+ });
850
+ return schema;
851
+ };
852
+ }
853
+ /**
854
+ * Creates ref context slots for use within a schema definition.
855
+ * Slots provide type-safe context for parent-child entity relationships.
856
+ *
857
+ * @example
858
+ * ```typescript
859
+ * ctx.refContext(
860
+ * { modelSlot: modelEntityType },
861
+ * ({ modelSlot }) =>
862
+ * ctx.withEnt(schema, {
863
+ * type: modelEntityType,
864
+ * provides: modelSlot,
865
+ * }),
866
+ * );
867
+ * ```
868
+ */
869
+ function refContext(slotDefinition, schemaBuilder) {
870
+ const slots = createRefContextSlotMap(slotDefinition);
871
+ const schema = schemaBuilder(slots);
872
+ definitionRefRegistry.add(schema, {
873
+ kind: "ref-context",
874
+ slots: Object.values(slots)
875
+ });
876
+ return schema;
877
+ }
878
+ /**
879
+ * Wraps a value with a ref expression parser for deferred validation.
880
+ * The parser handles all parsing, validation, and rename handling.
881
+ *
882
+ * If the parser declares required slots (via TRequiredSlots), they must be
883
+ * provided as the second argument. TypeScript enforces this at compile time.
884
+ *
885
+ * The parser's `createSchema()` method is called to get a fresh schema
886
+ * instance per call site, allowing per-call metadata to be registered
887
+ * independently in the Baseplate registry.
888
+ *
889
+ * @example
890
+ * ```typescript
891
+ * // Parser without required slots
892
+ * const expressionSchema = ctx.withExpression(simpleParser);
893
+ *
894
+ * // Parser with required slots (TypeScript enforces the second argument)
895
+ * ctx.refContext(
896
+ * { modelSlot: modelEntityType },
897
+ * ({ modelSlot }) =>
898
+ * z.object({
899
+ * condition: ctx.withExpression(authorizerParser, { model: modelSlot }),
900
+ * })
901
+ * );
902
+ * ```
903
+ */
904
+ /**
905
+ * Creates a `withExpression` function that resolves parser refs eagerly
906
+ * from the plugin spec store at schema construction time.
907
+ */
908
+ function createWithExpression(plugins) {
909
+ function withExpression(parserOrRef, slots) {
910
+ let parser;
911
+ if (parserOrRef instanceof RefExpressionParser) parser = parserOrRef;
912
+ else {
913
+ if (!plugins) throw new Error(`PluginSpecStore is required to resolve expression parser ref "${parserOrRef.name}". Ensure plugins are provided to createDefinitionSchemaParserContext.`);
914
+ const resolved = plugins.use(expressionParserSpec).getParser(parserOrRef.name);
915
+ if (!resolved) throw new Error(`Expression parser "${parserOrRef.name}" not found in expressionParserSpec. Ensure it is registered via a core module or plugin.`);
916
+ parser = resolved;
917
+ }
918
+ const schema = parser.createSchema();
919
+ definitionRefRegistry.add(schema, {
920
+ kind: "expression",
921
+ parser,
922
+ slots
923
+ });
924
+ return schema;
925
+ }
926
+ return withExpression;
927
+ }
928
+ function extendParserContextWithRefs(plugins) {
929
+ return {
930
+ withRef,
931
+ withEnt(schema, entity) {
932
+ return schema.apply(withEnt(entity));
933
+ },
934
+ refContext,
935
+ withExpression: createWithExpression(plugins)
936
+ };
937
+ }
938
+ //#endregion
939
+ //#region ../../packages/project-builder-lib/dist/schema/creator/definition-default-registry.js
940
+ /**
941
+ * Registry that stores default-value metadata on Zod schema instances.
942
+ *
943
+ * Uses a WeakMap to avoid interfering with Zod's type system.
944
+ * Annotated by `withDefault()`; read by `cleanDefaultValues()`.
945
+ */
946
+ var definitionDefaultRegistry = (() => {
947
+ const map = /* @__PURE__ */ new WeakMap();
948
+ return {
949
+ set(schema, meta) {
950
+ map.set(schema, meta);
951
+ },
952
+ get(schema) {
953
+ return map.get(schema);
954
+ }
955
+ };
956
+ })();
957
+ //#endregion
958
+ //#region ../../packages/project-builder-lib/dist/schema/creator/extend-parser-context-with-defaults.js
959
+ /**
960
+ * Creates a schema decorator that applies a default value.
961
+ *
962
+ * Uses `prefault` to ensure defaults are populated during Zod parse, and
963
+ * registers the default value in the registry so `cleanDefaultValues()` can
964
+ * strip matching values during serialization.
965
+ *
966
+ * Can be used standalone with `.apply()`:
967
+ * ```typescript
968
+ * z.boolean().apply(withDefault(false))
969
+ * ```
970
+ *
971
+ * @param defaultValue - The default value to apply
972
+ * @returns A function that decorates a schema with the default value
973
+ */
974
+ function withDefault(defaultValue) {
975
+ return (schema) => {
976
+ const result = schema.prefault(defaultValue);
977
+ definitionDefaultRegistry.set(result, { defaultValue });
978
+ return result;
979
+ };
980
+ }
981
+ /**
982
+ * Extends the parser context with default value handling functionality.
983
+ *
984
+ * @returns An object containing the withDefault method
985
+ */
986
+ function extendParserContextWithDefaults() {
987
+ return { withDefault: (schema, defaultValue) => withDefault(defaultValue)(schema) };
988
+ }
989
+ //#endregion
990
+ //#region ../../packages/project-builder-lib/dist/schema/creator/schema-creator.js
991
+ var contextCache = /* @__PURE__ */ new WeakMap();
992
+ function createDefinitionSchemaParserContext(options) {
993
+ const cached = contextCache.get(options.plugins);
994
+ if (cached) return cached;
995
+ const context = {
996
+ ...options,
997
+ ...extendParserContextWithRefs(options.plugins),
998
+ ...extendParserContextWithDefaults()
999
+ };
1000
+ contextCache.set(options.plugins, context);
1001
+ return context;
1002
+ }
1003
+ function definitionSchema(creator) {
1004
+ const cache = /* @__PURE__ */ new WeakMap();
1005
+ return (context) => {
1006
+ const cached = cache.get(context);
1007
+ if (cached) return cached;
1008
+ const result = creator(context);
1009
+ cache.set(context, result);
1010
+ return result;
1011
+ };
1012
+ }
1013
+ /**
1014
+ * Creates a schema that requires slots to be passed from parent schemas.
1015
+ * Used when a schema needs to reference entities from a parent context.
1016
+ *
1017
+ * @example
1018
+ * ```typescript
1019
+ * // Child schema requiring modelSlot from parent
1020
+ * export const createModelScalarFieldSchema = definitionSchemaWithSlots(
1021
+ * { modelSlot: modelEntityType },
1022
+ * (ctx, { modelSlot }) =>
1023
+ * ctx.withEnt(schema, {
1024
+ * type: modelScalarFieldEntityType,
1025
+ * parentSlot: modelSlot,
1026
+ * }),
1027
+ * );
1028
+ *
1029
+ * // Called from parent:
1030
+ * createModelScalarFieldSchema(ctx, { modelSlot: parentModelSlot })
1031
+ * ```
1032
+ */
1033
+ function definitionSchemaWithSlots(slotDefinition, creator) {
1034
+ const creatorWithSlots = (context, slots) => creator(context, slots);
1035
+ creatorWithSlots.slotDefinition = slotDefinition;
1036
+ return creatorWithSlots;
1037
+ }
1038
+ /**
1039
+ * Wraps a schema creator that requires slots with placeholder slots,
1040
+ * producing a simple schema creator that can be used for validation-only
1041
+ * contexts (e.g., React Hook Form).
1042
+ *
1043
+ * The placeholder slots allow the schema to parse without actual parent context,
1044
+ * which is useful when you only need schema validation without ref extraction.
1045
+ *
1046
+ * @example
1047
+ * ```typescript
1048
+ * // Schema that normally requires modelSlot from parent
1049
+ * const createModelScalarFieldSchema = definitionSchemaWithSlots(
1050
+ * { modelSlot: modelEntityType },
1051
+ * (ctx, { modelSlot }) => ctx.withEnt(schema, { parentSlot: modelSlot }),
1052
+ * );
1053
+ *
1054
+ * // For React Hook Form validation, wrap with placeholder slots
1055
+ * const fieldSchema = withPlaceholderSlots(createModelScalarFieldSchema);
1056
+ * const zodSchema = fieldSchema(ctx); // No slots needed
1057
+ * ```
1058
+ */
1059
+ function withPlaceholderSlots(schemaCreator) {
1060
+ return (ctx) => {
1061
+ return schemaCreator(ctx, createRefContextSlotMap(schemaCreator.slotDefinition));
1062
+ };
1063
+ }
1064
+ //#endregion
1065
+ //#region ../../packages/project-builder-lib/dist/references/types.js
1066
+ /**
1067
+ * Definition of an entity type.
1068
+ */
1069
+ var DefinitionEntityType = class {
1070
+ prefix;
1071
+ name;
1072
+ parentType;
1073
+ /**
1074
+ * Creates a new entity type.
1075
+ *
1076
+ * @param name - The name of the entity type.
1077
+ * @param prefix - The prefix of the entity type to use in the ID, defaults to the name.
1078
+ * @param parentType - The type of the parent entity if any
1079
+ */
1080
+ constructor(name, prefix, parentType) {
1081
+ this.name = name;
1082
+ this.parentType = parentType;
1083
+ this.prefix = prefix ?? name.split("/").pop() ?? name;
1084
+ }
1085
+ /**
1086
+ * Generates a new ID for the entity type.
1087
+ *
1088
+ * @returns The new ID.
1089
+ */
1090
+ generateNewId() {
1091
+ return `${this.prefix}:${randomKey()}`;
1092
+ }
1093
+ idFromKey(key) {
1094
+ if (!key) return;
1095
+ return `${this.prefix}:${key}`;
1096
+ }
1097
+ keyFromId(id) {
1098
+ return id.split(":")[1];
1099
+ }
1100
+ isId(id) {
1101
+ return id.startsWith(`${this.prefix}:`);
1102
+ }
1103
+ };
1104
+ function createEntityType(name, options) {
1105
+ const { parentType, prefix } = options ?? {};
1106
+ return new DefinitionEntityType(name, prefix, parentType);
1107
+ }
1108
+ //#endregion
1109
+ //#region ../../packages/project-builder-lib/dist/schema/features/feature.js
1110
+ var featureEntityType = createEntityType("feature");
1111
+ var featureNameSchema = CASE_VALIDATORS.KEBAB_CASE;
1112
+ var createFeatureSchema = definitionSchema((ctx) => ctx.withEnt(__mf_0.object({
1113
+ id: __mf_0.string(),
1114
+ name: __mf_0.string().min(1).refine((name) => name.split("/").every((part) => featureNameSchema.safeParse(part).success), { message: "Feature name must be lowercase and contain only letters, numbers, and dashes" }),
1115
+ parentRef: ctx.withRef({
1116
+ type: featureEntityType,
1117
+ onDelete: "DELETE_PARENT"
1118
+ }).optional()
1119
+ }), {
1120
+ type: featureEntityType,
1121
+ sortByName: true
1122
+ }));
1123
+ var createFeaturesSchema = definitionSchema((ctx) => __mf_0.array(createFeatureSchema(ctx)).default([]));
1124
+ //#endregion
1125
+ //#region ../../packages/project-builder-lib/dist/definition/feature/feature-utils.js
1126
+ function getRootFeatures(projectDefinition) {
1127
+ return projectDefinition.features.filter((f) => !f.parentRef);
1128
+ }
1129
+ function getFeatureById(projectDefinition, featureId) {
1130
+ return projectDefinition.features.find((f) => f.id === featureId);
1131
+ }
1132
+ function getFeatureByIdOrThrow(projectDefinition, featureId) {
1133
+ const feature = getFeatureById(projectDefinition, featureId);
1134
+ if (!feature) throw new Error(`Could not find feature with ID ${featureId}`);
1135
+ return feature;
1136
+ }
1137
+ function getFeatureChildren(projectDefinition, featureId) {
1138
+ return projectDefinition.features.filter((f) => f.parentRef === featureId);
1139
+ }
1140
+ function getFeatureName(featureConfig) {
1141
+ return featureConfig.name.split("/").pop() ?? "";
1142
+ }
1143
+ function getFeatureNameById(projectDefinition, featureId) {
1144
+ return getFeatureName(getFeatureByIdOrThrow(projectDefinition, featureId));
1145
+ }
1146
+ function getFeaturePathByIdOrThrow(projectDefinition, featureId) {
1147
+ return getFeatureByIdOrThrow(projectDefinition, featureId).name;
1148
+ }
1149
+ function validateFeatureName(name) {
1150
+ return name.split("/").every((part) => featureNameSchema.safeParse(part).success);
1151
+ }
1152
+ function ensureFeatureByNameRecursively(projectDefinition, nameOrId) {
1153
+ if (featureEntityType.isId(nameOrId)) return nameOrId;
1154
+ const nameParts = nameOrId.split("/");
1155
+ let lastName = "";
1156
+ let parentRef = void 0;
1157
+ for (const part of nameParts) {
1158
+ const feature = projectDefinition.features.find((f) => f.name === part && f.parentRef === parentRef);
1159
+ const name = [lastName, part].filter(Boolean).join("/");
1160
+ if (feature) parentRef = feature.id;
1161
+ else {
1162
+ const newFeature = {
1163
+ id: featureEntityType.generateNewId(),
1164
+ name,
1165
+ parentRef
1166
+ };
1167
+ projectDefinition.features.push(newFeature);
1168
+ parentRef = newFeature.id;
1169
+ }
1170
+ lastName = name;
1171
+ }
1172
+ if (!parentRef) throw new Error("Failed to create feature");
1173
+ return parentRef;
1174
+ }
1175
+ function createPartialFeatures(nameOrPath) {
1176
+ if (!nameOrPath) return [];
1177
+ const parts = nameOrPath.split("/");
1178
+ return parts.map((_, i) => {
1179
+ return {
1180
+ name: parts.slice(0, i + 1).join("/"),
1181
+ parentRef: i > 0 ? parts.slice(0, i).join("/") : void 0
1182
+ };
1183
+ });
1184
+ }
1185
+ function getFeatureByName(projectDefinition, name) {
1186
+ return projectDefinition.features.find((f) => f.name === name);
1187
+ }
1188
+ function getFeatureIdByNameOrThrow(projectDefinition, name) {
1189
+ const feature = getFeatureByName(projectDefinition, name);
1190
+ if (!feature) throw new Error(`Could not find feature with name ${name}`);
1191
+ return feature.id;
1192
+ }
1193
+ function getFeatureIdByNameOrDefault(projectDefinition, name) {
1194
+ return getFeatureByName(projectDefinition, name)?.id ?? name;
1195
+ }
1196
+ function resolveFeatureName(projectDefinition, featureRef) {
1197
+ if (!featureRef) return "";
1198
+ if (featureEntityType.isId(featureRef)) return getFeaturePathByIdOrThrow(projectDefinition, featureRef);
1199
+ return featureRef;
1200
+ }
1201
+ var FeatureUtils = {
1202
+ getRootFeatures,
1203
+ getFeatureById,
1204
+ getFeatureByIdOrThrow,
1205
+ getFeatureChildren,
1206
+ getFeatureName,
1207
+ getFeatureNameById,
1208
+ getFeaturePathByIdOrThrow,
1209
+ validateFeatureName,
1210
+ ensureFeatureByNameRecursively,
1211
+ createPartialFeatures,
1212
+ getFeatureByName,
1213
+ getFeatureIdByNameOrThrow,
1214
+ getFeatureIdByNameOrDefault,
1215
+ resolveFeatureName
1216
+ };
1217
+ //#endregion
1218
+ //#region ../../packages/project-builder-lib/dist/definition/model/model-utils.js
1219
+ function byId(projectDefinition, id) {
1220
+ return projectDefinition.models.find((m) => m.id === id);
1221
+ }
1222
+ function byIdOrThrow(projectDefinition, id) {
1223
+ const model = byId(projectDefinition, id);
1224
+ if (!model) throw new Error(`Could not find model with ID ${id}`);
1225
+ return model;
1226
+ }
1227
+ function byName(projectDefinition, name) {
1228
+ return projectDefinition.models.find((m) => m.name === name);
1229
+ }
1230
+ function byNameOrThrow(projectDefinition, name) {
1231
+ const model = byName(projectDefinition, name);
1232
+ if (!model) throw new Error(`Could not find model with name ${name}`);
1233
+ return model;
1234
+ }
1235
+ function getScalarFieldById(model, id) {
1236
+ const field = model.model.fields.find((f) => f.id === id);
1237
+ if (!field) throw new Error(`Could not find field with ID ${id}`);
1238
+ return field;
1239
+ }
1240
+ function getRelationsToModel(projectDefinition, modelId) {
1241
+ return projectDefinition.models.flatMap((m) => m.model.relations.filter((r) => r.modelRef === modelId).map((r) => ({
1242
+ model: m,
1243
+ relation: r
1244
+ })));
1245
+ }
1246
+ function getModelsForFeature(projectDefinition, featureId) {
1247
+ return projectDefinition.models.filter((m) => m.featureRef === featureId);
1248
+ }
1249
+ function getModelIdFields(model) {
1250
+ return model.model.primaryKeyFieldRefs;
1251
+ }
1252
+ function hasService(model) {
1253
+ return model.service.create.enabled || model.service.update.enabled || model.service.delete.enabled || model.service.transformers.length > 0;
1254
+ }
1255
+ function validateModelName(name) {
1256
+ return PASCAL_CASE_REGEX.test(name);
1257
+ }
1258
+ /**
1259
+ * Returns the ID of a model by name, or the name if no model is found.
1260
+ * @param projectDefinition - The project definition.
1261
+ * @param name - The name of the model.
1262
+ * @returns The ID of the model, or the name if no model is found.
1263
+ */
1264
+ function getModelIdByNameOrDefault(projectDefinition, name) {
1265
+ return projectDefinition.models.find((m) => m.name === name)?.id ?? name;
1266
+ }
1267
+ function getPrimaryKeyFields(model) {
1268
+ return model.model.primaryKeyFieldRefs.map((id) => getScalarFieldById(model, id));
1269
+ }
1270
+ var ModelUtils = {
1271
+ byId,
1272
+ byIdOrThrow,
1273
+ byName,
1274
+ byNameOrThrow,
1275
+ getScalarFieldById,
1276
+ getRelationsToModel,
1277
+ getModelsForFeature,
1278
+ getModelIdFields,
1279
+ hasService,
1280
+ validateModelName,
1281
+ getModelIdByNameOrDefault,
1282
+ getPrimaryKeyFields
1283
+ };
1284
+ //#endregion
1285
+ export { getTag as $, isPlainObject as A, int32ArrayTag as B, createPluginFieldMap as C, validationHintRegistry as D, CASE_VALIDATORS as E, dataViewTag as F, regexpTag as G, mapTag as H, dateTag as I, symbolTag as J, setTag as K, float32ArrayTag as L, arrayBufferTag as M, arrayTag as N, isEqual as O, booleanTag as P, uint8ClampedArrayTag as Q, float64ArrayTag as R, createFieldMapSpec as S, runInPluginContext as T, numberTag as U, int8ArrayTag as V, objectTag as W, uint32ArrayTag as X, uint16ArrayTag as Y, uint8ArrayTag as Z, createRefContextSlot as _, featureEntityType as a, expressionParserSpec as b, createEntityType as c, definitionSchemaWithSlots as d, getSymbols as et, withPlaceholderSlots as f, withRef as g, withEnt as h, createFeaturesSchema as i, argumentsTag as j, isEqualsSameValueZero as k, createDefinitionSchemaParserContext as l, definitionDefaultRegistry as m, FeatureUtils as n, createPluginSpec as nt, featureNameSchema as o, withDefault as p, stringTag as q, createFeatureSchema as r, DefinitionEntityType as s, ModelUtils as t, sortBy as tt, definitionSchema as u, createRefContextSlotMap as v, getPluginContext as w, definitionRefRegistry as x, RefExpressionParser as y, int16ArrayTag as z };
1286
+
1287
+ //# sourceMappingURL=model-utils-BPfI0c3Y.js.map