@authhero/kysely-adapter 10.67.0 → 10.68.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,428 @@
3
3
  import { z } from '@hono/zod-openapi';
4
4
  import { Kysely } from 'kysely';
5
5
 
6
+ declare const flowInsertSchema: z.ZodObject<{
7
+ name: z.ZodString;
8
+ actions: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[
9
+ z.ZodObject<{
10
+ id: z.ZodString;
11
+ alias: z.ZodOptional<z.ZodString>;
12
+ type: z.ZodLiteral<"AUTH0">;
13
+ action: z.ZodLiteral<"UPDATE_USER">;
14
+ allow_failure: z.ZodOptional<z.ZodBoolean>;
15
+ mask_output: z.ZodOptional<z.ZodBoolean>;
16
+ params: z.ZodObject<{
17
+ connection_id: z.ZodOptional<z.ZodString>;
18
+ user_id: z.ZodString;
19
+ changes: z.ZodRecord<z.ZodString, z.ZodAny>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ user_id: string;
22
+ changes: Record<string, any>;
23
+ connection_id?: string | undefined;
24
+ }, {
25
+ user_id: string;
26
+ changes: Record<string, any>;
27
+ connection_id?: string | undefined;
28
+ }>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ params: {
31
+ user_id: string;
32
+ changes: Record<string, any>;
33
+ connection_id?: string | undefined;
34
+ };
35
+ type: "AUTH0";
36
+ id: string;
37
+ action: "UPDATE_USER";
38
+ alias?: string | undefined;
39
+ allow_failure?: boolean | undefined;
40
+ mask_output?: boolean | undefined;
41
+ }, {
42
+ params: {
43
+ user_id: string;
44
+ changes: Record<string, any>;
45
+ connection_id?: string | undefined;
46
+ };
47
+ type: "AUTH0";
48
+ id: string;
49
+ action: "UPDATE_USER";
50
+ alias?: string | undefined;
51
+ allow_failure?: boolean | undefined;
52
+ mask_output?: boolean | undefined;
53
+ }>,
54
+ z.ZodObject<{
55
+ id: z.ZodString;
56
+ alias: z.ZodOptional<z.ZodString>;
57
+ type: z.ZodLiteral<"EMAIL">;
58
+ action: z.ZodLiteral<"VERIFY_EMAIL">;
59
+ allow_failure: z.ZodOptional<z.ZodBoolean>;
60
+ mask_output: z.ZodOptional<z.ZodBoolean>;
61
+ params: z.ZodObject<{
62
+ email: z.ZodString;
63
+ rules: z.ZodOptional<z.ZodObject<{
64
+ require_mx_record: z.ZodOptional<z.ZodBoolean>;
65
+ block_aliases: z.ZodOptional<z.ZodBoolean>;
66
+ block_free_emails: z.ZodOptional<z.ZodBoolean>;
67
+ block_disposable_emails: z.ZodOptional<z.ZodBoolean>;
68
+ blocklist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
69
+ allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ require_mx_record?: boolean | undefined;
72
+ block_aliases?: boolean | undefined;
73
+ block_free_emails?: boolean | undefined;
74
+ block_disposable_emails?: boolean | undefined;
75
+ blocklist?: string[] | undefined;
76
+ allowlist?: string[] | undefined;
77
+ }, {
78
+ require_mx_record?: boolean | undefined;
79
+ block_aliases?: boolean | undefined;
80
+ block_free_emails?: boolean | undefined;
81
+ block_disposable_emails?: boolean | undefined;
82
+ blocklist?: string[] | undefined;
83
+ allowlist?: string[] | undefined;
84
+ }>>;
85
+ }, "strip", z.ZodTypeAny, {
86
+ email: string;
87
+ rules?: {
88
+ require_mx_record?: boolean | undefined;
89
+ block_aliases?: boolean | undefined;
90
+ block_free_emails?: boolean | undefined;
91
+ block_disposable_emails?: boolean | undefined;
92
+ blocklist?: string[] | undefined;
93
+ allowlist?: string[] | undefined;
94
+ } | undefined;
95
+ }, {
96
+ email: string;
97
+ rules?: {
98
+ require_mx_record?: boolean | undefined;
99
+ block_aliases?: boolean | undefined;
100
+ block_free_emails?: boolean | undefined;
101
+ block_disposable_emails?: boolean | undefined;
102
+ blocklist?: string[] | undefined;
103
+ allowlist?: string[] | undefined;
104
+ } | undefined;
105
+ }>;
106
+ }, "strip", z.ZodTypeAny, {
107
+ params: {
108
+ email: string;
109
+ rules?: {
110
+ require_mx_record?: boolean | undefined;
111
+ block_aliases?: boolean | undefined;
112
+ block_free_emails?: boolean | undefined;
113
+ block_disposable_emails?: boolean | undefined;
114
+ blocklist?: string[] | undefined;
115
+ allowlist?: string[] | undefined;
116
+ } | undefined;
117
+ };
118
+ type: "EMAIL";
119
+ id: string;
120
+ action: "VERIFY_EMAIL";
121
+ alias?: string | undefined;
122
+ allow_failure?: boolean | undefined;
123
+ mask_output?: boolean | undefined;
124
+ }, {
125
+ params: {
126
+ email: string;
127
+ rules?: {
128
+ require_mx_record?: boolean | undefined;
129
+ block_aliases?: boolean | undefined;
130
+ block_free_emails?: boolean | undefined;
131
+ block_disposable_emails?: boolean | undefined;
132
+ blocklist?: string[] | undefined;
133
+ allowlist?: string[] | undefined;
134
+ } | undefined;
135
+ };
136
+ type: "EMAIL";
137
+ id: string;
138
+ action: "VERIFY_EMAIL";
139
+ alias?: string | undefined;
140
+ allow_failure?: boolean | undefined;
141
+ mask_output?: boolean | undefined;
142
+ }>
143
+ ]>, "many">>>;
144
+ }, "strip", z.ZodTypeAny, {
145
+ name: string;
146
+ actions: ({
147
+ params: {
148
+ user_id: string;
149
+ changes: Record<string, any>;
150
+ connection_id?: string | undefined;
151
+ };
152
+ type: "AUTH0";
153
+ id: string;
154
+ action: "UPDATE_USER";
155
+ alias?: string | undefined;
156
+ allow_failure?: boolean | undefined;
157
+ mask_output?: boolean | undefined;
158
+ } | {
159
+ params: {
160
+ email: string;
161
+ rules?: {
162
+ require_mx_record?: boolean | undefined;
163
+ block_aliases?: boolean | undefined;
164
+ block_free_emails?: boolean | undefined;
165
+ block_disposable_emails?: boolean | undefined;
166
+ blocklist?: string[] | undefined;
167
+ allowlist?: string[] | undefined;
168
+ } | undefined;
169
+ };
170
+ type: "EMAIL";
171
+ id: string;
172
+ action: "VERIFY_EMAIL";
173
+ alias?: string | undefined;
174
+ allow_failure?: boolean | undefined;
175
+ mask_output?: boolean | undefined;
176
+ })[];
177
+ }, {
178
+ name: string;
179
+ actions?: ({
180
+ params: {
181
+ user_id: string;
182
+ changes: Record<string, any>;
183
+ connection_id?: string | undefined;
184
+ };
185
+ type: "AUTH0";
186
+ id: string;
187
+ action: "UPDATE_USER";
188
+ alias?: string | undefined;
189
+ allow_failure?: boolean | undefined;
190
+ mask_output?: boolean | undefined;
191
+ } | {
192
+ params: {
193
+ email: string;
194
+ rules?: {
195
+ require_mx_record?: boolean | undefined;
196
+ block_aliases?: boolean | undefined;
197
+ block_free_emails?: boolean | undefined;
198
+ block_disposable_emails?: boolean | undefined;
199
+ blocklist?: string[] | undefined;
200
+ allowlist?: string[] | undefined;
201
+ } | undefined;
202
+ };
203
+ type: "EMAIL";
204
+ id: string;
205
+ action: "VERIFY_EMAIL";
206
+ alias?: string | undefined;
207
+ allow_failure?: boolean | undefined;
208
+ mask_output?: boolean | undefined;
209
+ })[] | undefined;
210
+ }>;
211
+ export type FlowInsert = z.infer<typeof flowInsertSchema>;
212
+ declare const flowSchema: z.ZodObject<{
213
+ name: z.ZodString;
214
+ actions: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodUnion<[
215
+ z.ZodObject<{
216
+ id: z.ZodString;
217
+ alias: z.ZodOptional<z.ZodString>;
218
+ type: z.ZodLiteral<"AUTH0">;
219
+ action: z.ZodLiteral<"UPDATE_USER">;
220
+ allow_failure: z.ZodOptional<z.ZodBoolean>;
221
+ mask_output: z.ZodOptional<z.ZodBoolean>;
222
+ params: z.ZodObject<{
223
+ connection_id: z.ZodOptional<z.ZodString>;
224
+ user_id: z.ZodString;
225
+ changes: z.ZodRecord<z.ZodString, z.ZodAny>;
226
+ }, "strip", z.ZodTypeAny, {
227
+ user_id: string;
228
+ changes: Record<string, any>;
229
+ connection_id?: string | undefined;
230
+ }, {
231
+ user_id: string;
232
+ changes: Record<string, any>;
233
+ connection_id?: string | undefined;
234
+ }>;
235
+ }, "strip", z.ZodTypeAny, {
236
+ params: {
237
+ user_id: string;
238
+ changes: Record<string, any>;
239
+ connection_id?: string | undefined;
240
+ };
241
+ type: "AUTH0";
242
+ id: string;
243
+ action: "UPDATE_USER";
244
+ alias?: string | undefined;
245
+ allow_failure?: boolean | undefined;
246
+ mask_output?: boolean | undefined;
247
+ }, {
248
+ params: {
249
+ user_id: string;
250
+ changes: Record<string, any>;
251
+ connection_id?: string | undefined;
252
+ };
253
+ type: "AUTH0";
254
+ id: string;
255
+ action: "UPDATE_USER";
256
+ alias?: string | undefined;
257
+ allow_failure?: boolean | undefined;
258
+ mask_output?: boolean | undefined;
259
+ }>,
260
+ z.ZodObject<{
261
+ id: z.ZodString;
262
+ alias: z.ZodOptional<z.ZodString>;
263
+ type: z.ZodLiteral<"EMAIL">;
264
+ action: z.ZodLiteral<"VERIFY_EMAIL">;
265
+ allow_failure: z.ZodOptional<z.ZodBoolean>;
266
+ mask_output: z.ZodOptional<z.ZodBoolean>;
267
+ params: z.ZodObject<{
268
+ email: z.ZodString;
269
+ rules: z.ZodOptional<z.ZodObject<{
270
+ require_mx_record: z.ZodOptional<z.ZodBoolean>;
271
+ block_aliases: z.ZodOptional<z.ZodBoolean>;
272
+ block_free_emails: z.ZodOptional<z.ZodBoolean>;
273
+ block_disposable_emails: z.ZodOptional<z.ZodBoolean>;
274
+ blocklist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
275
+ allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
276
+ }, "strip", z.ZodTypeAny, {
277
+ require_mx_record?: boolean | undefined;
278
+ block_aliases?: boolean | undefined;
279
+ block_free_emails?: boolean | undefined;
280
+ block_disposable_emails?: boolean | undefined;
281
+ blocklist?: string[] | undefined;
282
+ allowlist?: string[] | undefined;
283
+ }, {
284
+ require_mx_record?: boolean | undefined;
285
+ block_aliases?: boolean | undefined;
286
+ block_free_emails?: boolean | undefined;
287
+ block_disposable_emails?: boolean | undefined;
288
+ blocklist?: string[] | undefined;
289
+ allowlist?: string[] | undefined;
290
+ }>>;
291
+ }, "strip", z.ZodTypeAny, {
292
+ email: string;
293
+ rules?: {
294
+ require_mx_record?: boolean | undefined;
295
+ block_aliases?: boolean | undefined;
296
+ block_free_emails?: boolean | undefined;
297
+ block_disposable_emails?: boolean | undefined;
298
+ blocklist?: string[] | undefined;
299
+ allowlist?: string[] | undefined;
300
+ } | undefined;
301
+ }, {
302
+ email: string;
303
+ rules?: {
304
+ require_mx_record?: boolean | undefined;
305
+ block_aliases?: boolean | undefined;
306
+ block_free_emails?: boolean | undefined;
307
+ block_disposable_emails?: boolean | undefined;
308
+ blocklist?: string[] | undefined;
309
+ allowlist?: string[] | undefined;
310
+ } | undefined;
311
+ }>;
312
+ }, "strip", z.ZodTypeAny, {
313
+ params: {
314
+ email: string;
315
+ rules?: {
316
+ require_mx_record?: boolean | undefined;
317
+ block_aliases?: boolean | undefined;
318
+ block_free_emails?: boolean | undefined;
319
+ block_disposable_emails?: boolean | undefined;
320
+ blocklist?: string[] | undefined;
321
+ allowlist?: string[] | undefined;
322
+ } | undefined;
323
+ };
324
+ type: "EMAIL";
325
+ id: string;
326
+ action: "VERIFY_EMAIL";
327
+ alias?: string | undefined;
328
+ allow_failure?: boolean | undefined;
329
+ mask_output?: boolean | undefined;
330
+ }, {
331
+ params: {
332
+ email: string;
333
+ rules?: {
334
+ require_mx_record?: boolean | undefined;
335
+ block_aliases?: boolean | undefined;
336
+ block_free_emails?: boolean | undefined;
337
+ block_disposable_emails?: boolean | undefined;
338
+ blocklist?: string[] | undefined;
339
+ allowlist?: string[] | undefined;
340
+ } | undefined;
341
+ };
342
+ type: "EMAIL";
343
+ id: string;
344
+ action: "VERIFY_EMAIL";
345
+ alias?: string | undefined;
346
+ allow_failure?: boolean | undefined;
347
+ mask_output?: boolean | undefined;
348
+ }>
349
+ ]>, "many">>>;
350
+ } & {
351
+ id: z.ZodString;
352
+ created_at: z.ZodString;
353
+ updated_at: z.ZodString;
354
+ }, "strip", z.ZodTypeAny, {
355
+ created_at: string;
356
+ updated_at: string;
357
+ id: string;
358
+ name: string;
359
+ actions: ({
360
+ params: {
361
+ user_id: string;
362
+ changes: Record<string, any>;
363
+ connection_id?: string | undefined;
364
+ };
365
+ type: "AUTH0";
366
+ id: string;
367
+ action: "UPDATE_USER";
368
+ alias?: string | undefined;
369
+ allow_failure?: boolean | undefined;
370
+ mask_output?: boolean | undefined;
371
+ } | {
372
+ params: {
373
+ email: string;
374
+ rules?: {
375
+ require_mx_record?: boolean | undefined;
376
+ block_aliases?: boolean | undefined;
377
+ block_free_emails?: boolean | undefined;
378
+ block_disposable_emails?: boolean | undefined;
379
+ blocklist?: string[] | undefined;
380
+ allowlist?: string[] | undefined;
381
+ } | undefined;
382
+ };
383
+ type: "EMAIL";
384
+ id: string;
385
+ action: "VERIFY_EMAIL";
386
+ alias?: string | undefined;
387
+ allow_failure?: boolean | undefined;
388
+ mask_output?: boolean | undefined;
389
+ })[];
390
+ }, {
391
+ created_at: string;
392
+ updated_at: string;
393
+ id: string;
394
+ name: string;
395
+ actions?: ({
396
+ params: {
397
+ user_id: string;
398
+ changes: Record<string, any>;
399
+ connection_id?: string | undefined;
400
+ };
401
+ type: "AUTH0";
402
+ id: string;
403
+ action: "UPDATE_USER";
404
+ alias?: string | undefined;
405
+ allow_failure?: boolean | undefined;
406
+ mask_output?: boolean | undefined;
407
+ } | {
408
+ params: {
409
+ email: string;
410
+ rules?: {
411
+ require_mx_record?: boolean | undefined;
412
+ block_aliases?: boolean | undefined;
413
+ block_free_emails?: boolean | undefined;
414
+ block_disposable_emails?: boolean | undefined;
415
+ blocklist?: string[] | undefined;
416
+ allowlist?: string[] | undefined;
417
+ } | undefined;
418
+ };
419
+ type: "EMAIL";
420
+ id: string;
421
+ action: "VERIFY_EMAIL";
422
+ alias?: string | undefined;
423
+ allow_failure?: boolean | undefined;
424
+ mask_output?: boolean | undefined;
425
+ })[] | undefined;
426
+ }>;
427
+ export type Flow = z.infer<typeof flowSchema>;
6
428
  export interface Totals {
7
429
  start: number;
8
430
  limit: number;
@@ -34,13 +456,13 @@ declare const userInsertSchema: z.ZodObject<{
34
456
  }, "strip", z.ZodTypeAny, {
35
457
  email_verified: boolean;
36
458
  connection: string;
37
- email?: string | undefined;
38
459
  name?: string | undefined;
460
+ user_id?: string | undefined;
461
+ email?: string | undefined;
39
462
  username?: string | undefined;
40
463
  given_name?: string | undefined;
41
464
  phone_number?: string | undefined;
42
465
  family_name?: string | undefined;
43
- user_id?: string | undefined;
44
466
  provider?: string | undefined;
45
467
  profileData?: string | undefined;
46
468
  nickname?: string | undefined;
@@ -55,14 +477,14 @@ declare const userInsertSchema: z.ZodObject<{
55
477
  is_social?: boolean | undefined;
56
478
  }, {
57
479
  connection: string;
480
+ name?: string | undefined;
481
+ user_id?: string | undefined;
58
482
  email?: string | undefined;
59
483
  email_verified?: boolean | undefined;
60
- name?: string | undefined;
61
484
  username?: string | undefined;
62
485
  given_name?: string | undefined;
63
486
  phone_number?: string | undefined;
64
487
  family_name?: string | undefined;
65
- user_id?: string | undefined;
66
488
  provider?: string | undefined;
67
489
  profileData?: string | undefined;
68
490
  nickname?: string | undefined;
@@ -120,8 +542,8 @@ declare const userSchema: z.ZodObject<{
120
542
  family_name: z.ZodOptional<z.ZodString>;
121
543
  }, z.ZodAny, "strip">>>;
122
544
  }, "strip", z.ZodTypeAny, {
123
- connection: string;
124
545
  user_id: string;
546
+ connection: string;
125
547
  provider: string;
126
548
  isSocial: boolean;
127
549
  access_token?: string | undefined;
@@ -138,8 +560,8 @@ declare const userSchema: z.ZodObject<{
138
560
  family_name: z.ZodOptional<z.ZodString>;
139
561
  }, z.ZodAny, "strip"> | undefined;
140
562
  }, {
141
- connection: string;
142
563
  user_id: string;
564
+ connection: string;
143
565
  provider: string;
144
566
  isSocial: boolean;
145
567
  access_token?: string | undefined;
@@ -178,14 +600,14 @@ declare const userSchema: z.ZodObject<{
178
600
  }, "strip", z.ZodTypeAny, {
179
601
  created_at: string;
180
602
  updated_at: string;
603
+ user_id: string;
181
604
  email_verified: boolean;
182
605
  connection: string;
183
- user_id: string;
184
606
  provider: string;
185
607
  is_social: boolean;
186
608
  login_count: number;
187
- email?: string | undefined;
188
609
  name?: string | undefined;
610
+ email?: string | undefined;
189
611
  username?: string | undefined;
190
612
  given_name?: string | undefined;
191
613
  phone_number?: string | undefined;
@@ -201,8 +623,8 @@ declare const userSchema: z.ZodObject<{
201
623
  last_ip?: string | undefined;
202
624
  last_login?: string | undefined;
203
625
  identities?: {
204
- connection: string;
205
626
  user_id: string;
627
+ connection: string;
206
628
  provider: string;
207
629
  isSocial: boolean;
208
630
  access_token?: string | undefined;
@@ -222,13 +644,13 @@ declare const userSchema: z.ZodObject<{
222
644
  }, {
223
645
  created_at: string;
224
646
  updated_at: string;
225
- connection: string;
226
647
  user_id: string;
648
+ connection: string;
227
649
  provider: string;
228
650
  is_social: boolean;
651
+ name?: string | undefined;
229
652
  email?: string | undefined;
230
653
  email_verified?: boolean | undefined;
231
- name?: string | undefined;
232
654
  username?: string | undefined;
233
655
  given_name?: string | undefined;
234
656
  phone_number?: string | undefined;
@@ -245,8 +667,8 @@ declare const userSchema: z.ZodObject<{
245
667
  last_login?: string | undefined;
246
668
  login_count?: number | undefined;
247
669
  identities?: {
248
- connection: string;
249
670
  user_id: string;
671
+ connection: string;
250
672
  provider: string;
251
673
  isSocial: boolean;
252
674
  access_token?: string | undefined;
@@ -707,9 +1129,9 @@ declare const clientGrantSchema: z.ZodObject<{
707
1129
  authorization_details_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
708
1130
  id: z.ZodString;
709
1131
  }, "strip", z.ZodTypeAny, {
1132
+ id: string;
710
1133
  client_id: string;
711
1134
  audience: string;
712
- id: string;
713
1135
  created_at?: string | undefined;
714
1136
  updated_at?: string | undefined;
715
1137
  organization_usage?: "deny" | "allow" | "require" | undefined;
@@ -719,9 +1141,9 @@ declare const clientGrantSchema: z.ZodObject<{
719
1141
  subject_type?: "client" | "user" | undefined;
720
1142
  authorization_details_types?: string[] | undefined;
721
1143
  }, {
1144
+ id: string;
722
1145
  client_id: string;
723
1146
  audience: string;
724
- id: string;
725
1147
  created_at?: string | undefined;
726
1148
  updated_at?: string | undefined;
727
1149
  organization_usage?: "deny" | "allow" | "require" | undefined;
@@ -1068,8 +1490,8 @@ declare const legacyClientSchema: z.ZodObject<{
1068
1490
  }, "strip", z.ZodTypeAny, {
1069
1491
  created_at: string;
1070
1492
  updated_at: string;
1071
- audience: string;
1072
1493
  id: string;
1494
+ audience: string;
1073
1495
  friendly_name: string;
1074
1496
  sender_email: string;
1075
1497
  sender_name: string;
@@ -1168,8 +1590,8 @@ declare const legacyClientSchema: z.ZodObject<{
1168
1590
  }, {
1169
1591
  created_at: string | null;
1170
1592
  updated_at: string | null;
1171
- audience: string;
1172
1593
  id: string;
1594
+ audience: string;
1173
1595
  friendly_name: string;
1174
1596
  sender_email: string;
1175
1597
  sender_name: string;
@@ -1342,6 +1764,8 @@ declare const legacyClientSchema: z.ZodObject<{
1342
1764
  show_as_button: z.ZodOptional<z.ZodBoolean>;
1343
1765
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1344
1766
  }, "strip", z.ZodTypeAny, {
1767
+ created_at: string;
1768
+ updated_at: string;
1345
1769
  options: {
1346
1770
  provider?: string | undefined;
1347
1771
  client_id?: string | undefined;
@@ -1363,8 +1787,6 @@ declare const legacyClientSchema: z.ZodObject<{
1363
1787
  twilio_token?: string | undefined;
1364
1788
  icon_url?: string | undefined;
1365
1789
  };
1366
- created_at: string;
1367
- updated_at: string;
1368
1790
  name: string;
1369
1791
  strategy: string;
1370
1792
  id?: string | undefined;
@@ -1511,6 +1933,8 @@ declare const legacyClientSchema: z.ZodObject<{
1511
1933
  is_first_party: boolean;
1512
1934
  oidc_conformant: boolean;
1513
1935
  connections: {
1936
+ created_at: string;
1937
+ updated_at: string;
1514
1938
  options: {
1515
1939
  provider?: string | undefined;
1516
1940
  client_id?: string | undefined;
@@ -1532,8 +1956,6 @@ declare const legacyClientSchema: z.ZodObject<{
1532
1956
  twilio_token?: string | undefined;
1533
1957
  icon_url?: string | undefined;
1534
1958
  };
1535
- created_at: string;
1536
- updated_at: string;
1537
1959
  name: string;
1538
1960
  strategy: string;
1539
1961
  id?: string | undefined;
@@ -1554,8 +1976,8 @@ declare const legacyClientSchema: z.ZodObject<{
1554
1976
  tenant: {
1555
1977
  created_at: string;
1556
1978
  updated_at: string;
1557
- audience: string;
1558
1979
  id: string;
1980
+ audience: string;
1559
1981
  friendly_name: string;
1560
1982
  sender_email: string;
1561
1983
  sender_name: string;
@@ -1730,8 +2152,8 @@ declare const legacyClientSchema: z.ZodObject<{
1730
2152
  tenant: {
1731
2153
  created_at: string | null;
1732
2154
  updated_at: string | null;
1733
- audience: string;
1734
2155
  id: string;
2156
+ audience: string;
1735
2157
  friendly_name: string;
1736
2158
  sender_email: string;
1737
2159
  sender_name: string;
@@ -1912,13 +2334,13 @@ declare const codeInsertSchema: z.ZodObject<{
1912
2334
  login_id: string;
1913
2335
  code_type: "password_reset" | "email_verification" | "otp" | "authorization_code" | "oauth2_state" | "ticket";
1914
2336
  expires_at: string;
2337
+ connection_id?: string | undefined;
1915
2338
  user_id?: string | undefined;
1916
2339
  redirect_uri?: string | undefined;
1917
2340
  state?: string | undefined;
1918
2341
  nonce?: string | undefined;
1919
2342
  code_challenge_method?: "S256" | "plain" | undefined;
1920
2343
  code_challenge?: string | undefined;
1921
- connection_id?: string | undefined;
1922
2344
  code_verifier?: string | undefined;
1923
2345
  used_at?: string | undefined;
1924
2346
  }, {
@@ -1926,13 +2348,13 @@ declare const codeInsertSchema: z.ZodObject<{
1926
2348
  login_id: string;
1927
2349
  code_type: "password_reset" | "email_verification" | "otp" | "authorization_code" | "oauth2_state" | "ticket";
1928
2350
  expires_at: string;
2351
+ connection_id?: string | undefined;
1929
2352
  user_id?: string | undefined;
1930
2353
  redirect_uri?: string | undefined;
1931
2354
  state?: string | undefined;
1932
2355
  nonce?: string | undefined;
1933
2356
  code_challenge_method?: "S256" | "plain" | undefined;
1934
2357
  code_challenge?: string | undefined;
1935
- connection_id?: string | undefined;
1936
2358
  code_verifier?: string | undefined;
1937
2359
  used_at?: string | undefined;
1938
2360
  }>;
@@ -1968,13 +2390,13 @@ declare const codeSchema: z.ZodObject<{
1968
2390
  login_id: string;
1969
2391
  code_type: "password_reset" | "email_verification" | "otp" | "authorization_code" | "oauth2_state" | "ticket";
1970
2392
  expires_at: string;
2393
+ connection_id?: string | undefined;
1971
2394
  user_id?: string | undefined;
1972
2395
  redirect_uri?: string | undefined;
1973
2396
  state?: string | undefined;
1974
2397
  nonce?: string | undefined;
1975
2398
  code_challenge_method?: "S256" | "plain" | undefined;
1976
2399
  code_challenge?: string | undefined;
1977
- connection_id?: string | undefined;
1978
2400
  code_verifier?: string | undefined;
1979
2401
  used_at?: string | undefined;
1980
2402
  }, {
@@ -1983,13 +2405,13 @@ declare const codeSchema: z.ZodObject<{
1983
2405
  login_id: string;
1984
2406
  code_type: "password_reset" | "email_verification" | "otp" | "authorization_code" | "oauth2_state" | "ticket";
1985
2407
  expires_at: string;
2408
+ connection_id?: string | undefined;
1986
2409
  user_id?: string | undefined;
1987
2410
  redirect_uri?: string | undefined;
1988
2411
  state?: string | undefined;
1989
2412
  nonce?: string | undefined;
1990
2413
  code_challenge_method?: "S256" | "plain" | undefined;
1991
2414
  code_challenge?: string | undefined;
1992
- connection_id?: string | undefined;
1993
2415
  code_verifier?: string | undefined;
1994
2416
  used_at?: string | undefined;
1995
2417
  }>;
@@ -2208,6 +2630,8 @@ declare const connectionSchema: z.ZodObject<{
2208
2630
  show_as_button: z.ZodOptional<z.ZodBoolean>;
2209
2631
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2210
2632
  }, "strip", z.ZodTypeAny, {
2633
+ created_at: string;
2634
+ updated_at: string;
2211
2635
  options: {
2212
2636
  provider?: string | undefined;
2213
2637
  client_id?: string | undefined;
@@ -2229,8 +2653,6 @@ declare const connectionSchema: z.ZodObject<{
2229
2653
  twilio_token?: string | undefined;
2230
2654
  icon_url?: string | undefined;
2231
2655
  };
2232
- created_at: string;
2233
- updated_at: string;
2234
2656
  name: string;
2235
2657
  strategy: string;
2236
2658
  id?: string | undefined;
@@ -2629,6 +3051,7 @@ declare const formInsertSchema: z.ZodObject<{
2629
3051
  }, "strip", z.ZodTypeAny, {
2630
3052
  type: "ROUTER";
2631
3053
  id: string;
3054
+ alias: string;
2632
3055
  config: {
2633
3056
  rules: {
2634
3057
  id: string;
@@ -2642,10 +3065,10 @@ declare const formInsertSchema: z.ZodObject<{
2642
3065
  x: number;
2643
3066
  y: number;
2644
3067
  };
2645
- alias: string;
2646
3068
  }, {
2647
3069
  type: "ROUTER";
2648
3070
  id: string;
3071
+ alias: string;
2649
3072
  config: {
2650
3073
  rules: {
2651
3074
  id: string;
@@ -2659,7 +3082,6 @@ declare const formInsertSchema: z.ZodObject<{
2659
3082
  x: number;
2660
3083
  y: number;
2661
3084
  };
2662
- alias: string;
2663
3085
  }>,
2664
3086
  z.ZodObject<{
2665
3087
  id: z.ZodString;
@@ -3419,6 +3841,9 @@ declare const formInsertSchema: z.ZodObject<{
3419
3841
  }>>;
3420
3842
  }, "strip", z.ZodTypeAny, {
3421
3843
  name: string;
3844
+ style?: {
3845
+ css?: string | undefined;
3846
+ } | undefined;
3422
3847
  start?: {
3423
3848
  coordinates?: {
3424
3849
  x: number;
@@ -3430,9 +3855,6 @@ declare const formInsertSchema: z.ZodObject<{
3430
3855
  key: string;
3431
3856
  }[] | undefined;
3432
3857
  } | undefined;
3433
- style?: {
3434
- css?: string | undefined;
3435
- } | undefined;
3436
3858
  languages?: {
3437
3859
  default?: string | undefined;
3438
3860
  primary?: string | undefined;
@@ -3452,6 +3874,7 @@ declare const formInsertSchema: z.ZodObject<{
3452
3874
  } | {
3453
3875
  type: "ROUTER";
3454
3876
  id: string;
3877
+ alias: string;
3455
3878
  config: {
3456
3879
  rules: {
3457
3880
  id: string;
@@ -3465,7 +3888,6 @@ declare const formInsertSchema: z.ZodObject<{
3465
3888
  x: number;
3466
3889
  y: number;
3467
3890
  };
3468
- alias: string;
3469
3891
  } | {
3470
3892
  type: "STEP";
3471
3893
  id: string;
@@ -3577,6 +3999,9 @@ declare const formInsertSchema: z.ZodObject<{
3577
3999
  translations?: Record<string, any> | undefined;
3578
4000
  }, {
3579
4001
  name: string;
4002
+ style?: {
4003
+ css?: string | undefined;
4004
+ } | undefined;
3580
4005
  start?: {
3581
4006
  coordinates?: {
3582
4007
  x: number;
@@ -3588,9 +4013,6 @@ declare const formInsertSchema: z.ZodObject<{
3588
4013
  key: string;
3589
4014
  }[] | undefined;
3590
4015
  } | undefined;
3591
- style?: {
3592
- css?: string | undefined;
3593
- } | undefined;
3594
4016
  languages?: {
3595
4017
  default?: string | undefined;
3596
4018
  primary?: string | undefined;
@@ -3610,6 +4032,7 @@ declare const formInsertSchema: z.ZodObject<{
3610
4032
  } | {
3611
4033
  type: "ROUTER";
3612
4034
  id: string;
4035
+ alias: string;
3613
4036
  config: {
3614
4037
  rules: {
3615
4038
  id: string;
@@ -3623,7 +4046,6 @@ declare const formInsertSchema: z.ZodObject<{
3623
4046
  x: number;
3624
4047
  y: number;
3625
4048
  };
3626
- alias: string;
3627
4049
  } | {
3628
4050
  type: "STEP";
3629
4051
  id: string;
@@ -3861,6 +4283,7 @@ declare const formSchema: z.ZodObject<{
3861
4283
  }, "strip", z.ZodTypeAny, {
3862
4284
  type: "ROUTER";
3863
4285
  id: string;
4286
+ alias: string;
3864
4287
  config: {
3865
4288
  rules: {
3866
4289
  id: string;
@@ -3874,10 +4297,10 @@ declare const formSchema: z.ZodObject<{
3874
4297
  x: number;
3875
4298
  y: number;
3876
4299
  };
3877
- alias: string;
3878
4300
  }, {
3879
4301
  type: "ROUTER";
3880
4302
  id: string;
4303
+ alias: string;
3881
4304
  config: {
3882
4305
  rules: {
3883
4306
  id: string;
@@ -3891,7 +4314,6 @@ declare const formSchema: z.ZodObject<{
3891
4314
  x: number;
3892
4315
  y: number;
3893
4316
  };
3894
- alias: string;
3895
4317
  }>,
3896
4318
  z.ZodObject<{
3897
4319
  id: z.ZodString;
@@ -4654,8 +5076,11 @@ declare const formSchema: z.ZodObject<{
4654
5076
  }, "strip", z.ZodTypeAny, {
4655
5077
  created_at: string;
4656
5078
  updated_at: string;
4657
- name: string;
4658
5079
  id: string;
5080
+ name: string;
5081
+ style?: {
5082
+ css?: string | undefined;
5083
+ } | undefined;
4659
5084
  start?: {
4660
5085
  coordinates?: {
4661
5086
  x: number;
@@ -4667,9 +5092,6 @@ declare const formSchema: z.ZodObject<{
4667
5092
  key: string;
4668
5093
  }[] | undefined;
4669
5094
  } | undefined;
4670
- style?: {
4671
- css?: string | undefined;
4672
- } | undefined;
4673
5095
  languages?: {
4674
5096
  default?: string | undefined;
4675
5097
  primary?: string | undefined;
@@ -4689,6 +5111,7 @@ declare const formSchema: z.ZodObject<{
4689
5111
  } | {
4690
5112
  type: "ROUTER";
4691
5113
  id: string;
5114
+ alias: string;
4692
5115
  config: {
4693
5116
  rules: {
4694
5117
  id: string;
@@ -4702,7 +5125,6 @@ declare const formSchema: z.ZodObject<{
4702
5125
  x: number;
4703
5126
  y: number;
4704
5127
  };
4705
- alias: string;
4706
5128
  } | {
4707
5129
  type: "STEP";
4708
5130
  id: string;
@@ -4815,8 +5237,11 @@ declare const formSchema: z.ZodObject<{
4815
5237
  }, {
4816
5238
  created_at: string;
4817
5239
  updated_at: string;
4818
- name: string;
4819
5240
  id: string;
5241
+ name: string;
5242
+ style?: {
5243
+ css?: string | undefined;
5244
+ } | undefined;
4820
5245
  start?: {
4821
5246
  coordinates?: {
4822
5247
  x: number;
@@ -4828,9 +5253,6 @@ declare const formSchema: z.ZodObject<{
4828
5253
  key: string;
4829
5254
  }[] | undefined;
4830
5255
  } | undefined;
4831
- style?: {
4832
- css?: string | undefined;
4833
- } | undefined;
4834
5256
  languages?: {
4835
5257
  default?: string | undefined;
4836
5258
  primary?: string | undefined;
@@ -4850,6 +5272,7 @@ declare const formSchema: z.ZodObject<{
4850
5272
  } | {
4851
5273
  type: "ROUTER";
4852
5274
  id: string;
5275
+ alias: string;
4853
5276
  config: {
4854
5277
  rules: {
4855
5278
  id: string;
@@ -4863,7 +5286,6 @@ declare const formSchema: z.ZodObject<{
4863
5286
  x: number;
4864
5287
  y: number;
4865
5288
  };
4866
- alias: string;
4867
5289
  } | {
4868
5290
  type: "STEP";
4869
5291
  id: string;
@@ -5143,9 +5565,9 @@ declare const inviteInsertSchema: z.ZodObject<{
5143
5565
  email?: string | undefined;
5144
5566
  };
5145
5567
  invitation_url: string;
5568
+ connection_id?: string | undefined;
5146
5569
  app_metadata?: Record<string, any> | undefined;
5147
5570
  user_metadata?: Record<string, any> | undefined;
5148
- connection_id?: string | undefined;
5149
5571
  ttl_sec?: number | undefined;
5150
5572
  roles?: string[] | undefined;
5151
5573
  send_invitation_email?: boolean | undefined;
@@ -5159,9 +5581,9 @@ declare const inviteInsertSchema: z.ZodObject<{
5159
5581
  email?: string | undefined;
5160
5582
  };
5161
5583
  invitation_url: string;
5584
+ connection_id?: string | undefined;
5162
5585
  app_metadata?: Record<string, any> | undefined;
5163
5586
  user_metadata?: Record<string, any> | undefined;
5164
- connection_id?: string | undefined;
5165
5587
  ttl_sec?: number | undefined;
5166
5588
  roles?: string[] | undefined;
5167
5589
  send_invitation_email?: boolean | undefined;
@@ -5198,8 +5620,8 @@ declare const inviteSchema: z.ZodObject<{
5198
5620
  send_invitation_email: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
5199
5621
  }, "strip", z.ZodTypeAny, {
5200
5622
  created_at: string;
5201
- client_id: string;
5202
5623
  id: string;
5624
+ client_id: string;
5203
5625
  expires_at: string;
5204
5626
  organization_id: string;
5205
5627
  inviter: {
@@ -5209,17 +5631,17 @@ declare const inviteSchema: z.ZodObject<{
5209
5631
  email?: string | undefined;
5210
5632
  };
5211
5633
  invitation_url: string;
5634
+ connection_id?: string | undefined;
5212
5635
  app_metadata?: Record<string, any> | undefined;
5213
5636
  user_metadata?: Record<string, any> | undefined;
5214
- connection_id?: string | undefined;
5215
5637
  ttl_sec?: number | undefined;
5216
5638
  roles?: string[] | undefined;
5217
5639
  send_invitation_email?: boolean | undefined;
5218
5640
  ticket_id?: string | undefined;
5219
5641
  }, {
5220
5642
  created_at: string;
5221
- client_id: string;
5222
5643
  id: string;
5644
+ client_id: string;
5223
5645
  expires_at: string;
5224
5646
  organization_id: string;
5225
5647
  inviter: {
@@ -5229,9 +5651,9 @@ declare const inviteSchema: z.ZodObject<{
5229
5651
  email?: string | undefined;
5230
5652
  };
5231
5653
  invitation_url: string;
5654
+ connection_id?: string | undefined;
5232
5655
  app_metadata?: Record<string, any> | undefined;
5233
5656
  user_metadata?: Record<string, any> | undefined;
5234
- connection_id?: string | undefined;
5235
5657
  ttl_sec?: number | undefined;
5236
5658
  roles?: string[] | undefined;
5237
5659
  send_invitation_email?: boolean | undefined;
@@ -5567,13 +5989,13 @@ declare const logInsertSchema: z.ZodObject<{
5567
5989
  date: string;
5568
5990
  isMobile: boolean;
5569
5991
  description?: string | undefined;
5570
- connection?: string | undefined;
5992
+ connection_id?: string | undefined;
5571
5993
  user_id?: string | undefined;
5994
+ connection?: string | undefined;
5572
5995
  client_id?: string | undefined;
5573
5996
  audience?: string | undefined;
5574
5997
  scope?: string | undefined;
5575
5998
  strategy?: string | undefined;
5576
- connection_id?: string | undefined;
5577
5999
  ip?: string | undefined;
5578
6000
  user_agent?: string | undefined;
5579
6001
  details?: any;
@@ -5602,13 +6024,13 @@ declare const logInsertSchema: z.ZodObject<{
5602
6024
  date: string;
5603
6025
  isMobile: boolean;
5604
6026
  description?: string | undefined;
5605
- connection?: string | undefined;
6027
+ connection_id?: string | undefined;
5606
6028
  user_id?: string | undefined;
6029
+ connection?: string | undefined;
5607
6030
  client_id?: string | undefined;
5608
6031
  audience?: string | undefined;
5609
6032
  scope?: string | undefined;
5610
6033
  strategy?: string | undefined;
5611
- connection_id?: string | undefined;
5612
6034
  ip?: string | undefined;
5613
6035
  user_agent?: string | undefined;
5614
6036
  details?: any;
@@ -5705,13 +6127,13 @@ declare const logSchema: z.ZodObject<{
5705
6127
  isMobile: boolean;
5706
6128
  log_id: string;
5707
6129
  description?: string | undefined;
5708
- connection?: string | undefined;
6130
+ connection_id?: string | undefined;
5709
6131
  user_id?: string | undefined;
6132
+ connection?: string | undefined;
5710
6133
  client_id?: string | undefined;
5711
6134
  audience?: string | undefined;
5712
6135
  scope?: string | undefined;
5713
6136
  strategy?: string | undefined;
5714
- connection_id?: string | undefined;
5715
6137
  ip?: string | undefined;
5716
6138
  user_agent?: string | undefined;
5717
6139
  details?: any;
@@ -5740,13 +6162,13 @@ declare const logSchema: z.ZodObject<{
5740
6162
  isMobile: boolean;
5741
6163
  log_id: string;
5742
6164
  description?: string | undefined;
5743
- connection?: string | undefined;
6165
+ connection_id?: string | undefined;
5744
6166
  user_id?: string | undefined;
6167
+ connection?: string | undefined;
5745
6168
  client_id?: string | undefined;
5746
6169
  audience?: string | undefined;
5747
6170
  scope?: string | undefined;
5748
6171
  strategy?: string | undefined;
5749
- connection_id?: string | undefined;
5750
6172
  ip?: string | undefined;
5751
6173
  user_agent?: string | undefined;
5752
6174
  details?: any;
@@ -5807,19 +6229,19 @@ declare const passwordSchema: z.ZodObject<{
5807
6229
  created_at: z.ZodString;
5808
6230
  updated_at: z.ZodString;
5809
6231
  }, "strip", z.ZodTypeAny, {
5810
- password: string;
5811
6232
  created_at: string;
5812
6233
  updated_at: string;
5813
- user_id: string;
6234
+ password: string;
5814
6235
  id: string;
6236
+ user_id: string;
5815
6237
  algorithm: "bcrypt" | "argon2id";
5816
6238
  is_current: boolean;
5817
6239
  }, {
5818
- password: string;
5819
6240
  created_at: string;
5820
6241
  updated_at: string;
5821
- user_id: string;
6242
+ password: string;
5822
6243
  id: string;
6244
+ user_id: string;
5823
6245
  algorithm?: "bcrypt" | "argon2id" | undefined;
5824
6246
  is_current?: boolean | undefined;
5825
6247
  }>;
@@ -5856,8 +6278,8 @@ declare const sessionInsertSchema: z.ZodObject<{
5856
6278
  }>;
5857
6279
  clients: z.ZodArray<z.ZodString, "many">;
5858
6280
  }, "strip", z.ZodTypeAny, {
5859
- user_id: string;
5860
6281
  id: string;
6282
+ user_id: string;
5861
6283
  clients: string[];
5862
6284
  login_session_id: string;
5863
6285
  device: {
@@ -5873,8 +6295,8 @@ declare const sessionInsertSchema: z.ZodObject<{
5873
6295
  revoked_at?: string | undefined;
5874
6296
  idle_expires_at?: string | undefined;
5875
6297
  }, {
5876
- user_id: string;
5877
6298
  id: string;
6299
+ user_id: string;
5878
6300
  clients: string[];
5879
6301
  login_session_id: string;
5880
6302
  device: {
@@ -5929,8 +6351,8 @@ declare const sessionSchema: z.ZodObject<{
5929
6351
  }, "strip", z.ZodTypeAny, {
5930
6352
  created_at: string;
5931
6353
  updated_at: string;
5932
- user_id: string;
5933
6354
  id: string;
6355
+ user_id: string;
5934
6356
  clients: string[];
5935
6357
  login_session_id: string;
5936
6358
  device: {
@@ -5950,8 +6372,8 @@ declare const sessionSchema: z.ZodObject<{
5950
6372
  }, {
5951
6373
  created_at: string;
5952
6374
  updated_at: string;
5953
- user_id: string;
5954
6375
  id: string;
6376
+ user_id: string;
5955
6377
  clients: string[];
5956
6378
  login_session_id: string;
5957
6379
  device: {
@@ -6259,8 +6681,8 @@ declare const tenantSchema: z.ZodObject<{
6259
6681
  }, "strip", z.ZodTypeAny, {
6260
6682
  created_at: string;
6261
6683
  updated_at: string;
6262
- audience: string;
6263
6684
  id: string;
6685
+ audience: string;
6264
6686
  friendly_name: string;
6265
6687
  sender_email: string;
6266
6688
  sender_name: string;
@@ -6359,8 +6781,8 @@ declare const tenantSchema: z.ZodObject<{
6359
6781
  }, {
6360
6782
  created_at: string | null;
6361
6783
  updated_at: string | null;
6362
- audience: string;
6363
6784
  id: string;
6785
+ audience: string;
6364
6786
  friendly_name: string;
6365
6787
  sender_email: string;
6366
6788
  sender_name: string;
@@ -7500,9 +7922,9 @@ declare const refreshTokenInsertSchema: z.ZodObject<{
7500
7922
  }>, "many">;
7501
7923
  rotating: z.ZodBoolean;
7502
7924
  }, "strip", z.ZodTypeAny, {
7925
+ id: string;
7503
7926
  user_id: string;
7504
7927
  client_id: string;
7505
- id: string;
7506
7928
  session_id: string;
7507
7929
  device: {
7508
7930
  last_ip: string;
@@ -7521,9 +7943,9 @@ declare const refreshTokenInsertSchema: z.ZodObject<{
7521
7943
  idle_expires_at?: string | undefined;
7522
7944
  last_exchanged_at?: string | undefined;
7523
7945
  }, {
7946
+ id: string;
7524
7947
  user_id: string;
7525
7948
  client_id: string;
7526
- id: string;
7527
7949
  session_id: string;
7528
7950
  device: {
7529
7951
  last_ip: string;
@@ -7587,9 +8009,9 @@ declare const refreshTokenSchema: z.ZodObject<{
7587
8009
  created_at: z.ZodString;
7588
8010
  }, "strip", z.ZodTypeAny, {
7589
8011
  created_at: string;
8012
+ id: string;
7590
8013
  user_id: string;
7591
8014
  client_id: string;
7592
- id: string;
7593
8015
  session_id: string;
7594
8016
  device: {
7595
8017
  last_ip: string;
@@ -7609,9 +8031,9 @@ declare const refreshTokenSchema: z.ZodObject<{
7609
8031
  last_exchanged_at?: string | undefined;
7610
8032
  }, {
7611
8033
  created_at: string;
8034
+ id: string;
7612
8035
  user_id: string;
7613
8036
  client_id: string;
7614
- id: string;
7615
8037
  session_id: string;
7616
8038
  device: {
7617
8039
  last_ip: string;
@@ -7805,6 +8227,8 @@ declare const resourceServerSchema: z.ZodObject<{
7805
8227
  }, "strip", z.ZodTypeAny, {
7806
8228
  name: string;
7807
8229
  identifier: string;
8230
+ created_at?: string | undefined;
8231
+ updated_at?: string | undefined;
7808
8232
  options?: {
7809
8233
  mtls?: {
7810
8234
  bound_access_tokens?: boolean | undefined;
@@ -7816,8 +8240,6 @@ declare const resourceServerSchema: z.ZodObject<{
7816
8240
  persist_client_authorization?: boolean | undefined;
7817
8241
  enable_introspection_endpoint?: boolean | undefined;
7818
8242
  } | undefined;
7819
- created_at?: string | undefined;
7820
- updated_at?: string | undefined;
7821
8243
  id?: string | undefined;
7822
8244
  scopes?: {
7823
8245
  value: string;
@@ -7833,6 +8255,8 @@ declare const resourceServerSchema: z.ZodObject<{
7833
8255
  }, {
7834
8256
  name: string;
7835
8257
  identifier: string;
8258
+ created_at?: string | undefined;
8259
+ updated_at?: string | undefined;
7836
8260
  options?: {
7837
8261
  mtls?: {
7838
8262
  bound_access_tokens?: boolean | undefined;
@@ -7844,8 +8268,6 @@ declare const resourceServerSchema: z.ZodObject<{
7844
8268
  persist_client_authorization?: boolean | undefined;
7845
8269
  enable_introspection_endpoint?: boolean | undefined;
7846
8270
  } | undefined;
7847
- created_at?: string | undefined;
7848
- updated_at?: string | undefined;
7849
8271
  id?: string | undefined;
7850
8272
  scopes?: {
7851
8273
  value: string;
@@ -7921,16 +8343,16 @@ declare const userPermissionWithDetailsListSchema: z.ZodArray<z.ZodObject<{
7921
8343
  resource_server_identifier: string;
7922
8344
  permission_name: string;
7923
8345
  resource_server_name: string;
7924
- description?: string | null | undefined;
7925
8346
  created_at?: string | undefined;
8347
+ description?: string | null | undefined;
7926
8348
  organization_id?: string | undefined;
7927
8349
  }, {
7928
8350
  user_id: string;
7929
8351
  resource_server_identifier: string;
7930
8352
  permission_name: string;
7931
8353
  resource_server_name: string;
7932
- description?: string | null | undefined;
7933
8354
  created_at?: string | undefined;
8355
+ description?: string | null | undefined;
7934
8356
  organization_id?: string | undefined;
7935
8357
  }>, "many">;
7936
8358
  export type UserPermissionWithDetailsList = z.infer<typeof userPermissionWithDetailsListSchema>;
@@ -7951,17 +8373,17 @@ declare const roleSchema: z.ZodObject<{
7951
8373
  description: z.ZodOptional<z.ZodString>;
7952
8374
  id: z.ZodString;
7953
8375
  }, "strip", z.ZodTypeAny, {
7954
- name: string;
7955
8376
  id: string;
7956
- description?: string | undefined;
8377
+ name: string;
7957
8378
  created_at?: string | undefined;
7958
8379
  updated_at?: string | undefined;
8380
+ description?: string | undefined;
7959
8381
  }, {
7960
- name: string;
7961
8382
  id: string;
7962
- description?: string | undefined;
8383
+ name: string;
7963
8384
  created_at?: string | undefined;
7964
8385
  updated_at?: string | undefined;
8386
+ description?: string | undefined;
7965
8387
  }>;
7966
8388
  export type Role = z.infer<typeof roleSchema>;
7967
8389
  export type RoleInsert = z.infer<typeof roleInsertSchema>;
@@ -8001,8 +8423,8 @@ declare const organizationInsertSchema: z.ZodObject<{
8001
8423
  show_as_button: z.ZodDefault<z.ZodBoolean>;
8002
8424
  is_signup_enabled: z.ZodDefault<z.ZodBoolean>;
8003
8425
  }, "strip", z.ZodTypeAny, {
8004
- show_as_button: boolean;
8005
8426
  connection_id: string;
8427
+ show_as_button: boolean;
8006
8428
  assign_membership_on_login: boolean;
8007
8429
  is_signup_enabled: boolean;
8008
8430
  }, {
@@ -8040,6 +8462,7 @@ declare const organizationInsertSchema: z.ZodObject<{
8040
8462
  }>>;
8041
8463
  }, "strip", z.ZodTypeAny, {
8042
8464
  name: string;
8465
+ id?: string | undefined;
8043
8466
  token_quota?: {
8044
8467
  client_credentials?: {
8045
8468
  enforce: boolean;
@@ -8047,7 +8470,6 @@ declare const organizationInsertSchema: z.ZodObject<{
8047
8470
  per_hour: number;
8048
8471
  } | undefined;
8049
8472
  } | undefined;
8050
- id?: string | undefined;
8051
8473
  display_name?: string | undefined;
8052
8474
  metadata?: Record<string, any> | undefined;
8053
8475
  branding?: {
@@ -8058,13 +8480,14 @@ declare const organizationInsertSchema: z.ZodObject<{
8058
8480
  logo_url?: string | undefined;
8059
8481
  } | undefined;
8060
8482
  enabled_connections?: {
8061
- show_as_button: boolean;
8062
8483
  connection_id: string;
8484
+ show_as_button: boolean;
8063
8485
  assign_membership_on_login: boolean;
8064
8486
  is_signup_enabled: boolean;
8065
8487
  }[] | undefined;
8066
8488
  }, {
8067
8489
  name: string;
8490
+ id?: string | undefined;
8068
8491
  token_quota?: {
8069
8492
  client_credentials?: {
8070
8493
  enforce?: boolean | undefined;
@@ -8072,7 +8495,6 @@ declare const organizationInsertSchema: z.ZodObject<{
8072
8495
  per_hour?: number | undefined;
8073
8496
  } | undefined;
8074
8497
  } | undefined;
8075
- id?: string | undefined;
8076
8498
  display_name?: string | undefined;
8077
8499
  metadata?: Record<string, any> | undefined;
8078
8500
  branding?: {
@@ -8128,8 +8550,8 @@ declare const organizationSchema: z.ZodObject<{
8128
8550
  show_as_button: z.ZodDefault<z.ZodBoolean>;
8129
8551
  is_signup_enabled: z.ZodDefault<z.ZodBoolean>;
8130
8552
  }, "strip", z.ZodTypeAny, {
8131
- show_as_button: boolean;
8132
8553
  connection_id: string;
8554
+ show_as_button: boolean;
8133
8555
  assign_membership_on_login: boolean;
8134
8556
  is_signup_enabled: boolean;
8135
8557
  }, {
@@ -8168,8 +8590,8 @@ declare const organizationSchema: z.ZodObject<{
8168
8590
  }, "strip", z.ZodTypeAny, {
8169
8591
  created_at: string;
8170
8592
  updated_at: string;
8171
- name: string;
8172
8593
  id: string;
8594
+ name: string;
8173
8595
  token_quota?: {
8174
8596
  client_credentials?: {
8175
8597
  enforce: boolean;
@@ -8187,16 +8609,16 @@ declare const organizationSchema: z.ZodObject<{
8187
8609
  logo_url?: string | undefined;
8188
8610
  } | undefined;
8189
8611
  enabled_connections?: {
8190
- show_as_button: boolean;
8191
8612
  connection_id: string;
8613
+ show_as_button: boolean;
8192
8614
  assign_membership_on_login: boolean;
8193
8615
  is_signup_enabled: boolean;
8194
8616
  }[] | undefined;
8195
8617
  }, {
8196
8618
  created_at: string;
8197
8619
  updated_at: string;
8198
- name: string;
8199
8620
  id: string;
8621
+ name: string;
8200
8622
  token_quota?: {
8201
8623
  client_credentials?: {
8202
8624
  enforce?: boolean | undefined;
@@ -8241,14 +8663,14 @@ declare const userOrganizationSchema: z.ZodObject<{
8241
8663
  }, "strip", z.ZodTypeAny, {
8242
8664
  created_at: string;
8243
8665
  updated_at: string;
8244
- user_id: string;
8245
8666
  id: string;
8667
+ user_id: string;
8246
8668
  organization_id: string;
8247
8669
  }, {
8248
8670
  created_at: string;
8249
8671
  updated_at: string;
8250
- user_id: string;
8251
8672
  id: string;
8673
+ user_id: string;
8252
8674
  organization_id: string;
8253
8675
  }>;
8254
8676
  export type UserOrganization = z.infer<typeof userOrganizationSchema>;
@@ -8260,21 +8682,31 @@ declare const dailyStatsSchema: z.ZodObject<{
8260
8682
  updated_at: z.ZodString;
8261
8683
  created_at: z.ZodString;
8262
8684
  }, "strip", z.ZodTypeAny, {
8263
- date: string;
8264
8685
  created_at: string;
8265
8686
  updated_at: string;
8687
+ date: string;
8266
8688
  logins: number;
8267
8689
  signups: number;
8268
8690
  leaked_passwords: number;
8269
8691
  }, {
8270
- date: string;
8271
8692
  created_at: string;
8272
8693
  updated_at: string;
8694
+ date: string;
8273
8695
  logins: number;
8274
8696
  signups: number;
8275
8697
  leaked_passwords: number;
8276
8698
  }>;
8277
8699
  export type DailyStats = z.infer<typeof dailyStatsSchema>;
8700
+ export interface ListFlowsResponse extends Totals {
8701
+ flows: Flow[];
8702
+ }
8703
+ export interface FlowsAdapter {
8704
+ create(tenant_id: string, params: FlowInsert): Promise<Flow>;
8705
+ get(tenant_id: string, flow_id: string): Promise<Flow | null>;
8706
+ remove(tenant_id: string, flow_id: string): Promise<boolean>;
8707
+ update(tenant_id: string, flow_id: string, flow: Partial<FlowInsert>): Promise<Flow | null>;
8708
+ list(tenant_id: string, params?: ListParams): Promise<ListFlowsResponse>;
8709
+ }
8278
8710
  export interface CacheAdapter {
8279
8711
  /**
8280
8712
  * Get a value from the cache
@@ -8610,6 +9042,7 @@ export interface DataAdapters {
8610
9042
  connections: ConnectionsAdapter;
8611
9043
  customDomains: CustomDomainsAdapter;
8612
9044
  emailProviders: EmailProvidersAdapter;
9045
+ flows: FlowsAdapter;
8613
9046
  forms: FormsAdapter;
8614
9047
  geo?: GeoAdapter;
8615
9048
  hooks: HooksAdapter;
@@ -8780,8 +9213,8 @@ declare const sqlUserSchema: z.ZodObject<{
8780
9213
  family_name: z.ZodOptional<z.ZodString>;
8781
9214
  }, z.ZodAny, "strip">>>;
8782
9215
  }, "strip", z.ZodTypeAny, {
8783
- connection: string;
8784
9216
  user_id: string;
9217
+ connection: string;
8785
9218
  provider: string;
8786
9219
  isSocial: boolean;
8787
9220
  access_token?: string | undefined;
@@ -8798,8 +9231,8 @@ declare const sqlUserSchema: z.ZodObject<{
8798
9231
  family_name: z.ZodOptional<z.ZodString>;
8799
9232
  }, z.ZodAny, "strip"> | undefined;
8800
9233
  }, {
8801
- connection: string;
8802
9234
  user_id: string;
9235
+ connection: string;
8803
9236
  provider: string;
8804
9237
  isSocial: boolean;
8805
9238
  access_token?: string | undefined;
@@ -8847,8 +9280,8 @@ declare const sqlUserSchema: z.ZodObject<{
8847
9280
  name?: string | undefined;
8848
9281
  email?: string | undefined;
8849
9282
  identities?: {
8850
- connection: string;
8851
9283
  user_id: string;
9284
+ connection: string;
8852
9285
  provider: string;
8853
9286
  isSocial: boolean;
8854
9287
  access_token?: string | undefined;
@@ -8892,8 +9325,8 @@ declare const sqlUserSchema: z.ZodObject<{
8892
9325
  email?: string | undefined;
8893
9326
  login_count?: number | undefined;
8894
9327
  identities?: {
8895
- connection: string;
8896
9328
  user_id: string;
9329
+ connection: string;
8897
9330
  provider: string;
8898
9331
  isSocial: boolean;
8899
9332
  access_token?: string | undefined;
@@ -9251,6 +9684,28 @@ declare const sqlFormSchema: z.ZodObject<{
9251
9684
  } | undefined;
9252
9685
  translations?: Record<string, any> | undefined;
9253
9686
  }>;
9687
+ declare const sqlFlowSchema: z.ZodObject<{
9688
+ tenant_id: z.ZodString;
9689
+ actions: z.ZodDefault<z.ZodOptional<z.ZodString>>;
9690
+ name: z.ZodString;
9691
+ id: z.ZodString;
9692
+ created_at: z.ZodString;
9693
+ updated_at: z.ZodString;
9694
+ }, "strip", z.ZodTypeAny, {
9695
+ tenant_id: string;
9696
+ id: string;
9697
+ name: string;
9698
+ created_at: string;
9699
+ updated_at: string;
9700
+ actions: string;
9701
+ }, {
9702
+ tenant_id: string;
9703
+ id: string;
9704
+ name: string;
9705
+ created_at: string;
9706
+ updated_at: string;
9707
+ actions?: string | undefined;
9708
+ }>;
9254
9709
  declare const sqlLogSchema: z.ZodObject<{
9255
9710
  id: z.ZodOptional<z.ZodString>;
9256
9711
  tenant_id: z.ZodString;
@@ -10296,6 +10751,7 @@ declare const sqlClientSchema: z.ZodObject<{
10296
10751
  par_request_expiry?: number | undefined;
10297
10752
  }>;
10298
10753
  export interface Database {
10754
+ flows: z.infer<typeof sqlFlowSchema>;
10299
10755
  branding: z.infer<typeof sqlBrandingSchema>;
10300
10756
  clients: z.infer<typeof sqlClientSchema>;
10301
10757
  client_grants: z.infer<typeof sqlClientGrantSchema>;