@authhero/adapter-interfaces 1.12.0 → 1.13.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,7 @@ 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">>;
11698
11703
  passwordPolicy: z.ZodOptional<z.ZodEnum<[
11699
11704
  "none",
11700
11705
  "low",
@@ -12121,6 +12126,7 @@ export declare const connectionOptionsSchema: z.ZodObject<{
12121
12126
  twilio_sid?: string | undefined;
12122
12127
  twilio_token?: string | undefined;
12123
12128
  icon_url?: string | undefined;
12129
+ domain_aliases?: string[] | undefined;
12124
12130
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
12125
12131
  password_complexity_options?: {
12126
12132
  min_length?: number | undefined;
@@ -12224,6 +12230,7 @@ export declare const connectionOptionsSchema: z.ZodObject<{
12224
12230
  twilio_sid?: string | undefined;
12225
12231
  twilio_token?: string | undefined;
12226
12232
  icon_url?: string | undefined;
12233
+ domain_aliases?: string[] | undefined;
12227
12234
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
12228
12235
  password_complexity_options?: {
12229
12236
  min_length?: number | undefined;
@@ -12327,6 +12334,7 @@ export declare const connectionInsertSchema: z.ZodObject<{
12327
12334
  twilio_sid: z.ZodOptional<z.ZodString>;
12328
12335
  twilio_token: z.ZodOptional<z.ZodString>;
12329
12336
  icon_url: z.ZodOptional<z.ZodString>;
12337
+ domain_aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
12330
12338
  passwordPolicy: z.ZodOptional<z.ZodEnum<[
12331
12339
  "none",
12332
12340
  "low",
@@ -12753,6 +12761,7 @@ export declare const connectionInsertSchema: z.ZodObject<{
12753
12761
  twilio_sid?: string | undefined;
12754
12762
  twilio_token?: string | undefined;
12755
12763
  icon_url?: string | undefined;
12764
+ domain_aliases?: string[] | undefined;
12756
12765
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
12757
12766
  password_complexity_options?: {
12758
12767
  min_length?: number | undefined;
@@ -12856,6 +12865,7 @@ export declare const connectionInsertSchema: z.ZodObject<{
12856
12865
  twilio_sid?: string | undefined;
12857
12866
  twilio_token?: string | undefined;
12858
12867
  icon_url?: string | undefined;
12868
+ domain_aliases?: string[] | undefined;
12859
12869
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
12860
12870
  password_complexity_options?: {
12861
12871
  min_length?: number | undefined;
@@ -12959,6 +12969,7 @@ export declare const connectionInsertSchema: z.ZodObject<{
12959
12969
  twilio_sid?: string | undefined;
12960
12970
  twilio_token?: string | undefined;
12961
12971
  icon_url?: string | undefined;
12972
+ domain_aliases?: string[] | undefined;
12962
12973
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
12963
12974
  password_complexity_options?: {
12964
12975
  min_length?: number | undefined;
@@ -13071,6 +13082,7 @@ export declare const connectionInsertSchema: z.ZodObject<{
13071
13082
  twilio_sid?: string | undefined;
13072
13083
  twilio_token?: string | undefined;
13073
13084
  icon_url?: string | undefined;
13085
+ domain_aliases?: string[] | undefined;
13074
13086
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
13075
13087
  password_complexity_options?: {
13076
13088
  min_length?: number | undefined;
@@ -13203,6 +13215,7 @@ export declare const connectionSchema: z.ZodObject<{
13203
13215
  twilio_sid: z.ZodOptional<z.ZodString>;
13204
13216
  twilio_token: z.ZodOptional<z.ZodString>;
13205
13217
  icon_url: z.ZodOptional<z.ZodString>;
13218
+ domain_aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
13206
13219
  passwordPolicy: z.ZodOptional<z.ZodEnum<[
13207
13220
  "none",
13208
13221
  "low",
@@ -13629,6 +13642,7 @@ export declare const connectionSchema: z.ZodObject<{
13629
13642
  twilio_sid?: string | undefined;
13630
13643
  twilio_token?: string | undefined;
13631
13644
  icon_url?: string | undefined;
13645
+ domain_aliases?: string[] | undefined;
13632
13646
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
13633
13647
  password_complexity_options?: {
13634
13648
  min_length?: number | undefined;
@@ -13732,6 +13746,7 @@ export declare const connectionSchema: z.ZodObject<{
13732
13746
  twilio_sid?: string | undefined;
13733
13747
  twilio_token?: string | undefined;
13734
13748
  icon_url?: string | undefined;
13749
+ domain_aliases?: string[] | undefined;
13735
13750
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
13736
13751
  password_complexity_options?: {
13737
13752
  min_length?: number | undefined;
@@ -13835,6 +13850,7 @@ export declare const connectionSchema: z.ZodObject<{
13835
13850
  twilio_sid?: string | undefined;
13836
13851
  twilio_token?: string | undefined;
13837
13852
  icon_url?: string | undefined;
13853
+ domain_aliases?: string[] | undefined;
13838
13854
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
13839
13855
  password_complexity_options?: {
13840
13856
  min_length?: number | undefined;
@@ -13949,6 +13965,7 @@ export declare const connectionSchema: z.ZodObject<{
13949
13965
  twilio_sid?: string | undefined;
13950
13966
  twilio_token?: string | undefined;
13951
13967
  icon_url?: string | undefined;
13968
+ domain_aliases?: string[] | undefined;
13952
13969
  passwordPolicy?: "none" | "low" | "fair" | "good" | "excellent" | undefined;
13953
13970
  password_complexity_options?: {
13954
13971
  min_length?: number | undefined;
@@ -43136,7 +43153,7 @@ export declare const inviteSchema: z.ZodObject<{
43136
43153
  ticket_id?: string | undefined;
43137
43154
  }>;
43138
43155
  export type Invite = z.infer<typeof inviteSchema>;
43139
- export declare const jwksSchema: z.ZodObject<{
43156
+ export declare const jwksSchema: z.ZodEffects<z.ZodObject<{
43140
43157
  alg: z.ZodEnum<[
43141
43158
  "RS256",
43142
43159
  "RS384",
@@ -43148,41 +43165,74 @@ export declare const jwksSchema: z.ZodObject<{
43148
43165
  "HS384",
43149
43166
  "HS512"
43150
43167
  ]>;
43151
- e: z.ZodString;
43152
43168
  kid: z.ZodString;
43153
43169
  kty: z.ZodEnum<[
43154
43170
  "RSA",
43155
43171
  "EC",
43156
43172
  "oct"
43157
43173
  ]>;
43158
- n: z.ZodString;
43159
- x5t: z.ZodOptional<z.ZodString>;
43160
- x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
43161
43174
  use: z.ZodOptional<z.ZodEnum<[
43162
43175
  "sig",
43163
43176
  "enc"
43164
43177
  ]>>;
43178
+ n: z.ZodOptional<z.ZodString>;
43179
+ e: z.ZodOptional<z.ZodString>;
43180
+ crv: z.ZodOptional<z.ZodString>;
43181
+ x: z.ZodOptional<z.ZodString>;
43182
+ y: z.ZodOptional<z.ZodString>;
43183
+ x5t: z.ZodOptional<z.ZodString>;
43184
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
43165
43185
  }, "strip", z.ZodTypeAny, {
43166
43186
  kid: string;
43167
43187
  alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
43168
- e: string;
43169
43188
  kty: "RSA" | "EC" | "oct";
43170
- n: string;
43189
+ x?: string | undefined;
43190
+ y?: string | undefined;
43191
+ use?: "sig" | "enc" | undefined;
43192
+ n?: string | undefined;
43193
+ e?: string | undefined;
43194
+ crv?: string | undefined;
43171
43195
  x5t?: string | undefined;
43172
43196
  x5c?: string[] | undefined;
43173
- use?: "sig" | "enc" | undefined;
43174
43197
  }, {
43175
43198
  kid: string;
43176
43199
  alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
43177
- e: string;
43178
43200
  kty: "RSA" | "EC" | "oct";
43179
- n: string;
43201
+ x?: string | undefined;
43202
+ y?: string | undefined;
43203
+ use?: "sig" | "enc" | undefined;
43204
+ n?: string | undefined;
43205
+ e?: string | undefined;
43206
+ crv?: string | undefined;
43207
+ x5t?: string | undefined;
43208
+ x5c?: string[] | undefined;
43209
+ }>, {
43210
+ kid: string;
43211
+ alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
43212
+ kty: "RSA" | "EC" | "oct";
43213
+ x?: string | undefined;
43214
+ y?: string | undefined;
43215
+ use?: "sig" | "enc" | undefined;
43216
+ n?: string | undefined;
43217
+ e?: string | undefined;
43218
+ crv?: string | undefined;
43180
43219
  x5t?: string | undefined;
43181
43220
  x5c?: string[] | undefined;
43221
+ }, {
43222
+ kid: string;
43223
+ alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
43224
+ kty: "RSA" | "EC" | "oct";
43225
+ x?: string | undefined;
43226
+ y?: string | undefined;
43182
43227
  use?: "sig" | "enc" | undefined;
43228
+ n?: string | undefined;
43229
+ e?: string | undefined;
43230
+ crv?: string | undefined;
43231
+ x5t?: string | undefined;
43232
+ x5c?: string[] | undefined;
43183
43233
  }>;
43184
43234
  export declare const jwksKeySchema: z.ZodObject<{
43185
- keys: z.ZodArray<z.ZodObject<{
43235
+ keys: z.ZodArray<z.ZodEffects<z.ZodObject<{
43186
43236
  alg: z.ZodEnum<[
43187
43237
  "RS256",
43188
43238
  "RS384",
@@ -43194,62 +43244,103 @@ export declare const jwksKeySchema: z.ZodObject<{
43194
43244
  "HS384",
43195
43245
  "HS512"
43196
43246
  ]>;
43197
- e: z.ZodString;
43198
43247
  kid: z.ZodString;
43199
43248
  kty: z.ZodEnum<[
43200
43249
  "RSA",
43201
43250
  "EC",
43202
43251
  "oct"
43203
43252
  ]>;
43204
- n: z.ZodString;
43205
- x5t: z.ZodOptional<z.ZodString>;
43206
- x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
43207
43253
  use: z.ZodOptional<z.ZodEnum<[
43208
43254
  "sig",
43209
43255
  "enc"
43210
43256
  ]>>;
43257
+ n: z.ZodOptional<z.ZodString>;
43258
+ e: z.ZodOptional<z.ZodString>;
43259
+ crv: z.ZodOptional<z.ZodString>;
43260
+ x: z.ZodOptional<z.ZodString>;
43261
+ y: z.ZodOptional<z.ZodString>;
43262
+ x5t: z.ZodOptional<z.ZodString>;
43263
+ x5c: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
43211
43264
  }, "strip", z.ZodTypeAny, {
43212
43265
  kid: string;
43213
43266
  alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
43214
- e: string;
43215
43267
  kty: "RSA" | "EC" | "oct";
43216
- n: string;
43268
+ x?: string | undefined;
43269
+ y?: string | undefined;
43270
+ use?: "sig" | "enc" | undefined;
43271
+ n?: string | undefined;
43272
+ e?: string | undefined;
43273
+ crv?: string | undefined;
43217
43274
  x5t?: string | undefined;
43218
43275
  x5c?: string[] | undefined;
43219
- use?: "sig" | "enc" | undefined;
43220
43276
  }, {
43221
43277
  kid: string;
43222
43278
  alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
43223
- e: string;
43224
43279
  kty: "RSA" | "EC" | "oct";
43225
- n: string;
43280
+ x?: string | undefined;
43281
+ y?: string | undefined;
43282
+ use?: "sig" | "enc" | undefined;
43283
+ n?: string | undefined;
43284
+ e?: string | undefined;
43285
+ crv?: string | undefined;
43286
+ x5t?: string | undefined;
43287
+ x5c?: string[] | undefined;
43288
+ }>, {
43289
+ kid: string;
43290
+ alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
43291
+ kty: "RSA" | "EC" | "oct";
43292
+ x?: string | undefined;
43293
+ y?: string | undefined;
43294
+ use?: "sig" | "enc" | undefined;
43295
+ n?: string | undefined;
43296
+ e?: string | undefined;
43297
+ crv?: string | undefined;
43226
43298
  x5t?: string | undefined;
43227
43299
  x5c?: string[] | undefined;
43300
+ }, {
43301
+ kid: string;
43302
+ alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
43303
+ kty: "RSA" | "EC" | "oct";
43304
+ x?: string | undefined;
43305
+ y?: string | undefined;
43228
43306
  use?: "sig" | "enc" | undefined;
43307
+ n?: string | undefined;
43308
+ e?: string | undefined;
43309
+ crv?: string | undefined;
43310
+ x5t?: string | undefined;
43311
+ x5c?: string[] | undefined;
43229
43312
  }>, "many">;
43230
43313
  }, "strip", z.ZodTypeAny, {
43231
43314
  keys: {
43232
43315
  kid: string;
43233
43316
  alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
43234
- e: string;
43235
43317
  kty: "RSA" | "EC" | "oct";
43236
- n: string;
43318
+ x?: string | undefined;
43319
+ y?: string | undefined;
43320
+ use?: "sig" | "enc" | undefined;
43321
+ n?: string | undefined;
43322
+ e?: string | undefined;
43323
+ crv?: string | undefined;
43237
43324
  x5t?: string | undefined;
43238
43325
  x5c?: string[] | undefined;
43239
- use?: "sig" | "enc" | undefined;
43240
43326
  }[];
43241
43327
  }, {
43242
43328
  keys: {
43243
43329
  kid: string;
43244
43330
  alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
43245
- e: string;
43246
43331
  kty: "RSA" | "EC" | "oct";
43247
- n: string;
43332
+ x?: string | undefined;
43333
+ y?: string | undefined;
43334
+ use?: "sig" | "enc" | undefined;
43335
+ n?: string | undefined;
43336
+ e?: string | undefined;
43337
+ crv?: string | undefined;
43248
43338
  x5t?: string | undefined;
43249
43339
  x5c?: string[] | undefined;
43250
- use?: "sig" | "enc" | undefined;
43251
43340
  }[];
43252
43341
  }>;
43342
+ export type Jwk = z.infer<typeof jwksSchema>;
43343
+ export type Jwks = z.infer<typeof jwksKeySchema>;
43253
43344
  export declare const openIDConfigurationSchema: z.ZodObject<{
43254
43345
  issuer: z.ZodString;
43255
43346
  authorization_endpoint: z.ZodString;
@@ -43272,6 +43363,7 @@ export declare const openIDConfigurationSchema: z.ZodObject<{
43272
43363
  claims_supported: z.ZodArray<z.ZodString, "many">;
43273
43364
  request_uri_parameter_supported: z.ZodBoolean;
43274
43365
  request_parameter_supported: z.ZodBoolean;
43366
+ request_object_signing_alg_values_supported: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
43275
43367
  token_endpoint_auth_signing_alg_values_supported: z.ZodArray<z.ZodString, "many">;
43276
43368
  }, "strip", z.ZodTypeAny, {
43277
43369
  authorization_endpoint: string;
@@ -43296,6 +43388,7 @@ export declare const openIDConfigurationSchema: z.ZodObject<{
43296
43388
  registration_endpoint?: string | undefined;
43297
43389
  end_session_endpoint?: string | undefined;
43298
43390
  grant_types_supported?: string[] | undefined;
43391
+ request_object_signing_alg_values_supported?: string[] | undefined;
43299
43392
  }, {
43300
43393
  authorization_endpoint: string;
43301
43394
  token_endpoint: string;
@@ -43319,6 +43412,7 @@ export declare const openIDConfigurationSchema: z.ZodObject<{
43319
43412
  registration_endpoint?: string | undefined;
43320
43413
  end_session_endpoint?: string | undefined;
43321
43414
  grant_types_supported?: string[] | undefined;
43415
+ request_object_signing_alg_values_supported?: string[] | undefined;
43322
43416
  }>;
43323
43417
  export interface ListParams {
43324
43418
  page?: number;