@robelest/convex-auth 0.0.4-preview.33 → 0.0.4-preview.34

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 (89) hide show
  1. package/dist/component/_generated/component.d.ts +1611 -2039
  2. package/dist/component/account.js +3 -0
  3. package/dist/component/convex.config.d.ts +2 -2
  4. package/dist/component/factor/device.js +3 -0
  5. package/dist/component/factor/passkey.js +3 -0
  6. package/dist/component/factor/totp.js +3 -0
  7. package/dist/component/group/invite.js +3 -0
  8. package/dist/component/group/member.js +3 -0
  9. package/dist/component/group.js +3 -0
  10. package/dist/component/model.d.ts +172 -149
  11. package/dist/component/model.js +22 -4
  12. package/dist/component/modules.js +24 -21
  13. package/dist/component/public/factors/devices.js +37 -106
  14. package/dist/component/public/factors/passkeys.js +29 -149
  15. package/dist/component/public/factors/totp.js +32 -159
  16. package/dist/component/public/groups/core.js +19 -82
  17. package/dist/component/public/groups/invites.js +15 -104
  18. package/dist/component/public/groups/members.js +26 -149
  19. package/dist/component/public/identity/accounts.js +12 -94
  20. package/dist/component/public/identity/codes.js +13 -73
  21. package/dist/component/public/identity/sessions.js +5 -107
  22. package/dist/component/public/identity/tokens.js +13 -103
  23. package/dist/component/public/identity/users.js +188 -185
  24. package/dist/component/public/identity/verifiers.js +17 -80
  25. package/dist/component/public/security/keys.js +13 -120
  26. package/dist/component/public/security/limits.js +0 -43
  27. package/dist/component/public/sso/audit.js +0 -28
  28. package/dist/component/public/sso/core.js +31 -104
  29. package/dist/component/public/sso/domains.js +0 -71
  30. package/dist/component/public/sso/scim.js +63 -239
  31. package/dist/component/public/sso/secrets.js +0 -30
  32. package/dist/component/public/sso/webhooks.js +23 -128
  33. package/dist/component/rateLimit.js +3 -0
  34. package/dist/component/schema.d.ts +380 -344
  35. package/dist/component/schema.js +11 -1
  36. package/dist/component/session.js +3 -0
  37. package/dist/component/sso/audit.js +3 -0
  38. package/dist/component/sso/connection/domain/verification.js +3 -0
  39. package/dist/component/sso/connection/domain.js +3 -0
  40. package/dist/component/sso/connection/scim/config.js +3 -0
  41. package/dist/component/sso/connection/scim/identity.js +3 -0
  42. package/dist/component/sso/connection/secret.js +3 -0
  43. package/dist/component/sso/connection.js +3 -0
  44. package/dist/component/sso/webhook/delivery.js +3 -0
  45. package/dist/component/sso/webhook/endpoint.js +3 -0
  46. package/dist/component/token/pkce.js +3 -0
  47. package/dist/component/token/refresh.js +3 -0
  48. package/dist/component/token/verification.js +3 -0
  49. package/dist/component/user/email.js +3 -0
  50. package/dist/component/user/key.js +3 -0
  51. package/dist/component/user.js +62 -0
  52. package/dist/core/index.d.ts +129 -27
  53. package/dist/core/index.js +2 -0
  54. package/dist/model.js +22 -4
  55. package/dist/providers/credentials.d.ts +1 -1
  56. package/dist/providers/github.js +6 -0
  57. package/dist/providers/password.js +1 -2
  58. package/dist/server/auth.d.ts +3 -2
  59. package/dist/server/auth.js +2 -1
  60. package/dist/server/context.js +30 -3
  61. package/dist/server/contract.js +42 -42
  62. package/dist/server/core.js +224 -86
  63. package/dist/server/db.js +45 -37
  64. package/dist/server/facade.d.ts +39 -0
  65. package/dist/server/facade.js +16 -0
  66. package/dist/server/index.d.ts +2 -2
  67. package/dist/server/index.js +2 -2
  68. package/dist/server/mounts.d.ts +105 -105
  69. package/dist/server/mutations/credentials/signin.js +3 -7
  70. package/dist/server/mutations/oauth.js +9 -6
  71. package/dist/server/runtime.d.ts +149 -48
  72. package/dist/server/runtime.js +10 -8
  73. package/dist/server/services/group.js +9 -9
  74. package/dist/server/sso/domain.d.ts +1 -1
  75. package/dist/server/sso/domain.js +40 -40
  76. package/dist/server/sso/http.js +18 -18
  77. package/dist/server/sso/oidc.js +1 -1
  78. package/dist/server/sso/policies.js +3 -3
  79. package/dist/server/sso/policy.js +12 -4
  80. package/dist/server/sso/provision.js +9 -9
  81. package/dist/server/sso/validators.js +2 -2
  82. package/dist/server/sso/webhook.js +8 -8
  83. package/dist/server/types.d.ts +184 -123
  84. package/dist/server/types.js +29 -24
  85. package/dist/server/users.js +49 -2
  86. package/dist/server/validators.d.ts +352 -329
  87. package/dist/server/validators.js +3 -2
  88. package/package.json +1 -1
  89. package/dist/component/public.js +0 -22
@@ -13,27 +13,22 @@ import { FunctionReference } from "convex/server";
13
13
  * ```
14
14
  */
15
15
  type ComponentApi<Name extends string | undefined = string | undefined> = {
16
- public: {
17
- accountDelete: FunctionReference<"mutation", "internal", {
18
- accountId: string;
19
- requireOtherAccount?: boolean;
20
- }, null, Name>;
21
- accountGet: FunctionReference<"query", "internal", {
22
- provider: string;
23
- providerAccountId: string;
24
- }, {
25
- _creationTime: number;
26
- _id: string;
27
- emailVerified?: string;
16
+ account: {
17
+ create: FunctionReference<"mutation", "internal", {
28
18
  extend?: any;
29
- phoneVerified?: string;
30
19
  provider: string;
31
20
  providerAccountId: string;
32
21
  secret?: string;
33
22
  userId: string;
34
- } | null, Name>;
35
- accountGetById: FunctionReference<"query", "internal", {
23
+ }, string, Name>;
24
+ delete: FunctionReference<"mutation", "internal", {
36
25
  accountId: string;
26
+ requireOtherAccount?: boolean;
27
+ }, null, Name>;
28
+ get: FunctionReference<"query", "internal", {
29
+ id?: string;
30
+ provider?: string;
31
+ providerAccountId?: string;
37
32
  }, {
38
33
  _creationTime: number;
39
34
  _id: string;
@@ -45,14 +40,7 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
45
40
  secret?: string;
46
41
  userId: string;
47
42
  } | null, Name>;
48
- accountInsert: FunctionReference<"mutation", "internal", {
49
- extend?: any;
50
- provider: string;
51
- providerAccountId: string;
52
- secret?: string;
53
- userId: string;
54
- }, string, Name>;
55
- accountListByUser: FunctionReference<"query", "internal", {
43
+ list: FunctionReference<"query", "internal", {
56
44
  userId: string;
57
45
  }, Array<{
58
46
  _creationTime: number;
@@ -65,250 +53,155 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
65
53
  secret?: string;
66
54
  userId: string;
67
55
  }>, Name>;
68
- accountPatch: FunctionReference<"mutation", "internal", {
56
+ update: FunctionReference<"mutation", "internal", {
69
57
  accountId: string;
70
58
  data: any;
71
59
  }, null, Name>;
72
- deviceAuthorize: FunctionReference<"mutation", "internal", {
73
- deviceId: string;
74
- sessionId: string;
75
- userId: string;
76
- }, null, Name>;
77
- deviceDelete: FunctionReference<"mutation", "internal", {
78
- deviceId: string;
79
- }, null, Name>;
80
- deviceGetByCodeHash: FunctionReference<"query", "internal", {
81
- deviceCodeHash: string;
82
- }, {
83
- _creationTime: number;
84
- _id: string;
85
- deviceCodeHash: string;
86
- expiresAt: number;
87
- interval: number;
88
- lastPolledAt?: number;
89
- sessionId?: string;
90
- status: "pending" | "authorized" | "denied";
91
- userCode: string;
92
- userId?: string;
93
- } | null, Name>;
94
- deviceGetByUserCode: FunctionReference<"query", "internal", {
95
- userCode: string;
96
- }, {
97
- _creationTime: number;
98
- _id: string;
99
- deviceCodeHash: string;
100
- expiresAt: number;
101
- interval: number;
102
- lastPolledAt?: number;
103
- sessionId?: string;
104
- status: "pending" | "authorized" | "denied";
105
- userCode: string;
106
- userId?: string;
107
- } | null, Name>;
108
- deviceInsert: FunctionReference<"mutation", "internal", {
109
- deviceCodeHash: string;
110
- expiresAt: number;
111
- interval: number;
112
- status: "pending" | "authorized" | "denied";
113
- userCode: string;
114
- }, string, Name>;
115
- deviceUpdateLastPolled: FunctionReference<"mutation", "internal", {
116
- deviceId: string;
117
- lastPolledAt: number;
118
- }, null, Name>;
119
- factors: {
120
- devices: {
121
- deviceAuthorize: FunctionReference<"mutation", "internal", {
122
- deviceId: string;
123
- sessionId: string;
124
- userId: string;
125
- }, null, Name>;
126
- deviceDelete: FunctionReference<"mutation", "internal", {
127
- deviceId: string;
128
- }, null, Name>;
129
- deviceGetByCodeHash: FunctionReference<"query", "internal", {
130
- deviceCodeHash: string;
131
- }, {
132
- _creationTime: number;
133
- _id: string;
134
- deviceCodeHash: string;
135
- expiresAt: number;
136
- interval: number;
137
- lastPolledAt?: number;
138
- sessionId?: string;
139
- status: "pending" | "authorized" | "denied";
140
- userCode: string;
141
- userId?: string;
142
- } | null, Name>;
143
- deviceGetByUserCode: FunctionReference<"query", "internal", {
144
- userCode: string;
145
- }, {
146
- _creationTime: number;
147
- _id: string;
148
- deviceCodeHash: string;
149
- expiresAt: number;
150
- interval: number;
151
- lastPolledAt?: number;
152
- sessionId?: string;
153
- status: "pending" | "authorized" | "denied";
154
- userCode: string;
155
- userId?: string;
156
- } | null, Name>;
157
- deviceInsert: FunctionReference<"mutation", "internal", {
158
- deviceCodeHash: string;
159
- expiresAt: number;
160
- interval: number;
161
- status: "pending" | "authorized" | "denied";
162
- userCode: string;
163
- }, string, Name>;
164
- deviceUpdateLastPolled: FunctionReference<"mutation", "internal", {
165
- deviceId: string;
166
- lastPolledAt: number;
167
- }, null, Name>;
168
- };
169
- passkeys: {
170
- passkeyDelete: FunctionReference<"mutation", "internal", {
171
- passkeyId: string;
172
- }, null, Name>;
173
- passkeyGetByCredentialId: FunctionReference<"query", "internal", {
174
- credentialId: string;
175
- }, {
176
- _creationTime: number;
177
- _id: string;
178
- algorithm: number;
179
- backedUp: boolean;
180
- counter: number;
181
- createdAt: number;
182
- credentialId: string;
183
- deviceType: string;
184
- lastUsedAt?: number;
185
- name?: string;
186
- publicKey: ArrayBuffer;
187
- transports?: Array<string>;
188
- userId: string;
189
- } | null, Name>;
190
- passkeyGetById: FunctionReference<"query", "internal", {
191
- passkeyId: string;
192
- }, {
193
- _creationTime: number;
194
- _id: string;
195
- algorithm: number;
196
- backedUp: boolean;
197
- counter: number;
198
- createdAt: number;
199
- credentialId: string;
200
- deviceType: string;
201
- lastUsedAt?: number;
202
- name?: string;
203
- publicKey: ArrayBuffer;
204
- transports?: Array<string>;
205
- userId: string;
206
- } | null, Name>;
207
- passkeyInsert: FunctionReference<"mutation", "internal", {
208
- algorithm: number;
209
- backedUp: boolean;
210
- counter: number;
211
- createdAt: number;
212
- credentialId: string;
213
- deviceType: string;
214
- name?: string;
215
- publicKey: ArrayBuffer;
216
- transports?: Array<string>;
217
- userId: string;
218
- }, string, Name>;
219
- passkeyListByUserId: FunctionReference<"query", "internal", {
220
- userId: string;
221
- }, Array<{
222
- _creationTime: number;
223
- _id: string;
224
- algorithm: number;
225
- backedUp: boolean;
226
- counter: number;
227
- createdAt: number;
228
- credentialId: string;
229
- deviceType: string;
230
- lastUsedAt?: number;
231
- name?: string;
232
- publicKey: ArrayBuffer;
233
- transports?: Array<string>;
234
- userId: string;
235
- }>, Name>;
236
- passkeyUpdateCounter: FunctionReference<"mutation", "internal", {
237
- counter: number;
238
- lastUsedAt: number;
239
- passkeyId: string;
240
- }, null, Name>;
241
- passkeyUpdateMeta: FunctionReference<"mutation", "internal", {
242
- data: any;
243
- passkeyId: string;
244
- }, null, Name>;
245
- };
246
- totp: {
247
- totpDelete: FunctionReference<"mutation", "internal", {
248
- totpId: string;
249
- }, null, Name>;
250
- totpGetById: FunctionReference<"query", "internal", {
251
- totpId: string;
252
- }, {
253
- _creationTime: number;
254
- _id: string;
255
- createdAt: number;
256
- digits: number;
257
- lastUsedAt?: number;
258
- name?: string;
259
- period: number;
260
- secret: ArrayBuffer;
261
- userId: string;
262
- verified: boolean;
263
- } | null, Name>;
264
- totpGetVerifiedByUserId: FunctionReference<"query", "internal", {
265
- userId: string;
266
- }, {
267
- _creationTime: number;
268
- _id: string;
269
- createdAt: number;
270
- digits: number;
271
- lastUsedAt?: number;
272
- name?: string;
273
- period: number;
274
- secret: ArrayBuffer;
275
- userId: string;
276
- verified: boolean;
277
- } | null, Name>;
278
- totpInsert: FunctionReference<"mutation", "internal", {
279
- createdAt: number;
280
- digits: number;
281
- name?: string;
282
- period: number;
283
- secret: ArrayBuffer;
284
- userId: string;
285
- verified: boolean;
286
- }, string, Name>;
287
- totpListByUserId: FunctionReference<"query", "internal", {
288
- userId: string;
289
- }, Array<{
290
- _creationTime: number;
291
- _id: string;
292
- createdAt: number;
293
- digits: number;
294
- lastUsedAt?: number;
295
- name?: string;
296
- period: number;
297
- secret: ArrayBuffer;
298
- userId: string;
299
- verified: boolean;
300
- }>, Name>;
301
- totpMarkVerified: FunctionReference<"mutation", "internal", {
302
- lastUsedAt: number;
303
- totpId: string;
304
- }, null, Name>;
305
- totpUpdateLastUsed: FunctionReference<"mutation", "internal", {
306
- lastUsedAt: number;
307
- totpId: string;
308
- }, null, Name>;
309
- };
60
+ };
61
+ factor: {
62
+ device: {
63
+ authorize: FunctionReference<"mutation", "internal", {
64
+ deviceId: string;
65
+ sessionId: string;
66
+ userId: string;
67
+ }, null, Name>;
68
+ create: FunctionReference<"mutation", "internal", {
69
+ deviceCodeHash: string;
70
+ expiresAt: number;
71
+ interval: number;
72
+ status: "pending" | "authorized" | "denied";
73
+ userCode: string;
74
+ }, string, Name>;
75
+ delete: FunctionReference<"mutation", "internal", {
76
+ deviceId: string;
77
+ }, null, Name>;
78
+ get: FunctionReference<"query", "internal", {
79
+ deviceCodeHash?: string;
80
+ id?: string;
81
+ userCode?: string;
82
+ }, {
83
+ _creationTime: number;
84
+ _id: string;
85
+ deviceCodeHash: string;
86
+ expiresAt: number;
87
+ interval: number;
88
+ lastPolledAt?: number;
89
+ sessionId?: string;
90
+ status: "pending" | "authorized" | "denied";
91
+ userCode: string;
92
+ userId?: string;
93
+ } | null, Name>;
94
+ update: FunctionReference<"mutation", "internal", {
95
+ data: any;
96
+ deviceId: string;
97
+ }, null, Name>;
98
+ };
99
+ passkey: {
100
+ create: FunctionReference<"mutation", "internal", {
101
+ algorithm: number;
102
+ backedUp: boolean;
103
+ counter: number;
104
+ createdAt: number;
105
+ credentialId: string;
106
+ deviceType: string;
107
+ name?: string;
108
+ publicKey: ArrayBuffer;
109
+ transports?: Array<string>;
110
+ userId: string;
111
+ }, string, Name>;
112
+ delete: FunctionReference<"mutation", "internal", {
113
+ passkeyId: string;
114
+ }, null, Name>;
115
+ get: FunctionReference<"query", "internal", {
116
+ credentialId?: string;
117
+ id?: string;
118
+ }, {
119
+ _creationTime: number;
120
+ _id: string;
121
+ algorithm: number;
122
+ backedUp: boolean;
123
+ counter: number;
124
+ createdAt: number;
125
+ credentialId: string;
126
+ deviceType: string;
127
+ lastUsedAt?: number;
128
+ name?: string;
129
+ publicKey: ArrayBuffer;
130
+ transports?: Array<string>;
131
+ userId: string;
132
+ } | null, Name>;
133
+ list: FunctionReference<"query", "internal", {
134
+ userId: string;
135
+ }, Array<{
136
+ _creationTime: number;
137
+ _id: string;
138
+ algorithm: number;
139
+ backedUp: boolean;
140
+ counter: number;
141
+ createdAt: number;
142
+ credentialId: string;
143
+ deviceType: string;
144
+ lastUsedAt?: number;
145
+ name?: string;
146
+ publicKey: ArrayBuffer;
147
+ transports?: Array<string>;
148
+ userId: string;
149
+ }>, Name>;
150
+ update: FunctionReference<"mutation", "internal", {
151
+ data: any;
152
+ passkeyId: string;
153
+ }, null, Name>;
154
+ };
155
+ totp: {
156
+ create: FunctionReference<"mutation", "internal", {
157
+ createdAt: number;
158
+ digits: number;
159
+ name?: string;
160
+ period: number;
161
+ secret: ArrayBuffer;
162
+ userId: string;
163
+ verified: boolean;
164
+ }, string, Name>;
165
+ delete: FunctionReference<"mutation", "internal", {
166
+ totpId: string;
167
+ }, null, Name>;
168
+ get: FunctionReference<"query", "internal", {
169
+ id?: string;
170
+ verifiedForUserId?: string;
171
+ }, {
172
+ _creationTime: number;
173
+ _id: string;
174
+ createdAt: number;
175
+ digits: number;
176
+ lastUsedAt?: number;
177
+ name?: string;
178
+ period: number;
179
+ secret: ArrayBuffer;
180
+ userId: string;
181
+ verified: boolean;
182
+ } | null, Name>;
183
+ list: FunctionReference<"query", "internal", {
184
+ userId: string;
185
+ }, Array<{
186
+ _creationTime: number;
187
+ _id: string;
188
+ createdAt: number;
189
+ digits: number;
190
+ lastUsedAt?: number;
191
+ name?: string;
192
+ period: number;
193
+ secret: ArrayBuffer;
194
+ userId: string;
195
+ verified: boolean;
196
+ }>, Name>;
197
+ update: FunctionReference<"mutation", "internal", {
198
+ data: any;
199
+ totpId: string;
200
+ }, null, Name>;
310
201
  };
311
- groupAncestors: FunctionReference<"query", "internal", {
202
+ };
203
+ group: {
204
+ ancestors: FunctionReference<"query", "internal", {
312
205
  groupId: string;
313
206
  includeSelf?: boolean;
314
207
  maxDepth?: number;
@@ -324,8 +217,8 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
324
217
  extend?: any;
325
218
  identity: {
326
219
  accountLinking: {
327
- oidc: "verifiedEmail" | "none";
328
- saml: "verifiedEmail" | "none";
220
+ oidc: "verifiedEmail" | "none" | "sameConnection";
221
+ saml: "verifiedEmail" | "none" | "sameConnection";
329
222
  };
330
223
  };
331
224
  provisioning: {
@@ -370,349 +263,7 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
370
263
  cycleDetected: boolean;
371
264
  maxDepthReached: boolean;
372
265
  }, Name>;
373
- groupAuditEventCreate: FunctionReference<"mutation", "internal", {
374
- actorId?: string;
375
- actorType: "user" | "system" | "scim" | "api_key" | "webhook";
376
- connectionId?: string;
377
- eventType: string;
378
- groupId: string;
379
- ip?: string;
380
- metadata?: any;
381
- occurredAt: number;
382
- requestId?: string;
383
- status: "success" | "failure";
384
- subjectId?: string;
385
- subjectType: string;
386
- }, string, Name>;
387
- groupAuditEventList: FunctionReference<"query", "internal", {
388
- connectionId?: string;
389
- groupId?: string;
390
- limit?: number;
391
- }, Array<{
392
- _creationTime: number;
393
- _id: string;
394
- actorId?: string;
395
- actorType: "user" | "system" | "scim" | "api_key" | "webhook";
396
- connectionId?: string;
397
- eventType: string;
398
- groupId: string;
399
- ip?: string;
400
- metadata?: any;
401
- occurredAt: number;
402
- requestId?: string;
403
- status: "success" | "failure";
404
- subjectId?: string;
405
- subjectType: string;
406
- }>, Name>;
407
- groupConnectionCreate: FunctionReference<"mutation", "internal", {
408
- config?: any;
409
- extend?: any;
410
- groupId: string;
411
- name?: string;
412
- protocol: "oidc" | "saml";
413
- slug?: string;
414
- status?: "draft" | "active" | "disabled";
415
- }, string, Name>;
416
- groupConnectionDelete: FunctionReference<"mutation", "internal", {
417
- connectionId: string;
418
- }, null, Name>;
419
- groupConnectionDomainAdd: FunctionReference<"mutation", "internal", {
420
- connectionId: string;
421
- domain: string;
422
- groupId: string;
423
- isPrimary?: boolean;
424
- }, string, Name>;
425
- groupConnectionDomainDelete: FunctionReference<"mutation", "internal", {
426
- domainId: string;
427
- }, null, Name>;
428
- groupConnectionDomainList: FunctionReference<"query", "internal", {
429
- connectionId: string;
430
- limit?: number;
431
- }, Array<{
432
- _creationTime: number;
433
- _id: string;
434
- connectionId: string;
435
- domain: string;
436
- groupId: string;
437
- isPrimary: boolean;
438
- verifiedAt?: number;
439
- }>, Name>;
440
- groupConnectionDomainVerificationDelete: FunctionReference<"mutation", "internal", {
441
- domainId: string;
442
- }, null, Name>;
443
- groupConnectionDomainVerificationGet: FunctionReference<"query", "internal", {
444
- domainId: string;
445
- }, {
446
- _creationTime: number;
447
- _id: string;
448
- connectionId: string;
449
- domain: string;
450
- domainId: string;
451
- expiresAt: number;
452
- groupId: string;
453
- recordName: string;
454
- requestedAt: number;
455
- token: string;
456
- tokenHash: string;
457
- } | null, Name>;
458
- groupConnectionDomainVerificationUpsert: FunctionReference<"mutation", "internal", {
459
- connectionId: string;
460
- domain: string;
461
- domainId: string;
462
- expiresAt: number;
463
- groupId: string;
464
- recordName: string;
465
- requestedAt: number;
466
- token: string;
467
- tokenHash: string;
468
- }, string, Name>;
469
- groupConnectionDomainVerify: FunctionReference<"mutation", "internal", {
470
- domainId: string;
471
- verifiedAt: number;
472
- }, {
473
- _creationTime: number;
474
- _id: string;
475
- connectionId: string;
476
- domain: string;
477
- groupId: string;
478
- isPrimary: boolean;
479
- verifiedAt?: number;
480
- }, Name>;
481
- groupConnectionGet: FunctionReference<"query", "internal", {
482
- connectionId: string;
483
- }, {
484
- _creationTime: number;
485
- _id: string;
486
- config?: any;
487
- extend?: any;
488
- groupId: string;
489
- name?: string;
490
- protocol: "oidc" | "saml";
491
- slug?: string;
492
- status: "draft" | "active" | "disabled";
493
- } | null, Name>;
494
- groupConnectionGetByDomain: FunctionReference<"query", "internal", {
495
- domain: string;
496
- }, {
497
- connection: {
498
- _creationTime: number;
499
- _id: string;
500
- config?: any;
501
- extend?: any;
502
- groupId: string;
503
- name?: string;
504
- protocol: "oidc" | "saml";
505
- slug?: string;
506
- status: "draft" | "active" | "disabled";
507
- };
508
- domain: {
509
- _creationTime: number;
510
- _id: string;
511
- connectionId: string;
512
- domain: string;
513
- groupId: string;
514
- isPrimary: boolean;
515
- verifiedAt?: number;
516
- };
517
- } | null, Name>;
518
- groupConnectionList: FunctionReference<"query", "internal", {
519
- cursor?: string | null;
520
- limit?: number;
521
- order?: "asc" | "desc";
522
- orderBy?: "_creationTime" | "name" | "slug" | "status";
523
- where?: {
524
- groupId?: string;
525
- slug?: string;
526
- status?: "draft" | "active" | "disabled";
527
- };
528
- }, {
529
- items: Array<{
530
- _creationTime: number;
531
- _id: string;
532
- config?: any;
533
- extend?: any;
534
- groupId: string;
535
- name?: string;
536
- protocol: "oidc" | "saml";
537
- slug?: string;
538
- status: "draft" | "active" | "disabled";
539
- }>;
540
- nextCursor: string | null;
541
- }, Name>;
542
- groupConnectionScimConfigGetByGroupConnection: FunctionReference<"query", "internal", {
543
- connectionId: string;
544
- }, {
545
- _creationTime: number;
546
- _id: string;
547
- basePath: string;
548
- connectionId: string;
549
- extend?: any;
550
- groupId: string;
551
- lastRotatedAt?: number;
552
- status: "draft" | "active" | "disabled";
553
- tokenHash: string;
554
- } | null, Name>;
555
- groupConnectionScimConfigGetByTokenHash: FunctionReference<"query", "internal", {
556
- tokenHash: string;
557
- }, {
558
- _creationTime: number;
559
- _id: string;
560
- basePath: string;
561
- connectionId: string;
562
- extend?: any;
563
- groupId: string;
564
- lastRotatedAt?: number;
565
- status: "draft" | "active" | "disabled";
566
- tokenHash: string;
567
- } | null, Name>;
568
- groupConnectionScimConfigUpsert: FunctionReference<"mutation", "internal", {
569
- basePath: string;
570
- connectionId: string;
571
- extend?: any;
572
- groupId: string;
573
- lastRotatedAt?: number;
574
- status: "draft" | "active" | "disabled";
575
- tokenHash: string;
576
- }, string, Name>;
577
- groupConnectionScimIdentityDelete: FunctionReference<"mutation", "internal", {
578
- identityId: string;
579
- }, null, Name>;
580
- groupConnectionScimIdentityGet: FunctionReference<"query", "internal", {
581
- connectionId: string;
582
- externalId: string;
583
- resourceType: "user" | "group";
584
- }, {
585
- _creationTime: number;
586
- _id: string;
587
- active?: boolean;
588
- connectionId: string;
589
- externalId: string;
590
- groupId: string;
591
- lastProvisionedAt?: number;
592
- mappedGroupId?: string;
593
- raw?: any;
594
- resourceType: "user" | "group";
595
- userId?: string;
596
- } | null, Name>;
597
- groupConnectionScimIdentityGetByGroupConnectionAndUser: FunctionReference<"query", "internal", {
598
- connectionId: string;
599
- userId: string;
600
- }, {
601
- _creationTime: number;
602
- _id: string;
603
- active?: boolean;
604
- connectionId: string;
605
- externalId: string;
606
- groupId: string;
607
- lastProvisionedAt?: number;
608
- mappedGroupId?: string;
609
- raw?: any;
610
- resourceType: "user" | "group";
611
- userId?: string;
612
- } | null, Name>;
613
- groupConnectionScimIdentityGetByGroupConnectionAndUsers: FunctionReference<"query", "internal", {
614
- connectionId: string;
615
- userIds: Array<string>;
616
- }, Array<{
617
- identity: {
618
- _creationTime: number;
619
- _id: string;
620
- active?: boolean;
621
- connectionId: string;
622
- externalId: string;
623
- groupId: string;
624
- lastProvisionedAt?: number;
625
- mappedGroupId?: string;
626
- raw?: any;
627
- resourceType: "user" | "group";
628
- userId?: string;
629
- } | null;
630
- userId: string;
631
- }>, Name>;
632
- groupConnectionScimIdentityGetByMappedGroup: FunctionReference<"query", "internal", {
633
- mappedGroupId: string;
634
- }, {
635
- _creationTime: number;
636
- _id: string;
637
- active?: boolean;
638
- connectionId: string;
639
- externalId: string;
640
- groupId: string;
641
- lastProvisionedAt?: number;
642
- mappedGroupId?: string;
643
- raw?: any;
644
- resourceType: "user" | "group";
645
- userId?: string;
646
- } | null, Name>;
647
- groupConnectionScimIdentityGetByUser: FunctionReference<"query", "internal", {
648
- userId: string;
649
- }, {
650
- _creationTime: number;
651
- _id: string;
652
- active?: boolean;
653
- connectionId: string;
654
- externalId: string;
655
- groupId: string;
656
- lastProvisionedAt?: number;
657
- mappedGroupId?: string;
658
- raw?: any;
659
- resourceType: "user" | "group";
660
- userId?: string;
661
- } | null, Name>;
662
- groupConnectionScimIdentityListByGroupConnection: FunctionReference<"query", "internal", {
663
- connectionId: string;
664
- }, Array<{
665
- _creationTime: number;
666
- _id: string;
667
- active?: boolean;
668
- connectionId: string;
669
- externalId: string;
670
- groupId: string;
671
- lastProvisionedAt?: number;
672
- mappedGroupId?: string;
673
- raw?: any;
674
- resourceType: "user" | "group";
675
- userId?: string;
676
- }>, Name>;
677
- groupConnectionScimIdentityUpsert: FunctionReference<"mutation", "internal", {
678
- active?: boolean;
679
- connectionId: string;
680
- externalId: string;
681
- groupId: string;
682
- lastProvisionedAt?: number;
683
- mappedGroupId?: string;
684
- raw?: any;
685
- resourceType: "user" | "group";
686
- userId?: string;
687
- }, string, Name>;
688
- groupConnectionSecretDelete: FunctionReference<"mutation", "internal", {
689
- connectionId: string;
690
- kind: "oidc_client_secret";
691
- }, null, Name>;
692
- groupConnectionSecretGet: FunctionReference<"query", "internal", {
693
- connectionId: string;
694
- kind: "oidc_client_secret";
695
- }, {
696
- _creationTime: number;
697
- _id: string;
698
- ciphertext: string;
699
- connectionId: string;
700
- groupId: string;
701
- kind: "oidc_client_secret";
702
- updatedAt: number;
703
- } | null, Name>;
704
- groupConnectionSecretUpsert: FunctionReference<"mutation", "internal", {
705
- ciphertext: string;
706
- connectionId: string;
707
- groupId: string;
708
- kind: "oidc_client_secret";
709
- updatedAt: number;
710
- }, string, Name>;
711
- groupConnectionUpdate: FunctionReference<"mutation", "internal", {
712
- connectionId: string;
713
- data: any;
714
- }, null, Name>;
715
- groupCreate: FunctionReference<"mutation", "internal", {
266
+ create: FunctionReference<"mutation", "internal", {
716
267
  extend?: any;
717
268
  name: string;
718
269
  parentGroupId?: string;
@@ -723,11 +274,12 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
723
274
  }>;
724
275
  type?: string;
725
276
  }, string, Name>;
726
- groupDelete: FunctionReference<"mutation", "internal", {
277
+ delete: FunctionReference<"mutation", "internal", {
727
278
  groupId: string;
728
279
  }, null, Name>;
729
- groupGet: FunctionReference<"query", "internal", {
730
- groupId: string;
280
+ get: FunctionReference<"query", "internal", {
281
+ id?: string;
282
+ ids?: Array<string>;
731
283
  }, {
732
284
  _creationTime: number;
733
285
  _id: string;
@@ -739,8 +291,8 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
739
291
  extend?: any;
740
292
  identity: {
741
293
  accountLinking: {
742
- oidc: "verifiedEmail" | "none";
743
- saml: "verifiedEmail" | "none";
294
+ oidc: "verifiedEmail" | "none" | "sameConnection";
295
+ saml: "verifiedEmail" | "none" | "sameConnection";
744
296
  };
745
297
  };
746
298
  provisioning: {
@@ -781,10 +333,7 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
781
333
  value: string;
782
334
  }>;
783
335
  type?: string;
784
- } | null, Name>;
785
- groupGetMany: FunctionReference<"query", "internal", {
786
- groupIds: Array<string>;
787
- }, Array<{
336
+ } | null | Array<{
788
337
  _creationTime: number;
789
338
  _id: string;
790
339
  extend?: any;
@@ -795,8 +344,8 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
795
344
  extend?: any;
796
345
  identity: {
797
346
  accountLinking: {
798
- oidc: "verifiedEmail" | "none";
799
- saml: "verifiedEmail" | "none";
347
+ oidc: "verifiedEmail" | "none" | "sameConnection";
348
+ saml: "verifiedEmail" | "none" | "sameConnection";
800
349
  };
801
350
  };
802
351
  provisioning: {
@@ -838,7 +387,86 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
838
387
  }>;
839
388
  type?: string;
840
389
  } | null>, Name>;
841
- groupList: FunctionReference<"query", "internal", {
390
+ invite: {
391
+ accept: FunctionReference<"mutation", "internal", {
392
+ acceptedByUserId?: string;
393
+ inviteId: string;
394
+ }, null, Name>;
395
+ create: FunctionReference<"mutation", "internal", {
396
+ email?: string;
397
+ expiresTime?: number;
398
+ extend?: any;
399
+ groupId?: string;
400
+ invitedByUserId?: string;
401
+ roleIds?: Array<string>;
402
+ status: "pending" | "accepted" | "revoked" | "expired";
403
+ tokenHash: string;
404
+ }, string, Name>;
405
+ get: FunctionReference<"query", "internal", {
406
+ id?: string;
407
+ tokenHash?: string;
408
+ }, {
409
+ _creationTime: number;
410
+ _id: string;
411
+ acceptedByUserId?: string;
412
+ acceptedTime?: number;
413
+ email?: string;
414
+ expiresTime?: number;
415
+ extend?: any;
416
+ groupId?: string;
417
+ invitedByUserId?: string;
418
+ role?: string;
419
+ roleIds?: Array<string>;
420
+ status: "pending" | "accepted" | "revoked" | "expired";
421
+ tokenHash: string;
422
+ } | null, Name>;
423
+ list: FunctionReference<"query", "internal", {
424
+ cursor?: string | null;
425
+ limit?: number;
426
+ order?: "asc" | "desc";
427
+ orderBy?: "_creationTime" | "status" | "email" | "expiresTime" | "acceptedTime";
428
+ where?: {
429
+ acceptedByUserId?: string;
430
+ email?: string;
431
+ groupId?: string;
432
+ invitedByUserId?: string;
433
+ roleId?: string;
434
+ status?: "pending" | "accepted" | "revoked" | "expired";
435
+ tokenHash?: string;
436
+ };
437
+ }, {
438
+ items: Array<{
439
+ _creationTime: number;
440
+ _id: string;
441
+ acceptedByUserId?: string;
442
+ acceptedTime?: number;
443
+ email?: string;
444
+ expiresTime?: number;
445
+ extend?: any;
446
+ groupId?: string;
447
+ invitedByUserId?: string;
448
+ role?: string;
449
+ roleIds?: Array<string>;
450
+ status: "pending" | "accepted" | "revoked" | "expired";
451
+ tokenHash: string;
452
+ }>;
453
+ nextCursor: string | null;
454
+ }, Name>;
455
+ redeem: FunctionReference<"mutation", "internal", {
456
+ acceptedByUserId: string;
457
+ tokenHash: string;
458
+ }, {
459
+ groupId: string | null;
460
+ inviteId: string;
461
+ inviteStatus: "accepted" | "already_accepted";
462
+ memberId?: string;
463
+ membershipStatus: "joined" | "already_joined" | "not_applicable";
464
+ }, Name>;
465
+ revoke: FunctionReference<"mutation", "internal", {
466
+ inviteId: string;
467
+ }, null, Name>;
468
+ };
469
+ list: FunctionReference<"query", "internal", {
842
470
  cursor?: string | null;
843
471
  limit?: number;
844
472
  order?: "asc" | "desc";
@@ -870,8 +498,8 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
870
498
  extend?: any;
871
499
  identity: {
872
500
  accountLinking: {
873
- oidc: "verifiedEmail" | "none";
874
- saml: "verifiedEmail" | "none";
501
+ oidc: "verifiedEmail" | "none" | "sameConnection";
502
+ saml: "verifiedEmail" | "none" | "sameConnection";
875
503
  };
876
504
  };
877
505
  provisioning: {
@@ -915,37 +543,271 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
915
543
  }>;
916
544
  nextCursor: string | null;
917
545
  }, Name>;
918
- groups: {
919
- core: {
920
- groupAncestors: FunctionReference<"query", "internal", {
546
+ member: {
547
+ create: FunctionReference<"mutation", "internal", {
548
+ extend?: any;
549
+ groupId: string;
550
+ roleIds?: Array<string>;
551
+ status?: string;
552
+ userId: string;
553
+ }, string, Name>;
554
+ delete: FunctionReference<"mutation", "internal", {
555
+ memberId: string;
556
+ }, null, Name>;
557
+ get: FunctionReference<"query", "internal", {
558
+ groupId?: string;
559
+ groupIds?: Array<string>;
560
+ id?: string;
561
+ userId?: string;
562
+ }, {
563
+ _creationTime: number;
564
+ _id: string;
565
+ extend?: any;
566
+ groupId: string;
567
+ role?: string;
568
+ roleIds?: Array<string>;
569
+ status?: string;
570
+ userId: string;
571
+ } | null | Array<{
572
+ _creationTime: number;
573
+ _id: string;
574
+ extend?: any;
575
+ groupId: string;
576
+ role?: string;
577
+ roleIds?: Array<string>;
578
+ status?: string;
579
+ userId: string;
580
+ } | null>, Name>;
581
+ list: FunctionReference<"query", "internal", {
582
+ cursor?: string | null;
583
+ limit?: number;
584
+ order?: "asc" | "desc";
585
+ orderBy?: "_creationTime" | "status";
586
+ where?: {
587
+ groupId?: string;
588
+ roleId?: string;
589
+ status?: string;
590
+ userId?: string;
591
+ };
592
+ }, {
593
+ items: Array<{
594
+ _creationTime: number;
595
+ _id: string;
596
+ extend?: any;
921
597
  groupId: string;
922
- includeSelf?: boolean;
923
- maxDepth?: number;
924
- }, {
925
- ancestors: Array<{
926
- _creationTime: number;
927
- _id: string;
928
- extend?: any;
929
- isRoot?: boolean;
930
- name: string;
931
- parentGroupId?: string;
932
- policy?: {
933
- extend?: any;
934
- identity: {
935
- accountLinking: {
936
- oidc: "verifiedEmail" | "none";
937
- saml: "verifiedEmail" | "none";
938
- };
939
- };
940
- provisioning: {
941
- deprovision: {
942
- mode: "soft" | "hard";
943
- };
944
- groups: {
945
- mapping?: Record<string, Array<string>>;
946
- mode: "ignore" | "sync";
947
- source: "protocol";
948
- };
598
+ role?: string;
599
+ roleIds?: Array<string>;
600
+ status?: string;
601
+ userId: string;
602
+ }>;
603
+ nextCursor: string | null;
604
+ }, Name>;
605
+ resolve: FunctionReference<"query", "internal", {
606
+ ancestry?: boolean;
607
+ groupId: string;
608
+ maxDepth?: number;
609
+ userId: string;
610
+ }, {
611
+ depth: number | null;
612
+ isDirect: boolean;
613
+ isInherited: boolean;
614
+ matchedGroupId: string | null;
615
+ membership: {
616
+ _creationTime: number;
617
+ _id: string;
618
+ extend?: any;
619
+ groupId: string;
620
+ role?: string;
621
+ roleIds?: Array<string>;
622
+ status?: string;
623
+ userId: string;
624
+ } | null;
625
+ traversedGroupIds?: Array<string>;
626
+ }, Name>;
627
+ update: FunctionReference<"mutation", "internal", {
628
+ data: any;
629
+ memberId: string;
630
+ }, null, Name>;
631
+ };
632
+ update: FunctionReference<"mutation", "internal", {
633
+ data: any;
634
+ groupId: string;
635
+ }, null, Name>;
636
+ };
637
+ public: {
638
+ factors: {
639
+ devices: {
640
+ deviceAuthorize: FunctionReference<"mutation", "internal", {
641
+ deviceId: string;
642
+ sessionId: string;
643
+ userId: string;
644
+ }, null, Name>;
645
+ deviceDelete: FunctionReference<"mutation", "internal", {
646
+ deviceId: string;
647
+ }, null, Name>;
648
+ deviceGet: FunctionReference<"query", "internal", {
649
+ deviceCodeHash?: string;
650
+ id?: string;
651
+ userCode?: string;
652
+ }, {
653
+ _creationTime: number;
654
+ _id: string;
655
+ deviceCodeHash: string;
656
+ expiresAt: number;
657
+ interval: number;
658
+ lastPolledAt?: number;
659
+ sessionId?: string;
660
+ status: "pending" | "authorized" | "denied";
661
+ userCode: string;
662
+ userId?: string;
663
+ } | null, Name>;
664
+ deviceInsert: FunctionReference<"mutation", "internal", {
665
+ deviceCodeHash: string;
666
+ expiresAt: number;
667
+ interval: number;
668
+ status: "pending" | "authorized" | "denied";
669
+ userCode: string;
670
+ }, string, Name>;
671
+ deviceUpdate: FunctionReference<"mutation", "internal", {
672
+ data: any;
673
+ deviceId: string;
674
+ }, null, Name>;
675
+ };
676
+ passkeys: {
677
+ passkeyDelete: FunctionReference<"mutation", "internal", {
678
+ passkeyId: string;
679
+ }, null, Name>;
680
+ passkeyGet: FunctionReference<"query", "internal", {
681
+ credentialId?: string;
682
+ id?: string;
683
+ }, {
684
+ _creationTime: number;
685
+ _id: string;
686
+ algorithm: number;
687
+ backedUp: boolean;
688
+ counter: number;
689
+ createdAt: number;
690
+ credentialId: string;
691
+ deviceType: string;
692
+ lastUsedAt?: number;
693
+ name?: string;
694
+ publicKey: ArrayBuffer;
695
+ transports?: Array<string>;
696
+ userId: string;
697
+ } | null, Name>;
698
+ passkeyInsert: FunctionReference<"mutation", "internal", {
699
+ algorithm: number;
700
+ backedUp: boolean;
701
+ counter: number;
702
+ createdAt: number;
703
+ credentialId: string;
704
+ deviceType: string;
705
+ name?: string;
706
+ publicKey: ArrayBuffer;
707
+ transports?: Array<string>;
708
+ userId: string;
709
+ }, string, Name>;
710
+ passkeyList: FunctionReference<"query", "internal", {
711
+ userId: string;
712
+ }, Array<{
713
+ _creationTime: number;
714
+ _id: string;
715
+ algorithm: number;
716
+ backedUp: boolean;
717
+ counter: number;
718
+ createdAt: number;
719
+ credentialId: string;
720
+ deviceType: string;
721
+ lastUsedAt?: number;
722
+ name?: string;
723
+ publicKey: ArrayBuffer;
724
+ transports?: Array<string>;
725
+ userId: string;
726
+ }>, Name>;
727
+ passkeyUpdate: FunctionReference<"mutation", "internal", {
728
+ data: any;
729
+ passkeyId: string;
730
+ }, null, Name>;
731
+ };
732
+ totp: {
733
+ totpDelete: FunctionReference<"mutation", "internal", {
734
+ totpId: string;
735
+ }, null, Name>;
736
+ totpGet: FunctionReference<"query", "internal", {
737
+ id?: string;
738
+ verifiedForUserId?: string;
739
+ }, {
740
+ _creationTime: number;
741
+ _id: string;
742
+ createdAt: number;
743
+ digits: number;
744
+ lastUsedAt?: number;
745
+ name?: string;
746
+ period: number;
747
+ secret: ArrayBuffer;
748
+ userId: string;
749
+ verified: boolean;
750
+ } | null, Name>;
751
+ totpInsert: FunctionReference<"mutation", "internal", {
752
+ createdAt: number;
753
+ digits: number;
754
+ name?: string;
755
+ period: number;
756
+ secret: ArrayBuffer;
757
+ userId: string;
758
+ verified: boolean;
759
+ }, string, Name>;
760
+ totpList: FunctionReference<"query", "internal", {
761
+ userId: string;
762
+ }, Array<{
763
+ _creationTime: number;
764
+ _id: string;
765
+ createdAt: number;
766
+ digits: number;
767
+ lastUsedAt?: number;
768
+ name?: string;
769
+ period: number;
770
+ secret: ArrayBuffer;
771
+ userId: string;
772
+ verified: boolean;
773
+ }>, Name>;
774
+ totpUpdate: FunctionReference<"mutation", "internal", {
775
+ data: any;
776
+ totpId: string;
777
+ }, null, Name>;
778
+ };
779
+ };
780
+ groups: {
781
+ core: {
782
+ groupAncestors: FunctionReference<"query", "internal", {
783
+ groupId: string;
784
+ includeSelf?: boolean;
785
+ maxDepth?: number;
786
+ }, {
787
+ ancestors: Array<{
788
+ _creationTime: number;
789
+ _id: string;
790
+ extend?: any;
791
+ isRoot?: boolean;
792
+ name: string;
793
+ parentGroupId?: string;
794
+ policy?: {
795
+ extend?: any;
796
+ identity: {
797
+ accountLinking: {
798
+ oidc: "verifiedEmail" | "none" | "sameConnection";
799
+ saml: "verifiedEmail" | "none" | "sameConnection";
800
+ };
801
+ };
802
+ provisioning: {
803
+ deprovision: {
804
+ mode: "soft" | "hard";
805
+ };
806
+ groups: {
807
+ mapping?: Record<string, Array<string>>;
808
+ mode: "ignore" | "sync";
809
+ source: "protocol";
810
+ };
949
811
  jit: {
950
812
  defaultRole?: string;
951
813
  defaultRoleIds?: Array<string>;
@@ -994,7 +856,8 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
994
856
  groupId: string;
995
857
  }, null, Name>;
996
858
  groupGet: FunctionReference<"query", "internal", {
997
- groupId: string;
859
+ id?: string;
860
+ ids?: Array<string>;
998
861
  }, {
999
862
  _creationTime: number;
1000
863
  _id: string;
@@ -1006,8 +869,8 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
1006
869
  extend?: any;
1007
870
  identity: {
1008
871
  accountLinking: {
1009
- oidc: "verifiedEmail" | "none";
1010
- saml: "verifiedEmail" | "none";
872
+ oidc: "verifiedEmail" | "none" | "sameConnection";
873
+ saml: "verifiedEmail" | "none" | "sameConnection";
1011
874
  };
1012
875
  };
1013
876
  provisioning: {
@@ -1048,10 +911,7 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
1048
911
  value: string;
1049
912
  }>;
1050
913
  type?: string;
1051
- } | null, Name>;
1052
- groupGetMany: FunctionReference<"query", "internal", {
1053
- groupIds: Array<string>;
1054
- }, Array<{
914
+ } | null | Array<{
1055
915
  _creationTime: number;
1056
916
  _id: string;
1057
917
  extend?: any;
@@ -1062,8 +922,8 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
1062
922
  extend?: any;
1063
923
  identity: {
1064
924
  accountLinking: {
1065
- oidc: "verifiedEmail" | "none";
1066
- saml: "verifiedEmail" | "none";
925
+ oidc: "verifiedEmail" | "none" | "sameConnection";
926
+ saml: "verifiedEmail" | "none" | "sameConnection";
1067
927
  };
1068
928
  };
1069
929
  provisioning: {
@@ -1137,8 +997,8 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
1137
997
  extend?: any;
1138
998
  identity: {
1139
999
  accountLinking: {
1140
- oidc: "verifiedEmail" | "none";
1141
- saml: "verifiedEmail" | "none";
1000
+ oidc: "verifiedEmail" | "none" | "sameConnection";
1001
+ saml: "verifiedEmail" | "none" | "sameConnection";
1142
1002
  };
1143
1003
  };
1144
1004
  provisioning: {
@@ -1192,16 +1052,6 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
1192
1052
  acceptedByUserId?: string;
1193
1053
  inviteId: string;
1194
1054
  }, null, Name>;
1195
- inviteAcceptByToken: FunctionReference<"mutation", "internal", {
1196
- acceptedByUserId: string;
1197
- tokenHash: string;
1198
- }, {
1199
- groupId: string | null;
1200
- inviteId: string;
1201
- inviteStatus: "accepted" | "already_accepted";
1202
- memberId?: string;
1203
- membershipStatus: "joined" | "already_joined" | "not_applicable";
1204
- }, Name>;
1205
1055
  inviteCreate: FunctionReference<"mutation", "internal", {
1206
1056
  email?: string;
1207
1057
  expiresTime?: number;
@@ -1213,24 +1063,8 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
1213
1063
  tokenHash: string;
1214
1064
  }, string, Name>;
1215
1065
  inviteGet: FunctionReference<"query", "internal", {
1216
- inviteId: string;
1217
- }, {
1218
- _creationTime: number;
1219
- _id: string;
1220
- acceptedByUserId?: string;
1221
- acceptedTime?: number;
1222
- email?: string;
1223
- expiresTime?: number;
1224
- extend?: any;
1225
- groupId?: string;
1226
- invitedByUserId?: string;
1227
- role?: string;
1228
- roleIds?: Array<string>;
1229
- status: "pending" | "accepted" | "revoked" | "expired";
1230
- tokenHash: string;
1231
- } | null, Name>;
1232
- inviteGetByTokenHash: FunctionReference<"query", "internal", {
1233
- tokenHash: string;
1066
+ id?: string;
1067
+ tokenHash?: string;
1234
1068
  }, {
1235
1069
  _creationTime: number;
1236
1070
  _id: string;
@@ -1278,6 +1112,16 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
1278
1112
  }>;
1279
1113
  nextCursor: string | null;
1280
1114
  }, Name>;
1115
+ inviteRedeem: FunctionReference<"mutation", "internal", {
1116
+ acceptedByUserId: string;
1117
+ tokenHash: string;
1118
+ }, {
1119
+ groupId: string | null;
1120
+ inviteId: string;
1121
+ inviteStatus: "accepted" | "already_accepted";
1122
+ memberId?: string;
1123
+ membershipStatus: "joined" | "already_joined" | "not_applicable";
1124
+ }, Name>;
1281
1125
  inviteRevoke: FunctionReference<"mutation", "internal", {
1282
1126
  inviteId: string;
1283
1127
  }, null, Name>;
@@ -1291,20 +1135,10 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
1291
1135
  userId: string;
1292
1136
  }, string, Name>;
1293
1137
  memberGet: FunctionReference<"query", "internal", {
1294
- memberId: string;
1295
- }, {
1296
- _creationTime: number;
1297
- _id: string;
1298
- extend?: any;
1299
- groupId: string;
1300
- role?: string;
1301
- roleIds?: Array<string>;
1302
- status?: string;
1303
- userId: string;
1304
- } | null, Name>;
1305
- memberGetByGroupAndUser: FunctionReference<"query", "internal", {
1306
- groupId: string;
1307
- userId: string;
1138
+ groupId?: string;
1139
+ groupIds?: Array<string>;
1140
+ id?: string;
1141
+ userId?: string;
1308
1142
  }, {
1309
1143
  _creationTime: number;
1310
1144
  _id: string;
@@ -1314,11 +1148,7 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
1314
1148
  roleIds?: Array<string>;
1315
1149
  status?: string;
1316
1150
  userId: string;
1317
- } | null, Name>;
1318
- memberGetByGroupAndUserMany: FunctionReference<"query", "internal", {
1319
- groupIds: Array<string>;
1320
- userId: string;
1321
- }, Array<{
1151
+ } | null | Array<{
1322
1152
  _creationTime: number;
1323
1153
  _id: string;
1324
1154
  extend?: any;
@@ -1383,106 +1213,6 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
1383
1213
  }, null, Name>;
1384
1214
  };
1385
1215
  };
1386
- groupUpdate: FunctionReference<"mutation", "internal", {
1387
- data: any;
1388
- groupId: string;
1389
- }, null, Name>;
1390
- groupWebhookDeliveryEnqueue: FunctionReference<"mutation", "internal", {
1391
- auditEventId?: string;
1392
- connectionId: string;
1393
- endpointId: string;
1394
- eventType: string;
1395
- nextAttemptAt: number;
1396
- payload: any;
1397
- }, string, Name>;
1398
- groupWebhookDeliveryList: FunctionReference<"query", "internal", {
1399
- connectionId: string;
1400
- limit?: number;
1401
- }, Array<{
1402
- _creationTime: number;
1403
- _id: string;
1404
- attemptCount: number;
1405
- auditEventId?: string;
1406
- connectionId: string;
1407
- endpointId: string;
1408
- eventType: string;
1409
- lastAttemptAt?: number;
1410
- lastError?: string;
1411
- lastResponseStatus?: number;
1412
- nextAttemptAt: number;
1413
- payload: any;
1414
- status: "pending" | "processing" | "delivered" | "failed";
1415
- }>, Name>;
1416
- groupWebhookDeliveryListReady: FunctionReference<"query", "internal", {
1417
- limit?: number;
1418
- now: number;
1419
- }, Array<{
1420
- _creationTime: number;
1421
- _id: string;
1422
- attemptCount: number;
1423
- auditEventId?: string;
1424
- connectionId: string;
1425
- endpointId: string;
1426
- eventType: string;
1427
- lastAttemptAt?: number;
1428
- lastError?: string;
1429
- lastResponseStatus?: number;
1430
- nextAttemptAt: number;
1431
- payload: any;
1432
- status: "pending" | "processing" | "delivered" | "failed";
1433
- }>, Name>;
1434
- groupWebhookDeliveryPatch: FunctionReference<"mutation", "internal", {
1435
- data: any;
1436
- deliveryId: string;
1437
- }, null, Name>;
1438
- groupWebhookEndpointCreate: FunctionReference<"mutation", "internal", {
1439
- connectionId: string;
1440
- createdByUserId?: string;
1441
- extend?: any;
1442
- groupId: string;
1443
- secretHash: string;
1444
- status?: "active" | "disabled";
1445
- subscriptions: Array<string>;
1446
- url: string;
1447
- }, string, Name>;
1448
- groupWebhookEndpointGet: FunctionReference<"query", "internal", {
1449
- endpointId: string;
1450
- }, {
1451
- _creationTime: number;
1452
- _id: string;
1453
- connectionId: string;
1454
- createdByUserId?: string;
1455
- extend?: any;
1456
- failureCount: number;
1457
- groupId: string;
1458
- lastFailureAt?: number;
1459
- lastSuccessAt?: number;
1460
- secretHash: string;
1461
- status: "active" | "disabled";
1462
- subscriptions: Array<string>;
1463
- url: string;
1464
- } | null, Name>;
1465
- groupWebhookEndpointList: FunctionReference<"query", "internal", {
1466
- connectionId: string;
1467
- }, Array<{
1468
- _creationTime: number;
1469
- _id: string;
1470
- connectionId: string;
1471
- createdByUserId?: string;
1472
- extend?: any;
1473
- failureCount: number;
1474
- groupId: string;
1475
- lastFailureAt?: number;
1476
- lastSuccessAt?: number;
1477
- secretHash: string;
1478
- status: "active" | "disabled";
1479
- subscriptions: Array<string>;
1480
- url: string;
1481
- }>, Name>;
1482
- groupWebhookEndpointUpdate: FunctionReference<"mutation", "internal", {
1483
- data: any;
1484
- endpointId: string;
1485
- }, null, Name>;
1486
1216
  identity: {
1487
1217
  accounts: {
1488
1218
  accountDelete: FunctionReference<"mutation", "internal", {
@@ -1490,21 +1220,9 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
1490
1220
  requireOtherAccount?: boolean;
1491
1221
  }, null, Name>;
1492
1222
  accountGet: FunctionReference<"query", "internal", {
1493
- provider: string;
1494
- providerAccountId: string;
1495
- }, {
1496
- _creationTime: number;
1497
- _id: string;
1498
- emailVerified?: string;
1499
- extend?: any;
1500
- phoneVerified?: string;
1501
- provider: string;
1502
- providerAccountId: string;
1503
- secret?: string;
1504
- userId: string;
1505
- } | null, Name>;
1506
- accountGetById: FunctionReference<"query", "internal", {
1507
- accountId: string;
1223
+ id?: string;
1224
+ provider?: string;
1225
+ providerAccountId?: string;
1508
1226
  }, {
1509
1227
  _creationTime: number;
1510
1228
  _id: string;
@@ -1523,7 +1241,7 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
1523
1241
  secret?: string;
1524
1242
  userId: string;
1525
1243
  }, string, Name>;
1526
- accountListByUser: FunctionReference<"query", "internal", {
1244
+ accountList: FunctionReference<"query", "internal", {
1527
1245
  userId: string;
1528
1246
  }, Array<{
1529
1247
  _creationTime: number;
@@ -1554,21 +1272,9 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
1554
1272
  verificationCodeDelete: FunctionReference<"mutation", "internal", {
1555
1273
  verificationCodeId: string;
1556
1274
  }, null, Name>;
1557
- verificationCodeGetByAccountId: FunctionReference<"query", "internal", {
1558
- accountId: string;
1559
- }, {
1560
- _creationTime: number;
1561
- _id: string;
1562
- accountId: string;
1563
- code: string;
1564
- emailVerified?: string;
1565
- expirationTime: number;
1566
- phoneVerified?: string;
1567
- provider: string;
1568
- verifier?: string;
1569
- } | null, Name>;
1570
- verificationCodeGetByCode: FunctionReference<"query", "internal", {
1571
- code: string;
1275
+ verificationCodeGet: FunctionReference<"query", "internal", {
1276
+ accountId?: string;
1277
+ code?: string;
1572
1278
  }, {
1573
1279
  _creationTime: number;
1574
1280
  _id: string;
@@ -1609,22 +1315,6 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
1609
1315
  userId: string;
1610
1316
  }, Name>;
1611
1317
  sessionList: FunctionReference<"query", "internal", {
1612
- cursor?: string | null;
1613
- limit?: number;
1614
- order?: "asc" | "desc";
1615
- where?: {
1616
- userId?: string;
1617
- };
1618
- }, {
1619
- items: Array<{
1620
- _creationTime: number;
1621
- _id: string;
1622
- expirationTime: number;
1623
- userId: string;
1624
- }>;
1625
- nextCursor: string | null;
1626
- }, Name>;
1627
- sessionListByUser: FunctionReference<"query", "internal", {
1628
1318
  userId: string;
1629
1319
  }, Array<{
1630
1320
  _creationTime: number;
@@ -1653,18 +1343,9 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
1653
1343
  sessionId: string;
1654
1344
  userId: string;
1655
1345
  } | null, Name>;
1656
- refreshTokenGetActive: FunctionReference<"query", "internal", {
1657
- sessionId: string;
1658
- }, {
1659
- _creationTime: number;
1660
- _id: string;
1661
- expirationTime: number;
1662
- firstUsedTime?: number;
1663
- parentRefreshTokenId?: string;
1664
- sessionId: string;
1665
- } | null, Name>;
1666
- refreshTokenGetById: FunctionReference<"query", "internal", {
1667
- refreshTokenId: string;
1346
+ refreshTokenGet: FunctionReference<"query", "internal", {
1347
+ activeForSession?: string;
1348
+ id?: string;
1668
1349
  }, {
1669
1350
  _creationTime: number;
1670
1351
  _id: string;
@@ -1704,66 +1385,54 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
1704
1385
  cascade?: boolean;
1705
1386
  userId: string;
1706
1387
  }, null, Name>;
1707
- userFindByVerifiedEmail: FunctionReference<"query", "internal", {
1708
- email: string;
1709
- }, {
1710
- _creationTime: number;
1711
- _id: string;
1712
- email?: string;
1713
- emailVerificationTime?: number;
1714
- extend?: any;
1715
- hasTotp?: boolean;
1716
- image?: string;
1717
- isAnonymous?: boolean;
1718
- name?: string;
1719
- phone?: string;
1720
- phoneVerificationTime?: number;
1721
- } | null, Name>;
1722
- userFindByVerifiedPhone: FunctionReference<"query", "internal", {
1723
- phone: string;
1724
- }, {
1388
+ userEmailListByUser: FunctionReference<"query", "internal", {
1389
+ userId: string;
1390
+ }, Array<{
1725
1391
  _creationTime: number;
1726
1392
  _id: string;
1727
- email?: string;
1728
- emailVerificationTime?: number;
1729
- extend?: any;
1730
- hasTotp?: boolean;
1731
- image?: string;
1732
- isAnonymous?: boolean;
1733
- name?: string;
1734
- phone?: string;
1735
- phoneVerificationTime?: number;
1736
- } | null, Name>;
1737
- userGetById: FunctionReference<"query", "internal", {
1393
+ accountId?: string;
1394
+ connectionId?: string;
1395
+ email: string;
1396
+ isPrimary: boolean;
1397
+ provider?: string;
1398
+ source: "password" | "oauth" | "oidc" | "saml" | "scim";
1738
1399
  userId: string;
1400
+ verificationTime?: number;
1401
+ }>, Name>;
1402
+ userEmailOwner: FunctionReference<"query", "internal", {
1403
+ connectionId?: string;
1404
+ email: string;
1739
1405
  }, {
1740
1406
  _creationTime: number;
1741
1407
  _id: string;
1742
1408
  email?: string;
1743
1409
  emailVerificationTime?: number;
1744
1410
  extend?: any;
1745
- hasTotp?: boolean;
1746
1411
  image?: string;
1747
1412
  isAnonymous?: boolean;
1413
+ lastActiveGroup?: string;
1748
1414
  name?: string;
1749
1415
  phone?: string;
1750
1416
  phoneVerificationTime?: number;
1751
1417
  } | null, Name>;
1752
- userGetMany: FunctionReference<"query", "internal", {
1753
- userIds: Array<string>;
1754
- }, Array<{
1755
- _creationTime: number;
1756
- _id: string;
1757
- email?: string;
1758
- emailVerificationTime?: number;
1759
- extend?: any;
1760
- hasTotp?: boolean;
1761
- image?: string;
1762
- isAnonymous?: boolean;
1763
- name?: string;
1764
- phone?: string;
1765
- phoneVerificationTime?: number;
1766
- } | null>, Name>;
1418
+ userEmailRemove: FunctionReference<"mutation", "internal", {
1419
+ email: string;
1420
+ userId: string;
1421
+ }, null, Name>;
1422
+ userEmailSetPrimary: FunctionReference<"mutation", "internal", {
1423
+ email: string;
1424
+ userId: string;
1425
+ }, null, Name>;
1426
+ userEmailUpsert: FunctionReference<"mutation", "internal", {
1427
+ accountId?: string;
1428
+ connectionId?: string;
1429
+ email: string;
1430
+ isPrimary?: boolean;
1431
+ provider?: string;
1432
+ source: "password" | "oauth" | "oidc" | "saml" | "scim";
1433
+ userId: string;
1434
+ verified?: boolean;
1435
+ }, string, Name>;
1767
1436
  userInsert: FunctionReference<"mutation", "internal", {
1768
1437
  data: any;
1769
1438
  }, string, Name>;
@@ -1785,9 +1454,9 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
1785
1454
  email?: string;
1786
1455
  emailVerificationTime?: number;
1787
1456
  extend?: any;
1788
- hasTotp?: boolean;
1789
1457
  image?: string;
1790
1458
  isAnonymous?: boolean;
1459
+ lastActiveGroup?: string;
1791
1460
  name?: string;
1792
1461
  phone?: string;
1793
1462
  phoneVerificationTime?: number;
@@ -1812,17 +1481,9 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
1812
1481
  verifierDelete: FunctionReference<"mutation", "internal", {
1813
1482
  verifierId: string;
1814
1483
  }, null, Name>;
1815
- verifierGetById: FunctionReference<"query", "internal", {
1816
- verifierId: string;
1817
- }, {
1818
- _creationTime: number;
1819
- _id: string;
1820
- expirationTime?: number;
1821
- sessionId?: string;
1484
+ verifierGet: FunctionReference<"query", "internal", {
1485
+ id?: string;
1822
1486
  signature?: string;
1823
- } | null, Name>;
1824
- verifierGetBySignature: FunctionReference<"query", "internal", {
1825
- signature: string;
1826
1487
  }, {
1827
1488
  _creationTime: number;
1828
1489
  _id: string;
@@ -1836,660 +1497,547 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
1836
1497
  }, null, Name>;
1837
1498
  };
1838
1499
  };
1839
- inviteAccept: FunctionReference<"mutation", "internal", {
1840
- acceptedByUserId?: string;
1841
- inviteId: string;
1842
- }, null, Name>;
1843
- inviteAcceptByToken: FunctionReference<"mutation", "internal", {
1844
- acceptedByUserId: string;
1845
- tokenHash: string;
1846
- }, {
1847
- groupId: string | null;
1848
- inviteId: string;
1849
- inviteStatus: "accepted" | "already_accepted";
1850
- memberId?: string;
1851
- membershipStatus: "joined" | "already_joined" | "not_applicable";
1852
- }, Name>;
1853
- inviteCreate: FunctionReference<"mutation", "internal", {
1854
- email?: string;
1855
- expiresTime?: number;
1856
- extend?: any;
1857
- groupId?: string;
1858
- invitedByUserId?: string;
1859
- roleIds?: Array<string>;
1860
- status: "pending" | "accepted" | "revoked" | "expired";
1861
- tokenHash: string;
1862
- }, string, Name>;
1863
- inviteGet: FunctionReference<"query", "internal", {
1864
- inviteId: string;
1865
- }, {
1866
- _creationTime: number;
1867
- _id: string;
1868
- acceptedByUserId?: string;
1869
- acceptedTime?: number;
1870
- email?: string;
1871
- expiresTime?: number;
1872
- extend?: any;
1873
- groupId?: string;
1874
- invitedByUserId?: string;
1875
- role?: string;
1876
- roleIds?: Array<string>;
1877
- status: "pending" | "accepted" | "revoked" | "expired";
1878
- tokenHash: string;
1879
- } | null, Name>;
1880
- inviteGetByTokenHash: FunctionReference<"query", "internal", {
1881
- tokenHash: string;
1882
- }, {
1883
- _creationTime: number;
1884
- _id: string;
1885
- acceptedByUserId?: string;
1886
- acceptedTime?: number;
1887
- email?: string;
1888
- expiresTime?: number;
1889
- extend?: any;
1890
- groupId?: string;
1891
- invitedByUserId?: string;
1892
- role?: string;
1893
- roleIds?: Array<string>;
1894
- status: "pending" | "accepted" | "revoked" | "expired";
1895
- tokenHash: string;
1896
- } | null, Name>;
1897
- inviteList: FunctionReference<"query", "internal", {
1898
- cursor?: string | null;
1899
- limit?: number;
1900
- order?: "asc" | "desc";
1901
- orderBy?: "_creationTime" | "status" | "email" | "expiresTime" | "acceptedTime";
1902
- where?: {
1903
- acceptedByUserId?: string;
1904
- email?: string;
1905
- groupId?: string;
1906
- invitedByUserId?: string;
1907
- roleId?: string;
1908
- status?: "pending" | "accepted" | "revoked" | "expired";
1909
- tokenHash?: string;
1500
+ security: {
1501
+ keys: {
1502
+ keyDelete: FunctionReference<"mutation", "internal", {
1503
+ keyId: string;
1504
+ }, null, Name>;
1505
+ keyGet: FunctionReference<"query", "internal", {
1506
+ hashedKey?: string;
1507
+ id?: string;
1508
+ }, {
1509
+ _creationTime: number;
1510
+ _id: string;
1511
+ createdAt: number;
1512
+ expiresAt?: number;
1513
+ hashedKey: string;
1514
+ lastUsedAt?: number;
1515
+ metadata?: any;
1516
+ name: string;
1517
+ prefix: string;
1518
+ rateLimit?: {
1519
+ maxRequests: number;
1520
+ windowMs: number;
1521
+ };
1522
+ rateLimitState?: {
1523
+ attemptsLeft: number;
1524
+ lastAttemptTime: number;
1525
+ };
1526
+ revoked: boolean;
1527
+ scopes: Array<{
1528
+ actions: Array<string>;
1529
+ resource: string;
1530
+ }>;
1531
+ userId: string;
1532
+ } | null, Name>;
1533
+ keyInsert: FunctionReference<"mutation", "internal", {
1534
+ expiresAt?: number;
1535
+ hashedKey: string;
1536
+ metadata?: any;
1537
+ name: string;
1538
+ prefix: string;
1539
+ rateLimit?: {
1540
+ maxRequests: number;
1541
+ windowMs: number;
1542
+ };
1543
+ scopes: Array<{
1544
+ actions: Array<string>;
1545
+ resource: string;
1546
+ }>;
1547
+ userId: string;
1548
+ }, string, Name>;
1549
+ keyList: FunctionReference<"query", "internal", {
1550
+ cursor?: string | null;
1551
+ limit?: number;
1552
+ order?: "asc" | "desc";
1553
+ orderBy?: "_creationTime" | "name" | "lastUsedAt" | "expiresAt" | "revoked";
1554
+ where?: {
1555
+ name?: string;
1556
+ prefix?: string;
1557
+ revoked?: boolean;
1558
+ userId?: string;
1559
+ };
1560
+ }, {
1561
+ items: Array<{
1562
+ _creationTime: number;
1563
+ _id: string;
1564
+ createdAt: number;
1565
+ expiresAt?: number;
1566
+ hashedKey: string;
1567
+ lastUsedAt?: number;
1568
+ metadata?: any;
1569
+ name: string;
1570
+ prefix: string;
1571
+ rateLimit?: {
1572
+ maxRequests: number;
1573
+ windowMs: number;
1574
+ };
1575
+ rateLimitState?: {
1576
+ attemptsLeft: number;
1577
+ lastAttemptTime: number;
1578
+ };
1579
+ revoked: boolean;
1580
+ scopes: Array<{
1581
+ actions: Array<string>;
1582
+ resource: string;
1583
+ }>;
1584
+ userId: string;
1585
+ }>;
1586
+ nextCursor: string | null;
1587
+ }, Name>;
1588
+ keyPatch: FunctionReference<"mutation", "internal", {
1589
+ data: {
1590
+ lastUsedAt?: number;
1591
+ name?: string;
1592
+ rateLimit?: {
1593
+ maxRequests: number;
1594
+ windowMs: number;
1595
+ };
1596
+ rateLimitState?: {
1597
+ attemptsLeft: number;
1598
+ lastAttemptTime: number;
1599
+ };
1600
+ revoked?: boolean;
1601
+ scopes?: Array<{
1602
+ actions: Array<string>;
1603
+ resource: string;
1604
+ }>;
1605
+ };
1606
+ keyId: string;
1607
+ }, null, Name>;
1910
1608
  };
1911
- }, {
1912
- items: Array<{
1913
- _creationTime: number;
1914
- _id: string;
1915
- acceptedByUserId?: string;
1916
- acceptedTime?: number;
1917
- email?: string;
1918
- expiresTime?: number;
1919
- extend?: any;
1920
- groupId?: string;
1921
- invitedByUserId?: string;
1922
- role?: string;
1923
- roleIds?: Array<string>;
1924
- status: "pending" | "accepted" | "revoked" | "expired";
1925
- tokenHash: string;
1926
- }>;
1927
- nextCursor: string | null;
1928
- }, Name>;
1929
- inviteRevoke: FunctionReference<"mutation", "internal", {
1930
- inviteId: string;
1931
- }, null, Name>;
1932
- keyDelete: FunctionReference<"mutation", "internal", {
1933
- keyId: string;
1934
- }, null, Name>;
1935
- keyGetByHashedKey: FunctionReference<"query", "internal", {
1936
- hashedKey: string;
1937
- }, {
1938
- _creationTime: number;
1939
- _id: string;
1940
- createdAt: number;
1941
- expiresAt?: number;
1942
- hashedKey: string;
1943
- lastUsedAt?: number;
1944
- metadata?: any;
1945
- name: string;
1946
- prefix: string;
1947
- rateLimit?: {
1948
- maxRequests: number;
1949
- windowMs: number;
1950
- };
1951
- rateLimitState?: {
1952
- attemptsLeft: number;
1953
- lastAttemptTime: number;
1954
- };
1955
- revoked: boolean;
1956
- scopes: Array<{
1957
- actions: Array<string>;
1958
- resource: string;
1959
- }>;
1960
- userId: string;
1961
- } | null, Name>;
1962
- keyGetById: FunctionReference<"query", "internal", {
1963
- keyId: string;
1964
- }, {
1965
- _creationTime: number;
1966
- _id: string;
1967
- createdAt: number;
1968
- expiresAt?: number;
1969
- hashedKey: string;
1970
- lastUsedAt?: number;
1971
- metadata?: any;
1972
- name: string;
1973
- prefix: string;
1974
- rateLimit?: {
1975
- maxRequests: number;
1976
- windowMs: number;
1977
- };
1978
- rateLimitState?: {
1979
- attemptsLeft: number;
1980
- lastAttemptTime: number;
1981
- };
1982
- revoked: boolean;
1983
- scopes: Array<{
1984
- actions: Array<string>;
1985
- resource: string;
1986
- }>;
1987
- userId: string;
1988
- } | null, Name>;
1989
- keyInsert: FunctionReference<"mutation", "internal", {
1990
- expiresAt?: number;
1991
- hashedKey: string;
1992
- metadata?: any;
1993
- name: string;
1994
- prefix: string;
1995
- rateLimit?: {
1996
- maxRequests: number;
1997
- windowMs: number;
1998
- };
1999
- scopes: Array<{
2000
- actions: Array<string>;
2001
- resource: string;
2002
- }>;
2003
- userId: string;
2004
- }, string, Name>;
2005
- keyList: FunctionReference<"query", "internal", {
2006
- cursor?: string | null;
2007
- limit?: number;
2008
- order?: "asc" | "desc";
2009
- orderBy?: "_creationTime" | "name" | "lastUsedAt" | "expiresAt" | "revoked";
2010
- where?: {
2011
- name?: string;
2012
- prefix?: string;
2013
- revoked?: boolean;
2014
- userId?: string;
2015
- };
2016
- }, {
2017
- items: Array<{
2018
- _creationTime: number;
2019
- _id: string;
2020
- createdAt: number;
2021
- expiresAt?: number;
2022
- hashedKey: string;
2023
- lastUsedAt?: number;
2024
- metadata?: any;
2025
- name: string;
2026
- prefix: string;
2027
- rateLimit?: {
2028
- maxRequests: number;
2029
- windowMs: number;
2030
- };
2031
- rateLimitState?: {
1609
+ limits: {
1610
+ rateLimitCreate: FunctionReference<"mutation", "internal", {
2032
1611
  attemptsLeft: number;
1612
+ identifier: string;
2033
1613
  lastAttemptTime: number;
2034
- };
2035
- revoked: boolean;
2036
- scopes: Array<{
2037
- actions: Array<string>;
2038
- resource: string;
2039
- }>;
2040
- userId: string;
2041
- }>;
2042
- nextCursor: string | null;
2043
- }, Name>;
2044
- keyPatch: FunctionReference<"mutation", "internal", {
2045
- data: {
2046
- lastUsedAt?: number;
2047
- name?: string;
2048
- rateLimit?: {
2049
- maxRequests: number;
2050
- windowMs: number;
2051
- };
2052
- rateLimitState?: {
1614
+ }, string, Name>;
1615
+ rateLimitDelete: FunctionReference<"mutation", "internal", {
1616
+ rateLimitId: string;
1617
+ }, null, Name>;
1618
+ rateLimitGet: FunctionReference<"query", "internal", {
1619
+ identifier: string;
1620
+ }, {
1621
+ _creationTime: number;
1622
+ _id: string;
2053
1623
  attemptsLeft: number;
1624
+ attempts_left: number;
1625
+ identifier: string;
2054
1626
  lastAttemptTime: number;
2055
- };
2056
- revoked?: boolean;
2057
- scopes?: Array<{
2058
- actions: Array<string>;
2059
- resource: string;
2060
- }>;
2061
- };
2062
- keyId: string;
2063
- }, null, Name>;
2064
- memberAdd: FunctionReference<"mutation", "internal", {
2065
- extend?: any;
2066
- groupId: string;
2067
- roleIds?: Array<string>;
2068
- status?: string;
2069
- userId: string;
2070
- }, string, Name>;
2071
- memberGet: FunctionReference<"query", "internal", {
2072
- memberId: string;
2073
- }, {
2074
- _creationTime: number;
2075
- _id: string;
2076
- extend?: any;
2077
- groupId: string;
2078
- role?: string;
2079
- roleIds?: Array<string>;
2080
- status?: string;
2081
- userId: string;
2082
- } | null, Name>;
2083
- memberGetByGroupAndUser: FunctionReference<"query", "internal", {
2084
- groupId: string;
2085
- userId: string;
2086
- }, {
2087
- _creationTime: number;
2088
- _id: string;
2089
- extend?: any;
2090
- groupId: string;
2091
- role?: string;
2092
- roleIds?: Array<string>;
2093
- status?: string;
2094
- userId: string;
2095
- } | null, Name>;
2096
- memberGetByGroupAndUserMany: FunctionReference<"query", "internal", {
2097
- groupIds: Array<string>;
2098
- userId: string;
2099
- }, Array<{
2100
- _creationTime: number;
2101
- _id: string;
2102
- extend?: any;
2103
- groupId: string;
2104
- role?: string;
2105
- roleIds?: Array<string>;
2106
- status?: string;
2107
- userId: string;
2108
- } | null>, Name>;
2109
- memberList: FunctionReference<"query", "internal", {
2110
- cursor?: string | null;
2111
- limit?: number;
2112
- order?: "asc" | "desc";
2113
- orderBy?: "_creationTime" | "status";
2114
- where?: {
2115
- groupId?: string;
2116
- roleId?: string;
2117
- status?: string;
2118
- userId?: string;
2119
- };
2120
- }, {
2121
- items: Array<{
2122
- _creationTime: number;
2123
- _id: string;
2124
- extend?: any;
2125
- groupId: string;
2126
- role?: string;
2127
- roleIds?: Array<string>;
2128
- status?: string;
2129
- userId: string;
2130
- }>;
2131
- nextCursor: string | null;
2132
- }, Name>;
2133
- memberRemove: FunctionReference<"mutation", "internal", {
2134
- memberId: string;
2135
- }, null, Name>;
2136
- memberResolve: FunctionReference<"query", "internal", {
2137
- ancestry?: boolean;
2138
- groupId: string;
2139
- maxDepth?: number;
2140
- userId: string;
2141
- }, {
2142
- depth: number | null;
2143
- isDirect: boolean;
2144
- isInherited: boolean;
2145
- matchedGroupId: string | null;
2146
- membership: {
2147
- _creationTime: number;
2148
- _id: string;
2149
- extend?: any;
2150
- groupId: string;
2151
- role?: string;
2152
- roleIds?: Array<string>;
2153
- status?: string;
2154
- userId: string;
2155
- } | null;
2156
- traversedGroupIds?: Array<string>;
2157
- }, Name>;
2158
- memberUpdate: FunctionReference<"mutation", "internal", {
2159
- data: any;
2160
- memberId: string;
2161
- }, null, Name>;
2162
- passkeyDelete: FunctionReference<"mutation", "internal", {
2163
- passkeyId: string;
2164
- }, null, Name>;
2165
- passkeyGetByCredentialId: FunctionReference<"query", "internal", {
2166
- credentialId: string;
2167
- }, {
2168
- _creationTime: number;
2169
- _id: string;
2170
- algorithm: number;
2171
- backedUp: boolean;
2172
- counter: number;
2173
- createdAt: number;
2174
- credentialId: string;
2175
- deviceType: string;
2176
- lastUsedAt?: number;
2177
- name?: string;
2178
- publicKey: ArrayBuffer;
2179
- transports?: Array<string>;
2180
- userId: string;
2181
- } | null, Name>;
2182
- passkeyGetById: FunctionReference<"query", "internal", {
2183
- passkeyId: string;
2184
- }, {
2185
- _creationTime: number;
2186
- _id: string;
2187
- algorithm: number;
2188
- backedUp: boolean;
2189
- counter: number;
2190
- createdAt: number;
2191
- credentialId: string;
2192
- deviceType: string;
2193
- lastUsedAt?: number;
2194
- name?: string;
2195
- publicKey: ArrayBuffer;
2196
- transports?: Array<string>;
2197
- userId: string;
2198
- } | null, Name>;
2199
- passkeyInsert: FunctionReference<"mutation", "internal", {
2200
- algorithm: number;
2201
- backedUp: boolean;
2202
- counter: number;
2203
- createdAt: number;
2204
- credentialId: string;
2205
- deviceType: string;
2206
- name?: string;
2207
- publicKey: ArrayBuffer;
2208
- transports?: Array<string>;
2209
- userId: string;
2210
- }, string, Name>;
2211
- passkeyListByUserId: FunctionReference<"query", "internal", {
2212
- userId: string;
2213
- }, Array<{
2214
- _creationTime: number;
2215
- _id: string;
2216
- algorithm: number;
2217
- backedUp: boolean;
2218
- counter: number;
2219
- createdAt: number;
2220
- credentialId: string;
2221
- deviceType: string;
2222
- lastUsedAt?: number;
2223
- name?: string;
2224
- publicKey: ArrayBuffer;
2225
- transports?: Array<string>;
2226
- userId: string;
2227
- }>, Name>;
2228
- passkeyUpdateCounter: FunctionReference<"mutation", "internal", {
2229
- counter: number;
2230
- lastUsedAt: number;
2231
- passkeyId: string;
2232
- }, null, Name>;
2233
- passkeyUpdateMeta: FunctionReference<"mutation", "internal", {
2234
- data: any;
2235
- passkeyId: string;
2236
- }, null, Name>;
2237
- rateLimitCreate: FunctionReference<"mutation", "internal", {
2238
- attemptsLeft: number;
2239
- identifier: string;
2240
- lastAttemptTime: number;
2241
- }, string, Name>;
2242
- rateLimitDelete: FunctionReference<"mutation", "internal", {
2243
- rateLimitId: string;
2244
- }, null, Name>;
2245
- rateLimitGet: FunctionReference<"query", "internal", {
2246
- identifier: string;
2247
- }, {
2248
- _creationTime: number;
2249
- _id: string;
2250
- attemptsLeft: number;
2251
- attempts_left: number;
2252
- identifier: string;
2253
- lastAttemptTime: number;
2254
- last_attempt_time: number;
2255
- } | null, Name>;
2256
- rateLimitPatch: FunctionReference<"mutation", "internal", {
2257
- data: any;
2258
- rateLimitId: string;
2259
- }, null, Name>;
2260
- refreshTokenCreate: FunctionReference<"mutation", "internal", {
2261
- expirationTime: number;
2262
- parentRefreshTokenId?: string;
2263
- sessionId: string;
2264
- }, string, Name>;
2265
- refreshTokenDeleteAll: FunctionReference<"mutation", "internal", {
2266
- sessionId: string;
2267
- }, null, Name>;
2268
- refreshTokenExchange: FunctionReference<"mutation", "internal", {
2269
- now: number;
2270
- refreshTokenExpirationTime: number;
2271
- refreshTokenId: string;
2272
- reuseWindowMs: number;
2273
- sessionId: string;
2274
- }, {
2275
- refreshTokenId: string;
2276
- sessionId: string;
2277
- userId: string;
2278
- } | null, Name>;
2279
- refreshTokenGetActive: FunctionReference<"query", "internal", {
2280
- sessionId: string;
2281
- }, {
2282
- _creationTime: number;
2283
- _id: string;
2284
- expirationTime: number;
2285
- firstUsedTime?: number;
2286
- parentRefreshTokenId?: string;
2287
- sessionId: string;
2288
- } | null, Name>;
2289
- refreshTokenGetById: FunctionReference<"query", "internal", {
2290
- refreshTokenId: string;
2291
- }, {
2292
- _creationTime: number;
2293
- _id: string;
2294
- expirationTime: number;
2295
- firstUsedTime?: number;
2296
- parentRefreshTokenId?: string;
2297
- sessionId: string;
2298
- } | null, Name>;
2299
- refreshTokenGetChildren: FunctionReference<"query", "internal", {
2300
- parentRefreshTokenId: string;
2301
- sessionId: string;
2302
- }, Array<{
2303
- _creationTime: number;
2304
- _id: string;
2305
- expirationTime: number;
2306
- firstUsedTime?: number;
2307
- parentRefreshTokenId?: string;
2308
- sessionId: string;
2309
- }>, Name>;
2310
- refreshTokenListBySession: FunctionReference<"query", "internal", {
2311
- sessionId: string;
2312
- }, Array<{
2313
- _creationTime: number;
2314
- _id: string;
2315
- expirationTime: number;
2316
- firstUsedTime?: number;
2317
- parentRefreshTokenId?: string;
2318
- sessionId: string;
2319
- }>, Name>;
2320
- refreshTokenPatch: FunctionReference<"mutation", "internal", {
2321
- data: any;
2322
- refreshTokenId: string;
2323
- }, null, Name>;
2324
- security: {
2325
- keys: {
2326
- keyDelete: FunctionReference<"mutation", "internal", {
2327
- keyId: string;
1627
+ last_attempt_time: number;
1628
+ } | null, Name>;
1629
+ rateLimitPatch: FunctionReference<"mutation", "internal", {
1630
+ data: any;
1631
+ rateLimitId: string;
2328
1632
  }, null, Name>;
2329
- keyGetByHashedKey: FunctionReference<"query", "internal", {
2330
- hashedKey: string;
2331
- }, {
1633
+ };
1634
+ };
1635
+ sso: {
1636
+ audit: {
1637
+ groupAuditEventCreate: FunctionReference<"mutation", "internal", {
1638
+ actorId?: string;
1639
+ actorType: "user" | "system" | "scim" | "api_key" | "webhook";
1640
+ connectionId?: string;
1641
+ eventType: string;
1642
+ groupId: string;
1643
+ ip?: string;
1644
+ metadata?: any;
1645
+ occurredAt: number;
1646
+ requestId?: string;
1647
+ status: "success" | "failure";
1648
+ subjectId?: string;
1649
+ subjectType: string;
1650
+ }, string, Name>;
1651
+ groupAuditEventList: FunctionReference<"query", "internal", {
1652
+ connectionId?: string;
1653
+ groupId?: string;
1654
+ limit?: number;
1655
+ }, Array<{
2332
1656
  _creationTime: number;
2333
1657
  _id: string;
2334
- createdAt: number;
2335
- expiresAt?: number;
2336
- hashedKey: string;
2337
- lastUsedAt?: number;
1658
+ actorId?: string;
1659
+ actorType: "user" | "system" | "scim" | "api_key" | "webhook";
1660
+ connectionId?: string;
1661
+ eventType: string;
1662
+ groupId: string;
1663
+ ip?: string;
2338
1664
  metadata?: any;
2339
- name: string;
2340
- prefix: string;
2341
- rateLimit?: {
2342
- maxRequests: number;
2343
- windowMs: number;
2344
- };
2345
- rateLimitState?: {
2346
- attemptsLeft: number;
2347
- lastAttemptTime: number;
2348
- };
2349
- revoked: boolean;
2350
- scopes: Array<{
2351
- actions: Array<string>;
2352
- resource: string;
2353
- }>;
2354
- userId: string;
2355
- } | null, Name>;
2356
- keyGetById: FunctionReference<"query", "internal", {
2357
- keyId: string;
1665
+ occurredAt: number;
1666
+ requestId?: string;
1667
+ status: "success" | "failure";
1668
+ subjectId?: string;
1669
+ subjectType: string;
1670
+ }>, Name>;
1671
+ };
1672
+ core: {
1673
+ groupConnectionCreate: FunctionReference<"mutation", "internal", {
1674
+ config?: any;
1675
+ extend?: any;
1676
+ groupId: string;
1677
+ name?: string;
1678
+ protocol: "oidc" | "saml";
1679
+ slug?: string;
1680
+ status?: "draft" | "active" | "disabled";
1681
+ }, string, Name>;
1682
+ groupConnectionDelete: FunctionReference<"mutation", "internal", {
1683
+ connectionId: string;
1684
+ }, null, Name>;
1685
+ groupConnectionGet: FunctionReference<"query", "internal", {
1686
+ connectionId?: string;
1687
+ domain?: string;
2358
1688
  }, {
2359
1689
  _creationTime: number;
2360
1690
  _id: string;
2361
- createdAt: number;
2362
- expiresAt?: number;
2363
- hashedKey: string;
2364
- lastUsedAt?: number;
2365
- metadata?: any;
2366
- name: string;
2367
- prefix: string;
2368
- rateLimit?: {
2369
- maxRequests: number;
2370
- windowMs: number;
1691
+ config?: any;
1692
+ extend?: any;
1693
+ groupId: string;
1694
+ name?: string;
1695
+ protocol: "oidc" | "saml";
1696
+ slug?: string;
1697
+ status: "draft" | "active" | "disabled";
1698
+ } | {
1699
+ connection: {
1700
+ _creationTime: number;
1701
+ _id: string;
1702
+ config?: any;
1703
+ extend?: any;
1704
+ groupId: string;
1705
+ name?: string;
1706
+ protocol: "oidc" | "saml";
1707
+ slug?: string;
1708
+ status: "draft" | "active" | "disabled";
2371
1709
  };
2372
- rateLimitState?: {
2373
- attemptsLeft: number;
2374
- lastAttemptTime: number;
1710
+ domain: {
1711
+ _creationTime: number;
1712
+ _id: string;
1713
+ connectionId: string;
1714
+ domain: string;
1715
+ groupId: string;
1716
+ isPrimary: boolean;
1717
+ verifiedAt?: number;
2375
1718
  };
2376
- revoked: boolean;
2377
- scopes: Array<{
2378
- actions: Array<string>;
2379
- resource: string;
2380
- }>;
2381
- userId: string;
2382
1719
  } | null, Name>;
2383
- keyInsert: FunctionReference<"mutation", "internal", {
2384
- expiresAt?: number;
2385
- hashedKey: string;
2386
- metadata?: any;
2387
- name: string;
2388
- prefix: string;
2389
- rateLimit?: {
2390
- maxRequests: number;
2391
- windowMs: number;
2392
- };
2393
- scopes: Array<{
2394
- actions: Array<string>;
2395
- resource: string;
2396
- }>;
2397
- userId: string;
2398
- }, string, Name>;
2399
- keyList: FunctionReference<"query", "internal", {
1720
+ groupConnectionList: FunctionReference<"query", "internal", {
2400
1721
  cursor?: string | null;
2401
1722
  limit?: number;
2402
1723
  order?: "asc" | "desc";
2403
- orderBy?: "_creationTime" | "name" | "lastUsedAt" | "expiresAt" | "revoked";
1724
+ orderBy?: "_creationTime" | "name" | "slug" | "status";
2404
1725
  where?: {
2405
- name?: string;
2406
- prefix?: string;
2407
- revoked?: boolean;
2408
- userId?: string;
1726
+ groupId?: string;
1727
+ slug?: string;
1728
+ status?: "draft" | "active" | "disabled";
2409
1729
  };
2410
1730
  }, {
2411
1731
  items: Array<{
2412
1732
  _creationTime: number;
2413
1733
  _id: string;
2414
- createdAt: number;
2415
- expiresAt?: number;
2416
- hashedKey: string;
2417
- lastUsedAt?: number;
2418
- metadata?: any;
2419
- name: string;
2420
- prefix: string;
2421
- rateLimit?: {
2422
- maxRequests: number;
2423
- windowMs: number;
2424
- };
2425
- rateLimitState?: {
2426
- attemptsLeft: number;
2427
- lastAttemptTime: number;
2428
- };
2429
- revoked: boolean;
2430
- scopes: Array<{
2431
- actions: Array<string>;
2432
- resource: string;
2433
- }>;
2434
- userId: string;
1734
+ config?: any;
1735
+ extend?: any;
1736
+ groupId: string;
1737
+ name?: string;
1738
+ protocol: "oidc" | "saml";
1739
+ slug?: string;
1740
+ status: "draft" | "active" | "disabled";
2435
1741
  }>;
2436
1742
  nextCursor: string | null;
2437
1743
  }, Name>;
2438
- keyPatch: FunctionReference<"mutation", "internal", {
2439
- data: {
2440
- lastUsedAt?: number;
2441
- name?: string;
2442
- rateLimit?: {
2443
- maxRequests: number;
2444
- windowMs: number;
2445
- };
2446
- rateLimitState?: {
2447
- attemptsLeft: number;
2448
- lastAttemptTime: number;
2449
- };
2450
- revoked?: boolean;
2451
- scopes?: Array<{
2452
- actions: Array<string>;
2453
- resource: string;
2454
- }>;
2455
- };
2456
- keyId: string;
1744
+ groupConnectionUpdate: FunctionReference<"mutation", "internal", {
1745
+ connectionId: string;
1746
+ data: any;
1747
+ }, null, Name>;
1748
+ };
1749
+ domains: {
1750
+ groupConnectionDomainAdd: FunctionReference<"mutation", "internal", {
1751
+ connectionId: string;
1752
+ domain: string;
1753
+ groupId: string;
1754
+ isPrimary?: boolean;
1755
+ }, string, Name>;
1756
+ groupConnectionDomainDelete: FunctionReference<"mutation", "internal", {
1757
+ domainId: string;
1758
+ }, null, Name>;
1759
+ groupConnectionDomainList: FunctionReference<"query", "internal", {
1760
+ connectionId: string;
1761
+ limit?: number;
1762
+ }, Array<{
1763
+ _creationTime: number;
1764
+ _id: string;
1765
+ connectionId: string;
1766
+ domain: string;
1767
+ groupId: string;
1768
+ isPrimary: boolean;
1769
+ verifiedAt?: number;
1770
+ }>, Name>;
1771
+ groupConnectionDomainVerificationDelete: FunctionReference<"mutation", "internal", {
1772
+ domainId: string;
1773
+ }, null, Name>;
1774
+ groupConnectionDomainVerificationGet: FunctionReference<"query", "internal", {
1775
+ domainId: string;
1776
+ }, {
1777
+ _creationTime: number;
1778
+ _id: string;
1779
+ connectionId: string;
1780
+ domain: string;
1781
+ domainId: string;
1782
+ expiresAt: number;
1783
+ groupId: string;
1784
+ recordName: string;
1785
+ requestedAt: number;
1786
+ token: string;
1787
+ tokenHash: string;
1788
+ } | null, Name>;
1789
+ groupConnectionDomainVerificationUpsert: FunctionReference<"mutation", "internal", {
1790
+ connectionId: string;
1791
+ domain: string;
1792
+ domainId: string;
1793
+ expiresAt: number;
1794
+ groupId: string;
1795
+ recordName: string;
1796
+ requestedAt: number;
1797
+ token: string;
1798
+ tokenHash: string;
1799
+ }, string, Name>;
1800
+ groupConnectionDomainVerify: FunctionReference<"mutation", "internal", {
1801
+ domainId: string;
1802
+ verifiedAt: number;
1803
+ }, {
1804
+ _creationTime: number;
1805
+ _id: string;
1806
+ connectionId: string;
1807
+ domain: string;
1808
+ groupId: string;
1809
+ isPrimary: boolean;
1810
+ verifiedAt?: number;
1811
+ }, Name>;
1812
+ };
1813
+ scim: {
1814
+ groupConnectionScimConfigGet: FunctionReference<"query", "internal", {
1815
+ connectionId?: string;
1816
+ tokenHash?: string;
1817
+ }, {
1818
+ _creationTime: number;
1819
+ _id: string;
1820
+ basePath: string;
1821
+ connectionId: string;
1822
+ extend?: any;
1823
+ groupId: string;
1824
+ lastRotatedAt?: number;
1825
+ status: "draft" | "active" | "disabled";
1826
+ tokenHash: string;
1827
+ } | null, Name>;
1828
+ groupConnectionScimConfigUpsert: FunctionReference<"mutation", "internal", {
1829
+ basePath: string;
1830
+ connectionId: string;
1831
+ extend?: any;
1832
+ groupId: string;
1833
+ lastRotatedAt?: number;
1834
+ status: "draft" | "active" | "disabled";
1835
+ tokenHash: string;
1836
+ }, string, Name>;
1837
+ groupConnectionScimIdentityDelete: FunctionReference<"mutation", "internal", {
1838
+ identityId: string;
1839
+ }, null, Name>;
1840
+ groupConnectionScimIdentityGet: FunctionReference<"query", "internal", {
1841
+ connectionId?: string;
1842
+ externalId?: string;
1843
+ mappedGroupId?: string;
1844
+ resourceType?: "user" | "group";
1845
+ userId?: string;
1846
+ userIds?: Array<string>;
1847
+ }, {
1848
+ _creationTime: number;
1849
+ _id: string;
1850
+ active?: boolean;
1851
+ connectionId: string;
1852
+ externalId: string;
1853
+ groupId: string;
1854
+ lastProvisionedAt?: number;
1855
+ mappedGroupId?: string;
1856
+ raw?: any;
1857
+ resourceType: "user" | "group";
1858
+ userId?: string;
1859
+ } | null | Array<{
1860
+ _creationTime: number;
1861
+ _id: string;
1862
+ active?: boolean;
1863
+ connectionId: string;
1864
+ externalId: string;
1865
+ groupId: string;
1866
+ lastProvisionedAt?: number;
1867
+ mappedGroupId?: string;
1868
+ raw?: any;
1869
+ resourceType: "user" | "group";
1870
+ userId?: string;
1871
+ } | null>, Name>;
1872
+ groupConnectionScimIdentityListByGroupConnection: FunctionReference<"query", "internal", {
1873
+ connectionId: string;
1874
+ }, Array<{
1875
+ _creationTime: number;
1876
+ _id: string;
1877
+ active?: boolean;
1878
+ connectionId: string;
1879
+ externalId: string;
1880
+ groupId: string;
1881
+ lastProvisionedAt?: number;
1882
+ mappedGroupId?: string;
1883
+ raw?: any;
1884
+ resourceType: "user" | "group";
1885
+ userId?: string;
1886
+ }>, Name>;
1887
+ groupConnectionScimIdentityUpsert: FunctionReference<"mutation", "internal", {
1888
+ active?: boolean;
1889
+ connectionId: string;
1890
+ externalId: string;
1891
+ groupId: string;
1892
+ lastProvisionedAt?: number;
1893
+ mappedGroupId?: string;
1894
+ raw?: any;
1895
+ resourceType: "user" | "group";
1896
+ userId?: string;
1897
+ }, string, Name>;
1898
+ };
1899
+ secrets: {
1900
+ groupConnectionSecretDelete: FunctionReference<"mutation", "internal", {
1901
+ connectionId: string;
1902
+ kind: "oidc_client_secret";
2457
1903
  }, null, Name>;
1904
+ groupConnectionSecretGet: FunctionReference<"query", "internal", {
1905
+ connectionId: string;
1906
+ kind: "oidc_client_secret";
1907
+ }, {
1908
+ _creationTime: number;
1909
+ _id: string;
1910
+ ciphertext: string;
1911
+ connectionId: string;
1912
+ groupId: string;
1913
+ kind: "oidc_client_secret";
1914
+ updatedAt: number;
1915
+ } | null, Name>;
1916
+ groupConnectionSecretUpsert: FunctionReference<"mutation", "internal", {
1917
+ ciphertext: string;
1918
+ connectionId: string;
1919
+ groupId: string;
1920
+ kind: "oidc_client_secret";
1921
+ updatedAt: number;
1922
+ }, string, Name>;
2458
1923
  };
2459
- limits: {
2460
- rateLimitCreate: FunctionReference<"mutation", "internal", {
2461
- attemptsLeft: number;
2462
- identifier: string;
2463
- lastAttemptTime: number;
1924
+ webhooks: {
1925
+ groupWebhookDeliveryCreate: FunctionReference<"mutation", "internal", {
1926
+ auditEventId?: string;
1927
+ connectionId: string;
1928
+ endpointId: string;
1929
+ eventType: string;
1930
+ nextAttemptAt: number;
1931
+ payload: any;
2464
1932
  }, string, Name>;
2465
- rateLimitDelete: FunctionReference<"mutation", "internal", {
2466
- rateLimitId: string;
1933
+ groupWebhookDeliveryList: FunctionReference<"query", "internal", {
1934
+ connectionId?: string;
1935
+ limit?: number;
1936
+ now?: number;
1937
+ }, Array<{
1938
+ _creationTime: number;
1939
+ _id: string;
1940
+ attemptCount: number;
1941
+ auditEventId?: string;
1942
+ connectionId: string;
1943
+ endpointId: string;
1944
+ eventType: string;
1945
+ lastAttemptAt?: number;
1946
+ lastError?: string;
1947
+ lastResponseStatus?: number;
1948
+ nextAttemptAt: number;
1949
+ payload: any;
1950
+ status: "pending" | "processing" | "delivered" | "failed";
1951
+ }>, Name>;
1952
+ groupWebhookDeliveryPatch: FunctionReference<"mutation", "internal", {
1953
+ data: any;
1954
+ deliveryId: string;
2467
1955
  }, null, Name>;
2468
- rateLimitGet: FunctionReference<"query", "internal", {
2469
- identifier: string;
1956
+ groupWebhookEndpointCreate: FunctionReference<"mutation", "internal", {
1957
+ connectionId: string;
1958
+ createdByUserId?: string;
1959
+ extend?: any;
1960
+ groupId: string;
1961
+ secretHash: string;
1962
+ status?: "active" | "disabled";
1963
+ subscriptions: Array<string>;
1964
+ url: string;
1965
+ }, string, Name>;
1966
+ groupWebhookEndpointGet: FunctionReference<"query", "internal", {
1967
+ endpointId: string;
2470
1968
  }, {
2471
1969
  _creationTime: number;
2472
1970
  _id: string;
2473
- attemptsLeft: number;
2474
- attempts_left: number;
2475
- identifier: string;
2476
- lastAttemptTime: number;
2477
- last_attempt_time: number;
1971
+ connectionId: string;
1972
+ createdByUserId?: string;
1973
+ extend?: any;
1974
+ failureCount: number;
1975
+ groupId: string;
1976
+ lastFailureAt?: number;
1977
+ lastSuccessAt?: number;
1978
+ secretHash: string;
1979
+ status: "active" | "disabled";
1980
+ subscriptions: Array<string>;
1981
+ url: string;
2478
1982
  } | null, Name>;
2479
- rateLimitPatch: FunctionReference<"mutation", "internal", {
1983
+ groupWebhookEndpointList: FunctionReference<"query", "internal", {
1984
+ connectionId: string;
1985
+ }, Array<{
1986
+ _creationTime: number;
1987
+ _id: string;
1988
+ connectionId: string;
1989
+ createdByUserId?: string;
1990
+ extend?: any;
1991
+ failureCount: number;
1992
+ groupId: string;
1993
+ lastFailureAt?: number;
1994
+ lastSuccessAt?: number;
1995
+ secretHash: string;
1996
+ status: "active" | "disabled";
1997
+ subscriptions: Array<string>;
1998
+ url: string;
1999
+ }>, Name>;
2000
+ groupWebhookEndpointUpdate: FunctionReference<"mutation", "internal", {
2480
2001
  data: any;
2481
- rateLimitId: string;
2002
+ endpointId: string;
2482
2003
  }, null, Name>;
2483
2004
  };
2484
2005
  };
2485
- sessionCreate: FunctionReference<"mutation", "internal", {
2006
+ };
2007
+ rateLimit: {
2008
+ create: FunctionReference<"mutation", "internal", {
2009
+ attemptsLeft: number;
2010
+ identifier: string;
2011
+ lastAttemptTime: number;
2012
+ }, string, Name>;
2013
+ delete: FunctionReference<"mutation", "internal", {
2014
+ rateLimitId: string;
2015
+ }, null, Name>;
2016
+ get: FunctionReference<"query", "internal", {
2017
+ identifier: string;
2018
+ }, {
2019
+ _creationTime: number;
2020
+ _id: string;
2021
+ attemptsLeft: number;
2022
+ attempts_left: number;
2023
+ identifier: string;
2024
+ lastAttemptTime: number;
2025
+ last_attempt_time: number;
2026
+ } | null, Name>;
2027
+ update: FunctionReference<"mutation", "internal", {
2028
+ data: any;
2029
+ rateLimitId: string;
2030
+ }, null, Name>;
2031
+ };
2032
+ session: {
2033
+ create: FunctionReference<"mutation", "internal", {
2486
2034
  expirationTime: number;
2487
2035
  userId: string;
2488
2036
  }, string, Name>;
2489
- sessionDelete: FunctionReference<"mutation", "internal", {
2037
+ delete: FunctionReference<"mutation", "internal", {
2490
2038
  sessionId: string;
2491
2039
  }, null, Name>;
2492
- sessionGetById: FunctionReference<"query", "internal", {
2040
+ get: FunctionReference<"query", "internal", {
2493
2041
  sessionId: string;
2494
2042
  }, {
2495
2043
  _creationTime: number;
@@ -2497,7 +2045,7 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
2497
2045
  expirationTime: number;
2498
2046
  userId: string;
2499
2047
  } | null, Name>;
2500
- sessionIssue: FunctionReference<"mutation", "internal", {
2048
+ issue: FunctionReference<"mutation", "internal", {
2501
2049
  refreshTokenExpirationTime?: number;
2502
2050
  replaceSessionId?: string;
2503
2051
  sessionExpirationTime: number;
@@ -2508,157 +2056,76 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
2508
2056
  sessionId: string;
2509
2057
  userId: string;
2510
2058
  }, Name>;
2511
- sessionList: FunctionReference<"query", "internal", {
2512
- cursor?: string | null;
2513
- limit?: number;
2514
- order?: "asc" | "desc";
2515
- where?: {
2516
- userId?: string;
2517
- };
2518
- }, {
2519
- items: Array<{
2520
- _creationTime: number;
2521
- _id: string;
2522
- expirationTime: number;
2523
- userId: string;
2524
- }>;
2525
- nextCursor: string | null;
2526
- }, Name>;
2527
- sessionListByUser: FunctionReference<"query", "internal", {
2528
- userId: string;
2529
- }, Array<{
2530
- _creationTime: number;
2531
- _id: string;
2532
- expirationTime: number;
2059
+ list: FunctionReference<"query", "internal", {
2533
2060
  userId: string;
2534
- }>, Name>;
2535
- sso: {
2536
- audit: {
2537
- groupAuditEventCreate: FunctionReference<"mutation", "internal", {
2538
- actorId?: string;
2539
- actorType: "user" | "system" | "scim" | "api_key" | "webhook";
2540
- connectionId?: string;
2541
- eventType: string;
2542
- groupId: string;
2543
- ip?: string;
2544
- metadata?: any;
2545
- occurredAt: number;
2546
- requestId?: string;
2547
- status: "success" | "failure";
2548
- subjectId?: string;
2549
- subjectType: string;
2550
- }, string, Name>;
2551
- groupAuditEventList: FunctionReference<"query", "internal", {
2552
- connectionId?: string;
2553
- groupId?: string;
2554
- limit?: number;
2555
- }, Array<{
2556
- _creationTime: number;
2557
- _id: string;
2558
- actorId?: string;
2559
- actorType: "user" | "system" | "scim" | "api_key" | "webhook";
2560
- connectionId?: string;
2561
- eventType: string;
2562
- groupId: string;
2563
- ip?: string;
2564
- metadata?: any;
2565
- occurredAt: number;
2566
- requestId?: string;
2567
- status: "success" | "failure";
2568
- subjectId?: string;
2569
- subjectType: string;
2570
- }>, Name>;
2571
- };
2572
- core: {
2573
- groupConnectionCreate: FunctionReference<"mutation", "internal", {
2574
- config?: any;
2575
- extend?: any;
2576
- groupId: string;
2577
- name?: string;
2578
- protocol: "oidc" | "saml";
2579
- slug?: string;
2580
- status?: "draft" | "active" | "disabled";
2581
- }, string, Name>;
2582
- groupConnectionDelete: FunctionReference<"mutation", "internal", {
2583
- connectionId: string;
2584
- }, null, Name>;
2585
- groupConnectionGet: FunctionReference<"query", "internal", {
2586
- connectionId: string;
2587
- }, {
2588
- _creationTime: number;
2589
- _id: string;
2590
- config?: any;
2591
- extend?: any;
2592
- groupId: string;
2593
- name?: string;
2594
- protocol: "oidc" | "saml";
2595
- slug?: string;
2596
- status: "draft" | "active" | "disabled";
2597
- } | null, Name>;
2598
- groupConnectionGetByDomain: FunctionReference<"query", "internal", {
2599
- domain: string;
2600
- }, {
2601
- connection: {
2602
- _creationTime: number;
2603
- _id: string;
2604
- config?: any;
2605
- extend?: any;
2606
- groupId: string;
2607
- name?: string;
2608
- protocol: "oidc" | "saml";
2609
- slug?: string;
2610
- status: "draft" | "active" | "disabled";
2611
- };
2612
- domain: {
2613
- _creationTime: number;
2614
- _id: string;
2615
- connectionId: string;
2616
- domain: string;
2617
- groupId: string;
2618
- isPrimary: boolean;
2619
- verifiedAt?: number;
2620
- };
2621
- } | null, Name>;
2622
- groupConnectionList: FunctionReference<"query", "internal", {
2623
- cursor?: string | null;
2624
- limit?: number;
2625
- order?: "asc" | "desc";
2626
- orderBy?: "_creationTime" | "name" | "slug" | "status";
2627
- where?: {
2628
- groupId?: string;
2629
- slug?: string;
2630
- status?: "draft" | "active" | "disabled";
2631
- };
2632
- }, {
2633
- items: Array<{
2634
- _creationTime: number;
2635
- _id: string;
2636
- config?: any;
2637
- extend?: any;
2638
- groupId: string;
2639
- name?: string;
2640
- protocol: "oidc" | "saml";
2641
- slug?: string;
2642
- status: "draft" | "active" | "disabled";
2643
- }>;
2644
- nextCursor: string | null;
2645
- }, Name>;
2646
- groupConnectionUpdate: FunctionReference<"mutation", "internal", {
2647
- connectionId: string;
2648
- data: any;
2649
- }, null, Name>;
2650
- };
2651
- domains: {
2652
- groupConnectionDomainAdd: FunctionReference<"mutation", "internal", {
2061
+ }, Array<{
2062
+ _creationTime: number;
2063
+ _id: string;
2064
+ expirationTime: number;
2065
+ userId: string;
2066
+ }>, Name>;
2067
+ };
2068
+ sso: {
2069
+ audit: {
2070
+ create: FunctionReference<"mutation", "internal", {
2071
+ actorId?: string;
2072
+ actorType: "user" | "system" | "scim" | "api_key" | "webhook";
2073
+ connectionId?: string;
2074
+ eventType: string;
2075
+ groupId: string;
2076
+ ip?: string;
2077
+ metadata?: any;
2078
+ occurredAt: number;
2079
+ requestId?: string;
2080
+ status: "success" | "failure";
2081
+ subjectId?: string;
2082
+ subjectType: string;
2083
+ }, string, Name>;
2084
+ list: FunctionReference<"query", "internal", {
2085
+ connectionId?: string;
2086
+ groupId?: string;
2087
+ limit?: number;
2088
+ }, Array<{
2089
+ _creationTime: number;
2090
+ _id: string;
2091
+ actorId?: string;
2092
+ actorType: "user" | "system" | "scim" | "api_key" | "webhook";
2093
+ connectionId?: string;
2094
+ eventType: string;
2095
+ groupId: string;
2096
+ ip?: string;
2097
+ metadata?: any;
2098
+ occurredAt: number;
2099
+ requestId?: string;
2100
+ status: "success" | "failure";
2101
+ subjectId?: string;
2102
+ subjectType: string;
2103
+ }>, Name>;
2104
+ };
2105
+ connection: {
2106
+ create: FunctionReference<"mutation", "internal", {
2107
+ config?: any;
2108
+ extend?: any;
2109
+ groupId: string;
2110
+ name?: string;
2111
+ protocol: "oidc" | "saml";
2112
+ slug?: string;
2113
+ status?: "draft" | "active" | "disabled";
2114
+ }, string, Name>;
2115
+ delete: FunctionReference<"mutation", "internal", {
2116
+ connectionId: string;
2117
+ }, null, Name>;
2118
+ domain: {
2119
+ create: FunctionReference<"mutation", "internal", {
2653
2120
  connectionId: string;
2654
2121
  domain: string;
2655
2122
  groupId: string;
2656
2123
  isPrimary?: boolean;
2657
2124
  }, string, Name>;
2658
- groupConnectionDomainDelete: FunctionReference<"mutation", "internal", {
2125
+ delete: FunctionReference<"mutation", "internal", {
2659
2126
  domainId: string;
2660
2127
  }, null, Name>;
2661
- groupConnectionDomainList: FunctionReference<"query", "internal", {
2128
+ list: FunctionReference<"query", "internal", {
2662
2129
  connectionId: string;
2663
2130
  limit?: number;
2664
2131
  }, Array<{
@@ -2670,36 +2137,38 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
2670
2137
  isPrimary: boolean;
2671
2138
  verifiedAt?: number;
2672
2139
  }>, Name>;
2673
- groupConnectionDomainVerificationDelete: FunctionReference<"mutation", "internal", {
2674
- domainId: string;
2675
- }, null, Name>;
2676
- groupConnectionDomainVerificationGet: FunctionReference<"query", "internal", {
2677
- domainId: string;
2678
- }, {
2679
- _creationTime: number;
2680
- _id: string;
2681
- connectionId: string;
2682
- domain: string;
2683
- domainId: string;
2684
- expiresAt: number;
2685
- groupId: string;
2686
- recordName: string;
2687
- requestedAt: number;
2688
- token: string;
2689
- tokenHash: string;
2690
- } | null, Name>;
2691
- groupConnectionDomainVerificationUpsert: FunctionReference<"mutation", "internal", {
2692
- connectionId: string;
2693
- domain: string;
2694
- domainId: string;
2695
- expiresAt: number;
2696
- groupId: string;
2697
- recordName: string;
2698
- requestedAt: number;
2699
- token: string;
2700
- tokenHash: string;
2701
- }, string, Name>;
2702
- groupConnectionDomainVerify: FunctionReference<"mutation", "internal", {
2140
+ verification: {
2141
+ delete: FunctionReference<"mutation", "internal", {
2142
+ domainId: string;
2143
+ }, null, Name>;
2144
+ get: FunctionReference<"query", "internal", {
2145
+ domainId: string;
2146
+ }, {
2147
+ _creationTime: number;
2148
+ _id: string;
2149
+ connectionId: string;
2150
+ domain: string;
2151
+ domainId: string;
2152
+ expiresAt: number;
2153
+ groupId: string;
2154
+ recordName: string;
2155
+ requestedAt: number;
2156
+ token: string;
2157
+ tokenHash: string;
2158
+ } | null, Name>;
2159
+ upsert: FunctionReference<"mutation", "internal", {
2160
+ connectionId: string;
2161
+ domain: string;
2162
+ domainId: string;
2163
+ expiresAt: number;
2164
+ groupId: string;
2165
+ recordName: string;
2166
+ requestedAt: number;
2167
+ token: string;
2168
+ tokenHash: string;
2169
+ }, string, Name>;
2170
+ };
2171
+ verify: FunctionReference<"mutation", "internal", {
2703
2172
  domainId: string;
2704
2173
  verifiedAt: number;
2705
2174
  }, {
@@ -2712,83 +2181,103 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
2712
2181
  verifiedAt?: number;
2713
2182
  }, Name>;
2714
2183
  };
2715
- scim: {
2716
- groupConnectionScimConfigGetByGroupConnection: FunctionReference<"query", "internal", {
2717
- connectionId: string;
2718
- }, {
2719
- _creationTime: number;
2720
- _id: string;
2721
- basePath: string;
2722
- connectionId: string;
2723
- extend?: any;
2724
- groupId: string;
2725
- lastRotatedAt?: number;
2726
- status: "draft" | "active" | "disabled";
2727
- tokenHash: string;
2728
- } | null, Name>;
2729
- groupConnectionScimConfigGetByTokenHash: FunctionReference<"query", "internal", {
2730
- tokenHash: string;
2731
- }, {
2184
+ get: FunctionReference<"query", "internal", {
2185
+ connectionId?: string;
2186
+ domain?: string;
2187
+ }, {
2188
+ _creationTime: number;
2189
+ _id: string;
2190
+ config?: any;
2191
+ extend?: any;
2192
+ groupId: string;
2193
+ name?: string;
2194
+ protocol: "oidc" | "saml";
2195
+ slug?: string;
2196
+ status: "draft" | "active" | "disabled";
2197
+ } | {
2198
+ connection: {
2732
2199
  _creationTime: number;
2733
2200
  _id: string;
2734
- basePath: string;
2735
- connectionId: string;
2736
- extend?: any;
2737
- groupId: string;
2738
- lastRotatedAt?: number;
2739
- status: "draft" | "active" | "disabled";
2740
- tokenHash: string;
2741
- } | null, Name>;
2742
- groupConnectionScimConfigUpsert: FunctionReference<"mutation", "internal", {
2743
- basePath: string;
2744
- connectionId: string;
2201
+ config?: any;
2745
2202
  extend?: any;
2746
2203
  groupId: string;
2747
- lastRotatedAt?: number;
2204
+ name?: string;
2205
+ protocol: "oidc" | "saml";
2206
+ slug?: string;
2748
2207
  status: "draft" | "active" | "disabled";
2749
- tokenHash: string;
2750
- }, string, Name>;
2751
- groupConnectionScimIdentityDelete: FunctionReference<"mutation", "internal", {
2752
- identityId: string;
2753
- }, null, Name>;
2754
- groupConnectionScimIdentityGet: FunctionReference<"query", "internal", {
2755
- connectionId: string;
2756
- externalId: string;
2757
- resourceType: "user" | "group";
2758
- }, {
2208
+ };
2209
+ domain: {
2759
2210
  _creationTime: number;
2760
2211
  _id: string;
2761
- active?: boolean;
2762
2212
  connectionId: string;
2763
- externalId: string;
2213
+ domain: string;
2764
2214
  groupId: string;
2765
- lastProvisionedAt?: number;
2766
- mappedGroupId?: string;
2767
- raw?: any;
2768
- resourceType: "user" | "group";
2769
- userId?: string;
2770
- } | null, Name>;
2771
- groupConnectionScimIdentityGetByGroupConnectionAndUser: FunctionReference<"query", "internal", {
2772
- connectionId: string;
2773
- userId: string;
2774
- }, {
2215
+ isPrimary: boolean;
2216
+ verifiedAt?: number;
2217
+ };
2218
+ } | null, Name>;
2219
+ list: FunctionReference<"query", "internal", {
2220
+ cursor?: string | null;
2221
+ limit?: number;
2222
+ order?: "asc" | "desc";
2223
+ orderBy?: "_creationTime" | "name" | "slug" | "status";
2224
+ where?: {
2225
+ groupId?: string;
2226
+ slug?: string;
2227
+ status?: "draft" | "active" | "disabled";
2228
+ };
2229
+ }, {
2230
+ items: Array<{
2775
2231
  _creationTime: number;
2776
2232
  _id: string;
2777
- active?: boolean;
2778
- connectionId: string;
2779
- externalId: string;
2233
+ config?: any;
2234
+ extend?: any;
2780
2235
  groupId: string;
2781
- lastProvisionedAt?: number;
2782
- mappedGroupId?: string;
2783
- raw?: any;
2784
- resourceType: "user" | "group";
2785
- userId?: string;
2786
- } | null, Name>;
2787
- groupConnectionScimIdentityGetByGroupConnectionAndUsers: FunctionReference<"query", "internal", {
2788
- connectionId: string;
2789
- userIds: Array<string>;
2790
- }, Array<{
2791
- identity: {
2236
+ name?: string;
2237
+ protocol: "oidc" | "saml";
2238
+ slug?: string;
2239
+ status: "draft" | "active" | "disabled";
2240
+ }>;
2241
+ nextCursor: string | null;
2242
+ }, Name>;
2243
+ scim: {
2244
+ config: {
2245
+ get: FunctionReference<"query", "internal", {
2246
+ connectionId?: string;
2247
+ tokenHash?: string;
2248
+ }, {
2249
+ _creationTime: number;
2250
+ _id: string;
2251
+ basePath: string;
2252
+ connectionId: string;
2253
+ extend?: any;
2254
+ groupId: string;
2255
+ lastRotatedAt?: number;
2256
+ status: "draft" | "active" | "disabled";
2257
+ tokenHash: string;
2258
+ } | null, Name>;
2259
+ upsert: FunctionReference<"mutation", "internal", {
2260
+ basePath: string;
2261
+ connectionId: string;
2262
+ extend?: any;
2263
+ groupId: string;
2264
+ lastRotatedAt?: number;
2265
+ status: "draft" | "active" | "disabled";
2266
+ tokenHash: string;
2267
+ }, string, Name>;
2268
+ };
2269
+ identity: {
2270
+ delete: FunctionReference<"mutation", "internal", {
2271
+ identityId: string;
2272
+ }, null, Name>;
2273
+ get: FunctionReference<"query", "internal", {
2274
+ connectionId?: string;
2275
+ externalId?: string;
2276
+ mappedGroupId?: string;
2277
+ resourceType?: "user" | "group";
2278
+ userId?: string;
2279
+ userIds?: Array<string>;
2280
+ }, {
2792
2281
  _creationTime: number;
2793
2282
  _id: string;
2794
2283
  active?: boolean;
@@ -2800,72 +2289,53 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
2800
2289
  raw?: any;
2801
2290
  resourceType: "user" | "group";
2802
2291
  userId?: string;
2803
- } | null;
2804
- userId: string;
2805
- }>, Name>;
2806
- groupConnectionScimIdentityGetByMappedGroup: FunctionReference<"query", "internal", {
2807
- mappedGroupId: string;
2808
- }, {
2809
- _creationTime: number;
2810
- _id: string;
2811
- active?: boolean;
2812
- connectionId: string;
2813
- externalId: string;
2814
- groupId: string;
2815
- lastProvisionedAt?: number;
2816
- mappedGroupId?: string;
2817
- raw?: any;
2818
- resourceType: "user" | "group";
2819
- userId?: string;
2820
- } | null, Name>;
2821
- groupConnectionScimIdentityGetByUser: FunctionReference<"query", "internal", {
2822
- userId: string;
2823
- }, {
2824
- _creationTime: number;
2825
- _id: string;
2826
- active?: boolean;
2827
- connectionId: string;
2828
- externalId: string;
2829
- groupId: string;
2830
- lastProvisionedAt?: number;
2831
- mappedGroupId?: string;
2832
- raw?: any;
2833
- resourceType: "user" | "group";
2834
- userId?: string;
2835
- } | null, Name>;
2836
- groupConnectionScimIdentityListByGroupConnection: FunctionReference<"query", "internal", {
2837
- connectionId: string;
2838
- }, Array<{
2839
- _creationTime: number;
2840
- _id: string;
2841
- active?: boolean;
2842
- connectionId: string;
2843
- externalId: string;
2844
- groupId: string;
2845
- lastProvisionedAt?: number;
2846
- mappedGroupId?: string;
2847
- raw?: any;
2848
- resourceType: "user" | "group";
2849
- userId?: string;
2850
- }>, Name>;
2851
- groupConnectionScimIdentityUpsert: FunctionReference<"mutation", "internal", {
2852
- active?: boolean;
2853
- connectionId: string;
2854
- externalId: string;
2855
- groupId: string;
2856
- lastProvisionedAt?: number;
2857
- mappedGroupId?: string;
2858
- raw?: any;
2859
- resourceType: "user" | "group";
2860
- userId?: string;
2861
- }, string, Name>;
2292
+ } | null | Array<{
2293
+ _creationTime: number;
2294
+ _id: string;
2295
+ active?: boolean;
2296
+ connectionId: string;
2297
+ externalId: string;
2298
+ groupId: string;
2299
+ lastProvisionedAt?: number;
2300
+ mappedGroupId?: string;
2301
+ raw?: any;
2302
+ resourceType: "user" | "group";
2303
+ userId?: string;
2304
+ } | null>, Name>;
2305
+ list: FunctionReference<"query", "internal", {
2306
+ connectionId: string;
2307
+ }, Array<{
2308
+ _creationTime: number;
2309
+ _id: string;
2310
+ active?: boolean;
2311
+ connectionId: string;
2312
+ externalId: string;
2313
+ groupId: string;
2314
+ lastProvisionedAt?: number;
2315
+ mappedGroupId?: string;
2316
+ raw?: any;
2317
+ resourceType: "user" | "group";
2318
+ userId?: string;
2319
+ }>, Name>;
2320
+ upsert: FunctionReference<"mutation", "internal", {
2321
+ active?: boolean;
2322
+ connectionId: string;
2323
+ externalId: string;
2324
+ groupId: string;
2325
+ lastProvisionedAt?: number;
2326
+ mappedGroupId?: string;
2327
+ raw?: any;
2328
+ resourceType: "user" | "group";
2329
+ userId?: string;
2330
+ }, string, Name>;
2331
+ };
2862
2332
  };
2863
- secrets: {
2864
- groupConnectionSecretDelete: FunctionReference<"mutation", "internal", {
2333
+ secret: {
2334
+ delete: FunctionReference<"mutation", "internal", {
2865
2335
  connectionId: string;
2866
2336
  kind: "oidc_client_secret";
2867
2337
  }, null, Name>;
2868
- groupConnectionSecretGet: FunctionReference<"query", "internal", {
2338
+ get: FunctionReference<"query", "internal", {
2869
2339
  connectionId: string;
2870
2340
  kind: "oidc_client_secret";
2871
2341
  }, {
@@ -2877,7 +2347,7 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
2877
2347
  kind: "oidc_client_secret";
2878
2348
  updatedAt: number;
2879
2349
  } | null, Name>;
2880
- groupConnectionSecretUpsert: FunctionReference<"mutation", "internal", {
2350
+ upsert: FunctionReference<"mutation", "internal", {
2881
2351
  ciphertext: string;
2882
2352
  connectionId: string;
2883
2353
  groupId: string;
@@ -2885,8 +2355,14 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
2885
2355
  updatedAt: number;
2886
2356
  }, string, Name>;
2887
2357
  };
2888
- webhooks: {
2889
- groupWebhookDeliveryEnqueue: FunctionReference<"mutation", "internal", {
2358
+ update: FunctionReference<"mutation", "internal", {
2359
+ connectionId: string;
2360
+ data: any;
2361
+ }, null, Name>;
2362
+ };
2363
+ webhook: {
2364
+ delivery: {
2365
+ create: FunctionReference<"mutation", "internal", {
2890
2366
  auditEventId?: string;
2891
2367
  connectionId: string;
2892
2368
  endpointId: string;
@@ -2894,27 +2370,10 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
2894
2370
  nextAttemptAt: number;
2895
2371
  payload: any;
2896
2372
  }, string, Name>;
2897
- groupWebhookDeliveryList: FunctionReference<"query", "internal", {
2898
- connectionId: string;
2899
- limit?: number;
2900
- }, Array<{
2901
- _creationTime: number;
2902
- _id: string;
2903
- attemptCount: number;
2904
- auditEventId?: string;
2905
- connectionId: string;
2906
- endpointId: string;
2907
- eventType: string;
2908
- lastAttemptAt?: number;
2909
- lastError?: string;
2910
- lastResponseStatus?: number;
2911
- nextAttemptAt: number;
2912
- payload: any;
2913
- status: "pending" | "processing" | "delivered" | "failed";
2914
- }>, Name>;
2915
- groupWebhookDeliveryListReady: FunctionReference<"query", "internal", {
2373
+ list: FunctionReference<"query", "internal", {
2374
+ connectionId?: string;
2916
2375
  limit?: number;
2917
- now: number;
2376
+ now?: number;
2918
2377
  }, Array<{
2919
2378
  _creationTime: number;
2920
2379
  _id: string;
@@ -2930,11 +2389,13 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
2930
2389
  payload: any;
2931
2390
  status: "pending" | "processing" | "delivered" | "failed";
2932
2391
  }>, Name>;
2933
- groupWebhookDeliveryPatch: FunctionReference<"mutation", "internal", {
2392
+ update: FunctionReference<"mutation", "internal", {
2934
2393
  data: any;
2935
2394
  deliveryId: string;
2936
2395
  }, null, Name>;
2937
- groupWebhookEndpointCreate: FunctionReference<"mutation", "internal", {
2396
+ };
2397
+ endpoint: {
2398
+ create: FunctionReference<"mutation", "internal", {
2938
2399
  connectionId: string;
2939
2400
  createdByUserId?: string;
2940
2401
  extend?: any;
@@ -2944,7 +2405,7 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
2944
2405
  subscriptions: Array<string>;
2945
2406
  url: string;
2946
2407
  }, string, Name>;
2947
- groupWebhookEndpointGet: FunctionReference<"query", "internal", {
2408
+ get: FunctionReference<"query", "internal", {
2948
2409
  endpointId: string;
2949
2410
  }, {
2950
2411
  _creationTime: number;
@@ -2961,7 +2422,7 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
2961
2422
  subscriptions: Array<string>;
2962
2423
  url: string;
2963
2424
  } | null, Name>;
2964
- groupWebhookEndpointList: FunctionReference<"query", "internal", {
2425
+ list: FunctionReference<"query", "internal", {
2965
2426
  connectionId: string;
2966
2427
  }, Array<{
2967
2428
  _creationTime: number;
@@ -2978,142 +2439,321 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
2978
2439
  subscriptions: Array<string>;
2979
2440
  url: string;
2980
2441
  }>, Name>;
2981
- groupWebhookEndpointUpdate: FunctionReference<"mutation", "internal", {
2442
+ update: FunctionReference<"mutation", "internal", {
2982
2443
  data: any;
2983
2444
  endpointId: string;
2984
2445
  }, null, Name>;
2985
2446
  };
2986
2447
  };
2987
- totpDelete: FunctionReference<"mutation", "internal", {
2988
- totpId: string;
2989
- }, null, Name>;
2990
- totpGetById: FunctionReference<"query", "internal", {
2991
- totpId: string;
2992
- }, {
2993
- _creationTime: number;
2994
- _id: string;
2995
- createdAt: number;
2996
- digits: number;
2997
- lastUsedAt?: number;
2998
- name?: string;
2999
- period: number;
3000
- secret: ArrayBuffer;
3001
- userId: string;
3002
- verified: boolean;
3003
- } | null, Name>;
3004
- totpGetVerifiedByUserId: FunctionReference<"query", "internal", {
3005
- userId: string;
3006
- }, {
3007
- _creationTime: number;
3008
- _id: string;
3009
- createdAt: number;
3010
- digits: number;
3011
- lastUsedAt?: number;
3012
- name?: string;
3013
- period: number;
3014
- secret: ArrayBuffer;
3015
- userId: string;
3016
- verified: boolean;
3017
- } | null, Name>;
3018
- totpInsert: FunctionReference<"mutation", "internal", {
3019
- createdAt: number;
3020
- digits: number;
3021
- name?: string;
3022
- period: number;
3023
- secret: ArrayBuffer;
3024
- userId: string;
3025
- verified: boolean;
2448
+ };
2449
+ token: {
2450
+ pkce: {
2451
+ create: FunctionReference<"mutation", "internal", {
2452
+ expirationTime?: number;
2453
+ sessionId?: string;
2454
+ signature?: string;
2455
+ }, string, Name>;
2456
+ delete: FunctionReference<"mutation", "internal", {
2457
+ verifierId: string;
2458
+ }, null, Name>;
2459
+ get: FunctionReference<"query", "internal", {
2460
+ id?: string;
2461
+ signature?: string;
2462
+ }, {
2463
+ _creationTime: number;
2464
+ _id: string;
2465
+ expirationTime?: number;
2466
+ sessionId?: string;
2467
+ signature?: string;
2468
+ } | null, Name>;
2469
+ update: FunctionReference<"mutation", "internal", {
2470
+ data: any;
2471
+ verifierId: string;
2472
+ }, null, Name>;
2473
+ };
2474
+ refresh: {
2475
+ create: FunctionReference<"mutation", "internal", {
2476
+ expirationTime: number;
2477
+ parentRefreshTokenId?: string;
2478
+ sessionId: string;
2479
+ }, string, Name>;
2480
+ delete: FunctionReference<"mutation", "internal", {
2481
+ sessionId: string;
2482
+ }, null, Name>;
2483
+ exchange: FunctionReference<"mutation", "internal", {
2484
+ now: number;
2485
+ refreshTokenExpirationTime: number;
2486
+ refreshTokenId: string;
2487
+ reuseWindowMs: number;
2488
+ sessionId: string;
2489
+ }, {
2490
+ refreshTokenId: string;
2491
+ sessionId: string;
2492
+ userId: string;
2493
+ } | null, Name>;
2494
+ get: FunctionReference<"query", "internal", {
2495
+ activeForSession?: string;
2496
+ id?: string;
2497
+ }, {
2498
+ _creationTime: number;
2499
+ _id: string;
2500
+ expirationTime: number;
2501
+ firstUsedTime?: number;
2502
+ parentRefreshTokenId?: string;
2503
+ sessionId: string;
2504
+ } | null, Name>;
2505
+ list: FunctionReference<"query", "internal", {
2506
+ sessionId: string;
2507
+ }, Array<{
2508
+ _creationTime: number;
2509
+ _id: string;
2510
+ expirationTime: number;
2511
+ firstUsedTime?: number;
2512
+ parentRefreshTokenId?: string;
2513
+ sessionId: string;
2514
+ }>, Name>;
2515
+ listChildren: FunctionReference<"query", "internal", {
2516
+ parentRefreshTokenId: string;
2517
+ sessionId: string;
2518
+ }, Array<{
2519
+ _creationTime: number;
2520
+ _id: string;
2521
+ expirationTime: number;
2522
+ firstUsedTime?: number;
2523
+ parentRefreshTokenId?: string;
2524
+ sessionId: string;
2525
+ }>, Name>;
2526
+ update: FunctionReference<"mutation", "internal", {
2527
+ data: any;
2528
+ refreshTokenId: string;
2529
+ }, null, Name>;
2530
+ };
2531
+ verification: {
2532
+ create: FunctionReference<"mutation", "internal", {
2533
+ accountId: string;
2534
+ code: string;
2535
+ emailVerified?: string;
2536
+ expirationTime: number;
2537
+ phoneVerified?: string;
2538
+ provider: string;
2539
+ verifier?: string;
2540
+ }, string, Name>;
2541
+ delete: FunctionReference<"mutation", "internal", {
2542
+ verificationCodeId: string;
2543
+ }, null, Name>;
2544
+ get: FunctionReference<"query", "internal", {
2545
+ accountId?: string;
2546
+ code?: string;
2547
+ }, {
2548
+ _creationTime: number;
2549
+ _id: string;
2550
+ accountId: string;
2551
+ code: string;
2552
+ emailVerified?: string;
2553
+ expirationTime: number;
2554
+ phoneVerified?: string;
2555
+ provider: string;
2556
+ verifier?: string;
2557
+ } | null, Name>;
2558
+ };
2559
+ };
2560
+ user: {
2561
+ create: FunctionReference<"mutation", "internal", {
2562
+ data: any;
3026
2563
  }, string, Name>;
3027
- totpListByUserId: FunctionReference<"query", "internal", {
3028
- userId: string;
3029
- }, Array<{
3030
- _creationTime: number;
3031
- _id: string;
3032
- createdAt: number;
3033
- digits: number;
3034
- lastUsedAt?: number;
3035
- name?: string;
3036
- period: number;
3037
- secret: ArrayBuffer;
3038
- userId: string;
3039
- verified: boolean;
3040
- }>, Name>;
3041
- totpMarkVerified: FunctionReference<"mutation", "internal", {
3042
- lastUsedAt: number;
3043
- totpId: string;
3044
- }, null, Name>;
3045
- totpUpdateLastUsed: FunctionReference<"mutation", "internal", {
3046
- lastUsedAt: number;
3047
- totpId: string;
3048
- }, null, Name>;
3049
- userDelete: FunctionReference<"mutation", "internal", {
2564
+ delete: FunctionReference<"mutation", "internal", {
3050
2565
  cascade?: boolean;
3051
2566
  userId: string;
3052
2567
  }, null, Name>;
3053
- userFindByVerifiedEmail: FunctionReference<"query", "internal", {
3054
- email: string;
3055
- }, {
3056
- _creationTime: number;
3057
- _id: string;
3058
- email?: string;
3059
- emailVerificationTime?: number;
3060
- extend?: any;
3061
- hasTotp?: boolean;
3062
- image?: string;
3063
- isAnonymous?: boolean;
3064
- name?: string;
3065
- phone?: string;
3066
- phoneVerificationTime?: number;
3067
- } | null, Name>;
3068
- userFindByVerifiedPhone: FunctionReference<"query", "internal", {
3069
- phone: string;
3070
- }, {
3071
- _creationTime: number;
3072
- _id: string;
3073
- email?: string;
3074
- emailVerificationTime?: number;
3075
- extend?: any;
3076
- hasTotp?: boolean;
3077
- image?: string;
3078
- isAnonymous?: boolean;
3079
- name?: string;
3080
- phone?: string;
3081
- phoneVerificationTime?: number;
3082
- } | null, Name>;
3083
- userGetById: FunctionReference<"query", "internal", {
3084
- userId: string;
2568
+ email: {
2569
+ delete: FunctionReference<"mutation", "internal", {
2570
+ email: string;
2571
+ userId: string;
2572
+ }, null, Name>;
2573
+ list: FunctionReference<"query", "internal", {
2574
+ userId: string;
2575
+ }, Array<{
2576
+ _creationTime: number;
2577
+ _id: string;
2578
+ accountId?: string;
2579
+ connectionId?: string;
2580
+ email: string;
2581
+ isPrimary: boolean;
2582
+ provider?: string;
2583
+ source: "password" | "oauth" | "oidc" | "saml" | "scim";
2584
+ userId: string;
2585
+ verificationTime?: number;
2586
+ }>, Name>;
2587
+ owner: FunctionReference<"query", "internal", {
2588
+ connectionId?: string;
2589
+ email: string;
2590
+ }, {
2591
+ _creationTime: number;
2592
+ _id: string;
2593
+ email?: string;
2594
+ emailVerificationTime?: number;
2595
+ extend?: any;
2596
+ image?: string;
2597
+ isAnonymous?: boolean;
2598
+ lastActiveGroup?: string;
2599
+ name?: string;
2600
+ phone?: string;
2601
+ phoneVerificationTime?: number;
2602
+ } | null, Name>;
2603
+ setPrimary: FunctionReference<"mutation", "internal", {
2604
+ email: string;
2605
+ userId: string;
2606
+ }, null, Name>;
2607
+ upsert: FunctionReference<"mutation", "internal", {
2608
+ accountId?: string;
2609
+ connectionId?: string;
2610
+ email: string;
2611
+ isPrimary?: boolean;
2612
+ provider?: string;
2613
+ source: "password" | "oauth" | "oidc" | "saml" | "scim";
2614
+ userId: string;
2615
+ verified?: boolean;
2616
+ }, string, Name>;
2617
+ };
2618
+ get: FunctionReference<"query", "internal", {
2619
+ id?: string;
2620
+ ids?: Array<string>;
2621
+ verifiedEmail?: string;
2622
+ verifiedPhone?: string;
3085
2623
  }, {
3086
2624
  _creationTime: number;
3087
2625
  _id: string;
3088
2626
  email?: string;
3089
2627
  emailVerificationTime?: number;
3090
2628
  extend?: any;
3091
- hasTotp?: boolean;
3092
2629
  image?: string;
3093
2630
  isAnonymous?: boolean;
2631
+ lastActiveGroup?: string;
3094
2632
  name?: string;
3095
2633
  phone?: string;
3096
2634
  phoneVerificationTime?: number;
3097
- } | null, Name>;
3098
- userGetMany: FunctionReference<"query", "internal", {
3099
- userIds: Array<string>;
3100
- }, Array<{
2635
+ } | null | Array<{
3101
2636
  _creationTime: number;
3102
2637
  _id: string;
3103
2638
  email?: string;
3104
2639
  emailVerificationTime?: number;
3105
2640
  extend?: any;
3106
- hasTotp?: boolean;
3107
2641
  image?: string;
3108
2642
  isAnonymous?: boolean;
2643
+ lastActiveGroup?: string;
3109
2644
  name?: string;
3110
2645
  phone?: string;
3111
2646
  phoneVerificationTime?: number;
3112
2647
  } | null>, Name>;
3113
- userInsert: FunctionReference<"mutation", "internal", {
3114
- data: any;
3115
- }, string, Name>;
3116
- userList: FunctionReference<"query", "internal", {
2648
+ key: {
2649
+ create: FunctionReference<"mutation", "internal", {
2650
+ expiresAt?: number;
2651
+ hashedKey: string;
2652
+ metadata?: any;
2653
+ name: string;
2654
+ prefix: string;
2655
+ rateLimit?: {
2656
+ maxRequests: number;
2657
+ windowMs: number;
2658
+ };
2659
+ scopes: Array<{
2660
+ actions: Array<string>;
2661
+ resource: string;
2662
+ }>;
2663
+ userId: string;
2664
+ }, string, Name>;
2665
+ delete: FunctionReference<"mutation", "internal", {
2666
+ keyId: string;
2667
+ }, null, Name>;
2668
+ get: FunctionReference<"query", "internal", {
2669
+ hashedKey?: string;
2670
+ id?: string;
2671
+ }, {
2672
+ _creationTime: number;
2673
+ _id: string;
2674
+ createdAt: number;
2675
+ expiresAt?: number;
2676
+ hashedKey: string;
2677
+ lastUsedAt?: number;
2678
+ metadata?: any;
2679
+ name: string;
2680
+ prefix: string;
2681
+ rateLimit?: {
2682
+ maxRequests: number;
2683
+ windowMs: number;
2684
+ };
2685
+ rateLimitState?: {
2686
+ attemptsLeft: number;
2687
+ lastAttemptTime: number;
2688
+ };
2689
+ revoked: boolean;
2690
+ scopes: Array<{
2691
+ actions: Array<string>;
2692
+ resource: string;
2693
+ }>;
2694
+ userId: string;
2695
+ } | null, Name>;
2696
+ list: FunctionReference<"query", "internal", {
2697
+ cursor?: string | null;
2698
+ limit?: number;
2699
+ order?: "asc" | "desc";
2700
+ orderBy?: "_creationTime" | "name" | "lastUsedAt" | "expiresAt" | "revoked";
2701
+ where?: {
2702
+ name?: string;
2703
+ prefix?: string;
2704
+ revoked?: boolean;
2705
+ userId?: string;
2706
+ };
2707
+ }, {
2708
+ items: Array<{
2709
+ _creationTime: number;
2710
+ _id: string;
2711
+ createdAt: number;
2712
+ expiresAt?: number;
2713
+ hashedKey: string;
2714
+ lastUsedAt?: number;
2715
+ metadata?: any;
2716
+ name: string;
2717
+ prefix: string;
2718
+ rateLimit?: {
2719
+ maxRequests: number;
2720
+ windowMs: number;
2721
+ };
2722
+ rateLimitState?: {
2723
+ attemptsLeft: number;
2724
+ lastAttemptTime: number;
2725
+ };
2726
+ revoked: boolean;
2727
+ scopes: Array<{
2728
+ actions: Array<string>;
2729
+ resource: string;
2730
+ }>;
2731
+ userId: string;
2732
+ }>;
2733
+ nextCursor: string | null;
2734
+ }, Name>;
2735
+ update: FunctionReference<"mutation", "internal", {
2736
+ data: {
2737
+ lastUsedAt?: number;
2738
+ name?: string;
2739
+ rateLimit?: {
2740
+ maxRequests: number;
2741
+ windowMs: number;
2742
+ };
2743
+ rateLimitState?: {
2744
+ attemptsLeft: number;
2745
+ lastAttemptTime: number;
2746
+ };
2747
+ revoked?: boolean;
2748
+ scopes?: Array<{
2749
+ actions: Array<string>;
2750
+ resource: string;
2751
+ }>;
2752
+ };
2753
+ keyId: string;
2754
+ }, null, Name>;
2755
+ };
2756
+ list: FunctionReference<"query", "internal", {
3117
2757
  cursor?: string | null;
3118
2758
  limit?: number;
3119
2759
  order?: "asc" | "desc";
@@ -3131,91 +2771,23 @@ type ComponentApi<Name extends string | undefined = string | undefined> = {
3131
2771
  email?: string;
3132
2772
  emailVerificationTime?: number;
3133
2773
  extend?: any;
3134
- hasTotp?: boolean;
3135
2774
  image?: string;
3136
2775
  isAnonymous?: boolean;
2776
+ lastActiveGroup?: string;
3137
2777
  name?: string;
3138
2778
  phone?: string;
3139
2779
  phoneVerificationTime?: number;
3140
2780
  }>;
3141
2781
  nextCursor: string | null;
3142
2782
  }, Name>;
3143
- userPatch: FunctionReference<"mutation", "internal", {
2783
+ update: FunctionReference<"mutation", "internal", {
3144
2784
  data: any;
3145
2785
  userId: string;
3146
2786
  }, null, Name>;
3147
- userUpsert: FunctionReference<"mutation", "internal", {
2787
+ upsert: FunctionReference<"mutation", "internal", {
3148
2788
  data: any;
3149
2789
  userId?: string;
3150
2790
  }, string, Name>;
3151
- verificationCodeCreate: FunctionReference<"mutation", "internal", {
3152
- accountId: string;
3153
- code: string;
3154
- emailVerified?: string;
3155
- expirationTime: number;
3156
- phoneVerified?: string;
3157
- provider: string;
3158
- verifier?: string;
3159
- }, string, Name>;
3160
- verificationCodeDelete: FunctionReference<"mutation", "internal", {
3161
- verificationCodeId: string;
3162
- }, null, Name>;
3163
- verificationCodeGetByAccountId: FunctionReference<"query", "internal", {
3164
- accountId: string;
3165
- }, {
3166
- _creationTime: number;
3167
- _id: string;
3168
- accountId: string;
3169
- code: string;
3170
- emailVerified?: string;
3171
- expirationTime: number;
3172
- phoneVerified?: string;
3173
- provider: string;
3174
- verifier?: string;
3175
- } | null, Name>;
3176
- verificationCodeGetByCode: FunctionReference<"query", "internal", {
3177
- code: string;
3178
- }, {
3179
- _creationTime: number;
3180
- _id: string;
3181
- accountId: string;
3182
- code: string;
3183
- emailVerified?: string;
3184
- expirationTime: number;
3185
- phoneVerified?: string;
3186
- provider: string;
3187
- verifier?: string;
3188
- } | null, Name>;
3189
- verifierCreate: FunctionReference<"mutation", "internal", {
3190
- expirationTime?: number;
3191
- sessionId?: string;
3192
- signature?: string;
3193
- }, string, Name>;
3194
- verifierDelete: FunctionReference<"mutation", "internal", {
3195
- verifierId: string;
3196
- }, null, Name>;
3197
- verifierGetById: FunctionReference<"query", "internal", {
3198
- verifierId: string;
3199
- }, {
3200
- _creationTime: number;
3201
- _id: string;
3202
- expirationTime?: number;
3203
- sessionId?: string;
3204
- signature?: string;
3205
- } | null, Name>;
3206
- verifierGetBySignature: FunctionReference<"query", "internal", {
3207
- signature: string;
3208
- }, {
3209
- _creationTime: number;
3210
- _id: string;
3211
- expirationTime?: number;
3212
- sessionId?: string;
3213
- signature?: string;
3214
- } | null, Name>;
3215
- verifierPatch: FunctionReference<"mutation", "internal", {
3216
- data: any;
3217
- verifierId: string;
3218
- }, null, Name>;
3219
2791
  };
3220
2792
  };
3221
2793
  //#endregion