@authhero/kysely-adapter 10.113.0 → 10.115.0

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.
@@ -3,6 +3,546 @@
3
3
  import { z } from '@hono/zod-openapi';
4
4
  import { Kysely } from 'kysely';
5
5
 
6
+ declare const auditEventInsertSchema: z.ZodObject<{
7
+ tenant_id: z.ZodString;
8
+ event_type: z.ZodString;
9
+ log_type: z.ZodString;
10
+ description: z.ZodOptional<z.ZodString>;
11
+ category: z.ZodEnum<[
12
+ "user_action",
13
+ "admin_action",
14
+ "system",
15
+ "api"
16
+ ]>;
17
+ actor: z.ZodObject<{
18
+ type: z.ZodEnum<[
19
+ "user",
20
+ "admin",
21
+ "system",
22
+ "api_key",
23
+ "client_credentials"
24
+ ]>;
25
+ id: z.ZodOptional<z.ZodString>;
26
+ email: z.ZodOptional<z.ZodString>;
27
+ org_id: z.ZodOptional<z.ZodString>;
28
+ org_name: z.ZodOptional<z.ZodString>;
29
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30
+ client_id: z.ZodOptional<z.ZodString>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ type: "system" | "user" | "admin" | "api_key" | "client_credentials";
33
+ id?: string | undefined;
34
+ email?: string | undefined;
35
+ org_id?: string | undefined;
36
+ org_name?: string | undefined;
37
+ scopes?: string[] | undefined;
38
+ client_id?: string | undefined;
39
+ }, {
40
+ type: "system" | "user" | "admin" | "api_key" | "client_credentials";
41
+ id?: string | undefined;
42
+ email?: string | undefined;
43
+ org_id?: string | undefined;
44
+ org_name?: string | undefined;
45
+ scopes?: string[] | undefined;
46
+ client_id?: string | undefined;
47
+ }>;
48
+ target: z.ZodObject<{
49
+ type: z.ZodString;
50
+ id: z.ZodString;
51
+ before: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
52
+ after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
53
+ diff: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
54
+ old: z.ZodUnknown;
55
+ new: z.ZodUnknown;
56
+ }, "strip", z.ZodTypeAny, {
57
+ old?: unknown;
58
+ new?: unknown;
59
+ }, {
60
+ old?: unknown;
61
+ new?: unknown;
62
+ }>>>;
63
+ }, "strip", z.ZodTypeAny, {
64
+ type: string;
65
+ id: string;
66
+ before?: Record<string, unknown> | undefined;
67
+ after?: Record<string, unknown> | undefined;
68
+ diff?: Record<string, {
69
+ old?: unknown;
70
+ new?: unknown;
71
+ }> | undefined;
72
+ }, {
73
+ type: string;
74
+ id: string;
75
+ before?: Record<string, unknown> | undefined;
76
+ after?: Record<string, unknown> | undefined;
77
+ diff?: Record<string, {
78
+ old?: unknown;
79
+ new?: unknown;
80
+ }> | undefined;
81
+ }>;
82
+ request: z.ZodObject<{
83
+ method: z.ZodString;
84
+ path: z.ZodString;
85
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
86
+ body: z.ZodOptional<z.ZodUnknown>;
87
+ ip: z.ZodString;
88
+ user_agent: z.ZodOptional<z.ZodString>;
89
+ correlation_id: z.ZodOptional<z.ZodString>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ path: string;
92
+ method: string;
93
+ ip: string;
94
+ query?: Record<string, string> | undefined;
95
+ body?: unknown;
96
+ user_agent?: string | undefined;
97
+ correlation_id?: string | undefined;
98
+ }, {
99
+ path: string;
100
+ method: string;
101
+ ip: string;
102
+ query?: Record<string, string> | undefined;
103
+ body?: unknown;
104
+ user_agent?: string | undefined;
105
+ correlation_id?: string | undefined;
106
+ }>;
107
+ response: z.ZodOptional<z.ZodObject<{
108
+ status_code: z.ZodNumber;
109
+ body: z.ZodOptional<z.ZodUnknown>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ status_code: number;
112
+ body?: unknown;
113
+ }, {
114
+ status_code: number;
115
+ body?: unknown;
116
+ }>>;
117
+ connection: z.ZodOptional<z.ZodString>;
118
+ strategy: z.ZodOptional<z.ZodString>;
119
+ strategy_type: z.ZodOptional<z.ZodString>;
120
+ location: z.ZodOptional<z.ZodObject<{
121
+ country_code: z.ZodString;
122
+ city_name: z.ZodString;
123
+ latitude: z.ZodString;
124
+ longitude: z.ZodString;
125
+ time_zone: z.ZodString;
126
+ continent_code: z.ZodString;
127
+ }, "strip", z.ZodTypeAny, {
128
+ country_code: string;
129
+ city_name: string;
130
+ latitude: string;
131
+ longitude: string;
132
+ time_zone: string;
133
+ continent_code: string;
134
+ }, {
135
+ country_code: string;
136
+ city_name: string;
137
+ latitude: string;
138
+ longitude: string;
139
+ time_zone: string;
140
+ continent_code: string;
141
+ }>>;
142
+ auth0_client: z.ZodOptional<z.ZodObject<{
143
+ name: z.ZodString;
144
+ version: z.ZodString;
145
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
146
+ }, "strip", z.ZodTypeAny, {
147
+ name: string;
148
+ version: string;
149
+ env?: Record<string, string> | undefined;
150
+ }, {
151
+ name: string;
152
+ version: string;
153
+ env?: Record<string, string> | undefined;
154
+ }>>;
155
+ hostname: z.ZodString;
156
+ is_mobile: z.ZodOptional<z.ZodBoolean>;
157
+ timestamp: z.ZodString;
158
+ }, "strip", z.ZodTypeAny, {
159
+ tenant_id: string;
160
+ event_type: string;
161
+ log_type: string;
162
+ category: "user_action" | "admin_action" | "system" | "api";
163
+ actor: {
164
+ type: "system" | "user" | "admin" | "api_key" | "client_credentials";
165
+ id?: string | undefined;
166
+ email?: string | undefined;
167
+ org_id?: string | undefined;
168
+ org_name?: string | undefined;
169
+ scopes?: string[] | undefined;
170
+ client_id?: string | undefined;
171
+ };
172
+ target: {
173
+ type: string;
174
+ id: string;
175
+ before?: Record<string, unknown> | undefined;
176
+ after?: Record<string, unknown> | undefined;
177
+ diff?: Record<string, {
178
+ old?: unknown;
179
+ new?: unknown;
180
+ }> | undefined;
181
+ };
182
+ request: {
183
+ path: string;
184
+ method: string;
185
+ ip: string;
186
+ query?: Record<string, string> | undefined;
187
+ body?: unknown;
188
+ user_agent?: string | undefined;
189
+ correlation_id?: string | undefined;
190
+ };
191
+ hostname: string;
192
+ timestamp: string;
193
+ description?: string | undefined;
194
+ response?: {
195
+ status_code: number;
196
+ body?: unknown;
197
+ } | undefined;
198
+ connection?: string | undefined;
199
+ strategy?: string | undefined;
200
+ strategy_type?: string | undefined;
201
+ location?: {
202
+ country_code: string;
203
+ city_name: string;
204
+ latitude: string;
205
+ longitude: string;
206
+ time_zone: string;
207
+ continent_code: string;
208
+ } | undefined;
209
+ auth0_client?: {
210
+ name: string;
211
+ version: string;
212
+ env?: Record<string, string> | undefined;
213
+ } | undefined;
214
+ is_mobile?: boolean | undefined;
215
+ }, {
216
+ tenant_id: string;
217
+ event_type: string;
218
+ log_type: string;
219
+ category: "user_action" | "admin_action" | "system" | "api";
220
+ actor: {
221
+ type: "system" | "user" | "admin" | "api_key" | "client_credentials";
222
+ id?: string | undefined;
223
+ email?: string | undefined;
224
+ org_id?: string | undefined;
225
+ org_name?: string | undefined;
226
+ scopes?: string[] | undefined;
227
+ client_id?: string | undefined;
228
+ };
229
+ target: {
230
+ type: string;
231
+ id: string;
232
+ before?: Record<string, unknown> | undefined;
233
+ after?: Record<string, unknown> | undefined;
234
+ diff?: Record<string, {
235
+ old?: unknown;
236
+ new?: unknown;
237
+ }> | undefined;
238
+ };
239
+ request: {
240
+ path: string;
241
+ method: string;
242
+ ip: string;
243
+ query?: Record<string, string> | undefined;
244
+ body?: unknown;
245
+ user_agent?: string | undefined;
246
+ correlation_id?: string | undefined;
247
+ };
248
+ hostname: string;
249
+ timestamp: string;
250
+ description?: string | undefined;
251
+ response?: {
252
+ status_code: number;
253
+ body?: unknown;
254
+ } | undefined;
255
+ connection?: string | undefined;
256
+ strategy?: string | undefined;
257
+ strategy_type?: string | undefined;
258
+ location?: {
259
+ country_code: string;
260
+ city_name: string;
261
+ latitude: string;
262
+ longitude: string;
263
+ time_zone: string;
264
+ continent_code: string;
265
+ } | undefined;
266
+ auth0_client?: {
267
+ name: string;
268
+ version: string;
269
+ env?: Record<string, string> | undefined;
270
+ } | undefined;
271
+ is_mobile?: boolean | undefined;
272
+ }>;
273
+ export type AuditEventInsert = z.infer<typeof auditEventInsertSchema>;
274
+ declare const auditEventSchema: z.ZodObject<{
275
+ tenant_id: z.ZodString;
276
+ event_type: z.ZodString;
277
+ log_type: z.ZodString;
278
+ description: z.ZodOptional<z.ZodString>;
279
+ category: z.ZodEnum<[
280
+ "user_action",
281
+ "admin_action",
282
+ "system",
283
+ "api"
284
+ ]>;
285
+ actor: z.ZodObject<{
286
+ type: z.ZodEnum<[
287
+ "user",
288
+ "admin",
289
+ "system",
290
+ "api_key",
291
+ "client_credentials"
292
+ ]>;
293
+ id: z.ZodOptional<z.ZodString>;
294
+ email: z.ZodOptional<z.ZodString>;
295
+ org_id: z.ZodOptional<z.ZodString>;
296
+ org_name: z.ZodOptional<z.ZodString>;
297
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
298
+ client_id: z.ZodOptional<z.ZodString>;
299
+ }, "strip", z.ZodTypeAny, {
300
+ type: "system" | "user" | "admin" | "api_key" | "client_credentials";
301
+ id?: string | undefined;
302
+ email?: string | undefined;
303
+ org_id?: string | undefined;
304
+ org_name?: string | undefined;
305
+ scopes?: string[] | undefined;
306
+ client_id?: string | undefined;
307
+ }, {
308
+ type: "system" | "user" | "admin" | "api_key" | "client_credentials";
309
+ id?: string | undefined;
310
+ email?: string | undefined;
311
+ org_id?: string | undefined;
312
+ org_name?: string | undefined;
313
+ scopes?: string[] | undefined;
314
+ client_id?: string | undefined;
315
+ }>;
316
+ target: z.ZodObject<{
317
+ type: z.ZodString;
318
+ id: z.ZodString;
319
+ before: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
320
+ after: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
321
+ diff: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
322
+ old: z.ZodUnknown;
323
+ new: z.ZodUnknown;
324
+ }, "strip", z.ZodTypeAny, {
325
+ old?: unknown;
326
+ new?: unknown;
327
+ }, {
328
+ old?: unknown;
329
+ new?: unknown;
330
+ }>>>;
331
+ }, "strip", z.ZodTypeAny, {
332
+ type: string;
333
+ id: string;
334
+ before?: Record<string, unknown> | undefined;
335
+ after?: Record<string, unknown> | undefined;
336
+ diff?: Record<string, {
337
+ old?: unknown;
338
+ new?: unknown;
339
+ }> | undefined;
340
+ }, {
341
+ type: string;
342
+ id: string;
343
+ before?: Record<string, unknown> | undefined;
344
+ after?: Record<string, unknown> | undefined;
345
+ diff?: Record<string, {
346
+ old?: unknown;
347
+ new?: unknown;
348
+ }> | undefined;
349
+ }>;
350
+ request: z.ZodObject<{
351
+ method: z.ZodString;
352
+ path: z.ZodString;
353
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
354
+ body: z.ZodOptional<z.ZodUnknown>;
355
+ ip: z.ZodString;
356
+ user_agent: z.ZodOptional<z.ZodString>;
357
+ correlation_id: z.ZodOptional<z.ZodString>;
358
+ }, "strip", z.ZodTypeAny, {
359
+ path: string;
360
+ method: string;
361
+ ip: string;
362
+ query?: Record<string, string> | undefined;
363
+ body?: unknown;
364
+ user_agent?: string | undefined;
365
+ correlation_id?: string | undefined;
366
+ }, {
367
+ path: string;
368
+ method: string;
369
+ ip: string;
370
+ query?: Record<string, string> | undefined;
371
+ body?: unknown;
372
+ user_agent?: string | undefined;
373
+ correlation_id?: string | undefined;
374
+ }>;
375
+ response: z.ZodOptional<z.ZodObject<{
376
+ status_code: z.ZodNumber;
377
+ body: z.ZodOptional<z.ZodUnknown>;
378
+ }, "strip", z.ZodTypeAny, {
379
+ status_code: number;
380
+ body?: unknown;
381
+ }, {
382
+ status_code: number;
383
+ body?: unknown;
384
+ }>>;
385
+ connection: z.ZodOptional<z.ZodString>;
386
+ strategy: z.ZodOptional<z.ZodString>;
387
+ strategy_type: z.ZodOptional<z.ZodString>;
388
+ location: z.ZodOptional<z.ZodObject<{
389
+ country_code: z.ZodString;
390
+ city_name: z.ZodString;
391
+ latitude: z.ZodString;
392
+ longitude: z.ZodString;
393
+ time_zone: z.ZodString;
394
+ continent_code: z.ZodString;
395
+ }, "strip", z.ZodTypeAny, {
396
+ country_code: string;
397
+ city_name: string;
398
+ latitude: string;
399
+ longitude: string;
400
+ time_zone: string;
401
+ continent_code: string;
402
+ }, {
403
+ country_code: string;
404
+ city_name: string;
405
+ latitude: string;
406
+ longitude: string;
407
+ time_zone: string;
408
+ continent_code: string;
409
+ }>>;
410
+ auth0_client: z.ZodOptional<z.ZodObject<{
411
+ name: z.ZodString;
412
+ version: z.ZodString;
413
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
414
+ }, "strip", z.ZodTypeAny, {
415
+ name: string;
416
+ version: string;
417
+ env?: Record<string, string> | undefined;
418
+ }, {
419
+ name: string;
420
+ version: string;
421
+ env?: Record<string, string> | undefined;
422
+ }>>;
423
+ hostname: z.ZodString;
424
+ is_mobile: z.ZodOptional<z.ZodBoolean>;
425
+ timestamp: z.ZodString;
426
+ } & {
427
+ id: z.ZodString;
428
+ }, "strip", z.ZodTypeAny, {
429
+ id: string;
430
+ tenant_id: string;
431
+ event_type: string;
432
+ log_type: string;
433
+ category: "user_action" | "admin_action" | "system" | "api";
434
+ actor: {
435
+ type: "system" | "user" | "admin" | "api_key" | "client_credentials";
436
+ id?: string | undefined;
437
+ email?: string | undefined;
438
+ org_id?: string | undefined;
439
+ org_name?: string | undefined;
440
+ scopes?: string[] | undefined;
441
+ client_id?: string | undefined;
442
+ };
443
+ target: {
444
+ type: string;
445
+ id: string;
446
+ before?: Record<string, unknown> | undefined;
447
+ after?: Record<string, unknown> | undefined;
448
+ diff?: Record<string, {
449
+ old?: unknown;
450
+ new?: unknown;
451
+ }> | undefined;
452
+ };
453
+ request: {
454
+ path: string;
455
+ method: string;
456
+ ip: string;
457
+ query?: Record<string, string> | undefined;
458
+ body?: unknown;
459
+ user_agent?: string | undefined;
460
+ correlation_id?: string | undefined;
461
+ };
462
+ hostname: string;
463
+ timestamp: string;
464
+ description?: string | undefined;
465
+ response?: {
466
+ status_code: number;
467
+ body?: unknown;
468
+ } | undefined;
469
+ connection?: string | undefined;
470
+ strategy?: string | undefined;
471
+ strategy_type?: string | undefined;
472
+ location?: {
473
+ country_code: string;
474
+ city_name: string;
475
+ latitude: string;
476
+ longitude: string;
477
+ time_zone: string;
478
+ continent_code: string;
479
+ } | undefined;
480
+ auth0_client?: {
481
+ name: string;
482
+ version: string;
483
+ env?: Record<string, string> | undefined;
484
+ } | undefined;
485
+ is_mobile?: boolean | undefined;
486
+ }, {
487
+ id: string;
488
+ tenant_id: string;
489
+ event_type: string;
490
+ log_type: string;
491
+ category: "user_action" | "admin_action" | "system" | "api";
492
+ actor: {
493
+ type: "system" | "user" | "admin" | "api_key" | "client_credentials";
494
+ id?: string | undefined;
495
+ email?: string | undefined;
496
+ org_id?: string | undefined;
497
+ org_name?: string | undefined;
498
+ scopes?: string[] | undefined;
499
+ client_id?: string | undefined;
500
+ };
501
+ target: {
502
+ type: string;
503
+ id: string;
504
+ before?: Record<string, unknown> | undefined;
505
+ after?: Record<string, unknown> | undefined;
506
+ diff?: Record<string, {
507
+ old?: unknown;
508
+ new?: unknown;
509
+ }> | undefined;
510
+ };
511
+ request: {
512
+ path: string;
513
+ method: string;
514
+ ip: string;
515
+ query?: Record<string, string> | undefined;
516
+ body?: unknown;
517
+ user_agent?: string | undefined;
518
+ correlation_id?: string | undefined;
519
+ };
520
+ hostname: string;
521
+ timestamp: string;
522
+ description?: string | undefined;
523
+ response?: {
524
+ status_code: number;
525
+ body?: unknown;
526
+ } | undefined;
527
+ connection?: string | undefined;
528
+ strategy?: string | undefined;
529
+ strategy_type?: string | undefined;
530
+ location?: {
531
+ country_code: string;
532
+ city_name: string;
533
+ latitude: string;
534
+ longitude: string;
535
+ time_zone: string;
536
+ continent_code: string;
537
+ } | undefined;
538
+ auth0_client?: {
539
+ name: string;
540
+ version: string;
541
+ env?: Record<string, string> | undefined;
542
+ } | undefined;
543
+ is_mobile?: boolean | undefined;
544
+ }>;
545
+ export type AuditEvent = z.infer<typeof auditEventSchema>;
6
546
  declare const flowInsertSchema: z.ZodObject<{
7
547
  name: z.ZodString;
8
548
  actions: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[
@@ -462,10 +1002,10 @@ declare const flowSchema: z.ZodObject<{
462
1002
  created_at: z.ZodString;
463
1003
  updated_at: z.ZodString;
464
1004
  }, "strip", z.ZodTypeAny, {
1005
+ name: string;
1006
+ id: string;
465
1007
  created_at: string;
466
1008
  updated_at: string;
467
- id: string;
468
- name: string;
469
1009
  actions: ({
470
1010
  params: {
471
1011
  user_id: string;
@@ -509,10 +1049,10 @@ declare const flowSchema: z.ZodObject<{
509
1049
  mask_output?: boolean | undefined;
510
1050
  })[];
511
1051
  }, {
1052
+ name: string;
1053
+ id: string;
512
1054
  created_at: string;
513
1055
  updated_at: string;
514
- id: string;
515
- name: string;
516
1056
  actions?: ({
517
1057
  params: {
518
1058
  user_id: string;
@@ -627,15 +1167,15 @@ declare const userInsertSchema: z.ZodObject<{
627
1167
  algorithm: string;
628
1168
  }>>;
629
1169
  }, "strip", z.ZodTypeAny, {
630
- email_verified: boolean;
631
1170
  connection: string;
1171
+ email_verified: boolean;
632
1172
  password?: {
633
1173
  hash: string;
634
1174
  algorithm: string;
635
1175
  } | undefined;
636
1176
  name?: string | undefined;
637
- user_id?: string | undefined;
638
1177
  email?: string | undefined;
1178
+ user_id?: string | undefined;
639
1179
  username?: string | undefined;
640
1180
  given_name?: string | undefined;
641
1181
  phone_number?: string | undefined;
@@ -675,8 +1215,8 @@ declare const userInsertSchema: z.ZodObject<{
675
1215
  algorithm: string;
676
1216
  } | undefined;
677
1217
  name?: string | undefined;
678
- user_id?: string | undefined;
679
1218
  email?: string | undefined;
1219
+ user_id?: string | undefined;
680
1220
  email_verified?: boolean | undefined;
681
1221
  username?: string | undefined;
682
1222
  given_name?: string | undefined;
@@ -760,8 +1300,8 @@ declare const userSchema: z.ZodObject<{
760
1300
  family_name: z.ZodOptional<z.ZodString>;
761
1301
  }, z.ZodAny, "strip">>>;
762
1302
  }, "strip", z.ZodTypeAny, {
763
- user_id: string;
764
1303
  connection: string;
1304
+ user_id: string;
765
1305
  provider: string;
766
1306
  isSocial: boolean;
767
1307
  email?: string | undefined;
@@ -783,8 +1323,8 @@ declare const userSchema: z.ZodObject<{
783
1323
  family_name: z.ZodOptional<z.ZodString>;
784
1324
  }, z.ZodAny, "strip"> | undefined;
785
1325
  }, {
786
- user_id: string;
787
1326
  connection: string;
1327
+ user_id: string;
788
1328
  provider: string;
789
1329
  isSocial: boolean;
790
1330
  email?: string | undefined;
@@ -809,13 +1349,13 @@ declare const userSchema: z.ZodObject<{
809
1349
  created_at: z.ZodString;
810
1350
  updated_at: z.ZodString;
811
1351
  name: z.ZodOptional<z.ZodString>;
1352
+ connection: z.ZodString;
812
1353
  email_verified: z.ZodDefault<z.ZodBoolean>;
813
1354
  username: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
814
1355
  given_name: z.ZodOptional<z.ZodString>;
815
1356
  phone_number: z.ZodOptional<z.ZodString>;
816
1357
  phone_verified: z.ZodOptional<z.ZodBoolean>;
817
1358
  family_name: z.ZodOptional<z.ZodString>;
818
- connection: z.ZodString;
819
1359
  profileData: z.ZodOptional<z.ZodString>;
820
1360
  nickname: z.ZodOptional<z.ZodString>;
821
1361
  picture: z.ZodOptional<z.ZodString>;
@@ -856,11 +1396,11 @@ declare const userSchema: z.ZodObject<{
856
1396
  last_ip: z.ZodOptional<z.ZodString>;
857
1397
  last_login: z.ZodOptional<z.ZodString>;
858
1398
  }, "strip", z.ZodTypeAny, {
1399
+ connection: string;
859
1400
  created_at: string;
860
1401
  updated_at: string;
861
1402
  user_id: string;
862
1403
  email_verified: boolean;
863
- connection: string;
864
1404
  provider: string;
865
1405
  is_social: boolean;
866
1406
  login_count: number;
@@ -897,8 +1437,8 @@ declare const userSchema: z.ZodObject<{
897
1437
  last_ip?: string | undefined;
898
1438
  last_login?: string | undefined;
899
1439
  identities?: {
900
- user_id: string;
901
1440
  connection: string;
1441
+ user_id: string;
902
1442
  provider: string;
903
1443
  isSocial: boolean;
904
1444
  email?: string | undefined;
@@ -921,10 +1461,10 @@ declare const userSchema: z.ZodObject<{
921
1461
  }, z.ZodAny, "strip"> | undefined;
922
1462
  }[] | undefined;
923
1463
  }, {
1464
+ connection: string;
924
1465
  created_at: string;
925
1466
  updated_at: string;
926
1467
  user_id: string;
927
- connection: string;
928
1468
  provider: string;
929
1469
  is_social: boolean;
930
1470
  name?: string | undefined;
@@ -962,8 +1502,8 @@ declare const userSchema: z.ZodObject<{
962
1502
  last_login?: string | undefined;
963
1503
  login_count?: number | undefined;
964
1504
  identities?: {
965
- user_id: string;
966
1505
  connection: string;
1506
+ user_id: string;
967
1507
  provider: string;
968
1508
  isSocial: boolean;
969
1509
  email?: string | undefined;
@@ -1276,10 +1816,10 @@ declare const clientSchema: z.ZodObject<{
1276
1816
  created_at: z.ZodString;
1277
1817
  updated_at: z.ZodString;
1278
1818
  }, "strip", z.ZodTypeAny, {
1279
- created_at: string;
1280
- updated_at: string;
1281
1819
  name: string;
1282
1820
  client_id: string;
1821
+ created_at: string;
1822
+ updated_at: string;
1283
1823
  global: boolean;
1284
1824
  is_first_party: boolean;
1285
1825
  oidc_conformant: boolean;
@@ -1327,10 +1867,10 @@ declare const clientSchema: z.ZodObject<{
1327
1867
  par_request_expiry?: number | undefined;
1328
1868
  token_quota?: Record<string, any> | undefined;
1329
1869
  }, {
1330
- created_at: string;
1331
- updated_at: string;
1332
1870
  name: string;
1333
1871
  client_id: string;
1872
+ created_at: string;
1873
+ updated_at: string;
1334
1874
  description?: string | undefined;
1335
1875
  refresh_token?: Record<string, any> | undefined;
1336
1876
  global?: boolean | undefined;
@@ -1402,7 +1942,7 @@ declare const clientGrantInsertSchema: z.ZodObject<{
1402
1942
  scope?: string[] | undefined;
1403
1943
  allow_any_organization?: boolean | undefined;
1404
1944
  is_system?: boolean | undefined;
1405
- subject_type?: "client" | "user" | undefined;
1945
+ subject_type?: "user" | "client" | undefined;
1406
1946
  authorization_details_types?: string[] | undefined;
1407
1947
  }, {
1408
1948
  client_id: string;
@@ -1411,7 +1951,7 @@ declare const clientGrantInsertSchema: z.ZodObject<{
1411
1951
  scope?: string[] | undefined;
1412
1952
  allow_any_organization?: boolean | undefined;
1413
1953
  is_system?: boolean | undefined;
1414
- subject_type?: "client" | "user" | undefined;
1954
+ subject_type?: "user" | "client" | undefined;
1415
1955
  authorization_details_types?: string[] | undefined;
1416
1956
  }>;
1417
1957
  export type ClientGrantInsert = z.input<typeof clientGrantInsertSchema>;
@@ -1444,7 +1984,7 @@ declare const clientGrantSchema: z.ZodObject<{
1444
1984
  scope?: string[] | undefined;
1445
1985
  allow_any_organization?: boolean | undefined;
1446
1986
  is_system?: boolean | undefined;
1447
- subject_type?: "client" | "user" | undefined;
1987
+ subject_type?: "user" | "client" | undefined;
1448
1988
  authorization_details_types?: string[] | undefined;
1449
1989
  }, {
1450
1990
  id: string;
@@ -1456,7 +1996,7 @@ declare const clientGrantSchema: z.ZodObject<{
1456
1996
  scope?: string[] | undefined;
1457
1997
  allow_any_organization?: boolean | undefined;
1458
1998
  is_system?: boolean | undefined;
1459
- subject_type?: "client" | "user" | undefined;
1999
+ subject_type?: "user" | "client" | undefined;
1460
2000
  authorization_details_types?: string[] | undefined;
1461
2001
  }>;
1462
2002
  export type ClientGrant = z.infer<typeof clientGrantSchema>;
@@ -2118,8 +2658,8 @@ declare const connectionInsertSchema: z.ZodObject<{
2118
2658
  max?: number | undefined;
2119
2659
  } | undefined;
2120
2660
  } | undefined;
2121
- provider?: string | undefined;
2122
2661
  client_id?: string | undefined;
2662
+ provider?: string | undefined;
2123
2663
  client_secret?: string | undefined;
2124
2664
  scope?: string | undefined;
2125
2665
  kid?: string | undefined;
@@ -2221,8 +2761,8 @@ declare const connectionInsertSchema: z.ZodObject<{
2221
2761
  max?: number | undefined;
2222
2762
  } | undefined;
2223
2763
  } | undefined;
2224
- provider?: string | undefined;
2225
2764
  client_id?: string | undefined;
2765
+ provider?: string | undefined;
2226
2766
  client_secret?: string | undefined;
2227
2767
  scope?: string | undefined;
2228
2768
  kid?: string | undefined;
@@ -2333,8 +2873,8 @@ declare const connectionInsertSchema: z.ZodObject<{
2333
2873
  max?: number | undefined;
2334
2874
  } | undefined;
2335
2875
  } | undefined;
2336
- provider?: string | undefined;
2337
2876
  client_id?: string | undefined;
2877
+ provider?: string | undefined;
2338
2878
  client_secret?: string | undefined;
2339
2879
  scope?: string | undefined;
2340
2880
  kid?: string | undefined;
@@ -2451,8 +2991,8 @@ declare const connectionInsertSchema: z.ZodObject<{
2451
2991
  max?: number | undefined;
2452
2992
  } | undefined;
2453
2993
  } | undefined;
2454
- provider?: string | undefined;
2455
2994
  client_id?: string | undefined;
2995
+ provider?: string | undefined;
2456
2996
  client_secret?: string | undefined;
2457
2997
  scope?: string | undefined;
2458
2998
  kid?: string | undefined;
@@ -2994,8 +3534,8 @@ declare const connectionSchema: z.ZodObject<{
2994
3534
  max?: number | undefined;
2995
3535
  } | undefined;
2996
3536
  } | undefined;
2997
- provider?: string | undefined;
2998
3537
  client_id?: string | undefined;
3538
+ provider?: string | undefined;
2999
3539
  client_secret?: string | undefined;
3000
3540
  scope?: string | undefined;
3001
3541
  kid?: string | undefined;
@@ -3097,8 +3637,8 @@ declare const connectionSchema: z.ZodObject<{
3097
3637
  max?: number | undefined;
3098
3638
  } | undefined;
3099
3639
  } | undefined;
3100
- provider?: string | undefined;
3101
3640
  client_id?: string | undefined;
3641
+ provider?: string | undefined;
3102
3642
  client_secret?: string | undefined;
3103
3643
  scope?: string | undefined;
3104
3644
  kid?: string | undefined;
@@ -3202,8 +3742,6 @@ declare const connectionSchema: z.ZodObject<{
3202
3742
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3203
3743
  is_system: z.ZodOptional<z.ZodBoolean>;
3204
3744
  }, "strip", z.ZodTypeAny, {
3205
- created_at: string;
3206
- updated_at: string;
3207
3745
  options: {
3208
3746
  validation?: {
3209
3747
  username?: {
@@ -3211,8 +3749,8 @@ declare const connectionSchema: z.ZodObject<{
3211
3749
  max?: number | undefined;
3212
3750
  } | undefined;
3213
3751
  } | undefined;
3214
- provider?: string | undefined;
3215
3752
  client_id?: string | undefined;
3753
+ provider?: string | undefined;
3216
3754
  client_secret?: string | undefined;
3217
3755
  scope?: string | undefined;
3218
3756
  kid?: string | undefined;
@@ -3310,6 +3848,8 @@ declare const connectionSchema: z.ZodObject<{
3310
3848
  };
3311
3849
  name: string;
3312
3850
  strategy: string;
3851
+ created_at: string;
3852
+ updated_at: string;
3313
3853
  id?: string | undefined;
3314
3854
  is_system?: boolean | undefined;
3315
3855
  response_type?: AuthorizationResponseType | undefined;
@@ -3320,10 +3860,10 @@ declare const connectionSchema: z.ZodObject<{
3320
3860
  show_as_button?: boolean | undefined;
3321
3861
  metadata?: Record<string, any> | undefined;
3322
3862
  }, {
3323
- created_at: string;
3324
- updated_at: string;
3325
3863
  name: string;
3326
3864
  strategy: string;
3865
+ created_at: string;
3866
+ updated_at: string;
3327
3867
  options?: {
3328
3868
  validation?: {
3329
3869
  username?: {
@@ -3331,8 +3871,8 @@ declare const connectionSchema: z.ZodObject<{
3331
3871
  max?: number | undefined;
3332
3872
  } | undefined;
3333
3873
  } | undefined;
3334
- provider?: string | undefined;
3335
3874
  client_id?: string | undefined;
3875
+ provider?: string | undefined;
3336
3876
  client_secret?: string | undefined;
3337
3877
  scope?: string | undefined;
3338
3878
  kid?: string | undefined;
@@ -3683,10 +4223,10 @@ declare const customDomainWithTenantIdSchema: z.ZodObject<{
3683
4223
  }, "strip", z.ZodTypeAny, {
3684
4224
  type: "auth0_managed_certs" | "self_managed_certs";
3685
4225
  status: "disabled" | "pending" | "pending_verification" | "ready";
4226
+ tenant_id: string;
3686
4227
  primary: boolean;
3687
4228
  domain: string;
3688
4229
  custom_domain_id: string;
3689
- tenant_id: string;
3690
4230
  verification?: {
3691
4231
  methods: ({
3692
4232
  name: "txt";
@@ -3706,10 +4246,10 @@ declare const customDomainWithTenantIdSchema: z.ZodObject<{
3706
4246
  }, {
3707
4247
  type: "auth0_managed_certs" | "self_managed_certs";
3708
4248
  status: "disabled" | "pending" | "pending_verification" | "ready";
4249
+ tenant_id: string;
3709
4250
  primary: boolean;
3710
4251
  domain: string;
3711
4252
  custom_domain_id: string;
3712
- tenant_id: string;
3713
4253
  verification?: {
3714
4254
  methods: ({
3715
4255
  name: "txt";
@@ -5569,33 +6109,33 @@ declare const formInsertSchema: z.ZodObject<{
5569
6109
  href: z.ZodOptional<z.ZodString>;
5570
6110
  }, "strip", z.ZodTypeAny, {
5571
6111
  name: string;
6112
+ strategy?: string | undefined;
5572
6113
  icon_url?: string | undefined;
5573
6114
  display_name?: string | undefined;
5574
- strategy?: string | undefined;
5575
6115
  href?: string | undefined;
5576
6116
  }, {
5577
6117
  name: string;
6118
+ strategy?: string | undefined;
5578
6119
  icon_url?: string | undefined;
5579
6120
  display_name?: string | undefined;
5580
- strategy?: string | undefined;
5581
6121
  href?: string | undefined;
5582
6122
  }>, "many">>;
5583
6123
  }, "strip", z.ZodTypeAny, {
5584
6124
  providers?: string[] | undefined;
5585
6125
  provider_details?: {
5586
6126
  name: string;
6127
+ strategy?: string | undefined;
5587
6128
  icon_url?: string | undefined;
5588
6129
  display_name?: string | undefined;
5589
- strategy?: string | undefined;
5590
6130
  href?: string | undefined;
5591
6131
  }[] | undefined;
5592
6132
  }, {
5593
6133
  providers?: string[] | undefined;
5594
6134
  provider_details?: {
5595
6135
  name: string;
6136
+ strategy?: string | undefined;
5596
6137
  icon_url?: string | undefined;
5597
6138
  display_name?: string | undefined;
5598
- strategy?: string | undefined;
5599
6139
  href?: string | undefined;
5600
6140
  }[] | undefined;
5601
6141
  }>>;
@@ -5609,9 +6149,9 @@ declare const formInsertSchema: z.ZodObject<{
5609
6149
  providers?: string[] | undefined;
5610
6150
  provider_details?: {
5611
6151
  name: string;
6152
+ strategy?: string | undefined;
5612
6153
  icon_url?: string | undefined;
5613
6154
  display_name?: string | undefined;
5614
- strategy?: string | undefined;
5615
6155
  href?: string | undefined;
5616
6156
  }[] | undefined;
5617
6157
  } | undefined;
@@ -5633,9 +6173,9 @@ declare const formInsertSchema: z.ZodObject<{
5633
6173
  providers?: string[] | undefined;
5634
6174
  provider_details?: {
5635
6175
  name: string;
6176
+ strategy?: string | undefined;
5636
6177
  icon_url?: string | undefined;
5637
6178
  display_name?: string | undefined;
5638
- strategy?: string | undefined;
5639
6179
  href?: string | undefined;
5640
6180
  }[] | undefined;
5641
6181
  } | undefined;
@@ -6291,9 +6831,9 @@ declare const formInsertSchema: z.ZodObject<{
6291
6831
  providers?: string[] | undefined;
6292
6832
  provider_details?: {
6293
6833
  name: string;
6834
+ strategy?: string | undefined;
6294
6835
  icon_url?: string | undefined;
6295
6836
  display_name?: string | undefined;
6296
- strategy?: string | undefined;
6297
6837
  href?: string | undefined;
6298
6838
  }[] | undefined;
6299
6839
  } | undefined;
@@ -6768,9 +7308,9 @@ declare const formInsertSchema: z.ZodObject<{
6768
7308
  providers?: string[] | undefined;
6769
7309
  provider_details?: {
6770
7310
  name: string;
7311
+ strategy?: string | undefined;
6771
7312
  icon_url?: string | undefined;
6772
7313
  display_name?: string | undefined;
6773
- strategy?: string | undefined;
6774
7314
  href?: string | undefined;
6775
7315
  }[] | undefined;
6776
7316
  } | undefined;
@@ -7251,9 +7791,9 @@ declare const formInsertSchema: z.ZodObject<{
7251
7791
  providers?: string[] | undefined;
7252
7792
  provider_details?: {
7253
7793
  name: string;
7794
+ strategy?: string | undefined;
7254
7795
  icon_url?: string | undefined;
7255
7796
  display_name?: string | undefined;
7256
- strategy?: string | undefined;
7257
7797
  href?: string | undefined;
7258
7798
  }[] | undefined;
7259
7799
  } | undefined;
@@ -7737,9 +8277,9 @@ declare const formInsertSchema: z.ZodObject<{
7737
8277
  providers?: string[] | undefined;
7738
8278
  provider_details?: {
7739
8279
  name: string;
8280
+ strategy?: string | undefined;
7740
8281
  icon_url?: string | undefined;
7741
8282
  display_name?: string | undefined;
7742
- strategy?: string | undefined;
7743
8283
  href?: string | undefined;
7744
8284
  }[] | undefined;
7745
8285
  } | undefined;
@@ -8392,9 +8932,9 @@ declare const formInsertSchema: z.ZodObject<{
8392
8932
  providers?: string[] | undefined;
8393
8933
  provider_details?: {
8394
8934
  name: string;
8935
+ strategy?: string | undefined;
8395
8936
  icon_url?: string | undefined;
8396
8937
  display_name?: string | undefined;
8397
- strategy?: string | undefined;
8398
8938
  href?: string | undefined;
8399
8939
  }[] | undefined;
8400
8940
  } | undefined;
@@ -8951,9 +9491,9 @@ declare const formInsertSchema: z.ZodObject<{
8951
9491
  providers?: string[] | undefined;
8952
9492
  provider_details?: {
8953
9493
  name: string;
9494
+ strategy?: string | undefined;
8954
9495
  icon_url?: string | undefined;
8955
9496
  display_name?: string | undefined;
8956
- strategy?: string | undefined;
8957
9497
  href?: string | undefined;
8958
9498
  }[] | undefined;
8959
9499
  } | undefined;
@@ -10923,33 +11463,33 @@ declare const formSchema: z.ZodObject<{
10923
11463
  href: z.ZodOptional<z.ZodString>;
10924
11464
  }, "strip", z.ZodTypeAny, {
10925
11465
  name: string;
11466
+ strategy?: string | undefined;
10926
11467
  icon_url?: string | undefined;
10927
11468
  display_name?: string | undefined;
10928
- strategy?: string | undefined;
10929
11469
  href?: string | undefined;
10930
11470
  }, {
10931
11471
  name: string;
11472
+ strategy?: string | undefined;
10932
11473
  icon_url?: string | undefined;
10933
11474
  display_name?: string | undefined;
10934
- strategy?: string | undefined;
10935
11475
  href?: string | undefined;
10936
11476
  }>, "many">>;
10937
11477
  }, "strip", z.ZodTypeAny, {
10938
11478
  providers?: string[] | undefined;
10939
11479
  provider_details?: {
10940
11480
  name: string;
11481
+ strategy?: string | undefined;
10941
11482
  icon_url?: string | undefined;
10942
11483
  display_name?: string | undefined;
10943
- strategy?: string | undefined;
10944
11484
  href?: string | undefined;
10945
11485
  }[] | undefined;
10946
11486
  }, {
10947
11487
  providers?: string[] | undefined;
10948
11488
  provider_details?: {
10949
11489
  name: string;
11490
+ strategy?: string | undefined;
10950
11491
  icon_url?: string | undefined;
10951
11492
  display_name?: string | undefined;
10952
- strategy?: string | undefined;
10953
11493
  href?: string | undefined;
10954
11494
  }[] | undefined;
10955
11495
  }>>;
@@ -10963,9 +11503,9 @@ declare const formSchema: z.ZodObject<{
10963
11503
  providers?: string[] | undefined;
10964
11504
  provider_details?: {
10965
11505
  name: string;
11506
+ strategy?: string | undefined;
10966
11507
  icon_url?: string | undefined;
10967
11508
  display_name?: string | undefined;
10968
- strategy?: string | undefined;
10969
11509
  href?: string | undefined;
10970
11510
  }[] | undefined;
10971
11511
  } | undefined;
@@ -10987,9 +11527,9 @@ declare const formSchema: z.ZodObject<{
10987
11527
  providers?: string[] | undefined;
10988
11528
  provider_details?: {
10989
11529
  name: string;
11530
+ strategy?: string | undefined;
10990
11531
  icon_url?: string | undefined;
10991
11532
  display_name?: string | undefined;
10992
- strategy?: string | undefined;
10993
11533
  href?: string | undefined;
10994
11534
  }[] | undefined;
10995
11535
  } | undefined;
@@ -11645,9 +12185,9 @@ declare const formSchema: z.ZodObject<{
11645
12185
  providers?: string[] | undefined;
11646
12186
  provider_details?: {
11647
12187
  name: string;
12188
+ strategy?: string | undefined;
11648
12189
  icon_url?: string | undefined;
11649
12190
  display_name?: string | undefined;
11650
- strategy?: string | undefined;
11651
12191
  href?: string | undefined;
11652
12192
  }[] | undefined;
11653
12193
  } | undefined;
@@ -12122,9 +12662,9 @@ declare const formSchema: z.ZodObject<{
12122
12662
  providers?: string[] | undefined;
12123
12663
  provider_details?: {
12124
12664
  name: string;
12665
+ strategy?: string | undefined;
12125
12666
  icon_url?: string | undefined;
12126
12667
  display_name?: string | undefined;
12127
- strategy?: string | undefined;
12128
12668
  href?: string | undefined;
12129
12669
  }[] | undefined;
12130
12670
  } | undefined;
@@ -12605,9 +13145,9 @@ declare const formSchema: z.ZodObject<{
12605
13145
  providers?: string[] | undefined;
12606
13146
  provider_details?: {
12607
13147
  name: string;
13148
+ strategy?: string | undefined;
12608
13149
  icon_url?: string | undefined;
12609
13150
  display_name?: string | undefined;
12610
- strategy?: string | undefined;
12611
13151
  href?: string | undefined;
12612
13152
  }[] | undefined;
12613
13153
  } | undefined;
@@ -13091,9 +13631,9 @@ declare const formSchema: z.ZodObject<{
13091
13631
  providers?: string[] | undefined;
13092
13632
  provider_details?: {
13093
13633
  name: string;
13634
+ strategy?: string | undefined;
13094
13635
  icon_url?: string | undefined;
13095
13636
  display_name?: string | undefined;
13096
- strategy?: string | undefined;
13097
13637
  href?: string | undefined;
13098
13638
  }[] | undefined;
13099
13639
  } | undefined;
@@ -13316,10 +13856,10 @@ declare const formSchema: z.ZodObject<{
13316
13856
  created_at: z.ZodString;
13317
13857
  updated_at: z.ZodString;
13318
13858
  }, "strip", z.ZodTypeAny, {
13859
+ name: string;
13860
+ id: string;
13319
13861
  created_at: string;
13320
13862
  updated_at: string;
13321
- id: string;
13322
- name: string;
13323
13863
  style?: {
13324
13864
  css?: string | undefined;
13325
13865
  } | undefined;
@@ -13751,9 +14291,9 @@ declare const formSchema: z.ZodObject<{
13751
14291
  providers?: string[] | undefined;
13752
14292
  provider_details?: {
13753
14293
  name: string;
14294
+ strategy?: string | undefined;
13754
14295
  icon_url?: string | undefined;
13755
14296
  display_name?: string | undefined;
13756
- strategy?: string | undefined;
13757
14297
  href?: string | undefined;
13758
14298
  }[] | undefined;
13759
14299
  } | undefined;
@@ -13879,10 +14419,10 @@ declare const formSchema: z.ZodObject<{
13879
14419
  } | undefined;
13880
14420
  translations?: Record<string, any> | undefined;
13881
14421
  }, {
14422
+ name: string;
14423
+ id: string;
13882
14424
  created_at: string;
13883
14425
  updated_at: string;
13884
- id: string;
13885
- name: string;
13886
14426
  style?: {
13887
14427
  css?: string | undefined;
13888
14428
  } | undefined;
@@ -14313,9 +14853,9 @@ declare const formSchema: z.ZodObject<{
14313
14853
  providers?: string[] | undefined;
14314
14854
  provider_details?: {
14315
14855
  name: string;
14856
+ strategy?: string | undefined;
14316
14857
  icon_url?: string | undefined;
14317
14858
  display_name?: string | undefined;
14318
- strategy?: string | undefined;
14319
14859
  href?: string | undefined;
14320
14860
  }[] | undefined;
14321
14861
  } | undefined;
@@ -14727,9 +15267,9 @@ declare const inviteSchema: z.ZodObject<{
14727
15267
  roles: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
14728
15268
  send_invitation_email: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
14729
15269
  }, "strip", z.ZodTypeAny, {
14730
- created_at: string;
14731
15270
  id: string;
14732
15271
  client_id: string;
15272
+ created_at: string;
14733
15273
  expires_at: string;
14734
15274
  organization_id: string;
14735
15275
  inviter: {
@@ -14747,9 +15287,9 @@ declare const inviteSchema: z.ZodObject<{
14747
15287
  send_invitation_email?: boolean | undefined;
14748
15288
  ticket_id?: string | undefined;
14749
15289
  }, {
14750
- created_at: string;
14751
15290
  id: string;
14752
15291
  client_id: string;
15292
+ created_at: string;
14753
15293
  expires_at: string;
14754
15294
  organization_id: string;
14755
15295
  inviter: {
@@ -14896,10 +15436,10 @@ declare const loginSessionInsertSchema: z.ZodObject<{
14896
15436
  acr_values?: string | undefined;
14897
15437
  vendor_id?: string | undefined;
14898
15438
  };
15439
+ ip?: string | undefined;
14899
15440
  user_id?: string | undefined;
14900
15441
  auth0Client?: string | undefined;
14901
15442
  deleted_at?: string | undefined;
14902
- ip?: string | undefined;
14903
15443
  useragent?: string | undefined;
14904
15444
  session_id?: string | undefined;
14905
15445
  authorization_url?: string | undefined;
@@ -14929,11 +15469,11 @@ declare const loginSessionInsertSchema: z.ZodObject<{
14929
15469
  acr_values?: string | undefined;
14930
15470
  vendor_id?: string | undefined;
14931
15471
  };
15472
+ ip?: string | undefined;
14932
15473
  user_id?: string | undefined;
14933
15474
  state?: LoginSessionState | undefined;
14934
15475
  auth0Client?: string | undefined;
14935
15476
  deleted_at?: string | undefined;
14936
- ip?: string | undefined;
14937
15477
  useragent?: string | undefined;
14938
15478
  session_id?: string | undefined;
14939
15479
  authorization_url?: string | undefined;
@@ -15018,9 +15558,9 @@ declare const loginSessionSchema: z.ZodObject<{
15018
15558
  user_id: z.ZodOptional<z.ZodString>;
15019
15559
  auth_connection: z.ZodOptional<z.ZodString>;
15020
15560
  }, "strip", z.ZodTypeAny, {
15561
+ id: string;
15021
15562
  created_at: string;
15022
15563
  updated_at: string;
15023
- id: string;
15024
15564
  state: LoginSessionState;
15025
15565
  expires_at: string;
15026
15566
  csrf_token: string;
@@ -15044,10 +15584,10 @@ declare const loginSessionSchema: z.ZodObject<{
15044
15584
  acr_values?: string | undefined;
15045
15585
  vendor_id?: string | undefined;
15046
15586
  };
15587
+ ip?: string | undefined;
15047
15588
  user_id?: string | undefined;
15048
15589
  auth0Client?: string | undefined;
15049
15590
  deleted_at?: string | undefined;
15050
- ip?: string | undefined;
15051
15591
  useragent?: string | undefined;
15052
15592
  session_id?: string | undefined;
15053
15593
  authorization_url?: string | undefined;
@@ -15055,9 +15595,9 @@ declare const loginSessionSchema: z.ZodObject<{
15055
15595
  failure_reason?: string | undefined;
15056
15596
  auth_connection?: string | undefined;
15057
15597
  }, {
15598
+ id: string;
15058
15599
  created_at: string;
15059
15600
  updated_at: string;
15060
- id: string;
15061
15601
  expires_at: string;
15062
15602
  csrf_token: string;
15063
15603
  authParams: {
@@ -15080,11 +15620,11 @@ declare const loginSessionSchema: z.ZodObject<{
15080
15620
  acr_values?: string | undefined;
15081
15621
  vendor_id?: string | undefined;
15082
15622
  };
15623
+ ip?: string | undefined;
15083
15624
  user_id?: string | undefined;
15084
15625
  state?: LoginSessionState | undefined;
15085
15626
  auth0Client?: string | undefined;
15086
15627
  deleted_at?: string | undefined;
15087
- ip?: string | undefined;
15088
15628
  useragent?: string | undefined;
15089
15629
  session_id?: string | undefined;
15090
15630
  authorization_url?: string | undefined;
@@ -15163,20 +15703,12 @@ declare const logInsertSchema: z.ZodObject<{
15163
15703
  date: string;
15164
15704
  isMobile: boolean;
15165
15705
  description?: string | undefined;
15166
- connection_id?: string | undefined;
15167
- user_id?: string | undefined;
15168
- connection?: string | undefined;
15169
15706
  client_id?: string | undefined;
15170
- audience?: string | undefined;
15171
- scope?: string | undefined;
15172
- strategy?: string | undefined;
15173
15707
  ip?: string | undefined;
15174
15708
  user_agent?: string | undefined;
15175
- details?: any;
15176
- user_name?: string | undefined;
15177
- client_name?: string | undefined;
15709
+ connection?: string | undefined;
15710
+ strategy?: string | undefined;
15178
15711
  strategy_type?: string | undefined;
15179
- hostname?: string | undefined;
15180
15712
  auth0_client?: {
15181
15713
  name: string;
15182
15714
  version: string;
@@ -15184,6 +15716,14 @@ declare const logInsertSchema: z.ZodObject<{
15184
15716
  node?: string | undefined;
15185
15717
  } | undefined;
15186
15718
  } | undefined;
15719
+ hostname?: string | undefined;
15720
+ connection_id?: string | undefined;
15721
+ user_id?: string | undefined;
15722
+ audience?: string | undefined;
15723
+ scope?: string | undefined;
15724
+ details?: any;
15725
+ user_name?: string | undefined;
15726
+ client_name?: string | undefined;
15187
15727
  log_id?: string | undefined;
15188
15728
  location_info?: {
15189
15729
  country_code: string;
@@ -15198,20 +15738,12 @@ declare const logInsertSchema: z.ZodObject<{
15198
15738
  date: string;
15199
15739
  isMobile: boolean;
15200
15740
  description?: string | undefined;
15201
- connection_id?: string | undefined;
15202
- user_id?: string | undefined;
15203
- connection?: string | undefined;
15204
15741
  client_id?: string | undefined;
15205
- audience?: string | undefined;
15206
- scope?: string | undefined;
15207
- strategy?: string | undefined;
15208
15742
  ip?: string | undefined;
15209
15743
  user_agent?: string | undefined;
15210
- details?: any;
15211
- user_name?: string | undefined;
15212
- client_name?: string | undefined;
15744
+ connection?: string | undefined;
15745
+ strategy?: string | undefined;
15213
15746
  strategy_type?: string | undefined;
15214
- hostname?: string | undefined;
15215
15747
  auth0_client?: {
15216
15748
  name: string;
15217
15749
  version: string;
@@ -15219,6 +15751,14 @@ declare const logInsertSchema: z.ZodObject<{
15219
15751
  node?: string | undefined;
15220
15752
  } | undefined;
15221
15753
  } | undefined;
15754
+ hostname?: string | undefined;
15755
+ connection_id?: string | undefined;
15756
+ user_id?: string | undefined;
15757
+ audience?: string | undefined;
15758
+ scope?: string | undefined;
15759
+ details?: any;
15760
+ user_name?: string | undefined;
15761
+ client_name?: string | undefined;
15222
15762
  log_id?: string | undefined;
15223
15763
  location_info?: {
15224
15764
  country_code: string;
@@ -15301,20 +15841,12 @@ declare const logSchema: z.ZodObject<{
15301
15841
  isMobile: boolean;
15302
15842
  log_id: string;
15303
15843
  description?: string | undefined;
15304
- connection_id?: string | undefined;
15305
- user_id?: string | undefined;
15306
- connection?: string | undefined;
15307
15844
  client_id?: string | undefined;
15308
- audience?: string | undefined;
15309
- scope?: string | undefined;
15310
- strategy?: string | undefined;
15311
15845
  ip?: string | undefined;
15312
15846
  user_agent?: string | undefined;
15313
- details?: any;
15314
- user_name?: string | undefined;
15315
- client_name?: string | undefined;
15847
+ connection?: string | undefined;
15848
+ strategy?: string | undefined;
15316
15849
  strategy_type?: string | undefined;
15317
- hostname?: string | undefined;
15318
15850
  auth0_client?: {
15319
15851
  name: string;
15320
15852
  version: string;
@@ -15322,6 +15854,14 @@ declare const logSchema: z.ZodObject<{
15322
15854
  node?: string | undefined;
15323
15855
  } | undefined;
15324
15856
  } | undefined;
15857
+ hostname?: string | undefined;
15858
+ connection_id?: string | undefined;
15859
+ user_id?: string | undefined;
15860
+ audience?: string | undefined;
15861
+ scope?: string | undefined;
15862
+ details?: any;
15863
+ user_name?: string | undefined;
15864
+ client_name?: string | undefined;
15325
15865
  location_info?: {
15326
15866
  country_code: string;
15327
15867
  city_name: string;
@@ -15336,20 +15876,12 @@ declare const logSchema: z.ZodObject<{
15336
15876
  isMobile: boolean;
15337
15877
  log_id: string;
15338
15878
  description?: string | undefined;
15339
- connection_id?: string | undefined;
15340
- user_id?: string | undefined;
15341
- connection?: string | undefined;
15342
15879
  client_id?: string | undefined;
15343
- audience?: string | undefined;
15344
- scope?: string | undefined;
15345
- strategy?: string | undefined;
15346
15880
  ip?: string | undefined;
15347
15881
  user_agent?: string | undefined;
15348
- details?: any;
15349
- user_name?: string | undefined;
15350
- client_name?: string | undefined;
15882
+ connection?: string | undefined;
15883
+ strategy?: string | undefined;
15351
15884
  strategy_type?: string | undefined;
15352
- hostname?: string | undefined;
15353
15885
  auth0_client?: {
15354
15886
  name: string;
15355
15887
  version: string;
@@ -15357,6 +15889,14 @@ declare const logSchema: z.ZodObject<{
15357
15889
  node?: string | undefined;
15358
15890
  } | undefined;
15359
15891
  } | undefined;
15892
+ hostname?: string | undefined;
15893
+ connection_id?: string | undefined;
15894
+ user_id?: string | undefined;
15895
+ audience?: string | undefined;
15896
+ scope?: string | undefined;
15897
+ details?: any;
15898
+ user_name?: string | undefined;
15899
+ client_name?: string | undefined;
15360
15900
  location_info?: {
15361
15901
  country_code: string;
15362
15902
  city_name: string;
@@ -15403,18 +15943,18 @@ declare const passwordSchema: z.ZodObject<{
15403
15943
  created_at: z.ZodString;
15404
15944
  updated_at: z.ZodString;
15405
15945
  }, "strip", z.ZodTypeAny, {
15406
- created_at: string;
15407
- updated_at: string;
15408
15946
  password: string;
15409
15947
  id: string;
15948
+ created_at: string;
15949
+ updated_at: string;
15410
15950
  user_id: string;
15411
15951
  algorithm: "bcrypt" | "argon2id";
15412
15952
  is_current: boolean;
15413
15953
  }, {
15414
- created_at: string;
15415
- updated_at: string;
15416
15954
  password: string;
15417
15955
  id: string;
15956
+ created_at: string;
15957
+ updated_at: string;
15418
15958
  user_id: string;
15419
15959
  algorithm?: "bcrypt" | "argon2id" | undefined;
15420
15960
  is_current?: boolean | undefined;
@@ -15523,9 +16063,9 @@ declare const sessionSchema: z.ZodObject<{
15523
16063
  authenticated_at: z.ZodString;
15524
16064
  last_interaction_at: z.ZodString;
15525
16065
  }, "strip", z.ZodTypeAny, {
16066
+ id: string;
15526
16067
  created_at: string;
15527
16068
  updated_at: string;
15528
- id: string;
15529
16069
  user_id: string;
15530
16070
  login_session_id: string;
15531
16071
  device: {
@@ -15544,9 +16084,9 @@ declare const sessionSchema: z.ZodObject<{
15544
16084
  revoked_at?: string | undefined;
15545
16085
  idle_expires_at?: string | undefined;
15546
16086
  }, {
16087
+ id: string;
15547
16088
  created_at: string;
15548
16089
  updated_at: string;
15549
- id: string;
15550
16090
  user_id: string;
15551
16091
  login_session_id: string;
15552
16092
  device: {
@@ -15973,9 +16513,9 @@ declare const tenantSchema: z.ZodObject<{
15973
16513
  created_at: z.ZodEffects<z.ZodNullable<z.ZodString>, string, string | null>;
15974
16514
  updated_at: z.ZodEffects<z.ZodNullable<z.ZodString>, string, string | null>;
15975
16515
  }, "strip", z.ZodTypeAny, {
16516
+ id: string;
15976
16517
  created_at: string;
15977
16518
  updated_at: string;
15978
- id: string;
15979
16519
  audience: string;
15980
16520
  friendly_name: string;
15981
16521
  sender_email: string;
@@ -16099,9 +16639,9 @@ declare const tenantSchema: z.ZodObject<{
16099
16639
  } | undefined;
16100
16640
  } | undefined;
16101
16641
  }, {
16642
+ id: string;
16102
16643
  created_at: string | null;
16103
16644
  updated_at: string | null;
16104
- id: string;
16105
16645
  audience: string;
16106
16646
  friendly_name: string;
16107
16647
  sender_email: string;
@@ -17260,17 +17800,17 @@ declare const refreshTokenInsertSchema: z.ZodObject<{
17260
17800
  audience: z.ZodString;
17261
17801
  scopes: z.ZodString;
17262
17802
  }, "strip", z.ZodTypeAny, {
17263
- audience: string;
17264
17803
  scopes: string;
17265
- }, {
17266
17804
  audience: string;
17805
+ }, {
17267
17806
  scopes: string;
17807
+ audience: string;
17268
17808
  }>, "many">;
17269
17809
  rotating: z.ZodBoolean;
17270
17810
  }, "strip", z.ZodTypeAny, {
17271
17811
  id: string;
17272
- user_id: string;
17273
17812
  client_id: string;
17813
+ user_id: string;
17274
17814
  login_id: string;
17275
17815
  device: {
17276
17816
  last_ip: string;
@@ -17281,8 +17821,8 @@ declare const refreshTokenInsertSchema: z.ZodObject<{
17281
17821
  last_asn: string;
17282
17822
  };
17283
17823
  resource_servers: {
17284
- audience: string;
17285
17824
  scopes: string;
17825
+ audience: string;
17286
17826
  }[];
17287
17827
  rotating: boolean;
17288
17828
  expires_at?: string | undefined;
@@ -17290,8 +17830,8 @@ declare const refreshTokenInsertSchema: z.ZodObject<{
17290
17830
  last_exchanged_at?: string | undefined;
17291
17831
  }, {
17292
17832
  id: string;
17293
- user_id: string;
17294
17833
  client_id: string;
17834
+ user_id: string;
17295
17835
  login_id: string;
17296
17836
  device: {
17297
17837
  last_ip: string;
@@ -17302,8 +17842,8 @@ declare const refreshTokenInsertSchema: z.ZodObject<{
17302
17842
  last_asn: string;
17303
17843
  };
17304
17844
  resource_servers: {
17305
- audience: string;
17306
17845
  scopes: string;
17846
+ audience: string;
17307
17847
  }[];
17308
17848
  rotating: boolean;
17309
17849
  expires_at?: string | undefined;
@@ -17345,19 +17885,19 @@ declare const refreshTokenSchema: z.ZodObject<{
17345
17885
  audience: z.ZodString;
17346
17886
  scopes: z.ZodString;
17347
17887
  }, "strip", z.ZodTypeAny, {
17348
- audience: string;
17349
17888
  scopes: string;
17350
- }, {
17351
17889
  audience: string;
17890
+ }, {
17352
17891
  scopes: string;
17892
+ audience: string;
17353
17893
  }>, "many">;
17354
17894
  rotating: z.ZodBoolean;
17355
17895
  created_at: z.ZodString;
17356
17896
  }, "strip", z.ZodTypeAny, {
17357
- created_at: string;
17358
17897
  id: string;
17359
- user_id: string;
17360
17898
  client_id: string;
17899
+ created_at: string;
17900
+ user_id: string;
17361
17901
  login_id: string;
17362
17902
  device: {
17363
17903
  last_ip: string;
@@ -17368,18 +17908,18 @@ declare const refreshTokenSchema: z.ZodObject<{
17368
17908
  last_asn: string;
17369
17909
  };
17370
17910
  resource_servers: {
17371
- audience: string;
17372
17911
  scopes: string;
17912
+ audience: string;
17373
17913
  }[];
17374
17914
  rotating: boolean;
17375
17915
  expires_at?: string | undefined;
17376
17916
  idle_expires_at?: string | undefined;
17377
17917
  last_exchanged_at?: string | undefined;
17378
17918
  }, {
17379
- created_at: string;
17380
17919
  id: string;
17381
- user_id: string;
17382
17920
  client_id: string;
17921
+ created_at: string;
17922
+ user_id: string;
17383
17923
  login_id: string;
17384
17924
  device: {
17385
17925
  last_ip: string;
@@ -17390,8 +17930,8 @@ declare const refreshTokenSchema: z.ZodObject<{
17390
17930
  last_asn: string;
17391
17931
  };
17392
17932
  resource_servers: {
17393
- audience: string;
17394
17933
  scopes: string;
17934
+ audience: string;
17395
17935
  }[];
17396
17936
  rotating: boolean;
17397
17937
  expires_at?: string | undefined;
@@ -17475,12 +18015,12 @@ declare const resourceServerInsertSchema: z.ZodObject<{
17475
18015
  enable_introspection_endpoint?: boolean | undefined;
17476
18016
  } | undefined;
17477
18017
  id?: string | undefined;
17478
- is_system?: boolean | undefined;
17479
- metadata?: Record<string, any> | undefined;
17480
18018
  scopes?: {
17481
18019
  value: string;
17482
18020
  description?: string | undefined;
17483
18021
  }[] | undefined;
18022
+ is_system?: boolean | undefined;
18023
+ metadata?: Record<string, any> | undefined;
17484
18024
  signing_alg?: string | undefined;
17485
18025
  signing_secret?: string | undefined;
17486
18026
  token_lifetime?: number | undefined;
@@ -17503,12 +18043,12 @@ declare const resourceServerInsertSchema: z.ZodObject<{
17503
18043
  enable_introspection_endpoint?: boolean | undefined;
17504
18044
  } | undefined;
17505
18045
  id?: string | undefined;
17506
- is_system?: boolean | undefined;
17507
- metadata?: Record<string, any> | undefined;
17508
18046
  scopes?: {
17509
18047
  value: string;
17510
18048
  description?: string | undefined;
17511
18049
  }[] | undefined;
18050
+ is_system?: boolean | undefined;
18051
+ metadata?: Record<string, any> | undefined;
17512
18052
  signing_alg?: string | undefined;
17513
18053
  signing_secret?: string | undefined;
17514
18054
  token_lifetime?: number | undefined;
@@ -17584,8 +18124,6 @@ declare const resourceServerSchema: z.ZodObject<{
17584
18124
  }, "strip", z.ZodTypeAny, {
17585
18125
  name: string;
17586
18126
  identifier: string;
17587
- created_at?: string | undefined;
17588
- updated_at?: string | undefined;
17589
18127
  options?: {
17590
18128
  mtls?: {
17591
18129
  bound_access_tokens?: boolean | undefined;
@@ -17598,12 +18136,14 @@ declare const resourceServerSchema: z.ZodObject<{
17598
18136
  enable_introspection_endpoint?: boolean | undefined;
17599
18137
  } | undefined;
17600
18138
  id?: string | undefined;
17601
- is_system?: boolean | undefined;
17602
- metadata?: Record<string, any> | undefined;
17603
18139
  scopes?: {
17604
18140
  value: string;
17605
18141
  description?: string | undefined;
17606
18142
  }[] | undefined;
18143
+ created_at?: string | undefined;
18144
+ updated_at?: string | undefined;
18145
+ is_system?: boolean | undefined;
18146
+ metadata?: Record<string, any> | undefined;
17607
18147
  signing_alg?: string | undefined;
17608
18148
  signing_secret?: string | undefined;
17609
18149
  token_lifetime?: number | undefined;
@@ -17614,8 +18154,6 @@ declare const resourceServerSchema: z.ZodObject<{
17614
18154
  }, {
17615
18155
  name: string;
17616
18156
  identifier: string;
17617
- created_at?: string | undefined;
17618
- updated_at?: string | undefined;
17619
18157
  options?: {
17620
18158
  mtls?: {
17621
18159
  bound_access_tokens?: boolean | undefined;
@@ -17628,12 +18166,14 @@ declare const resourceServerSchema: z.ZodObject<{
17628
18166
  enable_introspection_endpoint?: boolean | undefined;
17629
18167
  } | undefined;
17630
18168
  id?: string | undefined;
17631
- is_system?: boolean | undefined;
17632
- metadata?: Record<string, any> | undefined;
17633
18169
  scopes?: {
17634
18170
  value: string;
17635
18171
  description?: string | undefined;
17636
18172
  }[] | undefined;
18173
+ created_at?: string | undefined;
18174
+ updated_at?: string | undefined;
18175
+ is_system?: boolean | undefined;
18176
+ metadata?: Record<string, any> | undefined;
17637
18177
  signing_alg?: string | undefined;
17638
18178
  signing_secret?: string | undefined;
17639
18179
  token_lifetime?: number | undefined;
@@ -17704,16 +18244,16 @@ declare const userPermissionWithDetailsListSchema: z.ZodArray<z.ZodObject<{
17704
18244
  resource_server_identifier: string;
17705
18245
  permission_name: string;
17706
18246
  resource_server_name: string;
17707
- created_at?: string | undefined;
17708
18247
  description?: string | null | undefined;
18248
+ created_at?: string | undefined;
17709
18249
  organization_id?: string | undefined;
17710
18250
  }, {
17711
18251
  user_id: string;
17712
18252
  resource_server_identifier: string;
17713
18253
  permission_name: string;
17714
18254
  resource_server_name: string;
17715
- created_at?: string | undefined;
17716
18255
  description?: string | null | undefined;
18256
+ created_at?: string | undefined;
17717
18257
  organization_id?: string | undefined;
17718
18258
  }>, "many">;
17719
18259
  export type UserPermissionWithDetailsList = z.infer<typeof userPermissionWithDetailsListSchema>;
@@ -17746,19 +18286,19 @@ declare const roleSchema: z.ZodObject<{
17746
18286
  created_at: z.ZodOptional<z.ZodString>;
17747
18287
  updated_at: z.ZodOptional<z.ZodString>;
17748
18288
  }, "strip", z.ZodTypeAny, {
17749
- id: string;
17750
18289
  name: string;
18290
+ id: string;
18291
+ description?: string | undefined;
17751
18292
  created_at?: string | undefined;
17752
18293
  updated_at?: string | undefined;
17753
- description?: string | undefined;
17754
18294
  is_system?: boolean | undefined;
17755
18295
  metadata?: Record<string, any> | undefined;
17756
18296
  }, {
17757
- id: string;
17758
18297
  name: string;
18298
+ id: string;
18299
+ description?: string | undefined;
17759
18300
  created_at?: string | undefined;
17760
18301
  updated_at?: string | undefined;
17761
- description?: string | undefined;
17762
18302
  is_system?: boolean | undefined;
17763
18303
  metadata?: Record<string, any> | undefined;
17764
18304
  }>;
@@ -17965,10 +18505,10 @@ declare const organizationSchema: z.ZodObject<{
17965
18505
  } | undefined;
17966
18506
  }>>;
17967
18507
  }, "strip", z.ZodTypeAny, {
18508
+ name: string;
18509
+ id: string;
17968
18510
  created_at: string;
17969
18511
  updated_at: string;
17970
- id: string;
17971
- name: string;
17972
18512
  token_quota?: {
17973
18513
  client_credentials?: {
17974
18514
  enforce: boolean;
@@ -17992,10 +18532,10 @@ declare const organizationSchema: z.ZodObject<{
17992
18532
  is_signup_enabled: boolean;
17993
18533
  }[] | undefined;
17994
18534
  }, {
18535
+ name: string;
18536
+ id: string;
17995
18537
  created_at: string;
17996
18538
  updated_at: string;
17997
- id: string;
17998
- name: string;
17999
18539
  token_quota?: {
18000
18540
  client_credentials?: {
18001
18541
  enforce?: boolean | undefined;
@@ -18038,15 +18578,15 @@ declare const userOrganizationSchema: z.ZodObject<{
18038
18578
  user_id: z.ZodString;
18039
18579
  organization_id: z.ZodString;
18040
18580
  }, "strip", z.ZodTypeAny, {
18581
+ id: string;
18041
18582
  created_at: string;
18042
18583
  updated_at: string;
18043
- id: string;
18044
18584
  user_id: string;
18045
18585
  organization_id: string;
18046
18586
  }, {
18587
+ id: string;
18047
18588
  created_at: string;
18048
18589
  updated_at: string;
18049
- id: string;
18050
18590
  user_id: string;
18051
18591
  organization_id: string;
18052
18592
  }>;
@@ -18059,16 +18599,16 @@ declare const dailyStatsSchema: z.ZodObject<{
18059
18599
  updated_at: z.ZodString;
18060
18600
  created_at: z.ZodString;
18061
18601
  }, "strip", z.ZodTypeAny, {
18602
+ date: string;
18062
18603
  created_at: string;
18063
18604
  updated_at: string;
18064
- date: string;
18065
18605
  logins: number;
18066
18606
  signups: number;
18067
18607
  leaked_passwords: number;
18068
18608
  }, {
18609
+ date: string;
18069
18610
  created_at: string;
18070
18611
  updated_at: string;
18071
- date: string;
18072
18612
  logins: number;
18073
18613
  signups: number;
18074
18614
  leaked_passwords: number;
@@ -18202,10 +18742,10 @@ declare const authenticationMethodSchema: z.ZodEffects<z.ZodObject<{
18202
18742
  friendly_name: z.ZodOptional<z.ZodString>;
18203
18743
  confirmed: z.ZodDefault<z.ZodBoolean>;
18204
18744
  }, "strip", z.ZodTypeAny, {
18205
- created_at: string;
18206
- updated_at: string;
18207
18745
  type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
18208
18746
  id: string;
18747
+ created_at: string;
18748
+ updated_at: string;
18209
18749
  user_id: string;
18210
18750
  confirmed: boolean;
18211
18751
  phone_number?: string | undefined;
@@ -18217,10 +18757,10 @@ declare const authenticationMethodSchema: z.ZodEffects<z.ZodObject<{
18217
18757
  credential_backed_up?: boolean | undefined;
18218
18758
  transports?: string[] | undefined;
18219
18759
  }, {
18220
- created_at: string;
18221
- updated_at: string;
18222
18760
  type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
18223
18761
  id: string;
18762
+ created_at: string;
18763
+ updated_at: string;
18224
18764
  user_id: string;
18225
18765
  phone_number?: string | undefined;
18226
18766
  friendly_name?: string | undefined;
@@ -18232,10 +18772,10 @@ declare const authenticationMethodSchema: z.ZodEffects<z.ZodObject<{
18232
18772
  transports?: string[] | undefined;
18233
18773
  confirmed?: boolean | undefined;
18234
18774
  }>, {
18235
- created_at: string;
18236
- updated_at: string;
18237
18775
  type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
18238
18776
  id: string;
18777
+ created_at: string;
18778
+ updated_at: string;
18239
18779
  user_id: string;
18240
18780
  confirmed: boolean;
18241
18781
  phone_number?: string | undefined;
@@ -18247,10 +18787,10 @@ declare const authenticationMethodSchema: z.ZodEffects<z.ZodObject<{
18247
18787
  credential_backed_up?: boolean | undefined;
18248
18788
  transports?: string[] | undefined;
18249
18789
  }, {
18250
- created_at: string;
18251
- updated_at: string;
18252
18790
  type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
18253
18791
  id: string;
18792
+ created_at: string;
18793
+ updated_at: string;
18254
18794
  user_id: string;
18255
18795
  phone_number?: string | undefined;
18256
18796
  friendly_name?: string | undefined;
@@ -18655,6 +19195,56 @@ export interface CustomTextAdapter {
18655
19195
  language: string;
18656
19196
  }>>;
18657
19197
  }
19198
+ export interface EmailServiceSendParams {
19199
+ emailProvider: EmailProvider;
19200
+ to: string;
19201
+ from: string;
19202
+ subject: string;
19203
+ html?: string;
19204
+ text?: string;
19205
+ template: string;
19206
+ data: Record<string, string>;
19207
+ }
19208
+ export interface EmailServiceAdapter {
19209
+ send(params: EmailServiceSendParams): Promise<void>;
19210
+ }
19211
+ export interface SmsServiceSendParams {
19212
+ to: string;
19213
+ from?: string;
19214
+ text: string;
19215
+ template: string;
19216
+ options: Record<string, unknown>;
19217
+ data: Record<string, string>;
19218
+ }
19219
+ export interface SmsServiceAdapter {
19220
+ send(params: SmsServiceSendParams): Promise<void>;
19221
+ }
19222
+ export interface OutboxEvent extends AuditEvent {
19223
+ /** When the event was persisted to the outbox */
19224
+ created_at: string;
19225
+ /** When the event was successfully processed (null if pending) */
19226
+ processed_at: string | null;
19227
+ /** Number of delivery attempts */
19228
+ retry_count: number;
19229
+ /** When to attempt the next retry (null if not in retry state) */
19230
+ next_retry_at: string | null;
19231
+ /** Last error message from a failed delivery attempt */
19232
+ error: string | null;
19233
+ }
19234
+ export interface OutboxAdapter {
19235
+ /** Write an audit event to the outbox */
19236
+ create(tenantId: string, event: AuditEventInsert): Promise<void>;
19237
+ /** Fetch unprocessed events ready for delivery */
19238
+ getUnprocessed(limit: number): Promise<OutboxEvent[]>;
19239
+ /** Atomically claim events for exclusive processing. Returns IDs that were successfully claimed. */
19240
+ claimEvents(ids: string[], workerId: string, leaseMs: number): Promise<string[]>;
19241
+ /** Mark events as successfully processed */
19242
+ markProcessed(ids: string[]): Promise<void>;
19243
+ /** Mark an event for retry with a backoff delay */
19244
+ markRetry(id: string, error: string, nextRetryAt: string): Promise<void>;
19245
+ /** Delete processed events older than the given ISO date. Returns count deleted. */
19246
+ cleanup(olderThan: string): Promise<number>;
19247
+ }
18658
19248
  /**
18659
19249
  * Parameters for cleaning up expired sessions
18660
19250
  */
@@ -18700,6 +19290,16 @@ export interface DataAdapters {
18700
19290
  organizations: OrganizationsAdapter;
18701
19291
  authenticationMethods: AuthenticationMethodsAdapter;
18702
19292
  userOrganizations: UserOrganizationsAdapter;
19293
+ emailService?: EmailServiceAdapter;
19294
+ smsService?: SmsServiceAdapter;
19295
+ /** Optional outbox adapter for transactional audit event capture */
19296
+ outbox?: OutboxAdapter;
19297
+ /**
19298
+ * Execute a callback within a database transaction.
19299
+ * The callback receives a set of adapters scoped to the transaction.
19300
+ * If the callback throws, the transaction is rolled back.
19301
+ */
19302
+ transaction<T>(fn: (trxAdapters: DataAdapters) => Promise<T>): Promise<T>;
18703
19303
  /**
18704
19304
  * Optional session cleanup function.
18705
19305
  * Cleans up expired login_sessions, sessions, and refresh_tokens.
@@ -18937,8 +19537,8 @@ declare const sqlUserSchema: z.ZodObject<{
18937
19537
  family_name: z.ZodOptional<z.ZodString>;
18938
19538
  }, z.ZodAny, "strip">>>;
18939
19539
  }, "strip", z.ZodTypeAny, {
18940
- user_id: string;
18941
19540
  connection: string;
19541
+ user_id: string;
18942
19542
  provider: string;
18943
19543
  isSocial: boolean;
18944
19544
  email?: string | undefined;
@@ -18960,8 +19560,8 @@ declare const sqlUserSchema: z.ZodObject<{
18960
19560
  family_name: z.ZodOptional<z.ZodString>;
18961
19561
  }, z.ZodAny, "strip"> | undefined;
18962
19562
  }, {
18963
- user_id: string;
18964
19563
  connection: string;
19564
+ user_id: string;
18965
19565
  provider: string;
18966
19566
  isSocial: boolean;
18967
19567
  email?: string | undefined;
@@ -18986,11 +19586,11 @@ declare const sqlUserSchema: z.ZodObject<{
18986
19586
  created_at: z.ZodString;
18987
19587
  updated_at: z.ZodString;
18988
19588
  name: z.ZodOptional<z.ZodString>;
19589
+ connection: z.ZodString;
18989
19590
  username: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
18990
19591
  given_name: z.ZodOptional<z.ZodString>;
18991
19592
  phone_number: z.ZodOptional<z.ZodString>;
18992
19593
  family_name: z.ZodOptional<z.ZodString>;
18993
- connection: z.ZodString;
18994
19594
  profileData: z.ZodOptional<z.ZodString>;
18995
19595
  nickname: z.ZodOptional<z.ZodString>;
18996
19596
  picture: z.ZodOptional<z.ZodString>;
@@ -19023,8 +19623,8 @@ declare const sqlUserSchema: z.ZodObject<{
19023
19623
  address?: string | null | undefined;
19024
19624
  email?: string | undefined;
19025
19625
  identities?: {
19026
- user_id: string;
19027
19626
  connection: string;
19627
+ user_id: string;
19028
19628
  provider: string;
19029
19629
  isSocial: boolean;
19030
19630
  email?: string | undefined;
@@ -19082,8 +19682,8 @@ declare const sqlUserSchema: z.ZodObject<{
19082
19682
  email?: string | undefined;
19083
19683
  login_count?: number | undefined;
19084
19684
  identities?: {
19085
- user_id: string;
19086
19685
  connection: string;
19686
+ user_id: string;
19087
19687
  provider: string;
19088
19688
  isSocial: boolean;
19089
19689
  email?: string | undefined;
@@ -19302,11 +19902,11 @@ declare const sqlRefreshTokensSchema: z.ZodObject<Omit<{
19302
19902
  audience: z.ZodString;
19303
19903
  scopes: z.ZodString;
19304
19904
  }, "strip", z.ZodTypeAny, {
19305
- audience: string;
19306
19905
  scopes: string;
19307
- }, {
19308
19906
  audience: string;
19907
+ }, {
19309
19908
  scopes: string;
19909
+ audience: string;
19310
19910
  }>, "many">;
19311
19911
  rotating: z.ZodBoolean;
19312
19912
  created_at: z.ZodString;
@@ -20913,6 +21513,22 @@ export interface Database {
20913
21513
  universal_login_templates: z.infer<typeof sqlUniversalLoginTemplateSchema>;
20914
21514
  custom_text: z.infer<typeof sqlCustomTextSchema>;
20915
21515
  authentication_methods: z.infer<typeof sqlAuthenticationMethodSchema>;
21516
+ outbox_events: {
21517
+ id: string;
21518
+ tenant_id: string;
21519
+ event_type: string;
21520
+ log_type: string;
21521
+ aggregate_type: string;
21522
+ aggregate_id: string;
21523
+ payload: string;
21524
+ created_at: string;
21525
+ processed_at: string | null;
21526
+ retry_count: number;
21527
+ next_retry_at: string | null;
21528
+ error: string | null;
21529
+ claimed_by: string | null;
21530
+ claim_expires_at: string | null;
21531
+ };
20916
21532
  }
20917
21533
  export declare function migrateToLatest(db: Kysely<Database>, debug?: boolean): Promise<void>;
20918
21534
  export declare function migrateDown(db: Kysely<Database>): Promise<void>;