@authhero/adapter-interfaces 0.110.0 → 0.111.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 +910 -27
- package/dist/adapter-interfaces.mjs +377 -335
- package/package.json +1 -1
|
@@ -2,13 +2,13 @@ import { z as e } from "@hono/zod-openapi";
|
|
|
2
2
|
const i = e.object({
|
|
3
3
|
created_at: e.string(),
|
|
4
4
|
updated_at: e.string()
|
|
5
|
-
}),
|
|
5
|
+
}), ut = e.enum(["AUTH0", "EMAIL", "REDIRECT"]), mt = e.enum([
|
|
6
6
|
"CREATE_USER",
|
|
7
7
|
"GET_USER",
|
|
8
8
|
"UPDATE_USER",
|
|
9
9
|
"SEND_REQUEST",
|
|
10
10
|
"SEND_EMAIL"
|
|
11
|
-
]),
|
|
11
|
+
]), ht = e.enum(["VERIFY_EMAIL"]), k = 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(),
|
|
@@ -36,26 +36,42 @@ 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: k.optional()
|
|
40
40
|
})
|
|
41
|
-
}), x = e.
|
|
41
|
+
}), x = e.enum(["change-email", "account", "custom"]), P = e.object({
|
|
42
|
+
id: e.string(),
|
|
43
|
+
alias: e.string().max(100).optional(),
|
|
44
|
+
type: e.literal("REDIRECT"),
|
|
45
|
+
action: e.literal("REDIRECT_USER"),
|
|
46
|
+
allow_failure: e.boolean().optional(),
|
|
47
|
+
mask_output: e.boolean().optional(),
|
|
48
|
+
params: e.object({
|
|
49
|
+
target: x.openapi({
|
|
50
|
+
description: "The predefined target to redirect to, or 'custom' for a custom URL"
|
|
51
|
+
}),
|
|
52
|
+
custom_url: e.string().optional().openapi({
|
|
53
|
+
description: "Custom URL to redirect to when target is 'custom'"
|
|
54
|
+
})
|
|
55
|
+
})
|
|
56
|
+
}), M = e.union([
|
|
42
57
|
F,
|
|
43
|
-
v
|
|
44
|
-
|
|
58
|
+
v,
|
|
59
|
+
P
|
|
60
|
+
]), H = e.object({
|
|
45
61
|
name: e.string().min(1).max(150).openapi({
|
|
46
62
|
description: "The name of the flow"
|
|
47
63
|
}),
|
|
48
64
|
// Actions is an array of action steps (Auth0 stores as JSON blob)
|
|
49
|
-
actions: e.array(
|
|
65
|
+
actions: e.array(M).optional().default([]).openapi({
|
|
50
66
|
description: "The list of actions to execute in sequence"
|
|
51
67
|
})
|
|
52
|
-
}),
|
|
68
|
+
}), bt = H.extend({
|
|
53
69
|
...i.shape,
|
|
54
70
|
id: e.string().openapi({
|
|
55
71
|
description: "Unique identifier for the flow",
|
|
56
72
|
example: "af_12tMpdJ3iek7svMyZkSh5M"
|
|
57
73
|
})
|
|
58
|
-
}),
|
|
74
|
+
}), ft = e.object({
|
|
59
75
|
page: e.string().min(0).optional().default("0").transform((t) => parseInt(t, 10)).openapi({
|
|
60
76
|
description: "The page number where 0 is the first page"
|
|
61
77
|
}),
|
|
@@ -71,11 +87,11 @@ const i = e.object({
|
|
|
71
87
|
q: e.string().optional().openapi({
|
|
72
88
|
description: "A lucene query string used to filter the results"
|
|
73
89
|
})
|
|
74
|
-
}),
|
|
90
|
+
}), Et = e.object({
|
|
75
91
|
start: e.number(),
|
|
76
92
|
limit: e.number(),
|
|
77
93
|
length: e.number()
|
|
78
|
-
}),
|
|
94
|
+
}), G = e.object({
|
|
79
95
|
email: e.string().optional(),
|
|
80
96
|
email_verified: e.boolean().optional(),
|
|
81
97
|
name: e.string().optional(),
|
|
@@ -84,7 +100,7 @@ const i = e.object({
|
|
|
84
100
|
phone_number: e.string().optional(),
|
|
85
101
|
phone_verified: e.boolean().optional(),
|
|
86
102
|
family_name: e.string().optional()
|
|
87
|
-
}).catchall(e.any()),
|
|
103
|
+
}).catchall(e.any()), K = e.object({
|
|
88
104
|
connection: e.string(),
|
|
89
105
|
user_id: e.string(),
|
|
90
106
|
provider: e.string(),
|
|
@@ -92,7 +108,7 @@ const i = e.object({
|
|
|
92
108
|
access_token: e.string().optional(),
|
|
93
109
|
access_token_secret: e.string().optional(),
|
|
94
110
|
refresh_token: e.string().optional(),
|
|
95
|
-
profileData:
|
|
111
|
+
profileData: G.optional()
|
|
96
112
|
}), E = e.object({
|
|
97
113
|
email: e.string().optional().transform((t) => t && t.toLowerCase()),
|
|
98
114
|
username: e.string().optional(),
|
|
@@ -108,7 +124,7 @@ const i = e.object({
|
|
|
108
124
|
user_id: e.string().optional(),
|
|
109
125
|
app_metadata: e.any().default({}).optional(),
|
|
110
126
|
user_metadata: e.any().default({}).optional()
|
|
111
|
-
}),
|
|
127
|
+
}), B = E.extend({
|
|
112
128
|
email_verified: e.boolean().default(!1),
|
|
113
129
|
verify_email: e.boolean().optional(),
|
|
114
130
|
last_ip: e.string().optional(),
|
|
@@ -117,29 +133,29 @@ const i = e.object({
|
|
|
117
133
|
provider: e.string().optional(),
|
|
118
134
|
connection: e.string(),
|
|
119
135
|
is_social: e.boolean().optional()
|
|
120
|
-
}),
|
|
121
|
-
...
|
|
136
|
+
}), z = e.object({
|
|
137
|
+
...B.shape,
|
|
122
138
|
...i.shape,
|
|
123
139
|
user_id: e.string(),
|
|
124
140
|
provider: e.string(),
|
|
125
141
|
is_social: e.boolean(),
|
|
126
142
|
email: e.string().optional(),
|
|
127
143
|
login_count: e.number().default(0),
|
|
128
|
-
identities: e.array(
|
|
129
|
-
}),
|
|
144
|
+
identities: e.array(K).optional()
|
|
145
|
+
}), St = z, At = E.extend({
|
|
130
146
|
login_count: e.number(),
|
|
131
147
|
multifactor: e.array(e.string()).optional(),
|
|
132
148
|
last_ip: e.string().optional(),
|
|
133
149
|
last_login: e.string().optional(),
|
|
134
150
|
user_id: e.string()
|
|
135
|
-
}).catchall(e.any()),
|
|
136
|
-
let
|
|
151
|
+
}).catchall(e.any()), W = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
152
|
+
let X = (t = 21) => {
|
|
137
153
|
let n = "", a = crypto.getRandomValues(new Uint8Array(t |= 0));
|
|
138
154
|
for (; t--; )
|
|
139
|
-
n +=
|
|
155
|
+
n += W[a[t] & 63];
|
|
140
156
|
return n;
|
|
141
157
|
};
|
|
142
|
-
const
|
|
158
|
+
const V = e.object({
|
|
143
159
|
client_id: e.string().openapi({
|
|
144
160
|
description: "ID of this client."
|
|
145
161
|
}),
|
|
@@ -152,7 +168,7 @@ const W = e.object({
|
|
|
152
168
|
global: e.boolean().default(!1).openapi({
|
|
153
169
|
description: "Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false)."
|
|
154
170
|
}),
|
|
155
|
-
client_secret: e.string().default(() =>
|
|
171
|
+
client_secret: e.string().default(() => X()).optional().openapi({
|
|
156
172
|
description: "Client secret (which you must not make public)."
|
|
157
173
|
}),
|
|
158
174
|
app_type: e.enum([
|
|
@@ -309,11 +325,11 @@ const W = e.object({
|
|
|
309
325
|
description: "Specifies how long, in seconds, a Pushed Authorization Request URI remains valid"
|
|
310
326
|
}),
|
|
311
327
|
token_quota: e.record(e.any()).default({}).optional()
|
|
312
|
-
}),
|
|
328
|
+
}), q = e.object({
|
|
313
329
|
created_at: e.string(),
|
|
314
330
|
updated_at: e.string(),
|
|
315
|
-
...
|
|
316
|
-
}),
|
|
331
|
+
...V.shape
|
|
332
|
+
}), Y = e.object({
|
|
317
333
|
client_id: e.string().min(1).openapi({
|
|
318
334
|
description: "ID of the client."
|
|
319
335
|
}),
|
|
@@ -338,14 +354,14 @@ const W = e.object({
|
|
|
338
354
|
authorization_details_types: e.array(e.string()).optional().openapi({
|
|
339
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."
|
|
340
356
|
})
|
|
341
|
-
}),
|
|
357
|
+
}), Q = e.object({
|
|
342
358
|
id: e.string().openapi({
|
|
343
359
|
description: "ID of the client grant."
|
|
344
360
|
}),
|
|
345
|
-
...
|
|
361
|
+
...Y.shape,
|
|
346
362
|
created_at: e.string().optional(),
|
|
347
363
|
updated_at: e.string().optional()
|
|
348
|
-
}),
|
|
364
|
+
}), It = e.array(Q), r = e.object({
|
|
349
365
|
x: e.number(),
|
|
350
366
|
y: e.number()
|
|
351
367
|
});
|
|
@@ -354,7 +370,7 @@ const d = e.object({
|
|
|
354
370
|
id: e.string(),
|
|
355
371
|
category: e.nativeEnum(A),
|
|
356
372
|
type: e.nativeEnum(S)
|
|
357
|
-
}),
|
|
373
|
+
}), J = d.extend({
|
|
358
374
|
category: e.literal(
|
|
359
375
|
"BLOCK"
|
|
360
376
|
/* BLOCK */
|
|
@@ -366,7 +382,7 @@ const d = e.object({
|
|
|
366
382
|
config: e.object({
|
|
367
383
|
content: e.string()
|
|
368
384
|
}).passthrough()
|
|
369
|
-
}),
|
|
385
|
+
}), Z = d.extend({
|
|
370
386
|
category: e.literal(
|
|
371
387
|
"BLOCK"
|
|
372
388
|
/* BLOCK */
|
|
@@ -388,7 +404,7 @@ const d = e.object({
|
|
|
388
404
|
config: e.object({
|
|
389
405
|
text: e.string()
|
|
390
406
|
}).passthrough()
|
|
391
|
-
}),
|
|
407
|
+
}), $ = d.extend({
|
|
392
408
|
category: e.literal(
|
|
393
409
|
"FIELD"
|
|
394
410
|
/* FIELD */
|
|
@@ -402,7 +418,7 @@ const d = e.object({
|
|
|
402
418
|
config: e.object({
|
|
403
419
|
text: e.string()
|
|
404
420
|
}).passthrough()
|
|
405
|
-
}),
|
|
421
|
+
}), ee = d.extend({
|
|
406
422
|
category: e.literal(
|
|
407
423
|
"FIELD"
|
|
408
424
|
/* FIELD */
|
|
@@ -455,78 +471,101 @@ const d = e.object({
|
|
|
455
471
|
label: e.string().optional(),
|
|
456
472
|
placeholder: e.string().optional()
|
|
457
473
|
}).passthrough()
|
|
458
|
-
}),
|
|
474
|
+
}), te = e.object({
|
|
459
475
|
id: e.string(),
|
|
460
476
|
category: e.string(),
|
|
461
477
|
type: e.string()
|
|
462
|
-
}).passthrough(),
|
|
463
|
-
Y,
|
|
464
|
-
Q,
|
|
478
|
+
}).passthrough(), oe = e.union([
|
|
465
479
|
J,
|
|
466
480
|
Z,
|
|
467
|
-
|
|
481
|
+
$,
|
|
482
|
+
ee,
|
|
483
|
+
te
|
|
468
484
|
]);
|
|
469
|
-
var
|
|
470
|
-
const
|
|
485
|
+
var ne = /* @__PURE__ */ ((t) => (t.STEP = "STEP", t.FLOW = "FLOW", t.CONDITION = "CONDITION", t.ACTION = "ACTION", t))(ne || {});
|
|
486
|
+
const ie = e.object({
|
|
471
487
|
id: e.string(),
|
|
472
488
|
type: e.literal(
|
|
473
489
|
"STEP"
|
|
474
490
|
/* STEP */
|
|
475
491
|
),
|
|
476
|
-
coordinates:
|
|
492
|
+
coordinates: r,
|
|
477
493
|
alias: e.string().optional(),
|
|
478
494
|
config: e.object({
|
|
479
|
-
components: e.array(
|
|
495
|
+
components: e.array(oe),
|
|
480
496
|
next_node: e.string()
|
|
481
497
|
}).passthrough()
|
|
482
|
-
}),
|
|
498
|
+
}), ae = e.object({
|
|
483
499
|
id: e.string(),
|
|
484
500
|
type: e.literal(
|
|
485
501
|
"FLOW"
|
|
486
502
|
/* FLOW */
|
|
487
503
|
),
|
|
488
|
-
coordinates:
|
|
504
|
+
coordinates: r,
|
|
489
505
|
alias: e.string().optional(),
|
|
490
506
|
config: e.object({
|
|
491
507
|
flow_id: e.string(),
|
|
492
508
|
next_node: e.string()
|
|
493
509
|
})
|
|
494
|
-
}),
|
|
510
|
+
}), se = e.object({
|
|
511
|
+
id: e.string(),
|
|
512
|
+
type: e.literal(
|
|
513
|
+
"ACTION"
|
|
514
|
+
/* ACTION */
|
|
515
|
+
),
|
|
516
|
+
coordinates: r,
|
|
517
|
+
alias: e.string().optional(),
|
|
518
|
+
config: e.object({
|
|
519
|
+
action_type: e.enum(["REDIRECT"]).openapi({
|
|
520
|
+
description: "The type of action to perform"
|
|
521
|
+
}),
|
|
522
|
+
target: e.enum(["change-email", "account", "custom"]).openapi({
|
|
523
|
+
description: "The predefined target to redirect to"
|
|
524
|
+
}),
|
|
525
|
+
custom_url: e.string().optional().openapi({
|
|
526
|
+
description: "Custom URL when target is 'custom'"
|
|
527
|
+
}),
|
|
528
|
+
next_node: e.string().openapi({
|
|
529
|
+
description: "The next node to navigate to after action (for non-redirect actions)"
|
|
530
|
+
})
|
|
531
|
+
}).passthrough()
|
|
532
|
+
}), re = e.object({
|
|
495
533
|
id: e.string(),
|
|
496
534
|
type: e.string(),
|
|
497
|
-
coordinates:
|
|
498
|
-
}).passthrough(),
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
535
|
+
coordinates: r
|
|
536
|
+
}).passthrough(), le = e.union([
|
|
537
|
+
ie,
|
|
538
|
+
ae,
|
|
539
|
+
se,
|
|
540
|
+
re
|
|
541
|
+
]), ce = e.object({
|
|
503
542
|
next_node: e.string(),
|
|
504
|
-
coordinates:
|
|
505
|
-
}).passthrough(),
|
|
543
|
+
coordinates: r
|
|
544
|
+
}).passthrough(), pe = e.object({
|
|
506
545
|
resume_flow: e.boolean().optional(),
|
|
507
|
-
coordinates:
|
|
508
|
-
}).passthrough(),
|
|
546
|
+
coordinates: r
|
|
547
|
+
}).passthrough(), _e = e.object({
|
|
509
548
|
id: e.string(),
|
|
510
549
|
name: e.string(),
|
|
511
550
|
languages: e.object({
|
|
512
551
|
primary: e.string()
|
|
513
552
|
}).passthrough(),
|
|
514
|
-
nodes: e.array(
|
|
515
|
-
start:
|
|
516
|
-
ending:
|
|
553
|
+
nodes: e.array(le),
|
|
554
|
+
start: ce,
|
|
555
|
+
ending: pe,
|
|
517
556
|
created_at: e.string(),
|
|
518
557
|
updated_at: e.string(),
|
|
519
558
|
links: e.object({
|
|
520
559
|
sdkSrc: e.string().optional(),
|
|
521
560
|
sdk_src: e.string().optional()
|
|
522
561
|
}).passthrough()
|
|
523
|
-
}).passthrough(),
|
|
562
|
+
}).passthrough(), Ct = _e.omit({
|
|
524
563
|
id: !0,
|
|
525
564
|
created_at: !0,
|
|
526
565
|
updated_at: !0
|
|
527
566
|
});
|
|
528
567
|
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 || {});
|
|
529
|
-
const
|
|
568
|
+
const de = e.object({
|
|
530
569
|
client_id: e.string(),
|
|
531
570
|
act_as: e.string().optional(),
|
|
532
571
|
response_type: e.nativeEnum(I).optional(),
|
|
@@ -544,7 +583,7 @@ const ce = e.object({
|
|
|
544
583
|
ui_locales: e.string().optional(),
|
|
545
584
|
// The following fields are not available in Auth0
|
|
546
585
|
vendor_id: e.string().optional()
|
|
547
|
-
}),
|
|
586
|
+
}), Ot = e.object({
|
|
548
587
|
colors: e.object({
|
|
549
588
|
primary: e.string(),
|
|
550
589
|
page_background: e.object({
|
|
@@ -560,7 +599,7 @@ const ce = e.object({
|
|
|
560
599
|
font: e.object({
|
|
561
600
|
url: e.string()
|
|
562
601
|
}).optional()
|
|
563
|
-
}),
|
|
602
|
+
}), ge = e.object({
|
|
564
603
|
kid: e.string().optional(),
|
|
565
604
|
team_id: e.string().optional(),
|
|
566
605
|
realms: e.string().optional(),
|
|
@@ -580,23 +619,23 @@ const ce = e.object({
|
|
|
580
619
|
twilio_sid: e.string().optional(),
|
|
581
620
|
twilio_token: e.string().optional(),
|
|
582
621
|
icon_url: e.string().optional()
|
|
583
|
-
}),
|
|
622
|
+
}), ue = e.object({
|
|
584
623
|
id: e.string().optional(),
|
|
585
624
|
name: e.string(),
|
|
586
625
|
display_name: e.string().optional(),
|
|
587
626
|
strategy: e.string(),
|
|
588
|
-
options:
|
|
627
|
+
options: ge.default({}),
|
|
589
628
|
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
590
629
|
response_type: e.custom().optional(),
|
|
591
630
|
response_mode: e.custom().optional(),
|
|
592
631
|
is_domain_connection: e.boolean().optional(),
|
|
593
632
|
show_as_button: e.boolean().optional(),
|
|
594
633
|
metadata: e.record(e.any()).optional()
|
|
595
|
-
}),
|
|
634
|
+
}), me = e.object({
|
|
596
635
|
id: e.string(),
|
|
597
636
|
created_at: e.string().transform((t) => t === null ? "" : t),
|
|
598
637
|
updated_at: e.string().transform((t) => t === null ? "" : t)
|
|
599
|
-
}).extend(
|
|
638
|
+
}).extend(ue.shape), he = e.object({
|
|
600
639
|
id: e.string().optional(),
|
|
601
640
|
// Basic settings
|
|
602
641
|
audience: e.string(),
|
|
@@ -716,23 +755,23 @@ const ce = e.object({
|
|
|
716
755
|
// Authorization settings
|
|
717
756
|
pushed_authorization_requests_supported: e.boolean().optional(),
|
|
718
757
|
authorization_response_iss_parameter_supported: e.boolean().optional()
|
|
719
|
-
}),
|
|
758
|
+
}), be = e.object({
|
|
720
759
|
created_at: e.string().nullable().transform((t) => t ?? ""),
|
|
721
760
|
updated_at: e.string().nullable().transform((t) => t ?? ""),
|
|
722
|
-
...
|
|
761
|
+
...he.shape,
|
|
723
762
|
id: e.string()
|
|
724
|
-
}),
|
|
725
|
-
...
|
|
726
|
-
tenant:
|
|
727
|
-
connections: e.array(
|
|
728
|
-
}),
|
|
763
|
+
}), Tt = e.object({
|
|
764
|
+
...q.shape,
|
|
765
|
+
tenant: be,
|
|
766
|
+
connections: e.array(me)
|
|
767
|
+
}), fe = e.enum([
|
|
729
768
|
"password_reset",
|
|
730
769
|
"email_verification",
|
|
731
770
|
"otp",
|
|
732
771
|
"authorization_code",
|
|
733
772
|
"oauth2_state",
|
|
734
773
|
"ticket"
|
|
735
|
-
]),
|
|
774
|
+
]), Ee = e.object({
|
|
736
775
|
code_id: e.string().openapi({
|
|
737
776
|
description: "The code that will be used in for instance an email verification flow"
|
|
738
777
|
}),
|
|
@@ -742,7 +781,7 @@ const ce = e.object({
|
|
|
742
781
|
connection_id: e.string().optional().openapi({
|
|
743
782
|
description: "The connection that the code is connected to"
|
|
744
783
|
}),
|
|
745
|
-
code_type:
|
|
784
|
+
code_type: fe,
|
|
746
785
|
code_verifier: e.string().optional().openapi({
|
|
747
786
|
description: "The code verifier used in PKCE in outbound flows"
|
|
748
787
|
}),
|
|
@@ -764,10 +803,10 @@ const ce = e.object({
|
|
|
764
803
|
expires_at: e.string(),
|
|
765
804
|
used_at: e.string().optional(),
|
|
766
805
|
user_id: e.string().optional()
|
|
767
|
-
}),
|
|
768
|
-
...
|
|
806
|
+
}), yt = e.object({
|
|
807
|
+
...Ee.shape,
|
|
769
808
|
created_at: e.string()
|
|
770
|
-
}),
|
|
809
|
+
}), Se = e.object({
|
|
771
810
|
domain: e.string(),
|
|
772
811
|
custom_domain_id: e.string().optional(),
|
|
773
812
|
type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
@@ -781,23 +820,23 @@ const ce = e.object({
|
|
|
781
820
|
"null"
|
|
782
821
|
]).optional(),
|
|
783
822
|
domain_metadata: e.record(e.string().max(255)).optional()
|
|
784
|
-
}),
|
|
823
|
+
}), Ae = e.object({
|
|
785
824
|
name: e.literal("txt"),
|
|
786
825
|
record: e.string(),
|
|
787
826
|
domain: e.string()
|
|
788
|
-
}),
|
|
789
|
-
...
|
|
827
|
+
}), Ie = e.object({
|
|
828
|
+
...Se.shape,
|
|
790
829
|
custom_domain_id: e.string(),
|
|
791
830
|
primary: e.boolean(),
|
|
792
831
|
status: e.enum(["disabled", "pending", "pending_verification", "ready"]),
|
|
793
832
|
origin_domain_name: e.string().optional(),
|
|
794
833
|
verification: e.object({
|
|
795
|
-
methods: e.array(
|
|
834
|
+
methods: e.array(Ae)
|
|
796
835
|
}).optional(),
|
|
797
836
|
tls_policy: e.string().optional()
|
|
798
|
-
}),
|
|
837
|
+
}), Nt = Ie.extend({
|
|
799
838
|
tenant_id: e.string()
|
|
800
|
-
}),
|
|
839
|
+
}), Rt = e.object({
|
|
801
840
|
id: e.string(),
|
|
802
841
|
type: e.literal("submit"),
|
|
803
842
|
label: e.string(),
|
|
@@ -806,31 +845,31 @@ const ce = e.object({
|
|
|
806
845
|
order: e.number().optional(),
|
|
807
846
|
visible: e.boolean().optional().default(!0),
|
|
808
847
|
customizations: e.record(e.string(), e.any()).optional()
|
|
809
|
-
}),
|
|
848
|
+
}), T = e.object({
|
|
810
849
|
id: e.string(),
|
|
811
850
|
order: e.number().optional(),
|
|
812
851
|
visible: e.boolean().optional().default(!0)
|
|
813
|
-
}), f =
|
|
852
|
+
}), f = T.extend({
|
|
814
853
|
category: e.literal("BLOCK").optional()
|
|
815
|
-
}),
|
|
854
|
+
}), c = T.extend({
|
|
816
855
|
category: e.literal("FIELD").optional(),
|
|
817
856
|
required: e.boolean().optional(),
|
|
818
857
|
sensitive: e.boolean().optional()
|
|
819
|
-
}),
|
|
858
|
+
}), Ce = e.discriminatedUnion("type", [
|
|
820
859
|
f.extend({
|
|
821
860
|
type: e.literal("RICH_TEXT"),
|
|
822
861
|
config: e.object({
|
|
823
862
|
content: e.string()
|
|
824
863
|
})
|
|
825
864
|
}),
|
|
826
|
-
|
|
865
|
+
c.omit({ sensitive: !0 }).extend({
|
|
827
866
|
type: e.literal("LEGAL"),
|
|
828
867
|
config: e.object({
|
|
829
868
|
text: e.string(),
|
|
830
869
|
html: e.boolean().optional()
|
|
831
870
|
})
|
|
832
871
|
}),
|
|
833
|
-
|
|
872
|
+
c.extend({
|
|
834
873
|
type: e.literal("TEXT"),
|
|
835
874
|
config: e.object({
|
|
836
875
|
placeholder: e.string().optional(),
|
|
@@ -843,21 +882,21 @@ const ce = e.object({
|
|
|
843
882
|
text: e.string().optional()
|
|
844
883
|
})
|
|
845
884
|
}),
|
|
846
|
-
|
|
885
|
+
c.extend({
|
|
847
886
|
type: e.literal("EMAIL"),
|
|
848
887
|
config: e.object({
|
|
849
888
|
label: e.string().optional(),
|
|
850
889
|
placeholder: e.string().optional()
|
|
851
890
|
})
|
|
852
891
|
}),
|
|
853
|
-
|
|
892
|
+
c.extend({
|
|
854
893
|
type: e.literal("NUMBER"),
|
|
855
894
|
config: e.object({
|
|
856
895
|
label: e.string().optional(),
|
|
857
896
|
placeholder: e.string().optional()
|
|
858
897
|
})
|
|
859
898
|
}),
|
|
860
|
-
|
|
899
|
+
c.extend({
|
|
861
900
|
type: e.literal("PHONE"),
|
|
862
901
|
config: e.object({
|
|
863
902
|
label: e.string().optional(),
|
|
@@ -865,7 +904,7 @@ const ce = e.object({
|
|
|
865
904
|
})
|
|
866
905
|
})
|
|
867
906
|
// Add more component types as needed
|
|
868
|
-
]),
|
|
907
|
+
]), Oe = e.object({
|
|
869
908
|
name: e.string().openapi({
|
|
870
909
|
description: "The name of the form"
|
|
871
910
|
}),
|
|
@@ -916,7 +955,7 @@ const ce = e.object({
|
|
|
916
955
|
coordinates: e.object({ x: e.number(), y: e.number() }),
|
|
917
956
|
alias: e.string().min(1).max(150).optional(),
|
|
918
957
|
config: e.object({
|
|
919
|
-
components: e.array(
|
|
958
|
+
components: e.array(Ce),
|
|
920
959
|
next_node: e.string().optional()
|
|
921
960
|
})
|
|
922
961
|
})
|
|
@@ -939,11 +978,11 @@ const ce = e.object({
|
|
|
939
978
|
style: e.object({ css: e.string().optional() }).optional()
|
|
940
979
|
}).openapi({
|
|
941
980
|
description: "Schema for flow-based forms (matches new JSON structure)"
|
|
942
|
-
}),
|
|
981
|
+
}), Lt = e.object({
|
|
943
982
|
...i.shape,
|
|
944
|
-
...
|
|
983
|
+
...Oe.shape,
|
|
945
984
|
id: e.string()
|
|
946
|
-
}),
|
|
985
|
+
}), y = e.enum([
|
|
947
986
|
"pre-user-registration",
|
|
948
987
|
"post-user-registration",
|
|
949
988
|
"post-user-login",
|
|
@@ -963,37 +1002,37 @@ const ce = e.object({
|
|
|
963
1002
|
synchronous: e.boolean().default(!1),
|
|
964
1003
|
priority: e.number().optional(),
|
|
965
1004
|
hook_id: e.string().optional()
|
|
966
|
-
},
|
|
1005
|
+
}, Te = e.object({
|
|
967
1006
|
...g,
|
|
968
|
-
trigger_id:
|
|
1007
|
+
trigger_id: y,
|
|
969
1008
|
url: e.string()
|
|
970
|
-
}),
|
|
1009
|
+
}), ye = e.object({
|
|
971
1010
|
...g,
|
|
972
1011
|
trigger_id: N,
|
|
973
1012
|
form_id: e.string()
|
|
974
|
-
}),
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
]),
|
|
1013
|
+
}), Dt = e.union([
|
|
1014
|
+
Te,
|
|
1015
|
+
ye
|
|
1016
|
+
]), Ne = e.object({
|
|
978
1017
|
...g,
|
|
979
|
-
trigger_id:
|
|
1018
|
+
trigger_id: y,
|
|
980
1019
|
...i.shape,
|
|
981
1020
|
hook_id: e.string(),
|
|
982
1021
|
url: e.string()
|
|
983
|
-
}),
|
|
1022
|
+
}), Re = e.object({
|
|
984
1023
|
...g,
|
|
985
1024
|
trigger_id: N,
|
|
986
1025
|
...i.shape,
|
|
987
1026
|
hook_id: e.string(),
|
|
988
1027
|
form_id: e.string()
|
|
989
|
-
}),
|
|
1028
|
+
}), wt = e.union([Ne, Re]), Le = e.object({
|
|
990
1029
|
name: e.string().optional()
|
|
991
|
-
}),
|
|
1030
|
+
}), De = e.object({
|
|
992
1031
|
email: e.string().optional()
|
|
993
|
-
}),
|
|
1032
|
+
}), we = e.object({
|
|
994
1033
|
organization_id: e.string().max(50),
|
|
995
|
-
inviter:
|
|
996
|
-
invitee:
|
|
1034
|
+
inviter: Le,
|
|
1035
|
+
invitee: De,
|
|
997
1036
|
invitation_url: e.string().url(),
|
|
998
1037
|
client_id: e.string(),
|
|
999
1038
|
connection_id: e.string().optional(),
|
|
@@ -1002,13 +1041,13 @@ const ce = e.object({
|
|
|
1002
1041
|
ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
|
|
1003
1042
|
roles: e.array(e.string()).default([]).optional(),
|
|
1004
1043
|
send_invitation_email: e.boolean().default(!0).optional()
|
|
1005
|
-
}),
|
|
1044
|
+
}), jt = e.object({
|
|
1006
1045
|
id: e.string(),
|
|
1007
1046
|
organization_id: e.string().max(50),
|
|
1008
1047
|
created_at: e.string().datetime(),
|
|
1009
1048
|
expires_at: e.string().datetime(),
|
|
1010
1049
|
ticket_id: e.string().optional()
|
|
1011
|
-
}).extend(
|
|
1050
|
+
}).extend(we.shape), je = e.object({
|
|
1012
1051
|
alg: e.enum([
|
|
1013
1052
|
"RS256",
|
|
1014
1053
|
"RS384",
|
|
@@ -1027,9 +1066,9 @@ const ce = e.object({
|
|
|
1027
1066
|
x5t: e.string().optional(),
|
|
1028
1067
|
x5c: e.array(e.string()).optional(),
|
|
1029
1068
|
use: e.enum(["sig", "enc"]).optional()
|
|
1030
|
-
}),
|
|
1031
|
-
keys: e.array(
|
|
1032
|
-
}),
|
|
1069
|
+
}), Ut = e.object({
|
|
1070
|
+
keys: e.array(je)
|
|
1071
|
+
}), kt = e.object({
|
|
1033
1072
|
issuer: e.string(),
|
|
1034
1073
|
authorization_endpoint: e.string(),
|
|
1035
1074
|
token_endpoint: e.string(),
|
|
@@ -1050,10 +1089,10 @@ const ce = e.object({
|
|
|
1050
1089
|
request_uri_parameter_supported: e.boolean(),
|
|
1051
1090
|
request_parameter_supported: e.boolean(),
|
|
1052
1091
|
token_endpoint_auth_signing_alg_values_supported: e.array(e.string())
|
|
1053
|
-
}),
|
|
1092
|
+
}), Ue = e.object({
|
|
1054
1093
|
csrf_token: e.string(),
|
|
1055
1094
|
auth0Client: e.string().optional(),
|
|
1056
|
-
authParams:
|
|
1095
|
+
authParams: de,
|
|
1057
1096
|
expires_at: e.string(),
|
|
1058
1097
|
deleted_at: e.string().optional(),
|
|
1059
1098
|
ip: e.string().optional(),
|
|
@@ -1063,14 +1102,14 @@ const ce = e.object({
|
|
|
1063
1102
|
login_completed: e.boolean().optional().default(!1)
|
|
1064
1103
|
}).openapi({
|
|
1065
1104
|
description: "This represents a login sesion"
|
|
1066
|
-
}),
|
|
1067
|
-
...
|
|
1105
|
+
}), Ft = e.object({
|
|
1106
|
+
...Ue.shape,
|
|
1068
1107
|
id: e.string().openapi({
|
|
1069
1108
|
description: "This is is used as the state in the universal login"
|
|
1070
1109
|
}),
|
|
1071
1110
|
created_at: e.string(),
|
|
1072
1111
|
updated_at: e.string()
|
|
1073
|
-
}),
|
|
1112
|
+
}), ke = {
|
|
1074
1113
|
// Network & System
|
|
1075
1114
|
ACLS_SUMMARY: "acls_summary",
|
|
1076
1115
|
ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
|
|
@@ -1237,24 +1276,24 @@ const ce = e.object({
|
|
|
1237
1276
|
WARNING_DURING_LOGIN: "w",
|
|
1238
1277
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
1239
1278
|
WARNING_USER_MANAGEMENT: "wum"
|
|
1240
|
-
},
|
|
1241
|
-
(t) => Object.values(
|
|
1279
|
+
}, Fe = e.string().refine(
|
|
1280
|
+
(t) => Object.values(ke).includes(t),
|
|
1242
1281
|
{ message: "Invalid log type" }
|
|
1243
|
-
),
|
|
1282
|
+
), ve = e.object({
|
|
1244
1283
|
name: e.string(),
|
|
1245
1284
|
version: e.string(),
|
|
1246
1285
|
env: e.object({
|
|
1247
1286
|
node: e.string().optional()
|
|
1248
1287
|
}).optional()
|
|
1249
|
-
}),
|
|
1288
|
+
}), xe = e.object({
|
|
1250
1289
|
country_code: e.string().length(2),
|
|
1251
1290
|
city_name: e.string(),
|
|
1252
1291
|
latitude: e.string(),
|
|
1253
1292
|
longitude: e.string(),
|
|
1254
1293
|
time_zone: e.string(),
|
|
1255
1294
|
continent_code: e.string()
|
|
1256
|
-
}),
|
|
1257
|
-
type:
|
|
1295
|
+
}), Pe = e.object({
|
|
1296
|
+
type: Fe,
|
|
1258
1297
|
date: e.string(),
|
|
1259
1298
|
description: e.string().optional(),
|
|
1260
1299
|
ip: e.string().optional(),
|
|
@@ -1273,19 +1312,19 @@ const ce = e.object({
|
|
|
1273
1312
|
strategy: e.string().optional(),
|
|
1274
1313
|
strategy_type: e.string().optional(),
|
|
1275
1314
|
hostname: e.string().optional(),
|
|
1276
|
-
auth0_client:
|
|
1315
|
+
auth0_client: ve.optional(),
|
|
1277
1316
|
log_id: e.string().optional(),
|
|
1278
|
-
location_info:
|
|
1279
|
-
}),
|
|
1280
|
-
...
|
|
1317
|
+
location_info: xe.optional()
|
|
1318
|
+
}), vt = e.object({
|
|
1319
|
+
...Pe.shape,
|
|
1281
1320
|
log_id: e.string()
|
|
1282
|
-
}),
|
|
1321
|
+
}), Me = e.object({
|
|
1283
1322
|
id: e.string().optional(),
|
|
1284
1323
|
user_id: e.string(),
|
|
1285
1324
|
password: e.string(),
|
|
1286
1325
|
algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
|
|
1287
1326
|
is_current: e.boolean().default(!0)
|
|
1288
|
-
}),
|
|
1327
|
+
}), xt = Me.extend({
|
|
1289
1328
|
id: e.string(),
|
|
1290
1329
|
created_at: e.string(),
|
|
1291
1330
|
updated_at: e.string()
|
|
@@ -1296,7 +1335,7 @@ const ce = e.object({
|
|
|
1296
1335
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
1297
1336
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
1298
1337
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
1299
|
-
}),
|
|
1338
|
+
}), He = e.object({
|
|
1300
1339
|
id: e.string(),
|
|
1301
1340
|
revoked_at: e.string().optional(),
|
|
1302
1341
|
used_at: e.string().optional(),
|
|
@@ -1308,13 +1347,13 @@ const ce = e.object({
|
|
|
1308
1347
|
"Metadata related to the device used in the session"
|
|
1309
1348
|
),
|
|
1310
1349
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
1311
|
-
}),
|
|
1350
|
+
}), Pt = e.object({
|
|
1312
1351
|
created_at: e.string(),
|
|
1313
1352
|
updated_at: e.string(),
|
|
1314
1353
|
authenticated_at: e.string(),
|
|
1315
1354
|
last_interaction_at: e.string(),
|
|
1316
|
-
...
|
|
1317
|
-
}),
|
|
1355
|
+
...He.shape
|
|
1356
|
+
}), Mt = e.object({
|
|
1318
1357
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
1319
1358
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
1320
1359
|
fingerprint: e.string().openapi({ description: "The cert fingerprint" }),
|
|
@@ -1340,8 +1379,8 @@ const ce = e.object({
|
|
|
1340
1379
|
description: "The type of the signing key"
|
|
1341
1380
|
})
|
|
1342
1381
|
});
|
|
1343
|
-
var
|
|
1344
|
-
const
|
|
1382
|
+
var Ge = /* @__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))(Ge || {});
|
|
1383
|
+
const Ht = e.object({
|
|
1345
1384
|
access_token: e.string(),
|
|
1346
1385
|
id_token: e.string().optional(),
|
|
1347
1386
|
scope: e.string().optional(),
|
|
@@ -1354,7 +1393,7 @@ e.object({
|
|
|
1354
1393
|
code: e.string(),
|
|
1355
1394
|
state: e.string().optional()
|
|
1356
1395
|
});
|
|
1357
|
-
const
|
|
1396
|
+
const Ke = e.object({
|
|
1358
1397
|
button_border_radius: e.number(),
|
|
1359
1398
|
button_border_weight: e.number(),
|
|
1360
1399
|
buttons_style: e.enum(["pill", "rounded", "sharp"]),
|
|
@@ -1364,7 +1403,7 @@ const Me = e.object({
|
|
|
1364
1403
|
show_widget_shadow: e.boolean(),
|
|
1365
1404
|
widget_border_weight: e.number(),
|
|
1366
1405
|
widget_corner_radius: e.number()
|
|
1367
|
-
}),
|
|
1406
|
+
}), Be = e.object({
|
|
1368
1407
|
base_focus_color: e.string(),
|
|
1369
1408
|
base_hover_color: e.string(),
|
|
1370
1409
|
body_text: e.string(),
|
|
@@ -1387,7 +1426,7 @@ const Me = e.object({
|
|
|
1387
1426
|
}), s = e.object({
|
|
1388
1427
|
bold: e.boolean(),
|
|
1389
1428
|
size: e.number()
|
|
1390
|
-
}),
|
|
1429
|
+
}), ze = e.object({
|
|
1391
1430
|
body_text: s,
|
|
1392
1431
|
buttons_text: s,
|
|
1393
1432
|
font_url: e.string(),
|
|
@@ -1397,31 +1436,31 @@ const Me = e.object({
|
|
|
1397
1436
|
reference_text_size: e.number(),
|
|
1398
1437
|
subtitle: s,
|
|
1399
1438
|
title: s
|
|
1400
|
-
}),
|
|
1439
|
+
}), We = e.object({
|
|
1401
1440
|
background_color: e.string(),
|
|
1402
1441
|
background_image_url: e.string(),
|
|
1403
1442
|
page_layout: e.enum(["center", "left", "right"])
|
|
1404
|
-
}),
|
|
1443
|
+
}), Xe = e.object({
|
|
1405
1444
|
header_text_alignment: e.enum(["center", "left", "right"]),
|
|
1406
1445
|
logo_height: e.number(),
|
|
1407
1446
|
logo_position: e.enum(["center", "left", "none", "right"]),
|
|
1408
1447
|
logo_url: e.string(),
|
|
1409
1448
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
1410
|
-
}),
|
|
1411
|
-
borders:
|
|
1412
|
-
colors:
|
|
1449
|
+
}), Ve = e.object({
|
|
1450
|
+
borders: Ke,
|
|
1451
|
+
colors: Be,
|
|
1413
1452
|
displayName: e.string(),
|
|
1414
|
-
fonts:
|
|
1415
|
-
page_background:
|
|
1416
|
-
widget:
|
|
1417
|
-
}),
|
|
1453
|
+
fonts: ze,
|
|
1454
|
+
page_background: We,
|
|
1455
|
+
widget: Xe
|
|
1456
|
+
}), Gt = Ve.extend({
|
|
1418
1457
|
themeId: e.string()
|
|
1419
|
-
}),
|
|
1458
|
+
}), Kt = e.object({
|
|
1420
1459
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
1421
1460
|
identifier_first: e.boolean().default(!0),
|
|
1422
1461
|
password_first: e.boolean().default(!1),
|
|
1423
1462
|
webauthn_platform_first_factor: e.boolean()
|
|
1424
|
-
}),
|
|
1463
|
+
}), Bt = e.object({
|
|
1425
1464
|
name: e.string(),
|
|
1426
1465
|
enabled: e.boolean().optional().default(!0),
|
|
1427
1466
|
default_from_address: e.string().optional(),
|
|
@@ -1451,7 +1490,7 @@ const Me = e.object({
|
|
|
1451
1490
|
})
|
|
1452
1491
|
]),
|
|
1453
1492
|
settings: e.object({}).optional()
|
|
1454
|
-
}),
|
|
1493
|
+
}), qe = e.object({
|
|
1455
1494
|
// The actual refresh token value (primary key).
|
|
1456
1495
|
id: e.string(),
|
|
1457
1496
|
// Link to the session record
|
|
@@ -1472,21 +1511,21 @@ const Me = e.object({
|
|
|
1472
1511
|
})
|
|
1473
1512
|
),
|
|
1474
1513
|
rotating: e.boolean()
|
|
1475
|
-
}),
|
|
1514
|
+
}), zt = e.object({
|
|
1476
1515
|
// When the refresh token record was created.
|
|
1477
1516
|
created_at: e.string(),
|
|
1478
1517
|
// Spread in the rest of the refresh token properties.
|
|
1479
|
-
...
|
|
1480
|
-
}),
|
|
1518
|
+
...qe.shape
|
|
1519
|
+
}), Wt = e.object({
|
|
1481
1520
|
to: e.string(),
|
|
1482
1521
|
message: e.string()
|
|
1483
|
-
}),
|
|
1522
|
+
}), Xt = e.object({
|
|
1484
1523
|
name: e.string(),
|
|
1485
1524
|
options: e.object({})
|
|
1486
|
-
}),
|
|
1525
|
+
}), Ye = e.object({
|
|
1487
1526
|
value: e.string(),
|
|
1488
1527
|
description: e.string().optional()
|
|
1489
|
-
}),
|
|
1528
|
+
}), Qe = e.object({
|
|
1490
1529
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
1491
1530
|
enforce_policies: e.boolean().optional(),
|
|
1492
1531
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -1496,10 +1535,10 @@ const Me = e.object({
|
|
|
1496
1535
|
mtls: e.object({
|
|
1497
1536
|
bound_access_tokens: e.boolean().optional()
|
|
1498
1537
|
}).optional()
|
|
1499
|
-
}),
|
|
1538
|
+
}), Je = e.object({
|
|
1500
1539
|
name: e.string(),
|
|
1501
1540
|
identifier: e.string(),
|
|
1502
|
-
scopes: e.array(
|
|
1541
|
+
scopes: e.array(Ye).optional(),
|
|
1503
1542
|
signing_alg: e.string().optional(),
|
|
1504
1543
|
signing_secret: e.string().optional(),
|
|
1505
1544
|
token_lifetime: e.number().optional(),
|
|
@@ -1507,29 +1546,29 @@ const Me = e.object({
|
|
|
1507
1546
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
1508
1547
|
allow_offline_access: e.boolean().optional(),
|
|
1509
1548
|
verificationKey: e.string().optional(),
|
|
1510
|
-
options:
|
|
1511
|
-
}),
|
|
1549
|
+
options: Qe.optional()
|
|
1550
|
+
}), Ze = e.object({
|
|
1512
1551
|
id: e.string().optional(),
|
|
1513
|
-
...
|
|
1552
|
+
...Je.shape,
|
|
1514
1553
|
created_at: e.string().optional(),
|
|
1515
1554
|
updated_at: e.string().optional()
|
|
1516
|
-
}),
|
|
1555
|
+
}), Vt = e.array(Ze), $e = e.object({
|
|
1517
1556
|
role_id: e.string(),
|
|
1518
1557
|
resource_server_identifier: e.string(),
|
|
1519
1558
|
permission_name: e.string()
|
|
1520
|
-
}),
|
|
1521
|
-
|
|
1559
|
+
}), et = e.object({
|
|
1560
|
+
...$e.shape,
|
|
1522
1561
|
created_at: e.string()
|
|
1523
|
-
}),
|
|
1562
|
+
}), qt = e.array(et), tt = e.object({
|
|
1524
1563
|
user_id: e.string(),
|
|
1525
1564
|
resource_server_identifier: e.string(),
|
|
1526
1565
|
permission_name: e.string(),
|
|
1527
1566
|
organization_id: e.string().optional()
|
|
1528
|
-
}),
|
|
1529
|
-
...
|
|
1567
|
+
}), ot = e.object({
|
|
1568
|
+
...tt.shape,
|
|
1530
1569
|
tenant_id: e.string(),
|
|
1531
1570
|
created_at: e.string().optional()
|
|
1532
|
-
}),
|
|
1571
|
+
}), Yt = e.array(ot), nt = e.object({
|
|
1533
1572
|
user_id: e.string(),
|
|
1534
1573
|
resource_server_identifier: e.string(),
|
|
1535
1574
|
resource_server_name: e.string(),
|
|
@@ -1537,31 +1576,31 @@ const Me = e.object({
|
|
|
1537
1576
|
description: e.string().nullable().optional(),
|
|
1538
1577
|
created_at: e.string().optional(),
|
|
1539
1578
|
organization_id: e.string().optional()
|
|
1540
|
-
}),
|
|
1541
|
-
|
|
1542
|
-
),
|
|
1579
|
+
}), Qt = e.array(
|
|
1580
|
+
nt
|
|
1581
|
+
), it = e.object({
|
|
1543
1582
|
user_id: e.string(),
|
|
1544
1583
|
role_id: e.string(),
|
|
1545
1584
|
organization_id: e.string().optional()
|
|
1546
|
-
}),
|
|
1547
|
-
...
|
|
1585
|
+
}), at = e.object({
|
|
1586
|
+
...it.shape,
|
|
1548
1587
|
tenant_id: e.string(),
|
|
1549
1588
|
created_at: e.string().optional()
|
|
1550
|
-
}),
|
|
1589
|
+
}), Jt = e.array(at), st = e.object({
|
|
1551
1590
|
name: e.string().min(1).max(50).openapi({
|
|
1552
1591
|
description: "The name of the role. Cannot include '<' or '>'"
|
|
1553
1592
|
}),
|
|
1554
1593
|
description: e.string().max(255).optional().openapi({
|
|
1555
1594
|
description: "The description of the role"
|
|
1556
1595
|
})
|
|
1557
|
-
}),
|
|
1596
|
+
}), rt = e.object({
|
|
1558
1597
|
id: e.string().openapi({
|
|
1559
1598
|
description: "The unique identifier of the role"
|
|
1560
1599
|
}),
|
|
1561
|
-
...
|
|
1600
|
+
...st.shape,
|
|
1562
1601
|
created_at: e.string().optional(),
|
|
1563
1602
|
updated_at: e.string().optional()
|
|
1564
|
-
}),
|
|
1603
|
+
}), Zt = e.array(rt), lt = e.object({
|
|
1565
1604
|
logo_url: e.string().optional().openapi({
|
|
1566
1605
|
description: "URL of the organization's logo"
|
|
1567
1606
|
}),
|
|
@@ -1573,7 +1612,7 @@ const Me = e.object({
|
|
|
1573
1612
|
description: "Page background color in hex format (e.g., #FFFFFF)"
|
|
1574
1613
|
})
|
|
1575
1614
|
}).optional()
|
|
1576
|
-
}).optional(),
|
|
1615
|
+
}).optional(), ct = e.object({
|
|
1577
1616
|
connection_id: e.string().openapi({
|
|
1578
1617
|
description: "ID of the connection"
|
|
1579
1618
|
}),
|
|
@@ -1586,7 +1625,7 @@ const Me = e.object({
|
|
|
1586
1625
|
is_signup_enabled: e.boolean().default(!0).openapi({
|
|
1587
1626
|
description: "Whether signup is enabled for this connection"
|
|
1588
1627
|
})
|
|
1589
|
-
}),
|
|
1628
|
+
}), pt = e.object({
|
|
1590
1629
|
client_credentials: e.object({
|
|
1591
1630
|
enforce: e.boolean().default(!1).openapi({
|
|
1592
1631
|
description: "Whether to enforce token quota limits"
|
|
@@ -1598,7 +1637,7 @@ const Me = e.object({
|
|
|
1598
1637
|
description: "Maximum tokens per hour (0 = unlimited)"
|
|
1599
1638
|
})
|
|
1600
1639
|
}).optional()
|
|
1601
|
-
}).optional(),
|
|
1640
|
+
}).optional(), _t = e.object({
|
|
1602
1641
|
id: e.string().optional(),
|
|
1603
1642
|
name: e.string().min(1).openapi({
|
|
1604
1643
|
description: "The name of the organization"
|
|
@@ -1606,30 +1645,30 @@ const Me = e.object({
|
|
|
1606
1645
|
display_name: e.string().optional().openapi({
|
|
1607
1646
|
description: "The display name of the organization"
|
|
1608
1647
|
}),
|
|
1609
|
-
branding:
|
|
1648
|
+
branding: lt,
|
|
1610
1649
|
metadata: e.record(e.any()).default({}).optional().openapi({
|
|
1611
1650
|
description: "Custom metadata for the organization"
|
|
1612
1651
|
}),
|
|
1613
|
-
enabled_connections: e.array(
|
|
1652
|
+
enabled_connections: e.array(ct).default([]).optional().openapi({
|
|
1614
1653
|
description: "List of enabled connections for the organization"
|
|
1615
1654
|
}),
|
|
1616
|
-
token_quota:
|
|
1617
|
-
}),
|
|
1618
|
-
...
|
|
1655
|
+
token_quota: pt
|
|
1656
|
+
}), $t = e.object({
|
|
1657
|
+
..._t.shape,
|
|
1619
1658
|
...i.shape,
|
|
1620
1659
|
id: e.string()
|
|
1621
|
-
}),
|
|
1660
|
+
}), dt = e.object({
|
|
1622
1661
|
user_id: e.string().openapi({
|
|
1623
1662
|
description: "ID of the user"
|
|
1624
1663
|
}),
|
|
1625
1664
|
organization_id: e.string().openapi({
|
|
1626
1665
|
description: "ID of the organization"
|
|
1627
1666
|
})
|
|
1628
|
-
}),
|
|
1629
|
-
...
|
|
1667
|
+
}), eo = e.object({
|
|
1668
|
+
...dt.shape,
|
|
1630
1669
|
...i.shape,
|
|
1631
1670
|
id: e.string()
|
|
1632
|
-
}),
|
|
1671
|
+
}), to = e.object({
|
|
1633
1672
|
// Session settings
|
|
1634
1673
|
idle_session_lifetime: e.number().optional(),
|
|
1635
1674
|
session_lifetime: e.number().optional(),
|
|
@@ -1698,7 +1737,7 @@ const Me = e.object({
|
|
|
1698
1737
|
sessions: e.object({
|
|
1699
1738
|
oidc_logout_prompt_enabled: e.boolean().optional()
|
|
1700
1739
|
}).optional()
|
|
1701
|
-
}),
|
|
1740
|
+
}), oo = e.object({
|
|
1702
1741
|
date: e.string().openapi({
|
|
1703
1742
|
description: "Date these events occurred in ISO 8601 format",
|
|
1704
1743
|
example: "2025-12-19"
|
|
@@ -1723,191 +1762,194 @@ const Me = e.object({
|
|
|
1723
1762
|
description: "Approximate date and time the first event occurred in ISO 8601 format",
|
|
1724
1763
|
example: "2025-12-19T00:00:00.000Z"
|
|
1725
1764
|
})
|
|
1726
|
-
}),
|
|
1765
|
+
}), no = e.number().openapi({
|
|
1727
1766
|
description: "Number of active users in the last 30 days",
|
|
1728
1767
|
example: 1234
|
|
1729
1768
|
});
|
|
1730
|
-
function
|
|
1769
|
+
function io(t) {
|
|
1731
1770
|
const [n, a] = t.split("|");
|
|
1732
1771
|
if (!n || !a)
|
|
1733
1772
|
throw new Error(`Invalid user_id: ${t}`);
|
|
1734
1773
|
return { connection: n, id: a };
|
|
1735
1774
|
}
|
|
1736
|
-
function
|
|
1775
|
+
function ao(t) {
|
|
1737
1776
|
const {
|
|
1738
1777
|
primary: n,
|
|
1739
1778
|
secondaries: a,
|
|
1740
1779
|
syncMethods: L = ["create", "update", "remove", "delete", "set"]
|
|
1741
1780
|
} = t, D = {
|
|
1742
|
-
get(
|
|
1781
|
+
get(p, o) {
|
|
1743
1782
|
if (typeof o == "symbol")
|
|
1744
|
-
return
|
|
1745
|
-
const
|
|
1746
|
-
return typeof
|
|
1747
|
-
const w = await
|
|
1748
|
-
for (const
|
|
1749
|
-
const h =
|
|
1783
|
+
return p[o];
|
|
1784
|
+
const _ = p[o];
|
|
1785
|
+
return typeof _ != "function" ? _ : L.includes(o) ? async (...u) => {
|
|
1786
|
+
const w = await _.apply(p, u), m = [];
|
|
1787
|
+
for (const l of a) {
|
|
1788
|
+
const h = l.adapter[o];
|
|
1750
1789
|
if (typeof h != "function")
|
|
1751
1790
|
continue;
|
|
1752
1791
|
const j = (async () => {
|
|
1753
1792
|
try {
|
|
1754
|
-
await h.apply(
|
|
1793
|
+
await h.apply(l.adapter, u);
|
|
1755
1794
|
} catch (b) {
|
|
1756
1795
|
try {
|
|
1757
|
-
|
|
1796
|
+
l.onError ? l.onError(b, o, u) : console.error(
|
|
1758
1797
|
`Passthrough adapter: secondary write failed for ${o}:`,
|
|
1759
1798
|
b
|
|
1760
1799
|
);
|
|
1761
|
-
} catch (
|
|
1800
|
+
} catch (U) {
|
|
1762
1801
|
console.error(
|
|
1763
1802
|
`Passthrough adapter: onError handler threw for ${o}:`,
|
|
1764
|
-
|
|
1803
|
+
U
|
|
1765
1804
|
);
|
|
1766
1805
|
}
|
|
1767
1806
|
}
|
|
1768
1807
|
})();
|
|
1769
|
-
|
|
1808
|
+
l.blocking && m.push(j);
|
|
1770
1809
|
}
|
|
1771
1810
|
return m.length > 0 && await Promise.all(m), w;
|
|
1772
|
-
} :
|
|
1811
|
+
} : _.bind(p);
|
|
1773
1812
|
}
|
|
1774
1813
|
};
|
|
1775
1814
|
return new Proxy(n, D);
|
|
1776
1815
|
}
|
|
1777
|
-
function
|
|
1816
|
+
function so(t) {
|
|
1778
1817
|
return t;
|
|
1779
1818
|
}
|
|
1780
1819
|
export {
|
|
1781
|
-
|
|
1782
|
-
|
|
1820
|
+
mt as Auth0ActionEnum,
|
|
1821
|
+
ve as Auth0Client,
|
|
1783
1822
|
C as AuthorizationResponseMode,
|
|
1784
1823
|
I as AuthorizationResponseType,
|
|
1785
1824
|
O as CodeChallengeMethod,
|
|
1786
1825
|
A as ComponentCategory,
|
|
1787
1826
|
S as ComponentType,
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1827
|
+
ht as EmailActionEnum,
|
|
1828
|
+
ut as FlowActionTypeEnum,
|
|
1829
|
+
Ge as GrantType,
|
|
1830
|
+
xe as LocationInfo,
|
|
1831
|
+
ke as LogTypes,
|
|
1832
|
+
ne as NodeType,
|
|
1833
|
+
x as RedirectTargetEnum,
|
|
1834
|
+
se as actionNodeSchema,
|
|
1835
|
+
no as activeUsersResponseSchema,
|
|
1836
|
+
Ct as auth0FlowInsertSchema,
|
|
1837
|
+
_e as auth0FlowSchema,
|
|
1838
|
+
ft as auth0QuerySchema,
|
|
1798
1839
|
F as auth0UpdateUserActionSchema,
|
|
1799
|
-
|
|
1800
|
-
|
|
1840
|
+
St as auth0UserResponseSchema,
|
|
1841
|
+
de as authParamsSchema,
|
|
1801
1842
|
E as baseUserSchema,
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1843
|
+
Ke as bordersSchema,
|
|
1844
|
+
Ot as brandingSchema,
|
|
1845
|
+
Z as buttonComponentSchema,
|
|
1846
|
+
Y as clientGrantInsertSchema,
|
|
1847
|
+
It as clientGrantListSchema,
|
|
1848
|
+
Q as clientGrantSchema,
|
|
1849
|
+
V as clientInsertSchema,
|
|
1850
|
+
q as clientSchema,
|
|
1851
|
+
Ee as codeInsertSchema,
|
|
1852
|
+
yt as codeSchema,
|
|
1853
|
+
fe as codeTypeSchema,
|
|
1854
|
+
Be as colorsSchema,
|
|
1855
|
+
oe as componentSchema,
|
|
1856
|
+
ue as connectionInsertSchema,
|
|
1857
|
+
ge as connectionOptionsSchema,
|
|
1858
|
+
me as connectionSchema,
|
|
1859
|
+
r as coordinatesSchema,
|
|
1860
|
+
ao as createPassthroughAdapter,
|
|
1861
|
+
so as createWriteOnlyAdapter,
|
|
1862
|
+
Se as customDomainInsertSchema,
|
|
1863
|
+
Ie as customDomainSchema,
|
|
1864
|
+
Nt as customDomainWithTenantIdSchema,
|
|
1865
|
+
oo as dailyStatsSchema,
|
|
1866
|
+
Bt as emailProviderSchema,
|
|
1867
|
+
k as emailVerificationRulesSchema,
|
|
1827
1868
|
v as emailVerifyActionSchema,
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1869
|
+
pe as endingSchema,
|
|
1870
|
+
ee as fieldComponentSchema,
|
|
1871
|
+
M as flowActionStepSchema,
|
|
1872
|
+
H as flowInsertSchema,
|
|
1873
|
+
ae as flowNodeSchema,
|
|
1874
|
+
bt as flowSchema,
|
|
1834
1875
|
s as fontDetailsSchema,
|
|
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
|
-
|
|
1876
|
+
ze as fontsSchema,
|
|
1877
|
+
Rt as formControlSchema,
|
|
1878
|
+
Oe as formInsertSchema,
|
|
1879
|
+
Ce as formNodeComponentDefinition,
|
|
1880
|
+
Lt as formSchema,
|
|
1881
|
+
te as genericComponentSchema,
|
|
1882
|
+
re as genericNodeSchema,
|
|
1883
|
+
Dt as hookInsertSchema,
|
|
1884
|
+
wt as hookSchema,
|
|
1885
|
+
K as identitySchema,
|
|
1886
|
+
we as inviteInsertSchema,
|
|
1887
|
+
jt as inviteSchema,
|
|
1888
|
+
De as inviteeSchema,
|
|
1889
|
+
Le as inviterSchema,
|
|
1890
|
+
Ut as jwksKeySchema,
|
|
1891
|
+
je as jwksSchema,
|
|
1892
|
+
Tt as legacyClientSchema,
|
|
1893
|
+
$ as legalComponentSchema,
|
|
1894
|
+
Pe as logInsertSchema,
|
|
1895
|
+
vt as logSchema,
|
|
1896
|
+
Ue as loginSessionInsertSchema,
|
|
1897
|
+
Ft as loginSessionSchema,
|
|
1898
|
+
le as nodeSchema,
|
|
1899
|
+
kt as openIDConfigurationSchema,
|
|
1900
|
+
lt as organizationBrandingSchema,
|
|
1901
|
+
ct as organizationEnabledConnectionSchema,
|
|
1902
|
+
_t as organizationInsertSchema,
|
|
1903
|
+
$t as organizationSchema,
|
|
1904
|
+
pt as organizationTokenQuotaSchema,
|
|
1905
|
+
We as pageBackgroundSchema,
|
|
1906
|
+
io as parseUserId,
|
|
1907
|
+
Me as passwordInsertSchema,
|
|
1908
|
+
xt as passwordSchema,
|
|
1909
|
+
G as profileDataSchema,
|
|
1910
|
+
Kt as promptSettingSchema,
|
|
1911
|
+
P as redirectActionSchema,
|
|
1912
|
+
qe as refreshTokenInsertSchema,
|
|
1913
|
+
zt as refreshTokenSchema,
|
|
1914
|
+
Je as resourceServerInsertSchema,
|
|
1915
|
+
Vt as resourceServerListSchema,
|
|
1916
|
+
Qe as resourceServerOptionsSchema,
|
|
1917
|
+
Ze as resourceServerSchema,
|
|
1918
|
+
Ye as resourceServerScopeSchema,
|
|
1919
|
+
J as richTextComponentSchema,
|
|
1920
|
+
st as roleInsertSchema,
|
|
1921
|
+
Zt as roleListSchema,
|
|
1922
|
+
$e as rolePermissionInsertSchema,
|
|
1923
|
+
qt as rolePermissionListSchema,
|
|
1924
|
+
et as rolePermissionSchema,
|
|
1925
|
+
rt as roleSchema,
|
|
1926
|
+
He as sessionInsertSchema,
|
|
1927
|
+
Pt as sessionSchema,
|
|
1928
|
+
Mt as signingKeySchema,
|
|
1929
|
+
Xt as smsProviderSchema,
|
|
1930
|
+
Wt as smsSendParamsSchema,
|
|
1931
|
+
ce as startSchema,
|
|
1932
|
+
ie as stepNodeSchema,
|
|
1933
|
+
he as tenantInsertSchema,
|
|
1934
|
+
be as tenantSchema,
|
|
1935
|
+
to as tenantSettingsSchema,
|
|
1936
|
+
Ve as themeInsertSchema,
|
|
1937
|
+
Gt as themeSchema,
|
|
1938
|
+
Ht as tokenResponseSchema,
|
|
1939
|
+
Et as totalsSchema,
|
|
1940
|
+
B as userInsertSchema,
|
|
1941
|
+
dt as userOrganizationInsertSchema,
|
|
1942
|
+
eo as userOrganizationSchema,
|
|
1943
|
+
tt as userPermissionInsertSchema,
|
|
1944
|
+
Yt as userPermissionListSchema,
|
|
1945
|
+
ot as userPermissionSchema,
|
|
1946
|
+
Qt as userPermissionWithDetailsListSchema,
|
|
1947
|
+
nt as userPermissionWithDetailsSchema,
|
|
1948
|
+
At as userResponseSchema,
|
|
1949
|
+
it as userRoleInsertSchema,
|
|
1950
|
+
Jt as userRoleListSchema,
|
|
1951
|
+
at as userRoleSchema,
|
|
1952
|
+
z as userSchema,
|
|
1953
|
+
Ae as verificationMethodsSchema,
|
|
1954
|
+
Xe as widgetSchema
|
|
1913
1955
|
};
|