@baseplate-dev/plugin-auth 3.0.4 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (281) hide show
  1. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts +39 -25
  2. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts.map +1 -1
  3. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js +18 -24
  4. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js.map +1 -1
  5. package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts +16 -0
  6. package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts.map +1 -1
  7. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.d.ts +1 -0
  8. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.d.ts.map +1 -1
  9. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.js +1 -0
  10. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.js.map +1 -1
  11. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.d.ts +9 -0
  12. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.d.ts.map +1 -1
  13. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.js +15 -2
  14. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.js.map +1 -1
  15. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.d.ts +10 -0
  16. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.d.ts.map +1 -1
  17. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.js +18 -2
  18. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.js.map +1 -1
  19. package/dist/auth0/generators/fastify/auth0-module/templates/module/schema/user-session.queries.ts +22 -0
  20. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts +0 -5
  21. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts.map +1 -1
  22. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js +1 -10
  23. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js.map +1 -1
  24. package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts +0 -18
  25. package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts.map +1 -1
  26. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts +0 -2
  27. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts.map +1 -1
  28. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.js +0 -2
  29. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.js.map +1 -1
  30. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.d.ts +1 -7
  31. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.d.ts.map +1 -1
  32. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.js +3 -12
  33. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.js.map +1 -1
  34. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts +0 -1
  35. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts.map +1 -1
  36. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js +0 -1
  37. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js.map +1 -1
  38. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts +0 -23
  39. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts.map +1 -1
  40. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js +4 -33
  41. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js.map +1 -1
  42. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +25 -4
  43. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts.map +1 -1
  44. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js +16 -13
  45. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js.map +1 -1
  46. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +24 -7
  47. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts.map +1 -1
  48. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts +0 -1
  49. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts.map +1 -1
  50. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js +0 -1
  51. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js.map +1 -1
  52. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +13 -6
  53. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts.map +1 -1
  54. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js +5 -12
  55. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js.map +1 -1
  56. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +12 -5
  57. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts.map +1 -1
  58. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js +3 -12
  59. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js.map +1 -1
  60. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts +3 -2
  61. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts.map +1 -1
  62. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js +26 -7
  63. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js.map +1 -1
  64. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +34 -12
  65. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +25 -4
  66. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts.map +1 -1
  67. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js +35 -25
  68. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js.map +1 -1
  69. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +24 -7
  70. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts.map +1 -1
  71. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts +0 -1
  72. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts.map +1 -1
  73. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js +0 -1
  74. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js.map +1 -1
  75. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +13 -6
  76. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts.map +1 -1
  77. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js +5 -12
  78. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js.map +1 -1
  79. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +24 -7
  80. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts.map +1 -1
  81. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js +3 -12
  82. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js.map +1 -1
  83. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts +3 -2
  84. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts.map +1 -1
  85. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js +22 -6
  86. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js.map +1 -1
  87. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx +30 -11
  88. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts.map +1 -1
  89. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js +7 -11
  90. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js.map +1 -1
  91. package/dist/local-auth/admin/node.d.ts.map +1 -1
  92. package/dist/local-auth/admin/node.js +2 -6
  93. package/dist/local-auth/admin/node.js.map +1 -1
  94. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts +12 -3
  95. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts.map +1 -1
  96. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.js +0 -1
  97. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.js.map +1 -1
  98. package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts +36 -18
  99. package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts.map +1 -1
  100. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts +0 -3
  101. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts.map +1 -1
  102. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js +0 -3
  103. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js.map +1 -1
  104. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts +13 -6
  105. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts.map +1 -1
  106. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js +5 -12
  107. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js.map +1 -1
  108. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts +0 -1
  109. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts.map +1 -1
  110. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js +0 -1
  111. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js.map +1 -1
  112. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts +48 -30
  113. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts.map +1 -1
  114. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js +6 -49
  115. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js.map +1 -1
  116. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts +1 -0
  117. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts.map +1 -1
  118. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js +9 -2
  119. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js.map +1 -1
  120. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.ts +10 -2
  121. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts +2 -2
  122. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts.map +1 -1
  123. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.js +0 -1
  124. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.js.map +1 -1
  125. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.ts +2 -2
  126. package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts.map +1 -1
  127. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +3 -0
  128. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js.map +1 -1
  129. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +6 -1
  130. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts.map +1 -1
  131. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +12 -2
  132. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts.map +1 -1
  133. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js +5 -2
  134. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js.map +1 -1
  135. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js +16 -0
  136. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js.map +1 -1
  137. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.ts +19 -0
  138. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +12 -3
  139. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +1 -1
  140. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js +1 -8
  141. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js.map +1 -1
  142. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +36 -7
  143. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts.map +1 -1
  144. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts +0 -1
  145. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts.map +1 -1
  146. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js +0 -1
  147. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js.map +1 -1
  148. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +13 -6
  149. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +1 -1
  150. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js +5 -12
  151. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js.map +1 -1
  152. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +48 -9
  153. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts.map +1 -1
  154. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js +5 -13
  155. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js.map +1 -1
  156. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +11 -2
  157. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js.map +1 -1
  158. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +12 -2
  159. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +11 -2
  160. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +1 -1
  161. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +12 -2
  162. package/dist/local-auth/core/generators/react-session/generated/index.d.ts +24 -7
  163. package/dist/local-auth/core/generators/react-session/generated/index.d.ts.map +1 -1
  164. package/dist/local-auth/core/generators/react-session/generated/template-paths.d.ts +0 -1
  165. package/dist/local-auth/core/generators/react-session/generated/template-paths.d.ts.map +1 -1
  166. package/dist/local-auth/core/generators/react-session/generated/template-paths.js +0 -1
  167. package/dist/local-auth/core/generators/react-session/generated/template-paths.js.map +1 -1
  168. package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +13 -7
  169. package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts.map +1 -1
  170. package/dist/local-auth/core/generators/react-session/generated/template-renderers.js +5 -12
  171. package/dist/local-auth/core/generators/react-session/generated/template-renderers.js.map +1 -1
  172. package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +24 -7
  173. package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts.map +1 -1
  174. package/dist/local-auth/core/generators/react-session/generated/typed-templates.js +4 -15
  175. package/dist/local-auth/core/generators/react-session/generated/typed-templates.js.map +1 -1
  176. package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +12 -3
  177. package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts.map +1 -1
  178. package/dist/local-auth/core/generators/react-session/react-session.generator.js +0 -1
  179. package/dist/local-auth/core/generators/react-session/react-session.generator.js.map +1 -1
  180. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.d.ts.map +1 -1
  181. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js +10 -2
  182. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js.map +1 -1
  183. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.tsx +11 -2
  184. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts +0 -12
  185. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts.map +1 -1
  186. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts +0 -2
  187. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts.map +1 -1
  188. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js +0 -2
  189. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js.map +1 -1
  190. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.d.ts +1 -7
  191. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.d.ts.map +1 -1
  192. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.js +2 -14
  193. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.js.map +1 -1
  194. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts +0 -1
  195. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts.map +1 -1
  196. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js +0 -1
  197. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js.map +1 -1
  198. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts +0 -15
  199. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts.map +1 -1
  200. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js +2 -31
  201. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js.map +1 -1
  202. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts +0 -5
  203. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts.map +1 -1
  204. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.js +1 -7
  205. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.js.map +1 -1
  206. package/dist/web/assets/{__federation_expose_auth0CoreCommon-DxPG_Wc0.js → __federation_expose_auth0CoreCommon-Ga9LD3d6.js} +3 -3
  207. package/dist/web/assets/{__federation_expose_auth0CoreCommon-DxPG_Wc0.js.map → __federation_expose_auth0CoreCommon-Ga9LD3d6.js.map} +1 -1
  208. package/dist/web/assets/{__federation_expose_auth0CoreWeb-B9jV1EyN.js → __federation_expose_auth0CoreWeb-CZueDXPK.js} +5 -5
  209. package/dist/web/assets/{__federation_expose_auth0CoreWeb-B9jV1EyN.js.map → __federation_expose_auth0CoreWeb-CZueDXPK.js.map} +1 -1
  210. package/dist/web/assets/{__federation_expose_authCoreCommon-Cxa_7fkO.js → __federation_expose_authCoreCommon-BrTLsuJC.js} +3 -3
  211. package/dist/web/assets/{__federation_expose_authCoreCommon-Cxa_7fkO.js.map → __federation_expose_authCoreCommon-BrTLsuJC.js.map} +1 -1
  212. package/dist/web/assets/{__federation_expose_authCoreWeb-CTQI1rXb.js → __federation_expose_authCoreWeb-C8rgnA2v.js} +6 -6
  213. package/dist/web/assets/{__federation_expose_authCoreWeb-CTQI1rXb.js.map → __federation_expose_authCoreWeb-C8rgnA2v.js.map} +1 -1
  214. package/dist/web/assets/{__federation_expose_local-authAdminCommon-C0_ovnDb.js → __federation_expose_local-authAdminCommon-C75-DAzO.js} +2 -2
  215. package/dist/web/assets/{__federation_expose_local-authAdminCommon-C0_ovnDb.js.map → __federation_expose_local-authAdminCommon-C75-DAzO.js.map} +1 -1
  216. package/dist/web/assets/{__federation_expose_local-authAdminWeb-GqHU6av7.js → __federation_expose_local-authAdminWeb-D2xGvwyL.js} +2 -2
  217. package/dist/web/assets/{__federation_expose_local-authAdminWeb-GqHU6av7.js.map → __federation_expose_local-authAdminWeb-D2xGvwyL.js.map} +1 -1
  218. package/dist/web/assets/{__federation_expose_local-authCoreCommon-PHXPCKoj.js → __federation_expose_local-authCoreCommon-BFUbyPYg.js} +3 -3
  219. package/dist/web/assets/{__federation_expose_local-authCoreCommon-PHXPCKoj.js.map → __federation_expose_local-authCoreCommon-BFUbyPYg.js.map} +1 -1
  220. package/dist/web/assets/{__federation_expose_local-authCoreWeb-Dz4oU0uP.js → __federation_expose_local-authCoreWeb-ChyvdsRq.js} +5 -5
  221. package/dist/web/assets/{__federation_expose_local-authCoreWeb-Dz4oU0uP.js.map → __federation_expose_local-authCoreWeb-ChyvdsRq.js.map} +1 -1
  222. package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-CrB_sJO_.js → __federation_expose_placeholder-authCoreCommon-DrFV9FSW.js} +3 -3
  223. package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-CrB_sJO_.js.map → __federation_expose_placeholder-authCoreCommon-DrFV9FSW.js.map} +1 -1
  224. package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-KJ8YuuIQ.js → __federation_expose_placeholder-authCoreWeb-CT8JKYLB.js} +5 -5
  225. package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-KJ8YuuIQ.js.map → __federation_expose_placeholder-authCoreWeb-CT8JKYLB.js.map} +1 -1
  226. package/dist/web/assets/{__federation_fn_import-CVjKjdRb.js → __federation_fn_import-C_QCk5FX.js} +2 -2
  227. package/dist/web/assets/{__federation_fn_import-CVjKjdRb.js.map → __federation_fn_import-C_QCk5FX.js.map} +1 -1
  228. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-BTmJxb08.js → web-DtztAtUw.js} +5 -5
  229. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-BTmJxb08.js.map → web-DtztAtUw.js.map} +1 -1
  230. package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-FK4Jv94w.js → project-builder-lib-CcNtL_U6.js} +293 -216
  231. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CcNtL_U6.js.map +1 -0
  232. package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-jZLf5m_y.js → ui-components-DA_4I2Vy.js} +5 -5
  233. package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-jZLf5m_y.js.map → ui-components-DA_4I2Vy.js.map} +1 -1
  234. package/dist/web/assets/__federation_shared_@baseplate-dev/{utils-CAgM5SRt.js → utils-Bxy-1ETU.js} +34 -3
  235. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-Bxy-1ETU.js.map +1 -0
  236. package/dist/web/assets/__federation_shared_@tanstack/{react-router-DynsSbJG.js → react-router-DooFj-IS.js} +2 -2
  237. package/dist/web/assets/__federation_shared_@tanstack/{react-router-DynsSbJG.js.map → react-router-DooFj-IS.js.map} +1 -1
  238. package/dist/web/assets/{get-auth-plugin-definition-DqZ2Eg7c.js → get-auth-plugin-definition-D2XMaoy7.js} +2 -2
  239. package/dist/web/assets/{get-auth-plugin-definition-DqZ2Eg7c.js.map → get-auth-plugin-definition-D2XMaoy7.js.map} +1 -1
  240. package/dist/web/assets/{index-Dccn3WBN.js → index-DwJT6_Wn.js} +2 -2
  241. package/dist/web/assets/{index-Dccn3WBN.js.map → index-DwJT6_Wn.js.map} +1 -1
  242. package/dist/web/assets/{index.esm-DeCjXqFv.js → index.esm-ChwWPPiL.js} +2 -2
  243. package/dist/web/assets/{index.esm-DeCjXqFv.js.map → index.esm-ChwWPPiL.js.map} +1 -1
  244. package/dist/web/assets/{model-merger-kOQ_dmiE.js → model-merger-gGkFnyaY.js} +7 -2
  245. package/dist/web/assets/model-merger-gGkFnyaY.js.map +1 -0
  246. package/dist/web/assets/{plugin-definition-qkkt1X28.js → plugin-definition-QRBMcFiG.js} +2 -2
  247. package/dist/web/assets/{plugin-definition-qkkt1X28.js.map → plugin-definition-QRBMcFiG.js.map} +1 -1
  248. package/dist/web/assets/{plugin-definition-CxKhFkmJ.js → plugin-definition-_slrOM0G.js} +2 -2
  249. package/dist/web/assets/{plugin-definition-CxKhFkmJ.js.map → plugin-definition-_slrOM0G.js.map} +1 -1
  250. package/dist/web/assets/{plugin-definition-JFxKP18O.js → plugin-definition-hAzbWO7b.js} +2 -2
  251. package/dist/web/assets/{plugin-definition-JFxKP18O.js.map → plugin-definition-hAzbWO7b.js.map} +1 -1
  252. package/dist/web/assets/{plugin-definition-DKygiFuR.js → plugin-definition-rpMj4pr8.js} +2 -2
  253. package/dist/web/assets/{plugin-definition-DKygiFuR.js.map → plugin-definition-rpMj4pr8.js.map} +1 -1
  254. package/dist/web/assets/{react-DA5A88WZ.js → react-DbX1FP85.js} +2 -2
  255. package/dist/web/assets/{react-DA5A88WZ.js.map → react-DbX1FP85.js.map} +1 -1
  256. package/dist/web/assets/remoteEntry.js +10 -10
  257. package/dist/web/assets/{styles-CfTjrsB-.js → styles-DqLt1Blm.js} +3 -3
  258. package/dist/web/assets/{styles-CfTjrsB-.js.map → styles-DqLt1Blm.js.map} +1 -1
  259. package/package.json +12 -12
  260. package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-current-user.gql +0 -10
  261. package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-current-user.ts +0 -30
  262. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.gql +0 -7
  263. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.gql +0 -7
  264. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts +0 -18
  265. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts.map +0 -1
  266. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.gql +0 -10
  267. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.js +0 -22
  268. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.js.map +0 -1
  269. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.ts +0 -39
  270. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.gql +0 -5
  271. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/queries.gql +0 -17
  272. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.gql +0 -7
  273. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.d.ts +0 -14
  274. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.d.ts.map +0 -1
  275. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.gql +0 -10
  276. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.js +0 -23
  277. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.js.map +0 -1
  278. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.ts +0 -35
  279. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-FK4Jv94w.js.map +0 -1
  280. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-CAgM5SRt.js.map +0 -1
  281. package/dist/web/assets/model-merger-kOQ_dmiE.js.map +0 -1
@@ -1,6 +1,6 @@
1
- import { c as createPluginSpec, m as mapValues, a as createEntityType, d as definitionSchemaWithSlots, D as DefinitionReferenceMarker, R as REF_ANNOTATIONS_MARKER_SYMBOL, s as stripRefMarkers, b as createDefinitionSchemaParserContext, g as get, e as set$1, f as definitionSchema, h as modelForeignRelationEntityType, i as modelLocalRelationEntityType, j as modelScalarFieldEntityType, k as modelEntityType, l as modelTransformerEntityType, n as modelEnumValueEntityType, o as modelEnumEntityType, p as featureEntityType, q as modelUniqueConstraintEntityType, r as createFeaturesSchema, M as ModelUtils, t as omit, u as cloneDeep } from '../model-merger-kOQ_dmiE.js';
2
- export { O as DefinitionDiffArrayIncludesField, L as DefinitionDiffKeyedArrayField, N as DefinitionDiffReplacementField, y as DefinitionEntityType, F as FeatureUtils, S as applyDefinitionDiff, I as applyModelMergerDiff, J as applyModelMergerResultInPlace, K as createAndApplyModelMergerResults, Q as createDefinitionDiff, P as createDefinitionDiffConfig, B as createFeatureSchema, v as createInitializedPluginSpec, E as createModelMergerResult, H as createModelMergerResults, w as createRefContextSlot, x as createRefContextSlotMap, G as doesModelMergerResultsHaveChanges, A as featureNameSchema, C as modelMergerDefinitionDiffConfig, z as withPlaceholderSlots } from '../model-merger-kOQ_dmiE.js';
3
- import { importShared } from '../__federation_fn_import-CVjKjdRb.js';
1
+ import { c as createPluginSpec, m as mapValues, a as createEntityType, d as definitionSchemaWithSlots, D as DefinitionReferenceMarker, R as REF_ANNOTATIONS_MARKER_SYMBOL, s as stripRefMarkers, b as createDefinitionSchemaParserContext, g as get, e as set$1, f as definitionSchema, h as modelForeignRelationEntityType, i as modelLocalRelationEntityType, j as modelScalarFieldEntityType, k as modelEntityType, l as modelTransformerEntityType, n as modelEnumValueEntityType, o as modelEnumEntityType, p as featureEntityType, q as modelUniqueConstraintEntityType, r as createFeaturesSchema, M as ModelUtils, t as omit, u as cloneDeep } from '../model-merger-gGkFnyaY.js';
2
+ export { O as DefinitionDiffArrayIncludesField, L as DefinitionDiffKeyedArrayField, N as DefinitionDiffReplacementField, y as DefinitionEntityType, F as FeatureUtils, S as applyDefinitionDiff, I as applyModelMergerDiff, J as applyModelMergerResultInPlace, K as createAndApplyModelMergerResults, Q as createDefinitionDiff, P as createDefinitionDiffConfig, B as createFeatureSchema, v as createInitializedPluginSpec, E as createModelMergerResult, H as createModelMergerResults, w as createRefContextSlot, x as createRefContextSlotMap, G as doesModelMergerResultsHaveChanges, A as featureNameSchema, C as modelMergerDefinitionDiffConfig, z as withPlaceholderSlots } from '../model-merger-gGkFnyaY.js';
3
+ import { importShared } from '../__federation_fn_import-C_QCk5FX.js';
4
4
  import { i as isEqual } from '../isEqual-DAXqKRba.js';
5
5
  import { s as sortBy } from '../sortBy-BPH_zRB8.js';
6
6
 
@@ -312,45 +312,45 @@ function getManagedPluginsForPlugin(pluginStore, pluginKey) {
312
312
  .map((p) => p.metadata);
313
313
  }
314
314
 
315
- const {z: z$s} = await importShared('zod');
315
+ const {z: z$u} = await importShared('zod');
316
316
 
317
317
  // matches semver
318
- const versionSchema = z$s.string().regex(/^(\d+\.\d+\.\d+)$/);
319
- const pluginSpecSupportSchema = z$s.object({
320
- spec: z$s.string().min(1),
321
- version: z$s.string().min(1),
318
+ const versionSchema = z$u.string().regex(/^(\d+\.\d+\.\d+)$/);
319
+ const pluginSpecSupportSchema = z$u.object({
320
+ spec: z$u.string().min(1),
321
+ version: z$u.string().min(1),
322
322
  });
323
- const pluginSpecDependencySchema = z$s.object({
324
- spec: z$s.string(),
325
- version: z$s.string(),
323
+ const pluginSpecDependencySchema = z$u.object({
324
+ spec: z$u.string(),
325
+ version: z$u.string(),
326
326
  });
327
327
  /**
328
328
  * Schema for the plugin's metadata (plugin.json)
329
329
  */
330
- const pluginMetadataSchema = z$s.object({
330
+ const pluginMetadataSchema = z$u.object({
331
331
  /**
332
332
  * The name of the plugin - must be lowercase and contain only letters, numbers, and hyphens
333
333
  */
334
- name: z$s
334
+ name: z$u
335
335
  .string()
336
336
  .min(1)
337
337
  .regex(/^[a-z0-9-]+$/),
338
338
  /**
339
339
  * A list of directories with entrypoints in them. Defaults to ['.']
340
340
  */
341
- moduleDirectories: z$s.array(z$s.string()).optional(),
341
+ moduleDirectories: z$u.array(z$u.string()).optional(),
342
342
  /**
343
343
  * The display name of the plugin
344
344
  */
345
- displayName: z$s.string().min(1),
345
+ displayName: z$u.string().min(1),
346
346
  /**
347
347
  * The icon to display for the plugin as a pointer to the icon in the plugin's static folder
348
348
  */
349
- icon: z$s.string().optional(),
349
+ icon: z$u.string().optional(),
350
350
  /**
351
351
  * A description of the plugin
352
352
  */
353
- description: z$s.string(),
353
+ description: z$u.string(),
354
354
  /**
355
355
  * The fully qualified name of the plugin that manages this plugin,
356
356
  * e.g. "@baseplate-dev/plugin-auth:auth0" would be managed by the "@baseplate-dev/plugin-auth:auth" plugin.
@@ -358,7 +358,7 @@ const pluginMetadataSchema = z$s.object({
358
358
  * Managed plugins do not appear in the plugin list but are managed by the base plugin. If the base
359
359
  * plugin is disabled, the managed plugins will also be disabled.
360
360
  */
361
- managedBy: z$s.string().optional(),
361
+ managedBy: z$u.string().optional(),
362
362
  /**
363
363
  * The version of the plugin using semver
364
364
  */
@@ -366,16 +366,16 @@ const pluginMetadataSchema = z$s.object({
366
366
  /**
367
367
  * Configuration for the specs that the plugin exports/depends on
368
368
  */
369
- specs: z$s
369
+ specs: z$u
370
370
  .object({
371
371
  /**
372
372
  * The specs that the plugin exports
373
373
  */
374
- exports: z$s.array(pluginSpecSupportSchema).optional(),
374
+ exports: z$u.array(pluginSpecSupportSchema).optional(),
375
375
  /**
376
376
  * The specs that the plugin depends on
377
377
  */
378
- dependencies: z$s.array(pluginSpecDependencySchema).optional(),
378
+ dependencies: z$u.array(pluginSpecDependencySchema).optional(),
379
379
  })
380
380
  .optional(),
381
381
  /**
@@ -383,7 +383,7 @@ const pluginMetadataSchema = z$s.object({
383
383
  *
384
384
  * (It can be used once in the definition but cannot be added)
385
385
  */
386
- hidden: z$s.boolean().optional(),
386
+ hidden: z$u.boolean().optional(),
387
387
  });
388
388
 
389
389
  var NOTHING = Symbol.for("immer-nothing");
@@ -1785,7 +1785,7 @@ function computeRelativePath(fromPath, toPath) {
1785
1785
  return relativePath;
1786
1786
  }
1787
1787
 
1788
- function byId$1(projectDefinition, id) {
1788
+ function byId$2(projectDefinition, id) {
1789
1789
  const config = projectDefinition.apps.find((app) => app.id === id);
1790
1790
  if (!config) {
1791
1791
  throw new Error(`Unable to find app with ID ${id}`);
@@ -1816,7 +1816,7 @@ function getBackendRelativePath(appConfig, backendApp, monorepoSettings) {
1816
1816
  return backendRelativePath;
1817
1817
  }
1818
1818
  const AppUtils = {
1819
- byId: byId$1,
1819
+ byId: byId$2,
1820
1820
  getBackendApp,
1821
1821
  getBackendRelativePath,
1822
1822
  getAppDirectory,
@@ -1827,24 +1827,24 @@ function createAppEntryType(name) {
1827
1827
  return name;
1828
1828
  }
1829
1829
 
1830
- const {CASE_VALIDATORS: CASE_VALIDATORS$2} = await importShared('@baseplate-dev/utils');
1830
+ const {CASE_VALIDATORS: CASE_VALIDATORS$3} = await importShared('@baseplate-dev/utils');
1831
1831
 
1832
- const {z: z$r} = await importShared('zod');
1832
+ const {z: z$t} = await importShared('zod');
1833
1833
  const baseAppValidators = {
1834
- id: z$r.string().default(appEntityType.generateNewId()),
1835
- name: CASE_VALIDATORS$2.KEBAB_CASE,
1836
- type: z$r.string(),
1834
+ id: z$t.string().default(appEntityType.generateNewId()),
1835
+ name: CASE_VALIDATORS$3.KEBAB_CASE,
1836
+ type: z$t.string(),
1837
1837
  };
1838
- const baseAppSchema = z$r.object(baseAppValidators);
1838
+ const baseAppSchema = z$t.object(baseAppValidators);
1839
1839
 
1840
- const {z: z$q} = await importShared('zod');
1841
- const createBackendAppSchema = definitionSchemaWithSlots({ appSlot: appEntityType }, () => z$q.object({
1840
+ const {z: z$s} = await importShared('zod');
1841
+ const createBackendAppSchema = definitionSchemaWithSlots({ appSlot: appEntityType }, () => z$s.object({
1842
1842
  ...baseAppValidators,
1843
- type: z$q.literal('backend'),
1844
- enableStripe: z$q.boolean().optional(),
1845
- enablePostmark: z$q.boolean().optional(),
1846
- enableSubscriptions: z$q.boolean().optional(),
1847
- enableAxios: z$q.boolean().optional(),
1843
+ type: z$s.literal('backend'),
1844
+ enableStripe: z$s.boolean().optional(),
1845
+ enablePostmark: z$s.boolean().optional(),
1846
+ enableSubscriptions: z$s.boolean().optional(),
1847
+ enableAxios: z$s.boolean().optional(),
1848
1848
  }));
1849
1849
  const backendAppEntryType = createAppEntryType('backend');
1850
1850
 
@@ -2381,103 +2381,103 @@ const SCALAR_FIELD_TYPES = [
2381
2381
  'enum',
2382
2382
  ];
2383
2383
 
2384
- const {z: z$p} = await importShared('zod');
2384
+ const {z: z$r} = await importShared('zod');
2385
2385
 
2386
2386
  const VALIDATORS = {
2387
- PASCAL_CASE_STRING: z$p
2387
+ PASCAL_CASE_STRING: z$r
2388
2388
  .string()
2389
2389
  .regex(/^[A-Z][a-zA-Z0-9]*$/, "Should be PascalCase, e.g. 'MyModel'"),
2390
- CAMEL_CASE_STRING: z$p
2390
+ CAMEL_CASE_STRING: z$r
2391
2391
  .string()
2392
2392
  .regex(/^[a-z][a-zA-Z0-9]*$/, "Should be camelCase, e.g. 'myField'"),
2393
- CONSTANT_CASE_STRING: z$p
2393
+ CONSTANT_CASE_STRING: z$r
2394
2394
  .string()
2395
2395
  .regex(/^[A-Z][A-Z0-9_]*$/, "Should be CONSTANT_CASE, e.g. 'MY_CONSTANT'"),
2396
- OPTIONAL_CONSTANT_CASE_STRING: z$p
2396
+ OPTIONAL_CONSTANT_CASE_STRING: z$r
2397
2397
  .string()
2398
2398
  .regex(/^[A-Z][A-Z0-9_]*$/, "Should be CONSTANT_CASE, e.g. 'MY_CONSTANT'")
2399
- .or(z$p.literal(''))
2399
+ .or(z$r.literal(''))
2400
2400
  .optional(),
2401
2401
  };
2402
2402
 
2403
- const {z: z$o} = await importShared('zod');
2404
- const createRoleArray = definitionSchema((ctx) => ctx.withDefault(z$o.array(ctx.withRef({
2403
+ const {z: z$q} = await importShared('zod');
2404
+ const createRoleArray = definitionSchema((ctx) => ctx.withDefault(z$q.array(ctx.withRef({
2405
2405
  type: authRoleEntityType,
2406
2406
  onDelete: 'DELETE',
2407
2407
  })), []));
2408
2408
  const createModelGraphqlSchema = definitionSchemaWithSlots({
2409
2409
  modelSlot: modelEntityType,
2410
- }, (ctx, { modelSlot }) => z$o.object({
2411
- objectType: ctx.withDefault(z$o.object({
2412
- enabled: ctx.withDefault(z$o.boolean(), false),
2413
- fields: ctx.withDefault(z$o.array(ctx.withRef({
2410
+ }, (ctx, { modelSlot }) => z$q.object({
2411
+ objectType: ctx.withDefault(z$q.object({
2412
+ enabled: ctx.withDefault(z$q.boolean(), false),
2413
+ fields: ctx.withDefault(z$q.array(ctx.withRef({
2414
2414
  type: modelScalarFieldEntityType,
2415
2415
  onDelete: 'DELETE',
2416
2416
  parentSlot: modelSlot,
2417
2417
  })), []),
2418
- localRelations: ctx.withDefault(z$o.array(ctx.withRef({
2418
+ localRelations: ctx.withDefault(z$q.array(ctx.withRef({
2419
2419
  type: modelLocalRelationEntityType,
2420
2420
  onDelete: 'DELETE',
2421
2421
  parentSlot: modelSlot,
2422
2422
  })), []),
2423
- foreignRelations: ctx.withDefault(z$o.array(ctx.withRef({
2423
+ foreignRelations: ctx.withDefault(z$q.array(ctx.withRef({
2424
2424
  type: modelForeignRelationEntityType,
2425
2425
  onDelete: 'DELETE',
2426
2426
  parentSlot: modelSlot,
2427
2427
  })), []),
2428
2428
  }), {}),
2429
- queries: ctx.withDefault(z$o.object({
2430
- get: ctx.withDefault(z$o.object({
2431
- enabled: ctx.withDefault(z$o.boolean(), false),
2429
+ queries: ctx.withDefault(z$q.object({
2430
+ get: ctx.withDefault(z$q.object({
2431
+ enabled: ctx.withDefault(z$q.boolean(), false),
2432
2432
  roles: createRoleArray(ctx),
2433
2433
  }), {}),
2434
- list: ctx.withDefault(z$o.object({
2435
- enabled: ctx.withDefault(z$o.boolean(), false),
2434
+ list: ctx.withDefault(z$q.object({
2435
+ enabled: ctx.withDefault(z$q.boolean(), false),
2436
2436
  roles: createRoleArray(ctx),
2437
2437
  }), {}),
2438
2438
  }), {}),
2439
- mutations: ctx.withDefault(z$o.object({
2440
- create: ctx.withDefault(z$o.object({
2441
- enabled: ctx.withDefault(z$o.boolean(), false),
2439
+ mutations: ctx.withDefault(z$q.object({
2440
+ create: ctx.withDefault(z$q.object({
2441
+ enabled: ctx.withDefault(z$q.boolean(), false),
2442
2442
  roles: createRoleArray(ctx),
2443
2443
  }), {}),
2444
- update: ctx.withDefault(z$o.object({
2445
- enabled: ctx.withDefault(z$o.boolean(), false),
2444
+ update: ctx.withDefault(z$q.object({
2445
+ enabled: ctx.withDefault(z$q.boolean(), false),
2446
2446
  roles: createRoleArray(ctx),
2447
2447
  }), {}),
2448
- delete: ctx.withDefault(z$o.object({
2449
- enabled: ctx.withDefault(z$o.boolean(), false),
2448
+ delete: ctx.withDefault(z$q.object({
2449
+ enabled: ctx.withDefault(z$q.boolean(), false),
2450
2450
  roles: createRoleArray(ctx),
2451
2451
  }), {}),
2452
2452
  }), {}),
2453
2453
  }));
2454
2454
 
2455
- const {z: z$n} = await importShared('zod');
2455
+ const {z: z$p} = await importShared('zod');
2456
2456
 
2457
2457
  const baseTransformerFields = {
2458
- id: z$n.string(),
2459
- type: z$n.string().min(1),
2458
+ id: z$p.string(),
2459
+ type: z$p.string().min(1),
2460
2460
  };
2461
- const baseTransformerSchema = z$n.looseObject(baseTransformerFields);
2461
+ const baseTransformerSchema = z$p.looseObject(baseTransformerFields);
2462
2462
  function createModelTransformerType(payload) {
2463
2463
  return payload;
2464
2464
  }
2465
2465
 
2466
- const {z: z$m} = await importShared('zod');
2467
- const createEmbeddedRelationTransformerSchema = definitionSchemaWithSlots({ modelSlot: modelEntityType }, (ctx, { modelSlot }) => ctx.refContext({ embeddedModelSlot: modelEntityType }, ({ embeddedModelSlot }) => ctx.withEnt(z$m.object({
2466
+ const {z: z$o} = await importShared('zod');
2467
+ const createEmbeddedRelationTransformerSchema = definitionSchemaWithSlots({ modelSlot: modelEntityType }, (ctx, { modelSlot }) => ctx.refContext({ embeddedModelSlot: modelEntityType }, ({ embeddedModelSlot }) => ctx.withEnt(z$o.object({
2468
2468
  ...baseTransformerFields,
2469
2469
  foreignRelationRef: ctx.withRef({
2470
2470
  type: modelForeignRelationEntityType,
2471
2471
  onDelete: 'DELETE_PARENT',
2472
2472
  parentSlot: modelSlot,
2473
2473
  }),
2474
- type: z$m.literal('embeddedRelation'),
2475
- embeddedFieldNames: z$m.array(ctx.withRef({
2474
+ type: z$o.literal('embeddedRelation'),
2475
+ embeddedFieldNames: z$o.array(ctx.withRef({
2476
2476
  type: modelScalarFieldEntityType,
2477
2477
  onDelete: 'RESTRICT',
2478
2478
  parentSlot: embeddedModelSlot,
2479
2479
  })),
2480
- embeddedTransformerNames: z$m
2480
+ embeddedTransformerNames: z$o
2481
2481
  .array(ctx.withRef({
2482
2482
  type: modelTransformerEntityType,
2483
2483
  onDelete: 'RESTRICT',
@@ -2537,54 +2537,54 @@ const modelTransformerSpec = createPluginSpec('core/model-transformer', {
2537
2537
  defaultInitializer: createModelTransformerImplementation,
2538
2538
  });
2539
2539
 
2540
- const z$l = await importShared('zod');
2540
+ const z$n = await importShared('zod');
2541
2541
  const createTransformerSchema = definitionSchemaWithSlots({ modelSlot: modelEntityType }, (ctx, slots) => {
2542
2542
  const transformers = ctx.plugins
2543
2543
  .getPluginSpec(modelTransformerSpec)
2544
2544
  .getModelTransformers();
2545
- return z$l.discriminatedUnion('type', Object.values(transformers).map((transformer) => transformer.createSchema(ctx, slots)));
2545
+ return z$n.discriminatedUnion('type', Object.values(transformers).map((transformer) => transformer.createSchema(ctx, slots)));
2546
2546
  });
2547
2547
 
2548
- const {z: z$k} = await importShared('zod');
2549
- const createEnumValueSchema = definitionSchemaWithSlots({ enumSlot: modelEnumEntityType }, (ctx, { enumSlot }) => ctx.withEnt(z$k.object({
2550
- id: z$k.string(),
2551
- name: z$k.string().min(1),
2552
- friendlyName: z$k.string().min(1),
2548
+ const {z: z$m} = await importShared('zod');
2549
+ const createEnumValueSchema = definitionSchemaWithSlots({ enumSlot: modelEnumEntityType }, (ctx, { enumSlot }) => ctx.withEnt(z$m.object({
2550
+ id: z$m.string(),
2551
+ name: z$m.string().min(1),
2552
+ friendlyName: z$m.string().min(1),
2553
2553
  }), {
2554
2554
  type: modelEnumValueEntityType,
2555
2555
  parentSlot: enumSlot,
2556
2556
  }));
2557
- const createEnumBaseSchema = definitionSchemaWithSlots({ enumSlot: modelEnumEntityType }, (ctx, { enumSlot }) => z$k.object({
2558
- id: z$k.string(),
2559
- name: z$k.string().min(1),
2557
+ const createEnumBaseSchema = definitionSchemaWithSlots({ enumSlot: modelEnumEntityType }, (ctx, { enumSlot }) => z$m.object({
2558
+ id: z$m.string(),
2559
+ name: z$m.string().min(1),
2560
2560
  featureRef: ctx.withRef({
2561
2561
  type: featureEntityType,
2562
2562
  onDelete: 'RESTRICT',
2563
2563
  }),
2564
- values: z$k.array(createEnumValueSchema(ctx, { enumSlot })),
2565
- isExposed: z$k.boolean(),
2564
+ values: z$m.array(createEnumValueSchema(ctx, { enumSlot })),
2565
+ isExposed: z$m.boolean(),
2566
2566
  }));
2567
2567
  const createEnumSchema = definitionSchema((ctx) => ctx.refContext({ enumSlot: modelEnumEntityType }, ({ enumSlot }) => ctx.withEnt(createEnumBaseSchema(ctx, { enumSlot }), {
2568
2568
  type: modelEnumEntityType,
2569
2569
  provides: enumSlot,
2570
2570
  })));
2571
2571
 
2572
- const {z: z$j} = await importShared('zod');
2572
+ const {z: z$l} = await importShared('zod');
2573
2573
  const createModelScalarFieldSchema = definitionSchemaWithSlots({ modelSlot: modelEntityType }, (ctx, { modelSlot }) => ctx
2574
- .withEnt(z$j.object({
2575
- id: z$j.string(),
2574
+ .withEnt(z$l.object({
2575
+ id: z$l.string(),
2576
2576
  name: VALIDATORS.CAMEL_CASE_STRING,
2577
- type: z$j.enum(SCALAR_FIELD_TYPES),
2578
- isOptional: z$j.boolean().default(false),
2579
- options: ctx.refContext({ enumSlot: modelEnumEntityType }, ({ enumSlot }) => z$j
2577
+ type: z$l.enum(SCALAR_FIELD_TYPES),
2578
+ isOptional: z$l.boolean().default(false),
2579
+ options: ctx.refContext({ enumSlot: modelEnumEntityType }, ({ enumSlot }) => z$l
2580
2580
  .object({
2581
2581
  // string options
2582
- default: z$j.string().default(''),
2582
+ default: z$l.string().default(''),
2583
2583
  // uuid options
2584
- genUuid: z$j.boolean().optional(),
2584
+ genUuid: z$l.boolean().optional(),
2585
2585
  // date options
2586
- updatedAt: z$j.boolean().optional(),
2587
- defaultToNow: z$j.boolean().optional(),
2586
+ updatedAt: z$l.boolean().optional(),
2587
+ defaultToNow: z$l.boolean().optional(),
2588
2588
  // enum options
2589
2589
  enumRef: ctx
2590
2590
  .withRef({
@@ -2644,13 +2644,13 @@ const REFERENTIAL_ACTIONS = [
2644
2644
  'SetNull',
2645
2645
  'SetDefault',
2646
2646
  ];
2647
- const createModelRelationFieldSchema = definitionSchemaWithSlots({ modelSlot: modelEntityType }, (ctx, { modelSlot }) => ctx.refContext({ foreignModelSlot: modelEntityType }, ({ foreignModelSlot }) => ctx.withEnt(ctx.withEnt(z$j.object({
2648
- id: z$j.string(),
2649
- foreignId: z$j
2647
+ const createModelRelationFieldSchema = definitionSchemaWithSlots({ modelSlot: modelEntityType }, (ctx, { modelSlot }) => ctx.refContext({ foreignModelSlot: modelEntityType }, ({ foreignModelSlot }) => ctx.withEnt(ctx.withEnt(z$l.object({
2648
+ id: z$l.string(),
2649
+ foreignId: z$l
2650
2650
  .string()
2651
2651
  .default(() => modelForeignRelationEntityType.generateNewId()),
2652
2652
  name: VALIDATORS.CAMEL_CASE_STRING,
2653
- references: z$j.array(z$j.object({
2653
+ references: z$l.array(z$l.object({
2654
2654
  localRef: ctx.withRef({
2655
2655
  type: modelScalarFieldEntityType,
2656
2656
  onDelete: 'RESTRICT',
@@ -2668,8 +2668,8 @@ const createModelRelationFieldSchema = definitionSchemaWithSlots({ modelSlot: mo
2668
2668
  provides: foreignModelSlot,
2669
2669
  }),
2670
2670
  foreignRelationName: VALIDATORS.CAMEL_CASE_STRING,
2671
- onDelete: z$j.enum(REFERENTIAL_ACTIONS).default('Cascade'),
2672
- onUpdate: z$j.enum(REFERENTIAL_ACTIONS).default('Restrict'),
2671
+ onDelete: z$l.enum(REFERENTIAL_ACTIONS).default('Cascade'),
2672
+ onUpdate: z$l.enum(REFERENTIAL_ACTIONS).default('Restrict'),
2673
2673
  }), {
2674
2674
  type: modelLocalRelationEntityType,
2675
2675
  parentSlot: modelSlot,
@@ -2679,9 +2679,9 @@ const createModelRelationFieldSchema = definitionSchemaWithSlots({ modelSlot: mo
2679
2679
  getNameResolver: (entity) => entity.foreignRelationName,
2680
2680
  parentSlot: foreignModelSlot,
2681
2681
  })));
2682
- const createModelUniqueConstraintSchema = definitionSchemaWithSlots({ modelSlot: modelEntityType }, (ctx, { modelSlot }) => ctx.withEnt(z$j.object({
2683
- id: z$j.string(),
2684
- fields: z$j.array(z$j.object({
2682
+ const createModelUniqueConstraintSchema = definitionSchemaWithSlots({ modelSlot: modelEntityType }, (ctx, { modelSlot }) => ctx.withEnt(z$l.object({
2683
+ id: z$l.string(),
2684
+ fields: z$l.array(z$l.object({
2685
2685
  fieldRef: ctx.withRef({
2686
2686
  type: modelScalarFieldEntityType,
2687
2687
  onDelete: 'RESTRICT',
@@ -2698,18 +2698,18 @@ const createModelUniqueConstraintSchema = definitionSchemaWithSlots({ modelSlot:
2698
2698
  });
2699
2699
  },
2700
2700
  }));
2701
- const createModelServiceSchema = definitionSchemaWithSlots({ modelSlot: modelEntityType }, (ctx, { modelSlot }) => z$j.object({
2702
- create: z$j
2701
+ const createModelServiceSchema = definitionSchemaWithSlots({ modelSlot: modelEntityType }, (ctx, { modelSlot }) => z$l.object({
2702
+ create: z$l
2703
2703
  .object({
2704
- enabled: z$j.boolean().default(false),
2705
- fields: z$j
2704
+ enabled: z$l.boolean().default(false),
2705
+ fields: z$l
2706
2706
  .array(ctx.withRef({
2707
2707
  type: modelScalarFieldEntityType,
2708
2708
  onDelete: 'DELETE',
2709
2709
  parentSlot: modelSlot,
2710
2710
  }))
2711
2711
  .optional(),
2712
- transformerNames: z$j
2712
+ transformerNames: z$l
2713
2713
  .array(ctx.withRef({
2714
2714
  type: modelTransformerEntityType,
2715
2715
  onDelete: 'DELETE',
@@ -2718,17 +2718,17 @@ const createModelServiceSchema = definitionSchemaWithSlots({ modelSlot: modelEnt
2718
2718
  .optional(),
2719
2719
  })
2720
2720
  .default({ enabled: false }),
2721
- update: z$j
2721
+ update: z$l
2722
2722
  .object({
2723
- enabled: z$j.boolean().default(false),
2724
- fields: z$j
2723
+ enabled: z$l.boolean().default(false),
2724
+ fields: z$l
2725
2725
  .array(ctx.withRef({
2726
2726
  type: modelScalarFieldEntityType,
2727
2727
  onDelete: 'DELETE',
2728
2728
  parentSlot: modelSlot,
2729
2729
  }))
2730
2730
  .optional(),
2731
- transformerNames: z$j
2731
+ transformerNames: z$l
2732
2732
  .array(ctx.withRef({
2733
2733
  type: modelTransformerEntityType,
2734
2734
  onDelete: 'DELETE',
@@ -2737,37 +2737,37 @@ const createModelServiceSchema = definitionSchemaWithSlots({ modelSlot: modelEnt
2737
2737
  .optional(),
2738
2738
  })
2739
2739
  .default({ enabled: false }),
2740
- delete: z$j
2740
+ delete: z$l
2741
2741
  .object({
2742
- enabled: z$j.boolean().default(false),
2742
+ enabled: z$l.boolean().default(false),
2743
2743
  })
2744
2744
  .default({
2745
2745
  enabled: false,
2746
2746
  }),
2747
- transformers: z$j
2747
+ transformers: z$l
2748
2748
  .array(createTransformerSchema(ctx, { modelSlot }))
2749
2749
  .default([]),
2750
2750
  }));
2751
- const createModelBaseSchema = definitionSchemaWithSlots({ modelSlot: modelEntityType }, (ctx, slots) => z$j.object({
2752
- id: z$j.string(),
2751
+ const createModelBaseSchema = definitionSchemaWithSlots({ modelSlot: modelEntityType }, (ctx, slots) => z$l.object({
2752
+ id: z$l.string(),
2753
2753
  name: VALIDATORS.PASCAL_CASE_STRING,
2754
2754
  featureRef: ctx.withRef({
2755
2755
  type: featureEntityType,
2756
2756
  onDelete: 'RESTRICT',
2757
2757
  }),
2758
- model: z$j.object({
2759
- fields: z$j.array(createModelScalarFieldSchema(ctx, slots)),
2760
- relations: z$j
2758
+ model: z$l.object({
2759
+ fields: z$l.array(createModelScalarFieldSchema(ctx, slots)),
2760
+ relations: z$l
2761
2761
  .array(createModelRelationFieldSchema(ctx, slots))
2762
2762
  .optional(),
2763
- primaryKeyFieldRefs: z$j
2763
+ primaryKeyFieldRefs: z$l
2764
2764
  .array(ctx.withRef({
2765
2765
  type: modelScalarFieldEntityType,
2766
2766
  onDelete: 'RESTRICT',
2767
2767
  parentSlot: slots.modelSlot,
2768
2768
  }))
2769
2769
  .min(1),
2770
- uniqueConstraints: z$j
2770
+ uniqueConstraints: z$l
2771
2771
  .array(createModelUniqueConstraintSchema(ctx, slots))
2772
2772
  .optional(),
2773
2773
  }),
@@ -2791,26 +2791,26 @@ const adminCrudSectionColumnEntityType = createEntityType('admin-crud-section-co
2791
2791
  parentType: adminSectionEntityType,
2792
2792
  });
2793
2793
 
2794
- const {z: z$i} = await importShared('zod');
2795
- const createBaseAdminSectionValidators = definitionSchema((ctx) => z$i.object({
2796
- id: z$i.string().default(adminSectionEntityType.generateNewId()),
2797
- name: z$i.string().min(1),
2794
+ const {z: z$k} = await importShared('zod');
2795
+ const createBaseAdminSectionValidators = definitionSchema((ctx) => z$k.object({
2796
+ id: z$k.string().default(adminSectionEntityType.generateNewId()),
2797
+ name: z$k.string().min(1),
2798
2798
  featureRef: ctx.withRef({
2799
2799
  type: featureEntityType,
2800
2800
  onDelete: 'RESTRICT',
2801
2801
  }),
2802
- icon: z$i.string().optional(),
2803
- type: z$i.string().min(1),
2802
+ icon: z$k.string().optional(),
2803
+ type: z$k.string().min(1),
2804
2804
  }));
2805
2805
 
2806
- const {z: z$h} = await importShared('zod');
2807
- const baseAdminCrudActionSchema = z$h.looseObject({
2808
- id: z$h
2806
+ const {z: z$j} = await importShared('zod');
2807
+ const baseAdminCrudActionSchema = z$j.looseObject({
2808
+ id: z$j
2809
2809
  .string()
2810
2810
  .min(1)
2811
2811
  .default(() => adminCrudActionEntityType.generateNewId()),
2812
- type: z$h.string().min(1),
2813
- position: z$h.enum(['inline', 'dropdown']).default('dropdown'),
2812
+ type: z$j.string().min(1),
2813
+ position: z$j.enum(['inline', 'dropdown']).default('dropdown'),
2814
2814
  });
2815
2815
  function createAdminCrudActionType(payload) {
2816
2816
  return payload;
@@ -2819,16 +2819,16 @@ const adminCrudActionEntityType = createEntityType('admin-crud-action', {
2819
2819
  parentType: adminSectionEntityType,
2820
2820
  });
2821
2821
 
2822
- const {z: z$g} = await importShared('zod');
2822
+ const {z: z$i} = await importShared('zod');
2823
2823
  const createAdminCrudEditActionSchema = definitionSchema(() => baseAdminCrudActionSchema.extend({
2824
- type: z$g.literal('edit'),
2824
+ type: z$i.literal('edit'),
2825
2825
  }));
2826
2826
  const adminCrudEditActionType = createAdminCrudActionType({
2827
2827
  name: 'edit',
2828
2828
  createSchema: createAdminCrudEditActionSchema,
2829
2829
  });
2830
2830
  const createAdminCrudDeleteActionSchema = definitionSchema(() => baseAdminCrudActionSchema.extend({
2831
- type: z$g.literal('delete'),
2831
+ type: z$i.literal('delete'),
2832
2832
  }));
2833
2833
  const adminCrudDeleteActionType = createAdminCrudActionType({
2834
2834
  name: 'delete',
@@ -2879,14 +2879,14 @@ const createAdminCrudActionSchema = definitionSchema((ctx) => {
2879
2879
  });
2880
2880
  });
2881
2881
 
2882
- const {z: z$f} = await importShared('zod');
2883
- const baseAdminCrudColumnSchema = z$f.looseObject({
2884
- id: z$f
2882
+ const {z: z$h} = await importShared('zod');
2883
+ const baseAdminCrudColumnSchema = z$h.looseObject({
2884
+ id: z$h
2885
2885
  .string()
2886
2886
  .min(1)
2887
2887
  .default(() => adminCrudColumnEntityType.generateNewId()),
2888
- type: z$f.string().min(1),
2889
- label: z$f.string().min(1),
2888
+ type: z$h.string().min(1),
2889
+ label: z$h.string().min(1),
2890
2890
  });
2891
2891
  function createAdminCrudColumnType(payload) {
2892
2892
  return payload;
@@ -2895,10 +2895,10 @@ const adminCrudColumnEntityType = createEntityType('admin-crud-column', {
2895
2895
  parentType: adminSectionEntityType,
2896
2896
  });
2897
2897
 
2898
- const {z: z$e} = await importShared('zod');
2898
+ const {z: z$g} = await importShared('zod');
2899
2899
  // Text Column
2900
2900
  const createAdminCrudTextColumnSchema = definitionSchemaWithSlots({ modelSlot: modelEntityType }, (ctx, { modelSlot }) => baseAdminCrudColumnSchema.extend({
2901
- type: z$e.literal('text'),
2901
+ type: z$g.literal('text'),
2902
2902
  modelFieldRef: ctx.withRef({
2903
2903
  type: modelScalarFieldEntityType,
2904
2904
  onDelete: 'RESTRICT',
@@ -2911,14 +2911,14 @@ const adminCrudTextColumnType = createAdminCrudColumnType({
2911
2911
  });
2912
2912
  // Foreign Column
2913
2913
  const createAdminCrudForeignColumnSchema = definitionSchemaWithSlots({ modelSlot: modelEntityType }, (ctx, { modelSlot }) => baseAdminCrudColumnSchema.extend({
2914
- type: z$e.literal('foreign'),
2914
+ type: z$g.literal('foreign'),
2915
2915
  localRelationRef: ctx.withRef({
2916
2916
  type: modelLocalRelationEntityType,
2917
2917
  onDelete: 'RESTRICT',
2918
2918
  parentSlot: modelSlot,
2919
2919
  }),
2920
- labelExpression: z$e.string().min(1),
2921
- valueExpression: z$e.string().min(1),
2920
+ labelExpression: z$g.string().min(1),
2921
+ valueExpression: z$g.string().min(1),
2922
2922
  }));
2923
2923
  const adminCrudForeignColumnType = createAdminCrudColumnType({
2924
2924
  name: 'foreign',
@@ -2969,14 +2969,14 @@ const createAdminCrudColumnSchema = definitionSchemaWithSlots({ modelSlot: model
2969
2969
  });
2970
2970
  });
2971
2971
 
2972
- const {z: z$d} = await importShared('zod');
2973
- const baseAdminCrudInputSchema = z$d.looseObject({
2974
- id: z$d
2972
+ const {z: z$f} = await importShared('zod');
2973
+ const baseAdminCrudInputSchema = z$f.looseObject({
2974
+ id: z$f
2975
2975
  .string()
2976
2976
  .min(1)
2977
2977
  .default(() => adminCrudInputEntityType.generateNewId()),
2978
- type: z$d.string().min(1),
2979
- label: z$d.string().min(1),
2978
+ type: z$f.string().min(1),
2979
+ label: z$f.string().min(1),
2980
2980
  });
2981
2981
  function createAdminCrudInputType(payload) {
2982
2982
  return payload;
@@ -2988,41 +2988,41 @@ const adminCrudInputEntityType = createEntityType('admin-crud-input', {
2988
2988
  parentType: adminSectionEntityType,
2989
2989
  });
2990
2990
 
2991
- const {z: z$c} = await importShared('zod');
2991
+ const {z: z$e} = await importShared('zod');
2992
2992
  const createAdminCrudTextInputSchema = definitionSchemaWithSlots({ modelSlot: modelEntityType, adminSectionSlot: adminSectionEntityType }, (ctx, { modelSlot }) => baseAdminCrudInputSchema.extend({
2993
- type: z$c.literal('text'),
2994
- label: z$c.string().min(1),
2993
+ type: z$e.literal('text'),
2994
+ label: z$e.string().min(1),
2995
2995
  modelFieldRef: ctx.withRef({
2996
2996
  type: modelScalarFieldEntityType,
2997
2997
  onDelete: 'RESTRICT',
2998
2998
  parentSlot: modelSlot,
2999
2999
  }),
3000
- validation: z$c.string().optional(),
3000
+ validation: z$e.string().optional(),
3001
3001
  }));
3002
3002
  const adminCrudTextInputType = createAdminCrudInputType({
3003
3003
  name: 'text',
3004
3004
  createSchema: createAdminCrudTextInputSchema,
3005
3005
  });
3006
3006
  const createAdminCrudForeignInputSchema = definitionSchemaWithSlots({ modelSlot: modelEntityType, adminSectionSlot: adminSectionEntityType }, (ctx, { modelSlot }) => baseAdminCrudInputSchema.extend({
3007
- type: z$c.literal('foreign'),
3008
- label: z$c.string().min(1),
3007
+ type: z$e.literal('foreign'),
3008
+ label: z$e.string().min(1),
3009
3009
  localRelationRef: ctx.withRef({
3010
3010
  type: modelLocalRelationEntityType,
3011
3011
  onDelete: 'RESTRICT',
3012
3012
  parentSlot: modelSlot,
3013
3013
  }),
3014
- labelExpression: z$c.string().min(1),
3015
- valueExpression: z$c.string().min(1),
3016
- defaultLabel: z$c.string().optional(),
3017
- nullLabel: z$c.string().optional(),
3014
+ labelExpression: z$e.string().min(1),
3015
+ valueExpression: z$e.string().min(1),
3016
+ defaultLabel: z$e.string().optional(),
3017
+ nullLabel: z$e.string().optional(),
3018
3018
  }));
3019
3019
  const adminCrudForeignInputType = createAdminCrudInputType({
3020
3020
  name: 'foreign',
3021
3021
  createSchema: createAdminCrudForeignInputSchema,
3022
3022
  });
3023
3023
  const createAdminCrudEnumInputSchema = definitionSchemaWithSlots({ modelSlot: modelEntityType, adminSectionSlot: adminSectionEntityType }, (ctx, { modelSlot }) => baseAdminCrudInputSchema.extend({
3024
- type: z$c.literal('enum'),
3025
- label: z$c.string().min(1),
3024
+ type: z$e.literal('enum'),
3025
+ label: z$e.string().min(1),
3026
3026
  modelFieldRef: ctx.withRef({
3027
3027
  type: modelScalarFieldEntityType,
3028
3028
  onDelete: 'RESTRICT',
@@ -3034,8 +3034,8 @@ const adminCrudEnumInputType = createAdminCrudInputType({
3034
3034
  createSchema: createAdminCrudEnumInputSchema,
3035
3035
  });
3036
3036
  const createAdminCrudEmbeddedInputSchema = definitionSchemaWithSlots({ modelSlot: modelEntityType, adminSectionSlot: adminSectionEntityType }, (ctx, { modelSlot, adminSectionSlot }) => baseAdminCrudInputSchema.extend({
3037
- type: z$c.literal('embedded'),
3038
- label: z$c.string().min(1),
3037
+ type: z$e.literal('embedded'),
3038
+ label: z$e.string().min(1),
3039
3039
  modelRelationRef: ctx.withRef({
3040
3040
  type: modelForeignRelationEntityType,
3041
3041
  onDelete: 'RESTRICT',
@@ -3052,8 +3052,8 @@ const adminCrudEmbeddedInputType = createAdminCrudInputType({
3052
3052
  createSchema: createAdminCrudEmbeddedInputSchema,
3053
3053
  });
3054
3054
  const createAdminCrudEmbeddedLocalInputSchema = definitionSchemaWithSlots({ modelSlot: modelEntityType, adminSectionSlot: adminSectionEntityType }, (ctx, { modelSlot, adminSectionSlot }) => baseAdminCrudInputSchema.extend({
3055
- type: z$c.literal('embeddedLocal'),
3056
- label: z$c.string().min(1),
3055
+ type: z$e.literal('embeddedLocal'),
3056
+ label: z$e.string().min(1),
3057
3057
  localRelationRef: ctx.withRef({
3058
3058
  type: modelLocalRelationEntityType,
3059
3059
  onDelete: 'RESTRICT',
@@ -3070,8 +3070,8 @@ const adminCrudEmbeddedLocalInputType = createAdminCrudInputType({
3070
3070
  createSchema: createAdminCrudEmbeddedLocalInputSchema,
3071
3071
  });
3072
3072
  const createAdminCrudPasswordInputSchema = definitionSchema(() => baseAdminCrudInputSchema.extend({
3073
- type: z$c.literal('password'),
3074
- label: z$c.string().min(1),
3073
+ type: z$e.literal('password'),
3074
+ label: z$e.string().min(1),
3075
3075
  }));
3076
3076
  const adminCrudPasswordInputType = createAdminCrudInputType({
3077
3077
  name: 'password',
@@ -3126,40 +3126,40 @@ const createAdminCrudInputSchema = definitionSchemaWithSlots({ modelSlot: modelE
3126
3126
  });
3127
3127
  });
3128
3128
 
3129
- const {z: z$b} = await importShared('zod');
3129
+ const {z: z$d} = await importShared('zod');
3130
3130
  // Embedded Crud
3131
- const createAdminCrudEmbeddedObjectSchemaInternal = definitionSchemaWithSlots({ modelSlot: modelEntityType, adminSectionSlot: adminSectionEntityType }, (ctx, { modelSlot, adminSectionSlot }) => z$b.object({
3132
- id: z$b.string().min(1),
3133
- name: z$b.string().min(1),
3131
+ const createAdminCrudEmbeddedObjectSchemaInternal = definitionSchemaWithSlots({ modelSlot: modelEntityType, adminSectionSlot: adminSectionEntityType }, (ctx, { modelSlot, adminSectionSlot }) => z$d.object({
3132
+ id: z$d.string().min(1),
3133
+ name: z$d.string().min(1),
3134
3134
  modelRef: ctx.withRef({
3135
3135
  type: modelEntityType,
3136
3136
  onDelete: 'RESTRICT',
3137
3137
  provides: modelSlot,
3138
3138
  }),
3139
- includeIdField: z$b.boolean().optional(),
3140
- type: z$b.literal('object'),
3141
- form: z$b.object({
3142
- fields: z$b.array(createAdminCrudInputSchema(ctx, { modelSlot, adminSectionSlot })),
3139
+ includeIdField: z$d.boolean().optional(),
3140
+ type: z$d.literal('object'),
3141
+ form: z$d.object({
3142
+ fields: z$d.array(createAdminCrudInputSchema(ctx, { modelSlot, adminSectionSlot })),
3143
3143
  }),
3144
3144
  }));
3145
- const createAdminCrudEmbeddedListSchemaInternal = definitionSchemaWithSlots({ modelSlot: modelEntityType, adminSectionSlot: adminSectionEntityType }, (ctx, { modelSlot, adminSectionSlot }) => z$b.object({
3146
- id: z$b.string().min(1),
3147
- name: z$b.string().min(1),
3145
+ const createAdminCrudEmbeddedListSchemaInternal = definitionSchemaWithSlots({ modelSlot: modelEntityType, adminSectionSlot: adminSectionEntityType }, (ctx, { modelSlot, adminSectionSlot }) => z$d.object({
3146
+ id: z$d.string().min(1),
3147
+ name: z$d.string().min(1),
3148
3148
  modelRef: ctx.withRef({
3149
3149
  type: modelEntityType,
3150
3150
  onDelete: 'RESTRICT',
3151
3151
  provides: modelSlot,
3152
3152
  }),
3153
- includeIdField: z$b.boolean().optional(),
3154
- type: z$b.literal('list'),
3155
- table: z$b.object({
3156
- columns: z$b.array(createAdminCrudColumnSchema(ctx, { modelSlot })),
3153
+ includeIdField: z$d.boolean().optional(),
3154
+ type: z$d.literal('list'),
3155
+ table: z$d.object({
3156
+ columns: z$d.array(createAdminCrudColumnSchema(ctx, { modelSlot })),
3157
3157
  }),
3158
- form: z$b.object({
3159
- fields: z$b.array(createAdminCrudInputSchema(ctx, { modelSlot, adminSectionSlot })),
3158
+ form: z$d.object({
3159
+ fields: z$d.array(createAdminCrudInputSchema(ctx, { modelSlot, adminSectionSlot })),
3160
3160
  }),
3161
3161
  }));
3162
- const createAdminCrudEmbeddedFormSchema = definitionSchemaWithSlots({ adminSectionSlot: adminSectionEntityType }, (ctx, { adminSectionSlot }) => ctx.refContext({ modelSlot: modelEntityType }, ({ modelSlot }) => ctx.withEnt(z$b.discriminatedUnion('type', [
3162
+ const createAdminCrudEmbeddedFormSchema = definitionSchemaWithSlots({ adminSectionSlot: adminSectionEntityType }, (ctx, { adminSectionSlot }) => ctx.refContext({ modelSlot: modelEntityType }, ({ modelSlot }) => ctx.withEnt(z$d.discriminatedUnion('type', [
3163
3163
  createAdminCrudEmbeddedObjectSchemaInternal(ctx, {
3164
3164
  modelSlot,
3165
3165
  adminSectionSlot,
@@ -3173,8 +3173,8 @@ const createAdminCrudEmbeddedFormSchema = definitionSchemaWithSlots({ adminSecti
3173
3173
  parentSlot: adminSectionSlot,
3174
3174
  })));
3175
3175
  // Admin Section
3176
- const createAdminCrudSectionSchema = definitionSchemaWithSlots({ adminSectionSlot: adminSectionEntityType }, (ctx, { adminSectionSlot }) => ctx.refContext({ modelSlot: modelEntityType }, ({ modelSlot }) => createBaseAdminSectionValidators(ctx).and(z$b.object({
3177
- type: z$b.literal('crud'),
3176
+ const createAdminCrudSectionSchema = definitionSchemaWithSlots({ adminSectionSlot: adminSectionEntityType }, (ctx, { adminSectionSlot }) => ctx.refContext({ modelSlot: modelEntityType }, ({ modelSlot }) => createBaseAdminSectionValidators(ctx).and(z$d.object({
3177
+ type: z$d.literal('crud'),
3178
3178
  modelRef: ctx.withRef({
3179
3179
  type: modelEntityType,
3180
3180
  onDelete: 'RESTRICT',
@@ -3186,54 +3186,76 @@ const createAdminCrudSectionSchema = definitionSchemaWithSlots({ adminSectionSlo
3186
3186
  onDelete: 'RESTRICT',
3187
3187
  parentSlot: modelSlot,
3188
3188
  }),
3189
- disableCreate: ctx.withDefault(z$b.boolean(), false),
3190
- table: z$b.object({
3191
- columns: z$b.array(createAdminCrudColumnSchema(ctx, { modelSlot })),
3192
- actions: ctx.withDefault(z$b.array(createAdminCrudActionSchema(ctx)), [
3189
+ disableCreate: ctx.withDefault(z$d.boolean(), false),
3190
+ table: z$d.object({
3191
+ columns: z$d.array(createAdminCrudColumnSchema(ctx, { modelSlot })),
3192
+ actions: ctx.withDefault(z$d.array(createAdminCrudActionSchema(ctx)), [
3193
3193
  { type: 'edit', position: 'inline' },
3194
3194
  { type: 'delete', position: 'dropdown' },
3195
3195
  ]),
3196
3196
  }),
3197
- form: z$b.object({
3198
- fields: z$b.array(createAdminCrudInputSchema(ctx, {
3197
+ form: z$d.object({
3198
+ fields: z$d.array(createAdminCrudInputSchema(ctx, {
3199
3199
  modelSlot,
3200
3200
  adminSectionSlot,
3201
3201
  })),
3202
3202
  }),
3203
- embeddedForms: z$b
3203
+ embeddedForms: z$d
3204
3204
  .array(createAdminCrudEmbeddedFormSchema(ctx, { adminSectionSlot }))
3205
3205
  .optional(),
3206
3206
  }))));
3207
3207
 
3208
- const {z: z$a} = await importShared('zod');
3208
+ const {z: z$c} = await importShared('zod');
3209
3209
  const createWebAdminSectionSchema = definitionSchemaWithSlots({ appSlot: appEntityType }, (ctx, { appSlot }) => ctx.refContext({ adminSectionSlot: adminSectionEntityType }, ({ adminSectionSlot }) => ctx.withEnt(createAdminCrudSectionSchema(ctx, { adminSectionSlot }), {
3210
3210
  type: adminSectionEntityType,
3211
3211
  parentSlot: appSlot,
3212
3212
  provides: adminSectionSlot,
3213
3213
  })));
3214
- const createAdminAppSchema = definitionSchemaWithSlots({ appSlot: appEntityType }, (ctx, { appSlot }) => ctx.withDefault(z$a.object({
3215
- enabled: z$a.boolean(),
3216
- pathPrefix: z$a.string().default('/admin'),
3217
- allowedRoles: ctx.withDefault(z$a.array(ctx.withRef({
3214
+ const createAdminAppSchema = definitionSchemaWithSlots({ appSlot: appEntityType }, (ctx, { appSlot }) => ctx.withDefault(z$c.object({
3215
+ enabled: z$c.boolean(),
3216
+ pathPrefix: z$c.string().default('/admin'),
3217
+ allowedRoles: ctx.withDefault(z$c.array(ctx.withRef({
3218
3218
  type: authRoleEntityType,
3219
3219
  onDelete: 'DELETE',
3220
3220
  })), []),
3221
- sections: ctx.withDefault(z$a.array(createWebAdminSectionSchema(ctx, { appSlot })), []),
3221
+ sections: ctx.withDefault(z$c.array(createWebAdminSectionSchema(ctx, { appSlot })), []),
3222
3222
  }), { enabled: false, pathPrefix: '/admin' }));
3223
3223
 
3224
- const {z: z$9} = await importShared('zod');
3225
- const createWebAppSchema = definitionSchemaWithSlots({ appSlot: appEntityType }, (ctx, { appSlot }) => z$9.object({
3224
+ const {z: z$b} = await importShared('zod');
3225
+ const createWebAppSchema = definitionSchemaWithSlots({ appSlot: appEntityType }, (ctx, { appSlot }) => z$b.object({
3226
3226
  ...baseAppValidators,
3227
- type: z$9.literal('web'),
3228
- includeAuth: ctx.withDefault(z$9.boolean(), false),
3229
- title: z$9.string().default(''),
3230
- description: z$9.string().default(''),
3231
- includeUploadComponents: ctx.withDefault(z$9.boolean(), false),
3232
- enableSubscriptions: ctx.withDefault(z$9.boolean(), false),
3227
+ type: z$b.literal('web'),
3228
+ includeAuth: ctx.withDefault(z$b.boolean(), false),
3229
+ title: z$b.string().default(''),
3230
+ description: z$b.string().default(''),
3231
+ includeUploadComponents: ctx.withDefault(z$b.boolean(), false),
3232
+ enableSubscriptions: ctx.withDefault(z$b.boolean(), false),
3233
3233
  adminApp: createAdminAppSchema(ctx, { appSlot }),
3234
3234
  }));
3235
3235
  const webAppEntryType = createAppEntryType('web');
3236
3236
 
3237
+ const packageEntityType = createEntityType('package');
3238
+ function createPackageEntryType(name) {
3239
+ return name;
3240
+ }
3241
+
3242
+ const {CASE_VALIDATORS: CASE_VALIDATORS$2} = await importShared('@baseplate-dev/utils');
3243
+
3244
+ const {z: z$a} = await importShared('zod');
3245
+ const basePackageValidators = {
3246
+ id: z$a.string().default(packageEntityType.generateNewId()),
3247
+ name: CASE_VALIDATORS$2.KEBAB_CASE,
3248
+ type: z$a.string(),
3249
+ };
3250
+ const basePackageSchema = z$a.object(basePackageValidators);
3251
+
3252
+ const {z: z$9} = await importShared('zod');
3253
+ const createNodeLibraryPackageSchema = definitionSchemaWithSlots({ packageSlot: packageEntityType }, () => z$9.object({
3254
+ ...basePackageValidators,
3255
+ type: z$9.literal('node-library'),
3256
+ }));
3257
+ const nodeLibraryPackageEntryType = createPackageEntryType('node-library');
3258
+
3237
3259
  const {z: z$8} = await importShared('zod');
3238
3260
  const basePluginDefinitionSchema = z$8.object({
3239
3261
  id: z$8.string(),
@@ -3343,7 +3365,6 @@ const {z: z$5} = await importShared('zod');
3343
3365
  * Monorepo settings schema
3344
3366
  *
3345
3367
  * Configures the folder structure for monorepo packages.
3346
- * In V1, only supports configuring the apps folder location.
3347
3368
  */
3348
3369
  const monorepoSettingsSchema = z$5.object({
3349
3370
  /**
@@ -3362,6 +3383,22 @@ const monorepoSettingsSchema = z$5.object({
3362
3383
  message: 'Apps folder must contain only lowercase letters, numbers, and dashes (no slashes)',
3363
3384
  })
3364
3385
  .default('apps'),
3386
+ /**
3387
+ * The folder where library packages are located in the monorepo.
3388
+ *
3389
+ * Must be in kebab-case format (lowercase letters and dashes only).
3390
+ * Packages will be placed in {packagesFolder}/{package-name}, e.g. "packages/shared-utils".
3391
+ *
3392
+ * @default "packages"
3393
+ * @example "packages" → packages/shared-utils, packages/common
3394
+ * @example "libs" → libs/shared-utils, libs/common
3395
+ */
3396
+ packagesFolder: CASE_VALIDATORS.KEBAB_CASE.min(1)
3397
+ .max(50)
3398
+ .regex(/^[a-z0-9-]+$/, {
3399
+ message: 'Packages folder must contain only lowercase letters, numbers, and dashes (no slashes)',
3400
+ })
3401
+ .default('packages'),
3365
3402
  });
3366
3403
 
3367
3404
  const {z: z$4} = await importShared('zod');
@@ -3553,9 +3590,17 @@ const createAppSchema = definitionSchema((ctx) => ctx.refContext({ appSlot: appE
3553
3590
  type: appEntityType,
3554
3591
  provides: appSlot,
3555
3592
  })));
3593
+ const createPackageSchema = definitionSchema((ctx) => ctx.refContext({ packageSlot: packageEntityType }, ({ packageSlot }) => ctx.withEnt(z$1.discriminatedUnion('type', [
3594
+ createNodeLibraryPackageSchema(ctx, { packageSlot }),
3595
+ // Future: add more package types here
3596
+ ]), {
3597
+ type: packageEntityType,
3598
+ provides: packageSlot,
3599
+ })));
3556
3600
  const createProjectDefinitionSchema = definitionSchema((ctx) => z$1.object({
3557
3601
  cliVersion: z$1.string().nullish(),
3558
3602
  apps: z$1.array(createAppSchema(ctx)).default([]),
3603
+ packages: z$1.array(createPackageSchema(ctx)).default([]),
3559
3604
  features: createFeaturesSchema(ctx),
3560
3605
  models: z$1.array(createModelSchema(ctx)).default([]),
3561
3606
  enums: z$1.array(createEnumSchema(ctx)).optional(),
@@ -3565,18 +3610,18 @@ const createProjectDefinitionSchema = definitionSchema((ctx) => z$1.object({
3565
3610
  settings: createSettingsSchema(ctx),
3566
3611
  }));
3567
3612
 
3568
- function byId(projectDefinition, id) {
3613
+ function byId$1(projectDefinition, id) {
3569
3614
  return projectDefinition.enums?.find((e) => e.id === id);
3570
3615
  }
3571
3616
  function byIdOrThrow(projectDefinition, id) {
3572
- const enumConfig = byId(projectDefinition, id);
3617
+ const enumConfig = byId$1(projectDefinition, id);
3573
3618
  if (!enumConfig) {
3574
3619
  throw new Error(`Could not find enum with ID ${id}`);
3575
3620
  }
3576
3621
  return enumConfig;
3577
3622
  }
3578
3623
  const EnumUtils = {
3579
- byId,
3624
+ byId: byId$1,
3580
3625
  byIdOrThrow,
3581
3626
  };
3582
3627
 
@@ -3602,6 +3647,13 @@ function getRelationLocalFields(model, relation) {
3602
3647
  return field;
3603
3648
  });
3604
3649
  }
3650
+ function relationByIdOrThrow(model, relationId) {
3651
+ const relation = model.model.relations?.find((r) => r.id === relationId);
3652
+ if (!relation) {
3653
+ throw new Error(`Relation ${relationId} not found in model ${model.name}`);
3654
+ }
3655
+ return relation;
3656
+ }
3605
3657
  function isRelationOptional(model, relation) {
3606
3658
  const localFields = getRelationLocalFields(model, relation);
3607
3659
  return localFields.some((f) => f.isOptional);
@@ -3657,6 +3709,7 @@ const ModelFieldUtils = {
3657
3709
  isRelationOptional,
3658
3710
  isRelationOneToOne,
3659
3711
  getModelFieldValidation,
3712
+ relationByIdOrThrow,
3660
3713
  };
3661
3714
 
3662
3715
  function getTransformer(transformer, pluginStore) {
@@ -3671,6 +3724,29 @@ function getTransformName(definitionContainer, transformer, pluginStore) {
3671
3724
  }
3672
3725
  const ModelTransformerUtils = { getTransformer, getTransformName };
3673
3726
 
3727
+ function byId(projectDefinition, id) {
3728
+ const config = projectDefinition.packages.find((pkg) => pkg.id === id);
3729
+ if (!config) {
3730
+ throw new Error(`Unable to find package with ID ${id}`);
3731
+ }
3732
+ return config;
3733
+ }
3734
+ /**
3735
+ * Given a package config, get the relative directory of the package
3736
+ *
3737
+ * @param packageConfig The package config
3738
+ * @param monorepoSettings Optional monorepo settings to determine packages folder location
3739
+ * @returns The directory of the package
3740
+ */
3741
+ function getPackageDirectory(packageConfig, monorepoSettings) {
3742
+ const packagesFolder = monorepoSettings?.packagesFolder ?? 'packages';
3743
+ return `${packagesFolder}/${packageConfig.name}`;
3744
+ }
3745
+ const PackageUtils = {
3746
+ byId,
3747
+ getPackageDirectory,
3748
+ };
3749
+
3674
3750
  const {z} = await importShared('zod');
3675
3751
  const COMMON_SPEC_IMPLEMENTATIONS = [
3676
3752
  pluginConfigSpec,
@@ -9339,6 +9415,7 @@ function createTestProjectDefinition(input = {}) {
9339
9415
  features: [],
9340
9416
  cliVersion: '1.0.0',
9341
9417
  apps: [],
9418
+ packages: [],
9342
9419
  models: [],
9343
9420
  isInitialized: true,
9344
9421
  schemaVersion: getLatestMigrationVersion(),
@@ -10426,5 +10503,5 @@ function generateDefaultTheme() {
10426
10503
  };
10427
10504
  }
10428
10505
 
10429
- export { AVAILABLE_FLAGS, AppUtils, BUILT_IN_ADMIN_CRUD_ACTIONS, BUILT_IN_ADMIN_CRUD_COLUMNS, BUILT_IN_ADMIN_CRUD_INPUTS, BUILT_IN_TRANSFORMERS, COLOR_PALETTES, EnumUtils, FIXED_COLOR_MAPPINGS, ModelFieldUtils, ModelTransformerUtils, ModelUtils, PALETTE_SHADES, PluginImplementationStore, PluginUtils, ProjectDefinitionContainer, REFERENTIAL_ACTIONS, SCALAR_FIELD_TYPES, SCHEMA_MIGRATIONS, SchemaMigrationError, THEME_COLORS, THEME_COLOR_KEYS, VALIDATORS, adminCrudActionCompilerSpec, adminCrudActionEntityType, adminCrudActionSpec, adminCrudColumnCompilerSpec, adminCrudColumnEntityType, adminCrudColumnSpec, adminCrudEmbeddedFormEntityType, adminCrudEmbeddedInputType, adminCrudEmbeddedLocalInputType, adminCrudInputCompilerSpec, adminCrudInputEntityType, adminCrudInputSpec, adminCrudSectionColumnEntityType, adminSectionEntityType, appCompilerSpec, appEntityType, authConfigSpec, authModelConfigSpec, authRoleEntityType, backendAppEntryType, baseAdminCrudActionSchema, baseAdminCrudColumnSchema, baseAdminCrudInputSchema, baseAppSchema, baseAppValidators, basePluginDefinitionSchema, baseTransformerFields, baseTransformerSchema, convertColorNameToOklch, convertHexToOklch, convertOklchToColorName, convertOklchToHex, createAdminAppSchema, createAdminCrudActionCompilerImplementation, createAdminCrudActionImplementation, createAdminCrudActionSchema, createAdminCrudActionType, createAdminCrudColumnCompiler, createAdminCrudColumnCompilerImplementation, createAdminCrudColumnImplementation, createAdminCrudColumnSchema, createAdminCrudColumnType, createAdminCrudDeleteActionSchema, createAdminCrudEditActionSchema, createAdminCrudEmbeddedFormSchema, createAdminCrudEmbeddedInputSchema, createAdminCrudEmbeddedLocalInputSchema, createAdminCrudEnumInputSchema, createAdminCrudForeignColumnSchema, createAdminCrudForeignInputSchema, createAdminCrudInputCompilerImplementation, createAdminCrudInputImplementation, createAdminCrudInputSchema, createAdminCrudInputType, createAdminCrudPasswordInputSchema, createAdminCrudSectionSchema, createAdminCrudTextColumnSchema, createAdminCrudTextInputSchema, createAppCompiler, createAppCompilerPlugin, createAppEntryType, createAppSchema, createBackendAppSchema, createBaseAdminSectionValidators, createDefinitionEntityNameResolver, createDefinitionSchemaParserContext, createEmbeddedRelationTransformerSchema, createEntityType, createEnumBaseSchema, createEnumSchema, createEnumValueSchema, createFeaturesSchema, createModelBaseSchema, createModelGraphqlSchema, createModelRelationFieldSchema, createModelScalarFieldSchema, createModelSchema, createModelServiceSchema, createModelTransformerCompilerImplementation, createModelTransformerImplementation, createModelTransformerType, createModelUniqueConstraintSchema, createPlatformPluginExport, createPluginConfigImplementation, createPluginImplementationStore, createPluginImplementationStoreWithNewPlugins, createPluginSpec, createPluginWithConfigSchema, createPluginsSchema, createProjectDefinitionSchema, createProjectDefinitionSchemaWithContext, createSettingsSchema, createTemplateExtractorSchema, createTestProjectDefinition, createTestProjectDefinitionContainer, createTestProjectDefinitionInput, createThemeSchema, createTransformerSchema, createWebAdminSectionSchema, createWebAppSchema, createWebConfigImplementation, definitionSchema, definitionSchemaWithSlots, deserializeSchemaWithTransformedReferences, extractDefinitionRefs, featureEntityType, fixRefDeletions, generalSettingsSchema, generateCssFromThemeConfig, generateDefaultTheme, generateThemeColorsFromShade, getBackendRelativePath, getDefaultThemeColorFromShade, getLatestMigrationVersion, getManagedPluginsForPlugin, getPluginMetadataByKey, getPluginMetadataByKeyOrThrow, infrastructureSettingsSchema, initializePlugins, isMigrateableProjectDefinition, modelEntityType, modelEnumEntityType, modelEnumValueEntityType, modelForeignRelationEntityType, modelLocalRelationEntityType, modelScalarFieldEntityType, modelTransformerCompilerSpec, modelTransformerEntityType, modelTransformerSpec, modelUniqueConstraintEntityType, monorepoSettingsSchema, oklchColor, paletteSchema, palettesSchema, parseOklch, parseProjectDefinitionWithContext, parseProjectDefinitionWithReferences, pluginConfigSpec, pluginEntityType, pluginMetadataSchema, pluginSpecDependencySchema, pluginSpecSupportSchema, runPluginMigrations, runSchemaMigrations, serializeSchema, serializeSchemaFromRefPayload, stripEmptyGeneratorChildren, stripUndefinedValues, themeColorSchema, undefinedIfEmpty, undefinedIfFalsy, webAppEntryType, webConfigSpec };
10430
- //# sourceMappingURL=project-builder-lib-FK4Jv94w.js.map
10506
+ export { AVAILABLE_FLAGS, AppUtils, BUILT_IN_ADMIN_CRUD_ACTIONS, BUILT_IN_ADMIN_CRUD_COLUMNS, BUILT_IN_ADMIN_CRUD_INPUTS, BUILT_IN_TRANSFORMERS, COLOR_PALETTES, EnumUtils, FIXED_COLOR_MAPPINGS, ModelFieldUtils, ModelTransformerUtils, ModelUtils, PALETTE_SHADES, PackageUtils, PluginImplementationStore, PluginUtils, ProjectDefinitionContainer, REFERENTIAL_ACTIONS, SCALAR_FIELD_TYPES, SCHEMA_MIGRATIONS, SchemaMigrationError, THEME_COLORS, THEME_COLOR_KEYS, VALIDATORS, adminCrudActionCompilerSpec, adminCrudActionEntityType, adminCrudActionSpec, adminCrudColumnCompilerSpec, adminCrudColumnEntityType, adminCrudColumnSpec, adminCrudEmbeddedFormEntityType, adminCrudEmbeddedInputType, adminCrudEmbeddedLocalInputType, adminCrudInputCompilerSpec, adminCrudInputEntityType, adminCrudInputSpec, adminCrudSectionColumnEntityType, adminSectionEntityType, appCompilerSpec, appEntityType, authConfigSpec, authModelConfigSpec, authRoleEntityType, backendAppEntryType, baseAdminCrudActionSchema, baseAdminCrudColumnSchema, baseAdminCrudInputSchema, baseAppSchema, baseAppValidators, basePackageSchema, basePackageValidators, basePluginDefinitionSchema, baseTransformerFields, baseTransformerSchema, convertColorNameToOklch, convertHexToOklch, convertOklchToColorName, convertOklchToHex, createAdminAppSchema, createAdminCrudActionCompilerImplementation, createAdminCrudActionImplementation, createAdminCrudActionSchema, createAdminCrudActionType, createAdminCrudColumnCompiler, createAdminCrudColumnCompilerImplementation, createAdminCrudColumnImplementation, createAdminCrudColumnSchema, createAdminCrudColumnType, createAdminCrudDeleteActionSchema, createAdminCrudEditActionSchema, createAdminCrudEmbeddedFormSchema, createAdminCrudEmbeddedInputSchema, createAdminCrudEmbeddedLocalInputSchema, createAdminCrudEnumInputSchema, createAdminCrudForeignColumnSchema, createAdminCrudForeignInputSchema, createAdminCrudInputCompilerImplementation, createAdminCrudInputImplementation, createAdminCrudInputSchema, createAdminCrudInputType, createAdminCrudPasswordInputSchema, createAdminCrudSectionSchema, createAdminCrudTextColumnSchema, createAdminCrudTextInputSchema, createAppCompiler, createAppCompilerPlugin, createAppEntryType, createAppSchema, createBackendAppSchema, createBaseAdminSectionValidators, createDefinitionEntityNameResolver, createDefinitionSchemaParserContext, createEmbeddedRelationTransformerSchema, createEntityType, createEnumBaseSchema, createEnumSchema, createEnumValueSchema, createFeaturesSchema, createModelBaseSchema, createModelGraphqlSchema, createModelRelationFieldSchema, createModelScalarFieldSchema, createModelSchema, createModelServiceSchema, createModelTransformerCompilerImplementation, createModelTransformerImplementation, createModelTransformerType, createModelUniqueConstraintSchema, createNodeLibraryPackageSchema, createPackageEntryType, createPackageSchema, createPlatformPluginExport, createPluginConfigImplementation, createPluginImplementationStore, createPluginImplementationStoreWithNewPlugins, createPluginSpec, createPluginWithConfigSchema, createPluginsSchema, createProjectDefinitionSchema, createProjectDefinitionSchemaWithContext, createSettingsSchema, createTemplateExtractorSchema, createTestProjectDefinition, createTestProjectDefinitionContainer, createTestProjectDefinitionInput, createThemeSchema, createTransformerSchema, createWebAdminSectionSchema, createWebAppSchema, createWebConfigImplementation, definitionSchema, definitionSchemaWithSlots, deserializeSchemaWithTransformedReferences, extractDefinitionRefs, featureEntityType, fixRefDeletions, generalSettingsSchema, generateCssFromThemeConfig, generateDefaultTheme, generateThemeColorsFromShade, getBackendRelativePath, getDefaultThemeColorFromShade, getLatestMigrationVersion, getManagedPluginsForPlugin, getPluginMetadataByKey, getPluginMetadataByKeyOrThrow, infrastructureSettingsSchema, initializePlugins, isMigrateableProjectDefinition, modelEntityType, modelEnumEntityType, modelEnumValueEntityType, modelForeignRelationEntityType, modelLocalRelationEntityType, modelScalarFieldEntityType, modelTransformerCompilerSpec, modelTransformerEntityType, modelTransformerSpec, modelUniqueConstraintEntityType, monorepoSettingsSchema, nodeLibraryPackageEntryType, oklchColor, packageEntityType, paletteSchema, palettesSchema, parseOklch, parseProjectDefinitionWithContext, parseProjectDefinitionWithReferences, pluginConfigSpec, pluginEntityType, pluginMetadataSchema, pluginSpecDependencySchema, pluginSpecSupportSchema, runPluginMigrations, runSchemaMigrations, serializeSchema, serializeSchemaFromRefPayload, stripEmptyGeneratorChildren, stripUndefinedValues, themeColorSchema, undefinedIfEmpty, undefinedIfFalsy, webAppEntryType, webConfigSpec };
10507
+ //# sourceMappingURL=project-builder-lib-CcNtL_U6.js.map