@baseplate-dev/plugin-auth 0.6.17 → 0.6.19

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 (294) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +74 -0
  3. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +74 -0
  4. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +37 -0
  5. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +37 -0
  6. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js +1 -2
  7. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +1 -1
  8. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +74 -0
  9. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +74 -0
  10. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +37 -0
  11. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +74 -0
  12. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js +1 -2
  13. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx +1 -1
  14. package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +37 -0
  15. package/dist/better-auth/core/node.js +7 -8
  16. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/index.d.ts +1 -0
  17. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/ts-import-providers.d.ts +1 -0
  18. package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/ts-import-providers.js +1 -0
  19. package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts +20 -3
  20. package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js +5 -24
  21. package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts +40 -2
  22. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts +19 -1
  23. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.js +6 -2
  24. package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.d.ts +1 -0
  25. package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.js +1 -0
  26. package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts +20 -1
  27. package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.js +4 -1
  28. package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/auth.ts +16 -8
  29. package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.d.ts +1 -1
  30. package/dist/better-auth/generators/react/better-auth-hooks/generated/index.d.ts +5 -4
  31. package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.d.ts +1 -1
  32. package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.js +1 -1
  33. package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.d.ts +2 -1
  34. package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.js +2 -1
  35. package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.d.ts +6 -6
  36. package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.js +13 -13
  37. package/dist/better-auth/generators/react/better-auth-hooks/templates/src/hooks/{use-required-user-id.ts → use-user-id-or-throw.ts} +1 -1
  38. package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts +37 -0
  39. package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts +222 -0
  40. package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts +37 -0
  41. package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts +370 -0
  42. package/dist/better-auth/generators/react/better-auth-pages/templates/routes/forgot-password.tsx +1 -4
  43. package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts +77 -2
  44. package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts +38 -1
  45. package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.d.ts +1 -0
  46. package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.js +1 -0
  47. package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts +38 -1
  48. package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts +38 -1
  49. package/dist/better-auth/generators/react/react-better-auth/templates/src/app/auth-loaded-gate.tsx +12 -3
  50. package/dist/local-auth/admin/common.js +6 -0
  51. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/admin-crud-invite-user-action.generator.d.ts +593 -0
  52. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/admin-crud-invite-user-action.generator.js +119 -0
  53. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/index.d.ts +602 -0
  54. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/index.js +11 -0
  55. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/template-paths.d.ts +12 -0
  56. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/template-paths.js +24 -0
  57. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/template-renderers.d.ts +307 -0
  58. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/template-renderers.js +45 -0
  59. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/typed-templates.d.ts +294 -0
  60. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/typed-templates.js +21 -0
  61. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/index.d.ts +2 -0
  62. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/index.js +2 -0
  63. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/templates/routes/-components/invite-user-dialog.d.ts +21 -0
  64. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/templates/routes/-components/invite-user-dialog.js +68 -0
  65. package/dist/local-auth/admin/generators/admin-crud-invite-user-action/templates/routes/-components/invite-user-dialog.tsx +122 -0
  66. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +74 -0
  67. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +74 -0
  68. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +37 -0
  69. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +37 -0
  70. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js +1 -2
  71. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +1 -1
  72. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +74 -0
  73. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +74 -0
  74. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +37 -0
  75. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +74 -0
  76. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js +1 -2
  77. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx +1 -1
  78. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +37 -0
  79. package/dist/local-auth/admin/node.js +13 -0
  80. package/dist/local-auth/admin/schema/invite-user-action.d.ts +12 -0
  81. package/dist/local-auth/admin/schema/invite-user-action.js +6 -0
  82. package/dist/local-auth/admin/web.js +8 -0
  83. package/dist/local-auth/core/common.js +7 -2
  84. package/dist/local-auth/core/components/local-auth-definition-editor.js +2 -1
  85. package/dist/local-auth/core/components/local-auth-web-app-settings-form.d.ts +9 -0
  86. package/dist/local-auth/core/components/local-auth-web-app-settings-form.js +11 -0
  87. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +16 -7
  88. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js +73 -16
  89. package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +222 -7
  90. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts +5 -0
  91. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.js +5 -0
  92. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts +27 -0
  93. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js +71 -4
  94. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts +1 -3
  95. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js +1 -2
  96. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +226 -10
  97. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js +91 -7
  98. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/otp.constants.d.ts +19 -0
  99. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/otp.constants.js +20 -0
  100. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/otp.constants.ts +22 -0
  101. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts +12 -0
  102. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.js +12 -0
  103. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.ts +14 -0
  104. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-otp.mutations.d.ts +2 -0
  105. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-otp.mutations.js +30 -0
  106. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-otp.mutations.ts +38 -0
  107. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/invite.mutations.d.ts +2 -0
  108. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/invite.mutations.js +42 -0
  109. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/invite.mutations.ts +54 -0
  110. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js +2 -19
  111. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.ts +1 -22
  112. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-otp.service.d.ts +37 -0
  113. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-otp.service.js +225 -0
  114. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-otp.service.ts +333 -0
  115. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js +2 -3
  116. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.ts +5 -3
  117. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/invite.service.d.ts +39 -0
  118. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/invite.service.js +142 -0
  119. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/invite.service.ts +221 -0
  120. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +5 -6
  121. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +8 -5
  122. package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts +3 -1
  123. package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.js +18 -3
  124. package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts +40 -0
  125. package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.d.ts +2 -0
  126. package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.js +2 -0
  127. package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts +6 -0
  128. package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.js +20 -0
  129. package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts +40 -0
  130. package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.js +24 -0
  131. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/email-otp.email.d.ts +3 -0
  132. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/email-otp.email.js +18 -0
  133. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/email-otp.email.tsx +57 -0
  134. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/invite.email.d.ts +3 -0
  135. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/invite.email.js +14 -0
  136. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/invite.email.tsx +47 -0
  137. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts +272 -1
  138. package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts +547 -4
  139. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts +1 -1
  140. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js +1 -1
  141. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts +271 -0
  142. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js +4 -2
  143. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts +2 -1
  144. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js +2 -1
  145. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts +548 -6
  146. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js +15 -14
  147. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js +1 -1
  148. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.ts +1 -1
  149. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts +7 -0
  150. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.ts +7 -0
  151. package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +23 -7
  152. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +7 -26
  153. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +65 -4
  154. package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts +1 -1
  155. package/dist/local-auth/core/generators/auth-module/generated/template-paths.js +1 -1
  156. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts +22 -1
  157. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js +19 -2
  158. package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts +10 -0
  159. package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js +7 -0
  160. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +42 -4
  161. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js +24 -13
  162. package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.d.ts +4 -0
  163. package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.js +1 -1
  164. package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.ts +1 -1
  165. package/dist/local-auth/core/generators/auth-module/templates/module/services/code-verification.service.d.ts +67 -0
  166. package/dist/local-auth/core/generators/auth-module/templates/module/services/code-verification.service.js +140 -0
  167. package/dist/local-auth/core/generators/auth-module/templates/module/services/code-verification.service.ts +191 -0
  168. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js +8 -9
  169. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.ts +10 -11
  170. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +39 -0
  171. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js +38 -5
  172. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +1089 -268
  173. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts +3 -0
  174. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js +3 -0
  175. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +49 -0
  176. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js +51 -0
  177. package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.d.ts +1 -0
  178. package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.js +1 -0
  179. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +918 -283
  180. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js +69 -23
  181. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-otp-constants.d.ts +9 -0
  182. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-otp-constants.js +10 -0
  183. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-otp-constants.ts +11 -0
  184. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/accept-invite.d.ts +7 -0
  185. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/accept-invite.js +155 -0
  186. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/accept-invite.tsx +274 -0
  187. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.js +1 -2
  188. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.tsx +1 -1
  189. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login-otp.d.ts +7 -0
  190. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login-otp.js +184 -0
  191. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login-otp.tsx +312 -0
  192. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +5 -5
  193. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +6 -12
  194. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +4 -4
  195. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +4 -3
  196. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js +1 -2
  197. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.tsx +1 -1
  198. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.js +1 -2
  199. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.tsx +1 -1
  200. package/dist/local-auth/core/generators/react-session/generated/index.d.ts +90 -7
  201. package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +38 -1
  202. package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.d.ts +1 -0
  203. package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.js +1 -0
  204. package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +102 -12
  205. package/dist/local-auth/core/generators/react-session/generated/typed-templates.js +5 -2
  206. package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +54 -1
  207. package/dist/local-auth/core/generators/react-session/react-session.generator.js +35 -1
  208. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js +17 -44
  209. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.tsx +21 -49
  210. package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.d.ts +43 -34
  211. package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.js +96 -80
  212. package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.ts +148 -82
  213. package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts +0 -2
  214. package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts +0 -1
  215. package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts +0 -1
  216. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts +0 -1
  217. package/dist/local-auth/core/node.js +30 -12
  218. package/dist/local-auth/core/schema/migrations.d.ts +3 -0
  219. package/dist/local-auth/core/schema/migrations.js +36 -0
  220. package/dist/local-auth/core/schema/models.js +8 -0
  221. package/dist/local-auth/core/schema/plugin-definition.d.ts +1 -0
  222. package/dist/local-auth/core/schema/plugin-definition.js +1 -0
  223. package/dist/local-auth/core/schema/web-app-schema.d.ts +15 -0
  224. package/dist/local-auth/core/schema/web-app-schema.js +16 -0
  225. package/dist/local-auth/core/web.js +8 -1
  226. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts +4 -3
  227. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts +1 -1
  228. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js +1 -1
  229. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts +2 -1
  230. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js +2 -1
  231. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts +4 -4
  232. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js +13 -13
  233. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts +1 -1
  234. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.d.ts +1 -0
  235. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.ts +2 -0
  236. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts +1 -2
  237. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.d.ts +0 -1
  238. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.d.ts +1 -0
  239. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.js +1 -0
  240. package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.d.ts +0 -1
  241. package/dist/placeholder-auth/core/generators/placeholder-auth-module/placeholder-auth-module.generator.d.ts +0 -1
  242. package/dist/web/assets/{_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-ChkXxpXe.js → _virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth__mf_owner__1-DUupKqD4.js} +42 -34
  243. package/dist/web/assets/{dist-DY7ZXvq4.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-DE4rTqEA.js} +16857 -381
  244. package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-37vlYRxk.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-mszeXpf-.js} +90 -38
  245. package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-DRSNXPPo.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-CtIleM_e.js} +4095 -2399
  246. package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-DfiQqvVC.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-BckLhSjF.js} +212 -57
  247. package/dist/web/assets/auth-DR6QxrAW.js +1 -0
  248. package/dist/web/assets/{common-iHaemino.js → common-BsyRiQi3.js} +6 -6
  249. package/dist/web/assets/{common-TDf_PrjX.js → common-CRwNlCMn.js} +10 -10
  250. package/dist/web/assets/{common-ByxS61u8.js → common-CvqlRZC9.js} +12 -12
  251. package/dist/web/assets/common-D3atSs7O.js +70 -0
  252. package/dist/web/assets/common-DuFyXa6l.js +36 -0
  253. package/dist/web/assets/common-islduJTj.js +43 -0
  254. package/dist/web/assets/{dist-CrLSslv6.js → dist-DQd1TAJX.js} +273 -132
  255. package/dist/web/assets/{get-auth-plugin-definition-kDCtXq_6.js → get-auth-plugin-definition-BgWWHl_Y.js} +3 -3
  256. package/dist/web/assets/{hostInit-Cruek6c6.js → hostInit-DNA4kLRY.js} +32 -5
  257. package/dist/web/assets/{mf-entry-bootstrap-0-dfed0275.js → mf-entry-bootstrap-0-ea77c09b.js} +2 -1
  258. package/dist/web/assets/{mf-entry-bootstrap-1-5275674a.js → mf-entry-bootstrap-1-9dee3d8d.js} +3 -2
  259. package/dist/web/assets/{mf-entry-bootstrap-2-39fb9255.js → mf-entry-bootstrap-2-3179040b.js} +3 -2
  260. package/dist/web/assets/{mf-entry-bootstrap-3-49e64336.js → mf-entry-bootstrap-3-370d200d.js} +3 -2
  261. package/dist/web/assets/{models-DSvs_3bA.js → models-BOeSYfRn.js} +4 -5
  262. package/dist/web/assets/{models-BZmCbizK.js → models-DF6DoXt6.js} +11 -6
  263. package/dist/web/assets/{plugin-definition-CYj29S3q.js → plugin-definition--k0VAeK3.js} +9 -10
  264. package/dist/web/assets/plugin-definition-CMwSlxsJ.js +10 -0
  265. package/dist/web/assets/{styles-yjbHBTlw.js → styles-BQEcQHoR.js} +9 -10
  266. package/dist/web/assets/{virtualExposes-CbPBmicF.js → virtualExposes-C7fDiAmS.js} +1 -1
  267. package/dist/web/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-BZBRyml2.js +747 -0
  268. package/dist/web/assets/{virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-B6BXIeF1.js → virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-6SjVUCs8.js} +13 -13
  269. package/dist/web/assets/web-8wz0ad-V.js +59 -0
  270. package/dist/web/assets/{web-CXAHKjIY.js → web-BGixH_gT.js} +27 -27
  271. package/dist/web/assets/{web-1eTcxMhf.js → web-BxIwkN3O.js} +6 -6
  272. package/dist/web/assets/{web-VqBA3jxZ.js → web-CQMfABjr.js} +24 -24
  273. package/dist/web/assets/{web-CDAKPPK9.js → web-CcNpItSu.js} +22 -22
  274. package/dist/web/assets/web-CypPeiVv.js +148 -0
  275. package/dist/web/assets/{web-D0MSKfyv.js → web-CzK_la2_.js} +53 -53
  276. package/dist/web/index.html +5 -5
  277. package/dist/web/remoteEntry.js +1 -1
  278. package/package.json +14 -14
  279. package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.d.ts +0 -38
  280. package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.js +0 -71
  281. package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.ts +0 -77
  282. package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-CO5Pvo0y.js +0 -384
  283. package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-BEZ7A-cz.js +0 -13566
  284. package/dist/web/assets/auth-BxAE0rgh.js +0 -1
  285. package/dist/web/assets/common-CKl_XlvH.js +0 -37
  286. package/dist/web/assets/common-UpVCKZeW.js +0 -41
  287. package/dist/web/assets/common-crSwCD36.js +0 -37
  288. package/dist/web/assets/model-utils-C0WDb_Ec.js +0 -1599
  289. package/dist/web/assets/plugin-definition-DOMmPL2Z.js +0 -11
  290. package/dist/web/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-XM6iYVxf.js +0 -259
  291. package/dist/web/assets/virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-DGjg7Brm.js +0 -129
  292. package/dist/web/assets/web-DbeAaDTV.js +0 -118
  293. package/dist/web/assets/web-miDovYk_.js +0 -46
  294. package/dist/web/remoteEntry.ssr.js +0 -43
@@ -1,9 +1,14 @@
1
1
  export interface LocalAuthCoreAuthEmailPasswordPaths {
2
+ constantsOtp: string;
2
3
  constantsPassword: string;
4
+ schemaEmailOtpMutations: string;
3
5
  schemaEmailVerificationMutations: string;
6
+ schemaInviteMutations: string;
4
7
  schemaPasswordResetMutations: string;
5
8
  schemaUserPasswordMutations: string;
9
+ servicesEmailOtp: string;
6
10
  servicesEmailVerification: string;
11
+ servicesInvite: string;
7
12
  servicesPasswordReset: string;
8
13
  servicesUserPassword: string;
9
14
  }
@@ -11,11 +11,16 @@ const localAuthCoreAuthEmailPasswordPathsTask = createGeneratorTask({
11
11
  return {
12
12
  providers: {
13
13
  localAuthCoreAuthEmailPasswordPaths: {
14
+ constantsOtp: `${moduleRoot}/constants/otp.constants.ts`,
14
15
  constantsPassword: `${moduleRoot}/constants/password.constants.ts`,
16
+ schemaEmailOtpMutations: `${moduleRoot}/schema/email-otp.mutations.ts`,
15
17
  schemaEmailVerificationMutations: `${moduleRoot}/schema/email-verification.mutations.ts`,
18
+ schemaInviteMutations: `${moduleRoot}/schema/invite.mutations.ts`,
16
19
  schemaPasswordResetMutations: `${moduleRoot}/schema/password-reset.mutations.ts`,
17
20
  schemaUserPasswordMutations: `${moduleRoot}/schema/user-password.mutations.ts`,
21
+ servicesEmailOtp: `${moduleRoot}/services/email-otp.service.ts`,
18
22
  servicesEmailVerification: `${moduleRoot}/services/email-verification.service.ts`,
23
+ servicesInvite: `${moduleRoot}/services/invite.service.ts`,
19
24
  servicesPasswordReset: `${moduleRoot}/services/password-reset.service.ts`,
20
25
  servicesUserPassword: `${moduleRoot}/services/user-password.service.ts`,
21
26
  },
@@ -2,29 +2,56 @@ import type { RenderTsTemplateFileActionInput, RenderTsTemplateGroupActionInput
2
2
  import type { BuilderAction } from '@baseplate-dev/sync';
3
3
  import { LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES } from './typed-templates.js';
4
4
  export interface LocalAuthCoreAuthEmailPasswordRenderers {
5
+ constantsOtp: {
6
+ render: (options: Omit<RenderTsTemplateFileActionInput<typeof LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES.constantsOtp>, 'destination' | 'importMapProviders' | 'template' | 'generatorPaths'>) => BuilderAction;
7
+ };
5
8
  moduleGroup: {
6
9
  render: (options: Omit<RenderTsTemplateGroupActionInput<typeof LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES.moduleGroup>, 'importMapProviders' | 'group' | 'paths' | 'generatorPaths'>) => BuilderAction;
7
10
  };
11
+ schemaEmailOtpMutations: {
12
+ render: (options: Omit<RenderTsTemplateFileActionInput<typeof LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES.schemaEmailOtpMutations>, 'destination' | 'importMapProviders' | 'template' | 'generatorPaths'>) => BuilderAction;
13
+ };
8
14
  schemaEmailVerificationMutations: {
9
15
  render: (options: Omit<RenderTsTemplateFileActionInput<typeof LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES.schemaEmailVerificationMutations>, 'destination' | 'importMapProviders' | 'template' | 'generatorPaths'>) => BuilderAction;
10
16
  };
17
+ schemaInviteMutations: {
18
+ render: (options: Omit<RenderTsTemplateFileActionInput<typeof LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES.schemaInviteMutations>, 'destination' | 'importMapProviders' | 'template' | 'generatorPaths'>) => BuilderAction;
19
+ };
20
+ servicesEmailOtp: {
21
+ render: (options: Omit<RenderTsTemplateFileActionInput<typeof LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES.servicesEmailOtp>, 'destination' | 'importMapProviders' | 'template' | 'generatorPaths'>) => BuilderAction;
22
+ };
11
23
  servicesEmailVerification: {
12
24
  render: (options: Omit<RenderTsTemplateFileActionInput<typeof LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES.servicesEmailVerification>, 'destination' | 'importMapProviders' | 'template' | 'generatorPaths'>) => BuilderAction;
13
25
  };
26
+ servicesInvite: {
27
+ render: (options: Omit<RenderTsTemplateFileActionInput<typeof LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES.servicesInvite>, 'destination' | 'importMapProviders' | 'template' | 'generatorPaths'>) => BuilderAction;
28
+ };
14
29
  }
15
30
  export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_RENDERERS: {
16
31
  provider: import("@baseplate-dev/sync").ProviderType<LocalAuthCoreAuthEmailPasswordRenderers>;
17
32
  task: import("@baseplate-dev/sync").GeneratorTask<{
18
33
  localAuthCoreAuthEmailPasswordRenderers: import("@baseplate-dev/sync").ProviderExport<LocalAuthCoreAuthEmailPasswordRenderers>;
19
34
  }, {
35
+ appUrlsImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
36
+ getApiUrl: {};
37
+ getWebAppForUrl: {};
38
+ getWebOrigins: {};
39
+ getWebUrl: {};
40
+ WebAppName: {
41
+ isTypeOnly: true;
42
+ };
43
+ }>>;
20
44
  authModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
21
45
  cleanupAuthVerificationQueue: {};
22
46
  cleanupAuthVerificationWorker: {};
23
47
  cleanupExpiredAuthVerifications: {};
48
+ consumeCodeVerification: {};
24
49
  CookieUserSessionService: {};
25
50
  createAuthVerification: {};
51
+ createCodeVerification: {};
26
52
  userSessionPayload: {};
27
53
  validateAuthVerification: {};
54
+ validateCodeVerification: {};
28
55
  }>>;
29
56
  configServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
30
57
  getConfig: {};
@@ -1,5 +1,5 @@
1
1
  import { typescriptFileProvider } from '@baseplate-dev/core-generators';
2
- import { configServiceImportsProvider, errorHandlerServiceImportsProvider, passwordHasherServiceImportsProvider, pothosImportsProvider, prismaGeneratedImportsProvider, prismaImportsProvider, requestServiceContextImportsProvider, userSessionTypesImportsProvider, } from '@baseplate-dev/fastify-generators';
2
+ import { appUrlsImportsProvider, configServiceImportsProvider, errorHandlerServiceImportsProvider, passwordHasherServiceImportsProvider, pothosImportsProvider, prismaGeneratedImportsProvider, prismaImportsProvider, requestServiceContextImportsProvider, userSessionTypesImportsProvider, } from '@baseplate-dev/fastify-generators';
3
3
  import { rateLimitImportsProvider } from '@baseplate-dev/plugin-rate-limit';
4
4
  import { createGeneratorTask, createProviderType } from '@baseplate-dev/sync';
5
5
  import { authModuleImportsProvider } from '#src/local-auth/core/generators/auth-module/generated/ts-import-providers.js';
@@ -8,6 +8,7 @@ import { LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES } from './typed-templates
8
8
  const localAuthCoreAuthEmailPasswordRenderers = createProviderType('local-auth-core-auth-email-password-renderers');
9
9
  const localAuthCoreAuthEmailPasswordRenderersTask = createGeneratorTask({
10
10
  dependencies: {
11
+ appUrlsImports: appUrlsImportsProvider,
11
12
  authModuleImports: authModuleImportsProvider,
12
13
  configServiceImports: configServiceImportsProvider,
13
14
  errorHandlerServiceImports: errorHandlerServiceImportsProvider,
@@ -24,17 +25,24 @@ const localAuthCoreAuthEmailPasswordRenderersTask = createGeneratorTask({
24
25
  exports: {
25
26
  localAuthCoreAuthEmailPasswordRenderers: localAuthCoreAuthEmailPasswordRenderers.export(),
26
27
  },
27
- run({ authModuleImports, configServiceImports, errorHandlerServiceImports, passwordHasherServiceImports, paths, pothosImports, prismaGeneratedImports, prismaImports, rateLimitImports, requestServiceContextImports, typescriptFile, userSessionTypesImports, }) {
28
+ run({ appUrlsImports, authModuleImports, configServiceImports, errorHandlerServiceImports, passwordHasherServiceImports, paths, pothosImports, prismaGeneratedImports, prismaImports, rateLimitImports, requestServiceContextImports, typescriptFile, userSessionTypesImports, }) {
28
29
  return {
29
30
  providers: {
30
31
  localAuthCoreAuthEmailPasswordRenderers: {
32
+ constantsOtp: {
33
+ render: (options) => typescriptFile.renderTemplateFile({
34
+ template: LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES.constantsOtp,
35
+ destination: paths.constantsOtp,
36
+ ...options,
37
+ }),
38
+ },
31
39
  moduleGroup: {
32
40
  render: (options) => typescriptFile.renderTemplateGroup({
33
41
  group: LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES.moduleGroup,
34
42
  paths,
35
43
  importMapProviders: {
44
+ appUrlsImports,
36
45
  authModuleImports,
37
- configServiceImports,
38
46
  errorHandlerServiceImports,
39
47
  passwordHasherServiceImports,
40
48
  pothosImports,
@@ -48,6 +56,18 @@ const localAuthCoreAuthEmailPasswordRenderersTask = createGeneratorTask({
48
56
  ...options,
49
57
  }),
50
58
  },
59
+ schemaEmailOtpMutations: {
60
+ render: (options) => typescriptFile.renderTemplateFile({
61
+ template: LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES.schemaEmailOtpMutations,
62
+ destination: paths.schemaEmailOtpMutations,
63
+ importMapProviders: {
64
+ authModuleImports,
65
+ pothosImports,
66
+ },
67
+ generatorPaths: paths,
68
+ ...options,
69
+ }),
70
+ },
51
71
  schemaEmailVerificationMutations: {
52
72
  render: (options) => typescriptFile.renderTemplateFile({
53
73
  template: LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES.schemaEmailVerificationMutations,
@@ -59,13 +79,42 @@ const localAuthCoreAuthEmailPasswordRenderersTask = createGeneratorTask({
59
79
  ...options,
60
80
  }),
61
81
  },
82
+ schemaInviteMutations: {
83
+ render: (options) => typescriptFile.renderTemplateFile({
84
+ template: LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES.schemaInviteMutations,
85
+ destination: paths.schemaInviteMutations,
86
+ importMapProviders: {
87
+ authModuleImports,
88
+ pothosImports,
89
+ },
90
+ generatorPaths: paths,
91
+ ...options,
92
+ }),
93
+ },
94
+ servicesEmailOtp: {
95
+ render: (options) => typescriptFile.renderTemplateFile({
96
+ template: LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES.servicesEmailOtp,
97
+ destination: paths.servicesEmailOtp,
98
+ importMapProviders: {
99
+ authModuleImports,
100
+ configServiceImports,
101
+ errorHandlerServiceImports,
102
+ prismaImports,
103
+ rateLimitImports,
104
+ requestServiceContextImports,
105
+ userSessionTypesImports,
106
+ },
107
+ generatorPaths: paths,
108
+ ...options,
109
+ }),
110
+ },
62
111
  servicesEmailVerification: {
63
112
  render: (options) => typescriptFile.renderTemplateFile({
64
113
  template: LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES.servicesEmailVerification,
65
114
  destination: paths.servicesEmailVerification,
66
115
  importMapProviders: {
116
+ appUrlsImports,
67
117
  authModuleImports,
68
- configServiceImports,
69
118
  errorHandlerServiceImports,
70
119
  prismaImports,
71
120
  rateLimitImports,
@@ -75,6 +124,24 @@ const localAuthCoreAuthEmailPasswordRenderersTask = createGeneratorTask({
75
124
  ...options,
76
125
  }),
77
126
  },
127
+ servicesInvite: {
128
+ render: (options) => typescriptFile.renderTemplateFile({
129
+ template: LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES.servicesInvite,
130
+ destination: paths.servicesInvite,
131
+ importMapProviders: {
132
+ appUrlsImports,
133
+ authModuleImports,
134
+ errorHandlerServiceImports,
135
+ passwordHasherServiceImports,
136
+ prismaGeneratedImports,
137
+ prismaImports,
138
+ requestServiceContextImports,
139
+ userSessionTypesImports,
140
+ },
141
+ generatorPaths: paths,
142
+ ...options,
143
+ }),
144
+ },
78
145
  },
79
146
  },
80
147
  };
@@ -1,7 +1,6 @@
1
1
  import type { TsImportMapProviderFromSchema } from '@baseplate-dev/core-generators';
2
2
  export declare const authEmailPasswordImportsSchema: {
3
3
  authenticateUserWithEmailAndPassword: {};
4
- cleanupExpiredPasswordResetTokens: {};
5
4
  completePasswordReset: {};
6
5
  createUserWithEmailAndPassword: {};
7
6
  PASSWORD_MAX_LENGTH: {};
@@ -14,7 +13,6 @@ export declare const authEmailPasswordImportsSchema: {
14
13
  export type AuthEmailPasswordImportsProvider = TsImportMapProviderFromSchema<typeof authEmailPasswordImportsSchema>;
15
14
  export declare const authEmailPasswordImportsProvider: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
16
15
  authenticateUserWithEmailAndPassword: {};
17
- cleanupExpiredPasswordResetTokens: {};
18
16
  completePasswordReset: {};
19
17
  createUserWithEmailAndPassword: {};
20
18
  PASSWORD_MAX_LENGTH: {};
@@ -25,10 +23,10 @@ export declare const authEmailPasswordImportsProvider: import("@baseplate-dev/sy
25
23
  validatePasswordResetToken: {};
26
24
  }>>;
27
25
  export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_IMPORTS: {
26
+ generatorName: string;
28
27
  task: import("@baseplate-dev/sync").GeneratorTask<{
29
28
  authEmailPasswordImports: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
30
29
  authenticateUserWithEmailAndPassword: {};
31
- cleanupExpiredPasswordResetTokens: {};
32
30
  completePasswordReset: {};
33
31
  createUserWithEmailAndPassword: {};
34
32
  PASSWORD_MAX_LENGTH: {};
@@ -3,7 +3,6 @@ import { createGeneratorTask, createReadOnlyProviderType, } from '@baseplate-dev
3
3
  import { LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_PATHS } from './template-paths.js';
4
4
  export const authEmailPasswordImportsSchema = createTsImportMapSchema({
5
5
  authenticateUserWithEmailAndPassword: {},
6
- cleanupExpiredPasswordResetTokens: {},
7
6
  completePasswordReset: {},
8
7
  createUserWithEmailAndPassword: {},
9
8
  PASSWORD_MAX_LENGTH: {},
@@ -26,7 +25,6 @@ const localAuthCoreAuthEmailPasswordImportsTask = createGeneratorTask({
26
25
  providers: {
27
26
  authEmailPasswordImports: createTsImportMap(authEmailPasswordImportsSchema, {
28
27
  authenticateUserWithEmailAndPassword: paths.servicesUserPassword,
29
- cleanupExpiredPasswordResetTokens: paths.servicesPasswordReset,
30
28
  completePasswordReset: paths.servicesPasswordReset,
31
29
  createUserWithEmailAndPassword: paths.servicesUserPassword,
32
30
  PASSWORD_MAX_LENGTH: paths.constantsPassword,
@@ -41,6 +39,7 @@ const localAuthCoreAuthEmailPasswordImportsTask = createGeneratorTask({
41
39
  },
42
40
  });
43
41
  export const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_IMPORTS = {
42
+ generatorName: '@baseplate-dev/plugin-auth#local-auth/core/auth-email-password',
44
43
  task: localAuthCoreAuthEmailPasswordImportsTask,
45
44
  };
46
45
  //# sourceMappingURL=ts-import-providers.js.map
@@ -9,16 +9,20 @@ export declare const moduleGroup: {
9
9
  }>;
10
10
  schemaUserPasswordMutations: import("@baseplate-dev/core-generators").TsTemplateFile<{
11
11
  TPL_ADMIN_ROLES: {};
12
+ TPL_REGISTER_MUTATION: {};
12
13
  TPL_USER_OBJECT_TYPE: {};
13
14
  }, {
14
15
  authModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
15
16
  cleanupAuthVerificationQueue: {};
16
17
  cleanupAuthVerificationWorker: {};
17
18
  cleanupExpiredAuthVerifications: {};
19
+ consumeCodeVerification: {};
18
20
  CookieUserSessionService: {};
19
21
  createAuthVerification: {};
22
+ createCodeVerification: {};
20
23
  userSessionPayload: {};
21
24
  validateAuthVerification: {};
25
+ validateCodeVerification: {};
22
26
  }>>;
23
27
  pothosImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
24
28
  builder: {};
@@ -27,21 +31,30 @@ export declare const moduleGroup: {
27
31
  servicesUserPassword: {};
28
32
  }>;
29
33
  servicesPasswordReset: import("@baseplate-dev/core-generators").TsTemplateFile<{
34
+ TPL_AUTH_WEB_APP: {};
30
35
  TPL_PASSWORD_CHANGED_EMAIL: {};
31
36
  TPL_PASSWORD_RESET_EMAIL: {};
32
37
  }, {
38
+ appUrlsImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
39
+ getApiUrl: {};
40
+ getWebAppForUrl: {};
41
+ getWebOrigins: {};
42
+ getWebUrl: {};
43
+ WebAppName: {
44
+ isTypeOnly: true;
45
+ };
46
+ }>>;
33
47
  authModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
34
48
  cleanupAuthVerificationQueue: {};
35
49
  cleanupAuthVerificationWorker: {};
36
50
  cleanupExpiredAuthVerifications: {};
51
+ consumeCodeVerification: {};
37
52
  CookieUserSessionService: {};
38
53
  createAuthVerification: {};
54
+ createCodeVerification: {};
39
55
  userSessionPayload: {};
40
56
  validateAuthVerification: {};
41
- }>>;
42
- configServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
43
- getConfig: {};
44
- isDevelopment: {};
57
+ validateCodeVerification: {};
45
58
  }>>;
46
59
  errorHandlerServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
47
60
  BadRequestError: {};
@@ -152,6 +165,7 @@ export declare const moduleGroup: {
152
165
  }>;
153
166
  };
154
167
  export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES: {
168
+ constantsOtp: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}, Record<never, Record<never, never>>>;
155
169
  moduleGroup: {
156
170
  constantsPassword: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}, Record<never, Record<never, never>>>;
157
171
  schemaPasswordResetMutations: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
@@ -163,16 +177,20 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES: {
163
177
  }>;
164
178
  schemaUserPasswordMutations: import("@baseplate-dev/core-generators").TsTemplateFile<{
165
179
  TPL_ADMIN_ROLES: {};
180
+ TPL_REGISTER_MUTATION: {};
166
181
  TPL_USER_OBJECT_TYPE: {};
167
182
  }, {
168
183
  authModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
169
184
  cleanupAuthVerificationQueue: {};
170
185
  cleanupAuthVerificationWorker: {};
171
186
  cleanupExpiredAuthVerifications: {};
187
+ consumeCodeVerification: {};
172
188
  CookieUserSessionService: {};
173
189
  createAuthVerification: {};
190
+ createCodeVerification: {};
174
191
  userSessionPayload: {};
175
192
  validateAuthVerification: {};
193
+ validateCodeVerification: {};
176
194
  }>>;
177
195
  pothosImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
178
196
  builder: {};
@@ -181,21 +199,30 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES: {
181
199
  servicesUserPassword: {};
182
200
  }>;
183
201
  servicesPasswordReset: import("@baseplate-dev/core-generators").TsTemplateFile<{
202
+ TPL_AUTH_WEB_APP: {};
184
203
  TPL_PASSWORD_CHANGED_EMAIL: {};
185
204
  TPL_PASSWORD_RESET_EMAIL: {};
186
205
  }, {
206
+ appUrlsImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
207
+ getApiUrl: {};
208
+ getWebAppForUrl: {};
209
+ getWebOrigins: {};
210
+ getWebUrl: {};
211
+ WebAppName: {
212
+ isTypeOnly: true;
213
+ };
214
+ }>>;
187
215
  authModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
188
216
  cleanupAuthVerificationQueue: {};
189
217
  cleanupAuthVerificationWorker: {};
190
218
  cleanupExpiredAuthVerifications: {};
219
+ consumeCodeVerification: {};
191
220
  CookieUserSessionService: {};
192
221
  createAuthVerification: {};
222
+ createCodeVerification: {};
193
223
  userSessionPayload: {};
194
224
  validateAuthVerification: {};
195
- }>>;
196
- configServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
197
- getConfig: {};
198
- isDevelopment: {};
225
+ validateCodeVerification: {};
199
226
  }>>;
200
227
  errorHandlerServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
201
228
  BadRequestError: {};
@@ -305,6 +332,25 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES: {
305
332
  servicesEmailVerification: {};
306
333
  }>;
307
334
  };
335
+ schemaEmailOtpMutations: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
336
+ authModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
337
+ cleanupAuthVerificationQueue: {};
338
+ cleanupAuthVerificationWorker: {};
339
+ cleanupExpiredAuthVerifications: {};
340
+ consumeCodeVerification: {};
341
+ CookieUserSessionService: {};
342
+ createAuthVerification: {};
343
+ createCodeVerification: {};
344
+ userSessionPayload: {};
345
+ validateAuthVerification: {};
346
+ validateCodeVerification: {};
347
+ }>>;
348
+ pothosImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
349
+ builder: {};
350
+ }>>;
351
+ }, {
352
+ servicesEmailOtp: {};
353
+ }>;
308
354
  schemaEmailVerificationMutations: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
309
355
  pothosImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
310
356
  builder: {};
@@ -312,17 +358,43 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES: {
312
358
  }, {
313
359
  servicesEmailVerification: {};
314
360
  }>;
315
- servicesEmailVerification: import("@baseplate-dev/core-generators").TsTemplateFile<{
316
- TPL_ACCOUNT_VERIFICATION_EMAIL: {};
361
+ schemaInviteMutations: import("@baseplate-dev/core-generators").TsTemplateFile<{
362
+ TPL_ADMIN_ROLES: {};
363
+ TPL_USER_OBJECT_TYPE: {};
317
364
  }, {
318
365
  authModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
319
366
  cleanupAuthVerificationQueue: {};
320
367
  cleanupAuthVerificationWorker: {};
321
368
  cleanupExpiredAuthVerifications: {};
369
+ consumeCodeVerification: {};
322
370
  CookieUserSessionService: {};
323
371
  createAuthVerification: {};
372
+ createCodeVerification: {};
324
373
  userSessionPayload: {};
325
374
  validateAuthVerification: {};
375
+ validateCodeVerification: {};
376
+ }>>;
377
+ pothosImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
378
+ builder: {};
379
+ }>>;
380
+ }, {
381
+ servicesInvite: {};
382
+ }>;
383
+ servicesEmailOtp: import("@baseplate-dev/core-generators").TsTemplateFile<{
384
+ TPL_EMAIL_OTP_EMAIL: {};
385
+ TPL_NAME_REQUIRED_CHECK: {};
386
+ }, {
387
+ authModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
388
+ cleanupAuthVerificationQueue: {};
389
+ cleanupAuthVerificationWorker: {};
390
+ cleanupExpiredAuthVerifications: {};
391
+ consumeCodeVerification: {};
392
+ CookieUserSessionService: {};
393
+ createAuthVerification: {};
394
+ createCodeVerification: {};
395
+ userSessionPayload: {};
396
+ validateAuthVerification: {};
397
+ validateCodeVerification: {};
326
398
  }>>;
327
399
  configServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
328
400
  getConfig: {};
@@ -365,6 +437,150 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES: {
365
437
  isTypeOnly: true;
366
438
  };
367
439
  }>>;
440
+ userSessionTypesImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
441
+ UserSessionPayload: {
442
+ isTypeOnly: true;
443
+ };
444
+ UserSessionService: {
445
+ isTypeOnly: true;
446
+ };
447
+ }>>;
448
+ }, {
449
+ constantsOtp: {};
450
+ constantsPassword: {};
451
+ }>;
452
+ servicesEmailVerification: import("@baseplate-dev/core-generators").TsTemplateFile<{
453
+ TPL_ACCOUNT_VERIFICATION_EMAIL: {};
454
+ TPL_AUTH_WEB_APP: {};
455
+ }, {
456
+ appUrlsImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
457
+ getApiUrl: {};
458
+ getWebAppForUrl: {};
459
+ getWebOrigins: {};
460
+ getWebUrl: {};
461
+ WebAppName: {
462
+ isTypeOnly: true;
463
+ };
464
+ }>>;
465
+ authModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
466
+ cleanupAuthVerificationQueue: {};
467
+ cleanupAuthVerificationWorker: {};
468
+ cleanupExpiredAuthVerifications: {};
469
+ consumeCodeVerification: {};
470
+ CookieUserSessionService: {};
471
+ createAuthVerification: {};
472
+ createCodeVerification: {};
473
+ userSessionPayload: {};
474
+ validateAuthVerification: {};
475
+ validateCodeVerification: {};
476
+ }>>;
477
+ errorHandlerServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
478
+ BadRequestError: {};
479
+ ForbiddenError: {};
480
+ handleZodRequestValidationError: {};
481
+ HttpError: {};
482
+ InternalServerError: {};
483
+ logError: {};
484
+ NotFoundError: {};
485
+ throwIfPrismaNotFound: {};
486
+ TooManyRequestsError: {};
487
+ UnauthorizedError: {};
488
+ }>>;
489
+ prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
490
+ prisma: {};
491
+ }>>;
492
+ rateLimitImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
493
+ createRateLimiter: {};
494
+ memoizeRateLimiter: {};
495
+ RateLimiter: {
496
+ isTypeOnly: true;
497
+ };
498
+ RateLimiterConfig: {
499
+ isTypeOnly: true;
500
+ };
501
+ RateLimitResult: {
502
+ isTypeOnly: true;
503
+ };
504
+ }>>;
505
+ requestServiceContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
506
+ createContextFromRequest: {};
507
+ RequestServiceContext: {
508
+ isTypeOnly: true;
509
+ };
510
+ RequestServiceContextWith: {
511
+ isTypeOnly: true;
512
+ };
513
+ }>>;
514
+ }, {
515
+ constantsPassword: {};
516
+ }>;
517
+ servicesInvite: import("@baseplate-dev/core-generators").TsTemplateFile<{
518
+ TPL_AUTH_WEB_APP: {};
519
+ TPL_INVITE_EMAIL: {};
520
+ }, {
521
+ appUrlsImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
522
+ getApiUrl: {};
523
+ getWebAppForUrl: {};
524
+ getWebOrigins: {};
525
+ getWebUrl: {};
526
+ WebAppName: {
527
+ isTypeOnly: true;
528
+ };
529
+ }>>;
530
+ authModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
531
+ cleanupAuthVerificationQueue: {};
532
+ cleanupAuthVerificationWorker: {};
533
+ cleanupExpiredAuthVerifications: {};
534
+ consumeCodeVerification: {};
535
+ CookieUserSessionService: {};
536
+ createAuthVerification: {};
537
+ createCodeVerification: {};
538
+ userSessionPayload: {};
539
+ validateAuthVerification: {};
540
+ validateCodeVerification: {};
541
+ }>>;
542
+ errorHandlerServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
543
+ BadRequestError: {};
544
+ ForbiddenError: {};
545
+ handleZodRequestValidationError: {};
546
+ HttpError: {};
547
+ InternalServerError: {};
548
+ logError: {};
549
+ NotFoundError: {};
550
+ throwIfPrismaNotFound: {};
551
+ TooManyRequestsError: {};
552
+ UnauthorizedError: {};
553
+ }>>;
554
+ passwordHasherServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
555
+ createPasswordHash: {};
556
+ verifyPasswordHash: {};
557
+ }>>;
558
+ prismaGeneratedImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
559
+ PrismaClient: {};
560
+ Prisma: {};
561
+ '*': {};
562
+ $Enums: {};
563
+ }>>;
564
+ prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
565
+ prisma: {};
566
+ }>>;
567
+ requestServiceContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
568
+ createContextFromRequest: {};
569
+ RequestServiceContext: {
570
+ isTypeOnly: true;
571
+ };
572
+ RequestServiceContextWith: {
573
+ isTypeOnly: true;
574
+ };
575
+ }>>;
576
+ userSessionTypesImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
577
+ UserSessionPayload: {
578
+ isTypeOnly: true;
579
+ };
580
+ UserSessionService: {
581
+ isTypeOnly: true;
582
+ };
583
+ }>>;
368
584
  }, {
369
585
  constantsPassword: {};
370
586
  }>;