@authhero/adapter-interfaces 0.142.0 → 0.144.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.
|
@@ -191,8 +191,8 @@ const s = e.object({
|
|
|
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];
|
|
@@ -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({
|
|
@@ -1399,8 +1406,10 @@ const Co = e.nativeEnum(P), To = e.object({
|
|
|
1399
1406
|
state_data: e.string().optional(),
|
|
1400
1407
|
// JSON: { hookId?, continuationScope?, continuationReturnUrl? }
|
|
1401
1408
|
failure_reason: e.string().optional(),
|
|
1402
|
-
user_id: e.string().optional()
|
|
1409
|
+
user_id: e.string().optional(),
|
|
1403
1410
|
// Set once user is authenticated
|
|
1411
|
+
auth_connection: e.string().optional()
|
|
1412
|
+
// The connection used to authenticate (may differ from primary user's connection)
|
|
1404
1413
|
}).openapi({
|
|
1405
1414
|
description: "This represents a login sesion"
|
|
1406
1415
|
}), xt = e.object({
|
|
@@ -2299,9 +2308,12 @@ const Uo = e.object({
|
|
|
2299
2308
|
"passkeys",
|
|
2300
2309
|
"captcha",
|
|
2301
2310
|
"custom-form"
|
|
2302
|
-
]), st = e.record(e.string(), e.string()).openapi({
|
|
2311
|
+
]), st = e.record(e.string(), e.record(e.string(), e.string())).openapi({
|
|
2303
2312
|
type: "object",
|
|
2304
|
-
additionalProperties: {
|
|
2313
|
+
additionalProperties: {
|
|
2314
|
+
type: "object",
|
|
2315
|
+
additionalProperties: { type: "string" }
|
|
2316
|
+
}
|
|
2305
2317
|
}), ln = e.object({
|
|
2306
2318
|
prompt: rt,
|
|
2307
2319
|
language: e.string(),
|