@authhero/adapter-interfaces 0.109.0 → 0.110.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.
@@ -2,6 +2,767 @@
2
2
 
3
3
  import { z } from '@hono/zod-openapi';
4
4
 
5
+ /**
6
+ * Flow action types supported by the system (Auth0 compatible)
7
+ * For now we support AUTH0 and EMAIL types
8
+ */
9
+ export declare const FlowActionTypeEnum: z.ZodEnum<[
10
+ "AUTH0",
11
+ "EMAIL"
12
+ ]>;
13
+ export type FlowActionType = z.infer<typeof FlowActionTypeEnum>;
14
+ /**
15
+ * AUTH0 action operations
16
+ */
17
+ export declare const Auth0ActionEnum: z.ZodEnum<[
18
+ "CREATE_USER",
19
+ "GET_USER",
20
+ "UPDATE_USER",
21
+ "SEND_REQUEST",
22
+ "SEND_EMAIL"
23
+ ]>;
24
+ /**
25
+ * EMAIL action operations
26
+ */
27
+ export declare const EmailActionEnum: z.ZodEnum<[
28
+ "VERIFY_EMAIL"
29
+ ]>;
30
+ /**
31
+ * Email verification rules schema
32
+ */
33
+ export declare const emailVerificationRulesSchema: z.ZodObject<{
34
+ require_mx_record: z.ZodOptional<z.ZodBoolean>;
35
+ block_aliases: z.ZodOptional<z.ZodBoolean>;
36
+ block_free_emails: z.ZodOptional<z.ZodBoolean>;
37
+ block_disposable_emails: z.ZodOptional<z.ZodBoolean>;
38
+ blocklist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
39
+ allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
40
+ }, "strip", z.ZodTypeAny, {
41
+ require_mx_record?: boolean | undefined;
42
+ block_aliases?: boolean | undefined;
43
+ block_free_emails?: boolean | undefined;
44
+ block_disposable_emails?: boolean | undefined;
45
+ blocklist?: string[] | undefined;
46
+ allowlist?: string[] | undefined;
47
+ }, {
48
+ require_mx_record?: boolean | undefined;
49
+ block_aliases?: boolean | undefined;
50
+ block_free_emails?: boolean | undefined;
51
+ block_disposable_emails?: boolean | undefined;
52
+ blocklist?: string[] | undefined;
53
+ allowlist?: string[] | undefined;
54
+ }>;
55
+ export type EmailVerificationRules = z.infer<typeof emailVerificationRulesSchema>;
56
+ /**
57
+ * AUTH0 UPDATE_USER action step
58
+ */
59
+ export declare const auth0UpdateUserActionSchema: z.ZodObject<{
60
+ id: z.ZodString;
61
+ alias: z.ZodOptional<z.ZodString>;
62
+ type: z.ZodLiteral<"AUTH0">;
63
+ action: z.ZodLiteral<"UPDATE_USER">;
64
+ allow_failure: z.ZodOptional<z.ZodBoolean>;
65
+ mask_output: z.ZodOptional<z.ZodBoolean>;
66
+ params: z.ZodObject<{
67
+ connection_id: z.ZodOptional<z.ZodString>;
68
+ user_id: z.ZodString;
69
+ changes: z.ZodRecord<z.ZodString, z.ZodAny>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ user_id: string;
72
+ changes: Record<string, any>;
73
+ connection_id?: string | undefined;
74
+ }, {
75
+ user_id: string;
76
+ changes: Record<string, any>;
77
+ connection_id?: string | undefined;
78
+ }>;
79
+ }, "strip", z.ZodTypeAny, {
80
+ params: {
81
+ user_id: string;
82
+ changes: Record<string, any>;
83
+ connection_id?: string | undefined;
84
+ };
85
+ type: "AUTH0";
86
+ id: string;
87
+ action: "UPDATE_USER";
88
+ alias?: string | undefined;
89
+ allow_failure?: boolean | undefined;
90
+ mask_output?: boolean | undefined;
91
+ }, {
92
+ params: {
93
+ user_id: string;
94
+ changes: Record<string, any>;
95
+ connection_id?: string | undefined;
96
+ };
97
+ type: "AUTH0";
98
+ id: string;
99
+ action: "UPDATE_USER";
100
+ alias?: string | undefined;
101
+ allow_failure?: boolean | undefined;
102
+ mask_output?: boolean | undefined;
103
+ }>;
104
+ export type Auth0UpdateUserAction = z.infer<typeof auth0UpdateUserActionSchema>;
105
+ /**
106
+ * EMAIL VERIFY_EMAIL action step
107
+ */
108
+ export declare const emailVerifyActionSchema: z.ZodObject<{
109
+ id: z.ZodString;
110
+ alias: z.ZodOptional<z.ZodString>;
111
+ type: z.ZodLiteral<"EMAIL">;
112
+ action: z.ZodLiteral<"VERIFY_EMAIL">;
113
+ allow_failure: z.ZodOptional<z.ZodBoolean>;
114
+ mask_output: z.ZodOptional<z.ZodBoolean>;
115
+ params: z.ZodObject<{
116
+ email: z.ZodString;
117
+ rules: z.ZodOptional<z.ZodObject<{
118
+ require_mx_record: z.ZodOptional<z.ZodBoolean>;
119
+ block_aliases: z.ZodOptional<z.ZodBoolean>;
120
+ block_free_emails: z.ZodOptional<z.ZodBoolean>;
121
+ block_disposable_emails: z.ZodOptional<z.ZodBoolean>;
122
+ blocklist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
123
+ allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
124
+ }, "strip", z.ZodTypeAny, {
125
+ require_mx_record?: boolean | undefined;
126
+ block_aliases?: boolean | undefined;
127
+ block_free_emails?: boolean | undefined;
128
+ block_disposable_emails?: boolean | undefined;
129
+ blocklist?: string[] | undefined;
130
+ allowlist?: string[] | undefined;
131
+ }, {
132
+ require_mx_record?: boolean | undefined;
133
+ block_aliases?: boolean | undefined;
134
+ block_free_emails?: boolean | undefined;
135
+ block_disposable_emails?: boolean | undefined;
136
+ blocklist?: string[] | undefined;
137
+ allowlist?: string[] | undefined;
138
+ }>>;
139
+ }, "strip", z.ZodTypeAny, {
140
+ email: string;
141
+ rules?: {
142
+ require_mx_record?: boolean | undefined;
143
+ block_aliases?: boolean | undefined;
144
+ block_free_emails?: boolean | undefined;
145
+ block_disposable_emails?: boolean | undefined;
146
+ blocklist?: string[] | undefined;
147
+ allowlist?: string[] | undefined;
148
+ } | undefined;
149
+ }, {
150
+ email: string;
151
+ rules?: {
152
+ require_mx_record?: boolean | undefined;
153
+ block_aliases?: boolean | undefined;
154
+ block_free_emails?: boolean | undefined;
155
+ block_disposable_emails?: boolean | undefined;
156
+ blocklist?: string[] | undefined;
157
+ allowlist?: string[] | undefined;
158
+ } | undefined;
159
+ }>;
160
+ }, "strip", z.ZodTypeAny, {
161
+ params: {
162
+ email: string;
163
+ rules?: {
164
+ require_mx_record?: boolean | undefined;
165
+ block_aliases?: boolean | undefined;
166
+ block_free_emails?: boolean | undefined;
167
+ block_disposable_emails?: boolean | undefined;
168
+ blocklist?: string[] | undefined;
169
+ allowlist?: string[] | undefined;
170
+ } | undefined;
171
+ };
172
+ type: "EMAIL";
173
+ id: string;
174
+ action: "VERIFY_EMAIL";
175
+ alias?: string | undefined;
176
+ allow_failure?: boolean | undefined;
177
+ mask_output?: boolean | undefined;
178
+ }, {
179
+ params: {
180
+ email: string;
181
+ rules?: {
182
+ require_mx_record?: boolean | undefined;
183
+ block_aliases?: boolean | undefined;
184
+ block_free_emails?: boolean | undefined;
185
+ block_disposable_emails?: boolean | undefined;
186
+ blocklist?: string[] | undefined;
187
+ allowlist?: string[] | undefined;
188
+ } | undefined;
189
+ };
190
+ type: "EMAIL";
191
+ id: string;
192
+ action: "VERIFY_EMAIL";
193
+ alias?: string | undefined;
194
+ allow_failure?: boolean | undefined;
195
+ mask_output?: boolean | undefined;
196
+ }>;
197
+ export type EmailVerifyAction = z.infer<typeof emailVerifyActionSchema>;
198
+ /**
199
+ * Union of all supported action steps
200
+ */
201
+ export declare const flowActionStepSchema: z.ZodUnion<[
202
+ z.ZodObject<{
203
+ id: z.ZodString;
204
+ alias: z.ZodOptional<z.ZodString>;
205
+ type: z.ZodLiteral<"AUTH0">;
206
+ action: z.ZodLiteral<"UPDATE_USER">;
207
+ allow_failure: z.ZodOptional<z.ZodBoolean>;
208
+ mask_output: z.ZodOptional<z.ZodBoolean>;
209
+ params: z.ZodObject<{
210
+ connection_id: z.ZodOptional<z.ZodString>;
211
+ user_id: z.ZodString;
212
+ changes: z.ZodRecord<z.ZodString, z.ZodAny>;
213
+ }, "strip", z.ZodTypeAny, {
214
+ user_id: string;
215
+ changes: Record<string, any>;
216
+ connection_id?: string | undefined;
217
+ }, {
218
+ user_id: string;
219
+ changes: Record<string, any>;
220
+ connection_id?: string | undefined;
221
+ }>;
222
+ }, "strip", z.ZodTypeAny, {
223
+ params: {
224
+ user_id: string;
225
+ changes: Record<string, any>;
226
+ connection_id?: string | undefined;
227
+ };
228
+ type: "AUTH0";
229
+ id: string;
230
+ action: "UPDATE_USER";
231
+ alias?: string | undefined;
232
+ allow_failure?: boolean | undefined;
233
+ mask_output?: boolean | undefined;
234
+ }, {
235
+ params: {
236
+ user_id: string;
237
+ changes: Record<string, any>;
238
+ connection_id?: string | undefined;
239
+ };
240
+ type: "AUTH0";
241
+ id: string;
242
+ action: "UPDATE_USER";
243
+ alias?: string | undefined;
244
+ allow_failure?: boolean | undefined;
245
+ mask_output?: boolean | undefined;
246
+ }>,
247
+ z.ZodObject<{
248
+ id: z.ZodString;
249
+ alias: z.ZodOptional<z.ZodString>;
250
+ type: z.ZodLiteral<"EMAIL">;
251
+ action: z.ZodLiteral<"VERIFY_EMAIL">;
252
+ allow_failure: z.ZodOptional<z.ZodBoolean>;
253
+ mask_output: z.ZodOptional<z.ZodBoolean>;
254
+ params: z.ZodObject<{
255
+ email: z.ZodString;
256
+ rules: z.ZodOptional<z.ZodObject<{
257
+ require_mx_record: z.ZodOptional<z.ZodBoolean>;
258
+ block_aliases: z.ZodOptional<z.ZodBoolean>;
259
+ block_free_emails: z.ZodOptional<z.ZodBoolean>;
260
+ block_disposable_emails: z.ZodOptional<z.ZodBoolean>;
261
+ blocklist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
262
+ allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
263
+ }, "strip", z.ZodTypeAny, {
264
+ require_mx_record?: boolean | undefined;
265
+ block_aliases?: boolean | undefined;
266
+ block_free_emails?: boolean | undefined;
267
+ block_disposable_emails?: boolean | undefined;
268
+ blocklist?: string[] | undefined;
269
+ allowlist?: string[] | undefined;
270
+ }, {
271
+ require_mx_record?: boolean | undefined;
272
+ block_aliases?: boolean | undefined;
273
+ block_free_emails?: boolean | undefined;
274
+ block_disposable_emails?: boolean | undefined;
275
+ blocklist?: string[] | undefined;
276
+ allowlist?: string[] | undefined;
277
+ }>>;
278
+ }, "strip", z.ZodTypeAny, {
279
+ email: string;
280
+ rules?: {
281
+ require_mx_record?: boolean | undefined;
282
+ block_aliases?: boolean | undefined;
283
+ block_free_emails?: boolean | undefined;
284
+ block_disposable_emails?: boolean | undefined;
285
+ blocklist?: string[] | undefined;
286
+ allowlist?: string[] | undefined;
287
+ } | undefined;
288
+ }, {
289
+ email: string;
290
+ rules?: {
291
+ require_mx_record?: boolean | undefined;
292
+ block_aliases?: boolean | undefined;
293
+ block_free_emails?: boolean | undefined;
294
+ block_disposable_emails?: boolean | undefined;
295
+ blocklist?: string[] | undefined;
296
+ allowlist?: string[] | undefined;
297
+ } | undefined;
298
+ }>;
299
+ }, "strip", z.ZodTypeAny, {
300
+ params: {
301
+ email: string;
302
+ rules?: {
303
+ require_mx_record?: boolean | undefined;
304
+ block_aliases?: boolean | undefined;
305
+ block_free_emails?: boolean | undefined;
306
+ block_disposable_emails?: boolean | undefined;
307
+ blocklist?: string[] | undefined;
308
+ allowlist?: string[] | undefined;
309
+ } | undefined;
310
+ };
311
+ type: "EMAIL";
312
+ id: string;
313
+ action: "VERIFY_EMAIL";
314
+ alias?: string | undefined;
315
+ allow_failure?: boolean | undefined;
316
+ mask_output?: boolean | undefined;
317
+ }, {
318
+ params: {
319
+ email: string;
320
+ rules?: {
321
+ require_mx_record?: boolean | undefined;
322
+ block_aliases?: boolean | undefined;
323
+ block_free_emails?: boolean | undefined;
324
+ block_disposable_emails?: boolean | undefined;
325
+ blocklist?: string[] | undefined;
326
+ allowlist?: string[] | undefined;
327
+ } | undefined;
328
+ };
329
+ type: "EMAIL";
330
+ id: string;
331
+ action: "VERIFY_EMAIL";
332
+ alias?: string | undefined;
333
+ allow_failure?: boolean | undefined;
334
+ mask_output?: boolean | undefined;
335
+ }>
336
+ ]>;
337
+ export type FlowActionStep = z.infer<typeof flowActionStepSchema>;
338
+ /**
339
+ * Schema for creating a flow
340
+ */
341
+ export declare const flowInsertSchema: z.ZodObject<{
342
+ name: z.ZodString;
343
+ actions: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[
344
+ z.ZodObject<{
345
+ id: z.ZodString;
346
+ alias: z.ZodOptional<z.ZodString>;
347
+ type: z.ZodLiteral<"AUTH0">;
348
+ action: z.ZodLiteral<"UPDATE_USER">;
349
+ allow_failure: z.ZodOptional<z.ZodBoolean>;
350
+ mask_output: z.ZodOptional<z.ZodBoolean>;
351
+ params: z.ZodObject<{
352
+ connection_id: z.ZodOptional<z.ZodString>;
353
+ user_id: z.ZodString;
354
+ changes: z.ZodRecord<z.ZodString, z.ZodAny>;
355
+ }, "strip", z.ZodTypeAny, {
356
+ user_id: string;
357
+ changes: Record<string, any>;
358
+ connection_id?: string | undefined;
359
+ }, {
360
+ user_id: string;
361
+ changes: Record<string, any>;
362
+ connection_id?: string | undefined;
363
+ }>;
364
+ }, "strip", z.ZodTypeAny, {
365
+ params: {
366
+ user_id: string;
367
+ changes: Record<string, any>;
368
+ connection_id?: string | undefined;
369
+ };
370
+ type: "AUTH0";
371
+ id: string;
372
+ action: "UPDATE_USER";
373
+ alias?: string | undefined;
374
+ allow_failure?: boolean | undefined;
375
+ mask_output?: boolean | undefined;
376
+ }, {
377
+ params: {
378
+ user_id: string;
379
+ changes: Record<string, any>;
380
+ connection_id?: string | undefined;
381
+ };
382
+ type: "AUTH0";
383
+ id: string;
384
+ action: "UPDATE_USER";
385
+ alias?: string | undefined;
386
+ allow_failure?: boolean | undefined;
387
+ mask_output?: boolean | undefined;
388
+ }>,
389
+ z.ZodObject<{
390
+ id: z.ZodString;
391
+ alias: z.ZodOptional<z.ZodString>;
392
+ type: z.ZodLiteral<"EMAIL">;
393
+ action: z.ZodLiteral<"VERIFY_EMAIL">;
394
+ allow_failure: z.ZodOptional<z.ZodBoolean>;
395
+ mask_output: z.ZodOptional<z.ZodBoolean>;
396
+ params: z.ZodObject<{
397
+ email: z.ZodString;
398
+ rules: z.ZodOptional<z.ZodObject<{
399
+ require_mx_record: z.ZodOptional<z.ZodBoolean>;
400
+ block_aliases: z.ZodOptional<z.ZodBoolean>;
401
+ block_free_emails: z.ZodOptional<z.ZodBoolean>;
402
+ block_disposable_emails: z.ZodOptional<z.ZodBoolean>;
403
+ blocklist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
404
+ allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
405
+ }, "strip", z.ZodTypeAny, {
406
+ require_mx_record?: boolean | undefined;
407
+ block_aliases?: boolean | undefined;
408
+ block_free_emails?: boolean | undefined;
409
+ block_disposable_emails?: boolean | undefined;
410
+ blocklist?: string[] | undefined;
411
+ allowlist?: string[] | undefined;
412
+ }, {
413
+ require_mx_record?: boolean | undefined;
414
+ block_aliases?: boolean | undefined;
415
+ block_free_emails?: boolean | undefined;
416
+ block_disposable_emails?: boolean | undefined;
417
+ blocklist?: string[] | undefined;
418
+ allowlist?: string[] | undefined;
419
+ }>>;
420
+ }, "strip", z.ZodTypeAny, {
421
+ email: string;
422
+ rules?: {
423
+ require_mx_record?: boolean | undefined;
424
+ block_aliases?: boolean | undefined;
425
+ block_free_emails?: boolean | undefined;
426
+ block_disposable_emails?: boolean | undefined;
427
+ blocklist?: string[] | undefined;
428
+ allowlist?: string[] | undefined;
429
+ } | undefined;
430
+ }, {
431
+ email: string;
432
+ rules?: {
433
+ require_mx_record?: boolean | undefined;
434
+ block_aliases?: boolean | undefined;
435
+ block_free_emails?: boolean | undefined;
436
+ block_disposable_emails?: boolean | undefined;
437
+ blocklist?: string[] | undefined;
438
+ allowlist?: string[] | undefined;
439
+ } | undefined;
440
+ }>;
441
+ }, "strip", z.ZodTypeAny, {
442
+ params: {
443
+ email: string;
444
+ rules?: {
445
+ require_mx_record?: boolean | undefined;
446
+ block_aliases?: boolean | undefined;
447
+ block_free_emails?: boolean | undefined;
448
+ block_disposable_emails?: boolean | undefined;
449
+ blocklist?: string[] | undefined;
450
+ allowlist?: string[] | undefined;
451
+ } | undefined;
452
+ };
453
+ type: "EMAIL";
454
+ id: string;
455
+ action: "VERIFY_EMAIL";
456
+ alias?: string | undefined;
457
+ allow_failure?: boolean | undefined;
458
+ mask_output?: boolean | undefined;
459
+ }, {
460
+ params: {
461
+ email: string;
462
+ rules?: {
463
+ require_mx_record?: boolean | undefined;
464
+ block_aliases?: boolean | undefined;
465
+ block_free_emails?: boolean | undefined;
466
+ block_disposable_emails?: boolean | undefined;
467
+ blocklist?: string[] | undefined;
468
+ allowlist?: string[] | undefined;
469
+ } | undefined;
470
+ };
471
+ type: "EMAIL";
472
+ id: string;
473
+ action: "VERIFY_EMAIL";
474
+ alias?: string | undefined;
475
+ allow_failure?: boolean | undefined;
476
+ mask_output?: boolean | undefined;
477
+ }>
478
+ ]>, "many">>>;
479
+ }, "strip", z.ZodTypeAny, {
480
+ name: string;
481
+ actions: ({
482
+ params: {
483
+ user_id: string;
484
+ changes: Record<string, any>;
485
+ connection_id?: string | undefined;
486
+ };
487
+ type: "AUTH0";
488
+ id: string;
489
+ action: "UPDATE_USER";
490
+ alias?: string | undefined;
491
+ allow_failure?: boolean | undefined;
492
+ mask_output?: boolean | undefined;
493
+ } | {
494
+ params: {
495
+ email: string;
496
+ rules?: {
497
+ require_mx_record?: boolean | undefined;
498
+ block_aliases?: boolean | undefined;
499
+ block_free_emails?: boolean | undefined;
500
+ block_disposable_emails?: boolean | undefined;
501
+ blocklist?: string[] | undefined;
502
+ allowlist?: string[] | undefined;
503
+ } | undefined;
504
+ };
505
+ type: "EMAIL";
506
+ id: string;
507
+ action: "VERIFY_EMAIL";
508
+ alias?: string | undefined;
509
+ allow_failure?: boolean | undefined;
510
+ mask_output?: boolean | undefined;
511
+ })[];
512
+ }, {
513
+ name: string;
514
+ actions?: ({
515
+ params: {
516
+ user_id: string;
517
+ changes: Record<string, any>;
518
+ connection_id?: string | undefined;
519
+ };
520
+ type: "AUTH0";
521
+ id: string;
522
+ action: "UPDATE_USER";
523
+ alias?: string | undefined;
524
+ allow_failure?: boolean | undefined;
525
+ mask_output?: boolean | undefined;
526
+ } | {
527
+ params: {
528
+ email: string;
529
+ rules?: {
530
+ require_mx_record?: boolean | undefined;
531
+ block_aliases?: boolean | undefined;
532
+ block_free_emails?: boolean | undefined;
533
+ block_disposable_emails?: boolean | undefined;
534
+ blocklist?: string[] | undefined;
535
+ allowlist?: string[] | undefined;
536
+ } | undefined;
537
+ };
538
+ type: "EMAIL";
539
+ id: string;
540
+ action: "VERIFY_EMAIL";
541
+ alias?: string | undefined;
542
+ allow_failure?: boolean | undefined;
543
+ mask_output?: boolean | undefined;
544
+ })[] | undefined;
545
+ }>;
546
+ export type FlowInsert = z.infer<typeof flowInsertSchema>;
547
+ /**
548
+ * Full flow schema including system fields
549
+ */
550
+ export declare const flowSchema: z.ZodObject<{
551
+ name: z.ZodString;
552
+ actions: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[
553
+ z.ZodObject<{
554
+ id: z.ZodString;
555
+ alias: z.ZodOptional<z.ZodString>;
556
+ type: z.ZodLiteral<"AUTH0">;
557
+ action: z.ZodLiteral<"UPDATE_USER">;
558
+ allow_failure: z.ZodOptional<z.ZodBoolean>;
559
+ mask_output: z.ZodOptional<z.ZodBoolean>;
560
+ params: z.ZodObject<{
561
+ connection_id: z.ZodOptional<z.ZodString>;
562
+ user_id: z.ZodString;
563
+ changes: z.ZodRecord<z.ZodString, z.ZodAny>;
564
+ }, "strip", z.ZodTypeAny, {
565
+ user_id: string;
566
+ changes: Record<string, any>;
567
+ connection_id?: string | undefined;
568
+ }, {
569
+ user_id: string;
570
+ changes: Record<string, any>;
571
+ connection_id?: string | undefined;
572
+ }>;
573
+ }, "strip", z.ZodTypeAny, {
574
+ params: {
575
+ user_id: string;
576
+ changes: Record<string, any>;
577
+ connection_id?: string | undefined;
578
+ };
579
+ type: "AUTH0";
580
+ id: string;
581
+ action: "UPDATE_USER";
582
+ alias?: string | undefined;
583
+ allow_failure?: boolean | undefined;
584
+ mask_output?: boolean | undefined;
585
+ }, {
586
+ params: {
587
+ user_id: string;
588
+ changes: Record<string, any>;
589
+ connection_id?: string | undefined;
590
+ };
591
+ type: "AUTH0";
592
+ id: string;
593
+ action: "UPDATE_USER";
594
+ alias?: string | undefined;
595
+ allow_failure?: boolean | undefined;
596
+ mask_output?: boolean | undefined;
597
+ }>,
598
+ z.ZodObject<{
599
+ id: z.ZodString;
600
+ alias: z.ZodOptional<z.ZodString>;
601
+ type: z.ZodLiteral<"EMAIL">;
602
+ action: z.ZodLiteral<"VERIFY_EMAIL">;
603
+ allow_failure: z.ZodOptional<z.ZodBoolean>;
604
+ mask_output: z.ZodOptional<z.ZodBoolean>;
605
+ params: z.ZodObject<{
606
+ email: z.ZodString;
607
+ rules: z.ZodOptional<z.ZodObject<{
608
+ require_mx_record: z.ZodOptional<z.ZodBoolean>;
609
+ block_aliases: z.ZodOptional<z.ZodBoolean>;
610
+ block_free_emails: z.ZodOptional<z.ZodBoolean>;
611
+ block_disposable_emails: z.ZodOptional<z.ZodBoolean>;
612
+ blocklist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
613
+ allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
614
+ }, "strip", z.ZodTypeAny, {
615
+ require_mx_record?: boolean | undefined;
616
+ block_aliases?: boolean | undefined;
617
+ block_free_emails?: boolean | undefined;
618
+ block_disposable_emails?: boolean | undefined;
619
+ blocklist?: string[] | undefined;
620
+ allowlist?: string[] | undefined;
621
+ }, {
622
+ require_mx_record?: boolean | undefined;
623
+ block_aliases?: boolean | undefined;
624
+ block_free_emails?: boolean | undefined;
625
+ block_disposable_emails?: boolean | undefined;
626
+ blocklist?: string[] | undefined;
627
+ allowlist?: string[] | undefined;
628
+ }>>;
629
+ }, "strip", z.ZodTypeAny, {
630
+ email: string;
631
+ rules?: {
632
+ require_mx_record?: boolean | undefined;
633
+ block_aliases?: boolean | undefined;
634
+ block_free_emails?: boolean | undefined;
635
+ block_disposable_emails?: boolean | undefined;
636
+ blocklist?: string[] | undefined;
637
+ allowlist?: string[] | undefined;
638
+ } | undefined;
639
+ }, {
640
+ email: string;
641
+ rules?: {
642
+ require_mx_record?: boolean | undefined;
643
+ block_aliases?: boolean | undefined;
644
+ block_free_emails?: boolean | undefined;
645
+ block_disposable_emails?: boolean | undefined;
646
+ blocklist?: string[] | undefined;
647
+ allowlist?: string[] | undefined;
648
+ } | undefined;
649
+ }>;
650
+ }, "strip", z.ZodTypeAny, {
651
+ params: {
652
+ email: string;
653
+ rules?: {
654
+ require_mx_record?: boolean | undefined;
655
+ block_aliases?: boolean | undefined;
656
+ block_free_emails?: boolean | undefined;
657
+ block_disposable_emails?: boolean | undefined;
658
+ blocklist?: string[] | undefined;
659
+ allowlist?: string[] | undefined;
660
+ } | undefined;
661
+ };
662
+ type: "EMAIL";
663
+ id: string;
664
+ action: "VERIFY_EMAIL";
665
+ alias?: string | undefined;
666
+ allow_failure?: boolean | undefined;
667
+ mask_output?: boolean | undefined;
668
+ }, {
669
+ params: {
670
+ email: string;
671
+ rules?: {
672
+ require_mx_record?: boolean | undefined;
673
+ block_aliases?: boolean | undefined;
674
+ block_free_emails?: boolean | undefined;
675
+ block_disposable_emails?: boolean | undefined;
676
+ blocklist?: string[] | undefined;
677
+ allowlist?: string[] | undefined;
678
+ } | undefined;
679
+ };
680
+ type: "EMAIL";
681
+ id: string;
682
+ action: "VERIFY_EMAIL";
683
+ alias?: string | undefined;
684
+ allow_failure?: boolean | undefined;
685
+ mask_output?: boolean | undefined;
686
+ }>
687
+ ]>, "many">>>;
688
+ } & {
689
+ id: z.ZodString;
690
+ created_at: z.ZodString;
691
+ updated_at: z.ZodString;
692
+ }, "strip", z.ZodTypeAny, {
693
+ created_at: string;
694
+ updated_at: string;
695
+ id: string;
696
+ name: string;
697
+ actions: ({
698
+ params: {
699
+ user_id: string;
700
+ changes: Record<string, any>;
701
+ connection_id?: string | undefined;
702
+ };
703
+ type: "AUTH0";
704
+ id: string;
705
+ action: "UPDATE_USER";
706
+ alias?: string | undefined;
707
+ allow_failure?: boolean | undefined;
708
+ mask_output?: boolean | undefined;
709
+ } | {
710
+ params: {
711
+ email: string;
712
+ rules?: {
713
+ require_mx_record?: boolean | undefined;
714
+ block_aliases?: boolean | undefined;
715
+ block_free_emails?: boolean | undefined;
716
+ block_disposable_emails?: boolean | undefined;
717
+ blocklist?: string[] | undefined;
718
+ allowlist?: string[] | undefined;
719
+ } | undefined;
720
+ };
721
+ type: "EMAIL";
722
+ id: string;
723
+ action: "VERIFY_EMAIL";
724
+ alias?: string | undefined;
725
+ allow_failure?: boolean | undefined;
726
+ mask_output?: boolean | undefined;
727
+ })[];
728
+ }, {
729
+ created_at: string;
730
+ updated_at: string;
731
+ id: string;
732
+ name: string;
733
+ actions?: ({
734
+ params: {
735
+ user_id: string;
736
+ changes: Record<string, any>;
737
+ connection_id?: string | undefined;
738
+ };
739
+ type: "AUTH0";
740
+ id: string;
741
+ action: "UPDATE_USER";
742
+ alias?: string | undefined;
743
+ allow_failure?: boolean | undefined;
744
+ mask_output?: boolean | undefined;
745
+ } | {
746
+ params: {
747
+ email: string;
748
+ rules?: {
749
+ require_mx_record?: boolean | undefined;
750
+ block_aliases?: boolean | undefined;
751
+ block_free_emails?: boolean | undefined;
752
+ block_disposable_emails?: boolean | undefined;
753
+ blocklist?: string[] | undefined;
754
+ allowlist?: string[] | undefined;
755
+ } | undefined;
756
+ };
757
+ type: "EMAIL";
758
+ id: string;
759
+ action: "VERIFY_EMAIL";
760
+ alias?: string | undefined;
761
+ allow_failure?: boolean | undefined;
762
+ mask_output?: boolean | undefined;
763
+ })[] | undefined;
764
+ }>;
765
+ export type Flow = z.infer<typeof flowSchema>;
5
766
  export declare const auth0QuerySchema: z.ZodObject<{
6
767
  page: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, number, string | undefined>;
7
768
  per_page: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, number, string | undefined>;
@@ -15,8 +776,8 @@ export declare const auth0QuerySchema: z.ZodObject<{
15
776
  sort?: string | undefined;
16
777
  q?: string | undefined;
17
778
  }, {
18
- page?: string | undefined;
19
779
  sort?: string | undefined;
780
+ page?: string | undefined;
20
781
  per_page?: string | undefined;
21
782
  include_totals?: string | undefined;
22
783
  q?: string | undefined;
@@ -55,13 +816,13 @@ export declare const baseUserSchema: z.ZodObject<{
55
816
  app_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
56
817
  user_metadata: z.ZodOptional<z.ZodDefault<z.ZodAny>>;
57
818
  }, "strip", z.ZodTypeAny, {
58
- email?: string | undefined;
59
819
  name?: string | undefined;
820
+ user_id?: string | undefined;
821
+ email?: string | undefined;
60
822
  username?: string | undefined;
61
823
  given_name?: string | undefined;
62
824
  phone_number?: string | undefined;
63
825
  family_name?: string | undefined;
64
- user_id?: string | undefined;
65
826
  profileData?: string | undefined;
66
827
  nickname?: string | undefined;
67
828
  picture?: string | undefined;
@@ -70,13 +831,13 @@ export declare const baseUserSchema: z.ZodObject<{
70
831
  app_metadata?: any;
71
832
  user_metadata?: any;
72
833
  }, {
73
- email?: string | undefined;
74
834
  name?: string | undefined;
835
+ user_id?: string | undefined;
836
+ email?: string | undefined;
75
837
  username?: string | undefined;
76
838
  given_name?: string | undefined;
77
839
  phone_number?: string | undefined;
78
840
  family_name?: string | undefined;
79
- user_id?: string | undefined;
80
841
  profileData?: string | undefined;
81
842
  nickname?: string | undefined;
82
843
  picture?: string | undefined;
@@ -112,13 +873,13 @@ export declare const userInsertSchema: z.ZodObject<{
112
873
  }, "strip", z.ZodTypeAny, {
113
874
  email_verified: boolean;
114
875
  connection: string;
115
- email?: string | undefined;
116
876
  name?: string | undefined;
877
+ user_id?: string | undefined;
878
+ email?: string | undefined;
117
879
  username?: string | undefined;
118
880
  given_name?: string | undefined;
119
881
  phone_number?: string | undefined;
120
882
  family_name?: string | undefined;
121
- user_id?: string | undefined;
122
883
  provider?: string | undefined;
123
884
  profileData?: string | undefined;
124
885
  nickname?: string | undefined;
@@ -133,14 +894,14 @@ export declare const userInsertSchema: z.ZodObject<{
133
894
  is_social?: boolean | undefined;
134
895
  }, {
135
896
  connection: string;
897
+ name?: string | undefined;
898
+ user_id?: string | undefined;
136
899
  email?: string | undefined;
137
900
  email_verified?: boolean | undefined;
138
- name?: string | undefined;
139
901
  username?: string | undefined;
140
902
  given_name?: string | undefined;
141
903
  phone_number?: string | undefined;
142
904
  family_name?: string | undefined;
143
- user_id?: string | undefined;
144
905
  provider?: string | undefined;
145
906
  profileData?: string | undefined;
146
907
  nickname?: string | undefined;
@@ -198,8 +959,8 @@ export declare const userSchema: z.ZodObject<{
198
959
  family_name: z.ZodOptional<z.ZodString>;
199
960
  }, z.ZodAny, "strip">>>;
200
961
  }, "strip", z.ZodTypeAny, {
201
- connection: string;
202
962
  user_id: string;
963
+ connection: string;
203
964
  provider: string;
204
965
  isSocial: boolean;
205
966
  access_token?: string | undefined;
@@ -216,8 +977,8 @@ export declare const userSchema: z.ZodObject<{
216
977
  family_name: z.ZodOptional<z.ZodString>;
217
978
  }, z.ZodAny, "strip"> | undefined;
218
979
  }, {
219
- connection: string;
220
980
  user_id: string;
981
+ connection: string;
221
982
  provider: string;
222
983
  isSocial: boolean;
223
984
  access_token?: string | undefined;
@@ -256,14 +1017,14 @@ export declare const userSchema: z.ZodObject<{
256
1017
  }, "strip", z.ZodTypeAny, {
257
1018
  created_at: string;
258
1019
  updated_at: string;
1020
+ user_id: string;
259
1021
  email_verified: boolean;
260
1022
  connection: string;
261
- user_id: string;
262
1023
  provider: string;
263
1024
  is_social: boolean;
264
1025
  login_count: number;
265
- email?: string | undefined;
266
1026
  name?: string | undefined;
1027
+ email?: string | undefined;
267
1028
  username?: string | undefined;
268
1029
  given_name?: string | undefined;
269
1030
  phone_number?: string | undefined;
@@ -279,8 +1040,8 @@ export declare const userSchema: z.ZodObject<{
279
1040
  last_ip?: string | undefined;
280
1041
  last_login?: string | undefined;
281
1042
  identities?: {
282
- connection: string;
283
1043
  user_id: string;
1044
+ connection: string;
284
1045
  provider: string;
285
1046
  isSocial: boolean;
286
1047
  access_token?: string | undefined;
@@ -300,13 +1061,13 @@ export declare const userSchema: z.ZodObject<{
300
1061
  }, {
301
1062
  created_at: string;
302
1063
  updated_at: string;
303
- connection: string;
304
1064
  user_id: string;
1065
+ connection: string;
305
1066
  provider: string;
306
1067
  is_social: boolean;
1068
+ name?: string | undefined;
307
1069
  email?: string | undefined;
308
1070
  email_verified?: boolean | undefined;
309
- name?: string | undefined;
310
1071
  username?: string | undefined;
311
1072
  given_name?: string | undefined;
312
1073
  phone_number?: string | undefined;
@@ -323,8 +1084,8 @@ export declare const userSchema: z.ZodObject<{
323
1084
  last_login?: string | undefined;
324
1085
  login_count?: number | undefined;
325
1086
  identities?: {
326
- connection: string;
327
1087
  user_id: string;
1088
+ connection: string;
328
1089
  provider: string;
329
1090
  isSocial: boolean;
330
1091
  access_token?: string | undefined;
@@ -386,8 +1147,8 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
386
1147
  family_name: z.ZodOptional<z.ZodString>;
387
1148
  }, z.ZodAny, "strip">>>;
388
1149
  }, "strip", z.ZodTypeAny, {
389
- connection: string;
390
1150
  user_id: string;
1151
+ connection: string;
391
1152
  provider: string;
392
1153
  isSocial: boolean;
393
1154
  access_token?: string | undefined;
@@ -404,8 +1165,8 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
404
1165
  family_name: z.ZodOptional<z.ZodString>;
405
1166
  }, z.ZodAny, "strip"> | undefined;
406
1167
  }, {
407
- connection: string;
408
1168
  user_id: string;
1169
+ connection: string;
409
1170
  provider: string;
410
1171
  isSocial: boolean;
411
1172
  access_token?: string | undefined;
@@ -444,14 +1205,14 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
444
1205
  }, "strip", z.ZodTypeAny, {
445
1206
  created_at: string;
446
1207
  updated_at: string;
1208
+ user_id: string;
447
1209
  email_verified: boolean;
448
1210
  connection: string;
449
- user_id: string;
450
1211
  provider: string;
451
1212
  is_social: boolean;
452
1213
  login_count: number;
453
- email?: string | undefined;
454
1214
  name?: string | undefined;
1215
+ email?: string | undefined;
455
1216
  username?: string | undefined;
456
1217
  given_name?: string | undefined;
457
1218
  phone_number?: string | undefined;
@@ -467,8 +1228,8 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
467
1228
  last_ip?: string | undefined;
468
1229
  last_login?: string | undefined;
469
1230
  identities?: {
470
- connection: string;
471
1231
  user_id: string;
1232
+ connection: string;
472
1233
  provider: string;
473
1234
  isSocial: boolean;
474
1235
  access_token?: string | undefined;
@@ -488,13 +1249,13 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
488
1249
  }, {
489
1250
  created_at: string;
490
1251
  updated_at: string;
491
- connection: string;
492
1252
  user_id: string;
1253
+ connection: string;
493
1254
  provider: string;
494
1255
  is_social: boolean;
1256
+ name?: string | undefined;
495
1257
  email?: string | undefined;
496
1258
  email_verified?: boolean | undefined;
497
- name?: string | undefined;
498
1259
  username?: string | undefined;
499
1260
  given_name?: string | undefined;
500
1261
  phone_number?: string | undefined;
@@ -511,8 +1272,8 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
511
1272
  last_login?: string | undefined;
512
1273
  login_count?: number | undefined;
513
1274
  identities?: {
514
- connection: string;
515
1275
  user_id: string;
1276
+ connection: string;
516
1277
  provider: string;
517
1278
  isSocial: boolean;
518
1279
  access_token?: string | undefined;
@@ -1041,9 +1802,9 @@ export declare const clientGrantSchema: z.ZodObject<{
1041
1802
  authorization_details_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1042
1803
  id: z.ZodString;
1043
1804
  }, "strip", z.ZodTypeAny, {
1805
+ id: string;
1044
1806
  client_id: string;
1045
1807
  audience: string;
1046
- id: string;
1047
1808
  created_at?: string | undefined;
1048
1809
  updated_at?: string | undefined;
1049
1810
  organization_usage?: "deny" | "allow" | "require" | undefined;
@@ -1053,9 +1814,9 @@ export declare const clientGrantSchema: z.ZodObject<{
1053
1814
  subject_type?: "client" | "user" | undefined;
1054
1815
  authorization_details_types?: string[] | undefined;
1055
1816
  }, {
1817
+ id: string;
1056
1818
  client_id: string;
1057
1819
  audience: string;
1058
- id: string;
1059
1820
  created_at?: string | undefined;
1060
1821
  updated_at?: string | undefined;
1061
1822
  organization_usage?: "deny" | "allow" | "require" | undefined;
@@ -1086,9 +1847,9 @@ export declare const clientGrantListSchema: z.ZodArray<z.ZodObject<{
1086
1847
  authorization_details_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1087
1848
  id: z.ZodString;
1088
1849
  }, "strip", z.ZodTypeAny, {
1850
+ id: string;
1089
1851
  client_id: string;
1090
1852
  audience: string;
1091
- id: string;
1092
1853
  created_at?: string | undefined;
1093
1854
  updated_at?: string | undefined;
1094
1855
  organization_usage?: "deny" | "allow" | "require" | undefined;
@@ -1098,9 +1859,9 @@ export declare const clientGrantListSchema: z.ZodArray<z.ZodObject<{
1098
1859
  subject_type?: "client" | "user" | undefined;
1099
1860
  authorization_details_types?: string[] | undefined;
1100
1861
  }, {
1862
+ id: string;
1101
1863
  client_id: string;
1102
1864
  audience: string;
1103
- id: string;
1104
1865
  created_at?: string | undefined;
1105
1866
  updated_at?: string | undefined;
1106
1867
  organization_usage?: "deny" | "allow" | "require" | undefined;
@@ -8514,8 +9275,8 @@ export declare const legacyClientSchema: z.ZodObject<{
8514
9275
  }, "strip", z.ZodTypeAny, {
8515
9276
  created_at: string;
8516
9277
  updated_at: string;
8517
- audience: string;
8518
9278
  id: string;
9279
+ audience: string;
8519
9280
  friendly_name: string;
8520
9281
  sender_email: string;
8521
9282
  sender_name: string;
@@ -8614,8 +9375,8 @@ export declare const legacyClientSchema: z.ZodObject<{
8614
9375
  }, {
8615
9376
  created_at: string | null;
8616
9377
  updated_at: string | null;
8617
- audience: string;
8618
9378
  id: string;
9379
+ audience: string;
8619
9380
  friendly_name: string;
8620
9381
  sender_email: string;
8621
9382
  sender_name: string;
@@ -8788,6 +9549,8 @@ export declare const legacyClientSchema: z.ZodObject<{
8788
9549
  show_as_button: z.ZodOptional<z.ZodBoolean>;
8789
9550
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8790
9551
  }, "strip", z.ZodTypeAny, {
9552
+ created_at: string;
9553
+ updated_at: string;
8791
9554
  options: {
8792
9555
  provider?: string | undefined;
8793
9556
  client_id?: string | undefined;
@@ -8809,8 +9572,6 @@ export declare const legacyClientSchema: z.ZodObject<{
8809
9572
  twilio_token?: string | undefined;
8810
9573
  icon_url?: string | undefined;
8811
9574
  };
8812
- created_at: string;
8813
- updated_at: string;
8814
9575
  name: string;
8815
9576
  strategy: string;
8816
9577
  id?: string | undefined;
@@ -8957,6 +9718,8 @@ export declare const legacyClientSchema: z.ZodObject<{
8957
9718
  is_first_party: boolean;
8958
9719
  oidc_conformant: boolean;
8959
9720
  connections: {
9721
+ created_at: string;
9722
+ updated_at: string;
8960
9723
  options: {
8961
9724
  provider?: string | undefined;
8962
9725
  client_id?: string | undefined;
@@ -8978,8 +9741,6 @@ export declare const legacyClientSchema: z.ZodObject<{
8978
9741
  twilio_token?: string | undefined;
8979
9742
  icon_url?: string | undefined;
8980
9743
  };
8981
- created_at: string;
8982
- updated_at: string;
8983
9744
  name: string;
8984
9745
  strategy: string;
8985
9746
  id?: string | undefined;
@@ -9000,8 +9761,8 @@ export declare const legacyClientSchema: z.ZodObject<{
9000
9761
  tenant: {
9001
9762
  created_at: string;
9002
9763
  updated_at: string;
9003
- audience: string;
9004
9764
  id: string;
9765
+ audience: string;
9005
9766
  friendly_name: string;
9006
9767
  sender_email: string;
9007
9768
  sender_name: string;
@@ -9176,8 +9937,8 @@ export declare const legacyClientSchema: z.ZodObject<{
9176
9937
  tenant: {
9177
9938
  created_at: string | null;
9178
9939
  updated_at: string | null;
9179
- audience: string;
9180
9940
  id: string;
9941
+ audience: string;
9181
9942
  friendly_name: string;
9182
9943
  sender_email: string;
9183
9944
  sender_name: string;
@@ -9358,13 +10119,13 @@ export declare const codeInsertSchema: z.ZodObject<{
9358
10119
  login_id: string;
9359
10120
  code_type: "password_reset" | "email_verification" | "otp" | "authorization_code" | "oauth2_state" | "ticket";
9360
10121
  expires_at: string;
10122
+ connection_id?: string | undefined;
9361
10123
  user_id?: string | undefined;
9362
10124
  redirect_uri?: string | undefined;
9363
10125
  state?: string | undefined;
9364
10126
  nonce?: string | undefined;
9365
10127
  code_challenge_method?: "S256" | "plain" | undefined;
9366
10128
  code_challenge?: string | undefined;
9367
- connection_id?: string | undefined;
9368
10129
  code_verifier?: string | undefined;
9369
10130
  used_at?: string | undefined;
9370
10131
  }, {
@@ -9372,13 +10133,13 @@ export declare const codeInsertSchema: z.ZodObject<{
9372
10133
  login_id: string;
9373
10134
  code_type: "password_reset" | "email_verification" | "otp" | "authorization_code" | "oauth2_state" | "ticket";
9374
10135
  expires_at: string;
10136
+ connection_id?: string | undefined;
9375
10137
  user_id?: string | undefined;
9376
10138
  redirect_uri?: string | undefined;
9377
10139
  state?: string | undefined;
9378
10140
  nonce?: string | undefined;
9379
10141
  code_challenge_method?: "S256" | "plain" | undefined;
9380
10142
  code_challenge?: string | undefined;
9381
- connection_id?: string | undefined;
9382
10143
  code_verifier?: string | undefined;
9383
10144
  used_at?: string | undefined;
9384
10145
  }>;
@@ -9414,13 +10175,13 @@ export declare const codeSchema: z.ZodObject<{
9414
10175
  login_id: string;
9415
10176
  code_type: "password_reset" | "email_verification" | "otp" | "authorization_code" | "oauth2_state" | "ticket";
9416
10177
  expires_at: string;
10178
+ connection_id?: string | undefined;
9417
10179
  user_id?: string | undefined;
9418
10180
  redirect_uri?: string | undefined;
9419
10181
  state?: string | undefined;
9420
10182
  nonce?: string | undefined;
9421
10183
  code_challenge_method?: "S256" | "plain" | undefined;
9422
10184
  code_challenge?: string | undefined;
9423
- connection_id?: string | undefined;
9424
10185
  code_verifier?: string | undefined;
9425
10186
  used_at?: string | undefined;
9426
10187
  }, {
@@ -9429,13 +10190,13 @@ export declare const codeSchema: z.ZodObject<{
9429
10190
  login_id: string;
9430
10191
  code_type: "password_reset" | "email_verification" | "otp" | "authorization_code" | "oauth2_state" | "ticket";
9431
10192
  expires_at: string;
10193
+ connection_id?: string | undefined;
9432
10194
  user_id?: string | undefined;
9433
10195
  redirect_uri?: string | undefined;
9434
10196
  state?: string | undefined;
9435
10197
  nonce?: string | undefined;
9436
10198
  code_challenge_method?: "S256" | "plain" | undefined;
9437
10199
  code_challenge?: string | undefined;
9438
- connection_id?: string | undefined;
9439
10200
  code_verifier?: string | undefined;
9440
10201
  used_at?: string | undefined;
9441
10202
  }>;
@@ -9715,6 +10476,8 @@ export declare const connectionSchema: z.ZodObject<{
9715
10476
  show_as_button: z.ZodOptional<z.ZodBoolean>;
9716
10477
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
9717
10478
  }, "strip", z.ZodTypeAny, {
10479
+ created_at: string;
10480
+ updated_at: string;
9718
10481
  options: {
9719
10482
  provider?: string | undefined;
9720
10483
  client_id?: string | undefined;
@@ -9736,8 +10499,6 @@ export declare const connectionSchema: z.ZodObject<{
9736
10499
  twilio_token?: string | undefined;
9737
10500
  icon_url?: string | undefined;
9738
10501
  };
9739
- created_at: string;
9740
- updated_at: string;
9741
10502
  name: string;
9742
10503
  strategy: string;
9743
10504
  id?: string | undefined;
@@ -10482,6 +11243,7 @@ export declare const formInsertSchema: z.ZodObject<{
10482
11243
  }, "strip", z.ZodTypeAny, {
10483
11244
  type: "ROUTER";
10484
11245
  id: string;
11246
+ alias: string;
10485
11247
  config: {
10486
11248
  rules: {
10487
11249
  id: string;
@@ -10495,10 +11257,10 @@ export declare const formInsertSchema: z.ZodObject<{
10495
11257
  x: number;
10496
11258
  y: number;
10497
11259
  };
10498
- alias: string;
10499
11260
  }, {
10500
11261
  type: "ROUTER";
10501
11262
  id: string;
11263
+ alias: string;
10502
11264
  config: {
10503
11265
  rules: {
10504
11266
  id: string;
@@ -10512,7 +11274,6 @@ export declare const formInsertSchema: z.ZodObject<{
10512
11274
  x: number;
10513
11275
  y: number;
10514
11276
  };
10515
- alias: string;
10516
11277
  }>,
10517
11278
  z.ZodObject<{
10518
11279
  id: z.ZodString;
@@ -11272,6 +12033,9 @@ export declare const formInsertSchema: z.ZodObject<{
11272
12033
  }>>;
11273
12034
  }, "strip", z.ZodTypeAny, {
11274
12035
  name: string;
12036
+ style?: {
12037
+ css?: string | undefined;
12038
+ } | undefined;
11275
12039
  start?: {
11276
12040
  coordinates?: {
11277
12041
  x: number;
@@ -11283,9 +12047,6 @@ export declare const formInsertSchema: z.ZodObject<{
11283
12047
  key: string;
11284
12048
  }[] | undefined;
11285
12049
  } | undefined;
11286
- style?: {
11287
- css?: string | undefined;
11288
- } | undefined;
11289
12050
  languages?: {
11290
12051
  default?: string | undefined;
11291
12052
  primary?: string | undefined;
@@ -11305,6 +12066,7 @@ export declare const formInsertSchema: z.ZodObject<{
11305
12066
  } | {
11306
12067
  type: "ROUTER";
11307
12068
  id: string;
12069
+ alias: string;
11308
12070
  config: {
11309
12071
  rules: {
11310
12072
  id: string;
@@ -11318,7 +12080,6 @@ export declare const formInsertSchema: z.ZodObject<{
11318
12080
  x: number;
11319
12081
  y: number;
11320
12082
  };
11321
- alias: string;
11322
12083
  } | {
11323
12084
  type: "STEP";
11324
12085
  id: string;
@@ -11430,6 +12191,9 @@ export declare const formInsertSchema: z.ZodObject<{
11430
12191
  translations?: Record<string, any> | undefined;
11431
12192
  }, {
11432
12193
  name: string;
12194
+ style?: {
12195
+ css?: string | undefined;
12196
+ } | undefined;
11433
12197
  start?: {
11434
12198
  coordinates?: {
11435
12199
  x: number;
@@ -11441,9 +12205,6 @@ export declare const formInsertSchema: z.ZodObject<{
11441
12205
  key: string;
11442
12206
  }[] | undefined;
11443
12207
  } | undefined;
11444
- style?: {
11445
- css?: string | undefined;
11446
- } | undefined;
11447
12208
  languages?: {
11448
12209
  default?: string | undefined;
11449
12210
  primary?: string | undefined;
@@ -11463,6 +12224,7 @@ export declare const formInsertSchema: z.ZodObject<{
11463
12224
  } | {
11464
12225
  type: "ROUTER";
11465
12226
  id: string;
12227
+ alias: string;
11466
12228
  config: {
11467
12229
  rules: {
11468
12230
  id: string;
@@ -11476,7 +12238,6 @@ export declare const formInsertSchema: z.ZodObject<{
11476
12238
  x: number;
11477
12239
  y: number;
11478
12240
  };
11479
- alias: string;
11480
12241
  } | {
11481
12242
  type: "STEP";
11482
12243
  id: string;
@@ -11717,6 +12478,7 @@ export declare const formSchema: z.ZodObject<{
11717
12478
  }, "strip", z.ZodTypeAny, {
11718
12479
  type: "ROUTER";
11719
12480
  id: string;
12481
+ alias: string;
11720
12482
  config: {
11721
12483
  rules: {
11722
12484
  id: string;
@@ -11730,10 +12492,10 @@ export declare const formSchema: z.ZodObject<{
11730
12492
  x: number;
11731
12493
  y: number;
11732
12494
  };
11733
- alias: string;
11734
12495
  }, {
11735
12496
  type: "ROUTER";
11736
12497
  id: string;
12498
+ alias: string;
11737
12499
  config: {
11738
12500
  rules: {
11739
12501
  id: string;
@@ -11747,7 +12509,6 @@ export declare const formSchema: z.ZodObject<{
11747
12509
  x: number;
11748
12510
  y: number;
11749
12511
  };
11750
- alias: string;
11751
12512
  }>,
11752
12513
  z.ZodObject<{
11753
12514
  id: z.ZodString;
@@ -12510,8 +13271,11 @@ export declare const formSchema: z.ZodObject<{
12510
13271
  }, "strip", z.ZodTypeAny, {
12511
13272
  created_at: string;
12512
13273
  updated_at: string;
12513
- name: string;
12514
13274
  id: string;
13275
+ name: string;
13276
+ style?: {
13277
+ css?: string | undefined;
13278
+ } | undefined;
12515
13279
  start?: {
12516
13280
  coordinates?: {
12517
13281
  x: number;
@@ -12523,9 +13287,6 @@ export declare const formSchema: z.ZodObject<{
12523
13287
  key: string;
12524
13288
  }[] | undefined;
12525
13289
  } | undefined;
12526
- style?: {
12527
- css?: string | undefined;
12528
- } | undefined;
12529
13290
  languages?: {
12530
13291
  default?: string | undefined;
12531
13292
  primary?: string | undefined;
@@ -12545,6 +13306,7 @@ export declare const formSchema: z.ZodObject<{
12545
13306
  } | {
12546
13307
  type: "ROUTER";
12547
13308
  id: string;
13309
+ alias: string;
12548
13310
  config: {
12549
13311
  rules: {
12550
13312
  id: string;
@@ -12558,7 +13320,6 @@ export declare const formSchema: z.ZodObject<{
12558
13320
  x: number;
12559
13321
  y: number;
12560
13322
  };
12561
- alias: string;
12562
13323
  } | {
12563
13324
  type: "STEP";
12564
13325
  id: string;
@@ -12671,8 +13432,11 @@ export declare const formSchema: z.ZodObject<{
12671
13432
  }, {
12672
13433
  created_at: string;
12673
13434
  updated_at: string;
12674
- name: string;
12675
13435
  id: string;
13436
+ name: string;
13437
+ style?: {
13438
+ css?: string | undefined;
13439
+ } | undefined;
12676
13440
  start?: {
12677
13441
  coordinates?: {
12678
13442
  x: number;
@@ -12684,9 +13448,6 @@ export declare const formSchema: z.ZodObject<{
12684
13448
  key: string;
12685
13449
  }[] | undefined;
12686
13450
  } | undefined;
12687
- style?: {
12688
- css?: string | undefined;
12689
- } | undefined;
12690
13451
  languages?: {
12691
13452
  default?: string | undefined;
12692
13453
  primary?: string | undefined;
@@ -12706,6 +13467,7 @@ export declare const formSchema: z.ZodObject<{
12706
13467
  } | {
12707
13468
  type: "ROUTER";
12708
13469
  id: string;
13470
+ alias: string;
12709
13471
  config: {
12710
13472
  rules: {
12711
13473
  id: string;
@@ -12719,7 +13481,6 @@ export declare const formSchema: z.ZodObject<{
12719
13481
  x: number;
12720
13482
  y: number;
12721
13483
  };
12722
- alias: string;
12723
13484
  } | {
12724
13485
  type: "STEP";
12725
13486
  id: string;
@@ -13030,8 +13791,8 @@ export declare const identitySchema: z.ZodObject<{
13030
13791
  family_name: z.ZodOptional<z.ZodString>;
13031
13792
  }, z.ZodAny, "strip">>>;
13032
13793
  }, "strip", z.ZodTypeAny, {
13033
- connection: string;
13034
13794
  user_id: string;
13795
+ connection: string;
13035
13796
  provider: string;
13036
13797
  isSocial: boolean;
13037
13798
  access_token?: string | undefined;
@@ -13048,8 +13809,8 @@ export declare const identitySchema: z.ZodObject<{
13048
13809
  family_name: z.ZodOptional<z.ZodString>;
13049
13810
  }, z.ZodAny, "strip"> | undefined;
13050
13811
  }, {
13051
- connection: string;
13052
13812
  user_id: string;
13813
+ connection: string;
13053
13814
  provider: string;
13054
13815
  isSocial: boolean;
13055
13816
  access_token?: string | undefined;
@@ -13117,9 +13878,9 @@ export declare const inviteInsertSchema: z.ZodObject<{
13117
13878
  email?: string | undefined;
13118
13879
  };
13119
13880
  invitation_url: string;
13881
+ connection_id?: string | undefined;
13120
13882
  app_metadata?: Record<string, any> | undefined;
13121
13883
  user_metadata?: Record<string, any> | undefined;
13122
- connection_id?: string | undefined;
13123
13884
  ttl_sec?: number | undefined;
13124
13885
  roles?: string[] | undefined;
13125
13886
  send_invitation_email?: boolean | undefined;
@@ -13133,9 +13894,9 @@ export declare const inviteInsertSchema: z.ZodObject<{
13133
13894
  email?: string | undefined;
13134
13895
  };
13135
13896
  invitation_url: string;
13897
+ connection_id?: string | undefined;
13136
13898
  app_metadata?: Record<string, any> | undefined;
13137
13899
  user_metadata?: Record<string, any> | undefined;
13138
- connection_id?: string | undefined;
13139
13900
  ttl_sec?: number | undefined;
13140
13901
  roles?: string[] | undefined;
13141
13902
  send_invitation_email?: boolean | undefined;
@@ -13172,8 +13933,8 @@ export declare const inviteSchema: z.ZodObject<{
13172
13933
  send_invitation_email: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
13173
13934
  }, "strip", z.ZodTypeAny, {
13174
13935
  created_at: string;
13175
- client_id: string;
13176
13936
  id: string;
13937
+ client_id: string;
13177
13938
  expires_at: string;
13178
13939
  organization_id: string;
13179
13940
  inviter: {
@@ -13183,17 +13944,17 @@ export declare const inviteSchema: z.ZodObject<{
13183
13944
  email?: string | undefined;
13184
13945
  };
13185
13946
  invitation_url: string;
13947
+ connection_id?: string | undefined;
13186
13948
  app_metadata?: Record<string, any> | undefined;
13187
13949
  user_metadata?: Record<string, any> | undefined;
13188
- connection_id?: string | undefined;
13189
13950
  ttl_sec?: number | undefined;
13190
13951
  roles?: string[] | undefined;
13191
13952
  send_invitation_email?: boolean | undefined;
13192
13953
  ticket_id?: string | undefined;
13193
13954
  }, {
13194
13955
  created_at: string;
13195
- client_id: string;
13196
13956
  id: string;
13957
+ client_id: string;
13197
13958
  expires_at: string;
13198
13959
  organization_id: string;
13199
13960
  inviter: {
@@ -13203,9 +13964,9 @@ export declare const inviteSchema: z.ZodObject<{
13203
13964
  email?: string | undefined;
13204
13965
  };
13205
13966
  invitation_url: string;
13967
+ connection_id?: string | undefined;
13206
13968
  app_metadata?: Record<string, any> | undefined;
13207
13969
  user_metadata?: Record<string, any> | undefined;
13208
- connection_id?: string | undefined;
13209
13970
  ttl_sec?: number | undefined;
13210
13971
  roles?: string[] | undefined;
13211
13972
  send_invitation_email?: boolean | undefined;
@@ -13917,13 +14678,13 @@ export declare const logInsertSchema: z.ZodObject<{
13917
14678
  date: string;
13918
14679
  isMobile: boolean;
13919
14680
  description?: string | undefined;
13920
- connection?: string | undefined;
14681
+ connection_id?: string | undefined;
13921
14682
  user_id?: string | undefined;
14683
+ connection?: string | undefined;
13922
14684
  client_id?: string | undefined;
13923
14685
  audience?: string | undefined;
13924
14686
  scope?: string | undefined;
13925
14687
  strategy?: string | undefined;
13926
- connection_id?: string | undefined;
13927
14688
  ip?: string | undefined;
13928
14689
  user_agent?: string | undefined;
13929
14690
  details?: any;
@@ -13952,13 +14713,13 @@ export declare const logInsertSchema: z.ZodObject<{
13952
14713
  date: string;
13953
14714
  isMobile: boolean;
13954
14715
  description?: string | undefined;
13955
- connection?: string | undefined;
14716
+ connection_id?: string | undefined;
13956
14717
  user_id?: string | undefined;
14718
+ connection?: string | undefined;
13957
14719
  client_id?: string | undefined;
13958
14720
  audience?: string | undefined;
13959
14721
  scope?: string | undefined;
13960
14722
  strategy?: string | undefined;
13961
- connection_id?: string | undefined;
13962
14723
  ip?: string | undefined;
13963
14724
  user_agent?: string | undefined;
13964
14725
  details?: any;
@@ -14055,13 +14816,13 @@ export declare const logSchema: z.ZodObject<{
14055
14816
  isMobile: boolean;
14056
14817
  log_id: string;
14057
14818
  description?: string | undefined;
14058
- connection?: string | undefined;
14819
+ connection_id?: string | undefined;
14059
14820
  user_id?: string | undefined;
14821
+ connection?: string | undefined;
14060
14822
  client_id?: string | undefined;
14061
14823
  audience?: string | undefined;
14062
14824
  scope?: string | undefined;
14063
14825
  strategy?: string | undefined;
14064
- connection_id?: string | undefined;
14065
14826
  ip?: string | undefined;
14066
14827
  user_agent?: string | undefined;
14067
14828
  details?: any;
@@ -14090,13 +14851,13 @@ export declare const logSchema: z.ZodObject<{
14090
14851
  isMobile: boolean;
14091
14852
  log_id: string;
14092
14853
  description?: string | undefined;
14093
- connection?: string | undefined;
14854
+ connection_id?: string | undefined;
14094
14855
  user_id?: string | undefined;
14856
+ connection?: string | undefined;
14095
14857
  client_id?: string | undefined;
14096
14858
  audience?: string | undefined;
14097
14859
  scope?: string | undefined;
14098
14860
  strategy?: string | undefined;
14099
- connection_id?: string | undefined;
14100
14861
  ip?: string | undefined;
14101
14862
  user_agent?: string | undefined;
14102
14863
  details?: any;
@@ -14157,19 +14918,19 @@ export declare const passwordSchema: z.ZodObject<{
14157
14918
  created_at: z.ZodString;
14158
14919
  updated_at: z.ZodString;
14159
14920
  }, "strip", z.ZodTypeAny, {
14160
- password: string;
14161
14921
  created_at: string;
14162
14922
  updated_at: string;
14163
- user_id: string;
14923
+ password: string;
14164
14924
  id: string;
14925
+ user_id: string;
14165
14926
  algorithm: "bcrypt" | "argon2id";
14166
14927
  is_current: boolean;
14167
14928
  }, {
14168
- password: string;
14169
14929
  created_at: string;
14170
14930
  updated_at: string;
14171
- user_id: string;
14931
+ password: string;
14172
14932
  id: string;
14933
+ user_id: string;
14173
14934
  algorithm?: "bcrypt" | "argon2id" | undefined;
14174
14935
  is_current?: boolean | undefined;
14175
14936
  }>;
@@ -14206,8 +14967,8 @@ export declare const sessionInsertSchema: z.ZodObject<{
14206
14967
  }>;
14207
14968
  clients: z.ZodArray<z.ZodString, "many">;
14208
14969
  }, "strip", z.ZodTypeAny, {
14209
- user_id: string;
14210
14970
  id: string;
14971
+ user_id: string;
14211
14972
  clients: string[];
14212
14973
  login_session_id: string;
14213
14974
  device: {
@@ -14223,8 +14984,8 @@ export declare const sessionInsertSchema: z.ZodObject<{
14223
14984
  revoked_at?: string | undefined;
14224
14985
  idle_expires_at?: string | undefined;
14225
14986
  }, {
14226
- user_id: string;
14227
14987
  id: string;
14988
+ user_id: string;
14228
14989
  clients: string[];
14229
14990
  login_session_id: string;
14230
14991
  device: {
@@ -14279,8 +15040,8 @@ export declare const sessionSchema: z.ZodObject<{
14279
15040
  }, "strip", z.ZodTypeAny, {
14280
15041
  created_at: string;
14281
15042
  updated_at: string;
14282
- user_id: string;
14283
15043
  id: string;
15044
+ user_id: string;
14284
15045
  clients: string[];
14285
15046
  login_session_id: string;
14286
15047
  device: {
@@ -14300,8 +15061,8 @@ export declare const sessionSchema: z.ZodObject<{
14300
15061
  }, {
14301
15062
  created_at: string;
14302
15063
  updated_at: string;
14303
- user_id: string;
14304
15064
  id: string;
15065
+ user_id: string;
14305
15066
  clients: string[];
14306
15067
  login_session_id: string;
14307
15068
  device: {
@@ -14609,12 +15370,12 @@ export declare const tenantInsertSchema: z.ZodObject<{
14609
15370
  friendly_name: string;
14610
15371
  sender_email: string;
14611
15372
  sender_name: string;
15373
+ id?: string | undefined;
14612
15374
  allowed_logout_urls?: string[] | undefined;
14613
15375
  oidc_logout?: {
14614
15376
  rp_logout_end_session_endpoint_discovery?: boolean | undefined;
14615
15377
  } | undefined;
14616
15378
  default_organization?: string | undefined;
14617
- id?: string | undefined;
14618
15379
  picture_url?: string | undefined;
14619
15380
  support_email?: string | undefined;
14620
15381
  support_url?: string | undefined;
@@ -14707,12 +15468,12 @@ export declare const tenantInsertSchema: z.ZodObject<{
14707
15468
  friendly_name: string;
14708
15469
  sender_email: string;
14709
15470
  sender_name: string;
15471
+ id?: string | undefined;
14710
15472
  allowed_logout_urls?: string[] | undefined;
14711
15473
  oidc_logout?: {
14712
15474
  rp_logout_end_session_endpoint_discovery?: boolean | undefined;
14713
15475
  } | undefined;
14714
15476
  default_organization?: string | undefined;
14715
- id?: string | undefined;
14716
15477
  picture_url?: string | undefined;
14717
15478
  support_email?: string | undefined;
14718
15479
  support_url?: string | undefined;
@@ -15040,8 +15801,8 @@ export declare const tenantSchema: z.ZodObject<{
15040
15801
  }, "strip", z.ZodTypeAny, {
15041
15802
  created_at: string;
15042
15803
  updated_at: string;
15043
- audience: string;
15044
15804
  id: string;
15805
+ audience: string;
15045
15806
  friendly_name: string;
15046
15807
  sender_email: string;
15047
15808
  sender_name: string;
@@ -15140,8 +15901,8 @@ export declare const tenantSchema: z.ZodObject<{
15140
15901
  }, {
15141
15902
  created_at: string | null;
15142
15903
  updated_at: string | null;
15143
- audience: string;
15144
15904
  id: string;
15905
+ audience: string;
15145
15906
  friendly_name: string;
15146
15907
  sender_email: string;
15147
15908
  sender_name: string;
@@ -16612,9 +17373,9 @@ export declare const refreshTokenInsertSchema: z.ZodObject<{
16612
17373
  }>, "many">;
16613
17374
  rotating: z.ZodBoolean;
16614
17375
  }, "strip", z.ZodTypeAny, {
17376
+ id: string;
16615
17377
  user_id: string;
16616
17378
  client_id: string;
16617
- id: string;
16618
17379
  session_id: string;
16619
17380
  device: {
16620
17381
  last_ip: string;
@@ -16633,9 +17394,9 @@ export declare const refreshTokenInsertSchema: z.ZodObject<{
16633
17394
  idle_expires_at?: string | undefined;
16634
17395
  last_exchanged_at?: string | undefined;
16635
17396
  }, {
17397
+ id: string;
16636
17398
  user_id: string;
16637
17399
  client_id: string;
16638
- id: string;
16639
17400
  session_id: string;
16640
17401
  device: {
16641
17402
  last_ip: string;
@@ -16699,9 +17460,9 @@ export declare const refreshTokenSchema: z.ZodObject<{
16699
17460
  created_at: z.ZodString;
16700
17461
  }, "strip", z.ZodTypeAny, {
16701
17462
  created_at: string;
17463
+ id: string;
16702
17464
  user_id: string;
16703
17465
  client_id: string;
16704
- id: string;
16705
17466
  session_id: string;
16706
17467
  device: {
16707
17468
  last_ip: string;
@@ -16721,9 +17482,9 @@ export declare const refreshTokenSchema: z.ZodObject<{
16721
17482
  last_exchanged_at?: string | undefined;
16722
17483
  }, {
16723
17484
  created_at: string;
17485
+ id: string;
16724
17486
  user_id: string;
16725
17487
  client_id: string;
16726
- id: string;
16727
17488
  session_id: string;
16728
17489
  device: {
16729
17490
  last_ip: string;
@@ -16989,6 +17750,8 @@ export declare const resourceServerSchema: z.ZodObject<{
16989
17750
  }, "strip", z.ZodTypeAny, {
16990
17751
  name: string;
16991
17752
  identifier: string;
17753
+ created_at?: string | undefined;
17754
+ updated_at?: string | undefined;
16992
17755
  options?: {
16993
17756
  mtls?: {
16994
17757
  bound_access_tokens?: boolean | undefined;
@@ -17000,8 +17763,6 @@ export declare const resourceServerSchema: z.ZodObject<{
17000
17763
  persist_client_authorization?: boolean | undefined;
17001
17764
  enable_introspection_endpoint?: boolean | undefined;
17002
17765
  } | undefined;
17003
- created_at?: string | undefined;
17004
- updated_at?: string | undefined;
17005
17766
  id?: string | undefined;
17006
17767
  scopes?: {
17007
17768
  value: string;
@@ -17017,6 +17778,8 @@ export declare const resourceServerSchema: z.ZodObject<{
17017
17778
  }, {
17018
17779
  name: string;
17019
17780
  identifier: string;
17781
+ created_at?: string | undefined;
17782
+ updated_at?: string | undefined;
17020
17783
  options?: {
17021
17784
  mtls?: {
17022
17785
  bound_access_tokens?: boolean | undefined;
@@ -17028,8 +17791,6 @@ export declare const resourceServerSchema: z.ZodObject<{
17028
17791
  persist_client_authorization?: boolean | undefined;
17029
17792
  enable_introspection_endpoint?: boolean | undefined;
17030
17793
  } | undefined;
17031
- created_at?: string | undefined;
17032
- updated_at?: string | undefined;
17033
17794
  id?: string | undefined;
17034
17795
  scopes?: {
17035
17796
  value: string;
@@ -17108,6 +17869,8 @@ export declare const resourceServerListSchema: z.ZodArray<z.ZodObject<{
17108
17869
  }, "strip", z.ZodTypeAny, {
17109
17870
  name: string;
17110
17871
  identifier: string;
17872
+ created_at?: string | undefined;
17873
+ updated_at?: string | undefined;
17111
17874
  options?: {
17112
17875
  mtls?: {
17113
17876
  bound_access_tokens?: boolean | undefined;
@@ -17119,8 +17882,6 @@ export declare const resourceServerListSchema: z.ZodArray<z.ZodObject<{
17119
17882
  persist_client_authorization?: boolean | undefined;
17120
17883
  enable_introspection_endpoint?: boolean | undefined;
17121
17884
  } | undefined;
17122
- created_at?: string | undefined;
17123
- updated_at?: string | undefined;
17124
17885
  id?: string | undefined;
17125
17886
  scopes?: {
17126
17887
  value: string;
@@ -17136,6 +17897,8 @@ export declare const resourceServerListSchema: z.ZodArray<z.ZodObject<{
17136
17897
  }, {
17137
17898
  name: string;
17138
17899
  identifier: string;
17900
+ created_at?: string | undefined;
17901
+ updated_at?: string | undefined;
17139
17902
  options?: {
17140
17903
  mtls?: {
17141
17904
  bound_access_tokens?: boolean | undefined;
@@ -17147,8 +17910,6 @@ export declare const resourceServerListSchema: z.ZodArray<z.ZodObject<{
17147
17910
  persist_client_authorization?: boolean | undefined;
17148
17911
  enable_introspection_endpoint?: boolean | undefined;
17149
17912
  } | undefined;
17150
- created_at?: string | undefined;
17151
- updated_at?: string | undefined;
17152
17913
  id?: string | undefined;
17153
17914
  scopes?: {
17154
17915
  value: string;
@@ -17287,16 +18048,16 @@ export declare const userPermissionWithDetailsSchema: z.ZodObject<{
17287
18048
  resource_server_identifier: string;
17288
18049
  permission_name: string;
17289
18050
  resource_server_name: string;
17290
- description?: string | null | undefined;
17291
18051
  created_at?: string | undefined;
18052
+ description?: string | null | undefined;
17292
18053
  organization_id?: string | undefined;
17293
18054
  }, {
17294
18055
  user_id: string;
17295
18056
  resource_server_identifier: string;
17296
18057
  permission_name: string;
17297
18058
  resource_server_name: string;
17298
- description?: string | null | undefined;
17299
18059
  created_at?: string | undefined;
18060
+ description?: string | null | undefined;
17300
18061
  organization_id?: string | undefined;
17301
18062
  }>;
17302
18063
  export type UserPermissionWithDetails = z.infer<typeof userPermissionWithDetailsSchema>;
@@ -17313,16 +18074,16 @@ export declare const userPermissionWithDetailsListSchema: z.ZodArray<z.ZodObject
17313
18074
  resource_server_identifier: string;
17314
18075
  permission_name: string;
17315
18076
  resource_server_name: string;
17316
- description?: string | null | undefined;
17317
18077
  created_at?: string | undefined;
18078
+ description?: string | null | undefined;
17318
18079
  organization_id?: string | undefined;
17319
18080
  }, {
17320
18081
  user_id: string;
17321
18082
  resource_server_identifier: string;
17322
18083
  permission_name: string;
17323
18084
  resource_server_name: string;
17324
- description?: string | null | undefined;
17325
18085
  created_at?: string | undefined;
18086
+ description?: string | null | undefined;
17326
18087
  organization_id?: string | undefined;
17327
18088
  }>, "many">;
17328
18089
  export type UserPermissionWithDetailsList = z.infer<typeof userPermissionWithDetailsListSchema>;
@@ -17397,17 +18158,17 @@ export declare const roleSchema: z.ZodObject<{
17397
18158
  description: z.ZodOptional<z.ZodString>;
17398
18159
  id: z.ZodString;
17399
18160
  }, "strip", z.ZodTypeAny, {
17400
- name: string;
17401
18161
  id: string;
17402
- description?: string | undefined;
18162
+ name: string;
17403
18163
  created_at?: string | undefined;
17404
18164
  updated_at?: string | undefined;
18165
+ description?: string | undefined;
17405
18166
  }, {
17406
- name: string;
17407
18167
  id: string;
17408
- description?: string | undefined;
18168
+ name: string;
17409
18169
  created_at?: string | undefined;
17410
18170
  updated_at?: string | undefined;
18171
+ description?: string | undefined;
17411
18172
  }>;
17412
18173
  export type Role = z.infer<typeof roleSchema>;
17413
18174
  export type RoleInsert = z.infer<typeof roleInsertSchema>;
@@ -17418,17 +18179,17 @@ export declare const roleListSchema: z.ZodArray<z.ZodObject<{
17418
18179
  description: z.ZodOptional<z.ZodString>;
17419
18180
  id: z.ZodString;
17420
18181
  }, "strip", z.ZodTypeAny, {
17421
- name: string;
17422
18182
  id: string;
17423
- description?: string | undefined;
18183
+ name: string;
17424
18184
  created_at?: string | undefined;
17425
18185
  updated_at?: string | undefined;
18186
+ description?: string | undefined;
17426
18187
  }, {
17427
- name: string;
17428
18188
  id: string;
17429
- description?: string | undefined;
18189
+ name: string;
17430
18190
  created_at?: string | undefined;
17431
18191
  updated_at?: string | undefined;
18192
+ description?: string | undefined;
17432
18193
  }>, "many">;
17433
18194
  export type RoleList = z.infer<typeof roleListSchema>;
17434
18195
  export declare const organizationBrandingSchema: z.ZodOptional<z.ZodObject<{
@@ -17462,8 +18223,8 @@ export declare const organizationEnabledConnectionSchema: z.ZodObject<{
17462
18223
  show_as_button: z.ZodDefault<z.ZodBoolean>;
17463
18224
  is_signup_enabled: z.ZodDefault<z.ZodBoolean>;
17464
18225
  }, "strip", z.ZodTypeAny, {
17465
- show_as_button: boolean;
17466
18226
  connection_id: string;
18227
+ show_as_button: boolean;
17467
18228
  assign_membership_on_login: boolean;
17468
18229
  is_signup_enabled: boolean;
17469
18230
  }, {
@@ -17535,8 +18296,8 @@ export declare const organizationInsertSchema: z.ZodObject<{
17535
18296
  show_as_button: z.ZodDefault<z.ZodBoolean>;
17536
18297
  is_signup_enabled: z.ZodDefault<z.ZodBoolean>;
17537
18298
  }, "strip", z.ZodTypeAny, {
17538
- show_as_button: boolean;
17539
18299
  connection_id: string;
18300
+ show_as_button: boolean;
17540
18301
  assign_membership_on_login: boolean;
17541
18302
  is_signup_enabled: boolean;
17542
18303
  }, {
@@ -17574,6 +18335,7 @@ export declare const organizationInsertSchema: z.ZodObject<{
17574
18335
  }>>;
17575
18336
  }, "strip", z.ZodTypeAny, {
17576
18337
  name: string;
18338
+ id?: string | undefined;
17577
18339
  token_quota?: {
17578
18340
  client_credentials?: {
17579
18341
  enforce: boolean;
@@ -17581,7 +18343,6 @@ export declare const organizationInsertSchema: z.ZodObject<{
17581
18343
  per_hour: number;
17582
18344
  } | undefined;
17583
18345
  } | undefined;
17584
- id?: string | undefined;
17585
18346
  display_name?: string | undefined;
17586
18347
  metadata?: Record<string, any> | undefined;
17587
18348
  branding?: {
@@ -17592,13 +18353,14 @@ export declare const organizationInsertSchema: z.ZodObject<{
17592
18353
  logo_url?: string | undefined;
17593
18354
  } | undefined;
17594
18355
  enabled_connections?: {
17595
- show_as_button: boolean;
17596
18356
  connection_id: string;
18357
+ show_as_button: boolean;
17597
18358
  assign_membership_on_login: boolean;
17598
18359
  is_signup_enabled: boolean;
17599
18360
  }[] | undefined;
17600
18361
  }, {
17601
18362
  name: string;
18363
+ id?: string | undefined;
17602
18364
  token_quota?: {
17603
18365
  client_credentials?: {
17604
18366
  enforce?: boolean | undefined;
@@ -17606,7 +18368,6 @@ export declare const organizationInsertSchema: z.ZodObject<{
17606
18368
  per_hour?: number | undefined;
17607
18369
  } | undefined;
17608
18370
  } | undefined;
17609
- id?: string | undefined;
17610
18371
  display_name?: string | undefined;
17611
18372
  metadata?: Record<string, any> | undefined;
17612
18373
  branding?: {
@@ -17662,8 +18423,8 @@ export declare const organizationSchema: z.ZodObject<{
17662
18423
  show_as_button: z.ZodDefault<z.ZodBoolean>;
17663
18424
  is_signup_enabled: z.ZodDefault<z.ZodBoolean>;
17664
18425
  }, "strip", z.ZodTypeAny, {
17665
- show_as_button: boolean;
17666
18426
  connection_id: string;
18427
+ show_as_button: boolean;
17667
18428
  assign_membership_on_login: boolean;
17668
18429
  is_signup_enabled: boolean;
17669
18430
  }, {
@@ -17702,8 +18463,8 @@ export declare const organizationSchema: z.ZodObject<{
17702
18463
  }, "strip", z.ZodTypeAny, {
17703
18464
  created_at: string;
17704
18465
  updated_at: string;
17705
- name: string;
17706
18466
  id: string;
18467
+ name: string;
17707
18468
  token_quota?: {
17708
18469
  client_credentials?: {
17709
18470
  enforce: boolean;
@@ -17721,16 +18482,16 @@ export declare const organizationSchema: z.ZodObject<{
17721
18482
  logo_url?: string | undefined;
17722
18483
  } | undefined;
17723
18484
  enabled_connections?: {
17724
- show_as_button: boolean;
17725
18485
  connection_id: string;
18486
+ show_as_button: boolean;
17726
18487
  assign_membership_on_login: boolean;
17727
18488
  is_signup_enabled: boolean;
17728
18489
  }[] | undefined;
17729
18490
  }, {
17730
18491
  created_at: string;
17731
18492
  updated_at: string;
17732
- name: string;
17733
18493
  id: string;
18494
+ name: string;
17734
18495
  token_quota?: {
17735
18496
  client_credentials?: {
17736
18497
  enforce?: boolean | undefined;
@@ -17775,14 +18536,14 @@ export declare const userOrganizationSchema: z.ZodObject<{
17775
18536
  }, "strip", z.ZodTypeAny, {
17776
18537
  created_at: string;
17777
18538
  updated_at: string;
17778
- user_id: string;
17779
18539
  id: string;
18540
+ user_id: string;
17780
18541
  organization_id: string;
17781
18542
  }, {
17782
18543
  created_at: string;
17783
18544
  updated_at: string;
17784
- user_id: string;
17785
18545
  id: string;
18546
+ user_id: string;
17786
18547
  organization_id: string;
17787
18548
  }>;
17788
18549
  export type UserOrganization = z.infer<typeof userOrganizationSchema>;
@@ -18042,16 +18803,16 @@ export declare const dailyStatsSchema: z.ZodObject<{
18042
18803
  updated_at: z.ZodString;
18043
18804
  created_at: z.ZodString;
18044
18805
  }, "strip", z.ZodTypeAny, {
18045
- date: string;
18046
18806
  created_at: string;
18047
18807
  updated_at: string;
18808
+ date: string;
18048
18809
  logins: number;
18049
18810
  signups: number;
18050
18811
  leaked_passwords: number;
18051
18812
  }, {
18052
- date: string;
18053
18813
  created_at: string;
18054
18814
  updated_at: string;
18815
+ date: string;
18055
18816
  logins: number;
18056
18817
  signups: number;
18057
18818
  leaked_passwords: number;
@@ -18174,6 +18935,16 @@ export declare function createPassthroughAdapter<T extends object>(config: Passt
18174
18935
  * ```
18175
18936
  */
18176
18937
  export declare function createWriteOnlyAdapter<T>(implementation: Partial<T>): Partial<T>;
18938
+ export interface ListFlowsResponse extends Totals {
18939
+ flows: Flow[];
18940
+ }
18941
+ export interface FlowsAdapter {
18942
+ create(tenant_id: string, params: FlowInsert): Promise<Flow>;
18943
+ get(tenant_id: string, flow_id: string): Promise<Flow | null>;
18944
+ remove(tenant_id: string, flow_id: string): Promise<boolean>;
18945
+ update(tenant_id: string, flow_id: string, flow: Partial<FlowInsert>): Promise<Flow | null>;
18946
+ list(tenant_id: string, params?: ListParams): Promise<ListFlowsResponse>;
18947
+ }
18177
18948
  export interface CacheItem<T = any> {
18178
18949
  value: T;
18179
18950
  expiresAt?: Date;
@@ -18519,6 +19290,7 @@ export interface DataAdapters {
18519
19290
  connections: ConnectionsAdapter;
18520
19291
  customDomains: CustomDomainsAdapter;
18521
19292
  emailProviders: EmailProvidersAdapter;
19293
+ flows: FlowsAdapter;
18522
19294
  forms: FormsAdapter;
18523
19295
  geo?: GeoAdapter;
18524
19296
  hooks: HooksAdapter;