@authhero/adapter-interfaces 0.106.0 → 0.109.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/README.md +112 -0
- package/dist/adapter-interfaces.cjs +1 -1
- package/dist/adapter-interfaces.d.ts +153 -2
- package/dist/adapter-interfaces.mjs +425 -350
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z as e } from "@hono/zod-openapi";
|
|
2
|
-
const
|
|
2
|
+
const st = e.object({
|
|
3
3
|
page: e.string().min(0).optional().default("0").transform((t) => parseInt(t, 10)).openapi({
|
|
4
4
|
description: "The page number where 0 is the first page"
|
|
5
5
|
}),
|
|
@@ -15,14 +15,14 @@ const Ve = e.object({
|
|
|
15
15
|
q: e.string().optional().openapi({
|
|
16
16
|
description: "A lucene query string used to filter the results"
|
|
17
17
|
})
|
|
18
|
-
}),
|
|
18
|
+
}), rt = e.object({
|
|
19
19
|
start: e.number(),
|
|
20
20
|
limit: e.number(),
|
|
21
21
|
length: e.number()
|
|
22
|
-
}),
|
|
22
|
+
}), s = e.object({
|
|
23
23
|
created_at: e.string(),
|
|
24
24
|
updated_at: e.string()
|
|
25
|
-
}),
|
|
25
|
+
}), U = e.object({
|
|
26
26
|
email: e.string().optional(),
|
|
27
27
|
email_verified: e.boolean().optional(),
|
|
28
28
|
name: e.string().optional(),
|
|
@@ -31,7 +31,7 @@ const Ve = e.object({
|
|
|
31
31
|
phone_number: e.string().optional(),
|
|
32
32
|
phone_verified: e.boolean().optional(),
|
|
33
33
|
family_name: e.string().optional()
|
|
34
|
-
}).catchall(e.any()),
|
|
34
|
+
}).catchall(e.any()), F = e.object({
|
|
35
35
|
connection: e.string(),
|
|
36
36
|
user_id: e.string(),
|
|
37
37
|
provider: e.string(),
|
|
@@ -39,8 +39,8 @@ const Ve = e.object({
|
|
|
39
39
|
access_token: e.string().optional(),
|
|
40
40
|
access_token_secret: e.string().optional(),
|
|
41
41
|
refresh_token: e.string().optional(),
|
|
42
|
-
profileData:
|
|
43
|
-
}),
|
|
42
|
+
profileData: U.optional()
|
|
43
|
+
}), E = e.object({
|
|
44
44
|
email: e.string().optional().transform((t) => t && t.toLowerCase()),
|
|
45
45
|
username: e.string().optional(),
|
|
46
46
|
phone_number: e.string().optional(),
|
|
@@ -55,7 +55,7 @@ const Ve = e.object({
|
|
|
55
55
|
user_id: e.string().optional(),
|
|
56
56
|
app_metadata: e.any().default({}).optional(),
|
|
57
57
|
user_metadata: e.any().default({}).optional()
|
|
58
|
-
}),
|
|
58
|
+
}), v = E.extend({
|
|
59
59
|
email_verified: e.boolean().default(!1),
|
|
60
60
|
verify_email: e.boolean().optional(),
|
|
61
61
|
last_ip: e.string().optional(),
|
|
@@ -64,29 +64,29 @@ const Ve = e.object({
|
|
|
64
64
|
provider: e.string().optional(),
|
|
65
65
|
connection: e.string(),
|
|
66
66
|
is_social: e.boolean().optional()
|
|
67
|
-
}),
|
|
68
|
-
...
|
|
69
|
-
...
|
|
67
|
+
}), P = e.object({
|
|
68
|
+
...v.shape,
|
|
69
|
+
...s.shape,
|
|
70
70
|
user_id: e.string(),
|
|
71
71
|
provider: e.string(),
|
|
72
72
|
is_social: e.boolean(),
|
|
73
73
|
email: e.string().optional(),
|
|
74
74
|
login_count: e.number().default(0),
|
|
75
|
-
identities: e.array(
|
|
76
|
-
}),
|
|
75
|
+
identities: e.array(F).optional()
|
|
76
|
+
}), lt = P, ct = E.extend({
|
|
77
77
|
login_count: e.number(),
|
|
78
78
|
multifactor: e.array(e.string()).optional(),
|
|
79
79
|
last_ip: e.string().optional(),
|
|
80
80
|
last_login: e.string().optional(),
|
|
81
81
|
user_id: e.string()
|
|
82
|
-
}).catchall(e.any()),
|
|
83
|
-
let
|
|
84
|
-
let
|
|
82
|
+
}).catchall(e.any()), x = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
83
|
+
let M = (t = 21) => {
|
|
84
|
+
let n = "", i = crypto.getRandomValues(new Uint8Array(t |= 0));
|
|
85
85
|
for (; t--; )
|
|
86
|
-
|
|
87
|
-
return
|
|
86
|
+
n += x[i[t] & 63];
|
|
87
|
+
return n;
|
|
88
88
|
};
|
|
89
|
-
const
|
|
89
|
+
const H = e.object({
|
|
90
90
|
client_id: e.string().openapi({
|
|
91
91
|
description: "ID of this client."
|
|
92
92
|
}),
|
|
@@ -99,7 +99,7 @@ const N = e.object({
|
|
|
99
99
|
global: e.boolean().default(!1).openapi({
|
|
100
100
|
description: "Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false)."
|
|
101
101
|
}),
|
|
102
|
-
client_secret: e.string().default(() =>
|
|
102
|
+
client_secret: e.string().default(() => M()).optional().openapi({
|
|
103
103
|
description: "Client secret (which you must not make public)."
|
|
104
104
|
}),
|
|
105
105
|
app_type: e.enum([
|
|
@@ -256,11 +256,11 @@ const N = e.object({
|
|
|
256
256
|
description: "Specifies how long, in seconds, a Pushed Authorization Request URI remains valid"
|
|
257
257
|
}),
|
|
258
258
|
token_quota: e.record(e.any()).default({}).optional()
|
|
259
|
-
}),
|
|
259
|
+
}), G = e.object({
|
|
260
260
|
created_at: e.string(),
|
|
261
261
|
updated_at: e.string(),
|
|
262
|
-
...
|
|
263
|
-
}),
|
|
262
|
+
...H.shape
|
|
263
|
+
}), K = e.object({
|
|
264
264
|
client_id: e.string().min(1).openapi({
|
|
265
265
|
description: "ID of the client."
|
|
266
266
|
}),
|
|
@@ -285,23 +285,23 @@ const N = e.object({
|
|
|
285
285
|
authorization_details_types: e.array(e.string()).optional().openapi({
|
|
286
286
|
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
287
|
})
|
|
288
|
-
}),
|
|
288
|
+
}), B = e.object({
|
|
289
289
|
id: e.string().openapi({
|
|
290
290
|
description: "ID of the client grant."
|
|
291
291
|
}),
|
|
292
|
-
...
|
|
292
|
+
...K.shape,
|
|
293
293
|
created_at: e.string().optional(),
|
|
294
294
|
updated_at: e.string().optional()
|
|
295
|
-
}),
|
|
295
|
+
}), _t = e.array(B), c = e.object({
|
|
296
296
|
x: e.number(),
|
|
297
297
|
y: e.number()
|
|
298
298
|
});
|
|
299
|
-
var
|
|
300
|
-
const
|
|
299
|
+
var S = /* @__PURE__ */ ((t) => (t.RICH_TEXT = "RICH_TEXT", t.NEXT_BUTTON = "NEXT_BUTTON", t.BACK_BUTTON = "BACK_BUTTON", t.SUBMIT_BUTTON = "SUBMIT_BUTTON", t.DIVIDER = "DIVIDER", t.TEXT = "TEXT", t.EMAIL = "EMAIL", t.PASSWORD = "PASSWORD", t.NUMBER = "NUMBER", t.PHONE = "PHONE", t.DATE = "DATE", t.CHECKBOX = "CHECKBOX", t.RADIO = "RADIO", t.SELECT = "SELECT", t.HIDDEN = "HIDDEN", t.LEGAL = "LEGAL", t))(S || {}), A = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.FIELD = "FIELD", t))(A || {});
|
|
300
|
+
const d = e.object({
|
|
301
301
|
id: e.string(),
|
|
302
|
-
category: e.nativeEnum(
|
|
303
|
-
type: e.nativeEnum(
|
|
304
|
-
}),
|
|
302
|
+
category: e.nativeEnum(A),
|
|
303
|
+
type: e.nativeEnum(S)
|
|
304
|
+
}), z = d.extend({
|
|
305
305
|
category: e.literal(
|
|
306
306
|
"BLOCK"
|
|
307
307
|
/* BLOCK */
|
|
@@ -313,7 +313,7 @@ const l = e.object({
|
|
|
313
313
|
config: e.object({
|
|
314
314
|
content: e.string()
|
|
315
315
|
}).passthrough()
|
|
316
|
-
}),
|
|
316
|
+
}), W = d.extend({
|
|
317
317
|
category: e.literal(
|
|
318
318
|
"BLOCK"
|
|
319
319
|
/* BLOCK */
|
|
@@ -335,7 +335,7 @@ const l = e.object({
|
|
|
335
335
|
config: e.object({
|
|
336
336
|
text: e.string()
|
|
337
337
|
}).passthrough()
|
|
338
|
-
}),
|
|
338
|
+
}), X = d.extend({
|
|
339
339
|
category: e.literal(
|
|
340
340
|
"FIELD"
|
|
341
341
|
/* FIELD */
|
|
@@ -349,7 +349,7 @@ const l = e.object({
|
|
|
349
349
|
config: e.object({
|
|
350
350
|
text: e.string()
|
|
351
351
|
}).passthrough()
|
|
352
|
-
}),
|
|
352
|
+
}), V = d.extend({
|
|
353
353
|
category: e.literal(
|
|
354
354
|
"FIELD"
|
|
355
355
|
/* FIELD */
|
|
@@ -402,82 +402,82 @@ const l = e.object({
|
|
|
402
402
|
label: e.string().optional(),
|
|
403
403
|
placeholder: e.string().optional()
|
|
404
404
|
}).passthrough()
|
|
405
|
-
}),
|
|
405
|
+
}), q = e.object({
|
|
406
406
|
id: e.string(),
|
|
407
407
|
category: e.string(),
|
|
408
408
|
type: e.string()
|
|
409
|
-
}).passthrough(),
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
409
|
+
}).passthrough(), Y = e.union([
|
|
410
|
+
z,
|
|
411
|
+
W,
|
|
412
|
+
X,
|
|
413
|
+
V,
|
|
414
|
+
q
|
|
415
415
|
]);
|
|
416
|
-
var
|
|
417
|
-
const
|
|
416
|
+
var Q = /* @__PURE__ */ ((t) => (t.STEP = "STEP", t.FLOW = "FLOW", t.CONDITION = "CONDITION", t.ACTION = "ACTION", t))(Q || {});
|
|
417
|
+
const J = e.object({
|
|
418
418
|
id: e.string(),
|
|
419
419
|
type: e.literal(
|
|
420
420
|
"STEP"
|
|
421
421
|
/* STEP */
|
|
422
422
|
),
|
|
423
|
-
coordinates:
|
|
423
|
+
coordinates: c,
|
|
424
424
|
alias: e.string().optional(),
|
|
425
425
|
config: e.object({
|
|
426
|
-
components: e.array(
|
|
426
|
+
components: e.array(Y),
|
|
427
427
|
next_node: e.string()
|
|
428
428
|
}).passthrough()
|
|
429
|
-
}),
|
|
429
|
+
}), Z = e.object({
|
|
430
430
|
id: e.string(),
|
|
431
431
|
type: e.literal(
|
|
432
432
|
"FLOW"
|
|
433
433
|
/* FLOW */
|
|
434
434
|
),
|
|
435
|
-
coordinates:
|
|
435
|
+
coordinates: c,
|
|
436
436
|
alias: e.string().optional(),
|
|
437
437
|
config: e.object({
|
|
438
438
|
flow_id: e.string(),
|
|
439
439
|
next_node: e.string()
|
|
440
440
|
})
|
|
441
|
-
}),
|
|
441
|
+
}), $ = e.object({
|
|
442
442
|
id: e.string(),
|
|
443
443
|
type: e.string(),
|
|
444
|
-
coordinates:
|
|
445
|
-
}).passthrough(),
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
]),
|
|
444
|
+
coordinates: c
|
|
445
|
+
}).passthrough(), ee = e.union([
|
|
446
|
+
J,
|
|
447
|
+
Z,
|
|
448
|
+
$
|
|
449
|
+
]), te = e.object({
|
|
450
450
|
next_node: e.string(),
|
|
451
|
-
coordinates:
|
|
452
|
-
}).passthrough(),
|
|
451
|
+
coordinates: c
|
|
452
|
+
}).passthrough(), oe = e.object({
|
|
453
453
|
resume_flow: e.boolean().optional(),
|
|
454
|
-
coordinates:
|
|
455
|
-
}).passthrough(),
|
|
454
|
+
coordinates: c
|
|
455
|
+
}).passthrough(), ne = e.object({
|
|
456
456
|
id: e.string(),
|
|
457
457
|
name: e.string(),
|
|
458
458
|
languages: e.object({
|
|
459
459
|
primary: e.string()
|
|
460
460
|
}).passthrough(),
|
|
461
|
-
nodes: e.array(
|
|
462
|
-
start:
|
|
463
|
-
ending:
|
|
461
|
+
nodes: e.array(ee),
|
|
462
|
+
start: te,
|
|
463
|
+
ending: oe,
|
|
464
464
|
created_at: e.string(),
|
|
465
465
|
updated_at: e.string(),
|
|
466
466
|
links: e.object({
|
|
467
467
|
sdkSrc: e.string().optional(),
|
|
468
468
|
sdk_src: e.string().optional()
|
|
469
469
|
}).passthrough()
|
|
470
|
-
}).passthrough(),
|
|
470
|
+
}).passthrough(), pt = ne.omit({
|
|
471
471
|
id: !0,
|
|
472
472
|
created_at: !0,
|
|
473
473
|
updated_at: !0
|
|
474
474
|
});
|
|
475
|
-
var
|
|
476
|
-
const
|
|
475
|
+
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 ie = e.object({
|
|
477
477
|
client_id: e.string(),
|
|
478
478
|
act_as: e.string().optional(),
|
|
479
|
-
response_type: e.nativeEnum(
|
|
480
|
-
response_mode: e.nativeEnum(
|
|
479
|
+
response_type: e.nativeEnum(I).optional(),
|
|
480
|
+
response_mode: e.nativeEnum(C).optional(),
|
|
481
481
|
redirect_uri: e.string().optional(),
|
|
482
482
|
audience: e.string().optional(),
|
|
483
483
|
organization: e.string().optional(),
|
|
@@ -485,13 +485,13 @@ const W = e.object({
|
|
|
485
485
|
nonce: e.string().optional(),
|
|
486
486
|
scope: e.string().optional(),
|
|
487
487
|
prompt: e.string().optional(),
|
|
488
|
-
code_challenge_method: e.nativeEnum(
|
|
488
|
+
code_challenge_method: e.nativeEnum(O).optional(),
|
|
489
489
|
code_challenge: e.string().optional(),
|
|
490
490
|
username: e.string().optional(),
|
|
491
491
|
ui_locales: e.string().optional(),
|
|
492
492
|
// The following fields are not available in Auth0
|
|
493
493
|
vendor_id: e.string().optional()
|
|
494
|
-
}),
|
|
494
|
+
}), dt = e.object({
|
|
495
495
|
colors: e.object({
|
|
496
496
|
primary: e.string(),
|
|
497
497
|
page_background: e.object({
|
|
@@ -507,7 +507,7 @@ const W = e.object({
|
|
|
507
507
|
font: e.object({
|
|
508
508
|
url: e.string()
|
|
509
509
|
}).optional()
|
|
510
|
-
}),
|
|
510
|
+
}), ae = e.object({
|
|
511
511
|
kid: e.string().optional(),
|
|
512
512
|
team_id: e.string().optional(),
|
|
513
513
|
realms: e.string().optional(),
|
|
@@ -527,23 +527,23 @@ const W = e.object({
|
|
|
527
527
|
twilio_sid: e.string().optional(),
|
|
528
528
|
twilio_token: e.string().optional(),
|
|
529
529
|
icon_url: e.string().optional()
|
|
530
|
-
}),
|
|
530
|
+
}), se = e.object({
|
|
531
531
|
id: e.string().optional(),
|
|
532
532
|
name: e.string(),
|
|
533
533
|
display_name: e.string().optional(),
|
|
534
534
|
strategy: e.string(),
|
|
535
|
-
options:
|
|
535
|
+
options: ae.default({}),
|
|
536
536
|
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
537
537
|
response_type: e.custom().optional(),
|
|
538
538
|
response_mode: e.custom().optional(),
|
|
539
539
|
is_domain_connection: e.boolean().optional(),
|
|
540
540
|
show_as_button: e.boolean().optional(),
|
|
541
541
|
metadata: e.record(e.any()).optional()
|
|
542
|
-
}),
|
|
542
|
+
}), re = e.object({
|
|
543
543
|
id: e.string(),
|
|
544
544
|
created_at: e.string().transform((t) => t === null ? "" : t),
|
|
545
545
|
updated_at: e.string().transform((t) => t === null ? "" : t)
|
|
546
|
-
}).extend(
|
|
546
|
+
}).extend(se.shape), le = e.object({
|
|
547
547
|
id: e.string().optional(),
|
|
548
548
|
// Basic settings
|
|
549
549
|
audience: e.string(),
|
|
@@ -663,25 +663,23 @@ const W = e.object({
|
|
|
663
663
|
// Authorization settings
|
|
664
664
|
pushed_authorization_requests_supported: e.boolean().optional(),
|
|
665
665
|
authorization_response_iss_parameter_supported: e.boolean().optional()
|
|
666
|
-
}),
|
|
666
|
+
}), ce = e.object({
|
|
667
667
|
created_at: e.string().nullable().transform((t) => t ?? ""),
|
|
668
668
|
updated_at: e.string().nullable().transform((t) => t ?? ""),
|
|
669
|
-
...
|
|
669
|
+
...le.shape,
|
|
670
670
|
id: e.string()
|
|
671
|
-
})
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
});
|
|
677
|
-
const J = e.enum([
|
|
671
|
+
}), gt = e.object({
|
|
672
|
+
...G.shape,
|
|
673
|
+
tenant: ce,
|
|
674
|
+
connections: e.array(re)
|
|
675
|
+
}), _e = e.enum([
|
|
678
676
|
"password_reset",
|
|
679
677
|
"email_verification",
|
|
680
678
|
"otp",
|
|
681
679
|
"authorization_code",
|
|
682
680
|
"oauth2_state",
|
|
683
681
|
"ticket"
|
|
684
|
-
]),
|
|
682
|
+
]), pe = e.object({
|
|
685
683
|
code_id: e.string().openapi({
|
|
686
684
|
description: "The code that will be used in for instance an email verification flow"
|
|
687
685
|
}),
|
|
@@ -691,7 +689,7 @@ const J = e.enum([
|
|
|
691
689
|
connection_id: e.string().optional().openapi({
|
|
692
690
|
description: "The connection that the code is connected to"
|
|
693
691
|
}),
|
|
694
|
-
code_type:
|
|
692
|
+
code_type: _e,
|
|
695
693
|
code_verifier: e.string().optional().openapi({
|
|
696
694
|
description: "The code verifier used in PKCE in outbound flows"
|
|
697
695
|
}),
|
|
@@ -713,10 +711,10 @@ const J = e.enum([
|
|
|
713
711
|
expires_at: e.string(),
|
|
714
712
|
used_at: e.string().optional(),
|
|
715
713
|
user_id: e.string().optional()
|
|
716
|
-
}),
|
|
717
|
-
...
|
|
714
|
+
}), ut = e.object({
|
|
715
|
+
...pe.shape,
|
|
718
716
|
created_at: e.string()
|
|
719
|
-
}),
|
|
717
|
+
}), de = e.object({
|
|
720
718
|
domain: e.string(),
|
|
721
719
|
custom_domain_id: e.string().optional(),
|
|
722
720
|
type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
@@ -730,23 +728,23 @@ const J = e.enum([
|
|
|
730
728
|
"null"
|
|
731
729
|
]).optional(),
|
|
732
730
|
domain_metadata: e.record(e.string().max(255)).optional()
|
|
733
|
-
}),
|
|
731
|
+
}), ge = e.object({
|
|
734
732
|
name: e.literal("txt"),
|
|
735
733
|
record: e.string(),
|
|
736
734
|
domain: e.string()
|
|
737
|
-
}),
|
|
738
|
-
|
|
735
|
+
}), ue = e.object({
|
|
736
|
+
...de.shape,
|
|
739
737
|
custom_domain_id: e.string(),
|
|
740
738
|
primary: e.boolean(),
|
|
741
739
|
status: e.enum(["disabled", "pending", "pending_verification", "ready"]),
|
|
742
740
|
origin_domain_name: e.string().optional(),
|
|
743
741
|
verification: e.object({
|
|
744
|
-
methods: e.array(
|
|
742
|
+
methods: e.array(ge)
|
|
745
743
|
}).optional(),
|
|
746
744
|
tls_policy: e.string().optional()
|
|
747
|
-
}),
|
|
745
|
+
}), mt = ue.extend({
|
|
748
746
|
tenant_id: e.string()
|
|
749
|
-
}),
|
|
747
|
+
}), ht = e.object({
|
|
750
748
|
id: e.string(),
|
|
751
749
|
type: e.literal("submit"),
|
|
752
750
|
label: e.string(),
|
|
@@ -755,58 +753,58 @@ const J = e.enum([
|
|
|
755
753
|
order: e.number().optional(),
|
|
756
754
|
visible: e.boolean().optional().default(!0),
|
|
757
755
|
customizations: e.record(e.string(), e.any()).optional()
|
|
758
|
-
}),
|
|
756
|
+
}), y = e.object({
|
|
759
757
|
id: e.string(),
|
|
760
758
|
order: e.number().optional(),
|
|
761
759
|
visible: e.boolean().optional().default(!0)
|
|
762
|
-
}),
|
|
760
|
+
}), f = y.extend({
|
|
763
761
|
category: e.literal("BLOCK").optional()
|
|
764
|
-
}),
|
|
762
|
+
}), l = y.extend({
|
|
765
763
|
category: e.literal("FIELD").optional(),
|
|
766
764
|
required: e.boolean().optional(),
|
|
767
765
|
sensitive: e.boolean().optional()
|
|
768
|
-
}),
|
|
769
|
-
|
|
766
|
+
}), me = e.discriminatedUnion("type", [
|
|
767
|
+
f.extend({
|
|
770
768
|
type: e.literal("RICH_TEXT"),
|
|
771
769
|
config: e.object({
|
|
772
770
|
content: e.string()
|
|
773
771
|
})
|
|
774
772
|
}),
|
|
775
|
-
|
|
773
|
+
l.omit({ sensitive: !0 }).extend({
|
|
776
774
|
type: e.literal("LEGAL"),
|
|
777
775
|
config: e.object({
|
|
778
776
|
text: e.string(),
|
|
779
777
|
html: e.boolean().optional()
|
|
780
778
|
})
|
|
781
779
|
}),
|
|
782
|
-
|
|
780
|
+
l.extend({
|
|
783
781
|
type: e.literal("TEXT"),
|
|
784
782
|
config: e.object({
|
|
785
783
|
placeholder: e.string().optional(),
|
|
786
784
|
multiline: e.boolean().optional()
|
|
787
785
|
})
|
|
788
786
|
}),
|
|
789
|
-
|
|
787
|
+
f.extend({
|
|
790
788
|
type: e.literal("NEXT_BUTTON"),
|
|
791
789
|
config: e.object({
|
|
792
790
|
text: e.string().optional()
|
|
793
791
|
})
|
|
794
792
|
}),
|
|
795
|
-
|
|
793
|
+
l.extend({
|
|
796
794
|
type: e.literal("EMAIL"),
|
|
797
795
|
config: e.object({
|
|
798
796
|
label: e.string().optional(),
|
|
799
797
|
placeholder: e.string().optional()
|
|
800
798
|
})
|
|
801
799
|
}),
|
|
802
|
-
|
|
800
|
+
l.extend({
|
|
803
801
|
type: e.literal("NUMBER"),
|
|
804
802
|
config: e.object({
|
|
805
803
|
label: e.string().optional(),
|
|
806
804
|
placeholder: e.string().optional()
|
|
807
805
|
})
|
|
808
806
|
}),
|
|
809
|
-
|
|
807
|
+
l.extend({
|
|
810
808
|
type: e.literal("PHONE"),
|
|
811
809
|
config: e.object({
|
|
812
810
|
label: e.string().optional(),
|
|
@@ -814,7 +812,7 @@ const J = e.enum([
|
|
|
814
812
|
})
|
|
815
813
|
})
|
|
816
814
|
// Add more component types as needed
|
|
817
|
-
]),
|
|
815
|
+
]), he = e.object({
|
|
818
816
|
name: e.string().openapi({
|
|
819
817
|
description: "The name of the form"
|
|
820
818
|
}),
|
|
@@ -865,7 +863,7 @@ const J = e.enum([
|
|
|
865
863
|
coordinates: e.object({ x: e.number(), y: e.number() }),
|
|
866
864
|
alias: e.string().min(1).max(150).optional(),
|
|
867
865
|
config: e.object({
|
|
868
|
-
components: e.array(
|
|
866
|
+
components: e.array(me),
|
|
869
867
|
next_node: e.string().optional()
|
|
870
868
|
})
|
|
871
869
|
})
|
|
@@ -888,11 +886,11 @@ const J = e.enum([
|
|
|
888
886
|
style: e.object({ css: e.string().optional() }).optional()
|
|
889
887
|
}).openapi({
|
|
890
888
|
description: "Schema for flow-based forms (matches new JSON structure)"
|
|
891
|
-
}),
|
|
892
|
-
...
|
|
893
|
-
...
|
|
889
|
+
}), bt = e.object({
|
|
890
|
+
...s.shape,
|
|
891
|
+
...he.shape,
|
|
894
892
|
id: e.string()
|
|
895
|
-
}),
|
|
893
|
+
}), T = e.enum([
|
|
896
894
|
"pre-user-registration",
|
|
897
895
|
"post-user-registration",
|
|
898
896
|
"post-user-login",
|
|
@@ -900,49 +898,49 @@ const J = e.enum([
|
|
|
900
898
|
"pre-user-deletion",
|
|
901
899
|
"post-user-deletion"
|
|
902
900
|
// Potentially other triggers specific to webhooks in the future
|
|
903
|
-
]),
|
|
901
|
+
]), N = e.enum([
|
|
904
902
|
"pre-user-registration",
|
|
905
903
|
"post-user-registration",
|
|
906
904
|
"post-user-login",
|
|
907
905
|
"validate-registration-username",
|
|
908
906
|
"pre-user-deletion",
|
|
909
907
|
"post-user-deletion"
|
|
910
|
-
]),
|
|
908
|
+
]), g = {
|
|
911
909
|
enabled: e.boolean().default(!1),
|
|
912
910
|
synchronous: e.boolean().default(!1),
|
|
913
911
|
priority: e.number().optional(),
|
|
914
912
|
hook_id: e.string().optional()
|
|
915
|
-
},
|
|
916
|
-
...
|
|
917
|
-
trigger_id:
|
|
913
|
+
}, be = e.object({
|
|
914
|
+
...g,
|
|
915
|
+
trigger_id: T,
|
|
918
916
|
url: e.string()
|
|
919
|
-
}),
|
|
920
|
-
...
|
|
921
|
-
trigger_id:
|
|
917
|
+
}), fe = e.object({
|
|
918
|
+
...g,
|
|
919
|
+
trigger_id: N,
|
|
922
920
|
form_id: e.string()
|
|
923
|
-
}),
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
]),
|
|
927
|
-
...
|
|
928
|
-
trigger_id:
|
|
929
|
-
...
|
|
921
|
+
}), ft = e.union([
|
|
922
|
+
be,
|
|
923
|
+
fe
|
|
924
|
+
]), Ee = e.object({
|
|
925
|
+
...g,
|
|
926
|
+
trigger_id: T,
|
|
927
|
+
...s.shape,
|
|
930
928
|
hook_id: e.string(),
|
|
931
929
|
url: e.string()
|
|
932
|
-
}),
|
|
933
|
-
...
|
|
934
|
-
trigger_id:
|
|
935
|
-
...
|
|
930
|
+
}), Se = e.object({
|
|
931
|
+
...g,
|
|
932
|
+
trigger_id: N,
|
|
933
|
+
...s.shape,
|
|
936
934
|
hook_id: e.string(),
|
|
937
935
|
form_id: e.string()
|
|
938
|
-
}),
|
|
936
|
+
}), Et = e.union([Ee, Se]), Ae = e.object({
|
|
939
937
|
name: e.string().optional()
|
|
940
|
-
}),
|
|
938
|
+
}), Ie = e.object({
|
|
941
939
|
email: e.string().optional()
|
|
942
|
-
}),
|
|
940
|
+
}), Ce = e.object({
|
|
943
941
|
organization_id: e.string().max(50),
|
|
944
|
-
inviter:
|
|
945
|
-
invitee:
|
|
942
|
+
inviter: Ae,
|
|
943
|
+
invitee: Ie,
|
|
946
944
|
invitation_url: e.string().url(),
|
|
947
945
|
client_id: e.string(),
|
|
948
946
|
connection_id: e.string().optional(),
|
|
@@ -951,13 +949,13 @@ const J = e.enum([
|
|
|
951
949
|
ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
|
|
952
950
|
roles: e.array(e.string()).default([]).optional(),
|
|
953
951
|
send_invitation_email: e.boolean().default(!0).optional()
|
|
954
|
-
}),
|
|
952
|
+
}), St = e.object({
|
|
955
953
|
id: e.string(),
|
|
956
954
|
organization_id: e.string().max(50),
|
|
957
955
|
created_at: e.string().datetime(),
|
|
958
956
|
expires_at: e.string().datetime(),
|
|
959
957
|
ticket_id: e.string().optional()
|
|
960
|
-
}).extend(
|
|
958
|
+
}).extend(Ce.shape), Oe = e.object({
|
|
961
959
|
alg: e.enum([
|
|
962
960
|
"RS256",
|
|
963
961
|
"RS384",
|
|
@@ -976,9 +974,9 @@ const J = e.enum([
|
|
|
976
974
|
x5t: e.string().optional(),
|
|
977
975
|
x5c: e.array(e.string()).optional(),
|
|
978
976
|
use: e.enum(["sig", "enc"]).optional()
|
|
979
|
-
}),
|
|
980
|
-
keys: e.array(
|
|
981
|
-
}),
|
|
977
|
+
}), At = e.object({
|
|
978
|
+
keys: e.array(Oe)
|
|
979
|
+
}), It = e.object({
|
|
982
980
|
issuer: e.string(),
|
|
983
981
|
authorization_endpoint: e.string(),
|
|
984
982
|
token_endpoint: e.string(),
|
|
@@ -999,10 +997,10 @@ const J = e.enum([
|
|
|
999
997
|
request_uri_parameter_supported: e.boolean(),
|
|
1000
998
|
request_parameter_supported: e.boolean(),
|
|
1001
999
|
token_endpoint_auth_signing_alg_values_supported: e.array(e.string())
|
|
1002
|
-
}),
|
|
1000
|
+
}), ye = e.object({
|
|
1003
1001
|
csrf_token: e.string(),
|
|
1004
1002
|
auth0Client: e.string().optional(),
|
|
1005
|
-
authParams:
|
|
1003
|
+
authParams: ie,
|
|
1006
1004
|
expires_at: e.string(),
|
|
1007
1005
|
deleted_at: e.string().optional(),
|
|
1008
1006
|
ip: e.string().optional(),
|
|
@@ -1012,14 +1010,14 @@ const J = e.enum([
|
|
|
1012
1010
|
login_completed: e.boolean().optional().default(!1)
|
|
1013
1011
|
}).openapi({
|
|
1014
1012
|
description: "This represents a login sesion"
|
|
1015
|
-
}),
|
|
1016
|
-
...
|
|
1013
|
+
}), Ct = e.object({
|
|
1014
|
+
...ye.shape,
|
|
1017
1015
|
id: e.string().openapi({
|
|
1018
1016
|
description: "This is is used as the state in the universal login"
|
|
1019
1017
|
}),
|
|
1020
1018
|
created_at: e.string(),
|
|
1021
1019
|
updated_at: e.string()
|
|
1022
|
-
}),
|
|
1020
|
+
}), Te = {
|
|
1023
1021
|
// Network & System
|
|
1024
1022
|
ACLS_SUMMARY: "acls_summary",
|
|
1025
1023
|
ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
|
|
@@ -1186,24 +1184,24 @@ const J = e.enum([
|
|
|
1186
1184
|
WARNING_DURING_LOGIN: "w",
|
|
1187
1185
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
1188
1186
|
WARNING_USER_MANAGEMENT: "wum"
|
|
1189
|
-
},
|
|
1190
|
-
(t) => Object.values(
|
|
1187
|
+
}, Ne = e.string().refine(
|
|
1188
|
+
(t) => Object.values(Te).includes(t),
|
|
1191
1189
|
{ message: "Invalid log type" }
|
|
1192
|
-
),
|
|
1190
|
+
), Re = e.object({
|
|
1193
1191
|
name: e.string(),
|
|
1194
1192
|
version: e.string(),
|
|
1195
1193
|
env: e.object({
|
|
1196
1194
|
node: e.string().optional()
|
|
1197
1195
|
}).optional()
|
|
1198
|
-
}),
|
|
1196
|
+
}), Le = e.object({
|
|
1199
1197
|
country_code: e.string().length(2),
|
|
1200
1198
|
city_name: e.string(),
|
|
1201
1199
|
latitude: e.string(),
|
|
1202
1200
|
longitude: e.string(),
|
|
1203
1201
|
time_zone: e.string(),
|
|
1204
1202
|
continent_code: e.string()
|
|
1205
|
-
}),
|
|
1206
|
-
type:
|
|
1203
|
+
}), De = e.object({
|
|
1204
|
+
type: Ne,
|
|
1207
1205
|
date: e.string(),
|
|
1208
1206
|
description: e.string().optional(),
|
|
1209
1207
|
ip: e.string().optional(),
|
|
@@ -1222,30 +1220,30 @@ const J = e.enum([
|
|
|
1222
1220
|
strategy: e.string().optional(),
|
|
1223
1221
|
strategy_type: e.string().optional(),
|
|
1224
1222
|
hostname: e.string().optional(),
|
|
1225
|
-
auth0_client:
|
|
1223
|
+
auth0_client: Re.optional(),
|
|
1226
1224
|
log_id: e.string().optional(),
|
|
1227
|
-
location_info:
|
|
1228
|
-
}),
|
|
1229
|
-
...
|
|
1225
|
+
location_info: Le.optional()
|
|
1226
|
+
}), Ot = e.object({
|
|
1227
|
+
...De.shape,
|
|
1230
1228
|
log_id: e.string()
|
|
1231
|
-
}),
|
|
1229
|
+
}), we = e.object({
|
|
1232
1230
|
id: e.string().optional(),
|
|
1233
1231
|
user_id: e.string(),
|
|
1234
1232
|
password: e.string(),
|
|
1235
1233
|
algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
|
|
1236
1234
|
is_current: e.boolean().default(!0)
|
|
1237
|
-
}),
|
|
1235
|
+
}), yt = we.extend({
|
|
1238
1236
|
id: e.string(),
|
|
1239
1237
|
created_at: e.string(),
|
|
1240
1238
|
updated_at: e.string()
|
|
1241
|
-
}),
|
|
1239
|
+
}), R = e.object({
|
|
1242
1240
|
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
1243
1241
|
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
1244
1242
|
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
1245
1243
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
1246
1244
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
1247
1245
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
1248
|
-
}),
|
|
1246
|
+
}), je = e.object({
|
|
1249
1247
|
id: e.string(),
|
|
1250
1248
|
revoked_at: e.string().optional(),
|
|
1251
1249
|
used_at: e.string().optional(),
|
|
@@ -1253,17 +1251,17 @@ const J = e.enum([
|
|
|
1253
1251
|
expires_at: e.string().optional(),
|
|
1254
1252
|
login_session_id: e.string(),
|
|
1255
1253
|
idle_expires_at: e.string().optional(),
|
|
1256
|
-
device:
|
|
1254
|
+
device: R.describe(
|
|
1257
1255
|
"Metadata related to the device used in the session"
|
|
1258
1256
|
),
|
|
1259
1257
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
1260
|
-
}),
|
|
1258
|
+
}), Tt = e.object({
|
|
1261
1259
|
created_at: e.string(),
|
|
1262
1260
|
updated_at: e.string(),
|
|
1263
1261
|
authenticated_at: e.string(),
|
|
1264
1262
|
last_interaction_at: e.string(),
|
|
1265
|
-
...
|
|
1266
|
-
}),
|
|
1263
|
+
...je.shape
|
|
1264
|
+
}), Nt = e.object({
|
|
1267
1265
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
1268
1266
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
1269
1267
|
fingerprint: e.string().openapi({ description: "The cert fingerprint" }),
|
|
@@ -1289,8 +1287,8 @@ const J = e.enum([
|
|
|
1289
1287
|
description: "The type of the signing key"
|
|
1290
1288
|
})
|
|
1291
1289
|
});
|
|
1292
|
-
var
|
|
1293
|
-
const
|
|
1290
|
+
var ke = /* @__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))(ke || {});
|
|
1291
|
+
const Rt = e.object({
|
|
1294
1292
|
access_token: e.string(),
|
|
1295
1293
|
id_token: e.string().optional(),
|
|
1296
1294
|
scope: e.string().optional(),
|
|
@@ -1303,7 +1301,7 @@ e.object({
|
|
|
1303
1301
|
code: e.string(),
|
|
1304
1302
|
state: e.string().optional()
|
|
1305
1303
|
});
|
|
1306
|
-
const
|
|
1304
|
+
const Ue = e.object({
|
|
1307
1305
|
button_border_radius: e.number(),
|
|
1308
1306
|
button_border_weight: e.number(),
|
|
1309
1307
|
buttons_style: e.enum(["pill", "rounded", "sharp"]),
|
|
@@ -1313,7 +1311,7 @@ const Ae = e.object({
|
|
|
1313
1311
|
show_widget_shadow: e.boolean(),
|
|
1314
1312
|
widget_border_weight: e.number(),
|
|
1315
1313
|
widget_corner_radius: e.number()
|
|
1316
|
-
}),
|
|
1314
|
+
}), Fe = e.object({
|
|
1317
1315
|
base_focus_color: e.string(),
|
|
1318
1316
|
base_hover_color: e.string(),
|
|
1319
1317
|
body_text: e.string(),
|
|
@@ -1333,44 +1331,44 @@ const Ae = e.object({
|
|
|
1333
1331
|
success: e.string(),
|
|
1334
1332
|
widget_background: e.string(),
|
|
1335
1333
|
widget_border: e.string()
|
|
1336
|
-
}),
|
|
1334
|
+
}), a = e.object({
|
|
1337
1335
|
bold: e.boolean(),
|
|
1338
1336
|
size: e.number()
|
|
1339
|
-
}),
|
|
1340
|
-
body_text:
|
|
1341
|
-
buttons_text:
|
|
1337
|
+
}), ve = e.object({
|
|
1338
|
+
body_text: a,
|
|
1339
|
+
buttons_text: a,
|
|
1342
1340
|
font_url: e.string(),
|
|
1343
|
-
input_labels:
|
|
1344
|
-
links:
|
|
1341
|
+
input_labels: a,
|
|
1342
|
+
links: a,
|
|
1345
1343
|
links_style: e.enum(["normal", "underlined"]),
|
|
1346
1344
|
reference_text_size: e.number(),
|
|
1347
|
-
subtitle:
|
|
1348
|
-
title:
|
|
1349
|
-
}),
|
|
1345
|
+
subtitle: a,
|
|
1346
|
+
title: a
|
|
1347
|
+
}), Pe = e.object({
|
|
1350
1348
|
background_color: e.string(),
|
|
1351
1349
|
background_image_url: e.string(),
|
|
1352
1350
|
page_layout: e.enum(["center", "left", "right"])
|
|
1353
|
-
}),
|
|
1351
|
+
}), xe = e.object({
|
|
1354
1352
|
header_text_alignment: e.enum(["center", "left", "right"]),
|
|
1355
1353
|
logo_height: e.number(),
|
|
1356
1354
|
logo_position: e.enum(["center", "left", "none", "right"]),
|
|
1357
1355
|
logo_url: e.string(),
|
|
1358
1356
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
1359
|
-
}),
|
|
1360
|
-
borders:
|
|
1361
|
-
colors:
|
|
1357
|
+
}), Me = e.object({
|
|
1358
|
+
borders: Ue,
|
|
1359
|
+
colors: Fe,
|
|
1362
1360
|
displayName: e.string(),
|
|
1363
|
-
fonts:
|
|
1364
|
-
page_background:
|
|
1365
|
-
widget:
|
|
1366
|
-
}),
|
|
1361
|
+
fonts: ve,
|
|
1362
|
+
page_background: Pe,
|
|
1363
|
+
widget: xe
|
|
1364
|
+
}), Lt = Me.extend({
|
|
1367
1365
|
themeId: e.string()
|
|
1368
|
-
}),
|
|
1366
|
+
}), Dt = e.object({
|
|
1369
1367
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
1370
1368
|
identifier_first: e.boolean().default(!0),
|
|
1371
1369
|
password_first: e.boolean().default(!1),
|
|
1372
1370
|
webauthn_platform_first_factor: e.boolean()
|
|
1373
|
-
}),
|
|
1371
|
+
}), wt = e.object({
|
|
1374
1372
|
name: e.string(),
|
|
1375
1373
|
enabled: e.boolean().optional().default(!0),
|
|
1376
1374
|
default_from_address: e.string().optional(),
|
|
@@ -1400,7 +1398,7 @@ const Ae = e.object({
|
|
|
1400
1398
|
})
|
|
1401
1399
|
]),
|
|
1402
1400
|
settings: e.object({}).optional()
|
|
1403
|
-
}),
|
|
1401
|
+
}), He = e.object({
|
|
1404
1402
|
// The actual refresh token value (primary key).
|
|
1405
1403
|
id: e.string(),
|
|
1406
1404
|
// Link to the session record
|
|
@@ -1413,7 +1411,7 @@ const Ae = e.object({
|
|
|
1413
1411
|
idle_expires_at: e.string().optional(),
|
|
1414
1412
|
// When the token was last used.
|
|
1415
1413
|
last_exchanged_at: e.string().optional(),
|
|
1416
|
-
device:
|
|
1414
|
+
device: R,
|
|
1417
1415
|
resource_servers: e.array(
|
|
1418
1416
|
e.object({
|
|
1419
1417
|
audience: e.string(),
|
|
@@ -1421,21 +1419,21 @@ const Ae = e.object({
|
|
|
1421
1419
|
})
|
|
1422
1420
|
),
|
|
1423
1421
|
rotating: e.boolean()
|
|
1424
|
-
}),
|
|
1422
|
+
}), jt = e.object({
|
|
1425
1423
|
// When the refresh token record was created.
|
|
1426
1424
|
created_at: e.string(),
|
|
1427
1425
|
// Spread in the rest of the refresh token properties.
|
|
1428
|
-
...
|
|
1429
|
-
}),
|
|
1426
|
+
...He.shape
|
|
1427
|
+
}), kt = e.object({
|
|
1430
1428
|
to: e.string(),
|
|
1431
1429
|
message: e.string()
|
|
1432
|
-
}),
|
|
1430
|
+
}), Ut = e.object({
|
|
1433
1431
|
name: e.string(),
|
|
1434
1432
|
options: e.object({})
|
|
1435
|
-
}),
|
|
1433
|
+
}), Ge = e.object({
|
|
1436
1434
|
value: e.string(),
|
|
1437
1435
|
description: e.string().optional()
|
|
1438
|
-
}),
|
|
1436
|
+
}), Ke = e.object({
|
|
1439
1437
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
1440
1438
|
enforce_policies: e.boolean().optional(),
|
|
1441
1439
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -1445,10 +1443,10 @@ const Ae = e.object({
|
|
|
1445
1443
|
mtls: e.object({
|
|
1446
1444
|
bound_access_tokens: e.boolean().optional()
|
|
1447
1445
|
}).optional()
|
|
1448
|
-
}),
|
|
1446
|
+
}), Be = e.object({
|
|
1449
1447
|
name: e.string(),
|
|
1450
1448
|
identifier: e.string(),
|
|
1451
|
-
scopes: e.array(
|
|
1449
|
+
scopes: e.array(Ge).optional(),
|
|
1452
1450
|
signing_alg: e.string().optional(),
|
|
1453
1451
|
signing_secret: e.string().optional(),
|
|
1454
1452
|
token_lifetime: e.number().optional(),
|
|
@@ -1456,29 +1454,29 @@ const Ae = e.object({
|
|
|
1456
1454
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
1457
1455
|
allow_offline_access: e.boolean().optional(),
|
|
1458
1456
|
verificationKey: e.string().optional(),
|
|
1459
|
-
options:
|
|
1460
|
-
}),
|
|
1457
|
+
options: Ke.optional()
|
|
1458
|
+
}), ze = e.object({
|
|
1461
1459
|
id: e.string().optional(),
|
|
1462
|
-
...
|
|
1460
|
+
...Be.shape,
|
|
1463
1461
|
created_at: e.string().optional(),
|
|
1464
1462
|
updated_at: e.string().optional()
|
|
1465
|
-
}),
|
|
1463
|
+
}), Ft = e.array(ze), We = e.object({
|
|
1466
1464
|
role_id: e.string(),
|
|
1467
1465
|
resource_server_identifier: e.string(),
|
|
1468
1466
|
permission_name: e.string()
|
|
1469
|
-
}),
|
|
1470
|
-
...
|
|
1467
|
+
}), Xe = e.object({
|
|
1468
|
+
...We.shape,
|
|
1471
1469
|
created_at: e.string()
|
|
1472
|
-
}),
|
|
1470
|
+
}), vt = e.array(Xe), Ve = e.object({
|
|
1473
1471
|
user_id: e.string(),
|
|
1474
1472
|
resource_server_identifier: e.string(),
|
|
1475
1473
|
permission_name: e.string(),
|
|
1476
1474
|
organization_id: e.string().optional()
|
|
1477
|
-
}),
|
|
1478
|
-
...
|
|
1475
|
+
}), qe = e.object({
|
|
1476
|
+
...Ve.shape,
|
|
1479
1477
|
tenant_id: e.string(),
|
|
1480
1478
|
created_at: e.string().optional()
|
|
1481
|
-
}),
|
|
1479
|
+
}), Pt = e.array(qe), Ye = e.object({
|
|
1482
1480
|
user_id: e.string(),
|
|
1483
1481
|
resource_server_identifier: e.string(),
|
|
1484
1482
|
resource_server_name: e.string(),
|
|
@@ -1486,31 +1484,31 @@ const Ae = e.object({
|
|
|
1486
1484
|
description: e.string().nullable().optional(),
|
|
1487
1485
|
created_at: e.string().optional(),
|
|
1488
1486
|
organization_id: e.string().optional()
|
|
1489
|
-
}),
|
|
1490
|
-
|
|
1491
|
-
),
|
|
1487
|
+
}), xt = e.array(
|
|
1488
|
+
Ye
|
|
1489
|
+
), Qe = e.object({
|
|
1492
1490
|
user_id: e.string(),
|
|
1493
1491
|
role_id: e.string(),
|
|
1494
1492
|
organization_id: e.string().optional()
|
|
1495
|
-
}),
|
|
1496
|
-
...
|
|
1493
|
+
}), Je = e.object({
|
|
1494
|
+
...Qe.shape,
|
|
1497
1495
|
tenant_id: e.string(),
|
|
1498
1496
|
created_at: e.string().optional()
|
|
1499
|
-
}),
|
|
1497
|
+
}), Mt = e.array(Je), Ze = e.object({
|
|
1500
1498
|
name: e.string().min(1).max(50).openapi({
|
|
1501
1499
|
description: "The name of the role. Cannot include '<' or '>'"
|
|
1502
1500
|
}),
|
|
1503
1501
|
description: e.string().max(255).optional().openapi({
|
|
1504
1502
|
description: "The description of the role"
|
|
1505
1503
|
})
|
|
1506
|
-
}),
|
|
1504
|
+
}), $e = e.object({
|
|
1507
1505
|
id: e.string().openapi({
|
|
1508
1506
|
description: "The unique identifier of the role"
|
|
1509
1507
|
}),
|
|
1510
|
-
...
|
|
1508
|
+
...Ze.shape,
|
|
1511
1509
|
created_at: e.string().optional(),
|
|
1512
1510
|
updated_at: e.string().optional()
|
|
1513
|
-
}),
|
|
1511
|
+
}), Ht = e.array($e), et = e.object({
|
|
1514
1512
|
logo_url: e.string().optional().openapi({
|
|
1515
1513
|
description: "URL of the organization's logo"
|
|
1516
1514
|
}),
|
|
@@ -1522,7 +1520,7 @@ const Ae = e.object({
|
|
|
1522
1520
|
description: "Page background color in hex format (e.g., #FFFFFF)"
|
|
1523
1521
|
})
|
|
1524
1522
|
}).optional()
|
|
1525
|
-
}).optional(),
|
|
1523
|
+
}).optional(), tt = e.object({
|
|
1526
1524
|
connection_id: e.string().openapi({
|
|
1527
1525
|
description: "ID of the connection"
|
|
1528
1526
|
}),
|
|
@@ -1535,7 +1533,7 @@ const Ae = e.object({
|
|
|
1535
1533
|
is_signup_enabled: e.boolean().default(!0).openapi({
|
|
1536
1534
|
description: "Whether signup is enabled for this connection"
|
|
1537
1535
|
})
|
|
1538
|
-
}),
|
|
1536
|
+
}), ot = e.object({
|
|
1539
1537
|
client_credentials: e.object({
|
|
1540
1538
|
enforce: e.boolean().default(!1).openapi({
|
|
1541
1539
|
description: "Whether to enforce token quota limits"
|
|
@@ -1547,7 +1545,7 @@ const Ae = e.object({
|
|
|
1547
1545
|
description: "Maximum tokens per hour (0 = unlimited)"
|
|
1548
1546
|
})
|
|
1549
1547
|
}).optional()
|
|
1550
|
-
}).optional(),
|
|
1548
|
+
}).optional(), nt = e.object({
|
|
1551
1549
|
id: e.string().optional(),
|
|
1552
1550
|
name: e.string().min(1).openapi({
|
|
1553
1551
|
description: "The name of the organization"
|
|
@@ -1555,30 +1553,30 @@ const Ae = e.object({
|
|
|
1555
1553
|
display_name: e.string().optional().openapi({
|
|
1556
1554
|
description: "The display name of the organization"
|
|
1557
1555
|
}),
|
|
1558
|
-
branding:
|
|
1556
|
+
branding: et,
|
|
1559
1557
|
metadata: e.record(e.any()).default({}).optional().openapi({
|
|
1560
1558
|
description: "Custom metadata for the organization"
|
|
1561
1559
|
}),
|
|
1562
|
-
enabled_connections: e.array(
|
|
1560
|
+
enabled_connections: e.array(tt).default([]).optional().openapi({
|
|
1563
1561
|
description: "List of enabled connections for the organization"
|
|
1564
1562
|
}),
|
|
1565
|
-
token_quota:
|
|
1566
|
-
}),
|
|
1567
|
-
...
|
|
1568
|
-
...
|
|
1563
|
+
token_quota: ot
|
|
1564
|
+
}), Gt = e.object({
|
|
1565
|
+
...nt.shape,
|
|
1566
|
+
...s.shape,
|
|
1569
1567
|
id: e.string()
|
|
1570
|
-
}),
|
|
1568
|
+
}), it = e.object({
|
|
1571
1569
|
user_id: e.string().openapi({
|
|
1572
1570
|
description: "ID of the user"
|
|
1573
1571
|
}),
|
|
1574
1572
|
organization_id: e.string().openapi({
|
|
1575
1573
|
description: "ID of the organization"
|
|
1576
1574
|
})
|
|
1577
|
-
}),
|
|
1578
|
-
...
|
|
1579
|
-
...
|
|
1575
|
+
}), Kt = e.object({
|
|
1576
|
+
...it.shape,
|
|
1577
|
+
...s.shape,
|
|
1580
1578
|
id: e.string()
|
|
1581
|
-
}),
|
|
1579
|
+
}), Bt = e.object({
|
|
1582
1580
|
// Session settings
|
|
1583
1581
|
idle_session_lifetime: e.number().optional(),
|
|
1584
1582
|
session_lifetime: e.number().optional(),
|
|
@@ -1647,130 +1645,207 @@ const Ae = e.object({
|
|
|
1647
1645
|
sessions: e.object({
|
|
1648
1646
|
oidc_logout_prompt_enabled: e.boolean().optional()
|
|
1649
1647
|
}).optional()
|
|
1648
|
+
}), zt = e.object({
|
|
1649
|
+
date: e.string().openapi({
|
|
1650
|
+
description: "Date these events occurred in ISO 8601 format",
|
|
1651
|
+
example: "2025-12-19"
|
|
1652
|
+
}),
|
|
1653
|
+
logins: e.number().openapi({
|
|
1654
|
+
description: "Number of logins on this date",
|
|
1655
|
+
example: 150
|
|
1656
|
+
}),
|
|
1657
|
+
signups: e.number().openapi({
|
|
1658
|
+
description: "Number of signups on this date",
|
|
1659
|
+
example: 25
|
|
1660
|
+
}),
|
|
1661
|
+
leaked_passwords: e.number().openapi({
|
|
1662
|
+
description: "Number of breached-password detections on this date (subscription required)",
|
|
1663
|
+
example: 0
|
|
1664
|
+
}),
|
|
1665
|
+
updated_at: e.string().openapi({
|
|
1666
|
+
description: "Date and time this stats entry was last updated in ISO 8601 format",
|
|
1667
|
+
example: "2025-12-19T10:30:00.000Z"
|
|
1668
|
+
}),
|
|
1669
|
+
created_at: e.string().openapi({
|
|
1670
|
+
description: "Approximate date and time the first event occurred in ISO 8601 format",
|
|
1671
|
+
example: "2025-12-19T00:00:00.000Z"
|
|
1672
|
+
})
|
|
1673
|
+
}), Wt = e.number().openapi({
|
|
1674
|
+
description: "Number of active users in the last 30 days",
|
|
1675
|
+
example: 1234
|
|
1650
1676
|
});
|
|
1651
|
-
function
|
|
1652
|
-
const [
|
|
1653
|
-
if (!
|
|
1677
|
+
function Xt(t) {
|
|
1678
|
+
const [n, i] = t.split("|");
|
|
1679
|
+
if (!n || !i)
|
|
1654
1680
|
throw new Error(`Invalid user_id: ${t}`);
|
|
1655
|
-
return { connection:
|
|
1681
|
+
return { connection: n, id: i };
|
|
1682
|
+
}
|
|
1683
|
+
function Vt(t) {
|
|
1684
|
+
const {
|
|
1685
|
+
primary: n,
|
|
1686
|
+
secondaries: i,
|
|
1687
|
+
syncMethods: L = ["create", "update", "remove", "delete", "set"]
|
|
1688
|
+
} = t, D = {
|
|
1689
|
+
get(_, o) {
|
|
1690
|
+
if (typeof o == "symbol")
|
|
1691
|
+
return _[o];
|
|
1692
|
+
const p = _[o];
|
|
1693
|
+
return typeof p != "function" ? p : L.includes(o) ? async (...u) => {
|
|
1694
|
+
const w = await p.apply(_, u), m = [];
|
|
1695
|
+
for (const r of i) {
|
|
1696
|
+
const h = r.adapter[o];
|
|
1697
|
+
if (typeof h != "function")
|
|
1698
|
+
continue;
|
|
1699
|
+
const j = (async () => {
|
|
1700
|
+
try {
|
|
1701
|
+
await h.apply(r.adapter, u);
|
|
1702
|
+
} catch (b) {
|
|
1703
|
+
try {
|
|
1704
|
+
r.onError ? r.onError(b, o, u) : console.error(
|
|
1705
|
+
`Passthrough adapter: secondary write failed for ${o}:`,
|
|
1706
|
+
b
|
|
1707
|
+
);
|
|
1708
|
+
} catch (k) {
|
|
1709
|
+
console.error(
|
|
1710
|
+
`Passthrough adapter: onError handler threw for ${o}:`,
|
|
1711
|
+
k
|
|
1712
|
+
);
|
|
1713
|
+
}
|
|
1714
|
+
}
|
|
1715
|
+
})();
|
|
1716
|
+
r.blocking && m.push(j);
|
|
1717
|
+
}
|
|
1718
|
+
return m.length > 0 && await Promise.all(m), w;
|
|
1719
|
+
} : p.bind(_);
|
|
1720
|
+
}
|
|
1721
|
+
};
|
|
1722
|
+
return new Proxy(n, D);
|
|
1723
|
+
}
|
|
1724
|
+
function qt(t) {
|
|
1725
|
+
return t;
|
|
1656
1726
|
}
|
|
1657
1727
|
export {
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
Lt as
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1728
|
+
Re as Auth0Client,
|
|
1729
|
+
C as AuthorizationResponseMode,
|
|
1730
|
+
I as AuthorizationResponseType,
|
|
1731
|
+
O as CodeChallengeMethod,
|
|
1732
|
+
A as ComponentCategory,
|
|
1733
|
+
S as ComponentType,
|
|
1734
|
+
ke as GrantType,
|
|
1735
|
+
Le as LocationInfo,
|
|
1736
|
+
Te as LogTypes,
|
|
1737
|
+
Q as NodeType,
|
|
1738
|
+
Wt as activeUsersResponseSchema,
|
|
1739
|
+
pt as auth0FlowInsertSchema,
|
|
1740
|
+
ne as auth0FlowSchema,
|
|
1741
|
+
st as auth0QuerySchema,
|
|
1742
|
+
lt as auth0UserResponseSchema,
|
|
1743
|
+
ie as authParamsSchema,
|
|
1744
|
+
E as baseUserSchema,
|
|
1745
|
+
Ue as bordersSchema,
|
|
1746
|
+
dt as brandingSchema,
|
|
1747
|
+
W as buttonComponentSchema,
|
|
1748
|
+
K as clientGrantInsertSchema,
|
|
1749
|
+
_t as clientGrantListSchema,
|
|
1750
|
+
B as clientGrantSchema,
|
|
1751
|
+
H as clientInsertSchema,
|
|
1752
|
+
G as clientSchema,
|
|
1753
|
+
pe as codeInsertSchema,
|
|
1754
|
+
ut as codeSchema,
|
|
1755
|
+
_e as codeTypeSchema,
|
|
1756
|
+
Fe as colorsSchema,
|
|
1757
|
+
Y as componentSchema,
|
|
1758
|
+
se as connectionInsertSchema,
|
|
1759
|
+
ae as connectionOptionsSchema,
|
|
1760
|
+
re as connectionSchema,
|
|
1761
|
+
c as coordinatesSchema,
|
|
1762
|
+
Vt as createPassthroughAdapter,
|
|
1763
|
+
qt as createWriteOnlyAdapter,
|
|
1764
|
+
de as customDomainInsertSchema,
|
|
1765
|
+
ue as customDomainSchema,
|
|
1766
|
+
mt as customDomainWithTenantIdSchema,
|
|
1767
|
+
zt as dailyStatsSchema,
|
|
1768
|
+
wt as emailProviderSchema,
|
|
1769
|
+
oe as endingSchema,
|
|
1770
|
+
V as fieldComponentSchema,
|
|
1771
|
+
Z as flowNodeSchema,
|
|
1772
|
+
a as fontDetailsSchema,
|
|
1773
|
+
ve as fontsSchema,
|
|
1774
|
+
ht as formControlSchema,
|
|
1775
|
+
he as formInsertSchema,
|
|
1776
|
+
me as formNodeComponentDefinition,
|
|
1777
|
+
bt as formSchema,
|
|
1778
|
+
q as genericComponentSchema,
|
|
1779
|
+
$ as genericNodeSchema,
|
|
1780
|
+
ft as hookInsertSchema,
|
|
1781
|
+
Et as hookSchema,
|
|
1782
|
+
F as identitySchema,
|
|
1783
|
+
Ce as inviteInsertSchema,
|
|
1784
|
+
St as inviteSchema,
|
|
1785
|
+
Ie as inviteeSchema,
|
|
1786
|
+
Ae as inviterSchema,
|
|
1787
|
+
At as jwksKeySchema,
|
|
1788
|
+
Oe as jwksSchema,
|
|
1789
|
+
gt as legacyClientSchema,
|
|
1790
|
+
X as legalComponentSchema,
|
|
1791
|
+
De as logInsertSchema,
|
|
1792
|
+
Ot as logSchema,
|
|
1793
|
+
ye as loginSessionInsertSchema,
|
|
1794
|
+
Ct as loginSessionSchema,
|
|
1795
|
+
ee as nodeSchema,
|
|
1796
|
+
It as openIDConfigurationSchema,
|
|
1797
|
+
et as organizationBrandingSchema,
|
|
1798
|
+
tt as organizationEnabledConnectionSchema,
|
|
1799
|
+
nt as organizationInsertSchema,
|
|
1800
|
+
Gt as organizationSchema,
|
|
1801
|
+
ot as organizationTokenQuotaSchema,
|
|
1802
|
+
Pe as pageBackgroundSchema,
|
|
1803
|
+
Xt as parseUserId,
|
|
1804
|
+
we as passwordInsertSchema,
|
|
1805
|
+
yt as passwordSchema,
|
|
1806
|
+
U as profileDataSchema,
|
|
1807
|
+
Dt as promptSettingSchema,
|
|
1808
|
+
He as refreshTokenInsertSchema,
|
|
1809
|
+
jt as refreshTokenSchema,
|
|
1810
|
+
Be as resourceServerInsertSchema,
|
|
1811
|
+
Ft as resourceServerListSchema,
|
|
1812
|
+
Ke as resourceServerOptionsSchema,
|
|
1813
|
+
ze as resourceServerSchema,
|
|
1814
|
+
Ge as resourceServerScopeSchema,
|
|
1815
|
+
z as richTextComponentSchema,
|
|
1816
|
+
Ze as roleInsertSchema,
|
|
1817
|
+
Ht as roleListSchema,
|
|
1818
|
+
We as rolePermissionInsertSchema,
|
|
1819
|
+
vt as rolePermissionListSchema,
|
|
1820
|
+
Xe as rolePermissionSchema,
|
|
1821
|
+
$e as roleSchema,
|
|
1822
|
+
je as sessionInsertSchema,
|
|
1823
|
+
Tt as sessionSchema,
|
|
1824
|
+
Nt as signingKeySchema,
|
|
1825
|
+
Ut as smsProviderSchema,
|
|
1826
|
+
kt as smsSendParamsSchema,
|
|
1827
|
+
te as startSchema,
|
|
1828
|
+
J as stepNodeSchema,
|
|
1829
|
+
le as tenantInsertSchema,
|
|
1830
|
+
ce as tenantSchema,
|
|
1831
|
+
Bt as tenantSettingsSchema,
|
|
1832
|
+
Me as themeInsertSchema,
|
|
1833
|
+
Lt as themeSchema,
|
|
1834
|
+
Rt as tokenResponseSchema,
|
|
1835
|
+
rt as totalsSchema,
|
|
1836
|
+
v as userInsertSchema,
|
|
1837
|
+
it as userOrganizationInsertSchema,
|
|
1838
|
+
Kt as userOrganizationSchema,
|
|
1839
|
+
Ve as userPermissionInsertSchema,
|
|
1840
|
+
Pt as userPermissionListSchema,
|
|
1841
|
+
qe as userPermissionSchema,
|
|
1842
|
+
xt as userPermissionWithDetailsListSchema,
|
|
1843
|
+
Ye as userPermissionWithDetailsSchema,
|
|
1844
|
+
ct as userResponseSchema,
|
|
1845
|
+
Qe as userRoleInsertSchema,
|
|
1846
|
+
Mt as userRoleListSchema,
|
|
1847
|
+
Je as userRoleSchema,
|
|
1848
|
+
P as userSchema,
|
|
1849
|
+
ge as verificationMethodsSchema,
|
|
1850
|
+
xe as widgetSchema
|
|
1776
1851
|
};
|