@authhero/adapter-interfaces 0.110.0 → 0.112.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 +928 -16
- package/dist/adapter-interfaces.mjs +377 -332
- 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,24 @@ 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
|
-
metadata: e.record(e.any()).optional()
|
|
595
|
-
|
|
633
|
+
metadata: e.record(e.any()).optional(),
|
|
634
|
+
is_system: e.boolean().optional()
|
|
635
|
+
}), me = e.object({
|
|
596
636
|
id: e.string(),
|
|
597
637
|
created_at: e.string().transform((t) => t === null ? "" : t),
|
|
598
638
|
updated_at: e.string().transform((t) => t === null ? "" : t)
|
|
599
|
-
}).extend(
|
|
639
|
+
}).extend(ue.shape), he = e.object({
|
|
600
640
|
id: e.string().optional(),
|
|
601
641
|
// Basic settings
|
|
602
642
|
audience: e.string(),
|
|
@@ -716,23 +756,23 @@ const ce = e.object({
|
|
|
716
756
|
// Authorization settings
|
|
717
757
|
pushed_authorization_requests_supported: e.boolean().optional(),
|
|
718
758
|
authorization_response_iss_parameter_supported: e.boolean().optional()
|
|
719
|
-
}),
|
|
759
|
+
}), be = e.object({
|
|
720
760
|
created_at: e.string().nullable().transform((t) => t ?? ""),
|
|
721
761
|
updated_at: e.string().nullable().transform((t) => t ?? ""),
|
|
722
|
-
...
|
|
762
|
+
...he.shape,
|
|
723
763
|
id: e.string()
|
|
724
|
-
}),
|
|
725
|
-
...
|
|
726
|
-
tenant:
|
|
727
|
-
connections: e.array(
|
|
728
|
-
}),
|
|
764
|
+
}), yt = e.object({
|
|
765
|
+
...q.shape,
|
|
766
|
+
tenant: be,
|
|
767
|
+
connections: e.array(me)
|
|
768
|
+
}), fe = e.enum([
|
|
729
769
|
"password_reset",
|
|
730
770
|
"email_verification",
|
|
731
771
|
"otp",
|
|
732
772
|
"authorization_code",
|
|
733
773
|
"oauth2_state",
|
|
734
774
|
"ticket"
|
|
735
|
-
]),
|
|
775
|
+
]), Ee = e.object({
|
|
736
776
|
code_id: e.string().openapi({
|
|
737
777
|
description: "The code that will be used in for instance an email verification flow"
|
|
738
778
|
}),
|
|
@@ -742,7 +782,7 @@ const ce = e.object({
|
|
|
742
782
|
connection_id: e.string().optional().openapi({
|
|
743
783
|
description: "The connection that the code is connected to"
|
|
744
784
|
}),
|
|
745
|
-
code_type:
|
|
785
|
+
code_type: fe,
|
|
746
786
|
code_verifier: e.string().optional().openapi({
|
|
747
787
|
description: "The code verifier used in PKCE in outbound flows"
|
|
748
788
|
}),
|
|
@@ -764,10 +804,10 @@ const ce = e.object({
|
|
|
764
804
|
expires_at: e.string(),
|
|
765
805
|
used_at: e.string().optional(),
|
|
766
806
|
user_id: e.string().optional()
|
|
767
|
-
}),
|
|
768
|
-
...
|
|
807
|
+
}), Tt = e.object({
|
|
808
|
+
...Ee.shape,
|
|
769
809
|
created_at: e.string()
|
|
770
|
-
}),
|
|
810
|
+
}), Se = e.object({
|
|
771
811
|
domain: e.string(),
|
|
772
812
|
custom_domain_id: e.string().optional(),
|
|
773
813
|
type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
@@ -781,23 +821,23 @@ const ce = e.object({
|
|
|
781
821
|
"null"
|
|
782
822
|
]).optional(),
|
|
783
823
|
domain_metadata: e.record(e.string().max(255)).optional()
|
|
784
|
-
}),
|
|
824
|
+
}), Ae = e.object({
|
|
785
825
|
name: e.literal("txt"),
|
|
786
826
|
record: e.string(),
|
|
787
827
|
domain: e.string()
|
|
788
|
-
}),
|
|
789
|
-
...
|
|
828
|
+
}), Ie = e.object({
|
|
829
|
+
...Se.shape,
|
|
790
830
|
custom_domain_id: e.string(),
|
|
791
831
|
primary: e.boolean(),
|
|
792
832
|
status: e.enum(["disabled", "pending", "pending_verification", "ready"]),
|
|
793
833
|
origin_domain_name: e.string().optional(),
|
|
794
834
|
verification: e.object({
|
|
795
|
-
methods: e.array(
|
|
835
|
+
methods: e.array(Ae)
|
|
796
836
|
}).optional(),
|
|
797
837
|
tls_policy: e.string().optional()
|
|
798
|
-
}),
|
|
838
|
+
}), Nt = Ie.extend({
|
|
799
839
|
tenant_id: e.string()
|
|
800
|
-
}),
|
|
840
|
+
}), Rt = e.object({
|
|
801
841
|
id: e.string(),
|
|
802
842
|
type: e.literal("submit"),
|
|
803
843
|
label: e.string(),
|
|
@@ -812,25 +852,25 @@ const ce = e.object({
|
|
|
812
852
|
visible: e.boolean().optional().default(!0)
|
|
813
853
|
}), f = y.extend({
|
|
814
854
|
category: e.literal("BLOCK").optional()
|
|
815
|
-
}),
|
|
855
|
+
}), c = y.extend({
|
|
816
856
|
category: e.literal("FIELD").optional(),
|
|
817
857
|
required: e.boolean().optional(),
|
|
818
858
|
sensitive: e.boolean().optional()
|
|
819
|
-
}),
|
|
859
|
+
}), Ce = e.discriminatedUnion("type", [
|
|
820
860
|
f.extend({
|
|
821
861
|
type: e.literal("RICH_TEXT"),
|
|
822
862
|
config: e.object({
|
|
823
863
|
content: e.string()
|
|
824
864
|
})
|
|
825
865
|
}),
|
|
826
|
-
|
|
866
|
+
c.omit({ sensitive: !0 }).extend({
|
|
827
867
|
type: e.literal("LEGAL"),
|
|
828
868
|
config: e.object({
|
|
829
869
|
text: e.string(),
|
|
830
870
|
html: e.boolean().optional()
|
|
831
871
|
})
|
|
832
872
|
}),
|
|
833
|
-
|
|
873
|
+
c.extend({
|
|
834
874
|
type: e.literal("TEXT"),
|
|
835
875
|
config: e.object({
|
|
836
876
|
placeholder: e.string().optional(),
|
|
@@ -843,21 +883,21 @@ const ce = e.object({
|
|
|
843
883
|
text: e.string().optional()
|
|
844
884
|
})
|
|
845
885
|
}),
|
|
846
|
-
|
|
886
|
+
c.extend({
|
|
847
887
|
type: e.literal("EMAIL"),
|
|
848
888
|
config: e.object({
|
|
849
889
|
label: e.string().optional(),
|
|
850
890
|
placeholder: e.string().optional()
|
|
851
891
|
})
|
|
852
892
|
}),
|
|
853
|
-
|
|
893
|
+
c.extend({
|
|
854
894
|
type: e.literal("NUMBER"),
|
|
855
895
|
config: e.object({
|
|
856
896
|
label: e.string().optional(),
|
|
857
897
|
placeholder: e.string().optional()
|
|
858
898
|
})
|
|
859
899
|
}),
|
|
860
|
-
|
|
900
|
+
c.extend({
|
|
861
901
|
type: e.literal("PHONE"),
|
|
862
902
|
config: e.object({
|
|
863
903
|
label: e.string().optional(),
|
|
@@ -865,7 +905,7 @@ const ce = e.object({
|
|
|
865
905
|
})
|
|
866
906
|
})
|
|
867
907
|
// Add more component types as needed
|
|
868
|
-
]),
|
|
908
|
+
]), Oe = e.object({
|
|
869
909
|
name: e.string().openapi({
|
|
870
910
|
description: "The name of the form"
|
|
871
911
|
}),
|
|
@@ -916,7 +956,7 @@ const ce = e.object({
|
|
|
916
956
|
coordinates: e.object({ x: e.number(), y: e.number() }),
|
|
917
957
|
alias: e.string().min(1).max(150).optional(),
|
|
918
958
|
config: e.object({
|
|
919
|
-
components: e.array(
|
|
959
|
+
components: e.array(Ce),
|
|
920
960
|
next_node: e.string().optional()
|
|
921
961
|
})
|
|
922
962
|
})
|
|
@@ -939,9 +979,9 @@ const ce = e.object({
|
|
|
939
979
|
style: e.object({ css: e.string().optional() }).optional()
|
|
940
980
|
}).openapi({
|
|
941
981
|
description: "Schema for flow-based forms (matches new JSON structure)"
|
|
942
|
-
}),
|
|
982
|
+
}), Lt = e.object({
|
|
943
983
|
...i.shape,
|
|
944
|
-
...
|
|
984
|
+
...Oe.shape,
|
|
945
985
|
id: e.string()
|
|
946
986
|
}), T = e.enum([
|
|
947
987
|
"pre-user-registration",
|
|
@@ -963,37 +1003,37 @@ const ce = e.object({
|
|
|
963
1003
|
synchronous: e.boolean().default(!1),
|
|
964
1004
|
priority: e.number().optional(),
|
|
965
1005
|
hook_id: e.string().optional()
|
|
966
|
-
},
|
|
1006
|
+
}, ye = e.object({
|
|
967
1007
|
...g,
|
|
968
1008
|
trigger_id: T,
|
|
969
1009
|
url: e.string()
|
|
970
|
-
}),
|
|
1010
|
+
}), Te = e.object({
|
|
971
1011
|
...g,
|
|
972
1012
|
trigger_id: N,
|
|
973
1013
|
form_id: e.string()
|
|
974
|
-
}),
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
]),
|
|
1014
|
+
}), Dt = e.union([
|
|
1015
|
+
ye,
|
|
1016
|
+
Te
|
|
1017
|
+
]), Ne = e.object({
|
|
978
1018
|
...g,
|
|
979
1019
|
trigger_id: T,
|
|
980
1020
|
...i.shape,
|
|
981
1021
|
hook_id: e.string(),
|
|
982
1022
|
url: e.string()
|
|
983
|
-
}),
|
|
1023
|
+
}), Re = e.object({
|
|
984
1024
|
...g,
|
|
985
1025
|
trigger_id: N,
|
|
986
1026
|
...i.shape,
|
|
987
1027
|
hook_id: e.string(),
|
|
988
1028
|
form_id: e.string()
|
|
989
|
-
}),
|
|
1029
|
+
}), wt = e.union([Ne, Re]), Le = e.object({
|
|
990
1030
|
name: e.string().optional()
|
|
991
|
-
}),
|
|
1031
|
+
}), De = e.object({
|
|
992
1032
|
email: e.string().optional()
|
|
993
|
-
}),
|
|
1033
|
+
}), we = e.object({
|
|
994
1034
|
organization_id: e.string().max(50),
|
|
995
|
-
inviter:
|
|
996
|
-
invitee:
|
|
1035
|
+
inviter: Le,
|
|
1036
|
+
invitee: De,
|
|
997
1037
|
invitation_url: e.string().url(),
|
|
998
1038
|
client_id: e.string(),
|
|
999
1039
|
connection_id: e.string().optional(),
|
|
@@ -1002,13 +1042,13 @@ const ce = e.object({
|
|
|
1002
1042
|
ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
|
|
1003
1043
|
roles: e.array(e.string()).default([]).optional(),
|
|
1004
1044
|
send_invitation_email: e.boolean().default(!0).optional()
|
|
1005
|
-
}),
|
|
1045
|
+
}), jt = e.object({
|
|
1006
1046
|
id: e.string(),
|
|
1007
1047
|
organization_id: e.string().max(50),
|
|
1008
1048
|
created_at: e.string().datetime(),
|
|
1009
1049
|
expires_at: e.string().datetime(),
|
|
1010
1050
|
ticket_id: e.string().optional()
|
|
1011
|
-
}).extend(
|
|
1051
|
+
}).extend(we.shape), je = e.object({
|
|
1012
1052
|
alg: e.enum([
|
|
1013
1053
|
"RS256",
|
|
1014
1054
|
"RS384",
|
|
@@ -1027,9 +1067,9 @@ const ce = e.object({
|
|
|
1027
1067
|
x5t: e.string().optional(),
|
|
1028
1068
|
x5c: e.array(e.string()).optional(),
|
|
1029
1069
|
use: e.enum(["sig", "enc"]).optional()
|
|
1030
|
-
}),
|
|
1031
|
-
keys: e.array(
|
|
1032
|
-
}),
|
|
1070
|
+
}), Ut = e.object({
|
|
1071
|
+
keys: e.array(je)
|
|
1072
|
+
}), kt = e.object({
|
|
1033
1073
|
issuer: e.string(),
|
|
1034
1074
|
authorization_endpoint: e.string(),
|
|
1035
1075
|
token_endpoint: e.string(),
|
|
@@ -1050,10 +1090,10 @@ const ce = e.object({
|
|
|
1050
1090
|
request_uri_parameter_supported: e.boolean(),
|
|
1051
1091
|
request_parameter_supported: e.boolean(),
|
|
1052
1092
|
token_endpoint_auth_signing_alg_values_supported: e.array(e.string())
|
|
1053
|
-
}),
|
|
1093
|
+
}), Ue = e.object({
|
|
1054
1094
|
csrf_token: e.string(),
|
|
1055
1095
|
auth0Client: e.string().optional(),
|
|
1056
|
-
authParams:
|
|
1096
|
+
authParams: de,
|
|
1057
1097
|
expires_at: e.string(),
|
|
1058
1098
|
deleted_at: e.string().optional(),
|
|
1059
1099
|
ip: e.string().optional(),
|
|
@@ -1063,14 +1103,14 @@ const ce = e.object({
|
|
|
1063
1103
|
login_completed: e.boolean().optional().default(!1)
|
|
1064
1104
|
}).openapi({
|
|
1065
1105
|
description: "This represents a login sesion"
|
|
1066
|
-
}),
|
|
1067
|
-
...
|
|
1106
|
+
}), Ft = e.object({
|
|
1107
|
+
...Ue.shape,
|
|
1068
1108
|
id: e.string().openapi({
|
|
1069
1109
|
description: "This is is used as the state in the universal login"
|
|
1070
1110
|
}),
|
|
1071
1111
|
created_at: e.string(),
|
|
1072
1112
|
updated_at: e.string()
|
|
1073
|
-
}),
|
|
1113
|
+
}), ke = {
|
|
1074
1114
|
// Network & System
|
|
1075
1115
|
ACLS_SUMMARY: "acls_summary",
|
|
1076
1116
|
ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
|
|
@@ -1237,24 +1277,24 @@ const ce = e.object({
|
|
|
1237
1277
|
WARNING_DURING_LOGIN: "w",
|
|
1238
1278
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
1239
1279
|
WARNING_USER_MANAGEMENT: "wum"
|
|
1240
|
-
},
|
|
1241
|
-
(t) => Object.values(
|
|
1280
|
+
}, Fe = e.string().refine(
|
|
1281
|
+
(t) => Object.values(ke).includes(t),
|
|
1242
1282
|
{ message: "Invalid log type" }
|
|
1243
|
-
),
|
|
1283
|
+
), ve = e.object({
|
|
1244
1284
|
name: e.string(),
|
|
1245
1285
|
version: e.string(),
|
|
1246
1286
|
env: e.object({
|
|
1247
1287
|
node: e.string().optional()
|
|
1248
1288
|
}).optional()
|
|
1249
|
-
}),
|
|
1289
|
+
}), xe = e.object({
|
|
1250
1290
|
country_code: e.string().length(2),
|
|
1251
1291
|
city_name: e.string(),
|
|
1252
1292
|
latitude: e.string(),
|
|
1253
1293
|
longitude: e.string(),
|
|
1254
1294
|
time_zone: e.string(),
|
|
1255
1295
|
continent_code: e.string()
|
|
1256
|
-
}),
|
|
1257
|
-
type:
|
|
1296
|
+
}), Pe = e.object({
|
|
1297
|
+
type: Fe,
|
|
1258
1298
|
date: e.string(),
|
|
1259
1299
|
description: e.string().optional(),
|
|
1260
1300
|
ip: e.string().optional(),
|
|
@@ -1273,19 +1313,19 @@ const ce = e.object({
|
|
|
1273
1313
|
strategy: e.string().optional(),
|
|
1274
1314
|
strategy_type: e.string().optional(),
|
|
1275
1315
|
hostname: e.string().optional(),
|
|
1276
|
-
auth0_client:
|
|
1316
|
+
auth0_client: ve.optional(),
|
|
1277
1317
|
log_id: e.string().optional(),
|
|
1278
|
-
location_info:
|
|
1279
|
-
}),
|
|
1280
|
-
...
|
|
1318
|
+
location_info: xe.optional()
|
|
1319
|
+
}), vt = e.object({
|
|
1320
|
+
...Pe.shape,
|
|
1281
1321
|
log_id: e.string()
|
|
1282
|
-
}),
|
|
1322
|
+
}), Me = e.object({
|
|
1283
1323
|
id: e.string().optional(),
|
|
1284
1324
|
user_id: e.string(),
|
|
1285
1325
|
password: e.string(),
|
|
1286
1326
|
algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
|
|
1287
1327
|
is_current: e.boolean().default(!0)
|
|
1288
|
-
}),
|
|
1328
|
+
}), xt = Me.extend({
|
|
1289
1329
|
id: e.string(),
|
|
1290
1330
|
created_at: e.string(),
|
|
1291
1331
|
updated_at: e.string()
|
|
@@ -1296,7 +1336,7 @@ const ce = e.object({
|
|
|
1296
1336
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
1297
1337
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
1298
1338
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
1299
|
-
}),
|
|
1339
|
+
}), He = e.object({
|
|
1300
1340
|
id: e.string(),
|
|
1301
1341
|
revoked_at: e.string().optional(),
|
|
1302
1342
|
used_at: e.string().optional(),
|
|
@@ -1308,13 +1348,13 @@ const ce = e.object({
|
|
|
1308
1348
|
"Metadata related to the device used in the session"
|
|
1309
1349
|
),
|
|
1310
1350
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
1311
|
-
}),
|
|
1351
|
+
}), Pt = e.object({
|
|
1312
1352
|
created_at: e.string(),
|
|
1313
1353
|
updated_at: e.string(),
|
|
1314
1354
|
authenticated_at: e.string(),
|
|
1315
1355
|
last_interaction_at: e.string(),
|
|
1316
|
-
...
|
|
1317
|
-
}),
|
|
1356
|
+
...He.shape
|
|
1357
|
+
}), Mt = e.object({
|
|
1318
1358
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
1319
1359
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
1320
1360
|
fingerprint: e.string().openapi({ description: "The cert fingerprint" }),
|
|
@@ -1340,8 +1380,8 @@ const ce = e.object({
|
|
|
1340
1380
|
description: "The type of the signing key"
|
|
1341
1381
|
})
|
|
1342
1382
|
});
|
|
1343
|
-
var
|
|
1344
|
-
const
|
|
1383
|
+
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 || {});
|
|
1384
|
+
const Ht = e.object({
|
|
1345
1385
|
access_token: e.string(),
|
|
1346
1386
|
id_token: e.string().optional(),
|
|
1347
1387
|
scope: e.string().optional(),
|
|
@@ -1354,7 +1394,7 @@ e.object({
|
|
|
1354
1394
|
code: e.string(),
|
|
1355
1395
|
state: e.string().optional()
|
|
1356
1396
|
});
|
|
1357
|
-
const
|
|
1397
|
+
const Ke = e.object({
|
|
1358
1398
|
button_border_radius: e.number(),
|
|
1359
1399
|
button_border_weight: e.number(),
|
|
1360
1400
|
buttons_style: e.enum(["pill", "rounded", "sharp"]),
|
|
@@ -1364,7 +1404,7 @@ const Me = e.object({
|
|
|
1364
1404
|
show_widget_shadow: e.boolean(),
|
|
1365
1405
|
widget_border_weight: e.number(),
|
|
1366
1406
|
widget_corner_radius: e.number()
|
|
1367
|
-
}),
|
|
1407
|
+
}), Be = e.object({
|
|
1368
1408
|
base_focus_color: e.string(),
|
|
1369
1409
|
base_hover_color: e.string(),
|
|
1370
1410
|
body_text: e.string(),
|
|
@@ -1387,7 +1427,7 @@ const Me = e.object({
|
|
|
1387
1427
|
}), s = e.object({
|
|
1388
1428
|
bold: e.boolean(),
|
|
1389
1429
|
size: e.number()
|
|
1390
|
-
}),
|
|
1430
|
+
}), ze = e.object({
|
|
1391
1431
|
body_text: s,
|
|
1392
1432
|
buttons_text: s,
|
|
1393
1433
|
font_url: e.string(),
|
|
@@ -1397,31 +1437,31 @@ const Me = e.object({
|
|
|
1397
1437
|
reference_text_size: e.number(),
|
|
1398
1438
|
subtitle: s,
|
|
1399
1439
|
title: s
|
|
1400
|
-
}),
|
|
1440
|
+
}), We = e.object({
|
|
1401
1441
|
background_color: e.string(),
|
|
1402
1442
|
background_image_url: e.string(),
|
|
1403
1443
|
page_layout: e.enum(["center", "left", "right"])
|
|
1404
|
-
}),
|
|
1444
|
+
}), Xe = e.object({
|
|
1405
1445
|
header_text_alignment: e.enum(["center", "left", "right"]),
|
|
1406
1446
|
logo_height: e.number(),
|
|
1407
1447
|
logo_position: e.enum(["center", "left", "none", "right"]),
|
|
1408
1448
|
logo_url: e.string(),
|
|
1409
1449
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
1410
|
-
}),
|
|
1411
|
-
borders:
|
|
1412
|
-
colors:
|
|
1450
|
+
}), Ve = e.object({
|
|
1451
|
+
borders: Ke,
|
|
1452
|
+
colors: Be,
|
|
1413
1453
|
displayName: e.string(),
|
|
1414
|
-
fonts:
|
|
1415
|
-
page_background:
|
|
1416
|
-
widget:
|
|
1417
|
-
}),
|
|
1454
|
+
fonts: ze,
|
|
1455
|
+
page_background: We,
|
|
1456
|
+
widget: Xe
|
|
1457
|
+
}), Gt = Ve.extend({
|
|
1418
1458
|
themeId: e.string()
|
|
1419
|
-
}),
|
|
1459
|
+
}), Kt = e.object({
|
|
1420
1460
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
1421
1461
|
identifier_first: e.boolean().default(!0),
|
|
1422
1462
|
password_first: e.boolean().default(!1),
|
|
1423
1463
|
webauthn_platform_first_factor: e.boolean()
|
|
1424
|
-
}),
|
|
1464
|
+
}), Bt = e.object({
|
|
1425
1465
|
name: e.string(),
|
|
1426
1466
|
enabled: e.boolean().optional().default(!0),
|
|
1427
1467
|
default_from_address: e.string().optional(),
|
|
@@ -1451,7 +1491,7 @@ const Me = e.object({
|
|
|
1451
1491
|
})
|
|
1452
1492
|
]),
|
|
1453
1493
|
settings: e.object({}).optional()
|
|
1454
|
-
}),
|
|
1494
|
+
}), qe = e.object({
|
|
1455
1495
|
// The actual refresh token value (primary key).
|
|
1456
1496
|
id: e.string(),
|
|
1457
1497
|
// Link to the session record
|
|
@@ -1472,21 +1512,21 @@ const Me = e.object({
|
|
|
1472
1512
|
})
|
|
1473
1513
|
),
|
|
1474
1514
|
rotating: e.boolean()
|
|
1475
|
-
}),
|
|
1515
|
+
}), zt = e.object({
|
|
1476
1516
|
// When the refresh token record was created.
|
|
1477
1517
|
created_at: e.string(),
|
|
1478
1518
|
// Spread in the rest of the refresh token properties.
|
|
1479
|
-
...
|
|
1480
|
-
}),
|
|
1519
|
+
...qe.shape
|
|
1520
|
+
}), Wt = e.object({
|
|
1481
1521
|
to: e.string(),
|
|
1482
1522
|
message: e.string()
|
|
1483
|
-
}),
|
|
1523
|
+
}), Xt = e.object({
|
|
1484
1524
|
name: e.string(),
|
|
1485
1525
|
options: e.object({})
|
|
1486
|
-
}),
|
|
1526
|
+
}), Ye = e.object({
|
|
1487
1527
|
value: e.string(),
|
|
1488
1528
|
description: e.string().optional()
|
|
1489
|
-
}),
|
|
1529
|
+
}), Qe = e.object({
|
|
1490
1530
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
1491
1531
|
enforce_policies: e.boolean().optional(),
|
|
1492
1532
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -1496,10 +1536,10 @@ const Me = e.object({
|
|
|
1496
1536
|
mtls: e.object({
|
|
1497
1537
|
bound_access_tokens: e.boolean().optional()
|
|
1498
1538
|
}).optional()
|
|
1499
|
-
}),
|
|
1539
|
+
}), Je = e.object({
|
|
1500
1540
|
name: e.string(),
|
|
1501
1541
|
identifier: e.string(),
|
|
1502
|
-
scopes: e.array(
|
|
1542
|
+
scopes: e.array(Ye).optional(),
|
|
1503
1543
|
signing_alg: e.string().optional(),
|
|
1504
1544
|
signing_secret: e.string().optional(),
|
|
1505
1545
|
token_lifetime: e.number().optional(),
|
|
@@ -1507,29 +1547,30 @@ const Me = e.object({
|
|
|
1507
1547
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
1508
1548
|
allow_offline_access: e.boolean().optional(),
|
|
1509
1549
|
verificationKey: e.string().optional(),
|
|
1510
|
-
options:
|
|
1511
|
-
|
|
1550
|
+
options: Qe.optional(),
|
|
1551
|
+
is_system: e.boolean().optional()
|
|
1552
|
+
}), Ze = e.object({
|
|
1512
1553
|
id: e.string().optional(),
|
|
1513
|
-
...
|
|
1554
|
+
...Je.shape,
|
|
1514
1555
|
created_at: e.string().optional(),
|
|
1515
1556
|
updated_at: e.string().optional()
|
|
1516
|
-
}),
|
|
1557
|
+
}), Vt = e.array(Ze), $e = e.object({
|
|
1517
1558
|
role_id: e.string(),
|
|
1518
1559
|
resource_server_identifier: e.string(),
|
|
1519
1560
|
permission_name: e.string()
|
|
1520
|
-
}),
|
|
1521
|
-
|
|
1561
|
+
}), et = e.object({
|
|
1562
|
+
...$e.shape,
|
|
1522
1563
|
created_at: e.string()
|
|
1523
|
-
}),
|
|
1564
|
+
}), qt = e.array(et), tt = e.object({
|
|
1524
1565
|
user_id: e.string(),
|
|
1525
1566
|
resource_server_identifier: e.string(),
|
|
1526
1567
|
permission_name: e.string(),
|
|
1527
1568
|
organization_id: e.string().optional()
|
|
1528
|
-
}),
|
|
1529
|
-
...
|
|
1569
|
+
}), ot = e.object({
|
|
1570
|
+
...tt.shape,
|
|
1530
1571
|
tenant_id: e.string(),
|
|
1531
1572
|
created_at: e.string().optional()
|
|
1532
|
-
}),
|
|
1573
|
+
}), Yt = e.array(ot), nt = e.object({
|
|
1533
1574
|
user_id: e.string(),
|
|
1534
1575
|
resource_server_identifier: e.string(),
|
|
1535
1576
|
resource_server_name: e.string(),
|
|
@@ -1537,31 +1578,32 @@ const Me = e.object({
|
|
|
1537
1578
|
description: e.string().nullable().optional(),
|
|
1538
1579
|
created_at: e.string().optional(),
|
|
1539
1580
|
organization_id: e.string().optional()
|
|
1540
|
-
}),
|
|
1541
|
-
|
|
1542
|
-
),
|
|
1581
|
+
}), Qt = e.array(
|
|
1582
|
+
nt
|
|
1583
|
+
), it = e.object({
|
|
1543
1584
|
user_id: e.string(),
|
|
1544
1585
|
role_id: e.string(),
|
|
1545
1586
|
organization_id: e.string().optional()
|
|
1546
|
-
}),
|
|
1547
|
-
...
|
|
1587
|
+
}), at = e.object({
|
|
1588
|
+
...it.shape,
|
|
1548
1589
|
tenant_id: e.string(),
|
|
1549
1590
|
created_at: e.string().optional()
|
|
1550
|
-
}),
|
|
1591
|
+
}), Jt = e.array(at), st = e.object({
|
|
1551
1592
|
name: e.string().min(1).max(50).openapi({
|
|
1552
1593
|
description: "The name of the role. Cannot include '<' or '>'"
|
|
1553
1594
|
}),
|
|
1554
1595
|
description: e.string().max(255).optional().openapi({
|
|
1555
1596
|
description: "The description of the role"
|
|
1556
|
-
})
|
|
1557
|
-
|
|
1597
|
+
}),
|
|
1598
|
+
is_system: e.boolean().optional()
|
|
1599
|
+
}), rt = e.object({
|
|
1558
1600
|
id: e.string().openapi({
|
|
1559
1601
|
description: "The unique identifier of the role"
|
|
1560
1602
|
}),
|
|
1561
|
-
...
|
|
1603
|
+
...st.shape,
|
|
1562
1604
|
created_at: e.string().optional(),
|
|
1563
1605
|
updated_at: e.string().optional()
|
|
1564
|
-
}),
|
|
1606
|
+
}), Zt = e.array(rt), lt = e.object({
|
|
1565
1607
|
logo_url: e.string().optional().openapi({
|
|
1566
1608
|
description: "URL of the organization's logo"
|
|
1567
1609
|
}),
|
|
@@ -1573,7 +1615,7 @@ const Me = e.object({
|
|
|
1573
1615
|
description: "Page background color in hex format (e.g., #FFFFFF)"
|
|
1574
1616
|
})
|
|
1575
1617
|
}).optional()
|
|
1576
|
-
}).optional(),
|
|
1618
|
+
}).optional(), ct = e.object({
|
|
1577
1619
|
connection_id: e.string().openapi({
|
|
1578
1620
|
description: "ID of the connection"
|
|
1579
1621
|
}),
|
|
@@ -1586,7 +1628,7 @@ const Me = e.object({
|
|
|
1586
1628
|
is_signup_enabled: e.boolean().default(!0).openapi({
|
|
1587
1629
|
description: "Whether signup is enabled for this connection"
|
|
1588
1630
|
})
|
|
1589
|
-
}),
|
|
1631
|
+
}), pt = e.object({
|
|
1590
1632
|
client_credentials: e.object({
|
|
1591
1633
|
enforce: e.boolean().default(!1).openapi({
|
|
1592
1634
|
description: "Whether to enforce token quota limits"
|
|
@@ -1598,7 +1640,7 @@ const Me = e.object({
|
|
|
1598
1640
|
description: "Maximum tokens per hour (0 = unlimited)"
|
|
1599
1641
|
})
|
|
1600
1642
|
}).optional()
|
|
1601
|
-
}).optional(),
|
|
1643
|
+
}).optional(), _t = e.object({
|
|
1602
1644
|
id: e.string().optional(),
|
|
1603
1645
|
name: e.string().min(1).openapi({
|
|
1604
1646
|
description: "The name of the organization"
|
|
@@ -1606,30 +1648,30 @@ const Me = e.object({
|
|
|
1606
1648
|
display_name: e.string().optional().openapi({
|
|
1607
1649
|
description: "The display name of the organization"
|
|
1608
1650
|
}),
|
|
1609
|
-
branding:
|
|
1651
|
+
branding: lt,
|
|
1610
1652
|
metadata: e.record(e.any()).default({}).optional().openapi({
|
|
1611
1653
|
description: "Custom metadata for the organization"
|
|
1612
1654
|
}),
|
|
1613
|
-
enabled_connections: e.array(
|
|
1655
|
+
enabled_connections: e.array(ct).default([]).optional().openapi({
|
|
1614
1656
|
description: "List of enabled connections for the organization"
|
|
1615
1657
|
}),
|
|
1616
|
-
token_quota:
|
|
1617
|
-
}),
|
|
1618
|
-
...
|
|
1658
|
+
token_quota: pt
|
|
1659
|
+
}), $t = e.object({
|
|
1660
|
+
..._t.shape,
|
|
1619
1661
|
...i.shape,
|
|
1620
1662
|
id: e.string()
|
|
1621
|
-
}),
|
|
1663
|
+
}), dt = e.object({
|
|
1622
1664
|
user_id: e.string().openapi({
|
|
1623
1665
|
description: "ID of the user"
|
|
1624
1666
|
}),
|
|
1625
1667
|
organization_id: e.string().openapi({
|
|
1626
1668
|
description: "ID of the organization"
|
|
1627
1669
|
})
|
|
1628
|
-
}),
|
|
1629
|
-
...
|
|
1670
|
+
}), eo = e.object({
|
|
1671
|
+
...dt.shape,
|
|
1630
1672
|
...i.shape,
|
|
1631
1673
|
id: e.string()
|
|
1632
|
-
}),
|
|
1674
|
+
}), to = e.object({
|
|
1633
1675
|
// Session settings
|
|
1634
1676
|
idle_session_lifetime: e.number().optional(),
|
|
1635
1677
|
session_lifetime: e.number().optional(),
|
|
@@ -1698,7 +1740,7 @@ const Me = e.object({
|
|
|
1698
1740
|
sessions: e.object({
|
|
1699
1741
|
oidc_logout_prompt_enabled: e.boolean().optional()
|
|
1700
1742
|
}).optional()
|
|
1701
|
-
}),
|
|
1743
|
+
}), oo = e.object({
|
|
1702
1744
|
date: e.string().openapi({
|
|
1703
1745
|
description: "Date these events occurred in ISO 8601 format",
|
|
1704
1746
|
example: "2025-12-19"
|
|
@@ -1723,191 +1765,194 @@ const Me = e.object({
|
|
|
1723
1765
|
description: "Approximate date and time the first event occurred in ISO 8601 format",
|
|
1724
1766
|
example: "2025-12-19T00:00:00.000Z"
|
|
1725
1767
|
})
|
|
1726
|
-
}),
|
|
1768
|
+
}), no = e.number().openapi({
|
|
1727
1769
|
description: "Number of active users in the last 30 days",
|
|
1728
1770
|
example: 1234
|
|
1729
1771
|
});
|
|
1730
|
-
function
|
|
1772
|
+
function io(t) {
|
|
1731
1773
|
const [n, a] = t.split("|");
|
|
1732
1774
|
if (!n || !a)
|
|
1733
1775
|
throw new Error(`Invalid user_id: ${t}`);
|
|
1734
1776
|
return { connection: n, id: a };
|
|
1735
1777
|
}
|
|
1736
|
-
function
|
|
1778
|
+
function ao(t) {
|
|
1737
1779
|
const {
|
|
1738
1780
|
primary: n,
|
|
1739
1781
|
secondaries: a,
|
|
1740
1782
|
syncMethods: L = ["create", "update", "remove", "delete", "set"]
|
|
1741
1783
|
} = t, D = {
|
|
1742
|
-
get(
|
|
1784
|
+
get(p, o) {
|
|
1743
1785
|
if (typeof o == "symbol")
|
|
1744
|
-
return
|
|
1745
|
-
const
|
|
1746
|
-
return typeof
|
|
1747
|
-
const w = await
|
|
1748
|
-
for (const
|
|
1749
|
-
const h =
|
|
1786
|
+
return p[o];
|
|
1787
|
+
const _ = p[o];
|
|
1788
|
+
return typeof _ != "function" ? _ : L.includes(o) ? async (...u) => {
|
|
1789
|
+
const w = await _.apply(p, u), m = [];
|
|
1790
|
+
for (const l of a) {
|
|
1791
|
+
const h = l.adapter[o];
|
|
1750
1792
|
if (typeof h != "function")
|
|
1751
1793
|
continue;
|
|
1752
1794
|
const j = (async () => {
|
|
1753
1795
|
try {
|
|
1754
|
-
await h.apply(
|
|
1796
|
+
await h.apply(l.adapter, u);
|
|
1755
1797
|
} catch (b) {
|
|
1756
1798
|
try {
|
|
1757
|
-
|
|
1799
|
+
l.onError ? l.onError(b, o, u) : console.error(
|
|
1758
1800
|
`Passthrough adapter: secondary write failed for ${o}:`,
|
|
1759
1801
|
b
|
|
1760
1802
|
);
|
|
1761
|
-
} catch (
|
|
1803
|
+
} catch (U) {
|
|
1762
1804
|
console.error(
|
|
1763
1805
|
`Passthrough adapter: onError handler threw for ${o}:`,
|
|
1764
|
-
|
|
1806
|
+
U
|
|
1765
1807
|
);
|
|
1766
1808
|
}
|
|
1767
1809
|
}
|
|
1768
1810
|
})();
|
|
1769
|
-
|
|
1811
|
+
l.blocking && m.push(j);
|
|
1770
1812
|
}
|
|
1771
1813
|
return m.length > 0 && await Promise.all(m), w;
|
|
1772
|
-
} :
|
|
1814
|
+
} : _.bind(p);
|
|
1773
1815
|
}
|
|
1774
1816
|
};
|
|
1775
1817
|
return new Proxy(n, D);
|
|
1776
1818
|
}
|
|
1777
|
-
function
|
|
1819
|
+
function so(t) {
|
|
1778
1820
|
return t;
|
|
1779
1821
|
}
|
|
1780
1822
|
export {
|
|
1781
|
-
|
|
1782
|
-
|
|
1823
|
+
mt as Auth0ActionEnum,
|
|
1824
|
+
ve as Auth0Client,
|
|
1783
1825
|
C as AuthorizationResponseMode,
|
|
1784
1826
|
I as AuthorizationResponseType,
|
|
1785
1827
|
O as CodeChallengeMethod,
|
|
1786
1828
|
A as ComponentCategory,
|
|
1787
1829
|
S as ComponentType,
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1830
|
+
ht as EmailActionEnum,
|
|
1831
|
+
ut as FlowActionTypeEnum,
|
|
1832
|
+
Ge as GrantType,
|
|
1833
|
+
xe as LocationInfo,
|
|
1834
|
+
ke as LogTypes,
|
|
1835
|
+
ne as NodeType,
|
|
1836
|
+
x as RedirectTargetEnum,
|
|
1837
|
+
se as actionNodeSchema,
|
|
1838
|
+
no as activeUsersResponseSchema,
|
|
1839
|
+
Ct as auth0FlowInsertSchema,
|
|
1840
|
+
_e as auth0FlowSchema,
|
|
1841
|
+
ft as auth0QuerySchema,
|
|
1798
1842
|
F as auth0UpdateUserActionSchema,
|
|
1799
|
-
|
|
1800
|
-
|
|
1843
|
+
St as auth0UserResponseSchema,
|
|
1844
|
+
de as authParamsSchema,
|
|
1801
1845
|
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
|
-
|
|
1846
|
+
Ke as bordersSchema,
|
|
1847
|
+
Ot as brandingSchema,
|
|
1848
|
+
Z as buttonComponentSchema,
|
|
1849
|
+
Y as clientGrantInsertSchema,
|
|
1850
|
+
It as clientGrantListSchema,
|
|
1851
|
+
Q as clientGrantSchema,
|
|
1852
|
+
V as clientInsertSchema,
|
|
1853
|
+
q as clientSchema,
|
|
1854
|
+
Ee as codeInsertSchema,
|
|
1855
|
+
Tt as codeSchema,
|
|
1856
|
+
fe as codeTypeSchema,
|
|
1857
|
+
Be as colorsSchema,
|
|
1858
|
+
oe as componentSchema,
|
|
1859
|
+
ue as connectionInsertSchema,
|
|
1860
|
+
ge as connectionOptionsSchema,
|
|
1861
|
+
me as connectionSchema,
|
|
1862
|
+
r as coordinatesSchema,
|
|
1863
|
+
ao as createPassthroughAdapter,
|
|
1864
|
+
so as createWriteOnlyAdapter,
|
|
1865
|
+
Se as customDomainInsertSchema,
|
|
1866
|
+
Ie as customDomainSchema,
|
|
1867
|
+
Nt as customDomainWithTenantIdSchema,
|
|
1868
|
+
oo as dailyStatsSchema,
|
|
1869
|
+
Bt as emailProviderSchema,
|
|
1870
|
+
k as emailVerificationRulesSchema,
|
|
1827
1871
|
v as emailVerifyActionSchema,
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1872
|
+
pe as endingSchema,
|
|
1873
|
+
ee as fieldComponentSchema,
|
|
1874
|
+
M as flowActionStepSchema,
|
|
1875
|
+
H as flowInsertSchema,
|
|
1876
|
+
ae as flowNodeSchema,
|
|
1877
|
+
bt as flowSchema,
|
|
1834
1878
|
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
|
-
|
|
1879
|
+
ze as fontsSchema,
|
|
1880
|
+
Rt as formControlSchema,
|
|
1881
|
+
Oe as formInsertSchema,
|
|
1882
|
+
Ce as formNodeComponentDefinition,
|
|
1883
|
+
Lt as formSchema,
|
|
1884
|
+
te as genericComponentSchema,
|
|
1885
|
+
re as genericNodeSchema,
|
|
1886
|
+
Dt as hookInsertSchema,
|
|
1887
|
+
wt as hookSchema,
|
|
1888
|
+
K as identitySchema,
|
|
1889
|
+
we as inviteInsertSchema,
|
|
1890
|
+
jt as inviteSchema,
|
|
1891
|
+
De as inviteeSchema,
|
|
1892
|
+
Le as inviterSchema,
|
|
1893
|
+
Ut as jwksKeySchema,
|
|
1894
|
+
je as jwksSchema,
|
|
1895
|
+
yt as legacyClientSchema,
|
|
1896
|
+
$ as legalComponentSchema,
|
|
1897
|
+
Pe as logInsertSchema,
|
|
1898
|
+
vt as logSchema,
|
|
1899
|
+
Ue as loginSessionInsertSchema,
|
|
1900
|
+
Ft as loginSessionSchema,
|
|
1901
|
+
le as nodeSchema,
|
|
1902
|
+
kt as openIDConfigurationSchema,
|
|
1903
|
+
lt as organizationBrandingSchema,
|
|
1904
|
+
ct as organizationEnabledConnectionSchema,
|
|
1905
|
+
_t as organizationInsertSchema,
|
|
1906
|
+
$t as organizationSchema,
|
|
1907
|
+
pt as organizationTokenQuotaSchema,
|
|
1908
|
+
We as pageBackgroundSchema,
|
|
1909
|
+
io as parseUserId,
|
|
1910
|
+
Me as passwordInsertSchema,
|
|
1911
|
+
xt as passwordSchema,
|
|
1912
|
+
G as profileDataSchema,
|
|
1913
|
+
Kt as promptSettingSchema,
|
|
1914
|
+
P as redirectActionSchema,
|
|
1915
|
+
qe as refreshTokenInsertSchema,
|
|
1916
|
+
zt as refreshTokenSchema,
|
|
1917
|
+
Je as resourceServerInsertSchema,
|
|
1918
|
+
Vt as resourceServerListSchema,
|
|
1919
|
+
Qe as resourceServerOptionsSchema,
|
|
1920
|
+
Ze as resourceServerSchema,
|
|
1921
|
+
Ye as resourceServerScopeSchema,
|
|
1922
|
+
J as richTextComponentSchema,
|
|
1923
|
+
st as roleInsertSchema,
|
|
1924
|
+
Zt as roleListSchema,
|
|
1925
|
+
$e as rolePermissionInsertSchema,
|
|
1926
|
+
qt as rolePermissionListSchema,
|
|
1927
|
+
et as rolePermissionSchema,
|
|
1928
|
+
rt as roleSchema,
|
|
1929
|
+
He as sessionInsertSchema,
|
|
1930
|
+
Pt as sessionSchema,
|
|
1931
|
+
Mt as signingKeySchema,
|
|
1932
|
+
Xt as smsProviderSchema,
|
|
1933
|
+
Wt as smsSendParamsSchema,
|
|
1934
|
+
ce as startSchema,
|
|
1935
|
+
ie as stepNodeSchema,
|
|
1936
|
+
he as tenantInsertSchema,
|
|
1937
|
+
be as tenantSchema,
|
|
1938
|
+
to as tenantSettingsSchema,
|
|
1939
|
+
Ve as themeInsertSchema,
|
|
1940
|
+
Gt as themeSchema,
|
|
1941
|
+
Ht as tokenResponseSchema,
|
|
1942
|
+
Et as totalsSchema,
|
|
1943
|
+
B as userInsertSchema,
|
|
1944
|
+
dt as userOrganizationInsertSchema,
|
|
1945
|
+
eo as userOrganizationSchema,
|
|
1946
|
+
tt as userPermissionInsertSchema,
|
|
1947
|
+
Yt as userPermissionListSchema,
|
|
1948
|
+
ot as userPermissionSchema,
|
|
1949
|
+
Qt as userPermissionWithDetailsListSchema,
|
|
1950
|
+
nt as userPermissionWithDetailsSchema,
|
|
1951
|
+
At as userResponseSchema,
|
|
1952
|
+
it as userRoleInsertSchema,
|
|
1953
|
+
Jt as userRoleListSchema,
|
|
1954
|
+
at as userRoleSchema,
|
|
1955
|
+
z as userSchema,
|
|
1956
|
+
Ae as verificationMethodsSchema,
|
|
1957
|
+
Xe as widgetSchema
|
|
1913
1958
|
};
|