@authhero/adapter-interfaces 1.10.3 → 1.12.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.
@@ -24,13 +24,13 @@ export declare const actionDependencySchema: z.ZodObject<{
24
24
  }>;
25
25
  export declare const actionSecretSchema: z.ZodObject<{
26
26
  name: z.ZodString;
27
- value: z.ZodString;
27
+ value: z.ZodOptional<z.ZodString>;
28
28
  }, "strip", z.ZodTypeAny, {
29
- value: string;
30
29
  name: string;
30
+ value?: string | undefined;
31
31
  }, {
32
- value: string;
33
32
  name: string;
33
+ value?: string | undefined;
34
34
  }>;
35
35
  export declare const actionInsertSchema: z.ZodObject<{
36
36
  name: z.ZodString;
@@ -58,13 +58,13 @@ export declare const actionInsertSchema: z.ZodObject<{
58
58
  }>, "many">>;
59
59
  secrets: z.ZodOptional<z.ZodArray<z.ZodObject<{
60
60
  name: z.ZodString;
61
- value: z.ZodString;
61
+ value: z.ZodOptional<z.ZodString>;
62
62
  }, "strip", z.ZodTypeAny, {
63
- value: string;
64
63
  name: string;
64
+ value?: string | undefined;
65
65
  }, {
66
- value: string;
67
66
  name: string;
67
+ value?: string | undefined;
68
68
  }>, "many">>;
69
69
  }, "strip", z.ZodTypeAny, {
70
70
  code: string;
@@ -79,8 +79,8 @@ export declare const actionInsertSchema: z.ZodObject<{
79
79
  name: string;
80
80
  }[] | undefined;
81
81
  secrets?: {
82
- value: string;
83
82
  name: string;
83
+ value?: string | undefined;
84
84
  }[] | undefined;
85
85
  }, {
86
86
  code: string;
@@ -95,8 +95,8 @@ export declare const actionInsertSchema: z.ZodObject<{
95
95
  name: string;
96
96
  }[] | undefined;
97
97
  secrets?: {
98
- value: string;
99
98
  name: string;
99
+ value?: string | undefined;
100
100
  }[] | undefined;
101
101
  }>;
102
102
  export type ActionInsert = z.infer<typeof actionInsertSchema>;
@@ -126,13 +126,13 @@ export declare const actionUpdateSchema: z.ZodObject<{
126
126
  }>, "many">>>;
127
127
  secrets: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
128
128
  name: z.ZodString;
129
- value: z.ZodString;
129
+ value: z.ZodOptional<z.ZodString>;
130
130
  }, "strip", z.ZodTypeAny, {
131
- value: string;
132
131
  name: string;
132
+ value?: string | undefined;
133
133
  }, {
134
- value: string;
135
134
  name: string;
135
+ value?: string | undefined;
136
136
  }>, "many">>>;
137
137
  } & {
138
138
  status: z.ZodOptional<z.ZodEnum<[
@@ -154,8 +154,8 @@ export declare const actionUpdateSchema: z.ZodObject<{
154
154
  name: string;
155
155
  }[] | undefined;
156
156
  secrets?: {
157
- value: string;
158
157
  name: string;
158
+ value?: string | undefined;
159
159
  }[] | undefined;
160
160
  deployed_at?: string | undefined;
161
161
  }, {
@@ -172,8 +172,8 @@ export declare const actionUpdateSchema: z.ZodObject<{
172
172
  name: string;
173
173
  }[] | undefined;
174
174
  secrets?: {
175
- value: string;
176
175
  name: string;
176
+ value?: string | undefined;
177
177
  }[] | undefined;
178
178
  deployed_at?: string | undefined;
179
179
  }>;
@@ -2999,7 +2999,7 @@ export declare const userResponseSchema: z.ZodObject<{
2999
2999
  }, z.ZodAny, "strip">>;
3000
3000
  export type UserResponse = z.infer<typeof userResponseSchema>;
3001
3001
  export declare const clientInsertSchema: z.ZodObject<{
3002
- client_id: z.ZodString;
3002
+ client_id: z.ZodOptional<z.ZodString>;
3003
3003
  name: z.ZodString;
3004
3004
  description: z.ZodOptional<z.ZodString>;
3005
3005
  global: z.ZodDefault<z.ZodBoolean>;
@@ -3066,7 +3066,37 @@ export declare const clientInsertSchema: z.ZodObject<{
3066
3066
  mobile: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3067
3067
  initiate_login_uri: z.ZodOptional<z.ZodString>;
3068
3068
  native_social_login: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3069
- refresh_token: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3069
+ refresh_token: z.ZodOptional<z.ZodDefault<z.ZodObject<{
3070
+ rotation_type: z.ZodOptional<z.ZodEnum<[
3071
+ "rotating",
3072
+ "non-rotating"
3073
+ ]>>;
3074
+ leeway: z.ZodOptional<z.ZodNumber>;
3075
+ expiration_type: z.ZodOptional<z.ZodEnum<[
3076
+ "expiring",
3077
+ "non-expiring"
3078
+ ]>>;
3079
+ token_lifetime: z.ZodOptional<z.ZodNumber>;
3080
+ infinite_token_lifetime: z.ZodOptional<z.ZodBoolean>;
3081
+ idle_token_lifetime: z.ZodOptional<z.ZodNumber>;
3082
+ infinite_idle_token_lifetime: z.ZodOptional<z.ZodBoolean>;
3083
+ }, "strip", z.ZodTypeAny, {
3084
+ rotation_type?: "rotating" | "non-rotating" | undefined;
3085
+ leeway?: number | undefined;
3086
+ expiration_type?: "expiring" | "non-expiring" | undefined;
3087
+ token_lifetime?: number | undefined;
3088
+ infinite_token_lifetime?: boolean | undefined;
3089
+ idle_token_lifetime?: number | undefined;
3090
+ infinite_idle_token_lifetime?: boolean | undefined;
3091
+ }, {
3092
+ rotation_type?: "rotating" | "non-rotating" | undefined;
3093
+ leeway?: number | undefined;
3094
+ expiration_type?: "expiring" | "non-expiring" | undefined;
3095
+ token_lifetime?: number | undefined;
3096
+ infinite_token_lifetime?: boolean | undefined;
3097
+ idle_token_lifetime?: number | undefined;
3098
+ infinite_idle_token_lifetime?: boolean | undefined;
3099
+ }>>>;
3070
3100
  default_organization: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3071
3101
  organization_usage: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
3072
3102
  "deny",
@@ -3104,7 +3134,6 @@ export declare const clientInsertSchema: z.ZodObject<{
3104
3134
  ]>>;
3105
3135
  }, "strip", z.ZodTypeAny, {
3106
3136
  name: string;
3107
- client_id: string;
3108
3137
  global: boolean;
3109
3138
  is_first_party: boolean;
3110
3139
  oidc_conformant: boolean;
@@ -3116,7 +3145,16 @@ export declare const clientInsertSchema: z.ZodObject<{
3116
3145
  require_pushed_authorization_requests: boolean;
3117
3146
  require_proof_of_possession: boolean;
3118
3147
  description?: string | undefined;
3119
- refresh_token?: Record<string, any> | undefined;
3148
+ client_id?: string | undefined;
3149
+ refresh_token?: {
3150
+ rotation_type?: "rotating" | "non-rotating" | undefined;
3151
+ leeway?: number | undefined;
3152
+ expiration_type?: "expiring" | "non-expiring" | undefined;
3153
+ token_lifetime?: number | undefined;
3154
+ infinite_token_lifetime?: boolean | undefined;
3155
+ idle_token_lifetime?: number | undefined;
3156
+ infinite_idle_token_lifetime?: boolean | undefined;
3157
+ } | undefined;
3120
3158
  client_secret?: string | undefined;
3121
3159
  app_type?: "native" | "spa" | "regular_web" | "non_interactive" | "resource_server" | "express_configuration" | "rms" | "box" | "cloudbees" | "concur" | "dropbox" | "mscrm" | "echosign" | "egnyte" | "newrelic" | "office365" | "salesforce" | "sentry" | "sharepoint" | "slack" | "springcm" | "zendesk" | "zoom" | "sso_integration" | "oag" | undefined;
3122
3160
  logo_uri?: string | undefined;
@@ -3157,9 +3195,17 @@ export declare const clientInsertSchema: z.ZodObject<{
3157
3195
  user_linking_mode?: "builtin" | "off" | undefined;
3158
3196
  }, {
3159
3197
  name: string;
3160
- client_id: string;
3161
3198
  description?: string | undefined;
3162
- refresh_token?: Record<string, any> | undefined;
3199
+ client_id?: string | undefined;
3200
+ refresh_token?: {
3201
+ rotation_type?: "rotating" | "non-rotating" | undefined;
3202
+ leeway?: number | undefined;
3203
+ expiration_type?: "expiring" | "non-expiring" | undefined;
3204
+ token_lifetime?: number | undefined;
3205
+ infinite_token_lifetime?: boolean | undefined;
3206
+ idle_token_lifetime?: number | undefined;
3207
+ infinite_idle_token_lifetime?: boolean | undefined;
3208
+ } | undefined;
3163
3209
  global?: boolean | undefined;
3164
3210
  client_secret?: string | undefined;
3165
3211
  app_type?: "native" | "spa" | "regular_web" | "non_interactive" | "resource_server" | "express_configuration" | "rms" | "box" | "cloudbees" | "concur" | "dropbox" | "mscrm" | "echosign" | "egnyte" | "newrelic" | "office365" | "salesforce" | "sentry" | "sharepoint" | "slack" | "springcm" | "zendesk" | "zoom" | "sso_integration" | "oag" | undefined;
@@ -3278,7 +3324,37 @@ export declare const clientSchema: z.ZodObject<{
3278
3324
  mobile: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3279
3325
  initiate_login_uri: z.ZodOptional<z.ZodString>;
3280
3326
  native_social_login: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3281
- refresh_token: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3327
+ refresh_token: z.ZodOptional<z.ZodDefault<z.ZodObject<{
3328
+ rotation_type: z.ZodOptional<z.ZodEnum<[
3329
+ "rotating",
3330
+ "non-rotating"
3331
+ ]>>;
3332
+ leeway: z.ZodOptional<z.ZodNumber>;
3333
+ expiration_type: z.ZodOptional<z.ZodEnum<[
3334
+ "expiring",
3335
+ "non-expiring"
3336
+ ]>>;
3337
+ token_lifetime: z.ZodOptional<z.ZodNumber>;
3338
+ infinite_token_lifetime: z.ZodOptional<z.ZodBoolean>;
3339
+ idle_token_lifetime: z.ZodOptional<z.ZodNumber>;
3340
+ infinite_idle_token_lifetime: z.ZodOptional<z.ZodBoolean>;
3341
+ }, "strip", z.ZodTypeAny, {
3342
+ rotation_type?: "rotating" | "non-rotating" | undefined;
3343
+ leeway?: number | undefined;
3344
+ expiration_type?: "expiring" | "non-expiring" | undefined;
3345
+ token_lifetime?: number | undefined;
3346
+ infinite_token_lifetime?: boolean | undefined;
3347
+ idle_token_lifetime?: number | undefined;
3348
+ infinite_idle_token_lifetime?: boolean | undefined;
3349
+ }, {
3350
+ rotation_type?: "rotating" | "non-rotating" | undefined;
3351
+ leeway?: number | undefined;
3352
+ expiration_type?: "expiring" | "non-expiring" | undefined;
3353
+ token_lifetime?: number | undefined;
3354
+ infinite_token_lifetime?: boolean | undefined;
3355
+ idle_token_lifetime?: number | undefined;
3356
+ infinite_idle_token_lifetime?: boolean | undefined;
3357
+ }>>>;
3282
3358
  default_organization: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
3283
3359
  organization_usage: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
3284
3360
  "deny",
@@ -3332,7 +3408,15 @@ export declare const clientSchema: z.ZodObject<{
3332
3408
  require_pushed_authorization_requests: boolean;
3333
3409
  require_proof_of_possession: boolean;
3334
3410
  description?: string | undefined;
3335
- refresh_token?: Record<string, any> | undefined;
3411
+ refresh_token?: {
3412
+ rotation_type?: "rotating" | "non-rotating" | undefined;
3413
+ leeway?: number | undefined;
3414
+ expiration_type?: "expiring" | "non-expiring" | undefined;
3415
+ token_lifetime?: number | undefined;
3416
+ infinite_token_lifetime?: boolean | undefined;
3417
+ idle_token_lifetime?: number | undefined;
3418
+ infinite_idle_token_lifetime?: boolean | undefined;
3419
+ } | undefined;
3336
3420
  client_secret?: string | undefined;
3337
3421
  app_type?: "native" | "spa" | "regular_web" | "non_interactive" | "resource_server" | "express_configuration" | "rms" | "box" | "cloudbees" | "concur" | "dropbox" | "mscrm" | "echosign" | "egnyte" | "newrelic" | "office365" | "salesforce" | "sentry" | "sharepoint" | "slack" | "springcm" | "zendesk" | "zoom" | "sso_integration" | "oag" | undefined;
3338
3422
  logo_uri?: string | undefined;
@@ -3377,7 +3461,15 @@ export declare const clientSchema: z.ZodObject<{
3377
3461
  name: string;
3378
3462
  client_id: string;
3379
3463
  description?: string | undefined;
3380
- refresh_token?: Record<string, any> | undefined;
3464
+ refresh_token?: {
3465
+ rotation_type?: "rotating" | "non-rotating" | undefined;
3466
+ leeway?: number | undefined;
3467
+ expiration_type?: "expiring" | "non-expiring" | undefined;
3468
+ token_lifetime?: number | undefined;
3469
+ infinite_token_lifetime?: boolean | undefined;
3470
+ idle_token_lifetime?: number | undefined;
3471
+ infinite_idle_token_lifetime?: boolean | undefined;
3472
+ } | undefined;
3381
3473
  global?: boolean | undefined;
3382
3474
  client_secret?: string | undefined;
3383
3475
  app_type?: "native" | "spa" | "regular_web" | "non_interactive" | "resource_server" | "express_configuration" | "rms" | "box" | "cloudbees" | "concur" | "dropbox" | "mscrm" | "echosign" | "egnyte" | "newrelic" | "office365" | "salesforce" | "sentry" | "sharepoint" | "slack" | "springcm" | "zendesk" | "zoom" | "sso_integration" | "oag" | undefined;
@@ -11374,25 +11466,28 @@ export type AuthParams = z.infer<typeof authParamsSchema>;
11374
11466
  export declare const brandingSchema: z.ZodObject<{
11375
11467
  colors: z.ZodOptional<z.ZodObject<{
11376
11468
  primary: z.ZodString;
11377
- page_background: z.ZodOptional<z.ZodObject<{
11378
- type: z.ZodOptional<z.ZodString>;
11379
- start: z.ZodOptional<z.ZodString>;
11380
- end: z.ZodOptional<z.ZodString>;
11381
- angle_deg: z.ZodOptional<z.ZodNumber>;
11382
- }, "strip", z.ZodTypeAny, {
11383
- type?: string | undefined;
11384
- start?: string | undefined;
11385
- end?: string | undefined;
11386
- angle_deg?: number | undefined;
11387
- }, {
11388
- type?: string | undefined;
11389
- start?: string | undefined;
11390
- end?: string | undefined;
11391
- angle_deg?: number | undefined;
11392
- }>>;
11469
+ page_background: z.ZodOptional<z.ZodUnion<[
11470
+ z.ZodString,
11471
+ z.ZodObject<{
11472
+ type: z.ZodOptional<z.ZodString>;
11473
+ start: z.ZodOptional<z.ZodString>;
11474
+ end: z.ZodOptional<z.ZodString>;
11475
+ angle_deg: z.ZodOptional<z.ZodNumber>;
11476
+ }, "strip", z.ZodTypeAny, {
11477
+ type?: string | undefined;
11478
+ start?: string | undefined;
11479
+ end?: string | undefined;
11480
+ angle_deg?: number | undefined;
11481
+ }, {
11482
+ type?: string | undefined;
11483
+ start?: string | undefined;
11484
+ end?: string | undefined;
11485
+ angle_deg?: number | undefined;
11486
+ }>
11487
+ ]>>;
11393
11488
  }, "strip", z.ZodTypeAny, {
11394
11489
  primary: string;
11395
- page_background?: {
11490
+ page_background?: string | {
11396
11491
  type?: string | undefined;
11397
11492
  start?: string | undefined;
11398
11493
  end?: string | undefined;
@@ -11400,7 +11495,7 @@ export declare const brandingSchema: z.ZodObject<{
11400
11495
  } | undefined;
11401
11496
  }, {
11402
11497
  primary: string;
11403
- page_background?: {
11498
+ page_background?: string | {
11404
11499
  type?: string | undefined;
11405
11500
  start?: string | undefined;
11406
11501
  end?: string | undefined;
@@ -11420,7 +11515,7 @@ export declare const brandingSchema: z.ZodObject<{
11420
11515
  }, "strip", z.ZodTypeAny, {
11421
11516
  colors?: {
11422
11517
  primary: string;
11423
- page_background?: {
11518
+ page_background?: string | {
11424
11519
  type?: string | undefined;
11425
11520
  start?: string | undefined;
11426
11521
  end?: string | undefined;
@@ -11436,7 +11531,7 @@ export declare const brandingSchema: z.ZodObject<{
11436
11531
  }, {
11437
11532
  colors?: {
11438
11533
  primary: string;
11439
- page_background?: {
11534
+ page_background?: string | {
11440
11535
  type?: string | undefined;
11441
11536
  start?: string | undefined;
11442
11537
  end?: string | undefined;
@@ -12212,7 +12307,7 @@ export declare const connectionInsertSchema: z.ZodObject<{
12212
12307
  name: z.ZodString;
12213
12308
  display_name: z.ZodOptional<z.ZodString>;
12214
12309
  strategy: z.ZodString;
12215
- options: z.ZodDefault<z.ZodObject<{
12310
+ options: z.ZodDefault<z.ZodEffects<z.ZodObject<{
12216
12311
  kid: z.ZodOptional<z.ZodString>;
12217
12312
  team_id: z.ZodOptional<z.ZodString>;
12218
12313
  realms: z.ZodOptional<z.ZodString>;
@@ -12736,118 +12831,221 @@ export declare const connectionInsertSchema: z.ZodObject<{
12736
12831
  requires_username?: boolean | undefined;
12737
12832
  set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
12738
12833
  }, {
12739
- validation?: {
12740
- username?: {
12741
- min?: number | undefined;
12742
- max?: number | undefined;
12743
- } | undefined;
12744
- } | undefined;
12745
- client_id?: string | undefined;
12746
- scope?: string | undefined;
12747
- provider?: string | undefined;
12748
- client_secret?: string | undefined;
12749
- kid?: string | undefined;
12750
- team_id?: string | undefined;
12751
- realms?: string | undefined;
12752
- authentication_method?: string | undefined;
12753
- app_secret?: string | undefined;
12754
- authorization_endpoint?: string | undefined;
12755
- token_endpoint?: string | undefined;
12756
- userinfo_endpoint?: string | undefined;
12757
- jwks_uri?: string | undefined;
12758
- discovery_url?: string | undefined;
12759
- issuer?: string | undefined;
12760
- from?: string | undefined;
12761
- twilio_sid?: string | undefined;
12762
- twilio_token?: string | undefined;
12763
- icon_url?: string | undefined;
12764
- passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
12765
- password_complexity_options?: {
12766
- min_length?: number | undefined;
12767
- } | undefined;
12768
- password_history?: {
12769
- enable?: boolean | undefined;
12770
- size?: number | undefined;
12771
- } | undefined;
12772
- password_no_personal_info?: {
12773
- enable?: boolean | undefined;
12774
- } | undefined;
12775
- password_dictionary?: {
12776
- enable?: boolean | undefined;
12777
- dictionary?: string[] | undefined;
12778
- } | undefined;
12779
- disable_signup?: boolean | undefined;
12780
- brute_force_protection?: boolean | undefined;
12781
- import_mode?: boolean | undefined;
12782
- attributes?: {
12783
- email?: {
12784
- validation?: {
12785
- allowed?: boolean | undefined;
12786
- } | undefined;
12787
- identifier?: {
12788
- active?: boolean | undefined;
12789
- } | undefined;
12790
- signup?: {
12791
- status?: "required" | "optional" | "disabled" | undefined;
12792
- verification?: {
12793
- active?: boolean | undefined;
12794
- } | undefined;
12795
- } | undefined;
12796
- unique?: boolean | undefined;
12797
- profile_required?: boolean | undefined;
12798
- verification_method?: "code" | "link" | undefined;
12799
- } | undefined;
12800
- username?: {
12801
- validation?: {
12802
- min_length?: number | undefined;
12803
- max_length?: number | undefined;
12804
- allowed_types?: {
12805
- email?: boolean | undefined;
12806
- phone_number?: boolean | undefined;
12807
- } | undefined;
12808
- } | undefined;
12809
- identifier?: {
12810
- active?: boolean | undefined;
12811
- } | undefined;
12812
- signup?: {
12813
- status?: "required" | "optional" | "disabled" | undefined;
12814
- } | undefined;
12815
- profile_required?: boolean | undefined;
12816
- } | undefined;
12817
- phone_number?: {
12818
- identifier?: {
12819
- active?: boolean | undefined;
12820
- } | undefined;
12821
- signup?: {
12822
- status?: "required" | "optional" | "disabled" | undefined;
12823
- } | undefined;
12824
- } | undefined;
12825
- } | undefined;
12826
- authentication_methods?: {
12827
- password?: {
12828
- enabled?: boolean | undefined;
12829
- } | undefined;
12830
- passkey?: {
12831
- enabled?: boolean | undefined;
12832
- } | undefined;
12833
- } | undefined;
12834
- passkey_options?: {
12835
- challenge_ui?: "both" | "autofill" | "button" | undefined;
12836
- local_enrollment_enabled?: boolean | undefined;
12837
- progressive_enrollment_enabled?: boolean | undefined;
12838
- } | undefined;
12839
- requires_username?: boolean | undefined;
12840
- set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
12841
- }>>;
12842
- enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
12843
- response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
12844
- response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
12845
- is_domain_connection: z.ZodOptional<z.ZodBoolean>;
12846
- show_as_button: z.ZodOptional<z.ZodBoolean>;
12847
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
12848
- is_system: z.ZodOptional<z.ZodBoolean>;
12849
- }, "strip", z.ZodTypeAny, {
12850
- options: {
12834
+ validation?: {
12835
+ username?: {
12836
+ min?: number | undefined;
12837
+ max?: number | undefined;
12838
+ } | undefined;
12839
+ } | undefined;
12840
+ client_id?: string | undefined;
12841
+ scope?: string | undefined;
12842
+ provider?: string | undefined;
12843
+ client_secret?: string | undefined;
12844
+ kid?: string | undefined;
12845
+ team_id?: string | undefined;
12846
+ realms?: string | undefined;
12847
+ authentication_method?: string | undefined;
12848
+ app_secret?: string | undefined;
12849
+ authorization_endpoint?: string | undefined;
12850
+ token_endpoint?: string | undefined;
12851
+ userinfo_endpoint?: string | undefined;
12852
+ jwks_uri?: string | undefined;
12853
+ discovery_url?: string | undefined;
12854
+ issuer?: string | undefined;
12855
+ from?: string | undefined;
12856
+ twilio_sid?: string | undefined;
12857
+ twilio_token?: string | undefined;
12858
+ icon_url?: string | undefined;
12859
+ passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
12860
+ password_complexity_options?: {
12861
+ min_length?: number | undefined;
12862
+ } | undefined;
12863
+ password_history?: {
12864
+ enable?: boolean | undefined;
12865
+ size?: number | undefined;
12866
+ } | undefined;
12867
+ password_no_personal_info?: {
12868
+ enable?: boolean | undefined;
12869
+ } | undefined;
12870
+ password_dictionary?: {
12871
+ enable?: boolean | undefined;
12872
+ dictionary?: string[] | undefined;
12873
+ } | undefined;
12874
+ disable_signup?: boolean | undefined;
12875
+ brute_force_protection?: boolean | undefined;
12876
+ import_mode?: boolean | undefined;
12877
+ attributes?: {
12878
+ email?: {
12879
+ validation?: {
12880
+ allowed?: boolean | undefined;
12881
+ } | undefined;
12882
+ identifier?: {
12883
+ active?: boolean | undefined;
12884
+ } | undefined;
12885
+ signup?: {
12886
+ status?: "required" | "optional" | "disabled" | undefined;
12887
+ verification?: {
12888
+ active?: boolean | undefined;
12889
+ } | undefined;
12890
+ } | undefined;
12891
+ unique?: boolean | undefined;
12892
+ profile_required?: boolean | undefined;
12893
+ verification_method?: "code" | "link" | undefined;
12894
+ } | undefined;
12895
+ username?: {
12896
+ validation?: {
12897
+ min_length?: number | undefined;
12898
+ max_length?: number | undefined;
12899
+ allowed_types?: {
12900
+ email?: boolean | undefined;
12901
+ phone_number?: boolean | undefined;
12902
+ } | undefined;
12903
+ } | undefined;
12904
+ identifier?: {
12905
+ active?: boolean | undefined;
12906
+ } | undefined;
12907
+ signup?: {
12908
+ status?: "required" | "optional" | "disabled" | undefined;
12909
+ } | undefined;
12910
+ profile_required?: boolean | undefined;
12911
+ } | undefined;
12912
+ phone_number?: {
12913
+ identifier?: {
12914
+ active?: boolean | undefined;
12915
+ } | undefined;
12916
+ signup?: {
12917
+ status?: "required" | "optional" | "disabled" | undefined;
12918
+ } | undefined;
12919
+ } | undefined;
12920
+ } | undefined;
12921
+ authentication_methods?: {
12922
+ password?: {
12923
+ enabled?: boolean | undefined;
12924
+ } | undefined;
12925
+ passkey?: {
12926
+ enabled?: boolean | undefined;
12927
+ } | undefined;
12928
+ } | undefined;
12929
+ passkey_options?: {
12930
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
12931
+ local_enrollment_enabled?: boolean | undefined;
12932
+ progressive_enrollment_enabled?: boolean | undefined;
12933
+ } | undefined;
12934
+ requires_username?: boolean | undefined;
12935
+ set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
12936
+ }>, {
12937
+ validation?: {
12938
+ username?: {
12939
+ min?: number | undefined;
12940
+ max?: number | undefined;
12941
+ } | undefined;
12942
+ } | undefined;
12943
+ client_id?: string | undefined;
12944
+ scope?: string | undefined;
12945
+ provider?: string | undefined;
12946
+ client_secret?: string | undefined;
12947
+ kid?: string | undefined;
12948
+ team_id?: string | undefined;
12949
+ realms?: string | undefined;
12950
+ authentication_method?: string | undefined;
12951
+ app_secret?: string | undefined;
12952
+ authorization_endpoint?: string | undefined;
12953
+ token_endpoint?: string | undefined;
12954
+ userinfo_endpoint?: string | undefined;
12955
+ jwks_uri?: string | undefined;
12956
+ discovery_url?: string | undefined;
12957
+ issuer?: string | undefined;
12958
+ from?: string | undefined;
12959
+ twilio_sid?: string | undefined;
12960
+ twilio_token?: string | undefined;
12961
+ icon_url?: string | undefined;
12962
+ passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
12963
+ password_complexity_options?: {
12964
+ min_length?: number | undefined;
12965
+ } | undefined;
12966
+ password_history?: {
12967
+ enable?: boolean | undefined;
12968
+ size?: number | undefined;
12969
+ } | undefined;
12970
+ password_no_personal_info?: {
12971
+ enable?: boolean | undefined;
12972
+ } | undefined;
12973
+ password_dictionary?: {
12974
+ enable?: boolean | undefined;
12975
+ dictionary?: string[] | undefined;
12976
+ } | undefined;
12977
+ disable_signup?: boolean | undefined;
12978
+ brute_force_protection?: boolean | undefined;
12979
+ import_mode?: boolean | undefined;
12980
+ attributes?: {
12981
+ email?: {
12982
+ validation?: {
12983
+ allowed?: boolean | undefined;
12984
+ } | undefined;
12985
+ identifier?: {
12986
+ active?: boolean | undefined;
12987
+ } | undefined;
12988
+ signup?: {
12989
+ status?: "required" | "optional" | "disabled" | undefined;
12990
+ verification?: {
12991
+ active?: boolean | undefined;
12992
+ } | undefined;
12993
+ } | undefined;
12994
+ unique?: boolean | undefined;
12995
+ profile_required?: boolean | undefined;
12996
+ verification_method?: "code" | "link" | undefined;
12997
+ } | undefined;
12998
+ username?: {
12999
+ validation?: {
13000
+ min_length?: number | undefined;
13001
+ max_length?: number | undefined;
13002
+ allowed_types?: {
13003
+ email?: boolean | undefined;
13004
+ phone_number?: boolean | undefined;
13005
+ } | undefined;
13006
+ } | undefined;
13007
+ identifier?: {
13008
+ active?: boolean | undefined;
13009
+ } | undefined;
13010
+ signup?: {
13011
+ status?: "required" | "optional" | "disabled" | undefined;
13012
+ } | undefined;
13013
+ profile_required?: boolean | undefined;
13014
+ } | undefined;
13015
+ phone_number?: {
13016
+ identifier?: {
13017
+ active?: boolean | undefined;
13018
+ } | undefined;
13019
+ signup?: {
13020
+ status?: "required" | "optional" | "disabled" | undefined;
13021
+ } | undefined;
13022
+ } | undefined;
13023
+ } | undefined;
13024
+ authentication_methods?: {
13025
+ password?: {
13026
+ enabled?: boolean | undefined;
13027
+ } | undefined;
13028
+ passkey?: {
13029
+ enabled?: boolean | undefined;
13030
+ } | undefined;
13031
+ } | undefined;
13032
+ passkey_options?: {
13033
+ challenge_ui?: "both" | "autofill" | "button" | undefined;
13034
+ local_enrollment_enabled?: boolean | undefined;
13035
+ progressive_enrollment_enabled?: boolean | undefined;
13036
+ } | undefined;
13037
+ requires_username?: boolean | undefined;
13038
+ set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
13039
+ }, unknown>>;
13040
+ enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
13041
+ response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
13042
+ response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
13043
+ is_domain_connection: z.ZodOptional<z.ZodBoolean>;
13044
+ show_as_button: z.ZodOptional<z.ZodBoolean>;
13045
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
13046
+ is_system: z.ZodOptional<z.ZodBoolean>;
13047
+ }, "strip", z.ZodTypeAny, {
13048
+ options: {
12851
13049
  validation?: {
12852
13050
  username?: {
12853
13051
  min?: number | undefined;
@@ -12965,110 +13163,7 @@ export declare const connectionInsertSchema: z.ZodObject<{
12965
13163
  }, {
12966
13164
  name: string;
12967
13165
  strategy: string;
12968
- options?: {
12969
- validation?: {
12970
- username?: {
12971
- min?: number | undefined;
12972
- max?: number | undefined;
12973
- } | undefined;
12974
- } | undefined;
12975
- client_id?: string | undefined;
12976
- scope?: string | undefined;
12977
- provider?: string | undefined;
12978
- client_secret?: string | undefined;
12979
- kid?: string | undefined;
12980
- team_id?: string | undefined;
12981
- realms?: string | undefined;
12982
- authentication_method?: string | undefined;
12983
- app_secret?: string | undefined;
12984
- authorization_endpoint?: string | undefined;
12985
- token_endpoint?: string | undefined;
12986
- userinfo_endpoint?: string | undefined;
12987
- jwks_uri?: string | undefined;
12988
- discovery_url?: string | undefined;
12989
- issuer?: string | undefined;
12990
- from?: string | undefined;
12991
- twilio_sid?: string | undefined;
12992
- twilio_token?: string | undefined;
12993
- icon_url?: string | undefined;
12994
- passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
12995
- password_complexity_options?: {
12996
- min_length?: number | undefined;
12997
- } | undefined;
12998
- password_history?: {
12999
- enable?: boolean | undefined;
13000
- size?: number | undefined;
13001
- } | undefined;
13002
- password_no_personal_info?: {
13003
- enable?: boolean | undefined;
13004
- } | undefined;
13005
- password_dictionary?: {
13006
- enable?: boolean | undefined;
13007
- dictionary?: string[] | undefined;
13008
- } | undefined;
13009
- disable_signup?: boolean | undefined;
13010
- brute_force_protection?: boolean | undefined;
13011
- import_mode?: boolean | undefined;
13012
- attributes?: {
13013
- email?: {
13014
- validation?: {
13015
- allowed?: boolean | undefined;
13016
- } | undefined;
13017
- identifier?: {
13018
- active?: boolean | undefined;
13019
- } | undefined;
13020
- signup?: {
13021
- status?: "required" | "optional" | "disabled" | undefined;
13022
- verification?: {
13023
- active?: boolean | undefined;
13024
- } | undefined;
13025
- } | undefined;
13026
- unique?: boolean | undefined;
13027
- profile_required?: boolean | undefined;
13028
- verification_method?: "code" | "link" | undefined;
13029
- } | undefined;
13030
- username?: {
13031
- validation?: {
13032
- min_length?: number | undefined;
13033
- max_length?: number | undefined;
13034
- allowed_types?: {
13035
- email?: boolean | undefined;
13036
- phone_number?: boolean | undefined;
13037
- } | undefined;
13038
- } | undefined;
13039
- identifier?: {
13040
- active?: boolean | undefined;
13041
- } | undefined;
13042
- signup?: {
13043
- status?: "required" | "optional" | "disabled" | undefined;
13044
- } | undefined;
13045
- profile_required?: boolean | undefined;
13046
- } | undefined;
13047
- phone_number?: {
13048
- identifier?: {
13049
- active?: boolean | undefined;
13050
- } | undefined;
13051
- signup?: {
13052
- status?: "required" | "optional" | "disabled" | undefined;
13053
- } | undefined;
13054
- } | undefined;
13055
- } | undefined;
13056
- authentication_methods?: {
13057
- password?: {
13058
- enabled?: boolean | undefined;
13059
- } | undefined;
13060
- passkey?: {
13061
- enabled?: boolean | undefined;
13062
- } | undefined;
13063
- } | undefined;
13064
- passkey_options?: {
13065
- challenge_ui?: "both" | "autofill" | "button" | undefined;
13066
- local_enrollment_enabled?: boolean | undefined;
13067
- progressive_enrollment_enabled?: boolean | undefined;
13068
- } | undefined;
13069
- requires_username?: boolean | undefined;
13070
- set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
13071
- } | undefined;
13166
+ options?: unknown;
13072
13167
  id?: string | undefined;
13073
13168
  is_system?: boolean | undefined;
13074
13169
  response_type?: AuthorizationResponseType | undefined;
@@ -13088,7 +13183,7 @@ export declare const connectionSchema: z.ZodObject<{
13088
13183
  name: z.ZodString;
13089
13184
  display_name: z.ZodOptional<z.ZodString>;
13090
13185
  strategy: z.ZodString;
13091
- options: z.ZodDefault<z.ZodObject<{
13186
+ options: z.ZodDefault<z.ZodEffects<z.ZodObject<{
13092
13187
  kid: z.ZodOptional<z.ZodString>;
13093
13188
  team_id: z.ZodOptional<z.ZodString>;
13094
13189
  realms: z.ZodOptional<z.ZodString>;
@@ -13714,18 +13809,7 @@ export declare const connectionSchema: z.ZodObject<{
13714
13809
  } | undefined;
13715
13810
  requires_username?: boolean | undefined;
13716
13811
  set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
13717
- }>>;
13718
- enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
13719
- response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
13720
- response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
13721
- is_domain_connection: z.ZodOptional<z.ZodBoolean>;
13722
- show_as_button: z.ZodOptional<z.ZodBoolean>;
13723
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
13724
- is_system: z.ZodOptional<z.ZodBoolean>;
13725
- }, "strip", z.ZodTypeAny, {
13726
- created_at: string;
13727
- updated_at: string;
13728
- options: {
13812
+ }>, {
13729
13813
  validation?: {
13730
13814
  username?: {
13731
13815
  min?: number | undefined;
@@ -13828,24 +13912,18 @@ export declare const connectionSchema: z.ZodObject<{
13828
13912
  } | undefined;
13829
13913
  requires_username?: boolean | undefined;
13830
13914
  set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
13831
- };
13832
- name: string;
13833
- strategy: string;
13834
- id?: string | undefined;
13835
- is_system?: boolean | undefined;
13836
- response_type?: AuthorizationResponseType | undefined;
13837
- response_mode?: AuthorizationResponseMode | undefined;
13838
- display_name?: string | undefined;
13839
- enabled_clients?: string[] | undefined;
13840
- is_domain_connection?: boolean | undefined;
13841
- show_as_button?: boolean | undefined;
13842
- metadata?: Record<string, any> | undefined;
13843
- }, {
13915
+ }, unknown>>;
13916
+ enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
13917
+ response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
13918
+ response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
13919
+ is_domain_connection: z.ZodOptional<z.ZodBoolean>;
13920
+ show_as_button: z.ZodOptional<z.ZodBoolean>;
13921
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
13922
+ is_system: z.ZodOptional<z.ZodBoolean>;
13923
+ }, "strip", z.ZodTypeAny, {
13844
13924
  created_at: string;
13845
13925
  updated_at: string;
13846
- name: string;
13847
- strategy: string;
13848
- options?: {
13926
+ options: {
13849
13927
  validation?: {
13850
13928
  username?: {
13851
13929
  min?: number | undefined;
@@ -13948,7 +14026,24 @@ export declare const connectionSchema: z.ZodObject<{
13948
14026
  } | undefined;
13949
14027
  requires_username?: boolean | undefined;
13950
14028
  set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
13951
- } | undefined;
14029
+ };
14030
+ name: string;
14031
+ strategy: string;
14032
+ id?: string | undefined;
14033
+ is_system?: boolean | undefined;
14034
+ response_type?: AuthorizationResponseType | undefined;
14035
+ response_mode?: AuthorizationResponseMode | undefined;
14036
+ display_name?: string | undefined;
14037
+ enabled_clients?: string[] | undefined;
14038
+ is_domain_connection?: boolean | undefined;
14039
+ show_as_button?: boolean | undefined;
14040
+ metadata?: Record<string, any> | undefined;
14041
+ }, {
14042
+ created_at: string;
14043
+ updated_at: string;
14044
+ name: string;
14045
+ strategy: string;
14046
+ options?: unknown;
13952
14047
  id?: string | undefined;
13953
14048
  is_system?: boolean | undefined;
13954
14049
  response_type?: AuthorizationResponseType | undefined;
@@ -43748,6 +43843,7 @@ export declare const LogTypes: {
43748
43843
  readonly SUCCESSFULLY_ACCEPTED_USER_INVITE: "si";
43749
43844
  readonly BREACHED_PASSWORD_ON_SIGNUP: "signup_pwd_leak";
43750
43845
  readonly SUCCESS_LOGOUT: "slo";
43846
+ readonly SUCCESS_HOOK: "sh";
43751
43847
  readonly SUCCESS_REVOCATION: "srrt";
43752
43848
  readonly SUCCESS_SIGNUP: "ss";
43753
43849
  readonly FAILED_SS_SSO_OPERATION: "ss_sso_failure";
@@ -43813,7 +43909,7 @@ export declare const LocationInfo: z.ZodObject<{
43813
43909
  continent_code: string;
43814
43910
  }>;
43815
43911
  export declare const logInsertSchema: z.ZodObject<{
43816
- type: z.ZodEffects<z.ZodString, "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum", string>;
43912
+ type: z.ZodEffects<z.ZodString, "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum", string>;
43817
43913
  date: z.ZodString;
43818
43914
  description: z.ZodOptional<z.ZodString>;
43819
43915
  ip: z.ZodOptional<z.ZodString>;
@@ -43878,7 +43974,7 @@ export declare const logInsertSchema: z.ZodObject<{
43878
43974
  continent_code: string;
43879
43975
  }>>;
43880
43976
  }, "strip", z.ZodTypeAny, {
43881
- type: "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum";
43977
+ type: "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum";
43882
43978
  date: string;
43883
43979
  isMobile: boolean;
43884
43980
  description?: string | undefined;
@@ -43951,7 +44047,7 @@ export declare const logInsertSchema: z.ZodObject<{
43951
44047
  export type LogInsert = z.infer<typeof logInsertSchema>;
43952
44048
  export declare const logSchema: z.ZodObject<{
43953
44049
  log_id: z.ZodString;
43954
- type: z.ZodEffects<z.ZodString, "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum", string>;
44050
+ type: z.ZodEffects<z.ZodString, "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum", string>;
43955
44051
  date: z.ZodString;
43956
44052
  description: z.ZodOptional<z.ZodString>;
43957
44053
  ip: z.ZodOptional<z.ZodString>;
@@ -44015,7 +44111,7 @@ export declare const logSchema: z.ZodObject<{
44015
44111
  continent_code: string;
44016
44112
  }>>;
44017
44113
  }, "strip", z.ZodTypeAny, {
44018
- type: "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum";
44114
+ type: "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum";
44019
44115
  date: string;
44020
44116
  isMobile: boolean;
44021
44117
  log_id: string;
@@ -44086,6 +44182,525 @@ export declare const logSchema: z.ZodObject<{
44086
44182
  } | undefined;
44087
44183
  }>;
44088
44184
  export type Log = z.infer<typeof logSchema>;
44185
+ export declare const logStreamTypeSchema: z.ZodEnum<[
44186
+ "http",
44187
+ "eventbridge",
44188
+ "eventgrid",
44189
+ "splunk",
44190
+ "datadog",
44191
+ "sumo"
44192
+ ]>;
44193
+ export declare const logStreamStatusSchema: z.ZodEnum<[
44194
+ "active",
44195
+ "paused",
44196
+ "suspended"
44197
+ ]>;
44198
+ export declare const logStreamFilterSchema: z.ZodObject<{
44199
+ type: z.ZodString;
44200
+ name: z.ZodString;
44201
+ }, "strip", z.ZodTypeAny, {
44202
+ type: string;
44203
+ name: string;
44204
+ }, {
44205
+ type: string;
44206
+ name: string;
44207
+ }>;
44208
+ export declare const logStreamInsertSchema: z.ZodObject<{
44209
+ name: z.ZodString;
44210
+ type: z.ZodEnum<[
44211
+ "http",
44212
+ "eventbridge",
44213
+ "eventgrid",
44214
+ "splunk",
44215
+ "datadog",
44216
+ "sumo"
44217
+ ]>;
44218
+ status: z.ZodOptional<z.ZodEnum<[
44219
+ "active",
44220
+ "paused",
44221
+ "suspended"
44222
+ ]>>;
44223
+ sink: z.ZodRecord<z.ZodString, z.ZodUnknown>;
44224
+ filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
44225
+ type: z.ZodString;
44226
+ name: z.ZodString;
44227
+ }, "strip", z.ZodTypeAny, {
44228
+ type: string;
44229
+ name: string;
44230
+ }, {
44231
+ type: string;
44232
+ name: string;
44233
+ }>, "many">>;
44234
+ isPriority: z.ZodOptional<z.ZodBoolean>;
44235
+ }, "strip", z.ZodTypeAny, {
44236
+ type: "http" | "eventbridge" | "eventgrid" | "splunk" | "datadog" | "sumo";
44237
+ name: string;
44238
+ sink: Record<string, unknown>;
44239
+ status?: "active" | "paused" | "suspended" | undefined;
44240
+ filters?: {
44241
+ type: string;
44242
+ name: string;
44243
+ }[] | undefined;
44244
+ isPriority?: boolean | undefined;
44245
+ }, {
44246
+ type: "http" | "eventbridge" | "eventgrid" | "splunk" | "datadog" | "sumo";
44247
+ name: string;
44248
+ sink: Record<string, unknown>;
44249
+ status?: "active" | "paused" | "suspended" | undefined;
44250
+ filters?: {
44251
+ type: string;
44252
+ name: string;
44253
+ }[] | undefined;
44254
+ isPriority?: boolean | undefined;
44255
+ }>;
44256
+ export type LogStreamInsert = z.infer<typeof logStreamInsertSchema>;
44257
+ export declare const logStreamSchema: z.ZodObject<{
44258
+ name: z.ZodString;
44259
+ type: z.ZodEnum<[
44260
+ "http",
44261
+ "eventbridge",
44262
+ "eventgrid",
44263
+ "splunk",
44264
+ "datadog",
44265
+ "sumo"
44266
+ ]>;
44267
+ sink: z.ZodRecord<z.ZodString, z.ZodUnknown>;
44268
+ filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
44269
+ type: z.ZodString;
44270
+ name: z.ZodString;
44271
+ }, "strip", z.ZodTypeAny, {
44272
+ type: string;
44273
+ name: string;
44274
+ }, {
44275
+ type: string;
44276
+ name: string;
44277
+ }>, "many">>;
44278
+ isPriority: z.ZodOptional<z.ZodBoolean>;
44279
+ } & {
44280
+ id: z.ZodString;
44281
+ status: z.ZodEnum<[
44282
+ "active",
44283
+ "paused",
44284
+ "suspended"
44285
+ ]>;
44286
+ created_at: z.ZodOptional<z.ZodString>;
44287
+ updated_at: z.ZodOptional<z.ZodString>;
44288
+ }, "strip", z.ZodTypeAny, {
44289
+ type: "http" | "eventbridge" | "eventgrid" | "splunk" | "datadog" | "sumo";
44290
+ status: "active" | "paused" | "suspended";
44291
+ id: string;
44292
+ name: string;
44293
+ sink: Record<string, unknown>;
44294
+ created_at?: string | undefined;
44295
+ updated_at?: string | undefined;
44296
+ filters?: {
44297
+ type: string;
44298
+ name: string;
44299
+ }[] | undefined;
44300
+ isPriority?: boolean | undefined;
44301
+ }, {
44302
+ type: "http" | "eventbridge" | "eventgrid" | "splunk" | "datadog" | "sumo";
44303
+ status: "active" | "paused" | "suspended";
44304
+ id: string;
44305
+ name: string;
44306
+ sink: Record<string, unknown>;
44307
+ created_at?: string | undefined;
44308
+ updated_at?: string | undefined;
44309
+ filters?: {
44310
+ type: string;
44311
+ name: string;
44312
+ }[] | undefined;
44313
+ isPriority?: boolean | undefined;
44314
+ }>;
44315
+ export type LogStream = z.infer<typeof logStreamSchema>;
44316
+ export declare const breachedPasswordDetectionSchema: z.ZodObject<{
44317
+ enabled: z.ZodOptional<z.ZodBoolean>;
44318
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44319
+ admin_notification_frequency: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44320
+ method: z.ZodOptional<z.ZodString>;
44321
+ stage: z.ZodOptional<z.ZodObject<{
44322
+ "pre-user-registration": z.ZodOptional<z.ZodObject<{
44323
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44324
+ }, "strip", z.ZodTypeAny, {
44325
+ shields?: string[] | undefined;
44326
+ }, {
44327
+ shields?: string[] | undefined;
44328
+ }>>;
44329
+ "pre-change-password": z.ZodOptional<z.ZodObject<{
44330
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44331
+ }, "strip", z.ZodTypeAny, {
44332
+ shields?: string[] | undefined;
44333
+ }, {
44334
+ shields?: string[] | undefined;
44335
+ }>>;
44336
+ }, "strip", z.ZodTypeAny, {
44337
+ "pre-user-registration"?: {
44338
+ shields?: string[] | undefined;
44339
+ } | undefined;
44340
+ "pre-change-password"?: {
44341
+ shields?: string[] | undefined;
44342
+ } | undefined;
44343
+ }, {
44344
+ "pre-user-registration"?: {
44345
+ shields?: string[] | undefined;
44346
+ } | undefined;
44347
+ "pre-change-password"?: {
44348
+ shields?: string[] | undefined;
44349
+ } | undefined;
44350
+ }>>;
44351
+ }, "strip", z.ZodTypeAny, {
44352
+ method?: string | undefined;
44353
+ enabled?: boolean | undefined;
44354
+ shields?: string[] | undefined;
44355
+ admin_notification_frequency?: string[] | undefined;
44356
+ stage?: {
44357
+ "pre-user-registration"?: {
44358
+ shields?: string[] | undefined;
44359
+ } | undefined;
44360
+ "pre-change-password"?: {
44361
+ shields?: string[] | undefined;
44362
+ } | undefined;
44363
+ } | undefined;
44364
+ }, {
44365
+ method?: string | undefined;
44366
+ enabled?: boolean | undefined;
44367
+ shields?: string[] | undefined;
44368
+ admin_notification_frequency?: string[] | undefined;
44369
+ stage?: {
44370
+ "pre-user-registration"?: {
44371
+ shields?: string[] | undefined;
44372
+ } | undefined;
44373
+ "pre-change-password"?: {
44374
+ shields?: string[] | undefined;
44375
+ } | undefined;
44376
+ } | undefined;
44377
+ }>;
44378
+ export type BreachedPasswordDetection = z.infer<typeof breachedPasswordDetectionSchema>;
44379
+ export declare const bruteForceProtectionSchema: z.ZodObject<{
44380
+ enabled: z.ZodOptional<z.ZodBoolean>;
44381
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44382
+ allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44383
+ mode: z.ZodOptional<z.ZodString>;
44384
+ max_attempts: z.ZodOptional<z.ZodNumber>;
44385
+ }, "strip", z.ZodTypeAny, {
44386
+ allowlist?: string[] | undefined;
44387
+ enabled?: boolean | undefined;
44388
+ shields?: string[] | undefined;
44389
+ mode?: string | undefined;
44390
+ max_attempts?: number | undefined;
44391
+ }, {
44392
+ allowlist?: string[] | undefined;
44393
+ enabled?: boolean | undefined;
44394
+ shields?: string[] | undefined;
44395
+ mode?: string | undefined;
44396
+ max_attempts?: number | undefined;
44397
+ }>;
44398
+ export type BruteForceProtection = z.infer<typeof bruteForceProtectionSchema>;
44399
+ export declare const suspiciousIpThrottlingSchema: z.ZodObject<{
44400
+ enabled: z.ZodOptional<z.ZodBoolean>;
44401
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44402
+ allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44403
+ stage: z.ZodOptional<z.ZodObject<{
44404
+ "pre-login": z.ZodOptional<z.ZodObject<{
44405
+ max_attempts: z.ZodOptional<z.ZodNumber>;
44406
+ rate: z.ZodOptional<z.ZodNumber>;
44407
+ }, "strip", z.ZodTypeAny, {
44408
+ max_attempts?: number | undefined;
44409
+ rate?: number | undefined;
44410
+ }, {
44411
+ max_attempts?: number | undefined;
44412
+ rate?: number | undefined;
44413
+ }>>;
44414
+ "pre-user-registration": z.ZodOptional<z.ZodObject<{
44415
+ max_attempts: z.ZodOptional<z.ZodNumber>;
44416
+ rate: z.ZodOptional<z.ZodNumber>;
44417
+ }, "strip", z.ZodTypeAny, {
44418
+ max_attempts?: number | undefined;
44419
+ rate?: number | undefined;
44420
+ }, {
44421
+ max_attempts?: number | undefined;
44422
+ rate?: number | undefined;
44423
+ }>>;
44424
+ }, "strip", z.ZodTypeAny, {
44425
+ "pre-user-registration"?: {
44426
+ max_attempts?: number | undefined;
44427
+ rate?: number | undefined;
44428
+ } | undefined;
44429
+ "pre-login"?: {
44430
+ max_attempts?: number | undefined;
44431
+ rate?: number | undefined;
44432
+ } | undefined;
44433
+ }, {
44434
+ "pre-user-registration"?: {
44435
+ max_attempts?: number | undefined;
44436
+ rate?: number | undefined;
44437
+ } | undefined;
44438
+ "pre-login"?: {
44439
+ max_attempts?: number | undefined;
44440
+ rate?: number | undefined;
44441
+ } | undefined;
44442
+ }>>;
44443
+ }, "strip", z.ZodTypeAny, {
44444
+ allowlist?: string[] | undefined;
44445
+ enabled?: boolean | undefined;
44446
+ shields?: string[] | undefined;
44447
+ stage?: {
44448
+ "pre-user-registration"?: {
44449
+ max_attempts?: number | undefined;
44450
+ rate?: number | undefined;
44451
+ } | undefined;
44452
+ "pre-login"?: {
44453
+ max_attempts?: number | undefined;
44454
+ rate?: number | undefined;
44455
+ } | undefined;
44456
+ } | undefined;
44457
+ }, {
44458
+ allowlist?: string[] | undefined;
44459
+ enabled?: boolean | undefined;
44460
+ shields?: string[] | undefined;
44461
+ stage?: {
44462
+ "pre-user-registration"?: {
44463
+ max_attempts?: number | undefined;
44464
+ rate?: number | undefined;
44465
+ } | undefined;
44466
+ "pre-login"?: {
44467
+ max_attempts?: number | undefined;
44468
+ rate?: number | undefined;
44469
+ } | undefined;
44470
+ } | undefined;
44471
+ }>;
44472
+ export type SuspiciousIpThrottling = z.infer<typeof suspiciousIpThrottlingSchema>;
44473
+ export declare const attackProtectionSchema: z.ZodObject<{
44474
+ breached_password_detection: z.ZodOptional<z.ZodObject<{
44475
+ enabled: z.ZodOptional<z.ZodBoolean>;
44476
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44477
+ admin_notification_frequency: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44478
+ method: z.ZodOptional<z.ZodString>;
44479
+ stage: z.ZodOptional<z.ZodObject<{
44480
+ "pre-user-registration": z.ZodOptional<z.ZodObject<{
44481
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44482
+ }, "strip", z.ZodTypeAny, {
44483
+ shields?: string[] | undefined;
44484
+ }, {
44485
+ shields?: string[] | undefined;
44486
+ }>>;
44487
+ "pre-change-password": z.ZodOptional<z.ZodObject<{
44488
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44489
+ }, "strip", z.ZodTypeAny, {
44490
+ shields?: string[] | undefined;
44491
+ }, {
44492
+ shields?: string[] | undefined;
44493
+ }>>;
44494
+ }, "strip", z.ZodTypeAny, {
44495
+ "pre-user-registration"?: {
44496
+ shields?: string[] | undefined;
44497
+ } | undefined;
44498
+ "pre-change-password"?: {
44499
+ shields?: string[] | undefined;
44500
+ } | undefined;
44501
+ }, {
44502
+ "pre-user-registration"?: {
44503
+ shields?: string[] | undefined;
44504
+ } | undefined;
44505
+ "pre-change-password"?: {
44506
+ shields?: string[] | undefined;
44507
+ } | undefined;
44508
+ }>>;
44509
+ }, "strip", z.ZodTypeAny, {
44510
+ method?: string | undefined;
44511
+ enabled?: boolean | undefined;
44512
+ shields?: string[] | undefined;
44513
+ admin_notification_frequency?: string[] | undefined;
44514
+ stage?: {
44515
+ "pre-user-registration"?: {
44516
+ shields?: string[] | undefined;
44517
+ } | undefined;
44518
+ "pre-change-password"?: {
44519
+ shields?: string[] | undefined;
44520
+ } | undefined;
44521
+ } | undefined;
44522
+ }, {
44523
+ method?: string | undefined;
44524
+ enabled?: boolean | undefined;
44525
+ shields?: string[] | undefined;
44526
+ admin_notification_frequency?: string[] | undefined;
44527
+ stage?: {
44528
+ "pre-user-registration"?: {
44529
+ shields?: string[] | undefined;
44530
+ } | undefined;
44531
+ "pre-change-password"?: {
44532
+ shields?: string[] | undefined;
44533
+ } | undefined;
44534
+ } | undefined;
44535
+ }>>;
44536
+ brute_force_protection: z.ZodOptional<z.ZodObject<{
44537
+ enabled: z.ZodOptional<z.ZodBoolean>;
44538
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44539
+ allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44540
+ mode: z.ZodOptional<z.ZodString>;
44541
+ max_attempts: z.ZodOptional<z.ZodNumber>;
44542
+ }, "strip", z.ZodTypeAny, {
44543
+ allowlist?: string[] | undefined;
44544
+ enabled?: boolean | undefined;
44545
+ shields?: string[] | undefined;
44546
+ mode?: string | undefined;
44547
+ max_attempts?: number | undefined;
44548
+ }, {
44549
+ allowlist?: string[] | undefined;
44550
+ enabled?: boolean | undefined;
44551
+ shields?: string[] | undefined;
44552
+ mode?: string | undefined;
44553
+ max_attempts?: number | undefined;
44554
+ }>>;
44555
+ suspicious_ip_throttling: z.ZodOptional<z.ZodObject<{
44556
+ enabled: z.ZodOptional<z.ZodBoolean>;
44557
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44558
+ allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44559
+ stage: z.ZodOptional<z.ZodObject<{
44560
+ "pre-login": z.ZodOptional<z.ZodObject<{
44561
+ max_attempts: z.ZodOptional<z.ZodNumber>;
44562
+ rate: z.ZodOptional<z.ZodNumber>;
44563
+ }, "strip", z.ZodTypeAny, {
44564
+ max_attempts?: number | undefined;
44565
+ rate?: number | undefined;
44566
+ }, {
44567
+ max_attempts?: number | undefined;
44568
+ rate?: number | undefined;
44569
+ }>>;
44570
+ "pre-user-registration": z.ZodOptional<z.ZodObject<{
44571
+ max_attempts: z.ZodOptional<z.ZodNumber>;
44572
+ rate: z.ZodOptional<z.ZodNumber>;
44573
+ }, "strip", z.ZodTypeAny, {
44574
+ max_attempts?: number | undefined;
44575
+ rate?: number | undefined;
44576
+ }, {
44577
+ max_attempts?: number | undefined;
44578
+ rate?: number | undefined;
44579
+ }>>;
44580
+ }, "strip", z.ZodTypeAny, {
44581
+ "pre-user-registration"?: {
44582
+ max_attempts?: number | undefined;
44583
+ rate?: number | undefined;
44584
+ } | undefined;
44585
+ "pre-login"?: {
44586
+ max_attempts?: number | undefined;
44587
+ rate?: number | undefined;
44588
+ } | undefined;
44589
+ }, {
44590
+ "pre-user-registration"?: {
44591
+ max_attempts?: number | undefined;
44592
+ rate?: number | undefined;
44593
+ } | undefined;
44594
+ "pre-login"?: {
44595
+ max_attempts?: number | undefined;
44596
+ rate?: number | undefined;
44597
+ } | undefined;
44598
+ }>>;
44599
+ }, "strip", z.ZodTypeAny, {
44600
+ allowlist?: string[] | undefined;
44601
+ enabled?: boolean | undefined;
44602
+ shields?: string[] | undefined;
44603
+ stage?: {
44604
+ "pre-user-registration"?: {
44605
+ max_attempts?: number | undefined;
44606
+ rate?: number | undefined;
44607
+ } | undefined;
44608
+ "pre-login"?: {
44609
+ max_attempts?: number | undefined;
44610
+ rate?: number | undefined;
44611
+ } | undefined;
44612
+ } | undefined;
44613
+ }, {
44614
+ allowlist?: string[] | undefined;
44615
+ enabled?: boolean | undefined;
44616
+ shields?: string[] | undefined;
44617
+ stage?: {
44618
+ "pre-user-registration"?: {
44619
+ max_attempts?: number | undefined;
44620
+ rate?: number | undefined;
44621
+ } | undefined;
44622
+ "pre-login"?: {
44623
+ max_attempts?: number | undefined;
44624
+ rate?: number | undefined;
44625
+ } | undefined;
44626
+ } | undefined;
44627
+ }>>;
44628
+ }, "strip", z.ZodTypeAny, {
44629
+ brute_force_protection?: {
44630
+ allowlist?: string[] | undefined;
44631
+ enabled?: boolean | undefined;
44632
+ shields?: string[] | undefined;
44633
+ mode?: string | undefined;
44634
+ max_attempts?: number | undefined;
44635
+ } | undefined;
44636
+ breached_password_detection?: {
44637
+ method?: string | undefined;
44638
+ enabled?: boolean | undefined;
44639
+ shields?: string[] | undefined;
44640
+ admin_notification_frequency?: string[] | undefined;
44641
+ stage?: {
44642
+ "pre-user-registration"?: {
44643
+ shields?: string[] | undefined;
44644
+ } | undefined;
44645
+ "pre-change-password"?: {
44646
+ shields?: string[] | undefined;
44647
+ } | undefined;
44648
+ } | undefined;
44649
+ } | undefined;
44650
+ suspicious_ip_throttling?: {
44651
+ allowlist?: string[] | undefined;
44652
+ enabled?: boolean | undefined;
44653
+ shields?: string[] | undefined;
44654
+ stage?: {
44655
+ "pre-user-registration"?: {
44656
+ max_attempts?: number | undefined;
44657
+ rate?: number | undefined;
44658
+ } | undefined;
44659
+ "pre-login"?: {
44660
+ max_attempts?: number | undefined;
44661
+ rate?: number | undefined;
44662
+ } | undefined;
44663
+ } | undefined;
44664
+ } | undefined;
44665
+ }, {
44666
+ brute_force_protection?: {
44667
+ allowlist?: string[] | undefined;
44668
+ enabled?: boolean | undefined;
44669
+ shields?: string[] | undefined;
44670
+ mode?: string | undefined;
44671
+ max_attempts?: number | undefined;
44672
+ } | undefined;
44673
+ breached_password_detection?: {
44674
+ method?: string | undefined;
44675
+ enabled?: boolean | undefined;
44676
+ shields?: string[] | undefined;
44677
+ admin_notification_frequency?: string[] | undefined;
44678
+ stage?: {
44679
+ "pre-user-registration"?: {
44680
+ shields?: string[] | undefined;
44681
+ } | undefined;
44682
+ "pre-change-password"?: {
44683
+ shields?: string[] | undefined;
44684
+ } | undefined;
44685
+ } | undefined;
44686
+ } | undefined;
44687
+ suspicious_ip_throttling?: {
44688
+ allowlist?: string[] | undefined;
44689
+ enabled?: boolean | undefined;
44690
+ shields?: string[] | undefined;
44691
+ stage?: {
44692
+ "pre-user-registration"?: {
44693
+ max_attempts?: number | undefined;
44694
+ rate?: number | undefined;
44695
+ } | undefined;
44696
+ "pre-login"?: {
44697
+ max_attempts?: number | undefined;
44698
+ rate?: number | undefined;
44699
+ } | undefined;
44700
+ } | undefined;
44701
+ } | undefined;
44702
+ }>;
44703
+ export type AttackProtection = z.infer<typeof attackProtectionSchema>;
44089
44704
  export declare const passwordInsertSchema: z.ZodObject<{
44090
44705
  id: z.ZodOptional<z.ZodString>;
44091
44706
  user_id: z.ZodString;
@@ -44360,9 +44975,10 @@ export declare const tenantInsertSchema: z.ZodObject<{
44360
44975
  }>>;
44361
44976
  allowed_logout_urls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44362
44977
  default_redirection_uri: z.ZodOptional<z.ZodString>;
44978
+ default_client_id: z.ZodOptional<z.ZodString>;
44363
44979
  enabled_locales: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44364
44980
  default_directory: z.ZodOptional<z.ZodString>;
44365
- error_page: z.ZodOptional<z.ZodObject<{
44981
+ error_page: z.ZodOptional<z.ZodNullable<z.ZodObject<{
44366
44982
  html: z.ZodOptional<z.ZodString>;
44367
44983
  show_log_link: z.ZodOptional<z.ZodBoolean>;
44368
44984
  url: z.ZodOptional<z.ZodString>;
@@ -44374,7 +44990,7 @@ export declare const tenantInsertSchema: z.ZodObject<{
44374
44990
  url?: string | undefined;
44375
44991
  html?: string | undefined;
44376
44992
  show_log_link?: boolean | undefined;
44377
- }>>;
44993
+ }>>>;
44378
44994
  flags: z.ZodOptional<z.ZodObject<{
44379
44995
  allow_changing_enable_sso: z.ZodOptional<z.ZodBoolean>;
44380
44996
  allow_legacy_delegation_grant_types: z.ZodOptional<z.ZodBoolean>;
@@ -44523,7 +45139,7 @@ export declare const tenantInsertSchema: z.ZodObject<{
44523
45139
  charset?: "base20" | "digits" | undefined;
44524
45140
  mask?: string | undefined;
44525
45141
  }>>;
44526
- default_token_quota: z.ZodOptional<z.ZodObject<{
45142
+ default_token_quota: z.ZodOptional<z.ZodNullable<z.ZodObject<{
44527
45143
  clients: z.ZodOptional<z.ZodObject<{
44528
45144
  client_credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
44529
45145
  }, "strip", z.ZodTypeAny, {
@@ -44552,7 +45168,7 @@ export declare const tenantInsertSchema: z.ZodObject<{
44552
45168
  organizations?: {
44553
45169
  client_credentials?: Record<string, any> | undefined;
44554
45170
  } | undefined;
44555
- }>>;
45171
+ }>>>;
44556
45172
  default_audience: z.ZodOptional<z.ZodString>;
44557
45173
  default_organization: z.ZodOptional<z.ZodString>;
44558
45174
  sessions: z.ZodOptional<z.ZodObject<{
@@ -44572,15 +45188,245 @@ export declare const tenantInsertSchema: z.ZodObject<{
44572
45188
  allow_organization_name_in_authentication_api: z.ZodOptional<z.ZodBoolean>;
44573
45189
  customize_mfa_in_postlogin_action: z.ZodOptional<z.ZodBoolean>;
44574
45190
  acr_values_supported: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44575
- mtls: z.ZodOptional<z.ZodObject<{
45191
+ mtls: z.ZodOptional<z.ZodNullable<z.ZodObject<{
44576
45192
  enable_endpoint_aliases: z.ZodOptional<z.ZodBoolean>;
44577
45193
  }, "strip", z.ZodTypeAny, {
44578
45194
  enable_endpoint_aliases?: boolean | undefined;
44579
45195
  }, {
44580
45196
  enable_endpoint_aliases?: boolean | undefined;
44581
- }>>;
45197
+ }>>>;
44582
45198
  pushed_authorization_requests_supported: z.ZodOptional<z.ZodBoolean>;
44583
45199
  authorization_response_iss_parameter_supported: z.ZodOptional<z.ZodBoolean>;
45200
+ attack_protection: z.ZodOptional<z.ZodObject<{
45201
+ breached_password_detection: z.ZodOptional<z.ZodObject<{
45202
+ enabled: z.ZodOptional<z.ZodBoolean>;
45203
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
45204
+ admin_notification_frequency: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
45205
+ method: z.ZodOptional<z.ZodString>;
45206
+ stage: z.ZodOptional<z.ZodObject<{
45207
+ "pre-user-registration": z.ZodOptional<z.ZodObject<{
45208
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
45209
+ }, "strip", z.ZodTypeAny, {
45210
+ shields?: string[] | undefined;
45211
+ }, {
45212
+ shields?: string[] | undefined;
45213
+ }>>;
45214
+ "pre-change-password": z.ZodOptional<z.ZodObject<{
45215
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
45216
+ }, "strip", z.ZodTypeAny, {
45217
+ shields?: string[] | undefined;
45218
+ }, {
45219
+ shields?: string[] | undefined;
45220
+ }>>;
45221
+ }, "strip", z.ZodTypeAny, {
45222
+ "pre-user-registration"?: {
45223
+ shields?: string[] | undefined;
45224
+ } | undefined;
45225
+ "pre-change-password"?: {
45226
+ shields?: string[] | undefined;
45227
+ } | undefined;
45228
+ }, {
45229
+ "pre-user-registration"?: {
45230
+ shields?: string[] | undefined;
45231
+ } | undefined;
45232
+ "pre-change-password"?: {
45233
+ shields?: string[] | undefined;
45234
+ } | undefined;
45235
+ }>>;
45236
+ }, "strip", z.ZodTypeAny, {
45237
+ method?: string | undefined;
45238
+ enabled?: boolean | undefined;
45239
+ shields?: string[] | undefined;
45240
+ admin_notification_frequency?: string[] | undefined;
45241
+ stage?: {
45242
+ "pre-user-registration"?: {
45243
+ shields?: string[] | undefined;
45244
+ } | undefined;
45245
+ "pre-change-password"?: {
45246
+ shields?: string[] | undefined;
45247
+ } | undefined;
45248
+ } | undefined;
45249
+ }, {
45250
+ method?: string | undefined;
45251
+ enabled?: boolean | undefined;
45252
+ shields?: string[] | undefined;
45253
+ admin_notification_frequency?: string[] | undefined;
45254
+ stage?: {
45255
+ "pre-user-registration"?: {
45256
+ shields?: string[] | undefined;
45257
+ } | undefined;
45258
+ "pre-change-password"?: {
45259
+ shields?: string[] | undefined;
45260
+ } | undefined;
45261
+ } | undefined;
45262
+ }>>;
45263
+ brute_force_protection: z.ZodOptional<z.ZodObject<{
45264
+ enabled: z.ZodOptional<z.ZodBoolean>;
45265
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
45266
+ allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
45267
+ mode: z.ZodOptional<z.ZodString>;
45268
+ max_attempts: z.ZodOptional<z.ZodNumber>;
45269
+ }, "strip", z.ZodTypeAny, {
45270
+ allowlist?: string[] | undefined;
45271
+ enabled?: boolean | undefined;
45272
+ shields?: string[] | undefined;
45273
+ mode?: string | undefined;
45274
+ max_attempts?: number | undefined;
45275
+ }, {
45276
+ allowlist?: string[] | undefined;
45277
+ enabled?: boolean | undefined;
45278
+ shields?: string[] | undefined;
45279
+ mode?: string | undefined;
45280
+ max_attempts?: number | undefined;
45281
+ }>>;
45282
+ suspicious_ip_throttling: z.ZodOptional<z.ZodObject<{
45283
+ enabled: z.ZodOptional<z.ZodBoolean>;
45284
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
45285
+ allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
45286
+ stage: z.ZodOptional<z.ZodObject<{
45287
+ "pre-login": z.ZodOptional<z.ZodObject<{
45288
+ max_attempts: z.ZodOptional<z.ZodNumber>;
45289
+ rate: z.ZodOptional<z.ZodNumber>;
45290
+ }, "strip", z.ZodTypeAny, {
45291
+ max_attempts?: number | undefined;
45292
+ rate?: number | undefined;
45293
+ }, {
45294
+ max_attempts?: number | undefined;
45295
+ rate?: number | undefined;
45296
+ }>>;
45297
+ "pre-user-registration": z.ZodOptional<z.ZodObject<{
45298
+ max_attempts: z.ZodOptional<z.ZodNumber>;
45299
+ rate: z.ZodOptional<z.ZodNumber>;
45300
+ }, "strip", z.ZodTypeAny, {
45301
+ max_attempts?: number | undefined;
45302
+ rate?: number | undefined;
45303
+ }, {
45304
+ max_attempts?: number | undefined;
45305
+ rate?: number | undefined;
45306
+ }>>;
45307
+ }, "strip", z.ZodTypeAny, {
45308
+ "pre-user-registration"?: {
45309
+ max_attempts?: number | undefined;
45310
+ rate?: number | undefined;
45311
+ } | undefined;
45312
+ "pre-login"?: {
45313
+ max_attempts?: number | undefined;
45314
+ rate?: number | undefined;
45315
+ } | undefined;
45316
+ }, {
45317
+ "pre-user-registration"?: {
45318
+ max_attempts?: number | undefined;
45319
+ rate?: number | undefined;
45320
+ } | undefined;
45321
+ "pre-login"?: {
45322
+ max_attempts?: number | undefined;
45323
+ rate?: number | undefined;
45324
+ } | undefined;
45325
+ }>>;
45326
+ }, "strip", z.ZodTypeAny, {
45327
+ allowlist?: string[] | undefined;
45328
+ enabled?: boolean | undefined;
45329
+ shields?: string[] | undefined;
45330
+ stage?: {
45331
+ "pre-user-registration"?: {
45332
+ max_attempts?: number | undefined;
45333
+ rate?: number | undefined;
45334
+ } | undefined;
45335
+ "pre-login"?: {
45336
+ max_attempts?: number | undefined;
45337
+ rate?: number | undefined;
45338
+ } | undefined;
45339
+ } | undefined;
45340
+ }, {
45341
+ allowlist?: string[] | undefined;
45342
+ enabled?: boolean | undefined;
45343
+ shields?: string[] | undefined;
45344
+ stage?: {
45345
+ "pre-user-registration"?: {
45346
+ max_attempts?: number | undefined;
45347
+ rate?: number | undefined;
45348
+ } | undefined;
45349
+ "pre-login"?: {
45350
+ max_attempts?: number | undefined;
45351
+ rate?: number | undefined;
45352
+ } | undefined;
45353
+ } | undefined;
45354
+ }>>;
45355
+ }, "strip", z.ZodTypeAny, {
45356
+ brute_force_protection?: {
45357
+ allowlist?: string[] | undefined;
45358
+ enabled?: boolean | undefined;
45359
+ shields?: string[] | undefined;
45360
+ mode?: string | undefined;
45361
+ max_attempts?: number | undefined;
45362
+ } | undefined;
45363
+ breached_password_detection?: {
45364
+ method?: string | undefined;
45365
+ enabled?: boolean | undefined;
45366
+ shields?: string[] | undefined;
45367
+ admin_notification_frequency?: string[] | undefined;
45368
+ stage?: {
45369
+ "pre-user-registration"?: {
45370
+ shields?: string[] | undefined;
45371
+ } | undefined;
45372
+ "pre-change-password"?: {
45373
+ shields?: string[] | undefined;
45374
+ } | undefined;
45375
+ } | undefined;
45376
+ } | undefined;
45377
+ suspicious_ip_throttling?: {
45378
+ allowlist?: string[] | undefined;
45379
+ enabled?: boolean | undefined;
45380
+ shields?: string[] | undefined;
45381
+ stage?: {
45382
+ "pre-user-registration"?: {
45383
+ max_attempts?: number | undefined;
45384
+ rate?: number | undefined;
45385
+ } | undefined;
45386
+ "pre-login"?: {
45387
+ max_attempts?: number | undefined;
45388
+ rate?: number | undefined;
45389
+ } | undefined;
45390
+ } | undefined;
45391
+ } | undefined;
45392
+ }, {
45393
+ brute_force_protection?: {
45394
+ allowlist?: string[] | undefined;
45395
+ enabled?: boolean | undefined;
45396
+ shields?: string[] | undefined;
45397
+ mode?: string | undefined;
45398
+ max_attempts?: number | undefined;
45399
+ } | undefined;
45400
+ breached_password_detection?: {
45401
+ method?: string | undefined;
45402
+ enabled?: boolean | undefined;
45403
+ shields?: string[] | undefined;
45404
+ admin_notification_frequency?: string[] | undefined;
45405
+ stage?: {
45406
+ "pre-user-registration"?: {
45407
+ shields?: string[] | undefined;
45408
+ } | undefined;
45409
+ "pre-change-password"?: {
45410
+ shields?: string[] | undefined;
45411
+ } | undefined;
45412
+ } | undefined;
45413
+ } | undefined;
45414
+ suspicious_ip_throttling?: {
45415
+ allowlist?: string[] | undefined;
45416
+ enabled?: boolean | undefined;
45417
+ shields?: string[] | undefined;
45418
+ stage?: {
45419
+ "pre-user-registration"?: {
45420
+ max_attempts?: number | undefined;
45421
+ rate?: number | undefined;
45422
+ } | undefined;
45423
+ "pre-login"?: {
45424
+ max_attempts?: number | undefined;
45425
+ rate?: number | undefined;
45426
+ } | undefined;
45427
+ } | undefined;
45428
+ } | undefined;
45429
+ }>>;
44584
45430
  mfa: z.ZodOptional<z.ZodObject<{
44585
45431
  policy: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
44586
45432
  "never",
@@ -44720,13 +45566,14 @@ export declare const tenantInsertSchema: z.ZodObject<{
44720
45566
  mode?: "persistent" | "non-persistent" | undefined;
44721
45567
  } | undefined;
44722
45568
  default_redirection_uri?: string | undefined;
45569
+ default_client_id?: string | undefined;
44723
45570
  enabled_locales?: string[] | undefined;
44724
45571
  default_directory?: string | undefined;
44725
45572
  error_page?: {
44726
45573
  url?: string | undefined;
44727
45574
  html?: string | undefined;
44728
45575
  show_log_link?: boolean | undefined;
44729
- } | undefined;
45576
+ } | null | undefined;
44730
45577
  flags?: {
44731
45578
  allow_changing_enable_sso?: boolean | undefined;
44732
45579
  allow_legacy_delegation_grant_types?: boolean | undefined;
@@ -44787,7 +45634,7 @@ export declare const tenantInsertSchema: z.ZodObject<{
44787
45634
  organizations?: {
44788
45635
  client_credentials?: Record<string, any> | undefined;
44789
45636
  } | undefined;
44790
- } | undefined;
45637
+ } | null | undefined;
44791
45638
  default_audience?: string | undefined;
44792
45639
  sessions?: {
44793
45640
  oidc_logout_prompt_enabled?: boolean | undefined;
@@ -44797,9 +45644,47 @@ export declare const tenantInsertSchema: z.ZodObject<{
44797
45644
  acr_values_supported?: string[] | undefined;
44798
45645
  mtls?: {
44799
45646
  enable_endpoint_aliases?: boolean | undefined;
44800
- } | undefined;
45647
+ } | null | undefined;
44801
45648
  pushed_authorization_requests_supported?: boolean | undefined;
44802
45649
  authorization_response_iss_parameter_supported?: boolean | undefined;
45650
+ attack_protection?: {
45651
+ brute_force_protection?: {
45652
+ allowlist?: string[] | undefined;
45653
+ enabled?: boolean | undefined;
45654
+ shields?: string[] | undefined;
45655
+ mode?: string | undefined;
45656
+ max_attempts?: number | undefined;
45657
+ } | undefined;
45658
+ breached_password_detection?: {
45659
+ method?: string | undefined;
45660
+ enabled?: boolean | undefined;
45661
+ shields?: string[] | undefined;
45662
+ admin_notification_frequency?: string[] | undefined;
45663
+ stage?: {
45664
+ "pre-user-registration"?: {
45665
+ shields?: string[] | undefined;
45666
+ } | undefined;
45667
+ "pre-change-password"?: {
45668
+ shields?: string[] | undefined;
45669
+ } | undefined;
45670
+ } | undefined;
45671
+ } | undefined;
45672
+ suspicious_ip_throttling?: {
45673
+ allowlist?: string[] | undefined;
45674
+ enabled?: boolean | undefined;
45675
+ shields?: string[] | undefined;
45676
+ stage?: {
45677
+ "pre-user-registration"?: {
45678
+ max_attempts?: number | undefined;
45679
+ rate?: number | undefined;
45680
+ } | undefined;
45681
+ "pre-login"?: {
45682
+ max_attempts?: number | undefined;
45683
+ rate?: number | undefined;
45684
+ } | undefined;
45685
+ } | undefined;
45686
+ } | undefined;
45687
+ } | undefined;
44803
45688
  mfa?: {
44804
45689
  policy?: "never" | "always" | undefined;
44805
45690
  factors?: {
@@ -44847,13 +45732,14 @@ export declare const tenantInsertSchema: z.ZodObject<{
44847
45732
  mode?: "persistent" | "non-persistent" | undefined;
44848
45733
  } | undefined;
44849
45734
  default_redirection_uri?: string | undefined;
45735
+ default_client_id?: string | undefined;
44850
45736
  enabled_locales?: string[] | undefined;
44851
45737
  default_directory?: string | undefined;
44852
45738
  error_page?: {
44853
45739
  url?: string | undefined;
44854
45740
  html?: string | undefined;
44855
45741
  show_log_link?: boolean | undefined;
44856
- } | undefined;
45742
+ } | null | undefined;
44857
45743
  flags?: {
44858
45744
  allow_changing_enable_sso?: boolean | undefined;
44859
45745
  allow_legacy_delegation_grant_types?: boolean | undefined;
@@ -44914,7 +45800,7 @@ export declare const tenantInsertSchema: z.ZodObject<{
44914
45800
  organizations?: {
44915
45801
  client_credentials?: Record<string, any> | undefined;
44916
45802
  } | undefined;
44917
- } | undefined;
45803
+ } | null | undefined;
44918
45804
  default_audience?: string | undefined;
44919
45805
  sessions?: {
44920
45806
  oidc_logout_prompt_enabled?: boolean | undefined;
@@ -44924,9 +45810,47 @@ export declare const tenantInsertSchema: z.ZodObject<{
44924
45810
  acr_values_supported?: string[] | undefined;
44925
45811
  mtls?: {
44926
45812
  enable_endpoint_aliases?: boolean | undefined;
44927
- } | undefined;
45813
+ } | null | undefined;
44928
45814
  pushed_authorization_requests_supported?: boolean | undefined;
44929
45815
  authorization_response_iss_parameter_supported?: boolean | undefined;
45816
+ attack_protection?: {
45817
+ brute_force_protection?: {
45818
+ allowlist?: string[] | undefined;
45819
+ enabled?: boolean | undefined;
45820
+ shields?: string[] | undefined;
45821
+ mode?: string | undefined;
45822
+ max_attempts?: number | undefined;
45823
+ } | undefined;
45824
+ breached_password_detection?: {
45825
+ method?: string | undefined;
45826
+ enabled?: boolean | undefined;
45827
+ shields?: string[] | undefined;
45828
+ admin_notification_frequency?: string[] | undefined;
45829
+ stage?: {
45830
+ "pre-user-registration"?: {
45831
+ shields?: string[] | undefined;
45832
+ } | undefined;
45833
+ "pre-change-password"?: {
45834
+ shields?: string[] | undefined;
45835
+ } | undefined;
45836
+ } | undefined;
45837
+ } | undefined;
45838
+ suspicious_ip_throttling?: {
45839
+ allowlist?: string[] | undefined;
45840
+ enabled?: boolean | undefined;
45841
+ shields?: string[] | undefined;
45842
+ stage?: {
45843
+ "pre-user-registration"?: {
45844
+ max_attempts?: number | undefined;
45845
+ rate?: number | undefined;
45846
+ } | undefined;
45847
+ "pre-login"?: {
45848
+ max_attempts?: number | undefined;
45849
+ rate?: number | undefined;
45850
+ } | undefined;
45851
+ } | undefined;
45852
+ } | undefined;
45853
+ } | undefined;
44930
45854
  mfa?: {
44931
45855
  policy?: "never" | "always" | undefined;
44932
45856
  factors?: {
@@ -44978,9 +45902,10 @@ export declare const tenantSchema: z.ZodObject<{
44978
45902
  }>>;
44979
45903
  allowed_logout_urls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44980
45904
  default_redirection_uri: z.ZodOptional<z.ZodString>;
45905
+ default_client_id: z.ZodOptional<z.ZodString>;
44981
45906
  enabled_locales: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44982
45907
  default_directory: z.ZodOptional<z.ZodString>;
44983
- error_page: z.ZodOptional<z.ZodObject<{
45908
+ error_page: z.ZodOptional<z.ZodNullable<z.ZodObject<{
44984
45909
  html: z.ZodOptional<z.ZodString>;
44985
45910
  show_log_link: z.ZodOptional<z.ZodBoolean>;
44986
45911
  url: z.ZodOptional<z.ZodString>;
@@ -44992,7 +45917,7 @@ export declare const tenantSchema: z.ZodObject<{
44992
45917
  url?: string | undefined;
44993
45918
  html?: string | undefined;
44994
45919
  show_log_link?: boolean | undefined;
44995
- }>>;
45920
+ }>>>;
44996
45921
  flags: z.ZodOptional<z.ZodObject<{
44997
45922
  allow_changing_enable_sso: z.ZodOptional<z.ZodBoolean>;
44998
45923
  allow_legacy_delegation_grant_types: z.ZodOptional<z.ZodBoolean>;
@@ -45141,7 +46066,7 @@ export declare const tenantSchema: z.ZodObject<{
45141
46066
  charset?: "base20" | "digits" | undefined;
45142
46067
  mask?: string | undefined;
45143
46068
  }>>;
45144
- default_token_quota: z.ZodOptional<z.ZodObject<{
46069
+ default_token_quota: z.ZodOptional<z.ZodNullable<z.ZodObject<{
45145
46070
  clients: z.ZodOptional<z.ZodObject<{
45146
46071
  client_credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
45147
46072
  }, "strip", z.ZodTypeAny, {
@@ -45170,7 +46095,7 @@ export declare const tenantSchema: z.ZodObject<{
45170
46095
  organizations?: {
45171
46096
  client_credentials?: Record<string, any> | undefined;
45172
46097
  } | undefined;
45173
- }>>;
46098
+ }>>>;
45174
46099
  default_audience: z.ZodOptional<z.ZodString>;
45175
46100
  default_organization: z.ZodOptional<z.ZodString>;
45176
46101
  sessions: z.ZodOptional<z.ZodObject<{
@@ -45190,15 +46115,245 @@ export declare const tenantSchema: z.ZodObject<{
45190
46115
  allow_organization_name_in_authentication_api: z.ZodOptional<z.ZodBoolean>;
45191
46116
  customize_mfa_in_postlogin_action: z.ZodOptional<z.ZodBoolean>;
45192
46117
  acr_values_supported: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
45193
- mtls: z.ZodOptional<z.ZodObject<{
46118
+ mtls: z.ZodOptional<z.ZodNullable<z.ZodObject<{
45194
46119
  enable_endpoint_aliases: z.ZodOptional<z.ZodBoolean>;
45195
46120
  }, "strip", z.ZodTypeAny, {
45196
46121
  enable_endpoint_aliases?: boolean | undefined;
45197
46122
  }, {
45198
46123
  enable_endpoint_aliases?: boolean | undefined;
45199
- }>>;
46124
+ }>>>;
45200
46125
  pushed_authorization_requests_supported: z.ZodOptional<z.ZodBoolean>;
45201
46126
  authorization_response_iss_parameter_supported: z.ZodOptional<z.ZodBoolean>;
46127
+ attack_protection: z.ZodOptional<z.ZodObject<{
46128
+ breached_password_detection: z.ZodOptional<z.ZodObject<{
46129
+ enabled: z.ZodOptional<z.ZodBoolean>;
46130
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
46131
+ admin_notification_frequency: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
46132
+ method: z.ZodOptional<z.ZodString>;
46133
+ stage: z.ZodOptional<z.ZodObject<{
46134
+ "pre-user-registration": z.ZodOptional<z.ZodObject<{
46135
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
46136
+ }, "strip", z.ZodTypeAny, {
46137
+ shields?: string[] | undefined;
46138
+ }, {
46139
+ shields?: string[] | undefined;
46140
+ }>>;
46141
+ "pre-change-password": z.ZodOptional<z.ZodObject<{
46142
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
46143
+ }, "strip", z.ZodTypeAny, {
46144
+ shields?: string[] | undefined;
46145
+ }, {
46146
+ shields?: string[] | undefined;
46147
+ }>>;
46148
+ }, "strip", z.ZodTypeAny, {
46149
+ "pre-user-registration"?: {
46150
+ shields?: string[] | undefined;
46151
+ } | undefined;
46152
+ "pre-change-password"?: {
46153
+ shields?: string[] | undefined;
46154
+ } | undefined;
46155
+ }, {
46156
+ "pre-user-registration"?: {
46157
+ shields?: string[] | undefined;
46158
+ } | undefined;
46159
+ "pre-change-password"?: {
46160
+ shields?: string[] | undefined;
46161
+ } | undefined;
46162
+ }>>;
46163
+ }, "strip", z.ZodTypeAny, {
46164
+ method?: string | undefined;
46165
+ enabled?: boolean | undefined;
46166
+ shields?: string[] | undefined;
46167
+ admin_notification_frequency?: string[] | undefined;
46168
+ stage?: {
46169
+ "pre-user-registration"?: {
46170
+ shields?: string[] | undefined;
46171
+ } | undefined;
46172
+ "pre-change-password"?: {
46173
+ shields?: string[] | undefined;
46174
+ } | undefined;
46175
+ } | undefined;
46176
+ }, {
46177
+ method?: string | undefined;
46178
+ enabled?: boolean | undefined;
46179
+ shields?: string[] | undefined;
46180
+ admin_notification_frequency?: string[] | undefined;
46181
+ stage?: {
46182
+ "pre-user-registration"?: {
46183
+ shields?: string[] | undefined;
46184
+ } | undefined;
46185
+ "pre-change-password"?: {
46186
+ shields?: string[] | undefined;
46187
+ } | undefined;
46188
+ } | undefined;
46189
+ }>>;
46190
+ brute_force_protection: z.ZodOptional<z.ZodObject<{
46191
+ enabled: z.ZodOptional<z.ZodBoolean>;
46192
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
46193
+ allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
46194
+ mode: z.ZodOptional<z.ZodString>;
46195
+ max_attempts: z.ZodOptional<z.ZodNumber>;
46196
+ }, "strip", z.ZodTypeAny, {
46197
+ allowlist?: string[] | undefined;
46198
+ enabled?: boolean | undefined;
46199
+ shields?: string[] | undefined;
46200
+ mode?: string | undefined;
46201
+ max_attempts?: number | undefined;
46202
+ }, {
46203
+ allowlist?: string[] | undefined;
46204
+ enabled?: boolean | undefined;
46205
+ shields?: string[] | undefined;
46206
+ mode?: string | undefined;
46207
+ max_attempts?: number | undefined;
46208
+ }>>;
46209
+ suspicious_ip_throttling: z.ZodOptional<z.ZodObject<{
46210
+ enabled: z.ZodOptional<z.ZodBoolean>;
46211
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
46212
+ allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
46213
+ stage: z.ZodOptional<z.ZodObject<{
46214
+ "pre-login": z.ZodOptional<z.ZodObject<{
46215
+ max_attempts: z.ZodOptional<z.ZodNumber>;
46216
+ rate: z.ZodOptional<z.ZodNumber>;
46217
+ }, "strip", z.ZodTypeAny, {
46218
+ max_attempts?: number | undefined;
46219
+ rate?: number | undefined;
46220
+ }, {
46221
+ max_attempts?: number | undefined;
46222
+ rate?: number | undefined;
46223
+ }>>;
46224
+ "pre-user-registration": z.ZodOptional<z.ZodObject<{
46225
+ max_attempts: z.ZodOptional<z.ZodNumber>;
46226
+ rate: z.ZodOptional<z.ZodNumber>;
46227
+ }, "strip", z.ZodTypeAny, {
46228
+ max_attempts?: number | undefined;
46229
+ rate?: number | undefined;
46230
+ }, {
46231
+ max_attempts?: number | undefined;
46232
+ rate?: number | undefined;
46233
+ }>>;
46234
+ }, "strip", z.ZodTypeAny, {
46235
+ "pre-user-registration"?: {
46236
+ max_attempts?: number | undefined;
46237
+ rate?: number | undefined;
46238
+ } | undefined;
46239
+ "pre-login"?: {
46240
+ max_attempts?: number | undefined;
46241
+ rate?: number | undefined;
46242
+ } | undefined;
46243
+ }, {
46244
+ "pre-user-registration"?: {
46245
+ max_attempts?: number | undefined;
46246
+ rate?: number | undefined;
46247
+ } | undefined;
46248
+ "pre-login"?: {
46249
+ max_attempts?: number | undefined;
46250
+ rate?: number | undefined;
46251
+ } | undefined;
46252
+ }>>;
46253
+ }, "strip", z.ZodTypeAny, {
46254
+ allowlist?: string[] | undefined;
46255
+ enabled?: boolean | undefined;
46256
+ shields?: string[] | undefined;
46257
+ stage?: {
46258
+ "pre-user-registration"?: {
46259
+ max_attempts?: number | undefined;
46260
+ rate?: number | undefined;
46261
+ } | undefined;
46262
+ "pre-login"?: {
46263
+ max_attempts?: number | undefined;
46264
+ rate?: number | undefined;
46265
+ } | undefined;
46266
+ } | undefined;
46267
+ }, {
46268
+ allowlist?: string[] | undefined;
46269
+ enabled?: boolean | undefined;
46270
+ shields?: string[] | undefined;
46271
+ stage?: {
46272
+ "pre-user-registration"?: {
46273
+ max_attempts?: number | undefined;
46274
+ rate?: number | undefined;
46275
+ } | undefined;
46276
+ "pre-login"?: {
46277
+ max_attempts?: number | undefined;
46278
+ rate?: number | undefined;
46279
+ } | undefined;
46280
+ } | undefined;
46281
+ }>>;
46282
+ }, "strip", z.ZodTypeAny, {
46283
+ brute_force_protection?: {
46284
+ allowlist?: string[] | undefined;
46285
+ enabled?: boolean | undefined;
46286
+ shields?: string[] | undefined;
46287
+ mode?: string | undefined;
46288
+ max_attempts?: number | undefined;
46289
+ } | undefined;
46290
+ breached_password_detection?: {
46291
+ method?: string | undefined;
46292
+ enabled?: boolean | undefined;
46293
+ shields?: string[] | undefined;
46294
+ admin_notification_frequency?: string[] | undefined;
46295
+ stage?: {
46296
+ "pre-user-registration"?: {
46297
+ shields?: string[] | undefined;
46298
+ } | undefined;
46299
+ "pre-change-password"?: {
46300
+ shields?: string[] | undefined;
46301
+ } | undefined;
46302
+ } | undefined;
46303
+ } | undefined;
46304
+ suspicious_ip_throttling?: {
46305
+ allowlist?: string[] | undefined;
46306
+ enabled?: boolean | undefined;
46307
+ shields?: string[] | undefined;
46308
+ stage?: {
46309
+ "pre-user-registration"?: {
46310
+ max_attempts?: number | undefined;
46311
+ rate?: number | undefined;
46312
+ } | undefined;
46313
+ "pre-login"?: {
46314
+ max_attempts?: number | undefined;
46315
+ rate?: number | undefined;
46316
+ } | undefined;
46317
+ } | undefined;
46318
+ } | undefined;
46319
+ }, {
46320
+ brute_force_protection?: {
46321
+ allowlist?: string[] | undefined;
46322
+ enabled?: boolean | undefined;
46323
+ shields?: string[] | undefined;
46324
+ mode?: string | undefined;
46325
+ max_attempts?: number | undefined;
46326
+ } | undefined;
46327
+ breached_password_detection?: {
46328
+ method?: string | undefined;
46329
+ enabled?: boolean | undefined;
46330
+ shields?: string[] | undefined;
46331
+ admin_notification_frequency?: string[] | undefined;
46332
+ stage?: {
46333
+ "pre-user-registration"?: {
46334
+ shields?: string[] | undefined;
46335
+ } | undefined;
46336
+ "pre-change-password"?: {
46337
+ shields?: string[] | undefined;
46338
+ } | undefined;
46339
+ } | undefined;
46340
+ } | undefined;
46341
+ suspicious_ip_throttling?: {
46342
+ allowlist?: string[] | undefined;
46343
+ enabled?: boolean | undefined;
46344
+ shields?: string[] | undefined;
46345
+ stage?: {
46346
+ "pre-user-registration"?: {
46347
+ max_attempts?: number | undefined;
46348
+ rate?: number | undefined;
46349
+ } | undefined;
46350
+ "pre-login"?: {
46351
+ max_attempts?: number | undefined;
46352
+ rate?: number | undefined;
46353
+ } | undefined;
46354
+ } | undefined;
46355
+ } | undefined;
46356
+ }>>;
45202
46357
  mfa: z.ZodOptional<z.ZodObject<{
45203
46358
  policy: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
45204
46359
  "never",
@@ -45342,13 +46497,14 @@ export declare const tenantSchema: z.ZodObject<{
45342
46497
  mode?: "persistent" | "non-persistent" | undefined;
45343
46498
  } | undefined;
45344
46499
  default_redirection_uri?: string | undefined;
46500
+ default_client_id?: string | undefined;
45345
46501
  enabled_locales?: string[] | undefined;
45346
46502
  default_directory?: string | undefined;
45347
46503
  error_page?: {
45348
46504
  url?: string | undefined;
45349
46505
  html?: string | undefined;
45350
46506
  show_log_link?: boolean | undefined;
45351
- } | undefined;
46507
+ } | null | undefined;
45352
46508
  flags?: {
45353
46509
  allow_changing_enable_sso?: boolean | undefined;
45354
46510
  allow_legacy_delegation_grant_types?: boolean | undefined;
@@ -45409,7 +46565,7 @@ export declare const tenantSchema: z.ZodObject<{
45409
46565
  organizations?: {
45410
46566
  client_credentials?: Record<string, any> | undefined;
45411
46567
  } | undefined;
45412
- } | undefined;
46568
+ } | null | undefined;
45413
46569
  default_audience?: string | undefined;
45414
46570
  sessions?: {
45415
46571
  oidc_logout_prompt_enabled?: boolean | undefined;
@@ -45419,9 +46575,47 @@ export declare const tenantSchema: z.ZodObject<{
45419
46575
  acr_values_supported?: string[] | undefined;
45420
46576
  mtls?: {
45421
46577
  enable_endpoint_aliases?: boolean | undefined;
45422
- } | undefined;
46578
+ } | null | undefined;
45423
46579
  pushed_authorization_requests_supported?: boolean | undefined;
45424
46580
  authorization_response_iss_parameter_supported?: boolean | undefined;
46581
+ attack_protection?: {
46582
+ brute_force_protection?: {
46583
+ allowlist?: string[] | undefined;
46584
+ enabled?: boolean | undefined;
46585
+ shields?: string[] | undefined;
46586
+ mode?: string | undefined;
46587
+ max_attempts?: number | undefined;
46588
+ } | undefined;
46589
+ breached_password_detection?: {
46590
+ method?: string | undefined;
46591
+ enabled?: boolean | undefined;
46592
+ shields?: string[] | undefined;
46593
+ admin_notification_frequency?: string[] | undefined;
46594
+ stage?: {
46595
+ "pre-user-registration"?: {
46596
+ shields?: string[] | undefined;
46597
+ } | undefined;
46598
+ "pre-change-password"?: {
46599
+ shields?: string[] | undefined;
46600
+ } | undefined;
46601
+ } | undefined;
46602
+ } | undefined;
46603
+ suspicious_ip_throttling?: {
46604
+ allowlist?: string[] | undefined;
46605
+ enabled?: boolean | undefined;
46606
+ shields?: string[] | undefined;
46607
+ stage?: {
46608
+ "pre-user-registration"?: {
46609
+ max_attempts?: number | undefined;
46610
+ rate?: number | undefined;
46611
+ } | undefined;
46612
+ "pre-login"?: {
46613
+ max_attempts?: number | undefined;
46614
+ rate?: number | undefined;
46615
+ } | undefined;
46616
+ } | undefined;
46617
+ } | undefined;
46618
+ } | undefined;
45425
46619
  mfa?: {
45426
46620
  policy?: "never" | "always" | undefined;
45427
46621
  factors?: {
@@ -45471,13 +46665,14 @@ export declare const tenantSchema: z.ZodObject<{
45471
46665
  mode?: "persistent" | "non-persistent" | undefined;
45472
46666
  } | undefined;
45473
46667
  default_redirection_uri?: string | undefined;
46668
+ default_client_id?: string | undefined;
45474
46669
  enabled_locales?: string[] | undefined;
45475
46670
  default_directory?: string | undefined;
45476
46671
  error_page?: {
45477
46672
  url?: string | undefined;
45478
46673
  html?: string | undefined;
45479
46674
  show_log_link?: boolean | undefined;
45480
- } | undefined;
46675
+ } | null | undefined;
45481
46676
  flags?: {
45482
46677
  allow_changing_enable_sso?: boolean | undefined;
45483
46678
  allow_legacy_delegation_grant_types?: boolean | undefined;
@@ -45538,7 +46733,7 @@ export declare const tenantSchema: z.ZodObject<{
45538
46733
  organizations?: {
45539
46734
  client_credentials?: Record<string, any> | undefined;
45540
46735
  } | undefined;
45541
- } | undefined;
46736
+ } | null | undefined;
45542
46737
  default_audience?: string | undefined;
45543
46738
  sessions?: {
45544
46739
  oidc_logout_prompt_enabled?: boolean | undefined;
@@ -45548,9 +46743,47 @@ export declare const tenantSchema: z.ZodObject<{
45548
46743
  acr_values_supported?: string[] | undefined;
45549
46744
  mtls?: {
45550
46745
  enable_endpoint_aliases?: boolean | undefined;
45551
- } | undefined;
46746
+ } | null | undefined;
45552
46747
  pushed_authorization_requests_supported?: boolean | undefined;
45553
46748
  authorization_response_iss_parameter_supported?: boolean | undefined;
46749
+ attack_protection?: {
46750
+ brute_force_protection?: {
46751
+ allowlist?: string[] | undefined;
46752
+ enabled?: boolean | undefined;
46753
+ shields?: string[] | undefined;
46754
+ mode?: string | undefined;
46755
+ max_attempts?: number | undefined;
46756
+ } | undefined;
46757
+ breached_password_detection?: {
46758
+ method?: string | undefined;
46759
+ enabled?: boolean | undefined;
46760
+ shields?: string[] | undefined;
46761
+ admin_notification_frequency?: string[] | undefined;
46762
+ stage?: {
46763
+ "pre-user-registration"?: {
46764
+ shields?: string[] | undefined;
46765
+ } | undefined;
46766
+ "pre-change-password"?: {
46767
+ shields?: string[] | undefined;
46768
+ } | undefined;
46769
+ } | undefined;
46770
+ } | undefined;
46771
+ suspicious_ip_throttling?: {
46772
+ allowlist?: string[] | undefined;
46773
+ enabled?: boolean | undefined;
46774
+ shields?: string[] | undefined;
46775
+ stage?: {
46776
+ "pre-user-registration"?: {
46777
+ max_attempts?: number | undefined;
46778
+ rate?: number | undefined;
46779
+ } | undefined;
46780
+ "pre-login"?: {
46781
+ max_attempts?: number | undefined;
46782
+ rate?: number | undefined;
46783
+ } | undefined;
46784
+ } | undefined;
46785
+ } | undefined;
46786
+ } | undefined;
45554
46787
  mfa?: {
45555
46788
  policy?: "never" | "always" | undefined;
45556
46789
  factors?: {
@@ -45869,14 +47102,29 @@ export declare const pageBackgroundSchema: z.ZodObject<{
45869
47102
  "left",
45870
47103
  "right"
45871
47104
  ]>;
47105
+ /**
47106
+ * Where the tenant logo renders on the page.
47107
+ * - "widget" (default): inside the widget card via the widget's own header.
47108
+ * - "chip": as a floating pill in the top-left page corner. The widget's
47109
+ * internal logo is suppressed when this is selected.
47110
+ * - "none": no logo on the page or in the widget.
47111
+ * Optional for backwards compatibility; absent values mean "widget".
47112
+ */
47113
+ logo_placement: z.ZodOptional<z.ZodEnum<[
47114
+ "widget",
47115
+ "chip",
47116
+ "none"
47117
+ ]>>;
45872
47118
  }, "strip", z.ZodTypeAny, {
45873
47119
  background_color: string;
45874
47120
  background_image_url: string;
45875
47121
  page_layout: "center" | "left" | "right";
47122
+ logo_placement?: "none" | "widget" | "chip" | undefined;
45876
47123
  }, {
45877
47124
  background_color: string;
45878
47125
  background_image_url: string;
45879
47126
  page_layout: "center" | "left" | "right";
47127
+ logo_placement?: "none" | "widget" | "chip" | undefined;
45880
47128
  }>;
45881
47129
  export declare const widgetSchema: z.ZodObject<{
45882
47130
  header_text_alignment: z.ZodEnum<[
@@ -46147,14 +47395,29 @@ export declare const themeInsertSchema: z.ZodObject<{
46147
47395
  "left",
46148
47396
  "right"
46149
47397
  ]>;
47398
+ /**
47399
+ * Where the tenant logo renders on the page.
47400
+ * - "widget" (default): inside the widget card via the widget's own header.
47401
+ * - "chip": as a floating pill in the top-left page corner. The widget's
47402
+ * internal logo is suppressed when this is selected.
47403
+ * - "none": no logo on the page or in the widget.
47404
+ * Optional for backwards compatibility; absent values mean "widget".
47405
+ */
47406
+ logo_placement: z.ZodOptional<z.ZodEnum<[
47407
+ "widget",
47408
+ "chip",
47409
+ "none"
47410
+ ]>>;
46150
47411
  }, "strip", z.ZodTypeAny, {
46151
47412
  background_color: string;
46152
47413
  background_image_url: string;
46153
47414
  page_layout: "center" | "left" | "right";
47415
+ logo_placement?: "none" | "widget" | "chip" | undefined;
46154
47416
  }, {
46155
47417
  background_color: string;
46156
47418
  background_image_url: string;
46157
47419
  page_layout: "center" | "left" | "right";
47420
+ logo_placement?: "none" | "widget" | "chip" | undefined;
46158
47421
  }>;
46159
47422
  widget: z.ZodObject<{
46160
47423
  header_text_alignment: z.ZodEnum<[
@@ -46192,6 +47455,7 @@ export declare const themeInsertSchema: z.ZodObject<{
46192
47455
  background_color: string;
46193
47456
  background_image_url: string;
46194
47457
  page_layout: "center" | "left" | "right";
47458
+ logo_placement?: "none" | "widget" | "chip" | undefined;
46195
47459
  };
46196
47460
  colors: {
46197
47461
  error: string;
@@ -46214,6 +47478,13 @@ export declare const themeInsertSchema: z.ZodObject<{
46214
47478
  widget_background: string;
46215
47479
  widget_border: string;
46216
47480
  };
47481
+ widget: {
47482
+ logo_url: string;
47483
+ header_text_alignment: "center" | "left" | "right";
47484
+ logo_height: number;
47485
+ logo_position: "none" | "center" | "left" | "right";
47486
+ social_buttons_layout: "bottom" | "top";
47487
+ };
46217
47488
  borders: {
46218
47489
  button_border_radius: number;
46219
47490
  button_border_weight: number;
@@ -46255,18 +47526,12 @@ export declare const themeInsertSchema: z.ZodObject<{
46255
47526
  bold: boolean;
46256
47527
  };
46257
47528
  };
46258
- widget: {
46259
- logo_url: string;
46260
- header_text_alignment: "center" | "left" | "right";
46261
- logo_height: number;
46262
- logo_position: "none" | "center" | "left" | "right";
46263
- social_buttons_layout: "bottom" | "top";
46264
- };
46265
47529
  }, {
46266
47530
  page_background: {
46267
47531
  background_color: string;
46268
47532
  background_image_url: string;
46269
47533
  page_layout: "center" | "left" | "right";
47534
+ logo_placement?: "none" | "widget" | "chip" | undefined;
46270
47535
  };
46271
47536
  colors: {
46272
47537
  error: string;
@@ -46289,6 +47554,13 @@ export declare const themeInsertSchema: z.ZodObject<{
46289
47554
  widget_background: string;
46290
47555
  widget_border: string;
46291
47556
  };
47557
+ widget: {
47558
+ logo_url: string;
47559
+ header_text_alignment: "center" | "left" | "right";
47560
+ logo_height: number;
47561
+ logo_position: "none" | "center" | "left" | "right";
47562
+ social_buttons_layout: "bottom" | "top";
47563
+ };
46292
47564
  borders: {
46293
47565
  button_border_radius: number;
46294
47566
  button_border_weight: number;
@@ -46330,13 +47602,6 @@ export declare const themeInsertSchema: z.ZodObject<{
46330
47602
  bold: boolean;
46331
47603
  };
46332
47604
  };
46333
- widget: {
46334
- logo_url: string;
46335
- header_text_alignment: "center" | "left" | "right";
46336
- logo_height: number;
46337
- logo_position: "none" | "center" | "left" | "right";
46338
- social_buttons_layout: "bottom" | "top";
46339
- };
46340
47605
  }>;
46341
47606
  export type ThemeInsert = z.input<typeof themeInsertSchema>;
46342
47607
  export declare const themeSchema: z.ZodObject<{
@@ -46568,62 +47833,155 @@ export declare const themeSchema: z.ZodObject<{
46568
47833
  size: number;
46569
47834
  bold: boolean;
46570
47835
  };
46571
- }>;
46572
- page_background: z.ZodObject<{
46573
- background_color: z.ZodString;
46574
- background_image_url: z.ZodString;
46575
- page_layout: z.ZodEnum<[
46576
- "center",
46577
- "left",
46578
- "right"
46579
- ]>;
46580
- }, "strip", z.ZodTypeAny, {
46581
- background_color: string;
46582
- background_image_url: string;
46583
- page_layout: "center" | "left" | "right";
46584
- }, {
46585
- background_color: string;
46586
- background_image_url: string;
46587
- page_layout: "center" | "left" | "right";
46588
- }>;
46589
- widget: z.ZodObject<{
46590
- header_text_alignment: z.ZodEnum<[
46591
- "center",
46592
- "left",
46593
- "right"
46594
- ]>;
46595
- logo_height: z.ZodNumber;
46596
- logo_position: z.ZodEnum<[
46597
- "center",
46598
- "left",
46599
- "none",
46600
- "right"
46601
- ]>;
46602
- logo_url: z.ZodString;
46603
- social_buttons_layout: z.ZodEnum<[
46604
- "bottom",
46605
- "top"
46606
- ]>;
46607
- }, "strip", z.ZodTypeAny, {
46608
- logo_url: string;
46609
- header_text_alignment: "center" | "left" | "right";
46610
- logo_height: number;
46611
- logo_position: "none" | "center" | "left" | "right";
46612
- social_buttons_layout: "bottom" | "top";
46613
- }, {
46614
- logo_url: string;
46615
- header_text_alignment: "center" | "left" | "right";
46616
- logo_height: number;
46617
- logo_position: "none" | "center" | "left" | "right";
46618
- social_buttons_layout: "bottom" | "top";
46619
- }>;
46620
- } & {
46621
- themeId: z.ZodString;
46622
- }, "strip", z.ZodTypeAny, {
47836
+ }>;
47837
+ page_background: z.ZodObject<{
47838
+ background_color: z.ZodString;
47839
+ background_image_url: z.ZodString;
47840
+ page_layout: z.ZodEnum<[
47841
+ "center",
47842
+ "left",
47843
+ "right"
47844
+ ]>;
47845
+ /**
47846
+ * Where the tenant logo renders on the page.
47847
+ * - "widget" (default): inside the widget card via the widget's own header.
47848
+ * - "chip": as a floating pill in the top-left page corner. The widget's
47849
+ * internal logo is suppressed when this is selected.
47850
+ * - "none": no logo on the page or in the widget.
47851
+ * Optional for backwards compatibility; absent values mean "widget".
47852
+ */
47853
+ logo_placement: z.ZodOptional<z.ZodEnum<[
47854
+ "widget",
47855
+ "chip",
47856
+ "none"
47857
+ ]>>;
47858
+ }, "strip", z.ZodTypeAny, {
47859
+ background_color: string;
47860
+ background_image_url: string;
47861
+ page_layout: "center" | "left" | "right";
47862
+ logo_placement?: "none" | "widget" | "chip" | undefined;
47863
+ }, {
47864
+ background_color: string;
47865
+ background_image_url: string;
47866
+ page_layout: "center" | "left" | "right";
47867
+ logo_placement?: "none" | "widget" | "chip" | undefined;
47868
+ }>;
47869
+ widget: z.ZodObject<{
47870
+ header_text_alignment: z.ZodEnum<[
47871
+ "center",
47872
+ "left",
47873
+ "right"
47874
+ ]>;
47875
+ logo_height: z.ZodNumber;
47876
+ logo_position: z.ZodEnum<[
47877
+ "center",
47878
+ "left",
47879
+ "none",
47880
+ "right"
47881
+ ]>;
47882
+ logo_url: z.ZodString;
47883
+ social_buttons_layout: z.ZodEnum<[
47884
+ "bottom",
47885
+ "top"
47886
+ ]>;
47887
+ }, "strip", z.ZodTypeAny, {
47888
+ logo_url: string;
47889
+ header_text_alignment: "center" | "left" | "right";
47890
+ logo_height: number;
47891
+ logo_position: "none" | "center" | "left" | "right";
47892
+ social_buttons_layout: "bottom" | "top";
47893
+ }, {
47894
+ logo_url: string;
47895
+ header_text_alignment: "center" | "left" | "right";
47896
+ logo_height: number;
47897
+ logo_position: "none" | "center" | "left" | "right";
47898
+ social_buttons_layout: "bottom" | "top";
47899
+ }>;
47900
+ } & {
47901
+ themeId: z.ZodString;
47902
+ }, "strip", z.ZodTypeAny, {
47903
+ page_background: {
47904
+ background_color: string;
47905
+ background_image_url: string;
47906
+ page_layout: "center" | "left" | "right";
47907
+ logo_placement?: "none" | "widget" | "chip" | undefined;
47908
+ };
47909
+ colors: {
47910
+ error: string;
47911
+ success: string;
47912
+ base_focus_color: string;
47913
+ base_hover_color: string;
47914
+ body_text: string;
47915
+ captcha_widget_theme: "auto" | "dark" | "light";
47916
+ header: string;
47917
+ icons: string;
47918
+ input_background: string;
47919
+ input_border: string;
47920
+ input_filled_text: string;
47921
+ input_labels_placeholders: string;
47922
+ links_focused_components: string;
47923
+ primary_button: string;
47924
+ primary_button_label: string;
47925
+ secondary_button_border: string;
47926
+ secondary_button_label: string;
47927
+ widget_background: string;
47928
+ widget_border: string;
47929
+ };
47930
+ widget: {
47931
+ logo_url: string;
47932
+ header_text_alignment: "center" | "left" | "right";
47933
+ logo_height: number;
47934
+ logo_position: "none" | "center" | "left" | "right";
47935
+ social_buttons_layout: "bottom" | "top";
47936
+ };
47937
+ borders: {
47938
+ button_border_radius: number;
47939
+ button_border_weight: number;
47940
+ buttons_style: "pill" | "rounded" | "sharp";
47941
+ input_border_radius: number;
47942
+ input_border_weight: number;
47943
+ inputs_style: "pill" | "rounded" | "sharp";
47944
+ show_widget_shadow: boolean;
47945
+ widget_border_weight: number;
47946
+ widget_corner_radius: number;
47947
+ };
47948
+ displayName: string;
47949
+ fonts: {
47950
+ title: {
47951
+ size: number;
47952
+ bold: boolean;
47953
+ };
47954
+ links: {
47955
+ size: number;
47956
+ bold: boolean;
47957
+ };
47958
+ body_text: {
47959
+ size: number;
47960
+ bold: boolean;
47961
+ };
47962
+ buttons_text: {
47963
+ size: number;
47964
+ bold: boolean;
47965
+ };
47966
+ font_url: string;
47967
+ input_labels: {
47968
+ size: number;
47969
+ bold: boolean;
47970
+ };
47971
+ links_style: "normal" | "underlined";
47972
+ reference_text_size: number;
47973
+ subtitle: {
47974
+ size: number;
47975
+ bold: boolean;
47976
+ };
47977
+ };
47978
+ themeId: string;
47979
+ }, {
46623
47980
  page_background: {
46624
47981
  background_color: string;
46625
47982
  background_image_url: string;
46626
47983
  page_layout: "center" | "left" | "right";
47984
+ logo_placement?: "none" | "widget" | "chip" | undefined;
46627
47985
  };
46628
47986
  colors: {
46629
47987
  error: string;
@@ -46646,47 +48004,6 @@ export declare const themeSchema: z.ZodObject<{
46646
48004
  widget_background: string;
46647
48005
  widget_border: string;
46648
48006
  };
46649
- borders: {
46650
- button_border_radius: number;
46651
- button_border_weight: number;
46652
- buttons_style: "pill" | "rounded" | "sharp";
46653
- input_border_radius: number;
46654
- input_border_weight: number;
46655
- inputs_style: "pill" | "rounded" | "sharp";
46656
- show_widget_shadow: boolean;
46657
- widget_border_weight: number;
46658
- widget_corner_radius: number;
46659
- };
46660
- displayName: string;
46661
- fonts: {
46662
- title: {
46663
- size: number;
46664
- bold: boolean;
46665
- };
46666
- links: {
46667
- size: number;
46668
- bold: boolean;
46669
- };
46670
- body_text: {
46671
- size: number;
46672
- bold: boolean;
46673
- };
46674
- buttons_text: {
46675
- size: number;
46676
- bold: boolean;
46677
- };
46678
- font_url: string;
46679
- input_labels: {
46680
- size: number;
46681
- bold: boolean;
46682
- };
46683
- links_style: "normal" | "underlined";
46684
- reference_text_size: number;
46685
- subtitle: {
46686
- size: number;
46687
- bold: boolean;
46688
- };
46689
- };
46690
48007
  widget: {
46691
48008
  logo_url: string;
46692
48009
  header_text_alignment: "center" | "left" | "right";
@@ -46694,34 +48011,6 @@ export declare const themeSchema: z.ZodObject<{
46694
48011
  logo_position: "none" | "center" | "left" | "right";
46695
48012
  social_buttons_layout: "bottom" | "top";
46696
48013
  };
46697
- themeId: string;
46698
- }, {
46699
- page_background: {
46700
- background_color: string;
46701
- background_image_url: string;
46702
- page_layout: "center" | "left" | "right";
46703
- };
46704
- colors: {
46705
- error: string;
46706
- success: string;
46707
- base_focus_color: string;
46708
- base_hover_color: string;
46709
- body_text: string;
46710
- captcha_widget_theme: "auto" | "dark" | "light";
46711
- header: string;
46712
- icons: string;
46713
- input_background: string;
46714
- input_border: string;
46715
- input_filled_text: string;
46716
- input_labels_placeholders: string;
46717
- links_focused_components: string;
46718
- primary_button: string;
46719
- primary_button_label: string;
46720
- secondary_button_border: string;
46721
- secondary_button_label: string;
46722
- widget_background: string;
46723
- widget_border: string;
46724
- };
46725
48014
  borders: {
46726
48015
  button_border_radius: number;
46727
48016
  button_border_weight: number;
@@ -46763,13 +48052,6 @@ export declare const themeSchema: z.ZodObject<{
46763
48052
  bold: boolean;
46764
48053
  };
46765
48054
  };
46766
- widget: {
46767
- logo_url: string;
46768
- header_text_alignment: "center" | "left" | "right";
46769
- logo_height: number;
46770
- logo_position: "none" | "center" | "left" | "right";
46771
- social_buttons_layout: "bottom" | "top";
46772
- };
46773
48055
  themeId: string;
46774
48056
  }>;
46775
48057
  export type Theme = z.infer<typeof themeSchema>;
@@ -46797,113 +48079,17 @@ export declare const emailProviderSchema: z.ZodObject<{
46797
48079
  name: z.ZodString;
46798
48080
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
46799
48081
  default_from_address: z.ZodOptional<z.ZodString>;
46800
- credentials: z.ZodUnion<[
46801
- z.ZodObject<{
46802
- accessKeyId: z.ZodString;
46803
- secretAccessKey: z.ZodString;
46804
- region: z.ZodString;
46805
- }, "strip", z.ZodTypeAny, {
46806
- region: string;
46807
- accessKeyId: string;
46808
- secretAccessKey: string;
46809
- }, {
46810
- region: string;
46811
- accessKeyId: string;
46812
- secretAccessKey: string;
46813
- }>,
46814
- z.ZodObject<{
46815
- smtp_host: z.ZodArray<z.ZodString, "many">;
46816
- smtp_port: z.ZodNumber;
46817
- smtp_user: z.ZodString;
46818
- smtp_pass: z.ZodString;
46819
- }, "strip", z.ZodTypeAny, {
46820
- smtp_host: string[];
46821
- smtp_port: number;
46822
- smtp_user: string;
46823
- smtp_pass: string;
46824
- }, {
46825
- smtp_host: string[];
46826
- smtp_port: number;
46827
- smtp_user: string;
46828
- smtp_pass: string;
46829
- }>,
46830
- z.ZodObject<{
46831
- api_key: z.ZodString;
46832
- domain: z.ZodOptional<z.ZodString>;
46833
- }, "strip", z.ZodTypeAny, {
46834
- api_key: string;
46835
- domain?: string | undefined;
46836
- }, {
46837
- api_key: string;
46838
- domain?: string | undefined;
46839
- }>,
46840
- z.ZodObject<{
46841
- connectionString: z.ZodString;
46842
- }, "strip", z.ZodTypeAny, {
46843
- connectionString: string;
46844
- }, {
46845
- connectionString: string;
46846
- }>,
46847
- z.ZodObject<{
46848
- tenantId: z.ZodString;
46849
- clientId: z.ZodString;
46850
- clientSecret: z.ZodString;
46851
- }, "strip", z.ZodTypeAny, {
46852
- tenantId: string;
46853
- clientId: string;
46854
- clientSecret: string;
46855
- }, {
46856
- tenantId: string;
46857
- clientId: string;
46858
- clientSecret: string;
46859
- }>
46860
- ]>;
48082
+ credentials: z.ZodRecord<z.ZodString, z.ZodUnknown>;
46861
48083
  settings: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
46862
48084
  }, "strip", z.ZodTypeAny, {
46863
48085
  name: string;
46864
48086
  enabled: boolean;
46865
- credentials: {
46866
- region: string;
46867
- accessKeyId: string;
46868
- secretAccessKey: string;
46869
- } | {
46870
- smtp_host: string[];
46871
- smtp_port: number;
46872
- smtp_user: string;
46873
- smtp_pass: string;
46874
- } | {
46875
- api_key: string;
46876
- domain?: string | undefined;
46877
- } | {
46878
- connectionString: string;
46879
- } | {
46880
- tenantId: string;
46881
- clientId: string;
46882
- clientSecret: string;
46883
- };
48087
+ credentials: Record<string, unknown>;
46884
48088
  default_from_address?: string | undefined;
46885
48089
  settings?: {} | undefined;
46886
48090
  }, {
46887
48091
  name: string;
46888
- credentials: {
46889
- region: string;
46890
- accessKeyId: string;
46891
- secretAccessKey: string;
46892
- } | {
46893
- smtp_host: string[];
46894
- smtp_port: number;
46895
- smtp_user: string;
46896
- smtp_pass: string;
46897
- } | {
46898
- api_key: string;
46899
- domain?: string | undefined;
46900
- } | {
46901
- connectionString: string;
46902
- } | {
46903
- tenantId: string;
46904
- clientId: string;
46905
- clientSecret: string;
46906
- };
48092
+ credentials: Record<string, unknown>;
46907
48093
  enabled?: boolean | undefined;
46908
48094
  default_from_address?: string | undefined;
46909
48095
  settings?: {} | undefined;
@@ -46950,10 +48136,16 @@ export declare const refreshTokenInsertSchema: z.ZodObject<{
46950
48136
  audience: string;
46951
48137
  }>, "many">;
46952
48138
  rotating: z.ZodBoolean;
48139
+ token_lookup: z.ZodOptional<z.ZodString>;
48140
+ token_hash: z.ZodOptional<z.ZodString>;
48141
+ family_id: z.ZodOptional<z.ZodString>;
48142
+ rotated_to: z.ZodOptional<z.ZodString>;
48143
+ rotated_at: z.ZodOptional<z.ZodString>;
46953
48144
  }, "strip", z.ZodTypeAny, {
46954
48145
  id: string;
46955
48146
  client_id: string;
46956
48147
  user_id: string;
48148
+ rotating: boolean;
46957
48149
  login_id: string;
46958
48150
  device: {
46959
48151
  last_ip: string;
@@ -46967,14 +48159,19 @@ export declare const refreshTokenInsertSchema: z.ZodObject<{
46967
48159
  scopes: string;
46968
48160
  audience: string;
46969
48161
  }[];
46970
- rotating: boolean;
48162
+ token_hash?: string | undefined;
46971
48163
  expires_at?: string | undefined;
46972
48164
  idle_expires_at?: string | undefined;
46973
48165
  last_exchanged_at?: string | undefined;
48166
+ token_lookup?: string | undefined;
48167
+ family_id?: string | undefined;
48168
+ rotated_to?: string | undefined;
48169
+ rotated_at?: string | undefined;
46974
48170
  }, {
46975
48171
  id: string;
46976
48172
  client_id: string;
46977
48173
  user_id: string;
48174
+ rotating: boolean;
46978
48175
  login_id: string;
46979
48176
  device: {
46980
48177
  last_ip: string;
@@ -46988,10 +48185,14 @@ export declare const refreshTokenInsertSchema: z.ZodObject<{
46988
48185
  scopes: string;
46989
48186
  audience: string;
46990
48187
  }[];
46991
- rotating: boolean;
48188
+ token_hash?: string | undefined;
46992
48189
  expires_at?: string | undefined;
46993
48190
  idle_expires_at?: string | undefined;
46994
48191
  last_exchanged_at?: string | undefined;
48192
+ token_lookup?: string | undefined;
48193
+ family_id?: string | undefined;
48194
+ rotated_to?: string | undefined;
48195
+ rotated_at?: string | undefined;
46995
48196
  }>;
46996
48197
  export type RefreshTokenInsert = z.infer<typeof refreshTokenInsertSchema>;
46997
48198
  export declare const refreshTokenSchema: z.ZodObject<{
@@ -47035,6 +48236,11 @@ export declare const refreshTokenSchema: z.ZodObject<{
47035
48236
  audience: string;
47036
48237
  }>, "many">;
47037
48238
  rotating: z.ZodBoolean;
48239
+ token_lookup: z.ZodOptional<z.ZodString>;
48240
+ token_hash: z.ZodOptional<z.ZodString>;
48241
+ family_id: z.ZodOptional<z.ZodString>;
48242
+ rotated_to: z.ZodOptional<z.ZodString>;
48243
+ rotated_at: z.ZodOptional<z.ZodString>;
47038
48244
  created_at: z.ZodString;
47039
48245
  revoked_at: z.ZodOptional<z.ZodString>;
47040
48246
  }, "strip", z.ZodTypeAny, {
@@ -47042,6 +48248,7 @@ export declare const refreshTokenSchema: z.ZodObject<{
47042
48248
  id: string;
47043
48249
  client_id: string;
47044
48250
  user_id: string;
48251
+ rotating: boolean;
47045
48252
  login_id: string;
47046
48253
  device: {
47047
48254
  last_ip: string;
@@ -47055,16 +48262,21 @@ export declare const refreshTokenSchema: z.ZodObject<{
47055
48262
  scopes: string;
47056
48263
  audience: string;
47057
48264
  }[];
47058
- rotating: boolean;
48265
+ token_hash?: string | undefined;
47059
48266
  expires_at?: string | undefined;
47060
48267
  revoked_at?: string | undefined;
47061
48268
  idle_expires_at?: string | undefined;
47062
48269
  last_exchanged_at?: string | undefined;
48270
+ token_lookup?: string | undefined;
48271
+ family_id?: string | undefined;
48272
+ rotated_to?: string | undefined;
48273
+ rotated_at?: string | undefined;
47063
48274
  }, {
47064
48275
  created_at: string;
47065
48276
  id: string;
47066
48277
  client_id: string;
47067
48278
  user_id: string;
48279
+ rotating: boolean;
47068
48280
  login_id: string;
47069
48281
  device: {
47070
48282
  last_ip: string;
@@ -47078,11 +48290,15 @@ export declare const refreshTokenSchema: z.ZodObject<{
47078
48290
  scopes: string;
47079
48291
  audience: string;
47080
48292
  }[];
47081
- rotating: boolean;
48293
+ token_hash?: string | undefined;
47082
48294
  expires_at?: string | undefined;
47083
48295
  revoked_at?: string | undefined;
47084
48296
  idle_expires_at?: string | undefined;
47085
48297
  last_exchanged_at?: string | undefined;
48298
+ token_lookup?: string | undefined;
48299
+ family_id?: string | undefined;
48300
+ rotated_to?: string | undefined;
48301
+ rotated_at?: string | undefined;
47086
48302
  }>;
47087
48303
  export type RefreshToken = z.infer<typeof refreshTokenSchema>;
47088
48304
  export declare const smsSendParamsSchema: z.ZodObject<{
@@ -47220,8 +48436,8 @@ export declare const resourceServerInsertSchema: z.ZodObject<{
47220
48436
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
47221
48437
  }, "strip", z.ZodTypeAny, {
47222
48438
  name: string;
47223
- identifier: string;
47224
48439
  token_lifetime: number;
48440
+ identifier: string;
47225
48441
  token_lifetime_for_web: number;
47226
48442
  options?: {
47227
48443
  mtls?: {
@@ -47265,11 +48481,11 @@ export declare const resourceServerInsertSchema: z.ZodObject<{
47265
48481
  value: string;
47266
48482
  description?: string | undefined;
47267
48483
  }[] | undefined;
48484
+ token_lifetime?: number | undefined;
47268
48485
  is_system?: boolean | undefined;
47269
48486
  metadata?: Record<string, any> | undefined;
47270
48487
  signing_alg?: string | undefined;
47271
48488
  signing_secret?: string | undefined;
47272
- token_lifetime?: number | undefined;
47273
48489
  token_lifetime_for_web?: number | undefined;
47274
48490
  skip_consent_for_verifiable_first_party_clients?: boolean | undefined;
47275
48491
  allow_offline_access?: boolean | undefined;
@@ -47341,8 +48557,8 @@ export declare const resourceServerSchema: z.ZodObject<{
47341
48557
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
47342
48558
  }, "strip", z.ZodTypeAny, {
47343
48559
  name: string;
47344
- identifier: string;
47345
48560
  token_lifetime: number;
48561
+ identifier: string;
47346
48562
  token_lifetime_for_web: number;
47347
48563
  created_at?: string | undefined;
47348
48564
  updated_at?: string | undefined;
@@ -47390,11 +48606,11 @@ export declare const resourceServerSchema: z.ZodObject<{
47390
48606
  value: string;
47391
48607
  description?: string | undefined;
47392
48608
  }[] | undefined;
48609
+ token_lifetime?: number | undefined;
47393
48610
  is_system?: boolean | undefined;
47394
48611
  metadata?: Record<string, any> | undefined;
47395
48612
  signing_alg?: string | undefined;
47396
48613
  signing_secret?: string | undefined;
47397
- token_lifetime?: number | undefined;
47398
48614
  token_lifetime_for_web?: number | undefined;
47399
48615
  skip_consent_for_verifiable_first_party_clients?: boolean | undefined;
47400
48616
  allow_offline_access?: boolean | undefined;
@@ -47466,8 +48682,8 @@ export declare const resourceServerListSchema: z.ZodArray<z.ZodObject<{
47466
48682
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
47467
48683
  }, "strip", z.ZodTypeAny, {
47468
48684
  name: string;
47469
- identifier: string;
47470
48685
  token_lifetime: number;
48686
+ identifier: string;
47471
48687
  token_lifetime_for_web: number;
47472
48688
  created_at?: string | undefined;
47473
48689
  updated_at?: string | undefined;
@@ -47515,11 +48731,11 @@ export declare const resourceServerListSchema: z.ZodArray<z.ZodObject<{
47515
48731
  value: string;
47516
48732
  description?: string | undefined;
47517
48733
  }[] | undefined;
48734
+ token_lifetime?: number | undefined;
47518
48735
  is_system?: boolean | undefined;
47519
48736
  metadata?: Record<string, any> | undefined;
47520
48737
  signing_alg?: string | undefined;
47521
48738
  signing_secret?: string | undefined;
47522
- token_lifetime?: number | undefined;
47523
48739
  token_lifetime_for_web?: number | undefined;
47524
48740
  skip_consent_for_verifiable_first_party_clients?: boolean | undefined;
47525
48741
  allow_offline_access?: boolean | undefined;
@@ -48141,6 +49357,105 @@ export declare const organizationSchema: z.ZodObject<{
48141
49357
  }[] | undefined;
48142
49358
  }>;
48143
49359
  export type Organization = z.infer<typeof organizationSchema>;
49360
+ export declare const organizationConnectionInsertSchema: z.ZodObject<{
49361
+ connection_id: z.ZodString;
49362
+ assign_membership_on_login: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
49363
+ show_as_button: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
49364
+ is_signup_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
49365
+ }, "strip", z.ZodTypeAny, {
49366
+ connection_id: string;
49367
+ show_as_button: boolean;
49368
+ assign_membership_on_login: boolean;
49369
+ is_signup_enabled: boolean;
49370
+ }, {
49371
+ connection_id: string;
49372
+ show_as_button?: boolean | undefined;
49373
+ assign_membership_on_login?: boolean | undefined;
49374
+ is_signup_enabled?: boolean | undefined;
49375
+ }>;
49376
+ export type OrganizationConnectionInsert = z.input<typeof organizationConnectionInsertSchema>;
49377
+ export declare const organizationConnectionSchema: z.ZodObject<{
49378
+ connection: z.ZodOptional<z.ZodObject<{
49379
+ name: z.ZodOptional<z.ZodString>;
49380
+ strategy: z.ZodOptional<z.ZodString>;
49381
+ }, "strip", z.ZodTypeAny, {
49382
+ name?: string | undefined;
49383
+ strategy?: string | undefined;
49384
+ }, {
49385
+ name?: string | undefined;
49386
+ strategy?: string | undefined;
49387
+ }>>;
49388
+ created_at: z.ZodOptional<z.ZodString>;
49389
+ updated_at: z.ZodOptional<z.ZodString>;
49390
+ connection_id: z.ZodString;
49391
+ assign_membership_on_login: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
49392
+ show_as_button: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
49393
+ is_signup_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
49394
+ }, "strip", z.ZodTypeAny, {
49395
+ connection_id: string;
49396
+ show_as_button: boolean;
49397
+ assign_membership_on_login: boolean;
49398
+ is_signup_enabled: boolean;
49399
+ created_at?: string | undefined;
49400
+ updated_at?: string | undefined;
49401
+ connection?: {
49402
+ name?: string | undefined;
49403
+ strategy?: string | undefined;
49404
+ } | undefined;
49405
+ }, {
49406
+ connection_id: string;
49407
+ created_at?: string | undefined;
49408
+ updated_at?: string | undefined;
49409
+ connection?: {
49410
+ name?: string | undefined;
49411
+ strategy?: string | undefined;
49412
+ } | undefined;
49413
+ show_as_button?: boolean | undefined;
49414
+ assign_membership_on_login?: boolean | undefined;
49415
+ is_signup_enabled?: boolean | undefined;
49416
+ }>;
49417
+ export type OrganizationConnection = z.infer<typeof organizationConnectionSchema>;
49418
+ export declare const organizationConnectionListSchema: z.ZodArray<z.ZodObject<{
49419
+ connection: z.ZodOptional<z.ZodObject<{
49420
+ name: z.ZodOptional<z.ZodString>;
49421
+ strategy: z.ZodOptional<z.ZodString>;
49422
+ }, "strip", z.ZodTypeAny, {
49423
+ name?: string | undefined;
49424
+ strategy?: string | undefined;
49425
+ }, {
49426
+ name?: string | undefined;
49427
+ strategy?: string | undefined;
49428
+ }>>;
49429
+ created_at: z.ZodOptional<z.ZodString>;
49430
+ updated_at: z.ZodOptional<z.ZodString>;
49431
+ connection_id: z.ZodString;
49432
+ assign_membership_on_login: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
49433
+ show_as_button: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
49434
+ is_signup_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
49435
+ }, "strip", z.ZodTypeAny, {
49436
+ connection_id: string;
49437
+ show_as_button: boolean;
49438
+ assign_membership_on_login: boolean;
49439
+ is_signup_enabled: boolean;
49440
+ created_at?: string | undefined;
49441
+ updated_at?: string | undefined;
49442
+ connection?: {
49443
+ name?: string | undefined;
49444
+ strategy?: string | undefined;
49445
+ } | undefined;
49446
+ }, {
49447
+ connection_id: string;
49448
+ created_at?: string | undefined;
49449
+ updated_at?: string | undefined;
49450
+ connection?: {
49451
+ name?: string | undefined;
49452
+ strategy?: string | undefined;
49453
+ } | undefined;
49454
+ show_as_button?: boolean | undefined;
49455
+ assign_membership_on_login?: boolean | undefined;
49456
+ is_signup_enabled?: boolean | undefined;
49457
+ }>, "many">;
49458
+ export type OrganizationConnectionList = z.infer<typeof organizationConnectionListSchema>;
48144
49459
  export declare const userOrganizationInsertSchema: z.ZodObject<{
48145
49460
  user_id: z.ZodString;
48146
49461
  organization_id: z.ZodString;
@@ -49225,6 +50540,13 @@ export interface LogsDataAdapter {
49225
50540
  list(tenantId: string, params?: ListParams): Promise<ListLogsResponse>;
49226
50541
  get(tenantId: string, logId: string): Promise<Log | null>;
49227
50542
  }
50543
+ export interface LogStreamsAdapter {
50544
+ create(tenant_id: string, params: LogStreamInsert): Promise<LogStream>;
50545
+ get(tenant_id: string, id: string): Promise<LogStream | null>;
50546
+ list(tenant_id: string): Promise<LogStream[]>;
50547
+ update(tenant_id: string, id: string, params: Partial<LogStream>): Promise<boolean>;
50548
+ remove(tenant_id: string, id: string): Promise<boolean>;
50549
+ }
49228
50550
  export interface ListConnectionsResponse extends Totals {
49229
50551
  connections: Connection[];
49230
50552
  }
@@ -49311,10 +50633,22 @@ export interface UpdateRefreshTokenOptions {
49311
50633
  export interface RefreshTokensAdapter {
49312
50634
  create: (tenant_id: string, refresh_token: RefreshTokenInsert) => Promise<RefreshToken>;
49313
50635
  get: (tenant_id: string, id: string) => Promise<RefreshToken | null>;
50636
+ /**
50637
+ * Look up a refresh token by its plaintext `token_lookup` slice (extracted
50638
+ * from the wire format `rt_<lookup>.<secret>`). Returns null if no row
50639
+ * matches. Callers must verify the secret hash before trusting the row.
50640
+ */
50641
+ getByLookup: (tenant_id: string, token_lookup: string) => Promise<RefreshToken | null>;
49314
50642
  list(tenant_id: string, params?: ListParams): Promise<ListRefreshTokenResponse>;
49315
50643
  update: (tenant_id: string, id: string, refresh_token: Partial<RefreshToken>, options?: UpdateRefreshTokenOptions) => Promise<boolean>;
49316
50644
  remove: (tenant_id: string, id: string) => Promise<boolean>;
49317
50645
  revokeByLoginSession: (tenant_id: string, login_session_id: string, revoked_at: string) => Promise<number>;
50646
+ /**
50647
+ * Soft-revoke every refresh token that shares `family_id` and isn't already
50648
+ * revoked. Used for reuse detection (entire rotation chain torched) and for
50649
+ * admin revocations that should propagate to descendants.
50650
+ */
50651
+ revokeFamily: (tenant_id: string, family_id: string, revoked_at: string) => Promise<number>;
49318
50652
  }
49319
50653
  export interface ListFormsResponse extends Totals {
49320
50654
  forms: Form[];
@@ -49377,6 +50711,13 @@ export interface OrganizationsAdapter {
49377
50711
  list(tenant_id: string, params?: ListParams): Promise<ListOrganizationsResponse>;
49378
50712
  update(tenant_id: string, id: string, params: Partial<OrganizationInsert>): Promise<boolean>;
49379
50713
  }
50714
+ export interface OrganizationConnectionsAdapter {
50715
+ create(tenant_id: string, organization_id: string, params: OrganizationConnectionInsert): Promise<OrganizationConnection>;
50716
+ list(tenant_id: string, organization_id: string): Promise<OrganizationConnection[]>;
50717
+ get(tenant_id: string, organization_id: string, connection_id: string): Promise<OrganizationConnection | null>;
50718
+ update(tenant_id: string, organization_id: string, connection_id: string, params: Partial<Omit<OrganizationConnectionInsert, "connection_id">>): Promise<OrganizationConnection | null>;
50719
+ remove(tenant_id: string, organization_id: string, connection_id: string): Promise<boolean>;
50720
+ }
49380
50721
  export interface UserOrganizationsAdapter {
49381
50722
  create(tenantId: string, params: UserOrganizationInsert): Promise<UserOrganization>;
49382
50723
  get(tenantId: string, id: string): Promise<UserOrganization | null>;
@@ -49558,6 +50899,37 @@ export interface OutboxAdapter {
49558
50899
  /** Delete processed events older than the given ISO date. Returns count deleted. */
49559
50900
  cleanup(olderThan: string): Promise<number>;
49560
50901
  }
50902
+ /**
50903
+ * Logical buckets that consumers can rate-limit against. Backends decide
50904
+ * how each scope is enforced (e.g. mapping to a separate Cloudflare Workers
50905
+ * Rate Limiter binding with its own deploy-time limit/period).
50906
+ */
50907
+ export type RateLimitScope = "pre-login" | "pre-user-registration" | "brute-force";
50908
+ export interface RateLimitDecision {
50909
+ /** True if the request is allowed; false if the limit was exceeded. */
50910
+ allowed: boolean;
50911
+ /** Optional retry-after hint in seconds (omitted if the backend can't tell). */
50912
+ retryAfterSeconds?: number;
50913
+ }
50914
+ export interface RateLimitAdapter {
50915
+ /**
50916
+ * Consume one unit of quota for the given scope and key.
50917
+ *
50918
+ * The numeric threshold and window are backend-specific; the
50919
+ * Cloudflare Workers Rate Limiter binding bakes them in at deploy
50920
+ * time and cannot honor a per-tenant override. Callers that need
50921
+ * per-tenant `max_attempts` should layer their own counter on top.
50922
+ *
50923
+ * Returns `{ allowed: true }` if the scope is not configured, so
50924
+ * callers can opt in by configuring backends without changing call
50925
+ * sites.
50926
+ */
50927
+ consume(scope: RateLimitScope, key: string): Promise<RateLimitDecision>;
50928
+ }
50929
+ export interface CodeExecutionLog {
50930
+ level: "log" | "info" | "warn" | "error" | "debug";
50931
+ message: string;
50932
+ }
49561
50933
  export interface CodeExecutionResult {
49562
50934
  success: boolean;
49563
50935
  error?: string;
@@ -49566,6 +50938,12 @@ export interface CodeExecutionResult {
49566
50938
  method: string;
49567
50939
  args: unknown[];
49568
50940
  }>;
50941
+ /**
50942
+ * Console output captured from the user code during execution. Populated by
50943
+ * executors that shadow `console.*` inside the sandbox; absent on executors
50944
+ * that don't support capture.
50945
+ */
50946
+ logs?: CodeExecutionLog[];
49569
50947
  }
49570
50948
  export interface CodeExecutor {
49571
50949
  execute(params: {
@@ -49625,6 +51003,7 @@ export interface DataAdapters {
49625
51003
  keys: KeysAdapter;
49626
51004
  loginSessions: LoginSessionsAdapter;
49627
51005
  logs: LogsDataAdapter;
51006
+ logStreams?: LogStreamsAdapter;
49628
51007
  passwords: PasswordsAdapter;
49629
51008
  promptSettings: PromptSettingsAdapter;
49630
51009
  refreshTokens: RefreshTokensAdapter;
@@ -49641,12 +51020,20 @@ export interface DataAdapters {
49641
51020
  users: UserDataAdapter;
49642
51021
  userRoles: UserRolesAdapter;
49643
51022
  organizations: OrganizationsAdapter;
51023
+ organizationConnections: OrganizationConnectionsAdapter;
49644
51024
  authenticationMethods: AuthenticationMethodsAdapter;
49645
51025
  userOrganizations: UserOrganizationsAdapter;
49646
51026
  emailService?: EmailServiceAdapter;
49647
51027
  smsService?: SmsServiceAdapter;
49648
51028
  /** Optional outbox adapter for transactional audit event capture */
49649
51029
  outbox?: OutboxAdapter;
51030
+ /**
51031
+ * Optional rate-limit adapter for short-window abuse protection
51032
+ * (e.g. backed by the Cloudflare Workers Rate Limiter binding).
51033
+ * Auth flows treat this as opt-in: when undefined, no extra
51034
+ * throttling is applied.
51035
+ */
51036
+ rateLimit?: RateLimitAdapter;
49650
51037
  /**
49651
51038
  * Execute a callback within a database transaction.
49652
51039
  * The callback receives a set of adapters scoped to the transaction.