@neondatabase/auth 0.3.0-beta → 0.4.0-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -7
- package/codemods/migrate-auth-ui-imports.mjs +439 -0
- package/dist/{adapter-core-B9uDhoYq.d.mts → adapter-core-BWM7cWOp.d.mts} +311 -176
- package/dist/{adapter-core-D00qcqMo.mjs → adapter-core-Bt4M5I2g.mjs} +21 -11
- package/dist/auth-interface-Clz-oWq1.d.mts +8 -0
- package/dist/better-auth-helpers-Bkezghej.mjs +541 -0
- package/dist/{better-auth-react-adapter-BO4jLN4H.d.mts → better-auth-react-adapter-BDxJ65mF.d.mts} +384 -297
- package/dist/{better-auth-react-adapter-Xdj-69i9.mjs → better-auth-react-adapter-aMv8WeDb.mjs} +1 -1
- package/dist/index.d.mts +5 -4
- package/dist/index.mjs +4 -3
- package/dist/{neon-auth-DBOB8sXF.mjs → neon-auth-CS4FpK2X.mjs} +1 -1
- package/dist/next/index.d.mts +144 -56
- package/dist/next/index.mjs +5 -4
- package/dist/next/server/index.d.mts +25 -3
- package/dist/next/server/index.mjs +60 -30
- package/dist/react/adapters/index.d.mts +3 -3
- package/dist/react/adapters/index.mjs +2 -2
- package/dist/react/index.d.mts +4 -4
- package/dist/react/index.mjs +2 -2
- package/dist/react/ui/index.d.mts +1 -1
- package/dist/{supabase-adapter-CSDRL1ZU.d.mts → supabase-adapter-BGwV0Vu2.d.mts} +381 -294
- package/dist/{supabase-adapter-CIBMebXB.mjs → supabase-adapter-DBt4LJJd.mjs} +3 -514
- package/dist/types/index.d.mts +2 -2
- package/dist/vanilla/adapters/index.d.mts +4 -3
- package/dist/vanilla/adapters/index.mjs +2 -2
- package/dist/vanilla/index.d.mts +4 -3
- package/dist/vanilla/index.mjs +2 -2
- package/llms.txt +2 -2
- package/package.json +6 -2
- package/dist/constants-Cupc_bln.mjs +0 -28
- /package/dist/{index-CPnFzULh.d.mts → index-B0Pd4HOH.d.mts} +0 -0
- /package/dist/{index-UW23fDSn.d.mts → index-CzpoWrv9.d.mts} +0 -0
- /package/dist/{index-B_Q0Tp1D.d.mts → index-DHryUj7e.d.mts} +0 -0
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { n as NeonAuthAdapterCoreAuthOptions, r as SupportedBetterAuthClientPlugins, t as NeonAuthAdapterCore } from "./adapter-core-
|
|
1
|
+
import { n as NeonAuthAdapterCoreAuthOptions, r as SupportedBetterAuthClientPlugins, t as NeonAuthAdapterCore } from "./adapter-core-BWM7cWOp.mjs";
|
|
2
|
+
import { r as SupabaseAuthClientInterface } from "./auth-interface-Clz-oWq1.mjs";
|
|
2
3
|
import * as better_auth_react5 from "better-auth/react";
|
|
3
4
|
import * as better_auth_client3 from "better-auth/client";
|
|
4
5
|
import { createAuthClient as createAuthClient$1 } from "better-auth/client";
|
|
5
6
|
import * as _supabase_auth_js0 from "@supabase/auth-js";
|
|
6
|
-
import {
|
|
7
|
+
import { JwtHeader, JwtPayload } from "@supabase/auth-js";
|
|
7
8
|
import * as jose6 from "jose";
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
10
|
-
import * as
|
|
9
|
+
import * as better_auth_plugins82 from "better-auth/plugins";
|
|
10
|
+
import * as better_auth429 from "better-auth";
|
|
11
|
+
import * as _better_fetch_fetch187 from "@better-fetch/fetch";
|
|
11
12
|
|
|
12
13
|
//#region src/adapters/better-auth-vanilla/better-auth-vanilla-adapter.d.ts
|
|
13
14
|
type BetterAuthVanillaAdapterOptions = Omit<NeonAuthAdapterCoreAuthOptions, 'baseURL'>;
|
|
@@ -18,7 +19,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
18
19
|
private _betterAuth;
|
|
19
20
|
constructor(betterAuthClientOptions: NeonAuthAdapterCoreAuthOptions);
|
|
20
21
|
getBetterAuthInstance(): {
|
|
21
|
-
useActiveOrganization: better_auth_client3.AuthQueryAtom<
|
|
22
|
+
useActiveOrganization: better_auth_client3.AuthQueryAtom<better_auth429.Prettify<{
|
|
22
23
|
id: string;
|
|
23
24
|
name: string;
|
|
24
25
|
slug: string;
|
|
@@ -44,7 +45,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
44
45
|
organizationId: string;
|
|
45
46
|
email: string;
|
|
46
47
|
role: "admin" | "member" | "owner";
|
|
47
|
-
status:
|
|
48
|
+
status: better_auth_plugins82.InvitationStatus;
|
|
48
49
|
inviterId: string;
|
|
49
50
|
expiresAt: Date;
|
|
50
51
|
createdAt: Date;
|
|
@@ -69,10 +70,10 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
69
70
|
role: string;
|
|
70
71
|
}>;
|
|
71
72
|
} & {
|
|
72
|
-
token: <FetchOptions extends
|
|
73
|
+
token: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth429.Prettify<{
|
|
73
74
|
query?: Record<string, any> | undefined;
|
|
74
75
|
fetchOptions?: FetchOptions | undefined;
|
|
75
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
76
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
76
77
|
token: string;
|
|
77
78
|
}, {
|
|
78
79
|
code?: string | undefined;
|
|
@@ -80,16 +81,16 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
80
81
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
81
82
|
} & {
|
|
82
83
|
admin: {
|
|
83
|
-
setRole: <FetchOptions extends
|
|
84
|
+
setRole: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
84
85
|
userId: string;
|
|
85
86
|
role: "user" | "admin" | ("user" | "admin")[];
|
|
86
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
87
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
87
88
|
userId: string;
|
|
88
89
|
role: "user" | "admin" | ("user" | "admin")[];
|
|
89
90
|
} & {
|
|
90
91
|
fetchOptions?: FetchOptions | undefined;
|
|
91
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
92
|
-
user:
|
|
92
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
93
|
+
user: better_auth_plugins82.UserWithRole;
|
|
93
94
|
}, {
|
|
94
95
|
code?: string | undefined;
|
|
95
96
|
message?: string | undefined;
|
|
@@ -97,44 +98,36 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
97
98
|
};
|
|
98
99
|
} & {
|
|
99
100
|
admin: {
|
|
100
|
-
getUser: <FetchOptions extends
|
|
101
|
+
getUser: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<{
|
|
101
102
|
id: string;
|
|
102
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
103
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
103
104
|
query: {
|
|
104
105
|
id: string;
|
|
105
106
|
};
|
|
106
107
|
fetchOptions?: FetchOptions | undefined;
|
|
107
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
108
|
-
id: string;
|
|
109
|
-
createdAt: Date;
|
|
110
|
-
updatedAt: Date;
|
|
111
|
-
email: string;
|
|
112
|
-
emailVerified: boolean;
|
|
113
|
-
name: string;
|
|
114
|
-
image?: string | null | undefined;
|
|
115
|
-
}, {
|
|
108
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<better_auth_plugins82.UserWithRole, {
|
|
116
109
|
code?: string | undefined;
|
|
117
110
|
message?: string | undefined;
|
|
118
111
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
119
112
|
};
|
|
120
113
|
} & {
|
|
121
114
|
admin: {
|
|
122
|
-
createUser: <FetchOptions extends
|
|
115
|
+
createUser: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
123
116
|
email: string;
|
|
124
|
-
password
|
|
117
|
+
password?: string | undefined;
|
|
125
118
|
name: string;
|
|
126
119
|
role?: "user" | "admin" | ("user" | "admin")[] | undefined;
|
|
127
120
|
data?: Record<string, any> | undefined;
|
|
128
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
121
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
129
122
|
email: string;
|
|
130
|
-
password
|
|
123
|
+
password?: string | undefined;
|
|
131
124
|
name: string;
|
|
132
125
|
role?: "user" | "admin" | ("user" | "admin")[] | undefined;
|
|
133
126
|
data?: Record<string, any> | undefined;
|
|
134
127
|
} & {
|
|
135
128
|
fetchOptions?: FetchOptions | undefined;
|
|
136
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
137
|
-
user:
|
|
129
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
130
|
+
user: better_auth_plugins82.UserWithRole;
|
|
138
131
|
}, {
|
|
139
132
|
code?: string | undefined;
|
|
140
133
|
message?: string | undefined;
|
|
@@ -142,22 +135,22 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
142
135
|
};
|
|
143
136
|
} & {
|
|
144
137
|
admin: {
|
|
145
|
-
updateUser: <FetchOptions extends
|
|
138
|
+
updateUser: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
146
139
|
userId: unknown;
|
|
147
140
|
data: Record<any, any>;
|
|
148
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
141
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
149
142
|
userId: unknown;
|
|
150
143
|
data: Record<any, any>;
|
|
151
144
|
} & {
|
|
152
145
|
fetchOptions?: FetchOptions | undefined;
|
|
153
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
146
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<better_auth_plugins82.UserWithRole, {
|
|
154
147
|
code?: string | undefined;
|
|
155
148
|
message?: string | undefined;
|
|
156
149
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
157
150
|
};
|
|
158
151
|
} & {
|
|
159
152
|
admin: {
|
|
160
|
-
listUsers: <FetchOptions extends
|
|
153
|
+
listUsers: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<{
|
|
161
154
|
searchValue?: string | undefined;
|
|
162
155
|
searchField?: "email" | "name" | undefined;
|
|
163
156
|
searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
|
|
@@ -168,7 +161,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
168
161
|
filterField?: string | undefined;
|
|
169
162
|
filterValue?: string | number | boolean | undefined;
|
|
170
163
|
filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
|
|
171
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
164
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
172
165
|
query: {
|
|
173
166
|
searchValue?: string | undefined;
|
|
174
167
|
searchField?: "email" | "name" | undefined;
|
|
@@ -182,8 +175,8 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
182
175
|
filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
|
|
183
176
|
};
|
|
184
177
|
fetchOptions?: FetchOptions | undefined;
|
|
185
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
186
|
-
users:
|
|
178
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<NonNullable<{
|
|
179
|
+
users: better_auth_plugins82.UserWithRole[];
|
|
187
180
|
total: number;
|
|
188
181
|
limit: number | undefined;
|
|
189
182
|
offset: number | undefined;
|
|
@@ -197,14 +190,14 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
197
190
|
};
|
|
198
191
|
} & {
|
|
199
192
|
admin: {
|
|
200
|
-
listUserSessions: <FetchOptions extends
|
|
193
|
+
listUserSessions: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
201
194
|
userId: unknown;
|
|
202
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
195
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
203
196
|
userId: unknown;
|
|
204
197
|
} & {
|
|
205
198
|
fetchOptions?: FetchOptions | undefined;
|
|
206
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
207
|
-
sessions:
|
|
199
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
200
|
+
sessions: better_auth_plugins82.SessionWithImpersonatedBy[];
|
|
208
201
|
}, {
|
|
209
202
|
code?: string | undefined;
|
|
210
203
|
message?: string | undefined;
|
|
@@ -212,22 +205,14 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
212
205
|
};
|
|
213
206
|
} & {
|
|
214
207
|
admin: {
|
|
215
|
-
unbanUser: <FetchOptions extends
|
|
208
|
+
unbanUser: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
216
209
|
userId: unknown;
|
|
217
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
210
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
218
211
|
userId: unknown;
|
|
219
212
|
} & {
|
|
220
213
|
fetchOptions?: FetchOptions | undefined;
|
|
221
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
222
|
-
user:
|
|
223
|
-
id: string;
|
|
224
|
-
createdAt: Date;
|
|
225
|
-
updatedAt: Date;
|
|
226
|
-
email: string;
|
|
227
|
-
emailVerified: boolean;
|
|
228
|
-
name: string;
|
|
229
|
-
image?: string | null | undefined;
|
|
230
|
-
} & Record<string, any>;
|
|
214
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
215
|
+
user: better_auth_plugins82.UserWithRole;
|
|
231
216
|
}, {
|
|
232
217
|
code?: string | undefined;
|
|
233
218
|
message?: string | undefined;
|
|
@@ -235,26 +220,18 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
235
220
|
};
|
|
236
221
|
} & {
|
|
237
222
|
admin: {
|
|
238
|
-
banUser: <FetchOptions extends
|
|
223
|
+
banUser: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
239
224
|
userId: unknown;
|
|
240
225
|
banReason?: string | undefined;
|
|
241
226
|
banExpiresIn?: number | undefined;
|
|
242
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
227
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
243
228
|
userId: unknown;
|
|
244
229
|
banReason?: string | undefined;
|
|
245
230
|
banExpiresIn?: number | undefined;
|
|
246
231
|
} & {
|
|
247
232
|
fetchOptions?: FetchOptions | undefined;
|
|
248
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
249
|
-
user:
|
|
250
|
-
id: string;
|
|
251
|
-
createdAt: Date;
|
|
252
|
-
updatedAt: Date;
|
|
253
|
-
email: string;
|
|
254
|
-
emailVerified: boolean;
|
|
255
|
-
name: string;
|
|
256
|
-
image?: string | null | undefined;
|
|
257
|
-
} & Record<string, any>;
|
|
233
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
234
|
+
user: better_auth_plugins82.UserWithRole;
|
|
258
235
|
}, {
|
|
259
236
|
code?: string | undefined;
|
|
260
237
|
message?: string | undefined;
|
|
@@ -262,13 +239,13 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
262
239
|
};
|
|
263
240
|
} & {
|
|
264
241
|
admin: {
|
|
265
|
-
impersonateUser: <FetchOptions extends
|
|
242
|
+
impersonateUser: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
266
243
|
userId: unknown;
|
|
267
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
244
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
268
245
|
userId: unknown;
|
|
269
246
|
} & {
|
|
270
247
|
fetchOptions?: FetchOptions | undefined;
|
|
271
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
248
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
272
249
|
session: {
|
|
273
250
|
id: string;
|
|
274
251
|
createdAt: Date;
|
|
@@ -279,7 +256,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
279
256
|
ipAddress?: string | null | undefined;
|
|
280
257
|
userAgent?: string | null | undefined;
|
|
281
258
|
};
|
|
282
|
-
user:
|
|
259
|
+
user: better_auth_plugins82.UserWithRole;
|
|
283
260
|
}, {
|
|
284
261
|
code?: string | undefined;
|
|
285
262
|
message?: string | undefined;
|
|
@@ -287,12 +264,29 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
287
264
|
};
|
|
288
265
|
} & {
|
|
289
266
|
admin: {
|
|
290
|
-
stopImpersonating: <FetchOptions extends
|
|
267
|
+
stopImpersonating: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth429.Prettify<{
|
|
291
268
|
query?: Record<string, any> | undefined;
|
|
292
269
|
fetchOptions?: FetchOptions | undefined;
|
|
293
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
294
|
-
session:
|
|
295
|
-
|
|
270
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
271
|
+
session: {
|
|
272
|
+
id: string;
|
|
273
|
+
createdAt: Date;
|
|
274
|
+
updatedAt: Date;
|
|
275
|
+
userId: string;
|
|
276
|
+
expiresAt: Date;
|
|
277
|
+
token: string;
|
|
278
|
+
ipAddress?: string | null | undefined;
|
|
279
|
+
userAgent?: string | null | undefined;
|
|
280
|
+
} & Record<string, any>;
|
|
281
|
+
user: {
|
|
282
|
+
id: string;
|
|
283
|
+
createdAt: Date;
|
|
284
|
+
updatedAt: Date;
|
|
285
|
+
email: string;
|
|
286
|
+
emailVerified: boolean;
|
|
287
|
+
name: string;
|
|
288
|
+
image?: string | null | undefined;
|
|
289
|
+
} & Record<string, any>;
|
|
296
290
|
}, {
|
|
297
291
|
code?: string | undefined;
|
|
298
292
|
message?: string | undefined;
|
|
@@ -300,13 +294,13 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
300
294
|
};
|
|
301
295
|
} & {
|
|
302
296
|
admin: {
|
|
303
|
-
revokeUserSession: <FetchOptions extends
|
|
297
|
+
revokeUserSession: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
304
298
|
sessionToken: string;
|
|
305
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
299
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
306
300
|
sessionToken: string;
|
|
307
301
|
} & {
|
|
308
302
|
fetchOptions?: FetchOptions | undefined;
|
|
309
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
303
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
310
304
|
success: boolean;
|
|
311
305
|
}, {
|
|
312
306
|
code?: string | undefined;
|
|
@@ -315,13 +309,13 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
315
309
|
};
|
|
316
310
|
} & {
|
|
317
311
|
admin: {
|
|
318
|
-
revokeUserSessions: <FetchOptions extends
|
|
312
|
+
revokeUserSessions: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
319
313
|
userId: unknown;
|
|
320
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
314
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
321
315
|
userId: unknown;
|
|
322
316
|
} & {
|
|
323
317
|
fetchOptions?: FetchOptions | undefined;
|
|
324
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
318
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
325
319
|
success: boolean;
|
|
326
320
|
}, {
|
|
327
321
|
code?: string | undefined;
|
|
@@ -330,13 +324,13 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
330
324
|
};
|
|
331
325
|
} & {
|
|
332
326
|
admin: {
|
|
333
|
-
removeUser: <FetchOptions extends
|
|
327
|
+
removeUser: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
334
328
|
userId: unknown;
|
|
335
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
329
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
336
330
|
userId: unknown;
|
|
337
331
|
} & {
|
|
338
332
|
fetchOptions?: FetchOptions | undefined;
|
|
339
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
333
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
340
334
|
success: boolean;
|
|
341
335
|
}, {
|
|
342
336
|
code?: string | undefined;
|
|
@@ -345,15 +339,15 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
345
339
|
};
|
|
346
340
|
} & {
|
|
347
341
|
admin: {
|
|
348
|
-
setUserPassword: <FetchOptions extends
|
|
342
|
+
setUserPassword: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
349
343
|
newPassword: string;
|
|
350
344
|
userId: unknown;
|
|
351
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
345
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
352
346
|
newPassword: string;
|
|
353
347
|
userId: unknown;
|
|
354
348
|
} & {
|
|
355
349
|
fetchOptions?: FetchOptions | undefined;
|
|
356
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
350
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
357
351
|
status: boolean;
|
|
358
352
|
}, {
|
|
359
353
|
code?: string | undefined;
|
|
@@ -362,7 +356,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
362
356
|
};
|
|
363
357
|
} & {
|
|
364
358
|
admin: {
|
|
365
|
-
hasPermission: <FetchOptions extends
|
|
359
|
+
hasPermission: <FetchOptions extends better_auth429.ClientFetchOption<Partial<({
|
|
366
360
|
permission: {
|
|
367
361
|
readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
368
362
|
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
@@ -377,7 +371,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
377
371
|
}) & {
|
|
378
372
|
userId?: string | undefined;
|
|
379
373
|
role?: "user" | "admin" | undefined;
|
|
380
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
374
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<(({
|
|
381
375
|
permission: {
|
|
382
376
|
readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
383
377
|
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
@@ -394,7 +388,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
394
388
|
role?: "user" | "admin" | undefined;
|
|
395
389
|
}) & {
|
|
396
390
|
fetchOptions?: FetchOptions | undefined;
|
|
397
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
391
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
398
392
|
error: null;
|
|
399
393
|
success: boolean;
|
|
400
394
|
}, {
|
|
@@ -404,14 +398,14 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
404
398
|
};
|
|
405
399
|
} & {
|
|
406
400
|
organization: {
|
|
407
|
-
create: <FetchOptions extends
|
|
401
|
+
create: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
408
402
|
name: string;
|
|
409
403
|
slug: string;
|
|
410
404
|
userId?: string | undefined;
|
|
411
405
|
logo?: string | undefined;
|
|
412
406
|
metadata?: Record<string, any> | undefined;
|
|
413
407
|
keepCurrentActiveOrganization?: boolean | undefined;
|
|
414
|
-
}> & 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_auth429.Prettify<{
|
|
415
409
|
name: string;
|
|
416
410
|
slug: string;
|
|
417
411
|
userId?: string | undefined;
|
|
@@ -420,7 +414,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
420
414
|
keepCurrentActiveOrganization?: boolean | undefined;
|
|
421
415
|
} & {
|
|
422
416
|
fetchOptions?: FetchOptions | undefined;
|
|
423
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
417
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
424
418
|
id: string;
|
|
425
419
|
name: string;
|
|
426
420
|
slug: string;
|
|
@@ -443,7 +437,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
443
437
|
};
|
|
444
438
|
} & {
|
|
445
439
|
organization: {
|
|
446
|
-
update: <FetchOptions extends
|
|
440
|
+
update: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
447
441
|
data: {
|
|
448
442
|
name?: string | undefined;
|
|
449
443
|
slug?: string | undefined;
|
|
@@ -451,7 +445,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
451
445
|
metadata?: Record<string, any> | undefined;
|
|
452
446
|
} & Partial<{}>;
|
|
453
447
|
organizationId?: string | undefined;
|
|
454
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
448
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
455
449
|
data: {
|
|
456
450
|
name?: string | undefined;
|
|
457
451
|
slug?: string | undefined;
|
|
@@ -461,15 +455,13 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
461
455
|
organizationId?: string | undefined;
|
|
462
456
|
} & {
|
|
463
457
|
fetchOptions?: FetchOptions | undefined;
|
|
464
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
458
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
465
459
|
id: string;
|
|
466
460
|
name: string;
|
|
467
461
|
slug: string;
|
|
468
462
|
createdAt: Date;
|
|
469
463
|
logo?: string | null | undefined | undefined;
|
|
470
464
|
metadata?: any;
|
|
471
|
-
} & {
|
|
472
|
-
metadata: Record<string, any> | undefined;
|
|
473
465
|
}, {
|
|
474
466
|
code?: string | undefined;
|
|
475
467
|
message?: string | undefined;
|
|
@@ -477,13 +469,13 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
477
469
|
};
|
|
478
470
|
} & {
|
|
479
471
|
organization: {
|
|
480
|
-
delete: <FetchOptions extends
|
|
472
|
+
delete: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
481
473
|
organizationId: string;
|
|
482
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
474
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
483
475
|
organizationId: string;
|
|
484
476
|
} & {
|
|
485
477
|
fetchOptions?: FetchOptions | undefined;
|
|
486
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
478
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
487
479
|
id: string;
|
|
488
480
|
name: string;
|
|
489
481
|
slug: string;
|
|
@@ -497,15 +489,15 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
497
489
|
};
|
|
498
490
|
} & {
|
|
499
491
|
organization: {
|
|
500
|
-
setActive: <FetchOptions extends
|
|
492
|
+
setActive: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
501
493
|
organizationId?: string | null | undefined;
|
|
502
494
|
organizationSlug?: string | undefined;
|
|
503
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
495
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth429.Prettify<{
|
|
504
496
|
organizationId?: string | null | undefined;
|
|
505
497
|
organizationSlug?: string | undefined;
|
|
506
498
|
} & {
|
|
507
499
|
fetchOptions?: FetchOptions | undefined;
|
|
508
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
500
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
509
501
|
members: {
|
|
510
502
|
id: string;
|
|
511
503
|
organizationId: string;
|
|
@@ -524,7 +516,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
524
516
|
organizationId: string;
|
|
525
517
|
email: string;
|
|
526
518
|
role: "admin" | "member" | "owner";
|
|
527
|
-
status:
|
|
519
|
+
status: better_auth_plugins82.InvitationStatus;
|
|
528
520
|
inviterId: string;
|
|
529
521
|
expiresAt: Date;
|
|
530
522
|
createdAt: Date;
|
|
@@ -543,18 +535,18 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
543
535
|
};
|
|
544
536
|
} & {
|
|
545
537
|
organization: {
|
|
546
|
-
getFullOrganization: <FetchOptions extends
|
|
538
|
+
getFullOrganization: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<{
|
|
547
539
|
organizationId?: string | undefined;
|
|
548
540
|
organizationSlug?: string | undefined;
|
|
549
541
|
membersLimit?: string | number | undefined;
|
|
550
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
542
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth429.Prettify<{
|
|
551
543
|
query?: {
|
|
552
544
|
organizationId?: string | undefined;
|
|
553
545
|
organizationSlug?: string | undefined;
|
|
554
546
|
membersLimit?: string | number | undefined;
|
|
555
547
|
} | undefined;
|
|
556
548
|
fetchOptions?: FetchOptions | undefined;
|
|
557
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
549
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
558
550
|
members: {
|
|
559
551
|
id: string;
|
|
560
552
|
organizationId: string;
|
|
@@ -573,7 +565,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
573
565
|
organizationId: string;
|
|
574
566
|
email: string;
|
|
575
567
|
role: "admin" | "member" | "owner";
|
|
576
|
-
status:
|
|
568
|
+
status: better_auth_plugins82.InvitationStatus;
|
|
577
569
|
inviterId: string;
|
|
578
570
|
expiresAt: Date;
|
|
579
571
|
createdAt: Date;
|
|
@@ -592,10 +584,10 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
592
584
|
};
|
|
593
585
|
} & {
|
|
594
586
|
organization: {
|
|
595
|
-
list: <FetchOptions extends
|
|
587
|
+
list: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth429.Prettify<{
|
|
596
588
|
query?: Record<string, any> | undefined;
|
|
597
589
|
fetchOptions?: FetchOptions | undefined;
|
|
598
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
590
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
599
591
|
id: string;
|
|
600
592
|
name: string;
|
|
601
593
|
slug: string;
|
|
@@ -609,46 +601,55 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
609
601
|
};
|
|
610
602
|
} & {
|
|
611
603
|
organization: {
|
|
612
|
-
inviteMember: <FetchOptions extends
|
|
604
|
+
inviteMember: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
613
605
|
email: string;
|
|
614
606
|
role: "admin" | "member" | "owner" | ("admin" | "member" | "owner")[];
|
|
615
607
|
organizationId?: string | undefined;
|
|
616
608
|
resend?: boolean | undefined;
|
|
617
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
609
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
618
610
|
email: string;
|
|
619
611
|
role: "admin" | "member" | "owner" | ("admin" | "member" | "owner")[];
|
|
620
612
|
organizationId?: string | undefined;
|
|
621
613
|
resend?: boolean | undefined;
|
|
622
614
|
} & {
|
|
623
615
|
fetchOptions?: FetchOptions | undefined;
|
|
624
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
616
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<NonNullable<{
|
|
625
617
|
id: string;
|
|
626
618
|
organizationId: string;
|
|
627
619
|
email: string;
|
|
628
620
|
role: "admin" | "member" | "owner";
|
|
629
|
-
status:
|
|
621
|
+
status: better_auth_plugins82.InvitationStatus;
|
|
630
622
|
inviterId: string;
|
|
631
623
|
expiresAt: Date;
|
|
632
624
|
createdAt: Date;
|
|
633
|
-
}
|
|
625
|
+
} | {
|
|
626
|
+
id: string;
|
|
627
|
+
organizationId: string;
|
|
628
|
+
email: string;
|
|
629
|
+
role: "admin" | "member" | "owner";
|
|
630
|
+
status: better_auth_plugins82.InvitationStatus;
|
|
631
|
+
inviterId: string;
|
|
632
|
+
expiresAt: Date;
|
|
633
|
+
createdAt: Date;
|
|
634
|
+
}>, {
|
|
634
635
|
code?: string | undefined;
|
|
635
636
|
message?: string | undefined;
|
|
636
637
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
637
638
|
};
|
|
638
639
|
} & {
|
|
639
640
|
organization: {
|
|
640
|
-
cancelInvitation: <FetchOptions extends
|
|
641
|
+
cancelInvitation: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
641
642
|
invitationId: string;
|
|
642
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
643
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
643
644
|
invitationId: string;
|
|
644
645
|
} & {
|
|
645
646
|
fetchOptions?: FetchOptions | undefined;
|
|
646
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
647
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
647
648
|
id: string;
|
|
648
649
|
organizationId: string;
|
|
649
650
|
email: string;
|
|
650
651
|
role: "admin" | "member" | "owner";
|
|
651
|
-
status:
|
|
652
|
+
status: better_auth_plugins82.InvitationStatus;
|
|
652
653
|
inviterId: string;
|
|
653
654
|
expiresAt: Date;
|
|
654
655
|
createdAt: Date;
|
|
@@ -659,19 +660,19 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
659
660
|
};
|
|
660
661
|
} & {
|
|
661
662
|
organization: {
|
|
662
|
-
acceptInvitation: <FetchOptions extends
|
|
663
|
+
acceptInvitation: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
663
664
|
invitationId: string;
|
|
664
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
665
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
665
666
|
invitationId: string;
|
|
666
667
|
} & {
|
|
667
668
|
fetchOptions?: FetchOptions | undefined;
|
|
668
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
669
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
669
670
|
invitation: {
|
|
670
671
|
id: string;
|
|
671
672
|
organizationId: string;
|
|
672
673
|
email: string;
|
|
673
674
|
role: "admin" | "member" | "owner";
|
|
674
|
-
status:
|
|
675
|
+
status: better_auth_plugins82.InvitationStatus;
|
|
675
676
|
inviterId: string;
|
|
676
677
|
expiresAt: Date;
|
|
677
678
|
createdAt: Date;
|
|
@@ -690,19 +691,19 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
690
691
|
};
|
|
691
692
|
} & {
|
|
692
693
|
organization: {
|
|
693
|
-
getInvitation: <FetchOptions extends
|
|
694
|
+
getInvitation: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<{
|
|
694
695
|
id: string;
|
|
695
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
696
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
696
697
|
query: {
|
|
697
698
|
id: string;
|
|
698
699
|
};
|
|
699
700
|
fetchOptions?: FetchOptions | undefined;
|
|
700
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
701
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<NonNullable<{
|
|
701
702
|
id: string;
|
|
702
703
|
organizationId: string;
|
|
703
704
|
email: string;
|
|
704
705
|
role: "admin" | "member" | "owner";
|
|
705
|
-
status:
|
|
706
|
+
status: better_auth_plugins82.InvitationStatus;
|
|
706
707
|
inviterId: string;
|
|
707
708
|
expiresAt: Date;
|
|
708
709
|
createdAt: Date;
|
|
@@ -717,19 +718,19 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
717
718
|
};
|
|
718
719
|
} & {
|
|
719
720
|
organization: {
|
|
720
|
-
rejectInvitation: <FetchOptions extends
|
|
721
|
+
rejectInvitation: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
721
722
|
invitationId: string;
|
|
722
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
723
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
723
724
|
invitationId: string;
|
|
724
725
|
} & {
|
|
725
726
|
fetchOptions?: FetchOptions | undefined;
|
|
726
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
727
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
727
728
|
invitation: {
|
|
728
729
|
id: string;
|
|
729
730
|
organizationId: string;
|
|
730
731
|
email: string;
|
|
731
732
|
role: "member" | "admin" | "owner";
|
|
732
|
-
status:
|
|
733
|
+
status: better_auth_plugins82.InvitationStatus;
|
|
733
734
|
inviterId: string;
|
|
734
735
|
expiresAt: Date;
|
|
735
736
|
createdAt: Date;
|
|
@@ -742,19 +743,19 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
742
743
|
};
|
|
743
744
|
} & {
|
|
744
745
|
organization: {
|
|
745
|
-
listInvitations: <FetchOptions extends
|
|
746
|
+
listInvitations: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<{
|
|
746
747
|
organizationId?: string | undefined;
|
|
747
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
748
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth429.Prettify<{
|
|
748
749
|
query?: {
|
|
749
750
|
organizationId?: string | undefined;
|
|
750
751
|
} | undefined;
|
|
751
752
|
fetchOptions?: FetchOptions | undefined;
|
|
752
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
753
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
753
754
|
id: string;
|
|
754
755
|
organizationId: string;
|
|
755
756
|
email: string;
|
|
756
757
|
role: "admin" | "member" | "owner";
|
|
757
|
-
status:
|
|
758
|
+
status: better_auth_plugins82.InvitationStatus;
|
|
758
759
|
inviterId: string;
|
|
759
760
|
expiresAt: Date;
|
|
760
761
|
createdAt: Date;
|
|
@@ -765,10 +766,10 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
765
766
|
};
|
|
766
767
|
} & {
|
|
767
768
|
organization: {
|
|
768
|
-
getActiveMember: <FetchOptions extends
|
|
769
|
+
getActiveMember: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth429.Prettify<{
|
|
769
770
|
query?: Record<string, any> | undefined;
|
|
770
771
|
fetchOptions?: FetchOptions | undefined;
|
|
771
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
772
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<Omit<{
|
|
772
773
|
id: string;
|
|
773
774
|
organizationId: string;
|
|
774
775
|
role: "admin" | "member" | "owner";
|
|
@@ -781,7 +782,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
781
782
|
image?: string | undefined;
|
|
782
783
|
};
|
|
783
784
|
} & {
|
|
784
|
-
user:
|
|
785
|
+
user: better_auth429.User;
|
|
785
786
|
}, "user"> & {
|
|
786
787
|
user: {
|
|
787
788
|
id: string;
|
|
@@ -796,13 +797,13 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
796
797
|
};
|
|
797
798
|
} & {
|
|
798
799
|
organization: {
|
|
799
|
-
checkSlug: <FetchOptions extends
|
|
800
|
+
checkSlug: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
800
801
|
slug: string;
|
|
801
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
802
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
802
803
|
slug: string;
|
|
803
804
|
} & {
|
|
804
805
|
fetchOptions?: FetchOptions | undefined;
|
|
805
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
806
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
806
807
|
status: boolean;
|
|
807
808
|
}, {
|
|
808
809
|
code?: string | undefined;
|
|
@@ -811,15 +812,15 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
811
812
|
};
|
|
812
813
|
} & {
|
|
813
814
|
organization: {
|
|
814
|
-
removeMember: <FetchOptions extends
|
|
815
|
+
removeMember: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
815
816
|
memberIdOrEmail: string;
|
|
816
817
|
organizationId?: string | undefined;
|
|
817
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
818
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
818
819
|
memberIdOrEmail: string;
|
|
819
820
|
organizationId?: string | undefined;
|
|
820
821
|
} & {
|
|
821
822
|
fetchOptions?: FetchOptions | undefined;
|
|
822
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
823
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
823
824
|
member: {
|
|
824
825
|
id: string;
|
|
825
826
|
organizationId: string;
|
|
@@ -840,17 +841,17 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
840
841
|
};
|
|
841
842
|
} & {
|
|
842
843
|
organization: {
|
|
843
|
-
updateMemberRole: <FetchOptions extends
|
|
844
|
-
role:
|
|
844
|
+
updateMemberRole: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
845
|
+
role: better_auth429.LiteralString | "admin" | "member" | "owner" | ("admin" | "member" | "owner")[] | better_auth429.LiteralString[];
|
|
845
846
|
memberId: string;
|
|
846
847
|
organizationId?: string | undefined;
|
|
847
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
848
|
-
role:
|
|
848
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
849
|
+
role: better_auth429.LiteralString | "admin" | "member" | "owner" | ("admin" | "member" | "owner")[] | better_auth429.LiteralString[];
|
|
849
850
|
memberId: string;
|
|
850
851
|
organizationId?: string | undefined;
|
|
851
852
|
} & {
|
|
852
853
|
fetchOptions?: FetchOptions | undefined;
|
|
853
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
854
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
854
855
|
id: string;
|
|
855
856
|
organizationId: string;
|
|
856
857
|
role: "member" | "admin" | "owner";
|
|
@@ -869,13 +870,13 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
869
870
|
};
|
|
870
871
|
} & {
|
|
871
872
|
organization: {
|
|
872
|
-
leave: <FetchOptions extends
|
|
873
|
+
leave: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
873
874
|
organizationId: string;
|
|
874
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
875
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
875
876
|
organizationId: string;
|
|
876
877
|
} & {
|
|
877
878
|
fetchOptions?: FetchOptions | undefined;
|
|
878
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
879
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<NonNullable<Omit<{
|
|
879
880
|
id: string;
|
|
880
881
|
organizationId: string;
|
|
881
882
|
role: "admin" | "member" | "owner";
|
|
@@ -888,7 +889,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
888
889
|
image?: string | undefined;
|
|
889
890
|
};
|
|
890
891
|
} & {
|
|
891
|
-
user:
|
|
892
|
+
user: better_auth429.User;
|
|
892
893
|
}, "user"> & {
|
|
893
894
|
user: {
|
|
894
895
|
id: string;
|
|
@@ -903,19 +904,19 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
903
904
|
};
|
|
904
905
|
} & {
|
|
905
906
|
organization: {
|
|
906
|
-
listUserInvitations: <FetchOptions extends
|
|
907
|
+
listUserInvitations: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<{
|
|
907
908
|
email?: string | undefined;
|
|
908
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
909
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth429.Prettify<{
|
|
909
910
|
query?: {
|
|
910
911
|
email?: string | undefined;
|
|
911
912
|
} | undefined;
|
|
912
913
|
fetchOptions?: FetchOptions | undefined;
|
|
913
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
914
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<(Omit<{
|
|
914
915
|
id: string;
|
|
915
916
|
organizationId: string;
|
|
916
917
|
email: string;
|
|
917
918
|
role: "admin" | "member" | "owner";
|
|
918
|
-
status:
|
|
919
|
+
status: better_auth_plugins82.InvitationStatus;
|
|
919
920
|
inviterId: string;
|
|
920
921
|
expiresAt: Date;
|
|
921
922
|
createdAt: Date;
|
|
@@ -937,7 +938,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
937
938
|
};
|
|
938
939
|
} & {
|
|
939
940
|
organization: {
|
|
940
|
-
listMembers: <FetchOptions extends
|
|
941
|
+
listMembers: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<{
|
|
941
942
|
limit?: string | number | undefined;
|
|
942
943
|
offset?: string | number | undefined;
|
|
943
944
|
sortBy?: string | undefined;
|
|
@@ -947,7 +948,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
947
948
|
filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
|
|
948
949
|
organizationId?: string | undefined;
|
|
949
950
|
organizationSlug?: string | undefined;
|
|
950
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
951
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth429.Prettify<{
|
|
951
952
|
query?: {
|
|
952
953
|
limit?: string | number | undefined;
|
|
953
954
|
offset?: string | number | undefined;
|
|
@@ -960,7 +961,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
960
961
|
organizationSlug?: string | undefined;
|
|
961
962
|
} | undefined;
|
|
962
963
|
fetchOptions?: FetchOptions | undefined;
|
|
963
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
964
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
964
965
|
members: ({
|
|
965
966
|
id: string;
|
|
966
967
|
organizationId: string;
|
|
@@ -989,18 +990,18 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
989
990
|
};
|
|
990
991
|
} & {
|
|
991
992
|
organization: {
|
|
992
|
-
getActiveMemberRole: <FetchOptions extends
|
|
993
|
+
getActiveMemberRole: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<{
|
|
993
994
|
userId?: string | undefined;
|
|
994
995
|
organizationId?: string | undefined;
|
|
995
996
|
organizationSlug?: string | undefined;
|
|
996
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
997
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth429.Prettify<{
|
|
997
998
|
query?: {
|
|
998
999
|
userId?: string | undefined;
|
|
999
1000
|
organizationId?: string | undefined;
|
|
1000
1001
|
organizationSlug?: string | undefined;
|
|
1001
1002
|
} | undefined;
|
|
1002
1003
|
fetchOptions?: FetchOptions | undefined;
|
|
1003
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1004
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1004
1005
|
role: "admin" | "member" | "owner";
|
|
1005
1006
|
}, {
|
|
1006
1007
|
code?: string | undefined;
|
|
@@ -1009,7 +1010,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1009
1010
|
};
|
|
1010
1011
|
} & {
|
|
1011
1012
|
organization: {
|
|
1012
|
-
hasPermission: <FetchOptions extends
|
|
1013
|
+
hasPermission: <FetchOptions extends better_auth429.ClientFetchOption<Partial<({
|
|
1013
1014
|
permission: {
|
|
1014
1015
|
readonly organization?: ("delete" | "update")[] | undefined;
|
|
1015
1016
|
readonly member?: ("delete" | "create" | "update")[] | undefined;
|
|
@@ -1029,7 +1030,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1029
1030
|
permission?: never | undefined;
|
|
1030
1031
|
}) & {
|
|
1031
1032
|
organizationId?: string | undefined;
|
|
1032
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1033
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<(({
|
|
1033
1034
|
permission: {
|
|
1034
1035
|
readonly organization?: ("delete" | "update")[] | undefined;
|
|
1035
1036
|
readonly member?: ("delete" | "create" | "update")[] | undefined;
|
|
@@ -1051,7 +1052,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1051
1052
|
organizationId?: string | undefined;
|
|
1052
1053
|
}) & {
|
|
1053
1054
|
fetchOptions?: FetchOptions | undefined;
|
|
1054
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1055
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1055
1056
|
error: null;
|
|
1056
1057
|
success: boolean;
|
|
1057
1058
|
}, {
|
|
@@ -1061,15 +1062,15 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1061
1062
|
};
|
|
1062
1063
|
} & {
|
|
1063
1064
|
emailOtp: {
|
|
1064
|
-
sendVerificationOtp: <FetchOptions extends
|
|
1065
|
+
sendVerificationOtp: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1065
1066
|
email: string;
|
|
1066
1067
|
type: "sign-in" | "email-verification" | "forget-password";
|
|
1067
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1068
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
1068
1069
|
email: string;
|
|
1069
1070
|
type: "sign-in" | "email-verification" | "forget-password";
|
|
1070
1071
|
} & {
|
|
1071
1072
|
fetchOptions?: FetchOptions | undefined;
|
|
1072
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1073
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1073
1074
|
success: boolean;
|
|
1074
1075
|
}, {
|
|
1075
1076
|
code?: string | undefined;
|
|
@@ -1078,17 +1079,17 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1078
1079
|
};
|
|
1079
1080
|
} & {
|
|
1080
1081
|
emailOtp: {
|
|
1081
|
-
checkVerificationOtp: <FetchOptions extends
|
|
1082
|
+
checkVerificationOtp: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1082
1083
|
email: string;
|
|
1083
1084
|
type: "sign-in" | "email-verification" | "forget-password";
|
|
1084
1085
|
otp: string;
|
|
1085
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1086
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
1086
1087
|
email: string;
|
|
1087
1088
|
type: "sign-in" | "email-verification" | "forget-password";
|
|
1088
1089
|
otp: string;
|
|
1089
1090
|
} & {
|
|
1090
1091
|
fetchOptions?: FetchOptions | undefined;
|
|
1091
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1092
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1092
1093
|
success: boolean;
|
|
1093
1094
|
}, {
|
|
1094
1095
|
code?: string | undefined;
|
|
@@ -1097,38 +1098,38 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1097
1098
|
};
|
|
1098
1099
|
} & {
|
|
1099
1100
|
emailOtp: {
|
|
1100
|
-
verifyEmail: <FetchOptions extends
|
|
1101
|
+
verifyEmail: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1101
1102
|
email: string;
|
|
1102
1103
|
otp: string;
|
|
1103
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1104
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
1104
1105
|
email: string;
|
|
1105
1106
|
otp: string;
|
|
1106
1107
|
} & {
|
|
1107
1108
|
fetchOptions?: FetchOptions | undefined;
|
|
1108
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1109
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<NonNullable<{
|
|
1109
1110
|
status: boolean;
|
|
1110
1111
|
token: string;
|
|
1111
1112
|
user: {
|
|
1112
1113
|
id: string;
|
|
1114
|
+
createdAt: Date;
|
|
1115
|
+
updatedAt: Date;
|
|
1113
1116
|
email: string;
|
|
1114
1117
|
emailVerified: boolean;
|
|
1115
1118
|
name: string;
|
|
1116
|
-
image
|
|
1117
|
-
|
|
1118
|
-
updatedAt: Date;
|
|
1119
|
-
};
|
|
1119
|
+
image?: string | null | undefined;
|
|
1120
|
+
} & Record<string, any>;
|
|
1120
1121
|
} | {
|
|
1121
1122
|
status: boolean;
|
|
1122
1123
|
token: null;
|
|
1123
1124
|
user: {
|
|
1124
1125
|
id: string;
|
|
1126
|
+
createdAt: Date;
|
|
1127
|
+
updatedAt: Date;
|
|
1125
1128
|
email: string;
|
|
1126
1129
|
emailVerified: boolean;
|
|
1127
1130
|
name: string;
|
|
1128
|
-
image
|
|
1129
|
-
|
|
1130
|
-
updatedAt: Date;
|
|
1131
|
-
};
|
|
1131
|
+
image?: string | null | undefined;
|
|
1132
|
+
} & Record<string, any>;
|
|
1132
1133
|
}>, {
|
|
1133
1134
|
code?: string | undefined;
|
|
1134
1135
|
message?: string | undefined;
|
|
@@ -1136,39 +1137,54 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1136
1137
|
};
|
|
1137
1138
|
} & {
|
|
1138
1139
|
signIn: {
|
|
1139
|
-
emailOtp: <FetchOptions extends
|
|
1140
|
+
emailOtp: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1140
1141
|
email: string;
|
|
1141
1142
|
otp: string;
|
|
1142
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1143
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
1143
1144
|
email: string;
|
|
1144
1145
|
otp: string;
|
|
1145
1146
|
} & {
|
|
1146
1147
|
fetchOptions?: FetchOptions | undefined;
|
|
1147
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1148
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1148
1149
|
token: string;
|
|
1149
1150
|
user: {
|
|
1150
1151
|
id: string;
|
|
1152
|
+
createdAt: Date;
|
|
1153
|
+
updatedAt: Date;
|
|
1151
1154
|
email: string;
|
|
1152
1155
|
emailVerified: boolean;
|
|
1153
1156
|
name: string;
|
|
1154
|
-
image
|
|
1155
|
-
createdAt: Date;
|
|
1156
|
-
updatedAt: Date;
|
|
1157
|
+
image?: string | null | undefined;
|
|
1157
1158
|
};
|
|
1158
1159
|
}, {
|
|
1159
1160
|
code?: string | undefined;
|
|
1160
1161
|
message?: string | undefined;
|
|
1161
1162
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1162
1163
|
};
|
|
1164
|
+
} & {
|
|
1165
|
+
emailOtp: {
|
|
1166
|
+
requestPasswordReset: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1167
|
+
email: string;
|
|
1168
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
1169
|
+
email: string;
|
|
1170
|
+
} & {
|
|
1171
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1172
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1173
|
+
success: boolean;
|
|
1174
|
+
}, {
|
|
1175
|
+
code?: string | undefined;
|
|
1176
|
+
message?: string | undefined;
|
|
1177
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1178
|
+
};
|
|
1163
1179
|
} & {
|
|
1164
1180
|
forgetPassword: {
|
|
1165
|
-
emailOtp: <FetchOptions extends
|
|
1181
|
+
emailOtp: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1166
1182
|
email: string;
|
|
1167
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1183
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
1168
1184
|
email: string;
|
|
1169
1185
|
} & {
|
|
1170
1186
|
fetchOptions?: FetchOptions | undefined;
|
|
1171
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1187
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1172
1188
|
success: boolean;
|
|
1173
1189
|
}, {
|
|
1174
1190
|
code?: string | undefined;
|
|
@@ -1177,17 +1193,17 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1177
1193
|
};
|
|
1178
1194
|
} & {
|
|
1179
1195
|
emailOtp: {
|
|
1180
|
-
resetPassword: <FetchOptions extends
|
|
1196
|
+
resetPassword: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1181
1197
|
email: string;
|
|
1182
1198
|
otp: string;
|
|
1183
1199
|
password: string;
|
|
1184
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1200
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
1185
1201
|
email: string;
|
|
1186
1202
|
otp: string;
|
|
1187
1203
|
password: string;
|
|
1188
1204
|
} & {
|
|
1189
1205
|
fetchOptions?: FetchOptions | undefined;
|
|
1190
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1206
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1191
1207
|
success: boolean;
|
|
1192
1208
|
}, {
|
|
1193
1209
|
code?: string | undefined;
|
|
@@ -1196,7 +1212,61 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1196
1212
|
};
|
|
1197
1213
|
} & {
|
|
1198
1214
|
signIn: {
|
|
1199
|
-
|
|
1215
|
+
magicLink: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1216
|
+
email: string;
|
|
1217
|
+
name?: string | undefined;
|
|
1218
|
+
callbackURL?: string | undefined;
|
|
1219
|
+
newUserCallbackURL?: string | undefined;
|
|
1220
|
+
errorCallbackURL?: string | undefined;
|
|
1221
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
1222
|
+
email: string;
|
|
1223
|
+
name?: string | undefined;
|
|
1224
|
+
callbackURL?: string | undefined;
|
|
1225
|
+
newUserCallbackURL?: string | undefined;
|
|
1226
|
+
errorCallbackURL?: string | undefined;
|
|
1227
|
+
} & {
|
|
1228
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1229
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1230
|
+
status: boolean;
|
|
1231
|
+
}, {
|
|
1232
|
+
code?: string | undefined;
|
|
1233
|
+
message?: string | undefined;
|
|
1234
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1235
|
+
};
|
|
1236
|
+
} & {
|
|
1237
|
+
magicLink: {
|
|
1238
|
+
verify: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<{
|
|
1239
|
+
token: string;
|
|
1240
|
+
callbackURL?: string | undefined;
|
|
1241
|
+
errorCallbackURL?: string | undefined;
|
|
1242
|
+
newUserCallbackURL?: string | undefined;
|
|
1243
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
1244
|
+
query: {
|
|
1245
|
+
token: string;
|
|
1246
|
+
callbackURL?: string | undefined;
|
|
1247
|
+
errorCallbackURL?: string | undefined;
|
|
1248
|
+
newUserCallbackURL?: string | undefined;
|
|
1249
|
+
};
|
|
1250
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1251
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1252
|
+
token: string;
|
|
1253
|
+
user: {
|
|
1254
|
+
id: string;
|
|
1255
|
+
createdAt: Date;
|
|
1256
|
+
updatedAt: Date;
|
|
1257
|
+
email: string;
|
|
1258
|
+
emailVerified: boolean;
|
|
1259
|
+
name: string;
|
|
1260
|
+
image?: string | null | undefined;
|
|
1261
|
+
};
|
|
1262
|
+
}, {
|
|
1263
|
+
code?: string | undefined;
|
|
1264
|
+
message?: string | undefined;
|
|
1265
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1266
|
+
};
|
|
1267
|
+
} & {
|
|
1268
|
+
signIn: {
|
|
1269
|
+
social: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1200
1270
|
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";
|
|
1201
1271
|
callbackURL?: string | undefined;
|
|
1202
1272
|
newUserCallbackURL?: string | undefined;
|
|
@@ -1213,7 +1283,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1213
1283
|
requestSignUp?: boolean | undefined;
|
|
1214
1284
|
loginHint?: string | undefined;
|
|
1215
1285
|
additionalData?: Record<string, any> | undefined;
|
|
1216
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1286
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
1217
1287
|
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";
|
|
1218
1288
|
callbackURL?: string | undefined;
|
|
1219
1289
|
newUserCallbackURL?: string | undefined;
|
|
@@ -1232,7 +1302,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1232
1302
|
additionalData?: Record<string, any> | undefined;
|
|
1233
1303
|
} & {
|
|
1234
1304
|
fetchOptions?: FetchOptions | undefined;
|
|
1235
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1305
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<NonNullable<{
|
|
1236
1306
|
redirect: boolean;
|
|
1237
1307
|
url: string;
|
|
1238
1308
|
} | {
|
|
@@ -1254,10 +1324,10 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1254
1324
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1255
1325
|
};
|
|
1256
1326
|
} & {
|
|
1257
|
-
signOut: <FetchOptions extends
|
|
1327
|
+
signOut: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth429.Prettify<{
|
|
1258
1328
|
query?: Record<string, any> | undefined;
|
|
1259
1329
|
fetchOptions?: FetchOptions | undefined;
|
|
1260
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1330
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1261
1331
|
success: boolean;
|
|
1262
1332
|
}, {
|
|
1263
1333
|
code?: string | undefined;
|
|
@@ -1265,21 +1335,21 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1265
1335
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1266
1336
|
} & {
|
|
1267
1337
|
signUp: {
|
|
1268
|
-
email: <FetchOptions extends
|
|
1338
|
+
email: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1269
1339
|
name: string;
|
|
1270
1340
|
email: string;
|
|
1271
1341
|
password: string;
|
|
1272
1342
|
image?: string | undefined;
|
|
1273
1343
|
callbackURL?: string | undefined;
|
|
1274
1344
|
rememberMe?: boolean | undefined;
|
|
1275
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1345
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
1276
1346
|
email: string;
|
|
1277
1347
|
name: string;
|
|
1278
1348
|
password: string;
|
|
1279
1349
|
image?: string | undefined;
|
|
1280
1350
|
callbackURL?: string | undefined;
|
|
1281
1351
|
fetchOptions?: FetchOptions | undefined;
|
|
1282
|
-
} & {} & {}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1352
|
+
} & {} & {}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<NonNullable<{
|
|
1283
1353
|
token: null;
|
|
1284
1354
|
user: {
|
|
1285
1355
|
id: string;
|
|
@@ -1308,19 +1378,19 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1308
1378
|
};
|
|
1309
1379
|
} & {
|
|
1310
1380
|
signIn: {
|
|
1311
|
-
email: <FetchOptions extends
|
|
1381
|
+
email: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1312
1382
|
email: string;
|
|
1313
1383
|
password: string;
|
|
1314
1384
|
callbackURL?: string | undefined;
|
|
1315
1385
|
rememberMe?: boolean | undefined;
|
|
1316
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1386
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
1317
1387
|
email: string;
|
|
1318
1388
|
password: string;
|
|
1319
1389
|
callbackURL?: string | undefined;
|
|
1320
1390
|
rememberMe?: boolean | undefined;
|
|
1321
1391
|
} & {
|
|
1322
1392
|
fetchOptions?: FetchOptions | undefined;
|
|
1323
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1393
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1324
1394
|
redirect: boolean;
|
|
1325
1395
|
token: string;
|
|
1326
1396
|
url?: string | undefined;
|
|
@@ -1339,120 +1409,120 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1339
1409
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1340
1410
|
};
|
|
1341
1411
|
} & {
|
|
1342
|
-
resetPassword: <FetchOptions extends
|
|
1412
|
+
resetPassword: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1343
1413
|
newPassword: string;
|
|
1344
1414
|
token?: string | undefined;
|
|
1345
1415
|
}> & Record<string, any>, Partial<{
|
|
1346
1416
|
token?: string | undefined;
|
|
1347
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1417
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
1348
1418
|
newPassword: string;
|
|
1349
1419
|
token?: string | undefined;
|
|
1350
1420
|
} & {
|
|
1351
1421
|
fetchOptions?: FetchOptions | undefined;
|
|
1352
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1422
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1353
1423
|
status: boolean;
|
|
1354
1424
|
}, {
|
|
1355
1425
|
code?: string | undefined;
|
|
1356
1426
|
message?: string | undefined;
|
|
1357
1427
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1358
1428
|
} & {
|
|
1359
|
-
verifyEmail: <FetchOptions extends
|
|
1429
|
+
verifyEmail: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<{
|
|
1360
1430
|
token: string;
|
|
1361
1431
|
callbackURL?: string | undefined;
|
|
1362
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1432
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
1363
1433
|
query: {
|
|
1364
1434
|
token: string;
|
|
1365
1435
|
callbackURL?: string | undefined;
|
|
1366
1436
|
};
|
|
1367
1437
|
fetchOptions?: FetchOptions | undefined;
|
|
1368
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1438
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<NonNullable<void | {
|
|
1369
1439
|
status: boolean;
|
|
1370
1440
|
}>, {
|
|
1371
1441
|
code?: string | undefined;
|
|
1372
1442
|
message?: string | undefined;
|
|
1373
1443
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1374
1444
|
} & {
|
|
1375
|
-
sendVerificationEmail: <FetchOptions extends
|
|
1445
|
+
sendVerificationEmail: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1376
1446
|
email: string;
|
|
1377
1447
|
callbackURL?: string | undefined;
|
|
1378
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1448
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
1379
1449
|
email: string;
|
|
1380
1450
|
callbackURL?: string | undefined;
|
|
1381
1451
|
} & {
|
|
1382
1452
|
fetchOptions?: FetchOptions | undefined;
|
|
1383
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1453
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1384
1454
|
status: boolean;
|
|
1385
1455
|
}, {
|
|
1386
1456
|
code?: string | undefined;
|
|
1387
1457
|
message?: string | undefined;
|
|
1388
1458
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1389
1459
|
} & {
|
|
1390
|
-
changeEmail: <FetchOptions extends
|
|
1460
|
+
changeEmail: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1391
1461
|
newEmail: string;
|
|
1392
1462
|
callbackURL?: string | undefined;
|
|
1393
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1463
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
1394
1464
|
newEmail: string;
|
|
1395
1465
|
callbackURL?: string | undefined;
|
|
1396
1466
|
} & {
|
|
1397
1467
|
fetchOptions?: FetchOptions | undefined;
|
|
1398
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1468
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1399
1469
|
status: boolean;
|
|
1400
1470
|
}, {
|
|
1401
1471
|
code?: string | undefined;
|
|
1402
1472
|
message?: string | undefined;
|
|
1403
1473
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1404
1474
|
} & {
|
|
1405
|
-
changePassword: <FetchOptions extends
|
|
1475
|
+
changePassword: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1406
1476
|
newPassword: string;
|
|
1407
1477
|
currentPassword: string;
|
|
1408
1478
|
revokeOtherSessions?: boolean | undefined;
|
|
1409
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1479
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
1410
1480
|
newPassword: string;
|
|
1411
1481
|
currentPassword: string;
|
|
1412
1482
|
revokeOtherSessions?: boolean | undefined;
|
|
1413
1483
|
} & {
|
|
1414
1484
|
fetchOptions?: FetchOptions | undefined;
|
|
1415
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1485
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1416
1486
|
token: string | null;
|
|
1417
1487
|
user: {
|
|
1418
1488
|
id: string;
|
|
1419
|
-
email: string;
|
|
1420
|
-
name: string;
|
|
1421
|
-
image: string | null | undefined;
|
|
1422
|
-
emailVerified: boolean;
|
|
1423
1489
|
createdAt: Date;
|
|
1424
1490
|
updatedAt: Date;
|
|
1425
|
-
|
|
1491
|
+
email: string;
|
|
1492
|
+
emailVerified: boolean;
|
|
1493
|
+
name: string;
|
|
1494
|
+
image?: string | null | undefined;
|
|
1495
|
+
} & Record<string, any>;
|
|
1426
1496
|
}, {
|
|
1427
1497
|
code?: string | undefined;
|
|
1428
1498
|
message?: string | undefined;
|
|
1429
1499
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1430
1500
|
} & {
|
|
1431
|
-
updateUser: <FetchOptions extends
|
|
1501
|
+
updateUser: <FetchOptions extends better_auth429.ClientFetchOption<Partial<Partial<{}> & {
|
|
1432
1502
|
name?: string | undefined;
|
|
1433
1503
|
image?: string | undefined | null;
|
|
1434
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
1504
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth429.Prettify<{
|
|
1435
1505
|
image?: (string | null) | undefined;
|
|
1436
1506
|
name?: string | undefined;
|
|
1437
1507
|
fetchOptions?: FetchOptions | undefined;
|
|
1438
|
-
} & Partial<{} & {}>> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1508
|
+
} & Partial<{} & {}>> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1439
1509
|
status: boolean;
|
|
1440
1510
|
}, {
|
|
1441
1511
|
code?: string | undefined;
|
|
1442
1512
|
message?: string | undefined;
|
|
1443
1513
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1444
1514
|
} & {
|
|
1445
|
-
deleteUser: <FetchOptions extends
|
|
1515
|
+
deleteUser: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1446
1516
|
callbackURL?: string | undefined;
|
|
1447
1517
|
password?: string | undefined;
|
|
1448
1518
|
token?: string | undefined;
|
|
1449
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
1519
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth429.Prettify<{
|
|
1450
1520
|
callbackURL?: string | undefined;
|
|
1451
1521
|
password?: string | undefined;
|
|
1452
1522
|
token?: string | undefined;
|
|
1453
1523
|
} & {
|
|
1454
1524
|
fetchOptions?: FetchOptions | undefined;
|
|
1455
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1525
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1456
1526
|
success: boolean;
|
|
1457
1527
|
message: string;
|
|
1458
1528
|
}, {
|
|
@@ -1460,15 +1530,15 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1460
1530
|
message?: string | undefined;
|
|
1461
1531
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1462
1532
|
} & {
|
|
1463
|
-
requestPasswordReset: <FetchOptions extends
|
|
1533
|
+
requestPasswordReset: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1464
1534
|
email: string;
|
|
1465
1535
|
redirectTo?: string | undefined;
|
|
1466
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1536
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
1467
1537
|
email: string;
|
|
1468
1538
|
redirectTo?: string | undefined;
|
|
1469
1539
|
} & {
|
|
1470
1540
|
fetchOptions?: FetchOptions | undefined;
|
|
1471
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1541
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1472
1542
|
status: boolean;
|
|
1473
1543
|
message: string;
|
|
1474
1544
|
}, {
|
|
@@ -1477,25 +1547,25 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1477
1547
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1478
1548
|
} & {
|
|
1479
1549
|
resetPassword: {
|
|
1480
|
-
":token": <FetchOptions extends
|
|
1550
|
+
":token": <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<{
|
|
1481
1551
|
callbackURL: string;
|
|
1482
1552
|
}> & Record<string, any>, {
|
|
1483
1553
|
token: string;
|
|
1484
|
-
}>>(data_0:
|
|
1554
|
+
}>>(data_0: better_auth429.Prettify<{
|
|
1485
1555
|
query: {
|
|
1486
1556
|
callbackURL: string;
|
|
1487
1557
|
};
|
|
1488
1558
|
fetchOptions?: FetchOptions | undefined;
|
|
1489
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1559
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<never, {
|
|
1490
1560
|
code?: string | undefined;
|
|
1491
1561
|
message?: string | undefined;
|
|
1492
1562
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1493
1563
|
};
|
|
1494
1564
|
} & {
|
|
1495
|
-
listSessions: <FetchOptions extends
|
|
1565
|
+
listSessions: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth429.Prettify<{
|
|
1496
1566
|
query?: Record<string, any> | undefined;
|
|
1497
1567
|
fetchOptions?: FetchOptions | undefined;
|
|
1498
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1568
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<better_auth429.Prettify<{
|
|
1499
1569
|
id: string;
|
|
1500
1570
|
createdAt: Date;
|
|
1501
1571
|
updatedAt: Date;
|
|
@@ -1509,40 +1579,40 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1509
1579
|
message?: string | undefined;
|
|
1510
1580
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1511
1581
|
} & {
|
|
1512
|
-
revokeSession: <FetchOptions extends
|
|
1582
|
+
revokeSession: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1513
1583
|
token: string;
|
|
1514
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1584
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
1515
1585
|
token: string;
|
|
1516
1586
|
} & {
|
|
1517
1587
|
fetchOptions?: FetchOptions | undefined;
|
|
1518
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1588
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1519
1589
|
status: boolean;
|
|
1520
1590
|
}, {
|
|
1521
1591
|
code?: string | undefined;
|
|
1522
1592
|
message?: string | undefined;
|
|
1523
1593
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1524
1594
|
} & {
|
|
1525
|
-
revokeSessions: <FetchOptions extends
|
|
1595
|
+
revokeSessions: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth429.Prettify<{
|
|
1526
1596
|
query?: Record<string, any> | undefined;
|
|
1527
1597
|
fetchOptions?: FetchOptions | undefined;
|
|
1528
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1598
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1529
1599
|
status: boolean;
|
|
1530
1600
|
}, {
|
|
1531
1601
|
code?: string | undefined;
|
|
1532
1602
|
message?: string | undefined;
|
|
1533
1603
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1534
1604
|
} & {
|
|
1535
|
-
revokeOtherSessions: <FetchOptions extends
|
|
1605
|
+
revokeOtherSessions: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth429.Prettify<{
|
|
1536
1606
|
query?: Record<string, any> | undefined;
|
|
1537
1607
|
fetchOptions?: FetchOptions | undefined;
|
|
1538
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1608
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1539
1609
|
status: boolean;
|
|
1540
1610
|
}, {
|
|
1541
1611
|
code?: string | undefined;
|
|
1542
1612
|
message?: string | undefined;
|
|
1543
1613
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1544
1614
|
} & {
|
|
1545
|
-
linkSocial: <FetchOptions extends
|
|
1615
|
+
linkSocial: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1546
1616
|
provider: unknown;
|
|
1547
1617
|
callbackURL?: string | undefined;
|
|
1548
1618
|
idToken?: {
|
|
@@ -1557,7 +1627,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1557
1627
|
errorCallbackURL?: string | undefined;
|
|
1558
1628
|
disableRedirect?: boolean | undefined;
|
|
1559
1629
|
additionalData?: Record<string, any> | undefined;
|
|
1560
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1630
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
1561
1631
|
provider: unknown;
|
|
1562
1632
|
callbackURL?: string | undefined;
|
|
1563
1633
|
idToken?: {
|
|
@@ -1574,7 +1644,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1574
1644
|
additionalData?: Record<string, any> | undefined;
|
|
1575
1645
|
} & {
|
|
1576
1646
|
fetchOptions?: FetchOptions | undefined;
|
|
1577
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1647
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1578
1648
|
url: string;
|
|
1579
1649
|
redirect: boolean;
|
|
1580
1650
|
}, {
|
|
@@ -1582,33 +1652,33 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1582
1652
|
message?: string | undefined;
|
|
1583
1653
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1584
1654
|
} & {
|
|
1585
|
-
listAccounts: <FetchOptions extends
|
|
1655
|
+
listAccounts: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth429.Prettify<{
|
|
1586
1656
|
query?: Record<string, any> | undefined;
|
|
1587
1657
|
fetchOptions?: FetchOptions | undefined;
|
|
1588
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1658
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1659
|
+
scopes: string[];
|
|
1589
1660
|
id: string;
|
|
1590
|
-
providerId: string;
|
|
1591
1661
|
createdAt: Date;
|
|
1592
1662
|
updatedAt: Date;
|
|
1593
|
-
accountId: string;
|
|
1594
1663
|
userId: string;
|
|
1595
|
-
|
|
1664
|
+
providerId: string;
|
|
1665
|
+
accountId: string;
|
|
1596
1666
|
}[], {
|
|
1597
1667
|
code?: string | undefined;
|
|
1598
1668
|
message?: string | undefined;
|
|
1599
1669
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1600
1670
|
} & {
|
|
1601
1671
|
deleteUser: {
|
|
1602
|
-
callback: <FetchOptions extends
|
|
1672
|
+
callback: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<{
|
|
1603
1673
|
token: string;
|
|
1604
1674
|
callbackURL?: string | undefined;
|
|
1605
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1675
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
1606
1676
|
query: {
|
|
1607
1677
|
token: string;
|
|
1608
1678
|
callbackURL?: string | undefined;
|
|
1609
1679
|
};
|
|
1610
1680
|
fetchOptions?: FetchOptions | undefined;
|
|
1611
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1681
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1612
1682
|
success: boolean;
|
|
1613
1683
|
message: string;
|
|
1614
1684
|
}, {
|
|
@@ -1617,32 +1687,32 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1617
1687
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1618
1688
|
};
|
|
1619
1689
|
} & {
|
|
1620
|
-
unlinkAccount: <FetchOptions extends
|
|
1690
|
+
unlinkAccount: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1621
1691
|
providerId: string;
|
|
1622
1692
|
accountId?: string | undefined;
|
|
1623
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1693
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
1624
1694
|
providerId: string;
|
|
1625
1695
|
accountId?: string | undefined;
|
|
1626
1696
|
} & {
|
|
1627
1697
|
fetchOptions?: FetchOptions | undefined;
|
|
1628
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1698
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1629
1699
|
status: boolean;
|
|
1630
1700
|
}, {
|
|
1631
1701
|
code?: string | undefined;
|
|
1632
1702
|
message?: string | undefined;
|
|
1633
1703
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1634
1704
|
} & {
|
|
1635
|
-
refreshToken: <FetchOptions extends
|
|
1705
|
+
refreshToken: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1636
1706
|
providerId: string;
|
|
1637
1707
|
accountId?: string | undefined;
|
|
1638
1708
|
userId?: string | undefined;
|
|
1639
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1709
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
1640
1710
|
providerId: string;
|
|
1641
1711
|
accountId?: string | undefined;
|
|
1642
1712
|
userId?: string | undefined;
|
|
1643
1713
|
} & {
|
|
1644
1714
|
fetchOptions?: FetchOptions | undefined;
|
|
1645
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1715
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1646
1716
|
accessToken: string | undefined;
|
|
1647
1717
|
refreshToken: string | undefined;
|
|
1648
1718
|
accessTokenExpiresAt: Date | undefined;
|
|
@@ -1656,17 +1726,17 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1656
1726
|
message?: string | undefined;
|
|
1657
1727
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1658
1728
|
} & {
|
|
1659
|
-
getAccessToken: <FetchOptions extends
|
|
1729
|
+
getAccessToken: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1660
1730
|
providerId: string;
|
|
1661
1731
|
accountId?: string | undefined;
|
|
1662
1732
|
userId?: string | undefined;
|
|
1663
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1733
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
1664
1734
|
providerId: string;
|
|
1665
1735
|
accountId?: string | undefined;
|
|
1666
1736
|
userId?: string | undefined;
|
|
1667
1737
|
} & {
|
|
1668
1738
|
fetchOptions?: FetchOptions | undefined;
|
|
1669
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1739
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1670
1740
|
accessToken: string;
|
|
1671
1741
|
accessTokenExpiresAt: Date | undefined;
|
|
1672
1742
|
scopes: string[];
|
|
@@ -1676,31 +1746,31 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1676
1746
|
message?: string | undefined;
|
|
1677
1747
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1678
1748
|
} & {
|
|
1679
|
-
accountInfo: <FetchOptions extends
|
|
1749
|
+
accountInfo: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<{
|
|
1680
1750
|
accountId?: string | undefined;
|
|
1681
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
1751
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth429.Prettify<{
|
|
1682
1752
|
query?: {
|
|
1683
1753
|
accountId?: string | undefined;
|
|
1684
1754
|
} | undefined;
|
|
1685
1755
|
fetchOptions?: FetchOptions | undefined;
|
|
1686
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1687
|
-
user:
|
|
1756
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1757
|
+
user: better_auth429.OAuth2UserInfo;
|
|
1688
1758
|
data: Record<string, any>;
|
|
1689
1759
|
}, {
|
|
1690
1760
|
code?: string | undefined;
|
|
1691
1761
|
message?: string | undefined;
|
|
1692
1762
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1693
1763
|
} & {
|
|
1694
|
-
getSession: <FetchOptions extends
|
|
1764
|
+
getSession: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<{
|
|
1695
1765
|
disableCookieCache?: unknown;
|
|
1696
1766
|
disableRefresh?: unknown;
|
|
1697
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
1767
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth429.Prettify<{
|
|
1698
1768
|
query?: {
|
|
1699
1769
|
disableCookieCache?: unknown;
|
|
1700
1770
|
disableRefresh?: unknown;
|
|
1701
1771
|
} | undefined;
|
|
1702
1772
|
fetchOptions?: FetchOptions | undefined;
|
|
1703
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1773
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1704
1774
|
user: {
|
|
1705
1775
|
id: string;
|
|
1706
1776
|
createdAt: Date;
|
|
@@ -1796,7 +1866,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1796
1866
|
organizationId: string;
|
|
1797
1867
|
email: string;
|
|
1798
1868
|
role: "admin" | "member" | "owner";
|
|
1799
|
-
status:
|
|
1869
|
+
status: better_auth_plugins82.InvitationStatus;
|
|
1800
1870
|
inviterId: string;
|
|
1801
1871
|
expiresAt: Date;
|
|
1802
1872
|
createdAt: Date;
|
|
@@ -1822,7 +1892,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1822
1892
|
organizationId: string;
|
|
1823
1893
|
email: string;
|
|
1824
1894
|
role: "admin" | "member" | "owner";
|
|
1825
|
-
status:
|
|
1895
|
+
status: better_auth_plugins82.InvitationStatus;
|
|
1826
1896
|
inviterId: string;
|
|
1827
1897
|
expiresAt: Date;
|
|
1828
1898
|
createdAt: Date;
|
|
@@ -1900,28 +1970,33 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1900
1970
|
activeOrganizationId?: string | null | undefined;
|
|
1901
1971
|
};
|
|
1902
1972
|
} | null;
|
|
1903
|
-
error:
|
|
1973
|
+
error: _better_fetch_fetch187.BetterFetchError | null;
|
|
1904
1974
|
isPending: boolean;
|
|
1975
|
+
isRefetching: boolean;
|
|
1976
|
+
refetch: (queryParams?: {
|
|
1977
|
+
query?: better_auth429.SessionQueryParams;
|
|
1978
|
+
} | undefined) => Promise<void>;
|
|
1905
1979
|
}>;
|
|
1906
|
-
$fetch:
|
|
1907
|
-
plugins: (
|
|
1980
|
+
$fetch: _better_fetch_fetch187.BetterFetch<{
|
|
1981
|
+
plugins: (_better_fetch_fetch187.BetterFetchPlugin<Record<string, any>> | {
|
|
1908
1982
|
id: string;
|
|
1909
1983
|
name: string;
|
|
1910
1984
|
hooks: {
|
|
1911
|
-
onSuccess(context:
|
|
1985
|
+
onSuccess(context: _better_fetch_fetch187.SuccessContext<any>): void;
|
|
1912
1986
|
};
|
|
1913
1987
|
} | {
|
|
1914
1988
|
id: string;
|
|
1915
1989
|
name: string;
|
|
1916
1990
|
hooks: {
|
|
1917
|
-
onSuccess: ((context:
|
|
1918
|
-
onError: ((context:
|
|
1919
|
-
onRequest: (<T extends Record<string, any>>(context:
|
|
1920
|
-
onResponse: ((context:
|
|
1991
|
+
onSuccess: ((context: _better_fetch_fetch187.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
1992
|
+
onError: ((context: _better_fetch_fetch187.ErrorContext) => Promise<void> | void) | undefined;
|
|
1993
|
+
onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch187.RequestContext<T>) => Promise<_better_fetch_fetch187.RequestContext | void> | _better_fetch_fetch187.RequestContext | void) | undefined;
|
|
1994
|
+
onResponse: ((context: _better_fetch_fetch187.ResponseContext) => Promise<Response | void | _better_fetch_fetch187.ResponseContext> | Response | _better_fetch_fetch187.ResponseContext | void) | undefined;
|
|
1921
1995
|
};
|
|
1922
1996
|
})[];
|
|
1923
1997
|
cache?: RequestCache | undefined;
|
|
1924
1998
|
method: string;
|
|
1999
|
+
window?: null | undefined;
|
|
1925
2000
|
headers?: (HeadersInit & (HeadersInit | {
|
|
1926
2001
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
1927
2002
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
@@ -1936,13 +2011,12 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1936
2011
|
referrer?: string | undefined;
|
|
1937
2012
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
1938
2013
|
signal?: (AbortSignal | null) | undefined;
|
|
1939
|
-
|
|
1940
|
-
onRetry?: ((response: _better_fetch_fetch181.ResponseContext) => Promise<void> | void) | undefined;
|
|
2014
|
+
onRetry?: ((response: _better_fetch_fetch187.ResponseContext) => Promise<void> | void) | undefined;
|
|
1941
2015
|
hookOptions?: {
|
|
1942
2016
|
cloneResponse?: boolean;
|
|
1943
2017
|
} | undefined;
|
|
1944
2018
|
timeout?: number | undefined;
|
|
1945
|
-
customFetchImpl:
|
|
2019
|
+
customFetchImpl: _better_fetch_fetch187.FetchEsque;
|
|
1946
2020
|
baseURL: string;
|
|
1947
2021
|
throw?: boolean | undefined;
|
|
1948
2022
|
auth?: ({
|
|
@@ -1962,10 +2036,10 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1962
2036
|
params?: any;
|
|
1963
2037
|
duplex?: "full" | "half" | undefined;
|
|
1964
2038
|
jsonParser: (text: string) => Promise<any> | any;
|
|
1965
|
-
retry?:
|
|
2039
|
+
retry?: _better_fetch_fetch187.RetryOptions | undefined;
|
|
1966
2040
|
retryAttempt?: number | undefined;
|
|
1967
|
-
output?: (
|
|
1968
|
-
errorSchema?:
|
|
2041
|
+
output?: (_better_fetch_fetch187.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
2042
|
+
errorSchema?: _better_fetch_fetch187.StandardSchemaV1 | undefined;
|
|
1969
2043
|
disableValidation?: boolean | undefined;
|
|
1970
2044
|
disableSignal?: boolean | undefined;
|
|
1971
2045
|
}, unknown, unknown, {}>;
|
|
@@ -2106,6 +2180,24 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
2106
2180
|
readonly FAILED_TO_UNLINK_LAST_ACCOUNT: "You can't unlink your last account";
|
|
2107
2181
|
readonly ACCOUNT_NOT_FOUND: "Account not found";
|
|
2108
2182
|
readonly USER_ALREADY_HAS_PASSWORD: "User already has a password. Provide that to delete the account.";
|
|
2183
|
+
readonly CROSS_SITE_NAVIGATION_LOGIN_BLOCKED: "Cross-site navigation login blocked. This request appears to be a CSRF attack.";
|
|
2184
|
+
readonly VERIFICATION_EMAIL_NOT_ENABLED: "Verification email isn't enabled";
|
|
2185
|
+
readonly EMAIL_ALREADY_VERIFIED: "Email is already verified";
|
|
2186
|
+
readonly EMAIL_MISMATCH: "Email mismatch";
|
|
2187
|
+
readonly SESSION_NOT_FRESH: "Session is not fresh";
|
|
2188
|
+
readonly LINKED_ACCOUNT_ALREADY_EXISTS: "Linked account already exists";
|
|
2189
|
+
readonly INVALID_ORIGIN: "Invalid origin";
|
|
2190
|
+
readonly INVALID_CALLBACK_URL: "Invalid callbackURL";
|
|
2191
|
+
readonly INVALID_REDIRECT_URL: "Invalid redirectURL";
|
|
2192
|
+
readonly INVALID_ERROR_CALLBACK_URL: "Invalid errorCallbackURL";
|
|
2193
|
+
readonly INVALID_NEW_USER_CALLBACK_URL: "Invalid newUserCallbackURL";
|
|
2194
|
+
readonly MISSING_OR_NULL_ORIGIN: "Missing or null Origin";
|
|
2195
|
+
readonly CALLBACK_URL_REQUIRED: "callbackURL is required";
|
|
2196
|
+
readonly FAILED_TO_CREATE_VERIFICATION: "Unable to create verification";
|
|
2197
|
+
readonly FIELD_NOT_ALLOWED: "Field not allowed to be set";
|
|
2198
|
+
readonly ASYNC_VALIDATION_NOT_SUPPORTED: "Async validation is not supported";
|
|
2199
|
+
readonly VALIDATION_ERROR: "Validation Error";
|
|
2200
|
+
readonly MISSING_FIELD: "Field is required";
|
|
2109
2201
|
};
|
|
2110
2202
|
};
|
|
2111
2203
|
}
|
|
@@ -2135,11 +2227,6 @@ type BetterAuthVanillaAdapterBuilder = (url: string, fetchOptions?: {
|
|
|
2135
2227
|
*/
|
|
2136
2228
|
declare function BetterAuthVanillaAdapter(options?: BetterAuthVanillaAdapterOptions): BetterAuthVanillaAdapterBuilder;
|
|
2137
2229
|
//#endregion
|
|
2138
|
-
//#region src/adapters/supabase/auth-interface.d.ts
|
|
2139
|
-
type _UpstreamAuthClientInstance = InstanceType<typeof AuthClient>;
|
|
2140
|
-
type _AuthClientBase = { [K in keyof _UpstreamAuthClientInstance as _UpstreamAuthClientInstance[K] extends never ? never : K]: _UpstreamAuthClientInstance[K] };
|
|
2141
|
-
type SupabaseAuthClientInterface = _AuthClientBase;
|
|
2142
|
-
//#endregion
|
|
2143
2230
|
//#region src/adapters/supabase/supabase-adapter.d.ts
|
|
2144
2231
|
type SupabaseAuthAdapterOptions = Omit<NeonAuthAdapterCoreAuthOptions, 'baseURL'>;
|
|
2145
2232
|
/**
|