@authhero/adapter-interfaces 0.11.1 → 0.11.2

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.
@@ -2927,7 +2927,7 @@ var r = /* @__PURE__ */ Object.freeze({
2927
2927
  ZodError: T
2928
2928
  });
2929
2929
  ht(r);
2930
- const Gn = r.object({
2930
+ const Hn = r.object({
2931
2931
  start: r.number(),
2932
2932
  limit: r.number(),
2933
2933
  length: r.number()
@@ -2979,7 +2979,7 @@ const Gn = r.object({
2979
2979
  is_social: r.boolean(),
2980
2980
  login_count: r.number(),
2981
2981
  identities: r.array(yn).optional()
2982
- }), Hn = bn, qn = tt.extend({
2982
+ }), qn = bn, Fn = tt.extend({
2983
2983
  email: r.string(),
2984
2984
  login_count: r.number(),
2985
2985
  multifactor: r.array(r.string()).optional(),
@@ -2989,24 +2989,21 @@ const Gn = r.object({
2989
2989
  }).catchall(r.any()), kn = r.object({
2990
2990
  id: r.string(),
2991
2991
  name: r.string(),
2992
- callbacks: r.string().transform((t) => t === null ? "" : t).default("").openapi({
2992
+ callbacks: r.array(r.string()).openapi({
2993
2993
  description: "Comma-separated list of URLs whitelisted to use as a callback to the client after authentication."
2994
2994
  }),
2995
- allowed_origins: r.string().transform((t) => t === null ? "" : t).default("").openapi({
2995
+ allowed_origins: r.array(r.string()).openapi({
2996
2996
  description: "Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level. Query strings and hash information are not taken into account when validating these URLs."
2997
2997
  }),
2998
- web_origins: r.string().transform((t) => t === null ? "" : t).default("").openapi({
2998
+ web_origins: r.array(r.string()).openapi({
2999
2999
  description: "Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode."
3000
3000
  }),
3001
- allowed_logout_urls: r.string().transform((t) => t === null ? "" : t).default("").openapi({
3001
+ allowed_logout_urls: r.array(r.string()).openapi({
3002
3002
  description: "Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains."
3003
3003
  }),
3004
3004
  addons: r.record(r.string(), r.record(r.string(), r.union([r.string(), r.number()]))).optional().openapi({
3005
3005
  description: "Addons associated with the client. The key is the addon's package name and the value is an object with the configuration for the addon."
3006
3006
  }),
3007
- // @deprecated. Renamed to match the auth0 API
3008
- allowed_web_origins: r.string().transform((t) => t === null ? "" : t).default(""),
3009
- allowed_callback_urls: r.string().transform((t) => t === null ? "" : t).default(""),
3010
3007
  email_validation: r.enum(["enabled", "disabled", "enforced"]).default("enforced").openapi({
3011
3008
  description: "Defines if it possible to sign in with an unverified email and if verification emails will be sent. This is not available in auth0"
3012
3009
  }),
@@ -3014,7 +3011,7 @@ const Gn = r.object({
3014
3011
  disable_sign_ups: r.boolean().default(!1).openapi({
3015
3012
  description: "Prevents users from signing up using the hosted login page. This is not available in auth0"
3016
3013
  })
3017
- }), Fn = r.object({
3014
+ }), xn = r.object({
3018
3015
  created_at: r.string().transform((t) => t === null ? "" : t),
3019
3016
  updated_at: r.string().transform((t) => t === null ? "" : t)
3020
3017
  }).extend(kn.shape);
@@ -3047,7 +3044,7 @@ const we = r.object({
3047
3044
  font: r.object({
3048
3045
  url: r.string()
3049
3046
  }).optional()
3050
- }), xn = r.object({
3047
+ }), wn = r.object({
3051
3048
  id: r.string().optional(),
3052
3049
  name: r.string(),
3053
3050
  client_id: r.string().optional(),
@@ -3066,27 +3063,15 @@ const we = r.object({
3066
3063
  id: r.string(),
3067
3064
  created_at: r.string().transform((t) => t === null ? "" : t),
3068
3065
  updated_at: r.string().transform((t) => t === null ? "" : t)
3069
- }).extend(xn.shape), wn = r.object({
3066
+ }).extend(wn.shape), Sn = r.object({
3070
3067
  domain: r.string(),
3071
3068
  dkim_private_key: r.string().optional(),
3072
3069
  dkim_public_key: r.string().optional(),
3073
3070
  email_api_key: r.string().optional(),
3074
3071
  email_service: r.union([r.literal("mailgun"), r.literal("mailchannels")]).optional()
3075
3072
  }), it = r.object({
3076
- id: r.string(),
3077
- name: r.string(),
3078
- domains: r.array(wn),
3079
- allowed_callback_urls: r.array(r.string()),
3080
- allowed_logout_urls: r.array(r.string()),
3081
- allowed_web_origins: r.array(r.string()),
3082
- email_validation: r.union([
3083
- r.literal("enabled"),
3084
- r.literal("disabled"),
3085
- r.literal("enforced")
3086
- ]),
3087
- tenant_id: r.string(),
3088
- client_secret: r.string(),
3089
- disable_sign_ups: r.boolean(),
3073
+ ...xn.shape,
3074
+ domains: r.array(Sn),
3090
3075
  tenant: r.object({
3091
3076
  name: r.string(),
3092
3077
  audience: r.string().optional(),
@@ -3102,36 +3087,36 @@ const we = r.object({
3102
3087
  connections: r.array(at)
3103
3088
  }), Jn = it.extend({
3104
3089
  connections: r.array(at.partial())
3105
- }), Sn = r.enum([
3090
+ }), Tn = r.enum([
3106
3091
  "password_reset",
3107
3092
  "email_verification",
3108
3093
  "otp",
3109
3094
  "oauth2",
3110
3095
  "oauth2_state",
3111
3096
  "ticket"
3112
- ]), Tn = r.object({
3097
+ ]), En = r.object({
3113
3098
  code_id: r.string().openapi({
3114
3099
  description: "The code that will be used in for instance an email verification flow"
3115
3100
  }),
3116
3101
  login_id: r.string().openapi({
3117
3102
  description: "The id of the login session that the code is connected to"
3118
3103
  }),
3119
- code_type: Sn,
3104
+ code_type: Tn,
3120
3105
  expires_at: r.string(),
3121
3106
  used_at: r.string().optional()
3122
3107
  }), Qn = r.object({
3123
- ...Tn.shape,
3108
+ ...En.shape,
3124
3109
  created_at: r.string()
3125
- }), En = r.object({
3110
+ }), Cn = r.object({
3126
3111
  domain: r.string(),
3127
3112
  dkim_private_key: r.string().optional(),
3128
3113
  dkim_public_key: r.string().optional(),
3129
3114
  email_api_key: r.string().optional(),
3130
3115
  email_service: r.enum(["mailgun", "mailchannels"])
3131
3116
  }), Xn = De.extend({
3132
- ...En.shape,
3117
+ ...Cn.shape,
3133
3118
  id: r.string()
3134
- }), Cn = r.object({
3119
+ }), On = r.object({
3135
3120
  trigger_id: r.enum([
3136
3121
  "pre-user-signup",
3137
3122
  "post-user-registration",
@@ -3142,10 +3127,10 @@ const we = r.object({
3142
3127
  hook_id: r.string().optional(),
3143
3128
  synchronous: r.boolean().default(!1),
3144
3129
  priority: r.number().optional()
3145
- }), er = Cn.extend({
3130
+ }), er = On.extend({
3146
3131
  ...De.shape,
3147
3132
  hook_id: r.string()
3148
- }), On = r.object({
3133
+ }), jn = r.object({
3149
3134
  alg: r.string(),
3150
3135
  e: r.string(),
3151
3136
  kid: r.string(),
@@ -3153,7 +3138,7 @@ const we = r.object({
3153
3138
  n: r.string(),
3154
3139
  use: r.string().optional()
3155
3140
  }), tr = r.object({
3156
- keys: r.array(On)
3141
+ keys: r.array(jn)
3157
3142
  }), nr = r.object({
3158
3143
  issuer: r.string(),
3159
3144
  authorization_endpoint: r.string(),
@@ -3175,7 +3160,7 @@ const we = r.object({
3175
3160
  request_uri_parameter_supported: r.boolean(),
3176
3161
  request_parameter_supported: r.boolean(),
3177
3162
  token_endpoint_auth_signing_alg_values_supported: r.array(r.string())
3178
- }), jn = r.object({
3163
+ }), In = r.object({
3179
3164
  auth0Client: r.string().optional(),
3180
3165
  authParams: we,
3181
3166
  expires_at: r.string(),
@@ -3184,15 +3169,15 @@ const we = r.object({
3184
3169
  }).openapi({
3185
3170
  description: "This represents a login sesion"
3186
3171
  }), rr = r.object({
3187
- ...jn.shape,
3172
+ ...In.shape,
3188
3173
  login_id: r.string().openapi({
3189
3174
  description: "This is is used as the state in the universal login"
3190
3175
  }),
3191
3176
  created_at: r.string(),
3192
3177
  updated_at: r.string()
3193
3178
  });
3194
- var In = /* @__PURE__ */ ((t) => (t.FAILED_SILENT_AUTH = "fsa", t.FAILED_SIGNUP = "fs", t.FAILED_LOGIN = "f", t.FAILED_LOGIN_INCORRECT_PASSWORD = "fp", t.FAILED_CHANGE_PASSWORD = "fcp", t.FAILED_BY_CONNECTOR = "fc", t.FAILED_LOGIN_INVALID_EMAIL_USERNAME = "fu", t.FAILED_HOOK = "fh", t.FAILED_CROSS_ORIGIN_AUTHENTICATION = "fcoa", t.SUCCESS_API_OPERATION = "sapi", t.SUCCESS_CHANGE_PASSWORD = "scp", t.SUCCESS_CHANGE_PASSWORD_REQUEST = "scpr", t.SUCCESS_CHANGE_USERNAME = "scu", t.SUCCESS_CROSS_ORIGIN_AUTHENTICATION = "scoa", t.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN = "seacft", t.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN = "serft", t.SUCCESS_LOGIN = "s", t.SUCCESS_LOGOUT = "slo", t.SUCCESS_SIGNUP = "ss", t.SUCCESS_SILENT_AUTH = "ssa", t.SUCCESS_VERIFICATION_EMAIL = "sv", t.SUCCESS_VERIFICATION_EMAIL_REQUEST = "svr", t.CODE_LINK_SENT = "cls", t))(In || {});
3195
- const Nn = r.enum([
3179
+ var Nn = /* @__PURE__ */ ((t) => (t.FAILED_SILENT_AUTH = "fsa", t.FAILED_SIGNUP = "fs", t.FAILED_LOGIN = "f", t.FAILED_LOGIN_INCORRECT_PASSWORD = "fp", t.FAILED_CHANGE_PASSWORD = "fcp", t.FAILED_BY_CONNECTOR = "fc", t.FAILED_LOGIN_INVALID_EMAIL_USERNAME = "fu", t.FAILED_HOOK = "fh", t.FAILED_CROSS_ORIGIN_AUTHENTICATION = "fcoa", t.SUCCESS_API_OPERATION = "sapi", t.SUCCESS_CHANGE_PASSWORD = "scp", t.SUCCESS_CHANGE_PASSWORD_REQUEST = "scpr", t.SUCCESS_CHANGE_USERNAME = "scu", t.SUCCESS_CROSS_ORIGIN_AUTHENTICATION = "scoa", t.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN = "seacft", t.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN = "serft", t.SUCCESS_LOGIN = "s", t.SUCCESS_LOGOUT = "slo", t.SUCCESS_SIGNUP = "ss", t.SUCCESS_SILENT_AUTH = "ssa", t.SUCCESS_VERIFICATION_EMAIL = "sv", t.SUCCESS_VERIFICATION_EMAIL_REQUEST = "svr", t.CODE_LINK_SENT = "cls", t))(Nn || {});
3180
+ const Zn = r.enum([
3196
3181
  "cls",
3197
3182
  // CODE_LINK_SENT
3198
3183
  "fsa",
@@ -3241,14 +3226,14 @@ const Nn = r.enum([
3241
3226
  // SUCCESS_VERIFICATION_EMAIL
3242
3227
  "svr"
3243
3228
  // SUCCESS_VERIFICATION_EMAIL_REQUEST
3244
- ]), Zn = r.object({
3229
+ ]), Rn = r.object({
3245
3230
  name: r.string(),
3246
3231
  version: r.string(),
3247
3232
  env: r.object({
3248
3233
  node: r.string().optional()
3249
3234
  }).optional()
3250
3235
  }), sr = r.object({
3251
- type: Nn,
3236
+ type: Zn,
3252
3237
  date: r.string(),
3253
3238
  description: r.string().optional(),
3254
3239
  log_id: r.string().optional(),
@@ -3269,16 +3254,16 @@ const Nn = r.enum([
3269
3254
  strategy: r.string().optional(),
3270
3255
  strategy_type: r.string().optional(),
3271
3256
  hostname: r.string().optional(),
3272
- auth0_client: Zn.optional()
3273
- }), Rn = r.object({
3257
+ auth0_client: Rn.optional()
3258
+ }), An = r.object({
3274
3259
  user_id: r.string(),
3275
3260
  password: r.string(),
3276
3261
  algorithm: r.enum(["bcrypt", "argon2id"]).default("argon2id")
3277
3262
  }), ar = r.object({
3278
- ...Rn.shape,
3263
+ ...An.shape,
3279
3264
  created_at: r.string(),
3280
3265
  updated_at: r.string()
3281
- }), An = r.object({
3266
+ }), Pn = r.object({
3282
3267
  session_id: r.string(),
3283
3268
  client_id: r.string(),
3284
3269
  expires_at: r.string(),
@@ -3287,7 +3272,7 @@ const Nn = r.enum([
3287
3272
  user_id: r.string()
3288
3273
  }), ir = r.object({
3289
3274
  created_at: r.string(),
3290
- ...An.shape
3275
+ ...Pn.shape
3291
3276
  }), or = r.object({
3292
3277
  private_key: r.string(),
3293
3278
  public_key: r.string(),
@@ -3313,7 +3298,7 @@ const Nn = r.enum([
3313
3298
  }),
3314
3299
  revoked: r.boolean().optional().openapi({ description: "True if the key is revoked" }),
3315
3300
  revoked_at: r.string().optional().openapi({ description: "The date and time when the key was revoked" })
3316
- }), Pn = r.object({
3301
+ }), Mn = r.object({
3317
3302
  name: r.string(),
3318
3303
  audience: r.string(),
3319
3304
  sender_email: r.string().email(),
@@ -3323,7 +3308,7 @@ const Nn = r.enum([
3323
3308
  primary_color: r.string().optional(),
3324
3309
  secondary_color: r.string().optional(),
3325
3310
  language: r.string().optional()
3326
- }), dr = Pn.extend({
3311
+ }), dr = Mn.extend({
3327
3312
  created_at: r.string().transform((t) => t === null ? "" : t),
3328
3313
  updated_at: r.string().transform((t) => t === null ? "" : t)
3329
3314
  }), lr = r.object({
@@ -3385,7 +3370,7 @@ r.object({
3385
3370
  code: r.string(),
3386
3371
  state: r.string().optional()
3387
3372
  });
3388
- const Mn = r.object({
3373
+ const Dn = r.object({
3389
3374
  button_border_radius: r.number(),
3390
3375
  button_border_weight: r.number(),
3391
3376
  buttons_style: r.enum(["pill"]),
@@ -3395,7 +3380,7 @@ const Mn = r.object({
3395
3380
  show_widget_shadow: r.boolean(),
3396
3381
  widget_border_weight: r.number(),
3397
3382
  widget_corner_radius: r.number()
3398
- }), Dn = r.object({
3383
+ }), Un = r.object({
3399
3384
  base_focus_color: r.string(),
3400
3385
  base_hover_color: r.string(),
3401
3386
  body_text: r.string(),
@@ -3418,7 +3403,7 @@ const Mn = r.object({
3418
3403
  }), W = r.object({
3419
3404
  bold: r.boolean(),
3420
3405
  size: r.number()
3421
- }), Un = r.object({
3406
+ }), $n = r.object({
3422
3407
  body_text: W,
3423
3408
  buttons_text: W,
3424
3409
  font_url: r.string(),
@@ -3428,35 +3413,35 @@ const Mn = r.object({
3428
3413
  reference_text_size: r.number(),
3429
3414
  subtitle: W,
3430
3415
  title: W
3431
- }), $n = r.object({
3416
+ }), Vn = r.object({
3432
3417
  background_color: r.string(),
3433
3418
  background_image_url: r.string(),
3434
3419
  page_layout: r.enum(["center"])
3435
- }), Vn = r.object({
3420
+ }), Ln = r.object({
3436
3421
  header_text_alignment: r.enum(["center"]),
3437
3422
  logo_height: r.number(),
3438
3423
  logo_position: r.enum(["center"]),
3439
3424
  logo_url: r.string(),
3440
3425
  social_buttons_layout: r.enum(["bottom"])
3441
- }), Ln = r.object({
3442
- borders: Mn,
3443
- colors: Dn,
3426
+ }), zn = r.object({
3427
+ borders: Dn,
3428
+ colors: Un,
3444
3429
  displayName: r.string(),
3445
- fonts: Un,
3446
- page_background: $n,
3447
- widget: Vn
3448
- }), fr = Ln.extend({
3430
+ fonts: $n,
3431
+ page_background: Vn,
3432
+ widget: Ln
3433
+ }), fr = zn.extend({
3449
3434
  themeId: r.string()
3450
- }), zn = r.object({
3435
+ }), Bn = r.object({
3451
3436
  id: r.string(),
3452
3437
  expires_at: r.string(),
3453
3438
  auth0Client: r.string().optional(),
3454
3439
  authParams: we
3455
3440
  }), mr = r.object({
3456
- ...zn.shape,
3441
+ ...Bn.shape,
3457
3442
  created_at: r.string(),
3458
3443
  updated_at: r.string()
3459
- }), Bn = r.object({
3444
+ }), Wn = r.object({
3460
3445
  id: r.string(),
3461
3446
  email: r.string(),
3462
3447
  code: r.string(),
@@ -3468,8 +3453,8 @@ const Mn = r.object({
3468
3453
  user_id: r.string().optional()
3469
3454
  }), _r = r.object({
3470
3455
  created_at: r.string(),
3471
- ...Bn.shape
3472
- }), Wn = r.object({
3456
+ ...Wn.shape
3457
+ }), Gn = r.object({
3473
3458
  authParams: we,
3474
3459
  code: r.string(),
3475
3460
  user_id: r.string(),
@@ -3477,7 +3462,7 @@ const Mn = r.object({
3477
3462
  expires_at: r.string(),
3478
3463
  used_at: r.string().optional()
3479
3464
  }), gr = r.object({
3480
- ...Wn.shape,
3465
+ ...Gn.shape,
3481
3466
  created_at: r.string()
3482
3467
  });
3483
3468
  function yr(t) {
@@ -3487,66 +3472,66 @@ function yr(t) {
3487
3472
  return { connection: e, id: n };
3488
3473
  }
3489
3474
  export {
3490
- Zn as Auth0Client,
3475
+ Rn as Auth0Client,
3491
3476
  rt as AuthorizationResponseMode,
3492
3477
  nt as AuthorizationResponseType,
3493
3478
  Kn as ClientSchema,
3494
3479
  st as CodeChallengeMethod,
3495
3480
  ot as GrantType,
3496
- In as LogTypes,
3481
+ Nn as LogTypes,
3497
3482
  Jn as PartialClientSchema,
3498
3483
  kn as applicationInsertSchema,
3499
- Fn as applicationSchema,
3500
- Hn as auth0UserResponseSchema,
3484
+ xn as applicationSchema,
3485
+ qn as auth0UserResponseSchema,
3501
3486
  we as authParamsSchema,
3502
- Wn as authenticationCodeInsertSchema,
3487
+ Gn as authenticationCodeInsertSchema,
3503
3488
  gr as authenticationCodeSchema,
3504
3489
  ur as authorizationCodeGrantTypeParamsSchema,
3505
3490
  tt as baseUserSchema,
3506
- Mn as bordersSchema,
3491
+ Dn as bordersSchema,
3507
3492
  Yn as brandingSchema,
3508
3493
  or as certificateSchema,
3509
3494
  hr as clientCredentialGrantTypeParamsSchema,
3510
- Tn as codeInsertSchema,
3495
+ En as codeInsertSchema,
3511
3496
  Qn as codeSchema,
3512
- Sn as codeTypeSchema,
3513
- Dn as colorsSchema,
3514
- xn as connectionInsertSchema,
3497
+ Tn as codeTypeSchema,
3498
+ Un as colorsSchema,
3499
+ wn as connectionInsertSchema,
3515
3500
  at as connectionSchema,
3516
- En as domainInsertSchema,
3501
+ Cn as domainInsertSchema,
3517
3502
  Xn as domainSchema,
3518
3503
  W as fontDetailsSchema,
3519
- Un as fontsSchema,
3520
- Cn as hookInsertSchema,
3504
+ $n as fontsSchema,
3505
+ On as hookInsertSchema,
3521
3506
  er as hookSchema,
3522
3507
  yn as identitySchema,
3523
3508
  tr as jwksKeySchema,
3524
- On as jwksSchema,
3509
+ jn as jwksSchema,
3525
3510
  sr as logSchema,
3526
- jn as loginInsertSchema,
3511
+ In as loginInsertSchema,
3527
3512
  rr as loginSchema,
3528
3513
  nr as openIDConfigurationSchema,
3529
- Bn as otpInsertSchema,
3514
+ Wn as otpInsertSchema,
3530
3515
  _r as otpSchema,
3531
- $n as pageBackgroundSchema,
3516
+ Vn as pageBackgroundSchema,
3532
3517
  yr as parseUserId,
3533
- Rn as passwordInsertSchema,
3518
+ An as passwordInsertSchema,
3534
3519
  ar as passwordSchema,
3535
3520
  pr as pkceAuthorizationCodeGrantTypeParamsSchema,
3536
3521
  gn as profileDataSchema,
3537
- An as sessionInsertSchema,
3522
+ Pn as sessionInsertSchema,
3538
3523
  ir as sessionSchema,
3539
3524
  cr as signingKeySchema,
3540
- Pn as tenantInsertSchema,
3525
+ Mn as tenantInsertSchema,
3541
3526
  dr as tenantSchema,
3542
- Ln as themeInsertSchema,
3527
+ zn as themeInsertSchema,
3543
3528
  fr as themeSchema,
3544
- Gn as totalsSchema,
3545
- zn as universalLoginSessionInsertSchema,
3529
+ Hn as totalsSchema,
3530
+ Bn as universalLoginSessionInsertSchema,
3546
3531
  mr as universalLoginSessionSchema,
3547
3532
  vn as userInsertSchema,
3548
- qn as userResponseSchema,
3533
+ Fn as userResponseSchema,
3549
3534
  bn as userSchema,
3550
3535
  lr as vendorSettingsSchema,
3551
- Vn as widgetSchema
3536
+ Ln as widgetSchema
3552
3537
  };
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "type": "git",
12
12
  "url": "https://github.com/markusahlstrand/authhero"
13
13
  },
14
- "version": "0.11.1",
14
+ "version": "0.11.2",
15
15
  "files": [
16
16
  "dist"
17
17
  ],