@authhero/adapter-interfaces 0.5.0 → 0.5.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 s = /* @__PURE__ */ Object.freeze({
|
|
|
2927
2927
|
ZodError: T
|
|
2928
2928
|
});
|
|
2929
2929
|
pt(s);
|
|
2930
|
-
const
|
|
2930
|
+
const An = s.object({
|
|
2931
2931
|
start: s.number(),
|
|
2932
2932
|
limit: s.number(),
|
|
2933
2933
|
length: s.number()
|
|
@@ -2979,7 +2979,7 @@ const Rn = s.object({
|
|
|
2979
2979
|
is_social: s.boolean(),
|
|
2980
2980
|
login_count: s.number(),
|
|
2981
2981
|
identities: s.array(gn).optional()
|
|
2982
|
-
}),
|
|
2982
|
+
}), Pn = vn, Mn = et.extend({
|
|
2983
2983
|
email: s.string(),
|
|
2984
2984
|
login_count: s.number(),
|
|
2985
2985
|
multifactor: s.array(s.string()).optional(),
|
|
@@ -3026,7 +3026,7 @@ const kn = s.enum([
|
|
|
3026
3026
|
env: s.object({
|
|
3027
3027
|
node: s.string().optional()
|
|
3028
3028
|
}).optional()
|
|
3029
|
-
}),
|
|
3029
|
+
}), $n = s.object({
|
|
3030
3030
|
type: kn,
|
|
3031
3031
|
date: s.string(),
|
|
3032
3032
|
description: s.string().optional(),
|
|
@@ -3058,7 +3058,7 @@ const kn = s.enum([
|
|
|
3058
3058
|
email_validation: s.enum(["enabled", "disabled", "enforced"]).default("enforced"),
|
|
3059
3059
|
client_secret: s.string().default(""),
|
|
3060
3060
|
disable_sign_ups: s.boolean().default(!1)
|
|
3061
|
-
}),
|
|
3061
|
+
}), Dn = s.object({
|
|
3062
3062
|
created_at: s.string().transform((t) => t === null ? "" : t),
|
|
3063
3063
|
updated_at: s.string().transform((t) => t === null ? "" : t)
|
|
3064
3064
|
}).extend(wn.shape);
|
|
@@ -3076,15 +3076,17 @@ const Me = s.object({
|
|
|
3076
3076
|
code_challenge_method: s.nativeEnum(rt).optional(),
|
|
3077
3077
|
code_challenge: s.string().optional(),
|
|
3078
3078
|
username: s.string().optional()
|
|
3079
|
-
}),
|
|
3079
|
+
}), Sn = s.object({
|
|
3080
3080
|
authParams: Me,
|
|
3081
|
-
nonce: s.string().optional(),
|
|
3082
3081
|
code: s.string(),
|
|
3083
3082
|
user_id: s.string(),
|
|
3084
3083
|
created_at: s.string(),
|
|
3085
3084
|
expires_at: s.string(),
|
|
3086
3085
|
used_at: s.string().optional()
|
|
3087
3086
|
}), Un = s.object({
|
|
3087
|
+
...Sn.shape,
|
|
3088
|
+
created_at: s.string()
|
|
3089
|
+
}), Vn = s.object({
|
|
3088
3090
|
colors: s.object({
|
|
3089
3091
|
primary: s.string(),
|
|
3090
3092
|
page_background: s.object({
|
|
@@ -3099,7 +3101,7 @@ const Me = s.object({
|
|
|
3099
3101
|
font: s.object({
|
|
3100
3102
|
url: s.string()
|
|
3101
3103
|
}).optional()
|
|
3102
|
-
}),
|
|
3104
|
+
}), Tn = s.object({
|
|
3103
3105
|
id: s.string().optional(),
|
|
3104
3106
|
name: s.string(),
|
|
3105
3107
|
client_id: s.string().optional(),
|
|
@@ -3118,7 +3120,7 @@ const Me = s.object({
|
|
|
3118
3120
|
id: s.string(),
|
|
3119
3121
|
created_at: s.string().transform((t) => t === null ? "" : t),
|
|
3120
3122
|
updated_at: s.string().transform((t) => t === null ? "" : t)
|
|
3121
|
-
}).extend(
|
|
3123
|
+
}).extend(Tn.shape), On = s.object({
|
|
3122
3124
|
domain: s.string(),
|
|
3123
3125
|
dkim_private_key: s.string().optional(),
|
|
3124
3126
|
dkim_public_key: s.string().optional(),
|
|
@@ -3127,7 +3129,7 @@ const Me = s.object({
|
|
|
3127
3129
|
}), at = s.object({
|
|
3128
3130
|
id: s.string(),
|
|
3129
3131
|
name: s.string(),
|
|
3130
|
-
domains: s.array(
|
|
3132
|
+
domains: s.array(On),
|
|
3131
3133
|
allowed_callback_urls: s.array(s.string()),
|
|
3132
3134
|
allowed_logout_urls: s.array(s.string()),
|
|
3133
3135
|
allowed_web_origins: s.array(s.string()),
|
|
@@ -3150,37 +3152,37 @@ const Me = s.object({
|
|
|
3150
3152
|
support_url: s.string().optional(),
|
|
3151
3153
|
language: s.string().length(2).optional()
|
|
3152
3154
|
})
|
|
3153
|
-
}), Vn = at.extend({
|
|
3154
|
-
connections: s.array(st)
|
|
3155
3155
|
}), Ln = at.extend({
|
|
3156
|
+
connections: s.array(st)
|
|
3157
|
+
}), zn = at.extend({
|
|
3156
3158
|
connections: s.array(st.partial())
|
|
3157
|
-
}),
|
|
3159
|
+
}), En = s.object({
|
|
3158
3160
|
domain: s.string(),
|
|
3159
3161
|
dkim_private_key: s.string().optional(),
|
|
3160
3162
|
dkim_public_key: s.string().optional(),
|
|
3161
3163
|
email_api_key: s.string().optional(),
|
|
3162
3164
|
email_service: s.enum(["mailgun", "mailchannels"])
|
|
3163
|
-
}),
|
|
3164
|
-
...
|
|
3165
|
+
}), Bn = Pe.extend({
|
|
3166
|
+
...En.shape,
|
|
3165
3167
|
id: s.string()
|
|
3166
|
-
}),
|
|
3168
|
+
}), Cn = s.object({
|
|
3167
3169
|
trigger_id: s.enum(["post-user-registration", "post-user-login"]),
|
|
3168
3170
|
enabled: s.boolean().default(!1),
|
|
3169
3171
|
url: s.string(),
|
|
3170
3172
|
hook_id: s.string().optional()
|
|
3171
|
-
}),
|
|
3173
|
+
}), Wn = Cn.extend({
|
|
3172
3174
|
...Pe.shape,
|
|
3173
3175
|
hook_id: s.string()
|
|
3174
|
-
}),
|
|
3176
|
+
}), jn = s.object({
|
|
3175
3177
|
alg: s.string(),
|
|
3176
3178
|
e: s.string(),
|
|
3177
3179
|
kid: s.string(),
|
|
3178
3180
|
kty: s.string(),
|
|
3179
3181
|
n: s.string(),
|
|
3180
3182
|
use: s.string().optional()
|
|
3181
|
-
}), Wn = s.object({
|
|
3182
|
-
keys: s.array(Cn)
|
|
3183
3183
|
}), qn = s.object({
|
|
3184
|
+
keys: s.array(jn)
|
|
3185
|
+
}), Gn = s.object({
|
|
3184
3186
|
issuer: s.string(),
|
|
3185
3187
|
authorization_endpoint: s.string(),
|
|
3186
3188
|
token_endpoint: s.string(),
|
|
@@ -3201,40 +3203,36 @@ const Me = s.object({
|
|
|
3201
3203
|
request_uri_parameter_supported: s.boolean(),
|
|
3202
3204
|
request_parameter_supported: s.boolean(),
|
|
3203
3205
|
token_endpoint_auth_signing_alg_values_supported: s.array(s.string())
|
|
3204
|
-
}),
|
|
3206
|
+
}), Zn = s.object({
|
|
3205
3207
|
id: s.string(),
|
|
3206
|
-
tenant_id: s.string(),
|
|
3207
|
-
client_id: s.string(),
|
|
3208
3208
|
email: s.string(),
|
|
3209
3209
|
code: s.string(),
|
|
3210
3210
|
ip: s.string().optional(),
|
|
3211
|
-
send: s.
|
|
3211
|
+
send: s.enum(["email", "link"]),
|
|
3212
3212
|
authParams: Me,
|
|
3213
3213
|
expires_at: s.string(),
|
|
3214
3214
|
used_at: s.string().optional(),
|
|
3215
3215
|
user_id: s.string().optional()
|
|
3216
|
-
}),
|
|
3216
|
+
}), Hn = s.object({
|
|
3217
3217
|
created_at: s.string(),
|
|
3218
|
-
...
|
|
3219
|
-
}),
|
|
3218
|
+
...Zn.shape
|
|
3219
|
+
}), Nn = s.object({
|
|
3220
3220
|
session_id: s.string(),
|
|
3221
3221
|
client_id: s.string(),
|
|
3222
3222
|
expires_at: s.string(),
|
|
3223
3223
|
used_at: s.string(),
|
|
3224
3224
|
deleted_at: s.string().optional(),
|
|
3225
3225
|
user_id: s.string()
|
|
3226
|
-
})
|
|
3227
|
-
s.object({
|
|
3226
|
+
}), Kn = s.object({
|
|
3228
3227
|
created_at: s.string(),
|
|
3229
|
-
...
|
|
3230
|
-
})
|
|
3231
|
-
const Hn = s.object({
|
|
3228
|
+
...Nn.shape
|
|
3229
|
+
}), Yn = s.object({
|
|
3232
3230
|
private_key: s.string(),
|
|
3233
3231
|
public_key: s.string(),
|
|
3234
3232
|
kid: s.string(),
|
|
3235
3233
|
created_at: s.string(),
|
|
3236
3234
|
revoked_at: s.string().optional()
|
|
3237
|
-
}),
|
|
3235
|
+
}), Jn = s.object({
|
|
3238
3236
|
kid: s.string().openapi({ description: "The key id of the signing key" }),
|
|
3239
3237
|
cert: s.string().openapi({ description: "The public certificate of the signing key" }),
|
|
3240
3238
|
fingerprint: s.string().openapi({ description: "The cert fingerprint" }),
|
|
@@ -3253,7 +3251,7 @@ const Hn = s.object({
|
|
|
3253
3251
|
}),
|
|
3254
3252
|
revoked: s.boolean().optional().openapi({ description: "True if the key is revoked" }),
|
|
3255
3253
|
revoked_at: s.string().optional().openapi({ description: "The date and time when the key was revoked" })
|
|
3256
|
-
}),
|
|
3254
|
+
}), In = s.object({
|
|
3257
3255
|
name: s.string(),
|
|
3258
3256
|
audience: s.string(),
|
|
3259
3257
|
sender_email: s.string().email(),
|
|
@@ -3263,10 +3261,10 @@ const Hn = s.object({
|
|
|
3263
3261
|
primary_color: s.string().optional(),
|
|
3264
3262
|
secondary_color: s.string().optional(),
|
|
3265
3263
|
language: s.string().optional()
|
|
3266
|
-
}),
|
|
3264
|
+
}), Fn = In.extend({
|
|
3267
3265
|
created_at: s.string().transform((t) => t === null ? "" : t),
|
|
3268
3266
|
updated_at: s.string().transform((t) => t === null ? "" : t)
|
|
3269
|
-
}),
|
|
3267
|
+
}), Xn = s.object({
|
|
3270
3268
|
logoUrl: s.string(),
|
|
3271
3269
|
loginBackgroundImage: s.string().nullish(),
|
|
3272
3270
|
style: s.object({
|
|
@@ -3285,7 +3283,7 @@ const Hn = s.object({
|
|
|
3285
3283
|
manageSubscriptionsUrl: s.string().optional()
|
|
3286
3284
|
});
|
|
3287
3285
|
var it = /* @__PURE__ */ ((t) => (t.RefreshToken = "refresh_token", t.AuthorizationCode = "authorization_code", t.ClientCredential = "client_credentials", t.Passwordless = "passwordless", t.Password = "password", t))(it || {});
|
|
3288
|
-
const $e = s.nativeEnum(it),
|
|
3286
|
+
const $e = s.nativeEnum(it), Qn = s.object({
|
|
3289
3287
|
grant_type: $e.refine(
|
|
3290
3288
|
(t) => t === "authorization_code"
|
|
3291
3289
|
/* AuthorizationCode */
|
|
@@ -3293,7 +3291,7 @@ const $e = s.nativeEnum(it), Fn = s.object({
|
|
|
3293
3291
|
code: s.string(),
|
|
3294
3292
|
client_secret: s.string(),
|
|
3295
3293
|
client_id: s.string()
|
|
3296
|
-
}),
|
|
3294
|
+
}), er = s.object({
|
|
3297
3295
|
grant_type: $e.refine(
|
|
3298
3296
|
(t) => t === "authorization_code"
|
|
3299
3297
|
/* AuthorizationCode */
|
|
@@ -3302,7 +3300,7 @@ const $e = s.nativeEnum(it), Fn = s.object({
|
|
|
3302
3300
|
code_verifier: s.string(),
|
|
3303
3301
|
client_id: s.string().optional(),
|
|
3304
3302
|
redirect_uri: s.string()
|
|
3305
|
-
}),
|
|
3303
|
+
}), tr = s.object({
|
|
3306
3304
|
grant_type: $e.refine(
|
|
3307
3305
|
(t) => t === "client_credentials"
|
|
3308
3306
|
/* ClientCredential */
|
|
@@ -3325,58 +3323,60 @@ s.object({
|
|
|
3325
3323
|
code: s.string(),
|
|
3326
3324
|
state: s.string().optional()
|
|
3327
3325
|
});
|
|
3328
|
-
const
|
|
3326
|
+
const Rn = s.object({
|
|
3329
3327
|
id: s.string(),
|
|
3330
3328
|
expires_at: s.string(),
|
|
3331
3329
|
auth0Client: s.string().optional(),
|
|
3332
3330
|
authParams: Me
|
|
3333
|
-
}),
|
|
3334
|
-
...
|
|
3331
|
+
}), nr = s.object({
|
|
3332
|
+
...Rn.shape,
|
|
3335
3333
|
created_at: s.string(),
|
|
3336
3334
|
updated_at: s.string()
|
|
3337
|
-
}),
|
|
3335
|
+
}), rr = "tmp";
|
|
3338
3336
|
export {
|
|
3339
3337
|
xn as Auth0Client,
|
|
3340
3338
|
nt as AuthorizationResponseMode,
|
|
3341
3339
|
tt as AuthorizationResponseType,
|
|
3342
|
-
|
|
3340
|
+
Ln as ClientSchema,
|
|
3343
3341
|
rt as CodeChallengeMethod,
|
|
3344
3342
|
it as GrantType,
|
|
3345
3343
|
bn as LogTypes,
|
|
3346
|
-
|
|
3344
|
+
zn as PartialClientSchema,
|
|
3347
3345
|
wn as applicationInsertSchema,
|
|
3348
|
-
|
|
3349
|
-
|
|
3346
|
+
Dn as applicationSchema,
|
|
3347
|
+
Pn as auth0UserResponseSchema,
|
|
3350
3348
|
Me as authParamsSchema,
|
|
3351
|
-
|
|
3352
|
-
|
|
3349
|
+
Sn as authenticationCodeInsertSchema,
|
|
3350
|
+
Un as authenticationCodeSchema,
|
|
3351
|
+
Qn as authorizationCodeGrantTypeParamsSchema,
|
|
3353
3352
|
et as baseUserSchema,
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3353
|
+
Vn as brandingSchema,
|
|
3354
|
+
Yn as certificateSchema,
|
|
3355
|
+
tr as clientCredentialGrantTypeParamsSchema,
|
|
3356
|
+
Tn as connectionInsertSchema,
|
|
3358
3357
|
st as connectionSchema,
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
Kn as
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3358
|
+
En as domainInsertSchema,
|
|
3359
|
+
Bn as domainSchema,
|
|
3360
|
+
Cn as hookInsertSchema,
|
|
3361
|
+
Wn as hookSchema,
|
|
3362
|
+
qn as jwksKeySchema,
|
|
3363
|
+
jn as jwksSchema,
|
|
3364
|
+
$n as logSchema,
|
|
3365
|
+
Gn as openIDConfigurationSchema,
|
|
3366
|
+
Zn as otpInsertSchema,
|
|
3367
|
+
Hn as otpSchema,
|
|
3368
|
+
er as pkceAuthorizationCodeGrantTypeParamsSchema,
|
|
3369
|
+
Nn as sessionInsertSchema,
|
|
3370
|
+
Kn as sessionSchema,
|
|
3371
|
+
Jn as signingKeySchema,
|
|
3372
|
+
In as tenantInsertSchema,
|
|
3373
|
+
Fn as tenantSchema,
|
|
3374
|
+
rr as tmp,
|
|
3375
|
+
An as totalsSchema,
|
|
3376
|
+
Rn as universalLoginSessionInsertSchema,
|
|
3377
|
+
nr as universalLoginSessionSchema,
|
|
3378
3378
|
yn as userInsertSchema,
|
|
3379
|
-
|
|
3379
|
+
Mn as userResponseSchema,
|
|
3380
3380
|
vn as userSchema,
|
|
3381
|
-
|
|
3381
|
+
Xn as vendorSettingsSchema
|
|
3382
3382
|
};
|