@authhero/adapter-interfaces 1.12.0 → 1.14.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.
@@ -3060,7 +3060,9 @@ export declare const clientInsertSchema: z.ZodObject<{
3060
3060
  token_endpoint_auth_method: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
3061
3061
  "none",
3062
3062
  "client_secret_post",
3063
- "client_secret_basic"
3063
+ "client_secret_basic",
3064
+ "client_secret_jwt",
3065
+ "private_key_jwt"
3064
3066
  ]>>>;
3065
3067
  client_metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>>;
3066
3068
  mobile: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
@@ -3176,7 +3178,7 @@ export declare const clientInsertSchema: z.ZodObject<{
3176
3178
  custom_login_page_preview?: string | undefined;
3177
3179
  form_template?: string | undefined;
3178
3180
  addons?: Record<string, any> | undefined;
3179
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined;
3181
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
3180
3182
  client_metadata?: Record<string, string> | undefined;
3181
3183
  mobile?: Record<string, any> | undefined;
3182
3184
  initiate_login_uri?: string | undefined;
@@ -3235,7 +3237,7 @@ export declare const clientInsertSchema: z.ZodObject<{
3235
3237
  custom_login_page_preview?: string | undefined;
3236
3238
  form_template?: string | undefined;
3237
3239
  addons?: Record<string, any> | undefined;
3238
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined;
3240
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
3239
3241
  client_metadata?: Record<string, string> | undefined;
3240
3242
  mobile?: Record<string, any> | undefined;
3241
3243
  initiate_login_uri?: string | undefined;
@@ -3318,7 +3320,9 @@ export declare const clientSchema: z.ZodObject<{
3318
3320
  token_endpoint_auth_method: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
3319
3321
  "none",
3320
3322
  "client_secret_post",
3321
- "client_secret_basic"
3323
+ "client_secret_basic",
3324
+ "client_secret_jwt",
3325
+ "private_key_jwt"
3322
3326
  ]>>>;
3323
3327
  client_metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>>;
3324
3328
  mobile: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
@@ -3438,7 +3442,7 @@ export declare const clientSchema: z.ZodObject<{
3438
3442
  custom_login_page_preview?: string | undefined;
3439
3443
  form_template?: string | undefined;
3440
3444
  addons?: Record<string, any> | undefined;
3441
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined;
3445
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
3442
3446
  client_metadata?: Record<string, string> | undefined;
3443
3447
  mobile?: Record<string, any> | undefined;
3444
3448
  initiate_login_uri?: string | undefined;
@@ -3499,7 +3503,7 @@ export declare const clientSchema: z.ZodObject<{
3499
3503
  custom_login_page_preview?: string | undefined;
3500
3504
  form_template?: string | undefined;
3501
3505
  addons?: Record<string, any> | undefined;
3502
- token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | undefined;
3506
+ token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
3503
3507
  client_metadata?: Record<string, string> | undefined;
3504
3508
  mobile?: Record<string, any> | undefined;
3505
3509
  initiate_login_uri?: string | undefined;
@@ -11695,6 +11699,8 @@ export declare const connectionOptionsSchema: z.ZodObject<{
11695
11699
  twilio_sid: z.ZodOptional<z.ZodString>;
11696
11700
  twilio_token: z.ZodOptional<z.ZodString>;
11697
11701
  icon_url: z.ZodOptional<z.ZodString>;
11702
+ domain_aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11703
+ callback_url: z.ZodOptional<z.ZodString>;
11698
11704
  passwordPolicy: z.ZodOptional<z.ZodEnum<[
11699
11705
  "none",
11700
11706
  "low",
@@ -12121,6 +12127,8 @@ export declare const connectionOptionsSchema: z.ZodObject<{
12121
12127
  twilio_sid?: string | undefined;
12122
12128
  twilio_token?: string | undefined;
12123
12129
  icon_url?: string | undefined;
12130
+ domain_aliases?: string[] | undefined;
12131
+ callback_url?: string | undefined;
12124
12132
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
12125
12133
  password_complexity_options?: {
12126
12134
  min_length?: number | undefined;
@@ -12224,6 +12232,8 @@ export declare const connectionOptionsSchema: z.ZodObject<{
12224
12232
  twilio_sid?: string | undefined;
12225
12233
  twilio_token?: string | undefined;
12226
12234
  icon_url?: string | undefined;
12235
+ domain_aliases?: string[] | undefined;
12236
+ callback_url?: string | undefined;
12227
12237
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
12228
12238
  password_complexity_options?: {
12229
12239
  min_length?: number | undefined;
@@ -12327,6 +12337,8 @@ export declare const connectionInsertSchema: z.ZodObject<{
12327
12337
  twilio_sid: z.ZodOptional<z.ZodString>;
12328
12338
  twilio_token: z.ZodOptional<z.ZodString>;
12329
12339
  icon_url: z.ZodOptional<z.ZodString>;
12340
+ domain_aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
12341
+ callback_url: z.ZodOptional<z.ZodString>;
12330
12342
  passwordPolicy: z.ZodOptional<z.ZodEnum<[
12331
12343
  "none",
12332
12344
  "low",
@@ -12753,6 +12765,8 @@ export declare const connectionInsertSchema: z.ZodObject<{
12753
12765
  twilio_sid?: string | undefined;
12754
12766
  twilio_token?: string | undefined;
12755
12767
  icon_url?: string | undefined;
12768
+ domain_aliases?: string[] | undefined;
12769
+ callback_url?: string | undefined;
12756
12770
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
12757
12771
  password_complexity_options?: {
12758
12772
  min_length?: number | undefined;
@@ -12856,6 +12870,8 @@ export declare const connectionInsertSchema: z.ZodObject<{
12856
12870
  twilio_sid?: string | undefined;
12857
12871
  twilio_token?: string | undefined;
12858
12872
  icon_url?: string | undefined;
12873
+ domain_aliases?: string[] | undefined;
12874
+ callback_url?: string | undefined;
12859
12875
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
12860
12876
  password_complexity_options?: {
12861
12877
  min_length?: number | undefined;
@@ -12959,6 +12975,8 @@ export declare const connectionInsertSchema: z.ZodObject<{
12959
12975
  twilio_sid?: string | undefined;
12960
12976
  twilio_token?: string | undefined;
12961
12977
  icon_url?: string | undefined;
12978
+ domain_aliases?: string[] | undefined;
12979
+ callback_url?: string | undefined;
12962
12980
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
12963
12981
  password_complexity_options?: {
12964
12982
  min_length?: number | undefined;
@@ -13071,6 +13089,8 @@ export declare const connectionInsertSchema: z.ZodObject<{
13071
13089
  twilio_sid?: string | undefined;
13072
13090
  twilio_token?: string | undefined;
13073
13091
  icon_url?: string | undefined;
13092
+ domain_aliases?: string[] | undefined;
13093
+ callback_url?: string | undefined;
13074
13094
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
13075
13095
  password_complexity_options?: {
13076
13096
  min_length?: number | undefined;
@@ -13203,6 +13223,8 @@ export declare const connectionSchema: z.ZodObject<{
13203
13223
  twilio_sid: z.ZodOptional<z.ZodString>;
13204
13224
  twilio_token: z.ZodOptional<z.ZodString>;
13205
13225
  icon_url: z.ZodOptional<z.ZodString>;
13226
+ domain_aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
13227
+ callback_url: z.ZodOptional<z.ZodString>;
13206
13228
  passwordPolicy: z.ZodOptional<z.ZodEnum<[
13207
13229
  "none",
13208
13230
  "low",
@@ -13629,6 +13651,8 @@ export declare const connectionSchema: z.ZodObject<{
13629
13651
  twilio_sid?: string | undefined;
13630
13652
  twilio_token?: string | undefined;
13631
13653
  icon_url?: string | undefined;
13654
+ domain_aliases?: string[] | undefined;
13655
+ callback_url?: string | undefined;
13632
13656
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
13633
13657
  password_complexity_options?: {
13634
13658
  min_length?: number | undefined;
@@ -13732,6 +13756,8 @@ export declare const connectionSchema: z.ZodObject<{
13732
13756
  twilio_sid?: string | undefined;
13733
13757
  twilio_token?: string | undefined;
13734
13758
  icon_url?: string | undefined;
13759
+ domain_aliases?: string[] | undefined;
13760
+ callback_url?: string | undefined;
13735
13761
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
13736
13762
  password_complexity_options?: {
13737
13763
  min_length?: number | undefined;
@@ -13835,6 +13861,8 @@ export declare const connectionSchema: z.ZodObject<{
13835
13861
  twilio_sid?: string | undefined;
13836
13862
  twilio_token?: string | undefined;
13837
13863
  icon_url?: string | undefined;
13864
+ domain_aliases?: string[] | undefined;
13865
+ callback_url?: string | undefined;
13838
13866
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
13839
13867
  password_complexity_options?: {
13840
13868
  min_length?: number | undefined;
@@ -13949,6 +13977,8 @@ export declare const connectionSchema: z.ZodObject<{
13949
13977
  twilio_sid?: string | undefined;
13950
13978
  twilio_token?: string | undefined;
13951
13979
  icon_url?: string | undefined;
13980
+ domain_aliases?: string[] | undefined;
13981
+ callback_url?: string | undefined;
13952
13982
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
13953
13983
  password_complexity_options?: {
13954
13984
  min_length?: number | undefined;
@@ -43136,7 +43166,7 @@ export declare const inviteSchema: z.ZodObject<{
43136
43166
  ticket_id?: string | undefined;
43137
43167
  }>;
43138
43168
  export type Invite = z.infer<typeof inviteSchema>;
43139
- export declare const jwksSchema: z.ZodObject<{
43169
+ export declare const jwksSchema: z.ZodEffects<z.ZodObject<{
43140
43170
  alg: z.ZodEnum<[
43141
43171
  "RS256",
43142
43172
  "RS384",
@@ -43148,41 +43178,74 @@ export declare const jwksSchema: z.ZodObject<{
43148
43178
  "HS384",
43149
43179
  "HS512"
43150
43180
  ]>;
43151
- e: z.ZodString;
43152
43181
  kid: z.ZodString;
43153
43182
  kty: z.ZodEnum<[
43154
43183
  "RSA",
43155
43184
  "EC",
43156
43185
  "oct"
43157
43186
  ]>;
43158
- n: z.ZodString;
43159
- x5t: z.ZodOptional<z.ZodString>;
43160
- x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
43161
43187
  use: z.ZodOptional<z.ZodEnum<[
43162
43188
  "sig",
43163
43189
  "enc"
43164
43190
  ]>>;
43191
+ n: z.ZodOptional<z.ZodString>;
43192
+ e: z.ZodOptional<z.ZodString>;
43193
+ crv: z.ZodOptional<z.ZodString>;
43194
+ x: z.ZodOptional<z.ZodString>;
43195
+ y: z.ZodOptional<z.ZodString>;
43196
+ x5t: z.ZodOptional<z.ZodString>;
43197
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
43165
43198
  }, "strip", z.ZodTypeAny, {
43166
43199
  kid: string;
43167
43200
  alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
43168
- e: string;
43169
43201
  kty: "RSA" | "EC" | "oct";
43170
- n: string;
43202
+ x?: string | undefined;
43203
+ y?: string | undefined;
43204
+ use?: "sig" | "enc" | undefined;
43205
+ n?: string | undefined;
43206
+ e?: string | undefined;
43207
+ crv?: string | undefined;
43171
43208
  x5t?: string | undefined;
43172
43209
  x5c?: string[] | undefined;
43173
- use?: "sig" | "enc" | undefined;
43174
43210
  }, {
43175
43211
  kid: string;
43176
43212
  alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
43177
- e: string;
43178
43213
  kty: "RSA" | "EC" | "oct";
43179
- n: string;
43214
+ x?: string | undefined;
43215
+ y?: string | undefined;
43216
+ use?: "sig" | "enc" | undefined;
43217
+ n?: string | undefined;
43218
+ e?: string | undefined;
43219
+ crv?: string | undefined;
43220
+ x5t?: string | undefined;
43221
+ x5c?: string[] | undefined;
43222
+ }>, {
43223
+ kid: string;
43224
+ alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
43225
+ kty: "RSA" | "EC" | "oct";
43226
+ x?: string | undefined;
43227
+ y?: string | undefined;
43228
+ use?: "sig" | "enc" | undefined;
43229
+ n?: string | undefined;
43230
+ e?: string | undefined;
43231
+ crv?: string | undefined;
43180
43232
  x5t?: string | undefined;
43181
43233
  x5c?: string[] | undefined;
43234
+ }, {
43235
+ kid: string;
43236
+ alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
43237
+ kty: "RSA" | "EC" | "oct";
43238
+ x?: string | undefined;
43239
+ y?: string | undefined;
43182
43240
  use?: "sig" | "enc" | undefined;
43241
+ n?: string | undefined;
43242
+ e?: string | undefined;
43243
+ crv?: string | undefined;
43244
+ x5t?: string | undefined;
43245
+ x5c?: string[] | undefined;
43183
43246
  }>;
43184
43247
  export declare const jwksKeySchema: z.ZodObject<{
43185
- keys: z.ZodArray<z.ZodObject<{
43248
+ keys: z.ZodArray<z.ZodEffects<z.ZodObject<{
43186
43249
  alg: z.ZodEnum<[
43187
43250
  "RS256",
43188
43251
  "RS384",
@@ -43194,62 +43257,103 @@ export declare const jwksKeySchema: z.ZodObject<{
43194
43257
  "HS384",
43195
43258
  "HS512"
43196
43259
  ]>;
43197
- e: z.ZodString;
43198
43260
  kid: z.ZodString;
43199
43261
  kty: z.ZodEnum<[
43200
43262
  "RSA",
43201
43263
  "EC",
43202
43264
  "oct"
43203
43265
  ]>;
43204
- n: z.ZodString;
43205
- x5t: z.ZodOptional<z.ZodString>;
43206
- x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
43207
43266
  use: z.ZodOptional<z.ZodEnum<[
43208
43267
  "sig",
43209
43268
  "enc"
43210
43269
  ]>>;
43270
+ n: z.ZodOptional<z.ZodString>;
43271
+ e: z.ZodOptional<z.ZodString>;
43272
+ crv: z.ZodOptional<z.ZodString>;
43273
+ x: z.ZodOptional<z.ZodString>;
43274
+ y: z.ZodOptional<z.ZodString>;
43275
+ x5t: z.ZodOptional<z.ZodString>;
43276
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
43211
43277
  }, "strip", z.ZodTypeAny, {
43212
43278
  kid: string;
43213
43279
  alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
43214
- e: string;
43215
43280
  kty: "RSA" | "EC" | "oct";
43216
- n: string;
43281
+ x?: string | undefined;
43282
+ y?: string | undefined;
43283
+ use?: "sig" | "enc" | undefined;
43284
+ n?: string | undefined;
43285
+ e?: string | undefined;
43286
+ crv?: string | undefined;
43217
43287
  x5t?: string | undefined;
43218
43288
  x5c?: string[] | undefined;
43219
- use?: "sig" | "enc" | undefined;
43220
43289
  }, {
43221
43290
  kid: string;
43222
43291
  alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
43223
- e: string;
43224
43292
  kty: "RSA" | "EC" | "oct";
43225
- n: string;
43293
+ x?: string | undefined;
43294
+ y?: string | undefined;
43295
+ use?: "sig" | "enc" | undefined;
43296
+ n?: string | undefined;
43297
+ e?: string | undefined;
43298
+ crv?: string | undefined;
43299
+ x5t?: string | undefined;
43300
+ x5c?: string[] | undefined;
43301
+ }>, {
43302
+ kid: string;
43303
+ alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
43304
+ kty: "RSA" | "EC" | "oct";
43305
+ x?: string | undefined;
43306
+ y?: string | undefined;
43307
+ use?: "sig" | "enc" | undefined;
43308
+ n?: string | undefined;
43309
+ e?: string | undefined;
43310
+ crv?: string | undefined;
43226
43311
  x5t?: string | undefined;
43227
43312
  x5c?: string[] | undefined;
43313
+ }, {
43314
+ kid: string;
43315
+ alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
43316
+ kty: "RSA" | "EC" | "oct";
43317
+ x?: string | undefined;
43318
+ y?: string | undefined;
43228
43319
  use?: "sig" | "enc" | undefined;
43320
+ n?: string | undefined;
43321
+ e?: string | undefined;
43322
+ crv?: string | undefined;
43323
+ x5t?: string | undefined;
43324
+ x5c?: string[] | undefined;
43229
43325
  }>, "many">;
43230
43326
  }, "strip", z.ZodTypeAny, {
43231
43327
  keys: {
43232
43328
  kid: string;
43233
43329
  alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
43234
- e: string;
43235
43330
  kty: "RSA" | "EC" | "oct";
43236
- n: string;
43331
+ x?: string | undefined;
43332
+ y?: string | undefined;
43333
+ use?: "sig" | "enc" | undefined;
43334
+ n?: string | undefined;
43335
+ e?: string | undefined;
43336
+ crv?: string | undefined;
43237
43337
  x5t?: string | undefined;
43238
43338
  x5c?: string[] | undefined;
43239
- use?: "sig" | "enc" | undefined;
43240
43339
  }[];
43241
43340
  }, {
43242
43341
  keys: {
43243
43342
  kid: string;
43244
43343
  alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
43245
- e: string;
43246
43344
  kty: "RSA" | "EC" | "oct";
43247
- n: string;
43345
+ x?: string | undefined;
43346
+ y?: string | undefined;
43347
+ use?: "sig" | "enc" | undefined;
43348
+ n?: string | undefined;
43349
+ e?: string | undefined;
43350
+ crv?: string | undefined;
43248
43351
  x5t?: string | undefined;
43249
43352
  x5c?: string[] | undefined;
43250
- use?: "sig" | "enc" | undefined;
43251
43353
  }[];
43252
43354
  }>;
43355
+ export type Jwk = z.infer<typeof jwksSchema>;
43356
+ export type Jwks = z.infer<typeof jwksKeySchema>;
43253
43357
  export declare const openIDConfigurationSchema: z.ZodObject<{
43254
43358
  issuer: z.ZodString;
43255
43359
  authorization_endpoint: z.ZodString;
@@ -43272,6 +43376,7 @@ export declare const openIDConfigurationSchema: z.ZodObject<{
43272
43376
  claims_supported: z.ZodArray<z.ZodString, "many">;
43273
43377
  request_uri_parameter_supported: z.ZodBoolean;
43274
43378
  request_parameter_supported: z.ZodBoolean;
43379
+ request_object_signing_alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
43275
43380
  token_endpoint_auth_signing_alg_values_supported: z.ZodArray<z.ZodString, "many">;
43276
43381
  }, "strip", z.ZodTypeAny, {
43277
43382
  authorization_endpoint: string;
@@ -43296,6 +43401,7 @@ export declare const openIDConfigurationSchema: z.ZodObject<{
43296
43401
  registration_endpoint?: string | undefined;
43297
43402
  end_session_endpoint?: string | undefined;
43298
43403
  grant_types_supported?: string[] | undefined;
43404
+ request_object_signing_alg_values_supported?: string[] | undefined;
43299
43405
  }, {
43300
43406
  authorization_endpoint: string;
43301
43407
  token_endpoint: string;
@@ -43319,6 +43425,7 @@ export declare const openIDConfigurationSchema: z.ZodObject<{
43319
43425
  registration_endpoint?: string | undefined;
43320
43426
  end_session_endpoint?: string | undefined;
43321
43427
  grant_types_supported?: string[] | undefined;
43428
+ request_object_signing_alg_values_supported?: string[] | undefined;
43322
43429
  }>;
43323
43430
  export interface ListParams {
43324
43431
  page?: number;