@intlayer/design-system 5.7.2 → 5.7.4

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 (158) hide show
  1. package/dist/.vite/manifest.json +39 -0
  2. package/dist/Form-CriPBaZk.js.map +1 -1
  3. package/dist/Form-DJrUK3mm.cjs.map +1 -1
  4. package/dist/better-auth.8zoxzg-F-BEBqzpjz.cjs +40 -0
  5. package/dist/better-auth.8zoxzg-F-BEBqzpjz.cjs.map +1 -0
  6. package/dist/better-auth.8zoxzg-F-D8e0X4ys.js +41 -0
  7. package/dist/better-auth.8zoxzg-F-D8e0X4ys.js.map +1 -0
  8. package/dist/components/Breadcrumb/index.cjs +1 -0
  9. package/dist/components/Breadcrumb/index.cjs.map +1 -1
  10. package/dist/components/Breadcrumb/index.d.ts +1 -1
  11. package/dist/components/Breadcrumb/index.d.ts.map +1 -1
  12. package/dist/components/Breadcrumb/index.mjs +1 -0
  13. package/dist/components/Breadcrumb/index.mjs.map +1 -1
  14. package/dist/components/CopyToClipboard/index.cjs +32 -23
  15. package/dist/components/CopyToClipboard/index.cjs.map +1 -1
  16. package/dist/components/CopyToClipboard/index.d.ts.map +1 -1
  17. package/dist/components/CopyToClipboard/index.mjs +32 -23
  18. package/dist/components/CopyToClipboard/index.mjs.map +1 -1
  19. package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.cjs +7 -4
  20. package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.cjs.map +1 -1
  21. package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.d.ts +2 -2
  22. package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.d.ts.map +1 -1
  23. package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs +7 -4
  24. package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs.map +1 -1
  25. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs +1 -0
  26. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs.map +1 -1
  27. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +1 -0
  28. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs.map +1 -1
  29. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs +2 -1
  30. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs.map +1 -1
  31. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +2 -1
  32. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs.map +1 -1
  33. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs +2 -1
  34. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs.map +1 -1
  35. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +2 -1
  36. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs.map +1 -1
  37. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs +2 -2
  38. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs.map +1 -1
  39. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +2 -2
  40. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs.map +1 -1
  41. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs +5 -2
  42. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs.map +1 -1
  43. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.d.ts.map +1 -1
  44. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +5 -2
  45. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -1
  46. package/dist/components/DictionaryFieldEditor/StructureView/StructureView.cjs +2 -1
  47. package/dist/components/DictionaryFieldEditor/StructureView/StructureView.cjs.map +1 -1
  48. package/dist/components/DictionaryFieldEditor/StructureView/StructureView.mjs +2 -1
  49. package/dist/components/DictionaryFieldEditor/StructureView/StructureView.mjs.map +1 -1
  50. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.cjs +2 -1
  51. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.cjs.map +1 -1
  52. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.mjs +2 -1
  53. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.mjs.map +1 -1
  54. package/dist/components/EditableField/EditableFieldTextArea.cjs +2 -1
  55. package/dist/components/EditableField/EditableFieldTextArea.cjs.map +1 -1
  56. package/dist/components/EditableField/EditableFieldTextArea.mjs +2 -1
  57. package/dist/components/EditableField/EditableFieldTextArea.mjs.map +1 -1
  58. package/dist/components/Flags/Flag.cjs +23 -1
  59. package/dist/components/Flags/Flag.cjs.map +1 -1
  60. package/dist/components/Flags/Flag.d.ts.map +1 -1
  61. package/dist/components/Flags/Flag.mjs +23 -1
  62. package/dist/components/Flags/Flag.mjs.map +1 -1
  63. package/dist/components/Form/FormBase.cjs.map +1 -1
  64. package/dist/components/Form/FormBase.mjs.map +1 -1
  65. package/dist/components/Form/elements/CheckboxElement.d.ts +2 -2
  66. package/dist/components/Form/elements/CheckboxElement.d.ts.map +1 -1
  67. package/dist/components/IDE/CodeContext.cjs +2 -1
  68. package/dist/components/IDE/CodeContext.cjs.map +1 -1
  69. package/dist/components/IDE/CodeContext.mjs +2 -1
  70. package/dist/components/IDE/CodeContext.mjs.map +1 -1
  71. package/dist/components/Input/Checkbox.cjs +29 -22
  72. package/dist/components/Input/Checkbox.cjs.map +1 -1
  73. package/dist/components/Input/Checkbox.d.ts +3 -2
  74. package/dist/components/Input/Checkbox.d.ts.map +1 -1
  75. package/dist/components/Input/Checkbox.mjs +30 -23
  76. package/dist/components/Input/Checkbox.mjs.map +1 -1
  77. package/dist/components/Link/Link.cjs +2 -2
  78. package/dist/components/Link/Link.cjs.map +1 -1
  79. package/dist/components/Link/Link.mjs +2 -2
  80. package/dist/components/Link/Link.mjs.map +1 -1
  81. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.cjs +2 -1
  82. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.cjs.map +1 -1
  83. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs +2 -1
  84. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs.map +1 -1
  85. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.cjs +2 -1
  86. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.cjs.map +1 -1
  87. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.mjs +2 -1
  88. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.mjs.map +1 -1
  89. package/dist/components/Modal/Modal.cjs +2 -1
  90. package/dist/components/Modal/Modal.cjs.map +1 -1
  91. package/dist/components/Modal/Modal.mjs +2 -1
  92. package/dist/components/Modal/Modal.mjs.map +1 -1
  93. package/dist/components/Navbar/MobileNavbar.cjs +2 -1
  94. package/dist/components/Navbar/MobileNavbar.cjs.map +1 -1
  95. package/dist/components/Navbar/MobileNavbar.mjs +2 -1
  96. package/dist/components/Navbar/MobileNavbar.mjs.map +1 -1
  97. package/dist/components/Navbar/index.cjs +2 -1
  98. package/dist/components/Navbar/index.cjs.map +1 -1
  99. package/dist/components/Navbar/index.mjs +2 -1
  100. package/dist/components/Navbar/index.mjs.map +1 -1
  101. package/dist/components/SwitchSelector/index.cjs +2 -1
  102. package/dist/components/SwitchSelector/index.cjs.map +1 -1
  103. package/dist/components/SwitchSelector/index.mjs +2 -1
  104. package/dist/components/SwitchSelector/index.mjs.map +1 -1
  105. package/dist/components/TabSelector/TabSelector.cjs +2 -1
  106. package/dist/components/TabSelector/TabSelector.cjs.map +1 -1
  107. package/dist/components/TabSelector/TabSelector.mjs +2 -1
  108. package/dist/components/TabSelector/TabSelector.mjs.map +1 -1
  109. package/dist/components/TextArea/AutocompleteTextArea.cjs +5 -4
  110. package/dist/components/TextArea/AutocompleteTextArea.cjs.map +1 -1
  111. package/dist/components/TextArea/AutocompleteTextArea.mjs +5 -4
  112. package/dist/components/TextArea/AutocompleteTextArea.mjs.map +1 -1
  113. package/dist/hooks/auth.cjs +1783 -0
  114. package/dist/hooks/auth.cjs.map +1 -0
  115. package/dist/hooks/auth.d.ts +32 -0
  116. package/dist/hooks/auth.d.ts.map +1 -0
  117. package/dist/hooks/auth.mjs +1783 -0
  118. package/dist/hooks/auth.mjs.map +1 -0
  119. package/dist/hooks/index.cjs +4 -1
  120. package/dist/hooks/index.cjs.map +1 -1
  121. package/dist/hooks/index.d.ts +1 -0
  122. package/dist/hooks/index.d.ts.map +1 -1
  123. package/dist/hooks/index.mjs +5 -2
  124. package/dist/hooks/index.mjs.map +1 -1
  125. package/dist/hooks/intlayerAPIHooks.cjs +65 -66
  126. package/dist/hooks/intlayerAPIHooks.cjs.map +1 -1
  127. package/dist/hooks/intlayerAPIHooks.d.ts +884 -9
  128. package/dist/hooks/intlayerAPIHooks.d.ts.map +1 -1
  129. package/dist/hooks/intlayerAPIHooks.mjs +66 -67
  130. package/dist/hooks/intlayerAPIHooks.mjs.map +1 -1
  131. package/dist/hooks/useAuth/useAuth.cjs.map +1 -1
  132. package/dist/hooks/useAuth/useAuth.d.ts +6 -7
  133. package/dist/hooks/useAuth/useAuth.d.ts.map +1 -1
  134. package/dist/hooks/useAuth/useAuth.mjs.map +1 -1
  135. package/dist/hooks/useAuth/useOAuth2.cjs +3 -3
  136. package/dist/hooks/useAuth/useOAuth2.cjs.map +1 -1
  137. package/dist/hooks/useAuth/useOAuth2.mjs +3 -3
  138. package/dist/hooks/useAuth/useOAuth2.mjs.map +1 -1
  139. package/dist/hooks/useAuth/useSession.cjs +5 -5
  140. package/dist/hooks/useAuth/useSession.cjs.map +1 -1
  141. package/dist/hooks/useAuth/useSession.d.ts +354 -6
  142. package/dist/hooks/useAuth/useSession.d.ts.map +1 -1
  143. package/dist/hooks/useAuth/useSession.mjs +5 -5
  144. package/dist/hooks/useAuth/useSession.mjs.map +1 -1
  145. package/dist/hooks/useIntlayerAPI.cjs +7 -1
  146. package/dist/hooks/useIntlayerAPI.cjs.map +1 -1
  147. package/dist/hooks/useIntlayerAPI.d.ts +11 -0
  148. package/dist/hooks/useIntlayerAPI.d.ts.map +1 -0
  149. package/dist/hooks/useIntlayerAPI.mjs +8 -2
  150. package/dist/hooks/useIntlayerAPI.mjs.map +1 -1
  151. package/dist/hooks/useUser/index.cjs +2 -1
  152. package/dist/hooks/useUser/index.cjs.map +1 -1
  153. package/dist/hooks/useUser/index.d.ts +18 -2
  154. package/dist/hooks/useUser/index.d.ts.map +1 -1
  155. package/dist/hooks/useUser/index.mjs +2 -1
  156. package/dist/hooks/useUser/index.mjs.map +1 -1
  157. package/package.json +20 -19
  158. package/dist/tailwind.css +0 -2
@@ -1,21 +1,896 @@
1
1
  import { IntlayerAPI } from '@intlayer/api';
2
+ import { getAuthAPI } from './auth';
2
3
  import { UseAsyncOptions } from './useAsync/useAsync';
3
4
  /**
4
5
  * Auth
5
6
  */
6
- export declare const useLogin: (args?: UseAsyncOptions<IntlayerAPI["auth"]["signInEmail"]>) => import('./useAsync').UseAsyncResult<"login", any>;
7
- export declare const useRegister: (args?: UseAsyncOptions<IntlayerAPI["auth"]["signUpEmail"]>) => import('./useAsync').UseAsyncResult<"register", any>;
8
- export declare const useLogout: (args?: UseAsyncOptions<IntlayerAPI["auth"]["signOut"]>) => import('./useAsync').UseAsyncResult<"logout", any>;
9
- export declare const useChangePassword: (args?: UseAsyncOptions<IntlayerAPI["auth"]["changePasswordSession"]>) => import('./useAsync').UseAsyncResult<"changePassword", any>;
10
- export declare const useAskResetPassword: (args?: UseAsyncOptions<IntlayerAPI["auth"]["requestPasswordResetSession"]>) => import('./useAsync').UseAsyncResult<"askResetPassword", any>;
11
- export declare const useDefineNewPassword: (args?: UseAsyncOptions<IntlayerAPI["auth"]["changePasswordSession"]>) => import('./useAsync').UseAsyncResult<"defineNewPassword", any>;
12
- export declare const useVerifyEmail: (args?: UseAsyncOptions<IntlayerAPI["auth"]["verifyEmailSession"]>) => import('./useAsync').UseAsyncResult<"verifyEmail", any>;
13
- export declare const useGetUserByAccount: (args?: UseAsyncOptions<IntlayerAPI["auth"]["accountInfo"]>) => import('./useAsync').UseAsyncResult<"getUserByAccount", any>;
7
+ export declare const useLogin: (args?: UseAsyncOptions<ReturnType<typeof getAuthAPI>["signInEmail"]>) => import('./useAsync').UseAsyncResult<"login", <FetchOptions extends {
8
+ method?: string | undefined;
9
+ mode?: RequestMode | undefined;
10
+ referrerPolicy?: ReferrerPolicy | undefined;
11
+ headers?: (HeadersInit & (HeadersInit | {
12
+ accept: "application/json" | "text/plain" | "application/octet-stream";
13
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
14
+ authorization: "Bearer" | "Basic";
15
+ })) | undefined;
16
+ cache?: RequestCache | undefined;
17
+ credentials?: RequestCredentials | undefined;
18
+ integrity?: string | undefined;
19
+ keepalive?: boolean | undefined;
20
+ priority?: RequestPriority | undefined;
21
+ redirect?: RequestRedirect | undefined;
22
+ referrer?: string | undefined;
23
+ signal?: (AbortSignal | null) | undefined;
24
+ window?: null | undefined;
25
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/client').RequestContext<T>) => Promise<import('better-auth/client').RequestContext | void> | import('better-auth/client').RequestContext | void) | undefined;
26
+ onResponse?: ((context: import('better-auth/client').ResponseContext) => Promise<Response | void | import('better-auth/client').ResponseContext> | Response | import('better-auth/client').ResponseContext | void) | undefined;
27
+ onSuccess?: ((context: import('better-auth/client').SuccessContext<any>) => Promise<void> | void) | undefined;
28
+ onError?: ((context: import('better-auth/client').ErrorContext) => Promise<void> | void) | undefined;
29
+ onRetry?: ((response: import('better-auth/client').ResponseContext) => Promise<void> | void) | undefined;
30
+ hookOptions?: {
31
+ cloneResponse?: boolean;
32
+ } | undefined;
33
+ timeout?: number | undefined;
34
+ customFetchImpl?: import('better-auth/client').FetchEsque | undefined;
35
+ plugins?: import('better-auth/client').BetterFetchPlugin[] | undefined;
36
+ baseURL?: string | undefined;
37
+ throw?: boolean | undefined;
38
+ auth?: ({
39
+ type: "Bearer";
40
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
41
+ } | {
42
+ type: "Basic";
43
+ username: string | (() => string | undefined) | undefined;
44
+ password: string | (() => string | undefined) | undefined;
45
+ } | {
46
+ type: "Custom";
47
+ prefix: string | (() => string | undefined) | undefined;
48
+ value: string | (() => string | undefined) | undefined;
49
+ }) | undefined;
50
+ body?: (Partial<{
51
+ email: string;
52
+ password: string;
53
+ callbackURL?: string | undefined;
54
+ rememberMe?: boolean | undefined;
55
+ }> & Record<string, any>) | undefined;
56
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
57
+ params?: Record<string, any> | undefined;
58
+ duplex?: "full" | "half" | undefined;
59
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
60
+ retry?: import('better-auth/client').RetryOptions | undefined;
61
+ retryAttempt?: number | undefined;
62
+ output?: (import('better-auth/client').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
63
+ errorSchema?: import('better-auth/client').StandardSchemaV1 | undefined;
64
+ disableValidation?: boolean | undefined;
65
+ }>(data_0: import('better-auth').Prettify<{
66
+ email: string;
67
+ password: string;
68
+ callbackURL?: string | undefined;
69
+ rememberMe?: boolean | undefined;
70
+ } & {
71
+ fetchOptions?: FetchOptions | undefined;
72
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
73
+ redirect: boolean;
74
+ token: string;
75
+ url: string | undefined;
76
+ user: {
77
+ id: string;
78
+ email: string;
79
+ name: string;
80
+ image: string | null | undefined;
81
+ emailVerified: boolean;
82
+ createdAt: Date;
83
+ updatedAt: Date;
84
+ };
85
+ }, {
86
+ code?: string;
87
+ message?: string;
88
+ }, FetchOptions["throw"] extends true ? true : false>>>;
89
+ export declare const useGetVerifyEmailStatus: (args?: UseAsyncOptions<ReturnType<typeof getAuthAPI>["verifyEmailSession"]>) => import('./useAsync').UseAsyncResult<"getVerifyEmailStatus", <FetchOptions extends {
90
+ method?: string | undefined;
91
+ mode?: RequestMode | undefined;
92
+ referrerPolicy?: ReferrerPolicy | undefined;
93
+ headers?: (HeadersInit & (HeadersInit | {
94
+ accept: "application/json" | "text/plain" | "application/octet-stream";
95
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
96
+ authorization: "Bearer" | "Basic";
97
+ })) | undefined;
98
+ cache?: RequestCache | undefined;
99
+ credentials?: RequestCredentials | undefined;
100
+ integrity?: string | undefined;
101
+ keepalive?: boolean | undefined;
102
+ priority?: RequestPriority | undefined;
103
+ redirect?: RequestRedirect | undefined;
104
+ referrer?: string | undefined;
105
+ signal?: (AbortSignal | null) | undefined;
106
+ window?: null | undefined;
107
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/client').RequestContext<T>) => Promise<import('better-auth/client').RequestContext | void> | import('better-auth/client').RequestContext | void) | undefined;
108
+ onResponse?: ((context: import('better-auth/client').ResponseContext) => Promise<Response | void | import('better-auth/client').ResponseContext> | Response | import('better-auth/client').ResponseContext | void) | undefined;
109
+ onSuccess?: ((context: import('better-auth/client').SuccessContext<any>) => Promise<void> | void) | undefined;
110
+ onError?: ((context: import('better-auth/client').ErrorContext) => Promise<void> | void) | undefined;
111
+ onRetry?: ((response: import('better-auth/client').ResponseContext) => Promise<void> | void) | undefined;
112
+ hookOptions?: {
113
+ cloneResponse?: boolean;
114
+ } | undefined;
115
+ timeout?: number | undefined;
116
+ customFetchImpl?: import('better-auth/client').FetchEsque | undefined;
117
+ plugins?: import('better-auth/client').BetterFetchPlugin[] | undefined;
118
+ baseURL?: string | undefined;
119
+ throw?: boolean | undefined;
120
+ auth?: ({
121
+ type: "Bearer";
122
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
123
+ } | {
124
+ type: "Basic";
125
+ username: string | (() => string | undefined) | undefined;
126
+ password: string | (() => string | undefined) | undefined;
127
+ } | {
128
+ type: "Custom";
129
+ prefix: string | (() => string | undefined) | undefined;
130
+ value: string | (() => string | undefined) | undefined;
131
+ }) | undefined;
132
+ body?: undefined;
133
+ query?: (Partial<{
134
+ token: string;
135
+ callbackURL?: string | undefined;
136
+ }> & Record<string, any>) | undefined;
137
+ params?: Record<string, any> | undefined;
138
+ duplex?: "full" | "half" | undefined;
139
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
140
+ retry?: import('better-auth/client').RetryOptions | undefined;
141
+ retryAttempt?: number | undefined;
142
+ output?: (import('better-auth/client').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
143
+ errorSchema?: import('better-auth/client').StandardSchemaV1 | undefined;
144
+ disableValidation?: boolean | undefined;
145
+ }>(data_0: import('better-auth').Prettify<{
146
+ query: {
147
+ token: string;
148
+ callbackURL?: string | undefined;
149
+ };
150
+ fetchOptions?: FetchOptions | undefined;
151
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<NonNullable<void | {
152
+ status: boolean;
153
+ user: {
154
+ id: any;
155
+ email: any;
156
+ name: any;
157
+ image: any;
158
+ emailVerified: any;
159
+ createdAt: any;
160
+ updatedAt: any;
161
+ };
162
+ } | {
163
+ status: boolean;
164
+ user: null;
165
+ }>, {
166
+ code?: string;
167
+ message?: string;
168
+ }, FetchOptions["throw"] extends true ? true : false>>>;
169
+ export declare const useRegister: (args?: UseAsyncOptions<ReturnType<typeof getAuthAPI>["signUpEmail"]>) => import('./useAsync').UseAsyncResult<"register", <FetchOptions extends {
170
+ method?: string | undefined;
171
+ mode?: RequestMode | undefined;
172
+ referrerPolicy?: ReferrerPolicy | undefined;
173
+ headers?: (HeadersInit & (HeadersInit | {
174
+ accept: "application/json" | "text/plain" | "application/octet-stream";
175
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
176
+ authorization: "Bearer" | "Basic";
177
+ })) | undefined;
178
+ cache?: RequestCache | undefined;
179
+ credentials?: RequestCredentials | undefined;
180
+ integrity?: string | undefined;
181
+ keepalive?: boolean | undefined;
182
+ priority?: RequestPriority | undefined;
183
+ redirect?: RequestRedirect | undefined;
184
+ referrer?: string | undefined;
185
+ signal?: (AbortSignal | null) | undefined;
186
+ window?: null | undefined;
187
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/client').RequestContext<T>) => Promise<import('better-auth/client').RequestContext | void> | import('better-auth/client').RequestContext | void) | undefined;
188
+ onResponse?: ((context: import('better-auth/client').ResponseContext) => Promise<Response | void | import('better-auth/client').ResponseContext> | Response | import('better-auth/client').ResponseContext | void) | undefined;
189
+ onSuccess?: ((context: import('better-auth/client').SuccessContext<any>) => Promise<void> | void) | undefined;
190
+ onError?: ((context: import('better-auth/client').ErrorContext) => Promise<void> | void) | undefined;
191
+ onRetry?: ((response: import('better-auth/client').ResponseContext) => Promise<void> | void) | undefined;
192
+ hookOptions?: {
193
+ cloneResponse?: boolean;
194
+ } | undefined;
195
+ timeout?: number | undefined;
196
+ customFetchImpl?: import('better-auth/client').FetchEsque | undefined;
197
+ plugins?: import('better-auth/client').BetterFetchPlugin[] | undefined;
198
+ baseURL?: string | undefined;
199
+ throw?: boolean | undefined;
200
+ auth?: ({
201
+ type: "Bearer";
202
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
203
+ } | {
204
+ type: "Basic";
205
+ username: string | (() => string | undefined) | undefined;
206
+ password: string | (() => string | undefined) | undefined;
207
+ } | {
208
+ type: "Custom";
209
+ prefix: string | (() => string | undefined) | undefined;
210
+ value: string | (() => string | undefined) | undefined;
211
+ }) | undefined;
212
+ body?: (Partial<{
213
+ name: string;
214
+ email: string;
215
+ password: string;
216
+ image?: string;
217
+ callbackURL?: string;
218
+ rememberMe?: boolean;
219
+ }> & Record<string, any>) | undefined;
220
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
221
+ params?: Record<string, any> | undefined;
222
+ duplex?: "full" | "half" | undefined;
223
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
224
+ retry?: import('better-auth/client').RetryOptions | undefined;
225
+ retryAttempt?: number | undefined;
226
+ output?: (import('better-auth/client').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
227
+ errorSchema?: import('better-auth/client').StandardSchemaV1 | undefined;
228
+ disableValidation?: boolean | undefined;
229
+ }>(data_0: import('better-auth').Prettify<{
230
+ email: string;
231
+ name: string;
232
+ password: string;
233
+ image?: string;
234
+ callbackURL?: string;
235
+ fetchOptions?: FetchOptions | undefined;
236
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<NonNullable<{
237
+ token: null;
238
+ user: {
239
+ id: string;
240
+ email: string;
241
+ name: string;
242
+ image: string | null | undefined;
243
+ emailVerified: boolean;
244
+ createdAt: Date;
245
+ updatedAt: Date;
246
+ };
247
+ } | {
248
+ token: string;
249
+ user: {
250
+ id: string;
251
+ email: string;
252
+ name: string;
253
+ image: string | null | undefined;
254
+ emailVerified: boolean;
255
+ createdAt: Date;
256
+ updatedAt: Date;
257
+ };
258
+ }>, {
259
+ code?: string;
260
+ message?: string;
261
+ }, FetchOptions["throw"] extends true ? true : false>>>;
262
+ export declare const useLogout: (args?: UseAsyncOptions<ReturnType<typeof getAuthAPI>["signOut"]>) => import('./useAsync').UseAsyncResult<"logout", <FetchOptions extends {
263
+ method?: string | undefined;
264
+ mode?: RequestMode | undefined;
265
+ referrerPolicy?: ReferrerPolicy | undefined;
266
+ headers?: (HeadersInit & (HeadersInit | {
267
+ accept: "application/json" | "text/plain" | "application/octet-stream";
268
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
269
+ authorization: "Bearer" | "Basic";
270
+ })) | undefined;
271
+ cache?: RequestCache | undefined;
272
+ credentials?: RequestCredentials | undefined;
273
+ integrity?: string | undefined;
274
+ keepalive?: boolean | undefined;
275
+ priority?: RequestPriority | undefined;
276
+ redirect?: RequestRedirect | undefined;
277
+ referrer?: string | undefined;
278
+ signal?: (AbortSignal | null) | undefined;
279
+ window?: null | undefined;
280
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/client').RequestContext<T>) => Promise<import('better-auth/client').RequestContext | void> | import('better-auth/client').RequestContext | void) | undefined;
281
+ onResponse?: ((context: import('better-auth/client').ResponseContext) => Promise<Response | void | import('better-auth/client').ResponseContext> | Response | import('better-auth/client').ResponseContext | void) | undefined;
282
+ onSuccess?: ((context: import('better-auth/client').SuccessContext<any>) => Promise<void> | void) | undefined;
283
+ onError?: ((context: import('better-auth/client').ErrorContext) => Promise<void> | void) | undefined;
284
+ onRetry?: ((response: import('better-auth/client').ResponseContext) => Promise<void> | void) | undefined;
285
+ hookOptions?: {
286
+ cloneResponse?: boolean;
287
+ } | undefined;
288
+ timeout?: number | undefined;
289
+ customFetchImpl?: import('better-auth/client').FetchEsque | undefined;
290
+ plugins?: import('better-auth/client').BetterFetchPlugin[] | undefined;
291
+ baseURL?: string | undefined;
292
+ throw?: boolean | undefined;
293
+ auth?: ({
294
+ type: "Bearer";
295
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
296
+ } | {
297
+ type: "Basic";
298
+ username: string | (() => string | undefined) | undefined;
299
+ password: string | (() => string | undefined) | undefined;
300
+ } | {
301
+ type: "Custom";
302
+ prefix: string | (() => string | undefined) | undefined;
303
+ value: string | (() => string | undefined) | undefined;
304
+ }) | undefined;
305
+ body?: undefined;
306
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
307
+ params?: Record<string, any> | undefined;
308
+ duplex?: "full" | "half" | undefined;
309
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
310
+ retry?: import('better-auth/client').RetryOptions | undefined;
311
+ retryAttempt?: number | undefined;
312
+ output?: (import('better-auth/client').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
313
+ errorSchema?: import('better-auth/client').StandardSchemaV1 | undefined;
314
+ disableValidation?: boolean | undefined;
315
+ }>(data_0?: import('better-auth').Prettify<{
316
+ query?: Record<string, any> | undefined;
317
+ fetchOptions?: FetchOptions | undefined;
318
+ }> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
319
+ success: boolean;
320
+ }, {
321
+ code?: string;
322
+ message?: string;
323
+ }, FetchOptions["throw"] extends true ? true : false>>>;
324
+ export declare const useChangePassword: (args?: UseAsyncOptions<ReturnType<typeof getAuthAPI>["changePasswordSession"]>) => import('./useAsync').UseAsyncResult<"changePassword", <FetchOptions extends {
325
+ method?: string | undefined;
326
+ mode?: RequestMode | undefined;
327
+ referrerPolicy?: ReferrerPolicy | undefined;
328
+ headers?: (HeadersInit & (HeadersInit | {
329
+ accept: "application/json" | "text/plain" | "application/octet-stream";
330
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
331
+ authorization: "Bearer" | "Basic";
332
+ })) | undefined;
333
+ cache?: RequestCache | undefined;
334
+ credentials?: RequestCredentials | undefined;
335
+ integrity?: string | undefined;
336
+ keepalive?: boolean | undefined;
337
+ priority?: RequestPriority | undefined;
338
+ redirect?: RequestRedirect | undefined;
339
+ referrer?: string | undefined;
340
+ signal?: (AbortSignal | null) | undefined;
341
+ window?: null | undefined;
342
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/client').RequestContext<T>) => Promise<import('better-auth/client').RequestContext | void> | import('better-auth/client').RequestContext | void) | undefined;
343
+ onResponse?: ((context: import('better-auth/client').ResponseContext) => Promise<Response | void | import('better-auth/client').ResponseContext> | Response | import('better-auth/client').ResponseContext | void) | undefined;
344
+ onSuccess?: ((context: import('better-auth/client').SuccessContext<any>) => Promise<void> | void) | undefined;
345
+ onError?: ((context: import('better-auth/client').ErrorContext) => Promise<void> | void) | undefined;
346
+ onRetry?: ((response: import('better-auth/client').ResponseContext) => Promise<void> | void) | undefined;
347
+ hookOptions?: {
348
+ cloneResponse?: boolean;
349
+ } | undefined;
350
+ timeout?: number | undefined;
351
+ customFetchImpl?: import('better-auth/client').FetchEsque | undefined;
352
+ plugins?: import('better-auth/client').BetterFetchPlugin[] | undefined;
353
+ baseURL?: string | undefined;
354
+ throw?: boolean | undefined;
355
+ auth?: ({
356
+ type: "Bearer";
357
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
358
+ } | {
359
+ type: "Basic";
360
+ username: string | (() => string | undefined) | undefined;
361
+ password: string | (() => string | undefined) | undefined;
362
+ } | {
363
+ type: "Custom";
364
+ prefix: string | (() => string | undefined) | undefined;
365
+ value: string | (() => string | undefined) | undefined;
366
+ }) | undefined;
367
+ body?: (Partial<{
368
+ newPassword: string;
369
+ currentPassword: string;
370
+ revokeOtherSessions?: boolean | undefined;
371
+ }> & Record<string, any>) | undefined;
372
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
373
+ params?: Record<string, any> | undefined;
374
+ duplex?: "full" | "half" | undefined;
375
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
376
+ retry?: import('better-auth/client').RetryOptions | undefined;
377
+ retryAttempt?: number | undefined;
378
+ output?: (import('better-auth/client').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
379
+ errorSchema?: import('better-auth/client').StandardSchemaV1 | undefined;
380
+ disableValidation?: boolean | undefined;
381
+ }>(data_0: import('better-auth').Prettify<{
382
+ newPassword: string;
383
+ currentPassword: string;
384
+ revokeOtherSessions?: boolean | undefined;
385
+ } & {
386
+ fetchOptions?: FetchOptions | undefined;
387
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
388
+ token: string | null;
389
+ user: {
390
+ id: string;
391
+ email: string;
392
+ name: string;
393
+ image: string | null | undefined;
394
+ emailVerified: boolean;
395
+ createdAt: Date;
396
+ updatedAt: Date;
397
+ };
398
+ }, {
399
+ code?: string;
400
+ message?: string;
401
+ }, FetchOptions["throw"] extends true ? true : false>>>;
402
+ export declare const useAskResetPassword: (args?: UseAsyncOptions<ReturnType<typeof getAuthAPI>["requestPasswordResetSession"]>) => import('./useAsync').UseAsyncResult<"askResetPassword", <FetchOptions extends {
403
+ method?: string | undefined;
404
+ mode?: RequestMode | undefined;
405
+ referrerPolicy?: ReferrerPolicy | undefined;
406
+ headers?: (HeadersInit & (HeadersInit | {
407
+ accept: "application/json" | "text/plain" | "application/octet-stream";
408
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
409
+ authorization: "Bearer" | "Basic";
410
+ })) | undefined;
411
+ cache?: RequestCache | undefined;
412
+ credentials?: RequestCredentials | undefined;
413
+ integrity?: string | undefined;
414
+ keepalive?: boolean | undefined;
415
+ priority?: RequestPriority | undefined;
416
+ redirect?: RequestRedirect | undefined;
417
+ referrer?: string | undefined;
418
+ signal?: (AbortSignal | null) | undefined;
419
+ window?: null | undefined;
420
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/client').RequestContext<T>) => Promise<import('better-auth/client').RequestContext | void> | import('better-auth/client').RequestContext | void) | undefined;
421
+ onResponse?: ((context: import('better-auth/client').ResponseContext) => Promise<Response | void | import('better-auth/client').ResponseContext> | Response | import('better-auth/client').ResponseContext | void) | undefined;
422
+ onSuccess?: ((context: import('better-auth/client').SuccessContext<any>) => Promise<void> | void) | undefined;
423
+ onError?: ((context: import('better-auth/client').ErrorContext) => Promise<void> | void) | undefined;
424
+ onRetry?: ((response: import('better-auth/client').ResponseContext) => Promise<void> | void) | undefined;
425
+ hookOptions?: {
426
+ cloneResponse?: boolean;
427
+ } | undefined;
428
+ timeout?: number | undefined;
429
+ customFetchImpl?: import('better-auth/client').FetchEsque | undefined;
430
+ plugins?: import('better-auth/client').BetterFetchPlugin[] | undefined;
431
+ baseURL?: string | undefined;
432
+ throw?: boolean | undefined;
433
+ auth?: ({
434
+ type: "Bearer";
435
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
436
+ } | {
437
+ type: "Basic";
438
+ username: string | (() => string | undefined) | undefined;
439
+ password: string | (() => string | undefined) | undefined;
440
+ } | {
441
+ type: "Custom";
442
+ prefix: string | (() => string | undefined) | undefined;
443
+ value: string | (() => string | undefined) | undefined;
444
+ }) | undefined;
445
+ body?: (Partial<{
446
+ email: string;
447
+ redirectTo?: string | undefined;
448
+ }> & Record<string, any>) | undefined;
449
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
450
+ params?: Record<string, any> | undefined;
451
+ duplex?: "full" | "half" | undefined;
452
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
453
+ retry?: import('better-auth/client').RetryOptions | undefined;
454
+ retryAttempt?: number | undefined;
455
+ output?: (import('better-auth/client').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
456
+ errorSchema?: import('better-auth/client').StandardSchemaV1 | undefined;
457
+ disableValidation?: boolean | undefined;
458
+ }>(data_0: import('better-auth').Prettify<{
459
+ email: string;
460
+ redirectTo?: string | undefined;
461
+ } & {
462
+ fetchOptions?: FetchOptions | undefined;
463
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
464
+ status: boolean;
465
+ }, {
466
+ code?: string;
467
+ message?: string;
468
+ }, FetchOptions["throw"] extends true ? true : false>>>;
469
+ export declare const useResetPassword: (args?: UseAsyncOptions<ReturnType<typeof getAuthAPI>["resetPassword"]>) => import('./useAsync').UseAsyncResult<"resetPassword", (<FetchOptions extends {
470
+ method?: string | undefined;
471
+ mode?: RequestMode | undefined;
472
+ referrerPolicy?: ReferrerPolicy | undefined;
473
+ headers?: (HeadersInit & (HeadersInit | {
474
+ accept: "application/json" | "text/plain" | "application/octet-stream";
475
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
476
+ authorization: "Bearer" | "Basic";
477
+ })) | undefined;
478
+ cache?: RequestCache | undefined;
479
+ credentials?: RequestCredentials | undefined;
480
+ integrity?: string | undefined;
481
+ keepalive?: boolean | undefined;
482
+ priority?: RequestPriority | undefined;
483
+ redirect?: RequestRedirect | undefined;
484
+ referrer?: string | undefined;
485
+ signal?: (AbortSignal | null) | undefined;
486
+ window?: null | undefined;
487
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/client').RequestContext<T>) => Promise<import('better-auth/client').RequestContext | void> | import('better-auth/client').RequestContext | void) | undefined;
488
+ onResponse?: ((context: import('better-auth/client').ResponseContext) => Promise<Response | void | import('better-auth/client').ResponseContext> | Response | import('better-auth/client').ResponseContext | void) | undefined;
489
+ onSuccess?: ((context: import('better-auth/client').SuccessContext<any>) => Promise<void> | void) | undefined;
490
+ onError?: ((context: import('better-auth/client').ErrorContext) => Promise<void> | void) | undefined;
491
+ onRetry?: ((response: import('better-auth/client').ResponseContext) => Promise<void> | void) | undefined;
492
+ hookOptions?: {
493
+ cloneResponse?: boolean;
494
+ } | undefined;
495
+ timeout?: number | undefined;
496
+ customFetchImpl?: import('better-auth/client').FetchEsque | undefined;
497
+ plugins?: import('better-auth/client').BetterFetchPlugin[] | undefined;
498
+ baseURL?: string | undefined;
499
+ throw?: boolean | undefined;
500
+ auth?: ({
501
+ type: "Bearer";
502
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
503
+ } | {
504
+ type: "Basic";
505
+ username: string | (() => string | undefined) | undefined;
506
+ password: string | (() => string | undefined) | undefined;
507
+ } | {
508
+ type: "Custom";
509
+ prefix: string | (() => string | undefined) | undefined;
510
+ value: string | (() => string | undefined) | undefined;
511
+ }) | undefined;
512
+ body?: (Partial<{
513
+ newPassword: string;
514
+ token?: string | undefined;
515
+ }> & Record<string, any>) | undefined;
516
+ query?: (Partial<{
517
+ token?: string | undefined;
518
+ }> & Record<string, any>) | undefined;
519
+ params?: Record<string, any> | undefined;
520
+ duplex?: "full" | "half" | undefined;
521
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
522
+ retry?: import('better-auth/client').RetryOptions | undefined;
523
+ retryAttempt?: number | undefined;
524
+ output?: (import('better-auth/client').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
525
+ errorSchema?: import('better-auth/client').StandardSchemaV1 | undefined;
526
+ disableValidation?: boolean | undefined;
527
+ }>(data_0: import('better-auth').Prettify<{
528
+ newPassword: string;
529
+ token?: string | undefined;
530
+ } & {
531
+ fetchOptions?: FetchOptions | undefined;
532
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
533
+ status: boolean;
534
+ }, {
535
+ code?: string;
536
+ message?: string;
537
+ }, FetchOptions["throw"] extends true ? true : false>>) & {
538
+ ":token": <FetchOptions extends {
539
+ method?: string | undefined;
540
+ mode?: RequestMode | undefined;
541
+ referrerPolicy?: ReferrerPolicy | undefined;
542
+ headers?: (HeadersInit & (HeadersInit | {
543
+ accept: "application/json" | "text/plain" | "application/octet-stream";
544
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
545
+ authorization: "Bearer" | "Basic";
546
+ })) | undefined;
547
+ cache?: RequestCache | undefined;
548
+ credentials?: RequestCredentials | undefined;
549
+ integrity?: string | undefined;
550
+ keepalive?: boolean | undefined;
551
+ priority?: RequestPriority | undefined;
552
+ redirect?: RequestRedirect | undefined;
553
+ referrer?: string | undefined;
554
+ signal?: (AbortSignal | null) | undefined;
555
+ window?: null | undefined;
556
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/client').RequestContext<T>) => Promise<import('better-auth/client').RequestContext | void> | import('better-auth/client').RequestContext | void) | undefined;
557
+ onResponse?: ((context: import('better-auth/client').ResponseContext) => Promise<Response | void | import('better-auth/client').ResponseContext> | Response | import('better-auth/client').ResponseContext | void) | undefined;
558
+ onSuccess?: ((context: import('better-auth/client').SuccessContext<any>) => Promise<void> | void) | undefined;
559
+ onError?: ((context: import('better-auth/client').ErrorContext) => Promise<void> | void) | undefined;
560
+ onRetry?: ((response: import('better-auth/client').ResponseContext) => Promise<void> | void) | undefined;
561
+ hookOptions?: {
562
+ cloneResponse?: boolean;
563
+ } | undefined;
564
+ timeout?: number | undefined;
565
+ customFetchImpl?: import('better-auth/client').FetchEsque | undefined;
566
+ plugins?: import('better-auth/client').BetterFetchPlugin[] | undefined;
567
+ baseURL?: string | undefined;
568
+ throw?: boolean | undefined;
569
+ auth?: ({
570
+ type: "Bearer";
571
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
572
+ } | {
573
+ type: "Basic";
574
+ username: string | (() => string | undefined) | undefined;
575
+ password: string | (() => string | undefined) | undefined;
576
+ } | {
577
+ type: "Custom";
578
+ prefix: string | (() => string | undefined) | undefined;
579
+ value: string | (() => string | undefined) | undefined;
580
+ }) | undefined;
581
+ body?: undefined;
582
+ query?: (Partial<{
583
+ callbackURL: string;
584
+ }> & Record<string, any>) | undefined;
585
+ params?: {
586
+ token: string;
587
+ } | undefined;
588
+ duplex?: "full" | "half" | undefined;
589
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
590
+ retry?: import('better-auth/client').RetryOptions | undefined;
591
+ retryAttempt?: number | undefined;
592
+ output?: (import('better-auth/client').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
593
+ errorSchema?: import('better-auth/client').StandardSchemaV1 | undefined;
594
+ disableValidation?: boolean | undefined;
595
+ }>(data_0: import('better-auth').Prettify<{
596
+ query: {
597
+ callbackURL: string;
598
+ };
599
+ fetchOptions?: FetchOptions | undefined;
600
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<never, {
601
+ code?: string;
602
+ message?: string;
603
+ }, FetchOptions["throw"] extends true ? true : false>>;
604
+ } & {
605
+ ":token": <FetchOptions extends {
606
+ method?: string | undefined;
607
+ mode?: RequestMode | undefined;
608
+ referrerPolicy?: ReferrerPolicy | undefined;
609
+ headers?: (HeadersInit & (HeadersInit | {
610
+ accept: "application/json" | "text/plain" | "application/octet-stream";
611
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
612
+ authorization: "Bearer" | "Basic";
613
+ })) | undefined;
614
+ cache?: RequestCache | undefined;
615
+ credentials?: RequestCredentials | undefined;
616
+ integrity?: string | undefined;
617
+ keepalive?: boolean | undefined;
618
+ priority?: RequestPriority | undefined;
619
+ redirect?: RequestRedirect | undefined;
620
+ referrer?: string | undefined;
621
+ signal?: (AbortSignal | null) | undefined;
622
+ window?: null | undefined;
623
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/client').RequestContext<T>) => Promise<import('better-auth/client').RequestContext | void> | import('better-auth/client').RequestContext | void) | undefined;
624
+ onResponse?: ((context: import('better-auth/client').ResponseContext) => Promise<Response | void | import('better-auth/client').ResponseContext> | Response | import('better-auth/client').ResponseContext | void) | undefined;
625
+ onSuccess?: ((context: import('better-auth/client').SuccessContext<any>) => Promise<void> | void) | undefined;
626
+ onError?: ((context: import('better-auth/client').ErrorContext) => Promise<void> | void) | undefined;
627
+ onRetry?: ((response: import('better-auth/client').ResponseContext) => Promise<void> | void) | undefined;
628
+ hookOptions?: {
629
+ cloneResponse?: boolean;
630
+ } | undefined;
631
+ timeout?: number | undefined;
632
+ customFetchImpl?: import('better-auth/client').FetchEsque | undefined;
633
+ plugins?: import('better-auth/client').BetterFetchPlugin[] | undefined;
634
+ baseURL?: string | undefined;
635
+ throw?: boolean | undefined;
636
+ auth?: ({
637
+ type: "Bearer";
638
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
639
+ } | {
640
+ type: "Basic";
641
+ username: string | (() => string | undefined) | undefined;
642
+ password: string | (() => string | undefined) | undefined;
643
+ } | {
644
+ type: "Custom";
645
+ prefix: string | (() => string | undefined) | undefined;
646
+ value: string | (() => string | undefined) | undefined;
647
+ }) | undefined;
648
+ body?: undefined;
649
+ query?: (Partial<{
650
+ callbackURL: string;
651
+ }> & Record<string, any>) | undefined;
652
+ params?: {
653
+ token: string;
654
+ } | undefined;
655
+ duplex?: "full" | "half" | undefined;
656
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
657
+ retry?: import('better-auth/client').RetryOptions | undefined;
658
+ retryAttempt?: number | undefined;
659
+ output?: (import('better-auth/client').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
660
+ errorSchema?: import('better-auth/client').StandardSchemaV1 | undefined;
661
+ disableValidation?: boolean | undefined;
662
+ }>(data_0: import('better-auth').Prettify<{
663
+ query: {
664
+ callbackURL: string;
665
+ };
666
+ fetchOptions?: FetchOptions | undefined;
667
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<never, {
668
+ code?: string;
669
+ message?: string;
670
+ }, FetchOptions["throw"] extends true ? true : false>>;
671
+ }>;
672
+ export declare const useVerifyEmail: (args?: UseAsyncOptions<ReturnType<typeof getAuthAPI>["verifyEmailSession"]>) => import('./useAsync').UseAsyncResult<"verifyEmail", <FetchOptions extends {
673
+ method?: string | undefined;
674
+ mode?: RequestMode | undefined;
675
+ referrerPolicy?: ReferrerPolicy | undefined;
676
+ headers?: (HeadersInit & (HeadersInit | {
677
+ accept: "application/json" | "text/plain" | "application/octet-stream";
678
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
679
+ authorization: "Bearer" | "Basic";
680
+ })) | undefined;
681
+ cache?: RequestCache | undefined;
682
+ credentials?: RequestCredentials | undefined;
683
+ integrity?: string | undefined;
684
+ keepalive?: boolean | undefined;
685
+ priority?: RequestPriority | undefined;
686
+ redirect?: RequestRedirect | undefined;
687
+ referrer?: string | undefined;
688
+ signal?: (AbortSignal | null) | undefined;
689
+ window?: null | undefined;
690
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/client').RequestContext<T>) => Promise<import('better-auth/client').RequestContext | void> | import('better-auth/client').RequestContext | void) | undefined;
691
+ onResponse?: ((context: import('better-auth/client').ResponseContext) => Promise<Response | void | import('better-auth/client').ResponseContext> | Response | import('better-auth/client').ResponseContext | void) | undefined;
692
+ onSuccess?: ((context: import('better-auth/client').SuccessContext<any>) => Promise<void> | void) | undefined;
693
+ onError?: ((context: import('better-auth/client').ErrorContext) => Promise<void> | void) | undefined;
694
+ onRetry?: ((response: import('better-auth/client').ResponseContext) => Promise<void> | void) | undefined;
695
+ hookOptions?: {
696
+ cloneResponse?: boolean;
697
+ } | undefined;
698
+ timeout?: number | undefined;
699
+ customFetchImpl?: import('better-auth/client').FetchEsque | undefined;
700
+ plugins?: import('better-auth/client').BetterFetchPlugin[] | undefined;
701
+ baseURL?: string | undefined;
702
+ throw?: boolean | undefined;
703
+ auth?: ({
704
+ type: "Bearer";
705
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
706
+ } | {
707
+ type: "Basic";
708
+ username: string | (() => string | undefined) | undefined;
709
+ password: string | (() => string | undefined) | undefined;
710
+ } | {
711
+ type: "Custom";
712
+ prefix: string | (() => string | undefined) | undefined;
713
+ value: string | (() => string | undefined) | undefined;
714
+ }) | undefined;
715
+ body?: undefined;
716
+ query?: (Partial<{
717
+ token: string;
718
+ callbackURL?: string | undefined;
719
+ }> & Record<string, any>) | undefined;
720
+ params?: Record<string, any> | undefined;
721
+ duplex?: "full" | "half" | undefined;
722
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
723
+ retry?: import('better-auth/client').RetryOptions | undefined;
724
+ retryAttempt?: number | undefined;
725
+ output?: (import('better-auth/client').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
726
+ errorSchema?: import('better-auth/client').StandardSchemaV1 | undefined;
727
+ disableValidation?: boolean | undefined;
728
+ }>(data_0: import('better-auth').Prettify<{
729
+ query: {
730
+ token: string;
731
+ callbackURL?: string | undefined;
732
+ };
733
+ fetchOptions?: FetchOptions | undefined;
734
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<NonNullable<void | {
735
+ status: boolean;
736
+ user: {
737
+ id: any;
738
+ email: any;
739
+ name: any;
740
+ image: any;
741
+ emailVerified: any;
742
+ createdAt: any;
743
+ updatedAt: any;
744
+ };
745
+ } | {
746
+ status: boolean;
747
+ user: null;
748
+ }>, {
749
+ code?: string;
750
+ message?: string;
751
+ }, FetchOptions["throw"] extends true ? true : false>>>;
752
+ export declare const useGetUserByAccount: (args?: UseAsyncOptions<ReturnType<typeof getAuthAPI>["accountInfo"]>) => import('./useAsync').UseAsyncResult<"getUserByAccount", <FetchOptions extends {
753
+ method?: string | undefined;
754
+ mode?: RequestMode | undefined;
755
+ referrerPolicy?: ReferrerPolicy | undefined;
756
+ headers?: (HeadersInit & (HeadersInit | {
757
+ accept: "application/json" | "text/plain" | "application/octet-stream";
758
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
759
+ authorization: "Bearer" | "Basic";
760
+ })) | undefined;
761
+ cache?: RequestCache | undefined;
762
+ credentials?: RequestCredentials | undefined;
763
+ integrity?: string | undefined;
764
+ keepalive?: boolean | undefined;
765
+ priority?: RequestPriority | undefined;
766
+ redirect?: RequestRedirect | undefined;
767
+ referrer?: string | undefined;
768
+ signal?: (AbortSignal | null) | undefined;
769
+ window?: null | undefined;
770
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/client').RequestContext<T>) => Promise<import('better-auth/client').RequestContext | void> | import('better-auth/client').RequestContext | void) | undefined;
771
+ onResponse?: ((context: import('better-auth/client').ResponseContext) => Promise<Response | void | import('better-auth/client').ResponseContext> | Response | import('better-auth/client').ResponseContext | void) | undefined;
772
+ onSuccess?: ((context: import('better-auth/client').SuccessContext<any>) => Promise<void> | void) | undefined;
773
+ onError?: ((context: import('better-auth/client').ErrorContext) => Promise<void> | void) | undefined;
774
+ onRetry?: ((response: import('better-auth/client').ResponseContext) => Promise<void> | void) | undefined;
775
+ hookOptions?: {
776
+ cloneResponse?: boolean;
777
+ } | undefined;
778
+ timeout?: number | undefined;
779
+ customFetchImpl?: import('better-auth/client').FetchEsque | undefined;
780
+ plugins?: import('better-auth/client').BetterFetchPlugin[] | undefined;
781
+ baseURL?: string | undefined;
782
+ throw?: boolean | undefined;
783
+ auth?: ({
784
+ type: "Bearer";
785
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
786
+ } | {
787
+ type: "Basic";
788
+ username: string | (() => string | undefined) | undefined;
789
+ password: string | (() => string | undefined) | undefined;
790
+ } | {
791
+ type: "Custom";
792
+ prefix: string | (() => string | undefined) | undefined;
793
+ value: string | (() => string | undefined) | undefined;
794
+ }) | undefined;
795
+ body?: (Partial<{
796
+ accountId: string;
797
+ }> & Record<string, any>) | undefined;
798
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
799
+ params?: Record<string, any> | undefined;
800
+ duplex?: "full" | "half" | undefined;
801
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
802
+ retry?: import('better-auth/client').RetryOptions | undefined;
803
+ retryAttempt?: number | undefined;
804
+ output?: (import('better-auth/client').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
805
+ errorSchema?: import('better-auth/client').StandardSchemaV1 | undefined;
806
+ disableValidation?: boolean | undefined;
807
+ }>(data_0: import('better-auth').Prettify<{
808
+ accountId: string;
809
+ } & {
810
+ fetchOptions?: FetchOptions | undefined;
811
+ }>, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
812
+ user: {
813
+ id: string;
814
+ name?: string;
815
+ email?: string | null;
816
+ image?: string;
817
+ emailVerified: boolean;
818
+ };
819
+ data: Record<string, any>;
820
+ }, {
821
+ code?: string;
822
+ message?: string;
823
+ }, FetchOptions["throw"] extends true ? true : false>>>;
14
824
  /**
15
825
  * User
16
826
  */
17
827
  export declare const useGetUsers: (args?: UseAsyncOptions<IntlayerAPI["user"]["getUsers"]>) => import('./useAsync').UseAsyncResult<"getUsers", (filters?: import('@intlayer/backend').GetUsersParams, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').GetUsersResult>>;
18
- export declare const useCreateUser: (args?: UseAsyncOptions<IntlayerAPI["auth"]["updateUser"]>) => import('./useAsync').UseAsyncResult<"createUser", any>;
828
+ export declare const useCreateUser: (args?: UseAsyncOptions<ReturnType<typeof getAuthAPI>["updateUser"]>) => import('./useAsync').UseAsyncResult<"createUser", <FetchOptions extends {
829
+ method?: string | undefined;
830
+ mode?: RequestMode | undefined;
831
+ referrerPolicy?: ReferrerPolicy | undefined;
832
+ headers?: (HeadersInit & (HeadersInit | {
833
+ accept: "application/json" | "text/plain" | "application/octet-stream";
834
+ "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
835
+ authorization: "Bearer" | "Basic";
836
+ })) | undefined;
837
+ cache?: RequestCache | undefined;
838
+ credentials?: RequestCredentials | undefined;
839
+ integrity?: string | undefined;
840
+ keepalive?: boolean | undefined;
841
+ priority?: RequestPriority | undefined;
842
+ redirect?: RequestRedirect | undefined;
843
+ referrer?: string | undefined;
844
+ signal?: (AbortSignal | null) | undefined;
845
+ window?: null | undefined;
846
+ onRequest?: (<T extends Record<string, any>>(context: import('better-auth/client').RequestContext<T>) => Promise<import('better-auth/client').RequestContext | void> | import('better-auth/client').RequestContext | void) | undefined;
847
+ onResponse?: ((context: import('better-auth/client').ResponseContext) => Promise<Response | void | import('better-auth/client').ResponseContext> | Response | import('better-auth/client').ResponseContext | void) | undefined;
848
+ onSuccess?: ((context: import('better-auth/client').SuccessContext<any>) => Promise<void> | void) | undefined;
849
+ onError?: ((context: import('better-auth/client').ErrorContext) => Promise<void> | void) | undefined;
850
+ onRetry?: ((response: import('better-auth/client').ResponseContext) => Promise<void> | void) | undefined;
851
+ hookOptions?: {
852
+ cloneResponse?: boolean;
853
+ } | undefined;
854
+ timeout?: number | undefined;
855
+ customFetchImpl?: import('better-auth/client').FetchEsque | undefined;
856
+ plugins?: import('better-auth/client').BetterFetchPlugin[] | undefined;
857
+ baseURL?: string | undefined;
858
+ throw?: boolean | undefined;
859
+ auth?: ({
860
+ type: "Bearer";
861
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
862
+ } | {
863
+ type: "Basic";
864
+ username: string | (() => string | undefined) | undefined;
865
+ password: string | (() => string | undefined) | undefined;
866
+ } | {
867
+ type: "Custom";
868
+ prefix: string | (() => string | undefined) | undefined;
869
+ value: string | (() => string | undefined) | undefined;
870
+ }) | undefined;
871
+ body?: (Partial<Partial<{}> & {
872
+ name?: string;
873
+ image?: string;
874
+ }> & Record<string, any>) | undefined;
875
+ query?: (Partial<Record<string, any>> & Record<string, any>) | undefined;
876
+ params?: Record<string, any> | undefined;
877
+ duplex?: "full" | "half" | undefined;
878
+ jsonParser?: ((text: string) => Promise<any> | any) | undefined;
879
+ retry?: import('better-auth/client').RetryOptions | undefined;
880
+ retryAttempt?: number | undefined;
881
+ output?: (import('better-auth/client').StandardSchemaV1 | typeof Blob | typeof File) | undefined;
882
+ errorSchema?: import('better-auth/client').StandardSchemaV1 | undefined;
883
+ disableValidation?: boolean | undefined;
884
+ }>(data_0?: import('better-auth').Prettify<{
885
+ image?: string | null;
886
+ name?: string;
887
+ fetchOptions?: FetchOptions | undefined;
888
+ } & Partial<{}>> | undefined, data_1?: FetchOptions | undefined) => Promise<import('better-auth/client').BetterFetchResponse<{
889
+ status: boolean;
890
+ }, {
891
+ code?: string;
892
+ message?: string;
893
+ }, FetchOptions["throw"] extends true ? true : false>>>;
19
894
  export declare const useUpdateUser: (args?: UseAsyncOptions<IntlayerAPI["user"]["updateUser"]>) => import('./useAsync').UseAsyncResult<"updateUser", (user: import('@intlayer/backend').UpdateUserBody, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').UpdateUserResult>>;
20
895
  export declare const useDeleteUser: (args?: UseAsyncOptions<IntlayerAPI["user"]["deleteUser"]>) => import('./useAsync').UseAsyncResult<"deleteUser", (userId: string, otherOptions?: import('@intlayer/api').FetcherOptions) => Promise<import('@intlayer/backend').UpdateUserResult>>;
21
896
  /**