@baseplate-dev/plugin-auth 0.6.14 → 0.6.16

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 (145) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist/auth/core/components/auth-definition-editor.js +3 -0
  3. package/dist/auth/core/components/role-editor-form/role-editor-form.js +2 -0
  4. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +14 -28
  5. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +14 -28
  6. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +7 -14
  7. package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +7 -14
  8. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +14 -28
  9. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +14 -28
  10. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +7 -14
  11. package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +14 -28
  12. package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +7 -14
  13. package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts +9 -2
  14. package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js +6 -2
  15. package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts +16 -2
  16. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts +8 -1
  17. package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts +8 -1
  18. package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/auth.ts +5 -1
  19. package/dist/better-auth/generators/fastify/seed-initial-user/seed-initial-user.generator.js +4 -0
  20. package/dist/better-auth/generators/fastify/seed-initial-user/templates/src/prisma/seed-initial-user.ts +3 -2
  21. package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts +7 -14
  22. package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts +42 -84
  23. package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts +7 -14
  24. package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts +70 -140
  25. package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts +14 -28
  26. package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts +7 -14
  27. package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts +7 -14
  28. package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts +7 -14
  29. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +14 -28
  30. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +14 -28
  31. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +7 -14
  32. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +7 -14
  33. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +14 -28
  34. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +14 -28
  35. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +7 -14
  36. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +14 -28
  37. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +7 -14
  38. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +2 -1
  39. package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +6 -3
  40. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts +2 -1
  41. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +6 -3
  42. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js +2 -2
  43. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.ts +2 -2
  44. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +2 -2
  45. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +2 -2
  46. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js +8 -5
  47. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts +8 -8
  48. package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +10 -2
  49. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +3 -1
  50. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +27 -3
  51. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts +9 -1
  52. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +20 -3
  53. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js +18 -16
  54. package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.ts +18 -16
  55. package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.js +6 -6
  56. package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.ts +6 -6
  57. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +7 -14
  58. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +42 -84
  59. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +7 -14
  60. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +63 -126
  61. package/dist/local-auth/core/generators/react-session/generated/index.d.ts +14 -28
  62. package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +7 -14
  63. package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +14 -28
  64. package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +7 -14
  65. package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js +4 -0
  66. package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.js +2 -1
  67. package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.ts +3 -1
  68. package/dist/placeholder-auth/core/generators/placeholder-auth-module/placeholder-auth-module.generator.d.ts +1 -1
  69. package/dist/placeholder-auth/core/generators/placeholder-auth-module/placeholder-auth-module.generator.js +3 -1
  70. package/dist/web/assets/{_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-3sV-KVGF.js → _virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-04_7KkB1.js} +15 -15
  71. package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-0m3QgjSy.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-BfSk5vRC.js} +5 -4
  72. package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-QrOyqu9V.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-DZIcwf2B.js} +1 -1
  73. package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-BTSgZGcl.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-CXGct_48.js} +10053 -3750
  74. package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-CJ027_El.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-Ci5_qYaj.js} +3823 -2545
  75. package/dist/web/assets/arduino-BP2nYunF.js +21 -0
  76. package/dist/web/assets/auth-8qJtXAgU.js +1 -0
  77. package/dist/web/assets/bash-Zh_IyzBN.js +192 -0
  78. package/dist/web/assets/basic-3mvohyEL.js +28 -0
  79. package/dist/web/assets/c-C7Ey31hW.js +74 -0
  80. package/dist/web/assets/clike-D9YNFwtw.js +41 -0
  81. package/dist/web/assets/{common-Aq-HXybV.js → common-23-wvKrM.js} +5 -5
  82. package/dist/web/assets/{common-7-ZtKO5B.js → common-B-NI9TR-.js} +2 -2
  83. package/dist/web/assets/{common-CDrUdhRf.js → common-BBriDRRy.js} +3 -3
  84. package/dist/web/assets/{common-BPbNs2A1.js → common-BvU-7KsV.js} +5 -5
  85. package/dist/web/assets/{common-B_XZ3l9w.js → common-DBBUvtGu.js} +2 -2
  86. package/dist/web/assets/{common-B8N9gx2s.js → common-eFh2vwGb.js} +3 -3
  87. package/dist/web/assets/cpp-_RjA_yNA.js +82 -0
  88. package/dist/web/assets/csharp-0LZzOc6Q.js +301 -0
  89. package/dist/web/assets/css-D7TbgetL.js +70 -0
  90. package/dist/web/assets/diff-CtSa_15w.js +54 -0
  91. package/dist/web/assets/{dist-D3CkiDKT.js → dist-BjxypexQ.js} +1672 -992
  92. package/dist/web/assets/{get-auth-plugin-definition-D3ocnNxw.js → get-auth-plugin-definition-x8oAsN1R.js} +2 -2
  93. package/dist/web/assets/go-CzER04EZ.js +36 -0
  94. package/dist/web/assets/{hostInit-D3RxwboF.js → hostInit-Bay0Y9UX.js} +1 -1
  95. package/dist/web/assets/{index-CozZxQl1.js → index-qso1IsKy.js} +2 -2
  96. package/dist/web/assets/ini-CU-wHLTy.js +51 -0
  97. package/dist/web/assets/java-HAvRESj1.js +116 -0
  98. package/dist/web/assets/javascript-BVAr0eZH.js +124 -0
  99. package/dist/web/assets/json-DN8T4yFI.js +38 -0
  100. package/dist/web/assets/kotlin-DkCMjTKK.js +83 -0
  101. package/dist/web/assets/less-ZXX1tgaG.js +42 -0
  102. package/dist/web/assets/lua-D9bD4wrb.js +28 -0
  103. package/dist/web/assets/makefile-CKoRpler.js +40 -0
  104. package/dist/web/assets/markdown-_2_uVr2L.js +278 -0
  105. package/dist/web/assets/markup-BVZ8HhdW.js +176 -0
  106. package/dist/web/assets/markup-templating-BDIRuVJH.js +94 -0
  107. package/dist/web/assets/{mf-entry-bootstrap-0-069a3ab2.js → mf-entry-bootstrap-0-659c976f.js} +2 -2
  108. package/dist/web/assets/{model-utils-CYaLYwoX.js → model-utils-dNFTOjqi.js} +305 -27
  109. package/dist/web/assets/{models-BX4xFiEn.js → models-BpslIbU7.js} +2 -2
  110. package/dist/web/assets/{models-k-iaCft-.js → models-CKab4MTC.js} +2 -2
  111. package/dist/web/assets/objectivec-DPgB68It.js +25 -0
  112. package/dist/web/assets/perl-Cul_ma_h.js +92 -0
  113. package/dist/web/assets/php-JTON0zp9.js +298 -0
  114. package/dist/web/assets/{plugin-definition-CI1aEVGv.js → plugin-definition-8Exesd6T.js} +2 -2
  115. package/dist/web/assets/{plugin-definition-BI565qFo.js → plugin-definition-ChBrbazJ.js} +2 -2
  116. package/dist/web/assets/python-CURlmZ7M.js +73 -0
  117. package/dist/web/assets/r-8lr7pbGm.js +30 -0
  118. package/dist/web/assets/regex-CxQ7DXCx.js +96 -0
  119. package/dist/web/assets/ruby-BoFHz67P.js +175 -0
  120. package/dist/web/assets/rust-CpZXpaj0.js +107 -0
  121. package/dist/web/assets/sass-DG0YAnL7.js +65 -0
  122. package/dist/web/assets/scss-BDRIqhak.js +70 -0
  123. package/dist/web/assets/sql-C-bL8_gT.js +40 -0
  124. package/dist/web/assets/{styles-f4jHVv0S.js → styles-Cuq4wgvD.js} +7 -7
  125. package/dist/web/assets/swift-rQ52kfab.js +107 -0
  126. package/dist/web/assets/typescript-CDkIWcT8.js +57 -0
  127. package/dist/web/assets/vbnet-_PL7-T9d.js +32 -0
  128. package/dist/web/assets/{virtualExposes-BHQhgLE-.js → virtualExposes-BwIds34r.js} +1 -1
  129. package/dist/web/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-aH8n-Nbe.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-BBt5f0I7.js} +3 -3
  130. package/dist/web/assets/{virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-I_SxfvGj.js → virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-RzPgl37a.js} +13 -13
  131. package/dist/web/assets/{virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-BQ0UMKSv.js → virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-DM6Ir1_S.js} +13 -13
  132. package/dist/web/assets/{web-DCK_tLVa.js → web-BZd3bM0n.js} +6 -6
  133. package/dist/web/assets/{web-CkbTu31Q.js → web-BgWG7dYl.js} +10 -10
  134. package/dist/web/assets/{web-Dh6pUTrF.js → web-CXHw8SK7.js} +13 -13
  135. package/dist/web/assets/{web-Cn3uvuFs.js → web-CnB-sqCR.js} +20 -18
  136. package/dist/web/assets/{web-BRvS0HRS.js → web-DHv2aVpi.js} +10 -10
  137. package/dist/web/assets/{web-YXVJWeXy.js → web-DNrWXjpS.js} +3 -3
  138. package/dist/web/assets/{web-nLSlkJy_.js → web-D_H-MoGI.js} +3 -3
  139. package/dist/web/assets/workerBundle-GFUata9j.js +10 -0
  140. package/dist/web/assets/yaml-C9m3vuV5.js +90 -0
  141. package/dist/web/index.html +2 -2
  142. package/dist/web/remoteEntry.js +1 -1
  143. package/dist/web/remoteEntry.ssr.js +1 -1
  144. package/package.json +18 -17
  145. package/dist/web/assets/auth-D8BnFQKk.js +0 -1
@@ -44,10 +44,6 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_RESET_PASSWORD_ACTION_GENERATE
44
44
  AutocompleteValue: {};
45
45
  Badge: {};
46
46
  badgeVariants: {};
47
- BadgeWithIcon: {};
48
- BadgeWithIconProps: {
49
- isTypeOnly: true;
50
- };
51
47
  Breadcrumb: {};
52
48
  BreadcrumbEllipsis: {};
53
49
  BreadcrumbItem: {};
@@ -67,7 +63,6 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_RESET_PASSWORD_ACTION_GENERATE
67
63
  Checkbox: {};
68
64
  CheckboxField: {};
69
65
  CheckboxFieldController: {};
70
- CheckedInput: {};
71
66
  CircularProgress: {};
72
67
  cn: {};
73
68
  Collapsible: {};
@@ -158,10 +153,8 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_RESET_PASSWORD_ACTION_GENERATE
158
153
  ItemTitle: {};
159
154
  itemVariants: {};
160
155
  Label: {};
161
- LinkButton: {};
162
156
  Loader: {};
163
157
  mergeRefs: {};
164
- Modal: {};
165
158
  MultiComboboxField: {};
166
159
  MultiComboboxFieldController: {};
167
160
  MultiComboboxFieldProps: {
@@ -179,19 +172,21 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_RESET_PASSWORD_ACTION_GENERATE
179
172
  NavigationMenuList: {};
180
173
  NavigationMenuTrigger: {};
181
174
  navigationMenuTriggerStyle: {};
182
- NavigationMenuViewport: {};
183
175
  NotFoundCard: {};
176
+ NumberField: {};
177
+ NumberFieldController: {};
184
178
  Popover: {};
185
- PopoverAnchor: {};
186
179
  PopoverContent: {};
187
180
  PopoverTrigger: {};
188
- ReactDatePickerInput: {};
189
- ReactSelectInput: {};
181
+ RadioField: {};
182
+ RadioFieldController: {};
183
+ RadioOptionProps: {
184
+ isTypeOnly: true;
185
+ };
190
186
  ScrollArea: {};
191
187
  Select: {};
192
188
  SelectField: {};
193
189
  SelectFieldController: {};
194
- SelectInput: {};
195
190
  SelectOptionProps: {
196
191
  isTypeOnly: true;
197
192
  };
@@ -244,8 +239,6 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_RESET_PASSWORD_ACTION_GENERATE
244
239
  Textarea: {};
245
240
  TextareaField: {};
246
241
  TextareaFieldController: {};
247
- TextAreaInput: {};
248
- TextInput: {};
249
242
  Toaster: {};
250
243
  Tooltip: {};
251
244
  TooltipContent: {};
@@ -299,10 +292,6 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_RESET_PASSWORD_ACTION_GENERATE
299
292
  AutocompleteValue: {};
300
293
  Badge: {};
301
294
  badgeVariants: {};
302
- BadgeWithIcon: {};
303
- BadgeWithIconProps: {
304
- isTypeOnly: true;
305
- };
306
295
  Breadcrumb: {};
307
296
  BreadcrumbEllipsis: {};
308
297
  BreadcrumbItem: {};
@@ -322,7 +311,6 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_RESET_PASSWORD_ACTION_GENERATE
322
311
  Checkbox: {};
323
312
  CheckboxField: {};
324
313
  CheckboxFieldController: {};
325
- CheckedInput: {};
326
314
  CircularProgress: {};
327
315
  cn: {};
328
316
  Collapsible: {};
@@ -413,10 +401,8 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_RESET_PASSWORD_ACTION_GENERATE
413
401
  ItemTitle: {};
414
402
  itemVariants: {};
415
403
  Label: {};
416
- LinkButton: {};
417
404
  Loader: {};
418
405
  mergeRefs: {};
419
- Modal: {};
420
406
  MultiComboboxField: {};
421
407
  MultiComboboxFieldController: {};
422
408
  MultiComboboxFieldProps: {
@@ -434,19 +420,21 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_RESET_PASSWORD_ACTION_GENERATE
434
420
  NavigationMenuList: {};
435
421
  NavigationMenuTrigger: {};
436
422
  navigationMenuTriggerStyle: {};
437
- NavigationMenuViewport: {};
438
423
  NotFoundCard: {};
424
+ NumberField: {};
425
+ NumberFieldController: {};
439
426
  Popover: {};
440
- PopoverAnchor: {};
441
427
  PopoverContent: {};
442
428
  PopoverTrigger: {};
443
- ReactDatePickerInput: {};
444
- ReactSelectInput: {};
429
+ RadioField: {};
430
+ RadioFieldController: {};
431
+ RadioOptionProps: {
432
+ isTypeOnly: true;
433
+ };
445
434
  ScrollArea: {};
446
435
  Select: {};
447
436
  SelectField: {};
448
437
  SelectFieldController: {};
449
- SelectInput: {};
450
438
  SelectOptionProps: {
451
439
  isTypeOnly: true;
452
440
  };
@@ -499,8 +487,6 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_RESET_PASSWORD_ACTION_GENERATE
499
487
  Textarea: {};
500
488
  TextareaField: {};
501
489
  TextareaFieldController: {};
502
- TextAreaInput: {};
503
- TextInput: {};
504
490
  Toaster: {};
505
491
  Tooltip: {};
506
492
  TooltipContent: {};
@@ -43,10 +43,6 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_RESET_PASSWORD_ACTION_RENDERER
43
43
  AutocompleteValue: {};
44
44
  Badge: {};
45
45
  badgeVariants: {};
46
- BadgeWithIcon: {};
47
- BadgeWithIconProps: {
48
- isTypeOnly: true;
49
- };
50
46
  Breadcrumb: {};
51
47
  BreadcrumbEllipsis: {};
52
48
  BreadcrumbItem: {};
@@ -66,7 +62,6 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_RESET_PASSWORD_ACTION_RENDERER
66
62
  Checkbox: {};
67
63
  CheckboxField: {};
68
64
  CheckboxFieldController: {};
69
- CheckedInput: {};
70
65
  CircularProgress: {};
71
66
  cn: {};
72
67
  Collapsible: {};
@@ -157,10 +152,8 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_RESET_PASSWORD_ACTION_RENDERER
157
152
  ItemTitle: {};
158
153
  itemVariants: {};
159
154
  Label: {};
160
- LinkButton: {};
161
155
  Loader: {};
162
156
  mergeRefs: {};
163
- Modal: {};
164
157
  MultiComboboxField: {};
165
158
  MultiComboboxFieldController: {};
166
159
  MultiComboboxFieldProps: {
@@ -178,19 +171,21 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_RESET_PASSWORD_ACTION_RENDERER
178
171
  NavigationMenuList: {};
179
172
  NavigationMenuTrigger: {};
180
173
  navigationMenuTriggerStyle: {};
181
- NavigationMenuViewport: {};
182
174
  NotFoundCard: {};
175
+ NumberField: {};
176
+ NumberFieldController: {};
183
177
  Popover: {};
184
- PopoverAnchor: {};
185
178
  PopoverContent: {};
186
179
  PopoverTrigger: {};
187
- ReactDatePickerInput: {};
188
- ReactSelectInput: {};
180
+ RadioField: {};
181
+ RadioFieldController: {};
182
+ RadioOptionProps: {
183
+ isTypeOnly: true;
184
+ };
189
185
  ScrollArea: {};
190
186
  Select: {};
191
187
  SelectField: {};
192
188
  SelectFieldController: {};
193
- SelectInput: {};
194
189
  SelectOptionProps: {
195
190
  isTypeOnly: true;
196
191
  };
@@ -243,8 +238,6 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_RESET_PASSWORD_ACTION_RENDERER
243
238
  Textarea: {};
244
239
  TextareaField: {};
245
240
  TextareaFieldController: {};
246
- TextAreaInput: {};
247
- TextInput: {};
248
241
  Toaster: {};
249
242
  Tooltip: {};
250
243
  TooltipContent: {};
@@ -31,10 +31,6 @@ export declare const mainGroup: {
31
31
  AutocompleteValue: {};
32
32
  Badge: {};
33
33
  badgeVariants: {};
34
- BadgeWithIcon: {};
35
- BadgeWithIconProps: {
36
- isTypeOnly: true;
37
- };
38
34
  Breadcrumb: {};
39
35
  BreadcrumbEllipsis: {};
40
36
  BreadcrumbItem: {};
@@ -54,7 +50,6 @@ export declare const mainGroup: {
54
50
  Checkbox: {};
55
51
  CheckboxField: {};
56
52
  CheckboxFieldController: {};
57
- CheckedInput: {};
58
53
  CircularProgress: {};
59
54
  cn: {};
60
55
  Collapsible: {};
@@ -145,10 +140,8 @@ export declare const mainGroup: {
145
140
  ItemTitle: {};
146
141
  itemVariants: {};
147
142
  Label: {};
148
- LinkButton: {};
149
143
  Loader: {};
150
144
  mergeRefs: {};
151
- Modal: {};
152
145
  MultiComboboxField: {};
153
146
  MultiComboboxFieldController: {};
154
147
  MultiComboboxFieldProps: {
@@ -166,19 +159,21 @@ export declare const mainGroup: {
166
159
  NavigationMenuList: {};
167
160
  NavigationMenuTrigger: {};
168
161
  navigationMenuTriggerStyle: {};
169
- NavigationMenuViewport: {};
170
162
  NotFoundCard: {};
163
+ NumberField: {};
164
+ NumberFieldController: {};
171
165
  Popover: {};
172
- PopoverAnchor: {};
173
166
  PopoverContent: {};
174
167
  PopoverTrigger: {};
175
- ReactDatePickerInput: {};
176
- ReactSelectInput: {};
168
+ RadioField: {};
169
+ RadioFieldController: {};
170
+ RadioOptionProps: {
171
+ isTypeOnly: true;
172
+ };
177
173
  ScrollArea: {};
178
174
  Select: {};
179
175
  SelectField: {};
180
176
  SelectFieldController: {};
181
- SelectInput: {};
182
177
  SelectOptionProps: {
183
178
  isTypeOnly: true;
184
179
  };
@@ -231,8 +226,6 @@ export declare const mainGroup: {
231
226
  Textarea: {};
232
227
  TextareaField: {};
233
228
  TextareaFieldController: {};
234
- TextAreaInput: {};
235
- TextInput: {};
236
229
  Toaster: {};
237
230
  Tooltip: {};
238
231
  TooltipContent: {};
@@ -285,10 +278,6 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_RESET_PASSWORD_ACTION_TEMPLATE
285
278
  AutocompleteValue: {};
286
279
  Badge: {};
287
280
  badgeVariants: {};
288
- BadgeWithIcon: {};
289
- BadgeWithIconProps: {
290
- isTypeOnly: true;
291
- };
292
281
  Breadcrumb: {};
293
282
  BreadcrumbEllipsis: {};
294
283
  BreadcrumbItem: {};
@@ -308,7 +297,6 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_RESET_PASSWORD_ACTION_TEMPLATE
308
297
  Checkbox: {};
309
298
  CheckboxField: {};
310
299
  CheckboxFieldController: {};
311
- CheckedInput: {};
312
300
  CircularProgress: {};
313
301
  cn: {};
314
302
  Collapsible: {};
@@ -399,10 +387,8 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_RESET_PASSWORD_ACTION_TEMPLATE
399
387
  ItemTitle: {};
400
388
  itemVariants: {};
401
389
  Label: {};
402
- LinkButton: {};
403
390
  Loader: {};
404
391
  mergeRefs: {};
405
- Modal: {};
406
392
  MultiComboboxField: {};
407
393
  MultiComboboxFieldController: {};
408
394
  MultiComboboxFieldProps: {
@@ -420,19 +406,21 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_RESET_PASSWORD_ACTION_TEMPLATE
420
406
  NavigationMenuList: {};
421
407
  NavigationMenuTrigger: {};
422
408
  navigationMenuTriggerStyle: {};
423
- NavigationMenuViewport: {};
424
409
  NotFoundCard: {};
410
+ NumberField: {};
411
+ NumberFieldController: {};
425
412
  Popover: {};
426
- PopoverAnchor: {};
427
413
  PopoverContent: {};
428
414
  PopoverTrigger: {};
429
- ReactDatePickerInput: {};
430
- ReactSelectInput: {};
415
+ RadioField: {};
416
+ RadioFieldController: {};
417
+ RadioOptionProps: {
418
+ isTypeOnly: true;
419
+ };
431
420
  ScrollArea: {};
432
421
  Select: {};
433
422
  SelectField: {};
434
423
  SelectFieldController: {};
435
- SelectInput: {};
436
424
  SelectOptionProps: {
437
425
  isTypeOnly: true;
438
426
  };
@@ -485,8 +473,6 @@ export declare const BETTER_AUTH_ADMIN_ADMIN_CRUD_RESET_PASSWORD_ACTION_TEMPLATE
485
473
  Textarea: {};
486
474
  TextareaField: {};
487
475
  TextareaFieldController: {};
488
- TextAreaInput: {};
489
- TextInput: {};
490
476
  Toaster: {};
491
477
  Tooltip: {};
492
478
  TooltipContent: {};
@@ -28,10 +28,6 @@ export declare const adminCrudRolesColumnGenerator: import("@baseplate-dev/sync"
28
28
  AutocompleteValue: {};
29
29
  Badge: {};
30
30
  badgeVariants: {};
31
- BadgeWithIcon: {};
32
- BadgeWithIconProps: {
33
- isTypeOnly: true;
34
- };
35
31
  Breadcrumb: {};
36
32
  BreadcrumbEllipsis: {};
37
33
  BreadcrumbItem: {};
@@ -51,7 +47,6 @@ export declare const adminCrudRolesColumnGenerator: import("@baseplate-dev/sync"
51
47
  Checkbox: {};
52
48
  CheckboxField: {};
53
49
  CheckboxFieldController: {};
54
- CheckedInput: {};
55
50
  CircularProgress: {};
56
51
  cn: {};
57
52
  Collapsible: {};
@@ -142,10 +137,8 @@ export declare const adminCrudRolesColumnGenerator: import("@baseplate-dev/sync"
142
137
  ItemTitle: {};
143
138
  itemVariants: {};
144
139
  Label: {};
145
- LinkButton: {};
146
140
  Loader: {};
147
141
  mergeRefs: {};
148
- Modal: {};
149
142
  MultiComboboxField: {};
150
143
  MultiComboboxFieldController: {};
151
144
  MultiComboboxFieldProps: {
@@ -163,19 +156,21 @@ export declare const adminCrudRolesColumnGenerator: import("@baseplate-dev/sync"
163
156
  NavigationMenuList: {};
164
157
  NavigationMenuTrigger: {};
165
158
  navigationMenuTriggerStyle: {};
166
- NavigationMenuViewport: {};
167
159
  NotFoundCard: {};
160
+ NumberField: {};
161
+ NumberFieldController: {};
168
162
  Popover: {};
169
- PopoverAnchor: {};
170
163
  PopoverContent: {};
171
164
  PopoverTrigger: {};
172
- ReactDatePickerInput: {};
173
- ReactSelectInput: {};
165
+ RadioField: {};
166
+ RadioFieldController: {};
167
+ RadioOptionProps: {
168
+ isTypeOnly: true;
169
+ };
174
170
  ScrollArea: {};
175
171
  Select: {};
176
172
  SelectField: {};
177
173
  SelectFieldController: {};
178
- SelectInput: {};
179
174
  SelectOptionProps: {
180
175
  isTypeOnly: true;
181
176
  };
@@ -228,8 +223,6 @@ export declare const adminCrudRolesColumnGenerator: import("@baseplate-dev/sync"
228
223
  Textarea: {};
229
224
  TextareaField: {};
230
225
  TextareaFieldController: {};
231
- TextAreaInput: {};
232
- TextInput: {};
233
226
  Toaster: {};
234
227
  Tooltip: {};
235
228
  TooltipContent: {};
@@ -36,6 +36,12 @@ export declare const betterAuthModuleGenerator: import("@baseplate-dev/sync").Ge
36
36
  isTypeOnly: true;
37
37
  };
38
38
  createAppRuntime: {};
39
+ InternalServices: {
40
+ isTypeOnly: true;
41
+ };
42
+ RuntimeServices: {
43
+ isTypeOnly: true;
44
+ };
39
45
  }>>;
40
46
  authContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
41
47
  AuthContext: {
@@ -64,7 +70,8 @@ export declare const betterAuthModuleGenerator: import("@baseplate-dev/sync").Ge
64
70
  };
65
71
  }>>;
66
72
  configServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
67
- config: {};
73
+ getConfig: {};
74
+ isDevelopment: {};
68
75
  }>>;
69
76
  emailModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
70
77
  createEmailService: {};
@@ -124,7 +131,7 @@ export declare const betterAuthModuleGenerator: import("@baseplate-dev/sync").Ge
124
131
  }, any>;
125
132
  appRuntimeConfig: import("@baseplate-dev/sync").GeneratorTask<any, {
126
133
  appRuntimeConfig: import("@baseplate-dev/sync").ProviderType<Omit<import("@baseplate-dev/utils").FieldMap<{
127
- services: import("@baseplate-dev/utils").MapContainer<string, import("@baseplate-dev/core-generators").TsCodeFragment>;
134
+ services: import("@baseplate-dev/utils").MapContainer<string, import("@baseplate-dev/fastify-generators").AppRuntimeServiceEntry>;
128
135
  construction: import("@baseplate-dev/utils").MapContainer<string, import("@baseplate-dev/fastify-generators").AppRuntimeConstructionEntry>;
129
136
  flattenedModuleFields: import("@baseplate-dev/utils").MapContainer<string, string>;
130
137
  usesBackgroundServices: import("@baseplate-dev/utils").ScalarContainer<boolean | undefined>;
@@ -85,8 +85,12 @@ export const betterAuthModuleGenerator = createGenerator({
85
85
  paths: BETTER_AUTH_BETTER_AUTH_MODULE_GENERATED.paths.provider,
86
86
  },
87
87
  run({ appRuntimeConfig, userSessionTypesImports, paths }) {
88
- appRuntimeConfig.services.set('betterAuth', tsCodeFragment('Auth', tsTypeImportBuilder(['Auth']).from(paths.auth)));
89
- appRuntimeConfig.services.set('userSession', userSessionTypesImports.UserSessionService.typeFragment());
88
+ appRuntimeConfig.services.set('betterAuth', {
89
+ type: tsCodeFragment('Auth', tsTypeImportBuilder(['Auth']).from(paths.auth)),
90
+ });
91
+ appRuntimeConfig.services.set('userSession', {
92
+ type: userSessionTypesImports.UserSessionService.typeFragment(),
93
+ });
90
94
  appRuntimeConfig.construction.set('betterAuth', {
91
95
  dependencies: ['email'],
92
96
  fragment: TsCodeUtils.template `${TsCodeUtils.importFragment('buildAuth', paths.auth)}({ email })`,
@@ -39,6 +39,12 @@ export declare const BETTER_AUTH_BETTER_AUTH_MODULE_GENERATED: {
39
39
  isTypeOnly: true;
40
40
  };
41
41
  createAppRuntime: {};
42
+ InternalServices: {
43
+ isTypeOnly: true;
44
+ };
45
+ RuntimeServices: {
46
+ isTypeOnly: true;
47
+ };
42
48
  }>>;
43
49
  authContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
44
50
  AuthContext: {
@@ -67,7 +73,8 @@ export declare const BETTER_AUTH_BETTER_AUTH_MODULE_GENERATED: {
67
73
  };
68
74
  }>>;
69
75
  configServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
70
- config: {};
76
+ getConfig: {};
77
+ isDevelopment: {};
71
78
  }>>;
72
79
  emailModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
73
80
  createEmailService: {};
@@ -132,7 +139,8 @@ export declare const BETTER_AUTH_BETTER_AUTH_MODULE_GENERATED: {
132
139
  };
133
140
  }>>;
134
141
  configServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
135
- config: {};
142
+ getConfig: {};
143
+ isDevelopment: {};
136
144
  }>>;
137
145
  emailModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
138
146
  createEmailService: {};
@@ -174,6 +182,12 @@ export declare const BETTER_AUTH_BETTER_AUTH_MODULE_GENERATED: {
174
182
  isTypeOnly: true;
175
183
  };
176
184
  createAppRuntime: {};
185
+ InternalServices: {
186
+ isTypeOnly: true;
187
+ };
188
+ RuntimeServices: {
189
+ isTypeOnly: true;
190
+ };
177
191
  }>>;
178
192
  }, {
179
193
  headersUtils: {};
@@ -31,6 +31,12 @@ export declare const BETTER_AUTH_BETTER_AUTH_MODULE_RENDERERS: {
31
31
  isTypeOnly: true;
32
32
  };
33
33
  createAppRuntime: {};
34
+ InternalServices: {
35
+ isTypeOnly: true;
36
+ };
37
+ RuntimeServices: {
38
+ isTypeOnly: true;
39
+ };
34
40
  }>>;
35
41
  authContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
36
42
  AuthContext: {
@@ -59,7 +65,8 @@ export declare const BETTER_AUTH_BETTER_AUTH_MODULE_RENDERERS: {
59
65
  };
60
66
  }>>;
61
67
  configServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
62
- config: {};
68
+ getConfig: {};
69
+ isDevelopment: {};
63
70
  }>>;
64
71
  emailModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
65
72
  createEmailService: {};
@@ -16,7 +16,8 @@ export declare const BETTER_AUTH_BETTER_AUTH_MODULE_TEMPLATES: {
16
16
  };
17
17
  }>>;
18
18
  configServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
19
- config: {};
19
+ getConfig: {};
20
+ isDevelopment: {};
20
21
  }>>;
21
22
  emailModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
22
23
  createEmailService: {};
@@ -58,6 +59,12 @@ export declare const BETTER_AUTH_BETTER_AUTH_MODULE_TEMPLATES: {
58
59
  isTypeOnly: true;
59
60
  };
60
61
  createAppRuntime: {};
62
+ InternalServices: {
63
+ isTypeOnly: true;
64
+ };
65
+ RuntimeServices: {
66
+ isTypeOnly: true;
67
+ };
61
68
  }>>;
62
69
  }, {
63
70
  headersUtils: {};
@@ -4,12 +4,16 @@ import type { AuthRole } from '%authRolesImports';
4
4
  import type { EmailService } from '%emailModuleImports';
5
5
 
6
6
  import { DEFAULT_USER_ROLES } from '%authRolesImports';
7
- import { config } from '%configServiceImports';
7
+ import { getConfig } from '%configServiceImports';
8
8
  import { prisma } from '%prismaImports';
9
9
  import { betterAuth } from 'better-auth';
10
10
  import { prismaAdapter } from 'better-auth/adapters/prisma';
11
11
  import { customSession } from 'better-auth/plugins';
12
12
 
13
+ // Read at module scope: this module already requires backend env at import
14
+ // via the Prisma client.
15
+ const config = getConfig();
16
+
13
17
  /**
14
18
  * Returns the cookie prefix for Better Auth.
15
19
  * In development, scopes cookies to the server port to avoid collisions
@@ -37,6 +37,10 @@ export const betterAuthSeedInitialUserGenerator = createGenerator({
37
37
  name: 'INITIAL_USER_PASSWORD',
38
38
  exampleValue: 'password',
39
39
  });
40
+ prismaSeed.addSeedEnvField({
41
+ name: 'INITIAL_USER_NAME',
42
+ exampleValue: 'Admin',
43
+ });
40
44
  },
41
45
  }),
42
46
  main: createGeneratorTask({
@@ -6,7 +6,8 @@ import type { User } from '%prismaGeneratedImports';
6
6
  import { prisma } from '%prismaImports';
7
7
  import { hashPassword } from 'better-auth/crypto';
8
8
 
9
- const { INITIAL_USER_EMAIL, INITIAL_USER_PASSWORD } = process.env;
9
+ const { INITIAL_USER_EMAIL, INITIAL_USER_PASSWORD, INITIAL_USER_NAME } =
10
+ process.env;
10
11
  const INITIAL_USER_ROLES: AuthRole[] = TPL_INITIAL_USER_ROLES;
11
12
 
12
13
  /**
@@ -33,7 +34,7 @@ export async function seedInitialUser(): Promise<User | undefined> {
33
34
 
34
35
  user = await prisma.user.create({
35
36
  data: {
36
- name: INITIAL_USER_EMAIL.split('@')[0] ?? 'Admin',
37
+ name: INITIAL_USER_NAME ? INITIAL_USER_NAME : 'Admin',
37
38
  email: INITIAL_USER_EMAIL,
38
39
  emailVerified: true,
39
40
  accounts: {
@@ -35,10 +35,6 @@ export declare const betterAuthPagesGenerator: import("@baseplate-dev/sync").Gen
35
35
  AutocompleteValue: {};
36
36
  Badge: {};
37
37
  badgeVariants: {};
38
- BadgeWithIcon: {};
39
- BadgeWithIconProps: {
40
- isTypeOnly: true;
41
- };
42
38
  Breadcrumb: {};
43
39
  BreadcrumbEllipsis: {};
44
40
  BreadcrumbItem: {};
@@ -58,7 +54,6 @@ export declare const betterAuthPagesGenerator: import("@baseplate-dev/sync").Gen
58
54
  Checkbox: {};
59
55
  CheckboxField: {};
60
56
  CheckboxFieldController: {};
61
- CheckedInput: {};
62
57
  CircularProgress: {};
63
58
  cn: {};
64
59
  Collapsible: {};
@@ -149,10 +144,8 @@ export declare const betterAuthPagesGenerator: import("@baseplate-dev/sync").Gen
149
144
  ItemTitle: {};
150
145
  itemVariants: {};
151
146
  Label: {};
152
- LinkButton: {};
153
147
  Loader: {};
154
148
  mergeRefs: {};
155
- Modal: {};
156
149
  MultiComboboxField: {};
157
150
  MultiComboboxFieldController: {};
158
151
  MultiComboboxFieldProps: {
@@ -170,19 +163,21 @@ export declare const betterAuthPagesGenerator: import("@baseplate-dev/sync").Gen
170
163
  NavigationMenuList: {};
171
164
  NavigationMenuTrigger: {};
172
165
  navigationMenuTriggerStyle: {};
173
- NavigationMenuViewport: {};
174
166
  NotFoundCard: {};
167
+ NumberField: {};
168
+ NumberFieldController: {};
175
169
  Popover: {};
176
- PopoverAnchor: {};
177
170
  PopoverContent: {};
178
171
  PopoverTrigger: {};
179
- ReactDatePickerInput: {};
180
- ReactSelectInput: {};
172
+ RadioField: {};
173
+ RadioFieldController: {};
174
+ RadioOptionProps: {
175
+ isTypeOnly: true;
176
+ };
181
177
  ScrollArea: {};
182
178
  Select: {};
183
179
  SelectField: {};
184
180
  SelectFieldController: {};
185
- SelectInput: {};
186
181
  SelectOptionProps: {
187
182
  isTypeOnly: true;
188
183
  };
@@ -235,8 +230,6 @@ export declare const betterAuthPagesGenerator: import("@baseplate-dev/sync").Gen
235
230
  Textarea: {};
236
231
  TextareaField: {};
237
232
  TextareaFieldController: {};
238
- TextAreaInput: {};
239
- TextInput: {};
240
233
  Toaster: {};
241
234
  Tooltip: {};
242
235
  TooltipContent: {};