@authhero/adapter-interfaces 1.1.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,6 +2,194 @@
2
2
 
3
3
  import { z } from '@hono/zod-openapi';
4
4
 
5
+ export declare const actionTriggerSchema: z.ZodObject<{
6
+ id: z.ZodString;
7
+ version: z.ZodOptional<z.ZodString>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ id: string;
10
+ version?: string | undefined;
11
+ }, {
12
+ id: string;
13
+ version?: string | undefined;
14
+ }>;
15
+ export declare const actionDependencySchema: z.ZodObject<{
16
+ name: z.ZodString;
17
+ version: z.ZodString;
18
+ }, "strip", z.ZodTypeAny, {
19
+ version: string;
20
+ name: string;
21
+ }, {
22
+ version: string;
23
+ name: string;
24
+ }>;
25
+ export declare const actionSecretSchema: z.ZodObject<{
26
+ name: z.ZodString;
27
+ value: z.ZodString;
28
+ }, "strip", z.ZodTypeAny, {
29
+ value: string;
30
+ name: string;
31
+ }, {
32
+ value: string;
33
+ name: string;
34
+ }>;
35
+ export declare const actionInsertSchema: z.ZodObject<{
36
+ name: z.ZodString;
37
+ code: z.ZodString;
38
+ supported_triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
39
+ id: z.ZodString;
40
+ version: z.ZodOptional<z.ZodString>;
41
+ }, "strip", z.ZodTypeAny, {
42
+ id: string;
43
+ version?: string | undefined;
44
+ }, {
45
+ id: string;
46
+ version?: string | undefined;
47
+ }>, "many">>;
48
+ runtime: z.ZodOptional<z.ZodString>;
49
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
50
+ name: z.ZodString;
51
+ version: z.ZodString;
52
+ }, "strip", z.ZodTypeAny, {
53
+ version: string;
54
+ name: string;
55
+ }, {
56
+ version: string;
57
+ name: string;
58
+ }>, "many">>;
59
+ secrets: z.ZodOptional<z.ZodArray<z.ZodObject<{
60
+ name: z.ZodString;
61
+ value: z.ZodString;
62
+ }, "strip", z.ZodTypeAny, {
63
+ value: string;
64
+ name: string;
65
+ }, {
66
+ value: string;
67
+ name: string;
68
+ }>, "many">>;
69
+ }, "strip", z.ZodTypeAny, {
70
+ code: string;
71
+ name: string;
72
+ supported_triggers?: {
73
+ id: string;
74
+ version?: string | undefined;
75
+ }[] | undefined;
76
+ runtime?: string | undefined;
77
+ dependencies?: {
78
+ version: string;
79
+ name: string;
80
+ }[] | undefined;
81
+ secrets?: {
82
+ value: string;
83
+ name: string;
84
+ }[] | undefined;
85
+ }, {
86
+ code: string;
87
+ name: string;
88
+ supported_triggers?: {
89
+ id: string;
90
+ version?: string | undefined;
91
+ }[] | undefined;
92
+ runtime?: string | undefined;
93
+ dependencies?: {
94
+ version: string;
95
+ name: string;
96
+ }[] | undefined;
97
+ secrets?: {
98
+ value: string;
99
+ name: string;
100
+ }[] | undefined;
101
+ }>;
102
+ export type ActionInsert = z.infer<typeof actionInsertSchema>;
103
+ export declare const actionSchema: z.ZodObject<{
104
+ name: z.ZodString;
105
+ code: z.ZodString;
106
+ supported_triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
107
+ id: z.ZodString;
108
+ version: z.ZodOptional<z.ZodString>;
109
+ }, "strip", z.ZodTypeAny, {
110
+ id: string;
111
+ version?: string | undefined;
112
+ }, {
113
+ id: string;
114
+ version?: string | undefined;
115
+ }>, "many">>;
116
+ runtime: z.ZodOptional<z.ZodString>;
117
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
118
+ name: z.ZodString;
119
+ version: z.ZodString;
120
+ }, "strip", z.ZodTypeAny, {
121
+ version: string;
122
+ name: string;
123
+ }, {
124
+ version: string;
125
+ name: string;
126
+ }>, "many">>;
127
+ } & {
128
+ created_at: z.ZodString;
129
+ updated_at: z.ZodString;
130
+ id: z.ZodString;
131
+ tenant_id: z.ZodString;
132
+ status: z.ZodDefault<z.ZodEnum<[
133
+ "draft",
134
+ "built"
135
+ ]>>;
136
+ deployed_at: z.ZodOptional<z.ZodString>;
137
+ secrets: z.ZodOptional<z.ZodArray<z.ZodObject<{
138
+ name: z.ZodString;
139
+ value: z.ZodOptional<z.ZodString>;
140
+ }, "strip", z.ZodTypeAny, {
141
+ name: string;
142
+ value?: string | undefined;
143
+ }, {
144
+ name: string;
145
+ value?: string | undefined;
146
+ }>, "many">>;
147
+ }, "strip", z.ZodTypeAny, {
148
+ created_at: string;
149
+ updated_at: string;
150
+ code: string;
151
+ status: "draft" | "built";
152
+ id: string;
153
+ name: string;
154
+ tenant_id: string;
155
+ supported_triggers?: {
156
+ id: string;
157
+ version?: string | undefined;
158
+ }[] | undefined;
159
+ runtime?: string | undefined;
160
+ dependencies?: {
161
+ version: string;
162
+ name: string;
163
+ }[] | undefined;
164
+ secrets?: {
165
+ name: string;
166
+ value?: string | undefined;
167
+ }[] | undefined;
168
+ deployed_at?: string | undefined;
169
+ }, {
170
+ created_at: string;
171
+ updated_at: string;
172
+ code: string;
173
+ id: string;
174
+ name: string;
175
+ tenant_id: string;
176
+ status?: "draft" | "built" | undefined;
177
+ supported_triggers?: {
178
+ id: string;
179
+ version?: string | undefined;
180
+ }[] | undefined;
181
+ runtime?: string | undefined;
182
+ dependencies?: {
183
+ version: string;
184
+ name: string;
185
+ }[] | undefined;
186
+ secrets?: {
187
+ name: string;
188
+ value?: string | undefined;
189
+ }[] | undefined;
190
+ deployed_at?: string | undefined;
191
+ }>;
192
+ export type Action = z.infer<typeof actionSchema>;
5
193
  export declare const auditCategorySchema: z.ZodEnum<[
6
194
  "user_action",
7
195
  "admin_action",
@@ -140,12 +328,12 @@ export declare const auth0ClientSchema: z.ZodObject<{
140
328
  version: z.ZodString;
141
329
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
142
330
  }, "strip", z.ZodTypeAny, {
143
- name: string;
144
331
  version: string;
332
+ name: string;
145
333
  env?: Record<string, string> | undefined;
146
334
  }, {
147
- name: string;
148
335
  version: string;
336
+ name: string;
149
337
  env?: Record<string, string> | undefined;
150
338
  }>;
151
339
  export declare const auditEventInsertSchema: z.ZodObject<{
@@ -289,12 +477,12 @@ export declare const auditEventInsertSchema: z.ZodObject<{
289
477
  version: z.ZodString;
290
478
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
291
479
  }, "strip", z.ZodTypeAny, {
292
- name: string;
293
480
  version: string;
481
+ name: string;
294
482
  env?: Record<string, string> | undefined;
295
483
  }, {
296
- name: string;
297
484
  version: string;
485
+ name: string;
298
486
  env?: Record<string, string> | undefined;
299
487
  }>>;
300
488
  hostname: z.ZodString;
@@ -352,8 +540,8 @@ export declare const auditEventInsertSchema: z.ZodObject<{
352
540
  continent_code: string;
353
541
  } | undefined;
354
542
  auth0_client?: {
355
- name: string;
356
543
  version: string;
544
+ name: string;
357
545
  env?: Record<string, string> | undefined;
358
546
  } | undefined;
359
547
  is_mobile?: boolean | undefined;
@@ -409,8 +597,8 @@ export declare const auditEventInsertSchema: z.ZodObject<{
409
597
  continent_code: string;
410
598
  } | undefined;
411
599
  auth0_client?: {
412
- name: string;
413
600
  version: string;
601
+ name: string;
414
602
  env?: Record<string, string> | undefined;
415
603
  } | undefined;
416
604
  is_mobile?: boolean | undefined;
@@ -557,12 +745,12 @@ export declare const auditEventSchema: z.ZodObject<{
557
745
  version: z.ZodString;
558
746
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
559
747
  }, "strip", z.ZodTypeAny, {
560
- name: string;
561
748
  version: string;
749
+ name: string;
562
750
  env?: Record<string, string> | undefined;
563
751
  }, {
564
- name: string;
565
752
  version: string;
753
+ name: string;
566
754
  env?: Record<string, string> | undefined;
567
755
  }>>;
568
756
  hostname: z.ZodString;
@@ -623,8 +811,8 @@ export declare const auditEventSchema: z.ZodObject<{
623
811
  continent_code: string;
624
812
  } | undefined;
625
813
  auth0_client?: {
626
- name: string;
627
814
  version: string;
815
+ name: string;
628
816
  env?: Record<string, string> | undefined;
629
817
  } | undefined;
630
818
  is_mobile?: boolean | undefined;
@@ -681,8 +869,8 @@ export declare const auditEventSchema: z.ZodObject<{
681
869
  continent_code: string;
682
870
  } | undefined;
683
871
  auth0_client?: {
684
- name: string;
685
872
  version: string;
873
+ name: string;
686
874
  env?: Record<string, string> | undefined;
687
875
  } | undefined;
688
876
  is_mobile?: boolean | undefined;
@@ -1588,10 +1776,10 @@ export declare const flowSchema: z.ZodObject<{
1588
1776
  created_at: z.ZodString;
1589
1777
  updated_at: z.ZodString;
1590
1778
  }, "strip", z.ZodTypeAny, {
1591
- name: string;
1592
- id: string;
1593
1779
  created_at: string;
1594
1780
  updated_at: string;
1781
+ id: string;
1782
+ name: string;
1595
1783
  actions: ({
1596
1784
  params: {
1597
1785
  user_id: string;
@@ -1635,10 +1823,10 @@ export declare const flowSchema: z.ZodObject<{
1635
1823
  mask_output?: boolean | undefined;
1636
1824
  })[];
1637
1825
  }, {
1638
- name: string;
1639
- id: string;
1640
1826
  created_at: string;
1641
1827
  updated_at: string;
1828
+ id: string;
1829
+ name: string;
1642
1830
  actions?: ({
1643
1831
  params: {
1644
1832
  user_id: string;
@@ -1909,6 +2097,7 @@ export declare const userInsertSchema: z.ZodObject<{
1909
2097
  provider: z.ZodOptional<z.ZodString>;
1910
2098
  connection: z.ZodString;
1911
2099
  is_social: z.ZodOptional<z.ZodBoolean>;
2100
+ registration_completed_at: z.ZodOptional<z.ZodString>;
1912
2101
  password: z.ZodOptional<z.ZodObject<{
1913
2102
  hash: z.ZodString;
1914
2103
  algorithm: z.ZodString;
@@ -1961,6 +2150,7 @@ export declare const userInsertSchema: z.ZodObject<{
1961
2150
  last_ip?: string | undefined;
1962
2151
  last_login?: string | undefined;
1963
2152
  is_social?: boolean | undefined;
2153
+ registration_completed_at?: string | undefined;
1964
2154
  }, {
1965
2155
  connection: string;
1966
2156
  password?: {
@@ -2003,6 +2193,7 @@ export declare const userInsertSchema: z.ZodObject<{
2003
2193
  last_ip?: string | undefined;
2004
2194
  last_login?: string | undefined;
2005
2195
  is_social?: boolean | undefined;
2196
+ registration_completed_at?: string | undefined;
2006
2197
  }>;
2007
2198
  export type UserInsert = z.infer<typeof userInsertSchema>;
2008
2199
  export declare const userSchema: z.ZodObject<{
@@ -2148,10 +2339,11 @@ export declare const userSchema: z.ZodObject<{
2148
2339
  verify_email: z.ZodOptional<z.ZodBoolean>;
2149
2340
  last_ip: z.ZodOptional<z.ZodString>;
2150
2341
  last_login: z.ZodOptional<z.ZodString>;
2342
+ registration_completed_at: z.ZodOptional<z.ZodString>;
2151
2343
  }, "strip", z.ZodTypeAny, {
2152
- connection: string;
2153
2344
  created_at: string;
2154
2345
  updated_at: string;
2346
+ connection: string;
2155
2347
  user_id: string;
2156
2348
  email_verified: boolean;
2157
2349
  provider: string;
@@ -2189,6 +2381,7 @@ export declare const userSchema: z.ZodObject<{
2189
2381
  verify_email?: boolean | undefined;
2190
2382
  last_ip?: string | undefined;
2191
2383
  last_login?: string | undefined;
2384
+ registration_completed_at?: string | undefined;
2192
2385
  identities?: {
2193
2386
  connection: string;
2194
2387
  user_id: string;
@@ -2214,9 +2407,9 @@ export declare const userSchema: z.ZodObject<{
2214
2407
  }, z.ZodAny, "strip"> | undefined;
2215
2408
  }[] | undefined;
2216
2409
  }, {
2217
- connection: string;
2218
2410
  created_at: string;
2219
2411
  updated_at: string;
2412
+ connection: string;
2220
2413
  user_id: string;
2221
2414
  provider: string;
2222
2415
  is_social: boolean;
@@ -2253,6 +2446,7 @@ export declare const userSchema: z.ZodObject<{
2253
2446
  verify_email?: boolean | undefined;
2254
2447
  last_ip?: string | undefined;
2255
2448
  last_login?: string | undefined;
2449
+ registration_completed_at?: string | undefined;
2256
2450
  login_count?: number | undefined;
2257
2451
  identities?: {
2258
2452
  connection: string;
@@ -2423,10 +2617,11 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
2423
2617
  verify_email: z.ZodOptional<z.ZodBoolean>;
2424
2618
  last_ip: z.ZodOptional<z.ZodString>;
2425
2619
  last_login: z.ZodOptional<z.ZodString>;
2620
+ registration_completed_at: z.ZodOptional<z.ZodString>;
2426
2621
  }, "strip", z.ZodTypeAny, {
2427
- connection: string;
2428
2622
  created_at: string;
2429
2623
  updated_at: string;
2624
+ connection: string;
2430
2625
  user_id: string;
2431
2626
  email_verified: boolean;
2432
2627
  provider: string;
@@ -2464,6 +2659,7 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
2464
2659
  verify_email?: boolean | undefined;
2465
2660
  last_ip?: string | undefined;
2466
2661
  last_login?: string | undefined;
2662
+ registration_completed_at?: string | undefined;
2467
2663
  identities?: {
2468
2664
  connection: string;
2469
2665
  user_id: string;
@@ -2489,9 +2685,9 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
2489
2685
  }, z.ZodAny, "strip"> | undefined;
2490
2686
  }[] | undefined;
2491
2687
  }, {
2492
- connection: string;
2493
2688
  created_at: string;
2494
2689
  updated_at: string;
2690
+ connection: string;
2495
2691
  user_id: string;
2496
2692
  provider: string;
2497
2693
  is_social: boolean;
@@ -2528,6 +2724,7 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
2528
2724
  verify_email?: boolean | undefined;
2529
2725
  last_ip?: string | undefined;
2530
2726
  last_login?: string | undefined;
2727
+ registration_completed_at?: string | undefined;
2531
2728
  login_count?: number | undefined;
2532
2729
  identities?: {
2533
2730
  connection: string;
@@ -3002,10 +3199,10 @@ export declare const clientSchema: z.ZodObject<{
3002
3199
  created_at: z.ZodString;
3003
3200
  updated_at: z.ZodString;
3004
3201
  }, "strip", z.ZodTypeAny, {
3005
- name: string;
3006
- client_id: string;
3007
3202
  created_at: string;
3008
3203
  updated_at: string;
3204
+ name: string;
3205
+ client_id: string;
3009
3206
  global: boolean;
3010
3207
  is_first_party: boolean;
3011
3208
  oidc_conformant: boolean;
@@ -3053,10 +3250,10 @@ export declare const clientSchema: z.ZodObject<{
3053
3250
  par_request_expiry?: number | undefined;
3054
3251
  token_quota?: Record<string, any> | undefined;
3055
3252
  }, {
3056
- name: string;
3057
- client_id: string;
3058
3253
  created_at: string;
3059
3254
  updated_at: string;
3255
+ name: string;
3256
+ client_id: string;
3060
3257
  description?: string | undefined;
3061
3258
  refresh_token?: Record<string, any> | undefined;
3062
3259
  global?: boolean | undefined;
@@ -9035,7 +9232,7 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
9035
9232
  sdkSrc: z.ZodOptional<z.ZodString>;
9036
9233
  sdk_src: z.ZodOptional<z.ZodString>;
9037
9234
  }, z.ZodTypeAny, "passthrough">>;
9038
- }, "id" | "created_at" | "updated_at">, "passthrough", z.ZodTypeAny, z.objectOutputType<Omit<{
9235
+ }, "created_at" | "updated_at" | "id">, "passthrough", z.ZodTypeAny, z.objectOutputType<Omit<{
9039
9236
  id: z.ZodString;
9040
9237
  name: z.ZodString;
9041
9238
  languages: z.ZodObject<{
@@ -9956,7 +10153,7 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
9956
10153
  sdkSrc: z.ZodOptional<z.ZodString>;
9957
10154
  sdk_src: z.ZodOptional<z.ZodString>;
9958
10155
  }, z.ZodTypeAny, "passthrough">>;
9959
- }, "id" | "created_at" | "updated_at">, z.ZodTypeAny, "passthrough">, z.objectInputType<Omit<{
10156
+ }, "created_at" | "updated_at" | "id">, z.ZodTypeAny, "passthrough">, z.objectInputType<Omit<{
9960
10157
  id: z.ZodString;
9961
10158
  name: z.ZodString;
9962
10159
  languages: z.ZodObject<{
@@ -10877,7 +11074,7 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
10877
11074
  sdkSrc: z.ZodOptional<z.ZodString>;
10878
11075
  sdk_src: z.ZodOptional<z.ZodString>;
10879
11076
  }, z.ZodTypeAny, "passthrough">>;
10880
- }, "id" | "created_at" | "updated_at">, z.ZodTypeAny, "passthrough">>;
11077
+ }, "created_at" | "updated_at" | "id">, z.ZodTypeAny, "passthrough">>;
10881
11078
  export interface Auth0FlowInsert {
10882
11079
  name: string;
10883
11080
  languages: {
@@ -13322,6 +13519,8 @@ export declare const connectionSchema: z.ZodObject<{
13322
13519
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
13323
13520
  is_system: z.ZodOptional<z.ZodBoolean>;
13324
13521
  }, "strip", z.ZodTypeAny, {
13522
+ created_at: string;
13523
+ updated_at: string;
13325
13524
  options: {
13326
13525
  validation?: {
13327
13526
  username?: {
@@ -13428,8 +13627,6 @@ export declare const connectionSchema: z.ZodObject<{
13428
13627
  };
13429
13628
  name: string;
13430
13629
  strategy: string;
13431
- created_at: string;
13432
- updated_at: string;
13433
13630
  id?: string | undefined;
13434
13631
  is_system?: boolean | undefined;
13435
13632
  response_type?: AuthorizationResponseType | undefined;
@@ -13440,10 +13637,10 @@ export declare const connectionSchema: z.ZodObject<{
13440
13637
  show_as_button?: boolean | undefined;
13441
13638
  metadata?: Record<string, any> | undefined;
13442
13639
  }, {
13443
- name: string;
13444
- strategy: string;
13445
13640
  created_at: string;
13446
13641
  updated_at: string;
13642
+ name: string;
13643
+ strategy: string;
13447
13644
  options?: {
13448
13645
  validation?: {
13449
13646
  username?: {
@@ -37722,10 +37919,10 @@ export declare const formSchema: z.ZodObject<{
37722
37919
  created_at: z.ZodString;
37723
37920
  updated_at: z.ZodString;
37724
37921
  }, "strip", z.ZodTypeAny, {
37725
- name: string;
37726
- id: string;
37727
37922
  created_at: string;
37728
37923
  updated_at: string;
37924
+ id: string;
37925
+ name: string;
37729
37926
  style?: {
37730
37927
  css?: string | undefined;
37731
37928
  } | undefined;
@@ -38285,10 +38482,10 @@ export declare const formSchema: z.ZodObject<{
38285
38482
  } | undefined;
38286
38483
  translations?: Record<string, any> | undefined;
38287
38484
  }, {
38288
- name: string;
38289
- id: string;
38290
38485
  created_at: string;
38291
38486
  updated_at: string;
38487
+ id: string;
38488
+ name: string;
38292
38489
  style?: {
38293
38490
  css?: string | undefined;
38294
38491
  } | undefined;
@@ -42240,18 +42437,18 @@ export declare const hookCodeSchema: z.ZodObject<{
42240
42437
  id: z.ZodString;
42241
42438
  tenant_id: z.ZodString;
42242
42439
  }, "strip", z.ZodTypeAny, {
42440
+ created_at: string;
42441
+ updated_at: string;
42243
42442
  code: string;
42244
42443
  id: string;
42245
42444
  tenant_id: string;
42246
- created_at: string;
42247
- updated_at: string;
42248
42445
  secrets?: Record<string, string> | undefined;
42249
42446
  }, {
42447
+ created_at: string;
42448
+ updated_at: string;
42250
42449
  code: string;
42251
42450
  id: string;
42252
42451
  tenant_id: string;
42253
- created_at: string;
42254
- updated_at: string;
42255
42452
  secrets?: Record<string, string> | undefined;
42256
42453
  }>;
42257
42454
  export type HookCode = z.infer<typeof hookCodeSchema>;
@@ -42476,9 +42673,9 @@ export declare const inviteSchema: z.ZodObject<{
42476
42673
  roles: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
42477
42674
  send_invitation_email: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
42478
42675
  }, "strip", z.ZodTypeAny, {
42676
+ created_at: string;
42479
42677
  id: string;
42480
42678
  client_id: string;
42481
- created_at: string;
42482
42679
  expires_at: string;
42483
42680
  organization_id: string;
42484
42681
  inviter: {
@@ -42496,9 +42693,9 @@ export declare const inviteSchema: z.ZodObject<{
42496
42693
  send_invitation_email?: boolean | undefined;
42497
42694
  ticket_id?: string | undefined;
42498
42695
  }, {
42696
+ created_at: string;
42499
42697
  id: string;
42500
42698
  client_id: string;
42501
- created_at: string;
42502
42699
  expires_at: string;
42503
42700
  organization_id: string;
42504
42701
  inviter: {
@@ -42948,9 +43145,9 @@ export declare const loginSessionSchema: z.ZodObject<{
42948
43145
  user_id: z.ZodOptional<z.ZodString>;
42949
43146
  auth_connection: z.ZodOptional<z.ZodString>;
42950
43147
  }, "strip", z.ZodTypeAny, {
42951
- id: string;
42952
43148
  created_at: string;
42953
43149
  updated_at: string;
43150
+ id: string;
42954
43151
  state: LoginSessionState;
42955
43152
  expires_at: string;
42956
43153
  csrf_token: string;
@@ -42985,9 +43182,9 @@ export declare const loginSessionSchema: z.ZodObject<{
42985
43182
  failure_reason?: string | undefined;
42986
43183
  auth_connection?: string | undefined;
42987
43184
  }, {
42988
- id: string;
42989
43185
  created_at: string;
42990
43186
  updated_at: string;
43187
+ id: string;
42991
43188
  expires_at: string;
42992
43189
  csrf_token: string;
42993
43190
  authParams: {
@@ -43190,14 +43387,14 @@ export declare const Auth0Client: z.ZodObject<{
43190
43387
  node?: string | undefined;
43191
43388
  }>>;
43192
43389
  }, "strip", z.ZodTypeAny, {
43193
- name: string;
43194
43390
  version: string;
43391
+ name: string;
43195
43392
  env?: {
43196
43393
  node?: string | undefined;
43197
43394
  } | undefined;
43198
43395
  }, {
43199
- name: string;
43200
43396
  version: string;
43397
+ name: string;
43201
43398
  env?: {
43202
43399
  node?: string | undefined;
43203
43400
  } | undefined;
@@ -43254,14 +43451,14 @@ export declare const logInsertSchema: z.ZodObject<{
43254
43451
  node?: string | undefined;
43255
43452
  }>>;
43256
43453
  }, "strip", z.ZodTypeAny, {
43257
- name: string;
43258
43454
  version: string;
43455
+ name: string;
43259
43456
  env?: {
43260
43457
  node?: string | undefined;
43261
43458
  } | undefined;
43262
43459
  }, {
43263
- name: string;
43264
43460
  version: string;
43461
+ name: string;
43265
43462
  env?: {
43266
43463
  node?: string | undefined;
43267
43464
  } | undefined;
@@ -43301,8 +43498,8 @@ export declare const logInsertSchema: z.ZodObject<{
43301
43498
  strategy?: string | undefined;
43302
43499
  strategy_type?: string | undefined;
43303
43500
  auth0_client?: {
43304
- name: string;
43305
43501
  version: string;
43502
+ name: string;
43306
43503
  env?: {
43307
43504
  node?: string | undefined;
43308
43505
  } | undefined;
@@ -43336,8 +43533,8 @@ export declare const logInsertSchema: z.ZodObject<{
43336
43533
  strategy?: string | undefined;
43337
43534
  strategy_type?: string | undefined;
43338
43535
  auth0_client?: {
43339
- name: string;
43340
43536
  version: string;
43537
+ name: string;
43341
43538
  env?: {
43342
43539
  node?: string | undefined;
43343
43540
  } | undefined;
@@ -43392,14 +43589,14 @@ export declare const logSchema: z.ZodObject<{
43392
43589
  node?: string | undefined;
43393
43590
  }>>;
43394
43591
  }, "strip", z.ZodTypeAny, {
43395
- name: string;
43396
43592
  version: string;
43593
+ name: string;
43397
43594
  env?: {
43398
43595
  node?: string | undefined;
43399
43596
  } | undefined;
43400
43597
  }, {
43401
- name: string;
43402
43598
  version: string;
43599
+ name: string;
43403
43600
  env?: {
43404
43601
  node?: string | undefined;
43405
43602
  } | undefined;
@@ -43439,8 +43636,8 @@ export declare const logSchema: z.ZodObject<{
43439
43636
  strategy?: string | undefined;
43440
43637
  strategy_type?: string | undefined;
43441
43638
  auth0_client?: {
43442
- name: string;
43443
43639
  version: string;
43640
+ name: string;
43444
43641
  env?: {
43445
43642
  node?: string | undefined;
43446
43643
  } | undefined;
@@ -43474,8 +43671,8 @@ export declare const logSchema: z.ZodObject<{
43474
43671
  strategy?: string | undefined;
43475
43672
  strategy_type?: string | undefined;
43476
43673
  auth0_client?: {
43477
- name: string;
43478
43674
  version: string;
43675
+ name: string;
43479
43676
  env?: {
43480
43677
  node?: string | undefined;
43481
43678
  } | undefined;
@@ -43534,18 +43731,18 @@ export declare const passwordSchema: z.ZodObject<{
43534
43731
  created_at: z.ZodString;
43535
43732
  updated_at: z.ZodString;
43536
43733
  }, "strip", z.ZodTypeAny, {
43537
- password: string;
43538
- id: string;
43539
43734
  created_at: string;
43540
43735
  updated_at: string;
43736
+ password: string;
43737
+ id: string;
43541
43738
  user_id: string;
43542
43739
  algorithm: "bcrypt" | "argon2id";
43543
43740
  is_current: boolean;
43544
43741
  }, {
43545
- password: string;
43546
- id: string;
43547
43742
  created_at: string;
43548
43743
  updated_at: string;
43744
+ password: string;
43745
+ id: string;
43549
43746
  user_id: string;
43550
43747
  algorithm?: "bcrypt" | "argon2id" | undefined;
43551
43748
  is_current?: boolean | undefined;
@@ -43654,9 +43851,9 @@ export declare const sessionSchema: z.ZodObject<{
43654
43851
  authenticated_at: z.ZodString;
43655
43852
  last_interaction_at: z.ZodString;
43656
43853
  }, "strip", z.ZodTypeAny, {
43657
- id: string;
43658
43854
  created_at: string;
43659
43855
  updated_at: string;
43856
+ id: string;
43660
43857
  user_id: string;
43661
43858
  login_session_id: string;
43662
43859
  device: {
@@ -43675,9 +43872,9 @@ export declare const sessionSchema: z.ZodObject<{
43675
43872
  revoked_at?: string | undefined;
43676
43873
  idle_expires_at?: string | undefined;
43677
43874
  }, {
43678
- id: string;
43679
43875
  created_at: string;
43680
43876
  updated_at: string;
43877
+ id: string;
43681
43878
  user_id: string;
43682
43879
  login_session_id: string;
43683
43880
  device: {
@@ -43756,8 +43953,8 @@ export declare const tenantInsertSchema: z.ZodObject<{
43756
43953
  support_url: z.ZodOptional<z.ZodString>;
43757
43954
  sender_email: z.ZodString;
43758
43955
  sender_name: z.ZodString;
43759
- session_lifetime: z.ZodOptional<z.ZodNumber>;
43760
- idle_session_lifetime: z.ZodOptional<z.ZodNumber>;
43956
+ session_lifetime: z.ZodDefault<z.ZodNumber>;
43957
+ idle_session_lifetime: z.ZodDefault<z.ZodNumber>;
43761
43958
  ephemeral_session_lifetime: z.ZodOptional<z.ZodNumber>;
43762
43959
  idle_ephemeral_session_lifetime: z.ZodOptional<z.ZodNumber>;
43763
43960
  session_cookie: z.ZodOptional<z.ZodObject<{
@@ -44106,6 +44303,8 @@ export declare const tenantInsertSchema: z.ZodObject<{
44106
44303
  friendly_name: string;
44107
44304
  sender_email: string;
44108
44305
  sender_name: string;
44306
+ session_lifetime: number;
44307
+ idle_session_lifetime: number;
44109
44308
  id?: string | undefined;
44110
44309
  allowed_logout_urls?: string[] | undefined;
44111
44310
  oidc_logout?: {
@@ -44115,8 +44314,6 @@ export declare const tenantInsertSchema: z.ZodObject<{
44115
44314
  picture_url?: string | undefined;
44116
44315
  support_email?: string | undefined;
44117
44316
  support_url?: string | undefined;
44118
- session_lifetime?: number | undefined;
44119
- idle_session_lifetime?: number | undefined;
44120
44317
  ephemeral_session_lifetime?: number | undefined;
44121
44318
  idle_ephemeral_session_lifetime?: number | undefined;
44122
44319
  session_cookie?: {
@@ -44359,8 +44556,8 @@ export declare const tenantSchema: z.ZodObject<{
44359
44556
  support_url: z.ZodOptional<z.ZodString>;
44360
44557
  sender_email: z.ZodString;
44361
44558
  sender_name: z.ZodString;
44362
- session_lifetime: z.ZodOptional<z.ZodNumber>;
44363
- idle_session_lifetime: z.ZodOptional<z.ZodNumber>;
44559
+ session_lifetime: z.ZodDefault<z.ZodNumber>;
44560
+ idle_session_lifetime: z.ZodDefault<z.ZodNumber>;
44364
44561
  ephemeral_session_lifetime: z.ZodOptional<z.ZodNumber>;
44365
44562
  idle_ephemeral_session_lifetime: z.ZodOptional<z.ZodNumber>;
44366
44563
  session_cookie: z.ZodOptional<z.ZodObject<{
@@ -44707,13 +44904,15 @@ export declare const tenantSchema: z.ZodObject<{
44707
44904
  created_at: z.ZodEffects<z.ZodNullable<z.ZodString>, string, string | null>;
44708
44905
  updated_at: z.ZodEffects<z.ZodNullable<z.ZodString>, string, string | null>;
44709
44906
  }, "strip", z.ZodTypeAny, {
44710
- id: string;
44711
44907
  created_at: string;
44712
44908
  updated_at: string;
44909
+ id: string;
44713
44910
  audience: string;
44714
44911
  friendly_name: string;
44715
44912
  sender_email: string;
44716
44913
  sender_name: string;
44914
+ session_lifetime: number;
44915
+ idle_session_lifetime: number;
44717
44916
  allowed_logout_urls?: string[] | undefined;
44718
44917
  oidc_logout?: {
44719
44918
  rp_logout_end_session_endpoint_discovery?: boolean | undefined;
@@ -44722,8 +44921,6 @@ export declare const tenantSchema: z.ZodObject<{
44722
44921
  picture_url?: string | undefined;
44723
44922
  support_email?: string | undefined;
44724
44923
  support_url?: string | undefined;
44725
- session_lifetime?: number | undefined;
44726
- idle_session_lifetime?: number | undefined;
44727
44924
  ephemeral_session_lifetime?: number | undefined;
44728
44925
  idle_ephemeral_session_lifetime?: number | undefined;
44729
44926
  session_cookie?: {
@@ -44833,9 +45030,9 @@ export declare const tenantSchema: z.ZodObject<{
44833
45030
  } | undefined;
44834
45031
  } | undefined;
44835
45032
  }, {
44836
- id: string;
44837
45033
  created_at: string | null;
44838
45034
  updated_at: string | null;
45035
+ id: string;
44839
45036
  audience: string;
44840
45037
  friendly_name: string;
44841
45038
  sender_email: string;
@@ -46419,9 +46616,9 @@ export declare const refreshTokenSchema: z.ZodObject<{
46419
46616
  rotating: z.ZodBoolean;
46420
46617
  created_at: z.ZodString;
46421
46618
  }, "strip", z.ZodTypeAny, {
46619
+ created_at: string;
46422
46620
  id: string;
46423
46621
  client_id: string;
46424
- created_at: string;
46425
46622
  user_id: string;
46426
46623
  login_id: string;
46427
46624
  device: {
@@ -46441,9 +46638,9 @@ export declare const refreshTokenSchema: z.ZodObject<{
46441
46638
  idle_expires_at?: string | undefined;
46442
46639
  last_exchanged_at?: string | undefined;
46443
46640
  }, {
46641
+ created_at: string;
46444
46642
  id: string;
46445
46643
  client_id: string;
46446
- created_at: string;
46447
46644
  user_id: string;
46448
46645
  login_id: string;
46449
46646
  device: {
@@ -46552,8 +46749,8 @@ export declare const resourceServerInsertSchema: z.ZodObject<{
46552
46749
  }>, "many">>;
46553
46750
  signing_alg: z.ZodOptional<z.ZodString>;
46554
46751
  signing_secret: z.ZodOptional<z.ZodString>;
46555
- token_lifetime: z.ZodOptional<z.ZodNumber>;
46556
- token_lifetime_for_web: z.ZodOptional<z.ZodNumber>;
46752
+ token_lifetime: z.ZodDefault<z.ZodNumber>;
46753
+ token_lifetime_for_web: z.ZodDefault<z.ZodNumber>;
46557
46754
  skip_consent_for_verifiable_first_party_clients: z.ZodOptional<z.ZodBoolean>;
46558
46755
  allow_offline_access: z.ZodOptional<z.ZodBoolean>;
46559
46756
  verificationKey: z.ZodOptional<z.ZodString>;
@@ -46600,6 +46797,8 @@ export declare const resourceServerInsertSchema: z.ZodObject<{
46600
46797
  }, "strip", z.ZodTypeAny, {
46601
46798
  name: string;
46602
46799
  identifier: string;
46800
+ token_lifetime: number;
46801
+ token_lifetime_for_web: number;
46603
46802
  options?: {
46604
46803
  mtls?: {
46605
46804
  bound_access_tokens?: boolean | undefined;
@@ -46620,8 +46819,6 @@ export declare const resourceServerInsertSchema: z.ZodObject<{
46620
46819
  metadata?: Record<string, any> | undefined;
46621
46820
  signing_alg?: string | undefined;
46622
46821
  signing_secret?: string | undefined;
46623
- token_lifetime?: number | undefined;
46624
- token_lifetime_for_web?: number | undefined;
46625
46822
  skip_consent_for_verifiable_first_party_clients?: boolean | undefined;
46626
46823
  allow_offline_access?: boolean | undefined;
46627
46824
  verificationKey?: string | undefined;
@@ -46673,8 +46870,8 @@ export declare const resourceServerSchema: z.ZodObject<{
46673
46870
  }>, "many">>;
46674
46871
  signing_alg: z.ZodOptional<z.ZodString>;
46675
46872
  signing_secret: z.ZodOptional<z.ZodString>;
46676
- token_lifetime: z.ZodOptional<z.ZodNumber>;
46677
- token_lifetime_for_web: z.ZodOptional<z.ZodNumber>;
46873
+ token_lifetime: z.ZodDefault<z.ZodNumber>;
46874
+ token_lifetime_for_web: z.ZodDefault<z.ZodNumber>;
46678
46875
  skip_consent_for_verifiable_first_party_clients: z.ZodOptional<z.ZodBoolean>;
46679
46876
  allow_offline_access: z.ZodOptional<z.ZodBoolean>;
46680
46877
  verificationKey: z.ZodOptional<z.ZodString>;
@@ -46721,6 +46918,10 @@ export declare const resourceServerSchema: z.ZodObject<{
46721
46918
  }, "strip", z.ZodTypeAny, {
46722
46919
  name: string;
46723
46920
  identifier: string;
46921
+ token_lifetime: number;
46922
+ token_lifetime_for_web: number;
46923
+ created_at?: string | undefined;
46924
+ updated_at?: string | undefined;
46724
46925
  options?: {
46725
46926
  mtls?: {
46726
46927
  bound_access_tokens?: boolean | undefined;
@@ -46737,20 +46938,18 @@ export declare const resourceServerSchema: z.ZodObject<{
46737
46938
  value: string;
46738
46939
  description?: string | undefined;
46739
46940
  }[] | undefined;
46740
- created_at?: string | undefined;
46741
- updated_at?: string | undefined;
46742
46941
  is_system?: boolean | undefined;
46743
46942
  metadata?: Record<string, any> | undefined;
46744
46943
  signing_alg?: string | undefined;
46745
46944
  signing_secret?: string | undefined;
46746
- token_lifetime?: number | undefined;
46747
- token_lifetime_for_web?: number | undefined;
46748
46945
  skip_consent_for_verifiable_first_party_clients?: boolean | undefined;
46749
46946
  allow_offline_access?: boolean | undefined;
46750
46947
  verificationKey?: string | undefined;
46751
46948
  }, {
46752
46949
  name: string;
46753
46950
  identifier: string;
46951
+ created_at?: string | undefined;
46952
+ updated_at?: string | undefined;
46754
46953
  options?: {
46755
46954
  mtls?: {
46756
46955
  bound_access_tokens?: boolean | undefined;
@@ -46767,8 +46966,6 @@ export declare const resourceServerSchema: z.ZodObject<{
46767
46966
  value: string;
46768
46967
  description?: string | undefined;
46769
46968
  }[] | undefined;
46770
- created_at?: string | undefined;
46771
- updated_at?: string | undefined;
46772
46969
  is_system?: boolean | undefined;
46773
46970
  metadata?: Record<string, any> | undefined;
46774
46971
  signing_alg?: string | undefined;
@@ -46798,8 +46995,8 @@ export declare const resourceServerListSchema: z.ZodArray<z.ZodObject<{
46798
46995
  }>, "many">>;
46799
46996
  signing_alg: z.ZodOptional<z.ZodString>;
46800
46997
  signing_secret: z.ZodOptional<z.ZodString>;
46801
- token_lifetime: z.ZodOptional<z.ZodNumber>;
46802
- token_lifetime_for_web: z.ZodOptional<z.ZodNumber>;
46998
+ token_lifetime: z.ZodDefault<z.ZodNumber>;
46999
+ token_lifetime_for_web: z.ZodDefault<z.ZodNumber>;
46803
47000
  skip_consent_for_verifiable_first_party_clients: z.ZodOptional<z.ZodBoolean>;
46804
47001
  allow_offline_access: z.ZodOptional<z.ZodBoolean>;
46805
47002
  verificationKey: z.ZodOptional<z.ZodString>;
@@ -46846,6 +47043,10 @@ export declare const resourceServerListSchema: z.ZodArray<z.ZodObject<{
46846
47043
  }, "strip", z.ZodTypeAny, {
46847
47044
  name: string;
46848
47045
  identifier: string;
47046
+ token_lifetime: number;
47047
+ token_lifetime_for_web: number;
47048
+ created_at?: string | undefined;
47049
+ updated_at?: string | undefined;
46849
47050
  options?: {
46850
47051
  mtls?: {
46851
47052
  bound_access_tokens?: boolean | undefined;
@@ -46862,20 +47063,18 @@ export declare const resourceServerListSchema: z.ZodArray<z.ZodObject<{
46862
47063
  value: string;
46863
47064
  description?: string | undefined;
46864
47065
  }[] | undefined;
46865
- created_at?: string | undefined;
46866
- updated_at?: string | undefined;
46867
47066
  is_system?: boolean | undefined;
46868
47067
  metadata?: Record<string, any> | undefined;
46869
47068
  signing_alg?: string | undefined;
46870
47069
  signing_secret?: string | undefined;
46871
- token_lifetime?: number | undefined;
46872
- token_lifetime_for_web?: number | undefined;
46873
47070
  skip_consent_for_verifiable_first_party_clients?: boolean | undefined;
46874
47071
  allow_offline_access?: boolean | undefined;
46875
47072
  verificationKey?: string | undefined;
46876
47073
  }, {
46877
47074
  name: string;
46878
47075
  identifier: string;
47076
+ created_at?: string | undefined;
47077
+ updated_at?: string | undefined;
46879
47078
  options?: {
46880
47079
  mtls?: {
46881
47080
  bound_access_tokens?: boolean | undefined;
@@ -46892,8 +47091,6 @@ export declare const resourceServerListSchema: z.ZodArray<z.ZodObject<{
46892
47091
  value: string;
46893
47092
  description?: string | undefined;
46894
47093
  }[] | undefined;
46895
- created_at?: string | undefined;
46896
- updated_at?: string | undefined;
46897
47094
  is_system?: boolean | undefined;
46898
47095
  metadata?: Record<string, any> | undefined;
46899
47096
  signing_alg?: string | undefined;
@@ -47029,16 +47226,16 @@ export declare const userPermissionWithDetailsSchema: z.ZodObject<{
47029
47226
  resource_server_identifier: string;
47030
47227
  permission_name: string;
47031
47228
  resource_server_name: string;
47032
- description?: string | null | undefined;
47033
47229
  created_at?: string | undefined;
47230
+ description?: string | null | undefined;
47034
47231
  organization_id?: string | undefined;
47035
47232
  }, {
47036
47233
  user_id: string;
47037
47234
  resource_server_identifier: string;
47038
47235
  permission_name: string;
47039
47236
  resource_server_name: string;
47040
- description?: string | null | undefined;
47041
47237
  created_at?: string | undefined;
47238
+ description?: string | null | undefined;
47042
47239
  organization_id?: string | undefined;
47043
47240
  }>;
47044
47241
  export type UserPermissionWithDetails = z.infer<typeof userPermissionWithDetailsSchema>;
@@ -47055,16 +47252,16 @@ export declare const userPermissionWithDetailsListSchema: z.ZodArray<z.ZodObject
47055
47252
  resource_server_identifier: string;
47056
47253
  permission_name: string;
47057
47254
  resource_server_name: string;
47058
- description?: string | null | undefined;
47059
47255
  created_at?: string | undefined;
47256
+ description?: string | null | undefined;
47060
47257
  organization_id?: string | undefined;
47061
47258
  }, {
47062
47259
  user_id: string;
47063
47260
  resource_server_identifier: string;
47064
47261
  permission_name: string;
47065
47262
  resource_server_name: string;
47066
- description?: string | null | undefined;
47067
47263
  created_at?: string | undefined;
47264
+ description?: string | null | undefined;
47068
47265
  organization_id?: string | undefined;
47069
47266
  }>, "many">;
47070
47267
  export type UserPermissionWithDetailsList = z.infer<typeof userPermissionWithDetailsListSchema>;
@@ -47151,19 +47348,19 @@ export declare const roleSchema: z.ZodObject<{
47151
47348
  created_at: z.ZodOptional<z.ZodString>;
47152
47349
  updated_at: z.ZodOptional<z.ZodString>;
47153
47350
  }, "strip", z.ZodTypeAny, {
47154
- name: string;
47155
47351
  id: string;
47156
- description?: string | undefined;
47352
+ name: string;
47157
47353
  created_at?: string | undefined;
47158
47354
  updated_at?: string | undefined;
47355
+ description?: string | undefined;
47159
47356
  is_system?: boolean | undefined;
47160
47357
  metadata?: Record<string, any> | undefined;
47161
47358
  }, {
47162
- name: string;
47163
47359
  id: string;
47164
- description?: string | undefined;
47360
+ name: string;
47165
47361
  created_at?: string | undefined;
47166
47362
  updated_at?: string | undefined;
47363
+ description?: string | undefined;
47167
47364
  is_system?: boolean | undefined;
47168
47365
  metadata?: Record<string, any> | undefined;
47169
47366
  }>;
@@ -47179,19 +47376,19 @@ export declare const roleListSchema: z.ZodArray<z.ZodObject<{
47179
47376
  created_at: z.ZodOptional<z.ZodString>;
47180
47377
  updated_at: z.ZodOptional<z.ZodString>;
47181
47378
  }, "strip", z.ZodTypeAny, {
47182
- name: string;
47183
47379
  id: string;
47184
- description?: string | undefined;
47380
+ name: string;
47185
47381
  created_at?: string | undefined;
47186
47382
  updated_at?: string | undefined;
47383
+ description?: string | undefined;
47187
47384
  is_system?: boolean | undefined;
47188
47385
  metadata?: Record<string, any> | undefined;
47189
47386
  }, {
47190
- name: string;
47191
47387
  id: string;
47192
- description?: string | undefined;
47388
+ name: string;
47193
47389
  created_at?: string | undefined;
47194
47390
  updated_at?: string | undefined;
47391
+ description?: string | undefined;
47195
47392
  is_system?: boolean | undefined;
47196
47393
  metadata?: Record<string, any> | undefined;
47197
47394
  }>, "many">;
@@ -47465,10 +47662,10 @@ export declare const organizationSchema: z.ZodObject<{
47465
47662
  } | undefined;
47466
47663
  }>>;
47467
47664
  }, "strip", z.ZodTypeAny, {
47468
- name: string;
47469
- id: string;
47470
47665
  created_at: string;
47471
47666
  updated_at: string;
47667
+ id: string;
47668
+ name: string;
47472
47669
  token_quota?: {
47473
47670
  client_credentials?: {
47474
47671
  enforce: boolean;
@@ -47492,10 +47689,10 @@ export declare const organizationSchema: z.ZodObject<{
47492
47689
  is_signup_enabled: boolean;
47493
47690
  }[] | undefined;
47494
47691
  }, {
47495
- name: string;
47496
- id: string;
47497
47692
  created_at: string;
47498
47693
  updated_at: string;
47694
+ id: string;
47695
+ name: string;
47499
47696
  token_quota?: {
47500
47697
  client_credentials?: {
47501
47698
  enforce?: boolean | undefined;
@@ -47538,22 +47735,22 @@ export declare const userOrganizationSchema: z.ZodObject<{
47538
47735
  user_id: z.ZodString;
47539
47736
  organization_id: z.ZodString;
47540
47737
  }, "strip", z.ZodTypeAny, {
47541
- id: string;
47542
47738
  created_at: string;
47543
47739
  updated_at: string;
47740
+ id: string;
47544
47741
  user_id: string;
47545
47742
  organization_id: string;
47546
47743
  }, {
47547
- id: string;
47548
47744
  created_at: string;
47549
47745
  updated_at: string;
47746
+ id: string;
47550
47747
  user_id: string;
47551
47748
  organization_id: string;
47552
47749
  }>;
47553
47750
  export type UserOrganization = z.infer<typeof userOrganizationSchema>;
47554
47751
  export declare const tenantSettingsSchema: z.ZodObject<{
47555
- idle_session_lifetime: z.ZodOptional<z.ZodNumber>;
47556
- session_lifetime: z.ZodOptional<z.ZodNumber>;
47752
+ idle_session_lifetime: z.ZodDefault<z.ZodNumber>;
47753
+ session_lifetime: z.ZodDefault<z.ZodNumber>;
47557
47754
  session_cookie: z.ZodOptional<z.ZodObject<{
47558
47755
  mode: z.ZodOptional<z.ZodEnum<[
47559
47756
  "persistent",
@@ -47801,13 +47998,13 @@ export declare const tenantSettingsSchema: z.ZodObject<{
47801
47998
  } | undefined;
47802
47999
  }>>;
47803
48000
  }, "strip", z.ZodTypeAny, {
48001
+ session_lifetime: number;
48002
+ idle_session_lifetime: number;
47804
48003
  default_organization?: string | undefined;
47805
48004
  friendly_name?: string | undefined;
47806
48005
  picture_url?: string | undefined;
47807
48006
  support_email?: string | undefined;
47808
48007
  support_url?: string | undefined;
47809
- session_lifetime?: number | undefined;
47810
- idle_session_lifetime?: number | undefined;
47811
48008
  session_cookie?: {
47812
48009
  mode?: "persistent" | "non-persistent" | undefined;
47813
48010
  } | undefined;
@@ -47974,16 +48171,16 @@ export declare const dailyStatsSchema: z.ZodObject<{
47974
48171
  updated_at: z.ZodString;
47975
48172
  created_at: z.ZodString;
47976
48173
  }, "strip", z.ZodTypeAny, {
47977
- date: string;
47978
48174
  created_at: string;
47979
48175
  updated_at: string;
48176
+ date: string;
47980
48177
  logins: number;
47981
48178
  signups: number;
47982
48179
  leaked_passwords: number;
47983
48180
  }, {
47984
- date: string;
47985
48181
  created_at: string;
47986
48182
  updated_at: string;
48183
+ date: string;
47987
48184
  logins: number;
47988
48185
  signups: number;
47989
48186
  leaked_passwords: number;
@@ -48205,10 +48402,10 @@ export declare const authenticationMethodSchema: z.ZodEffects<z.ZodObject<{
48205
48402
  friendly_name: z.ZodOptional<z.ZodString>;
48206
48403
  confirmed: z.ZodDefault<z.ZodBoolean>;
48207
48404
  }, "strip", z.ZodTypeAny, {
48208
- type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
48209
- id: string;
48210
48405
  created_at: string;
48211
48406
  updated_at: string;
48407
+ type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
48408
+ id: string;
48212
48409
  user_id: string;
48213
48410
  confirmed: boolean;
48214
48411
  phone_number?: string | undefined;
@@ -48220,10 +48417,10 @@ export declare const authenticationMethodSchema: z.ZodEffects<z.ZodObject<{
48220
48417
  credential_backed_up?: boolean | undefined;
48221
48418
  transports?: string[] | undefined;
48222
48419
  }, {
48223
- type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
48224
- id: string;
48225
48420
  created_at: string;
48226
48421
  updated_at: string;
48422
+ type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
48423
+ id: string;
48227
48424
  user_id: string;
48228
48425
  phone_number?: string | undefined;
48229
48426
  friendly_name?: string | undefined;
@@ -48235,10 +48432,10 @@ export declare const authenticationMethodSchema: z.ZodEffects<z.ZodObject<{
48235
48432
  transports?: string[] | undefined;
48236
48433
  confirmed?: boolean | undefined;
48237
48434
  }>, {
48238
- type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
48239
- id: string;
48240
48435
  created_at: string;
48241
48436
  updated_at: string;
48437
+ type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
48438
+ id: string;
48242
48439
  user_id: string;
48243
48440
  confirmed: boolean;
48244
48441
  phone_number?: string | undefined;
@@ -48250,10 +48447,10 @@ export declare const authenticationMethodSchema: z.ZodEffects<z.ZodObject<{
48250
48447
  credential_backed_up?: boolean | undefined;
48251
48448
  transports?: string[] | undefined;
48252
48449
  }, {
48253
- type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
48254
- id: string;
48255
48450
  created_at: string;
48256
48451
  updated_at: string;
48452
+ type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
48453
+ id: string;
48257
48454
  user_id: string;
48258
48455
  phone_number?: string | undefined;
48259
48456
  friendly_name?: string | undefined;
@@ -48308,7 +48505,7 @@ export interface PassthroughConfig<T> {
48308
48505
  secondaries: SecondaryAdapterConfig<T>[];
48309
48506
  /**
48310
48507
  * Methods that should be synced to secondaries.
48311
- * Default: ["create", "update", "remove", "delete", "set"]
48508
+ * Default: ["create", "rawCreate", "update", "remove", "delete", "set"]
48312
48509
  */
48313
48510
  syncMethods?: string[];
48314
48511
  }
@@ -48404,6 +48601,16 @@ export interface IdentifierConfig {
48404
48601
  * options.attributes.username.validation.{min_length,max_length}
48405
48602
  */
48406
48603
  export declare function getConnectionIdentifierConfig(connection: ConnectionLike | null | undefined): IdentifierConfig;
48604
+ export interface ListActionsResponse extends Totals {
48605
+ actions: Action[];
48606
+ }
48607
+ export interface ActionsAdapter {
48608
+ create: (tenant_id: string, action: ActionInsert) => Promise<Action>;
48609
+ get: (tenant_id: string, action_id: string) => Promise<Action | null>;
48610
+ update: (tenant_id: string, action_id: string, action: Partial<ActionInsert>) => Promise<boolean>;
48611
+ remove: (tenant_id: string, action_id: string) => Promise<boolean>;
48612
+ list: (tenant_id: string, params?: ListParams) => Promise<ListActionsResponse>;
48613
+ }
48407
48614
  export interface ListFlowsResponse extends Totals {
48408
48615
  flows: Flow[];
48409
48616
  }
@@ -48544,6 +48751,8 @@ export interface CreateTenantParams {
48544
48751
  sender_name: string;
48545
48752
  sender_email: string;
48546
48753
  id?: string;
48754
+ session_lifetime?: number;
48755
+ idle_session_lifetime?: number;
48547
48756
  }
48548
48757
  export interface TenantsDataAdapter {
48549
48758
  create(params: CreateTenantParams): Promise<Tenant>;
@@ -48561,6 +48770,13 @@ export interface ListUsersResponse extends Totals {
48561
48770
  export interface UserDataAdapter {
48562
48771
  get(tenant_id: string, id: string): Promise<User | null>;
48563
48772
  create(tenantId: string, user: UserInsert): Promise<User>;
48773
+ /**
48774
+ * Create a user without invoking any decorator-level hooks (pre/post
48775
+ * registration hooks, linking, webhooks, etc.). Intended to be called from
48776
+ * inside a registration pipeline that owns hook orchestration and transaction
48777
+ * boundaries itself. The DB-level behavior is identical to `create`.
48778
+ */
48779
+ rawCreate(tenantId: string, user: UserInsert): Promise<User>;
48564
48780
  remove(tenantId: string, id: string): Promise<boolean>;
48565
48781
  list(tenantId: string, params?: ListParams): Promise<ListUsersResponse>;
48566
48782
  update(tenantId: string, id: string, user: Partial<User>): Promise<boolean>;
@@ -48848,6 +49064,16 @@ export interface OutboxEvent extends AuditEvent {
48848
49064
  next_retry_at: string | null;
48849
49065
  /** Last error message from a failed delivery attempt */
48850
49066
  error: string | null;
49067
+ /** When the event was moved to dead-letter state (null if still active) */
49068
+ dead_lettered_at?: string | null;
49069
+ /** Final error captured when the event was dead-lettered */
49070
+ final_error?: string | null;
49071
+ }
49072
+ export interface ListFailedEventsResponse {
49073
+ events: OutboxEvent[];
49074
+ start: number;
49075
+ limit: number;
49076
+ length: number;
48851
49077
  }
48852
49078
  export interface OutboxAdapter {
48853
49079
  /** Write an audit event to the outbox. Returns the event ID. */
@@ -48862,6 +49088,25 @@ export interface OutboxAdapter {
48862
49088
  markProcessed(ids: string[]): Promise<void>;
48863
49089
  /** Mark an event for retry with a backoff delay */
48864
49090
  markRetry(id: string, error: string, nextRetryAt: string): Promise<void>;
49091
+ /**
49092
+ * Move an event to dead-letter state. The event is marked processed so the
49093
+ * relay stops retrying it, and the final error is preserved for admin review
49094
+ * via `listFailed`.
49095
+ */
49096
+ deadLetter(id: string, finalError: string): Promise<void>;
49097
+ /**
49098
+ * List dead-lettered events for a tenant, newest first. Used by the
49099
+ * management API's failed-events endpoints.
49100
+ */
49101
+ listFailed(tenantId: string, params?: ListParams): Promise<ListFailedEventsResponse>;
49102
+ /**
49103
+ * Reset a dead-lettered event so the relay retries it. Clears
49104
+ * `dead_lettered_at`, `final_error`, `processed_at`, `retry_count`, and
49105
+ * `next_retry_at`. Scoped to `tenantId` so operators cannot replay events
49106
+ * from other tenants — returns false when no row matches both the id and
49107
+ * the tenant.
49108
+ */
49109
+ replay(id: string, tenantId: string): Promise<boolean>;
48865
49110
  /** Delete processed events older than the given ISO date. Returns count deleted. */
48866
49111
  cleanup(olderThan: string): Promise<number>;
48867
49112
  }
@@ -48912,6 +49157,7 @@ export interface SessionCleanupParams {
48912
49157
  user_id?: string;
48913
49158
  }
48914
49159
  export interface DataAdapters {
49160
+ actions: ActionsAdapter;
48915
49161
  branding: BrandingAdapter;
48916
49162
  cache?: CacheAdapter;
48917
49163
  clients: ClientsAdapter;