@authhero/adapter-interfaces 0.108.0 → 0.110.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 +942 -130
- package/dist/adapter-interfaces.mjs +412 -321
- package/package.json +1 -1
|
@@ -1,5 +1,61 @@
|
|
|
1
1
|
import { z as e } from "@hono/zod-openapi";
|
|
2
|
-
const
|
|
2
|
+
const i = e.object({
|
|
3
|
+
created_at: e.string(),
|
|
4
|
+
updated_at: e.string()
|
|
5
|
+
}), pt = e.enum(["AUTH0", "EMAIL"]), dt = e.enum([
|
|
6
|
+
"CREATE_USER",
|
|
7
|
+
"GET_USER",
|
|
8
|
+
"UPDATE_USER",
|
|
9
|
+
"SEND_REQUEST",
|
|
10
|
+
"SEND_EMAIL"
|
|
11
|
+
]), gt = e.enum(["VERIFY_EMAIL"]), U = e.object({
|
|
12
|
+
require_mx_record: e.boolean().optional(),
|
|
13
|
+
block_aliases: e.boolean().optional(),
|
|
14
|
+
block_free_emails: e.boolean().optional(),
|
|
15
|
+
block_disposable_emails: e.boolean().optional(),
|
|
16
|
+
blocklist: e.array(e.string()).optional(),
|
|
17
|
+
allowlist: e.array(e.string()).optional()
|
|
18
|
+
}), F = e.object({
|
|
19
|
+
id: e.string(),
|
|
20
|
+
alias: e.string().max(100).optional(),
|
|
21
|
+
type: e.literal("AUTH0"),
|
|
22
|
+
action: e.literal("UPDATE_USER"),
|
|
23
|
+
allow_failure: e.boolean().optional(),
|
|
24
|
+
mask_output: e.boolean().optional(),
|
|
25
|
+
params: e.object({
|
|
26
|
+
connection_id: e.string().optional(),
|
|
27
|
+
user_id: e.string(),
|
|
28
|
+
changes: e.record(e.string(), e.any())
|
|
29
|
+
})
|
|
30
|
+
}), v = e.object({
|
|
31
|
+
id: e.string(),
|
|
32
|
+
alias: e.string().max(100).optional(),
|
|
33
|
+
type: e.literal("EMAIL"),
|
|
34
|
+
action: e.literal("VERIFY_EMAIL"),
|
|
35
|
+
allow_failure: e.boolean().optional(),
|
|
36
|
+
mask_output: e.boolean().optional(),
|
|
37
|
+
params: e.object({
|
|
38
|
+
email: e.string(),
|
|
39
|
+
rules: U.optional()
|
|
40
|
+
})
|
|
41
|
+
}), x = e.union([
|
|
42
|
+
F,
|
|
43
|
+
v
|
|
44
|
+
]), P = e.object({
|
|
45
|
+
name: e.string().min(1).max(150).openapi({
|
|
46
|
+
description: "The name of the flow"
|
|
47
|
+
}),
|
|
48
|
+
// Actions is an array of action steps (Auth0 stores as JSON blob)
|
|
49
|
+
actions: e.array(x).optional().default([]).openapi({
|
|
50
|
+
description: "The list of actions to execute in sequence"
|
|
51
|
+
})
|
|
52
|
+
}), ut = P.extend({
|
|
53
|
+
...i.shape,
|
|
54
|
+
id: e.string().openapi({
|
|
55
|
+
description: "Unique identifier for the flow",
|
|
56
|
+
example: "af_12tMpdJ3iek7svMyZkSh5M"
|
|
57
|
+
})
|
|
58
|
+
}), mt = e.object({
|
|
3
59
|
page: e.string().min(0).optional().default("0").transform((t) => parseInt(t, 10)).openapi({
|
|
4
60
|
description: "The page number where 0 is the first page"
|
|
5
61
|
}),
|
|
@@ -15,14 +71,11 @@ const rt = e.object({
|
|
|
15
71
|
q: e.string().optional().openapi({
|
|
16
72
|
description: "A lucene query string used to filter the results"
|
|
17
73
|
})
|
|
18
|
-
}),
|
|
74
|
+
}), ht = e.object({
|
|
19
75
|
start: e.number(),
|
|
20
76
|
limit: e.number(),
|
|
21
77
|
length: e.number()
|
|
22
|
-
}),
|
|
23
|
-
created_at: e.string(),
|
|
24
|
-
updated_at: e.string()
|
|
25
|
-
}), U = e.object({
|
|
78
|
+
}), M = e.object({
|
|
26
79
|
email: e.string().optional(),
|
|
27
80
|
email_verified: e.boolean().optional(),
|
|
28
81
|
name: e.string().optional(),
|
|
@@ -31,7 +84,7 @@ const rt = e.object({
|
|
|
31
84
|
phone_number: e.string().optional(),
|
|
32
85
|
phone_verified: e.boolean().optional(),
|
|
33
86
|
family_name: e.string().optional()
|
|
34
|
-
}).catchall(e.any()),
|
|
87
|
+
}).catchall(e.any()), H = e.object({
|
|
35
88
|
connection: e.string(),
|
|
36
89
|
user_id: e.string(),
|
|
37
90
|
provider: e.string(),
|
|
@@ -39,7 +92,7 @@ const rt = e.object({
|
|
|
39
92
|
access_token: e.string().optional(),
|
|
40
93
|
access_token_secret: e.string().optional(),
|
|
41
94
|
refresh_token: e.string().optional(),
|
|
42
|
-
profileData:
|
|
95
|
+
profileData: M.optional()
|
|
43
96
|
}), E = e.object({
|
|
44
97
|
email: e.string().optional().transform((t) => t && t.toLowerCase()),
|
|
45
98
|
username: e.string().optional(),
|
|
@@ -55,7 +108,7 @@ const rt = e.object({
|
|
|
55
108
|
user_id: e.string().optional(),
|
|
56
109
|
app_metadata: e.any().default({}).optional(),
|
|
57
110
|
user_metadata: e.any().default({}).optional()
|
|
58
|
-
}),
|
|
111
|
+
}), G = E.extend({
|
|
59
112
|
email_verified: e.boolean().default(!1),
|
|
60
113
|
verify_email: e.boolean().optional(),
|
|
61
114
|
last_ip: e.string().optional(),
|
|
@@ -64,29 +117,29 @@ const rt = e.object({
|
|
|
64
117
|
provider: e.string().optional(),
|
|
65
118
|
connection: e.string(),
|
|
66
119
|
is_social: e.boolean().optional()
|
|
67
|
-
}),
|
|
68
|
-
...
|
|
69
|
-
...
|
|
120
|
+
}), K = e.object({
|
|
121
|
+
...G.shape,
|
|
122
|
+
...i.shape,
|
|
70
123
|
user_id: e.string(),
|
|
71
124
|
provider: e.string(),
|
|
72
125
|
is_social: e.boolean(),
|
|
73
126
|
email: e.string().optional(),
|
|
74
127
|
login_count: e.number().default(0),
|
|
75
|
-
identities: e.array(
|
|
76
|
-
}),
|
|
128
|
+
identities: e.array(H).optional()
|
|
129
|
+
}), bt = K, ft = E.extend({
|
|
77
130
|
login_count: e.number(),
|
|
78
131
|
multifactor: e.array(e.string()).optional(),
|
|
79
132
|
last_ip: e.string().optional(),
|
|
80
133
|
last_login: e.string().optional(),
|
|
81
134
|
user_id: e.string()
|
|
82
|
-
}).catchall(e.any()),
|
|
83
|
-
let
|
|
84
|
-
let n = "",
|
|
135
|
+
}).catchall(e.any()), B = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
136
|
+
let z = (t = 21) => {
|
|
137
|
+
let n = "", a = crypto.getRandomValues(new Uint8Array(t |= 0));
|
|
85
138
|
for (; t--; )
|
|
86
|
-
n +=
|
|
139
|
+
n += B[a[t] & 63];
|
|
87
140
|
return n;
|
|
88
141
|
};
|
|
89
|
-
const
|
|
142
|
+
const W = e.object({
|
|
90
143
|
client_id: e.string().openapi({
|
|
91
144
|
description: "ID of this client."
|
|
92
145
|
}),
|
|
@@ -99,7 +152,7 @@ const H = e.object({
|
|
|
99
152
|
global: e.boolean().default(!1).openapi({
|
|
100
153
|
description: "Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false)."
|
|
101
154
|
}),
|
|
102
|
-
client_secret: e.string().default(() =>
|
|
155
|
+
client_secret: e.string().default(() => z()).optional().openapi({
|
|
103
156
|
description: "Client secret (which you must not make public)."
|
|
104
157
|
}),
|
|
105
158
|
app_type: e.enum([
|
|
@@ -256,11 +309,11 @@ const H = e.object({
|
|
|
256
309
|
description: "Specifies how long, in seconds, a Pushed Authorization Request URI remains valid"
|
|
257
310
|
}),
|
|
258
311
|
token_quota: e.record(e.any()).default({}).optional()
|
|
259
|
-
}),
|
|
312
|
+
}), X = e.object({
|
|
260
313
|
created_at: e.string(),
|
|
261
314
|
updated_at: e.string(),
|
|
262
|
-
...
|
|
263
|
-
}),
|
|
315
|
+
...W.shape
|
|
316
|
+
}), V = e.object({
|
|
264
317
|
client_id: e.string().min(1).openapi({
|
|
265
318
|
description: "ID of the client."
|
|
266
319
|
}),
|
|
@@ -285,14 +338,14 @@ const H = e.object({
|
|
|
285
338
|
authorization_details_types: e.array(e.string()).optional().openapi({
|
|
286
339
|
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."
|
|
287
340
|
})
|
|
288
|
-
}),
|
|
341
|
+
}), q = e.object({
|
|
289
342
|
id: e.string().openapi({
|
|
290
343
|
description: "ID of the client grant."
|
|
291
344
|
}),
|
|
292
|
-
...
|
|
345
|
+
...V.shape,
|
|
293
346
|
created_at: e.string().optional(),
|
|
294
347
|
updated_at: e.string().optional()
|
|
295
|
-
}),
|
|
348
|
+
}), Et = e.array(q), c = e.object({
|
|
296
349
|
x: e.number(),
|
|
297
350
|
y: e.number()
|
|
298
351
|
});
|
|
@@ -301,7 +354,7 @@ const d = e.object({
|
|
|
301
354
|
id: e.string(),
|
|
302
355
|
category: e.nativeEnum(A),
|
|
303
356
|
type: e.nativeEnum(S)
|
|
304
|
-
}),
|
|
357
|
+
}), Y = d.extend({
|
|
305
358
|
category: e.literal(
|
|
306
359
|
"BLOCK"
|
|
307
360
|
/* BLOCK */
|
|
@@ -313,7 +366,7 @@ const d = e.object({
|
|
|
313
366
|
config: e.object({
|
|
314
367
|
content: e.string()
|
|
315
368
|
}).passthrough()
|
|
316
|
-
}),
|
|
369
|
+
}), Q = d.extend({
|
|
317
370
|
category: e.literal(
|
|
318
371
|
"BLOCK"
|
|
319
372
|
/* BLOCK */
|
|
@@ -335,7 +388,7 @@ const d = e.object({
|
|
|
335
388
|
config: e.object({
|
|
336
389
|
text: e.string()
|
|
337
390
|
}).passthrough()
|
|
338
|
-
}),
|
|
391
|
+
}), J = d.extend({
|
|
339
392
|
category: e.literal(
|
|
340
393
|
"FIELD"
|
|
341
394
|
/* FIELD */
|
|
@@ -349,7 +402,7 @@ const d = e.object({
|
|
|
349
402
|
config: e.object({
|
|
350
403
|
text: e.string()
|
|
351
404
|
}).passthrough()
|
|
352
|
-
}),
|
|
405
|
+
}), Z = d.extend({
|
|
353
406
|
category: e.literal(
|
|
354
407
|
"FIELD"
|
|
355
408
|
/* FIELD */
|
|
@@ -402,19 +455,19 @@ const d = e.object({
|
|
|
402
455
|
label: e.string().optional(),
|
|
403
456
|
placeholder: e.string().optional()
|
|
404
457
|
}).passthrough()
|
|
405
|
-
}),
|
|
458
|
+
}), $ = e.object({
|
|
406
459
|
id: e.string(),
|
|
407
460
|
category: e.string(),
|
|
408
461
|
type: e.string()
|
|
409
|
-
}).passthrough(),
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
462
|
+
}).passthrough(), ee = e.union([
|
|
463
|
+
Y,
|
|
464
|
+
Q,
|
|
465
|
+
J,
|
|
466
|
+
Z,
|
|
467
|
+
$
|
|
415
468
|
]);
|
|
416
|
-
var
|
|
417
|
-
const
|
|
469
|
+
var te = /* @__PURE__ */ ((t) => (t.STEP = "STEP", t.FLOW = "FLOW", t.CONDITION = "CONDITION", t.ACTION = "ACTION", t))(te || {});
|
|
470
|
+
const oe = e.object({
|
|
418
471
|
id: e.string(),
|
|
419
472
|
type: e.literal(
|
|
420
473
|
"STEP"
|
|
@@ -423,10 +476,10 @@ const J = e.object({
|
|
|
423
476
|
coordinates: c,
|
|
424
477
|
alias: e.string().optional(),
|
|
425
478
|
config: e.object({
|
|
426
|
-
components: e.array(
|
|
479
|
+
components: e.array(ee),
|
|
427
480
|
next_node: e.string()
|
|
428
481
|
}).passthrough()
|
|
429
|
-
}),
|
|
482
|
+
}), ne = e.object({
|
|
430
483
|
id: e.string(),
|
|
431
484
|
type: e.literal(
|
|
432
485
|
"FLOW"
|
|
@@ -438,42 +491,42 @@ const J = e.object({
|
|
|
438
491
|
flow_id: e.string(),
|
|
439
492
|
next_node: e.string()
|
|
440
493
|
})
|
|
441
|
-
}),
|
|
494
|
+
}), ie = e.object({
|
|
442
495
|
id: e.string(),
|
|
443
496
|
type: e.string(),
|
|
444
497
|
coordinates: c
|
|
445
|
-
}).passthrough(),
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
]),
|
|
498
|
+
}).passthrough(), ae = e.union([
|
|
499
|
+
oe,
|
|
500
|
+
ne,
|
|
501
|
+
ie
|
|
502
|
+
]), se = e.object({
|
|
450
503
|
next_node: e.string(),
|
|
451
504
|
coordinates: c
|
|
452
|
-
}).passthrough(),
|
|
505
|
+
}).passthrough(), re = e.object({
|
|
453
506
|
resume_flow: e.boolean().optional(),
|
|
454
507
|
coordinates: c
|
|
455
|
-
}).passthrough(),
|
|
508
|
+
}).passthrough(), le = e.object({
|
|
456
509
|
id: e.string(),
|
|
457
510
|
name: e.string(),
|
|
458
511
|
languages: e.object({
|
|
459
512
|
primary: e.string()
|
|
460
513
|
}).passthrough(),
|
|
461
|
-
nodes: e.array(
|
|
462
|
-
start:
|
|
463
|
-
ending:
|
|
514
|
+
nodes: e.array(ae),
|
|
515
|
+
start: se,
|
|
516
|
+
ending: re,
|
|
464
517
|
created_at: e.string(),
|
|
465
518
|
updated_at: e.string(),
|
|
466
519
|
links: e.object({
|
|
467
520
|
sdkSrc: e.string().optional(),
|
|
468
521
|
sdk_src: e.string().optional()
|
|
469
522
|
}).passthrough()
|
|
470
|
-
}).passthrough(),
|
|
523
|
+
}).passthrough(), St = le.omit({
|
|
471
524
|
id: !0,
|
|
472
525
|
created_at: !0,
|
|
473
526
|
updated_at: !0
|
|
474
527
|
});
|
|
475
528
|
var I = /* @__PURE__ */ ((t) => (t.TOKEN = "token", t.TOKEN_ID_TOKEN = "token id_token", t.CODE = "code", t))(I || {}), C = /* @__PURE__ */ ((t) => (t.QUERY = "query", t.FRAGMENT = "fragment", t.FORM_POST = "form_post", t.WEB_MESSAGE = "web_message", t.SAML_POST = "saml_post", t))(C || {}), O = /* @__PURE__ */ ((t) => (t.S256 = "S256", t.Plain = "plain", t))(O || {});
|
|
476
|
-
const
|
|
529
|
+
const ce = e.object({
|
|
477
530
|
client_id: e.string(),
|
|
478
531
|
act_as: e.string().optional(),
|
|
479
532
|
response_type: e.nativeEnum(I).optional(),
|
|
@@ -491,7 +544,7 @@ const ie = e.object({
|
|
|
491
544
|
ui_locales: e.string().optional(),
|
|
492
545
|
// The following fields are not available in Auth0
|
|
493
546
|
vendor_id: e.string().optional()
|
|
494
|
-
}),
|
|
547
|
+
}), At = e.object({
|
|
495
548
|
colors: e.object({
|
|
496
549
|
primary: e.string(),
|
|
497
550
|
page_background: e.object({
|
|
@@ -507,7 +560,7 @@ const ie = e.object({
|
|
|
507
560
|
font: e.object({
|
|
508
561
|
url: e.string()
|
|
509
562
|
}).optional()
|
|
510
|
-
}),
|
|
563
|
+
}), _e = e.object({
|
|
511
564
|
kid: e.string().optional(),
|
|
512
565
|
team_id: e.string().optional(),
|
|
513
566
|
realms: e.string().optional(),
|
|
@@ -527,23 +580,23 @@ const ie = e.object({
|
|
|
527
580
|
twilio_sid: e.string().optional(),
|
|
528
581
|
twilio_token: e.string().optional(),
|
|
529
582
|
icon_url: e.string().optional()
|
|
530
|
-
}),
|
|
583
|
+
}), pe = e.object({
|
|
531
584
|
id: e.string().optional(),
|
|
532
585
|
name: e.string(),
|
|
533
586
|
display_name: e.string().optional(),
|
|
534
587
|
strategy: e.string(),
|
|
535
|
-
options:
|
|
588
|
+
options: _e.default({}),
|
|
536
589
|
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
537
590
|
response_type: e.custom().optional(),
|
|
538
591
|
response_mode: e.custom().optional(),
|
|
539
592
|
is_domain_connection: e.boolean().optional(),
|
|
540
593
|
show_as_button: e.boolean().optional(),
|
|
541
594
|
metadata: e.record(e.any()).optional()
|
|
542
|
-
}),
|
|
595
|
+
}), de = e.object({
|
|
543
596
|
id: e.string(),
|
|
544
597
|
created_at: e.string().transform((t) => t === null ? "" : t),
|
|
545
598
|
updated_at: e.string().transform((t) => t === null ? "" : t)
|
|
546
|
-
}).extend(
|
|
599
|
+
}).extend(pe.shape), ge = e.object({
|
|
547
600
|
id: e.string().optional(),
|
|
548
601
|
// Basic settings
|
|
549
602
|
audience: e.string(),
|
|
@@ -663,25 +716,23 @@ const ie = e.object({
|
|
|
663
716
|
// Authorization settings
|
|
664
717
|
pushed_authorization_requests_supported: e.boolean().optional(),
|
|
665
718
|
authorization_response_iss_parameter_supported: e.boolean().optional()
|
|
666
|
-
}),
|
|
719
|
+
}), ue = e.object({
|
|
667
720
|
created_at: e.string().nullable().transform((t) => t ?? ""),
|
|
668
721
|
updated_at: e.string().nullable().transform((t) => t ?? ""),
|
|
669
|
-
...
|
|
722
|
+
...ge.shape,
|
|
670
723
|
id: e.string()
|
|
671
|
-
})
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
});
|
|
677
|
-
const _e = e.enum([
|
|
724
|
+
}), It = e.object({
|
|
725
|
+
...X.shape,
|
|
726
|
+
tenant: ue,
|
|
727
|
+
connections: e.array(de)
|
|
728
|
+
}), me = e.enum([
|
|
678
729
|
"password_reset",
|
|
679
730
|
"email_verification",
|
|
680
731
|
"otp",
|
|
681
732
|
"authorization_code",
|
|
682
733
|
"oauth2_state",
|
|
683
734
|
"ticket"
|
|
684
|
-
]),
|
|
735
|
+
]), he = e.object({
|
|
685
736
|
code_id: e.string().openapi({
|
|
686
737
|
description: "The code that will be used in for instance an email verification flow"
|
|
687
738
|
}),
|
|
@@ -691,7 +742,7 @@ const _e = e.enum([
|
|
|
691
742
|
connection_id: e.string().optional().openapi({
|
|
692
743
|
description: "The connection that the code is connected to"
|
|
693
744
|
}),
|
|
694
|
-
code_type:
|
|
745
|
+
code_type: me,
|
|
695
746
|
code_verifier: e.string().optional().openapi({
|
|
696
747
|
description: "The code verifier used in PKCE in outbound flows"
|
|
697
748
|
}),
|
|
@@ -713,10 +764,10 @@ const _e = e.enum([
|
|
|
713
764
|
expires_at: e.string(),
|
|
714
765
|
used_at: e.string().optional(),
|
|
715
766
|
user_id: e.string().optional()
|
|
716
|
-
}),
|
|
717
|
-
...
|
|
767
|
+
}), Ct = e.object({
|
|
768
|
+
...he.shape,
|
|
718
769
|
created_at: e.string()
|
|
719
|
-
}),
|
|
770
|
+
}), be = e.object({
|
|
720
771
|
domain: e.string(),
|
|
721
772
|
custom_domain_id: e.string().optional(),
|
|
722
773
|
type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
@@ -730,23 +781,23 @@ const _e = e.enum([
|
|
|
730
781
|
"null"
|
|
731
782
|
]).optional(),
|
|
732
783
|
domain_metadata: e.record(e.string().max(255)).optional()
|
|
733
|
-
}),
|
|
784
|
+
}), fe = e.object({
|
|
734
785
|
name: e.literal("txt"),
|
|
735
786
|
record: e.string(),
|
|
736
787
|
domain: e.string()
|
|
737
|
-
}),
|
|
738
|
-
...
|
|
788
|
+
}), Ee = e.object({
|
|
789
|
+
...be.shape,
|
|
739
790
|
custom_domain_id: e.string(),
|
|
740
791
|
primary: e.boolean(),
|
|
741
792
|
status: e.enum(["disabled", "pending", "pending_verification", "ready"]),
|
|
742
793
|
origin_domain_name: e.string().optional(),
|
|
743
794
|
verification: e.object({
|
|
744
|
-
methods: e.array(
|
|
795
|
+
methods: e.array(fe)
|
|
745
796
|
}).optional(),
|
|
746
797
|
tls_policy: e.string().optional()
|
|
747
|
-
}),
|
|
798
|
+
}), Ot = Ee.extend({
|
|
748
799
|
tenant_id: e.string()
|
|
749
|
-
}),
|
|
800
|
+
}), yt = e.object({
|
|
750
801
|
id: e.string(),
|
|
751
802
|
type: e.literal("submit"),
|
|
752
803
|
label: e.string(),
|
|
@@ -765,7 +816,7 @@ const _e = e.enum([
|
|
|
765
816
|
category: e.literal("FIELD").optional(),
|
|
766
817
|
required: e.boolean().optional(),
|
|
767
818
|
sensitive: e.boolean().optional()
|
|
768
|
-
}),
|
|
819
|
+
}), Se = e.discriminatedUnion("type", [
|
|
769
820
|
f.extend({
|
|
770
821
|
type: e.literal("RICH_TEXT"),
|
|
771
822
|
config: e.object({
|
|
@@ -814,7 +865,7 @@ const _e = e.enum([
|
|
|
814
865
|
})
|
|
815
866
|
})
|
|
816
867
|
// Add more component types as needed
|
|
817
|
-
]),
|
|
868
|
+
]), Ae = e.object({
|
|
818
869
|
name: e.string().openapi({
|
|
819
870
|
description: "The name of the form"
|
|
820
871
|
}),
|
|
@@ -865,7 +916,7 @@ const _e = e.enum([
|
|
|
865
916
|
coordinates: e.object({ x: e.number(), y: e.number() }),
|
|
866
917
|
alias: e.string().min(1).max(150).optional(),
|
|
867
918
|
config: e.object({
|
|
868
|
-
components: e.array(
|
|
919
|
+
components: e.array(Se),
|
|
869
920
|
next_node: e.string().optional()
|
|
870
921
|
})
|
|
871
922
|
})
|
|
@@ -888,9 +939,9 @@ const _e = e.enum([
|
|
|
888
939
|
style: e.object({ css: e.string().optional() }).optional()
|
|
889
940
|
}).openapi({
|
|
890
941
|
description: "Schema for flow-based forms (matches new JSON structure)"
|
|
891
|
-
}),
|
|
892
|
-
...
|
|
893
|
-
...
|
|
942
|
+
}), Tt = e.object({
|
|
943
|
+
...i.shape,
|
|
944
|
+
...Ae.shape,
|
|
894
945
|
id: e.string()
|
|
895
946
|
}), T = e.enum([
|
|
896
947
|
"pre-user-registration",
|
|
@@ -912,37 +963,37 @@ const _e = e.enum([
|
|
|
912
963
|
synchronous: e.boolean().default(!1),
|
|
913
964
|
priority: e.number().optional(),
|
|
914
965
|
hook_id: e.string().optional()
|
|
915
|
-
},
|
|
966
|
+
}, Ie = e.object({
|
|
916
967
|
...g,
|
|
917
968
|
trigger_id: T,
|
|
918
969
|
url: e.string()
|
|
919
|
-
}),
|
|
970
|
+
}), Ce = e.object({
|
|
920
971
|
...g,
|
|
921
972
|
trigger_id: N,
|
|
922
973
|
form_id: e.string()
|
|
923
|
-
}),
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
]),
|
|
974
|
+
}), Nt = e.union([
|
|
975
|
+
Ie,
|
|
976
|
+
Ce
|
|
977
|
+
]), Oe = e.object({
|
|
927
978
|
...g,
|
|
928
979
|
trigger_id: T,
|
|
929
|
-
...
|
|
980
|
+
...i.shape,
|
|
930
981
|
hook_id: e.string(),
|
|
931
982
|
url: e.string()
|
|
932
|
-
}),
|
|
983
|
+
}), ye = e.object({
|
|
933
984
|
...g,
|
|
934
985
|
trigger_id: N,
|
|
935
|
-
...
|
|
986
|
+
...i.shape,
|
|
936
987
|
hook_id: e.string(),
|
|
937
988
|
form_id: e.string()
|
|
938
|
-
}),
|
|
989
|
+
}), Rt = e.union([Oe, ye]), Te = e.object({
|
|
939
990
|
name: e.string().optional()
|
|
940
|
-
}),
|
|
991
|
+
}), Ne = e.object({
|
|
941
992
|
email: e.string().optional()
|
|
942
|
-
}),
|
|
993
|
+
}), Re = e.object({
|
|
943
994
|
organization_id: e.string().max(50),
|
|
944
|
-
inviter:
|
|
945
|
-
invitee:
|
|
995
|
+
inviter: Te,
|
|
996
|
+
invitee: Ne,
|
|
946
997
|
invitation_url: e.string().url(),
|
|
947
998
|
client_id: e.string(),
|
|
948
999
|
connection_id: e.string().optional(),
|
|
@@ -951,13 +1002,13 @@ const _e = e.enum([
|
|
|
951
1002
|
ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
|
|
952
1003
|
roles: e.array(e.string()).default([]).optional(),
|
|
953
1004
|
send_invitation_email: e.boolean().default(!0).optional()
|
|
954
|
-
}),
|
|
1005
|
+
}), Lt = e.object({
|
|
955
1006
|
id: e.string(),
|
|
956
1007
|
organization_id: e.string().max(50),
|
|
957
1008
|
created_at: e.string().datetime(),
|
|
958
1009
|
expires_at: e.string().datetime(),
|
|
959
1010
|
ticket_id: e.string().optional()
|
|
960
|
-
}).extend(
|
|
1011
|
+
}).extend(Re.shape), Le = e.object({
|
|
961
1012
|
alg: e.enum([
|
|
962
1013
|
"RS256",
|
|
963
1014
|
"RS384",
|
|
@@ -976,9 +1027,9 @@ const _e = e.enum([
|
|
|
976
1027
|
x5t: e.string().optional(),
|
|
977
1028
|
x5c: e.array(e.string()).optional(),
|
|
978
1029
|
use: e.enum(["sig", "enc"]).optional()
|
|
979
|
-
}),
|
|
980
|
-
keys: e.array(
|
|
981
|
-
}),
|
|
1030
|
+
}), Dt = e.object({
|
|
1031
|
+
keys: e.array(Le)
|
|
1032
|
+
}), wt = e.object({
|
|
982
1033
|
issuer: e.string(),
|
|
983
1034
|
authorization_endpoint: e.string(),
|
|
984
1035
|
token_endpoint: e.string(),
|
|
@@ -999,10 +1050,10 @@ const _e = e.enum([
|
|
|
999
1050
|
request_uri_parameter_supported: e.boolean(),
|
|
1000
1051
|
request_parameter_supported: e.boolean(),
|
|
1001
1052
|
token_endpoint_auth_signing_alg_values_supported: e.array(e.string())
|
|
1002
|
-
}),
|
|
1053
|
+
}), De = e.object({
|
|
1003
1054
|
csrf_token: e.string(),
|
|
1004
1055
|
auth0Client: e.string().optional(),
|
|
1005
|
-
authParams:
|
|
1056
|
+
authParams: ce,
|
|
1006
1057
|
expires_at: e.string(),
|
|
1007
1058
|
deleted_at: e.string().optional(),
|
|
1008
1059
|
ip: e.string().optional(),
|
|
@@ -1012,14 +1063,14 @@ const _e = e.enum([
|
|
|
1012
1063
|
login_completed: e.boolean().optional().default(!1)
|
|
1013
1064
|
}).openapi({
|
|
1014
1065
|
description: "This represents a login sesion"
|
|
1015
|
-
}),
|
|
1016
|
-
...
|
|
1066
|
+
}), jt = e.object({
|
|
1067
|
+
...De.shape,
|
|
1017
1068
|
id: e.string().openapi({
|
|
1018
1069
|
description: "This is is used as the state in the universal login"
|
|
1019
1070
|
}),
|
|
1020
1071
|
created_at: e.string(),
|
|
1021
1072
|
updated_at: e.string()
|
|
1022
|
-
}),
|
|
1073
|
+
}), we = {
|
|
1023
1074
|
// Network & System
|
|
1024
1075
|
ACLS_SUMMARY: "acls_summary",
|
|
1025
1076
|
ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
|
|
@@ -1186,24 +1237,24 @@ const _e = e.enum([
|
|
|
1186
1237
|
WARNING_DURING_LOGIN: "w",
|
|
1187
1238
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
1188
1239
|
WARNING_USER_MANAGEMENT: "wum"
|
|
1189
|
-
},
|
|
1190
|
-
(t) => Object.values(
|
|
1240
|
+
}, je = e.string().refine(
|
|
1241
|
+
(t) => Object.values(we).includes(t),
|
|
1191
1242
|
{ message: "Invalid log type" }
|
|
1192
|
-
),
|
|
1243
|
+
), ke = e.object({
|
|
1193
1244
|
name: e.string(),
|
|
1194
1245
|
version: e.string(),
|
|
1195
1246
|
env: e.object({
|
|
1196
1247
|
node: e.string().optional()
|
|
1197
1248
|
}).optional()
|
|
1198
|
-
}),
|
|
1249
|
+
}), Ue = e.object({
|
|
1199
1250
|
country_code: e.string().length(2),
|
|
1200
1251
|
city_name: e.string(),
|
|
1201
1252
|
latitude: e.string(),
|
|
1202
1253
|
longitude: e.string(),
|
|
1203
1254
|
time_zone: e.string(),
|
|
1204
1255
|
continent_code: e.string()
|
|
1205
|
-
}),
|
|
1206
|
-
type:
|
|
1256
|
+
}), Fe = e.object({
|
|
1257
|
+
type: je,
|
|
1207
1258
|
date: e.string(),
|
|
1208
1259
|
description: e.string().optional(),
|
|
1209
1260
|
ip: e.string().optional(),
|
|
@@ -1222,30 +1273,30 @@ const _e = e.enum([
|
|
|
1222
1273
|
strategy: e.string().optional(),
|
|
1223
1274
|
strategy_type: e.string().optional(),
|
|
1224
1275
|
hostname: e.string().optional(),
|
|
1225
|
-
auth0_client:
|
|
1276
|
+
auth0_client: ke.optional(),
|
|
1226
1277
|
log_id: e.string().optional(),
|
|
1227
|
-
location_info:
|
|
1228
|
-
}),
|
|
1229
|
-
...
|
|
1278
|
+
location_info: Ue.optional()
|
|
1279
|
+
}), kt = e.object({
|
|
1280
|
+
...Fe.shape,
|
|
1230
1281
|
log_id: e.string()
|
|
1231
|
-
}),
|
|
1282
|
+
}), ve = e.object({
|
|
1232
1283
|
id: e.string().optional(),
|
|
1233
1284
|
user_id: e.string(),
|
|
1234
1285
|
password: e.string(),
|
|
1235
1286
|
algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
|
|
1236
1287
|
is_current: e.boolean().default(!0)
|
|
1237
|
-
}),
|
|
1288
|
+
}), Ut = ve.extend({
|
|
1238
1289
|
id: e.string(),
|
|
1239
1290
|
created_at: e.string(),
|
|
1240
1291
|
updated_at: e.string()
|
|
1241
|
-
}),
|
|
1292
|
+
}), R = e.object({
|
|
1242
1293
|
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
1243
1294
|
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
1244
1295
|
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
1245
1296
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
1246
1297
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
1247
1298
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
1248
|
-
}),
|
|
1299
|
+
}), xe = e.object({
|
|
1249
1300
|
id: e.string(),
|
|
1250
1301
|
revoked_at: e.string().optional(),
|
|
1251
1302
|
used_at: e.string().optional(),
|
|
@@ -1253,17 +1304,17 @@ const _e = e.enum([
|
|
|
1253
1304
|
expires_at: e.string().optional(),
|
|
1254
1305
|
login_session_id: e.string(),
|
|
1255
1306
|
idle_expires_at: e.string().optional(),
|
|
1256
|
-
device:
|
|
1307
|
+
device: R.describe(
|
|
1257
1308
|
"Metadata related to the device used in the session"
|
|
1258
1309
|
),
|
|
1259
1310
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
1260
|
-
}),
|
|
1311
|
+
}), Ft = e.object({
|
|
1261
1312
|
created_at: e.string(),
|
|
1262
1313
|
updated_at: e.string(),
|
|
1263
1314
|
authenticated_at: e.string(),
|
|
1264
1315
|
last_interaction_at: e.string(),
|
|
1265
|
-
...
|
|
1266
|
-
}),
|
|
1316
|
+
...xe.shape
|
|
1317
|
+
}), vt = e.object({
|
|
1267
1318
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
1268
1319
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
1269
1320
|
fingerprint: e.string().openapi({ description: "The cert fingerprint" }),
|
|
@@ -1289,8 +1340,8 @@ const _e = e.enum([
|
|
|
1289
1340
|
description: "The type of the signing key"
|
|
1290
1341
|
})
|
|
1291
1342
|
});
|
|
1292
|
-
var
|
|
1293
|
-
const
|
|
1343
|
+
var Pe = /* @__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))(Pe || {});
|
|
1344
|
+
const xt = e.object({
|
|
1294
1345
|
access_token: e.string(),
|
|
1295
1346
|
id_token: e.string().optional(),
|
|
1296
1347
|
scope: e.string().optional(),
|
|
@@ -1303,7 +1354,7 @@ e.object({
|
|
|
1303
1354
|
code: e.string(),
|
|
1304
1355
|
state: e.string().optional()
|
|
1305
1356
|
});
|
|
1306
|
-
const
|
|
1357
|
+
const Me = e.object({
|
|
1307
1358
|
button_border_radius: e.number(),
|
|
1308
1359
|
button_border_weight: e.number(),
|
|
1309
1360
|
buttons_style: e.enum(["pill", "rounded", "sharp"]),
|
|
@@ -1313,7 +1364,7 @@ const Ue = e.object({
|
|
|
1313
1364
|
show_widget_shadow: e.boolean(),
|
|
1314
1365
|
widget_border_weight: e.number(),
|
|
1315
1366
|
widget_corner_radius: e.number()
|
|
1316
|
-
}),
|
|
1367
|
+
}), He = e.object({
|
|
1317
1368
|
base_focus_color: e.string(),
|
|
1318
1369
|
base_hover_color: e.string(),
|
|
1319
1370
|
body_text: e.string(),
|
|
@@ -1333,44 +1384,44 @@ const Ue = e.object({
|
|
|
1333
1384
|
success: e.string(),
|
|
1334
1385
|
widget_background: e.string(),
|
|
1335
1386
|
widget_border: e.string()
|
|
1336
|
-
}),
|
|
1387
|
+
}), s = e.object({
|
|
1337
1388
|
bold: e.boolean(),
|
|
1338
1389
|
size: e.number()
|
|
1339
|
-
}),
|
|
1340
|
-
body_text:
|
|
1341
|
-
buttons_text:
|
|
1390
|
+
}), Ge = e.object({
|
|
1391
|
+
body_text: s,
|
|
1392
|
+
buttons_text: s,
|
|
1342
1393
|
font_url: e.string(),
|
|
1343
|
-
input_labels:
|
|
1344
|
-
links:
|
|
1394
|
+
input_labels: s,
|
|
1395
|
+
links: s,
|
|
1345
1396
|
links_style: e.enum(["normal", "underlined"]),
|
|
1346
1397
|
reference_text_size: e.number(),
|
|
1347
|
-
subtitle:
|
|
1348
|
-
title:
|
|
1349
|
-
}),
|
|
1398
|
+
subtitle: s,
|
|
1399
|
+
title: s
|
|
1400
|
+
}), Ke = e.object({
|
|
1350
1401
|
background_color: e.string(),
|
|
1351
1402
|
background_image_url: e.string(),
|
|
1352
1403
|
page_layout: e.enum(["center", "left", "right"])
|
|
1353
|
-
}),
|
|
1404
|
+
}), Be = e.object({
|
|
1354
1405
|
header_text_alignment: e.enum(["center", "left", "right"]),
|
|
1355
1406
|
logo_height: e.number(),
|
|
1356
1407
|
logo_position: e.enum(["center", "left", "none", "right"]),
|
|
1357
1408
|
logo_url: e.string(),
|
|
1358
1409
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
1359
|
-
}),
|
|
1360
|
-
borders:
|
|
1361
|
-
colors:
|
|
1410
|
+
}), ze = e.object({
|
|
1411
|
+
borders: Me,
|
|
1412
|
+
colors: He,
|
|
1362
1413
|
displayName: e.string(),
|
|
1363
|
-
fonts:
|
|
1364
|
-
page_background:
|
|
1365
|
-
widget:
|
|
1366
|
-
}),
|
|
1414
|
+
fonts: Ge,
|
|
1415
|
+
page_background: Ke,
|
|
1416
|
+
widget: Be
|
|
1417
|
+
}), Pt = ze.extend({
|
|
1367
1418
|
themeId: e.string()
|
|
1368
|
-
}),
|
|
1419
|
+
}), Mt = e.object({
|
|
1369
1420
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
1370
1421
|
identifier_first: e.boolean().default(!0),
|
|
1371
1422
|
password_first: e.boolean().default(!1),
|
|
1372
1423
|
webauthn_platform_first_factor: e.boolean()
|
|
1373
|
-
}),
|
|
1424
|
+
}), Ht = e.object({
|
|
1374
1425
|
name: e.string(),
|
|
1375
1426
|
enabled: e.boolean().optional().default(!0),
|
|
1376
1427
|
default_from_address: e.string().optional(),
|
|
@@ -1400,7 +1451,7 @@ const Ue = e.object({
|
|
|
1400
1451
|
})
|
|
1401
1452
|
]),
|
|
1402
1453
|
settings: e.object({}).optional()
|
|
1403
|
-
}),
|
|
1454
|
+
}), We = e.object({
|
|
1404
1455
|
// The actual refresh token value (primary key).
|
|
1405
1456
|
id: e.string(),
|
|
1406
1457
|
// Link to the session record
|
|
@@ -1413,7 +1464,7 @@ const Ue = e.object({
|
|
|
1413
1464
|
idle_expires_at: e.string().optional(),
|
|
1414
1465
|
// When the token was last used.
|
|
1415
1466
|
last_exchanged_at: e.string().optional(),
|
|
1416
|
-
device:
|
|
1467
|
+
device: R,
|
|
1417
1468
|
resource_servers: e.array(
|
|
1418
1469
|
e.object({
|
|
1419
1470
|
audience: e.string(),
|
|
@@ -1421,21 +1472,21 @@ const Ue = e.object({
|
|
|
1421
1472
|
})
|
|
1422
1473
|
),
|
|
1423
1474
|
rotating: e.boolean()
|
|
1424
|
-
}),
|
|
1475
|
+
}), Gt = e.object({
|
|
1425
1476
|
// When the refresh token record was created.
|
|
1426
1477
|
created_at: e.string(),
|
|
1427
1478
|
// Spread in the rest of the refresh token properties.
|
|
1428
|
-
...
|
|
1429
|
-
}),
|
|
1479
|
+
...We.shape
|
|
1480
|
+
}), Kt = e.object({
|
|
1430
1481
|
to: e.string(),
|
|
1431
1482
|
message: e.string()
|
|
1432
|
-
}),
|
|
1483
|
+
}), Bt = e.object({
|
|
1433
1484
|
name: e.string(),
|
|
1434
1485
|
options: e.object({})
|
|
1435
|
-
}),
|
|
1486
|
+
}), Xe = e.object({
|
|
1436
1487
|
value: e.string(),
|
|
1437
1488
|
description: e.string().optional()
|
|
1438
|
-
}),
|
|
1489
|
+
}), Ve = e.object({
|
|
1439
1490
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
1440
1491
|
enforce_policies: e.boolean().optional(),
|
|
1441
1492
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -1445,10 +1496,10 @@ const Ue = e.object({
|
|
|
1445
1496
|
mtls: e.object({
|
|
1446
1497
|
bound_access_tokens: e.boolean().optional()
|
|
1447
1498
|
}).optional()
|
|
1448
|
-
}),
|
|
1499
|
+
}), qe = e.object({
|
|
1449
1500
|
name: e.string(),
|
|
1450
1501
|
identifier: e.string(),
|
|
1451
|
-
scopes: e.array(
|
|
1502
|
+
scopes: e.array(Xe).optional(),
|
|
1452
1503
|
signing_alg: e.string().optional(),
|
|
1453
1504
|
signing_secret: e.string().optional(),
|
|
1454
1505
|
token_lifetime: e.number().optional(),
|
|
@@ -1456,29 +1507,29 @@ const Ue = e.object({
|
|
|
1456
1507
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
1457
1508
|
allow_offline_access: e.boolean().optional(),
|
|
1458
1509
|
verificationKey: e.string().optional(),
|
|
1459
|
-
options:
|
|
1460
|
-
}),
|
|
1510
|
+
options: Ve.optional()
|
|
1511
|
+
}), Ye = e.object({
|
|
1461
1512
|
id: e.string().optional(),
|
|
1462
|
-
...
|
|
1513
|
+
...qe.shape,
|
|
1463
1514
|
created_at: e.string().optional(),
|
|
1464
1515
|
updated_at: e.string().optional()
|
|
1465
|
-
}),
|
|
1516
|
+
}), zt = e.array(Ye), Qe = e.object({
|
|
1466
1517
|
role_id: e.string(),
|
|
1467
1518
|
resource_server_identifier: e.string(),
|
|
1468
1519
|
permission_name: e.string()
|
|
1469
|
-
}),
|
|
1470
|
-
...
|
|
1520
|
+
}), Je = e.object({
|
|
1521
|
+
...Qe.shape,
|
|
1471
1522
|
created_at: e.string()
|
|
1472
|
-
}),
|
|
1523
|
+
}), Wt = e.array(Je), Ze = e.object({
|
|
1473
1524
|
user_id: e.string(),
|
|
1474
1525
|
resource_server_identifier: e.string(),
|
|
1475
1526
|
permission_name: e.string(),
|
|
1476
1527
|
organization_id: e.string().optional()
|
|
1477
|
-
}),
|
|
1478
|
-
...
|
|
1528
|
+
}), $e = e.object({
|
|
1529
|
+
...Ze.shape,
|
|
1479
1530
|
tenant_id: e.string(),
|
|
1480
1531
|
created_at: e.string().optional()
|
|
1481
|
-
}),
|
|
1532
|
+
}), Xt = e.array($e), et = e.object({
|
|
1482
1533
|
user_id: e.string(),
|
|
1483
1534
|
resource_server_identifier: e.string(),
|
|
1484
1535
|
resource_server_name: e.string(),
|
|
@@ -1486,31 +1537,31 @@ const Ue = e.object({
|
|
|
1486
1537
|
description: e.string().nullable().optional(),
|
|
1487
1538
|
created_at: e.string().optional(),
|
|
1488
1539
|
organization_id: e.string().optional()
|
|
1489
|
-
}),
|
|
1490
|
-
|
|
1491
|
-
),
|
|
1540
|
+
}), Vt = e.array(
|
|
1541
|
+
et
|
|
1542
|
+
), tt = e.object({
|
|
1492
1543
|
user_id: e.string(),
|
|
1493
1544
|
role_id: e.string(),
|
|
1494
1545
|
organization_id: e.string().optional()
|
|
1495
|
-
}),
|
|
1496
|
-
...
|
|
1546
|
+
}), ot = e.object({
|
|
1547
|
+
...tt.shape,
|
|
1497
1548
|
tenant_id: e.string(),
|
|
1498
1549
|
created_at: e.string().optional()
|
|
1499
|
-
}),
|
|
1550
|
+
}), qt = e.array(ot), nt = e.object({
|
|
1500
1551
|
name: e.string().min(1).max(50).openapi({
|
|
1501
1552
|
description: "The name of the role. Cannot include '<' or '>'"
|
|
1502
1553
|
}),
|
|
1503
1554
|
description: e.string().max(255).optional().openapi({
|
|
1504
1555
|
description: "The description of the role"
|
|
1505
1556
|
})
|
|
1506
|
-
}),
|
|
1557
|
+
}), it = e.object({
|
|
1507
1558
|
id: e.string().openapi({
|
|
1508
1559
|
description: "The unique identifier of the role"
|
|
1509
1560
|
}),
|
|
1510
|
-
...
|
|
1561
|
+
...nt.shape,
|
|
1511
1562
|
created_at: e.string().optional(),
|
|
1512
1563
|
updated_at: e.string().optional()
|
|
1513
|
-
}),
|
|
1564
|
+
}), Yt = e.array(it), at = e.object({
|
|
1514
1565
|
logo_url: e.string().optional().openapi({
|
|
1515
1566
|
description: "URL of the organization's logo"
|
|
1516
1567
|
}),
|
|
@@ -1522,7 +1573,7 @@ const Ue = e.object({
|
|
|
1522
1573
|
description: "Page background color in hex format (e.g., #FFFFFF)"
|
|
1523
1574
|
})
|
|
1524
1575
|
}).optional()
|
|
1525
|
-
}).optional(),
|
|
1576
|
+
}).optional(), st = e.object({
|
|
1526
1577
|
connection_id: e.string().openapi({
|
|
1527
1578
|
description: "ID of the connection"
|
|
1528
1579
|
}),
|
|
@@ -1535,7 +1586,7 @@ const Ue = e.object({
|
|
|
1535
1586
|
is_signup_enabled: e.boolean().default(!0).openapi({
|
|
1536
1587
|
description: "Whether signup is enabled for this connection"
|
|
1537
1588
|
})
|
|
1538
|
-
}),
|
|
1589
|
+
}), rt = e.object({
|
|
1539
1590
|
client_credentials: e.object({
|
|
1540
1591
|
enforce: e.boolean().default(!1).openapi({
|
|
1541
1592
|
description: "Whether to enforce token quota limits"
|
|
@@ -1547,7 +1598,7 @@ const Ue = e.object({
|
|
|
1547
1598
|
description: "Maximum tokens per hour (0 = unlimited)"
|
|
1548
1599
|
})
|
|
1549
1600
|
}).optional()
|
|
1550
|
-
}).optional(),
|
|
1601
|
+
}).optional(), lt = e.object({
|
|
1551
1602
|
id: e.string().optional(),
|
|
1552
1603
|
name: e.string().min(1).openapi({
|
|
1553
1604
|
description: "The name of the organization"
|
|
@@ -1555,30 +1606,30 @@ const Ue = e.object({
|
|
|
1555
1606
|
display_name: e.string().optional().openapi({
|
|
1556
1607
|
description: "The display name of the organization"
|
|
1557
1608
|
}),
|
|
1558
|
-
branding:
|
|
1609
|
+
branding: at,
|
|
1559
1610
|
metadata: e.record(e.any()).default({}).optional().openapi({
|
|
1560
1611
|
description: "Custom metadata for the organization"
|
|
1561
1612
|
}),
|
|
1562
|
-
enabled_connections: e.array(
|
|
1613
|
+
enabled_connections: e.array(st).default([]).optional().openapi({
|
|
1563
1614
|
description: "List of enabled connections for the organization"
|
|
1564
1615
|
}),
|
|
1565
|
-
token_quota:
|
|
1566
|
-
}),
|
|
1567
|
-
...
|
|
1568
|
-
...
|
|
1616
|
+
token_quota: rt
|
|
1617
|
+
}), Qt = e.object({
|
|
1618
|
+
...lt.shape,
|
|
1619
|
+
...i.shape,
|
|
1569
1620
|
id: e.string()
|
|
1570
|
-
}),
|
|
1621
|
+
}), ct = e.object({
|
|
1571
1622
|
user_id: e.string().openapi({
|
|
1572
1623
|
description: "ID of the user"
|
|
1573
1624
|
}),
|
|
1574
1625
|
organization_id: e.string().openapi({
|
|
1575
1626
|
description: "ID of the organization"
|
|
1576
1627
|
})
|
|
1577
|
-
}),
|
|
1578
|
-
...
|
|
1579
|
-
...
|
|
1628
|
+
}), Jt = e.object({
|
|
1629
|
+
...ct.shape,
|
|
1630
|
+
...i.shape,
|
|
1580
1631
|
id: e.string()
|
|
1581
|
-
}),
|
|
1632
|
+
}), Zt = e.object({
|
|
1582
1633
|
// Session settings
|
|
1583
1634
|
idle_session_lifetime: e.number().optional(),
|
|
1584
1635
|
session_lifetime: e.number().optional(),
|
|
@@ -1647,35 +1698,63 @@ const Ue = e.object({
|
|
|
1647
1698
|
sessions: e.object({
|
|
1648
1699
|
oidc_logout_prompt_enabled: e.boolean().optional()
|
|
1649
1700
|
}).optional()
|
|
1701
|
+
}), $t = e.object({
|
|
1702
|
+
date: e.string().openapi({
|
|
1703
|
+
description: "Date these events occurred in ISO 8601 format",
|
|
1704
|
+
example: "2025-12-19"
|
|
1705
|
+
}),
|
|
1706
|
+
logins: e.number().openapi({
|
|
1707
|
+
description: "Number of logins on this date",
|
|
1708
|
+
example: 150
|
|
1709
|
+
}),
|
|
1710
|
+
signups: e.number().openapi({
|
|
1711
|
+
description: "Number of signups on this date",
|
|
1712
|
+
example: 25
|
|
1713
|
+
}),
|
|
1714
|
+
leaked_passwords: e.number().openapi({
|
|
1715
|
+
description: "Number of breached-password detections on this date (subscription required)",
|
|
1716
|
+
example: 0
|
|
1717
|
+
}),
|
|
1718
|
+
updated_at: e.string().openapi({
|
|
1719
|
+
description: "Date and time this stats entry was last updated in ISO 8601 format",
|
|
1720
|
+
example: "2025-12-19T10:30:00.000Z"
|
|
1721
|
+
}),
|
|
1722
|
+
created_at: e.string().openapi({
|
|
1723
|
+
description: "Approximate date and time the first event occurred in ISO 8601 format",
|
|
1724
|
+
example: "2025-12-19T00:00:00.000Z"
|
|
1725
|
+
})
|
|
1726
|
+
}), eo = e.number().openapi({
|
|
1727
|
+
description: "Number of active users in the last 30 days",
|
|
1728
|
+
example: 1234
|
|
1650
1729
|
});
|
|
1651
|
-
function
|
|
1652
|
-
const [n,
|
|
1653
|
-
if (!n || !
|
|
1730
|
+
function to(t) {
|
|
1731
|
+
const [n, a] = t.split("|");
|
|
1732
|
+
if (!n || !a)
|
|
1654
1733
|
throw new Error(`Invalid user_id: ${t}`);
|
|
1655
|
-
return { connection: n, id:
|
|
1734
|
+
return { connection: n, id: a };
|
|
1656
1735
|
}
|
|
1657
|
-
function
|
|
1736
|
+
function oo(t) {
|
|
1658
1737
|
const {
|
|
1659
1738
|
primary: n,
|
|
1660
|
-
secondaries:
|
|
1661
|
-
syncMethods:
|
|
1739
|
+
secondaries: a,
|
|
1740
|
+
syncMethods: L = ["create", "update", "remove", "delete", "set"]
|
|
1662
1741
|
} = t, D = {
|
|
1663
1742
|
get(_, o) {
|
|
1664
1743
|
if (typeof o == "symbol")
|
|
1665
1744
|
return _[o];
|
|
1666
1745
|
const p = _[o];
|
|
1667
|
-
return typeof p != "function" ? p :
|
|
1746
|
+
return typeof p != "function" ? p : L.includes(o) ? async (...u) => {
|
|
1668
1747
|
const w = await p.apply(_, u), m = [];
|
|
1669
|
-
for (const
|
|
1670
|
-
const h =
|
|
1748
|
+
for (const r of a) {
|
|
1749
|
+
const h = r.adapter[o];
|
|
1671
1750
|
if (typeof h != "function")
|
|
1672
1751
|
continue;
|
|
1673
1752
|
const j = (async () => {
|
|
1674
1753
|
try {
|
|
1675
|
-
await h.apply(
|
|
1754
|
+
await h.apply(r.adapter, u);
|
|
1676
1755
|
} catch (b) {
|
|
1677
1756
|
try {
|
|
1678
|
-
|
|
1757
|
+
r.onError ? r.onError(b, o, u) : console.error(
|
|
1679
1758
|
`Passthrough adapter: secondary write failed for ${o}:`,
|
|
1680
1759
|
b
|
|
1681
1760
|
);
|
|
@@ -1687,7 +1766,7 @@ function zt(t) {
|
|
|
1687
1766
|
}
|
|
1688
1767
|
}
|
|
1689
1768
|
})();
|
|
1690
|
-
|
|
1769
|
+
r.blocking && m.push(j);
|
|
1691
1770
|
}
|
|
1692
1771
|
return m.length > 0 && await Promise.all(m), w;
|
|
1693
1772
|
} : p.bind(_);
|
|
@@ -1695,128 +1774,140 @@ function zt(t) {
|
|
|
1695
1774
|
};
|
|
1696
1775
|
return new Proxy(n, D);
|
|
1697
1776
|
}
|
|
1698
|
-
function
|
|
1777
|
+
function no(t) {
|
|
1699
1778
|
return t;
|
|
1700
1779
|
}
|
|
1701
1780
|
export {
|
|
1702
|
-
|
|
1781
|
+
dt as Auth0ActionEnum,
|
|
1782
|
+
ke as Auth0Client,
|
|
1703
1783
|
C as AuthorizationResponseMode,
|
|
1704
1784
|
I as AuthorizationResponseType,
|
|
1705
1785
|
O as CodeChallengeMethod,
|
|
1706
1786
|
A as ComponentCategory,
|
|
1707
1787
|
S as ComponentType,
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1788
|
+
gt as EmailActionEnum,
|
|
1789
|
+
pt as FlowActionTypeEnum,
|
|
1790
|
+
Pe as GrantType,
|
|
1791
|
+
Ue as LocationInfo,
|
|
1792
|
+
we as LogTypes,
|
|
1793
|
+
te as NodeType,
|
|
1794
|
+
eo as activeUsersResponseSchema,
|
|
1795
|
+
St as auth0FlowInsertSchema,
|
|
1796
|
+
le as auth0FlowSchema,
|
|
1797
|
+
mt as auth0QuerySchema,
|
|
1798
|
+
F as auth0UpdateUserActionSchema,
|
|
1799
|
+
bt as auth0UserResponseSchema,
|
|
1800
|
+
ce as authParamsSchema,
|
|
1717
1801
|
E as baseUserSchema,
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1802
|
+
Me as bordersSchema,
|
|
1803
|
+
At as brandingSchema,
|
|
1804
|
+
Q as buttonComponentSchema,
|
|
1805
|
+
V as clientGrantInsertSchema,
|
|
1806
|
+
Et as clientGrantListSchema,
|
|
1807
|
+
q as clientGrantSchema,
|
|
1808
|
+
W as clientInsertSchema,
|
|
1809
|
+
X as clientSchema,
|
|
1810
|
+
he as codeInsertSchema,
|
|
1811
|
+
Ct as codeSchema,
|
|
1812
|
+
me as codeTypeSchema,
|
|
1813
|
+
He as colorsSchema,
|
|
1814
|
+
ee as componentSchema,
|
|
1815
|
+
pe as connectionInsertSchema,
|
|
1816
|
+
_e as connectionOptionsSchema,
|
|
1817
|
+
de as connectionSchema,
|
|
1734
1818
|
c as coordinatesSchema,
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
ct as
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1819
|
+
oo as createPassthroughAdapter,
|
|
1820
|
+
no as createWriteOnlyAdapter,
|
|
1821
|
+
be as customDomainInsertSchema,
|
|
1822
|
+
Ee as customDomainSchema,
|
|
1823
|
+
Ot as customDomainWithTenantIdSchema,
|
|
1824
|
+
$t as dailyStatsSchema,
|
|
1825
|
+
Ht as emailProviderSchema,
|
|
1826
|
+
U as emailVerificationRulesSchema,
|
|
1827
|
+
v as emailVerifyActionSchema,
|
|
1828
|
+
re as endingSchema,
|
|
1829
|
+
Z as fieldComponentSchema,
|
|
1830
|
+
x as flowActionStepSchema,
|
|
1831
|
+
P as flowInsertSchema,
|
|
1832
|
+
ne as flowNodeSchema,
|
|
1833
|
+
ut as flowSchema,
|
|
1834
|
+
s as fontDetailsSchema,
|
|
1835
|
+
Ge as fontsSchema,
|
|
1836
|
+
yt as formControlSchema,
|
|
1837
|
+
Ae as formInsertSchema,
|
|
1838
|
+
Se as formNodeComponentDefinition,
|
|
1839
|
+
Tt as formSchema,
|
|
1840
|
+
$ as genericComponentSchema,
|
|
1841
|
+
ie as genericNodeSchema,
|
|
1842
|
+
Nt as hookInsertSchema,
|
|
1843
|
+
Rt as hookSchema,
|
|
1844
|
+
H as identitySchema,
|
|
1845
|
+
Re as inviteInsertSchema,
|
|
1846
|
+
Lt as inviteSchema,
|
|
1847
|
+
Ne as inviteeSchema,
|
|
1848
|
+
Te as inviterSchema,
|
|
1849
|
+
Dt as jwksKeySchema,
|
|
1850
|
+
Le as jwksSchema,
|
|
1851
|
+
It as legacyClientSchema,
|
|
1852
|
+
J as legalComponentSchema,
|
|
1853
|
+
Fe as logInsertSchema,
|
|
1854
|
+
kt as logSchema,
|
|
1855
|
+
De as loginSessionInsertSchema,
|
|
1856
|
+
jt as loginSessionSchema,
|
|
1857
|
+
ae as nodeSchema,
|
|
1858
|
+
wt as openIDConfigurationSchema,
|
|
1859
|
+
at as organizationBrandingSchema,
|
|
1860
|
+
st as organizationEnabledConnectionSchema,
|
|
1861
|
+
lt as organizationInsertSchema,
|
|
1862
|
+
Qt as organizationSchema,
|
|
1863
|
+
rt as organizationTokenQuotaSchema,
|
|
1864
|
+
Ke as pageBackgroundSchema,
|
|
1865
|
+
to as parseUserId,
|
|
1866
|
+
ve as passwordInsertSchema,
|
|
1867
|
+
Ut as passwordSchema,
|
|
1868
|
+
M as profileDataSchema,
|
|
1869
|
+
Mt as promptSettingSchema,
|
|
1870
|
+
We as refreshTokenInsertSchema,
|
|
1871
|
+
Gt as refreshTokenSchema,
|
|
1872
|
+
qe as resourceServerInsertSchema,
|
|
1873
|
+
zt as resourceServerListSchema,
|
|
1874
|
+
Ve as resourceServerOptionsSchema,
|
|
1875
|
+
Ye as resourceServerSchema,
|
|
1876
|
+
Xe as resourceServerScopeSchema,
|
|
1877
|
+
Y as richTextComponentSchema,
|
|
1878
|
+
nt as roleInsertSchema,
|
|
1879
|
+
Yt as roleListSchema,
|
|
1880
|
+
Qe as rolePermissionInsertSchema,
|
|
1881
|
+
Wt as rolePermissionListSchema,
|
|
1882
|
+
Je as rolePermissionSchema,
|
|
1883
|
+
it as roleSchema,
|
|
1884
|
+
xe as sessionInsertSchema,
|
|
1885
|
+
Ft as sessionSchema,
|
|
1886
|
+
vt as signingKeySchema,
|
|
1887
|
+
Bt as smsProviderSchema,
|
|
1888
|
+
Kt as smsSendParamsSchema,
|
|
1889
|
+
se as startSchema,
|
|
1890
|
+
oe as stepNodeSchema,
|
|
1891
|
+
ge as tenantInsertSchema,
|
|
1892
|
+
ue as tenantSchema,
|
|
1893
|
+
Zt as tenantSettingsSchema,
|
|
1894
|
+
ze as themeInsertSchema,
|
|
1895
|
+
Pt as themeSchema,
|
|
1896
|
+
xt as tokenResponseSchema,
|
|
1897
|
+
ht as totalsSchema,
|
|
1898
|
+
G as userInsertSchema,
|
|
1899
|
+
ct as userOrganizationInsertSchema,
|
|
1900
|
+
Jt as userOrganizationSchema,
|
|
1901
|
+
Ze as userPermissionInsertSchema,
|
|
1902
|
+
Xt as userPermissionListSchema,
|
|
1903
|
+
$e as userPermissionSchema,
|
|
1904
|
+
Vt as userPermissionWithDetailsListSchema,
|
|
1905
|
+
et as userPermissionWithDetailsSchema,
|
|
1906
|
+
ft as userResponseSchema,
|
|
1907
|
+
tt as userRoleInsertSchema,
|
|
1908
|
+
qt as userRoleListSchema,
|
|
1909
|
+
ot as userRoleSchema,
|
|
1910
|
+
K as userSchema,
|
|
1911
|
+
fe as verificationMethodsSchema,
|
|
1912
|
+
Be as widgetSchema
|
|
1822
1913
|
};
|