@baseplate-dev/plugin-auth 4.0.0 → 4.0.2

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 (339) hide show
  1. package/CHANGELOG.md +621 -0
  2. package/dist/auth/core/common.d.ts +2 -5
  3. package/dist/auth/core/common.d.ts.map +1 -1
  4. package/dist/auth/core/common.js +14 -14
  5. package/dist/auth/core/common.js.map +1 -1
  6. package/dist/auth/core/node.d.ts +3 -3
  7. package/dist/auth/core/node.d.ts.map +1 -1
  8. package/dist/auth/core/node.js +5 -8
  9. package/dist/auth/core/node.js.map +1 -1
  10. package/dist/auth/core/web.d.ts +3 -3
  11. package/dist/auth/core/web.d.ts.map +1 -1
  12. package/dist/auth/core/web.js +4 -5
  13. package/dist/auth/core/web.js.map +1 -1
  14. package/dist/auth0/core/common.d.ts +3 -5
  15. package/dist/auth0/core/common.d.ts.map +1 -1
  16. package/dist/auth0/core/common.js +11 -14
  17. package/dist/auth0/core/common.js.map +1 -1
  18. package/dist/auth0/core/node.d.ts +3 -3
  19. package/dist/auth0/core/node.d.ts.map +1 -1
  20. package/dist/auth0/core/node.js +5 -8
  21. package/dist/auth0/core/node.js.map +1 -1
  22. package/dist/auth0/core/schema/plugin-definition.js +1 -1
  23. package/dist/auth0/core/schema/plugin-definition.js.map +1 -1
  24. package/dist/auth0/core/web.d.ts +3 -3
  25. package/dist/auth0/core/web.d.ts.map +1 -1
  26. package/dist/auth0/core/web.js +4 -5
  27. package/dist/auth0/core/web.js.map +1 -1
  28. package/dist/auth0/generators/fastify/auth0-module/templates/module/schema/user-session.queries.ts +1 -1
  29. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js +1 -1
  30. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js.map +1 -1
  31. package/dist/local-auth/admin/common.d.ts +3 -2
  32. package/dist/local-auth/admin/common.d.ts.map +1 -1
  33. package/dist/local-auth/admin/common.js +6 -7
  34. package/dist/local-auth/admin/common.js.map +1 -1
  35. package/dist/local-auth/admin/node.d.ts +3 -6
  36. package/dist/local-auth/admin/node.d.ts.map +1 -1
  37. package/dist/local-auth/admin/node.js +13 -12
  38. package/dist/local-auth/admin/node.js.map +1 -1
  39. package/dist/local-auth/admin/web.d.ts +3 -4
  40. package/dist/local-auth/admin/web.d.ts.map +1 -1
  41. package/dist/local-auth/admin/web.js +22 -21
  42. package/dist/local-auth/admin/web.js.map +1 -1
  43. package/dist/local-auth/constants/model-names.d.ts +4 -0
  44. package/dist/local-auth/constants/model-names.d.ts.map +1 -1
  45. package/dist/local-auth/constants/model-names.js +4 -0
  46. package/dist/local-auth/constants/model-names.js.map +1 -1
  47. package/dist/local-auth/core/common.d.ts +3 -5
  48. package/dist/local-auth/core/common.d.ts.map +1 -1
  49. package/dist/local-auth/core/common.js +10 -13
  50. package/dist/local-auth/core/common.js.map +1 -1
  51. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +49 -0
  52. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts.map +1 -1
  53. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js +17 -6
  54. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js.map +1 -1
  55. package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +209 -0
  56. package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts.map +1 -1
  57. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts +5 -0
  58. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts.map +1 -1
  59. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.js +5 -0
  60. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.js.map +1 -1
  61. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts +47 -1
  62. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts.map +1 -1
  63. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js +48 -2
  64. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js.map +1 -1
  65. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts +18 -0
  66. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts.map +1 -1
  67. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js +12 -0
  68. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js.map +1 -1
  69. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +253 -0
  70. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts.map +1 -1
  71. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js +102 -4
  72. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js.map +1 -1
  73. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts +15 -0
  74. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts.map +1 -1
  75. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.js +15 -0
  76. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.js.map +1 -1
  77. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.ts +18 -0
  78. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.d.ts +2 -0
  79. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.d.ts.map +1 -0
  80. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.js +24 -0
  81. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.js.map +1 -0
  82. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.ts +35 -0
  83. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.d.ts +2 -0
  84. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.d.ts.map +1 -0
  85. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.js +38 -0
  86. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.js.map +1 -0
  87. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.ts +54 -0
  88. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/auth-verification.service.d.ts +40 -0
  89. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/auth-verification.service.d.ts.map +1 -0
  90. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/auth-verification.service.js +106 -0
  91. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/auth-verification.service.js.map +1 -0
  92. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/auth-verification.service.ts +146 -0
  93. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.d.ts +24 -0
  94. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.d.ts.map +1 -0
  95. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js +88 -0
  96. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js.map +1 -0
  97. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.ts +141 -0
  98. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts +35 -0
  99. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts.map +1 -0
  100. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +157 -0
  101. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js.map +1 -0
  102. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +233 -0
  103. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts.map +1 -1
  104. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js +48 -14
  105. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js.map +1 -1
  106. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts +79 -15
  107. package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts +43 -0
  108. package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts.map +1 -0
  109. package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.js +48 -0
  110. package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.js.map +1 -0
  111. package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts +96 -0
  112. package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts.map +1 -0
  113. package/dist/local-auth/core/generators/auth-email-templates/generated/index.js +11 -0
  114. package/dist/local-auth/core/generators/auth-email-templates/generated/index.js.map +1 -0
  115. package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.d.ts +14 -0
  116. package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.d.ts.map +1 -0
  117. package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.js +26 -0
  118. package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.js.map +1 -0
  119. package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts +41 -0
  120. package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts.map +1 -0
  121. package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.js +59 -0
  122. package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.js.map +1 -0
  123. package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts +60 -0
  124. package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts.map +1 -0
  125. package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.js +42 -0
  126. package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.js.map +1 -0
  127. package/dist/local-auth/core/generators/auth-email-templates/index.d.ts +2 -0
  128. package/dist/local-auth/core/generators/auth-email-templates/index.d.ts.map +1 -0
  129. package/dist/local-auth/core/generators/auth-email-templates/index.js +2 -0
  130. package/dist/local-auth/core/generators/auth-email-templates/index.js.map +1 -0
  131. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.d.ts +3 -0
  132. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.d.ts.map +1 -0
  133. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.js +14 -0
  134. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.js.map +1 -0
  135. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.tsx +55 -0
  136. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.d.ts +3 -0
  137. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.d.ts.map +1 -0
  138. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.js +12 -0
  139. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.js.map +1 -0
  140. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.tsx +44 -0
  141. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.d.ts +3 -0
  142. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.d.ts.map +1 -0
  143. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.js +14 -0
  144. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.js.map +1 -0
  145. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.tsx +55 -0
  146. package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +1 -0
  147. package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts.map +1 -1
  148. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +1 -1
  149. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js.map +1 -1
  150. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +2 -0
  151. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts.map +1 -1
  152. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts +1 -0
  153. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts.map +1 -1
  154. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +1 -0
  155. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts.map +1 -1
  156. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js +1 -1
  157. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js.map +1 -1
  158. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.ts +1 -1
  159. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js +2 -2
  160. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js.map +1 -1
  161. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.ts +2 -2
  162. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +1 -1
  163. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js +1 -0
  164. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js.map +1 -1
  165. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +722 -4
  166. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts.map +1 -1
  167. package/dist/local-auth/core/generators/auth-routes/generated/index.js +2 -0
  168. package/dist/local-auth/core/generators/auth-routes/generated/index.js.map +1 -1
  169. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts +4 -0
  170. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts.map +1 -1
  171. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js +4 -0
  172. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js.map +1 -1
  173. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +4 -1
  174. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +1 -1
  175. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js +14 -0
  176. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js.map +1 -1
  177. package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.d.ts +21 -0
  178. package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.d.ts.map +1 -0
  179. package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.js +30 -0
  180. package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.js.map +1 -0
  181. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +1216 -34
  182. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts.map +1 -1
  183. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js +70 -2
  184. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js.map +1 -1
  185. package/dist/local-auth/core/generators/auth-routes/index.d.ts +2 -0
  186. package/dist/local-auth/core/generators/auth-routes/index.d.ts.map +1 -1
  187. package/dist/local-auth/core/generators/auth-routes/index.js +1 -0
  188. package/dist/local-auth/core/generators/auth-routes/index.js.map +1 -1
  189. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.d.ts +10 -0
  190. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.d.ts.map +1 -0
  191. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.js +11 -0
  192. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.js.map +1 -0
  193. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.ts +12 -0
  194. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.d.ts +2 -0
  195. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.d.ts.map +1 -0
  196. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.js +60 -0
  197. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.js.map +1 -0
  198. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.tsx +127 -0
  199. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts +1 -1
  200. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts.map +1 -1
  201. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +6 -11
  202. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js.map +1 -1
  203. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +20 -19
  204. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts +1 -1
  205. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts.map +1 -1
  206. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +2 -2
  207. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +1 -1
  208. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +2 -3
  209. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.d.ts +7 -0
  210. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.d.ts.map +1 -0
  211. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js +131 -0
  212. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js.map +1 -0
  213. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.tsx +240 -0
  214. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.d.ts +7 -0
  215. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.d.ts.map +1 -0
  216. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.js +106 -0
  217. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.js.map +1 -0
  218. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.tsx +206 -0
  219. package/dist/local-auth/core/generators/index.d.ts +1 -0
  220. package/dist/local-auth/core/generators/index.d.ts.map +1 -1
  221. package/dist/local-auth/core/generators/index.js +1 -0
  222. package/dist/local-auth/core/generators/index.js.map +1 -1
  223. package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts +12 -0
  224. package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts.map +1 -1
  225. package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts +6 -0
  226. package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts.map +1 -1
  227. package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts +6 -0
  228. package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts.map +1 -1
  229. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts +6 -0
  230. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts.map +1 -1
  231. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js +1 -1
  232. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js.map +1 -1
  233. package/dist/local-auth/core/node.d.ts +3 -3
  234. package/dist/local-auth/core/node.d.ts.map +1 -1
  235. package/dist/local-auth/core/node.js +16 -9
  236. package/dist/local-auth/core/node.js.map +1 -1
  237. package/dist/local-auth/core/schema/models.d.ts.map +1 -1
  238. package/dist/local-auth/core/schema/models.js +60 -0
  239. package/dist/local-auth/core/schema/models.js.map +1 -1
  240. package/dist/local-auth/core/web.d.ts +3 -3
  241. package/dist/local-auth/core/web.d.ts.map +1 -1
  242. package/dist/local-auth/core/web.js +4 -5
  243. package/dist/local-auth/core/web.js.map +1 -1
  244. package/dist/placeholder-auth/core/common.d.ts +2 -5
  245. package/dist/placeholder-auth/core/common.d.ts.map +1 -1
  246. package/dist/placeholder-auth/core/common.js +10 -13
  247. package/dist/placeholder-auth/core/common.js.map +1 -1
  248. package/dist/placeholder-auth/core/node.d.ts +3 -3
  249. package/dist/placeholder-auth/core/node.d.ts.map +1 -1
  250. package/dist/placeholder-auth/core/node.js +5 -8
  251. package/dist/placeholder-auth/core/node.js.map +1 -1
  252. package/dist/placeholder-auth/core/schema/plugin-definition.js +1 -1
  253. package/dist/placeholder-auth/core/schema/plugin-definition.js.map +1 -1
  254. package/dist/placeholder-auth/core/web.d.ts +3 -3
  255. package/dist/placeholder-auth/core/web.d.ts.map +1 -1
  256. package/dist/placeholder-auth/core/web.js +4 -5
  257. package/dist/placeholder-auth/core/web.js.map +1 -1
  258. package/dist/web/assets/__federation_expose_auth0CoreCommon-DKJVe6Rd.js +40 -0
  259. package/dist/web/assets/__federation_expose_auth0CoreCommon-DKJVe6Rd.js.map +1 -0
  260. package/dist/web/assets/{__federation_expose_auth0CoreWeb-CZueDXPK.js → __federation_expose_auth0CoreWeb-CfhSWZsK.js} +9 -10
  261. package/dist/web/assets/{__federation_expose_auth0CoreWeb-CZueDXPK.js.map → __federation_expose_auth0CoreWeb-CfhSWZsK.js.map} +1 -1
  262. package/dist/web/assets/__federation_expose_authCoreCommon-D3-Gk9mI.js +29 -0
  263. package/dist/web/assets/__federation_expose_authCoreCommon-D3-Gk9mI.js.map +1 -0
  264. package/dist/web/assets/{__federation_expose_authCoreWeb-C8rgnA2v.js → __federation_expose_authCoreWeb-DZoAij9e.js} +10 -11
  265. package/dist/web/assets/{__federation_expose_authCoreWeb-C8rgnA2v.js.map → __federation_expose_authCoreWeb-DZoAij9e.js.map} +1 -1
  266. package/dist/web/assets/{__federation_expose_local-authAdminCommon-C75-DAzO.js → __federation_expose_local-authAdminCommon-BRHnF0Hn.js} +8 -9
  267. package/dist/web/assets/__federation_expose_local-authAdminCommon-BRHnF0Hn.js.map +1 -0
  268. package/dist/web/assets/__federation_expose_local-authAdminWeb-dYAIxuqC.js +41 -0
  269. package/dist/web/assets/__federation_expose_local-authAdminWeb-dYAIxuqC.js.map +1 -0
  270. package/dist/web/assets/__federation_expose_local-authCoreCommon-CIwvOx0d.js +21 -0
  271. package/dist/web/assets/__federation_expose_local-authCoreCommon-CIwvOx0d.js.map +1 -0
  272. package/dist/web/assets/{__federation_expose_local-authCoreWeb-ChyvdsRq.js → __federation_expose_local-authCoreWeb-Bwooi2qZ.js} +70 -11
  273. package/dist/web/assets/__federation_expose_local-authCoreWeb-Bwooi2qZ.js.map +1 -0
  274. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-gFDSzGjB.js +23 -0
  275. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-gFDSzGjB.js.map +1 -0
  276. package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-CT8JKYLB.js → __federation_expose_placeholder-authCoreWeb-BZLwIkLk.js} +9 -13
  277. package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-CT8JKYLB.js.map → __federation_expose_placeholder-authCoreWeb-BZLwIkLk.js.map} +1 -1
  278. package/dist/web/assets/{__federation_fn_import-C_QCk5FX.js → __federation_fn_import-pxYUpmb_.js} +2 -2
  279. package/dist/web/assets/{__federation_fn_import-C_QCk5FX.js.map → __federation_fn_import-pxYUpmb_.js.map} +1 -1
  280. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-DtztAtUw.js → web-BXi2UCP-.js} +39 -120
  281. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-BXi2UCP-.js.map +1 -0
  282. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-O0clDXMb.js +17445 -0
  283. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-O0clDXMb.js.map +1 -0
  284. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-BpuFQk6s.js +52536 -0
  285. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-BpuFQk6s.js.map +1 -0
  286. package/dist/web/assets/__federation_shared_@baseplate-dev/{utils-Bxy-1ETU.js → utils-UiZ-8JBg.js} +30 -10
  287. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-UiZ-8JBg.js.map +1 -0
  288. package/dist/web/assets/__federation_shared_@tanstack/{react-router-DooFj-IS.js → react-router-BPEAtEJI.js} +1069 -746
  289. package/dist/web/assets/__federation_shared_@tanstack/react-router-BPEAtEJI.js.map +1 -0
  290. package/dist/web/assets/{get-auth-plugin-definition-D2XMaoy7.js → get-auth-plugin-definition-DPsrvQbo.js} +2 -2
  291. package/dist/web/assets/{get-auth-plugin-definition-D2XMaoy7.js.map → get-auth-plugin-definition-DPsrvQbo.js.map} +1 -1
  292. package/dist/web/assets/{index-DwJT6_Wn.js → index-CSfs0UAV.js} +2 -2
  293. package/dist/web/assets/{index-DwJT6_Wn.js.map → index-CSfs0UAV.js.map} +1 -1
  294. package/dist/web/assets/{index.esm-ChwWPPiL.js → index.esm-BoRQu8mM.js} +2 -2
  295. package/dist/web/assets/{index.esm-ChwWPPiL.js.map → index.esm-BoRQu8mM.js.map} +1 -1
  296. package/dist/web/assets/{isEqual-DAXqKRba.js → isEqual-BQtm2LNT.js} +5 -5
  297. package/dist/web/assets/{isEqual-DAXqKRba.js.map → isEqual-BQtm2LNT.js.map} +1 -1
  298. package/dist/web/assets/{model-merger-gGkFnyaY.js → model-merger-CdjliK9v.js} +266 -101
  299. package/dist/web/assets/model-merger-CdjliK9v.js.map +1 -0
  300. package/dist/web/assets/{model-names-CEoSIalq.js → model-names-DrcaRxt1.js} +6 -2
  301. package/dist/web/assets/{model-names-CEoSIalq.js.map → model-names-DrcaRxt1.js.map} +1 -1
  302. package/dist/web/assets/{plugin-definition-rpMj4pr8.js → plugin-definition-BG6tu7Hh.js} +3 -3
  303. package/dist/web/assets/plugin-definition-BG6tu7Hh.js.map +1 -0
  304. package/dist/web/assets/{plugin-definition-QRBMcFiG.js → plugin-definition-BMYDEj3f.js} +3 -3
  305. package/dist/web/assets/plugin-definition-BMYDEj3f.js.map +1 -0
  306. package/dist/web/assets/{plugin-definition-hAzbWO7b.js → plugin-definition-DRhTuQas.js} +2 -2
  307. package/dist/web/assets/{plugin-definition-hAzbWO7b.js.map → plugin-definition-DRhTuQas.js.map} +1 -1
  308. package/dist/web/assets/{plugin-definition-_slrOM0G.js → plugin-definition-j1nJ0FFI.js} +2 -2
  309. package/dist/web/assets/{plugin-definition-_slrOM0G.js.map → plugin-definition-j1nJ0FFI.js.map} +1 -1
  310. package/dist/web/assets/{react-DbX1FP85.js → react-CBhSWxr_.js} +2 -2
  311. package/dist/web/assets/{react-DbX1FP85.js.map → react-CBhSWxr_.js.map} +1 -1
  312. package/dist/web/assets/remoteEntry.js +20 -20
  313. package/dist/web/assets/{style-DZ-aOCkd.css → style-DiK_rD1L.css} +1 -1
  314. package/dist/web/assets/{styles-DqLt1Blm.js → styles-BbHyE-2h.js} +3 -3
  315. package/dist/web/assets/{styles-DqLt1Blm.js.map → styles-BbHyE-2h.js.map} +1 -1
  316. package/dist/web/index.html +1 -1
  317. package/package.json +23 -20
  318. package/dist/web/assets/__federation_expose_auth0CoreCommon-Ga9LD3d6.js +0 -43
  319. package/dist/web/assets/__federation_expose_auth0CoreCommon-Ga9LD3d6.js.map +0 -1
  320. package/dist/web/assets/__federation_expose_authCoreCommon-BrTLsuJC.js +0 -29
  321. package/dist/web/assets/__federation_expose_authCoreCommon-BrTLsuJC.js.map +0 -1
  322. package/dist/web/assets/__federation_expose_local-authAdminCommon-C75-DAzO.js.map +0 -1
  323. package/dist/web/assets/__federation_expose_local-authAdminWeb-D2xGvwyL.js +0 -40
  324. package/dist/web/assets/__federation_expose_local-authAdminWeb-D2xGvwyL.js.map +0 -1
  325. package/dist/web/assets/__federation_expose_local-authCoreCommon-BFUbyPYg.js +0 -27
  326. package/dist/web/assets/__federation_expose_local-authCoreCommon-BFUbyPYg.js.map +0 -1
  327. package/dist/web/assets/__federation_expose_local-authCoreWeb-ChyvdsRq.js.map +0 -1
  328. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-DrFV9FSW.js +0 -26
  329. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-DrFV9FSW.js.map +0 -1
  330. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-DtztAtUw.js.map +0 -1
  331. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CcNtL_U6.js +0 -10507
  332. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CcNtL_U6.js.map +0 -1
  333. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-DA_4I2Vy.js +0 -24082
  334. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-DA_4I2Vy.js.map +0 -1
  335. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-Bxy-1ETU.js.map +0 -1
  336. package/dist/web/assets/__federation_shared_@tanstack/react-router-DooFj-IS.js.map +0 -1
  337. package/dist/web/assets/model-merger-gGkFnyaY.js.map +0 -1
  338. package/dist/web/assets/plugin-definition-QRBMcFiG.js.map +0 -1
  339. package/dist/web/assets/plugin-definition-rpMj4pr8.js.map +0 -1
@@ -1,30 +1,32 @@
1
- import { createPlatformPluginExport, ModelUtils, } from '@baseplate-dev/project-builder-lib';
1
+ import { createPluginModule, ModelUtils, } from '@baseplate-dev/project-builder-lib';
2
2
  import { adminCrudActionWebSpec, adminCrudColumnWebSpec, } from '@baseplate-dev/project-builder-lib/web';
3
3
  import { LOCAL_AUTH_MODELS } from '#src/local-auth/constants/model-names.js';
4
- export default createPlatformPluginExport({
4
+ export default createPluginModule({
5
+ name: 'web',
5
6
  dependencies: {
6
7
  adminCrudActionWeb: adminCrudActionWebSpec,
7
8
  adminCrudColumnWeb: adminCrudColumnWebSpec,
8
9
  },
9
- exports: {},
10
10
  initialize: ({ adminCrudActionWeb, adminCrudColumnWeb }, { pluginKey }) => {
11
- adminCrudActionWeb.registerActionWebConfig({
12
- pluginKey,
13
- name: 'manage-roles',
14
- label: 'Manage Roles',
15
- isAvailableForModel: (definition, modelId) => ModelUtils.byIdOrThrow(definition, modelId).name ===
16
- LOCAL_AUTH_MODELS.user,
17
- getNewAction: () => ({ type: 'manage-roles', position: 'dropdown' }),
18
- });
19
- adminCrudActionWeb.registerActionWebConfig({
20
- pluginKey,
21
- name: 'reset-password',
22
- label: 'Reset Password',
23
- isAvailableForModel: (definition, modelId) => ModelUtils.byIdOrThrow(definition, modelId).name ===
24
- LOCAL_AUTH_MODELS.user,
25
- getNewAction: () => ({ type: 'reset-password', position: 'dropdown' }),
26
- });
27
- adminCrudColumnWeb.registerColumnWebConfig({
11
+ adminCrudActionWeb.actions.addMany([
12
+ {
13
+ pluginKey,
14
+ name: 'manage-roles',
15
+ label: 'Manage Roles',
16
+ isAvailableForModel: (definition, modelId) => ModelUtils.byIdOrThrow(definition, modelId).name ===
17
+ LOCAL_AUTH_MODELS.user,
18
+ getNewAction: () => ({ type: 'manage-roles', position: 'dropdown' }),
19
+ },
20
+ {
21
+ pluginKey,
22
+ name: 'reset-password',
23
+ label: 'Reset Password',
24
+ isAvailableForModel: (definition, modelId) => ModelUtils.byIdOrThrow(definition, modelId).name ===
25
+ LOCAL_AUTH_MODELS.user,
26
+ getNewAction: () => ({ type: 'reset-password', position: 'dropdown' }),
27
+ },
28
+ ]);
29
+ adminCrudColumnWeb.columns.add({
28
30
  pluginKey,
29
31
  name: 'roles',
30
32
  label: 'Roles',
@@ -32,7 +34,6 @@ export default createPlatformPluginExport({
32
34
  LOCAL_AUTH_MODELS.user,
33
35
  getNewColumn: () => ({ type: 'roles', label: 'Roles' }),
34
36
  });
35
- return {};
36
37
  },
37
38
  });
38
39
  //# sourceMappingURL=web.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"web.js","sourceRoot":"","sources":["../../../src/local-auth/admin/web.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,UAAU,GACX,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAE7E,eAAe,0BAA0B,CAAC;IACxC,YAAY,EAAE;QACZ,kBAAkB,EAAE,sBAAsB;QAC1C,kBAAkB,EAAE,sBAAsB;KAC3C;IACD,OAAO,EAAE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AAC,CAAC;QAEH,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC;YAC7B,SAAS;YACT,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,OAAO;YACd,mBAAmB,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,EAAE,CAC3C,UAAU,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI;gBAChD,iBAAiB,CAAC,IAAI;YACxB,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;SACxD,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC"}
@@ -15,5 +15,9 @@ export declare const LOCAL_AUTH_MODELS: {
15
15
  * Model name for the user session model that represents a user session in the local auth system.
16
16
  */
17
17
  readonly userSession: "UserSession";
18
+ /**
19
+ * Model name for the auth verification model used for secure token-based verification flows (e.g. password reset, email verification).
20
+ */
21
+ readonly authVerification: "AuthVerification";
18
22
  };
19
23
  //# sourceMappingURL=model-names.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"model-names.d.ts","sourceRoot":"","sources":["../../../src/local-auth/constants/model-names.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB;IAC5B;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;CAEK,CAAC"}
1
+ {"version":3,"file":"model-names.d.ts","sourceRoot":"","sources":["../../../src/local-auth/constants/model-names.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB;IAC5B;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;CAEK,CAAC"}
@@ -15,5 +15,9 @@ export const LOCAL_AUTH_MODELS = {
15
15
  * Model name for the user session model that represents a user session in the local auth system.
16
16
  */
17
17
  userSession: 'UserSession',
18
+ /**
19
+ * Model name for the auth verification model used for secure token-based verification flows (e.g. password reset, email verification).
20
+ */
21
+ authVerification: 'AuthVerification',
18
22
  };
19
23
  //# sourceMappingURL=model-names.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"model-names.js","sourceRoot":"","sources":["../../../src/local-auth/constants/model-names.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM;IACZ;;OAEG;IACH,WAAW,EAAE,aAAa;IAC1B;;OAEG;IACH,QAAQ,EAAE,UAAU;IACpB;;OAEG;IACH,WAAW,EAAE,aAAa;CAClB,CAAC"}
1
+ {"version":3,"file":"model-names.js","sourceRoot":"","sources":["../../../src/local-auth/constants/model-names.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM;IACZ;;OAEG;IACH,WAAW,EAAE,aAAa;IAC1B;;OAEG;IACH,QAAQ,EAAE,UAAU;IACpB;;OAEG;IACH,WAAW,EAAE,aAAa;IAC1B;;OAEG;IACH,gBAAgB,EAAE,kBAAkB;CAC5B,CAAC"}
@@ -1,8 +1,6 @@
1
- export type { PluginPlatformModule } from '@baseplate-dev/project-builder-lib';
2
- declare const _default: import("@baseplate-dev/project-builder-lib").PluginPlatformModule<{
3
- config: import("@baseplate-dev/project-builder-lib").PluginSpecWithInitializer<import("@baseplate-dev/project-builder-lib").PluginConfigSpec>;
4
- }, {
5
- authModelConfig: import("@baseplate-dev/project-builder-lib").PluginSpec<import("@baseplate-dev/project-builder-lib").AuthModelConfigSpec>;
1
+ export type { PluginModule } from '@baseplate-dev/project-builder-lib';
2
+ declare const _default: import("@baseplate-dev/project-builder-lib").PluginModule<{
3
+ [x: string]: import("@baseplate-dev/project-builder-lib").PluginSpec<object, object>;
6
4
  }>;
7
5
  export default _default;
8
6
  //# sourceMappingURL=common.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/local-auth/core/common.ts"],"names":[],"mappings":"AAYA,YAAY,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;;;;;;AAE/E,wBAmBG"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/local-auth/core/common.ts"],"names":[],"mappings":"AAWA,YAAY,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;;;;AAEvE,wBAYG"}
@@ -1,20 +1,17 @@
1
- import { authModelConfigSpec, createPlatformPluginExport, ModelUtils, pluginConfigSpec, } from '@baseplate-dev/project-builder-lib';
1
+ import { authModelsSpec, createPluginModule, pluginConfigSpec, } from '@baseplate-dev/project-builder-lib';
2
2
  import { LOCAL_AUTH_MODELS } from '#src/local-auth/constants/model-names.js';
3
3
  import { createLocalAuthPluginDefinitionSchema } from './schema/plugin-definition.js';
4
- export default createPlatformPluginExport({
4
+ export default createPluginModule({
5
+ name: 'common',
5
6
  dependencies: {
6
- config: pluginConfigSpec,
7
+ pluginConfig: pluginConfigSpec,
8
+ authModels: authModelsSpec,
7
9
  },
8
- exports: {
9
- authModelConfig: authModelConfigSpec,
10
- },
11
- initialize: ({ config }, { pluginKey }) => {
12
- config.registerSchemaCreator(pluginKey, createLocalAuthPluginDefinitionSchema);
13
- return {
14
- authModelConfig: {
15
- getUserModel: (definition) => ModelUtils.byNameOrThrow(definition, LOCAL_AUTH_MODELS.user),
16
- },
17
- };
10
+ initialize: ({ pluginConfig, authModels }, { pluginKey }) => {
11
+ pluginConfig.schemas.set(pluginKey, createLocalAuthPluginDefinitionSchema);
12
+ authModels.getAuthModels.set(() => ({
13
+ user: LOCAL_AUTH_MODELS.user,
14
+ }));
18
15
  },
19
16
  });
20
17
  //# sourceMappingURL=common.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/local-auth/core/common.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,UAAU,EACV,gBAAgB,GACjB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,iBAAi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;CACF,CAAC,CAAC"}
@@ -3,6 +3,7 @@
3
3
  */
4
4
  export declare const authEmailPasswordGenerator: import("@baseplate-dev/sync").GeneratorBundleCreator<{
5
5
  adminRoles: string[];
6
+ devWebDomainPort: number;
6
7
  }, {
7
8
  paths: import("@baseplate-dev/sync").GeneratorTask<{
8
9
  localAuthCoreAuthEmailPasswordPaths: import("@baseplate-dev/sync").ProviderExport<import("./generated/template-paths.js").LocalAuthCoreAuthEmailPasswordPaths>;
@@ -12,9 +13,15 @@ export declare const authEmailPasswordGenerator: import("@baseplate-dev/sync").G
12
13
  imports: import("@baseplate-dev/sync").GeneratorTask<{
13
14
  authEmailPasswordImports: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
14
15
  authenticateUserWithEmailAndPassword: {};
16
+ cleanupExpiredPasswordResetTokens: {};
17
+ completePasswordReset: {};
15
18
  createUserWithEmailAndPassword: {};
19
+ PASSWORD_MAX_LENGTH: {};
16
20
  PASSWORD_MIN_LENGTH: {};
21
+ PASSWORD_RESET_TOKEN_EXPIRY_SEC: {};
17
22
  registerUserWithEmailAndPassword: {};
23
+ requestPasswordReset: {};
24
+ validatePasswordResetToken: {};
18
25
  }>>;
19
26
  }, {
20
27
  paths: import("@baseplate-dev/sync").ProviderType<import("./generated/template-paths.js").LocalAuthCoreAuthEmailPasswordPaths>;
@@ -25,6 +32,29 @@ export declare const authEmailPasswordGenerator: import("@baseplate-dev/sync").G
25
32
  authModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
26
33
  userSessionPayload: {};
27
34
  }>>;
35
+ configServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
36
+ config: {};
37
+ }>>;
38
+ emailModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
39
+ EmailAdapter: {
40
+ isTypeOnly: true;
41
+ };
42
+ EmailAttachment: {
43
+ isTypeOnly: true;
44
+ };
45
+ EmailRawOptions: {
46
+ isTypeOnly: true;
47
+ };
48
+ EmailSendOptions: {
49
+ isTypeOnly: true;
50
+ };
51
+ sendEmail: {};
52
+ sendEmailQueue: {};
53
+ sendRawEmail: {};
54
+ TransformedEmailMessage: {
55
+ isTypeOnly: true;
56
+ };
57
+ }>>;
28
58
  errorHandlerServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
29
59
  BadRequestError: {};
30
60
  ForbiddenError: {};
@@ -33,6 +63,7 @@ export declare const authEmailPasswordGenerator: import("@baseplate-dev/sync").G
33
63
  InternalServerError: {};
34
64
  logError: {};
35
65
  NotFoundError: {};
66
+ TooManyRequestsError: {};
36
67
  UnauthorizedError: {};
37
68
  }>>;
38
69
  passwordHasherServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
@@ -52,6 +83,19 @@ export declare const authEmailPasswordGenerator: import("@baseplate-dev/sync").G
52
83
  prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
53
84
  prisma: {};
54
85
  }>>;
86
+ rateLimitImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
87
+ createRateLimiter: {};
88
+ memoizeRateLimiter: {};
89
+ RateLimiter: {
90
+ isTypeOnly: true;
91
+ };
92
+ RateLimiterConfig: {
93
+ isTypeOnly: true;
94
+ };
95
+ RateLimitResult: {
96
+ isTypeOnly: true;
97
+ };
98
+ }>>;
55
99
  requestServiceContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
56
100
  createContextFromRequest: {};
57
101
  RequestServiceContext: {
@@ -71,6 +115,11 @@ export declare const authEmailPasswordGenerator: import("@baseplate-dev/sync").G
71
115
  };
72
116
  }>>;
73
117
  }, undefined>;
118
+ config: import("@baseplate-dev/sync").GeneratorTask<undefined, {
119
+ provider: import("@baseplate-dev/sync").ProviderType<Omit<import("@baseplate-dev/utils").FieldMap<{
120
+ configFields: import("@baseplate-dev/utils").MapContainer<string, import("@baseplate-dev/fastify-generators/src/index.js").ConfigServiceField>;
121
+ }>, "getValues">>;
122
+ }, undefined>;
74
123
  appModule: import("@baseplate-dev/sync").GeneratorTask<any, {
75
124
  paths: import("@baseplate-dev/sync").ProviderType<import("./generated/template-paths.js").LocalAuthCoreAuthEmailPasswordPaths>;
76
125
  appModule: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/fastify-generators/src/index.js").AppModuleProvider>;
@@ -1 +1 @@
1
- {"version":3,"file":"auth-email-password.generator.d.ts","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-email-password/auth-email-password.generator.ts"],"names":[],"mappings":"AAkBA;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+CrC,CAAC"}
1
+ {"version":3,"file":"auth-email-password.generator.d.ts","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-email-password/auth-email-password.generator.ts"],"names":[],"mappings":"AAwBA;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgErC,CAAC"}
@@ -1,12 +1,13 @@
1
- import { TsCodeUtils } from '@baseplate-dev/core-generators';
2
- import { appModuleProvider, createPothosPrismaObjectTypeOutputName, pothosTypeOutputProvider, } from '@baseplate-dev/fastify-generators';
3
- import { createGenerator, createGeneratorTask } from '@baseplate-dev/sync';
1
+ import { tsCodeFragment, TsCodeUtils } from '@baseplate-dev/core-generators';
2
+ import { appModuleProvider, configServiceProvider, createPothosPrismaObjectTypeOutputName, pothosTypeOutputProvider, } from '@baseplate-dev/fastify-generators';
3
+ import { createGenerator, createGeneratorTask, createProviderTask, } from '@baseplate-dev/sync';
4
4
  import { quot } from '@baseplate-dev/utils';
5
5
  import { z } from 'zod';
6
6
  import { LOCAL_AUTH_MODELS } from '#src/local-auth/constants/model-names.js';
7
7
  import { LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED as GENERATED_TEMPLATES } from './generated/index.js';
8
8
  const descriptorSchema = z.object({
9
9
  adminRoles: z.array(z.string()),
10
+ devWebDomainPort: z.number(),
10
11
  });
11
12
  /**
12
13
  * Sets up email / password authentication
@@ -15,17 +16,24 @@ export const authEmailPasswordGenerator = createGenerator({
15
16
  name: 'local-auth/core/auth-email-password',
16
17
  generatorFileUrl: import.meta.url,
17
18
  descriptorSchema,
18
- buildTasks: ({ adminRoles }) => ({
19
+ buildTasks: ({ adminRoles, devWebDomainPort }) => ({
19
20
  paths: GENERATED_TEMPLATES.paths.task,
20
21
  imports: GENERATED_TEMPLATES.imports.task,
21
22
  renderers: GENERATED_TEMPLATES.renderers.task,
23
+ config: createProviderTask(configServiceProvider, (configService) => {
24
+ configService.configFields.set('AUTH_FRONTEND_URL', {
25
+ validator: tsCodeFragment('z.url()'),
26
+ comment: 'Frontend URL for authentication flows including password reset and email verification (e.g., https://app.example.com)',
27
+ exampleValue: `http://localhost:${devWebDomainPort}`,
28
+ });
29
+ }),
22
30
  appModule: createGeneratorTask({
23
31
  dependencies: {
24
32
  paths: GENERATED_TEMPLATES.paths.provider,
25
33
  appModule: appModuleProvider,
26
34
  },
27
35
  run({ paths, appModule }) {
28
- appModule.moduleImports.push(paths.schemaUserPasswordMutations);
36
+ appModule.moduleImports.push(paths.schemaUserPasswordMutations, paths.schemaPasswordResetMutations, paths.schemaEmailVerificationMutations);
29
37
  },
30
38
  }),
31
39
  main: createGeneratorTask({
@@ -41,11 +49,14 @@ export const authEmailPasswordGenerator = createGenerator({
41
49
  await builder.apply(renderers.moduleGroup.render({
42
50
  variables: {
43
51
  schemaUserPasswordMutations: {
44
- TPL_ADMIN_ROLES: TsCodeUtils.mergeFragmentsAsArrayPresorted(adminRoles.map((r) => quot(r)).sort()),
52
+ TPL_ADMIN_ROLES: TsCodeUtils.mergeFragmentsAsArrayPresorted(adminRoles.map((r) => quot(r)).toSorted()),
45
53
  TPL_USER_OBJECT_TYPE: userObjectType.getTypeReference().fragment,
46
54
  },
47
55
  },
48
56
  }));
57
+ await builder.apply(renderers.servicesAuthVerification.render({}));
58
+ await builder.apply(renderers.servicesEmailVerification.render({}));
59
+ await builder.apply(renderers.schemaEmailVerificationMutations.render({}));
49
60
  },
50
61
  };
51
62
  },
@@ -1 +1 @@
1
- {"version":3,"file":"auth-email-password.generator.js","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-email-password/auth-email-password.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EACL,iBAAiB,EACjB,sCAAsC,EACtC,wBAAwB,GACzB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAE7E,OAAO,EAAE,6CAA6C,IAAI,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE5G,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAChC,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,eAAe,CAAC;IACxD,IAAI,EA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AAC,QAAQ;iCAC7C;6BACF;yBACF,CAAC,CACH,CAAC;oBACJ,CAAC;iBACF,CAAC;YACJ,CAAC;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"auth-email-password.generator.js","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-email-password/auth-email-password.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,sCAAsC,EACtC,wBAAwB,GACzB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAE7E,OAAO,EAAE,6CAA6C,IAAI,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE5G,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC/B,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE;CAC7B,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,eAAe,CAAC;IACxD,IAAI,EAAE,qCAAqC;IAC3C,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG;IACjC,gBAAgB;IAChB,UAAU,EAAE,CAAC,EAAE,UAAU,EAAE,gBAAgB,EAAE,EAAE,EAAE,CAAC,CAAC;QACjD,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC,IAAI;QACrC,OAAO,EAAE,mBAAmB,CAAC,OAAO,CAAC,IAAI;QACzC,SAAS,E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,QAAQ,EAAE,CAC1C;oCACD,oBAAoB,EAClB,cAAc,CAAC,gBAAgB,EAAE,CAAC,QAAQ;iCAC7C;6BACF;yBACF,CAAC,CACH,CAAC;wBACF,MAAM,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,wBAAwB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;wBACnE,MAAM,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,yBAAyB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;wBACpE,MAAM,OAAO,CAAC,KAAK,CACjB,SAAS,CAAC,gCAAgC,CAAC,MAAM,CAAC,EAAE,CAAC,CACtD,CAAC;oBACJ,CAAC;iBACF,CAAC;YACJ,CAAC;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
@@ -3,9 +3,15 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED: {
3
3
  task: import("@baseplate-dev/sync").GeneratorTask<{
4
4
  authEmailPasswordImports: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
5
5
  authenticateUserWithEmailAndPassword: {};
6
+ cleanupExpiredPasswordResetTokens: {};
7
+ completePasswordReset: {};
6
8
  createUserWithEmailAndPassword: {};
9
+ PASSWORD_MAX_LENGTH: {};
7
10
  PASSWORD_MIN_LENGTH: {};
11
+ PASSWORD_RESET_TOKEN_EXPIRY_SEC: {};
8
12
  registerUserWithEmailAndPassword: {};
13
+ requestPasswordReset: {};
14
+ validatePasswordResetToken: {};
9
15
  }>>;
10
16
  }, {
11
17
  paths: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").LocalAuthCoreAuthEmailPasswordPaths>;
@@ -27,6 +33,29 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED: {
27
33
  authModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
28
34
  userSessionPayload: {};
29
35
  }>>;
36
+ configServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
37
+ config: {};
38
+ }>>;
39
+ emailModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
40
+ EmailAdapter: {
41
+ isTypeOnly: true;
42
+ };
43
+ EmailAttachment: {
44
+ isTypeOnly: true;
45
+ };
46
+ EmailRawOptions: {
47
+ isTypeOnly: true;
48
+ };
49
+ EmailSendOptions: {
50
+ isTypeOnly: true;
51
+ };
52
+ sendEmail: {};
53
+ sendEmailQueue: {};
54
+ sendRawEmail: {};
55
+ TransformedEmailMessage: {
56
+ isTypeOnly: true;
57
+ };
58
+ }>>;
30
59
  errorHandlerServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
31
60
  BadRequestError: {};
32
61
  ForbiddenError: {};
@@ -35,6 +64,7 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED: {
35
64
  InternalServerError: {};
36
65
  logError: {};
37
66
  NotFoundError: {};
67
+ TooManyRequestsError: {};
38
68
  UnauthorizedError: {};
39
69
  }>>;
40
70
  passwordHasherServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
@@ -54,6 +84,19 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED: {
54
84
  prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
55
85
  prisma: {};
56
86
  }>>;
87
+ rateLimitImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
88
+ createRateLimiter: {};
89
+ memoizeRateLimiter: {};
90
+ RateLimiter: {
91
+ isTypeOnly: true;
92
+ };
93
+ RateLimiterConfig: {
94
+ isTypeOnly: true;
95
+ };
96
+ RateLimitResult: {
97
+ isTypeOnly: true;
98
+ };
99
+ }>>;
57
100
  requestServiceContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
58
101
  createContextFromRequest: {};
59
102
  RequestServiceContext: {
@@ -77,6 +120,13 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED: {
77
120
  templates: {
78
121
  moduleGroup: {
79
122
  constantsPassword: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}, Record<never, Record<never, never>>>;
123
+ schemaPasswordResetMutations: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
124
+ pothosImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
125
+ builder: {};
126
+ }>>;
127
+ }, {
128
+ servicesPasswordReset: {};
129
+ }>;
80
130
  schemaUserPasswordMutations: import("@baseplate-dev/core-generators").TsTemplateFile<{
81
131
  TPL_ADMIN_ROLES: {};
82
132
  TPL_USER_OBJECT_TYPE: {};
@@ -90,6 +140,71 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED: {
90
140
  }, {
91
141
  servicesUserPassword: {};
92
142
  }>;
143
+ servicesPasswordReset: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
144
+ configServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
145
+ config: {};
146
+ }>>;
147
+ emailModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
148
+ EmailAdapter: {
149
+ isTypeOnly: true;
150
+ };
151
+ EmailAttachment: {
152
+ isTypeOnly: true;
153
+ };
154
+ EmailRawOptions: {
155
+ isTypeOnly: true;
156
+ };
157
+ EmailSendOptions: {
158
+ isTypeOnly: true;
159
+ };
160
+ sendEmail: {};
161
+ sendEmailQueue: {};
162
+ sendRawEmail: {};
163
+ TransformedEmailMessage: {
164
+ isTypeOnly: true;
165
+ };
166
+ }>>;
167
+ errorHandlerServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
168
+ BadRequestError: {};
169
+ ForbiddenError: {};
170
+ handleZodRequestValidationError: {};
171
+ HttpError: {};
172
+ InternalServerError: {};
173
+ logError: {};
174
+ NotFoundError: {};
175
+ TooManyRequestsError: {};
176
+ UnauthorizedError: {};
177
+ }>>;
178
+ passwordHasherServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
179
+ createPasswordHash: {};
180
+ verifyPasswordHash: {};
181
+ }>>;
182
+ prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
183
+ prisma: {};
184
+ }>>;
185
+ rateLimitImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
186
+ createRateLimiter: {};
187
+ memoizeRateLimiter: {};
188
+ RateLimiter: {
189
+ isTypeOnly: true;
190
+ };
191
+ RateLimiterConfig: {
192
+ isTypeOnly: true;
193
+ };
194
+ RateLimitResult: {
195
+ isTypeOnly: true;
196
+ };
197
+ }>>;
198
+ requestServiceContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
199
+ createContextFromRequest: {};
200
+ RequestServiceContext: {
201
+ isTypeOnly: true;
202
+ };
203
+ }>>;
204
+ }, {
205
+ constantsPassword: {};
206
+ servicesAuthVerification: {};
207
+ }>;
93
208
  servicesUserPassword: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
94
209
  errorHandlerServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
95
210
  BadRequestError: {};
@@ -99,6 +214,7 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED: {
99
214
  InternalServerError: {};
100
215
  logError: {};
101
216
  NotFoundError: {};
217
+ TooManyRequestsError: {};
102
218
  UnauthorizedError: {};
103
219
  }>>;
104
220
  passwordHasherServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
@@ -114,6 +230,19 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED: {
114
230
  prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
115
231
  prisma: {};
116
232
  }>>;
233
+ rateLimitImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
234
+ createRateLimiter: {};
235
+ memoizeRateLimiter: {};
236
+ RateLimiter: {
237
+ isTypeOnly: true;
238
+ };
239
+ RateLimiterConfig: {
240
+ isTypeOnly: true;
241
+ };
242
+ RateLimitResult: {
243
+ isTypeOnly: true;
244
+ };
245
+ }>>;
117
246
  requestServiceContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
118
247
  createContextFromRequest: {};
119
248
  RequestServiceContext: {
@@ -133,8 +262,88 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED: {
133
262
  }>>;
134
263
  }, {
135
264
  constantsPassword: {};
265
+ servicesEmailVerification: {};
136
266
  }>;
137
267
  };
268
+ schemaEmailVerificationMutations: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
269
+ pothosImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
270
+ builder: {};
271
+ }>>;
272
+ }, {
273
+ servicesEmailVerification: {};
274
+ }>;
275
+ servicesAuthVerification: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
276
+ prismaGeneratedImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
277
+ PrismaClient: {};
278
+ Prisma: {};
279
+ '*': {};
280
+ $Enums: {};
281
+ }>>;
282
+ prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
283
+ prisma: {};
284
+ }>>;
285
+ }, Record<never, Record<never, never>>>;
286
+ servicesEmailVerification: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
287
+ configServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
288
+ config: {};
289
+ }>>;
290
+ emailModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
291
+ EmailAdapter: {
292
+ isTypeOnly: true;
293
+ };
294
+ EmailAttachment: {
295
+ isTypeOnly: true;
296
+ };
297
+ EmailRawOptions: {
298
+ isTypeOnly: true;
299
+ };
300
+ EmailSendOptions: {
301
+ isTypeOnly: true;
302
+ };
303
+ sendEmail: {};
304
+ sendEmailQueue: {};
305
+ sendRawEmail: {};
306
+ TransformedEmailMessage: {
307
+ isTypeOnly: true;
308
+ };
309
+ }>>;
310
+ errorHandlerServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
311
+ BadRequestError: {};
312
+ ForbiddenError: {};
313
+ handleZodRequestValidationError: {};
314
+ HttpError: {};
315
+ InternalServerError: {};
316
+ logError: {};
317
+ NotFoundError: {};
318
+ TooManyRequestsError: {};
319
+ UnauthorizedError: {};
320
+ }>>;
321
+ prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
322
+ prisma: {};
323
+ }>>;
324
+ rateLimitImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
325
+ createRateLimiter: {};
326
+ memoizeRateLimiter: {};
327
+ RateLimiter: {
328
+ isTypeOnly: true;
329
+ };
330
+ RateLimiterConfig: {
331
+ isTypeOnly: true;
332
+ };
333
+ RateLimitResult: {
334
+ isTypeOnly: true;
335
+ };
336
+ }>>;
337
+ requestServiceContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
338
+ createContextFromRequest: {};
339
+ RequestServiceContext: {
340
+ isTypeOnly: true;
341
+ };
342
+ }>>;
343
+ }, {
344
+ constantsPassword: {};
345
+ servicesAuthVerification: {};
346
+ }>;
138
347
  };
139
348
  };
140
349
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-email-password/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,6CAA6C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKzD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-email-password/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,6CAA6C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKzD,CAAC"}
@@ -1,6 +1,11 @@
1
1
  export interface LocalAuthCoreAuthEmailPasswordPaths {
2
2
  constantsPassword: string;
3
+ schemaEmailVerificationMutations: string;
4
+ schemaPasswordResetMutations: string;
3
5
  schemaUserPasswordMutations: string;
6
+ servicesAuthVerification: string;
7
+ servicesEmailVerification: string;
8
+ servicesPasswordReset: string;
4
9
  servicesUserPassword: string;
5
10
  }
6
11
  export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_PATHS: {
@@ -1 +1 @@
1
- {"version":3,"file":"template-paths.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-email-password/generated/template-paths.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,mCAAmC;IAClD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,2BAA2B,EAAE,MAAM,CAAC;IACpC,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AA4BD,eAAO,MAAM,yCAAyC;;;;;;;CAGrD,CAAC"}
1
+ {"version":3,"file":"template-paths.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-email-password/generated/template-paths.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,mCAAmC;IAClD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gCAAgC,EAAE,MAAM,CAAC;IACzC,4BAA4B,EAAE,MAAM,CAAC;IACrC,2BAA2B,EAAE,MAAM,CAAC;IACpC,wBAAwB,EAAE,MAAM,CAAC;IACjC,yBAAyB,EAAE,MAAM,CAAC;IAClC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAiCD,eAAO,MAAM,yCAAyC;;;;;;;CAGrD,CAAC"}