@authhero/adapter-interfaces 1.10.3 → 1.11.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.
@@ -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>;
@@ -12838,16 +12933,7 @@ export declare const connectionInsertSchema: z.ZodObject<{
12838
12933
  } | undefined;
12839
12934
  requires_username?: boolean | undefined;
12840
12935
  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: {
12936
+ }>, {
12851
12937
  validation?: {
12852
12938
  username?: {
12853
12939
  min?: number | undefined;
@@ -12950,22 +13036,16 @@ export declare const connectionInsertSchema: z.ZodObject<{
12950
13036
  } | undefined;
12951
13037
  requires_username?: boolean | undefined;
12952
13038
  set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
12953
- };
12954
- name: string;
12955
- strategy: string;
12956
- id?: string | undefined;
12957
- is_system?: boolean | undefined;
12958
- response_type?: AuthorizationResponseType | undefined;
12959
- response_mode?: AuthorizationResponseMode | undefined;
12960
- display_name?: string | undefined;
12961
- enabled_clients?: string[] | undefined;
12962
- is_domain_connection?: boolean | undefined;
12963
- show_as_button?: boolean | undefined;
12964
- metadata?: Record<string, any> | undefined;
12965
- }, {
12966
- name: string;
12967
- strategy: string;
12968
- options?: {
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: {
12969
13049
  validation?: {
12970
13050
  username?: {
12971
13051
  min?: number | undefined;
@@ -13068,7 +13148,22 @@ export declare const connectionInsertSchema: z.ZodObject<{
13068
13148
  } | undefined;
13069
13149
  requires_username?: boolean | undefined;
13070
13150
  set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
13071
- } | undefined;
13151
+ };
13152
+ name: string;
13153
+ strategy: string;
13154
+ id?: string | undefined;
13155
+ is_system?: boolean | undefined;
13156
+ response_type?: AuthorizationResponseType | undefined;
13157
+ response_mode?: AuthorizationResponseMode | undefined;
13158
+ display_name?: string | undefined;
13159
+ enabled_clients?: string[] | undefined;
13160
+ is_domain_connection?: boolean | undefined;
13161
+ show_as_button?: boolean | undefined;
13162
+ metadata?: Record<string, any> | undefined;
13163
+ }, {
13164
+ name: string;
13165
+ strategy: string;
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;
@@ -44086,6 +44181,525 @@ export declare const logSchema: z.ZodObject<{
44086
44181
  } | undefined;
44087
44182
  }>;
44088
44183
  export type Log = z.infer<typeof logSchema>;
44184
+ export declare const logStreamTypeSchema: z.ZodEnum<[
44185
+ "http",
44186
+ "eventbridge",
44187
+ "eventgrid",
44188
+ "splunk",
44189
+ "datadog",
44190
+ "sumo"
44191
+ ]>;
44192
+ export declare const logStreamStatusSchema: z.ZodEnum<[
44193
+ "active",
44194
+ "paused",
44195
+ "suspended"
44196
+ ]>;
44197
+ export declare const logStreamFilterSchema: z.ZodObject<{
44198
+ type: z.ZodString;
44199
+ name: z.ZodString;
44200
+ }, "strip", z.ZodTypeAny, {
44201
+ type: string;
44202
+ name: string;
44203
+ }, {
44204
+ type: string;
44205
+ name: string;
44206
+ }>;
44207
+ export declare const logStreamInsertSchema: z.ZodObject<{
44208
+ name: z.ZodString;
44209
+ type: z.ZodEnum<[
44210
+ "http",
44211
+ "eventbridge",
44212
+ "eventgrid",
44213
+ "splunk",
44214
+ "datadog",
44215
+ "sumo"
44216
+ ]>;
44217
+ status: z.ZodOptional<z.ZodEnum<[
44218
+ "active",
44219
+ "paused",
44220
+ "suspended"
44221
+ ]>>;
44222
+ sink: z.ZodRecord<z.ZodString, z.ZodUnknown>;
44223
+ filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
44224
+ type: z.ZodString;
44225
+ name: z.ZodString;
44226
+ }, "strip", z.ZodTypeAny, {
44227
+ type: string;
44228
+ name: string;
44229
+ }, {
44230
+ type: string;
44231
+ name: string;
44232
+ }>, "many">>;
44233
+ isPriority: z.ZodOptional<z.ZodBoolean>;
44234
+ }, "strip", z.ZodTypeAny, {
44235
+ type: "http" | "eventbridge" | "eventgrid" | "splunk" | "datadog" | "sumo";
44236
+ name: string;
44237
+ sink: Record<string, unknown>;
44238
+ status?: "active" | "paused" | "suspended" | undefined;
44239
+ filters?: {
44240
+ type: string;
44241
+ name: string;
44242
+ }[] | undefined;
44243
+ isPriority?: boolean | undefined;
44244
+ }, {
44245
+ type: "http" | "eventbridge" | "eventgrid" | "splunk" | "datadog" | "sumo";
44246
+ name: string;
44247
+ sink: Record<string, unknown>;
44248
+ status?: "active" | "paused" | "suspended" | undefined;
44249
+ filters?: {
44250
+ type: string;
44251
+ name: string;
44252
+ }[] | undefined;
44253
+ isPriority?: boolean | undefined;
44254
+ }>;
44255
+ export type LogStreamInsert = z.infer<typeof logStreamInsertSchema>;
44256
+ export declare const logStreamSchema: z.ZodObject<{
44257
+ name: z.ZodString;
44258
+ type: z.ZodEnum<[
44259
+ "http",
44260
+ "eventbridge",
44261
+ "eventgrid",
44262
+ "splunk",
44263
+ "datadog",
44264
+ "sumo"
44265
+ ]>;
44266
+ sink: z.ZodRecord<z.ZodString, z.ZodUnknown>;
44267
+ filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
44268
+ type: z.ZodString;
44269
+ name: z.ZodString;
44270
+ }, "strip", z.ZodTypeAny, {
44271
+ type: string;
44272
+ name: string;
44273
+ }, {
44274
+ type: string;
44275
+ name: string;
44276
+ }>, "many">>;
44277
+ isPriority: z.ZodOptional<z.ZodBoolean>;
44278
+ } & {
44279
+ id: z.ZodString;
44280
+ status: z.ZodEnum<[
44281
+ "active",
44282
+ "paused",
44283
+ "suspended"
44284
+ ]>;
44285
+ created_at: z.ZodOptional<z.ZodString>;
44286
+ updated_at: z.ZodOptional<z.ZodString>;
44287
+ }, "strip", z.ZodTypeAny, {
44288
+ type: "http" | "eventbridge" | "eventgrid" | "splunk" | "datadog" | "sumo";
44289
+ status: "active" | "paused" | "suspended";
44290
+ id: string;
44291
+ name: string;
44292
+ sink: Record<string, unknown>;
44293
+ created_at?: string | undefined;
44294
+ updated_at?: string | undefined;
44295
+ filters?: {
44296
+ type: string;
44297
+ name: string;
44298
+ }[] | undefined;
44299
+ isPriority?: boolean | undefined;
44300
+ }, {
44301
+ type: "http" | "eventbridge" | "eventgrid" | "splunk" | "datadog" | "sumo";
44302
+ status: "active" | "paused" | "suspended";
44303
+ id: string;
44304
+ name: string;
44305
+ sink: Record<string, unknown>;
44306
+ created_at?: string | undefined;
44307
+ updated_at?: string | undefined;
44308
+ filters?: {
44309
+ type: string;
44310
+ name: string;
44311
+ }[] | undefined;
44312
+ isPriority?: boolean | undefined;
44313
+ }>;
44314
+ export type LogStream = z.infer<typeof logStreamSchema>;
44315
+ export declare const breachedPasswordDetectionSchema: z.ZodObject<{
44316
+ enabled: z.ZodOptional<z.ZodBoolean>;
44317
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44318
+ admin_notification_frequency: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44319
+ method: z.ZodOptional<z.ZodString>;
44320
+ stage: z.ZodOptional<z.ZodObject<{
44321
+ "pre-user-registration": z.ZodOptional<z.ZodObject<{
44322
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44323
+ }, "strip", z.ZodTypeAny, {
44324
+ shields?: string[] | undefined;
44325
+ }, {
44326
+ shields?: string[] | undefined;
44327
+ }>>;
44328
+ "pre-change-password": z.ZodOptional<z.ZodObject<{
44329
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44330
+ }, "strip", z.ZodTypeAny, {
44331
+ shields?: string[] | undefined;
44332
+ }, {
44333
+ shields?: string[] | undefined;
44334
+ }>>;
44335
+ }, "strip", z.ZodTypeAny, {
44336
+ "pre-user-registration"?: {
44337
+ shields?: string[] | undefined;
44338
+ } | undefined;
44339
+ "pre-change-password"?: {
44340
+ shields?: string[] | undefined;
44341
+ } | undefined;
44342
+ }, {
44343
+ "pre-user-registration"?: {
44344
+ shields?: string[] | undefined;
44345
+ } | undefined;
44346
+ "pre-change-password"?: {
44347
+ shields?: string[] | undefined;
44348
+ } | undefined;
44349
+ }>>;
44350
+ }, "strip", z.ZodTypeAny, {
44351
+ method?: string | undefined;
44352
+ enabled?: boolean | undefined;
44353
+ shields?: string[] | undefined;
44354
+ admin_notification_frequency?: string[] | undefined;
44355
+ stage?: {
44356
+ "pre-user-registration"?: {
44357
+ shields?: string[] | undefined;
44358
+ } | undefined;
44359
+ "pre-change-password"?: {
44360
+ shields?: string[] | undefined;
44361
+ } | undefined;
44362
+ } | undefined;
44363
+ }, {
44364
+ method?: string | undefined;
44365
+ enabled?: boolean | undefined;
44366
+ shields?: string[] | undefined;
44367
+ admin_notification_frequency?: string[] | undefined;
44368
+ stage?: {
44369
+ "pre-user-registration"?: {
44370
+ shields?: string[] | undefined;
44371
+ } | undefined;
44372
+ "pre-change-password"?: {
44373
+ shields?: string[] | undefined;
44374
+ } | undefined;
44375
+ } | undefined;
44376
+ }>;
44377
+ export type BreachedPasswordDetection = z.infer<typeof breachedPasswordDetectionSchema>;
44378
+ export declare const bruteForceProtectionSchema: z.ZodObject<{
44379
+ enabled: z.ZodOptional<z.ZodBoolean>;
44380
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44381
+ allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44382
+ mode: z.ZodOptional<z.ZodString>;
44383
+ max_attempts: z.ZodOptional<z.ZodNumber>;
44384
+ }, "strip", z.ZodTypeAny, {
44385
+ allowlist?: string[] | undefined;
44386
+ enabled?: boolean | undefined;
44387
+ shields?: string[] | undefined;
44388
+ mode?: string | undefined;
44389
+ max_attempts?: number | undefined;
44390
+ }, {
44391
+ allowlist?: string[] | undefined;
44392
+ enabled?: boolean | undefined;
44393
+ shields?: string[] | undefined;
44394
+ mode?: string | undefined;
44395
+ max_attempts?: number | undefined;
44396
+ }>;
44397
+ export type BruteForceProtection = z.infer<typeof bruteForceProtectionSchema>;
44398
+ export declare const suspiciousIpThrottlingSchema: z.ZodObject<{
44399
+ enabled: z.ZodOptional<z.ZodBoolean>;
44400
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44401
+ allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44402
+ stage: z.ZodOptional<z.ZodObject<{
44403
+ "pre-login": z.ZodOptional<z.ZodObject<{
44404
+ max_attempts: z.ZodOptional<z.ZodNumber>;
44405
+ rate: z.ZodOptional<z.ZodNumber>;
44406
+ }, "strip", z.ZodTypeAny, {
44407
+ max_attempts?: number | undefined;
44408
+ rate?: number | undefined;
44409
+ }, {
44410
+ max_attempts?: number | undefined;
44411
+ rate?: number | undefined;
44412
+ }>>;
44413
+ "pre-user-registration": z.ZodOptional<z.ZodObject<{
44414
+ max_attempts: z.ZodOptional<z.ZodNumber>;
44415
+ rate: z.ZodOptional<z.ZodNumber>;
44416
+ }, "strip", z.ZodTypeAny, {
44417
+ max_attempts?: number | undefined;
44418
+ rate?: number | undefined;
44419
+ }, {
44420
+ max_attempts?: number | undefined;
44421
+ rate?: number | undefined;
44422
+ }>>;
44423
+ }, "strip", z.ZodTypeAny, {
44424
+ "pre-user-registration"?: {
44425
+ max_attempts?: number | undefined;
44426
+ rate?: number | undefined;
44427
+ } | undefined;
44428
+ "pre-login"?: {
44429
+ max_attempts?: number | undefined;
44430
+ rate?: number | undefined;
44431
+ } | undefined;
44432
+ }, {
44433
+ "pre-user-registration"?: {
44434
+ max_attempts?: number | undefined;
44435
+ rate?: number | undefined;
44436
+ } | undefined;
44437
+ "pre-login"?: {
44438
+ max_attempts?: number | undefined;
44439
+ rate?: number | undefined;
44440
+ } | undefined;
44441
+ }>>;
44442
+ }, "strip", z.ZodTypeAny, {
44443
+ allowlist?: string[] | undefined;
44444
+ enabled?: boolean | undefined;
44445
+ shields?: string[] | undefined;
44446
+ stage?: {
44447
+ "pre-user-registration"?: {
44448
+ max_attempts?: number | undefined;
44449
+ rate?: number | undefined;
44450
+ } | undefined;
44451
+ "pre-login"?: {
44452
+ max_attempts?: number | undefined;
44453
+ rate?: number | undefined;
44454
+ } | undefined;
44455
+ } | undefined;
44456
+ }, {
44457
+ allowlist?: string[] | undefined;
44458
+ enabled?: boolean | undefined;
44459
+ shields?: string[] | undefined;
44460
+ stage?: {
44461
+ "pre-user-registration"?: {
44462
+ max_attempts?: number | undefined;
44463
+ rate?: number | undefined;
44464
+ } | undefined;
44465
+ "pre-login"?: {
44466
+ max_attempts?: number | undefined;
44467
+ rate?: number | undefined;
44468
+ } | undefined;
44469
+ } | undefined;
44470
+ }>;
44471
+ export type SuspiciousIpThrottling = z.infer<typeof suspiciousIpThrottlingSchema>;
44472
+ export declare const attackProtectionSchema: z.ZodObject<{
44473
+ breached_password_detection: z.ZodOptional<z.ZodObject<{
44474
+ enabled: z.ZodOptional<z.ZodBoolean>;
44475
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44476
+ admin_notification_frequency: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44477
+ method: z.ZodOptional<z.ZodString>;
44478
+ stage: z.ZodOptional<z.ZodObject<{
44479
+ "pre-user-registration": z.ZodOptional<z.ZodObject<{
44480
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44481
+ }, "strip", z.ZodTypeAny, {
44482
+ shields?: string[] | undefined;
44483
+ }, {
44484
+ shields?: string[] | undefined;
44485
+ }>>;
44486
+ "pre-change-password": z.ZodOptional<z.ZodObject<{
44487
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44488
+ }, "strip", z.ZodTypeAny, {
44489
+ shields?: string[] | undefined;
44490
+ }, {
44491
+ shields?: string[] | undefined;
44492
+ }>>;
44493
+ }, "strip", z.ZodTypeAny, {
44494
+ "pre-user-registration"?: {
44495
+ shields?: string[] | undefined;
44496
+ } | undefined;
44497
+ "pre-change-password"?: {
44498
+ shields?: string[] | undefined;
44499
+ } | undefined;
44500
+ }, {
44501
+ "pre-user-registration"?: {
44502
+ shields?: string[] | undefined;
44503
+ } | undefined;
44504
+ "pre-change-password"?: {
44505
+ shields?: string[] | undefined;
44506
+ } | undefined;
44507
+ }>>;
44508
+ }, "strip", z.ZodTypeAny, {
44509
+ method?: string | undefined;
44510
+ enabled?: boolean | undefined;
44511
+ shields?: string[] | undefined;
44512
+ admin_notification_frequency?: string[] | undefined;
44513
+ stage?: {
44514
+ "pre-user-registration"?: {
44515
+ shields?: string[] | undefined;
44516
+ } | undefined;
44517
+ "pre-change-password"?: {
44518
+ shields?: string[] | undefined;
44519
+ } | undefined;
44520
+ } | undefined;
44521
+ }, {
44522
+ method?: string | undefined;
44523
+ enabled?: boolean | undefined;
44524
+ shields?: string[] | undefined;
44525
+ admin_notification_frequency?: string[] | undefined;
44526
+ stage?: {
44527
+ "pre-user-registration"?: {
44528
+ shields?: string[] | undefined;
44529
+ } | undefined;
44530
+ "pre-change-password"?: {
44531
+ shields?: string[] | undefined;
44532
+ } | undefined;
44533
+ } | undefined;
44534
+ }>>;
44535
+ brute_force_protection: z.ZodOptional<z.ZodObject<{
44536
+ enabled: z.ZodOptional<z.ZodBoolean>;
44537
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44538
+ allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44539
+ mode: z.ZodOptional<z.ZodString>;
44540
+ max_attempts: z.ZodOptional<z.ZodNumber>;
44541
+ }, "strip", z.ZodTypeAny, {
44542
+ allowlist?: string[] | undefined;
44543
+ enabled?: boolean | undefined;
44544
+ shields?: string[] | undefined;
44545
+ mode?: string | undefined;
44546
+ max_attempts?: number | undefined;
44547
+ }, {
44548
+ allowlist?: string[] | undefined;
44549
+ enabled?: boolean | undefined;
44550
+ shields?: string[] | undefined;
44551
+ mode?: string | undefined;
44552
+ max_attempts?: number | undefined;
44553
+ }>>;
44554
+ suspicious_ip_throttling: z.ZodOptional<z.ZodObject<{
44555
+ enabled: z.ZodOptional<z.ZodBoolean>;
44556
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44557
+ allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44558
+ stage: z.ZodOptional<z.ZodObject<{
44559
+ "pre-login": z.ZodOptional<z.ZodObject<{
44560
+ max_attempts: z.ZodOptional<z.ZodNumber>;
44561
+ rate: z.ZodOptional<z.ZodNumber>;
44562
+ }, "strip", z.ZodTypeAny, {
44563
+ max_attempts?: number | undefined;
44564
+ rate?: number | undefined;
44565
+ }, {
44566
+ max_attempts?: number | undefined;
44567
+ rate?: number | undefined;
44568
+ }>>;
44569
+ "pre-user-registration": z.ZodOptional<z.ZodObject<{
44570
+ max_attempts: z.ZodOptional<z.ZodNumber>;
44571
+ rate: z.ZodOptional<z.ZodNumber>;
44572
+ }, "strip", z.ZodTypeAny, {
44573
+ max_attempts?: number | undefined;
44574
+ rate?: number | undefined;
44575
+ }, {
44576
+ max_attempts?: number | undefined;
44577
+ rate?: number | undefined;
44578
+ }>>;
44579
+ }, "strip", z.ZodTypeAny, {
44580
+ "pre-user-registration"?: {
44581
+ max_attempts?: number | undefined;
44582
+ rate?: number | undefined;
44583
+ } | undefined;
44584
+ "pre-login"?: {
44585
+ max_attempts?: number | undefined;
44586
+ rate?: number | undefined;
44587
+ } | undefined;
44588
+ }, {
44589
+ "pre-user-registration"?: {
44590
+ max_attempts?: number | undefined;
44591
+ rate?: number | undefined;
44592
+ } | undefined;
44593
+ "pre-login"?: {
44594
+ max_attempts?: number | undefined;
44595
+ rate?: number | undefined;
44596
+ } | undefined;
44597
+ }>>;
44598
+ }, "strip", z.ZodTypeAny, {
44599
+ allowlist?: string[] | undefined;
44600
+ enabled?: boolean | undefined;
44601
+ shields?: string[] | undefined;
44602
+ stage?: {
44603
+ "pre-user-registration"?: {
44604
+ max_attempts?: number | undefined;
44605
+ rate?: number | undefined;
44606
+ } | undefined;
44607
+ "pre-login"?: {
44608
+ max_attempts?: number | undefined;
44609
+ rate?: number | undefined;
44610
+ } | undefined;
44611
+ } | undefined;
44612
+ }, {
44613
+ allowlist?: string[] | undefined;
44614
+ enabled?: boolean | undefined;
44615
+ shields?: string[] | undefined;
44616
+ stage?: {
44617
+ "pre-user-registration"?: {
44618
+ max_attempts?: number | undefined;
44619
+ rate?: number | undefined;
44620
+ } | undefined;
44621
+ "pre-login"?: {
44622
+ max_attempts?: number | undefined;
44623
+ rate?: number | undefined;
44624
+ } | undefined;
44625
+ } | undefined;
44626
+ }>>;
44627
+ }, "strip", z.ZodTypeAny, {
44628
+ brute_force_protection?: {
44629
+ allowlist?: string[] | undefined;
44630
+ enabled?: boolean | undefined;
44631
+ shields?: string[] | undefined;
44632
+ mode?: string | undefined;
44633
+ max_attempts?: number | undefined;
44634
+ } | undefined;
44635
+ breached_password_detection?: {
44636
+ method?: string | undefined;
44637
+ enabled?: boolean | undefined;
44638
+ shields?: string[] | undefined;
44639
+ admin_notification_frequency?: string[] | undefined;
44640
+ stage?: {
44641
+ "pre-user-registration"?: {
44642
+ shields?: string[] | undefined;
44643
+ } | undefined;
44644
+ "pre-change-password"?: {
44645
+ shields?: string[] | undefined;
44646
+ } | undefined;
44647
+ } | undefined;
44648
+ } | undefined;
44649
+ suspicious_ip_throttling?: {
44650
+ allowlist?: string[] | undefined;
44651
+ enabled?: boolean | undefined;
44652
+ shields?: string[] | undefined;
44653
+ stage?: {
44654
+ "pre-user-registration"?: {
44655
+ max_attempts?: number | undefined;
44656
+ rate?: number | undefined;
44657
+ } | undefined;
44658
+ "pre-login"?: {
44659
+ max_attempts?: number | undefined;
44660
+ rate?: number | undefined;
44661
+ } | undefined;
44662
+ } | undefined;
44663
+ } | undefined;
44664
+ }, {
44665
+ brute_force_protection?: {
44666
+ allowlist?: string[] | undefined;
44667
+ enabled?: boolean | undefined;
44668
+ shields?: string[] | undefined;
44669
+ mode?: string | undefined;
44670
+ max_attempts?: number | undefined;
44671
+ } | undefined;
44672
+ breached_password_detection?: {
44673
+ method?: string | undefined;
44674
+ enabled?: boolean | undefined;
44675
+ shields?: string[] | undefined;
44676
+ admin_notification_frequency?: string[] | undefined;
44677
+ stage?: {
44678
+ "pre-user-registration"?: {
44679
+ shields?: string[] | undefined;
44680
+ } | undefined;
44681
+ "pre-change-password"?: {
44682
+ shields?: string[] | undefined;
44683
+ } | undefined;
44684
+ } | undefined;
44685
+ } | undefined;
44686
+ suspicious_ip_throttling?: {
44687
+ allowlist?: string[] | undefined;
44688
+ enabled?: boolean | undefined;
44689
+ shields?: string[] | undefined;
44690
+ stage?: {
44691
+ "pre-user-registration"?: {
44692
+ max_attempts?: number | undefined;
44693
+ rate?: number | undefined;
44694
+ } | undefined;
44695
+ "pre-login"?: {
44696
+ max_attempts?: number | undefined;
44697
+ rate?: number | undefined;
44698
+ } | undefined;
44699
+ } | undefined;
44700
+ } | undefined;
44701
+ }>;
44702
+ export type AttackProtection = z.infer<typeof attackProtectionSchema>;
44089
44703
  export declare const passwordInsertSchema: z.ZodObject<{
44090
44704
  id: z.ZodOptional<z.ZodString>;
44091
44705
  user_id: z.ZodString;
@@ -44362,7 +44976,7 @@ export declare const tenantInsertSchema: z.ZodObject<{
44362
44976
  default_redirection_uri: z.ZodOptional<z.ZodString>;
44363
44977
  enabled_locales: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44364
44978
  default_directory: z.ZodOptional<z.ZodString>;
44365
- error_page: z.ZodOptional<z.ZodObject<{
44979
+ error_page: z.ZodOptional<z.ZodNullable<z.ZodObject<{
44366
44980
  html: z.ZodOptional<z.ZodString>;
44367
44981
  show_log_link: z.ZodOptional<z.ZodBoolean>;
44368
44982
  url: z.ZodOptional<z.ZodString>;
@@ -44374,7 +44988,7 @@ export declare const tenantInsertSchema: z.ZodObject<{
44374
44988
  url?: string | undefined;
44375
44989
  html?: string | undefined;
44376
44990
  show_log_link?: boolean | undefined;
44377
- }>>;
44991
+ }>>>;
44378
44992
  flags: z.ZodOptional<z.ZodObject<{
44379
44993
  allow_changing_enable_sso: z.ZodOptional<z.ZodBoolean>;
44380
44994
  allow_legacy_delegation_grant_types: z.ZodOptional<z.ZodBoolean>;
@@ -44523,7 +45137,7 @@ export declare const tenantInsertSchema: z.ZodObject<{
44523
45137
  charset?: "base20" | "digits" | undefined;
44524
45138
  mask?: string | undefined;
44525
45139
  }>>;
44526
- default_token_quota: z.ZodOptional<z.ZodObject<{
45140
+ default_token_quota: z.ZodOptional<z.ZodNullable<z.ZodObject<{
44527
45141
  clients: z.ZodOptional<z.ZodObject<{
44528
45142
  client_credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
44529
45143
  }, "strip", z.ZodTypeAny, {
@@ -44552,7 +45166,7 @@ export declare const tenantInsertSchema: z.ZodObject<{
44552
45166
  organizations?: {
44553
45167
  client_credentials?: Record<string, any> | undefined;
44554
45168
  } | undefined;
44555
- }>>;
45169
+ }>>>;
44556
45170
  default_audience: z.ZodOptional<z.ZodString>;
44557
45171
  default_organization: z.ZodOptional<z.ZodString>;
44558
45172
  sessions: z.ZodOptional<z.ZodObject<{
@@ -44572,15 +45186,245 @@ export declare const tenantInsertSchema: z.ZodObject<{
44572
45186
  allow_organization_name_in_authentication_api: z.ZodOptional<z.ZodBoolean>;
44573
45187
  customize_mfa_in_postlogin_action: z.ZodOptional<z.ZodBoolean>;
44574
45188
  acr_values_supported: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44575
- mtls: z.ZodOptional<z.ZodObject<{
45189
+ mtls: z.ZodOptional<z.ZodNullable<z.ZodObject<{
44576
45190
  enable_endpoint_aliases: z.ZodOptional<z.ZodBoolean>;
44577
45191
  }, "strip", z.ZodTypeAny, {
44578
45192
  enable_endpoint_aliases?: boolean | undefined;
44579
45193
  }, {
44580
45194
  enable_endpoint_aliases?: boolean | undefined;
44581
- }>>;
45195
+ }>>>;
44582
45196
  pushed_authorization_requests_supported: z.ZodOptional<z.ZodBoolean>;
44583
45197
  authorization_response_iss_parameter_supported: z.ZodOptional<z.ZodBoolean>;
45198
+ attack_protection: z.ZodOptional<z.ZodObject<{
45199
+ breached_password_detection: z.ZodOptional<z.ZodObject<{
45200
+ enabled: z.ZodOptional<z.ZodBoolean>;
45201
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
45202
+ admin_notification_frequency: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
45203
+ method: z.ZodOptional<z.ZodString>;
45204
+ stage: z.ZodOptional<z.ZodObject<{
45205
+ "pre-user-registration": z.ZodOptional<z.ZodObject<{
45206
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
45207
+ }, "strip", z.ZodTypeAny, {
45208
+ shields?: string[] | undefined;
45209
+ }, {
45210
+ shields?: string[] | undefined;
45211
+ }>>;
45212
+ "pre-change-password": z.ZodOptional<z.ZodObject<{
45213
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
45214
+ }, "strip", z.ZodTypeAny, {
45215
+ shields?: string[] | undefined;
45216
+ }, {
45217
+ shields?: string[] | undefined;
45218
+ }>>;
45219
+ }, "strip", z.ZodTypeAny, {
45220
+ "pre-user-registration"?: {
45221
+ shields?: string[] | undefined;
45222
+ } | undefined;
45223
+ "pre-change-password"?: {
45224
+ shields?: string[] | undefined;
45225
+ } | undefined;
45226
+ }, {
45227
+ "pre-user-registration"?: {
45228
+ shields?: string[] | undefined;
45229
+ } | undefined;
45230
+ "pre-change-password"?: {
45231
+ shields?: string[] | undefined;
45232
+ } | undefined;
45233
+ }>>;
45234
+ }, "strip", z.ZodTypeAny, {
45235
+ method?: string | undefined;
45236
+ enabled?: boolean | undefined;
45237
+ shields?: string[] | undefined;
45238
+ admin_notification_frequency?: string[] | undefined;
45239
+ stage?: {
45240
+ "pre-user-registration"?: {
45241
+ shields?: string[] | undefined;
45242
+ } | undefined;
45243
+ "pre-change-password"?: {
45244
+ shields?: string[] | undefined;
45245
+ } | undefined;
45246
+ } | undefined;
45247
+ }, {
45248
+ method?: string | undefined;
45249
+ enabled?: boolean | undefined;
45250
+ shields?: string[] | undefined;
45251
+ admin_notification_frequency?: string[] | undefined;
45252
+ stage?: {
45253
+ "pre-user-registration"?: {
45254
+ shields?: string[] | undefined;
45255
+ } | undefined;
45256
+ "pre-change-password"?: {
45257
+ shields?: string[] | undefined;
45258
+ } | undefined;
45259
+ } | undefined;
45260
+ }>>;
45261
+ brute_force_protection: z.ZodOptional<z.ZodObject<{
45262
+ enabled: z.ZodOptional<z.ZodBoolean>;
45263
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
45264
+ allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
45265
+ mode: z.ZodOptional<z.ZodString>;
45266
+ max_attempts: z.ZodOptional<z.ZodNumber>;
45267
+ }, "strip", z.ZodTypeAny, {
45268
+ allowlist?: string[] | undefined;
45269
+ enabled?: boolean | undefined;
45270
+ shields?: string[] | undefined;
45271
+ mode?: string | undefined;
45272
+ max_attempts?: number | undefined;
45273
+ }, {
45274
+ allowlist?: string[] | undefined;
45275
+ enabled?: boolean | undefined;
45276
+ shields?: string[] | undefined;
45277
+ mode?: string | undefined;
45278
+ max_attempts?: number | undefined;
45279
+ }>>;
45280
+ suspicious_ip_throttling: z.ZodOptional<z.ZodObject<{
45281
+ enabled: z.ZodOptional<z.ZodBoolean>;
45282
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
45283
+ allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
45284
+ stage: z.ZodOptional<z.ZodObject<{
45285
+ "pre-login": z.ZodOptional<z.ZodObject<{
45286
+ max_attempts: z.ZodOptional<z.ZodNumber>;
45287
+ rate: z.ZodOptional<z.ZodNumber>;
45288
+ }, "strip", z.ZodTypeAny, {
45289
+ max_attempts?: number | undefined;
45290
+ rate?: number | undefined;
45291
+ }, {
45292
+ max_attempts?: number | undefined;
45293
+ rate?: number | undefined;
45294
+ }>>;
45295
+ "pre-user-registration": z.ZodOptional<z.ZodObject<{
45296
+ max_attempts: z.ZodOptional<z.ZodNumber>;
45297
+ rate: z.ZodOptional<z.ZodNumber>;
45298
+ }, "strip", z.ZodTypeAny, {
45299
+ max_attempts?: number | undefined;
45300
+ rate?: number | undefined;
45301
+ }, {
45302
+ max_attempts?: number | undefined;
45303
+ rate?: number | undefined;
45304
+ }>>;
45305
+ }, "strip", z.ZodTypeAny, {
45306
+ "pre-user-registration"?: {
45307
+ max_attempts?: number | undefined;
45308
+ rate?: number | undefined;
45309
+ } | undefined;
45310
+ "pre-login"?: {
45311
+ max_attempts?: number | undefined;
45312
+ rate?: number | undefined;
45313
+ } | undefined;
45314
+ }, {
45315
+ "pre-user-registration"?: {
45316
+ max_attempts?: number | undefined;
45317
+ rate?: number | undefined;
45318
+ } | undefined;
45319
+ "pre-login"?: {
45320
+ max_attempts?: number | undefined;
45321
+ rate?: number | undefined;
45322
+ } | undefined;
45323
+ }>>;
45324
+ }, "strip", z.ZodTypeAny, {
45325
+ allowlist?: string[] | undefined;
45326
+ enabled?: boolean | undefined;
45327
+ shields?: string[] | undefined;
45328
+ stage?: {
45329
+ "pre-user-registration"?: {
45330
+ max_attempts?: number | undefined;
45331
+ rate?: number | undefined;
45332
+ } | undefined;
45333
+ "pre-login"?: {
45334
+ max_attempts?: number | undefined;
45335
+ rate?: number | undefined;
45336
+ } | undefined;
45337
+ } | undefined;
45338
+ }, {
45339
+ allowlist?: string[] | undefined;
45340
+ enabled?: boolean | undefined;
45341
+ shields?: string[] | undefined;
45342
+ stage?: {
45343
+ "pre-user-registration"?: {
45344
+ max_attempts?: number | undefined;
45345
+ rate?: number | undefined;
45346
+ } | undefined;
45347
+ "pre-login"?: {
45348
+ max_attempts?: number | undefined;
45349
+ rate?: number | undefined;
45350
+ } | undefined;
45351
+ } | undefined;
45352
+ }>>;
45353
+ }, "strip", z.ZodTypeAny, {
45354
+ brute_force_protection?: {
45355
+ allowlist?: string[] | undefined;
45356
+ enabled?: boolean | undefined;
45357
+ shields?: string[] | undefined;
45358
+ mode?: string | undefined;
45359
+ max_attempts?: number | undefined;
45360
+ } | undefined;
45361
+ breached_password_detection?: {
45362
+ method?: string | undefined;
45363
+ enabled?: boolean | undefined;
45364
+ shields?: string[] | undefined;
45365
+ admin_notification_frequency?: string[] | undefined;
45366
+ stage?: {
45367
+ "pre-user-registration"?: {
45368
+ shields?: string[] | undefined;
45369
+ } | undefined;
45370
+ "pre-change-password"?: {
45371
+ shields?: string[] | undefined;
45372
+ } | undefined;
45373
+ } | undefined;
45374
+ } | undefined;
45375
+ suspicious_ip_throttling?: {
45376
+ allowlist?: string[] | undefined;
45377
+ enabled?: boolean | undefined;
45378
+ shields?: string[] | undefined;
45379
+ stage?: {
45380
+ "pre-user-registration"?: {
45381
+ max_attempts?: number | undefined;
45382
+ rate?: number | undefined;
45383
+ } | undefined;
45384
+ "pre-login"?: {
45385
+ max_attempts?: number | undefined;
45386
+ rate?: number | undefined;
45387
+ } | undefined;
45388
+ } | undefined;
45389
+ } | undefined;
45390
+ }, {
45391
+ brute_force_protection?: {
45392
+ allowlist?: string[] | undefined;
45393
+ enabled?: boolean | undefined;
45394
+ shields?: string[] | undefined;
45395
+ mode?: string | undefined;
45396
+ max_attempts?: number | undefined;
45397
+ } | undefined;
45398
+ breached_password_detection?: {
45399
+ method?: string | undefined;
45400
+ enabled?: boolean | undefined;
45401
+ shields?: string[] | undefined;
45402
+ admin_notification_frequency?: string[] | undefined;
45403
+ stage?: {
45404
+ "pre-user-registration"?: {
45405
+ shields?: string[] | undefined;
45406
+ } | undefined;
45407
+ "pre-change-password"?: {
45408
+ shields?: string[] | undefined;
45409
+ } | undefined;
45410
+ } | undefined;
45411
+ } | undefined;
45412
+ suspicious_ip_throttling?: {
45413
+ allowlist?: string[] | undefined;
45414
+ enabled?: boolean | undefined;
45415
+ shields?: string[] | undefined;
45416
+ stage?: {
45417
+ "pre-user-registration"?: {
45418
+ max_attempts?: number | undefined;
45419
+ rate?: number | undefined;
45420
+ } | undefined;
45421
+ "pre-login"?: {
45422
+ max_attempts?: number | undefined;
45423
+ rate?: number | undefined;
45424
+ } | undefined;
45425
+ } | undefined;
45426
+ } | undefined;
45427
+ }>>;
44584
45428
  mfa: z.ZodOptional<z.ZodObject<{
44585
45429
  policy: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
44586
45430
  "never",
@@ -44726,7 +45570,7 @@ export declare const tenantInsertSchema: z.ZodObject<{
44726
45570
  url?: string | undefined;
44727
45571
  html?: string | undefined;
44728
45572
  show_log_link?: boolean | undefined;
44729
- } | undefined;
45573
+ } | null | undefined;
44730
45574
  flags?: {
44731
45575
  allow_changing_enable_sso?: boolean | undefined;
44732
45576
  allow_legacy_delegation_grant_types?: boolean | undefined;
@@ -44787,7 +45631,7 @@ export declare const tenantInsertSchema: z.ZodObject<{
44787
45631
  organizations?: {
44788
45632
  client_credentials?: Record<string, any> | undefined;
44789
45633
  } | undefined;
44790
- } | undefined;
45634
+ } | null | undefined;
44791
45635
  default_audience?: string | undefined;
44792
45636
  sessions?: {
44793
45637
  oidc_logout_prompt_enabled?: boolean | undefined;
@@ -44797,9 +45641,47 @@ export declare const tenantInsertSchema: z.ZodObject<{
44797
45641
  acr_values_supported?: string[] | undefined;
44798
45642
  mtls?: {
44799
45643
  enable_endpoint_aliases?: boolean | undefined;
44800
- } | undefined;
45644
+ } | null | undefined;
44801
45645
  pushed_authorization_requests_supported?: boolean | undefined;
44802
45646
  authorization_response_iss_parameter_supported?: boolean | undefined;
45647
+ attack_protection?: {
45648
+ brute_force_protection?: {
45649
+ allowlist?: string[] | undefined;
45650
+ enabled?: boolean | undefined;
45651
+ shields?: string[] | undefined;
45652
+ mode?: string | undefined;
45653
+ max_attempts?: number | undefined;
45654
+ } | undefined;
45655
+ breached_password_detection?: {
45656
+ method?: string | undefined;
45657
+ enabled?: boolean | undefined;
45658
+ shields?: string[] | undefined;
45659
+ admin_notification_frequency?: string[] | undefined;
45660
+ stage?: {
45661
+ "pre-user-registration"?: {
45662
+ shields?: string[] | undefined;
45663
+ } | undefined;
45664
+ "pre-change-password"?: {
45665
+ shields?: string[] | undefined;
45666
+ } | undefined;
45667
+ } | undefined;
45668
+ } | undefined;
45669
+ suspicious_ip_throttling?: {
45670
+ allowlist?: string[] | undefined;
45671
+ enabled?: boolean | undefined;
45672
+ shields?: string[] | undefined;
45673
+ stage?: {
45674
+ "pre-user-registration"?: {
45675
+ max_attempts?: number | undefined;
45676
+ rate?: number | undefined;
45677
+ } | undefined;
45678
+ "pre-login"?: {
45679
+ max_attempts?: number | undefined;
45680
+ rate?: number | undefined;
45681
+ } | undefined;
45682
+ } | undefined;
45683
+ } | undefined;
45684
+ } | undefined;
44803
45685
  mfa?: {
44804
45686
  policy?: "never" | "always" | undefined;
44805
45687
  factors?: {
@@ -44853,7 +45735,7 @@ export declare const tenantInsertSchema: z.ZodObject<{
44853
45735
  url?: string | undefined;
44854
45736
  html?: string | undefined;
44855
45737
  show_log_link?: boolean | undefined;
44856
- } | undefined;
45738
+ } | null | undefined;
44857
45739
  flags?: {
44858
45740
  allow_changing_enable_sso?: boolean | undefined;
44859
45741
  allow_legacy_delegation_grant_types?: boolean | undefined;
@@ -44914,7 +45796,7 @@ export declare const tenantInsertSchema: z.ZodObject<{
44914
45796
  organizations?: {
44915
45797
  client_credentials?: Record<string, any> | undefined;
44916
45798
  } | undefined;
44917
- } | undefined;
45799
+ } | null | undefined;
44918
45800
  default_audience?: string | undefined;
44919
45801
  sessions?: {
44920
45802
  oidc_logout_prompt_enabled?: boolean | undefined;
@@ -44924,9 +45806,47 @@ export declare const tenantInsertSchema: z.ZodObject<{
44924
45806
  acr_values_supported?: string[] | undefined;
44925
45807
  mtls?: {
44926
45808
  enable_endpoint_aliases?: boolean | undefined;
44927
- } | undefined;
45809
+ } | null | undefined;
44928
45810
  pushed_authorization_requests_supported?: boolean | undefined;
44929
45811
  authorization_response_iss_parameter_supported?: boolean | undefined;
45812
+ attack_protection?: {
45813
+ brute_force_protection?: {
45814
+ allowlist?: string[] | undefined;
45815
+ enabled?: boolean | undefined;
45816
+ shields?: string[] | undefined;
45817
+ mode?: string | undefined;
45818
+ max_attempts?: number | undefined;
45819
+ } | undefined;
45820
+ breached_password_detection?: {
45821
+ method?: string | undefined;
45822
+ enabled?: boolean | undefined;
45823
+ shields?: string[] | undefined;
45824
+ admin_notification_frequency?: string[] | undefined;
45825
+ stage?: {
45826
+ "pre-user-registration"?: {
45827
+ shields?: string[] | undefined;
45828
+ } | undefined;
45829
+ "pre-change-password"?: {
45830
+ shields?: string[] | undefined;
45831
+ } | undefined;
45832
+ } | undefined;
45833
+ } | undefined;
45834
+ suspicious_ip_throttling?: {
45835
+ allowlist?: string[] | undefined;
45836
+ enabled?: boolean | undefined;
45837
+ shields?: string[] | undefined;
45838
+ stage?: {
45839
+ "pre-user-registration"?: {
45840
+ max_attempts?: number | undefined;
45841
+ rate?: number | undefined;
45842
+ } | undefined;
45843
+ "pre-login"?: {
45844
+ max_attempts?: number | undefined;
45845
+ rate?: number | undefined;
45846
+ } | undefined;
45847
+ } | undefined;
45848
+ } | undefined;
45849
+ } | undefined;
44930
45850
  mfa?: {
44931
45851
  policy?: "never" | "always" | undefined;
44932
45852
  factors?: {
@@ -44980,7 +45900,7 @@ export declare const tenantSchema: z.ZodObject<{
44980
45900
  default_redirection_uri: z.ZodOptional<z.ZodString>;
44981
45901
  enabled_locales: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44982
45902
  default_directory: z.ZodOptional<z.ZodString>;
44983
- error_page: z.ZodOptional<z.ZodObject<{
45903
+ error_page: z.ZodOptional<z.ZodNullable<z.ZodObject<{
44984
45904
  html: z.ZodOptional<z.ZodString>;
44985
45905
  show_log_link: z.ZodOptional<z.ZodBoolean>;
44986
45906
  url: z.ZodOptional<z.ZodString>;
@@ -44992,7 +45912,7 @@ export declare const tenantSchema: z.ZodObject<{
44992
45912
  url?: string | undefined;
44993
45913
  html?: string | undefined;
44994
45914
  show_log_link?: boolean | undefined;
44995
- }>>;
45915
+ }>>>;
44996
45916
  flags: z.ZodOptional<z.ZodObject<{
44997
45917
  allow_changing_enable_sso: z.ZodOptional<z.ZodBoolean>;
44998
45918
  allow_legacy_delegation_grant_types: z.ZodOptional<z.ZodBoolean>;
@@ -45141,7 +46061,7 @@ export declare const tenantSchema: z.ZodObject<{
45141
46061
  charset?: "base20" | "digits" | undefined;
45142
46062
  mask?: string | undefined;
45143
46063
  }>>;
45144
- default_token_quota: z.ZodOptional<z.ZodObject<{
46064
+ default_token_quota: z.ZodOptional<z.ZodNullable<z.ZodObject<{
45145
46065
  clients: z.ZodOptional<z.ZodObject<{
45146
46066
  client_credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
45147
46067
  }, "strip", z.ZodTypeAny, {
@@ -45170,7 +46090,7 @@ export declare const tenantSchema: z.ZodObject<{
45170
46090
  organizations?: {
45171
46091
  client_credentials?: Record<string, any> | undefined;
45172
46092
  } | undefined;
45173
- }>>;
46093
+ }>>>;
45174
46094
  default_audience: z.ZodOptional<z.ZodString>;
45175
46095
  default_organization: z.ZodOptional<z.ZodString>;
45176
46096
  sessions: z.ZodOptional<z.ZodObject<{
@@ -45190,15 +46110,245 @@ export declare const tenantSchema: z.ZodObject<{
45190
46110
  allow_organization_name_in_authentication_api: z.ZodOptional<z.ZodBoolean>;
45191
46111
  customize_mfa_in_postlogin_action: z.ZodOptional<z.ZodBoolean>;
45192
46112
  acr_values_supported: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
45193
- mtls: z.ZodOptional<z.ZodObject<{
46113
+ mtls: z.ZodOptional<z.ZodNullable<z.ZodObject<{
45194
46114
  enable_endpoint_aliases: z.ZodOptional<z.ZodBoolean>;
45195
46115
  }, "strip", z.ZodTypeAny, {
45196
46116
  enable_endpoint_aliases?: boolean | undefined;
45197
46117
  }, {
45198
46118
  enable_endpoint_aliases?: boolean | undefined;
45199
- }>>;
46119
+ }>>>;
45200
46120
  pushed_authorization_requests_supported: z.ZodOptional<z.ZodBoolean>;
45201
46121
  authorization_response_iss_parameter_supported: z.ZodOptional<z.ZodBoolean>;
46122
+ attack_protection: z.ZodOptional<z.ZodObject<{
46123
+ breached_password_detection: z.ZodOptional<z.ZodObject<{
46124
+ enabled: z.ZodOptional<z.ZodBoolean>;
46125
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
46126
+ admin_notification_frequency: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
46127
+ method: z.ZodOptional<z.ZodString>;
46128
+ stage: z.ZodOptional<z.ZodObject<{
46129
+ "pre-user-registration": z.ZodOptional<z.ZodObject<{
46130
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
46131
+ }, "strip", z.ZodTypeAny, {
46132
+ shields?: string[] | undefined;
46133
+ }, {
46134
+ shields?: string[] | undefined;
46135
+ }>>;
46136
+ "pre-change-password": z.ZodOptional<z.ZodObject<{
46137
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
46138
+ }, "strip", z.ZodTypeAny, {
46139
+ shields?: string[] | undefined;
46140
+ }, {
46141
+ shields?: string[] | undefined;
46142
+ }>>;
46143
+ }, "strip", z.ZodTypeAny, {
46144
+ "pre-user-registration"?: {
46145
+ shields?: string[] | undefined;
46146
+ } | undefined;
46147
+ "pre-change-password"?: {
46148
+ shields?: string[] | undefined;
46149
+ } | undefined;
46150
+ }, {
46151
+ "pre-user-registration"?: {
46152
+ shields?: string[] | undefined;
46153
+ } | undefined;
46154
+ "pre-change-password"?: {
46155
+ shields?: string[] | undefined;
46156
+ } | undefined;
46157
+ }>>;
46158
+ }, "strip", z.ZodTypeAny, {
46159
+ method?: string | undefined;
46160
+ enabled?: boolean | undefined;
46161
+ shields?: string[] | undefined;
46162
+ admin_notification_frequency?: string[] | undefined;
46163
+ stage?: {
46164
+ "pre-user-registration"?: {
46165
+ shields?: string[] | undefined;
46166
+ } | undefined;
46167
+ "pre-change-password"?: {
46168
+ shields?: string[] | undefined;
46169
+ } | undefined;
46170
+ } | undefined;
46171
+ }, {
46172
+ method?: string | undefined;
46173
+ enabled?: boolean | undefined;
46174
+ shields?: string[] | undefined;
46175
+ admin_notification_frequency?: string[] | undefined;
46176
+ stage?: {
46177
+ "pre-user-registration"?: {
46178
+ shields?: string[] | undefined;
46179
+ } | undefined;
46180
+ "pre-change-password"?: {
46181
+ shields?: string[] | undefined;
46182
+ } | undefined;
46183
+ } | undefined;
46184
+ }>>;
46185
+ brute_force_protection: z.ZodOptional<z.ZodObject<{
46186
+ enabled: z.ZodOptional<z.ZodBoolean>;
46187
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
46188
+ allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
46189
+ mode: z.ZodOptional<z.ZodString>;
46190
+ max_attempts: z.ZodOptional<z.ZodNumber>;
46191
+ }, "strip", z.ZodTypeAny, {
46192
+ allowlist?: string[] | undefined;
46193
+ enabled?: boolean | undefined;
46194
+ shields?: string[] | undefined;
46195
+ mode?: string | undefined;
46196
+ max_attempts?: number | undefined;
46197
+ }, {
46198
+ allowlist?: string[] | undefined;
46199
+ enabled?: boolean | undefined;
46200
+ shields?: string[] | undefined;
46201
+ mode?: string | undefined;
46202
+ max_attempts?: number | undefined;
46203
+ }>>;
46204
+ suspicious_ip_throttling: z.ZodOptional<z.ZodObject<{
46205
+ enabled: z.ZodOptional<z.ZodBoolean>;
46206
+ shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
46207
+ allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
46208
+ stage: z.ZodOptional<z.ZodObject<{
46209
+ "pre-login": z.ZodOptional<z.ZodObject<{
46210
+ max_attempts: z.ZodOptional<z.ZodNumber>;
46211
+ rate: z.ZodOptional<z.ZodNumber>;
46212
+ }, "strip", z.ZodTypeAny, {
46213
+ max_attempts?: number | undefined;
46214
+ rate?: number | undefined;
46215
+ }, {
46216
+ max_attempts?: number | undefined;
46217
+ rate?: number | undefined;
46218
+ }>>;
46219
+ "pre-user-registration": z.ZodOptional<z.ZodObject<{
46220
+ max_attempts: z.ZodOptional<z.ZodNumber>;
46221
+ rate: z.ZodOptional<z.ZodNumber>;
46222
+ }, "strip", z.ZodTypeAny, {
46223
+ max_attempts?: number | undefined;
46224
+ rate?: number | undefined;
46225
+ }, {
46226
+ max_attempts?: number | undefined;
46227
+ rate?: number | undefined;
46228
+ }>>;
46229
+ }, "strip", z.ZodTypeAny, {
46230
+ "pre-user-registration"?: {
46231
+ max_attempts?: number | undefined;
46232
+ rate?: number | undefined;
46233
+ } | undefined;
46234
+ "pre-login"?: {
46235
+ max_attempts?: number | undefined;
46236
+ rate?: number | undefined;
46237
+ } | undefined;
46238
+ }, {
46239
+ "pre-user-registration"?: {
46240
+ max_attempts?: number | undefined;
46241
+ rate?: number | undefined;
46242
+ } | undefined;
46243
+ "pre-login"?: {
46244
+ max_attempts?: number | undefined;
46245
+ rate?: number | undefined;
46246
+ } | undefined;
46247
+ }>>;
46248
+ }, "strip", z.ZodTypeAny, {
46249
+ allowlist?: string[] | undefined;
46250
+ enabled?: boolean | undefined;
46251
+ shields?: string[] | undefined;
46252
+ stage?: {
46253
+ "pre-user-registration"?: {
46254
+ max_attempts?: number | undefined;
46255
+ rate?: number | undefined;
46256
+ } | undefined;
46257
+ "pre-login"?: {
46258
+ max_attempts?: number | undefined;
46259
+ rate?: number | undefined;
46260
+ } | undefined;
46261
+ } | undefined;
46262
+ }, {
46263
+ allowlist?: string[] | undefined;
46264
+ enabled?: boolean | undefined;
46265
+ shields?: string[] | undefined;
46266
+ stage?: {
46267
+ "pre-user-registration"?: {
46268
+ max_attempts?: number | undefined;
46269
+ rate?: number | undefined;
46270
+ } | undefined;
46271
+ "pre-login"?: {
46272
+ max_attempts?: number | undefined;
46273
+ rate?: number | undefined;
46274
+ } | undefined;
46275
+ } | undefined;
46276
+ }>>;
46277
+ }, "strip", z.ZodTypeAny, {
46278
+ brute_force_protection?: {
46279
+ allowlist?: string[] | undefined;
46280
+ enabled?: boolean | undefined;
46281
+ shields?: string[] | undefined;
46282
+ mode?: string | undefined;
46283
+ max_attempts?: number | undefined;
46284
+ } | undefined;
46285
+ breached_password_detection?: {
46286
+ method?: string | undefined;
46287
+ enabled?: boolean | undefined;
46288
+ shields?: string[] | undefined;
46289
+ admin_notification_frequency?: string[] | undefined;
46290
+ stage?: {
46291
+ "pre-user-registration"?: {
46292
+ shields?: string[] | undefined;
46293
+ } | undefined;
46294
+ "pre-change-password"?: {
46295
+ shields?: string[] | undefined;
46296
+ } | undefined;
46297
+ } | undefined;
46298
+ } | undefined;
46299
+ suspicious_ip_throttling?: {
46300
+ allowlist?: string[] | undefined;
46301
+ enabled?: boolean | undefined;
46302
+ shields?: string[] | undefined;
46303
+ stage?: {
46304
+ "pre-user-registration"?: {
46305
+ max_attempts?: number | undefined;
46306
+ rate?: number | undefined;
46307
+ } | undefined;
46308
+ "pre-login"?: {
46309
+ max_attempts?: number | undefined;
46310
+ rate?: number | undefined;
46311
+ } | undefined;
46312
+ } | undefined;
46313
+ } | undefined;
46314
+ }, {
46315
+ brute_force_protection?: {
46316
+ allowlist?: string[] | undefined;
46317
+ enabled?: boolean | undefined;
46318
+ shields?: string[] | undefined;
46319
+ mode?: string | undefined;
46320
+ max_attempts?: number | undefined;
46321
+ } | undefined;
46322
+ breached_password_detection?: {
46323
+ method?: string | undefined;
46324
+ enabled?: boolean | undefined;
46325
+ shields?: string[] | undefined;
46326
+ admin_notification_frequency?: string[] | undefined;
46327
+ stage?: {
46328
+ "pre-user-registration"?: {
46329
+ shields?: string[] | undefined;
46330
+ } | undefined;
46331
+ "pre-change-password"?: {
46332
+ shields?: string[] | undefined;
46333
+ } | undefined;
46334
+ } | undefined;
46335
+ } | undefined;
46336
+ suspicious_ip_throttling?: {
46337
+ allowlist?: string[] | undefined;
46338
+ enabled?: boolean | undefined;
46339
+ shields?: string[] | undefined;
46340
+ stage?: {
46341
+ "pre-user-registration"?: {
46342
+ max_attempts?: number | undefined;
46343
+ rate?: number | undefined;
46344
+ } | undefined;
46345
+ "pre-login"?: {
46346
+ max_attempts?: number | undefined;
46347
+ rate?: number | undefined;
46348
+ } | undefined;
46349
+ } | undefined;
46350
+ } | undefined;
46351
+ }>>;
45202
46352
  mfa: z.ZodOptional<z.ZodObject<{
45203
46353
  policy: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
45204
46354
  "never",
@@ -45348,7 +46498,7 @@ export declare const tenantSchema: z.ZodObject<{
45348
46498
  url?: string | undefined;
45349
46499
  html?: string | undefined;
45350
46500
  show_log_link?: boolean | undefined;
45351
- } | undefined;
46501
+ } | null | undefined;
45352
46502
  flags?: {
45353
46503
  allow_changing_enable_sso?: boolean | undefined;
45354
46504
  allow_legacy_delegation_grant_types?: boolean | undefined;
@@ -45409,7 +46559,7 @@ export declare const tenantSchema: z.ZodObject<{
45409
46559
  organizations?: {
45410
46560
  client_credentials?: Record<string, any> | undefined;
45411
46561
  } | undefined;
45412
- } | undefined;
46562
+ } | null | undefined;
45413
46563
  default_audience?: string | undefined;
45414
46564
  sessions?: {
45415
46565
  oidc_logout_prompt_enabled?: boolean | undefined;
@@ -45419,9 +46569,47 @@ export declare const tenantSchema: z.ZodObject<{
45419
46569
  acr_values_supported?: string[] | undefined;
45420
46570
  mtls?: {
45421
46571
  enable_endpoint_aliases?: boolean | undefined;
45422
- } | undefined;
46572
+ } | null | undefined;
45423
46573
  pushed_authorization_requests_supported?: boolean | undefined;
45424
46574
  authorization_response_iss_parameter_supported?: boolean | undefined;
46575
+ attack_protection?: {
46576
+ brute_force_protection?: {
46577
+ allowlist?: string[] | undefined;
46578
+ enabled?: boolean | undefined;
46579
+ shields?: string[] | undefined;
46580
+ mode?: string | undefined;
46581
+ max_attempts?: number | undefined;
46582
+ } | undefined;
46583
+ breached_password_detection?: {
46584
+ method?: string | undefined;
46585
+ enabled?: boolean | undefined;
46586
+ shields?: string[] | undefined;
46587
+ admin_notification_frequency?: string[] | undefined;
46588
+ stage?: {
46589
+ "pre-user-registration"?: {
46590
+ shields?: string[] | undefined;
46591
+ } | undefined;
46592
+ "pre-change-password"?: {
46593
+ shields?: string[] | undefined;
46594
+ } | undefined;
46595
+ } | undefined;
46596
+ } | undefined;
46597
+ suspicious_ip_throttling?: {
46598
+ allowlist?: string[] | undefined;
46599
+ enabled?: boolean | undefined;
46600
+ shields?: string[] | undefined;
46601
+ stage?: {
46602
+ "pre-user-registration"?: {
46603
+ max_attempts?: number | undefined;
46604
+ rate?: number | undefined;
46605
+ } | undefined;
46606
+ "pre-login"?: {
46607
+ max_attempts?: number | undefined;
46608
+ rate?: number | undefined;
46609
+ } | undefined;
46610
+ } | undefined;
46611
+ } | undefined;
46612
+ } | undefined;
45425
46613
  mfa?: {
45426
46614
  policy?: "never" | "always" | undefined;
45427
46615
  factors?: {
@@ -45477,7 +46665,7 @@ export declare const tenantSchema: z.ZodObject<{
45477
46665
  url?: string | undefined;
45478
46666
  html?: string | undefined;
45479
46667
  show_log_link?: boolean | undefined;
45480
- } | undefined;
46668
+ } | null | undefined;
45481
46669
  flags?: {
45482
46670
  allow_changing_enable_sso?: boolean | undefined;
45483
46671
  allow_legacy_delegation_grant_types?: boolean | undefined;
@@ -45538,7 +46726,7 @@ export declare const tenantSchema: z.ZodObject<{
45538
46726
  organizations?: {
45539
46727
  client_credentials?: Record<string, any> | undefined;
45540
46728
  } | undefined;
45541
- } | undefined;
46729
+ } | null | undefined;
45542
46730
  default_audience?: string | undefined;
45543
46731
  sessions?: {
45544
46732
  oidc_logout_prompt_enabled?: boolean | undefined;
@@ -45548,9 +46736,47 @@ export declare const tenantSchema: z.ZodObject<{
45548
46736
  acr_values_supported?: string[] | undefined;
45549
46737
  mtls?: {
45550
46738
  enable_endpoint_aliases?: boolean | undefined;
45551
- } | undefined;
46739
+ } | null | undefined;
45552
46740
  pushed_authorization_requests_supported?: boolean | undefined;
45553
46741
  authorization_response_iss_parameter_supported?: boolean | undefined;
46742
+ attack_protection?: {
46743
+ brute_force_protection?: {
46744
+ allowlist?: string[] | undefined;
46745
+ enabled?: boolean | undefined;
46746
+ shields?: string[] | undefined;
46747
+ mode?: string | undefined;
46748
+ max_attempts?: number | undefined;
46749
+ } | undefined;
46750
+ breached_password_detection?: {
46751
+ method?: string | undefined;
46752
+ enabled?: boolean | undefined;
46753
+ shields?: string[] | undefined;
46754
+ admin_notification_frequency?: string[] | undefined;
46755
+ stage?: {
46756
+ "pre-user-registration"?: {
46757
+ shields?: string[] | undefined;
46758
+ } | undefined;
46759
+ "pre-change-password"?: {
46760
+ shields?: string[] | undefined;
46761
+ } | undefined;
46762
+ } | undefined;
46763
+ } | undefined;
46764
+ suspicious_ip_throttling?: {
46765
+ allowlist?: string[] | undefined;
46766
+ enabled?: boolean | undefined;
46767
+ shields?: string[] | undefined;
46768
+ stage?: {
46769
+ "pre-user-registration"?: {
46770
+ max_attempts?: number | undefined;
46771
+ rate?: number | undefined;
46772
+ } | undefined;
46773
+ "pre-login"?: {
46774
+ max_attempts?: number | undefined;
46775
+ rate?: number | undefined;
46776
+ } | undefined;
46777
+ } | undefined;
46778
+ } | undefined;
46779
+ } | undefined;
45554
46780
  mfa?: {
45555
46781
  policy?: "never" | "always" | undefined;
45556
46782
  factors?: {
@@ -46797,113 +48023,17 @@ export declare const emailProviderSchema: z.ZodObject<{
46797
48023
  name: z.ZodString;
46798
48024
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
46799
48025
  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
- ]>;
48026
+ credentials: z.ZodRecord<z.ZodString, z.ZodUnknown>;
46861
48027
  settings: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
46862
48028
  }, "strip", z.ZodTypeAny, {
46863
48029
  name: string;
46864
48030
  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
- };
48031
+ credentials: Record<string, unknown>;
46884
48032
  default_from_address?: string | undefined;
46885
48033
  settings?: {} | undefined;
46886
48034
  }, {
46887
48035
  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
- };
48036
+ credentials: Record<string, unknown>;
46907
48037
  enabled?: boolean | undefined;
46908
48038
  default_from_address?: string | undefined;
46909
48039
  settings?: {} | undefined;
@@ -46950,10 +48080,16 @@ export declare const refreshTokenInsertSchema: z.ZodObject<{
46950
48080
  audience: string;
46951
48081
  }>, "many">;
46952
48082
  rotating: z.ZodBoolean;
48083
+ token_lookup: z.ZodOptional<z.ZodString>;
48084
+ token_hash: z.ZodOptional<z.ZodString>;
48085
+ family_id: z.ZodOptional<z.ZodString>;
48086
+ rotated_to: z.ZodOptional<z.ZodString>;
48087
+ rotated_at: z.ZodOptional<z.ZodString>;
46953
48088
  }, "strip", z.ZodTypeAny, {
46954
48089
  id: string;
46955
48090
  client_id: string;
46956
48091
  user_id: string;
48092
+ rotating: boolean;
46957
48093
  login_id: string;
46958
48094
  device: {
46959
48095
  last_ip: string;
@@ -46967,14 +48103,19 @@ export declare const refreshTokenInsertSchema: z.ZodObject<{
46967
48103
  scopes: string;
46968
48104
  audience: string;
46969
48105
  }[];
46970
- rotating: boolean;
48106
+ token_hash?: string | undefined;
46971
48107
  expires_at?: string | undefined;
46972
48108
  idle_expires_at?: string | undefined;
46973
48109
  last_exchanged_at?: string | undefined;
48110
+ token_lookup?: string | undefined;
48111
+ family_id?: string | undefined;
48112
+ rotated_to?: string | undefined;
48113
+ rotated_at?: string | undefined;
46974
48114
  }, {
46975
48115
  id: string;
46976
48116
  client_id: string;
46977
48117
  user_id: string;
48118
+ rotating: boolean;
46978
48119
  login_id: string;
46979
48120
  device: {
46980
48121
  last_ip: string;
@@ -46988,10 +48129,14 @@ export declare const refreshTokenInsertSchema: z.ZodObject<{
46988
48129
  scopes: string;
46989
48130
  audience: string;
46990
48131
  }[];
46991
- rotating: boolean;
48132
+ token_hash?: string | undefined;
46992
48133
  expires_at?: string | undefined;
46993
48134
  idle_expires_at?: string | undefined;
46994
48135
  last_exchanged_at?: string | undefined;
48136
+ token_lookup?: string | undefined;
48137
+ family_id?: string | undefined;
48138
+ rotated_to?: string | undefined;
48139
+ rotated_at?: string | undefined;
46995
48140
  }>;
46996
48141
  export type RefreshTokenInsert = z.infer<typeof refreshTokenInsertSchema>;
46997
48142
  export declare const refreshTokenSchema: z.ZodObject<{
@@ -47035,6 +48180,11 @@ export declare const refreshTokenSchema: z.ZodObject<{
47035
48180
  audience: string;
47036
48181
  }>, "many">;
47037
48182
  rotating: z.ZodBoolean;
48183
+ token_lookup: z.ZodOptional<z.ZodString>;
48184
+ token_hash: z.ZodOptional<z.ZodString>;
48185
+ family_id: z.ZodOptional<z.ZodString>;
48186
+ rotated_to: z.ZodOptional<z.ZodString>;
48187
+ rotated_at: z.ZodOptional<z.ZodString>;
47038
48188
  created_at: z.ZodString;
47039
48189
  revoked_at: z.ZodOptional<z.ZodString>;
47040
48190
  }, "strip", z.ZodTypeAny, {
@@ -47042,6 +48192,7 @@ export declare const refreshTokenSchema: z.ZodObject<{
47042
48192
  id: string;
47043
48193
  client_id: string;
47044
48194
  user_id: string;
48195
+ rotating: boolean;
47045
48196
  login_id: string;
47046
48197
  device: {
47047
48198
  last_ip: string;
@@ -47055,16 +48206,21 @@ export declare const refreshTokenSchema: z.ZodObject<{
47055
48206
  scopes: string;
47056
48207
  audience: string;
47057
48208
  }[];
47058
- rotating: boolean;
48209
+ token_hash?: string | undefined;
47059
48210
  expires_at?: string | undefined;
47060
48211
  revoked_at?: string | undefined;
47061
48212
  idle_expires_at?: string | undefined;
47062
48213
  last_exchanged_at?: string | undefined;
48214
+ token_lookup?: string | undefined;
48215
+ family_id?: string | undefined;
48216
+ rotated_to?: string | undefined;
48217
+ rotated_at?: string | undefined;
47063
48218
  }, {
47064
48219
  created_at: string;
47065
48220
  id: string;
47066
48221
  client_id: string;
47067
48222
  user_id: string;
48223
+ rotating: boolean;
47068
48224
  login_id: string;
47069
48225
  device: {
47070
48226
  last_ip: string;
@@ -47078,11 +48234,15 @@ export declare const refreshTokenSchema: z.ZodObject<{
47078
48234
  scopes: string;
47079
48235
  audience: string;
47080
48236
  }[];
47081
- rotating: boolean;
48237
+ token_hash?: string | undefined;
47082
48238
  expires_at?: string | undefined;
47083
48239
  revoked_at?: string | undefined;
47084
48240
  idle_expires_at?: string | undefined;
47085
48241
  last_exchanged_at?: string | undefined;
48242
+ token_lookup?: string | undefined;
48243
+ family_id?: string | undefined;
48244
+ rotated_to?: string | undefined;
48245
+ rotated_at?: string | undefined;
47086
48246
  }>;
47087
48247
  export type RefreshToken = z.infer<typeof refreshTokenSchema>;
47088
48248
  export declare const smsSendParamsSchema: z.ZodObject<{
@@ -47220,8 +48380,8 @@ export declare const resourceServerInsertSchema: z.ZodObject<{
47220
48380
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
47221
48381
  }, "strip", z.ZodTypeAny, {
47222
48382
  name: string;
47223
- identifier: string;
47224
48383
  token_lifetime: number;
48384
+ identifier: string;
47225
48385
  token_lifetime_for_web: number;
47226
48386
  options?: {
47227
48387
  mtls?: {
@@ -47265,11 +48425,11 @@ export declare const resourceServerInsertSchema: z.ZodObject<{
47265
48425
  value: string;
47266
48426
  description?: string | undefined;
47267
48427
  }[] | undefined;
48428
+ token_lifetime?: number | undefined;
47268
48429
  is_system?: boolean | undefined;
47269
48430
  metadata?: Record<string, any> | undefined;
47270
48431
  signing_alg?: string | undefined;
47271
48432
  signing_secret?: string | undefined;
47272
- token_lifetime?: number | undefined;
47273
48433
  token_lifetime_for_web?: number | undefined;
47274
48434
  skip_consent_for_verifiable_first_party_clients?: boolean | undefined;
47275
48435
  allow_offline_access?: boolean | undefined;
@@ -47341,8 +48501,8 @@ export declare const resourceServerSchema: z.ZodObject<{
47341
48501
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
47342
48502
  }, "strip", z.ZodTypeAny, {
47343
48503
  name: string;
47344
- identifier: string;
47345
48504
  token_lifetime: number;
48505
+ identifier: string;
47346
48506
  token_lifetime_for_web: number;
47347
48507
  created_at?: string | undefined;
47348
48508
  updated_at?: string | undefined;
@@ -47390,11 +48550,11 @@ export declare const resourceServerSchema: z.ZodObject<{
47390
48550
  value: string;
47391
48551
  description?: string | undefined;
47392
48552
  }[] | undefined;
48553
+ token_lifetime?: number | undefined;
47393
48554
  is_system?: boolean | undefined;
47394
48555
  metadata?: Record<string, any> | undefined;
47395
48556
  signing_alg?: string | undefined;
47396
48557
  signing_secret?: string | undefined;
47397
- token_lifetime?: number | undefined;
47398
48558
  token_lifetime_for_web?: number | undefined;
47399
48559
  skip_consent_for_verifiable_first_party_clients?: boolean | undefined;
47400
48560
  allow_offline_access?: boolean | undefined;
@@ -47466,8 +48626,8 @@ export declare const resourceServerListSchema: z.ZodArray<z.ZodObject<{
47466
48626
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
47467
48627
  }, "strip", z.ZodTypeAny, {
47468
48628
  name: string;
47469
- identifier: string;
47470
48629
  token_lifetime: number;
48630
+ identifier: string;
47471
48631
  token_lifetime_for_web: number;
47472
48632
  created_at?: string | undefined;
47473
48633
  updated_at?: string | undefined;
@@ -47515,11 +48675,11 @@ export declare const resourceServerListSchema: z.ZodArray<z.ZodObject<{
47515
48675
  value: string;
47516
48676
  description?: string | undefined;
47517
48677
  }[] | undefined;
48678
+ token_lifetime?: number | undefined;
47518
48679
  is_system?: boolean | undefined;
47519
48680
  metadata?: Record<string, any> | undefined;
47520
48681
  signing_alg?: string | undefined;
47521
48682
  signing_secret?: string | undefined;
47522
- token_lifetime?: number | undefined;
47523
48683
  token_lifetime_for_web?: number | undefined;
47524
48684
  skip_consent_for_verifiable_first_party_clients?: boolean | undefined;
47525
48685
  allow_offline_access?: boolean | undefined;
@@ -48141,6 +49301,105 @@ export declare const organizationSchema: z.ZodObject<{
48141
49301
  }[] | undefined;
48142
49302
  }>;
48143
49303
  export type Organization = z.infer<typeof organizationSchema>;
49304
+ export declare const organizationConnectionInsertSchema: z.ZodObject<{
49305
+ connection_id: z.ZodString;
49306
+ assign_membership_on_login: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
49307
+ show_as_button: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
49308
+ is_signup_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
49309
+ }, "strip", z.ZodTypeAny, {
49310
+ connection_id: string;
49311
+ show_as_button: boolean;
49312
+ assign_membership_on_login: boolean;
49313
+ is_signup_enabled: boolean;
49314
+ }, {
49315
+ connection_id: string;
49316
+ show_as_button?: boolean | undefined;
49317
+ assign_membership_on_login?: boolean | undefined;
49318
+ is_signup_enabled?: boolean | undefined;
49319
+ }>;
49320
+ export type OrganizationConnectionInsert = z.input<typeof organizationConnectionInsertSchema>;
49321
+ export declare const organizationConnectionSchema: z.ZodObject<{
49322
+ connection: z.ZodOptional<z.ZodObject<{
49323
+ name: z.ZodOptional<z.ZodString>;
49324
+ strategy: z.ZodOptional<z.ZodString>;
49325
+ }, "strip", z.ZodTypeAny, {
49326
+ name?: string | undefined;
49327
+ strategy?: string | undefined;
49328
+ }, {
49329
+ name?: string | undefined;
49330
+ strategy?: string | undefined;
49331
+ }>>;
49332
+ created_at: z.ZodOptional<z.ZodString>;
49333
+ updated_at: z.ZodOptional<z.ZodString>;
49334
+ connection_id: z.ZodString;
49335
+ assign_membership_on_login: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
49336
+ show_as_button: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
49337
+ is_signup_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
49338
+ }, "strip", z.ZodTypeAny, {
49339
+ connection_id: string;
49340
+ show_as_button: boolean;
49341
+ assign_membership_on_login: boolean;
49342
+ is_signup_enabled: boolean;
49343
+ created_at?: string | undefined;
49344
+ updated_at?: string | undefined;
49345
+ connection?: {
49346
+ name?: string | undefined;
49347
+ strategy?: string | undefined;
49348
+ } | undefined;
49349
+ }, {
49350
+ connection_id: string;
49351
+ created_at?: string | undefined;
49352
+ updated_at?: string | undefined;
49353
+ connection?: {
49354
+ name?: string | undefined;
49355
+ strategy?: string | undefined;
49356
+ } | undefined;
49357
+ show_as_button?: boolean | undefined;
49358
+ assign_membership_on_login?: boolean | undefined;
49359
+ is_signup_enabled?: boolean | undefined;
49360
+ }>;
49361
+ export type OrganizationConnection = z.infer<typeof organizationConnectionSchema>;
49362
+ export declare const organizationConnectionListSchema: z.ZodArray<z.ZodObject<{
49363
+ connection: z.ZodOptional<z.ZodObject<{
49364
+ name: z.ZodOptional<z.ZodString>;
49365
+ strategy: z.ZodOptional<z.ZodString>;
49366
+ }, "strip", z.ZodTypeAny, {
49367
+ name?: string | undefined;
49368
+ strategy?: string | undefined;
49369
+ }, {
49370
+ name?: string | undefined;
49371
+ strategy?: string | undefined;
49372
+ }>>;
49373
+ created_at: z.ZodOptional<z.ZodString>;
49374
+ updated_at: z.ZodOptional<z.ZodString>;
49375
+ connection_id: z.ZodString;
49376
+ assign_membership_on_login: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
49377
+ show_as_button: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
49378
+ is_signup_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
49379
+ }, "strip", z.ZodTypeAny, {
49380
+ connection_id: string;
49381
+ show_as_button: boolean;
49382
+ assign_membership_on_login: boolean;
49383
+ is_signup_enabled: boolean;
49384
+ created_at?: string | undefined;
49385
+ updated_at?: string | undefined;
49386
+ connection?: {
49387
+ name?: string | undefined;
49388
+ strategy?: string | undefined;
49389
+ } | undefined;
49390
+ }, {
49391
+ connection_id: string;
49392
+ created_at?: string | undefined;
49393
+ updated_at?: string | undefined;
49394
+ connection?: {
49395
+ name?: string | undefined;
49396
+ strategy?: string | undefined;
49397
+ } | undefined;
49398
+ show_as_button?: boolean | undefined;
49399
+ assign_membership_on_login?: boolean | undefined;
49400
+ is_signup_enabled?: boolean | undefined;
49401
+ }>, "many">;
49402
+ export type OrganizationConnectionList = z.infer<typeof organizationConnectionListSchema>;
48144
49403
  export declare const userOrganizationInsertSchema: z.ZodObject<{
48145
49404
  user_id: z.ZodString;
48146
49405
  organization_id: z.ZodString;
@@ -49225,6 +50484,13 @@ export interface LogsDataAdapter {
49225
50484
  list(tenantId: string, params?: ListParams): Promise<ListLogsResponse>;
49226
50485
  get(tenantId: string, logId: string): Promise<Log | null>;
49227
50486
  }
50487
+ export interface LogStreamsAdapter {
50488
+ create(tenant_id: string, params: LogStreamInsert): Promise<LogStream>;
50489
+ get(tenant_id: string, id: string): Promise<LogStream | null>;
50490
+ list(tenant_id: string): Promise<LogStream[]>;
50491
+ update(tenant_id: string, id: string, params: Partial<LogStream>): Promise<boolean>;
50492
+ remove(tenant_id: string, id: string): Promise<boolean>;
50493
+ }
49228
50494
  export interface ListConnectionsResponse extends Totals {
49229
50495
  connections: Connection[];
49230
50496
  }
@@ -49311,10 +50577,22 @@ export interface UpdateRefreshTokenOptions {
49311
50577
  export interface RefreshTokensAdapter {
49312
50578
  create: (tenant_id: string, refresh_token: RefreshTokenInsert) => Promise<RefreshToken>;
49313
50579
  get: (tenant_id: string, id: string) => Promise<RefreshToken | null>;
50580
+ /**
50581
+ * Look up a refresh token by its plaintext `token_lookup` slice (extracted
50582
+ * from the wire format `rt_<lookup>.<secret>`). Returns null if no row
50583
+ * matches. Callers must verify the secret hash before trusting the row.
50584
+ */
50585
+ getByLookup: (tenant_id: string, token_lookup: string) => Promise<RefreshToken | null>;
49314
50586
  list(tenant_id: string, params?: ListParams): Promise<ListRefreshTokenResponse>;
49315
50587
  update: (tenant_id: string, id: string, refresh_token: Partial<RefreshToken>, options?: UpdateRefreshTokenOptions) => Promise<boolean>;
49316
50588
  remove: (tenant_id: string, id: string) => Promise<boolean>;
49317
50589
  revokeByLoginSession: (tenant_id: string, login_session_id: string, revoked_at: string) => Promise<number>;
50590
+ /**
50591
+ * Soft-revoke every refresh token that shares `family_id` and isn't already
50592
+ * revoked. Used for reuse detection (entire rotation chain torched) and for
50593
+ * admin revocations that should propagate to descendants.
50594
+ */
50595
+ revokeFamily: (tenant_id: string, family_id: string, revoked_at: string) => Promise<number>;
49318
50596
  }
49319
50597
  export interface ListFormsResponse extends Totals {
49320
50598
  forms: Form[];
@@ -49377,6 +50655,13 @@ export interface OrganizationsAdapter {
49377
50655
  list(tenant_id: string, params?: ListParams): Promise<ListOrganizationsResponse>;
49378
50656
  update(tenant_id: string, id: string, params: Partial<OrganizationInsert>): Promise<boolean>;
49379
50657
  }
50658
+ export interface OrganizationConnectionsAdapter {
50659
+ create(tenant_id: string, organization_id: string, params: OrganizationConnectionInsert): Promise<OrganizationConnection>;
50660
+ list(tenant_id: string, organization_id: string): Promise<OrganizationConnection[]>;
50661
+ get(tenant_id: string, organization_id: string, connection_id: string): Promise<OrganizationConnection | null>;
50662
+ update(tenant_id: string, organization_id: string, connection_id: string, params: Partial<Omit<OrganizationConnectionInsert, "connection_id">>): Promise<OrganizationConnection | null>;
50663
+ remove(tenant_id: string, organization_id: string, connection_id: string): Promise<boolean>;
50664
+ }
49380
50665
  export interface UserOrganizationsAdapter {
49381
50666
  create(tenantId: string, params: UserOrganizationInsert): Promise<UserOrganization>;
49382
50667
  get(tenantId: string, id: string): Promise<UserOrganization | null>;
@@ -49625,6 +50910,7 @@ export interface DataAdapters {
49625
50910
  keys: KeysAdapter;
49626
50911
  loginSessions: LoginSessionsAdapter;
49627
50912
  logs: LogsDataAdapter;
50913
+ logStreams?: LogStreamsAdapter;
49628
50914
  passwords: PasswordsAdapter;
49629
50915
  promptSettings: PromptSettingsAdapter;
49630
50916
  refreshTokens: RefreshTokensAdapter;
@@ -49641,6 +50927,7 @@ export interface DataAdapters {
49641
50927
  users: UserDataAdapter;
49642
50928
  userRoles: UserRolesAdapter;
49643
50929
  organizations: OrganizationsAdapter;
50930
+ organizationConnections: OrganizationConnectionsAdapter;
49644
50931
  authenticationMethods: AuthenticationMethodsAdapter;
49645
50932
  userOrganizations: UserOrganizationsAdapter;
49646
50933
  emailService?: EmailServiceAdapter;