9
9
*/
10
10
11
11
import type * as auth from "../auth.js" ;
12
+ import type * as email from "../email.js" ;
13
+ import type * as emails_components_BaseEmail from "../emails/components/BaseEmail.js" ;
14
+ import type * as emails_magicLink from "../emails/magicLink.js" ;
15
+ import type * as emails_resetPassword from "../emails/resetPassword.js" ;
16
+ import type * as emails_verifyEmail from "../emails/verifyEmail.js" ;
17
+ import type * as emails_verifyOTP from "../emails/verifyOTP.js" ;
12
18
import type * as http from "../http.js" ;
13
19
import type * as todos from "../todos.js" ;
14
20
import type * as util from "../util.js" ;
@@ -29,6 +35,12 @@ import type {
29
35
*/
30
36
declare const fullApi : ApiFromModules < {
31
37
auth : typeof auth ;
38
+ email : typeof email ;
39
+ "emails/components/BaseEmail" : typeof emails_components_BaseEmail ;
40
+ "emails/magicLink" : typeof emails_magicLink ;
41
+ "emails/resetPassword" : typeof emails_resetPassword ;
42
+ "emails/verifyEmail" : typeof emails_verifyEmail ;
43
+ "emails/verifyOTP" : typeof emails_verifyOTP ;
32
44
http : typeof http ;
33
45
todos : typeof todos ;
34
46
util : typeof util ;
@@ -54,14 +66,17 @@ export declare const components: {
54
66
input :
55
67
| {
56
68
createdAt : number ;
69
+ displayUsername ?: string ;
57
70
email : string ;
58
71
emailVerified : boolean ;
59
72
image ?: string ;
73
+ isAnonymous ?: boolean ;
60
74
name : string ;
61
75
table : string ;
62
76
twoFactorEnabled ?: boolean ;
63
77
updatedAt : number ;
64
- userId : string ;
78
+ userId ?: string ;
79
+ username ?: string ;
65
80
}
66
81
| {
67
82
createdAt : number ;
@@ -88,12 +103,6 @@ export declare const components: {
88
103
updatedAt : number ;
89
104
userId : string ;
90
105
}
91
- | {
92
- backupCodes : string ;
93
- secret : string ;
94
- table : string ;
95
- userId : string ;
96
- }
97
106
| {
98
107
createdAt ?: number ;
99
108
expiresAt : number ;
@@ -102,12 +111,23 @@ export declare const components: {
102
111
updatedAt ?: number ;
103
112
value : string ;
104
113
}
114
+ | {
115
+ backupCodes : string ;
116
+ secret : string ;
117
+ table : string ;
118
+ userId : string ;
119
+ }
105
120
| {
106
121
createdAt : number ;
107
- id ?: string ;
108
122
privateKey : string ;
109
123
publicKey : string ;
110
124
table : string ;
125
+ }
126
+ | {
127
+ count ?: number ;
128
+ key ?: string ;
129
+ lastRequest ?: number ;
130
+ table : string ;
111
131
} ;
112
132
} ,
113
133
any
@@ -158,6 +178,12 @@ export declare const components: {
158
178
{ expiresAt : number ; userId : string } ,
159
179
any
160
180
> ;
181
+ deleteIn : FunctionReference <
182
+ "mutation" ,
183
+ "internal" ,
184
+ { input : { field : "token" ; table : "session" ; values : Array < string > } } ,
185
+ any
186
+ > ;
161
187
deleteOldVerifications : FunctionReference <
162
188
"action" ,
163
189
"internal" ,
@@ -186,12 +212,6 @@ export declare const components: {
186
212
{ accountId : string ; providerId : string } ,
187
213
any
188
214
> ;
189
- getAccountsByUserId : FunctionReference <
190
- "query" ,
191
- "internal" ,
192
- { limit ?: number ; userId : string } ,
193
- any
194
- > ;
195
215
getBy : FunctionReference <
196
216
"query" ,
197
217
"internal" ,
@@ -227,11 +247,41 @@ export declare const components: {
227
247
any
228
248
> ;
229
249
getCurrentSession : FunctionReference < "query" , "internal" , { } , any > ;
250
+ getIn : FunctionReference <
251
+ "query" ,
252
+ "internal" ,
253
+ {
254
+ input :
255
+ | { field : "token" ; table : "session" ; values : Array < string > }
256
+ | { field : "userId" ; table : "user" ; values : Array < string > } ;
257
+ } ,
258
+ any
259
+ > ;
230
260
getJwks : FunctionReference < "query" , "internal" , { limit ?: number } , any > ;
231
- getSessionsByUserId : FunctionReference <
261
+ listBy : FunctionReference <
232
262
"query" ,
233
263
"internal" ,
234
- { limit ?: number ; userId : string } ,
264
+ {
265
+ input :
266
+ | {
267
+ field : "accountId" | "userId" ;
268
+ limit ?: number ;
269
+ table : "account" ;
270
+ value : string ;
271
+ }
272
+ | {
273
+ field : "userId" ;
274
+ limit ?: number ;
275
+ table : "session" ;
276
+ value : string ;
277
+ }
278
+ | {
279
+ field : "key" ;
280
+ limit ?: number ;
281
+ table : "rateLimit" ;
282
+ value : string ;
283
+ } ;
284
+ } ,
235
285
any
236
286
> ;
237
287
listVerificationsByIdentifier : FunctionReference <
@@ -308,12 +358,25 @@ export declare const components: {
308
358
} ,
309
359
any
310
360
> ;
311
- updateTwoFactor : FunctionReference <
361
+ updateMany : FunctionReference <
312
362
"mutation" ,
313
363
"internal" ,
314
364
{
315
- update : { backupCodes ?: string ; secret ?: string ; userId ?: string } ;
316
- userId : string ;
365
+ input :
366
+ | {
367
+ field : "key" ;
368
+ table : "rateLimit" ;
369
+ update : { count ?: number ; key ?: string ; lastRequest ?: number } ;
370
+ }
371
+ | {
372
+ field : "userId" ;
373
+ table : "twoFactor" ;
374
+ update : {
375
+ backupCodes ?: string ;
376
+ secret ?: string ;
377
+ userId ?: string ;
378
+ } ;
379
+ } ;
317
380
} ,
318
381
any
319
382
> ;
0 commit comments