@baseplate-dev/plugin-auth 4.0.1 → 4.0.3

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 (285) hide show
  1. package/CHANGELOG.md +645 -0
  2. package/dist/auth0/core/schema/plugin-definition.js +1 -1
  3. package/dist/auth0/core/schema/plugin-definition.js.map +1 -1
  4. package/dist/auth0/generators/fastify/auth0-module/templates/module/schema/user-session.queries.ts +1 -1
  5. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js +1 -1
  6. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js.map +1 -1
  7. package/dist/local-auth/constants/model-names.d.ts +4 -0
  8. package/dist/local-auth/constants/model-names.d.ts.map +1 -1
  9. package/dist/local-auth/constants/model-names.js +4 -0
  10. package/dist/local-auth/constants/model-names.js.map +1 -1
  11. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +53 -0
  12. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts.map +1 -1
  13. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js +28 -7
  14. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js.map +1 -1
  15. package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +219 -0
  16. package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts.map +1 -1
  17. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts +4 -0
  18. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts.map +1 -1
  19. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.js +4 -0
  20. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.js.map +1 -1
  21. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts +47 -1
  22. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts.map +1 -1
  23. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js +38 -2
  24. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js.map +1 -1
  25. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts +18 -0
  26. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts.map +1 -1
  27. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js +12 -0
  28. package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js.map +1 -1
  29. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +271 -0
  30. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts.map +1 -1
  31. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js +85 -4
  32. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js.map +1 -1
  33. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts +15 -0
  34. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts.map +1 -1
  35. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.js +15 -0
  36. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.js.map +1 -1
  37. package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.ts +18 -0
  38. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.d.ts +2 -0
  39. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.d.ts.map +1 -0
  40. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.js +24 -0
  41. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.js.map +1 -0
  42. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.ts +35 -0
  43. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.d.ts +2 -0
  44. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.d.ts.map +1 -0
  45. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.js +38 -0
  46. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.js.map +1 -0
  47. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.ts +54 -0
  48. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.d.ts +24 -0
  49. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.d.ts.map +1 -0
  50. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js +87 -0
  51. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js.map +1 -0
  52. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.ts +140 -0
  53. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts +35 -0
  54. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts.map +1 -0
  55. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +156 -0
  56. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js.map +1 -0
  57. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +229 -0
  58. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts.map +1 -1
  59. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js +48 -14
  60. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js.map +1 -1
  61. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts +79 -15
  62. package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts +43 -0
  63. package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts.map +1 -0
  64. package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.js +48 -0
  65. package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.js.map +1 -0
  66. package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts +96 -0
  67. package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts.map +1 -0
  68. package/dist/local-auth/core/generators/auth-email-templates/generated/index.js +11 -0
  69. package/dist/local-auth/core/generators/auth-email-templates/generated/index.js.map +1 -0
  70. package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.d.ts +14 -0
  71. package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.d.ts.map +1 -0
  72. package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.js +26 -0
  73. package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.js.map +1 -0
  74. package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts +41 -0
  75. package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts.map +1 -0
  76. package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.js +59 -0
  77. package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.js.map +1 -0
  78. package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts +60 -0
  79. package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts.map +1 -0
  80. package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.js +42 -0
  81. package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.js.map +1 -0
  82. package/dist/local-auth/core/generators/auth-email-templates/index.d.ts +2 -0
  83. package/dist/local-auth/core/generators/auth-email-templates/index.d.ts.map +1 -0
  84. package/dist/local-auth/core/generators/auth-email-templates/index.js +2 -0
  85. package/dist/local-auth/core/generators/auth-email-templates/index.js.map +1 -0
  86. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.d.ts +3 -0
  87. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.d.ts.map +1 -0
  88. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.js +14 -0
  89. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.js.map +1 -0
  90. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.tsx +55 -0
  91. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.d.ts +3 -0
  92. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.d.ts.map +1 -0
  93. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.js +12 -0
  94. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.js.map +1 -0
  95. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.tsx +44 -0
  96. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.d.ts +3 -0
  97. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.d.ts.map +1 -0
  98. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.js +14 -0
  99. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.js.map +1 -0
  100. package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.tsx +55 -0
  101. package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +11 -0
  102. package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts.map +1 -1
  103. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +12 -2
  104. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js.map +1 -1
  105. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +26 -0
  106. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts.map +1 -1
  107. package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts +2 -0
  108. package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts.map +1 -1
  109. package/dist/local-auth/core/generators/auth-module/generated/template-paths.js +2 -0
  110. package/dist/local-auth/core/generators/auth-module/generated/template-paths.js.map +1 -1
  111. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts +10 -0
  112. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts.map +1 -1
  113. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js +25 -1
  114. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js.map +1 -1
  115. package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts +9 -0
  116. package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts.map +1 -1
  117. package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js +6 -0
  118. package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js.map +1 -1
  119. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +19 -0
  120. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts.map +1 -1
  121. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js +30 -0
  122. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js.map +1 -1
  123. package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.d.ts +6 -0
  124. package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.d.ts.map +1 -0
  125. package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.js +17 -0
  126. package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.js.map +1 -0
  127. package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.ts +21 -0
  128. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js +1 -1
  129. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js.map +1 -1
  130. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.ts +1 -1
  131. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js +2 -2
  132. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js.map +1 -1
  133. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.ts +2 -2
  134. package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.d.ts +40 -0
  135. package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.d.ts.map +1 -0
  136. package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.js +106 -0
  137. package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.js.map +1 -0
  138. package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.ts +146 -0
  139. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +1 -1
  140. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js +1 -0
  141. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js.map +1 -1
  142. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +722 -4
  143. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts.map +1 -1
  144. package/dist/local-auth/core/generators/auth-routes/generated/index.js +2 -0
  145. package/dist/local-auth/core/generators/auth-routes/generated/index.js.map +1 -1
  146. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts +4 -0
  147. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts.map +1 -1
  148. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js +4 -0
  149. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js.map +1 -1
  150. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +4 -1
  151. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +1 -1
  152. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js +14 -0
  153. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js.map +1 -1
  154. package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.d.ts +21 -0
  155. package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.d.ts.map +1 -0
  156. package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.js +30 -0
  157. package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.js.map +1 -0
  158. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +1216 -34
  159. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts.map +1 -1
  160. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js +70 -2
  161. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js.map +1 -1
  162. package/dist/local-auth/core/generators/auth-routes/index.d.ts +2 -0
  163. package/dist/local-auth/core/generators/auth-routes/index.d.ts.map +1 -1
  164. package/dist/local-auth/core/generators/auth-routes/index.js +1 -0
  165. package/dist/local-auth/core/generators/auth-routes/index.js.map +1 -1
  166. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.d.ts +10 -0
  167. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.d.ts.map +1 -0
  168. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.js +11 -0
  169. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.js.map +1 -0
  170. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.ts +12 -0
  171. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.d.ts +2 -0
  172. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.d.ts.map +1 -0
  173. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.js +60 -0
  174. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.js.map +1 -0
  175. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.tsx +127 -0
  176. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts +1 -1
  177. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts.map +1 -1
  178. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +6 -11
  179. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js.map +1 -1
  180. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +20 -19
  181. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts +1 -1
  182. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts.map +1 -1
  183. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +2 -2
  184. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +1 -1
  185. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +2 -3
  186. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.d.ts +7 -0
  187. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.d.ts.map +1 -0
  188. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js +131 -0
  189. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js.map +1 -0
  190. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.tsx +240 -0
  191. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.d.ts +7 -0
  192. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.d.ts.map +1 -0
  193. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.js +106 -0
  194. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.js.map +1 -0
  195. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.tsx +206 -0
  196. package/dist/local-auth/core/generators/index.d.ts +1 -0
  197. package/dist/local-auth/core/generators/index.d.ts.map +1 -1
  198. package/dist/local-auth/core/generators/index.js +1 -0
  199. package/dist/local-auth/core/generators/index.js.map +1 -1
  200. package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts +12 -0
  201. package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts.map +1 -1
  202. package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts +6 -0
  203. package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts.map +1 -1
  204. package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts +6 -0
  205. package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts.map +1 -1
  206. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts +6 -0
  207. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts.map +1 -1
  208. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js +1 -1
  209. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js.map +1 -1
  210. package/dist/local-auth/core/node.d.ts.map +1 -1
  211. package/dist/local-auth/core/node.js +11 -1
  212. package/dist/local-auth/core/node.js.map +1 -1
  213. package/dist/local-auth/core/schema/models.d.ts.map +1 -1
  214. package/dist/local-auth/core/schema/models.js +60 -0
  215. package/dist/local-auth/core/schema/models.js.map +1 -1
  216. package/dist/placeholder-auth/core/schema/plugin-definition.js +1 -1
  217. package/dist/placeholder-auth/core/schema/plugin-definition.js.map +1 -1
  218. package/dist/web/assets/{__federation_expose_auth0CoreCommon-DLSGXjCI.js → __federation_expose_auth0CoreCommon-e_GtBIIm.js} +3 -3
  219. package/dist/web/assets/{__federation_expose_auth0CoreCommon-DLSGXjCI.js.map → __federation_expose_auth0CoreCommon-e_GtBIIm.js.map} +1 -1
  220. package/dist/web/assets/{__federation_expose_auth0CoreWeb-C7FfhlmF.js → __federation_expose_auth0CoreWeb-CTfPylMw.js} +5 -5
  221. package/dist/web/assets/{__federation_expose_auth0CoreWeb-C7FfhlmF.js.map → __federation_expose_auth0CoreWeb-CTfPylMw.js.map} +1 -1
  222. package/dist/web/assets/{__federation_expose_authCoreCommon-BF58isGa.js → __federation_expose_authCoreCommon-Bg2mzE9K.js} +3 -3
  223. package/dist/web/assets/{__federation_expose_authCoreCommon-BF58isGa.js.map → __federation_expose_authCoreCommon-Bg2mzE9K.js.map} +1 -1
  224. package/dist/web/assets/{__federation_expose_authCoreWeb-DMq9M88g.js → __federation_expose_authCoreWeb-DrOVHmj4.js} +6 -6
  225. package/dist/web/assets/{__federation_expose_authCoreWeb-DMq9M88g.js.map → __federation_expose_authCoreWeb-DrOVHmj4.js.map} +1 -1
  226. package/dist/web/assets/{__federation_expose_local-authAdminCommon-sQw4q5YX.js → __federation_expose_local-authAdminCommon-Bzb0P17-.js} +2 -2
  227. package/dist/web/assets/{__federation_expose_local-authAdminCommon-sQw4q5YX.js.map → __federation_expose_local-authAdminCommon-Bzb0P17-.js.map} +1 -1
  228. package/dist/web/assets/{__federation_expose_local-authAdminWeb-9FbO89NR.js → __federation_expose_local-authAdminWeb-D_LWcl7j.js} +3 -3
  229. package/dist/web/assets/{__federation_expose_local-authAdminWeb-9FbO89NR.js.map → __federation_expose_local-authAdminWeb-D_LWcl7j.js.map} +1 -1
  230. package/dist/web/assets/{__federation_expose_local-authCoreCommon-CpUK09_4.js → __federation_expose_local-authCoreCommon-D6OG-Rz6.js} +4 -4
  231. package/dist/web/assets/{__federation_expose_local-authCoreCommon-CpUK09_4.js.map → __federation_expose_local-authCoreCommon-D6OG-Rz6.js.map} +1 -1
  232. package/dist/web/assets/{__federation_expose_local-authCoreWeb-Czp0GaY1.js → __federation_expose_local-authCoreWeb-CaR8fx1f.js} +66 -6
  233. package/dist/web/assets/__federation_expose_local-authCoreWeb-CaR8fx1f.js.map +1 -0
  234. package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-CFDDdOMo.js → __federation_expose_placeholder-authCoreCommon-D7b3GEPP.js} +3 -3
  235. package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-CFDDdOMo.js.map → __federation_expose_placeholder-authCoreCommon-D7b3GEPP.js.map} +1 -1
  236. package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-Bcn1_oDP.js → __federation_expose_placeholder-authCoreWeb-VZzvid5j.js} +5 -5
  237. package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-Bcn1_oDP.js.map → __federation_expose_placeholder-authCoreWeb-VZzvid5j.js.map} +1 -1
  238. package/dist/web/assets/{__federation_fn_import-DsXcpNlB.js → __federation_fn_import-DfNliZHH.js} +2 -2
  239. package/dist/web/assets/{__federation_fn_import-DsXcpNlB.js.map → __federation_fn_import-DfNliZHH.js.map} +1 -1
  240. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-zqe3PPcn.js → web-BqJ1vSYx.js} +8 -8
  241. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-BqJ1vSYx.js.map +1 -0
  242. package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-CmgMfkI5.js → project-builder-lib-qf98MMJC.js} +7137 -136
  243. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-qf98MMJC.js.map +1 -0
  244. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-DFkMnXmX.js +52536 -0
  245. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-DFkMnXmX.js.map +1 -0
  246. package/dist/web/assets/__federation_shared_@baseplate-dev/{utils-BO5VHrCf.js → utils-CApJheqk.js} +5 -6
  247. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-CApJheqk.js.map +1 -0
  248. package/dist/web/assets/__federation_shared_@tanstack/{react-router-CNzDweD5.js → react-router-YQslfDyE.js} +1069 -746
  249. package/dist/web/assets/__federation_shared_@tanstack/react-router-YQslfDyE.js.map +1 -0
  250. package/dist/web/assets/{get-auth-plugin-definition-BV2O8wTa.js → get-auth-plugin-definition-CVuj_mvy.js} +2 -2
  251. package/dist/web/assets/{get-auth-plugin-definition-BV2O8wTa.js.map → get-auth-plugin-definition-CVuj_mvy.js.map} +1 -1
  252. package/dist/web/assets/{index-BL7fotl7.js → index-B00D4irM.js} +2 -2
  253. package/dist/web/assets/{index-BL7fotl7.js.map → index-B00D4irM.js.map} +1 -1
  254. package/dist/web/assets/{index.esm-B4RpOlq_.js → index.esm-1qBxxnfu.js} +2 -2
  255. package/dist/web/assets/{index.esm-B4RpOlq_.js.map → index.esm-1qBxxnfu.js.map} +1 -1
  256. package/dist/web/assets/{model-merger-BwRNqcBu.js → model-merger-59HLmy_J.js} +80 -23
  257. package/dist/web/assets/model-merger-59HLmy_J.js.map +1 -0
  258. package/dist/web/assets/{model-names-CEoSIalq.js → model-names-DrcaRxt1.js} +6 -2
  259. package/dist/web/assets/{model-names-CEoSIalq.js.map → model-names-DrcaRxt1.js.map} +1 -1
  260. package/dist/web/assets/{plugin-definition-BMTsmwyH.js → plugin-definition-BKCeZ0Ni.js} +2 -2
  261. package/dist/web/assets/{plugin-definition-BMTsmwyH.js.map → plugin-definition-BKCeZ0Ni.js.map} +1 -1
  262. package/dist/web/assets/{plugin-definition-DA9rJBcS.js → plugin-definition-B_hlyPlm.js} +3 -3
  263. package/dist/web/assets/plugin-definition-B_hlyPlm.js.map +1 -0
  264. package/dist/web/assets/{plugin-definition-CHD5r-h7.js → plugin-definition-Bkx-a_wA.js} +3 -3
  265. package/dist/web/assets/plugin-definition-Bkx-a_wA.js.map +1 -0
  266. package/dist/web/assets/{plugin-definition-B9d2CoQL.js → plugin-definition-CcdhC0td.js} +2 -2
  267. package/dist/web/assets/{plugin-definition-B9d2CoQL.js.map → plugin-definition-CcdhC0td.js.map} +1 -1
  268. package/dist/web/assets/{react-B9vhIZMy.js → react-Df9ccuow.js} +2 -2
  269. package/dist/web/assets/{react-B9vhIZMy.js.map → react-Df9ccuow.js.map} +1 -1
  270. package/dist/web/assets/remoteEntry.js +20 -20
  271. package/dist/web/assets/{style-DZ-aOCkd.css → style-DiK_rD1L.css} +1 -1
  272. package/dist/web/assets/{styles-CEm5K1iU.js → styles-CbPVroCT.js} +3 -3
  273. package/dist/web/assets/{styles-CEm5K1iU.js.map → styles-CbPVroCT.js.map} +1 -1
  274. package/dist/web/index.html +1 -1
  275. package/package.json +22 -19
  276. package/dist/web/assets/__federation_expose_local-authCoreWeb-Czp0GaY1.js.map +0 -1
  277. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-zqe3PPcn.js.map +0 -1
  278. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CmgMfkI5.js.map +0 -1
  279. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-D1Dayhn9.js +0 -24082
  280. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-D1Dayhn9.js.map +0 -1
  281. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-BO5VHrCf.js.map +0 -1
  282. package/dist/web/assets/__federation_shared_@tanstack/react-router-CNzDweD5.js.map +0 -1
  283. package/dist/web/assets/model-merger-BwRNqcBu.js.map +0 -1
  284. package/dist/web/assets/plugin-definition-CHD5r-h7.js.map +0 -1
  285. package/dist/web/assets/plugin-definition-DA9rJBcS.js.map +0 -1
@@ -0,0 +1,59 @@
1
+ import { typescriptFileProvider } from '@baseplate-dev/core-generators';
2
+ import { transactionalLibImportsProvider } from '@baseplate-dev/plugin-email';
3
+ import { createGeneratorTask, createProviderType } from '@baseplate-dev/sync';
4
+ import { LOCAL_AUTH_AUTH_EMAIL_TEMPLATES_PATHS } from './template-paths.js';
5
+ import { LOCAL_AUTH_AUTH_EMAIL_TEMPLATES_TEMPLATES } from './typed-templates.js';
6
+ const localAuthAuthEmailTemplatesRenderers = createProviderType('local-auth-auth-email-templates-renderers');
7
+ const localAuthAuthEmailTemplatesRenderersTask = createGeneratorTask({
8
+ dependencies: {
9
+ paths: LOCAL_AUTH_AUTH_EMAIL_TEMPLATES_PATHS.provider,
10
+ transactionalLibImports: transactionalLibImportsProvider,
11
+ typescriptFile: typescriptFileProvider,
12
+ },
13
+ exports: {
14
+ localAuthAuthEmailTemplatesRenderers: localAuthAuthEmailTemplatesRenderers.export(),
15
+ },
16
+ run({ paths, transactionalLibImports, typescriptFile }) {
17
+ return {
18
+ providers: {
19
+ localAuthAuthEmailTemplatesRenderers: {
20
+ accountVerificationEmail: {
21
+ render: (options) => typescriptFile.renderTemplateFile({
22
+ template: LOCAL_AUTH_AUTH_EMAIL_TEMPLATES_TEMPLATES.accountVerificationEmail,
23
+ destination: paths.accountVerificationEmail,
24
+ importMapProviders: {
25
+ transactionalLibImports,
26
+ },
27
+ ...options,
28
+ }),
29
+ },
30
+ passwordChangedEmail: {
31
+ render: (options) => typescriptFile.renderTemplateFile({
32
+ template: LOCAL_AUTH_AUTH_EMAIL_TEMPLATES_TEMPLATES.passwordChangedEmail,
33
+ destination: paths.passwordChangedEmail,
34
+ importMapProviders: {
35
+ transactionalLibImports,
36
+ },
37
+ ...options,
38
+ }),
39
+ },
40
+ passwordResetEmail: {
41
+ render: (options) => typescriptFile.renderTemplateFile({
42
+ template: LOCAL_AUTH_AUTH_EMAIL_TEMPLATES_TEMPLATES.passwordResetEmail,
43
+ destination: paths.passwordResetEmail,
44
+ importMapProviders: {
45
+ transactionalLibImports,
46
+ },
47
+ ...options,
48
+ }),
49
+ },
50
+ },
51
+ },
52
+ };
53
+ },
54
+ });
55
+ export const LOCAL_AUTH_AUTH_EMAIL_TEMPLATES_RENDERERS = {
56
+ provider: localAuthAuthEmailTemplatesRenderers,
57
+ task: localAuthAuthEmailTemplatesRenderersTask,
58
+ };
59
+ //# sourceMappingURL=template-renderers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template-renderers.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-email-templates/generated/template-renderers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,+BAA+B,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9E,OAAO,EAAE,qCAAqC,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EAAE,yCAAyC,EAAE,MAAM,sBAAsB,CAAC;AAmCjF,MAAM,oCAAoC,GACxC,kBAAkB,CAChB,2CAA2C,CAC5C,CAAC;AAEJ,MAAM,wCAAwC,GAAG,mBAAmB,CAAC;IACnE,YAAY,EAAE;QACZ,KAAK,EAAE,qCAAqC,CAAC,QAAQ;QACrD,uBAAuB,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EMPLATES: {
2
+ accountVerificationEmail: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
3
+ transactionalLibImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
4
+ Button: {};
5
+ defineEmail: {};
6
+ DefineEmailOptions: {
7
+ isTypeOnly: true;
8
+ };
9
+ Divider: {};
10
+ EmailComponent: {
11
+ isTypeOnly: true;
12
+ };
13
+ EmailLayout: {};
14
+ Heading: {};
15
+ renderEmail: {};
16
+ Section: {};
17
+ Text: {};
18
+ theme: {};
19
+ }>>;
20
+ }, Record<never, Record<never, never>>>;
21
+ passwordChangedEmail: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
22
+ transactionalLibImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
23
+ Button: {};
24
+ defineEmail: {};
25
+ DefineEmailOptions: {
26
+ isTypeOnly: true;
27
+ };
28
+ Divider: {};
29
+ EmailComponent: {
30
+ isTypeOnly: true;
31
+ };
32
+ EmailLayout: {};
33
+ Heading: {};
34
+ renderEmail: {};
35
+ Section: {};
36
+ Text: {};
37
+ theme: {};
38
+ }>>;
39
+ }, Record<never, Record<never, never>>>;
40
+ passwordResetEmail: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
41
+ transactionalLibImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
42
+ Button: {};
43
+ defineEmail: {};
44
+ DefineEmailOptions: {
45
+ isTypeOnly: true;
46
+ };
47
+ Divider: {};
48
+ EmailComponent: {
49
+ isTypeOnly: true;
50
+ };
51
+ EmailLayout: {};
52
+ Heading: {};
53
+ renderEmail: {};
54
+ Section: {};
55
+ Text: {};
56
+ theme: {};
57
+ }>>;
58
+ }, Record<never, Record<never, never>>>;
59
+ };
60
+ //# sourceMappingURL=typed-templates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-email-templates/generated/typed-templates.ts"],"names":[],"mappings":"AAiDA,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIrD,CAAC"}
@@ -0,0 +1,42 @@
1
+ import { createTsTemplateFile } from '@baseplate-dev/core-generators';
2
+ import { transactionalLibImportsProvider } from '@baseplate-dev/plugin-email';
3
+ import path from 'node:path';
4
+ const accountVerificationEmail = createTsTemplateFile({
5
+ fileOptions: { kind: 'singleton' },
6
+ importMapProviders: {
7
+ transactionalLibImports: transactionalLibImportsProvider,
8
+ },
9
+ name: 'account-verification-email',
10
+ source: {
11
+ path: path.join(import.meta.dirname, '../templates/src/emails/auth/account-verification.email.tsx'),
12
+ },
13
+ variables: {},
14
+ });
15
+ const passwordChangedEmail = createTsTemplateFile({
16
+ fileOptions: { kind: 'singleton' },
17
+ importMapProviders: {
18
+ transactionalLibImports: transactionalLibImportsProvider,
19
+ },
20
+ name: 'password-changed-email',
21
+ source: {
22
+ path: path.join(import.meta.dirname, '../templates/src/emails/auth/password-changed.email.tsx'),
23
+ },
24
+ variables: {},
25
+ });
26
+ const passwordResetEmail = createTsTemplateFile({
27
+ fileOptions: { kind: 'singleton' },
28
+ importMapProviders: {
29
+ transactionalLibImports: transactionalLibImportsProvider,
30
+ },
31
+ name: 'password-reset-email',
32
+ source: {
33
+ path: path.join(import.meta.dirname, '../templates/src/emails/auth/password-reset.email.tsx'),
34
+ },
35
+ variables: {},
36
+ });
37
+ export const LOCAL_AUTH_AUTH_EMAIL_TEMPLATES_TEMPLATES = {
38
+ accountVerificationEmail,
39
+ passwordChangedEmail,
40
+ passwordResetEmail,
41
+ };
42
+ //# sourceMappingURL=typed-templates.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typed-templates.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-email-templates/generated/typed-templates.ts"],"names":[],"mappings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@@
1
+ export * from './auth-email-templates.generator.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-email-templates/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './auth-email-templates.generator.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-email-templates/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: any;
2
+ export default _default;
3
+ //# sourceMappingURL=account-verification.email.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-verification.email.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.tsx"],"names":[],"mappings":";AAkBA,wBAKG"}
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ // @ts-nocheck
3
+ import { Button, defineEmail, Divider, EmailLayout, Heading, Section, Text, theme, } from '%transactionalLibImports';
4
+ import * as React from 'react';
5
+ export default defineEmail(AccountVerificationEmail, {
6
+ subject: `Verify your ${theme.branding.name} email address`,
7
+ previewProps: {
8
+ verifyLink: 'https://example.com',
9
+ },
10
+ });
11
+ function AccountVerificationEmail({ verifyLink, }) {
12
+ return (_jsxs(EmailLayout, { previewText: `Verify your ${theme.branding.name} email address`, children: [_jsx(Heading, { as: "h2", children: "Verify your email" }), _jsxs(Text, { children: ["Thanks for signing up for ", theme.branding.name, "! Please verify your email address to get started."] }), _jsxs(_Fragment, { children: [_jsx(Text, { children: "Click the button below to confirm your email. This link will expire in 24 hours." }), _jsx(Section, { align: "center", children: _jsx(Button, { href: verifyLink, children: "Verify Email" }) })] }), _jsx(Divider, { spacing: "lg" }), _jsxs(Text, { variant: "muted", children: ["If you didn't create an account with ", theme.branding.name, ", you can safely ignore this email."] })] }));
13
+ }
14
+ //# sourceMappingURL=account-verification.email.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-verification.email.js","sourceRoot":"","sources":["../../../../../../../../../src/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.tsx"],"names":[],"mappings":";AAAA,cAAc;AAEd,OAAO,EACL,MAAM,EACN,WAAW,EACX,OAAO,EACP,WAAW,EACX,OAAO,EACP,OAAO,EACP,IAAI,EACJ,KAAK,GACN,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,eAAe,WAAW,CAAC,wBAAwB,EAAE;IACnD,OAAO,EAAE,eAAe,KAAK,CAAC,QAAQ,CAAC,IAAI,gBAAgB;IAC3D,YAAY,EAAE;QACZ,UAAU,EAAE,qBAAqB;KAClC;CACF,CAAC,CAAC;AAEH,SAAS,wBAAwB,CAAC,EAChC,UAAU,GACe;IACzB,OAAO,CACL,MAAC,WAAW,IACV,WAAW,EAAE,eAAe,KAAK,CAAC,QAAQ,CAAC,IAAI,gBAAgB,aAE/D,KAAC,OAAO,IAAC,EAAE,EAAC,IAAI,kCAA4B,EAC5C,MAAC,IAAI,6CACwB,KAAK,CAAC,QAAQ,CAAC,IAAI,0DAEzC,EACP,8BACE,KAAC,IAAI,mGAGE,EAEP,KAAC,OAAO,IAAC,KAAK,EAAC,QAAQ,YACrB,KAAC,MAAM,IAAC,IAAI,EAAE,UAAU,6BAAuB,GACvC,IACT,EACH,KAAC,OAAO,IAAC,OAAO,EAAC,IAAI,GAAG,EACxB,MAAC,IAAI,IAAC,OAAO,EAAC,OAAO,sDACmB,KAAK,CAAC,QAAQ,CAAC,IAAI,2CAEpD,IACK,CACf,CAAC;AACJ,CAAC"}
@@ -0,0 +1,55 @@
1
+ // @ts-nocheck
2
+
3
+ import {
4
+ Button,
5
+ defineEmail,
6
+ Divider,
7
+ EmailLayout,
8
+ Heading,
9
+ Section,
10
+ Text,
11
+ theme,
12
+ } from '%transactionalLibImports';
13
+ import * as React from 'react';
14
+
15
+ interface AccountVerificationProps {
16
+ verifyLink: string;
17
+ }
18
+
19
+ export default defineEmail(AccountVerificationEmail, {
20
+ subject: `Verify your ${theme.branding.name} email address`,
21
+ previewProps: {
22
+ verifyLink: 'https://example.com',
23
+ },
24
+ });
25
+
26
+ function AccountVerificationEmail({
27
+ verifyLink,
28
+ }: AccountVerificationProps): React.ReactElement {
29
+ return (
30
+ <EmailLayout
31
+ previewText={`Verify your ${theme.branding.name} email address`}
32
+ >
33
+ <Heading as="h2">Verify your email</Heading>
34
+ <Text>
35
+ Thanks for signing up for {theme.branding.name}! Please verify your
36
+ email address to get started.
37
+ </Text>
38
+ <>
39
+ <Text>
40
+ Click the button below to confirm your email. This link will expire in
41
+ 24 hours.
42
+ </Text>
43
+
44
+ <Section align="center">
45
+ <Button href={verifyLink}>Verify Email</Button>
46
+ </Section>
47
+ </>
48
+ <Divider spacing="lg" />
49
+ <Text variant="muted">
50
+ If you didn't create an account with {theme.branding.name}, you can
51
+ safely ignore this email.
52
+ </Text>
53
+ </EmailLayout>
54
+ );
55
+ }
@@ -0,0 +1,3 @@
1
+ declare const _default: any;
2
+ export default _default;
3
+ //# sourceMappingURL=password-changed.email.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password-changed.email.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.tsx"],"names":[],"mappings":";AAYA,wBAGG"}
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // @ts-nocheck
3
+ import { defineEmail, Divider, EmailLayout, Heading, Text, theme, } from '%transactionalLibImports';
4
+ import * as React from 'react';
5
+ export default defineEmail(PasswordChangedEmail, {
6
+ subject: `Your ${theme.branding.name} password has been changed`,
7
+ previewProps: {},
8
+ });
9
+ function PasswordChangedEmail() {
10
+ return (_jsxs(EmailLayout, { previewText: `Your ${theme.branding.name} password has been changed`, children: [_jsx(Heading, { as: "h2", children: "Password changed" }), _jsxs(Text, { children: ["Your ", theme.branding.name, " account password has been successfully changed."] }), _jsx(Text, { children: "If you made this change, no further action is needed. If you did not change your password, please contact support immediately and secure your account." }), _jsx(Divider, { spacing: "lg" }), _jsx(Text, { variant: "muted", children: "This is an automated security notification. You received this email because a password change was made on your account." })] }));
11
+ }
12
+ //# sourceMappingURL=password-changed.email.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password-changed.email.js","sourceRoot":"","sources":["../../../../../../../../../src/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.tsx"],"names":[],"mappings":";AAAA,cAAc;AAEd,OAAO,EACL,WAAW,EACX,OAAO,EACP,WAAW,EACX,OAAO,EACP,IAAI,EACJ,KAAK,GACN,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,eAAe,WAAW,CAAC,oBAAoB,EAAE;IAC/C,OAAO,EAAE,QAAQ,KAAK,CAAC,QAAQ,CAAC,IAAI,4BAA4B;IAChE,YAAY,EAAE,EAAE;CACjB,CAAC,CAAC;AAEH,SAAS,oBAAoB;IAC3B,OAAO,CACL,MAAC,WAAW,IACV,WAAW,EAAE,QAAQ,KAAK,CAAC,QAAQ,CAAC,IAAI,4BAA4B,aAEpE,KAAC,OAAO,IAAC,EAAE,EAAC,IAAI,iCAA2B,EAE3C,MAAC,IAAI,wBACG,KAAK,CAAC,QAAQ,CAAC,IAAI,wDAEpB,EAEP,KAAC,IAAI,yKAIE,EAEP,KAAC,OAAO,IAAC,OAAO,EAAC,IAAI,GAAG,EAExB,KAAC,IAAI,IAAC,OAAO,EAAC,OAAO,wIAGd,IACK,CACf,CAAC;AACJ,CAAC"}
@@ -0,0 +1,44 @@
1
+ // @ts-nocheck
2
+
3
+ import {
4
+ defineEmail,
5
+ Divider,
6
+ EmailLayout,
7
+ Heading,
8
+ Text,
9
+ theme,
10
+ } from '%transactionalLibImports';
11
+ import * as React from 'react';
12
+
13
+ export default defineEmail(PasswordChangedEmail, {
14
+ subject: `Your ${theme.branding.name} password has been changed`,
15
+ previewProps: {},
16
+ });
17
+
18
+ function PasswordChangedEmail(): React.ReactElement {
19
+ return (
20
+ <EmailLayout
21
+ previewText={`Your ${theme.branding.name} password has been changed`}
22
+ >
23
+ <Heading as="h2">Password changed</Heading>
24
+
25
+ <Text>
26
+ Your {theme.branding.name} account password has been successfully
27
+ changed.
28
+ </Text>
29
+
30
+ <Text>
31
+ If you made this change, no further action is needed. If you did not
32
+ change your password, please contact support immediately and secure your
33
+ account.
34
+ </Text>
35
+
36
+ <Divider spacing="lg" />
37
+
38
+ <Text variant="muted">
39
+ This is an automated security notification. You received this email
40
+ because a password change was made on your account.
41
+ </Text>
42
+ </EmailLayout>
43
+ );
44
+ }
@@ -0,0 +1,3 @@
1
+ declare const _default: any;
2
+ export default _default;
3
+ //# sourceMappingURL=password-reset.email.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password-reset.email.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.tsx"],"names":[],"mappings":";AAkBA,wBAKG"}
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // @ts-nocheck
3
+ import { Button, defineEmail, Divider, EmailLayout, Heading, Section, Text, theme, } from '%transactionalLibImports';
4
+ import * as React from 'react';
5
+ export default defineEmail(PasswordResetEmail, {
6
+ subject: `Reset your ${theme.branding.name} password`,
7
+ previewProps: {
8
+ resetLink: 'https://example.com',
9
+ },
10
+ });
11
+ function PasswordResetEmail({ resetLink, }) {
12
+ return (_jsxs(EmailLayout, { previewText: `Reset your ${theme.branding.name} password`, children: [_jsx(Heading, { as: "h2", children: "Reset your password" }), _jsxs(Text, { children: ["We received a request to reset the password for your", ' ', theme.branding.name, " account."] }), _jsx(Text, { children: "To choose a new password, click the button below. This link will expire in 1 hour for your security." }), _jsx(Section, { align: "center", children: _jsx(Button, { href: resetLink, children: "Reset Password" }) }), _jsx(Divider, { spacing: "lg" }), _jsx(Text, { variant: "muted", children: "If you didn't request this email, you can safely ignore it. Your account will remain secure." })] }));
13
+ }
14
+ //# sourceMappingURL=password-reset.email.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password-reset.email.js","sourceRoot":"","sources":["../../../../../../../../../src/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.tsx"],"names":[],"mappings":";AAAA,cAAc;AAEd,OAAO,EACL,MAAM,EACN,WAAW,EACX,OAAO,EACP,WAAW,EACX,OAAO,EACP,OAAO,EACP,IAAI,EACJ,KAAK,GACN,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,eAAe,WAAW,CAAC,kBAAkB,EAAE;IAC7C,OAAO,EAAE,cAAc,KAAK,CAAC,QAAQ,CAAC,IAAI,WAAW;IACrD,YAAY,EAAE;QACZ,SAAS,EAAE,qBAAqB;KACjC;CACF,CAAC,CAAC;AAEH,SAAS,kBAAkB,CAAC,EAC1B,SAAS,GACU;IACnB,OAAO,CACL,MAAC,WAAW,IAAC,WAAW,EAAE,cAAc,KAAK,CAAC,QAAQ,CAAC,IAAI,WAAW,aACpE,KAAC,OAAO,IAAC,EAAE,EAAC,IAAI,oCAA8B,EAE9C,MAAC,IAAI,uEACkD,GAAG,EACvD,KAAK,CAAC,QAAQ,CAAC,IAAI,iBACf,EAEP,KAAC,IAAI,uHAGE,EAEP,KAAC,OAAO,IAAC,KAAK,EAAC,QAAQ,YACrB,KAAC,MAAM,IAAC,IAAI,EAAE,SAAS,+BAAyB,GACxC,EAEV,KAAC,OAAO,IAAC,OAAO,EAAC,IAAI,GAAG,EAExB,KAAC,IAAI,IAAC,OAAO,EAAC,OAAO,6GAGd,IACK,CACf,CAAC;AACJ,CAAC"}
@@ -0,0 +1,55 @@
1
+ // @ts-nocheck
2
+
3
+ import {
4
+ Button,
5
+ defineEmail,
6
+ Divider,
7
+ EmailLayout,
8
+ Heading,
9
+ Section,
10
+ Text,
11
+ theme,
12
+ } from '%transactionalLibImports';
13
+ import * as React from 'react';
14
+
15
+ interface PasswordResetProps {
16
+ resetLink: string;
17
+ }
18
+
19
+ export default defineEmail(PasswordResetEmail, {
20
+ subject: `Reset your ${theme.branding.name} password`,
21
+ previewProps: {
22
+ resetLink: 'https://example.com',
23
+ },
24
+ });
25
+
26
+ function PasswordResetEmail({
27
+ resetLink,
28
+ }: PasswordResetProps): React.ReactElement {
29
+ return (
30
+ <EmailLayout previewText={`Reset your ${theme.branding.name} password`}>
31
+ <Heading as="h2">Reset your password</Heading>
32
+
33
+ <Text>
34
+ We received a request to reset the password for your{' '}
35
+ {theme.branding.name} account.
36
+ </Text>
37
+
38
+ <Text>
39
+ To choose a new password, click the button below. This link will expire
40
+ in 1 hour for your security.
41
+ </Text>
42
+
43
+ <Section align="center">
44
+ <Button href={resetLink}>Reset Password</Button>
45
+ </Section>
46
+
47
+ <Divider spacing="lg" />
48
+
49
+ <Text variant="muted">
50
+ If you didn't request this email, you can safely ignore it. Your account
51
+ will remain secure.
52
+ </Text>
53
+ </EmailLayout>
54
+ );
55
+ }
@@ -8,7 +8,10 @@ export declare const authModuleGenerator: import("@baseplate-dev/sync").Generato
8
8
  }, undefined>;
9
9
  imports: import("@baseplate-dev/sync").GeneratorTask<{
10
10
  authModuleImports: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
11
+ cleanupExpiredAuthVerifications: {};
12
+ createAuthVerification: {};
11
13
  userSessionPayload: {};
14
+ validateAuthVerification: {};
12
15
  }>>;
13
16
  userSessionServiceImports: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
14
17
  userSessionService: {};
@@ -56,6 +59,7 @@ export declare const authModuleGenerator: import("@baseplate-dev/sync").Generato
56
59
  InternalServerError: {};
57
60
  logError: {};
58
61
  NotFoundError: {};
62
+ TooManyRequestsError: {};
59
63
  UnauthorizedError: {};
60
64
  }>>;
61
65
  paths: import("@baseplate-dev/sync").ProviderType<import("./generated/template-paths.js").LocalAuthCoreAuthModulePaths>;
@@ -71,6 +75,9 @@ export declare const authModuleGenerator: import("@baseplate-dev/sync").Generato
71
75
  prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
72
76
  prisma: {};
73
77
  }>>;
78
+ queueServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
79
+ createQueue: {};
80
+ }>>;
74
81
  requestServiceContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
75
82
  createContextFromRequest: {};
76
83
  RequestServiceContext: {
@@ -100,6 +107,10 @@ export declare const authModuleGenerator: import("@baseplate-dev/sync").Generato
100
107
  prismaOutput: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/fastify-generators").PrismaOutputProvider>;
101
108
  renderers: import("@baseplate-dev/sync").ProviderType<import("./generated/template-renderers.js").LocalAuthCoreAuthModuleRenderers>;
102
109
  userObjectType: import("@baseplate-dev/sync").ProviderDependency<import("@baseplate-dev/fastify-generators").PothosTypeOutputProvider>;
110
+ queueConfig: import("@baseplate-dev/sync").ProviderDependency<Omit<import("@baseplate-dev/utils").FieldMap<{
111
+ queues: import("@baseplate-dev/utils").MapContainer<string, import("@baseplate-dev/core-generators").TsCodeFragment>;
112
+ }>, "getValues"> | undefined>;
113
+ paths: import("@baseplate-dev/sync").ProviderType<import("./generated/template-paths.js").LocalAuthCoreAuthModulePaths>;
103
114
  }, any>;
104
115
  }>;
105
116
  //# sourceMappingURL=auth-module.generator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth-module.generator.d.ts","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-module/auth-module.generator.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiG9B,CAAC"}
1
+ {"version":3,"file":"auth-module.generator.d.ts","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-module/auth-module.generator.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmH9B,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { tsCodeFragment, TsCodeUtils } from '@baseplate-dev/core-generators';
2
2
  import { appModuleProvider, configServiceProvider, createPothosPrismaObjectTypeOutputName, pothosTypeOutputProvider, prismaOutputProvider, } from '@baseplate-dev/fastify-generators';
3
+ import { queueConfigProvider } from '@baseplate-dev/plugin-queue';
3
4
  import { createGenerator, createGeneratorTask, createProviderTask, } from '@baseplate-dev/sync';
4
5
  import { quot } from '@baseplate-dev/utils';
5
6
  import { z } from 'zod';
@@ -44,8 +45,10 @@ export const authModuleGenerator = createGenerator({
44
45
  userObjectType: pothosTypeOutputProvider
45
46
  .dependency()
46
47
  .reference(createPothosPrismaObjectTypeOutputName(LOCAL_AUTH_MODELS.user)),
48
+ queueConfig: queueConfigProvider.dependency().optional(),
49
+ paths: GENERATED_TEMPLATES.paths.provider,
47
50
  },
48
- run({ prismaOutput, renderers, userObjectType }) {
51
+ run({ prismaOutput, renderers, userObjectType, queueConfig, paths }) {
49
52
  return {
50
53
  providers: {
51
54
  authModule: {},
@@ -56,6 +59,7 @@ export const authModuleGenerator = createGenerator({
56
59
  TPL_PRISMA_USER_SESSION: prismaOutput.getPrismaModelFragment(LOCAL_AUTH_MODELS.userSession),
57
60
  },
58
61
  }));
62
+ await builder.apply(renderers.servicesAuthVerification.render({}));
59
63
  await builder.apply(renderers.constantsGroup.render({}));
60
64
  await builder.apply(renderers.utilsGroup.render({}));
61
65
  await builder.apply(renderers.moduleGroup.render({
@@ -68,11 +72,17 @@ export const authModuleGenerator = createGenerator({
68
72
  TPL_USER_OBJECT_TYPE: userObjectType.getTypeReference().fragment,
69
73
  },
70
74
  userRolesMutations: {
71
- TPL_ADMIN_ROLES: TsCodeUtils.mergeFragmentsAsArrayPresorted(userAdminRoles.map(quot).sort()),
75
+ TPL_ADMIN_ROLES: TsCodeUtils.mergeFragmentsAsArrayPresorted(userAdminRoles.map(quot).toSorted()),
72
76
  TPL_USER_OBJECT_TYPE: userObjectType.getTypeReference().fragment,
73
77
  },
74
78
  },
75
79
  }));
80
+ // Render queue only if queue plugin is available
81
+ if (queueConfig) {
82
+ await builder.apply(renderers.queuesCleanupAuthVerification.render({}));
83
+ // Register with` queue system
84
+ queueConfig.queues.set('cleanup-auth-verification', TsCodeUtils.importFragment('cleanupAuthVerificationQueue', paths.queuesCleanupAuthVerification));
85
+ }
76
86
  },
77
87
  };
78
88
  },
@@ -1 +1 @@
1
- {"version":3,"file":"auth-module.generator.js","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-module/auth-module.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,sCAAsC,EACtC,wBAAwB,EACxB,oBAAoB,GACrB,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,EA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sB,CAClD,iBAAiB,CAAC,IAAI,CACvB;oCACD,oBAAoB,EAClB,cAAc,CAAC,gBAAgB,EAAE,CAAC,QAAQ;iCAC7C;gCACD,wBAAwB,EAAE;oCACxB,oBAAoB,EAClB,cAAc,CAAC,gBAAgB,EAAE,CAAC,QAAQ;iCAC7C;gCACD,kBAAkB,EAAE;oCAClB,eAAe,EAAE,WAAW,CAAC,8BAA8B,CACzD,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAChC;oCACD,oBAAoB,EAClB,cAAc,CAAC,gBAAgB,EAAE,CAAC,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-module.generator.js","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-module/auth-module.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,sCAAsC,EACtC,wBAAwB,EACxB,oBAAoB,GACrB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,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,qCAAqC,IAAI,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEpG,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAA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AAiB,CAAC,IAAI,CACvB;oCACD,oBAAoB,EAClB,cAAc,CAAC,gBAAgB,EAAE,CAAC,QAAQ;iCAC7C;gCACD,wBAAwB,EAAE;oCACxB,oBAAoB,EAClB,cAAc,CAAC,gBAAgB,EAAE,CAAC,QAAQ;iCAC7C;gCACD,kBAAkB,EAAE;oCAClB,eAAe,EAAE,WAAW,CAAC,8BAA8B,CACzD,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CACpC;oCACD,oBAAoB,EAClB,cAAc,CAAC,gBAAgB,EAAE,CAAC,QAAQ;iCAC7C;6BACF;yBACF,CAAC,CACH,CAAC;wBACF,iDAAiD;wBACjD,IAAI,WAAW,EAAE,CAAC;4BAChB,MAAM,OAAO,CAAC,KAAK,CACjB,SAAS,CAAC,6BAA6B,CAAC,MAAM,CAAC,EAAE,CAAC,CACnD,CAAC;4BAEF,8BAA8B;4BAC9B,WAAW,CAAC,MAAM,CAAC,GAAG,CACpB,2BAA2B,EAC3B,WAAW,CAAC,cAAc,CACxB,8BAA8B,EAC9B,KAAK,CAAC,6BAA6B,CACpC,CACF,CAAC;wBACJ,CAAC;oBACH,CAAC;iBACF,CAAC;YACJ,CAAC;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
@@ -2,7 +2,10 @@ export declare const LOCAL_AUTH_CORE_AUTH_MODULE_GENERATED: {
2
2
  imports: {
3
3
  task: import("@baseplate-dev/sync").GeneratorTask<{
4
4
  authModuleImports: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
5
+ cleanupExpiredAuthVerifications: {};
6
+ createAuthVerification: {};
5
7
  userSessionPayload: {};
8
+ validateAuthVerification: {};
6
9
  }>>;
7
10
  userSessionServiceImports: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
8
11
  userSessionService: {};
@@ -61,6 +64,7 @@ export declare const LOCAL_AUTH_CORE_AUTH_MODULE_GENERATED: {
61
64
  InternalServerError: {};
62
65
  logError: {};
63
66
  NotFoundError: {};
67
+ TooManyRequestsError: {};
64
68
  UnauthorizedError: {};
65
69
  }>>;
66
70
  paths: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").LocalAuthCoreAuthModulePaths>;
@@ -76,6 +80,9 @@ export declare const LOCAL_AUTH_CORE_AUTH_MODULE_GENERATED: {
76
80
  prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
77
81
  prisma: {};
78
82
  }>>;
83
+ queueServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
84
+ createQueue: {};
85
+ }>>;
79
86
  requestServiceContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
80
87
  createContextFromRequest: {};
81
88
  RequestServiceContext: {
@@ -176,6 +183,24 @@ export declare const LOCAL_AUTH_CORE_AUTH_MODULE_GENERATED: {
176
183
  }>>;
177
184
  }, Record<never, Record<never, never>>>;
178
185
  };
186
+ queuesCleanupAuthVerification: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
187
+ queueServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
188
+ createQueue: {};
189
+ }>>;
190
+ }, {
191
+ servicesAuthVerification: {};
192
+ }>;
193
+ servicesAuthVerification: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
194
+ prismaGeneratedImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
195
+ PrismaClient: {};
196
+ Prisma: {};
197
+ '*': {};
198
+ $Enums: {};
199
+ }>>;
200
+ prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
201
+ prisma: {};
202
+ }>>;
203
+ }, Record<never, Record<never, never>>>;
179
204
  userSessionService: import("@baseplate-dev/core-generators").TsTemplateFile<{
180
205
  TPL_PRISMA_USER_SESSION: {};
181
206
  }, {
@@ -216,6 +241,7 @@ export declare const LOCAL_AUTH_CORE_AUTH_MODULE_GENERATED: {
216
241
  InternalServerError: {};
217
242
  logError: {};
218
243
  NotFoundError: {};
244
+ TooManyRequestsError: {};
219
245
  UnauthorizedError: {};
220
246
  }>>;
221
247
  prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKjD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKjD,CAAC"}
@@ -1,9 +1,11 @@
1
1
  export interface LocalAuthCoreAuthModulePaths {
2
2
  authRoleEnum: string;
3
3
  cookieSigner: string;
4
+ queuesCleanupAuthVerification: string;
4
5
  schemaUserSessionMutations: string;
5
6
  schemaUserSessionPayloadObjectType: string;
6
7
  schemaUserSessionQueries: string;
8
+ servicesAuthVerification: string;
7
9
  sessionCookie: string;
8
10
  userRolesMutations: string;
9
11
  userRolesService: string;