@authhero/kysely-adapter 10.136.0 → 11.1.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.
@@ -37,6 +37,8 @@ declare const actionInsertSchema: z.ZodObject<{
37
37
  name: string;
38
38
  value?: string | undefined;
39
39
  }>, "many">>;
40
+ is_system: z.ZodOptional<z.ZodBoolean>;
41
+ inherit: z.ZodOptional<z.ZodBoolean>;
40
42
  }, "strip", z.ZodTypeAny, {
41
43
  code: string;
42
44
  name: string;
@@ -53,6 +55,8 @@ declare const actionInsertSchema: z.ZodObject<{
53
55
  name: string;
54
56
  value?: string | undefined;
55
57
  }[] | undefined;
58
+ is_system?: boolean | undefined;
59
+ inherit?: boolean | undefined;
56
60
  }, {
57
61
  code: string;
58
62
  name: string;
@@ -69,6 +73,8 @@ declare const actionInsertSchema: z.ZodObject<{
69
73
  name: string;
70
74
  value?: string | undefined;
71
75
  }[] | undefined;
76
+ is_system?: boolean | undefined;
77
+ inherit?: boolean | undefined;
72
78
  }>;
73
79
  export type ActionInsert = z.infer<typeof actionInsertSchema>;
74
80
  declare const actionUpdateSchema: z.ZodObject<{
@@ -105,6 +111,8 @@ declare const actionUpdateSchema: z.ZodObject<{
105
111
  name: string;
106
112
  value?: string | undefined;
107
113
  }>, "many">>>;
114
+ is_system: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
115
+ inherit: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
108
116
  } & {
109
117
  status: z.ZodOptional<z.ZodEnum<[
110
118
  "draft",
@@ -128,6 +136,8 @@ declare const actionUpdateSchema: z.ZodObject<{
128
136
  name: string;
129
137
  value?: string | undefined;
130
138
  }[] | undefined;
139
+ is_system?: boolean | undefined;
140
+ inherit?: boolean | undefined;
131
141
  deployed_at?: string | undefined;
132
142
  }, {
133
143
  code?: string | undefined;
@@ -146,6 +156,8 @@ declare const actionUpdateSchema: z.ZodObject<{
146
156
  name: string;
147
157
  value?: string | undefined;
148
158
  }[] | undefined;
159
+ is_system?: boolean | undefined;
160
+ inherit?: boolean | undefined;
149
161
  deployed_at?: string | undefined;
150
162
  }>;
151
163
  export type ActionUpdate = z.infer<typeof actionUpdateSchema>;
@@ -173,6 +185,8 @@ declare const actionSchema: z.ZodObject<{
173
185
  version: string;
174
186
  name: string;
175
187
  }>, "many">>;
188
+ is_system: z.ZodOptional<z.ZodBoolean>;
189
+ inherit: z.ZodOptional<z.ZodBoolean>;
176
190
  } & {
177
191
  created_at: z.ZodString;
178
192
  updated_at: z.ZodString;
@@ -214,6 +228,8 @@ declare const actionSchema: z.ZodObject<{
214
228
  name: string;
215
229
  value?: string | undefined;
216
230
  }[] | undefined;
231
+ is_system?: boolean | undefined;
232
+ inherit?: boolean | undefined;
217
233
  deployed_at?: string | undefined;
218
234
  }, {
219
235
  created_at: string;
@@ -236,6 +252,8 @@ declare const actionSchema: z.ZodObject<{
236
252
  name: string;
237
253
  value?: string | undefined;
238
254
  }[] | undefined;
255
+ is_system?: boolean | undefined;
256
+ inherit?: boolean | undefined;
239
257
  deployed_at?: string | undefined;
240
258
  }>;
241
259
  export type Action = z.infer<typeof actionSchema>;
@@ -2262,7 +2280,6 @@ declare const clientInsertSchema: z.ZodObject<{
2262
2280
  "private_key_jwt"
2263
2281
  ]>>>;
2264
2282
  client_metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>>;
2265
- disable_sign_ups: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2266
2283
  hide_sign_up_disabled_error: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2267
2284
  mobile: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2268
2285
  initiate_login_uri: z.ZodOptional<z.ZodString>;
@@ -2379,7 +2396,6 @@ declare const clientInsertSchema: z.ZodObject<{
2379
2396
  addons?: Record<string, any> | undefined;
2380
2397
  token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
2381
2398
  client_metadata?: Record<string, string> | undefined;
2382
- disable_sign_ups?: boolean | undefined;
2383
2399
  hide_sign_up_disabled_error?: boolean | undefined;
2384
2400
  mobile?: Record<string, any> | undefined;
2385
2401
  initiate_login_uri?: string | undefined;
@@ -2440,7 +2456,6 @@ declare const clientInsertSchema: z.ZodObject<{
2440
2456
  addons?: Record<string, any> | undefined;
2441
2457
  token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
2442
2458
  client_metadata?: Record<string, string> | undefined;
2443
- disable_sign_ups?: boolean | undefined;
2444
2459
  hide_sign_up_disabled_error?: boolean | undefined;
2445
2460
  mobile?: Record<string, any> | undefined;
2446
2461
  initiate_login_uri?: string | undefined;
@@ -2528,7 +2543,6 @@ declare const clientSchema: z.ZodObject<{
2528
2543
  "private_key_jwt"
2529
2544
  ]>>>;
2530
2545
  client_metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>>;
2531
- disable_sign_ups: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2532
2546
  hide_sign_up_disabled_error: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2533
2547
  mobile: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2534
2548
  initiate_login_uri: z.ZodOptional<z.ZodString>;
@@ -2649,7 +2663,6 @@ declare const clientSchema: z.ZodObject<{
2649
2663
  addons?: Record<string, any> | undefined;
2650
2664
  token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
2651
2665
  client_metadata?: Record<string, string> | undefined;
2652
- disable_sign_ups?: boolean | undefined;
2653
2666
  hide_sign_up_disabled_error?: boolean | undefined;
2654
2667
  mobile?: Record<string, any> | undefined;
2655
2668
  initiate_login_uri?: string | undefined;
@@ -2712,7 +2725,6 @@ declare const clientSchema: z.ZodObject<{
2712
2725
  addons?: Record<string, any> | undefined;
2713
2726
  token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
2714
2727
  client_metadata?: Record<string, string> | undefined;
2715
- disable_sign_ups?: boolean | undefined;
2716
2728
  hide_sign_up_disabled_error?: boolean | undefined;
2717
2729
  mobile?: Record<string, any> | undefined;
2718
2730
  initiate_login_uri?: string | undefined;
@@ -2752,19 +2764,19 @@ declare const clientGrantInsertSchema: z.ZodObject<{
2752
2764
  }, "strip", z.ZodTypeAny, {
2753
2765
  client_id: string;
2754
2766
  audience: string;
2767
+ is_system?: boolean | undefined;
2755
2768
  scope?: string[] | undefined;
2756
2769
  organization_usage?: "deny" | "allow" | "require" | undefined;
2757
2770
  allow_any_organization?: boolean | undefined;
2758
- is_system?: boolean | undefined;
2759
2771
  subject_type?: "user" | "client" | undefined;
2760
2772
  authorization_details_types?: string[] | undefined;
2761
2773
  }, {
2762
2774
  client_id: string;
2763
2775
  audience: string;
2776
+ is_system?: boolean | undefined;
2764
2777
  scope?: string[] | undefined;
2765
2778
  organization_usage?: "deny" | "allow" | "require" | undefined;
2766
2779
  allow_any_organization?: boolean | undefined;
2767
- is_system?: boolean | undefined;
2768
2780
  subject_type?: "user" | "client" | undefined;
2769
2781
  authorization_details_types?: string[] | undefined;
2770
2782
  }>;
@@ -2794,10 +2806,10 @@ declare const clientGrantSchema: z.ZodObject<{
2794
2806
  audience: string;
2795
2807
  created_at?: string | undefined;
2796
2808
  updated_at?: string | undefined;
2809
+ is_system?: boolean | undefined;
2797
2810
  scope?: string[] | undefined;
2798
2811
  organization_usage?: "deny" | "allow" | "require" | undefined;
2799
2812
  allow_any_organization?: boolean | undefined;
2800
- is_system?: boolean | undefined;
2801
2813
  subject_type?: "user" | "client" | undefined;
2802
2814
  authorization_details_types?: string[] | undefined;
2803
2815
  }, {
@@ -2806,10 +2818,10 @@ declare const clientGrantSchema: z.ZodObject<{
2806
2818
  audience: string;
2807
2819
  created_at?: string | undefined;
2808
2820
  updated_at?: string | undefined;
2821
+ is_system?: boolean | undefined;
2809
2822
  scope?: string[] | undefined;
2810
2823
  organization_usage?: "deny" | "allow" | "require" | undefined;
2811
2824
  allow_any_organization?: boolean | undefined;
2812
- is_system?: boolean | undefined;
2813
2825
  subject_type?: "user" | "client" | undefined;
2814
2826
  authorization_details_types?: string[] | undefined;
2815
2827
  }>;
@@ -3201,6 +3213,22 @@ declare const connectionInsertSchema: z.ZodObject<{
3201
3213
  disable_signup: z.ZodOptional<z.ZodBoolean>;
3202
3214
  brute_force_protection: z.ZodOptional<z.ZodBoolean>;
3203
3215
  import_mode: z.ZodOptional<z.ZodBoolean>;
3216
+ configuration: z.ZodOptional<z.ZodObject<{
3217
+ token_endpoint: z.ZodOptional<z.ZodString>;
3218
+ userinfo_endpoint: z.ZodOptional<z.ZodString>;
3219
+ client_id: z.ZodOptional<z.ZodString>;
3220
+ client_secret: z.ZodOptional<z.ZodString>;
3221
+ }, "strip", z.ZodTypeAny, {
3222
+ client_id?: string | undefined;
3223
+ client_secret?: string | undefined;
3224
+ token_endpoint?: string | undefined;
3225
+ userinfo_endpoint?: string | undefined;
3226
+ }, {
3227
+ client_id?: string | undefined;
3228
+ client_secret?: string | undefined;
3229
+ token_endpoint?: string | undefined;
3230
+ userinfo_endpoint?: string | undefined;
3231
+ }>>;
3204
3232
  attributes: z.ZodOptional<z.ZodObject<{
3205
3233
  email: z.ZodOptional<z.ZodObject<{
3206
3234
  identifier: z.ZodOptional<z.ZodObject<{
@@ -3604,6 +3632,12 @@ declare const connectionInsertSchema: z.ZodObject<{
3604
3632
  disable_signup?: boolean | undefined;
3605
3633
  brute_force_protection?: boolean | undefined;
3606
3634
  import_mode?: boolean | undefined;
3635
+ configuration?: {
3636
+ client_id?: string | undefined;
3637
+ client_secret?: string | undefined;
3638
+ token_endpoint?: string | undefined;
3639
+ userinfo_endpoint?: string | undefined;
3640
+ } | undefined;
3607
3641
  attributes?: {
3608
3642
  email?: {
3609
3643
  validation?: {
@@ -3710,6 +3744,12 @@ declare const connectionInsertSchema: z.ZodObject<{
3710
3744
  disable_signup?: boolean | undefined;
3711
3745
  brute_force_protection?: boolean | undefined;
3712
3746
  import_mode?: boolean | undefined;
3747
+ configuration?: {
3748
+ client_id?: string | undefined;
3749
+ client_secret?: string | undefined;
3750
+ token_endpoint?: string | undefined;
3751
+ userinfo_endpoint?: string | undefined;
3752
+ } | undefined;
3713
3753
  attributes?: {
3714
3754
  email?: {
3715
3755
  validation?: {
@@ -3816,6 +3856,12 @@ declare const connectionInsertSchema: z.ZodObject<{
3816
3856
  disable_signup?: boolean | undefined;
3817
3857
  brute_force_protection?: boolean | undefined;
3818
3858
  import_mode?: boolean | undefined;
3859
+ configuration?: {
3860
+ client_id?: string | undefined;
3861
+ client_secret?: string | undefined;
3862
+ token_endpoint?: string | undefined;
3863
+ userinfo_endpoint?: string | undefined;
3864
+ } | undefined;
3819
3865
  attributes?: {
3820
3866
  email?: {
3821
3867
  validation?: {
@@ -3931,6 +3977,12 @@ declare const connectionInsertSchema: z.ZodObject<{
3931
3977
  disable_signup?: boolean | undefined;
3932
3978
  brute_force_protection?: boolean | undefined;
3933
3979
  import_mode?: boolean | undefined;
3980
+ configuration?: {
3981
+ client_id?: string | undefined;
3982
+ client_secret?: string | undefined;
3983
+ token_endpoint?: string | undefined;
3984
+ userinfo_endpoint?: string | undefined;
3985
+ } | undefined;
3934
3986
  attributes?: {
3935
3987
  email?: {
3936
3988
  validation?: {
@@ -4095,6 +4147,22 @@ declare const connectionSchema: z.ZodObject<{
4095
4147
  disable_signup: z.ZodOptional<z.ZodBoolean>;
4096
4148
  brute_force_protection: z.ZodOptional<z.ZodBoolean>;
4097
4149
  import_mode: z.ZodOptional<z.ZodBoolean>;
4150
+ configuration: z.ZodOptional<z.ZodObject<{
4151
+ token_endpoint: z.ZodOptional<z.ZodString>;
4152
+ userinfo_endpoint: z.ZodOptional<z.ZodString>;
4153
+ client_id: z.ZodOptional<z.ZodString>;
4154
+ client_secret: z.ZodOptional<z.ZodString>;
4155
+ }, "strip", z.ZodTypeAny, {
4156
+ client_id?: string | undefined;
4157
+ client_secret?: string | undefined;
4158
+ token_endpoint?: string | undefined;
4159
+ userinfo_endpoint?: string | undefined;
4160
+ }, {
4161
+ client_id?: string | undefined;
4162
+ client_secret?: string | undefined;
4163
+ token_endpoint?: string | undefined;
4164
+ userinfo_endpoint?: string | undefined;
4165
+ }>>;
4098
4166
  attributes: z.ZodOptional<z.ZodObject<{
4099
4167
  email: z.ZodOptional<z.ZodObject<{
4100
4168
  identifier: z.ZodOptional<z.ZodObject<{
@@ -4498,6 +4566,12 @@ declare const connectionSchema: z.ZodObject<{
4498
4566
  disable_signup?: boolean | undefined;
4499
4567
  brute_force_protection?: boolean | undefined;
4500
4568
  import_mode?: boolean | undefined;
4569
+ configuration?: {
4570
+ client_id?: string | undefined;
4571
+ client_secret?: string | undefined;
4572
+ token_endpoint?: string | undefined;
4573
+ userinfo_endpoint?: string | undefined;
4574
+ } | undefined;
4501
4575
  attributes?: {
4502
4576
  email?: {
4503
4577
  validation?: {
@@ -4604,6 +4678,12 @@ declare const connectionSchema: z.ZodObject<{
4604
4678
  disable_signup?: boolean | undefined;
4605
4679
  brute_force_protection?: boolean | undefined;
4606
4680
  import_mode?: boolean | undefined;
4681
+ configuration?: {
4682
+ client_id?: string | undefined;
4683
+ client_secret?: string | undefined;
4684
+ token_endpoint?: string | undefined;
4685
+ userinfo_endpoint?: string | undefined;
4686
+ } | undefined;
4607
4687
  attributes?: {
4608
4688
  email?: {
4609
4689
  validation?: {
@@ -4710,6 +4790,12 @@ declare const connectionSchema: z.ZodObject<{
4710
4790
  disable_signup?: boolean | undefined;
4711
4791
  brute_force_protection?: boolean | undefined;
4712
4792
  import_mode?: boolean | undefined;
4793
+ configuration?: {
4794
+ client_id?: string | undefined;
4795
+ client_secret?: string | undefined;
4796
+ token_endpoint?: string | undefined;
4797
+ userinfo_endpoint?: string | undefined;
4798
+ } | undefined;
4713
4799
  attributes?: {
4714
4800
  email?: {
4715
4801
  validation?: {
@@ -4827,6 +4913,12 @@ declare const connectionSchema: z.ZodObject<{
4827
4913
  disable_signup?: boolean | undefined;
4828
4914
  brute_force_protection?: boolean | undefined;
4829
4915
  import_mode?: boolean | undefined;
4916
+ configuration?: {
4917
+ client_id?: string | undefined;
4918
+ client_secret?: string | undefined;
4919
+ token_endpoint?: string | undefined;
4920
+ userinfo_endpoint?: string | undefined;
4921
+ } | undefined;
4830
4922
  attributes?: {
4831
4923
  email?: {
4832
4924
  validation?: {
@@ -17416,6 +17508,129 @@ declare const logStreamSchema: z.ZodObject<{
17416
17508
  isPriority?: boolean | undefined;
17417
17509
  }>;
17418
17510
  export type LogStream = z.infer<typeof logStreamSchema>;
17511
+ declare const migrationSourceInsertSchema: z.ZodObject<{
17512
+ id: z.ZodOptional<z.ZodString>;
17513
+ name: z.ZodString;
17514
+ provider: z.ZodEnum<[
17515
+ "auth0",
17516
+ "cognito",
17517
+ "okta",
17518
+ "oidc"
17519
+ ]>;
17520
+ connection: z.ZodString;
17521
+ enabled: z.ZodDefault<z.ZodBoolean>;
17522
+ credentials: z.ZodObject<{
17523
+ domain: z.ZodString;
17524
+ client_id: z.ZodString;
17525
+ client_secret: z.ZodString;
17526
+ audience: z.ZodOptional<z.ZodString>;
17527
+ scope: z.ZodOptional<z.ZodString>;
17528
+ }, "strip", z.ZodTypeAny, {
17529
+ client_id: string;
17530
+ client_secret: string;
17531
+ domain: string;
17532
+ audience?: string | undefined;
17533
+ scope?: string | undefined;
17534
+ }, {
17535
+ client_id: string;
17536
+ client_secret: string;
17537
+ domain: string;
17538
+ audience?: string | undefined;
17539
+ scope?: string | undefined;
17540
+ }>;
17541
+ }, "strip", z.ZodTypeAny, {
17542
+ name: string;
17543
+ connection: string;
17544
+ provider: "auth0" | "cognito" | "okta" | "oidc";
17545
+ enabled: boolean;
17546
+ credentials: {
17547
+ client_id: string;
17548
+ client_secret: string;
17549
+ domain: string;
17550
+ audience?: string | undefined;
17551
+ scope?: string | undefined;
17552
+ };
17553
+ id?: string | undefined;
17554
+ }, {
17555
+ name: string;
17556
+ connection: string;
17557
+ provider: "auth0" | "cognito" | "okta" | "oidc";
17558
+ credentials: {
17559
+ client_id: string;
17560
+ client_secret: string;
17561
+ domain: string;
17562
+ audience?: string | undefined;
17563
+ scope?: string | undefined;
17564
+ };
17565
+ id?: string | undefined;
17566
+ enabled?: boolean | undefined;
17567
+ }>;
17568
+ export type MigrationSourceInsert = z.infer<typeof migrationSourceInsertSchema>;
17569
+ declare const migrationSourceSchema: z.ZodObject<{
17570
+ created_at: z.ZodString;
17571
+ updated_at: z.ZodString;
17572
+ } & {
17573
+ id: z.ZodOptional<z.ZodString>;
17574
+ name: z.ZodString;
17575
+ provider: z.ZodEnum<[
17576
+ "auth0",
17577
+ "cognito",
17578
+ "okta",
17579
+ "oidc"
17580
+ ]>;
17581
+ connection: z.ZodString;
17582
+ enabled: z.ZodDefault<z.ZodBoolean>;
17583
+ credentials: z.ZodObject<{
17584
+ domain: z.ZodString;
17585
+ client_id: z.ZodString;
17586
+ client_secret: z.ZodString;
17587
+ audience: z.ZodOptional<z.ZodString>;
17588
+ scope: z.ZodOptional<z.ZodString>;
17589
+ }, "strip", z.ZodTypeAny, {
17590
+ client_id: string;
17591
+ client_secret: string;
17592
+ domain: string;
17593
+ audience?: string | undefined;
17594
+ scope?: string | undefined;
17595
+ }, {
17596
+ client_id: string;
17597
+ client_secret: string;
17598
+ domain: string;
17599
+ audience?: string | undefined;
17600
+ scope?: string | undefined;
17601
+ }>;
17602
+ }, "strip", z.ZodTypeAny, {
17603
+ created_at: string;
17604
+ updated_at: string;
17605
+ name: string;
17606
+ connection: string;
17607
+ provider: "auth0" | "cognito" | "okta" | "oidc";
17608
+ enabled: boolean;
17609
+ credentials: {
17610
+ client_id: string;
17611
+ client_secret: string;
17612
+ domain: string;
17613
+ audience?: string | undefined;
17614
+ scope?: string | undefined;
17615
+ };
17616
+ id?: string | undefined;
17617
+ }, {
17618
+ created_at: string;
17619
+ updated_at: string;
17620
+ name: string;
17621
+ connection: string;
17622
+ provider: "auth0" | "cognito" | "okta" | "oidc";
17623
+ credentials: {
17624
+ client_id: string;
17625
+ client_secret: string;
17626
+ domain: string;
17627
+ audience?: string | undefined;
17628
+ scope?: string | undefined;
17629
+ };
17630
+ id?: string | undefined;
17631
+ enabled?: boolean | undefined;
17632
+ }>;
17633
+ export type MigrationSource = z.infer<typeof migrationSourceSchema>;
17419
17634
  declare const passwordInsertSchema: z.ZodObject<{
17420
17635
  id: z.ZodOptional<z.ZodString>;
17421
17636
  user_id: z.ZodString;
@@ -19884,11 +20099,11 @@ declare const resourceServerInsertSchema: z.ZodObject<{
19884
20099
  enable_introspection_endpoint?: boolean | undefined;
19885
20100
  } | undefined;
19886
20101
  id?: string | undefined;
20102
+ is_system?: boolean | undefined;
19887
20103
  scopes?: {
19888
20104
  value: string;
19889
20105
  description?: string | undefined;
19890
20106
  }[] | undefined;
19891
- is_system?: boolean | undefined;
19892
20107
  metadata?: Record<string, any> | undefined;
19893
20108
  signing_alg?: string | undefined;
19894
20109
  signing_secret?: string | undefined;
@@ -19910,12 +20125,12 @@ declare const resourceServerInsertSchema: z.ZodObject<{
19910
20125
  enable_introspection_endpoint?: boolean | undefined;
19911
20126
  } | undefined;
19912
20127
  id?: string | undefined;
20128
+ is_system?: boolean | undefined;
19913
20129
  scopes?: {
19914
20130
  value: string;
19915
20131
  description?: string | undefined;
19916
20132
  }[] | undefined;
19917
20133
  token_lifetime?: number | undefined;
19918
- is_system?: boolean | undefined;
19919
20134
  metadata?: Record<string, any> | undefined;
19920
20135
  signing_alg?: string | undefined;
19921
20136
  signing_secret?: string | undefined;
@@ -20007,11 +20222,11 @@ declare const resourceServerSchema: z.ZodObject<{
20007
20222
  enable_introspection_endpoint?: boolean | undefined;
20008
20223
  } | undefined;
20009
20224
  id?: string | undefined;
20225
+ is_system?: boolean | undefined;
20010
20226
  scopes?: {
20011
20227
  value: string;
20012
20228
  description?: string | undefined;
20013
20229
  }[] | undefined;
20014
- is_system?: boolean | undefined;
20015
20230
  metadata?: Record<string, any> | undefined;
20016
20231
  signing_alg?: string | undefined;
20017
20232
  signing_secret?: string | undefined;
@@ -20035,12 +20250,12 @@ declare const resourceServerSchema: z.ZodObject<{
20035
20250
  enable_introspection_endpoint?: boolean | undefined;
20036
20251
  } | undefined;
20037
20252
  id?: string | undefined;
20253
+ is_system?: boolean | undefined;
20038
20254
  scopes?: {
20039
20255
  value: string;
20040
20256
  description?: string | undefined;
20041
20257
  }[] | undefined;
20042
20258
  token_lifetime?: number | undefined;
20043
- is_system?: boolean | undefined;
20044
20259
  metadata?: Record<string, any> | undefined;
20045
20260
  signing_alg?: string | undefined;
20046
20261
  signing_secret?: string | undefined;
@@ -20539,6 +20754,73 @@ declare const dailyStatsSchema: z.ZodObject<{
20539
20754
  leaked_passwords: number;
20540
20755
  }>;
20541
20756
  export type DailyStats = z.infer<typeof dailyStatsSchema>;
20757
+ declare const analyticsResourceSchema: z.ZodEnum<[
20758
+ "active-users",
20759
+ "logins",
20760
+ "signups",
20761
+ "refresh-tokens",
20762
+ "sessions"
20763
+ ]>;
20764
+ export type AnalyticsResource = z.infer<typeof analyticsResourceSchema>;
20765
+ declare const analyticsIntervalSchema: z.ZodEnum<[
20766
+ "hour",
20767
+ "day",
20768
+ "week",
20769
+ "month"
20770
+ ]>;
20771
+ export type AnalyticsInterval = z.infer<typeof analyticsIntervalSchema>;
20772
+ declare const analyticsGroupBySchema: z.ZodEnum<[
20773
+ "time",
20774
+ "connection",
20775
+ "client_id",
20776
+ "user_type",
20777
+ "event"
20778
+ ]>;
20779
+ export type AnalyticsGroupBy = z.infer<typeof analyticsGroupBySchema>;
20780
+ declare const analyticsUserTypeSchema: z.ZodEnum<[
20781
+ "password",
20782
+ "social",
20783
+ "passwordless",
20784
+ "enterprise"
20785
+ ]>;
20786
+ export type AnalyticsUserType = z.infer<typeof analyticsUserTypeSchema>;
20787
+ export interface AnalyticsFilters {
20788
+ connection?: string[];
20789
+ client_id?: string[];
20790
+ user_type?: AnalyticsUserType[];
20791
+ user_id?: string[];
20792
+ }
20793
+ export interface AnalyticsQueryParams {
20794
+ /** Inclusive lower bound, ISO 8601 datetime in UTC */
20795
+ from: string;
20796
+ /** Exclusive upper bound, ISO 8601 datetime in UTC */
20797
+ to: string;
20798
+ interval: AnalyticsInterval;
20799
+ /** IANA timezone for bucket boundaries */
20800
+ tz: string;
20801
+ filters: AnalyticsFilters;
20802
+ group_by: AnalyticsGroupBy[];
20803
+ limit: number;
20804
+ offset: number;
20805
+ /** Column name, prefix with `-` for descending */
20806
+ order_by?: string;
20807
+ }
20808
+ export interface AnalyticsColumnMeta {
20809
+ name: string;
20810
+ /** ClickHouse-style type label (e.g. "Date", "String", "UInt64", "DateTime") */
20811
+ type: string;
20812
+ }
20813
+ export interface AnalyticsQueryResponse {
20814
+ meta: AnalyticsColumnMeta[];
20815
+ data: Array<Record<string, unknown>>;
20816
+ rows: number;
20817
+ rows_before_limit_at_least?: number;
20818
+ statistics?: {
20819
+ elapsed: number;
20820
+ rows_read?: number;
20821
+ bytes_read?: number;
20822
+ };
20823
+ }
20542
20824
  declare const promptScreenSchema: z.ZodEnum<[
20543
20825
  "login",
20544
20826
  "login-id",
@@ -20952,6 +21234,13 @@ export interface LogStreamsAdapter {
20952
21234
  update(tenant_id: string, id: string, params: Partial<LogStream>): Promise<boolean>;
20953
21235
  remove(tenant_id: string, id: string): Promise<boolean>;
20954
21236
  }
21237
+ export interface MigrationSourcesAdapter {
21238
+ create: (tenant_id: string, migration_source: MigrationSourceInsert) => Promise<MigrationSource>;
21239
+ get: (tenant_id: string, id: string) => Promise<MigrationSource | null>;
21240
+ list: (tenant_id: string) => Promise<MigrationSource[]>;
21241
+ remove: (tenant_id: string, id: string) => Promise<boolean>;
21242
+ update: (tenant_id: string, id: string, migration_source: Partial<MigrationSourceInsert>) => Promise<boolean>;
21243
+ }
20955
21244
  export interface ListConnectionsResponse extends Totals {
20956
21245
  connections: Connection[];
20957
21246
  }
@@ -21195,6 +21484,14 @@ export interface StatsAdapter {
21195
21484
  */
21196
21485
  getActiveUsers(tenantId: string): Promise<number>;
21197
21486
  }
21487
+ export interface AnalyticsAdapter {
21488
+ /**
21489
+ * Run an analytics query for a tenant. The adapter is responsible for
21490
+ * injecting the tenant_id predicate; the route handler never trusts a
21491
+ * tenant value from a client-controlled source.
21492
+ */
21493
+ query(tenantId: string, resource: AnalyticsResource, params: AnalyticsQueryParams): Promise<AnalyticsQueryResponse>;
21494
+ }
21198
21495
  export interface UniversalLoginTemplate {
21199
21496
  body: string;
21200
21497
  }
@@ -21366,6 +21663,12 @@ export interface DataAdapters {
21366
21663
  loginSessions: LoginSessionsAdapter;
21367
21664
  logs: LogsDataAdapter;
21368
21665
  logStreams?: LogStreamsAdapter;
21666
+ /**
21667
+ * Optional tenant-level migration sources for lazy refresh-token re-mint
21668
+ * against upstream IdPs (Auth0, Cognito, Okta, generic OIDC). When unset,
21669
+ * unrecognized refresh tokens fail with `invalid_grant` as usual.
21670
+ */
21671
+ migrationSources?: MigrationSourcesAdapter;
21369
21672
  passwords: PasswordsAdapter;
21370
21673
  promptSettings: PromptSettingsAdapter;
21371
21674
  refreshTokens: RefreshTokensAdapter;
@@ -21375,6 +21678,12 @@ export interface DataAdapters {
21375
21678
  roles: RolesAdapter;
21376
21679
  sessions: SessionsAdapter;
21377
21680
  stats?: StatsAdapter;
21681
+ /**
21682
+ * Optional richer analytics surface, exposed via `/api/v2/analytics/*`.
21683
+ * Returns ClickHouse-style `{ meta, data }` responses with filtering and
21684
+ * grouping. Unlike `stats`, this is not Auth0 wire-compatible.
21685
+ */
21686
+ analytics?: AnalyticsAdapter;
21378
21687
  tenants: TenantsDataAdapter;
21379
21688
  themes: ThemesAdapter;
21380
21689
  universalLoginTemplates: UniversalLoginTemplatesAdapter;
@@ -21896,6 +22205,8 @@ declare const sqlActionSchema: z.ZodObject<{
21896
22205
  dependencies: z.ZodNullable<z.ZodOptional<z.ZodString>>;
21897
22206
  supported_triggers: z.ZodNullable<z.ZodOptional<z.ZodString>>;
21898
22207
  deployed_at_ts: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
22208
+ is_system: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
22209
+ inherit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
21899
22210
  created_at_ts: z.ZodNumber;
21900
22211
  updated_at_ts: z.ZodNumber;
21901
22212
  }, "strip", z.ZodTypeAny, {
@@ -21906,11 +22217,13 @@ declare const sqlActionSchema: z.ZodObject<{
21906
22217
  id: string;
21907
22218
  name: string;
21908
22219
  status?: string | null | undefined;
22220
+ is_system?: number | null | undefined;
21909
22221
  runtime?: string | null | undefined;
21910
22222
  secrets?: string | null | undefined;
21911
22223
  dependencies?: string | null | undefined;
21912
22224
  supported_triggers?: string | null | undefined;
21913
22225
  deployed_at_ts?: number | null | undefined;
22226
+ inherit?: number | null | undefined;
21914
22227
  }, {
21915
22228
  code: string;
21916
22229
  tenant_id: string;
@@ -21919,11 +22232,13 @@ declare const sqlActionSchema: z.ZodObject<{
21919
22232
  id: string;
21920
22233
  name: string;
21921
22234
  status?: string | null | undefined;
22235
+ is_system?: number | null | undefined;
21922
22236
  runtime?: string | null | undefined;
21923
22237
  secrets?: string | null | undefined;
21924
22238
  dependencies?: string | null | undefined;
21925
22239
  supported_triggers?: string | null | undefined;
21926
22240
  deployed_at_ts?: number | null | undefined;
22241
+ inherit?: number | null | undefined;
21927
22242
  }>;
21928
22243
  declare const sqlActionExecutionSchema: z.ZodObject<{
21929
22244
  id: z.ZodString;
@@ -23877,7 +24192,6 @@ declare const sqlClientSchema: z.ZodObject<{
23877
24192
  custom_login_page_on: z.ZodNumber;
23878
24193
  require_pushed_authorization_requests: z.ZodNumber;
23879
24194
  require_proof_of_possession: z.ZodNumber;
23880
- disable_sign_ups: z.ZodNumber;
23881
24195
  hide_sign_up_disabled_error: z.ZodNumber;
23882
24196
  callbacks: z.ZodString;
23883
24197
  allowed_origins: z.ZodString;
@@ -23991,7 +24305,6 @@ declare const sqlClientSchema: z.ZodObject<{
23991
24305
  custom_login_page_on: number;
23992
24306
  require_pushed_authorization_requests: number;
23993
24307
  require_proof_of_possession: number;
23994
- disable_sign_ups: number;
23995
24308
  hide_sign_up_disabled_error: number;
23996
24309
  callbacks: string;
23997
24310
  allowed_origins: string;
@@ -24049,7 +24362,6 @@ declare const sqlClientSchema: z.ZodObject<{
24049
24362
  custom_login_page_on: number;
24050
24363
  require_pushed_authorization_requests: number;
24051
24364
  require_proof_of_possession: number;
24052
- disable_sign_ups: number;
24053
24365
  hide_sign_up_disabled_error: number;
24054
24366
  callbacks: string;
24055
24367
  allowed_origins: string;
@@ -24241,6 +24553,17 @@ export interface Database {
24241
24553
  created_at: string;
24242
24554
  updated_at: string;
24243
24555
  };
24556
+ migration_sources: {
24557
+ id: string;
24558
+ tenant_id: string;
24559
+ name: string;
24560
+ provider: string;
24561
+ connection: string;
24562
+ enabled: number;
24563
+ credentials: string;
24564
+ created_at: string;
24565
+ updated_at: string;
24566
+ };
24244
24567
  outbox_events: {
24245
24568
  id: string;
24246
24569
  tenant_id: string;