@authhero/kysely-adapter 10.121.1 → 10.123.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.
- package/dist/kysely-adapter.cjs +12 -12
- package/dist/kysely-adapter.d.ts +357 -98
- package/dist/kysely-adapter.mjs +1971 -1697
- package/package.json +2 -2
package/dist/kysely-adapter.d.ts
CHANGED
|
@@ -3,6 +3,164 @@
|
|
|
3
3
|
import { z } from '@hono/zod-openapi';
|
|
4
4
|
import { Kysely } from 'kysely';
|
|
5
5
|
|
|
6
|
+
declare const actionInsertSchema: z.ZodObject<{
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
code: z.ZodString;
|
|
9
|
+
supported_triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
version: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
id: string;
|
|
14
|
+
version?: string | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
id: string;
|
|
17
|
+
version?: string | undefined;
|
|
18
|
+
}>, "many">>;
|
|
19
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
20
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
version: z.ZodString;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
version: string;
|
|
25
|
+
name: string;
|
|
26
|
+
}, {
|
|
27
|
+
version: string;
|
|
28
|
+
name: string;
|
|
29
|
+
}>, "many">>;
|
|
30
|
+
secrets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
31
|
+
name: z.ZodString;
|
|
32
|
+
value: z.ZodString;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
value: string;
|
|
35
|
+
name: string;
|
|
36
|
+
}, {
|
|
37
|
+
value: string;
|
|
38
|
+
name: string;
|
|
39
|
+
}>, "many">>;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
code: string;
|
|
42
|
+
name: string;
|
|
43
|
+
supported_triggers?: {
|
|
44
|
+
id: string;
|
|
45
|
+
version?: string | undefined;
|
|
46
|
+
}[] | undefined;
|
|
47
|
+
runtime?: string | undefined;
|
|
48
|
+
dependencies?: {
|
|
49
|
+
version: string;
|
|
50
|
+
name: string;
|
|
51
|
+
}[] | undefined;
|
|
52
|
+
secrets?: {
|
|
53
|
+
value: string;
|
|
54
|
+
name: string;
|
|
55
|
+
}[] | undefined;
|
|
56
|
+
}, {
|
|
57
|
+
code: string;
|
|
58
|
+
name: string;
|
|
59
|
+
supported_triggers?: {
|
|
60
|
+
id: string;
|
|
61
|
+
version?: string | undefined;
|
|
62
|
+
}[] | undefined;
|
|
63
|
+
runtime?: string | undefined;
|
|
64
|
+
dependencies?: {
|
|
65
|
+
version: string;
|
|
66
|
+
name: string;
|
|
67
|
+
}[] | undefined;
|
|
68
|
+
secrets?: {
|
|
69
|
+
value: string;
|
|
70
|
+
name: string;
|
|
71
|
+
}[] | undefined;
|
|
72
|
+
}>;
|
|
73
|
+
export type ActionInsert = z.infer<typeof actionInsertSchema>;
|
|
74
|
+
declare const actionSchema: z.ZodObject<{
|
|
75
|
+
name: z.ZodString;
|
|
76
|
+
code: z.ZodString;
|
|
77
|
+
supported_triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
78
|
+
id: z.ZodString;
|
|
79
|
+
version: z.ZodOptional<z.ZodString>;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
id: string;
|
|
82
|
+
version?: string | undefined;
|
|
83
|
+
}, {
|
|
84
|
+
id: string;
|
|
85
|
+
version?: string | undefined;
|
|
86
|
+
}>, "many">>;
|
|
87
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
88
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
89
|
+
name: z.ZodString;
|
|
90
|
+
version: z.ZodString;
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
version: string;
|
|
93
|
+
name: string;
|
|
94
|
+
}, {
|
|
95
|
+
version: string;
|
|
96
|
+
name: string;
|
|
97
|
+
}>, "many">>;
|
|
98
|
+
} & {
|
|
99
|
+
created_at: z.ZodString;
|
|
100
|
+
updated_at: z.ZodString;
|
|
101
|
+
id: z.ZodString;
|
|
102
|
+
tenant_id: z.ZodString;
|
|
103
|
+
status: z.ZodDefault<z.ZodEnum<[
|
|
104
|
+
"draft",
|
|
105
|
+
"built"
|
|
106
|
+
]>>;
|
|
107
|
+
deployed_at: z.ZodOptional<z.ZodString>;
|
|
108
|
+
secrets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
109
|
+
name: z.ZodString;
|
|
110
|
+
value: z.ZodOptional<z.ZodString>;
|
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
|
112
|
+
name: string;
|
|
113
|
+
value?: string | undefined;
|
|
114
|
+
}, {
|
|
115
|
+
name: string;
|
|
116
|
+
value?: string | undefined;
|
|
117
|
+
}>, "many">>;
|
|
118
|
+
}, "strip", z.ZodTypeAny, {
|
|
119
|
+
created_at: string;
|
|
120
|
+
updated_at: string;
|
|
121
|
+
code: string;
|
|
122
|
+
status: "draft" | "built";
|
|
123
|
+
id: string;
|
|
124
|
+
name: string;
|
|
125
|
+
tenant_id: string;
|
|
126
|
+
supported_triggers?: {
|
|
127
|
+
id: string;
|
|
128
|
+
version?: string | undefined;
|
|
129
|
+
}[] | undefined;
|
|
130
|
+
runtime?: string | undefined;
|
|
131
|
+
dependencies?: {
|
|
132
|
+
version: string;
|
|
133
|
+
name: string;
|
|
134
|
+
}[] | undefined;
|
|
135
|
+
secrets?: {
|
|
136
|
+
name: string;
|
|
137
|
+
value?: string | undefined;
|
|
138
|
+
}[] | undefined;
|
|
139
|
+
deployed_at?: string | undefined;
|
|
140
|
+
}, {
|
|
141
|
+
created_at: string;
|
|
142
|
+
updated_at: string;
|
|
143
|
+
code: string;
|
|
144
|
+
id: string;
|
|
145
|
+
name: string;
|
|
146
|
+
tenant_id: string;
|
|
147
|
+
status?: "draft" | "built" | undefined;
|
|
148
|
+
supported_triggers?: {
|
|
149
|
+
id: string;
|
|
150
|
+
version?: string | undefined;
|
|
151
|
+
}[] | undefined;
|
|
152
|
+
runtime?: string | undefined;
|
|
153
|
+
dependencies?: {
|
|
154
|
+
version: string;
|
|
155
|
+
name: string;
|
|
156
|
+
}[] | undefined;
|
|
157
|
+
secrets?: {
|
|
158
|
+
name: string;
|
|
159
|
+
value?: string | undefined;
|
|
160
|
+
}[] | undefined;
|
|
161
|
+
deployed_at?: string | undefined;
|
|
162
|
+
}>;
|
|
163
|
+
export type Action = z.infer<typeof actionSchema>;
|
|
6
164
|
declare const auditEventInsertSchema: z.ZodObject<{
|
|
7
165
|
tenant_id: z.ZodString;
|
|
8
166
|
event_type: z.ZodString;
|
|
@@ -144,12 +302,12 @@ declare const auditEventInsertSchema: z.ZodObject<{
|
|
|
144
302
|
version: z.ZodString;
|
|
145
303
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
146
304
|
}, "strip", z.ZodTypeAny, {
|
|
147
|
-
name: string;
|
|
148
305
|
version: string;
|
|
306
|
+
name: string;
|
|
149
307
|
env?: Record<string, string> | undefined;
|
|
150
308
|
}, {
|
|
151
|
-
name: string;
|
|
152
309
|
version: string;
|
|
310
|
+
name: string;
|
|
153
311
|
env?: Record<string, string> | undefined;
|
|
154
312
|
}>>;
|
|
155
313
|
hostname: z.ZodString;
|
|
@@ -207,8 +365,8 @@ declare const auditEventInsertSchema: z.ZodObject<{
|
|
|
207
365
|
continent_code: string;
|
|
208
366
|
} | undefined;
|
|
209
367
|
auth0_client?: {
|
|
210
|
-
name: string;
|
|
211
368
|
version: string;
|
|
369
|
+
name: string;
|
|
212
370
|
env?: Record<string, string> | undefined;
|
|
213
371
|
} | undefined;
|
|
214
372
|
is_mobile?: boolean | undefined;
|
|
@@ -264,8 +422,8 @@ declare const auditEventInsertSchema: z.ZodObject<{
|
|
|
264
422
|
continent_code: string;
|
|
265
423
|
} | undefined;
|
|
266
424
|
auth0_client?: {
|
|
267
|
-
name: string;
|
|
268
425
|
version: string;
|
|
426
|
+
name: string;
|
|
269
427
|
env?: Record<string, string> | undefined;
|
|
270
428
|
} | undefined;
|
|
271
429
|
is_mobile?: boolean | undefined;
|
|
@@ -412,12 +570,12 @@ declare const auditEventSchema: z.ZodObject<{
|
|
|
412
570
|
version: z.ZodString;
|
|
413
571
|
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
414
572
|
}, "strip", z.ZodTypeAny, {
|
|
415
|
-
name: string;
|
|
416
573
|
version: string;
|
|
574
|
+
name: string;
|
|
417
575
|
env?: Record<string, string> | undefined;
|
|
418
576
|
}, {
|
|
419
|
-
name: string;
|
|
420
577
|
version: string;
|
|
578
|
+
name: string;
|
|
421
579
|
env?: Record<string, string> | undefined;
|
|
422
580
|
}>>;
|
|
423
581
|
hostname: z.ZodString;
|
|
@@ -478,8 +636,8 @@ declare const auditEventSchema: z.ZodObject<{
|
|
|
478
636
|
continent_code: string;
|
|
479
637
|
} | undefined;
|
|
480
638
|
auth0_client?: {
|
|
481
|
-
name: string;
|
|
482
639
|
version: string;
|
|
640
|
+
name: string;
|
|
483
641
|
env?: Record<string, string> | undefined;
|
|
484
642
|
} | undefined;
|
|
485
643
|
is_mobile?: boolean | undefined;
|
|
@@ -536,8 +694,8 @@ declare const auditEventSchema: z.ZodObject<{
|
|
|
536
694
|
continent_code: string;
|
|
537
695
|
} | undefined;
|
|
538
696
|
auth0_client?: {
|
|
539
|
-
name: string;
|
|
540
697
|
version: string;
|
|
698
|
+
name: string;
|
|
541
699
|
env?: Record<string, string> | undefined;
|
|
542
700
|
} | undefined;
|
|
543
701
|
is_mobile?: boolean | undefined;
|
|
@@ -1002,10 +1160,10 @@ declare const flowSchema: z.ZodObject<{
|
|
|
1002
1160
|
created_at: z.ZodString;
|
|
1003
1161
|
updated_at: z.ZodString;
|
|
1004
1162
|
}, "strip", z.ZodTypeAny, {
|
|
1005
|
-
name: string;
|
|
1006
|
-
id: string;
|
|
1007
1163
|
created_at: string;
|
|
1008
1164
|
updated_at: string;
|
|
1165
|
+
id: string;
|
|
1166
|
+
name: string;
|
|
1009
1167
|
actions: ({
|
|
1010
1168
|
params: {
|
|
1011
1169
|
user_id: string;
|
|
@@ -1049,10 +1207,10 @@ declare const flowSchema: z.ZodObject<{
|
|
|
1049
1207
|
mask_output?: boolean | undefined;
|
|
1050
1208
|
})[];
|
|
1051
1209
|
}, {
|
|
1052
|
-
name: string;
|
|
1053
|
-
id: string;
|
|
1054
1210
|
created_at: string;
|
|
1055
1211
|
updated_at: string;
|
|
1212
|
+
id: string;
|
|
1213
|
+
name: string;
|
|
1056
1214
|
actions?: ({
|
|
1057
1215
|
params: {
|
|
1058
1216
|
user_id: string;
|
|
@@ -1156,6 +1314,7 @@ declare const userInsertSchema: z.ZodObject<{
|
|
|
1156
1314
|
provider: z.ZodOptional<z.ZodString>;
|
|
1157
1315
|
connection: z.ZodString;
|
|
1158
1316
|
is_social: z.ZodOptional<z.ZodBoolean>;
|
|
1317
|
+
registration_completed_at: z.ZodOptional<z.ZodString>;
|
|
1159
1318
|
password: z.ZodOptional<z.ZodObject<{
|
|
1160
1319
|
hash: z.ZodString;
|
|
1161
1320
|
algorithm: z.ZodString;
|
|
@@ -1208,6 +1367,7 @@ declare const userInsertSchema: z.ZodObject<{
|
|
|
1208
1367
|
last_ip?: string | undefined;
|
|
1209
1368
|
last_login?: string | undefined;
|
|
1210
1369
|
is_social?: boolean | undefined;
|
|
1370
|
+
registration_completed_at?: string | undefined;
|
|
1211
1371
|
}, {
|
|
1212
1372
|
connection: string;
|
|
1213
1373
|
password?: {
|
|
@@ -1250,6 +1410,7 @@ declare const userInsertSchema: z.ZodObject<{
|
|
|
1250
1410
|
last_ip?: string | undefined;
|
|
1251
1411
|
last_login?: string | undefined;
|
|
1252
1412
|
is_social?: boolean | undefined;
|
|
1413
|
+
registration_completed_at?: string | undefined;
|
|
1253
1414
|
}>;
|
|
1254
1415
|
export type UserInsert = z.infer<typeof userInsertSchema>;
|
|
1255
1416
|
declare const userSchema: z.ZodObject<{
|
|
@@ -1395,10 +1556,11 @@ declare const userSchema: z.ZodObject<{
|
|
|
1395
1556
|
verify_email: z.ZodOptional<z.ZodBoolean>;
|
|
1396
1557
|
last_ip: z.ZodOptional<z.ZodString>;
|
|
1397
1558
|
last_login: z.ZodOptional<z.ZodString>;
|
|
1559
|
+
registration_completed_at: z.ZodOptional<z.ZodString>;
|
|
1398
1560
|
}, "strip", z.ZodTypeAny, {
|
|
1399
|
-
connection: string;
|
|
1400
1561
|
created_at: string;
|
|
1401
1562
|
updated_at: string;
|
|
1563
|
+
connection: string;
|
|
1402
1564
|
user_id: string;
|
|
1403
1565
|
email_verified: boolean;
|
|
1404
1566
|
provider: string;
|
|
@@ -1436,6 +1598,7 @@ declare const userSchema: z.ZodObject<{
|
|
|
1436
1598
|
verify_email?: boolean | undefined;
|
|
1437
1599
|
last_ip?: string | undefined;
|
|
1438
1600
|
last_login?: string | undefined;
|
|
1601
|
+
registration_completed_at?: string | undefined;
|
|
1439
1602
|
identities?: {
|
|
1440
1603
|
connection: string;
|
|
1441
1604
|
user_id: string;
|
|
@@ -1461,9 +1624,9 @@ declare const userSchema: z.ZodObject<{
|
|
|
1461
1624
|
}, z.ZodAny, "strip"> | undefined;
|
|
1462
1625
|
}[] | undefined;
|
|
1463
1626
|
}, {
|
|
1464
|
-
connection: string;
|
|
1465
1627
|
created_at: string;
|
|
1466
1628
|
updated_at: string;
|
|
1629
|
+
connection: string;
|
|
1467
1630
|
user_id: string;
|
|
1468
1631
|
provider: string;
|
|
1469
1632
|
is_social: boolean;
|
|
@@ -1500,6 +1663,7 @@ declare const userSchema: z.ZodObject<{
|
|
|
1500
1663
|
verify_email?: boolean | undefined;
|
|
1501
1664
|
last_ip?: string | undefined;
|
|
1502
1665
|
last_login?: string | undefined;
|
|
1666
|
+
registration_completed_at?: string | undefined;
|
|
1503
1667
|
login_count?: number | undefined;
|
|
1504
1668
|
identities?: {
|
|
1505
1669
|
connection: string;
|
|
@@ -1816,10 +1980,10 @@ declare const clientSchema: z.ZodObject<{
|
|
|
1816
1980
|
created_at: z.ZodString;
|
|
1817
1981
|
updated_at: z.ZodString;
|
|
1818
1982
|
}, "strip", z.ZodTypeAny, {
|
|
1819
|
-
name: string;
|
|
1820
|
-
client_id: string;
|
|
1821
1983
|
created_at: string;
|
|
1822
1984
|
updated_at: string;
|
|
1985
|
+
name: string;
|
|
1986
|
+
client_id: string;
|
|
1823
1987
|
global: boolean;
|
|
1824
1988
|
is_first_party: boolean;
|
|
1825
1989
|
oidc_conformant: boolean;
|
|
@@ -1867,10 +2031,10 @@ declare const clientSchema: z.ZodObject<{
|
|
|
1867
2031
|
par_request_expiry?: number | undefined;
|
|
1868
2032
|
token_quota?: Record<string, any> | undefined;
|
|
1869
2033
|
}, {
|
|
1870
|
-
name: string;
|
|
1871
|
-
client_id: string;
|
|
1872
2034
|
created_at: string;
|
|
1873
2035
|
updated_at: string;
|
|
2036
|
+
name: string;
|
|
2037
|
+
client_id: string;
|
|
1874
2038
|
description?: string | undefined;
|
|
1875
2039
|
refresh_token?: Record<string, any> | undefined;
|
|
1876
2040
|
global?: boolean | undefined;
|
|
@@ -3742,6 +3906,8 @@ declare const connectionSchema: z.ZodObject<{
|
|
|
3742
3906
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
3743
3907
|
is_system: z.ZodOptional<z.ZodBoolean>;
|
|
3744
3908
|
}, "strip", z.ZodTypeAny, {
|
|
3909
|
+
created_at: string;
|
|
3910
|
+
updated_at: string;
|
|
3745
3911
|
options: {
|
|
3746
3912
|
validation?: {
|
|
3747
3913
|
username?: {
|
|
@@ -3848,8 +4014,6 @@ declare const connectionSchema: z.ZodObject<{
|
|
|
3848
4014
|
};
|
|
3849
4015
|
name: string;
|
|
3850
4016
|
strategy: string;
|
|
3851
|
-
created_at: string;
|
|
3852
|
-
updated_at: string;
|
|
3853
4017
|
id?: string | undefined;
|
|
3854
4018
|
is_system?: boolean | undefined;
|
|
3855
4019
|
response_type?: AuthorizationResponseType | undefined;
|
|
@@ -3860,10 +4024,10 @@ declare const connectionSchema: z.ZodObject<{
|
|
|
3860
4024
|
show_as_button?: boolean | undefined;
|
|
3861
4025
|
metadata?: Record<string, any> | undefined;
|
|
3862
4026
|
}, {
|
|
3863
|
-
name: string;
|
|
3864
|
-
strategy: string;
|
|
3865
4027
|
created_at: string;
|
|
3866
4028
|
updated_at: string;
|
|
4029
|
+
name: string;
|
|
4030
|
+
strategy: string;
|
|
3867
4031
|
options?: {
|
|
3868
4032
|
validation?: {
|
|
3869
4033
|
username?: {
|
|
@@ -13856,10 +14020,10 @@ declare const formSchema: z.ZodObject<{
|
|
|
13856
14020
|
created_at: z.ZodString;
|
|
13857
14021
|
updated_at: z.ZodString;
|
|
13858
14022
|
}, "strip", z.ZodTypeAny, {
|
|
13859
|
-
name: string;
|
|
13860
|
-
id: string;
|
|
13861
14023
|
created_at: string;
|
|
13862
14024
|
updated_at: string;
|
|
14025
|
+
id: string;
|
|
14026
|
+
name: string;
|
|
13863
14027
|
style?: {
|
|
13864
14028
|
css?: string | undefined;
|
|
13865
14029
|
} | undefined;
|
|
@@ -14419,10 +14583,10 @@ declare const formSchema: z.ZodObject<{
|
|
|
14419
14583
|
} | undefined;
|
|
14420
14584
|
translations?: Record<string, any> | undefined;
|
|
14421
14585
|
}, {
|
|
14422
|
-
name: string;
|
|
14423
|
-
id: string;
|
|
14424
14586
|
created_at: string;
|
|
14425
14587
|
updated_at: string;
|
|
14588
|
+
id: string;
|
|
14589
|
+
name: string;
|
|
14426
14590
|
style?: {
|
|
14427
14591
|
css?: string | undefined;
|
|
14428
14592
|
} | undefined;
|
|
@@ -15259,18 +15423,18 @@ declare const hookCodeSchema: z.ZodObject<{
|
|
|
15259
15423
|
id: z.ZodString;
|
|
15260
15424
|
tenant_id: z.ZodString;
|
|
15261
15425
|
}, "strip", z.ZodTypeAny, {
|
|
15426
|
+
created_at: string;
|
|
15427
|
+
updated_at: string;
|
|
15262
15428
|
code: string;
|
|
15263
15429
|
id: string;
|
|
15264
15430
|
tenant_id: string;
|
|
15265
|
-
created_at: string;
|
|
15266
|
-
updated_at: string;
|
|
15267
15431
|
secrets?: Record<string, string> | undefined;
|
|
15268
15432
|
}, {
|
|
15433
|
+
created_at: string;
|
|
15434
|
+
updated_at: string;
|
|
15269
15435
|
code: string;
|
|
15270
15436
|
id: string;
|
|
15271
15437
|
tenant_id: string;
|
|
15272
|
-
created_at: string;
|
|
15273
|
-
updated_at: string;
|
|
15274
15438
|
secrets?: Record<string, string> | undefined;
|
|
15275
15439
|
}>;
|
|
15276
15440
|
export type HookCode = z.infer<typeof hookCodeSchema>;
|
|
@@ -15362,9 +15526,9 @@ declare const inviteSchema: z.ZodObject<{
|
|
|
15362
15526
|
roles: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
15363
15527
|
send_invitation_email: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
15364
15528
|
}, "strip", z.ZodTypeAny, {
|
|
15529
|
+
created_at: string;
|
|
15365
15530
|
id: string;
|
|
15366
15531
|
client_id: string;
|
|
15367
|
-
created_at: string;
|
|
15368
15532
|
expires_at: string;
|
|
15369
15533
|
organization_id: string;
|
|
15370
15534
|
inviter: {
|
|
@@ -15382,9 +15546,9 @@ declare const inviteSchema: z.ZodObject<{
|
|
|
15382
15546
|
send_invitation_email?: boolean | undefined;
|
|
15383
15547
|
ticket_id?: string | undefined;
|
|
15384
15548
|
}, {
|
|
15549
|
+
created_at: string;
|
|
15385
15550
|
id: string;
|
|
15386
15551
|
client_id: string;
|
|
15387
|
-
created_at: string;
|
|
15388
15552
|
expires_at: string;
|
|
15389
15553
|
organization_id: string;
|
|
15390
15554
|
inviter: {
|
|
@@ -15653,9 +15817,9 @@ declare const loginSessionSchema: z.ZodObject<{
|
|
|
15653
15817
|
user_id: z.ZodOptional<z.ZodString>;
|
|
15654
15818
|
auth_connection: z.ZodOptional<z.ZodString>;
|
|
15655
15819
|
}, "strip", z.ZodTypeAny, {
|
|
15656
|
-
id: string;
|
|
15657
15820
|
created_at: string;
|
|
15658
15821
|
updated_at: string;
|
|
15822
|
+
id: string;
|
|
15659
15823
|
state: LoginSessionState;
|
|
15660
15824
|
expires_at: string;
|
|
15661
15825
|
csrf_token: string;
|
|
@@ -15690,9 +15854,9 @@ declare const loginSessionSchema: z.ZodObject<{
|
|
|
15690
15854
|
failure_reason?: string | undefined;
|
|
15691
15855
|
auth_connection?: string | undefined;
|
|
15692
15856
|
}, {
|
|
15693
|
-
id: string;
|
|
15694
15857
|
created_at: string;
|
|
15695
15858
|
updated_at: string;
|
|
15859
|
+
id: string;
|
|
15696
15860
|
expires_at: string;
|
|
15697
15861
|
csrf_token: string;
|
|
15698
15862
|
authParams: {
|
|
@@ -15758,14 +15922,14 @@ declare const logInsertSchema: z.ZodObject<{
|
|
|
15758
15922
|
node?: string | undefined;
|
|
15759
15923
|
}>>;
|
|
15760
15924
|
}, "strip", z.ZodTypeAny, {
|
|
15761
|
-
name: string;
|
|
15762
15925
|
version: string;
|
|
15926
|
+
name: string;
|
|
15763
15927
|
env?: {
|
|
15764
15928
|
node?: string | undefined;
|
|
15765
15929
|
} | undefined;
|
|
15766
15930
|
}, {
|
|
15767
|
-
name: string;
|
|
15768
15931
|
version: string;
|
|
15932
|
+
name: string;
|
|
15769
15933
|
env?: {
|
|
15770
15934
|
node?: string | undefined;
|
|
15771
15935
|
} | undefined;
|
|
@@ -15805,8 +15969,8 @@ declare const logInsertSchema: z.ZodObject<{
|
|
|
15805
15969
|
strategy?: string | undefined;
|
|
15806
15970
|
strategy_type?: string | undefined;
|
|
15807
15971
|
auth0_client?: {
|
|
15808
|
-
name: string;
|
|
15809
15972
|
version: string;
|
|
15973
|
+
name: string;
|
|
15810
15974
|
env?: {
|
|
15811
15975
|
node?: string | undefined;
|
|
15812
15976
|
} | undefined;
|
|
@@ -15840,8 +16004,8 @@ declare const logInsertSchema: z.ZodObject<{
|
|
|
15840
16004
|
strategy?: string | undefined;
|
|
15841
16005
|
strategy_type?: string | undefined;
|
|
15842
16006
|
auth0_client?: {
|
|
15843
|
-
name: string;
|
|
15844
16007
|
version: string;
|
|
16008
|
+
name: string;
|
|
15845
16009
|
env?: {
|
|
15846
16010
|
node?: string | undefined;
|
|
15847
16011
|
} | undefined;
|
|
@@ -15896,14 +16060,14 @@ declare const logSchema: z.ZodObject<{
|
|
|
15896
16060
|
node?: string | undefined;
|
|
15897
16061
|
}>>;
|
|
15898
16062
|
}, "strip", z.ZodTypeAny, {
|
|
15899
|
-
name: string;
|
|
15900
16063
|
version: string;
|
|
16064
|
+
name: string;
|
|
15901
16065
|
env?: {
|
|
15902
16066
|
node?: string | undefined;
|
|
15903
16067
|
} | undefined;
|
|
15904
16068
|
}, {
|
|
15905
|
-
name: string;
|
|
15906
16069
|
version: string;
|
|
16070
|
+
name: string;
|
|
15907
16071
|
env?: {
|
|
15908
16072
|
node?: string | undefined;
|
|
15909
16073
|
} | undefined;
|
|
@@ -15943,8 +16107,8 @@ declare const logSchema: z.ZodObject<{
|
|
|
15943
16107
|
strategy?: string | undefined;
|
|
15944
16108
|
strategy_type?: string | undefined;
|
|
15945
16109
|
auth0_client?: {
|
|
15946
|
-
name: string;
|
|
15947
16110
|
version: string;
|
|
16111
|
+
name: string;
|
|
15948
16112
|
env?: {
|
|
15949
16113
|
node?: string | undefined;
|
|
15950
16114
|
} | undefined;
|
|
@@ -15978,8 +16142,8 @@ declare const logSchema: z.ZodObject<{
|
|
|
15978
16142
|
strategy?: string | undefined;
|
|
15979
16143
|
strategy_type?: string | undefined;
|
|
15980
16144
|
auth0_client?: {
|
|
15981
|
-
name: string;
|
|
15982
16145
|
version: string;
|
|
16146
|
+
name: string;
|
|
15983
16147
|
env?: {
|
|
15984
16148
|
node?: string | undefined;
|
|
15985
16149
|
} | undefined;
|
|
@@ -16038,18 +16202,18 @@ declare const passwordSchema: z.ZodObject<{
|
|
|
16038
16202
|
created_at: z.ZodString;
|
|
16039
16203
|
updated_at: z.ZodString;
|
|
16040
16204
|
}, "strip", z.ZodTypeAny, {
|
|
16041
|
-
password: string;
|
|
16042
|
-
id: string;
|
|
16043
16205
|
created_at: string;
|
|
16044
16206
|
updated_at: string;
|
|
16207
|
+
password: string;
|
|
16208
|
+
id: string;
|
|
16045
16209
|
user_id: string;
|
|
16046
16210
|
algorithm: "bcrypt" | "argon2id";
|
|
16047
16211
|
is_current: boolean;
|
|
16048
16212
|
}, {
|
|
16049
|
-
password: string;
|
|
16050
|
-
id: string;
|
|
16051
16213
|
created_at: string;
|
|
16052
16214
|
updated_at: string;
|
|
16215
|
+
password: string;
|
|
16216
|
+
id: string;
|
|
16053
16217
|
user_id: string;
|
|
16054
16218
|
algorithm?: "bcrypt" | "argon2id" | undefined;
|
|
16055
16219
|
is_current?: boolean | undefined;
|
|
@@ -16158,9 +16322,9 @@ declare const sessionSchema: z.ZodObject<{
|
|
|
16158
16322
|
authenticated_at: z.ZodString;
|
|
16159
16323
|
last_interaction_at: z.ZodString;
|
|
16160
16324
|
}, "strip", z.ZodTypeAny, {
|
|
16161
|
-
id: string;
|
|
16162
16325
|
created_at: string;
|
|
16163
16326
|
updated_at: string;
|
|
16327
|
+
id: string;
|
|
16164
16328
|
user_id: string;
|
|
16165
16329
|
login_session_id: string;
|
|
16166
16330
|
device: {
|
|
@@ -16179,9 +16343,9 @@ declare const sessionSchema: z.ZodObject<{
|
|
|
16179
16343
|
revoked_at?: string | undefined;
|
|
16180
16344
|
idle_expires_at?: string | undefined;
|
|
16181
16345
|
}, {
|
|
16182
|
-
id: string;
|
|
16183
16346
|
created_at: string;
|
|
16184
16347
|
updated_at: string;
|
|
16348
|
+
id: string;
|
|
16185
16349
|
user_id: string;
|
|
16186
16350
|
login_session_id: string;
|
|
16187
16351
|
device: {
|
|
@@ -16260,8 +16424,8 @@ declare const tenantSchema: z.ZodObject<{
|
|
|
16260
16424
|
support_url: z.ZodOptional<z.ZodString>;
|
|
16261
16425
|
sender_email: z.ZodString;
|
|
16262
16426
|
sender_name: z.ZodString;
|
|
16263
|
-
session_lifetime: z.
|
|
16264
|
-
idle_session_lifetime: z.
|
|
16427
|
+
session_lifetime: z.ZodDefault<z.ZodNumber>;
|
|
16428
|
+
idle_session_lifetime: z.ZodDefault<z.ZodNumber>;
|
|
16265
16429
|
ephemeral_session_lifetime: z.ZodOptional<z.ZodNumber>;
|
|
16266
16430
|
idle_ephemeral_session_lifetime: z.ZodOptional<z.ZodNumber>;
|
|
16267
16431
|
session_cookie: z.ZodOptional<z.ZodObject<{
|
|
@@ -16608,13 +16772,15 @@ declare const tenantSchema: z.ZodObject<{
|
|
|
16608
16772
|
created_at: z.ZodEffects<z.ZodNullable<z.ZodString>, string, string | null>;
|
|
16609
16773
|
updated_at: z.ZodEffects<z.ZodNullable<z.ZodString>, string, string | null>;
|
|
16610
16774
|
}, "strip", z.ZodTypeAny, {
|
|
16611
|
-
id: string;
|
|
16612
16775
|
created_at: string;
|
|
16613
16776
|
updated_at: string;
|
|
16777
|
+
id: string;
|
|
16614
16778
|
audience: string;
|
|
16615
16779
|
friendly_name: string;
|
|
16616
16780
|
sender_email: string;
|
|
16617
16781
|
sender_name: string;
|
|
16782
|
+
session_lifetime: number;
|
|
16783
|
+
idle_session_lifetime: number;
|
|
16618
16784
|
allowed_logout_urls?: string[] | undefined;
|
|
16619
16785
|
oidc_logout?: {
|
|
16620
16786
|
rp_logout_end_session_endpoint_discovery?: boolean | undefined;
|
|
@@ -16623,8 +16789,6 @@ declare const tenantSchema: z.ZodObject<{
|
|
|
16623
16789
|
picture_url?: string | undefined;
|
|
16624
16790
|
support_email?: string | undefined;
|
|
16625
16791
|
support_url?: string | undefined;
|
|
16626
|
-
session_lifetime?: number | undefined;
|
|
16627
|
-
idle_session_lifetime?: number | undefined;
|
|
16628
16792
|
ephemeral_session_lifetime?: number | undefined;
|
|
16629
16793
|
idle_ephemeral_session_lifetime?: number | undefined;
|
|
16630
16794
|
session_cookie?: {
|
|
@@ -16734,9 +16898,9 @@ declare const tenantSchema: z.ZodObject<{
|
|
|
16734
16898
|
} | undefined;
|
|
16735
16899
|
} | undefined;
|
|
16736
16900
|
}, {
|
|
16737
|
-
id: string;
|
|
16738
16901
|
created_at: string | null;
|
|
16739
16902
|
updated_at: string | null;
|
|
16903
|
+
id: string;
|
|
16740
16904
|
audience: string;
|
|
16741
16905
|
friendly_name: string;
|
|
16742
16906
|
sender_email: string;
|
|
@@ -17989,9 +18153,9 @@ declare const refreshTokenSchema: z.ZodObject<{
|
|
|
17989
18153
|
rotating: z.ZodBoolean;
|
|
17990
18154
|
created_at: z.ZodString;
|
|
17991
18155
|
}, "strip", z.ZodTypeAny, {
|
|
18156
|
+
created_at: string;
|
|
17992
18157
|
id: string;
|
|
17993
18158
|
client_id: string;
|
|
17994
|
-
created_at: string;
|
|
17995
18159
|
user_id: string;
|
|
17996
18160
|
login_id: string;
|
|
17997
18161
|
device: {
|
|
@@ -18011,9 +18175,9 @@ declare const refreshTokenSchema: z.ZodObject<{
|
|
|
18011
18175
|
idle_expires_at?: string | undefined;
|
|
18012
18176
|
last_exchanged_at?: string | undefined;
|
|
18013
18177
|
}, {
|
|
18178
|
+
created_at: string;
|
|
18014
18179
|
id: string;
|
|
18015
18180
|
client_id: string;
|
|
18016
|
-
created_at: string;
|
|
18017
18181
|
user_id: string;
|
|
18018
18182
|
login_id: string;
|
|
18019
18183
|
device: {
|
|
@@ -18050,8 +18214,8 @@ declare const resourceServerInsertSchema: z.ZodObject<{
|
|
|
18050
18214
|
}>, "many">>;
|
|
18051
18215
|
signing_alg: z.ZodOptional<z.ZodString>;
|
|
18052
18216
|
signing_secret: z.ZodOptional<z.ZodString>;
|
|
18053
|
-
token_lifetime: z.
|
|
18054
|
-
token_lifetime_for_web: z.
|
|
18217
|
+
token_lifetime: z.ZodDefault<z.ZodNumber>;
|
|
18218
|
+
token_lifetime_for_web: z.ZodDefault<z.ZodNumber>;
|
|
18055
18219
|
skip_consent_for_verifiable_first_party_clients: z.ZodOptional<z.ZodBoolean>;
|
|
18056
18220
|
allow_offline_access: z.ZodOptional<z.ZodBoolean>;
|
|
18057
18221
|
verificationKey: z.ZodOptional<z.ZodString>;
|
|
@@ -18098,6 +18262,8 @@ declare const resourceServerInsertSchema: z.ZodObject<{
|
|
|
18098
18262
|
}, "strip", z.ZodTypeAny, {
|
|
18099
18263
|
name: string;
|
|
18100
18264
|
identifier: string;
|
|
18265
|
+
token_lifetime: number;
|
|
18266
|
+
token_lifetime_for_web: number;
|
|
18101
18267
|
options?: {
|
|
18102
18268
|
mtls?: {
|
|
18103
18269
|
bound_access_tokens?: boolean | undefined;
|
|
@@ -18118,8 +18284,6 @@ declare const resourceServerInsertSchema: z.ZodObject<{
|
|
|
18118
18284
|
metadata?: Record<string, any> | undefined;
|
|
18119
18285
|
signing_alg?: string | undefined;
|
|
18120
18286
|
signing_secret?: string | undefined;
|
|
18121
|
-
token_lifetime?: number | undefined;
|
|
18122
|
-
token_lifetime_for_web?: number | undefined;
|
|
18123
18287
|
skip_consent_for_verifiable_first_party_clients?: boolean | undefined;
|
|
18124
18288
|
allow_offline_access?: boolean | undefined;
|
|
18125
18289
|
verificationKey?: string | undefined;
|
|
@@ -18171,8 +18335,8 @@ declare const resourceServerSchema: z.ZodObject<{
|
|
|
18171
18335
|
}>, "many">>;
|
|
18172
18336
|
signing_alg: z.ZodOptional<z.ZodString>;
|
|
18173
18337
|
signing_secret: z.ZodOptional<z.ZodString>;
|
|
18174
|
-
token_lifetime: z.
|
|
18175
|
-
token_lifetime_for_web: z.
|
|
18338
|
+
token_lifetime: z.ZodDefault<z.ZodNumber>;
|
|
18339
|
+
token_lifetime_for_web: z.ZodDefault<z.ZodNumber>;
|
|
18176
18340
|
skip_consent_for_verifiable_first_party_clients: z.ZodOptional<z.ZodBoolean>;
|
|
18177
18341
|
allow_offline_access: z.ZodOptional<z.ZodBoolean>;
|
|
18178
18342
|
verificationKey: z.ZodOptional<z.ZodString>;
|
|
@@ -18219,6 +18383,10 @@ declare const resourceServerSchema: z.ZodObject<{
|
|
|
18219
18383
|
}, "strip", z.ZodTypeAny, {
|
|
18220
18384
|
name: string;
|
|
18221
18385
|
identifier: string;
|
|
18386
|
+
token_lifetime: number;
|
|
18387
|
+
token_lifetime_for_web: number;
|
|
18388
|
+
created_at?: string | undefined;
|
|
18389
|
+
updated_at?: string | undefined;
|
|
18222
18390
|
options?: {
|
|
18223
18391
|
mtls?: {
|
|
18224
18392
|
bound_access_tokens?: boolean | undefined;
|
|
@@ -18235,20 +18403,18 @@ declare const resourceServerSchema: z.ZodObject<{
|
|
|
18235
18403
|
value: string;
|
|
18236
18404
|
description?: string | undefined;
|
|
18237
18405
|
}[] | undefined;
|
|
18238
|
-
created_at?: string | undefined;
|
|
18239
|
-
updated_at?: string | undefined;
|
|
18240
18406
|
is_system?: boolean | undefined;
|
|
18241
18407
|
metadata?: Record<string, any> | undefined;
|
|
18242
18408
|
signing_alg?: string | undefined;
|
|
18243
18409
|
signing_secret?: string | undefined;
|
|
18244
|
-
token_lifetime?: number | undefined;
|
|
18245
|
-
token_lifetime_for_web?: number | undefined;
|
|
18246
18410
|
skip_consent_for_verifiable_first_party_clients?: boolean | undefined;
|
|
18247
18411
|
allow_offline_access?: boolean | undefined;
|
|
18248
18412
|
verificationKey?: string | undefined;
|
|
18249
18413
|
}, {
|
|
18250
18414
|
name: string;
|
|
18251
18415
|
identifier: string;
|
|
18416
|
+
created_at?: string | undefined;
|
|
18417
|
+
updated_at?: string | undefined;
|
|
18252
18418
|
options?: {
|
|
18253
18419
|
mtls?: {
|
|
18254
18420
|
bound_access_tokens?: boolean | undefined;
|
|
@@ -18265,8 +18431,6 @@ declare const resourceServerSchema: z.ZodObject<{
|
|
|
18265
18431
|
value: string;
|
|
18266
18432
|
description?: string | undefined;
|
|
18267
18433
|
}[] | undefined;
|
|
18268
|
-
created_at?: string | undefined;
|
|
18269
|
-
updated_at?: string | undefined;
|
|
18270
18434
|
is_system?: boolean | undefined;
|
|
18271
18435
|
metadata?: Record<string, any> | undefined;
|
|
18272
18436
|
signing_alg?: string | undefined;
|
|
@@ -18339,16 +18503,16 @@ declare const userPermissionWithDetailsListSchema: z.ZodArray<z.ZodObject<{
|
|
|
18339
18503
|
resource_server_identifier: string;
|
|
18340
18504
|
permission_name: string;
|
|
18341
18505
|
resource_server_name: string;
|
|
18342
|
-
description?: string | null | undefined;
|
|
18343
18506
|
created_at?: string | undefined;
|
|
18507
|
+
description?: string | null | undefined;
|
|
18344
18508
|
organization_id?: string | undefined;
|
|
18345
18509
|
}, {
|
|
18346
18510
|
user_id: string;
|
|
18347
18511
|
resource_server_identifier: string;
|
|
18348
18512
|
permission_name: string;
|
|
18349
18513
|
resource_server_name: string;
|
|
18350
|
-
description?: string | null | undefined;
|
|
18351
18514
|
created_at?: string | undefined;
|
|
18515
|
+
description?: string | null | undefined;
|
|
18352
18516
|
organization_id?: string | undefined;
|
|
18353
18517
|
}>, "many">;
|
|
18354
18518
|
export type UserPermissionWithDetailsList = z.infer<typeof userPermissionWithDetailsListSchema>;
|
|
@@ -18381,19 +18545,19 @@ declare const roleSchema: z.ZodObject<{
|
|
|
18381
18545
|
created_at: z.ZodOptional<z.ZodString>;
|
|
18382
18546
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
18383
18547
|
}, "strip", z.ZodTypeAny, {
|
|
18384
|
-
name: string;
|
|
18385
18548
|
id: string;
|
|
18386
|
-
|
|
18549
|
+
name: string;
|
|
18387
18550
|
created_at?: string | undefined;
|
|
18388
18551
|
updated_at?: string | undefined;
|
|
18552
|
+
description?: string | undefined;
|
|
18389
18553
|
is_system?: boolean | undefined;
|
|
18390
18554
|
metadata?: Record<string, any> | undefined;
|
|
18391
18555
|
}, {
|
|
18392
|
-
name: string;
|
|
18393
18556
|
id: string;
|
|
18394
|
-
|
|
18557
|
+
name: string;
|
|
18395
18558
|
created_at?: string | undefined;
|
|
18396
18559
|
updated_at?: string | undefined;
|
|
18560
|
+
description?: string | undefined;
|
|
18397
18561
|
is_system?: boolean | undefined;
|
|
18398
18562
|
metadata?: Record<string, any> | undefined;
|
|
18399
18563
|
}>;
|
|
@@ -18600,10 +18764,10 @@ declare const organizationSchema: z.ZodObject<{
|
|
|
18600
18764
|
} | undefined;
|
|
18601
18765
|
}>>;
|
|
18602
18766
|
}, "strip", z.ZodTypeAny, {
|
|
18603
|
-
name: string;
|
|
18604
|
-
id: string;
|
|
18605
18767
|
created_at: string;
|
|
18606
18768
|
updated_at: string;
|
|
18769
|
+
id: string;
|
|
18770
|
+
name: string;
|
|
18607
18771
|
token_quota?: {
|
|
18608
18772
|
client_credentials?: {
|
|
18609
18773
|
enforce: boolean;
|
|
@@ -18627,10 +18791,10 @@ declare const organizationSchema: z.ZodObject<{
|
|
|
18627
18791
|
is_signup_enabled: boolean;
|
|
18628
18792
|
}[] | undefined;
|
|
18629
18793
|
}, {
|
|
18630
|
-
name: string;
|
|
18631
|
-
id: string;
|
|
18632
18794
|
created_at: string;
|
|
18633
18795
|
updated_at: string;
|
|
18796
|
+
id: string;
|
|
18797
|
+
name: string;
|
|
18634
18798
|
token_quota?: {
|
|
18635
18799
|
client_credentials?: {
|
|
18636
18800
|
enforce?: boolean | undefined;
|
|
@@ -18673,15 +18837,15 @@ declare const userOrganizationSchema: z.ZodObject<{
|
|
|
18673
18837
|
user_id: z.ZodString;
|
|
18674
18838
|
organization_id: z.ZodString;
|
|
18675
18839
|
}, "strip", z.ZodTypeAny, {
|
|
18676
|
-
id: string;
|
|
18677
18840
|
created_at: string;
|
|
18678
18841
|
updated_at: string;
|
|
18842
|
+
id: string;
|
|
18679
18843
|
user_id: string;
|
|
18680
18844
|
organization_id: string;
|
|
18681
18845
|
}, {
|
|
18682
|
-
id: string;
|
|
18683
18846
|
created_at: string;
|
|
18684
18847
|
updated_at: string;
|
|
18848
|
+
id: string;
|
|
18685
18849
|
user_id: string;
|
|
18686
18850
|
organization_id: string;
|
|
18687
18851
|
}>;
|
|
@@ -18694,16 +18858,16 @@ declare const dailyStatsSchema: z.ZodObject<{
|
|
|
18694
18858
|
updated_at: z.ZodString;
|
|
18695
18859
|
created_at: z.ZodString;
|
|
18696
18860
|
}, "strip", z.ZodTypeAny, {
|
|
18697
|
-
date: string;
|
|
18698
18861
|
created_at: string;
|
|
18699
18862
|
updated_at: string;
|
|
18863
|
+
date: string;
|
|
18700
18864
|
logins: number;
|
|
18701
18865
|
signups: number;
|
|
18702
18866
|
leaked_passwords: number;
|
|
18703
18867
|
}, {
|
|
18704
|
-
date: string;
|
|
18705
18868
|
created_at: string;
|
|
18706
18869
|
updated_at: string;
|
|
18870
|
+
date: string;
|
|
18707
18871
|
logins: number;
|
|
18708
18872
|
signups: number;
|
|
18709
18873
|
leaked_passwords: number;
|
|
@@ -18837,10 +19001,10 @@ declare const authenticationMethodSchema: z.ZodEffects<z.ZodObject<{
|
|
|
18837
19001
|
friendly_name: z.ZodOptional<z.ZodString>;
|
|
18838
19002
|
confirmed: z.ZodDefault<z.ZodBoolean>;
|
|
18839
19003
|
}, "strip", z.ZodTypeAny, {
|
|
18840
|
-
type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
|
|
18841
|
-
id: string;
|
|
18842
19004
|
created_at: string;
|
|
18843
19005
|
updated_at: string;
|
|
19006
|
+
type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
|
|
19007
|
+
id: string;
|
|
18844
19008
|
user_id: string;
|
|
18845
19009
|
confirmed: boolean;
|
|
18846
19010
|
phone_number?: string | undefined;
|
|
@@ -18852,10 +19016,10 @@ declare const authenticationMethodSchema: z.ZodEffects<z.ZodObject<{
|
|
|
18852
19016
|
credential_backed_up?: boolean | undefined;
|
|
18853
19017
|
transports?: string[] | undefined;
|
|
18854
19018
|
}, {
|
|
18855
|
-
type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
|
|
18856
|
-
id: string;
|
|
18857
19019
|
created_at: string;
|
|
18858
19020
|
updated_at: string;
|
|
19021
|
+
type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
|
|
19022
|
+
id: string;
|
|
18859
19023
|
user_id: string;
|
|
18860
19024
|
phone_number?: string | undefined;
|
|
18861
19025
|
friendly_name?: string | undefined;
|
|
@@ -18867,10 +19031,10 @@ declare const authenticationMethodSchema: z.ZodEffects<z.ZodObject<{
|
|
|
18867
19031
|
transports?: string[] | undefined;
|
|
18868
19032
|
confirmed?: boolean | undefined;
|
|
18869
19033
|
}>, {
|
|
18870
|
-
type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
|
|
18871
|
-
id: string;
|
|
18872
19034
|
created_at: string;
|
|
18873
19035
|
updated_at: string;
|
|
19036
|
+
type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
|
|
19037
|
+
id: string;
|
|
18874
19038
|
user_id: string;
|
|
18875
19039
|
confirmed: boolean;
|
|
18876
19040
|
phone_number?: string | undefined;
|
|
@@ -18882,10 +19046,10 @@ declare const authenticationMethodSchema: z.ZodEffects<z.ZodObject<{
|
|
|
18882
19046
|
credential_backed_up?: boolean | undefined;
|
|
18883
19047
|
transports?: string[] | undefined;
|
|
18884
19048
|
}, {
|
|
18885
|
-
type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
|
|
18886
|
-
id: string;
|
|
18887
19049
|
created_at: string;
|
|
18888
19050
|
updated_at: string;
|
|
19051
|
+
type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
|
|
19052
|
+
id: string;
|
|
18889
19053
|
user_id: string;
|
|
18890
19054
|
phone_number?: string | undefined;
|
|
18891
19055
|
friendly_name?: string | undefined;
|
|
@@ -18898,6 +19062,16 @@ declare const authenticationMethodSchema: z.ZodEffects<z.ZodObject<{
|
|
|
18898
19062
|
confirmed?: boolean | undefined;
|
|
18899
19063
|
}>;
|
|
18900
19064
|
export type AuthenticationMethod = z.infer<typeof authenticationMethodSchema>;
|
|
19065
|
+
export interface ListActionsResponse extends Totals {
|
|
19066
|
+
actions: Action[];
|
|
19067
|
+
}
|
|
19068
|
+
export interface ActionsAdapter {
|
|
19069
|
+
create: (tenant_id: string, action: ActionInsert) => Promise<Action>;
|
|
19070
|
+
get: (tenant_id: string, action_id: string) => Promise<Action | null>;
|
|
19071
|
+
update: (tenant_id: string, action_id: string, action: Partial<ActionInsert>) => Promise<boolean>;
|
|
19072
|
+
remove: (tenant_id: string, action_id: string) => Promise<boolean>;
|
|
19073
|
+
list: (tenant_id: string, params?: ListParams) => Promise<ListActionsResponse>;
|
|
19074
|
+
}
|
|
18901
19075
|
export interface ListFlowsResponse extends Totals {
|
|
18902
19076
|
flows: Flow[];
|
|
18903
19077
|
}
|
|
@@ -19034,6 +19208,8 @@ export interface CreateTenantParams {
|
|
|
19034
19208
|
sender_name: string;
|
|
19035
19209
|
sender_email: string;
|
|
19036
19210
|
id?: string;
|
|
19211
|
+
session_lifetime?: number;
|
|
19212
|
+
idle_session_lifetime?: number;
|
|
19037
19213
|
}
|
|
19038
19214
|
export interface TenantsDataAdapter {
|
|
19039
19215
|
create(params: CreateTenantParams): Promise<Tenant>;
|
|
@@ -19051,6 +19227,13 @@ export interface ListUsersResponse extends Totals {
|
|
|
19051
19227
|
export interface UserDataAdapter {
|
|
19052
19228
|
get(tenant_id: string, id: string): Promise<User | null>;
|
|
19053
19229
|
create(tenantId: string, user: UserInsert): Promise<User>;
|
|
19230
|
+
/**
|
|
19231
|
+
* Create a user without invoking any decorator-level hooks (pre/post
|
|
19232
|
+
* registration hooks, linking, webhooks, etc.). Intended to be called from
|
|
19233
|
+
* inside a registration pipeline that owns hook orchestration and transaction
|
|
19234
|
+
* boundaries itself. The DB-level behavior is identical to `create`.
|
|
19235
|
+
*/
|
|
19236
|
+
rawCreate(tenantId: string, user: UserInsert): Promise<User>;
|
|
19054
19237
|
remove(tenantId: string, id: string): Promise<boolean>;
|
|
19055
19238
|
list(tenantId: string, params?: ListParams): Promise<ListUsersResponse>;
|
|
19056
19239
|
update(tenantId: string, id: string, user: Partial<User>): Promise<boolean>;
|
|
@@ -19332,6 +19515,16 @@ export interface OutboxEvent extends AuditEvent {
|
|
|
19332
19515
|
next_retry_at: string | null;
|
|
19333
19516
|
/** Last error message from a failed delivery attempt */
|
|
19334
19517
|
error: string | null;
|
|
19518
|
+
/** When the event was moved to dead-letter state (null if still active) */
|
|
19519
|
+
dead_lettered_at?: string | null;
|
|
19520
|
+
/** Final error captured when the event was dead-lettered */
|
|
19521
|
+
final_error?: string | null;
|
|
19522
|
+
}
|
|
19523
|
+
export interface ListFailedEventsResponse {
|
|
19524
|
+
events: OutboxEvent[];
|
|
19525
|
+
start: number;
|
|
19526
|
+
limit: number;
|
|
19527
|
+
length: number;
|
|
19335
19528
|
}
|
|
19336
19529
|
export interface OutboxAdapter {
|
|
19337
19530
|
/** Write an audit event to the outbox. Returns the event ID. */
|
|
@@ -19346,6 +19539,25 @@ export interface OutboxAdapter {
|
|
|
19346
19539
|
markProcessed(ids: string[]): Promise<void>;
|
|
19347
19540
|
/** Mark an event for retry with a backoff delay */
|
|
19348
19541
|
markRetry(id: string, error: string, nextRetryAt: string): Promise<void>;
|
|
19542
|
+
/**
|
|
19543
|
+
* Move an event to dead-letter state. The event is marked processed so the
|
|
19544
|
+
* relay stops retrying it, and the final error is preserved for admin review
|
|
19545
|
+
* via `listFailed`.
|
|
19546
|
+
*/
|
|
19547
|
+
deadLetter(id: string, finalError: string): Promise<void>;
|
|
19548
|
+
/**
|
|
19549
|
+
* List dead-lettered events for a tenant, newest first. Used by the
|
|
19550
|
+
* management API's failed-events endpoints.
|
|
19551
|
+
*/
|
|
19552
|
+
listFailed(tenantId: string, params?: ListParams): Promise<ListFailedEventsResponse>;
|
|
19553
|
+
/**
|
|
19554
|
+
* Reset a dead-lettered event so the relay retries it. Clears
|
|
19555
|
+
* `dead_lettered_at`, `final_error`, `processed_at`, `retry_count`, and
|
|
19556
|
+
* `next_retry_at`. Scoped to `tenantId` so operators cannot replay events
|
|
19557
|
+
* from other tenants — returns false when no row matches both the id and
|
|
19558
|
+
* the tenant.
|
|
19559
|
+
*/
|
|
19560
|
+
replay(id: string, tenantId: string): Promise<boolean>;
|
|
19349
19561
|
/** Delete processed events older than the given ISO date. Returns count deleted. */
|
|
19350
19562
|
cleanup(olderThan: string): Promise<number>;
|
|
19351
19563
|
}
|
|
@@ -19359,6 +19571,7 @@ export interface SessionCleanupParams {
|
|
|
19359
19571
|
user_id?: string;
|
|
19360
19572
|
}
|
|
19361
19573
|
export interface DataAdapters {
|
|
19574
|
+
actions: ActionsAdapter;
|
|
19362
19575
|
branding: BrandingAdapter;
|
|
19363
19576
|
cache?: CacheAdapter;
|
|
19364
19577
|
clients: ClientsAdapter;
|
|
@@ -19711,6 +19924,7 @@ declare const sqlUserSchema: z.ZodObject<{
|
|
|
19711
19924
|
verify_email: z.ZodOptional<z.ZodBoolean>;
|
|
19712
19925
|
last_ip: z.ZodOptional<z.ZodString>;
|
|
19713
19926
|
last_login: z.ZodOptional<z.ZodString>;
|
|
19927
|
+
registration_completed_at: z.ZodOptional<z.ZodString>;
|
|
19714
19928
|
}, "strip", z.ZodTypeAny, {
|
|
19715
19929
|
tenant_id: string;
|
|
19716
19930
|
created_at: string;
|
|
@@ -19770,6 +19984,7 @@ declare const sqlUserSchema: z.ZodObject<{
|
|
|
19770
19984
|
verify_email?: boolean | undefined;
|
|
19771
19985
|
last_ip?: string | undefined;
|
|
19772
19986
|
last_login?: string | undefined;
|
|
19987
|
+
registration_completed_at?: string | undefined;
|
|
19773
19988
|
}, {
|
|
19774
19989
|
tenant_id: string;
|
|
19775
19990
|
created_at: string;
|
|
@@ -19829,6 +20044,7 @@ declare const sqlUserSchema: z.ZodObject<{
|
|
|
19829
20044
|
verify_email?: boolean | undefined;
|
|
19830
20045
|
last_ip?: string | undefined;
|
|
19831
20046
|
last_login?: string | undefined;
|
|
20047
|
+
registration_completed_at?: string | undefined;
|
|
19832
20048
|
}>;
|
|
19833
20049
|
declare const sqlHookSchema: z.ZodObject<{
|
|
19834
20050
|
tenant_id: z.ZodString;
|
|
@@ -19870,6 +20086,46 @@ declare const sqlHookSchema: z.ZodObject<{
|
|
|
19870
20086
|
template_id?: string | null | undefined;
|
|
19871
20087
|
code_id?: string | null | undefined;
|
|
19872
20088
|
}>;
|
|
20089
|
+
declare const sqlActionSchema: z.ZodObject<{
|
|
20090
|
+
id: z.ZodString;
|
|
20091
|
+
tenant_id: z.ZodString;
|
|
20092
|
+
name: z.ZodString;
|
|
20093
|
+
code: z.ZodString;
|
|
20094
|
+
runtime: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
20095
|
+
status: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
20096
|
+
secrets: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
20097
|
+
dependencies: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
20098
|
+
supported_triggers: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
20099
|
+
deployed_at_ts: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
20100
|
+
created_at_ts: z.ZodNumber;
|
|
20101
|
+
updated_at_ts: z.ZodNumber;
|
|
20102
|
+
}, "strip", z.ZodTypeAny, {
|
|
20103
|
+
code: string;
|
|
20104
|
+
tenant_id: string;
|
|
20105
|
+
created_at_ts: number;
|
|
20106
|
+
updated_at_ts: number;
|
|
20107
|
+
id: string;
|
|
20108
|
+
name: string;
|
|
20109
|
+
status?: string | null | undefined;
|
|
20110
|
+
runtime?: string | null | undefined;
|
|
20111
|
+
secrets?: string | null | undefined;
|
|
20112
|
+
dependencies?: string | null | undefined;
|
|
20113
|
+
supported_triggers?: string | null | undefined;
|
|
20114
|
+
deployed_at_ts?: number | null | undefined;
|
|
20115
|
+
}, {
|
|
20116
|
+
code: string;
|
|
20117
|
+
tenant_id: string;
|
|
20118
|
+
created_at_ts: number;
|
|
20119
|
+
updated_at_ts: number;
|
|
20120
|
+
id: string;
|
|
20121
|
+
name: string;
|
|
20122
|
+
status?: string | null | undefined;
|
|
20123
|
+
runtime?: string | null | undefined;
|
|
20124
|
+
secrets?: string | null | undefined;
|
|
20125
|
+
dependencies?: string | null | undefined;
|
|
20126
|
+
supported_triggers?: string | null | undefined;
|
|
20127
|
+
deployed_at_ts?: number | null | undefined;
|
|
20128
|
+
}>;
|
|
19873
20129
|
declare const sqlHookCodeSchema: z.ZodObject<{
|
|
19874
20130
|
id: z.ZodString;
|
|
19875
20131
|
tenant_id: z.ZodString;
|
|
@@ -20472,8 +20728,8 @@ declare const sqlResourceServerSchema: z.ZodObject<Omit<{
|
|
|
20472
20728
|
identifier: z.ZodString;
|
|
20473
20729
|
signing_alg: z.ZodOptional<z.ZodString>;
|
|
20474
20730
|
signing_secret: z.ZodOptional<z.ZodString>;
|
|
20475
|
-
token_lifetime: z.
|
|
20476
|
-
token_lifetime_for_web: z.
|
|
20731
|
+
token_lifetime: z.ZodDefault<z.ZodNumber>;
|
|
20732
|
+
token_lifetime_for_web: z.ZodDefault<z.ZodNumber>;
|
|
20477
20733
|
verificationKey: z.ZodOptional<z.ZodString>;
|
|
20478
20734
|
}, "verificationKey">, "strip", z.ZodTypeAny, {
|
|
20479
20735
|
options: string;
|
|
@@ -20483,6 +20739,8 @@ declare const sqlResourceServerSchema: z.ZodObject<Omit<{
|
|
|
20483
20739
|
name: string;
|
|
20484
20740
|
scopes: string;
|
|
20485
20741
|
identifier: string;
|
|
20742
|
+
token_lifetime: number;
|
|
20743
|
+
token_lifetime_for_web: number;
|
|
20486
20744
|
is_system?: number | undefined;
|
|
20487
20745
|
id?: string | undefined;
|
|
20488
20746
|
skip_consent_for_verifiable_first_party_clients?: number | undefined;
|
|
@@ -20491,8 +20749,6 @@ declare const sqlResourceServerSchema: z.ZodObject<Omit<{
|
|
|
20491
20749
|
verification_key?: string | undefined;
|
|
20492
20750
|
signing_alg?: string | undefined;
|
|
20493
20751
|
signing_secret?: string | undefined;
|
|
20494
|
-
token_lifetime?: number | undefined;
|
|
20495
|
-
token_lifetime_for_web?: number | undefined;
|
|
20496
20752
|
}, {
|
|
20497
20753
|
tenant_id: string;
|
|
20498
20754
|
created_at: string;
|
|
@@ -20549,8 +20805,8 @@ declare const sqlTenantSchema: z.ZodObject<{
|
|
|
20549
20805
|
support_url: z.ZodOptional<z.ZodString>;
|
|
20550
20806
|
sender_email: z.ZodString;
|
|
20551
20807
|
sender_name: z.ZodString;
|
|
20552
|
-
session_lifetime: z.
|
|
20553
|
-
idle_session_lifetime: z.
|
|
20808
|
+
session_lifetime: z.ZodDefault<z.ZodNumber>;
|
|
20809
|
+
idle_session_lifetime: z.ZodDefault<z.ZodNumber>;
|
|
20554
20810
|
ephemeral_session_lifetime: z.ZodOptional<z.ZodNumber>;
|
|
20555
20811
|
idle_ephemeral_session_lifetime: z.ZodOptional<z.ZodNumber>;
|
|
20556
20812
|
session_cookie: z.ZodOptional<z.ZodObject<{
|
|
@@ -20904,11 +21160,11 @@ declare const sqlTenantSchema: z.ZodObject<{
|
|
|
20904
21160
|
friendly_name: string;
|
|
20905
21161
|
sender_email: string;
|
|
20906
21162
|
sender_name: string;
|
|
21163
|
+
session_lifetime: number;
|
|
21164
|
+
idle_session_lifetime: number;
|
|
20907
21165
|
picture_url?: string | undefined;
|
|
20908
21166
|
support_email?: string | undefined;
|
|
20909
21167
|
support_url?: string | undefined;
|
|
20910
|
-
session_lifetime?: number | undefined;
|
|
20911
|
-
idle_session_lifetime?: number | undefined;
|
|
20912
21168
|
ephemeral_session_lifetime?: number | undefined;
|
|
20913
21169
|
idle_ephemeral_session_lifetime?: number | undefined;
|
|
20914
21170
|
session_cookie?: {
|
|
@@ -21608,6 +21864,7 @@ declare const sqlAuthenticationMethodSchema: z.ZodObject<{
|
|
|
21608
21864
|
transports?: string | null | undefined;
|
|
21609
21865
|
}>;
|
|
21610
21866
|
export interface Database {
|
|
21867
|
+
actions: z.infer<typeof sqlActionSchema>;
|
|
21611
21868
|
flows: z.infer<typeof sqlFlowSchema>;
|
|
21612
21869
|
branding: z.infer<typeof sqlBrandingSchema>;
|
|
21613
21870
|
clients: z.infer<typeof sqlClientSchema>;
|
|
@@ -21659,6 +21916,8 @@ export interface Database {
|
|
|
21659
21916
|
error: string | null;
|
|
21660
21917
|
claimed_by: string | null;
|
|
21661
21918
|
claim_expires_at: string | null;
|
|
21919
|
+
dead_lettered_at: string | null;
|
|
21920
|
+
final_error: string | null;
|
|
21662
21921
|
};
|
|
21663
21922
|
}
|
|
21664
21923
|
export declare function migrateToLatest(db: Kysely<Database>, debug?: boolean): Promise<void>;
|