@baseplate-dev/plugin-auth 0.6.4 → 0.6.5

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 (443) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/auth/core/common.d.ts.map +1 -1
  3. package/dist/auth/core/common.js +2 -3
  4. package/dist/auth/core/common.js.map +1 -1
  5. package/dist/auth/core/components/auth-definition-editor.d.ts.map +1 -1
  6. package/dist/auth/core/components/auth-definition-editor.js +6 -2
  7. package/dist/auth/core/components/auth-definition-editor.js.map +1 -1
  8. package/dist/auth/core/node.d.ts.map +1 -1
  9. package/dist/auth/core/node.js +1 -0
  10. package/dist/auth/core/node.js.map +1 -1
  11. package/dist/auth/core/schema/migrations.d.ts +3 -0
  12. package/dist/auth/core/schema/migrations.d.ts.map +1 -0
  13. package/dist/auth/core/schema/migrations.js +54 -0
  14. package/dist/auth/core/schema/migrations.js.map +1 -0
  15. package/dist/auth/core/schema/plugin-definition.d.ts +5 -0
  16. package/dist/auth/core/schema/plugin-definition.d.ts.map +1 -1
  17. package/dist/auth/core/schema/plugin-definition.js +4 -0
  18. package/dist/auth/core/schema/plugin-definition.js.map +1 -1
  19. package/dist/auth/core/schema/roles/constants.d.ts.map +1 -1
  20. package/dist/auth/core/schema/roles/constants.js +9 -0
  21. package/dist/auth/core/schema/roles/constants.js.map +1 -1
  22. package/dist/auth/core/schema/roles/schema.d.ts +8 -0
  23. package/dist/auth/core/schema/roles/schema.d.ts.map +1 -1
  24. package/dist/auth/core/schema/roles/schema.js +1 -0
  25. package/dist/auth/core/schema/roles/schema.js.map +1 -1
  26. package/dist/better-auth/admin/common.d.ts +5 -0
  27. package/dist/better-auth/admin/common.d.ts.map +1 -0
  28. package/dist/better-auth/admin/common.js +29 -0
  29. package/dist/better-auth/admin/common.js.map +1 -0
  30. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +510 -0
  31. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts.map +1 -0
  32. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js +123 -0
  33. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js.map +1 -0
  34. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +510 -0
  35. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts.map +1 -0
  36. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.js +9 -0
  37. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.js.map +1 -0
  38. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts +12 -0
  39. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts.map +1 -0
  40. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js +24 -0
  41. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js.map +1 -0
  42. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +260 -0
  43. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts.map +1 -0
  44. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js +41 -0
  45. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js.map +1 -0
  46. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +249 -0
  47. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts.map +1 -0
  48. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js +20 -0
  49. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js.map +1 -0
  50. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/index.d.ts +2 -0
  51. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/index.d.ts.map +1 -0
  52. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/index.js +2 -0
  53. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/index.js.map +1 -0
  54. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts +22 -0
  55. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts.map +1 -0
  56. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js +78 -0
  57. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js.map +1 -0
  58. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +162 -0
  59. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +509 -0
  60. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts.map +1 -0
  61. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js +114 -0
  62. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js.map +1 -0
  63. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +510 -0
  64. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts.map +1 -0
  65. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.js +9 -0
  66. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.js.map +1 -0
  67. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts +12 -0
  68. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts.map +1 -0
  69. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js +24 -0
  70. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js.map +1 -0
  71. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +260 -0
  72. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts.map +1 -0
  73. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js +41 -0
  74. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js.map +1 -0
  75. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +495 -0
  76. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts.map +1 -0
  77. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js +22 -0
  78. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js.map +1 -0
  79. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/index.d.ts +2 -0
  80. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/index.d.ts.map +1 -0
  81. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/index.js +2 -0
  82. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/index.js.map +1 -0
  83. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts +22 -0
  84. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts.map +1 -0
  85. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js +89 -0
  86. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js.map +1 -0
  87. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx +171 -0
  88. package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +244 -0
  89. package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts.map +1 -0
  90. package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js +54 -0
  91. package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js.map +1 -0
  92. package/dist/better-auth/admin/generators/admin-crud-roles-column/index.d.ts +2 -0
  93. package/dist/better-auth/admin/generators/admin-crud-roles-column/index.d.ts.map +1 -0
  94. package/dist/better-auth/admin/generators/admin-crud-roles-column/index.js +2 -0
  95. package/dist/better-auth/admin/generators/admin-crud-roles-column/index.js.map +1 -0
  96. package/dist/better-auth/admin/node.d.ts +5 -0
  97. package/dist/better-auth/admin/node.d.ts.map +1 -0
  98. package/dist/better-auth/admin/node.js +57 -0
  99. package/dist/better-auth/admin/node.js.map +1 -0
  100. package/dist/better-auth/admin/schema/manage-role-action.d.ts +12 -0
  101. package/dist/better-auth/admin/schema/manage-role-action.d.ts.map +1 -0
  102. package/dist/better-auth/admin/schema/manage-role-action.js +6 -0
  103. package/dist/better-auth/admin/schema/manage-role-action.js.map +1 -0
  104. package/dist/better-auth/admin/schema/reset-password-action.d.ts +12 -0
  105. package/dist/better-auth/admin/schema/reset-password-action.d.ts.map +1 -0
  106. package/dist/better-auth/admin/schema/reset-password-action.js +6 -0
  107. package/dist/better-auth/admin/schema/reset-password-action.js.map +1 -0
  108. package/dist/better-auth/admin/schema/roles-column.d.ts +9 -0
  109. package/dist/better-auth/admin/schema/roles-column.d.ts.map +1 -0
  110. package/dist/better-auth/admin/schema/roles-column.js +6 -0
  111. package/dist/better-auth/admin/schema/roles-column.js.map +1 -0
  112. package/dist/better-auth/admin/web.d.ts +5 -0
  113. package/dist/better-auth/admin/web.d.ts.map +1 -0
  114. package/dist/better-auth/admin/web.js +39 -0
  115. package/dist/better-auth/admin/web.js.map +1 -0
  116. package/dist/better-auth/core/common.d.ts.map +1 -1
  117. package/dist/better-auth/core/common.js +5 -2
  118. package/dist/better-auth/core/common.js.map +1 -1
  119. package/dist/better-auth/core/components/better-auth-definition-editor.d.ts.map +1 -1
  120. package/dist/better-auth/core/components/better-auth-definition-editor.js +17 -5
  121. package/dist/better-auth/core/components/better-auth-definition-editor.js.map +1 -1
  122. package/dist/better-auth/core/node.d.ts.map +1 -1
  123. package/dist/better-auth/core/node.js +21 -4
  124. package/dist/better-auth/core/node.js.map +1 -1
  125. package/dist/better-auth/core/schema/models.d.ts +1 -1
  126. package/dist/better-auth/core/schema/models.d.ts.map +1 -1
  127. package/dist/better-auth/core/schema/models.js +25 -10
  128. package/dist/better-auth/core/schema/models.js.map +1 -1
  129. package/dist/better-auth/core/schema/plugin-definition.d.ts +4 -1
  130. package/dist/better-auth/core/schema/plugin-definition.d.ts.map +1 -1
  131. package/dist/better-auth/core/schema/plugin-definition.js +7 -2
  132. package/dist/better-auth/core/schema/plugin-definition.js.map +1 -1
  133. package/dist/better-auth/core/schema/schema-issue-checker.d.ts +3 -0
  134. package/dist/better-auth/core/schema/schema-issue-checker.d.ts.map +1 -0
  135. package/dist/better-auth/core/schema/schema-issue-checker.js +21 -0
  136. package/dist/better-auth/core/schema/schema-issue-checker.js.map +1 -0
  137. package/dist/better-auth/generators/fastify/better-auth-admin-module/better-auth-admin-module.generator.d.ts +72 -0
  138. package/dist/better-auth/generators/fastify/better-auth-admin-module/better-auth-admin-module.generator.d.ts.map +1 -0
  139. package/dist/better-auth/generators/fastify/better-auth-admin-module/better-auth-admin-module.generator.js +56 -0
  140. package/dist/better-auth/generators/fastify/better-auth-admin-module/better-auth-admin-module.generator.js.map +1 -0
  141. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/index.d.ts +109 -0
  142. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/index.d.ts.map +1 -0
  143. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/index.js +11 -0
  144. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/index.js.map +1 -0
  145. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-paths.d.ts +13 -0
  146. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-paths.d.ts.map +1 -0
  147. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-paths.js +25 -0
  148. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-paths.js.map +1 -0
  149. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-renderers.d.ts +55 -0
  150. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-renderers.d.ts.map +1 -0
  151. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-renderers.js +57 -0
  152. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-renderers.js.map +1 -0
  153. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/ts-import-providers.d.ts +21 -0
  154. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/ts-import-providers.d.ts.map +1 -0
  155. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/ts-import-providers.js +30 -0
  156. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/ts-import-providers.js.map +1 -0
  157. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/typed-templates.d.ts +46 -0
  158. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/typed-templates.d.ts.map +1 -0
  159. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/typed-templates.js +33 -0
  160. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/typed-templates.js.map +1 -0
  161. package/dist/better-auth/generators/fastify/better-auth-admin-module/index.d.ts +4 -0
  162. package/dist/better-auth/generators/fastify/better-auth-admin-module/index.d.ts.map +1 -0
  163. package/dist/better-auth/generators/fastify/better-auth-admin-module/index.js +3 -0
  164. package/dist/better-auth/generators/fastify/better-auth-admin-module/index.js.map +1 -0
  165. package/dist/better-auth/generators/fastify/better-auth-admin-module/templates/module/schema/admin-auth.mutations.ts +48 -0
  166. package/dist/better-auth/generators/fastify/better-auth-admin-module/templates/module/services/admin-auth.service.ts +106 -0
  167. package/dist/better-auth/generators/fastify/better-auth-email-templates/better-auth-email-templates.generator.d.ts +43 -0
  168. package/dist/better-auth/generators/fastify/better-auth-email-templates/better-auth-email-templates.generator.d.ts.map +1 -0
  169. package/dist/better-auth/generators/fastify/better-auth-email-templates/better-auth-email-templates.generator.js +48 -0
  170. package/dist/better-auth/generators/fastify/better-auth-email-templates/better-auth-email-templates.generator.js.map +1 -0
  171. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/index.d.ts +96 -0
  172. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/index.d.ts.map +1 -0
  173. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/index.js +9 -0
  174. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/index.js.map +1 -0
  175. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-paths.d.ts +14 -0
  176. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-paths.d.ts.map +1 -0
  177. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-paths.js +26 -0
  178. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-paths.js.map +1 -0
  179. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-renderers.d.ts +41 -0
  180. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-renderers.d.ts.map +1 -0
  181. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-renderers.js +59 -0
  182. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-renderers.js.map +1 -0
  183. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/typed-templates.d.ts +60 -0
  184. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/typed-templates.d.ts.map +1 -0
  185. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/typed-templates.js +42 -0
  186. package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/typed-templates.js.map +1 -0
  187. package/dist/better-auth/generators/fastify/better-auth-email-templates/index.d.ts +2 -0
  188. package/dist/better-auth/generators/fastify/better-auth-email-templates/index.d.ts.map +1 -0
  189. package/dist/better-auth/generators/fastify/better-auth-email-templates/index.js +2 -0
  190. package/dist/better-auth/generators/fastify/better-auth-email-templates/index.js.map +1 -0
  191. package/dist/better-auth/generators/fastify/better-auth-email-templates/templates/src/emails/auth/account-verification.email.tsx +55 -0
  192. package/dist/better-auth/generators/fastify/better-auth-email-templates/templates/src/emails/auth/password-changed.email.tsx +44 -0
  193. package/dist/better-auth/generators/fastify/better-auth-email-templates/templates/src/emails/auth/password-reset.email.tsx +55 -0
  194. package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts +26 -4
  195. package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts.map +1 -1
  196. package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js +14 -3
  197. package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js.map +1 -1
  198. package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts +42 -0
  199. package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts.map +1 -1
  200. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts +20 -0
  201. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts.map +1 -1
  202. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.js +4 -1
  203. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.js.map +1 -1
  204. package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts +22 -0
  205. package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts.map +1 -1
  206. package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.js +7 -1
  207. package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.js.map +1 -1
  208. package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/auth.ts +25 -1
  209. package/dist/better-auth/generators/fastify/index.d.ts +3 -0
  210. package/dist/better-auth/generators/fastify/index.d.ts.map +1 -1
  211. package/dist/better-auth/generators/fastify/index.js +3 -0
  212. package/dist/better-auth/generators/fastify/index.js.map +1 -1
  213. package/dist/better-auth/generators/fastify/seed-initial-user/generated/index.d.ts +66 -0
  214. package/dist/better-auth/generators/fastify/seed-initial-user/generated/index.d.ts.map +1 -0
  215. package/dist/better-auth/generators/fastify/seed-initial-user/generated/index.js +9 -0
  216. package/dist/better-auth/generators/fastify/seed-initial-user/generated/index.js.map +1 -0
  217. package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-paths.d.ts +12 -0
  218. package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-paths.d.ts.map +1 -0
  219. package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-paths.js +24 -0
  220. package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-paths.js.map +1 -0
  221. package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-renderers.d.ts +38 -0
  222. package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-renderers.d.ts.map +1 -0
  223. package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-renderers.js +43 -0
  224. package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-renderers.js.map +1 -0
  225. package/dist/better-auth/generators/fastify/seed-initial-user/generated/typed-templates.d.ts +27 -0
  226. package/dist/better-auth/generators/fastify/seed-initial-user/generated/typed-templates.d.ts.map +1 -0
  227. package/dist/better-auth/generators/fastify/seed-initial-user/generated/typed-templates.js +18 -0
  228. package/dist/better-auth/generators/fastify/seed-initial-user/generated/typed-templates.js.map +1 -0
  229. package/dist/better-auth/generators/fastify/seed-initial-user/index.d.ts +2 -0
  230. package/dist/better-auth/generators/fastify/seed-initial-user/index.d.ts.map +1 -0
  231. package/dist/better-auth/generators/fastify/seed-initial-user/index.js +2 -0
  232. package/dist/better-auth/generators/fastify/seed-initial-user/index.js.map +1 -0
  233. package/dist/better-auth/generators/fastify/seed-initial-user/seed-initial-user.generator.d.ts +49 -0
  234. package/dist/better-auth/generators/fastify/seed-initial-user/seed-initial-user.generator.d.ts.map +1 -0
  235. package/dist/better-auth/generators/fastify/seed-initial-user/seed-initial-user.generator.js +60 -0
  236. package/dist/better-auth/generators/fastify/seed-initial-user/seed-initial-user.generator.js.map +1 -0
  237. package/dist/better-auth/generators/fastify/seed-initial-user/templates/src/prisma/seed-initial-user.ts +63 -0
  238. package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts +12 -1
  239. package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts.map +1 -1
  240. package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts +771 -3
  241. package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts.map +1 -1
  242. package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.d.ts +3 -0
  243. package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.d.ts.map +1 -1
  244. package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.js +3 -0
  245. package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.js.map +1 -1
  246. package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts +12 -1
  247. package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts.map +1 -1
  248. package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts +1543 -29
  249. package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts.map +1 -1
  250. package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.js +49 -1
  251. package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.js.map +1 -1
  252. package/dist/better-auth/generators/react/better-auth-pages/templates/routes/forgot-password.tsx +133 -0
  253. package/dist/better-auth/generators/react/better-auth-pages/templates/routes/login.tsx +9 -1
  254. package/dist/better-auth/generators/react/better-auth-pages/templates/routes/register.tsx +5 -1
  255. package/dist/better-auth/generators/react/better-auth-pages/templates/routes/reset-password.tsx +177 -0
  256. package/dist/better-auth/generators/react/better-auth-pages/templates/routes/verify-email.tsx +109 -0
  257. package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts +24 -2
  258. package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts.map +1 -1
  259. package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts +12 -1
  260. package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts.map +1 -1
  261. package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts +12 -1
  262. package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts.map +1 -1
  263. package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts +12 -1
  264. package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts.map +1 -1
  265. package/dist/better-auth/plugin.json +1 -1
  266. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +24 -2
  267. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts.map +1 -1
  268. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +24 -2
  269. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts.map +1 -1
  270. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +12 -1
  271. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts.map +1 -1
  272. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +12 -1
  273. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts.map +1 -1
  274. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts.map +1 -1
  275. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js +1 -1
  276. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js.map +1 -1
  277. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +1 -3
  278. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +24 -2
  279. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts.map +1 -1
  280. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +24 -2
  281. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts.map +1 -1
  282. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +12 -1
  283. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts.map +1 -1
  284. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +24 -2
  285. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts.map +1 -1
  286. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js +1 -1
  287. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js.map +1 -1
  288. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx +1 -1
  289. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +12 -1
  290. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts.map +1 -1
  291. package/dist/local-auth/admin/node.js +1 -1
  292. package/dist/local-auth/admin/node.js.map +1 -1
  293. package/dist/local-auth/core/common.d.ts.map +1 -1
  294. package/dist/local-auth/core/common.js +5 -2
  295. package/dist/local-auth/core/common.js.map +1 -1
  296. package/dist/local-auth/core/components/local-auth-definition-editor.d.ts.map +1 -1
  297. package/dist/local-auth/core/components/local-auth-definition-editor.js +7 -4
  298. package/dist/local-auth/core/components/local-auth-definition-editor.js.map +1 -1
  299. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +11 -0
  300. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts.map +1 -1
  301. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts.map +1 -1
  302. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js +1 -0
  303. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js.map +1 -1
  304. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +22 -0
  305. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts.map +1 -1
  306. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js +1 -0
  307. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js.map +1 -1
  308. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.d.ts.map +1 -1
  309. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.js +8 -3
  310. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.js.map +1 -1
  311. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.ts +11 -4
  312. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +12 -1
  313. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +1 -1
  314. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +72 -6
  315. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts.map +1 -1
  316. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +12 -1
  317. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +1 -1
  318. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +108 -9
  319. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts.map +1 -1
  320. package/dist/local-auth/core/generators/react-session/generated/index.d.ts +24 -2
  321. package/dist/local-auth/core/generators/react-session/generated/index.d.ts.map +1 -1
  322. package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +12 -1
  323. package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts.map +1 -1
  324. package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +24 -2
  325. package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts.map +1 -1
  326. package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +12 -1
  327. package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts.map +1 -1
  328. package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts +0 -9
  329. package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts.map +1 -1
  330. package/dist/local-auth/core/generators/seed-initial-user/generated/index.js +0 -2
  331. package/dist/local-auth/core/generators/seed-initial-user/generated/index.js.map +1 -1
  332. package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts.map +1 -1
  333. package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.js +0 -1
  334. package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.js.map +1 -1
  335. package/dist/local-auth/core/generators/seed-initial-user/index.d.ts +0 -2
  336. package/dist/local-auth/core/generators/seed-initial-user/index.d.ts.map +1 -1
  337. package/dist/local-auth/core/generators/seed-initial-user/index.js +0 -1
  338. package/dist/local-auth/core/generators/seed-initial-user/index.js.map +1 -1
  339. package/dist/local-auth/core/node.d.ts.map +1 -1
  340. package/dist/local-auth/core/node.js +6 -3
  341. package/dist/local-auth/core/node.js.map +1 -1
  342. package/dist/local-auth/core/schema/models.d.ts +1 -1
  343. package/dist/local-auth/core/schema/models.d.ts.map +1 -1
  344. package/dist/local-auth/core/schema/models.js +25 -10
  345. package/dist/local-auth/core/schema/models.js.map +1 -1
  346. package/dist/local-auth/core/schema/plugin-definition.d.ts +1 -2
  347. package/dist/local-auth/core/schema/plugin-definition.d.ts.map +1 -1
  348. package/dist/local-auth/core/schema/plugin-definition.js +1 -5
  349. package/dist/local-auth/core/schema/plugin-definition.js.map +1 -1
  350. package/dist/local-auth/core/schema/schema-issue-checker.d.ts +3 -0
  351. package/dist/local-auth/core/schema/schema-issue-checker.d.ts.map +1 -0
  352. package/dist/local-auth/core/schema/schema-issue-checker.js +21 -0
  353. package/dist/local-auth/core/schema/schema-issue-checker.js.map +1 -0
  354. package/dist/local-auth/plugin.json +6 -1
  355. package/dist/placeholder-auth/core/schema/models.d.ts.map +1 -1
  356. package/dist/placeholder-auth/core/schema/models.js +17 -2
  357. package/dist/placeholder-auth/core/schema/models.js.map +1 -1
  358. package/dist/web/assets/__federation_expose_authCoreCommon-NPAy2Xu2.js +85 -0
  359. package/dist/web/assets/__federation_expose_authCoreCommon-NPAy2Xu2.js.map +1 -0
  360. package/dist/web/assets/{__federation_expose_authCoreWeb-BSv8GVI2.js → __federation_expose_authCoreWeb-D0AlXNml.js} +29 -9
  361. package/dist/web/assets/__federation_expose_authCoreWeb-D0AlXNml.js.map +1 -0
  362. package/dist/web/assets/__federation_expose_better-authAdminCommon-Bp8fb_BT.js +63 -0
  363. package/dist/web/assets/__federation_expose_better-authAdminCommon-Bp8fb_BT.js.map +1 -0
  364. package/dist/web/assets/__federation_expose_better-authAdminWeb-Dggf6fZk.js +41 -0
  365. package/dist/web/assets/__federation_expose_better-authAdminWeb-Dggf6fZk.js.map +1 -0
  366. package/dist/web/assets/__federation_expose_better-authCoreCommon-D3bQgHWh.js +54 -0
  367. package/dist/web/assets/__federation_expose_better-authCoreCommon-D3bQgHWh.js.map +1 -0
  368. package/dist/web/assets/__federation_expose_better-authCoreWeb-4VA_40fu.js +157 -0
  369. package/dist/web/assets/__federation_expose_better-authCoreWeb-4VA_40fu.js.map +1 -0
  370. package/dist/web/assets/{__federation_expose_local-authAdminCommon-IuYupUXE.js → __federation_expose_local-authAdminCommon-Bp8fb_BT.js} +2 -2
  371. package/dist/web/assets/{__federation_expose_local-authAdminCommon-IuYupUXE.js.map → __federation_expose_local-authAdminCommon-Bp8fb_BT.js.map} +1 -1
  372. package/dist/web/assets/{__federation_expose_local-authAdminWeb-BzhksqwO.js → __federation_expose_local-authAdminWeb-BDyZDL1a.js} +2 -2
  373. package/dist/web/assets/{__federation_expose_local-authAdminWeb-BzhksqwO.js.map → __federation_expose_local-authAdminWeb-BDyZDL1a.js.map} +1 -1
  374. package/dist/web/assets/__federation_expose_local-authCoreCommon-C3UyEu-M.js +54 -0
  375. package/dist/web/assets/__federation_expose_local-authCoreCommon-C3UyEu-M.js.map +1 -0
  376. package/dist/web/assets/__federation_expose_local-authCoreWeb-BYkl2IGk.js +167 -0
  377. package/dist/web/assets/__federation_expose_local-authCoreWeb-BYkl2IGk.js.map +1 -0
  378. package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-hGIPuBy3.js → __federation_expose_placeholder-authCoreCommon-Bq0ln8n5.js} +3 -3
  379. package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-hGIPuBy3.js.map → __federation_expose_placeholder-authCoreCommon-Bq0ln8n5.js.map} +1 -1
  380. package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-P4Qq8Zf6.js → __federation_expose_placeholder-authCoreWeb-BNGIcu0Y.js} +22 -7
  381. package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-BNGIcu0Y.js.map +1 -0
  382. package/dist/web/assets/{__federation_fn_import-CzLgVaFb.js → __federation_fn_import-DybuDj1g.js} +2 -2
  383. package/dist/web/assets/{__federation_fn_import-CzLgVaFb.js.map → __federation_fn_import-DybuDj1g.js.map} +1 -1
  384. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-DA-fkeD5.js → web-CAuxM6sN.js} +11 -11
  385. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-CAuxM6sN.js.map +1 -0
  386. package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-zJirGIS1.js → project-builder-lib-DkaXS95C.js} +11304 -10250
  387. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-DkaXS95C.js.map +1 -0
  388. package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-Ds8y9Suz.js → ui-components-DX4jbl4M.js} +217 -51
  389. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-DX4jbl4M.js.map +1 -0
  390. package/dist/web/assets/__federation_shared_@baseplate-dev/{utils-DnBM79-7.js → utils-B-MiuXg4.js} +49 -16
  391. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-B-MiuXg4.js.map +1 -0
  392. package/dist/web/assets/__federation_shared_@tanstack/{react-router-BoEohCHh.js → react-router-DyqK0P1G.js} +2 -2
  393. package/dist/web/assets/__federation_shared_@tanstack/{react-router-BoEohCHh.js.map → react-router-DyqK0P1G.js.map} +1 -1
  394. package/dist/web/assets/{get-auth-plugin-definition-DM6kosCC.js → get-auth-plugin-definition-BigT75An.js} +2 -2
  395. package/dist/web/assets/{get-auth-plugin-definition-DM6kosCC.js.map → get-auth-plugin-definition-BigT75An.js.map} +1 -1
  396. package/dist/web/assets/{index-EshpyU4T.js → index-BwviOVwi.js} +3 -5
  397. package/dist/web/assets/{index-EshpyU4T.js.map → index-BwviOVwi.js.map} +1 -1
  398. package/dist/web/assets/{index.esm-CYY7gyrG.js → index.esm-Db6zPKK9.js} +2 -2
  399. package/dist/web/assets/{index.esm-CYY7gyrG.js.map → index.esm-Db6zPKK9.js.map} +1 -1
  400. package/dist/web/assets/model-names-D7UT0B8x.js +10 -0
  401. package/dist/web/assets/model-names-D7UT0B8x.js.map +1 -0
  402. package/dist/web/assets/{model-utils-WWo9T1Zx.js → model-utils-D0sDtkf1.js} +138 -20
  403. package/dist/web/assets/model-utils-D0sDtkf1.js.map +1 -0
  404. package/dist/web/assets/plugin-definition-BQN6LXOW.js +304 -0
  405. package/dist/web/assets/plugin-definition-BQN6LXOW.js.map +1 -0
  406. package/dist/web/assets/{plugin-definition-CqP9VmOQ.js → plugin-definition-Cg8Gij5x.js} +2 -2
  407. package/dist/web/assets/{plugin-definition-CqP9VmOQ.js.map → plugin-definition-Cg8Gij5x.js.map} +1 -1
  408. package/dist/web/assets/{plugin-definition-y6VVQ5_O.js → plugin-definition-ChoxTjiw.js} +20 -6
  409. package/dist/web/assets/plugin-definition-ChoxTjiw.js.map +1 -0
  410. package/dist/web/assets/{__federation_expose_better-authCoreWeb-2kA00dBg.js → plugin-definition-D9-5sSEf.js} +43 -130
  411. package/dist/web/assets/plugin-definition-D9-5sSEf.js.map +1 -0
  412. package/dist/web/assets/{react-B6Fz4KB7.js → react-CcDhDxl8.js} +2 -2
  413. package/dist/web/assets/{react-B6Fz4KB7.js.map → react-CcDhDxl8.js.map} +1 -1
  414. package/dist/web/assets/remoteEntry.js +16 -10
  415. package/dist/web/assets/remoteEntry.js.map +1 -1
  416. package/dist/web/assets/{styles-0yxEwdyo.js → styles-Otn_yxD1.js} +3 -3
  417. package/dist/web/assets/{styles-0yxEwdyo.js.map → styles-Otn_yxD1.js.map} +1 -1
  418. package/package.json +15 -15
  419. package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.d.ts +0 -18
  420. package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.d.ts.map +0 -1
  421. package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.js +0 -26
  422. package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.js.map +0 -1
  423. package/dist/web/assets/__federation_expose_authCoreCommon-D8SAyij-.js +0 -30
  424. package/dist/web/assets/__federation_expose_authCoreCommon-D8SAyij-.js.map +0 -1
  425. package/dist/web/assets/__federation_expose_authCoreWeb-BSv8GVI2.js.map +0 -1
  426. package/dist/web/assets/__federation_expose_better-authCoreCommon-BJhkN6zV.js +0 -20
  427. package/dist/web/assets/__federation_expose_better-authCoreCommon-BJhkN6zV.js.map +0 -1
  428. package/dist/web/assets/__federation_expose_better-authCoreWeb-2kA00dBg.js.map +0 -1
  429. package/dist/web/assets/__federation_expose_local-authCoreCommon-DO5xRAoM.js +0 -21
  430. package/dist/web/assets/__federation_expose_local-authCoreCommon-DO5xRAoM.js.map +0 -1
  431. package/dist/web/assets/__federation_expose_local-authCoreWeb-QdXa2aao.js +0 -448
  432. package/dist/web/assets/__federation_expose_local-authCoreWeb-QdXa2aao.js.map +0 -1
  433. package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-P4Qq8Zf6.js.map +0 -1
  434. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-DA-fkeD5.js.map +0 -1
  435. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-zJirGIS1.js.map +0 -1
  436. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-Ds8y9Suz.js.map +0 -1
  437. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-DnBM79-7.js.map +0 -1
  438. package/dist/web/assets/model-utils-WWo9T1Zx.js.map +0 -1
  439. package/dist/web/assets/plugin-definition-BCrs3YSY.js +0 -20
  440. package/dist/web/assets/plugin-definition-BCrs3YSY.js.map +0 -1
  441. package/dist/web/assets/plugin-definition-BwAJGzRn.js +0 -32
  442. package/dist/web/assets/plugin-definition-BwAJGzRn.js.map +0 -1
  443. package/dist/web/assets/plugin-definition-y6VVQ5_O.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-definition-BQN6LXOW.js","sources":["../../../src/local-auth/core/schema/models.ts","../../../src/local-auth/core/schema/plugin-definition.ts"],"sourcesContent":["import type { PartialProjectDefinitionInput } from '@baseplate-dev/project-builder-lib';\n\nimport { LOCAL_AUTH_MODELS } from '#src/local-auth/constants/model-names.js';\n\nexport function createLocalAuthPartialDefinition(\n authFeatureName: string,\n accountsFeatureName: string,\n): PartialProjectDefinitionInput {\n return {\n models: [\n {\n name: LOCAL_AUTH_MODELS.user,\n featureRef: accountsFeatureName,\n model: {\n fields: [\n {\n name: 'id',\n type: 'uuid',\n options: { defaultGeneration: 'uuidv7' },\n },\n {\n name: 'name',\n type: 'string',\n isOptional: true,\n },\n {\n name: 'email',\n type: 'string',\n },\n {\n name: 'emailVerified',\n type: 'boolean',\n options: { default: 'false' },\n },\n {\n name: 'updatedAt',\n type: 'dateTime',\n options: { defaultToNow: true, updatedAt: true },\n },\n {\n name: 'createdAt',\n type: 'dateTime',\n options: { defaultToNow: true },\n },\n ],\n primaryKeyFieldRefs: ['id'],\n uniqueConstraints: [\n {\n fields: [{ fieldRef: 'email' }],\n },\n ],\n },\n graphql: {\n objectType: {\n enabled: true,\n fields: [\n { ref: 'id' },\n {\n ref: 'email',\n globalRoles: ['admin'],\n instanceRoles: ['self'],\n },\n ],\n },\n },\n authorizer: {\n roles: [\n {\n name: 'self',\n expression: 'model.id === userId',\n },\n ],\n },\n },\n {\n name: LOCAL_AUTH_MODELS.userAccount,\n featureRef: accountsFeatureName,\n model: {\n fields: [\n {\n name: 'id',\n type: 'uuid',\n options: { defaultGeneration: 'uuidv7' },\n },\n {\n name: 'userId',\n type: 'uuid',\n },\n {\n name: 'accountId',\n type: 'string',\n },\n {\n name: 'providerId',\n type: 'string',\n },\n {\n name: 'password',\n type: 'string',\n isOptional: true,\n },\n {\n name: 'createdAt',\n type: 'dateTime',\n options: { defaultToNow: true },\n },\n {\n name: 'updatedAt',\n type: 'dateTime',\n options: { defaultToNow: true, updatedAt: true },\n },\n ],\n primaryKeyFieldRefs: ['id'],\n uniqueConstraints: [\n {\n fields: [{ fieldRef: 'accountId' }, { fieldRef: 'providerId' }],\n },\n ],\n relations: [\n {\n name: 'user',\n references: [{ localRef: 'userId', foreignRef: 'id' }],\n modelRef: LOCAL_AUTH_MODELS.user,\n foreignRelationName: 'accounts',\n onDelete: 'Cascade',\n onUpdate: 'Restrict',\n },\n ],\n },\n },\n {\n name: LOCAL_AUTH_MODELS.userRole,\n featureRef: accountsFeatureName,\n model: {\n fields: [\n {\n name: 'userId',\n type: 'uuid',\n },\n {\n name: 'role',\n type: 'string',\n },\n {\n name: 'updatedAt',\n type: 'dateTime',\n options: { defaultToNow: true, updatedAt: true },\n },\n {\n name: 'createdAt',\n type: 'dateTime',\n options: { defaultToNow: true },\n },\n ],\n primaryKeyFieldRefs: ['userId', 'role'],\n relations: [\n {\n name: 'user',\n references: [{ localRef: 'userId', foreignRef: 'id' }],\n modelRef: LOCAL_AUTH_MODELS.user,\n foreignRelationName: 'roles',\n onDelete: 'Cascade',\n onUpdate: 'Restrict',\n },\n ],\n },\n },\n {\n name: LOCAL_AUTH_MODELS.userSession,\n featureRef: accountsFeatureName,\n model: {\n fields: [\n {\n name: 'id',\n type: 'uuid',\n options: { defaultGeneration: 'uuidv7' },\n },\n {\n name: 'userId',\n type: 'uuid',\n },\n {\n name: 'token',\n type: 'string',\n },\n {\n name: 'expiresAt',\n type: 'dateTime',\n },\n {\n name: 'renewedAt',\n type: 'dateTime',\n options: { defaultToNow: true },\n },\n {\n name: 'createdAt',\n type: 'dateTime',\n options: { defaultToNow: true },\n },\n {\n name: 'updatedAt',\n type: 'dateTime',\n options: { defaultToNow: true, updatedAt: true },\n },\n ],\n primaryKeyFieldRefs: ['id'],\n uniqueConstraints: [\n {\n fields: [{ fieldRef: 'token' }],\n },\n ],\n relations: [\n {\n name: 'user',\n references: [{ localRef: 'userId', foreignRef: 'id' }],\n modelRef: LOCAL_AUTH_MODELS.user,\n foreignRelationName: 'sessions',\n onDelete: 'Cascade',\n onUpdate: 'Restrict',\n },\n ],\n },\n },\n {\n name: LOCAL_AUTH_MODELS.authVerification,\n featureRef: authFeatureName,\n model: {\n fields: [\n {\n name: 'id',\n type: 'uuid',\n options: { defaultGeneration: 'uuidv4' },\n },\n {\n name: 'type',\n type: 'string',\n },\n {\n name: 'identifier',\n type: 'string',\n },\n {\n name: 'value',\n type: 'string',\n },\n {\n name: 'userId',\n type: 'uuid',\n isOptional: true,\n },\n {\n name: 'metadata',\n type: 'json',\n isOptional: true,\n },\n {\n name: 'expiresAt',\n type: 'dateTime',\n },\n {\n name: 'createdAt',\n type: 'dateTime',\n options: { defaultToNow: true },\n },\n ],\n primaryKeyFieldRefs: ['id'],\n uniqueConstraints: [\n {\n fields: [{ fieldRef: 'type' }, { fieldRef: 'identifier' }],\n },\n ],\n relations: [\n {\n name: 'user',\n references: [{ localRef: 'userId', foreignRef: 'id' }],\n modelRef: LOCAL_AUTH_MODELS.user,\n foreignRelationName: 'authVerifications',\n onDelete: 'Cascade',\n onUpdate: 'Restrict',\n },\n ],\n },\n },\n ],\n };\n}\n","import type { def } from '@baseplate-dev/project-builder-lib';\n\nimport {\n authRoleEntityType,\n definitionSchema,\n} from '@baseplate-dev/project-builder-lib';\nimport { z } from 'zod';\n\nexport const createLocalAuthPluginDefinitionSchema = definitionSchema((ctx) =>\n z.object({\n additionalUserAdminRoles: ctx.withDefault(\n z.array(\n ctx.withRef({\n type: authRoleEntityType,\n onDelete: 'DELETE',\n }),\n ),\n [],\n ),\n requireNameOnRegistration: z.boolean().default(false),\n }),\n);\n\nexport type LocalAuthPluginDefinition = def.InferOutput<\n typeof createLocalAuthPluginDefinitionSchema\n>;\n\nexport type LocalAuthPluginDefinitionInput = def.InferInput<\n typeof createLocalAuthPluginDefinitionSchema\n>;\n"],"names":[],"mappings":";;;AAIO,SAAS,gCAAA,CACd,iBACA,mBAAA,EAC+B;AAC/B,EAAA,OAAO;AAAA,IACL,MAAA,EAAQ;AAAA,MACN;AAAA,QACE,MAAM,iBAAA,CAAkB,IAAA;AAAA,QACxB,UAAA,EAAY,mBAAA;AAAA,QACZ,KAAA,EAAO;AAAA,UACL,MAAA,EAAQ;AAAA,YACN;AAAA,cACE,IAAA,EAAM,IAAA;AAAA,cACN,IAAA,EAAM,MAAA;AAAA,cACN,OAAA,EAAS,EAAE,iBAAA,EAAmB,QAAA;AAAS,aACzC;AAAA,YACA;AAAA,cACE,IAAA,EAAM,MAAA;AAAA,cACN,IAAA,EAAM,QAAA;AAAA,cACN,UAAA,EAAY;AAAA,aACd;AAAA,YACA;AAAA,cACE,IAAA,EAAM,OAAA;AAAA,cACN,IAAA,EAAM;AAAA,aACR;AAAA,YACA;AAAA,cACE,IAAA,EAAM,eAAA;AAAA,cACN,IAAA,EAAM,SAAA;AAAA,cACN,OAAA,EAAS,EAAE,OAAA,EAAS,OAAA;AAAQ,aAC9B;AAAA,YACA;AAAA,cACE,IAAA,EAAM,WAAA;AAAA,cACN,IAAA,EAAM,UAAA;AAAA,cACN,OAAA,EAAS,EAAE,YAAA,EAAc,IAAA,EAAM,WAAW,IAAA;AAAK,aACjD;AAAA,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@@ -1,4 +1,4 @@
1
- import { importShared } from './__federation_fn_import-CzLgVaFb.js';
1
+ import { importShared } from './__federation_fn_import-DybuDj1g.js';
2
2
 
3
3
  const PLACEHOLDER_AUTH_MODELS = {
4
4
  user: "User"
@@ -13,4 +13,4 @@ const createPlaceholderAuthPluginDefinitionSchema = definitionSchema(
13
13
  );
14
14
 
15
15
  export { PLACEHOLDER_AUTH_MODELS as P, createPlaceholderAuthPluginDefinitionSchema as c };
16
- //# sourceMappingURL=plugin-definition-CqP9VmOQ.js.map
16
+ //# sourceMappingURL=plugin-definition-Cg8Gij5x.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin-definition-CqP9VmOQ.js","sources":["../../../src/placeholder-auth/constants/model-names.ts","../../../src/placeholder-auth/core/schema/plugin-definition.ts"],"sourcesContent":["export const PLACEHOLDER_AUTH_MODELS = {\n user: 'User',\n} as const;\n","import type { def } from '@baseplate-dev/project-builder-lib';\n\nimport { definitionSchema } from '@baseplate-dev/project-builder-lib';\nimport { z } from 'zod';\n\nexport const createPlaceholderAuthPluginDefinitionSchema = definitionSchema(\n () => z.object({}),\n);\n\nexport type PlaceholderAuthPluginDefinitionInput = def.InferInput<\n typeof createPlaceholderAuthPluginDefinitionSchema\n>;\n"],"names":[],"mappings":";;AAAO,MAAM,uBAAA,GAA0B;AAAA,EACrC,IAAA,EAAM;AACR;;ACAA,MAAA,CAAA,gBAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;;AACA,MAAA,CAAA,CAAA,CAAA,GAAA,MAAA,YAAA,CAAA,KAAA,CAAA;;AAEO,MAAM,2CAAA,GAA8C,gBAAA;AAAA,EACzD,MAAM,CAAA,CAAE,MAAA,CAAO,EAAE;AACnB;;;;"}
1
+ {"version":3,"file":"plugin-definition-Cg8Gij5x.js","sources":["../../../src/placeholder-auth/constants/model-names.ts","../../../src/placeholder-auth/core/schema/plugin-definition.ts"],"sourcesContent":["export const PLACEHOLDER_AUTH_MODELS = {\n user: 'User',\n} as const;\n","import type { def } from '@baseplate-dev/project-builder-lib';\n\nimport { definitionSchema } from '@baseplate-dev/project-builder-lib';\nimport { z } from 'zod';\n\nexport const createPlaceholderAuthPluginDefinitionSchema = definitionSchema(\n () => z.object({}),\n);\n\nexport type PlaceholderAuthPluginDefinitionInput = def.InferInput<\n typeof createPlaceholderAuthPluginDefinitionSchema\n>;\n"],"names":[],"mappings":";;AAAO,MAAM,uBAAA,GAA0B;AAAA,EACrC,IAAA,EAAM;AACR;;ACAA,MAAA,CAAA,gBAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;;AACA,MAAA,CAAA,CAAA,CAAA,GAAA,MAAA,YAAA,CAAA,KAAA,CAAA;;AAEO,MAAM,2CAAA,GAA8C,gBAAA;AAAA,EACzD,MAAM,CAAA,CAAE,MAAA,CAAO,EAAE;AACnB;;;;"}
@@ -1,4 +1,4 @@
1
- import { importShared } from './__federation_fn_import-CzLgVaFb.js';
1
+ import { importShared } from './__federation_fn_import-DybuDj1g.js';
2
2
 
3
3
  const {authRoleEntityType: authRoleEntityType$1} = await importShared('@baseplate-dev/project-builder-lib');
4
4
 
@@ -6,17 +6,26 @@ const AUTH_DEFAULT_ROLES = [
6
6
  {
7
7
  name: "public",
8
8
  comment: "All users (including unauthenticated and authenticated users)",
9
- builtIn: true
9
+ builtIn: true,
10
+ autoAssigned: true
10
11
  },
11
12
  {
12
13
  name: "user",
13
14
  comment: "All authenticated users",
14
- builtIn: true
15
+ builtIn: true,
16
+ autoAssigned: true
15
17
  },
16
18
  {
17
19
  name: "system",
18
20
  comment: "System processes without a user context, e.g. background jobs",
19
- builtIn: true
21
+ builtIn: true,
22
+ autoAssigned: true
23
+ },
24
+ {
25
+ name: "admin",
26
+ comment: "Administrator with full access",
27
+ builtIn: true,
28
+ autoAssigned: false
20
29
  }
21
30
  ];
22
31
  function createDefaultAuthRoles() {
@@ -35,7 +44,8 @@ const createAuthRoleSchema = definitionSchema$1(
35
44
  id: z$1.string(),
36
45
  name: z$1.string().min(1),
37
46
  comment: z$1.string().min(1),
38
- builtIn: z$1.boolean().default(false)
47
+ builtIn: z$1.boolean().default(false),
48
+ autoAssigned: z$1.boolean().default(false)
39
49
  }),
40
50
  { type: authRoleEntityType }
41
51
  )
@@ -71,9 +81,13 @@ const createAuthPluginDefinitionSchema = definitionSchema(
71
81
  type: featureEntityType,
72
82
  onDelete: "RESTRICT"
73
83
  }),
84
+ accountsFeatureRef: ctx.withRef({
85
+ type: featureEntityType,
86
+ onDelete: "RESTRICT"
87
+ }),
74
88
  roles: createAuthRolesSchema(ctx)
75
89
  })
76
90
  );
77
91
 
78
92
  export { createAuthPluginDefinitionSchema as a, createDefaultAuthRoles as b, createAuthRoleSchema as c };
79
- //# sourceMappingURL=plugin-definition-y6VVQ5_O.js.map
93
+ //# sourceMappingURL=plugin-definition-ChoxTjiw.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-definition-ChoxTjiw.js","sources":["../../../src/auth/core/schema/roles/constants.ts","../../../src/auth/core/schema/roles/schema.ts","../../../src/auth/core/schema/plugin-definition.ts"],"sourcesContent":["import { authRoleEntityType } from '@baseplate-dev/project-builder-lib';\n\nimport type { AuthRoleDefinition } from './schema.js';\n\nexport const AUTH_DEFAULT_ROLES: Omit<AuthRoleDefinition, 'id'>[] = [\n {\n name: 'public',\n comment: 'All users (including unauthenticated and authenticated users)',\n builtIn: true,\n autoAssigned: true,\n },\n {\n name: 'user',\n comment: 'All authenticated users',\n builtIn: true,\n autoAssigned: true,\n },\n {\n name: 'system',\n comment: 'System processes without a user context, e.g. background jobs',\n builtIn: true,\n autoAssigned: true,\n },\n {\n name: 'admin',\n comment: 'Administrator with full access',\n builtIn: true,\n autoAssigned: false,\n },\n];\n\nexport function createDefaultAuthRoles(): AuthRoleDefinition[] {\n return AUTH_DEFAULT_ROLES.map((role) => ({\n ...role,\n id: authRoleEntityType.generateNewId(),\n }));\n}\n","import type { def } from '@baseplate-dev/project-builder-lib';\n\nimport {\n authRoleEntityType,\n definitionSchema,\n} from '@baseplate-dev/project-builder-lib';\nimport { z } from 'zod';\n\nimport { AUTH_DEFAULT_ROLES } from './constants.js';\n\nexport const createAuthRoleSchema = definitionSchema((ctx) =>\n ctx.withEnt(\n z.object({\n id: z.string(),\n name: z.string().min(1),\n comment: z.string().min(1),\n builtIn: z.boolean().default(false),\n autoAssigned: z.boolean().default(false),\n }),\n { type: authRoleEntityType },\n ),\n);\n\n/**\n * Defines the schema for a role.\n */\nexport type AuthRoleDefinition = def.InferOutput<typeof createAuthRoleSchema>;\n\nexport type AuthRoleInput = def.InferInput<typeof createAuthRoleSchema>;\n\n/**\n * Defines the schema for an array of roles ensuring that there are no duplicate\n * role names and that the built-in roles are included.\n */\nexport const createAuthRolesSchema = definitionSchema((ctx) =>\n z\n .array(createAuthRoleSchema(ctx))\n .superRefine((roles, ctx) => {\n const dup = roles\n .map((r) => r.name)\n .filter((v, i, a) => a.indexOf(v) !== i);\n if (dup.length > 0) {\n ctx.addIssue({\n code: 'custom',\n message: `Duplicate role name(s): ${dup.join(', ')}`,\n });\n }\n })\n .superRefine((roles, ctx) => {\n for (const defaultRole of AUTH_DEFAULT_ROLES) {\n if (!roles.some((r) => r.name === defaultRole.name && r.builtIn)) {\n ctx.addIssue({\n code: 'custom',\n message: `Missing built-in role: ${defaultRole.name}`,\n });\n }\n }\n }),\n);\n","import type { def } from '@baseplate-dev/project-builder-lib';\n\nimport {\n definitionSchema,\n featureEntityType,\n} from '@baseplate-dev/project-builder-lib';\nimport { z } from 'zod';\n\nimport { createAuthRolesSchema } from './roles/index.js';\n\nexport const createAuthPluginDefinitionSchema = definitionSchema((ctx) =>\n z.object({\n implementationPluginKey: z\n .string()\n .min(1, 'Auth implementation plugin must be selected'),\n authFeatureRef: ctx.withRef({\n type: featureEntityType,\n onDelete: 'RESTRICT',\n }),\n accountsFeatureRef: ctx.withRef({\n type: featureEntityType,\n onDelete: 'RESTRICT',\n }),\n roles: createAuthRolesSchema(ctx),\n }),\n);\n\nexport type AuthPluginDefinition = def.InferOutput<\n typeof createAuthPluginDefinitionSchema\n>;\n\nexport type AuthPluginDefinitionInput = def.InferInput<\n typeof createAuthPluginDefinitionSchema\n>;\n"],"names":["authRoleEntityType","definitionSchema","z","ctx"],"mappings":";;AAAA,MAAA,qBAAAA,oBAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;;AAIO,MAAM,kBAAA,GAAuD;AAAA,EAClE;AAAA,IACE,IAAA,EAAM,QAAA;AAAA,IACN,OAAA,EAAS,+DAAA;AAAA,IACT,OAAA,EAAS,IAAA;AAAA,IACT,YAAA,EAAc;AAAA,GAChB;AAAA,EACA;AAAA,IACE,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS,yBAAA;AAAA,IACT,OAAA,EAAS,IAAA;AAAA,IACT,YAAA,EAAc;AAAA,GAChB;AAAA,EACA;AAAA,IACE,IAAA,EAAM,QAAA;AAAA,IACN,OAAA,EAAS,+DAAA;AAAA,IACT,OAAA,EAAS,IAAA;AAAA,IACT,YAAA,EAAc;AAAA,GAChB;AAAA,EACA;AAAA,IACE,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS,gCAAA;AAAA,IACT,OAAA,EAAS,IAAA;AAAA,IACT,YAAA,EAAc;AAAA;AAElB,CAAA;AAEO,SAAS,sBAAA,GAA+C;AAC7D,EAAA,OAAO,kBAAA,CAAmB,GAAA,CAAI,CAAC,IAAA,MAAU;AAAA,IACvC,GAAG,IAAA;AAAA,IACH,EAAA,EAAIA,qBAAmB,aAAA;AAAc,GACvC,CAAE,CAAA;AACJ;;AClCA,MAAA,CAAA,kBAAA,mBAAAC,kBAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;;AAIA,MAAA,IAAAC,GAAA,CAAA,GAAA,MAAA,YAAA,CAAA,KAAA,CAAA;AAIO,MAAM,oBAAA,GAAuBD,kBAAA;AAAA,EAAiB,CAAC,QACpD,GAAA,CAAI,OAA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Q,CAAA,CAAE,OAAO,CAAA,EAAG;AAChE,QAAAA,KAAI,QAAA,CAAS;AAAA,UACX,IAAA,EAAM,QAAA;AAAA,UACN,OAAA,EAAS,CAAA,uBAAA,EAA0B,WAAA,CAAY,IAAI,CAAA;AAAA,SACpD,CAAA;AAAA,MACH;AAAA,IACF;AAAA,EACF,CAAC;AACL,CAAA;;ACxDA,MAAA,CAAA,gBAAA,CAAA,iBAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;;AAIA,MAAA,CAAA,CAAA,CAAA,GAAA,MAAA,YAAA,CAAA,KAAA,CAAA;AAIO,MAAM,gCAAA,GAAmC,gBAAA;AAAA,EAAiB,CAAC,GAAA,KAChE,CAAA,CAAE,MAAA,CAAO;AAAA,IACP,yBAAyB,CAAA,CACtB,MAAA,EAAO,CACP,GAAA,CAAI,GAAG,6CAA6C,CAAA;AAAA,IACvD,cAAA,EAAgB,IAAI,OAAA,CAAQ;AAAA,MAC1B,IAAA,EAAM,iBAAA;AAAA,MACN,QAAA,EAAU;AAAA,KACX,CAAA;AAAA,IACD,kBAAA,EAAoB,IAAI,OAAA,CAAQ;AAAA,MAC9B,IAAA,EAAM,iBAAA;AAAA,MACN,QAAA,EAAU;AAAA,KACX,CAAA;AAAA,IACD,KAAA,EAAO,sBAAsB,GAAG;AAAA,GACjC;AACH;;;;"}
@@ -1,21 +1,18 @@
1
- import { importShared } from './__federation_fn_import-CzLgVaFb.js';
2
- import { j as jsxRuntimeExports } from './jsx-runtime-XI9uIe3W.js';
3
- import { a, A as AuthConfigTabs } from './styles-0yxEwdyo.js';
4
- import { g as getAuthPluginDefinition } from './get-auth-plugin-definition-DM6kosCC.js';
5
- import { B as BETTER_AUTH_MODELS, c as createBetterAuthPluginDefinitionSchema } from './plugin-definition-BCrs3YSY.js';
1
+ import { B as BETTER_AUTH_MODELS } from './model-names-D7UT0B8x.js';
2
+ import { importShared } from './__federation_fn_import-DybuDj1g.js';
6
3
 
7
- function createBetterAuthPartialDefinition(authFeatureName) {
4
+ function createBetterAuthPartialDefinition(authFeatureName, accountsFeatureName) {
8
5
  return {
9
6
  models: [
10
7
  {
11
8
  name: BETTER_AUTH_MODELS.user,
12
- featureRef: authFeatureName,
9
+ featureRef: accountsFeatureName,
13
10
  model: {
14
11
  fields: [
15
12
  {
16
13
  name: "id",
17
14
  type: "uuid",
18
- options: { genUuid: true }
15
+ options: { defaultGeneration: "uuidv7" }
19
16
  },
20
17
  {
21
18
  name: "name",
@@ -58,19 +55,34 @@ function createBetterAuthPartialDefinition(authFeatureName) {
58
55
  graphql: {
59
56
  objectType: {
60
57
  enabled: true,
61
- fields: [{ ref: "id" }, { ref: "email" }]
58
+ fields: [
59
+ { ref: "id" },
60
+ {
61
+ ref: "email",
62
+ globalRoles: ["admin"],
63
+ instanceRoles: ["self"]
64
+ }
65
+ ]
62
66
  }
67
+ },
68
+ authorizer: {
69
+ roles: [
70
+ {
71
+ name: "self",
72
+ expression: "model.id === userId"
73
+ }
74
+ ]
63
75
  }
64
76
  },
65
77
  {
66
78
  name: BETTER_AUTH_MODELS.session,
67
- featureRef: authFeatureName,
79
+ featureRef: accountsFeatureName,
68
80
  model: {
69
81
  fields: [
70
82
  {
71
83
  name: "id",
72
84
  type: "uuid",
73
- options: { genUuid: true }
85
+ options: { defaultGeneration: "uuidv7" }
74
86
  },
75
87
  {
76
88
  name: "expiresAt",
@@ -125,13 +137,13 @@ function createBetterAuthPartialDefinition(authFeatureName) {
125
137
  },
126
138
  {
127
139
  name: BETTER_AUTH_MODELS.account,
128
- featureRef: authFeatureName,
140
+ featureRef: accountsFeatureName,
129
141
  model: {
130
142
  fields: [
131
143
  {
132
144
  name: "id",
133
145
  type: "uuid",
134
- options: { genUuid: true }
146
+ options: { defaultGeneration: "uuidv7" }
135
147
  },
136
148
  {
137
149
  name: "accountId",
@@ -212,7 +224,7 @@ function createBetterAuthPartialDefinition(authFeatureName) {
212
224
  {
213
225
  name: "id",
214
226
  type: "uuid",
215
- options: { genUuid: true }
227
+ options: { defaultGeneration: "uuidv4" }
216
228
  },
217
229
  {
218
230
  name: "identifier",
@@ -242,7 +254,7 @@ function createBetterAuthPartialDefinition(authFeatureName) {
242
254
  },
243
255
  {
244
256
  name: BETTER_AUTH_MODELS.userRole,
245
- featureRef: authFeatureName,
257
+ featureRef: accountsFeatureName,
246
258
  model: {
247
259
  fields: [
248
260
  {
@@ -281,122 +293,23 @@ function createBetterAuthPartialDefinition(authFeatureName) {
281
293
  };
282
294
  }
283
295
 
284
- const {applyMergedDefinition,diffDefinition,PluginUtils} = await importShared('@baseplate-dev/project-builder-lib');
296
+ const {authRoleEntityType,definitionSchema} = await importShared('@baseplate-dev/project-builder-lib');
285
297
 
286
- const {DefinitionDiffAlert,useBlockUnsavedChangesNavigate,useDefinitionSchema,useProjectDefinition,useResettableForm} = await importShared('@baseplate-dev/project-builder-lib/web');
298
+ const {z} = await importShared('zod');
287
299
 
288
- const {FormActionBar,SectionList,SectionListSection,SectionListSectionContent,SectionListSectionDescription,SectionListSectionHeader,SectionListSectionTitle} = await importShared('@baseplate-dev/ui-components');
289
- const {useMemo} = await importShared('react');
290
- function BetterAuthDefinitionEditor({
291
- definition: pluginMetadata,
292
- metadata,
293
- onSave
294
- }) {
295
- const { definition, definitionContainer, saveDefinitionWithFeedback } = useProjectDefinition();
296
- const betterAuthPluginDefinitionSchema = useDefinitionSchema(
297
- createBetterAuthPluginDefinitionSchema
298
- );
299
- const defaultValues = useMemo(() => {
300
- if (pluginMetadata?.config) {
301
- return pluginMetadata.config;
302
- }
303
- return {};
304
- }, [pluginMetadata?.config]);
305
- const form = useResettableForm({
306
- resolver: a(betterAuthPluginDefinitionSchema),
307
- defaultValues
308
- });
309
- const { control, reset, handleSubmit } = form;
310
- const authDefinition = getAuthPluginDefinition(definition);
311
- const authFeature = definition.features.find(
312
- (f) => f.id === authDefinition.authFeatureRef
313
- );
314
- if (!authFeature) {
315
- throw new Error(
316
- `Auth feature not found for ref: ${authDefinition.authFeatureRef}`
317
- );
318
- }
319
- const partialDef = useMemo(
320
- () => createBetterAuthPartialDefinition(authFeature.name),
321
- [authFeature.name]
322
- );
323
- const diff = useMemo(
324
- () => diffDefinition(
325
- definitionContainer.schema,
326
- definitionContainer.definition,
327
- partialDef
328
- ),
329
- [definitionContainer, partialDef]
330
- );
331
- const onSubmit = handleSubmit(
332
- (data) => saveDefinitionWithFeedback(
333
- (draftConfig) => {
334
- const updatedData = {
335
- ...data
336
- };
337
- applyMergedDefinition(definitionContainer, partialDef)(draftConfig);
338
- PluginUtils.setPluginConfig(
339
- draftConfig,
340
- metadata,
341
- updatedData,
342
- definitionContainer
343
- );
344
- },
345
- {
346
- successMessage: "Successfully saved Better Auth plugin!",
347
- onSuccess: () => {
348
- onSave();
349
- }
350
- }
351
- )
352
- );
353
- useBlockUnsavedChangesNavigate({ control, reset, onSubmit });
354
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "auth:relative auth:flex auth:h-full auth:flex-1 auth:flex-col auth:gap-4 auth:overflow-hidden", children: [
355
- /* @__PURE__ */ jsxRuntimeExports.jsx(AuthConfigTabs, {}),
356
- /* @__PURE__ */ jsxRuntimeExports.jsx(
357
- "div",
358
- {
359
- className: "auth:mb-[--action-bar-height] auth:flex auth:flex-1 auth:overflow-y-auto",
360
- style: {
361
- "--action-bar-height": "52px"
362
- },
363
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs("form", { onSubmit, className: "auth:max-w-6xl auth:flex-1", children: [
364
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "auth:pb-16", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SectionList, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(SectionListSection, { children: [
365
- /* @__PURE__ */ jsxRuntimeExports.jsxs(SectionListSectionHeader, { children: [
366
- /* @__PURE__ */ jsxRuntimeExports.jsx(SectionListSectionTitle, { children: "Better Auth Configuration" }),
367
- /* @__PURE__ */ jsxRuntimeExports.jsx(SectionListSectionDescription, { children: "The plugin will automatically configure the models it needs." })
368
- ] }),
369
- /* @__PURE__ */ jsxRuntimeExports.jsx(SectionListSectionContent, { className: "auth:space-y-6", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
370
- DefinitionDiffAlert,
371
- {
372
- diff,
373
- upToDateMessage: "All required models are already configured correctly. No changes needed."
374
- }
375
- ) })
376
- ] }) }) }),
377
- /* @__PURE__ */ jsxRuntimeExports.jsx(
378
- FormActionBar,
379
- {
380
- form,
381
- allowSaveWithoutDirty: !pluginMetadata || diff.hasChanges
382
- }
383
- )
384
- ] })
385
- }
300
+ const createBetterAuthPluginDefinitionSchema = definitionSchema(
301
+ (ctx) => z.object({
302
+ additionalUserAdminRoles: ctx.withDefault(
303
+ z.array(
304
+ ctx.withRef({
305
+ type: authRoleEntityType,
306
+ onDelete: "DELETE"
307
+ })
308
+ ),
309
+ []
386
310
  )
387
- ] });
388
- }
389
-
390
- const {createPluginModule,webConfigSpec} = await importShared('@baseplate-dev/project-builder-lib');
391
- const web = createPluginModule({
392
- name: "web",
393
- dependencies: {
394
- webConfig: webConfigSpec
395
- },
396
- initialize: ({ webConfig }, { pluginKey }) => {
397
- webConfig.components.set(pluginKey, BetterAuthDefinitionEditor);
398
- }
399
- });
311
+ })
312
+ );
400
313
 
401
- export { web as default };
402
- //# sourceMappingURL=__federation_expose_better-authCoreWeb-2kA00dBg.js.map
314
+ export { createBetterAuthPartialDefinition as a, createBetterAuthPluginDefinitionSchema as c };
315
+ //# sourceMappingURL=plugin-definition-D9-5sSEf.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-definition-D9-5sSEf.js","sources":["../../../src/better-auth/core/schema/models.ts","../../../src/better-auth/core/schema/plugin-definition.ts"],"sourcesContent":["import type { PartialProjectDefinitionInput } from '@baseplate-dev/project-builder-lib';\n\nimport { BETTER_AUTH_MODELS } from '#src/better-auth/constants/model-names.js';\n\nexport function createBetterAuthPartialDefinition(\n authFeatureName: string,\n accountsFeatureName: string,\n): PartialProjectDefinitionInput {\n return {\n models: [\n {\n name: BETTER_AUTH_MODELS.user,\n featureRef: accountsFeatureName,\n model: {\n fields: [\n {\n name: 'id',\n type: 'uuid',\n options: { defaultGeneration: 'uuidv7' },\n },\n {\n name: 'name',\n type: 'string',\n isOptional: false,\n },\n {\n name: 'email',\n type: 'string',\n isOptional: false,\n },\n {\n name: 'emailVerified',\n type: 'boolean',\n options: { default: 'false' },\n },\n {\n name: 'image',\n type: 'string',\n isOptional: true,\n },\n {\n name: 'updatedAt',\n type: 'dateTime',\n options: { defaultToNow: true, updatedAt: true },\n },\n {\n name: 'createdAt',\n type: 'dateTime',\n options: { defaultToNow: true },\n },\n ],\n primaryKeyFieldRefs: ['id'],\n uniqueConstraints: [\n {\n fields: [{ fieldRef: 'email' }],\n },\n ],\n },\n graphql: {\n objectType: {\n enabled: true,\n fields: [\n { ref: 'id' },\n {\n ref: 'email',\n globalRoles: ['admin'],\n instanceRoles: ['self'],\n },\n ],\n },\n },\n authorizer: {\n roles: [\n {\n name: 'self',\n expression: 'model.id === userId',\n },\n ],\n },\n },\n {\n name: BETTER_AUTH_MODELS.session,\n featureRef: accountsFeatureName,\n model: {\n fields: [\n {\n name: 'id',\n type: 'uuid',\n options: { defaultGeneration: 'uuidv7' },\n },\n {\n name: 'expiresAt',\n type: 'dateTime',\n },\n {\n name: 'token',\n type: 'string',\n },\n {\n name: 'ipAddress',\n type: 'string',\n isOptional: true,\n },\n {\n name: 'userAgent',\n type: 'string',\n isOptional: true,\n },\n {\n name: 'userId',\n type: 'uuid',\n },\n {\n name: 'createdAt',\n type: 'dateTime',\n options: { defaultToNow: true },\n },\n {\n name: 'updatedAt',\n type: 'dateTime',\n options: { defaultToNow: true, updatedAt: true },\n },\n ],\n primaryKeyFieldRefs: ['id'],\n uniqueConstraints: [\n {\n fields: [{ fieldRef: 'token' }],\n },\n ],\n relations: [\n {\n name: 'user',\n references: [{ localRef: 'userId', foreignRef: 'id' }],\n modelRef: BETTER_AUTH_MODELS.user,\n foreignRelationName: 'sessions',\n onDelete: 'Cascade',\n onUpdate: 'Restrict',\n },\n ],\n },\n },\n {\n name: BETTER_AUTH_MODELS.account,\n featureRef: accountsFeatureName,\n model: {\n fields: [\n {\n name: 'id',\n type: 'uuid',\n options: { defaultGeneration: 'uuidv7' },\n },\n {\n name: 'accountId',\n type: 'string',\n },\n {\n name: 'providerId',\n type: 'string',\n },\n {\n name: 'userId',\n type: 'uuid',\n },\n {\n name: 'accessToken',\n type: 'string',\n isOptional: true,\n },\n {\n name: 'refreshToken',\n type: 'string',\n isOptional: true,\n },\n {\n name: 'idToken',\n type: 'string',\n isOptional: true,\n },\n {\n name: 'accessTokenExpiresAt',\n type: 'dateTime',\n isOptional: true,\n },\n {\n name: 'refreshTokenExpiresAt',\n type: 'dateTime',\n isOptional: true,\n },\n {\n name: 'scope',\n type: 'string',\n isOptional: true,\n },\n {\n name: 'password',\n type: 'string',\n isOptional: true,\n },\n {\n name: 'createdAt',\n type: 'dateTime',\n options: { defaultToNow: true },\n },\n {\n name: 'updatedAt',\n type: 'dateTime',\n options: { defaultToNow: true, updatedAt: true },\n },\n ],\n primaryKeyFieldRefs: ['id'],\n relations: [\n {\n name: 'user',\n references: [{ localRef: 'userId', foreignRef: 'id' }],\n modelRef: BETTER_AUTH_MODELS.user,\n foreignRelationName: 'accounts',\n onDelete: 'Cascade',\n onUpdate: 'Restrict',\n },\n ],\n },\n },\n {\n name: BETTER_AUTH_MODELS.verification,\n featureRef: authFeatureName,\n model: {\n fields: [\n {\n name: 'id',\n type: 'uuid',\n options: { defaultGeneration: 'uuidv4' },\n },\n {\n name: 'identifier',\n type: 'string',\n },\n {\n name: 'value',\n type: 'string',\n },\n {\n name: 'expiresAt',\n type: 'dateTime',\n },\n {\n name: 'createdAt',\n type: 'dateTime',\n options: { defaultToNow: true },\n },\n {\n name: 'updatedAt',\n type: 'dateTime',\n options: { defaultToNow: true, updatedAt: true },\n },\n ],\n primaryKeyFieldRefs: ['id'],\n },\n },\n {\n name: BETTER_AUTH_MODELS.userRole,\n featureRef: accountsFeatureName,\n model: {\n fields: [\n {\n name: 'userId',\n type: 'uuid',\n },\n {\n name: 'role',\n type: 'string',\n },\n {\n name: 'updatedAt',\n type: 'dateTime',\n options: { defaultToNow: true, updatedAt: true },\n },\n {\n name: 'createdAt',\n type: 'dateTime',\n options: { defaultToNow: true },\n },\n ],\n primaryKeyFieldRefs: ['userId', 'role'],\n relations: [\n {\n name: 'user',\n references: [{ localRef: 'userId', foreignRef: 'id' }],\n modelRef: BETTER_AUTH_MODELS.user,\n foreignRelationName: 'roles',\n onDelete: 'Cascade',\n onUpdate: 'Restrict',\n },\n ],\n },\n },\n ],\n };\n}\n","import type { def } from '@baseplate-dev/project-builder-lib';\n\nimport {\n authRoleEntityType,\n definitionSchema,\n} from '@baseplate-dev/project-builder-lib';\nimport { z } from 'zod';\n\nexport const createBetterAuthPluginDefinitionSchema = definitionSchema((ctx) =>\n z.object({\n additionalUserAdminRoles: ctx.withDefault(\n z.array(\n ctx.withRef({\n type: authRoleEntityType,\n onDelete: 'DELETE',\n }),\n ),\n [],\n ),\n }),\n);\n\nexport type BetterAuthPluginDefinition = def.InferOutput<\n typeof createBetterAuthPluginDefinitionSchema\n>;\n\nexport type BetterAuthPluginDefinitionInput = def.InferInput<\n typeof createBetterAuthPluginDefinitionSchema\n>;\n"],"names":[],"mappings":";;;AAIO,SAAS,iCAAA,CACd,iBACA,mBAAA,EAC+B;AAC/B,EAAA,OAAO;AAAA,IACL,MAAA,EAAQ;AAAA,MACN;AAAA,QACE,MAAM,kBAAA,CAAmB,IAAA;AAAA,QACzB,UAAA,EAAY,mBAAA;AAAA,QACZ,KAAA,EAAO;AAAA,UACL,MAAA,EAAQ;AAAA,YACN;AAAA,cACE,IAAA,EAAM,IAAA;AAAA,cACN,IAAA,EAAM,MAAA;AAAA,cACN,OAAA,EAAS,EAAE,iBAAA,EAAmB,QAAA;AAAS,aACzC;AAAA,YACA;AAAA,cACE,IAAA,EAAM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ACF;AACF,GACF;AACF;;ACvSA,MAAA,CAAA,kBAAA,CAAA,gBAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;;AAIA,MAAA,CAAA,CAAA,CAAA,GAAA,MAAA,YAAA,CAAA,KAAA,CAAA;;AAEO,MAAM,sCAAA,GAAyC,gBAAA;AAAA,EAAiB,CAAC,GAAA,KACtE,CAAA,CAAE,MAAA,CAAO;AAAA,IACP,0BAA0B,GAAA,CAAI,WAAA;AAAA,MAC5B,CAAA,CAAE,KAAA;AAAA,QACA,IAAI,OAAA,CAAQ;AAAA,UACV,IAAA,EAAM,kBAAA;AAAA,UACN,QAAA,EAAU;AAAA,SACX;AAAA,OACH;AAAA,MACA;AAAC;AACH,GACD;AACH;;;;"}
@@ -1,4 +1,4 @@
1
- import { importShared } from './__federation_fn_import-CzLgVaFb.js';
1
+ import { importShared } from './__federation_fn_import-DybuDj1g.js';
2
2
 
3
3
  const createStoreImpl = (createState) => {
4
4
  let state;
@@ -44,4 +44,4 @@ const createImpl = (createState) => {
44
44
  const create = (createState) => createState ? createImpl(createState) : createImpl;
45
45
 
46
46
  export { create as c };
47
- //# sourceMappingURL=react-B6Fz4KB7.js.map
47
+ //# sourceMappingURL=react-CcDhDxl8.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-B6Fz4KB7.js","sources":["../../../../../node_modules/.pnpm/zustand@5.0.3_@types+react@19.1.3_immer@11.1.4_react@19.1.0_use-sync-external-store@1.6.0_react@19.1.0_/node_modules/zustand/esm/vanilla.mjs","../../../../../node_modules/.pnpm/zustand@5.0.3_@types+react@19.1.3_immer@11.1.4_react@19.1.0_use-sync-external-store@1.6.0_react@19.1.0_/node_modules/zustand/esm/react.mjs"],"sourcesContent":["const createStoreImpl = (createState) => {\n let state;\n const listeners = /* @__PURE__ */ new Set();\n const setState = (partial, replace) => {\n const nextState = typeof partial === \"function\" ? partial(state) : partial;\n if (!Object.is(nextState, state)) {\n const previousState = state;\n state = (replace != null ? replace : typeof nextState !== \"object\" || nextState === null) ? nextState : Object.assign({}, state, nextState);\n listeners.forEach((listener) => listener(state, previousState));\n }\n };\n const getState = () => state;\n const getInitialState = () => initialState;\n const subscribe = (listener) => {\n listeners.add(listener);\n return () => listeners.delete(listener);\n };\n const api = { setState, getState, getInitialState, subscribe };\n const initialState = state = createState(setState, getState, api);\n return api;\n};\nconst createStore = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;\n\nexport { createStore };\n","import React from 'react';\nimport { createStore } from 'zustand/vanilla';\n\nconst identity = (arg) => arg;\nfunction useStore(api, selector = identity) {\n const slice = React.useSyncExternalStore(\n api.subscribe,\n () => selector(api.getState()),\n () => selector(api.getInitialState())\n );\n React.useDebugValue(slice);\n return slice;\n}\nconst createImpl = (createState) => {\n const api = createStore(createState);\n const useBoundStore = (selector) => useStore(api, selector);\n Object.assign(useBoundStore, api);\n return useBoundStore;\n};\nconst create = (createState) => createState ? createImpl(createState) : createImpl;\n\nexport { create, useStore };\n"],"names":[],"mappings":";;AAAA,MAAM,eAAe,GAAG,CAAC,WAAW,KAAK;AACzC,EAAE,IAAI,KAAK;AACX,EAAE,MAAM,SAAS,mBAAmB,IAAI,GAAG,EAAE;AAC7C,EAAE,MAAM,QAAQ,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK;AACzC,IAAI,MAAM,SAAS,GAAG,OAAO,OAAO,KAAK,UAAU,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,OAAO;AAC9E,IAAI,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,KAAK,CAAC,EAAE;AACtC,MAAM,MAAM,aAAa,GAAG,KAAK;AACjC,MAAM,KAAK,GAAG,CAAC,OAAO,IAAI,IAAI,GAAG,OAAO,GAAG,OAAO,SAAS,KAAK,QAAQ,IAAI,SAAS,KAAK,IAAI,IAAI,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,SAAS,CAAC;AACjJ,MAAM,SAAS,CAA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AC;AACtC,EAAE,MAAM,aAAa,GAAG,CAAC,QAAQ,KAAK,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC;AAC7D,EAAE,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,GAAG,CAAC;AACnC,EAAE,OAAO,aAAa;AACtB,CAAC;AACI,MAAC,MAAM,GAAG,CAAC,WAAW,KAAK,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC,GAAG;;;;","x_google_ignoreList":[0,1]}
1
+ {"version":3,"file":"react-CcDhDxl8.js","sources":["../../../../../node_modules/.pnpm/zustand@5.0.3_@types+react@19.1.3_immer@11.1.4_react@19.1.0_use-sync-external-store@1.6.0_react@19.1.0_/node_modules/zustand/esm/vanilla.mjs","../../../../../node_modules/.pnpm/zustand@5.0.3_@types+react@19.1.3_immer@11.1.4_react@19.1.0_use-sync-external-store@1.6.0_react@19.1.0_/node_modules/zustand/esm/react.mjs"],"sourcesContent":["const createStoreImpl = (createState) => {\n let state;\n const listeners = /* @__PURE__ */ new Set();\n const setState = (partial, replace) => {\n const nextState = typeof partial === \"function\" ? partial(state) : partial;\n if (!Object.is(nextState, state)) {\n const previousState = state;\n state = (replace != null ? replace : typeof nextState !== \"object\" || nextState === null) ? nextState : Object.assign({}, state, nextState);\n listeners.forEach((listener) => listener(state, previousState));\n }\n };\n const getState = () => state;\n const getInitialState = () => initialState;\n const subscribe = (listener) => {\n listeners.add(listener);\n return () => listeners.delete(listener);\n };\n const api = { setState, getState, getInitialState, subscribe };\n const initialState = state = createState(setState, getState, api);\n return api;\n};\nconst createStore = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;\n\nexport { createStore };\n","import React from 'react';\nimport { createStore } from 'zustand/vanilla';\n\nconst identity = (arg) => arg;\nfunction useStore(api, selector = identity) {\n const slice = React.useSyncExternalStore(\n api.subscribe,\n () => selector(api.getState()),\n () => selector(api.getInitialState())\n );\n React.useDebugValue(slice);\n return slice;\n}\nconst createImpl = (createState) => {\n const api = createStore(createState);\n const useBoundStore = (selector) => useStore(api, selector);\n Object.assign(useBoundStore, api);\n return useBoundStore;\n};\nconst create = (createState) => createState ? createImpl(createState) : createImpl;\n\nexport { create, useStore };\n"],"names":[],"mappings":";;AAAA,MAAM,eAAe,GAAG,CAAC,WAAW,KAAK;AACzC,EAAE,IAAI,KAAK;AACX,EAAE,MAAM,SAAS,mBAAmB,IAAI,GAAG,EAAE;AAC7C,EAAE,MAAM,QAAQ,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK;AACzC,IAAI,MAAM,SAAS,GAAG,OAAO,OAAO,KAAK,UAAU,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,OAAO;AAC9E,IAAI,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,KAAK,CAAC,EAAE;AACtC,MAAM,MAAM,aAAa,GAAG,KAAK;AACjC,MAAM,KAAK,GAAG,CAAC,OAAO,IAAI,IAAI,GAAG,OAAO,GAAG,OAAO,SAAS,KAAK,QAAQ,IAAI,SAAS,KAAK,IAAI,IAAI,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,SAAS,CAAC;AACjJ,MAAM,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,KAAK,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;AACrE,IAAI;AACJ,EAAE,CAAC;AACH,EAAE,MAAM,QAAQ,GAAG,MAAM,KAAK;AAC9B,EAAE,MAAM,eAAe,GAAG,MAAM,YAAY;AAC5C,EAAE,MAAM,SAAS,GAAG,CAAC,QAAQ,KAAK;AAClC,IAAI,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC;AAC3B,IAAI,OAAO,MAAM,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC;AAC3C,EAAE,CAAC;AACH,EAAE,MAAM,GAAG,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,SAAS,EAAE;AAChE,EAAE,MAAM,YAAY,GAAG,KAAK,GAAG,WAAW,CAAC,QAAQ,EAAE,QAAQ,EAAE,GAAG,CAAC;AACnE,EAAE,OAAO,GAAG;AACZ,CAAC;AACD,MAAM,WAAW,GAAG,CAAC,WAAW,KAAK,WAAW,GAAG,eAAe,CAAC,WAAW,CAAC,GAAG,eAAe;;ACrBjG,MAAA,KAAA,GAAA,MAAA,YAAA,CAAA,OAAA,CAAA;;AAGA,MAAM,QAAQ,GAAG,CAAC,GAAG,KAAK,GAAG;AAC7B,SAAS,QAAQ,CAAC,GAAG,EAAE,QAAQ,GAAG,QAAQ,EAAE;AAC5C,EAAE,MAAM,KAAK,GAAG,KAAK,CAAC,oBAAoB;AAC1C,IAAI,GAAG,CAAC,SAAS;AACjB,IAAI,MAAM,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;AAClC,IAAI,MAAM,QAAQ,CAAC,GAAG,CAAC,eAAe,EAAE;AACxC,GAAG;AACH,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC;AAC5B,EAAE,OAAO,KAAK;AACd;AACA,MAAM,UAAU,GAAG,CAAC,WAAW,KAAK;AACpC,EAAE,MAAM,GAAG,GAAG,WAAW,CAAC,WAAW,CAAC;AACtC,EAAE,MAAM,aAAa,GAAG,CAAC,QAAQ,KAAK,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC;AAC7D,EAAE,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,GAAG,CAAC;AACnC,EAAE,OAAO,aAAa;AACtB,CAAC;AACI,MAAC,MAAM,GAAG,CAAC,WAAW,KAAK,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC,GAAG;;;;","x_google_ignoreList":[0,1]}
@@ -3,34 +3,40 @@ const currentImports = {};
3
3
  let moduleMap = {
4
4
  "auth/core/web":()=>{
5
5
  dynamicLoadingCss(["style-DiK_rD1L.css"], false, 'auth/core/web');
6
- return __federation_import('./__federation_expose_authCoreWeb-BSv8GVI2.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
6
+ return __federation_import('./__federation_expose_authCoreWeb-D0AlXNml.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
7
7
  "auth/core/common":()=>{
8
8
  dynamicLoadingCss(["style-DiK_rD1L.css"], false, 'auth/core/common');
9
- return __federation_import('./__federation_expose_authCoreCommon-D8SAyij-.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
9
+ return __federation_import('./__federation_expose_authCoreCommon-NPAy2Xu2.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
10
10
  "better-auth/core/web":()=>{
11
11
  dynamicLoadingCss(["style-DiK_rD1L.css"], false, 'better-auth/core/web');
12
- return __federation_import('./__federation_expose_better-authCoreWeb-2kA00dBg.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
12
+ return __federation_import('./__federation_expose_better-authCoreWeb-4VA_40fu.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
13
13
  "better-auth/core/common":()=>{
14
14
  dynamicLoadingCss(["style-DiK_rD1L.css"], false, 'better-auth/core/common');
15
- return __federation_import('./__federation_expose_better-authCoreCommon-BJhkN6zV.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
15
+ return __federation_import('./__federation_expose_better-authCoreCommon-D3bQgHWh.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
16
+ "better-auth/admin/web":()=>{
17
+ dynamicLoadingCss(["style-DiK_rD1L.css"], false, 'better-auth/admin/web');
18
+ return __federation_import('./__federation_expose_better-authAdminWeb-Dggf6fZk.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
19
+ "better-auth/admin/common":()=>{
20
+ dynamicLoadingCss(["style-DiK_rD1L.css"], false, 'better-auth/admin/common');
21
+ return __federation_import('./__federation_expose_better-authAdminCommon-Bp8fb_BT.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
16
22
  "local-auth/core/web":()=>{
17
23
  dynamicLoadingCss(["style-DiK_rD1L.css"], false, 'local-auth/core/web');
18
- return __federation_import('./__federation_expose_local-authCoreWeb-QdXa2aao.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
24
+ return __federation_import('./__federation_expose_local-authCoreWeb-BYkl2IGk.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
19
25
  "local-auth/core/common":()=>{
20
26
  dynamicLoadingCss(["style-DiK_rD1L.css"], false, 'local-auth/core/common');
21
- return __federation_import('./__federation_expose_local-authCoreCommon-DO5xRAoM.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
27
+ return __federation_import('./__federation_expose_local-authCoreCommon-C3UyEu-M.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
22
28
  "local-auth/admin/web":()=>{
23
29
  dynamicLoadingCss(["style-DiK_rD1L.css"], false, 'local-auth/admin/web');
24
- return __federation_import('./__federation_expose_local-authAdminWeb-BzhksqwO.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
30
+ return __federation_import('./__federation_expose_local-authAdminWeb-BDyZDL1a.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
25
31
  "local-auth/admin/common":()=>{
26
32
  dynamicLoadingCss(["style-DiK_rD1L.css"], false, 'local-auth/admin/common');
27
- return __federation_import('./__federation_expose_local-authAdminCommon-IuYupUXE.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
33
+ return __federation_import('./__federation_expose_local-authAdminCommon-Bp8fb_BT.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
28
34
  "placeholder-auth/core/web":()=>{
29
35
  dynamicLoadingCss(["style-DiK_rD1L.css"], false, 'placeholder-auth/core/web');
30
- return __federation_import('./__federation_expose_placeholder-authCoreWeb-P4Qq8Zf6.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
36
+ return __federation_import('./__federation_expose_placeholder-authCoreWeb-BNGIcu0Y.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
31
37
  "placeholder-auth/core/common":()=>{
32
38
  dynamicLoadingCss(["style-DiK_rD1L.css"], false, 'placeholder-auth/core/common');
33
- return __federation_import('./__federation_expose_placeholder-authCoreCommon-hGIPuBy3.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},};
39
+ return __federation_import('./__federation_expose_placeholder-authCoreCommon-Bq0ln8n5.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},};
34
40
  const seen = {};
35
41
  const dynamicLoadingCss = (cssFilePaths, dontAppendStylesToHead, exposeItemName) => {
36
42
  const metaUrl = import.meta.url;
@@ -1 +1 @@
1
- {"version":3,"file":"remoteEntry.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"remoteEntry.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,6 +1,6 @@
1
- import { g as get, s as set, e as appendErrors } from './index.esm-CYY7gyrG.js';
1
+ import { g as get, s as set, e as appendErrors } from './index.esm-Db6zPKK9.js';
2
2
  import { l as parse, m as parseAsync, K as $ZodError } from './registries-Tz_dluz3.js';
3
- import { importShared } from './__federation_fn_import-CzLgVaFb.js';
3
+ import { importShared } from './__federation_fn_import-DybuDj1g.js';
4
4
  import { j as jsxRuntimeExports } from './jsx-runtime-XI9uIe3W.js';
5
5
 
6
6
  const r=(t,r,o)=>{if(t&&"reportValidity"in t){const s=get(o,r);t.setCustomValidity(s&&s.message||""),t.reportValidity();}},o=(e,t)=>{for(const o in t.fields){const s=t.fields[o];s&&s.ref&&"reportValidity"in s.ref?r(s.ref,o,e):s&&s.refs&&s.refs.forEach(t=>r(t,o,e));}},s$1=(r,s)=>{s.shouldUseNativeValidation&&o(r,s);const n={};for(const o in r){const f=get(s.fields,o),c=Object.assign(r[o]||{},{ref:f&&f.ref});if(i$1(s.names||Object.keys(r),o)){const r=Object.assign({},get(n,o));set(r,"root",c),set(n,o,r);}else set(n,o,c);}return n},i$1=(e,t)=>{const r=n(t);return e.some(e=>n(e).match(`^${r}\\.\\d+`))};function n(e){return e.replace(/\]|\[/g,"")}
@@ -66,4 +66,4 @@ function AuthConfigTabs() {
66
66
  }
67
67
 
68
68
  export { AuthConfigTabs as A, a };
69
- //# sourceMappingURL=styles-0yxEwdyo.js.map
69
+ //# sourceMappingURL=styles-Otn_yxD1.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles-0yxEwdyo.js","sources":["../../../../../node_modules/.pnpm/@hookform+resolvers@5.2.2_react-hook-form@7.71.1_react@19.1.0_/node_modules/@hookform/resolvers/dist/resolvers.mjs","../../../../../node_modules/.pnpm/@hookform+resolvers@5.2.2_react-hook-form@7.71.1_react@19.1.0_/node_modules/@hookform/resolvers/zod/dist/zod.mjs","../../../src/common/components/auth-config-tabs.tsx"],"sourcesContent":["import{get as e,set as t}from\"react-hook-form\";const r=(t,r,o)=>{if(t&&\"reportValidity\"in t){const s=e(o,r);t.setCustomValidity(s&&s.message||\"\"),t.reportValidity()}},o=(e,t)=>{for(const o in t.fields){const s=t.fields[o];s&&s.ref&&\"reportValidity\"in s.ref?r(s.ref,o,e):s&&s.refs&&s.refs.forEach(t=>r(t,o,e))}},s=(r,s)=>{s.shouldUseNativeValidation&&o(r,s);const n={};for(const o in r){const f=e(s.fields,o),c=Object.assign(r[o]||{},{ref:f&&f.ref});if(i(s.names||Object.keys(r),o)){const r=Object.assign({},e(n,o));t(r,\"root\",c),t(n,o,r)}else t(n,o,c)}return n},i=(e,t)=>{const r=n(t);return e.some(e=>n(e).match(`^${r}\\\\.\\\\d+`))};function n(e){return e.replace(/\\]|\\[/g,\"\")}export{s as toNestErrors,o as validateFieldsNatively};\n//# sourceMappingURL=resolvers.mjs.map\n","import{validateFieldsNatively as r,toNestErrors as e}from\"@hookform/resolvers\";import{appendErrors as o}from\"react-hook-form\";import*as n from\"zod/v4/core\";function t(r,e){try{var o=r()}catch(r){return e(r)}return o&&o.then?o.then(void 0,e):o}function s(r,e){for(var n={};r.length;){var t=r[0],s=t.code,i=t.message,a=t.path.join(\".\");if(!n[a])if(\"unionErrors\"in t){var u=t.unionErrors[0].errors[0];n[a]={message:u.message,type:u.code}}else n[a]={message:i,type:s};if(\"unionErrors\"in t&&t.unionErrors.forEach(function(e){return e.errors.forEach(function(e){return r.push(e)})}),e){var c=n[a].types,f=c&&c[t.code];n[a]=o(a,e,n,s,f?[].concat(f,t.message):t.message)}r.shift()}return n}function i(r,e){for(var n={};r.length;){var t=r[0],s=t.code,i=t.message,a=t.path.join(\".\");if(!n[a])if(\"invalid_union\"===t.code&&t.errors.length>0){var u=t.errors[0][0];n[a]={message:u.message,type:u.code}}else n[a]={message:i,type:s};if(\"invalid_union\"===t.code&&t.errors.forEach(function(e){return e.forEach(function(e){return r.push(e)})}),e){var c=n[a].types,f=c&&c[t.code];n[a]=o(a,e,n,s,f?[].concat(f,t.message):t.message)}r.shift()}return n}function a(o,a,u){if(void 0===u&&(u={}),function(r){return\"_def\"in r&&\"object\"==typeof r._def&&\"typeName\"in r._def}(o))return function(n,i,c){try{return Promise.resolve(t(function(){return Promise.resolve(o[\"sync\"===u.mode?\"parse\":\"parseAsync\"](n,a)).then(function(e){return c.shouldUseNativeValidation&&r({},c),{errors:{},values:u.raw?Object.assign({},n):e}})},function(r){if(function(r){return Array.isArray(null==r?void 0:r.issues)}(r))return{values:{},errors:e(s(r.errors,!c.shouldUseNativeValidation&&\"all\"===c.criteriaMode),c)};throw r}))}catch(r){return Promise.reject(r)}};if(function(r){return\"_zod\"in r&&\"object\"==typeof r._zod}(o))return function(s,c,f){try{return Promise.resolve(t(function(){return Promise.resolve((\"sync\"===u.mode?n.parse:n.parseAsync)(o,s,a)).then(function(e){return f.shouldUseNativeValidation&&r({},f),{errors:{},values:u.raw?Object.assign({},s):e}})},function(r){if(function(r){return r instanceof n.$ZodError}(r))return{values:{},errors:e(i(r.issues,!f.shouldUseNativeValidation&&\"all\"===f.criteriaMode),f)};throw r}))}catch(r){return Promise.reject(r)}};throw new Error(\"Invalid input: not a Zod schema\")}export{a as zodResolver};\n//# sourceMappingURL=zod.module.js.map\n","import { PluginUtils } from '@baseplate-dev/project-builder-lib';\nimport { useProjectDefinition } from '@baseplate-dev/project-builder-lib/web';\nimport {\n NavigationTabs,\n NavigationTabsItem,\n} from '@baseplate-dev/ui-components';\nimport { Link } from '@tanstack/react-router';\n\nimport type { AuthPluginDefinition } from '#src/auth/core/schema/plugin-definition.js';\n\nexport function AuthConfigTabs(): React.ReactElement | null {\n const { definition, schemaParserContext } = useProjectDefinition();\n\n const authPlugin = schemaParserContext.pluginStore.availablePlugins.find(\n (p) =>\n p.metadata.packageName === '@baseplate-dev/plugin-auth' &&\n p.metadata.name === 'auth',\n );\n\n if (!authPlugin) {\n return null;\n }\n\n const authConfig = PluginUtils.configByKey(\n definition,\n authPlugin.metadata.key,\n ) as AuthPluginDefinition | undefined;\n\n const implementationPluginKey = authConfig?.implementationPluginKey;\n\n const authImplementationPlugin =\n schemaParserContext.pluginStore.availablePlugins.find(\n (p) => p.metadata.key === implementationPluginKey,\n );\n\n if (!authImplementationPlugin) {\n return null;\n }\n\n return (\n <NavigationTabs>\n <NavigationTabsItem\n render={\n <Link\n to=\"/plugins/edit/$key\"\n params={{ key: authPlugin.metadata.key }}\n activeOptions={{ exact: true }}\n />\n }\n >\n Auth\n </NavigationTabsItem>\n <NavigationTabsItem\n render={\n <Link\n to={`/plugins/edit/${authImplementationPlugin.metadata.key}`}\n activeOptions={{ exact: true }}\n />\n }\n >\n {authImplementationPlugin.metadata.displayName}\n </NavigationTabsItem>\n </NavigationTabs>\n );\n}\n"],"names":["e","s","i","t","o","r","n.parse","n.parseAsync","n.$ZodError","jsx"],"mappings":";;;;;AAA+C,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,gBAAgB,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAACA,GAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,cAAc,GAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,gBAAgB,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAC,CAAC,CAAC,CAACC,GAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,yBAAyB,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAACD,GAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,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AAC,IAAA;AAAA,UAAA;AAAA,YACC,EAAA,EAAG,oBAAA;AAAA,YACH,MAAA,EAAQ,EAAE,GAAA,EAAK,UAAA,CAAW,SAAS,GAAA,EAAI;AAAA,YACvC,aAAA,EAAe,EAAE,KAAA,EAAO,IAAA;AAAK;AAAA,SAC/B;AAAA,QAEH,QAAA,EAAA;AAAA;AAAA,KAED;AAAA,oBACAA,qBAAA;AAAA,MAAC,kBAAA;AAAA,MAAA;AAAA,QACC,MAAA,kBACEA,qBAAA;AAAA,UAAC,IAAA;AAAA,UAAA;AAAA,YACC,EAAA,EAAI,CAAA,cAAA,EAAiB,wBAAA,CAAyB,QAAA,CAAS,GAAG,CAAA,CAAA;AAAA,YAC1D,aAAA,EAAe,EAAE,KAAA,EAAO,IAAA;AAAK;AAAA,SAC/B;AAAA,QAGD,mCAAyB,QAAA,CAAS;AAAA;AAAA;AACrC,GAAA,EACF,CAAA;AAEJ;;;;","x_google_ignoreList":[0,1]}
1
+ {"version":3,"file":"styles-Otn_yxD1.js","sources":["../../../../../node_modules/.pnpm/@hookform+resolvers@5.2.2_react-hook-form@7.71.1_react@19.1.0_/node_modules/@hookform/resolvers/dist/resolvers.mjs","../../../../../node_modules/.pnpm/@hookform+resolvers@5.2.2_react-hook-form@7.71.1_react@19.1.0_/node_modules/@hookform/resolvers/zod/dist/zod.mjs","../../../src/common/components/auth-config-tabs.tsx"],"sourcesContent":["import{get as e,set as t}from\"react-hook-form\";const r=(t,r,o)=>{if(t&&\"reportValidity\"in t){const s=e(o,r);t.setCustomValidity(s&&s.message||\"\"),t.reportValidity()}},o=(e,t)=>{for(const o in t.fields){const s=t.fields[o];s&&s.ref&&\"reportValidity\"in s.ref?r(s.ref,o,e):s&&s.refs&&s.refs.forEach(t=>r(t,o,e))}},s=(r,s)=>{s.shouldUseNativeValidation&&o(r,s);const n={};for(const o in r){const f=e(s.fields,o),c=Object.assign(r[o]||{},{ref:f&&f.ref});if(i(s.names||Object.keys(r),o)){const r=Object.assign({},e(n,o));t(r,\"root\",c),t(n,o,r)}else t(n,o,c)}return n},i=(e,t)=>{const r=n(t);return e.some(e=>n(e).match(`^${r}\\\\.\\\\d+`))};function n(e){return e.replace(/\\]|\\[/g,\"\")}export{s as toNestErrors,o as validateFieldsNatively};\n//# sourceMappingURL=resolvers.mjs.map\n","import{validateFieldsNatively as r,toNestErrors as e}from\"@hookform/resolvers\";import{appendErrors as o}from\"react-hook-form\";import*as n from\"zod/v4/core\";function t(r,e){try{var o=r()}catch(r){return e(r)}return o&&o.then?o.then(void 0,e):o}function s(r,e){for(var n={};r.length;){var t=r[0],s=t.code,i=t.message,a=t.path.join(\".\");if(!n[a])if(\"unionErrors\"in t){var u=t.unionErrors[0].errors[0];n[a]={message:u.message,type:u.code}}else n[a]={message:i,type:s};if(\"unionErrors\"in t&&t.unionErrors.forEach(function(e){return e.errors.forEach(function(e){return r.push(e)})}),e){var c=n[a].types,f=c&&c[t.code];n[a]=o(a,e,n,s,f?[].concat(f,t.message):t.message)}r.shift()}return n}function i(r,e){for(var n={};r.length;){var t=r[0],s=t.code,i=t.message,a=t.path.join(\".\");if(!n[a])if(\"invalid_union\"===t.code&&t.errors.length>0){var u=t.errors[0][0];n[a]={message:u.message,type:u.code}}else n[a]={message:i,type:s};if(\"invalid_union\"===t.code&&t.errors.forEach(function(e){return e.forEach(function(e){return r.push(e)})}),e){var c=n[a].types,f=c&&c[t.code];n[a]=o(a,e,n,s,f?[].concat(f,t.message):t.message)}r.shift()}return n}function a(o,a,u){if(void 0===u&&(u={}),function(r){return\"_def\"in r&&\"object\"==typeof r._def&&\"typeName\"in r._def}(o))return function(n,i,c){try{return Promise.resolve(t(function(){return Promise.resolve(o[\"sync\"===u.mode?\"parse\":\"parseAsync\"](n,a)).then(function(e){return c.shouldUseNativeValidation&&r({},c),{errors:{},values:u.raw?Object.assign({},n):e}})},function(r){if(function(r){return Array.isArray(null==r?void 0:r.issues)}(r))return{values:{},errors:e(s(r.errors,!c.shouldUseNativeValidation&&\"all\"===c.criteriaMode),c)};throw r}))}catch(r){return Promise.reject(r)}};if(function(r){return\"_zod\"in r&&\"object\"==typeof r._zod}(o))return function(s,c,f){try{return Promise.resolve(t(function(){return Promise.resolve((\"sync\"===u.mode?n.parse:n.parseAsync)(o,s,a)).then(function(e){return f.shouldUseNativeValidation&&r({},f),{errors:{},values:u.raw?Object.assign({},s):e}})},function(r){if(function(r){return r instanceof n.$ZodError}(r))return{values:{},errors:e(i(r.issues,!f.shouldUseNativeValidation&&\"all\"===f.criteriaMode),f)};throw r}))}catch(r){return Promise.reject(r)}};throw new Error(\"Invalid input: not a Zod schema\")}export{a as zodResolver};\n//# sourceMappingURL=zod.module.js.map\n","import { PluginUtils } from '@baseplate-dev/project-builder-lib';\nimport { useProjectDefinition } from '@baseplate-dev/project-builder-lib/web';\nimport {\n NavigationTabs,\n NavigationTabsItem,\n} from '@baseplate-dev/ui-components';\nimport { Link } from '@tanstack/react-router';\n\nimport type { AuthPluginDefinition } from '#src/auth/core/schema/plugin-definition.js';\n\nexport function AuthConfigTabs(): React.ReactElement | null {\n const { definition, schemaParserContext } = useProjectDefinition();\n\n const authPlugin = schemaParserContext.pluginStore.availablePlugins.find(\n (p) =>\n p.metadata.packageName === '@baseplate-dev/plugin-auth' &&\n p.metadata.name === 'auth',\n );\n\n if (!authPlugin) {\n return null;\n }\n\n const authConfig = PluginUtils.configByKey(\n definition,\n authPlugin.metadata.key,\n ) as AuthPluginDefinition | undefined;\n\n const implementationPluginKey = authConfig?.implementationPluginKey;\n\n const authImplementationPlugin =\n schemaParserContext.pluginStore.availablePlugins.find(\n (p) => p.metadata.key === implementationPluginKey,\n );\n\n if (!authImplementationPlugin) {\n return null;\n }\n\n return (\n <NavigationTabs>\n <NavigationTabsItem\n render={\n <Link\n to=\"/plugins/edit/$key\"\n params={{ key: authPlugin.metadata.key }}\n activeOptions={{ exact: true }}\n />\n }\n >\n Auth\n </NavigationTabsItem>\n <NavigationTabsItem\n render={\n <Link\n to={`/plugins/edit/${authImplementationPlugin.metadata.key}`}\n activeOptions={{ exact: true }}\n />\n }\n >\n {authImplementationPlugin.metadata.displayName}\n </NavigationTabsItem>\n </NavigationTabs>\n );\n}\n"],"names":["e","s","i","t","o","r","n.parse","n.parseAsync","n.$ZodError","jsx"],"mappings":";;;;;AAA+C,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,gBAAgB,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAACA,GAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,cAAc,GAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,gBAAgB,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAC,CAAC,CAAC,CAACC,GAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,yBAAyB,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAACD,GAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,C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