@authhero/adapter-interfaces 1.4.0 → 1.5.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 +141 -7
- package/dist/adapter-interfaces.mjs +438 -425
- 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
|
+
}), Ro = N.partial().extend({
|
|
22
|
+
status: e.enum(["draft", "built"]).optional(),
|
|
23
|
+
deployed_at: e.string().optional()
|
|
24
|
+
}), Do = 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
|
+
}), Lo = ie.extend({
|
|
94
97
|
id: e.string()
|
|
95
|
-
}),
|
|
98
|
+
}), vo = e.enum(["AUTH0", "EMAIL", "REDIRECT"]), ko = e.enum([
|
|
96
99
|
"CREATE_USER",
|
|
97
100
|
"GET_USER",
|
|
98
101
|
"UPDATE_USER",
|
|
99
102
|
"SEND_REQUEST",
|
|
100
103
|
"SEND_EMAIL"
|
|
101
|
-
]),
|
|
104
|
+
]), Uo = 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
|
+
}), Fo = _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
|
+
}), xo = 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
|
+
}), Po = 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
|
+
}), Mo = he.omit({
|
|
290
|
+
registration_completed_at: !0
|
|
291
|
+
}), Ho = 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
|
+
}), Go = 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
|
+
}), Bo = 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(), Wo = 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
|
+
}), Ko = 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
|
+
}), zo = 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
|
+
}), qo = 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
|
+
}), Xo = 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
|
+
]), Vo = /* @__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
|
+
]), Yo = 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
|
+
}), Qo = 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
|
+
}), Zo = 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 $o(t) {
|
|
1362
|
+
return t.category === "BLOCK";
|
|
1358
1363
|
}
|
|
1359
|
-
function
|
|
1360
|
-
return
|
|
1364
|
+
function Jo(t) {
|
|
1365
|
+
return t.category === "WIDGET";
|
|
1361
1366
|
}
|
|
1362
|
-
function
|
|
1363
|
-
return
|
|
1367
|
+
function en(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
|
+
]), tn = {
|
|
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
|
+
}), on = 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
|
-
}),
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
]),
|
|
1457
|
+
}), nn = e.union([
|
|
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
|
+
}), an = 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
|
+
}), sn = 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
|
-
}),
|
|
1506
|
-
keys: e.array(
|
|
1507
|
-
}),
|
|
1510
|
+
}), rn = e.object({
|
|
1511
|
+
keys: e.array(Gt)
|
|
1512
|
+
}), ln = e.object({
|
|
1508
1513
|
issuer: e.string(),
|
|
1509
1514
|
authorization_endpoint: e.string(),
|
|
1510
1515
|
token_endpoint: e.string(),
|
|
@@ -1526,8 +1531,11 @@ 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({
|
|
1536
|
+
strategy: e.string(),
|
|
1537
|
+
strategy_type: e.string()
|
|
1538
|
+
}), Kt = e.object({
|
|
1531
1539
|
csrf_token: e.string(),
|
|
1532
1540
|
auth0Client: e.string().optional(),
|
|
1533
1541
|
authParams: xe,
|
|
@@ -1537,7 +1545,7 @@ const Wo = e.nativeEnum(M), Ko = e.object({
|
|
|
1537
1545
|
useragent: e.string().optional(),
|
|
1538
1546
|
session_id: e.string().optional(),
|
|
1539
1547
|
authorization_url: e.string().optional(),
|
|
1540
|
-
state:
|
|
1548
|
+
state: Bt.optional().default(
|
|
1541
1549
|
"pending"
|
|
1542
1550
|
/* PENDING */
|
|
1543
1551
|
),
|
|
@@ -1546,18 +1554,21 @@ const Wo = e.nativeEnum(M), Ko = e.object({
|
|
|
1546
1554
|
failure_reason: e.string().optional(),
|
|
1547
1555
|
user_id: e.string().optional(),
|
|
1548
1556
|
// Set once user is authenticated
|
|
1549
|
-
auth_connection: e.string().optional()
|
|
1557
|
+
auth_connection: e.string().optional(),
|
|
1550
1558
|
// The connection used to authenticate (may differ from primary user's connection)
|
|
1559
|
+
auth_strategy: Wt.optional(),
|
|
1560
|
+
authenticated_at: e.string().optional()
|
|
1561
|
+
// ISO timestamp persisted for audit/metadata; not used to reject resumed sessions
|
|
1551
1562
|
}).openapi({
|
|
1552
1563
|
description: "This represents a login sesion"
|
|
1553
|
-
}),
|
|
1554
|
-
...
|
|
1564
|
+
}), cn = e.object({
|
|
1565
|
+
...Kt.shape,
|
|
1555
1566
|
id: e.string().openapi({
|
|
1556
1567
|
description: "This is is used as the state in the universal login"
|
|
1557
1568
|
}),
|
|
1558
1569
|
created_at: e.string(),
|
|
1559
1570
|
updated_at: e.string()
|
|
1560
|
-
}),
|
|
1571
|
+
}), zt = {
|
|
1561
1572
|
// Network & System
|
|
1562
1573
|
ACLS_SUMMARY: "acls_summary",
|
|
1563
1574
|
ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
|
|
@@ -1729,24 +1740,24 @@ const Wo = e.nativeEnum(M), Ko = e.object({
|
|
|
1729
1740
|
WARNING_DURING_LOGIN: "w",
|
|
1730
1741
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
1731
1742
|
WARNING_USER_MANAGEMENT: "wum"
|
|
1732
|
-
},
|
|
1733
|
-
(
|
|
1743
|
+
}, qt = e.string().refine(
|
|
1744
|
+
(t) => Object.values(zt).includes(t),
|
|
1734
1745
|
{ message: "Invalid log type" }
|
|
1735
|
-
),
|
|
1746
|
+
), Xt = e.object({
|
|
1736
1747
|
name: e.string(),
|
|
1737
1748
|
version: e.string(),
|
|
1738
1749
|
env: e.object({
|
|
1739
1750
|
node: e.string().optional()
|
|
1740
1751
|
}).optional()
|
|
1741
|
-
}),
|
|
1752
|
+
}), Vt = e.object({
|
|
1742
1753
|
country_code: e.string().length(2),
|
|
1743
1754
|
city_name: e.string(),
|
|
1744
1755
|
latitude: e.string(),
|
|
1745
1756
|
longitude: e.string(),
|
|
1746
1757
|
time_zone: e.string(),
|
|
1747
1758
|
continent_code: e.string()
|
|
1748
|
-
}),
|
|
1749
|
-
type:
|
|
1759
|
+
}), Yt = e.object({
|
|
1760
|
+
type: qt,
|
|
1750
1761
|
date: e.string(),
|
|
1751
1762
|
description: e.string().optional(),
|
|
1752
1763
|
ip: e.string().optional(),
|
|
@@ -1765,30 +1776,30 @@ const Wo = e.nativeEnum(M), Ko = e.object({
|
|
|
1765
1776
|
strategy: e.string().optional(),
|
|
1766
1777
|
strategy_type: e.string().optional(),
|
|
1767
1778
|
hostname: e.string().optional(),
|
|
1768
|
-
auth0_client:
|
|
1779
|
+
auth0_client: Xt.optional(),
|
|
1769
1780
|
log_id: e.string().optional(),
|
|
1770
|
-
location_info:
|
|
1771
|
-
}),
|
|
1772
|
-
...
|
|
1781
|
+
location_info: Vt.optional()
|
|
1782
|
+
}), pn = e.object({
|
|
1783
|
+
...Yt.shape,
|
|
1773
1784
|
log_id: e.string()
|
|
1774
|
-
}),
|
|
1785
|
+
}), Qt = e.object({
|
|
1775
1786
|
id: e.string().optional(),
|
|
1776
1787
|
user_id: e.string(),
|
|
1777
1788
|
password: e.string(),
|
|
1778
1789
|
algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
|
|
1779
1790
|
is_current: e.boolean().default(!0)
|
|
1780
|
-
}),
|
|
1791
|
+
}), _n = Qt.extend({
|
|
1781
1792
|
id: e.string(),
|
|
1782
1793
|
created_at: e.string(),
|
|
1783
1794
|
updated_at: e.string()
|
|
1784
|
-
}),
|
|
1795
|
+
}), G = e.object({
|
|
1785
1796
|
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
1786
1797
|
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
1787
1798
|
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
1788
1799
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
1789
1800
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
1790
1801
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
1791
|
-
}),
|
|
1802
|
+
}), Zt = e.object({
|
|
1792
1803
|
id: e.string(),
|
|
1793
1804
|
revoked_at: e.string().optional(),
|
|
1794
1805
|
used_at: e.string().optional(),
|
|
@@ -1796,17 +1807,17 @@ const Wo = e.nativeEnum(M), Ko = e.object({
|
|
|
1796
1807
|
expires_at: e.string().optional(),
|
|
1797
1808
|
login_session_id: e.string(),
|
|
1798
1809
|
idle_expires_at: e.string().optional(),
|
|
1799
|
-
device:
|
|
1810
|
+
device: G.describe(
|
|
1800
1811
|
"Metadata related to the device used in the session"
|
|
1801
1812
|
),
|
|
1802
1813
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
1803
|
-
}),
|
|
1814
|
+
}), dn = e.object({
|
|
1804
1815
|
created_at: e.string(),
|
|
1805
1816
|
updated_at: e.string(),
|
|
1806
1817
|
authenticated_at: e.string(),
|
|
1807
1818
|
last_interaction_at: e.string(),
|
|
1808
|
-
...
|
|
1809
|
-
}),
|
|
1819
|
+
...Zt.shape
|
|
1820
|
+
}), gn = e.object({
|
|
1810
1821
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
1811
1822
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
1812
1823
|
fingerprint: e.string().openapi({ description: "The cert fingerprint" }),
|
|
@@ -1831,7 +1842,7 @@ const Wo = e.nativeEnum(M), Ko = e.object({
|
|
|
1831
1842
|
type: e.enum(["jwt_signing", "saml_encryption"]).openapi({
|
|
1832
1843
|
description: "The type of the signing key"
|
|
1833
1844
|
})
|
|
1834
|
-
}), $
|
|
1845
|
+
}), $t = e.object({
|
|
1835
1846
|
id: e.string().optional(),
|
|
1836
1847
|
// Basic settings
|
|
1837
1848
|
audience: e.string(),
|
|
@@ -1986,14 +1997,14 @@ const Wo = e.nativeEnum(M), Ko = e.object({
|
|
|
1986
1997
|
message: e.string().optional()
|
|
1987
1998
|
}).optional()
|
|
1988
1999
|
}).optional()
|
|
1989
|
-
}),
|
|
1990
|
-
created_at: e.string().nullable().transform((
|
|
1991
|
-
updated_at: e.string().nullable().transform((
|
|
1992
|
-
...$
|
|
2000
|
+
}), un = e.object({
|
|
2001
|
+
created_at: e.string().nullable().transform((t) => t ?? ""),
|
|
2002
|
+
updated_at: e.string().nullable().transform((t) => t ?? ""),
|
|
2003
|
+
...$t.shape,
|
|
1993
2004
|
id: e.string()
|
|
1994
2005
|
});
|
|
1995
|
-
var
|
|
1996
|
-
const
|
|
2006
|
+
var Jt = /* @__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))(Jt || {});
|
|
2007
|
+
const mn = e.object({
|
|
1997
2008
|
access_token: e.string(),
|
|
1998
2009
|
id_token: e.string().optional(),
|
|
1999
2010
|
scope: e.string().optional(),
|
|
@@ -2006,7 +2017,7 @@ e.object({
|
|
|
2006
2017
|
code: e.string(),
|
|
2007
2018
|
state: e.string().optional()
|
|
2008
2019
|
});
|
|
2009
|
-
const
|
|
2020
|
+
const eo = e.object({
|
|
2010
2021
|
button_border_radius: e.number(),
|
|
2011
2022
|
button_border_weight: e.number(),
|
|
2012
2023
|
buttons_style: e.enum(["pill", "rounded", "sharp"]),
|
|
@@ -2016,7 +2027,7 @@ const et = e.object({
|
|
|
2016
2027
|
show_widget_shadow: e.boolean(),
|
|
2017
2028
|
widget_border_weight: e.number(),
|
|
2018
2029
|
widget_corner_radius: e.number()
|
|
2019
|
-
}),
|
|
2030
|
+
}), to = e.object({
|
|
2020
2031
|
base_focus_color: e.string(),
|
|
2021
2032
|
base_hover_color: e.string(),
|
|
2022
2033
|
body_text: e.string(),
|
|
@@ -2039,7 +2050,7 @@ const et = e.object({
|
|
|
2039
2050
|
}), u = e.object({
|
|
2040
2051
|
bold: e.boolean(),
|
|
2041
2052
|
size: e.number()
|
|
2042
|
-
}),
|
|
2053
|
+
}), oo = e.object({
|
|
2043
2054
|
body_text: u,
|
|
2044
2055
|
buttons_text: u,
|
|
2045
2056
|
font_url: e.string(),
|
|
@@ -2049,31 +2060,31 @@ const et = e.object({
|
|
|
2049
2060
|
reference_text_size: e.number(),
|
|
2050
2061
|
subtitle: u,
|
|
2051
2062
|
title: u
|
|
2052
|
-
}),
|
|
2063
|
+
}), no = e.object({
|
|
2053
2064
|
background_color: e.string(),
|
|
2054
2065
|
background_image_url: e.string(),
|
|
2055
2066
|
page_layout: e.enum(["center", "left", "right"])
|
|
2056
|
-
}),
|
|
2067
|
+
}), io = e.object({
|
|
2057
2068
|
header_text_alignment: e.enum(["center", "left", "right"]),
|
|
2058
2069
|
logo_height: e.number(),
|
|
2059
2070
|
logo_position: e.enum(["center", "left", "none", "right"]),
|
|
2060
2071
|
logo_url: e.string(),
|
|
2061
2072
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
2062
|
-
}),
|
|
2063
|
-
borders:
|
|
2064
|
-
colors:
|
|
2073
|
+
}), ao = e.object({
|
|
2074
|
+
borders: eo,
|
|
2075
|
+
colors: to,
|
|
2065
2076
|
displayName: e.string(),
|
|
2066
|
-
fonts:
|
|
2067
|
-
page_background:
|
|
2068
|
-
widget:
|
|
2069
|
-
}),
|
|
2077
|
+
fonts: oo,
|
|
2078
|
+
page_background: no,
|
|
2079
|
+
widget: io
|
|
2080
|
+
}), hn = ao.extend({
|
|
2070
2081
|
themeId: e.string()
|
|
2071
|
-
}),
|
|
2082
|
+
}), bn = e.object({
|
|
2072
2083
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
2073
2084
|
identifier_first: e.boolean().default(!0),
|
|
2074
2085
|
password_first: e.boolean().default(!1),
|
|
2075
2086
|
webauthn_platform_first_factor: e.boolean()
|
|
2076
|
-
}),
|
|
2087
|
+
}), fn = e.object({
|
|
2077
2088
|
name: e.string(),
|
|
2078
2089
|
enabled: e.boolean().optional().default(!0),
|
|
2079
2090
|
default_from_address: e.string().optional(),
|
|
@@ -2103,7 +2114,7 @@ const et = e.object({
|
|
|
2103
2114
|
})
|
|
2104
2115
|
]),
|
|
2105
2116
|
settings: e.object({}).optional()
|
|
2106
|
-
}),
|
|
2117
|
+
}), so = e.object({
|
|
2107
2118
|
// The actual refresh token value (primary key).
|
|
2108
2119
|
id: e.string(),
|
|
2109
2120
|
// Link to the login session
|
|
@@ -2116,7 +2127,7 @@ const et = e.object({
|
|
|
2116
2127
|
idle_expires_at: e.string().optional(),
|
|
2117
2128
|
// When the token was last used.
|
|
2118
2129
|
last_exchanged_at: e.string().optional(),
|
|
2119
|
-
device:
|
|
2130
|
+
device: G,
|
|
2120
2131
|
resource_servers: e.array(
|
|
2121
2132
|
e.object({
|
|
2122
2133
|
audience: e.string(),
|
|
@@ -2124,21 +2135,21 @@ const et = e.object({
|
|
|
2124
2135
|
})
|
|
2125
2136
|
),
|
|
2126
2137
|
rotating: e.boolean()
|
|
2127
|
-
}),
|
|
2138
|
+
}), En = e.object({
|
|
2128
2139
|
// When the refresh token record was created.
|
|
2129
2140
|
created_at: e.string(),
|
|
2130
2141
|
// Spread in the rest of the refresh token properties.
|
|
2131
|
-
...
|
|
2132
|
-
}),
|
|
2142
|
+
...so.shape
|
|
2143
|
+
}), Sn = e.object({
|
|
2133
2144
|
to: e.string(),
|
|
2134
2145
|
message: e.string()
|
|
2135
|
-
}),
|
|
2146
|
+
}), An = e.object({
|
|
2136
2147
|
name: e.string(),
|
|
2137
2148
|
options: e.object({})
|
|
2138
|
-
}),
|
|
2149
|
+
}), ro = e.object({
|
|
2139
2150
|
value: e.string(),
|
|
2140
2151
|
description: e.string().optional()
|
|
2141
|
-
}),
|
|
2152
|
+
}), lo = e.object({
|
|
2142
2153
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
2143
2154
|
enforce_policies: e.boolean().optional(),
|
|
2144
2155
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -2148,11 +2159,11 @@ const et = e.object({
|
|
|
2148
2159
|
mtls: e.object({
|
|
2149
2160
|
bound_access_tokens: e.boolean().optional()
|
|
2150
2161
|
}).optional()
|
|
2151
|
-
}),
|
|
2162
|
+
}), co = e.object({
|
|
2152
2163
|
id: e.string().optional(),
|
|
2153
2164
|
name: e.string(),
|
|
2154
2165
|
identifier: e.string(),
|
|
2155
|
-
scopes: e.array(
|
|
2166
|
+
scopes: e.array(ro).optional(),
|
|
2156
2167
|
signing_alg: e.string().optional(),
|
|
2157
2168
|
signing_secret: e.string().optional(),
|
|
2158
2169
|
token_lifetime: e.number().default(86400),
|
|
@@ -2160,30 +2171,30 @@ const et = e.object({
|
|
|
2160
2171
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
2161
2172
|
allow_offline_access: e.boolean().optional(),
|
|
2162
2173
|
verificationKey: e.string().optional(),
|
|
2163
|
-
options:
|
|
2174
|
+
options: lo.optional(),
|
|
2164
2175
|
is_system: e.boolean().optional(),
|
|
2165
2176
|
metadata: e.record(e.any()).optional()
|
|
2166
|
-
}),
|
|
2167
|
-
...
|
|
2177
|
+
}), po = e.object({
|
|
2178
|
+
...co.shape,
|
|
2168
2179
|
created_at: e.string().optional(),
|
|
2169
2180
|
updated_at: e.string().optional()
|
|
2170
|
-
}),
|
|
2181
|
+
}), yn = e.array(po), _o = e.object({
|
|
2171
2182
|
role_id: e.string(),
|
|
2172
2183
|
resource_server_identifier: e.string(),
|
|
2173
2184
|
permission_name: e.string()
|
|
2174
|
-
}),
|
|
2175
|
-
...
|
|
2185
|
+
}), go = e.object({
|
|
2186
|
+
..._o.shape,
|
|
2176
2187
|
created_at: e.string()
|
|
2177
|
-
}),
|
|
2188
|
+
}), In = e.array(go), uo = e.object({
|
|
2178
2189
|
user_id: e.string(),
|
|
2179
2190
|
resource_server_identifier: e.string(),
|
|
2180
2191
|
permission_name: e.string(),
|
|
2181
2192
|
organization_id: e.string().optional()
|
|
2182
|
-
}),
|
|
2183
|
-
...
|
|
2193
|
+
}), mo = e.object({
|
|
2194
|
+
...uo.shape,
|
|
2184
2195
|
tenant_id: e.string(),
|
|
2185
2196
|
created_at: e.string().optional()
|
|
2186
|
-
}),
|
|
2197
|
+
}), Cn = e.array(mo), ho = e.object({
|
|
2187
2198
|
user_id: e.string(),
|
|
2188
2199
|
resource_server_identifier: e.string(),
|
|
2189
2200
|
resource_server_name: e.string(),
|
|
@@ -2191,17 +2202,17 @@ const et = e.object({
|
|
|
2191
2202
|
description: e.string().nullable().optional(),
|
|
2192
2203
|
created_at: e.string().optional(),
|
|
2193
2204
|
organization_id: e.string().optional()
|
|
2194
|
-
}),
|
|
2195
|
-
|
|
2196
|
-
),
|
|
2205
|
+
}), Tn = e.array(
|
|
2206
|
+
ho
|
|
2207
|
+
), bo = e.object({
|
|
2197
2208
|
user_id: e.string(),
|
|
2198
2209
|
role_id: e.string(),
|
|
2199
2210
|
organization_id: e.string().optional()
|
|
2200
|
-
}),
|
|
2201
|
-
...
|
|
2211
|
+
}), fo = e.object({
|
|
2212
|
+
...bo.shape,
|
|
2202
2213
|
tenant_id: e.string(),
|
|
2203
2214
|
created_at: e.string().optional()
|
|
2204
|
-
}),
|
|
2215
|
+
}), On = e.array(fo), Eo = e.object({
|
|
2205
2216
|
id: e.string().optional().openapi({
|
|
2206
2217
|
description: "The unique identifier of the role. If not provided, one will be generated."
|
|
2207
2218
|
}),
|
|
@@ -2215,13 +2226,13 @@ const et = e.object({
|
|
|
2215
2226
|
metadata: e.record(e.any()).optional().openapi({
|
|
2216
2227
|
description: "Metadata associated with the role. Can be used to control sync behavior in multi-tenancy scenarios."
|
|
2217
2228
|
})
|
|
2218
|
-
}),
|
|
2229
|
+
}), So = Eo.extend({
|
|
2219
2230
|
id: e.string().openapi({
|
|
2220
2231
|
description: "The unique identifier of the role"
|
|
2221
2232
|
}),
|
|
2222
2233
|
created_at: e.string().optional(),
|
|
2223
2234
|
updated_at: e.string().optional()
|
|
2224
|
-
}),
|
|
2235
|
+
}), Nn = e.array(So), Ao = e.object({
|
|
2225
2236
|
logo_url: e.string().optional().openapi({
|
|
2226
2237
|
description: "URL of the organization's logo"
|
|
2227
2238
|
}),
|
|
@@ -2233,7 +2244,7 @@ const et = e.object({
|
|
|
2233
2244
|
description: "Page background color in hex format (e.g., #FFFFFF)"
|
|
2234
2245
|
})
|
|
2235
2246
|
}).optional()
|
|
2236
|
-
}).optional(),
|
|
2247
|
+
}).optional(), yo = e.object({
|
|
2237
2248
|
connection_id: e.string().openapi({
|
|
2238
2249
|
description: "ID of the connection"
|
|
2239
2250
|
}),
|
|
@@ -2246,7 +2257,7 @@ const et = e.object({
|
|
|
2246
2257
|
is_signup_enabled: e.boolean().default(!0).openapi({
|
|
2247
2258
|
description: "Whether signup is enabled for this connection"
|
|
2248
2259
|
})
|
|
2249
|
-
}),
|
|
2260
|
+
}), Io = e.object({
|
|
2250
2261
|
client_credentials: e.object({
|
|
2251
2262
|
enforce: e.boolean().default(!1).openapi({
|
|
2252
2263
|
description: "Whether to enforce token quota limits"
|
|
@@ -2258,7 +2269,7 @@ const et = e.object({
|
|
|
2258
2269
|
description: "Maximum tokens per hour (0 = unlimited)"
|
|
2259
2270
|
})
|
|
2260
2271
|
}).optional()
|
|
2261
|
-
}).optional(),
|
|
2272
|
+
}).optional(), Co = e.object({
|
|
2262
2273
|
id: e.string().optional(),
|
|
2263
2274
|
name: e.string().min(1).regex(/^[a-z0-9_-]+$/, {
|
|
2264
2275
|
message: "Organization name must be lowercase and can only contain letters, numbers, hyphens, and underscores"
|
|
@@ -2268,34 +2279,34 @@ const et = e.object({
|
|
|
2268
2279
|
display_name: e.string().optional().openapi({
|
|
2269
2280
|
description: "The display name of the organization"
|
|
2270
2281
|
}),
|
|
2271
|
-
branding:
|
|
2282
|
+
branding: Ao,
|
|
2272
2283
|
metadata: e.record(e.any()).default({}).optional().openapi({
|
|
2273
2284
|
description: "Custom metadata for the organization"
|
|
2274
2285
|
}),
|
|
2275
|
-
enabled_connections: e.array(
|
|
2286
|
+
enabled_connections: e.array(yo).default([]).optional().openapi({
|
|
2276
2287
|
description: "List of enabled connections for the organization"
|
|
2277
2288
|
}),
|
|
2278
|
-
token_quota:
|
|
2279
|
-
}),
|
|
2280
|
-
...
|
|
2289
|
+
token_quota: Io
|
|
2290
|
+
}), wn = e.object({
|
|
2291
|
+
...Co.shape,
|
|
2281
2292
|
...s.shape,
|
|
2282
2293
|
id: e.string(),
|
|
2283
2294
|
// Override name to be lenient when reading from database (to support existing uppercase names)
|
|
2284
2295
|
name: e.string().min(1).openapi({
|
|
2285
2296
|
description: "The name of the organization"
|
|
2286
2297
|
})
|
|
2287
|
-
}),
|
|
2298
|
+
}), To = e.object({
|
|
2288
2299
|
user_id: e.string().openapi({
|
|
2289
2300
|
description: "ID of the user"
|
|
2290
2301
|
}),
|
|
2291
2302
|
organization_id: e.string().openapi({
|
|
2292
2303
|
description: "ID of the organization"
|
|
2293
2304
|
})
|
|
2294
|
-
}),
|
|
2295
|
-
...
|
|
2305
|
+
}), jn = e.object({
|
|
2306
|
+
...To.shape,
|
|
2296
2307
|
...s.shape,
|
|
2297
2308
|
id: e.string()
|
|
2298
|
-
}),
|
|
2309
|
+
}), Rn = e.object({
|
|
2299
2310
|
// Session settings
|
|
2300
2311
|
idle_session_lifetime: e.number().default(72),
|
|
2301
2312
|
session_lifetime: e.number().default(168),
|
|
@@ -2395,7 +2406,7 @@ const et = e.object({
|
|
|
2395
2406
|
message: e.string().optional()
|
|
2396
2407
|
}).optional()
|
|
2397
2408
|
}).optional()
|
|
2398
|
-
}),
|
|
2409
|
+
}), Dn = e.object({
|
|
2399
2410
|
date: e.string().openapi({
|
|
2400
2411
|
description: "Date these events occurred in ISO 8601 format",
|
|
2401
2412
|
example: "2025-12-19"
|
|
@@ -2420,10 +2431,10 @@ const et = e.object({
|
|
|
2420
2431
|
description: "Approximate date and time the first event occurred in ISO 8601 format",
|
|
2421
2432
|
example: "2025-12-19T00:00:00.000Z"
|
|
2422
2433
|
})
|
|
2423
|
-
}),
|
|
2434
|
+
}), Ln = e.number().openapi({
|
|
2424
2435
|
description: "Number of active users in the last 30 days",
|
|
2425
2436
|
example: 1234
|
|
2426
|
-
}),
|
|
2437
|
+
}), Oo = e.enum([
|
|
2427
2438
|
"login",
|
|
2428
2439
|
"login-id",
|
|
2429
2440
|
"login-password",
|
|
@@ -2452,17 +2463,17 @@ const et = e.object({
|
|
|
2452
2463
|
"custom-form",
|
|
2453
2464
|
"login-passwordless",
|
|
2454
2465
|
"mfa-login-options"
|
|
2455
|
-
]),
|
|
2466
|
+
]), No = e.record(e.string(), e.record(e.string(), e.string())).openapi({
|
|
2456
2467
|
type: "object",
|
|
2457
2468
|
additionalProperties: {
|
|
2458
2469
|
type: "object",
|
|
2459
2470
|
additionalProperties: { type: "string" }
|
|
2460
2471
|
}
|
|
2461
|
-
}),
|
|
2462
|
-
prompt:
|
|
2472
|
+
}), vn = e.object({
|
|
2473
|
+
prompt: Oo,
|
|
2463
2474
|
language: e.string(),
|
|
2464
|
-
custom_text:
|
|
2465
|
-
}),
|
|
2475
|
+
custom_text: No
|
|
2476
|
+
}), kn = {
|
|
2466
2477
|
EMAIL: "email",
|
|
2467
2478
|
SMS: "sms",
|
|
2468
2479
|
USERNAME_PASSWORD: "Username-Password-Authentication",
|
|
@@ -2477,11 +2488,11 @@ const et = e.object({
|
|
|
2477
2488
|
SAMLP: "samlp",
|
|
2478
2489
|
WAAD: "waad",
|
|
2479
2490
|
ADFS: "adfs"
|
|
2480
|
-
},
|
|
2491
|
+
}, Un = {
|
|
2481
2492
|
DATABASE: "database",
|
|
2482
2493
|
SOCIAL: "social",
|
|
2483
2494
|
PASSWORDLESS: "passwordless"
|
|
2484
|
-
},
|
|
2495
|
+
}, wo = e.enum([
|
|
2485
2496
|
"phone",
|
|
2486
2497
|
"totp",
|
|
2487
2498
|
"email",
|
|
@@ -2489,9 +2500,9 @@ const et = e.object({
|
|
|
2489
2500
|
"webauthn-roaming",
|
|
2490
2501
|
"webauthn-platform",
|
|
2491
2502
|
"passkey"
|
|
2492
|
-
]),
|
|
2503
|
+
]), B = e.object({
|
|
2493
2504
|
user_id: e.string(),
|
|
2494
|
-
type:
|
|
2505
|
+
type: wo,
|
|
2495
2506
|
// Phone-specific
|
|
2496
2507
|
phone_number: e.string().optional(),
|
|
2497
2508
|
// TOTP-specific
|
|
@@ -2506,43 +2517,43 @@ const et = e.object({
|
|
|
2506
2517
|
// Common
|
|
2507
2518
|
confirmed: e.boolean().default(!1)
|
|
2508
2519
|
});
|
|
2509
|
-
function
|
|
2510
|
-
|
|
2520
|
+
function W(t, o) {
|
|
2521
|
+
t.type === "phone" && !t.phone_number && o.addIssue({
|
|
2511
2522
|
code: e.ZodIssueCode.custom,
|
|
2512
2523
|
message: "phone_number is required when type is 'phone'",
|
|
2513
2524
|
path: ["phone_number"]
|
|
2514
|
-
}),
|
|
2525
|
+
}), t.type === "totp" && !t.totp_secret && o.addIssue({
|
|
2515
2526
|
code: e.ZodIssueCode.custom,
|
|
2516
2527
|
message: "totp_secret is required when type is 'totp'",
|
|
2517
2528
|
path: ["totp_secret"]
|
|
2518
|
-
}), ["webauthn-roaming", "webauthn-platform", "passkey"].includes(
|
|
2529
|
+
}), ["webauthn-roaming", "webauthn-platform", "passkey"].includes(t.type) && (t.credential_id || o.addIssue({
|
|
2519
2530
|
code: e.ZodIssueCode.custom,
|
|
2520
|
-
message: `credential_id is required when type is '${
|
|
2531
|
+
message: `credential_id is required when type is '${t.type}'`,
|
|
2521
2532
|
path: ["credential_id"]
|
|
2522
|
-
}),
|
|
2533
|
+
}), t.public_key || o.addIssue({
|
|
2523
2534
|
code: e.ZodIssueCode.custom,
|
|
2524
|
-
message: `public_key is required when type is '${
|
|
2535
|
+
message: `public_key is required when type is '${t.type}'`,
|
|
2525
2536
|
path: ["public_key"]
|
|
2526
2537
|
}));
|
|
2527
2538
|
}
|
|
2528
|
-
const
|
|
2529
|
-
...
|
|
2539
|
+
const Fn = B.superRefine(W), xn = e.object({
|
|
2540
|
+
...B.shape,
|
|
2530
2541
|
id: e.string(),
|
|
2531
2542
|
created_at: e.string(),
|
|
2532
2543
|
updated_at: e.string()
|
|
2533
|
-
}).superRefine(
|
|
2534
|
-
function
|
|
2535
|
-
const [
|
|
2536
|
-
if (!
|
|
2537
|
-
throw new Error(`Invalid user_id: ${
|
|
2538
|
-
return { connection:
|
|
2544
|
+
}).superRefine(W);
|
|
2545
|
+
function Pn(t) {
|
|
2546
|
+
const [o, i] = t.split("|");
|
|
2547
|
+
if (!o || !i)
|
|
2548
|
+
throw new Error(`Invalid user_id: ${t}`);
|
|
2549
|
+
return { connection: o, id: i };
|
|
2539
2550
|
}
|
|
2540
|
-
function
|
|
2551
|
+
function Mn(t) {
|
|
2541
2552
|
const {
|
|
2542
|
-
primary:
|
|
2553
|
+
primary: o,
|
|
2543
2554
|
secondaries: i,
|
|
2544
2555
|
syncMethods: O = ["create", "rawCreate", "update", "remove", "delete", "set"]
|
|
2545
|
-
} =
|
|
2556
|
+
} = t, E = {
|
|
2546
2557
|
get(p, a) {
|
|
2547
2558
|
if (typeof a == "symbol")
|
|
2548
2559
|
return p[a];
|
|
@@ -2576,212 +2587,214 @@ function xn(o) {
|
|
|
2576
2587
|
} : _.bind(p);
|
|
2577
2588
|
}
|
|
2578
2589
|
};
|
|
2579
|
-
return new Proxy(
|
|
2590
|
+
return new Proxy(o, E);
|
|
2580
2591
|
}
|
|
2581
|
-
function
|
|
2582
|
-
return
|
|
2592
|
+
function Hn(t) {
|
|
2593
|
+
return t;
|
|
2583
2594
|
}
|
|
2584
|
-
function
|
|
2595
|
+
function Gn(t) {
|
|
2585
2596
|
var E, p, a, _, d, S, g, r, h, A, b, y;
|
|
2586
|
-
const
|
|
2587
|
-
if (!
|
|
2597
|
+
const o = t == null ? void 0 : t.options;
|
|
2598
|
+
if (!o)
|
|
2588
2599
|
return {
|
|
2589
2600
|
usernameIdentifierActive: !1,
|
|
2590
2601
|
emailIdentifierActive: !0,
|
|
2591
2602
|
usernameMinLength: 1,
|
|
2592
2603
|
usernameMaxLength: 15
|
|
2593
2604
|
};
|
|
2594
|
-
const i =
|
|
2605
|
+
const i = o.attributes;
|
|
2595
2606
|
if (i) {
|
|
2596
|
-
const
|
|
2607
|
+
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
2608
|
return {
|
|
2598
|
-
usernameIdentifierActive:
|
|
2599
|
-
emailIdentifierActive:
|
|
2600
|
-
usernameMinLength:
|
|
2601
|
-
usernameMaxLength:
|
|
2609
|
+
usernameIdentifierActive: K,
|
|
2610
|
+
emailIdentifierActive: z,
|
|
2611
|
+
usernameMinLength: q,
|
|
2612
|
+
usernameMaxLength: X
|
|
2602
2613
|
};
|
|
2603
2614
|
}
|
|
2604
2615
|
return {
|
|
2605
|
-
usernameIdentifierActive:
|
|
2616
|
+
usernameIdentifierActive: o.requires_username === !0,
|
|
2606
2617
|
emailIdentifierActive: !0,
|
|
2607
|
-
usernameMinLength: ((A = (h =
|
|
2608
|
-
usernameMaxLength: ((y = (b =
|
|
2618
|
+
usernameMinLength: ((A = (h = o.validation) == null ? void 0 : h.username) == null ? void 0 : A.min) ?? 1,
|
|
2619
|
+
usernameMaxLength: ((y = (b = o.validation) == null ? void 0 : b.username) == null ? void 0 : y.max) ?? 15
|
|
2609
2620
|
};
|
|
2610
2621
|
}
|
|
2611
2622
|
export {
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2623
|
+
ko as Auth0ActionEnum,
|
|
2624
|
+
Xt as Auth0Client,
|
|
2625
|
+
L as AuthorizationResponseMode,
|
|
2626
|
+
D as AuthorizationResponseType,
|
|
2627
|
+
v as CodeChallengeMethod,
|
|
2628
|
+
R as ComponentCategory,
|
|
2629
|
+
j as ComponentType,
|
|
2630
|
+
Uo as EmailActionEnum,
|
|
2631
|
+
Vo as FORM_FIELD_TYPES,
|
|
2632
|
+
vo as FlowActionTypeEnum,
|
|
2633
|
+
Jt as GrantType,
|
|
2634
|
+
Vt as LocationInfo,
|
|
2635
|
+
zt as LogTypes,
|
|
2636
|
+
H as LoginSessionState,
|
|
2626
2637
|
we as NodeType,
|
|
2627
2638
|
le as RedirectTargetEnum,
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2639
|
+
kn as Strategy,
|
|
2640
|
+
Un as StrategyType,
|
|
2641
|
+
Y as actionDependencySchema,
|
|
2642
|
+
N as actionInsertSchema,
|
|
2632
2643
|
De as actionNodeSchema,
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2644
|
+
Do as actionSchema,
|
|
2645
|
+
Q as actionSecretSchema,
|
|
2646
|
+
V as actionTriggerSchema,
|
|
2647
|
+
Ro as actionUpdateSchema,
|
|
2648
|
+
Ln as activeUsersResponseSchema,
|
|
2637
2649
|
$ as actorSchema,
|
|
2638
2650
|
ue as addressSchema,
|
|
2639
2651
|
Z as auditCategorySchema,
|
|
2640
2652
|
ie as auditEventInsertSchema,
|
|
2641
|
-
|
|
2653
|
+
Lo as auditEventSchema,
|
|
2642
2654
|
ne as auth0ClientSchema,
|
|
2643
|
-
|
|
2655
|
+
Wo as auth0FlowInsertSchema,
|
|
2644
2656
|
Fe as auth0FlowSchema,
|
|
2645
|
-
|
|
2657
|
+
xo as auth0QuerySchema,
|
|
2646
2658
|
se as auth0UpdateUserActionSchema,
|
|
2647
|
-
|
|
2659
|
+
Mo as auth0UserResponseSchema,
|
|
2648
2660
|
xe as authParamsSchema,
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2661
|
+
Fn as authenticationMethodInsertSchema,
|
|
2662
|
+
xn as authenticationMethodSchema,
|
|
2663
|
+
wo as authenticationMethodTypeSchema,
|
|
2664
|
+
w as baseUserSchema,
|
|
2665
|
+
Et as blockComponentSchema,
|
|
2666
|
+
eo as bordersSchema,
|
|
2667
|
+
Ko as brandingSchema,
|
|
2656
2668
|
Ie as buttonComponentSchema,
|
|
2657
2669
|
Se as clientGrantInsertSchema,
|
|
2658
|
-
|
|
2670
|
+
Bo as clientGrantListSchema,
|
|
2659
2671
|
Ae as clientGrantSchema,
|
|
2660
2672
|
Ee as clientInsertSchema,
|
|
2661
|
-
|
|
2673
|
+
Go as clientSchema,
|
|
2662
2674
|
Me as codeInsertSchema,
|
|
2663
|
-
|
|
2675
|
+
zo as codeSchema,
|
|
2664
2676
|
Pe as codeTypeSchema,
|
|
2665
|
-
|
|
2666
|
-
|
|
2677
|
+
to as colorsSchema,
|
|
2678
|
+
Nt as componentMessageSchema,
|
|
2667
2679
|
Ne as componentSchema,
|
|
2668
2680
|
Ge as connectionInsertSchema,
|
|
2669
2681
|
He as connectionOptionsSchema,
|
|
2670
|
-
|
|
2682
|
+
qo as connectionSchema,
|
|
2671
2683
|
m as coordinatesSchema,
|
|
2672
|
-
|
|
2673
|
-
|
|
2684
|
+
Mn as createPassthroughAdapter,
|
|
2685
|
+
Hn as createWriteOnlyAdapter,
|
|
2674
2686
|
Be as customDomainInsertSchema,
|
|
2675
2687
|
Ke as customDomainSchema,
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2688
|
+
Xo as customDomainWithTenantIdSchema,
|
|
2689
|
+
vn as customTextEntrySchema,
|
|
2690
|
+
No as customTextSchema,
|
|
2691
|
+
Dn as dailyStatsSchema,
|
|
2692
|
+
fn as emailProviderSchema,
|
|
2681
2693
|
ae as emailVerificationRulesSchema,
|
|
2682
2694
|
re as emailVerifyActionSchema,
|
|
2683
2695
|
Ue as endingSchema,
|
|
2684
|
-
|
|
2696
|
+
At as fieldComponentSchema,
|
|
2685
2697
|
pe as flowActionStepSchema,
|
|
2686
2698
|
_e as flowInsertSchema,
|
|
2687
|
-
|
|
2699
|
+
Fo as flowSchema,
|
|
2688
2700
|
Te as flowsFieldComponentSchema,
|
|
2689
2701
|
Re as flowsFlowNodeSchema,
|
|
2690
2702
|
je as flowsStepNodeSchema,
|
|
2691
2703
|
u as fontDetailsSchema,
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2704
|
+
oo as fontsSchema,
|
|
2705
|
+
Yo as formControlSchema,
|
|
2706
|
+
Ot as formInsertSchema,
|
|
2707
|
+
k as formNodeComponentDefinition,
|
|
2708
|
+
Tt as formNodeSchema,
|
|
2709
|
+
Qo as formSchema,
|
|
2698
2710
|
Oe as genericComponentSchema,
|
|
2699
2711
|
Le as genericNodeSchema,
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2712
|
+
Gn as getConnectionIdentifierConfig,
|
|
2713
|
+
xt as hookCodeInsertSchema,
|
|
2714
|
+
an as hookCodeSchema,
|
|
2715
|
+
on as hookInsertSchema,
|
|
2716
|
+
nn as hookSchema,
|
|
2717
|
+
M as hookTemplateId,
|
|
2718
|
+
tn as hookTemplates,
|
|
2707
2719
|
ge as identitySchema,
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2720
|
+
Ht as inviteInsertSchema,
|
|
2721
|
+
sn as inviteSchema,
|
|
2722
|
+
Mt as inviteeSchema,
|
|
2723
|
+
Pt as inviterSchema,
|
|
2724
|
+
$o as isBlockComponent,
|
|
2725
|
+
en as isFieldComponent,
|
|
2726
|
+
Jo as isWidgetComponent,
|
|
2727
|
+
rn as jwksKeySchema,
|
|
2728
|
+
Gt as jwksSchema,
|
|
2717
2729
|
Ce as legalComponentSchema,
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2730
|
+
oe as locationInfoSchema,
|
|
2731
|
+
Yt as logInsertSchema,
|
|
2732
|
+
pn as logSchema,
|
|
2733
|
+
Wt as loginSessionAuthStrategySchema,
|
|
2734
|
+
Kt as loginSessionInsertSchema,
|
|
2735
|
+
cn as loginSessionSchema,
|
|
2736
|
+
Bt as loginSessionStateSchema,
|
|
2724
2737
|
ve as nodeSchema,
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2738
|
+
ln as openIDConfigurationSchema,
|
|
2739
|
+
Ao as organizationBrandingSchema,
|
|
2740
|
+
yo as organizationEnabledConnectionSchema,
|
|
2741
|
+
Co as organizationInsertSchema,
|
|
2742
|
+
wn as organizationSchema,
|
|
2743
|
+
Io as organizationTokenQuotaSchema,
|
|
2744
|
+
no as pageBackgroundSchema,
|
|
2745
|
+
Pn as parseUserId,
|
|
2746
|
+
Qt as passwordInsertSchema,
|
|
2747
|
+
_n as passwordSchema,
|
|
2735
2748
|
de as profileDataSchema,
|
|
2736
|
-
|
|
2737
|
-
|
|
2749
|
+
Oo as promptScreenSchema,
|
|
2750
|
+
bn as promptSettingSchema,
|
|
2738
2751
|
ce as redirectActionSchema,
|
|
2739
|
-
|
|
2740
|
-
|
|
2752
|
+
so as refreshTokenInsertSchema,
|
|
2753
|
+
En as refreshTokenSchema,
|
|
2741
2754
|
ee as requestContextSchema,
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2755
|
+
co as resourceServerInsertSchema,
|
|
2756
|
+
yn as resourceServerListSchema,
|
|
2757
|
+
lo as resourceServerOptionsSchema,
|
|
2758
|
+
po as resourceServerSchema,
|
|
2759
|
+
ro as resourceServerScopeSchema,
|
|
2760
|
+
te as responseContextSchema,
|
|
2748
2761
|
ye as richTextComponentSchema,
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2762
|
+
Eo as roleInsertSchema,
|
|
2763
|
+
Nn as roleListSchema,
|
|
2764
|
+
_o as rolePermissionInsertSchema,
|
|
2765
|
+
In as rolePermissionListSchema,
|
|
2766
|
+
go as rolePermissionSchema,
|
|
2767
|
+
So as roleSchema,
|
|
2768
|
+
wt as screenLinkSchema,
|
|
2769
|
+
Zt as sessionInsertSchema,
|
|
2770
|
+
dn as sessionSchema,
|
|
2771
|
+
gn as signingKeySchema,
|
|
2772
|
+
An as smsProviderSchema,
|
|
2773
|
+
Sn as smsSendParamsSchema,
|
|
2761
2774
|
ke as startSchema,
|
|
2762
2775
|
J as targetSchema,
|
|
2763
|
-
$
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2776
|
+
$t as tenantInsertSchema,
|
|
2777
|
+
un as tenantSchema,
|
|
2778
|
+
Rn as tenantSettingsSchema,
|
|
2779
|
+
ao as themeInsertSchema,
|
|
2780
|
+
hn as themeSchema,
|
|
2781
|
+
mn as tokenResponseSchema,
|
|
2782
|
+
Po as totalsSchema,
|
|
2783
|
+
Zo as uiScreenSchema,
|
|
2771
2784
|
me as userInsertSchema,
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2785
|
+
To as userOrganizationInsertSchema,
|
|
2786
|
+
jn as userOrganizationSchema,
|
|
2787
|
+
uo as userPermissionInsertSchema,
|
|
2788
|
+
Cn as userPermissionListSchema,
|
|
2789
|
+
mo as userPermissionSchema,
|
|
2790
|
+
Tn as userPermissionWithDetailsListSchema,
|
|
2791
|
+
ho as userPermissionWithDetailsSchema,
|
|
2792
|
+
Ho as userResponseSchema,
|
|
2793
|
+
bo as userRoleInsertSchema,
|
|
2794
|
+
On as userRoleListSchema,
|
|
2795
|
+
fo as userRoleSchema,
|
|
2783
2796
|
he as userSchema,
|
|
2784
2797
|
We as verificationMethodsSchema,
|
|
2785
|
-
|
|
2786
|
-
|
|
2798
|
+
St as widgetComponentSchema,
|
|
2799
|
+
io as widgetSchema
|
|
2787
2800
|
};
|