@neondatabase/auth 0.1.0-beta.16 → 0.1.0-beta.17
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/dist/{adapter-core-DYWYECKK.d.mts → adapter-core-Sx7jkLdB.d.mts} +112 -112
- package/dist/{supabase-adapter-DtT0d6It.d.mts → better-auth-react-adapter-BWH-XVdf.d.mts} +55 -141
- package/dist/{index-B6dAIdkW.d.mts → index-B4dy0AqC.d.mts} +13 -64
- package/dist/index.d.mts +4 -4
- package/dist/{middleware-DXwLKcbA.mjs → middleware-DPLYghmx.mjs} +1 -3
- package/dist/{neon-auth-B_otuPjh.d.mts → neon-auth-DDPaciiS.d.mts} +3 -3
- package/dist/next/index.d.mts +62 -1
- package/dist/next/index.mjs +31 -1
- package/dist/next/server/index.d.mts +54 -5
- package/dist/next/server/index.mjs +1 -1
- package/dist/react/adapters/index.d.mts +2 -2
- package/dist/react/index.d.mts +2 -2
- package/dist/{better-auth-react-adapter-tKs79AwE.d.mts → supabase-adapter-k8RBezY9.d.mts} +389 -303
- package/dist/types/index.d.mts +1 -1
- package/dist/ui/css.css +1 -1
- package/dist/ui/theme.css +1 -1
- package/dist/vanilla/adapters/index.d.mts +2 -2
- package/dist/vanilla/index.d.mts +2 -2
- package/package.json +1 -1
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
import { n as NeonAuthAdapterCoreAuthOptions, t as NeonAuthAdapterCore } from "./adapter-core-
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import
|
|
7
|
-
import * as
|
|
1
|
+
import { n as NeonAuthAdapterCoreAuthOptions, r as SupportedBetterAuthClientPlugins, t as NeonAuthAdapterCore } from "./adapter-core-Sx7jkLdB.mjs";
|
|
2
|
+
import * as better_auth_client31 from "better-auth/client";
|
|
3
|
+
import { createAuthClient } from "better-auth/client";
|
|
4
|
+
import * as better_auth_client_plugins33 from "better-auth/client/plugins";
|
|
5
|
+
import * as _supabase_auth_js0 from "@supabase/auth-js";
|
|
6
|
+
import { AuthClient, JwtHeader, JwtPayload } from "@supabase/auth-js";
|
|
7
|
+
import * as jose6 from "jose";
|
|
8
|
+
import * as better_auth360 from "better-auth";
|
|
9
|
+
import * as _better_fetch_fetch185 from "@better-fetch/fetch";
|
|
10
|
+
import * as nanostores9 from "nanostores";
|
|
8
11
|
|
|
9
|
-
//#region src/adapters/better-auth-
|
|
10
|
-
type
|
|
12
|
+
//#region src/adapters/better-auth-vanilla/better-auth-vanilla-adapter.d.ts
|
|
13
|
+
type BetterAuthVanillaAdapterOptions = Omit<NeonAuthAdapterCoreAuthOptions, 'baseURL'>;
|
|
11
14
|
/**
|
|
12
|
-
* Internal implementation class - use
|
|
15
|
+
* Internal implementation class - use BetterAuthVanillaAdapter factory function instead
|
|
13
16
|
*/
|
|
14
|
-
declare class
|
|
17
|
+
declare class BetterAuthVanillaAdapterImpl extends NeonAuthAdapterCore {
|
|
15
18
|
private _betterAuth;
|
|
16
19
|
constructor(betterAuthClientOptions: NeonAuthAdapterCoreAuthOptions);
|
|
17
20
|
getBetterAuthInstance(): {
|
|
18
|
-
useActiveOrganization:
|
|
19
|
-
data:
|
|
21
|
+
useActiveOrganization: nanostores9.PreinitializedWritableAtom<{
|
|
22
|
+
data: better_auth360.Prettify<{
|
|
20
23
|
id: string;
|
|
21
24
|
name: string;
|
|
22
25
|
slug: string;
|
|
@@ -42,20 +45,20 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
42
45
|
organizationId: string;
|
|
43
46
|
email: string;
|
|
44
47
|
role: "admin" | "member" | "owner";
|
|
45
|
-
status:
|
|
48
|
+
status: better_auth_client31.InvitationStatus;
|
|
46
49
|
inviterId: string;
|
|
47
50
|
expiresAt: Date;
|
|
48
51
|
createdAt: Date;
|
|
49
52
|
}[];
|
|
50
53
|
}> | null;
|
|
51
|
-
error: null |
|
|
54
|
+
error: null | _better_fetch_fetch185.BetterFetchError;
|
|
52
55
|
isPending: boolean;
|
|
53
56
|
isRefetching: boolean;
|
|
54
57
|
refetch: (queryParams?: {
|
|
55
|
-
query?:
|
|
58
|
+
query?: better_auth360.SessionQueryParams;
|
|
56
59
|
} | undefined) => Promise<void>;
|
|
57
|
-
};
|
|
58
|
-
useListOrganizations:
|
|
60
|
+
}> & object;
|
|
61
|
+
useListOrganizations: nanostores9.PreinitializedWritableAtom<{
|
|
59
62
|
data: {
|
|
60
63
|
id: string;
|
|
61
64
|
name: string;
|
|
@@ -64,14 +67,14 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
64
67
|
logo?: string | null | undefined | undefined;
|
|
65
68
|
metadata?: any;
|
|
66
69
|
}[] | null;
|
|
67
|
-
error: null |
|
|
70
|
+
error: null | _better_fetch_fetch185.BetterFetchError;
|
|
68
71
|
isPending: boolean;
|
|
69
72
|
isRefetching: boolean;
|
|
70
73
|
refetch: (queryParams?: {
|
|
71
|
-
query?:
|
|
74
|
+
query?: better_auth360.SessionQueryParams;
|
|
72
75
|
} | undefined) => Promise<void>;
|
|
73
|
-
};
|
|
74
|
-
useActiveMember:
|
|
76
|
+
}> & object;
|
|
77
|
+
useActiveMember: nanostores9.PreinitializedWritableAtom<{
|
|
75
78
|
data: {
|
|
76
79
|
id: string;
|
|
77
80
|
organizationId: string;
|
|
@@ -79,29 +82,29 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
79
82
|
role: string;
|
|
80
83
|
createdAt: Date;
|
|
81
84
|
} | null;
|
|
82
|
-
error: null |
|
|
85
|
+
error: null | _better_fetch_fetch185.BetterFetchError;
|
|
83
86
|
isPending: boolean;
|
|
84
87
|
isRefetching: boolean;
|
|
85
88
|
refetch: (queryParams?: {
|
|
86
|
-
query?:
|
|
89
|
+
query?: better_auth360.SessionQueryParams;
|
|
87
90
|
} | undefined) => Promise<void>;
|
|
88
|
-
};
|
|
89
|
-
useActiveMemberRole:
|
|
91
|
+
}> & object;
|
|
92
|
+
useActiveMemberRole: nanostores9.PreinitializedWritableAtom<{
|
|
90
93
|
data: {
|
|
91
94
|
role: string;
|
|
92
95
|
} | null;
|
|
93
|
-
error: null |
|
|
96
|
+
error: null | _better_fetch_fetch185.BetterFetchError;
|
|
94
97
|
isPending: boolean;
|
|
95
98
|
isRefetching: boolean;
|
|
96
99
|
refetch: (queryParams?: {
|
|
97
|
-
query?:
|
|
100
|
+
query?: better_auth360.SessionQueryParams;
|
|
98
101
|
} | undefined) => Promise<void>;
|
|
99
|
-
};
|
|
102
|
+
}> & object;
|
|
100
103
|
} & {
|
|
101
|
-
token: <FetchOptions extends
|
|
104
|
+
token: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
|
|
102
105
|
query?: Record<string, any> | undefined;
|
|
103
106
|
fetchOptions?: FetchOptions | undefined;
|
|
104
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
107
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
105
108
|
token: string;
|
|
106
109
|
}, {
|
|
107
110
|
code?: string | undefined;
|
|
@@ -109,16 +112,16 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
109
112
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
110
113
|
} & {
|
|
111
114
|
admin: {
|
|
112
|
-
setRole: <FetchOptions extends
|
|
115
|
+
setRole: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
113
116
|
userId: string;
|
|
114
117
|
role: "user" | "admin" | ("user" | "admin")[];
|
|
115
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
118
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
116
119
|
userId: string;
|
|
117
120
|
role: "user" | "admin" | ("user" | "admin")[];
|
|
118
121
|
} & {
|
|
119
122
|
fetchOptions?: FetchOptions | undefined;
|
|
120
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
121
|
-
user:
|
|
123
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
124
|
+
user: better_auth_client_plugins33.UserWithRole;
|
|
122
125
|
}, {
|
|
123
126
|
code?: string | undefined;
|
|
124
127
|
message?: string | undefined;
|
|
@@ -126,14 +129,14 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
126
129
|
};
|
|
127
130
|
} & {
|
|
128
131
|
admin: {
|
|
129
|
-
getUser: <FetchOptions extends
|
|
132
|
+
getUser: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<{
|
|
130
133
|
id: string;
|
|
131
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
134
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
132
135
|
query: {
|
|
133
136
|
id: string;
|
|
134
137
|
};
|
|
135
138
|
fetchOptions?: FetchOptions | undefined;
|
|
136
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
139
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
137
140
|
id: string;
|
|
138
141
|
createdAt: Date;
|
|
139
142
|
updatedAt: Date;
|
|
@@ -148,13 +151,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
148
151
|
};
|
|
149
152
|
} & {
|
|
150
153
|
admin: {
|
|
151
|
-
createUser: <FetchOptions extends
|
|
154
|
+
createUser: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
152
155
|
email: string;
|
|
153
156
|
password: string;
|
|
154
157
|
name: string;
|
|
155
158
|
role?: "user" | "admin" | ("user" | "admin")[] | undefined;
|
|
156
159
|
data?: Record<string, any> | undefined;
|
|
157
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
160
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
158
161
|
email: string;
|
|
159
162
|
password: string;
|
|
160
163
|
name: string;
|
|
@@ -162,8 +165,8 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
162
165
|
data?: Record<string, any> | undefined;
|
|
163
166
|
} & {
|
|
164
167
|
fetchOptions?: FetchOptions | undefined;
|
|
165
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
166
|
-
user:
|
|
168
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
169
|
+
user: better_auth_client_plugins33.UserWithRole;
|
|
167
170
|
}, {
|
|
168
171
|
code?: string | undefined;
|
|
169
172
|
message?: string | undefined;
|
|
@@ -171,22 +174,22 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
171
174
|
};
|
|
172
175
|
} & {
|
|
173
176
|
admin: {
|
|
174
|
-
updateUser: <FetchOptions extends
|
|
177
|
+
updateUser: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
175
178
|
userId: unknown;
|
|
176
179
|
data: Record<any, any>;
|
|
177
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
180
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
178
181
|
userId: unknown;
|
|
179
182
|
data: Record<any, any>;
|
|
180
183
|
} & {
|
|
181
184
|
fetchOptions?: FetchOptions | undefined;
|
|
182
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
185
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<better_auth_client_plugins33.UserWithRole, {
|
|
183
186
|
code?: string | undefined;
|
|
184
187
|
message?: string | undefined;
|
|
185
188
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
186
189
|
};
|
|
187
190
|
} & {
|
|
188
191
|
admin: {
|
|
189
|
-
listUsers: <FetchOptions extends
|
|
192
|
+
listUsers: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<{
|
|
190
193
|
searchValue?: string | undefined;
|
|
191
194
|
searchField?: "email" | "name" | undefined;
|
|
192
195
|
searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
|
|
@@ -197,7 +200,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
197
200
|
filterField?: string | undefined;
|
|
198
201
|
filterValue?: string | number | boolean | undefined;
|
|
199
202
|
filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
|
|
200
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
203
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
201
204
|
query: {
|
|
202
205
|
searchValue?: string | undefined;
|
|
203
206
|
searchField?: "email" | "name" | undefined;
|
|
@@ -211,8 +214,8 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
211
214
|
filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
|
|
212
215
|
};
|
|
213
216
|
fetchOptions?: FetchOptions | undefined;
|
|
214
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
215
|
-
users:
|
|
217
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<NonNullable<{
|
|
218
|
+
users: better_auth_client_plugins33.UserWithRole[];
|
|
216
219
|
total: number;
|
|
217
220
|
limit: number | undefined;
|
|
218
221
|
offset: number | undefined;
|
|
@@ -226,14 +229,14 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
226
229
|
};
|
|
227
230
|
} & {
|
|
228
231
|
admin: {
|
|
229
|
-
listUserSessions: <FetchOptions extends
|
|
232
|
+
listUserSessions: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
230
233
|
userId: unknown;
|
|
231
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
234
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
232
235
|
userId: unknown;
|
|
233
236
|
} & {
|
|
234
237
|
fetchOptions?: FetchOptions | undefined;
|
|
235
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
236
|
-
sessions:
|
|
238
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
239
|
+
sessions: better_auth_client_plugins33.SessionWithImpersonatedBy[];
|
|
237
240
|
}, {
|
|
238
241
|
code?: string | undefined;
|
|
239
242
|
message?: string | undefined;
|
|
@@ -241,13 +244,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
241
244
|
};
|
|
242
245
|
} & {
|
|
243
246
|
admin: {
|
|
244
|
-
unbanUser: <FetchOptions extends
|
|
247
|
+
unbanUser: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
245
248
|
userId: unknown;
|
|
246
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
249
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
247
250
|
userId: unknown;
|
|
248
251
|
} & {
|
|
249
252
|
fetchOptions?: FetchOptions | undefined;
|
|
250
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
253
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
251
254
|
user: {
|
|
252
255
|
id: string;
|
|
253
256
|
createdAt: Date;
|
|
@@ -264,17 +267,17 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
264
267
|
};
|
|
265
268
|
} & {
|
|
266
269
|
admin: {
|
|
267
|
-
banUser: <FetchOptions extends
|
|
270
|
+
banUser: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
268
271
|
userId: unknown;
|
|
269
272
|
banReason?: string | undefined;
|
|
270
273
|
banExpiresIn?: number | undefined;
|
|
271
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
274
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
272
275
|
userId: unknown;
|
|
273
276
|
banReason?: string | undefined;
|
|
274
277
|
banExpiresIn?: number | undefined;
|
|
275
278
|
} & {
|
|
276
279
|
fetchOptions?: FetchOptions | undefined;
|
|
277
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
280
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
278
281
|
user: {
|
|
279
282
|
id: string;
|
|
280
283
|
createdAt: Date;
|
|
@@ -291,13 +294,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
291
294
|
};
|
|
292
295
|
} & {
|
|
293
296
|
admin: {
|
|
294
|
-
impersonateUser: <FetchOptions extends
|
|
297
|
+
impersonateUser: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
295
298
|
userId: unknown;
|
|
296
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
299
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
297
300
|
userId: unknown;
|
|
298
301
|
} & {
|
|
299
302
|
fetchOptions?: FetchOptions | undefined;
|
|
300
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
303
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
301
304
|
session: {
|
|
302
305
|
id: string;
|
|
303
306
|
createdAt: Date;
|
|
@@ -308,7 +311,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
308
311
|
ipAddress?: string | null | undefined;
|
|
309
312
|
userAgent?: string | null | undefined;
|
|
310
313
|
};
|
|
311
|
-
user:
|
|
314
|
+
user: better_auth_client_plugins33.UserWithRole;
|
|
312
315
|
}, {
|
|
313
316
|
code?: string | undefined;
|
|
314
317
|
message?: string | undefined;
|
|
@@ -316,12 +319,12 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
316
319
|
};
|
|
317
320
|
} & {
|
|
318
321
|
admin: {
|
|
319
|
-
stopImpersonating: <FetchOptions extends
|
|
322
|
+
stopImpersonating: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
|
|
320
323
|
query?: Record<string, any> | undefined;
|
|
321
324
|
fetchOptions?: FetchOptions | undefined;
|
|
322
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
323
|
-
session:
|
|
324
|
-
user:
|
|
325
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
326
|
+
session: better_auth360.Session & Record<string, any>;
|
|
327
|
+
user: better_auth360.User & Record<string, any>;
|
|
325
328
|
}, {
|
|
326
329
|
code?: string | undefined;
|
|
327
330
|
message?: string | undefined;
|
|
@@ -329,13 +332,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
329
332
|
};
|
|
330
333
|
} & {
|
|
331
334
|
admin: {
|
|
332
|
-
revokeUserSession: <FetchOptions extends
|
|
335
|
+
revokeUserSession: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
333
336
|
sessionToken: string;
|
|
334
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
337
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
335
338
|
sessionToken: string;
|
|
336
339
|
} & {
|
|
337
340
|
fetchOptions?: FetchOptions | undefined;
|
|
338
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
341
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
339
342
|
success: boolean;
|
|
340
343
|
}, {
|
|
341
344
|
code?: string | undefined;
|
|
@@ -344,13 +347,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
344
347
|
};
|
|
345
348
|
} & {
|
|
346
349
|
admin: {
|
|
347
|
-
revokeUserSessions: <FetchOptions extends
|
|
350
|
+
revokeUserSessions: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
348
351
|
userId: unknown;
|
|
349
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
352
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
350
353
|
userId: unknown;
|
|
351
354
|
} & {
|
|
352
355
|
fetchOptions?: FetchOptions | undefined;
|
|
353
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
356
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
354
357
|
success: boolean;
|
|
355
358
|
}, {
|
|
356
359
|
code?: string | undefined;
|
|
@@ -359,13 +362,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
359
362
|
};
|
|
360
363
|
} & {
|
|
361
364
|
admin: {
|
|
362
|
-
removeUser: <FetchOptions extends
|
|
365
|
+
removeUser: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
363
366
|
userId: unknown;
|
|
364
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
367
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
365
368
|
userId: unknown;
|
|
366
369
|
} & {
|
|
367
370
|
fetchOptions?: FetchOptions | undefined;
|
|
368
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
371
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
369
372
|
success: boolean;
|
|
370
373
|
}, {
|
|
371
374
|
code?: string | undefined;
|
|
@@ -374,15 +377,15 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
374
377
|
};
|
|
375
378
|
} & {
|
|
376
379
|
admin: {
|
|
377
|
-
setUserPassword: <FetchOptions extends
|
|
380
|
+
setUserPassword: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
378
381
|
newPassword: string;
|
|
379
382
|
userId: unknown;
|
|
380
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
383
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
381
384
|
newPassword: string;
|
|
382
385
|
userId: unknown;
|
|
383
386
|
} & {
|
|
384
387
|
fetchOptions?: FetchOptions | undefined;
|
|
385
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
388
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
386
389
|
status: boolean;
|
|
387
390
|
}, {
|
|
388
391
|
code?: string | undefined;
|
|
@@ -391,7 +394,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
391
394
|
};
|
|
392
395
|
} & {
|
|
393
396
|
admin: {
|
|
394
|
-
hasPermission: <FetchOptions extends
|
|
397
|
+
hasPermission: <FetchOptions extends better_auth360.ClientFetchOption<Partial<({
|
|
395
398
|
permission: {
|
|
396
399
|
readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
397
400
|
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
@@ -406,7 +409,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
406
409
|
}) & {
|
|
407
410
|
userId?: string | undefined;
|
|
408
411
|
role?: "user" | "admin" | undefined;
|
|
409
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
412
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<(({
|
|
410
413
|
permission: {
|
|
411
414
|
readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
412
415
|
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
@@ -423,7 +426,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
423
426
|
role?: "user" | "admin" | undefined;
|
|
424
427
|
}) & {
|
|
425
428
|
fetchOptions?: FetchOptions | undefined;
|
|
426
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
429
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
427
430
|
error: null;
|
|
428
431
|
success: boolean;
|
|
429
432
|
}, {
|
|
@@ -433,14 +436,14 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
433
436
|
};
|
|
434
437
|
} & {
|
|
435
438
|
organization: {
|
|
436
|
-
create: <FetchOptions extends
|
|
439
|
+
create: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
437
440
|
name: string;
|
|
438
441
|
slug: string;
|
|
439
442
|
userId?: string | undefined;
|
|
440
443
|
logo?: string | undefined;
|
|
441
444
|
metadata?: Record<string, any> | undefined;
|
|
442
445
|
keepCurrentActiveOrganization?: boolean | undefined;
|
|
443
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
446
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
444
447
|
name: string;
|
|
445
448
|
slug: string;
|
|
446
449
|
userId?: string | undefined;
|
|
@@ -449,7 +452,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
449
452
|
keepCurrentActiveOrganization?: boolean | undefined;
|
|
450
453
|
} & {
|
|
451
454
|
fetchOptions?: FetchOptions | undefined;
|
|
452
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
455
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
453
456
|
id: string;
|
|
454
457
|
name: string;
|
|
455
458
|
slug: string;
|
|
@@ -472,7 +475,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
472
475
|
};
|
|
473
476
|
} & {
|
|
474
477
|
organization: {
|
|
475
|
-
update: <FetchOptions extends
|
|
478
|
+
update: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
476
479
|
data: {
|
|
477
480
|
name?: string | undefined;
|
|
478
481
|
slug?: string | undefined;
|
|
@@ -480,7 +483,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
480
483
|
metadata?: Record<string, any> | undefined;
|
|
481
484
|
} & Partial<{}>;
|
|
482
485
|
organizationId?: string | undefined;
|
|
483
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
486
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
484
487
|
data: {
|
|
485
488
|
name?: string | undefined;
|
|
486
489
|
slug?: string | undefined;
|
|
@@ -490,7 +493,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
490
493
|
organizationId?: string | undefined;
|
|
491
494
|
} & {
|
|
492
495
|
fetchOptions?: FetchOptions | undefined;
|
|
493
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
496
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
494
497
|
id: string;
|
|
495
498
|
name: string;
|
|
496
499
|
slug: string;
|
|
@@ -506,13 +509,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
506
509
|
};
|
|
507
510
|
} & {
|
|
508
511
|
organization: {
|
|
509
|
-
delete: <FetchOptions extends
|
|
512
|
+
delete: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
510
513
|
organizationId: string;
|
|
511
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
514
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
512
515
|
organizationId: string;
|
|
513
516
|
} & {
|
|
514
517
|
fetchOptions?: FetchOptions | undefined;
|
|
515
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
518
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
516
519
|
id: string;
|
|
517
520
|
name: string;
|
|
518
521
|
slug: string;
|
|
@@ -526,15 +529,15 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
526
529
|
};
|
|
527
530
|
} & {
|
|
528
531
|
organization: {
|
|
529
|
-
setActive: <FetchOptions extends
|
|
532
|
+
setActive: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
530
533
|
organizationId?: string | null | undefined;
|
|
531
534
|
organizationSlug?: string | undefined;
|
|
532
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
535
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
|
|
533
536
|
organizationId?: string | null | undefined;
|
|
534
537
|
organizationSlug?: string | undefined;
|
|
535
538
|
} & {
|
|
536
539
|
fetchOptions?: FetchOptions | undefined;
|
|
537
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
540
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
538
541
|
members: {
|
|
539
542
|
id: string;
|
|
540
543
|
organizationId: string;
|
|
@@ -553,7 +556,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
553
556
|
organizationId: string;
|
|
554
557
|
email: string;
|
|
555
558
|
role: "admin" | "member" | "owner";
|
|
556
|
-
status:
|
|
559
|
+
status: better_auth_client31.InvitationStatus;
|
|
557
560
|
inviterId: string;
|
|
558
561
|
expiresAt: Date;
|
|
559
562
|
createdAt: Date;
|
|
@@ -572,18 +575,18 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
572
575
|
};
|
|
573
576
|
} & {
|
|
574
577
|
organization: {
|
|
575
|
-
getFullOrganization: <FetchOptions extends
|
|
578
|
+
getFullOrganization: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<{
|
|
576
579
|
organizationId?: string | undefined;
|
|
577
580
|
organizationSlug?: string | undefined;
|
|
578
581
|
membersLimit?: string | number | undefined;
|
|
579
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
582
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
|
|
580
583
|
query?: {
|
|
581
584
|
organizationId?: string | undefined;
|
|
582
585
|
organizationSlug?: string | undefined;
|
|
583
586
|
membersLimit?: string | number | undefined;
|
|
584
587
|
} | undefined;
|
|
585
588
|
fetchOptions?: FetchOptions | undefined;
|
|
586
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
589
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
587
590
|
members: {
|
|
588
591
|
id: string;
|
|
589
592
|
organizationId: string;
|
|
@@ -602,7 +605,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
602
605
|
organizationId: string;
|
|
603
606
|
email: string;
|
|
604
607
|
role: "admin" | "member" | "owner";
|
|
605
|
-
status:
|
|
608
|
+
status: better_auth_client31.InvitationStatus;
|
|
606
609
|
inviterId: string;
|
|
607
610
|
expiresAt: Date;
|
|
608
611
|
createdAt: Date;
|
|
@@ -621,10 +624,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
621
624
|
};
|
|
622
625
|
} & {
|
|
623
626
|
organization: {
|
|
624
|
-
list: <FetchOptions extends
|
|
627
|
+
list: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
|
|
625
628
|
query?: Record<string, any> | undefined;
|
|
626
629
|
fetchOptions?: FetchOptions | undefined;
|
|
627
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
630
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
628
631
|
id: string;
|
|
629
632
|
name: string;
|
|
630
633
|
slug: string;
|
|
@@ -638,24 +641,24 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
638
641
|
};
|
|
639
642
|
} & {
|
|
640
643
|
organization: {
|
|
641
|
-
inviteMember: <FetchOptions extends
|
|
644
|
+
inviteMember: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
642
645
|
email: string;
|
|
643
646
|
role: "admin" | "member" | "owner" | ("admin" | "member" | "owner")[];
|
|
644
647
|
organizationId?: string | undefined;
|
|
645
648
|
resend?: boolean | undefined;
|
|
646
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
649
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
647
650
|
email: string;
|
|
648
651
|
role: "admin" | "member" | "owner" | ("admin" | "member" | "owner")[];
|
|
649
652
|
organizationId?: string | undefined;
|
|
650
653
|
resend?: boolean | undefined;
|
|
651
654
|
} & {
|
|
652
655
|
fetchOptions?: FetchOptions | undefined;
|
|
653
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
656
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
654
657
|
id: string;
|
|
655
658
|
organizationId: string;
|
|
656
659
|
email: string;
|
|
657
660
|
role: "admin" | "member" | "owner";
|
|
658
|
-
status:
|
|
661
|
+
status: better_auth_client31.InvitationStatus;
|
|
659
662
|
inviterId: string;
|
|
660
663
|
expiresAt: Date;
|
|
661
664
|
createdAt: Date;
|
|
@@ -666,18 +669,18 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
666
669
|
};
|
|
667
670
|
} & {
|
|
668
671
|
organization: {
|
|
669
|
-
cancelInvitation: <FetchOptions extends
|
|
672
|
+
cancelInvitation: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
670
673
|
invitationId: string;
|
|
671
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
674
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
672
675
|
invitationId: string;
|
|
673
676
|
} & {
|
|
674
677
|
fetchOptions?: FetchOptions | undefined;
|
|
675
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
678
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
676
679
|
id: string;
|
|
677
680
|
organizationId: string;
|
|
678
681
|
email: string;
|
|
679
682
|
role: "admin" | "member" | "owner";
|
|
680
|
-
status:
|
|
683
|
+
status: better_auth_client31.InvitationStatus;
|
|
681
684
|
inviterId: string;
|
|
682
685
|
expiresAt: Date;
|
|
683
686
|
createdAt: Date;
|
|
@@ -688,19 +691,19 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
688
691
|
};
|
|
689
692
|
} & {
|
|
690
693
|
organization: {
|
|
691
|
-
acceptInvitation: <FetchOptions extends
|
|
694
|
+
acceptInvitation: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
692
695
|
invitationId: string;
|
|
693
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
696
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
694
697
|
invitationId: string;
|
|
695
698
|
} & {
|
|
696
699
|
fetchOptions?: FetchOptions | undefined;
|
|
697
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
700
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
698
701
|
invitation: {
|
|
699
702
|
id: string;
|
|
700
703
|
organizationId: string;
|
|
701
704
|
email: string;
|
|
702
705
|
role: "admin" | "member" | "owner";
|
|
703
|
-
status:
|
|
706
|
+
status: better_auth_client31.InvitationStatus;
|
|
704
707
|
inviterId: string;
|
|
705
708
|
expiresAt: Date;
|
|
706
709
|
createdAt: Date;
|
|
@@ -719,19 +722,19 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
719
722
|
};
|
|
720
723
|
} & {
|
|
721
724
|
organization: {
|
|
722
|
-
getInvitation: <FetchOptions extends
|
|
725
|
+
getInvitation: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<{
|
|
723
726
|
id: string;
|
|
724
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
727
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
725
728
|
query: {
|
|
726
729
|
id: string;
|
|
727
730
|
};
|
|
728
731
|
fetchOptions?: FetchOptions | undefined;
|
|
729
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
732
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<NonNullable<{
|
|
730
733
|
id: string;
|
|
731
734
|
organizationId: string;
|
|
732
735
|
email: string;
|
|
733
736
|
role: "admin" | "member" | "owner";
|
|
734
|
-
status:
|
|
737
|
+
status: better_auth_client31.InvitationStatus;
|
|
735
738
|
inviterId: string;
|
|
736
739
|
expiresAt: Date;
|
|
737
740
|
createdAt: Date;
|
|
@@ -746,19 +749,19 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
746
749
|
};
|
|
747
750
|
} & {
|
|
748
751
|
organization: {
|
|
749
|
-
rejectInvitation: <FetchOptions extends
|
|
752
|
+
rejectInvitation: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
750
753
|
invitationId: string;
|
|
751
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
754
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
752
755
|
invitationId: string;
|
|
753
756
|
} & {
|
|
754
757
|
fetchOptions?: FetchOptions | undefined;
|
|
755
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
758
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
756
759
|
invitation: {
|
|
757
760
|
id: string;
|
|
758
761
|
organizationId: string;
|
|
759
762
|
email: string;
|
|
760
763
|
role: "member" | "admin" | "owner";
|
|
761
|
-
status:
|
|
764
|
+
status: better_auth_client31.InvitationStatus;
|
|
762
765
|
inviterId: string;
|
|
763
766
|
expiresAt: Date;
|
|
764
767
|
createdAt: Date;
|
|
@@ -771,19 +774,19 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
771
774
|
};
|
|
772
775
|
} & {
|
|
773
776
|
organization: {
|
|
774
|
-
listInvitations: <FetchOptions extends
|
|
777
|
+
listInvitations: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<{
|
|
775
778
|
organizationId?: string | undefined;
|
|
776
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
779
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
|
|
777
780
|
query?: {
|
|
778
781
|
organizationId?: string | undefined;
|
|
779
782
|
} | undefined;
|
|
780
783
|
fetchOptions?: FetchOptions | undefined;
|
|
781
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
784
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
782
785
|
id: string;
|
|
783
786
|
organizationId: string;
|
|
784
787
|
email: string;
|
|
785
788
|
role: "admin" | "member" | "owner";
|
|
786
|
-
status:
|
|
789
|
+
status: better_auth_client31.InvitationStatus;
|
|
787
790
|
inviterId: string;
|
|
788
791
|
expiresAt: Date;
|
|
789
792
|
createdAt: Date;
|
|
@@ -794,10 +797,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
794
797
|
};
|
|
795
798
|
} & {
|
|
796
799
|
organization: {
|
|
797
|
-
getActiveMember: <FetchOptions extends
|
|
800
|
+
getActiveMember: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
|
|
798
801
|
query?: Record<string, any> | undefined;
|
|
799
802
|
fetchOptions?: FetchOptions | undefined;
|
|
800
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
803
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<Omit<{
|
|
801
804
|
id: string;
|
|
802
805
|
organizationId: string;
|
|
803
806
|
role: "admin" | "member" | "owner";
|
|
@@ -810,7 +813,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
810
813
|
image?: string | undefined;
|
|
811
814
|
};
|
|
812
815
|
} & {
|
|
813
|
-
user:
|
|
816
|
+
user: better_auth360.User;
|
|
814
817
|
}, "user"> & {
|
|
815
818
|
user: {
|
|
816
819
|
id: string;
|
|
@@ -825,13 +828,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
825
828
|
};
|
|
826
829
|
} & {
|
|
827
830
|
organization: {
|
|
828
|
-
checkSlug: <FetchOptions extends
|
|
831
|
+
checkSlug: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
829
832
|
slug: string;
|
|
830
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
833
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
831
834
|
slug: string;
|
|
832
835
|
} & {
|
|
833
836
|
fetchOptions?: FetchOptions | undefined;
|
|
834
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
837
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
835
838
|
status: boolean;
|
|
836
839
|
}, {
|
|
837
840
|
code?: string | undefined;
|
|
@@ -840,15 +843,15 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
840
843
|
};
|
|
841
844
|
} & {
|
|
842
845
|
organization: {
|
|
843
|
-
removeMember: <FetchOptions extends
|
|
846
|
+
removeMember: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
844
847
|
memberIdOrEmail: string;
|
|
845
848
|
organizationId?: string | undefined;
|
|
846
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
849
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
847
850
|
memberIdOrEmail: string;
|
|
848
851
|
organizationId?: string | undefined;
|
|
849
852
|
} & {
|
|
850
853
|
fetchOptions?: FetchOptions | undefined;
|
|
851
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
854
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
852
855
|
member: {
|
|
853
856
|
id: string;
|
|
854
857
|
organizationId: string;
|
|
@@ -869,17 +872,17 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
869
872
|
};
|
|
870
873
|
} & {
|
|
871
874
|
organization: {
|
|
872
|
-
updateMemberRole: <FetchOptions extends
|
|
873
|
-
role:
|
|
875
|
+
updateMemberRole: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
876
|
+
role: better_auth360.LiteralString | "admin" | "member" | "owner" | ("admin" | "member" | "owner")[] | better_auth360.LiteralString[];
|
|
874
877
|
memberId: string;
|
|
875
878
|
organizationId?: string | undefined;
|
|
876
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
877
|
-
role:
|
|
879
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
880
|
+
role: better_auth360.LiteralString | "admin" | "member" | "owner" | ("admin" | "member" | "owner")[] | better_auth360.LiteralString[];
|
|
878
881
|
memberId: string;
|
|
879
882
|
organizationId?: string | undefined;
|
|
880
883
|
} & {
|
|
881
884
|
fetchOptions?: FetchOptions | undefined;
|
|
882
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
885
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
883
886
|
id: string;
|
|
884
887
|
organizationId: string;
|
|
885
888
|
role: "member" | "admin" | "owner";
|
|
@@ -898,13 +901,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
898
901
|
};
|
|
899
902
|
} & {
|
|
900
903
|
organization: {
|
|
901
|
-
leave: <FetchOptions extends
|
|
904
|
+
leave: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
902
905
|
organizationId: string;
|
|
903
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
906
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
904
907
|
organizationId: string;
|
|
905
908
|
} & {
|
|
906
909
|
fetchOptions?: FetchOptions | undefined;
|
|
907
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
910
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<NonNullable<Omit<{
|
|
908
911
|
id: string;
|
|
909
912
|
organizationId: string;
|
|
910
913
|
role: "admin" | "member" | "owner";
|
|
@@ -917,7 +920,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
917
920
|
image?: string | undefined;
|
|
918
921
|
};
|
|
919
922
|
} & {
|
|
920
|
-
user:
|
|
923
|
+
user: better_auth360.User;
|
|
921
924
|
}, "user"> & {
|
|
922
925
|
user: {
|
|
923
926
|
id: string;
|
|
@@ -932,19 +935,19 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
932
935
|
};
|
|
933
936
|
} & {
|
|
934
937
|
organization: {
|
|
935
|
-
listUserInvitations: <FetchOptions extends
|
|
938
|
+
listUserInvitations: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<{
|
|
936
939
|
email?: string | undefined;
|
|
937
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
940
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
|
|
938
941
|
query?: {
|
|
939
942
|
email?: string | undefined;
|
|
940
943
|
} | undefined;
|
|
941
944
|
fetchOptions?: FetchOptions | undefined;
|
|
942
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
945
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<(Omit<{
|
|
943
946
|
id: string;
|
|
944
947
|
organizationId: string;
|
|
945
948
|
email: string;
|
|
946
949
|
role: "admin" | "member" | "owner";
|
|
947
|
-
status:
|
|
950
|
+
status: better_auth_client31.InvitationStatus;
|
|
948
951
|
inviterId: string;
|
|
949
952
|
expiresAt: Date;
|
|
950
953
|
createdAt: Date;
|
|
@@ -966,7 +969,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
966
969
|
};
|
|
967
970
|
} & {
|
|
968
971
|
organization: {
|
|
969
|
-
listMembers: <FetchOptions extends
|
|
972
|
+
listMembers: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<{
|
|
970
973
|
limit?: string | number | undefined;
|
|
971
974
|
offset?: string | number | undefined;
|
|
972
975
|
sortBy?: string | undefined;
|
|
@@ -976,7 +979,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
976
979
|
filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
|
|
977
980
|
organizationId?: string | undefined;
|
|
978
981
|
organizationSlug?: string | undefined;
|
|
979
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
982
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
|
|
980
983
|
query?: {
|
|
981
984
|
limit?: string | number | undefined;
|
|
982
985
|
offset?: string | number | undefined;
|
|
@@ -989,7 +992,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
989
992
|
organizationSlug?: string | undefined;
|
|
990
993
|
} | undefined;
|
|
991
994
|
fetchOptions?: FetchOptions | undefined;
|
|
992
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
995
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
993
996
|
members: ({
|
|
994
997
|
id: string;
|
|
995
998
|
organizationId: string;
|
|
@@ -1018,18 +1021,18 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1018
1021
|
};
|
|
1019
1022
|
} & {
|
|
1020
1023
|
organization: {
|
|
1021
|
-
getActiveMemberRole: <FetchOptions extends
|
|
1024
|
+
getActiveMemberRole: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<{
|
|
1022
1025
|
userId?: string | undefined;
|
|
1023
1026
|
organizationId?: string | undefined;
|
|
1024
1027
|
organizationSlug?: string | undefined;
|
|
1025
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
1028
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
|
|
1026
1029
|
query?: {
|
|
1027
1030
|
userId?: string | undefined;
|
|
1028
1031
|
organizationId?: string | undefined;
|
|
1029
1032
|
organizationSlug?: string | undefined;
|
|
1030
1033
|
} | undefined;
|
|
1031
1034
|
fetchOptions?: FetchOptions | undefined;
|
|
1032
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1035
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
1033
1036
|
role: "admin" | "member" | "owner";
|
|
1034
1037
|
}, {
|
|
1035
1038
|
code?: string | undefined;
|
|
@@ -1038,7 +1041,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1038
1041
|
};
|
|
1039
1042
|
} & {
|
|
1040
1043
|
organization: {
|
|
1041
|
-
hasPermission: <FetchOptions extends
|
|
1044
|
+
hasPermission: <FetchOptions extends better_auth360.ClientFetchOption<Partial<({
|
|
1042
1045
|
permission: {
|
|
1043
1046
|
readonly organization?: ("delete" | "update")[] | undefined;
|
|
1044
1047
|
readonly member?: ("delete" | "create" | "update")[] | undefined;
|
|
@@ -1058,7 +1061,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1058
1061
|
permission?: never | undefined;
|
|
1059
1062
|
}) & {
|
|
1060
1063
|
organizationId?: string | undefined;
|
|
1061
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1064
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<(({
|
|
1062
1065
|
permission: {
|
|
1063
1066
|
readonly organization?: ("delete" | "update")[] | undefined;
|
|
1064
1067
|
readonly member?: ("delete" | "create" | "update")[] | undefined;
|
|
@@ -1080,7 +1083,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1080
1083
|
organizationId?: string | undefined;
|
|
1081
1084
|
}) & {
|
|
1082
1085
|
fetchOptions?: FetchOptions | undefined;
|
|
1083
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1086
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
1084
1087
|
error: null;
|
|
1085
1088
|
success: boolean;
|
|
1086
1089
|
}, {
|
|
@@ -1090,15 +1093,15 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1090
1093
|
};
|
|
1091
1094
|
} & {
|
|
1092
1095
|
emailOtp: {
|
|
1093
|
-
sendVerificationOtp: <FetchOptions extends
|
|
1096
|
+
sendVerificationOtp: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
1094
1097
|
email: string;
|
|
1095
1098
|
type: "sign-in" | "email-verification" | "forget-password";
|
|
1096
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1099
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
1097
1100
|
email: string;
|
|
1098
1101
|
type: "sign-in" | "email-verification" | "forget-password";
|
|
1099
1102
|
} & {
|
|
1100
1103
|
fetchOptions?: FetchOptions | undefined;
|
|
1101
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1104
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
1102
1105
|
success: boolean;
|
|
1103
1106
|
}, {
|
|
1104
1107
|
code?: string | undefined;
|
|
@@ -1107,17 +1110,17 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1107
1110
|
};
|
|
1108
1111
|
} & {
|
|
1109
1112
|
emailOtp: {
|
|
1110
|
-
checkVerificationOtp: <FetchOptions extends
|
|
1113
|
+
checkVerificationOtp: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
1111
1114
|
email: string;
|
|
1112
1115
|
type: "sign-in" | "email-verification" | "forget-password";
|
|
1113
1116
|
otp: string;
|
|
1114
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1117
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
1115
1118
|
email: string;
|
|
1116
1119
|
type: "sign-in" | "email-verification" | "forget-password";
|
|
1117
1120
|
otp: string;
|
|
1118
1121
|
} & {
|
|
1119
1122
|
fetchOptions?: FetchOptions | undefined;
|
|
1120
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1123
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
1121
1124
|
success: boolean;
|
|
1122
1125
|
}, {
|
|
1123
1126
|
code?: string | undefined;
|
|
@@ -1126,15 +1129,15 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1126
1129
|
};
|
|
1127
1130
|
} & {
|
|
1128
1131
|
emailOtp: {
|
|
1129
|
-
verifyEmail: <FetchOptions extends
|
|
1132
|
+
verifyEmail: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
1130
1133
|
email: string;
|
|
1131
1134
|
otp: string;
|
|
1132
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1135
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
1133
1136
|
email: string;
|
|
1134
1137
|
otp: string;
|
|
1135
1138
|
} & {
|
|
1136
1139
|
fetchOptions?: FetchOptions | undefined;
|
|
1137
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1140
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<NonNullable<{
|
|
1138
1141
|
status: boolean;
|
|
1139
1142
|
token: string;
|
|
1140
1143
|
user: {
|
|
@@ -1165,15 +1168,15 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1165
1168
|
};
|
|
1166
1169
|
} & {
|
|
1167
1170
|
signIn: {
|
|
1168
|
-
emailOtp: <FetchOptions extends
|
|
1171
|
+
emailOtp: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
1169
1172
|
email: string;
|
|
1170
1173
|
otp: string;
|
|
1171
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1174
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
1172
1175
|
email: string;
|
|
1173
1176
|
otp: string;
|
|
1174
1177
|
} & {
|
|
1175
1178
|
fetchOptions?: FetchOptions | undefined;
|
|
1176
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1179
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
1177
1180
|
token: string;
|
|
1178
1181
|
user: {
|
|
1179
1182
|
id: string;
|
|
@@ -1191,13 +1194,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1191
1194
|
};
|
|
1192
1195
|
} & {
|
|
1193
1196
|
forgetPassword: {
|
|
1194
|
-
emailOtp: <FetchOptions extends
|
|
1197
|
+
emailOtp: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
1195
1198
|
email: string;
|
|
1196
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1199
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
1197
1200
|
email: string;
|
|
1198
1201
|
} & {
|
|
1199
1202
|
fetchOptions?: FetchOptions | undefined;
|
|
1200
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1203
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
1201
1204
|
success: boolean;
|
|
1202
1205
|
}, {
|
|
1203
1206
|
code?: string | undefined;
|
|
@@ -1206,17 +1209,17 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1206
1209
|
};
|
|
1207
1210
|
} & {
|
|
1208
1211
|
emailOtp: {
|
|
1209
|
-
resetPassword: <FetchOptions extends
|
|
1212
|
+
resetPassword: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
1210
1213
|
email: string;
|
|
1211
1214
|
otp: string;
|
|
1212
1215
|
password: string;
|
|
1213
|
-
}> & 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_auth360.Prettify<{
|
|
1214
1217
|
email: string;
|
|
1215
1218
|
otp: string;
|
|
1216
1219
|
password: string;
|
|
1217
1220
|
} & {
|
|
1218
1221
|
fetchOptions?: FetchOptions | undefined;
|
|
1219
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1222
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
1220
1223
|
success: boolean;
|
|
1221
1224
|
}, {
|
|
1222
1225
|
code?: string | undefined;
|
|
@@ -1225,7 +1228,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1225
1228
|
};
|
|
1226
1229
|
} & {
|
|
1227
1230
|
signIn: {
|
|
1228
|
-
social: <FetchOptions extends
|
|
1231
|
+
social: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
1229
1232
|
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
|
|
1230
1233
|
callbackURL?: string | undefined;
|
|
1231
1234
|
newUserCallbackURL?: string | undefined;
|
|
@@ -1242,7 +1245,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1242
1245
|
requestSignUp?: boolean | undefined;
|
|
1243
1246
|
loginHint?: string | undefined;
|
|
1244
1247
|
additionalData?: Record<string, any> | undefined;
|
|
1245
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1248
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
1246
1249
|
provider: (string & {}) | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel";
|
|
1247
1250
|
callbackURL?: string | undefined;
|
|
1248
1251
|
newUserCallbackURL?: string | undefined;
|
|
@@ -1261,7 +1264,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1261
1264
|
additionalData?: Record<string, any> | undefined;
|
|
1262
1265
|
} & {
|
|
1263
1266
|
fetchOptions?: FetchOptions | undefined;
|
|
1264
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1267
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<NonNullable<{
|
|
1265
1268
|
redirect: boolean;
|
|
1266
1269
|
url: string;
|
|
1267
1270
|
} | {
|
|
@@ -1283,10 +1286,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1283
1286
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1284
1287
|
};
|
|
1285
1288
|
} & {
|
|
1286
|
-
signOut: <FetchOptions extends
|
|
1289
|
+
signOut: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
|
|
1287
1290
|
query?: Record<string, any> | undefined;
|
|
1288
1291
|
fetchOptions?: FetchOptions | undefined;
|
|
1289
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1292
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
1290
1293
|
success: boolean;
|
|
1291
1294
|
}, {
|
|
1292
1295
|
code?: string | undefined;
|
|
@@ -1294,21 +1297,21 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1294
1297
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1295
1298
|
} & {
|
|
1296
1299
|
signUp: {
|
|
1297
|
-
email: <FetchOptions extends
|
|
1300
|
+
email: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
1298
1301
|
name: string;
|
|
1299
1302
|
email: string;
|
|
1300
1303
|
password: string;
|
|
1301
1304
|
image?: string | undefined;
|
|
1302
1305
|
callbackURL?: string | undefined;
|
|
1303
1306
|
rememberMe?: boolean | undefined;
|
|
1304
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1307
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
1305
1308
|
email: string;
|
|
1306
1309
|
name: string;
|
|
1307
1310
|
password: string;
|
|
1308
1311
|
image?: string | undefined;
|
|
1309
1312
|
callbackURL?: string | undefined;
|
|
1310
1313
|
fetchOptions?: FetchOptions | undefined;
|
|
1311
|
-
} & {} & {}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1314
|
+
} & {} & {}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<NonNullable<{
|
|
1312
1315
|
token: null;
|
|
1313
1316
|
user: {
|
|
1314
1317
|
id: string;
|
|
@@ -1337,19 +1340,19 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1337
1340
|
};
|
|
1338
1341
|
} & {
|
|
1339
1342
|
signIn: {
|
|
1340
|
-
email: <FetchOptions extends
|
|
1343
|
+
email: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
1341
1344
|
email: string;
|
|
1342
1345
|
password: string;
|
|
1343
1346
|
callbackURL?: string | undefined;
|
|
1344
1347
|
rememberMe?: boolean | undefined;
|
|
1345
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1348
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
1346
1349
|
email: string;
|
|
1347
1350
|
password: string;
|
|
1348
1351
|
callbackURL?: string | undefined;
|
|
1349
1352
|
rememberMe?: boolean | undefined;
|
|
1350
1353
|
} & {
|
|
1351
1354
|
fetchOptions?: FetchOptions | undefined;
|
|
1352
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1355
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
1353
1356
|
redirect: boolean;
|
|
1354
1357
|
token: string;
|
|
1355
1358
|
url?: string | undefined;
|
|
@@ -1368,80 +1371,80 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1368
1371
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1369
1372
|
};
|
|
1370
1373
|
} & {
|
|
1371
|
-
resetPassword: <FetchOptions extends
|
|
1374
|
+
resetPassword: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
1372
1375
|
newPassword: string;
|
|
1373
1376
|
token?: string | undefined;
|
|
1374
1377
|
}> & Record<string, any>, Partial<{
|
|
1375
1378
|
token?: string | undefined;
|
|
1376
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1379
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
1377
1380
|
newPassword: string;
|
|
1378
1381
|
token?: string | undefined;
|
|
1379
1382
|
} & {
|
|
1380
1383
|
fetchOptions?: FetchOptions | undefined;
|
|
1381
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1384
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
1382
1385
|
status: boolean;
|
|
1383
1386
|
}, {
|
|
1384
1387
|
code?: string | undefined;
|
|
1385
1388
|
message?: string | undefined;
|
|
1386
1389
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1387
1390
|
} & {
|
|
1388
|
-
verifyEmail: <FetchOptions extends
|
|
1391
|
+
verifyEmail: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<{
|
|
1389
1392
|
token: string;
|
|
1390
1393
|
callbackURL?: string | undefined;
|
|
1391
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1394
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
1392
1395
|
query: {
|
|
1393
1396
|
token: string;
|
|
1394
1397
|
callbackURL?: string | undefined;
|
|
1395
1398
|
};
|
|
1396
1399
|
fetchOptions?: FetchOptions | undefined;
|
|
1397
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1400
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<NonNullable<void | {
|
|
1398
1401
|
status: boolean;
|
|
1399
1402
|
}>, {
|
|
1400
1403
|
code?: string | undefined;
|
|
1401
1404
|
message?: string | undefined;
|
|
1402
1405
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1403
1406
|
} & {
|
|
1404
|
-
sendVerificationEmail: <FetchOptions extends
|
|
1407
|
+
sendVerificationEmail: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
1405
1408
|
email: string;
|
|
1406
1409
|
callbackURL?: string | undefined;
|
|
1407
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1410
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
1408
1411
|
email: string;
|
|
1409
1412
|
callbackURL?: string | undefined;
|
|
1410
1413
|
} & {
|
|
1411
1414
|
fetchOptions?: FetchOptions | undefined;
|
|
1412
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1415
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
1413
1416
|
status: boolean;
|
|
1414
1417
|
}, {
|
|
1415
1418
|
code?: string | undefined;
|
|
1416
1419
|
message?: string | undefined;
|
|
1417
1420
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1418
1421
|
} & {
|
|
1419
|
-
changeEmail: <FetchOptions extends
|
|
1422
|
+
changeEmail: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
1420
1423
|
newEmail: string;
|
|
1421
1424
|
callbackURL?: string | undefined;
|
|
1422
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1425
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
1423
1426
|
newEmail: string;
|
|
1424
1427
|
callbackURL?: string | undefined;
|
|
1425
1428
|
} & {
|
|
1426
1429
|
fetchOptions?: FetchOptions | undefined;
|
|
1427
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1430
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
1428
1431
|
status: boolean;
|
|
1429
1432
|
}, {
|
|
1430
1433
|
code?: string | undefined;
|
|
1431
1434
|
message?: string | undefined;
|
|
1432
1435
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1433
1436
|
} & {
|
|
1434
|
-
changePassword: <FetchOptions extends
|
|
1437
|
+
changePassword: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
1435
1438
|
newPassword: string;
|
|
1436
1439
|
currentPassword: string;
|
|
1437
1440
|
revokeOtherSessions?: boolean | undefined;
|
|
1438
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1441
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
1439
1442
|
newPassword: string;
|
|
1440
1443
|
currentPassword: string;
|
|
1441
1444
|
revokeOtherSessions?: boolean | undefined;
|
|
1442
1445
|
} & {
|
|
1443
1446
|
fetchOptions?: FetchOptions | undefined;
|
|
1444
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1447
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
1445
1448
|
token: string | null;
|
|
1446
1449
|
user: {
|
|
1447
1450
|
id: string;
|
|
@@ -1457,31 +1460,31 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1457
1460
|
message?: string | undefined;
|
|
1458
1461
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1459
1462
|
} & {
|
|
1460
|
-
updateUser: <FetchOptions extends
|
|
1463
|
+
updateUser: <FetchOptions extends better_auth360.ClientFetchOption<Partial<Partial<{}> & {
|
|
1461
1464
|
name?: string | undefined;
|
|
1462
1465
|
image?: string | undefined | null;
|
|
1463
|
-
}> & 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_auth360.Prettify<{
|
|
1464
1467
|
image?: (string | null) | undefined;
|
|
1465
1468
|
name?: string | undefined;
|
|
1466
1469
|
fetchOptions?: FetchOptions | undefined;
|
|
1467
|
-
} & Partial<{} & {}>> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1470
|
+
} & Partial<{} & {}>> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
1468
1471
|
status: boolean;
|
|
1469
1472
|
}, {
|
|
1470
1473
|
code?: string | undefined;
|
|
1471
1474
|
message?: string | undefined;
|
|
1472
1475
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1473
1476
|
} & {
|
|
1474
|
-
deleteUser: <FetchOptions extends
|
|
1477
|
+
deleteUser: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
1475
1478
|
callbackURL?: string | undefined;
|
|
1476
1479
|
password?: string | undefined;
|
|
1477
1480
|
token?: string | undefined;
|
|
1478
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
1481
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
|
|
1479
1482
|
callbackURL?: string | undefined;
|
|
1480
1483
|
password?: string | undefined;
|
|
1481
1484
|
token?: string | undefined;
|
|
1482
1485
|
} & {
|
|
1483
1486
|
fetchOptions?: FetchOptions | undefined;
|
|
1484
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1487
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
1485
1488
|
success: boolean;
|
|
1486
1489
|
message: string;
|
|
1487
1490
|
}, {
|
|
@@ -1489,15 +1492,15 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1489
1492
|
message?: string | undefined;
|
|
1490
1493
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1491
1494
|
} & {
|
|
1492
|
-
requestPasswordReset: <FetchOptions extends
|
|
1495
|
+
requestPasswordReset: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
1493
1496
|
email: string;
|
|
1494
1497
|
redirectTo?: string | undefined;
|
|
1495
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1498
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
1496
1499
|
email: string;
|
|
1497
1500
|
redirectTo?: string | undefined;
|
|
1498
1501
|
} & {
|
|
1499
1502
|
fetchOptions?: FetchOptions | undefined;
|
|
1500
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1503
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
1501
1504
|
status: boolean;
|
|
1502
1505
|
message: string;
|
|
1503
1506
|
}, {
|
|
@@ -1506,25 +1509,25 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1506
1509
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1507
1510
|
} & {
|
|
1508
1511
|
resetPassword: {
|
|
1509
|
-
":token": <FetchOptions extends
|
|
1512
|
+
":token": <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<{
|
|
1510
1513
|
callbackURL: string;
|
|
1511
1514
|
}> & Record<string, any>, {
|
|
1512
1515
|
token: string;
|
|
1513
|
-
}>>(data_0:
|
|
1516
|
+
}>>(data_0: better_auth360.Prettify<{
|
|
1514
1517
|
query: {
|
|
1515
1518
|
callbackURL: string;
|
|
1516
1519
|
};
|
|
1517
1520
|
fetchOptions?: FetchOptions | undefined;
|
|
1518
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1521
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<never, {
|
|
1519
1522
|
code?: string | undefined;
|
|
1520
1523
|
message?: string | undefined;
|
|
1521
1524
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1522
1525
|
};
|
|
1523
1526
|
} & {
|
|
1524
|
-
listSessions: <FetchOptions extends
|
|
1527
|
+
listSessions: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
|
|
1525
1528
|
query?: Record<string, any> | undefined;
|
|
1526
1529
|
fetchOptions?: FetchOptions | undefined;
|
|
1527
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1530
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<better_auth360.Prettify<{
|
|
1528
1531
|
id: string;
|
|
1529
1532
|
createdAt: Date;
|
|
1530
1533
|
updatedAt: Date;
|
|
@@ -1538,40 +1541,40 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1538
1541
|
message?: string | undefined;
|
|
1539
1542
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1540
1543
|
} & {
|
|
1541
|
-
revokeSession: <FetchOptions extends
|
|
1544
|
+
revokeSession: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
1542
1545
|
token: string;
|
|
1543
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1546
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
1544
1547
|
token: string;
|
|
1545
1548
|
} & {
|
|
1546
1549
|
fetchOptions?: FetchOptions | undefined;
|
|
1547
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1550
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
1548
1551
|
status: boolean;
|
|
1549
1552
|
}, {
|
|
1550
1553
|
code?: string | undefined;
|
|
1551
1554
|
message?: string | undefined;
|
|
1552
1555
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1553
1556
|
} & {
|
|
1554
|
-
revokeSessions: <FetchOptions extends
|
|
1557
|
+
revokeSessions: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
|
|
1555
1558
|
query?: Record<string, any> | undefined;
|
|
1556
1559
|
fetchOptions?: FetchOptions | undefined;
|
|
1557
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1560
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
1558
1561
|
status: boolean;
|
|
1559
1562
|
}, {
|
|
1560
1563
|
code?: string | undefined;
|
|
1561
1564
|
message?: string | undefined;
|
|
1562
1565
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1563
1566
|
} & {
|
|
1564
|
-
revokeOtherSessions: <FetchOptions extends
|
|
1567
|
+
revokeOtherSessions: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
|
|
1565
1568
|
query?: Record<string, any> | undefined;
|
|
1566
1569
|
fetchOptions?: FetchOptions | undefined;
|
|
1567
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1570
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
1568
1571
|
status: boolean;
|
|
1569
1572
|
}, {
|
|
1570
1573
|
code?: string | undefined;
|
|
1571
1574
|
message?: string | undefined;
|
|
1572
1575
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1573
1576
|
} & {
|
|
1574
|
-
linkSocial: <FetchOptions extends
|
|
1577
|
+
linkSocial: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
1575
1578
|
provider: unknown;
|
|
1576
1579
|
callbackURL?: string | undefined;
|
|
1577
1580
|
idToken?: {
|
|
@@ -1586,7 +1589,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1586
1589
|
errorCallbackURL?: string | undefined;
|
|
1587
1590
|
disableRedirect?: boolean | undefined;
|
|
1588
1591
|
additionalData?: Record<string, any> | undefined;
|
|
1589
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1592
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
1590
1593
|
provider: unknown;
|
|
1591
1594
|
callbackURL?: string | undefined;
|
|
1592
1595
|
idToken?: {
|
|
@@ -1603,7 +1606,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1603
1606
|
additionalData?: Record<string, any> | undefined;
|
|
1604
1607
|
} & {
|
|
1605
1608
|
fetchOptions?: FetchOptions | undefined;
|
|
1606
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1609
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
1607
1610
|
url: string;
|
|
1608
1611
|
redirect: boolean;
|
|
1609
1612
|
}, {
|
|
@@ -1611,10 +1614,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1611
1614
|
message?: string | undefined;
|
|
1612
1615
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1613
1616
|
} & {
|
|
1614
|
-
listAccounts: <FetchOptions extends
|
|
1617
|
+
listAccounts: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
|
|
1615
1618
|
query?: Record<string, any> | undefined;
|
|
1616
1619
|
fetchOptions?: FetchOptions | undefined;
|
|
1617
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1620
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
1618
1621
|
id: string;
|
|
1619
1622
|
providerId: string;
|
|
1620
1623
|
createdAt: Date;
|
|
@@ -1628,16 +1631,16 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1628
1631
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1629
1632
|
} & {
|
|
1630
1633
|
deleteUser: {
|
|
1631
|
-
callback: <FetchOptions extends
|
|
1634
|
+
callback: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<{
|
|
1632
1635
|
token: string;
|
|
1633
1636
|
callbackURL?: string | undefined;
|
|
1634
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1637
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
1635
1638
|
query: {
|
|
1636
1639
|
token: string;
|
|
1637
1640
|
callbackURL?: string | undefined;
|
|
1638
1641
|
};
|
|
1639
1642
|
fetchOptions?: FetchOptions | undefined;
|
|
1640
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1643
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
1641
1644
|
success: boolean;
|
|
1642
1645
|
message: string;
|
|
1643
1646
|
}, {
|
|
@@ -1646,32 +1649,32 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1646
1649
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1647
1650
|
};
|
|
1648
1651
|
} & {
|
|
1649
|
-
unlinkAccount: <FetchOptions extends
|
|
1652
|
+
unlinkAccount: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
1650
1653
|
providerId: string;
|
|
1651
1654
|
accountId?: string | undefined;
|
|
1652
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1655
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
1653
1656
|
providerId: string;
|
|
1654
1657
|
accountId?: string | undefined;
|
|
1655
1658
|
} & {
|
|
1656
1659
|
fetchOptions?: FetchOptions | undefined;
|
|
1657
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1660
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
1658
1661
|
status: boolean;
|
|
1659
1662
|
}, {
|
|
1660
1663
|
code?: string | undefined;
|
|
1661
1664
|
message?: string | undefined;
|
|
1662
1665
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1663
1666
|
} & {
|
|
1664
|
-
refreshToken: <FetchOptions extends
|
|
1667
|
+
refreshToken: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
1665
1668
|
providerId: string;
|
|
1666
1669
|
accountId?: string | undefined;
|
|
1667
1670
|
userId?: string | undefined;
|
|
1668
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1671
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
1669
1672
|
providerId: string;
|
|
1670
1673
|
accountId?: string | undefined;
|
|
1671
1674
|
userId?: string | undefined;
|
|
1672
1675
|
} & {
|
|
1673
1676
|
fetchOptions?: FetchOptions | undefined;
|
|
1674
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1677
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
1675
1678
|
accessToken: string | undefined;
|
|
1676
1679
|
refreshToken: string | undefined;
|
|
1677
1680
|
accessTokenExpiresAt: Date | undefined;
|
|
@@ -1685,17 +1688,17 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1685
1688
|
message?: string | undefined;
|
|
1686
1689
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1687
1690
|
} & {
|
|
1688
|
-
getAccessToken: <FetchOptions extends
|
|
1691
|
+
getAccessToken: <FetchOptions extends better_auth360.ClientFetchOption<Partial<{
|
|
1689
1692
|
providerId: string;
|
|
1690
1693
|
accountId?: string | undefined;
|
|
1691
1694
|
userId?: string | undefined;
|
|
1692
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1695
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth360.Prettify<{
|
|
1693
1696
|
providerId: string;
|
|
1694
1697
|
accountId?: string | undefined;
|
|
1695
1698
|
userId?: string | undefined;
|
|
1696
1699
|
} & {
|
|
1697
1700
|
fetchOptions?: FetchOptions | undefined;
|
|
1698
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1701
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
1699
1702
|
accessToken: string;
|
|
1700
1703
|
accessTokenExpiresAt: Date | undefined;
|
|
1701
1704
|
scopes: string[];
|
|
@@ -1705,31 +1708,31 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1705
1708
|
message?: string | undefined;
|
|
1706
1709
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1707
1710
|
} & {
|
|
1708
|
-
accountInfo: <FetchOptions extends
|
|
1711
|
+
accountInfo: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<{
|
|
1709
1712
|
accountId?: string | undefined;
|
|
1710
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
1713
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
|
|
1711
1714
|
query?: {
|
|
1712
1715
|
accountId?: string | undefined;
|
|
1713
1716
|
} | undefined;
|
|
1714
1717
|
fetchOptions?: FetchOptions | undefined;
|
|
1715
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1716
|
-
user:
|
|
1718
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
1719
|
+
user: better_auth360.OAuth2UserInfo;
|
|
1717
1720
|
data: Record<string, any>;
|
|
1718
1721
|
}, {
|
|
1719
1722
|
code?: string | undefined;
|
|
1720
1723
|
message?: string | undefined;
|
|
1721
1724
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1722
1725
|
} & {
|
|
1723
|
-
getSession: <FetchOptions extends
|
|
1726
|
+
getSession: <FetchOptions extends better_auth360.ClientFetchOption<never, Partial<{
|
|
1724
1727
|
disableCookieCache?: unknown;
|
|
1725
1728
|
disableRefresh?: unknown;
|
|
1726
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
1729
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth360.Prettify<{
|
|
1727
1730
|
query?: {
|
|
1728
1731
|
disableCookieCache?: unknown;
|
|
1729
1732
|
disableRefresh?: unknown;
|
|
1730
1733
|
} | undefined;
|
|
1731
1734
|
fetchOptions?: FetchOptions | undefined;
|
|
1732
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1735
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch185.BetterFetchResponse<{
|
|
1733
1736
|
user: {
|
|
1734
1737
|
id: string;
|
|
1735
1738
|
createdAt: Date;
|
|
@@ -1783,7 +1786,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1783
1786
|
statusText: string;
|
|
1784
1787
|
};
|
|
1785
1788
|
} | {
|
|
1786
|
-
data:
|
|
1789
|
+
data: jose6.JSONWebKeySet;
|
|
1787
1790
|
error: null;
|
|
1788
1791
|
}>;
|
|
1789
1792
|
} & {
|
|
@@ -1825,7 +1828,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1825
1828
|
organizationId: string;
|
|
1826
1829
|
email: string;
|
|
1827
1830
|
role: "admin" | "member" | "owner";
|
|
1828
|
-
status:
|
|
1831
|
+
status: better_auth_client31.InvitationStatus;
|
|
1829
1832
|
inviterId: string;
|
|
1830
1833
|
expiresAt: Date;
|
|
1831
1834
|
createdAt: Date;
|
|
@@ -1851,7 +1854,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1851
1854
|
organizationId: string;
|
|
1852
1855
|
email: string;
|
|
1853
1856
|
role: "admin" | "member" | "owner";
|
|
1854
|
-
status:
|
|
1857
|
+
status: better_auth_client31.InvitationStatus;
|
|
1855
1858
|
inviterId: string;
|
|
1856
1859
|
expiresAt: Date;
|
|
1857
1860
|
createdAt: Date;
|
|
@@ -1901,7 +1904,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1901
1904
|
}) => boolean;
|
|
1902
1905
|
};
|
|
1903
1906
|
} & {
|
|
1904
|
-
useSession:
|
|
1907
|
+
useSession: nanostores9.Atom<{
|
|
1905
1908
|
data: {
|
|
1906
1909
|
user: {
|
|
1907
1910
|
id: string;
|
|
@@ -1929,57 +1932,24 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1929
1932
|
activeOrganizationId?: string | null | undefined;
|
|
1930
1933
|
};
|
|
1931
1934
|
} | null;
|
|
1935
|
+
error: _better_fetch_fetch185.BetterFetchError | null;
|
|
1932
1936
|
isPending: boolean;
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
query?: better_auth302.SessionQueryParams;
|
|
1937
|
-
} | undefined) => Promise<void>;
|
|
1938
|
-
};
|
|
1939
|
-
$Infer: {
|
|
1940
|
-
Session: {
|
|
1941
|
-
user: {
|
|
1942
|
-
id: string;
|
|
1943
|
-
createdAt: Date;
|
|
1944
|
-
updatedAt: Date;
|
|
1945
|
-
email: string;
|
|
1946
|
-
emailVerified: boolean;
|
|
1947
|
-
name: string;
|
|
1948
|
-
image?: string | null | undefined;
|
|
1949
|
-
banned: boolean | null | undefined;
|
|
1950
|
-
role?: string | null | undefined;
|
|
1951
|
-
banReason?: string | null | undefined;
|
|
1952
|
-
banExpires?: Date | null | undefined;
|
|
1953
|
-
};
|
|
1954
|
-
session: {
|
|
1955
|
-
id: string;
|
|
1956
|
-
createdAt: Date;
|
|
1957
|
-
updatedAt: Date;
|
|
1958
|
-
userId: string;
|
|
1959
|
-
expiresAt: Date;
|
|
1960
|
-
token: string;
|
|
1961
|
-
ipAddress?: string | null | undefined;
|
|
1962
|
-
userAgent?: string | null | undefined;
|
|
1963
|
-
impersonatedBy?: string | null | undefined;
|
|
1964
|
-
activeOrganizationId?: string | null | undefined;
|
|
1965
|
-
};
|
|
1966
|
-
};
|
|
1967
|
-
};
|
|
1968
|
-
$fetch: _better_fetch_fetch177.BetterFetch<{
|
|
1969
|
-
plugins: (_better_fetch_fetch177.BetterFetchPlugin | {
|
|
1937
|
+
}>;
|
|
1938
|
+
$fetch: _better_fetch_fetch185.BetterFetch<{
|
|
1939
|
+
plugins: (_better_fetch_fetch185.BetterFetchPlugin | {
|
|
1970
1940
|
id: string;
|
|
1971
1941
|
name: string;
|
|
1972
1942
|
hooks: {
|
|
1973
|
-
onSuccess(context:
|
|
1943
|
+
onSuccess(context: _better_fetch_fetch185.SuccessContext<any>): void;
|
|
1974
1944
|
};
|
|
1975
1945
|
} | {
|
|
1976
1946
|
id: string;
|
|
1977
1947
|
name: string;
|
|
1978
1948
|
hooks: {
|
|
1979
|
-
onSuccess: ((context:
|
|
1980
|
-
onError: ((context:
|
|
1981
|
-
onRequest: (<T extends Record<string, any>>(context:
|
|
1982
|
-
onResponse: ((context:
|
|
1949
|
+
onSuccess: ((context: _better_fetch_fetch185.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
1950
|
+
onError: ((context: _better_fetch_fetch185.ErrorContext) => Promise<void> | void) | undefined;
|
|
1951
|
+
onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch185.RequestContext<T>) => Promise<_better_fetch_fetch185.RequestContext | void> | _better_fetch_fetch185.RequestContext | void) | undefined;
|
|
1952
|
+
onResponse: ((context: _better_fetch_fetch185.ResponseContext) => Promise<Response | void | _better_fetch_fetch185.ResponseContext> | Response | _better_fetch_fetch185.ResponseContext | void) | undefined;
|
|
1983
1953
|
};
|
|
1984
1954
|
})[];
|
|
1985
1955
|
cache?: RequestCache | undefined;
|
|
@@ -1999,12 +1969,12 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1999
1969
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
2000
1970
|
signal?: (AbortSignal | null) | undefined;
|
|
2001
1971
|
window?: null | undefined;
|
|
2002
|
-
onRetry?: ((response:
|
|
1972
|
+
onRetry?: ((response: _better_fetch_fetch185.ResponseContext) => Promise<void> | void) | undefined;
|
|
2003
1973
|
hookOptions?: {
|
|
2004
1974
|
cloneResponse?: boolean;
|
|
2005
1975
|
} | undefined;
|
|
2006
1976
|
timeout?: number | undefined;
|
|
2007
|
-
customFetchImpl:
|
|
1977
|
+
customFetchImpl: _better_fetch_fetch185.FetchEsque;
|
|
2008
1978
|
baseURL: string;
|
|
2009
1979
|
throw?: boolean | undefined;
|
|
2010
1980
|
auth?: ({
|
|
@@ -2024,17 +1994,46 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
2024
1994
|
params?: any;
|
|
2025
1995
|
duplex?: "full" | "half" | undefined;
|
|
2026
1996
|
jsonParser: (text: string) => Promise<any> | any;
|
|
2027
|
-
retry?:
|
|
1997
|
+
retry?: _better_fetch_fetch185.RetryOptions | undefined;
|
|
2028
1998
|
retryAttempt?: number | undefined;
|
|
2029
|
-
output?: (
|
|
2030
|
-
errorSchema?:
|
|
1999
|
+
output?: (_better_fetch_fetch185.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
2000
|
+
errorSchema?: _better_fetch_fetch185.StandardSchemaV1 | undefined;
|
|
2031
2001
|
disableValidation?: boolean | undefined;
|
|
2032
2002
|
disableSignal?: boolean | undefined;
|
|
2033
2003
|
}, unknown, unknown, {}>;
|
|
2034
2004
|
$store: {
|
|
2035
2005
|
notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
|
|
2036
2006
|
listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
|
|
2037
|
-
atoms: Record<string,
|
|
2007
|
+
atoms: Record<string, nanostores9.WritableAtom<any>>;
|
|
2008
|
+
};
|
|
2009
|
+
$Infer: {
|
|
2010
|
+
Session: {
|
|
2011
|
+
user: {
|
|
2012
|
+
id: string;
|
|
2013
|
+
createdAt: Date;
|
|
2014
|
+
updatedAt: Date;
|
|
2015
|
+
email: string;
|
|
2016
|
+
emailVerified: boolean;
|
|
2017
|
+
name: string;
|
|
2018
|
+
image?: string | null | undefined;
|
|
2019
|
+
banned: boolean | null | undefined;
|
|
2020
|
+
role?: string | null | undefined;
|
|
2021
|
+
banReason?: string | null | undefined;
|
|
2022
|
+
banExpires?: Date | null | undefined;
|
|
2023
|
+
};
|
|
2024
|
+
session: {
|
|
2025
|
+
id: string;
|
|
2026
|
+
createdAt: Date;
|
|
2027
|
+
updatedAt: Date;
|
|
2028
|
+
userId: string;
|
|
2029
|
+
expiresAt: Date;
|
|
2030
|
+
token: string;
|
|
2031
|
+
ipAddress?: string | null | undefined;
|
|
2032
|
+
userAgent?: string | null | undefined;
|
|
2033
|
+
impersonatedBy?: string | null | undefined;
|
|
2034
|
+
activeOrganizationId?: string | null | undefined;
|
|
2035
|
+
};
|
|
2036
|
+
};
|
|
2038
2037
|
};
|
|
2039
2038
|
$ERROR_CODES: {
|
|
2040
2039
|
readonly FAILED_TO_CREATE_USER: "Failed to create user";
|
|
@@ -2141,10 +2140,97 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
2141
2140
|
};
|
|
2142
2141
|
};
|
|
2143
2142
|
}
|
|
2144
|
-
/** Instance type for
|
|
2145
|
-
type
|
|
2143
|
+
/** Instance type for BetterAuthVanillaAdapter */
|
|
2144
|
+
type BetterAuthVanillaAdapterInstance = BetterAuthVanillaAdapterImpl;
|
|
2145
|
+
/** Builder type that creates adapter instances */
|
|
2146
|
+
type BetterAuthVanillaAdapterBuilder = (url: string) => BetterAuthVanillaAdapterInstance;
|
|
2147
|
+
/**
|
|
2148
|
+
* Factory function that returns an adapter builder.
|
|
2149
|
+
* The builder is called by createClient/createAuthClient with the URL.
|
|
2150
|
+
*
|
|
2151
|
+
* @param options - Optional adapter configuration (baseURL is injected separately)
|
|
2152
|
+
* @returns A builder function that creates the adapter instance
|
|
2153
|
+
*
|
|
2154
|
+
* @example
|
|
2155
|
+
* ```typescript
|
|
2156
|
+
* const client = createClient({
|
|
2157
|
+
* auth: {
|
|
2158
|
+
* url: 'https://auth.example.com',
|
|
2159
|
+
* adapter: BetterAuthVanillaAdapter(),
|
|
2160
|
+
* },
|
|
2161
|
+
* dataApi: { url: 'https://data-api.example.com' },
|
|
2162
|
+
* });
|
|
2163
|
+
* ```
|
|
2164
|
+
*/
|
|
2165
|
+
declare function BetterAuthVanillaAdapter(options?: BetterAuthVanillaAdapterOptions): BetterAuthVanillaAdapterBuilder;
|
|
2166
|
+
//#endregion
|
|
2167
|
+
//#region src/adapters/supabase/auth-interface.d.ts
|
|
2168
|
+
type _UpstreamAuthClientInstance = InstanceType<typeof AuthClient>;
|
|
2169
|
+
type _AuthClientBase = { [K in keyof _UpstreamAuthClientInstance as _UpstreamAuthClientInstance[K] extends never ? never : K]: _UpstreamAuthClientInstance[K] };
|
|
2170
|
+
type SupabaseAuthClientInterface = _AuthClientBase;
|
|
2171
|
+
//#endregion
|
|
2172
|
+
//#region src/adapters/supabase/supabase-adapter.d.ts
|
|
2173
|
+
type SupabaseAuthAdapterOptions = Omit<NeonAuthAdapterCoreAuthOptions, 'baseURL'>;
|
|
2174
|
+
/**
|
|
2175
|
+
* Internal implementation class - use SupabaseAuthAdapter factory function instead
|
|
2176
|
+
*/
|
|
2177
|
+
declare class SupabaseAuthAdapterImpl extends NeonAuthAdapterCore implements SupabaseAuthClientInterface {
|
|
2178
|
+
admin: SupabaseAuthClientInterface['admin'];
|
|
2179
|
+
mfa: SupabaseAuthClientInterface['mfa'];
|
|
2180
|
+
oauth: SupabaseAuthClientInterface['oauth'];
|
|
2181
|
+
private _betterAuth;
|
|
2182
|
+
private _stateChangeEmitters;
|
|
2183
|
+
constructor(betterAuthClientOptions: NeonAuthAdapterCoreAuthOptions);
|
|
2184
|
+
getBetterAuthInstance(): ReturnType<typeof createAuthClient<{
|
|
2185
|
+
plugins: SupportedBetterAuthClientPlugins;
|
|
2186
|
+
}>>;
|
|
2187
|
+
initialize: SupabaseAuthClientInterface['initialize'];
|
|
2188
|
+
getSession(options?: {
|
|
2189
|
+
forceFetch?: boolean;
|
|
2190
|
+
}): ReturnType<SupabaseAuthClientInterface['getSession']>;
|
|
2191
|
+
refreshSession: SupabaseAuthClientInterface['refreshSession'];
|
|
2192
|
+
setSession: SupabaseAuthClientInterface['setSession'];
|
|
2193
|
+
signUp: SupabaseAuthClientInterface['signUp'];
|
|
2194
|
+
signInAnonymously: SupabaseAuthClientInterface['signInAnonymously'];
|
|
2195
|
+
signInWithPassword: SupabaseAuthClientInterface['signInWithPassword'];
|
|
2196
|
+
signInWithOAuth: SupabaseAuthClientInterface['signInWithOAuth'];
|
|
2197
|
+
signInWithOtp: SupabaseAuthClientInterface['signInWithOtp'];
|
|
2198
|
+
signInWithIdToken: SupabaseAuthClientInterface['signInWithIdToken'];
|
|
2199
|
+
signInWithSSO: SupabaseAuthClientInterface['signInWithSSO'];
|
|
2200
|
+
signInWithWeb3: SupabaseAuthClientInterface['signInWithWeb3'];
|
|
2201
|
+
signOut: SupabaseAuthClientInterface['signOut'];
|
|
2202
|
+
getUser: SupabaseAuthClientInterface['getUser'];
|
|
2203
|
+
getClaims: (jwtArg?: string) => Promise<{
|
|
2204
|
+
data: {
|
|
2205
|
+
header: JwtHeader;
|
|
2206
|
+
claims: JwtPayload;
|
|
2207
|
+
signature: Uint8Array<ArrayBufferLike>;
|
|
2208
|
+
};
|
|
2209
|
+
error: null;
|
|
2210
|
+
} | {
|
|
2211
|
+
data: null;
|
|
2212
|
+
error: _supabase_auth_js0.AuthError;
|
|
2213
|
+
}>;
|
|
2214
|
+
updateUser: SupabaseAuthClientInterface['updateUser'];
|
|
2215
|
+
getUserIdentities: SupabaseAuthClientInterface['getUserIdentities'];
|
|
2216
|
+
linkIdentity: SupabaseAuthClientInterface['linkIdentity'];
|
|
2217
|
+
unlinkIdentity: SupabaseAuthClientInterface['unlinkIdentity'];
|
|
2218
|
+
verifyOtp: SupabaseAuthClientInterface['verifyOtp'];
|
|
2219
|
+
resetPasswordForEmail: SupabaseAuthClientInterface['resetPasswordForEmail'];
|
|
2220
|
+
reauthenticate: SupabaseAuthClientInterface['reauthenticate'];
|
|
2221
|
+
resend: SupabaseAuthClientInterface['resend'];
|
|
2222
|
+
exchangeCodeForSession: SupabaseAuthClientInterface['exchangeCodeForSession'];
|
|
2223
|
+
onAuthStateChange: SupabaseAuthClientInterface['onAuthStateChange'];
|
|
2224
|
+
isThrowOnErrorEnabled: SupabaseAuthClientInterface['isThrowOnErrorEnabled'];
|
|
2225
|
+
startAutoRefresh: SupabaseAuthClientInterface['startAutoRefresh'];
|
|
2226
|
+
stopAutoRefresh: SupabaseAuthClientInterface['stopAutoRefresh'];
|
|
2227
|
+
private verifyEmailOtp;
|
|
2228
|
+
private emitInitialSession;
|
|
2229
|
+
}
|
|
2230
|
+
/** Instance type for SupabaseAuthAdapter */
|
|
2231
|
+
type SupabaseAuthAdapterInstance = SupabaseAuthAdapterImpl;
|
|
2146
2232
|
/** Builder type that creates adapter instances */
|
|
2147
|
-
type
|
|
2233
|
+
type SupabaseAuthAdapterBuilder = (url: string) => SupabaseAuthAdapterInstance;
|
|
2148
2234
|
/**
|
|
2149
2235
|
* Factory function that returns an adapter builder.
|
|
2150
2236
|
* The builder is called by createClient/createAuthClient with the URL.
|
|
@@ -2157,12 +2243,12 @@ type BetterAuthReactAdapterBuilder = (url: string) => BetterAuthReactAdapterInst
|
|
|
2157
2243
|
* const client = createClient({
|
|
2158
2244
|
* auth: {
|
|
2159
2245
|
* url: 'https://auth.example.com',
|
|
2160
|
-
* adapter:
|
|
2246
|
+
* adapter: SupabaseAuthAdapter(),
|
|
2161
2247
|
* },
|
|
2162
2248
|
* dataApi: { url: 'https://data-api.example.com' },
|
|
2163
2249
|
* });
|
|
2164
2250
|
* ```
|
|
2165
2251
|
*/
|
|
2166
|
-
declare function
|
|
2252
|
+
declare function SupabaseAuthAdapter(options?: SupabaseAuthAdapterOptions): SupabaseAuthAdapterBuilder;
|
|
2167
2253
|
//#endregion
|
|
2168
|
-
export {
|
|
2254
|
+
export { BetterAuthVanillaAdapter as a, BetterAuthVanillaAdapterOptions as c, SupabaseAuthAdapterOptions as i, SupabaseAuthAdapterBuilder as n, BetterAuthVanillaAdapterBuilder as o, SupabaseAuthAdapterInstance as r, BetterAuthVanillaAdapterInstance as s, SupabaseAuthAdapter as t };
|