@authhero/adapter-interfaces 0.109.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 +1811 -156
- package/dist/adapter-interfaces.mjs +448 -344
- package/package.json +1 -1
|
@@ -1,5 +1,77 @@
|
|
|
1
1
|
import { z as e } from "@hono/zod-openapi";
|
|
2
|
-
const
|
|
2
|
+
const i = e.object({
|
|
3
|
+
created_at: e.string(),
|
|
4
|
+
updated_at: e.string()
|
|
5
|
+
}), ut = e.enum(["AUTH0", "EMAIL", "REDIRECT"]), mt = e.enum([
|
|
6
|
+
"CREATE_USER",
|
|
7
|
+
"GET_USER",
|
|
8
|
+
"UPDATE_USER",
|
|
9
|
+
"SEND_REQUEST",
|
|
10
|
+
"SEND_EMAIL"
|
|
11
|
+
]), ht = e.enum(["VERIFY_EMAIL"]), k = e.object({
|
|
12
|
+
require_mx_record: e.boolean().optional(),
|
|
13
|
+
block_aliases: e.boolean().optional(),
|
|
14
|
+
block_free_emails: e.boolean().optional(),
|
|
15
|
+
block_disposable_emails: e.boolean().optional(),
|
|
16
|
+
blocklist: e.array(e.string()).optional(),
|
|
17
|
+
allowlist: e.array(e.string()).optional()
|
|
18
|
+
}), F = e.object({
|
|
19
|
+
id: e.string(),
|
|
20
|
+
alias: e.string().max(100).optional(),
|
|
21
|
+
type: e.literal("AUTH0"),
|
|
22
|
+
action: e.literal("UPDATE_USER"),
|
|
23
|
+
allow_failure: e.boolean().optional(),
|
|
24
|
+
mask_output: e.boolean().optional(),
|
|
25
|
+
params: e.object({
|
|
26
|
+
connection_id: e.string().optional(),
|
|
27
|
+
user_id: e.string(),
|
|
28
|
+
changes: e.record(e.string(), e.any())
|
|
29
|
+
})
|
|
30
|
+
}), v = e.object({
|
|
31
|
+
id: e.string(),
|
|
32
|
+
alias: e.string().max(100).optional(),
|
|
33
|
+
type: e.literal("EMAIL"),
|
|
34
|
+
action: e.literal("VERIFY_EMAIL"),
|
|
35
|
+
allow_failure: e.boolean().optional(),
|
|
36
|
+
mask_output: e.boolean().optional(),
|
|
37
|
+
params: e.object({
|
|
38
|
+
email: e.string(),
|
|
39
|
+
rules: k.optional()
|
|
40
|
+
})
|
|
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([
|
|
57
|
+
F,
|
|
58
|
+
v,
|
|
59
|
+
P
|
|
60
|
+
]), H = e.object({
|
|
61
|
+
name: e.string().min(1).max(150).openapi({
|
|
62
|
+
description: "The name of the flow"
|
|
63
|
+
}),
|
|
64
|
+
// Actions is an array of action steps (Auth0 stores as JSON blob)
|
|
65
|
+
actions: e.array(M).optional().default([]).openapi({
|
|
66
|
+
description: "The list of actions to execute in sequence"
|
|
67
|
+
})
|
|
68
|
+
}), bt = H.extend({
|
|
69
|
+
...i.shape,
|
|
70
|
+
id: e.string().openapi({
|
|
71
|
+
description: "Unique identifier for the flow",
|
|
72
|
+
example: "af_12tMpdJ3iek7svMyZkSh5M"
|
|
73
|
+
})
|
|
74
|
+
}), ft = e.object({
|
|
3
75
|
page: e.string().min(0).optional().default("0").transform((t) => parseInt(t, 10)).openapi({
|
|
4
76
|
description: "The page number where 0 is the first page"
|
|
5
77
|
}),
|
|
@@ -15,14 +87,11 @@ const st = e.object({
|
|
|
15
87
|
q: e.string().optional().openapi({
|
|
16
88
|
description: "A lucene query string used to filter the results"
|
|
17
89
|
})
|
|
18
|
-
}),
|
|
90
|
+
}), Et = e.object({
|
|
19
91
|
start: e.number(),
|
|
20
92
|
limit: e.number(),
|
|
21
93
|
length: e.number()
|
|
22
|
-
}),
|
|
23
|
-
created_at: e.string(),
|
|
24
|
-
updated_at: e.string()
|
|
25
|
-
}), U = e.object({
|
|
94
|
+
}), G = e.object({
|
|
26
95
|
email: e.string().optional(),
|
|
27
96
|
email_verified: e.boolean().optional(),
|
|
28
97
|
name: e.string().optional(),
|
|
@@ -31,7 +100,7 @@ const st = e.object({
|
|
|
31
100
|
phone_number: e.string().optional(),
|
|
32
101
|
phone_verified: e.boolean().optional(),
|
|
33
102
|
family_name: e.string().optional()
|
|
34
|
-
}).catchall(e.any()),
|
|
103
|
+
}).catchall(e.any()), K = e.object({
|
|
35
104
|
connection: e.string(),
|
|
36
105
|
user_id: e.string(),
|
|
37
106
|
provider: e.string(),
|
|
@@ -39,7 +108,7 @@ const st = e.object({
|
|
|
39
108
|
access_token: e.string().optional(),
|
|
40
109
|
access_token_secret: e.string().optional(),
|
|
41
110
|
refresh_token: e.string().optional(),
|
|
42
|
-
profileData:
|
|
111
|
+
profileData: G.optional()
|
|
43
112
|
}), E = e.object({
|
|
44
113
|
email: e.string().optional().transform((t) => t && t.toLowerCase()),
|
|
45
114
|
username: e.string().optional(),
|
|
@@ -55,7 +124,7 @@ const st = e.object({
|
|
|
55
124
|
user_id: e.string().optional(),
|
|
56
125
|
app_metadata: e.any().default({}).optional(),
|
|
57
126
|
user_metadata: e.any().default({}).optional()
|
|
58
|
-
}),
|
|
127
|
+
}), B = E.extend({
|
|
59
128
|
email_verified: e.boolean().default(!1),
|
|
60
129
|
verify_email: e.boolean().optional(),
|
|
61
130
|
last_ip: e.string().optional(),
|
|
@@ -64,29 +133,29 @@ const st = e.object({
|
|
|
64
133
|
provider: e.string().optional(),
|
|
65
134
|
connection: e.string(),
|
|
66
135
|
is_social: e.boolean().optional()
|
|
67
|
-
}),
|
|
68
|
-
...
|
|
69
|
-
...
|
|
136
|
+
}), z = e.object({
|
|
137
|
+
...B.shape,
|
|
138
|
+
...i.shape,
|
|
70
139
|
user_id: e.string(),
|
|
71
140
|
provider: e.string(),
|
|
72
141
|
is_social: e.boolean(),
|
|
73
142
|
email: e.string().optional(),
|
|
74
143
|
login_count: e.number().default(0),
|
|
75
|
-
identities: e.array(
|
|
76
|
-
}),
|
|
144
|
+
identities: e.array(K).optional()
|
|
145
|
+
}), St = z, At = E.extend({
|
|
77
146
|
login_count: e.number(),
|
|
78
147
|
multifactor: e.array(e.string()).optional(),
|
|
79
148
|
last_ip: e.string().optional(),
|
|
80
149
|
last_login: e.string().optional(),
|
|
81
150
|
user_id: e.string()
|
|
82
|
-
}).catchall(e.any()),
|
|
83
|
-
let
|
|
84
|
-
let n = "",
|
|
151
|
+
}).catchall(e.any()), W = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
152
|
+
let X = (t = 21) => {
|
|
153
|
+
let n = "", a = crypto.getRandomValues(new Uint8Array(t |= 0));
|
|
85
154
|
for (; t--; )
|
|
86
|
-
n +=
|
|
155
|
+
n += W[a[t] & 63];
|
|
87
156
|
return n;
|
|
88
157
|
};
|
|
89
|
-
const
|
|
158
|
+
const V = e.object({
|
|
90
159
|
client_id: e.string().openapi({
|
|
91
160
|
description: "ID of this client."
|
|
92
161
|
}),
|
|
@@ -99,7 +168,7 @@ const H = e.object({
|
|
|
99
168
|
global: e.boolean().default(!1).openapi({
|
|
100
169
|
description: "Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false)."
|
|
101
170
|
}),
|
|
102
|
-
client_secret: e.string().default(() =>
|
|
171
|
+
client_secret: e.string().default(() => X()).optional().openapi({
|
|
103
172
|
description: "Client secret (which you must not make public)."
|
|
104
173
|
}),
|
|
105
174
|
app_type: e.enum([
|
|
@@ -256,11 +325,11 @@ const H = e.object({
|
|
|
256
325
|
description: "Specifies how long, in seconds, a Pushed Authorization Request URI remains valid"
|
|
257
326
|
}),
|
|
258
327
|
token_quota: e.record(e.any()).default({}).optional()
|
|
259
|
-
}),
|
|
328
|
+
}), q = e.object({
|
|
260
329
|
created_at: e.string(),
|
|
261
330
|
updated_at: e.string(),
|
|
262
|
-
...
|
|
263
|
-
}),
|
|
331
|
+
...V.shape
|
|
332
|
+
}), Y = e.object({
|
|
264
333
|
client_id: e.string().min(1).openapi({
|
|
265
334
|
description: "ID of the client."
|
|
266
335
|
}),
|
|
@@ -285,14 +354,14 @@ const H = e.object({
|
|
|
285
354
|
authorization_details_types: e.array(e.string()).optional().openapi({
|
|
286
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."
|
|
287
356
|
})
|
|
288
|
-
}),
|
|
357
|
+
}), Q = e.object({
|
|
289
358
|
id: e.string().openapi({
|
|
290
359
|
description: "ID of the client grant."
|
|
291
360
|
}),
|
|
292
|
-
...
|
|
361
|
+
...Y.shape,
|
|
293
362
|
created_at: e.string().optional(),
|
|
294
363
|
updated_at: e.string().optional()
|
|
295
|
-
}),
|
|
364
|
+
}), It = e.array(Q), r = e.object({
|
|
296
365
|
x: e.number(),
|
|
297
366
|
y: e.number()
|
|
298
367
|
});
|
|
@@ -301,7 +370,7 @@ const d = e.object({
|
|
|
301
370
|
id: e.string(),
|
|
302
371
|
category: e.nativeEnum(A),
|
|
303
372
|
type: e.nativeEnum(S)
|
|
304
|
-
}),
|
|
373
|
+
}), J = d.extend({
|
|
305
374
|
category: e.literal(
|
|
306
375
|
"BLOCK"
|
|
307
376
|
/* BLOCK */
|
|
@@ -313,7 +382,7 @@ const d = e.object({
|
|
|
313
382
|
config: e.object({
|
|
314
383
|
content: e.string()
|
|
315
384
|
}).passthrough()
|
|
316
|
-
}),
|
|
385
|
+
}), Z = d.extend({
|
|
317
386
|
category: e.literal(
|
|
318
387
|
"BLOCK"
|
|
319
388
|
/* BLOCK */
|
|
@@ -335,7 +404,7 @@ const d = e.object({
|
|
|
335
404
|
config: e.object({
|
|
336
405
|
text: e.string()
|
|
337
406
|
}).passthrough()
|
|
338
|
-
}),
|
|
407
|
+
}), $ = d.extend({
|
|
339
408
|
category: e.literal(
|
|
340
409
|
"FIELD"
|
|
341
410
|
/* FIELD */
|
|
@@ -349,7 +418,7 @@ const d = e.object({
|
|
|
349
418
|
config: e.object({
|
|
350
419
|
text: e.string()
|
|
351
420
|
}).passthrough()
|
|
352
|
-
}),
|
|
421
|
+
}), ee = d.extend({
|
|
353
422
|
category: e.literal(
|
|
354
423
|
"FIELD"
|
|
355
424
|
/* FIELD */
|
|
@@ -402,78 +471,101 @@ const d = e.object({
|
|
|
402
471
|
label: e.string().optional(),
|
|
403
472
|
placeholder: e.string().optional()
|
|
404
473
|
}).passthrough()
|
|
405
|
-
}),
|
|
474
|
+
}), te = e.object({
|
|
406
475
|
id: e.string(),
|
|
407
476
|
category: e.string(),
|
|
408
477
|
type: e.string()
|
|
409
|
-
}).passthrough(),
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
478
|
+
}).passthrough(), oe = e.union([
|
|
479
|
+
J,
|
|
480
|
+
Z,
|
|
481
|
+
$,
|
|
482
|
+
ee,
|
|
483
|
+
te
|
|
415
484
|
]);
|
|
416
|
-
var
|
|
417
|
-
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({
|
|
418
487
|
id: e.string(),
|
|
419
488
|
type: e.literal(
|
|
420
489
|
"STEP"
|
|
421
490
|
/* STEP */
|
|
422
491
|
),
|
|
423
|
-
coordinates:
|
|
492
|
+
coordinates: r,
|
|
424
493
|
alias: e.string().optional(),
|
|
425
494
|
config: e.object({
|
|
426
|
-
components: e.array(
|
|
495
|
+
components: e.array(oe),
|
|
427
496
|
next_node: e.string()
|
|
428
497
|
}).passthrough()
|
|
429
|
-
}),
|
|
498
|
+
}), ae = e.object({
|
|
430
499
|
id: e.string(),
|
|
431
500
|
type: e.literal(
|
|
432
501
|
"FLOW"
|
|
433
502
|
/* FLOW */
|
|
434
503
|
),
|
|
435
|
-
coordinates:
|
|
504
|
+
coordinates: r,
|
|
436
505
|
alias: e.string().optional(),
|
|
437
506
|
config: e.object({
|
|
438
507
|
flow_id: e.string(),
|
|
439
508
|
next_node: e.string()
|
|
440
509
|
})
|
|
441
|
-
}),
|
|
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({
|
|
442
533
|
id: e.string(),
|
|
443
534
|
type: e.string(),
|
|
444
|
-
coordinates:
|
|
445
|
-
}).passthrough(),
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
535
|
+
coordinates: r
|
|
536
|
+
}).passthrough(), le = e.union([
|
|
537
|
+
ie,
|
|
538
|
+
ae,
|
|
539
|
+
se,
|
|
540
|
+
re
|
|
541
|
+
]), ce = e.object({
|
|
450
542
|
next_node: e.string(),
|
|
451
|
-
coordinates:
|
|
452
|
-
}).passthrough(),
|
|
543
|
+
coordinates: r
|
|
544
|
+
}).passthrough(), pe = e.object({
|
|
453
545
|
resume_flow: e.boolean().optional(),
|
|
454
|
-
coordinates:
|
|
455
|
-
}).passthrough(),
|
|
546
|
+
coordinates: r
|
|
547
|
+
}).passthrough(), _e = e.object({
|
|
456
548
|
id: e.string(),
|
|
457
549
|
name: e.string(),
|
|
458
550
|
languages: e.object({
|
|
459
551
|
primary: e.string()
|
|
460
552
|
}).passthrough(),
|
|
461
|
-
nodes: e.array(
|
|
462
|
-
start:
|
|
463
|
-
ending:
|
|
553
|
+
nodes: e.array(le),
|
|
554
|
+
start: ce,
|
|
555
|
+
ending: pe,
|
|
464
556
|
created_at: e.string(),
|
|
465
557
|
updated_at: e.string(),
|
|
466
558
|
links: e.object({
|
|
467
559
|
sdkSrc: e.string().optional(),
|
|
468
560
|
sdk_src: e.string().optional()
|
|
469
561
|
}).passthrough()
|
|
470
|
-
}).passthrough(),
|
|
562
|
+
}).passthrough(), Ct = _e.omit({
|
|
471
563
|
id: !0,
|
|
472
564
|
created_at: !0,
|
|
473
565
|
updated_at: !0
|
|
474
566
|
});
|
|
475
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 || {});
|
|
476
|
-
const
|
|
568
|
+
const de = e.object({
|
|
477
569
|
client_id: e.string(),
|
|
478
570
|
act_as: e.string().optional(),
|
|
479
571
|
response_type: e.nativeEnum(I).optional(),
|
|
@@ -491,7 +583,7 @@ const ie = e.object({
|
|
|
491
583
|
ui_locales: e.string().optional(),
|
|
492
584
|
// The following fields are not available in Auth0
|
|
493
585
|
vendor_id: e.string().optional()
|
|
494
|
-
}),
|
|
586
|
+
}), Ot = e.object({
|
|
495
587
|
colors: e.object({
|
|
496
588
|
primary: e.string(),
|
|
497
589
|
page_background: e.object({
|
|
@@ -507,7 +599,7 @@ const ie = e.object({
|
|
|
507
599
|
font: e.object({
|
|
508
600
|
url: e.string()
|
|
509
601
|
}).optional()
|
|
510
|
-
}),
|
|
602
|
+
}), ge = e.object({
|
|
511
603
|
kid: e.string().optional(),
|
|
512
604
|
team_id: e.string().optional(),
|
|
513
605
|
realms: e.string().optional(),
|
|
@@ -527,23 +619,23 @@ const ie = e.object({
|
|
|
527
619
|
twilio_sid: e.string().optional(),
|
|
528
620
|
twilio_token: e.string().optional(),
|
|
529
621
|
icon_url: e.string().optional()
|
|
530
|
-
}),
|
|
622
|
+
}), ue = e.object({
|
|
531
623
|
id: e.string().optional(),
|
|
532
624
|
name: e.string(),
|
|
533
625
|
display_name: e.string().optional(),
|
|
534
626
|
strategy: e.string(),
|
|
535
|
-
options:
|
|
627
|
+
options: ge.default({}),
|
|
536
628
|
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
537
629
|
response_type: e.custom().optional(),
|
|
538
630
|
response_mode: e.custom().optional(),
|
|
539
631
|
is_domain_connection: e.boolean().optional(),
|
|
540
632
|
show_as_button: e.boolean().optional(),
|
|
541
633
|
metadata: e.record(e.any()).optional()
|
|
542
|
-
}),
|
|
634
|
+
}), me = e.object({
|
|
543
635
|
id: e.string(),
|
|
544
636
|
created_at: e.string().transform((t) => t === null ? "" : t),
|
|
545
637
|
updated_at: e.string().transform((t) => t === null ? "" : t)
|
|
546
|
-
}).extend(
|
|
638
|
+
}).extend(ue.shape), he = e.object({
|
|
547
639
|
id: e.string().optional(),
|
|
548
640
|
// Basic settings
|
|
549
641
|
audience: e.string(),
|
|
@@ -663,23 +755,23 @@ const ie = e.object({
|
|
|
663
755
|
// Authorization settings
|
|
664
756
|
pushed_authorization_requests_supported: e.boolean().optional(),
|
|
665
757
|
authorization_response_iss_parameter_supported: e.boolean().optional()
|
|
666
|
-
}),
|
|
758
|
+
}), be = e.object({
|
|
667
759
|
created_at: e.string().nullable().transform((t) => t ?? ""),
|
|
668
760
|
updated_at: e.string().nullable().transform((t) => t ?? ""),
|
|
669
|
-
...
|
|
761
|
+
...he.shape,
|
|
670
762
|
id: e.string()
|
|
671
|
-
}),
|
|
672
|
-
...
|
|
673
|
-
tenant:
|
|
674
|
-
connections: e.array(
|
|
675
|
-
}),
|
|
763
|
+
}), Tt = e.object({
|
|
764
|
+
...q.shape,
|
|
765
|
+
tenant: be,
|
|
766
|
+
connections: e.array(me)
|
|
767
|
+
}), fe = e.enum([
|
|
676
768
|
"password_reset",
|
|
677
769
|
"email_verification",
|
|
678
770
|
"otp",
|
|
679
771
|
"authorization_code",
|
|
680
772
|
"oauth2_state",
|
|
681
773
|
"ticket"
|
|
682
|
-
]),
|
|
774
|
+
]), Ee = e.object({
|
|
683
775
|
code_id: e.string().openapi({
|
|
684
776
|
description: "The code that will be used in for instance an email verification flow"
|
|
685
777
|
}),
|
|
@@ -689,7 +781,7 @@ const ie = e.object({
|
|
|
689
781
|
connection_id: e.string().optional().openapi({
|
|
690
782
|
description: "The connection that the code is connected to"
|
|
691
783
|
}),
|
|
692
|
-
code_type:
|
|
784
|
+
code_type: fe,
|
|
693
785
|
code_verifier: e.string().optional().openapi({
|
|
694
786
|
description: "The code verifier used in PKCE in outbound flows"
|
|
695
787
|
}),
|
|
@@ -711,10 +803,10 @@ const ie = e.object({
|
|
|
711
803
|
expires_at: e.string(),
|
|
712
804
|
used_at: e.string().optional(),
|
|
713
805
|
user_id: e.string().optional()
|
|
714
|
-
}),
|
|
715
|
-
...
|
|
806
|
+
}), yt = e.object({
|
|
807
|
+
...Ee.shape,
|
|
716
808
|
created_at: e.string()
|
|
717
|
-
}),
|
|
809
|
+
}), Se = e.object({
|
|
718
810
|
domain: e.string(),
|
|
719
811
|
custom_domain_id: e.string().optional(),
|
|
720
812
|
type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
@@ -728,23 +820,23 @@ const ie = e.object({
|
|
|
728
820
|
"null"
|
|
729
821
|
]).optional(),
|
|
730
822
|
domain_metadata: e.record(e.string().max(255)).optional()
|
|
731
|
-
}),
|
|
823
|
+
}), Ae = e.object({
|
|
732
824
|
name: e.literal("txt"),
|
|
733
825
|
record: e.string(),
|
|
734
826
|
domain: e.string()
|
|
735
|
-
}),
|
|
736
|
-
...
|
|
827
|
+
}), Ie = e.object({
|
|
828
|
+
...Se.shape,
|
|
737
829
|
custom_domain_id: e.string(),
|
|
738
830
|
primary: e.boolean(),
|
|
739
831
|
status: e.enum(["disabled", "pending", "pending_verification", "ready"]),
|
|
740
832
|
origin_domain_name: e.string().optional(),
|
|
741
833
|
verification: e.object({
|
|
742
|
-
methods: e.array(
|
|
834
|
+
methods: e.array(Ae)
|
|
743
835
|
}).optional(),
|
|
744
836
|
tls_policy: e.string().optional()
|
|
745
|
-
}),
|
|
837
|
+
}), Nt = Ie.extend({
|
|
746
838
|
tenant_id: e.string()
|
|
747
|
-
}),
|
|
839
|
+
}), Rt = e.object({
|
|
748
840
|
id: e.string(),
|
|
749
841
|
type: e.literal("submit"),
|
|
750
842
|
label: e.string(),
|
|
@@ -753,31 +845,31 @@ const ie = e.object({
|
|
|
753
845
|
order: e.number().optional(),
|
|
754
846
|
visible: e.boolean().optional().default(!0),
|
|
755
847
|
customizations: e.record(e.string(), e.any()).optional()
|
|
756
|
-
}),
|
|
848
|
+
}), T = e.object({
|
|
757
849
|
id: e.string(),
|
|
758
850
|
order: e.number().optional(),
|
|
759
851
|
visible: e.boolean().optional().default(!0)
|
|
760
|
-
}), f =
|
|
852
|
+
}), f = T.extend({
|
|
761
853
|
category: e.literal("BLOCK").optional()
|
|
762
|
-
}),
|
|
854
|
+
}), c = T.extend({
|
|
763
855
|
category: e.literal("FIELD").optional(),
|
|
764
856
|
required: e.boolean().optional(),
|
|
765
857
|
sensitive: e.boolean().optional()
|
|
766
|
-
}),
|
|
858
|
+
}), Ce = e.discriminatedUnion("type", [
|
|
767
859
|
f.extend({
|
|
768
860
|
type: e.literal("RICH_TEXT"),
|
|
769
861
|
config: e.object({
|
|
770
862
|
content: e.string()
|
|
771
863
|
})
|
|
772
864
|
}),
|
|
773
|
-
|
|
865
|
+
c.omit({ sensitive: !0 }).extend({
|
|
774
866
|
type: e.literal("LEGAL"),
|
|
775
867
|
config: e.object({
|
|
776
868
|
text: e.string(),
|
|
777
869
|
html: e.boolean().optional()
|
|
778
870
|
})
|
|
779
871
|
}),
|
|
780
|
-
|
|
872
|
+
c.extend({
|
|
781
873
|
type: e.literal("TEXT"),
|
|
782
874
|
config: e.object({
|
|
783
875
|
placeholder: e.string().optional(),
|
|
@@ -790,21 +882,21 @@ const ie = e.object({
|
|
|
790
882
|
text: e.string().optional()
|
|
791
883
|
})
|
|
792
884
|
}),
|
|
793
|
-
|
|
885
|
+
c.extend({
|
|
794
886
|
type: e.literal("EMAIL"),
|
|
795
887
|
config: e.object({
|
|
796
888
|
label: e.string().optional(),
|
|
797
889
|
placeholder: e.string().optional()
|
|
798
890
|
})
|
|
799
891
|
}),
|
|
800
|
-
|
|
892
|
+
c.extend({
|
|
801
893
|
type: e.literal("NUMBER"),
|
|
802
894
|
config: e.object({
|
|
803
895
|
label: e.string().optional(),
|
|
804
896
|
placeholder: e.string().optional()
|
|
805
897
|
})
|
|
806
898
|
}),
|
|
807
|
-
|
|
899
|
+
c.extend({
|
|
808
900
|
type: e.literal("PHONE"),
|
|
809
901
|
config: e.object({
|
|
810
902
|
label: e.string().optional(),
|
|
@@ -812,7 +904,7 @@ const ie = e.object({
|
|
|
812
904
|
})
|
|
813
905
|
})
|
|
814
906
|
// Add more component types as needed
|
|
815
|
-
]),
|
|
907
|
+
]), Oe = e.object({
|
|
816
908
|
name: e.string().openapi({
|
|
817
909
|
description: "The name of the form"
|
|
818
910
|
}),
|
|
@@ -863,7 +955,7 @@ const ie = e.object({
|
|
|
863
955
|
coordinates: e.object({ x: e.number(), y: e.number() }),
|
|
864
956
|
alias: e.string().min(1).max(150).optional(),
|
|
865
957
|
config: e.object({
|
|
866
|
-
components: e.array(
|
|
958
|
+
components: e.array(Ce),
|
|
867
959
|
next_node: e.string().optional()
|
|
868
960
|
})
|
|
869
961
|
})
|
|
@@ -886,11 +978,11 @@ const ie = e.object({
|
|
|
886
978
|
style: e.object({ css: e.string().optional() }).optional()
|
|
887
979
|
}).openapi({
|
|
888
980
|
description: "Schema for flow-based forms (matches new JSON structure)"
|
|
889
|
-
}),
|
|
890
|
-
...
|
|
891
|
-
...
|
|
981
|
+
}), Lt = e.object({
|
|
982
|
+
...i.shape,
|
|
983
|
+
...Oe.shape,
|
|
892
984
|
id: e.string()
|
|
893
|
-
}),
|
|
985
|
+
}), y = e.enum([
|
|
894
986
|
"pre-user-registration",
|
|
895
987
|
"post-user-registration",
|
|
896
988
|
"post-user-login",
|
|
@@ -910,37 +1002,37 @@ const ie = e.object({
|
|
|
910
1002
|
synchronous: e.boolean().default(!1),
|
|
911
1003
|
priority: e.number().optional(),
|
|
912
1004
|
hook_id: e.string().optional()
|
|
913
|
-
},
|
|
1005
|
+
}, Te = e.object({
|
|
914
1006
|
...g,
|
|
915
|
-
trigger_id:
|
|
1007
|
+
trigger_id: y,
|
|
916
1008
|
url: e.string()
|
|
917
|
-
}),
|
|
1009
|
+
}), ye = e.object({
|
|
918
1010
|
...g,
|
|
919
1011
|
trigger_id: N,
|
|
920
1012
|
form_id: e.string()
|
|
921
|
-
}),
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
]),
|
|
1013
|
+
}), Dt = e.union([
|
|
1014
|
+
Te,
|
|
1015
|
+
ye
|
|
1016
|
+
]), Ne = e.object({
|
|
925
1017
|
...g,
|
|
926
|
-
trigger_id:
|
|
927
|
-
...
|
|
1018
|
+
trigger_id: y,
|
|
1019
|
+
...i.shape,
|
|
928
1020
|
hook_id: e.string(),
|
|
929
1021
|
url: e.string()
|
|
930
|
-
}),
|
|
1022
|
+
}), Re = e.object({
|
|
931
1023
|
...g,
|
|
932
1024
|
trigger_id: N,
|
|
933
|
-
...
|
|
1025
|
+
...i.shape,
|
|
934
1026
|
hook_id: e.string(),
|
|
935
1027
|
form_id: e.string()
|
|
936
|
-
}),
|
|
1028
|
+
}), wt = e.union([Ne, Re]), Le = e.object({
|
|
937
1029
|
name: e.string().optional()
|
|
938
|
-
}),
|
|
1030
|
+
}), De = e.object({
|
|
939
1031
|
email: e.string().optional()
|
|
940
|
-
}),
|
|
1032
|
+
}), we = e.object({
|
|
941
1033
|
organization_id: e.string().max(50),
|
|
942
|
-
inviter:
|
|
943
|
-
invitee:
|
|
1034
|
+
inviter: Le,
|
|
1035
|
+
invitee: De,
|
|
944
1036
|
invitation_url: e.string().url(),
|
|
945
1037
|
client_id: e.string(),
|
|
946
1038
|
connection_id: e.string().optional(),
|
|
@@ -949,13 +1041,13 @@ const ie = e.object({
|
|
|
949
1041
|
ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
|
|
950
1042
|
roles: e.array(e.string()).default([]).optional(),
|
|
951
1043
|
send_invitation_email: e.boolean().default(!0).optional()
|
|
952
|
-
}),
|
|
1044
|
+
}), jt = e.object({
|
|
953
1045
|
id: e.string(),
|
|
954
1046
|
organization_id: e.string().max(50),
|
|
955
1047
|
created_at: e.string().datetime(),
|
|
956
1048
|
expires_at: e.string().datetime(),
|
|
957
1049
|
ticket_id: e.string().optional()
|
|
958
|
-
}).extend(
|
|
1050
|
+
}).extend(we.shape), je = e.object({
|
|
959
1051
|
alg: e.enum([
|
|
960
1052
|
"RS256",
|
|
961
1053
|
"RS384",
|
|
@@ -974,9 +1066,9 @@ const ie = e.object({
|
|
|
974
1066
|
x5t: e.string().optional(),
|
|
975
1067
|
x5c: e.array(e.string()).optional(),
|
|
976
1068
|
use: e.enum(["sig", "enc"]).optional()
|
|
977
|
-
}),
|
|
978
|
-
keys: e.array(
|
|
979
|
-
}),
|
|
1069
|
+
}), Ut = e.object({
|
|
1070
|
+
keys: e.array(je)
|
|
1071
|
+
}), kt = e.object({
|
|
980
1072
|
issuer: e.string(),
|
|
981
1073
|
authorization_endpoint: e.string(),
|
|
982
1074
|
token_endpoint: e.string(),
|
|
@@ -997,10 +1089,10 @@ const ie = e.object({
|
|
|
997
1089
|
request_uri_parameter_supported: e.boolean(),
|
|
998
1090
|
request_parameter_supported: e.boolean(),
|
|
999
1091
|
token_endpoint_auth_signing_alg_values_supported: e.array(e.string())
|
|
1000
|
-
}),
|
|
1092
|
+
}), Ue = e.object({
|
|
1001
1093
|
csrf_token: e.string(),
|
|
1002
1094
|
auth0Client: e.string().optional(),
|
|
1003
|
-
authParams:
|
|
1095
|
+
authParams: de,
|
|
1004
1096
|
expires_at: e.string(),
|
|
1005
1097
|
deleted_at: e.string().optional(),
|
|
1006
1098
|
ip: e.string().optional(),
|
|
@@ -1010,14 +1102,14 @@ const ie = e.object({
|
|
|
1010
1102
|
login_completed: e.boolean().optional().default(!1)
|
|
1011
1103
|
}).openapi({
|
|
1012
1104
|
description: "This represents a login sesion"
|
|
1013
|
-
}),
|
|
1014
|
-
...
|
|
1105
|
+
}), Ft = e.object({
|
|
1106
|
+
...Ue.shape,
|
|
1015
1107
|
id: e.string().openapi({
|
|
1016
1108
|
description: "This is is used as the state in the universal login"
|
|
1017
1109
|
}),
|
|
1018
1110
|
created_at: e.string(),
|
|
1019
1111
|
updated_at: e.string()
|
|
1020
|
-
}),
|
|
1112
|
+
}), ke = {
|
|
1021
1113
|
// Network & System
|
|
1022
1114
|
ACLS_SUMMARY: "acls_summary",
|
|
1023
1115
|
ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
|
|
@@ -1184,24 +1276,24 @@ const ie = e.object({
|
|
|
1184
1276
|
WARNING_DURING_LOGIN: "w",
|
|
1185
1277
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
1186
1278
|
WARNING_USER_MANAGEMENT: "wum"
|
|
1187
|
-
},
|
|
1188
|
-
(t) => Object.values(
|
|
1279
|
+
}, Fe = e.string().refine(
|
|
1280
|
+
(t) => Object.values(ke).includes(t),
|
|
1189
1281
|
{ message: "Invalid log type" }
|
|
1190
|
-
),
|
|
1282
|
+
), ve = e.object({
|
|
1191
1283
|
name: e.string(),
|
|
1192
1284
|
version: e.string(),
|
|
1193
1285
|
env: e.object({
|
|
1194
1286
|
node: e.string().optional()
|
|
1195
1287
|
}).optional()
|
|
1196
|
-
}),
|
|
1288
|
+
}), xe = e.object({
|
|
1197
1289
|
country_code: e.string().length(2),
|
|
1198
1290
|
city_name: e.string(),
|
|
1199
1291
|
latitude: e.string(),
|
|
1200
1292
|
longitude: e.string(),
|
|
1201
1293
|
time_zone: e.string(),
|
|
1202
1294
|
continent_code: e.string()
|
|
1203
|
-
}),
|
|
1204
|
-
type:
|
|
1295
|
+
}), Pe = e.object({
|
|
1296
|
+
type: Fe,
|
|
1205
1297
|
date: e.string(),
|
|
1206
1298
|
description: e.string().optional(),
|
|
1207
1299
|
ip: e.string().optional(),
|
|
@@ -1220,19 +1312,19 @@ const ie = e.object({
|
|
|
1220
1312
|
strategy: e.string().optional(),
|
|
1221
1313
|
strategy_type: e.string().optional(),
|
|
1222
1314
|
hostname: e.string().optional(),
|
|
1223
|
-
auth0_client:
|
|
1315
|
+
auth0_client: ve.optional(),
|
|
1224
1316
|
log_id: e.string().optional(),
|
|
1225
|
-
location_info:
|
|
1226
|
-
}),
|
|
1227
|
-
...
|
|
1317
|
+
location_info: xe.optional()
|
|
1318
|
+
}), vt = e.object({
|
|
1319
|
+
...Pe.shape,
|
|
1228
1320
|
log_id: e.string()
|
|
1229
|
-
}),
|
|
1321
|
+
}), Me = e.object({
|
|
1230
1322
|
id: e.string().optional(),
|
|
1231
1323
|
user_id: e.string(),
|
|
1232
1324
|
password: e.string(),
|
|
1233
1325
|
algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
|
|
1234
1326
|
is_current: e.boolean().default(!0)
|
|
1235
|
-
}),
|
|
1327
|
+
}), xt = Me.extend({
|
|
1236
1328
|
id: e.string(),
|
|
1237
1329
|
created_at: e.string(),
|
|
1238
1330
|
updated_at: e.string()
|
|
@@ -1243,7 +1335,7 @@ const ie = e.object({
|
|
|
1243
1335
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
1244
1336
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
1245
1337
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
1246
|
-
}),
|
|
1338
|
+
}), He = e.object({
|
|
1247
1339
|
id: e.string(),
|
|
1248
1340
|
revoked_at: e.string().optional(),
|
|
1249
1341
|
used_at: e.string().optional(),
|
|
@@ -1255,13 +1347,13 @@ const ie = e.object({
|
|
|
1255
1347
|
"Metadata related to the device used in the session"
|
|
1256
1348
|
),
|
|
1257
1349
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
1258
|
-
}),
|
|
1350
|
+
}), Pt = e.object({
|
|
1259
1351
|
created_at: e.string(),
|
|
1260
1352
|
updated_at: e.string(),
|
|
1261
1353
|
authenticated_at: e.string(),
|
|
1262
1354
|
last_interaction_at: e.string(),
|
|
1263
|
-
...
|
|
1264
|
-
}),
|
|
1355
|
+
...He.shape
|
|
1356
|
+
}), Mt = e.object({
|
|
1265
1357
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
1266
1358
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
1267
1359
|
fingerprint: e.string().openapi({ description: "The cert fingerprint" }),
|
|
@@ -1287,8 +1379,8 @@ const ie = e.object({
|
|
|
1287
1379
|
description: "The type of the signing key"
|
|
1288
1380
|
})
|
|
1289
1381
|
});
|
|
1290
|
-
var
|
|
1291
|
-
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({
|
|
1292
1384
|
access_token: e.string(),
|
|
1293
1385
|
id_token: e.string().optional(),
|
|
1294
1386
|
scope: e.string().optional(),
|
|
@@ -1301,7 +1393,7 @@ e.object({
|
|
|
1301
1393
|
code: e.string(),
|
|
1302
1394
|
state: e.string().optional()
|
|
1303
1395
|
});
|
|
1304
|
-
const
|
|
1396
|
+
const Ke = e.object({
|
|
1305
1397
|
button_border_radius: e.number(),
|
|
1306
1398
|
button_border_weight: e.number(),
|
|
1307
1399
|
buttons_style: e.enum(["pill", "rounded", "sharp"]),
|
|
@@ -1311,7 +1403,7 @@ const Ue = e.object({
|
|
|
1311
1403
|
show_widget_shadow: e.boolean(),
|
|
1312
1404
|
widget_border_weight: e.number(),
|
|
1313
1405
|
widget_corner_radius: e.number()
|
|
1314
|
-
}),
|
|
1406
|
+
}), Be = e.object({
|
|
1315
1407
|
base_focus_color: e.string(),
|
|
1316
1408
|
base_hover_color: e.string(),
|
|
1317
1409
|
body_text: e.string(),
|
|
@@ -1331,44 +1423,44 @@ const Ue = e.object({
|
|
|
1331
1423
|
success: e.string(),
|
|
1332
1424
|
widget_background: e.string(),
|
|
1333
1425
|
widget_border: e.string()
|
|
1334
|
-
}),
|
|
1426
|
+
}), s = e.object({
|
|
1335
1427
|
bold: e.boolean(),
|
|
1336
1428
|
size: e.number()
|
|
1337
|
-
}),
|
|
1338
|
-
body_text:
|
|
1339
|
-
buttons_text:
|
|
1429
|
+
}), ze = e.object({
|
|
1430
|
+
body_text: s,
|
|
1431
|
+
buttons_text: s,
|
|
1340
1432
|
font_url: e.string(),
|
|
1341
|
-
input_labels:
|
|
1342
|
-
links:
|
|
1433
|
+
input_labels: s,
|
|
1434
|
+
links: s,
|
|
1343
1435
|
links_style: e.enum(["normal", "underlined"]),
|
|
1344
1436
|
reference_text_size: e.number(),
|
|
1345
|
-
subtitle:
|
|
1346
|
-
title:
|
|
1347
|
-
}),
|
|
1437
|
+
subtitle: s,
|
|
1438
|
+
title: s
|
|
1439
|
+
}), We = e.object({
|
|
1348
1440
|
background_color: e.string(),
|
|
1349
1441
|
background_image_url: e.string(),
|
|
1350
1442
|
page_layout: e.enum(["center", "left", "right"])
|
|
1351
|
-
}),
|
|
1443
|
+
}), Xe = e.object({
|
|
1352
1444
|
header_text_alignment: e.enum(["center", "left", "right"]),
|
|
1353
1445
|
logo_height: e.number(),
|
|
1354
1446
|
logo_position: e.enum(["center", "left", "none", "right"]),
|
|
1355
1447
|
logo_url: e.string(),
|
|
1356
1448
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
1357
|
-
}),
|
|
1358
|
-
borders:
|
|
1359
|
-
colors:
|
|
1449
|
+
}), Ve = e.object({
|
|
1450
|
+
borders: Ke,
|
|
1451
|
+
colors: Be,
|
|
1360
1452
|
displayName: e.string(),
|
|
1361
|
-
fonts:
|
|
1362
|
-
page_background:
|
|
1363
|
-
widget:
|
|
1364
|
-
}),
|
|
1453
|
+
fonts: ze,
|
|
1454
|
+
page_background: We,
|
|
1455
|
+
widget: Xe
|
|
1456
|
+
}), Gt = Ve.extend({
|
|
1365
1457
|
themeId: e.string()
|
|
1366
|
-
}),
|
|
1458
|
+
}), Kt = e.object({
|
|
1367
1459
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
1368
1460
|
identifier_first: e.boolean().default(!0),
|
|
1369
1461
|
password_first: e.boolean().default(!1),
|
|
1370
1462
|
webauthn_platform_first_factor: e.boolean()
|
|
1371
|
-
}),
|
|
1463
|
+
}), Bt = e.object({
|
|
1372
1464
|
name: e.string(),
|
|
1373
1465
|
enabled: e.boolean().optional().default(!0),
|
|
1374
1466
|
default_from_address: e.string().optional(),
|
|
@@ -1398,7 +1490,7 @@ const Ue = e.object({
|
|
|
1398
1490
|
})
|
|
1399
1491
|
]),
|
|
1400
1492
|
settings: e.object({}).optional()
|
|
1401
|
-
}),
|
|
1493
|
+
}), qe = e.object({
|
|
1402
1494
|
// The actual refresh token value (primary key).
|
|
1403
1495
|
id: e.string(),
|
|
1404
1496
|
// Link to the session record
|
|
@@ -1419,21 +1511,21 @@ const Ue = e.object({
|
|
|
1419
1511
|
})
|
|
1420
1512
|
),
|
|
1421
1513
|
rotating: e.boolean()
|
|
1422
|
-
}),
|
|
1514
|
+
}), zt = e.object({
|
|
1423
1515
|
// When the refresh token record was created.
|
|
1424
1516
|
created_at: e.string(),
|
|
1425
1517
|
// Spread in the rest of the refresh token properties.
|
|
1426
|
-
...
|
|
1427
|
-
}),
|
|
1518
|
+
...qe.shape
|
|
1519
|
+
}), Wt = e.object({
|
|
1428
1520
|
to: e.string(),
|
|
1429
1521
|
message: e.string()
|
|
1430
|
-
}),
|
|
1522
|
+
}), Xt = e.object({
|
|
1431
1523
|
name: e.string(),
|
|
1432
1524
|
options: e.object({})
|
|
1433
|
-
}),
|
|
1525
|
+
}), Ye = e.object({
|
|
1434
1526
|
value: e.string(),
|
|
1435
1527
|
description: e.string().optional()
|
|
1436
|
-
}),
|
|
1528
|
+
}), Qe = e.object({
|
|
1437
1529
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
1438
1530
|
enforce_policies: e.boolean().optional(),
|
|
1439
1531
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -1443,10 +1535,10 @@ const Ue = e.object({
|
|
|
1443
1535
|
mtls: e.object({
|
|
1444
1536
|
bound_access_tokens: e.boolean().optional()
|
|
1445
1537
|
}).optional()
|
|
1446
|
-
}),
|
|
1538
|
+
}), Je = e.object({
|
|
1447
1539
|
name: e.string(),
|
|
1448
1540
|
identifier: e.string(),
|
|
1449
|
-
scopes: e.array(
|
|
1541
|
+
scopes: e.array(Ye).optional(),
|
|
1450
1542
|
signing_alg: e.string().optional(),
|
|
1451
1543
|
signing_secret: e.string().optional(),
|
|
1452
1544
|
token_lifetime: e.number().optional(),
|
|
@@ -1454,29 +1546,29 @@ const Ue = e.object({
|
|
|
1454
1546
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
1455
1547
|
allow_offline_access: e.boolean().optional(),
|
|
1456
1548
|
verificationKey: e.string().optional(),
|
|
1457
|
-
options:
|
|
1458
|
-
}),
|
|
1549
|
+
options: Qe.optional()
|
|
1550
|
+
}), Ze = e.object({
|
|
1459
1551
|
id: e.string().optional(),
|
|
1460
|
-
...
|
|
1552
|
+
...Je.shape,
|
|
1461
1553
|
created_at: e.string().optional(),
|
|
1462
1554
|
updated_at: e.string().optional()
|
|
1463
|
-
}),
|
|
1555
|
+
}), Vt = e.array(Ze), $e = e.object({
|
|
1464
1556
|
role_id: e.string(),
|
|
1465
1557
|
resource_server_identifier: e.string(),
|
|
1466
1558
|
permission_name: e.string()
|
|
1467
|
-
}),
|
|
1468
|
-
|
|
1559
|
+
}), et = e.object({
|
|
1560
|
+
...$e.shape,
|
|
1469
1561
|
created_at: e.string()
|
|
1470
|
-
}),
|
|
1562
|
+
}), qt = e.array(et), tt = e.object({
|
|
1471
1563
|
user_id: e.string(),
|
|
1472
1564
|
resource_server_identifier: e.string(),
|
|
1473
1565
|
permission_name: e.string(),
|
|
1474
1566
|
organization_id: e.string().optional()
|
|
1475
|
-
}),
|
|
1476
|
-
...
|
|
1567
|
+
}), ot = e.object({
|
|
1568
|
+
...tt.shape,
|
|
1477
1569
|
tenant_id: e.string(),
|
|
1478
1570
|
created_at: e.string().optional()
|
|
1479
|
-
}),
|
|
1571
|
+
}), Yt = e.array(ot), nt = e.object({
|
|
1480
1572
|
user_id: e.string(),
|
|
1481
1573
|
resource_server_identifier: e.string(),
|
|
1482
1574
|
resource_server_name: e.string(),
|
|
@@ -1484,31 +1576,31 @@ const Ue = e.object({
|
|
|
1484
1576
|
description: e.string().nullable().optional(),
|
|
1485
1577
|
created_at: e.string().optional(),
|
|
1486
1578
|
organization_id: e.string().optional()
|
|
1487
|
-
}),
|
|
1488
|
-
|
|
1489
|
-
),
|
|
1579
|
+
}), Qt = e.array(
|
|
1580
|
+
nt
|
|
1581
|
+
), it = e.object({
|
|
1490
1582
|
user_id: e.string(),
|
|
1491
1583
|
role_id: e.string(),
|
|
1492
1584
|
organization_id: e.string().optional()
|
|
1493
|
-
}),
|
|
1494
|
-
...
|
|
1585
|
+
}), at = e.object({
|
|
1586
|
+
...it.shape,
|
|
1495
1587
|
tenant_id: e.string(),
|
|
1496
1588
|
created_at: e.string().optional()
|
|
1497
|
-
}),
|
|
1589
|
+
}), Jt = e.array(at), st = e.object({
|
|
1498
1590
|
name: e.string().min(1).max(50).openapi({
|
|
1499
1591
|
description: "The name of the role. Cannot include '<' or '>'"
|
|
1500
1592
|
}),
|
|
1501
1593
|
description: e.string().max(255).optional().openapi({
|
|
1502
1594
|
description: "The description of the role"
|
|
1503
1595
|
})
|
|
1504
|
-
}),
|
|
1596
|
+
}), rt = e.object({
|
|
1505
1597
|
id: e.string().openapi({
|
|
1506
1598
|
description: "The unique identifier of the role"
|
|
1507
1599
|
}),
|
|
1508
|
-
...
|
|
1600
|
+
...st.shape,
|
|
1509
1601
|
created_at: e.string().optional(),
|
|
1510
1602
|
updated_at: e.string().optional()
|
|
1511
|
-
}),
|
|
1603
|
+
}), Zt = e.array(rt), lt = e.object({
|
|
1512
1604
|
logo_url: e.string().optional().openapi({
|
|
1513
1605
|
description: "URL of the organization's logo"
|
|
1514
1606
|
}),
|
|
@@ -1520,7 +1612,7 @@ const Ue = e.object({
|
|
|
1520
1612
|
description: "Page background color in hex format (e.g., #FFFFFF)"
|
|
1521
1613
|
})
|
|
1522
1614
|
}).optional()
|
|
1523
|
-
}).optional(),
|
|
1615
|
+
}).optional(), ct = e.object({
|
|
1524
1616
|
connection_id: e.string().openapi({
|
|
1525
1617
|
description: "ID of the connection"
|
|
1526
1618
|
}),
|
|
@@ -1533,7 +1625,7 @@ const Ue = e.object({
|
|
|
1533
1625
|
is_signup_enabled: e.boolean().default(!0).openapi({
|
|
1534
1626
|
description: "Whether signup is enabled for this connection"
|
|
1535
1627
|
})
|
|
1536
|
-
}),
|
|
1628
|
+
}), pt = e.object({
|
|
1537
1629
|
client_credentials: e.object({
|
|
1538
1630
|
enforce: e.boolean().default(!1).openapi({
|
|
1539
1631
|
description: "Whether to enforce token quota limits"
|
|
@@ -1545,7 +1637,7 @@ const Ue = e.object({
|
|
|
1545
1637
|
description: "Maximum tokens per hour (0 = unlimited)"
|
|
1546
1638
|
})
|
|
1547
1639
|
}).optional()
|
|
1548
|
-
}).optional(),
|
|
1640
|
+
}).optional(), _t = e.object({
|
|
1549
1641
|
id: e.string().optional(),
|
|
1550
1642
|
name: e.string().min(1).openapi({
|
|
1551
1643
|
description: "The name of the organization"
|
|
@@ -1553,30 +1645,30 @@ const Ue = e.object({
|
|
|
1553
1645
|
display_name: e.string().optional().openapi({
|
|
1554
1646
|
description: "The display name of the organization"
|
|
1555
1647
|
}),
|
|
1556
|
-
branding:
|
|
1648
|
+
branding: lt,
|
|
1557
1649
|
metadata: e.record(e.any()).default({}).optional().openapi({
|
|
1558
1650
|
description: "Custom metadata for the organization"
|
|
1559
1651
|
}),
|
|
1560
|
-
enabled_connections: e.array(
|
|
1652
|
+
enabled_connections: e.array(ct).default([]).optional().openapi({
|
|
1561
1653
|
description: "List of enabled connections for the organization"
|
|
1562
1654
|
}),
|
|
1563
|
-
token_quota:
|
|
1564
|
-
}),
|
|
1565
|
-
...
|
|
1566
|
-
...
|
|
1655
|
+
token_quota: pt
|
|
1656
|
+
}), $t = e.object({
|
|
1657
|
+
..._t.shape,
|
|
1658
|
+
...i.shape,
|
|
1567
1659
|
id: e.string()
|
|
1568
|
-
}),
|
|
1660
|
+
}), dt = e.object({
|
|
1569
1661
|
user_id: e.string().openapi({
|
|
1570
1662
|
description: "ID of the user"
|
|
1571
1663
|
}),
|
|
1572
1664
|
organization_id: e.string().openapi({
|
|
1573
1665
|
description: "ID of the organization"
|
|
1574
1666
|
})
|
|
1575
|
-
}),
|
|
1576
|
-
...
|
|
1577
|
-
...
|
|
1667
|
+
}), eo = e.object({
|
|
1668
|
+
...dt.shape,
|
|
1669
|
+
...i.shape,
|
|
1578
1670
|
id: e.string()
|
|
1579
|
-
}),
|
|
1671
|
+
}), to = e.object({
|
|
1580
1672
|
// Session settings
|
|
1581
1673
|
idle_session_lifetime: e.number().optional(),
|
|
1582
1674
|
session_lifetime: e.number().optional(),
|
|
@@ -1645,7 +1737,7 @@ const Ue = e.object({
|
|
|
1645
1737
|
sessions: e.object({
|
|
1646
1738
|
oidc_logout_prompt_enabled: e.boolean().optional()
|
|
1647
1739
|
}).optional()
|
|
1648
|
-
}),
|
|
1740
|
+
}), oo = e.object({
|
|
1649
1741
|
date: e.string().openapi({
|
|
1650
1742
|
description: "Date these events occurred in ISO 8601 format",
|
|
1651
1743
|
example: "2025-12-19"
|
|
@@ -1670,182 +1762,194 @@ const Ue = e.object({
|
|
|
1670
1762
|
description: "Approximate date and time the first event occurred in ISO 8601 format",
|
|
1671
1763
|
example: "2025-12-19T00:00:00.000Z"
|
|
1672
1764
|
})
|
|
1673
|
-
}),
|
|
1765
|
+
}), no = e.number().openapi({
|
|
1674
1766
|
description: "Number of active users in the last 30 days",
|
|
1675
1767
|
example: 1234
|
|
1676
1768
|
});
|
|
1677
|
-
function
|
|
1678
|
-
const [n,
|
|
1679
|
-
if (!n || !
|
|
1769
|
+
function io(t) {
|
|
1770
|
+
const [n, a] = t.split("|");
|
|
1771
|
+
if (!n || !a)
|
|
1680
1772
|
throw new Error(`Invalid user_id: ${t}`);
|
|
1681
|
-
return { connection: n, id:
|
|
1773
|
+
return { connection: n, id: a };
|
|
1682
1774
|
}
|
|
1683
|
-
function
|
|
1775
|
+
function ao(t) {
|
|
1684
1776
|
const {
|
|
1685
1777
|
primary: n,
|
|
1686
|
-
secondaries:
|
|
1778
|
+
secondaries: a,
|
|
1687
1779
|
syncMethods: L = ["create", "update", "remove", "delete", "set"]
|
|
1688
1780
|
} = t, D = {
|
|
1689
|
-
get(
|
|
1781
|
+
get(p, o) {
|
|
1690
1782
|
if (typeof o == "symbol")
|
|
1691
|
-
return
|
|
1692
|
-
const
|
|
1693
|
-
return typeof
|
|
1694
|
-
const w = await
|
|
1695
|
-
for (const
|
|
1696
|
-
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];
|
|
1697
1789
|
if (typeof h != "function")
|
|
1698
1790
|
continue;
|
|
1699
1791
|
const j = (async () => {
|
|
1700
1792
|
try {
|
|
1701
|
-
await h.apply(
|
|
1793
|
+
await h.apply(l.adapter, u);
|
|
1702
1794
|
} catch (b) {
|
|
1703
1795
|
try {
|
|
1704
|
-
|
|
1796
|
+
l.onError ? l.onError(b, o, u) : console.error(
|
|
1705
1797
|
`Passthrough adapter: secondary write failed for ${o}:`,
|
|
1706
1798
|
b
|
|
1707
1799
|
);
|
|
1708
|
-
} catch (
|
|
1800
|
+
} catch (U) {
|
|
1709
1801
|
console.error(
|
|
1710
1802
|
`Passthrough adapter: onError handler threw for ${o}:`,
|
|
1711
|
-
|
|
1803
|
+
U
|
|
1712
1804
|
);
|
|
1713
1805
|
}
|
|
1714
1806
|
}
|
|
1715
1807
|
})();
|
|
1716
|
-
|
|
1808
|
+
l.blocking && m.push(j);
|
|
1717
1809
|
}
|
|
1718
1810
|
return m.length > 0 && await Promise.all(m), w;
|
|
1719
|
-
} :
|
|
1811
|
+
} : _.bind(p);
|
|
1720
1812
|
}
|
|
1721
1813
|
};
|
|
1722
1814
|
return new Proxy(n, D);
|
|
1723
1815
|
}
|
|
1724
|
-
function
|
|
1816
|
+
function so(t) {
|
|
1725
1817
|
return t;
|
|
1726
1818
|
}
|
|
1727
1819
|
export {
|
|
1728
|
-
|
|
1820
|
+
mt as Auth0ActionEnum,
|
|
1821
|
+
ve as Auth0Client,
|
|
1729
1822
|
C as AuthorizationResponseMode,
|
|
1730
1823
|
I as AuthorizationResponseType,
|
|
1731
1824
|
O as CodeChallengeMethod,
|
|
1732
1825
|
A as ComponentCategory,
|
|
1733
1826
|
S as ComponentType,
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
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,
|
|
1839
|
+
F as auth0UpdateUserActionSchema,
|
|
1840
|
+
St as auth0UserResponseSchema,
|
|
1841
|
+
de as authParamsSchema,
|
|
1744
1842
|
E as baseUserSchema,
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
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,
|
|
1868
|
+
v as emailVerifyActionSchema,
|
|
1869
|
+
pe as endingSchema,
|
|
1870
|
+
ee as fieldComponentSchema,
|
|
1871
|
+
M as flowActionStepSchema,
|
|
1872
|
+
H as flowInsertSchema,
|
|
1873
|
+
ae as flowNodeSchema,
|
|
1874
|
+
bt as flowSchema,
|
|
1875
|
+
s as fontDetailsSchema,
|
|
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
|
|
1851
1955
|
};
|