@authhero/adapter-interfaces 1.4.0 → 1.4.1
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 +81 -5
- package/dist/adapter-interfaces.mjs +427 -421
- package/package.json +1 -1
|
@@ -2,23 +2,26 @@ import { z as e } from "@hono/zod-openapi";
|
|
|
2
2
|
const s = e.object({
|
|
3
3
|
created_at: e.string(),
|
|
4
4
|
updated_at: e.string()
|
|
5
|
-
}),
|
|
5
|
+
}), V = e.object({
|
|
6
6
|
id: e.string(),
|
|
7
7
|
version: e.string().optional()
|
|
8
|
-
}),
|
|
8
|
+
}), Y = e.object({
|
|
9
9
|
name: e.string(),
|
|
10
10
|
version: e.string()
|
|
11
|
-
}),
|
|
11
|
+
}), Q = e.object({
|
|
12
12
|
name: e.string(),
|
|
13
13
|
value: e.string()
|
|
14
|
-
}),
|
|
14
|
+
}), N = e.object({
|
|
15
15
|
name: e.string().max(255),
|
|
16
16
|
code: e.string().max(1e5),
|
|
17
|
-
supported_triggers: e.array(
|
|
17
|
+
supported_triggers: e.array(V).optional(),
|
|
18
18
|
runtime: e.string().max(50).optional(),
|
|
19
|
-
dependencies: e.array(
|
|
20
|
-
secrets: e.array(
|
|
21
|
-
}),
|
|
19
|
+
dependencies: e.array(Y).optional(),
|
|
20
|
+
secrets: e.array(Q).optional()
|
|
21
|
+
}), jo = N.partial().extend({
|
|
22
|
+
status: e.enum(["draft", "built"]).optional(),
|
|
23
|
+
deployed_at: e.string().optional()
|
|
24
|
+
}), Ro = N.extend({
|
|
22
25
|
id: e.string(),
|
|
23
26
|
tenant_id: e.string(),
|
|
24
27
|
status: e.enum(["draft", "built"]).default("built"),
|
|
@@ -58,10 +61,10 @@ const s = e.object({
|
|
|
58
61
|
ip: e.string(),
|
|
59
62
|
user_agent: e.string().optional(),
|
|
60
63
|
correlation_id: e.string().optional()
|
|
61
|
-
}),
|
|
64
|
+
}), te = e.object({
|
|
62
65
|
status_code: e.number(),
|
|
63
66
|
body: e.unknown().optional()
|
|
64
|
-
}),
|
|
67
|
+
}), oe = e.object({
|
|
65
68
|
country_code: e.string(),
|
|
66
69
|
city_name: e.string(),
|
|
67
70
|
latitude: e.string(),
|
|
@@ -81,24 +84,24 @@ const s = e.object({
|
|
|
81
84
|
actor: $,
|
|
82
85
|
target: J,
|
|
83
86
|
request: ee,
|
|
84
|
-
response:
|
|
87
|
+
response: te.optional(),
|
|
85
88
|
connection: e.string().optional(),
|
|
86
89
|
strategy: e.string().optional(),
|
|
87
90
|
strategy_type: e.string().optional(),
|
|
88
|
-
location:
|
|
91
|
+
location: oe.optional(),
|
|
89
92
|
auth0_client: ne.optional(),
|
|
90
93
|
hostname: e.string(),
|
|
91
94
|
is_mobile: e.boolean().optional(),
|
|
92
95
|
timestamp: e.string()
|
|
93
|
-
}),
|
|
96
|
+
}), Do = ie.extend({
|
|
94
97
|
id: e.string()
|
|
95
|
-
}),
|
|
98
|
+
}), Lo = e.enum(["AUTH0", "EMAIL", "REDIRECT"]), vo = e.enum([
|
|
96
99
|
"CREATE_USER",
|
|
97
100
|
"GET_USER",
|
|
98
101
|
"UPDATE_USER",
|
|
99
102
|
"SEND_REQUEST",
|
|
100
103
|
"SEND_EMAIL"
|
|
101
|
-
]),
|
|
104
|
+
]), ko = e.enum(["VERIFY_EMAIL"]), ae = e.object({
|
|
102
105
|
require_mx_record: e.boolean().optional(),
|
|
103
106
|
block_aliases: e.boolean().optional(),
|
|
104
107
|
block_free_emails: e.boolean().optional(),
|
|
@@ -155,20 +158,20 @@ const s = e.object({
|
|
|
155
158
|
actions: e.array(pe).optional().default([]).openapi({
|
|
156
159
|
description: "The list of actions to execute in sequence"
|
|
157
160
|
})
|
|
158
|
-
}),
|
|
161
|
+
}), Uo = _e.extend({
|
|
159
162
|
...s.shape,
|
|
160
163
|
id: e.string().openapi({
|
|
161
164
|
description: "Unique identifier for the flow",
|
|
162
165
|
example: "af_12tMpdJ3iek7svMyZkSh5M"
|
|
163
166
|
})
|
|
164
|
-
}),
|
|
165
|
-
page: e.string().min(0).optional().default("0").transform((
|
|
167
|
+
}), Fo = e.object({
|
|
168
|
+
page: e.string().min(0).optional().default("0").transform((t) => parseInt(t, 10)).openapi({
|
|
166
169
|
description: "The page number where 0 is the first page"
|
|
167
170
|
}),
|
|
168
|
-
per_page: e.string().min(1).optional().default("10").transform((
|
|
171
|
+
per_page: e.string().min(1).optional().default("10").transform((t) => parseInt(t, 10)).openapi({
|
|
169
172
|
description: "The number of items per page"
|
|
170
173
|
}),
|
|
171
|
-
include_totals: e.string().optional().default("false").transform((
|
|
174
|
+
include_totals: e.string().optional().default("false").transform((t) => t === "true").openapi({
|
|
172
175
|
description: "If the total number of items should be included in the response"
|
|
173
176
|
}),
|
|
174
177
|
sort: e.string().regex(/^.+:(-1|1)$/).optional().openapi({
|
|
@@ -177,7 +180,7 @@ const s = e.object({
|
|
|
177
180
|
q: e.string().optional().openapi({
|
|
178
181
|
description: "A lucene query string used to filter the results"
|
|
179
182
|
})
|
|
180
|
-
}),
|
|
183
|
+
}), xo = e.object({
|
|
181
184
|
start: e.number(),
|
|
182
185
|
limit: e.number(),
|
|
183
186
|
length: e.number(),
|
|
@@ -218,9 +221,9 @@ const s = e.object({
|
|
|
218
221
|
// Zip code or postal code
|
|
219
222
|
country: e.string().optional()
|
|
220
223
|
// Country name
|
|
221
|
-
}).optional(),
|
|
222
|
-
email: e.string().optional().transform((
|
|
223
|
-
username: e.string().refine((
|
|
224
|
+
}).optional(), w = e.object({
|
|
225
|
+
email: e.string().optional().transform((t) => t && t.toLowerCase()),
|
|
226
|
+
username: e.string().refine((t) => !t.includes("@"), {
|
|
224
227
|
message: 'Usernames must not contain "@". Use the email field for email addresses.'
|
|
225
228
|
}).optional(),
|
|
226
229
|
phone_number: e.string().optional(),
|
|
@@ -251,7 +254,7 @@ const s = e.object({
|
|
|
251
254
|
// e.g., "Europe/Paris"
|
|
252
255
|
// OIDC address claim (OIDC Core 5.1.1)
|
|
253
256
|
address: ue
|
|
254
|
-
}), me =
|
|
257
|
+
}), me = w.extend({
|
|
255
258
|
email_verified: e.boolean().default(!1),
|
|
256
259
|
verify_email: e.boolean().optional(),
|
|
257
260
|
last_ip: e.string().optional(),
|
|
@@ -283,18 +286,20 @@ const s = e.object({
|
|
|
283
286
|
email: e.string().optional(),
|
|
284
287
|
login_count: e.number().default(0),
|
|
285
288
|
identities: e.array(ge).optional()
|
|
286
|
-
}),
|
|
289
|
+
}), Po = he.omit({
|
|
290
|
+
registration_completed_at: !0
|
|
291
|
+
}), Mo = w.extend({
|
|
287
292
|
login_count: e.number(),
|
|
288
293
|
multifactor: e.array(e.string()).optional(),
|
|
289
294
|
last_ip: e.string().optional(),
|
|
290
295
|
last_login: e.string().optional(),
|
|
291
296
|
user_id: e.string()
|
|
292
297
|
}).catchall(e.any());
|
|
293
|
-
let be = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", fe = (
|
|
294
|
-
let
|
|
295
|
-
for (;
|
|
296
|
-
|
|
297
|
-
return
|
|
298
|
+
let be = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", fe = (t = 21) => {
|
|
299
|
+
let o = "", i = crypto.getRandomValues(new Uint8Array(t |= 0));
|
|
300
|
+
for (; t--; )
|
|
301
|
+
o += be[i[t] & 63];
|
|
302
|
+
return o;
|
|
298
303
|
};
|
|
299
304
|
const Ee = e.object({
|
|
300
305
|
client_id: e.string().openapi({
|
|
@@ -469,7 +474,7 @@ const Ee = e.object({
|
|
|
469
474
|
description: "Specifies how long, in seconds, a Pushed Authorization Request URI remains valid"
|
|
470
475
|
}),
|
|
471
476
|
token_quota: e.record(e.any()).default({}).optional()
|
|
472
|
-
}),
|
|
477
|
+
}), Ho = e.object({
|
|
473
478
|
created_at: e.string(),
|
|
474
479
|
updated_at: e.string(),
|
|
475
480
|
...Ee.shape
|
|
@@ -505,15 +510,15 @@ const Ee = e.object({
|
|
|
505
510
|
...Se.shape,
|
|
506
511
|
created_at: e.string().optional(),
|
|
507
512
|
updated_at: e.string().optional()
|
|
508
|
-
}),
|
|
513
|
+
}), Go = e.array(Ae), m = e.object({
|
|
509
514
|
x: e.number(),
|
|
510
515
|
y: e.number()
|
|
511
516
|
});
|
|
512
|
-
var
|
|
517
|
+
var j = /* @__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))(j || {}), R = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.FIELD = "FIELD", t))(R || {});
|
|
513
518
|
const I = e.object({
|
|
514
519
|
id: e.string(),
|
|
515
|
-
category: e.nativeEnum(
|
|
516
|
-
type: e.nativeEnum(
|
|
520
|
+
category: e.nativeEnum(R),
|
|
521
|
+
type: e.nativeEnum(j)
|
|
517
522
|
}), ye = I.extend({
|
|
518
523
|
category: e.literal(
|
|
519
524
|
"BLOCK"
|
|
@@ -626,7 +631,7 @@ const I = e.object({
|
|
|
626
631
|
Te,
|
|
627
632
|
Oe
|
|
628
633
|
]);
|
|
629
|
-
var we = /* @__PURE__ */ ((
|
|
634
|
+
var we = /* @__PURE__ */ ((t) => (t.STEP = "STEP", t.FLOW = "FLOW", t.CONDITION = "CONDITION", t.ACTION = "ACTION", t))(we || {});
|
|
630
635
|
const je = e.object({
|
|
631
636
|
id: e.string(),
|
|
632
637
|
type: e.literal(
|
|
@@ -703,17 +708,17 @@ const je = e.object({
|
|
|
703
708
|
sdkSrc: e.string().optional(),
|
|
704
709
|
sdk_src: e.string().optional()
|
|
705
710
|
}).passthrough()
|
|
706
|
-
}).passthrough(),
|
|
711
|
+
}).passthrough(), Bo = Fe.omit({
|
|
707
712
|
id: !0,
|
|
708
713
|
created_at: !0,
|
|
709
714
|
updated_at: !0
|
|
710
715
|
});
|
|
711
|
-
var
|
|
716
|
+
var D = /* @__PURE__ */ ((t) => (t.TOKEN = "token", t.ID_TOKEN = "id_token", t.TOKEN_ID_TOKEN = "token id_token", t.CODE = "code", t))(D || {}), L = /* @__PURE__ */ ((t) => (t.QUERY = "query", t.FRAGMENT = "fragment", t.FORM_POST = "form_post", t.WEB_MESSAGE = "web_message", t.SAML_POST = "saml_post", t))(L || {}), v = /* @__PURE__ */ ((t) => (t.S256 = "S256", t.Plain = "plain", t))(v || {});
|
|
712
717
|
const xe = e.object({
|
|
713
718
|
client_id: e.string(),
|
|
714
719
|
act_as: e.string().optional(),
|
|
715
|
-
response_type: e.nativeEnum(
|
|
716
|
-
response_mode: e.nativeEnum(
|
|
720
|
+
response_type: e.nativeEnum(D).optional(),
|
|
721
|
+
response_mode: e.nativeEnum(L).optional(),
|
|
717
722
|
redirect_uri: e.string().optional(),
|
|
718
723
|
audience: e.string().optional(),
|
|
719
724
|
organization: e.string().optional(),
|
|
@@ -721,7 +726,7 @@ const xe = e.object({
|
|
|
721
726
|
nonce: e.string().optional(),
|
|
722
727
|
scope: e.string().optional(),
|
|
723
728
|
prompt: e.string().optional(),
|
|
724
|
-
code_challenge_method: e.nativeEnum(
|
|
729
|
+
code_challenge_method: e.nativeEnum(v).optional(),
|
|
725
730
|
code_challenge: e.string().optional(),
|
|
726
731
|
username: e.string().optional(),
|
|
727
732
|
ui_locales: e.string().optional(),
|
|
@@ -733,7 +738,7 @@ const xe = e.object({
|
|
|
733
738
|
acr_values: e.string().optional(),
|
|
734
739
|
// The following fields are not available in Auth0
|
|
735
740
|
vendor_id: e.string().optional()
|
|
736
|
-
}),
|
|
741
|
+
}), Wo = e.object({
|
|
737
742
|
colors: e.object({
|
|
738
743
|
primary: e.string(),
|
|
739
744
|
page_background: e.object({
|
|
@@ -792,7 +797,7 @@ const xe = e.object({
|
|
|
792
797
|
expires_at: e.string(),
|
|
793
798
|
used_at: e.string().optional(),
|
|
794
799
|
user_id: e.string().optional()
|
|
795
|
-
}),
|
|
800
|
+
}), Ko = e.object({
|
|
796
801
|
...Me.shape,
|
|
797
802
|
created_at: e.string()
|
|
798
803
|
}), He = e.object({
|
|
@@ -920,10 +925,10 @@ const xe = e.object({
|
|
|
920
925
|
show_as_button: e.boolean().optional(),
|
|
921
926
|
metadata: e.record(e.any()).optional(),
|
|
922
927
|
is_system: e.boolean().optional()
|
|
923
|
-
}),
|
|
928
|
+
}), zo = e.object({
|
|
924
929
|
id: e.string(),
|
|
925
|
-
created_at: e.string().transform((
|
|
926
|
-
updated_at: e.string().transform((
|
|
930
|
+
created_at: e.string().transform((t) => t === null ? "" : t),
|
|
931
|
+
updated_at: e.string().transform((t) => t === null ? "" : t)
|
|
927
932
|
}).extend(Ge.shape), Be = e.object({
|
|
928
933
|
domain: e.string(),
|
|
929
934
|
custom_domain_id: e.string().optional(),
|
|
@@ -959,7 +964,7 @@ const xe = e.object({
|
|
|
959
964
|
methods: e.array(We)
|
|
960
965
|
}).optional(),
|
|
961
966
|
tls_policy: e.string().optional()
|
|
962
|
-
}),
|
|
967
|
+
}), qo = Ke.extend({
|
|
963
968
|
tenant_id: e.string()
|
|
964
969
|
}), C = e.object({
|
|
965
970
|
id: e.string(),
|
|
@@ -1023,12 +1028,12 @@ const xe = e.object({
|
|
|
1023
1028
|
config: e.object({
|
|
1024
1029
|
credential_type: e.string().optional()
|
|
1025
1030
|
})
|
|
1026
|
-
}),
|
|
1031
|
+
}), et = T.extend({
|
|
1027
1032
|
type: e.literal("GMAPS_ADDRESS"),
|
|
1028
1033
|
config: e.object({
|
|
1029
1034
|
api_key: e.string().optional()
|
|
1030
1035
|
})
|
|
1031
|
-
}),
|
|
1036
|
+
}), tt = T.extend({
|
|
1032
1037
|
type: e.literal("RECAPTCHA"),
|
|
1033
1038
|
config: e.object({
|
|
1034
1039
|
site_key: e.string().optional()
|
|
@@ -1046,12 +1051,12 @@ const xe = e.object({
|
|
|
1046
1051
|
).optional(),
|
|
1047
1052
|
required: e.boolean().optional(),
|
|
1048
1053
|
sensitive: e.boolean().optional()
|
|
1049
|
-
}),
|
|
1054
|
+
}), ot = n.extend({
|
|
1050
1055
|
type: e.literal("BOOLEAN"),
|
|
1051
1056
|
config: e.object({
|
|
1052
1057
|
default_value: e.boolean().optional()
|
|
1053
1058
|
}).optional()
|
|
1054
|
-
}),
|
|
1059
|
+
}), nt = n.extend({
|
|
1055
1060
|
type: e.literal("CARDS"),
|
|
1056
1061
|
config: e.object({
|
|
1057
1062
|
options: e.array(
|
|
@@ -1064,7 +1069,7 @@ const xe = e.object({
|
|
|
1064
1069
|
).optional(),
|
|
1065
1070
|
multi_select: e.boolean().optional()
|
|
1066
1071
|
}).optional()
|
|
1067
|
-
}),
|
|
1072
|
+
}), it = n.extend({
|
|
1068
1073
|
type: e.literal("CHOICE"),
|
|
1069
1074
|
config: e.object({
|
|
1070
1075
|
options: e.array(
|
|
@@ -1077,7 +1082,7 @@ const xe = e.object({
|
|
|
1077
1082
|
multiple: e.boolean().optional(),
|
|
1078
1083
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
1079
1084
|
}).optional()
|
|
1080
|
-
}),
|
|
1085
|
+
}), at = n.extend({
|
|
1081
1086
|
type: e.literal("CUSTOM"),
|
|
1082
1087
|
config: e.object({
|
|
1083
1088
|
component: e.string().optional(),
|
|
@@ -1085,7 +1090,7 @@ const xe = e.object({
|
|
|
1085
1090
|
schema: e.record(e.any()).optional(),
|
|
1086
1091
|
code: e.string().optional()
|
|
1087
1092
|
})
|
|
1088
|
-
}),
|
|
1093
|
+
}), st = n.extend({
|
|
1089
1094
|
type: e.literal("DATE"),
|
|
1090
1095
|
config: e.object({
|
|
1091
1096
|
format: e.string().optional(),
|
|
@@ -1093,7 +1098,7 @@ const xe = e.object({
|
|
|
1093
1098
|
max: e.string().optional(),
|
|
1094
1099
|
default_value: e.string().optional()
|
|
1095
1100
|
}).optional()
|
|
1096
|
-
}),
|
|
1101
|
+
}), rt = n.extend({
|
|
1097
1102
|
type: e.literal("DROPDOWN"),
|
|
1098
1103
|
config: e.object({
|
|
1099
1104
|
options: e.array(
|
|
@@ -1107,26 +1112,26 @@ const xe = e.object({
|
|
|
1107
1112
|
multiple: e.boolean().optional(),
|
|
1108
1113
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
1109
1114
|
}).optional()
|
|
1110
|
-
}),
|
|
1115
|
+
}), lt = n.extend({
|
|
1111
1116
|
type: e.literal("EMAIL"),
|
|
1112
1117
|
config: e.object({
|
|
1113
1118
|
placeholder: e.string().optional(),
|
|
1114
1119
|
default_value: e.string().optional()
|
|
1115
1120
|
}).optional()
|
|
1116
|
-
}),
|
|
1121
|
+
}), ct = n.extend({
|
|
1117
1122
|
type: e.literal("FILE"),
|
|
1118
1123
|
config: e.object({
|
|
1119
1124
|
accept: e.string().optional(),
|
|
1120
1125
|
max_size: e.number().optional(),
|
|
1121
1126
|
multiple: e.boolean().optional()
|
|
1122
1127
|
}).optional()
|
|
1123
|
-
}),
|
|
1128
|
+
}), pt = n.extend({
|
|
1124
1129
|
type: e.literal("LEGAL"),
|
|
1125
1130
|
config: e.object({
|
|
1126
1131
|
text: e.string(),
|
|
1127
1132
|
html: e.boolean().optional()
|
|
1128
1133
|
}).optional()
|
|
1129
|
-
}),
|
|
1134
|
+
}), _t = n.extend({
|
|
1130
1135
|
type: e.literal("NUMBER"),
|
|
1131
1136
|
config: e.object({
|
|
1132
1137
|
placeholder: e.string().optional(),
|
|
@@ -1135,7 +1140,7 @@ const xe = e.object({
|
|
|
1135
1140
|
step: e.number().optional(),
|
|
1136
1141
|
default_value: e.string().optional()
|
|
1137
1142
|
}).optional()
|
|
1138
|
-
}),
|
|
1143
|
+
}), dt = n.extend({
|
|
1139
1144
|
type: e.literal("PASSWORD"),
|
|
1140
1145
|
config: e.object({
|
|
1141
1146
|
placeholder: e.string().optional(),
|
|
@@ -1144,13 +1149,13 @@ const xe = e.object({
|
|
|
1144
1149
|
forgot_password_link: e.string().optional(),
|
|
1145
1150
|
default_value: e.string().optional()
|
|
1146
1151
|
}).optional()
|
|
1147
|
-
}),
|
|
1152
|
+
}), gt = n.extend({
|
|
1148
1153
|
type: e.literal("PAYMENT"),
|
|
1149
1154
|
config: e.object({
|
|
1150
1155
|
provider: e.string().optional(),
|
|
1151
1156
|
currency: e.string().optional()
|
|
1152
1157
|
}).optional()
|
|
1153
|
-
}),
|
|
1158
|
+
}), ut = n.extend({
|
|
1154
1159
|
type: e.literal("SOCIAL"),
|
|
1155
1160
|
config: e.object({
|
|
1156
1161
|
providers: e.array(e.string()).optional(),
|
|
@@ -1165,7 +1170,7 @@ const xe = e.object({
|
|
|
1165
1170
|
})
|
|
1166
1171
|
).optional()
|
|
1167
1172
|
}).optional()
|
|
1168
|
-
}),
|
|
1173
|
+
}), mt = n.extend({
|
|
1169
1174
|
type: e.literal("TEL"),
|
|
1170
1175
|
config: e.object({
|
|
1171
1176
|
placeholder: e.string().optional(),
|
|
@@ -1173,7 +1178,7 @@ const xe = e.object({
|
|
|
1173
1178
|
default_value: e.string().optional(),
|
|
1174
1179
|
allow_email: e.boolean().optional()
|
|
1175
1180
|
}).optional()
|
|
1176
|
-
}),
|
|
1181
|
+
}), ht = n.extend({
|
|
1177
1182
|
type: e.literal("TEXT"),
|
|
1178
1183
|
config: e.object({
|
|
1179
1184
|
placeholder: e.string().optional(),
|
|
@@ -1181,19 +1186,19 @@ const xe = e.object({
|
|
|
1181
1186
|
max_length: e.number().optional(),
|
|
1182
1187
|
default_value: e.string().optional()
|
|
1183
1188
|
}).optional()
|
|
1184
|
-
}),
|
|
1189
|
+
}), bt = n.extend({
|
|
1185
1190
|
type: e.literal("COUNTRY"),
|
|
1186
1191
|
config: e.object({
|
|
1187
1192
|
placeholder: e.string().optional(),
|
|
1188
1193
|
default_value: e.string().optional()
|
|
1189
1194
|
}).optional()
|
|
1190
|
-
}),
|
|
1195
|
+
}), ft = n.extend({
|
|
1191
1196
|
type: e.literal("URL"),
|
|
1192
1197
|
config: e.object({
|
|
1193
1198
|
placeholder: e.string().optional(),
|
|
1194
1199
|
default_value: e.string().optional()
|
|
1195
1200
|
}).optional()
|
|
1196
|
-
}),
|
|
1201
|
+
}), Et = e.discriminatedUnion("type", [
|
|
1197
1202
|
ze,
|
|
1198
1203
|
qe,
|
|
1199
1204
|
Xe,
|
|
@@ -1202,33 +1207,33 @@ const xe = e.object({
|
|
|
1202
1207
|
Qe,
|
|
1203
1208
|
Ze,
|
|
1204
1209
|
$e
|
|
1205
|
-
]),
|
|
1210
|
+
]), St = e.discriminatedUnion("type", [
|
|
1206
1211
|
Je,
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
]),
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
]),
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
]),
|
|
1212
|
+
et,
|
|
1213
|
+
tt
|
|
1214
|
+
]), At = e.discriminatedUnion("type", [
|
|
1215
|
+
ot,
|
|
1216
|
+
nt,
|
|
1217
|
+
it,
|
|
1218
|
+
bt,
|
|
1219
|
+
at,
|
|
1220
|
+
st,
|
|
1221
|
+
rt,
|
|
1222
|
+
lt,
|
|
1223
|
+
ct,
|
|
1224
|
+
pt,
|
|
1225
|
+
_t,
|
|
1226
|
+
dt,
|
|
1227
|
+
gt,
|
|
1228
|
+
ut,
|
|
1229
|
+
mt,
|
|
1230
|
+
ht,
|
|
1231
|
+
ft
|
|
1232
|
+
]), k = e.union([
|
|
1233
|
+
Et,
|
|
1234
|
+
St,
|
|
1235
|
+
At
|
|
1236
|
+
]), Xo = /* @__PURE__ */ new Set([
|
|
1232
1237
|
"BOOLEAN",
|
|
1233
1238
|
"CARDS",
|
|
1234
1239
|
"CHOICE",
|
|
@@ -1242,7 +1247,7 @@ const xe = e.object({
|
|
|
1242
1247
|
"TEL",
|
|
1243
1248
|
"TEXT",
|
|
1244
1249
|
"URL"
|
|
1245
|
-
]),
|
|
1250
|
+
]), Vo = e.object({
|
|
1246
1251
|
id: e.string(),
|
|
1247
1252
|
type: e.literal("submit"),
|
|
1248
1253
|
label: e.string(),
|
|
@@ -1254,7 +1259,7 @@ const xe = e.object({
|
|
|
1254
1259
|
}), f = e.object({
|
|
1255
1260
|
x: e.number(),
|
|
1256
1261
|
y: e.number()
|
|
1257
|
-
}),
|
|
1262
|
+
}), yt = e.object({
|
|
1258
1263
|
id: e.string(),
|
|
1259
1264
|
type: e.literal("FLOW"),
|
|
1260
1265
|
coordinates: f,
|
|
@@ -1263,7 +1268,7 @@ const xe = e.object({
|
|
|
1263
1268
|
flow_id: e.string().max(30),
|
|
1264
1269
|
next_node: e.string().optional()
|
|
1265
1270
|
})
|
|
1266
|
-
}),
|
|
1271
|
+
}), It = e.object({
|
|
1267
1272
|
id: e.string(),
|
|
1268
1273
|
type: e.literal("ROUTER"),
|
|
1269
1274
|
coordinates: f,
|
|
@@ -1279,20 +1284,20 @@ const xe = e.object({
|
|
|
1279
1284
|
),
|
|
1280
1285
|
fallback: e.string()
|
|
1281
1286
|
})
|
|
1282
|
-
}),
|
|
1287
|
+
}), Ct = e.object({
|
|
1283
1288
|
id: e.string(),
|
|
1284
1289
|
type: e.literal("STEP"),
|
|
1285
1290
|
coordinates: f,
|
|
1286
1291
|
alias: e.string().min(1).max(150).optional(),
|
|
1287
1292
|
config: e.object({
|
|
1288
|
-
components: e.array(
|
|
1293
|
+
components: e.array(k),
|
|
1289
1294
|
next_node: e.string().optional()
|
|
1290
1295
|
})
|
|
1291
|
-
}),
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
]),
|
|
1296
|
+
}), Tt = e.discriminatedUnion("type", [
|
|
1297
|
+
yt,
|
|
1298
|
+
It,
|
|
1299
|
+
Ct
|
|
1300
|
+
]), Ot = e.object({
|
|
1296
1301
|
name: e.string().openapi({
|
|
1297
1302
|
description: "The name of the form"
|
|
1298
1303
|
}),
|
|
@@ -1305,7 +1310,7 @@ const xe = e.object({
|
|
|
1305
1310
|
default: e.string().optional()
|
|
1306
1311
|
}).optional(),
|
|
1307
1312
|
translations: e.record(e.string(), e.any()).optional(),
|
|
1308
|
-
nodes: e.array(
|
|
1313
|
+
nodes: e.array(Tt).optional(),
|
|
1309
1314
|
start: e.object({
|
|
1310
1315
|
hidden_fields: e.array(e.object({ key: e.string(), value: e.string() })).optional(),
|
|
1311
1316
|
next_node: e.string().optional(),
|
|
@@ -1327,42 +1332,42 @@ const xe = e.object({
|
|
|
1327
1332
|
}).optional()
|
|
1328
1333
|
}).openapi({
|
|
1329
1334
|
description: "Schema for flow-based forms (matches Auth0 Forms structure)"
|
|
1330
|
-
}),
|
|
1335
|
+
}), Yo = e.object({
|
|
1331
1336
|
...s.shape,
|
|
1332
|
-
...
|
|
1337
|
+
...Ot.shape,
|
|
1333
1338
|
id: e.string()
|
|
1334
|
-
}),
|
|
1339
|
+
}), Nt = e.object({
|
|
1335
1340
|
id: e.number().optional(),
|
|
1336
1341
|
text: e.string(),
|
|
1337
1342
|
type: e.enum(["info", "error", "success", "warning"])
|
|
1338
|
-
}),
|
|
1343
|
+
}), wt = e.object({
|
|
1339
1344
|
id: e.string().optional(),
|
|
1340
1345
|
text: e.string(),
|
|
1341
1346
|
href: e.string(),
|
|
1342
1347
|
linkText: e.string().optional()
|
|
1343
|
-
}),
|
|
1348
|
+
}), Qo = e.object({
|
|
1344
1349
|
/** Screen identifier for CSS targeting (e.g., 'identifier', 'enter-password', 'signup') */
|
|
1345
1350
|
name: e.string().optional(),
|
|
1346
1351
|
action: e.string(),
|
|
1347
1352
|
method: e.enum(["POST", "GET"]),
|
|
1348
1353
|
title: e.string().optional(),
|
|
1349
1354
|
description: e.string().optional(),
|
|
1350
|
-
components: e.array(
|
|
1351
|
-
messages: e.array(
|
|
1352
|
-
links: e.array(
|
|
1355
|
+
components: e.array(k),
|
|
1356
|
+
messages: e.array(Nt).optional(),
|
|
1357
|
+
links: e.array(wt).optional(),
|
|
1353
1358
|
/** Footer HTML content displayed at the very bottom of the widget (e.g., terms and conditions) */
|
|
1354
1359
|
footer: e.string().optional()
|
|
1355
1360
|
});
|
|
1356
|
-
function
|
|
1357
|
-
return
|
|
1361
|
+
function Zo(t) {
|
|
1362
|
+
return t.category === "BLOCK";
|
|
1358
1363
|
}
|
|
1359
|
-
function
|
|
1360
|
-
return
|
|
1364
|
+
function $o(t) {
|
|
1365
|
+
return t.category === "WIDGET";
|
|
1361
1366
|
}
|
|
1362
|
-
function
|
|
1363
|
-
return
|
|
1367
|
+
function Jo(t) {
|
|
1368
|
+
return t.category === "FIELD";
|
|
1364
1369
|
}
|
|
1365
|
-
const
|
|
1370
|
+
const U = e.enum([
|
|
1366
1371
|
"pre-user-registration",
|
|
1367
1372
|
"post-user-registration",
|
|
1368
1373
|
"post-user-login",
|
|
@@ -1370,25 +1375,25 @@ const k = e.enum([
|
|
|
1370
1375
|
"pre-user-deletion",
|
|
1371
1376
|
"post-user-deletion"
|
|
1372
1377
|
// Potentially other triggers specific to webhooks in the future
|
|
1373
|
-
]),
|
|
1378
|
+
]), F = e.enum([
|
|
1374
1379
|
"pre-user-registration",
|
|
1375
1380
|
"post-user-registration",
|
|
1376
1381
|
"post-user-login",
|
|
1377
1382
|
"validate-registration-username",
|
|
1378
1383
|
"pre-user-deletion",
|
|
1379
1384
|
"post-user-deletion"
|
|
1380
|
-
]),
|
|
1385
|
+
]), x = e.enum([
|
|
1381
1386
|
"post-user-login",
|
|
1382
1387
|
"credentials-exchange"
|
|
1383
|
-
]),
|
|
1388
|
+
]), P = e.enum([
|
|
1384
1389
|
"post-user-login",
|
|
1385
1390
|
"credentials-exchange",
|
|
1386
1391
|
"pre-user-registration",
|
|
1387
1392
|
"post-user-registration"
|
|
1388
|
-
]),
|
|
1393
|
+
]), M = e.enum([
|
|
1389
1394
|
"ensure-username",
|
|
1390
1395
|
"set-preferred-username"
|
|
1391
|
-
]),
|
|
1396
|
+
]), en = {
|
|
1392
1397
|
"ensure-username": {
|
|
1393
1398
|
name: "Ensure Username",
|
|
1394
1399
|
description: "Automatically assigns a username to users who sign in without one. Creates a linked username account for social/email users.",
|
|
@@ -1404,71 +1409,71 @@ const k = e.enum([
|
|
|
1404
1409
|
synchronous: e.boolean().default(!1),
|
|
1405
1410
|
priority: e.number().optional(),
|
|
1406
1411
|
hook_id: e.string().optional()
|
|
1407
|
-
},
|
|
1408
|
-
...c,
|
|
1409
|
-
trigger_id: k,
|
|
1410
|
-
url: e.string()
|
|
1411
|
-
}), Do = e.object({
|
|
1412
|
+
}, jt = e.object({
|
|
1412
1413
|
...c,
|
|
1413
1414
|
trigger_id: U,
|
|
1414
|
-
|
|
1415
|
-
}),
|
|
1415
|
+
url: e.string()
|
|
1416
|
+
}), Rt = e.object({
|
|
1416
1417
|
...c,
|
|
1417
1418
|
trigger_id: F,
|
|
1418
|
-
|
|
1419
|
-
}),
|
|
1419
|
+
form_id: e.string()
|
|
1420
|
+
}), Dt = e.object({
|
|
1420
1421
|
...c,
|
|
1421
1422
|
trigger_id: x,
|
|
1423
|
+
template_id: M
|
|
1424
|
+
}), Lt = e.object({
|
|
1425
|
+
...c,
|
|
1426
|
+
trigger_id: P,
|
|
1422
1427
|
code_id: e.string()
|
|
1423
|
-
}),
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
]),
|
|
1428
|
+
}), tn = e.union([
|
|
1429
|
+
jt,
|
|
1430
|
+
Rt,
|
|
1431
|
+
Dt,
|
|
1432
|
+
Lt
|
|
1433
|
+
]), vt = e.object({
|
|
1429
1434
|
...c,
|
|
1430
|
-
trigger_id:
|
|
1435
|
+
trigger_id: U,
|
|
1431
1436
|
...s.shape,
|
|
1432
1437
|
hook_id: e.string(),
|
|
1433
1438
|
url: e.string()
|
|
1434
|
-
}),
|
|
1439
|
+
}), kt = e.object({
|
|
1435
1440
|
...c,
|
|
1436
|
-
trigger_id:
|
|
1441
|
+
trigger_id: F,
|
|
1437
1442
|
...s.shape,
|
|
1438
1443
|
hook_id: e.string(),
|
|
1439
1444
|
form_id: e.string()
|
|
1440
|
-
}),
|
|
1445
|
+
}), Ut = e.object({
|
|
1441
1446
|
...c,
|
|
1442
|
-
trigger_id:
|
|
1447
|
+
trigger_id: x,
|
|
1443
1448
|
...s.shape,
|
|
1444
1449
|
hook_id: e.string(),
|
|
1445
|
-
template_id:
|
|
1446
|
-
}),
|
|
1450
|
+
template_id: M
|
|
1451
|
+
}), Ft = e.object({
|
|
1447
1452
|
...c,
|
|
1448
|
-
trigger_id:
|
|
1453
|
+
trigger_id: P,
|
|
1449
1454
|
...s.shape,
|
|
1450
1455
|
hook_id: e.string(),
|
|
1451
1456
|
code_id: e.string()
|
|
1452
1457
|
}), on = e.union([
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
]),
|
|
1458
|
+
vt,
|
|
1459
|
+
kt,
|
|
1460
|
+
Ut,
|
|
1461
|
+
Ft
|
|
1462
|
+
]), xt = e.object({
|
|
1458
1463
|
code: e.string().max(1e5),
|
|
1459
1464
|
secrets: e.record(e.string()).optional()
|
|
1460
|
-
}),
|
|
1465
|
+
}), nn = xt.extend({
|
|
1461
1466
|
id: e.string(),
|
|
1462
1467
|
tenant_id: e.string(),
|
|
1463
1468
|
...s.shape
|
|
1464
|
-
}),
|
|
1469
|
+
}), Pt = e.object({
|
|
1465
1470
|
name: e.string().optional()
|
|
1466
|
-
}),
|
|
1471
|
+
}), Mt = e.object({
|
|
1467
1472
|
email: e.string().optional()
|
|
1468
|
-
}),
|
|
1473
|
+
}), Ht = e.object({
|
|
1469
1474
|
organization_id: e.string().max(50),
|
|
1470
|
-
inviter:
|
|
1471
|
-
invitee:
|
|
1475
|
+
inviter: Pt,
|
|
1476
|
+
invitee: Mt,
|
|
1472
1477
|
invitation_url: e.string().url(),
|
|
1473
1478
|
client_id: e.string(),
|
|
1474
1479
|
connection_id: e.string().optional(),
|
|
@@ -1477,13 +1482,13 @@ const k = e.enum([
|
|
|
1477
1482
|
ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
|
|
1478
1483
|
roles: e.array(e.string()).default([]).optional(),
|
|
1479
1484
|
send_invitation_email: e.boolean().default(!0).optional()
|
|
1480
|
-
}),
|
|
1485
|
+
}), an = e.object({
|
|
1481
1486
|
id: e.string(),
|
|
1482
1487
|
organization_id: e.string().max(50),
|
|
1483
1488
|
created_at: e.string().datetime(),
|
|
1484
1489
|
expires_at: e.string().datetime(),
|
|
1485
1490
|
ticket_id: e.string().optional()
|
|
1486
|
-
}).extend(
|
|
1491
|
+
}).extend(Ht.shape), Gt = e.object({
|
|
1487
1492
|
alg: e.enum([
|
|
1488
1493
|
"RS256",
|
|
1489
1494
|
"RS384",
|
|
@@ -1502,9 +1507,9 @@ const k = e.enum([
|
|
|
1502
1507
|
x5t: e.string().optional(),
|
|
1503
1508
|
x5c: e.array(e.string()).optional(),
|
|
1504
1509
|
use: e.enum(["sig", "enc"]).optional()
|
|
1505
|
-
}), an = e.object({
|
|
1506
|
-
keys: e.array(Bo)
|
|
1507
1510
|
}), sn = e.object({
|
|
1511
|
+
keys: e.array(Gt)
|
|
1512
|
+
}), rn = e.object({
|
|
1508
1513
|
issuer: e.string(),
|
|
1509
1514
|
authorization_endpoint: e.string(),
|
|
1510
1515
|
token_endpoint: e.string(),
|
|
@@ -1526,8 +1531,8 @@ const k = e.enum([
|
|
|
1526
1531
|
request_parameter_supported: e.boolean(),
|
|
1527
1532
|
token_endpoint_auth_signing_alg_values_supported: e.array(e.string())
|
|
1528
1533
|
});
|
|
1529
|
-
var
|
|
1530
|
-
const
|
|
1534
|
+
var H = /* @__PURE__ */ ((t) => (t.PENDING = "pending", t.AUTHENTICATED = "authenticated", t.AWAITING_EMAIL_VERIFICATION = "awaiting_email_verification", t.AWAITING_MFA = "awaiting_mfa", t.AWAITING_HOOK = "awaiting_hook", t.AWAITING_CONTINUATION = "awaiting_continuation", t.COMPLETED = "completed", t.FAILED = "failed", t.EXPIRED = "expired", t))(H || {});
|
|
1535
|
+
const Bt = e.nativeEnum(H), Wt = e.object({
|
|
1531
1536
|
csrf_token: e.string(),
|
|
1532
1537
|
auth0Client: e.string().optional(),
|
|
1533
1538
|
authParams: xe,
|
|
@@ -1537,7 +1542,7 @@ const Wo = e.nativeEnum(M), Ko = e.object({
|
|
|
1537
1542
|
useragent: e.string().optional(),
|
|
1538
1543
|
session_id: e.string().optional(),
|
|
1539
1544
|
authorization_url: e.string().optional(),
|
|
1540
|
-
state:
|
|
1545
|
+
state: Bt.optional().default(
|
|
1541
1546
|
"pending"
|
|
1542
1547
|
/* PENDING */
|
|
1543
1548
|
),
|
|
@@ -1550,14 +1555,14 @@ const Wo = e.nativeEnum(M), Ko = e.object({
|
|
|
1550
1555
|
// The connection used to authenticate (may differ from primary user's connection)
|
|
1551
1556
|
}).openapi({
|
|
1552
1557
|
description: "This represents a login sesion"
|
|
1553
|
-
}),
|
|
1554
|
-
...
|
|
1558
|
+
}), ln = e.object({
|
|
1559
|
+
...Wt.shape,
|
|
1555
1560
|
id: e.string().openapi({
|
|
1556
1561
|
description: "This is is used as the state in the universal login"
|
|
1557
1562
|
}),
|
|
1558
1563
|
created_at: e.string(),
|
|
1559
1564
|
updated_at: e.string()
|
|
1560
|
-
}),
|
|
1565
|
+
}), Kt = {
|
|
1561
1566
|
// Network & System
|
|
1562
1567
|
ACLS_SUMMARY: "acls_summary",
|
|
1563
1568
|
ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
|
|
@@ -1729,24 +1734,24 @@ const Wo = e.nativeEnum(M), Ko = e.object({
|
|
|
1729
1734
|
WARNING_DURING_LOGIN: "w",
|
|
1730
1735
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
1731
1736
|
WARNING_USER_MANAGEMENT: "wum"
|
|
1732
|
-
},
|
|
1733
|
-
(
|
|
1737
|
+
}, zt = e.string().refine(
|
|
1738
|
+
(t) => Object.values(Kt).includes(t),
|
|
1734
1739
|
{ message: "Invalid log type" }
|
|
1735
|
-
),
|
|
1740
|
+
), qt = e.object({
|
|
1736
1741
|
name: e.string(),
|
|
1737
1742
|
version: e.string(),
|
|
1738
1743
|
env: e.object({
|
|
1739
1744
|
node: e.string().optional()
|
|
1740
1745
|
}).optional()
|
|
1741
|
-
}),
|
|
1746
|
+
}), Xt = e.object({
|
|
1742
1747
|
country_code: e.string().length(2),
|
|
1743
1748
|
city_name: e.string(),
|
|
1744
1749
|
latitude: e.string(),
|
|
1745
1750
|
longitude: e.string(),
|
|
1746
1751
|
time_zone: e.string(),
|
|
1747
1752
|
continent_code: e.string()
|
|
1748
|
-
}),
|
|
1749
|
-
type:
|
|
1753
|
+
}), Vt = e.object({
|
|
1754
|
+
type: zt,
|
|
1750
1755
|
date: e.string(),
|
|
1751
1756
|
description: e.string().optional(),
|
|
1752
1757
|
ip: e.string().optional(),
|
|
@@ -1765,30 +1770,30 @@ const Wo = e.nativeEnum(M), Ko = e.object({
|
|
|
1765
1770
|
strategy: e.string().optional(),
|
|
1766
1771
|
strategy_type: e.string().optional(),
|
|
1767
1772
|
hostname: e.string().optional(),
|
|
1768
|
-
auth0_client:
|
|
1773
|
+
auth0_client: qt.optional(),
|
|
1769
1774
|
log_id: e.string().optional(),
|
|
1770
|
-
location_info:
|
|
1771
|
-
}),
|
|
1772
|
-
...
|
|
1775
|
+
location_info: Xt.optional()
|
|
1776
|
+
}), cn = e.object({
|
|
1777
|
+
...Vt.shape,
|
|
1773
1778
|
log_id: e.string()
|
|
1774
|
-
}),
|
|
1779
|
+
}), Yt = e.object({
|
|
1775
1780
|
id: e.string().optional(),
|
|
1776
1781
|
user_id: e.string(),
|
|
1777
1782
|
password: e.string(),
|
|
1778
1783
|
algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
|
|
1779
1784
|
is_current: e.boolean().default(!0)
|
|
1780
|
-
}),
|
|
1785
|
+
}), pn = Yt.extend({
|
|
1781
1786
|
id: e.string(),
|
|
1782
1787
|
created_at: e.string(),
|
|
1783
1788
|
updated_at: e.string()
|
|
1784
|
-
}),
|
|
1789
|
+
}), G = e.object({
|
|
1785
1790
|
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
1786
1791
|
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
1787
1792
|
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
1788
1793
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
1789
1794
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
1790
1795
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
1791
|
-
}),
|
|
1796
|
+
}), Qt = e.object({
|
|
1792
1797
|
id: e.string(),
|
|
1793
1798
|
revoked_at: e.string().optional(),
|
|
1794
1799
|
used_at: e.string().optional(),
|
|
@@ -1796,17 +1801,17 @@ const Wo = e.nativeEnum(M), Ko = e.object({
|
|
|
1796
1801
|
expires_at: e.string().optional(),
|
|
1797
1802
|
login_session_id: e.string(),
|
|
1798
1803
|
idle_expires_at: e.string().optional(),
|
|
1799
|
-
device:
|
|
1804
|
+
device: G.describe(
|
|
1800
1805
|
"Metadata related to the device used in the session"
|
|
1801
1806
|
),
|
|
1802
1807
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
1803
|
-
}),
|
|
1808
|
+
}), _n = e.object({
|
|
1804
1809
|
created_at: e.string(),
|
|
1805
1810
|
updated_at: e.string(),
|
|
1806
1811
|
authenticated_at: e.string(),
|
|
1807
1812
|
last_interaction_at: e.string(),
|
|
1808
|
-
...
|
|
1809
|
-
}),
|
|
1813
|
+
...Qt.shape
|
|
1814
|
+
}), dn = e.object({
|
|
1810
1815
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
1811
1816
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
1812
1817
|
fingerprint: e.string().openapi({ description: "The cert fingerprint" }),
|
|
@@ -1831,7 +1836,7 @@ const Wo = e.nativeEnum(M), Ko = e.object({
|
|
|
1831
1836
|
type: e.enum(["jwt_signing", "saml_encryption"]).openapi({
|
|
1832
1837
|
description: "The type of the signing key"
|
|
1833
1838
|
})
|
|
1834
|
-
}),
|
|
1839
|
+
}), Zt = e.object({
|
|
1835
1840
|
id: e.string().optional(),
|
|
1836
1841
|
// Basic settings
|
|
1837
1842
|
audience: e.string(),
|
|
@@ -1986,14 +1991,14 @@ const Wo = e.nativeEnum(M), Ko = e.object({
|
|
|
1986
1991
|
message: e.string().optional()
|
|
1987
1992
|
}).optional()
|
|
1988
1993
|
}).optional()
|
|
1989
|
-
}),
|
|
1990
|
-
created_at: e.string().nullable().transform((
|
|
1991
|
-
updated_at: e.string().nullable().transform((
|
|
1992
|
-
|
|
1994
|
+
}), gn = e.object({
|
|
1995
|
+
created_at: e.string().nullable().transform((t) => t ?? ""),
|
|
1996
|
+
updated_at: e.string().nullable().transform((t) => t ?? ""),
|
|
1997
|
+
...Zt.shape,
|
|
1993
1998
|
id: e.string()
|
|
1994
1999
|
});
|
|
1995
|
-
var
|
|
1996
|
-
const
|
|
2000
|
+
var $t = /* @__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))($t || {});
|
|
2001
|
+
const un = e.object({
|
|
1997
2002
|
access_token: e.string(),
|
|
1998
2003
|
id_token: e.string().optional(),
|
|
1999
2004
|
scope: e.string().optional(),
|
|
@@ -2006,7 +2011,7 @@ e.object({
|
|
|
2006
2011
|
code: e.string(),
|
|
2007
2012
|
state: e.string().optional()
|
|
2008
2013
|
});
|
|
2009
|
-
const
|
|
2014
|
+
const Jt = e.object({
|
|
2010
2015
|
button_border_radius: e.number(),
|
|
2011
2016
|
button_border_weight: e.number(),
|
|
2012
2017
|
buttons_style: e.enum(["pill", "rounded", "sharp"]),
|
|
@@ -2016,7 +2021,7 @@ const et = e.object({
|
|
|
2016
2021
|
show_widget_shadow: e.boolean(),
|
|
2017
2022
|
widget_border_weight: e.number(),
|
|
2018
2023
|
widget_corner_radius: e.number()
|
|
2019
|
-
}),
|
|
2024
|
+
}), eo = e.object({
|
|
2020
2025
|
base_focus_color: e.string(),
|
|
2021
2026
|
base_hover_color: e.string(),
|
|
2022
2027
|
body_text: e.string(),
|
|
@@ -2039,7 +2044,7 @@ const et = e.object({
|
|
|
2039
2044
|
}), u = e.object({
|
|
2040
2045
|
bold: e.boolean(),
|
|
2041
2046
|
size: e.number()
|
|
2042
|
-
}),
|
|
2047
|
+
}), to = e.object({
|
|
2043
2048
|
body_text: u,
|
|
2044
2049
|
buttons_text: u,
|
|
2045
2050
|
font_url: e.string(),
|
|
@@ -2049,31 +2054,31 @@ const et = e.object({
|
|
|
2049
2054
|
reference_text_size: e.number(),
|
|
2050
2055
|
subtitle: u,
|
|
2051
2056
|
title: u
|
|
2052
|
-
}),
|
|
2057
|
+
}), oo = e.object({
|
|
2053
2058
|
background_color: e.string(),
|
|
2054
2059
|
background_image_url: e.string(),
|
|
2055
2060
|
page_layout: e.enum(["center", "left", "right"])
|
|
2056
|
-
}),
|
|
2061
|
+
}), no = e.object({
|
|
2057
2062
|
header_text_alignment: e.enum(["center", "left", "right"]),
|
|
2058
2063
|
logo_height: e.number(),
|
|
2059
2064
|
logo_position: e.enum(["center", "left", "none", "right"]),
|
|
2060
2065
|
logo_url: e.string(),
|
|
2061
2066
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
2062
|
-
}),
|
|
2063
|
-
borders:
|
|
2064
|
-
colors:
|
|
2067
|
+
}), io = e.object({
|
|
2068
|
+
borders: Jt,
|
|
2069
|
+
colors: eo,
|
|
2065
2070
|
displayName: e.string(),
|
|
2066
|
-
fonts:
|
|
2067
|
-
page_background:
|
|
2068
|
-
widget:
|
|
2069
|
-
}),
|
|
2071
|
+
fonts: to,
|
|
2072
|
+
page_background: oo,
|
|
2073
|
+
widget: no
|
|
2074
|
+
}), mn = io.extend({
|
|
2070
2075
|
themeId: e.string()
|
|
2071
|
-
}),
|
|
2076
|
+
}), hn = e.object({
|
|
2072
2077
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
2073
2078
|
identifier_first: e.boolean().default(!0),
|
|
2074
2079
|
password_first: e.boolean().default(!1),
|
|
2075
2080
|
webauthn_platform_first_factor: e.boolean()
|
|
2076
|
-
}),
|
|
2081
|
+
}), bn = e.object({
|
|
2077
2082
|
name: e.string(),
|
|
2078
2083
|
enabled: e.boolean().optional().default(!0),
|
|
2079
2084
|
default_from_address: e.string().optional(),
|
|
@@ -2103,7 +2108,7 @@ const et = e.object({
|
|
|
2103
2108
|
})
|
|
2104
2109
|
]),
|
|
2105
2110
|
settings: e.object({}).optional()
|
|
2106
|
-
}),
|
|
2111
|
+
}), ao = e.object({
|
|
2107
2112
|
// The actual refresh token value (primary key).
|
|
2108
2113
|
id: e.string(),
|
|
2109
2114
|
// Link to the login session
|
|
@@ -2116,7 +2121,7 @@ const et = e.object({
|
|
|
2116
2121
|
idle_expires_at: e.string().optional(),
|
|
2117
2122
|
// When the token was last used.
|
|
2118
2123
|
last_exchanged_at: e.string().optional(),
|
|
2119
|
-
device:
|
|
2124
|
+
device: G,
|
|
2120
2125
|
resource_servers: e.array(
|
|
2121
2126
|
e.object({
|
|
2122
2127
|
audience: e.string(),
|
|
@@ -2124,21 +2129,21 @@ const et = e.object({
|
|
|
2124
2129
|
})
|
|
2125
2130
|
),
|
|
2126
2131
|
rotating: e.boolean()
|
|
2127
|
-
}),
|
|
2132
|
+
}), fn = e.object({
|
|
2128
2133
|
// When the refresh token record was created.
|
|
2129
2134
|
created_at: e.string(),
|
|
2130
2135
|
// Spread in the rest of the refresh token properties.
|
|
2131
|
-
...
|
|
2132
|
-
}),
|
|
2136
|
+
...ao.shape
|
|
2137
|
+
}), En = e.object({
|
|
2133
2138
|
to: e.string(),
|
|
2134
2139
|
message: e.string()
|
|
2135
|
-
}),
|
|
2140
|
+
}), Sn = e.object({
|
|
2136
2141
|
name: e.string(),
|
|
2137
2142
|
options: e.object({})
|
|
2138
|
-
}),
|
|
2143
|
+
}), so = e.object({
|
|
2139
2144
|
value: e.string(),
|
|
2140
2145
|
description: e.string().optional()
|
|
2141
|
-
}),
|
|
2146
|
+
}), ro = e.object({
|
|
2142
2147
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
2143
2148
|
enforce_policies: e.boolean().optional(),
|
|
2144
2149
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -2148,11 +2153,11 @@ const et = e.object({
|
|
|
2148
2153
|
mtls: e.object({
|
|
2149
2154
|
bound_access_tokens: e.boolean().optional()
|
|
2150
2155
|
}).optional()
|
|
2151
|
-
}),
|
|
2156
|
+
}), lo = e.object({
|
|
2152
2157
|
id: e.string().optional(),
|
|
2153
2158
|
name: e.string(),
|
|
2154
2159
|
identifier: e.string(),
|
|
2155
|
-
scopes: e.array(
|
|
2160
|
+
scopes: e.array(so).optional(),
|
|
2156
2161
|
signing_alg: e.string().optional(),
|
|
2157
2162
|
signing_secret: e.string().optional(),
|
|
2158
2163
|
token_lifetime: e.number().default(86400),
|
|
@@ -2160,30 +2165,30 @@ const et = e.object({
|
|
|
2160
2165
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
2161
2166
|
allow_offline_access: e.boolean().optional(),
|
|
2162
2167
|
verificationKey: e.string().optional(),
|
|
2163
|
-
options:
|
|
2168
|
+
options: ro.optional(),
|
|
2164
2169
|
is_system: e.boolean().optional(),
|
|
2165
2170
|
metadata: e.record(e.any()).optional()
|
|
2166
|
-
}),
|
|
2167
|
-
...
|
|
2171
|
+
}), co = e.object({
|
|
2172
|
+
...lo.shape,
|
|
2168
2173
|
created_at: e.string().optional(),
|
|
2169
2174
|
updated_at: e.string().optional()
|
|
2170
|
-
}),
|
|
2175
|
+
}), An = e.array(co), po = e.object({
|
|
2171
2176
|
role_id: e.string(),
|
|
2172
2177
|
resource_server_identifier: e.string(),
|
|
2173
2178
|
permission_name: e.string()
|
|
2174
|
-
}),
|
|
2175
|
-
...
|
|
2179
|
+
}), _o = e.object({
|
|
2180
|
+
...po.shape,
|
|
2176
2181
|
created_at: e.string()
|
|
2177
|
-
}),
|
|
2182
|
+
}), yn = e.array(_o), go = e.object({
|
|
2178
2183
|
user_id: e.string(),
|
|
2179
2184
|
resource_server_identifier: e.string(),
|
|
2180
2185
|
permission_name: e.string(),
|
|
2181
2186
|
organization_id: e.string().optional()
|
|
2182
|
-
}),
|
|
2183
|
-
...
|
|
2187
|
+
}), uo = e.object({
|
|
2188
|
+
...go.shape,
|
|
2184
2189
|
tenant_id: e.string(),
|
|
2185
2190
|
created_at: e.string().optional()
|
|
2186
|
-
}),
|
|
2191
|
+
}), In = e.array(uo), mo = e.object({
|
|
2187
2192
|
user_id: e.string(),
|
|
2188
2193
|
resource_server_identifier: e.string(),
|
|
2189
2194
|
resource_server_name: e.string(),
|
|
@@ -2191,17 +2196,17 @@ const et = e.object({
|
|
|
2191
2196
|
description: e.string().nullable().optional(),
|
|
2192
2197
|
created_at: e.string().optional(),
|
|
2193
2198
|
organization_id: e.string().optional()
|
|
2194
|
-
}),
|
|
2195
|
-
|
|
2196
|
-
),
|
|
2199
|
+
}), Cn = e.array(
|
|
2200
|
+
mo
|
|
2201
|
+
), ho = e.object({
|
|
2197
2202
|
user_id: e.string(),
|
|
2198
2203
|
role_id: e.string(),
|
|
2199
2204
|
organization_id: e.string().optional()
|
|
2200
|
-
}),
|
|
2201
|
-
...
|
|
2205
|
+
}), bo = e.object({
|
|
2206
|
+
...ho.shape,
|
|
2202
2207
|
tenant_id: e.string(),
|
|
2203
2208
|
created_at: e.string().optional()
|
|
2204
|
-
}),
|
|
2209
|
+
}), Tn = e.array(bo), fo = e.object({
|
|
2205
2210
|
id: e.string().optional().openapi({
|
|
2206
2211
|
description: "The unique identifier of the role. If not provided, one will be generated."
|
|
2207
2212
|
}),
|
|
@@ -2215,13 +2220,13 @@ const et = e.object({
|
|
|
2215
2220
|
metadata: e.record(e.any()).optional().openapi({
|
|
2216
2221
|
description: "Metadata associated with the role. Can be used to control sync behavior in multi-tenancy scenarios."
|
|
2217
2222
|
})
|
|
2218
|
-
}),
|
|
2223
|
+
}), Eo = fo.extend({
|
|
2219
2224
|
id: e.string().openapi({
|
|
2220
2225
|
description: "The unique identifier of the role"
|
|
2221
2226
|
}),
|
|
2222
2227
|
created_at: e.string().optional(),
|
|
2223
2228
|
updated_at: e.string().optional()
|
|
2224
|
-
}),
|
|
2229
|
+
}), On = e.array(Eo), So = e.object({
|
|
2225
2230
|
logo_url: e.string().optional().openapi({
|
|
2226
2231
|
description: "URL of the organization's logo"
|
|
2227
2232
|
}),
|
|
@@ -2233,7 +2238,7 @@ const et = e.object({
|
|
|
2233
2238
|
description: "Page background color in hex format (e.g., #FFFFFF)"
|
|
2234
2239
|
})
|
|
2235
2240
|
}).optional()
|
|
2236
|
-
}).optional(),
|
|
2241
|
+
}).optional(), Ao = e.object({
|
|
2237
2242
|
connection_id: e.string().openapi({
|
|
2238
2243
|
description: "ID of the connection"
|
|
2239
2244
|
}),
|
|
@@ -2246,7 +2251,7 @@ const et = e.object({
|
|
|
2246
2251
|
is_signup_enabled: e.boolean().default(!0).openapi({
|
|
2247
2252
|
description: "Whether signup is enabled for this connection"
|
|
2248
2253
|
})
|
|
2249
|
-
}),
|
|
2254
|
+
}), yo = e.object({
|
|
2250
2255
|
client_credentials: e.object({
|
|
2251
2256
|
enforce: e.boolean().default(!1).openapi({
|
|
2252
2257
|
description: "Whether to enforce token quota limits"
|
|
@@ -2258,7 +2263,7 @@ const et = e.object({
|
|
|
2258
2263
|
description: "Maximum tokens per hour (0 = unlimited)"
|
|
2259
2264
|
})
|
|
2260
2265
|
}).optional()
|
|
2261
|
-
}).optional(),
|
|
2266
|
+
}).optional(), Io = e.object({
|
|
2262
2267
|
id: e.string().optional(),
|
|
2263
2268
|
name: e.string().min(1).regex(/^[a-z0-9_-]+$/, {
|
|
2264
2269
|
message: "Organization name must be lowercase and can only contain letters, numbers, hyphens, and underscores"
|
|
@@ -2268,34 +2273,34 @@ const et = e.object({
|
|
|
2268
2273
|
display_name: e.string().optional().openapi({
|
|
2269
2274
|
description: "The display name of the organization"
|
|
2270
2275
|
}),
|
|
2271
|
-
branding:
|
|
2276
|
+
branding: So,
|
|
2272
2277
|
metadata: e.record(e.any()).default({}).optional().openapi({
|
|
2273
2278
|
description: "Custom metadata for the organization"
|
|
2274
2279
|
}),
|
|
2275
|
-
enabled_connections: e.array(
|
|
2280
|
+
enabled_connections: e.array(Ao).default([]).optional().openapi({
|
|
2276
2281
|
description: "List of enabled connections for the organization"
|
|
2277
2282
|
}),
|
|
2278
|
-
token_quota:
|
|
2279
|
-
}),
|
|
2280
|
-
...
|
|
2283
|
+
token_quota: yo
|
|
2284
|
+
}), Nn = e.object({
|
|
2285
|
+
...Io.shape,
|
|
2281
2286
|
...s.shape,
|
|
2282
2287
|
id: e.string(),
|
|
2283
2288
|
// Override name to be lenient when reading from database (to support existing uppercase names)
|
|
2284
2289
|
name: e.string().min(1).openapi({
|
|
2285
2290
|
description: "The name of the organization"
|
|
2286
2291
|
})
|
|
2287
|
-
}),
|
|
2292
|
+
}), Co = e.object({
|
|
2288
2293
|
user_id: e.string().openapi({
|
|
2289
2294
|
description: "ID of the user"
|
|
2290
2295
|
}),
|
|
2291
2296
|
organization_id: e.string().openapi({
|
|
2292
2297
|
description: "ID of the organization"
|
|
2293
2298
|
})
|
|
2294
|
-
}),
|
|
2295
|
-
...
|
|
2299
|
+
}), wn = e.object({
|
|
2300
|
+
...Co.shape,
|
|
2296
2301
|
...s.shape,
|
|
2297
2302
|
id: e.string()
|
|
2298
|
-
}),
|
|
2303
|
+
}), jn = e.object({
|
|
2299
2304
|
// Session settings
|
|
2300
2305
|
idle_session_lifetime: e.number().default(72),
|
|
2301
2306
|
session_lifetime: e.number().default(168),
|
|
@@ -2395,7 +2400,7 @@ const et = e.object({
|
|
|
2395
2400
|
message: e.string().optional()
|
|
2396
2401
|
}).optional()
|
|
2397
2402
|
}).optional()
|
|
2398
|
-
}),
|
|
2403
|
+
}), Rn = e.object({
|
|
2399
2404
|
date: e.string().openapi({
|
|
2400
2405
|
description: "Date these events occurred in ISO 8601 format",
|
|
2401
2406
|
example: "2025-12-19"
|
|
@@ -2420,10 +2425,10 @@ const et = e.object({
|
|
|
2420
2425
|
description: "Approximate date and time the first event occurred in ISO 8601 format",
|
|
2421
2426
|
example: "2025-12-19T00:00:00.000Z"
|
|
2422
2427
|
})
|
|
2423
|
-
}),
|
|
2428
|
+
}), Dn = e.number().openapi({
|
|
2424
2429
|
description: "Number of active users in the last 30 days",
|
|
2425
2430
|
example: 1234
|
|
2426
|
-
}),
|
|
2431
|
+
}), To = e.enum([
|
|
2427
2432
|
"login",
|
|
2428
2433
|
"login-id",
|
|
2429
2434
|
"login-password",
|
|
@@ -2452,17 +2457,17 @@ const et = e.object({
|
|
|
2452
2457
|
"custom-form",
|
|
2453
2458
|
"login-passwordless",
|
|
2454
2459
|
"mfa-login-options"
|
|
2455
|
-
]),
|
|
2460
|
+
]), Oo = e.record(e.string(), e.record(e.string(), e.string())).openapi({
|
|
2456
2461
|
type: "object",
|
|
2457
2462
|
additionalProperties: {
|
|
2458
2463
|
type: "object",
|
|
2459
2464
|
additionalProperties: { type: "string" }
|
|
2460
2465
|
}
|
|
2461
|
-
}),
|
|
2462
|
-
prompt:
|
|
2466
|
+
}), Ln = e.object({
|
|
2467
|
+
prompt: To,
|
|
2463
2468
|
language: e.string(),
|
|
2464
|
-
custom_text:
|
|
2465
|
-
}),
|
|
2469
|
+
custom_text: Oo
|
|
2470
|
+
}), vn = {
|
|
2466
2471
|
EMAIL: "email",
|
|
2467
2472
|
SMS: "sms",
|
|
2468
2473
|
USERNAME_PASSWORD: "Username-Password-Authentication",
|
|
@@ -2477,11 +2482,11 @@ const et = e.object({
|
|
|
2477
2482
|
SAMLP: "samlp",
|
|
2478
2483
|
WAAD: "waad",
|
|
2479
2484
|
ADFS: "adfs"
|
|
2480
|
-
},
|
|
2485
|
+
}, kn = {
|
|
2481
2486
|
DATABASE: "database",
|
|
2482
2487
|
SOCIAL: "social",
|
|
2483
2488
|
PASSWORDLESS: "passwordless"
|
|
2484
|
-
},
|
|
2489
|
+
}, No = e.enum([
|
|
2485
2490
|
"phone",
|
|
2486
2491
|
"totp",
|
|
2487
2492
|
"email",
|
|
@@ -2489,9 +2494,9 @@ const et = e.object({
|
|
|
2489
2494
|
"webauthn-roaming",
|
|
2490
2495
|
"webauthn-platform",
|
|
2491
2496
|
"passkey"
|
|
2492
|
-
]),
|
|
2497
|
+
]), B = e.object({
|
|
2493
2498
|
user_id: e.string(),
|
|
2494
|
-
type:
|
|
2499
|
+
type: No,
|
|
2495
2500
|
// Phone-specific
|
|
2496
2501
|
phone_number: e.string().optional(),
|
|
2497
2502
|
// TOTP-specific
|
|
@@ -2506,43 +2511,43 @@ const et = e.object({
|
|
|
2506
2511
|
// Common
|
|
2507
2512
|
confirmed: e.boolean().default(!1)
|
|
2508
2513
|
});
|
|
2509
|
-
function
|
|
2510
|
-
|
|
2514
|
+
function W(t, o) {
|
|
2515
|
+
t.type === "phone" && !t.phone_number && o.addIssue({
|
|
2511
2516
|
code: e.ZodIssueCode.custom,
|
|
2512
2517
|
message: "phone_number is required when type is 'phone'",
|
|
2513
2518
|
path: ["phone_number"]
|
|
2514
|
-
}),
|
|
2519
|
+
}), t.type === "totp" && !t.totp_secret && o.addIssue({
|
|
2515
2520
|
code: e.ZodIssueCode.custom,
|
|
2516
2521
|
message: "totp_secret is required when type is 'totp'",
|
|
2517
2522
|
path: ["totp_secret"]
|
|
2518
|
-
}), ["webauthn-roaming", "webauthn-platform", "passkey"].includes(
|
|
2523
|
+
}), ["webauthn-roaming", "webauthn-platform", "passkey"].includes(t.type) && (t.credential_id || o.addIssue({
|
|
2519
2524
|
code: e.ZodIssueCode.custom,
|
|
2520
|
-
message: `credential_id is required when type is '${
|
|
2525
|
+
message: `credential_id is required when type is '${t.type}'`,
|
|
2521
2526
|
path: ["credential_id"]
|
|
2522
|
-
}),
|
|
2527
|
+
}), t.public_key || o.addIssue({
|
|
2523
2528
|
code: e.ZodIssueCode.custom,
|
|
2524
|
-
message: `public_key is required when type is '${
|
|
2529
|
+
message: `public_key is required when type is '${t.type}'`,
|
|
2525
2530
|
path: ["public_key"]
|
|
2526
2531
|
}));
|
|
2527
2532
|
}
|
|
2528
|
-
const
|
|
2529
|
-
...
|
|
2533
|
+
const Un = B.superRefine(W), Fn = e.object({
|
|
2534
|
+
...B.shape,
|
|
2530
2535
|
id: e.string(),
|
|
2531
2536
|
created_at: e.string(),
|
|
2532
2537
|
updated_at: e.string()
|
|
2533
|
-
}).superRefine(
|
|
2534
|
-
function
|
|
2535
|
-
const [
|
|
2536
|
-
if (!
|
|
2537
|
-
throw new Error(`Invalid user_id: ${
|
|
2538
|
-
return { connection:
|
|
2538
|
+
}).superRefine(W);
|
|
2539
|
+
function xn(t) {
|
|
2540
|
+
const [o, i] = t.split("|");
|
|
2541
|
+
if (!o || !i)
|
|
2542
|
+
throw new Error(`Invalid user_id: ${t}`);
|
|
2543
|
+
return { connection: o, id: i };
|
|
2539
2544
|
}
|
|
2540
|
-
function
|
|
2545
|
+
function Pn(t) {
|
|
2541
2546
|
const {
|
|
2542
|
-
primary:
|
|
2547
|
+
primary: o,
|
|
2543
2548
|
secondaries: i,
|
|
2544
2549
|
syncMethods: O = ["create", "rawCreate", "update", "remove", "delete", "set"]
|
|
2545
|
-
} =
|
|
2550
|
+
} = t, E = {
|
|
2546
2551
|
get(p, a) {
|
|
2547
2552
|
if (typeof a == "symbol")
|
|
2548
2553
|
return p[a];
|
|
@@ -2576,212 +2581,213 @@ function xn(o) {
|
|
|
2576
2581
|
} : _.bind(p);
|
|
2577
2582
|
}
|
|
2578
2583
|
};
|
|
2579
|
-
return new Proxy(
|
|
2584
|
+
return new Proxy(o, E);
|
|
2580
2585
|
}
|
|
2581
|
-
function
|
|
2582
|
-
return
|
|
2586
|
+
function Mn(t) {
|
|
2587
|
+
return t;
|
|
2583
2588
|
}
|
|
2584
|
-
function
|
|
2589
|
+
function Hn(t) {
|
|
2585
2590
|
var E, p, a, _, d, S, g, r, h, A, b, y;
|
|
2586
|
-
const
|
|
2587
|
-
if (!
|
|
2591
|
+
const o = t == null ? void 0 : t.options;
|
|
2592
|
+
if (!o)
|
|
2588
2593
|
return {
|
|
2589
2594
|
usernameIdentifierActive: !1,
|
|
2590
2595
|
emailIdentifierActive: !0,
|
|
2591
2596
|
usernameMinLength: 1,
|
|
2592
2597
|
usernameMaxLength: 15
|
|
2593
2598
|
};
|
|
2594
|
-
const i =
|
|
2599
|
+
const i = o.attributes;
|
|
2595
2600
|
if (i) {
|
|
2596
|
-
const
|
|
2601
|
+
const K = ((p = (E = i.username) == null ? void 0 : E.identifier) == null ? void 0 : p.active) === !0, z = ((_ = (a = i.email) == null ? void 0 : a.identifier) == null ? void 0 : _.active) !== !1, q = ((S = (d = i.username) == null ? void 0 : d.validation) == null ? void 0 : S.min_length) ?? 1, X = ((r = (g = i.username) == null ? void 0 : g.validation) == null ? void 0 : r.max_length) ?? 15;
|
|
2597
2602
|
return {
|
|
2598
|
-
usernameIdentifierActive:
|
|
2599
|
-
emailIdentifierActive:
|
|
2600
|
-
usernameMinLength:
|
|
2601
|
-
usernameMaxLength:
|
|
2603
|
+
usernameIdentifierActive: K,
|
|
2604
|
+
emailIdentifierActive: z,
|
|
2605
|
+
usernameMinLength: q,
|
|
2606
|
+
usernameMaxLength: X
|
|
2602
2607
|
};
|
|
2603
2608
|
}
|
|
2604
2609
|
return {
|
|
2605
|
-
usernameIdentifierActive:
|
|
2610
|
+
usernameIdentifierActive: o.requires_username === !0,
|
|
2606
2611
|
emailIdentifierActive: !0,
|
|
2607
|
-
usernameMinLength: ((A = (h =
|
|
2608
|
-
usernameMaxLength: ((y = (b =
|
|
2612
|
+
usernameMinLength: ((A = (h = o.validation) == null ? void 0 : h.username) == null ? void 0 : A.min) ?? 1,
|
|
2613
|
+
usernameMaxLength: ((y = (b = o.validation) == null ? void 0 : b.username) == null ? void 0 : y.max) ?? 15
|
|
2609
2614
|
};
|
|
2610
2615
|
}
|
|
2611
2616
|
export {
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2617
|
+
vo as Auth0ActionEnum,
|
|
2618
|
+
qt as Auth0Client,
|
|
2619
|
+
L as AuthorizationResponseMode,
|
|
2620
|
+
D as AuthorizationResponseType,
|
|
2621
|
+
v as CodeChallengeMethod,
|
|
2622
|
+
R as ComponentCategory,
|
|
2623
|
+
j as ComponentType,
|
|
2624
|
+
ko as EmailActionEnum,
|
|
2625
|
+
Xo as FORM_FIELD_TYPES,
|
|
2626
|
+
Lo as FlowActionTypeEnum,
|
|
2627
|
+
$t as GrantType,
|
|
2628
|
+
Xt as LocationInfo,
|
|
2629
|
+
Kt as LogTypes,
|
|
2630
|
+
H as LoginSessionState,
|
|
2626
2631
|
we as NodeType,
|
|
2627
2632
|
le as RedirectTargetEnum,
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2633
|
+
vn as Strategy,
|
|
2634
|
+
kn as StrategyType,
|
|
2635
|
+
Y as actionDependencySchema,
|
|
2636
|
+
N as actionInsertSchema,
|
|
2632
2637
|
De as actionNodeSchema,
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2638
|
+
Ro as actionSchema,
|
|
2639
|
+
Q as actionSecretSchema,
|
|
2640
|
+
V as actionTriggerSchema,
|
|
2641
|
+
jo as actionUpdateSchema,
|
|
2642
|
+
Dn as activeUsersResponseSchema,
|
|
2637
2643
|
$ as actorSchema,
|
|
2638
2644
|
ue as addressSchema,
|
|
2639
2645
|
Z as auditCategorySchema,
|
|
2640
2646
|
ie as auditEventInsertSchema,
|
|
2641
|
-
|
|
2647
|
+
Do as auditEventSchema,
|
|
2642
2648
|
ne as auth0ClientSchema,
|
|
2643
|
-
|
|
2649
|
+
Bo as auth0FlowInsertSchema,
|
|
2644
2650
|
Fe as auth0FlowSchema,
|
|
2645
|
-
|
|
2651
|
+
Fo as auth0QuerySchema,
|
|
2646
2652
|
se as auth0UpdateUserActionSchema,
|
|
2647
|
-
|
|
2653
|
+
Po as auth0UserResponseSchema,
|
|
2648
2654
|
xe as authParamsSchema,
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2655
|
+
Un as authenticationMethodInsertSchema,
|
|
2656
|
+
Fn as authenticationMethodSchema,
|
|
2657
|
+
No as authenticationMethodTypeSchema,
|
|
2658
|
+
w as baseUserSchema,
|
|
2659
|
+
Et as blockComponentSchema,
|
|
2660
|
+
Jt as bordersSchema,
|
|
2661
|
+
Wo as brandingSchema,
|
|
2656
2662
|
Ie as buttonComponentSchema,
|
|
2657
2663
|
Se as clientGrantInsertSchema,
|
|
2658
|
-
|
|
2664
|
+
Go as clientGrantListSchema,
|
|
2659
2665
|
Ae as clientGrantSchema,
|
|
2660
2666
|
Ee as clientInsertSchema,
|
|
2661
|
-
|
|
2667
|
+
Ho as clientSchema,
|
|
2662
2668
|
Me as codeInsertSchema,
|
|
2663
|
-
|
|
2669
|
+
Ko as codeSchema,
|
|
2664
2670
|
Pe as codeTypeSchema,
|
|
2665
|
-
|
|
2666
|
-
|
|
2671
|
+
eo as colorsSchema,
|
|
2672
|
+
Nt as componentMessageSchema,
|
|
2667
2673
|
Ne as componentSchema,
|
|
2668
2674
|
Ge as connectionInsertSchema,
|
|
2669
2675
|
He as connectionOptionsSchema,
|
|
2670
|
-
|
|
2676
|
+
zo as connectionSchema,
|
|
2671
2677
|
m as coordinatesSchema,
|
|
2672
|
-
|
|
2673
|
-
|
|
2678
|
+
Pn as createPassthroughAdapter,
|
|
2679
|
+
Mn as createWriteOnlyAdapter,
|
|
2674
2680
|
Be as customDomainInsertSchema,
|
|
2675
2681
|
Ke as customDomainSchema,
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2682
|
+
qo as customDomainWithTenantIdSchema,
|
|
2683
|
+
Ln as customTextEntrySchema,
|
|
2684
|
+
Oo as customTextSchema,
|
|
2685
|
+
Rn as dailyStatsSchema,
|
|
2686
|
+
bn as emailProviderSchema,
|
|
2681
2687
|
ae as emailVerificationRulesSchema,
|
|
2682
2688
|
re as emailVerifyActionSchema,
|
|
2683
2689
|
Ue as endingSchema,
|
|
2684
|
-
|
|
2690
|
+
At as fieldComponentSchema,
|
|
2685
2691
|
pe as flowActionStepSchema,
|
|
2686
2692
|
_e as flowInsertSchema,
|
|
2687
|
-
|
|
2693
|
+
Uo as flowSchema,
|
|
2688
2694
|
Te as flowsFieldComponentSchema,
|
|
2689
2695
|
Re as flowsFlowNodeSchema,
|
|
2690
2696
|
je as flowsStepNodeSchema,
|
|
2691
2697
|
u as fontDetailsSchema,
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
+
to as fontsSchema,
|
|
2699
|
+
Vo as formControlSchema,
|
|
2700
|
+
Ot as formInsertSchema,
|
|
2701
|
+
k as formNodeComponentDefinition,
|
|
2702
|
+
Tt as formNodeSchema,
|
|
2703
|
+
Yo as formSchema,
|
|
2698
2704
|
Oe as genericComponentSchema,
|
|
2699
2705
|
Le as genericNodeSchema,
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2706
|
+
Hn as getConnectionIdentifierConfig,
|
|
2707
|
+
xt as hookCodeInsertSchema,
|
|
2708
|
+
nn as hookCodeSchema,
|
|
2709
|
+
tn as hookInsertSchema,
|
|
2704
2710
|
on as hookSchema,
|
|
2705
|
-
|
|
2706
|
-
|
|
2711
|
+
M as hookTemplateId,
|
|
2712
|
+
en as hookTemplates,
|
|
2707
2713
|
ge as identitySchema,
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2714
|
+
Ht as inviteInsertSchema,
|
|
2715
|
+
an as inviteSchema,
|
|
2716
|
+
Mt as inviteeSchema,
|
|
2717
|
+
Pt as inviterSchema,
|
|
2718
|
+
Zo as isBlockComponent,
|
|
2719
|
+
Jo as isFieldComponent,
|
|
2720
|
+
$o as isWidgetComponent,
|
|
2721
|
+
sn as jwksKeySchema,
|
|
2722
|
+
Gt as jwksSchema,
|
|
2717
2723
|
Ce as legalComponentSchema,
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
+
oe as locationInfoSchema,
|
|
2725
|
+
Vt as logInsertSchema,
|
|
2726
|
+
cn as logSchema,
|
|
2727
|
+
Wt as loginSessionInsertSchema,
|
|
2728
|
+
ln as loginSessionSchema,
|
|
2729
|
+
Bt as loginSessionStateSchema,
|
|
2724
2730
|
ve as nodeSchema,
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2731
|
+
rn as openIDConfigurationSchema,
|
|
2732
|
+
So as organizationBrandingSchema,
|
|
2733
|
+
Ao as organizationEnabledConnectionSchema,
|
|
2734
|
+
Io as organizationInsertSchema,
|
|
2735
|
+
Nn as organizationSchema,
|
|
2736
|
+
yo as organizationTokenQuotaSchema,
|
|
2737
|
+
oo as pageBackgroundSchema,
|
|
2738
|
+
xn as parseUserId,
|
|
2739
|
+
Yt as passwordInsertSchema,
|
|
2740
|
+
pn as passwordSchema,
|
|
2735
2741
|
de as profileDataSchema,
|
|
2736
|
-
|
|
2737
|
-
|
|
2742
|
+
To as promptScreenSchema,
|
|
2743
|
+
hn as promptSettingSchema,
|
|
2738
2744
|
ce as redirectActionSchema,
|
|
2739
|
-
|
|
2740
|
-
|
|
2745
|
+
ao as refreshTokenInsertSchema,
|
|
2746
|
+
fn as refreshTokenSchema,
|
|
2741
2747
|
ee as requestContextSchema,
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
+
lo as resourceServerInsertSchema,
|
|
2749
|
+
An as resourceServerListSchema,
|
|
2750
|
+
ro as resourceServerOptionsSchema,
|
|
2751
|
+
co as resourceServerSchema,
|
|
2752
|
+
so as resourceServerScopeSchema,
|
|
2753
|
+
te as responseContextSchema,
|
|
2748
2754
|
ye as richTextComponentSchema,
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2755
|
+
fo as roleInsertSchema,
|
|
2756
|
+
On as roleListSchema,
|
|
2757
|
+
po as rolePermissionInsertSchema,
|
|
2758
|
+
yn as rolePermissionListSchema,
|
|
2759
|
+
_o as rolePermissionSchema,
|
|
2760
|
+
Eo as roleSchema,
|
|
2761
|
+
wt as screenLinkSchema,
|
|
2762
|
+
Qt as sessionInsertSchema,
|
|
2763
|
+
_n as sessionSchema,
|
|
2764
|
+
dn as signingKeySchema,
|
|
2765
|
+
Sn as smsProviderSchema,
|
|
2766
|
+
En as smsSendParamsSchema,
|
|
2761
2767
|
ke as startSchema,
|
|
2762
2768
|
J as targetSchema,
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2769
|
+
Zt as tenantInsertSchema,
|
|
2770
|
+
gn as tenantSchema,
|
|
2771
|
+
jn as tenantSettingsSchema,
|
|
2772
|
+
io as themeInsertSchema,
|
|
2773
|
+
mn as themeSchema,
|
|
2774
|
+
un as tokenResponseSchema,
|
|
2775
|
+
xo as totalsSchema,
|
|
2776
|
+
Qo as uiScreenSchema,
|
|
2771
2777
|
me as userInsertSchema,
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2778
|
+
Co as userOrganizationInsertSchema,
|
|
2779
|
+
wn as userOrganizationSchema,
|
|
2780
|
+
go as userPermissionInsertSchema,
|
|
2781
|
+
In as userPermissionListSchema,
|
|
2782
|
+
uo as userPermissionSchema,
|
|
2783
|
+
Cn as userPermissionWithDetailsListSchema,
|
|
2784
|
+
mo as userPermissionWithDetailsSchema,
|
|
2785
|
+
Mo as userResponseSchema,
|
|
2786
|
+
ho as userRoleInsertSchema,
|
|
2787
|
+
Tn as userRoleListSchema,
|
|
2788
|
+
bo as userRoleSchema,
|
|
2783
2789
|
he as userSchema,
|
|
2784
2790
|
We as verificationMethodsSchema,
|
|
2785
|
-
|
|
2786
|
-
|
|
2791
|
+
St as widgetComponentSchema,
|
|
2792
|
+
no as widgetSchema
|
|
2787
2793
|
};
|