@neutralauth/internal-auth 0.10.11

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.
Files changed (147) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +39 -0
  3. package/dist/auth-config.d.ts +43 -0
  4. package/dist/auth-config.d.ts.map +1 -0
  5. package/dist/auth-config.js +43 -0
  6. package/dist/auth-config.js.map +1 -0
  7. package/dist/auth-options.d.ts +3 -0
  8. package/dist/auth-options.d.ts.map +1 -0
  9. package/dist/auth-options.js +40 -0
  10. package/dist/auth-options.js.map +1 -0
  11. package/dist/auth.d.ts +2 -0
  12. package/dist/auth.d.ts.map +1 -0
  13. package/dist/auth.js +4 -0
  14. package/dist/auth.js.map +1 -0
  15. package/dist/client/adapter-utils.d.ts +66 -0
  16. package/dist/client/adapter-utils.d.ts.map +1 -0
  17. package/dist/client/adapter-utils.js +437 -0
  18. package/dist/client/adapter-utils.js.map +1 -0
  19. package/dist/client/adapter.d.ts +14 -0
  20. package/dist/client/adapter.d.ts.map +1 -0
  21. package/dist/client/adapter.js +274 -0
  22. package/dist/client/adapter.js.map +1 -0
  23. package/dist/client/create-api.d.ts +141 -0
  24. package/dist/client/create-api.d.ts.map +1 -0
  25. package/dist/client/create-api.js +205 -0
  26. package/dist/client/create-api.js.map +1 -0
  27. package/dist/client/create-client.d.ts +183 -0
  28. package/dist/client/create-client.d.ts.map +1 -0
  29. package/dist/client/create-client.js +311 -0
  30. package/dist/client/create-client.js.map +1 -0
  31. package/dist/client/create-schema.d.ts +19 -0
  32. package/dist/client/create-schema.d.ts.map +1 -0
  33. package/dist/client/create-schema.js +114 -0
  34. package/dist/client/create-schema.js.map +1 -0
  35. package/dist/client/index.d.ts +7 -0
  36. package/dist/client/index.d.ts.map +1 -0
  37. package/dist/client/index.js +10 -0
  38. package/dist/client/index.js.map +1 -0
  39. package/dist/client/plugins/index.d.ts +3 -0
  40. package/dist/client/plugins/index.d.ts.map +1 -0
  41. package/dist/client/plugins/index.js +3 -0
  42. package/dist/client/plugins/index.js.map +1 -0
  43. package/dist/component/_generated/api.d.ts +36 -0
  44. package/dist/component/_generated/api.d.ts.map +1 -0
  45. package/dist/component/_generated/api.js +31 -0
  46. package/dist/component/_generated/api.js.map +1 -0
  47. package/dist/component/_generated/component.d.ts +787 -0
  48. package/dist/component/_generated/component.d.ts.map +1 -0
  49. package/dist/component/_generated/component.js +11 -0
  50. package/dist/component/_generated/component.js.map +1 -0
  51. package/dist/component/_generated/dataModel.d.ts +46 -0
  52. package/dist/component/_generated/dataModel.d.ts.map +1 -0
  53. package/dist/component/_generated/dataModel.js +11 -0
  54. package/dist/component/_generated/dataModel.js.map +1 -0
  55. package/dist/component/_generated/server.d.ts +121 -0
  56. package/dist/component/_generated/server.d.ts.map +1 -0
  57. package/dist/component/_generated/server.js +78 -0
  58. package/dist/component/_generated/server.js.map +1 -0
  59. package/dist/component/adapter.d.ts +130 -0
  60. package/dist/component/adapter.d.ts.map +1 -0
  61. package/dist/component/adapter.js +5 -0
  62. package/dist/component/adapter.js.map +1 -0
  63. package/dist/component/adapterTest.d.ts +10 -0
  64. package/dist/component/adapterTest.d.ts.map +1 -0
  65. package/dist/component/adapterTest.js +409 -0
  66. package/dist/component/adapterTest.js.map +1 -0
  67. package/dist/component/convex.config.d.ts +3 -0
  68. package/dist/component/convex.config.d.ts.map +1 -0
  69. package/dist/component/convex.config.js +4 -0
  70. package/dist/component/convex.config.js.map +1 -0
  71. package/dist/component/schema.d.ts +474 -0
  72. package/dist/component/schema.d.ts.map +1 -0
  73. package/dist/component/schema.js +139 -0
  74. package/dist/component/schema.js.map +1 -0
  75. package/dist/nextjs/client.d.ts +4 -0
  76. package/dist/nextjs/client.d.ts.map +1 -0
  77. package/dist/nextjs/client.js +37 -0
  78. package/dist/nextjs/client.js.map +1 -0
  79. package/dist/nextjs/index.d.ts +22 -0
  80. package/dist/nextjs/index.d.ts.map +1 -0
  81. package/dist/nextjs/index.js +98 -0
  82. package/dist/nextjs/index.js.map +1 -0
  83. package/dist/plugins/convex/client.d.ts +6 -0
  84. package/dist/plugins/convex/client.d.ts.map +1 -0
  85. package/dist/plugins/convex/client.js +7 -0
  86. package/dist/plugins/convex/client.js.map +1 -0
  87. package/dist/plugins/convex/index.d.ts +322 -0
  88. package/dist/plugins/convex/index.d.ts.map +1 -0
  89. package/dist/plugins/convex/index.js +422 -0
  90. package/dist/plugins/convex/index.js.map +1 -0
  91. package/dist/plugins/cross-domain/client.d.ts +132 -0
  92. package/dist/plugins/cross-domain/client.d.ts.map +1 -0
  93. package/dist/plugins/cross-domain/client.js +192 -0
  94. package/dist/plugins/cross-domain/client.js.map +1 -0
  95. package/dist/plugins/cross-domain/index.d.ts +51 -0
  96. package/dist/plugins/cross-domain/index.d.ts.map +1 -0
  97. package/dist/plugins/cross-domain/index.js +173 -0
  98. package/dist/plugins/cross-domain/index.js.map +1 -0
  99. package/dist/plugins/index.d.ts +3 -0
  100. package/dist/plugins/index.d.ts.map +1 -0
  101. package/dist/plugins/index.js +3 -0
  102. package/dist/plugins/index.js.map +1 -0
  103. package/dist/react/index.d.ts +80 -0
  104. package/dist/react/index.d.ts.map +1 -0
  105. package/dist/react/index.js +190 -0
  106. package/dist/react/index.js.map +1 -0
  107. package/dist/react-start/index.d.ts +13 -0
  108. package/dist/react-start/index.d.ts.map +1 -0
  109. package/dist/react-start/index.js +101 -0
  110. package/dist/react-start/index.js.map +1 -0
  111. package/dist/utils/index.d.ts +33 -0
  112. package/dist/utils/index.d.ts.map +1 -0
  113. package/dist/utils/index.js +91 -0
  114. package/dist/utils/index.js.map +1 -0
  115. package/package.json +208 -0
  116. package/src/auth-config.ts +80 -0
  117. package/src/auth-options.ts +54 -0
  118. package/src/auth.ts +4 -0
  119. package/src/client/adapter-utils.ts +639 -0
  120. package/src/client/adapter.test.ts +83 -0
  121. package/src/client/adapter.ts +363 -0
  122. package/src/client/create-api.ts +339 -0
  123. package/src/client/create-client.ts +452 -0
  124. package/src/client/create-schema.ts +166 -0
  125. package/src/client/index.ts +22 -0
  126. package/src/client/plugins/index.ts +2 -0
  127. package/src/component/_generated/api.ts +52 -0
  128. package/src/component/_generated/component.ts +2008 -0
  129. package/src/component/_generated/dataModel.ts +60 -0
  130. package/src/component/_generated/server.ts +161 -0
  131. package/src/component/adapter.ts +13 -0
  132. package/src/component/adapterTest.ts +505 -0
  133. package/src/component/convex.config.ts +5 -0
  134. package/src/component/schema.ts +142 -0
  135. package/src/nextjs/client.tsx +54 -0
  136. package/src/nextjs/index.ts +152 -0
  137. package/src/plugins/convex/client.ts +9 -0
  138. package/src/plugins/convex/index.ts +596 -0
  139. package/src/plugins/cross-domain/client.test.ts +217 -0
  140. package/src/plugins/cross-domain/client.ts +234 -0
  141. package/src/plugins/cross-domain/index.ts +199 -0
  142. package/src/plugins/index.ts +2 -0
  143. package/src/react/index.tsx +304 -0
  144. package/src/react-start/index.ts +153 -0
  145. package/src/react-start/vite-env.d.ts +2 -0
  146. package/src/test.ts +18 -0
  147. package/src/utils/index.ts +171 -0
@@ -0,0 +1,2008 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * Generated `ComponentApi` utility.
4
+ *
5
+ * THIS CODE IS AUTOMATICALLY GENERATED.
6
+ *
7
+ * To regenerate, run `npx convex dev`.
8
+ * @module
9
+ */
10
+
11
+ import type { FunctionReference } from "convex/server";
12
+
13
+ /**
14
+ * A utility for referencing a Convex component's exposed API.
15
+ *
16
+ * Useful when expecting a parameter like `components.myComponent`.
17
+ * Usage:
18
+ * ```ts
19
+ * async function myFunction(ctx: QueryCtx, component: ComponentApi) {
20
+ * return ctx.runQuery(component.someFile.someQuery, { ...args });
21
+ * }
22
+ * ```
23
+ */
24
+ export type ComponentApi<Name extends string | undefined = string | undefined> =
25
+ {
26
+ adapter: {
27
+ create: FunctionReference<
28
+ "mutation",
29
+ "internal",
30
+ {
31
+ input:
32
+ | {
33
+ data: {
34
+ createdAt: number;
35
+ displayUsername?: null | string;
36
+ email: string;
37
+ emailVerified: boolean;
38
+ image?: null | string;
39
+ isAnonymous?: null | boolean;
40
+ name: string;
41
+ phoneNumber?: null | string;
42
+ phoneNumberVerified?: null | boolean;
43
+ twoFactorEnabled?: null | boolean;
44
+ updatedAt: number;
45
+ userId?: null | string;
46
+ username?: null | string;
47
+ };
48
+ model: "user";
49
+ }
50
+ | {
51
+ data: {
52
+ createdAt: number;
53
+ expiresAt: number;
54
+ ipAddress?: null | string;
55
+ token: string;
56
+ updatedAt: number;
57
+ userAgent?: null | string;
58
+ userId: string;
59
+ };
60
+ model: "session";
61
+ }
62
+ | {
63
+ data: {
64
+ accessToken?: null | string;
65
+ accessTokenExpiresAt?: null | number;
66
+ accountId: string;
67
+ createdAt: number;
68
+ idToken?: null | string;
69
+ password?: null | string;
70
+ providerId: string;
71
+ refreshToken?: null | string;
72
+ refreshTokenExpiresAt?: null | number;
73
+ scope?: null | string;
74
+ updatedAt: number;
75
+ userId: string;
76
+ };
77
+ model: "account";
78
+ }
79
+ | {
80
+ data: {
81
+ createdAt: number;
82
+ expiresAt: number;
83
+ identifier: string;
84
+ updatedAt: number;
85
+ value: string;
86
+ };
87
+ model: "verification";
88
+ }
89
+ | {
90
+ data: { backupCodes: string; secret: string; userId: string };
91
+ model: "twoFactor";
92
+ }
93
+ | {
94
+ data: {
95
+ aaguid?: null | string;
96
+ backedUp: boolean;
97
+ counter: number;
98
+ createdAt?: null | number;
99
+ credentialID: string;
100
+ deviceType: string;
101
+ name?: null | string;
102
+ publicKey: string;
103
+ transports?: null | string;
104
+ userId: string;
105
+ };
106
+ model: "passkey";
107
+ }
108
+ | {
109
+ data: {
110
+ clientId?: null | string;
111
+ clientSecret?: null | string;
112
+ createdAt?: null | number;
113
+ disabled?: null | boolean;
114
+ icon?: null | string;
115
+ metadata?: null | string;
116
+ name?: null | string;
117
+ redirectURLs?: null | string;
118
+ type?: null | string;
119
+ updatedAt?: null | number;
120
+ userId?: null | string;
121
+ };
122
+ model: "oauthApplication";
123
+ }
124
+ | {
125
+ data: {
126
+ accessToken?: null | string;
127
+ accessTokenExpiresAt?: null | number;
128
+ clientId?: null | string;
129
+ createdAt?: null | number;
130
+ refreshToken?: null | string;
131
+ refreshTokenExpiresAt?: null | number;
132
+ scopes?: null | string;
133
+ updatedAt?: null | number;
134
+ userId?: null | string;
135
+ };
136
+ model: "oauthAccessToken";
137
+ }
138
+ | {
139
+ data: {
140
+ clientId?: null | string;
141
+ consentGiven?: null | boolean;
142
+ createdAt?: null | number;
143
+ scopes?: null | string;
144
+ updatedAt?: null | number;
145
+ userId?: null | string;
146
+ };
147
+ model: "oauthConsent";
148
+ }
149
+ | {
150
+ data: {
151
+ createdAt: number;
152
+ privateKey: string;
153
+ publicKey: string;
154
+ };
155
+ model: "jwks";
156
+ }
157
+ | {
158
+ data: {
159
+ count?: null | number;
160
+ key?: null | string;
161
+ lastRequest?: null | number;
162
+ };
163
+ model: "rateLimit";
164
+ };
165
+ onCreateHandle?: string;
166
+ select?: Array<string>;
167
+ },
168
+ any,
169
+ Name
170
+ >;
171
+ deleteMany: FunctionReference<
172
+ "mutation",
173
+ "internal",
174
+ {
175
+ input:
176
+ | {
177
+ model: "user";
178
+ where?: Array<{
179
+ connector?: "AND" | "OR";
180
+ field:
181
+ | "name"
182
+ | "email"
183
+ | "emailVerified"
184
+ | "image"
185
+ | "createdAt"
186
+ | "updatedAt"
187
+ | "twoFactorEnabled"
188
+ | "isAnonymous"
189
+ | "username"
190
+ | "displayUsername"
191
+ | "phoneNumber"
192
+ | "phoneNumberVerified"
193
+ | "userId"
194
+ | "_id";
195
+ operator?:
196
+ | "lt"
197
+ | "lte"
198
+ | "gt"
199
+ | "gte"
200
+ | "eq"
201
+ | "in"
202
+ | "not_in"
203
+ | "ne"
204
+ | "contains"
205
+ | "starts_with"
206
+ | "ends_with";
207
+ value:
208
+ | string
209
+ | number
210
+ | boolean
211
+ | Array<string>
212
+ | Array<number>
213
+ | null;
214
+ }>;
215
+ }
216
+ | {
217
+ model: "session";
218
+ where?: Array<{
219
+ connector?: "AND" | "OR";
220
+ field:
221
+ | "expiresAt"
222
+ | "token"
223
+ | "createdAt"
224
+ | "updatedAt"
225
+ | "ipAddress"
226
+ | "userAgent"
227
+ | "userId"
228
+ | "_id";
229
+ operator?:
230
+ | "lt"
231
+ | "lte"
232
+ | "gt"
233
+ | "gte"
234
+ | "eq"
235
+ | "in"
236
+ | "not_in"
237
+ | "ne"
238
+ | "contains"
239
+ | "starts_with"
240
+ | "ends_with";
241
+ value:
242
+ | string
243
+ | number
244
+ | boolean
245
+ | Array<string>
246
+ | Array<number>
247
+ | null;
248
+ }>;
249
+ }
250
+ | {
251
+ model: "account";
252
+ where?: Array<{
253
+ connector?: "AND" | "OR";
254
+ field:
255
+ | "accountId"
256
+ | "providerId"
257
+ | "userId"
258
+ | "accessToken"
259
+ | "refreshToken"
260
+ | "idToken"
261
+ | "accessTokenExpiresAt"
262
+ | "refreshTokenExpiresAt"
263
+ | "scope"
264
+ | "password"
265
+ | "createdAt"
266
+ | "updatedAt"
267
+ | "_id";
268
+ operator?:
269
+ | "lt"
270
+ | "lte"
271
+ | "gt"
272
+ | "gte"
273
+ | "eq"
274
+ | "in"
275
+ | "not_in"
276
+ | "ne"
277
+ | "contains"
278
+ | "starts_with"
279
+ | "ends_with";
280
+ value:
281
+ | string
282
+ | number
283
+ | boolean
284
+ | Array<string>
285
+ | Array<number>
286
+ | null;
287
+ }>;
288
+ }
289
+ | {
290
+ model: "verification";
291
+ where?: Array<{
292
+ connector?: "AND" | "OR";
293
+ field:
294
+ | "identifier"
295
+ | "value"
296
+ | "expiresAt"
297
+ | "createdAt"
298
+ | "updatedAt"
299
+ | "_id";
300
+ operator?:
301
+ | "lt"
302
+ | "lte"
303
+ | "gt"
304
+ | "gte"
305
+ | "eq"
306
+ | "in"
307
+ | "not_in"
308
+ | "ne"
309
+ | "contains"
310
+ | "starts_with"
311
+ | "ends_with";
312
+ value:
313
+ | string
314
+ | number
315
+ | boolean
316
+ | Array<string>
317
+ | Array<number>
318
+ | null;
319
+ }>;
320
+ }
321
+ | {
322
+ model: "twoFactor";
323
+ where?: Array<{
324
+ connector?: "AND" | "OR";
325
+ field: "secret" | "backupCodes" | "userId" | "_id";
326
+ operator?:
327
+ | "lt"
328
+ | "lte"
329
+ | "gt"
330
+ | "gte"
331
+ | "eq"
332
+ | "in"
333
+ | "not_in"
334
+ | "ne"
335
+ | "contains"
336
+ | "starts_with"
337
+ | "ends_with";
338
+ value:
339
+ | string
340
+ | number
341
+ | boolean
342
+ | Array<string>
343
+ | Array<number>
344
+ | null;
345
+ }>;
346
+ }
347
+ | {
348
+ model: "passkey";
349
+ where?: Array<{
350
+ connector?: "AND" | "OR";
351
+ field:
352
+ | "name"
353
+ | "publicKey"
354
+ | "userId"
355
+ | "credentialID"
356
+ | "counter"
357
+ | "deviceType"
358
+ | "backedUp"
359
+ | "transports"
360
+ | "createdAt"
361
+ | "aaguid"
362
+ | "_id";
363
+ operator?:
364
+ | "lt"
365
+ | "lte"
366
+ | "gt"
367
+ | "gte"
368
+ | "eq"
369
+ | "in"
370
+ | "not_in"
371
+ | "ne"
372
+ | "contains"
373
+ | "starts_with"
374
+ | "ends_with";
375
+ value:
376
+ | string
377
+ | number
378
+ | boolean
379
+ | Array<string>
380
+ | Array<number>
381
+ | null;
382
+ }>;
383
+ }
384
+ | {
385
+ model: "oauthApplication";
386
+ where?: Array<{
387
+ connector?: "AND" | "OR";
388
+ field:
389
+ | "name"
390
+ | "icon"
391
+ | "metadata"
392
+ | "clientId"
393
+ | "clientSecret"
394
+ | "redirectURLs"
395
+ | "type"
396
+ | "disabled"
397
+ | "userId"
398
+ | "createdAt"
399
+ | "updatedAt"
400
+ | "_id";
401
+ operator?:
402
+ | "lt"
403
+ | "lte"
404
+ | "gt"
405
+ | "gte"
406
+ | "eq"
407
+ | "in"
408
+ | "not_in"
409
+ | "ne"
410
+ | "contains"
411
+ | "starts_with"
412
+ | "ends_with";
413
+ value:
414
+ | string
415
+ | number
416
+ | boolean
417
+ | Array<string>
418
+ | Array<number>
419
+ | null;
420
+ }>;
421
+ }
422
+ | {
423
+ model: "oauthAccessToken";
424
+ where?: Array<{
425
+ connector?: "AND" | "OR";
426
+ field:
427
+ | "accessToken"
428
+ | "refreshToken"
429
+ | "accessTokenExpiresAt"
430
+ | "refreshTokenExpiresAt"
431
+ | "clientId"
432
+ | "userId"
433
+ | "scopes"
434
+ | "createdAt"
435
+ | "updatedAt"
436
+ | "_id";
437
+ operator?:
438
+ | "lt"
439
+ | "lte"
440
+ | "gt"
441
+ | "gte"
442
+ | "eq"
443
+ | "in"
444
+ | "not_in"
445
+ | "ne"
446
+ | "contains"
447
+ | "starts_with"
448
+ | "ends_with";
449
+ value:
450
+ | string
451
+ | number
452
+ | boolean
453
+ | Array<string>
454
+ | Array<number>
455
+ | null;
456
+ }>;
457
+ }
458
+ | {
459
+ model: "oauthConsent";
460
+ where?: Array<{
461
+ connector?: "AND" | "OR";
462
+ field:
463
+ | "clientId"
464
+ | "userId"
465
+ | "scopes"
466
+ | "createdAt"
467
+ | "updatedAt"
468
+ | "consentGiven"
469
+ | "_id";
470
+ operator?:
471
+ | "lt"
472
+ | "lte"
473
+ | "gt"
474
+ | "gte"
475
+ | "eq"
476
+ | "in"
477
+ | "not_in"
478
+ | "ne"
479
+ | "contains"
480
+ | "starts_with"
481
+ | "ends_with";
482
+ value:
483
+ | string
484
+ | number
485
+ | boolean
486
+ | Array<string>
487
+ | Array<number>
488
+ | null;
489
+ }>;
490
+ }
491
+ | {
492
+ model: "jwks";
493
+ where?: Array<{
494
+ connector?: "AND" | "OR";
495
+ field: "publicKey" | "privateKey" | "createdAt" | "_id";
496
+ operator?:
497
+ | "lt"
498
+ | "lte"
499
+ | "gt"
500
+ | "gte"
501
+ | "eq"
502
+ | "in"
503
+ | "not_in"
504
+ | "ne"
505
+ | "contains"
506
+ | "starts_with"
507
+ | "ends_with";
508
+ value:
509
+ | string
510
+ | number
511
+ | boolean
512
+ | Array<string>
513
+ | Array<number>
514
+ | null;
515
+ }>;
516
+ }
517
+ | {
518
+ model: "rateLimit";
519
+ where?: Array<{
520
+ connector?: "AND" | "OR";
521
+ field: "key" | "count" | "lastRequest" | "_id";
522
+ operator?:
523
+ | "lt"
524
+ | "lte"
525
+ | "gt"
526
+ | "gte"
527
+ | "eq"
528
+ | "in"
529
+ | "not_in"
530
+ | "ne"
531
+ | "contains"
532
+ | "starts_with"
533
+ | "ends_with";
534
+ value:
535
+ | string
536
+ | number
537
+ | boolean
538
+ | Array<string>
539
+ | Array<number>
540
+ | null;
541
+ }>;
542
+ };
543
+ onDeleteHandle?: string;
544
+ paginationOpts: {
545
+ cursor: string | null;
546
+ endCursor?: string | null;
547
+ id?: number;
548
+ maximumBytesRead?: number;
549
+ maximumRowsRead?: number;
550
+ numItems: number;
551
+ };
552
+ },
553
+ any,
554
+ Name
555
+ >;
556
+ deleteOne: FunctionReference<
557
+ "mutation",
558
+ "internal",
559
+ {
560
+ input:
561
+ | {
562
+ model: "user";
563
+ where?: Array<{
564
+ connector?: "AND" | "OR";
565
+ field:
566
+ | "name"
567
+ | "email"
568
+ | "emailVerified"
569
+ | "image"
570
+ | "createdAt"
571
+ | "updatedAt"
572
+ | "twoFactorEnabled"
573
+ | "isAnonymous"
574
+ | "username"
575
+ | "displayUsername"
576
+ | "phoneNumber"
577
+ | "phoneNumberVerified"
578
+ | "userId"
579
+ | "_id";
580
+ operator?:
581
+ | "lt"
582
+ | "lte"
583
+ | "gt"
584
+ | "gte"
585
+ | "eq"
586
+ | "in"
587
+ | "not_in"
588
+ | "ne"
589
+ | "contains"
590
+ | "starts_with"
591
+ | "ends_with";
592
+ value:
593
+ | string
594
+ | number
595
+ | boolean
596
+ | Array<string>
597
+ | Array<number>
598
+ | null;
599
+ }>;
600
+ }
601
+ | {
602
+ model: "session";
603
+ where?: Array<{
604
+ connector?: "AND" | "OR";
605
+ field:
606
+ | "expiresAt"
607
+ | "token"
608
+ | "createdAt"
609
+ | "updatedAt"
610
+ | "ipAddress"
611
+ | "userAgent"
612
+ | "userId"
613
+ | "_id";
614
+ operator?:
615
+ | "lt"
616
+ | "lte"
617
+ | "gt"
618
+ | "gte"
619
+ | "eq"
620
+ | "in"
621
+ | "not_in"
622
+ | "ne"
623
+ | "contains"
624
+ | "starts_with"
625
+ | "ends_with";
626
+ value:
627
+ | string
628
+ | number
629
+ | boolean
630
+ | Array<string>
631
+ | Array<number>
632
+ | null;
633
+ }>;
634
+ }
635
+ | {
636
+ model: "account";
637
+ where?: Array<{
638
+ connector?: "AND" | "OR";
639
+ field:
640
+ | "accountId"
641
+ | "providerId"
642
+ | "userId"
643
+ | "accessToken"
644
+ | "refreshToken"
645
+ | "idToken"
646
+ | "accessTokenExpiresAt"
647
+ | "refreshTokenExpiresAt"
648
+ | "scope"
649
+ | "password"
650
+ | "createdAt"
651
+ | "updatedAt"
652
+ | "_id";
653
+ operator?:
654
+ | "lt"
655
+ | "lte"
656
+ | "gt"
657
+ | "gte"
658
+ | "eq"
659
+ | "in"
660
+ | "not_in"
661
+ | "ne"
662
+ | "contains"
663
+ | "starts_with"
664
+ | "ends_with";
665
+ value:
666
+ | string
667
+ | number
668
+ | boolean
669
+ | Array<string>
670
+ | Array<number>
671
+ | null;
672
+ }>;
673
+ }
674
+ | {
675
+ model: "verification";
676
+ where?: Array<{
677
+ connector?: "AND" | "OR";
678
+ field:
679
+ | "identifier"
680
+ | "value"
681
+ | "expiresAt"
682
+ | "createdAt"
683
+ | "updatedAt"
684
+ | "_id";
685
+ operator?:
686
+ | "lt"
687
+ | "lte"
688
+ | "gt"
689
+ | "gte"
690
+ | "eq"
691
+ | "in"
692
+ | "not_in"
693
+ | "ne"
694
+ | "contains"
695
+ | "starts_with"
696
+ | "ends_with";
697
+ value:
698
+ | string
699
+ | number
700
+ | boolean
701
+ | Array<string>
702
+ | Array<number>
703
+ | null;
704
+ }>;
705
+ }
706
+ | {
707
+ model: "twoFactor";
708
+ where?: Array<{
709
+ connector?: "AND" | "OR";
710
+ field: "secret" | "backupCodes" | "userId" | "_id";
711
+ operator?:
712
+ | "lt"
713
+ | "lte"
714
+ | "gt"
715
+ | "gte"
716
+ | "eq"
717
+ | "in"
718
+ | "not_in"
719
+ | "ne"
720
+ | "contains"
721
+ | "starts_with"
722
+ | "ends_with";
723
+ value:
724
+ | string
725
+ | number
726
+ | boolean
727
+ | Array<string>
728
+ | Array<number>
729
+ | null;
730
+ }>;
731
+ }
732
+ | {
733
+ model: "passkey";
734
+ where?: Array<{
735
+ connector?: "AND" | "OR";
736
+ field:
737
+ | "name"
738
+ | "publicKey"
739
+ | "userId"
740
+ | "credentialID"
741
+ | "counter"
742
+ | "deviceType"
743
+ | "backedUp"
744
+ | "transports"
745
+ | "createdAt"
746
+ | "aaguid"
747
+ | "_id";
748
+ operator?:
749
+ | "lt"
750
+ | "lte"
751
+ | "gt"
752
+ | "gte"
753
+ | "eq"
754
+ | "in"
755
+ | "not_in"
756
+ | "ne"
757
+ | "contains"
758
+ | "starts_with"
759
+ | "ends_with";
760
+ value:
761
+ | string
762
+ | number
763
+ | boolean
764
+ | Array<string>
765
+ | Array<number>
766
+ | null;
767
+ }>;
768
+ }
769
+ | {
770
+ model: "oauthApplication";
771
+ where?: Array<{
772
+ connector?: "AND" | "OR";
773
+ field:
774
+ | "name"
775
+ | "icon"
776
+ | "metadata"
777
+ | "clientId"
778
+ | "clientSecret"
779
+ | "redirectURLs"
780
+ | "type"
781
+ | "disabled"
782
+ | "userId"
783
+ | "createdAt"
784
+ | "updatedAt"
785
+ | "_id";
786
+ operator?:
787
+ | "lt"
788
+ | "lte"
789
+ | "gt"
790
+ | "gte"
791
+ | "eq"
792
+ | "in"
793
+ | "not_in"
794
+ | "ne"
795
+ | "contains"
796
+ | "starts_with"
797
+ | "ends_with";
798
+ value:
799
+ | string
800
+ | number
801
+ | boolean
802
+ | Array<string>
803
+ | Array<number>
804
+ | null;
805
+ }>;
806
+ }
807
+ | {
808
+ model: "oauthAccessToken";
809
+ where?: Array<{
810
+ connector?: "AND" | "OR";
811
+ field:
812
+ | "accessToken"
813
+ | "refreshToken"
814
+ | "accessTokenExpiresAt"
815
+ | "refreshTokenExpiresAt"
816
+ | "clientId"
817
+ | "userId"
818
+ | "scopes"
819
+ | "createdAt"
820
+ | "updatedAt"
821
+ | "_id";
822
+ operator?:
823
+ | "lt"
824
+ | "lte"
825
+ | "gt"
826
+ | "gte"
827
+ | "eq"
828
+ | "in"
829
+ | "not_in"
830
+ | "ne"
831
+ | "contains"
832
+ | "starts_with"
833
+ | "ends_with";
834
+ value:
835
+ | string
836
+ | number
837
+ | boolean
838
+ | Array<string>
839
+ | Array<number>
840
+ | null;
841
+ }>;
842
+ }
843
+ | {
844
+ model: "oauthConsent";
845
+ where?: Array<{
846
+ connector?: "AND" | "OR";
847
+ field:
848
+ | "clientId"
849
+ | "userId"
850
+ | "scopes"
851
+ | "createdAt"
852
+ | "updatedAt"
853
+ | "consentGiven"
854
+ | "_id";
855
+ operator?:
856
+ | "lt"
857
+ | "lte"
858
+ | "gt"
859
+ | "gte"
860
+ | "eq"
861
+ | "in"
862
+ | "not_in"
863
+ | "ne"
864
+ | "contains"
865
+ | "starts_with"
866
+ | "ends_with";
867
+ value:
868
+ | string
869
+ | number
870
+ | boolean
871
+ | Array<string>
872
+ | Array<number>
873
+ | null;
874
+ }>;
875
+ }
876
+ | {
877
+ model: "jwks";
878
+ where?: Array<{
879
+ connector?: "AND" | "OR";
880
+ field: "publicKey" | "privateKey" | "createdAt" | "_id";
881
+ operator?:
882
+ | "lt"
883
+ | "lte"
884
+ | "gt"
885
+ | "gte"
886
+ | "eq"
887
+ | "in"
888
+ | "not_in"
889
+ | "ne"
890
+ | "contains"
891
+ | "starts_with"
892
+ | "ends_with";
893
+ value:
894
+ | string
895
+ | number
896
+ | boolean
897
+ | Array<string>
898
+ | Array<number>
899
+ | null;
900
+ }>;
901
+ }
902
+ | {
903
+ model: "rateLimit";
904
+ where?: Array<{
905
+ connector?: "AND" | "OR";
906
+ field: "key" | "count" | "lastRequest" | "_id";
907
+ operator?:
908
+ | "lt"
909
+ | "lte"
910
+ | "gt"
911
+ | "gte"
912
+ | "eq"
913
+ | "in"
914
+ | "not_in"
915
+ | "ne"
916
+ | "contains"
917
+ | "starts_with"
918
+ | "ends_with";
919
+ value:
920
+ | string
921
+ | number
922
+ | boolean
923
+ | Array<string>
924
+ | Array<number>
925
+ | null;
926
+ }>;
927
+ };
928
+ onDeleteHandle?: string;
929
+ },
930
+ any,
931
+ Name
932
+ >;
933
+ findMany: FunctionReference<
934
+ "query",
935
+ "internal",
936
+ {
937
+ join?: any;
938
+ limit?: number;
939
+ model:
940
+ | "user"
941
+ | "session"
942
+ | "account"
943
+ | "verification"
944
+ | "twoFactor"
945
+ | "passkey"
946
+ | "oauthApplication"
947
+ | "oauthAccessToken"
948
+ | "oauthConsent"
949
+ | "jwks"
950
+ | "rateLimit";
951
+ offset?: number;
952
+ paginationOpts: {
953
+ cursor: string | null;
954
+ endCursor?: string | null;
955
+ id?: number;
956
+ maximumBytesRead?: number;
957
+ maximumRowsRead?: number;
958
+ numItems: number;
959
+ };
960
+ sortBy?: { direction: "asc" | "desc"; field: string };
961
+ where?: Array<{
962
+ connector?: "AND" | "OR";
963
+ field: string;
964
+ operator?:
965
+ | "lt"
966
+ | "lte"
967
+ | "gt"
968
+ | "gte"
969
+ | "eq"
970
+ | "in"
971
+ | "not_in"
972
+ | "ne"
973
+ | "contains"
974
+ | "starts_with"
975
+ | "ends_with";
976
+ value:
977
+ | string
978
+ | number
979
+ | boolean
980
+ | Array<string>
981
+ | Array<number>
982
+ | null;
983
+ }>;
984
+ },
985
+ any,
986
+ Name
987
+ >;
988
+ findOne: FunctionReference<
989
+ "query",
990
+ "internal",
991
+ {
992
+ join?: any;
993
+ model:
994
+ | "user"
995
+ | "session"
996
+ | "account"
997
+ | "verification"
998
+ | "twoFactor"
999
+ | "passkey"
1000
+ | "oauthApplication"
1001
+ | "oauthAccessToken"
1002
+ | "oauthConsent"
1003
+ | "jwks"
1004
+ | "rateLimit";
1005
+ select?: Array<string>;
1006
+ where?: Array<{
1007
+ connector?: "AND" | "OR";
1008
+ field: string;
1009
+ operator?:
1010
+ | "lt"
1011
+ | "lte"
1012
+ | "gt"
1013
+ | "gte"
1014
+ | "eq"
1015
+ | "in"
1016
+ | "not_in"
1017
+ | "ne"
1018
+ | "contains"
1019
+ | "starts_with"
1020
+ | "ends_with";
1021
+ value:
1022
+ | string
1023
+ | number
1024
+ | boolean
1025
+ | Array<string>
1026
+ | Array<number>
1027
+ | null;
1028
+ }>;
1029
+ },
1030
+ any,
1031
+ Name
1032
+ >;
1033
+ updateMany: FunctionReference<
1034
+ "mutation",
1035
+ "internal",
1036
+ {
1037
+ input:
1038
+ | {
1039
+ model: "user";
1040
+ update: {
1041
+ createdAt?: number;
1042
+ displayUsername?: null | string;
1043
+ email?: string;
1044
+ emailVerified?: boolean;
1045
+ image?: null | string;
1046
+ isAnonymous?: null | boolean;
1047
+ name?: string;
1048
+ phoneNumber?: null | string;
1049
+ phoneNumberVerified?: null | boolean;
1050
+ twoFactorEnabled?: null | boolean;
1051
+ updatedAt?: number;
1052
+ userId?: null | string;
1053
+ username?: null | string;
1054
+ };
1055
+ where?: Array<{
1056
+ connector?: "AND" | "OR";
1057
+ field:
1058
+ | "name"
1059
+ | "email"
1060
+ | "emailVerified"
1061
+ | "image"
1062
+ | "createdAt"
1063
+ | "updatedAt"
1064
+ | "twoFactorEnabled"
1065
+ | "isAnonymous"
1066
+ | "username"
1067
+ | "displayUsername"
1068
+ | "phoneNumber"
1069
+ | "phoneNumberVerified"
1070
+ | "userId"
1071
+ | "_id";
1072
+ operator?:
1073
+ | "lt"
1074
+ | "lte"
1075
+ | "gt"
1076
+ | "gte"
1077
+ | "eq"
1078
+ | "in"
1079
+ | "not_in"
1080
+ | "ne"
1081
+ | "contains"
1082
+ | "starts_with"
1083
+ | "ends_with";
1084
+ value:
1085
+ | string
1086
+ | number
1087
+ | boolean
1088
+ | Array<string>
1089
+ | Array<number>
1090
+ | null;
1091
+ }>;
1092
+ }
1093
+ | {
1094
+ model: "session";
1095
+ update: {
1096
+ createdAt?: number;
1097
+ expiresAt?: number;
1098
+ ipAddress?: null | string;
1099
+ token?: string;
1100
+ updatedAt?: number;
1101
+ userAgent?: null | string;
1102
+ userId?: string;
1103
+ };
1104
+ where?: Array<{
1105
+ connector?: "AND" | "OR";
1106
+ field:
1107
+ | "expiresAt"
1108
+ | "token"
1109
+ | "createdAt"
1110
+ | "updatedAt"
1111
+ | "ipAddress"
1112
+ | "userAgent"
1113
+ | "userId"
1114
+ | "_id";
1115
+ operator?:
1116
+ | "lt"
1117
+ | "lte"
1118
+ | "gt"
1119
+ | "gte"
1120
+ | "eq"
1121
+ | "in"
1122
+ | "not_in"
1123
+ | "ne"
1124
+ | "contains"
1125
+ | "starts_with"
1126
+ | "ends_with";
1127
+ value:
1128
+ | string
1129
+ | number
1130
+ | boolean
1131
+ | Array<string>
1132
+ | Array<number>
1133
+ | null;
1134
+ }>;
1135
+ }
1136
+ | {
1137
+ model: "account";
1138
+ update: {
1139
+ accessToken?: null | string;
1140
+ accessTokenExpiresAt?: null | number;
1141
+ accountId?: string;
1142
+ createdAt?: number;
1143
+ idToken?: null | string;
1144
+ password?: null | string;
1145
+ providerId?: string;
1146
+ refreshToken?: null | string;
1147
+ refreshTokenExpiresAt?: null | number;
1148
+ scope?: null | string;
1149
+ updatedAt?: number;
1150
+ userId?: string;
1151
+ };
1152
+ where?: Array<{
1153
+ connector?: "AND" | "OR";
1154
+ field:
1155
+ | "accountId"
1156
+ | "providerId"
1157
+ | "userId"
1158
+ | "accessToken"
1159
+ | "refreshToken"
1160
+ | "idToken"
1161
+ | "accessTokenExpiresAt"
1162
+ | "refreshTokenExpiresAt"
1163
+ | "scope"
1164
+ | "password"
1165
+ | "createdAt"
1166
+ | "updatedAt"
1167
+ | "_id";
1168
+ operator?:
1169
+ | "lt"
1170
+ | "lte"
1171
+ | "gt"
1172
+ | "gte"
1173
+ | "eq"
1174
+ | "in"
1175
+ | "not_in"
1176
+ | "ne"
1177
+ | "contains"
1178
+ | "starts_with"
1179
+ | "ends_with";
1180
+ value:
1181
+ | string
1182
+ | number
1183
+ | boolean
1184
+ | Array<string>
1185
+ | Array<number>
1186
+ | null;
1187
+ }>;
1188
+ }
1189
+ | {
1190
+ model: "verification";
1191
+ update: {
1192
+ createdAt?: number;
1193
+ expiresAt?: number;
1194
+ identifier?: string;
1195
+ updatedAt?: number;
1196
+ value?: string;
1197
+ };
1198
+ where?: Array<{
1199
+ connector?: "AND" | "OR";
1200
+ field:
1201
+ | "identifier"
1202
+ | "value"
1203
+ | "expiresAt"
1204
+ | "createdAt"
1205
+ | "updatedAt"
1206
+ | "_id";
1207
+ operator?:
1208
+ | "lt"
1209
+ | "lte"
1210
+ | "gt"
1211
+ | "gte"
1212
+ | "eq"
1213
+ | "in"
1214
+ | "not_in"
1215
+ | "ne"
1216
+ | "contains"
1217
+ | "starts_with"
1218
+ | "ends_with";
1219
+ value:
1220
+ | string
1221
+ | number
1222
+ | boolean
1223
+ | Array<string>
1224
+ | Array<number>
1225
+ | null;
1226
+ }>;
1227
+ }
1228
+ | {
1229
+ model: "twoFactor";
1230
+ update: {
1231
+ backupCodes?: string;
1232
+ secret?: string;
1233
+ userId?: string;
1234
+ };
1235
+ where?: Array<{
1236
+ connector?: "AND" | "OR";
1237
+ field: "secret" | "backupCodes" | "userId" | "_id";
1238
+ operator?:
1239
+ | "lt"
1240
+ | "lte"
1241
+ | "gt"
1242
+ | "gte"
1243
+ | "eq"
1244
+ | "in"
1245
+ | "not_in"
1246
+ | "ne"
1247
+ | "contains"
1248
+ | "starts_with"
1249
+ | "ends_with";
1250
+ value:
1251
+ | string
1252
+ | number
1253
+ | boolean
1254
+ | Array<string>
1255
+ | Array<number>
1256
+ | null;
1257
+ }>;
1258
+ }
1259
+ | {
1260
+ model: "passkey";
1261
+ update: {
1262
+ aaguid?: null | string;
1263
+ backedUp?: boolean;
1264
+ counter?: number;
1265
+ createdAt?: null | number;
1266
+ credentialID?: string;
1267
+ deviceType?: string;
1268
+ name?: null | string;
1269
+ publicKey?: string;
1270
+ transports?: null | string;
1271
+ userId?: string;
1272
+ };
1273
+ where?: Array<{
1274
+ connector?: "AND" | "OR";
1275
+ field:
1276
+ | "name"
1277
+ | "publicKey"
1278
+ | "userId"
1279
+ | "credentialID"
1280
+ | "counter"
1281
+ | "deviceType"
1282
+ | "backedUp"
1283
+ | "transports"
1284
+ | "createdAt"
1285
+ | "aaguid"
1286
+ | "_id";
1287
+ operator?:
1288
+ | "lt"
1289
+ | "lte"
1290
+ | "gt"
1291
+ | "gte"
1292
+ | "eq"
1293
+ | "in"
1294
+ | "not_in"
1295
+ | "ne"
1296
+ | "contains"
1297
+ | "starts_with"
1298
+ | "ends_with";
1299
+ value:
1300
+ | string
1301
+ | number
1302
+ | boolean
1303
+ | Array<string>
1304
+ | Array<number>
1305
+ | null;
1306
+ }>;
1307
+ }
1308
+ | {
1309
+ model: "oauthApplication";
1310
+ update: {
1311
+ clientId?: null | string;
1312
+ clientSecret?: null | string;
1313
+ createdAt?: null | number;
1314
+ disabled?: null | boolean;
1315
+ icon?: null | string;
1316
+ metadata?: null | string;
1317
+ name?: null | string;
1318
+ redirectURLs?: null | string;
1319
+ type?: null | string;
1320
+ updatedAt?: null | number;
1321
+ userId?: null | string;
1322
+ };
1323
+ where?: Array<{
1324
+ connector?: "AND" | "OR";
1325
+ field:
1326
+ | "name"
1327
+ | "icon"
1328
+ | "metadata"
1329
+ | "clientId"
1330
+ | "clientSecret"
1331
+ | "redirectURLs"
1332
+ | "type"
1333
+ | "disabled"
1334
+ | "userId"
1335
+ | "createdAt"
1336
+ | "updatedAt"
1337
+ | "_id";
1338
+ operator?:
1339
+ | "lt"
1340
+ | "lte"
1341
+ | "gt"
1342
+ | "gte"
1343
+ | "eq"
1344
+ | "in"
1345
+ | "not_in"
1346
+ | "ne"
1347
+ | "contains"
1348
+ | "starts_with"
1349
+ | "ends_with";
1350
+ value:
1351
+ | string
1352
+ | number
1353
+ | boolean
1354
+ | Array<string>
1355
+ | Array<number>
1356
+ | null;
1357
+ }>;
1358
+ }
1359
+ | {
1360
+ model: "oauthAccessToken";
1361
+ update: {
1362
+ accessToken?: null | string;
1363
+ accessTokenExpiresAt?: null | number;
1364
+ clientId?: null | string;
1365
+ createdAt?: null | number;
1366
+ refreshToken?: null | string;
1367
+ refreshTokenExpiresAt?: null | number;
1368
+ scopes?: null | string;
1369
+ updatedAt?: null | number;
1370
+ userId?: null | string;
1371
+ };
1372
+ where?: Array<{
1373
+ connector?: "AND" | "OR";
1374
+ field:
1375
+ | "accessToken"
1376
+ | "refreshToken"
1377
+ | "accessTokenExpiresAt"
1378
+ | "refreshTokenExpiresAt"
1379
+ | "clientId"
1380
+ | "userId"
1381
+ | "scopes"
1382
+ | "createdAt"
1383
+ | "updatedAt"
1384
+ | "_id";
1385
+ operator?:
1386
+ | "lt"
1387
+ | "lte"
1388
+ | "gt"
1389
+ | "gte"
1390
+ | "eq"
1391
+ | "in"
1392
+ | "not_in"
1393
+ | "ne"
1394
+ | "contains"
1395
+ | "starts_with"
1396
+ | "ends_with";
1397
+ value:
1398
+ | string
1399
+ | number
1400
+ | boolean
1401
+ | Array<string>
1402
+ | Array<number>
1403
+ | null;
1404
+ }>;
1405
+ }
1406
+ | {
1407
+ model: "oauthConsent";
1408
+ update: {
1409
+ clientId?: null | string;
1410
+ consentGiven?: null | boolean;
1411
+ createdAt?: null | number;
1412
+ scopes?: null | string;
1413
+ updatedAt?: null | number;
1414
+ userId?: null | string;
1415
+ };
1416
+ where?: Array<{
1417
+ connector?: "AND" | "OR";
1418
+ field:
1419
+ | "clientId"
1420
+ | "userId"
1421
+ | "scopes"
1422
+ | "createdAt"
1423
+ | "updatedAt"
1424
+ | "consentGiven"
1425
+ | "_id";
1426
+ operator?:
1427
+ | "lt"
1428
+ | "lte"
1429
+ | "gt"
1430
+ | "gte"
1431
+ | "eq"
1432
+ | "in"
1433
+ | "not_in"
1434
+ | "ne"
1435
+ | "contains"
1436
+ | "starts_with"
1437
+ | "ends_with";
1438
+ value:
1439
+ | string
1440
+ | number
1441
+ | boolean
1442
+ | Array<string>
1443
+ | Array<number>
1444
+ | null;
1445
+ }>;
1446
+ }
1447
+ | {
1448
+ model: "jwks";
1449
+ update: {
1450
+ createdAt?: number;
1451
+ privateKey?: string;
1452
+ publicKey?: string;
1453
+ };
1454
+ where?: Array<{
1455
+ connector?: "AND" | "OR";
1456
+ field: "publicKey" | "privateKey" | "createdAt" | "_id";
1457
+ operator?:
1458
+ | "lt"
1459
+ | "lte"
1460
+ | "gt"
1461
+ | "gte"
1462
+ | "eq"
1463
+ | "in"
1464
+ | "not_in"
1465
+ | "ne"
1466
+ | "contains"
1467
+ | "starts_with"
1468
+ | "ends_with";
1469
+ value:
1470
+ | string
1471
+ | number
1472
+ | boolean
1473
+ | Array<string>
1474
+ | Array<number>
1475
+ | null;
1476
+ }>;
1477
+ }
1478
+ | {
1479
+ model: "rateLimit";
1480
+ update: {
1481
+ count?: null | number;
1482
+ key?: null | string;
1483
+ lastRequest?: null | number;
1484
+ };
1485
+ where?: Array<{
1486
+ connector?: "AND" | "OR";
1487
+ field: "key" | "count" | "lastRequest" | "_id";
1488
+ operator?:
1489
+ | "lt"
1490
+ | "lte"
1491
+ | "gt"
1492
+ | "gte"
1493
+ | "eq"
1494
+ | "in"
1495
+ | "not_in"
1496
+ | "ne"
1497
+ | "contains"
1498
+ | "starts_with"
1499
+ | "ends_with";
1500
+ value:
1501
+ | string
1502
+ | number
1503
+ | boolean
1504
+ | Array<string>
1505
+ | Array<number>
1506
+ | null;
1507
+ }>;
1508
+ };
1509
+ onUpdateHandle?: string;
1510
+ paginationOpts: {
1511
+ cursor: string | null;
1512
+ endCursor?: string | null;
1513
+ id?: number;
1514
+ maximumBytesRead?: number;
1515
+ maximumRowsRead?: number;
1516
+ numItems: number;
1517
+ };
1518
+ },
1519
+ any,
1520
+ Name
1521
+ >;
1522
+ updateOne: FunctionReference<
1523
+ "mutation",
1524
+ "internal",
1525
+ {
1526
+ input:
1527
+ | {
1528
+ model: "user";
1529
+ update: {
1530
+ createdAt?: number;
1531
+ displayUsername?: null | string;
1532
+ email?: string;
1533
+ emailVerified?: boolean;
1534
+ image?: null | string;
1535
+ isAnonymous?: null | boolean;
1536
+ name?: string;
1537
+ phoneNumber?: null | string;
1538
+ phoneNumberVerified?: null | boolean;
1539
+ twoFactorEnabled?: null | boolean;
1540
+ updatedAt?: number;
1541
+ userId?: null | string;
1542
+ username?: null | string;
1543
+ };
1544
+ where?: Array<{
1545
+ connector?: "AND" | "OR";
1546
+ field:
1547
+ | "name"
1548
+ | "email"
1549
+ | "emailVerified"
1550
+ | "image"
1551
+ | "createdAt"
1552
+ | "updatedAt"
1553
+ | "twoFactorEnabled"
1554
+ | "isAnonymous"
1555
+ | "username"
1556
+ | "displayUsername"
1557
+ | "phoneNumber"
1558
+ | "phoneNumberVerified"
1559
+ | "userId"
1560
+ | "_id";
1561
+ operator?:
1562
+ | "lt"
1563
+ | "lte"
1564
+ | "gt"
1565
+ | "gte"
1566
+ | "eq"
1567
+ | "in"
1568
+ | "not_in"
1569
+ | "ne"
1570
+ | "contains"
1571
+ | "starts_with"
1572
+ | "ends_with";
1573
+ value:
1574
+ | string
1575
+ | number
1576
+ | boolean
1577
+ | Array<string>
1578
+ | Array<number>
1579
+ | null;
1580
+ }>;
1581
+ }
1582
+ | {
1583
+ model: "session";
1584
+ update: {
1585
+ createdAt?: number;
1586
+ expiresAt?: number;
1587
+ ipAddress?: null | string;
1588
+ token?: string;
1589
+ updatedAt?: number;
1590
+ userAgent?: null | string;
1591
+ userId?: string;
1592
+ };
1593
+ where?: Array<{
1594
+ connector?: "AND" | "OR";
1595
+ field:
1596
+ | "expiresAt"
1597
+ | "token"
1598
+ | "createdAt"
1599
+ | "updatedAt"
1600
+ | "ipAddress"
1601
+ | "userAgent"
1602
+ | "userId"
1603
+ | "_id";
1604
+ operator?:
1605
+ | "lt"
1606
+ | "lte"
1607
+ | "gt"
1608
+ | "gte"
1609
+ | "eq"
1610
+ | "in"
1611
+ | "not_in"
1612
+ | "ne"
1613
+ | "contains"
1614
+ | "starts_with"
1615
+ | "ends_with";
1616
+ value:
1617
+ | string
1618
+ | number
1619
+ | boolean
1620
+ | Array<string>
1621
+ | Array<number>
1622
+ | null;
1623
+ }>;
1624
+ }
1625
+ | {
1626
+ model: "account";
1627
+ update: {
1628
+ accessToken?: null | string;
1629
+ accessTokenExpiresAt?: null | number;
1630
+ accountId?: string;
1631
+ createdAt?: number;
1632
+ idToken?: null | string;
1633
+ password?: null | string;
1634
+ providerId?: string;
1635
+ refreshToken?: null | string;
1636
+ refreshTokenExpiresAt?: null | number;
1637
+ scope?: null | string;
1638
+ updatedAt?: number;
1639
+ userId?: string;
1640
+ };
1641
+ where?: Array<{
1642
+ connector?: "AND" | "OR";
1643
+ field:
1644
+ | "accountId"
1645
+ | "providerId"
1646
+ | "userId"
1647
+ | "accessToken"
1648
+ | "refreshToken"
1649
+ | "idToken"
1650
+ | "accessTokenExpiresAt"
1651
+ | "refreshTokenExpiresAt"
1652
+ | "scope"
1653
+ | "password"
1654
+ | "createdAt"
1655
+ | "updatedAt"
1656
+ | "_id";
1657
+ operator?:
1658
+ | "lt"
1659
+ | "lte"
1660
+ | "gt"
1661
+ | "gte"
1662
+ | "eq"
1663
+ | "in"
1664
+ | "not_in"
1665
+ | "ne"
1666
+ | "contains"
1667
+ | "starts_with"
1668
+ | "ends_with";
1669
+ value:
1670
+ | string
1671
+ | number
1672
+ | boolean
1673
+ | Array<string>
1674
+ | Array<number>
1675
+ | null;
1676
+ }>;
1677
+ }
1678
+ | {
1679
+ model: "verification";
1680
+ update: {
1681
+ createdAt?: number;
1682
+ expiresAt?: number;
1683
+ identifier?: string;
1684
+ updatedAt?: number;
1685
+ value?: string;
1686
+ };
1687
+ where?: Array<{
1688
+ connector?: "AND" | "OR";
1689
+ field:
1690
+ | "identifier"
1691
+ | "value"
1692
+ | "expiresAt"
1693
+ | "createdAt"
1694
+ | "updatedAt"
1695
+ | "_id";
1696
+ operator?:
1697
+ | "lt"
1698
+ | "lte"
1699
+ | "gt"
1700
+ | "gte"
1701
+ | "eq"
1702
+ | "in"
1703
+ | "not_in"
1704
+ | "ne"
1705
+ | "contains"
1706
+ | "starts_with"
1707
+ | "ends_with";
1708
+ value:
1709
+ | string
1710
+ | number
1711
+ | boolean
1712
+ | Array<string>
1713
+ | Array<number>
1714
+ | null;
1715
+ }>;
1716
+ }
1717
+ | {
1718
+ model: "twoFactor";
1719
+ update: {
1720
+ backupCodes?: string;
1721
+ secret?: string;
1722
+ userId?: string;
1723
+ };
1724
+ where?: Array<{
1725
+ connector?: "AND" | "OR";
1726
+ field: "secret" | "backupCodes" | "userId" | "_id";
1727
+ operator?:
1728
+ | "lt"
1729
+ | "lte"
1730
+ | "gt"
1731
+ | "gte"
1732
+ | "eq"
1733
+ | "in"
1734
+ | "not_in"
1735
+ | "ne"
1736
+ | "contains"
1737
+ | "starts_with"
1738
+ | "ends_with";
1739
+ value:
1740
+ | string
1741
+ | number
1742
+ | boolean
1743
+ | Array<string>
1744
+ | Array<number>
1745
+ | null;
1746
+ }>;
1747
+ }
1748
+ | {
1749
+ model: "passkey";
1750
+ update: {
1751
+ aaguid?: null | string;
1752
+ backedUp?: boolean;
1753
+ counter?: number;
1754
+ createdAt?: null | number;
1755
+ credentialID?: string;
1756
+ deviceType?: string;
1757
+ name?: null | string;
1758
+ publicKey?: string;
1759
+ transports?: null | string;
1760
+ userId?: string;
1761
+ };
1762
+ where?: Array<{
1763
+ connector?: "AND" | "OR";
1764
+ field:
1765
+ | "name"
1766
+ | "publicKey"
1767
+ | "userId"
1768
+ | "credentialID"
1769
+ | "counter"
1770
+ | "deviceType"
1771
+ | "backedUp"
1772
+ | "transports"
1773
+ | "createdAt"
1774
+ | "aaguid"
1775
+ | "_id";
1776
+ operator?:
1777
+ | "lt"
1778
+ | "lte"
1779
+ | "gt"
1780
+ | "gte"
1781
+ | "eq"
1782
+ | "in"
1783
+ | "not_in"
1784
+ | "ne"
1785
+ | "contains"
1786
+ | "starts_with"
1787
+ | "ends_with";
1788
+ value:
1789
+ | string
1790
+ | number
1791
+ | boolean
1792
+ | Array<string>
1793
+ | Array<number>
1794
+ | null;
1795
+ }>;
1796
+ }
1797
+ | {
1798
+ model: "oauthApplication";
1799
+ update: {
1800
+ clientId?: null | string;
1801
+ clientSecret?: null | string;
1802
+ createdAt?: null | number;
1803
+ disabled?: null | boolean;
1804
+ icon?: null | string;
1805
+ metadata?: null | string;
1806
+ name?: null | string;
1807
+ redirectURLs?: null | string;
1808
+ type?: null | string;
1809
+ updatedAt?: null | number;
1810
+ userId?: null | string;
1811
+ };
1812
+ where?: Array<{
1813
+ connector?: "AND" | "OR";
1814
+ field:
1815
+ | "name"
1816
+ | "icon"
1817
+ | "metadata"
1818
+ | "clientId"
1819
+ | "clientSecret"
1820
+ | "redirectURLs"
1821
+ | "type"
1822
+ | "disabled"
1823
+ | "userId"
1824
+ | "createdAt"
1825
+ | "updatedAt"
1826
+ | "_id";
1827
+ operator?:
1828
+ | "lt"
1829
+ | "lte"
1830
+ | "gt"
1831
+ | "gte"
1832
+ | "eq"
1833
+ | "in"
1834
+ | "not_in"
1835
+ | "ne"
1836
+ | "contains"
1837
+ | "starts_with"
1838
+ | "ends_with";
1839
+ value:
1840
+ | string
1841
+ | number
1842
+ | boolean
1843
+ | Array<string>
1844
+ | Array<number>
1845
+ | null;
1846
+ }>;
1847
+ }
1848
+ | {
1849
+ model: "oauthAccessToken";
1850
+ update: {
1851
+ accessToken?: null | string;
1852
+ accessTokenExpiresAt?: null | number;
1853
+ clientId?: null | string;
1854
+ createdAt?: null | number;
1855
+ refreshToken?: null | string;
1856
+ refreshTokenExpiresAt?: null | number;
1857
+ scopes?: null | string;
1858
+ updatedAt?: null | number;
1859
+ userId?: null | string;
1860
+ };
1861
+ where?: Array<{
1862
+ connector?: "AND" | "OR";
1863
+ field:
1864
+ | "accessToken"
1865
+ | "refreshToken"
1866
+ | "accessTokenExpiresAt"
1867
+ | "refreshTokenExpiresAt"
1868
+ | "clientId"
1869
+ | "userId"
1870
+ | "scopes"
1871
+ | "createdAt"
1872
+ | "updatedAt"
1873
+ | "_id";
1874
+ operator?:
1875
+ | "lt"
1876
+ | "lte"
1877
+ | "gt"
1878
+ | "gte"
1879
+ | "eq"
1880
+ | "in"
1881
+ | "not_in"
1882
+ | "ne"
1883
+ | "contains"
1884
+ | "starts_with"
1885
+ | "ends_with";
1886
+ value:
1887
+ | string
1888
+ | number
1889
+ | boolean
1890
+ | Array<string>
1891
+ | Array<number>
1892
+ | null;
1893
+ }>;
1894
+ }
1895
+ | {
1896
+ model: "oauthConsent";
1897
+ update: {
1898
+ clientId?: null | string;
1899
+ consentGiven?: null | boolean;
1900
+ createdAt?: null | number;
1901
+ scopes?: null | string;
1902
+ updatedAt?: null | number;
1903
+ userId?: null | string;
1904
+ };
1905
+ where?: Array<{
1906
+ connector?: "AND" | "OR";
1907
+ field:
1908
+ | "clientId"
1909
+ | "userId"
1910
+ | "scopes"
1911
+ | "createdAt"
1912
+ | "updatedAt"
1913
+ | "consentGiven"
1914
+ | "_id";
1915
+ operator?:
1916
+ | "lt"
1917
+ | "lte"
1918
+ | "gt"
1919
+ | "gte"
1920
+ | "eq"
1921
+ | "in"
1922
+ | "not_in"
1923
+ | "ne"
1924
+ | "contains"
1925
+ | "starts_with"
1926
+ | "ends_with";
1927
+ value:
1928
+ | string
1929
+ | number
1930
+ | boolean
1931
+ | Array<string>
1932
+ | Array<number>
1933
+ | null;
1934
+ }>;
1935
+ }
1936
+ | {
1937
+ model: "jwks";
1938
+ update: {
1939
+ createdAt?: number;
1940
+ privateKey?: string;
1941
+ publicKey?: string;
1942
+ };
1943
+ where?: Array<{
1944
+ connector?: "AND" | "OR";
1945
+ field: "publicKey" | "privateKey" | "createdAt" | "_id";
1946
+ operator?:
1947
+ | "lt"
1948
+ | "lte"
1949
+ | "gt"
1950
+ | "gte"
1951
+ | "eq"
1952
+ | "in"
1953
+ | "not_in"
1954
+ | "ne"
1955
+ | "contains"
1956
+ | "starts_with"
1957
+ | "ends_with";
1958
+ value:
1959
+ | string
1960
+ | number
1961
+ | boolean
1962
+ | Array<string>
1963
+ | Array<number>
1964
+ | null;
1965
+ }>;
1966
+ }
1967
+ | {
1968
+ model: "rateLimit";
1969
+ update: {
1970
+ count?: null | number;
1971
+ key?: null | string;
1972
+ lastRequest?: null | number;
1973
+ };
1974
+ where?: Array<{
1975
+ connector?: "AND" | "OR";
1976
+ field: "key" | "count" | "lastRequest" | "_id";
1977
+ operator?:
1978
+ | "lt"
1979
+ | "lte"
1980
+ | "gt"
1981
+ | "gte"
1982
+ | "eq"
1983
+ | "in"
1984
+ | "not_in"
1985
+ | "ne"
1986
+ | "contains"
1987
+ | "starts_with"
1988
+ | "ends_with";
1989
+ value:
1990
+ | string
1991
+ | number
1992
+ | boolean
1993
+ | Array<string>
1994
+ | Array<number>
1995
+ | null;
1996
+ }>;
1997
+ };
1998
+ onUpdateHandle?: string;
1999
+ },
2000
+ any,
2001
+ Name
2002
+ >;
2003
+ };
2004
+ adapterTest: {
2005
+ runCustomTests: FunctionReference<"action", "internal", any, any, Name>;
2006
+ runTests: FunctionReference<"action", "internal", any, any, Name>;
2007
+ };
2008
+ };