@neondatabase/auth 0.2.0-beta.1 → 0.3.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/dist/{adapter-core-CnrOXh1T.d.mts → adapter-core-B9uDhoYq.d.mts} +291 -362
- package/dist/{adapter-core-CtmnMMJ7.mjs → adapter-core-D00qcqMo.mjs} +1 -1
- package/dist/{better-auth-react-adapter-DNi5PC5D.d.mts → better-auth-react-adapter-BO4jLN4H.d.mts} +251 -251
- package/dist/{better-auth-react-adapter-Dv-o6A6O.mjs → better-auth-react-adapter-Xdj-69i9.mjs} +1 -1
- package/dist/{index-CzsGMS7C.d.mts → index-B_Q0Tp1D.d.mts} +0 -1
- package/dist/index.d.mts +92 -4
- package/dist/index.mjs +2 -2
- package/dist/{neon-auth-Cs2cWh1B.mjs → neon-auth-DBOB8sXF.mjs} +1 -1
- package/dist/next/index.d.mts +17 -17
- package/dist/next/index.mjs +3 -3
- package/dist/next/server/index.d.mts +2 -4
- package/dist/next/server/index.mjs +323 -235
- 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-BlcGPyOf.mjs → supabase-adapter-CIBMebXB.mjs} +1 -1
- package/dist/{supabase-adapter-DUqw2fw8.d.mts → supabase-adapter-CSDRL1ZU.d.mts} +285 -316
- 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 +3 -3
- package/dist/vanilla/adapters/index.mjs +2 -2
- package/dist/vanilla/index.d.mts +3 -3
- package/dist/vanilla/index.mjs +2 -2
- package/package.json +23 -21
- package/dist/chunk-VCZJYX65-CLnrj1o7-D6ZQkcc_.mjs +0 -543
- 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-OEBbnNdr.d.mts → index-UW23fDSn.d.mts} +0 -0
package/dist/{better-auth-react-adapter-DNi5PC5D.d.mts → better-auth-react-adapter-BO4jLN4H.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-B9uDhoYq.mjs";
|
|
2
|
+
import * as better_auth_react0 from "better-auth/react";
|
|
3
|
+
import * as jose0 from "jose";
|
|
4
|
+
import * as better_auth_plugins17 from "better-auth/plugins";
|
|
5
|
+
import * as better_auth151 from "better-auth";
|
|
6
|
+
import * as _better_fetch_fetch88 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_auth151.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_plugins17.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_fetch88.BetterFetchError;
|
|
52
51
|
isPending: boolean;
|
|
53
52
|
isRefetching: boolean;
|
|
54
53
|
refetch: (queryParams?: {
|
|
55
|
-
query?:
|
|
54
|
+
query?: better_auth151.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_fetch88.BetterFetchError;
|
|
68
67
|
isPending: boolean;
|
|
69
68
|
isRefetching: boolean;
|
|
70
69
|
refetch: (queryParams?: {
|
|
71
|
-
query?:
|
|
70
|
+
query?: better_auth151.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_fetch88.BetterFetchError;
|
|
83
82
|
isPending: boolean;
|
|
84
83
|
isRefetching: boolean;
|
|
85
84
|
refetch: (queryParams?: {
|
|
86
|
-
query?:
|
|
85
|
+
query?: better_auth151.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_fetch88.BetterFetchError;
|
|
94
93
|
isPending: boolean;
|
|
95
94
|
isRefetching: boolean;
|
|
96
95
|
refetch: (queryParams?: {
|
|
97
|
-
query?:
|
|
96
|
+
query?: better_auth151.SessionQueryParams;
|
|
98
97
|
} | undefined) => Promise<void>;
|
|
99
98
|
};
|
|
100
99
|
} & {
|
|
101
|
-
token: <FetchOptions extends
|
|
100
|
+
token: <FetchOptions extends better_auth151.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth151.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_fetch88.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_auth151.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_auth151.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_fetch88.BetterFetchResponse<{
|
|
120
|
+
user: better_auth_plugins17.UserWithRole;
|
|
122
121
|
}, {
|
|
123
122
|
code?: string | undefined;
|
|
124
123
|
message?: string | undefined;
|
|
@@ -126,14 +125,14 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
126
125
|
};
|
|
127
126
|
} & {
|
|
128
127
|
admin: {
|
|
129
|
-
getUser: <FetchOptions extends
|
|
128
|
+
getUser: <FetchOptions extends better_auth151.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_auth151.Prettify<{
|
|
132
131
|
query: {
|
|
133
132
|
id: string;
|
|
134
133
|
};
|
|
135
134
|
fetchOptions?: FetchOptions | undefined;
|
|
136
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
135
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
137
136
|
id: string;
|
|
138
137
|
createdAt: Date;
|
|
139
138
|
updatedAt: Date;
|
|
@@ -148,13 +147,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
148
147
|
};
|
|
149
148
|
} & {
|
|
150
149
|
admin: {
|
|
151
|
-
createUser: <FetchOptions extends
|
|
150
|
+
createUser: <FetchOptions extends better_auth151.ClientFetchOption<Partial<{
|
|
152
151
|
email: string;
|
|
153
152
|
password: string;
|
|
154
153
|
name: string;
|
|
155
154
|
role?: "user" | "admin" | ("user" | "admin")[] | undefined;
|
|
156
155
|
data?: Record<string, any> | undefined;
|
|
157
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
156
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
158
157
|
email: string;
|
|
159
158
|
password: string;
|
|
160
159
|
name: string;
|
|
@@ -162,8 +161,8 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
162
161
|
data?: Record<string, any> | undefined;
|
|
163
162
|
} & {
|
|
164
163
|
fetchOptions?: FetchOptions | undefined;
|
|
165
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
166
|
-
user:
|
|
164
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
165
|
+
user: better_auth_plugins17.UserWithRole;
|
|
167
166
|
}, {
|
|
168
167
|
code?: string | undefined;
|
|
169
168
|
message?: string | undefined;
|
|
@@ -171,22 +170,22 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
171
170
|
};
|
|
172
171
|
} & {
|
|
173
172
|
admin: {
|
|
174
|
-
updateUser: <FetchOptions extends
|
|
173
|
+
updateUser: <FetchOptions extends better_auth151.ClientFetchOption<Partial<{
|
|
175
174
|
userId: unknown;
|
|
176
175
|
data: Record<any, any>;
|
|
177
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
176
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
178
177
|
userId: unknown;
|
|
179
178
|
data: Record<any, any>;
|
|
180
179
|
} & {
|
|
181
180
|
fetchOptions?: FetchOptions | undefined;
|
|
182
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
181
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<better_auth_plugins17.UserWithRole, {
|
|
183
182
|
code?: string | undefined;
|
|
184
183
|
message?: string | undefined;
|
|
185
184
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
186
185
|
};
|
|
187
186
|
} & {
|
|
188
187
|
admin: {
|
|
189
|
-
listUsers: <FetchOptions extends
|
|
188
|
+
listUsers: <FetchOptions extends better_auth151.ClientFetchOption<never, Partial<{
|
|
190
189
|
searchValue?: string | undefined;
|
|
191
190
|
searchField?: "email" | "name" | undefined;
|
|
192
191
|
searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
|
|
@@ -197,7 +196,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
197
196
|
filterField?: string | undefined;
|
|
198
197
|
filterValue?: string | number | boolean | undefined;
|
|
199
198
|
filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
|
|
200
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
199
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
201
200
|
query: {
|
|
202
201
|
searchValue?: string | undefined;
|
|
203
202
|
searchField?: "email" | "name" | undefined;
|
|
@@ -211,8 +210,8 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
211
210
|
filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
|
|
212
211
|
};
|
|
213
212
|
fetchOptions?: FetchOptions | undefined;
|
|
214
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
215
|
-
users:
|
|
213
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<NonNullable<{
|
|
214
|
+
users: better_auth_plugins17.UserWithRole[];
|
|
216
215
|
total: number;
|
|
217
216
|
limit: number | undefined;
|
|
218
217
|
offset: number | undefined;
|
|
@@ -226,14 +225,14 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
226
225
|
};
|
|
227
226
|
} & {
|
|
228
227
|
admin: {
|
|
229
|
-
listUserSessions: <FetchOptions extends
|
|
228
|
+
listUserSessions: <FetchOptions extends better_auth151.ClientFetchOption<Partial<{
|
|
230
229
|
userId: unknown;
|
|
231
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
230
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
232
231
|
userId: unknown;
|
|
233
232
|
} & {
|
|
234
233
|
fetchOptions?: FetchOptions | undefined;
|
|
235
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
236
|
-
sessions:
|
|
234
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
235
|
+
sessions: better_auth_plugins17.SessionWithImpersonatedBy[];
|
|
237
236
|
}, {
|
|
238
237
|
code?: string | undefined;
|
|
239
238
|
message?: string | undefined;
|
|
@@ -241,13 +240,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
241
240
|
};
|
|
242
241
|
} & {
|
|
243
242
|
admin: {
|
|
244
|
-
unbanUser: <FetchOptions extends
|
|
243
|
+
unbanUser: <FetchOptions extends better_auth151.ClientFetchOption<Partial<{
|
|
245
244
|
userId: unknown;
|
|
246
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
245
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
247
246
|
userId: unknown;
|
|
248
247
|
} & {
|
|
249
248
|
fetchOptions?: FetchOptions | undefined;
|
|
250
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
249
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
251
250
|
user: {
|
|
252
251
|
id: string;
|
|
253
252
|
createdAt: Date;
|
|
@@ -264,17 +263,17 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
264
263
|
};
|
|
265
264
|
} & {
|
|
266
265
|
admin: {
|
|
267
|
-
banUser: <FetchOptions extends
|
|
266
|
+
banUser: <FetchOptions extends better_auth151.ClientFetchOption<Partial<{
|
|
268
267
|
userId: unknown;
|
|
269
268
|
banReason?: string | undefined;
|
|
270
269
|
banExpiresIn?: number | undefined;
|
|
271
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
270
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
272
271
|
userId: unknown;
|
|
273
272
|
banReason?: string | undefined;
|
|
274
273
|
banExpiresIn?: number | undefined;
|
|
275
274
|
} & {
|
|
276
275
|
fetchOptions?: FetchOptions | undefined;
|
|
277
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
276
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
278
277
|
user: {
|
|
279
278
|
id: string;
|
|
280
279
|
createdAt: Date;
|
|
@@ -291,13 +290,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
291
290
|
};
|
|
292
291
|
} & {
|
|
293
292
|
admin: {
|
|
294
|
-
impersonateUser: <FetchOptions extends
|
|
293
|
+
impersonateUser: <FetchOptions extends better_auth151.ClientFetchOption<Partial<{
|
|
295
294
|
userId: unknown;
|
|
296
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
295
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
297
296
|
userId: unknown;
|
|
298
297
|
} & {
|
|
299
298
|
fetchOptions?: FetchOptions | undefined;
|
|
300
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
299
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
301
300
|
session: {
|
|
302
301
|
id: string;
|
|
303
302
|
createdAt: Date;
|
|
@@ -308,7 +307,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
308
307
|
ipAddress?: string | null | undefined;
|
|
309
308
|
userAgent?: string | null | undefined;
|
|
310
309
|
};
|
|
311
|
-
user:
|
|
310
|
+
user: better_auth_plugins17.UserWithRole;
|
|
312
311
|
}, {
|
|
313
312
|
code?: string | undefined;
|
|
314
313
|
message?: string | undefined;
|
|
@@ -316,12 +315,12 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
316
315
|
};
|
|
317
316
|
} & {
|
|
318
317
|
admin: {
|
|
319
|
-
stopImpersonating: <FetchOptions extends
|
|
318
|
+
stopImpersonating: <FetchOptions extends better_auth151.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth151.Prettify<{
|
|
320
319
|
query?: Record<string, any> | undefined;
|
|
321
320
|
fetchOptions?: FetchOptions | undefined;
|
|
322
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
323
|
-
session:
|
|
324
|
-
user:
|
|
321
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
322
|
+
session: better_auth151.Session & Record<string, any>;
|
|
323
|
+
user: better_auth151.User & Record<string, any>;
|
|
325
324
|
}, {
|
|
326
325
|
code?: string | undefined;
|
|
327
326
|
message?: string | undefined;
|
|
@@ -329,13 +328,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
329
328
|
};
|
|
330
329
|
} & {
|
|
331
330
|
admin: {
|
|
332
|
-
revokeUserSession: <FetchOptions extends
|
|
331
|
+
revokeUserSession: <FetchOptions extends better_auth151.ClientFetchOption<Partial<{
|
|
333
332
|
sessionToken: string;
|
|
334
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
333
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
335
334
|
sessionToken: string;
|
|
336
335
|
} & {
|
|
337
336
|
fetchOptions?: FetchOptions | undefined;
|
|
338
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
337
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
339
338
|
success: boolean;
|
|
340
339
|
}, {
|
|
341
340
|
code?: string | undefined;
|
|
@@ -344,13 +343,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
344
343
|
};
|
|
345
344
|
} & {
|
|
346
345
|
admin: {
|
|
347
|
-
revokeUserSessions: <FetchOptions extends
|
|
346
|
+
revokeUserSessions: <FetchOptions extends better_auth151.ClientFetchOption<Partial<{
|
|
348
347
|
userId: unknown;
|
|
349
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
348
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
350
349
|
userId: unknown;
|
|
351
350
|
} & {
|
|
352
351
|
fetchOptions?: FetchOptions | undefined;
|
|
353
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
352
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
354
353
|
success: boolean;
|
|
355
354
|
}, {
|
|
356
355
|
code?: string | undefined;
|
|
@@ -359,13 +358,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
359
358
|
};
|
|
360
359
|
} & {
|
|
361
360
|
admin: {
|
|
362
|
-
removeUser: <FetchOptions extends
|
|
361
|
+
removeUser: <FetchOptions extends better_auth151.ClientFetchOption<Partial<{
|
|
363
362
|
userId: unknown;
|
|
364
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
363
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
365
364
|
userId: unknown;
|
|
366
365
|
} & {
|
|
367
366
|
fetchOptions?: FetchOptions | undefined;
|
|
368
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
367
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
369
368
|
success: boolean;
|
|
370
369
|
}, {
|
|
371
370
|
code?: string | undefined;
|
|
@@ -374,15 +373,15 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
374
373
|
};
|
|
375
374
|
} & {
|
|
376
375
|
admin: {
|
|
377
|
-
setUserPassword: <FetchOptions extends
|
|
376
|
+
setUserPassword: <FetchOptions extends better_auth151.ClientFetchOption<Partial<{
|
|
378
377
|
newPassword: string;
|
|
379
378
|
userId: unknown;
|
|
380
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
379
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
381
380
|
newPassword: string;
|
|
382
381
|
userId: unknown;
|
|
383
382
|
} & {
|
|
384
383
|
fetchOptions?: FetchOptions | undefined;
|
|
385
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
384
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
386
385
|
status: boolean;
|
|
387
386
|
}, {
|
|
388
387
|
code?: string | undefined;
|
|
@@ -391,7 +390,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
391
390
|
};
|
|
392
391
|
} & {
|
|
393
392
|
admin: {
|
|
394
|
-
hasPermission: <FetchOptions extends
|
|
393
|
+
hasPermission: <FetchOptions extends better_auth151.ClientFetchOption<Partial<({
|
|
395
394
|
permission: {
|
|
396
395
|
readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
397
396
|
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
@@ -406,7 +405,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
406
405
|
}) & {
|
|
407
406
|
userId?: string | undefined;
|
|
408
407
|
role?: "user" | "admin" | undefined;
|
|
409
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
408
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<(({
|
|
410
409
|
permission: {
|
|
411
410
|
readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
412
411
|
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
@@ -423,7 +422,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
423
422
|
role?: "user" | "admin" | undefined;
|
|
424
423
|
}) & {
|
|
425
424
|
fetchOptions?: FetchOptions | undefined;
|
|
426
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
425
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
427
426
|
error: null;
|
|
428
427
|
success: boolean;
|
|
429
428
|
}, {
|
|
@@ -433,14 +432,14 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
433
432
|
};
|
|
434
433
|
} & {
|
|
435
434
|
organization: {
|
|
436
|
-
create: <FetchOptions extends
|
|
435
|
+
create: <FetchOptions extends better_auth151.ClientFetchOption<Partial<{
|
|
437
436
|
name: string;
|
|
438
437
|
slug: string;
|
|
439
438
|
userId?: string | undefined;
|
|
440
439
|
logo?: string | undefined;
|
|
441
440
|
metadata?: Record<string, any> | undefined;
|
|
442
441
|
keepCurrentActiveOrganization?: boolean | undefined;
|
|
443
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
442
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
444
443
|
name: string;
|
|
445
444
|
slug: string;
|
|
446
445
|
userId?: string | undefined;
|
|
@@ -449,7 +448,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
449
448
|
keepCurrentActiveOrganization?: boolean | undefined;
|
|
450
449
|
} & {
|
|
451
450
|
fetchOptions?: FetchOptions | undefined;
|
|
452
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
451
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
453
452
|
id: string;
|
|
454
453
|
name: string;
|
|
455
454
|
slug: string;
|
|
@@ -472,7 +471,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
472
471
|
};
|
|
473
472
|
} & {
|
|
474
473
|
organization: {
|
|
475
|
-
update: <FetchOptions extends
|
|
474
|
+
update: <FetchOptions extends better_auth151.ClientFetchOption<Partial<{
|
|
476
475
|
data: {
|
|
477
476
|
name?: string | undefined;
|
|
478
477
|
slug?: string | undefined;
|
|
@@ -480,7 +479,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
480
479
|
metadata?: Record<string, any> | undefined;
|
|
481
480
|
} & Partial<{}>;
|
|
482
481
|
organizationId?: string | undefined;
|
|
483
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
482
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
484
483
|
data: {
|
|
485
484
|
name?: string | undefined;
|
|
486
485
|
slug?: string | undefined;
|
|
@@ -490,7 +489,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
490
489
|
organizationId?: string | undefined;
|
|
491
490
|
} & {
|
|
492
491
|
fetchOptions?: FetchOptions | undefined;
|
|
493
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
492
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
494
493
|
id: string;
|
|
495
494
|
name: string;
|
|
496
495
|
slug: string;
|
|
@@ -506,13 +505,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
506
505
|
};
|
|
507
506
|
} & {
|
|
508
507
|
organization: {
|
|
509
|
-
delete: <FetchOptions extends
|
|
508
|
+
delete: <FetchOptions extends better_auth151.ClientFetchOption<Partial<{
|
|
510
509
|
organizationId: string;
|
|
511
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
510
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
512
511
|
organizationId: string;
|
|
513
512
|
} & {
|
|
514
513
|
fetchOptions?: FetchOptions | undefined;
|
|
515
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
514
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
516
515
|
id: string;
|
|
517
516
|
name: string;
|
|
518
517
|
slug: string;
|
|
@@ -526,15 +525,15 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
526
525
|
};
|
|
527
526
|
} & {
|
|
528
527
|
organization: {
|
|
529
|
-
setActive: <FetchOptions extends
|
|
528
|
+
setActive: <FetchOptions extends better_auth151.ClientFetchOption<Partial<{
|
|
530
529
|
organizationId?: string | null | undefined;
|
|
531
530
|
organizationSlug?: string | undefined;
|
|
532
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
531
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth151.Prettify<{
|
|
533
532
|
organizationId?: string | null | undefined;
|
|
534
533
|
organizationSlug?: string | undefined;
|
|
535
534
|
} & {
|
|
536
535
|
fetchOptions?: FetchOptions | undefined;
|
|
537
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
536
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
538
537
|
members: {
|
|
539
538
|
id: string;
|
|
540
539
|
organizationId: string;
|
|
@@ -553,7 +552,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
553
552
|
organizationId: string;
|
|
554
553
|
email: string;
|
|
555
554
|
role: "admin" | "member" | "owner";
|
|
556
|
-
status:
|
|
555
|
+
status: better_auth_plugins17.InvitationStatus;
|
|
557
556
|
inviterId: string;
|
|
558
557
|
expiresAt: Date;
|
|
559
558
|
createdAt: Date;
|
|
@@ -572,18 +571,18 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
572
571
|
};
|
|
573
572
|
} & {
|
|
574
573
|
organization: {
|
|
575
|
-
getFullOrganization: <FetchOptions extends
|
|
574
|
+
getFullOrganization: <FetchOptions extends better_auth151.ClientFetchOption<never, Partial<{
|
|
576
575
|
organizationId?: string | undefined;
|
|
577
576
|
organizationSlug?: string | undefined;
|
|
578
577
|
membersLimit?: string | number | undefined;
|
|
579
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
578
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth151.Prettify<{
|
|
580
579
|
query?: {
|
|
581
580
|
organizationId?: string | undefined;
|
|
582
581
|
organizationSlug?: string | undefined;
|
|
583
582
|
membersLimit?: string | number | undefined;
|
|
584
583
|
} | undefined;
|
|
585
584
|
fetchOptions?: FetchOptions | undefined;
|
|
586
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
585
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
587
586
|
members: {
|
|
588
587
|
id: string;
|
|
589
588
|
organizationId: string;
|
|
@@ -602,7 +601,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
602
601
|
organizationId: string;
|
|
603
602
|
email: string;
|
|
604
603
|
role: "admin" | "member" | "owner";
|
|
605
|
-
status:
|
|
604
|
+
status: better_auth_plugins17.InvitationStatus;
|
|
606
605
|
inviterId: string;
|
|
607
606
|
expiresAt: Date;
|
|
608
607
|
createdAt: Date;
|
|
@@ -621,10 +620,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
621
620
|
};
|
|
622
621
|
} & {
|
|
623
622
|
organization: {
|
|
624
|
-
list: <FetchOptions extends
|
|
623
|
+
list: <FetchOptions extends better_auth151.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth151.Prettify<{
|
|
625
624
|
query?: Record<string, any> | undefined;
|
|
626
625
|
fetchOptions?: FetchOptions | undefined;
|
|
627
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
626
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
628
627
|
id: string;
|
|
629
628
|
name: string;
|
|
630
629
|
slug: string;
|
|
@@ -638,24 +637,24 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
638
637
|
};
|
|
639
638
|
} & {
|
|
640
639
|
organization: {
|
|
641
|
-
inviteMember: <FetchOptions extends
|
|
640
|
+
inviteMember: <FetchOptions extends better_auth151.ClientFetchOption<Partial<{
|
|
642
641
|
email: string;
|
|
643
642
|
role: "admin" | "member" | "owner" | ("admin" | "member" | "owner")[];
|
|
644
643
|
organizationId?: string | undefined;
|
|
645
644
|
resend?: boolean | undefined;
|
|
646
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
645
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
647
646
|
email: string;
|
|
648
647
|
role: "admin" | "member" | "owner" | ("admin" | "member" | "owner")[];
|
|
649
648
|
organizationId?: string | undefined;
|
|
650
649
|
resend?: boolean | undefined;
|
|
651
650
|
} & {
|
|
652
651
|
fetchOptions?: FetchOptions | undefined;
|
|
653
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
652
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
654
653
|
id: string;
|
|
655
654
|
organizationId: string;
|
|
656
655
|
email: string;
|
|
657
656
|
role: "admin" | "member" | "owner";
|
|
658
|
-
status:
|
|
657
|
+
status: better_auth_plugins17.InvitationStatus;
|
|
659
658
|
inviterId: string;
|
|
660
659
|
expiresAt: Date;
|
|
661
660
|
createdAt: Date;
|
|
@@ -666,18 +665,18 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
666
665
|
};
|
|
667
666
|
} & {
|
|
668
667
|
organization: {
|
|
669
|
-
cancelInvitation: <FetchOptions extends
|
|
668
|
+
cancelInvitation: <FetchOptions extends better_auth151.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_auth151.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_fetch88.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_plugins17.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_auth151.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_auth151.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_fetch88.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_plugins17.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_auth151.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_auth151.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_fetch88.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_plugins17.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_auth151.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_auth151.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_fetch88.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_plugins17.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_auth151.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_auth151.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_fetch88.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_plugins17.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_auth151.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth151.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_fetch88.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_auth151.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_auth151.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_auth151.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_fetch88.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_auth151.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_auth151.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_fetch88.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_auth151.ClientFetchOption<Partial<{
|
|
872
|
+
role: better_auth151.LiteralString | "admin" | "member" | "owner" | ("admin" | "member" | "owner")[] | better_auth151.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_auth151.Prettify<{
|
|
876
|
+
role: better_auth151.LiteralString | "admin" | "member" | "owner" | ("admin" | "member" | "owner")[] | better_auth151.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_fetch88.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_auth151.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_auth151.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_fetch88.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_auth151.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_auth151.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_auth151.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_fetch88.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_plugins17.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_auth151.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_auth151.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_fetch88.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_auth151.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_auth151.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_fetch88.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_auth151.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_auth151.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_fetch88.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_auth151.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_auth151.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_fetch88.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_auth151.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_auth151.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_fetch88.BetterFetchResponse<{
|
|
1121
1120
|
success: boolean;
|
|
1122
1121
|
}, {
|
|
1123
1122
|
code?: string | undefined;
|
|
@@ -1126,15 +1125,15 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1126
1125
|
};
|
|
1127
1126
|
} & {
|
|
1128
1127
|
emailOtp: {
|
|
1129
|
-
verifyEmail: <FetchOptions extends
|
|
1128
|
+
verifyEmail: <FetchOptions extends better_auth151.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_auth151.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_fetch88.BetterFetchResponse<NonNullable<{
|
|
1138
1137
|
status: boolean;
|
|
1139
1138
|
token: string;
|
|
1140
1139
|
user: {
|
|
@@ -1165,15 +1164,15 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1165
1164
|
};
|
|
1166
1165
|
} & {
|
|
1167
1166
|
signIn: {
|
|
1168
|
-
emailOtp: <FetchOptions extends
|
|
1167
|
+
emailOtp: <FetchOptions extends better_auth151.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_auth151.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_fetch88.BetterFetchResponse<{
|
|
1177
1176
|
token: string;
|
|
1178
1177
|
user: {
|
|
1179
1178
|
id: string;
|
|
@@ -1191,13 +1190,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1191
1190
|
};
|
|
1192
1191
|
} & {
|
|
1193
1192
|
forgetPassword: {
|
|
1194
|
-
emailOtp: <FetchOptions extends
|
|
1193
|
+
emailOtp: <FetchOptions extends better_auth151.ClientFetchOption<Partial<{
|
|
1195
1194
|
email: string;
|
|
1196
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1195
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
1197
1196
|
email: string;
|
|
1198
1197
|
} & {
|
|
1199
1198
|
fetchOptions?: FetchOptions | undefined;
|
|
1200
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1199
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
1201
1200
|
success: boolean;
|
|
1202
1201
|
}, {
|
|
1203
1202
|
code?: string | undefined;
|
|
@@ -1206,17 +1205,17 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1206
1205
|
};
|
|
1207
1206
|
} & {
|
|
1208
1207
|
emailOtp: {
|
|
1209
|
-
resetPassword: <FetchOptions extends
|
|
1208
|
+
resetPassword: <FetchOptions extends better_auth151.ClientFetchOption<Partial<{
|
|
1210
1209
|
email: string;
|
|
1211
1210
|
otp: string;
|
|
1212
1211
|
password: string;
|
|
1213
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1212
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
1214
1213
|
email: string;
|
|
1215
1214
|
otp: string;
|
|
1216
1215
|
password: string;
|
|
1217
1216
|
} & {
|
|
1218
1217
|
fetchOptions?: FetchOptions | undefined;
|
|
1219
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1218
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
1220
1219
|
success: boolean;
|
|
1221
1220
|
}, {
|
|
1222
1221
|
code?: string | undefined;
|
|
@@ -1225,7 +1224,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1225
1224
|
};
|
|
1226
1225
|
} & {
|
|
1227
1226
|
signIn: {
|
|
1228
|
-
social: <FetchOptions extends
|
|
1227
|
+
social: <FetchOptions extends better_auth151.ClientFetchOption<Partial<{
|
|
1229
1228
|
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
1229
|
callbackURL?: string | undefined;
|
|
1231
1230
|
newUserCallbackURL?: string | undefined;
|
|
@@ -1242,7 +1241,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1242
1241
|
requestSignUp?: boolean | undefined;
|
|
1243
1242
|
loginHint?: string | undefined;
|
|
1244
1243
|
additionalData?: Record<string, any> | undefined;
|
|
1245
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1244
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
1246
1245
|
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
1246
|
callbackURL?: string | undefined;
|
|
1248
1247
|
newUserCallbackURL?: string | undefined;
|
|
@@ -1261,7 +1260,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1261
1260
|
additionalData?: Record<string, any> | undefined;
|
|
1262
1261
|
} & {
|
|
1263
1262
|
fetchOptions?: FetchOptions | undefined;
|
|
1264
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1263
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<NonNullable<{
|
|
1265
1264
|
redirect: boolean;
|
|
1266
1265
|
url: string;
|
|
1267
1266
|
} | {
|
|
@@ -1283,10 +1282,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1283
1282
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1284
1283
|
};
|
|
1285
1284
|
} & {
|
|
1286
|
-
signOut: <FetchOptions extends
|
|
1285
|
+
signOut: <FetchOptions extends better_auth151.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth151.Prettify<{
|
|
1287
1286
|
query?: Record<string, any> | undefined;
|
|
1288
1287
|
fetchOptions?: FetchOptions | undefined;
|
|
1289
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1288
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
1290
1289
|
success: boolean;
|
|
1291
1290
|
}, {
|
|
1292
1291
|
code?: string | undefined;
|
|
@@ -1294,21 +1293,21 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1294
1293
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1295
1294
|
} & {
|
|
1296
1295
|
signUp: {
|
|
1297
|
-
email: <FetchOptions extends
|
|
1296
|
+
email: <FetchOptions extends better_auth151.ClientFetchOption<Partial<{
|
|
1298
1297
|
name: string;
|
|
1299
1298
|
email: string;
|
|
1300
1299
|
password: string;
|
|
1301
1300
|
image?: string | undefined;
|
|
1302
1301
|
callbackURL?: string | undefined;
|
|
1303
1302
|
rememberMe?: boolean | undefined;
|
|
1304
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1303
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
1305
1304
|
email: string;
|
|
1306
1305
|
name: string;
|
|
1307
1306
|
password: string;
|
|
1308
1307
|
image?: string | undefined;
|
|
1309
1308
|
callbackURL?: string | undefined;
|
|
1310
1309
|
fetchOptions?: FetchOptions | undefined;
|
|
1311
|
-
} & {} & {}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1310
|
+
} & {} & {}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<NonNullable<{
|
|
1312
1311
|
token: null;
|
|
1313
1312
|
user: {
|
|
1314
1313
|
id: string;
|
|
@@ -1337,19 +1336,19 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1337
1336
|
};
|
|
1338
1337
|
} & {
|
|
1339
1338
|
signIn: {
|
|
1340
|
-
email: <FetchOptions extends
|
|
1339
|
+
email: <FetchOptions extends better_auth151.ClientFetchOption<Partial<{
|
|
1341
1340
|
email: string;
|
|
1342
1341
|
password: string;
|
|
1343
1342
|
callbackURL?: string | undefined;
|
|
1344
1343
|
rememberMe?: boolean | undefined;
|
|
1345
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1344
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
1346
1345
|
email: string;
|
|
1347
1346
|
password: string;
|
|
1348
1347
|
callbackURL?: string | undefined;
|
|
1349
1348
|
rememberMe?: boolean | undefined;
|
|
1350
1349
|
} & {
|
|
1351
1350
|
fetchOptions?: FetchOptions | undefined;
|
|
1352
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1351
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
1353
1352
|
redirect: boolean;
|
|
1354
1353
|
token: string;
|
|
1355
1354
|
url?: string | undefined;
|
|
@@ -1368,80 +1367,80 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1368
1367
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1369
1368
|
};
|
|
1370
1369
|
} & {
|
|
1371
|
-
resetPassword: <FetchOptions extends
|
|
1370
|
+
resetPassword: <FetchOptions extends better_auth151.ClientFetchOption<Partial<{
|
|
1372
1371
|
newPassword: string;
|
|
1373
1372
|
token?: string | undefined;
|
|
1374
1373
|
}> & Record<string, any>, Partial<{
|
|
1375
1374
|
token?: string | undefined;
|
|
1376
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1375
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
1377
1376
|
newPassword: string;
|
|
1378
1377
|
token?: string | undefined;
|
|
1379
1378
|
} & {
|
|
1380
1379
|
fetchOptions?: FetchOptions | undefined;
|
|
1381
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1380
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
1382
1381
|
status: boolean;
|
|
1383
1382
|
}, {
|
|
1384
1383
|
code?: string | undefined;
|
|
1385
1384
|
message?: string | undefined;
|
|
1386
1385
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1387
1386
|
} & {
|
|
1388
|
-
verifyEmail: <FetchOptions extends
|
|
1387
|
+
verifyEmail: <FetchOptions extends better_auth151.ClientFetchOption<never, Partial<{
|
|
1389
1388
|
token: string;
|
|
1390
1389
|
callbackURL?: string | undefined;
|
|
1391
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1390
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
1392
1391
|
query: {
|
|
1393
1392
|
token: string;
|
|
1394
1393
|
callbackURL?: string | undefined;
|
|
1395
1394
|
};
|
|
1396
1395
|
fetchOptions?: FetchOptions | undefined;
|
|
1397
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1396
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<NonNullable<void | {
|
|
1398
1397
|
status: boolean;
|
|
1399
1398
|
}>, {
|
|
1400
1399
|
code?: string | undefined;
|
|
1401
1400
|
message?: string | undefined;
|
|
1402
1401
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1403
1402
|
} & {
|
|
1404
|
-
sendVerificationEmail: <FetchOptions extends
|
|
1403
|
+
sendVerificationEmail: <FetchOptions extends better_auth151.ClientFetchOption<Partial<{
|
|
1405
1404
|
email: string;
|
|
1406
1405
|
callbackURL?: string | undefined;
|
|
1407
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1406
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
1408
1407
|
email: string;
|
|
1409
1408
|
callbackURL?: string | undefined;
|
|
1410
1409
|
} & {
|
|
1411
1410
|
fetchOptions?: FetchOptions | undefined;
|
|
1412
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1411
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
1413
1412
|
status: boolean;
|
|
1414
1413
|
}, {
|
|
1415
1414
|
code?: string | undefined;
|
|
1416
1415
|
message?: string | undefined;
|
|
1417
1416
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1418
1417
|
} & {
|
|
1419
|
-
changeEmail: <FetchOptions extends
|
|
1418
|
+
changeEmail: <FetchOptions extends better_auth151.ClientFetchOption<Partial<{
|
|
1420
1419
|
newEmail: string;
|
|
1421
1420
|
callbackURL?: string | undefined;
|
|
1422
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1421
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
1423
1422
|
newEmail: string;
|
|
1424
1423
|
callbackURL?: string | undefined;
|
|
1425
1424
|
} & {
|
|
1426
1425
|
fetchOptions?: FetchOptions | undefined;
|
|
1427
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1426
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
1428
1427
|
status: boolean;
|
|
1429
1428
|
}, {
|
|
1430
1429
|
code?: string | undefined;
|
|
1431
1430
|
message?: string | undefined;
|
|
1432
1431
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1433
1432
|
} & {
|
|
1434
|
-
changePassword: <FetchOptions extends
|
|
1433
|
+
changePassword: <FetchOptions extends better_auth151.ClientFetchOption<Partial<{
|
|
1435
1434
|
newPassword: string;
|
|
1436
1435
|
currentPassword: string;
|
|
1437
1436
|
revokeOtherSessions?: boolean | undefined;
|
|
1438
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1437
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
1439
1438
|
newPassword: string;
|
|
1440
1439
|
currentPassword: string;
|
|
1441
1440
|
revokeOtherSessions?: boolean | undefined;
|
|
1442
1441
|
} & {
|
|
1443
1442
|
fetchOptions?: FetchOptions | undefined;
|
|
1444
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1443
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
1445
1444
|
token: string | null;
|
|
1446
1445
|
user: {
|
|
1447
1446
|
id: string;
|
|
@@ -1457,31 +1456,31 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1457
1456
|
message?: string | undefined;
|
|
1458
1457
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1459
1458
|
} & {
|
|
1460
|
-
updateUser: <FetchOptions extends
|
|
1459
|
+
updateUser: <FetchOptions extends better_auth151.ClientFetchOption<Partial<Partial<{}> & {
|
|
1461
1460
|
name?: string | undefined;
|
|
1462
1461
|
image?: string | undefined | null;
|
|
1463
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
1462
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth151.Prettify<{
|
|
1464
1463
|
image?: (string | null) | undefined;
|
|
1465
1464
|
name?: string | undefined;
|
|
1466
1465
|
fetchOptions?: FetchOptions | undefined;
|
|
1467
|
-
} & Partial<{} & {}>> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1466
|
+
} & Partial<{} & {}>> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
1468
1467
|
status: boolean;
|
|
1469
1468
|
}, {
|
|
1470
1469
|
code?: string | undefined;
|
|
1471
1470
|
message?: string | undefined;
|
|
1472
1471
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1473
1472
|
} & {
|
|
1474
|
-
deleteUser: <FetchOptions extends
|
|
1473
|
+
deleteUser: <FetchOptions extends better_auth151.ClientFetchOption<Partial<{
|
|
1475
1474
|
callbackURL?: string | undefined;
|
|
1476
1475
|
password?: string | undefined;
|
|
1477
1476
|
token?: string | undefined;
|
|
1478
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
1477
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth151.Prettify<{
|
|
1479
1478
|
callbackURL?: string | undefined;
|
|
1480
1479
|
password?: string | undefined;
|
|
1481
1480
|
token?: string | undefined;
|
|
1482
1481
|
} & {
|
|
1483
1482
|
fetchOptions?: FetchOptions | undefined;
|
|
1484
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1483
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
1485
1484
|
success: boolean;
|
|
1486
1485
|
message: string;
|
|
1487
1486
|
}, {
|
|
@@ -1489,15 +1488,15 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1489
1488
|
message?: string | undefined;
|
|
1490
1489
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1491
1490
|
} & {
|
|
1492
|
-
requestPasswordReset: <FetchOptions extends
|
|
1491
|
+
requestPasswordReset: <FetchOptions extends better_auth151.ClientFetchOption<Partial<{
|
|
1493
1492
|
email: string;
|
|
1494
1493
|
redirectTo?: string | undefined;
|
|
1495
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1494
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
1496
1495
|
email: string;
|
|
1497
1496
|
redirectTo?: string | undefined;
|
|
1498
1497
|
} & {
|
|
1499
1498
|
fetchOptions?: FetchOptions | undefined;
|
|
1500
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1499
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
1501
1500
|
status: boolean;
|
|
1502
1501
|
message: string;
|
|
1503
1502
|
}, {
|
|
@@ -1506,25 +1505,25 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1506
1505
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1507
1506
|
} & {
|
|
1508
1507
|
resetPassword: {
|
|
1509
|
-
":token": <FetchOptions extends
|
|
1508
|
+
":token": <FetchOptions extends better_auth151.ClientFetchOption<never, Partial<{
|
|
1510
1509
|
callbackURL: string;
|
|
1511
1510
|
}> & Record<string, any>, {
|
|
1512
1511
|
token: string;
|
|
1513
|
-
}>>(data_0:
|
|
1512
|
+
}>>(data_0: better_auth151.Prettify<{
|
|
1514
1513
|
query: {
|
|
1515
1514
|
callbackURL: string;
|
|
1516
1515
|
};
|
|
1517
1516
|
fetchOptions?: FetchOptions | undefined;
|
|
1518
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1517
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<never, {
|
|
1519
1518
|
code?: string | undefined;
|
|
1520
1519
|
message?: string | undefined;
|
|
1521
1520
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1522
1521
|
};
|
|
1523
1522
|
} & {
|
|
1524
|
-
listSessions: <FetchOptions extends
|
|
1523
|
+
listSessions: <FetchOptions extends better_auth151.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth151.Prettify<{
|
|
1525
1524
|
query?: Record<string, any> | undefined;
|
|
1526
1525
|
fetchOptions?: FetchOptions | undefined;
|
|
1527
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1526
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<better_auth151.Prettify<{
|
|
1528
1527
|
id: string;
|
|
1529
1528
|
createdAt: Date;
|
|
1530
1529
|
updatedAt: Date;
|
|
@@ -1538,40 +1537,40 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1538
1537
|
message?: string | undefined;
|
|
1539
1538
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1540
1539
|
} & {
|
|
1541
|
-
revokeSession: <FetchOptions extends
|
|
1540
|
+
revokeSession: <FetchOptions extends better_auth151.ClientFetchOption<Partial<{
|
|
1542
1541
|
token: string;
|
|
1543
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1542
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
1544
1543
|
token: string;
|
|
1545
1544
|
} & {
|
|
1546
1545
|
fetchOptions?: FetchOptions | undefined;
|
|
1547
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1546
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
1548
1547
|
status: boolean;
|
|
1549
1548
|
}, {
|
|
1550
1549
|
code?: string | undefined;
|
|
1551
1550
|
message?: string | undefined;
|
|
1552
1551
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1553
1552
|
} & {
|
|
1554
|
-
revokeSessions: <FetchOptions extends
|
|
1553
|
+
revokeSessions: <FetchOptions extends better_auth151.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth151.Prettify<{
|
|
1555
1554
|
query?: Record<string, any> | undefined;
|
|
1556
1555
|
fetchOptions?: FetchOptions | undefined;
|
|
1557
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1556
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
1558
1557
|
status: boolean;
|
|
1559
1558
|
}, {
|
|
1560
1559
|
code?: string | undefined;
|
|
1561
1560
|
message?: string | undefined;
|
|
1562
1561
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1563
1562
|
} & {
|
|
1564
|
-
revokeOtherSessions: <FetchOptions extends
|
|
1563
|
+
revokeOtherSessions: <FetchOptions extends better_auth151.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth151.Prettify<{
|
|
1565
1564
|
query?: Record<string, any> | undefined;
|
|
1566
1565
|
fetchOptions?: FetchOptions | undefined;
|
|
1567
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1566
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
1568
1567
|
status: boolean;
|
|
1569
1568
|
}, {
|
|
1570
1569
|
code?: string | undefined;
|
|
1571
1570
|
message?: string | undefined;
|
|
1572
1571
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1573
1572
|
} & {
|
|
1574
|
-
linkSocial: <FetchOptions extends
|
|
1573
|
+
linkSocial: <FetchOptions extends better_auth151.ClientFetchOption<Partial<{
|
|
1575
1574
|
provider: unknown;
|
|
1576
1575
|
callbackURL?: string | undefined;
|
|
1577
1576
|
idToken?: {
|
|
@@ -1586,7 +1585,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1586
1585
|
errorCallbackURL?: string | undefined;
|
|
1587
1586
|
disableRedirect?: boolean | undefined;
|
|
1588
1587
|
additionalData?: Record<string, any> | undefined;
|
|
1589
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1588
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
1590
1589
|
provider: unknown;
|
|
1591
1590
|
callbackURL?: string | undefined;
|
|
1592
1591
|
idToken?: {
|
|
@@ -1603,7 +1602,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1603
1602
|
additionalData?: Record<string, any> | undefined;
|
|
1604
1603
|
} & {
|
|
1605
1604
|
fetchOptions?: FetchOptions | undefined;
|
|
1606
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1605
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
1607
1606
|
url: string;
|
|
1608
1607
|
redirect: boolean;
|
|
1609
1608
|
}, {
|
|
@@ -1611,10 +1610,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1611
1610
|
message?: string | undefined;
|
|
1612
1611
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1613
1612
|
} & {
|
|
1614
|
-
listAccounts: <FetchOptions extends
|
|
1613
|
+
listAccounts: <FetchOptions extends better_auth151.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth151.Prettify<{
|
|
1615
1614
|
query?: Record<string, any> | undefined;
|
|
1616
1615
|
fetchOptions?: FetchOptions | undefined;
|
|
1617
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1616
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
1618
1617
|
id: string;
|
|
1619
1618
|
providerId: string;
|
|
1620
1619
|
createdAt: Date;
|
|
@@ -1628,16 +1627,16 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1628
1627
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1629
1628
|
} & {
|
|
1630
1629
|
deleteUser: {
|
|
1631
|
-
callback: <FetchOptions extends
|
|
1630
|
+
callback: <FetchOptions extends better_auth151.ClientFetchOption<never, Partial<{
|
|
1632
1631
|
token: string;
|
|
1633
1632
|
callbackURL?: string | undefined;
|
|
1634
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1633
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
1635
1634
|
query: {
|
|
1636
1635
|
token: string;
|
|
1637
1636
|
callbackURL?: string | undefined;
|
|
1638
1637
|
};
|
|
1639
1638
|
fetchOptions?: FetchOptions | undefined;
|
|
1640
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1639
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
1641
1640
|
success: boolean;
|
|
1642
1641
|
message: string;
|
|
1643
1642
|
}, {
|
|
@@ -1646,32 +1645,32 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1646
1645
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1647
1646
|
};
|
|
1648
1647
|
} & {
|
|
1649
|
-
unlinkAccount: <FetchOptions extends
|
|
1648
|
+
unlinkAccount: <FetchOptions extends better_auth151.ClientFetchOption<Partial<{
|
|
1650
1649
|
providerId: string;
|
|
1651
1650
|
accountId?: string | undefined;
|
|
1652
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1651
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
1653
1652
|
providerId: string;
|
|
1654
1653
|
accountId?: string | undefined;
|
|
1655
1654
|
} & {
|
|
1656
1655
|
fetchOptions?: FetchOptions | undefined;
|
|
1657
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1656
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
1658
1657
|
status: boolean;
|
|
1659
1658
|
}, {
|
|
1660
1659
|
code?: string | undefined;
|
|
1661
1660
|
message?: string | undefined;
|
|
1662
1661
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1663
1662
|
} & {
|
|
1664
|
-
refreshToken: <FetchOptions extends
|
|
1663
|
+
refreshToken: <FetchOptions extends better_auth151.ClientFetchOption<Partial<{
|
|
1665
1664
|
providerId: string;
|
|
1666
1665
|
accountId?: string | undefined;
|
|
1667
1666
|
userId?: string | undefined;
|
|
1668
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1667
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
1669
1668
|
providerId: string;
|
|
1670
1669
|
accountId?: string | undefined;
|
|
1671
1670
|
userId?: string | undefined;
|
|
1672
1671
|
} & {
|
|
1673
1672
|
fetchOptions?: FetchOptions | undefined;
|
|
1674
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1673
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
1675
1674
|
accessToken: string | undefined;
|
|
1676
1675
|
refreshToken: string | undefined;
|
|
1677
1676
|
accessTokenExpiresAt: Date | undefined;
|
|
@@ -1685,17 +1684,17 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1685
1684
|
message?: string | undefined;
|
|
1686
1685
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1687
1686
|
} & {
|
|
1688
|
-
getAccessToken: <FetchOptions extends
|
|
1687
|
+
getAccessToken: <FetchOptions extends better_auth151.ClientFetchOption<Partial<{
|
|
1689
1688
|
providerId: string;
|
|
1690
1689
|
accountId?: string | undefined;
|
|
1691
1690
|
userId?: string | undefined;
|
|
1692
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1691
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth151.Prettify<{
|
|
1693
1692
|
providerId: string;
|
|
1694
1693
|
accountId?: string | undefined;
|
|
1695
1694
|
userId?: string | undefined;
|
|
1696
1695
|
} & {
|
|
1697
1696
|
fetchOptions?: FetchOptions | undefined;
|
|
1698
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1697
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
1699
1698
|
accessToken: string;
|
|
1700
1699
|
accessTokenExpiresAt: Date | undefined;
|
|
1701
1700
|
scopes: string[];
|
|
@@ -1705,31 +1704,31 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1705
1704
|
message?: string | undefined;
|
|
1706
1705
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1707
1706
|
} & {
|
|
1708
|
-
accountInfo: <FetchOptions extends
|
|
1707
|
+
accountInfo: <FetchOptions extends better_auth151.ClientFetchOption<never, Partial<{
|
|
1709
1708
|
accountId?: string | undefined;
|
|
1710
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
1709
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth151.Prettify<{
|
|
1711
1710
|
query?: {
|
|
1712
1711
|
accountId?: string | undefined;
|
|
1713
1712
|
} | undefined;
|
|
1714
1713
|
fetchOptions?: FetchOptions | undefined;
|
|
1715
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1716
|
-
user:
|
|
1714
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
1715
|
+
user: better_auth151.OAuth2UserInfo;
|
|
1717
1716
|
data: Record<string, any>;
|
|
1718
1717
|
}, {
|
|
1719
1718
|
code?: string | undefined;
|
|
1720
1719
|
message?: string | undefined;
|
|
1721
1720
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1722
1721
|
} & {
|
|
1723
|
-
getSession: <FetchOptions extends
|
|
1722
|
+
getSession: <FetchOptions extends better_auth151.ClientFetchOption<never, Partial<{
|
|
1724
1723
|
disableCookieCache?: unknown;
|
|
1725
1724
|
disableRefresh?: unknown;
|
|
1726
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
1725
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth151.Prettify<{
|
|
1727
1726
|
query?: {
|
|
1728
1727
|
disableCookieCache?: unknown;
|
|
1729
1728
|
disableRefresh?: unknown;
|
|
1730
1729
|
} | undefined;
|
|
1731
1730
|
fetchOptions?: FetchOptions | undefined;
|
|
1732
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1731
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch88.BetterFetchResponse<{
|
|
1733
1732
|
user: {
|
|
1734
1733
|
id: string;
|
|
1735
1734
|
createdAt: Date;
|
|
@@ -1783,7 +1782,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1783
1782
|
statusText: string;
|
|
1784
1783
|
};
|
|
1785
1784
|
} | {
|
|
1786
|
-
data:
|
|
1785
|
+
data: jose0.JSONWebKeySet;
|
|
1787
1786
|
error: null;
|
|
1788
1787
|
}>;
|
|
1789
1788
|
} & {
|
|
@@ -1825,7 +1824,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1825
1824
|
organizationId: string;
|
|
1826
1825
|
email: string;
|
|
1827
1826
|
role: "admin" | "member" | "owner";
|
|
1828
|
-
status:
|
|
1827
|
+
status: better_auth_plugins17.InvitationStatus;
|
|
1829
1828
|
inviterId: string;
|
|
1830
1829
|
expiresAt: Date;
|
|
1831
1830
|
createdAt: Date;
|
|
@@ -1851,7 +1850,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1851
1850
|
organizationId: string;
|
|
1852
1851
|
email: string;
|
|
1853
1852
|
role: "admin" | "member" | "owner";
|
|
1854
|
-
status:
|
|
1853
|
+
status: better_auth_plugins17.InvitationStatus;
|
|
1855
1854
|
inviterId: string;
|
|
1856
1855
|
expiresAt: Date;
|
|
1857
1856
|
createdAt: Date;
|
|
@@ -1931,9 +1930,9 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1931
1930
|
} | null;
|
|
1932
1931
|
isPending: boolean;
|
|
1933
1932
|
isRefetching: boolean;
|
|
1934
|
-
error:
|
|
1933
|
+
error: _better_fetch_fetch88.BetterFetchError | null;
|
|
1935
1934
|
refetch: (queryParams?: {
|
|
1936
|
-
query?:
|
|
1935
|
+
query?: better_auth151.SessionQueryParams;
|
|
1937
1936
|
} | undefined) => Promise<void>;
|
|
1938
1937
|
};
|
|
1939
1938
|
$Infer: {
|
|
@@ -1965,21 +1964,21 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1965
1964
|
};
|
|
1966
1965
|
};
|
|
1967
1966
|
};
|
|
1968
|
-
$fetch:
|
|
1969
|
-
plugins: (
|
|
1967
|
+
$fetch: _better_fetch_fetch88.BetterFetch<{
|
|
1968
|
+
plugins: (_better_fetch_fetch88.BetterFetchPlugin<Record<string, any>> | {
|
|
1970
1969
|
id: string;
|
|
1971
1970
|
name: string;
|
|
1972
1971
|
hooks: {
|
|
1973
|
-
onSuccess(context:
|
|
1972
|
+
onSuccess(context: _better_fetch_fetch88.SuccessContext<any>): void;
|
|
1974
1973
|
};
|
|
1975
1974
|
} | {
|
|
1976
1975
|
id: string;
|
|
1977
1976
|
name: string;
|
|
1978
1977
|
hooks: {
|
|
1979
|
-
onSuccess: ((context:
|
|
1980
|
-
onError: ((context:
|
|
1981
|
-
onRequest: (<T extends Record<string, any>>(context:
|
|
1982
|
-
onResponse: ((context:
|
|
1978
|
+
onSuccess: ((context: _better_fetch_fetch88.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
1979
|
+
onError: ((context: _better_fetch_fetch88.ErrorContext) => Promise<void> | void) | undefined;
|
|
1980
|
+
onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch88.RequestContext<T>) => Promise<_better_fetch_fetch88.RequestContext | void> | _better_fetch_fetch88.RequestContext | void) | undefined;
|
|
1981
|
+
onResponse: ((context: _better_fetch_fetch88.ResponseContext) => Promise<Response | void | _better_fetch_fetch88.ResponseContext> | Response | _better_fetch_fetch88.ResponseContext | void) | undefined;
|
|
1983
1982
|
};
|
|
1984
1983
|
})[];
|
|
1985
1984
|
cache?: RequestCache | undefined;
|
|
@@ -1999,12 +1998,12 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1999
1998
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
2000
1999
|
signal?: (AbortSignal | null) | undefined;
|
|
2001
2000
|
window?: null | undefined;
|
|
2002
|
-
onRetry?: ((response:
|
|
2001
|
+
onRetry?: ((response: _better_fetch_fetch88.ResponseContext) => Promise<void> | void) | undefined;
|
|
2003
2002
|
hookOptions?: {
|
|
2004
2003
|
cloneResponse?: boolean;
|
|
2005
2004
|
} | undefined;
|
|
2006
2005
|
timeout?: number | undefined;
|
|
2007
|
-
customFetchImpl:
|
|
2006
|
+
customFetchImpl: _better_fetch_fetch88.FetchEsque;
|
|
2008
2007
|
baseURL: string;
|
|
2009
2008
|
throw?: boolean | undefined;
|
|
2010
2009
|
auth?: ({
|
|
@@ -2024,17 +2023,17 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
2024
2023
|
params?: any;
|
|
2025
2024
|
duplex?: "full" | "half" | undefined;
|
|
2026
2025
|
jsonParser: (text: string) => Promise<any> | any;
|
|
2027
|
-
retry?:
|
|
2026
|
+
retry?: _better_fetch_fetch88.RetryOptions | undefined;
|
|
2028
2027
|
retryAttempt?: number | undefined;
|
|
2029
|
-
output?: (
|
|
2030
|
-
errorSchema?:
|
|
2028
|
+
output?: (_better_fetch_fetch88.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
2029
|
+
errorSchema?: _better_fetch_fetch88.StandardSchemaV1 | undefined;
|
|
2031
2030
|
disableValidation?: boolean | undefined;
|
|
2032
2031
|
disableSignal?: boolean | undefined;
|
|
2033
2032
|
}, unknown, unknown, {}>;
|
|
2034
2033
|
$store: {
|
|
2035
2034
|
notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
|
|
2036
2035
|
listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
|
|
2037
|
-
atoms: Record<string,
|
|
2036
|
+
atoms: Record<string, better_auth_react0.WritableAtom<any>>;
|
|
2038
2037
|
};
|
|
2039
2038
|
$ERROR_CODES: {
|
|
2040
2039
|
readonly FAILED_TO_CREATE_USER: "Failed to create user";
|
|
@@ -2057,6 +2056,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
2057
2056
|
readonly YOU_CANNOT_REMOVE_YOURSELF: "You cannot remove yourself";
|
|
2058
2057
|
readonly YOU_ARE_NOT_ALLOWED_TO_SET_NON_EXISTENT_VALUE: "You are not allowed to set a non-existent role value";
|
|
2059
2058
|
readonly YOU_CANNOT_IMPERSONATE_ADMINS: "You cannot impersonate admins";
|
|
2059
|
+
readonly INVALID_ROLE_TYPE: "Invalid role type";
|
|
2060
2060
|
readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION: "You are not allowed to create a new organization";
|
|
2061
2061
|
readonly YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS: "You have reached the maximum number of organizations";
|
|
2062
2062
|
readonly ORGANIZATION_ALREADY_EXISTS: "Organization already exists";
|