authhero 4.93.0 → 4.95.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.
@@ -5,6 +5,194 @@ import { Context, Handler, MiddlewareHandler, Next } from 'hono';
5
5
  import { FC, JSXNode, PropsWithChildren } from 'hono/jsx';
6
6
  import { CountryCode } from 'libphonenumber-js';
7
7
 
8
+ export declare const actionTriggerSchema: z.ZodObject<{
9
+ id: z.ZodString;
10
+ version: z.ZodOptional<z.ZodString>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ id: string;
13
+ version?: string | undefined;
14
+ }, {
15
+ id: string;
16
+ version?: string | undefined;
17
+ }>;
18
+ export declare const actionDependencySchema: z.ZodObject<{
19
+ name: z.ZodString;
20
+ version: z.ZodString;
21
+ }, "strip", z.ZodTypeAny, {
22
+ version: string;
23
+ name: string;
24
+ }, {
25
+ version: string;
26
+ name: string;
27
+ }>;
28
+ export declare const actionSecretSchema: z.ZodObject<{
29
+ name: z.ZodString;
30
+ value: z.ZodString;
31
+ }, "strip", z.ZodTypeAny, {
32
+ value: string;
33
+ name: string;
34
+ }, {
35
+ value: string;
36
+ name: string;
37
+ }>;
38
+ export declare const actionInsertSchema: z.ZodObject<{
39
+ name: z.ZodString;
40
+ code: z.ZodString;
41
+ supported_triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
42
+ id: z.ZodString;
43
+ version: z.ZodOptional<z.ZodString>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ id: string;
46
+ version?: string | undefined;
47
+ }, {
48
+ id: string;
49
+ version?: string | undefined;
50
+ }>, "many">>;
51
+ runtime: z.ZodOptional<z.ZodString>;
52
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
53
+ name: z.ZodString;
54
+ version: z.ZodString;
55
+ }, "strip", z.ZodTypeAny, {
56
+ version: string;
57
+ name: string;
58
+ }, {
59
+ version: string;
60
+ name: string;
61
+ }>, "many">>;
62
+ secrets: z.ZodOptional<z.ZodArray<z.ZodObject<{
63
+ name: z.ZodString;
64
+ value: z.ZodString;
65
+ }, "strip", z.ZodTypeAny, {
66
+ value: string;
67
+ name: string;
68
+ }, {
69
+ value: string;
70
+ name: string;
71
+ }>, "many">>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ code: string;
74
+ name: string;
75
+ supported_triggers?: {
76
+ id: string;
77
+ version?: string | undefined;
78
+ }[] | undefined;
79
+ runtime?: string | undefined;
80
+ dependencies?: {
81
+ version: string;
82
+ name: string;
83
+ }[] | undefined;
84
+ secrets?: {
85
+ value: string;
86
+ name: string;
87
+ }[] | undefined;
88
+ }, {
89
+ code: string;
90
+ name: string;
91
+ supported_triggers?: {
92
+ id: string;
93
+ version?: string | undefined;
94
+ }[] | undefined;
95
+ runtime?: string | undefined;
96
+ dependencies?: {
97
+ version: string;
98
+ name: string;
99
+ }[] | undefined;
100
+ secrets?: {
101
+ value: string;
102
+ name: string;
103
+ }[] | undefined;
104
+ }>;
105
+ export type ActionInsert = z.infer<typeof actionInsertSchema>;
106
+ export declare const actionSchema: z.ZodObject<{
107
+ name: z.ZodString;
108
+ code: z.ZodString;
109
+ supported_triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
110
+ id: z.ZodString;
111
+ version: z.ZodOptional<z.ZodString>;
112
+ }, "strip", z.ZodTypeAny, {
113
+ id: string;
114
+ version?: string | undefined;
115
+ }, {
116
+ id: string;
117
+ version?: string | undefined;
118
+ }>, "many">>;
119
+ runtime: z.ZodOptional<z.ZodString>;
120
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
121
+ name: z.ZodString;
122
+ version: z.ZodString;
123
+ }, "strip", z.ZodTypeAny, {
124
+ version: string;
125
+ name: string;
126
+ }, {
127
+ version: string;
128
+ name: string;
129
+ }>, "many">>;
130
+ } & {
131
+ created_at: z.ZodString;
132
+ updated_at: z.ZodString;
133
+ id: z.ZodString;
134
+ tenant_id: z.ZodString;
135
+ status: z.ZodDefault<z.ZodEnum<[
136
+ "draft",
137
+ "built"
138
+ ]>>;
139
+ deployed_at: z.ZodOptional<z.ZodString>;
140
+ secrets: z.ZodOptional<z.ZodArray<z.ZodObject<{
141
+ name: z.ZodString;
142
+ value: z.ZodOptional<z.ZodString>;
143
+ }, "strip", z.ZodTypeAny, {
144
+ name: string;
145
+ value?: string | undefined;
146
+ }, {
147
+ name: string;
148
+ value?: string | undefined;
149
+ }>, "many">>;
150
+ }, "strip", z.ZodTypeAny, {
151
+ created_at: string;
152
+ updated_at: string;
153
+ code: string;
154
+ status: "draft" | "built";
155
+ id: string;
156
+ name: string;
157
+ tenant_id: string;
158
+ supported_triggers?: {
159
+ id: string;
160
+ version?: string | undefined;
161
+ }[] | undefined;
162
+ runtime?: string | undefined;
163
+ dependencies?: {
164
+ version: string;
165
+ name: string;
166
+ }[] | undefined;
167
+ secrets?: {
168
+ name: string;
169
+ value?: string | undefined;
170
+ }[] | undefined;
171
+ deployed_at?: string | undefined;
172
+ }, {
173
+ created_at: string;
174
+ updated_at: string;
175
+ code: string;
176
+ id: string;
177
+ name: string;
178
+ tenant_id: string;
179
+ status?: "draft" | "built" | undefined;
180
+ supported_triggers?: {
181
+ id: string;
182
+ version?: string | undefined;
183
+ }[] | undefined;
184
+ runtime?: string | undefined;
185
+ dependencies?: {
186
+ version: string;
187
+ name: string;
188
+ }[] | undefined;
189
+ secrets?: {
190
+ name: string;
191
+ value?: string | undefined;
192
+ }[] | undefined;
193
+ deployed_at?: string | undefined;
194
+ }>;
195
+ export type Action = z.infer<typeof actionSchema>;
8
196
  export declare const auditCategorySchema: z.ZodEnum<[
9
197
  "user_action",
10
198
  "admin_action",
@@ -143,12 +331,12 @@ export declare const auth0ClientSchema: z.ZodObject<{
143
331
  version: z.ZodString;
144
332
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
145
333
  }, "strip", z.ZodTypeAny, {
146
- name: string;
147
334
  version: string;
335
+ name: string;
148
336
  env?: Record<string, string> | undefined;
149
337
  }, {
150
- name: string;
151
338
  version: string;
339
+ name: string;
152
340
  env?: Record<string, string> | undefined;
153
341
  }>;
154
342
  export declare const auditEventInsertSchema: z.ZodObject<{
@@ -292,12 +480,12 @@ export declare const auditEventInsertSchema: z.ZodObject<{
292
480
  version: z.ZodString;
293
481
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
294
482
  }, "strip", z.ZodTypeAny, {
295
- name: string;
296
483
  version: string;
484
+ name: string;
297
485
  env?: Record<string, string> | undefined;
298
486
  }, {
299
- name: string;
300
487
  version: string;
488
+ name: string;
301
489
  env?: Record<string, string> | undefined;
302
490
  }>>;
303
491
  hostname: z.ZodString;
@@ -355,8 +543,8 @@ export declare const auditEventInsertSchema: z.ZodObject<{
355
543
  continent_code: string;
356
544
  } | undefined;
357
545
  auth0_client?: {
358
- name: string;
359
546
  version: string;
547
+ name: string;
360
548
  env?: Record<string, string> | undefined;
361
549
  } | undefined;
362
550
  is_mobile?: boolean | undefined;
@@ -412,8 +600,8 @@ export declare const auditEventInsertSchema: z.ZodObject<{
412
600
  continent_code: string;
413
601
  } | undefined;
414
602
  auth0_client?: {
415
- name: string;
416
603
  version: string;
604
+ name: string;
417
605
  env?: Record<string, string> | undefined;
418
606
  } | undefined;
419
607
  is_mobile?: boolean | undefined;
@@ -560,12 +748,12 @@ export declare const auditEventSchema: z.ZodObject<{
560
748
  version: z.ZodString;
561
749
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
562
750
  }, "strip", z.ZodTypeAny, {
563
- name: string;
564
751
  version: string;
752
+ name: string;
565
753
  env?: Record<string, string> | undefined;
566
754
  }, {
567
- name: string;
568
755
  version: string;
756
+ name: string;
569
757
  env?: Record<string, string> | undefined;
570
758
  }>>;
571
759
  hostname: z.ZodString;
@@ -626,8 +814,8 @@ export declare const auditEventSchema: z.ZodObject<{
626
814
  continent_code: string;
627
815
  } | undefined;
628
816
  auth0_client?: {
629
- name: string;
630
817
  version: string;
818
+ name: string;
631
819
  env?: Record<string, string> | undefined;
632
820
  } | undefined;
633
821
  is_mobile?: boolean | undefined;
@@ -684,8 +872,8 @@ export declare const auditEventSchema: z.ZodObject<{
684
872
  continent_code: string;
685
873
  } | undefined;
686
874
  auth0_client?: {
687
- name: string;
688
875
  version: string;
876
+ name: string;
689
877
  env?: Record<string, string> | undefined;
690
878
  } | undefined;
691
879
  is_mobile?: boolean | undefined;
@@ -1591,10 +1779,10 @@ export declare const flowSchema: z.ZodObject<{
1591
1779
  created_at: z.ZodString;
1592
1780
  updated_at: z.ZodString;
1593
1781
  }, "strip", z.ZodTypeAny, {
1594
- name: string;
1595
- id: string;
1596
1782
  created_at: string;
1597
1783
  updated_at: string;
1784
+ id: string;
1785
+ name: string;
1598
1786
  actions: ({
1599
1787
  params: {
1600
1788
  user_id: string;
@@ -1638,10 +1826,10 @@ export declare const flowSchema: z.ZodObject<{
1638
1826
  mask_output?: boolean | undefined;
1639
1827
  })[];
1640
1828
  }, {
1641
- name: string;
1642
- id: string;
1643
1829
  created_at: string;
1644
1830
  updated_at: string;
1831
+ id: string;
1832
+ name: string;
1645
1833
  actions?: ({
1646
1834
  params: {
1647
1835
  user_id: string;
@@ -1912,6 +2100,7 @@ export declare const userInsertSchema: z.ZodObject<{
1912
2100
  provider: z.ZodOptional<z.ZodString>;
1913
2101
  connection: z.ZodString;
1914
2102
  is_social: z.ZodOptional<z.ZodBoolean>;
2103
+ registration_completed_at: z.ZodOptional<z.ZodString>;
1915
2104
  password: z.ZodOptional<z.ZodObject<{
1916
2105
  hash: z.ZodString;
1917
2106
  algorithm: z.ZodString;
@@ -1964,6 +2153,7 @@ export declare const userInsertSchema: z.ZodObject<{
1964
2153
  last_ip?: string | undefined;
1965
2154
  last_login?: string | undefined;
1966
2155
  is_social?: boolean | undefined;
2156
+ registration_completed_at?: string | undefined;
1967
2157
  }, {
1968
2158
  connection: string;
1969
2159
  password?: {
@@ -2006,6 +2196,7 @@ export declare const userInsertSchema: z.ZodObject<{
2006
2196
  last_ip?: string | undefined;
2007
2197
  last_login?: string | undefined;
2008
2198
  is_social?: boolean | undefined;
2199
+ registration_completed_at?: string | undefined;
2009
2200
  }>;
2010
2201
  export type UserInsert = z.infer<typeof userInsertSchema>;
2011
2202
  export declare const userSchema: z.ZodObject<{
@@ -2151,10 +2342,11 @@ export declare const userSchema: z.ZodObject<{
2151
2342
  verify_email: z.ZodOptional<z.ZodBoolean>;
2152
2343
  last_ip: z.ZodOptional<z.ZodString>;
2153
2344
  last_login: z.ZodOptional<z.ZodString>;
2345
+ registration_completed_at: z.ZodOptional<z.ZodString>;
2154
2346
  }, "strip", z.ZodTypeAny, {
2155
- connection: string;
2156
2347
  created_at: string;
2157
2348
  updated_at: string;
2349
+ connection: string;
2158
2350
  user_id: string;
2159
2351
  email_verified: boolean;
2160
2352
  provider: string;
@@ -2192,6 +2384,7 @@ export declare const userSchema: z.ZodObject<{
2192
2384
  verify_email?: boolean | undefined;
2193
2385
  last_ip?: string | undefined;
2194
2386
  last_login?: string | undefined;
2387
+ registration_completed_at?: string | undefined;
2195
2388
  identities?: {
2196
2389
  connection: string;
2197
2390
  user_id: string;
@@ -2217,9 +2410,9 @@ export declare const userSchema: z.ZodObject<{
2217
2410
  }, z.ZodAny, "strip"> | undefined;
2218
2411
  }[] | undefined;
2219
2412
  }, {
2220
- connection: string;
2221
2413
  created_at: string;
2222
2414
  updated_at: string;
2415
+ connection: string;
2223
2416
  user_id: string;
2224
2417
  provider: string;
2225
2418
  is_social: boolean;
@@ -2256,6 +2449,7 @@ export declare const userSchema: z.ZodObject<{
2256
2449
  verify_email?: boolean | undefined;
2257
2450
  last_ip?: string | undefined;
2258
2451
  last_login?: string | undefined;
2452
+ registration_completed_at?: string | undefined;
2259
2453
  login_count?: number | undefined;
2260
2454
  identities?: {
2261
2455
  connection: string;
@@ -2426,10 +2620,11 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
2426
2620
  verify_email: z.ZodOptional<z.ZodBoolean>;
2427
2621
  last_ip: z.ZodOptional<z.ZodString>;
2428
2622
  last_login: z.ZodOptional<z.ZodString>;
2623
+ registration_completed_at: z.ZodOptional<z.ZodString>;
2429
2624
  }, "strip", z.ZodTypeAny, {
2430
- connection: string;
2431
2625
  created_at: string;
2432
2626
  updated_at: string;
2627
+ connection: string;
2433
2628
  user_id: string;
2434
2629
  email_verified: boolean;
2435
2630
  provider: string;
@@ -2467,6 +2662,7 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
2467
2662
  verify_email?: boolean | undefined;
2468
2663
  last_ip?: string | undefined;
2469
2664
  last_login?: string | undefined;
2665
+ registration_completed_at?: string | undefined;
2470
2666
  identities?: {
2471
2667
  connection: string;
2472
2668
  user_id: string;
@@ -2492,9 +2688,9 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
2492
2688
  }, z.ZodAny, "strip"> | undefined;
2493
2689
  }[] | undefined;
2494
2690
  }, {
2495
- connection: string;
2496
2691
  created_at: string;
2497
2692
  updated_at: string;
2693
+ connection: string;
2498
2694
  user_id: string;
2499
2695
  provider: string;
2500
2696
  is_social: boolean;
@@ -2531,6 +2727,7 @@ export declare const auth0UserResponseSchema: z.ZodObject<{
2531
2727
  verify_email?: boolean | undefined;
2532
2728
  last_ip?: string | undefined;
2533
2729
  last_login?: string | undefined;
2730
+ registration_completed_at?: string | undefined;
2534
2731
  login_count?: number | undefined;
2535
2732
  identities?: {
2536
2733
  connection: string;
@@ -3005,10 +3202,10 @@ export declare const clientSchema: z.ZodObject<{
3005
3202
  created_at: z.ZodString;
3006
3203
  updated_at: z.ZodString;
3007
3204
  }, "strip", z.ZodTypeAny, {
3008
- name: string;
3009
- client_id: string;
3010
3205
  created_at: string;
3011
3206
  updated_at: string;
3207
+ name: string;
3208
+ client_id: string;
3012
3209
  global: boolean;
3013
3210
  is_first_party: boolean;
3014
3211
  oidc_conformant: boolean;
@@ -3056,10 +3253,10 @@ export declare const clientSchema: z.ZodObject<{
3056
3253
  par_request_expiry?: number | undefined;
3057
3254
  token_quota?: Record<string, any> | undefined;
3058
3255
  }, {
3059
- name: string;
3060
- client_id: string;
3061
3256
  created_at: string;
3062
3257
  updated_at: string;
3258
+ name: string;
3259
+ client_id: string;
3063
3260
  description?: string | undefined;
3064
3261
  refresh_token?: Record<string, any> | undefined;
3065
3262
  global?: boolean | undefined;
@@ -9038,7 +9235,7 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
9038
9235
  sdkSrc: z.ZodOptional<z.ZodString>;
9039
9236
  sdk_src: z.ZodOptional<z.ZodString>;
9040
9237
  }, z.ZodTypeAny, "passthrough">>;
9041
- }, "id" | "created_at" | "updated_at">, "passthrough", z.ZodTypeAny, z.objectOutputType<Omit<{
9238
+ }, "created_at" | "updated_at" | "id">, "passthrough", z.ZodTypeAny, z.objectOutputType<Omit<{
9042
9239
  id: z.ZodString;
9043
9240
  name: z.ZodString;
9044
9241
  languages: z.ZodObject<{
@@ -9959,7 +10156,7 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
9959
10156
  sdkSrc: z.ZodOptional<z.ZodString>;
9960
10157
  sdk_src: z.ZodOptional<z.ZodString>;
9961
10158
  }, z.ZodTypeAny, "passthrough">>;
9962
- }, "id" | "created_at" | "updated_at">, z.ZodTypeAny, "passthrough">, z.objectInputType<Omit<{
10159
+ }, "created_at" | "updated_at" | "id">, z.ZodTypeAny, "passthrough">, z.objectInputType<Omit<{
9963
10160
  id: z.ZodString;
9964
10161
  name: z.ZodString;
9965
10162
  languages: z.ZodObject<{
@@ -10880,7 +11077,7 @@ export declare const auth0FlowInsertSchema: z.ZodObject<Omit<{
10880
11077
  sdkSrc: z.ZodOptional<z.ZodString>;
10881
11078
  sdk_src: z.ZodOptional<z.ZodString>;
10882
11079
  }, z.ZodTypeAny, "passthrough">>;
10883
- }, "id" | "created_at" | "updated_at">, z.ZodTypeAny, "passthrough">>;
11080
+ }, "created_at" | "updated_at" | "id">, z.ZodTypeAny, "passthrough">>;
10884
11081
  export interface Auth0FlowInsert {
10885
11082
  name: string;
10886
11083
  languages: {
@@ -13325,6 +13522,8 @@ export declare const connectionSchema: z.ZodObject<{
13325
13522
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
13326
13523
  is_system: z.ZodOptional<z.ZodBoolean>;
13327
13524
  }, "strip", z.ZodTypeAny, {
13525
+ created_at: string;
13526
+ updated_at: string;
13328
13527
  options: {
13329
13528
  validation?: {
13330
13529
  username?: {
@@ -13431,8 +13630,6 @@ export declare const connectionSchema: z.ZodObject<{
13431
13630
  };
13432
13631
  name: string;
13433
13632
  strategy: string;
13434
- created_at: string;
13435
- updated_at: string;
13436
13633
  id?: string | undefined;
13437
13634
  is_system?: boolean | undefined;
13438
13635
  response_type?: AuthorizationResponseType | undefined;
@@ -13443,10 +13640,10 @@ export declare const connectionSchema: z.ZodObject<{
13443
13640
  show_as_button?: boolean | undefined;
13444
13641
  metadata?: Record<string, any> | undefined;
13445
13642
  }, {
13446
- name: string;
13447
- strategy: string;
13448
13643
  created_at: string;
13449
13644
  updated_at: string;
13645
+ name: string;
13646
+ strategy: string;
13450
13647
  options?: {
13451
13648
  validation?: {
13452
13649
  username?: {
@@ -37725,10 +37922,10 @@ export declare const formSchema: z.ZodObject<{
37725
37922
  created_at: z.ZodString;
37726
37923
  updated_at: z.ZodString;
37727
37924
  }, "strip", z.ZodTypeAny, {
37728
- name: string;
37729
- id: string;
37730
37925
  created_at: string;
37731
37926
  updated_at: string;
37927
+ id: string;
37928
+ name: string;
37732
37929
  style?: {
37733
37930
  css?: string | undefined;
37734
37931
  } | undefined;
@@ -38288,10 +38485,10 @@ export declare const formSchema: z.ZodObject<{
38288
38485
  } | undefined;
38289
38486
  translations?: Record<string, any> | undefined;
38290
38487
  }, {
38291
- name: string;
38292
- id: string;
38293
38488
  created_at: string;
38294
38489
  updated_at: string;
38490
+ id: string;
38491
+ name: string;
38295
38492
  style?: {
38296
38493
  css?: string | undefined;
38297
38494
  } | undefined;
@@ -42243,18 +42440,18 @@ export declare const hookCodeSchema: z.ZodObject<{
42243
42440
  id: z.ZodString;
42244
42441
  tenant_id: z.ZodString;
42245
42442
  }, "strip", z.ZodTypeAny, {
42443
+ created_at: string;
42444
+ updated_at: string;
42246
42445
  code: string;
42247
42446
  id: string;
42248
42447
  tenant_id: string;
42249
- created_at: string;
42250
- updated_at: string;
42251
42448
  secrets?: Record<string, string> | undefined;
42252
42449
  }, {
42450
+ created_at: string;
42451
+ updated_at: string;
42253
42452
  code: string;
42254
42453
  id: string;
42255
42454
  tenant_id: string;
42256
- created_at: string;
42257
- updated_at: string;
42258
42455
  secrets?: Record<string, string> | undefined;
42259
42456
  }>;
42260
42457
  export type HookCode = z.infer<typeof hookCodeSchema>;
@@ -42479,9 +42676,9 @@ export declare const inviteSchema: z.ZodObject<{
42479
42676
  roles: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
42480
42677
  send_invitation_email: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
42481
42678
  }, "strip", z.ZodTypeAny, {
42679
+ created_at: string;
42482
42680
  id: string;
42483
42681
  client_id: string;
42484
- created_at: string;
42485
42682
  expires_at: string;
42486
42683
  organization_id: string;
42487
42684
  inviter: {
@@ -42499,9 +42696,9 @@ export declare const inviteSchema: z.ZodObject<{
42499
42696
  send_invitation_email?: boolean | undefined;
42500
42697
  ticket_id?: string | undefined;
42501
42698
  }, {
42699
+ created_at: string;
42502
42700
  id: string;
42503
42701
  client_id: string;
42504
- created_at: string;
42505
42702
  expires_at: string;
42506
42703
  organization_id: string;
42507
42704
  inviter: {
@@ -42951,9 +43148,9 @@ export declare const loginSessionSchema: z.ZodObject<{
42951
43148
  user_id: z.ZodOptional<z.ZodString>;
42952
43149
  auth_connection: z.ZodOptional<z.ZodString>;
42953
43150
  }, "strip", z.ZodTypeAny, {
42954
- id: string;
42955
43151
  created_at: string;
42956
43152
  updated_at: string;
43153
+ id: string;
42957
43154
  state: LoginSessionState;
42958
43155
  expires_at: string;
42959
43156
  csrf_token: string;
@@ -42988,9 +43185,9 @@ export declare const loginSessionSchema: z.ZodObject<{
42988
43185
  failure_reason?: string | undefined;
42989
43186
  auth_connection?: string | undefined;
42990
43187
  }, {
42991
- id: string;
42992
43188
  created_at: string;
42993
43189
  updated_at: string;
43190
+ id: string;
42994
43191
  expires_at: string;
42995
43192
  csrf_token: string;
42996
43193
  authParams: {
@@ -43193,14 +43390,14 @@ export declare const Auth0Client: z.ZodObject<{
43193
43390
  node?: string | undefined;
43194
43391
  }>>;
43195
43392
  }, "strip", z.ZodTypeAny, {
43196
- name: string;
43197
43393
  version: string;
43394
+ name: string;
43198
43395
  env?: {
43199
43396
  node?: string | undefined;
43200
43397
  } | undefined;
43201
43398
  }, {
43202
- name: string;
43203
43399
  version: string;
43400
+ name: string;
43204
43401
  env?: {
43205
43402
  node?: string | undefined;
43206
43403
  } | undefined;
@@ -43257,14 +43454,14 @@ export declare const logInsertSchema: z.ZodObject<{
43257
43454
  node?: string | undefined;
43258
43455
  }>>;
43259
43456
  }, "strip", z.ZodTypeAny, {
43260
- name: string;
43261
43457
  version: string;
43458
+ name: string;
43262
43459
  env?: {
43263
43460
  node?: string | undefined;
43264
43461
  } | undefined;
43265
43462
  }, {
43266
- name: string;
43267
43463
  version: string;
43464
+ name: string;
43268
43465
  env?: {
43269
43466
  node?: string | undefined;
43270
43467
  } | undefined;
@@ -43304,8 +43501,8 @@ export declare const logInsertSchema: z.ZodObject<{
43304
43501
  strategy?: string | undefined;
43305
43502
  strategy_type?: string | undefined;
43306
43503
  auth0_client?: {
43307
- name: string;
43308
43504
  version: string;
43505
+ name: string;
43309
43506
  env?: {
43310
43507
  node?: string | undefined;
43311
43508
  } | undefined;
@@ -43339,8 +43536,8 @@ export declare const logInsertSchema: z.ZodObject<{
43339
43536
  strategy?: string | undefined;
43340
43537
  strategy_type?: string | undefined;
43341
43538
  auth0_client?: {
43342
- name: string;
43343
43539
  version: string;
43540
+ name: string;
43344
43541
  env?: {
43345
43542
  node?: string | undefined;
43346
43543
  } | undefined;
@@ -43395,14 +43592,14 @@ export declare const logSchema: z.ZodObject<{
43395
43592
  node?: string | undefined;
43396
43593
  }>>;
43397
43594
  }, "strip", z.ZodTypeAny, {
43398
- name: string;
43399
43595
  version: string;
43596
+ name: string;
43400
43597
  env?: {
43401
43598
  node?: string | undefined;
43402
43599
  } | undefined;
43403
43600
  }, {
43404
- name: string;
43405
43601
  version: string;
43602
+ name: string;
43406
43603
  env?: {
43407
43604
  node?: string | undefined;
43408
43605
  } | undefined;
@@ -43442,8 +43639,8 @@ export declare const logSchema: z.ZodObject<{
43442
43639
  strategy?: string | undefined;
43443
43640
  strategy_type?: string | undefined;
43444
43641
  auth0_client?: {
43445
- name: string;
43446
43642
  version: string;
43643
+ name: string;
43447
43644
  env?: {
43448
43645
  node?: string | undefined;
43449
43646
  } | undefined;
@@ -43477,8 +43674,8 @@ export declare const logSchema: z.ZodObject<{
43477
43674
  strategy?: string | undefined;
43478
43675
  strategy_type?: string | undefined;
43479
43676
  auth0_client?: {
43480
- name: string;
43481
43677
  version: string;
43678
+ name: string;
43482
43679
  env?: {
43483
43680
  node?: string | undefined;
43484
43681
  } | undefined;
@@ -43537,18 +43734,18 @@ export declare const passwordSchema: z.ZodObject<{
43537
43734
  created_at: z.ZodString;
43538
43735
  updated_at: z.ZodString;
43539
43736
  }, "strip", z.ZodTypeAny, {
43540
- password: string;
43541
- id: string;
43542
43737
  created_at: string;
43543
43738
  updated_at: string;
43739
+ password: string;
43740
+ id: string;
43544
43741
  user_id: string;
43545
43742
  algorithm: "bcrypt" | "argon2id";
43546
43743
  is_current: boolean;
43547
43744
  }, {
43548
- password: string;
43549
- id: string;
43550
43745
  created_at: string;
43551
43746
  updated_at: string;
43747
+ password: string;
43748
+ id: string;
43552
43749
  user_id: string;
43553
43750
  algorithm?: "bcrypt" | "argon2id" | undefined;
43554
43751
  is_current?: boolean | undefined;
@@ -43657,9 +43854,9 @@ export declare const sessionSchema: z.ZodObject<{
43657
43854
  authenticated_at: z.ZodString;
43658
43855
  last_interaction_at: z.ZodString;
43659
43856
  }, "strip", z.ZodTypeAny, {
43660
- id: string;
43661
43857
  created_at: string;
43662
43858
  updated_at: string;
43859
+ id: string;
43663
43860
  user_id: string;
43664
43861
  login_session_id: string;
43665
43862
  device: {
@@ -43678,9 +43875,9 @@ export declare const sessionSchema: z.ZodObject<{
43678
43875
  revoked_at?: string | undefined;
43679
43876
  idle_expires_at?: string | undefined;
43680
43877
  }, {
43681
- id: string;
43682
43878
  created_at: string;
43683
43879
  updated_at: string;
43880
+ id: string;
43684
43881
  user_id: string;
43685
43882
  login_session_id: string;
43686
43883
  device: {
@@ -44710,9 +44907,9 @@ export declare const tenantSchema: z.ZodObject<{
44710
44907
  created_at: z.ZodEffects<z.ZodNullable<z.ZodString>, string, string | null>;
44711
44908
  updated_at: z.ZodEffects<z.ZodNullable<z.ZodString>, string, string | null>;
44712
44909
  }, "strip", z.ZodTypeAny, {
44713
- id: string;
44714
44910
  created_at: string;
44715
44911
  updated_at: string;
44912
+ id: string;
44716
44913
  audience: string;
44717
44914
  friendly_name: string;
44718
44915
  sender_email: string;
@@ -44836,9 +45033,9 @@ export declare const tenantSchema: z.ZodObject<{
44836
45033
  } | undefined;
44837
45034
  } | undefined;
44838
45035
  }, {
44839
- id: string;
44840
45036
  created_at: string | null;
44841
45037
  updated_at: string | null;
45038
+ id: string;
44842
45039
  audience: string;
44843
45040
  friendly_name: string;
44844
45041
  sender_email: string;
@@ -46422,9 +46619,9 @@ export declare const refreshTokenSchema: z.ZodObject<{
46422
46619
  rotating: z.ZodBoolean;
46423
46620
  created_at: z.ZodString;
46424
46621
  }, "strip", z.ZodTypeAny, {
46622
+ created_at: string;
46425
46623
  id: string;
46426
46624
  client_id: string;
46427
- created_at: string;
46428
46625
  user_id: string;
46429
46626
  login_id: string;
46430
46627
  device: {
@@ -46444,9 +46641,9 @@ export declare const refreshTokenSchema: z.ZodObject<{
46444
46641
  idle_expires_at?: string | undefined;
46445
46642
  last_exchanged_at?: string | undefined;
46446
46643
  }, {
46644
+ created_at: string;
46447
46645
  id: string;
46448
46646
  client_id: string;
46449
- created_at: string;
46450
46647
  user_id: string;
46451
46648
  login_id: string;
46452
46649
  device: {
@@ -46724,6 +46921,8 @@ export declare const resourceServerSchema: z.ZodObject<{
46724
46921
  }, "strip", z.ZodTypeAny, {
46725
46922
  name: string;
46726
46923
  identifier: string;
46924
+ created_at?: string | undefined;
46925
+ updated_at?: string | undefined;
46727
46926
  options?: {
46728
46927
  mtls?: {
46729
46928
  bound_access_tokens?: boolean | undefined;
@@ -46740,8 +46939,6 @@ export declare const resourceServerSchema: z.ZodObject<{
46740
46939
  value: string;
46741
46940
  description?: string | undefined;
46742
46941
  }[] | undefined;
46743
- created_at?: string | undefined;
46744
- updated_at?: string | undefined;
46745
46942
  is_system?: boolean | undefined;
46746
46943
  metadata?: Record<string, any> | undefined;
46747
46944
  signing_alg?: string | undefined;
@@ -46754,6 +46951,8 @@ export declare const resourceServerSchema: z.ZodObject<{
46754
46951
  }, {
46755
46952
  name: string;
46756
46953
  identifier: string;
46954
+ created_at?: string | undefined;
46955
+ updated_at?: string | undefined;
46757
46956
  options?: {
46758
46957
  mtls?: {
46759
46958
  bound_access_tokens?: boolean | undefined;
@@ -46770,8 +46969,6 @@ export declare const resourceServerSchema: z.ZodObject<{
46770
46969
  value: string;
46771
46970
  description?: string | undefined;
46772
46971
  }[] | undefined;
46773
- created_at?: string | undefined;
46774
- updated_at?: string | undefined;
46775
46972
  is_system?: boolean | undefined;
46776
46973
  metadata?: Record<string, any> | undefined;
46777
46974
  signing_alg?: string | undefined;
@@ -46849,6 +47046,8 @@ export declare const resourceServerListSchema: z.ZodArray<z.ZodObject<{
46849
47046
  }, "strip", z.ZodTypeAny, {
46850
47047
  name: string;
46851
47048
  identifier: string;
47049
+ created_at?: string | undefined;
47050
+ updated_at?: string | undefined;
46852
47051
  options?: {
46853
47052
  mtls?: {
46854
47053
  bound_access_tokens?: boolean | undefined;
@@ -46865,8 +47064,6 @@ export declare const resourceServerListSchema: z.ZodArray<z.ZodObject<{
46865
47064
  value: string;
46866
47065
  description?: string | undefined;
46867
47066
  }[] | undefined;
46868
- created_at?: string | undefined;
46869
- updated_at?: string | undefined;
46870
47067
  is_system?: boolean | undefined;
46871
47068
  metadata?: Record<string, any> | undefined;
46872
47069
  signing_alg?: string | undefined;
@@ -46879,6 +47076,8 @@ export declare const resourceServerListSchema: z.ZodArray<z.ZodObject<{
46879
47076
  }, {
46880
47077
  name: string;
46881
47078
  identifier: string;
47079
+ created_at?: string | undefined;
47080
+ updated_at?: string | undefined;
46882
47081
  options?: {
46883
47082
  mtls?: {
46884
47083
  bound_access_tokens?: boolean | undefined;
@@ -46895,8 +47094,6 @@ export declare const resourceServerListSchema: z.ZodArray<z.ZodObject<{
46895
47094
  value: string;
46896
47095
  description?: string | undefined;
46897
47096
  }[] | undefined;
46898
- created_at?: string | undefined;
46899
- updated_at?: string | undefined;
46900
47097
  is_system?: boolean | undefined;
46901
47098
  metadata?: Record<string, any> | undefined;
46902
47099
  signing_alg?: string | undefined;
@@ -47032,16 +47229,16 @@ export declare const userPermissionWithDetailsSchema: z.ZodObject<{
47032
47229
  resource_server_identifier: string;
47033
47230
  permission_name: string;
47034
47231
  resource_server_name: string;
47035
- description?: string | null | undefined;
47036
47232
  created_at?: string | undefined;
47233
+ description?: string | null | undefined;
47037
47234
  organization_id?: string | undefined;
47038
47235
  }, {
47039
47236
  user_id: string;
47040
47237
  resource_server_identifier: string;
47041
47238
  permission_name: string;
47042
47239
  resource_server_name: string;
47043
- description?: string | null | undefined;
47044
47240
  created_at?: string | undefined;
47241
+ description?: string | null | undefined;
47045
47242
  organization_id?: string | undefined;
47046
47243
  }>;
47047
47244
  export type UserPermissionWithDetails = z.infer<typeof userPermissionWithDetailsSchema>;
@@ -47058,16 +47255,16 @@ export declare const userPermissionWithDetailsListSchema: z.ZodArray<z.ZodObject
47058
47255
  resource_server_identifier: string;
47059
47256
  permission_name: string;
47060
47257
  resource_server_name: string;
47061
- description?: string | null | undefined;
47062
47258
  created_at?: string | undefined;
47259
+ description?: string | null | undefined;
47063
47260
  organization_id?: string | undefined;
47064
47261
  }, {
47065
47262
  user_id: string;
47066
47263
  resource_server_identifier: string;
47067
47264
  permission_name: string;
47068
47265
  resource_server_name: string;
47069
- description?: string | null | undefined;
47070
47266
  created_at?: string | undefined;
47267
+ description?: string | null | undefined;
47071
47268
  organization_id?: string | undefined;
47072
47269
  }>, "many">;
47073
47270
  export type UserPermissionWithDetailsList = z.infer<typeof userPermissionWithDetailsListSchema>;
@@ -47154,19 +47351,19 @@ export declare const roleSchema: z.ZodObject<{
47154
47351
  created_at: z.ZodOptional<z.ZodString>;
47155
47352
  updated_at: z.ZodOptional<z.ZodString>;
47156
47353
  }, "strip", z.ZodTypeAny, {
47157
- name: string;
47158
47354
  id: string;
47159
- description?: string | undefined;
47355
+ name: string;
47160
47356
  created_at?: string | undefined;
47161
47357
  updated_at?: string | undefined;
47358
+ description?: string | undefined;
47162
47359
  is_system?: boolean | undefined;
47163
47360
  metadata?: Record<string, any> | undefined;
47164
47361
  }, {
47165
- name: string;
47166
47362
  id: string;
47167
- description?: string | undefined;
47363
+ name: string;
47168
47364
  created_at?: string | undefined;
47169
47365
  updated_at?: string | undefined;
47366
+ description?: string | undefined;
47170
47367
  is_system?: boolean | undefined;
47171
47368
  metadata?: Record<string, any> | undefined;
47172
47369
  }>;
@@ -47182,19 +47379,19 @@ export declare const roleListSchema: z.ZodArray<z.ZodObject<{
47182
47379
  created_at: z.ZodOptional<z.ZodString>;
47183
47380
  updated_at: z.ZodOptional<z.ZodString>;
47184
47381
  }, "strip", z.ZodTypeAny, {
47185
- name: string;
47186
47382
  id: string;
47187
- description?: string | undefined;
47383
+ name: string;
47188
47384
  created_at?: string | undefined;
47189
47385
  updated_at?: string | undefined;
47386
+ description?: string | undefined;
47190
47387
  is_system?: boolean | undefined;
47191
47388
  metadata?: Record<string, any> | undefined;
47192
47389
  }, {
47193
- name: string;
47194
47390
  id: string;
47195
- description?: string | undefined;
47391
+ name: string;
47196
47392
  created_at?: string | undefined;
47197
47393
  updated_at?: string | undefined;
47394
+ description?: string | undefined;
47198
47395
  is_system?: boolean | undefined;
47199
47396
  metadata?: Record<string, any> | undefined;
47200
47397
  }>, "many">;
@@ -47468,10 +47665,10 @@ export declare const organizationSchema: z.ZodObject<{
47468
47665
  } | undefined;
47469
47666
  }>>;
47470
47667
  }, "strip", z.ZodTypeAny, {
47471
- name: string;
47472
- id: string;
47473
47668
  created_at: string;
47474
47669
  updated_at: string;
47670
+ id: string;
47671
+ name: string;
47475
47672
  token_quota?: {
47476
47673
  client_credentials?: {
47477
47674
  enforce: boolean;
@@ -47495,10 +47692,10 @@ export declare const organizationSchema: z.ZodObject<{
47495
47692
  is_signup_enabled: boolean;
47496
47693
  }[] | undefined;
47497
47694
  }, {
47498
- name: string;
47499
- id: string;
47500
47695
  created_at: string;
47501
47696
  updated_at: string;
47697
+ id: string;
47698
+ name: string;
47502
47699
  token_quota?: {
47503
47700
  client_credentials?: {
47504
47701
  enforce?: boolean | undefined;
@@ -47541,15 +47738,15 @@ export declare const userOrganizationSchema: z.ZodObject<{
47541
47738
  user_id: z.ZodString;
47542
47739
  organization_id: z.ZodString;
47543
47740
  }, "strip", z.ZodTypeAny, {
47544
- id: string;
47545
47741
  created_at: string;
47546
47742
  updated_at: string;
47743
+ id: string;
47547
47744
  user_id: string;
47548
47745
  organization_id: string;
47549
47746
  }, {
47550
- id: string;
47551
47747
  created_at: string;
47552
47748
  updated_at: string;
47749
+ id: string;
47553
47750
  user_id: string;
47554
47751
  organization_id: string;
47555
47752
  }>;
@@ -47977,16 +48174,16 @@ export declare const dailyStatsSchema: z.ZodObject<{
47977
48174
  updated_at: z.ZodString;
47978
48175
  created_at: z.ZodString;
47979
48176
  }, "strip", z.ZodTypeAny, {
47980
- date: string;
47981
48177
  created_at: string;
47982
48178
  updated_at: string;
48179
+ date: string;
47983
48180
  logins: number;
47984
48181
  signups: number;
47985
48182
  leaked_passwords: number;
47986
48183
  }, {
47987
- date: string;
47988
48184
  created_at: string;
47989
48185
  updated_at: string;
48186
+ date: string;
47990
48187
  logins: number;
47991
48188
  signups: number;
47992
48189
  leaked_passwords: number;
@@ -48208,10 +48405,10 @@ export declare const authenticationMethodSchema: z.ZodEffects<z.ZodObject<{
48208
48405
  friendly_name: z.ZodOptional<z.ZodString>;
48209
48406
  confirmed: z.ZodDefault<z.ZodBoolean>;
48210
48407
  }, "strip", z.ZodTypeAny, {
48211
- type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
48212
- id: string;
48213
48408
  created_at: string;
48214
48409
  updated_at: string;
48410
+ type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
48411
+ id: string;
48215
48412
  user_id: string;
48216
48413
  confirmed: boolean;
48217
48414
  phone_number?: string | undefined;
@@ -48223,10 +48420,10 @@ export declare const authenticationMethodSchema: z.ZodEffects<z.ZodObject<{
48223
48420
  credential_backed_up?: boolean | undefined;
48224
48421
  transports?: string[] | undefined;
48225
48422
  }, {
48226
- type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
48227
- id: string;
48228
48423
  created_at: string;
48229
48424
  updated_at: string;
48425
+ type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
48426
+ id: string;
48230
48427
  user_id: string;
48231
48428
  phone_number?: string | undefined;
48232
48429
  friendly_name?: string | undefined;
@@ -48238,10 +48435,10 @@ export declare const authenticationMethodSchema: z.ZodEffects<z.ZodObject<{
48238
48435
  transports?: string[] | undefined;
48239
48436
  confirmed?: boolean | undefined;
48240
48437
  }>, {
48241
- type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
48242
- id: string;
48243
48438
  created_at: string;
48244
48439
  updated_at: string;
48440
+ type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
48441
+ id: string;
48245
48442
  user_id: string;
48246
48443
  confirmed: boolean;
48247
48444
  phone_number?: string | undefined;
@@ -48253,10 +48450,10 @@ export declare const authenticationMethodSchema: z.ZodEffects<z.ZodObject<{
48253
48450
  credential_backed_up?: boolean | undefined;
48254
48451
  transports?: string[] | undefined;
48255
48452
  }, {
48256
- type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
48257
- id: string;
48258
48453
  created_at: string;
48259
48454
  updated_at: string;
48455
+ type: "push" | "email" | "passkey" | "phone" | "totp" | "webauthn-roaming" | "webauthn-platform";
48456
+ id: string;
48260
48457
  user_id: string;
48261
48458
  phone_number?: string | undefined;
48262
48459
  friendly_name?: string | undefined;
@@ -48311,7 +48508,7 @@ export interface PassthroughConfig<T> {
48311
48508
  secondaries: SecondaryAdapterConfig<T>[];
48312
48509
  /**
48313
48510
  * Methods that should be synced to secondaries.
48314
- * Default: ["create", "update", "remove", "delete", "set"]
48511
+ * Default: ["create", "rawCreate", "update", "remove", "delete", "set"]
48315
48512
  */
48316
48513
  syncMethods?: string[];
48317
48514
  }
@@ -48407,6 +48604,16 @@ export interface IdentifierConfig {
48407
48604
  * options.attributes.username.validation.{min_length,max_length}
48408
48605
  */
48409
48606
  export declare function getConnectionIdentifierConfig(connection: ConnectionLike | null | undefined): IdentifierConfig;
48607
+ export interface ListActionsResponse extends Totals {
48608
+ actions: Action[];
48609
+ }
48610
+ export interface ActionsAdapter {
48611
+ create: (tenant_id: string, action: ActionInsert) => Promise<Action>;
48612
+ get: (tenant_id: string, action_id: string) => Promise<Action | null>;
48613
+ update: (tenant_id: string, action_id: string, action: Partial<ActionInsert>) => Promise<boolean>;
48614
+ remove: (tenant_id: string, action_id: string) => Promise<boolean>;
48615
+ list: (tenant_id: string, params?: ListParams) => Promise<ListActionsResponse>;
48616
+ }
48410
48617
  export interface ListFlowsResponse extends Totals {
48411
48618
  flows: Flow[];
48412
48619
  }
@@ -48564,6 +48771,13 @@ export interface ListUsersResponse extends Totals {
48564
48771
  export interface UserDataAdapter {
48565
48772
  get(tenant_id: string, id: string): Promise<User | null>;
48566
48773
  create(tenantId: string, user: UserInsert): Promise<User>;
48774
+ /**
48775
+ * Create a user without invoking any decorator-level hooks (pre/post
48776
+ * registration hooks, linking, webhooks, etc.). Intended to be called from
48777
+ * inside a registration pipeline that owns hook orchestration and transaction
48778
+ * boundaries itself. The DB-level behavior is identical to `create`.
48779
+ */
48780
+ rawCreate(tenantId: string, user: UserInsert): Promise<User>;
48567
48781
  remove(tenantId: string, id: string): Promise<boolean>;
48568
48782
  list(tenantId: string, params?: ListParams): Promise<ListUsersResponse>;
48569
48783
  update(tenantId: string, id: string, user: Partial<User>): Promise<boolean>;
@@ -48851,6 +49065,16 @@ export interface OutboxEvent extends AuditEvent {
48851
49065
  next_retry_at: string | null;
48852
49066
  /** Last error message from a failed delivery attempt */
48853
49067
  error: string | null;
49068
+ /** When the event was moved to dead-letter state (null if still active) */
49069
+ dead_lettered_at?: string | null;
49070
+ /** Final error captured when the event was dead-lettered */
49071
+ final_error?: string | null;
49072
+ }
49073
+ export interface ListFailedEventsResponse {
49074
+ events: OutboxEvent[];
49075
+ start: number;
49076
+ limit: number;
49077
+ length: number;
48854
49078
  }
48855
49079
  export interface OutboxAdapter {
48856
49080
  /** Write an audit event to the outbox. Returns the event ID. */
@@ -48865,6 +49089,25 @@ export interface OutboxAdapter {
48865
49089
  markProcessed(ids: string[]): Promise<void>;
48866
49090
  /** Mark an event for retry with a backoff delay */
48867
49091
  markRetry(id: string, error: string, nextRetryAt: string): Promise<void>;
49092
+ /**
49093
+ * Move an event to dead-letter state. The event is marked processed so the
49094
+ * relay stops retrying it, and the final error is preserved for admin review
49095
+ * via `listFailed`.
49096
+ */
49097
+ deadLetter(id: string, finalError: string): Promise<void>;
49098
+ /**
49099
+ * List dead-lettered events for a tenant, newest first. Used by the
49100
+ * management API's failed-events endpoints.
49101
+ */
49102
+ listFailed(tenantId: string, params?: ListParams): Promise<ListFailedEventsResponse>;
49103
+ /**
49104
+ * Reset a dead-lettered event so the relay retries it. Clears
49105
+ * `dead_lettered_at`, `final_error`, `processed_at`, `retry_count`, and
49106
+ * `next_retry_at`. Scoped to `tenantId` so operators cannot replay events
49107
+ * from other tenants — returns false when no row matches both the id and
49108
+ * the tenant.
49109
+ */
49110
+ replay(id: string, tenantId: string): Promise<boolean>;
48868
49111
  /** Delete processed events older than the given ISO date. Returns count deleted. */
48869
49112
  cleanup(olderThan: string): Promise<number>;
48870
49113
  }
@@ -48915,6 +49158,7 @@ export interface SessionCleanupParams {
48915
49158
  user_id?: string;
48916
49159
  }
48917
49160
  export interface DataAdapters {
49161
+ actions: ActionsAdapter;
48918
49162
  branding: BrandingAdapter;
48919
49163
  cache?: CacheAdapter;
48920
49164
  clients: ClientsAdapter;
@@ -49025,7 +49269,7 @@ export type Variables = {
49025
49269
  useragent?: string;
49026
49270
  countryCode?: CountryCode;
49027
49271
  outboxEventPromises?: Promise<string>[];
49028
- deferredPostHooks?: Array<() => Promise<void>>;
49272
+ backgroundPromises?: Promise<void>[];
49029
49273
  };
49030
49274
  /**
49031
49275
  * Interface for SAML signing implementations.
@@ -49408,9 +49652,9 @@ declare const enrichedClientSchema: z.ZodObject<{
49408
49652
  created_at: z.ZodEffects<z.ZodNullable<z.ZodString>, string, string | null>;
49409
49653
  updated_at: z.ZodEffects<z.ZodNullable<z.ZodString>, string, string | null>;
49410
49654
  }, "strip", z.ZodTypeAny, {
49411
- id: string;
49412
49655
  created_at: string;
49413
49656
  updated_at: string;
49657
+ id: string;
49414
49658
  audience: string;
49415
49659
  friendly_name: string;
49416
49660
  sender_email: string;
@@ -49534,9 +49778,9 @@ declare const enrichedClientSchema: z.ZodObject<{
49534
49778
  } | undefined;
49535
49779
  } | undefined;
49536
49780
  }, {
49537
- id: string;
49538
49781
  created_at: string | null;
49539
49782
  updated_at: string | null;
49783
+ id: string;
49540
49784
  audience: string;
49541
49785
  friendly_name: string;
49542
49786
  sender_email: string;
@@ -50303,6 +50547,8 @@ declare const enrichedClientSchema: z.ZodObject<{
50303
50547
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
50304
50548
  is_system: z.ZodOptional<z.ZodBoolean>;
50305
50549
  }, "strip", z.ZodTypeAny, {
50550
+ created_at: string;
50551
+ updated_at: string;
50306
50552
  options: {
50307
50553
  validation?: {
50308
50554
  username?: {
@@ -50409,8 +50655,6 @@ declare const enrichedClientSchema: z.ZodObject<{
50409
50655
  };
50410
50656
  name: string;
50411
50657
  strategy: string;
50412
- created_at: string;
50413
- updated_at: string;
50414
50658
  id?: string | undefined;
50415
50659
  is_system?: boolean | undefined;
50416
50660
  response_type?: AuthorizationResponseType | undefined;
@@ -50421,10 +50665,10 @@ declare const enrichedClientSchema: z.ZodObject<{
50421
50665
  show_as_button?: boolean | undefined;
50422
50666
  metadata?: Record<string, any> | undefined;
50423
50667
  }, {
50424
- name: string;
50425
- strategy: string;
50426
50668
  created_at: string;
50427
50669
  updated_at: string;
50670
+ name: string;
50671
+ strategy: string;
50428
50672
  options?: {
50429
50673
  validation?: {
50430
50674
  username?: {
@@ -50635,9 +50879,9 @@ declare const enrichedClientSchema: z.ZodObject<{
50635
50879
  }, "strip", z.ZodTypeAny, {
50636
50880
  name: string;
50637
50881
  tenant: {
50638
- id: string;
50639
50882
  created_at: string;
50640
50883
  updated_at: string;
50884
+ id: string;
50641
50885
  audience: string;
50642
50886
  friendly_name: string;
50643
50887
  sender_email: string;
@@ -50762,6 +51006,8 @@ declare const enrichedClientSchema: z.ZodObject<{
50762
51006
  } | undefined;
50763
51007
  };
50764
51008
  connections: {
51009
+ created_at: string;
51010
+ updated_at: string;
50765
51011
  options: {
50766
51012
  validation?: {
50767
51013
  username?: {
@@ -50868,8 +51114,6 @@ declare const enrichedClientSchema: z.ZodObject<{
50868
51114
  };
50869
51115
  name: string;
50870
51116
  strategy: string;
50871
- created_at: string;
50872
- updated_at: string;
50873
51117
  id?: string | undefined;
50874
51118
  is_system?: boolean | undefined;
50875
51119
  response_type?: AuthorizationResponseType | undefined;
@@ -50931,9 +51175,9 @@ declare const enrichedClientSchema: z.ZodObject<{
50931
51175
  }, {
50932
51176
  name: string;
50933
51177
  tenant: {
50934
- id: string;
50935
51178
  created_at: string | null;
50936
51179
  updated_at: string | null;
51180
+ id: string;
50937
51181
  audience: string;
50938
51182
  friendly_name: string;
50939
51183
  sender_email: string;
@@ -51058,10 +51302,10 @@ declare const enrichedClientSchema: z.ZodObject<{
51058
51302
  } | undefined;
51059
51303
  };
51060
51304
  connections: {
51061
- name: string;
51062
- strategy: string;
51063
51305
  created_at: string;
51064
51306
  updated_at: string;
51307
+ name: string;
51308
+ strategy: string;
51065
51309
  options?: {
51066
51310
  validation?: {
51067
51311
  username?: {
@@ -52110,6 +52354,19 @@ export interface InMemoryCacheConfig {
52110
52354
  * Create an in-memory cache adapter
52111
52355
  */
52112
52356
  export declare function createInMemoryCache(config?: InMemoryCacheConfig): CacheAdapter;
52357
+ /**
52358
+ * Register a background promise tied to the current request.
52359
+ *
52360
+ * On Cloudflare Workers (`workerd`), this uses `executionCtx.waitUntil`, which
52361
+ * holds the worker alive until the promise settles but does not block the
52362
+ * response.
52363
+ *
52364
+ * On Node/Bun and in tests we instead collect the promise on the context so a
52365
+ * surrounding middleware can await it before the response leaves. Without this
52366
+ * the response can return before background work (audit log writes, outbox
52367
+ * webhook dispatches) completes, producing flaky test behavior and requests
52368
+ * that occasionally lose tail work if the process exits.
52369
+ */
52113
52370
  export declare function waitUntil(ctx: Context, promise: Promise<unknown>): void;
52114
52371
  /**
52115
52372
  * Parameters for cleaning up expired sessions for a specific user
@@ -52378,6 +52635,17 @@ export interface EnsureUsernameOptions {
52378
52635
  }
52379
52636
  declare function ensureUsername(options?: EnsureUsernameOptions): OnExecutePostLogin;
52380
52637
  declare function setPreferredUsername(): OnExecuteCredentialsExchange;
52638
+ export interface AccountLinkingOptions {
52639
+ /**
52640
+ * Require `email_verified` on the logged-in user before attempting to link.
52641
+ * Disabling this is almost never what you want — unverified email linking
52642
+ * lets an attacker claim existing accounts by signing up with a matching
52643
+ * email on an unverifying provider.
52644
+ * @default true
52645
+ */
52646
+ requireVerifiedEmail?: boolean;
52647
+ }
52648
+ declare function accountLinking(options?: AccountLinkingOptions): OnExecutePostLogin;
52381
52649
  /**
52382
52650
  * Local code executor using `new Function()`.
52383
52651
  * Suitable for local development only — no isolation or sandboxing.
@@ -52726,9 +52994,9 @@ export declare function init(config: AuthHeroConfig): {
52726
52994
  };
52727
52995
  };
52728
52996
  output: {
52729
- date: string;
52730
52997
  created_at: string;
52731
52998
  updated_at: string;
52999
+ date: string;
52732
53000
  logins: number;
52733
53001
  signups: number;
52734
53002
  leaked_passwords: number;
@@ -52769,10 +53037,10 @@ export declare function init(config: AuthHeroConfig): {
52769
53037
  };
52770
53038
  };
52771
53039
  output: {
52772
- name: string;
52773
- id: string;
52774
53040
  created_at: string;
52775
53041
  updated_at: string;
53042
+ id: string;
53043
+ name: string;
52776
53044
  token_quota?: {
52777
53045
  client_credentials?: {
52778
53046
  enforce: boolean;
@@ -52802,10 +53070,10 @@ export declare function init(config: AuthHeroConfig): {
52802
53070
  start: number;
52803
53071
  limit: number;
52804
53072
  organizations: {
52805
- name: string;
52806
- id: string;
52807
53073
  created_at: string;
52808
53074
  updated_at: string;
53075
+ id: string;
53076
+ name: string;
52809
53077
  token_quota?: {
52810
53078
  client_credentials?: {
52811
53079
  enforce: boolean;
@@ -52850,10 +53118,10 @@ export declare function init(config: AuthHeroConfig): {
52850
53118
  };
52851
53119
  };
52852
53120
  output: {
52853
- name: string;
52854
- id: string;
52855
53121
  created_at: string;
52856
53122
  updated_at: string;
53123
+ id: string;
53124
+ name: string;
52857
53125
  token_quota?: {
52858
53126
  client_credentials?: {
52859
53127
  enforce: boolean;
@@ -52921,6 +53189,8 @@ export declare function init(config: AuthHeroConfig): {
52921
53189
  per_hour?: number | undefined;
52922
53190
  } | undefined;
52923
53191
  } | undefined;
53192
+ id?: string | undefined;
53193
+ display_name?: string | undefined;
52924
53194
  branding?: {
52925
53195
  colors?: {
52926
53196
  primary?: string | undefined;
@@ -52928,9 +53198,7 @@ export declare function init(config: AuthHeroConfig): {
52928
53198
  } | undefined;
52929
53199
  logo_url?: string | undefined;
52930
53200
  } | undefined;
52931
- id?: string | undefined;
52932
53201
  metadata?: Record<string, any> | undefined;
52933
- display_name?: string | undefined;
52934
53202
  enabled_connections?: {
52935
53203
  connection_id: string;
52936
53204
  show_as_button?: boolean | undefined;
@@ -52940,10 +53208,10 @@ export declare function init(config: AuthHeroConfig): {
52940
53208
  };
52941
53209
  };
52942
53210
  output: {
52943
- name: string;
52944
- id: string;
52945
53211
  created_at: string;
52946
53212
  updated_at: string;
53213
+ id: string;
53214
+ name: string;
52947
53215
  token_quota?: {
52948
53216
  client_credentials?: {
52949
53217
  enforce: boolean;
@@ -53009,10 +53277,10 @@ export declare function init(config: AuthHeroConfig): {
53009
53277
  };
53010
53278
  };
53011
53279
  output: {
53012
- name: string;
53013
- id: string;
53014
53280
  created_at: string;
53015
53281
  updated_at: string;
53282
+ id: string;
53283
+ name: string;
53016
53284
  token_quota?: {
53017
53285
  client_credentials?: {
53018
53286
  enforce: boolean;
@@ -53155,11 +53423,11 @@ export declare function init(config: AuthHeroConfig): {
53155
53423
  };
53156
53424
  };
53157
53425
  output: {
53158
- name: string;
53159
53426
  id: string;
53160
- description?: string | undefined | undefined;
53427
+ name: string;
53161
53428
  created_at?: string | undefined | undefined;
53162
53429
  updated_at?: string | undefined | undefined;
53430
+ description?: string | undefined | undefined;
53163
53431
  is_system?: boolean | undefined | undefined;
53164
53432
  metadata?: {
53165
53433
  [x: string]: any;
@@ -53236,11 +53504,11 @@ export declare function init(config: AuthHeroConfig): {
53236
53504
  };
53237
53505
  };
53238
53506
  output: {
53239
- name: string;
53240
53507
  id: string;
53241
- description?: string | undefined | undefined;
53508
+ name: string;
53242
53509
  created_at?: string | undefined | undefined;
53243
53510
  updated_at?: string | undefined | undefined;
53511
+ description?: string | undefined | undefined;
53244
53512
  is_system?: boolean | undefined | undefined;
53245
53513
  metadata?: {
53246
53514
  [x: string]: any;
@@ -53272,9 +53540,9 @@ export declare function init(config: AuthHeroConfig): {
53272
53540
  };
53273
53541
  };
53274
53542
  output: {
53543
+ created_at: string;
53275
53544
  id: string;
53276
53545
  client_id: string;
53277
- created_at: string;
53278
53546
  expires_at: string;
53279
53547
  organization_id: string;
53280
53548
  inviter: {
@@ -53300,9 +53568,9 @@ export declare function init(config: AuthHeroConfig): {
53300
53568
  start: number;
53301
53569
  limit: number;
53302
53570
  invitations: {
53571
+ created_at: string;
53303
53572
  id: string;
53304
53573
  client_id: string;
53305
- created_at: string;
53306
53574
  expires_at: string;
53307
53575
  organization_id: string;
53308
53576
  inviter: {
@@ -53357,9 +53625,9 @@ export declare function init(config: AuthHeroConfig): {
53357
53625
  };
53358
53626
  };
53359
53627
  output: {
53628
+ created_at: string;
53360
53629
  id: string;
53361
53630
  client_id: string;
53362
- created_at: string;
53363
53631
  expires_at: string;
53364
53632
  organization_id: string;
53365
53633
  inviter: {
@@ -53414,9 +53682,9 @@ export declare function init(config: AuthHeroConfig): {
53414
53682
  };
53415
53683
  };
53416
53684
  output: {
53685
+ created_at: string;
53417
53686
  id: string;
53418
53687
  client_id: string;
53419
- created_at: string;
53420
53688
  expires_at: string;
53421
53689
  organization_id: string;
53422
53690
  inviter: {
@@ -53495,6 +53763,8 @@ export declare function init(config: AuthHeroConfig): {
53495
53763
  output: {
53496
53764
  name: string;
53497
53765
  identifier: string;
53766
+ created_at?: string | undefined | undefined;
53767
+ updated_at?: string | undefined | undefined;
53498
53768
  options?: {
53499
53769
  mtls?: {
53500
53770
  bound_access_tokens?: boolean | undefined | undefined;
@@ -53511,8 +53781,6 @@ export declare function init(config: AuthHeroConfig): {
53511
53781
  value: string;
53512
53782
  description?: string | undefined | undefined;
53513
53783
  }[] | undefined;
53514
- created_at?: string | undefined | undefined;
53515
- updated_at?: string | undefined | undefined;
53516
53784
  is_system?: boolean | undefined | undefined;
53517
53785
  metadata?: {
53518
53786
  [x: string]: any;
@@ -53531,6 +53799,8 @@ export declare function init(config: AuthHeroConfig): {
53531
53799
  resource_servers: {
53532
53800
  name: string;
53533
53801
  identifier: string;
53802
+ created_at?: string | undefined | undefined;
53803
+ updated_at?: string | undefined | undefined;
53534
53804
  options?: {
53535
53805
  mtls?: {
53536
53806
  bound_access_tokens?: boolean | undefined | undefined;
@@ -53547,8 +53817,6 @@ export declare function init(config: AuthHeroConfig): {
53547
53817
  value: string;
53548
53818
  description?: string | undefined | undefined;
53549
53819
  }[] | undefined;
53550
- created_at?: string | undefined | undefined;
53551
- updated_at?: string | undefined | undefined;
53552
53820
  is_system?: boolean | undefined | undefined;
53553
53821
  metadata?: {
53554
53822
  [x: string]: any;
@@ -53582,6 +53850,8 @@ export declare function init(config: AuthHeroConfig): {
53582
53850
  output: {
53583
53851
  name: string;
53584
53852
  identifier: string;
53853
+ created_at?: string | undefined | undefined;
53854
+ updated_at?: string | undefined | undefined;
53585
53855
  options?: {
53586
53856
  mtls?: {
53587
53857
  bound_access_tokens?: boolean | undefined | undefined;
@@ -53598,8 +53868,6 @@ export declare function init(config: AuthHeroConfig): {
53598
53868
  value: string;
53599
53869
  description?: string | undefined | undefined;
53600
53870
  }[] | undefined;
53601
- created_at?: string | undefined | undefined;
53602
- updated_at?: string | undefined | undefined;
53603
53871
  is_system?: boolean | undefined | undefined;
53604
53872
  metadata?: {
53605
53873
  [x: string]: any;
@@ -53678,6 +53946,8 @@ export declare function init(config: AuthHeroConfig): {
53678
53946
  output: {
53679
53947
  name: string;
53680
53948
  identifier: string;
53949
+ created_at?: string | undefined | undefined;
53950
+ updated_at?: string | undefined | undefined;
53681
53951
  options?: {
53682
53952
  mtls?: {
53683
53953
  bound_access_tokens?: boolean | undefined | undefined;
@@ -53694,8 +53964,6 @@ export declare function init(config: AuthHeroConfig): {
53694
53964
  value: string;
53695
53965
  description?: string | undefined | undefined;
53696
53966
  }[] | undefined;
53697
- created_at?: string | undefined | undefined;
53698
- updated_at?: string | undefined | undefined;
53699
53967
  is_system?: boolean | undefined | undefined;
53700
53968
  metadata?: {
53701
53969
  [x: string]: any;
@@ -53753,6 +54021,8 @@ export declare function init(config: AuthHeroConfig): {
53753
54021
  output: {
53754
54022
  name: string;
53755
54023
  identifier: string;
54024
+ created_at?: string | undefined | undefined;
54025
+ updated_at?: string | undefined | undefined;
53756
54026
  options?: {
53757
54027
  mtls?: {
53758
54028
  bound_access_tokens?: boolean | undefined | undefined;
@@ -53769,8 +54039,6 @@ export declare function init(config: AuthHeroConfig): {
53769
54039
  value: string;
53770
54040
  description?: string | undefined | undefined;
53771
54041
  }[] | undefined;
53772
- created_at?: string | undefined | undefined;
53773
- updated_at?: string | undefined | undefined;
53774
54042
  is_system?: boolean | undefined | undefined;
53775
54043
  metadata?: {
53776
54044
  [x: string]: any;
@@ -53806,11 +54074,11 @@ export declare function init(config: AuthHeroConfig): {
53806
54074
  };
53807
54075
  };
53808
54076
  output: {
53809
- name: string;
53810
54077
  id: string;
53811
- description?: string | undefined | undefined;
54078
+ name: string;
53812
54079
  created_at?: string | undefined | undefined;
53813
54080
  updated_at?: string | undefined | undefined;
54081
+ description?: string | undefined | undefined;
53814
54082
  is_system?: boolean | undefined | undefined;
53815
54083
  metadata?: {
53816
54084
  [x: string]: any;
@@ -53820,11 +54088,11 @@ export declare function init(config: AuthHeroConfig): {
53820
54088
  start: number;
53821
54089
  limit: number;
53822
54090
  roles: {
53823
- name: string;
53824
54091
  id: string;
53825
- description?: string | undefined | undefined;
54092
+ name: string;
53826
54093
  created_at?: string | undefined | undefined;
53827
54094
  updated_at?: string | undefined | undefined;
54095
+ description?: string | undefined | undefined;
53828
54096
  is_system?: boolean | undefined | undefined;
53829
54097
  metadata?: {
53830
54098
  [x: string]: any;
@@ -53849,11 +54117,11 @@ export declare function init(config: AuthHeroConfig): {
53849
54117
  };
53850
54118
  };
53851
54119
  output: {
53852
- name: string;
53853
54120
  id: string;
53854
- description?: string | undefined | undefined;
54121
+ name: string;
53855
54122
  created_at?: string | undefined | undefined;
53856
54123
  updated_at?: string | undefined | undefined;
54124
+ description?: string | undefined | undefined;
53857
54125
  is_system?: boolean | undefined | undefined;
53858
54126
  metadata?: {
53859
54127
  [x: string]: any;
@@ -53880,11 +54148,11 @@ export declare function init(config: AuthHeroConfig): {
53880
54148
  };
53881
54149
  };
53882
54150
  output: {
53883
- name: string;
53884
54151
  id: string;
53885
- description?: string | undefined | undefined;
54152
+ name: string;
53886
54153
  created_at?: string | undefined | undefined;
53887
54154
  updated_at?: string | undefined | undefined;
54155
+ description?: string | undefined | undefined;
53888
54156
  is_system?: boolean | undefined | undefined;
53889
54157
  metadata?: {
53890
54158
  [x: string]: any;
@@ -53915,11 +54183,11 @@ export declare function init(config: AuthHeroConfig): {
53915
54183
  };
53916
54184
  };
53917
54185
  output: {
53918
- name: string;
53919
54186
  id: string;
53920
- description?: string | undefined | undefined;
54187
+ name: string;
53921
54188
  created_at?: string | undefined | undefined;
53922
54189
  updated_at?: string | undefined | undefined;
54190
+ description?: string | undefined | undefined;
53923
54191
  is_system?: boolean | undefined | undefined;
53924
54192
  metadata?: {
53925
54193
  [x: string]: any;
@@ -54045,10 +54313,10 @@ export declare function init(config: AuthHeroConfig): {
54045
54313
  };
54046
54314
  };
54047
54315
  output: {
54048
- name: string;
54049
- id: string;
54050
54316
  created_at: string;
54051
54317
  updated_at: string;
54318
+ id: string;
54319
+ name: string;
54052
54320
  actions: ({
54053
54321
  params: {
54054
54322
  user_id: string;
@@ -54098,10 +54366,10 @@ export declare function init(config: AuthHeroConfig): {
54098
54366
  start: number;
54099
54367
  limit: number;
54100
54368
  flows: {
54101
- name: string;
54102
- id: string;
54103
54369
  created_at: string;
54104
54370
  updated_at: string;
54371
+ id: string;
54372
+ name: string;
54105
54373
  actions: ({
54106
54374
  params: {
54107
54375
  user_id: string;
@@ -54166,10 +54434,10 @@ export declare function init(config: AuthHeroConfig): {
54166
54434
  };
54167
54435
  };
54168
54436
  output: {
54169
- name: string;
54170
- id: string;
54171
54437
  created_at: string;
54172
54438
  updated_at: string;
54439
+ id: string;
54440
+ name: string;
54173
54441
  actions: ({
54174
54442
  params: {
54175
54443
  user_id: string;
@@ -54295,10 +54563,10 @@ export declare function init(config: AuthHeroConfig): {
54295
54563
  };
54296
54564
  };
54297
54565
  output: {
54298
- name: string;
54299
- id: string;
54300
54566
  created_at: string;
54301
54567
  updated_at: string;
54568
+ id: string;
54569
+ name: string;
54302
54570
  actions: ({
54303
54571
  params: {
54304
54572
  user_id: string;
@@ -54403,10 +54671,10 @@ export declare function init(config: AuthHeroConfig): {
54403
54671
  };
54404
54672
  };
54405
54673
  output: {
54406
- name: string;
54407
- id: string;
54408
54674
  created_at: string;
54409
54675
  updated_at: string;
54676
+ id: string;
54677
+ name: string;
54410
54678
  actions: ({
54411
54679
  params: {
54412
54680
  user_id: string;
@@ -54475,10 +54743,10 @@ export declare function init(config: AuthHeroConfig): {
54475
54743
  };
54476
54744
  };
54477
54745
  output: {
54478
- name: string;
54479
- id: string;
54480
54746
  created_at: string;
54481
54747
  updated_at: string;
54748
+ id: string;
54749
+ name: string;
54482
54750
  style?: {
54483
54751
  css?: string | undefined | undefined;
54484
54752
  } | undefined;
@@ -55052,10 +55320,10 @@ export declare function init(config: AuthHeroConfig): {
55052
55320
  start: number;
55053
55321
  limit: number;
55054
55322
  forms: {
55055
- name: string;
55056
- id: string;
55057
55323
  created_at: string;
55058
55324
  updated_at: string;
55325
+ id: string;
55326
+ name: string;
55059
55327
  style?: {
55060
55328
  css?: string | undefined | undefined;
55061
55329
  } | undefined;
@@ -55644,10 +55912,10 @@ export declare function init(config: AuthHeroConfig): {
55644
55912
  };
55645
55913
  };
55646
55914
  output: {
55647
- name: string;
55648
- id: string;
55649
55915
  created_at: string;
55650
55916
  updated_at: string;
55917
+ id: string;
55918
+ name: string;
55651
55919
  style?: {
55652
55920
  css?: string | undefined | undefined;
55653
55921
  } | undefined;
@@ -56813,10 +57081,10 @@ export declare function init(config: AuthHeroConfig): {
56813
57081
  };
56814
57082
  };
56815
57083
  output: {
56816
- name: string;
56817
- id: string;
56818
57084
  created_at: string;
56819
57085
  updated_at: string;
57086
+ id: string;
57087
+ name: string;
56820
57088
  style?: {
56821
57089
  css?: string | undefined | undefined;
56822
57090
  } | undefined;
@@ -57961,10 +58229,10 @@ export declare function init(config: AuthHeroConfig): {
57961
58229
  };
57962
58230
  };
57963
58231
  output: {
57964
- name: string;
57965
- id: string;
57966
58232
  created_at: string;
57967
58233
  updated_at: string;
58234
+ id: string;
58235
+ name: string;
57968
58236
  style?: {
57969
58237
  css?: string | undefined | undefined;
57970
58238
  } | undefined;
@@ -58606,9 +58874,9 @@ export declare function init(config: AuthHeroConfig): {
58606
58874
  };
58607
58875
  };
58608
58876
  output: {
58609
- id: string;
58610
58877
  created_at: string;
58611
58878
  updated_at: string;
58879
+ id: string;
58612
58880
  user_id: string;
58613
58881
  login_session_id: string;
58614
58882
  device: {
@@ -58802,6 +59070,8 @@ export declare function init(config: AuthHeroConfig): {
58802
59070
  };
58803
59071
  };
58804
59072
  output: {
59073
+ created_at: string;
59074
+ updated_at: string;
58805
59075
  options: {
58806
59076
  validation?: {
58807
59077
  username?: {
@@ -58908,8 +59178,6 @@ export declare function init(config: AuthHeroConfig): {
58908
59178
  };
58909
59179
  name: string;
58910
59180
  strategy: string;
58911
- created_at: string;
58912
- updated_at: string;
58913
59181
  id?: string | undefined | undefined;
58914
59182
  is_system?: boolean | undefined | undefined;
58915
59183
  response_type?: AuthorizationResponseType | undefined;
@@ -58924,6 +59192,8 @@ export declare function init(config: AuthHeroConfig): {
58924
59192
  }[] | {
58925
59193
  length: number;
58926
59194
  connections: {
59195
+ created_at: string;
59196
+ updated_at: string;
58927
59197
  options: {
58928
59198
  validation?: {
58929
59199
  username?: {
@@ -59030,8 +59300,6 @@ export declare function init(config: AuthHeroConfig): {
59030
59300
  };
59031
59301
  name: string;
59032
59302
  strategy: string;
59033
- created_at: string;
59034
- updated_at: string;
59035
59303
  id?: string | undefined | undefined;
59036
59304
  is_system?: boolean | undefined | undefined;
59037
59305
  response_type?: AuthorizationResponseType | undefined;
@@ -59065,6 +59333,8 @@ export declare function init(config: AuthHeroConfig): {
59065
59333
  };
59066
59334
  };
59067
59335
  output: {
59336
+ created_at: string;
59337
+ updated_at: string;
59068
59338
  options: {
59069
59339
  validation?: {
59070
59340
  username?: {
@@ -59171,8 +59441,6 @@ export declare function init(config: AuthHeroConfig): {
59171
59441
  };
59172
59442
  name: string;
59173
59443
  strategy: string;
59174
- created_at: string;
59175
- updated_at: string;
59176
59444
  id?: string | undefined | undefined;
59177
59445
  is_system?: boolean | undefined | undefined;
59178
59446
  response_type?: AuthorizationResponseType | undefined;
@@ -59327,9 +59595,9 @@ export declare function init(config: AuthHeroConfig): {
59327
59595
  response_mode?: AuthorizationResponseMode | undefined;
59328
59596
  response_type?: AuthorizationResponseType | undefined;
59329
59597
  id?: string | undefined;
59598
+ display_name?: string | undefined;
59330
59599
  is_system?: boolean | undefined;
59331
59600
  metadata?: Record<string, any> | undefined;
59332
- display_name?: string | undefined;
59333
59601
  strategy?: string | undefined;
59334
59602
  enabled_clients?: string[] | undefined;
59335
59603
  is_domain_connection?: boolean | undefined;
@@ -59337,6 +59605,8 @@ export declare function init(config: AuthHeroConfig): {
59337
59605
  };
59338
59606
  };
59339
59607
  output: {
59608
+ created_at: string;
59609
+ updated_at: string;
59340
59610
  options: {
59341
59611
  validation?: {
59342
59612
  username?: {
@@ -59443,8 +59713,6 @@ export declare function init(config: AuthHeroConfig): {
59443
59713
  };
59444
59714
  name: string;
59445
59715
  strategy: string;
59446
- created_at: string;
59447
- updated_at: string;
59448
59716
  id?: string | undefined | undefined;
59449
59717
  is_system?: boolean | undefined | undefined;
59450
59718
  response_type?: AuthorizationResponseType | undefined;
@@ -59579,15 +59847,17 @@ export declare function init(config: AuthHeroConfig): {
59579
59847
  response_mode?: AuthorizationResponseMode | undefined;
59580
59848
  response_type?: AuthorizationResponseType | undefined;
59581
59849
  id?: string | undefined;
59850
+ display_name?: string | undefined;
59582
59851
  is_system?: boolean | undefined;
59583
59852
  metadata?: Record<string, any> | undefined;
59584
- display_name?: string | undefined;
59585
59853
  enabled_clients?: string[] | undefined;
59586
59854
  is_domain_connection?: boolean | undefined;
59587
59855
  show_as_button?: boolean | undefined;
59588
59856
  };
59589
59857
  };
59590
59858
  output: {
59859
+ created_at: string;
59860
+ updated_at: string;
59591
59861
  options: {
59592
59862
  validation?: {
59593
59863
  username?: {
@@ -59694,8 +59964,6 @@ export declare function init(config: AuthHeroConfig): {
59694
59964
  };
59695
59965
  name: string;
59696
59966
  strategy: string;
59697
- created_at: string;
59698
- updated_at: string;
59699
59967
  id?: string | undefined | undefined;
59700
59968
  is_system?: boolean | undefined | undefined;
59701
59969
  response_type?: AuthorizationResponseType | undefined;
@@ -59776,10 +60044,10 @@ export declare function init(config: AuthHeroConfig): {
59776
60044
  tenant_id: string;
59777
60045
  id: string;
59778
60046
  deploymentStatus: "deployed" | "failed" | "not_required";
59779
- deploymentError?: string | undefined;
59780
60047
  secrets?: {
59781
60048
  [x: string]: string;
59782
60049
  } | undefined;
60050
+ deploymentError?: string | undefined;
59783
60051
  };
59784
60052
  outputFormat: "json";
59785
60053
  status: 201;
@@ -59811,11 +60079,11 @@ export declare function init(config: AuthHeroConfig): {
59811
60079
  };
59812
60080
  };
59813
60081
  output: {
60082
+ created_at: string;
60083
+ updated_at: string;
59814
60084
  code: string;
59815
60085
  id: string;
59816
60086
  tenant_id: string;
59817
- created_at: string;
59818
- updated_at: string;
59819
60087
  secrets?: {
59820
60088
  [x: string]: string;
59821
60089
  } | undefined;
@@ -59866,10 +60134,10 @@ export declare function init(config: AuthHeroConfig): {
59866
60134
  tenant_id: string;
59867
60135
  id: string;
59868
60136
  deploymentStatus: "deployed" | "failed" | "not_required";
59869
- deploymentError?: string | undefined;
59870
60137
  secrets?: {
59871
60138
  [x: string]: string;
59872
60139
  } | undefined;
60140
+ deploymentError?: string | undefined;
59873
60141
  };
59874
60142
  outputFormat: "json";
59875
60143
  status: 200;
@@ -60226,6 +60494,142 @@ export declare function init(config: AuthHeroConfig): {
60226
60494
  };
60227
60495
  };
60228
60496
  }, "/hooks"> & import("hono/types").MergeSchemaPath<{
60497
+ "/": {
60498
+ $get: {
60499
+ input: {
60500
+ query: {
60501
+ sort?: string | undefined;
60502
+ page?: string | undefined;
60503
+ per_page?: string | undefined;
60504
+ include_totals?: string | undefined;
60505
+ from?: string | undefined;
60506
+ take?: string | undefined;
60507
+ q?: string | undefined;
60508
+ };
60509
+ } & {
60510
+ header: {
60511
+ "tenant-id"?: string | undefined;
60512
+ };
60513
+ };
60514
+ output: {
60515
+ length: number;
60516
+ start: number;
60517
+ limit: number;
60518
+ events: {
60519
+ created_at: string;
60520
+ tenant_id: string;
60521
+ request: {
60522
+ path: string;
60523
+ method: string;
60524
+ ip: string;
60525
+ query?: {
60526
+ [x: string]: string;
60527
+ } | undefined;
60528
+ body?: import("hono/utils/types").JSONValue | undefined;
60529
+ user_agent?: string | undefined | undefined;
60530
+ correlation_id?: string | undefined | undefined;
60531
+ };
60532
+ id: string;
60533
+ error: string | null;
60534
+ hostname: string;
60535
+ processed_at: string | null;
60536
+ retry_count: number;
60537
+ next_retry_at: string | null;
60538
+ event_type: string;
60539
+ log_type: string;
60540
+ category: "user_action" | "admin_action" | "system" | "api";
60541
+ actor: {
60542
+ type: "system" | "user" | "admin" | "api_key" | "client_credentials";
60543
+ id?: string | undefined | undefined;
60544
+ email?: string | undefined | undefined;
60545
+ org_id?: string | undefined | undefined;
60546
+ org_name?: string | undefined | undefined;
60547
+ scopes?: string[] | undefined | undefined;
60548
+ client_id?: string | undefined | undefined;
60549
+ };
60550
+ target: {
60551
+ type: string;
60552
+ id: string;
60553
+ before?: {
60554
+ [x: string]: import("hono/utils/types").JSONValue;
60555
+ } | undefined;
60556
+ after?: {
60557
+ [x: string]: import("hono/utils/types").JSONValue;
60558
+ } | undefined;
60559
+ diff?: {
60560
+ [x: string]: {
60561
+ old?: import("hono/utils/types").JSONValue | undefined;
60562
+ new?: import("hono/utils/types").JSONValue | undefined;
60563
+ };
60564
+ } | undefined;
60565
+ };
60566
+ timestamp: string;
60567
+ description?: string | undefined;
60568
+ connection?: string | undefined;
60569
+ auth0_client?: {
60570
+ version: string;
60571
+ name: string;
60572
+ env?: {
60573
+ [x: string]: string;
60574
+ } | undefined;
60575
+ } | undefined;
60576
+ response?: {
60577
+ status_code: number;
60578
+ body?: import("hono/utils/types").JSONValue | undefined;
60579
+ } | undefined;
60580
+ strategy?: string | undefined;
60581
+ strategy_type?: string | undefined;
60582
+ dead_lettered_at?: string | null | undefined;
60583
+ final_error?: string | null | undefined;
60584
+ location?: {
60585
+ country_code: string;
60586
+ city_name: string;
60587
+ latitude: string;
60588
+ longitude: string;
60589
+ time_zone: string;
60590
+ continent_code: string;
60591
+ } | undefined;
60592
+ is_mobile?: boolean | undefined;
60593
+ }[];
60594
+ };
60595
+ outputFormat: "json";
60596
+ status: 200;
60597
+ };
60598
+ };
60599
+ } & {
60600
+ "/:id/retry": {
60601
+ $post: {
60602
+ input: {
60603
+ param: {
60604
+ id: string;
60605
+ };
60606
+ } & {
60607
+ header: {
60608
+ "tenant-id"?: string | undefined;
60609
+ };
60610
+ };
60611
+ output: {};
60612
+ outputFormat: string;
60613
+ status: 404;
60614
+ } | {
60615
+ input: {
60616
+ param: {
60617
+ id: string;
60618
+ };
60619
+ } & {
60620
+ header: {
60621
+ "tenant-id"?: string | undefined;
60622
+ };
60623
+ };
60624
+ output: {
60625
+ id: string;
60626
+ replayed: boolean;
60627
+ };
60628
+ outputFormat: "json";
60629
+ status: 200;
60630
+ };
60631
+ };
60632
+ }, "/failed-events"> & import("hono/types").MergeSchemaPath<{
60229
60633
  "/": {
60230
60634
  $get: {
60231
60635
  input: {
@@ -60256,8 +60660,8 @@ export declare function init(config: AuthHeroConfig): {
60256
60660
  strategy?: string | undefined | undefined;
60257
60661
  strategy_type?: string | undefined | undefined;
60258
60662
  auth0_client?: {
60259
- name: string;
60260
60663
  version: string;
60664
+ name: string;
60261
60665
  env?: {
60262
60666
  node?: string | undefined | undefined;
60263
60667
  } | undefined;
@@ -60295,8 +60699,8 @@ export declare function init(config: AuthHeroConfig): {
60295
60699
  strategy?: string | undefined | undefined;
60296
60700
  strategy_type?: string | undefined | undefined;
60297
60701
  auth0_client?: {
60298
- name: string;
60299
60702
  version: string;
60703
+ name: string;
60300
60704
  env?: {
60301
60705
  node?: string | undefined | undefined;
60302
60706
  } | undefined;
@@ -60349,8 +60753,8 @@ export declare function init(config: AuthHeroConfig): {
60349
60753
  strategy?: string | undefined | undefined;
60350
60754
  strategy_type?: string | undefined | undefined;
60351
60755
  auth0_client?: {
60352
- name: string;
60353
60756
  version: string;
60757
+ name: string;
60354
60758
  env?: {
60355
60759
  node?: string | undefined | undefined;
60356
60760
  } | undefined;
@@ -60572,10 +60976,10 @@ export declare function init(config: AuthHeroConfig): {
60572
60976
  };
60573
60977
  };
60574
60978
  output: {
60575
- name: string;
60576
- client_id: string;
60577
60979
  created_at: string;
60578
60980
  updated_at: string;
60981
+ name: string;
60982
+ client_id: string;
60579
60983
  global: boolean;
60580
60984
  is_first_party: boolean;
60581
60985
  oidc_conformant: boolean;
@@ -60655,10 +61059,10 @@ export declare function init(config: AuthHeroConfig): {
60655
61059
  start: number;
60656
61060
  limit: number;
60657
61061
  clients: {
60658
- name: string;
60659
- client_id: string;
60660
61062
  created_at: string;
60661
61063
  updated_at: string;
61064
+ name: string;
61065
+ client_id: string;
60662
61066
  global: boolean;
60663
61067
  is_first_party: boolean;
60664
61068
  oidc_conformant: boolean;
@@ -60753,10 +61157,10 @@ export declare function init(config: AuthHeroConfig): {
60753
61157
  };
60754
61158
  };
60755
61159
  output: {
60756
- name: string;
60757
- client_id: string;
60758
61160
  created_at: string;
60759
61161
  updated_at: string;
61162
+ name: string;
61163
+ client_id: string;
60760
61164
  global: boolean;
60761
61165
  is_first_party: boolean;
60762
61166
  oidc_conformant: boolean;
@@ -60917,10 +61321,10 @@ export declare function init(config: AuthHeroConfig): {
60917
61321
  };
60918
61322
  };
60919
61323
  output: {
60920
- name: string;
60921
- client_id: string;
60922
61324
  created_at: string;
60923
61325
  updated_at: string;
61326
+ name: string;
61327
+ client_id: string;
60924
61328
  global: boolean;
60925
61329
  is_first_party: boolean;
60926
61330
  oidc_conformant: boolean;
@@ -61159,6 +61563,8 @@ export declare function init(config: AuthHeroConfig): {
61159
61563
  enabled_connections: {
61160
61564
  connection_id: string;
61161
61565
  connection?: {
61566
+ created_at: string;
61567
+ updated_at: string;
61162
61568
  options: {
61163
61569
  validation?: {
61164
61570
  username?: {
@@ -61265,8 +61671,6 @@ export declare function init(config: AuthHeroConfig): {
61265
61671
  };
61266
61672
  name: string;
61267
61673
  strategy: string;
61268
- created_at: string;
61269
- updated_at: string;
61270
61674
  id?: string | undefined | undefined;
61271
61675
  is_system?: boolean | undefined | undefined;
61272
61676
  response_type?: AuthorizationResponseType | undefined;
@@ -61303,6 +61707,8 @@ export declare function init(config: AuthHeroConfig): {
61303
61707
  enabled_connections: {
61304
61708
  connection_id: string;
61305
61709
  connection?: {
61710
+ created_at: string;
61711
+ updated_at: string;
61306
61712
  options: {
61307
61713
  validation?: {
61308
61714
  username?: {
@@ -61409,8 +61815,6 @@ export declare function init(config: AuthHeroConfig): {
61409
61815
  };
61410
61816
  name: string;
61411
61817
  strategy: string;
61412
- created_at: string;
61413
- updated_at: string;
61414
61818
  id?: string | undefined | undefined;
61415
61819
  is_system?: boolean | undefined | undefined;
61416
61820
  response_type?: AuthorizationResponseType | undefined;
@@ -61555,9 +61959,9 @@ export declare function init(config: AuthHeroConfig): {
61555
61959
  };
61556
61960
  };
61557
61961
  output: {
61558
- connection: string;
61559
61962
  created_at: string;
61560
61963
  updated_at: string;
61964
+ connection: string;
61561
61965
  user_id: string;
61562
61966
  email_verified: boolean;
61563
61967
  provider: string;
@@ -61595,6 +61999,7 @@ export declare function init(config: AuthHeroConfig): {
61595
61999
  verify_email?: boolean | undefined | undefined;
61596
62000
  last_ip?: string | undefined | undefined;
61597
62001
  last_login?: string | undefined | undefined;
62002
+ registration_completed_at?: string | undefined | undefined;
61598
62003
  identities?: {
61599
62004
  connection: string;
61600
62005
  user_id: string;
@@ -61625,9 +62030,9 @@ export declare function init(config: AuthHeroConfig): {
61625
62030
  start: number;
61626
62031
  limit: number;
61627
62032
  users: {
61628
- connection: string;
61629
62033
  created_at: string;
61630
62034
  updated_at: string;
62035
+ connection: string;
61631
62036
  user_id: string;
61632
62037
  email_verified: boolean;
61633
62038
  provider: string;
@@ -61665,6 +62070,7 @@ export declare function init(config: AuthHeroConfig): {
61665
62070
  verify_email?: boolean | undefined | undefined;
61666
62071
  last_ip?: string | undefined | undefined;
61667
62072
  last_login?: string | undefined | undefined;
62073
+ registration_completed_at?: string | undefined | undefined;
61668
62074
  identities?: {
61669
62075
  connection: string;
61670
62076
  user_id: string;
@@ -61710,9 +62116,9 @@ export declare function init(config: AuthHeroConfig): {
61710
62116
  };
61711
62117
  };
61712
62118
  output: {
61713
- connection: string;
61714
62119
  created_at: string;
61715
62120
  updated_at: string;
62121
+ connection: string;
61716
62122
  user_id: string;
61717
62123
  email_verified: boolean;
61718
62124
  provider: string;
@@ -61750,6 +62156,7 @@ export declare function init(config: AuthHeroConfig): {
61750
62156
  verify_email?: boolean | undefined | undefined;
61751
62157
  last_ip?: string | undefined | undefined;
61752
62158
  last_login?: string | undefined | undefined;
62159
+ registration_completed_at?: string | undefined | undefined;
61753
62160
  identities?: {
61754
62161
  connection: string;
61755
62162
  user_id: string;
@@ -61844,12 +62251,13 @@ export declare function init(config: AuthHeroConfig): {
61844
62251
  provider?: string | undefined;
61845
62252
  email_verified?: boolean | undefined;
61846
62253
  is_social?: boolean | undefined;
62254
+ registration_completed_at?: string | undefined;
61847
62255
  };
61848
62256
  };
61849
62257
  output: {
61850
- connection: string;
61851
62258
  created_at: string;
61852
62259
  updated_at: string;
62260
+ connection: string;
61853
62261
  user_id: string;
61854
62262
  email_verified: boolean;
61855
62263
  provider: string;
@@ -61887,6 +62295,7 @@ export declare function init(config: AuthHeroConfig): {
61887
62295
  verify_email?: boolean | undefined | undefined;
61888
62296
  last_ip?: string | undefined | undefined;
61889
62297
  last_login?: string | undefined | undefined;
62298
+ registration_completed_at?: string | undefined | undefined;
61890
62299
  identities?: {
61891
62300
  connection: string;
61892
62301
  user_id: string;
@@ -61968,6 +62377,7 @@ export declare function init(config: AuthHeroConfig): {
61968
62377
  provider?: string | undefined;
61969
62378
  email_verified?: boolean | undefined;
61970
62379
  is_social?: boolean | undefined;
62380
+ registration_completed_at?: string | undefined;
61971
62381
  };
61972
62382
  };
61973
62383
  output: {};
@@ -62039,9 +62449,9 @@ export declare function init(config: AuthHeroConfig): {
62039
62449
  };
62040
62450
  };
62041
62451
  output: {
62042
- connection: string;
62043
62452
  created_at: string;
62044
62453
  updated_at: string;
62454
+ connection: string;
62045
62455
  user_id: string;
62046
62456
  email_verified: boolean;
62047
62457
  provider: string;
@@ -62079,6 +62489,7 @@ export declare function init(config: AuthHeroConfig): {
62079
62489
  verify_email?: boolean | undefined | undefined;
62080
62490
  last_ip?: string | undefined | undefined;
62081
62491
  last_login?: string | undefined | undefined;
62492
+ registration_completed_at?: string | undefined | undefined;
62082
62493
  identities?: {
62083
62494
  connection: string;
62084
62495
  user_id: string;
@@ -62132,9 +62543,9 @@ export declare function init(config: AuthHeroConfig): {
62132
62543
  };
62133
62544
  };
62134
62545
  output: {
62135
- id: string;
62136
62546
  created_at: string;
62137
62547
  updated_at: string;
62548
+ id: string;
62138
62549
  user_id: string;
62139
62550
  login_session_id: string;
62140
62551
  device: {
@@ -62157,9 +62568,9 @@ export declare function init(config: AuthHeroConfig): {
62157
62568
  start: number;
62158
62569
  limit: number;
62159
62570
  sessions: {
62160
- id: string;
62161
62571
  created_at: string;
62162
62572
  updated_at: string;
62573
+ id: string;
62163
62574
  user_id: string;
62164
62575
  login_session_id: string;
62165
62576
  device: {
@@ -62211,8 +62622,8 @@ export declare function init(config: AuthHeroConfig): {
62211
62622
  resource_server_identifier: string;
62212
62623
  permission_name: string;
62213
62624
  resource_server_name: string;
62214
- description?: string | null | undefined | undefined;
62215
62625
  created_at?: string | undefined | undefined;
62626
+ description?: string | null | undefined | undefined;
62216
62627
  organization_id?: string | undefined | undefined;
62217
62628
  }[];
62218
62629
  outputFormat: "json";
@@ -62280,11 +62691,11 @@ export declare function init(config: AuthHeroConfig): {
62280
62691
  };
62281
62692
  };
62282
62693
  output: {
62283
- name: string;
62284
62694
  id: string;
62285
- description?: string | undefined | undefined;
62695
+ name: string;
62286
62696
  created_at?: string | undefined | undefined;
62287
62697
  updated_at?: string | undefined | undefined;
62698
+ description?: string | undefined | undefined;
62288
62699
  is_system?: boolean | undefined | undefined;
62289
62700
  metadata?: {
62290
62701
  [x: string]: any;
@@ -62359,10 +62770,10 @@ export declare function init(config: AuthHeroConfig): {
62359
62770
  };
62360
62771
  };
62361
62772
  output: {
62362
- name: string;
62363
- id: string;
62364
62773
  created_at: string;
62365
62774
  updated_at: string;
62775
+ id: string;
62776
+ name: string;
62366
62777
  token_quota?: {
62367
62778
  client_credentials?: {
62368
62779
  enforce: boolean;
@@ -62392,10 +62803,10 @@ export declare function init(config: AuthHeroConfig): {
62392
62803
  start: number;
62393
62804
  limit: number;
62394
62805
  organizations: {
62395
- name: string;
62396
- id: string;
62397
62806
  created_at: string;
62398
62807
  updated_at: string;
62808
+ id: string;
62809
+ name: string;
62399
62810
  token_quota?: {
62400
62811
  client_credentials?: {
62401
62812
  enforce: boolean;
@@ -62923,11 +63334,11 @@ export declare function init(config: AuthHeroConfig): {
62923
63334
  } | undefined;
62924
63335
  colors?: {
62925
63336
  header?: string | undefined;
63337
+ error?: string | undefined;
62926
63338
  base_focus_color?: string | undefined;
62927
63339
  base_hover_color?: string | undefined;
62928
63340
  body_text?: string | undefined;
62929
63341
  captcha_widget_theme?: "auto" | "dark" | "light" | undefined;
62930
- error?: string | undefined;
62931
63342
  icons?: string | undefined;
62932
63343
  input_background?: string | undefined;
62933
63344
  input_border?: string | undefined;
@@ -63217,7 +63628,474 @@ export declare function init(config: AuthHeroConfig): {
63217
63628
  status: 204;
63218
63629
  };
63219
63630
  };
63220
- }, "/branding">, "/">;
63631
+ }, "/branding"> & import("hono/types").MergeSchemaPath<{
63632
+ "/:triggerId/bindings": {
63633
+ $get: {
63634
+ input: {
63635
+ param: {
63636
+ triggerId: string;
63637
+ };
63638
+ } & {
63639
+ header: {
63640
+ "tenant-id"?: string | undefined;
63641
+ };
63642
+ };
63643
+ output: {
63644
+ bindings: {
63645
+ created_at: string;
63646
+ updated_at: string;
63647
+ id: string;
63648
+ action: {
63649
+ created_at: string;
63650
+ updated_at: string;
63651
+ code: string;
63652
+ status: "draft" | "built";
63653
+ id: string;
63654
+ name: string;
63655
+ tenant_id: string;
63656
+ supported_triggers?: {
63657
+ id: string;
63658
+ version?: string | undefined | undefined;
63659
+ }[] | undefined;
63660
+ runtime?: string | undefined | undefined;
63661
+ dependencies?: {
63662
+ version: string;
63663
+ name: string;
63664
+ }[] | undefined;
63665
+ secrets?: {
63666
+ name: string;
63667
+ value?: string | undefined | undefined;
63668
+ }[] | undefined;
63669
+ deployed_at?: string | undefined | undefined;
63670
+ };
63671
+ display_name: string;
63672
+ trigger_id: string;
63673
+ }[];
63674
+ };
63675
+ outputFormat: "json";
63676
+ status: 200;
63677
+ };
63678
+ };
63679
+ } & {
63680
+ "/:triggerId/bindings": {
63681
+ $patch: {
63682
+ input: {
63683
+ param: {
63684
+ triggerId: string;
63685
+ };
63686
+ } & {
63687
+ header: {
63688
+ "tenant-id"?: string | undefined;
63689
+ };
63690
+ } & {
63691
+ json: {
63692
+ bindings: {
63693
+ ref: {
63694
+ name?: string | undefined;
63695
+ id?: string | undefined;
63696
+ };
63697
+ display_name?: string | undefined;
63698
+ }[];
63699
+ };
63700
+ };
63701
+ output: {
63702
+ bindings: {
63703
+ created_at: string;
63704
+ updated_at: string;
63705
+ id: string;
63706
+ action: {
63707
+ created_at: string;
63708
+ updated_at: string;
63709
+ code: string;
63710
+ status: "draft" | "built";
63711
+ id: string;
63712
+ name: string;
63713
+ tenant_id: string;
63714
+ supported_triggers?: {
63715
+ id: string;
63716
+ version?: string | undefined | undefined;
63717
+ }[] | undefined;
63718
+ runtime?: string | undefined | undefined;
63719
+ dependencies?: {
63720
+ version: string;
63721
+ name: string;
63722
+ }[] | undefined;
63723
+ secrets?: {
63724
+ name: string;
63725
+ value?: string | undefined | undefined;
63726
+ }[] | undefined;
63727
+ deployed_at?: string | undefined | undefined;
63728
+ };
63729
+ display_name: string;
63730
+ trigger_id: string;
63731
+ }[];
63732
+ };
63733
+ outputFormat: "json";
63734
+ status: 200;
63735
+ };
63736
+ };
63737
+ }, "/actions/triggers"> & import("hono/types").MergeSchemaPath<{
63738
+ "/": {
63739
+ $get: {
63740
+ input: {
63741
+ query: {
63742
+ sort?: string | undefined;
63743
+ page?: string | undefined;
63744
+ per_page?: string | undefined;
63745
+ include_totals?: string | undefined;
63746
+ from?: string | undefined;
63747
+ take?: string | undefined;
63748
+ q?: string | undefined;
63749
+ };
63750
+ } & {
63751
+ header: {
63752
+ "tenant-id"?: string | undefined;
63753
+ };
63754
+ };
63755
+ output: {
63756
+ created_at: string;
63757
+ updated_at: string;
63758
+ code: string;
63759
+ status: "draft" | "built";
63760
+ id: string;
63761
+ name: string;
63762
+ tenant_id: string;
63763
+ supported_triggers?: {
63764
+ id: string;
63765
+ version?: string | undefined | undefined;
63766
+ }[] | undefined;
63767
+ runtime?: string | undefined | undefined;
63768
+ dependencies?: {
63769
+ version: string;
63770
+ name: string;
63771
+ }[] | undefined;
63772
+ secrets?: {
63773
+ name: string;
63774
+ value?: string | undefined | undefined;
63775
+ }[] | undefined;
63776
+ deployed_at?: string | undefined | undefined;
63777
+ }[] | {
63778
+ length: number;
63779
+ start: number;
63780
+ limit: number;
63781
+ actions: {
63782
+ created_at: string;
63783
+ updated_at: string;
63784
+ code: string;
63785
+ status: "draft" | "built";
63786
+ id: string;
63787
+ name: string;
63788
+ tenant_id: string;
63789
+ supported_triggers?: {
63790
+ id: string;
63791
+ version?: string | undefined | undefined;
63792
+ }[] | undefined;
63793
+ runtime?: string | undefined | undefined;
63794
+ dependencies?: {
63795
+ version: string;
63796
+ name: string;
63797
+ }[] | undefined;
63798
+ secrets?: {
63799
+ name: string;
63800
+ value?: string | undefined | undefined;
63801
+ }[] | undefined;
63802
+ deployed_at?: string | undefined | undefined;
63803
+ }[];
63804
+ total?: number | undefined;
63805
+ };
63806
+ outputFormat: "json";
63807
+ status: 200;
63808
+ };
63809
+ };
63810
+ } & {
63811
+ "/": {
63812
+ $post: {
63813
+ input: {
63814
+ header: {
63815
+ "tenant-id"?: string | undefined;
63816
+ };
63817
+ } & {
63818
+ json: {
63819
+ code: string;
63820
+ name: string;
63821
+ supported_triggers?: {
63822
+ id: string;
63823
+ version?: string | undefined;
63824
+ }[] | undefined;
63825
+ runtime?: string | undefined;
63826
+ dependencies?: {
63827
+ version: string;
63828
+ name: string;
63829
+ }[] | undefined;
63830
+ secrets?: {
63831
+ value: string;
63832
+ name: string;
63833
+ }[] | undefined;
63834
+ };
63835
+ };
63836
+ output: {
63837
+ created_at: string;
63838
+ updated_at: string;
63839
+ code: string;
63840
+ status: "draft" | "built";
63841
+ id: string;
63842
+ name: string;
63843
+ tenant_id: string;
63844
+ supported_triggers?: {
63845
+ id: string;
63846
+ version?: string | undefined | undefined;
63847
+ }[] | undefined;
63848
+ runtime?: string | undefined | undefined;
63849
+ dependencies?: {
63850
+ version: string;
63851
+ name: string;
63852
+ }[] | undefined;
63853
+ secrets?: {
63854
+ name: string;
63855
+ value?: string | undefined | undefined;
63856
+ }[] | undefined;
63857
+ deployed_at?: string | undefined | undefined;
63858
+ };
63859
+ outputFormat: "json";
63860
+ status: 201;
63861
+ };
63862
+ };
63863
+ } & {
63864
+ "/:id": {
63865
+ $get: {
63866
+ input: {
63867
+ param: {
63868
+ id: string;
63869
+ };
63870
+ } & {
63871
+ header: {
63872
+ "tenant-id"?: string | undefined;
63873
+ };
63874
+ };
63875
+ output: {};
63876
+ outputFormat: string;
63877
+ status: 404;
63878
+ } | {
63879
+ input: {
63880
+ param: {
63881
+ id: string;
63882
+ };
63883
+ } & {
63884
+ header: {
63885
+ "tenant-id"?: string | undefined;
63886
+ };
63887
+ };
63888
+ output: {
63889
+ created_at: string;
63890
+ updated_at: string;
63891
+ code: string;
63892
+ status: "draft" | "built";
63893
+ id: string;
63894
+ name: string;
63895
+ tenant_id: string;
63896
+ supported_triggers?: {
63897
+ id: string;
63898
+ version?: string | undefined | undefined;
63899
+ }[] | undefined;
63900
+ runtime?: string | undefined | undefined;
63901
+ dependencies?: {
63902
+ version: string;
63903
+ name: string;
63904
+ }[] | undefined;
63905
+ secrets?: {
63906
+ name: string;
63907
+ value?: string | undefined | undefined;
63908
+ }[] | undefined;
63909
+ deployed_at?: string | undefined | undefined;
63910
+ };
63911
+ outputFormat: "json";
63912
+ status: 200;
63913
+ };
63914
+ };
63915
+ } & {
63916
+ "/:id": {
63917
+ $patch: {
63918
+ input: {
63919
+ param: {
63920
+ id: string;
63921
+ };
63922
+ } & {
63923
+ header: {
63924
+ "tenant-id"?: string | undefined;
63925
+ };
63926
+ } & {
63927
+ json: {
63928
+ name?: string | undefined;
63929
+ code?: string | undefined;
63930
+ supported_triggers?: {
63931
+ id: string;
63932
+ version?: string | undefined;
63933
+ }[] | undefined;
63934
+ runtime?: string | undefined;
63935
+ dependencies?: {
63936
+ version: string;
63937
+ name: string;
63938
+ }[] | undefined;
63939
+ secrets?: {
63940
+ value: string;
63941
+ name: string;
63942
+ }[] | undefined;
63943
+ };
63944
+ };
63945
+ output: {};
63946
+ outputFormat: string;
63947
+ status: 404;
63948
+ } | {
63949
+ input: {
63950
+ param: {
63951
+ id: string;
63952
+ };
63953
+ } & {
63954
+ header: {
63955
+ "tenant-id"?: string | undefined;
63956
+ };
63957
+ } & {
63958
+ json: {
63959
+ name?: string | undefined;
63960
+ code?: string | undefined;
63961
+ supported_triggers?: {
63962
+ id: string;
63963
+ version?: string | undefined;
63964
+ }[] | undefined;
63965
+ runtime?: string | undefined;
63966
+ dependencies?: {
63967
+ version: string;
63968
+ name: string;
63969
+ }[] | undefined;
63970
+ secrets?: {
63971
+ value: string;
63972
+ name: string;
63973
+ }[] | undefined;
63974
+ };
63975
+ };
63976
+ output: {
63977
+ created_at: string;
63978
+ updated_at: string;
63979
+ code: string;
63980
+ status: "draft" | "built";
63981
+ id: string;
63982
+ name: string;
63983
+ tenant_id: string;
63984
+ supported_triggers?: {
63985
+ id: string;
63986
+ version?: string | undefined | undefined;
63987
+ }[] | undefined;
63988
+ runtime?: string | undefined | undefined;
63989
+ dependencies?: {
63990
+ version: string;
63991
+ name: string;
63992
+ }[] | undefined;
63993
+ secrets?: {
63994
+ name: string;
63995
+ value?: string | undefined | undefined;
63996
+ }[] | undefined;
63997
+ deployed_at?: string | undefined | undefined;
63998
+ };
63999
+ outputFormat: "json";
64000
+ status: 200;
64001
+ };
64002
+ };
64003
+ } & {
64004
+ "/:id": {
64005
+ $delete: {
64006
+ input: {
64007
+ param: {
64008
+ id: string;
64009
+ };
64010
+ } & {
64011
+ header: {
64012
+ "tenant-id"?: string | undefined;
64013
+ };
64014
+ };
64015
+ output: {};
64016
+ outputFormat: string;
64017
+ status: 200;
64018
+ } | {
64019
+ input: {
64020
+ param: {
64021
+ id: string;
64022
+ };
64023
+ } & {
64024
+ header: {
64025
+ "tenant-id"?: string | undefined;
64026
+ };
64027
+ };
64028
+ output: {};
64029
+ outputFormat: string;
64030
+ status: 404;
64031
+ } | {
64032
+ input: {
64033
+ param: {
64034
+ id: string;
64035
+ };
64036
+ } & {
64037
+ header: {
64038
+ "tenant-id"?: string | undefined;
64039
+ };
64040
+ };
64041
+ output: {};
64042
+ outputFormat: string;
64043
+ status: 409;
64044
+ };
64045
+ };
64046
+ } & {
64047
+ "/:id/deploy": {
64048
+ $post: {
64049
+ input: {
64050
+ param: {
64051
+ id: string;
64052
+ };
64053
+ } & {
64054
+ header: {
64055
+ "tenant-id"?: string | undefined;
64056
+ };
64057
+ };
64058
+ output: {};
64059
+ outputFormat: string;
64060
+ status: 404;
64061
+ } | {
64062
+ input: {
64063
+ param: {
64064
+ id: string;
64065
+ };
64066
+ } & {
64067
+ header: {
64068
+ "tenant-id"?: string | undefined;
64069
+ };
64070
+ };
64071
+ output: {
64072
+ created_at: string;
64073
+ updated_at: string;
64074
+ code: string;
64075
+ status: "draft" | "built";
64076
+ id: string;
64077
+ name: string;
64078
+ tenant_id: string;
64079
+ supported_triggers?: {
64080
+ id: string;
64081
+ version?: string | undefined | undefined;
64082
+ }[] | undefined;
64083
+ runtime?: string | undefined | undefined;
64084
+ dependencies?: {
64085
+ version: string;
64086
+ name: string;
64087
+ }[] | undefined;
64088
+ secrets?: {
64089
+ name: string;
64090
+ value?: string | undefined | undefined;
64091
+ }[] | undefined;
64092
+ deployed_at?: string | undefined | undefined;
64093
+ };
64094
+ outputFormat: "json";
64095
+ status: 200;
64096
+ };
64097
+ };
64098
+ }, "/actions/actions">, "/">;
63221
64099
  oauthApp: OpenAPIHono<{
63222
64100
  Bindings: Bindings;
63223
64101
  Variables: Variables;
@@ -65294,7 +66172,7 @@ export declare function init(config: AuthHeroConfig): {
65294
66172
  };
65295
66173
 
65296
66174
  declare namespace preDefinedHooks {
65297
- export { EnsureUsernameOptions, ensureUsername, setPreferredUsername };
66175
+ export { AccountLinkingOptions, EnsureUsernameOptions, accountLinking, ensureUsername, setPreferredUsername };
65298
66176
  }
65299
66177
 
65300
66178
  export {