@authhero/adapter-interfaces 0.118.0 → 0.120.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 +51 -10
- package/dist/adapter-interfaces.mjs +418 -402
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { z as e } from "@hono/zod-openapi";
|
|
2
|
-
const
|
|
2
|
+
const r = e.object({
|
|
3
3
|
created_at: e.string(),
|
|
4
4
|
updated_at: e.string()
|
|
5
|
-
}),
|
|
5
|
+
}), eo = e.enum(["AUTH0", "EMAIL", "REDIRECT"]), to = e.enum([
|
|
6
6
|
"CREATE_USER",
|
|
7
7
|
"GET_USER",
|
|
8
8
|
"UPDATE_USER",
|
|
9
9
|
"SEND_REQUEST",
|
|
10
10
|
"SEND_EMAIL"
|
|
11
|
-
]),
|
|
11
|
+
]), oo = e.enum(["VERIFY_EMAIL"]), P = e.object({
|
|
12
12
|
require_mx_record: e.boolean().optional(),
|
|
13
13
|
block_aliases: e.boolean().optional(),
|
|
14
14
|
block_free_emails: e.boolean().optional(),
|
|
15
15
|
block_disposable_emails: e.boolean().optional(),
|
|
16
16
|
blocklist: e.array(e.string()).optional(),
|
|
17
17
|
allowlist: e.array(e.string()).optional()
|
|
18
|
-
}),
|
|
18
|
+
}), M = e.object({
|
|
19
19
|
id: e.string(),
|
|
20
20
|
alias: e.string().max(100).optional(),
|
|
21
21
|
type: e.literal("AUTH0"),
|
|
@@ -27,7 +27,7 @@ const s = e.object({
|
|
|
27
27
|
user_id: e.string(),
|
|
28
28
|
changes: e.record(e.string(), e.any())
|
|
29
29
|
})
|
|
30
|
-
}),
|
|
30
|
+
}), H = e.object({
|
|
31
31
|
id: e.string(),
|
|
32
32
|
alias: e.string().max(100).optional(),
|
|
33
33
|
type: e.literal("EMAIL"),
|
|
@@ -36,9 +36,9 @@ const s = e.object({
|
|
|
36
36
|
mask_output: e.boolean().optional(),
|
|
37
37
|
params: e.object({
|
|
38
38
|
email: e.string(),
|
|
39
|
-
rules:
|
|
39
|
+
rules: P.optional()
|
|
40
40
|
})
|
|
41
|
-
}),
|
|
41
|
+
}), G = e.enum(["change-email", "account", "custom"]), B = e.object({
|
|
42
42
|
id: e.string(),
|
|
43
43
|
alias: e.string().max(100).optional(),
|
|
44
44
|
type: e.literal("REDIRECT"),
|
|
@@ -46,32 +46,32 @@ const s = e.object({
|
|
|
46
46
|
allow_failure: e.boolean().optional(),
|
|
47
47
|
mask_output: e.boolean().optional(),
|
|
48
48
|
params: e.object({
|
|
49
|
-
target:
|
|
49
|
+
target: G.openapi({
|
|
50
50
|
description: "The predefined target to redirect to, or 'custom' for a custom URL"
|
|
51
51
|
}),
|
|
52
52
|
custom_url: e.string().optional().openapi({
|
|
53
53
|
description: "Custom URL to redirect to when target is 'custom'"
|
|
54
54
|
})
|
|
55
55
|
})
|
|
56
|
-
}),
|
|
57
|
-
P,
|
|
56
|
+
}), K = e.union([
|
|
58
57
|
M,
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
H,
|
|
59
|
+
B
|
|
60
|
+
]), W = e.object({
|
|
61
61
|
name: e.string().min(1).max(150).openapi({
|
|
62
62
|
description: "The name of the flow"
|
|
63
63
|
}),
|
|
64
64
|
// Actions is an array of action steps (Auth0 stores as JSON blob)
|
|
65
|
-
actions: e.array(
|
|
65
|
+
actions: e.array(K).optional().default([]).openapi({
|
|
66
66
|
description: "The list of actions to execute in sequence"
|
|
67
67
|
})
|
|
68
|
-
}),
|
|
69
|
-
...
|
|
68
|
+
}), no = W.extend({
|
|
69
|
+
...r.shape,
|
|
70
70
|
id: e.string().openapi({
|
|
71
71
|
description: "Unique identifier for the flow",
|
|
72
72
|
example: "af_12tMpdJ3iek7svMyZkSh5M"
|
|
73
73
|
})
|
|
74
|
-
}),
|
|
74
|
+
}), io = e.object({
|
|
75
75
|
page: e.string().min(0).optional().default("0").transform((t) => parseInt(t, 10)).openapi({
|
|
76
76
|
description: "The page number where 0 is the first page"
|
|
77
77
|
}),
|
|
@@ -87,7 +87,7 @@ const s = e.object({
|
|
|
87
87
|
q: e.string().optional().openapi({
|
|
88
88
|
description: "A lucene query string used to filter the results"
|
|
89
89
|
})
|
|
90
|
-
}),
|
|
90
|
+
}), ao = e.object({
|
|
91
91
|
start: e.number(),
|
|
92
92
|
limit: e.number(),
|
|
93
93
|
length: e.number(),
|
|
@@ -101,7 +101,7 @@ const s = e.object({
|
|
|
101
101
|
phone_number: e.string().optional(),
|
|
102
102
|
phone_verified: e.boolean().optional(),
|
|
103
103
|
family_name: e.string().optional()
|
|
104
|
-
}).catchall(e.any()),
|
|
104
|
+
}).catchall(e.any()), X = e.object({
|
|
105
105
|
connection: e.string(),
|
|
106
106
|
user_id: e.string(),
|
|
107
107
|
provider: e.string(),
|
|
@@ -125,7 +125,7 @@ const s = e.object({
|
|
|
125
125
|
user_id: e.string().optional(),
|
|
126
126
|
app_metadata: e.any().default({}).optional(),
|
|
127
127
|
user_metadata: e.any().default({}).optional()
|
|
128
|
-
}),
|
|
128
|
+
}), V = I.extend({
|
|
129
129
|
email_verified: e.boolean().default(!1),
|
|
130
130
|
verify_email: e.boolean().optional(),
|
|
131
131
|
last_ip: e.string().optional(),
|
|
@@ -134,29 +134,29 @@ const s = e.object({
|
|
|
134
134
|
provider: e.string().optional(),
|
|
135
135
|
connection: e.string(),
|
|
136
136
|
is_social: e.boolean().optional()
|
|
137
|
-
}),
|
|
138
|
-
...
|
|
139
|
-
...
|
|
137
|
+
}), q = e.object({
|
|
138
|
+
...V.shape,
|
|
139
|
+
...r.shape,
|
|
140
140
|
user_id: e.string(),
|
|
141
141
|
provider: e.string(),
|
|
142
142
|
is_social: e.boolean(),
|
|
143
143
|
email: e.string().optional(),
|
|
144
144
|
login_count: e.number().default(0),
|
|
145
|
-
identities: e.array(
|
|
146
|
-
}),
|
|
145
|
+
identities: e.array(X).optional()
|
|
146
|
+
}), ro = q, so = I.extend({
|
|
147
147
|
login_count: e.number(),
|
|
148
148
|
multifactor: e.array(e.string()).optional(),
|
|
149
149
|
last_ip: e.string().optional(),
|
|
150
150
|
last_login: e.string().optional(),
|
|
151
151
|
user_id: e.string()
|
|
152
|
-
}).catchall(e.any()),
|
|
153
|
-
let
|
|
154
|
-
let a = "",
|
|
152
|
+
}).catchall(e.any()), Y = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
153
|
+
let Q = (t = 21) => {
|
|
154
|
+
let a = "", s = crypto.getRandomValues(new Uint8Array(t |= 0));
|
|
155
155
|
for (; t--; )
|
|
156
|
-
a +=
|
|
156
|
+
a += Y[s[t] & 63];
|
|
157
157
|
return a;
|
|
158
158
|
};
|
|
159
|
-
const
|
|
159
|
+
const J = e.object({
|
|
160
160
|
client_id: e.string().openapi({
|
|
161
161
|
description: "ID of this client."
|
|
162
162
|
}),
|
|
@@ -169,7 +169,7 @@ const Q = e.object({
|
|
|
169
169
|
global: e.boolean().default(!1).openapi({
|
|
170
170
|
description: "Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false)."
|
|
171
171
|
}),
|
|
172
|
-
client_secret: e.string().default(() =>
|
|
172
|
+
client_secret: e.string().default(() => Q()).optional().openapi({
|
|
173
173
|
description: "Client secret (which you must not make public)."
|
|
174
174
|
}),
|
|
175
175
|
app_type: e.enum([
|
|
@@ -326,11 +326,11 @@ const Q = e.object({
|
|
|
326
326
|
description: "Specifies how long, in seconds, a Pushed Authorization Request URI remains valid"
|
|
327
327
|
}),
|
|
328
328
|
token_quota: e.record(e.any()).default({}).optional()
|
|
329
|
-
}),
|
|
329
|
+
}), Z = e.object({
|
|
330
330
|
created_at: e.string(),
|
|
331
331
|
updated_at: e.string(),
|
|
332
|
-
...
|
|
333
|
-
}),
|
|
332
|
+
...J.shape
|
|
333
|
+
}), $ = e.object({
|
|
334
334
|
client_id: e.string().min(1).openapi({
|
|
335
335
|
description: "ID of the client."
|
|
336
336
|
}),
|
|
@@ -355,14 +355,14 @@ const Q = e.object({
|
|
|
355
355
|
authorization_details_types: e.array(e.string()).optional().openapi({
|
|
356
356
|
description: "Types of authorization_details allowed for this client grant. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement."
|
|
357
357
|
})
|
|
358
|
-
}),
|
|
358
|
+
}), ee = e.object({
|
|
359
359
|
id: e.string().openapi({
|
|
360
360
|
description: "ID of the client grant."
|
|
361
361
|
}),
|
|
362
|
-
|
|
362
|
+
...$.shape,
|
|
363
363
|
created_at: e.string().optional(),
|
|
364
364
|
updated_at: e.string().optional()
|
|
365
|
-
}),
|
|
365
|
+
}), lo = e.array(ee), c = e.object({
|
|
366
366
|
x: e.number(),
|
|
367
367
|
y: e.number()
|
|
368
368
|
});
|
|
@@ -371,7 +371,7 @@ const u = e.object({
|
|
|
371
371
|
id: e.string(),
|
|
372
372
|
category: e.nativeEnum(y),
|
|
373
373
|
type: e.nativeEnum(C)
|
|
374
|
-
}),
|
|
374
|
+
}), te = u.extend({
|
|
375
375
|
category: e.literal(
|
|
376
376
|
"BLOCK"
|
|
377
377
|
/* BLOCK */
|
|
@@ -383,7 +383,7 @@ const u = e.object({
|
|
|
383
383
|
config: e.object({
|
|
384
384
|
content: e.string()
|
|
385
385
|
}).passthrough()
|
|
386
|
-
}),
|
|
386
|
+
}), oe = u.extend({
|
|
387
387
|
category: e.literal(
|
|
388
388
|
"BLOCK"
|
|
389
389
|
/* BLOCK */
|
|
@@ -405,7 +405,7 @@ const u = e.object({
|
|
|
405
405
|
config: e.object({
|
|
406
406
|
text: e.string()
|
|
407
407
|
}).passthrough()
|
|
408
|
-
}),
|
|
408
|
+
}), ne = u.extend({
|
|
409
409
|
category: e.literal(
|
|
410
410
|
"FIELD"
|
|
411
411
|
/* FIELD */
|
|
@@ -419,7 +419,7 @@ const u = e.object({
|
|
|
419
419
|
config: e.object({
|
|
420
420
|
text: e.string()
|
|
421
421
|
}).passthrough()
|
|
422
|
-
}),
|
|
422
|
+
}), ie = u.extend({
|
|
423
423
|
category: e.literal(
|
|
424
424
|
"FIELD"
|
|
425
425
|
/* FIELD */
|
|
@@ -472,19 +472,19 @@ const u = e.object({
|
|
|
472
472
|
label: e.string().optional(),
|
|
473
473
|
placeholder: e.string().optional()
|
|
474
474
|
}).passthrough()
|
|
475
|
-
}),
|
|
475
|
+
}), ae = e.object({
|
|
476
476
|
id: e.string(),
|
|
477
477
|
category: e.string(),
|
|
478
478
|
type: e.string()
|
|
479
|
-
}).passthrough(),
|
|
480
|
-
ee,
|
|
479
|
+
}).passthrough(), re = e.union([
|
|
481
480
|
te,
|
|
482
481
|
oe,
|
|
483
482
|
ne,
|
|
484
|
-
ie
|
|
483
|
+
ie,
|
|
484
|
+
ae
|
|
485
485
|
]);
|
|
486
486
|
var se = /* @__PURE__ */ ((t) => (t.STEP = "STEP", t.FLOW = "FLOW", t.CONDITION = "CONDITION", t.ACTION = "ACTION", t))(se || {});
|
|
487
|
-
const
|
|
487
|
+
const le = e.object({
|
|
488
488
|
id: e.string(),
|
|
489
489
|
type: e.literal(
|
|
490
490
|
"STEP"
|
|
@@ -493,10 +493,10 @@ const re = e.object({
|
|
|
493
493
|
coordinates: c,
|
|
494
494
|
alias: e.string().optional(),
|
|
495
495
|
config: e.object({
|
|
496
|
-
components: e.array(
|
|
496
|
+
components: e.array(re),
|
|
497
497
|
next_node: e.string()
|
|
498
498
|
}).passthrough()
|
|
499
|
-
}),
|
|
499
|
+
}), ce = e.object({
|
|
500
500
|
id: e.string(),
|
|
501
501
|
type: e.literal(
|
|
502
502
|
"FLOW"
|
|
@@ -508,7 +508,7 @@ const re = e.object({
|
|
|
508
508
|
flow_id: e.string(),
|
|
509
509
|
next_node: e.string()
|
|
510
510
|
})
|
|
511
|
-
}),
|
|
511
|
+
}), pe = e.object({
|
|
512
512
|
id: e.string(),
|
|
513
513
|
type: e.literal(
|
|
514
514
|
"ACTION"
|
|
@@ -530,47 +530,47 @@ const re = e.object({
|
|
|
530
530
|
description: "The next node to navigate to after action (for non-redirect actions)"
|
|
531
531
|
})
|
|
532
532
|
}).passthrough()
|
|
533
|
-
}),
|
|
533
|
+
}), _e = e.object({
|
|
534
534
|
id: e.string(),
|
|
535
535
|
type: e.string(),
|
|
536
536
|
coordinates: c
|
|
537
|
-
}).passthrough(),
|
|
538
|
-
re,
|
|
537
|
+
}).passthrough(), de = e.union([
|
|
539
538
|
le,
|
|
540
539
|
ce,
|
|
541
|
-
pe
|
|
542
|
-
|
|
540
|
+
pe,
|
|
541
|
+
_e
|
|
542
|
+
]), ge = e.object({
|
|
543
543
|
next_node: e.string(),
|
|
544
544
|
coordinates: c
|
|
545
|
-
}).passthrough(),
|
|
545
|
+
}).passthrough(), ue = e.object({
|
|
546
546
|
resume_flow: e.boolean().optional(),
|
|
547
547
|
coordinates: c
|
|
548
|
-
}).passthrough(),
|
|
548
|
+
}).passthrough(), me = e.object({
|
|
549
549
|
id: e.string(),
|
|
550
550
|
name: e.string(),
|
|
551
551
|
languages: e.object({
|
|
552
552
|
primary: e.string()
|
|
553
553
|
}).passthrough(),
|
|
554
|
-
nodes: e.array(
|
|
555
|
-
start:
|
|
556
|
-
ending:
|
|
554
|
+
nodes: e.array(de),
|
|
555
|
+
start: ge,
|
|
556
|
+
ending: ue,
|
|
557
557
|
created_at: e.string(),
|
|
558
558
|
updated_at: e.string(),
|
|
559
559
|
links: e.object({
|
|
560
560
|
sdkSrc: e.string().optional(),
|
|
561
561
|
sdk_src: e.string().optional()
|
|
562
562
|
}).passthrough()
|
|
563
|
-
}).passthrough(),
|
|
563
|
+
}).passthrough(), co = me.omit({
|
|
564
564
|
id: !0,
|
|
565
565
|
created_at: !0,
|
|
566
566
|
updated_at: !0
|
|
567
567
|
});
|
|
568
|
-
var
|
|
569
|
-
const
|
|
568
|
+
var T = /* @__PURE__ */ ((t) => (t.TOKEN = "token", t.TOKEN_ID_TOKEN = "token id_token", t.CODE = "code", t))(T || {}), O = /* @__PURE__ */ ((t) => (t.QUERY = "query", t.FRAGMENT = "fragment", t.FORM_POST = "form_post", t.WEB_MESSAGE = "web_message", t.SAML_POST = "saml_post", t))(O || {}), N = /* @__PURE__ */ ((t) => (t.S256 = "S256", t.Plain = "plain", t))(N || {});
|
|
569
|
+
const he = e.object({
|
|
570
570
|
client_id: e.string(),
|
|
571
571
|
act_as: e.string().optional(),
|
|
572
|
-
response_type: e.nativeEnum(
|
|
573
|
-
response_mode: e.nativeEnum(
|
|
572
|
+
response_type: e.nativeEnum(T).optional(),
|
|
573
|
+
response_mode: e.nativeEnum(O).optional(),
|
|
574
574
|
redirect_uri: e.string().optional(),
|
|
575
575
|
audience: e.string().optional(),
|
|
576
576
|
organization: e.string().optional(),
|
|
@@ -584,7 +584,7 @@ const me = e.object({
|
|
|
584
584
|
ui_locales: e.string().optional(),
|
|
585
585
|
// The following fields are not available in Auth0
|
|
586
586
|
vendor_id: e.string().optional()
|
|
587
|
-
}),
|
|
587
|
+
}), po = e.object({
|
|
588
588
|
colors: e.object({
|
|
589
589
|
primary: e.string(),
|
|
590
590
|
page_background: e.object({
|
|
@@ -600,7 +600,7 @@ const me = e.object({
|
|
|
600
600
|
font: e.object({
|
|
601
601
|
url: e.string()
|
|
602
602
|
}).optional()
|
|
603
|
-
}),
|
|
603
|
+
}), be = e.object({
|
|
604
604
|
kid: e.string().optional(),
|
|
605
605
|
team_id: e.string().optional(),
|
|
606
606
|
realms: e.string().optional(),
|
|
@@ -620,12 +620,12 @@ const me = e.object({
|
|
|
620
620
|
twilio_sid: e.string().optional(),
|
|
621
621
|
twilio_token: e.string().optional(),
|
|
622
622
|
icon_url: e.string().optional()
|
|
623
|
-
}),
|
|
623
|
+
}), fe = e.object({
|
|
624
624
|
id: e.string().optional(),
|
|
625
625
|
name: e.string(),
|
|
626
626
|
display_name: e.string().optional(),
|
|
627
627
|
strategy: e.string(),
|
|
628
|
-
options:
|
|
628
|
+
options: be.default({}),
|
|
629
629
|
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
630
630
|
response_type: e.custom().optional(),
|
|
631
631
|
response_mode: e.custom().optional(),
|
|
@@ -633,11 +633,11 @@ const me = e.object({
|
|
|
633
633
|
show_as_button: e.boolean().optional(),
|
|
634
634
|
metadata: e.record(e.any()).optional(),
|
|
635
635
|
is_system: e.boolean().optional()
|
|
636
|
-
}),
|
|
636
|
+
}), Ee = e.object({
|
|
637
637
|
id: e.string(),
|
|
638
638
|
created_at: e.string().transform((t) => t === null ? "" : t),
|
|
639
639
|
updated_at: e.string().transform((t) => t === null ? "" : t)
|
|
640
|
-
}).extend(
|
|
640
|
+
}).extend(fe.shape), Se = e.object({
|
|
641
641
|
id: e.string().optional(),
|
|
642
642
|
// Basic settings
|
|
643
643
|
audience: e.string(),
|
|
@@ -761,23 +761,23 @@ const me = e.object({
|
|
|
761
761
|
// Authorization settings
|
|
762
762
|
pushed_authorization_requests_supported: e.boolean().optional(),
|
|
763
763
|
authorization_response_iss_parameter_supported: e.boolean().optional()
|
|
764
|
-
}),
|
|
764
|
+
}), Ae = e.object({
|
|
765
765
|
created_at: e.string().nullable().transform((t) => t ?? ""),
|
|
766
766
|
updated_at: e.string().nullable().transform((t) => t ?? ""),
|
|
767
|
-
...
|
|
767
|
+
...Se.shape,
|
|
768
768
|
id: e.string()
|
|
769
|
-
}),
|
|
770
|
-
...
|
|
771
|
-
tenant:
|
|
772
|
-
connections: e.array(
|
|
773
|
-
}),
|
|
769
|
+
}), _o = e.object({
|
|
770
|
+
...Z.shape,
|
|
771
|
+
tenant: Ae,
|
|
772
|
+
connections: e.array(Ee)
|
|
773
|
+
}), Ie = e.enum([
|
|
774
774
|
"password_reset",
|
|
775
775
|
"email_verification",
|
|
776
776
|
"otp",
|
|
777
777
|
"authorization_code",
|
|
778
778
|
"oauth2_state",
|
|
779
779
|
"ticket"
|
|
780
|
-
]),
|
|
780
|
+
]), Ce = e.object({
|
|
781
781
|
code_id: e.string().openapi({
|
|
782
782
|
description: "The code that will be used in for instance an email verification flow"
|
|
783
783
|
}),
|
|
@@ -787,7 +787,7 @@ const me = e.object({
|
|
|
787
787
|
connection_id: e.string().optional().openapi({
|
|
788
788
|
description: "The connection that the code is connected to"
|
|
789
789
|
}),
|
|
790
|
-
code_type:
|
|
790
|
+
code_type: Ie,
|
|
791
791
|
code_verifier: e.string().optional().openapi({
|
|
792
792
|
description: "The code verifier used in PKCE in outbound flows"
|
|
793
793
|
}),
|
|
@@ -809,10 +809,10 @@ const me = e.object({
|
|
|
809
809
|
expires_at: e.string(),
|
|
810
810
|
used_at: e.string().optional(),
|
|
811
811
|
user_id: e.string().optional()
|
|
812
|
-
}),
|
|
813
|
-
...
|
|
812
|
+
}), go = e.object({
|
|
813
|
+
...Ce.shape,
|
|
814
814
|
created_at: e.string()
|
|
815
|
-
}),
|
|
815
|
+
}), ye = e.object({
|
|
816
816
|
domain: e.string(),
|
|
817
817
|
custom_domain_id: e.string().optional(),
|
|
818
818
|
type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
@@ -826,21 +826,21 @@ const me = e.object({
|
|
|
826
826
|
"null"
|
|
827
827
|
]).optional(),
|
|
828
828
|
domain_metadata: e.record(e.string().max(255)).optional()
|
|
829
|
-
}),
|
|
829
|
+
}), Te = e.object({
|
|
830
830
|
name: e.literal("txt"),
|
|
831
831
|
record: e.string(),
|
|
832
832
|
domain: e.string()
|
|
833
833
|
}), Oe = e.object({
|
|
834
|
-
...
|
|
834
|
+
...ye.shape,
|
|
835
835
|
custom_domain_id: e.string(),
|
|
836
836
|
primary: e.boolean(),
|
|
837
837
|
status: e.enum(["disabled", "pending", "pending_verification", "ready"]),
|
|
838
838
|
origin_domain_name: e.string().optional(),
|
|
839
839
|
verification: e.object({
|
|
840
|
-
methods: e.array(
|
|
840
|
+
methods: e.array(Te)
|
|
841
841
|
}).optional(),
|
|
842
842
|
tls_policy: e.string().optional()
|
|
843
|
-
}),
|
|
843
|
+
}), uo = Oe.extend({
|
|
844
844
|
tenant_id: e.string()
|
|
845
845
|
}), f = e.object({
|
|
846
846
|
id: e.string(),
|
|
@@ -848,15 +848,15 @@ const me = e.object({
|
|
|
848
848
|
visible: e.boolean().optional().default(!0)
|
|
849
849
|
}), i = f.extend({
|
|
850
850
|
category: e.literal("BLOCK").optional()
|
|
851
|
-
}),
|
|
851
|
+
}), Ne = i.extend({
|
|
852
852
|
type: e.literal("DIVIDER"),
|
|
853
853
|
config: e.object({}).optional()
|
|
854
|
-
}),
|
|
854
|
+
}), Re = i.extend({
|
|
855
855
|
type: e.literal("HTML"),
|
|
856
856
|
config: e.object({
|
|
857
857
|
content: e.string().optional()
|
|
858
858
|
}).optional()
|
|
859
|
-
}),
|
|
859
|
+
}), De = i.extend({
|
|
860
860
|
type: e.literal("IMAGE"),
|
|
861
861
|
config: e.object({
|
|
862
862
|
src: e.string().optional(),
|
|
@@ -870,23 +870,23 @@ const me = e.object({
|
|
|
870
870
|
text: e.string().optional(),
|
|
871
871
|
target_step: e.string().optional()
|
|
872
872
|
})
|
|
873
|
-
}),
|
|
873
|
+
}), we = i.extend({
|
|
874
874
|
type: e.literal("RESEND_BUTTON"),
|
|
875
875
|
config: e.object({
|
|
876
876
|
text: e.string().optional(),
|
|
877
877
|
resend_action: e.string().optional()
|
|
878
878
|
})
|
|
879
|
-
}),
|
|
879
|
+
}), je = i.extend({
|
|
880
880
|
type: e.literal("NEXT_BUTTON"),
|
|
881
881
|
config: e.object({
|
|
882
882
|
text: e.string().optional()
|
|
883
883
|
})
|
|
884
|
-
}),
|
|
884
|
+
}), Ue = i.extend({
|
|
885
885
|
type: e.literal("PREVIOUS_BUTTON"),
|
|
886
886
|
config: e.object({
|
|
887
887
|
text: e.string().optional()
|
|
888
888
|
})
|
|
889
|
-
}),
|
|
889
|
+
}), Fe = i.extend({
|
|
890
890
|
type: e.literal("RICH_TEXT"),
|
|
891
891
|
config: e.object({
|
|
892
892
|
content: e.string().optional()
|
|
@@ -897,17 +897,17 @@ const me = e.object({
|
|
|
897
897
|
hint: e.string().min(1).max(500).optional(),
|
|
898
898
|
required: e.boolean().optional(),
|
|
899
899
|
sensitive: e.boolean().optional()
|
|
900
|
-
}),
|
|
900
|
+
}), ke = E.extend({
|
|
901
901
|
type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
|
|
902
902
|
config: e.object({
|
|
903
903
|
credential_type: e.string().optional()
|
|
904
904
|
})
|
|
905
|
-
}),
|
|
905
|
+
}), ve = E.extend({
|
|
906
906
|
type: e.literal("GMAPS_ADDRESS"),
|
|
907
907
|
config: e.object({
|
|
908
908
|
api_key: e.string().optional()
|
|
909
909
|
})
|
|
910
|
-
}),
|
|
910
|
+
}), xe = E.extend({
|
|
911
911
|
type: e.literal("RECAPTCHA"),
|
|
912
912
|
config: e.object({
|
|
913
913
|
site_key: e.string().optional()
|
|
@@ -918,12 +918,12 @@ const me = e.object({
|
|
|
918
918
|
hint: e.string().min(1).max(500).optional(),
|
|
919
919
|
required: e.boolean().optional(),
|
|
920
920
|
sensitive: e.boolean().optional()
|
|
921
|
-
}),
|
|
921
|
+
}), Pe = o.extend({
|
|
922
922
|
type: e.literal("BOOLEAN"),
|
|
923
923
|
config: e.object({
|
|
924
924
|
default_value: e.boolean().optional()
|
|
925
925
|
}).optional()
|
|
926
|
-
}),
|
|
926
|
+
}), Me = o.extend({
|
|
927
927
|
type: e.literal("CARDS"),
|
|
928
928
|
config: e.object({
|
|
929
929
|
options: e.array(
|
|
@@ -936,7 +936,7 @@ const me = e.object({
|
|
|
936
936
|
).optional(),
|
|
937
937
|
multi_select: e.boolean().optional()
|
|
938
938
|
}).optional()
|
|
939
|
-
}),
|
|
939
|
+
}), He = o.extend({
|
|
940
940
|
type: e.literal("CHOICE"),
|
|
941
941
|
config: e.object({
|
|
942
942
|
options: e.array(
|
|
@@ -947,20 +947,20 @@ const me = e.object({
|
|
|
947
947
|
).optional(),
|
|
948
948
|
display: e.enum(["radio", "checkbox"]).optional()
|
|
949
949
|
}).optional()
|
|
950
|
-
}),
|
|
950
|
+
}), Ge = o.extend({
|
|
951
951
|
type: e.literal("CUSTOM"),
|
|
952
952
|
config: e.object({
|
|
953
953
|
component: e.string().optional(),
|
|
954
954
|
props: e.record(e.any()).optional()
|
|
955
955
|
})
|
|
956
|
-
}),
|
|
956
|
+
}), Be = o.extend({
|
|
957
957
|
type: e.literal("DATE"),
|
|
958
958
|
config: e.object({
|
|
959
959
|
format: e.string().optional(),
|
|
960
960
|
min: e.string().optional(),
|
|
961
961
|
max: e.string().optional()
|
|
962
962
|
}).optional()
|
|
963
|
-
}),
|
|
963
|
+
}), Ke = o.extend({
|
|
964
964
|
type: e.literal("DROPDOWN"),
|
|
965
965
|
config: e.object({
|
|
966
966
|
options: e.array(
|
|
@@ -972,7 +972,7 @@ const me = e.object({
|
|
|
972
972
|
placeholder: e.string().optional(),
|
|
973
973
|
searchable: e.boolean().optional()
|
|
974
974
|
}).optional()
|
|
975
|
-
}),
|
|
975
|
+
}), We = o.extend({
|
|
976
976
|
type: e.literal("EMAIL"),
|
|
977
977
|
config: e.object({
|
|
978
978
|
placeholder: e.string().optional()
|
|
@@ -984,13 +984,13 @@ const me = e.object({
|
|
|
984
984
|
max_size: e.number().optional(),
|
|
985
985
|
multiple: e.boolean().optional()
|
|
986
986
|
}).optional()
|
|
987
|
-
}),
|
|
987
|
+
}), Xe = o.extend({
|
|
988
988
|
type: e.literal("LEGAL"),
|
|
989
989
|
config: e.object({
|
|
990
990
|
text: e.string(),
|
|
991
991
|
html: e.boolean().optional()
|
|
992
992
|
}).optional()
|
|
993
|
-
}),
|
|
993
|
+
}), Ve = o.extend({
|
|
994
994
|
type: e.literal("NUMBER"),
|
|
995
995
|
config: e.object({
|
|
996
996
|
placeholder: e.string().optional(),
|
|
@@ -998,7 +998,7 @@ const me = e.object({
|
|
|
998
998
|
max: e.number().optional(),
|
|
999
999
|
step: e.number().optional()
|
|
1000
1000
|
}).optional()
|
|
1001
|
-
}),
|
|
1001
|
+
}), qe = o.extend({
|
|
1002
1002
|
type: e.literal("PASSWORD"),
|
|
1003
1003
|
config: e.object({
|
|
1004
1004
|
placeholder: e.string().optional(),
|
|
@@ -1006,70 +1006,70 @@ const me = e.object({
|
|
|
1006
1006
|
show_toggle: e.boolean().optional(),
|
|
1007
1007
|
forgot_password_link: e.string().optional()
|
|
1008
1008
|
}).optional()
|
|
1009
|
-
}),
|
|
1009
|
+
}), Ye = o.extend({
|
|
1010
1010
|
type: e.literal("PAYMENT"),
|
|
1011
1011
|
config: e.object({
|
|
1012
1012
|
provider: e.string().optional(),
|
|
1013
1013
|
currency: e.string().optional()
|
|
1014
1014
|
}).optional()
|
|
1015
|
-
}),
|
|
1015
|
+
}), Qe = o.extend({
|
|
1016
1016
|
type: e.literal("SOCIAL"),
|
|
1017
1017
|
config: e.object({
|
|
1018
1018
|
providers: e.array(e.string()).optional()
|
|
1019
1019
|
}).optional()
|
|
1020
|
-
}),
|
|
1020
|
+
}), Je = o.extend({
|
|
1021
1021
|
type: e.literal("TEL"),
|
|
1022
1022
|
config: e.object({
|
|
1023
1023
|
placeholder: e.string().optional(),
|
|
1024
1024
|
default_country: e.string().optional()
|
|
1025
1025
|
}).optional()
|
|
1026
|
-
}),
|
|
1026
|
+
}), Ze = o.extend({
|
|
1027
1027
|
type: e.literal("TEXT"),
|
|
1028
1028
|
config: e.object({
|
|
1029
1029
|
placeholder: e.string().optional(),
|
|
1030
1030
|
multiline: e.boolean().optional(),
|
|
1031
1031
|
max_length: e.number().optional()
|
|
1032
1032
|
}).optional()
|
|
1033
|
-
}),
|
|
1033
|
+
}), $e = o.extend({
|
|
1034
1034
|
type: e.literal("URL"),
|
|
1035
1035
|
config: e.object({
|
|
1036
1036
|
placeholder: e.string().optional()
|
|
1037
1037
|
}).optional()
|
|
1038
|
-
}),
|
|
1039
|
-
Te,
|
|
1038
|
+
}), et = e.discriminatedUnion("type", [
|
|
1040
1039
|
Ne,
|
|
1041
1040
|
Re,
|
|
1042
|
-
Le,
|
|
1043
1041
|
De,
|
|
1042
|
+
Le,
|
|
1044
1043
|
we,
|
|
1045
1044
|
je,
|
|
1046
|
-
Ue
|
|
1047
|
-
|
|
1048
|
-
Fe,
|
|
1049
|
-
ke,
|
|
1050
|
-
ve
|
|
1045
|
+
Ue,
|
|
1046
|
+
Fe
|
|
1051
1047
|
]), tt = e.discriminatedUnion("type", [
|
|
1052
|
-
|
|
1048
|
+
ke,
|
|
1049
|
+
ve,
|
|
1050
|
+
xe
|
|
1051
|
+
]), ot = e.discriminatedUnion("type", [
|
|
1053
1052
|
Pe,
|
|
1054
1053
|
Me,
|
|
1055
1054
|
He,
|
|
1056
1055
|
Ge,
|
|
1057
1056
|
Be,
|
|
1058
1057
|
Ke,
|
|
1059
|
-
ze,
|
|
1060
1058
|
We,
|
|
1059
|
+
ze,
|
|
1061
1060
|
Xe,
|
|
1062
1061
|
Ve,
|
|
1063
1062
|
qe,
|
|
1064
1063
|
Ye,
|
|
1065
1064
|
Qe,
|
|
1066
1065
|
Je,
|
|
1067
|
-
Ze
|
|
1066
|
+
Ze,
|
|
1067
|
+
$e
|
|
1068
1068
|
]), R = e.union([
|
|
1069
|
-
$e,
|
|
1070
1069
|
et,
|
|
1071
|
-
tt
|
|
1072
|
-
|
|
1070
|
+
tt,
|
|
1071
|
+
ot
|
|
1072
|
+
]), mo = e.object({
|
|
1073
1073
|
id: e.string(),
|
|
1074
1074
|
type: e.literal("submit"),
|
|
1075
1075
|
label: e.string(),
|
|
@@ -1081,7 +1081,7 @@ const me = e.object({
|
|
|
1081
1081
|
}), _ = e.object({
|
|
1082
1082
|
x: e.number(),
|
|
1083
1083
|
y: e.number()
|
|
1084
|
-
}),
|
|
1084
|
+
}), nt = e.object({
|
|
1085
1085
|
id: e.string(),
|
|
1086
1086
|
type: e.literal("FLOW"),
|
|
1087
1087
|
coordinates: _,
|
|
@@ -1090,7 +1090,7 @@ const me = e.object({
|
|
|
1090
1090
|
flow_id: e.string().max(30),
|
|
1091
1091
|
next_node: e.string().optional()
|
|
1092
1092
|
})
|
|
1093
|
-
}),
|
|
1093
|
+
}), it = e.object({
|
|
1094
1094
|
id: e.string(),
|
|
1095
1095
|
type: e.literal("ROUTER"),
|
|
1096
1096
|
coordinates: _,
|
|
@@ -1106,7 +1106,7 @@ const me = e.object({
|
|
|
1106
1106
|
),
|
|
1107
1107
|
fallback: e.string()
|
|
1108
1108
|
})
|
|
1109
|
-
}),
|
|
1109
|
+
}), at = e.object({
|
|
1110
1110
|
id: e.string(),
|
|
1111
1111
|
type: e.literal("STEP"),
|
|
1112
1112
|
coordinates: _,
|
|
@@ -1115,10 +1115,10 @@ const me = e.object({
|
|
|
1115
1115
|
components: e.array(R),
|
|
1116
1116
|
next_node: e.string().optional()
|
|
1117
1117
|
})
|
|
1118
|
-
}),
|
|
1119
|
-
ot,
|
|
1118
|
+
}), rt = e.discriminatedUnion("type", [
|
|
1120
1119
|
nt,
|
|
1121
|
-
it
|
|
1120
|
+
it,
|
|
1121
|
+
at
|
|
1122
1122
|
]), st = e.object({
|
|
1123
1123
|
name: e.string().openapi({
|
|
1124
1124
|
description: "The name of the form"
|
|
@@ -1132,7 +1132,7 @@ const me = e.object({
|
|
|
1132
1132
|
default: e.string().optional()
|
|
1133
1133
|
}).optional(),
|
|
1134
1134
|
translations: e.record(e.string(), e.any()).optional(),
|
|
1135
|
-
nodes: e.array(
|
|
1135
|
+
nodes: e.array(rt).optional(),
|
|
1136
1136
|
start: e.object({
|
|
1137
1137
|
hidden_fields: e.array(e.object({ key: e.string(), value: e.string() })).optional(),
|
|
1138
1138
|
next_node: e.string().optional(),
|
|
@@ -1150,38 +1150,38 @@ const me = e.object({
|
|
|
1150
1150
|
style: e.object({ css: e.string().optional() }).optional()
|
|
1151
1151
|
}).openapi({
|
|
1152
1152
|
description: "Schema for flow-based forms (matches Auth0 Forms structure)"
|
|
1153
|
-
}),
|
|
1154
|
-
...
|
|
1153
|
+
}), ho = e.object({
|
|
1154
|
+
...r.shape,
|
|
1155
1155
|
...st.shape,
|
|
1156
1156
|
id: e.string()
|
|
1157
|
-
}),
|
|
1157
|
+
}), lt = e.object({
|
|
1158
1158
|
id: e.number().optional(),
|
|
1159
1159
|
text: e.string(),
|
|
1160
1160
|
type: e.enum(["info", "error", "success", "warning"])
|
|
1161
|
-
}),
|
|
1161
|
+
}), ct = e.object({
|
|
1162
1162
|
id: e.string().optional(),
|
|
1163
1163
|
text: e.string(),
|
|
1164
1164
|
href: e.string(),
|
|
1165
1165
|
linkText: e.string().optional()
|
|
1166
|
-
}),
|
|
1166
|
+
}), bo = e.object({
|
|
1167
1167
|
action: e.string(),
|
|
1168
1168
|
method: e.enum(["POST", "GET"]),
|
|
1169
1169
|
title: e.string().optional(),
|
|
1170
1170
|
description: e.string().optional(),
|
|
1171
1171
|
components: e.array(R),
|
|
1172
|
-
messages: e.array(
|
|
1173
|
-
links: e.array(
|
|
1172
|
+
messages: e.array(lt).optional(),
|
|
1173
|
+
links: e.array(ct).optional()
|
|
1174
1174
|
});
|
|
1175
|
-
function
|
|
1175
|
+
function fo(t) {
|
|
1176
1176
|
return t.category === "BLOCK";
|
|
1177
1177
|
}
|
|
1178
|
-
function
|
|
1178
|
+
function Eo(t) {
|
|
1179
1179
|
return t.category === "WIDGET";
|
|
1180
1180
|
}
|
|
1181
|
-
function
|
|
1181
|
+
function So(t) {
|
|
1182
1182
|
return t.category === "FIELD";
|
|
1183
1183
|
}
|
|
1184
|
-
const
|
|
1184
|
+
const D = e.enum([
|
|
1185
1185
|
"pre-user-registration",
|
|
1186
1186
|
"post-user-registration",
|
|
1187
1187
|
"post-user-login",
|
|
@@ -1189,7 +1189,7 @@ const L = e.enum([
|
|
|
1189
1189
|
"pre-user-deletion",
|
|
1190
1190
|
"post-user-deletion"
|
|
1191
1191
|
// Potentially other triggers specific to webhooks in the future
|
|
1192
|
-
]),
|
|
1192
|
+
]), L = e.enum([
|
|
1193
1193
|
"pre-user-registration",
|
|
1194
1194
|
"post-user-registration",
|
|
1195
1195
|
"post-user-login",
|
|
@@ -1201,37 +1201,37 @@ const L = e.enum([
|
|
|
1201
1201
|
synchronous: e.boolean().default(!1),
|
|
1202
1202
|
priority: e.number().optional(),
|
|
1203
1203
|
hook_id: e.string().optional()
|
|
1204
|
-
},
|
|
1204
|
+
}, pt = e.object({
|
|
1205
1205
|
...m,
|
|
1206
|
-
trigger_id:
|
|
1206
|
+
trigger_id: D,
|
|
1207
1207
|
url: e.string()
|
|
1208
|
-
}),
|
|
1208
|
+
}), _t = e.object({
|
|
1209
1209
|
...m,
|
|
1210
|
-
trigger_id:
|
|
1210
|
+
trigger_id: L,
|
|
1211
1211
|
form_id: e.string()
|
|
1212
|
-
}),
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
]),
|
|
1212
|
+
}), Ao = e.union([
|
|
1213
|
+
pt,
|
|
1214
|
+
_t
|
|
1215
|
+
]), dt = e.object({
|
|
1216
1216
|
...m,
|
|
1217
|
-
trigger_id:
|
|
1218
|
-
...
|
|
1217
|
+
trigger_id: D,
|
|
1218
|
+
...r.shape,
|
|
1219
1219
|
hook_id: e.string(),
|
|
1220
1220
|
url: e.string()
|
|
1221
|
-
}),
|
|
1221
|
+
}), gt = e.object({
|
|
1222
1222
|
...m,
|
|
1223
|
-
trigger_id:
|
|
1224
|
-
...
|
|
1223
|
+
trigger_id: L,
|
|
1224
|
+
...r.shape,
|
|
1225
1225
|
hook_id: e.string(),
|
|
1226
1226
|
form_id: e.string()
|
|
1227
|
-
}),
|
|
1227
|
+
}), Io = e.union([dt, gt]), ut = e.object({
|
|
1228
1228
|
name: e.string().optional()
|
|
1229
|
-
}), ut = e.object({
|
|
1230
|
-
email: e.string().optional()
|
|
1231
1229
|
}), mt = e.object({
|
|
1230
|
+
email: e.string().optional()
|
|
1231
|
+
}), ht = e.object({
|
|
1232
1232
|
organization_id: e.string().max(50),
|
|
1233
|
-
inviter:
|
|
1234
|
-
invitee:
|
|
1233
|
+
inviter: ut,
|
|
1234
|
+
invitee: mt,
|
|
1235
1235
|
invitation_url: e.string().url(),
|
|
1236
1236
|
client_id: e.string(),
|
|
1237
1237
|
connection_id: e.string().optional(),
|
|
@@ -1240,13 +1240,13 @@ const L = e.enum([
|
|
|
1240
1240
|
ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
|
|
1241
1241
|
roles: e.array(e.string()).default([]).optional(),
|
|
1242
1242
|
send_invitation_email: e.boolean().default(!0).optional()
|
|
1243
|
-
}),
|
|
1243
|
+
}), Co = e.object({
|
|
1244
1244
|
id: e.string(),
|
|
1245
1245
|
organization_id: e.string().max(50),
|
|
1246
1246
|
created_at: e.string().datetime(),
|
|
1247
1247
|
expires_at: e.string().datetime(),
|
|
1248
1248
|
ticket_id: e.string().optional()
|
|
1249
|
-
}).extend(
|
|
1249
|
+
}).extend(ht.shape), bt = e.object({
|
|
1250
1250
|
alg: e.enum([
|
|
1251
1251
|
"RS256",
|
|
1252
1252
|
"RS384",
|
|
@@ -1265,9 +1265,9 @@ const L = e.enum([
|
|
|
1265
1265
|
x5t: e.string().optional(),
|
|
1266
1266
|
x5c: e.array(e.string()).optional(),
|
|
1267
1267
|
use: e.enum(["sig", "enc"]).optional()
|
|
1268
|
-
}),
|
|
1269
|
-
keys: e.array(
|
|
1270
|
-
}),
|
|
1268
|
+
}), yo = e.object({
|
|
1269
|
+
keys: e.array(bt)
|
|
1270
|
+
}), To = e.object({
|
|
1271
1271
|
issuer: e.string(),
|
|
1272
1272
|
authorization_endpoint: e.string(),
|
|
1273
1273
|
token_endpoint: e.string(),
|
|
@@ -1288,27 +1288,37 @@ const L = e.enum([
|
|
|
1288
1288
|
request_uri_parameter_supported: e.boolean(),
|
|
1289
1289
|
request_parameter_supported: e.boolean(),
|
|
1290
1290
|
token_endpoint_auth_signing_alg_values_supported: e.array(e.string())
|
|
1291
|
-
})
|
|
1291
|
+
});
|
|
1292
|
+
var w = /* @__PURE__ */ ((t) => (t.PENDING = "pending", t.AUTHENTICATED = "authenticated", t.AWAITING_EMAIL_VERIFICATION = "awaiting_email_verification", t.AWAITING_HOOK = "awaiting_hook", t.AWAITING_CONTINUATION = "awaiting_continuation", t.COMPLETED = "completed", t.FAILED = "failed", t.EXPIRED = "expired", t))(w || {});
|
|
1293
|
+
const ft = e.nativeEnum(w), Et = e.object({
|
|
1292
1294
|
csrf_token: e.string(),
|
|
1293
1295
|
auth0Client: e.string().optional(),
|
|
1294
|
-
authParams:
|
|
1296
|
+
authParams: he,
|
|
1295
1297
|
expires_at: e.string(),
|
|
1296
1298
|
deleted_at: e.string().optional(),
|
|
1297
1299
|
ip: e.string().optional(),
|
|
1298
1300
|
useragent: e.string().optional(),
|
|
1299
1301
|
session_id: e.string().optional(),
|
|
1300
1302
|
authorization_url: e.string().optional(),
|
|
1301
|
-
|
|
1303
|
+
state: ft.optional().default(
|
|
1304
|
+
"pending"
|
|
1305
|
+
/* PENDING */
|
|
1306
|
+
),
|
|
1307
|
+
state_data: e.string().optional(),
|
|
1308
|
+
// JSON: { hookId?, continuationScope?, continuationReturnUrl? }
|
|
1309
|
+
failure_reason: e.string().optional(),
|
|
1310
|
+
user_id: e.string().optional()
|
|
1311
|
+
// Set once user is authenticated
|
|
1302
1312
|
}).openapi({
|
|
1303
1313
|
description: "This represents a login sesion"
|
|
1304
|
-
}),
|
|
1305
|
-
...
|
|
1314
|
+
}), Oo = e.object({
|
|
1315
|
+
...Et.shape,
|
|
1306
1316
|
id: e.string().openapi({
|
|
1307
1317
|
description: "This is is used as the state in the universal login"
|
|
1308
1318
|
}),
|
|
1309
1319
|
created_at: e.string(),
|
|
1310
1320
|
updated_at: e.string()
|
|
1311
|
-
}),
|
|
1321
|
+
}), St = {
|
|
1312
1322
|
// Network & System
|
|
1313
1323
|
ACLS_SUMMARY: "acls_summary",
|
|
1314
1324
|
ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
|
|
@@ -1357,6 +1367,8 @@ const L = e.enum([
|
|
|
1357
1367
|
FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN: "fertft",
|
|
1358
1368
|
FAILED_HOOK: "fh",
|
|
1359
1369
|
// Custom AuthHero-specific
|
|
1370
|
+
FAILED_IMPERSONATION: "fimp",
|
|
1371
|
+
// Custom AuthHero-specific
|
|
1360
1372
|
FAILED_INVITE_ACCEPT: "fi",
|
|
1361
1373
|
FAILED_LOGOUT: "flo",
|
|
1362
1374
|
FLOWS_EXECUTION_COMPLETED: "flows_execution_completed",
|
|
@@ -1454,6 +1466,8 @@ const L = e.enum([
|
|
|
1454
1466
|
SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN: "sepkrcft",
|
|
1455
1467
|
SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN: "sercft",
|
|
1456
1468
|
SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN: "sertft",
|
|
1469
|
+
SUCCESS_IMPERSONATION: "simp",
|
|
1470
|
+
// Custom AuthHero-specific
|
|
1457
1471
|
SUCCESSFULLY_ACCEPTED_USER_INVITE: "si",
|
|
1458
1472
|
BREACHED_PASSWORD_ON_SIGNUP: "signup_pwd_leak",
|
|
1459
1473
|
SUCCESS_LOGOUT: "slo",
|
|
@@ -1475,24 +1489,24 @@ const L = e.enum([
|
|
|
1475
1489
|
WARNING_DURING_LOGIN: "w",
|
|
1476
1490
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
1477
1491
|
WARNING_USER_MANAGEMENT: "wum"
|
|
1478
|
-
},
|
|
1479
|
-
(t) => Object.values(
|
|
1492
|
+
}, At = e.string().refine(
|
|
1493
|
+
(t) => Object.values(St).includes(t),
|
|
1480
1494
|
{ message: "Invalid log type" }
|
|
1481
|
-
),
|
|
1495
|
+
), It = e.object({
|
|
1482
1496
|
name: e.string(),
|
|
1483
1497
|
version: e.string(),
|
|
1484
1498
|
env: e.object({
|
|
1485
1499
|
node: e.string().optional()
|
|
1486
1500
|
}).optional()
|
|
1487
|
-
}),
|
|
1501
|
+
}), Ct = e.object({
|
|
1488
1502
|
country_code: e.string().length(2),
|
|
1489
1503
|
city_name: e.string(),
|
|
1490
1504
|
latitude: e.string(),
|
|
1491
1505
|
longitude: e.string(),
|
|
1492
1506
|
time_zone: e.string(),
|
|
1493
1507
|
continent_code: e.string()
|
|
1494
|
-
}),
|
|
1495
|
-
type:
|
|
1508
|
+
}), yt = e.object({
|
|
1509
|
+
type: At,
|
|
1496
1510
|
date: e.string(),
|
|
1497
1511
|
description: e.string().optional(),
|
|
1498
1512
|
ip: e.string().optional(),
|
|
@@ -1511,30 +1525,30 @@ const L = e.enum([
|
|
|
1511
1525
|
strategy: e.string().optional(),
|
|
1512
1526
|
strategy_type: e.string().optional(),
|
|
1513
1527
|
hostname: e.string().optional(),
|
|
1514
|
-
auth0_client:
|
|
1528
|
+
auth0_client: It.optional(),
|
|
1515
1529
|
log_id: e.string().optional(),
|
|
1516
|
-
location_info:
|
|
1517
|
-
}),
|
|
1518
|
-
...
|
|
1530
|
+
location_info: Ct.optional()
|
|
1531
|
+
}), No = e.object({
|
|
1532
|
+
...yt.shape,
|
|
1519
1533
|
log_id: e.string()
|
|
1520
|
-
}),
|
|
1534
|
+
}), Tt = e.object({
|
|
1521
1535
|
id: e.string().optional(),
|
|
1522
1536
|
user_id: e.string(),
|
|
1523
1537
|
password: e.string(),
|
|
1524
1538
|
algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
|
|
1525
1539
|
is_current: e.boolean().default(!0)
|
|
1526
|
-
}),
|
|
1540
|
+
}), Ro = Tt.extend({
|
|
1527
1541
|
id: e.string(),
|
|
1528
1542
|
created_at: e.string(),
|
|
1529
1543
|
updated_at: e.string()
|
|
1530
|
-
}),
|
|
1544
|
+
}), j = e.object({
|
|
1531
1545
|
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
1532
1546
|
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
1533
1547
|
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
1534
1548
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
1535
1549
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
1536
1550
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
1537
|
-
}),
|
|
1551
|
+
}), Ot = e.object({
|
|
1538
1552
|
id: e.string(),
|
|
1539
1553
|
revoked_at: e.string().optional(),
|
|
1540
1554
|
used_at: e.string().optional(),
|
|
@@ -1542,17 +1556,17 @@ const L = e.enum([
|
|
|
1542
1556
|
expires_at: e.string().optional(),
|
|
1543
1557
|
login_session_id: e.string(),
|
|
1544
1558
|
idle_expires_at: e.string().optional(),
|
|
1545
|
-
device:
|
|
1559
|
+
device: j.describe(
|
|
1546
1560
|
"Metadata related to the device used in the session"
|
|
1547
1561
|
),
|
|
1548
1562
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
1549
|
-
}),
|
|
1563
|
+
}), Do = e.object({
|
|
1550
1564
|
created_at: e.string(),
|
|
1551
1565
|
updated_at: e.string(),
|
|
1552
1566
|
authenticated_at: e.string(),
|
|
1553
1567
|
last_interaction_at: e.string(),
|
|
1554
|
-
...
|
|
1555
|
-
}),
|
|
1568
|
+
...Ot.shape
|
|
1569
|
+
}), Lo = e.object({
|
|
1556
1570
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
1557
1571
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
1558
1572
|
fingerprint: e.string().openapi({ description: "The cert fingerprint" }),
|
|
@@ -1578,8 +1592,8 @@ const L = e.enum([
|
|
|
1578
1592
|
description: "The type of the signing key"
|
|
1579
1593
|
})
|
|
1580
1594
|
});
|
|
1581
|
-
var
|
|
1582
|
-
const
|
|
1595
|
+
var Nt = /* @__PURE__ */ ((t) => (t.RefreshToken = "refresh_token", t.AuthorizationCode = "authorization_code", t.ClientCredential = "client_credentials", t.Passwordless = "passwordless", t.Password = "password", t.OTP = "http://auth0.com/oauth/grant-type/passwordless/otp", t))(Nt || {});
|
|
1596
|
+
const wo = e.object({
|
|
1583
1597
|
access_token: e.string(),
|
|
1584
1598
|
id_token: e.string().optional(),
|
|
1585
1599
|
scope: e.string().optional(),
|
|
@@ -1592,7 +1606,7 @@ e.object({
|
|
|
1592
1606
|
code: e.string(),
|
|
1593
1607
|
state: e.string().optional()
|
|
1594
1608
|
});
|
|
1595
|
-
const
|
|
1609
|
+
const Rt = e.object({
|
|
1596
1610
|
button_border_radius: e.number(),
|
|
1597
1611
|
button_border_weight: e.number(),
|
|
1598
1612
|
buttons_style: e.enum(["pill", "rounded", "sharp"]),
|
|
@@ -1602,7 +1616,7 @@ const Tt = e.object({
|
|
|
1602
1616
|
show_widget_shadow: e.boolean(),
|
|
1603
1617
|
widget_border_weight: e.number(),
|
|
1604
1618
|
widget_corner_radius: e.number()
|
|
1605
|
-
}),
|
|
1619
|
+
}), Dt = e.object({
|
|
1606
1620
|
base_focus_color: e.string(),
|
|
1607
1621
|
base_hover_color: e.string(),
|
|
1608
1622
|
body_text: e.string(),
|
|
@@ -1625,7 +1639,7 @@ const Tt = e.object({
|
|
|
1625
1639
|
}), l = e.object({
|
|
1626
1640
|
bold: e.boolean(),
|
|
1627
1641
|
size: e.number()
|
|
1628
|
-
}),
|
|
1642
|
+
}), Lt = e.object({
|
|
1629
1643
|
body_text: l,
|
|
1630
1644
|
buttons_text: l,
|
|
1631
1645
|
font_url: e.string(),
|
|
@@ -1635,31 +1649,31 @@ const Tt = e.object({
|
|
|
1635
1649
|
reference_text_size: e.number(),
|
|
1636
1650
|
subtitle: l,
|
|
1637
1651
|
title: l
|
|
1638
|
-
}),
|
|
1652
|
+
}), wt = e.object({
|
|
1639
1653
|
background_color: e.string(),
|
|
1640
1654
|
background_image_url: e.string(),
|
|
1641
1655
|
page_layout: e.enum(["center", "left", "right"])
|
|
1642
|
-
}),
|
|
1656
|
+
}), jt = e.object({
|
|
1643
1657
|
header_text_alignment: e.enum(["center", "left", "right"]),
|
|
1644
1658
|
logo_height: e.number(),
|
|
1645
1659
|
logo_position: e.enum(["center", "left", "none", "right"]),
|
|
1646
1660
|
logo_url: e.string(),
|
|
1647
1661
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
1648
|
-
}),
|
|
1649
|
-
borders:
|
|
1650
|
-
colors:
|
|
1662
|
+
}), Ut = e.object({
|
|
1663
|
+
borders: Rt,
|
|
1664
|
+
colors: Dt,
|
|
1651
1665
|
displayName: e.string(),
|
|
1652
|
-
fonts:
|
|
1653
|
-
page_background:
|
|
1654
|
-
widget:
|
|
1655
|
-
}),
|
|
1666
|
+
fonts: Lt,
|
|
1667
|
+
page_background: wt,
|
|
1668
|
+
widget: jt
|
|
1669
|
+
}), jo = Ut.extend({
|
|
1656
1670
|
themeId: e.string()
|
|
1657
|
-
}),
|
|
1671
|
+
}), Uo = e.object({
|
|
1658
1672
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
1659
1673
|
identifier_first: e.boolean().default(!0),
|
|
1660
1674
|
password_first: e.boolean().default(!1),
|
|
1661
1675
|
webauthn_platform_first_factor: e.boolean()
|
|
1662
|
-
}),
|
|
1676
|
+
}), Fo = e.object({
|
|
1663
1677
|
name: e.string(),
|
|
1664
1678
|
enabled: e.boolean().optional().default(!0),
|
|
1665
1679
|
default_from_address: e.string().optional(),
|
|
@@ -1689,7 +1703,7 @@ const Tt = e.object({
|
|
|
1689
1703
|
})
|
|
1690
1704
|
]),
|
|
1691
1705
|
settings: e.object({}).optional()
|
|
1692
|
-
}),
|
|
1706
|
+
}), Ft = e.object({
|
|
1693
1707
|
// The actual refresh token value (primary key).
|
|
1694
1708
|
id: e.string(),
|
|
1695
1709
|
// Link to the session record
|
|
@@ -1702,7 +1716,7 @@ const Tt = e.object({
|
|
|
1702
1716
|
idle_expires_at: e.string().optional(),
|
|
1703
1717
|
// When the token was last used.
|
|
1704
1718
|
last_exchanged_at: e.string().optional(),
|
|
1705
|
-
device:
|
|
1719
|
+
device: j,
|
|
1706
1720
|
resource_servers: e.array(
|
|
1707
1721
|
e.object({
|
|
1708
1722
|
audience: e.string(),
|
|
@@ -1710,21 +1724,21 @@ const Tt = e.object({
|
|
|
1710
1724
|
})
|
|
1711
1725
|
),
|
|
1712
1726
|
rotating: e.boolean()
|
|
1713
|
-
}),
|
|
1727
|
+
}), ko = e.object({
|
|
1714
1728
|
// When the refresh token record was created.
|
|
1715
1729
|
created_at: e.string(),
|
|
1716
1730
|
// Spread in the rest of the refresh token properties.
|
|
1717
|
-
...
|
|
1718
|
-
}),
|
|
1731
|
+
...Ft.shape
|
|
1732
|
+
}), vo = e.object({
|
|
1719
1733
|
to: e.string(),
|
|
1720
1734
|
message: e.string()
|
|
1721
|
-
}),
|
|
1735
|
+
}), xo = e.object({
|
|
1722
1736
|
name: e.string(),
|
|
1723
1737
|
options: e.object({})
|
|
1724
|
-
}),
|
|
1738
|
+
}), kt = e.object({
|
|
1725
1739
|
value: e.string(),
|
|
1726
1740
|
description: e.string().optional()
|
|
1727
|
-
}),
|
|
1741
|
+
}), vt = e.object({
|
|
1728
1742
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
1729
1743
|
enforce_policies: e.boolean().optional(),
|
|
1730
1744
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -1734,11 +1748,11 @@ const Tt = e.object({
|
|
|
1734
1748
|
mtls: e.object({
|
|
1735
1749
|
bound_access_tokens: e.boolean().optional()
|
|
1736
1750
|
}).optional()
|
|
1737
|
-
}),
|
|
1751
|
+
}), xt = e.object({
|
|
1738
1752
|
id: e.string().optional(),
|
|
1739
1753
|
name: e.string(),
|
|
1740
1754
|
identifier: e.string(),
|
|
1741
|
-
scopes: e.array(
|
|
1755
|
+
scopes: e.array(kt).optional(),
|
|
1742
1756
|
signing_alg: e.string().optional(),
|
|
1743
1757
|
signing_secret: e.string().optional(),
|
|
1744
1758
|
token_lifetime: e.number().optional(),
|
|
@@ -1746,29 +1760,29 @@ const Tt = e.object({
|
|
|
1746
1760
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
1747
1761
|
allow_offline_access: e.boolean().optional(),
|
|
1748
1762
|
verificationKey: e.string().optional(),
|
|
1749
|
-
options:
|
|
1763
|
+
options: vt.optional(),
|
|
1750
1764
|
is_system: e.boolean().optional()
|
|
1751
|
-
}),
|
|
1752
|
-
...
|
|
1765
|
+
}), Pt = e.object({
|
|
1766
|
+
...xt.shape,
|
|
1753
1767
|
created_at: e.string().optional(),
|
|
1754
1768
|
updated_at: e.string().optional()
|
|
1755
|
-
}),
|
|
1769
|
+
}), Po = e.array(Pt), Mt = e.object({
|
|
1756
1770
|
role_id: e.string(),
|
|
1757
1771
|
resource_server_identifier: e.string(),
|
|
1758
1772
|
permission_name: e.string()
|
|
1759
|
-
}),
|
|
1760
|
-
...
|
|
1773
|
+
}), Ht = e.object({
|
|
1774
|
+
...Mt.shape,
|
|
1761
1775
|
created_at: e.string()
|
|
1762
|
-
}),
|
|
1776
|
+
}), Mo = e.array(Ht), Gt = e.object({
|
|
1763
1777
|
user_id: e.string(),
|
|
1764
1778
|
resource_server_identifier: e.string(),
|
|
1765
1779
|
permission_name: e.string(),
|
|
1766
1780
|
organization_id: e.string().optional()
|
|
1767
|
-
}),
|
|
1768
|
-
...
|
|
1781
|
+
}), Bt = e.object({
|
|
1782
|
+
...Gt.shape,
|
|
1769
1783
|
tenant_id: e.string(),
|
|
1770
1784
|
created_at: e.string().optional()
|
|
1771
|
-
}),
|
|
1785
|
+
}), Ho = e.array(Bt), Kt = e.object({
|
|
1772
1786
|
user_id: e.string(),
|
|
1773
1787
|
resource_server_identifier: e.string(),
|
|
1774
1788
|
resource_server_name: e.string(),
|
|
@@ -1776,17 +1790,17 @@ const Tt = e.object({
|
|
|
1776
1790
|
description: e.string().nullable().optional(),
|
|
1777
1791
|
created_at: e.string().optional(),
|
|
1778
1792
|
organization_id: e.string().optional()
|
|
1779
|
-
}),
|
|
1780
|
-
|
|
1781
|
-
),
|
|
1793
|
+
}), Go = e.array(
|
|
1794
|
+
Kt
|
|
1795
|
+
), Wt = e.object({
|
|
1782
1796
|
user_id: e.string(),
|
|
1783
1797
|
role_id: e.string(),
|
|
1784
1798
|
organization_id: e.string().optional()
|
|
1785
|
-
}),
|
|
1786
|
-
...
|
|
1799
|
+
}), zt = e.object({
|
|
1800
|
+
...Wt.shape,
|
|
1787
1801
|
tenant_id: e.string(),
|
|
1788
1802
|
created_at: e.string().optional()
|
|
1789
|
-
}),
|
|
1803
|
+
}), Bo = e.array(zt), Xt = e.object({
|
|
1790
1804
|
id: e.string().optional().openapi({
|
|
1791
1805
|
description: "The unique identifier of the role. If not provided, one will be generated."
|
|
1792
1806
|
}),
|
|
@@ -1797,13 +1811,13 @@ const Tt = e.object({
|
|
|
1797
1811
|
description: "The description of the role"
|
|
1798
1812
|
}),
|
|
1799
1813
|
is_system: e.boolean().optional()
|
|
1800
|
-
}),
|
|
1814
|
+
}), Vt = Xt.extend({
|
|
1801
1815
|
id: e.string().openapi({
|
|
1802
1816
|
description: "The unique identifier of the role"
|
|
1803
1817
|
}),
|
|
1804
1818
|
created_at: e.string().optional(),
|
|
1805
1819
|
updated_at: e.string().optional()
|
|
1806
|
-
}),
|
|
1820
|
+
}), Ko = e.array(Vt), qt = e.object({
|
|
1807
1821
|
logo_url: e.string().optional().openapi({
|
|
1808
1822
|
description: "URL of the organization's logo"
|
|
1809
1823
|
}),
|
|
@@ -1815,7 +1829,7 @@ const Tt = e.object({
|
|
|
1815
1829
|
description: "Page background color in hex format (e.g., #FFFFFF)"
|
|
1816
1830
|
})
|
|
1817
1831
|
}).optional()
|
|
1818
|
-
}).optional(),
|
|
1832
|
+
}).optional(), Yt = e.object({
|
|
1819
1833
|
connection_id: e.string().openapi({
|
|
1820
1834
|
description: "ID of the connection"
|
|
1821
1835
|
}),
|
|
@@ -1828,7 +1842,7 @@ const Tt = e.object({
|
|
|
1828
1842
|
is_signup_enabled: e.boolean().default(!0).openapi({
|
|
1829
1843
|
description: "Whether signup is enabled for this connection"
|
|
1830
1844
|
})
|
|
1831
|
-
}),
|
|
1845
|
+
}), Qt = e.object({
|
|
1832
1846
|
client_credentials: e.object({
|
|
1833
1847
|
enforce: e.boolean().default(!1).openapi({
|
|
1834
1848
|
description: "Whether to enforce token quota limits"
|
|
@@ -1840,7 +1854,7 @@ const Tt = e.object({
|
|
|
1840
1854
|
description: "Maximum tokens per hour (0 = unlimited)"
|
|
1841
1855
|
})
|
|
1842
1856
|
}).optional()
|
|
1843
|
-
}).optional(),
|
|
1857
|
+
}).optional(), Jt = e.object({
|
|
1844
1858
|
id: e.string().optional(),
|
|
1845
1859
|
name: e.string().min(1).regex(/^[a-z0-9_-]+$/, {
|
|
1846
1860
|
message: "Organization name must be lowercase and can only contain letters, numbers, hyphens, and underscores"
|
|
@@ -1850,34 +1864,34 @@ const Tt = e.object({
|
|
|
1850
1864
|
display_name: e.string().optional().openapi({
|
|
1851
1865
|
description: "The display name of the organization"
|
|
1852
1866
|
}),
|
|
1853
|
-
branding:
|
|
1867
|
+
branding: qt,
|
|
1854
1868
|
metadata: e.record(e.any()).default({}).optional().openapi({
|
|
1855
1869
|
description: "Custom metadata for the organization"
|
|
1856
1870
|
}),
|
|
1857
|
-
enabled_connections: e.array(
|
|
1871
|
+
enabled_connections: e.array(Yt).default([]).optional().openapi({
|
|
1858
1872
|
description: "List of enabled connections for the organization"
|
|
1859
1873
|
}),
|
|
1860
|
-
token_quota:
|
|
1861
|
-
}),
|
|
1862
|
-
...
|
|
1863
|
-
...
|
|
1874
|
+
token_quota: Qt
|
|
1875
|
+
}), Wo = e.object({
|
|
1876
|
+
...Jt.shape,
|
|
1877
|
+
...r.shape,
|
|
1864
1878
|
id: e.string(),
|
|
1865
1879
|
// Override name to be lenient when reading from database (to support existing uppercase names)
|
|
1866
1880
|
name: e.string().min(1).openapi({
|
|
1867
1881
|
description: "The name of the organization"
|
|
1868
1882
|
})
|
|
1869
|
-
}),
|
|
1883
|
+
}), Zt = e.object({
|
|
1870
1884
|
user_id: e.string().openapi({
|
|
1871
1885
|
description: "ID of the user"
|
|
1872
1886
|
}),
|
|
1873
1887
|
organization_id: e.string().openapi({
|
|
1874
1888
|
description: "ID of the organization"
|
|
1875
1889
|
})
|
|
1876
|
-
}), Ko = e.object({
|
|
1877
|
-
...Qt.shape,
|
|
1878
|
-
...s.shape,
|
|
1879
|
-
id: e.string()
|
|
1880
1890
|
}), zo = e.object({
|
|
1891
|
+
...Zt.shape,
|
|
1892
|
+
...r.shape,
|
|
1893
|
+
id: e.string()
|
|
1894
|
+
}), Xo = e.object({
|
|
1881
1895
|
// Session settings
|
|
1882
1896
|
idle_session_lifetime: e.number().optional(),
|
|
1883
1897
|
session_lifetime: e.number().optional(),
|
|
@@ -1946,7 +1960,7 @@ const Tt = e.object({
|
|
|
1946
1960
|
sessions: e.object({
|
|
1947
1961
|
oidc_logout_prompt_enabled: e.boolean().optional()
|
|
1948
1962
|
}).optional()
|
|
1949
|
-
}),
|
|
1963
|
+
}), Vo = e.object({
|
|
1950
1964
|
date: e.string().openapi({
|
|
1951
1965
|
description: "Date these events occurred in ISO 8601 format",
|
|
1952
1966
|
example: "2025-12-19"
|
|
@@ -1971,33 +1985,33 @@ const Tt = e.object({
|
|
|
1971
1985
|
description: "Approximate date and time the first event occurred in ISO 8601 format",
|
|
1972
1986
|
example: "2025-12-19T00:00:00.000Z"
|
|
1973
1987
|
})
|
|
1974
|
-
}),
|
|
1988
|
+
}), qo = e.number().openapi({
|
|
1975
1989
|
description: "Number of active users in the last 30 days",
|
|
1976
1990
|
example: 1234
|
|
1977
1991
|
});
|
|
1978
|
-
function
|
|
1979
|
-
const [a,
|
|
1980
|
-
if (!a || !
|
|
1992
|
+
function Yo(t) {
|
|
1993
|
+
const [a, s] = t.split("|");
|
|
1994
|
+
if (!a || !s)
|
|
1981
1995
|
throw new Error(`Invalid user_id: ${t}`);
|
|
1982
|
-
return { connection: a, id:
|
|
1996
|
+
return { connection: a, id: s };
|
|
1983
1997
|
}
|
|
1984
|
-
function
|
|
1998
|
+
function Qo(t) {
|
|
1985
1999
|
const {
|
|
1986
2000
|
primary: a,
|
|
1987
|
-
secondaries:
|
|
1988
|
-
syncMethods:
|
|
1989
|
-
} = t,
|
|
2001
|
+
secondaries: s,
|
|
2002
|
+
syncMethods: U = ["create", "update", "remove", "delete", "set"]
|
|
2003
|
+
} = t, F = {
|
|
1990
2004
|
get(d, n) {
|
|
1991
2005
|
if (typeof n == "symbol")
|
|
1992
2006
|
return d[n];
|
|
1993
2007
|
const g = d[n];
|
|
1994
|
-
return typeof g != "function" ? g :
|
|
1995
|
-
const
|
|
1996
|
-
for (const p of
|
|
2008
|
+
return typeof g != "function" ? g : U.includes(n) ? async (...h) => {
|
|
2009
|
+
const k = await g.apply(d, h), b = [];
|
|
2010
|
+
for (const p of s) {
|
|
1997
2011
|
const S = p.adapter[n];
|
|
1998
2012
|
if (typeof S != "function")
|
|
1999
2013
|
continue;
|
|
2000
|
-
const
|
|
2014
|
+
const v = (async () => {
|
|
2001
2015
|
try {
|
|
2002
2016
|
await S.apply(p.adapter, h);
|
|
2003
2017
|
} catch (A) {
|
|
@@ -2006,169 +2020,171 @@ function qo(t) {
|
|
|
2006
2020
|
`Passthrough adapter: secondary write failed for ${n}:`,
|
|
2007
2021
|
A
|
|
2008
2022
|
);
|
|
2009
|
-
} catch (
|
|
2023
|
+
} catch (x) {
|
|
2010
2024
|
console.error(
|
|
2011
2025
|
`Passthrough adapter: onError handler threw for ${n}:`,
|
|
2012
|
-
|
|
2026
|
+
x
|
|
2013
2027
|
);
|
|
2014
2028
|
}
|
|
2015
2029
|
}
|
|
2016
2030
|
})();
|
|
2017
|
-
p.blocking && b.push(
|
|
2031
|
+
p.blocking && b.push(v);
|
|
2018
2032
|
}
|
|
2019
|
-
return b.length > 0 && await Promise.all(b),
|
|
2033
|
+
return b.length > 0 && await Promise.all(b), k;
|
|
2020
2034
|
} : g.bind(d);
|
|
2021
2035
|
}
|
|
2022
2036
|
};
|
|
2023
|
-
return new Proxy(a,
|
|
2037
|
+
return new Proxy(a, F);
|
|
2024
2038
|
}
|
|
2025
|
-
function
|
|
2039
|
+
function Jo(t) {
|
|
2026
2040
|
return t;
|
|
2027
2041
|
}
|
|
2028
2042
|
export {
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2043
|
+
to as Auth0ActionEnum,
|
|
2044
|
+
It as Auth0Client,
|
|
2045
|
+
O as AuthorizationResponseMode,
|
|
2046
|
+
T as AuthorizationResponseType,
|
|
2033
2047
|
N as CodeChallengeMethod,
|
|
2034
2048
|
y as ComponentCategory,
|
|
2035
2049
|
C as ComponentType,
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2050
|
+
oo as EmailActionEnum,
|
|
2051
|
+
eo as FlowActionTypeEnum,
|
|
2052
|
+
Nt as GrantType,
|
|
2053
|
+
Ct as LocationInfo,
|
|
2054
|
+
St as LogTypes,
|
|
2055
|
+
w as LoginSessionState,
|
|
2041
2056
|
se as NodeType,
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2057
|
+
G as RedirectTargetEnum,
|
|
2058
|
+
pe as actionNodeSchema,
|
|
2059
|
+
qo as activeUsersResponseSchema,
|
|
2060
|
+
co as auth0FlowInsertSchema,
|
|
2061
|
+
me as auth0FlowSchema,
|
|
2062
|
+
io as auth0QuerySchema,
|
|
2063
|
+
M as auth0UpdateUserActionSchema,
|
|
2064
|
+
ro as auth0UserResponseSchema,
|
|
2065
|
+
he as authParamsSchema,
|
|
2051
2066
|
I as baseUserSchema,
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2067
|
+
et as blockComponentSchema,
|
|
2068
|
+
Rt as bordersSchema,
|
|
2069
|
+
po as brandingSchema,
|
|
2070
|
+
oe as buttonComponentSchema,
|
|
2071
|
+
$ as clientGrantInsertSchema,
|
|
2072
|
+
lo as clientGrantListSchema,
|
|
2073
|
+
ee as clientGrantSchema,
|
|
2074
|
+
J as clientInsertSchema,
|
|
2075
|
+
Z as clientSchema,
|
|
2076
|
+
Ce as codeInsertSchema,
|
|
2077
|
+
go as codeSchema,
|
|
2078
|
+
Ie as codeTypeSchema,
|
|
2079
|
+
Dt as colorsSchema,
|
|
2080
|
+
lt as componentMessageSchema,
|
|
2081
|
+
re as componentSchema,
|
|
2082
|
+
fe as connectionInsertSchema,
|
|
2083
|
+
be as connectionOptionsSchema,
|
|
2084
|
+
Ee as connectionSchema,
|
|
2070
2085
|
c as coordinatesSchema,
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2086
|
+
Qo as createPassthroughAdapter,
|
|
2087
|
+
Jo as createWriteOnlyAdapter,
|
|
2088
|
+
ye as customDomainInsertSchema,
|
|
2074
2089
|
Oe as customDomainSchema,
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2090
|
+
uo as customDomainWithTenantIdSchema,
|
|
2091
|
+
Vo as dailyStatsSchema,
|
|
2092
|
+
Fo as emailProviderSchema,
|
|
2093
|
+
P as emailVerificationRulesSchema,
|
|
2094
|
+
H as emailVerifyActionSchema,
|
|
2095
|
+
ue as endingSchema,
|
|
2096
|
+
ot as fieldComponentSchema,
|
|
2097
|
+
K as flowActionStepSchema,
|
|
2098
|
+
W as flowInsertSchema,
|
|
2099
|
+
no as flowSchema,
|
|
2100
|
+
ie as flowsFieldComponentSchema,
|
|
2101
|
+
ce as flowsFlowNodeSchema,
|
|
2102
|
+
le as flowsStepNodeSchema,
|
|
2088
2103
|
l as fontDetailsSchema,
|
|
2089
|
-
|
|
2090
|
-
|
|
2104
|
+
Lt as fontsSchema,
|
|
2105
|
+
mo as formControlSchema,
|
|
2091
2106
|
st as formInsertSchema,
|
|
2092
2107
|
R as formNodeComponentDefinition,
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
Yt as
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2108
|
+
rt as formNodeSchema,
|
|
2109
|
+
ho as formSchema,
|
|
2110
|
+
ae as genericComponentSchema,
|
|
2111
|
+
_e as genericNodeSchema,
|
|
2112
|
+
Ao as hookInsertSchema,
|
|
2113
|
+
Io as hookSchema,
|
|
2114
|
+
X as identitySchema,
|
|
2115
|
+
ht as inviteInsertSchema,
|
|
2116
|
+
Co as inviteSchema,
|
|
2117
|
+
mt as inviteeSchema,
|
|
2118
|
+
ut as inviterSchema,
|
|
2119
|
+
fo as isBlockComponent,
|
|
2120
|
+
So as isFieldComponent,
|
|
2121
|
+
Eo as isWidgetComponent,
|
|
2122
|
+
yo as jwksKeySchema,
|
|
2123
|
+
bt as jwksSchema,
|
|
2124
|
+
_o as legacyClientSchema,
|
|
2125
|
+
ne as legalComponentSchema,
|
|
2126
|
+
yt as logInsertSchema,
|
|
2127
|
+
No as logSchema,
|
|
2128
|
+
Et as loginSessionInsertSchema,
|
|
2129
|
+
Oo as loginSessionSchema,
|
|
2130
|
+
ft as loginSessionStateSchema,
|
|
2131
|
+
de as nodeSchema,
|
|
2132
|
+
To as openIDConfigurationSchema,
|
|
2133
|
+
qt as organizationBrandingSchema,
|
|
2134
|
+
Yt as organizationEnabledConnectionSchema,
|
|
2135
|
+
Jt as organizationInsertSchema,
|
|
2136
|
+
Wo as organizationSchema,
|
|
2137
|
+
Qt as organizationTokenQuotaSchema,
|
|
2138
|
+
wt as pageBackgroundSchema,
|
|
2139
|
+
Yo as parseUserId,
|
|
2140
|
+
Tt as passwordInsertSchema,
|
|
2141
|
+
Ro as passwordSchema,
|
|
2126
2142
|
z as profileDataSchema,
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2143
|
+
Uo as promptSettingSchema,
|
|
2144
|
+
B as redirectActionSchema,
|
|
2145
|
+
Ft as refreshTokenInsertSchema,
|
|
2146
|
+
ko as refreshTokenSchema,
|
|
2147
|
+
xt as resourceServerInsertSchema,
|
|
2148
|
+
Po as resourceServerListSchema,
|
|
2149
|
+
vt as resourceServerOptionsSchema,
|
|
2150
|
+
Pt as resourceServerSchema,
|
|
2151
|
+
kt as resourceServerScopeSchema,
|
|
2152
|
+
te as richTextComponentSchema,
|
|
2153
|
+
Xt as roleInsertSchema,
|
|
2154
|
+
Ko as roleListSchema,
|
|
2155
|
+
Mt as rolePermissionInsertSchema,
|
|
2156
|
+
Mo as rolePermissionListSchema,
|
|
2157
|
+
Ht as rolePermissionSchema,
|
|
2158
|
+
Vt as roleSchema,
|
|
2159
|
+
ct as screenLinkSchema,
|
|
2160
|
+
Ot as sessionInsertSchema,
|
|
2161
|
+
Do as sessionSchema,
|
|
2162
|
+
Lo as signingKeySchema,
|
|
2163
|
+
xo as smsProviderSchema,
|
|
2164
|
+
vo as smsSendParamsSchema,
|
|
2165
|
+
ge as startSchema,
|
|
2166
|
+
Se as tenantInsertSchema,
|
|
2167
|
+
Ae as tenantSchema,
|
|
2168
|
+
Xo as tenantSettingsSchema,
|
|
2169
|
+
Ut as themeInsertSchema,
|
|
2170
|
+
jo as themeSchema,
|
|
2171
|
+
wo as tokenResponseSchema,
|
|
2172
|
+
ao as totalsSchema,
|
|
2173
|
+
bo as uiScreenSchema,
|
|
2174
|
+
V as userInsertSchema,
|
|
2175
|
+
Zt as userOrganizationInsertSchema,
|
|
2176
|
+
zo as userOrganizationSchema,
|
|
2177
|
+
Gt as userPermissionInsertSchema,
|
|
2178
|
+
Ho as userPermissionListSchema,
|
|
2179
|
+
Bt as userPermissionSchema,
|
|
2180
|
+
Go as userPermissionWithDetailsListSchema,
|
|
2181
|
+
Kt as userPermissionWithDetailsSchema,
|
|
2182
|
+
so as userResponseSchema,
|
|
2183
|
+
Wt as userRoleInsertSchema,
|
|
2184
|
+
Bo as userRoleListSchema,
|
|
2185
|
+
zt as userRoleSchema,
|
|
2186
|
+
q as userSchema,
|
|
2187
|
+
Te as verificationMethodsSchema,
|
|
2188
|
+
tt as widgetComponentSchema,
|
|
2189
|
+
jt as widgetSchema
|
|
2174
2190
|
};
|