@tulip-systems/core 0.2.0

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 (1146) hide show
  1. package/dist/auth/client.d.ts +7 -0
  2. package/dist/auth/client.js +8 -0
  3. package/dist/auth/server.d.ts +5 -0
  4. package/dist/auth/server.js +6 -0
  5. package/dist/auth.d.ts +4 -0
  6. package/dist/auth.js +5 -0
  7. package/dist/commands/client.d.ts +16 -0
  8. package/dist/commands/client.js +17 -0
  9. package/dist/commands/server.d.ts +1 -0
  10. package/dist/commands/server.js +1 -0
  11. package/dist/commands.d.ts +3 -0
  12. package/dist/commands.js +3 -0
  13. package/dist/components/client.d.ts +34 -0
  14. package/dist/components/client.js +35 -0
  15. package/dist/components/common/icons.d.ts +57 -0
  16. package/dist/components/common/icons.d.ts.map +1 -0
  17. package/dist/components/common/icons.js +118 -0
  18. package/dist/components/common/icons.js.map +1 -0
  19. package/dist/components/common/status.d.ts +53 -0
  20. package/dist/components/common/status.d.ts.map +1 -0
  21. package/dist/components/common/status.js +56 -0
  22. package/dist/components/common/status.js.map +1 -0
  23. package/dist/components/editor/components/block-dropdown.js +83 -0
  24. package/dist/components/editor/components/block-dropdown.js.map +1 -0
  25. package/dist/components/editor/components/content.client.d.ts +7 -0
  26. package/dist/components/editor/components/content.client.d.ts.map +1 -0
  27. package/dist/components/editor/components/content.client.js +18 -0
  28. package/dist/components/editor/components/content.client.js.map +1 -0
  29. package/dist/components/editor/components/fixed-menu.client.d.ts +7 -0
  30. package/dist/components/editor/components/fixed-menu.client.d.ts.map +1 -0
  31. package/dist/components/editor/components/fixed-menu.client.js +134 -0
  32. package/dist/components/editor/components/fixed-menu.client.js.map +1 -0
  33. package/dist/components/editor/context.client.d.ts +32 -0
  34. package/dist/components/editor/context.client.d.ts.map +1 -0
  35. package/dist/components/editor/context.client.js +46 -0
  36. package/dist/components/editor/context.client.js.map +1 -0
  37. package/dist/components/editor/index.client.d.ts +11 -0
  38. package/dist/components/editor/index.client.d.ts.map +1 -0
  39. package/dist/components/editor/index.client.js +17 -0
  40. package/dist/components/editor/index.client.js.map +1 -0
  41. package/dist/components/editor/preview.client.d.ts +12 -0
  42. package/dist/components/editor/preview.client.d.ts.map +1 -0
  43. package/dist/components/editor/preview.client.js +20 -0
  44. package/dist/components/editor/preview.client.js.map +1 -0
  45. package/dist/components/emails/forget-password-email.js +52 -0
  46. package/dist/components/emails/forget-password-email.js.map +1 -0
  47. package/dist/components/header/back-button.client.d.ts +10 -0
  48. package/dist/components/header/back-button.client.d.ts.map +1 -0
  49. package/dist/components/header/back-button.client.js +44 -0
  50. package/dist/components/header/back-button.client.js.map +1 -0
  51. package/dist/components/header/bottom-bar.client.d.ts +29 -0
  52. package/dist/components/header/bottom-bar.client.d.ts.map +1 -0
  53. package/dist/components/header/bottom-bar.client.js +31 -0
  54. package/dist/components/header/bottom-bar.client.js.map +1 -0
  55. package/dist/components/header/breadcrumbs.client.d.ts +35 -0
  56. package/dist/components/header/breadcrumbs.client.d.ts.map +1 -0
  57. package/dist/components/header/breadcrumbs.client.js +64 -0
  58. package/dist/components/header/breadcrumbs.client.js.map +1 -0
  59. package/dist/components/header/header.client.d.ts +12 -0
  60. package/dist/components/header/header.client.d.ts.map +1 -0
  61. package/dist/components/header/header.client.js +15 -0
  62. package/dist/components/header/header.client.js.map +1 -0
  63. package/dist/components/header/indicator.client.js +26 -0
  64. package/dist/components/header/indicator.client.js.map +1 -0
  65. package/dist/components/header/mobile-nav-switcher.client.d.ts +10 -0
  66. package/dist/components/header/mobile-nav-switcher.client.d.ts.map +1 -0
  67. package/dist/components/header/mobile-nav-switcher.client.js +20 -0
  68. package/dist/components/header/mobile-nav-switcher.client.js.map +1 -0
  69. package/dist/components/header/top-bar.client.d.ts +43 -0
  70. package/dist/components/header/top-bar.client.d.ts.map +1 -0
  71. package/dist/components/header/top-bar.client.js +48 -0
  72. package/dist/components/header/top-bar.client.js.map +1 -0
  73. package/dist/components/layouts/admin-content.client.js +24 -0
  74. package/dist/components/layouts/admin-content.client.js.map +1 -0
  75. package/dist/components/layouts/admin-layout.server.d.ts +14 -0
  76. package/dist/components/layouts/admin-layout.server.d.ts.map +1 -0
  77. package/dist/components/layouts/admin-layout.server.js +26 -0
  78. package/dist/components/layouts/admin-layout.server.js.map +1 -0
  79. package/dist/components/layouts/admin-loading.d.ts +8 -0
  80. package/dist/components/layouts/admin-loading.d.ts.map +1 -0
  81. package/dist/components/layouts/admin-loading.js +14 -0
  82. package/dist/components/layouts/admin-loading.js.map +1 -0
  83. package/dist/components/layouts/admin-sidebar-context.client.js +28 -0
  84. package/dist/components/layouts/admin-sidebar-context.client.js.map +1 -0
  85. package/dist/components/layouts/admin-sidebar-header.client.js +76 -0
  86. package/dist/components/layouts/admin-sidebar-header.client.js.map +1 -0
  87. package/dist/components/layouts/admin-sidebar.client.js +51 -0
  88. package/dist/components/layouts/admin-sidebar.client.js.map +1 -0
  89. package/dist/components/layouts/empty-page.d.ts +31 -0
  90. package/dist/components/layouts/empty-page.d.ts.map +1 -0
  91. package/dist/components/layouts/empty-page.js +29 -0
  92. package/dist/components/layouts/empty-page.js.map +1 -0
  93. package/dist/components/layouts/list-layout.d.ts +12 -0
  94. package/dist/components/layouts/list-layout.d.ts.map +1 -0
  95. package/dist/components/layouts/list-layout.js +15 -0
  96. package/dist/components/layouts/list-layout.js.map +1 -0
  97. package/dist/components/layouts/not-found-page.d.ts +7 -0
  98. package/dist/components/layouts/not-found-page.d.ts.map +1 -0
  99. package/dist/components/layouts/not-found-page.js +14 -0
  100. package/dist/components/layouts/not-found-page.js.map +1 -0
  101. package/dist/components/layouts/not-found-section.js +30 -0
  102. package/dist/components/layouts/not-found-section.js.map +1 -0
  103. package/dist/components/layouts/providers.client.d.ts +10 -0
  104. package/dist/components/layouts/providers.client.d.ts.map +1 -0
  105. package/dist/components/layouts/providers.client.js +32 -0
  106. package/dist/components/layouts/providers.client.js.map +1 -0
  107. package/dist/components/layouts/root-layout.server.d.ts +38 -0
  108. package/dist/components/layouts/root-layout.server.d.ts.map +1 -0
  109. package/dist/components/layouts/root-layout.server.js +47 -0
  110. package/dist/components/layouts/root-layout.server.js.map +1 -0
  111. package/dist/components/layouts/tab-layout.d.ts +23 -0
  112. package/dist/components/layouts/tab-layout.d.ts.map +1 -0
  113. package/dist/components/layouts/tab-layout.js +52 -0
  114. package/dist/components/layouts/tab-layout.js.map +1 -0
  115. package/dist/components/lists/data-list.d.ts +31 -0
  116. package/dist/components/lists/data-list.d.ts.map +1 -0
  117. package/dist/components/lists/data-list.js +36 -0
  118. package/dist/components/lists/data-list.js.map +1 -0
  119. package/dist/components/lists/data-stack.d.ts +49 -0
  120. package/dist/components/lists/data-stack.d.ts.map +1 -0
  121. package/dist/components/lists/data-stack.js +57 -0
  122. package/dist/components/lists/data-stack.js.map +1 -0
  123. package/dist/components/server.d.ts +3 -0
  124. package/dist/components/server.js +4 -0
  125. package/dist/components/ui/accordion.d.ts +25 -0
  126. package/dist/components/ui/accordion.d.ts.map +1 -0
  127. package/dist/components/ui/accordion.js +49 -0
  128. package/dist/components/ui/accordion.js.map +1 -0
  129. package/dist/components/ui/alert-dialog.d.ts +43 -0
  130. package/dist/components/ui/alert-dialog.d.ts.map +1 -0
  131. package/dist/components/ui/alert-dialog.js +86 -0
  132. package/dist/components/ui/alert-dialog.js.map +1 -0
  133. package/dist/components/ui/alert.d.ts +25 -0
  134. package/dist/components/ui/alert.d.ts.map +1 -0
  135. package/dist/components/ui/alert.js +39 -0
  136. package/dist/components/ui/alert.js.map +1 -0
  137. package/dist/components/ui/aspect-ratio.d.ts +8 -0
  138. package/dist/components/ui/aspect-ratio.d.ts.map +1 -0
  139. package/dist/components/ui/aspect-ratio.js +17 -0
  140. package/dist/components/ui/aspect-ratio.js.map +1 -0
  141. package/dist/components/ui/avatar.client.d.ts +20 -0
  142. package/dist/components/ui/avatar.client.d.ts.map +1 -0
  143. package/dist/components/ui/avatar.client.js +34 -0
  144. package/dist/components/ui/avatar.client.js.map +1 -0
  145. package/dist/components/ui/badge.d.ts +20 -0
  146. package/dist/components/ui/badge.d.ts.map +1 -0
  147. package/dist/components/ui/badge.js +27 -0
  148. package/dist/components/ui/badge.js.map +1 -0
  149. package/dist/components/ui/breadcrumb.d.ts +36 -0
  150. package/dist/components/ui/breadcrumb.d.ts.map +1 -0
  151. package/dist/components/ui/breadcrumb.js +72 -0
  152. package/dist/components/ui/breadcrumb.js.map +1 -0
  153. package/dist/components/ui/button.d.ts +22 -0
  154. package/dist/components/ui/button.d.ts.map +1 -0
  155. package/dist/components/ui/button.js +44 -0
  156. package/dist/components/ui/button.js.map +1 -0
  157. package/dist/components/ui/calendar.d.ts +14 -0
  158. package/dist/components/ui/calendar.d.ts.map +1 -0
  159. package/dist/components/ui/calendar.js +57 -0
  160. package/dist/components/ui/calendar.js.map +1 -0
  161. package/dist/components/ui/card.d.ts +31 -0
  162. package/dist/components/ui/card.d.ts.map +1 -0
  163. package/dist/components/ui/card.js +51 -0
  164. package/dist/components/ui/card.js.map +1 -0
  165. package/dist/components/ui/carousel.d.ts +48 -0
  166. package/dist/components/ui/carousel.d.ts.map +1 -0
  167. package/dist/components/ui/carousel.js +137 -0
  168. package/dist/components/ui/carousel.js.map +1 -0
  169. package/dist/components/ui/chart.client.d.ts +72 -0
  170. package/dist/components/ui/chart.client.d.ts.map +1 -0
  171. package/dist/components/ui/chart.client.js +144 -0
  172. package/dist/components/ui/chart.client.js.map +1 -0
  173. package/dist/components/ui/checkbox.d.ts +12 -0
  174. package/dist/components/ui/checkbox.d.ts.map +1 -0
  175. package/dist/components/ui/checkbox.js +26 -0
  176. package/dist/components/ui/checkbox.js.map +1 -0
  177. package/dist/components/ui/collapsible.client.d.ts +16 -0
  178. package/dist/components/ui/collapsible.client.d.ts.map +1 -0
  179. package/dist/components/ui/collapsible.client.js +29 -0
  180. package/dist/components/ui/collapsible.client.js.map +1 -0
  181. package/dist/components/ui/color-picker.client.d.ts +16 -0
  182. package/dist/components/ui/color-picker.client.d.ts.map +1 -0
  183. package/dist/components/ui/color-picker.client.js +39 -0
  184. package/dist/components/ui/color-picker.client.js.map +1 -0
  185. package/dist/components/ui/combobox-dropdown.client.d.ts +47 -0
  186. package/dist/components/ui/combobox-dropdown.client.d.ts.map +1 -0
  187. package/dist/components/ui/combobox-dropdown.client.js +95 -0
  188. package/dist/components/ui/combobox-dropdown.client.js.map +1 -0
  189. package/dist/components/ui/combobox.client.d.ts +31 -0
  190. package/dist/components/ui/combobox.client.d.ts.map +1 -0
  191. package/dist/components/ui/combobox.client.js +68 -0
  192. package/dist/components/ui/combobox.client.js.map +1 -0
  193. package/dist/components/ui/command.d.ts +49 -0
  194. package/dist/components/ui/command.d.ts.map +1 -0
  195. package/dist/components/ui/command.js +90 -0
  196. package/dist/components/ui/command.js.map +1 -0
  197. package/dist/components/ui/context-menu.d.ts +77 -0
  198. package/dist/components/ui/context-menu.d.ts.map +1 -0
  199. package/dist/components/ui/context-menu.js +127 -0
  200. package/dist/components/ui/context-menu.js.map +1 -0
  201. package/dist/components/ui/dialog.client.d.ts +45 -0
  202. package/dist/components/ui/dialog.client.d.ts.map +1 -0
  203. package/dist/components/ui/dialog.client.js +90 -0
  204. package/dist/components/ui/dialog.client.js.map +1 -0
  205. package/dist/components/ui/drawer.client.d.ts +45 -0
  206. package/dist/components/ui/drawer.client.d.ts.map +1 -0
  207. package/dist/components/ui/drawer.client.js +83 -0
  208. package/dist/components/ui/drawer.client.js.map +1 -0
  209. package/dist/components/ui/dropdown-menu.d.ts +78 -0
  210. package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
  211. package/dist/components/ui/dropdown-menu.js +128 -0
  212. package/dist/components/ui/dropdown-menu.js.map +1 -0
  213. package/dist/components/ui/form.client.d.ts +46 -0
  214. package/dist/components/ui/form.client.d.ts.map +1 -0
  215. package/dist/components/ui/form.client.js +93 -0
  216. package/dist/components/ui/form.client.js.map +1 -0
  217. package/dist/components/ui/hover-card.client.d.ts +20 -0
  218. package/dist/components/ui/hover-card.client.d.ts.map +1 -0
  219. package/dist/components/ui/hover-card.client.js +34 -0
  220. package/dist/components/ui/hover-card.client.js.map +1 -0
  221. package/dist/components/ui/input.d.ts +12 -0
  222. package/dist/components/ui/input.d.ts.map +1 -0
  223. package/dist/components/ui/input.js +17 -0
  224. package/dist/components/ui/input.js.map +1 -0
  225. package/dist/components/ui/label.d.ts +12 -0
  226. package/dist/components/ui/label.d.ts.map +1 -0
  227. package/dist/components/ui/label.js +20 -0
  228. package/dist/components/ui/label.js.map +1 -0
  229. package/dist/components/ui/navigation-menu.d.ts +47 -0
  230. package/dist/components/ui/navigation-menu.d.ts.map +1 -0
  231. package/dist/components/ui/navigation-menu.js +86 -0
  232. package/dist/components/ui/navigation-menu.js.map +1 -0
  233. package/dist/components/ui/pagination.d.ts +40 -0
  234. package/dist/components/ui/pagination.d.ts.map +1 -0
  235. package/dist/components/ui/pagination.js +81 -0
  236. package/dist/components/ui/pagination.js.map +1 -0
  237. package/dist/components/ui/popover.d.ts +23 -0
  238. package/dist/components/ui/popover.d.ts.map +1 -0
  239. package/dist/components/ui/popover.js +40 -0
  240. package/dist/components/ui/popover.js.map +1 -0
  241. package/dist/components/ui/progress.client.d.ts +13 -0
  242. package/dist/components/ui/progress.client.d.ts.map +1 -0
  243. package/dist/components/ui/progress.client.js +25 -0
  244. package/dist/components/ui/progress.client.js.map +1 -0
  245. package/dist/components/ui/radio-group.d.ts +16 -0
  246. package/dist/components/ui/radio-group.d.ts.map +1 -0
  247. package/dist/components/ui/radio-group.js +33 -0
  248. package/dist/components/ui/radio-group.js.map +1 -0
  249. package/dist/components/ui/resizable.client.d.ts +22 -0
  250. package/dist/components/ui/resizable.client.d.ts.map +1 -0
  251. package/dist/components/ui/resizable.client.js +38 -0
  252. package/dist/components/ui/resizable.client.js.map +1 -0
  253. package/dist/components/ui/scroll-area.d.ts +18 -0
  254. package/dist/components/ui/scroll-area.d.ts.map +1 -0
  255. package/dist/components/ui/scroll-area.js +41 -0
  256. package/dist/components/ui/scroll-area.js.map +1 -0
  257. package/dist/components/ui/select.client.d.ts +49 -0
  258. package/dist/components/ui/select.client.d.ts.map +1 -0
  259. package/dist/components/ui/select.client.js +100 -0
  260. package/dist/components/ui/select.client.js.map +1 -0
  261. package/dist/components/ui/separator.d.ts +14 -0
  262. package/dist/components/ui/separator.d.ts.map +1 -0
  263. package/dist/components/ui/separator.js +22 -0
  264. package/dist/components/ui/separator.js.map +1 -0
  265. package/dist/components/ui/sheet.client.d.ts +41 -0
  266. package/dist/components/ui/sheet.client.d.ts.map +1 -0
  267. package/dist/components/ui/sheet.client.js +84 -0
  268. package/dist/components/ui/sheet.client.js.map +1 -0
  269. package/dist/components/ui/sidebar.client.d.ts +168 -0
  270. package/dist/components/ui/sidebar.client.d.ts.map +1 -0
  271. package/dist/components/ui/sidebar.client.js +375 -0
  272. package/dist/components/ui/sidebar.client.js.map +1 -0
  273. package/dist/components/ui/skeleton.d.ts +10 -0
  274. package/dist/components/ui/skeleton.d.ts.map +1 -0
  275. package/dist/components/ui/skeleton.js +15 -0
  276. package/dist/components/ui/skeleton.js.map +1 -0
  277. package/dist/components/ui/slider.d.ts +16 -0
  278. package/dist/components/ui/slider.d.ts.map +1 -0
  279. package/dist/components/ui/slider.js +41 -0
  280. package/dist/components/ui/slider.js.map +1 -0
  281. package/dist/components/ui/sonner.client.d.ts +10 -0
  282. package/dist/components/ui/sonner.client.d.ts.map +1 -0
  283. package/dist/components/ui/sonner.client.js +26 -0
  284. package/dist/components/ui/sonner.client.js.map +1 -0
  285. package/dist/components/ui/switch.d.ts +12 -0
  286. package/dist/components/ui/switch.d.ts.map +1 -0
  287. package/dist/components/ui/switch.js +24 -0
  288. package/dist/components/ui/switch.js.map +1 -0
  289. package/dist/components/ui/tabs.d.ts +24 -0
  290. package/dist/components/ui/tabs.d.ts.map +1 -0
  291. package/dist/components/ui/tabs.js +41 -0
  292. package/dist/components/ui/tabs.js.map +1 -0
  293. package/dist/components/ui/textarea.d.ts +11 -0
  294. package/dist/components/ui/textarea.d.ts.map +1 -0
  295. package/dist/components/ui/textarea.js +16 -0
  296. package/dist/components/ui/textarea.js.map +1 -0
  297. package/dist/components/ui/time-input.client.d.ts +16 -0
  298. package/dist/components/ui/time-input.client.d.ts.map +1 -0
  299. package/dist/components/ui/time-input.client.js +53 -0
  300. package/dist/components/ui/time-input.client.js.map +1 -0
  301. package/dist/components/ui/time-picker-input.client.d.ts +15 -0
  302. package/dist/components/ui/time-picker-input.client.d.ts.map +1 -0
  303. package/dist/components/ui/time-picker-input.client.js +65 -0
  304. package/dist/components/ui/time-picker-input.client.js.map +1 -0
  305. package/dist/components/ui/toggle-group.client.d.ts +24 -0
  306. package/dist/components/ui/toggle-group.client.d.ts.map +1 -0
  307. package/dist/components/ui/toggle-group.client.js +48 -0
  308. package/dist/components/ui/toggle-group.client.js.map +1 -0
  309. package/dist/components/ui/toggle.d.ts +20 -0
  310. package/dist/components/ui/toggle.d.ts.map +1 -0
  311. package/dist/components/ui/toggle.js +42 -0
  312. package/dist/components/ui/toggle.js.map +1 -0
  313. package/dist/components/ui/tooltip.client.d.ts +24 -0
  314. package/dist/components/ui/tooltip.client.d.ts.map +1 -0
  315. package/dist/components/ui/tooltip.client.js +41 -0
  316. package/dist/components/ui/tooltip.client.js.map +1 -0
  317. package/dist/components/ui/tree.client.d.ts +43 -0
  318. package/dist/components/ui/tree.client.d.ts.map +1 -0
  319. package/dist/components/ui/tree.client.js +103 -0
  320. package/dist/components/ui/tree.client.js.map +1 -0
  321. package/dist/components.d.ts +38 -0
  322. package/dist/components.js +39 -0
  323. package/dist/config/client.d.ts +1 -0
  324. package/dist/config/client.js +1 -0
  325. package/dist/config/server.d.ts +8 -0
  326. package/dist/config/server.js +9 -0
  327. package/dist/config.d.ts +6 -0
  328. package/dist/config.js +5 -0
  329. package/dist/data-tables/client.d.ts +21 -0
  330. package/dist/data-tables/client.js +22 -0
  331. package/dist/data-tables/server.d.ts +7 -0
  332. package/dist/data-tables/server.js +8 -0
  333. package/dist/data-tables.d.ts +13 -0
  334. package/dist/data-tables.js +13 -0
  335. package/dist/inline-edit/client.d.ts +13 -0
  336. package/dist/inline-edit/client.js +14 -0
  337. package/dist/inline-edit/server.d.ts +1 -0
  338. package/dist/inline-edit/server.js +1 -0
  339. package/dist/inline-edit.d.ts +2 -0
  340. package/dist/inline-edit.js +3 -0
  341. package/dist/lib/client.d.ts +4 -0
  342. package/dist/lib/client.js +5 -0
  343. package/dist/lib/config/constants.d.ts +5 -0
  344. package/dist/lib/config/constants.d.ts.map +1 -0
  345. package/dist/lib/config/constants.js +6 -0
  346. package/dist/lib/config/constants.js.map +1 -0
  347. package/dist/lib/hooks/use-action.d.ts +18 -0
  348. package/dist/lib/hooks/use-action.d.ts.map +1 -0
  349. package/dist/lib/hooks/use-action.js +42 -0
  350. package/dist/lib/hooks/use-action.js.map +1 -0
  351. package/dist/lib/hooks/use-indicator.d.ts +32 -0
  352. package/dist/lib/hooks/use-indicator.d.ts.map +1 -0
  353. package/dist/lib/hooks/use-indicator.js +51 -0
  354. package/dist/lib/hooks/use-indicator.js.map +1 -0
  355. package/dist/lib/hooks/use-mobile.client.d.ts +7 -0
  356. package/dist/lib/hooks/use-mobile.client.d.ts.map +1 -0
  357. package/dist/lib/hooks/use-mobile.client.js +22 -0
  358. package/dist/lib/hooks/use-mobile.client.js.map +1 -0
  359. package/dist/lib/server.d.ts +1 -0
  360. package/dist/lib/server.js +1 -0
  361. package/dist/lib/types/config.d.ts +12 -0
  362. package/dist/lib/types/config.d.ts.map +1 -0
  363. package/dist/lib/utils/array-move.d.ts +11 -0
  364. package/dist/lib/utils/array-move.d.ts.map +1 -0
  365. package/dist/lib/utils/array-move.js +13 -0
  366. package/dist/lib/utils/array-move.js.map +1 -0
  367. package/dist/lib/utils/cn.d.ts +7 -0
  368. package/dist/lib/utils/cn.d.ts.map +1 -0
  369. package/dist/lib/utils/cn.js +11 -0
  370. package/dist/lib/utils/cn.js.map +1 -0
  371. package/dist/lib/utils/fonts.d.ts +8 -0
  372. package/dist/lib/utils/fonts.d.ts.map +1 -0
  373. package/dist/lib/utils/fonts.js +12 -0
  374. package/dist/lib/utils/fonts.js.map +1 -0
  375. package/dist/lib/utils/format.d.ts +41 -0
  376. package/dist/lib/utils/format.d.ts.map +1 -0
  377. package/dist/lib/utils/format.js +96 -0
  378. package/dist/lib/utils/format.js.map +1 -0
  379. package/dist/lib/utils/manifest.d.ts +9 -0
  380. package/dist/lib/utils/manifest.d.ts.map +1 -0
  381. package/dist/lib/utils/manifest.js +36 -0
  382. package/dist/lib/utils/manifest.js.map +1 -0
  383. package/dist/lib/utils/time-picker.d.ts +6 -0
  384. package/dist/lib/utils/time-picker.d.ts.map +1 -0
  385. package/dist/lib/utils/time-picker.js +104 -0
  386. package/dist/lib/utils/time-picker.js.map +1 -0
  387. package/dist/lib/utils/url.d.ts +10 -0
  388. package/dist/lib/utils/url.d.ts.map +1 -0
  389. package/dist/lib/utils/url.js +15 -0
  390. package/dist/lib/utils/url.js.map +1 -0
  391. package/dist/lib.d.ts +9 -0
  392. package/dist/lib.js +9 -0
  393. package/dist/modules/auth/components/allowed.client.d.ts +21 -0
  394. package/dist/modules/auth/components/allowed.client.d.ts.map +1 -0
  395. package/dist/modules/auth/components/allowed.client.js +16 -0
  396. package/dist/modules/auth/components/allowed.client.js.map +1 -0
  397. package/dist/modules/auth/components/allowed.server.d.ts +23 -0
  398. package/dist/modules/auth/components/allowed.server.d.ts.map +1 -0
  399. package/dist/modules/auth/components/allowed.server.js +24 -0
  400. package/dist/modules/auth/components/allowed.server.js.map +1 -0
  401. package/dist/modules/auth/components/auth-layout.server.d.ts +11 -0
  402. package/dist/modules/auth/components/auth-layout.server.d.ts.map +1 -0
  403. package/dist/modules/auth/components/auth-layout.server.js +40 -0
  404. package/dist/modules/auth/components/auth-layout.server.js.map +1 -0
  405. package/dist/modules/auth/components/forget-password-page.client.d.ts +7 -0
  406. package/dist/modules/auth/components/forget-password-page.client.d.ts.map +1 -0
  407. package/dist/modules/auth/components/forget-password-page.client.js +73 -0
  408. package/dist/modules/auth/components/forget-password-page.client.js.map +1 -0
  409. package/dist/modules/auth/components/login-page.client.d.ts +11 -0
  410. package/dist/modules/auth/components/login-page.client.d.ts.map +1 -0
  411. package/dist/modules/auth/components/login-page.client.js +111 -0
  412. package/dist/modules/auth/components/login-page.client.js.map +1 -0
  413. package/dist/modules/auth/components/reset-password-page.client.d.ts +12 -0
  414. package/dist/modules/auth/components/reset-password-page.client.d.ts.map +1 -0
  415. package/dist/modules/auth/components/reset-password-page.client.js +97 -0
  416. package/dist/modules/auth/components/reset-password-page.client.js.map +1 -0
  417. package/dist/modules/auth/components/update-password-command.d.ts +20 -0
  418. package/dist/modules/auth/components/update-password-command.d.ts.map +1 -0
  419. package/dist/modules/auth/components/update-password-command.js +50 -0
  420. package/dist/modules/auth/components/update-password-command.js.map +1 -0
  421. package/dist/modules/auth/db/schema.d.ts +739 -0
  422. package/dist/modules/auth/db/schema.d.ts.map +1 -0
  423. package/dist/modules/auth/db/schema.js +60 -0
  424. package/dist/modules/auth/db/schema.js.map +1 -0
  425. package/dist/modules/auth/handler/client.client.d.ts +3806 -0
  426. package/dist/modules/auth/handler/client.client.d.ts.map +1 -0
  427. package/dist/modules/auth/handler/client.client.js +16 -0
  428. package/dist/modules/auth/handler/client.client.js.map +1 -0
  429. package/dist/modules/auth/handler/route.server.d.ts +17 -0
  430. package/dist/modules/auth/handler/route.server.d.ts.map +1 -0
  431. package/dist/modules/auth/handler/route.server.js +32 -0
  432. package/dist/modules/auth/handler/route.server.js.map +1 -0
  433. package/dist/modules/auth/handler/server.server.js +61 -0
  434. package/dist/modules/auth/handler/server.server.js.map +1 -0
  435. package/dist/modules/auth/hooks/use-permission.client.js +52 -0
  436. package/dist/modules/auth/hooks/use-permission.client.js.map +1 -0
  437. package/dist/modules/auth/lib/helpers.server.d.ts +84 -0
  438. package/dist/modules/auth/lib/helpers.server.d.ts.map +1 -0
  439. package/dist/modules/auth/lib/helpers.server.js +45 -0
  440. package/dist/modules/auth/lib/helpers.server.js.map +1 -0
  441. package/dist/modules/auth/lib/permissions.d.ts +19 -0
  442. package/dist/modules/auth/lib/permissions.d.ts.map +1 -0
  443. package/dist/modules/auth/lib/permissions.js +15 -0
  444. package/dist/modules/auth/lib/permissions.js.map +1 -0
  445. package/dist/modules/auth/lib/utils.js +21 -0
  446. package/dist/modules/auth/lib/utils.js.map +1 -0
  447. package/dist/modules/auth/lib/validators.d.ts +64 -0
  448. package/dist/modules/auth/lib/validators.d.ts.map +1 -0
  449. package/dist/modules/auth/lib/validators.js +56 -0
  450. package/dist/modules/auth/lib/validators.js.map +1 -0
  451. package/dist/modules/commands/components/alert-dialog-command.client.d.ts +93 -0
  452. package/dist/modules/commands/components/alert-dialog-command.client.d.ts.map +1 -0
  453. package/dist/modules/commands/components/alert-dialog-command.client.js +157 -0
  454. package/dist/modules/commands/components/alert-dialog-command.client.js.map +1 -0
  455. package/dist/modules/commands/components/click-command.client.d.ts +27 -0
  456. package/dist/modules/commands/components/click-command.client.d.ts.map +1 -0
  457. package/dist/modules/commands/components/click-command.client.js +66 -0
  458. package/dist/modules/commands/components/click-command.client.js.map +1 -0
  459. package/dist/modules/commands/components/command-trigger.client.d.ts +34 -0
  460. package/dist/modules/commands/components/command-trigger.client.d.ts.map +1 -0
  461. package/dist/modules/commands/components/command-trigger.client.js +51 -0
  462. package/dist/modules/commands/components/command-trigger.client.js.map +1 -0
  463. package/dist/modules/commands/components/dialog-command.client.d.ts +68 -0
  464. package/dist/modules/commands/components/dialog-command.client.d.ts.map +1 -0
  465. package/dist/modules/commands/components/dialog-command.client.js +131 -0
  466. package/dist/modules/commands/components/dialog-command.client.js.map +1 -0
  467. package/dist/modules/commands/components/dropdown-command.client.d.ts +60 -0
  468. package/dist/modules/commands/components/dropdown-command.client.d.ts.map +1 -0
  469. package/dist/modules/commands/components/dropdown-command.client.js +130 -0
  470. package/dist/modules/commands/components/dropdown-command.client.js.map +1 -0
  471. package/dist/modules/commands/components/empty-command.client.d.ts +19 -0
  472. package/dist/modules/commands/components/empty-command.client.d.ts.map +1 -0
  473. package/dist/modules/commands/components/empty-command.client.js +57 -0
  474. package/dist/modules/commands/components/empty-command.client.js.map +1 -0
  475. package/dist/modules/commands/components/form-dialog-command.client.d.ts +100 -0
  476. package/dist/modules/commands/components/form-dialog-command.client.d.ts.map +1 -0
  477. package/dist/modules/commands/components/form-dialog-command.client.js +184 -0
  478. package/dist/modules/commands/components/form-dialog-command.client.js.map +1 -0
  479. package/dist/modules/commands/components/render-command.js +16 -0
  480. package/dist/modules/commands/components/render-command.js.map +1 -0
  481. package/dist/modules/commands/hooks/context.client.js +33 -0
  482. package/dist/modules/commands/hooks/context.client.js.map +1 -0
  483. package/dist/modules/commands/hooks/use-command-action.client.d.ts +21 -0
  484. package/dist/modules/commands/hooks/use-command-action.client.d.ts.map +1 -0
  485. package/dist/modules/commands/hooks/use-command-action.client.js +69 -0
  486. package/dist/modules/commands/hooks/use-command-action.client.js.map +1 -0
  487. package/dist/modules/commands/hooks/use-command-menu.client.d.ts +16 -0
  488. package/dist/modules/commands/hooks/use-command-menu.client.d.ts.map +1 -0
  489. package/dist/modules/commands/hooks/use-command-menu.client.js +90 -0
  490. package/dist/modules/commands/hooks/use-command-menu.client.js.map +1 -0
  491. package/dist/modules/commands/lib/definitions.d.ts +54 -0
  492. package/dist/modules/commands/lib/definitions.d.ts.map +1 -0
  493. package/dist/modules/commands/lib/factory.d.ts +24 -0
  494. package/dist/modules/commands/lib/factory.d.ts.map +1 -0
  495. package/dist/modules/commands/lib/factory.js +8 -0
  496. package/dist/modules/commands/lib/factory.js.map +1 -0
  497. package/dist/modules/commands/lib/schema.d.ts +18 -0
  498. package/dist/modules/commands/lib/schema.d.ts.map +1 -0
  499. package/dist/modules/commands/menus/context-menu.client.d.ts +27 -0
  500. package/dist/modules/commands/menus/context-menu.client.d.ts.map +1 -0
  501. package/dist/modules/commands/menus/context-menu.client.js +61 -0
  502. package/dist/modules/commands/menus/context-menu.client.js.map +1 -0
  503. package/dist/modules/commands/menus/data-table-menu.client.js +47 -0
  504. package/dist/modules/commands/menus/data-table-menu.client.js.map +1 -0
  505. package/dist/modules/commands/menus/dropdown-menu.client.d.ts +15 -0
  506. package/dist/modules/commands/menus/dropdown-menu.client.d.ts.map +1 -0
  507. package/dist/modules/commands/menus/dropdown-menu.client.js +56 -0
  508. package/dist/modules/commands/menus/dropdown-menu.client.js.map +1 -0
  509. package/dist/modules/commands/menus/inline-menu.client.d.ts +16 -0
  510. package/dist/modules/commands/menus/inline-menu.client.d.ts.map +1 -0
  511. package/dist/modules/commands/menus/inline-menu.client.js +37 -0
  512. package/dist/modules/commands/menus/inline-menu.client.js.map +1 -0
  513. package/dist/modules/commands/menus/responsive-menu.client.d.ts +9 -0
  514. package/dist/modules/commands/menus/responsive-menu.client.d.ts.map +1 -0
  515. package/dist/modules/commands/menus/responsive-menu.client.js +21 -0
  516. package/dist/modules/commands/menus/responsive-menu.client.js.map +1 -0
  517. package/dist/modules/commands/utils/archive-command.client.d.ts +33 -0
  518. package/dist/modules/commands/utils/archive-command.client.d.ts.map +1 -0
  519. package/dist/modules/commands/utils/archive-command.client.js +39 -0
  520. package/dist/modules/commands/utils/archive-command.client.js.map +1 -0
  521. package/dist/modules/commands/utils/delete-command.client.d.ts +23 -0
  522. package/dist/modules/commands/utils/delete-command.client.d.ts.map +1 -0
  523. package/dist/modules/commands/utils/delete-command.client.js +28 -0
  524. package/dist/modules/commands/utils/delete-command.client.js.map +1 -0
  525. package/dist/modules/commands/utils/send-mail-command.client.d.ts +41 -0
  526. package/dist/modules/commands/utils/send-mail-command.client.d.ts.map +1 -0
  527. package/dist/modules/commands/utils/send-mail-command.client.js +119 -0
  528. package/dist/modules/commands/utils/send-mail-command.client.js.map +1 -0
  529. package/dist/modules/config/db/create-client.js +28 -0
  530. package/dist/modules/config/db/create-client.js.map +1 -0
  531. package/dist/modules/config/db/helpers.d.ts +15 -0
  532. package/dist/modules/config/db/helpers.d.ts.map +1 -0
  533. package/dist/modules/config/db/helpers.js +16 -0
  534. package/dist/modules/config/db/helpers.js.map +1 -0
  535. package/dist/modules/config/db/types.d.ts +5 -0
  536. package/dist/modules/config/db/types.d.ts.map +1 -0
  537. package/dist/modules/config/lib/config.server.d.ts +37 -0
  538. package/dist/modules/config/lib/config.server.d.ts.map +1 -0
  539. package/dist/modules/config/lib/config.server.js +11 -0
  540. package/dist/modules/config/lib/config.server.js.map +1 -0
  541. package/dist/modules/config/lib/resolve.server.d.ts +2065 -0
  542. package/dist/modules/config/lib/resolve.server.d.ts.map +1 -0
  543. package/dist/modules/config/lib/resolve.server.js +45 -0
  544. package/dist/modules/config/lib/resolve.server.js.map +1 -0
  545. package/dist/modules/config/paths/create.server.d.ts +14 -0
  546. package/dist/modules/config/paths/create.server.d.ts.map +1 -0
  547. package/dist/modules/config/paths/create.server.js +12 -0
  548. package/dist/modules/config/paths/create.server.js.map +1 -0
  549. package/dist/modules/config/paths/get.server.js +47 -0
  550. package/dist/modules/config/paths/get.server.js.map +1 -0
  551. package/dist/modules/config/paths/types.d.ts +62 -0
  552. package/dist/modules/config/paths/types.d.ts.map +1 -0
  553. package/dist/modules/config/router/client.d.ts +11 -0
  554. package/dist/modules/config/router/client.d.ts.map +1 -0
  555. package/dist/modules/config/router/client.js +25 -0
  556. package/dist/modules/config/router/client.js.map +1 -0
  557. package/dist/modules/config/router/client.server.d.ts +25 -0
  558. package/dist/modules/config/router/client.server.d.ts.map +1 -0
  559. package/dist/modules/config/router/client.server.js +31 -0
  560. package/dist/modules/config/router/client.server.js.map +1 -0
  561. package/dist/modules/config/router/context.server.d.ts +2092 -0
  562. package/dist/modules/config/router/context.server.d.ts.map +1 -0
  563. package/dist/modules/config/router/context.server.js +23 -0
  564. package/dist/modules/config/router/context.server.js.map +1 -0
  565. package/dist/modules/config/router/error.server.d.ts +2 -0
  566. package/dist/modules/config/router/error.server.js +3 -0
  567. package/dist/modules/config/router/helpers.js +8 -0
  568. package/dist/modules/config/router/helpers.js.map +1 -0
  569. package/dist/modules/config/router/init.server.d.ts +2125 -0
  570. package/dist/modules/config/router/init.server.d.ts.map +1 -0
  571. package/dist/modules/config/router/init.server.js +53 -0
  572. package/dist/modules/config/router/init.server.js.map +1 -0
  573. package/dist/modules/config/router/query-client.d.ts +11 -0
  574. package/dist/modules/config/router/query-client.d.ts.map +1 -0
  575. package/dist/modules/config/router/query-client.js +51 -0
  576. package/dist/modules/config/router/query-client.js.map +1 -0
  577. package/dist/modules/config/router/validators.d.ts +14 -0
  578. package/dist/modules/config/router/validators.d.ts.map +1 -0
  579. package/dist/modules/config/router/validators.js +11 -0
  580. package/dist/modules/config/router/validators.js.map +1 -0
  581. package/dist/modules/data-tables/components/cell/common.client.d.ts +27 -0
  582. package/dist/modules/data-tables/components/cell/common.client.d.ts.map +1 -0
  583. package/dist/modules/data-tables/components/cell/common.client.js +36 -0
  584. package/dist/modules/data-tables/components/cell/common.client.js.map +1 -0
  585. package/dist/modules/data-tables/components/cell/index.client.d.ts +10 -0
  586. package/dist/modules/data-tables/components/cell/index.client.d.ts.map +1 -0
  587. package/dist/modules/data-tables/components/cell/index.client.js +25 -0
  588. package/dist/modules/data-tables/components/cell/index.client.js.map +1 -0
  589. package/dist/modules/data-tables/components/cell/select.client.d.ts +10 -0
  590. package/dist/modules/data-tables/components/cell/select.client.d.ts.map +1 -0
  591. package/dist/modules/data-tables/components/cell/select.client.js +37 -0
  592. package/dist/modules/data-tables/components/cell/select.client.js.map +1 -0
  593. package/dist/modules/data-tables/components/column-header.d.ts +16 -0
  594. package/dist/modules/data-tables/components/column-header.d.ts.map +1 -0
  595. package/dist/modules/data-tables/components/column-header.js +47 -0
  596. package/dist/modules/data-tables/components/column-header.js.map +1 -0
  597. package/dist/modules/data-tables/components/filters/combobox.client.d.ts +28 -0
  598. package/dist/modules/data-tables/components/filters/combobox.client.d.ts.map +1 -0
  599. package/dist/modules/data-tables/components/filters/combobox.client.js +98 -0
  600. package/dist/modules/data-tables/components/filters/combobox.client.js.map +1 -0
  601. package/dist/modules/data-tables/components/filters/slider.client.d.ts +23 -0
  602. package/dist/modules/data-tables/components/filters/slider.client.d.ts.map +1 -0
  603. package/dist/modules/data-tables/components/filters/slider.client.js +130 -0
  604. package/dist/modules/data-tables/components/filters/slider.client.js.map +1 -0
  605. package/dist/modules/data-tables/components/footer.js +30 -0
  606. package/dist/modules/data-tables/components/footer.js.map +1 -0
  607. package/dist/modules/data-tables/components/header.d.ts +41 -0
  608. package/dist/modules/data-tables/components/header.d.ts.map +1 -0
  609. package/dist/modules/data-tables/components/header.js +44 -0
  610. package/dist/modules/data-tables/components/header.js.map +1 -0
  611. package/dist/modules/data-tables/components/layout.d.ts +12 -0
  612. package/dist/modules/data-tables/components/layout.d.ts.map +1 -0
  613. package/dist/modules/data-tables/components/layout.js +15 -0
  614. package/dist/modules/data-tables/components/layout.js.map +1 -0
  615. package/dist/modules/data-tables/components/search-input.client.d.ts +7 -0
  616. package/dist/modules/data-tables/components/search-input.client.d.ts.map +1 -0
  617. package/dist/modules/data-tables/components/search-input.client.js +21 -0
  618. package/dist/modules/data-tables/components/search-input.client.js.map +1 -0
  619. package/dist/modules/data-tables/components/skeleton.d.ts +7 -0
  620. package/dist/modules/data-tables/components/skeleton.d.ts.map +1 -0
  621. package/dist/modules/data-tables/components/skeleton.js +22 -0
  622. package/dist/modules/data-tables/components/skeleton.js.map +1 -0
  623. package/dist/modules/data-tables/components/table.d.ts +34 -0
  624. package/dist/modules/data-tables/components/table.d.ts.map +1 -0
  625. package/dist/modules/data-tables/components/table.js +58 -0
  626. package/dist/modules/data-tables/components/table.js.map +1 -0
  627. package/dist/modules/data-tables/components/toolbar.d.ts +23 -0
  628. package/dist/modules/data-tables/components/toolbar.d.ts.map +1 -0
  629. package/dist/modules/data-tables/components/toolbar.js +22 -0
  630. package/dist/modules/data-tables/components/toolbar.js.map +1 -0
  631. package/dist/modules/data-tables/hooks/use-context.client.d.ts +56 -0
  632. package/dist/modules/data-tables/hooks/use-context.client.d.ts.map +1 -0
  633. package/dist/modules/data-tables/hooks/use-context.client.js +36 -0
  634. package/dist/modules/data-tables/hooks/use-context.client.js.map +1 -0
  635. package/dist/modules/data-tables/hooks/use-search.client.js +37 -0
  636. package/dist/modules/data-tables/hooks/use-search.client.js.map +1 -0
  637. package/dist/modules/data-tables/hooks/use-selection.client.js +40 -0
  638. package/dist/modules/data-tables/hooks/use-selection.client.js.map +1 -0
  639. package/dist/modules/data-tables/hooks/use-table.client.d.ts +12 -0
  640. package/dist/modules/data-tables/hooks/use-table.client.d.ts.map +1 -0
  641. package/dist/modules/data-tables/hooks/use-table.client.js +56 -0
  642. package/dist/modules/data-tables/hooks/use-table.client.js.map +1 -0
  643. package/dist/modules/data-tables/lib/converters/cursor.d.ts +19 -0
  644. package/dist/modules/data-tables/lib/converters/cursor.d.ts.map +1 -0
  645. package/dist/modules/data-tables/lib/converters/cursor.js +16 -0
  646. package/dist/modules/data-tables/lib/converters/cursor.js.map +1 -0
  647. package/dist/modules/data-tables/lib/converters/dto.d.ts +52 -0
  648. package/dist/modules/data-tables/lib/converters/dto.d.ts.map +1 -0
  649. package/dist/modules/data-tables/lib/converters/dto.js +25 -0
  650. package/dist/modules/data-tables/lib/converters/dto.js.map +1 -0
  651. package/dist/modules/data-tables/lib/converters/filter.d.ts +10 -0
  652. package/dist/modules/data-tables/lib/converters/filter.d.ts.map +1 -0
  653. package/dist/modules/data-tables/lib/converters/filter.js +14 -0
  654. package/dist/modules/data-tables/lib/converters/filter.js.map +1 -0
  655. package/dist/modules/data-tables/lib/converters/search.d.ts +17 -0
  656. package/dist/modules/data-tables/lib/converters/search.d.ts.map +1 -0
  657. package/dist/modules/data-tables/lib/converters/search.js +16 -0
  658. package/dist/modules/data-tables/lib/converters/search.js.map +1 -0
  659. package/dist/modules/data-tables/lib/converters/sorting.d.ts +15 -0
  660. package/dist/modules/data-tables/lib/converters/sorting.d.ts.map +1 -0
  661. package/dist/modules/data-tables/lib/converters/sorting.js +20 -0
  662. package/dist/modules/data-tables/lib/converters/sorting.js.map +1 -0
  663. package/dist/modules/data-tables/lib/filters/config.d.ts +11 -0
  664. package/dist/modules/data-tables/lib/filters/config.d.ts.map +1 -0
  665. package/dist/modules/data-tables/lib/filters/config.js +6 -0
  666. package/dist/modules/data-tables/lib/filters/config.js.map +1 -0
  667. package/dist/modules/data-tables/lib/filters/parsers.d.ts +32 -0
  668. package/dist/modules/data-tables/lib/filters/parsers.d.ts.map +1 -0
  669. package/dist/modules/data-tables/lib/filters/parsers.js +29 -0
  670. package/dist/modules/data-tables/lib/filters/parsers.js.map +1 -0
  671. package/dist/modules/data-tables/lib/filters/resolvers.d.ts +24 -0
  672. package/dist/modules/data-tables/lib/filters/resolvers.d.ts.map +1 -0
  673. package/dist/modules/data-tables/lib/filters/resolvers.js +49 -0
  674. package/dist/modules/data-tables/lib/filters/resolvers.js.map +1 -0
  675. package/dist/modules/data-tables/lib/helpers/create-column.js +11 -0
  676. package/dist/modules/data-tables/lib/helpers/create-column.js.map +1 -0
  677. package/dist/modules/data-tables/lib/search-params.d.ts +22 -0
  678. package/dist/modules/data-tables/lib/search-params.d.ts.map +1 -0
  679. package/dist/modules/data-tables/lib/search-params.js +17 -0
  680. package/dist/modules/data-tables/lib/search-params.js.map +1 -0
  681. package/dist/modules/data-tables/lib/types.d.ts +57 -0
  682. package/dist/modules/data-tables/lib/types.d.ts.map +1 -0
  683. package/dist/modules/data-tables/lib/validators.d.ts +21 -0
  684. package/dist/modules/data-tables/lib/validators.d.ts.map +1 -0
  685. package/dist/modules/data-tables/lib/validators.js +17 -0
  686. package/dist/modules/data-tables/lib/validators.js.map +1 -0
  687. package/dist/modules/data-tables/server/get-data.server.d.ts +30 -0
  688. package/dist/modules/data-tables/server/get-data.server.d.ts.map +1 -0
  689. package/dist/modules/data-tables/server/get-data.server.js +48 -0
  690. package/dist/modules/data-tables/server/get-data.server.js.map +1 -0
  691. package/dist/modules/data-tables/strategies/helpers/sorting.js +38 -0
  692. package/dist/modules/data-tables/strategies/helpers/sorting.js.map +1 -0
  693. package/dist/modules/data-tables/strategies/infinite/components.js +52 -0
  694. package/dist/modules/data-tables/strategies/infinite/components.js.map +1 -0
  695. package/dist/modules/data-tables/strategies/infinite/strategy.d.ts +21 -0
  696. package/dist/modules/data-tables/strategies/infinite/strategy.d.ts.map +1 -0
  697. package/dist/modules/data-tables/strategies/infinite/strategy.js +49 -0
  698. package/dist/modules/data-tables/strategies/infinite/strategy.js.map +1 -0
  699. package/dist/modules/data-tables/strategies/pagination/components.js +133 -0
  700. package/dist/modules/data-tables/strategies/pagination/components.js.map +1 -0
  701. package/dist/modules/data-tables/strategies/pagination/strategy.d.ts +13 -0
  702. package/dist/modules/data-tables/strategies/pagination/strategy.d.ts.map +1 -0
  703. package/dist/modules/data-tables/strategies/pagination/strategy.js +47 -0
  704. package/dist/modules/data-tables/strategies/pagination/strategy.js.map +1 -0
  705. package/dist/modules/data-tables/tables/data-table/components/body.js +34 -0
  706. package/dist/modules/data-tables/tables/data-table/components/body.js.map +1 -0
  707. package/dist/modules/data-tables/tables/data-table/components/header.js +14 -0
  708. package/dist/modules/data-tables/tables/data-table/components/header.js.map +1 -0
  709. package/dist/modules/data-tables/tables/data-table/components/row.js +25 -0
  710. package/dist/modules/data-tables/tables/data-table/components/row.js.map +1 -0
  711. package/dist/modules/data-tables/tables/data-table/components/table.d.ts +11 -0
  712. package/dist/modules/data-tables/tables/data-table/components/table.d.ts.map +1 -0
  713. package/dist/modules/data-tables/tables/data-table/components/table.js +38 -0
  714. package/dist/modules/data-tables/tables/data-table/components/table.js.map +1 -0
  715. package/dist/modules/data-tables/tables/inline-table/components/body.js +71 -0
  716. package/dist/modules/data-tables/tables/inline-table/components/body.js.map +1 -0
  717. package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.ts +12 -0
  718. package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.ts.map +1 -0
  719. package/dist/modules/data-tables/tables/inline-table/components/cells/common.js +16 -0
  720. package/dist/modules/data-tables/tables/inline-table/components/cells/common.js.map +1 -0
  721. package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.d.ts +10 -0
  722. package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.d.ts.map +1 -0
  723. package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.js +40 -0
  724. package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.js.map +1 -0
  725. package/dist/modules/data-tables/tables/inline-table/components/header.js +11 -0
  726. package/dist/modules/data-tables/tables/inline-table/components/header.js.map +1 -0
  727. package/dist/modules/data-tables/tables/inline-table/components/inputs/advanced-select.client.d.ts +29 -0
  728. package/dist/modules/data-tables/tables/inline-table/components/inputs/advanced-select.client.d.ts.map +1 -0
  729. package/dist/modules/data-tables/tables/inline-table/components/inputs/advanced-select.client.js +53 -0
  730. package/dist/modules/data-tables/tables/inline-table/components/inputs/advanced-select.client.js.map +1 -0
  731. package/dist/modules/data-tables/tables/inline-table/components/inputs/combobox.client.d.ts +27 -0
  732. package/dist/modules/data-tables/tables/inline-table/components/inputs/combobox.client.d.ts.map +1 -0
  733. package/dist/modules/data-tables/tables/inline-table/components/inputs/combobox.client.js +30 -0
  734. package/dist/modules/data-tables/tables/inline-table/components/inputs/combobox.client.js.map +1 -0
  735. package/dist/modules/data-tables/tables/inline-table/components/inputs/input.client.d.ts +39 -0
  736. package/dist/modules/data-tables/tables/inline-table/components/inputs/input.client.d.ts.map +1 -0
  737. package/dist/modules/data-tables/tables/inline-table/components/inputs/input.client.js +72 -0
  738. package/dist/modules/data-tables/tables/inline-table/components/inputs/input.client.js.map +1 -0
  739. package/dist/modules/data-tables/tables/inline-table/components/inputs/read-only.d.ts +12 -0
  740. package/dist/modules/data-tables/tables/inline-table/components/inputs/read-only.d.ts.map +1 -0
  741. package/dist/modules/data-tables/tables/inline-table/components/inputs/read-only.js +16 -0
  742. package/dist/modules/data-tables/tables/inline-table/components/inputs/read-only.js.map +1 -0
  743. package/dist/modules/data-tables/tables/inline-table/components/inputs/select.client.d.ts +33 -0
  744. package/dist/modules/data-tables/tables/inline-table/components/inputs/select.client.d.ts.map +1 -0
  745. package/dist/modules/data-tables/tables/inline-table/components/inputs/select.client.js +53 -0
  746. package/dist/modules/data-tables/tables/inline-table/components/inputs/select.client.js.map +1 -0
  747. package/dist/modules/data-tables/tables/inline-table/components/row.client.js +38 -0
  748. package/dist/modules/data-tables/tables/inline-table/components/row.client.js.map +1 -0
  749. package/dist/modules/data-tables/tables/inline-table/components/table.d.ts +16 -0
  750. package/dist/modules/data-tables/tables/inline-table/components/table.d.ts.map +1 -0
  751. package/dist/modules/data-tables/tables/inline-table/components/table.js +47 -0
  752. package/dist/modules/data-tables/tables/inline-table/components/table.js.map +1 -0
  753. package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.ts +47 -0
  754. package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.ts.map +1 -0
  755. package/dist/modules/data-tables/tables/inline-table/hooks/context.client.js +59 -0
  756. package/dist/modules/data-tables/tables/inline-table/hooks/context.client.js.map +1 -0
  757. package/dist/modules/data-tables/tables/inline-table/hooks/use-hotkeys.client.js +27 -0
  758. package/dist/modules/data-tables/tables/inline-table/hooks/use-hotkeys.client.js.map +1 -0
  759. package/dist/modules/data-tables/tables/inline-table/hooks/use-input.client.d.ts +15 -0
  760. package/dist/modules/data-tables/tables/inline-table/hooks/use-input.client.d.ts.map +1 -0
  761. package/dist/modules/data-tables/tables/inline-table/hooks/use-input.client.js +53 -0
  762. package/dist/modules/data-tables/tables/inline-table/hooks/use-input.client.js.map +1 -0
  763. package/dist/modules/inline-edit/components/combobox-dropdown.client.d.ts +17 -0
  764. package/dist/modules/inline-edit/components/combobox-dropdown.client.d.ts.map +1 -0
  765. package/dist/modules/inline-edit/components/combobox-dropdown.client.js +26 -0
  766. package/dist/modules/inline-edit/components/combobox-dropdown.client.js.map +1 -0
  767. package/dist/modules/inline-edit/components/combobox.client.d.ts +15 -0
  768. package/dist/modules/inline-edit/components/combobox.client.d.ts.map +1 -0
  769. package/dist/modules/inline-edit/components/combobox.client.js +28 -0
  770. package/dist/modules/inline-edit/components/combobox.client.js.map +1 -0
  771. package/dist/modules/inline-edit/components/date-input.client.d.ts +14 -0
  772. package/dist/modules/inline-edit/components/date-input.client.d.ts.map +1 -0
  773. package/dist/modules/inline-edit/components/date-input.client.js +79 -0
  774. package/dist/modules/inline-edit/components/date-input.client.js.map +1 -0
  775. package/dist/modules/inline-edit/components/date-picker.client.d.ts +16 -0
  776. package/dist/modules/inline-edit/components/date-picker.client.d.ts.map +1 -0
  777. package/dist/modules/inline-edit/components/date-picker.client.js +51 -0
  778. package/dist/modules/inline-edit/components/date-picker.client.js.map +1 -0
  779. package/dist/modules/inline-edit/components/editor.client.d.ts +16 -0
  780. package/dist/modules/inline-edit/components/editor.client.d.ts.map +1 -0
  781. package/dist/modules/inline-edit/components/editor.client.js +35 -0
  782. package/dist/modules/inline-edit/components/editor.client.js.map +1 -0
  783. package/dist/modules/inline-edit/components/input-toggle.client.d.ts +17 -0
  784. package/dist/modules/inline-edit/components/input-toggle.client.d.ts.map +1 -0
  785. package/dist/modules/inline-edit/components/input-toggle.client.js +47 -0
  786. package/dist/modules/inline-edit/components/input-toggle.client.js.map +1 -0
  787. package/dist/modules/inline-edit/components/input.client.d.ts +30 -0
  788. package/dist/modules/inline-edit/components/input.client.d.ts.map +1 -0
  789. package/dist/modules/inline-edit/components/input.client.js +49 -0
  790. package/dist/modules/inline-edit/components/input.client.js.map +1 -0
  791. package/dist/modules/inline-edit/components/richtext.client.d.ts +14 -0
  792. package/dist/modules/inline-edit/components/richtext.client.d.ts.map +1 -0
  793. package/dist/modules/inline-edit/components/richtext.client.js +31 -0
  794. package/dist/modules/inline-edit/components/richtext.client.js.map +1 -0
  795. package/dist/modules/inline-edit/components/select.client.d.ts +22 -0
  796. package/dist/modules/inline-edit/components/select.client.d.ts.map +1 -0
  797. package/dist/modules/inline-edit/components/select.client.js +39 -0
  798. package/dist/modules/inline-edit/components/select.client.js.map +1 -0
  799. package/dist/modules/inline-edit/components/switch.client.d.ts +14 -0
  800. package/dist/modules/inline-edit/components/switch.client.d.ts.map +1 -0
  801. package/dist/modules/inline-edit/components/switch.client.js +27 -0
  802. package/dist/modules/inline-edit/components/switch.client.js.map +1 -0
  803. package/dist/modules/inline-edit/components/toggle.client.d.ts +16 -0
  804. package/dist/modules/inline-edit/components/toggle.client.d.ts.map +1 -0
  805. package/dist/modules/inline-edit/components/toggle.client.js +34 -0
  806. package/dist/modules/inline-edit/components/toggle.client.js.map +1 -0
  807. package/dist/modules/inline-edit/hooks/context.client.d.ts +28 -0
  808. package/dist/modules/inline-edit/hooks/context.client.d.ts.map +1 -0
  809. package/dist/modules/inline-edit/hooks/context.client.js +29 -0
  810. package/dist/modules/inline-edit/hooks/context.client.js.map +1 -0
  811. package/dist/modules/inline-edit/hooks/use-inline.client.d.ts +16 -0
  812. package/dist/modules/inline-edit/hooks/use-inline.client.d.ts.map +1 -0
  813. package/dist/modules/inline-edit/hooks/use-inline.client.js +57 -0
  814. package/dist/modules/inline-edit/hooks/use-inline.client.js.map +1 -0
  815. package/dist/modules/inline-edit/lib/validators.d.ts +58 -0
  816. package/dist/modules/inline-edit/lib/validators.d.ts.map +1 -0
  817. package/dist/modules/inline-edit/lib/validators.js +35 -0
  818. package/dist/modules/inline-edit/lib/validators.js.map +1 -0
  819. package/dist/modules/uploads/components/button.client.d.ts +12 -0
  820. package/dist/modules/uploads/components/button.client.d.ts.map +1 -0
  821. package/dist/modules/uploads/components/button.client.js +35 -0
  822. package/dist/modules/uploads/components/button.client.js.map +1 -0
  823. package/dist/modules/uploads/components/images/grid.client.d.ts +11 -0
  824. package/dist/modules/uploads/components/images/grid.client.d.ts.map +1 -0
  825. package/dist/modules/uploads/components/images/grid.client.js +120 -0
  826. package/dist/modules/uploads/components/images/grid.client.js.map +1 -0
  827. package/dist/modules/uploads/components/images/input.client.d.ts +16 -0
  828. package/dist/modules/uploads/components/images/input.client.d.ts.map +1 -0
  829. package/dist/modules/uploads/components/images/input.client.js +28 -0
  830. package/dist/modules/uploads/components/images/input.client.js.map +1 -0
  831. package/dist/modules/uploads/components/preview-dialog.client.d.ts +16 -0
  832. package/dist/modules/uploads/components/preview-dialog.client.d.ts.map +1 -0
  833. package/dist/modules/uploads/components/preview-dialog.client.js +22 -0
  834. package/dist/modules/uploads/components/preview-dialog.client.js.map +1 -0
  835. package/dist/modules/uploads/components/zone.client.d.ts +21 -0
  836. package/dist/modules/uploads/components/zone.client.d.ts.map +1 -0
  837. package/dist/modules/uploads/components/zone.client.js +39 -0
  838. package/dist/modules/uploads/components/zone.client.js.map +1 -0
  839. package/dist/modules/uploads/hooks/use-upload-image.client.d.ts +33 -0
  840. package/dist/modules/uploads/hooks/use-upload-image.client.d.ts.map +1 -0
  841. package/dist/modules/uploads/hooks/use-upload-image.client.js +101 -0
  842. package/dist/modules/uploads/hooks/use-upload-image.client.js.map +1 -0
  843. package/dist/modules/uploads/hooks/use-upload-zone.client.d.ts +39 -0
  844. package/dist/modules/uploads/hooks/use-upload-zone.client.d.ts.map +1 -0
  845. package/dist/modules/uploads/hooks/use-upload-zone.client.js +20 -0
  846. package/dist/modules/uploads/hooks/use-upload-zone.client.js.map +1 -0
  847. package/dist/modules/uploads/lib/constants.d.ts +9 -0
  848. package/dist/modules/uploads/lib/constants.d.ts.map +1 -0
  849. package/dist/modules/uploads/lib/constants.js +17 -0
  850. package/dist/modules/uploads/lib/constants.js.map +1 -0
  851. package/dist/modules/uploads/lib/filters.d.ts +10 -0
  852. package/dist/modules/uploads/lib/filters.d.ts.map +1 -0
  853. package/dist/modules/uploads/lib/filters.js +10 -0
  854. package/dist/modules/uploads/lib/filters.js.map +1 -0
  855. package/dist/modules/uploads/lib/helpers.d.ts +32 -0
  856. package/dist/modules/uploads/lib/helpers.d.ts.map +1 -0
  857. package/dist/modules/uploads/lib/helpers.js +73 -0
  858. package/dist/modules/uploads/lib/helpers.js.map +1 -0
  859. package/dist/modules/uploads/lib/proxy.server.d.ts +46 -0
  860. package/dist/modules/uploads/lib/proxy.server.d.ts.map +1 -0
  861. package/dist/modules/uploads/lib/proxy.server.js +96 -0
  862. package/dist/modules/uploads/lib/proxy.server.js.map +1 -0
  863. package/dist/modules/uploads/lib/route.server.d.ts +43 -0
  864. package/dist/modules/uploads/lib/route.server.d.ts.map +1 -0
  865. package/dist/modules/uploads/lib/route.server.js +72 -0
  866. package/dist/modules/uploads/lib/route.server.js.map +1 -0
  867. package/dist/modules/uploads/lib/router.server.d.ts +12765 -0
  868. package/dist/modules/uploads/lib/router.server.d.ts.map +1 -0
  869. package/dist/modules/uploads/lib/router.server.js +177 -0
  870. package/dist/modules/uploads/lib/router.server.js.map +1 -0
  871. package/dist/modules/uploads/lib/schema.d.ts +815 -0
  872. package/dist/modules/uploads/lib/schema.d.ts.map +1 -0
  873. package/dist/modules/uploads/lib/schema.js +66 -0
  874. package/dist/modules/uploads/lib/schema.js.map +1 -0
  875. package/dist/modules/uploads/lib/validators.d.ts +939 -0
  876. package/dist/modules/uploads/lib/validators.d.ts.map +1 -0
  877. package/dist/modules/uploads/lib/validators.js +25 -0
  878. package/dist/modules/uploads/lib/validators.js.map +1 -0
  879. package/dist/uploads/client.d.ts +8 -0
  880. package/dist/uploads/client.js +9 -0
  881. package/dist/uploads/server.d.ts +4 -0
  882. package/dist/uploads/server.js +5 -0
  883. package/dist/uploads.d.ts +6 -0
  884. package/dist/uploads.js +7 -0
  885. package/package.json +164 -0
  886. package/src/components/common/icons.tsx +159 -0
  887. package/src/components/common/status.tsx +88 -0
  888. package/src/components/editor/components/block-dropdown.tsx +107 -0
  889. package/src/components/editor/components/content.client.tsx +16 -0
  890. package/src/components/editor/components/fixed-menu.client.tsx +143 -0
  891. package/src/components/editor/components/spinner.tsx +28 -0
  892. package/src/components/editor/context.client.tsx +116 -0
  893. package/src/components/editor/index.client.tsx +13 -0
  894. package/src/components/editor/preview.client.tsx +13 -0
  895. package/src/components/editor/utils.ts +201 -0
  896. package/src/components/emails/forget-password-email.tsx +70 -0
  897. package/src/components/entry.client.ts +48 -0
  898. package/src/components/entry.server.ts +5 -0
  899. package/src/components/entry.ts +52 -0
  900. package/src/components/forms/form-dialog.tsx +141 -0
  901. package/src/components/forms/form-layout.tsx +56 -0
  902. package/src/components/header/back-button.client.tsx +54 -0
  903. package/src/components/header/bottom-bar.client.tsx +55 -0
  904. package/src/components/header/breadcrumbs.client.tsx +99 -0
  905. package/src/components/header/header.client.tsx +10 -0
  906. package/src/components/header/indicator.client.tsx +28 -0
  907. package/src/components/header/mobile-nav-switcher.client.tsx +22 -0
  908. package/src/components/header/top-bar.client.tsx +134 -0
  909. package/src/components/layouts/admin-content.client.tsx +23 -0
  910. package/src/components/layouts/admin-layout.server.tsx +31 -0
  911. package/src/components/layouts/admin-loading.tsx +11 -0
  912. package/src/components/layouts/admin-sidebar-context.client.tsx +34 -0
  913. package/src/components/layouts/admin-sidebar-header.client.tsx +98 -0
  914. package/src/components/layouts/admin-sidebar.client.tsx +88 -0
  915. package/src/components/layouts/empty-page.tsx +59 -0
  916. package/src/components/layouts/list-layout.tsx +10 -0
  917. package/src/components/layouts/not-allowed-page.tsx +44 -0
  918. package/src/components/layouts/not-found-page.tsx +9 -0
  919. package/src/components/layouts/not-found-section.tsx +21 -0
  920. package/src/components/layouts/providers.client.tsx +29 -0
  921. package/src/components/layouts/root-layout.server.tsx +50 -0
  922. package/src/components/layouts/tab-layout.tsx +68 -0
  923. package/src/components/lists/data-list.tsx +48 -0
  924. package/src/components/lists/data-stack.tsx +71 -0
  925. package/src/components/ui/accordion.tsx +64 -0
  926. package/src/components/ui/alert-dialog.tsx +133 -0
  927. package/src/components/ui/alert.tsx +60 -0
  928. package/src/components/ui/aspect-ratio.tsx +9 -0
  929. package/src/components/ui/avatar.client.tsx +41 -0
  930. package/src/components/ui/badge.tsx +39 -0
  931. package/src/components/ui/breadcrumb.tsx +102 -0
  932. package/src/components/ui/button.tsx +56 -0
  933. package/src/components/ui/calendar.tsx +72 -0
  934. package/src/components/ui/card.tsx +58 -0
  935. package/src/components/ui/carousel.tsx +230 -0
  936. package/src/components/ui/chart.client.tsx +322 -0
  937. package/src/components/ui/checkbox.tsx +29 -0
  938. package/src/components/ui/collapsible.client.tsx +21 -0
  939. package/src/components/ui/color-picker.client.tsx +50 -0
  940. package/src/components/ui/combobox-dropdown.client.tsx +156 -0
  941. package/src/components/ui/combobox.client.tsx +110 -0
  942. package/src/components/ui/command.tsx +154 -0
  943. package/src/components/ui/context-menu.tsx +224 -0
  944. package/src/components/ui/dialog.client.tsx +121 -0
  945. package/src/components/ui/drawer.client.tsx +121 -0
  946. package/src/components/ui/dropdown-menu.tsx +228 -0
  947. package/src/components/ui/form.client.tsx +152 -0
  948. package/src/components/ui/hover-card.client.tsx +36 -0
  949. package/src/components/ui/input.tsx +21 -0
  950. package/src/components/ui/label.tsx +21 -0
  951. package/src/components/ui/navigation-menu.tsx +163 -0
  952. package/src/components/ui/pagination.tsx +106 -0
  953. package/src/components/ui/popover.tsx +42 -0
  954. package/src/components/ui/progress.client.tsx +28 -0
  955. package/src/components/ui/radio-group.tsx +45 -0
  956. package/src/components/ui/resizable.client.tsx +51 -0
  957. package/src/components/ui/scroll-area.tsx +56 -0
  958. package/src/components/ui/select.client.tsx +166 -0
  959. package/src/components/ui/separator.tsx +28 -0
  960. package/src/components/ui/sheet.client.tsx +128 -0
  961. package/src/components/ui/sidebar.client.tsx +696 -0
  962. package/src/components/ui/skeleton.tsx +13 -0
  963. package/src/components/ui/slider.tsx +58 -0
  964. package/src/components/ui/sonner.client.tsx +28 -0
  965. package/src/components/ui/switch.tsx +28 -0
  966. package/src/components/ui/tabs.tsx +54 -0
  967. package/src/components/ui/textarea.tsx +18 -0
  968. package/src/components/ui/time-input.client.tsx +56 -0
  969. package/src/components/ui/time-picker-input.client.tsx +107 -0
  970. package/src/components/ui/toggle-group.client.tsx +69 -0
  971. package/src/components/ui/toggle.tsx +46 -0
  972. package/src/components/ui/tooltip.client.tsx +57 -0
  973. package/src/components/ui/tree.client.tsx +173 -0
  974. package/src/entry.ts +104 -0
  975. package/src/lib/config/constants.ts +1 -0
  976. package/src/lib/entry.client.ts +6 -0
  977. package/src/lib/entry.server.ts +0 -0
  978. package/src/lib/entry.ts +19 -0
  979. package/src/lib/hooks/use-action.ts +54 -0
  980. package/src/lib/hooks/use-indicator.tsx +62 -0
  981. package/src/lib/hooks/use-mobile.client.tsx +21 -0
  982. package/src/lib/types/config.ts +8 -0
  983. package/src/lib/utils/array-move.ts +8 -0
  984. package/src/lib/utils/cn.ts +6 -0
  985. package/src/lib/utils/fonts.ts +8 -0
  986. package/src/lib/utils/format.ts +104 -0
  987. package/src/lib/utils/manifest.ts +35 -0
  988. package/src/lib/utils/time-picker.ts +139 -0
  989. package/src/lib/utils/url.ts +12 -0
  990. package/src/modules/auth/components/allowed.client.tsx +22 -0
  991. package/src/modules/auth/components/allowed.server.tsx +41 -0
  992. package/src/modules/auth/components/auth-layout.server.tsx +31 -0
  993. package/src/modules/auth/components/forget-password-page.client.tsx +78 -0
  994. package/src/modules/auth/components/login-page.client.tsx +118 -0
  995. package/src/modules/auth/components/reset-password-page.client.tsx +107 -0
  996. package/src/modules/auth/components/update-password-command.tsx +79 -0
  997. package/src/modules/auth/db/schema.ts +76 -0
  998. package/src/modules/auth/entry.client.ts +6 -0
  999. package/src/modules/auth/entry.server.ts +4 -0
  1000. package/src/modules/auth/entry.ts +3 -0
  1001. package/src/modules/auth/handler/client.client.ts +24 -0
  1002. package/src/modules/auth/handler/route.server.ts +32 -0
  1003. package/src/modules/auth/handler/server.server.ts +82 -0
  1004. package/src/modules/auth/hooks/use-permission.client.ts +48 -0
  1005. package/src/modules/auth/lib/helpers.server.ts +59 -0
  1006. package/src/modules/auth/lib/permissions.ts +19 -0
  1007. package/src/modules/auth/lib/utils.ts +17 -0
  1008. package/src/modules/auth/lib/validators.ts +91 -0
  1009. package/src/modules/commands/components/alert-dialog-command.client.tsx +284 -0
  1010. package/src/modules/commands/components/click-command.client.tsx +81 -0
  1011. package/src/modules/commands/components/command-trigger.client.tsx +69 -0
  1012. package/src/modules/commands/components/dialog-command.client.tsx +161 -0
  1013. package/src/modules/commands/components/dropdown-command.client.tsx +200 -0
  1014. package/src/modules/commands/components/empty-command.client.tsx +63 -0
  1015. package/src/modules/commands/components/form-dialog-command.client.tsx +243 -0
  1016. package/src/modules/commands/components/render-command.tsx +20 -0
  1017. package/src/modules/commands/entry.client.ts +15 -0
  1018. package/src/modules/commands/entry.server.ts +0 -0
  1019. package/src/modules/commands/entry.ts +2 -0
  1020. package/src/modules/commands/hooks/context.client.tsx +38 -0
  1021. package/src/modules/commands/hooks/use-command-action.client.tsx +95 -0
  1022. package/src/modules/commands/hooks/use-command-menu.client.tsx +260 -0
  1023. package/src/modules/commands/lib/definitions.ts +43 -0
  1024. package/src/modules/commands/lib/factory.ts +5 -0
  1025. package/src/modules/commands/lib/schema.ts +23 -0
  1026. package/src/modules/commands/menus/context-menu.client.tsx +69 -0
  1027. package/src/modules/commands/menus/data-table-menu.client.tsx +46 -0
  1028. package/src/modules/commands/menus/dropdown-menu.client.tsx +50 -0
  1029. package/src/modules/commands/menus/inline-menu.client.tsx +34 -0
  1030. package/src/modules/commands/menus/responsive-menu.client.tsx +18 -0
  1031. package/src/modules/commands/utils/archive-command.client.tsx +53 -0
  1032. package/src/modules/commands/utils/delete-command.client.tsx +58 -0
  1033. package/src/modules/commands/utils/send-mail-command.client.tsx +187 -0
  1034. package/src/modules/config/db/create-client.ts +33 -0
  1035. package/src/modules/config/db/helpers.ts +18 -0
  1036. package/src/modules/config/db/types.ts +1 -0
  1037. package/src/modules/config/entry.client.ts +0 -0
  1038. package/src/modules/config/entry.server.ts +14 -0
  1039. package/src/modules/config/entry.ts +5 -0
  1040. package/src/modules/config/lib/config.server.ts +40 -0
  1041. package/src/modules/config/lib/resolve.server.ts +75 -0
  1042. package/src/modules/config/paths/create.server.ts +10 -0
  1043. package/src/modules/config/paths/get.server.ts +69 -0
  1044. package/src/modules/config/paths/types.ts +64 -0
  1045. package/src/modules/config/router/client.server.tsx +57 -0
  1046. package/src/modules/config/router/client.tsx +31 -0
  1047. package/src/modules/config/router/context.server.ts +29 -0
  1048. package/src/modules/config/router/error.server.ts +1 -0
  1049. package/src/modules/config/router/helpers.ts +3 -0
  1050. package/src/modules/config/router/init.server.ts +77 -0
  1051. package/src/modules/config/router/query-client.ts +63 -0
  1052. package/src/modules/config/router/validators.ts +10 -0
  1053. package/src/modules/data-tables/components/cell/common.client.tsx +35 -0
  1054. package/src/modules/data-tables/components/cell/index.client.tsx +13 -0
  1055. package/src/modules/data-tables/components/cell/select.client.tsx +32 -0
  1056. package/src/modules/data-tables/components/column-header.tsx +65 -0
  1057. package/src/modules/data-tables/components/filters/combobox.client.tsx +150 -0
  1058. package/src/modules/data-tables/components/filters/slider.client.tsx +138 -0
  1059. package/src/modules/data-tables/components/footer.tsx +40 -0
  1060. package/src/modules/data-tables/components/header.tsx +67 -0
  1061. package/src/modules/data-tables/components/layout.tsx +10 -0
  1062. package/src/modules/data-tables/components/search-input.client.tsx +17 -0
  1063. package/src/modules/data-tables/components/skeleton.tsx +39 -0
  1064. package/src/modules/data-tables/components/table.tsx +80 -0
  1065. package/src/modules/data-tables/components/toolbar.tsx +29 -0
  1066. package/src/modules/data-tables/entry.client.ts +39 -0
  1067. package/src/modules/data-tables/entry.server.ts +13 -0
  1068. package/src/modules/data-tables/entry.ts +20 -0
  1069. package/src/modules/data-tables/hooks/use-context.client.tsx +73 -0
  1070. package/src/modules/data-tables/hooks/use-filter.client.ts +31 -0
  1071. package/src/modules/data-tables/hooks/use-search.client.ts +29 -0
  1072. package/src/modules/data-tables/hooks/use-selection.client.ts +57 -0
  1073. package/src/modules/data-tables/hooks/use-table.client.ts +57 -0
  1074. package/src/modules/data-tables/lib/converters/cursor.ts +13 -0
  1075. package/src/modules/data-tables/lib/converters/dto.ts +54 -0
  1076. package/src/modules/data-tables/lib/converters/filter.ts +11 -0
  1077. package/src/modules/data-tables/lib/converters/search.ts +23 -0
  1078. package/src/modules/data-tables/lib/converters/sorting.ts +25 -0
  1079. package/src/modules/data-tables/lib/filters/config.ts +6 -0
  1080. package/src/modules/data-tables/lib/filters/parsers.ts +66 -0
  1081. package/src/modules/data-tables/lib/filters/resolvers.ts +61 -0
  1082. package/src/modules/data-tables/lib/helpers/create-column.ts +9 -0
  1083. package/src/modules/data-tables/lib/search-params.ts +12 -0
  1084. package/src/modules/data-tables/lib/types.ts +63 -0
  1085. package/src/modules/data-tables/lib/validators.ts +22 -0
  1086. package/src/modules/data-tables/server/get-data.server.ts +78 -0
  1087. package/src/modules/data-tables/strategies/helpers/sorting.ts +65 -0
  1088. package/src/modules/data-tables/strategies/infinite/components.tsx +67 -0
  1089. package/src/modules/data-tables/strategies/infinite/strategy.ts +70 -0
  1090. package/src/modules/data-tables/strategies/pagination/components.tsx +117 -0
  1091. package/src/modules/data-tables/strategies/pagination/strategy.ts +53 -0
  1092. package/src/modules/data-tables/tables/data-table/components/body.tsx +48 -0
  1093. package/src/modules/data-tables/tables/data-table/components/header.tsx +18 -0
  1094. package/src/modules/data-tables/tables/data-table/components/row.tsx +40 -0
  1095. package/src/modules/data-tables/tables/data-table/components/table.tsx +30 -0
  1096. package/src/modules/data-tables/tables/inline-table/components/body.tsx +113 -0
  1097. package/src/modules/data-tables/tables/inline-table/components/cells/common.tsx +15 -0
  1098. package/src/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.tsx +40 -0
  1099. package/src/modules/data-tables/tables/inline-table/components/header.tsx +20 -0
  1100. package/src/modules/data-tables/tables/inline-table/components/inputs/advanced-select.client.tsx +90 -0
  1101. package/src/modules/data-tables/tables/inline-table/components/inputs/combobox.client.tsx +109 -0
  1102. package/src/modules/data-tables/tables/inline-table/components/inputs/input.client.tsx +108 -0
  1103. package/src/modules/data-tables/tables/inline-table/components/inputs/read-only.tsx +17 -0
  1104. package/src/modules/data-tables/tables/inline-table/components/inputs/select.client.tsx +102 -0
  1105. package/src/modules/data-tables/tables/inline-table/components/row.client.tsx +57 -0
  1106. package/src/modules/data-tables/tables/inline-table/components/table.tsx +42 -0
  1107. package/src/modules/data-tables/tables/inline-table/hooks/context.client.tsx +85 -0
  1108. package/src/modules/data-tables/tables/inline-table/hooks/use-hotkeys.client.ts +117 -0
  1109. package/src/modules/data-tables/tables/inline-table/hooks/use-input.client.ts +65 -0
  1110. package/src/modules/inline-edit/components/combobox-dropdown.client.tsx +38 -0
  1111. package/src/modules/inline-edit/components/combobox.client.tsx +32 -0
  1112. package/src/modules/inline-edit/components/date-input.client.tsx +92 -0
  1113. package/src/modules/inline-edit/components/date-picker.client.tsx +58 -0
  1114. package/src/modules/inline-edit/components/editor.client.tsx +41 -0
  1115. package/src/modules/inline-edit/components/input-toggle.client.tsx +61 -0
  1116. package/src/modules/inline-edit/components/input.client.tsx +65 -0
  1117. package/src/modules/inline-edit/components/richtext.client.tsx +36 -0
  1118. package/src/modules/inline-edit/components/select.client.tsx +62 -0
  1119. package/src/modules/inline-edit/components/switch.client.tsx +29 -0
  1120. package/src/modules/inline-edit/components/toggle.client.tsx +39 -0
  1121. package/src/modules/inline-edit/entry.client.ts +12 -0
  1122. package/src/modules/inline-edit/entry.server.ts +1 -0
  1123. package/src/modules/inline-edit/entry.ts +1 -0
  1124. package/src/modules/inline-edit/hooks/context.client.tsx +29 -0
  1125. package/src/modules/inline-edit/hooks/use-inline.client.tsx +62 -0
  1126. package/src/modules/inline-edit/lib/factory.server.ts +91 -0
  1127. package/src/modules/inline-edit/lib/validators.ts +43 -0
  1128. package/src/modules/uploads/components/button.client.tsx +29 -0
  1129. package/src/modules/uploads/components/images/grid.client.tsx +162 -0
  1130. package/src/modules/uploads/components/images/input.client.tsx +34 -0
  1131. package/src/modules/uploads/components/preview-dialog.client.tsx +21 -0
  1132. package/src/modules/uploads/components/zone.client.tsx +56 -0
  1133. package/src/modules/uploads/entry.client.ts +14 -0
  1134. package/src/modules/uploads/entry.server.ts +6 -0
  1135. package/src/modules/uploads/entry.ts +5 -0
  1136. package/src/modules/uploads/hooks/use-upload-image.client.tsx +131 -0
  1137. package/src/modules/uploads/hooks/use-upload-zone.client.ts +44 -0
  1138. package/src/modules/uploads/lib/constants.ts +10 -0
  1139. package/src/modules/uploads/lib/filters.ts +7 -0
  1140. package/src/modules/uploads/lib/helpers.ts +66 -0
  1141. package/src/modules/uploads/lib/proxy.server.ts +131 -0
  1142. package/src/modules/uploads/lib/route.server.ts +95 -0
  1143. package/src/modules/uploads/lib/router.server.ts +340 -0
  1144. package/src/modules/uploads/lib/schema.ts +82 -0
  1145. package/src/modules/uploads/lib/validators.ts +47 -0
  1146. package/src/styles.css +194 -0
@@ -0,0 +1,3806 @@
1
+ import * as better_auth_react0 from "better-auth/react";
2
+ import * as better_auth0 from "better-auth";
3
+ import * as better_auth_plugins0 from "better-auth/plugins";
4
+
5
+ //#region src/modules/auth/handler/client.client.d.ts
6
+ declare const authClient: {
7
+ admin: {
8
+ getUser: <FetchOptions extends {
9
+ method?: string | undefined;
10
+ headers?: (HeadersInit & (HeadersInit | {
11
+ accept: "application/json" | "text/plain" | "application/octet-stream";
12
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
13
+ authorization: "Bearer" | "Basic";
14
+ })) | undefined;
15
+ credentials?: RequestCredentials | undefined;
16
+ mode?: RequestMode | undefined;
17
+ cache?: RequestCache | undefined;
18
+ integrity?: string | undefined;
19
+ keepalive?: boolean | undefined;
20
+ priority?: RequestPriority | undefined;
21
+ redirect?: RequestRedirect | undefined;
22
+ referrer?: string | undefined;
23
+ referrerPolicy?: ReferrerPolicy | undefined;
24
+ signal?: (AbortSignal | null) | undefined;
25
+ window?: null | undefined;
26
+ next?: NextFetchRequestConfig | undefined;
27
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
28
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
29
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
30
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
31
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
32
+ hookOptions?: {
33
+ cloneResponse?: boolean;
34
+ } | undefined;
35
+ timeout?: number | undefined;
36
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
37
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
38
+ baseURL?: string | undefined;
39
+ throw?: boolean | undefined;
40
+ auth?: ({
41
+ type: "Bearer";
42
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
43
+ } | {
44
+ type: "Basic";
45
+ username: string | (() => string | undefined) | undefined;
46
+ password: string | (() => string | undefined) | undefined;
47
+ } | {
48
+ type: "Custom";
49
+ prefix: string | (() => string | undefined) | undefined;
50
+ value: string | (() => string | undefined) | undefined;
51
+ }) | undefined;
52
+ body?: undefined;
53
+ query?: (Partial<{
54
+ id: string;
55
+ }> & Record<string, any>) | undefined;
56
+ params?: Record<string, any> | undefined;
57
+ duplex?: "full" | "half" | undefined;
58
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
59
+ retry?: better_auth_react0.RetryOptions | undefined;
60
+ retryAttempt?: number | undefined;
61
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
62
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
63
+ disableValidation?: boolean | undefined;
64
+ }>(data_0: better_auth0.Prettify<{
65
+ query: {
66
+ id: string;
67
+ };
68
+ fetchOptions?: FetchOptions | undefined;
69
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
70
+ id: string;
71
+ createdAt: Date;
72
+ updatedAt: Date;
73
+ email: string;
74
+ emailVerified: boolean;
75
+ name: string;
76
+ image?: string | null | undefined;
77
+ }, {
78
+ code?: string;
79
+ message?: string;
80
+ }, FetchOptions["throw"] extends true ? true : false>>;
81
+ };
82
+ } & {
83
+ admin: {
84
+ updateUser: <FetchOptions extends {
85
+ method?: string | undefined;
86
+ headers?: (HeadersInit & (HeadersInit | {
87
+ accept: "application/json" | "text/plain" | "application/octet-stream";
88
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
89
+ authorization: "Bearer" | "Basic";
90
+ })) | undefined;
91
+ credentials?: RequestCredentials | undefined;
92
+ mode?: RequestMode | undefined;
93
+ cache?: RequestCache | undefined;
94
+ integrity?: string | undefined;
95
+ keepalive?: boolean | undefined;
96
+ priority?: RequestPriority | undefined;
97
+ redirect?: RequestRedirect | undefined;
98
+ referrer?: string | undefined;
99
+ referrerPolicy?: ReferrerPolicy | undefined;
100
+ signal?: (AbortSignal | null) | undefined;
101
+ window?: null | undefined;
102
+ next?: NextFetchRequestConfig | undefined;
103
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
104
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
105
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
106
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
107
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
108
+ hookOptions?: {
109
+ cloneResponse?: boolean;
110
+ } | undefined;
111
+ timeout?: number | undefined;
112
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
113
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
114
+ baseURL?: string | undefined;
115
+ throw?: boolean | undefined;
116
+ auth?: ({
117
+ type: "Bearer";
118
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
119
+ } | {
120
+ type: "Basic";
121
+ username: string | (() => string | undefined) | undefined;
122
+ password: string | (() => string | undefined) | undefined;
123
+ } | {
124
+ type: "Custom";
125
+ prefix: string | (() => string | undefined) | undefined;
126
+ value: string | (() => string | undefined) | undefined;
127
+ }) | undefined;
128
+ body?: (Partial<{
129
+ userId: unknown;
130
+ data: Record<any, any>;
131
+ }> & Record<string, any>) | undefined;
132
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
133
+ params?: Record<string, any> | undefined;
134
+ duplex?: "full" | "half" | undefined;
135
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
136
+ retry?: better_auth_react0.RetryOptions | undefined;
137
+ retryAttempt?: number | undefined;
138
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
139
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
140
+ disableValidation?: boolean | undefined;
141
+ }>(data_0: better_auth0.Prettify<{
142
+ userId: unknown;
143
+ data: Record<any, any>;
144
+ } & {
145
+ fetchOptions?: FetchOptions | undefined;
146
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<better_auth_plugins0.UserWithRole, {
147
+ code?: string;
148
+ message?: string;
149
+ }, FetchOptions["throw"] extends true ? true : false>>;
150
+ };
151
+ } & {
152
+ admin: {
153
+ listUsers: <FetchOptions extends {
154
+ method?: string | undefined;
155
+ headers?: (HeadersInit & (HeadersInit | {
156
+ accept: "application/json" | "text/plain" | "application/octet-stream";
157
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
158
+ authorization: "Bearer" | "Basic";
159
+ })) | undefined;
160
+ credentials?: RequestCredentials | undefined;
161
+ mode?: RequestMode | undefined;
162
+ cache?: RequestCache | undefined;
163
+ integrity?: string | undefined;
164
+ keepalive?: boolean | undefined;
165
+ priority?: RequestPriority | undefined;
166
+ redirect?: RequestRedirect | undefined;
167
+ referrer?: string | undefined;
168
+ referrerPolicy?: ReferrerPolicy | undefined;
169
+ signal?: (AbortSignal | null) | undefined;
170
+ window?: null | undefined;
171
+ next?: NextFetchRequestConfig | undefined;
172
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
173
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
174
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
175
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
176
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
177
+ hookOptions?: {
178
+ cloneResponse?: boolean;
179
+ } | undefined;
180
+ timeout?: number | undefined;
181
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
182
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
183
+ baseURL?: string | undefined;
184
+ throw?: boolean | undefined;
185
+ auth?: ({
186
+ type: "Bearer";
187
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
188
+ } | {
189
+ type: "Basic";
190
+ username: string | (() => string | undefined) | undefined;
191
+ password: string | (() => string | undefined) | undefined;
192
+ } | {
193
+ type: "Custom";
194
+ prefix: string | (() => string | undefined) | undefined;
195
+ value: string | (() => string | undefined) | undefined;
196
+ }) | undefined;
197
+ body?: undefined;
198
+ query?: (Partial<{
199
+ searchValue?: string | undefined;
200
+ searchField?: "name" | "email" | undefined;
201
+ searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
202
+ limit?: string | number | undefined;
203
+ offset?: string | number | undefined;
204
+ sortBy?: string | undefined;
205
+ sortDirection?: "asc" | "desc" | undefined;
206
+ filterField?: string | undefined;
207
+ filterValue?: string | number | boolean | undefined;
208
+ filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
209
+ }> & Record<string, any>) | undefined;
210
+ params?: Record<string, any> | undefined;
211
+ duplex?: "full" | "half" | undefined;
212
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
213
+ retry?: better_auth_react0.RetryOptions | undefined;
214
+ retryAttempt?: number | undefined;
215
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
216
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
217
+ disableValidation?: boolean | undefined;
218
+ }>(data_0: better_auth0.Prettify<{
219
+ query: {
220
+ searchValue?: string | undefined;
221
+ searchField?: "name" | "email" | undefined;
222
+ searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
223
+ limit?: string | number | undefined;
224
+ offset?: string | number | undefined;
225
+ sortBy?: string | undefined;
226
+ sortDirection?: "asc" | "desc" | undefined;
227
+ filterField?: string | undefined;
228
+ filterValue?: string | number | boolean | undefined;
229
+ filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
230
+ };
231
+ fetchOptions?: FetchOptions | undefined;
232
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<NonNullable<{
233
+ users: better_auth_plugins0.UserWithRole[];
234
+ total: number;
235
+ limit: number | undefined;
236
+ offset: number | undefined;
237
+ } | {
238
+ users: never[];
239
+ total: number;
240
+ }>, {
241
+ code?: string;
242
+ message?: string;
243
+ }, FetchOptions["throw"] extends true ? true : false>>;
244
+ };
245
+ } & {
246
+ admin: {
247
+ listUserSessions: <FetchOptions extends {
248
+ method?: string | undefined;
249
+ headers?: (HeadersInit & (HeadersInit | {
250
+ accept: "application/json" | "text/plain" | "application/octet-stream";
251
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
252
+ authorization: "Bearer" | "Basic";
253
+ })) | undefined;
254
+ credentials?: RequestCredentials | undefined;
255
+ mode?: RequestMode | undefined;
256
+ cache?: RequestCache | undefined;
257
+ integrity?: string | undefined;
258
+ keepalive?: boolean | undefined;
259
+ priority?: RequestPriority | undefined;
260
+ redirect?: RequestRedirect | undefined;
261
+ referrer?: string | undefined;
262
+ referrerPolicy?: ReferrerPolicy | undefined;
263
+ signal?: (AbortSignal | null) | undefined;
264
+ window?: null | undefined;
265
+ next?: NextFetchRequestConfig | undefined;
266
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
267
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
268
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
269
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
270
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
271
+ hookOptions?: {
272
+ cloneResponse?: boolean;
273
+ } | undefined;
274
+ timeout?: number | undefined;
275
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
276
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
277
+ baseURL?: string | undefined;
278
+ throw?: boolean | undefined;
279
+ auth?: ({
280
+ type: "Bearer";
281
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
282
+ } | {
283
+ type: "Basic";
284
+ username: string | (() => string | undefined) | undefined;
285
+ password: string | (() => string | undefined) | undefined;
286
+ } | {
287
+ type: "Custom";
288
+ prefix: string | (() => string | undefined) | undefined;
289
+ value: string | (() => string | undefined) | undefined;
290
+ }) | undefined;
291
+ body?: (Partial<{
292
+ userId: unknown;
293
+ }> & Record<string, any>) | undefined;
294
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
295
+ params?: Record<string, any> | undefined;
296
+ duplex?: "full" | "half" | undefined;
297
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
298
+ retry?: better_auth_react0.RetryOptions | undefined;
299
+ retryAttempt?: number | undefined;
300
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
301
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
302
+ disableValidation?: boolean | undefined;
303
+ }>(data_0: better_auth0.Prettify<{
304
+ userId: unknown;
305
+ } & {
306
+ fetchOptions?: FetchOptions | undefined;
307
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
308
+ sessions: better_auth_plugins0.SessionWithImpersonatedBy[];
309
+ }, {
310
+ code?: string;
311
+ message?: string;
312
+ }, FetchOptions["throw"] extends true ? true : false>>;
313
+ };
314
+ } & {
315
+ admin: {
316
+ unbanUser: <FetchOptions extends {
317
+ method?: string | undefined;
318
+ headers?: (HeadersInit & (HeadersInit | {
319
+ accept: "application/json" | "text/plain" | "application/octet-stream";
320
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
321
+ authorization: "Bearer" | "Basic";
322
+ })) | undefined;
323
+ credentials?: RequestCredentials | undefined;
324
+ mode?: RequestMode | undefined;
325
+ cache?: RequestCache | undefined;
326
+ integrity?: string | undefined;
327
+ keepalive?: boolean | undefined;
328
+ priority?: RequestPriority | undefined;
329
+ redirect?: RequestRedirect | undefined;
330
+ referrer?: string | undefined;
331
+ referrerPolicy?: ReferrerPolicy | undefined;
332
+ signal?: (AbortSignal | null) | undefined;
333
+ window?: null | undefined;
334
+ next?: NextFetchRequestConfig | undefined;
335
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
336
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
337
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
338
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
339
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
340
+ hookOptions?: {
341
+ cloneResponse?: boolean;
342
+ } | undefined;
343
+ timeout?: number | undefined;
344
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
345
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
346
+ baseURL?: string | undefined;
347
+ throw?: boolean | undefined;
348
+ auth?: ({
349
+ type: "Bearer";
350
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
351
+ } | {
352
+ type: "Basic";
353
+ username: string | (() => string | undefined) | undefined;
354
+ password: string | (() => string | undefined) | undefined;
355
+ } | {
356
+ type: "Custom";
357
+ prefix: string | (() => string | undefined) | undefined;
358
+ value: string | (() => string | undefined) | undefined;
359
+ }) | undefined;
360
+ body?: (Partial<{
361
+ userId: unknown;
362
+ }> & Record<string, any>) | undefined;
363
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
364
+ params?: Record<string, any> | undefined;
365
+ duplex?: "full" | "half" | undefined;
366
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
367
+ retry?: better_auth_react0.RetryOptions | undefined;
368
+ retryAttempt?: number | undefined;
369
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
370
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
371
+ disableValidation?: boolean | undefined;
372
+ }>(data_0: better_auth0.Prettify<{
373
+ userId: unknown;
374
+ } & {
375
+ fetchOptions?: FetchOptions | undefined;
376
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
377
+ user: any;
378
+ }, {
379
+ code?: string;
380
+ message?: string;
381
+ }, FetchOptions["throw"] extends true ? true : false>>;
382
+ };
383
+ } & {
384
+ admin: {
385
+ banUser: <FetchOptions extends {
386
+ method?: string | undefined;
387
+ headers?: (HeadersInit & (HeadersInit | {
388
+ accept: "application/json" | "text/plain" | "application/octet-stream";
389
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
390
+ authorization: "Bearer" | "Basic";
391
+ })) | undefined;
392
+ credentials?: RequestCredentials | undefined;
393
+ mode?: RequestMode | undefined;
394
+ cache?: RequestCache | undefined;
395
+ integrity?: string | undefined;
396
+ keepalive?: boolean | undefined;
397
+ priority?: RequestPriority | undefined;
398
+ redirect?: RequestRedirect | undefined;
399
+ referrer?: string | undefined;
400
+ referrerPolicy?: ReferrerPolicy | undefined;
401
+ signal?: (AbortSignal | null) | undefined;
402
+ window?: null | undefined;
403
+ next?: NextFetchRequestConfig | undefined;
404
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
405
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
406
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
407
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
408
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
409
+ hookOptions?: {
410
+ cloneResponse?: boolean;
411
+ } | undefined;
412
+ timeout?: number | undefined;
413
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
414
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
415
+ baseURL?: string | undefined;
416
+ throw?: boolean | undefined;
417
+ auth?: ({
418
+ type: "Bearer";
419
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
420
+ } | {
421
+ type: "Basic";
422
+ username: string | (() => string | undefined) | undefined;
423
+ password: string | (() => string | undefined) | undefined;
424
+ } | {
425
+ type: "Custom";
426
+ prefix: string | (() => string | undefined) | undefined;
427
+ value: string | (() => string | undefined) | undefined;
428
+ }) | undefined;
429
+ body?: (Partial<{
430
+ userId: unknown;
431
+ banReason?: string | undefined;
432
+ banExpiresIn?: number | undefined;
433
+ }> & Record<string, any>) | undefined;
434
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
435
+ params?: Record<string, any> | undefined;
436
+ duplex?: "full" | "half" | undefined;
437
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
438
+ retry?: better_auth_react0.RetryOptions | undefined;
439
+ retryAttempt?: number | undefined;
440
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
441
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
442
+ disableValidation?: boolean | undefined;
443
+ }>(data_0: better_auth0.Prettify<{
444
+ userId: unknown;
445
+ banReason?: string | undefined;
446
+ banExpiresIn?: number | undefined;
447
+ } & {
448
+ fetchOptions?: FetchOptions | undefined;
449
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
450
+ user: any;
451
+ }, {
452
+ code?: string;
453
+ message?: string;
454
+ }, FetchOptions["throw"] extends true ? true : false>>;
455
+ };
456
+ } & {
457
+ admin: {
458
+ impersonateUser: <FetchOptions extends {
459
+ method?: string | undefined;
460
+ headers?: (HeadersInit & (HeadersInit | {
461
+ accept: "application/json" | "text/plain" | "application/octet-stream";
462
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
463
+ authorization: "Bearer" | "Basic";
464
+ })) | undefined;
465
+ credentials?: RequestCredentials | undefined;
466
+ mode?: RequestMode | undefined;
467
+ cache?: RequestCache | undefined;
468
+ integrity?: string | undefined;
469
+ keepalive?: boolean | undefined;
470
+ priority?: RequestPriority | undefined;
471
+ redirect?: RequestRedirect | undefined;
472
+ referrer?: string | undefined;
473
+ referrerPolicy?: ReferrerPolicy | undefined;
474
+ signal?: (AbortSignal | null) | undefined;
475
+ window?: null | undefined;
476
+ next?: NextFetchRequestConfig | undefined;
477
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
478
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
479
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
480
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
481
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
482
+ hookOptions?: {
483
+ cloneResponse?: boolean;
484
+ } | undefined;
485
+ timeout?: number | undefined;
486
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
487
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
488
+ baseURL?: string | undefined;
489
+ throw?: boolean | undefined;
490
+ auth?: ({
491
+ type: "Bearer";
492
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
493
+ } | {
494
+ type: "Basic";
495
+ username: string | (() => string | undefined) | undefined;
496
+ password: string | (() => string | undefined) | undefined;
497
+ } | {
498
+ type: "Custom";
499
+ prefix: string | (() => string | undefined) | undefined;
500
+ value: string | (() => string | undefined) | undefined;
501
+ }) | undefined;
502
+ body?: (Partial<{
503
+ userId: unknown;
504
+ }> & Record<string, any>) | undefined;
505
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
506
+ params?: Record<string, any> | undefined;
507
+ duplex?: "full" | "half" | undefined;
508
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
509
+ retry?: better_auth_react0.RetryOptions | undefined;
510
+ retryAttempt?: number | undefined;
511
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
512
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
513
+ disableValidation?: boolean | undefined;
514
+ }>(data_0: better_auth0.Prettify<{
515
+ userId: unknown;
516
+ } & {
517
+ fetchOptions?: FetchOptions | undefined;
518
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
519
+ session: {
520
+ id: string;
521
+ createdAt: Date;
522
+ updatedAt: Date;
523
+ userId: string;
524
+ expiresAt: Date;
525
+ token: string;
526
+ ipAddress?: string | null | undefined;
527
+ userAgent?: string | null | undefined;
528
+ };
529
+ user: {
530
+ id: string;
531
+ createdAt: Date;
532
+ updatedAt: Date;
533
+ email: string;
534
+ emailVerified: boolean;
535
+ name: string;
536
+ image?: string | null | undefined;
537
+ };
538
+ }, {
539
+ code?: string;
540
+ message?: string;
541
+ }, FetchOptions["throw"] extends true ? true : false>>;
542
+ };
543
+ } & {
544
+ admin: {
545
+ stopImpersonating: <FetchOptions extends {
546
+ method?: string | undefined;
547
+ headers?: (HeadersInit & (HeadersInit | {
548
+ accept: "application/json" | "text/plain" | "application/octet-stream";
549
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
550
+ authorization: "Bearer" | "Basic";
551
+ })) | undefined;
552
+ credentials?: RequestCredentials | undefined;
553
+ mode?: RequestMode | undefined;
554
+ cache?: RequestCache | undefined;
555
+ integrity?: string | undefined;
556
+ keepalive?: boolean | undefined;
557
+ priority?: RequestPriority | undefined;
558
+ redirect?: RequestRedirect | undefined;
559
+ referrer?: string | undefined;
560
+ referrerPolicy?: ReferrerPolicy | undefined;
561
+ signal?: (AbortSignal | null) | undefined;
562
+ window?: null | undefined;
563
+ next?: NextFetchRequestConfig | undefined;
564
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
565
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
566
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
567
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
568
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
569
+ hookOptions?: {
570
+ cloneResponse?: boolean;
571
+ } | undefined;
572
+ timeout?: number | undefined;
573
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
574
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
575
+ baseURL?: string | undefined;
576
+ throw?: boolean | undefined;
577
+ auth?: ({
578
+ type: "Bearer";
579
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
580
+ } | {
581
+ type: "Basic";
582
+ username: string | (() => string | undefined) | undefined;
583
+ password: string | (() => string | undefined) | undefined;
584
+ } | {
585
+ type: "Custom";
586
+ prefix: string | (() => string | undefined) | undefined;
587
+ value: string | (() => string | undefined) | undefined;
588
+ }) | undefined;
589
+ body?: undefined;
590
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
591
+ params?: Record<string, any> | undefined;
592
+ duplex?: "full" | "half" | undefined;
593
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
594
+ retry?: better_auth_react0.RetryOptions | undefined;
595
+ retryAttempt?: number | undefined;
596
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
597
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
598
+ disableValidation?: boolean | undefined;
599
+ }>(data_0?: better_auth0.Prettify<{
600
+ query?: Record<string, any> | undefined;
601
+ fetchOptions?: FetchOptions | undefined;
602
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
603
+ session: better_auth0.Session & Record<string, any>;
604
+ user: packages_core_dist_db.User & Record<string, any>;
605
+ }, {
606
+ code?: string;
607
+ message?: string;
608
+ }, FetchOptions["throw"] extends true ? true : false>>;
609
+ };
610
+ } & {
611
+ admin: {
612
+ revokeUserSession: <FetchOptions extends {
613
+ method?: string | undefined;
614
+ headers?: (HeadersInit & (HeadersInit | {
615
+ accept: "application/json" | "text/plain" | "application/octet-stream";
616
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
617
+ authorization: "Bearer" | "Basic";
618
+ })) | undefined;
619
+ credentials?: RequestCredentials | undefined;
620
+ mode?: RequestMode | undefined;
621
+ cache?: RequestCache | undefined;
622
+ integrity?: string | undefined;
623
+ keepalive?: boolean | undefined;
624
+ priority?: RequestPriority | undefined;
625
+ redirect?: RequestRedirect | undefined;
626
+ referrer?: string | undefined;
627
+ referrerPolicy?: ReferrerPolicy | undefined;
628
+ signal?: (AbortSignal | null) | undefined;
629
+ window?: null | undefined;
630
+ next?: NextFetchRequestConfig | undefined;
631
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
632
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
633
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
634
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
635
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
636
+ hookOptions?: {
637
+ cloneResponse?: boolean;
638
+ } | undefined;
639
+ timeout?: number | undefined;
640
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
641
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
642
+ baseURL?: string | undefined;
643
+ throw?: boolean | undefined;
644
+ auth?: ({
645
+ type: "Bearer";
646
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
647
+ } | {
648
+ type: "Basic";
649
+ username: string | (() => string | undefined) | undefined;
650
+ password: string | (() => string | undefined) | undefined;
651
+ } | {
652
+ type: "Custom";
653
+ prefix: string | (() => string | undefined) | undefined;
654
+ value: string | (() => string | undefined) | undefined;
655
+ }) | undefined;
656
+ body?: (Partial<{
657
+ sessionToken: string;
658
+ }> & Record<string, any>) | undefined;
659
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
660
+ params?: Record<string, any> | undefined;
661
+ duplex?: "full" | "half" | undefined;
662
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
663
+ retry?: better_auth_react0.RetryOptions | undefined;
664
+ retryAttempt?: number | undefined;
665
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
666
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
667
+ disableValidation?: boolean | undefined;
668
+ }>(data_0: better_auth0.Prettify<{
669
+ sessionToken: string;
670
+ } & {
671
+ fetchOptions?: FetchOptions | undefined;
672
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
673
+ success: boolean;
674
+ }, {
675
+ code?: string;
676
+ message?: string;
677
+ }, FetchOptions["throw"] extends true ? true : false>>;
678
+ };
679
+ } & {
680
+ admin: {
681
+ revokeUserSessions: <FetchOptions extends {
682
+ method?: string | undefined;
683
+ headers?: (HeadersInit & (HeadersInit | {
684
+ accept: "application/json" | "text/plain" | "application/octet-stream";
685
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
686
+ authorization: "Bearer" | "Basic";
687
+ })) | undefined;
688
+ credentials?: RequestCredentials | undefined;
689
+ mode?: RequestMode | undefined;
690
+ cache?: RequestCache | undefined;
691
+ integrity?: string | undefined;
692
+ keepalive?: boolean | undefined;
693
+ priority?: RequestPriority | undefined;
694
+ redirect?: RequestRedirect | undefined;
695
+ referrer?: string | undefined;
696
+ referrerPolicy?: ReferrerPolicy | undefined;
697
+ signal?: (AbortSignal | null) | undefined;
698
+ window?: null | undefined;
699
+ next?: NextFetchRequestConfig | undefined;
700
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
701
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
702
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
703
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
704
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
705
+ hookOptions?: {
706
+ cloneResponse?: boolean;
707
+ } | undefined;
708
+ timeout?: number | undefined;
709
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
710
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
711
+ baseURL?: string | undefined;
712
+ throw?: boolean | undefined;
713
+ auth?: ({
714
+ type: "Bearer";
715
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
716
+ } | {
717
+ type: "Basic";
718
+ username: string | (() => string | undefined) | undefined;
719
+ password: string | (() => string | undefined) | undefined;
720
+ } | {
721
+ type: "Custom";
722
+ prefix: string | (() => string | undefined) | undefined;
723
+ value: string | (() => string | undefined) | undefined;
724
+ }) | undefined;
725
+ body?: (Partial<{
726
+ userId: unknown;
727
+ }> & Record<string, any>) | undefined;
728
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
729
+ params?: Record<string, any> | undefined;
730
+ duplex?: "full" | "half" | undefined;
731
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
732
+ retry?: better_auth_react0.RetryOptions | undefined;
733
+ retryAttempt?: number | undefined;
734
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
735
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
736
+ disableValidation?: boolean | undefined;
737
+ }>(data_0: better_auth0.Prettify<{
738
+ userId: unknown;
739
+ } & {
740
+ fetchOptions?: FetchOptions | undefined;
741
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
742
+ success: boolean;
743
+ }, {
744
+ code?: string;
745
+ message?: string;
746
+ }, FetchOptions["throw"] extends true ? true : false>>;
747
+ };
748
+ } & {
749
+ admin: {
750
+ removeUser: <FetchOptions extends {
751
+ method?: string | undefined;
752
+ headers?: (HeadersInit & (HeadersInit | {
753
+ accept: "application/json" | "text/plain" | "application/octet-stream";
754
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
755
+ authorization: "Bearer" | "Basic";
756
+ })) | undefined;
757
+ credentials?: RequestCredentials | undefined;
758
+ mode?: RequestMode | undefined;
759
+ cache?: RequestCache | undefined;
760
+ integrity?: string | undefined;
761
+ keepalive?: boolean | undefined;
762
+ priority?: RequestPriority | undefined;
763
+ redirect?: RequestRedirect | undefined;
764
+ referrer?: string | undefined;
765
+ referrerPolicy?: ReferrerPolicy | undefined;
766
+ signal?: (AbortSignal | null) | undefined;
767
+ window?: null | undefined;
768
+ next?: NextFetchRequestConfig | undefined;
769
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
770
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
771
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
772
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
773
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
774
+ hookOptions?: {
775
+ cloneResponse?: boolean;
776
+ } | undefined;
777
+ timeout?: number | undefined;
778
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
779
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
780
+ baseURL?: string | undefined;
781
+ throw?: boolean | undefined;
782
+ auth?: ({
783
+ type: "Bearer";
784
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
785
+ } | {
786
+ type: "Basic";
787
+ username: string | (() => string | undefined) | undefined;
788
+ password: string | (() => string | undefined) | undefined;
789
+ } | {
790
+ type: "Custom";
791
+ prefix: string | (() => string | undefined) | undefined;
792
+ value: string | (() => string | undefined) | undefined;
793
+ }) | undefined;
794
+ body?: (Partial<{
795
+ userId: unknown;
796
+ }> & Record<string, any>) | undefined;
797
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
798
+ params?: Record<string, any> | undefined;
799
+ duplex?: "full" | "half" | undefined;
800
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
801
+ retry?: better_auth_react0.RetryOptions | undefined;
802
+ retryAttempt?: number | undefined;
803
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
804
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
805
+ disableValidation?: boolean | undefined;
806
+ }>(data_0: better_auth0.Prettify<{
807
+ userId: unknown;
808
+ } & {
809
+ fetchOptions?: FetchOptions | undefined;
810
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
811
+ success: boolean;
812
+ }, {
813
+ code?: string;
814
+ message?: string;
815
+ }, FetchOptions["throw"] extends true ? true : false>>;
816
+ };
817
+ } & {
818
+ admin: {
819
+ setUserPassword: <FetchOptions extends {
820
+ method?: string | undefined;
821
+ headers?: (HeadersInit & (HeadersInit | {
822
+ accept: "application/json" | "text/plain" | "application/octet-stream";
823
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
824
+ authorization: "Bearer" | "Basic";
825
+ })) | undefined;
826
+ credentials?: RequestCredentials | undefined;
827
+ mode?: RequestMode | undefined;
828
+ cache?: RequestCache | undefined;
829
+ integrity?: string | undefined;
830
+ keepalive?: boolean | undefined;
831
+ priority?: RequestPriority | undefined;
832
+ redirect?: RequestRedirect | undefined;
833
+ referrer?: string | undefined;
834
+ referrerPolicy?: ReferrerPolicy | undefined;
835
+ signal?: (AbortSignal | null) | undefined;
836
+ window?: null | undefined;
837
+ next?: NextFetchRequestConfig | undefined;
838
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
839
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
840
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
841
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
842
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
843
+ hookOptions?: {
844
+ cloneResponse?: boolean;
845
+ } | undefined;
846
+ timeout?: number | undefined;
847
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
848
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
849
+ baseURL?: string | undefined;
850
+ throw?: boolean | undefined;
851
+ auth?: ({
852
+ type: "Bearer";
853
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
854
+ } | {
855
+ type: "Basic";
856
+ username: string | (() => string | undefined) | undefined;
857
+ password: string | (() => string | undefined) | undefined;
858
+ } | {
859
+ type: "Custom";
860
+ prefix: string | (() => string | undefined) | undefined;
861
+ value: string | (() => string | undefined) | undefined;
862
+ }) | undefined;
863
+ body?: (Partial<{
864
+ newPassword: string;
865
+ userId: unknown;
866
+ }> & Record<string, any>) | undefined;
867
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
868
+ params?: Record<string, any> | undefined;
869
+ duplex?: "full" | "half" | undefined;
870
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
871
+ retry?: better_auth_react0.RetryOptions | undefined;
872
+ retryAttempt?: number | undefined;
873
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
874
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
875
+ disableValidation?: boolean | undefined;
876
+ }>(data_0: better_auth0.Prettify<{
877
+ newPassword: string;
878
+ userId: unknown;
879
+ } & {
880
+ fetchOptions?: FetchOptions | undefined;
881
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
882
+ status: boolean;
883
+ }, {
884
+ code?: string;
885
+ message?: string;
886
+ }, FetchOptions["throw"] extends true ? true : false>>;
887
+ };
888
+ } & {
889
+ emailOtp: {
890
+ checkVerificationOtp: <FetchOptions extends {
891
+ method?: string | undefined;
892
+ headers?: (HeadersInit & (HeadersInit | {
893
+ accept: "application/json" | "text/plain" | "application/octet-stream";
894
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
895
+ authorization: "Bearer" | "Basic";
896
+ })) | undefined;
897
+ credentials?: RequestCredentials | undefined;
898
+ mode?: RequestMode | undefined;
899
+ cache?: RequestCache | undefined;
900
+ integrity?: string | undefined;
901
+ keepalive?: boolean | undefined;
902
+ priority?: RequestPriority | undefined;
903
+ redirect?: RequestRedirect | undefined;
904
+ referrer?: string | undefined;
905
+ referrerPolicy?: ReferrerPolicy | undefined;
906
+ signal?: (AbortSignal | null) | undefined;
907
+ window?: null | undefined;
908
+ next?: NextFetchRequestConfig | undefined;
909
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
910
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
911
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
912
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
913
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
914
+ hookOptions?: {
915
+ cloneResponse?: boolean;
916
+ } | undefined;
917
+ timeout?: number | undefined;
918
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
919
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
920
+ baseURL?: string | undefined;
921
+ throw?: boolean | undefined;
922
+ auth?: ({
923
+ type: "Bearer";
924
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
925
+ } | {
926
+ type: "Basic";
927
+ username: string | (() => string | undefined) | undefined;
928
+ password: string | (() => string | undefined) | undefined;
929
+ } | {
930
+ type: "Custom";
931
+ prefix: string | (() => string | undefined) | undefined;
932
+ value: string | (() => string | undefined) | undefined;
933
+ }) | undefined;
934
+ body?: (Partial<{
935
+ email: string;
936
+ type: "sign-in" | "forget-password" | "email-verification";
937
+ otp: string;
938
+ }> & Record<string, any>) | undefined;
939
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
940
+ params?: Record<string, any> | undefined;
941
+ duplex?: "full" | "half" | undefined;
942
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
943
+ retry?: better_auth_react0.RetryOptions | undefined;
944
+ retryAttempt?: number | undefined;
945
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
946
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
947
+ disableValidation?: boolean | undefined;
948
+ }>(data_0: better_auth0.Prettify<{
949
+ email: string;
950
+ type: "sign-in" | "forget-password" | "email-verification";
951
+ otp: string;
952
+ } & {
953
+ fetchOptions?: FetchOptions | undefined;
954
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
955
+ success: boolean;
956
+ }, {
957
+ code?: string;
958
+ message?: string;
959
+ }, FetchOptions["throw"] extends true ? true : false>>;
960
+ };
961
+ } & {
962
+ emailOtp: {
963
+ verifyEmail: <FetchOptions extends {
964
+ method?: string | undefined;
965
+ headers?: (HeadersInit & (HeadersInit | {
966
+ accept: "application/json" | "text/plain" | "application/octet-stream";
967
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
968
+ authorization: "Bearer" | "Basic";
969
+ })) | undefined;
970
+ credentials?: RequestCredentials | undefined;
971
+ mode?: RequestMode | undefined;
972
+ cache?: RequestCache | undefined;
973
+ integrity?: string | undefined;
974
+ keepalive?: boolean | undefined;
975
+ priority?: RequestPriority | undefined;
976
+ redirect?: RequestRedirect | undefined;
977
+ referrer?: string | undefined;
978
+ referrerPolicy?: ReferrerPolicy | undefined;
979
+ signal?: (AbortSignal | null) | undefined;
980
+ window?: null | undefined;
981
+ next?: NextFetchRequestConfig | undefined;
982
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
983
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
984
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
985
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
986
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
987
+ hookOptions?: {
988
+ cloneResponse?: boolean;
989
+ } | undefined;
990
+ timeout?: number | undefined;
991
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
992
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
993
+ baseURL?: string | undefined;
994
+ throw?: boolean | undefined;
995
+ auth?: ({
996
+ type: "Bearer";
997
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
998
+ } | {
999
+ type: "Basic";
1000
+ username: string | (() => string | undefined) | undefined;
1001
+ password: string | (() => string | undefined) | undefined;
1002
+ } | {
1003
+ type: "Custom";
1004
+ prefix: string | (() => string | undefined) | undefined;
1005
+ value: string | (() => string | undefined) | undefined;
1006
+ }) | undefined;
1007
+ body?: (Partial<{
1008
+ email: string;
1009
+ otp: string;
1010
+ }> & Record<string, any>) | undefined;
1011
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1012
+ params?: Record<string, any> | undefined;
1013
+ duplex?: "full" | "half" | undefined;
1014
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1015
+ retry?: better_auth_react0.RetryOptions | undefined;
1016
+ retryAttempt?: number | undefined;
1017
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1018
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
1019
+ disableValidation?: boolean | undefined;
1020
+ }>(data_0: better_auth0.Prettify<{
1021
+ email: string;
1022
+ otp: string;
1023
+ } & {
1024
+ fetchOptions?: FetchOptions | undefined;
1025
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<NonNullable<{
1026
+ status: boolean;
1027
+ token: string;
1028
+ user: {
1029
+ id: any;
1030
+ email: any;
1031
+ emailVerified: any;
1032
+ name: any;
1033
+ image: any;
1034
+ createdAt: any;
1035
+ updatedAt: any;
1036
+ };
1037
+ } | {
1038
+ status: boolean;
1039
+ token: null;
1040
+ user: {
1041
+ id: any;
1042
+ email: any;
1043
+ emailVerified: any;
1044
+ name: any;
1045
+ image: any;
1046
+ createdAt: any;
1047
+ updatedAt: any;
1048
+ };
1049
+ }>, {
1050
+ code?: string;
1051
+ message?: string;
1052
+ }, FetchOptions["throw"] extends true ? true : false>>;
1053
+ };
1054
+ } & {
1055
+ signIn: {
1056
+ emailOtp: <FetchOptions extends {
1057
+ method?: string | undefined;
1058
+ headers?: (HeadersInit & (HeadersInit | {
1059
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1060
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1061
+ authorization: "Bearer" | "Basic";
1062
+ })) | undefined;
1063
+ credentials?: RequestCredentials | undefined;
1064
+ mode?: RequestMode | undefined;
1065
+ cache?: RequestCache | undefined;
1066
+ integrity?: string | undefined;
1067
+ keepalive?: boolean | undefined;
1068
+ priority?: RequestPriority | undefined;
1069
+ redirect?: RequestRedirect | undefined;
1070
+ referrer?: string | undefined;
1071
+ referrerPolicy?: ReferrerPolicy | undefined;
1072
+ signal?: (AbortSignal | null) | undefined;
1073
+ window?: null | undefined;
1074
+ next?: NextFetchRequestConfig | undefined;
1075
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
1076
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
1077
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
1078
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
1079
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
1080
+ hookOptions?: {
1081
+ cloneResponse?: boolean;
1082
+ } | undefined;
1083
+ timeout?: number | undefined;
1084
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
1085
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
1086
+ baseURL?: string | undefined;
1087
+ throw?: boolean | undefined;
1088
+ auth?: ({
1089
+ type: "Bearer";
1090
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1091
+ } | {
1092
+ type: "Basic";
1093
+ username: string | (() => string | undefined) | undefined;
1094
+ password: string | (() => string | undefined) | undefined;
1095
+ } | {
1096
+ type: "Custom";
1097
+ prefix: string | (() => string | undefined) | undefined;
1098
+ value: string | (() => string | undefined) | undefined;
1099
+ }) | undefined;
1100
+ body?: (Partial<{
1101
+ email: string;
1102
+ otp: string;
1103
+ }> & Record<string, any>) | undefined;
1104
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1105
+ params?: Record<string, any> | undefined;
1106
+ duplex?: "full" | "half" | undefined;
1107
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1108
+ retry?: better_auth_react0.RetryOptions | undefined;
1109
+ retryAttempt?: number | undefined;
1110
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1111
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
1112
+ disableValidation?: boolean | undefined;
1113
+ }>(data_0: better_auth0.Prettify<{
1114
+ email: string;
1115
+ otp: string;
1116
+ } & {
1117
+ fetchOptions?: FetchOptions | undefined;
1118
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
1119
+ token: string;
1120
+ user: {
1121
+ id: string;
1122
+ email: string;
1123
+ emailVerified: boolean;
1124
+ name: string;
1125
+ image: string | null | undefined;
1126
+ createdAt: Date;
1127
+ updatedAt: Date;
1128
+ };
1129
+ }, {
1130
+ code?: string;
1131
+ message?: string;
1132
+ }, FetchOptions["throw"] extends true ? true : false>>;
1133
+ };
1134
+ } & {
1135
+ forgetPassword: {
1136
+ emailOtp: <FetchOptions extends {
1137
+ method?: string | undefined;
1138
+ headers?: (HeadersInit & (HeadersInit | {
1139
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1140
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1141
+ authorization: "Bearer" | "Basic";
1142
+ })) | undefined;
1143
+ credentials?: RequestCredentials | undefined;
1144
+ mode?: RequestMode | undefined;
1145
+ cache?: RequestCache | undefined;
1146
+ integrity?: string | undefined;
1147
+ keepalive?: boolean | undefined;
1148
+ priority?: RequestPriority | undefined;
1149
+ redirect?: RequestRedirect | undefined;
1150
+ referrer?: string | undefined;
1151
+ referrerPolicy?: ReferrerPolicy | undefined;
1152
+ signal?: (AbortSignal | null) | undefined;
1153
+ window?: null | undefined;
1154
+ next?: NextFetchRequestConfig | undefined;
1155
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
1156
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
1157
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
1158
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
1159
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
1160
+ hookOptions?: {
1161
+ cloneResponse?: boolean;
1162
+ } | undefined;
1163
+ timeout?: number | undefined;
1164
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
1165
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
1166
+ baseURL?: string | undefined;
1167
+ throw?: boolean | undefined;
1168
+ auth?: ({
1169
+ type: "Bearer";
1170
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1171
+ } | {
1172
+ type: "Basic";
1173
+ username: string | (() => string | undefined) | undefined;
1174
+ password: string | (() => string | undefined) | undefined;
1175
+ } | {
1176
+ type: "Custom";
1177
+ prefix: string | (() => string | undefined) | undefined;
1178
+ value: string | (() => string | undefined) | undefined;
1179
+ }) | undefined;
1180
+ body?: (Partial<{
1181
+ email: string;
1182
+ }> & Record<string, any>) | undefined;
1183
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1184
+ params?: Record<string, any> | undefined;
1185
+ duplex?: "full" | "half" | undefined;
1186
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1187
+ retry?: better_auth_react0.RetryOptions | undefined;
1188
+ retryAttempt?: number | undefined;
1189
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1190
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
1191
+ disableValidation?: boolean | undefined;
1192
+ }>(data_0: better_auth0.Prettify<{
1193
+ email: string;
1194
+ } & {
1195
+ fetchOptions?: FetchOptions | undefined;
1196
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
1197
+ success: boolean;
1198
+ }, {
1199
+ code?: string;
1200
+ message?: string;
1201
+ }, FetchOptions["throw"] extends true ? true : false>>;
1202
+ };
1203
+ } & {
1204
+ emailOtp: {
1205
+ resetPassword: <FetchOptions extends {
1206
+ method?: string | undefined;
1207
+ headers?: (HeadersInit & (HeadersInit | {
1208
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1209
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1210
+ authorization: "Bearer" | "Basic";
1211
+ })) | undefined;
1212
+ credentials?: RequestCredentials | undefined;
1213
+ mode?: RequestMode | undefined;
1214
+ cache?: RequestCache | undefined;
1215
+ integrity?: string | undefined;
1216
+ keepalive?: boolean | undefined;
1217
+ priority?: RequestPriority | undefined;
1218
+ redirect?: RequestRedirect | undefined;
1219
+ referrer?: string | undefined;
1220
+ referrerPolicy?: ReferrerPolicy | undefined;
1221
+ signal?: (AbortSignal | null) | undefined;
1222
+ window?: null | undefined;
1223
+ next?: NextFetchRequestConfig | undefined;
1224
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
1225
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
1226
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
1227
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
1228
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
1229
+ hookOptions?: {
1230
+ cloneResponse?: boolean;
1231
+ } | undefined;
1232
+ timeout?: number | undefined;
1233
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
1234
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
1235
+ baseURL?: string | undefined;
1236
+ throw?: boolean | undefined;
1237
+ auth?: ({
1238
+ type: "Bearer";
1239
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1240
+ } | {
1241
+ type: "Basic";
1242
+ username: string | (() => string | undefined) | undefined;
1243
+ password: string | (() => string | undefined) | undefined;
1244
+ } | {
1245
+ type: "Custom";
1246
+ prefix: string | (() => string | undefined) | undefined;
1247
+ value: string | (() => string | undefined) | undefined;
1248
+ }) | undefined;
1249
+ body?: (Partial<{
1250
+ email: string;
1251
+ otp: string;
1252
+ password: string;
1253
+ }> & Record<string, any>) | undefined;
1254
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1255
+ params?: Record<string, any> | undefined;
1256
+ duplex?: "full" | "half" | undefined;
1257
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1258
+ retry?: better_auth_react0.RetryOptions | undefined;
1259
+ retryAttempt?: number | undefined;
1260
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1261
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
1262
+ disableValidation?: boolean | undefined;
1263
+ }>(data_0: better_auth0.Prettify<{
1264
+ email: string;
1265
+ otp: string;
1266
+ password: string;
1267
+ } & {
1268
+ fetchOptions?: FetchOptions | undefined;
1269
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
1270
+ success: boolean;
1271
+ }, {
1272
+ code?: string;
1273
+ message?: string;
1274
+ }, FetchOptions["throw"] extends true ? true : false>>;
1275
+ };
1276
+ } & {
1277
+ emailOtp: {
1278
+ sendVerificationOtp: <FetchOptions extends {
1279
+ method?: string | undefined;
1280
+ headers?: (HeadersInit & (HeadersInit | {
1281
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1282
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1283
+ authorization: "Bearer" | "Basic";
1284
+ })) | undefined;
1285
+ credentials?: RequestCredentials | undefined;
1286
+ mode?: RequestMode | undefined;
1287
+ cache?: RequestCache | undefined;
1288
+ integrity?: string | undefined;
1289
+ keepalive?: boolean | undefined;
1290
+ priority?: RequestPriority | undefined;
1291
+ redirect?: RequestRedirect | undefined;
1292
+ referrer?: string | undefined;
1293
+ referrerPolicy?: ReferrerPolicy | undefined;
1294
+ signal?: (AbortSignal | null) | undefined;
1295
+ window?: null | undefined;
1296
+ next?: NextFetchRequestConfig | undefined;
1297
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
1298
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
1299
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
1300
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
1301
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
1302
+ hookOptions?: {
1303
+ cloneResponse?: boolean;
1304
+ } | undefined;
1305
+ timeout?: number | undefined;
1306
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
1307
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
1308
+ baseURL?: string | undefined;
1309
+ throw?: boolean | undefined;
1310
+ auth?: ({
1311
+ type: "Bearer";
1312
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1313
+ } | {
1314
+ type: "Basic";
1315
+ username: string | (() => string | undefined) | undefined;
1316
+ password: string | (() => string | undefined) | undefined;
1317
+ } | {
1318
+ type: "Custom";
1319
+ prefix: string | (() => string | undefined) | undefined;
1320
+ value: string | (() => string | undefined) | undefined;
1321
+ }) | undefined;
1322
+ body?: (Partial<{
1323
+ email: string;
1324
+ type: "sign-in" | "forget-password" | "email-verification";
1325
+ }> & Record<string, any>) | undefined;
1326
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1327
+ params?: Record<string, any> | undefined;
1328
+ duplex?: "full" | "half" | undefined;
1329
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1330
+ retry?: better_auth_react0.RetryOptions | undefined;
1331
+ retryAttempt?: number | undefined;
1332
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1333
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
1334
+ disableValidation?: boolean | undefined;
1335
+ }>(data_0: better_auth0.Prettify<{
1336
+ email: string;
1337
+ type: "sign-in" | "forget-password" | "email-verification";
1338
+ } & {
1339
+ fetchOptions?: FetchOptions | undefined;
1340
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
1341
+ success: boolean;
1342
+ }, {
1343
+ code?: string;
1344
+ message?: string;
1345
+ }, FetchOptions["throw"] extends true ? true : false>>;
1346
+ };
1347
+ } & {
1348
+ signIn: {
1349
+ social: <FetchOptions extends {
1350
+ method?: string | undefined;
1351
+ headers?: (HeadersInit & (HeadersInit | {
1352
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1353
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1354
+ authorization: "Bearer" | "Basic";
1355
+ })) | undefined;
1356
+ credentials?: RequestCredentials | undefined;
1357
+ mode?: RequestMode | undefined;
1358
+ cache?: RequestCache | undefined;
1359
+ integrity?: string | undefined;
1360
+ keepalive?: boolean | undefined;
1361
+ priority?: RequestPriority | undefined;
1362
+ redirect?: RequestRedirect | undefined;
1363
+ referrer?: string | undefined;
1364
+ referrerPolicy?: ReferrerPolicy | undefined;
1365
+ signal?: (AbortSignal | null) | undefined;
1366
+ window?: null | undefined;
1367
+ next?: NextFetchRequestConfig | undefined;
1368
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
1369
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
1370
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
1371
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
1372
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
1373
+ hookOptions?: {
1374
+ cloneResponse?: boolean;
1375
+ } | undefined;
1376
+ timeout?: number | undefined;
1377
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
1378
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
1379
+ baseURL?: string | undefined;
1380
+ throw?: boolean | undefined;
1381
+ auth?: ({
1382
+ type: "Bearer";
1383
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1384
+ } | {
1385
+ type: "Basic";
1386
+ username: string | (() => string | undefined) | undefined;
1387
+ password: string | (() => string | undefined) | undefined;
1388
+ } | {
1389
+ type: "Custom";
1390
+ prefix: string | (() => string | undefined) | undefined;
1391
+ value: string | (() => string | undefined) | undefined;
1392
+ }) | undefined;
1393
+ body?: (Partial<{
1394
+ provider: unknown;
1395
+ callbackURL?: string | undefined;
1396
+ newUserCallbackURL?: string | undefined;
1397
+ errorCallbackURL?: string | undefined;
1398
+ disableRedirect?: boolean | undefined;
1399
+ idToken?: {
1400
+ token: string;
1401
+ nonce?: string | undefined;
1402
+ accessToken?: string | undefined;
1403
+ refreshToken?: string | undefined;
1404
+ expiresAt?: number | undefined;
1405
+ } | undefined;
1406
+ scopes?: string[] | undefined;
1407
+ requestSignUp?: boolean | undefined;
1408
+ loginHint?: string | undefined;
1409
+ }> & Record<string, any>) | undefined;
1410
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1411
+ params?: Record<string, any> | undefined;
1412
+ duplex?: "full" | "half" | undefined;
1413
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1414
+ retry?: better_auth_react0.RetryOptions | undefined;
1415
+ retryAttempt?: number | undefined;
1416
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1417
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
1418
+ disableValidation?: boolean | undefined;
1419
+ }>(data_0: better_auth0.Prettify<{
1420
+ provider: unknown;
1421
+ callbackURL?: string | undefined;
1422
+ newUserCallbackURL?: string | undefined;
1423
+ errorCallbackURL?: string | undefined;
1424
+ disableRedirect?: boolean | undefined;
1425
+ idToken?: {
1426
+ token: string;
1427
+ nonce?: string | undefined;
1428
+ accessToken?: string | undefined;
1429
+ refreshToken?: string | undefined;
1430
+ expiresAt?: number | undefined;
1431
+ } | undefined;
1432
+ scopes?: string[] | undefined;
1433
+ requestSignUp?: boolean | undefined;
1434
+ loginHint?: string | undefined;
1435
+ } & {
1436
+ fetchOptions?: FetchOptions | undefined;
1437
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<NonNullable<{
1438
+ redirect: boolean;
1439
+ token: string;
1440
+ url: undefined;
1441
+ user: {
1442
+ id: string;
1443
+ email: string;
1444
+ name: string;
1445
+ image: string | null | undefined;
1446
+ emailVerified: boolean;
1447
+ createdAt: Date;
1448
+ updatedAt: Date;
1449
+ };
1450
+ } | {
1451
+ url: string;
1452
+ redirect: boolean;
1453
+ }>, {
1454
+ code?: string;
1455
+ message?: string;
1456
+ }, FetchOptions["throw"] extends true ? true : false>>;
1457
+ };
1458
+ } & {
1459
+ signOut: <FetchOptions extends {
1460
+ method?: string | undefined;
1461
+ headers?: (HeadersInit & (HeadersInit | {
1462
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1463
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1464
+ authorization: "Bearer" | "Basic";
1465
+ })) | undefined;
1466
+ credentials?: RequestCredentials | undefined;
1467
+ mode?: RequestMode | undefined;
1468
+ cache?: RequestCache | undefined;
1469
+ integrity?: string | undefined;
1470
+ keepalive?: boolean | undefined;
1471
+ priority?: RequestPriority | undefined;
1472
+ redirect?: RequestRedirect | undefined;
1473
+ referrer?: string | undefined;
1474
+ referrerPolicy?: ReferrerPolicy | undefined;
1475
+ signal?: (AbortSignal | null) | undefined;
1476
+ window?: null | undefined;
1477
+ next?: NextFetchRequestConfig | undefined;
1478
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
1479
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
1480
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
1481
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
1482
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
1483
+ hookOptions?: {
1484
+ cloneResponse?: boolean;
1485
+ } | undefined;
1486
+ timeout?: number | undefined;
1487
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
1488
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
1489
+ baseURL?: string | undefined;
1490
+ throw?: boolean | undefined;
1491
+ auth?: ({
1492
+ type: "Bearer";
1493
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1494
+ } | {
1495
+ type: "Basic";
1496
+ username: string | (() => string | undefined) | undefined;
1497
+ password: string | (() => string | undefined) | undefined;
1498
+ } | {
1499
+ type: "Custom";
1500
+ prefix: string | (() => string | undefined) | undefined;
1501
+ value: string | (() => string | undefined) | undefined;
1502
+ }) | undefined;
1503
+ body?: undefined;
1504
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1505
+ params?: Record<string, any> | undefined;
1506
+ duplex?: "full" | "half" | undefined;
1507
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1508
+ retry?: better_auth_react0.RetryOptions | undefined;
1509
+ retryAttempt?: number | undefined;
1510
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1511
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
1512
+ disableValidation?: boolean | undefined;
1513
+ }>(data_0?: better_auth0.Prettify<{
1514
+ query?: Record<string, any> | undefined;
1515
+ fetchOptions?: FetchOptions | undefined;
1516
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
1517
+ success: boolean;
1518
+ }, {
1519
+ code?: string;
1520
+ message?: string;
1521
+ }, FetchOptions["throw"] extends true ? true : false>>;
1522
+ } & {
1523
+ signIn: {
1524
+ email: <FetchOptions extends {
1525
+ method?: string | undefined;
1526
+ headers?: (HeadersInit & (HeadersInit | {
1527
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1528
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1529
+ authorization: "Bearer" | "Basic";
1530
+ })) | undefined;
1531
+ credentials?: RequestCredentials | undefined;
1532
+ mode?: RequestMode | undefined;
1533
+ cache?: RequestCache | undefined;
1534
+ integrity?: string | undefined;
1535
+ keepalive?: boolean | undefined;
1536
+ priority?: RequestPriority | undefined;
1537
+ redirect?: RequestRedirect | undefined;
1538
+ referrer?: string | undefined;
1539
+ referrerPolicy?: ReferrerPolicy | undefined;
1540
+ signal?: (AbortSignal | null) | undefined;
1541
+ window?: null | undefined;
1542
+ next?: NextFetchRequestConfig | undefined;
1543
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
1544
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
1545
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
1546
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
1547
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
1548
+ hookOptions?: {
1549
+ cloneResponse?: boolean;
1550
+ } | undefined;
1551
+ timeout?: number | undefined;
1552
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
1553
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
1554
+ baseURL?: string | undefined;
1555
+ throw?: boolean | undefined;
1556
+ auth?: ({
1557
+ type: "Bearer";
1558
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1559
+ } | {
1560
+ type: "Basic";
1561
+ username: string | (() => string | undefined) | undefined;
1562
+ password: string | (() => string | undefined) | undefined;
1563
+ } | {
1564
+ type: "Custom";
1565
+ prefix: string | (() => string | undefined) | undefined;
1566
+ value: string | (() => string | undefined) | undefined;
1567
+ }) | undefined;
1568
+ body?: (Partial<{
1569
+ email: string;
1570
+ password: string;
1571
+ callbackURL?: string | undefined;
1572
+ rememberMe?: boolean | undefined;
1573
+ }> & Record<string, any>) | undefined;
1574
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1575
+ params?: Record<string, any> | undefined;
1576
+ duplex?: "full" | "half" | undefined;
1577
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1578
+ retry?: better_auth_react0.RetryOptions | undefined;
1579
+ retryAttempt?: number | undefined;
1580
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1581
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
1582
+ disableValidation?: boolean | undefined;
1583
+ }>(data_0: better_auth0.Prettify<{
1584
+ email: string;
1585
+ password: string;
1586
+ callbackURL?: string | undefined;
1587
+ rememberMe?: boolean | undefined;
1588
+ } & {
1589
+ fetchOptions?: FetchOptions | undefined;
1590
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
1591
+ redirect: boolean;
1592
+ token: string;
1593
+ url: string | undefined;
1594
+ user: {
1595
+ id: string;
1596
+ email: string;
1597
+ name: string;
1598
+ image: string | null | undefined;
1599
+ emailVerified: boolean;
1600
+ createdAt: Date;
1601
+ updatedAt: Date;
1602
+ };
1603
+ }, {
1604
+ code?: string;
1605
+ message?: string;
1606
+ }, FetchOptions["throw"] extends true ? true : false>>;
1607
+ };
1608
+ } & {
1609
+ forgetPassword: <FetchOptions extends {
1610
+ method?: string | undefined;
1611
+ headers?: (HeadersInit & (HeadersInit | {
1612
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1613
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1614
+ authorization: "Bearer" | "Basic";
1615
+ })) | undefined;
1616
+ credentials?: RequestCredentials | undefined;
1617
+ mode?: RequestMode | undefined;
1618
+ cache?: RequestCache | undefined;
1619
+ integrity?: string | undefined;
1620
+ keepalive?: boolean | undefined;
1621
+ priority?: RequestPriority | undefined;
1622
+ redirect?: RequestRedirect | undefined;
1623
+ referrer?: string | undefined;
1624
+ referrerPolicy?: ReferrerPolicy | undefined;
1625
+ signal?: (AbortSignal | null) | undefined;
1626
+ window?: null | undefined;
1627
+ next?: NextFetchRequestConfig | undefined;
1628
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
1629
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
1630
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
1631
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
1632
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
1633
+ hookOptions?: {
1634
+ cloneResponse?: boolean;
1635
+ } | undefined;
1636
+ timeout?: number | undefined;
1637
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
1638
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
1639
+ baseURL?: string | undefined;
1640
+ throw?: boolean | undefined;
1641
+ auth?: ({
1642
+ type: "Bearer";
1643
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1644
+ } | {
1645
+ type: "Basic";
1646
+ username: string | (() => string | undefined) | undefined;
1647
+ password: string | (() => string | undefined) | undefined;
1648
+ } | {
1649
+ type: "Custom";
1650
+ prefix: string | (() => string | undefined) | undefined;
1651
+ value: string | (() => string | undefined) | undefined;
1652
+ }) | undefined;
1653
+ body?: (Partial<{
1654
+ email: string;
1655
+ redirectTo?: string | undefined;
1656
+ }> & Record<string, any>) | undefined;
1657
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1658
+ params?: Record<string, any> | undefined;
1659
+ duplex?: "full" | "half" | undefined;
1660
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1661
+ retry?: better_auth_react0.RetryOptions | undefined;
1662
+ retryAttempt?: number | undefined;
1663
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1664
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
1665
+ disableValidation?: boolean | undefined;
1666
+ }>(data_0: better_auth0.Prettify<{
1667
+ email: string;
1668
+ redirectTo?: string | undefined;
1669
+ } & {
1670
+ fetchOptions?: FetchOptions | undefined;
1671
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
1672
+ status: boolean;
1673
+ }, {
1674
+ code?: string;
1675
+ message?: string;
1676
+ }, FetchOptions["throw"] extends true ? true : false>>;
1677
+ } & {
1678
+ resetPassword: <FetchOptions extends {
1679
+ method?: string | undefined;
1680
+ headers?: (HeadersInit & (HeadersInit | {
1681
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1682
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1683
+ authorization: "Bearer" | "Basic";
1684
+ })) | undefined;
1685
+ credentials?: RequestCredentials | undefined;
1686
+ mode?: RequestMode | undefined;
1687
+ cache?: RequestCache | undefined;
1688
+ integrity?: string | undefined;
1689
+ keepalive?: boolean | undefined;
1690
+ priority?: RequestPriority | undefined;
1691
+ redirect?: RequestRedirect | undefined;
1692
+ referrer?: string | undefined;
1693
+ referrerPolicy?: ReferrerPolicy | undefined;
1694
+ signal?: (AbortSignal | null) | undefined;
1695
+ window?: null | undefined;
1696
+ next?: NextFetchRequestConfig | undefined;
1697
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
1698
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
1699
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
1700
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
1701
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
1702
+ hookOptions?: {
1703
+ cloneResponse?: boolean;
1704
+ } | undefined;
1705
+ timeout?: number | undefined;
1706
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
1707
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
1708
+ baseURL?: string | undefined;
1709
+ throw?: boolean | undefined;
1710
+ auth?: ({
1711
+ type: "Bearer";
1712
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1713
+ } | {
1714
+ type: "Basic";
1715
+ username: string | (() => string | undefined) | undefined;
1716
+ password: string | (() => string | undefined) | undefined;
1717
+ } | {
1718
+ type: "Custom";
1719
+ prefix: string | (() => string | undefined) | undefined;
1720
+ value: string | (() => string | undefined) | undefined;
1721
+ }) | undefined;
1722
+ body?: (Partial<{
1723
+ newPassword: string;
1724
+ token?: string | undefined;
1725
+ }> & Record<string, any>) | undefined;
1726
+ query?: (Partial<{
1727
+ token?: string | undefined;
1728
+ }> & Record<string, any>) | undefined;
1729
+ params?: Record<string, any> | undefined;
1730
+ duplex?: "full" | "half" | undefined;
1731
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1732
+ retry?: better_auth_react0.RetryOptions | undefined;
1733
+ retryAttempt?: number | undefined;
1734
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1735
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
1736
+ disableValidation?: boolean | undefined;
1737
+ }>(data_0: better_auth0.Prettify<{
1738
+ newPassword: string;
1739
+ token?: string | undefined;
1740
+ } & {
1741
+ fetchOptions?: FetchOptions | undefined;
1742
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
1743
+ status: boolean;
1744
+ }, {
1745
+ code?: string;
1746
+ message?: string;
1747
+ }, FetchOptions["throw"] extends true ? true : false>>;
1748
+ } & {
1749
+ verifyEmail: <FetchOptions extends {
1750
+ method?: string | undefined;
1751
+ headers?: (HeadersInit & (HeadersInit | {
1752
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1753
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1754
+ authorization: "Bearer" | "Basic";
1755
+ })) | undefined;
1756
+ credentials?: RequestCredentials | undefined;
1757
+ mode?: RequestMode | undefined;
1758
+ cache?: RequestCache | undefined;
1759
+ integrity?: string | undefined;
1760
+ keepalive?: boolean | undefined;
1761
+ priority?: RequestPriority | undefined;
1762
+ redirect?: RequestRedirect | undefined;
1763
+ referrer?: string | undefined;
1764
+ referrerPolicy?: ReferrerPolicy | undefined;
1765
+ signal?: (AbortSignal | null) | undefined;
1766
+ window?: null | undefined;
1767
+ next?: NextFetchRequestConfig | undefined;
1768
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
1769
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
1770
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
1771
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
1772
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
1773
+ hookOptions?: {
1774
+ cloneResponse?: boolean;
1775
+ } | undefined;
1776
+ timeout?: number | undefined;
1777
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
1778
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
1779
+ baseURL?: string | undefined;
1780
+ throw?: boolean | undefined;
1781
+ auth?: ({
1782
+ type: "Bearer";
1783
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1784
+ } | {
1785
+ type: "Basic";
1786
+ username: string | (() => string | undefined) | undefined;
1787
+ password: string | (() => string | undefined) | undefined;
1788
+ } | {
1789
+ type: "Custom";
1790
+ prefix: string | (() => string | undefined) | undefined;
1791
+ value: string | (() => string | undefined) | undefined;
1792
+ }) | undefined;
1793
+ body?: undefined;
1794
+ query?: (Partial<{
1795
+ token: string;
1796
+ callbackURL?: string | undefined;
1797
+ }> & Record<string, any>) | undefined;
1798
+ params?: Record<string, any> | undefined;
1799
+ duplex?: "full" | "half" | undefined;
1800
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1801
+ retry?: better_auth_react0.RetryOptions | undefined;
1802
+ retryAttempt?: number | undefined;
1803
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1804
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
1805
+ disableValidation?: boolean | undefined;
1806
+ }>(data_0: better_auth0.Prettify<{
1807
+ query: {
1808
+ token: string;
1809
+ callbackURL?: string | undefined;
1810
+ };
1811
+ fetchOptions?: FetchOptions | undefined;
1812
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<NonNullable<void | {
1813
+ status: boolean;
1814
+ user: {
1815
+ id: any;
1816
+ email: any;
1817
+ name: any;
1818
+ image: any;
1819
+ emailVerified: any;
1820
+ createdAt: any;
1821
+ updatedAt: any;
1822
+ };
1823
+ } | {
1824
+ status: boolean;
1825
+ user: null;
1826
+ }>, {
1827
+ code?: string;
1828
+ message?: string;
1829
+ }, FetchOptions["throw"] extends true ? true : false>>;
1830
+ } & {
1831
+ sendVerificationEmail: <FetchOptions extends {
1832
+ method?: string | undefined;
1833
+ headers?: (HeadersInit & (HeadersInit | {
1834
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1835
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1836
+ authorization: "Bearer" | "Basic";
1837
+ })) | undefined;
1838
+ credentials?: RequestCredentials | undefined;
1839
+ mode?: RequestMode | undefined;
1840
+ cache?: RequestCache | undefined;
1841
+ integrity?: string | undefined;
1842
+ keepalive?: boolean | undefined;
1843
+ priority?: RequestPriority | undefined;
1844
+ redirect?: RequestRedirect | undefined;
1845
+ referrer?: string | undefined;
1846
+ referrerPolicy?: ReferrerPolicy | undefined;
1847
+ signal?: (AbortSignal | null) | undefined;
1848
+ window?: null | undefined;
1849
+ next?: NextFetchRequestConfig | undefined;
1850
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
1851
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
1852
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
1853
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
1854
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
1855
+ hookOptions?: {
1856
+ cloneResponse?: boolean;
1857
+ } | undefined;
1858
+ timeout?: number | undefined;
1859
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
1860
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
1861
+ baseURL?: string | undefined;
1862
+ throw?: boolean | undefined;
1863
+ auth?: ({
1864
+ type: "Bearer";
1865
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1866
+ } | {
1867
+ type: "Basic";
1868
+ username: string | (() => string | undefined) | undefined;
1869
+ password: string | (() => string | undefined) | undefined;
1870
+ } | {
1871
+ type: "Custom";
1872
+ prefix: string | (() => string | undefined) | undefined;
1873
+ value: string | (() => string | undefined) | undefined;
1874
+ }) | undefined;
1875
+ body?: (Partial<{
1876
+ email: string;
1877
+ callbackURL?: string | undefined;
1878
+ }> & Record<string, any>) | undefined;
1879
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1880
+ params?: Record<string, any> | undefined;
1881
+ duplex?: "full" | "half" | undefined;
1882
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1883
+ retry?: better_auth_react0.RetryOptions | undefined;
1884
+ retryAttempt?: number | undefined;
1885
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1886
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
1887
+ disableValidation?: boolean | undefined;
1888
+ }>(data_0: better_auth0.Prettify<{
1889
+ email: string;
1890
+ callbackURL?: string | undefined;
1891
+ } & {
1892
+ fetchOptions?: FetchOptions | undefined;
1893
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
1894
+ status: boolean;
1895
+ }, {
1896
+ code?: string;
1897
+ message?: string;
1898
+ }, FetchOptions["throw"] extends true ? true : false>>;
1899
+ } & {
1900
+ changeEmail: <FetchOptions extends {
1901
+ method?: string | undefined;
1902
+ headers?: (HeadersInit & (HeadersInit | {
1903
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1904
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1905
+ authorization: "Bearer" | "Basic";
1906
+ })) | undefined;
1907
+ credentials?: RequestCredentials | undefined;
1908
+ mode?: RequestMode | undefined;
1909
+ cache?: RequestCache | undefined;
1910
+ integrity?: string | undefined;
1911
+ keepalive?: boolean | undefined;
1912
+ priority?: RequestPriority | undefined;
1913
+ redirect?: RequestRedirect | undefined;
1914
+ referrer?: string | undefined;
1915
+ referrerPolicy?: ReferrerPolicy | undefined;
1916
+ signal?: (AbortSignal | null) | undefined;
1917
+ window?: null | undefined;
1918
+ next?: NextFetchRequestConfig | undefined;
1919
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
1920
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
1921
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
1922
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
1923
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
1924
+ hookOptions?: {
1925
+ cloneResponse?: boolean;
1926
+ } | undefined;
1927
+ timeout?: number | undefined;
1928
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
1929
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
1930
+ baseURL?: string | undefined;
1931
+ throw?: boolean | undefined;
1932
+ auth?: ({
1933
+ type: "Bearer";
1934
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
1935
+ } | {
1936
+ type: "Basic";
1937
+ username: string | (() => string | undefined) | undefined;
1938
+ password: string | (() => string | undefined) | undefined;
1939
+ } | {
1940
+ type: "Custom";
1941
+ prefix: string | (() => string | undefined) | undefined;
1942
+ value: string | (() => string | undefined) | undefined;
1943
+ }) | undefined;
1944
+ body?: (Partial<{
1945
+ newEmail: string;
1946
+ callbackURL?: string | undefined;
1947
+ }> & Record<string, any>) | undefined;
1948
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
1949
+ params?: Record<string, any> | undefined;
1950
+ duplex?: "full" | "half" | undefined;
1951
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
1952
+ retry?: better_auth_react0.RetryOptions | undefined;
1953
+ retryAttempt?: number | undefined;
1954
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
1955
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
1956
+ disableValidation?: boolean | undefined;
1957
+ }>(data_0: better_auth0.Prettify<{
1958
+ newEmail: string;
1959
+ callbackURL?: string | undefined;
1960
+ } & {
1961
+ fetchOptions?: FetchOptions | undefined;
1962
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
1963
+ status: boolean;
1964
+ }, {
1965
+ code?: string;
1966
+ message?: string;
1967
+ }, FetchOptions["throw"] extends true ? true : false>>;
1968
+ } & {
1969
+ changePassword: <FetchOptions extends {
1970
+ method?: string | undefined;
1971
+ headers?: (HeadersInit & (HeadersInit | {
1972
+ accept: "application/json" | "text/plain" | "application/octet-stream";
1973
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
1974
+ authorization: "Bearer" | "Basic";
1975
+ })) | undefined;
1976
+ credentials?: RequestCredentials | undefined;
1977
+ mode?: RequestMode | undefined;
1978
+ cache?: RequestCache | undefined;
1979
+ integrity?: string | undefined;
1980
+ keepalive?: boolean | undefined;
1981
+ priority?: RequestPriority | undefined;
1982
+ redirect?: RequestRedirect | undefined;
1983
+ referrer?: string | undefined;
1984
+ referrerPolicy?: ReferrerPolicy | undefined;
1985
+ signal?: (AbortSignal | null) | undefined;
1986
+ window?: null | undefined;
1987
+ next?: NextFetchRequestConfig | undefined;
1988
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
1989
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
1990
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
1991
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
1992
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
1993
+ hookOptions?: {
1994
+ cloneResponse?: boolean;
1995
+ } | undefined;
1996
+ timeout?: number | undefined;
1997
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
1998
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
1999
+ baseURL?: string | undefined;
2000
+ throw?: boolean | undefined;
2001
+ auth?: ({
2002
+ type: "Bearer";
2003
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2004
+ } | {
2005
+ type: "Basic";
2006
+ username: string | (() => string | undefined) | undefined;
2007
+ password: string | (() => string | undefined) | undefined;
2008
+ } | {
2009
+ type: "Custom";
2010
+ prefix: string | (() => string | undefined) | undefined;
2011
+ value: string | (() => string | undefined) | undefined;
2012
+ }) | undefined;
2013
+ body?: (Partial<{
2014
+ newPassword: string;
2015
+ currentPassword: string;
2016
+ revokeOtherSessions?: boolean | undefined;
2017
+ }> & Record<string, any>) | undefined;
2018
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2019
+ params?: Record<string, any> | undefined;
2020
+ duplex?: "full" | "half" | undefined;
2021
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2022
+ retry?: better_auth_react0.RetryOptions | undefined;
2023
+ retryAttempt?: number | undefined;
2024
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2025
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
2026
+ disableValidation?: boolean | undefined;
2027
+ }>(data_0: better_auth0.Prettify<{
2028
+ newPassword: string;
2029
+ currentPassword: string;
2030
+ revokeOtherSessions?: boolean | undefined;
2031
+ } & {
2032
+ fetchOptions?: FetchOptions | undefined;
2033
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
2034
+ token: string | null;
2035
+ user: {
2036
+ id: string;
2037
+ email: string;
2038
+ name: string;
2039
+ image: string | null | undefined;
2040
+ emailVerified: boolean;
2041
+ createdAt: Date;
2042
+ updatedAt: Date;
2043
+ };
2044
+ }, {
2045
+ code?: string;
2046
+ message?: string;
2047
+ }, FetchOptions["throw"] extends true ? true : false>>;
2048
+ } & {
2049
+ deleteUser: <FetchOptions extends {
2050
+ method?: string | undefined;
2051
+ headers?: (HeadersInit & (HeadersInit | {
2052
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2053
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2054
+ authorization: "Bearer" | "Basic";
2055
+ })) | undefined;
2056
+ credentials?: RequestCredentials | undefined;
2057
+ mode?: RequestMode | undefined;
2058
+ cache?: RequestCache | undefined;
2059
+ integrity?: string | undefined;
2060
+ keepalive?: boolean | undefined;
2061
+ priority?: RequestPriority | undefined;
2062
+ redirect?: RequestRedirect | undefined;
2063
+ referrer?: string | undefined;
2064
+ referrerPolicy?: ReferrerPolicy | undefined;
2065
+ signal?: (AbortSignal | null) | undefined;
2066
+ window?: null | undefined;
2067
+ next?: NextFetchRequestConfig | undefined;
2068
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
2069
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
2070
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
2071
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
2072
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
2073
+ hookOptions?: {
2074
+ cloneResponse?: boolean;
2075
+ } | undefined;
2076
+ timeout?: number | undefined;
2077
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
2078
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
2079
+ baseURL?: string | undefined;
2080
+ throw?: boolean | undefined;
2081
+ auth?: ({
2082
+ type: "Bearer";
2083
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2084
+ } | {
2085
+ type: "Basic";
2086
+ username: string | (() => string | undefined) | undefined;
2087
+ password: string | (() => string | undefined) | undefined;
2088
+ } | {
2089
+ type: "Custom";
2090
+ prefix: string | (() => string | undefined) | undefined;
2091
+ value: string | (() => string | undefined) | undefined;
2092
+ }) | undefined;
2093
+ body?: (Partial<{
2094
+ callbackURL?: string | undefined;
2095
+ password?: string | undefined;
2096
+ token?: string | undefined;
2097
+ }> & Record<string, any>) | undefined;
2098
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2099
+ params?: Record<string, any> | undefined;
2100
+ duplex?: "full" | "half" | undefined;
2101
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2102
+ retry?: better_auth_react0.RetryOptions | undefined;
2103
+ retryAttempt?: number | undefined;
2104
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2105
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
2106
+ disableValidation?: boolean | undefined;
2107
+ }>(data_0?: better_auth0.Prettify<{
2108
+ callbackURL?: string | undefined;
2109
+ password?: string | undefined;
2110
+ token?: string | undefined;
2111
+ } & {
2112
+ fetchOptions?: FetchOptions | undefined;
2113
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
2114
+ success: boolean;
2115
+ message: string;
2116
+ }, {
2117
+ code?: string;
2118
+ message?: string;
2119
+ }, FetchOptions["throw"] extends true ? true : false>>;
2120
+ } & {
2121
+ resetPassword: {
2122
+ ":token": <FetchOptions extends {
2123
+ method?: string | undefined;
2124
+ headers?: (HeadersInit & (HeadersInit | {
2125
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2126
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2127
+ authorization: "Bearer" | "Basic";
2128
+ })) | undefined;
2129
+ credentials?: RequestCredentials | undefined;
2130
+ mode?: RequestMode | undefined;
2131
+ cache?: RequestCache | undefined;
2132
+ integrity?: string | undefined;
2133
+ keepalive?: boolean | undefined;
2134
+ priority?: RequestPriority | undefined;
2135
+ redirect?: RequestRedirect | undefined;
2136
+ referrer?: string | undefined;
2137
+ referrerPolicy?: ReferrerPolicy | undefined;
2138
+ signal?: (AbortSignal | null) | undefined;
2139
+ window?: null | undefined;
2140
+ next?: NextFetchRequestConfig | undefined;
2141
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
2142
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
2143
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
2144
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
2145
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
2146
+ hookOptions?: {
2147
+ cloneResponse?: boolean;
2148
+ } | undefined;
2149
+ timeout?: number | undefined;
2150
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
2151
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
2152
+ baseURL?: string | undefined;
2153
+ throw?: boolean | undefined;
2154
+ auth?: ({
2155
+ type: "Bearer";
2156
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2157
+ } | {
2158
+ type: "Basic";
2159
+ username: string | (() => string | undefined) | undefined;
2160
+ password: string | (() => string | undefined) | undefined;
2161
+ } | {
2162
+ type: "Custom";
2163
+ prefix: string | (() => string | undefined) | undefined;
2164
+ value: string | (() => string | undefined) | undefined;
2165
+ }) | undefined;
2166
+ body?: undefined;
2167
+ query?: (Partial<{
2168
+ callbackURL: string;
2169
+ }> & Record<string, any>) | undefined;
2170
+ params?: {
2171
+ token: string;
2172
+ } | undefined;
2173
+ duplex?: "full" | "half" | undefined;
2174
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2175
+ retry?: better_auth_react0.RetryOptions | undefined;
2176
+ retryAttempt?: number | undefined;
2177
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2178
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
2179
+ disableValidation?: boolean | undefined;
2180
+ }>(data_0: better_auth0.Prettify<{
2181
+ query: {
2182
+ callbackURL: string;
2183
+ };
2184
+ fetchOptions?: FetchOptions | undefined;
2185
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<never, {
2186
+ code?: string;
2187
+ message?: string;
2188
+ }, FetchOptions["throw"] extends true ? true : false>>;
2189
+ };
2190
+ } & {
2191
+ requestPasswordReset: <FetchOptions extends {
2192
+ method?: string | undefined;
2193
+ headers?: (HeadersInit & (HeadersInit | {
2194
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2195
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2196
+ authorization: "Bearer" | "Basic";
2197
+ })) | undefined;
2198
+ credentials?: RequestCredentials | undefined;
2199
+ mode?: RequestMode | undefined;
2200
+ cache?: RequestCache | undefined;
2201
+ integrity?: string | undefined;
2202
+ keepalive?: boolean | undefined;
2203
+ priority?: RequestPriority | undefined;
2204
+ redirect?: RequestRedirect | undefined;
2205
+ referrer?: string | undefined;
2206
+ referrerPolicy?: ReferrerPolicy | undefined;
2207
+ signal?: (AbortSignal | null) | undefined;
2208
+ window?: null | undefined;
2209
+ next?: NextFetchRequestConfig | undefined;
2210
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
2211
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
2212
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
2213
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
2214
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
2215
+ hookOptions?: {
2216
+ cloneResponse?: boolean;
2217
+ } | undefined;
2218
+ timeout?: number | undefined;
2219
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
2220
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
2221
+ baseURL?: string | undefined;
2222
+ throw?: boolean | undefined;
2223
+ auth?: ({
2224
+ type: "Bearer";
2225
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2226
+ } | {
2227
+ type: "Basic";
2228
+ username: string | (() => string | undefined) | undefined;
2229
+ password: string | (() => string | undefined) | undefined;
2230
+ } | {
2231
+ type: "Custom";
2232
+ prefix: string | (() => string | undefined) | undefined;
2233
+ value: string | (() => string | undefined) | undefined;
2234
+ }) | undefined;
2235
+ body?: (Partial<{
2236
+ email: string;
2237
+ redirectTo?: string | undefined;
2238
+ }> & Record<string, any>) | undefined;
2239
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2240
+ params?: Record<string, any> | undefined;
2241
+ duplex?: "full" | "half" | undefined;
2242
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2243
+ retry?: better_auth_react0.RetryOptions | undefined;
2244
+ retryAttempt?: number | undefined;
2245
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2246
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
2247
+ disableValidation?: boolean | undefined;
2248
+ }>(data_0: better_auth0.Prettify<{
2249
+ email: string;
2250
+ redirectTo?: string | undefined;
2251
+ } & {
2252
+ fetchOptions?: FetchOptions | undefined;
2253
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
2254
+ status: boolean;
2255
+ message: string;
2256
+ }, {
2257
+ code?: string;
2258
+ message?: string;
2259
+ }, FetchOptions["throw"] extends true ? true : false>>;
2260
+ } & {
2261
+ resetPassword: {
2262
+ ":token": <FetchOptions extends {
2263
+ method?: string | undefined;
2264
+ headers?: (HeadersInit & (HeadersInit | {
2265
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2266
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2267
+ authorization: "Bearer" | "Basic";
2268
+ })) | undefined;
2269
+ credentials?: RequestCredentials | undefined;
2270
+ mode?: RequestMode | undefined;
2271
+ cache?: RequestCache | undefined;
2272
+ integrity?: string | undefined;
2273
+ keepalive?: boolean | undefined;
2274
+ priority?: RequestPriority | undefined;
2275
+ redirect?: RequestRedirect | undefined;
2276
+ referrer?: string | undefined;
2277
+ referrerPolicy?: ReferrerPolicy | undefined;
2278
+ signal?: (AbortSignal | null) | undefined;
2279
+ window?: null | undefined;
2280
+ next?: NextFetchRequestConfig | undefined;
2281
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
2282
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
2283
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
2284
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
2285
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
2286
+ hookOptions?: {
2287
+ cloneResponse?: boolean;
2288
+ } | undefined;
2289
+ timeout?: number | undefined;
2290
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
2291
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
2292
+ baseURL?: string | undefined;
2293
+ throw?: boolean | undefined;
2294
+ auth?: ({
2295
+ type: "Bearer";
2296
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2297
+ } | {
2298
+ type: "Basic";
2299
+ username: string | (() => string | undefined) | undefined;
2300
+ password: string | (() => string | undefined) | undefined;
2301
+ } | {
2302
+ type: "Custom";
2303
+ prefix: string | (() => string | undefined) | undefined;
2304
+ value: string | (() => string | undefined) | undefined;
2305
+ }) | undefined;
2306
+ body?: undefined;
2307
+ query?: (Partial<{
2308
+ callbackURL: string;
2309
+ }> & Record<string, any>) | undefined;
2310
+ params?: {
2311
+ token: string;
2312
+ } | undefined;
2313
+ duplex?: "full" | "half" | undefined;
2314
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2315
+ retry?: better_auth_react0.RetryOptions | undefined;
2316
+ retryAttempt?: number | undefined;
2317
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2318
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
2319
+ disableValidation?: boolean | undefined;
2320
+ }>(data_0: better_auth0.Prettify<{
2321
+ query: {
2322
+ callbackURL: string;
2323
+ };
2324
+ fetchOptions?: FetchOptions | undefined;
2325
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<never, {
2326
+ code?: string;
2327
+ message?: string;
2328
+ }, FetchOptions["throw"] extends true ? true : false>>;
2329
+ };
2330
+ } & {
2331
+ revokeSession: <FetchOptions extends {
2332
+ method?: string | undefined;
2333
+ headers?: (HeadersInit & (HeadersInit | {
2334
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2335
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2336
+ authorization: "Bearer" | "Basic";
2337
+ })) | undefined;
2338
+ credentials?: RequestCredentials | undefined;
2339
+ mode?: RequestMode | undefined;
2340
+ cache?: RequestCache | undefined;
2341
+ integrity?: string | undefined;
2342
+ keepalive?: boolean | undefined;
2343
+ priority?: RequestPriority | undefined;
2344
+ redirect?: RequestRedirect | undefined;
2345
+ referrer?: string | undefined;
2346
+ referrerPolicy?: ReferrerPolicy | undefined;
2347
+ signal?: (AbortSignal | null) | undefined;
2348
+ window?: null | undefined;
2349
+ next?: NextFetchRequestConfig | undefined;
2350
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
2351
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
2352
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
2353
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
2354
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
2355
+ hookOptions?: {
2356
+ cloneResponse?: boolean;
2357
+ } | undefined;
2358
+ timeout?: number | undefined;
2359
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
2360
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
2361
+ baseURL?: string | undefined;
2362
+ throw?: boolean | undefined;
2363
+ auth?: ({
2364
+ type: "Bearer";
2365
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2366
+ } | {
2367
+ type: "Basic";
2368
+ username: string | (() => string | undefined) | undefined;
2369
+ password: string | (() => string | undefined) | undefined;
2370
+ } | {
2371
+ type: "Custom";
2372
+ prefix: string | (() => string | undefined) | undefined;
2373
+ value: string | (() => string | undefined) | undefined;
2374
+ }) | undefined;
2375
+ body?: (Partial<{
2376
+ token: string;
2377
+ }> & Record<string, any>) | undefined;
2378
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2379
+ params?: Record<string, any> | undefined;
2380
+ duplex?: "full" | "half" | undefined;
2381
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2382
+ retry?: better_auth_react0.RetryOptions | undefined;
2383
+ retryAttempt?: number | undefined;
2384
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2385
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
2386
+ disableValidation?: boolean | undefined;
2387
+ }>(data_0: better_auth0.Prettify<{
2388
+ token: string;
2389
+ } & {
2390
+ fetchOptions?: FetchOptions | undefined;
2391
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
2392
+ status: boolean;
2393
+ }, {
2394
+ code?: string;
2395
+ message?: string;
2396
+ }, FetchOptions["throw"] extends true ? true : false>>;
2397
+ } & {
2398
+ revokeSessions: <FetchOptions extends {
2399
+ method?: string | undefined;
2400
+ headers?: (HeadersInit & (HeadersInit | {
2401
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2402
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2403
+ authorization: "Bearer" | "Basic";
2404
+ })) | undefined;
2405
+ credentials?: RequestCredentials | undefined;
2406
+ mode?: RequestMode | undefined;
2407
+ cache?: RequestCache | undefined;
2408
+ integrity?: string | undefined;
2409
+ keepalive?: boolean | undefined;
2410
+ priority?: RequestPriority | undefined;
2411
+ redirect?: RequestRedirect | undefined;
2412
+ referrer?: string | undefined;
2413
+ referrerPolicy?: ReferrerPolicy | undefined;
2414
+ signal?: (AbortSignal | null) | undefined;
2415
+ window?: null | undefined;
2416
+ next?: NextFetchRequestConfig | undefined;
2417
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
2418
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
2419
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
2420
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
2421
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
2422
+ hookOptions?: {
2423
+ cloneResponse?: boolean;
2424
+ } | undefined;
2425
+ timeout?: number | undefined;
2426
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
2427
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
2428
+ baseURL?: string | undefined;
2429
+ throw?: boolean | undefined;
2430
+ auth?: ({
2431
+ type: "Bearer";
2432
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2433
+ } | {
2434
+ type: "Basic";
2435
+ username: string | (() => string | undefined) | undefined;
2436
+ password: string | (() => string | undefined) | undefined;
2437
+ } | {
2438
+ type: "Custom";
2439
+ prefix: string | (() => string | undefined) | undefined;
2440
+ value: string | (() => string | undefined) | undefined;
2441
+ }) | undefined;
2442
+ body?: undefined;
2443
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2444
+ params?: Record<string, any> | undefined;
2445
+ duplex?: "full" | "half" | undefined;
2446
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2447
+ retry?: better_auth_react0.RetryOptions | undefined;
2448
+ retryAttempt?: number | undefined;
2449
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2450
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
2451
+ disableValidation?: boolean | undefined;
2452
+ }>(data_0?: better_auth0.Prettify<{
2453
+ query?: Record<string, any> | undefined;
2454
+ fetchOptions?: FetchOptions | undefined;
2455
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
2456
+ status: boolean;
2457
+ }, {
2458
+ code?: string;
2459
+ message?: string;
2460
+ }, FetchOptions["throw"] extends true ? true : false>>;
2461
+ } & {
2462
+ revokeOtherSessions: <FetchOptions extends {
2463
+ method?: string | undefined;
2464
+ headers?: (HeadersInit & (HeadersInit | {
2465
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2466
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2467
+ authorization: "Bearer" | "Basic";
2468
+ })) | undefined;
2469
+ credentials?: RequestCredentials | undefined;
2470
+ mode?: RequestMode | undefined;
2471
+ cache?: RequestCache | undefined;
2472
+ integrity?: string | undefined;
2473
+ keepalive?: boolean | undefined;
2474
+ priority?: RequestPriority | undefined;
2475
+ redirect?: RequestRedirect | undefined;
2476
+ referrer?: string | undefined;
2477
+ referrerPolicy?: ReferrerPolicy | undefined;
2478
+ signal?: (AbortSignal | null) | undefined;
2479
+ window?: null | undefined;
2480
+ next?: NextFetchRequestConfig | undefined;
2481
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
2482
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
2483
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
2484
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
2485
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
2486
+ hookOptions?: {
2487
+ cloneResponse?: boolean;
2488
+ } | undefined;
2489
+ timeout?: number | undefined;
2490
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
2491
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
2492
+ baseURL?: string | undefined;
2493
+ throw?: boolean | undefined;
2494
+ auth?: ({
2495
+ type: "Bearer";
2496
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2497
+ } | {
2498
+ type: "Basic";
2499
+ username: string | (() => string | undefined) | undefined;
2500
+ password: string | (() => string | undefined) | undefined;
2501
+ } | {
2502
+ type: "Custom";
2503
+ prefix: string | (() => string | undefined) | undefined;
2504
+ value: string | (() => string | undefined) | undefined;
2505
+ }) | undefined;
2506
+ body?: undefined;
2507
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2508
+ params?: Record<string, any> | undefined;
2509
+ duplex?: "full" | "half" | undefined;
2510
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2511
+ retry?: better_auth_react0.RetryOptions | undefined;
2512
+ retryAttempt?: number | undefined;
2513
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2514
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
2515
+ disableValidation?: boolean | undefined;
2516
+ }>(data_0?: better_auth0.Prettify<{
2517
+ query?: Record<string, any> | undefined;
2518
+ fetchOptions?: FetchOptions | undefined;
2519
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
2520
+ status: boolean;
2521
+ }, {
2522
+ code?: string;
2523
+ message?: string;
2524
+ }, FetchOptions["throw"] extends true ? true : false>>;
2525
+ } & {
2526
+ linkSocial: <FetchOptions extends {
2527
+ method?: string | undefined;
2528
+ headers?: (HeadersInit & (HeadersInit | {
2529
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2530
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2531
+ authorization: "Bearer" | "Basic";
2532
+ })) | undefined;
2533
+ credentials?: RequestCredentials | undefined;
2534
+ mode?: RequestMode | undefined;
2535
+ cache?: RequestCache | undefined;
2536
+ integrity?: string | undefined;
2537
+ keepalive?: boolean | undefined;
2538
+ priority?: RequestPriority | undefined;
2539
+ redirect?: RequestRedirect | undefined;
2540
+ referrer?: string | undefined;
2541
+ referrerPolicy?: ReferrerPolicy | undefined;
2542
+ signal?: (AbortSignal | null) | undefined;
2543
+ window?: null | undefined;
2544
+ next?: NextFetchRequestConfig | undefined;
2545
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
2546
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
2547
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
2548
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
2549
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
2550
+ hookOptions?: {
2551
+ cloneResponse?: boolean;
2552
+ } | undefined;
2553
+ timeout?: number | undefined;
2554
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
2555
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
2556
+ baseURL?: string | undefined;
2557
+ throw?: boolean | undefined;
2558
+ auth?: ({
2559
+ type: "Bearer";
2560
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2561
+ } | {
2562
+ type: "Basic";
2563
+ username: string | (() => string | undefined) | undefined;
2564
+ password: string | (() => string | undefined) | undefined;
2565
+ } | {
2566
+ type: "Custom";
2567
+ prefix: string | (() => string | undefined) | undefined;
2568
+ value: string | (() => string | undefined) | undefined;
2569
+ }) | undefined;
2570
+ body?: (Partial<{
2571
+ provider: unknown;
2572
+ callbackURL?: string | undefined;
2573
+ idToken?: {
2574
+ token: string;
2575
+ nonce?: string | undefined;
2576
+ accessToken?: string | undefined;
2577
+ refreshToken?: string | undefined;
2578
+ scopes?: string[] | undefined;
2579
+ } | undefined;
2580
+ requestSignUp?: boolean | undefined;
2581
+ scopes?: string[] | undefined;
2582
+ errorCallbackURL?: string | undefined;
2583
+ disableRedirect?: boolean | undefined;
2584
+ }> & Record<string, any>) | undefined;
2585
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2586
+ params?: Record<string, any> | undefined;
2587
+ duplex?: "full" | "half" | undefined;
2588
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2589
+ retry?: better_auth_react0.RetryOptions | undefined;
2590
+ retryAttempt?: number | undefined;
2591
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2592
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
2593
+ disableValidation?: boolean | undefined;
2594
+ }>(data_0: better_auth0.Prettify<{
2595
+ provider: unknown;
2596
+ callbackURL?: string | undefined;
2597
+ idToken?: {
2598
+ token: string;
2599
+ nonce?: string | undefined;
2600
+ accessToken?: string | undefined;
2601
+ refreshToken?: string | undefined;
2602
+ scopes?: string[] | undefined;
2603
+ } | undefined;
2604
+ requestSignUp?: boolean | undefined;
2605
+ scopes?: string[] | undefined;
2606
+ errorCallbackURL?: string | undefined;
2607
+ disableRedirect?: boolean | undefined;
2608
+ } & {
2609
+ fetchOptions?: FetchOptions | undefined;
2610
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
2611
+ url: string;
2612
+ redirect: boolean;
2613
+ }, {
2614
+ code?: string;
2615
+ message?: string;
2616
+ }, FetchOptions["throw"] extends true ? true : false>>;
2617
+ } & {
2618
+ listAccounts: <FetchOptions extends {
2619
+ method?: string | undefined;
2620
+ headers?: (HeadersInit & (HeadersInit | {
2621
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2622
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2623
+ authorization: "Bearer" | "Basic";
2624
+ })) | undefined;
2625
+ credentials?: RequestCredentials | undefined;
2626
+ mode?: RequestMode | undefined;
2627
+ cache?: RequestCache | undefined;
2628
+ integrity?: string | undefined;
2629
+ keepalive?: boolean | undefined;
2630
+ priority?: RequestPriority | undefined;
2631
+ redirect?: RequestRedirect | undefined;
2632
+ referrer?: string | undefined;
2633
+ referrerPolicy?: ReferrerPolicy | undefined;
2634
+ signal?: (AbortSignal | null) | undefined;
2635
+ window?: null | undefined;
2636
+ next?: NextFetchRequestConfig | undefined;
2637
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
2638
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
2639
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
2640
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
2641
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
2642
+ hookOptions?: {
2643
+ cloneResponse?: boolean;
2644
+ } | undefined;
2645
+ timeout?: number | undefined;
2646
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
2647
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
2648
+ baseURL?: string | undefined;
2649
+ throw?: boolean | undefined;
2650
+ auth?: ({
2651
+ type: "Bearer";
2652
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2653
+ } | {
2654
+ type: "Basic";
2655
+ username: string | (() => string | undefined) | undefined;
2656
+ password: string | (() => string | undefined) | undefined;
2657
+ } | {
2658
+ type: "Custom";
2659
+ prefix: string | (() => string | undefined) | undefined;
2660
+ value: string | (() => string | undefined) | undefined;
2661
+ }) | undefined;
2662
+ body?: undefined;
2663
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2664
+ params?: Record<string, any> | undefined;
2665
+ duplex?: "full" | "half" | undefined;
2666
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2667
+ retry?: better_auth_react0.RetryOptions | undefined;
2668
+ retryAttempt?: number | undefined;
2669
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2670
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
2671
+ disableValidation?: boolean | undefined;
2672
+ }>(data_0?: better_auth0.Prettify<{
2673
+ query?: Record<string, any> | undefined;
2674
+ fetchOptions?: FetchOptions | undefined;
2675
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
2676
+ id: string;
2677
+ providerId: string;
2678
+ createdAt: Date;
2679
+ updatedAt: Date;
2680
+ accountId: string;
2681
+ scopes: string[];
2682
+ }[], {
2683
+ code?: string;
2684
+ message?: string;
2685
+ }, FetchOptions["throw"] extends true ? true : false>>;
2686
+ } & {
2687
+ deleteUser: {
2688
+ callback: <FetchOptions extends {
2689
+ method?: string | undefined;
2690
+ headers?: (HeadersInit & (HeadersInit | {
2691
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2692
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2693
+ authorization: "Bearer" | "Basic";
2694
+ })) | undefined;
2695
+ credentials?: RequestCredentials | undefined;
2696
+ mode?: RequestMode | undefined;
2697
+ cache?: RequestCache | undefined;
2698
+ integrity?: string | undefined;
2699
+ keepalive?: boolean | undefined;
2700
+ priority?: RequestPriority | undefined;
2701
+ redirect?: RequestRedirect | undefined;
2702
+ referrer?: string | undefined;
2703
+ referrerPolicy?: ReferrerPolicy | undefined;
2704
+ signal?: (AbortSignal | null) | undefined;
2705
+ window?: null | undefined;
2706
+ next?: NextFetchRequestConfig | undefined;
2707
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
2708
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
2709
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
2710
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
2711
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
2712
+ hookOptions?: {
2713
+ cloneResponse?: boolean;
2714
+ } | undefined;
2715
+ timeout?: number | undefined;
2716
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
2717
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
2718
+ baseURL?: string | undefined;
2719
+ throw?: boolean | undefined;
2720
+ auth?: ({
2721
+ type: "Bearer";
2722
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2723
+ } | {
2724
+ type: "Basic";
2725
+ username: string | (() => string | undefined) | undefined;
2726
+ password: string | (() => string | undefined) | undefined;
2727
+ } | {
2728
+ type: "Custom";
2729
+ prefix: string | (() => string | undefined) | undefined;
2730
+ value: string | (() => string | undefined) | undefined;
2731
+ }) | undefined;
2732
+ body?: undefined;
2733
+ query?: (Partial<{
2734
+ token: string;
2735
+ callbackURL?: string | undefined;
2736
+ }> & Record<string, any>) | undefined;
2737
+ params?: Record<string, any> | undefined;
2738
+ duplex?: "full" | "half" | undefined;
2739
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2740
+ retry?: better_auth_react0.RetryOptions | undefined;
2741
+ retryAttempt?: number | undefined;
2742
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2743
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
2744
+ disableValidation?: boolean | undefined;
2745
+ }>(data_0: better_auth0.Prettify<{
2746
+ query: {
2747
+ token: string;
2748
+ callbackURL?: string | undefined;
2749
+ };
2750
+ fetchOptions?: FetchOptions | undefined;
2751
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
2752
+ success: boolean;
2753
+ message: string;
2754
+ }, {
2755
+ code?: string;
2756
+ message?: string;
2757
+ }, FetchOptions["throw"] extends true ? true : false>>;
2758
+ };
2759
+ } & {
2760
+ unlinkAccount: <FetchOptions extends {
2761
+ method?: string | undefined;
2762
+ headers?: (HeadersInit & (HeadersInit | {
2763
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2764
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2765
+ authorization: "Bearer" | "Basic";
2766
+ })) | undefined;
2767
+ credentials?: RequestCredentials | undefined;
2768
+ mode?: RequestMode | undefined;
2769
+ cache?: RequestCache | undefined;
2770
+ integrity?: string | undefined;
2771
+ keepalive?: boolean | undefined;
2772
+ priority?: RequestPriority | undefined;
2773
+ redirect?: RequestRedirect | undefined;
2774
+ referrer?: string | undefined;
2775
+ referrerPolicy?: ReferrerPolicy | undefined;
2776
+ signal?: (AbortSignal | null) | undefined;
2777
+ window?: null | undefined;
2778
+ next?: NextFetchRequestConfig | undefined;
2779
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
2780
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
2781
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
2782
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
2783
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
2784
+ hookOptions?: {
2785
+ cloneResponse?: boolean;
2786
+ } | undefined;
2787
+ timeout?: number | undefined;
2788
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
2789
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
2790
+ baseURL?: string | undefined;
2791
+ throw?: boolean | undefined;
2792
+ auth?: ({
2793
+ type: "Bearer";
2794
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2795
+ } | {
2796
+ type: "Basic";
2797
+ username: string | (() => string | undefined) | undefined;
2798
+ password: string | (() => string | undefined) | undefined;
2799
+ } | {
2800
+ type: "Custom";
2801
+ prefix: string | (() => string | undefined) | undefined;
2802
+ value: string | (() => string | undefined) | undefined;
2803
+ }) | undefined;
2804
+ body?: (Partial<{
2805
+ providerId: string;
2806
+ accountId?: string | undefined;
2807
+ }> & Record<string, any>) | undefined;
2808
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2809
+ params?: Record<string, any> | undefined;
2810
+ duplex?: "full" | "half" | undefined;
2811
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2812
+ retry?: better_auth_react0.RetryOptions | undefined;
2813
+ retryAttempt?: number | undefined;
2814
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2815
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
2816
+ disableValidation?: boolean | undefined;
2817
+ }>(data_0: better_auth0.Prettify<{
2818
+ providerId: string;
2819
+ accountId?: string | undefined;
2820
+ } & {
2821
+ fetchOptions?: FetchOptions | undefined;
2822
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
2823
+ status: boolean;
2824
+ }, {
2825
+ code?: string;
2826
+ message?: string;
2827
+ }, FetchOptions["throw"] extends true ? true : false>>;
2828
+ } & {
2829
+ refreshToken: <FetchOptions extends {
2830
+ method?: string | undefined;
2831
+ headers?: (HeadersInit & (HeadersInit | {
2832
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2833
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2834
+ authorization: "Bearer" | "Basic";
2835
+ })) | undefined;
2836
+ credentials?: RequestCredentials | undefined;
2837
+ mode?: RequestMode | undefined;
2838
+ cache?: RequestCache | undefined;
2839
+ integrity?: string | undefined;
2840
+ keepalive?: boolean | undefined;
2841
+ priority?: RequestPriority | undefined;
2842
+ redirect?: RequestRedirect | undefined;
2843
+ referrer?: string | undefined;
2844
+ referrerPolicy?: ReferrerPolicy | undefined;
2845
+ signal?: (AbortSignal | null) | undefined;
2846
+ window?: null | undefined;
2847
+ next?: NextFetchRequestConfig | undefined;
2848
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
2849
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
2850
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
2851
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
2852
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
2853
+ hookOptions?: {
2854
+ cloneResponse?: boolean;
2855
+ } | undefined;
2856
+ timeout?: number | undefined;
2857
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
2858
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
2859
+ baseURL?: string | undefined;
2860
+ throw?: boolean | undefined;
2861
+ auth?: ({
2862
+ type: "Bearer";
2863
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2864
+ } | {
2865
+ type: "Basic";
2866
+ username: string | (() => string | undefined) | undefined;
2867
+ password: string | (() => string | undefined) | undefined;
2868
+ } | {
2869
+ type: "Custom";
2870
+ prefix: string | (() => string | undefined) | undefined;
2871
+ value: string | (() => string | undefined) | undefined;
2872
+ }) | undefined;
2873
+ body?: (Partial<{
2874
+ providerId: string;
2875
+ accountId?: string | undefined;
2876
+ userId?: string | undefined;
2877
+ }> & Record<string, any>) | undefined;
2878
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2879
+ params?: Record<string, any> | undefined;
2880
+ duplex?: "full" | "half" | undefined;
2881
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2882
+ retry?: better_auth_react0.RetryOptions | undefined;
2883
+ retryAttempt?: number | undefined;
2884
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2885
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
2886
+ disableValidation?: boolean | undefined;
2887
+ }>(data_0: better_auth0.Prettify<{
2888
+ providerId: string;
2889
+ accountId?: string | undefined;
2890
+ userId?: string | undefined;
2891
+ } & {
2892
+ fetchOptions?: FetchOptions | undefined;
2893
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<better_auth0.OAuth2Tokens, {
2894
+ code?: string;
2895
+ message?: string;
2896
+ }, FetchOptions["throw"] extends true ? true : false>>;
2897
+ } & {
2898
+ getAccessToken: <FetchOptions extends {
2899
+ method?: string | undefined;
2900
+ headers?: (HeadersInit & (HeadersInit | {
2901
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2902
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2903
+ authorization: "Bearer" | "Basic";
2904
+ })) | undefined;
2905
+ credentials?: RequestCredentials | undefined;
2906
+ mode?: RequestMode | undefined;
2907
+ cache?: RequestCache | undefined;
2908
+ integrity?: string | undefined;
2909
+ keepalive?: boolean | undefined;
2910
+ priority?: RequestPriority | undefined;
2911
+ redirect?: RequestRedirect | undefined;
2912
+ referrer?: string | undefined;
2913
+ referrerPolicy?: ReferrerPolicy | undefined;
2914
+ signal?: (AbortSignal | null) | undefined;
2915
+ window?: null | undefined;
2916
+ next?: NextFetchRequestConfig | undefined;
2917
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
2918
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
2919
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
2920
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
2921
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
2922
+ hookOptions?: {
2923
+ cloneResponse?: boolean;
2924
+ } | undefined;
2925
+ timeout?: number | undefined;
2926
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
2927
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
2928
+ baseURL?: string | undefined;
2929
+ throw?: boolean | undefined;
2930
+ auth?: ({
2931
+ type: "Bearer";
2932
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
2933
+ } | {
2934
+ type: "Basic";
2935
+ username: string | (() => string | undefined) | undefined;
2936
+ password: string | (() => string | undefined) | undefined;
2937
+ } | {
2938
+ type: "Custom";
2939
+ prefix: string | (() => string | undefined) | undefined;
2940
+ value: string | (() => string | undefined) | undefined;
2941
+ }) | undefined;
2942
+ body?: (Partial<{
2943
+ providerId: string;
2944
+ accountId?: string | undefined;
2945
+ userId?: string | undefined;
2946
+ }> & Record<string, any>) | undefined;
2947
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
2948
+ params?: Record<string, any> | undefined;
2949
+ duplex?: "full" | "half" | undefined;
2950
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
2951
+ retry?: better_auth_react0.RetryOptions | undefined;
2952
+ retryAttempt?: number | undefined;
2953
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
2954
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
2955
+ disableValidation?: boolean | undefined;
2956
+ }>(data_0: better_auth0.Prettify<{
2957
+ providerId: string;
2958
+ accountId?: string | undefined;
2959
+ userId?: string | undefined;
2960
+ } & {
2961
+ fetchOptions?: FetchOptions | undefined;
2962
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
2963
+ accessToken: string;
2964
+ accessTokenExpiresAt: Date | undefined;
2965
+ scopes: string[];
2966
+ idToken: string | undefined;
2967
+ }, {
2968
+ code?: string;
2969
+ message?: string;
2970
+ }, FetchOptions["throw"] extends true ? true : false>>;
2971
+ } & {
2972
+ accountInfo: <FetchOptions extends {
2973
+ method?: string | undefined;
2974
+ headers?: (HeadersInit & (HeadersInit | {
2975
+ accept: "application/json" | "text/plain" | "application/octet-stream";
2976
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
2977
+ authorization: "Bearer" | "Basic";
2978
+ })) | undefined;
2979
+ credentials?: RequestCredentials | undefined;
2980
+ mode?: RequestMode | undefined;
2981
+ cache?: RequestCache | undefined;
2982
+ integrity?: string | undefined;
2983
+ keepalive?: boolean | undefined;
2984
+ priority?: RequestPriority | undefined;
2985
+ redirect?: RequestRedirect | undefined;
2986
+ referrer?: string | undefined;
2987
+ referrerPolicy?: ReferrerPolicy | undefined;
2988
+ signal?: (AbortSignal | null) | undefined;
2989
+ window?: null | undefined;
2990
+ next?: NextFetchRequestConfig | undefined;
2991
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
2992
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
2993
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
2994
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
2995
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
2996
+ hookOptions?: {
2997
+ cloneResponse?: boolean;
2998
+ } | undefined;
2999
+ timeout?: number | undefined;
3000
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
3001
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
3002
+ baseURL?: string | undefined;
3003
+ throw?: boolean | undefined;
3004
+ auth?: ({
3005
+ type: "Bearer";
3006
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
3007
+ } | {
3008
+ type: "Basic";
3009
+ username: string | (() => string | undefined) | undefined;
3010
+ password: string | (() => string | undefined) | undefined;
3011
+ } | {
3012
+ type: "Custom";
3013
+ prefix: string | (() => string | undefined) | undefined;
3014
+ value: string | (() => string | undefined) | undefined;
3015
+ }) | undefined;
3016
+ body?: (Partial<{
3017
+ accountId: string;
3018
+ }> & Record<string, any>) | undefined;
3019
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
3020
+ params?: Record<string, any> | undefined;
3021
+ duplex?: "full" | "half" | undefined;
3022
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
3023
+ retry?: better_auth_react0.RetryOptions | undefined;
3024
+ retryAttempt?: number | undefined;
3025
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
3026
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
3027
+ disableValidation?: boolean | undefined;
3028
+ }>(data_0: better_auth0.Prettify<{
3029
+ accountId: string;
3030
+ } & {
3031
+ fetchOptions?: FetchOptions | undefined;
3032
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
3033
+ user: better_auth0.OAuth2UserInfo;
3034
+ data: Record<string, any>;
3035
+ }, {
3036
+ code?: string;
3037
+ message?: string;
3038
+ }, FetchOptions["throw"] extends true ? true : false>>;
3039
+ } & {
3040
+ admin: {
3041
+ setRole: <FetchOptions extends {
3042
+ method?: string | undefined;
3043
+ headers?: (HeadersInit & (HeadersInit | {
3044
+ accept: "application/json" | "text/plain" | "application/octet-stream";
3045
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
3046
+ authorization: "Bearer" | "Basic";
3047
+ })) | undefined;
3048
+ credentials?: RequestCredentials | undefined;
3049
+ mode?: RequestMode | undefined;
3050
+ cache?: RequestCache | undefined;
3051
+ integrity?: string | undefined;
3052
+ keepalive?: boolean | undefined;
3053
+ priority?: RequestPriority | undefined;
3054
+ redirect?: RequestRedirect | undefined;
3055
+ referrer?: string | undefined;
3056
+ referrerPolicy?: ReferrerPolicy | undefined;
3057
+ signal?: (AbortSignal | null) | undefined;
3058
+ window?: null | undefined;
3059
+ next?: NextFetchRequestConfig | undefined;
3060
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
3061
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
3062
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
3063
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
3064
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
3065
+ hookOptions?: {
3066
+ cloneResponse?: boolean;
3067
+ } | undefined;
3068
+ timeout?: number | undefined;
3069
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
3070
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
3071
+ baseURL?: string | undefined;
3072
+ throw?: boolean | undefined;
3073
+ auth?: ({
3074
+ type: "Bearer";
3075
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
3076
+ } | {
3077
+ type: "Basic";
3078
+ username: string | (() => string | undefined) | undefined;
3079
+ password: string | (() => string | undefined) | undefined;
3080
+ } | {
3081
+ type: "Custom";
3082
+ prefix: string | (() => string | undefined) | undefined;
3083
+ value: string | (() => string | undefined) | undefined;
3084
+ }) | undefined;
3085
+ body?: (Partial<{
3086
+ userId: string;
3087
+ role: "admin" | "user" | ("admin" | "user")[];
3088
+ }> & Record<string, any>) | undefined;
3089
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
3090
+ params?: Record<string, any> | undefined;
3091
+ duplex?: "full" | "half" | undefined;
3092
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
3093
+ retry?: better_auth_react0.RetryOptions | undefined;
3094
+ retryAttempt?: number | undefined;
3095
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
3096
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
3097
+ disableValidation?: boolean | undefined;
3098
+ }>(data_0: better_auth0.Prettify<{
3099
+ userId: string;
3100
+ role: "admin" | "user" | ("admin" | "user")[];
3101
+ } & {
3102
+ fetchOptions?: FetchOptions | undefined;
3103
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
3104
+ user: better_auth_plugins0.UserWithRole;
3105
+ }, {
3106
+ code?: string;
3107
+ message?: string;
3108
+ }, FetchOptions["throw"] extends true ? true : false>>;
3109
+ };
3110
+ } & {
3111
+ admin: {
3112
+ createUser: <FetchOptions extends {
3113
+ method?: string | undefined;
3114
+ headers?: (HeadersInit & (HeadersInit | {
3115
+ accept: "application/json" | "text/plain" | "application/octet-stream";
3116
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
3117
+ authorization: "Bearer" | "Basic";
3118
+ })) | undefined;
3119
+ credentials?: RequestCredentials | undefined;
3120
+ mode?: RequestMode | undefined;
3121
+ cache?: RequestCache | undefined;
3122
+ integrity?: string | undefined;
3123
+ keepalive?: boolean | undefined;
3124
+ priority?: RequestPriority | undefined;
3125
+ redirect?: RequestRedirect | undefined;
3126
+ referrer?: string | undefined;
3127
+ referrerPolicy?: ReferrerPolicy | undefined;
3128
+ signal?: (AbortSignal | null) | undefined;
3129
+ window?: null | undefined;
3130
+ next?: NextFetchRequestConfig | undefined;
3131
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
3132
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
3133
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
3134
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
3135
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
3136
+ hookOptions?: {
3137
+ cloneResponse?: boolean;
3138
+ } | undefined;
3139
+ timeout?: number | undefined;
3140
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
3141
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
3142
+ baseURL?: string | undefined;
3143
+ throw?: boolean | undefined;
3144
+ auth?: ({
3145
+ type: "Bearer";
3146
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
3147
+ } | {
3148
+ type: "Basic";
3149
+ username: string | (() => string | undefined) | undefined;
3150
+ password: string | (() => string | undefined) | undefined;
3151
+ } | {
3152
+ type: "Custom";
3153
+ prefix: string | (() => string | undefined) | undefined;
3154
+ value: string | (() => string | undefined) | undefined;
3155
+ }) | undefined;
3156
+ body?: (Partial<{
3157
+ email: string;
3158
+ password: string;
3159
+ name: string;
3160
+ role?: "admin" | "user" | ("admin" | "user")[] | undefined;
3161
+ data?: Record<string, any>;
3162
+ }> & Record<string, any>) | undefined;
3163
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
3164
+ params?: Record<string, any> | undefined;
3165
+ duplex?: "full" | "half" | undefined;
3166
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
3167
+ retry?: better_auth_react0.RetryOptions | undefined;
3168
+ retryAttempt?: number | undefined;
3169
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
3170
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
3171
+ disableValidation?: boolean | undefined;
3172
+ }>(data_0: better_auth0.Prettify<{
3173
+ email: string;
3174
+ password: string;
3175
+ name: string;
3176
+ role?: "admin" | "user" | ("admin" | "user")[] | undefined;
3177
+ data?: Record<string, any>;
3178
+ } & {
3179
+ fetchOptions?: FetchOptions | undefined;
3180
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
3181
+ user: better_auth_plugins0.UserWithRole;
3182
+ }, {
3183
+ code?: string;
3184
+ message?: string;
3185
+ }, FetchOptions["throw"] extends true ? true : false>>;
3186
+ };
3187
+ } & {
3188
+ admin: {
3189
+ hasPermission: <FetchOptions extends {
3190
+ method?: string | undefined;
3191
+ headers?: (HeadersInit & (HeadersInit | {
3192
+ accept: "application/json" | "text/plain" | "application/octet-stream";
3193
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
3194
+ authorization: "Bearer" | "Basic";
3195
+ })) | undefined;
3196
+ credentials?: RequestCredentials | undefined;
3197
+ mode?: RequestMode | undefined;
3198
+ cache?: RequestCache | undefined;
3199
+ integrity?: string | undefined;
3200
+ keepalive?: boolean | undefined;
3201
+ priority?: RequestPriority | undefined;
3202
+ redirect?: RequestRedirect | undefined;
3203
+ referrer?: string | undefined;
3204
+ referrerPolicy?: ReferrerPolicy | undefined;
3205
+ signal?: (AbortSignal | null) | undefined;
3206
+ window?: null | undefined;
3207
+ next?: NextFetchRequestConfig | undefined;
3208
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
3209
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
3210
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
3211
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
3212
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
3213
+ hookOptions?: {
3214
+ cloneResponse?: boolean;
3215
+ } | undefined;
3216
+ timeout?: number | undefined;
3217
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
3218
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
3219
+ baseURL?: string | undefined;
3220
+ throw?: boolean | undefined;
3221
+ auth?: ({
3222
+ type: "Bearer";
3223
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
3224
+ } | {
3225
+ type: "Basic";
3226
+ username: string | (() => string | undefined) | undefined;
3227
+ password: string | (() => string | undefined) | undefined;
3228
+ } | {
3229
+ type: "Custom";
3230
+ prefix: string | (() => string | undefined) | undefined;
3231
+ value: string | (() => string | undefined) | undefined;
3232
+ }) | undefined;
3233
+ body?: (Partial<({
3234
+ permission: {
3235
+ readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
3236
+ readonly session?: ("list" | "delete" | "revoke")[] | undefined;
3237
+ };
3238
+ permissions?: never;
3239
+ } | {
3240
+ permissions: {
3241
+ readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
3242
+ readonly session?: ("list" | "delete" | "revoke")[] | undefined;
3243
+ };
3244
+ permission?: never;
3245
+ }) & {
3246
+ userId?: string;
3247
+ role?: "admin" | "user" | undefined;
3248
+ }> & Record<string, any>) | undefined;
3249
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
3250
+ params?: Record<string, any> | undefined;
3251
+ duplex?: "full" | "half" | undefined;
3252
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
3253
+ retry?: better_auth_react0.RetryOptions | undefined;
3254
+ retryAttempt?: number | undefined;
3255
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
3256
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
3257
+ disableValidation?: boolean | undefined;
3258
+ }>(data_0: better_auth0.Prettify<(({
3259
+ permission: {
3260
+ readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
3261
+ readonly session?: ("list" | "delete" | "revoke")[] | undefined;
3262
+ };
3263
+ permissions?: never;
3264
+ } | {
3265
+ permissions: {
3266
+ readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
3267
+ readonly session?: ("list" | "delete" | "revoke")[] | undefined;
3268
+ };
3269
+ permission?: never;
3270
+ }) & {
3271
+ userId?: string;
3272
+ role?: "admin" | "user" | undefined;
3273
+ }) & {
3274
+ fetchOptions?: FetchOptions | undefined;
3275
+ }>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
3276
+ error: null;
3277
+ success: boolean;
3278
+ }, {
3279
+ code?: string;
3280
+ message?: string;
3281
+ }, FetchOptions["throw"] extends true ? true : false>>;
3282
+ };
3283
+ } & {
3284
+ signUp: {
3285
+ email: <FetchOptions extends {
3286
+ method?: string | undefined;
3287
+ headers?: (HeadersInit & (HeadersInit | {
3288
+ accept: "application/json" | "text/plain" | "application/octet-stream";
3289
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
3290
+ authorization: "Bearer" | "Basic";
3291
+ })) | undefined;
3292
+ credentials?: RequestCredentials | undefined;
3293
+ mode?: RequestMode | undefined;
3294
+ cache?: RequestCache | undefined;
3295
+ integrity?: string | undefined;
3296
+ keepalive?: boolean | undefined;
3297
+ priority?: RequestPriority | undefined;
3298
+ redirect?: RequestRedirect | undefined;
3299
+ referrer?: string | undefined;
3300
+ referrerPolicy?: ReferrerPolicy | undefined;
3301
+ signal?: (AbortSignal | null) | undefined;
3302
+ window?: null | undefined;
3303
+ next?: NextFetchRequestConfig | undefined;
3304
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
3305
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
3306
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
3307
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
3308
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
3309
+ hookOptions?: {
3310
+ cloneResponse?: boolean;
3311
+ } | undefined;
3312
+ timeout?: number | undefined;
3313
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
3314
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
3315
+ baseURL?: string | undefined;
3316
+ throw?: boolean | undefined;
3317
+ auth?: ({
3318
+ type: "Bearer";
3319
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
3320
+ } | {
3321
+ type: "Basic";
3322
+ username: string | (() => string | undefined) | undefined;
3323
+ password: string | (() => string | undefined) | undefined;
3324
+ } | {
3325
+ type: "Custom";
3326
+ prefix: string | (() => string | undefined) | undefined;
3327
+ value: string | (() => string | undefined) | undefined;
3328
+ }) | undefined;
3329
+ body?: (Partial<{
3330
+ name: string;
3331
+ email: string;
3332
+ password: string;
3333
+ image?: string;
3334
+ callbackURL?: string;
3335
+ rememberMe?: boolean;
3336
+ }> & Record<string, any>) | undefined;
3337
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
3338
+ params?: Record<string, any> | undefined;
3339
+ duplex?: "full" | "half" | undefined;
3340
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
3341
+ retry?: better_auth_react0.RetryOptions | undefined;
3342
+ retryAttempt?: number | undefined;
3343
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
3344
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
3345
+ disableValidation?: boolean | undefined;
3346
+ }>(data_0: better_auth0.Prettify<{
3347
+ email: string;
3348
+ name: string;
3349
+ password: string;
3350
+ image?: string;
3351
+ callbackURL?: string;
3352
+ fetchOptions?: FetchOptions | undefined;
3353
+ } & {} & {} & {
3354
+ firstName: string;
3355
+ lastName: string;
3356
+ } & {}>, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<NonNullable<{
3357
+ token: null;
3358
+ user: {
3359
+ id: string;
3360
+ email: string;
3361
+ name: string;
3362
+ image: string | null | undefined;
3363
+ emailVerified: boolean;
3364
+ createdAt: Date;
3365
+ updatedAt: Date;
3366
+ };
3367
+ } | {
3368
+ token: string;
3369
+ user: {
3370
+ id: string;
3371
+ email: string;
3372
+ name: string;
3373
+ image: string | null | undefined;
3374
+ emailVerified: boolean;
3375
+ createdAt: Date;
3376
+ updatedAt: Date;
3377
+ };
3378
+ }>, {
3379
+ code?: string;
3380
+ message?: string;
3381
+ }, FetchOptions["throw"] extends true ? true : false>>;
3382
+ };
3383
+ } & {
3384
+ updateUser: <FetchOptions extends {
3385
+ method?: string | undefined;
3386
+ headers?: (HeadersInit & (HeadersInit | {
3387
+ accept: "application/json" | "text/plain" | "application/octet-stream";
3388
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
3389
+ authorization: "Bearer" | "Basic";
3390
+ })) | undefined;
3391
+ credentials?: RequestCredentials | undefined;
3392
+ mode?: RequestMode | undefined;
3393
+ cache?: RequestCache | undefined;
3394
+ integrity?: string | undefined;
3395
+ keepalive?: boolean | undefined;
3396
+ priority?: RequestPriority | undefined;
3397
+ redirect?: RequestRedirect | undefined;
3398
+ referrer?: string | undefined;
3399
+ referrerPolicy?: ReferrerPolicy | undefined;
3400
+ signal?: (AbortSignal | null) | undefined;
3401
+ window?: null | undefined;
3402
+ next?: NextFetchRequestConfig | undefined;
3403
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
3404
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
3405
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
3406
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
3407
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
3408
+ hookOptions?: {
3409
+ cloneResponse?: boolean;
3410
+ } | undefined;
3411
+ timeout?: number | undefined;
3412
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
3413
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
3414
+ baseURL?: string | undefined;
3415
+ throw?: boolean | undefined;
3416
+ auth?: ({
3417
+ type: "Bearer";
3418
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
3419
+ } | {
3420
+ type: "Basic";
3421
+ username: string | (() => string | undefined) | undefined;
3422
+ password: string | (() => string | undefined) | undefined;
3423
+ } | {
3424
+ type: "Custom";
3425
+ prefix: string | (() => string | undefined) | undefined;
3426
+ value: string | (() => string | undefined) | undefined;
3427
+ }) | undefined;
3428
+ body?: (Partial<Partial<{}> & {
3429
+ name?: string;
3430
+ image?: string;
3431
+ }> & Record<string, any>) | undefined;
3432
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
3433
+ params?: Record<string, any> | undefined;
3434
+ duplex?: "full" | "half" | undefined;
3435
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
3436
+ retry?: better_auth_react0.RetryOptions | undefined;
3437
+ retryAttempt?: number | undefined;
3438
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
3439
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
3440
+ disableValidation?: boolean | undefined;
3441
+ }>(data_0?: better_auth0.Prettify<{
3442
+ image?: string | null;
3443
+ name?: string;
3444
+ fetchOptions?: FetchOptions | undefined;
3445
+ } & Partial<{} & {} & {
3446
+ firstName: string;
3447
+ lastName: string;
3448
+ } & {}>> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
3449
+ status: boolean;
3450
+ }, {
3451
+ code?: string;
3452
+ message?: string;
3453
+ }, FetchOptions["throw"] extends true ? true : false>>;
3454
+ } & {
3455
+ listSessions: <FetchOptions extends {
3456
+ method?: string | undefined;
3457
+ headers?: (HeadersInit & (HeadersInit | {
3458
+ accept: "application/json" | "text/plain" | "application/octet-stream";
3459
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
3460
+ authorization: "Bearer" | "Basic";
3461
+ })) | undefined;
3462
+ credentials?: RequestCredentials | undefined;
3463
+ mode?: RequestMode | undefined;
3464
+ cache?: RequestCache | undefined;
3465
+ integrity?: string | undefined;
3466
+ keepalive?: boolean | undefined;
3467
+ priority?: RequestPriority | undefined;
3468
+ redirect?: RequestRedirect | undefined;
3469
+ referrer?: string | undefined;
3470
+ referrerPolicy?: ReferrerPolicy | undefined;
3471
+ signal?: (AbortSignal | null) | undefined;
3472
+ window?: null | undefined;
3473
+ next?: NextFetchRequestConfig | undefined;
3474
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
3475
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
3476
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
3477
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
3478
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
3479
+ hookOptions?: {
3480
+ cloneResponse?: boolean;
3481
+ } | undefined;
3482
+ timeout?: number | undefined;
3483
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
3484
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
3485
+ baseURL?: string | undefined;
3486
+ throw?: boolean | undefined;
3487
+ auth?: ({
3488
+ type: "Bearer";
3489
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
3490
+ } | {
3491
+ type: "Basic";
3492
+ username: string | (() => string | undefined) | undefined;
3493
+ password: string | (() => string | undefined) | undefined;
3494
+ } | {
3495
+ type: "Custom";
3496
+ prefix: string | (() => string | undefined) | undefined;
3497
+ value: string | (() => string | undefined) | undefined;
3498
+ }) | undefined;
3499
+ body?: undefined;
3500
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
3501
+ params?: Record<string, any> | undefined;
3502
+ duplex?: "full" | "half" | undefined;
3503
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
3504
+ retry?: better_auth_react0.RetryOptions | undefined;
3505
+ retryAttempt?: number | undefined;
3506
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
3507
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
3508
+ disableValidation?: boolean | undefined;
3509
+ }>(data_0?: better_auth0.Prettify<{
3510
+ query?: Record<string, any> | undefined;
3511
+ fetchOptions?: FetchOptions | undefined;
3512
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<better_auth0.Prettify<{
3513
+ id: string;
3514
+ createdAt: Date;
3515
+ updatedAt: Date;
3516
+ userId: string;
3517
+ expiresAt: Date;
3518
+ token: string;
3519
+ ipAddress?: string | null | undefined | undefined;
3520
+ userAgent?: string | null | undefined | undefined;
3521
+ }>[], {
3522
+ code?: string;
3523
+ message?: string;
3524
+ }, FetchOptions["throw"] extends true ? true : false>>;
3525
+ } & {
3526
+ getSession: <FetchOptions extends {
3527
+ method?: string | undefined;
3528
+ headers?: (HeadersInit & (HeadersInit | {
3529
+ accept: "application/json" | "text/plain" | "application/octet-stream";
3530
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
3531
+ authorization: "Bearer" | "Basic";
3532
+ })) | undefined;
3533
+ credentials?: RequestCredentials | undefined;
3534
+ mode?: RequestMode | undefined;
3535
+ cache?: RequestCache | undefined;
3536
+ integrity?: string | undefined;
3537
+ keepalive?: boolean | undefined;
3538
+ priority?: RequestPriority | undefined;
3539
+ redirect?: RequestRedirect | undefined;
3540
+ referrer?: string | undefined;
3541
+ referrerPolicy?: ReferrerPolicy | undefined;
3542
+ signal?: (AbortSignal | null) | undefined;
3543
+ window?: null | undefined;
3544
+ next?: NextFetchRequestConfig | undefined;
3545
+ onRequest?: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
3546
+ onResponse?: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
3547
+ onSuccess?: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
3548
+ onError?: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
3549
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
3550
+ hookOptions?: {
3551
+ cloneResponse?: boolean;
3552
+ } | undefined;
3553
+ timeout?: number | undefined;
3554
+ customFetchImpl?: better_auth_react0.FetchEsque | undefined;
3555
+ plugins?: better_auth_react0.BetterFetchPlugin[] | undefined;
3556
+ baseURL?: string | undefined;
3557
+ throw?: boolean | undefined;
3558
+ auth?: ({
3559
+ type: "Bearer";
3560
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
3561
+ } | {
3562
+ type: "Basic";
3563
+ username: string | (() => string | undefined) | undefined;
3564
+ password: string | (() => string | undefined) | undefined;
3565
+ } | {
3566
+ type: "Custom";
3567
+ prefix: string | (() => string | undefined) | undefined;
3568
+ value: string | (() => string | undefined) | undefined;
3569
+ }) | undefined;
3570
+ body?: undefined;
3571
+ query?: (Partial<{
3572
+ disableCookieCache?: unknown;
3573
+ disableRefresh?: unknown;
3574
+ }> & Record<string, any>) | undefined;
3575
+ params?: Record<string, any> | undefined;
3576
+ duplex?: "full" | "half" | undefined;
3577
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
3578
+ retry?: better_auth_react0.RetryOptions | undefined;
3579
+ retryAttempt?: number | undefined;
3580
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
3581
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
3582
+ disableValidation?: boolean | undefined;
3583
+ }>(data_0?: better_auth0.Prettify<{
3584
+ query?: {
3585
+ disableCookieCache?: unknown;
3586
+ disableRefresh?: unknown;
3587
+ } | undefined;
3588
+ fetchOptions?: FetchOptions | undefined;
3589
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<better_auth_react0.BetterFetchResponse<{
3590
+ user: {
3591
+ id: string;
3592
+ createdAt: Date;
3593
+ updatedAt: Date;
3594
+ email: string;
3595
+ emailVerified: boolean;
3596
+ name: string;
3597
+ image?: string | null | undefined;
3598
+ banned: boolean | null | undefined;
3599
+ role?: string | null | undefined;
3600
+ banReason?: string | null | undefined;
3601
+ banExpires?: Date | null | undefined;
3602
+ firstName: string;
3603
+ lastName: string;
3604
+ };
3605
+ session: {
3606
+ id: string;
3607
+ createdAt: Date;
3608
+ updatedAt: Date;
3609
+ userId: string;
3610
+ expiresAt: Date;
3611
+ token: string;
3612
+ ipAddress?: string | null | undefined;
3613
+ userAgent?: string | null | undefined;
3614
+ impersonatedBy?: string | null | undefined;
3615
+ };
3616
+ } | null, {
3617
+ code?: string;
3618
+ message?: string;
3619
+ }, FetchOptions["throw"] extends true ? true : false>>;
3620
+ } & {
3621
+ admin: {
3622
+ checkRolePermission: <R extends "admin" | "user">(data: ({
3623
+ permission: {
3624
+ readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
3625
+ readonly session?: ("list" | "delete" | "revoke")[] | undefined;
3626
+ };
3627
+ permissions?: never;
3628
+ } | {
3629
+ permissions: {
3630
+ readonly user?: ("create" | "list" | "set-role" | "ban" | "impersonate" | "delete" | "set-password" | "get" | "update")[] | undefined;
3631
+ readonly session?: ("list" | "delete" | "revoke")[] | undefined;
3632
+ };
3633
+ permission?: never;
3634
+ }) & {
3635
+ role: R;
3636
+ }) => boolean;
3637
+ };
3638
+ } & {
3639
+ useSession: () => {
3640
+ data: {
3641
+ user: {
3642
+ id: string;
3643
+ createdAt: Date;
3644
+ updatedAt: Date;
3645
+ email: string;
3646
+ emailVerified: boolean;
3647
+ name: string;
3648
+ image?: string | null | undefined;
3649
+ banned: boolean | null | undefined;
3650
+ role?: string | null | undefined;
3651
+ banReason?: string | null | undefined;
3652
+ banExpires?: Date | null | undefined;
3653
+ firstName: string;
3654
+ lastName: string;
3655
+ };
3656
+ session: {
3657
+ id: string;
3658
+ createdAt: Date;
3659
+ updatedAt: Date;
3660
+ userId: string;
3661
+ expiresAt: Date;
3662
+ token: string;
3663
+ ipAddress?: string | null | undefined;
3664
+ userAgent?: string | null | undefined;
3665
+ impersonatedBy?: string | null | undefined;
3666
+ };
3667
+ } | null;
3668
+ isPending: boolean;
3669
+ error: better_auth_react0.BetterFetchError | null;
3670
+ refetch: (queryParams?: {
3671
+ query?: better_auth0.SessionQueryParams;
3672
+ }) => void;
3673
+ };
3674
+ $Infer: {
3675
+ Session: {
3676
+ user: {
3677
+ id: string;
3678
+ createdAt: Date;
3679
+ updatedAt: Date;
3680
+ email: string;
3681
+ emailVerified: boolean;
3682
+ name: string;
3683
+ image?: string | null | undefined;
3684
+ banned: boolean | null | undefined;
3685
+ role?: string | null | undefined;
3686
+ banReason?: string | null | undefined;
3687
+ banExpires?: Date | null | undefined;
3688
+ firstName: string;
3689
+ lastName: string;
3690
+ };
3691
+ session: {
3692
+ id: string;
3693
+ createdAt: Date;
3694
+ updatedAt: Date;
3695
+ userId: string;
3696
+ expiresAt: Date;
3697
+ token: string;
3698
+ ipAddress?: string | null | undefined;
3699
+ userAgent?: string | null | undefined;
3700
+ impersonatedBy?: string | null | undefined;
3701
+ };
3702
+ };
3703
+ };
3704
+ $fetch: better_auth_react0.BetterFetch<{
3705
+ plugins: (better_auth_react0.BetterFetchPlugin | {
3706
+ id: string;
3707
+ name: string;
3708
+ hooks: {
3709
+ onSuccess: ((context: better_auth_react0.SuccessContext<any>) => Promise<void> | void) | undefined;
3710
+ onError: ((context: better_auth_react0.ErrorContext) => Promise<void> | void) | undefined;
3711
+ onRequest: (<T extends Record<string, any>>(context: better_auth_react0.RequestContext<T>) => Promise<better_auth_react0.RequestContext | void> | better_auth_react0.RequestContext | void) | undefined;
3712
+ onResponse: ((context: better_auth_react0.ResponseContext) => Promise<Response | void | better_auth_react0.ResponseContext> | Response | better_auth_react0.ResponseContext | void) | undefined;
3713
+ };
3714
+ } | {
3715
+ id: string;
3716
+ name: string;
3717
+ hooks: {
3718
+ onSuccess(context: better_auth_react0.SuccessContext<any>): void;
3719
+ };
3720
+ })[];
3721
+ redirect?: RequestRedirect | undefined;
3722
+ method: string;
3723
+ headers?: (HeadersInit & (HeadersInit | {
3724
+ accept: "application/json" | "text/plain" | "application/octet-stream";
3725
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
3726
+ authorization: "Bearer" | "Basic";
3727
+ })) | undefined;
3728
+ cache?: RequestCache | undefined;
3729
+ credentials?: RequestCredentials;
3730
+ integrity?: string | undefined;
3731
+ keepalive?: boolean | undefined;
3732
+ mode?: RequestMode | undefined;
3733
+ priority?: RequestPriority | undefined;
3734
+ referrer?: string | undefined;
3735
+ referrerPolicy?: ReferrerPolicy | undefined;
3736
+ signal?: (AbortSignal | null) | undefined;
3737
+ window?: null | undefined;
3738
+ onRetry?: ((response: better_auth_react0.ResponseContext) => Promise<void> | void) | undefined;
3739
+ hookOptions?: {
3740
+ cloneResponse?: boolean;
3741
+ } | undefined;
3742
+ timeout?: number | undefined;
3743
+ customFetchImpl: better_auth_react0.FetchEsque;
3744
+ baseURL: string;
3745
+ throw?: boolean | undefined;
3746
+ auth?: ({
3747
+ type: "Bearer";
3748
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
3749
+ } | {
3750
+ type: "Basic";
3751
+ username: string | (() => string | undefined) | undefined;
3752
+ password: string | (() => string | undefined) | undefined;
3753
+ } | {
3754
+ type: "Custom";
3755
+ prefix: string | (() => string | undefined) | undefined;
3756
+ value: string | (() => string | undefined) | undefined;
3757
+ }) | undefined;
3758
+ body?: any;
3759
+ query?: any;
3760
+ params?: any;
3761
+ duplex?: "full" | "half" | undefined;
3762
+ jsonParser: (text: string) => Promise<any> | any;
3763
+ retry?: better_auth_react0.RetryOptions | undefined;
3764
+ retryAttempt?: number | undefined;
3765
+ output?: (better_auth_react0.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
3766
+ errorSchema?: better_auth_react0.StandardSchemaV1 | undefined;
3767
+ disableValidation?: boolean | undefined;
3768
+ }, unknown, unknown, {}>;
3769
+ $store: {
3770
+ notify: (signal?: Omit<string, "$sessionSignal"> | "$sessionSignal") => void;
3771
+ listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
3772
+ atoms: Record<string, better_auth_react0.WritableAtom<any>>;
3773
+ };
3774
+ $ERROR_CODES: {
3775
+ readonly USER_NOT_FOUND: "User not found";
3776
+ readonly FAILED_TO_CREATE_USER: "Failed to create user";
3777
+ readonly FAILED_TO_CREATE_SESSION: "Failed to create session";
3778
+ readonly FAILED_TO_UPDATE_USER: "Failed to update user";
3779
+ readonly FAILED_TO_GET_SESSION: "Failed to get session";
3780
+ readonly INVALID_PASSWORD: "Invalid password";
3781
+ readonly INVALID_EMAIL: "Invalid email";
3782
+ readonly INVALID_EMAIL_OR_PASSWORD: "Invalid email or password";
3783
+ readonly SOCIAL_ACCOUNT_ALREADY_LINKED: "Social account already linked";
3784
+ readonly PROVIDER_NOT_FOUND: "Provider not found";
3785
+ readonly INVALID_TOKEN: "Invalid token";
3786
+ readonly ID_TOKEN_NOT_SUPPORTED: "id_token not supported";
3787
+ readonly FAILED_TO_GET_USER_INFO: "Failed to get user info";
3788
+ readonly USER_EMAIL_NOT_FOUND: "User email not found";
3789
+ readonly EMAIL_NOT_VERIFIED: "Email not verified";
3790
+ readonly PASSWORD_TOO_SHORT: "Password too short";
3791
+ readonly PASSWORD_TOO_LONG: "Password too long";
3792
+ readonly USER_ALREADY_EXISTS: "User already exists.";
3793
+ readonly USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: "User already exists. Use another email.";
3794
+ readonly EMAIL_CAN_NOT_BE_UPDATED: "Email can not be updated";
3795
+ readonly CREDENTIAL_ACCOUNT_NOT_FOUND: "Credential account not found";
3796
+ readonly SESSION_EXPIRED: "Session expired. Re-authenticate to perform this action.";
3797
+ readonly FAILED_TO_UNLINK_LAST_ACCOUNT: "You can't unlink your last account";
3798
+ readonly ACCOUNT_NOT_FOUND: "Account not found";
3799
+ readonly USER_ALREADY_HAS_PASSWORD: "User already has a password. Provide that to delete the account.";
3800
+ };
3801
+ };
3802
+ type ClientAuth = typeof authClient;
3803
+ type ClientSession = typeof authClient.$Infer.Session;
3804
+ //#endregion
3805
+ export { ClientAuth, ClientSession, authClient };
3806
+ //# sourceMappingURL=client.client.d.ts.map