@intlayer/design-system 7.1.0-canary.2 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/components/Breadcrumb/index.d.ts +2 -2
- package/dist/types/components/CollapsibleTable/CollapsibleTable.d.ts +2 -2
- package/dist/types/components/Command/index.d.ts +20 -20
- package/dist/types/components/Container/index.d.ts +5 -5
- package/dist/types/components/Container/index.d.ts.map +1 -1
- package/dist/types/components/CopyButton/CopyButton.content.d.ts +3 -3
- package/dist/types/components/CopyButton/CopyButton.content.d.ts.map +1 -1
- package/dist/types/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts +25 -25
- package/dist/types/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.d.ts +9 -9
- package/dist/types/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.d.ts.map +1 -1
- package/dist/types/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts +33 -33
- package/dist/types/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.d.ts +25 -25
- package/dist/types/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts +25 -25
- package/dist/types/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts.map +1 -1
- package/dist/types/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts +33 -33
- package/dist/types/components/DictionaryFieldEditor/StructureView/structureView.content.d.ts +9 -9
- package/dist/types/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.d.ts +7 -7
- package/dist/types/components/DictionaryFieldEditor/dictionaryFieldEditor.content.d.ts +5 -5
- package/dist/types/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts +31 -31
- package/dist/types/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts.map +1 -1
- package/dist/types/components/ExpandCollapse/expandCollapse.content.d.ts +3 -3
- package/dist/types/components/Form/FormBase.d.ts +2 -2
- package/dist/types/components/Form/FormBase.d.ts.map +1 -1
- package/dist/types/components/Form/FormField.d.ts +2 -2
- package/dist/types/components/Form/FormField.d.ts.map +1 -1
- package/dist/types/components/Form/FormItem.d.ts +2 -2
- package/dist/types/components/Form/FormItem.d.ts.map +1 -1
- package/dist/types/components/Form/elements/EditableFieldInputElement.d.ts +2 -2
- package/dist/types/components/Form/elements/EditableFieldInputElement.d.ts.map +1 -1
- package/dist/types/components/Form/elements/EditableFieldTextAreaElement.d.ts +2 -2
- package/dist/types/components/Form/elements/EditableFieldTextAreaElement.d.ts.map +1 -1
- package/dist/types/components/Form/elements/FormElement.d.ts +2 -2
- package/dist/types/components/Form/elements/FormElement.d.ts.map +1 -1
- package/dist/types/components/Form/elements/MultiselectElement.d.ts +2 -2
- package/dist/types/components/Form/elements/MultiselectElement.d.ts.map +1 -1
- package/dist/types/components/Form/elements/OTPElement.d.ts +2 -2
- package/dist/types/components/Form/elements/OTPElement.d.ts.map +1 -1
- package/dist/types/components/Form/elements/SelectElement.d.ts +2 -2
- package/dist/types/components/Form/elements/SelectElement.d.ts.map +1 -1
- package/dist/types/components/Form/elements/SwitchSelectorElement.d.ts +2 -2
- package/dist/types/components/Form/elements/SwitchSelectorElement.d.ts.map +1 -1
- package/dist/types/components/IDE/CodeContext.d.ts +2 -2
- package/dist/types/components/IDE/CodeContext.d.ts.map +1 -1
- package/dist/types/components/IDE/FileTree.d.ts.map +1 -1
- package/dist/types/components/IDE/code.content.d.ts +5 -5
- package/dist/types/components/IDE/copyCode.content.d.ts +5 -5
- package/dist/types/components/Input/Checkbox.d.ts +3 -3
- package/dist/types/components/Input/Checkbox.d.ts.map +1 -1
- package/dist/types/components/Input/Input.d.ts +3 -3
- package/dist/types/components/Input/Input.d.ts.map +1 -1
- package/dist/types/components/Input/OTPInput.d.ts +4 -4
- package/dist/types/components/Input/OTPInput.d.ts.map +1 -1
- package/dist/types/components/Input/SearchInput.d.ts +2 -2
- package/dist/types/components/Input/SearchInput.d.ts.map +1 -1
- package/dist/types/components/Link/Link.d.ts +2 -2
- package/dist/types/components/Loader/index.content.d.ts +3 -3
- package/dist/types/components/Loader/spinner.d.ts +2 -2
- package/dist/types/components/Loader/spinner.d.ts.map +1 -1
- package/dist/types/components/LocaleSwitcherContentDropDown/localeSwitcher.content.d.ts +17 -17
- package/dist/types/components/LocaleSwitcherContentDropDown/localeSwitcher.content.d.ts.map +1 -1
- package/dist/types/components/LocaleSwitcherDropDown/localeSwitcher.content.d.ts +13 -13
- package/dist/types/components/MaxWidthSmoother/index.d.ts +2 -2
- package/dist/types/components/Navbar/Burger.d.ts +2 -2
- package/dist/types/components/Navbar/DesktopNavbar.d.ts +2 -2
- package/dist/types/components/Navbar/DesktopNavbar.d.ts.map +1 -1
- package/dist/types/components/Navbar/MobileNavbar.d.ts +2 -2
- package/dist/types/components/Navbar/MobileNavbar.d.ts.map +1 -1
- package/dist/types/components/Navbar/index.d.ts +2 -2
- package/dist/types/components/Navbar/index.d.ts.map +1 -1
- package/dist/types/components/Pagination/Pagination.d.ts +2 -2
- package/dist/types/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/types/components/Pagination/pagination.content.d.ts +11 -11
- package/dist/types/components/Popover/static.d.ts +3 -3
- package/dist/types/components/RightDrawer/useRightDrawerStore.d.ts +2 -2
- package/dist/types/components/Select/Select.d.ts +3 -3
- package/dist/types/components/SocialNetworks/index.d.ts +2 -2
- package/dist/types/components/SwitchSelector/index.d.ts +5 -5
- package/dist/types/components/SwitchSelector/index.d.ts.map +1 -1
- package/dist/types/components/Tab/Tab.d.ts +5 -5
- package/dist/types/components/Tab/Tab.d.ts.map +1 -1
- package/dist/types/components/Tab/TabContext.d.ts +2 -2
- package/dist/types/components/TabSelector/TabSelector.d.ts +4 -4
- package/dist/types/components/Table/table.content.d.ts +3 -3
- package/dist/types/components/Toaster/Toast.d.ts +2 -2
- package/dist/types/components/Toaster/Toast.d.ts.map +1 -1
- package/dist/types/components/Toaster/Toaster.d.ts +2 -2
- package/dist/types/components/Toaster/Toaster.d.ts.map +1 -1
- package/dist/types/hooks/reactQuery.d.ts +190 -190
- package/dist/types/hooks/reactQuery.d.ts.map +1 -1
- package/dist/types/hooks/useScrollBlockage/useScrollBlockageStore.d.ts +2 -2
- package/dist/types/hooks/useUser/index.d.ts +3 -3
- package/dist/types/libs/auth.d.ts +668 -668
- package/dist/types/libs/auth.d.ts.map +1 -1
- package/package.json +20 -20
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _better_fetch_fetch183 from "@better-fetch/fetch";
|
|
3
|
+
import * as better_auth13 from "better-auth";
|
|
4
4
|
import * as inspector0 from "inspector";
|
|
5
5
|
import * as better_auth_plugins_passkey0 from "better-auth/plugins/passkey";
|
|
6
6
|
import * as nanostores0 from "nanostores";
|
|
@@ -10,26 +10,26 @@ import * as _simplewebauthn_server0 from "@simplewebauthn/server";
|
|
|
10
10
|
declare const getAuthClient: (backendURL: string) => {
|
|
11
11
|
useListPasskeys: nanostores0.PreinitializedWritableAtom<{
|
|
12
12
|
data: better_auth_plugins_passkey0.Passkey[] | null;
|
|
13
|
-
error: null |
|
|
13
|
+
error: null | _better_fetch_fetch183.BetterFetchError;
|
|
14
14
|
isPending: boolean;
|
|
15
15
|
isRefetching: boolean;
|
|
16
16
|
refetch: (queryParams?: {
|
|
17
|
-
query?:
|
|
17
|
+
query?: better_auth13.SessionQueryParams;
|
|
18
18
|
} | undefined) => void;
|
|
19
19
|
}> & object;
|
|
20
20
|
} & {
|
|
21
21
|
twoFactor: {
|
|
22
22
|
enable: <FetchOptions extends {
|
|
23
|
-
|
|
23
|
+
cache?: RequestCache;
|
|
24
|
+
credentials?: RequestCredentials;
|
|
24
25
|
headers?: HeadersInit & (HeadersInit | {
|
|
25
26
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
26
27
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
27
28
|
authorization: "Bearer" | "Basic";
|
|
28
29
|
});
|
|
29
|
-
cache?: RequestCache;
|
|
30
|
-
credentials?: RequestCredentials;
|
|
31
30
|
integrity?: string;
|
|
32
31
|
keepalive?: boolean;
|
|
32
|
+
method?: string;
|
|
33
33
|
mode?: RequestMode;
|
|
34
34
|
priority?: RequestPriority;
|
|
35
35
|
redirect?: RequestRedirect;
|
|
@@ -37,17 +37,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
37
37
|
referrerPolicy?: ReferrerPolicy;
|
|
38
38
|
signal?: AbortSignal | null;
|
|
39
39
|
window?: null;
|
|
40
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
41
|
-
onResponse?: (context:
|
|
42
|
-
onSuccess?: (context:
|
|
43
|
-
onError?: (context:
|
|
44
|
-
onRetry?: (response:
|
|
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
45
|
hookOptions?: {
|
|
46
46
|
cloneResponse?: boolean;
|
|
47
47
|
};
|
|
48
48
|
timeout?: number;
|
|
49
|
-
customFetchImpl?:
|
|
50
|
-
plugins?:
|
|
49
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
50
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
51
51
|
baseURL?: string;
|
|
52
52
|
throw?: boolean;
|
|
53
53
|
auth?: {
|
|
@@ -70,17 +70,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
70
70
|
params?: Record<string, any>;
|
|
71
71
|
duplex?: "full" | "half";
|
|
72
72
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
73
|
-
retry?:
|
|
73
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
74
74
|
retryAttempt?: number;
|
|
75
|
-
output?:
|
|
76
|
-
errorSchema?:
|
|
75
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
76
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
77
77
|
disableValidation?: boolean;
|
|
78
|
-
}>(data_0:
|
|
78
|
+
}>(data_0: better_auth13.Prettify<{
|
|
79
79
|
password: string;
|
|
80
80
|
issuer?: string | undefined;
|
|
81
81
|
} & {
|
|
82
82
|
fetchOptions?: FetchOptions;
|
|
83
|
-
}>, data_1?: FetchOptions) => Promise<
|
|
83
|
+
}>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
84
84
|
totpURI: string;
|
|
85
85
|
backupCodes: string[];
|
|
86
86
|
}, {
|
|
@@ -91,16 +91,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
91
91
|
} & {
|
|
92
92
|
twoFactor: {
|
|
93
93
|
disable: <FetchOptions extends {
|
|
94
|
-
|
|
94
|
+
cache?: RequestCache;
|
|
95
|
+
credentials?: RequestCredentials;
|
|
95
96
|
headers?: HeadersInit & (HeadersInit | {
|
|
96
97
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
97
98
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
98
99
|
authorization: "Bearer" | "Basic";
|
|
99
100
|
});
|
|
100
|
-
cache?: RequestCache;
|
|
101
|
-
credentials?: RequestCredentials;
|
|
102
101
|
integrity?: string;
|
|
103
102
|
keepalive?: boolean;
|
|
103
|
+
method?: string;
|
|
104
104
|
mode?: RequestMode;
|
|
105
105
|
priority?: RequestPriority;
|
|
106
106
|
redirect?: RequestRedirect;
|
|
@@ -108,17 +108,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
108
108
|
referrerPolicy?: ReferrerPolicy;
|
|
109
109
|
signal?: AbortSignal | null;
|
|
110
110
|
window?: null;
|
|
111
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
112
|
-
onResponse?: (context:
|
|
113
|
-
onSuccess?: (context:
|
|
114
|
-
onError?: (context:
|
|
115
|
-
onRetry?: (response:
|
|
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
116
|
hookOptions?: {
|
|
117
117
|
cloneResponse?: boolean;
|
|
118
118
|
};
|
|
119
119
|
timeout?: number;
|
|
120
|
-
customFetchImpl?:
|
|
121
|
-
plugins?:
|
|
120
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
121
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
122
122
|
baseURL?: string;
|
|
123
123
|
throw?: boolean;
|
|
124
124
|
auth?: {
|
|
@@ -140,16 +140,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
140
140
|
params?: Record<string, any>;
|
|
141
141
|
duplex?: "full" | "half";
|
|
142
142
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
143
|
-
retry?:
|
|
143
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
144
144
|
retryAttempt?: number;
|
|
145
|
-
output?:
|
|
146
|
-
errorSchema?:
|
|
145
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
146
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
147
147
|
disableValidation?: boolean;
|
|
148
|
-
}>(data_0:
|
|
148
|
+
}>(data_0: better_auth13.Prettify<{
|
|
149
149
|
password: string;
|
|
150
150
|
} & {
|
|
151
151
|
fetchOptions?: FetchOptions;
|
|
152
|
-
}>, data_1?: FetchOptions) => Promise<
|
|
152
|
+
}>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
153
153
|
status: boolean;
|
|
154
154
|
}, {
|
|
155
155
|
code?: string;
|
|
@@ -159,16 +159,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
159
159
|
} & {
|
|
160
160
|
twoFactor: {
|
|
161
161
|
verifyBackupCode: <FetchOptions extends {
|
|
162
|
-
|
|
162
|
+
cache?: RequestCache;
|
|
163
|
+
credentials?: RequestCredentials;
|
|
163
164
|
headers?: HeadersInit & (HeadersInit | {
|
|
164
165
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
165
166
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
166
167
|
authorization: "Bearer" | "Basic";
|
|
167
168
|
});
|
|
168
|
-
cache?: RequestCache;
|
|
169
|
-
credentials?: RequestCredentials;
|
|
170
169
|
integrity?: string;
|
|
171
170
|
keepalive?: boolean;
|
|
171
|
+
method?: string;
|
|
172
172
|
mode?: RequestMode;
|
|
173
173
|
priority?: RequestPriority;
|
|
174
174
|
redirect?: RequestRedirect;
|
|
@@ -176,17 +176,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
176
176
|
referrerPolicy?: ReferrerPolicy;
|
|
177
177
|
signal?: AbortSignal | null;
|
|
178
178
|
window?: null;
|
|
179
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
180
|
-
onResponse?: (context:
|
|
181
|
-
onSuccess?: (context:
|
|
182
|
-
onError?: (context:
|
|
183
|
-
onRetry?: (response:
|
|
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
184
|
hookOptions?: {
|
|
185
185
|
cloneResponse?: boolean;
|
|
186
186
|
};
|
|
187
187
|
timeout?: number;
|
|
188
|
-
customFetchImpl?:
|
|
189
|
-
plugins?:
|
|
188
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
189
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
190
190
|
baseURL?: string;
|
|
191
191
|
throw?: boolean;
|
|
192
192
|
auth?: {
|
|
@@ -210,18 +210,18 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
210
210
|
params?: Record<string, any>;
|
|
211
211
|
duplex?: "full" | "half";
|
|
212
212
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
213
|
-
retry?:
|
|
213
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
214
214
|
retryAttempt?: number;
|
|
215
|
-
output?:
|
|
216
|
-
errorSchema?:
|
|
215
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
216
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
217
217
|
disableValidation?: boolean;
|
|
218
|
-
}>(data_0:
|
|
218
|
+
}>(data_0: better_auth13.Prettify<{
|
|
219
219
|
code: string;
|
|
220
220
|
disableSession?: boolean | undefined;
|
|
221
221
|
trustDevice?: boolean | undefined;
|
|
222
222
|
} & {
|
|
223
223
|
fetchOptions?: FetchOptions;
|
|
224
|
-
}>, data_1?: FetchOptions) => Promise<
|
|
224
|
+
}>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
225
225
|
token: string | undefined;
|
|
226
226
|
user: {
|
|
227
227
|
id: string;
|
|
@@ -240,16 +240,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
240
240
|
} & {
|
|
241
241
|
twoFactor: {
|
|
242
242
|
generateBackupCodes: <FetchOptions extends {
|
|
243
|
-
|
|
243
|
+
cache?: RequestCache;
|
|
244
|
+
credentials?: RequestCredentials;
|
|
244
245
|
headers?: HeadersInit & (HeadersInit | {
|
|
245
246
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
246
247
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
247
248
|
authorization: "Bearer" | "Basic";
|
|
248
249
|
});
|
|
249
|
-
cache?: RequestCache;
|
|
250
|
-
credentials?: RequestCredentials;
|
|
251
250
|
integrity?: string;
|
|
252
251
|
keepalive?: boolean;
|
|
252
|
+
method?: string;
|
|
253
253
|
mode?: RequestMode;
|
|
254
254
|
priority?: RequestPriority;
|
|
255
255
|
redirect?: RequestRedirect;
|
|
@@ -257,17 +257,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
257
257
|
referrerPolicy?: ReferrerPolicy;
|
|
258
258
|
signal?: AbortSignal | null;
|
|
259
259
|
window?: null;
|
|
260
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
261
|
-
onResponse?: (context:
|
|
262
|
-
onSuccess?: (context:
|
|
263
|
-
onError?: (context:
|
|
264
|
-
onRetry?: (response:
|
|
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
265
|
hookOptions?: {
|
|
266
266
|
cloneResponse?: boolean;
|
|
267
267
|
};
|
|
268
268
|
timeout?: number;
|
|
269
|
-
customFetchImpl?:
|
|
270
|
-
plugins?:
|
|
269
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
270
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
271
271
|
baseURL?: string;
|
|
272
272
|
throw?: boolean;
|
|
273
273
|
auth?: {
|
|
@@ -289,16 +289,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
289
289
|
params?: Record<string, any>;
|
|
290
290
|
duplex?: "full" | "half";
|
|
291
291
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
292
|
-
retry?:
|
|
292
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
293
293
|
retryAttempt?: number;
|
|
294
|
-
output?:
|
|
295
|
-
errorSchema?:
|
|
294
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
295
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
296
296
|
disableValidation?: boolean;
|
|
297
|
-
}>(data_0:
|
|
297
|
+
}>(data_0: better_auth13.Prettify<{
|
|
298
298
|
password: string;
|
|
299
299
|
} & {
|
|
300
300
|
fetchOptions?: FetchOptions;
|
|
301
|
-
}>, data_1?: FetchOptions) => Promise<
|
|
301
|
+
}>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
302
302
|
status: boolean;
|
|
303
303
|
backupCodes: string[];
|
|
304
304
|
}, {
|
|
@@ -309,16 +309,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
309
309
|
} & {
|
|
310
310
|
twoFactor: {
|
|
311
311
|
sendOtp: <FetchOptions extends {
|
|
312
|
-
|
|
312
|
+
cache?: RequestCache;
|
|
313
|
+
credentials?: RequestCredentials;
|
|
313
314
|
headers?: HeadersInit & (HeadersInit | {
|
|
314
315
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
315
316
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
316
317
|
authorization: "Bearer" | "Basic";
|
|
317
318
|
});
|
|
318
|
-
cache?: RequestCache;
|
|
319
|
-
credentials?: RequestCredentials;
|
|
320
319
|
integrity?: string;
|
|
321
320
|
keepalive?: boolean;
|
|
321
|
+
method?: string;
|
|
322
322
|
mode?: RequestMode;
|
|
323
323
|
priority?: RequestPriority;
|
|
324
324
|
redirect?: RequestRedirect;
|
|
@@ -326,17 +326,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
326
326
|
referrerPolicy?: ReferrerPolicy;
|
|
327
327
|
signal?: AbortSignal | null;
|
|
328
328
|
window?: null;
|
|
329
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
330
|
-
onResponse?: (context:
|
|
331
|
-
onSuccess?: (context:
|
|
332
|
-
onError?: (context:
|
|
333
|
-
onRetry?: (response:
|
|
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
334
|
hookOptions?: {
|
|
335
335
|
cloneResponse?: boolean;
|
|
336
336
|
};
|
|
337
337
|
timeout?: number;
|
|
338
|
-
customFetchImpl?:
|
|
339
|
-
plugins?:
|
|
338
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
339
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
340
340
|
baseURL?: string;
|
|
341
341
|
throw?: boolean;
|
|
342
342
|
auth?: {
|
|
@@ -358,16 +358,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
358
358
|
params?: Record<string, any>;
|
|
359
359
|
duplex?: "full" | "half";
|
|
360
360
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
361
|
-
retry?:
|
|
361
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
362
362
|
retryAttempt?: number;
|
|
363
|
-
output?:
|
|
364
|
-
errorSchema?:
|
|
363
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
364
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
365
365
|
disableValidation?: boolean;
|
|
366
|
-
}>(data_0?:
|
|
366
|
+
}>(data_0?: better_auth13.Prettify<{
|
|
367
367
|
trustDevice?: boolean | undefined;
|
|
368
368
|
} & {
|
|
369
369
|
fetchOptions?: FetchOptions;
|
|
370
|
-
}>, data_1?: FetchOptions) => Promise<
|
|
370
|
+
}>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
371
371
|
status: boolean;
|
|
372
372
|
}, {
|
|
373
373
|
code?: string;
|
|
@@ -377,16 +377,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
377
377
|
} & {
|
|
378
378
|
twoFactor: {
|
|
379
379
|
verifyOtp: <FetchOptions extends {
|
|
380
|
-
|
|
380
|
+
cache?: RequestCache;
|
|
381
|
+
credentials?: RequestCredentials;
|
|
381
382
|
headers?: HeadersInit & (HeadersInit | {
|
|
382
383
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
383
384
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
384
385
|
authorization: "Bearer" | "Basic";
|
|
385
386
|
});
|
|
386
|
-
cache?: RequestCache;
|
|
387
|
-
credentials?: RequestCredentials;
|
|
388
387
|
integrity?: string;
|
|
389
388
|
keepalive?: boolean;
|
|
389
|
+
method?: string;
|
|
390
390
|
mode?: RequestMode;
|
|
391
391
|
priority?: RequestPriority;
|
|
392
392
|
redirect?: RequestRedirect;
|
|
@@ -394,17 +394,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
394
394
|
referrerPolicy?: ReferrerPolicy;
|
|
395
395
|
signal?: AbortSignal | null;
|
|
396
396
|
window?: null;
|
|
397
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
398
|
-
onResponse?: (context:
|
|
399
|
-
onSuccess?: (context:
|
|
400
|
-
onError?: (context:
|
|
401
|
-
onRetry?: (response:
|
|
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
402
|
hookOptions?: {
|
|
403
403
|
cloneResponse?: boolean;
|
|
404
404
|
};
|
|
405
405
|
timeout?: number;
|
|
406
|
-
customFetchImpl?:
|
|
407
|
-
plugins?:
|
|
406
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
407
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
408
408
|
baseURL?: string;
|
|
409
409
|
throw?: boolean;
|
|
410
410
|
auth?: {
|
|
@@ -427,17 +427,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
427
427
|
params?: Record<string, any>;
|
|
428
428
|
duplex?: "full" | "half";
|
|
429
429
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
430
|
-
retry?:
|
|
430
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
431
431
|
retryAttempt?: number;
|
|
432
|
-
output?:
|
|
433
|
-
errorSchema?:
|
|
432
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
433
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
434
434
|
disableValidation?: boolean;
|
|
435
|
-
}>(data_0:
|
|
435
|
+
}>(data_0: better_auth13.Prettify<{
|
|
436
436
|
code: string;
|
|
437
437
|
trustDevice?: boolean | undefined;
|
|
438
438
|
} & {
|
|
439
439
|
fetchOptions?: FetchOptions;
|
|
440
|
-
}>, data_1?: FetchOptions) => Promise<
|
|
440
|
+
}>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
441
441
|
token: string;
|
|
442
442
|
user: {
|
|
443
443
|
id: any;
|
|
@@ -456,16 +456,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
456
456
|
} & {
|
|
457
457
|
twoFactor: {
|
|
458
458
|
getTotpUri: <FetchOptions extends {
|
|
459
|
-
|
|
459
|
+
cache?: RequestCache;
|
|
460
|
+
credentials?: RequestCredentials;
|
|
460
461
|
headers?: HeadersInit & (HeadersInit | {
|
|
461
462
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
462
463
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
463
464
|
authorization: "Bearer" | "Basic";
|
|
464
465
|
});
|
|
465
|
-
cache?: RequestCache;
|
|
466
|
-
credentials?: RequestCredentials;
|
|
467
466
|
integrity?: string;
|
|
468
467
|
keepalive?: boolean;
|
|
468
|
+
method?: string;
|
|
469
469
|
mode?: RequestMode;
|
|
470
470
|
priority?: RequestPriority;
|
|
471
471
|
redirect?: RequestRedirect;
|
|
@@ -473,17 +473,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
473
473
|
referrerPolicy?: ReferrerPolicy;
|
|
474
474
|
signal?: AbortSignal | null;
|
|
475
475
|
window?: null;
|
|
476
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
477
|
-
onResponse?: (context:
|
|
478
|
-
onSuccess?: (context:
|
|
479
|
-
onError?: (context:
|
|
480
|
-
onRetry?: (response:
|
|
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
481
|
hookOptions?: {
|
|
482
482
|
cloneResponse?: boolean;
|
|
483
483
|
};
|
|
484
484
|
timeout?: number;
|
|
485
|
-
customFetchImpl?:
|
|
486
|
-
plugins?:
|
|
485
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
486
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
487
487
|
baseURL?: string;
|
|
488
488
|
throw?: boolean;
|
|
489
489
|
auth?: {
|
|
@@ -505,16 +505,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
505
505
|
params?: Record<string, any>;
|
|
506
506
|
duplex?: "full" | "half";
|
|
507
507
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
508
|
-
retry?:
|
|
508
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
509
509
|
retryAttempt?: number;
|
|
510
|
-
output?:
|
|
511
|
-
errorSchema?:
|
|
510
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
511
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
512
512
|
disableValidation?: boolean;
|
|
513
|
-
}>(data_0:
|
|
513
|
+
}>(data_0: better_auth13.Prettify<{
|
|
514
514
|
password: string;
|
|
515
515
|
} & {
|
|
516
516
|
fetchOptions?: FetchOptions;
|
|
517
|
-
}>, data_1?: FetchOptions) => Promise<
|
|
517
|
+
}>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
518
518
|
totpURI: string;
|
|
519
519
|
}, {
|
|
520
520
|
code?: string;
|
|
@@ -524,16 +524,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
524
524
|
} & {
|
|
525
525
|
twoFactor: {
|
|
526
526
|
verifyTotp: <FetchOptions extends {
|
|
527
|
-
|
|
527
|
+
cache?: RequestCache;
|
|
528
|
+
credentials?: RequestCredentials;
|
|
528
529
|
headers?: HeadersInit & (HeadersInit | {
|
|
529
530
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
530
531
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
531
532
|
authorization: "Bearer" | "Basic";
|
|
532
533
|
});
|
|
533
|
-
cache?: RequestCache;
|
|
534
|
-
credentials?: RequestCredentials;
|
|
535
534
|
integrity?: string;
|
|
536
535
|
keepalive?: boolean;
|
|
536
|
+
method?: string;
|
|
537
537
|
mode?: RequestMode;
|
|
538
538
|
priority?: RequestPriority;
|
|
539
539
|
redirect?: RequestRedirect;
|
|
@@ -541,17 +541,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
541
541
|
referrerPolicy?: ReferrerPolicy;
|
|
542
542
|
signal?: AbortSignal | null;
|
|
543
543
|
window?: null;
|
|
544
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
545
|
-
onResponse?: (context:
|
|
546
|
-
onSuccess?: (context:
|
|
547
|
-
onError?: (context:
|
|
548
|
-
onRetry?: (response:
|
|
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
549
|
hookOptions?: {
|
|
550
550
|
cloneResponse?: boolean;
|
|
551
551
|
};
|
|
552
552
|
timeout?: number;
|
|
553
|
-
customFetchImpl?:
|
|
554
|
-
plugins?:
|
|
553
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
554
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
555
555
|
baseURL?: string;
|
|
556
556
|
throw?: boolean;
|
|
557
557
|
auth?: {
|
|
@@ -574,17 +574,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
574
574
|
params?: Record<string, any>;
|
|
575
575
|
duplex?: "full" | "half";
|
|
576
576
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
577
|
-
retry?:
|
|
577
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
578
578
|
retryAttempt?: number;
|
|
579
|
-
output?:
|
|
580
|
-
errorSchema?:
|
|
579
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
580
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
581
581
|
disableValidation?: boolean;
|
|
582
|
-
}>(data_0:
|
|
582
|
+
}>(data_0: better_auth13.Prettify<{
|
|
583
583
|
code: string;
|
|
584
584
|
trustDevice?: boolean | undefined;
|
|
585
585
|
} & {
|
|
586
586
|
fetchOptions?: FetchOptions;
|
|
587
|
-
}>, data_1?: FetchOptions) => Promise<
|
|
587
|
+
}>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
588
588
|
token: string;
|
|
589
589
|
user: {
|
|
590
590
|
id: string;
|
|
@@ -603,16 +603,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
603
603
|
} & {
|
|
604
604
|
passkey: {
|
|
605
605
|
generateRegisterOptions: <FetchOptions extends {
|
|
606
|
-
|
|
606
|
+
cache?: RequestCache;
|
|
607
|
+
credentials?: RequestCredentials;
|
|
607
608
|
headers?: HeadersInit & (HeadersInit | {
|
|
608
609
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
609
610
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
610
611
|
authorization: "Bearer" | "Basic";
|
|
611
612
|
});
|
|
612
|
-
cache?: RequestCache;
|
|
613
|
-
credentials?: RequestCredentials;
|
|
614
613
|
integrity?: string;
|
|
615
614
|
keepalive?: boolean;
|
|
615
|
+
method?: string;
|
|
616
616
|
mode?: RequestMode;
|
|
617
617
|
priority?: RequestPriority;
|
|
618
618
|
redirect?: RequestRedirect;
|
|
@@ -620,17 +620,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
620
620
|
referrerPolicy?: ReferrerPolicy;
|
|
621
621
|
signal?: AbortSignal | null;
|
|
622
622
|
window?: null;
|
|
623
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
624
|
-
onResponse?: (context:
|
|
625
|
-
onSuccess?: (context:
|
|
626
|
-
onError?: (context:
|
|
627
|
-
onRetry?: (response:
|
|
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
628
|
hookOptions?: {
|
|
629
629
|
cloneResponse?: boolean;
|
|
630
630
|
};
|
|
631
631
|
timeout?: number;
|
|
632
|
-
customFetchImpl?:
|
|
633
|
-
plugins?:
|
|
632
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
633
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
634
634
|
baseURL?: string;
|
|
635
635
|
throw?: boolean;
|
|
636
636
|
auth?: {
|
|
@@ -653,12 +653,12 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
653
653
|
params?: Record<string, any>;
|
|
654
654
|
duplex?: "full" | "half";
|
|
655
655
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
656
|
-
retry?:
|
|
656
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
657
657
|
retryAttempt?: number;
|
|
658
|
-
output?:
|
|
659
|
-
errorSchema?:
|
|
658
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
659
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
660
660
|
disableValidation?: boolean;
|
|
661
|
-
}>(data_0?:
|
|
661
|
+
}>(data_0?: better_auth13.Prettify<undefined>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<_simplewebauthn_server0.PublicKeyCredentialCreationOptionsJSON, {
|
|
662
662
|
code?: string;
|
|
663
663
|
message?: string;
|
|
664
664
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
@@ -666,16 +666,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
666
666
|
} & {
|
|
667
667
|
passkey: {
|
|
668
668
|
generateAuthenticateOptions: <FetchOptions extends {
|
|
669
|
-
|
|
669
|
+
cache?: RequestCache;
|
|
670
|
+
credentials?: RequestCredentials;
|
|
670
671
|
headers?: HeadersInit & (HeadersInit | {
|
|
671
672
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
672
673
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
673
674
|
authorization: "Bearer" | "Basic";
|
|
674
675
|
});
|
|
675
|
-
cache?: RequestCache;
|
|
676
|
-
credentials?: RequestCredentials;
|
|
677
676
|
integrity?: string;
|
|
678
677
|
keepalive?: boolean;
|
|
678
|
+
method?: string;
|
|
679
679
|
mode?: RequestMode;
|
|
680
680
|
priority?: RequestPriority;
|
|
681
681
|
redirect?: RequestRedirect;
|
|
@@ -683,17 +683,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
683
683
|
referrerPolicy?: ReferrerPolicy;
|
|
684
684
|
signal?: AbortSignal | null;
|
|
685
685
|
window?: null;
|
|
686
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
687
|
-
onResponse?: (context:
|
|
688
|
-
onSuccess?: (context:
|
|
689
|
-
onError?: (context:
|
|
690
|
-
onRetry?: (response:
|
|
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
691
|
hookOptions?: {
|
|
692
692
|
cloneResponse?: boolean;
|
|
693
693
|
};
|
|
694
694
|
timeout?: number;
|
|
695
|
-
customFetchImpl?:
|
|
696
|
-
plugins?:
|
|
695
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
696
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
697
697
|
baseURL?: string;
|
|
698
698
|
throw?: boolean;
|
|
699
699
|
auth?: {
|
|
@@ -713,12 +713,12 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
713
713
|
params?: Record<string, any>;
|
|
714
714
|
duplex?: "full" | "half";
|
|
715
715
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
716
|
-
retry?:
|
|
716
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
717
717
|
retryAttempt?: number;
|
|
718
|
-
output?:
|
|
719
|
-
errorSchema?:
|
|
718
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
719
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
720
720
|
disableValidation?: boolean;
|
|
721
|
-
}>(data_0?:
|
|
721
|
+
}>(data_0?: better_auth13.Prettify<undefined>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<_simplewebauthn_server0.PublicKeyCredentialRequestOptionsJSON, {
|
|
722
722
|
code?: string;
|
|
723
723
|
message?: string;
|
|
724
724
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
@@ -726,16 +726,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
726
726
|
} & {
|
|
727
727
|
passkey: {
|
|
728
728
|
verifyRegistration: <FetchOptions extends {
|
|
729
|
-
|
|
729
|
+
cache?: RequestCache;
|
|
730
|
+
credentials?: RequestCredentials;
|
|
730
731
|
headers?: HeadersInit & (HeadersInit | {
|
|
731
732
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
732
733
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
733
734
|
authorization: "Bearer" | "Basic";
|
|
734
735
|
});
|
|
735
|
-
cache?: RequestCache;
|
|
736
|
-
credentials?: RequestCredentials;
|
|
737
736
|
integrity?: string;
|
|
738
737
|
keepalive?: boolean;
|
|
738
|
+
method?: string;
|
|
739
739
|
mode?: RequestMode;
|
|
740
740
|
priority?: RequestPriority;
|
|
741
741
|
redirect?: RequestRedirect;
|
|
@@ -743,17 +743,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
743
743
|
referrerPolicy?: ReferrerPolicy;
|
|
744
744
|
signal?: AbortSignal | null;
|
|
745
745
|
window?: null;
|
|
746
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
747
|
-
onResponse?: (context:
|
|
748
|
-
onSuccess?: (context:
|
|
749
|
-
onError?: (context:
|
|
750
|
-
onRetry?: (response:
|
|
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
751
|
hookOptions?: {
|
|
752
752
|
cloneResponse?: boolean;
|
|
753
753
|
};
|
|
754
754
|
timeout?: number;
|
|
755
|
-
customFetchImpl?:
|
|
756
|
-
plugins?:
|
|
755
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
756
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
757
757
|
baseURL?: string;
|
|
758
758
|
throw?: boolean;
|
|
759
759
|
auth?: {
|
|
@@ -776,17 +776,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
776
776
|
params?: Record<string, any>;
|
|
777
777
|
duplex?: "full" | "half";
|
|
778
778
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
779
|
-
retry?:
|
|
779
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
780
780
|
retryAttempt?: number;
|
|
781
|
-
output?:
|
|
782
|
-
errorSchema?:
|
|
781
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
782
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
783
783
|
disableValidation?: boolean;
|
|
784
|
-
}>(data_0:
|
|
784
|
+
}>(data_0: better_auth13.Prettify<{
|
|
785
785
|
response: any;
|
|
786
786
|
name?: string | undefined;
|
|
787
787
|
} & {
|
|
788
788
|
fetchOptions?: FetchOptions;
|
|
789
|
-
}>, data_1?: FetchOptions) => Promise<
|
|
789
|
+
}>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<better_auth_plugins_passkey0.Passkey, {
|
|
790
790
|
code?: string;
|
|
791
791
|
message?: string;
|
|
792
792
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
@@ -794,16 +794,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
794
794
|
} & {
|
|
795
795
|
passkey: {
|
|
796
796
|
verifyAuthentication: <FetchOptions extends {
|
|
797
|
-
|
|
797
|
+
cache?: RequestCache;
|
|
798
|
+
credentials?: RequestCredentials;
|
|
798
799
|
headers?: HeadersInit & (HeadersInit | {
|
|
799
800
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
800
801
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
801
802
|
authorization: "Bearer" | "Basic";
|
|
802
803
|
});
|
|
803
|
-
cache?: RequestCache;
|
|
804
|
-
credentials?: RequestCredentials;
|
|
805
804
|
integrity?: string;
|
|
806
805
|
keepalive?: boolean;
|
|
806
|
+
method?: string;
|
|
807
807
|
mode?: RequestMode;
|
|
808
808
|
priority?: RequestPriority;
|
|
809
809
|
redirect?: RequestRedirect;
|
|
@@ -811,17 +811,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
811
811
|
referrerPolicy?: ReferrerPolicy;
|
|
812
812
|
signal?: AbortSignal | null;
|
|
813
813
|
window?: null;
|
|
814
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
815
|
-
onResponse?: (context:
|
|
816
|
-
onSuccess?: (context:
|
|
817
|
-
onError?: (context:
|
|
818
|
-
onRetry?: (response:
|
|
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
819
|
hookOptions?: {
|
|
820
820
|
cloneResponse?: boolean;
|
|
821
821
|
};
|
|
822
822
|
timeout?: number;
|
|
823
|
-
customFetchImpl?:
|
|
824
|
-
plugins?:
|
|
823
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
824
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
825
825
|
baseURL?: string;
|
|
826
826
|
throw?: boolean;
|
|
827
827
|
auth?: {
|
|
@@ -843,16 +843,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
843
843
|
params?: Record<string, any>;
|
|
844
844
|
duplex?: "full" | "half";
|
|
845
845
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
846
|
-
retry?:
|
|
846
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
847
847
|
retryAttempt?: number;
|
|
848
|
-
output?:
|
|
849
|
-
errorSchema?:
|
|
848
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
849
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
850
850
|
disableValidation?: boolean;
|
|
851
|
-
}>(data_0:
|
|
851
|
+
}>(data_0: better_auth13.Prettify<{
|
|
852
852
|
response: _simplewebauthn_server0.AuthenticationResponseJSON;
|
|
853
853
|
} & {
|
|
854
854
|
fetchOptions?: FetchOptions;
|
|
855
|
-
}>, data_1?: FetchOptions) => Promise<
|
|
855
|
+
}>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
856
856
|
session: {
|
|
857
857
|
id: string;
|
|
858
858
|
createdAt: Date;
|
|
@@ -871,16 +871,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
871
871
|
} & {
|
|
872
872
|
passkey: {
|
|
873
873
|
listUserPasskeys: <FetchOptions extends {
|
|
874
|
-
|
|
874
|
+
cache?: RequestCache;
|
|
875
|
+
credentials?: RequestCredentials;
|
|
875
876
|
headers?: HeadersInit & (HeadersInit | {
|
|
876
877
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
877
878
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
878
879
|
authorization: "Bearer" | "Basic";
|
|
879
880
|
});
|
|
880
|
-
cache?: RequestCache;
|
|
881
|
-
credentials?: RequestCredentials;
|
|
882
881
|
integrity?: string;
|
|
883
882
|
keepalive?: boolean;
|
|
883
|
+
method?: string;
|
|
884
884
|
mode?: RequestMode;
|
|
885
885
|
priority?: RequestPriority;
|
|
886
886
|
redirect?: RequestRedirect;
|
|
@@ -888,17 +888,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
888
888
|
referrerPolicy?: ReferrerPolicy;
|
|
889
889
|
signal?: AbortSignal | null;
|
|
890
890
|
window?: null;
|
|
891
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
892
|
-
onResponse?: (context:
|
|
893
|
-
onSuccess?: (context:
|
|
894
|
-
onError?: (context:
|
|
895
|
-
onRetry?: (response:
|
|
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
896
|
hookOptions?: {
|
|
897
897
|
cloneResponse?: boolean;
|
|
898
898
|
};
|
|
899
899
|
timeout?: number;
|
|
900
|
-
customFetchImpl?:
|
|
901
|
-
plugins?:
|
|
900
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
901
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
902
902
|
baseURL?: string;
|
|
903
903
|
throw?: boolean;
|
|
904
904
|
auth?: {
|
|
@@ -918,12 +918,12 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
918
918
|
params?: Record<string, any>;
|
|
919
919
|
duplex?: "full" | "half";
|
|
920
920
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
921
|
-
retry?:
|
|
921
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
922
922
|
retryAttempt?: number;
|
|
923
|
-
output?:
|
|
924
|
-
errorSchema?:
|
|
923
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
924
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
925
925
|
disableValidation?: boolean;
|
|
926
|
-
}>(data_0?:
|
|
926
|
+
}>(data_0?: better_auth13.Prettify<undefined>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<better_auth_plugins_passkey0.Passkey[], {
|
|
927
927
|
code?: string;
|
|
928
928
|
message?: string;
|
|
929
929
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
@@ -931,16 +931,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
931
931
|
} & {
|
|
932
932
|
passkey: {
|
|
933
933
|
deletePasskey: <FetchOptions extends {
|
|
934
|
-
|
|
934
|
+
cache?: RequestCache;
|
|
935
|
+
credentials?: RequestCredentials;
|
|
935
936
|
headers?: HeadersInit & (HeadersInit | {
|
|
936
937
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
937
938
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
938
939
|
authorization: "Bearer" | "Basic";
|
|
939
940
|
});
|
|
940
|
-
cache?: RequestCache;
|
|
941
|
-
credentials?: RequestCredentials;
|
|
942
941
|
integrity?: string;
|
|
943
942
|
keepalive?: boolean;
|
|
943
|
+
method?: string;
|
|
944
944
|
mode?: RequestMode;
|
|
945
945
|
priority?: RequestPriority;
|
|
946
946
|
redirect?: RequestRedirect;
|
|
@@ -948,17 +948,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
948
948
|
referrerPolicy?: ReferrerPolicy;
|
|
949
949
|
signal?: AbortSignal | null;
|
|
950
950
|
window?: null;
|
|
951
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
952
|
-
onResponse?: (context:
|
|
953
|
-
onSuccess?: (context:
|
|
954
|
-
onError?: (context:
|
|
955
|
-
onRetry?: (response:
|
|
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
956
|
hookOptions?: {
|
|
957
957
|
cloneResponse?: boolean;
|
|
958
958
|
};
|
|
959
959
|
timeout?: number;
|
|
960
|
-
customFetchImpl?:
|
|
961
|
-
plugins?:
|
|
960
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
961
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
962
962
|
baseURL?: string;
|
|
963
963
|
throw?: boolean;
|
|
964
964
|
auth?: {
|
|
@@ -980,16 +980,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
980
980
|
params?: Record<string, any>;
|
|
981
981
|
duplex?: "full" | "half";
|
|
982
982
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
983
|
-
retry?:
|
|
983
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
984
984
|
retryAttempt?: number;
|
|
985
|
-
output?:
|
|
986
|
-
errorSchema?:
|
|
985
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
986
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
987
987
|
disableValidation?: boolean;
|
|
988
|
-
}>(data_0:
|
|
988
|
+
}>(data_0: better_auth13.Prettify<{
|
|
989
989
|
id: string;
|
|
990
990
|
} & {
|
|
991
991
|
fetchOptions?: FetchOptions;
|
|
992
|
-
}>, data_1?: FetchOptions) => Promise<
|
|
992
|
+
}>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<never, {
|
|
993
993
|
code?: string;
|
|
994
994
|
message?: string;
|
|
995
995
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
@@ -997,16 +997,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
997
997
|
} & {
|
|
998
998
|
passkey: {
|
|
999
999
|
updatePasskey: <FetchOptions extends {
|
|
1000
|
-
|
|
1000
|
+
cache?: RequestCache;
|
|
1001
|
+
credentials?: RequestCredentials;
|
|
1001
1002
|
headers?: HeadersInit & (HeadersInit | {
|
|
1002
1003
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
1003
1004
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
1004
1005
|
authorization: "Bearer" | "Basic";
|
|
1005
1006
|
});
|
|
1006
|
-
cache?: RequestCache;
|
|
1007
|
-
credentials?: RequestCredentials;
|
|
1008
1007
|
integrity?: string;
|
|
1009
1008
|
keepalive?: boolean;
|
|
1009
|
+
method?: string;
|
|
1010
1010
|
mode?: RequestMode;
|
|
1011
1011
|
priority?: RequestPriority;
|
|
1012
1012
|
redirect?: RequestRedirect;
|
|
@@ -1014,17 +1014,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1014
1014
|
referrerPolicy?: ReferrerPolicy;
|
|
1015
1015
|
signal?: AbortSignal | null;
|
|
1016
1016
|
window?: null;
|
|
1017
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
1018
|
-
onResponse?: (context:
|
|
1019
|
-
onSuccess?: (context:
|
|
1020
|
-
onError?: (context:
|
|
1021
|
-
onRetry?: (response:
|
|
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
1022
|
hookOptions?: {
|
|
1023
1023
|
cloneResponse?: boolean;
|
|
1024
1024
|
};
|
|
1025
1025
|
timeout?: number;
|
|
1026
|
-
customFetchImpl?:
|
|
1027
|
-
plugins?:
|
|
1026
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
1027
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
1028
1028
|
baseURL?: string;
|
|
1029
1029
|
throw?: boolean;
|
|
1030
1030
|
auth?: {
|
|
@@ -1047,17 +1047,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1047
1047
|
params?: Record<string, any>;
|
|
1048
1048
|
duplex?: "full" | "half";
|
|
1049
1049
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
1050
|
-
retry?:
|
|
1050
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
1051
1051
|
retryAttempt?: number;
|
|
1052
|
-
output?:
|
|
1053
|
-
errorSchema?:
|
|
1052
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
1053
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
1054
1054
|
disableValidation?: boolean;
|
|
1055
|
-
}>(data_0:
|
|
1055
|
+
}>(data_0: better_auth13.Prettify<{
|
|
1056
1056
|
id: string;
|
|
1057
1057
|
name: string;
|
|
1058
1058
|
} & {
|
|
1059
1059
|
fetchOptions?: FetchOptions;
|
|
1060
|
-
}>, data_1?: FetchOptions) => Promise<
|
|
1060
|
+
}>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
1061
1061
|
passkey: better_auth_plugins_passkey0.Passkey;
|
|
1062
1062
|
}, {
|
|
1063
1063
|
code?: string;
|
|
@@ -1067,16 +1067,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1067
1067
|
} & {
|
|
1068
1068
|
signIn: {
|
|
1069
1069
|
magicLink: <FetchOptions extends {
|
|
1070
|
-
|
|
1070
|
+
cache?: RequestCache;
|
|
1071
|
+
credentials?: RequestCredentials;
|
|
1071
1072
|
headers?: HeadersInit & (HeadersInit | {
|
|
1072
1073
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
1073
1074
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
1074
1075
|
authorization: "Bearer" | "Basic";
|
|
1075
1076
|
});
|
|
1076
|
-
cache?: RequestCache;
|
|
1077
|
-
credentials?: RequestCredentials;
|
|
1078
1077
|
integrity?: string;
|
|
1079
1078
|
keepalive?: boolean;
|
|
1079
|
+
method?: string;
|
|
1080
1080
|
mode?: RequestMode;
|
|
1081
1081
|
priority?: RequestPriority;
|
|
1082
1082
|
redirect?: RequestRedirect;
|
|
@@ -1084,17 +1084,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1084
1084
|
referrerPolicy?: ReferrerPolicy;
|
|
1085
1085
|
signal?: AbortSignal | null;
|
|
1086
1086
|
window?: null;
|
|
1087
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
1088
|
-
onResponse?: (context:
|
|
1089
|
-
onSuccess?: (context:
|
|
1090
|
-
onError?: (context:
|
|
1091
|
-
onRetry?: (response:
|
|
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
1092
|
hookOptions?: {
|
|
1093
1093
|
cloneResponse?: boolean;
|
|
1094
1094
|
};
|
|
1095
1095
|
timeout?: number;
|
|
1096
|
-
customFetchImpl?:
|
|
1097
|
-
plugins?:
|
|
1096
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
1097
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
1098
1098
|
baseURL?: string;
|
|
1099
1099
|
throw?: boolean;
|
|
1100
1100
|
auth?: {
|
|
@@ -1120,12 +1120,12 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1120
1120
|
params?: Record<string, any>;
|
|
1121
1121
|
duplex?: "full" | "half";
|
|
1122
1122
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
1123
|
-
retry?:
|
|
1123
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
1124
1124
|
retryAttempt?: number;
|
|
1125
|
-
output?:
|
|
1126
|
-
errorSchema?:
|
|
1125
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
1126
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
1127
1127
|
disableValidation?: boolean;
|
|
1128
|
-
}>(data_0:
|
|
1128
|
+
}>(data_0: better_auth13.Prettify<{
|
|
1129
1129
|
email: string;
|
|
1130
1130
|
name?: string | undefined;
|
|
1131
1131
|
callbackURL?: string | undefined;
|
|
@@ -1133,7 +1133,7 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1133
1133
|
errorCallbackURL?: string | undefined;
|
|
1134
1134
|
} & {
|
|
1135
1135
|
fetchOptions?: FetchOptions;
|
|
1136
|
-
}>, data_1?: FetchOptions) => Promise<
|
|
1136
|
+
}>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
1137
1137
|
status: boolean;
|
|
1138
1138
|
}, {
|
|
1139
1139
|
code?: string;
|
|
@@ -1143,16 +1143,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1143
1143
|
} & {
|
|
1144
1144
|
magicLink: {
|
|
1145
1145
|
verify: <FetchOptions extends {
|
|
1146
|
-
|
|
1146
|
+
cache?: RequestCache;
|
|
1147
|
+
credentials?: RequestCredentials;
|
|
1147
1148
|
headers?: HeadersInit & (HeadersInit | {
|
|
1148
1149
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
1149
1150
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
1150
1151
|
authorization: "Bearer" | "Basic";
|
|
1151
1152
|
});
|
|
1152
|
-
cache?: RequestCache;
|
|
1153
|
-
credentials?: RequestCredentials;
|
|
1154
1153
|
integrity?: string;
|
|
1155
1154
|
keepalive?: boolean;
|
|
1155
|
+
method?: string;
|
|
1156
1156
|
mode?: RequestMode;
|
|
1157
1157
|
priority?: RequestPriority;
|
|
1158
1158
|
redirect?: RequestRedirect;
|
|
@@ -1160,17 +1160,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1160
1160
|
referrerPolicy?: ReferrerPolicy;
|
|
1161
1161
|
signal?: AbortSignal | null;
|
|
1162
1162
|
window?: null;
|
|
1163
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
1164
|
-
onResponse?: (context:
|
|
1165
|
-
onSuccess?: (context:
|
|
1166
|
-
onError?: (context:
|
|
1167
|
-
onRetry?: (response:
|
|
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
1168
|
hookOptions?: {
|
|
1169
1169
|
cloneResponse?: boolean;
|
|
1170
1170
|
};
|
|
1171
1171
|
timeout?: number;
|
|
1172
|
-
customFetchImpl?:
|
|
1173
|
-
plugins?:
|
|
1172
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
1173
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
1174
1174
|
baseURL?: string;
|
|
1175
1175
|
throw?: boolean;
|
|
1176
1176
|
auth?: {
|
|
@@ -1195,12 +1195,12 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1195
1195
|
params?: Record<string, any>;
|
|
1196
1196
|
duplex?: "full" | "half";
|
|
1197
1197
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
1198
|
-
retry?:
|
|
1198
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
1199
1199
|
retryAttempt?: number;
|
|
1200
|
-
output?:
|
|
1201
|
-
errorSchema?:
|
|
1200
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
1201
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
1202
1202
|
disableValidation?: boolean;
|
|
1203
|
-
}>(data_0?:
|
|
1203
|
+
}>(data_0?: better_auth13.Prettify<undefined>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
1204
1204
|
token: string;
|
|
1205
1205
|
user: {
|
|
1206
1206
|
id: string;
|
|
@@ -1219,16 +1219,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1219
1219
|
} & {
|
|
1220
1220
|
signIn: {
|
|
1221
1221
|
social: <FetchOptions extends {
|
|
1222
|
-
|
|
1222
|
+
cache?: RequestCache;
|
|
1223
|
+
credentials?: RequestCredentials;
|
|
1223
1224
|
headers?: HeadersInit & (HeadersInit | {
|
|
1224
1225
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
1225
1226
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
1226
1227
|
authorization: "Bearer" | "Basic";
|
|
1227
1228
|
});
|
|
1228
|
-
cache?: RequestCache;
|
|
1229
|
-
credentials?: RequestCredentials;
|
|
1230
1229
|
integrity?: string;
|
|
1231
1230
|
keepalive?: boolean;
|
|
1231
|
+
method?: string;
|
|
1232
1232
|
mode?: RequestMode;
|
|
1233
1233
|
priority?: RequestPriority;
|
|
1234
1234
|
redirect?: RequestRedirect;
|
|
@@ -1236,17 +1236,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1236
1236
|
referrerPolicy?: ReferrerPolicy;
|
|
1237
1237
|
signal?: AbortSignal | null;
|
|
1238
1238
|
window?: null;
|
|
1239
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
1240
|
-
onResponse?: (context:
|
|
1241
|
-
onSuccess?: (context:
|
|
1242
|
-
onError?: (context:
|
|
1243
|
-
onRetry?: (response:
|
|
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
1244
|
hookOptions?: {
|
|
1245
1245
|
cloneResponse?: boolean;
|
|
1246
1246
|
};
|
|
1247
1247
|
timeout?: number;
|
|
1248
|
-
customFetchImpl?:
|
|
1249
|
-
plugins?:
|
|
1248
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
1249
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
1250
1250
|
baseURL?: string;
|
|
1251
1251
|
throw?: boolean;
|
|
1252
1252
|
auth?: {
|
|
@@ -1282,12 +1282,12 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1282
1282
|
params?: Record<string, any>;
|
|
1283
1283
|
duplex?: "full" | "half";
|
|
1284
1284
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
1285
|
-
retry?:
|
|
1285
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
1286
1286
|
retryAttempt?: number;
|
|
1287
|
-
output?:
|
|
1288
|
-
errorSchema?:
|
|
1287
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
1288
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
1289
1289
|
disableValidation?: boolean;
|
|
1290
|
-
}>(data_0:
|
|
1290
|
+
}>(data_0: better_auth13.Prettify<{
|
|
1291
1291
|
provider: unknown;
|
|
1292
1292
|
callbackURL?: string | undefined;
|
|
1293
1293
|
newUserCallbackURL?: string | undefined;
|
|
@@ -1305,7 +1305,7 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1305
1305
|
loginHint?: string | undefined;
|
|
1306
1306
|
} & {
|
|
1307
1307
|
fetchOptions?: FetchOptions;
|
|
1308
|
-
}>, data_1?: FetchOptions) => Promise<
|
|
1308
|
+
}>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<NonNullable<{
|
|
1309
1309
|
redirect: boolean;
|
|
1310
1310
|
token: string;
|
|
1311
1311
|
url: undefined;
|
|
@@ -1328,16 +1328,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1328
1328
|
};
|
|
1329
1329
|
} & {
|
|
1330
1330
|
signOut: <FetchOptions extends {
|
|
1331
|
-
|
|
1331
|
+
cache?: RequestCache;
|
|
1332
|
+
credentials?: RequestCredentials;
|
|
1332
1333
|
headers?: HeadersInit & (HeadersInit | {
|
|
1333
1334
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
1334
1335
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
1335
1336
|
authorization: "Bearer" | "Basic";
|
|
1336
1337
|
});
|
|
1337
|
-
cache?: RequestCache;
|
|
1338
|
-
credentials?: RequestCredentials;
|
|
1339
1338
|
integrity?: string;
|
|
1340
1339
|
keepalive?: boolean;
|
|
1340
|
+
method?: string;
|
|
1341
1341
|
mode?: RequestMode;
|
|
1342
1342
|
priority?: RequestPriority;
|
|
1343
1343
|
redirect?: RequestRedirect;
|
|
@@ -1345,17 +1345,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1345
1345
|
referrerPolicy?: ReferrerPolicy;
|
|
1346
1346
|
signal?: AbortSignal | null;
|
|
1347
1347
|
window?: null;
|
|
1348
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
1349
|
-
onResponse?: (context:
|
|
1350
|
-
onSuccess?: (context:
|
|
1351
|
-
onError?: (context:
|
|
1352
|
-
onRetry?: (response:
|
|
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
1353
|
hookOptions?: {
|
|
1354
1354
|
cloneResponse?: boolean;
|
|
1355
1355
|
};
|
|
1356
1356
|
timeout?: number;
|
|
1357
|
-
customFetchImpl?:
|
|
1358
|
-
plugins?:
|
|
1357
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
1358
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
1359
1359
|
baseURL?: string;
|
|
1360
1360
|
throw?: boolean;
|
|
1361
1361
|
auth?: {
|
|
@@ -1375,12 +1375,12 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1375
1375
|
params?: Record<string, any>;
|
|
1376
1376
|
duplex?: "full" | "half";
|
|
1377
1377
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
1378
|
-
retry?:
|
|
1378
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
1379
1379
|
retryAttempt?: number;
|
|
1380
|
-
output?:
|
|
1381
|
-
errorSchema?:
|
|
1380
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
1381
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
1382
1382
|
disableValidation?: boolean;
|
|
1383
|
-
}>(data_0?:
|
|
1383
|
+
}>(data_0?: better_auth13.Prettify<undefined>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
1384
1384
|
success: boolean;
|
|
1385
1385
|
}, {
|
|
1386
1386
|
code?: string;
|
|
@@ -1389,16 +1389,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1389
1389
|
} & {
|
|
1390
1390
|
signUp: {
|
|
1391
1391
|
email: <FetchOptions extends {
|
|
1392
|
-
|
|
1392
|
+
cache?: RequestCache;
|
|
1393
|
+
credentials?: RequestCredentials;
|
|
1393
1394
|
headers?: HeadersInit & (HeadersInit | {
|
|
1394
1395
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
1395
1396
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
1396
1397
|
authorization: "Bearer" | "Basic";
|
|
1397
1398
|
});
|
|
1398
|
-
cache?: RequestCache;
|
|
1399
|
-
credentials?: RequestCredentials;
|
|
1400
1399
|
integrity?: string;
|
|
1401
1400
|
keepalive?: boolean;
|
|
1401
|
+
method?: string;
|
|
1402
1402
|
mode?: RequestMode;
|
|
1403
1403
|
priority?: RequestPriority;
|
|
1404
1404
|
redirect?: RequestRedirect;
|
|
@@ -1406,17 +1406,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1406
1406
|
referrerPolicy?: ReferrerPolicy;
|
|
1407
1407
|
signal?: AbortSignal | null;
|
|
1408
1408
|
window?: null;
|
|
1409
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
1410
|
-
onResponse?: (context:
|
|
1411
|
-
onSuccess?: (context:
|
|
1412
|
-
onError?: (context:
|
|
1413
|
-
onRetry?: (response:
|
|
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
1414
|
hookOptions?: {
|
|
1415
1415
|
cloneResponse?: boolean;
|
|
1416
1416
|
};
|
|
1417
1417
|
timeout?: number;
|
|
1418
|
-
customFetchImpl?:
|
|
1419
|
-
plugins?:
|
|
1418
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
1419
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
1420
1420
|
baseURL?: string;
|
|
1421
1421
|
throw?: boolean;
|
|
1422
1422
|
auth?: {
|
|
@@ -1443,19 +1443,19 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1443
1443
|
params?: Record<string, any>;
|
|
1444
1444
|
duplex?: "full" | "half";
|
|
1445
1445
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
1446
|
-
retry?:
|
|
1446
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
1447
1447
|
retryAttempt?: number;
|
|
1448
|
-
output?:
|
|
1449
|
-
errorSchema?:
|
|
1448
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
1449
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
1450
1450
|
disableValidation?: boolean;
|
|
1451
|
-
}>(data_0:
|
|
1451
|
+
}>(data_0: better_auth13.Prettify<{
|
|
1452
1452
|
email: string;
|
|
1453
1453
|
name: string;
|
|
1454
1454
|
password: string;
|
|
1455
1455
|
image?: string;
|
|
1456
1456
|
callbackURL?: string;
|
|
1457
1457
|
fetchOptions?: FetchOptions;
|
|
1458
|
-
} & {} & {}>, data_1?: FetchOptions) => Promise<
|
|
1458
|
+
} & {} & {}>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<NonNullable<{
|
|
1459
1459
|
token: null;
|
|
1460
1460
|
user: {
|
|
1461
1461
|
id: string;
|
|
@@ -1485,16 +1485,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1485
1485
|
} & {
|
|
1486
1486
|
signIn: {
|
|
1487
1487
|
email: <FetchOptions extends {
|
|
1488
|
-
|
|
1488
|
+
cache?: RequestCache;
|
|
1489
|
+
credentials?: RequestCredentials;
|
|
1489
1490
|
headers?: HeadersInit & (HeadersInit | {
|
|
1490
1491
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
1491
1492
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
1492
1493
|
authorization: "Bearer" | "Basic";
|
|
1493
1494
|
});
|
|
1494
|
-
cache?: RequestCache;
|
|
1495
|
-
credentials?: RequestCredentials;
|
|
1496
1495
|
integrity?: string;
|
|
1497
1496
|
keepalive?: boolean;
|
|
1497
|
+
method?: string;
|
|
1498
1498
|
mode?: RequestMode;
|
|
1499
1499
|
priority?: RequestPriority;
|
|
1500
1500
|
redirect?: RequestRedirect;
|
|
@@ -1502,17 +1502,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1502
1502
|
referrerPolicy?: ReferrerPolicy;
|
|
1503
1503
|
signal?: AbortSignal | null;
|
|
1504
1504
|
window?: null;
|
|
1505
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
1506
|
-
onResponse?: (context:
|
|
1507
|
-
onSuccess?: (context:
|
|
1508
|
-
onError?: (context:
|
|
1509
|
-
onRetry?: (response:
|
|
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
1510
|
hookOptions?: {
|
|
1511
1511
|
cloneResponse?: boolean;
|
|
1512
1512
|
};
|
|
1513
1513
|
timeout?: number;
|
|
1514
|
-
customFetchImpl?:
|
|
1515
|
-
plugins?:
|
|
1514
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
1515
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
1516
1516
|
baseURL?: string;
|
|
1517
1517
|
throw?: boolean;
|
|
1518
1518
|
auth?: {
|
|
@@ -1537,19 +1537,19 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1537
1537
|
params?: Record<string, any>;
|
|
1538
1538
|
duplex?: "full" | "half";
|
|
1539
1539
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
1540
|
-
retry?:
|
|
1540
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
1541
1541
|
retryAttempt?: number;
|
|
1542
|
-
output?:
|
|
1543
|
-
errorSchema?:
|
|
1542
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
1543
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
1544
1544
|
disableValidation?: boolean;
|
|
1545
|
-
}>(data_0:
|
|
1545
|
+
}>(data_0: better_auth13.Prettify<{
|
|
1546
1546
|
email: string;
|
|
1547
1547
|
password: string;
|
|
1548
1548
|
callbackURL?: string | undefined;
|
|
1549
1549
|
rememberMe?: boolean | undefined;
|
|
1550
1550
|
} & {
|
|
1551
1551
|
fetchOptions?: FetchOptions;
|
|
1552
|
-
}>, data_1?: FetchOptions) => Promise<
|
|
1552
|
+
}>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
1553
1553
|
redirect: boolean;
|
|
1554
1554
|
token: string;
|
|
1555
1555
|
url: string | undefined;
|
|
@@ -1569,16 +1569,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1569
1569
|
};
|
|
1570
1570
|
} & {
|
|
1571
1571
|
forgetPassword: <FetchOptions extends {
|
|
1572
|
-
|
|
1572
|
+
cache?: RequestCache;
|
|
1573
|
+
credentials?: RequestCredentials;
|
|
1573
1574
|
headers?: HeadersInit & (HeadersInit | {
|
|
1574
1575
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
1575
1576
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
1576
1577
|
authorization: "Bearer" | "Basic";
|
|
1577
1578
|
});
|
|
1578
|
-
cache?: RequestCache;
|
|
1579
|
-
credentials?: RequestCredentials;
|
|
1580
1579
|
integrity?: string;
|
|
1581
1580
|
keepalive?: boolean;
|
|
1581
|
+
method?: string;
|
|
1582
1582
|
mode?: RequestMode;
|
|
1583
1583
|
priority?: RequestPriority;
|
|
1584
1584
|
redirect?: RequestRedirect;
|
|
@@ -1586,17 +1586,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1586
1586
|
referrerPolicy?: ReferrerPolicy;
|
|
1587
1587
|
signal?: AbortSignal | null;
|
|
1588
1588
|
window?: null;
|
|
1589
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
1590
|
-
onResponse?: (context:
|
|
1591
|
-
onSuccess?: (context:
|
|
1592
|
-
onError?: (context:
|
|
1593
|
-
onRetry?: (response:
|
|
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
1594
|
hookOptions?: {
|
|
1595
1595
|
cloneResponse?: boolean;
|
|
1596
1596
|
};
|
|
1597
1597
|
timeout?: number;
|
|
1598
|
-
customFetchImpl?:
|
|
1599
|
-
plugins?:
|
|
1598
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
1599
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
1600
1600
|
baseURL?: string;
|
|
1601
1601
|
throw?: boolean;
|
|
1602
1602
|
auth?: {
|
|
@@ -1619,17 +1619,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1619
1619
|
params?: Record<string, any>;
|
|
1620
1620
|
duplex?: "full" | "half";
|
|
1621
1621
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
1622
|
-
retry?:
|
|
1622
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
1623
1623
|
retryAttempt?: number;
|
|
1624
|
-
output?:
|
|
1625
|
-
errorSchema?:
|
|
1624
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
1625
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
1626
1626
|
disableValidation?: boolean;
|
|
1627
|
-
}>(data_0:
|
|
1627
|
+
}>(data_0: better_auth13.Prettify<{
|
|
1628
1628
|
email: string;
|
|
1629
1629
|
redirectTo?: string | undefined;
|
|
1630
1630
|
} & {
|
|
1631
1631
|
fetchOptions?: FetchOptions;
|
|
1632
|
-
}>, data_1?: FetchOptions) => Promise<
|
|
1632
|
+
}>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
1633
1633
|
status: boolean;
|
|
1634
1634
|
}, {
|
|
1635
1635
|
code?: string;
|
|
@@ -1637,16 +1637,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1637
1637
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1638
1638
|
} & {
|
|
1639
1639
|
resetPassword: <FetchOptions extends {
|
|
1640
|
-
|
|
1640
|
+
cache?: RequestCache;
|
|
1641
|
+
credentials?: RequestCredentials;
|
|
1641
1642
|
headers?: HeadersInit & (HeadersInit | {
|
|
1642
1643
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
1643
1644
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
1644
1645
|
authorization: "Bearer" | "Basic";
|
|
1645
1646
|
});
|
|
1646
|
-
cache?: RequestCache;
|
|
1647
|
-
credentials?: RequestCredentials;
|
|
1648
1647
|
integrity?: string;
|
|
1649
1648
|
keepalive?: boolean;
|
|
1649
|
+
method?: string;
|
|
1650
1650
|
mode?: RequestMode;
|
|
1651
1651
|
priority?: RequestPriority;
|
|
1652
1652
|
redirect?: RequestRedirect;
|
|
@@ -1654,17 +1654,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1654
1654
|
referrerPolicy?: ReferrerPolicy;
|
|
1655
1655
|
signal?: AbortSignal | null;
|
|
1656
1656
|
window?: null;
|
|
1657
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
1658
|
-
onResponse?: (context:
|
|
1659
|
-
onSuccess?: (context:
|
|
1660
|
-
onError?: (context:
|
|
1661
|
-
onRetry?: (response:
|
|
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
1662
|
hookOptions?: {
|
|
1663
1663
|
cloneResponse?: boolean;
|
|
1664
1664
|
};
|
|
1665
1665
|
timeout?: number;
|
|
1666
|
-
customFetchImpl?:
|
|
1667
|
-
plugins?:
|
|
1666
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
1667
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
1668
1668
|
baseURL?: string;
|
|
1669
1669
|
throw?: boolean;
|
|
1670
1670
|
auth?: {
|
|
@@ -1689,17 +1689,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1689
1689
|
params?: Record<string, any>;
|
|
1690
1690
|
duplex?: "full" | "half";
|
|
1691
1691
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
1692
|
-
retry?:
|
|
1692
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
1693
1693
|
retryAttempt?: number;
|
|
1694
|
-
output?:
|
|
1695
|
-
errorSchema?:
|
|
1694
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
1695
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
1696
1696
|
disableValidation?: boolean;
|
|
1697
|
-
}>(data_0:
|
|
1697
|
+
}>(data_0: better_auth13.Prettify<{
|
|
1698
1698
|
newPassword: string;
|
|
1699
1699
|
token?: string | undefined;
|
|
1700
1700
|
} & {
|
|
1701
1701
|
fetchOptions?: FetchOptions;
|
|
1702
|
-
}>, data_1?: FetchOptions) => Promise<
|
|
1702
|
+
}>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
1703
1703
|
status: boolean;
|
|
1704
1704
|
}, {
|
|
1705
1705
|
code?: string;
|
|
@@ -1707,16 +1707,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1707
1707
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1708
1708
|
} & {
|
|
1709
1709
|
verifyEmail: <FetchOptions extends {
|
|
1710
|
-
|
|
1710
|
+
cache?: RequestCache;
|
|
1711
|
+
credentials?: RequestCredentials;
|
|
1711
1712
|
headers?: HeadersInit & (HeadersInit | {
|
|
1712
1713
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
1713
1714
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
1714
1715
|
authorization: "Bearer" | "Basic";
|
|
1715
1716
|
});
|
|
1716
|
-
cache?: RequestCache;
|
|
1717
|
-
credentials?: RequestCredentials;
|
|
1718
1717
|
integrity?: string;
|
|
1719
1718
|
keepalive?: boolean;
|
|
1719
|
+
method?: string;
|
|
1720
1720
|
mode?: RequestMode;
|
|
1721
1721
|
priority?: RequestPriority;
|
|
1722
1722
|
redirect?: RequestRedirect;
|
|
@@ -1724,17 +1724,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1724
1724
|
referrerPolicy?: ReferrerPolicy;
|
|
1725
1725
|
signal?: AbortSignal | null;
|
|
1726
1726
|
window?: null;
|
|
1727
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
1728
|
-
onResponse?: (context:
|
|
1729
|
-
onSuccess?: (context:
|
|
1730
|
-
onError?: (context:
|
|
1731
|
-
onRetry?: (response:
|
|
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
1732
|
hookOptions?: {
|
|
1733
1733
|
cloneResponse?: boolean;
|
|
1734
1734
|
};
|
|
1735
1735
|
timeout?: number;
|
|
1736
|
-
customFetchImpl?:
|
|
1737
|
-
plugins?:
|
|
1736
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
1737
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
1738
1738
|
baseURL?: string;
|
|
1739
1739
|
throw?: boolean;
|
|
1740
1740
|
auth?: {
|
|
@@ -1757,12 +1757,12 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1757
1757
|
params?: Record<string, any>;
|
|
1758
1758
|
duplex?: "full" | "half";
|
|
1759
1759
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
1760
|
-
retry?:
|
|
1760
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
1761
1761
|
retryAttempt?: number;
|
|
1762
|
-
output?:
|
|
1763
|
-
errorSchema?:
|
|
1762
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
1763
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
1764
1764
|
disableValidation?: boolean;
|
|
1765
|
-
}>(data_0?:
|
|
1765
|
+
}>(data_0?: better_auth13.Prettify<undefined>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<NonNullable<void | {
|
|
1766
1766
|
status: boolean;
|
|
1767
1767
|
user: {
|
|
1768
1768
|
id: string;
|
|
@@ -1782,16 +1782,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1782
1782
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1783
1783
|
} & {
|
|
1784
1784
|
sendVerificationEmail: <FetchOptions extends {
|
|
1785
|
-
|
|
1785
|
+
cache?: RequestCache;
|
|
1786
|
+
credentials?: RequestCredentials;
|
|
1786
1787
|
headers?: HeadersInit & (HeadersInit | {
|
|
1787
1788
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
1788
1789
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
1789
1790
|
authorization: "Bearer" | "Basic";
|
|
1790
1791
|
});
|
|
1791
|
-
cache?: RequestCache;
|
|
1792
|
-
credentials?: RequestCredentials;
|
|
1793
1792
|
integrity?: string;
|
|
1794
1793
|
keepalive?: boolean;
|
|
1794
|
+
method?: string;
|
|
1795
1795
|
mode?: RequestMode;
|
|
1796
1796
|
priority?: RequestPriority;
|
|
1797
1797
|
redirect?: RequestRedirect;
|
|
@@ -1799,17 +1799,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1799
1799
|
referrerPolicy?: ReferrerPolicy;
|
|
1800
1800
|
signal?: AbortSignal | null;
|
|
1801
1801
|
window?: null;
|
|
1802
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
1803
|
-
onResponse?: (context:
|
|
1804
|
-
onSuccess?: (context:
|
|
1805
|
-
onError?: (context:
|
|
1806
|
-
onRetry?: (response:
|
|
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
1807
|
hookOptions?: {
|
|
1808
1808
|
cloneResponse?: boolean;
|
|
1809
1809
|
};
|
|
1810
1810
|
timeout?: number;
|
|
1811
|
-
customFetchImpl?:
|
|
1812
|
-
plugins?:
|
|
1811
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
1812
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
1813
1813
|
baseURL?: string;
|
|
1814
1814
|
throw?: boolean;
|
|
1815
1815
|
auth?: {
|
|
@@ -1832,17 +1832,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1832
1832
|
params?: Record<string, any>;
|
|
1833
1833
|
duplex?: "full" | "half";
|
|
1834
1834
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
1835
|
-
retry?:
|
|
1835
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
1836
1836
|
retryAttempt?: number;
|
|
1837
|
-
output?:
|
|
1838
|
-
errorSchema?:
|
|
1837
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
1838
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
1839
1839
|
disableValidation?: boolean;
|
|
1840
|
-
}>(data_0:
|
|
1840
|
+
}>(data_0: better_auth13.Prettify<{
|
|
1841
1841
|
email: string;
|
|
1842
1842
|
callbackURL?: string | undefined;
|
|
1843
1843
|
} & {
|
|
1844
1844
|
fetchOptions?: FetchOptions;
|
|
1845
|
-
}>, data_1?: FetchOptions) => Promise<
|
|
1845
|
+
}>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
1846
1846
|
status: boolean;
|
|
1847
1847
|
}, {
|
|
1848
1848
|
code?: string;
|
|
@@ -1850,16 +1850,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1850
1850
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1851
1851
|
} & {
|
|
1852
1852
|
changeEmail: <FetchOptions extends {
|
|
1853
|
-
|
|
1853
|
+
cache?: RequestCache;
|
|
1854
|
+
credentials?: RequestCredentials;
|
|
1854
1855
|
headers?: HeadersInit & (HeadersInit | {
|
|
1855
1856
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
1856
1857
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
1857
1858
|
authorization: "Bearer" | "Basic";
|
|
1858
1859
|
});
|
|
1859
|
-
cache?: RequestCache;
|
|
1860
|
-
credentials?: RequestCredentials;
|
|
1861
1860
|
integrity?: string;
|
|
1862
1861
|
keepalive?: boolean;
|
|
1862
|
+
method?: string;
|
|
1863
1863
|
mode?: RequestMode;
|
|
1864
1864
|
priority?: RequestPriority;
|
|
1865
1865
|
redirect?: RequestRedirect;
|
|
@@ -1867,17 +1867,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1867
1867
|
referrerPolicy?: ReferrerPolicy;
|
|
1868
1868
|
signal?: AbortSignal | null;
|
|
1869
1869
|
window?: null;
|
|
1870
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
1871
|
-
onResponse?: (context:
|
|
1872
|
-
onSuccess?: (context:
|
|
1873
|
-
onError?: (context:
|
|
1874
|
-
onRetry?: (response:
|
|
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
1875
|
hookOptions?: {
|
|
1876
1876
|
cloneResponse?: boolean;
|
|
1877
1877
|
};
|
|
1878
1878
|
timeout?: number;
|
|
1879
|
-
customFetchImpl?:
|
|
1880
|
-
plugins?:
|
|
1879
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
1880
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
1881
1881
|
baseURL?: string;
|
|
1882
1882
|
throw?: boolean;
|
|
1883
1883
|
auth?: {
|
|
@@ -1900,17 +1900,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1900
1900
|
params?: Record<string, any>;
|
|
1901
1901
|
duplex?: "full" | "half";
|
|
1902
1902
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
1903
|
-
retry?:
|
|
1903
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
1904
1904
|
retryAttempt?: number;
|
|
1905
|
-
output?:
|
|
1906
|
-
errorSchema?:
|
|
1905
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
1906
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
1907
1907
|
disableValidation?: boolean;
|
|
1908
|
-
}>(data_0:
|
|
1908
|
+
}>(data_0: better_auth13.Prettify<{
|
|
1909
1909
|
newEmail: string;
|
|
1910
1910
|
callbackURL?: string | undefined;
|
|
1911
1911
|
} & {
|
|
1912
1912
|
fetchOptions?: FetchOptions;
|
|
1913
|
-
}>, data_1?: FetchOptions) => Promise<
|
|
1913
|
+
}>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
1914
1914
|
status: boolean;
|
|
1915
1915
|
}, {
|
|
1916
1916
|
code?: string;
|
|
@@ -1918,16 +1918,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1918
1918
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1919
1919
|
} & {
|
|
1920
1920
|
changePassword: <FetchOptions extends {
|
|
1921
|
-
|
|
1921
|
+
cache?: RequestCache;
|
|
1922
|
+
credentials?: RequestCredentials;
|
|
1922
1923
|
headers?: HeadersInit & (HeadersInit | {
|
|
1923
1924
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
1924
1925
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
1925
1926
|
authorization: "Bearer" | "Basic";
|
|
1926
1927
|
});
|
|
1927
|
-
cache?: RequestCache;
|
|
1928
|
-
credentials?: RequestCredentials;
|
|
1929
1928
|
integrity?: string;
|
|
1930
1929
|
keepalive?: boolean;
|
|
1930
|
+
method?: string;
|
|
1931
1931
|
mode?: RequestMode;
|
|
1932
1932
|
priority?: RequestPriority;
|
|
1933
1933
|
redirect?: RequestRedirect;
|
|
@@ -1935,17 +1935,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1935
1935
|
referrerPolicy?: ReferrerPolicy;
|
|
1936
1936
|
signal?: AbortSignal | null;
|
|
1937
1937
|
window?: null;
|
|
1938
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
1939
|
-
onResponse?: (context:
|
|
1940
|
-
onSuccess?: (context:
|
|
1941
|
-
onError?: (context:
|
|
1942
|
-
onRetry?: (response:
|
|
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
1943
|
hookOptions?: {
|
|
1944
1944
|
cloneResponse?: boolean;
|
|
1945
1945
|
};
|
|
1946
1946
|
timeout?: number;
|
|
1947
|
-
customFetchImpl?:
|
|
1948
|
-
plugins?:
|
|
1947
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
1948
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
1949
1949
|
baseURL?: string;
|
|
1950
1950
|
throw?: boolean;
|
|
1951
1951
|
auth?: {
|
|
@@ -1969,18 +1969,18 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1969
1969
|
params?: Record<string, any>;
|
|
1970
1970
|
duplex?: "full" | "half";
|
|
1971
1971
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
1972
|
-
retry?:
|
|
1972
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
1973
1973
|
retryAttempt?: number;
|
|
1974
|
-
output?:
|
|
1975
|
-
errorSchema?:
|
|
1974
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
1975
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
1976
1976
|
disableValidation?: boolean;
|
|
1977
|
-
}>(data_0:
|
|
1977
|
+
}>(data_0: better_auth13.Prettify<{
|
|
1978
1978
|
newPassword: string;
|
|
1979
1979
|
currentPassword: string;
|
|
1980
1980
|
revokeOtherSessions?: boolean | undefined;
|
|
1981
1981
|
} & {
|
|
1982
1982
|
fetchOptions?: FetchOptions;
|
|
1983
|
-
}>, data_1?: FetchOptions) => Promise<
|
|
1983
|
+
}>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
1984
1984
|
token: string | null;
|
|
1985
1985
|
user: {
|
|
1986
1986
|
id: string;
|
|
@@ -1997,16 +1997,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
1997
1997
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1998
1998
|
} & {
|
|
1999
1999
|
updateUser: <FetchOptions extends {
|
|
2000
|
-
|
|
2000
|
+
cache?: RequestCache;
|
|
2001
|
+
credentials?: RequestCredentials;
|
|
2001
2002
|
headers?: HeadersInit & (HeadersInit | {
|
|
2002
2003
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
2003
2004
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
2004
2005
|
authorization: "Bearer" | "Basic";
|
|
2005
2006
|
});
|
|
2006
|
-
cache?: RequestCache;
|
|
2007
|
-
credentials?: RequestCredentials;
|
|
2008
2007
|
integrity?: string;
|
|
2009
2008
|
keepalive?: boolean;
|
|
2009
|
+
method?: string;
|
|
2010
2010
|
mode?: RequestMode;
|
|
2011
2011
|
priority?: RequestPriority;
|
|
2012
2012
|
redirect?: RequestRedirect;
|
|
@@ -2014,17 +2014,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2014
2014
|
referrerPolicy?: ReferrerPolicy;
|
|
2015
2015
|
signal?: AbortSignal | null;
|
|
2016
2016
|
window?: null;
|
|
2017
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
2018
|
-
onResponse?: (context:
|
|
2019
|
-
onSuccess?: (context:
|
|
2020
|
-
onError?: (context:
|
|
2021
|
-
onRetry?: (response:
|
|
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
2022
|
hookOptions?: {
|
|
2023
2023
|
cloneResponse?: boolean;
|
|
2024
2024
|
};
|
|
2025
2025
|
timeout?: number;
|
|
2026
|
-
customFetchImpl?:
|
|
2027
|
-
plugins?:
|
|
2026
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
2027
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
2028
2028
|
baseURL?: string;
|
|
2029
2029
|
throw?: boolean;
|
|
2030
2030
|
auth?: {
|
|
@@ -2047,16 +2047,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2047
2047
|
params?: Record<string, any>;
|
|
2048
2048
|
duplex?: "full" | "half";
|
|
2049
2049
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
2050
|
-
retry?:
|
|
2050
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
2051
2051
|
retryAttempt?: number;
|
|
2052
|
-
output?:
|
|
2053
|
-
errorSchema?:
|
|
2052
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
2053
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
2054
2054
|
disableValidation?: boolean;
|
|
2055
|
-
}>(data_0?:
|
|
2055
|
+
}>(data_0?: better_auth13.Prettify<{
|
|
2056
2056
|
image?: string | null;
|
|
2057
2057
|
name?: string;
|
|
2058
2058
|
fetchOptions?: FetchOptions;
|
|
2059
|
-
} & Partial<{} & {}>>, data_1?: FetchOptions) => Promise<
|
|
2059
|
+
} & Partial<{} & {}>>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
2060
2060
|
status: boolean;
|
|
2061
2061
|
}, {
|
|
2062
2062
|
code?: string;
|
|
@@ -2064,16 +2064,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2064
2064
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2065
2065
|
} & {
|
|
2066
2066
|
deleteUser: <FetchOptions extends {
|
|
2067
|
-
|
|
2067
|
+
cache?: RequestCache;
|
|
2068
|
+
credentials?: RequestCredentials;
|
|
2068
2069
|
headers?: HeadersInit & (HeadersInit | {
|
|
2069
2070
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
2070
2071
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
2071
2072
|
authorization: "Bearer" | "Basic";
|
|
2072
2073
|
});
|
|
2073
|
-
cache?: RequestCache;
|
|
2074
|
-
credentials?: RequestCredentials;
|
|
2075
2074
|
integrity?: string;
|
|
2076
2075
|
keepalive?: boolean;
|
|
2076
|
+
method?: string;
|
|
2077
2077
|
mode?: RequestMode;
|
|
2078
2078
|
priority?: RequestPriority;
|
|
2079
2079
|
redirect?: RequestRedirect;
|
|
@@ -2081,17 +2081,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2081
2081
|
referrerPolicy?: ReferrerPolicy;
|
|
2082
2082
|
signal?: AbortSignal | null;
|
|
2083
2083
|
window?: null;
|
|
2084
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
2085
|
-
onResponse?: (context:
|
|
2086
|
-
onSuccess?: (context:
|
|
2087
|
-
onError?: (context:
|
|
2088
|
-
onRetry?: (response:
|
|
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
2089
|
hookOptions?: {
|
|
2090
2090
|
cloneResponse?: boolean;
|
|
2091
2091
|
};
|
|
2092
2092
|
timeout?: number;
|
|
2093
|
-
customFetchImpl?:
|
|
2094
|
-
plugins?:
|
|
2093
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
2094
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
2095
2095
|
baseURL?: string;
|
|
2096
2096
|
throw?: boolean;
|
|
2097
2097
|
auth?: {
|
|
@@ -2115,18 +2115,18 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2115
2115
|
params?: Record<string, any>;
|
|
2116
2116
|
duplex?: "full" | "half";
|
|
2117
2117
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
2118
|
-
retry?:
|
|
2118
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
2119
2119
|
retryAttempt?: number;
|
|
2120
|
-
output?:
|
|
2121
|
-
errorSchema?:
|
|
2120
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
2121
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
2122
2122
|
disableValidation?: boolean;
|
|
2123
|
-
}>(data_0?:
|
|
2123
|
+
}>(data_0?: better_auth13.Prettify<{
|
|
2124
2124
|
callbackURL?: string | undefined;
|
|
2125
2125
|
password?: string | undefined;
|
|
2126
2126
|
token?: string | undefined;
|
|
2127
2127
|
} & {
|
|
2128
2128
|
fetchOptions?: FetchOptions;
|
|
2129
|
-
}>, data_1?: FetchOptions) => Promise<
|
|
2129
|
+
}>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
2130
2130
|
success: boolean;
|
|
2131
2131
|
message: string;
|
|
2132
2132
|
}, {
|
|
@@ -2136,16 +2136,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2136
2136
|
} & {
|
|
2137
2137
|
resetPassword: {
|
|
2138
2138
|
":token": <FetchOptions extends {
|
|
2139
|
-
|
|
2139
|
+
cache?: RequestCache;
|
|
2140
|
+
credentials?: RequestCredentials;
|
|
2140
2141
|
headers?: HeadersInit & (HeadersInit | {
|
|
2141
2142
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
2142
2143
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
2143
2144
|
authorization: "Bearer" | "Basic";
|
|
2144
2145
|
});
|
|
2145
|
-
cache?: RequestCache;
|
|
2146
|
-
credentials?: RequestCredentials;
|
|
2147
2146
|
integrity?: string;
|
|
2148
2147
|
keepalive?: boolean;
|
|
2148
|
+
method?: string;
|
|
2149
2149
|
mode?: RequestMode;
|
|
2150
2150
|
priority?: RequestPriority;
|
|
2151
2151
|
redirect?: RequestRedirect;
|
|
@@ -2153,17 +2153,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2153
2153
|
referrerPolicy?: ReferrerPolicy;
|
|
2154
2154
|
signal?: AbortSignal | null;
|
|
2155
2155
|
window?: null;
|
|
2156
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
2157
|
-
onResponse?: (context:
|
|
2158
|
-
onSuccess?: (context:
|
|
2159
|
-
onError?: (context:
|
|
2160
|
-
onRetry?: (response:
|
|
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
2161
|
hookOptions?: {
|
|
2162
2162
|
cloneResponse?: boolean;
|
|
2163
2163
|
};
|
|
2164
2164
|
timeout?: number;
|
|
2165
|
-
customFetchImpl?:
|
|
2166
|
-
plugins?:
|
|
2165
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
2166
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
2167
2167
|
baseURL?: string;
|
|
2168
2168
|
throw?: boolean;
|
|
2169
2169
|
auth?: {
|
|
@@ -2187,28 +2187,28 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2187
2187
|
};
|
|
2188
2188
|
duplex?: "full" | "half";
|
|
2189
2189
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
2190
|
-
retry?:
|
|
2190
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
2191
2191
|
retryAttempt?: number;
|
|
2192
|
-
output?:
|
|
2193
|
-
errorSchema?:
|
|
2192
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
2193
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
2194
2194
|
disableValidation?: boolean;
|
|
2195
|
-
}>(data_0?:
|
|
2195
|
+
}>(data_0?: better_auth13.Prettify<undefined>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<never, {
|
|
2196
2196
|
code?: string;
|
|
2197
2197
|
message?: string;
|
|
2198
2198
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2199
2199
|
};
|
|
2200
2200
|
} & {
|
|
2201
2201
|
requestPasswordReset: <FetchOptions extends {
|
|
2202
|
-
|
|
2202
|
+
cache?: RequestCache;
|
|
2203
|
+
credentials?: RequestCredentials;
|
|
2203
2204
|
headers?: HeadersInit & (HeadersInit | {
|
|
2204
2205
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
2205
2206
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
2206
2207
|
authorization: "Bearer" | "Basic";
|
|
2207
2208
|
});
|
|
2208
|
-
cache?: RequestCache;
|
|
2209
|
-
credentials?: RequestCredentials;
|
|
2210
2209
|
integrity?: string;
|
|
2211
2210
|
keepalive?: boolean;
|
|
2211
|
+
method?: string;
|
|
2212
2212
|
mode?: RequestMode;
|
|
2213
2213
|
priority?: RequestPriority;
|
|
2214
2214
|
redirect?: RequestRedirect;
|
|
@@ -2216,17 +2216,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2216
2216
|
referrerPolicy?: ReferrerPolicy;
|
|
2217
2217
|
signal?: AbortSignal | null;
|
|
2218
2218
|
window?: null;
|
|
2219
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
2220
|
-
onResponse?: (context:
|
|
2221
|
-
onSuccess?: (context:
|
|
2222
|
-
onError?: (context:
|
|
2223
|
-
onRetry?: (response:
|
|
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
2224
|
hookOptions?: {
|
|
2225
2225
|
cloneResponse?: boolean;
|
|
2226
2226
|
};
|
|
2227
2227
|
timeout?: number;
|
|
2228
|
-
customFetchImpl?:
|
|
2229
|
-
plugins?:
|
|
2228
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
2229
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
2230
2230
|
baseURL?: string;
|
|
2231
2231
|
throw?: boolean;
|
|
2232
2232
|
auth?: {
|
|
@@ -2249,17 +2249,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2249
2249
|
params?: Record<string, any>;
|
|
2250
2250
|
duplex?: "full" | "half";
|
|
2251
2251
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
2252
|
-
retry?:
|
|
2252
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
2253
2253
|
retryAttempt?: number;
|
|
2254
|
-
output?:
|
|
2255
|
-
errorSchema?:
|
|
2254
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
2255
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
2256
2256
|
disableValidation?: boolean;
|
|
2257
|
-
}>(data_0:
|
|
2257
|
+
}>(data_0: better_auth13.Prettify<{
|
|
2258
2258
|
email: string;
|
|
2259
2259
|
redirectTo?: string | undefined;
|
|
2260
2260
|
} & {
|
|
2261
2261
|
fetchOptions?: FetchOptions;
|
|
2262
|
-
}>, data_1?: FetchOptions) => Promise<
|
|
2262
|
+
}>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
2263
2263
|
status: boolean;
|
|
2264
2264
|
message: string;
|
|
2265
2265
|
}, {
|
|
@@ -2269,16 +2269,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2269
2269
|
} & {
|
|
2270
2270
|
resetPassword: {
|
|
2271
2271
|
":token": <FetchOptions extends {
|
|
2272
|
-
|
|
2272
|
+
cache?: RequestCache;
|
|
2273
|
+
credentials?: RequestCredentials;
|
|
2273
2274
|
headers?: HeadersInit & (HeadersInit | {
|
|
2274
2275
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
2275
2276
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
2276
2277
|
authorization: "Bearer" | "Basic";
|
|
2277
2278
|
});
|
|
2278
|
-
cache?: RequestCache;
|
|
2279
|
-
credentials?: RequestCredentials;
|
|
2280
2279
|
integrity?: string;
|
|
2281
2280
|
keepalive?: boolean;
|
|
2281
|
+
method?: string;
|
|
2282
2282
|
mode?: RequestMode;
|
|
2283
2283
|
priority?: RequestPriority;
|
|
2284
2284
|
redirect?: RequestRedirect;
|
|
@@ -2286,17 +2286,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2286
2286
|
referrerPolicy?: ReferrerPolicy;
|
|
2287
2287
|
signal?: AbortSignal | null;
|
|
2288
2288
|
window?: null;
|
|
2289
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
2290
|
-
onResponse?: (context:
|
|
2291
|
-
onSuccess?: (context:
|
|
2292
|
-
onError?: (context:
|
|
2293
|
-
onRetry?: (response:
|
|
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
2294
|
hookOptions?: {
|
|
2295
2295
|
cloneResponse?: boolean;
|
|
2296
2296
|
};
|
|
2297
2297
|
timeout?: number;
|
|
2298
|
-
customFetchImpl?:
|
|
2299
|
-
plugins?:
|
|
2298
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
2299
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
2300
2300
|
baseURL?: string;
|
|
2301
2301
|
throw?: boolean;
|
|
2302
2302
|
auth?: {
|
|
@@ -2320,28 +2320,28 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2320
2320
|
};
|
|
2321
2321
|
duplex?: "full" | "half";
|
|
2322
2322
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
2323
|
-
retry?:
|
|
2323
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
2324
2324
|
retryAttempt?: number;
|
|
2325
|
-
output?:
|
|
2326
|
-
errorSchema?:
|
|
2325
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
2326
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
2327
2327
|
disableValidation?: boolean;
|
|
2328
|
-
}>(data_0?:
|
|
2328
|
+
}>(data_0?: better_auth13.Prettify<undefined>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<never, {
|
|
2329
2329
|
code?: string;
|
|
2330
2330
|
message?: string;
|
|
2331
2331
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2332
2332
|
};
|
|
2333
2333
|
} & {
|
|
2334
2334
|
listSessions: <FetchOptions extends {
|
|
2335
|
-
|
|
2335
|
+
cache?: RequestCache;
|
|
2336
|
+
credentials?: RequestCredentials;
|
|
2336
2337
|
headers?: HeadersInit & (HeadersInit | {
|
|
2337
2338
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
2338
2339
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
2339
2340
|
authorization: "Bearer" | "Basic";
|
|
2340
2341
|
});
|
|
2341
|
-
cache?: RequestCache;
|
|
2342
|
-
credentials?: RequestCredentials;
|
|
2343
2342
|
integrity?: string;
|
|
2344
2343
|
keepalive?: boolean;
|
|
2344
|
+
method?: string;
|
|
2345
2345
|
mode?: RequestMode;
|
|
2346
2346
|
priority?: RequestPriority;
|
|
2347
2347
|
redirect?: RequestRedirect;
|
|
@@ -2349,17 +2349,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2349
2349
|
referrerPolicy?: ReferrerPolicy;
|
|
2350
2350
|
signal?: AbortSignal | null;
|
|
2351
2351
|
window?: null;
|
|
2352
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
2353
|
-
onResponse?: (context:
|
|
2354
|
-
onSuccess?: (context:
|
|
2355
|
-
onError?: (context:
|
|
2356
|
-
onRetry?: (response:
|
|
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
2357
|
hookOptions?: {
|
|
2358
2358
|
cloneResponse?: boolean;
|
|
2359
2359
|
};
|
|
2360
2360
|
timeout?: number;
|
|
2361
|
-
customFetchImpl?:
|
|
2362
|
-
plugins?:
|
|
2361
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
2362
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
2363
2363
|
baseURL?: string;
|
|
2364
2364
|
throw?: boolean;
|
|
2365
2365
|
auth?: {
|
|
@@ -2379,12 +2379,12 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2379
2379
|
params?: Record<string, any>;
|
|
2380
2380
|
duplex?: "full" | "half";
|
|
2381
2381
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
2382
|
-
retry?:
|
|
2382
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
2383
2383
|
retryAttempt?: number;
|
|
2384
|
-
output?:
|
|
2385
|
-
errorSchema?:
|
|
2384
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
2385
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
2386
2386
|
disableValidation?: boolean;
|
|
2387
|
-
}>(data_0?:
|
|
2387
|
+
}>(data_0?: better_auth13.Prettify<undefined>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<better_auth13.Prettify<{
|
|
2388
2388
|
id: string;
|
|
2389
2389
|
createdAt: Date;
|
|
2390
2390
|
updatedAt: Date;
|
|
@@ -2399,16 +2399,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2399
2399
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2400
2400
|
} & {
|
|
2401
2401
|
revokeSession: <FetchOptions extends {
|
|
2402
|
-
|
|
2402
|
+
cache?: RequestCache;
|
|
2403
|
+
credentials?: RequestCredentials;
|
|
2403
2404
|
headers?: HeadersInit & (HeadersInit | {
|
|
2404
2405
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
2405
2406
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
2406
2407
|
authorization: "Bearer" | "Basic";
|
|
2407
2408
|
});
|
|
2408
|
-
cache?: RequestCache;
|
|
2409
|
-
credentials?: RequestCredentials;
|
|
2410
2409
|
integrity?: string;
|
|
2411
2410
|
keepalive?: boolean;
|
|
2411
|
+
method?: string;
|
|
2412
2412
|
mode?: RequestMode;
|
|
2413
2413
|
priority?: RequestPriority;
|
|
2414
2414
|
redirect?: RequestRedirect;
|
|
@@ -2416,17 +2416,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2416
2416
|
referrerPolicy?: ReferrerPolicy;
|
|
2417
2417
|
signal?: AbortSignal | null;
|
|
2418
2418
|
window?: null;
|
|
2419
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
2420
|
-
onResponse?: (context:
|
|
2421
|
-
onSuccess?: (context:
|
|
2422
|
-
onError?: (context:
|
|
2423
|
-
onRetry?: (response:
|
|
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
2424
|
hookOptions?: {
|
|
2425
2425
|
cloneResponse?: boolean;
|
|
2426
2426
|
};
|
|
2427
2427
|
timeout?: number;
|
|
2428
|
-
customFetchImpl?:
|
|
2429
|
-
plugins?:
|
|
2428
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
2429
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
2430
2430
|
baseURL?: string;
|
|
2431
2431
|
throw?: boolean;
|
|
2432
2432
|
auth?: {
|
|
@@ -2448,16 +2448,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2448
2448
|
params?: Record<string, any>;
|
|
2449
2449
|
duplex?: "full" | "half";
|
|
2450
2450
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
2451
|
-
retry?:
|
|
2451
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
2452
2452
|
retryAttempt?: number;
|
|
2453
|
-
output?:
|
|
2454
|
-
errorSchema?:
|
|
2453
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
2454
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
2455
2455
|
disableValidation?: boolean;
|
|
2456
|
-
}>(data_0:
|
|
2456
|
+
}>(data_0: better_auth13.Prettify<{
|
|
2457
2457
|
token: string;
|
|
2458
2458
|
} & {
|
|
2459
2459
|
fetchOptions?: FetchOptions;
|
|
2460
|
-
}>, data_1?: FetchOptions) => Promise<
|
|
2460
|
+
}>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
2461
2461
|
status: boolean;
|
|
2462
2462
|
}, {
|
|
2463
2463
|
code?: string;
|
|
@@ -2465,16 +2465,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2465
2465
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2466
2466
|
} & {
|
|
2467
2467
|
revokeSessions: <FetchOptions extends {
|
|
2468
|
-
|
|
2468
|
+
cache?: RequestCache;
|
|
2469
|
+
credentials?: RequestCredentials;
|
|
2469
2470
|
headers?: HeadersInit & (HeadersInit | {
|
|
2470
2471
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
2471
2472
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
2472
2473
|
authorization: "Bearer" | "Basic";
|
|
2473
2474
|
});
|
|
2474
|
-
cache?: RequestCache;
|
|
2475
|
-
credentials?: RequestCredentials;
|
|
2476
2475
|
integrity?: string;
|
|
2477
2476
|
keepalive?: boolean;
|
|
2477
|
+
method?: string;
|
|
2478
2478
|
mode?: RequestMode;
|
|
2479
2479
|
priority?: RequestPriority;
|
|
2480
2480
|
redirect?: RequestRedirect;
|
|
@@ -2482,17 +2482,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2482
2482
|
referrerPolicy?: ReferrerPolicy;
|
|
2483
2483
|
signal?: AbortSignal | null;
|
|
2484
2484
|
window?: null;
|
|
2485
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
2486
|
-
onResponse?: (context:
|
|
2487
|
-
onSuccess?: (context:
|
|
2488
|
-
onError?: (context:
|
|
2489
|
-
onRetry?: (response:
|
|
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
2490
|
hookOptions?: {
|
|
2491
2491
|
cloneResponse?: boolean;
|
|
2492
2492
|
};
|
|
2493
2493
|
timeout?: number;
|
|
2494
|
-
customFetchImpl?:
|
|
2495
|
-
plugins?:
|
|
2494
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
2495
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
2496
2496
|
baseURL?: string;
|
|
2497
2497
|
throw?: boolean;
|
|
2498
2498
|
auth?: {
|
|
@@ -2512,12 +2512,12 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2512
2512
|
params?: Record<string, any>;
|
|
2513
2513
|
duplex?: "full" | "half";
|
|
2514
2514
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
2515
|
-
retry?:
|
|
2515
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
2516
2516
|
retryAttempt?: number;
|
|
2517
|
-
output?:
|
|
2518
|
-
errorSchema?:
|
|
2517
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
2518
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
2519
2519
|
disableValidation?: boolean;
|
|
2520
|
-
}>(data_0?:
|
|
2520
|
+
}>(data_0?: better_auth13.Prettify<undefined>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
2521
2521
|
status: boolean;
|
|
2522
2522
|
}, {
|
|
2523
2523
|
code?: string;
|
|
@@ -2525,16 +2525,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2525
2525
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2526
2526
|
} & {
|
|
2527
2527
|
revokeOtherSessions: <FetchOptions extends {
|
|
2528
|
-
|
|
2528
|
+
cache?: RequestCache;
|
|
2529
|
+
credentials?: RequestCredentials;
|
|
2529
2530
|
headers?: HeadersInit & (HeadersInit | {
|
|
2530
2531
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
2531
2532
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
2532
2533
|
authorization: "Bearer" | "Basic";
|
|
2533
2534
|
});
|
|
2534
|
-
cache?: RequestCache;
|
|
2535
|
-
credentials?: RequestCredentials;
|
|
2536
2535
|
integrity?: string;
|
|
2537
2536
|
keepalive?: boolean;
|
|
2537
|
+
method?: string;
|
|
2538
2538
|
mode?: RequestMode;
|
|
2539
2539
|
priority?: RequestPriority;
|
|
2540
2540
|
redirect?: RequestRedirect;
|
|
@@ -2542,17 +2542,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2542
2542
|
referrerPolicy?: ReferrerPolicy;
|
|
2543
2543
|
signal?: AbortSignal | null;
|
|
2544
2544
|
window?: null;
|
|
2545
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
2546
|
-
onResponse?: (context:
|
|
2547
|
-
onSuccess?: (context:
|
|
2548
|
-
onError?: (context:
|
|
2549
|
-
onRetry?: (response:
|
|
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
2550
|
hookOptions?: {
|
|
2551
2551
|
cloneResponse?: boolean;
|
|
2552
2552
|
};
|
|
2553
2553
|
timeout?: number;
|
|
2554
|
-
customFetchImpl?:
|
|
2555
|
-
plugins?:
|
|
2554
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
2555
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
2556
2556
|
baseURL?: string;
|
|
2557
2557
|
throw?: boolean;
|
|
2558
2558
|
auth?: {
|
|
@@ -2572,12 +2572,12 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2572
2572
|
params?: Record<string, any>;
|
|
2573
2573
|
duplex?: "full" | "half";
|
|
2574
2574
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
2575
|
-
retry?:
|
|
2575
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
2576
2576
|
retryAttempt?: number;
|
|
2577
|
-
output?:
|
|
2578
|
-
errorSchema?:
|
|
2577
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
2578
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
2579
2579
|
disableValidation?: boolean;
|
|
2580
|
-
}>(data_0?:
|
|
2580
|
+
}>(data_0?: better_auth13.Prettify<undefined>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
2581
2581
|
status: boolean;
|
|
2582
2582
|
}, {
|
|
2583
2583
|
code?: string;
|
|
@@ -2585,16 +2585,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2585
2585
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2586
2586
|
} & {
|
|
2587
2587
|
linkSocial: <FetchOptions extends {
|
|
2588
|
-
|
|
2588
|
+
cache?: RequestCache;
|
|
2589
|
+
credentials?: RequestCredentials;
|
|
2589
2590
|
headers?: HeadersInit & (HeadersInit | {
|
|
2590
2591
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
2591
2592
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
2592
2593
|
authorization: "Bearer" | "Basic";
|
|
2593
2594
|
});
|
|
2594
|
-
cache?: RequestCache;
|
|
2595
|
-
credentials?: RequestCredentials;
|
|
2596
2595
|
integrity?: string;
|
|
2597
2596
|
keepalive?: boolean;
|
|
2597
|
+
method?: string;
|
|
2598
2598
|
mode?: RequestMode;
|
|
2599
2599
|
priority?: RequestPriority;
|
|
2600
2600
|
redirect?: RequestRedirect;
|
|
@@ -2602,17 +2602,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2602
2602
|
referrerPolicy?: ReferrerPolicy;
|
|
2603
2603
|
signal?: AbortSignal | null;
|
|
2604
2604
|
window?: null;
|
|
2605
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
2606
|
-
onResponse?: (context:
|
|
2607
|
-
onSuccess?: (context:
|
|
2608
|
-
onError?: (context:
|
|
2609
|
-
onRetry?: (response:
|
|
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
2610
|
hookOptions?: {
|
|
2611
2611
|
cloneResponse?: boolean;
|
|
2612
2612
|
};
|
|
2613
2613
|
timeout?: number;
|
|
2614
|
-
customFetchImpl?:
|
|
2615
|
-
plugins?:
|
|
2614
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
2615
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
2616
2616
|
baseURL?: string;
|
|
2617
2617
|
throw?: boolean;
|
|
2618
2618
|
auth?: {
|
|
@@ -2646,12 +2646,12 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2646
2646
|
params?: Record<string, any>;
|
|
2647
2647
|
duplex?: "full" | "half";
|
|
2648
2648
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
2649
|
-
retry?:
|
|
2649
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
2650
2650
|
retryAttempt?: number;
|
|
2651
|
-
output?:
|
|
2652
|
-
errorSchema?:
|
|
2651
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
2652
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
2653
2653
|
disableValidation?: boolean;
|
|
2654
|
-
}>(data_0:
|
|
2654
|
+
}>(data_0: better_auth13.Prettify<{
|
|
2655
2655
|
provider: unknown;
|
|
2656
2656
|
callbackURL?: string | undefined;
|
|
2657
2657
|
idToken?: {
|
|
@@ -2667,7 +2667,7 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2667
2667
|
disableRedirect?: boolean | undefined;
|
|
2668
2668
|
} & {
|
|
2669
2669
|
fetchOptions?: FetchOptions;
|
|
2670
|
-
}>, data_1?: FetchOptions) => Promise<
|
|
2670
|
+
}>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
2671
2671
|
url: string;
|
|
2672
2672
|
redirect: boolean;
|
|
2673
2673
|
}, {
|
|
@@ -2676,16 +2676,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2676
2676
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2677
2677
|
} & {
|
|
2678
2678
|
listAccounts: <FetchOptions extends {
|
|
2679
|
-
|
|
2679
|
+
cache?: RequestCache;
|
|
2680
|
+
credentials?: RequestCredentials;
|
|
2680
2681
|
headers?: HeadersInit & (HeadersInit | {
|
|
2681
2682
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
2682
2683
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
2683
2684
|
authorization: "Bearer" | "Basic";
|
|
2684
2685
|
});
|
|
2685
|
-
cache?: RequestCache;
|
|
2686
|
-
credentials?: RequestCredentials;
|
|
2687
2686
|
integrity?: string;
|
|
2688
2687
|
keepalive?: boolean;
|
|
2688
|
+
method?: string;
|
|
2689
2689
|
mode?: RequestMode;
|
|
2690
2690
|
priority?: RequestPriority;
|
|
2691
2691
|
redirect?: RequestRedirect;
|
|
@@ -2693,17 +2693,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2693
2693
|
referrerPolicy?: ReferrerPolicy;
|
|
2694
2694
|
signal?: AbortSignal | null;
|
|
2695
2695
|
window?: null;
|
|
2696
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
2697
|
-
onResponse?: (context:
|
|
2698
|
-
onSuccess?: (context:
|
|
2699
|
-
onError?: (context:
|
|
2700
|
-
onRetry?: (response:
|
|
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
2701
|
hookOptions?: {
|
|
2702
2702
|
cloneResponse?: boolean;
|
|
2703
2703
|
};
|
|
2704
2704
|
timeout?: number;
|
|
2705
|
-
customFetchImpl?:
|
|
2706
|
-
plugins?:
|
|
2705
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
2706
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
2707
2707
|
baseURL?: string;
|
|
2708
2708
|
throw?: boolean;
|
|
2709
2709
|
auth?: {
|
|
@@ -2723,12 +2723,12 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2723
2723
|
params?: Record<string, any>;
|
|
2724
2724
|
duplex?: "full" | "half";
|
|
2725
2725
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
2726
|
-
retry?:
|
|
2726
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
2727
2727
|
retryAttempt?: number;
|
|
2728
|
-
output?:
|
|
2729
|
-
errorSchema?:
|
|
2728
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
2729
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
2730
2730
|
disableValidation?: boolean;
|
|
2731
|
-
}>(data_0?:
|
|
2731
|
+
}>(data_0?: better_auth13.Prettify<undefined>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
2732
2732
|
id: string;
|
|
2733
2733
|
providerId: string;
|
|
2734
2734
|
createdAt: Date;
|
|
@@ -2742,16 +2742,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2742
2742
|
} & {
|
|
2743
2743
|
deleteUser: {
|
|
2744
2744
|
callback: <FetchOptions extends {
|
|
2745
|
-
|
|
2745
|
+
cache?: RequestCache;
|
|
2746
|
+
credentials?: RequestCredentials;
|
|
2746
2747
|
headers?: HeadersInit & (HeadersInit | {
|
|
2747
2748
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
2748
2749
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
2749
2750
|
authorization: "Bearer" | "Basic";
|
|
2750
2751
|
});
|
|
2751
|
-
cache?: RequestCache;
|
|
2752
|
-
credentials?: RequestCredentials;
|
|
2753
2752
|
integrity?: string;
|
|
2754
2753
|
keepalive?: boolean;
|
|
2754
|
+
method?: string;
|
|
2755
2755
|
mode?: RequestMode;
|
|
2756
2756
|
priority?: RequestPriority;
|
|
2757
2757
|
redirect?: RequestRedirect;
|
|
@@ -2759,17 +2759,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2759
2759
|
referrerPolicy?: ReferrerPolicy;
|
|
2760
2760
|
signal?: AbortSignal | null;
|
|
2761
2761
|
window?: null;
|
|
2762
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
2763
|
-
onResponse?: (context:
|
|
2764
|
-
onSuccess?: (context:
|
|
2765
|
-
onError?: (context:
|
|
2766
|
-
onRetry?: (response:
|
|
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
2767
|
hookOptions?: {
|
|
2768
2768
|
cloneResponse?: boolean;
|
|
2769
2769
|
};
|
|
2770
2770
|
timeout?: number;
|
|
2771
|
-
customFetchImpl?:
|
|
2772
|
-
plugins?:
|
|
2771
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
2772
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
2773
2773
|
baseURL?: string;
|
|
2774
2774
|
throw?: boolean;
|
|
2775
2775
|
auth?: {
|
|
@@ -2792,12 +2792,12 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2792
2792
|
params?: Record<string, any>;
|
|
2793
2793
|
duplex?: "full" | "half";
|
|
2794
2794
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
2795
|
-
retry?:
|
|
2795
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
2796
2796
|
retryAttempt?: number;
|
|
2797
|
-
output?:
|
|
2798
|
-
errorSchema?:
|
|
2797
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
2798
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
2799
2799
|
disableValidation?: boolean;
|
|
2800
|
-
}>(data_0?:
|
|
2800
|
+
}>(data_0?: better_auth13.Prettify<undefined>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
2801
2801
|
success: boolean;
|
|
2802
2802
|
message: string;
|
|
2803
2803
|
}, {
|
|
@@ -2807,16 +2807,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2807
2807
|
};
|
|
2808
2808
|
} & {
|
|
2809
2809
|
unlinkAccount: <FetchOptions extends {
|
|
2810
|
-
|
|
2810
|
+
cache?: RequestCache;
|
|
2811
|
+
credentials?: RequestCredentials;
|
|
2811
2812
|
headers?: HeadersInit & (HeadersInit | {
|
|
2812
2813
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
2813
2814
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
2814
2815
|
authorization: "Bearer" | "Basic";
|
|
2815
2816
|
});
|
|
2816
|
-
cache?: RequestCache;
|
|
2817
|
-
credentials?: RequestCredentials;
|
|
2818
2817
|
integrity?: string;
|
|
2819
2818
|
keepalive?: boolean;
|
|
2819
|
+
method?: string;
|
|
2820
2820
|
mode?: RequestMode;
|
|
2821
2821
|
priority?: RequestPriority;
|
|
2822
2822
|
redirect?: RequestRedirect;
|
|
@@ -2824,17 +2824,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2824
2824
|
referrerPolicy?: ReferrerPolicy;
|
|
2825
2825
|
signal?: AbortSignal | null;
|
|
2826
2826
|
window?: null;
|
|
2827
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
2828
|
-
onResponse?: (context:
|
|
2829
|
-
onSuccess?: (context:
|
|
2830
|
-
onError?: (context:
|
|
2831
|
-
onRetry?: (response:
|
|
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
2832
|
hookOptions?: {
|
|
2833
2833
|
cloneResponse?: boolean;
|
|
2834
2834
|
};
|
|
2835
2835
|
timeout?: number;
|
|
2836
|
-
customFetchImpl?:
|
|
2837
|
-
plugins?:
|
|
2836
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
2837
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
2838
2838
|
baseURL?: string;
|
|
2839
2839
|
throw?: boolean;
|
|
2840
2840
|
auth?: {
|
|
@@ -2857,17 +2857,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2857
2857
|
params?: Record<string, any>;
|
|
2858
2858
|
duplex?: "full" | "half";
|
|
2859
2859
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
2860
|
-
retry?:
|
|
2860
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
2861
2861
|
retryAttempt?: number;
|
|
2862
|
-
output?:
|
|
2863
|
-
errorSchema?:
|
|
2862
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
2863
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
2864
2864
|
disableValidation?: boolean;
|
|
2865
|
-
}>(data_0:
|
|
2865
|
+
}>(data_0: better_auth13.Prettify<{
|
|
2866
2866
|
providerId: string;
|
|
2867
2867
|
accountId?: string | undefined;
|
|
2868
2868
|
} & {
|
|
2869
2869
|
fetchOptions?: FetchOptions;
|
|
2870
|
-
}>, data_1?: FetchOptions) => Promise<
|
|
2870
|
+
}>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
2871
2871
|
status: boolean;
|
|
2872
2872
|
}, {
|
|
2873
2873
|
code?: string;
|
|
@@ -2875,16 +2875,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2875
2875
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2876
2876
|
} & {
|
|
2877
2877
|
refreshToken: <FetchOptions extends {
|
|
2878
|
-
|
|
2878
|
+
cache?: RequestCache;
|
|
2879
|
+
credentials?: RequestCredentials;
|
|
2879
2880
|
headers?: HeadersInit & (HeadersInit | {
|
|
2880
2881
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
2881
2882
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
2882
2883
|
authorization: "Bearer" | "Basic";
|
|
2883
2884
|
});
|
|
2884
|
-
cache?: RequestCache;
|
|
2885
|
-
credentials?: RequestCredentials;
|
|
2886
2885
|
integrity?: string;
|
|
2887
2886
|
keepalive?: boolean;
|
|
2887
|
+
method?: string;
|
|
2888
2888
|
mode?: RequestMode;
|
|
2889
2889
|
priority?: RequestPriority;
|
|
2890
2890
|
redirect?: RequestRedirect;
|
|
@@ -2892,17 +2892,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2892
2892
|
referrerPolicy?: ReferrerPolicy;
|
|
2893
2893
|
signal?: AbortSignal | null;
|
|
2894
2894
|
window?: null;
|
|
2895
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
2896
|
-
onResponse?: (context:
|
|
2897
|
-
onSuccess?: (context:
|
|
2898
|
-
onError?: (context:
|
|
2899
|
-
onRetry?: (response:
|
|
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
2900
|
hookOptions?: {
|
|
2901
2901
|
cloneResponse?: boolean;
|
|
2902
2902
|
};
|
|
2903
2903
|
timeout?: number;
|
|
2904
|
-
customFetchImpl?:
|
|
2905
|
-
plugins?:
|
|
2904
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
2905
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
2906
2906
|
baseURL?: string;
|
|
2907
2907
|
throw?: boolean;
|
|
2908
2908
|
auth?: {
|
|
@@ -2926,33 +2926,33 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2926
2926
|
params?: Record<string, any>;
|
|
2927
2927
|
duplex?: "full" | "half";
|
|
2928
2928
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
2929
|
-
retry?:
|
|
2929
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
2930
2930
|
retryAttempt?: number;
|
|
2931
|
-
output?:
|
|
2932
|
-
errorSchema?:
|
|
2931
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
2932
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
2933
2933
|
disableValidation?: boolean;
|
|
2934
|
-
}>(data_0:
|
|
2934
|
+
}>(data_0: better_auth13.Prettify<{
|
|
2935
2935
|
providerId: string;
|
|
2936
2936
|
accountId?: string | undefined;
|
|
2937
2937
|
userId?: string | undefined;
|
|
2938
2938
|
} & {
|
|
2939
2939
|
fetchOptions?: FetchOptions;
|
|
2940
|
-
}>, data_1?: FetchOptions) => Promise<
|
|
2940
|
+
}>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<any, {
|
|
2941
2941
|
code?: string;
|
|
2942
2942
|
message?: string;
|
|
2943
2943
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
2944
2944
|
} & {
|
|
2945
2945
|
getAccessToken: <FetchOptions extends {
|
|
2946
|
-
|
|
2946
|
+
cache?: RequestCache;
|
|
2947
|
+
credentials?: RequestCredentials;
|
|
2947
2948
|
headers?: HeadersInit & (HeadersInit | {
|
|
2948
2949
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
2949
2950
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
2950
2951
|
authorization: "Bearer" | "Basic";
|
|
2951
2952
|
});
|
|
2952
|
-
cache?: RequestCache;
|
|
2953
|
-
credentials?: RequestCredentials;
|
|
2954
2953
|
integrity?: string;
|
|
2955
2954
|
keepalive?: boolean;
|
|
2955
|
+
method?: string;
|
|
2956
2956
|
mode?: RequestMode;
|
|
2957
2957
|
priority?: RequestPriority;
|
|
2958
2958
|
redirect?: RequestRedirect;
|
|
@@ -2960,17 +2960,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2960
2960
|
referrerPolicy?: ReferrerPolicy;
|
|
2961
2961
|
signal?: AbortSignal | null;
|
|
2962
2962
|
window?: null;
|
|
2963
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
2964
|
-
onResponse?: (context:
|
|
2965
|
-
onSuccess?: (context:
|
|
2966
|
-
onError?: (context:
|
|
2967
|
-
onRetry?: (response:
|
|
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
2968
|
hookOptions?: {
|
|
2969
2969
|
cloneResponse?: boolean;
|
|
2970
2970
|
};
|
|
2971
2971
|
timeout?: number;
|
|
2972
|
-
customFetchImpl?:
|
|
2973
|
-
plugins?:
|
|
2972
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
2973
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
2974
2974
|
baseURL?: string;
|
|
2975
2975
|
throw?: boolean;
|
|
2976
2976
|
auth?: {
|
|
@@ -2994,18 +2994,18 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
2994
2994
|
params?: Record<string, any>;
|
|
2995
2995
|
duplex?: "full" | "half";
|
|
2996
2996
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
2997
|
-
retry?:
|
|
2997
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
2998
2998
|
retryAttempt?: number;
|
|
2999
|
-
output?:
|
|
3000
|
-
errorSchema?:
|
|
2999
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
3000
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
3001
3001
|
disableValidation?: boolean;
|
|
3002
|
-
}>(data_0:
|
|
3002
|
+
}>(data_0: better_auth13.Prettify<{
|
|
3003
3003
|
providerId: string;
|
|
3004
3004
|
accountId?: string | undefined;
|
|
3005
3005
|
userId?: string | undefined;
|
|
3006
3006
|
} & {
|
|
3007
3007
|
fetchOptions?: FetchOptions;
|
|
3008
|
-
}>, data_1?: FetchOptions) => Promise<
|
|
3008
|
+
}>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
3009
3009
|
accessToken: string;
|
|
3010
3010
|
accessTokenExpiresAt: Date | undefined;
|
|
3011
3011
|
scopes: string[];
|
|
@@ -3016,16 +3016,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
3016
3016
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3017
3017
|
} & {
|
|
3018
3018
|
accountInfo: <FetchOptions extends {
|
|
3019
|
-
|
|
3019
|
+
cache?: RequestCache;
|
|
3020
|
+
credentials?: RequestCredentials;
|
|
3020
3021
|
headers?: HeadersInit & (HeadersInit | {
|
|
3021
3022
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
3022
3023
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
3023
3024
|
authorization: "Bearer" | "Basic";
|
|
3024
3025
|
});
|
|
3025
|
-
cache?: RequestCache;
|
|
3026
|
-
credentials?: RequestCredentials;
|
|
3027
3026
|
integrity?: string;
|
|
3028
3027
|
keepalive?: boolean;
|
|
3028
|
+
method?: string;
|
|
3029
3029
|
mode?: RequestMode;
|
|
3030
3030
|
priority?: RequestPriority;
|
|
3031
3031
|
redirect?: RequestRedirect;
|
|
@@ -3033,17 +3033,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
3033
3033
|
referrerPolicy?: ReferrerPolicy;
|
|
3034
3034
|
signal?: AbortSignal | null;
|
|
3035
3035
|
window?: null;
|
|
3036
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
3037
|
-
onResponse?: (context:
|
|
3038
|
-
onSuccess?: (context:
|
|
3039
|
-
onError?: (context:
|
|
3040
|
-
onRetry?: (response:
|
|
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
3041
|
hookOptions?: {
|
|
3042
3042
|
cloneResponse?: boolean;
|
|
3043
3043
|
};
|
|
3044
3044
|
timeout?: number;
|
|
3045
|
-
customFetchImpl?:
|
|
3046
|
-
plugins?:
|
|
3045
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
3046
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
3047
3047
|
baseURL?: string;
|
|
3048
3048
|
throw?: boolean;
|
|
3049
3049
|
auth?: {
|
|
@@ -3065,16 +3065,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
3065
3065
|
params?: Record<string, any>;
|
|
3066
3066
|
duplex?: "full" | "half";
|
|
3067
3067
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
3068
|
-
retry?:
|
|
3068
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
3069
3069
|
retryAttempt?: number;
|
|
3070
|
-
output?:
|
|
3071
|
-
errorSchema?:
|
|
3070
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
3071
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
3072
3072
|
disableValidation?: boolean;
|
|
3073
|
-
}>(data_0:
|
|
3073
|
+
}>(data_0: better_auth13.Prettify<{
|
|
3074
3074
|
accountId: string;
|
|
3075
3075
|
} & {
|
|
3076
3076
|
fetchOptions?: FetchOptions;
|
|
3077
|
-
}>, data_1?: FetchOptions) => Promise<
|
|
3077
|
+
}>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
3078
3078
|
user: packages_core_dist_oauth2.OAuth2UserInfo;
|
|
3079
3079
|
data: Record<string, any>;
|
|
3080
3080
|
}, {
|
|
@@ -3083,16 +3083,16 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
3083
3083
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
3084
3084
|
} & {
|
|
3085
3085
|
getSession: <FetchOptions extends {
|
|
3086
|
-
|
|
3086
|
+
cache?: RequestCache;
|
|
3087
|
+
credentials?: RequestCredentials;
|
|
3087
3088
|
headers?: HeadersInit & (HeadersInit | {
|
|
3088
3089
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
3089
3090
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
3090
3091
|
authorization: "Bearer" | "Basic";
|
|
3091
3092
|
});
|
|
3092
|
-
cache?: RequestCache;
|
|
3093
|
-
credentials?: RequestCredentials;
|
|
3094
3093
|
integrity?: string;
|
|
3095
3094
|
keepalive?: boolean;
|
|
3095
|
+
method?: string;
|
|
3096
3096
|
mode?: RequestMode;
|
|
3097
3097
|
priority?: RequestPriority;
|
|
3098
3098
|
redirect?: RequestRedirect;
|
|
@@ -3100,17 +3100,17 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
3100
3100
|
referrerPolicy?: ReferrerPolicy;
|
|
3101
3101
|
signal?: AbortSignal | null;
|
|
3102
3102
|
window?: null;
|
|
3103
|
-
onRequest?: <T extends Record<string, any>>(context:
|
|
3104
|
-
onResponse?: (context:
|
|
3105
|
-
onSuccess?: (context:
|
|
3106
|
-
onError?: (context:
|
|
3107
|
-
onRetry?: (response:
|
|
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
3108
|
hookOptions?: {
|
|
3109
3109
|
cloneResponse?: boolean;
|
|
3110
3110
|
};
|
|
3111
3111
|
timeout?: number;
|
|
3112
|
-
customFetchImpl?:
|
|
3113
|
-
plugins?:
|
|
3112
|
+
customFetchImpl?: _better_fetch_fetch183.FetchEsque;
|
|
3113
|
+
plugins?: _better_fetch_fetch183.BetterFetchPlugin[];
|
|
3114
3114
|
baseURL?: string;
|
|
3115
3115
|
throw?: boolean;
|
|
3116
3116
|
auth?: {
|
|
@@ -3133,12 +3133,12 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
3133
3133
|
params?: Record<string, any>;
|
|
3134
3134
|
duplex?: "full" | "half";
|
|
3135
3135
|
jsonParser?: (text: string) => Promise<any> | any;
|
|
3136
|
-
retry?:
|
|
3136
|
+
retry?: _better_fetch_fetch183.RetryOptions;
|
|
3137
3137
|
retryAttempt?: number;
|
|
3138
|
-
output?:
|
|
3139
|
-
errorSchema?:
|
|
3138
|
+
output?: _better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File;
|
|
3139
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1;
|
|
3140
3140
|
disableValidation?: boolean;
|
|
3141
|
-
}>(data_0?:
|
|
3141
|
+
}>(data_0?: better_auth13.Prettify<undefined>, data_1?: FetchOptions) => Promise<_better_fetch_fetch183.BetterFetchResponse<{
|
|
3142
3142
|
user: {
|
|
3143
3143
|
id: string;
|
|
3144
3144
|
createdAt: Date;
|
|
@@ -3167,8 +3167,8 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
3167
3167
|
signIn: {
|
|
3168
3168
|
passkey: (opts?: {
|
|
3169
3169
|
autoFill?: boolean;
|
|
3170
|
-
fetchOptions?:
|
|
3171
|
-
}, options?:
|
|
3170
|
+
fetchOptions?: _better_fetch_fetch183.BetterFetchOption;
|
|
3171
|
+
}, options?: _better_fetch_fetch183.BetterFetchOption) => Promise<{
|
|
3172
3172
|
data: null;
|
|
3173
3173
|
error: {
|
|
3174
3174
|
message?: string | undefined;
|
|
@@ -3178,7 +3178,7 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
3178
3178
|
} | {
|
|
3179
3179
|
data: {
|
|
3180
3180
|
session: inspector0.Session;
|
|
3181
|
-
user:
|
|
3181
|
+
user: better_auth13.User;
|
|
3182
3182
|
};
|
|
3183
3183
|
error: null;
|
|
3184
3184
|
} | {
|
|
@@ -3193,11 +3193,11 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
3193
3193
|
};
|
|
3194
3194
|
passkey: {
|
|
3195
3195
|
addPasskey: (opts?: {
|
|
3196
|
-
fetchOptions?:
|
|
3196
|
+
fetchOptions?: _better_fetch_fetch183.BetterFetchOption;
|
|
3197
3197
|
name?: string;
|
|
3198
3198
|
authenticatorAttachment?: "platform" | "cross-platform";
|
|
3199
3199
|
useAutoRegister?: boolean;
|
|
3200
|
-
}, fetchOpts?:
|
|
3200
|
+
}, fetchOpts?: _better_fetch_fetch183.BetterFetchOption) => Promise<{
|
|
3201
3201
|
data: null;
|
|
3202
3202
|
error: {
|
|
3203
3203
|
message?: string | undefined;
|
|
@@ -3241,24 +3241,24 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
3241
3241
|
userAgent?: string;
|
|
3242
3242
|
};
|
|
3243
3243
|
};
|
|
3244
|
-
error:
|
|
3244
|
+
error: _better_fetch_fetch183.BetterFetchError | null;
|
|
3245
3245
|
isPending: boolean;
|
|
3246
3246
|
}>;
|
|
3247
|
-
$fetch:
|
|
3248
|
-
plugins: (
|
|
3247
|
+
$fetch: _better_fetch_fetch183.BetterFetch<{
|
|
3248
|
+
plugins: (_better_fetch_fetch183.BetterFetchPlugin | {
|
|
3249
3249
|
id: string;
|
|
3250
3250
|
name: string;
|
|
3251
3251
|
hooks: {
|
|
3252
|
-
onSuccess: ((context:
|
|
3253
|
-
onError: ((context:
|
|
3254
|
-
onRequest: (<T extends Record<string, any>>(context:
|
|
3255
|
-
onResponse: ((context:
|
|
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
3256
|
};
|
|
3257
3257
|
} | {
|
|
3258
3258
|
id: string;
|
|
3259
3259
|
name: string;
|
|
3260
3260
|
hooks: {
|
|
3261
|
-
onSuccess(context:
|
|
3261
|
+
onSuccess(context: _better_fetch_fetch183.SuccessContext<any>): void;
|
|
3262
3262
|
};
|
|
3263
3263
|
})[];
|
|
3264
3264
|
cache?: RequestCache | undefined;
|
|
@@ -3278,12 +3278,12 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
3278
3278
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
3279
3279
|
signal?: (AbortSignal | null) | undefined;
|
|
3280
3280
|
window?: null | undefined;
|
|
3281
|
-
onRetry?: ((response:
|
|
3281
|
+
onRetry?: ((response: _better_fetch_fetch183.ResponseContext) => Promise<void> | void) | undefined;
|
|
3282
3282
|
hookOptions?: {
|
|
3283
3283
|
cloneResponse?: boolean;
|
|
3284
3284
|
} | undefined;
|
|
3285
3285
|
timeout?: number | undefined;
|
|
3286
|
-
customFetchImpl:
|
|
3286
|
+
customFetchImpl: _better_fetch_fetch183.FetchEsque;
|
|
3287
3287
|
baseURL: string;
|
|
3288
3288
|
throw?: boolean | undefined;
|
|
3289
3289
|
auth?: ({
|
|
@@ -3303,10 +3303,10 @@ declare const getAuthClient: (backendURL: string) => {
|
|
|
3303
3303
|
params?: any;
|
|
3304
3304
|
duplex?: "full" | "half" | undefined;
|
|
3305
3305
|
jsonParser: (text: string) => Promise<any> | any;
|
|
3306
|
-
retry?:
|
|
3306
|
+
retry?: _better_fetch_fetch183.RetryOptions | undefined;
|
|
3307
3307
|
retryAttempt?: number | undefined;
|
|
3308
|
-
output?: (
|
|
3309
|
-
errorSchema?:
|
|
3308
|
+
output?: (_better_fetch_fetch183.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
3309
|
+
errorSchema?: _better_fetch_fetch183.StandardSchemaV1 | undefined;
|
|
3310
3310
|
disableValidation?: boolean | undefined;
|
|
3311
3311
|
}, unknown, unknown, {}>;
|
|
3312
3312
|
$store: {
|