@authhero/adapter-interfaces 0.62.0 → 0.64.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 +737 -108
- package/dist/adapter-interfaces.mjs +163 -133
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z as t } from "@hono/zod-openapi";
|
|
2
|
-
const
|
|
2
|
+
const _t = t.object({
|
|
3
3
|
start: t.number(),
|
|
4
4
|
limit: t.number(),
|
|
5
5
|
length: t.number()
|
|
@@ -15,7 +15,7 @@ const ut = t.object({
|
|
|
15
15
|
phone_number: t.string().optional(),
|
|
16
16
|
phone_verified: t.boolean().optional(),
|
|
17
17
|
family_name: t.string().optional()
|
|
18
|
-
}).catchall(t.any()),
|
|
18
|
+
}).catchall(t.any()), b = t.object({
|
|
19
19
|
connection: t.string(),
|
|
20
20
|
user_id: t.string(),
|
|
21
21
|
provider: t.string(),
|
|
@@ -39,7 +39,7 @@ const ut = t.object({
|
|
|
39
39
|
user_id: t.string().optional(),
|
|
40
40
|
app_metadata: t.any().default({}).optional(),
|
|
41
41
|
user_metadata: t.any().default({}).optional()
|
|
42
|
-
}),
|
|
42
|
+
}), h = l.extend({
|
|
43
43
|
email_verified: t.boolean().default(!1),
|
|
44
44
|
verify_email: t.boolean().optional(),
|
|
45
45
|
last_ip: t.string().optional(),
|
|
@@ -49,14 +49,14 @@ const ut = t.object({
|
|
|
49
49
|
connection: t.string().default("email"),
|
|
50
50
|
is_social: t.boolean().optional()
|
|
51
51
|
}), f = t.object({
|
|
52
|
-
...
|
|
52
|
+
...h.shape,
|
|
53
53
|
...r.shape,
|
|
54
54
|
user_id: t.string(),
|
|
55
55
|
is_social: t.boolean(),
|
|
56
56
|
email: t.string().optional(),
|
|
57
57
|
login_count: t.number().default(0),
|
|
58
|
-
identities: t.array(
|
|
59
|
-
}),
|
|
58
|
+
identities: t.array(b).optional()
|
|
59
|
+
}), mt = f, bt = l.extend({
|
|
60
60
|
login_count: t.number(),
|
|
61
61
|
multifactor: t.array(t.string()).optional(),
|
|
62
62
|
last_ip: t.string().optional(),
|
|
@@ -69,7 +69,7 @@ let E = (e = 21) => {
|
|
|
69
69
|
i += S[a[e] & 63];
|
|
70
70
|
return i;
|
|
71
71
|
};
|
|
72
|
-
const
|
|
72
|
+
const j = t.object({
|
|
73
73
|
audience: t.string().optional(),
|
|
74
74
|
recipient: t.string().optional(),
|
|
75
75
|
createUpnClaim: t.boolean().optional(),
|
|
@@ -86,7 +86,7 @@ const y = t.object({
|
|
|
86
86
|
nameIdentifierProbes: t.array(t.string()).optional(),
|
|
87
87
|
authnContextClassRef: t.string().optional(),
|
|
88
88
|
mappings: t.record(t.string()).optional()
|
|
89
|
-
}),
|
|
89
|
+
}), y = t.object({
|
|
90
90
|
id: t.string(),
|
|
91
91
|
name: t.string(),
|
|
92
92
|
callbacks: t.array(t.string()).default([]).optional().openapi({
|
|
@@ -105,7 +105,7 @@ const y = t.object({
|
|
|
105
105
|
description: "Ids of clients that will be allowed to perform delegation requests. Clients that will be allowed to make delegation request. By default, all your clients will be allowed. This field allows you to specify specific clients"
|
|
106
106
|
}),
|
|
107
107
|
addons: t.object({
|
|
108
|
-
samlp:
|
|
108
|
+
samlp: j.optional()
|
|
109
109
|
}).default({}).optional().openapi({
|
|
110
110
|
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."
|
|
111
111
|
}),
|
|
@@ -119,7 +119,7 @@ const y = t.object({
|
|
|
119
119
|
}), I = t.object({
|
|
120
120
|
created_at: t.string().transform((e) => e === null ? "" : e),
|
|
121
121
|
updated_at: t.string().transform((e) => e === null ? "" : e),
|
|
122
|
-
...
|
|
122
|
+
...y.shape
|
|
123
123
|
}), o = t.object({
|
|
124
124
|
x: t.number(),
|
|
125
125
|
y: t.number()
|
|
@@ -230,16 +230,16 @@ const s = t.object({
|
|
|
230
230
|
label: t.string().optional(),
|
|
231
231
|
placeholder: t.string().optional()
|
|
232
232
|
}).passthrough()
|
|
233
|
-
}),
|
|
233
|
+
}), v = t.object({
|
|
234
234
|
id: t.string(),
|
|
235
235
|
category: t.string(),
|
|
236
236
|
type: t.string()
|
|
237
|
-
}).passthrough(),
|
|
237
|
+
}).passthrough(), A = t.union([
|
|
238
238
|
w,
|
|
239
239
|
C,
|
|
240
240
|
k,
|
|
241
241
|
O,
|
|
242
|
-
|
|
242
|
+
v
|
|
243
243
|
]);
|
|
244
244
|
var N = /* @__PURE__ */ ((e) => (e.STEP = "STEP", e.FLOW = "FLOW", e.CONDITION = "CONDITION", e.ACTION = "ACTION", e))(N || {});
|
|
245
245
|
const T = t.object({
|
|
@@ -251,7 +251,7 @@ const T = t.object({
|
|
|
251
251
|
coordinates: o,
|
|
252
252
|
alias: t.string().optional(),
|
|
253
253
|
config: t.object({
|
|
254
|
-
components: t.array(
|
|
254
|
+
components: t.array(A),
|
|
255
255
|
next_node: t.string()
|
|
256
256
|
}).passthrough()
|
|
257
257
|
}), U = t.object({
|
|
@@ -261,40 +261,41 @@ const T = t.object({
|
|
|
261
261
|
/* FLOW */
|
|
262
262
|
),
|
|
263
263
|
coordinates: o,
|
|
264
|
+
alias: t.string().optional(),
|
|
264
265
|
config: t.object({
|
|
265
266
|
flow_id: t.string(),
|
|
266
267
|
next_node: t.string()
|
|
267
268
|
})
|
|
268
|
-
}),
|
|
269
|
+
}), x = t.object({
|
|
269
270
|
id: t.string(),
|
|
270
271
|
type: t.string(),
|
|
271
272
|
coordinates: o
|
|
272
|
-
}).passthrough(),
|
|
273
|
+
}).passthrough(), D = t.union([
|
|
273
274
|
T,
|
|
274
275
|
U,
|
|
275
|
-
|
|
276
|
+
x
|
|
276
277
|
]), R = t.object({
|
|
277
278
|
next_node: t.string(),
|
|
278
279
|
coordinates: o
|
|
279
|
-
}).passthrough(),
|
|
280
|
+
}).passthrough(), L = t.object({
|
|
280
281
|
resume_flow: t.boolean().optional(),
|
|
281
282
|
coordinates: o
|
|
282
|
-
}).passthrough(),
|
|
283
|
+
}).passthrough(), P = t.object({
|
|
283
284
|
id: t.string(),
|
|
284
285
|
name: t.string(),
|
|
285
286
|
languages: t.object({
|
|
286
287
|
primary: t.string()
|
|
287
288
|
}).passthrough(),
|
|
288
|
-
nodes: t.array(
|
|
289
|
+
nodes: t.array(D),
|
|
289
290
|
start: R,
|
|
290
|
-
ending:
|
|
291
|
+
ending: L,
|
|
291
292
|
created_at: t.string(),
|
|
292
293
|
updated_at: t.string(),
|
|
293
294
|
links: t.object({
|
|
294
295
|
sdkSrc: t.string().optional(),
|
|
295
296
|
sdk_src: t.string().optional()
|
|
296
297
|
}).passthrough()
|
|
297
|
-
}).passthrough(), ht =
|
|
298
|
+
}).passthrough(), ht = P.omit({
|
|
298
299
|
id: !0,
|
|
299
300
|
created_at: !0,
|
|
300
301
|
updated_at: !0
|
|
@@ -318,7 +319,7 @@ const B = t.object({
|
|
|
318
319
|
ui_locales: t.string().optional(),
|
|
319
320
|
// The following fields are not available in Auth0
|
|
320
321
|
vendor_id: t.string().optional()
|
|
321
|
-
}),
|
|
322
|
+
}), ft = t.object({
|
|
322
323
|
colors: t.object({
|
|
323
324
|
primary: t.string(),
|
|
324
325
|
page_background: t.object({
|
|
@@ -379,7 +380,7 @@ const B = t.object({
|
|
|
379
380
|
updated_at: t.string().transform((e) => e === null ? "" : e),
|
|
380
381
|
...M.shape,
|
|
381
382
|
id: t.string()
|
|
382
|
-
}),
|
|
383
|
+
}), St = t.object({
|
|
383
384
|
logoUrl: t.string(),
|
|
384
385
|
loginBackgroundImage: t.string().nullish(),
|
|
385
386
|
style: t.object({
|
|
@@ -402,14 +403,14 @@ t.object({
|
|
|
402
403
|
tenant: G,
|
|
403
404
|
connections: t.array(K)
|
|
404
405
|
});
|
|
405
|
-
const
|
|
406
|
+
const X = t.enum([
|
|
406
407
|
"password_reset",
|
|
407
408
|
"email_verification",
|
|
408
409
|
"otp",
|
|
409
410
|
"authorization_code",
|
|
410
411
|
"oauth2_state",
|
|
411
412
|
"ticket"
|
|
412
|
-
]),
|
|
413
|
+
]), W = t.object({
|
|
413
414
|
code_id: t.string().openapi({
|
|
414
415
|
description: "The code that will be used in for instance an email verification flow"
|
|
415
416
|
}),
|
|
@@ -419,15 +420,15 @@ const W = t.enum([
|
|
|
419
420
|
connection_id: t.string().optional().openapi({
|
|
420
421
|
description: "The connection that the code is connected to"
|
|
421
422
|
}),
|
|
422
|
-
code_type:
|
|
423
|
+
code_type: X,
|
|
423
424
|
code_verifier: t.string().optional().openapi({
|
|
424
425
|
description: "The code verifier used in PKCE in outbound flows"
|
|
425
426
|
}),
|
|
426
427
|
expires_at: t.string(),
|
|
427
428
|
used_at: t.string().optional(),
|
|
428
429
|
user_id: t.string().optional()
|
|
429
|
-
}),
|
|
430
|
-
...
|
|
430
|
+
}), Et = t.object({
|
|
431
|
+
...W.shape,
|
|
431
432
|
created_at: t.string()
|
|
432
433
|
}), q = t.object({
|
|
433
434
|
domain: t.string(),
|
|
@@ -457,7 +458,7 @@ const W = t.enum([
|
|
|
457
458
|
methods: t.array(V)
|
|
458
459
|
}).optional(),
|
|
459
460
|
tls_policy: t.string().optional()
|
|
460
|
-
}),
|
|
461
|
+
}), jt = z.extend({
|
|
461
462
|
tenant_id: t.string()
|
|
462
463
|
}), yt = t.object({
|
|
463
464
|
id: t.string(),
|
|
@@ -468,7 +469,38 @@ const W = t.enum([
|
|
|
468
469
|
order: t.number().optional(),
|
|
469
470
|
visible: t.boolean().optional().default(!0),
|
|
470
471
|
customizations: t.record(t.string(), t.any()).optional()
|
|
471
|
-
}), Q = t.
|
|
472
|
+
}), Q = t.discriminatedUnion("type", [
|
|
473
|
+
t.object({
|
|
474
|
+
id: t.string(),
|
|
475
|
+
type: t.literal("RICH_TEXT"),
|
|
476
|
+
config: t.object({
|
|
477
|
+
content: t.string()
|
|
478
|
+
}),
|
|
479
|
+
order: t.number().optional(),
|
|
480
|
+
visible: t.boolean().optional().default(!0)
|
|
481
|
+
}),
|
|
482
|
+
t.object({
|
|
483
|
+
id: t.string(),
|
|
484
|
+
type: t.literal("LEGAL"),
|
|
485
|
+
config: t.object({
|
|
486
|
+
text: t.string(),
|
|
487
|
+
html: t.boolean().optional()
|
|
488
|
+
}),
|
|
489
|
+
required: t.boolean().optional(),
|
|
490
|
+
order: t.number().optional(),
|
|
491
|
+
visible: t.boolean().optional().default(!0)
|
|
492
|
+
}),
|
|
493
|
+
t.object({
|
|
494
|
+
id: t.string(),
|
|
495
|
+
type: t.literal("NEXT_BUTTON"),
|
|
496
|
+
config: t.object({
|
|
497
|
+
text: t.string().optional()
|
|
498
|
+
}),
|
|
499
|
+
order: t.number().optional(),
|
|
500
|
+
visible: t.boolean().optional().default(!0)
|
|
501
|
+
})
|
|
502
|
+
// Add more component types as needed
|
|
503
|
+
]), Y = t.object({
|
|
472
504
|
name: t.string().openapi({
|
|
473
505
|
description: "The name of the form"
|
|
474
506
|
}),
|
|
@@ -488,11 +520,10 @@ const W = t.enum([
|
|
|
488
520
|
id: t.string(),
|
|
489
521
|
type: t.literal("FLOW"),
|
|
490
522
|
coordinates: t.object({ x: t.number(), y: t.number() }),
|
|
491
|
-
alias: t.string().min(1).max(150),
|
|
523
|
+
alias: t.string().min(1).max(150).optional(),
|
|
492
524
|
config: t.object({
|
|
493
525
|
flow_id: t.string().max(30),
|
|
494
|
-
next_node: t.
|
|
495
|
-
// Accepts string[] (forms-custom-identifier or "$ending")
|
|
526
|
+
next_node: t.string()
|
|
496
527
|
})
|
|
497
528
|
}),
|
|
498
529
|
// ROUTER node
|
|
@@ -505,10 +536,9 @@ const W = t.enum([
|
|
|
505
536
|
rules: t.array(
|
|
506
537
|
t.object({
|
|
507
538
|
id: t.string(),
|
|
508
|
-
alias: t.string().min(1).max(150),
|
|
539
|
+
alias: t.string().min(1).max(150).optional(),
|
|
509
540
|
condition: t.any(),
|
|
510
|
-
|
|
511
|
-
next_node: t.array(t.string())
|
|
541
|
+
next_node: t.string()
|
|
512
542
|
})
|
|
513
543
|
),
|
|
514
544
|
fallback: t.array(t.string())
|
|
@@ -519,18 +549,17 @@ const W = t.enum([
|
|
|
519
549
|
id: t.string(),
|
|
520
550
|
type: t.literal("STEP"),
|
|
521
551
|
coordinates: t.object({ x: t.number(), y: t.number() }),
|
|
522
|
-
alias: t.string().min(1).max(150),
|
|
552
|
+
alias: t.string().min(1).max(150).optional(),
|
|
523
553
|
config: t.object({
|
|
524
|
-
components: t.array(
|
|
525
|
-
|
|
526
|
-
next_node: t.array(t.string())
|
|
554
|
+
components: t.array(Q),
|
|
555
|
+
next_node: t.string()
|
|
527
556
|
})
|
|
528
557
|
})
|
|
529
558
|
])
|
|
530
559
|
).optional(),
|
|
531
560
|
start: t.object({
|
|
532
561
|
hidden_fields: t.array(t.object({ key: t.string(), value: t.string() })).optional(),
|
|
533
|
-
next_node: t.
|
|
562
|
+
next_node: t.string().optional(),
|
|
534
563
|
coordinates: t.object({ x: t.number(), y: t.number() }).optional()
|
|
535
564
|
}).optional(),
|
|
536
565
|
ending: t.object({
|
|
@@ -545,11 +574,11 @@ const W = t.enum([
|
|
|
545
574
|
style: t.object({ css: t.string().optional() }).optional()
|
|
546
575
|
}).openapi({
|
|
547
576
|
description: "Schema for flow-based forms (matches new JSON structure)"
|
|
548
|
-
}),
|
|
577
|
+
}), It = t.object({
|
|
549
578
|
...r.shape,
|
|
550
|
-
...
|
|
579
|
+
...Y.shape,
|
|
551
580
|
id: t.string()
|
|
552
|
-
}),
|
|
581
|
+
}), J = t.object({
|
|
553
582
|
trigger_id: t.enum([
|
|
554
583
|
"pre-user-signup",
|
|
555
584
|
"post-user-registration",
|
|
@@ -560,10 +589,10 @@ const W = t.enum([
|
|
|
560
589
|
hook_id: t.string().optional(),
|
|
561
590
|
synchronous: t.boolean().default(!1),
|
|
562
591
|
priority: t.number().optional()
|
|
563
|
-
}),
|
|
592
|
+
}), wt = J.extend({
|
|
564
593
|
...r.shape,
|
|
565
594
|
hook_id: t.string()
|
|
566
|
-
}),
|
|
595
|
+
}), Z = t.object({
|
|
567
596
|
alg: t.enum([
|
|
568
597
|
"RS256",
|
|
569
598
|
"RS384",
|
|
@@ -582,9 +611,9 @@ const W = t.enum([
|
|
|
582
611
|
x5t: t.string().optional(),
|
|
583
612
|
x5c: t.array(t.string()).optional(),
|
|
584
613
|
use: t.enum(["sig", "enc"]).optional()
|
|
585
|
-
}), wt = t.object({
|
|
586
|
-
keys: t.array(J)
|
|
587
614
|
}), Ct = t.object({
|
|
615
|
+
keys: t.array(Z)
|
|
616
|
+
}), kt = t.object({
|
|
588
617
|
issuer: t.string(),
|
|
589
618
|
authorization_endpoint: t.string(),
|
|
590
619
|
token_endpoint: t.string(),
|
|
@@ -605,7 +634,7 @@ const W = t.enum([
|
|
|
605
634
|
request_uri_parameter_supported: t.boolean(),
|
|
606
635
|
request_parameter_supported: t.boolean(),
|
|
607
636
|
token_endpoint_auth_signing_alg_values_supported: t.array(t.string())
|
|
608
|
-
}),
|
|
637
|
+
}), $ = t.object({
|
|
609
638
|
csrf_token: t.string(),
|
|
610
639
|
auth0Client: t.string().optional(),
|
|
611
640
|
authParams: B,
|
|
@@ -617,16 +646,16 @@ const W = t.enum([
|
|
|
617
646
|
authorization_url: t.string().optional()
|
|
618
647
|
}).openapi({
|
|
619
648
|
description: "This represents a login sesion"
|
|
620
|
-
}),
|
|
621
|
-
|
|
649
|
+
}), Ot = t.object({
|
|
650
|
+
...$.shape,
|
|
622
651
|
id: t.string().openapi({
|
|
623
652
|
description: "This is is used as the state in the universal login"
|
|
624
653
|
}),
|
|
625
654
|
created_at: t.string(),
|
|
626
655
|
updated_at: t.string()
|
|
627
656
|
});
|
|
628
|
-
var
|
|
629
|
-
const
|
|
657
|
+
var tt = /* @__PURE__ */ ((e) => (e.FAILED_SILENT_AUTH = "fsa", e.FAILED_SIGNUP = "fs", e.FAILED_LOGIN = "f", e.FAILED_LOGIN_INCORRECT_PASSWORD = "fp", e.FAILED_CHANGE_PASSWORD = "fcp", e.FAILED_BY_CONNECTOR = "fc", e.FAILED_LOGIN_INVALID_EMAIL_USERNAME = "fu", e.FAILED_HOOK = "fh", e.FAILED_CROSS_ORIGIN_AUTHENTICATION = "fcoa", e.SUCCESS_API_OPERATION = "sapi", e.SUCCESS_CHANGE_PASSWORD = "scp", e.SUCCESS_CHANGE_PASSWORD_REQUEST = "scpr", e.SUCCESS_CHANGE_USERNAME = "scu", e.SUCCESS_CROSS_ORIGIN_AUTHENTICATION = "scoa", e.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN = "seacft", e.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN = "serft", e.SUCCESS_LOGIN = "s", e.SUCCESS_LOGOUT = "slo", e.SUCCESS_SIGNUP = "ss", e.SUCCESS_SILENT_AUTH = "ssa", e.SUCCESS_VERIFICATION_EMAIL = "sv", e.SUCCESS_VERIFICATION_EMAIL_REQUEST = "svr", e.CODE_LINK_SENT = "cls", e.BLOCKED_ACCOUNT_EMAIL = "limit_wc", e.BLOCKED_ACCOUNT_IP = "limit_sul", e.BLOCKED_IP_ADDRESS = "limit_mu", e))(tt || {});
|
|
658
|
+
const et = t.enum([
|
|
630
659
|
"cls",
|
|
631
660
|
// CODE_LINK_SENT
|
|
632
661
|
"fsa",
|
|
@@ -675,14 +704,14 @@ const tt = t.enum([
|
|
|
675
704
|
// SUCCESS_VERIFICATION_EMAIL
|
|
676
705
|
"svr"
|
|
677
706
|
// SUCCESS_VERIFICATION_EMAIL_REQUEST
|
|
678
|
-
]),
|
|
707
|
+
]), nt = t.object({
|
|
679
708
|
name: t.string(),
|
|
680
709
|
version: t.string(),
|
|
681
710
|
env: t.object({
|
|
682
711
|
node: t.string().optional()
|
|
683
712
|
}).optional()
|
|
684
|
-
}),
|
|
685
|
-
type:
|
|
713
|
+
}), vt = t.object({
|
|
714
|
+
type: et,
|
|
686
715
|
date: t.string(),
|
|
687
716
|
description: t.string().optional(),
|
|
688
717
|
log_id: t.string().optional(),
|
|
@@ -703,13 +732,13 @@ const tt = t.enum([
|
|
|
703
732
|
strategy: t.string().optional(),
|
|
704
733
|
strategy_type: t.string().optional(),
|
|
705
734
|
hostname: t.string().optional(),
|
|
706
|
-
auth0_client:
|
|
707
|
-
}),
|
|
735
|
+
auth0_client: nt.optional()
|
|
736
|
+
}), it = t.object({
|
|
708
737
|
user_id: t.string(),
|
|
709
738
|
password: t.string(),
|
|
710
739
|
algorithm: t.enum(["bcrypt", "argon2id"]).default("argon2id")
|
|
711
740
|
}), At = t.object({
|
|
712
|
-
...
|
|
741
|
+
...it.shape,
|
|
713
742
|
created_at: t.string(),
|
|
714
743
|
updated_at: t.string()
|
|
715
744
|
}), _ = t.object({
|
|
@@ -719,7 +748,7 @@ const tt = t.enum([
|
|
|
719
748
|
last_user_agent: t.string().describe("Last user agent of the device from which this user logged in"),
|
|
720
749
|
last_ip: t.string().describe("Last IP address from which this user logged in"),
|
|
721
750
|
last_asn: t.string().describe("Last autonomous system number from which this user logged in")
|
|
722
|
-
}),
|
|
751
|
+
}), ot = t.object({
|
|
723
752
|
id: t.string(),
|
|
724
753
|
revoked_at: t.string().optional(),
|
|
725
754
|
used_at: t.string().optional(),
|
|
@@ -730,13 +759,13 @@ const tt = t.enum([
|
|
|
730
759
|
"Metadata related to the device used in the session"
|
|
731
760
|
),
|
|
732
761
|
clients: t.array(t.string()).describe("List of client details for the session")
|
|
733
|
-
}),
|
|
762
|
+
}), Nt = t.object({
|
|
734
763
|
created_at: t.string(),
|
|
735
764
|
updated_at: t.string(),
|
|
736
765
|
authenticated_at: t.string(),
|
|
737
766
|
last_interaction_at: t.string(),
|
|
738
|
-
...
|
|
739
|
-
}),
|
|
767
|
+
...ot.shape
|
|
768
|
+
}), Tt = t.object({
|
|
740
769
|
kid: t.string().openapi({ description: "The key id of the signing key" }),
|
|
741
770
|
cert: t.string().openapi({ description: "The public certificate of the signing key" }),
|
|
742
771
|
fingerprint: t.string().openapi({ description: "The cert fingerprint" }),
|
|
@@ -756,8 +785,8 @@ const tt = t.enum([
|
|
|
756
785
|
revoked: t.boolean().optional().openapi({ description: "True if the key is revoked" }),
|
|
757
786
|
revoked_at: t.string().optional().openapi({ description: "The date and time when the key was revoked" })
|
|
758
787
|
});
|
|
759
|
-
var
|
|
760
|
-
const
|
|
788
|
+
var at = /* @__PURE__ */ ((e) => (e.RefreshToken = "refresh_token", e.AuthorizationCode = "authorization_code", e.ClientCredential = "client_credentials", e.Passwordless = "passwordless", e.Password = "password", e.OTP = "http://auth0.com/oauth/grant-type/passwordless/otp", e))(at || {});
|
|
789
|
+
const Ut = t.object({
|
|
761
790
|
access_token: t.string(),
|
|
762
791
|
id_token: t.string().optional(),
|
|
763
792
|
scope: t.string().optional(),
|
|
@@ -770,7 +799,7 @@ t.object({
|
|
|
770
799
|
code: t.string(),
|
|
771
800
|
state: t.string().optional()
|
|
772
801
|
});
|
|
773
|
-
const
|
|
802
|
+
const st = t.object({
|
|
774
803
|
button_border_radius: t.number(),
|
|
775
804
|
button_border_weight: t.number(),
|
|
776
805
|
buttons_style: t.enum(["pill"]),
|
|
@@ -780,7 +809,7 @@ const at = t.object({
|
|
|
780
809
|
show_widget_shadow: t.boolean(),
|
|
781
810
|
widget_border_weight: t.number(),
|
|
782
811
|
widget_corner_radius: t.number()
|
|
783
|
-
}),
|
|
812
|
+
}), rt = t.object({
|
|
784
813
|
base_focus_color: t.string(),
|
|
785
814
|
base_hover_color: t.string(),
|
|
786
815
|
body_text: t.string(),
|
|
@@ -803,7 +832,7 @@ const at = t.object({
|
|
|
803
832
|
}), n = t.object({
|
|
804
833
|
bold: t.boolean(),
|
|
805
834
|
size: t.number()
|
|
806
|
-
}),
|
|
835
|
+
}), lt = t.object({
|
|
807
836
|
body_text: n,
|
|
808
837
|
buttons_text: n,
|
|
809
838
|
font_url: t.string(),
|
|
@@ -813,31 +842,31 @@ const at = t.object({
|
|
|
813
842
|
reference_text_size: t.number(),
|
|
814
843
|
subtitle: n,
|
|
815
844
|
title: n
|
|
816
|
-
}),
|
|
845
|
+
}), ct = t.object({
|
|
817
846
|
background_color: t.string(),
|
|
818
847
|
background_image_url: t.string(),
|
|
819
848
|
page_layout: t.enum(["center"])
|
|
820
|
-
}),
|
|
849
|
+
}), pt = t.object({
|
|
821
850
|
header_text_alignment: t.enum(["center"]),
|
|
822
851
|
logo_height: t.number(),
|
|
823
852
|
logo_position: t.enum(["center"]),
|
|
824
853
|
logo_url: t.string(),
|
|
825
854
|
social_buttons_layout: t.enum(["bottom"])
|
|
826
|
-
}),
|
|
827
|
-
borders:
|
|
828
|
-
colors:
|
|
855
|
+
}), gt = t.object({
|
|
856
|
+
borders: st,
|
|
857
|
+
colors: rt,
|
|
829
858
|
displayName: t.string(),
|
|
830
|
-
fonts:
|
|
831
|
-
page_background:
|
|
832
|
-
widget:
|
|
833
|
-
}),
|
|
859
|
+
fonts: lt,
|
|
860
|
+
page_background: ct,
|
|
861
|
+
widget: pt
|
|
862
|
+
}), xt = gt.extend({
|
|
834
863
|
themeId: t.string()
|
|
835
864
|
}), Dt = t.object({
|
|
836
865
|
universal_login_experience: t.enum(["new", "classic"]).default("new"),
|
|
837
866
|
identifier_first: t.boolean().default(!0),
|
|
838
867
|
password_first: t.boolean().default(!1),
|
|
839
868
|
webauthn_platform_first_factor: t.boolean()
|
|
840
|
-
}),
|
|
869
|
+
}), Rt = t.object({
|
|
841
870
|
name: t.string(),
|
|
842
871
|
enabled: t.boolean().optional().default(!0),
|
|
843
872
|
default_from_address: t.string().optional(),
|
|
@@ -867,7 +896,7 @@ const at = t.object({
|
|
|
867
896
|
})
|
|
868
897
|
]),
|
|
869
898
|
settings: t.object({}).optional()
|
|
870
|
-
}),
|
|
899
|
+
}), dt = t.object({
|
|
871
900
|
// The actual refresh token value (primary key).
|
|
872
901
|
id: t.string(),
|
|
873
902
|
// Link to the session record
|
|
@@ -888,105 +917,106 @@ const at = t.object({
|
|
|
888
917
|
})
|
|
889
918
|
),
|
|
890
919
|
rotating: t.boolean()
|
|
891
|
-
}),
|
|
920
|
+
}), Lt = t.object({
|
|
892
921
|
// When the refresh token record was created.
|
|
893
922
|
created_at: t.string(),
|
|
894
923
|
// Spread in the rest of the refresh token properties.
|
|
895
|
-
...
|
|
924
|
+
...dt.shape
|
|
896
925
|
}), Pt = t.object({
|
|
897
926
|
to: t.string(),
|
|
898
927
|
message: t.string()
|
|
899
|
-
}),
|
|
928
|
+
}), Bt = t.object({
|
|
900
929
|
name: t.string(),
|
|
901
930
|
options: t.object({})
|
|
902
931
|
});
|
|
903
|
-
function
|
|
932
|
+
function Ft(e) {
|
|
904
933
|
const [i, a] = e.split("|");
|
|
905
934
|
if (!i || !a)
|
|
906
935
|
throw new Error(`Invalid user_id: ${e}`);
|
|
907
936
|
return { connection: i, id: a };
|
|
908
937
|
}
|
|
909
938
|
export {
|
|
910
|
-
|
|
939
|
+
nt as Auth0Client,
|
|
911
940
|
d as AuthorizationResponseMode,
|
|
912
941
|
g as AuthorizationResponseType,
|
|
913
942
|
u as CodeChallengeMethod,
|
|
914
943
|
p as ComponentCategory,
|
|
915
944
|
c as ComponentType,
|
|
916
|
-
|
|
917
|
-
|
|
945
|
+
at as GrantType,
|
|
946
|
+
tt as LogTypes,
|
|
918
947
|
N as NodeType,
|
|
919
|
-
|
|
948
|
+
y as applicationInsertSchema,
|
|
920
949
|
I as applicationSchema,
|
|
921
950
|
ht as auth0FlowInsertSchema,
|
|
922
|
-
|
|
923
|
-
|
|
951
|
+
P as auth0FlowSchema,
|
|
952
|
+
mt as auth0UserResponseSchema,
|
|
924
953
|
B as authParamsSchema,
|
|
925
954
|
l as baseUserSchema,
|
|
926
|
-
|
|
927
|
-
|
|
955
|
+
st as bordersSchema,
|
|
956
|
+
ft as brandingSchema,
|
|
928
957
|
C as buttonComponentSchema,
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
958
|
+
W as codeInsertSchema,
|
|
959
|
+
Et as codeSchema,
|
|
960
|
+
X as codeTypeSchema,
|
|
961
|
+
rt as colorsSchema,
|
|
962
|
+
A as componentSchema,
|
|
934
963
|
H as connectionInsertSchema,
|
|
935
964
|
F as connectionOptionsSchema,
|
|
936
965
|
K as connectionSchema,
|
|
937
966
|
o as coordinatesSchema,
|
|
938
967
|
q as customDomainInsertSchema,
|
|
939
968
|
z as customDomainSchema,
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
969
|
+
jt as customDomainWithTenantIdSchema,
|
|
970
|
+
Rt as emailProviderSchema,
|
|
971
|
+
L as endingSchema,
|
|
943
972
|
O as fieldComponentSchema,
|
|
944
973
|
U as flowNodeSchema,
|
|
945
974
|
n as fontDetailsSchema,
|
|
946
|
-
|
|
975
|
+
lt as fontsSchema,
|
|
947
976
|
yt as formControlSchema,
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
977
|
+
Y as formInsertSchema,
|
|
978
|
+
Q as formNodeComponentDefinition,
|
|
979
|
+
It as formSchema,
|
|
980
|
+
v as genericComponentSchema,
|
|
981
|
+
x as genericNodeSchema,
|
|
982
|
+
J as hookInsertSchema,
|
|
983
|
+
wt as hookSchema,
|
|
984
|
+
b as identitySchema,
|
|
985
|
+
Ct as jwksKeySchema,
|
|
986
|
+
Z as jwksSchema,
|
|
957
987
|
k as legalComponentSchema,
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
988
|
+
vt as logSchema,
|
|
989
|
+
$ as loginSessionInsertSchema,
|
|
990
|
+
Ot as loginSessionSchema,
|
|
991
|
+
D as nodeSchema,
|
|
992
|
+
kt as openIDConfigurationSchema,
|
|
993
|
+
ct as pageBackgroundSchema,
|
|
994
|
+
Ft as parseUserId,
|
|
995
|
+
it as passwordInsertSchema,
|
|
966
996
|
At as passwordSchema,
|
|
967
997
|
m as profileDataSchema,
|
|
968
998
|
Dt as promptSettingSchema,
|
|
969
|
-
|
|
970
|
-
|
|
999
|
+
dt as refreshTokenInsertSchema,
|
|
1000
|
+
Lt as refreshTokenSchema,
|
|
971
1001
|
w as richTextComponentSchema,
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
1002
|
+
j as samlpAddon,
|
|
1003
|
+
ot as sessionInsertSchema,
|
|
1004
|
+
Nt as sessionSchema,
|
|
1005
|
+
Tt as signingKeySchema,
|
|
1006
|
+
Bt as smsProviderSchema,
|
|
977
1007
|
Pt as smsSendParamsSchema,
|
|
978
1008
|
R as startSchema,
|
|
979
1009
|
T as stepNodeSchema,
|
|
980
1010
|
M as tenantInsertSchema,
|
|
981
1011
|
G as tenantSchema,
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
1012
|
+
gt as themeInsertSchema,
|
|
1013
|
+
xt as themeSchema,
|
|
1014
|
+
Ut as tokenResponseSchema,
|
|
1015
|
+
_t as totalsSchema,
|
|
1016
|
+
h as userInsertSchema,
|
|
1017
|
+
bt as userResponseSchema,
|
|
988
1018
|
f as userSchema,
|
|
989
|
-
|
|
1019
|
+
St as vendorSettingsSchema,
|
|
990
1020
|
V as verificationMethodsSchema,
|
|
991
|
-
|
|
1021
|
+
pt as widgetSchema
|
|
992
1022
|
};
|