@neondatabase/auth 0.2.0-beta.1 → 0.4.0-beta
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/LICENSE +201 -0
- package/README.md +22 -7
- package/codemods/migrate-auth-ui-imports.mjs +439 -0
- package/dist/{adapter-core-CnrOXh1T.d.mts → adapter-core-BWM7cWOp.d.mts} +465 -401
- package/dist/{adapter-core-CtmnMMJ7.mjs → adapter-core-Bt4M5I2g.mjs} +21 -11
- package/dist/auth-interface-Clz-oWq1.d.mts +8 -0
- package/dist/better-auth-helpers-Bkezghej.mjs +541 -0
- package/dist/{better-auth-react-adapter-DNi5PC5D.d.mts → better-auth-react-adapter-BDxJ65mF.d.mts} +389 -302
- package/dist/{better-auth-react-adapter-Dv-o6A6O.mjs → better-auth-react-adapter-aMv8WeDb.mjs} +1 -1
- package/dist/{index-CzsGMS7C.d.mts → index-DHryUj7e.d.mts} +0 -1
- package/dist/index.d.mts +94 -5
- package/dist/index.mjs +4 -3
- package/dist/{neon-auth-Cs2cWh1B.mjs → neon-auth-CS4FpK2X.mjs} +1 -1
- package/dist/next/index.d.mts +161 -73
- package/dist/next/index.mjs +5 -4
- package/dist/next/server/index.d.mts +25 -5
- package/dist/next/server/index.mjs +369 -251
- package/dist/react/adapters/index.d.mts +3 -3
- package/dist/react/adapters/index.mjs +2 -2
- package/dist/react/index.d.mts +6 -5
- package/dist/react/index.mjs +5 -5
- package/dist/react/ui/index.d.mts +1 -2
- package/dist/react/ui/index.mjs +2 -4
- package/dist/react/ui/server.mjs +2 -2
- package/dist/{supabase-adapter-DUqw2fw8.d.mts → supabase-adapter-BGwV0Vu2.d.mts} +429 -373
- package/dist/{supabase-adapter-BlcGPyOf.mjs → supabase-adapter-DBt4LJJd.mjs} +3 -514
- package/dist/types/index.d.mts +2 -2
- package/dist/ui/.safelist.html +1 -1
- package/dist/ui/css.css +2 -2
- package/dist/ui/theme.css +1 -1
- package/dist/ui-CnVnqGns.mjs +3 -0
- package/dist/vanilla/adapters/index.d.mts +4 -3
- package/dist/vanilla/adapters/index.mjs +2 -2
- package/dist/vanilla/index.d.mts +4 -3
- package/dist/vanilla/index.mjs +2 -2
- package/llms.txt +2 -2
- package/package.json +27 -21
- package/dist/chunk-VCZJYX65-CLnrj1o7-D6ZQkcc_.mjs +0 -543
- package/dist/constants-Cupc_bln.mjs +0 -28
- package/dist/neon-auth-BEGCfAe6.d.mts +0 -107
- package/dist/ui-COLWzDsu.mjs +0 -12469
- /package/dist/{adapters-B7YKkjaL.mjs → adapters-CUvhsAvY.mjs} +0 -0
- /package/dist/{index-CPnFzULh.d.mts → index-B0Pd4HOH.d.mts} +0 -0
- /package/dist/{index-OEBbnNdr.d.mts → index-CzpoWrv9.d.mts} +0 -0
package/dist/{better-auth-react-adapter-DNi5PC5D.d.mts → better-auth-react-adapter-BDxJ65mF.d.mts}
RENAMED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { n as NeonAuthAdapterCoreAuthOptions, t as NeonAuthAdapterCore } from "./adapter-core-
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
7
|
-
import * as nanostores8 from "nanostores";
|
|
1
|
+
import { n as NeonAuthAdapterCoreAuthOptions, t as NeonAuthAdapterCore } from "./adapter-core-BWM7cWOp.mjs";
|
|
2
|
+
import * as better_auth_react0 from "better-auth/react";
|
|
3
|
+
import * as jose0 from "jose";
|
|
4
|
+
import * as better_auth_plugins21 from "better-auth/plugins";
|
|
5
|
+
import * as better_auth155 from "better-auth";
|
|
6
|
+
import * as _better_fetch_fetch91 from "@better-fetch/fetch";
|
|
8
7
|
|
|
9
8
|
//#region src/adapters/better-auth-react/better-auth-react-adapter.d.ts
|
|
10
9
|
type BetterAuthReactAdapterOptions = Omit<NeonAuthAdapterCoreAuthOptions, 'baseURL'>;
|
|
@@ -16,7 +15,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
16
15
|
constructor(betterAuthClientOptions: NeonAuthAdapterCoreAuthOptions);
|
|
17
16
|
getBetterAuthInstance(): {
|
|
18
17
|
useActiveOrganization: () => {
|
|
19
|
-
data:
|
|
18
|
+
data: better_auth155.Prettify<{
|
|
20
19
|
id: string;
|
|
21
20
|
name: string;
|
|
22
21
|
slug: string;
|
|
@@ -42,17 +41,17 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
42
41
|
organizationId: string;
|
|
43
42
|
email: string;
|
|
44
43
|
role: "admin" | "member" | "owner";
|
|
45
|
-
status:
|
|
44
|
+
status: better_auth_plugins21.InvitationStatus;
|
|
46
45
|
inviterId: string;
|
|
47
46
|
expiresAt: Date;
|
|
48
47
|
createdAt: Date;
|
|
49
48
|
}[];
|
|
50
49
|
}> | null;
|
|
51
|
-
error: null |
|
|
50
|
+
error: null | _better_fetch_fetch91.BetterFetchError;
|
|
52
51
|
isPending: boolean;
|
|
53
52
|
isRefetching: boolean;
|
|
54
53
|
refetch: (queryParams?: {
|
|
55
|
-
query?:
|
|
54
|
+
query?: better_auth155.SessionQueryParams;
|
|
56
55
|
} | undefined) => Promise<void>;
|
|
57
56
|
};
|
|
58
57
|
useListOrganizations: () => {
|
|
@@ -64,11 +63,11 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
64
63
|
logo?: string | null | undefined | undefined;
|
|
65
64
|
metadata?: any;
|
|
66
65
|
}[] | null;
|
|
67
|
-
error: null |
|
|
66
|
+
error: null | _better_fetch_fetch91.BetterFetchError;
|
|
68
67
|
isPending: boolean;
|
|
69
68
|
isRefetching: boolean;
|
|
70
69
|
refetch: (queryParams?: {
|
|
71
|
-
query?:
|
|
70
|
+
query?: better_auth155.SessionQueryParams;
|
|
72
71
|
} | undefined) => Promise<void>;
|
|
73
72
|
};
|
|
74
73
|
useActiveMember: () => {
|
|
@@ -79,29 +78,29 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
79
78
|
role: string;
|
|
80
79
|
createdAt: Date;
|
|
81
80
|
} | null;
|
|
82
|
-
error: null |
|
|
81
|
+
error: null | _better_fetch_fetch91.BetterFetchError;
|
|
83
82
|
isPending: boolean;
|
|
84
83
|
isRefetching: boolean;
|
|
85
84
|
refetch: (queryParams?: {
|
|
86
|
-
query?:
|
|
85
|
+
query?: better_auth155.SessionQueryParams;
|
|
87
86
|
} | undefined) => Promise<void>;
|
|
88
87
|
};
|
|
89
88
|
useActiveMemberRole: () => {
|
|
90
89
|
data: {
|
|
91
90
|
role: string;
|
|
92
91
|
} | null;
|
|
93
|
-
error: null |
|
|
92
|
+
error: null | _better_fetch_fetch91.BetterFetchError;
|
|
94
93
|
isPending: boolean;
|
|
95
94
|
isRefetching: boolean;
|
|
96
95
|
refetch: (queryParams?: {
|
|
97
|
-
query?:
|
|
96
|
+
query?: better_auth155.SessionQueryParams;
|
|
98
97
|
} | undefined) => Promise<void>;
|
|
99
98
|
};
|
|
100
99
|
} & {
|
|
101
|
-
token: <FetchOptions extends
|
|
100
|
+
token: <FetchOptions extends better_auth155.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth155.Prettify<{
|
|
102
101
|
query?: Record<string, any> | undefined;
|
|
103
102
|
fetchOptions?: FetchOptions | undefined;
|
|
104
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
103
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
105
104
|
token: string;
|
|
106
105
|
}, {
|
|
107
106
|
code?: string | undefined;
|
|
@@ -109,16 +108,16 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
109
108
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
110
109
|
} & {
|
|
111
110
|
admin: {
|
|
112
|
-
setRole: <FetchOptions extends
|
|
111
|
+
setRole: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
113
112
|
userId: string;
|
|
114
113
|
role: "user" | "admin" | ("user" | "admin")[];
|
|
115
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
114
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
116
115
|
userId: string;
|
|
117
116
|
role: "user" | "admin" | ("user" | "admin")[];
|
|
118
117
|
} & {
|
|
119
118
|
fetchOptions?: FetchOptions | undefined;
|
|
120
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
121
|
-
user:
|
|
119
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
120
|
+
user: better_auth_plugins21.UserWithRole;
|
|
122
121
|
}, {
|
|
123
122
|
code?: string | undefined;
|
|
124
123
|
message?: string | undefined;
|
|
@@ -126,44 +125,36 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
126
125
|
};
|
|
127
126
|
} & {
|
|
128
127
|
admin: {
|
|
129
|
-
getUser: <FetchOptions extends
|
|
128
|
+
getUser: <FetchOptions extends better_auth155.ClientFetchOption<never, Partial<{
|
|
130
129
|
id: string;
|
|
131
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
130
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
132
131
|
query: {
|
|
133
132
|
id: string;
|
|
134
133
|
};
|
|
135
134
|
fetchOptions?: FetchOptions | undefined;
|
|
136
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
137
|
-
id: string;
|
|
138
|
-
createdAt: Date;
|
|
139
|
-
updatedAt: Date;
|
|
140
|
-
email: string;
|
|
141
|
-
emailVerified: boolean;
|
|
142
|
-
name: string;
|
|
143
|
-
image?: string | null | undefined;
|
|
144
|
-
}, {
|
|
135
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<better_auth_plugins21.UserWithRole, {
|
|
145
136
|
code?: string | undefined;
|
|
146
137
|
message?: string | undefined;
|
|
147
138
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
148
139
|
};
|
|
149
140
|
} & {
|
|
150
141
|
admin: {
|
|
151
|
-
createUser: <FetchOptions extends
|
|
142
|
+
createUser: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
152
143
|
email: string;
|
|
153
|
-
password
|
|
144
|
+
password?: string | undefined;
|
|
154
145
|
name: string;
|
|
155
146
|
role?: "user" | "admin" | ("user" | "admin")[] | undefined;
|
|
156
147
|
data?: Record<string, any> | undefined;
|
|
157
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
148
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
158
149
|
email: string;
|
|
159
|
-
password
|
|
150
|
+
password?: string | undefined;
|
|
160
151
|
name: string;
|
|
161
152
|
role?: "user" | "admin" | ("user" | "admin")[] | undefined;
|
|
162
153
|
data?: Record<string, any> | undefined;
|
|
163
154
|
} & {
|
|
164
155
|
fetchOptions?: FetchOptions | undefined;
|
|
165
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
166
|
-
user:
|
|
156
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
157
|
+
user: better_auth_plugins21.UserWithRole;
|
|
167
158
|
}, {
|
|
168
159
|
code?: string | undefined;
|
|
169
160
|
message?: string | undefined;
|
|
@@ -171,22 +162,22 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
171
162
|
};
|
|
172
163
|
} & {
|
|
173
164
|
admin: {
|
|
174
|
-
updateUser: <FetchOptions extends
|
|
165
|
+
updateUser: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
175
166
|
userId: unknown;
|
|
176
167
|
data: Record<any, any>;
|
|
177
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
168
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
178
169
|
userId: unknown;
|
|
179
170
|
data: Record<any, any>;
|
|
180
171
|
} & {
|
|
181
172
|
fetchOptions?: FetchOptions | undefined;
|
|
182
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
173
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<better_auth_plugins21.UserWithRole, {
|
|
183
174
|
code?: string | undefined;
|
|
184
175
|
message?: string | undefined;
|
|
185
176
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
186
177
|
};
|
|
187
178
|
} & {
|
|
188
179
|
admin: {
|
|
189
|
-
listUsers: <FetchOptions extends
|
|
180
|
+
listUsers: <FetchOptions extends better_auth155.ClientFetchOption<never, Partial<{
|
|
190
181
|
searchValue?: string | undefined;
|
|
191
182
|
searchField?: "email" | "name" | undefined;
|
|
192
183
|
searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
|
|
@@ -197,7 +188,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
197
188
|
filterField?: string | undefined;
|
|
198
189
|
filterValue?: string | number | boolean | undefined;
|
|
199
190
|
filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
|
|
200
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
191
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
201
192
|
query: {
|
|
202
193
|
searchValue?: string | undefined;
|
|
203
194
|
searchField?: "email" | "name" | undefined;
|
|
@@ -211,8 +202,8 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
211
202
|
filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
|
|
212
203
|
};
|
|
213
204
|
fetchOptions?: FetchOptions | undefined;
|
|
214
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
215
|
-
users:
|
|
205
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<NonNullable<{
|
|
206
|
+
users: better_auth_plugins21.UserWithRole[];
|
|
216
207
|
total: number;
|
|
217
208
|
limit: number | undefined;
|
|
218
209
|
offset: number | undefined;
|
|
@@ -226,14 +217,14 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
226
217
|
};
|
|
227
218
|
} & {
|
|
228
219
|
admin: {
|
|
229
|
-
listUserSessions: <FetchOptions extends
|
|
220
|
+
listUserSessions: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
230
221
|
userId: unknown;
|
|
231
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
222
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
232
223
|
userId: unknown;
|
|
233
224
|
} & {
|
|
234
225
|
fetchOptions?: FetchOptions | undefined;
|
|
235
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
236
|
-
sessions:
|
|
226
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
227
|
+
sessions: better_auth_plugins21.SessionWithImpersonatedBy[];
|
|
237
228
|
}, {
|
|
238
229
|
code?: string | undefined;
|
|
239
230
|
message?: string | undefined;
|
|
@@ -241,22 +232,14 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
241
232
|
};
|
|
242
233
|
} & {
|
|
243
234
|
admin: {
|
|
244
|
-
unbanUser: <FetchOptions extends
|
|
235
|
+
unbanUser: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
245
236
|
userId: unknown;
|
|
246
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
237
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
247
238
|
userId: unknown;
|
|
248
239
|
} & {
|
|
249
240
|
fetchOptions?: FetchOptions | undefined;
|
|
250
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
251
|
-
user:
|
|
252
|
-
id: string;
|
|
253
|
-
createdAt: Date;
|
|
254
|
-
updatedAt: Date;
|
|
255
|
-
email: string;
|
|
256
|
-
emailVerified: boolean;
|
|
257
|
-
name: string;
|
|
258
|
-
image?: string | null | undefined;
|
|
259
|
-
} & Record<string, any>;
|
|
241
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
242
|
+
user: better_auth_plugins21.UserWithRole;
|
|
260
243
|
}, {
|
|
261
244
|
code?: string | undefined;
|
|
262
245
|
message?: string | undefined;
|
|
@@ -264,26 +247,18 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
264
247
|
};
|
|
265
248
|
} & {
|
|
266
249
|
admin: {
|
|
267
|
-
banUser: <FetchOptions extends
|
|
250
|
+
banUser: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
268
251
|
userId: unknown;
|
|
269
252
|
banReason?: string | undefined;
|
|
270
253
|
banExpiresIn?: number | undefined;
|
|
271
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
254
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
272
255
|
userId: unknown;
|
|
273
256
|
banReason?: string | undefined;
|
|
274
257
|
banExpiresIn?: number | undefined;
|
|
275
258
|
} & {
|
|
276
259
|
fetchOptions?: FetchOptions | undefined;
|
|
277
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
278
|
-
user:
|
|
279
|
-
id: string;
|
|
280
|
-
createdAt: Date;
|
|
281
|
-
updatedAt: Date;
|
|
282
|
-
email: string;
|
|
283
|
-
emailVerified: boolean;
|
|
284
|
-
name: string;
|
|
285
|
-
image?: string | null | undefined;
|
|
286
|
-
} & Record<string, any>;
|
|
260
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
261
|
+
user: better_auth_plugins21.UserWithRole;
|
|
287
262
|
}, {
|
|
288
263
|
code?: string | undefined;
|
|
289
264
|
message?: string | undefined;
|
|
@@ -291,13 +266,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
291
266
|
};
|
|
292
267
|
} & {
|
|
293
268
|
admin: {
|
|
294
|
-
impersonateUser: <FetchOptions extends
|
|
269
|
+
impersonateUser: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
295
270
|
userId: unknown;
|
|
296
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
271
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
297
272
|
userId: unknown;
|
|
298
273
|
} & {
|
|
299
274
|
fetchOptions?: FetchOptions | undefined;
|
|
300
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
275
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
301
276
|
session: {
|
|
302
277
|
id: string;
|
|
303
278
|
createdAt: Date;
|
|
@@ -308,7 +283,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
308
283
|
ipAddress?: string | null | undefined;
|
|
309
284
|
userAgent?: string | null | undefined;
|
|
310
285
|
};
|
|
311
|
-
user:
|
|
286
|
+
user: better_auth_plugins21.UserWithRole;
|
|
312
287
|
}, {
|
|
313
288
|
code?: string | undefined;
|
|
314
289
|
message?: string | undefined;
|
|
@@ -316,12 +291,29 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
316
291
|
};
|
|
317
292
|
} & {
|
|
318
293
|
admin: {
|
|
319
|
-
stopImpersonating: <FetchOptions extends
|
|
294
|
+
stopImpersonating: <FetchOptions extends better_auth155.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth155.Prettify<{
|
|
320
295
|
query?: Record<string, any> | undefined;
|
|
321
296
|
fetchOptions?: FetchOptions | undefined;
|
|
322
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
323
|
-
session:
|
|
324
|
-
|
|
297
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
298
|
+
session: {
|
|
299
|
+
id: string;
|
|
300
|
+
createdAt: Date;
|
|
301
|
+
updatedAt: Date;
|
|
302
|
+
userId: string;
|
|
303
|
+
expiresAt: Date;
|
|
304
|
+
token: string;
|
|
305
|
+
ipAddress?: string | null | undefined;
|
|
306
|
+
userAgent?: string | null | undefined;
|
|
307
|
+
} & Record<string, any>;
|
|
308
|
+
user: {
|
|
309
|
+
id: string;
|
|
310
|
+
createdAt: Date;
|
|
311
|
+
updatedAt: Date;
|
|
312
|
+
email: string;
|
|
313
|
+
emailVerified: boolean;
|
|
314
|
+
name: string;
|
|
315
|
+
image?: string | null | undefined;
|
|
316
|
+
} & Record<string, any>;
|
|
325
317
|
}, {
|
|
326
318
|
code?: string | undefined;
|
|
327
319
|
message?: string | undefined;
|
|
@@ -329,13 +321,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
329
321
|
};
|
|
330
322
|
} & {
|
|
331
323
|
admin: {
|
|
332
|
-
revokeUserSession: <FetchOptions extends
|
|
324
|
+
revokeUserSession: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
333
325
|
sessionToken: string;
|
|
334
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
326
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
335
327
|
sessionToken: string;
|
|
336
328
|
} & {
|
|
337
329
|
fetchOptions?: FetchOptions | undefined;
|
|
338
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
330
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
339
331
|
success: boolean;
|
|
340
332
|
}, {
|
|
341
333
|
code?: string | undefined;
|
|
@@ -344,13 +336,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
344
336
|
};
|
|
345
337
|
} & {
|
|
346
338
|
admin: {
|
|
347
|
-
revokeUserSessions: <FetchOptions extends
|
|
339
|
+
revokeUserSessions: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
348
340
|
userId: unknown;
|
|
349
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
341
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
350
342
|
userId: unknown;
|
|
351
343
|
} & {
|
|
352
344
|
fetchOptions?: FetchOptions | undefined;
|
|
353
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
345
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
354
346
|
success: boolean;
|
|
355
347
|
}, {
|
|
356
348
|
code?: string | undefined;
|
|
@@ -359,13 +351,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
359
351
|
};
|
|
360
352
|
} & {
|
|
361
353
|
admin: {
|
|
362
|
-
removeUser: <FetchOptions extends
|
|
354
|
+
removeUser: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
363
355
|
userId: unknown;
|
|
364
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
356
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
365
357
|
userId: unknown;
|
|
366
358
|
} & {
|
|
367
359
|
fetchOptions?: FetchOptions | undefined;
|
|
368
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
360
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
369
361
|
success: boolean;
|
|
370
362
|
}, {
|
|
371
363
|
code?: string | undefined;
|
|
@@ -374,15 +366,15 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
374
366
|
};
|
|
375
367
|
} & {
|
|
376
368
|
admin: {
|
|
377
|
-
setUserPassword: <FetchOptions extends
|
|
369
|
+
setUserPassword: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
378
370
|
newPassword: string;
|
|
379
371
|
userId: unknown;
|
|
380
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
372
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
381
373
|
newPassword: string;
|
|
382
374
|
userId: unknown;
|
|
383
375
|
} & {
|
|
384
376
|
fetchOptions?: FetchOptions | undefined;
|
|
385
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
377
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
386
378
|
status: boolean;
|
|
387
379
|
}, {
|
|
388
380
|
code?: string | undefined;
|
|
@@ -391,7 +383,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
391
383
|
};
|
|
392
384
|
} & {
|
|
393
385
|
admin: {
|
|
394
|
-
hasPermission: <FetchOptions extends
|
|
386
|
+
hasPermission: <FetchOptions extends better_auth155.ClientFetchOption<Partial<({
|
|
395
387
|
permission: {
|
|
396
388
|
readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
397
389
|
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
@@ -406,7 +398,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
406
398
|
}) & {
|
|
407
399
|
userId?: string | undefined;
|
|
408
400
|
role?: "user" | "admin" | undefined;
|
|
409
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
401
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<(({
|
|
410
402
|
permission: {
|
|
411
403
|
readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
412
404
|
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
@@ -423,7 +415,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
423
415
|
role?: "user" | "admin" | undefined;
|
|
424
416
|
}) & {
|
|
425
417
|
fetchOptions?: FetchOptions | undefined;
|
|
426
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
418
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
427
419
|
error: null;
|
|
428
420
|
success: boolean;
|
|
429
421
|
}, {
|
|
@@ -433,14 +425,14 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
433
425
|
};
|
|
434
426
|
} & {
|
|
435
427
|
organization: {
|
|
436
|
-
create: <FetchOptions extends
|
|
428
|
+
create: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
437
429
|
name: string;
|
|
438
430
|
slug: string;
|
|
439
431
|
userId?: string | undefined;
|
|
440
432
|
logo?: string | undefined;
|
|
441
433
|
metadata?: Record<string, any> | undefined;
|
|
442
434
|
keepCurrentActiveOrganization?: boolean | undefined;
|
|
443
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
435
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
444
436
|
name: string;
|
|
445
437
|
slug: string;
|
|
446
438
|
userId?: string | undefined;
|
|
@@ -449,7 +441,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
449
441
|
keepCurrentActiveOrganization?: boolean | undefined;
|
|
450
442
|
} & {
|
|
451
443
|
fetchOptions?: FetchOptions | undefined;
|
|
452
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
444
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
453
445
|
id: string;
|
|
454
446
|
name: string;
|
|
455
447
|
slug: string;
|
|
@@ -472,7 +464,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
472
464
|
};
|
|
473
465
|
} & {
|
|
474
466
|
organization: {
|
|
475
|
-
update: <FetchOptions extends
|
|
467
|
+
update: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
476
468
|
data: {
|
|
477
469
|
name?: string | undefined;
|
|
478
470
|
slug?: string | undefined;
|
|
@@ -480,7 +472,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
480
472
|
metadata?: Record<string, any> | undefined;
|
|
481
473
|
} & Partial<{}>;
|
|
482
474
|
organizationId?: string | undefined;
|
|
483
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
475
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
484
476
|
data: {
|
|
485
477
|
name?: string | undefined;
|
|
486
478
|
slug?: string | undefined;
|
|
@@ -490,15 +482,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
490
482
|
organizationId?: string | undefined;
|
|
491
483
|
} & {
|
|
492
484
|
fetchOptions?: FetchOptions | undefined;
|
|
493
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
485
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
494
486
|
id: string;
|
|
495
487
|
name: string;
|
|
496
488
|
slug: string;
|
|
497
489
|
createdAt: Date;
|
|
498
490
|
logo?: string | null | undefined | undefined;
|
|
499
491
|
metadata?: any;
|
|
500
|
-
} & {
|
|
501
|
-
metadata: Record<string, any> | undefined;
|
|
502
492
|
}, {
|
|
503
493
|
code?: string | undefined;
|
|
504
494
|
message?: string | undefined;
|
|
@@ -506,13 +496,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
506
496
|
};
|
|
507
497
|
} & {
|
|
508
498
|
organization: {
|
|
509
|
-
delete: <FetchOptions extends
|
|
499
|
+
delete: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
510
500
|
organizationId: string;
|
|
511
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
501
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
512
502
|
organizationId: string;
|
|
513
503
|
} & {
|
|
514
504
|
fetchOptions?: FetchOptions | undefined;
|
|
515
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
505
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
516
506
|
id: string;
|
|
517
507
|
name: string;
|
|
518
508
|
slug: string;
|
|
@@ -526,15 +516,15 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
526
516
|
};
|
|
527
517
|
} & {
|
|
528
518
|
organization: {
|
|
529
|
-
setActive: <FetchOptions extends
|
|
519
|
+
setActive: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
530
520
|
organizationId?: string | null | undefined;
|
|
531
521
|
organizationSlug?: string | undefined;
|
|
532
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
522
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth155.Prettify<{
|
|
533
523
|
organizationId?: string | null | undefined;
|
|
534
524
|
organizationSlug?: string | undefined;
|
|
535
525
|
} & {
|
|
536
526
|
fetchOptions?: FetchOptions | undefined;
|
|
537
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
527
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
538
528
|
members: {
|
|
539
529
|
id: string;
|
|
540
530
|
organizationId: string;
|
|
@@ -553,7 +543,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
553
543
|
organizationId: string;
|
|
554
544
|
email: string;
|
|
555
545
|
role: "admin" | "member" | "owner";
|
|
556
|
-
status:
|
|
546
|
+
status: better_auth_plugins21.InvitationStatus;
|
|
557
547
|
inviterId: string;
|
|
558
548
|
expiresAt: Date;
|
|
559
549
|
createdAt: Date;
|
|
@@ -572,18 +562,18 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
572
562
|
};
|
|
573
563
|
} & {
|
|
574
564
|
organization: {
|
|
575
|
-
getFullOrganization: <FetchOptions extends
|
|
565
|
+
getFullOrganization: <FetchOptions extends better_auth155.ClientFetchOption<never, Partial<{
|
|
576
566
|
organizationId?: string | undefined;
|
|
577
567
|
organizationSlug?: string | undefined;
|
|
578
568
|
membersLimit?: string | number | undefined;
|
|
579
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
569
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth155.Prettify<{
|
|
580
570
|
query?: {
|
|
581
571
|
organizationId?: string | undefined;
|
|
582
572
|
organizationSlug?: string | undefined;
|
|
583
573
|
membersLimit?: string | number | undefined;
|
|
584
574
|
} | undefined;
|
|
585
575
|
fetchOptions?: FetchOptions | undefined;
|
|
586
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
576
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
587
577
|
members: {
|
|
588
578
|
id: string;
|
|
589
579
|
organizationId: string;
|
|
@@ -602,7 +592,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
602
592
|
organizationId: string;
|
|
603
593
|
email: string;
|
|
604
594
|
role: "admin" | "member" | "owner";
|
|
605
|
-
status:
|
|
595
|
+
status: better_auth_plugins21.InvitationStatus;
|
|
606
596
|
inviterId: string;
|
|
607
597
|
expiresAt: Date;
|
|
608
598
|
createdAt: Date;
|
|
@@ -621,10 +611,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
621
611
|
};
|
|
622
612
|
} & {
|
|
623
613
|
organization: {
|
|
624
|
-
list: <FetchOptions extends
|
|
614
|
+
list: <FetchOptions extends better_auth155.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth155.Prettify<{
|
|
625
615
|
query?: Record<string, any> | undefined;
|
|
626
616
|
fetchOptions?: FetchOptions | undefined;
|
|
627
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
617
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
628
618
|
id: string;
|
|
629
619
|
name: string;
|
|
630
620
|
slug: string;
|
|
@@ -638,46 +628,55 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
638
628
|
};
|
|
639
629
|
} & {
|
|
640
630
|
organization: {
|
|
641
|
-
inviteMember: <FetchOptions extends
|
|
631
|
+
inviteMember: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
642
632
|
email: string;
|
|
643
633
|
role: "admin" | "member" | "owner" | ("admin" | "member" | "owner")[];
|
|
644
634
|
organizationId?: string | undefined;
|
|
645
635
|
resend?: boolean | undefined;
|
|
646
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
636
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
647
637
|
email: string;
|
|
648
638
|
role: "admin" | "member" | "owner" | ("admin" | "member" | "owner")[];
|
|
649
639
|
organizationId?: string | undefined;
|
|
650
640
|
resend?: boolean | undefined;
|
|
651
641
|
} & {
|
|
652
642
|
fetchOptions?: FetchOptions | undefined;
|
|
653
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
643
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<NonNullable<{
|
|
654
644
|
id: string;
|
|
655
645
|
organizationId: string;
|
|
656
646
|
email: string;
|
|
657
647
|
role: "admin" | "member" | "owner";
|
|
658
|
-
status:
|
|
648
|
+
status: better_auth_plugins21.InvitationStatus;
|
|
659
649
|
inviterId: string;
|
|
660
650
|
expiresAt: Date;
|
|
661
651
|
createdAt: Date;
|
|
662
|
-
}
|
|
652
|
+
} | {
|
|
653
|
+
id: string;
|
|
654
|
+
organizationId: string;
|
|
655
|
+
email: string;
|
|
656
|
+
role: "admin" | "member" | "owner";
|
|
657
|
+
status: better_auth_plugins21.InvitationStatus;
|
|
658
|
+
inviterId: string;
|
|
659
|
+
expiresAt: Date;
|
|
660
|
+
createdAt: Date;
|
|
661
|
+
}>, {
|
|
663
662
|
code?: string | undefined;
|
|
664
663
|
message?: string | undefined;
|
|
665
664
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
666
665
|
};
|
|
667
666
|
} & {
|
|
668
667
|
organization: {
|
|
669
|
-
cancelInvitation: <FetchOptions extends
|
|
668
|
+
cancelInvitation: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
670
669
|
invitationId: string;
|
|
671
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
670
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
672
671
|
invitationId: string;
|
|
673
672
|
} & {
|
|
674
673
|
fetchOptions?: FetchOptions | undefined;
|
|
675
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
674
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
676
675
|
id: string;
|
|
677
676
|
organizationId: string;
|
|
678
677
|
email: string;
|
|
679
678
|
role: "admin" | "member" | "owner";
|
|
680
|
-
status:
|
|
679
|
+
status: better_auth_plugins21.InvitationStatus;
|
|
681
680
|
inviterId: string;
|
|
682
681
|
expiresAt: Date;
|
|
683
682
|
createdAt: Date;
|
|
@@ -688,19 +687,19 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
688
687
|
};
|
|
689
688
|
} & {
|
|
690
689
|
organization: {
|
|
691
|
-
acceptInvitation: <FetchOptions extends
|
|
690
|
+
acceptInvitation: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
692
691
|
invitationId: string;
|
|
693
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
692
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
694
693
|
invitationId: string;
|
|
695
694
|
} & {
|
|
696
695
|
fetchOptions?: FetchOptions | undefined;
|
|
697
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
696
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
698
697
|
invitation: {
|
|
699
698
|
id: string;
|
|
700
699
|
organizationId: string;
|
|
701
700
|
email: string;
|
|
702
701
|
role: "admin" | "member" | "owner";
|
|
703
|
-
status:
|
|
702
|
+
status: better_auth_plugins21.InvitationStatus;
|
|
704
703
|
inviterId: string;
|
|
705
704
|
expiresAt: Date;
|
|
706
705
|
createdAt: Date;
|
|
@@ -719,19 +718,19 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
719
718
|
};
|
|
720
719
|
} & {
|
|
721
720
|
organization: {
|
|
722
|
-
getInvitation: <FetchOptions extends
|
|
721
|
+
getInvitation: <FetchOptions extends better_auth155.ClientFetchOption<never, Partial<{
|
|
723
722
|
id: string;
|
|
724
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
723
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
725
724
|
query: {
|
|
726
725
|
id: string;
|
|
727
726
|
};
|
|
728
727
|
fetchOptions?: FetchOptions | undefined;
|
|
729
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
728
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<NonNullable<{
|
|
730
729
|
id: string;
|
|
731
730
|
organizationId: string;
|
|
732
731
|
email: string;
|
|
733
732
|
role: "admin" | "member" | "owner";
|
|
734
|
-
status:
|
|
733
|
+
status: better_auth_plugins21.InvitationStatus;
|
|
735
734
|
inviterId: string;
|
|
736
735
|
expiresAt: Date;
|
|
737
736
|
createdAt: Date;
|
|
@@ -746,19 +745,19 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
746
745
|
};
|
|
747
746
|
} & {
|
|
748
747
|
organization: {
|
|
749
|
-
rejectInvitation: <FetchOptions extends
|
|
748
|
+
rejectInvitation: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
750
749
|
invitationId: string;
|
|
751
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
750
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
752
751
|
invitationId: string;
|
|
753
752
|
} & {
|
|
754
753
|
fetchOptions?: FetchOptions | undefined;
|
|
755
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
754
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
756
755
|
invitation: {
|
|
757
756
|
id: string;
|
|
758
757
|
organizationId: string;
|
|
759
758
|
email: string;
|
|
760
759
|
role: "member" | "admin" | "owner";
|
|
761
|
-
status:
|
|
760
|
+
status: better_auth_plugins21.InvitationStatus;
|
|
762
761
|
inviterId: string;
|
|
763
762
|
expiresAt: Date;
|
|
764
763
|
createdAt: Date;
|
|
@@ -771,19 +770,19 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
771
770
|
};
|
|
772
771
|
} & {
|
|
773
772
|
organization: {
|
|
774
|
-
listInvitations: <FetchOptions extends
|
|
773
|
+
listInvitations: <FetchOptions extends better_auth155.ClientFetchOption<never, Partial<{
|
|
775
774
|
organizationId?: string | undefined;
|
|
776
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
775
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth155.Prettify<{
|
|
777
776
|
query?: {
|
|
778
777
|
organizationId?: string | undefined;
|
|
779
778
|
} | undefined;
|
|
780
779
|
fetchOptions?: FetchOptions | undefined;
|
|
781
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
780
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
782
781
|
id: string;
|
|
783
782
|
organizationId: string;
|
|
784
783
|
email: string;
|
|
785
784
|
role: "admin" | "member" | "owner";
|
|
786
|
-
status:
|
|
785
|
+
status: better_auth_plugins21.InvitationStatus;
|
|
787
786
|
inviterId: string;
|
|
788
787
|
expiresAt: Date;
|
|
789
788
|
createdAt: Date;
|
|
@@ -794,10 +793,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
794
793
|
};
|
|
795
794
|
} & {
|
|
796
795
|
organization: {
|
|
797
|
-
getActiveMember: <FetchOptions extends
|
|
796
|
+
getActiveMember: <FetchOptions extends better_auth155.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth155.Prettify<{
|
|
798
797
|
query?: Record<string, any> | undefined;
|
|
799
798
|
fetchOptions?: FetchOptions | undefined;
|
|
800
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
799
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<Omit<{
|
|
801
800
|
id: string;
|
|
802
801
|
organizationId: string;
|
|
803
802
|
role: "admin" | "member" | "owner";
|
|
@@ -810,7 +809,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
810
809
|
image?: string | undefined;
|
|
811
810
|
};
|
|
812
811
|
} & {
|
|
813
|
-
user:
|
|
812
|
+
user: better_auth155.User;
|
|
814
813
|
}, "user"> & {
|
|
815
814
|
user: {
|
|
816
815
|
id: string;
|
|
@@ -825,13 +824,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
825
824
|
};
|
|
826
825
|
} & {
|
|
827
826
|
organization: {
|
|
828
|
-
checkSlug: <FetchOptions extends
|
|
827
|
+
checkSlug: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
829
828
|
slug: string;
|
|
830
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
829
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
831
830
|
slug: string;
|
|
832
831
|
} & {
|
|
833
832
|
fetchOptions?: FetchOptions | undefined;
|
|
834
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
833
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
835
834
|
status: boolean;
|
|
836
835
|
}, {
|
|
837
836
|
code?: string | undefined;
|
|
@@ -840,15 +839,15 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
840
839
|
};
|
|
841
840
|
} & {
|
|
842
841
|
organization: {
|
|
843
|
-
removeMember: <FetchOptions extends
|
|
842
|
+
removeMember: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
844
843
|
memberIdOrEmail: string;
|
|
845
844
|
organizationId?: string | undefined;
|
|
846
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
845
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
847
846
|
memberIdOrEmail: string;
|
|
848
847
|
organizationId?: string | undefined;
|
|
849
848
|
} & {
|
|
850
849
|
fetchOptions?: FetchOptions | undefined;
|
|
851
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
850
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
852
851
|
member: {
|
|
853
852
|
id: string;
|
|
854
853
|
organizationId: string;
|
|
@@ -869,17 +868,17 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
869
868
|
};
|
|
870
869
|
} & {
|
|
871
870
|
organization: {
|
|
872
|
-
updateMemberRole: <FetchOptions extends
|
|
873
|
-
role:
|
|
871
|
+
updateMemberRole: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
872
|
+
role: better_auth155.LiteralString | "admin" | "member" | "owner" | ("admin" | "member" | "owner")[] | better_auth155.LiteralString[];
|
|
874
873
|
memberId: string;
|
|
875
874
|
organizationId?: string | undefined;
|
|
876
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
877
|
-
role:
|
|
875
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
876
|
+
role: better_auth155.LiteralString | "admin" | "member" | "owner" | ("admin" | "member" | "owner")[] | better_auth155.LiteralString[];
|
|
878
877
|
memberId: string;
|
|
879
878
|
organizationId?: string | undefined;
|
|
880
879
|
} & {
|
|
881
880
|
fetchOptions?: FetchOptions | undefined;
|
|
882
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
881
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
883
882
|
id: string;
|
|
884
883
|
organizationId: string;
|
|
885
884
|
role: "member" | "admin" | "owner";
|
|
@@ -898,13 +897,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
898
897
|
};
|
|
899
898
|
} & {
|
|
900
899
|
organization: {
|
|
901
|
-
leave: <FetchOptions extends
|
|
900
|
+
leave: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
902
901
|
organizationId: string;
|
|
903
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
902
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
904
903
|
organizationId: string;
|
|
905
904
|
} & {
|
|
906
905
|
fetchOptions?: FetchOptions | undefined;
|
|
907
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
906
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<NonNullable<Omit<{
|
|
908
907
|
id: string;
|
|
909
908
|
organizationId: string;
|
|
910
909
|
role: "admin" | "member" | "owner";
|
|
@@ -917,7 +916,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
917
916
|
image?: string | undefined;
|
|
918
917
|
};
|
|
919
918
|
} & {
|
|
920
|
-
user:
|
|
919
|
+
user: better_auth155.User;
|
|
921
920
|
}, "user"> & {
|
|
922
921
|
user: {
|
|
923
922
|
id: string;
|
|
@@ -932,19 +931,19 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
932
931
|
};
|
|
933
932
|
} & {
|
|
934
933
|
organization: {
|
|
935
|
-
listUserInvitations: <FetchOptions extends
|
|
934
|
+
listUserInvitations: <FetchOptions extends better_auth155.ClientFetchOption<never, Partial<{
|
|
936
935
|
email?: string | undefined;
|
|
937
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
936
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth155.Prettify<{
|
|
938
937
|
query?: {
|
|
939
938
|
email?: string | undefined;
|
|
940
939
|
} | undefined;
|
|
941
940
|
fetchOptions?: FetchOptions | undefined;
|
|
942
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
941
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<(Omit<{
|
|
943
942
|
id: string;
|
|
944
943
|
organizationId: string;
|
|
945
944
|
email: string;
|
|
946
945
|
role: "admin" | "member" | "owner";
|
|
947
|
-
status:
|
|
946
|
+
status: better_auth_plugins21.InvitationStatus;
|
|
948
947
|
inviterId: string;
|
|
949
948
|
expiresAt: Date;
|
|
950
949
|
createdAt: Date;
|
|
@@ -966,7 +965,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
966
965
|
};
|
|
967
966
|
} & {
|
|
968
967
|
organization: {
|
|
969
|
-
listMembers: <FetchOptions extends
|
|
968
|
+
listMembers: <FetchOptions extends better_auth155.ClientFetchOption<never, Partial<{
|
|
970
969
|
limit?: string | number | undefined;
|
|
971
970
|
offset?: string | number | undefined;
|
|
972
971
|
sortBy?: string | undefined;
|
|
@@ -976,7 +975,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
976
975
|
filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
|
|
977
976
|
organizationId?: string | undefined;
|
|
978
977
|
organizationSlug?: string | undefined;
|
|
979
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
978
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth155.Prettify<{
|
|
980
979
|
query?: {
|
|
981
980
|
limit?: string | number | undefined;
|
|
982
981
|
offset?: string | number | undefined;
|
|
@@ -989,7 +988,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
989
988
|
organizationSlug?: string | undefined;
|
|
990
989
|
} | undefined;
|
|
991
990
|
fetchOptions?: FetchOptions | undefined;
|
|
992
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
991
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
993
992
|
members: ({
|
|
994
993
|
id: string;
|
|
995
994
|
organizationId: string;
|
|
@@ -1018,18 +1017,18 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1018
1017
|
};
|
|
1019
1018
|
} & {
|
|
1020
1019
|
organization: {
|
|
1021
|
-
getActiveMemberRole: <FetchOptions extends
|
|
1020
|
+
getActiveMemberRole: <FetchOptions extends better_auth155.ClientFetchOption<never, Partial<{
|
|
1022
1021
|
userId?: string | undefined;
|
|
1023
1022
|
organizationId?: string | undefined;
|
|
1024
1023
|
organizationSlug?: string | undefined;
|
|
1025
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
1024
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth155.Prettify<{
|
|
1026
1025
|
query?: {
|
|
1027
1026
|
userId?: string | undefined;
|
|
1028
1027
|
organizationId?: string | undefined;
|
|
1029
1028
|
organizationSlug?: string | undefined;
|
|
1030
1029
|
} | undefined;
|
|
1031
1030
|
fetchOptions?: FetchOptions | undefined;
|
|
1032
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1031
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
1033
1032
|
role: "admin" | "member" | "owner";
|
|
1034
1033
|
}, {
|
|
1035
1034
|
code?: string | undefined;
|
|
@@ -1038,7 +1037,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1038
1037
|
};
|
|
1039
1038
|
} & {
|
|
1040
1039
|
organization: {
|
|
1041
|
-
hasPermission: <FetchOptions extends
|
|
1040
|
+
hasPermission: <FetchOptions extends better_auth155.ClientFetchOption<Partial<({
|
|
1042
1041
|
permission: {
|
|
1043
1042
|
readonly organization?: ("delete" | "update")[] | undefined;
|
|
1044
1043
|
readonly member?: ("delete" | "create" | "update")[] | undefined;
|
|
@@ -1058,7 +1057,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1058
1057
|
permission?: never | undefined;
|
|
1059
1058
|
}) & {
|
|
1060
1059
|
organizationId?: string | undefined;
|
|
1061
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1060
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<(({
|
|
1062
1061
|
permission: {
|
|
1063
1062
|
readonly organization?: ("delete" | "update")[] | undefined;
|
|
1064
1063
|
readonly member?: ("delete" | "create" | "update")[] | undefined;
|
|
@@ -1080,7 +1079,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1080
1079
|
organizationId?: string | undefined;
|
|
1081
1080
|
}) & {
|
|
1082
1081
|
fetchOptions?: FetchOptions | undefined;
|
|
1083
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1082
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
1084
1083
|
error: null;
|
|
1085
1084
|
success: boolean;
|
|
1086
1085
|
}, {
|
|
@@ -1090,15 +1089,15 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1090
1089
|
};
|
|
1091
1090
|
} & {
|
|
1092
1091
|
emailOtp: {
|
|
1093
|
-
sendVerificationOtp: <FetchOptions extends
|
|
1092
|
+
sendVerificationOtp: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
1094
1093
|
email: string;
|
|
1095
1094
|
type: "sign-in" | "email-verification" | "forget-password";
|
|
1096
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1095
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
1097
1096
|
email: string;
|
|
1098
1097
|
type: "sign-in" | "email-verification" | "forget-password";
|
|
1099
1098
|
} & {
|
|
1100
1099
|
fetchOptions?: FetchOptions | undefined;
|
|
1101
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1100
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
1102
1101
|
success: boolean;
|
|
1103
1102
|
}, {
|
|
1104
1103
|
code?: string | undefined;
|
|
@@ -1107,17 +1106,17 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1107
1106
|
};
|
|
1108
1107
|
} & {
|
|
1109
1108
|
emailOtp: {
|
|
1110
|
-
checkVerificationOtp: <FetchOptions extends
|
|
1109
|
+
checkVerificationOtp: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
1111
1110
|
email: string;
|
|
1112
1111
|
type: "sign-in" | "email-verification" | "forget-password";
|
|
1113
1112
|
otp: string;
|
|
1114
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1113
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
1115
1114
|
email: string;
|
|
1116
1115
|
type: "sign-in" | "email-verification" | "forget-password";
|
|
1117
1116
|
otp: string;
|
|
1118
1117
|
} & {
|
|
1119
1118
|
fetchOptions?: FetchOptions | undefined;
|
|
1120
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1119
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
1121
1120
|
success: boolean;
|
|
1122
1121
|
}, {
|
|
1123
1122
|
code?: string | undefined;
|
|
@@ -1126,38 +1125,38 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1126
1125
|
};
|
|
1127
1126
|
} & {
|
|
1128
1127
|
emailOtp: {
|
|
1129
|
-
verifyEmail: <FetchOptions extends
|
|
1128
|
+
verifyEmail: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
1130
1129
|
email: string;
|
|
1131
1130
|
otp: string;
|
|
1132
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1131
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
1133
1132
|
email: string;
|
|
1134
1133
|
otp: string;
|
|
1135
1134
|
} & {
|
|
1136
1135
|
fetchOptions?: FetchOptions | undefined;
|
|
1137
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1136
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<NonNullable<{
|
|
1138
1137
|
status: boolean;
|
|
1139
1138
|
token: string;
|
|
1140
1139
|
user: {
|
|
1141
1140
|
id: string;
|
|
1141
|
+
createdAt: Date;
|
|
1142
|
+
updatedAt: Date;
|
|
1142
1143
|
email: string;
|
|
1143
1144
|
emailVerified: boolean;
|
|
1144
1145
|
name: string;
|
|
1145
|
-
image
|
|
1146
|
-
|
|
1147
|
-
updatedAt: Date;
|
|
1148
|
-
};
|
|
1146
|
+
image?: string | null | undefined;
|
|
1147
|
+
} & Record<string, any>;
|
|
1149
1148
|
} | {
|
|
1150
1149
|
status: boolean;
|
|
1151
1150
|
token: null;
|
|
1152
1151
|
user: {
|
|
1153
1152
|
id: string;
|
|
1153
|
+
createdAt: Date;
|
|
1154
|
+
updatedAt: Date;
|
|
1154
1155
|
email: string;
|
|
1155
1156
|
emailVerified: boolean;
|
|
1156
1157
|
name: string;
|
|
1157
|
-
image
|
|
1158
|
-
|
|
1159
|
-
updatedAt: Date;
|
|
1160
|
-
};
|
|
1158
|
+
image?: string | null | undefined;
|
|
1159
|
+
} & Record<string, any>;
|
|
1161
1160
|
}>, {
|
|
1162
1161
|
code?: string | undefined;
|
|
1163
1162
|
message?: string | undefined;
|
|
@@ -1165,39 +1164,54 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1165
1164
|
};
|
|
1166
1165
|
} & {
|
|
1167
1166
|
signIn: {
|
|
1168
|
-
emailOtp: <FetchOptions extends
|
|
1167
|
+
emailOtp: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
1169
1168
|
email: string;
|
|
1170
1169
|
otp: string;
|
|
1171
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1170
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
1172
1171
|
email: string;
|
|
1173
1172
|
otp: string;
|
|
1174
1173
|
} & {
|
|
1175
1174
|
fetchOptions?: FetchOptions | undefined;
|
|
1176
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1175
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
1177
1176
|
token: string;
|
|
1178
1177
|
user: {
|
|
1179
1178
|
id: string;
|
|
1179
|
+
createdAt: Date;
|
|
1180
|
+
updatedAt: Date;
|
|
1180
1181
|
email: string;
|
|
1181
1182
|
emailVerified: boolean;
|
|
1182
1183
|
name: string;
|
|
1183
|
-
image
|
|
1184
|
-
createdAt: Date;
|
|
1185
|
-
updatedAt: Date;
|
|
1184
|
+
image?: string | null | undefined;
|
|
1186
1185
|
};
|
|
1187
1186
|
}, {
|
|
1188
1187
|
code?: string | undefined;
|
|
1189
1188
|
message?: string | undefined;
|
|
1190
1189
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1191
1190
|
};
|
|
1191
|
+
} & {
|
|
1192
|
+
emailOtp: {
|
|
1193
|
+
requestPasswordReset: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
1194
|
+
email: string;
|
|
1195
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
1196
|
+
email: string;
|
|
1197
|
+
} & {
|
|
1198
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1199
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
1200
|
+
success: boolean;
|
|
1201
|
+
}, {
|
|
1202
|
+
code?: string | undefined;
|
|
1203
|
+
message?: string | undefined;
|
|
1204
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1205
|
+
};
|
|
1192
1206
|
} & {
|
|
1193
1207
|
forgetPassword: {
|
|
1194
|
-
emailOtp: <FetchOptions extends
|
|
1208
|
+
emailOtp: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
1195
1209
|
email: string;
|
|
1196
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1210
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
1197
1211
|
email: string;
|
|
1198
1212
|
} & {
|
|
1199
1213
|
fetchOptions?: FetchOptions | undefined;
|
|
1200
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1214
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
1201
1215
|
success: boolean;
|
|
1202
1216
|
}, {
|
|
1203
1217
|
code?: string | undefined;
|
|
@@ -1206,17 +1220,17 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1206
1220
|
};
|
|
1207
1221
|
} & {
|
|
1208
1222
|
emailOtp: {
|
|
1209
|
-
resetPassword: <FetchOptions extends
|
|
1223
|
+
resetPassword: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
1210
1224
|
email: string;
|
|
1211
1225
|
otp: string;
|
|
1212
1226
|
password: string;
|
|
1213
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1227
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
1214
1228
|
email: string;
|
|
1215
1229
|
otp: string;
|
|
1216
1230
|
password: string;
|
|
1217
1231
|
} & {
|
|
1218
1232
|
fetchOptions?: FetchOptions | undefined;
|
|
1219
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1233
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
1220
1234
|
success: boolean;
|
|
1221
1235
|
}, {
|
|
1222
1236
|
code?: string | undefined;
|
|
@@ -1225,7 +1239,61 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1225
1239
|
};
|
|
1226
1240
|
} & {
|
|
1227
1241
|
signIn: {
|
|
1228
|
-
|
|
1242
|
+
magicLink: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
1243
|
+
email: string;
|
|
1244
|
+
name?: string | undefined;
|
|
1245
|
+
callbackURL?: string | undefined;
|
|
1246
|
+
newUserCallbackURL?: string | undefined;
|
|
1247
|
+
errorCallbackURL?: string | undefined;
|
|
1248
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
1249
|
+
email: string;
|
|
1250
|
+
name?: string | undefined;
|
|
1251
|
+
callbackURL?: string | undefined;
|
|
1252
|
+
newUserCallbackURL?: string | undefined;
|
|
1253
|
+
errorCallbackURL?: string | undefined;
|
|
1254
|
+
} & {
|
|
1255
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1256
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
1257
|
+
status: boolean;
|
|
1258
|
+
}, {
|
|
1259
|
+
code?: string | undefined;
|
|
1260
|
+
message?: string | undefined;
|
|
1261
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1262
|
+
};
|
|
1263
|
+
} & {
|
|
1264
|
+
magicLink: {
|
|
1265
|
+
verify: <FetchOptions extends better_auth155.ClientFetchOption<never, Partial<{
|
|
1266
|
+
token: string;
|
|
1267
|
+
callbackURL?: string | undefined;
|
|
1268
|
+
errorCallbackURL?: string | undefined;
|
|
1269
|
+
newUserCallbackURL?: string | undefined;
|
|
1270
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
1271
|
+
query: {
|
|
1272
|
+
token: string;
|
|
1273
|
+
callbackURL?: string | undefined;
|
|
1274
|
+
errorCallbackURL?: string | undefined;
|
|
1275
|
+
newUserCallbackURL?: string | undefined;
|
|
1276
|
+
};
|
|
1277
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1278
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
1279
|
+
token: string;
|
|
1280
|
+
user: {
|
|
1281
|
+
id: string;
|
|
1282
|
+
createdAt: Date;
|
|
1283
|
+
updatedAt: Date;
|
|
1284
|
+
email: string;
|
|
1285
|
+
emailVerified: boolean;
|
|
1286
|
+
name: string;
|
|
1287
|
+
image?: string | null | undefined;
|
|
1288
|
+
};
|
|
1289
|
+
}, {
|
|
1290
|
+
code?: string | undefined;
|
|
1291
|
+
message?: string | undefined;
|
|
1292
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1293
|
+
};
|
|
1294
|
+
} & {
|
|
1295
|
+
signIn: {
|
|
1296
|
+
social: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
1229
1297
|
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
|
|
1230
1298
|
callbackURL?: string | undefined;
|
|
1231
1299
|
newUserCallbackURL?: string | undefined;
|
|
@@ -1242,7 +1310,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1242
1310
|
requestSignUp?: boolean | undefined;
|
|
1243
1311
|
loginHint?: string | undefined;
|
|
1244
1312
|
additionalData?: Record<string, any> | undefined;
|
|
1245
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1313
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
1246
1314
|
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
|
|
1247
1315
|
callbackURL?: string | undefined;
|
|
1248
1316
|
newUserCallbackURL?: string | undefined;
|
|
@@ -1261,7 +1329,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1261
1329
|
additionalData?: Record<string, any> | undefined;
|
|
1262
1330
|
} & {
|
|
1263
1331
|
fetchOptions?: FetchOptions | undefined;
|
|
1264
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1332
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<NonNullable<{
|
|
1265
1333
|
redirect: boolean;
|
|
1266
1334
|
url: string;
|
|
1267
1335
|
} | {
|
|
@@ -1283,10 +1351,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1283
1351
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1284
1352
|
};
|
|
1285
1353
|
} & {
|
|
1286
|
-
signOut: <FetchOptions extends
|
|
1354
|
+
signOut: <FetchOptions extends better_auth155.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth155.Prettify<{
|
|
1287
1355
|
query?: Record<string, any> | undefined;
|
|
1288
1356
|
fetchOptions?: FetchOptions | undefined;
|
|
1289
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1357
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
1290
1358
|
success: boolean;
|
|
1291
1359
|
}, {
|
|
1292
1360
|
code?: string | undefined;
|
|
@@ -1294,21 +1362,21 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1294
1362
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1295
1363
|
} & {
|
|
1296
1364
|
signUp: {
|
|
1297
|
-
email: <FetchOptions extends
|
|
1365
|
+
email: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
1298
1366
|
name: string;
|
|
1299
1367
|
email: string;
|
|
1300
1368
|
password: string;
|
|
1301
1369
|
image?: string | undefined;
|
|
1302
1370
|
callbackURL?: string | undefined;
|
|
1303
1371
|
rememberMe?: boolean | undefined;
|
|
1304
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1372
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
1305
1373
|
email: string;
|
|
1306
1374
|
name: string;
|
|
1307
1375
|
password: string;
|
|
1308
1376
|
image?: string | undefined;
|
|
1309
1377
|
callbackURL?: string | undefined;
|
|
1310
1378
|
fetchOptions?: FetchOptions | undefined;
|
|
1311
|
-
} & {} & {}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1379
|
+
} & {} & {}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<NonNullable<{
|
|
1312
1380
|
token: null;
|
|
1313
1381
|
user: {
|
|
1314
1382
|
id: string;
|
|
@@ -1337,19 +1405,19 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1337
1405
|
};
|
|
1338
1406
|
} & {
|
|
1339
1407
|
signIn: {
|
|
1340
|
-
email: <FetchOptions extends
|
|
1408
|
+
email: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
1341
1409
|
email: string;
|
|
1342
1410
|
password: string;
|
|
1343
1411
|
callbackURL?: string | undefined;
|
|
1344
1412
|
rememberMe?: boolean | undefined;
|
|
1345
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1413
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
1346
1414
|
email: string;
|
|
1347
1415
|
password: string;
|
|
1348
1416
|
callbackURL?: string | undefined;
|
|
1349
1417
|
rememberMe?: boolean | undefined;
|
|
1350
1418
|
} & {
|
|
1351
1419
|
fetchOptions?: FetchOptions | undefined;
|
|
1352
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1420
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
1353
1421
|
redirect: boolean;
|
|
1354
1422
|
token: string;
|
|
1355
1423
|
url?: string | undefined;
|
|
@@ -1368,120 +1436,120 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1368
1436
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1369
1437
|
};
|
|
1370
1438
|
} & {
|
|
1371
|
-
resetPassword: <FetchOptions extends
|
|
1439
|
+
resetPassword: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
1372
1440
|
newPassword: string;
|
|
1373
1441
|
token?: string | undefined;
|
|
1374
1442
|
}> & Record<string, any>, Partial<{
|
|
1375
1443
|
token?: string | undefined;
|
|
1376
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1444
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
1377
1445
|
newPassword: string;
|
|
1378
1446
|
token?: string | undefined;
|
|
1379
1447
|
} & {
|
|
1380
1448
|
fetchOptions?: FetchOptions | undefined;
|
|
1381
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1449
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
1382
1450
|
status: boolean;
|
|
1383
1451
|
}, {
|
|
1384
1452
|
code?: string | undefined;
|
|
1385
1453
|
message?: string | undefined;
|
|
1386
1454
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1387
1455
|
} & {
|
|
1388
|
-
verifyEmail: <FetchOptions extends
|
|
1456
|
+
verifyEmail: <FetchOptions extends better_auth155.ClientFetchOption<never, Partial<{
|
|
1389
1457
|
token: string;
|
|
1390
1458
|
callbackURL?: string | undefined;
|
|
1391
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1459
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
1392
1460
|
query: {
|
|
1393
1461
|
token: string;
|
|
1394
1462
|
callbackURL?: string | undefined;
|
|
1395
1463
|
};
|
|
1396
1464
|
fetchOptions?: FetchOptions | undefined;
|
|
1397
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1465
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<NonNullable<void | {
|
|
1398
1466
|
status: boolean;
|
|
1399
1467
|
}>, {
|
|
1400
1468
|
code?: string | undefined;
|
|
1401
1469
|
message?: string | undefined;
|
|
1402
1470
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1403
1471
|
} & {
|
|
1404
|
-
sendVerificationEmail: <FetchOptions extends
|
|
1472
|
+
sendVerificationEmail: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
1405
1473
|
email: string;
|
|
1406
1474
|
callbackURL?: string | undefined;
|
|
1407
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1475
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
1408
1476
|
email: string;
|
|
1409
1477
|
callbackURL?: string | undefined;
|
|
1410
1478
|
} & {
|
|
1411
1479
|
fetchOptions?: FetchOptions | undefined;
|
|
1412
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1480
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
1413
1481
|
status: boolean;
|
|
1414
1482
|
}, {
|
|
1415
1483
|
code?: string | undefined;
|
|
1416
1484
|
message?: string | undefined;
|
|
1417
1485
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1418
1486
|
} & {
|
|
1419
|
-
changeEmail: <FetchOptions extends
|
|
1487
|
+
changeEmail: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
1420
1488
|
newEmail: string;
|
|
1421
1489
|
callbackURL?: string | undefined;
|
|
1422
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1490
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
1423
1491
|
newEmail: string;
|
|
1424
1492
|
callbackURL?: string | undefined;
|
|
1425
1493
|
} & {
|
|
1426
1494
|
fetchOptions?: FetchOptions | undefined;
|
|
1427
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1495
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
1428
1496
|
status: boolean;
|
|
1429
1497
|
}, {
|
|
1430
1498
|
code?: string | undefined;
|
|
1431
1499
|
message?: string | undefined;
|
|
1432
1500
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1433
1501
|
} & {
|
|
1434
|
-
changePassword: <FetchOptions extends
|
|
1502
|
+
changePassword: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
1435
1503
|
newPassword: string;
|
|
1436
1504
|
currentPassword: string;
|
|
1437
1505
|
revokeOtherSessions?: boolean | undefined;
|
|
1438
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1506
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
1439
1507
|
newPassword: string;
|
|
1440
1508
|
currentPassword: string;
|
|
1441
1509
|
revokeOtherSessions?: boolean | undefined;
|
|
1442
1510
|
} & {
|
|
1443
1511
|
fetchOptions?: FetchOptions | undefined;
|
|
1444
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1512
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
1445
1513
|
token: string | null;
|
|
1446
1514
|
user: {
|
|
1447
1515
|
id: string;
|
|
1448
|
-
email: string;
|
|
1449
|
-
name: string;
|
|
1450
|
-
image: string | null | undefined;
|
|
1451
|
-
emailVerified: boolean;
|
|
1452
1516
|
createdAt: Date;
|
|
1453
1517
|
updatedAt: Date;
|
|
1454
|
-
|
|
1518
|
+
email: string;
|
|
1519
|
+
emailVerified: boolean;
|
|
1520
|
+
name: string;
|
|
1521
|
+
image?: string | null | undefined;
|
|
1522
|
+
} & Record<string, any>;
|
|
1455
1523
|
}, {
|
|
1456
1524
|
code?: string | undefined;
|
|
1457
1525
|
message?: string | undefined;
|
|
1458
1526
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1459
1527
|
} & {
|
|
1460
|
-
updateUser: <FetchOptions extends
|
|
1528
|
+
updateUser: <FetchOptions extends better_auth155.ClientFetchOption<Partial<Partial<{}> & {
|
|
1461
1529
|
name?: string | undefined;
|
|
1462
1530
|
image?: string | undefined | null;
|
|
1463
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
1531
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth155.Prettify<{
|
|
1464
1532
|
image?: (string | null) | undefined;
|
|
1465
1533
|
name?: string | undefined;
|
|
1466
1534
|
fetchOptions?: FetchOptions | undefined;
|
|
1467
|
-
} & Partial<{} & {}>> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1535
|
+
} & Partial<{} & {}>> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
1468
1536
|
status: boolean;
|
|
1469
1537
|
}, {
|
|
1470
1538
|
code?: string | undefined;
|
|
1471
1539
|
message?: string | undefined;
|
|
1472
1540
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1473
1541
|
} & {
|
|
1474
|
-
deleteUser: <FetchOptions extends
|
|
1542
|
+
deleteUser: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
1475
1543
|
callbackURL?: string | undefined;
|
|
1476
1544
|
password?: string | undefined;
|
|
1477
1545
|
token?: string | undefined;
|
|
1478
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
1546
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth155.Prettify<{
|
|
1479
1547
|
callbackURL?: string | undefined;
|
|
1480
1548
|
password?: string | undefined;
|
|
1481
1549
|
token?: string | undefined;
|
|
1482
1550
|
} & {
|
|
1483
1551
|
fetchOptions?: FetchOptions | undefined;
|
|
1484
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1552
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
1485
1553
|
success: boolean;
|
|
1486
1554
|
message: string;
|
|
1487
1555
|
}, {
|
|
@@ -1489,15 +1557,15 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1489
1557
|
message?: string | undefined;
|
|
1490
1558
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1491
1559
|
} & {
|
|
1492
|
-
requestPasswordReset: <FetchOptions extends
|
|
1560
|
+
requestPasswordReset: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
1493
1561
|
email: string;
|
|
1494
1562
|
redirectTo?: string | undefined;
|
|
1495
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1563
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
1496
1564
|
email: string;
|
|
1497
1565
|
redirectTo?: string | undefined;
|
|
1498
1566
|
} & {
|
|
1499
1567
|
fetchOptions?: FetchOptions | undefined;
|
|
1500
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1568
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
1501
1569
|
status: boolean;
|
|
1502
1570
|
message: string;
|
|
1503
1571
|
}, {
|
|
@@ -1506,25 +1574,25 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1506
1574
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1507
1575
|
} & {
|
|
1508
1576
|
resetPassword: {
|
|
1509
|
-
":token": <FetchOptions extends
|
|
1577
|
+
":token": <FetchOptions extends better_auth155.ClientFetchOption<never, Partial<{
|
|
1510
1578
|
callbackURL: string;
|
|
1511
1579
|
}> & Record<string, any>, {
|
|
1512
1580
|
token: string;
|
|
1513
|
-
}>>(data_0:
|
|
1581
|
+
}>>(data_0: better_auth155.Prettify<{
|
|
1514
1582
|
query: {
|
|
1515
1583
|
callbackURL: string;
|
|
1516
1584
|
};
|
|
1517
1585
|
fetchOptions?: FetchOptions | undefined;
|
|
1518
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1586
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<never, {
|
|
1519
1587
|
code?: string | undefined;
|
|
1520
1588
|
message?: string | undefined;
|
|
1521
1589
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1522
1590
|
};
|
|
1523
1591
|
} & {
|
|
1524
|
-
listSessions: <FetchOptions extends
|
|
1592
|
+
listSessions: <FetchOptions extends better_auth155.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth155.Prettify<{
|
|
1525
1593
|
query?: Record<string, any> | undefined;
|
|
1526
1594
|
fetchOptions?: FetchOptions | undefined;
|
|
1527
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1595
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<better_auth155.Prettify<{
|
|
1528
1596
|
id: string;
|
|
1529
1597
|
createdAt: Date;
|
|
1530
1598
|
updatedAt: Date;
|
|
@@ -1538,40 +1606,40 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1538
1606
|
message?: string | undefined;
|
|
1539
1607
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1540
1608
|
} & {
|
|
1541
|
-
revokeSession: <FetchOptions extends
|
|
1609
|
+
revokeSession: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
1542
1610
|
token: string;
|
|
1543
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1611
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
1544
1612
|
token: string;
|
|
1545
1613
|
} & {
|
|
1546
1614
|
fetchOptions?: FetchOptions | undefined;
|
|
1547
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1615
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
1548
1616
|
status: boolean;
|
|
1549
1617
|
}, {
|
|
1550
1618
|
code?: string | undefined;
|
|
1551
1619
|
message?: string | undefined;
|
|
1552
1620
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1553
1621
|
} & {
|
|
1554
|
-
revokeSessions: <FetchOptions extends
|
|
1622
|
+
revokeSessions: <FetchOptions extends better_auth155.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth155.Prettify<{
|
|
1555
1623
|
query?: Record<string, any> | undefined;
|
|
1556
1624
|
fetchOptions?: FetchOptions | undefined;
|
|
1557
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1625
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
1558
1626
|
status: boolean;
|
|
1559
1627
|
}, {
|
|
1560
1628
|
code?: string | undefined;
|
|
1561
1629
|
message?: string | undefined;
|
|
1562
1630
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1563
1631
|
} & {
|
|
1564
|
-
revokeOtherSessions: <FetchOptions extends
|
|
1632
|
+
revokeOtherSessions: <FetchOptions extends better_auth155.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth155.Prettify<{
|
|
1565
1633
|
query?: Record<string, any> | undefined;
|
|
1566
1634
|
fetchOptions?: FetchOptions | undefined;
|
|
1567
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1635
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
1568
1636
|
status: boolean;
|
|
1569
1637
|
}, {
|
|
1570
1638
|
code?: string | undefined;
|
|
1571
1639
|
message?: string | undefined;
|
|
1572
1640
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1573
1641
|
} & {
|
|
1574
|
-
linkSocial: <FetchOptions extends
|
|
1642
|
+
linkSocial: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
1575
1643
|
provider: unknown;
|
|
1576
1644
|
callbackURL?: string | undefined;
|
|
1577
1645
|
idToken?: {
|
|
@@ -1586,7 +1654,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1586
1654
|
errorCallbackURL?: string | undefined;
|
|
1587
1655
|
disableRedirect?: boolean | undefined;
|
|
1588
1656
|
additionalData?: Record<string, any> | undefined;
|
|
1589
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1657
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
1590
1658
|
provider: unknown;
|
|
1591
1659
|
callbackURL?: string | undefined;
|
|
1592
1660
|
idToken?: {
|
|
@@ -1603,7 +1671,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1603
1671
|
additionalData?: Record<string, any> | undefined;
|
|
1604
1672
|
} & {
|
|
1605
1673
|
fetchOptions?: FetchOptions | undefined;
|
|
1606
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1674
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
1607
1675
|
url: string;
|
|
1608
1676
|
redirect: boolean;
|
|
1609
1677
|
}, {
|
|
@@ -1611,33 +1679,33 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1611
1679
|
message?: string | undefined;
|
|
1612
1680
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1613
1681
|
} & {
|
|
1614
|
-
listAccounts: <FetchOptions extends
|
|
1682
|
+
listAccounts: <FetchOptions extends better_auth155.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth155.Prettify<{
|
|
1615
1683
|
query?: Record<string, any> | undefined;
|
|
1616
1684
|
fetchOptions?: FetchOptions | undefined;
|
|
1617
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1685
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
1686
|
+
scopes: string[];
|
|
1618
1687
|
id: string;
|
|
1619
|
-
providerId: string;
|
|
1620
1688
|
createdAt: Date;
|
|
1621
1689
|
updatedAt: Date;
|
|
1622
|
-
accountId: string;
|
|
1623
1690
|
userId: string;
|
|
1624
|
-
|
|
1691
|
+
providerId: string;
|
|
1692
|
+
accountId: string;
|
|
1625
1693
|
}[], {
|
|
1626
1694
|
code?: string | undefined;
|
|
1627
1695
|
message?: string | undefined;
|
|
1628
1696
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1629
1697
|
} & {
|
|
1630
1698
|
deleteUser: {
|
|
1631
|
-
callback: <FetchOptions extends
|
|
1699
|
+
callback: <FetchOptions extends better_auth155.ClientFetchOption<never, Partial<{
|
|
1632
1700
|
token: string;
|
|
1633
1701
|
callbackURL?: string | undefined;
|
|
1634
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1702
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
1635
1703
|
query: {
|
|
1636
1704
|
token: string;
|
|
1637
1705
|
callbackURL?: string | undefined;
|
|
1638
1706
|
};
|
|
1639
1707
|
fetchOptions?: FetchOptions | undefined;
|
|
1640
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1708
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
1641
1709
|
success: boolean;
|
|
1642
1710
|
message: string;
|
|
1643
1711
|
}, {
|
|
@@ -1646,32 +1714,32 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1646
1714
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1647
1715
|
};
|
|
1648
1716
|
} & {
|
|
1649
|
-
unlinkAccount: <FetchOptions extends
|
|
1717
|
+
unlinkAccount: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
1650
1718
|
providerId: string;
|
|
1651
1719
|
accountId?: string | undefined;
|
|
1652
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1720
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
1653
1721
|
providerId: string;
|
|
1654
1722
|
accountId?: string | undefined;
|
|
1655
1723
|
} & {
|
|
1656
1724
|
fetchOptions?: FetchOptions | undefined;
|
|
1657
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1725
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
1658
1726
|
status: boolean;
|
|
1659
1727
|
}, {
|
|
1660
1728
|
code?: string | undefined;
|
|
1661
1729
|
message?: string | undefined;
|
|
1662
1730
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1663
1731
|
} & {
|
|
1664
|
-
refreshToken: <FetchOptions extends
|
|
1732
|
+
refreshToken: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
1665
1733
|
providerId: string;
|
|
1666
1734
|
accountId?: string | undefined;
|
|
1667
1735
|
userId?: string | undefined;
|
|
1668
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1736
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
1669
1737
|
providerId: string;
|
|
1670
1738
|
accountId?: string | undefined;
|
|
1671
1739
|
userId?: string | undefined;
|
|
1672
1740
|
} & {
|
|
1673
1741
|
fetchOptions?: FetchOptions | undefined;
|
|
1674
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1742
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
1675
1743
|
accessToken: string | undefined;
|
|
1676
1744
|
refreshToken: string | undefined;
|
|
1677
1745
|
accessTokenExpiresAt: Date | undefined;
|
|
@@ -1685,17 +1753,17 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1685
1753
|
message?: string | undefined;
|
|
1686
1754
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1687
1755
|
} & {
|
|
1688
|
-
getAccessToken: <FetchOptions extends
|
|
1756
|
+
getAccessToken: <FetchOptions extends better_auth155.ClientFetchOption<Partial<{
|
|
1689
1757
|
providerId: string;
|
|
1690
1758
|
accountId?: string | undefined;
|
|
1691
1759
|
userId?: string | undefined;
|
|
1692
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1760
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth155.Prettify<{
|
|
1693
1761
|
providerId: string;
|
|
1694
1762
|
accountId?: string | undefined;
|
|
1695
1763
|
userId?: string | undefined;
|
|
1696
1764
|
} & {
|
|
1697
1765
|
fetchOptions?: FetchOptions | undefined;
|
|
1698
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1766
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
1699
1767
|
accessToken: string;
|
|
1700
1768
|
accessTokenExpiresAt: Date | undefined;
|
|
1701
1769
|
scopes: string[];
|
|
@@ -1705,31 +1773,31 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1705
1773
|
message?: string | undefined;
|
|
1706
1774
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1707
1775
|
} & {
|
|
1708
|
-
accountInfo: <FetchOptions extends
|
|
1776
|
+
accountInfo: <FetchOptions extends better_auth155.ClientFetchOption<never, Partial<{
|
|
1709
1777
|
accountId?: string | undefined;
|
|
1710
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
1778
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth155.Prettify<{
|
|
1711
1779
|
query?: {
|
|
1712
1780
|
accountId?: string | undefined;
|
|
1713
1781
|
} | undefined;
|
|
1714
1782
|
fetchOptions?: FetchOptions | undefined;
|
|
1715
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1716
|
-
user:
|
|
1783
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
1784
|
+
user: better_auth155.OAuth2UserInfo;
|
|
1717
1785
|
data: Record<string, any>;
|
|
1718
1786
|
}, {
|
|
1719
1787
|
code?: string | undefined;
|
|
1720
1788
|
message?: string | undefined;
|
|
1721
1789
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1722
1790
|
} & {
|
|
1723
|
-
getSession: <FetchOptions extends
|
|
1791
|
+
getSession: <FetchOptions extends better_auth155.ClientFetchOption<never, Partial<{
|
|
1724
1792
|
disableCookieCache?: unknown;
|
|
1725
1793
|
disableRefresh?: unknown;
|
|
1726
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
1794
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth155.Prettify<{
|
|
1727
1795
|
query?: {
|
|
1728
1796
|
disableCookieCache?: unknown;
|
|
1729
1797
|
disableRefresh?: unknown;
|
|
1730
1798
|
} | undefined;
|
|
1731
1799
|
fetchOptions?: FetchOptions | undefined;
|
|
1732
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1800
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch91.BetterFetchResponse<{
|
|
1733
1801
|
user: {
|
|
1734
1802
|
id: string;
|
|
1735
1803
|
createdAt: Date;
|
|
@@ -1783,7 +1851,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1783
1851
|
statusText: string;
|
|
1784
1852
|
};
|
|
1785
1853
|
} | {
|
|
1786
|
-
data:
|
|
1854
|
+
data: jose0.JSONWebKeySet;
|
|
1787
1855
|
error: null;
|
|
1788
1856
|
}>;
|
|
1789
1857
|
} & {
|
|
@@ -1825,7 +1893,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1825
1893
|
organizationId: string;
|
|
1826
1894
|
email: string;
|
|
1827
1895
|
role: "admin" | "member" | "owner";
|
|
1828
|
-
status:
|
|
1896
|
+
status: better_auth_plugins21.InvitationStatus;
|
|
1829
1897
|
inviterId: string;
|
|
1830
1898
|
expiresAt: Date;
|
|
1831
1899
|
createdAt: Date;
|
|
@@ -1851,7 +1919,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1851
1919
|
organizationId: string;
|
|
1852
1920
|
email: string;
|
|
1853
1921
|
role: "admin" | "member" | "owner";
|
|
1854
|
-
status:
|
|
1922
|
+
status: better_auth_plugins21.InvitationStatus;
|
|
1855
1923
|
inviterId: string;
|
|
1856
1924
|
expiresAt: Date;
|
|
1857
1925
|
createdAt: Date;
|
|
@@ -1931,9 +1999,9 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1931
1999
|
} | null;
|
|
1932
2000
|
isPending: boolean;
|
|
1933
2001
|
isRefetching: boolean;
|
|
1934
|
-
error:
|
|
2002
|
+
error: _better_fetch_fetch91.BetterFetchError | null;
|
|
1935
2003
|
refetch: (queryParams?: {
|
|
1936
|
-
query?:
|
|
2004
|
+
query?: better_auth155.SessionQueryParams;
|
|
1937
2005
|
} | undefined) => Promise<void>;
|
|
1938
2006
|
};
|
|
1939
2007
|
$Infer: {
|
|
@@ -1965,25 +2033,26 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1965
2033
|
};
|
|
1966
2034
|
};
|
|
1967
2035
|
};
|
|
1968
|
-
$fetch:
|
|
1969
|
-
plugins: (
|
|
2036
|
+
$fetch: _better_fetch_fetch91.BetterFetch<{
|
|
2037
|
+
plugins: (_better_fetch_fetch91.BetterFetchPlugin<Record<string, any>> | {
|
|
1970
2038
|
id: string;
|
|
1971
2039
|
name: string;
|
|
1972
2040
|
hooks: {
|
|
1973
|
-
onSuccess(context:
|
|
2041
|
+
onSuccess(context: _better_fetch_fetch91.SuccessContext<any>): void;
|
|
1974
2042
|
};
|
|
1975
2043
|
} | {
|
|
1976
2044
|
id: string;
|
|
1977
2045
|
name: string;
|
|
1978
2046
|
hooks: {
|
|
1979
|
-
onSuccess: ((context:
|
|
1980
|
-
onError: ((context:
|
|
1981
|
-
onRequest: (<T extends Record<string, any>>(context:
|
|
1982
|
-
onResponse: ((context:
|
|
2047
|
+
onSuccess: ((context: _better_fetch_fetch91.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
2048
|
+
onError: ((context: _better_fetch_fetch91.ErrorContext) => Promise<void> | void) | undefined;
|
|
2049
|
+
onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch91.RequestContext<T>) => Promise<_better_fetch_fetch91.RequestContext | void> | _better_fetch_fetch91.RequestContext | void) | undefined;
|
|
2050
|
+
onResponse: ((context: _better_fetch_fetch91.ResponseContext) => Promise<Response | void | _better_fetch_fetch91.ResponseContext> | Response | _better_fetch_fetch91.ResponseContext | void) | undefined;
|
|
1983
2051
|
};
|
|
1984
2052
|
})[];
|
|
1985
2053
|
cache?: RequestCache | undefined;
|
|
1986
2054
|
method: string;
|
|
2055
|
+
window?: null | undefined;
|
|
1987
2056
|
headers?: (HeadersInit & (HeadersInit | {
|
|
1988
2057
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
1989
2058
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
@@ -1998,13 +2067,12 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1998
2067
|
referrer?: string | undefined;
|
|
1999
2068
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
2000
2069
|
signal?: (AbortSignal | null) | undefined;
|
|
2001
|
-
|
|
2002
|
-
onRetry?: ((response: _better_fetch_fetch96.ResponseContext) => Promise<void> | void) | undefined;
|
|
2070
|
+
onRetry?: ((response: _better_fetch_fetch91.ResponseContext) => Promise<void> | void) | undefined;
|
|
2003
2071
|
hookOptions?: {
|
|
2004
2072
|
cloneResponse?: boolean;
|
|
2005
2073
|
} | undefined;
|
|
2006
2074
|
timeout?: number | undefined;
|
|
2007
|
-
customFetchImpl:
|
|
2075
|
+
customFetchImpl: _better_fetch_fetch91.FetchEsque;
|
|
2008
2076
|
baseURL: string;
|
|
2009
2077
|
throw?: boolean | undefined;
|
|
2010
2078
|
auth?: ({
|
|
@@ -2024,17 +2092,17 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
2024
2092
|
params?: any;
|
|
2025
2093
|
duplex?: "full" | "half" | undefined;
|
|
2026
2094
|
jsonParser: (text: string) => Promise<any> | any;
|
|
2027
|
-
retry?:
|
|
2095
|
+
retry?: _better_fetch_fetch91.RetryOptions | undefined;
|
|
2028
2096
|
retryAttempt?: number | undefined;
|
|
2029
|
-
output?: (
|
|
2030
|
-
errorSchema?:
|
|
2097
|
+
output?: (_better_fetch_fetch91.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
2098
|
+
errorSchema?: _better_fetch_fetch91.StandardSchemaV1 | undefined;
|
|
2031
2099
|
disableValidation?: boolean | undefined;
|
|
2032
2100
|
disableSignal?: boolean | undefined;
|
|
2033
2101
|
}, unknown, unknown, {}>;
|
|
2034
2102
|
$store: {
|
|
2035
2103
|
notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
|
|
2036
2104
|
listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
|
|
2037
|
-
atoms: Record<string,
|
|
2105
|
+
atoms: Record<string, better_auth_react0.WritableAtom<any>>;
|
|
2038
2106
|
};
|
|
2039
2107
|
$ERROR_CODES: {
|
|
2040
2108
|
readonly FAILED_TO_CREATE_USER: "Failed to create user";
|
|
@@ -2057,6 +2125,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
2057
2125
|
readonly YOU_CANNOT_REMOVE_YOURSELF: "You cannot remove yourself";
|
|
2058
2126
|
readonly YOU_ARE_NOT_ALLOWED_TO_SET_NON_EXISTENT_VALUE: "You are not allowed to set a non-existent role value";
|
|
2059
2127
|
readonly YOU_CANNOT_IMPERSONATE_ADMINS: "You cannot impersonate admins";
|
|
2128
|
+
readonly INVALID_ROLE_TYPE: "Invalid role type";
|
|
2060
2129
|
readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION: "You are not allowed to create a new organization";
|
|
2061
2130
|
readonly YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS: "You have reached the maximum number of organizations";
|
|
2062
2131
|
readonly ORGANIZATION_ALREADY_EXISTS: "Organization already exists";
|
|
@@ -2138,6 +2207,24 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
2138
2207
|
readonly FAILED_TO_UNLINK_LAST_ACCOUNT: "You can't unlink your last account";
|
|
2139
2208
|
readonly ACCOUNT_NOT_FOUND: "Account not found";
|
|
2140
2209
|
readonly USER_ALREADY_HAS_PASSWORD: "User already has a password. Provide that to delete the account.";
|
|
2210
|
+
readonly CROSS_SITE_NAVIGATION_LOGIN_BLOCKED: "Cross-site navigation login blocked. This request appears to be a CSRF attack.";
|
|
2211
|
+
readonly VERIFICATION_EMAIL_NOT_ENABLED: "Verification email isn't enabled";
|
|
2212
|
+
readonly EMAIL_ALREADY_VERIFIED: "Email is already verified";
|
|
2213
|
+
readonly EMAIL_MISMATCH: "Email mismatch";
|
|
2214
|
+
readonly SESSION_NOT_FRESH: "Session is not fresh";
|
|
2215
|
+
readonly LINKED_ACCOUNT_ALREADY_EXISTS: "Linked account already exists";
|
|
2216
|
+
readonly INVALID_ORIGIN: "Invalid origin";
|
|
2217
|
+
readonly INVALID_CALLBACK_URL: "Invalid callbackURL";
|
|
2218
|
+
readonly INVALID_REDIRECT_URL: "Invalid redirectURL";
|
|
2219
|
+
readonly INVALID_ERROR_CALLBACK_URL: "Invalid errorCallbackURL";
|
|
2220
|
+
readonly INVALID_NEW_USER_CALLBACK_URL: "Invalid newUserCallbackURL";
|
|
2221
|
+
readonly MISSING_OR_NULL_ORIGIN: "Missing or null Origin";
|
|
2222
|
+
readonly CALLBACK_URL_REQUIRED: "callbackURL is required";
|
|
2223
|
+
readonly FAILED_TO_CREATE_VERIFICATION: "Unable to create verification";
|
|
2224
|
+
readonly FIELD_NOT_ALLOWED: "Field not allowed to be set";
|
|
2225
|
+
readonly ASYNC_VALIDATION_NOT_SUPPORTED: "Async validation is not supported";
|
|
2226
|
+
readonly VALIDATION_ERROR: "Validation Error";
|
|
2227
|
+
readonly MISSING_FIELD: "Field is required";
|
|
2141
2228
|
};
|
|
2142
2229
|
};
|
|
2143
2230
|
}
|