@authhero/adapter-interfaces 0.142.0 → 0.143.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.
- package/dist/adapter-interfaces.cjs +1 -1
- package/dist/adapter-interfaces.d.ts +5351 -7
- package/dist/adapter-interfaces.mjs +37 -27
- package/package.json +1 -1
|
@@ -185,14 +185,14 @@ const s = e.object({
|
|
|
185
185
|
email: e.string().optional(),
|
|
186
186
|
login_count: e.number().default(0),
|
|
187
187
|
identities: e.array(Z).optional()
|
|
188
|
-
}), mt = oe,
|
|
188
|
+
}), mt = oe, bt = N.extend({
|
|
189
189
|
login_count: e.number(),
|
|
190
190
|
multifactor: e.array(e.string()).optional(),
|
|
191
191
|
last_ip: e.string().optional(),
|
|
192
192
|
last_login: e.string().optional(),
|
|
193
193
|
user_id: e.string()
|
|
194
|
-
}).catchall(e.any())
|
|
195
|
-
let ne = (o = 21) => {
|
|
194
|
+
}).catchall(e.any());
|
|
195
|
+
let te = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", ne = (o = 21) => {
|
|
196
196
|
let n = "", i = crypto.getRandomValues(new Uint8Array(o |= 0));
|
|
197
197
|
for (; o--; )
|
|
198
198
|
n += te[i[o] & 63];
|
|
@@ -371,7 +371,7 @@ const ie = e.object({
|
|
|
371
371
|
description: "Specifies how long, in seconds, a Pushed Authorization Request URI remains valid"
|
|
372
372
|
}),
|
|
373
373
|
token_quota: e.record(e.any()).default({}).optional()
|
|
374
|
-
}),
|
|
374
|
+
}), ht = e.object({
|
|
375
375
|
created_at: e.string(),
|
|
376
376
|
updated_at: e.string(),
|
|
377
377
|
...ie.shape
|
|
@@ -553,7 +553,7 @@ const ue = e.object({
|
|
|
553
553
|
flow_id: e.string(),
|
|
554
554
|
next_node: e.string()
|
|
555
555
|
})
|
|
556
|
-
}),
|
|
556
|
+
}), be = e.object({
|
|
557
557
|
id: e.string(),
|
|
558
558
|
type: e.literal(
|
|
559
559
|
"ACTION"
|
|
@@ -575,15 +575,15 @@ const ue = e.object({
|
|
|
575
575
|
description: "The next node to navigate to after action (for non-redirect actions)"
|
|
576
576
|
})
|
|
577
577
|
}).passthrough()
|
|
578
|
-
}),
|
|
578
|
+
}), he = e.object({
|
|
579
579
|
id: e.string(),
|
|
580
580
|
type: e.string(),
|
|
581
581
|
coordinates: u
|
|
582
582
|
}).passthrough(), fe = e.union([
|
|
583
583
|
ue,
|
|
584
584
|
me,
|
|
585
|
-
|
|
586
|
-
|
|
585
|
+
be,
|
|
586
|
+
he
|
|
587
587
|
]), Ee = e.object({
|
|
588
588
|
next_node: e.string(),
|
|
589
589
|
coordinates: u
|
|
@@ -933,6 +933,13 @@ const Ie = e.object({
|
|
|
933
933
|
category: e.literal("FIELD").optional(),
|
|
934
934
|
label: e.string().min(1).optional(),
|
|
935
935
|
hint: e.string().min(1).max(500).optional(),
|
|
936
|
+
messages: e.array(
|
|
937
|
+
e.object({
|
|
938
|
+
id: e.number().optional(),
|
|
939
|
+
text: e.string(),
|
|
940
|
+
type: e.enum(["info", "error", "success", "warning"])
|
|
941
|
+
})
|
|
942
|
+
).optional(),
|
|
936
943
|
required: e.boolean().optional(),
|
|
937
944
|
sensitive: e.boolean().optional()
|
|
938
945
|
}), Ge = t.extend({
|
|
@@ -1286,15 +1293,15 @@ const k = e.enum([
|
|
|
1286
1293
|
...m,
|
|
1287
1294
|
trigger_id: U,
|
|
1288
1295
|
form_id: e.string()
|
|
1289
|
-
}),
|
|
1296
|
+
}), bo = e.object({
|
|
1290
1297
|
...m,
|
|
1291
1298
|
trigger_id: F,
|
|
1292
1299
|
template_id: x
|
|
1293
1300
|
}), Lt = e.union([
|
|
1294
1301
|
uo,
|
|
1295
1302
|
mo,
|
|
1296
|
-
|
|
1297
|
-
]),
|
|
1303
|
+
bo
|
|
1304
|
+
]), ho = e.object({
|
|
1298
1305
|
...m,
|
|
1299
1306
|
trigger_id: k,
|
|
1300
1307
|
...s.shape,
|
|
@@ -1313,7 +1320,7 @@ const k = e.enum([
|
|
|
1313
1320
|
hook_id: e.string(),
|
|
1314
1321
|
template_id: x
|
|
1315
1322
|
}), vt = e.union([
|
|
1316
|
-
|
|
1323
|
+
ho,
|
|
1317
1324
|
fo,
|
|
1318
1325
|
Eo
|
|
1319
1326
|
]), So = e.object({
|
|
@@ -2299,9 +2306,12 @@ const Uo = e.object({
|
|
|
2299
2306
|
"passkeys",
|
|
2300
2307
|
"captcha",
|
|
2301
2308
|
"custom-form"
|
|
2302
|
-
]), st = e.record(e.string(), e.string()).openapi({
|
|
2309
|
+
]), st = e.record(e.string(), e.record(e.string(), e.string())).openapi({
|
|
2303
2310
|
type: "object",
|
|
2304
|
-
additionalProperties: {
|
|
2311
|
+
additionalProperties: {
|
|
2312
|
+
type: "object",
|
|
2313
|
+
additionalProperties: { type: "string" }
|
|
2314
|
+
}
|
|
2305
2315
|
}), ln = e.object({
|
|
2306
2316
|
prompt: rt,
|
|
2307
2317
|
language: e.string(),
|
|
@@ -2326,17 +2336,17 @@ function cn(o) {
|
|
|
2326
2336
|
return typeof c != "function" ? c : O.includes(a) ? async (..._) => {
|
|
2327
2337
|
const S = await c.apply(p, _), d = [];
|
|
2328
2338
|
for (const r of i) {
|
|
2329
|
-
const
|
|
2330
|
-
if (typeof
|
|
2339
|
+
const b = r.adapter[a];
|
|
2340
|
+
if (typeof b != "function")
|
|
2331
2341
|
continue;
|
|
2332
2342
|
const A = (async () => {
|
|
2333
2343
|
try {
|
|
2334
|
-
await
|
|
2335
|
-
} catch (
|
|
2344
|
+
await b.apply(r.adapter, _);
|
|
2345
|
+
} catch (h) {
|
|
2336
2346
|
try {
|
|
2337
|
-
r.onError ? r.onError(
|
|
2347
|
+
r.onError ? r.onError(h, a, _) : console.error(
|
|
2338
2348
|
`Passthrough adapter: secondary write failed for ${a}:`,
|
|
2339
|
-
|
|
2349
|
+
h
|
|
2340
2350
|
);
|
|
2341
2351
|
} catch (I) {
|
|
2342
2352
|
console.error(
|
|
@@ -2358,7 +2368,7 @@ function _n(o) {
|
|
|
2358
2368
|
return o;
|
|
2359
2369
|
}
|
|
2360
2370
|
function dn(o) {
|
|
2361
|
-
var E, p, a, c, _, S, d, r,
|
|
2371
|
+
var E, p, a, c, _, S, d, r, b, A, h, I;
|
|
2362
2372
|
const n = o == null ? void 0 : o.options;
|
|
2363
2373
|
if (!n)
|
|
2364
2374
|
return {
|
|
@@ -2380,8 +2390,8 @@ function dn(o) {
|
|
|
2380
2390
|
return {
|
|
2381
2391
|
usernameIdentifierActive: n.requires_username === !0,
|
|
2382
2392
|
emailIdentifierActive: !0,
|
|
2383
|
-
usernameMinLength: ((A = (
|
|
2384
|
-
usernameMaxLength: ((I = (
|
|
2393
|
+
usernameMinLength: ((A = (b = n.validation) == null ? void 0 : b.username) == null ? void 0 : A.min) ?? 1,
|
|
2394
|
+
usernameMaxLength: ((I = (h = n.validation) == null ? void 0 : h.username) == null ? void 0 : I.max) ?? 15
|
|
2385
2395
|
};
|
|
2386
2396
|
}
|
|
2387
2397
|
export {
|
|
@@ -2401,7 +2411,7 @@ export {
|
|
|
2401
2411
|
P as LoginSessionState,
|
|
2402
2412
|
ge as NodeType,
|
|
2403
2413
|
q as RedirectTargetEnum,
|
|
2404
|
-
|
|
2414
|
+
be as actionNodeSchema,
|
|
2405
2415
|
sn as activeUsersResponseSchema,
|
|
2406
2416
|
$ as addressSchema,
|
|
2407
2417
|
Et as auth0FlowInsertSchema,
|
|
@@ -2419,7 +2429,7 @@ export {
|
|
|
2419
2429
|
ft as clientGrantListSchema,
|
|
2420
2430
|
re as clientGrantSchema,
|
|
2421
2431
|
ie as clientInsertSchema,
|
|
2422
|
-
|
|
2432
|
+
ht as clientSchema,
|
|
2423
2433
|
Ce as codeInsertSchema,
|
|
2424
2434
|
At as codeSchema,
|
|
2425
2435
|
ye as codeTypeSchema,
|
|
@@ -2457,7 +2467,7 @@ export {
|
|
|
2457
2467
|
po as formNodeSchema,
|
|
2458
2468
|
Ot as formSchema,
|
|
2459
2469
|
_e as genericComponentSchema,
|
|
2460
|
-
|
|
2470
|
+
he as genericNodeSchema,
|
|
2461
2471
|
dn as getConnectionIdentifierConfig,
|
|
2462
2472
|
Lt as hookInsertSchema,
|
|
2463
2473
|
vt as hookSchema,
|
|
@@ -2531,7 +2541,7 @@ export {
|
|
|
2531
2541
|
Yo as userPermissionSchema,
|
|
2532
2542
|
$t as userPermissionWithDetailsListSchema,
|
|
2533
2543
|
Qo as userPermissionWithDetailsSchema,
|
|
2534
|
-
|
|
2544
|
+
bt as userResponseSchema,
|
|
2535
2545
|
Jo as userRoleInsertSchema,
|
|
2536
2546
|
en as userRoleListSchema,
|
|
2537
2547
|
Zo as userRoleSchema,
|