@authhero/adapter-interfaces 0.94.0 → 0.95.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 +1651 -291
- package/dist/adapter-interfaces.mjs +247 -138
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ const xe = e.object({
|
|
|
6
6
|
}), n = e.object({
|
|
7
7
|
created_at: e.string(),
|
|
8
8
|
updated_at: e.string()
|
|
9
|
-
}),
|
|
9
|
+
}), E = e.object({
|
|
10
10
|
email: e.string().optional(),
|
|
11
11
|
email_verified: e.boolean().optional(),
|
|
12
12
|
name: e.string().optional(),
|
|
@@ -23,9 +23,9 @@ const xe = e.object({
|
|
|
23
23
|
access_token: e.string().optional(),
|
|
24
24
|
access_token_secret: e.string().optional(),
|
|
25
25
|
refresh_token: e.string().optional(),
|
|
26
|
-
profileData:
|
|
27
|
-
}),
|
|
28
|
-
email: e.string().optional().transform((
|
|
26
|
+
profileData: E.optional()
|
|
27
|
+
}), _ = e.object({
|
|
28
|
+
email: e.string().optional().transform((o) => o && o.toLowerCase()),
|
|
29
29
|
username: e.string().optional(),
|
|
30
30
|
phone_number: e.string().optional(),
|
|
31
31
|
given_name: e.string().optional(),
|
|
@@ -39,7 +39,7 @@ const xe = e.object({
|
|
|
39
39
|
user_id: e.string().optional(),
|
|
40
40
|
app_metadata: e.any().default({}).optional(),
|
|
41
41
|
user_metadata: e.any().default({}).optional()
|
|
42
|
-
}),
|
|
42
|
+
}), S = _.extend({
|
|
43
43
|
email_verified: e.boolean().default(!1),
|
|
44
44
|
verify_email: e.boolean().optional(),
|
|
45
45
|
last_ip: e.string().optional(),
|
|
@@ -49,24 +49,24 @@ const xe = e.object({
|
|
|
49
49
|
connection: e.string().default("email"),
|
|
50
50
|
is_social: e.boolean().optional()
|
|
51
51
|
}), A = e.object({
|
|
52
|
-
...
|
|
52
|
+
...S.shape,
|
|
53
53
|
...n.shape,
|
|
54
54
|
user_id: e.string(),
|
|
55
55
|
is_social: e.boolean(),
|
|
56
56
|
email: e.string().optional(),
|
|
57
57
|
login_count: e.number().default(0),
|
|
58
58
|
identities: e.array(f).optional()
|
|
59
|
-
}), Ge = A, Ke =
|
|
59
|
+
}), Ge = A, Ke = _.extend({
|
|
60
60
|
login_count: e.number(),
|
|
61
61
|
multifactor: e.array(e.string()).optional(),
|
|
62
62
|
last_ip: e.string().optional(),
|
|
63
63
|
last_login: e.string().optional(),
|
|
64
64
|
user_id: e.string()
|
|
65
65
|
}).catchall(e.any()), I = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
66
|
-
let C = (
|
|
67
|
-
let i = "", s = crypto.getRandomValues(new Uint8Array(
|
|
68
|
-
for (;
|
|
69
|
-
i += I[s[
|
|
66
|
+
let C = (o = 21) => {
|
|
67
|
+
let i = "", s = crypto.getRandomValues(new Uint8Array(o));
|
|
68
|
+
for (; o--; )
|
|
69
|
+
i += I[s[o] & 63];
|
|
70
70
|
return i;
|
|
71
71
|
};
|
|
72
72
|
const O = e.object({
|
|
@@ -276,11 +276,11 @@ const O = e.object({
|
|
|
276
276
|
x: e.number(),
|
|
277
277
|
y: e.number()
|
|
278
278
|
});
|
|
279
|
-
var
|
|
279
|
+
var c = /* @__PURE__ */ ((o) => (o.RICH_TEXT = "RICH_TEXT", o.NEXT_BUTTON = "NEXT_BUTTON", o.BACK_BUTTON = "BACK_BUTTON", o.SUBMIT_BUTTON = "SUBMIT_BUTTON", o.DIVIDER = "DIVIDER", o.TEXT = "TEXT", o.EMAIL = "EMAIL", o.PASSWORD = "PASSWORD", o.NUMBER = "NUMBER", o.PHONE = "PHONE", o.DATE = "DATE", o.CHECKBOX = "CHECKBOX", o.RADIO = "RADIO", o.SELECT = "SELECT", o.HIDDEN = "HIDDEN", o.LEGAL = "LEGAL", o))(c || {}), p = /* @__PURE__ */ ((o) => (o.BLOCK = "BLOCK", o.FIELD = "FIELD", o))(p || {});
|
|
280
280
|
const r = e.object({
|
|
281
281
|
id: e.string(),
|
|
282
282
|
category: e.nativeEnum(p),
|
|
283
|
-
type: e.nativeEnum(
|
|
283
|
+
type: e.nativeEnum(c)
|
|
284
284
|
}), R = r.extend({
|
|
285
285
|
category: e.literal(
|
|
286
286
|
"BLOCK"
|
|
@@ -382,19 +382,19 @@ const r = e.object({
|
|
|
382
382
|
label: e.string().optional(),
|
|
383
383
|
placeholder: e.string().optional()
|
|
384
384
|
}).passthrough()
|
|
385
|
-
}),
|
|
385
|
+
}), j = e.object({
|
|
386
386
|
id: e.string(),
|
|
387
387
|
category: e.string(),
|
|
388
388
|
type: e.string()
|
|
389
|
-
}).passthrough(),
|
|
389
|
+
}).passthrough(), k = e.union([
|
|
390
390
|
R,
|
|
391
391
|
L,
|
|
392
392
|
D,
|
|
393
393
|
w,
|
|
394
|
-
|
|
394
|
+
j
|
|
395
395
|
]);
|
|
396
|
-
var
|
|
397
|
-
const
|
|
396
|
+
var U = /* @__PURE__ */ ((o) => (o.STEP = "STEP", o.FLOW = "FLOW", o.CONDITION = "CONDITION", o.ACTION = "ACTION", o))(U || {});
|
|
397
|
+
const F = e.object({
|
|
398
398
|
id: e.string(),
|
|
399
399
|
type: e.literal(
|
|
400
400
|
"STEP"
|
|
@@ -403,7 +403,7 @@ const k = e.object({
|
|
|
403
403
|
coordinates: a,
|
|
404
404
|
alias: e.string().optional(),
|
|
405
405
|
config: e.object({
|
|
406
|
-
components: e.array(
|
|
406
|
+
components: e.array(k),
|
|
407
407
|
next_node: e.string()
|
|
408
408
|
}).passthrough()
|
|
409
409
|
}), v = e.object({
|
|
@@ -423,7 +423,7 @@ const k = e.object({
|
|
|
423
423
|
type: e.string(),
|
|
424
424
|
coordinates: a
|
|
425
425
|
}).passthrough(), H = e.union([
|
|
426
|
-
|
|
426
|
+
F,
|
|
427
427
|
v,
|
|
428
428
|
P
|
|
429
429
|
]), M = e.object({
|
|
@@ -447,12 +447,12 @@ const k = e.object({
|
|
|
447
447
|
sdkSrc: e.string().optional(),
|
|
448
448
|
sdk_src: e.string().optional()
|
|
449
449
|
}).passthrough()
|
|
450
|
-
}).passthrough(),
|
|
450
|
+
}).passthrough(), ze = G.omit({
|
|
451
451
|
id: !0,
|
|
452
452
|
created_at: !0,
|
|
453
453
|
updated_at: !0
|
|
454
454
|
});
|
|
455
|
-
var d = /* @__PURE__ */ ((
|
|
455
|
+
var d = /* @__PURE__ */ ((o) => (o.TOKEN = "token", o.TOKEN_ID_TOKEN = "token id_token", o.CODE = "code", o))(d || {}), g = /* @__PURE__ */ ((o) => (o.QUERY = "query", o.FRAGMENT = "fragment", o.FORM_POST = "form_post", o.WEB_MESSAGE = "web_message", o.SAML_POST = "saml_post", o))(g || {}), u = /* @__PURE__ */ ((o) => (o.S256 = "S256", o.Plain = "plain", o))(u || {});
|
|
456
456
|
const K = e.object({
|
|
457
457
|
client_id: e.string(),
|
|
458
458
|
act_as: e.string().optional(),
|
|
@@ -471,7 +471,7 @@ const K = e.object({
|
|
|
471
471
|
ui_locales: e.string().optional(),
|
|
472
472
|
// The following fields are not available in Auth0
|
|
473
473
|
vendor_id: e.string().optional()
|
|
474
|
-
}),
|
|
474
|
+
}), We = e.object({
|
|
475
475
|
colors: e.object({
|
|
476
476
|
primary: e.string(),
|
|
477
477
|
page_background: e.object({
|
|
@@ -506,7 +506,7 @@ const K = e.object({
|
|
|
506
506
|
from: e.string().optional(),
|
|
507
507
|
twilio_sid: e.string().optional(),
|
|
508
508
|
twilio_token: e.string().optional()
|
|
509
|
-
}),
|
|
509
|
+
}), z = e.object({
|
|
510
510
|
id: e.string().optional(),
|
|
511
511
|
name: e.string(),
|
|
512
512
|
strategy: e.string(),
|
|
@@ -514,31 +514,140 @@ const K = e.object({
|
|
|
514
514
|
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
515
515
|
response_type: e.custom().optional(),
|
|
516
516
|
response_mode: e.custom().optional()
|
|
517
|
-
}),
|
|
517
|
+
}), W = e.object({
|
|
518
518
|
id: e.string(),
|
|
519
|
-
created_at: e.string().transform((
|
|
520
|
-
updated_at: e.string().transform((
|
|
521
|
-
}).extend(
|
|
522
|
-
|
|
519
|
+
created_at: e.string().transform((o) => o === null ? "" : o),
|
|
520
|
+
updated_at: e.string().transform((o) => o === null ? "" : o)
|
|
521
|
+
}).extend(z.shape), X = e.object({
|
|
522
|
+
id: e.string().optional(),
|
|
523
|
+
// Basic settings
|
|
523
524
|
audience: e.string(),
|
|
525
|
+
friendly_name: e.string(),
|
|
526
|
+
// Required - replaces the old 'name' field
|
|
527
|
+
picture_url: e.string().optional(),
|
|
528
|
+
support_email: e.string().optional(),
|
|
529
|
+
support_url: e.string().optional(),
|
|
524
530
|
sender_email: e.string().email(),
|
|
525
531
|
sender_name: e.string(),
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
+
// Tenant Settings fields (merged from TenantSettings)
|
|
533
|
+
// Session settings
|
|
534
|
+
session_lifetime: e.number().optional(),
|
|
535
|
+
idle_session_lifetime: e.number().optional(),
|
|
536
|
+
ephemeral_session_lifetime: e.number().optional(),
|
|
537
|
+
idle_ephemeral_session_lifetime: e.number().optional(),
|
|
538
|
+
session_cookie: e.object({
|
|
539
|
+
mode: e.enum(["persistent", "non-persistent"]).optional()
|
|
540
|
+
}).optional(),
|
|
541
|
+
// Logout settings
|
|
542
|
+
allowed_logout_urls: e.array(e.string()).optional(),
|
|
543
|
+
// Universal Login settings
|
|
544
|
+
default_redirection_uri: e.string().optional(),
|
|
545
|
+
// Advanced settings
|
|
546
|
+
enabled_locales: e.array(e.string()).optional(),
|
|
547
|
+
default_directory: e.string().optional(),
|
|
548
|
+
error_page: e.object({
|
|
549
|
+
html: e.string().optional(),
|
|
550
|
+
show_log_link: e.boolean().optional(),
|
|
551
|
+
url: e.string().optional()
|
|
552
|
+
}).optional(),
|
|
553
|
+
// Flags
|
|
554
|
+
flags: e.object({
|
|
555
|
+
allow_changing_enable_sso: e.boolean().optional(),
|
|
556
|
+
allow_legacy_delegation_grant_types: e.boolean().optional(),
|
|
557
|
+
allow_legacy_ro_grant_types: e.boolean().optional(),
|
|
558
|
+
allow_legacy_tokeninfo_endpoint: e.boolean().optional(),
|
|
559
|
+
change_pwd_flow_v1: e.boolean().optional(),
|
|
560
|
+
custom_domains_provisioning: e.boolean().optional(),
|
|
561
|
+
dashboard_insights_view: e.boolean().optional(),
|
|
562
|
+
dashboard_log_streams_next: e.boolean().optional(),
|
|
563
|
+
disable_clickjack_protection_headers: e.boolean().optional(),
|
|
564
|
+
disable_fields_map_fix: e.boolean().optional(),
|
|
565
|
+
disable_impersonation: e.boolean().optional(),
|
|
566
|
+
disable_management_api_sms_obfuscation: e.boolean().optional(),
|
|
567
|
+
enable_adfs_waad_email_verification: e.boolean().optional(),
|
|
568
|
+
enable_apis_section: e.boolean().optional(),
|
|
569
|
+
enable_client_connections: e.boolean().optional(),
|
|
570
|
+
enable_custom_domain_in_emails: e.boolean().optional(),
|
|
571
|
+
enable_dynamic_client_registration: e.boolean().optional(),
|
|
572
|
+
enable_idtoken_api2: e.boolean().optional(),
|
|
573
|
+
enable_legacy_logs_search_v2: e.boolean().optional(),
|
|
574
|
+
enable_legacy_profile: e.boolean().optional(),
|
|
575
|
+
enable_pipeline2: e.boolean().optional(),
|
|
576
|
+
enable_public_signup_user_exists_error: e.boolean().optional(),
|
|
577
|
+
enable_sso: e.boolean().optional(),
|
|
578
|
+
enforce_client_authentication_on_passwordless_start: e.boolean().optional(),
|
|
579
|
+
genai_trial: e.boolean().optional(),
|
|
580
|
+
improved_signup_bot_detection_in_classic: e.boolean().optional(),
|
|
581
|
+
mfa_show_factor_list_on_enrollment: e.boolean().optional(),
|
|
582
|
+
no_disclose_enterprise_connections: e.boolean().optional(),
|
|
583
|
+
remove_alg_from_jwks: e.boolean().optional(),
|
|
584
|
+
revoke_refresh_token_grant: e.boolean().optional(),
|
|
585
|
+
trust_azure_adfs_email_verified_connection_property: e.boolean().optional(),
|
|
586
|
+
use_scope_descriptions_for_consent: e.boolean().optional()
|
|
587
|
+
}).optional(),
|
|
588
|
+
// Sandbox settings
|
|
589
|
+
sandbox_version: e.string().optional(),
|
|
590
|
+
legacy_sandbox_version: e.string().optional(),
|
|
591
|
+
sandbox_versions_available: e.array(e.string()).optional(),
|
|
592
|
+
// Change password settings
|
|
593
|
+
change_password: e.object({
|
|
594
|
+
enabled: e.boolean().optional(),
|
|
595
|
+
html: e.string().optional()
|
|
596
|
+
}).optional(),
|
|
597
|
+
// Guardian MFA settings
|
|
598
|
+
guardian_mfa_page: e.object({
|
|
599
|
+
enabled: e.boolean().optional(),
|
|
600
|
+
html: e.string().optional()
|
|
601
|
+
}).optional(),
|
|
602
|
+
// Device flow settings
|
|
603
|
+
device_flow: e.object({
|
|
604
|
+
charset: e.enum(["base20", "digits"]).optional(),
|
|
605
|
+
mask: e.string().max(20).optional()
|
|
606
|
+
}).optional(),
|
|
607
|
+
// Default token quota
|
|
608
|
+
default_token_quota: e.object({
|
|
609
|
+
clients: e.object({
|
|
610
|
+
client_credentials: e.record(e.any()).optional()
|
|
611
|
+
}).optional(),
|
|
612
|
+
organizations: e.object({
|
|
613
|
+
client_credentials: e.record(e.any()).optional()
|
|
614
|
+
}).optional()
|
|
615
|
+
}).optional(),
|
|
616
|
+
// Default audience
|
|
617
|
+
default_audience: e.string().optional(),
|
|
618
|
+
// Default organization
|
|
619
|
+
default_organization: e.string().optional(),
|
|
620
|
+
// Session management
|
|
621
|
+
sessions: e.object({
|
|
622
|
+
oidc_logout_prompt_enabled: e.boolean().optional()
|
|
623
|
+
}).optional(),
|
|
624
|
+
// OIDC logout settings
|
|
625
|
+
oidc_logout: e.object({
|
|
626
|
+
rp_logout_end_session_endpoint_discovery: e.boolean().optional()
|
|
627
|
+
}).optional(),
|
|
628
|
+
// Organization settings
|
|
629
|
+
allow_organization_name_in_authentication_api: e.boolean().optional(),
|
|
630
|
+
// MFA settings
|
|
631
|
+
customize_mfa_in_postlogin_action: e.boolean().optional(),
|
|
632
|
+
// ACR values
|
|
633
|
+
acr_values_supported: e.array(e.string()).optional(),
|
|
634
|
+
// mTLS settings
|
|
635
|
+
mtls: e.object({
|
|
636
|
+
enable_endpoint_aliases: e.boolean().optional()
|
|
637
|
+
}).optional(),
|
|
638
|
+
// Authorization settings
|
|
639
|
+
pushed_authorization_requests_supported: e.boolean().optional(),
|
|
640
|
+
authorization_response_iss_parameter_supported: e.boolean().optional()
|
|
532
641
|
}), V = e.object({
|
|
533
|
-
created_at: e.string().transform((
|
|
534
|
-
updated_at: e.string().transform((
|
|
642
|
+
created_at: e.string().nullable().transform((o) => o ?? ""),
|
|
643
|
+
updated_at: e.string().nullable().transform((o) => o ?? ""),
|
|
535
644
|
...X.shape,
|
|
536
645
|
id: e.string()
|
|
537
646
|
});
|
|
538
647
|
e.object({
|
|
539
648
|
...T.shape,
|
|
540
649
|
tenant: V,
|
|
541
|
-
connections: e.array(
|
|
650
|
+
connections: e.array(W)
|
|
542
651
|
});
|
|
543
652
|
const q = e.enum([
|
|
544
653
|
"password_reset",
|
|
@@ -756,17 +865,17 @@ const q = e.enum([
|
|
|
756
865
|
synchronous: e.boolean().default(!1),
|
|
757
866
|
priority: e.number().optional(),
|
|
758
867
|
hook_id: e.string().optional()
|
|
759
|
-
},
|
|
868
|
+
}, oe = e.object({
|
|
760
869
|
...l,
|
|
761
870
|
trigger_id: m,
|
|
762
871
|
url: e.string()
|
|
763
|
-
}),
|
|
872
|
+
}), te = e.object({
|
|
764
873
|
...l,
|
|
765
874
|
trigger_id: h,
|
|
766
875
|
form_id: e.string()
|
|
767
876
|
}), Qe = e.union([
|
|
768
|
-
|
|
769
|
-
|
|
877
|
+
oe,
|
|
878
|
+
te
|
|
770
879
|
]), ne = e.object({
|
|
771
880
|
...l,
|
|
772
881
|
trigger_id: m,
|
|
@@ -834,7 +943,7 @@ const q = e.enum([
|
|
|
834
943
|
login_completed: e.boolean().optional().default(!1)
|
|
835
944
|
}).openapi({
|
|
836
945
|
description: "This represents a login sesion"
|
|
837
|
-
}),
|
|
946
|
+
}), eo = e.object({
|
|
838
947
|
...se.shape,
|
|
839
948
|
id: e.string().openapi({
|
|
840
949
|
description: "This is is used as the state in the universal login"
|
|
@@ -1009,15 +1118,15 @@ const q = e.enum([
|
|
|
1009
1118
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
1010
1119
|
WARNING_USER_MANAGEMENT: "wum"
|
|
1011
1120
|
}, le = e.string().refine(
|
|
1012
|
-
(
|
|
1121
|
+
(o) => Object.values(re).includes(o),
|
|
1013
1122
|
{ message: "Invalid log type" }
|
|
1014
|
-
),
|
|
1123
|
+
), _e = e.object({
|
|
1015
1124
|
name: e.string(),
|
|
1016
1125
|
version: e.string(),
|
|
1017
1126
|
env: e.object({
|
|
1018
1127
|
node: e.string().optional()
|
|
1019
1128
|
}).optional()
|
|
1020
|
-
}),
|
|
1129
|
+
}), oo = e.object({
|
|
1021
1130
|
type: le,
|
|
1022
1131
|
date: e.string(),
|
|
1023
1132
|
description: e.string().optional(),
|
|
@@ -1039,16 +1148,16 @@ const q = e.enum([
|
|
|
1039
1148
|
strategy: e.string().optional(),
|
|
1040
1149
|
strategy_type: e.string().optional(),
|
|
1041
1150
|
hostname: e.string().optional(),
|
|
1042
|
-
auth0_client:
|
|
1043
|
-
}),
|
|
1151
|
+
auth0_client: _e.optional()
|
|
1152
|
+
}), ce = e.object({
|
|
1044
1153
|
user_id: e.string(),
|
|
1045
1154
|
password: e.string(),
|
|
1046
1155
|
algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id")
|
|
1047
|
-
}),
|
|
1048
|
-
...
|
|
1156
|
+
}), to = e.object({
|
|
1157
|
+
...ce.shape,
|
|
1049
1158
|
created_at: e.string(),
|
|
1050
1159
|
updated_at: e.string()
|
|
1051
|
-
}),
|
|
1160
|
+
}), b = e.object({
|
|
1052
1161
|
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
1053
1162
|
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
1054
1163
|
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
@@ -1063,17 +1172,17 @@ const q = e.enum([
|
|
|
1063
1172
|
expires_at: e.string().optional(),
|
|
1064
1173
|
login_session_id: e.string(),
|
|
1065
1174
|
idle_expires_at: e.string().optional(),
|
|
1066
|
-
device:
|
|
1175
|
+
device: b.describe(
|
|
1067
1176
|
"Metadata related to the device used in the session"
|
|
1068
1177
|
),
|
|
1069
1178
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
1070
|
-
}),
|
|
1179
|
+
}), no = e.object({
|
|
1071
1180
|
created_at: e.string(),
|
|
1072
1181
|
updated_at: e.string(),
|
|
1073
1182
|
authenticated_at: e.string(),
|
|
1074
1183
|
last_interaction_at: e.string(),
|
|
1075
1184
|
...pe.shape
|
|
1076
|
-
}),
|
|
1185
|
+
}), io = e.object({
|
|
1077
1186
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
1078
1187
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
1079
1188
|
fingerprint: e.string().openapi({ description: "The cert fingerprint" }),
|
|
@@ -1099,8 +1208,8 @@ const q = e.enum([
|
|
|
1099
1208
|
description: "The type of the signing key"
|
|
1100
1209
|
})
|
|
1101
1210
|
});
|
|
1102
|
-
var de = /* @__PURE__ */ ((
|
|
1103
|
-
const
|
|
1211
|
+
var de = /* @__PURE__ */ ((o) => (o.RefreshToken = "refresh_token", o.AuthorizationCode = "authorization_code", o.ClientCredential = "client_credentials", o.Passwordless = "passwordless", o.Password = "password", o.OTP = "http://auth0.com/oauth/grant-type/passwordless/otp", o))(de || {});
|
|
1212
|
+
const ao = e.object({
|
|
1104
1213
|
access_token: e.string(),
|
|
1105
1214
|
id_token: e.string().optional(),
|
|
1106
1215
|
scope: e.string().optional(),
|
|
@@ -1143,44 +1252,44 @@ const ge = e.object({
|
|
|
1143
1252
|
success: e.string(),
|
|
1144
1253
|
widget_background: e.string(),
|
|
1145
1254
|
widget_border: e.string()
|
|
1146
|
-
}),
|
|
1255
|
+
}), t = e.object({
|
|
1147
1256
|
bold: e.boolean(),
|
|
1148
1257
|
size: e.number()
|
|
1149
1258
|
}), me = e.object({
|
|
1150
|
-
body_text:
|
|
1151
|
-
buttons_text:
|
|
1259
|
+
body_text: t,
|
|
1260
|
+
buttons_text: t,
|
|
1152
1261
|
font_url: e.string(),
|
|
1153
|
-
input_labels:
|
|
1154
|
-
links:
|
|
1262
|
+
input_labels: t,
|
|
1263
|
+
links: t,
|
|
1155
1264
|
links_style: e.enum(["normal", "underlined"]),
|
|
1156
1265
|
reference_text_size: e.number(),
|
|
1157
|
-
subtitle:
|
|
1158
|
-
title:
|
|
1266
|
+
subtitle: t,
|
|
1267
|
+
title: t
|
|
1159
1268
|
}), he = e.object({
|
|
1160
1269
|
background_color: e.string(),
|
|
1161
1270
|
background_image_url: e.string(),
|
|
1162
1271
|
page_layout: e.enum(["center", "left", "right"])
|
|
1163
|
-
}),
|
|
1272
|
+
}), be = e.object({
|
|
1164
1273
|
header_text_alignment: e.enum(["center", "left", "right"]),
|
|
1165
1274
|
logo_height: e.number(),
|
|
1166
1275
|
logo_position: e.enum(["center", "left", "none", "right"]),
|
|
1167
1276
|
logo_url: e.string(),
|
|
1168
1277
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
1169
|
-
}),
|
|
1278
|
+
}), Ee = e.object({
|
|
1170
1279
|
borders: ge,
|
|
1171
1280
|
colors: ue,
|
|
1172
1281
|
displayName: e.string(),
|
|
1173
1282
|
fonts: me,
|
|
1174
1283
|
page_background: he,
|
|
1175
|
-
widget:
|
|
1176
|
-
}),
|
|
1284
|
+
widget: be
|
|
1285
|
+
}), so = Ee.extend({
|
|
1177
1286
|
themeId: e.string()
|
|
1178
|
-
}),
|
|
1287
|
+
}), ro = e.object({
|
|
1179
1288
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
1180
1289
|
identifier_first: e.boolean().default(!0),
|
|
1181
1290
|
password_first: e.boolean().default(!1),
|
|
1182
1291
|
webauthn_platform_first_factor: e.boolean()
|
|
1183
|
-
}),
|
|
1292
|
+
}), lo = e.object({
|
|
1184
1293
|
name: e.string(),
|
|
1185
1294
|
enabled: e.boolean().optional().default(!0),
|
|
1186
1295
|
default_from_address: e.string().optional(),
|
|
@@ -1223,7 +1332,7 @@ const ge = e.object({
|
|
|
1223
1332
|
idle_expires_at: e.string().optional(),
|
|
1224
1333
|
// When the token was last used.
|
|
1225
1334
|
last_exchanged_at: e.string().optional(),
|
|
1226
|
-
device:
|
|
1335
|
+
device: b,
|
|
1227
1336
|
resource_servers: e.array(
|
|
1228
1337
|
e.object({
|
|
1229
1338
|
audience: e.string(),
|
|
@@ -1231,18 +1340,18 @@ const ge = e.object({
|
|
|
1231
1340
|
})
|
|
1232
1341
|
),
|
|
1233
1342
|
rotating: e.boolean()
|
|
1234
|
-
}),
|
|
1343
|
+
}), _o = e.object({
|
|
1235
1344
|
// When the refresh token record was created.
|
|
1236
1345
|
created_at: e.string(),
|
|
1237
1346
|
// Spread in the rest of the refresh token properties.
|
|
1238
1347
|
...fe.shape
|
|
1239
|
-
}),
|
|
1348
|
+
}), co = e.object({
|
|
1240
1349
|
to: e.string(),
|
|
1241
1350
|
message: e.string()
|
|
1242
|
-
}),
|
|
1351
|
+
}), po = e.object({
|
|
1243
1352
|
name: e.string(),
|
|
1244
1353
|
options: e.object({})
|
|
1245
|
-
}),
|
|
1354
|
+
}), Se = e.object({
|
|
1246
1355
|
value: e.string(),
|
|
1247
1356
|
description: e.string().optional()
|
|
1248
1357
|
}), Ae = e.object({
|
|
@@ -1258,7 +1367,7 @@ const ge = e.object({
|
|
|
1258
1367
|
}), Ie = e.object({
|
|
1259
1368
|
name: e.string(),
|
|
1260
1369
|
identifier: e.string(),
|
|
1261
|
-
scopes: e.array(
|
|
1370
|
+
scopes: e.array(Se).optional(),
|
|
1262
1371
|
signing_alg: e.string().optional(),
|
|
1263
1372
|
signing_secret: e.string().optional(),
|
|
1264
1373
|
token_lifetime: e.number().optional(),
|
|
@@ -1272,7 +1381,7 @@ const ge = e.object({
|
|
|
1272
1381
|
...Ie.shape,
|
|
1273
1382
|
created_at: e.string().optional(),
|
|
1274
1383
|
updated_at: e.string().optional()
|
|
1275
|
-
}),
|
|
1384
|
+
}), go = e.array(Ce), Oe = e.object({
|
|
1276
1385
|
role_id: e.string(),
|
|
1277
1386
|
resource_server_identifier: e.string(),
|
|
1278
1387
|
permission_name: e.string()
|
|
@@ -1280,14 +1389,14 @@ const ge = e.object({
|
|
|
1280
1389
|
...Oe.shape,
|
|
1281
1390
|
tenant_id: e.string(),
|
|
1282
1391
|
created_at: e.string().optional()
|
|
1283
|
-
}),
|
|
1392
|
+
}), uo = e.array(Te), Ne = e.object({
|
|
1284
1393
|
role_id: e.string(),
|
|
1285
1394
|
resource_server_identifier: e.string(),
|
|
1286
1395
|
resource_server_name: e.string(),
|
|
1287
1396
|
permission_name: e.string(),
|
|
1288
1397
|
description: e.string().nullable().optional(),
|
|
1289
1398
|
created_at: e.string().optional()
|
|
1290
|
-
}),
|
|
1399
|
+
}), mo = e.array(
|
|
1291
1400
|
Ne
|
|
1292
1401
|
), ye = e.object({
|
|
1293
1402
|
user_id: e.string(),
|
|
@@ -1298,7 +1407,7 @@ const ge = e.object({
|
|
|
1298
1407
|
...ye.shape,
|
|
1299
1408
|
tenant_id: e.string(),
|
|
1300
1409
|
created_at: e.string().optional()
|
|
1301
|
-
}),
|
|
1410
|
+
}), ho = e.array(Re), Le = e.object({
|
|
1302
1411
|
user_id: e.string(),
|
|
1303
1412
|
resource_server_identifier: e.string(),
|
|
1304
1413
|
resource_server_name: e.string(),
|
|
@@ -1306,7 +1415,7 @@ const ge = e.object({
|
|
|
1306
1415
|
description: e.string().nullable().optional(),
|
|
1307
1416
|
created_at: e.string().optional(),
|
|
1308
1417
|
organization_id: e.string().optional()
|
|
1309
|
-
}),
|
|
1418
|
+
}), bo = e.array(
|
|
1310
1419
|
Le
|
|
1311
1420
|
), De = e.object({
|
|
1312
1421
|
user_id: e.string(),
|
|
@@ -1316,21 +1425,21 @@ const ge = e.object({
|
|
|
1316
1425
|
...De.shape,
|
|
1317
1426
|
tenant_id: e.string(),
|
|
1318
1427
|
created_at: e.string().optional()
|
|
1319
|
-
}),
|
|
1428
|
+
}), Eo = e.array(we), je = e.object({
|
|
1320
1429
|
name: e.string().min(1).max(50).openapi({
|
|
1321
1430
|
description: "The name of the role. Cannot include '<' or '>'"
|
|
1322
1431
|
}),
|
|
1323
1432
|
description: e.string().max(255).optional().openapi({
|
|
1324
1433
|
description: "The description of the role"
|
|
1325
1434
|
})
|
|
1326
|
-
}),
|
|
1435
|
+
}), ke = e.object({
|
|
1327
1436
|
id: e.string().openapi({
|
|
1328
1437
|
description: "The unique identifier of the role"
|
|
1329
1438
|
}),
|
|
1330
|
-
...
|
|
1439
|
+
...je.shape,
|
|
1331
1440
|
created_at: e.string().optional(),
|
|
1332
1441
|
updated_at: e.string().optional()
|
|
1333
|
-
}),
|
|
1442
|
+
}), fo = e.array(ke), Ue = e.object({
|
|
1334
1443
|
logo_url: e.string().optional().openapi({
|
|
1335
1444
|
description: "URL of the organization's logo"
|
|
1336
1445
|
}),
|
|
@@ -1342,7 +1451,7 @@ const ge = e.object({
|
|
|
1342
1451
|
description: "Page background color in hex format (e.g., #FFFFFF)"
|
|
1343
1452
|
})
|
|
1344
1453
|
}).optional()
|
|
1345
|
-
}).optional(),
|
|
1454
|
+
}).optional(), Fe = e.object({
|
|
1346
1455
|
connection_id: e.string().openapi({
|
|
1347
1456
|
description: "ID of the connection"
|
|
1348
1457
|
}),
|
|
@@ -1375,15 +1484,15 @@ const ge = e.object({
|
|
|
1375
1484
|
display_name: e.string().optional().openapi({
|
|
1376
1485
|
description: "The display name of the organization"
|
|
1377
1486
|
}),
|
|
1378
|
-
branding:
|
|
1487
|
+
branding: Ue,
|
|
1379
1488
|
metadata: e.record(e.any()).default({}).optional().openapi({
|
|
1380
1489
|
description: "Custom metadata for the organization"
|
|
1381
1490
|
}),
|
|
1382
|
-
enabled_connections: e.array(
|
|
1491
|
+
enabled_connections: e.array(Fe).default([]).optional().openapi({
|
|
1383
1492
|
description: "List of enabled connections for the organization"
|
|
1384
1493
|
}),
|
|
1385
1494
|
token_quota: ve
|
|
1386
|
-
}),
|
|
1495
|
+
}), So = e.object({
|
|
1387
1496
|
...Pe.shape,
|
|
1388
1497
|
...n.shape,
|
|
1389
1498
|
id: e.string()
|
|
@@ -1394,11 +1503,11 @@ const ge = e.object({
|
|
|
1394
1503
|
organization_id: e.string().openapi({
|
|
1395
1504
|
description: "ID of the organization"
|
|
1396
1505
|
})
|
|
1397
|
-
}),
|
|
1506
|
+
}), Ao = e.object({
|
|
1398
1507
|
...He.shape,
|
|
1399
1508
|
...n.shape,
|
|
1400
1509
|
id: e.string()
|
|
1401
|
-
}),
|
|
1510
|
+
}), Io = e.object({
|
|
1402
1511
|
// Session settings
|
|
1403
1512
|
idle_session_lifetime: e.number().optional(),
|
|
1404
1513
|
session_lifetime: e.number().optional(),
|
|
@@ -1468,29 +1577,29 @@ const ge = e.object({
|
|
|
1468
1577
|
oidc_logout_prompt_enabled: e.boolean().optional()
|
|
1469
1578
|
}).optional()
|
|
1470
1579
|
});
|
|
1471
|
-
function
|
|
1472
|
-
const [i, s] =
|
|
1580
|
+
function Co(o) {
|
|
1581
|
+
const [i, s] = o.split("|");
|
|
1473
1582
|
if (!i || !s)
|
|
1474
|
-
throw new Error(`Invalid user_id: ${
|
|
1583
|
+
throw new Error(`Invalid user_id: ${o}`);
|
|
1475
1584
|
return { connection: i, id: s };
|
|
1476
1585
|
}
|
|
1477
1586
|
export {
|
|
1478
|
-
|
|
1587
|
+
_e as Auth0Client,
|
|
1479
1588
|
g as AuthorizationResponseMode,
|
|
1480
1589
|
d as AuthorizationResponseType,
|
|
1481
1590
|
u as CodeChallengeMethod,
|
|
1482
1591
|
p as ComponentCategory,
|
|
1483
|
-
|
|
1592
|
+
c as ComponentType,
|
|
1484
1593
|
de as GrantType,
|
|
1485
1594
|
re as LogTypes,
|
|
1486
|
-
|
|
1487
|
-
|
|
1595
|
+
U as NodeType,
|
|
1596
|
+
ze as auth0FlowInsertSchema,
|
|
1488
1597
|
G as auth0FlowSchema,
|
|
1489
1598
|
Ge as auth0UserResponseSchema,
|
|
1490
1599
|
K as authParamsSchema,
|
|
1491
|
-
|
|
1600
|
+
_ as baseUserSchema,
|
|
1492
1601
|
ge as bordersSchema,
|
|
1493
|
-
|
|
1602
|
+
We as brandingSchema,
|
|
1494
1603
|
L as buttonComponentSchema,
|
|
1495
1604
|
N as clientGrantInsertSchema,
|
|
1496
1605
|
Be as clientGrantListSchema,
|
|
@@ -1501,25 +1610,25 @@ export {
|
|
|
1501
1610
|
Xe as codeSchema,
|
|
1502
1611
|
q as codeTypeSchema,
|
|
1503
1612
|
ue as colorsSchema,
|
|
1504
|
-
|
|
1505
|
-
|
|
1613
|
+
k as componentSchema,
|
|
1614
|
+
z as connectionInsertSchema,
|
|
1506
1615
|
B as connectionOptionsSchema,
|
|
1507
|
-
|
|
1616
|
+
W as connectionSchema,
|
|
1508
1617
|
a as coordinatesSchema,
|
|
1509
1618
|
Q as customDomainInsertSchema,
|
|
1510
1619
|
Z as customDomainSchema,
|
|
1511
1620
|
Ve as customDomainWithTenantIdSchema,
|
|
1512
|
-
|
|
1621
|
+
lo as emailProviderSchema,
|
|
1513
1622
|
x as endingSchema,
|
|
1514
1623
|
w as fieldComponentSchema,
|
|
1515
1624
|
v as flowNodeSchema,
|
|
1516
|
-
|
|
1625
|
+
t as fontDetailsSchema,
|
|
1517
1626
|
me as fontsSchema,
|
|
1518
1627
|
qe as formControlSchema,
|
|
1519
1628
|
ee as formInsertSchema,
|
|
1520
1629
|
$ as formNodeComponentDefinition,
|
|
1521
1630
|
Ye as formSchema,
|
|
1522
|
-
|
|
1631
|
+
j as genericComponentSchema,
|
|
1523
1632
|
P as genericNodeSchema,
|
|
1524
1633
|
Qe as hookInsertSchema,
|
|
1525
1634
|
Je as hookSchema,
|
|
@@ -1527,65 +1636,65 @@ export {
|
|
|
1527
1636
|
Ze as jwksKeySchema,
|
|
1528
1637
|
ae as jwksSchema,
|
|
1529
1638
|
D as legalComponentSchema,
|
|
1530
|
-
|
|
1639
|
+
oo as logSchema,
|
|
1531
1640
|
se as loginSessionInsertSchema,
|
|
1532
|
-
|
|
1641
|
+
eo as loginSessionSchema,
|
|
1533
1642
|
H as nodeSchema,
|
|
1534
1643
|
$e as openIDConfigurationSchema,
|
|
1535
|
-
|
|
1536
|
-
|
|
1644
|
+
Ue as organizationBrandingSchema,
|
|
1645
|
+
Fe as organizationEnabledConnectionSchema,
|
|
1537
1646
|
Pe as organizationInsertSchema,
|
|
1538
|
-
|
|
1647
|
+
So as organizationSchema,
|
|
1539
1648
|
ve as organizationTokenQuotaSchema,
|
|
1540
1649
|
he as pageBackgroundSchema,
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1650
|
+
Co as parseUserId,
|
|
1651
|
+
ce as passwordInsertSchema,
|
|
1652
|
+
to as passwordSchema,
|
|
1653
|
+
E as profileDataSchema,
|
|
1654
|
+
ro as promptSettingSchema,
|
|
1546
1655
|
fe as refreshTokenInsertSchema,
|
|
1547
|
-
|
|
1656
|
+
_o as refreshTokenSchema,
|
|
1548
1657
|
Ie as resourceServerInsertSchema,
|
|
1549
|
-
|
|
1658
|
+
go as resourceServerListSchema,
|
|
1550
1659
|
Ae as resourceServerOptionsSchema,
|
|
1551
1660
|
Ce as resourceServerSchema,
|
|
1552
|
-
|
|
1661
|
+
Se as resourceServerScopeSchema,
|
|
1553
1662
|
R as richTextComponentSchema,
|
|
1554
|
-
|
|
1555
|
-
|
|
1663
|
+
je as roleInsertSchema,
|
|
1664
|
+
fo as roleListSchema,
|
|
1556
1665
|
Oe as rolePermissionInsertSchema,
|
|
1557
|
-
|
|
1666
|
+
uo as rolePermissionListSchema,
|
|
1558
1667
|
Te as rolePermissionSchema,
|
|
1559
|
-
|
|
1668
|
+
mo as rolePermissionWithDetailsListSchema,
|
|
1560
1669
|
Ne as rolePermissionWithDetailsSchema,
|
|
1561
|
-
|
|
1670
|
+
ke as roleSchema,
|
|
1562
1671
|
pe as sessionInsertSchema,
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1672
|
+
no as sessionSchema,
|
|
1673
|
+
io as signingKeySchema,
|
|
1674
|
+
po as smsProviderSchema,
|
|
1675
|
+
co as smsSendParamsSchema,
|
|
1567
1676
|
M as startSchema,
|
|
1568
|
-
|
|
1677
|
+
F as stepNodeSchema,
|
|
1569
1678
|
X as tenantInsertSchema,
|
|
1570
1679
|
V as tenantSchema,
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1680
|
+
Io as tenantSettingsSchema,
|
|
1681
|
+
Ee as themeInsertSchema,
|
|
1682
|
+
so as themeSchema,
|
|
1683
|
+
ao as tokenResponseSchema,
|
|
1575
1684
|
xe as totalsSchema,
|
|
1576
|
-
|
|
1685
|
+
S as userInsertSchema,
|
|
1577
1686
|
He as userOrganizationInsertSchema,
|
|
1578
|
-
|
|
1687
|
+
Ao as userOrganizationSchema,
|
|
1579
1688
|
ye as userPermissionInsertSchema,
|
|
1580
|
-
|
|
1689
|
+
ho as userPermissionListSchema,
|
|
1581
1690
|
Re as userPermissionSchema,
|
|
1582
|
-
|
|
1691
|
+
bo as userPermissionWithDetailsListSchema,
|
|
1583
1692
|
Le as userPermissionWithDetailsSchema,
|
|
1584
1693
|
Ke as userResponseSchema,
|
|
1585
1694
|
De as userRoleInsertSchema,
|
|
1586
|
-
|
|
1695
|
+
Eo as userRoleListSchema,
|
|
1587
1696
|
we as userRoleSchema,
|
|
1588
1697
|
A as userSchema,
|
|
1589
1698
|
J as verificationMethodsSchema,
|
|
1590
|
-
|
|
1699
|
+
be as widgetSchema
|
|
1591
1700
|
};
|