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