@authhero/adapter-interfaces 0.112.0 → 0.113.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 +18949 -1749
- package/dist/adapter-interfaces.mjs +706 -504
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { z as e } from "@hono/zod-openapi";
|
|
2
|
-
const
|
|
2
|
+
const s = e.object({
|
|
3
3
|
created_at: e.string(),
|
|
4
4
|
updated_at: e.string()
|
|
5
|
-
}),
|
|
5
|
+
}), Zt = e.enum(["AUTH0", "EMAIL", "REDIRECT"]), $t = e.enum([
|
|
6
6
|
"CREATE_USER",
|
|
7
7
|
"GET_USER",
|
|
8
8
|
"UPDATE_USER",
|
|
9
9
|
"SEND_REQUEST",
|
|
10
10
|
"SEND_EMAIL"
|
|
11
|
-
]),
|
|
11
|
+
]), eo = e.enum(["VERIFY_EMAIL"]), x = 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
|
+
}), P = 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 i = e.object({
|
|
|
27
27
|
user_id: e.string(),
|
|
28
28
|
changes: e.record(e.string(), e.any())
|
|
29
29
|
})
|
|
30
|
-
}),
|
|
30
|
+
}), M = 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 i = e.object({
|
|
|
36
36
|
mask_output: e.boolean().optional(),
|
|
37
37
|
params: e.object({
|
|
38
38
|
email: e.string(),
|
|
39
|
-
rules:
|
|
39
|
+
rules: x.optional()
|
|
40
40
|
})
|
|
41
|
-
}),
|
|
41
|
+
}), H = e.enum(["change-email", "account", "custom"]), G = 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 i = 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: H.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
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
]),
|
|
56
|
+
}), B = e.union([
|
|
57
|
+
P,
|
|
58
|
+
M,
|
|
59
|
+
G
|
|
60
|
+
]), K = 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(B).optional().default([]).openapi({
|
|
66
66
|
description: "The list of actions to execute in sequence"
|
|
67
67
|
})
|
|
68
|
-
}),
|
|
69
|
-
...
|
|
68
|
+
}), to = K.extend({
|
|
69
|
+
...s.shape,
|
|
70
70
|
id: e.string().openapi({
|
|
71
71
|
description: "Unique identifier for the flow",
|
|
72
72
|
example: "af_12tMpdJ3iek7svMyZkSh5M"
|
|
73
73
|
})
|
|
74
|
-
}),
|
|
74
|
+
}), oo = 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,11 +87,11 @@ const i = 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
|
+
}), no = e.object({
|
|
91
91
|
start: e.number(),
|
|
92
92
|
limit: e.number(),
|
|
93
93
|
length: e.number()
|
|
94
|
-
}),
|
|
94
|
+
}), W = e.object({
|
|
95
95
|
email: e.string().optional(),
|
|
96
96
|
email_verified: e.boolean().optional(),
|
|
97
97
|
name: e.string().optional(),
|
|
@@ -100,7 +100,7 @@ const i = e.object({
|
|
|
100
100
|
phone_number: e.string().optional(),
|
|
101
101
|
phone_verified: e.boolean().optional(),
|
|
102
102
|
family_name: e.string().optional()
|
|
103
|
-
}).catchall(e.any()),
|
|
103
|
+
}).catchall(e.any()), z = e.object({
|
|
104
104
|
connection: e.string(),
|
|
105
105
|
user_id: e.string(),
|
|
106
106
|
provider: e.string(),
|
|
@@ -108,8 +108,8 @@ const i = e.object({
|
|
|
108
108
|
access_token: e.string().optional(),
|
|
109
109
|
access_token_secret: e.string().optional(),
|
|
110
110
|
refresh_token: e.string().optional(),
|
|
111
|
-
profileData:
|
|
112
|
-
}),
|
|
111
|
+
profileData: W.optional()
|
|
112
|
+
}), C = e.object({
|
|
113
113
|
email: e.string().optional().transform((t) => t && t.toLowerCase()),
|
|
114
114
|
username: e.string().optional(),
|
|
115
115
|
phone_number: e.string().optional(),
|
|
@@ -124,7 +124,7 @@ const i = e.object({
|
|
|
124
124
|
user_id: e.string().optional(),
|
|
125
125
|
app_metadata: e.any().default({}).optional(),
|
|
126
126
|
user_metadata: e.any().default({}).optional()
|
|
127
|
-
}),
|
|
127
|
+
}), X = C.extend({
|
|
128
128
|
email_verified: e.boolean().default(!1),
|
|
129
129
|
verify_email: e.boolean().optional(),
|
|
130
130
|
last_ip: e.string().optional(),
|
|
@@ -133,29 +133,29 @@ const i = e.object({
|
|
|
133
133
|
provider: e.string().optional(),
|
|
134
134
|
connection: e.string(),
|
|
135
135
|
is_social: e.boolean().optional()
|
|
136
|
-
}),
|
|
137
|
-
...
|
|
138
|
-
...
|
|
136
|
+
}), V = e.object({
|
|
137
|
+
...X.shape,
|
|
138
|
+
...s.shape,
|
|
139
139
|
user_id: e.string(),
|
|
140
140
|
provider: e.string(),
|
|
141
141
|
is_social: e.boolean(),
|
|
142
142
|
email: e.string().optional(),
|
|
143
143
|
login_count: e.number().default(0),
|
|
144
|
-
identities: e.array(
|
|
145
|
-
}),
|
|
144
|
+
identities: e.array(z).optional()
|
|
145
|
+
}), io = V, ao = C.extend({
|
|
146
146
|
login_count: e.number(),
|
|
147
147
|
multifactor: e.array(e.string()).optional(),
|
|
148
148
|
last_ip: e.string().optional(),
|
|
149
149
|
last_login: e.string().optional(),
|
|
150
150
|
user_id: e.string()
|
|
151
|
-
}).catchall(e.any()),
|
|
152
|
-
let
|
|
153
|
-
let
|
|
151
|
+
}).catchall(e.any()), q = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
152
|
+
let Y = (t = 21) => {
|
|
153
|
+
let a = "", r = crypto.getRandomValues(new Uint8Array(t |= 0));
|
|
154
154
|
for (; t--; )
|
|
155
|
-
|
|
156
|
-
return
|
|
155
|
+
a += q[r[t] & 63];
|
|
156
|
+
return a;
|
|
157
157
|
};
|
|
158
|
-
const
|
|
158
|
+
const Q = e.object({
|
|
159
159
|
client_id: e.string().openapi({
|
|
160
160
|
description: "ID of this client."
|
|
161
161
|
}),
|
|
@@ -168,7 +168,7 @@ const V = e.object({
|
|
|
168
168
|
global: e.boolean().default(!1).openapi({
|
|
169
169
|
description: "Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false)."
|
|
170
170
|
}),
|
|
171
|
-
client_secret: e.string().default(() =>
|
|
171
|
+
client_secret: e.string().default(() => Y()).optional().openapi({
|
|
172
172
|
description: "Client secret (which you must not make public)."
|
|
173
173
|
}),
|
|
174
174
|
app_type: e.enum([
|
|
@@ -325,11 +325,11 @@ const V = e.object({
|
|
|
325
325
|
description: "Specifies how long, in seconds, a Pushed Authorization Request URI remains valid"
|
|
326
326
|
}),
|
|
327
327
|
token_quota: e.record(e.any()).default({}).optional()
|
|
328
|
-
}),
|
|
328
|
+
}), J = e.object({
|
|
329
329
|
created_at: e.string(),
|
|
330
330
|
updated_at: e.string(),
|
|
331
|
-
...
|
|
332
|
-
}),
|
|
331
|
+
...Q.shape
|
|
332
|
+
}), Z = e.object({
|
|
333
333
|
client_id: e.string().min(1).openapi({
|
|
334
334
|
description: "ID of the client."
|
|
335
335
|
}),
|
|
@@ -354,23 +354,23 @@ const V = e.object({
|
|
|
354
354
|
authorization_details_types: e.array(e.string()).optional().openapi({
|
|
355
355
|
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."
|
|
356
356
|
})
|
|
357
|
-
}),
|
|
357
|
+
}), $ = e.object({
|
|
358
358
|
id: e.string().openapi({
|
|
359
359
|
description: "ID of the client grant."
|
|
360
360
|
}),
|
|
361
|
-
...
|
|
361
|
+
...Z.shape,
|
|
362
362
|
created_at: e.string().optional(),
|
|
363
363
|
updated_at: e.string().optional()
|
|
364
|
-
}),
|
|
364
|
+
}), so = e.array($), c = e.object({
|
|
365
365
|
x: e.number(),
|
|
366
366
|
y: e.number()
|
|
367
367
|
});
|
|
368
|
-
var
|
|
369
|
-
const
|
|
368
|
+
var I = /* @__PURE__ */ ((t) => (t.RICH_TEXT = "RICH_TEXT", t.NEXT_BUTTON = "NEXT_BUTTON", t.BACK_BUTTON = "BACK_BUTTON", t.SUBMIT_BUTTON = "SUBMIT_BUTTON", t.DIVIDER = "DIVIDER", t.TEXT = "TEXT", t.EMAIL = "EMAIL", t.PASSWORD = "PASSWORD", t.NUMBER = "NUMBER", t.PHONE = "PHONE", t.DATE = "DATE", t.CHECKBOX = "CHECKBOX", t.RADIO = "RADIO", t.SELECT = "SELECT", t.HIDDEN = "HIDDEN", t.LEGAL = "LEGAL", t))(I || {}), y = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.FIELD = "FIELD", t))(y || {});
|
|
369
|
+
const u = e.object({
|
|
370
370
|
id: e.string(),
|
|
371
|
-
category: e.nativeEnum(
|
|
372
|
-
type: e.nativeEnum(
|
|
373
|
-
}),
|
|
371
|
+
category: e.nativeEnum(y),
|
|
372
|
+
type: e.nativeEnum(I)
|
|
373
|
+
}), ee = u.extend({
|
|
374
374
|
category: e.literal(
|
|
375
375
|
"BLOCK"
|
|
376
376
|
/* BLOCK */
|
|
@@ -382,7 +382,7 @@ const d = e.object({
|
|
|
382
382
|
config: e.object({
|
|
383
383
|
content: e.string()
|
|
384
384
|
}).passthrough()
|
|
385
|
-
}),
|
|
385
|
+
}), te = u.extend({
|
|
386
386
|
category: e.literal(
|
|
387
387
|
"BLOCK"
|
|
388
388
|
/* BLOCK */
|
|
@@ -404,7 +404,7 @@ const d = e.object({
|
|
|
404
404
|
config: e.object({
|
|
405
405
|
text: e.string()
|
|
406
406
|
}).passthrough()
|
|
407
|
-
}),
|
|
407
|
+
}), oe = u.extend({
|
|
408
408
|
category: e.literal(
|
|
409
409
|
"FIELD"
|
|
410
410
|
/* FIELD */
|
|
@@ -418,7 +418,7 @@ const d = e.object({
|
|
|
418
418
|
config: e.object({
|
|
419
419
|
text: e.string()
|
|
420
420
|
}).passthrough()
|
|
421
|
-
}),
|
|
421
|
+
}), ne = u.extend({
|
|
422
422
|
category: e.literal(
|
|
423
423
|
"FIELD"
|
|
424
424
|
/* FIELD */
|
|
@@ -471,49 +471,49 @@ const d = e.object({
|
|
|
471
471
|
label: e.string().optional(),
|
|
472
472
|
placeholder: e.string().optional()
|
|
473
473
|
}).passthrough()
|
|
474
|
-
}),
|
|
474
|
+
}), ie = e.object({
|
|
475
475
|
id: e.string(),
|
|
476
476
|
category: e.string(),
|
|
477
477
|
type: e.string()
|
|
478
|
-
}).passthrough(),
|
|
479
|
-
J,
|
|
480
|
-
Z,
|
|
481
|
-
$,
|
|
478
|
+
}).passthrough(), ae = e.union([
|
|
482
479
|
ee,
|
|
483
|
-
te
|
|
480
|
+
te,
|
|
481
|
+
oe,
|
|
482
|
+
ne,
|
|
483
|
+
ie
|
|
484
484
|
]);
|
|
485
|
-
var
|
|
486
|
-
const
|
|
485
|
+
var se = /* @__PURE__ */ ((t) => (t.STEP = "STEP", t.FLOW = "FLOW", t.CONDITION = "CONDITION", t.ACTION = "ACTION", t))(se || {});
|
|
486
|
+
const re = e.object({
|
|
487
487
|
id: e.string(),
|
|
488
488
|
type: e.literal(
|
|
489
489
|
"STEP"
|
|
490
490
|
/* STEP */
|
|
491
491
|
),
|
|
492
|
-
coordinates:
|
|
492
|
+
coordinates: c,
|
|
493
493
|
alias: e.string().optional(),
|
|
494
494
|
config: e.object({
|
|
495
|
-
components: e.array(
|
|
495
|
+
components: e.array(ae),
|
|
496
496
|
next_node: e.string()
|
|
497
497
|
}).passthrough()
|
|
498
|
-
}),
|
|
498
|
+
}), le = e.object({
|
|
499
499
|
id: e.string(),
|
|
500
500
|
type: e.literal(
|
|
501
501
|
"FLOW"
|
|
502
502
|
/* FLOW */
|
|
503
503
|
),
|
|
504
|
-
coordinates:
|
|
504
|
+
coordinates: c,
|
|
505
505
|
alias: e.string().optional(),
|
|
506
506
|
config: e.object({
|
|
507
507
|
flow_id: e.string(),
|
|
508
508
|
next_node: e.string()
|
|
509
509
|
})
|
|
510
|
-
}),
|
|
510
|
+
}), ce = e.object({
|
|
511
511
|
id: e.string(),
|
|
512
512
|
type: e.literal(
|
|
513
513
|
"ACTION"
|
|
514
514
|
/* ACTION */
|
|
515
515
|
),
|
|
516
|
-
coordinates:
|
|
516
|
+
coordinates: c,
|
|
517
517
|
alias: e.string().optional(),
|
|
518
518
|
config: e.object({
|
|
519
519
|
action_type: e.enum(["REDIRECT"]).openapi({
|
|
@@ -529,47 +529,47 @@ const ie = e.object({
|
|
|
529
529
|
description: "The next node to navigate to after action (for non-redirect actions)"
|
|
530
530
|
})
|
|
531
531
|
}).passthrough()
|
|
532
|
-
}),
|
|
532
|
+
}), pe = e.object({
|
|
533
533
|
id: e.string(),
|
|
534
534
|
type: e.string(),
|
|
535
|
-
coordinates:
|
|
536
|
-
}).passthrough(),
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
]),
|
|
535
|
+
coordinates: c
|
|
536
|
+
}).passthrough(), _e = e.union([
|
|
537
|
+
re,
|
|
538
|
+
le,
|
|
539
|
+
ce,
|
|
540
|
+
pe
|
|
541
|
+
]), de = e.object({
|
|
542
542
|
next_node: e.string(),
|
|
543
|
-
coordinates:
|
|
544
|
-
}).passthrough(),
|
|
543
|
+
coordinates: c
|
|
544
|
+
}).passthrough(), ge = e.object({
|
|
545
545
|
resume_flow: e.boolean().optional(),
|
|
546
|
-
coordinates:
|
|
547
|
-
}).passthrough(),
|
|
546
|
+
coordinates: c
|
|
547
|
+
}).passthrough(), ue = e.object({
|
|
548
548
|
id: e.string(),
|
|
549
549
|
name: e.string(),
|
|
550
550
|
languages: e.object({
|
|
551
551
|
primary: e.string()
|
|
552
552
|
}).passthrough(),
|
|
553
|
-
nodes: e.array(
|
|
554
|
-
start:
|
|
555
|
-
ending:
|
|
553
|
+
nodes: e.array(_e),
|
|
554
|
+
start: de,
|
|
555
|
+
ending: ge,
|
|
556
556
|
created_at: e.string(),
|
|
557
557
|
updated_at: e.string(),
|
|
558
558
|
links: e.object({
|
|
559
559
|
sdkSrc: e.string().optional(),
|
|
560
560
|
sdk_src: e.string().optional()
|
|
561
561
|
}).passthrough()
|
|
562
|
-
}).passthrough(),
|
|
562
|
+
}).passthrough(), ro = ue.omit({
|
|
563
563
|
id: !0,
|
|
564
564
|
created_at: !0,
|
|
565
565
|
updated_at: !0
|
|
566
566
|
});
|
|
567
|
-
var
|
|
568
|
-
const
|
|
567
|
+
var O = /* @__PURE__ */ ((t) => (t.TOKEN = "token", t.TOKEN_ID_TOKEN = "token id_token", t.CODE = "code", t))(O || {}), T = /* @__PURE__ */ ((t) => (t.QUERY = "query", t.FRAGMENT = "fragment", t.FORM_POST = "form_post", t.WEB_MESSAGE = "web_message", t.SAML_POST = "saml_post", t))(T || {}), N = /* @__PURE__ */ ((t) => (t.S256 = "S256", t.Plain = "plain", t))(N || {});
|
|
568
|
+
const me = e.object({
|
|
569
569
|
client_id: e.string(),
|
|
570
570
|
act_as: e.string().optional(),
|
|
571
|
-
response_type: e.nativeEnum(
|
|
572
|
-
response_mode: e.nativeEnum(
|
|
571
|
+
response_type: e.nativeEnum(O).optional(),
|
|
572
|
+
response_mode: e.nativeEnum(T).optional(),
|
|
573
573
|
redirect_uri: e.string().optional(),
|
|
574
574
|
audience: e.string().optional(),
|
|
575
575
|
organization: e.string().optional(),
|
|
@@ -577,13 +577,13 @@ const de = e.object({
|
|
|
577
577
|
nonce: e.string().optional(),
|
|
578
578
|
scope: e.string().optional(),
|
|
579
579
|
prompt: e.string().optional(),
|
|
580
|
-
code_challenge_method: e.nativeEnum(
|
|
580
|
+
code_challenge_method: e.nativeEnum(N).optional(),
|
|
581
581
|
code_challenge: e.string().optional(),
|
|
582
582
|
username: e.string().optional(),
|
|
583
583
|
ui_locales: e.string().optional(),
|
|
584
584
|
// The following fields are not available in Auth0
|
|
585
585
|
vendor_id: e.string().optional()
|
|
586
|
-
}),
|
|
586
|
+
}), lo = e.object({
|
|
587
587
|
colors: e.object({
|
|
588
588
|
primary: e.string(),
|
|
589
589
|
page_background: e.object({
|
|
@@ -599,7 +599,7 @@ const de = e.object({
|
|
|
599
599
|
font: e.object({
|
|
600
600
|
url: e.string()
|
|
601
601
|
}).optional()
|
|
602
|
-
}),
|
|
602
|
+
}), he = e.object({
|
|
603
603
|
kid: e.string().optional(),
|
|
604
604
|
team_id: e.string().optional(),
|
|
605
605
|
realms: e.string().optional(),
|
|
@@ -619,12 +619,12 @@ const de = e.object({
|
|
|
619
619
|
twilio_sid: e.string().optional(),
|
|
620
620
|
twilio_token: e.string().optional(),
|
|
621
621
|
icon_url: e.string().optional()
|
|
622
|
-
}),
|
|
622
|
+
}), be = e.object({
|
|
623
623
|
id: e.string().optional(),
|
|
624
624
|
name: e.string(),
|
|
625
625
|
display_name: e.string().optional(),
|
|
626
626
|
strategy: e.string(),
|
|
627
|
-
options:
|
|
627
|
+
options: he.default({}),
|
|
628
628
|
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
629
629
|
response_type: e.custom().optional(),
|
|
630
630
|
response_mode: e.custom().optional(),
|
|
@@ -632,11 +632,11 @@ const de = e.object({
|
|
|
632
632
|
show_as_button: e.boolean().optional(),
|
|
633
633
|
metadata: e.record(e.any()).optional(),
|
|
634
634
|
is_system: e.boolean().optional()
|
|
635
|
-
}),
|
|
635
|
+
}), fe = e.object({
|
|
636
636
|
id: e.string(),
|
|
637
637
|
created_at: e.string().transform((t) => t === null ? "" : t),
|
|
638
638
|
updated_at: e.string().transform((t) => t === null ? "" : t)
|
|
639
|
-
}).extend(
|
|
639
|
+
}).extend(be.shape), Ee = e.object({
|
|
640
640
|
id: e.string().optional(),
|
|
641
641
|
// Basic settings
|
|
642
642
|
audience: e.string(),
|
|
@@ -756,23 +756,23 @@ const de = e.object({
|
|
|
756
756
|
// Authorization settings
|
|
757
757
|
pushed_authorization_requests_supported: e.boolean().optional(),
|
|
758
758
|
authorization_response_iss_parameter_supported: e.boolean().optional()
|
|
759
|
-
}),
|
|
759
|
+
}), Se = e.object({
|
|
760
760
|
created_at: e.string().nullable().transform((t) => t ?? ""),
|
|
761
761
|
updated_at: e.string().nullable().transform((t) => t ?? ""),
|
|
762
|
-
...
|
|
762
|
+
...Ee.shape,
|
|
763
763
|
id: e.string()
|
|
764
|
-
}),
|
|
765
|
-
...
|
|
766
|
-
tenant:
|
|
767
|
-
connections: e.array(
|
|
768
|
-
}),
|
|
764
|
+
}), co = e.object({
|
|
765
|
+
...J.shape,
|
|
766
|
+
tenant: Se,
|
|
767
|
+
connections: e.array(fe)
|
|
768
|
+
}), Ae = e.enum([
|
|
769
769
|
"password_reset",
|
|
770
770
|
"email_verification",
|
|
771
771
|
"otp",
|
|
772
772
|
"authorization_code",
|
|
773
773
|
"oauth2_state",
|
|
774
774
|
"ticket"
|
|
775
|
-
]),
|
|
775
|
+
]), Ce = e.object({
|
|
776
776
|
code_id: e.string().openapi({
|
|
777
777
|
description: "The code that will be used in for instance an email verification flow"
|
|
778
778
|
}),
|
|
@@ -782,7 +782,7 @@ const de = e.object({
|
|
|
782
782
|
connection_id: e.string().optional().openapi({
|
|
783
783
|
description: "The connection that the code is connected to"
|
|
784
784
|
}),
|
|
785
|
-
code_type:
|
|
785
|
+
code_type: Ae,
|
|
786
786
|
code_verifier: e.string().optional().openapi({
|
|
787
787
|
description: "The code verifier used in PKCE in outbound flows"
|
|
788
788
|
}),
|
|
@@ -804,10 +804,10 @@ const de = e.object({
|
|
|
804
804
|
expires_at: e.string(),
|
|
805
805
|
used_at: e.string().optional(),
|
|
806
806
|
user_id: e.string().optional()
|
|
807
|
-
}),
|
|
808
|
-
...
|
|
807
|
+
}), po = e.object({
|
|
808
|
+
...Ce.shape,
|
|
809
809
|
created_at: e.string()
|
|
810
|
-
}),
|
|
810
|
+
}), Ie = e.object({
|
|
811
811
|
domain: e.string(),
|
|
812
812
|
custom_domain_id: e.string().optional(),
|
|
813
813
|
type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
@@ -821,23 +821,249 @@ const de = e.object({
|
|
|
821
821
|
"null"
|
|
822
822
|
]).optional(),
|
|
823
823
|
domain_metadata: e.record(e.string().max(255)).optional()
|
|
824
|
-
}),
|
|
824
|
+
}), ye = e.object({
|
|
825
825
|
name: e.literal("txt"),
|
|
826
826
|
record: e.string(),
|
|
827
827
|
domain: e.string()
|
|
828
|
-
}),
|
|
829
|
-
...
|
|
828
|
+
}), Oe = e.object({
|
|
829
|
+
...Ie.shape,
|
|
830
830
|
custom_domain_id: e.string(),
|
|
831
831
|
primary: e.boolean(),
|
|
832
832
|
status: e.enum(["disabled", "pending", "pending_verification", "ready"]),
|
|
833
833
|
origin_domain_name: e.string().optional(),
|
|
834
834
|
verification: e.object({
|
|
835
|
-
methods: e.array(
|
|
835
|
+
methods: e.array(ye)
|
|
836
836
|
}).optional(),
|
|
837
837
|
tls_policy: e.string().optional()
|
|
838
|
-
}),
|
|
838
|
+
}), _o = Oe.extend({
|
|
839
839
|
tenant_id: e.string()
|
|
840
|
-
}),
|
|
840
|
+
}), f = e.object({
|
|
841
|
+
id: e.string(),
|
|
842
|
+
order: e.number().optional(),
|
|
843
|
+
visible: e.boolean().optional().default(!0)
|
|
844
|
+
}), i = f.extend({
|
|
845
|
+
category: e.literal("BLOCK").optional()
|
|
846
|
+
}), Te = i.extend({
|
|
847
|
+
type: e.literal("DIVIDER"),
|
|
848
|
+
config: e.object({}).optional()
|
|
849
|
+
}), Ne = i.extend({
|
|
850
|
+
type: e.literal("HTML"),
|
|
851
|
+
config: e.object({
|
|
852
|
+
content: e.string().optional()
|
|
853
|
+
}).optional()
|
|
854
|
+
}), Re = i.extend({
|
|
855
|
+
type: e.literal("IMAGE"),
|
|
856
|
+
config: e.object({
|
|
857
|
+
src: e.string().optional(),
|
|
858
|
+
alt: e.string().optional(),
|
|
859
|
+
width: e.number().optional(),
|
|
860
|
+
height: e.number().optional()
|
|
861
|
+
}).optional()
|
|
862
|
+
}), Le = i.extend({
|
|
863
|
+
type: e.literal("JUMP_BUTTON"),
|
|
864
|
+
config: e.object({
|
|
865
|
+
text: e.string().optional(),
|
|
866
|
+
target_step: e.string().optional()
|
|
867
|
+
})
|
|
868
|
+
}), De = i.extend({
|
|
869
|
+
type: e.literal("RESEND_BUTTON"),
|
|
870
|
+
config: e.object({
|
|
871
|
+
text: e.string().optional(),
|
|
872
|
+
resend_action: e.string().optional()
|
|
873
|
+
})
|
|
874
|
+
}), je = i.extend({
|
|
875
|
+
type: e.literal("NEXT_BUTTON"),
|
|
876
|
+
config: e.object({
|
|
877
|
+
text: e.string().optional()
|
|
878
|
+
})
|
|
879
|
+
}), we = i.extend({
|
|
880
|
+
type: e.literal("PREVIOUS_BUTTON"),
|
|
881
|
+
config: e.object({
|
|
882
|
+
text: e.string().optional()
|
|
883
|
+
})
|
|
884
|
+
}), Ue = i.extend({
|
|
885
|
+
type: e.literal("RICH_TEXT"),
|
|
886
|
+
config: e.object({
|
|
887
|
+
content: e.string().optional()
|
|
888
|
+
}).optional()
|
|
889
|
+
}), E = f.extend({
|
|
890
|
+
category: e.literal("WIDGET").optional(),
|
|
891
|
+
label: e.string().min(1).optional(),
|
|
892
|
+
hint: e.string().min(1).max(500).optional(),
|
|
893
|
+
required: e.boolean().optional(),
|
|
894
|
+
sensitive: e.boolean().optional()
|
|
895
|
+
}), Fe = E.extend({
|
|
896
|
+
type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
|
|
897
|
+
config: e.object({
|
|
898
|
+
credential_type: e.string().optional()
|
|
899
|
+
})
|
|
900
|
+
}), ke = E.extend({
|
|
901
|
+
type: e.literal("GMAPS_ADDRESS"),
|
|
902
|
+
config: e.object({
|
|
903
|
+
api_key: e.string().optional()
|
|
904
|
+
})
|
|
905
|
+
}), ve = E.extend({
|
|
906
|
+
type: e.literal("RECAPTCHA"),
|
|
907
|
+
config: e.object({
|
|
908
|
+
site_key: e.string().optional()
|
|
909
|
+
})
|
|
910
|
+
}), o = f.extend({
|
|
911
|
+
category: e.literal("FIELD").optional(),
|
|
912
|
+
label: e.string().min(1).optional(),
|
|
913
|
+
hint: e.string().min(1).max(500).optional(),
|
|
914
|
+
required: e.boolean().optional(),
|
|
915
|
+
sensitive: e.boolean().optional()
|
|
916
|
+
}), xe = o.extend({
|
|
917
|
+
type: e.literal("BOOLEAN"),
|
|
918
|
+
config: e.object({
|
|
919
|
+
default_value: e.boolean().optional()
|
|
920
|
+
}).optional()
|
|
921
|
+
}), Pe = o.extend({
|
|
922
|
+
type: e.literal("CARDS"),
|
|
923
|
+
config: e.object({
|
|
924
|
+
options: e.array(
|
|
925
|
+
e.object({
|
|
926
|
+
value: e.string(),
|
|
927
|
+
label: e.string(),
|
|
928
|
+
description: e.string().optional(),
|
|
929
|
+
image: e.string().optional()
|
|
930
|
+
})
|
|
931
|
+
).optional(),
|
|
932
|
+
multi_select: e.boolean().optional()
|
|
933
|
+
}).optional()
|
|
934
|
+
}), Me = o.extend({
|
|
935
|
+
type: e.literal("CHOICE"),
|
|
936
|
+
config: e.object({
|
|
937
|
+
options: e.array(
|
|
938
|
+
e.object({
|
|
939
|
+
value: e.string(),
|
|
940
|
+
label: e.string()
|
|
941
|
+
})
|
|
942
|
+
).optional(),
|
|
943
|
+
display: e.enum(["radio", "checkbox"]).optional()
|
|
944
|
+
}).optional()
|
|
945
|
+
}), He = o.extend({
|
|
946
|
+
type: e.literal("CUSTOM"),
|
|
947
|
+
config: e.object({
|
|
948
|
+
component: e.string().optional(),
|
|
949
|
+
props: e.record(e.any()).optional()
|
|
950
|
+
})
|
|
951
|
+
}), Ge = o.extend({
|
|
952
|
+
type: e.literal("DATE"),
|
|
953
|
+
config: e.object({
|
|
954
|
+
format: e.string().optional(),
|
|
955
|
+
min: e.string().optional(),
|
|
956
|
+
max: e.string().optional()
|
|
957
|
+
}).optional()
|
|
958
|
+
}), Be = o.extend({
|
|
959
|
+
type: e.literal("DROPDOWN"),
|
|
960
|
+
config: e.object({
|
|
961
|
+
options: e.array(
|
|
962
|
+
e.object({
|
|
963
|
+
value: e.string(),
|
|
964
|
+
label: e.string()
|
|
965
|
+
})
|
|
966
|
+
).optional(),
|
|
967
|
+
placeholder: e.string().optional(),
|
|
968
|
+
searchable: e.boolean().optional()
|
|
969
|
+
}).optional()
|
|
970
|
+
}), Ke = o.extend({
|
|
971
|
+
type: e.literal("EMAIL"),
|
|
972
|
+
config: e.object({
|
|
973
|
+
placeholder: e.string().optional()
|
|
974
|
+
}).optional()
|
|
975
|
+
}), We = o.extend({
|
|
976
|
+
type: e.literal("FILE"),
|
|
977
|
+
config: e.object({
|
|
978
|
+
accept: e.string().optional(),
|
|
979
|
+
max_size: e.number().optional(),
|
|
980
|
+
multiple: e.boolean().optional()
|
|
981
|
+
}).optional()
|
|
982
|
+
}), ze = o.extend({
|
|
983
|
+
type: e.literal("LEGAL"),
|
|
984
|
+
config: e.object({
|
|
985
|
+
text: e.string(),
|
|
986
|
+
html: e.boolean().optional()
|
|
987
|
+
}).optional()
|
|
988
|
+
}), Xe = o.extend({
|
|
989
|
+
type: e.literal("NUMBER"),
|
|
990
|
+
config: e.object({
|
|
991
|
+
placeholder: e.string().optional(),
|
|
992
|
+
min: e.number().optional(),
|
|
993
|
+
max: e.number().optional(),
|
|
994
|
+
step: e.number().optional()
|
|
995
|
+
}).optional()
|
|
996
|
+
}), Ve = o.extend({
|
|
997
|
+
type: e.literal("PASSWORD"),
|
|
998
|
+
config: e.object({
|
|
999
|
+
placeholder: e.string().optional(),
|
|
1000
|
+
min_length: e.number().optional(),
|
|
1001
|
+
show_toggle: e.boolean().optional()
|
|
1002
|
+
}).optional()
|
|
1003
|
+
}), qe = o.extend({
|
|
1004
|
+
type: e.literal("PAYMENT"),
|
|
1005
|
+
config: e.object({
|
|
1006
|
+
provider: e.string().optional(),
|
|
1007
|
+
currency: e.string().optional()
|
|
1008
|
+
}).optional()
|
|
1009
|
+
}), Ye = o.extend({
|
|
1010
|
+
type: e.literal("SOCIAL"),
|
|
1011
|
+
config: e.object({
|
|
1012
|
+
providers: e.array(e.string()).optional()
|
|
1013
|
+
}).optional()
|
|
1014
|
+
}), Qe = o.extend({
|
|
1015
|
+
type: e.literal("TEL"),
|
|
1016
|
+
config: e.object({
|
|
1017
|
+
placeholder: e.string().optional(),
|
|
1018
|
+
default_country: e.string().optional()
|
|
1019
|
+
}).optional()
|
|
1020
|
+
}), Je = o.extend({
|
|
1021
|
+
type: e.literal("TEXT"),
|
|
1022
|
+
config: e.object({
|
|
1023
|
+
placeholder: e.string().optional(),
|
|
1024
|
+
multiline: e.boolean().optional(),
|
|
1025
|
+
max_length: e.number().optional()
|
|
1026
|
+
}).optional()
|
|
1027
|
+
}), Ze = o.extend({
|
|
1028
|
+
type: e.literal("URL"),
|
|
1029
|
+
config: e.object({
|
|
1030
|
+
placeholder: e.string().optional()
|
|
1031
|
+
}).optional()
|
|
1032
|
+
}), $e = e.discriminatedUnion("type", [
|
|
1033
|
+
Te,
|
|
1034
|
+
Ne,
|
|
1035
|
+
Re,
|
|
1036
|
+
Le,
|
|
1037
|
+
De,
|
|
1038
|
+
je,
|
|
1039
|
+
we,
|
|
1040
|
+
Ue
|
|
1041
|
+
]), et = e.discriminatedUnion("type", [
|
|
1042
|
+
Fe,
|
|
1043
|
+
ke,
|
|
1044
|
+
ve
|
|
1045
|
+
]), tt = e.discriminatedUnion("type", [
|
|
1046
|
+
xe,
|
|
1047
|
+
Pe,
|
|
1048
|
+
Me,
|
|
1049
|
+
He,
|
|
1050
|
+
Ge,
|
|
1051
|
+
Be,
|
|
1052
|
+
Ke,
|
|
1053
|
+
We,
|
|
1054
|
+
ze,
|
|
1055
|
+
Xe,
|
|
1056
|
+
Ve,
|
|
1057
|
+
qe,
|
|
1058
|
+
Ye,
|
|
1059
|
+
Qe,
|
|
1060
|
+
Je,
|
|
1061
|
+
Ze
|
|
1062
|
+
]), R = e.union([
|
|
1063
|
+
$e,
|
|
1064
|
+
et,
|
|
1065
|
+
tt
|
|
1066
|
+
]), go = e.object({
|
|
841
1067
|
id: e.string(),
|
|
842
1068
|
type: e.literal("submit"),
|
|
843
1069
|
label: e.string(),
|
|
@@ -846,66 +1072,48 @@ const de = e.object({
|
|
|
846
1072
|
order: e.number().optional(),
|
|
847
1073
|
visible: e.boolean().optional().default(!0),
|
|
848
1074
|
customizations: e.record(e.string(), e.any()).optional()
|
|
849
|
-
}),
|
|
1075
|
+
}), _ = e.object({
|
|
1076
|
+
x: e.number(),
|
|
1077
|
+
y: e.number()
|
|
1078
|
+
}), ot = e.object({
|
|
850
1079
|
id: e.string(),
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
config: e.object({
|
|
883
|
-
text: e.string().optional()
|
|
884
|
-
})
|
|
885
|
-
}),
|
|
886
|
-
c.extend({
|
|
887
|
-
type: e.literal("EMAIL"),
|
|
888
|
-
config: e.object({
|
|
889
|
-
label: e.string().optional(),
|
|
890
|
-
placeholder: e.string().optional()
|
|
891
|
-
})
|
|
892
|
-
}),
|
|
893
|
-
c.extend({
|
|
894
|
-
type: e.literal("NUMBER"),
|
|
895
|
-
config: e.object({
|
|
896
|
-
label: e.string().optional(),
|
|
897
|
-
placeholder: e.string().optional()
|
|
898
|
-
})
|
|
899
|
-
}),
|
|
900
|
-
c.extend({
|
|
901
|
-
type: e.literal("PHONE"),
|
|
902
|
-
config: e.object({
|
|
903
|
-
label: e.string().optional(),
|
|
904
|
-
placeholder: e.string().optional()
|
|
905
|
-
})
|
|
1080
|
+
type: e.literal("FLOW"),
|
|
1081
|
+
coordinates: _,
|
|
1082
|
+
alias: e.string().min(1).max(150).optional(),
|
|
1083
|
+
config: e.object({
|
|
1084
|
+
flow_id: e.string().max(30),
|
|
1085
|
+
next_node: e.string().optional()
|
|
1086
|
+
})
|
|
1087
|
+
}), nt = e.object({
|
|
1088
|
+
id: e.string(),
|
|
1089
|
+
type: e.literal("ROUTER"),
|
|
1090
|
+
coordinates: _,
|
|
1091
|
+
alias: e.string().min(1).max(150),
|
|
1092
|
+
config: e.object({
|
|
1093
|
+
rules: e.array(
|
|
1094
|
+
e.object({
|
|
1095
|
+
id: e.string(),
|
|
1096
|
+
alias: e.string().min(1).max(150).optional(),
|
|
1097
|
+
condition: e.any(),
|
|
1098
|
+
next_node: e.string()
|
|
1099
|
+
})
|
|
1100
|
+
),
|
|
1101
|
+
fallback: e.string()
|
|
1102
|
+
})
|
|
1103
|
+
}), it = e.object({
|
|
1104
|
+
id: e.string(),
|
|
1105
|
+
type: e.literal("STEP"),
|
|
1106
|
+
coordinates: _,
|
|
1107
|
+
alias: e.string().min(1).max(150).optional(),
|
|
1108
|
+
config: e.object({
|
|
1109
|
+
components: e.array(R),
|
|
1110
|
+
next_node: e.string().optional()
|
|
906
1111
|
})
|
|
907
|
-
|
|
908
|
-
|
|
1112
|
+
}), at = e.discriminatedUnion("type", [
|
|
1113
|
+
ot,
|
|
1114
|
+
nt,
|
|
1115
|
+
it
|
|
1116
|
+
]), st = e.object({
|
|
909
1117
|
name: e.string().openapi({
|
|
910
1118
|
description: "The name of the form"
|
|
911
1119
|
}),
|
|
@@ -918,54 +1126,11 @@ const de = e.object({
|
|
|
918
1126
|
default: e.string().optional()
|
|
919
1127
|
}).optional(),
|
|
920
1128
|
translations: e.record(e.string(), e.any()).optional(),
|
|
921
|
-
nodes: e.array(
|
|
922
|
-
e.discriminatedUnion("type", [
|
|
923
|
-
// FLOW node
|
|
924
|
-
e.object({
|
|
925
|
-
id: e.string(),
|
|
926
|
-
type: e.literal("FLOW"),
|
|
927
|
-
coordinates: e.object({ x: e.number(), y: e.number() }),
|
|
928
|
-
alias: e.string().min(1).max(150).optional(),
|
|
929
|
-
config: e.object({
|
|
930
|
-
flow_id: e.string().max(30),
|
|
931
|
-
next_node: e.string().optional()
|
|
932
|
-
})
|
|
933
|
-
}),
|
|
934
|
-
// ROUTER node
|
|
935
|
-
e.object({
|
|
936
|
-
id: e.string(),
|
|
937
|
-
type: e.literal("ROUTER"),
|
|
938
|
-
coordinates: e.object({ x: e.number(), y: e.number() }),
|
|
939
|
-
alias: e.string().min(1).max(150),
|
|
940
|
-
config: e.object({
|
|
941
|
-
rules: e.array(
|
|
942
|
-
e.object({
|
|
943
|
-
id: e.string(),
|
|
944
|
-
alias: e.string().min(1).max(150).optional(),
|
|
945
|
-
condition: e.any(),
|
|
946
|
-
next_node: e.string()
|
|
947
|
-
})
|
|
948
|
-
),
|
|
949
|
-
fallback: e.string()
|
|
950
|
-
})
|
|
951
|
-
}),
|
|
952
|
-
// STEP node
|
|
953
|
-
e.object({
|
|
954
|
-
id: e.string(),
|
|
955
|
-
type: e.literal("STEP"),
|
|
956
|
-
coordinates: e.object({ x: e.number(), y: e.number() }),
|
|
957
|
-
alias: e.string().min(1).max(150).optional(),
|
|
958
|
-
config: e.object({
|
|
959
|
-
components: e.array(Ce),
|
|
960
|
-
next_node: e.string().optional()
|
|
961
|
-
})
|
|
962
|
-
})
|
|
963
|
-
])
|
|
964
|
-
).optional(),
|
|
1129
|
+
nodes: e.array(at).optional(),
|
|
965
1130
|
start: e.object({
|
|
966
1131
|
hidden_fields: e.array(e.object({ key: e.string(), value: e.string() })).optional(),
|
|
967
1132
|
next_node: e.string().optional(),
|
|
968
|
-
coordinates:
|
|
1133
|
+
coordinates: _.optional()
|
|
969
1134
|
}).optional(),
|
|
970
1135
|
ending: e.object({
|
|
971
1136
|
redirection: e.object({
|
|
@@ -973,17 +1138,44 @@ const de = e.object({
|
|
|
973
1138
|
target: e.string().optional()
|
|
974
1139
|
}).optional(),
|
|
975
1140
|
after_submit: e.object({ flow_id: e.string().optional() }).optional(),
|
|
976
|
-
coordinates:
|
|
1141
|
+
coordinates: _.optional(),
|
|
977
1142
|
resume_flow: e.boolean().optional()
|
|
978
1143
|
}).optional(),
|
|
979
1144
|
style: e.object({ css: e.string().optional() }).optional()
|
|
980
1145
|
}).openapi({
|
|
981
|
-
description: "Schema for flow-based forms (matches
|
|
982
|
-
}),
|
|
983
|
-
...
|
|
984
|
-
...
|
|
1146
|
+
description: "Schema for flow-based forms (matches Auth0 Forms structure)"
|
|
1147
|
+
}), uo = e.object({
|
|
1148
|
+
...s.shape,
|
|
1149
|
+
...st.shape,
|
|
985
1150
|
id: e.string()
|
|
986
|
-
}),
|
|
1151
|
+
}), rt = e.object({
|
|
1152
|
+
id: e.number().optional(),
|
|
1153
|
+
text: e.string(),
|
|
1154
|
+
type: e.enum(["info", "error", "success", "warning"])
|
|
1155
|
+
}), lt = e.object({
|
|
1156
|
+
id: e.string().optional(),
|
|
1157
|
+
text: e.string(),
|
|
1158
|
+
href: e.string(),
|
|
1159
|
+
linkText: e.string().optional()
|
|
1160
|
+
}), mo = e.object({
|
|
1161
|
+
action: e.string(),
|
|
1162
|
+
method: e.enum(["POST", "GET"]),
|
|
1163
|
+
title: e.string().optional(),
|
|
1164
|
+
description: e.string().optional(),
|
|
1165
|
+
components: e.array(R),
|
|
1166
|
+
messages: e.array(rt).optional(),
|
|
1167
|
+
links: e.array(lt).optional()
|
|
1168
|
+
});
|
|
1169
|
+
function ho(t) {
|
|
1170
|
+
return t.category === "BLOCK";
|
|
1171
|
+
}
|
|
1172
|
+
function bo(t) {
|
|
1173
|
+
return t.category === "WIDGET";
|
|
1174
|
+
}
|
|
1175
|
+
function fo(t) {
|
|
1176
|
+
return t.category === "FIELD";
|
|
1177
|
+
}
|
|
1178
|
+
const L = e.enum([
|
|
987
1179
|
"pre-user-registration",
|
|
988
1180
|
"post-user-registration",
|
|
989
1181
|
"post-user-login",
|
|
@@ -991,49 +1183,49 @@ const de = e.object({
|
|
|
991
1183
|
"pre-user-deletion",
|
|
992
1184
|
"post-user-deletion"
|
|
993
1185
|
// Potentially other triggers specific to webhooks in the future
|
|
994
|
-
]),
|
|
1186
|
+
]), D = e.enum([
|
|
995
1187
|
"pre-user-registration",
|
|
996
1188
|
"post-user-registration",
|
|
997
1189
|
"post-user-login",
|
|
998
1190
|
"validate-registration-username",
|
|
999
1191
|
"pre-user-deletion",
|
|
1000
1192
|
"post-user-deletion"
|
|
1001
|
-
]),
|
|
1193
|
+
]), m = {
|
|
1002
1194
|
enabled: e.boolean().default(!1),
|
|
1003
1195
|
synchronous: e.boolean().default(!1),
|
|
1004
1196
|
priority: e.number().optional(),
|
|
1005
1197
|
hook_id: e.string().optional()
|
|
1006
|
-
},
|
|
1007
|
-
...
|
|
1008
|
-
trigger_id:
|
|
1198
|
+
}, ct = e.object({
|
|
1199
|
+
...m,
|
|
1200
|
+
trigger_id: L,
|
|
1009
1201
|
url: e.string()
|
|
1010
|
-
}),
|
|
1011
|
-
...
|
|
1012
|
-
trigger_id:
|
|
1202
|
+
}), pt = e.object({
|
|
1203
|
+
...m,
|
|
1204
|
+
trigger_id: D,
|
|
1013
1205
|
form_id: e.string()
|
|
1014
|
-
}),
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
]),
|
|
1018
|
-
...
|
|
1019
|
-
trigger_id:
|
|
1020
|
-
...
|
|
1206
|
+
}), Eo = e.union([
|
|
1207
|
+
ct,
|
|
1208
|
+
pt
|
|
1209
|
+
]), _t = e.object({
|
|
1210
|
+
...m,
|
|
1211
|
+
trigger_id: L,
|
|
1212
|
+
...s.shape,
|
|
1021
1213
|
hook_id: e.string(),
|
|
1022
1214
|
url: e.string()
|
|
1023
|
-
}),
|
|
1024
|
-
...
|
|
1025
|
-
trigger_id:
|
|
1026
|
-
...
|
|
1215
|
+
}), dt = e.object({
|
|
1216
|
+
...m,
|
|
1217
|
+
trigger_id: D,
|
|
1218
|
+
...s.shape,
|
|
1027
1219
|
hook_id: e.string(),
|
|
1028
1220
|
form_id: e.string()
|
|
1029
|
-
}),
|
|
1221
|
+
}), So = e.union([_t, dt]), gt = e.object({
|
|
1030
1222
|
name: e.string().optional()
|
|
1031
|
-
}),
|
|
1223
|
+
}), ut = e.object({
|
|
1032
1224
|
email: e.string().optional()
|
|
1033
|
-
}),
|
|
1225
|
+
}), mt = e.object({
|
|
1034
1226
|
organization_id: e.string().max(50),
|
|
1035
|
-
inviter:
|
|
1036
|
-
invitee:
|
|
1227
|
+
inviter: gt,
|
|
1228
|
+
invitee: ut,
|
|
1037
1229
|
invitation_url: e.string().url(),
|
|
1038
1230
|
client_id: e.string(),
|
|
1039
1231
|
connection_id: e.string().optional(),
|
|
@@ -1042,13 +1234,13 @@ const de = e.object({
|
|
|
1042
1234
|
ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
|
|
1043
1235
|
roles: e.array(e.string()).default([]).optional(),
|
|
1044
1236
|
send_invitation_email: e.boolean().default(!0).optional()
|
|
1045
|
-
}),
|
|
1237
|
+
}), Ao = e.object({
|
|
1046
1238
|
id: e.string(),
|
|
1047
1239
|
organization_id: e.string().max(50),
|
|
1048
1240
|
created_at: e.string().datetime(),
|
|
1049
1241
|
expires_at: e.string().datetime(),
|
|
1050
1242
|
ticket_id: e.string().optional()
|
|
1051
|
-
}).extend(
|
|
1243
|
+
}).extend(mt.shape), ht = e.object({
|
|
1052
1244
|
alg: e.enum([
|
|
1053
1245
|
"RS256",
|
|
1054
1246
|
"RS384",
|
|
@@ -1067,9 +1259,9 @@ const de = e.object({
|
|
|
1067
1259
|
x5t: e.string().optional(),
|
|
1068
1260
|
x5c: e.array(e.string()).optional(),
|
|
1069
1261
|
use: e.enum(["sig", "enc"]).optional()
|
|
1070
|
-
}),
|
|
1071
|
-
keys: e.array(
|
|
1072
|
-
}),
|
|
1262
|
+
}), Co = e.object({
|
|
1263
|
+
keys: e.array(ht)
|
|
1264
|
+
}), Io = e.object({
|
|
1073
1265
|
issuer: e.string(),
|
|
1074
1266
|
authorization_endpoint: e.string(),
|
|
1075
1267
|
token_endpoint: e.string(),
|
|
@@ -1090,10 +1282,10 @@ const de = e.object({
|
|
|
1090
1282
|
request_uri_parameter_supported: e.boolean(),
|
|
1091
1283
|
request_parameter_supported: e.boolean(),
|
|
1092
1284
|
token_endpoint_auth_signing_alg_values_supported: e.array(e.string())
|
|
1093
|
-
}),
|
|
1285
|
+
}), bt = e.object({
|
|
1094
1286
|
csrf_token: e.string(),
|
|
1095
1287
|
auth0Client: e.string().optional(),
|
|
1096
|
-
authParams:
|
|
1288
|
+
authParams: me,
|
|
1097
1289
|
expires_at: e.string(),
|
|
1098
1290
|
deleted_at: e.string().optional(),
|
|
1099
1291
|
ip: e.string().optional(),
|
|
@@ -1103,14 +1295,14 @@ const de = e.object({
|
|
|
1103
1295
|
login_completed: e.boolean().optional().default(!1)
|
|
1104
1296
|
}).openapi({
|
|
1105
1297
|
description: "This represents a login sesion"
|
|
1106
|
-
}),
|
|
1107
|
-
...
|
|
1298
|
+
}), yo = e.object({
|
|
1299
|
+
...bt.shape,
|
|
1108
1300
|
id: e.string().openapi({
|
|
1109
1301
|
description: "This is is used as the state in the universal login"
|
|
1110
1302
|
}),
|
|
1111
1303
|
created_at: e.string(),
|
|
1112
1304
|
updated_at: e.string()
|
|
1113
|
-
}),
|
|
1305
|
+
}), ft = {
|
|
1114
1306
|
// Network & System
|
|
1115
1307
|
ACLS_SUMMARY: "acls_summary",
|
|
1116
1308
|
ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
|
|
@@ -1277,24 +1469,24 @@ const de = e.object({
|
|
|
1277
1469
|
WARNING_DURING_LOGIN: "w",
|
|
1278
1470
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
1279
1471
|
WARNING_USER_MANAGEMENT: "wum"
|
|
1280
|
-
},
|
|
1281
|
-
(t) => Object.values(
|
|
1472
|
+
}, Et = e.string().refine(
|
|
1473
|
+
(t) => Object.values(ft).includes(t),
|
|
1282
1474
|
{ message: "Invalid log type" }
|
|
1283
|
-
),
|
|
1475
|
+
), St = e.object({
|
|
1284
1476
|
name: e.string(),
|
|
1285
1477
|
version: e.string(),
|
|
1286
1478
|
env: e.object({
|
|
1287
1479
|
node: e.string().optional()
|
|
1288
1480
|
}).optional()
|
|
1289
|
-
}),
|
|
1481
|
+
}), At = e.object({
|
|
1290
1482
|
country_code: e.string().length(2),
|
|
1291
1483
|
city_name: e.string(),
|
|
1292
1484
|
latitude: e.string(),
|
|
1293
1485
|
longitude: e.string(),
|
|
1294
1486
|
time_zone: e.string(),
|
|
1295
1487
|
continent_code: e.string()
|
|
1296
|
-
}),
|
|
1297
|
-
type:
|
|
1488
|
+
}), Ct = e.object({
|
|
1489
|
+
type: Et,
|
|
1298
1490
|
date: e.string(),
|
|
1299
1491
|
description: e.string().optional(),
|
|
1300
1492
|
ip: e.string().optional(),
|
|
@@ -1313,30 +1505,30 @@ const de = e.object({
|
|
|
1313
1505
|
strategy: e.string().optional(),
|
|
1314
1506
|
strategy_type: e.string().optional(),
|
|
1315
1507
|
hostname: e.string().optional(),
|
|
1316
|
-
auth0_client:
|
|
1508
|
+
auth0_client: St.optional(),
|
|
1317
1509
|
log_id: e.string().optional(),
|
|
1318
|
-
location_info:
|
|
1319
|
-
}),
|
|
1320
|
-
...
|
|
1510
|
+
location_info: At.optional()
|
|
1511
|
+
}), Oo = e.object({
|
|
1512
|
+
...Ct.shape,
|
|
1321
1513
|
log_id: e.string()
|
|
1322
|
-
}),
|
|
1514
|
+
}), It = e.object({
|
|
1323
1515
|
id: e.string().optional(),
|
|
1324
1516
|
user_id: e.string(),
|
|
1325
1517
|
password: e.string(),
|
|
1326
1518
|
algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
|
|
1327
1519
|
is_current: e.boolean().default(!0)
|
|
1328
|
-
}),
|
|
1520
|
+
}), To = It.extend({
|
|
1329
1521
|
id: e.string(),
|
|
1330
1522
|
created_at: e.string(),
|
|
1331
1523
|
updated_at: e.string()
|
|
1332
|
-
}),
|
|
1524
|
+
}), j = e.object({
|
|
1333
1525
|
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
1334
1526
|
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
1335
1527
|
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
1336
1528
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
1337
1529
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
1338
1530
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
1339
|
-
}),
|
|
1531
|
+
}), yt = e.object({
|
|
1340
1532
|
id: e.string(),
|
|
1341
1533
|
revoked_at: e.string().optional(),
|
|
1342
1534
|
used_at: e.string().optional(),
|
|
@@ -1344,17 +1536,17 @@ const de = e.object({
|
|
|
1344
1536
|
expires_at: e.string().optional(),
|
|
1345
1537
|
login_session_id: e.string(),
|
|
1346
1538
|
idle_expires_at: e.string().optional(),
|
|
1347
|
-
device:
|
|
1539
|
+
device: j.describe(
|
|
1348
1540
|
"Metadata related to the device used in the session"
|
|
1349
1541
|
),
|
|
1350
1542
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
1351
|
-
}),
|
|
1543
|
+
}), No = e.object({
|
|
1352
1544
|
created_at: e.string(),
|
|
1353
1545
|
updated_at: e.string(),
|
|
1354
1546
|
authenticated_at: e.string(),
|
|
1355
1547
|
last_interaction_at: e.string(),
|
|
1356
|
-
...
|
|
1357
|
-
}),
|
|
1548
|
+
...yt.shape
|
|
1549
|
+
}), Ro = e.object({
|
|
1358
1550
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
1359
1551
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
1360
1552
|
fingerprint: e.string().openapi({ description: "The cert fingerprint" }),
|
|
@@ -1380,8 +1572,8 @@ const de = e.object({
|
|
|
1380
1572
|
description: "The type of the signing key"
|
|
1381
1573
|
})
|
|
1382
1574
|
});
|
|
1383
|
-
var
|
|
1384
|
-
const
|
|
1575
|
+
var Ot = /* @__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))(Ot || {});
|
|
1576
|
+
const Lo = e.object({
|
|
1385
1577
|
access_token: e.string(),
|
|
1386
1578
|
id_token: e.string().optional(),
|
|
1387
1579
|
scope: e.string().optional(),
|
|
@@ -1394,7 +1586,7 @@ e.object({
|
|
|
1394
1586
|
code: e.string(),
|
|
1395
1587
|
state: e.string().optional()
|
|
1396
1588
|
});
|
|
1397
|
-
const
|
|
1589
|
+
const Tt = e.object({
|
|
1398
1590
|
button_border_radius: e.number(),
|
|
1399
1591
|
button_border_weight: e.number(),
|
|
1400
1592
|
buttons_style: e.enum(["pill", "rounded", "sharp"]),
|
|
@@ -1404,7 +1596,7 @@ const Ke = e.object({
|
|
|
1404
1596
|
show_widget_shadow: e.boolean(),
|
|
1405
1597
|
widget_border_weight: e.number(),
|
|
1406
1598
|
widget_corner_radius: e.number()
|
|
1407
|
-
}),
|
|
1599
|
+
}), Nt = e.object({
|
|
1408
1600
|
base_focus_color: e.string(),
|
|
1409
1601
|
base_hover_color: e.string(),
|
|
1410
1602
|
body_text: e.string(),
|
|
@@ -1424,44 +1616,44 @@ const Ke = e.object({
|
|
|
1424
1616
|
success: e.string(),
|
|
1425
1617
|
widget_background: e.string(),
|
|
1426
1618
|
widget_border: e.string()
|
|
1427
|
-
}),
|
|
1619
|
+
}), l = e.object({
|
|
1428
1620
|
bold: e.boolean(),
|
|
1429
1621
|
size: e.number()
|
|
1430
|
-
}),
|
|
1431
|
-
body_text:
|
|
1432
|
-
buttons_text:
|
|
1622
|
+
}), Rt = e.object({
|
|
1623
|
+
body_text: l,
|
|
1624
|
+
buttons_text: l,
|
|
1433
1625
|
font_url: e.string(),
|
|
1434
|
-
input_labels:
|
|
1435
|
-
links:
|
|
1626
|
+
input_labels: l,
|
|
1627
|
+
links: l,
|
|
1436
1628
|
links_style: e.enum(["normal", "underlined"]),
|
|
1437
1629
|
reference_text_size: e.number(),
|
|
1438
|
-
subtitle:
|
|
1439
|
-
title:
|
|
1440
|
-
}),
|
|
1630
|
+
subtitle: l,
|
|
1631
|
+
title: l
|
|
1632
|
+
}), Lt = e.object({
|
|
1441
1633
|
background_color: e.string(),
|
|
1442
1634
|
background_image_url: e.string(),
|
|
1443
1635
|
page_layout: e.enum(["center", "left", "right"])
|
|
1444
|
-
}),
|
|
1636
|
+
}), Dt = e.object({
|
|
1445
1637
|
header_text_alignment: e.enum(["center", "left", "right"]),
|
|
1446
1638
|
logo_height: e.number(),
|
|
1447
1639
|
logo_position: e.enum(["center", "left", "none", "right"]),
|
|
1448
1640
|
logo_url: e.string(),
|
|
1449
1641
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
1450
|
-
}),
|
|
1451
|
-
borders:
|
|
1452
|
-
colors:
|
|
1642
|
+
}), jt = e.object({
|
|
1643
|
+
borders: Tt,
|
|
1644
|
+
colors: Nt,
|
|
1453
1645
|
displayName: e.string(),
|
|
1454
|
-
fonts:
|
|
1455
|
-
page_background:
|
|
1456
|
-
widget:
|
|
1457
|
-
}),
|
|
1646
|
+
fonts: Rt,
|
|
1647
|
+
page_background: Lt,
|
|
1648
|
+
widget: Dt
|
|
1649
|
+
}), Do = jt.extend({
|
|
1458
1650
|
themeId: e.string()
|
|
1459
|
-
}),
|
|
1651
|
+
}), jo = e.object({
|
|
1460
1652
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
1461
1653
|
identifier_first: e.boolean().default(!0),
|
|
1462
1654
|
password_first: e.boolean().default(!1),
|
|
1463
1655
|
webauthn_platform_first_factor: e.boolean()
|
|
1464
|
-
}),
|
|
1656
|
+
}), wo = e.object({
|
|
1465
1657
|
name: e.string(),
|
|
1466
1658
|
enabled: e.boolean().optional().default(!0),
|
|
1467
1659
|
default_from_address: e.string().optional(),
|
|
@@ -1491,7 +1683,7 @@ const Ke = e.object({
|
|
|
1491
1683
|
})
|
|
1492
1684
|
]),
|
|
1493
1685
|
settings: e.object({}).optional()
|
|
1494
|
-
}),
|
|
1686
|
+
}), wt = e.object({
|
|
1495
1687
|
// The actual refresh token value (primary key).
|
|
1496
1688
|
id: e.string(),
|
|
1497
1689
|
// Link to the session record
|
|
@@ -1504,7 +1696,7 @@ const Ke = e.object({
|
|
|
1504
1696
|
idle_expires_at: e.string().optional(),
|
|
1505
1697
|
// When the token was last used.
|
|
1506
1698
|
last_exchanged_at: e.string().optional(),
|
|
1507
|
-
device:
|
|
1699
|
+
device: j,
|
|
1508
1700
|
resource_servers: e.array(
|
|
1509
1701
|
e.object({
|
|
1510
1702
|
audience: e.string(),
|
|
@@ -1512,21 +1704,21 @@ const Ke = e.object({
|
|
|
1512
1704
|
})
|
|
1513
1705
|
),
|
|
1514
1706
|
rotating: e.boolean()
|
|
1515
|
-
}),
|
|
1707
|
+
}), Uo = e.object({
|
|
1516
1708
|
// When the refresh token record was created.
|
|
1517
1709
|
created_at: e.string(),
|
|
1518
1710
|
// Spread in the rest of the refresh token properties.
|
|
1519
|
-
...
|
|
1520
|
-
}),
|
|
1711
|
+
...wt.shape
|
|
1712
|
+
}), Fo = e.object({
|
|
1521
1713
|
to: e.string(),
|
|
1522
1714
|
message: e.string()
|
|
1523
|
-
}),
|
|
1715
|
+
}), ko = e.object({
|
|
1524
1716
|
name: e.string(),
|
|
1525
1717
|
options: e.object({})
|
|
1526
|
-
}),
|
|
1718
|
+
}), Ut = e.object({
|
|
1527
1719
|
value: e.string(),
|
|
1528
1720
|
description: e.string().optional()
|
|
1529
|
-
}),
|
|
1721
|
+
}), Ft = e.object({
|
|
1530
1722
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
1531
1723
|
enforce_policies: e.boolean().optional(),
|
|
1532
1724
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -1536,10 +1728,10 @@ const Ke = e.object({
|
|
|
1536
1728
|
mtls: e.object({
|
|
1537
1729
|
bound_access_tokens: e.boolean().optional()
|
|
1538
1730
|
}).optional()
|
|
1539
|
-
}),
|
|
1731
|
+
}), kt = e.object({
|
|
1540
1732
|
name: e.string(),
|
|
1541
1733
|
identifier: e.string(),
|
|
1542
|
-
scopes: e.array(
|
|
1734
|
+
scopes: e.array(Ut).optional(),
|
|
1543
1735
|
signing_alg: e.string().optional(),
|
|
1544
1736
|
signing_secret: e.string().optional(),
|
|
1545
1737
|
token_lifetime: e.number().optional(),
|
|
@@ -1547,30 +1739,30 @@ const Ke = e.object({
|
|
|
1547
1739
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
1548
1740
|
allow_offline_access: e.boolean().optional(),
|
|
1549
1741
|
verificationKey: e.string().optional(),
|
|
1550
|
-
options:
|
|
1742
|
+
options: Ft.optional(),
|
|
1551
1743
|
is_system: e.boolean().optional()
|
|
1552
|
-
}),
|
|
1744
|
+
}), vt = e.object({
|
|
1553
1745
|
id: e.string().optional(),
|
|
1554
|
-
...
|
|
1746
|
+
...kt.shape,
|
|
1555
1747
|
created_at: e.string().optional(),
|
|
1556
1748
|
updated_at: e.string().optional()
|
|
1557
|
-
}),
|
|
1749
|
+
}), vo = e.array(vt), xt = e.object({
|
|
1558
1750
|
role_id: e.string(),
|
|
1559
1751
|
resource_server_identifier: e.string(),
|
|
1560
1752
|
permission_name: e.string()
|
|
1561
|
-
}),
|
|
1562
|
-
|
|
1753
|
+
}), Pt = e.object({
|
|
1754
|
+
...xt.shape,
|
|
1563
1755
|
created_at: e.string()
|
|
1564
|
-
}),
|
|
1756
|
+
}), xo = e.array(Pt), Mt = e.object({
|
|
1565
1757
|
user_id: e.string(),
|
|
1566
1758
|
resource_server_identifier: e.string(),
|
|
1567
1759
|
permission_name: e.string(),
|
|
1568
1760
|
organization_id: e.string().optional()
|
|
1569
|
-
}),
|
|
1570
|
-
...
|
|
1761
|
+
}), Ht = e.object({
|
|
1762
|
+
...Mt.shape,
|
|
1571
1763
|
tenant_id: e.string(),
|
|
1572
1764
|
created_at: e.string().optional()
|
|
1573
|
-
}),
|
|
1765
|
+
}), Po = e.array(Ht), Gt = e.object({
|
|
1574
1766
|
user_id: e.string(),
|
|
1575
1767
|
resource_server_identifier: e.string(),
|
|
1576
1768
|
resource_server_name: e.string(),
|
|
@@ -1578,17 +1770,17 @@ const Ke = e.object({
|
|
|
1578
1770
|
description: e.string().nullable().optional(),
|
|
1579
1771
|
created_at: e.string().optional(),
|
|
1580
1772
|
organization_id: e.string().optional()
|
|
1581
|
-
}),
|
|
1582
|
-
|
|
1583
|
-
),
|
|
1773
|
+
}), Mo = e.array(
|
|
1774
|
+
Gt
|
|
1775
|
+
), Bt = e.object({
|
|
1584
1776
|
user_id: e.string(),
|
|
1585
1777
|
role_id: e.string(),
|
|
1586
1778
|
organization_id: e.string().optional()
|
|
1587
|
-
}),
|
|
1588
|
-
...
|
|
1779
|
+
}), Kt = e.object({
|
|
1780
|
+
...Bt.shape,
|
|
1589
1781
|
tenant_id: e.string(),
|
|
1590
1782
|
created_at: e.string().optional()
|
|
1591
|
-
}),
|
|
1783
|
+
}), Ho = e.array(Kt), Wt = e.object({
|
|
1592
1784
|
name: e.string().min(1).max(50).openapi({
|
|
1593
1785
|
description: "The name of the role. Cannot include '<' or '>'"
|
|
1594
1786
|
}),
|
|
@@ -1596,14 +1788,14 @@ const Ke = e.object({
|
|
|
1596
1788
|
description: "The description of the role"
|
|
1597
1789
|
}),
|
|
1598
1790
|
is_system: e.boolean().optional()
|
|
1599
|
-
}),
|
|
1791
|
+
}), zt = e.object({
|
|
1600
1792
|
id: e.string().openapi({
|
|
1601
1793
|
description: "The unique identifier of the role"
|
|
1602
1794
|
}),
|
|
1603
|
-
...
|
|
1795
|
+
...Wt.shape,
|
|
1604
1796
|
created_at: e.string().optional(),
|
|
1605
1797
|
updated_at: e.string().optional()
|
|
1606
|
-
}),
|
|
1798
|
+
}), Go = e.array(zt), Xt = e.object({
|
|
1607
1799
|
logo_url: e.string().optional().openapi({
|
|
1608
1800
|
description: "URL of the organization's logo"
|
|
1609
1801
|
}),
|
|
@@ -1615,7 +1807,7 @@ const Ke = e.object({
|
|
|
1615
1807
|
description: "Page background color in hex format (e.g., #FFFFFF)"
|
|
1616
1808
|
})
|
|
1617
1809
|
}).optional()
|
|
1618
|
-
}).optional(),
|
|
1810
|
+
}).optional(), Vt = e.object({
|
|
1619
1811
|
connection_id: e.string().openapi({
|
|
1620
1812
|
description: "ID of the connection"
|
|
1621
1813
|
}),
|
|
@@ -1628,7 +1820,7 @@ const Ke = e.object({
|
|
|
1628
1820
|
is_signup_enabled: e.boolean().default(!0).openapi({
|
|
1629
1821
|
description: "Whether signup is enabled for this connection"
|
|
1630
1822
|
})
|
|
1631
|
-
}),
|
|
1823
|
+
}), qt = e.object({
|
|
1632
1824
|
client_credentials: e.object({
|
|
1633
1825
|
enforce: e.boolean().default(!1).openapi({
|
|
1634
1826
|
description: "Whether to enforce token quota limits"
|
|
@@ -1640,7 +1832,7 @@ const Ke = e.object({
|
|
|
1640
1832
|
description: "Maximum tokens per hour (0 = unlimited)"
|
|
1641
1833
|
})
|
|
1642
1834
|
}).optional()
|
|
1643
|
-
}).optional(),
|
|
1835
|
+
}).optional(), Yt = e.object({
|
|
1644
1836
|
id: e.string().optional(),
|
|
1645
1837
|
name: e.string().min(1).openapi({
|
|
1646
1838
|
description: "The name of the organization"
|
|
@@ -1648,30 +1840,30 @@ const Ke = e.object({
|
|
|
1648
1840
|
display_name: e.string().optional().openapi({
|
|
1649
1841
|
description: "The display name of the organization"
|
|
1650
1842
|
}),
|
|
1651
|
-
branding:
|
|
1843
|
+
branding: Xt,
|
|
1652
1844
|
metadata: e.record(e.any()).default({}).optional().openapi({
|
|
1653
1845
|
description: "Custom metadata for the organization"
|
|
1654
1846
|
}),
|
|
1655
|
-
enabled_connections: e.array(
|
|
1847
|
+
enabled_connections: e.array(Vt).default([]).optional().openapi({
|
|
1656
1848
|
description: "List of enabled connections for the organization"
|
|
1657
1849
|
}),
|
|
1658
|
-
token_quota:
|
|
1659
|
-
}),
|
|
1660
|
-
...
|
|
1661
|
-
...
|
|
1850
|
+
token_quota: qt
|
|
1851
|
+
}), Bo = e.object({
|
|
1852
|
+
...Yt.shape,
|
|
1853
|
+
...s.shape,
|
|
1662
1854
|
id: e.string()
|
|
1663
|
-
}),
|
|
1855
|
+
}), Qt = e.object({
|
|
1664
1856
|
user_id: e.string().openapi({
|
|
1665
1857
|
description: "ID of the user"
|
|
1666
1858
|
}),
|
|
1667
1859
|
organization_id: e.string().openapi({
|
|
1668
1860
|
description: "ID of the organization"
|
|
1669
1861
|
})
|
|
1670
|
-
}),
|
|
1671
|
-
...
|
|
1672
|
-
...
|
|
1862
|
+
}), Ko = e.object({
|
|
1863
|
+
...Qt.shape,
|
|
1864
|
+
...s.shape,
|
|
1673
1865
|
id: e.string()
|
|
1674
|
-
}),
|
|
1866
|
+
}), Wo = e.object({
|
|
1675
1867
|
// Session settings
|
|
1676
1868
|
idle_session_lifetime: e.number().optional(),
|
|
1677
1869
|
session_lifetime: e.number().optional(),
|
|
@@ -1740,7 +1932,7 @@ const Ke = e.object({
|
|
|
1740
1932
|
sessions: e.object({
|
|
1741
1933
|
oidc_logout_prompt_enabled: e.boolean().optional()
|
|
1742
1934
|
}).optional()
|
|
1743
|
-
}),
|
|
1935
|
+
}), zo = e.object({
|
|
1744
1936
|
date: e.string().openapi({
|
|
1745
1937
|
description: "Date these events occurred in ISO 8601 format",
|
|
1746
1938
|
example: "2025-12-19"
|
|
@@ -1765,194 +1957,204 @@ const Ke = e.object({
|
|
|
1765
1957
|
description: "Approximate date and time the first event occurred in ISO 8601 format",
|
|
1766
1958
|
example: "2025-12-19T00:00:00.000Z"
|
|
1767
1959
|
})
|
|
1768
|
-
}),
|
|
1960
|
+
}), Xo = e.number().openapi({
|
|
1769
1961
|
description: "Number of active users in the last 30 days",
|
|
1770
1962
|
example: 1234
|
|
1771
1963
|
});
|
|
1772
|
-
function
|
|
1773
|
-
const [
|
|
1774
|
-
if (!
|
|
1964
|
+
function Vo(t) {
|
|
1965
|
+
const [a, r] = t.split("|");
|
|
1966
|
+
if (!a || !r)
|
|
1775
1967
|
throw new Error(`Invalid user_id: ${t}`);
|
|
1776
|
-
return { connection:
|
|
1968
|
+
return { connection: a, id: r };
|
|
1777
1969
|
}
|
|
1778
|
-
function
|
|
1970
|
+
function qo(t) {
|
|
1779
1971
|
const {
|
|
1780
|
-
primary:
|
|
1781
|
-
secondaries:
|
|
1782
|
-
syncMethods:
|
|
1783
|
-
} = t,
|
|
1784
|
-
get(
|
|
1785
|
-
if (typeof
|
|
1786
|
-
return
|
|
1787
|
-
const
|
|
1788
|
-
return typeof
|
|
1789
|
-
const
|
|
1790
|
-
for (const
|
|
1791
|
-
const
|
|
1792
|
-
if (typeof
|
|
1972
|
+
primary: a,
|
|
1973
|
+
secondaries: r,
|
|
1974
|
+
syncMethods: w = ["create", "update", "remove", "delete", "set"]
|
|
1975
|
+
} = t, U = {
|
|
1976
|
+
get(d, n) {
|
|
1977
|
+
if (typeof n == "symbol")
|
|
1978
|
+
return d[n];
|
|
1979
|
+
const g = d[n];
|
|
1980
|
+
return typeof g != "function" ? g : w.includes(n) ? async (...h) => {
|
|
1981
|
+
const F = await g.apply(d, h), b = [];
|
|
1982
|
+
for (const p of r) {
|
|
1983
|
+
const S = p.adapter[n];
|
|
1984
|
+
if (typeof S != "function")
|
|
1793
1985
|
continue;
|
|
1794
|
-
const
|
|
1986
|
+
const k = (async () => {
|
|
1795
1987
|
try {
|
|
1796
|
-
await
|
|
1797
|
-
} catch (
|
|
1988
|
+
await S.apply(p.adapter, h);
|
|
1989
|
+
} catch (A) {
|
|
1798
1990
|
try {
|
|
1799
|
-
|
|
1800
|
-
`Passthrough adapter: secondary write failed for ${
|
|
1801
|
-
|
|
1991
|
+
p.onError ? p.onError(A, n, h) : console.error(
|
|
1992
|
+
`Passthrough adapter: secondary write failed for ${n}:`,
|
|
1993
|
+
A
|
|
1802
1994
|
);
|
|
1803
|
-
} catch (
|
|
1995
|
+
} catch (v) {
|
|
1804
1996
|
console.error(
|
|
1805
|
-
`Passthrough adapter: onError handler threw for ${
|
|
1806
|
-
|
|
1997
|
+
`Passthrough adapter: onError handler threw for ${n}:`,
|
|
1998
|
+
v
|
|
1807
1999
|
);
|
|
1808
2000
|
}
|
|
1809
2001
|
}
|
|
1810
2002
|
})();
|
|
1811
|
-
|
|
2003
|
+
p.blocking && b.push(k);
|
|
1812
2004
|
}
|
|
1813
|
-
return
|
|
1814
|
-
} :
|
|
2005
|
+
return b.length > 0 && await Promise.all(b), F;
|
|
2006
|
+
} : g.bind(d);
|
|
1815
2007
|
}
|
|
1816
2008
|
};
|
|
1817
|
-
return new Proxy(
|
|
2009
|
+
return new Proxy(a, U);
|
|
1818
2010
|
}
|
|
1819
|
-
function
|
|
2011
|
+
function Yo(t) {
|
|
1820
2012
|
return t;
|
|
1821
2013
|
}
|
|
1822
2014
|
export {
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
2015
|
+
$t as Auth0ActionEnum,
|
|
2016
|
+
St as Auth0Client,
|
|
2017
|
+
T as AuthorizationResponseMode,
|
|
2018
|
+
O as AuthorizationResponseType,
|
|
2019
|
+
N as CodeChallengeMethod,
|
|
2020
|
+
y as ComponentCategory,
|
|
2021
|
+
I as ComponentType,
|
|
2022
|
+
eo as EmailActionEnum,
|
|
2023
|
+
Zt as FlowActionTypeEnum,
|
|
2024
|
+
Ot as GrantType,
|
|
2025
|
+
At as LocationInfo,
|
|
2026
|
+
ft as LogTypes,
|
|
2027
|
+
se as NodeType,
|
|
2028
|
+
H as RedirectTargetEnum,
|
|
2029
|
+
ce as actionNodeSchema,
|
|
2030
|
+
Xo as activeUsersResponseSchema,
|
|
2031
|
+
ro as auth0FlowInsertSchema,
|
|
2032
|
+
ue as auth0FlowSchema,
|
|
2033
|
+
oo as auth0QuerySchema,
|
|
2034
|
+
P as auth0UpdateUserActionSchema,
|
|
2035
|
+
io as auth0UserResponseSchema,
|
|
2036
|
+
me as authParamsSchema,
|
|
2037
|
+
C as baseUserSchema,
|
|
2038
|
+
$e as blockComponentSchema,
|
|
2039
|
+
Tt as bordersSchema,
|
|
2040
|
+
lo as brandingSchema,
|
|
2041
|
+
te as buttonComponentSchema,
|
|
2042
|
+
Z as clientGrantInsertSchema,
|
|
2043
|
+
so as clientGrantListSchema,
|
|
2044
|
+
$ as clientGrantSchema,
|
|
2045
|
+
Q as clientInsertSchema,
|
|
2046
|
+
J as clientSchema,
|
|
2047
|
+
Ce as codeInsertSchema,
|
|
2048
|
+
po as codeSchema,
|
|
2049
|
+
Ae as codeTypeSchema,
|
|
2050
|
+
Nt as colorsSchema,
|
|
2051
|
+
rt as componentMessageSchema,
|
|
2052
|
+
ae as componentSchema,
|
|
2053
|
+
be as connectionInsertSchema,
|
|
2054
|
+
he as connectionOptionsSchema,
|
|
2055
|
+
fe as connectionSchema,
|
|
2056
|
+
c as coordinatesSchema,
|
|
2057
|
+
qo as createPassthroughAdapter,
|
|
2058
|
+
Yo as createWriteOnlyAdapter,
|
|
2059
|
+
Ie as customDomainInsertSchema,
|
|
2060
|
+
Oe as customDomainSchema,
|
|
2061
|
+
_o as customDomainWithTenantIdSchema,
|
|
2062
|
+
zo as dailyStatsSchema,
|
|
2063
|
+
wo as emailProviderSchema,
|
|
2064
|
+
x as emailVerificationRulesSchema,
|
|
2065
|
+
M as emailVerifyActionSchema,
|
|
2066
|
+
ge as endingSchema,
|
|
2067
|
+
tt as fieldComponentSchema,
|
|
2068
|
+
B as flowActionStepSchema,
|
|
2069
|
+
K as flowInsertSchema,
|
|
2070
|
+
to as flowSchema,
|
|
2071
|
+
ne as flowsFieldComponentSchema,
|
|
2072
|
+
le as flowsFlowNodeSchema,
|
|
2073
|
+
re as flowsStepNodeSchema,
|
|
2074
|
+
l as fontDetailsSchema,
|
|
2075
|
+
Rt as fontsSchema,
|
|
2076
|
+
go as formControlSchema,
|
|
2077
|
+
st as formInsertSchema,
|
|
2078
|
+
R as formNodeComponentDefinition,
|
|
2079
|
+
at as formNodeSchema,
|
|
2080
|
+
uo as formSchema,
|
|
2081
|
+
ie as genericComponentSchema,
|
|
2082
|
+
pe as genericNodeSchema,
|
|
2083
|
+
Eo as hookInsertSchema,
|
|
2084
|
+
So as hookSchema,
|
|
2085
|
+
z as identitySchema,
|
|
2086
|
+
mt as inviteInsertSchema,
|
|
2087
|
+
Ao as inviteSchema,
|
|
2088
|
+
ut as inviteeSchema,
|
|
2089
|
+
gt as inviterSchema,
|
|
2090
|
+
ho as isBlockComponent,
|
|
2091
|
+
fo as isFieldComponent,
|
|
2092
|
+
bo as isWidgetComponent,
|
|
2093
|
+
Co as jwksKeySchema,
|
|
2094
|
+
ht as jwksSchema,
|
|
2095
|
+
co as legacyClientSchema,
|
|
2096
|
+
oe as legalComponentSchema,
|
|
2097
|
+
Ct as logInsertSchema,
|
|
2098
|
+
Oo as logSchema,
|
|
2099
|
+
bt as loginSessionInsertSchema,
|
|
2100
|
+
yo as loginSessionSchema,
|
|
2101
|
+
_e as nodeSchema,
|
|
2102
|
+
Io as openIDConfigurationSchema,
|
|
2103
|
+
Xt as organizationBrandingSchema,
|
|
2104
|
+
Vt as organizationEnabledConnectionSchema,
|
|
2105
|
+
Yt as organizationInsertSchema,
|
|
2106
|
+
Bo as organizationSchema,
|
|
2107
|
+
qt as organizationTokenQuotaSchema,
|
|
2108
|
+
Lt as pageBackgroundSchema,
|
|
2109
|
+
Vo as parseUserId,
|
|
2110
|
+
It as passwordInsertSchema,
|
|
2111
|
+
To as passwordSchema,
|
|
2112
|
+
W as profileDataSchema,
|
|
2113
|
+
jo as promptSettingSchema,
|
|
2114
|
+
G as redirectActionSchema,
|
|
2115
|
+
wt as refreshTokenInsertSchema,
|
|
2116
|
+
Uo as refreshTokenSchema,
|
|
2117
|
+
kt as resourceServerInsertSchema,
|
|
2118
|
+
vo as resourceServerListSchema,
|
|
2119
|
+
Ft as resourceServerOptionsSchema,
|
|
2120
|
+
vt as resourceServerSchema,
|
|
2121
|
+
Ut as resourceServerScopeSchema,
|
|
2122
|
+
ee as richTextComponentSchema,
|
|
2123
|
+
Wt as roleInsertSchema,
|
|
2124
|
+
Go as roleListSchema,
|
|
2125
|
+
xt as rolePermissionInsertSchema,
|
|
2126
|
+
xo as rolePermissionListSchema,
|
|
2127
|
+
Pt as rolePermissionSchema,
|
|
2128
|
+
zt as roleSchema,
|
|
2129
|
+
lt as screenLinkSchema,
|
|
2130
|
+
yt as sessionInsertSchema,
|
|
2131
|
+
No as sessionSchema,
|
|
2132
|
+
Ro as signingKeySchema,
|
|
2133
|
+
ko as smsProviderSchema,
|
|
2134
|
+
Fo as smsSendParamsSchema,
|
|
2135
|
+
de as startSchema,
|
|
2136
|
+
Ee as tenantInsertSchema,
|
|
2137
|
+
Se as tenantSchema,
|
|
2138
|
+
Wo as tenantSettingsSchema,
|
|
2139
|
+
jt as themeInsertSchema,
|
|
2140
|
+
Do as themeSchema,
|
|
2141
|
+
Lo as tokenResponseSchema,
|
|
2142
|
+
no as totalsSchema,
|
|
2143
|
+
mo as uiScreenSchema,
|
|
2144
|
+
X as userInsertSchema,
|
|
2145
|
+
Qt as userOrganizationInsertSchema,
|
|
2146
|
+
Ko as userOrganizationSchema,
|
|
2147
|
+
Mt as userPermissionInsertSchema,
|
|
2148
|
+
Po as userPermissionListSchema,
|
|
2149
|
+
Ht as userPermissionSchema,
|
|
2150
|
+
Mo as userPermissionWithDetailsListSchema,
|
|
2151
|
+
Gt as userPermissionWithDetailsSchema,
|
|
2152
|
+
ao as userResponseSchema,
|
|
2153
|
+
Bt as userRoleInsertSchema,
|
|
2154
|
+
Ho as userRoleListSchema,
|
|
2155
|
+
Kt as userRoleSchema,
|
|
2156
|
+
V as userSchema,
|
|
2157
|
+
ye as verificationMethodsSchema,
|
|
2158
|
+
et as widgetComponentSchema,
|
|
2159
|
+
Dt as widgetSchema
|
|
1958
2160
|
};
|