@neondatabase/auth 0.2.0-beta.1 → 0.4.0-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +22 -7
- package/codemods/migrate-auth-ui-imports.mjs +439 -0
- package/dist/{adapter-core-CnrOXh1T.d.mts → adapter-core-BWM7cWOp.d.mts} +465 -401
- package/dist/{adapter-core-CtmnMMJ7.mjs → adapter-core-Bt4M5I2g.mjs} +21 -11
- package/dist/auth-interface-Clz-oWq1.d.mts +8 -0
- package/dist/better-auth-helpers-Bkezghej.mjs +541 -0
- package/dist/{better-auth-react-adapter-DNi5PC5D.d.mts → better-auth-react-adapter-BDxJ65mF.d.mts} +389 -302
- package/dist/{better-auth-react-adapter-Dv-o6A6O.mjs → better-auth-react-adapter-aMv8WeDb.mjs} +1 -1
- package/dist/{index-CzsGMS7C.d.mts → index-DHryUj7e.d.mts} +0 -1
- package/dist/index.d.mts +94 -5
- package/dist/index.mjs +4 -3
- package/dist/{neon-auth-Cs2cWh1B.mjs → neon-auth-CS4FpK2X.mjs} +1 -1
- package/dist/next/index.d.mts +161 -73
- package/dist/next/index.mjs +5 -4
- package/dist/next/server/index.d.mts +25 -5
- package/dist/next/server/index.mjs +369 -251
- package/dist/react/adapters/index.d.mts +3 -3
- package/dist/react/adapters/index.mjs +2 -2
- package/dist/react/index.d.mts +6 -5
- package/dist/react/index.mjs +5 -5
- package/dist/react/ui/index.d.mts +1 -2
- package/dist/react/ui/index.mjs +2 -4
- package/dist/react/ui/server.mjs +2 -2
- package/dist/{supabase-adapter-DUqw2fw8.d.mts → supabase-adapter-BGwV0Vu2.d.mts} +429 -373
- package/dist/{supabase-adapter-BlcGPyOf.mjs → supabase-adapter-DBt4LJJd.mjs} +3 -514
- package/dist/types/index.d.mts +2 -2
- package/dist/ui/.safelist.html +1 -1
- package/dist/ui/css.css +2 -2
- package/dist/ui/theme.css +1 -1
- package/dist/ui-CnVnqGns.mjs +3 -0
- package/dist/vanilla/adapters/index.d.mts +4 -3
- package/dist/vanilla/adapters/index.mjs +2 -2
- package/dist/vanilla/index.d.mts +4 -3
- package/dist/vanilla/index.mjs +2 -2
- package/llms.txt +2 -2
- package/package.json +27 -21
- package/dist/chunk-VCZJYX65-CLnrj1o7-D6ZQkcc_.mjs +0 -543
- package/dist/constants-Cupc_bln.mjs +0 -28
- package/dist/neon-auth-BEGCfAe6.d.mts +0 -107
- package/dist/ui-COLWzDsu.mjs +0 -12469
- /package/dist/{adapters-B7YKkjaL.mjs → adapters-CUvhsAvY.mjs} +0 -0
- /package/dist/{index-CPnFzULh.d.mts → index-B0Pd4HOH.d.mts} +0 -0
- /package/dist/{index-OEBbnNdr.d.mts → index-CzpoWrv9.d.mts} +0 -0
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { n as NeonAuthAdapterCoreAuthOptions, r as SupportedBetterAuthClientPlugins, t as NeonAuthAdapterCore } from "./adapter-core-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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";
|
|
3
|
+
import * as better_auth_react5 from "better-auth/react";
|
|
4
|
+
import * as better_auth_client3 from "better-auth/client";
|
|
5
|
+
import { createAuthClient as createAuthClient$1 } from "better-auth/client";
|
|
4
6
|
import * as _supabase_auth_js0 from "@supabase/auth-js";
|
|
5
|
-
import {
|
|
7
|
+
import { JwtHeader, JwtPayload } from "@supabase/auth-js";
|
|
6
8
|
import * as jose6 from "jose";
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
10
|
-
import * as nanostores9 from "nanostores";
|
|
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,93 +19,61 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
18
19
|
private _betterAuth;
|
|
19
20
|
constructor(betterAuthClientOptions: NeonAuthAdapterCoreAuthOptions);
|
|
20
21
|
getBetterAuthInstance(): {
|
|
21
|
-
useActiveOrganization:
|
|
22
|
-
|
|
22
|
+
useActiveOrganization: better_auth_client3.AuthQueryAtom<better_auth429.Prettify<{
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
slug: string;
|
|
26
|
+
createdAt: Date;
|
|
27
|
+
logo?: string | null | undefined | undefined;
|
|
28
|
+
metadata?: any;
|
|
29
|
+
} & {
|
|
30
|
+
members: {
|
|
23
31
|
id: string;
|
|
24
|
-
|
|
25
|
-
|
|
32
|
+
organizationId: string;
|
|
33
|
+
role: "admin" | "member" | "owner";
|
|
26
34
|
createdAt: Date;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} & {
|
|
30
|
-
members: {
|
|
31
|
-
id: string;
|
|
32
|
-
organizationId: string;
|
|
33
|
-
role: "admin" | "member" | "owner";
|
|
34
|
-
createdAt: Date;
|
|
35
|
-
userId: string;
|
|
36
|
-
user: {
|
|
37
|
-
id: string;
|
|
38
|
-
email: string;
|
|
39
|
-
name: string;
|
|
40
|
-
image?: string | undefined;
|
|
41
|
-
};
|
|
42
|
-
}[];
|
|
43
|
-
invitations: {
|
|
35
|
+
userId: string;
|
|
36
|
+
user: {
|
|
44
37
|
id: string;
|
|
45
|
-
organizationId: string;
|
|
46
38
|
email: string;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}[];
|
|
53
|
-
}> | null;
|
|
54
|
-
error: null | _better_fetch_fetch185.BetterFetchError;
|
|
55
|
-
isPending: boolean;
|
|
56
|
-
isRefetching: boolean;
|
|
57
|
-
refetch: (queryParams?: {
|
|
58
|
-
query?: better_auth492.SessionQueryParams;
|
|
59
|
-
} | undefined) => Promise<void>;
|
|
60
|
-
}> & object;
|
|
61
|
-
useListOrganizations: nanostores9.PreinitializedWritableAtom<{
|
|
62
|
-
data: {
|
|
63
|
-
id: string;
|
|
64
|
-
name: string;
|
|
65
|
-
slug: string;
|
|
66
|
-
createdAt: Date;
|
|
67
|
-
logo?: string | null | undefined | undefined;
|
|
68
|
-
metadata?: any;
|
|
69
|
-
}[] | null;
|
|
70
|
-
error: null | _better_fetch_fetch185.BetterFetchError;
|
|
71
|
-
isPending: boolean;
|
|
72
|
-
isRefetching: boolean;
|
|
73
|
-
refetch: (queryParams?: {
|
|
74
|
-
query?: better_auth492.SessionQueryParams;
|
|
75
|
-
} | undefined) => Promise<void>;
|
|
76
|
-
}> & object;
|
|
77
|
-
useActiveMember: nanostores9.PreinitializedWritableAtom<{
|
|
78
|
-
data: {
|
|
39
|
+
name: string;
|
|
40
|
+
image?: string | undefined;
|
|
41
|
+
};
|
|
42
|
+
}[];
|
|
43
|
+
invitations: {
|
|
79
44
|
id: string;
|
|
80
45
|
organizationId: string;
|
|
81
|
-
|
|
82
|
-
role:
|
|
46
|
+
email: string;
|
|
47
|
+
role: "admin" | "member" | "owner";
|
|
48
|
+
status: better_auth_plugins82.InvitationStatus;
|
|
49
|
+
inviterId: string;
|
|
50
|
+
expiresAt: Date;
|
|
83
51
|
createdAt: Date;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
52
|
+
}[];
|
|
53
|
+
}>>;
|
|
54
|
+
useListOrganizations: better_auth_client3.AuthQueryAtom<{
|
|
55
|
+
id: string;
|
|
56
|
+
name: string;
|
|
57
|
+
slug: string;
|
|
58
|
+
createdAt: Date;
|
|
59
|
+
logo?: string | null | undefined | undefined;
|
|
60
|
+
metadata?: any;
|
|
61
|
+
}[]>;
|
|
62
|
+
useActiveMember: better_auth_client3.AuthQueryAtom<{
|
|
63
|
+
id: string;
|
|
64
|
+
organizationId: string;
|
|
65
|
+
userId: string;
|
|
66
|
+
role: string;
|
|
67
|
+
createdAt: Date;
|
|
68
|
+
}>;
|
|
69
|
+
useActiveMemberRole: better_auth_client3.AuthQueryAtom<{
|
|
70
|
+
role: string;
|
|
71
|
+
}>;
|
|
103
72
|
} & {
|
|
104
|
-
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<{
|
|
105
74
|
query?: Record<string, any> | undefined;
|
|
106
75
|
fetchOptions?: FetchOptions | undefined;
|
|
107
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
76
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
108
77
|
token: string;
|
|
109
78
|
}, {
|
|
110
79
|
code?: string | undefined;
|
|
@@ -112,16 +81,16 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
112
81
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
113
82
|
} & {
|
|
114
83
|
admin: {
|
|
115
|
-
setRole: <FetchOptions extends
|
|
84
|
+
setRole: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
116
85
|
userId: string;
|
|
117
86
|
role: "user" | "admin" | ("user" | "admin")[];
|
|
118
|
-
}> & 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<{
|
|
119
88
|
userId: string;
|
|
120
89
|
role: "user" | "admin" | ("user" | "admin")[];
|
|
121
90
|
} & {
|
|
122
91
|
fetchOptions?: FetchOptions | undefined;
|
|
123
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
124
|
-
user:
|
|
92
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
93
|
+
user: better_auth_plugins82.UserWithRole;
|
|
125
94
|
}, {
|
|
126
95
|
code?: string | undefined;
|
|
127
96
|
message?: string | undefined;
|
|
@@ -129,44 +98,36 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
129
98
|
};
|
|
130
99
|
} & {
|
|
131
100
|
admin: {
|
|
132
|
-
getUser: <FetchOptions extends
|
|
101
|
+
getUser: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<{
|
|
133
102
|
id: string;
|
|
134
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
103
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
135
104
|
query: {
|
|
136
105
|
id: string;
|
|
137
106
|
};
|
|
138
107
|
fetchOptions?: FetchOptions | undefined;
|
|
139
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
140
|
-
id: string;
|
|
141
|
-
createdAt: Date;
|
|
142
|
-
updatedAt: Date;
|
|
143
|
-
email: string;
|
|
144
|
-
emailVerified: boolean;
|
|
145
|
-
name: string;
|
|
146
|
-
image?: string | null | undefined;
|
|
147
|
-
}, {
|
|
108
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<better_auth_plugins82.UserWithRole, {
|
|
148
109
|
code?: string | undefined;
|
|
149
110
|
message?: string | undefined;
|
|
150
111
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
151
112
|
};
|
|
152
113
|
} & {
|
|
153
114
|
admin: {
|
|
154
|
-
createUser: <FetchOptions extends
|
|
115
|
+
createUser: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
155
116
|
email: string;
|
|
156
|
-
password
|
|
117
|
+
password?: string | undefined;
|
|
157
118
|
name: string;
|
|
158
119
|
role?: "user" | "admin" | ("user" | "admin")[] | undefined;
|
|
159
120
|
data?: Record<string, any> | undefined;
|
|
160
|
-
}> & 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<{
|
|
161
122
|
email: string;
|
|
162
|
-
password
|
|
123
|
+
password?: string | undefined;
|
|
163
124
|
name: string;
|
|
164
125
|
role?: "user" | "admin" | ("user" | "admin")[] | undefined;
|
|
165
126
|
data?: Record<string, any> | undefined;
|
|
166
127
|
} & {
|
|
167
128
|
fetchOptions?: FetchOptions | undefined;
|
|
168
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
169
|
-
user:
|
|
129
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
130
|
+
user: better_auth_plugins82.UserWithRole;
|
|
170
131
|
}, {
|
|
171
132
|
code?: string | undefined;
|
|
172
133
|
message?: string | undefined;
|
|
@@ -174,22 +135,22 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
174
135
|
};
|
|
175
136
|
} & {
|
|
176
137
|
admin: {
|
|
177
|
-
updateUser: <FetchOptions extends
|
|
138
|
+
updateUser: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
178
139
|
userId: unknown;
|
|
179
140
|
data: Record<any, any>;
|
|
180
|
-
}> & 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<{
|
|
181
142
|
userId: unknown;
|
|
182
143
|
data: Record<any, any>;
|
|
183
144
|
} & {
|
|
184
145
|
fetchOptions?: FetchOptions | undefined;
|
|
185
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
146
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<better_auth_plugins82.UserWithRole, {
|
|
186
147
|
code?: string | undefined;
|
|
187
148
|
message?: string | undefined;
|
|
188
149
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
189
150
|
};
|
|
190
151
|
} & {
|
|
191
152
|
admin: {
|
|
192
|
-
listUsers: <FetchOptions extends
|
|
153
|
+
listUsers: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<{
|
|
193
154
|
searchValue?: string | undefined;
|
|
194
155
|
searchField?: "email" | "name" | undefined;
|
|
195
156
|
searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
|
|
@@ -200,7 +161,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
200
161
|
filterField?: string | undefined;
|
|
201
162
|
filterValue?: string | number | boolean | undefined;
|
|
202
163
|
filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
|
|
203
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
164
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
204
165
|
query: {
|
|
205
166
|
searchValue?: string | undefined;
|
|
206
167
|
searchField?: "email" | "name" | undefined;
|
|
@@ -214,8 +175,8 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
214
175
|
filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
|
|
215
176
|
};
|
|
216
177
|
fetchOptions?: FetchOptions | undefined;
|
|
217
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
218
|
-
users:
|
|
178
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<NonNullable<{
|
|
179
|
+
users: better_auth_plugins82.UserWithRole[];
|
|
219
180
|
total: number;
|
|
220
181
|
limit: number | undefined;
|
|
221
182
|
offset: number | undefined;
|
|
@@ -229,14 +190,14 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
229
190
|
};
|
|
230
191
|
} & {
|
|
231
192
|
admin: {
|
|
232
|
-
listUserSessions: <FetchOptions extends
|
|
193
|
+
listUserSessions: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
233
194
|
userId: unknown;
|
|
234
|
-
}> & 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<{
|
|
235
196
|
userId: unknown;
|
|
236
197
|
} & {
|
|
237
198
|
fetchOptions?: FetchOptions | undefined;
|
|
238
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
239
|
-
sessions:
|
|
199
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
200
|
+
sessions: better_auth_plugins82.SessionWithImpersonatedBy[];
|
|
240
201
|
}, {
|
|
241
202
|
code?: string | undefined;
|
|
242
203
|
message?: string | undefined;
|
|
@@ -244,22 +205,14 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
244
205
|
};
|
|
245
206
|
} & {
|
|
246
207
|
admin: {
|
|
247
|
-
unbanUser: <FetchOptions extends
|
|
208
|
+
unbanUser: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
248
209
|
userId: unknown;
|
|
249
|
-
}> & 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<{
|
|
250
211
|
userId: unknown;
|
|
251
212
|
} & {
|
|
252
213
|
fetchOptions?: FetchOptions | undefined;
|
|
253
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
254
|
-
user:
|
|
255
|
-
id: string;
|
|
256
|
-
createdAt: Date;
|
|
257
|
-
updatedAt: Date;
|
|
258
|
-
email: string;
|
|
259
|
-
emailVerified: boolean;
|
|
260
|
-
name: string;
|
|
261
|
-
image?: string | null | undefined;
|
|
262
|
-
} & Record<string, any>;
|
|
214
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
215
|
+
user: better_auth_plugins82.UserWithRole;
|
|
263
216
|
}, {
|
|
264
217
|
code?: string | undefined;
|
|
265
218
|
message?: string | undefined;
|
|
@@ -267,26 +220,18 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
267
220
|
};
|
|
268
221
|
} & {
|
|
269
222
|
admin: {
|
|
270
|
-
banUser: <FetchOptions extends
|
|
223
|
+
banUser: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
271
224
|
userId: unknown;
|
|
272
225
|
banReason?: string | undefined;
|
|
273
226
|
banExpiresIn?: number | undefined;
|
|
274
|
-
}> & 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<{
|
|
275
228
|
userId: unknown;
|
|
276
229
|
banReason?: string | undefined;
|
|
277
230
|
banExpiresIn?: number | undefined;
|
|
278
231
|
} & {
|
|
279
232
|
fetchOptions?: FetchOptions | undefined;
|
|
280
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
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>;
|
|
233
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
234
|
+
user: better_auth_plugins82.UserWithRole;
|
|
290
235
|
}, {
|
|
291
236
|
code?: string | undefined;
|
|
292
237
|
message?: string | undefined;
|
|
@@ -294,13 +239,13 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
294
239
|
};
|
|
295
240
|
} & {
|
|
296
241
|
admin: {
|
|
297
|
-
impersonateUser: <FetchOptions extends
|
|
242
|
+
impersonateUser: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
298
243
|
userId: unknown;
|
|
299
|
-
}> & 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<{
|
|
300
245
|
userId: unknown;
|
|
301
246
|
} & {
|
|
302
247
|
fetchOptions?: FetchOptions | undefined;
|
|
303
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
248
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
304
249
|
session: {
|
|
305
250
|
id: string;
|
|
306
251
|
createdAt: Date;
|
|
@@ -311,7 +256,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
311
256
|
ipAddress?: string | null | undefined;
|
|
312
257
|
userAgent?: string | null | undefined;
|
|
313
258
|
};
|
|
314
|
-
user:
|
|
259
|
+
user: better_auth_plugins82.UserWithRole;
|
|
315
260
|
}, {
|
|
316
261
|
code?: string | undefined;
|
|
317
262
|
message?: string | undefined;
|
|
@@ -319,12 +264,29 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
319
264
|
};
|
|
320
265
|
} & {
|
|
321
266
|
admin: {
|
|
322
|
-
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<{
|
|
323
268
|
query?: Record<string, any> | undefined;
|
|
324
269
|
fetchOptions?: FetchOptions | undefined;
|
|
325
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
326
|
-
session:
|
|
327
|
-
|
|
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>;
|
|
328
290
|
}, {
|
|
329
291
|
code?: string | undefined;
|
|
330
292
|
message?: string | undefined;
|
|
@@ -332,13 +294,13 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
332
294
|
};
|
|
333
295
|
} & {
|
|
334
296
|
admin: {
|
|
335
|
-
revokeUserSession: <FetchOptions extends
|
|
297
|
+
revokeUserSession: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
336
298
|
sessionToken: string;
|
|
337
|
-
}> & 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<{
|
|
338
300
|
sessionToken: string;
|
|
339
301
|
} & {
|
|
340
302
|
fetchOptions?: FetchOptions | undefined;
|
|
341
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
303
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
342
304
|
success: boolean;
|
|
343
305
|
}, {
|
|
344
306
|
code?: string | undefined;
|
|
@@ -347,13 +309,13 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
347
309
|
};
|
|
348
310
|
} & {
|
|
349
311
|
admin: {
|
|
350
|
-
revokeUserSessions: <FetchOptions extends
|
|
312
|
+
revokeUserSessions: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
351
313
|
userId: unknown;
|
|
352
|
-
}> & 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<{
|
|
353
315
|
userId: unknown;
|
|
354
316
|
} & {
|
|
355
317
|
fetchOptions?: FetchOptions | undefined;
|
|
356
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
318
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
357
319
|
success: boolean;
|
|
358
320
|
}, {
|
|
359
321
|
code?: string | undefined;
|
|
@@ -362,13 +324,13 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
362
324
|
};
|
|
363
325
|
} & {
|
|
364
326
|
admin: {
|
|
365
|
-
removeUser: <FetchOptions extends
|
|
327
|
+
removeUser: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
366
328
|
userId: unknown;
|
|
367
|
-
}> & 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<{
|
|
368
330
|
userId: unknown;
|
|
369
331
|
} & {
|
|
370
332
|
fetchOptions?: FetchOptions | undefined;
|
|
371
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
333
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
372
334
|
success: boolean;
|
|
373
335
|
}, {
|
|
374
336
|
code?: string | undefined;
|
|
@@ -377,15 +339,15 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
377
339
|
};
|
|
378
340
|
} & {
|
|
379
341
|
admin: {
|
|
380
|
-
setUserPassword: <FetchOptions extends
|
|
342
|
+
setUserPassword: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
381
343
|
newPassword: string;
|
|
382
344
|
userId: unknown;
|
|
383
|
-
}> & 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<{
|
|
384
346
|
newPassword: string;
|
|
385
347
|
userId: unknown;
|
|
386
348
|
} & {
|
|
387
349
|
fetchOptions?: FetchOptions | undefined;
|
|
388
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
350
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
389
351
|
status: boolean;
|
|
390
352
|
}, {
|
|
391
353
|
code?: string | undefined;
|
|
@@ -394,7 +356,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
394
356
|
};
|
|
395
357
|
} & {
|
|
396
358
|
admin: {
|
|
397
|
-
hasPermission: <FetchOptions extends
|
|
359
|
+
hasPermission: <FetchOptions extends better_auth429.ClientFetchOption<Partial<({
|
|
398
360
|
permission: {
|
|
399
361
|
readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
400
362
|
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
@@ -409,7 +371,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
409
371
|
}) & {
|
|
410
372
|
userId?: string | undefined;
|
|
411
373
|
role?: "user" | "admin" | undefined;
|
|
412
|
-
}> & 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<(({
|
|
413
375
|
permission: {
|
|
414
376
|
readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
415
377
|
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
@@ -426,7 +388,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
426
388
|
role?: "user" | "admin" | undefined;
|
|
427
389
|
}) & {
|
|
428
390
|
fetchOptions?: FetchOptions | undefined;
|
|
429
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
391
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
430
392
|
error: null;
|
|
431
393
|
success: boolean;
|
|
432
394
|
}, {
|
|
@@ -436,14 +398,14 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
436
398
|
};
|
|
437
399
|
} & {
|
|
438
400
|
organization: {
|
|
439
|
-
create: <FetchOptions extends
|
|
401
|
+
create: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
440
402
|
name: string;
|
|
441
403
|
slug: string;
|
|
442
404
|
userId?: string | undefined;
|
|
443
405
|
logo?: string | undefined;
|
|
444
406
|
metadata?: Record<string, any> | undefined;
|
|
445
407
|
keepCurrentActiveOrganization?: boolean | undefined;
|
|
446
|
-
}> & 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<{
|
|
447
409
|
name: string;
|
|
448
410
|
slug: string;
|
|
449
411
|
userId?: string | undefined;
|
|
@@ -452,7 +414,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
452
414
|
keepCurrentActiveOrganization?: boolean | undefined;
|
|
453
415
|
} & {
|
|
454
416
|
fetchOptions?: FetchOptions | undefined;
|
|
455
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
417
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
456
418
|
id: string;
|
|
457
419
|
name: string;
|
|
458
420
|
slug: string;
|
|
@@ -475,7 +437,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
475
437
|
};
|
|
476
438
|
} & {
|
|
477
439
|
organization: {
|
|
478
|
-
update: <FetchOptions extends
|
|
440
|
+
update: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
479
441
|
data: {
|
|
480
442
|
name?: string | undefined;
|
|
481
443
|
slug?: string | undefined;
|
|
@@ -483,7 +445,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
483
445
|
metadata?: Record<string, any> | undefined;
|
|
484
446
|
} & Partial<{}>;
|
|
485
447
|
organizationId?: string | undefined;
|
|
486
|
-
}> & 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<{
|
|
487
449
|
data: {
|
|
488
450
|
name?: string | undefined;
|
|
489
451
|
slug?: string | undefined;
|
|
@@ -493,15 +455,13 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
493
455
|
organizationId?: string | undefined;
|
|
494
456
|
} & {
|
|
495
457
|
fetchOptions?: FetchOptions | undefined;
|
|
496
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
458
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
497
459
|
id: string;
|
|
498
460
|
name: string;
|
|
499
461
|
slug: string;
|
|
500
462
|
createdAt: Date;
|
|
501
463
|
logo?: string | null | undefined | undefined;
|
|
502
464
|
metadata?: any;
|
|
503
|
-
} & {
|
|
504
|
-
metadata: Record<string, any> | undefined;
|
|
505
465
|
}, {
|
|
506
466
|
code?: string | undefined;
|
|
507
467
|
message?: string | undefined;
|
|
@@ -509,13 +469,13 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
509
469
|
};
|
|
510
470
|
} & {
|
|
511
471
|
organization: {
|
|
512
|
-
delete: <FetchOptions extends
|
|
472
|
+
delete: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
513
473
|
organizationId: string;
|
|
514
|
-
}> & 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<{
|
|
515
475
|
organizationId: string;
|
|
516
476
|
} & {
|
|
517
477
|
fetchOptions?: FetchOptions | undefined;
|
|
518
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
478
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
519
479
|
id: string;
|
|
520
480
|
name: string;
|
|
521
481
|
slug: string;
|
|
@@ -529,15 +489,15 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
529
489
|
};
|
|
530
490
|
} & {
|
|
531
491
|
organization: {
|
|
532
|
-
setActive: <FetchOptions extends
|
|
492
|
+
setActive: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
533
493
|
organizationId?: string | null | undefined;
|
|
534
494
|
organizationSlug?: string | undefined;
|
|
535
|
-
}> & 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<{
|
|
536
496
|
organizationId?: string | null | undefined;
|
|
537
497
|
organizationSlug?: string | undefined;
|
|
538
498
|
} & {
|
|
539
499
|
fetchOptions?: FetchOptions | undefined;
|
|
540
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
500
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
541
501
|
members: {
|
|
542
502
|
id: string;
|
|
543
503
|
organizationId: string;
|
|
@@ -556,7 +516,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
556
516
|
organizationId: string;
|
|
557
517
|
email: string;
|
|
558
518
|
role: "admin" | "member" | "owner";
|
|
559
|
-
status:
|
|
519
|
+
status: better_auth_plugins82.InvitationStatus;
|
|
560
520
|
inviterId: string;
|
|
561
521
|
expiresAt: Date;
|
|
562
522
|
createdAt: Date;
|
|
@@ -575,18 +535,18 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
575
535
|
};
|
|
576
536
|
} & {
|
|
577
537
|
organization: {
|
|
578
|
-
getFullOrganization: <FetchOptions extends
|
|
538
|
+
getFullOrganization: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<{
|
|
579
539
|
organizationId?: string | undefined;
|
|
580
540
|
organizationSlug?: string | undefined;
|
|
581
541
|
membersLimit?: string | number | undefined;
|
|
582
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
542
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth429.Prettify<{
|
|
583
543
|
query?: {
|
|
584
544
|
organizationId?: string | undefined;
|
|
585
545
|
organizationSlug?: string | undefined;
|
|
586
546
|
membersLimit?: string | number | undefined;
|
|
587
547
|
} | undefined;
|
|
588
548
|
fetchOptions?: FetchOptions | undefined;
|
|
589
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
549
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
590
550
|
members: {
|
|
591
551
|
id: string;
|
|
592
552
|
organizationId: string;
|
|
@@ -605,7 +565,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
605
565
|
organizationId: string;
|
|
606
566
|
email: string;
|
|
607
567
|
role: "admin" | "member" | "owner";
|
|
608
|
-
status:
|
|
568
|
+
status: better_auth_plugins82.InvitationStatus;
|
|
609
569
|
inviterId: string;
|
|
610
570
|
expiresAt: Date;
|
|
611
571
|
createdAt: Date;
|
|
@@ -624,10 +584,10 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
624
584
|
};
|
|
625
585
|
} & {
|
|
626
586
|
organization: {
|
|
627
|
-
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<{
|
|
628
588
|
query?: Record<string, any> | undefined;
|
|
629
589
|
fetchOptions?: FetchOptions | undefined;
|
|
630
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
590
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
631
591
|
id: string;
|
|
632
592
|
name: string;
|
|
633
593
|
slug: string;
|
|
@@ -641,46 +601,55 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
641
601
|
};
|
|
642
602
|
} & {
|
|
643
603
|
organization: {
|
|
644
|
-
inviteMember: <FetchOptions extends
|
|
604
|
+
inviteMember: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
645
605
|
email: string;
|
|
646
606
|
role: "admin" | "member" | "owner" | ("admin" | "member" | "owner")[];
|
|
647
607
|
organizationId?: string | undefined;
|
|
648
608
|
resend?: boolean | undefined;
|
|
649
|
-
}> & 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<{
|
|
650
610
|
email: string;
|
|
651
611
|
role: "admin" | "member" | "owner" | ("admin" | "member" | "owner")[];
|
|
652
612
|
organizationId?: string | undefined;
|
|
653
613
|
resend?: boolean | undefined;
|
|
654
614
|
} & {
|
|
655
615
|
fetchOptions?: FetchOptions | undefined;
|
|
656
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
616
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<NonNullable<{
|
|
657
617
|
id: string;
|
|
658
618
|
organizationId: string;
|
|
659
619
|
email: string;
|
|
660
620
|
role: "admin" | "member" | "owner";
|
|
661
|
-
status:
|
|
621
|
+
status: better_auth_plugins82.InvitationStatus;
|
|
662
622
|
inviterId: string;
|
|
663
623
|
expiresAt: Date;
|
|
664
624
|
createdAt: Date;
|
|
665
|
-
}
|
|
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
|
+
}>, {
|
|
666
635
|
code?: string | undefined;
|
|
667
636
|
message?: string | undefined;
|
|
668
637
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
669
638
|
};
|
|
670
639
|
} & {
|
|
671
640
|
organization: {
|
|
672
|
-
cancelInvitation: <FetchOptions extends
|
|
641
|
+
cancelInvitation: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
673
642
|
invitationId: string;
|
|
674
|
-
}> & 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<{
|
|
675
644
|
invitationId: string;
|
|
676
645
|
} & {
|
|
677
646
|
fetchOptions?: FetchOptions | undefined;
|
|
678
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
647
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
679
648
|
id: string;
|
|
680
649
|
organizationId: string;
|
|
681
650
|
email: string;
|
|
682
651
|
role: "admin" | "member" | "owner";
|
|
683
|
-
status:
|
|
652
|
+
status: better_auth_plugins82.InvitationStatus;
|
|
684
653
|
inviterId: string;
|
|
685
654
|
expiresAt: Date;
|
|
686
655
|
createdAt: Date;
|
|
@@ -691,19 +660,19 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
691
660
|
};
|
|
692
661
|
} & {
|
|
693
662
|
organization: {
|
|
694
|
-
acceptInvitation: <FetchOptions extends
|
|
663
|
+
acceptInvitation: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
695
664
|
invitationId: string;
|
|
696
|
-
}> & 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<{
|
|
697
666
|
invitationId: string;
|
|
698
667
|
} & {
|
|
699
668
|
fetchOptions?: FetchOptions | undefined;
|
|
700
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
669
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
701
670
|
invitation: {
|
|
702
671
|
id: string;
|
|
703
672
|
organizationId: string;
|
|
704
673
|
email: string;
|
|
705
674
|
role: "admin" | "member" | "owner";
|
|
706
|
-
status:
|
|
675
|
+
status: better_auth_plugins82.InvitationStatus;
|
|
707
676
|
inviterId: string;
|
|
708
677
|
expiresAt: Date;
|
|
709
678
|
createdAt: Date;
|
|
@@ -722,19 +691,19 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
722
691
|
};
|
|
723
692
|
} & {
|
|
724
693
|
organization: {
|
|
725
|
-
getInvitation: <FetchOptions extends
|
|
694
|
+
getInvitation: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<{
|
|
726
695
|
id: string;
|
|
727
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
696
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
728
697
|
query: {
|
|
729
698
|
id: string;
|
|
730
699
|
};
|
|
731
700
|
fetchOptions?: FetchOptions | undefined;
|
|
732
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
701
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<NonNullable<{
|
|
733
702
|
id: string;
|
|
734
703
|
organizationId: string;
|
|
735
704
|
email: string;
|
|
736
705
|
role: "admin" | "member" | "owner";
|
|
737
|
-
status:
|
|
706
|
+
status: better_auth_plugins82.InvitationStatus;
|
|
738
707
|
inviterId: string;
|
|
739
708
|
expiresAt: Date;
|
|
740
709
|
createdAt: Date;
|
|
@@ -749,19 +718,19 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
749
718
|
};
|
|
750
719
|
} & {
|
|
751
720
|
organization: {
|
|
752
|
-
rejectInvitation: <FetchOptions extends
|
|
721
|
+
rejectInvitation: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
753
722
|
invitationId: string;
|
|
754
|
-
}> & 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<{
|
|
755
724
|
invitationId: string;
|
|
756
725
|
} & {
|
|
757
726
|
fetchOptions?: FetchOptions | undefined;
|
|
758
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
727
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
759
728
|
invitation: {
|
|
760
729
|
id: string;
|
|
761
730
|
organizationId: string;
|
|
762
731
|
email: string;
|
|
763
732
|
role: "member" | "admin" | "owner";
|
|
764
|
-
status:
|
|
733
|
+
status: better_auth_plugins82.InvitationStatus;
|
|
765
734
|
inviterId: string;
|
|
766
735
|
expiresAt: Date;
|
|
767
736
|
createdAt: Date;
|
|
@@ -774,19 +743,19 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
774
743
|
};
|
|
775
744
|
} & {
|
|
776
745
|
organization: {
|
|
777
|
-
listInvitations: <FetchOptions extends
|
|
746
|
+
listInvitations: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<{
|
|
778
747
|
organizationId?: string | undefined;
|
|
779
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
748
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth429.Prettify<{
|
|
780
749
|
query?: {
|
|
781
750
|
organizationId?: string | undefined;
|
|
782
751
|
} | undefined;
|
|
783
752
|
fetchOptions?: FetchOptions | undefined;
|
|
784
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
753
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
785
754
|
id: string;
|
|
786
755
|
organizationId: string;
|
|
787
756
|
email: string;
|
|
788
757
|
role: "admin" | "member" | "owner";
|
|
789
|
-
status:
|
|
758
|
+
status: better_auth_plugins82.InvitationStatus;
|
|
790
759
|
inviterId: string;
|
|
791
760
|
expiresAt: Date;
|
|
792
761
|
createdAt: Date;
|
|
@@ -797,10 +766,10 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
797
766
|
};
|
|
798
767
|
} & {
|
|
799
768
|
organization: {
|
|
800
|
-
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<{
|
|
801
770
|
query?: Record<string, any> | undefined;
|
|
802
771
|
fetchOptions?: FetchOptions | undefined;
|
|
803
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
772
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<Omit<{
|
|
804
773
|
id: string;
|
|
805
774
|
organizationId: string;
|
|
806
775
|
role: "admin" | "member" | "owner";
|
|
@@ -813,7 +782,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
813
782
|
image?: string | undefined;
|
|
814
783
|
};
|
|
815
784
|
} & {
|
|
816
|
-
user:
|
|
785
|
+
user: better_auth429.User;
|
|
817
786
|
}, "user"> & {
|
|
818
787
|
user: {
|
|
819
788
|
id: string;
|
|
@@ -828,13 +797,13 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
828
797
|
};
|
|
829
798
|
} & {
|
|
830
799
|
organization: {
|
|
831
|
-
checkSlug: <FetchOptions extends
|
|
800
|
+
checkSlug: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
832
801
|
slug: string;
|
|
833
|
-
}> & 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<{
|
|
834
803
|
slug: string;
|
|
835
804
|
} & {
|
|
836
805
|
fetchOptions?: FetchOptions | undefined;
|
|
837
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
806
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
838
807
|
status: boolean;
|
|
839
808
|
}, {
|
|
840
809
|
code?: string | undefined;
|
|
@@ -843,15 +812,15 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
843
812
|
};
|
|
844
813
|
} & {
|
|
845
814
|
organization: {
|
|
846
|
-
removeMember: <FetchOptions extends
|
|
815
|
+
removeMember: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
847
816
|
memberIdOrEmail: string;
|
|
848
817
|
organizationId?: string | undefined;
|
|
849
|
-
}> & 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<{
|
|
850
819
|
memberIdOrEmail: string;
|
|
851
820
|
organizationId?: string | undefined;
|
|
852
821
|
} & {
|
|
853
822
|
fetchOptions?: FetchOptions | undefined;
|
|
854
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
823
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
855
824
|
member: {
|
|
856
825
|
id: string;
|
|
857
826
|
organizationId: string;
|
|
@@ -872,17 +841,17 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
872
841
|
};
|
|
873
842
|
} & {
|
|
874
843
|
organization: {
|
|
875
|
-
updateMemberRole: <FetchOptions extends
|
|
876
|
-
role:
|
|
844
|
+
updateMemberRole: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
845
|
+
role: better_auth429.LiteralString | "admin" | "member" | "owner" | ("admin" | "member" | "owner")[] | better_auth429.LiteralString[];
|
|
877
846
|
memberId: string;
|
|
878
847
|
organizationId?: string | undefined;
|
|
879
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
880
|
-
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[];
|
|
881
850
|
memberId: string;
|
|
882
851
|
organizationId?: string | undefined;
|
|
883
852
|
} & {
|
|
884
853
|
fetchOptions?: FetchOptions | undefined;
|
|
885
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
854
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
886
855
|
id: string;
|
|
887
856
|
organizationId: string;
|
|
888
857
|
role: "member" | "admin" | "owner";
|
|
@@ -901,13 +870,13 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
901
870
|
};
|
|
902
871
|
} & {
|
|
903
872
|
organization: {
|
|
904
|
-
leave: <FetchOptions extends
|
|
873
|
+
leave: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
905
874
|
organizationId: string;
|
|
906
|
-
}> & 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<{
|
|
907
876
|
organizationId: string;
|
|
908
877
|
} & {
|
|
909
878
|
fetchOptions?: FetchOptions | undefined;
|
|
910
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
879
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<NonNullable<Omit<{
|
|
911
880
|
id: string;
|
|
912
881
|
organizationId: string;
|
|
913
882
|
role: "admin" | "member" | "owner";
|
|
@@ -920,7 +889,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
920
889
|
image?: string | undefined;
|
|
921
890
|
};
|
|
922
891
|
} & {
|
|
923
|
-
user:
|
|
892
|
+
user: better_auth429.User;
|
|
924
893
|
}, "user"> & {
|
|
925
894
|
user: {
|
|
926
895
|
id: string;
|
|
@@ -935,19 +904,19 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
935
904
|
};
|
|
936
905
|
} & {
|
|
937
906
|
organization: {
|
|
938
|
-
listUserInvitations: <FetchOptions extends
|
|
907
|
+
listUserInvitations: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<{
|
|
939
908
|
email?: string | undefined;
|
|
940
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
909
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth429.Prettify<{
|
|
941
910
|
query?: {
|
|
942
911
|
email?: string | undefined;
|
|
943
912
|
} | undefined;
|
|
944
913
|
fetchOptions?: FetchOptions | undefined;
|
|
945
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
914
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<(Omit<{
|
|
946
915
|
id: string;
|
|
947
916
|
organizationId: string;
|
|
948
917
|
email: string;
|
|
949
918
|
role: "admin" | "member" | "owner";
|
|
950
|
-
status:
|
|
919
|
+
status: better_auth_plugins82.InvitationStatus;
|
|
951
920
|
inviterId: string;
|
|
952
921
|
expiresAt: Date;
|
|
953
922
|
createdAt: Date;
|
|
@@ -969,7 +938,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
969
938
|
};
|
|
970
939
|
} & {
|
|
971
940
|
organization: {
|
|
972
|
-
listMembers: <FetchOptions extends
|
|
941
|
+
listMembers: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<{
|
|
973
942
|
limit?: string | number | undefined;
|
|
974
943
|
offset?: string | number | undefined;
|
|
975
944
|
sortBy?: string | undefined;
|
|
@@ -979,7 +948,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
979
948
|
filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
|
|
980
949
|
organizationId?: string | undefined;
|
|
981
950
|
organizationSlug?: string | undefined;
|
|
982
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
951
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth429.Prettify<{
|
|
983
952
|
query?: {
|
|
984
953
|
limit?: string | number | undefined;
|
|
985
954
|
offset?: string | number | undefined;
|
|
@@ -992,7 +961,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
992
961
|
organizationSlug?: string | undefined;
|
|
993
962
|
} | undefined;
|
|
994
963
|
fetchOptions?: FetchOptions | undefined;
|
|
995
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
964
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
996
965
|
members: ({
|
|
997
966
|
id: string;
|
|
998
967
|
organizationId: string;
|
|
@@ -1021,18 +990,18 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1021
990
|
};
|
|
1022
991
|
} & {
|
|
1023
992
|
organization: {
|
|
1024
|
-
getActiveMemberRole: <FetchOptions extends
|
|
993
|
+
getActiveMemberRole: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<{
|
|
1025
994
|
userId?: string | undefined;
|
|
1026
995
|
organizationId?: string | undefined;
|
|
1027
996
|
organizationSlug?: string | undefined;
|
|
1028
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
997
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth429.Prettify<{
|
|
1029
998
|
query?: {
|
|
1030
999
|
userId?: string | undefined;
|
|
1031
1000
|
organizationId?: string | undefined;
|
|
1032
1001
|
organizationSlug?: string | undefined;
|
|
1033
1002
|
} | undefined;
|
|
1034
1003
|
fetchOptions?: FetchOptions | undefined;
|
|
1035
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1004
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1036
1005
|
role: "admin" | "member" | "owner";
|
|
1037
1006
|
}, {
|
|
1038
1007
|
code?: string | undefined;
|
|
@@ -1041,7 +1010,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1041
1010
|
};
|
|
1042
1011
|
} & {
|
|
1043
1012
|
organization: {
|
|
1044
|
-
hasPermission: <FetchOptions extends
|
|
1013
|
+
hasPermission: <FetchOptions extends better_auth429.ClientFetchOption<Partial<({
|
|
1045
1014
|
permission: {
|
|
1046
1015
|
readonly organization?: ("delete" | "update")[] | undefined;
|
|
1047
1016
|
readonly member?: ("delete" | "create" | "update")[] | undefined;
|
|
@@ -1061,7 +1030,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1061
1030
|
permission?: never | undefined;
|
|
1062
1031
|
}) & {
|
|
1063
1032
|
organizationId?: string | undefined;
|
|
1064
|
-
}> & 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<(({
|
|
1065
1034
|
permission: {
|
|
1066
1035
|
readonly organization?: ("delete" | "update")[] | undefined;
|
|
1067
1036
|
readonly member?: ("delete" | "create" | "update")[] | undefined;
|
|
@@ -1083,7 +1052,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1083
1052
|
organizationId?: string | undefined;
|
|
1084
1053
|
}) & {
|
|
1085
1054
|
fetchOptions?: FetchOptions | undefined;
|
|
1086
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1055
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1087
1056
|
error: null;
|
|
1088
1057
|
success: boolean;
|
|
1089
1058
|
}, {
|
|
@@ -1093,15 +1062,15 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1093
1062
|
};
|
|
1094
1063
|
} & {
|
|
1095
1064
|
emailOtp: {
|
|
1096
|
-
sendVerificationOtp: <FetchOptions extends
|
|
1065
|
+
sendVerificationOtp: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1097
1066
|
email: string;
|
|
1098
1067
|
type: "sign-in" | "email-verification" | "forget-password";
|
|
1099
|
-
}> & 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<{
|
|
1100
1069
|
email: string;
|
|
1101
1070
|
type: "sign-in" | "email-verification" | "forget-password";
|
|
1102
1071
|
} & {
|
|
1103
1072
|
fetchOptions?: FetchOptions | undefined;
|
|
1104
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1073
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1105
1074
|
success: boolean;
|
|
1106
1075
|
}, {
|
|
1107
1076
|
code?: string | undefined;
|
|
@@ -1110,17 +1079,17 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1110
1079
|
};
|
|
1111
1080
|
} & {
|
|
1112
1081
|
emailOtp: {
|
|
1113
|
-
checkVerificationOtp: <FetchOptions extends
|
|
1082
|
+
checkVerificationOtp: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1114
1083
|
email: string;
|
|
1115
1084
|
type: "sign-in" | "email-verification" | "forget-password";
|
|
1116
1085
|
otp: string;
|
|
1117
|
-
}> & 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<{
|
|
1118
1087
|
email: string;
|
|
1119
1088
|
type: "sign-in" | "email-verification" | "forget-password";
|
|
1120
1089
|
otp: string;
|
|
1121
1090
|
} & {
|
|
1122
1091
|
fetchOptions?: FetchOptions | undefined;
|
|
1123
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1092
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1124
1093
|
success: boolean;
|
|
1125
1094
|
}, {
|
|
1126
1095
|
code?: string | undefined;
|
|
@@ -1129,38 +1098,38 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1129
1098
|
};
|
|
1130
1099
|
} & {
|
|
1131
1100
|
emailOtp: {
|
|
1132
|
-
verifyEmail: <FetchOptions extends
|
|
1101
|
+
verifyEmail: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1133
1102
|
email: string;
|
|
1134
1103
|
otp: string;
|
|
1135
|
-
}> & 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<{
|
|
1136
1105
|
email: string;
|
|
1137
1106
|
otp: string;
|
|
1138
1107
|
} & {
|
|
1139
1108
|
fetchOptions?: FetchOptions | undefined;
|
|
1140
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1109
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<NonNullable<{
|
|
1141
1110
|
status: boolean;
|
|
1142
1111
|
token: string;
|
|
1143
1112
|
user: {
|
|
1144
1113
|
id: string;
|
|
1114
|
+
createdAt: Date;
|
|
1115
|
+
updatedAt: Date;
|
|
1145
1116
|
email: string;
|
|
1146
1117
|
emailVerified: boolean;
|
|
1147
1118
|
name: string;
|
|
1148
|
-
image
|
|
1149
|
-
|
|
1150
|
-
updatedAt: Date;
|
|
1151
|
-
};
|
|
1119
|
+
image?: string | null | undefined;
|
|
1120
|
+
} & Record<string, any>;
|
|
1152
1121
|
} | {
|
|
1153
1122
|
status: boolean;
|
|
1154
1123
|
token: null;
|
|
1155
1124
|
user: {
|
|
1156
1125
|
id: string;
|
|
1126
|
+
createdAt: Date;
|
|
1127
|
+
updatedAt: Date;
|
|
1157
1128
|
email: string;
|
|
1158
1129
|
emailVerified: boolean;
|
|
1159
1130
|
name: string;
|
|
1160
|
-
image
|
|
1161
|
-
|
|
1162
|
-
updatedAt: Date;
|
|
1163
|
-
};
|
|
1131
|
+
image?: string | null | undefined;
|
|
1132
|
+
} & Record<string, any>;
|
|
1164
1133
|
}>, {
|
|
1165
1134
|
code?: string | undefined;
|
|
1166
1135
|
message?: string | undefined;
|
|
@@ -1168,39 +1137,54 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1168
1137
|
};
|
|
1169
1138
|
} & {
|
|
1170
1139
|
signIn: {
|
|
1171
|
-
emailOtp: <FetchOptions extends
|
|
1140
|
+
emailOtp: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1172
1141
|
email: string;
|
|
1173
1142
|
otp: string;
|
|
1174
|
-
}> & 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<{
|
|
1175
1144
|
email: string;
|
|
1176
1145
|
otp: string;
|
|
1177
1146
|
} & {
|
|
1178
1147
|
fetchOptions?: FetchOptions | undefined;
|
|
1179
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1148
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1180
1149
|
token: string;
|
|
1181
1150
|
user: {
|
|
1182
1151
|
id: string;
|
|
1152
|
+
createdAt: Date;
|
|
1153
|
+
updatedAt: Date;
|
|
1183
1154
|
email: string;
|
|
1184
1155
|
emailVerified: boolean;
|
|
1185
1156
|
name: string;
|
|
1186
|
-
image
|
|
1187
|
-
createdAt: Date;
|
|
1188
|
-
updatedAt: Date;
|
|
1157
|
+
image?: string | null | undefined;
|
|
1189
1158
|
};
|
|
1190
1159
|
}, {
|
|
1191
1160
|
code?: string | undefined;
|
|
1192
1161
|
message?: string | undefined;
|
|
1193
1162
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1194
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
|
+
};
|
|
1195
1179
|
} & {
|
|
1196
1180
|
forgetPassword: {
|
|
1197
|
-
emailOtp: <FetchOptions extends
|
|
1181
|
+
emailOtp: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1198
1182
|
email: string;
|
|
1199
|
-
}> & 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<{
|
|
1200
1184
|
email: string;
|
|
1201
1185
|
} & {
|
|
1202
1186
|
fetchOptions?: FetchOptions | undefined;
|
|
1203
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1187
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1204
1188
|
success: boolean;
|
|
1205
1189
|
}, {
|
|
1206
1190
|
code?: string | undefined;
|
|
@@ -1209,17 +1193,17 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1209
1193
|
};
|
|
1210
1194
|
} & {
|
|
1211
1195
|
emailOtp: {
|
|
1212
|
-
resetPassword: <FetchOptions extends
|
|
1196
|
+
resetPassword: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1213
1197
|
email: string;
|
|
1214
1198
|
otp: string;
|
|
1215
1199
|
password: string;
|
|
1216
|
-
}> & 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<{
|
|
1217
1201
|
email: string;
|
|
1218
1202
|
otp: string;
|
|
1219
1203
|
password: string;
|
|
1220
1204
|
} & {
|
|
1221
1205
|
fetchOptions?: FetchOptions | undefined;
|
|
1222
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1206
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1223
1207
|
success: boolean;
|
|
1224
1208
|
}, {
|
|
1225
1209
|
code?: string | undefined;
|
|
@@ -1228,7 +1212,61 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1228
1212
|
};
|
|
1229
1213
|
} & {
|
|
1230
1214
|
signIn: {
|
|
1231
|
-
|
|
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<{
|
|
1232
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";
|
|
1233
1271
|
callbackURL?: string | undefined;
|
|
1234
1272
|
newUserCallbackURL?: string | undefined;
|
|
@@ -1245,7 +1283,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1245
1283
|
requestSignUp?: boolean | undefined;
|
|
1246
1284
|
loginHint?: string | undefined;
|
|
1247
1285
|
additionalData?: Record<string, any> | undefined;
|
|
1248
|
-
}> & 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<{
|
|
1249
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";
|
|
1250
1288
|
callbackURL?: string | undefined;
|
|
1251
1289
|
newUserCallbackURL?: string | undefined;
|
|
@@ -1264,7 +1302,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1264
1302
|
additionalData?: Record<string, any> | undefined;
|
|
1265
1303
|
} & {
|
|
1266
1304
|
fetchOptions?: FetchOptions | undefined;
|
|
1267
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1305
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<NonNullable<{
|
|
1268
1306
|
redirect: boolean;
|
|
1269
1307
|
url: string;
|
|
1270
1308
|
} | {
|
|
@@ -1286,10 +1324,10 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1286
1324
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1287
1325
|
};
|
|
1288
1326
|
} & {
|
|
1289
|
-
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<{
|
|
1290
1328
|
query?: Record<string, any> | undefined;
|
|
1291
1329
|
fetchOptions?: FetchOptions | undefined;
|
|
1292
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1330
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1293
1331
|
success: boolean;
|
|
1294
1332
|
}, {
|
|
1295
1333
|
code?: string | undefined;
|
|
@@ -1297,21 +1335,21 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1297
1335
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1298
1336
|
} & {
|
|
1299
1337
|
signUp: {
|
|
1300
|
-
email: <FetchOptions extends
|
|
1338
|
+
email: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1301
1339
|
name: string;
|
|
1302
1340
|
email: string;
|
|
1303
1341
|
password: string;
|
|
1304
1342
|
image?: string | undefined;
|
|
1305
1343
|
callbackURL?: string | undefined;
|
|
1306
1344
|
rememberMe?: boolean | undefined;
|
|
1307
|
-
}> & 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<{
|
|
1308
1346
|
email: string;
|
|
1309
1347
|
name: string;
|
|
1310
1348
|
password: string;
|
|
1311
1349
|
image?: string | undefined;
|
|
1312
1350
|
callbackURL?: string | undefined;
|
|
1313
1351
|
fetchOptions?: FetchOptions | undefined;
|
|
1314
|
-
} & {} & {}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1352
|
+
} & {} & {}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<NonNullable<{
|
|
1315
1353
|
token: null;
|
|
1316
1354
|
user: {
|
|
1317
1355
|
id: string;
|
|
@@ -1340,19 +1378,19 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1340
1378
|
};
|
|
1341
1379
|
} & {
|
|
1342
1380
|
signIn: {
|
|
1343
|
-
email: <FetchOptions extends
|
|
1381
|
+
email: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1344
1382
|
email: string;
|
|
1345
1383
|
password: string;
|
|
1346
1384
|
callbackURL?: string | undefined;
|
|
1347
1385
|
rememberMe?: boolean | undefined;
|
|
1348
|
-
}> & 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<{
|
|
1349
1387
|
email: string;
|
|
1350
1388
|
password: string;
|
|
1351
1389
|
callbackURL?: string | undefined;
|
|
1352
1390
|
rememberMe?: boolean | undefined;
|
|
1353
1391
|
} & {
|
|
1354
1392
|
fetchOptions?: FetchOptions | undefined;
|
|
1355
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1393
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1356
1394
|
redirect: boolean;
|
|
1357
1395
|
token: string;
|
|
1358
1396
|
url?: string | undefined;
|
|
@@ -1371,120 +1409,120 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1371
1409
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1372
1410
|
};
|
|
1373
1411
|
} & {
|
|
1374
|
-
resetPassword: <FetchOptions extends
|
|
1412
|
+
resetPassword: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1375
1413
|
newPassword: string;
|
|
1376
1414
|
token?: string | undefined;
|
|
1377
1415
|
}> & Record<string, any>, Partial<{
|
|
1378
1416
|
token?: string | undefined;
|
|
1379
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1417
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
1380
1418
|
newPassword: string;
|
|
1381
1419
|
token?: string | undefined;
|
|
1382
1420
|
} & {
|
|
1383
1421
|
fetchOptions?: FetchOptions | undefined;
|
|
1384
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1422
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1385
1423
|
status: boolean;
|
|
1386
1424
|
}, {
|
|
1387
1425
|
code?: string | undefined;
|
|
1388
1426
|
message?: string | undefined;
|
|
1389
1427
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1390
1428
|
} & {
|
|
1391
|
-
verifyEmail: <FetchOptions extends
|
|
1429
|
+
verifyEmail: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<{
|
|
1392
1430
|
token: string;
|
|
1393
1431
|
callbackURL?: string | undefined;
|
|
1394
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1432
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
1395
1433
|
query: {
|
|
1396
1434
|
token: string;
|
|
1397
1435
|
callbackURL?: string | undefined;
|
|
1398
1436
|
};
|
|
1399
1437
|
fetchOptions?: FetchOptions | undefined;
|
|
1400
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1438
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<NonNullable<void | {
|
|
1401
1439
|
status: boolean;
|
|
1402
1440
|
}>, {
|
|
1403
1441
|
code?: string | undefined;
|
|
1404
1442
|
message?: string | undefined;
|
|
1405
1443
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1406
1444
|
} & {
|
|
1407
|
-
sendVerificationEmail: <FetchOptions extends
|
|
1445
|
+
sendVerificationEmail: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1408
1446
|
email: string;
|
|
1409
1447
|
callbackURL?: string | undefined;
|
|
1410
|
-
}> & 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<{
|
|
1411
1449
|
email: string;
|
|
1412
1450
|
callbackURL?: string | undefined;
|
|
1413
1451
|
} & {
|
|
1414
1452
|
fetchOptions?: FetchOptions | undefined;
|
|
1415
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1453
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1416
1454
|
status: boolean;
|
|
1417
1455
|
}, {
|
|
1418
1456
|
code?: string | undefined;
|
|
1419
1457
|
message?: string | undefined;
|
|
1420
1458
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1421
1459
|
} & {
|
|
1422
|
-
changeEmail: <FetchOptions extends
|
|
1460
|
+
changeEmail: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1423
1461
|
newEmail: string;
|
|
1424
1462
|
callbackURL?: string | undefined;
|
|
1425
|
-
}> & 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<{
|
|
1426
1464
|
newEmail: string;
|
|
1427
1465
|
callbackURL?: string | undefined;
|
|
1428
1466
|
} & {
|
|
1429
1467
|
fetchOptions?: FetchOptions | undefined;
|
|
1430
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1468
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1431
1469
|
status: boolean;
|
|
1432
1470
|
}, {
|
|
1433
1471
|
code?: string | undefined;
|
|
1434
1472
|
message?: string | undefined;
|
|
1435
1473
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1436
1474
|
} & {
|
|
1437
|
-
changePassword: <FetchOptions extends
|
|
1475
|
+
changePassword: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1438
1476
|
newPassword: string;
|
|
1439
1477
|
currentPassword: string;
|
|
1440
1478
|
revokeOtherSessions?: boolean | undefined;
|
|
1441
|
-
}> & 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<{
|
|
1442
1480
|
newPassword: string;
|
|
1443
1481
|
currentPassword: string;
|
|
1444
1482
|
revokeOtherSessions?: boolean | undefined;
|
|
1445
1483
|
} & {
|
|
1446
1484
|
fetchOptions?: FetchOptions | undefined;
|
|
1447
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1485
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1448
1486
|
token: string | null;
|
|
1449
1487
|
user: {
|
|
1450
1488
|
id: string;
|
|
1451
|
-
email: string;
|
|
1452
|
-
name: string;
|
|
1453
|
-
image: string | null | undefined;
|
|
1454
|
-
emailVerified: boolean;
|
|
1455
1489
|
createdAt: Date;
|
|
1456
1490
|
updatedAt: Date;
|
|
1457
|
-
|
|
1491
|
+
email: string;
|
|
1492
|
+
emailVerified: boolean;
|
|
1493
|
+
name: string;
|
|
1494
|
+
image?: string | null | undefined;
|
|
1495
|
+
} & Record<string, any>;
|
|
1458
1496
|
}, {
|
|
1459
1497
|
code?: string | undefined;
|
|
1460
1498
|
message?: string | undefined;
|
|
1461
1499
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1462
1500
|
} & {
|
|
1463
|
-
updateUser: <FetchOptions extends
|
|
1501
|
+
updateUser: <FetchOptions extends better_auth429.ClientFetchOption<Partial<Partial<{}> & {
|
|
1464
1502
|
name?: string | undefined;
|
|
1465
1503
|
image?: string | undefined | null;
|
|
1466
|
-
}> & 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<{
|
|
1467
1505
|
image?: (string | null) | undefined;
|
|
1468
1506
|
name?: string | undefined;
|
|
1469
1507
|
fetchOptions?: FetchOptions | undefined;
|
|
1470
|
-
} & Partial<{} & {}>> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1508
|
+
} & Partial<{} & {}>> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1471
1509
|
status: boolean;
|
|
1472
1510
|
}, {
|
|
1473
1511
|
code?: string | undefined;
|
|
1474
1512
|
message?: string | undefined;
|
|
1475
1513
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1476
1514
|
} & {
|
|
1477
|
-
deleteUser: <FetchOptions extends
|
|
1515
|
+
deleteUser: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1478
1516
|
callbackURL?: string | undefined;
|
|
1479
1517
|
password?: string | undefined;
|
|
1480
1518
|
token?: string | undefined;
|
|
1481
|
-
}> & 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<{
|
|
1482
1520
|
callbackURL?: string | undefined;
|
|
1483
1521
|
password?: string | undefined;
|
|
1484
1522
|
token?: string | undefined;
|
|
1485
1523
|
} & {
|
|
1486
1524
|
fetchOptions?: FetchOptions | undefined;
|
|
1487
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1525
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1488
1526
|
success: boolean;
|
|
1489
1527
|
message: string;
|
|
1490
1528
|
}, {
|
|
@@ -1492,15 +1530,15 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1492
1530
|
message?: string | undefined;
|
|
1493
1531
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1494
1532
|
} & {
|
|
1495
|
-
requestPasswordReset: <FetchOptions extends
|
|
1533
|
+
requestPasswordReset: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1496
1534
|
email: string;
|
|
1497
1535
|
redirectTo?: string | undefined;
|
|
1498
|
-
}> & 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<{
|
|
1499
1537
|
email: string;
|
|
1500
1538
|
redirectTo?: string | undefined;
|
|
1501
1539
|
} & {
|
|
1502
1540
|
fetchOptions?: FetchOptions | undefined;
|
|
1503
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1541
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1504
1542
|
status: boolean;
|
|
1505
1543
|
message: string;
|
|
1506
1544
|
}, {
|
|
@@ -1509,25 +1547,25 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1509
1547
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1510
1548
|
} & {
|
|
1511
1549
|
resetPassword: {
|
|
1512
|
-
":token": <FetchOptions extends
|
|
1550
|
+
":token": <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<{
|
|
1513
1551
|
callbackURL: string;
|
|
1514
1552
|
}> & Record<string, any>, {
|
|
1515
1553
|
token: string;
|
|
1516
|
-
}>>(data_0:
|
|
1554
|
+
}>>(data_0: better_auth429.Prettify<{
|
|
1517
1555
|
query: {
|
|
1518
1556
|
callbackURL: string;
|
|
1519
1557
|
};
|
|
1520
1558
|
fetchOptions?: FetchOptions | undefined;
|
|
1521
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1559
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<never, {
|
|
1522
1560
|
code?: string | undefined;
|
|
1523
1561
|
message?: string | undefined;
|
|
1524
1562
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1525
1563
|
};
|
|
1526
1564
|
} & {
|
|
1527
|
-
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<{
|
|
1528
1566
|
query?: Record<string, any> | undefined;
|
|
1529
1567
|
fetchOptions?: FetchOptions | undefined;
|
|
1530
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1568
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<better_auth429.Prettify<{
|
|
1531
1569
|
id: string;
|
|
1532
1570
|
createdAt: Date;
|
|
1533
1571
|
updatedAt: Date;
|
|
@@ -1541,40 +1579,40 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1541
1579
|
message?: string | undefined;
|
|
1542
1580
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1543
1581
|
} & {
|
|
1544
|
-
revokeSession: <FetchOptions extends
|
|
1582
|
+
revokeSession: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1545
1583
|
token: string;
|
|
1546
|
-
}> & 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<{
|
|
1547
1585
|
token: string;
|
|
1548
1586
|
} & {
|
|
1549
1587
|
fetchOptions?: FetchOptions | undefined;
|
|
1550
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1588
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1551
1589
|
status: boolean;
|
|
1552
1590
|
}, {
|
|
1553
1591
|
code?: string | undefined;
|
|
1554
1592
|
message?: string | undefined;
|
|
1555
1593
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1556
1594
|
} & {
|
|
1557
|
-
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<{
|
|
1558
1596
|
query?: Record<string, any> | undefined;
|
|
1559
1597
|
fetchOptions?: FetchOptions | undefined;
|
|
1560
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1598
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1561
1599
|
status: boolean;
|
|
1562
1600
|
}, {
|
|
1563
1601
|
code?: string | undefined;
|
|
1564
1602
|
message?: string | undefined;
|
|
1565
1603
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1566
1604
|
} & {
|
|
1567
|
-
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<{
|
|
1568
1606
|
query?: Record<string, any> | undefined;
|
|
1569
1607
|
fetchOptions?: FetchOptions | undefined;
|
|
1570
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1608
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1571
1609
|
status: boolean;
|
|
1572
1610
|
}, {
|
|
1573
1611
|
code?: string | undefined;
|
|
1574
1612
|
message?: string | undefined;
|
|
1575
1613
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1576
1614
|
} & {
|
|
1577
|
-
linkSocial: <FetchOptions extends
|
|
1615
|
+
linkSocial: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1578
1616
|
provider: unknown;
|
|
1579
1617
|
callbackURL?: string | undefined;
|
|
1580
1618
|
idToken?: {
|
|
@@ -1589,7 +1627,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1589
1627
|
errorCallbackURL?: string | undefined;
|
|
1590
1628
|
disableRedirect?: boolean | undefined;
|
|
1591
1629
|
additionalData?: Record<string, any> | undefined;
|
|
1592
|
-
}> & 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<{
|
|
1593
1631
|
provider: unknown;
|
|
1594
1632
|
callbackURL?: string | undefined;
|
|
1595
1633
|
idToken?: {
|
|
@@ -1606,7 +1644,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1606
1644
|
additionalData?: Record<string, any> | undefined;
|
|
1607
1645
|
} & {
|
|
1608
1646
|
fetchOptions?: FetchOptions | undefined;
|
|
1609
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1647
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1610
1648
|
url: string;
|
|
1611
1649
|
redirect: boolean;
|
|
1612
1650
|
}, {
|
|
@@ -1614,33 +1652,33 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1614
1652
|
message?: string | undefined;
|
|
1615
1653
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1616
1654
|
} & {
|
|
1617
|
-
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<{
|
|
1618
1656
|
query?: Record<string, any> | undefined;
|
|
1619
1657
|
fetchOptions?: FetchOptions | undefined;
|
|
1620
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1658
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1659
|
+
scopes: string[];
|
|
1621
1660
|
id: string;
|
|
1622
|
-
providerId: string;
|
|
1623
1661
|
createdAt: Date;
|
|
1624
1662
|
updatedAt: Date;
|
|
1625
|
-
accountId: string;
|
|
1626
1663
|
userId: string;
|
|
1627
|
-
|
|
1664
|
+
providerId: string;
|
|
1665
|
+
accountId: string;
|
|
1628
1666
|
}[], {
|
|
1629
1667
|
code?: string | undefined;
|
|
1630
1668
|
message?: string | undefined;
|
|
1631
1669
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1632
1670
|
} & {
|
|
1633
1671
|
deleteUser: {
|
|
1634
|
-
callback: <FetchOptions extends
|
|
1672
|
+
callback: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<{
|
|
1635
1673
|
token: string;
|
|
1636
1674
|
callbackURL?: string | undefined;
|
|
1637
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1675
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth429.Prettify<{
|
|
1638
1676
|
query: {
|
|
1639
1677
|
token: string;
|
|
1640
1678
|
callbackURL?: string | undefined;
|
|
1641
1679
|
};
|
|
1642
1680
|
fetchOptions?: FetchOptions | undefined;
|
|
1643
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1681
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1644
1682
|
success: boolean;
|
|
1645
1683
|
message: string;
|
|
1646
1684
|
}, {
|
|
@@ -1649,32 +1687,32 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1649
1687
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1650
1688
|
};
|
|
1651
1689
|
} & {
|
|
1652
|
-
unlinkAccount: <FetchOptions extends
|
|
1690
|
+
unlinkAccount: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1653
1691
|
providerId: string;
|
|
1654
1692
|
accountId?: string | undefined;
|
|
1655
|
-
}> & 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<{
|
|
1656
1694
|
providerId: string;
|
|
1657
1695
|
accountId?: string | undefined;
|
|
1658
1696
|
} & {
|
|
1659
1697
|
fetchOptions?: FetchOptions | undefined;
|
|
1660
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1698
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1661
1699
|
status: boolean;
|
|
1662
1700
|
}, {
|
|
1663
1701
|
code?: string | undefined;
|
|
1664
1702
|
message?: string | undefined;
|
|
1665
1703
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1666
1704
|
} & {
|
|
1667
|
-
refreshToken: <FetchOptions extends
|
|
1705
|
+
refreshToken: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1668
1706
|
providerId: string;
|
|
1669
1707
|
accountId?: string | undefined;
|
|
1670
1708
|
userId?: string | undefined;
|
|
1671
|
-
}> & 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<{
|
|
1672
1710
|
providerId: string;
|
|
1673
1711
|
accountId?: string | undefined;
|
|
1674
1712
|
userId?: string | undefined;
|
|
1675
1713
|
} & {
|
|
1676
1714
|
fetchOptions?: FetchOptions | undefined;
|
|
1677
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1715
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1678
1716
|
accessToken: string | undefined;
|
|
1679
1717
|
refreshToken: string | undefined;
|
|
1680
1718
|
accessTokenExpiresAt: Date | undefined;
|
|
@@ -1688,17 +1726,17 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1688
1726
|
message?: string | undefined;
|
|
1689
1727
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1690
1728
|
} & {
|
|
1691
|
-
getAccessToken: <FetchOptions extends
|
|
1729
|
+
getAccessToken: <FetchOptions extends better_auth429.ClientFetchOption<Partial<{
|
|
1692
1730
|
providerId: string;
|
|
1693
1731
|
accountId?: string | undefined;
|
|
1694
1732
|
userId?: string | undefined;
|
|
1695
|
-
}> & 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<{
|
|
1696
1734
|
providerId: string;
|
|
1697
1735
|
accountId?: string | undefined;
|
|
1698
1736
|
userId?: string | undefined;
|
|
1699
1737
|
} & {
|
|
1700
1738
|
fetchOptions?: FetchOptions | undefined;
|
|
1701
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1739
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1702
1740
|
accessToken: string;
|
|
1703
1741
|
accessTokenExpiresAt: Date | undefined;
|
|
1704
1742
|
scopes: string[];
|
|
@@ -1708,31 +1746,31 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1708
1746
|
message?: string | undefined;
|
|
1709
1747
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1710
1748
|
} & {
|
|
1711
|
-
accountInfo: <FetchOptions extends
|
|
1749
|
+
accountInfo: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<{
|
|
1712
1750
|
accountId?: string | undefined;
|
|
1713
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
1751
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth429.Prettify<{
|
|
1714
1752
|
query?: {
|
|
1715
1753
|
accountId?: string | undefined;
|
|
1716
1754
|
} | undefined;
|
|
1717
1755
|
fetchOptions?: FetchOptions | undefined;
|
|
1718
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1719
|
-
user:
|
|
1756
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1757
|
+
user: better_auth429.OAuth2UserInfo;
|
|
1720
1758
|
data: Record<string, any>;
|
|
1721
1759
|
}, {
|
|
1722
1760
|
code?: string | undefined;
|
|
1723
1761
|
message?: string | undefined;
|
|
1724
1762
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1725
1763
|
} & {
|
|
1726
|
-
getSession: <FetchOptions extends
|
|
1764
|
+
getSession: <FetchOptions extends better_auth429.ClientFetchOption<never, Partial<{
|
|
1727
1765
|
disableCookieCache?: unknown;
|
|
1728
1766
|
disableRefresh?: unknown;
|
|
1729
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
1767
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth429.Prettify<{
|
|
1730
1768
|
query?: {
|
|
1731
1769
|
disableCookieCache?: unknown;
|
|
1732
1770
|
disableRefresh?: unknown;
|
|
1733
1771
|
} | undefined;
|
|
1734
1772
|
fetchOptions?: FetchOptions | undefined;
|
|
1735
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1773
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch187.BetterFetchResponse<{
|
|
1736
1774
|
user: {
|
|
1737
1775
|
id: string;
|
|
1738
1776
|
createdAt: Date;
|
|
@@ -1828,7 +1866,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1828
1866
|
organizationId: string;
|
|
1829
1867
|
email: string;
|
|
1830
1868
|
role: "admin" | "member" | "owner";
|
|
1831
|
-
status:
|
|
1869
|
+
status: better_auth_plugins82.InvitationStatus;
|
|
1832
1870
|
inviterId: string;
|
|
1833
1871
|
expiresAt: Date;
|
|
1834
1872
|
createdAt: Date;
|
|
@@ -1854,7 +1892,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1854
1892
|
organizationId: string;
|
|
1855
1893
|
email: string;
|
|
1856
1894
|
role: "admin" | "member" | "owner";
|
|
1857
|
-
status:
|
|
1895
|
+
status: better_auth_plugins82.InvitationStatus;
|
|
1858
1896
|
inviterId: string;
|
|
1859
1897
|
expiresAt: Date;
|
|
1860
1898
|
createdAt: Date;
|
|
@@ -1904,7 +1942,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1904
1942
|
}) => boolean;
|
|
1905
1943
|
};
|
|
1906
1944
|
} & {
|
|
1907
|
-
useSession:
|
|
1945
|
+
useSession: better_auth_react5.Atom<{
|
|
1908
1946
|
data: {
|
|
1909
1947
|
user: {
|
|
1910
1948
|
id: string;
|
|
@@ -1932,28 +1970,33 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1932
1970
|
activeOrganizationId?: string | null | undefined;
|
|
1933
1971
|
};
|
|
1934
1972
|
} | null;
|
|
1935
|
-
error:
|
|
1973
|
+
error: _better_fetch_fetch187.BetterFetchError | null;
|
|
1936
1974
|
isPending: boolean;
|
|
1975
|
+
isRefetching: boolean;
|
|
1976
|
+
refetch: (queryParams?: {
|
|
1977
|
+
query?: better_auth429.SessionQueryParams;
|
|
1978
|
+
} | undefined) => Promise<void>;
|
|
1937
1979
|
}>;
|
|
1938
|
-
$fetch:
|
|
1939
|
-
plugins: (
|
|
1980
|
+
$fetch: _better_fetch_fetch187.BetterFetch<{
|
|
1981
|
+
plugins: (_better_fetch_fetch187.BetterFetchPlugin<Record<string, any>> | {
|
|
1940
1982
|
id: string;
|
|
1941
1983
|
name: string;
|
|
1942
1984
|
hooks: {
|
|
1943
|
-
onSuccess(context:
|
|
1985
|
+
onSuccess(context: _better_fetch_fetch187.SuccessContext<any>): void;
|
|
1944
1986
|
};
|
|
1945
1987
|
} | {
|
|
1946
1988
|
id: string;
|
|
1947
1989
|
name: string;
|
|
1948
1990
|
hooks: {
|
|
1949
|
-
onSuccess: ((context:
|
|
1950
|
-
onError: ((context:
|
|
1951
|
-
onRequest: (<T extends Record<string, any>>(context:
|
|
1952
|
-
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;
|
|
1953
1995
|
};
|
|
1954
1996
|
})[];
|
|
1955
1997
|
cache?: RequestCache | undefined;
|
|
1956
1998
|
method: string;
|
|
1999
|
+
window?: null | undefined;
|
|
1957
2000
|
headers?: (HeadersInit & (HeadersInit | {
|
|
1958
2001
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
1959
2002
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
@@ -1968,13 +2011,12 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1968
2011
|
referrer?: string | undefined;
|
|
1969
2012
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
1970
2013
|
signal?: (AbortSignal | null) | undefined;
|
|
1971
|
-
|
|
1972
|
-
onRetry?: ((response: _better_fetch_fetch185.ResponseContext) => Promise<void> | void) | undefined;
|
|
2014
|
+
onRetry?: ((response: _better_fetch_fetch187.ResponseContext) => Promise<void> | void) | undefined;
|
|
1973
2015
|
hookOptions?: {
|
|
1974
2016
|
cloneResponse?: boolean;
|
|
1975
2017
|
} | undefined;
|
|
1976
2018
|
timeout?: number | undefined;
|
|
1977
|
-
customFetchImpl:
|
|
2019
|
+
customFetchImpl: _better_fetch_fetch187.FetchEsque;
|
|
1978
2020
|
baseURL: string;
|
|
1979
2021
|
throw?: boolean | undefined;
|
|
1980
2022
|
auth?: ({
|
|
@@ -1994,17 +2036,17 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1994
2036
|
params?: any;
|
|
1995
2037
|
duplex?: "full" | "half" | undefined;
|
|
1996
2038
|
jsonParser: (text: string) => Promise<any> | any;
|
|
1997
|
-
retry?:
|
|
2039
|
+
retry?: _better_fetch_fetch187.RetryOptions | undefined;
|
|
1998
2040
|
retryAttempt?: number | undefined;
|
|
1999
|
-
output?: (
|
|
2000
|
-
errorSchema?:
|
|
2041
|
+
output?: (_better_fetch_fetch187.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
2042
|
+
errorSchema?: _better_fetch_fetch187.StandardSchemaV1 | undefined;
|
|
2001
2043
|
disableValidation?: boolean | undefined;
|
|
2002
2044
|
disableSignal?: boolean | undefined;
|
|
2003
2045
|
}, unknown, unknown, {}>;
|
|
2004
2046
|
$store: {
|
|
2005
2047
|
notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
|
|
2006
2048
|
listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
|
|
2007
|
-
atoms: Record<string,
|
|
2049
|
+
atoms: Record<string, better_auth_react5.WritableAtom<any>>;
|
|
2008
2050
|
};
|
|
2009
2051
|
$Infer: {
|
|
2010
2052
|
Session: {
|
|
@@ -2056,6 +2098,7 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
2056
2098
|
readonly YOU_CANNOT_REMOVE_YOURSELF: "You cannot remove yourself";
|
|
2057
2099
|
readonly YOU_ARE_NOT_ALLOWED_TO_SET_NON_EXISTENT_VALUE: "You are not allowed to set a non-existent role value";
|
|
2058
2100
|
readonly YOU_CANNOT_IMPERSONATE_ADMINS: "You cannot impersonate admins";
|
|
2101
|
+
readonly INVALID_ROLE_TYPE: "Invalid role type";
|
|
2059
2102
|
readonly YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION: "You are not allowed to create a new organization";
|
|
2060
2103
|
readonly YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS: "You have reached the maximum number of organizations";
|
|
2061
2104
|
readonly ORGANIZATION_ALREADY_EXISTS: "Organization already exists";
|
|
@@ -2137,6 +2180,24 @@ declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
|
2137
2180
|
readonly FAILED_TO_UNLINK_LAST_ACCOUNT: "You can't unlink your last account";
|
|
2138
2181
|
readonly ACCOUNT_NOT_FOUND: "Account not found";
|
|
2139
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";
|
|
2140
2201
|
};
|
|
2141
2202
|
};
|
|
2142
2203
|
}
|
|
@@ -2166,11 +2227,6 @@ type BetterAuthVanillaAdapterBuilder = (url: string, fetchOptions?: {
|
|
|
2166
2227
|
*/
|
|
2167
2228
|
declare function BetterAuthVanillaAdapter(options?: BetterAuthVanillaAdapterOptions): BetterAuthVanillaAdapterBuilder;
|
|
2168
2229
|
//#endregion
|
|
2169
|
-
//#region src/adapters/supabase/auth-interface.d.ts
|
|
2170
|
-
type _UpstreamAuthClientInstance = InstanceType<typeof AuthClient>;
|
|
2171
|
-
type _AuthClientBase = { [K in keyof _UpstreamAuthClientInstance as _UpstreamAuthClientInstance[K] extends never ? never : K]: _UpstreamAuthClientInstance[K] };
|
|
2172
|
-
type SupabaseAuthClientInterface = _AuthClientBase;
|
|
2173
|
-
//#endregion
|
|
2174
2230
|
//#region src/adapters/supabase/supabase-adapter.d.ts
|
|
2175
2231
|
type SupabaseAuthAdapterOptions = Omit<NeonAuthAdapterCoreAuthOptions, 'baseURL'>;
|
|
2176
2232
|
/**
|
|
@@ -2183,7 +2239,7 @@ declare class SupabaseAuthAdapterImpl extends NeonAuthAdapterCore implements Sup
|
|
|
2183
2239
|
private _betterAuth;
|
|
2184
2240
|
private _stateChangeEmitters;
|
|
2185
2241
|
constructor(betterAuthClientOptions: NeonAuthAdapterCoreAuthOptions);
|
|
2186
|
-
getBetterAuthInstance(): ReturnType<typeof createAuthClient<{
|
|
2242
|
+
getBetterAuthInstance(): ReturnType<typeof createAuthClient$1<{
|
|
2187
2243
|
plugins: SupportedBetterAuthClientPlugins;
|
|
2188
2244
|
}>>;
|
|
2189
2245
|
initialize: SupabaseAuthClientInterface['initialize'];
|