authhero 4.110.0 → 4.112.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.
@@ -3063,7 +3063,9 @@ export declare const clientInsertSchema: z.ZodObject<{
3063
3063
  token_endpoint_auth_method: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
3064
3064
  "none",
3065
3065
  "client_secret_post",
3066
- "client_secret_basic"
3066
+ "client_secret_basic",
3067
+ "client_secret_jwt",
3068
+ "private_key_jwt"
3067
3069
  ]>>>;
3068
3070
  client_metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>>;
3069
3071
  mobile: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
@@ -3179,7 +3181,7 @@ export declare const clientInsertSchema: z.ZodObject<{
3179
3181
  custom_login_page_preview?: string | undefined;
3180
3182
  form_template?: string | undefined;
3181
3183
  addons?: Record<string, any> | undefined;
3182
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined;
3184
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
3183
3185
  client_metadata?: Record<string, string> | undefined;
3184
3186
  mobile?: Record<string, any> | undefined;
3185
3187
  initiate_login_uri?: string | undefined;
@@ -3238,7 +3240,7 @@ export declare const clientInsertSchema: z.ZodObject<{
3238
3240
  custom_login_page_preview?: string | undefined;
3239
3241
  form_template?: string | undefined;
3240
3242
  addons?: Record<string, any> | undefined;
3241
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined;
3243
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
3242
3244
  client_metadata?: Record<string, string> | undefined;
3243
3245
  mobile?: Record<string, any> | undefined;
3244
3246
  initiate_login_uri?: string | undefined;
@@ -3321,7 +3323,9 @@ export declare const clientSchema: z.ZodObject<{
3321
3323
  token_endpoint_auth_method: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
3322
3324
  "none",
3323
3325
  "client_secret_post",
3324
- "client_secret_basic"
3326
+ "client_secret_basic",
3327
+ "client_secret_jwt",
3328
+ "private_key_jwt"
3325
3329
  ]>>>;
3326
3330
  client_metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>>;
3327
3331
  mobile: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
@@ -3441,7 +3445,7 @@ export declare const clientSchema: z.ZodObject<{
3441
3445
  custom_login_page_preview?: string | undefined;
3442
3446
  form_template?: string | undefined;
3443
3447
  addons?: Record<string, any> | undefined;
3444
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined;
3448
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
3445
3449
  client_metadata?: Record<string, string> | undefined;
3446
3450
  mobile?: Record<string, any> | undefined;
3447
3451
  initiate_login_uri?: string | undefined;
@@ -3502,7 +3506,7 @@ export declare const clientSchema: z.ZodObject<{
3502
3506
  custom_login_page_preview?: string | undefined;
3503
3507
  form_template?: string | undefined;
3504
3508
  addons?: Record<string, any> | undefined;
3505
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined;
3509
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
3506
3510
  client_metadata?: Record<string, string> | undefined;
3507
3511
  mobile?: Record<string, any> | undefined;
3508
3512
  initiate_login_uri?: string | undefined;
@@ -11698,6 +11702,8 @@ export declare const connectionOptionsSchema: z.ZodObject<{
11698
11702
  twilio_sid: z.ZodOptional<z.ZodString>;
11699
11703
  twilio_token: z.ZodOptional<z.ZodString>;
11700
11704
  icon_url: z.ZodOptional<z.ZodString>;
11705
+ domain_aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11706
+ callback_url: z.ZodOptional<z.ZodString>;
11701
11707
  passwordPolicy: z.ZodOptional<z.ZodEnum<[
11702
11708
  "none",
11703
11709
  "low",
@@ -12124,6 +12130,8 @@ export declare const connectionOptionsSchema: z.ZodObject<{
12124
12130
  twilio_sid?: string | undefined;
12125
12131
  twilio_token?: string | undefined;
12126
12132
  icon_url?: string | undefined;
12133
+ domain_aliases?: string[] | undefined;
12134
+ callback_url?: string | undefined;
12127
12135
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
12128
12136
  password_complexity_options?: {
12129
12137
  min_length?: number | undefined;
@@ -12227,6 +12235,8 @@ export declare const connectionOptionsSchema: z.ZodObject<{
12227
12235
  twilio_sid?: string | undefined;
12228
12236
  twilio_token?: string | undefined;
12229
12237
  icon_url?: string | undefined;
12238
+ domain_aliases?: string[] | undefined;
12239
+ callback_url?: string | undefined;
12230
12240
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
12231
12241
  password_complexity_options?: {
12232
12242
  min_length?: number | undefined;
@@ -12330,6 +12340,8 @@ export declare const connectionInsertSchema: z.ZodObject<{
12330
12340
  twilio_sid: z.ZodOptional<z.ZodString>;
12331
12341
  twilio_token: z.ZodOptional<z.ZodString>;
12332
12342
  icon_url: z.ZodOptional<z.ZodString>;
12343
+ domain_aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
12344
+ callback_url: z.ZodOptional<z.ZodString>;
12333
12345
  passwordPolicy: z.ZodOptional<z.ZodEnum<[
12334
12346
  "none",
12335
12347
  "low",
@@ -12756,6 +12768,8 @@ export declare const connectionInsertSchema: z.ZodObject<{
12756
12768
  twilio_sid?: string | undefined;
12757
12769
  twilio_token?: string | undefined;
12758
12770
  icon_url?: string | undefined;
12771
+ domain_aliases?: string[] | undefined;
12772
+ callback_url?: string | undefined;
12759
12773
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
12760
12774
  password_complexity_options?: {
12761
12775
  min_length?: number | undefined;
@@ -12859,6 +12873,8 @@ export declare const connectionInsertSchema: z.ZodObject<{
12859
12873
  twilio_sid?: string | undefined;
12860
12874
  twilio_token?: string | undefined;
12861
12875
  icon_url?: string | undefined;
12876
+ domain_aliases?: string[] | undefined;
12877
+ callback_url?: string | undefined;
12862
12878
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
12863
12879
  password_complexity_options?: {
12864
12880
  min_length?: number | undefined;
@@ -12962,6 +12978,8 @@ export declare const connectionInsertSchema: z.ZodObject<{
12962
12978
  twilio_sid?: string | undefined;
12963
12979
  twilio_token?: string | undefined;
12964
12980
  icon_url?: string | undefined;
12981
+ domain_aliases?: string[] | undefined;
12982
+ callback_url?: string | undefined;
12965
12983
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
12966
12984
  password_complexity_options?: {
12967
12985
  min_length?: number | undefined;
@@ -13074,6 +13092,8 @@ export declare const connectionInsertSchema: z.ZodObject<{
13074
13092
  twilio_sid?: string | undefined;
13075
13093
  twilio_token?: string | undefined;
13076
13094
  icon_url?: string | undefined;
13095
+ domain_aliases?: string[] | undefined;
13096
+ callback_url?: string | undefined;
13077
13097
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
13078
13098
  password_complexity_options?: {
13079
13099
  min_length?: number | undefined;
@@ -13206,6 +13226,8 @@ export declare const connectionSchema: z.ZodObject<{
13206
13226
  twilio_sid: z.ZodOptional<z.ZodString>;
13207
13227
  twilio_token: z.ZodOptional<z.ZodString>;
13208
13228
  icon_url: z.ZodOptional<z.ZodString>;
13229
+ domain_aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
13230
+ callback_url: z.ZodOptional<z.ZodString>;
13209
13231
  passwordPolicy: z.ZodOptional<z.ZodEnum<[
13210
13232
  "none",
13211
13233
  "low",
@@ -13632,6 +13654,8 @@ export declare const connectionSchema: z.ZodObject<{
13632
13654
  twilio_sid?: string | undefined;
13633
13655
  twilio_token?: string | undefined;
13634
13656
  icon_url?: string | undefined;
13657
+ domain_aliases?: string[] | undefined;
13658
+ callback_url?: string | undefined;
13635
13659
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
13636
13660
  password_complexity_options?: {
13637
13661
  min_length?: number | undefined;
@@ -13735,6 +13759,8 @@ export declare const connectionSchema: z.ZodObject<{
13735
13759
  twilio_sid?: string | undefined;
13736
13760
  twilio_token?: string | undefined;
13737
13761
  icon_url?: string | undefined;
13762
+ domain_aliases?: string[] | undefined;
13763
+ callback_url?: string | undefined;
13738
13764
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
13739
13765
  password_complexity_options?: {
13740
13766
  min_length?: number | undefined;
@@ -13838,6 +13864,8 @@ export declare const connectionSchema: z.ZodObject<{
13838
13864
  twilio_sid?: string | undefined;
13839
13865
  twilio_token?: string | undefined;
13840
13866
  icon_url?: string | undefined;
13867
+ domain_aliases?: string[] | undefined;
13868
+ callback_url?: string | undefined;
13841
13869
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
13842
13870
  password_complexity_options?: {
13843
13871
  min_length?: number | undefined;
@@ -13952,6 +13980,8 @@ export declare const connectionSchema: z.ZodObject<{
13952
13980
  twilio_sid?: string | undefined;
13953
13981
  twilio_token?: string | undefined;
13954
13982
  icon_url?: string | undefined;
13983
+ domain_aliases?: string[] | undefined;
13984
+ callback_url?: string | undefined;
13955
13985
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
13956
13986
  password_complexity_options?: {
13957
13987
  min_length?: number | undefined;
@@ -43139,7 +43169,7 @@ export declare const inviteSchema: z.ZodObject<{
43139
43169
  ticket_id?: string | undefined;
43140
43170
  }>;
43141
43171
  export type Invite = z.infer<typeof inviteSchema>;
43142
- export declare const jwksSchema: z.ZodObject<{
43172
+ export declare const jwksSchema: z.ZodEffects<z.ZodObject<{
43143
43173
  alg: z.ZodEnum<[
43144
43174
  "RS256",
43145
43175
  "RS384",
@@ -43151,41 +43181,74 @@ export declare const jwksSchema: z.ZodObject<{
43151
43181
  "HS384",
43152
43182
  "HS512"
43153
43183
  ]>;
43154
- e: z.ZodString;
43155
43184
  kid: z.ZodString;
43156
43185
  kty: z.ZodEnum<[
43157
43186
  "RSA",
43158
43187
  "EC",
43159
43188
  "oct"
43160
43189
  ]>;
43161
- n: z.ZodString;
43162
- x5t: z.ZodOptional<z.ZodString>;
43163
- x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
43164
43190
  use: z.ZodOptional<z.ZodEnum<[
43165
43191
  "sig",
43166
43192
  "enc"
43167
43193
  ]>>;
43194
+ n: z.ZodOptional<z.ZodString>;
43195
+ e: z.ZodOptional<z.ZodString>;
43196
+ crv: z.ZodOptional<z.ZodString>;
43197
+ x: z.ZodOptional<z.ZodString>;
43198
+ y: z.ZodOptional<z.ZodString>;
43199
+ x5t: z.ZodOptional<z.ZodString>;
43200
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
43168
43201
  }, "strip", z.ZodTypeAny, {
43169
43202
  kid: string;
43170
43203
  alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
43171
- e: string;
43172
43204
  kty: "RSA" | "EC" | "oct";
43173
- n: string;
43205
+ x?: string | undefined;
43206
+ y?: string | undefined;
43207
+ use?: "sig" | "enc" | undefined;
43208
+ n?: string | undefined;
43209
+ e?: string | undefined;
43210
+ crv?: string | undefined;
43174
43211
  x5t?: string | undefined;
43175
43212
  x5c?: string[] | undefined;
43176
- use?: "sig" | "enc" | undefined;
43177
43213
  }, {
43178
43214
  kid: string;
43179
43215
  alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
43180
- e: string;
43181
43216
  kty: "RSA" | "EC" | "oct";
43182
- n: string;
43217
+ x?: string | undefined;
43218
+ y?: string | undefined;
43219
+ use?: "sig" | "enc" | undefined;
43220
+ n?: string | undefined;
43221
+ e?: string | undefined;
43222
+ crv?: string | undefined;
43183
43223
  x5t?: string | undefined;
43184
43224
  x5c?: string[] | undefined;
43225
+ }>, {
43226
+ kid: string;
43227
+ alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
43228
+ kty: "RSA" | "EC" | "oct";
43229
+ x?: string | undefined;
43230
+ y?: string | undefined;
43185
43231
  use?: "sig" | "enc" | undefined;
43232
+ n?: string | undefined;
43233
+ e?: string | undefined;
43234
+ crv?: string | undefined;
43235
+ x5t?: string | undefined;
43236
+ x5c?: string[] | undefined;
43237
+ }, {
43238
+ kid: string;
43239
+ alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
43240
+ kty: "RSA" | "EC" | "oct";
43241
+ x?: string | undefined;
43242
+ y?: string | undefined;
43243
+ use?: "sig" | "enc" | undefined;
43244
+ n?: string | undefined;
43245
+ e?: string | undefined;
43246
+ crv?: string | undefined;
43247
+ x5t?: string | undefined;
43248
+ x5c?: string[] | undefined;
43186
43249
  }>;
43187
43250
  export declare const jwksKeySchema: z.ZodObject<{
43188
- keys: z.ZodArray<z.ZodObject<{
43251
+ keys: z.ZodArray<z.ZodEffects<z.ZodObject<{
43189
43252
  alg: z.ZodEnum<[
43190
43253
  "RS256",
43191
43254
  "RS384",
@@ -43197,62 +43260,103 @@ export declare const jwksKeySchema: z.ZodObject<{
43197
43260
  "HS384",
43198
43261
  "HS512"
43199
43262
  ]>;
43200
- e: z.ZodString;
43201
43263
  kid: z.ZodString;
43202
43264
  kty: z.ZodEnum<[
43203
43265
  "RSA",
43204
43266
  "EC",
43205
43267
  "oct"
43206
43268
  ]>;
43207
- n: z.ZodString;
43208
- x5t: z.ZodOptional<z.ZodString>;
43209
- x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
43210
43269
  use: z.ZodOptional<z.ZodEnum<[
43211
43270
  "sig",
43212
43271
  "enc"
43213
43272
  ]>>;
43273
+ n: z.ZodOptional<z.ZodString>;
43274
+ e: z.ZodOptional<z.ZodString>;
43275
+ crv: z.ZodOptional<z.ZodString>;
43276
+ x: z.ZodOptional<z.ZodString>;
43277
+ y: z.ZodOptional<z.ZodString>;
43278
+ x5t: z.ZodOptional<z.ZodString>;
43279
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
43214
43280
  }, "strip", z.ZodTypeAny, {
43215
43281
  kid: string;
43216
43282
  alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
43217
- e: string;
43218
43283
  kty: "RSA" | "EC" | "oct";
43219
- n: string;
43284
+ x?: string | undefined;
43285
+ y?: string | undefined;
43286
+ use?: "sig" | "enc" | undefined;
43287
+ n?: string | undefined;
43288
+ e?: string | undefined;
43289
+ crv?: string | undefined;
43220
43290
  x5t?: string | undefined;
43221
43291
  x5c?: string[] | undefined;
43222
- use?: "sig" | "enc" | undefined;
43223
43292
  }, {
43224
43293
  kid: string;
43225
43294
  alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
43226
- e: string;
43227
43295
  kty: "RSA" | "EC" | "oct";
43228
- n: string;
43296
+ x?: string | undefined;
43297
+ y?: string | undefined;
43298
+ use?: "sig" | "enc" | undefined;
43299
+ n?: string | undefined;
43300
+ e?: string | undefined;
43301
+ crv?: string | undefined;
43229
43302
  x5t?: string | undefined;
43230
43303
  x5c?: string[] | undefined;
43304
+ }>, {
43305
+ kid: string;
43306
+ alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
43307
+ kty: "RSA" | "EC" | "oct";
43308
+ x?: string | undefined;
43309
+ y?: string | undefined;
43231
43310
  use?: "sig" | "enc" | undefined;
43311
+ n?: string | undefined;
43312
+ e?: string | undefined;
43313
+ crv?: string | undefined;
43314
+ x5t?: string | undefined;
43315
+ x5c?: string[] | undefined;
43316
+ }, {
43317
+ kid: string;
43318
+ alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
43319
+ kty: "RSA" | "EC" | "oct";
43320
+ x?: string | undefined;
43321
+ y?: string | undefined;
43322
+ use?: "sig" | "enc" | undefined;
43323
+ n?: string | undefined;
43324
+ e?: string | undefined;
43325
+ crv?: string | undefined;
43326
+ x5t?: string | undefined;
43327
+ x5c?: string[] | undefined;
43232
43328
  }>, "many">;
43233
43329
  }, "strip", z.ZodTypeAny, {
43234
43330
  keys: {
43235
43331
  kid: string;
43236
43332
  alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
43237
- e: string;
43238
43333
  kty: "RSA" | "EC" | "oct";
43239
- n: string;
43334
+ x?: string | undefined;
43335
+ y?: string | undefined;
43336
+ use?: "sig" | "enc" | undefined;
43337
+ n?: string | undefined;
43338
+ e?: string | undefined;
43339
+ crv?: string | undefined;
43240
43340
  x5t?: string | undefined;
43241
43341
  x5c?: string[] | undefined;
43242
- use?: "sig" | "enc" | undefined;
43243
43342
  }[];
43244
43343
  }, {
43245
43344
  keys: {
43246
43345
  kid: string;
43247
43346
  alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
43248
- e: string;
43249
43347
  kty: "RSA" | "EC" | "oct";
43250
- n: string;
43348
+ x?: string | undefined;
43349
+ y?: string | undefined;
43350
+ use?: "sig" | "enc" | undefined;
43351
+ n?: string | undefined;
43352
+ e?: string | undefined;
43353
+ crv?: string | undefined;
43251
43354
  x5t?: string | undefined;
43252
43355
  x5c?: string[] | undefined;
43253
- use?: "sig" | "enc" | undefined;
43254
43356
  }[];
43255
43357
  }>;
43358
+ export type Jwk = z.infer<typeof jwksSchema>;
43359
+ export type Jwks = z.infer<typeof jwksKeySchema>;
43256
43360
  export declare const openIDConfigurationSchema: z.ZodObject<{
43257
43361
  issuer: z.ZodString;
43258
43362
  authorization_endpoint: z.ZodString;
@@ -43275,6 +43379,7 @@ export declare const openIDConfigurationSchema: z.ZodObject<{
43275
43379
  claims_supported: z.ZodArray<z.ZodString, "many">;
43276
43380
  request_uri_parameter_supported: z.ZodBoolean;
43277
43381
  request_parameter_supported: z.ZodBoolean;
43382
+ request_object_signing_alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
43278
43383
  token_endpoint_auth_signing_alg_values_supported: z.ZodArray<z.ZodString, "many">;
43279
43384
  }, "strip", z.ZodTypeAny, {
43280
43385
  authorization_endpoint: string;
@@ -43299,6 +43404,7 @@ export declare const openIDConfigurationSchema: z.ZodObject<{
43299
43404
  registration_endpoint?: string | undefined;
43300
43405
  end_session_endpoint?: string | undefined;
43301
43406
  grant_types_supported?: string[] | undefined;
43407
+ request_object_signing_alg_values_supported?: string[] | undefined;
43302
43408
  }, {
43303
43409
  authorization_endpoint: string;
43304
43410
  token_endpoint: string;
@@ -43322,6 +43428,7 @@ export declare const openIDConfigurationSchema: z.ZodObject<{
43322
43428
  registration_endpoint?: string | undefined;
43323
43429
  end_session_endpoint?: string | undefined;
43324
43430
  grant_types_supported?: string[] | undefined;
43431
+ request_object_signing_alg_values_supported?: string[] | undefined;
43325
43432
  }>;
43326
43433
  export interface ListParams {
43327
43434
  page?: number;
@@ -51108,6 +51215,7 @@ export type Variables = {
51108
51215
  countryCode?: CountryCode;
51109
51216
  outboxEventPromises?: Promise<string>[];
51110
51217
  backgroundPromises?: Promise<void>[];
51218
+ client_authenticated_via_assertion?: boolean;
51111
51219
  };
51112
51220
  /**
51113
51221
  * Interface for SAML signing implementations.
@@ -52094,6 +52202,8 @@ declare const enrichedClientSchema: z.ZodObject<{
52094
52202
  twilio_sid: z.ZodOptional<z.ZodString>;
52095
52203
  twilio_token: z.ZodOptional<z.ZodString>;
52096
52204
  icon_url: z.ZodOptional<z.ZodString>;
52205
+ domain_aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
52206
+ callback_url: z.ZodOptional<z.ZodString>;
52097
52207
  passwordPolicy: z.ZodOptional<z.ZodEnum<[
52098
52208
  "none",
52099
52209
  "low",
@@ -52520,6 +52630,8 @@ declare const enrichedClientSchema: z.ZodObject<{
52520
52630
  twilio_sid?: string | undefined;
52521
52631
  twilio_token?: string | undefined;
52522
52632
  icon_url?: string | undefined;
52633
+ domain_aliases?: string[] | undefined;
52634
+ callback_url?: string | undefined;
52523
52635
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
52524
52636
  password_complexity_options?: {
52525
52637
  min_length?: number | undefined;
@@ -52623,6 +52735,8 @@ declare const enrichedClientSchema: z.ZodObject<{
52623
52735
  twilio_sid?: string | undefined;
52624
52736
  twilio_token?: string | undefined;
52625
52737
  icon_url?: string | undefined;
52738
+ domain_aliases?: string[] | undefined;
52739
+ callback_url?: string | undefined;
52626
52740
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
52627
52741
  password_complexity_options?: {
52628
52742
  min_length?: number | undefined;
@@ -52726,6 +52840,8 @@ declare const enrichedClientSchema: z.ZodObject<{
52726
52840
  twilio_sid?: string | undefined;
52727
52841
  twilio_token?: string | undefined;
52728
52842
  icon_url?: string | undefined;
52843
+ domain_aliases?: string[] | undefined;
52844
+ callback_url?: string | undefined;
52729
52845
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
52730
52846
  password_complexity_options?: {
52731
52847
  min_length?: number | undefined;
@@ -52840,6 +52956,8 @@ declare const enrichedClientSchema: z.ZodObject<{
52840
52956
  twilio_sid?: string | undefined;
52841
52957
  twilio_token?: string | undefined;
52842
52958
  icon_url?: string | undefined;
52959
+ domain_aliases?: string[] | undefined;
52960
+ callback_url?: string | undefined;
52843
52961
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
52844
52962
  password_complexity_options?: {
52845
52963
  min_length?: number | undefined;
@@ -53005,7 +53123,9 @@ declare const enrichedClientSchema: z.ZodObject<{
53005
53123
  token_endpoint_auth_method: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
53006
53124
  "none",
53007
53125
  "client_secret_post",
53008
- "client_secret_basic"
53126
+ "client_secret_basic",
53127
+ "client_secret_jwt",
53128
+ "private_key_jwt"
53009
53129
  ]>>>;
53010
53130
  client_metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>>;
53011
53131
  mobile: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
@@ -53279,6 +53399,8 @@ declare const enrichedClientSchema: z.ZodObject<{
53279
53399
  twilio_sid?: string | undefined;
53280
53400
  twilio_token?: string | undefined;
53281
53401
  icon_url?: string | undefined;
53402
+ domain_aliases?: string[] | undefined;
53403
+ callback_url?: string | undefined;
53282
53404
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
53283
53405
  password_complexity_options?: {
53284
53406
  min_length?: number | undefined;
@@ -53403,7 +53525,7 @@ declare const enrichedClientSchema: z.ZodObject<{
53403
53525
  custom_login_page_preview?: string | undefined;
53404
53526
  form_template?: string | undefined;
53405
53527
  addons?: Record<string, any> | undefined;
53406
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined;
53528
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
53407
53529
  client_metadata?: Record<string, string> | undefined;
53408
53530
  mobile?: Record<string, any> | undefined;
53409
53531
  initiate_login_uri?: string | undefined;
@@ -53648,7 +53770,7 @@ declare const enrichedClientSchema: z.ZodObject<{
53648
53770
  custom_login_page_preview?: string | undefined;
53649
53771
  form_template?: string | undefined;
53650
53772
  addons?: Record<string, any> | undefined;
53651
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined;
53773
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
53652
53774
  client_metadata?: Record<string, string> | undefined;
53653
53775
  mobile?: Record<string, any> | undefined;
53654
53776
  initiate_login_uri?: string | undefined;
@@ -54041,6 +54163,16 @@ export interface OutboxConfig {
54041
54163
  * A per-client `user_linking_mode` overrides this service-level default.
54042
54164
  */
54043
54165
  export type UserLinkingMode = "builtin" | "off";
54166
+ /**
54167
+ * Resolver form for the service-level user-linking mode. Receives the
54168
+ * resolved `tenant_id` (and `client_id`, when the request has one) and
54169
+ * returns the mode to use for that request. May be async.
54170
+ */
54171
+ export type UserLinkingModeResolver = (params: {
54172
+ tenant_id: string;
54173
+ client_id?: string;
54174
+ }) => UserLinkingMode | Promise<UserLinkingMode>;
54175
+ export type UserLinkingModeOption = UserLinkingMode | UserLinkingModeResolver;
54044
54176
  export interface AuthHeroConfig {
54045
54177
  dataAdapter: DataAdapters;
54046
54178
  /**
@@ -54237,9 +54369,13 @@ export interface AuthHeroConfig {
54237
54369
  * lookup by verified email at user creation and email update. A per-client
54238
54370
  * `user_linking_mode` setting overrides this default.
54239
54371
  *
54372
+ * Accepts either a static value or a resolver function that receives
54373
+ * `{ tenant_id, client_id }` and returns the mode (sync or async). Use
54374
+ * the resolver form to disable built-in linking on a per-tenant basis.
54375
+ *
54240
54376
  * @default "builtin"
54241
54377
  */
54242
- userLinkingMode?: UserLinkingMode;
54378
+ userLinkingMode?: UserLinkingModeOption;
54243
54379
  }
54244
54380
  export type UserInfo = {
54245
54381
  sub: string;
@@ -54300,10 +54436,28 @@ export type Bindings = {
54300
54436
  codeExecutor?: CodeExecutor;
54301
54437
  webhookInvoker?: WebhookInvoker;
54302
54438
  outbox?: OutboxConfig;
54303
- userLinkingMode?: UserLinkingMode;
54439
+ userLinkingMode?: UserLinkingModeOption;
54440
+ /**
54441
+ * Allow outbound fetches (jwks_uri, request_uri) to localhost / private IP
54442
+ * ranges and over plain http. Intended for tests and local development;
54443
+ * leave unset (or false) in production so SSRF protection stays on.
54444
+ */
54445
+ ALLOW_PRIVATE_OUTBOUND_FETCH?: boolean;
54304
54446
  };
54447
+ /**
54448
+ * Supported signing-key shapes. Note: `EC-P-521` is not supported on
54449
+ * Cloudflare Workers (`workerd`) — `crypto.subtle.generateKey` will reject
54450
+ * `{ name: "ECDSA", namedCurve: "P-521" }` there. Callers running on Workers
54451
+ * must pick `RSA`, `EC-P-256`, or `EC-P-384`.
54452
+ */
54453
+ export type SigningKeyType = "RSA" | "EC-P-256" | "EC-P-384" | "EC-P-521";
54305
54454
  export interface CreateX509CertificateParams {
54306
54455
  name: string;
54456
+ /**
54457
+ * The key type to generate. Defaults to "RSA" (RS256-compatible) for
54458
+ * backwards compatibility with existing tenants.
54459
+ */
54460
+ keyType?: SigningKeyType;
54307
54461
  }
54308
54462
  declare function createX509Certificate(params: CreateX509CertificateParams): Promise<SigningKey>;
54309
54463
  export type AppLogoProps = {
@@ -54606,6 +54760,30 @@ export interface InMemoryCacheConfig {
54606
54760
  * Create an in-memory cache adapter
54607
54761
  */
54608
54762
  export declare function createInMemoryCache(config?: InMemoryCacheConfig): CacheAdapter;
54763
+ export declare const mailgunCredentialsSchema: z.ZodObject<{
54764
+ api_key: z.ZodString;
54765
+ domain: z.ZodString;
54766
+ region: z.ZodOptional<z.ZodNullable<z.ZodEnum<[
54767
+ "eu"
54768
+ ]>>>;
54769
+ }, "strip", z.ZodTypeAny, {
54770
+ api_key: string;
54771
+ domain: string;
54772
+ region?: "eu" | null | undefined;
54773
+ }, {
54774
+ api_key: string;
54775
+ domain: string;
54776
+ region?: "eu" | null | undefined;
54777
+ }>;
54778
+ export type MailgunCredentials = z.infer<typeof mailgunCredentialsSchema>;
54779
+ export interface MailgunEmailServiceOptions {
54780
+ fetchImpl?: typeof fetch;
54781
+ }
54782
+ export declare class MailgunEmailService implements EmailServiceAdapter {
54783
+ private readonly fetchImpl;
54784
+ constructor(options?: MailgunEmailServiceOptions);
54785
+ send(params: EmailServiceSendParams): Promise<void>;
54786
+ }
54609
54787
  /**
54610
54788
  * Register a background promise tied to the current request.
54611
54789
  *
@@ -61820,6 +61998,8 @@ export declare function init(config: AuthHeroConfig): {
61820
61998
  twilio_sid?: string | undefined | undefined;
61821
61999
  twilio_token?: string | undefined | undefined;
61822
62000
  icon_url?: string | undefined | undefined;
62001
+ domain_aliases?: string[] | undefined | undefined;
62002
+ callback_url?: string | undefined | undefined;
61823
62003
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined | undefined;
61824
62004
  password_complexity_options?: {
61825
62005
  min_length?: number | undefined | undefined;
@@ -61942,6 +62122,8 @@ export declare function init(config: AuthHeroConfig): {
61942
62122
  twilio_sid?: string | undefined | undefined;
61943
62123
  twilio_token?: string | undefined | undefined;
61944
62124
  icon_url?: string | undefined | undefined;
62125
+ domain_aliases?: string[] | undefined | undefined;
62126
+ callback_url?: string | undefined | undefined;
61945
62127
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined | undefined;
61946
62128
  password_complexity_options?: {
61947
62129
  min_length?: number | undefined | undefined;
@@ -62083,6 +62265,8 @@ export declare function init(config: AuthHeroConfig): {
62083
62265
  twilio_sid?: string | undefined | undefined;
62084
62266
  twilio_token?: string | undefined | undefined;
62085
62267
  icon_url?: string | undefined | undefined;
62268
+ domain_aliases?: string[] | undefined | undefined;
62269
+ callback_url?: string | undefined | undefined;
62086
62270
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined | undefined;
62087
62271
  password_complexity_options?: {
62088
62272
  min_length?: number | undefined | undefined;
@@ -62252,6 +62436,8 @@ export declare function init(config: AuthHeroConfig): {
62252
62436
  twilio_sid?: string | undefined | undefined;
62253
62437
  twilio_token?: string | undefined | undefined;
62254
62438
  icon_url?: string | undefined | undefined;
62439
+ domain_aliases?: string[] | undefined | undefined;
62440
+ callback_url?: string | undefined | undefined;
62255
62441
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined | undefined;
62256
62442
  password_complexity_options?: {
62257
62443
  min_length?: number | undefined | undefined;
@@ -62400,6 +62586,8 @@ export declare function init(config: AuthHeroConfig): {
62400
62586
  twilio_sid?: string | undefined | undefined;
62401
62587
  twilio_token?: string | undefined | undefined;
62402
62588
  icon_url?: string | undefined | undefined;
62589
+ domain_aliases?: string[] | undefined | undefined;
62590
+ callback_url?: string | undefined | undefined;
62403
62591
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined | undefined;
62404
62592
  password_complexity_options?: {
62405
62593
  min_length?: number | undefined | undefined;
@@ -63991,7 +64179,7 @@ export declare function init(config: AuthHeroConfig): {
63991
64179
  addons?: {
63992
64180
  [x: string]: any;
63993
64181
  } | undefined;
63994
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined | undefined;
64182
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined | undefined;
63995
64183
  client_metadata?: {
63996
64184
  [x: string]: string;
63997
64185
  } | undefined;
@@ -64086,7 +64274,7 @@ export declare function init(config: AuthHeroConfig): {
64086
64274
  addons?: {
64087
64275
  [x: string]: any;
64088
64276
  } | undefined;
64089
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined | undefined;
64277
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined | undefined;
64090
64278
  client_metadata?: {
64091
64279
  [x: string]: string;
64092
64280
  } | undefined;
@@ -64196,7 +64384,7 @@ export declare function init(config: AuthHeroConfig): {
64196
64384
  addons?: {
64197
64385
  [x: string]: any;
64198
64386
  } | undefined;
64199
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined | undefined;
64387
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined | undefined;
64200
64388
  client_metadata?: {
64201
64389
  [x: string]: string;
64202
64390
  } | undefined;
@@ -64296,7 +64484,7 @@ export declare function init(config: AuthHeroConfig): {
64296
64484
  custom_login_page_preview?: string | undefined;
64297
64485
  form_template?: string | undefined;
64298
64486
  addons?: Record<string, any> | undefined;
64299
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined;
64487
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
64300
64488
  client_metadata?: Record<string, string> | undefined;
64301
64489
  mobile?: Record<string, any> | undefined;
64302
64490
  initiate_login_uri?: string | undefined;
@@ -64384,7 +64572,7 @@ export declare function init(config: AuthHeroConfig): {
64384
64572
  addons?: {
64385
64573
  [x: string]: any;
64386
64574
  } | undefined;
64387
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined | undefined;
64575
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined | undefined;
64388
64576
  client_metadata?: {
64389
64577
  [x: string]: string;
64390
64578
  } | undefined;
@@ -64463,7 +64651,7 @@ export declare function init(config: AuthHeroConfig): {
64463
64651
  custom_login_page_preview?: string | undefined;
64464
64652
  form_template?: string | undefined;
64465
64653
  addons?: Record<string, any> | undefined;
64466
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined;
64654
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
64467
64655
  client_metadata?: Record<string, string> | undefined;
64468
64656
  mobile?: Record<string, any> | undefined;
64469
64657
  initiate_login_uri?: string | undefined;
@@ -64542,7 +64730,7 @@ export declare function init(config: AuthHeroConfig): {
64542
64730
  addons?: {
64543
64731
  [x: string]: any;
64544
64732
  } | undefined;
64545
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined;
64733
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
64546
64734
  client_metadata?: {
64547
64735
  [x: string]: string;
64548
64736
  } | undefined;
@@ -64633,6 +64821,8 @@ export declare function init(config: AuthHeroConfig): {
64633
64821
  twilio_sid?: string | undefined | undefined;
64634
64822
  twilio_token?: string | undefined | undefined;
64635
64823
  icon_url?: string | undefined | undefined;
64824
+ domain_aliases?: string[] | undefined | undefined;
64825
+ callback_url?: string | undefined | undefined;
64636
64826
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined | undefined;
64637
64827
  password_complexity_options?: {
64638
64828
  min_length?: number | undefined | undefined;
@@ -64777,6 +64967,8 @@ export declare function init(config: AuthHeroConfig): {
64777
64967
  twilio_sid?: string | undefined | undefined;
64778
64968
  twilio_token?: string | undefined | undefined;
64779
64969
  icon_url?: string | undefined | undefined;
64970
+ domain_aliases?: string[] | undefined | undefined;
64971
+ callback_url?: string | undefined | undefined;
64780
64972
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined | undefined;
64781
64973
  password_complexity_options?: {
64782
64974
  min_length?: number | undefined | undefined;
@@ -66073,6 +66265,23 @@ export declare function init(config: AuthHeroConfig): {
66073
66265
  } & {
66074
66266
  "/": {
66075
66267
  $post: {
66268
+ input: {
66269
+ header: {
66270
+ "tenant-id"?: string | undefined;
66271
+ };
66272
+ } & {
66273
+ json: {
66274
+ name: string;
66275
+ credentials: Record<string, unknown>;
66276
+ settings?: {} | undefined;
66277
+ enabled?: boolean | undefined;
66278
+ default_from_address?: string | undefined;
66279
+ };
66280
+ };
66281
+ output: {};
66282
+ outputFormat: string;
66283
+ status: 409;
66284
+ } | {
66076
66285
  input: {
66077
66286
  header: {
66078
66287
  "tenant-id"?: string | undefined;
@@ -66128,6 +66337,28 @@ export declare function init(config: AuthHeroConfig): {
66128
66337
  status: 200;
66129
66338
  };
66130
66339
  };
66340
+ } & {
66341
+ "/": {
66342
+ $delete: {
66343
+ input: {
66344
+ header: {
66345
+ "tenant-id"?: string | undefined;
66346
+ };
66347
+ };
66348
+ output: {};
66349
+ outputFormat: string;
66350
+ status: 204;
66351
+ } | {
66352
+ input: {
66353
+ header: {
66354
+ "tenant-id"?: string | undefined;
66355
+ };
66356
+ };
66357
+ output: {};
66358
+ outputFormat: string;
66359
+ status: 404;
66360
+ };
66361
+ };
66131
66362
  }, "/emails/provider"> & import("hono/types").MergeSchemaPath<{
66132
66363
  "/": {
66133
66364
  $get: {
@@ -66152,6 +66383,23 @@ export declare function init(config: AuthHeroConfig): {
66152
66383
  } & {
66153
66384
  "/": {
66154
66385
  $post: {
66386
+ input: {
66387
+ header: {
66388
+ "tenant-id"?: string | undefined;
66389
+ };
66390
+ } & {
66391
+ json: {
66392
+ name: string;
66393
+ credentials: Record<string, unknown>;
66394
+ settings?: {} | undefined;
66395
+ enabled?: boolean | undefined;
66396
+ default_from_address?: string | undefined;
66397
+ };
66398
+ };
66399
+ output: {};
66400
+ outputFormat: string;
66401
+ status: 409;
66402
+ } | {
66155
66403
  input: {
66156
66404
  header: {
66157
66405
  "tenant-id"?: string | undefined;
@@ -66207,6 +66455,28 @@ export declare function init(config: AuthHeroConfig): {
66207
66455
  status: 200;
66208
66456
  };
66209
66457
  };
66458
+ } & {
66459
+ "/": {
66460
+ $delete: {
66461
+ input: {
66462
+ header: {
66463
+ "tenant-id"?: string | undefined;
66464
+ };
66465
+ };
66466
+ output: {};
66467
+ outputFormat: string;
66468
+ status: 204;
66469
+ } | {
66470
+ input: {
66471
+ header: {
66472
+ "tenant-id"?: string | undefined;
66473
+ };
66474
+ };
66475
+ output: {};
66476
+ outputFormat: string;
66477
+ status: 404;
66478
+ };
66479
+ };
66210
66480
  }, "/email/providers"> & import("hono/types").MergeSchemaPath<{
66211
66481
  "/": {
66212
66482
  $get: {
@@ -67452,6 +67722,118 @@ export declare function init(config: AuthHeroConfig): {
67452
67722
  status: 500;
67453
67723
  };
67454
67724
  };
67725
+ }, "/login/callback"> & import("hono/types").MergeSchemaPath<{
67726
+ "/": {
67727
+ $get: {
67728
+ input: {
67729
+ query: {
67730
+ state: string;
67731
+ code?: string | undefined;
67732
+ scope?: string | undefined;
67733
+ error?: string | undefined;
67734
+ error_description?: string | undefined;
67735
+ error_code?: string | undefined;
67736
+ hd?: string | undefined;
67737
+ error_reason?: string | undefined;
67738
+ };
67739
+ };
67740
+ output: {};
67741
+ outputFormat: string;
67742
+ status: 302;
67743
+ } | {
67744
+ input: {
67745
+ query: {
67746
+ state: string;
67747
+ code?: string | undefined;
67748
+ scope?: string | undefined;
67749
+ error?: string | undefined;
67750
+ error_description?: string | undefined;
67751
+ error_code?: string | undefined;
67752
+ hd?: string | undefined;
67753
+ error_reason?: string | undefined;
67754
+ };
67755
+ };
67756
+ output: {
67757
+ message: string;
67758
+ };
67759
+ outputFormat: "json";
67760
+ status: 400;
67761
+ } | {
67762
+ input: {
67763
+ query: {
67764
+ state: string;
67765
+ code?: string | undefined;
67766
+ scope?: string | undefined;
67767
+ error?: string | undefined;
67768
+ error_description?: string | undefined;
67769
+ error_code?: string | undefined;
67770
+ hd?: string | undefined;
67771
+ error_reason?: string | undefined;
67772
+ };
67773
+ };
67774
+ output: {
67775
+ message: string;
67776
+ };
67777
+ outputFormat: "json";
67778
+ status: 500;
67779
+ };
67780
+ };
67781
+ } & {
67782
+ "/": {
67783
+ $post: {
67784
+ input: {
67785
+ form: {
67786
+ state: string;
67787
+ code?: string | undefined;
67788
+ scope?: string | undefined;
67789
+ error?: string | undefined;
67790
+ error_description?: string | undefined;
67791
+ error_code?: string | undefined;
67792
+ hd?: string | undefined;
67793
+ error_reason?: string | undefined;
67794
+ };
67795
+ };
67796
+ output: {};
67797
+ outputFormat: string;
67798
+ status: 302;
67799
+ } | {
67800
+ input: {
67801
+ form: {
67802
+ state: string;
67803
+ code?: string | undefined;
67804
+ scope?: string | undefined;
67805
+ error?: string | undefined;
67806
+ error_description?: string | undefined;
67807
+ error_code?: string | undefined;
67808
+ hd?: string | undefined;
67809
+ error_reason?: string | undefined;
67810
+ };
67811
+ };
67812
+ output: {
67813
+ message: string;
67814
+ };
67815
+ outputFormat: "json";
67816
+ status: 400;
67817
+ } | {
67818
+ input: {
67819
+ form: {
67820
+ state: string;
67821
+ code?: string | undefined;
67822
+ scope?: string | undefined;
67823
+ error?: string | undefined;
67824
+ error_description?: string | undefined;
67825
+ error_code?: string | undefined;
67826
+ hd?: string | undefined;
67827
+ error_reason?: string | undefined;
67828
+ };
67829
+ };
67830
+ output: {
67831
+ message: string;
67832
+ };
67833
+ outputFormat: "json";
67834
+ status: 500;
67835
+ };
67836
+ };
67455
67837
  }, "/callback"> & import("hono/types").MergeSchemaPath<{
67456
67838
  "/": {
67457
67839
  $get: {
@@ -67507,18 +67889,18 @@ export declare function init(config: AuthHeroConfig): {
67507
67889
  client_secret?: string | undefined;
67508
67890
  logo_uri?: string | undefined;
67509
67891
  grant_types?: string[] | undefined;
67510
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined;
67892
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
67511
67893
  scope?: string | undefined;
67512
67894
  audience?: string | undefined;
67513
67895
  client_name?: string | undefined;
67514
67896
  jwks_uri?: string | undefined;
67897
+ jwks?: Record<string, unknown> | undefined;
67515
67898
  redirect_uris?: string[] | undefined;
67516
67899
  client_uri?: string | undefined;
67517
67900
  tos_uri?: string | undefined;
67518
67901
  policy_uri?: string | undefined;
67519
67902
  contacts?: string[] | undefined;
67520
67903
  response_types?: string[] | undefined;
67521
- jwks?: Record<string, unknown> | undefined;
67522
67904
  software_id?: string | undefined;
67523
67905
  software_version?: string | undefined;
67524
67906
  };
@@ -67596,18 +67978,18 @@ export declare function init(config: AuthHeroConfig): {
67596
67978
  client_secret?: string | undefined;
67597
67979
  logo_uri?: string | undefined;
67598
67980
  grant_types?: string[] | undefined;
67599
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined;
67981
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
67600
67982
  scope?: string | undefined;
67601
67983
  audience?: string | undefined;
67602
67984
  client_name?: string | undefined;
67603
67985
  jwks_uri?: string | undefined;
67986
+ jwks?: Record<string, unknown> | undefined;
67604
67987
  redirect_uris?: string[] | undefined;
67605
67988
  client_uri?: string | undefined;
67606
67989
  tos_uri?: string | undefined;
67607
67990
  policy_uri?: string | undefined;
67608
67991
  contacts?: string[] | undefined;
67609
67992
  response_types?: string[] | undefined;
67610
- jwks?: Record<string, unknown> | undefined;
67611
67993
  software_id?: string | undefined;
67612
67994
  software_version?: string | undefined;
67613
67995
  };
@@ -67710,6 +68092,7 @@ export declare function init(config: AuthHeroConfig): {
67710
68092
  acr_values?: string | undefined;
67711
68093
  vendor_id?: string | undefined;
67712
68094
  login_hint?: string | undefined;
68095
+ request_uri?: string | undefined;
67713
68096
  };
67714
68097
  };
67715
68098
  output: Response;
@@ -67742,6 +68125,7 @@ export declare function init(config: AuthHeroConfig): {
67742
68125
  acr_values?: string | undefined;
67743
68126
  vendor_id?: string | undefined;
67744
68127
  login_hint?: string | undefined;
68128
+ request_uri?: string | undefined;
67745
68129
  };
67746
68130
  };
67747
68131
  output: {};
@@ -67774,6 +68158,7 @@ export declare function init(config: AuthHeroConfig): {
67774
68158
  acr_values?: string | undefined;
67775
68159
  vendor_id?: string | undefined;
67776
68160
  login_hint?: string | undefined;
68161
+ request_uri?: string | undefined;
67777
68162
  };
67778
68163
  };
67779
68164
  output: string | {
@@ -67814,6 +68199,7 @@ export declare function init(config: AuthHeroConfig): {
67814
68199
  acr_values?: string | undefined;
67815
68200
  vendor_id?: string | undefined;
67816
68201
  login_hint?: string | undefined;
68202
+ request_uri?: string | undefined;
67817
68203
  };
67818
68204
  };
67819
68205
  output: {
@@ -67848,6 +68234,7 @@ export declare function init(config: AuthHeroConfig): {
67848
68234
  acr_values?: string | undefined;
67849
68235
  vendor_id?: string | undefined;
67850
68236
  login_hint?: string | undefined;
68237
+ request_uri?: string | undefined;
67851
68238
  };
67852
68239
  };
67853
68240
  output: {
@@ -68166,6 +68553,8 @@ export declare function init(config: AuthHeroConfig): {
68166
68553
  scope?: string | undefined;
68167
68554
  audience?: string | undefined;
68168
68555
  organization?: string | undefined;
68556
+ client_assertion?: string | undefined;
68557
+ client_assertion_type?: string | undefined;
68169
68558
  } | {
68170
68559
  code: string;
68171
68560
  grant_type: "authorization_code";
@@ -68174,6 +68563,8 @@ export declare function init(config: AuthHeroConfig): {
68174
68563
  organization?: string | undefined;
68175
68564
  redirect_uri?: string | undefined;
68176
68565
  code_verifier?: string | undefined;
68566
+ client_assertion?: string | undefined;
68567
+ client_assertion_type?: string | undefined;
68177
68568
  } | {
68178
68569
  refresh_token: string;
68179
68570
  grant_type: "refresh_token";
@@ -68181,6 +68572,8 @@ export declare function init(config: AuthHeroConfig): {
68181
68572
  client_secret?: string | undefined;
68182
68573
  organization?: string | undefined;
68183
68574
  redirect_uri?: string | undefined;
68575
+ client_assertion?: string | undefined;
68576
+ client_assertion_type?: string | undefined;
68184
68577
  } | {
68185
68578
  client_id: string;
68186
68579
  grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
@@ -68196,6 +68589,8 @@ export declare function init(config: AuthHeroConfig): {
68196
68589
  scope?: string | undefined;
68197
68590
  audience?: string | undefined;
68198
68591
  organization?: string | undefined;
68592
+ client_assertion?: string | undefined;
68593
+ client_assertion_type?: string | undefined;
68199
68594
  } | {
68200
68595
  code: string;
68201
68596
  grant_type: "authorization_code";
@@ -68204,6 +68599,8 @@ export declare function init(config: AuthHeroConfig): {
68204
68599
  organization?: string | undefined;
68205
68600
  redirect_uri?: string | undefined;
68206
68601
  code_verifier?: string | undefined;
68602
+ client_assertion?: string | undefined;
68603
+ client_assertion_type?: string | undefined;
68207
68604
  } | {
68208
68605
  refresh_token: string;
68209
68606
  grant_type: "refresh_token";
@@ -68211,6 +68608,8 @@ export declare function init(config: AuthHeroConfig): {
68211
68608
  client_secret?: string | undefined;
68212
68609
  organization?: string | undefined;
68213
68610
  redirect_uri?: string | undefined;
68611
+ client_assertion?: string | undefined;
68612
+ client_assertion_type?: string | undefined;
68214
68613
  } | {
68215
68614
  client_id: string;
68216
68615
  grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
@@ -68231,6 +68630,8 @@ export declare function init(config: AuthHeroConfig): {
68231
68630
  scope?: string | undefined;
68232
68631
  audience?: string | undefined;
68233
68632
  organization?: string | undefined;
68633
+ client_assertion?: string | undefined;
68634
+ client_assertion_type?: string | undefined;
68234
68635
  } | {
68235
68636
  code: string;
68236
68637
  grant_type: "authorization_code";
@@ -68239,6 +68640,8 @@ export declare function init(config: AuthHeroConfig): {
68239
68640
  organization?: string | undefined;
68240
68641
  redirect_uri?: string | undefined;
68241
68642
  code_verifier?: string | undefined;
68643
+ client_assertion?: string | undefined;
68644
+ client_assertion_type?: string | undefined;
68242
68645
  } | {
68243
68646
  refresh_token: string;
68244
68647
  grant_type: "refresh_token";
@@ -68246,6 +68649,8 @@ export declare function init(config: AuthHeroConfig): {
68246
68649
  client_secret?: string | undefined;
68247
68650
  organization?: string | undefined;
68248
68651
  redirect_uri?: string | undefined;
68652
+ client_assertion?: string | undefined;
68653
+ client_assertion_type?: string | undefined;
68249
68654
  } | {
68250
68655
  client_id: string;
68251
68656
  grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
@@ -68261,6 +68666,8 @@ export declare function init(config: AuthHeroConfig): {
68261
68666
  scope?: string | undefined;
68262
68667
  audience?: string | undefined;
68263
68668
  organization?: string | undefined;
68669
+ client_assertion?: string | undefined;
68670
+ client_assertion_type?: string | undefined;
68264
68671
  } | {
68265
68672
  code: string;
68266
68673
  grant_type: "authorization_code";
@@ -68269,6 +68676,8 @@ export declare function init(config: AuthHeroConfig): {
68269
68676
  organization?: string | undefined;
68270
68677
  redirect_uri?: string | undefined;
68271
68678
  code_verifier?: string | undefined;
68679
+ client_assertion?: string | undefined;
68680
+ client_assertion_type?: string | undefined;
68272
68681
  } | {
68273
68682
  refresh_token: string;
68274
68683
  grant_type: "refresh_token";
@@ -68276,6 +68685,8 @@ export declare function init(config: AuthHeroConfig): {
68276
68685
  client_secret?: string | undefined;
68277
68686
  organization?: string | undefined;
68278
68687
  redirect_uri?: string | undefined;
68688
+ client_assertion?: string | undefined;
68689
+ client_assertion_type?: string | undefined;
68279
68690
  } | {
68280
68691
  client_id: string;
68281
68692
  grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
@@ -68304,6 +68715,8 @@ export declare function init(config: AuthHeroConfig): {
68304
68715
  scope?: string | undefined;
68305
68716
  audience?: string | undefined;
68306
68717
  organization?: string | undefined;
68718
+ client_assertion?: string | undefined;
68719
+ client_assertion_type?: string | undefined;
68307
68720
  } | {
68308
68721
  code: string;
68309
68722
  grant_type: "authorization_code";
@@ -68312,6 +68725,8 @@ export declare function init(config: AuthHeroConfig): {
68312
68725
  organization?: string | undefined;
68313
68726
  redirect_uri?: string | undefined;
68314
68727
  code_verifier?: string | undefined;
68728
+ client_assertion?: string | undefined;
68729
+ client_assertion_type?: string | undefined;
68315
68730
  } | {
68316
68731
  refresh_token: string;
68317
68732
  grant_type: "refresh_token";
@@ -68319,6 +68734,8 @@ export declare function init(config: AuthHeroConfig): {
68319
68734
  client_secret?: string | undefined;
68320
68735
  organization?: string | undefined;
68321
68736
  redirect_uri?: string | undefined;
68737
+ client_assertion?: string | undefined;
68738
+ client_assertion_type?: string | undefined;
68322
68739
  } | {
68323
68740
  client_id: string;
68324
68741
  grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
@@ -68334,6 +68751,8 @@ export declare function init(config: AuthHeroConfig): {
68334
68751
  scope?: string | undefined;
68335
68752
  audience?: string | undefined;
68336
68753
  organization?: string | undefined;
68754
+ client_assertion?: string | undefined;
68755
+ client_assertion_type?: string | undefined;
68337
68756
  } | {
68338
68757
  code: string;
68339
68758
  grant_type: "authorization_code";
@@ -68342,6 +68761,8 @@ export declare function init(config: AuthHeroConfig): {
68342
68761
  organization?: string | undefined;
68343
68762
  redirect_uri?: string | undefined;
68344
68763
  code_verifier?: string | undefined;
68764
+ client_assertion?: string | undefined;
68765
+ client_assertion_type?: string | undefined;
68345
68766
  } | {
68346
68767
  refresh_token: string;
68347
68768
  grant_type: "refresh_token";
@@ -68349,6 +68770,8 @@ export declare function init(config: AuthHeroConfig): {
68349
68770
  client_secret?: string | undefined;
68350
68771
  organization?: string | undefined;
68351
68772
  redirect_uri?: string | undefined;
68773
+ client_assertion?: string | undefined;
68774
+ client_assertion_type?: string | undefined;
68352
68775
  } | {
68353
68776
  client_id: string;
68354
68777
  grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
@@ -68372,6 +68795,8 @@ export declare function init(config: AuthHeroConfig): {
68372
68795
  scope?: string | undefined;
68373
68796
  audience?: string | undefined;
68374
68797
  organization?: string | undefined;
68798
+ client_assertion?: string | undefined;
68799
+ client_assertion_type?: string | undefined;
68375
68800
  } | {
68376
68801
  code: string;
68377
68802
  grant_type: "authorization_code";
@@ -68380,6 +68805,8 @@ export declare function init(config: AuthHeroConfig): {
68380
68805
  organization?: string | undefined;
68381
68806
  redirect_uri?: string | undefined;
68382
68807
  code_verifier?: string | undefined;
68808
+ client_assertion?: string | undefined;
68809
+ client_assertion_type?: string | undefined;
68383
68810
  } | {
68384
68811
  refresh_token: string;
68385
68812
  grant_type: "refresh_token";
@@ -68387,6 +68814,8 @@ export declare function init(config: AuthHeroConfig): {
68387
68814
  client_secret?: string | undefined;
68388
68815
  organization?: string | undefined;
68389
68816
  redirect_uri?: string | undefined;
68817
+ client_assertion?: string | undefined;
68818
+ client_assertion_type?: string | undefined;
68390
68819
  } | {
68391
68820
  client_id: string;
68392
68821
  grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
@@ -68402,6 +68831,8 @@ export declare function init(config: AuthHeroConfig): {
68402
68831
  scope?: string | undefined;
68403
68832
  audience?: string | undefined;
68404
68833
  organization?: string | undefined;
68834
+ client_assertion?: string | undefined;
68835
+ client_assertion_type?: string | undefined;
68405
68836
  } | {
68406
68837
  code: string;
68407
68838
  grant_type: "authorization_code";
@@ -68410,6 +68841,8 @@ export declare function init(config: AuthHeroConfig): {
68410
68841
  organization?: string | undefined;
68411
68842
  redirect_uri?: string | undefined;
68412
68843
  code_verifier?: string | undefined;
68844
+ client_assertion?: string | undefined;
68845
+ client_assertion_type?: string | undefined;
68413
68846
  } | {
68414
68847
  refresh_token: string;
68415
68848
  grant_type: "refresh_token";
@@ -68417,6 +68850,8 @@ export declare function init(config: AuthHeroConfig): {
68417
68850
  client_secret?: string | undefined;
68418
68851
  organization?: string | undefined;
68419
68852
  redirect_uri?: string | undefined;
68853
+ client_assertion?: string | undefined;
68854
+ client_assertion_type?: string | undefined;
68420
68855
  } | {
68421
68856
  client_id: string;
68422
68857
  grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
@@ -68440,6 +68875,8 @@ export declare function init(config: AuthHeroConfig): {
68440
68875
  scope?: string | undefined;
68441
68876
  audience?: string | undefined;
68442
68877
  organization?: string | undefined;
68878
+ client_assertion?: string | undefined;
68879
+ client_assertion_type?: string | undefined;
68443
68880
  } | {
68444
68881
  code: string;
68445
68882
  grant_type: "authorization_code";
@@ -68448,6 +68885,8 @@ export declare function init(config: AuthHeroConfig): {
68448
68885
  organization?: string | undefined;
68449
68886
  redirect_uri?: string | undefined;
68450
68887
  code_verifier?: string | undefined;
68888
+ client_assertion?: string | undefined;
68889
+ client_assertion_type?: string | undefined;
68451
68890
  } | {
68452
68891
  refresh_token: string;
68453
68892
  grant_type: "refresh_token";
@@ -68455,6 +68894,8 @@ export declare function init(config: AuthHeroConfig): {
68455
68894
  client_secret?: string | undefined;
68456
68895
  organization?: string | undefined;
68457
68896
  redirect_uri?: string | undefined;
68897
+ client_assertion?: string | undefined;
68898
+ client_assertion_type?: string | undefined;
68458
68899
  } | {
68459
68900
  client_id: string;
68460
68901
  grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
@@ -68470,6 +68911,8 @@ export declare function init(config: AuthHeroConfig): {
68470
68911
  scope?: string | undefined;
68471
68912
  audience?: string | undefined;
68472
68913
  organization?: string | undefined;
68914
+ client_assertion?: string | undefined;
68915
+ client_assertion_type?: string | undefined;
68473
68916
  } | {
68474
68917
  code: string;
68475
68918
  grant_type: "authorization_code";
@@ -68478,6 +68921,8 @@ export declare function init(config: AuthHeroConfig): {
68478
68921
  organization?: string | undefined;
68479
68922
  redirect_uri?: string | undefined;
68480
68923
  code_verifier?: string | undefined;
68924
+ client_assertion?: string | undefined;
68925
+ client_assertion_type?: string | undefined;
68481
68926
  } | {
68482
68927
  refresh_token: string;
68483
68928
  grant_type: "refresh_token";
@@ -68485,6 +68930,8 @@ export declare function init(config: AuthHeroConfig): {
68485
68930
  client_secret?: string | undefined;
68486
68931
  organization?: string | undefined;
68487
68932
  redirect_uri?: string | undefined;
68933
+ client_assertion?: string | undefined;
68934
+ client_assertion_type?: string | undefined;
68488
68935
  } | {
68489
68936
  client_id: string;
68490
68937
  grant_type: "http://auth0.com/oauth/grant-type/passwordless/otp";
@@ -68509,12 +68956,15 @@ export declare function init(config: AuthHeroConfig): {
68509
68956
  keys: {
68510
68957
  kid: string;
68511
68958
  alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
68512
- e: string;
68513
68959
  kty: "RSA" | "EC" | "oct";
68514
- n: string;
68960
+ x?: string | undefined | undefined;
68961
+ y?: string | undefined | undefined;
68962
+ use?: "sig" | "enc" | undefined | undefined;
68963
+ n?: string | undefined | undefined;
68964
+ e?: string | undefined | undefined;
68965
+ crv?: string | undefined | undefined;
68515
68966
  x5t?: string | undefined | undefined;
68516
68967
  x5c?: string[] | undefined | undefined;
68517
- use?: "sig" | "enc" | undefined | undefined;
68518
68968
  }[];
68519
68969
  };
68520
68970
  outputFormat: "json";
@@ -68548,6 +68998,7 @@ export declare function init(config: AuthHeroConfig): {
68548
68998
  registration_endpoint?: string | undefined | undefined;
68549
68999
  end_session_endpoint?: string | undefined | undefined;
68550
69000
  grant_types_supported?: string[] | undefined | undefined;
69001
+ request_object_signing_alg_values_supported?: string[] | undefined | undefined;
68551
69002
  };
68552
69003
  outputFormat: "json";
68553
69004
  status: 200;