@neondatabase/auth 0.3.0-beta → 0.4.1-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -7
- package/codemods/migrate-auth-ui-imports.mjs +439 -0
- package/dist/{adapter-core-D00qcqMo.mjs → adapter-core-BFMM3lwe.mjs} +21 -11
- package/dist/{adapter-core-B9uDhoYq.d.mts → adapter-core-ClY-p_AI.d.mts} +325 -190
- package/dist/auth-interface-Clz-oWq1.d.mts +8 -0
- package/dist/better-auth-helpers-Bkezghej.mjs +541 -0
- package/dist/{better-auth-react-adapter-Xdj-69i9.mjs → better-auth-react-adapter-DZTZVVnk.mjs} +1 -1
- package/dist/{better-auth-react-adapter-BO4jLN4H.d.mts → better-auth-react-adapter-iJMZCLUI.d.mts} +388 -301
- package/dist/index.d.mts +5 -4
- package/dist/index.mjs +4 -3
- package/dist/{neon-auth-DBOB8sXF.mjs → neon-auth-VDrC3GwX.mjs} +1 -1
- package/dist/next/index.d.mts +144 -56
- package/dist/next/index.mjs +5 -4
- package/dist/next/server/index.d.mts +131 -14
- package/dist/next/server/index.mjs +402 -52
- package/dist/react/adapters/index.d.mts +3 -3
- package/dist/react/adapters/index.mjs +2 -2
- package/dist/react/index.d.mts +4 -4
- package/dist/react/index.mjs +2 -2
- package/dist/react/ui/index.d.mts +1 -1
- package/dist/{supabase-adapter-CIBMebXB.mjs → supabase-adapter-CAyBFrNn.mjs} +3 -514
- package/dist/{supabase-adapter-CSDRL1ZU.d.mts → supabase-adapter-cuLnmLDs.d.mts} +390 -303
- package/dist/types/index.d.mts +2 -2
- package/dist/vanilla/adapters/index.d.mts +4 -3
- package/dist/vanilla/adapters/index.mjs +2 -2
- package/dist/vanilla/index.d.mts +4 -3
- package/dist/vanilla/index.mjs +2 -2
- package/llms.txt +2 -2
- package/package.json +6 -2
- package/dist/constants-Cupc_bln.mjs +0 -28
- /package/dist/{index-CPnFzULh.d.mts → index-B0Pd4HOH.d.mts} +0 -0
- /package/dist/{index-UW23fDSn.d.mts → index-CzpoWrv9.d.mts} +0 -0
- /package/dist/{index-B_Q0Tp1D.d.mts → index-DHryUj7e.d.mts} +0 -0
package/dist/{better-auth-react-adapter-BO4jLN4H.d.mts → better-auth-react-adapter-iJMZCLUI.d.mts}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as NeonAuthAdapterCoreAuthOptions, t as NeonAuthAdapterCore } from "./adapter-core-
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
1
|
+
import { n as NeonAuthAdapterCoreAuthOptions, t as NeonAuthAdapterCore } from "./adapter-core-ClY-p_AI.mjs";
|
|
2
|
+
import * as better_auth_react2 from "better-auth/react";
|
|
3
|
+
import * as jose1 from "jose";
|
|
4
|
+
import * as better_auth_plugins43 from "better-auth/plugins";
|
|
5
|
+
import * as better_auth307 from "better-auth";
|
|
6
|
+
import * as _better_fetch_fetch179 from "@better-fetch/fetch";
|
|
7
7
|
|
|
8
8
|
//#region src/adapters/better-auth-react/better-auth-react-adapter.d.ts
|
|
9
9
|
type BetterAuthReactAdapterOptions = Omit<NeonAuthAdapterCoreAuthOptions, 'baseURL'>;
|
|
@@ -15,7 +15,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
15
15
|
constructor(betterAuthClientOptions: NeonAuthAdapterCoreAuthOptions);
|
|
16
16
|
getBetterAuthInstance(): {
|
|
17
17
|
useActiveOrganization: () => {
|
|
18
|
-
data:
|
|
18
|
+
data: better_auth307.Prettify<{
|
|
19
19
|
id: string;
|
|
20
20
|
name: string;
|
|
21
21
|
slug: string;
|
|
@@ -41,17 +41,17 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
41
41
|
organizationId: string;
|
|
42
42
|
email: string;
|
|
43
43
|
role: "admin" | "member" | "owner";
|
|
44
|
-
status:
|
|
44
|
+
status: better_auth_plugins43.InvitationStatus;
|
|
45
45
|
inviterId: string;
|
|
46
46
|
expiresAt: Date;
|
|
47
47
|
createdAt: Date;
|
|
48
48
|
}[];
|
|
49
49
|
}> | null;
|
|
50
|
-
error: null |
|
|
50
|
+
error: null | _better_fetch_fetch179.BetterFetchError;
|
|
51
51
|
isPending: boolean;
|
|
52
52
|
isRefetching: boolean;
|
|
53
53
|
refetch: (queryParams?: {
|
|
54
|
-
query?:
|
|
54
|
+
query?: better_auth307.SessionQueryParams;
|
|
55
55
|
} | undefined) => Promise<void>;
|
|
56
56
|
};
|
|
57
57
|
useListOrganizations: () => {
|
|
@@ -63,11 +63,11 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
63
63
|
logo?: string | null | undefined | undefined;
|
|
64
64
|
metadata?: any;
|
|
65
65
|
}[] | null;
|
|
66
|
-
error: null |
|
|
66
|
+
error: null | _better_fetch_fetch179.BetterFetchError;
|
|
67
67
|
isPending: boolean;
|
|
68
68
|
isRefetching: boolean;
|
|
69
69
|
refetch: (queryParams?: {
|
|
70
|
-
query?:
|
|
70
|
+
query?: better_auth307.SessionQueryParams;
|
|
71
71
|
} | undefined) => Promise<void>;
|
|
72
72
|
};
|
|
73
73
|
useActiveMember: () => {
|
|
@@ -78,29 +78,29 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
78
78
|
role: string;
|
|
79
79
|
createdAt: Date;
|
|
80
80
|
} | null;
|
|
81
|
-
error: null |
|
|
81
|
+
error: null | _better_fetch_fetch179.BetterFetchError;
|
|
82
82
|
isPending: boolean;
|
|
83
83
|
isRefetching: boolean;
|
|
84
84
|
refetch: (queryParams?: {
|
|
85
|
-
query?:
|
|
85
|
+
query?: better_auth307.SessionQueryParams;
|
|
86
86
|
} | undefined) => Promise<void>;
|
|
87
87
|
};
|
|
88
88
|
useActiveMemberRole: () => {
|
|
89
89
|
data: {
|
|
90
90
|
role: string;
|
|
91
91
|
} | null;
|
|
92
|
-
error: null |
|
|
92
|
+
error: null | _better_fetch_fetch179.BetterFetchError;
|
|
93
93
|
isPending: boolean;
|
|
94
94
|
isRefetching: boolean;
|
|
95
95
|
refetch: (queryParams?: {
|
|
96
|
-
query?:
|
|
96
|
+
query?: better_auth307.SessionQueryParams;
|
|
97
97
|
} | undefined) => Promise<void>;
|
|
98
98
|
};
|
|
99
99
|
} & {
|
|
100
|
-
token: <FetchOptions extends
|
|
100
|
+
token: <FetchOptions extends better_auth307.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth307.Prettify<{
|
|
101
101
|
query?: Record<string, any> | undefined;
|
|
102
102
|
fetchOptions?: FetchOptions | undefined;
|
|
103
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
103
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
104
104
|
token: string;
|
|
105
105
|
}, {
|
|
106
106
|
code?: string | undefined;
|
|
@@ -108,16 +108,16 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
108
108
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
109
109
|
} & {
|
|
110
110
|
admin: {
|
|
111
|
-
setRole: <FetchOptions extends
|
|
111
|
+
setRole: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
112
112
|
userId: string;
|
|
113
113
|
role: "user" | "admin" | ("user" | "admin")[];
|
|
114
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
114
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
115
115
|
userId: string;
|
|
116
116
|
role: "user" | "admin" | ("user" | "admin")[];
|
|
117
117
|
} & {
|
|
118
118
|
fetchOptions?: FetchOptions | undefined;
|
|
119
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
120
|
-
user:
|
|
119
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
120
|
+
user: better_auth_plugins43.UserWithRole;
|
|
121
121
|
}, {
|
|
122
122
|
code?: string | undefined;
|
|
123
123
|
message?: string | undefined;
|
|
@@ -125,44 +125,36 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
125
125
|
};
|
|
126
126
|
} & {
|
|
127
127
|
admin: {
|
|
128
|
-
getUser: <FetchOptions extends
|
|
128
|
+
getUser: <FetchOptions extends better_auth307.ClientFetchOption<never, Partial<{
|
|
129
129
|
id: string;
|
|
130
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
130
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
131
131
|
query: {
|
|
132
132
|
id: string;
|
|
133
133
|
};
|
|
134
134
|
fetchOptions?: FetchOptions | undefined;
|
|
135
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
136
|
-
id: string;
|
|
137
|
-
createdAt: Date;
|
|
138
|
-
updatedAt: Date;
|
|
139
|
-
email: string;
|
|
140
|
-
emailVerified: boolean;
|
|
141
|
-
name: string;
|
|
142
|
-
image?: string | null | undefined;
|
|
143
|
-
}, {
|
|
135
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<better_auth_plugins43.UserWithRole, {
|
|
144
136
|
code?: string | undefined;
|
|
145
137
|
message?: string | undefined;
|
|
146
138
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
147
139
|
};
|
|
148
140
|
} & {
|
|
149
141
|
admin: {
|
|
150
|
-
createUser: <FetchOptions extends
|
|
142
|
+
createUser: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
151
143
|
email: string;
|
|
152
|
-
password
|
|
144
|
+
password?: string | undefined;
|
|
153
145
|
name: string;
|
|
154
146
|
role?: "user" | "admin" | ("user" | "admin")[] | undefined;
|
|
155
147
|
data?: Record<string, any> | undefined;
|
|
156
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
148
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
157
149
|
email: string;
|
|
158
|
-
password
|
|
150
|
+
password?: string | undefined;
|
|
159
151
|
name: string;
|
|
160
152
|
role?: "user" | "admin" | ("user" | "admin")[] | undefined;
|
|
161
153
|
data?: Record<string, any> | undefined;
|
|
162
154
|
} & {
|
|
163
155
|
fetchOptions?: FetchOptions | undefined;
|
|
164
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
165
|
-
user:
|
|
156
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
157
|
+
user: better_auth_plugins43.UserWithRole;
|
|
166
158
|
}, {
|
|
167
159
|
code?: string | undefined;
|
|
168
160
|
message?: string | undefined;
|
|
@@ -170,22 +162,22 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
170
162
|
};
|
|
171
163
|
} & {
|
|
172
164
|
admin: {
|
|
173
|
-
updateUser: <FetchOptions extends
|
|
165
|
+
updateUser: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
174
166
|
userId: unknown;
|
|
175
167
|
data: Record<any, any>;
|
|
176
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
168
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
177
169
|
userId: unknown;
|
|
178
170
|
data: Record<any, any>;
|
|
179
171
|
} & {
|
|
180
172
|
fetchOptions?: FetchOptions | undefined;
|
|
181
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
173
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<better_auth_plugins43.UserWithRole, {
|
|
182
174
|
code?: string | undefined;
|
|
183
175
|
message?: string | undefined;
|
|
184
176
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
185
177
|
};
|
|
186
178
|
} & {
|
|
187
179
|
admin: {
|
|
188
|
-
listUsers: <FetchOptions extends
|
|
180
|
+
listUsers: <FetchOptions extends better_auth307.ClientFetchOption<never, Partial<{
|
|
189
181
|
searchValue?: string | undefined;
|
|
190
182
|
searchField?: "email" | "name" | undefined;
|
|
191
183
|
searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
|
|
@@ -196,7 +188,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
196
188
|
filterField?: string | undefined;
|
|
197
189
|
filterValue?: string | number | boolean | undefined;
|
|
198
190
|
filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
|
|
199
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
191
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
200
192
|
query: {
|
|
201
193
|
searchValue?: string | undefined;
|
|
202
194
|
searchField?: "email" | "name" | undefined;
|
|
@@ -210,8 +202,8 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
210
202
|
filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
|
|
211
203
|
};
|
|
212
204
|
fetchOptions?: FetchOptions | undefined;
|
|
213
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
214
|
-
users:
|
|
205
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<NonNullable<{
|
|
206
|
+
users: better_auth_plugins43.UserWithRole[];
|
|
215
207
|
total: number;
|
|
216
208
|
limit: number | undefined;
|
|
217
209
|
offset: number | undefined;
|
|
@@ -225,14 +217,14 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
225
217
|
};
|
|
226
218
|
} & {
|
|
227
219
|
admin: {
|
|
228
|
-
listUserSessions: <FetchOptions extends
|
|
220
|
+
listUserSessions: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
229
221
|
userId: unknown;
|
|
230
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
222
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
231
223
|
userId: unknown;
|
|
232
224
|
} & {
|
|
233
225
|
fetchOptions?: FetchOptions | undefined;
|
|
234
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
235
|
-
sessions:
|
|
226
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
227
|
+
sessions: better_auth_plugins43.SessionWithImpersonatedBy[];
|
|
236
228
|
}, {
|
|
237
229
|
code?: string | undefined;
|
|
238
230
|
message?: string | undefined;
|
|
@@ -240,22 +232,14 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
240
232
|
};
|
|
241
233
|
} & {
|
|
242
234
|
admin: {
|
|
243
|
-
unbanUser: <FetchOptions extends
|
|
235
|
+
unbanUser: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
244
236
|
userId: unknown;
|
|
245
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
237
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
246
238
|
userId: unknown;
|
|
247
239
|
} & {
|
|
248
240
|
fetchOptions?: FetchOptions | undefined;
|
|
249
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
250
|
-
user:
|
|
251
|
-
id: string;
|
|
252
|
-
createdAt: Date;
|
|
253
|
-
updatedAt: Date;
|
|
254
|
-
email: string;
|
|
255
|
-
emailVerified: boolean;
|
|
256
|
-
name: string;
|
|
257
|
-
image?: string | null | undefined;
|
|
258
|
-
} & Record<string, any>;
|
|
241
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
242
|
+
user: better_auth_plugins43.UserWithRole;
|
|
259
243
|
}, {
|
|
260
244
|
code?: string | undefined;
|
|
261
245
|
message?: string | undefined;
|
|
@@ -263,26 +247,18 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
263
247
|
};
|
|
264
248
|
} & {
|
|
265
249
|
admin: {
|
|
266
|
-
banUser: <FetchOptions extends
|
|
250
|
+
banUser: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
267
251
|
userId: unknown;
|
|
268
252
|
banReason?: string | undefined;
|
|
269
253
|
banExpiresIn?: number | undefined;
|
|
270
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
254
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
271
255
|
userId: unknown;
|
|
272
256
|
banReason?: string | undefined;
|
|
273
257
|
banExpiresIn?: number | undefined;
|
|
274
258
|
} & {
|
|
275
259
|
fetchOptions?: FetchOptions | undefined;
|
|
276
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
277
|
-
user:
|
|
278
|
-
id: string;
|
|
279
|
-
createdAt: Date;
|
|
280
|
-
updatedAt: Date;
|
|
281
|
-
email: string;
|
|
282
|
-
emailVerified: boolean;
|
|
283
|
-
name: string;
|
|
284
|
-
image?: string | null | undefined;
|
|
285
|
-
} & Record<string, any>;
|
|
260
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
261
|
+
user: better_auth_plugins43.UserWithRole;
|
|
286
262
|
}, {
|
|
287
263
|
code?: string | undefined;
|
|
288
264
|
message?: string | undefined;
|
|
@@ -290,13 +266,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
290
266
|
};
|
|
291
267
|
} & {
|
|
292
268
|
admin: {
|
|
293
|
-
impersonateUser: <FetchOptions extends
|
|
269
|
+
impersonateUser: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
294
270
|
userId: unknown;
|
|
295
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
271
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
296
272
|
userId: unknown;
|
|
297
273
|
} & {
|
|
298
274
|
fetchOptions?: FetchOptions | undefined;
|
|
299
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
275
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
300
276
|
session: {
|
|
301
277
|
id: string;
|
|
302
278
|
createdAt: Date;
|
|
@@ -307,7 +283,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
307
283
|
ipAddress?: string | null | undefined;
|
|
308
284
|
userAgent?: string | null | undefined;
|
|
309
285
|
};
|
|
310
|
-
user:
|
|
286
|
+
user: better_auth_plugins43.UserWithRole;
|
|
311
287
|
}, {
|
|
312
288
|
code?: string | undefined;
|
|
313
289
|
message?: string | undefined;
|
|
@@ -315,12 +291,29 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
315
291
|
};
|
|
316
292
|
} & {
|
|
317
293
|
admin: {
|
|
318
|
-
stopImpersonating: <FetchOptions extends
|
|
294
|
+
stopImpersonating: <FetchOptions extends better_auth307.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth307.Prettify<{
|
|
319
295
|
query?: Record<string, any> | undefined;
|
|
320
296
|
fetchOptions?: FetchOptions | undefined;
|
|
321
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
322
|
-
session:
|
|
323
|
-
|
|
297
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
298
|
+
session: {
|
|
299
|
+
id: string;
|
|
300
|
+
createdAt: Date;
|
|
301
|
+
updatedAt: Date;
|
|
302
|
+
userId: string;
|
|
303
|
+
expiresAt: Date;
|
|
304
|
+
token: string;
|
|
305
|
+
ipAddress?: string | null | undefined;
|
|
306
|
+
userAgent?: string | null | undefined;
|
|
307
|
+
} & Record<string, any>;
|
|
308
|
+
user: {
|
|
309
|
+
id: string;
|
|
310
|
+
createdAt: Date;
|
|
311
|
+
updatedAt: Date;
|
|
312
|
+
email: string;
|
|
313
|
+
emailVerified: boolean;
|
|
314
|
+
name: string;
|
|
315
|
+
image?: string | null | undefined;
|
|
316
|
+
} & Record<string, any>;
|
|
324
317
|
}, {
|
|
325
318
|
code?: string | undefined;
|
|
326
319
|
message?: string | undefined;
|
|
@@ -328,13 +321,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
328
321
|
};
|
|
329
322
|
} & {
|
|
330
323
|
admin: {
|
|
331
|
-
revokeUserSession: <FetchOptions extends
|
|
324
|
+
revokeUserSession: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
332
325
|
sessionToken: string;
|
|
333
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
326
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
334
327
|
sessionToken: string;
|
|
335
328
|
} & {
|
|
336
329
|
fetchOptions?: FetchOptions | undefined;
|
|
337
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
330
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
338
331
|
success: boolean;
|
|
339
332
|
}, {
|
|
340
333
|
code?: string | undefined;
|
|
@@ -343,13 +336,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
343
336
|
};
|
|
344
337
|
} & {
|
|
345
338
|
admin: {
|
|
346
|
-
revokeUserSessions: <FetchOptions extends
|
|
339
|
+
revokeUserSessions: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
347
340
|
userId: unknown;
|
|
348
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
341
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
349
342
|
userId: unknown;
|
|
350
343
|
} & {
|
|
351
344
|
fetchOptions?: FetchOptions | undefined;
|
|
352
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
345
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
353
346
|
success: boolean;
|
|
354
347
|
}, {
|
|
355
348
|
code?: string | undefined;
|
|
@@ -358,13 +351,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
358
351
|
};
|
|
359
352
|
} & {
|
|
360
353
|
admin: {
|
|
361
|
-
removeUser: <FetchOptions extends
|
|
354
|
+
removeUser: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
362
355
|
userId: unknown;
|
|
363
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
356
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
364
357
|
userId: unknown;
|
|
365
358
|
} & {
|
|
366
359
|
fetchOptions?: FetchOptions | undefined;
|
|
367
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
360
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
368
361
|
success: boolean;
|
|
369
362
|
}, {
|
|
370
363
|
code?: string | undefined;
|
|
@@ -373,15 +366,15 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
373
366
|
};
|
|
374
367
|
} & {
|
|
375
368
|
admin: {
|
|
376
|
-
setUserPassword: <FetchOptions extends
|
|
369
|
+
setUserPassword: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
377
370
|
newPassword: string;
|
|
378
371
|
userId: unknown;
|
|
379
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
372
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
380
373
|
newPassword: string;
|
|
381
374
|
userId: unknown;
|
|
382
375
|
} & {
|
|
383
376
|
fetchOptions?: FetchOptions | undefined;
|
|
384
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
377
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
385
378
|
status: boolean;
|
|
386
379
|
}, {
|
|
387
380
|
code?: string | undefined;
|
|
@@ -390,7 +383,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
390
383
|
};
|
|
391
384
|
} & {
|
|
392
385
|
admin: {
|
|
393
|
-
hasPermission: <FetchOptions extends
|
|
386
|
+
hasPermission: <FetchOptions extends better_auth307.ClientFetchOption<Partial<({
|
|
394
387
|
permission: {
|
|
395
388
|
readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
396
389
|
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
@@ -405,7 +398,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
405
398
|
}) & {
|
|
406
399
|
userId?: string | undefined;
|
|
407
400
|
role?: "user" | "admin" | undefined;
|
|
408
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
401
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<(({
|
|
409
402
|
permission: {
|
|
410
403
|
readonly user?: ("get" | "delete" | "create" | "list" | "set-role" | "ban" | "impersonate" | "set-password" | "update")[] | undefined;
|
|
411
404
|
readonly session?: ("delete" | "list" | "revoke")[] | undefined;
|
|
@@ -422,7 +415,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
422
415
|
role?: "user" | "admin" | undefined;
|
|
423
416
|
}) & {
|
|
424
417
|
fetchOptions?: FetchOptions | undefined;
|
|
425
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
418
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
426
419
|
error: null;
|
|
427
420
|
success: boolean;
|
|
428
421
|
}, {
|
|
@@ -432,14 +425,14 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
432
425
|
};
|
|
433
426
|
} & {
|
|
434
427
|
organization: {
|
|
435
|
-
create: <FetchOptions extends
|
|
428
|
+
create: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
436
429
|
name: string;
|
|
437
430
|
slug: string;
|
|
438
431
|
userId?: string | undefined;
|
|
439
432
|
logo?: string | undefined;
|
|
440
433
|
metadata?: Record<string, any> | undefined;
|
|
441
434
|
keepCurrentActiveOrganization?: boolean | undefined;
|
|
442
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
435
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
443
436
|
name: string;
|
|
444
437
|
slug: string;
|
|
445
438
|
userId?: string | undefined;
|
|
@@ -448,7 +441,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
448
441
|
keepCurrentActiveOrganization?: boolean | undefined;
|
|
449
442
|
} & {
|
|
450
443
|
fetchOptions?: FetchOptions | undefined;
|
|
451
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
444
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
452
445
|
id: string;
|
|
453
446
|
name: string;
|
|
454
447
|
slug: string;
|
|
@@ -471,7 +464,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
471
464
|
};
|
|
472
465
|
} & {
|
|
473
466
|
organization: {
|
|
474
|
-
update: <FetchOptions extends
|
|
467
|
+
update: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
475
468
|
data: {
|
|
476
469
|
name?: string | undefined;
|
|
477
470
|
slug?: string | undefined;
|
|
@@ -479,7 +472,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
479
472
|
metadata?: Record<string, any> | undefined;
|
|
480
473
|
} & Partial<{}>;
|
|
481
474
|
organizationId?: string | undefined;
|
|
482
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
475
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
483
476
|
data: {
|
|
484
477
|
name?: string | undefined;
|
|
485
478
|
slug?: string | undefined;
|
|
@@ -489,15 +482,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
489
482
|
organizationId?: string | undefined;
|
|
490
483
|
} & {
|
|
491
484
|
fetchOptions?: FetchOptions | undefined;
|
|
492
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
485
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
493
486
|
id: string;
|
|
494
487
|
name: string;
|
|
495
488
|
slug: string;
|
|
496
489
|
createdAt: Date;
|
|
497
490
|
logo?: string | null | undefined | undefined;
|
|
498
491
|
metadata?: any;
|
|
499
|
-
} & {
|
|
500
|
-
metadata: Record<string, any> | undefined;
|
|
501
492
|
}, {
|
|
502
493
|
code?: string | undefined;
|
|
503
494
|
message?: string | undefined;
|
|
@@ -505,13 +496,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
505
496
|
};
|
|
506
497
|
} & {
|
|
507
498
|
organization: {
|
|
508
|
-
delete: <FetchOptions extends
|
|
499
|
+
delete: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
509
500
|
organizationId: string;
|
|
510
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
501
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
511
502
|
organizationId: string;
|
|
512
503
|
} & {
|
|
513
504
|
fetchOptions?: FetchOptions | undefined;
|
|
514
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
505
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
515
506
|
id: string;
|
|
516
507
|
name: string;
|
|
517
508
|
slug: string;
|
|
@@ -525,15 +516,15 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
525
516
|
};
|
|
526
517
|
} & {
|
|
527
518
|
organization: {
|
|
528
|
-
setActive: <FetchOptions extends
|
|
519
|
+
setActive: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
529
520
|
organizationId?: string | null | undefined;
|
|
530
521
|
organizationSlug?: string | undefined;
|
|
531
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
522
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth307.Prettify<{
|
|
532
523
|
organizationId?: string | null | undefined;
|
|
533
524
|
organizationSlug?: string | undefined;
|
|
534
525
|
} & {
|
|
535
526
|
fetchOptions?: FetchOptions | undefined;
|
|
536
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
527
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
537
528
|
members: {
|
|
538
529
|
id: string;
|
|
539
530
|
organizationId: string;
|
|
@@ -552,7 +543,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
552
543
|
organizationId: string;
|
|
553
544
|
email: string;
|
|
554
545
|
role: "admin" | "member" | "owner";
|
|
555
|
-
status:
|
|
546
|
+
status: better_auth_plugins43.InvitationStatus;
|
|
556
547
|
inviterId: string;
|
|
557
548
|
expiresAt: Date;
|
|
558
549
|
createdAt: Date;
|
|
@@ -571,18 +562,18 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
571
562
|
};
|
|
572
563
|
} & {
|
|
573
564
|
organization: {
|
|
574
|
-
getFullOrganization: <FetchOptions extends
|
|
565
|
+
getFullOrganization: <FetchOptions extends better_auth307.ClientFetchOption<never, Partial<{
|
|
575
566
|
organizationId?: string | undefined;
|
|
576
567
|
organizationSlug?: string | undefined;
|
|
577
568
|
membersLimit?: string | number | undefined;
|
|
578
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
569
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth307.Prettify<{
|
|
579
570
|
query?: {
|
|
580
571
|
organizationId?: string | undefined;
|
|
581
572
|
organizationSlug?: string | undefined;
|
|
582
573
|
membersLimit?: string | number | undefined;
|
|
583
574
|
} | undefined;
|
|
584
575
|
fetchOptions?: FetchOptions | undefined;
|
|
585
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
576
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
586
577
|
members: {
|
|
587
578
|
id: string;
|
|
588
579
|
organizationId: string;
|
|
@@ -601,7 +592,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
601
592
|
organizationId: string;
|
|
602
593
|
email: string;
|
|
603
594
|
role: "admin" | "member" | "owner";
|
|
604
|
-
status:
|
|
595
|
+
status: better_auth_plugins43.InvitationStatus;
|
|
605
596
|
inviterId: string;
|
|
606
597
|
expiresAt: Date;
|
|
607
598
|
createdAt: Date;
|
|
@@ -620,10 +611,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
620
611
|
};
|
|
621
612
|
} & {
|
|
622
613
|
organization: {
|
|
623
|
-
list: <FetchOptions extends
|
|
614
|
+
list: <FetchOptions extends better_auth307.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth307.Prettify<{
|
|
624
615
|
query?: Record<string, any> | undefined;
|
|
625
616
|
fetchOptions?: FetchOptions | undefined;
|
|
626
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
617
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
627
618
|
id: string;
|
|
628
619
|
name: string;
|
|
629
620
|
slug: string;
|
|
@@ -637,46 +628,55 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
637
628
|
};
|
|
638
629
|
} & {
|
|
639
630
|
organization: {
|
|
640
|
-
inviteMember: <FetchOptions extends
|
|
631
|
+
inviteMember: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
641
632
|
email: string;
|
|
642
633
|
role: "admin" | "member" | "owner" | ("admin" | "member" | "owner")[];
|
|
643
634
|
organizationId?: string | undefined;
|
|
644
635
|
resend?: boolean | undefined;
|
|
645
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
636
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
646
637
|
email: string;
|
|
647
638
|
role: "admin" | "member" | "owner" | ("admin" | "member" | "owner")[];
|
|
648
639
|
organizationId?: string | undefined;
|
|
649
640
|
resend?: boolean | undefined;
|
|
650
641
|
} & {
|
|
651
642
|
fetchOptions?: FetchOptions | undefined;
|
|
652
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
643
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<NonNullable<{
|
|
653
644
|
id: string;
|
|
654
645
|
organizationId: string;
|
|
655
646
|
email: string;
|
|
656
647
|
role: "admin" | "member" | "owner";
|
|
657
|
-
status:
|
|
648
|
+
status: better_auth_plugins43.InvitationStatus;
|
|
658
649
|
inviterId: string;
|
|
659
650
|
expiresAt: Date;
|
|
660
651
|
createdAt: Date;
|
|
661
|
-
}
|
|
652
|
+
} | {
|
|
653
|
+
id: string;
|
|
654
|
+
organizationId: string;
|
|
655
|
+
email: string;
|
|
656
|
+
role: "admin" | "member" | "owner";
|
|
657
|
+
status: better_auth_plugins43.InvitationStatus;
|
|
658
|
+
inviterId: string;
|
|
659
|
+
expiresAt: Date;
|
|
660
|
+
createdAt: Date;
|
|
661
|
+
}>, {
|
|
662
662
|
code?: string | undefined;
|
|
663
663
|
message?: string | undefined;
|
|
664
664
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
665
665
|
};
|
|
666
666
|
} & {
|
|
667
667
|
organization: {
|
|
668
|
-
cancelInvitation: <FetchOptions extends
|
|
668
|
+
cancelInvitation: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
669
669
|
invitationId: string;
|
|
670
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
670
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
671
671
|
invitationId: string;
|
|
672
672
|
} & {
|
|
673
673
|
fetchOptions?: FetchOptions | undefined;
|
|
674
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
674
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
675
675
|
id: string;
|
|
676
676
|
organizationId: string;
|
|
677
677
|
email: string;
|
|
678
678
|
role: "admin" | "member" | "owner";
|
|
679
|
-
status:
|
|
679
|
+
status: better_auth_plugins43.InvitationStatus;
|
|
680
680
|
inviterId: string;
|
|
681
681
|
expiresAt: Date;
|
|
682
682
|
createdAt: Date;
|
|
@@ -687,19 +687,19 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
687
687
|
};
|
|
688
688
|
} & {
|
|
689
689
|
organization: {
|
|
690
|
-
acceptInvitation: <FetchOptions extends
|
|
690
|
+
acceptInvitation: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
691
691
|
invitationId: string;
|
|
692
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
692
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
693
693
|
invitationId: string;
|
|
694
694
|
} & {
|
|
695
695
|
fetchOptions?: FetchOptions | undefined;
|
|
696
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
696
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
697
697
|
invitation: {
|
|
698
698
|
id: string;
|
|
699
699
|
organizationId: string;
|
|
700
700
|
email: string;
|
|
701
701
|
role: "admin" | "member" | "owner";
|
|
702
|
-
status:
|
|
702
|
+
status: better_auth_plugins43.InvitationStatus;
|
|
703
703
|
inviterId: string;
|
|
704
704
|
expiresAt: Date;
|
|
705
705
|
createdAt: Date;
|
|
@@ -718,19 +718,19 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
718
718
|
};
|
|
719
719
|
} & {
|
|
720
720
|
organization: {
|
|
721
|
-
getInvitation: <FetchOptions extends
|
|
721
|
+
getInvitation: <FetchOptions extends better_auth307.ClientFetchOption<never, Partial<{
|
|
722
722
|
id: string;
|
|
723
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
723
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
724
724
|
query: {
|
|
725
725
|
id: string;
|
|
726
726
|
};
|
|
727
727
|
fetchOptions?: FetchOptions | undefined;
|
|
728
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
728
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<NonNullable<{
|
|
729
729
|
id: string;
|
|
730
730
|
organizationId: string;
|
|
731
731
|
email: string;
|
|
732
732
|
role: "admin" | "member" | "owner";
|
|
733
|
-
status:
|
|
733
|
+
status: better_auth_plugins43.InvitationStatus;
|
|
734
734
|
inviterId: string;
|
|
735
735
|
expiresAt: Date;
|
|
736
736
|
createdAt: Date;
|
|
@@ -745,19 +745,19 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
745
745
|
};
|
|
746
746
|
} & {
|
|
747
747
|
organization: {
|
|
748
|
-
rejectInvitation: <FetchOptions extends
|
|
748
|
+
rejectInvitation: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
749
749
|
invitationId: string;
|
|
750
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
750
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
751
751
|
invitationId: string;
|
|
752
752
|
} & {
|
|
753
753
|
fetchOptions?: FetchOptions | undefined;
|
|
754
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
754
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
755
755
|
invitation: {
|
|
756
756
|
id: string;
|
|
757
757
|
organizationId: string;
|
|
758
758
|
email: string;
|
|
759
759
|
role: "member" | "admin" | "owner";
|
|
760
|
-
status:
|
|
760
|
+
status: better_auth_plugins43.InvitationStatus;
|
|
761
761
|
inviterId: string;
|
|
762
762
|
expiresAt: Date;
|
|
763
763
|
createdAt: Date;
|
|
@@ -770,19 +770,19 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
770
770
|
};
|
|
771
771
|
} & {
|
|
772
772
|
organization: {
|
|
773
|
-
listInvitations: <FetchOptions extends
|
|
773
|
+
listInvitations: <FetchOptions extends better_auth307.ClientFetchOption<never, Partial<{
|
|
774
774
|
organizationId?: string | undefined;
|
|
775
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
775
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth307.Prettify<{
|
|
776
776
|
query?: {
|
|
777
777
|
organizationId?: string | undefined;
|
|
778
778
|
} | undefined;
|
|
779
779
|
fetchOptions?: FetchOptions | undefined;
|
|
780
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
780
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
781
781
|
id: string;
|
|
782
782
|
organizationId: string;
|
|
783
783
|
email: string;
|
|
784
784
|
role: "admin" | "member" | "owner";
|
|
785
|
-
status:
|
|
785
|
+
status: better_auth_plugins43.InvitationStatus;
|
|
786
786
|
inviterId: string;
|
|
787
787
|
expiresAt: Date;
|
|
788
788
|
createdAt: Date;
|
|
@@ -793,10 +793,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
793
793
|
};
|
|
794
794
|
} & {
|
|
795
795
|
organization: {
|
|
796
|
-
getActiveMember: <FetchOptions extends
|
|
796
|
+
getActiveMember: <FetchOptions extends better_auth307.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth307.Prettify<{
|
|
797
797
|
query?: Record<string, any> | undefined;
|
|
798
798
|
fetchOptions?: FetchOptions | undefined;
|
|
799
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
799
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<Omit<{
|
|
800
800
|
id: string;
|
|
801
801
|
organizationId: string;
|
|
802
802
|
role: "admin" | "member" | "owner";
|
|
@@ -809,7 +809,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
809
809
|
image?: string | undefined;
|
|
810
810
|
};
|
|
811
811
|
} & {
|
|
812
|
-
user:
|
|
812
|
+
user: better_auth307.User;
|
|
813
813
|
}, "user"> & {
|
|
814
814
|
user: {
|
|
815
815
|
id: string;
|
|
@@ -824,13 +824,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
824
824
|
};
|
|
825
825
|
} & {
|
|
826
826
|
organization: {
|
|
827
|
-
checkSlug: <FetchOptions extends
|
|
827
|
+
checkSlug: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
828
828
|
slug: string;
|
|
829
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
829
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
830
830
|
slug: string;
|
|
831
831
|
} & {
|
|
832
832
|
fetchOptions?: FetchOptions | undefined;
|
|
833
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
833
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
834
834
|
status: boolean;
|
|
835
835
|
}, {
|
|
836
836
|
code?: string | undefined;
|
|
@@ -839,15 +839,15 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
839
839
|
};
|
|
840
840
|
} & {
|
|
841
841
|
organization: {
|
|
842
|
-
removeMember: <FetchOptions extends
|
|
842
|
+
removeMember: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
843
843
|
memberIdOrEmail: string;
|
|
844
844
|
organizationId?: string | undefined;
|
|
845
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
845
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
846
846
|
memberIdOrEmail: string;
|
|
847
847
|
organizationId?: string | undefined;
|
|
848
848
|
} & {
|
|
849
849
|
fetchOptions?: FetchOptions | undefined;
|
|
850
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
850
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
851
851
|
member: {
|
|
852
852
|
id: string;
|
|
853
853
|
organizationId: string;
|
|
@@ -868,17 +868,17 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
868
868
|
};
|
|
869
869
|
} & {
|
|
870
870
|
organization: {
|
|
871
|
-
updateMemberRole: <FetchOptions extends
|
|
872
|
-
role:
|
|
871
|
+
updateMemberRole: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
872
|
+
role: better_auth307.LiteralString | "admin" | "member" | "owner" | ("admin" | "member" | "owner")[] | better_auth307.LiteralString[];
|
|
873
873
|
memberId: string;
|
|
874
874
|
organizationId?: string | undefined;
|
|
875
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
876
|
-
role:
|
|
875
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
876
|
+
role: better_auth307.LiteralString | "admin" | "member" | "owner" | ("admin" | "member" | "owner")[] | better_auth307.LiteralString[];
|
|
877
877
|
memberId: string;
|
|
878
878
|
organizationId?: string | undefined;
|
|
879
879
|
} & {
|
|
880
880
|
fetchOptions?: FetchOptions | undefined;
|
|
881
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
881
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
882
882
|
id: string;
|
|
883
883
|
organizationId: string;
|
|
884
884
|
role: "member" | "admin" | "owner";
|
|
@@ -897,13 +897,13 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
897
897
|
};
|
|
898
898
|
} & {
|
|
899
899
|
organization: {
|
|
900
|
-
leave: <FetchOptions extends
|
|
900
|
+
leave: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
901
901
|
organizationId: string;
|
|
902
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
902
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
903
903
|
organizationId: string;
|
|
904
904
|
} & {
|
|
905
905
|
fetchOptions?: FetchOptions | undefined;
|
|
906
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
906
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<NonNullable<Omit<{
|
|
907
907
|
id: string;
|
|
908
908
|
organizationId: string;
|
|
909
909
|
role: "admin" | "member" | "owner";
|
|
@@ -916,7 +916,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
916
916
|
image?: string | undefined;
|
|
917
917
|
};
|
|
918
918
|
} & {
|
|
919
|
-
user:
|
|
919
|
+
user: better_auth307.User;
|
|
920
920
|
}, "user"> & {
|
|
921
921
|
user: {
|
|
922
922
|
id: string;
|
|
@@ -931,19 +931,19 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
931
931
|
};
|
|
932
932
|
} & {
|
|
933
933
|
organization: {
|
|
934
|
-
listUserInvitations: <FetchOptions extends
|
|
934
|
+
listUserInvitations: <FetchOptions extends better_auth307.ClientFetchOption<never, Partial<{
|
|
935
935
|
email?: string | undefined;
|
|
936
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
936
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth307.Prettify<{
|
|
937
937
|
query?: {
|
|
938
938
|
email?: string | undefined;
|
|
939
939
|
} | undefined;
|
|
940
940
|
fetchOptions?: FetchOptions | undefined;
|
|
941
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
941
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<(Omit<{
|
|
942
942
|
id: string;
|
|
943
943
|
organizationId: string;
|
|
944
944
|
email: string;
|
|
945
945
|
role: "admin" | "member" | "owner";
|
|
946
|
-
status:
|
|
946
|
+
status: better_auth_plugins43.InvitationStatus;
|
|
947
947
|
inviterId: string;
|
|
948
948
|
expiresAt: Date;
|
|
949
949
|
createdAt: Date;
|
|
@@ -965,7 +965,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
965
965
|
};
|
|
966
966
|
} & {
|
|
967
967
|
organization: {
|
|
968
|
-
listMembers: <FetchOptions extends
|
|
968
|
+
listMembers: <FetchOptions extends better_auth307.ClientFetchOption<never, Partial<{
|
|
969
969
|
limit?: string | number | undefined;
|
|
970
970
|
offset?: string | number | undefined;
|
|
971
971
|
sortBy?: string | undefined;
|
|
@@ -975,7 +975,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
975
975
|
filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
|
|
976
976
|
organizationId?: string | undefined;
|
|
977
977
|
organizationSlug?: string | undefined;
|
|
978
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
978
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth307.Prettify<{
|
|
979
979
|
query?: {
|
|
980
980
|
limit?: string | number | undefined;
|
|
981
981
|
offset?: string | number | undefined;
|
|
@@ -988,7 +988,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
988
988
|
organizationSlug?: string | undefined;
|
|
989
989
|
} | undefined;
|
|
990
990
|
fetchOptions?: FetchOptions | undefined;
|
|
991
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
991
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
992
992
|
members: ({
|
|
993
993
|
id: string;
|
|
994
994
|
organizationId: string;
|
|
@@ -1017,18 +1017,18 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1017
1017
|
};
|
|
1018
1018
|
} & {
|
|
1019
1019
|
organization: {
|
|
1020
|
-
getActiveMemberRole: <FetchOptions extends
|
|
1020
|
+
getActiveMemberRole: <FetchOptions extends better_auth307.ClientFetchOption<never, Partial<{
|
|
1021
1021
|
userId?: string | undefined;
|
|
1022
1022
|
organizationId?: string | undefined;
|
|
1023
1023
|
organizationSlug?: string | undefined;
|
|
1024
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
1024
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth307.Prettify<{
|
|
1025
1025
|
query?: {
|
|
1026
1026
|
userId?: string | undefined;
|
|
1027
1027
|
organizationId?: string | undefined;
|
|
1028
1028
|
organizationSlug?: string | undefined;
|
|
1029
1029
|
} | undefined;
|
|
1030
1030
|
fetchOptions?: FetchOptions | undefined;
|
|
1031
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1031
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
1032
1032
|
role: "admin" | "member" | "owner";
|
|
1033
1033
|
}, {
|
|
1034
1034
|
code?: string | undefined;
|
|
@@ -1037,7 +1037,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1037
1037
|
};
|
|
1038
1038
|
} & {
|
|
1039
1039
|
organization: {
|
|
1040
|
-
hasPermission: <FetchOptions extends
|
|
1040
|
+
hasPermission: <FetchOptions extends better_auth307.ClientFetchOption<Partial<({
|
|
1041
1041
|
permission: {
|
|
1042
1042
|
readonly organization?: ("delete" | "update")[] | undefined;
|
|
1043
1043
|
readonly member?: ("delete" | "create" | "update")[] | undefined;
|
|
@@ -1057,7 +1057,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1057
1057
|
permission?: never | undefined;
|
|
1058
1058
|
}) & {
|
|
1059
1059
|
organizationId?: string | undefined;
|
|
1060
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1060
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<(({
|
|
1061
1061
|
permission: {
|
|
1062
1062
|
readonly organization?: ("delete" | "update")[] | undefined;
|
|
1063
1063
|
readonly member?: ("delete" | "create" | "update")[] | undefined;
|
|
@@ -1079,7 +1079,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1079
1079
|
organizationId?: string | undefined;
|
|
1080
1080
|
}) & {
|
|
1081
1081
|
fetchOptions?: FetchOptions | undefined;
|
|
1082
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1082
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
1083
1083
|
error: null;
|
|
1084
1084
|
success: boolean;
|
|
1085
1085
|
}, {
|
|
@@ -1089,15 +1089,15 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1089
1089
|
};
|
|
1090
1090
|
} & {
|
|
1091
1091
|
emailOtp: {
|
|
1092
|
-
sendVerificationOtp: <FetchOptions extends
|
|
1092
|
+
sendVerificationOtp: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
1093
1093
|
email: string;
|
|
1094
1094
|
type: "sign-in" | "email-verification" | "forget-password";
|
|
1095
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1095
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
1096
1096
|
email: string;
|
|
1097
1097
|
type: "sign-in" | "email-verification" | "forget-password";
|
|
1098
1098
|
} & {
|
|
1099
1099
|
fetchOptions?: FetchOptions | undefined;
|
|
1100
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1100
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
1101
1101
|
success: boolean;
|
|
1102
1102
|
}, {
|
|
1103
1103
|
code?: string | undefined;
|
|
@@ -1106,17 +1106,17 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1106
1106
|
};
|
|
1107
1107
|
} & {
|
|
1108
1108
|
emailOtp: {
|
|
1109
|
-
checkVerificationOtp: <FetchOptions extends
|
|
1109
|
+
checkVerificationOtp: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
1110
1110
|
email: string;
|
|
1111
1111
|
type: "sign-in" | "email-verification" | "forget-password";
|
|
1112
1112
|
otp: string;
|
|
1113
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1113
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
1114
1114
|
email: string;
|
|
1115
1115
|
type: "sign-in" | "email-verification" | "forget-password";
|
|
1116
1116
|
otp: string;
|
|
1117
1117
|
} & {
|
|
1118
1118
|
fetchOptions?: FetchOptions | undefined;
|
|
1119
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1119
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
1120
1120
|
success: boolean;
|
|
1121
1121
|
}, {
|
|
1122
1122
|
code?: string | undefined;
|
|
@@ -1125,38 +1125,38 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1125
1125
|
};
|
|
1126
1126
|
} & {
|
|
1127
1127
|
emailOtp: {
|
|
1128
|
-
verifyEmail: <FetchOptions extends
|
|
1128
|
+
verifyEmail: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
1129
1129
|
email: string;
|
|
1130
1130
|
otp: string;
|
|
1131
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1131
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
1132
1132
|
email: string;
|
|
1133
1133
|
otp: string;
|
|
1134
1134
|
} & {
|
|
1135
1135
|
fetchOptions?: FetchOptions | undefined;
|
|
1136
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1136
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<NonNullable<{
|
|
1137
1137
|
status: boolean;
|
|
1138
1138
|
token: string;
|
|
1139
1139
|
user: {
|
|
1140
1140
|
id: string;
|
|
1141
|
+
createdAt: Date;
|
|
1142
|
+
updatedAt: Date;
|
|
1141
1143
|
email: string;
|
|
1142
1144
|
emailVerified: boolean;
|
|
1143
1145
|
name: string;
|
|
1144
|
-
image
|
|
1145
|
-
|
|
1146
|
-
updatedAt: Date;
|
|
1147
|
-
};
|
|
1146
|
+
image?: string | null | undefined;
|
|
1147
|
+
} & Record<string, any>;
|
|
1148
1148
|
} | {
|
|
1149
1149
|
status: boolean;
|
|
1150
1150
|
token: null;
|
|
1151
1151
|
user: {
|
|
1152
1152
|
id: string;
|
|
1153
|
+
createdAt: Date;
|
|
1154
|
+
updatedAt: Date;
|
|
1153
1155
|
email: string;
|
|
1154
1156
|
emailVerified: boolean;
|
|
1155
1157
|
name: string;
|
|
1156
|
-
image
|
|
1157
|
-
|
|
1158
|
-
updatedAt: Date;
|
|
1159
|
-
};
|
|
1158
|
+
image?: string | null | undefined;
|
|
1159
|
+
} & Record<string, any>;
|
|
1160
1160
|
}>, {
|
|
1161
1161
|
code?: string | undefined;
|
|
1162
1162
|
message?: string | undefined;
|
|
@@ -1164,39 +1164,54 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1164
1164
|
};
|
|
1165
1165
|
} & {
|
|
1166
1166
|
signIn: {
|
|
1167
|
-
emailOtp: <FetchOptions extends
|
|
1167
|
+
emailOtp: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
1168
1168
|
email: string;
|
|
1169
1169
|
otp: string;
|
|
1170
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1170
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
1171
1171
|
email: string;
|
|
1172
1172
|
otp: string;
|
|
1173
1173
|
} & {
|
|
1174
1174
|
fetchOptions?: FetchOptions | undefined;
|
|
1175
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1175
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
1176
1176
|
token: string;
|
|
1177
1177
|
user: {
|
|
1178
1178
|
id: string;
|
|
1179
|
+
createdAt: Date;
|
|
1180
|
+
updatedAt: Date;
|
|
1179
1181
|
email: string;
|
|
1180
1182
|
emailVerified: boolean;
|
|
1181
1183
|
name: string;
|
|
1182
|
-
image
|
|
1183
|
-
createdAt: Date;
|
|
1184
|
-
updatedAt: Date;
|
|
1184
|
+
image?: string | null | undefined;
|
|
1185
1185
|
};
|
|
1186
1186
|
}, {
|
|
1187
1187
|
code?: string | undefined;
|
|
1188
1188
|
message?: string | undefined;
|
|
1189
1189
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1190
1190
|
};
|
|
1191
|
+
} & {
|
|
1192
|
+
emailOtp: {
|
|
1193
|
+
requestPasswordReset: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
1194
|
+
email: string;
|
|
1195
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
1196
|
+
email: string;
|
|
1197
|
+
} & {
|
|
1198
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1199
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
1200
|
+
success: boolean;
|
|
1201
|
+
}, {
|
|
1202
|
+
code?: string | undefined;
|
|
1203
|
+
message?: string | undefined;
|
|
1204
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1205
|
+
};
|
|
1191
1206
|
} & {
|
|
1192
1207
|
forgetPassword: {
|
|
1193
|
-
emailOtp: <FetchOptions extends
|
|
1208
|
+
emailOtp: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
1194
1209
|
email: string;
|
|
1195
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1210
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
1196
1211
|
email: string;
|
|
1197
1212
|
} & {
|
|
1198
1213
|
fetchOptions?: FetchOptions | undefined;
|
|
1199
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1214
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
1200
1215
|
success: boolean;
|
|
1201
1216
|
}, {
|
|
1202
1217
|
code?: string | undefined;
|
|
@@ -1205,17 +1220,17 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1205
1220
|
};
|
|
1206
1221
|
} & {
|
|
1207
1222
|
emailOtp: {
|
|
1208
|
-
resetPassword: <FetchOptions extends
|
|
1223
|
+
resetPassword: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
1209
1224
|
email: string;
|
|
1210
1225
|
otp: string;
|
|
1211
1226
|
password: string;
|
|
1212
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1227
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
1213
1228
|
email: string;
|
|
1214
1229
|
otp: string;
|
|
1215
1230
|
password: string;
|
|
1216
1231
|
} & {
|
|
1217
1232
|
fetchOptions?: FetchOptions | undefined;
|
|
1218
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1233
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
1219
1234
|
success: boolean;
|
|
1220
1235
|
}, {
|
|
1221
1236
|
code?: string | undefined;
|
|
@@ -1224,7 +1239,61 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1224
1239
|
};
|
|
1225
1240
|
} & {
|
|
1226
1241
|
signIn: {
|
|
1227
|
-
|
|
1242
|
+
magicLink: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
1243
|
+
email: string;
|
|
1244
|
+
name?: string | undefined;
|
|
1245
|
+
callbackURL?: string | undefined;
|
|
1246
|
+
newUserCallbackURL?: string | undefined;
|
|
1247
|
+
errorCallbackURL?: string | undefined;
|
|
1248
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
1249
|
+
email: string;
|
|
1250
|
+
name?: string | undefined;
|
|
1251
|
+
callbackURL?: string | undefined;
|
|
1252
|
+
newUserCallbackURL?: string | undefined;
|
|
1253
|
+
errorCallbackURL?: string | undefined;
|
|
1254
|
+
} & {
|
|
1255
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1256
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
1257
|
+
status: boolean;
|
|
1258
|
+
}, {
|
|
1259
|
+
code?: string | undefined;
|
|
1260
|
+
message?: string | undefined;
|
|
1261
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1262
|
+
};
|
|
1263
|
+
} & {
|
|
1264
|
+
magicLink: {
|
|
1265
|
+
verify: <FetchOptions extends better_auth307.ClientFetchOption<never, Partial<{
|
|
1266
|
+
token: string;
|
|
1267
|
+
callbackURL?: string | undefined;
|
|
1268
|
+
errorCallbackURL?: string | undefined;
|
|
1269
|
+
newUserCallbackURL?: string | undefined;
|
|
1270
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
1271
|
+
query: {
|
|
1272
|
+
token: string;
|
|
1273
|
+
callbackURL?: string | undefined;
|
|
1274
|
+
errorCallbackURL?: string | undefined;
|
|
1275
|
+
newUserCallbackURL?: string | undefined;
|
|
1276
|
+
};
|
|
1277
|
+
fetchOptions?: FetchOptions | undefined;
|
|
1278
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
1279
|
+
token: string;
|
|
1280
|
+
user: {
|
|
1281
|
+
id: string;
|
|
1282
|
+
createdAt: Date;
|
|
1283
|
+
updatedAt: Date;
|
|
1284
|
+
email: string;
|
|
1285
|
+
emailVerified: boolean;
|
|
1286
|
+
name: string;
|
|
1287
|
+
image?: string | null | undefined;
|
|
1288
|
+
};
|
|
1289
|
+
}, {
|
|
1290
|
+
code?: string | undefined;
|
|
1291
|
+
message?: string | undefined;
|
|
1292
|
+
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1293
|
+
};
|
|
1294
|
+
} & {
|
|
1295
|
+
signIn: {
|
|
1296
|
+
social: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
1228
1297
|
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";
|
|
1229
1298
|
callbackURL?: string | undefined;
|
|
1230
1299
|
newUserCallbackURL?: string | undefined;
|
|
@@ -1241,7 +1310,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1241
1310
|
requestSignUp?: boolean | undefined;
|
|
1242
1311
|
loginHint?: string | undefined;
|
|
1243
1312
|
additionalData?: Record<string, any> | undefined;
|
|
1244
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1313
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
1245
1314
|
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";
|
|
1246
1315
|
callbackURL?: string | undefined;
|
|
1247
1316
|
newUserCallbackURL?: string | undefined;
|
|
@@ -1260,7 +1329,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1260
1329
|
additionalData?: Record<string, any> | undefined;
|
|
1261
1330
|
} & {
|
|
1262
1331
|
fetchOptions?: FetchOptions | undefined;
|
|
1263
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1332
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<NonNullable<{
|
|
1264
1333
|
redirect: boolean;
|
|
1265
1334
|
url: string;
|
|
1266
1335
|
} | {
|
|
@@ -1282,10 +1351,10 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1282
1351
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1283
1352
|
};
|
|
1284
1353
|
} & {
|
|
1285
|
-
signOut: <FetchOptions extends
|
|
1354
|
+
signOut: <FetchOptions extends better_auth307.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth307.Prettify<{
|
|
1286
1355
|
query?: Record<string, any> | undefined;
|
|
1287
1356
|
fetchOptions?: FetchOptions | undefined;
|
|
1288
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1357
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
1289
1358
|
success: boolean;
|
|
1290
1359
|
}, {
|
|
1291
1360
|
code?: string | undefined;
|
|
@@ -1293,21 +1362,21 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1293
1362
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1294
1363
|
} & {
|
|
1295
1364
|
signUp: {
|
|
1296
|
-
email: <FetchOptions extends
|
|
1365
|
+
email: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
1297
1366
|
name: string;
|
|
1298
1367
|
email: string;
|
|
1299
1368
|
password: string;
|
|
1300
1369
|
image?: string | undefined;
|
|
1301
1370
|
callbackURL?: string | undefined;
|
|
1302
1371
|
rememberMe?: boolean | undefined;
|
|
1303
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1372
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
1304
1373
|
email: string;
|
|
1305
1374
|
name: string;
|
|
1306
1375
|
password: string;
|
|
1307
1376
|
image?: string | undefined;
|
|
1308
1377
|
callbackURL?: string | undefined;
|
|
1309
1378
|
fetchOptions?: FetchOptions | undefined;
|
|
1310
|
-
} & {} & {}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1379
|
+
} & {} & {}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<NonNullable<{
|
|
1311
1380
|
token: null;
|
|
1312
1381
|
user: {
|
|
1313
1382
|
id: string;
|
|
@@ -1336,19 +1405,19 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1336
1405
|
};
|
|
1337
1406
|
} & {
|
|
1338
1407
|
signIn: {
|
|
1339
|
-
email: <FetchOptions extends
|
|
1408
|
+
email: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
1340
1409
|
email: string;
|
|
1341
1410
|
password: string;
|
|
1342
1411
|
callbackURL?: string | undefined;
|
|
1343
1412
|
rememberMe?: boolean | undefined;
|
|
1344
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1413
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
1345
1414
|
email: string;
|
|
1346
1415
|
password: string;
|
|
1347
1416
|
callbackURL?: string | undefined;
|
|
1348
1417
|
rememberMe?: boolean | undefined;
|
|
1349
1418
|
} & {
|
|
1350
1419
|
fetchOptions?: FetchOptions | undefined;
|
|
1351
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1420
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
1352
1421
|
redirect: boolean;
|
|
1353
1422
|
token: string;
|
|
1354
1423
|
url?: string | undefined;
|
|
@@ -1367,120 +1436,120 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1367
1436
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1368
1437
|
};
|
|
1369
1438
|
} & {
|
|
1370
|
-
resetPassword: <FetchOptions extends
|
|
1439
|
+
resetPassword: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
1371
1440
|
newPassword: string;
|
|
1372
1441
|
token?: string | undefined;
|
|
1373
1442
|
}> & Record<string, any>, Partial<{
|
|
1374
1443
|
token?: string | undefined;
|
|
1375
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1444
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
1376
1445
|
newPassword: string;
|
|
1377
1446
|
token?: string | undefined;
|
|
1378
1447
|
} & {
|
|
1379
1448
|
fetchOptions?: FetchOptions | undefined;
|
|
1380
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1449
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
1381
1450
|
status: boolean;
|
|
1382
1451
|
}, {
|
|
1383
1452
|
code?: string | undefined;
|
|
1384
1453
|
message?: string | undefined;
|
|
1385
1454
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1386
1455
|
} & {
|
|
1387
|
-
verifyEmail: <FetchOptions extends
|
|
1456
|
+
verifyEmail: <FetchOptions extends better_auth307.ClientFetchOption<never, Partial<{
|
|
1388
1457
|
token: string;
|
|
1389
1458
|
callbackURL?: string | undefined;
|
|
1390
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1459
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
1391
1460
|
query: {
|
|
1392
1461
|
token: string;
|
|
1393
1462
|
callbackURL?: string | undefined;
|
|
1394
1463
|
};
|
|
1395
1464
|
fetchOptions?: FetchOptions | undefined;
|
|
1396
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1465
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<NonNullable<void | {
|
|
1397
1466
|
status: boolean;
|
|
1398
1467
|
}>, {
|
|
1399
1468
|
code?: string | undefined;
|
|
1400
1469
|
message?: string | undefined;
|
|
1401
1470
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1402
1471
|
} & {
|
|
1403
|
-
sendVerificationEmail: <FetchOptions extends
|
|
1472
|
+
sendVerificationEmail: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
1404
1473
|
email: string;
|
|
1405
1474
|
callbackURL?: string | undefined;
|
|
1406
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1475
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
1407
1476
|
email: string;
|
|
1408
1477
|
callbackURL?: string | undefined;
|
|
1409
1478
|
} & {
|
|
1410
1479
|
fetchOptions?: FetchOptions | undefined;
|
|
1411
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1480
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
1412
1481
|
status: boolean;
|
|
1413
1482
|
}, {
|
|
1414
1483
|
code?: string | undefined;
|
|
1415
1484
|
message?: string | undefined;
|
|
1416
1485
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1417
1486
|
} & {
|
|
1418
|
-
changeEmail: <FetchOptions extends
|
|
1487
|
+
changeEmail: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
1419
1488
|
newEmail: string;
|
|
1420
1489
|
callbackURL?: string | undefined;
|
|
1421
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1490
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
1422
1491
|
newEmail: string;
|
|
1423
1492
|
callbackURL?: string | undefined;
|
|
1424
1493
|
} & {
|
|
1425
1494
|
fetchOptions?: FetchOptions | undefined;
|
|
1426
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1495
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
1427
1496
|
status: boolean;
|
|
1428
1497
|
}, {
|
|
1429
1498
|
code?: string | undefined;
|
|
1430
1499
|
message?: string | undefined;
|
|
1431
1500
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1432
1501
|
} & {
|
|
1433
|
-
changePassword: <FetchOptions extends
|
|
1502
|
+
changePassword: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
1434
1503
|
newPassword: string;
|
|
1435
1504
|
currentPassword: string;
|
|
1436
1505
|
revokeOtherSessions?: boolean | undefined;
|
|
1437
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1506
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
1438
1507
|
newPassword: string;
|
|
1439
1508
|
currentPassword: string;
|
|
1440
1509
|
revokeOtherSessions?: boolean | undefined;
|
|
1441
1510
|
} & {
|
|
1442
1511
|
fetchOptions?: FetchOptions | undefined;
|
|
1443
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1512
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
1444
1513
|
token: string | null;
|
|
1445
1514
|
user: {
|
|
1446
1515
|
id: string;
|
|
1447
|
-
email: string;
|
|
1448
|
-
name: string;
|
|
1449
|
-
image: string | null | undefined;
|
|
1450
|
-
emailVerified: boolean;
|
|
1451
1516
|
createdAt: Date;
|
|
1452
1517
|
updatedAt: Date;
|
|
1453
|
-
|
|
1518
|
+
email: string;
|
|
1519
|
+
emailVerified: boolean;
|
|
1520
|
+
name: string;
|
|
1521
|
+
image?: string | null | undefined;
|
|
1522
|
+
} & Record<string, any>;
|
|
1454
1523
|
}, {
|
|
1455
1524
|
code?: string | undefined;
|
|
1456
1525
|
message?: string | undefined;
|
|
1457
1526
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1458
1527
|
} & {
|
|
1459
|
-
updateUser: <FetchOptions extends
|
|
1528
|
+
updateUser: <FetchOptions extends better_auth307.ClientFetchOption<Partial<Partial<{}> & {
|
|
1460
1529
|
name?: string | undefined;
|
|
1461
1530
|
image?: string | undefined | null;
|
|
1462
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
1531
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth307.Prettify<{
|
|
1463
1532
|
image?: (string | null) | undefined;
|
|
1464
1533
|
name?: string | undefined;
|
|
1465
1534
|
fetchOptions?: FetchOptions | undefined;
|
|
1466
|
-
} & Partial<{} & {}>> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1535
|
+
} & Partial<{} & {}>> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
1467
1536
|
status: boolean;
|
|
1468
1537
|
}, {
|
|
1469
1538
|
code?: string | undefined;
|
|
1470
1539
|
message?: string | undefined;
|
|
1471
1540
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1472
1541
|
} & {
|
|
1473
|
-
deleteUser: <FetchOptions extends
|
|
1542
|
+
deleteUser: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
1474
1543
|
callbackURL?: string | undefined;
|
|
1475
1544
|
password?: string | undefined;
|
|
1476
1545
|
token?: string | undefined;
|
|
1477
|
-
}> & 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_auth307.Prettify<{
|
|
1478
1547
|
callbackURL?: string | undefined;
|
|
1479
1548
|
password?: string | undefined;
|
|
1480
1549
|
token?: string | undefined;
|
|
1481
1550
|
} & {
|
|
1482
1551
|
fetchOptions?: FetchOptions | undefined;
|
|
1483
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1552
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
1484
1553
|
success: boolean;
|
|
1485
1554
|
message: string;
|
|
1486
1555
|
}, {
|
|
@@ -1488,15 +1557,15 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1488
1557
|
message?: string | undefined;
|
|
1489
1558
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1490
1559
|
} & {
|
|
1491
|
-
requestPasswordReset: <FetchOptions extends
|
|
1560
|
+
requestPasswordReset: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
1492
1561
|
email: string;
|
|
1493
1562
|
redirectTo?: string | undefined;
|
|
1494
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1563
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
1495
1564
|
email: string;
|
|
1496
1565
|
redirectTo?: string | undefined;
|
|
1497
1566
|
} & {
|
|
1498
1567
|
fetchOptions?: FetchOptions | undefined;
|
|
1499
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1568
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
1500
1569
|
status: boolean;
|
|
1501
1570
|
message: string;
|
|
1502
1571
|
}, {
|
|
@@ -1505,25 +1574,25 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1505
1574
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1506
1575
|
} & {
|
|
1507
1576
|
resetPassword: {
|
|
1508
|
-
":token": <FetchOptions extends
|
|
1577
|
+
":token": <FetchOptions extends better_auth307.ClientFetchOption<never, Partial<{
|
|
1509
1578
|
callbackURL: string;
|
|
1510
1579
|
}> & Record<string, any>, {
|
|
1511
1580
|
token: string;
|
|
1512
|
-
}>>(data_0:
|
|
1581
|
+
}>>(data_0: better_auth307.Prettify<{
|
|
1513
1582
|
query: {
|
|
1514
1583
|
callbackURL: string;
|
|
1515
1584
|
};
|
|
1516
1585
|
fetchOptions?: FetchOptions | undefined;
|
|
1517
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1586
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<never, {
|
|
1518
1587
|
code?: string | undefined;
|
|
1519
1588
|
message?: string | undefined;
|
|
1520
1589
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1521
1590
|
};
|
|
1522
1591
|
} & {
|
|
1523
|
-
listSessions: <FetchOptions extends
|
|
1592
|
+
listSessions: <FetchOptions extends better_auth307.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth307.Prettify<{
|
|
1524
1593
|
query?: Record<string, any> | undefined;
|
|
1525
1594
|
fetchOptions?: FetchOptions | undefined;
|
|
1526
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1595
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<better_auth307.Prettify<{
|
|
1527
1596
|
id: string;
|
|
1528
1597
|
createdAt: Date;
|
|
1529
1598
|
updatedAt: Date;
|
|
@@ -1537,40 +1606,40 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1537
1606
|
message?: string | undefined;
|
|
1538
1607
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1539
1608
|
} & {
|
|
1540
|
-
revokeSession: <FetchOptions extends
|
|
1609
|
+
revokeSession: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
1541
1610
|
token: string;
|
|
1542
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1611
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
1543
1612
|
token: string;
|
|
1544
1613
|
} & {
|
|
1545
1614
|
fetchOptions?: FetchOptions | undefined;
|
|
1546
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1615
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
1547
1616
|
status: boolean;
|
|
1548
1617
|
}, {
|
|
1549
1618
|
code?: string | undefined;
|
|
1550
1619
|
message?: string | undefined;
|
|
1551
1620
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1552
1621
|
} & {
|
|
1553
|
-
revokeSessions: <FetchOptions extends
|
|
1622
|
+
revokeSessions: <FetchOptions extends better_auth307.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth307.Prettify<{
|
|
1554
1623
|
query?: Record<string, any> | undefined;
|
|
1555
1624
|
fetchOptions?: FetchOptions | undefined;
|
|
1556
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1625
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
1557
1626
|
status: boolean;
|
|
1558
1627
|
}, {
|
|
1559
1628
|
code?: string | undefined;
|
|
1560
1629
|
message?: string | undefined;
|
|
1561
1630
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1562
1631
|
} & {
|
|
1563
|
-
revokeOtherSessions: <FetchOptions extends
|
|
1632
|
+
revokeOtherSessions: <FetchOptions extends better_auth307.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth307.Prettify<{
|
|
1564
1633
|
query?: Record<string, any> | undefined;
|
|
1565
1634
|
fetchOptions?: FetchOptions | undefined;
|
|
1566
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1635
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
1567
1636
|
status: boolean;
|
|
1568
1637
|
}, {
|
|
1569
1638
|
code?: string | undefined;
|
|
1570
1639
|
message?: string | undefined;
|
|
1571
1640
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1572
1641
|
} & {
|
|
1573
|
-
linkSocial: <FetchOptions extends
|
|
1642
|
+
linkSocial: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
1574
1643
|
provider: unknown;
|
|
1575
1644
|
callbackURL?: string | undefined;
|
|
1576
1645
|
idToken?: {
|
|
@@ -1585,7 +1654,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1585
1654
|
errorCallbackURL?: string | undefined;
|
|
1586
1655
|
disableRedirect?: boolean | undefined;
|
|
1587
1656
|
additionalData?: Record<string, any> | undefined;
|
|
1588
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1657
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
1589
1658
|
provider: unknown;
|
|
1590
1659
|
callbackURL?: string | undefined;
|
|
1591
1660
|
idToken?: {
|
|
@@ -1602,7 +1671,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1602
1671
|
additionalData?: Record<string, any> | undefined;
|
|
1603
1672
|
} & {
|
|
1604
1673
|
fetchOptions?: FetchOptions | undefined;
|
|
1605
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1674
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
1606
1675
|
url: string;
|
|
1607
1676
|
redirect: boolean;
|
|
1608
1677
|
}, {
|
|
@@ -1610,33 +1679,33 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1610
1679
|
message?: string | undefined;
|
|
1611
1680
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1612
1681
|
} & {
|
|
1613
|
-
listAccounts: <FetchOptions extends
|
|
1682
|
+
listAccounts: <FetchOptions extends better_auth307.ClientFetchOption<never, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth307.Prettify<{
|
|
1614
1683
|
query?: Record<string, any> | undefined;
|
|
1615
1684
|
fetchOptions?: FetchOptions | undefined;
|
|
1616
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1685
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
1686
|
+
scopes: string[];
|
|
1617
1687
|
id: string;
|
|
1618
|
-
providerId: string;
|
|
1619
1688
|
createdAt: Date;
|
|
1620
1689
|
updatedAt: Date;
|
|
1621
|
-
accountId: string;
|
|
1622
1690
|
userId: string;
|
|
1623
|
-
|
|
1691
|
+
providerId: string;
|
|
1692
|
+
accountId: string;
|
|
1624
1693
|
}[], {
|
|
1625
1694
|
code?: string | undefined;
|
|
1626
1695
|
message?: string | undefined;
|
|
1627
1696
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1628
1697
|
} & {
|
|
1629
1698
|
deleteUser: {
|
|
1630
|
-
callback: <FetchOptions extends
|
|
1699
|
+
callback: <FetchOptions extends better_auth307.ClientFetchOption<never, Partial<{
|
|
1631
1700
|
token: string;
|
|
1632
1701
|
callbackURL?: string | undefined;
|
|
1633
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1702
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
1634
1703
|
query: {
|
|
1635
1704
|
token: string;
|
|
1636
1705
|
callbackURL?: string | undefined;
|
|
1637
1706
|
};
|
|
1638
1707
|
fetchOptions?: FetchOptions | undefined;
|
|
1639
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1708
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
1640
1709
|
success: boolean;
|
|
1641
1710
|
message: string;
|
|
1642
1711
|
}, {
|
|
@@ -1645,32 +1714,32 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1645
1714
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1646
1715
|
};
|
|
1647
1716
|
} & {
|
|
1648
|
-
unlinkAccount: <FetchOptions extends
|
|
1717
|
+
unlinkAccount: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
1649
1718
|
providerId: string;
|
|
1650
1719
|
accountId?: string | undefined;
|
|
1651
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1720
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
1652
1721
|
providerId: string;
|
|
1653
1722
|
accountId?: string | undefined;
|
|
1654
1723
|
} & {
|
|
1655
1724
|
fetchOptions?: FetchOptions | undefined;
|
|
1656
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1725
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
1657
1726
|
status: boolean;
|
|
1658
1727
|
}, {
|
|
1659
1728
|
code?: string | undefined;
|
|
1660
1729
|
message?: string | undefined;
|
|
1661
1730
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1662
1731
|
} & {
|
|
1663
|
-
refreshToken: <FetchOptions extends
|
|
1732
|
+
refreshToken: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
1664
1733
|
providerId: string;
|
|
1665
1734
|
accountId?: string | undefined;
|
|
1666
1735
|
userId?: string | undefined;
|
|
1667
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1736
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
1668
1737
|
providerId: string;
|
|
1669
1738
|
accountId?: string | undefined;
|
|
1670
1739
|
userId?: string | undefined;
|
|
1671
1740
|
} & {
|
|
1672
1741
|
fetchOptions?: FetchOptions | undefined;
|
|
1673
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1742
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
1674
1743
|
accessToken: string | undefined;
|
|
1675
1744
|
refreshToken: string | undefined;
|
|
1676
1745
|
accessTokenExpiresAt: Date | undefined;
|
|
@@ -1684,17 +1753,17 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1684
1753
|
message?: string | undefined;
|
|
1685
1754
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1686
1755
|
} & {
|
|
1687
|
-
getAccessToken: <FetchOptions extends
|
|
1756
|
+
getAccessToken: <FetchOptions extends better_auth307.ClientFetchOption<Partial<{
|
|
1688
1757
|
providerId: string;
|
|
1689
1758
|
accountId?: string | undefined;
|
|
1690
1759
|
userId?: string | undefined;
|
|
1691
|
-
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0:
|
|
1760
|
+
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth307.Prettify<{
|
|
1692
1761
|
providerId: string;
|
|
1693
1762
|
accountId?: string | undefined;
|
|
1694
1763
|
userId?: string | undefined;
|
|
1695
1764
|
} & {
|
|
1696
1765
|
fetchOptions?: FetchOptions | undefined;
|
|
1697
|
-
}>, data_1?: FetchOptions | undefined) => Promise<
|
|
1766
|
+
}>, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
1698
1767
|
accessToken: string;
|
|
1699
1768
|
accessTokenExpiresAt: Date | undefined;
|
|
1700
1769
|
scopes: string[];
|
|
@@ -1704,31 +1773,31 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1704
1773
|
message?: string | undefined;
|
|
1705
1774
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1706
1775
|
} & {
|
|
1707
|
-
accountInfo: <FetchOptions extends
|
|
1776
|
+
accountInfo: <FetchOptions extends better_auth307.ClientFetchOption<never, Partial<{
|
|
1708
1777
|
accountId?: string | undefined;
|
|
1709
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
1778
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth307.Prettify<{
|
|
1710
1779
|
query?: {
|
|
1711
1780
|
accountId?: string | undefined;
|
|
1712
1781
|
} | undefined;
|
|
1713
1782
|
fetchOptions?: FetchOptions | undefined;
|
|
1714
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1715
|
-
user:
|
|
1783
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
1784
|
+
user: better_auth307.OAuth2UserInfo;
|
|
1716
1785
|
data: Record<string, any>;
|
|
1717
1786
|
}, {
|
|
1718
1787
|
code?: string | undefined;
|
|
1719
1788
|
message?: string | undefined;
|
|
1720
1789
|
}, FetchOptions["throw"] extends true ? true : false>>;
|
|
1721
1790
|
} & {
|
|
1722
|
-
getSession: <FetchOptions extends
|
|
1791
|
+
getSession: <FetchOptions extends better_auth307.ClientFetchOption<never, Partial<{
|
|
1723
1792
|
disableCookieCache?: unknown;
|
|
1724
1793
|
disableRefresh?: unknown;
|
|
1725
|
-
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?:
|
|
1794
|
+
}> & Record<string, any>, Record<string, any> | undefined>>(data_0?: better_auth307.Prettify<{
|
|
1726
1795
|
query?: {
|
|
1727
1796
|
disableCookieCache?: unknown;
|
|
1728
1797
|
disableRefresh?: unknown;
|
|
1729
1798
|
} | undefined;
|
|
1730
1799
|
fetchOptions?: FetchOptions | undefined;
|
|
1731
|
-
}> | undefined, data_1?: FetchOptions | undefined) => Promise<
|
|
1800
|
+
}> | undefined, data_1?: FetchOptions | undefined) => Promise<_better_fetch_fetch179.BetterFetchResponse<{
|
|
1732
1801
|
user: {
|
|
1733
1802
|
id: string;
|
|
1734
1803
|
createdAt: Date;
|
|
@@ -1782,7 +1851,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1782
1851
|
statusText: string;
|
|
1783
1852
|
};
|
|
1784
1853
|
} | {
|
|
1785
|
-
data:
|
|
1854
|
+
data: jose1.JSONWebKeySet;
|
|
1786
1855
|
error: null;
|
|
1787
1856
|
}>;
|
|
1788
1857
|
} & {
|
|
@@ -1824,7 +1893,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1824
1893
|
organizationId: string;
|
|
1825
1894
|
email: string;
|
|
1826
1895
|
role: "admin" | "member" | "owner";
|
|
1827
|
-
status:
|
|
1896
|
+
status: better_auth_plugins43.InvitationStatus;
|
|
1828
1897
|
inviterId: string;
|
|
1829
1898
|
expiresAt: Date;
|
|
1830
1899
|
createdAt: Date;
|
|
@@ -1850,7 +1919,7 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1850
1919
|
organizationId: string;
|
|
1851
1920
|
email: string;
|
|
1852
1921
|
role: "admin" | "member" | "owner";
|
|
1853
|
-
status:
|
|
1922
|
+
status: better_auth_plugins43.InvitationStatus;
|
|
1854
1923
|
inviterId: string;
|
|
1855
1924
|
expiresAt: Date;
|
|
1856
1925
|
createdAt: Date;
|
|
@@ -1930,9 +1999,9 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1930
1999
|
} | null;
|
|
1931
2000
|
isPending: boolean;
|
|
1932
2001
|
isRefetching: boolean;
|
|
1933
|
-
error:
|
|
2002
|
+
error: _better_fetch_fetch179.BetterFetchError | null;
|
|
1934
2003
|
refetch: (queryParams?: {
|
|
1935
|
-
query?:
|
|
2004
|
+
query?: better_auth307.SessionQueryParams;
|
|
1936
2005
|
} | undefined) => Promise<void>;
|
|
1937
2006
|
};
|
|
1938
2007
|
$Infer: {
|
|
@@ -1964,25 +2033,26 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1964
2033
|
};
|
|
1965
2034
|
};
|
|
1966
2035
|
};
|
|
1967
|
-
$fetch:
|
|
1968
|
-
plugins: (
|
|
2036
|
+
$fetch: _better_fetch_fetch179.BetterFetch<{
|
|
2037
|
+
plugins: (_better_fetch_fetch179.BetterFetchPlugin<Record<string, any>> | {
|
|
1969
2038
|
id: string;
|
|
1970
2039
|
name: string;
|
|
1971
2040
|
hooks: {
|
|
1972
|
-
onSuccess(context:
|
|
2041
|
+
onSuccess(context: _better_fetch_fetch179.SuccessContext<any>): void;
|
|
1973
2042
|
};
|
|
1974
2043
|
} | {
|
|
1975
2044
|
id: string;
|
|
1976
2045
|
name: string;
|
|
1977
2046
|
hooks: {
|
|
1978
|
-
onSuccess: ((context:
|
|
1979
|
-
onError: ((context:
|
|
1980
|
-
onRequest: (<T extends Record<string, any>>(context:
|
|
1981
|
-
onResponse: ((context:
|
|
2047
|
+
onSuccess: ((context: _better_fetch_fetch179.SuccessContext<any>) => Promise<void> | void) | undefined;
|
|
2048
|
+
onError: ((context: _better_fetch_fetch179.ErrorContext) => Promise<void> | void) | undefined;
|
|
2049
|
+
onRequest: (<T extends Record<string, any>>(context: _better_fetch_fetch179.RequestContext<T>) => Promise<_better_fetch_fetch179.RequestContext | void> | _better_fetch_fetch179.RequestContext | void) | undefined;
|
|
2050
|
+
onResponse: ((context: _better_fetch_fetch179.ResponseContext) => Promise<Response | void | _better_fetch_fetch179.ResponseContext> | Response | _better_fetch_fetch179.ResponseContext | void) | undefined;
|
|
1982
2051
|
};
|
|
1983
2052
|
})[];
|
|
1984
2053
|
cache?: RequestCache | undefined;
|
|
1985
2054
|
method: string;
|
|
2055
|
+
window?: null | undefined;
|
|
1986
2056
|
headers?: (HeadersInit & (HeadersInit | {
|
|
1987
2057
|
accept: "application/json" | "text/plain" | "application/octet-stream";
|
|
1988
2058
|
"content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
|
|
@@ -1997,13 +2067,12 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
1997
2067
|
referrer?: string | undefined;
|
|
1998
2068
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
1999
2069
|
signal?: (AbortSignal | null) | undefined;
|
|
2000
|
-
|
|
2001
|
-
onRetry?: ((response: _better_fetch_fetch88.ResponseContext) => Promise<void> | void) | undefined;
|
|
2070
|
+
onRetry?: ((response: _better_fetch_fetch179.ResponseContext) => Promise<void> | void) | undefined;
|
|
2002
2071
|
hookOptions?: {
|
|
2003
2072
|
cloneResponse?: boolean;
|
|
2004
2073
|
} | undefined;
|
|
2005
2074
|
timeout?: number | undefined;
|
|
2006
|
-
customFetchImpl:
|
|
2075
|
+
customFetchImpl: _better_fetch_fetch179.FetchEsque;
|
|
2007
2076
|
baseURL: string;
|
|
2008
2077
|
throw?: boolean | undefined;
|
|
2009
2078
|
auth?: ({
|
|
@@ -2023,17 +2092,17 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
2023
2092
|
params?: any;
|
|
2024
2093
|
duplex?: "full" | "half" | undefined;
|
|
2025
2094
|
jsonParser: (text: string) => Promise<any> | any;
|
|
2026
|
-
retry?:
|
|
2095
|
+
retry?: _better_fetch_fetch179.RetryOptions | undefined;
|
|
2027
2096
|
retryAttempt?: number | undefined;
|
|
2028
|
-
output?: (
|
|
2029
|
-
errorSchema?:
|
|
2097
|
+
output?: (_better_fetch_fetch179.StandardSchemaV1 | typeof Blob | typeof File) | undefined;
|
|
2098
|
+
errorSchema?: _better_fetch_fetch179.StandardSchemaV1 | undefined;
|
|
2030
2099
|
disableValidation?: boolean | undefined;
|
|
2031
2100
|
disableSignal?: boolean | undefined;
|
|
2032
2101
|
}, unknown, unknown, {}>;
|
|
2033
2102
|
$store: {
|
|
2034
2103
|
notify: (signal?: (Omit<string, "$sessionSignal"> | "$sessionSignal") | undefined) => void;
|
|
2035
2104
|
listen: (signal: Omit<string, "$sessionSignal"> | "$sessionSignal", listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
|
|
2036
|
-
atoms: Record<string,
|
|
2105
|
+
atoms: Record<string, better_auth_react2.WritableAtom<any>>;
|
|
2037
2106
|
};
|
|
2038
2107
|
$ERROR_CODES: {
|
|
2039
2108
|
readonly FAILED_TO_CREATE_USER: "Failed to create user";
|
|
@@ -2138,6 +2207,24 @@ declare class BetterAuthReactAdapterImpl extends NeonAuthAdapterCore {
|
|
|
2138
2207
|
readonly FAILED_TO_UNLINK_LAST_ACCOUNT: "You can't unlink your last account";
|
|
2139
2208
|
readonly ACCOUNT_NOT_FOUND: "Account not found";
|
|
2140
2209
|
readonly USER_ALREADY_HAS_PASSWORD: "User already has a password. Provide that to delete the account.";
|
|
2210
|
+
readonly CROSS_SITE_NAVIGATION_LOGIN_BLOCKED: "Cross-site navigation login blocked. This request appears to be a CSRF attack.";
|
|
2211
|
+
readonly VERIFICATION_EMAIL_NOT_ENABLED: "Verification email isn't enabled";
|
|
2212
|
+
readonly EMAIL_ALREADY_VERIFIED: "Email is already verified";
|
|
2213
|
+
readonly EMAIL_MISMATCH: "Email mismatch";
|
|
2214
|
+
readonly SESSION_NOT_FRESH: "Session is not fresh";
|
|
2215
|
+
readonly LINKED_ACCOUNT_ALREADY_EXISTS: "Linked account already exists";
|
|
2216
|
+
readonly INVALID_ORIGIN: "Invalid origin";
|
|
2217
|
+
readonly INVALID_CALLBACK_URL: "Invalid callbackURL";
|
|
2218
|
+
readonly INVALID_REDIRECT_URL: "Invalid redirectURL";
|
|
2219
|
+
readonly INVALID_ERROR_CALLBACK_URL: "Invalid errorCallbackURL";
|
|
2220
|
+
readonly INVALID_NEW_USER_CALLBACK_URL: "Invalid newUserCallbackURL";
|
|
2221
|
+
readonly MISSING_OR_NULL_ORIGIN: "Missing or null Origin";
|
|
2222
|
+
readonly CALLBACK_URL_REQUIRED: "callbackURL is required";
|
|
2223
|
+
readonly FAILED_TO_CREATE_VERIFICATION: "Unable to create verification";
|
|
2224
|
+
readonly FIELD_NOT_ALLOWED: "Field not allowed to be set";
|
|
2225
|
+
readonly ASYNC_VALIDATION_NOT_SUPPORTED: "Async validation is not supported";
|
|
2226
|
+
readonly VALIDATION_ERROR: "Validation Error";
|
|
2227
|
+
readonly MISSING_FIELD: "Field is required";
|
|
2141
2228
|
};
|
|
2142
2229
|
};
|
|
2143
2230
|
}
|