@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,787 @@
1
+ /**
2
+ * Generated `ComponentApi` utility.
3
+ *
4
+ * THIS CODE IS AUTOMATICALLY GENERATED.
5
+ *
6
+ * To regenerate, run `npx convex dev`.
7
+ * @module
8
+ */
9
+ import type { FunctionReference } from "convex/server";
10
+ /**
11
+ * A utility for referencing a Convex component's exposed API.
12
+ *
13
+ * Useful when expecting a parameter like `components.myComponent`.
14
+ * Usage:
15
+ * ```ts
16
+ * async function myFunction(ctx: QueryCtx, component: ComponentApi) {
17
+ * return ctx.runQuery(component.someFile.someQuery, { ...args });
18
+ * }
19
+ * ```
20
+ */
21
+ export type ComponentApi<Name extends string | undefined = string | undefined> = {
22
+ adapter: {
23
+ create: FunctionReference<"mutation", "internal", {
24
+ input: {
25
+ data: {
26
+ createdAt: number;
27
+ displayUsername?: null | string;
28
+ email: string;
29
+ emailVerified: boolean;
30
+ image?: null | string;
31
+ isAnonymous?: null | boolean;
32
+ name: string;
33
+ phoneNumber?: null | string;
34
+ phoneNumberVerified?: null | boolean;
35
+ twoFactorEnabled?: null | boolean;
36
+ updatedAt: number;
37
+ userId?: null | string;
38
+ username?: null | string;
39
+ };
40
+ model: "user";
41
+ } | {
42
+ data: {
43
+ createdAt: number;
44
+ expiresAt: number;
45
+ ipAddress?: null | string;
46
+ token: string;
47
+ updatedAt: number;
48
+ userAgent?: null | string;
49
+ userId: string;
50
+ };
51
+ model: "session";
52
+ } | {
53
+ data: {
54
+ accessToken?: null | string;
55
+ accessTokenExpiresAt?: null | number;
56
+ accountId: string;
57
+ createdAt: number;
58
+ idToken?: null | string;
59
+ password?: null | string;
60
+ providerId: string;
61
+ refreshToken?: null | string;
62
+ refreshTokenExpiresAt?: null | number;
63
+ scope?: null | string;
64
+ updatedAt: number;
65
+ userId: string;
66
+ };
67
+ model: "account";
68
+ } | {
69
+ data: {
70
+ createdAt: number;
71
+ expiresAt: number;
72
+ identifier: string;
73
+ updatedAt: number;
74
+ value: string;
75
+ };
76
+ model: "verification";
77
+ } | {
78
+ data: {
79
+ backupCodes: string;
80
+ secret: string;
81
+ userId: string;
82
+ };
83
+ model: "twoFactor";
84
+ } | {
85
+ data: {
86
+ aaguid?: null | string;
87
+ backedUp: boolean;
88
+ counter: number;
89
+ createdAt?: null | number;
90
+ credentialID: string;
91
+ deviceType: string;
92
+ name?: null | string;
93
+ publicKey: string;
94
+ transports?: null | string;
95
+ userId: string;
96
+ };
97
+ model: "passkey";
98
+ } | {
99
+ data: {
100
+ clientId?: null | string;
101
+ clientSecret?: null | string;
102
+ createdAt?: null | number;
103
+ disabled?: null | boolean;
104
+ icon?: null | string;
105
+ metadata?: null | string;
106
+ name?: null | string;
107
+ redirectURLs?: null | string;
108
+ type?: null | string;
109
+ updatedAt?: null | number;
110
+ userId?: null | string;
111
+ };
112
+ model: "oauthApplication";
113
+ } | {
114
+ data: {
115
+ accessToken?: null | string;
116
+ accessTokenExpiresAt?: null | number;
117
+ clientId?: null | string;
118
+ createdAt?: null | number;
119
+ refreshToken?: null | string;
120
+ refreshTokenExpiresAt?: null | number;
121
+ scopes?: null | string;
122
+ updatedAt?: null | number;
123
+ userId?: null | string;
124
+ };
125
+ model: "oauthAccessToken";
126
+ } | {
127
+ data: {
128
+ clientId?: null | string;
129
+ consentGiven?: null | boolean;
130
+ createdAt?: null | number;
131
+ scopes?: null | string;
132
+ updatedAt?: null | number;
133
+ userId?: null | string;
134
+ };
135
+ model: "oauthConsent";
136
+ } | {
137
+ data: {
138
+ createdAt: number;
139
+ privateKey: string;
140
+ publicKey: string;
141
+ };
142
+ model: "jwks";
143
+ } | {
144
+ data: {
145
+ count?: null | number;
146
+ key?: null | string;
147
+ lastRequest?: null | number;
148
+ };
149
+ model: "rateLimit";
150
+ };
151
+ onCreateHandle?: string;
152
+ select?: Array<string>;
153
+ }, any, Name>;
154
+ deleteMany: FunctionReference<"mutation", "internal", {
155
+ input: {
156
+ model: "user";
157
+ where?: Array<{
158
+ connector?: "AND" | "OR";
159
+ field: "name" | "email" | "emailVerified" | "image" | "createdAt" | "updatedAt" | "twoFactorEnabled" | "isAnonymous" | "username" | "displayUsername" | "phoneNumber" | "phoneNumberVerified" | "userId" | "_id";
160
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
161
+ value: string | number | boolean | Array<string> | Array<number> | null;
162
+ }>;
163
+ } | {
164
+ model: "session";
165
+ where?: Array<{
166
+ connector?: "AND" | "OR";
167
+ field: "expiresAt" | "token" | "createdAt" | "updatedAt" | "ipAddress" | "userAgent" | "userId" | "_id";
168
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
169
+ value: string | number | boolean | Array<string> | Array<number> | null;
170
+ }>;
171
+ } | {
172
+ model: "account";
173
+ where?: Array<{
174
+ connector?: "AND" | "OR";
175
+ field: "accountId" | "providerId" | "userId" | "accessToken" | "refreshToken" | "idToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "scope" | "password" | "createdAt" | "updatedAt" | "_id";
176
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
177
+ value: string | number | boolean | Array<string> | Array<number> | null;
178
+ }>;
179
+ } | {
180
+ model: "verification";
181
+ where?: Array<{
182
+ connector?: "AND" | "OR";
183
+ field: "identifier" | "value" | "expiresAt" | "createdAt" | "updatedAt" | "_id";
184
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
185
+ value: string | number | boolean | Array<string> | Array<number> | null;
186
+ }>;
187
+ } | {
188
+ model: "twoFactor";
189
+ where?: Array<{
190
+ connector?: "AND" | "OR";
191
+ field: "secret" | "backupCodes" | "userId" | "_id";
192
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
193
+ value: string | number | boolean | Array<string> | Array<number> | null;
194
+ }>;
195
+ } | {
196
+ model: "passkey";
197
+ where?: Array<{
198
+ connector?: "AND" | "OR";
199
+ field: "name" | "publicKey" | "userId" | "credentialID" | "counter" | "deviceType" | "backedUp" | "transports" | "createdAt" | "aaguid" | "_id";
200
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
201
+ value: string | number | boolean | Array<string> | Array<number> | null;
202
+ }>;
203
+ } | {
204
+ model: "oauthApplication";
205
+ where?: Array<{
206
+ connector?: "AND" | "OR";
207
+ field: "name" | "icon" | "metadata" | "clientId" | "clientSecret" | "redirectURLs" | "type" | "disabled" | "userId" | "createdAt" | "updatedAt" | "_id";
208
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
209
+ value: string | number | boolean | Array<string> | Array<number> | null;
210
+ }>;
211
+ } | {
212
+ model: "oauthAccessToken";
213
+ where?: Array<{
214
+ connector?: "AND" | "OR";
215
+ field: "accessToken" | "refreshToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "clientId" | "userId" | "scopes" | "createdAt" | "updatedAt" | "_id";
216
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
217
+ value: string | number | boolean | Array<string> | Array<number> | null;
218
+ }>;
219
+ } | {
220
+ model: "oauthConsent";
221
+ where?: Array<{
222
+ connector?: "AND" | "OR";
223
+ field: "clientId" | "userId" | "scopes" | "createdAt" | "updatedAt" | "consentGiven" | "_id";
224
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
225
+ value: string | number | boolean | Array<string> | Array<number> | null;
226
+ }>;
227
+ } | {
228
+ model: "jwks";
229
+ where?: Array<{
230
+ connector?: "AND" | "OR";
231
+ field: "publicKey" | "privateKey" | "createdAt" | "_id";
232
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
233
+ value: string | number | boolean | Array<string> | Array<number> | null;
234
+ }>;
235
+ } | {
236
+ model: "rateLimit";
237
+ where?: Array<{
238
+ connector?: "AND" | "OR";
239
+ field: "key" | "count" | "lastRequest" | "_id";
240
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
241
+ value: string | number | boolean | Array<string> | Array<number> | null;
242
+ }>;
243
+ };
244
+ onDeleteHandle?: string;
245
+ paginationOpts: {
246
+ cursor: string | null;
247
+ endCursor?: string | null;
248
+ id?: number;
249
+ maximumBytesRead?: number;
250
+ maximumRowsRead?: number;
251
+ numItems: number;
252
+ };
253
+ }, any, Name>;
254
+ deleteOne: FunctionReference<"mutation", "internal", {
255
+ input: {
256
+ model: "user";
257
+ where?: Array<{
258
+ connector?: "AND" | "OR";
259
+ field: "name" | "email" | "emailVerified" | "image" | "createdAt" | "updatedAt" | "twoFactorEnabled" | "isAnonymous" | "username" | "displayUsername" | "phoneNumber" | "phoneNumberVerified" | "userId" | "_id";
260
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
261
+ value: string | number | boolean | Array<string> | Array<number> | null;
262
+ }>;
263
+ } | {
264
+ model: "session";
265
+ where?: Array<{
266
+ connector?: "AND" | "OR";
267
+ field: "expiresAt" | "token" | "createdAt" | "updatedAt" | "ipAddress" | "userAgent" | "userId" | "_id";
268
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
269
+ value: string | number | boolean | Array<string> | Array<number> | null;
270
+ }>;
271
+ } | {
272
+ model: "account";
273
+ where?: Array<{
274
+ connector?: "AND" | "OR";
275
+ field: "accountId" | "providerId" | "userId" | "accessToken" | "refreshToken" | "idToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "scope" | "password" | "createdAt" | "updatedAt" | "_id";
276
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
277
+ value: string | number | boolean | Array<string> | Array<number> | null;
278
+ }>;
279
+ } | {
280
+ model: "verification";
281
+ where?: Array<{
282
+ connector?: "AND" | "OR";
283
+ field: "identifier" | "value" | "expiresAt" | "createdAt" | "updatedAt" | "_id";
284
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
285
+ value: string | number | boolean | Array<string> | Array<number> | null;
286
+ }>;
287
+ } | {
288
+ model: "twoFactor";
289
+ where?: Array<{
290
+ connector?: "AND" | "OR";
291
+ field: "secret" | "backupCodes" | "userId" | "_id";
292
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
293
+ value: string | number | boolean | Array<string> | Array<number> | null;
294
+ }>;
295
+ } | {
296
+ model: "passkey";
297
+ where?: Array<{
298
+ connector?: "AND" | "OR";
299
+ field: "name" | "publicKey" | "userId" | "credentialID" | "counter" | "deviceType" | "backedUp" | "transports" | "createdAt" | "aaguid" | "_id";
300
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
301
+ value: string | number | boolean | Array<string> | Array<number> | null;
302
+ }>;
303
+ } | {
304
+ model: "oauthApplication";
305
+ where?: Array<{
306
+ connector?: "AND" | "OR";
307
+ field: "name" | "icon" | "metadata" | "clientId" | "clientSecret" | "redirectURLs" | "type" | "disabled" | "userId" | "createdAt" | "updatedAt" | "_id";
308
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
309
+ value: string | number | boolean | Array<string> | Array<number> | null;
310
+ }>;
311
+ } | {
312
+ model: "oauthAccessToken";
313
+ where?: Array<{
314
+ connector?: "AND" | "OR";
315
+ field: "accessToken" | "refreshToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "clientId" | "userId" | "scopes" | "createdAt" | "updatedAt" | "_id";
316
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
317
+ value: string | number | boolean | Array<string> | Array<number> | null;
318
+ }>;
319
+ } | {
320
+ model: "oauthConsent";
321
+ where?: Array<{
322
+ connector?: "AND" | "OR";
323
+ field: "clientId" | "userId" | "scopes" | "createdAt" | "updatedAt" | "consentGiven" | "_id";
324
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
325
+ value: string | number | boolean | Array<string> | Array<number> | null;
326
+ }>;
327
+ } | {
328
+ model: "jwks";
329
+ where?: Array<{
330
+ connector?: "AND" | "OR";
331
+ field: "publicKey" | "privateKey" | "createdAt" | "_id";
332
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
333
+ value: string | number | boolean | Array<string> | Array<number> | null;
334
+ }>;
335
+ } | {
336
+ model: "rateLimit";
337
+ where?: Array<{
338
+ connector?: "AND" | "OR";
339
+ field: "key" | "count" | "lastRequest" | "_id";
340
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
341
+ value: string | number | boolean | Array<string> | Array<number> | null;
342
+ }>;
343
+ };
344
+ onDeleteHandle?: string;
345
+ }, any, Name>;
346
+ findMany: FunctionReference<"query", "internal", {
347
+ join?: any;
348
+ limit?: number;
349
+ model: "user" | "session" | "account" | "verification" | "twoFactor" | "passkey" | "oauthApplication" | "oauthAccessToken" | "oauthConsent" | "jwks" | "rateLimit";
350
+ offset?: number;
351
+ paginationOpts: {
352
+ cursor: string | null;
353
+ endCursor?: string | null;
354
+ id?: number;
355
+ maximumBytesRead?: number;
356
+ maximumRowsRead?: number;
357
+ numItems: number;
358
+ };
359
+ sortBy?: {
360
+ direction: "asc" | "desc";
361
+ field: string;
362
+ };
363
+ where?: Array<{
364
+ connector?: "AND" | "OR";
365
+ field: string;
366
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
367
+ value: string | number | boolean | Array<string> | Array<number> | null;
368
+ }>;
369
+ }, any, Name>;
370
+ findOne: FunctionReference<"query", "internal", {
371
+ join?: any;
372
+ model: "user" | "session" | "account" | "verification" | "twoFactor" | "passkey" | "oauthApplication" | "oauthAccessToken" | "oauthConsent" | "jwks" | "rateLimit";
373
+ select?: Array<string>;
374
+ where?: Array<{
375
+ connector?: "AND" | "OR";
376
+ field: string;
377
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
378
+ value: string | number | boolean | Array<string> | Array<number> | null;
379
+ }>;
380
+ }, any, Name>;
381
+ updateMany: FunctionReference<"mutation", "internal", {
382
+ input: {
383
+ model: "user";
384
+ update: {
385
+ createdAt?: number;
386
+ displayUsername?: null | string;
387
+ email?: string;
388
+ emailVerified?: boolean;
389
+ image?: null | string;
390
+ isAnonymous?: null | boolean;
391
+ name?: string;
392
+ phoneNumber?: null | string;
393
+ phoneNumberVerified?: null | boolean;
394
+ twoFactorEnabled?: null | boolean;
395
+ updatedAt?: number;
396
+ userId?: null | string;
397
+ username?: null | string;
398
+ };
399
+ where?: Array<{
400
+ connector?: "AND" | "OR";
401
+ field: "name" | "email" | "emailVerified" | "image" | "createdAt" | "updatedAt" | "twoFactorEnabled" | "isAnonymous" | "username" | "displayUsername" | "phoneNumber" | "phoneNumberVerified" | "userId" | "_id";
402
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
403
+ value: string | number | boolean | Array<string> | Array<number> | null;
404
+ }>;
405
+ } | {
406
+ model: "session";
407
+ update: {
408
+ createdAt?: number;
409
+ expiresAt?: number;
410
+ ipAddress?: null | string;
411
+ token?: string;
412
+ updatedAt?: number;
413
+ userAgent?: null | string;
414
+ userId?: string;
415
+ };
416
+ where?: Array<{
417
+ connector?: "AND" | "OR";
418
+ field: "expiresAt" | "token" | "createdAt" | "updatedAt" | "ipAddress" | "userAgent" | "userId" | "_id";
419
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
420
+ value: string | number | boolean | Array<string> | Array<number> | null;
421
+ }>;
422
+ } | {
423
+ model: "account";
424
+ update: {
425
+ accessToken?: null | string;
426
+ accessTokenExpiresAt?: null | number;
427
+ accountId?: string;
428
+ createdAt?: number;
429
+ idToken?: null | string;
430
+ password?: null | string;
431
+ providerId?: string;
432
+ refreshToken?: null | string;
433
+ refreshTokenExpiresAt?: null | number;
434
+ scope?: null | string;
435
+ updatedAt?: number;
436
+ userId?: string;
437
+ };
438
+ where?: Array<{
439
+ connector?: "AND" | "OR";
440
+ field: "accountId" | "providerId" | "userId" | "accessToken" | "refreshToken" | "idToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "scope" | "password" | "createdAt" | "updatedAt" | "_id";
441
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
442
+ value: string | number | boolean | Array<string> | Array<number> | null;
443
+ }>;
444
+ } | {
445
+ model: "verification";
446
+ update: {
447
+ createdAt?: number;
448
+ expiresAt?: number;
449
+ identifier?: string;
450
+ updatedAt?: number;
451
+ value?: string;
452
+ };
453
+ where?: Array<{
454
+ connector?: "AND" | "OR";
455
+ field: "identifier" | "value" | "expiresAt" | "createdAt" | "updatedAt" | "_id";
456
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
457
+ value: string | number | boolean | Array<string> | Array<number> | null;
458
+ }>;
459
+ } | {
460
+ model: "twoFactor";
461
+ update: {
462
+ backupCodes?: string;
463
+ secret?: string;
464
+ userId?: string;
465
+ };
466
+ where?: Array<{
467
+ connector?: "AND" | "OR";
468
+ field: "secret" | "backupCodes" | "userId" | "_id";
469
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
470
+ value: string | number | boolean | Array<string> | Array<number> | null;
471
+ }>;
472
+ } | {
473
+ model: "passkey";
474
+ update: {
475
+ aaguid?: null | string;
476
+ backedUp?: boolean;
477
+ counter?: number;
478
+ createdAt?: null | number;
479
+ credentialID?: string;
480
+ deviceType?: string;
481
+ name?: null | string;
482
+ publicKey?: string;
483
+ transports?: null | string;
484
+ userId?: string;
485
+ };
486
+ where?: Array<{
487
+ connector?: "AND" | "OR";
488
+ field: "name" | "publicKey" | "userId" | "credentialID" | "counter" | "deviceType" | "backedUp" | "transports" | "createdAt" | "aaguid" | "_id";
489
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
490
+ value: string | number | boolean | Array<string> | Array<number> | null;
491
+ }>;
492
+ } | {
493
+ model: "oauthApplication";
494
+ update: {
495
+ clientId?: null | string;
496
+ clientSecret?: null | string;
497
+ createdAt?: null | number;
498
+ disabled?: null | boolean;
499
+ icon?: null | string;
500
+ metadata?: null | string;
501
+ name?: null | string;
502
+ redirectURLs?: null | string;
503
+ type?: null | string;
504
+ updatedAt?: null | number;
505
+ userId?: null | string;
506
+ };
507
+ where?: Array<{
508
+ connector?: "AND" | "OR";
509
+ field: "name" | "icon" | "metadata" | "clientId" | "clientSecret" | "redirectURLs" | "type" | "disabled" | "userId" | "createdAt" | "updatedAt" | "_id";
510
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
511
+ value: string | number | boolean | Array<string> | Array<number> | null;
512
+ }>;
513
+ } | {
514
+ model: "oauthAccessToken";
515
+ update: {
516
+ accessToken?: null | string;
517
+ accessTokenExpiresAt?: null | number;
518
+ clientId?: null | string;
519
+ createdAt?: null | number;
520
+ refreshToken?: null | string;
521
+ refreshTokenExpiresAt?: null | number;
522
+ scopes?: null | string;
523
+ updatedAt?: null | number;
524
+ userId?: null | string;
525
+ };
526
+ where?: Array<{
527
+ connector?: "AND" | "OR";
528
+ field: "accessToken" | "refreshToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "clientId" | "userId" | "scopes" | "createdAt" | "updatedAt" | "_id";
529
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
530
+ value: string | number | boolean | Array<string> | Array<number> | null;
531
+ }>;
532
+ } | {
533
+ model: "oauthConsent";
534
+ update: {
535
+ clientId?: null | string;
536
+ consentGiven?: null | boolean;
537
+ createdAt?: null | number;
538
+ scopes?: null | string;
539
+ updatedAt?: null | number;
540
+ userId?: null | string;
541
+ };
542
+ where?: Array<{
543
+ connector?: "AND" | "OR";
544
+ field: "clientId" | "userId" | "scopes" | "createdAt" | "updatedAt" | "consentGiven" | "_id";
545
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
546
+ value: string | number | boolean | Array<string> | Array<number> | null;
547
+ }>;
548
+ } | {
549
+ model: "jwks";
550
+ update: {
551
+ createdAt?: number;
552
+ privateKey?: string;
553
+ publicKey?: string;
554
+ };
555
+ where?: Array<{
556
+ connector?: "AND" | "OR";
557
+ field: "publicKey" | "privateKey" | "createdAt" | "_id";
558
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
559
+ value: string | number | boolean | Array<string> | Array<number> | null;
560
+ }>;
561
+ } | {
562
+ model: "rateLimit";
563
+ update: {
564
+ count?: null | number;
565
+ key?: null | string;
566
+ lastRequest?: null | number;
567
+ };
568
+ where?: Array<{
569
+ connector?: "AND" | "OR";
570
+ field: "key" | "count" | "lastRequest" | "_id";
571
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
572
+ value: string | number | boolean | Array<string> | Array<number> | null;
573
+ }>;
574
+ };
575
+ onUpdateHandle?: string;
576
+ paginationOpts: {
577
+ cursor: string | null;
578
+ endCursor?: string | null;
579
+ id?: number;
580
+ maximumBytesRead?: number;
581
+ maximumRowsRead?: number;
582
+ numItems: number;
583
+ };
584
+ }, any, Name>;
585
+ updateOne: FunctionReference<"mutation", "internal", {
586
+ input: {
587
+ model: "user";
588
+ update: {
589
+ createdAt?: number;
590
+ displayUsername?: null | string;
591
+ email?: string;
592
+ emailVerified?: boolean;
593
+ image?: null | string;
594
+ isAnonymous?: null | boolean;
595
+ name?: string;
596
+ phoneNumber?: null | string;
597
+ phoneNumberVerified?: null | boolean;
598
+ twoFactorEnabled?: null | boolean;
599
+ updatedAt?: number;
600
+ userId?: null | string;
601
+ username?: null | string;
602
+ };
603
+ where?: Array<{
604
+ connector?: "AND" | "OR";
605
+ field: "name" | "email" | "emailVerified" | "image" | "createdAt" | "updatedAt" | "twoFactorEnabled" | "isAnonymous" | "username" | "displayUsername" | "phoneNumber" | "phoneNumberVerified" | "userId" | "_id";
606
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
607
+ value: string | number | boolean | Array<string> | Array<number> | null;
608
+ }>;
609
+ } | {
610
+ model: "session";
611
+ update: {
612
+ createdAt?: number;
613
+ expiresAt?: number;
614
+ ipAddress?: null | string;
615
+ token?: string;
616
+ updatedAt?: number;
617
+ userAgent?: null | string;
618
+ userId?: string;
619
+ };
620
+ where?: Array<{
621
+ connector?: "AND" | "OR";
622
+ field: "expiresAt" | "token" | "createdAt" | "updatedAt" | "ipAddress" | "userAgent" | "userId" | "_id";
623
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
624
+ value: string | number | boolean | Array<string> | Array<number> | null;
625
+ }>;
626
+ } | {
627
+ model: "account";
628
+ update: {
629
+ accessToken?: null | string;
630
+ accessTokenExpiresAt?: null | number;
631
+ accountId?: string;
632
+ createdAt?: number;
633
+ idToken?: null | string;
634
+ password?: null | string;
635
+ providerId?: string;
636
+ refreshToken?: null | string;
637
+ refreshTokenExpiresAt?: null | number;
638
+ scope?: null | string;
639
+ updatedAt?: number;
640
+ userId?: string;
641
+ };
642
+ where?: Array<{
643
+ connector?: "AND" | "OR";
644
+ field: "accountId" | "providerId" | "userId" | "accessToken" | "refreshToken" | "idToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "scope" | "password" | "createdAt" | "updatedAt" | "_id";
645
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
646
+ value: string | number | boolean | Array<string> | Array<number> | null;
647
+ }>;
648
+ } | {
649
+ model: "verification";
650
+ update: {
651
+ createdAt?: number;
652
+ expiresAt?: number;
653
+ identifier?: string;
654
+ updatedAt?: number;
655
+ value?: string;
656
+ };
657
+ where?: Array<{
658
+ connector?: "AND" | "OR";
659
+ field: "identifier" | "value" | "expiresAt" | "createdAt" | "updatedAt" | "_id";
660
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
661
+ value: string | number | boolean | Array<string> | Array<number> | null;
662
+ }>;
663
+ } | {
664
+ model: "twoFactor";
665
+ update: {
666
+ backupCodes?: string;
667
+ secret?: string;
668
+ userId?: string;
669
+ };
670
+ where?: Array<{
671
+ connector?: "AND" | "OR";
672
+ field: "secret" | "backupCodes" | "userId" | "_id";
673
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
674
+ value: string | number | boolean | Array<string> | Array<number> | null;
675
+ }>;
676
+ } | {
677
+ model: "passkey";
678
+ update: {
679
+ aaguid?: null | string;
680
+ backedUp?: boolean;
681
+ counter?: number;
682
+ createdAt?: null | number;
683
+ credentialID?: string;
684
+ deviceType?: string;
685
+ name?: null | string;
686
+ publicKey?: string;
687
+ transports?: null | string;
688
+ userId?: string;
689
+ };
690
+ where?: Array<{
691
+ connector?: "AND" | "OR";
692
+ field: "name" | "publicKey" | "userId" | "credentialID" | "counter" | "deviceType" | "backedUp" | "transports" | "createdAt" | "aaguid" | "_id";
693
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
694
+ value: string | number | boolean | Array<string> | Array<number> | null;
695
+ }>;
696
+ } | {
697
+ model: "oauthApplication";
698
+ update: {
699
+ clientId?: null | string;
700
+ clientSecret?: null | string;
701
+ createdAt?: null | number;
702
+ disabled?: null | boolean;
703
+ icon?: null | string;
704
+ metadata?: null | string;
705
+ name?: null | string;
706
+ redirectURLs?: null | string;
707
+ type?: null | string;
708
+ updatedAt?: null | number;
709
+ userId?: null | string;
710
+ };
711
+ where?: Array<{
712
+ connector?: "AND" | "OR";
713
+ field: "name" | "icon" | "metadata" | "clientId" | "clientSecret" | "redirectURLs" | "type" | "disabled" | "userId" | "createdAt" | "updatedAt" | "_id";
714
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
715
+ value: string | number | boolean | Array<string> | Array<number> | null;
716
+ }>;
717
+ } | {
718
+ model: "oauthAccessToken";
719
+ update: {
720
+ accessToken?: null | string;
721
+ accessTokenExpiresAt?: null | number;
722
+ clientId?: null | string;
723
+ createdAt?: null | number;
724
+ refreshToken?: null | string;
725
+ refreshTokenExpiresAt?: null | number;
726
+ scopes?: null | string;
727
+ updatedAt?: null | number;
728
+ userId?: null | string;
729
+ };
730
+ where?: Array<{
731
+ connector?: "AND" | "OR";
732
+ field: "accessToken" | "refreshToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "clientId" | "userId" | "scopes" | "createdAt" | "updatedAt" | "_id";
733
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
734
+ value: string | number | boolean | Array<string> | Array<number> | null;
735
+ }>;
736
+ } | {
737
+ model: "oauthConsent";
738
+ update: {
739
+ clientId?: null | string;
740
+ consentGiven?: null | boolean;
741
+ createdAt?: null | number;
742
+ scopes?: null | string;
743
+ updatedAt?: null | number;
744
+ userId?: null | string;
745
+ };
746
+ where?: Array<{
747
+ connector?: "AND" | "OR";
748
+ field: "clientId" | "userId" | "scopes" | "createdAt" | "updatedAt" | "consentGiven" | "_id";
749
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
750
+ value: string | number | boolean | Array<string> | Array<number> | null;
751
+ }>;
752
+ } | {
753
+ model: "jwks";
754
+ update: {
755
+ createdAt?: number;
756
+ privateKey?: string;
757
+ publicKey?: string;
758
+ };
759
+ where?: Array<{
760
+ connector?: "AND" | "OR";
761
+ field: "publicKey" | "privateKey" | "createdAt" | "_id";
762
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
763
+ value: string | number | boolean | Array<string> | Array<number> | null;
764
+ }>;
765
+ } | {
766
+ model: "rateLimit";
767
+ update: {
768
+ count?: null | number;
769
+ key?: null | string;
770
+ lastRequest?: null | number;
771
+ };
772
+ where?: Array<{
773
+ connector?: "AND" | "OR";
774
+ field: "key" | "count" | "lastRequest" | "_id";
775
+ operator?: "lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "contains" | "starts_with" | "ends_with";
776
+ value: string | number | boolean | Array<string> | Array<number> | null;
777
+ }>;
778
+ };
779
+ onUpdateHandle?: string;
780
+ }, any, Name>;
781
+ };
782
+ adapterTest: {
783
+ runCustomTests: FunctionReference<"action", "internal", any, any, Name>;
784
+ runTests: FunctionReference<"action", "internal", any, any, Name>;
785
+ };
786
+ };
787
+ //# sourceMappingURL=component.d.ts.map