@intlayer/design-system 7.0.8 → 7.0.9-canary.2

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