@authhero/saml 0.4.2 → 0.4.3
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/core.cjs +4 -4
- package/dist/core.mjs +2633 -146
- package/dist/local-signer.mjs +15 -15
- package/dist/saml.cjs +4 -4
- package/dist/saml.mjs +2638 -151
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/saml.mjs
CHANGED
|
@@ -316,11 +316,11 @@ var t = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
316
316
|
}
|
|
317
317
|
n += e[t];
|
|
318
318
|
}
|
|
319
|
-
return r === ""
|
|
319
|
+
return r === "" && {
|
|
320
320
|
value: n,
|
|
321
321
|
index: t,
|
|
322
322
|
tagClosed: i
|
|
323
|
-
}
|
|
323
|
+
};
|
|
324
324
|
}
|
|
325
325
|
var l = /* @__PURE__ */ RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?", "g");
|
|
326
326
|
function d(e, n) {
|
|
@@ -1002,7 +1002,7 @@ var t = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
1002
1002
|
function D(e, t, r) {
|
|
1003
1003
|
if (t && typeof e == "string") {
|
|
1004
1004
|
let t = e.trim();
|
|
1005
|
-
return t === "true"
|
|
1005
|
+
return t === "true" || t !== "false" && a(e, r);
|
|
1006
1006
|
} else if (n.isExist(e)) return e;
|
|
1007
1007
|
else return "";
|
|
1008
1008
|
}
|
|
@@ -1080,76 +1080,78 @@ var t = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
1080
1080
|
}
|
|
1081
1081
|
};
|
|
1082
1082
|
})), b = /* @__PURE__ */ t(((e, t) => {
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
return t.format && t.indentBy.length > 0 && (r = n), i(e, t, "", r);
|
|
1083
|
+
function n(e, t) {
|
|
1084
|
+
let n = "";
|
|
1085
|
+
return t.format && t.indentBy.length > 0 && (n = "\n"), r(e, t, "", n);
|
|
1087
1086
|
}
|
|
1088
|
-
function
|
|
1087
|
+
function r(e, t, n, c) {
|
|
1089
1088
|
let l = "", u = !1;
|
|
1090
1089
|
if (!Array.isArray(e)) {
|
|
1091
1090
|
if (e != null) {
|
|
1092
1091
|
let n = e.toString();
|
|
1093
|
-
return n =
|
|
1092
|
+
return n = s(n, t), n;
|
|
1094
1093
|
}
|
|
1095
1094
|
return "";
|
|
1096
1095
|
}
|
|
1097
1096
|
for (let d = 0; d < e.length; d++) {
|
|
1098
|
-
let f = e[d], p =
|
|
1097
|
+
let f = e[d], p = i(f);
|
|
1099
1098
|
if (p === void 0) continue;
|
|
1100
1099
|
let m = "";
|
|
1101
1100
|
if (m = n.length === 0 ? p : `${n}.${p}`, p === t.textNodeName) {
|
|
1102
1101
|
let e = f[p];
|
|
1103
|
-
|
|
1102
|
+
o(m, t) || (e = t.tagValueProcessor(p, e), e = s(e, t)), u && (l += c), l += e, u = !1;
|
|
1104
1103
|
continue;
|
|
1105
1104
|
} else if (p === t.cdataPropName) {
|
|
1106
|
-
u && (l +=
|
|
1105
|
+
u && (l += c);
|
|
1106
|
+
let e = String(f[p][0][t.textNodeName]).replace(/\]\]>/g, "]]]]><![CDATA[>");
|
|
1107
|
+
l += `<![CDATA[${e}]]>`, u = !1;
|
|
1107
1108
|
continue;
|
|
1108
1109
|
} else if (p === t.commentPropName) {
|
|
1109
|
-
|
|
1110
|
+
let e = String(f[p][0][t.textNodeName]).replace(/--/g, "- -").replace(/-$/, "- ");
|
|
1111
|
+
l += c + `<!--${e}-->`, u = !0;
|
|
1110
1112
|
continue;
|
|
1111
1113
|
} else if (p[0] === "?") {
|
|
1112
|
-
let e =
|
|
1113
|
-
|
|
1114
|
+
let e = a(f[":@"], t), n = p === "?xml" ? "" : c, r = f[p][0][t.textNodeName];
|
|
1115
|
+
r = r.length === 0 ? "" : " " + r, l += n + `<${p}${r}${e}?>`, u = !0;
|
|
1114
1116
|
continue;
|
|
1115
1117
|
}
|
|
1116
|
-
let h =
|
|
1118
|
+
let h = c;
|
|
1117
1119
|
h !== "" && (h += t.indentBy);
|
|
1118
|
-
let g =
|
|
1119
|
-
t.unpairedTags.indexOf(p) === -1 ? (!_ || _.length === 0) && t.suppressEmptyNode ? l += g + "/>" : _ && _.endsWith(">") ? l += g + `>${_}${
|
|
1120
|
+
let g = c + `<${p}${a(f[":@"], t)}`, _ = r(f[p], t, m, h);
|
|
1121
|
+
t.unpairedTags.indexOf(p) === -1 ? (!_ || _.length === 0) && t.suppressEmptyNode ? l += g + "/>" : _ && _.endsWith(">") ? l += g + `>${_}${c}</${p}>` : (l += g + ">", _ && c !== "" && (_.includes("/>") || _.includes("</")) ? l += c + t.indentBy + _ + c : l += _, l += `</${p}>`) : t.suppressUnpairedNode ? l += g + ">" : l += g + "/>", u = !0;
|
|
1120
1122
|
}
|
|
1121
1123
|
return l;
|
|
1122
1124
|
}
|
|
1123
|
-
function
|
|
1125
|
+
function i(e) {
|
|
1124
1126
|
let t = Object.keys(e);
|
|
1125
1127
|
for (let n = 0; n < t.length; n++) {
|
|
1126
1128
|
let r = t[n];
|
|
1127
1129
|
if (Object.prototype.hasOwnProperty.call(e, r) && r !== ":@") return r;
|
|
1128
1130
|
}
|
|
1129
1131
|
}
|
|
1130
|
-
function
|
|
1132
|
+
function a(e, t) {
|
|
1131
1133
|
let n = "";
|
|
1132
1134
|
if (e && !t.ignoreAttributes) for (let r in e) {
|
|
1133
1135
|
if (!Object.prototype.hasOwnProperty.call(e, r)) continue;
|
|
1134
1136
|
let i = t.attributeValueProcessor(r, e[r]);
|
|
1135
|
-
i =
|
|
1137
|
+
i = s(i, t), i === !0 && t.suppressBooleanAttributes ? n += ` ${r.substr(t.attributeNamePrefix.length)}` : n += ` ${r.substr(t.attributeNamePrefix.length)}="${i}"`;
|
|
1136
1138
|
}
|
|
1137
1139
|
return n;
|
|
1138
1140
|
}
|
|
1139
|
-
function
|
|
1141
|
+
function o(e, t) {
|
|
1140
1142
|
e = e.substr(0, e.length - t.textNodeName.length - 1);
|
|
1141
1143
|
let n = e.substr(e.lastIndexOf(".") + 1);
|
|
1142
1144
|
for (let r in t.stopNodes) if (t.stopNodes[r] === e || t.stopNodes[r] === "*." + n) return !0;
|
|
1143
1145
|
return !1;
|
|
1144
1146
|
}
|
|
1145
|
-
function
|
|
1147
|
+
function s(e, t) {
|
|
1146
1148
|
if (e && e.length > 0 && t.processEntities) for (let n = 0; n < t.entities.length; n++) {
|
|
1147
1149
|
let r = t.entities[n];
|
|
1148
1150
|
e = e.replace(r.regex, r.val);
|
|
1149
1151
|
}
|
|
1150
1152
|
return e;
|
|
1151
1153
|
}
|
|
1152
|
-
t.exports =
|
|
1154
|
+
t.exports = n;
|
|
1153
1155
|
})), x = /* @__PURE__ */ t(((e, t) => {
|
|
1154
1156
|
var n = b(), r = g(), i = {
|
|
1155
1157
|
attributeNamePrefix: "@_",
|
|
@@ -1252,16 +1254,24 @@ var t = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
1252
1254
|
if (e === "") return t[0] === "?" ? this.indentate(r) + "<" + t + n + "?" + this.tagEndChar : this.indentate(r) + "<" + t + n + this.closeTag(t) + this.tagEndChar;
|
|
1253
1255
|
{
|
|
1254
1256
|
let i = "</" + t + this.tagEndChar, a = "";
|
|
1255
|
-
|
|
1257
|
+
if (t[0] === "?" && (a = "?", i = ""), (n || n === "") && e.indexOf("<") === -1) return this.indentate(r) + "<" + t + n + a + ">" + e + i;
|
|
1258
|
+
if (this.options.commentPropName !== !1 && t === this.options.commentPropName && a.length === 0) {
|
|
1259
|
+
let t = String(e).replace(/--/g, "- -").replace(/-$/, "- ");
|
|
1260
|
+
return this.indentate(r) + `<!--${t}-->` + this.newLine;
|
|
1261
|
+
} else return this.indentate(r) + "<" + t + n + a + this.tagEndChar + e + this.indentate(r) + i;
|
|
1256
1262
|
}
|
|
1257
1263
|
}, a.prototype.closeTag = function(e) {
|
|
1258
1264
|
let t = "";
|
|
1259
1265
|
return this.options.unpairedTags.indexOf(e) === -1 ? t = this.options.suppressEmptyNode ? "/" : `></${e}` : this.options.suppressUnpairedNode || (t = "/"), t;
|
|
1260
1266
|
}, a.prototype.buildTextValNode = function(e, t, n, r) {
|
|
1261
|
-
if (this.options.cdataPropName !== !1 && t === this.options.cdataPropName)
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
{
|
|
1267
|
+
if (this.options.cdataPropName !== !1 && t === this.options.cdataPropName) {
|
|
1268
|
+
let t = String(e).replace(/\]\]>/g, "]]]]><![CDATA[>");
|
|
1269
|
+
return this.indentate(r) + `<![CDATA[${t}]]>` + this.newLine;
|
|
1270
|
+
} else if (this.options.commentPropName !== !1 && t === this.options.commentPropName) {
|
|
1271
|
+
let t = String(e).replace(/--/g, "- -").replace(/-$/, "- ");
|
|
1272
|
+
return this.indentate(r) + `<!--${t}-->` + this.newLine;
|
|
1273
|
+
} else if (t[0] === "?") return this.indentate(r) + "<" + t + n + "?" + this.tagEndChar;
|
|
1274
|
+
else {
|
|
1265
1275
|
let i = this.options.tagValueProcessor(t, e);
|
|
1266
1276
|
return i = this.replaceEntitiesValue(i), i === "" ? this.indentate(r) + "<" + t + n + this.closeTag(t) + this.tagEndChar : this.indentate(r) + "<" + t + n + ">" + i + "</" + t + this.tagEndChar;
|
|
1267
1277
|
}
|
|
@@ -1286,144 +1296,2621 @@ var t = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
1286
1296
|
XMLValidator: n,
|
|
1287
1297
|
XMLBuilder: x()
|
|
1288
1298
|
};
|
|
1289
|
-
})))(), C =
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1299
|
+
})))(), C = e.object({
|
|
1300
|
+
created_at: e.string(),
|
|
1301
|
+
updated_at: e.string()
|
|
1302
|
+
}), w = e.object({
|
|
1303
|
+
id: e.string(),
|
|
1304
|
+
version: e.string().optional()
|
|
1305
|
+
}), T = e.object({
|
|
1306
|
+
name: e.string(),
|
|
1307
|
+
version: e.string()
|
|
1308
|
+
}), E = e.object({
|
|
1309
|
+
name: e.string(),
|
|
1310
|
+
value: e.string().optional()
|
|
1311
|
+
}), D = e.object({
|
|
1312
|
+
name: e.string().max(255),
|
|
1313
|
+
code: e.string().max(1e5),
|
|
1314
|
+
supported_triggers: e.array(w).optional(),
|
|
1315
|
+
runtime: e.string().max(50).optional(),
|
|
1316
|
+
dependencies: e.array(T).optional(),
|
|
1317
|
+
secrets: e.array(E).optional(),
|
|
1318
|
+
is_system: e.boolean().optional(),
|
|
1319
|
+
inherit: e.boolean().optional()
|
|
1320
|
+
});
|
|
1321
|
+
D.partial().extend({
|
|
1322
|
+
status: e.enum(["draft", "built"]).optional(),
|
|
1323
|
+
deployed_at: e.string().optional()
|
|
1324
|
+
}), D.extend({
|
|
1325
|
+
id: e.string(),
|
|
1326
|
+
tenant_id: e.string(),
|
|
1327
|
+
status: e.enum(["draft", "built"]).default("built"),
|
|
1328
|
+
deployed_at: e.string().optional(),
|
|
1329
|
+
secrets: e.array(e.object({
|
|
1330
|
+
name: e.string(),
|
|
1331
|
+
value: e.string().optional()
|
|
1332
|
+
})).optional()
|
|
1333
|
+
}).extend(C.shape);
|
|
1334
|
+
var O = e.string(), k = e.enum([
|
|
1335
|
+
"unspecified",
|
|
1336
|
+
"pending",
|
|
1337
|
+
"final",
|
|
1338
|
+
"partial",
|
|
1339
|
+
"canceled",
|
|
1340
|
+
"suspended"
|
|
1341
|
+
]), ee = e.object({
|
|
1342
|
+
id: e.string(),
|
|
1343
|
+
msg: e.string(),
|
|
1344
|
+
url: e.string().optional()
|
|
1345
|
+
}), te = e.object({
|
|
1346
|
+
action_name: e.string(),
|
|
1347
|
+
error: ee.nullable(),
|
|
1348
|
+
started_at: e.string(),
|
|
1349
|
+
ended_at: e.string()
|
|
1350
|
+
}), ne = e.object({
|
|
1351
|
+
level: e.enum([
|
|
1352
|
+
"log",
|
|
1353
|
+
"info",
|
|
1354
|
+
"warn",
|
|
1355
|
+
"error",
|
|
1356
|
+
"debug"
|
|
1357
|
+
]),
|
|
1358
|
+
message: e.string()
|
|
1359
|
+
}), re = e.array(e.object({
|
|
1360
|
+
action_name: e.string(),
|
|
1361
|
+
lines: e.array(ne)
|
|
1362
|
+
}));
|
|
1363
|
+
e.object({
|
|
1364
|
+
id: e.string(),
|
|
1365
|
+
tenant_id: e.string(),
|
|
1366
|
+
trigger_id: O,
|
|
1367
|
+
status: k,
|
|
1368
|
+
results: e.array(te),
|
|
1369
|
+
logs: re.optional(),
|
|
1370
|
+
created_at: e.string(),
|
|
1371
|
+
updated_at: e.string()
|
|
1372
|
+
}).omit({
|
|
1373
|
+
tenant_id: !0,
|
|
1374
|
+
created_at: !0,
|
|
1375
|
+
updated_at: !0
|
|
1376
|
+
}), e.object({
|
|
1377
|
+
action_id: e.string(),
|
|
1378
|
+
code: e.string().max(1e5),
|
|
1379
|
+
runtime: e.string().max(50).optional(),
|
|
1380
|
+
dependencies: e.array(T).optional(),
|
|
1381
|
+
secrets: e.array(E).optional(),
|
|
1382
|
+
supported_triggers: e.array(w).optional(),
|
|
1383
|
+
deployed: e.boolean().default(!0)
|
|
1384
|
+
}).extend({
|
|
1385
|
+
id: e.string(),
|
|
1386
|
+
tenant_id: e.string(),
|
|
1387
|
+
number: e.number().int()
|
|
1388
|
+
}).extend(C.shape);
|
|
1389
|
+
var ie = e.enum([
|
|
1390
|
+
"user_action",
|
|
1391
|
+
"admin_action",
|
|
1392
|
+
"system",
|
|
1393
|
+
"api"
|
|
1394
|
+
]), ae = e.object({
|
|
1395
|
+
type: e.enum([
|
|
1396
|
+
"user",
|
|
1397
|
+
"admin",
|
|
1398
|
+
"system",
|
|
1399
|
+
"api_key",
|
|
1400
|
+
"client_credentials"
|
|
1401
|
+
]),
|
|
1402
|
+
id: e.string().optional(),
|
|
1403
|
+
email: e.string().optional(),
|
|
1404
|
+
org_id: e.string().optional(),
|
|
1405
|
+
org_name: e.string().optional(),
|
|
1406
|
+
scopes: e.array(e.string()).optional(),
|
|
1407
|
+
client_id: e.string().optional()
|
|
1408
|
+
}), oe = e.object({
|
|
1409
|
+
type: e.string(),
|
|
1410
|
+
id: e.string(),
|
|
1411
|
+
before: e.record(e.string(), e.unknown()).optional(),
|
|
1412
|
+
after: e.record(e.string(), e.unknown()).optional(),
|
|
1413
|
+
diff: e.record(e.string(), e.object({
|
|
1414
|
+
old: e.unknown(),
|
|
1415
|
+
new: e.unknown()
|
|
1416
|
+
})).optional()
|
|
1417
|
+
}), se = e.object({
|
|
1418
|
+
method: e.string(),
|
|
1419
|
+
path: e.string(),
|
|
1420
|
+
query: e.record(e.string(), e.string()).optional(),
|
|
1421
|
+
body: e.unknown().optional(),
|
|
1422
|
+
ip: e.string(),
|
|
1423
|
+
user_agent: e.string().optional(),
|
|
1424
|
+
correlation_id: e.string().optional()
|
|
1425
|
+
}), ce = e.object({
|
|
1426
|
+
status_code: e.number(),
|
|
1427
|
+
body: e.unknown().optional()
|
|
1428
|
+
}), le = e.object({
|
|
1429
|
+
country_code: e.string(),
|
|
1430
|
+
city_name: e.string(),
|
|
1431
|
+
latitude: e.string(),
|
|
1432
|
+
longitude: e.string(),
|
|
1433
|
+
time_zone: e.string(),
|
|
1434
|
+
continent_code: e.string()
|
|
1435
|
+
}), ue = e.object({
|
|
1436
|
+
name: e.string(),
|
|
1437
|
+
version: e.string(),
|
|
1438
|
+
env: e.record(e.string(), e.string()).optional()
|
|
1439
|
+
});
|
|
1440
|
+
e.object({
|
|
1441
|
+
tenant_id: e.string(),
|
|
1442
|
+
event_type: e.string(),
|
|
1443
|
+
log_type: e.string(),
|
|
1444
|
+
description: e.string().optional(),
|
|
1445
|
+
category: ie,
|
|
1446
|
+
actor: ae,
|
|
1447
|
+
target: oe,
|
|
1448
|
+
request: se,
|
|
1449
|
+
response: ce.optional(),
|
|
1450
|
+
connection: e.string().optional(),
|
|
1451
|
+
connection_id: e.string().optional(),
|
|
1452
|
+
client_name: e.string().optional(),
|
|
1453
|
+
strategy: e.string().optional(),
|
|
1454
|
+
strategy_type: e.string().optional(),
|
|
1455
|
+
audience: e.string().optional(),
|
|
1456
|
+
scope: e.string().optional(),
|
|
1457
|
+
location: le.optional(),
|
|
1458
|
+
auth0_client: ue.optional(),
|
|
1459
|
+
hostname: e.string(),
|
|
1460
|
+
is_mobile: e.boolean().optional(),
|
|
1461
|
+
timestamp: e.string()
|
|
1462
|
+
}).extend({ id: e.string() }), e.enum([
|
|
1463
|
+
"AUTH0",
|
|
1464
|
+
"EMAIL",
|
|
1465
|
+
"REDIRECT"
|
|
1466
|
+
]), e.enum([
|
|
1467
|
+
"CREATE_USER",
|
|
1468
|
+
"GET_USER",
|
|
1469
|
+
"UPDATE_USER",
|
|
1470
|
+
"SEND_REQUEST",
|
|
1471
|
+
"SEND_EMAIL"
|
|
1472
|
+
]), e.enum(["VERIFY_EMAIL"]);
|
|
1473
|
+
var de = e.object({
|
|
1474
|
+
require_mx_record: e.boolean().optional(),
|
|
1475
|
+
block_aliases: e.boolean().optional(),
|
|
1476
|
+
block_free_emails: e.boolean().optional(),
|
|
1477
|
+
block_disposable_emails: e.boolean().optional(),
|
|
1478
|
+
blocklist: e.array(e.string()).optional(),
|
|
1479
|
+
allowlist: e.array(e.string()).optional()
|
|
1480
|
+
}), fe = e.object({
|
|
1481
|
+
id: e.string(),
|
|
1482
|
+
alias: e.string().max(100).optional(),
|
|
1483
|
+
type: e.literal("AUTH0"),
|
|
1484
|
+
action: e.literal("UPDATE_USER"),
|
|
1485
|
+
allow_failure: e.boolean().optional(),
|
|
1486
|
+
mask_output: e.boolean().optional(),
|
|
1487
|
+
params: e.object({
|
|
1488
|
+
connection_id: e.string().optional(),
|
|
1489
|
+
user_id: e.string(),
|
|
1490
|
+
changes: e.record(e.string(), e.any())
|
|
1491
|
+
})
|
|
1492
|
+
}), pe = e.object({
|
|
1493
|
+
id: e.string(),
|
|
1494
|
+
alias: e.string().max(100).optional(),
|
|
1495
|
+
type: e.literal("EMAIL"),
|
|
1496
|
+
action: e.literal("VERIFY_EMAIL"),
|
|
1497
|
+
allow_failure: e.boolean().optional(),
|
|
1498
|
+
mask_output: e.boolean().optional(),
|
|
1499
|
+
params: e.object({
|
|
1500
|
+
email: e.string(),
|
|
1501
|
+
rules: de.optional()
|
|
1502
|
+
})
|
|
1503
|
+
}), me = e.enum([
|
|
1504
|
+
"change-email",
|
|
1505
|
+
"account",
|
|
1506
|
+
"custom"
|
|
1507
|
+
]), he = e.object({
|
|
1508
|
+
id: e.string(),
|
|
1509
|
+
alias: e.string().max(100).optional(),
|
|
1510
|
+
type: e.literal("REDIRECT"),
|
|
1511
|
+
action: e.literal("REDIRECT_USER"),
|
|
1512
|
+
allow_failure: e.boolean().optional(),
|
|
1513
|
+
mask_output: e.boolean().optional(),
|
|
1514
|
+
params: e.object({
|
|
1515
|
+
target: me.openapi({ description: "The predefined target to redirect to, or 'custom' for a custom URL" }),
|
|
1516
|
+
custom_url: e.string().optional().openapi({ description: "Custom URL to redirect to when target is 'custom'" })
|
|
1517
|
+
})
|
|
1518
|
+
}), ge = e.union([
|
|
1519
|
+
fe,
|
|
1520
|
+
pe,
|
|
1521
|
+
he
|
|
1522
|
+
]);
|
|
1523
|
+
e.object({
|
|
1524
|
+
name: e.string().min(1).max(150).openapi({ description: "The name of the flow" }),
|
|
1525
|
+
actions: e.array(ge).optional().default([]).openapi({ description: "The list of actions to execute in sequence" })
|
|
1526
|
+
}).extend(C.shape).extend({ id: e.string().openapi({
|
|
1527
|
+
description: "Unique identifier for the flow",
|
|
1528
|
+
example: "af_12tMpdJ3iek7svMyZkSh5M"
|
|
1529
|
+
}) }), e.object({
|
|
1530
|
+
page: e.string().min(0).optional().default("0").transform((e) => parseInt(e, 10)).openapi({ description: "The page number where 0 is the first page" }),
|
|
1531
|
+
per_page: e.string().min(1).optional().default("10").transform((e) => parseInt(e, 10)).openapi({ description: "The number of items per page" }),
|
|
1532
|
+
include_totals: e.string().optional().default("false").transform((e) => e === "true").openapi({ description: "If the total number of items should be included in the response" }),
|
|
1533
|
+
sort: e.string().regex(/^.+:(-1|1)$/).optional().openapi({ description: "A property that should have the format 'string:-1' or 'string:1'" }),
|
|
1534
|
+
q: e.string().optional().openapi({ description: "A lucene query string used to filter the results" })
|
|
1535
|
+
}), e.object({
|
|
1536
|
+
start: e.number(),
|
|
1537
|
+
limit: e.number(),
|
|
1538
|
+
length: e.number(),
|
|
1539
|
+
total: e.number().optional(),
|
|
1540
|
+
next: e.string().optional()
|
|
1541
|
+
});
|
|
1542
|
+
var _e = e.object({
|
|
1543
|
+
email: e.string().optional(),
|
|
1544
|
+
email_verified: e.boolean().optional(),
|
|
1545
|
+
name: e.string().optional(),
|
|
1546
|
+
username: e.string().optional(),
|
|
1547
|
+
given_name: e.string().optional(),
|
|
1548
|
+
phone_number: e.string().optional(),
|
|
1549
|
+
phone_verified: e.boolean().optional(),
|
|
1550
|
+
family_name: e.string().optional()
|
|
1551
|
+
}).catchall(e.any()), ve = e.object({
|
|
1552
|
+
connection: e.string(),
|
|
1553
|
+
user_id: e.string(),
|
|
1554
|
+
provider: e.string(),
|
|
1555
|
+
isSocial: e.boolean(),
|
|
1556
|
+
email: e.string().optional(),
|
|
1557
|
+
email_verified: e.boolean().optional(),
|
|
1558
|
+
phone_number: e.string().optional(),
|
|
1559
|
+
phone_verified: e.boolean().optional(),
|
|
1560
|
+
username: e.string().optional(),
|
|
1561
|
+
access_token: e.string().optional(),
|
|
1562
|
+
access_token_secret: e.string().optional(),
|
|
1563
|
+
refresh_token: e.string().optional(),
|
|
1564
|
+
profileData: _e.optional()
|
|
1565
|
+
}), ye = e.object({
|
|
1566
|
+
formatted: e.string().optional(),
|
|
1567
|
+
street_address: e.string().optional(),
|
|
1568
|
+
locality: e.string().optional(),
|
|
1569
|
+
region: e.string().optional(),
|
|
1570
|
+
postal_code: e.string().optional(),
|
|
1571
|
+
country: e.string().optional()
|
|
1572
|
+
}).optional(), A = e.object({
|
|
1573
|
+
email: e.string().transform((e) => e.toLowerCase()).optional(),
|
|
1574
|
+
username: e.string().refine((e) => !e.includes("@"), { message: "Usernames must not contain \"@\". Use the email field for email addresses." }).optional(),
|
|
1575
|
+
phone_number: e.string().optional(),
|
|
1576
|
+
phone_verified: e.boolean().optional(),
|
|
1577
|
+
given_name: e.string().optional(),
|
|
1578
|
+
family_name: e.string().optional(),
|
|
1579
|
+
nickname: e.string().optional(),
|
|
1580
|
+
name: e.string().optional(),
|
|
1581
|
+
picture: e.string().optional(),
|
|
1582
|
+
locale: e.string().optional(),
|
|
1583
|
+
linked_to: e.string().optional(),
|
|
1584
|
+
profileData: e.string().optional(),
|
|
1585
|
+
user_id: e.string().optional(),
|
|
1586
|
+
app_metadata: e.any().default({}).optional(),
|
|
1587
|
+
user_metadata: e.any().default({}).optional(),
|
|
1588
|
+
middle_name: e.string().optional(),
|
|
1589
|
+
preferred_username: e.string().optional(),
|
|
1590
|
+
profile: e.string().optional(),
|
|
1591
|
+
website: e.string().optional(),
|
|
1592
|
+
gender: e.string().optional(),
|
|
1593
|
+
birthdate: e.string().optional(),
|
|
1594
|
+
zoneinfo: e.string().optional(),
|
|
1595
|
+
address: ye
|
|
1596
|
+
});
|
|
1597
|
+
A.extend({
|
|
1598
|
+
email_verified: e.boolean().default(!1),
|
|
1599
|
+
verify_email: e.boolean().optional(),
|
|
1600
|
+
last_ip: e.string().optional(),
|
|
1601
|
+
last_login: e.string().optional(),
|
|
1602
|
+
user_id: e.string().optional(),
|
|
1603
|
+
provider: e.string().optional(),
|
|
1604
|
+
connection: e.string(),
|
|
1605
|
+
is_social: e.boolean().optional(),
|
|
1606
|
+
registration_completed_at: e.string().optional(),
|
|
1607
|
+
password: e.object({
|
|
1608
|
+
hash: e.string(),
|
|
1609
|
+
algorithm: e.string()
|
|
1610
|
+
}).optional()
|
|
1611
|
+
}).omit({ password: !0 }).extend(C.shape).extend({
|
|
1612
|
+
user_id: e.string(),
|
|
1613
|
+
provider: e.string(),
|
|
1614
|
+
is_social: e.boolean(),
|
|
1615
|
+
email: e.string().optional(),
|
|
1616
|
+
login_count: e.number().default(0),
|
|
1617
|
+
identities: e.array(ve).optional()
|
|
1618
|
+
}).omit({ registration_completed_at: !0 }), A.extend({
|
|
1619
|
+
login_count: e.number(),
|
|
1620
|
+
multifactor: e.array(e.string()).optional(),
|
|
1621
|
+
last_ip: e.string().optional(),
|
|
1622
|
+
last_login: e.string().optional(),
|
|
1623
|
+
user_id: e.string()
|
|
1624
|
+
}).catchall(e.any());
|
|
1625
|
+
var be = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", xe = (e = 21) => {
|
|
1626
|
+
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
1627
|
+
for (; e--;) t += be[n[e] & 63];
|
|
1628
|
+
return t;
|
|
1629
|
+
}, Se = e.object({
|
|
1630
|
+
client_id: e.string().optional().openapi({ description: "ID of this client. Generated server-side if omitted (Auth0 behavior)." }),
|
|
1631
|
+
name: e.string().min(1).openapi({ description: "Name of this client (min length: 1 character, does not allow < or >)." }),
|
|
1632
|
+
description: e.string().max(140).optional().openapi({ description: "Free text description of this client (max length: 140 characters)." }),
|
|
1633
|
+
global: e.boolean().default(!1).openapi({ description: "Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false)." }),
|
|
1634
|
+
client_secret: e.string().default(() => xe()).optional().openapi({ description: "Client secret (which you must not make public)." }),
|
|
1635
|
+
app_type: e.enum([
|
|
1636
|
+
"native",
|
|
1637
|
+
"spa",
|
|
1638
|
+
"regular_web",
|
|
1639
|
+
"non_interactive",
|
|
1640
|
+
"resource_server",
|
|
1641
|
+
"express_configuration",
|
|
1642
|
+
"rms",
|
|
1643
|
+
"box",
|
|
1644
|
+
"cloudbees",
|
|
1645
|
+
"concur",
|
|
1646
|
+
"dropbox",
|
|
1647
|
+
"mscrm",
|
|
1648
|
+
"echosign",
|
|
1649
|
+
"egnyte",
|
|
1650
|
+
"newrelic",
|
|
1651
|
+
"office365",
|
|
1652
|
+
"salesforce",
|
|
1653
|
+
"sentry",
|
|
1654
|
+
"sharepoint",
|
|
1655
|
+
"slack",
|
|
1656
|
+
"springcm",
|
|
1657
|
+
"zendesk",
|
|
1658
|
+
"zoom",
|
|
1659
|
+
"sso_integration",
|
|
1660
|
+
"oag"
|
|
1661
|
+
]).default("regular_web").optional().openapi({ description: "The type of application this client represents" }),
|
|
1662
|
+
logo_uri: e.string().url().optional().openapi({ description: "URL of the logo to display for this client. Recommended size is 150x150 pixels." }),
|
|
1663
|
+
is_first_party: e.boolean().default(!0).openapi({ description: "Whether this client is a first party client (true) or not (false). First-party clients skip the consent screen; third-party clients require explicit user consent for non-basic scopes." }),
|
|
1664
|
+
oidc_conformant: e.boolean().default(!0).openapi({ description: "Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false)." }),
|
|
1665
|
+
auth0_conformant: e.boolean().default(!0).openapi({ description: "Whether this client follows Auth0-compatible behavior (true) or strict OIDC behavior (false). When true, profile/email claims are included in the ID token when scopes are requested. When false, these claims are only available from the userinfo endpoint (strict OIDC 5.4 compliance)." }),
|
|
1666
|
+
callbacks: e.array(e.string()).default([]).optional().openapi({ description: "Comma-separated list of URLs whitelisted for Auth0 to use as a callback to the client after authentication." }),
|
|
1667
|
+
allowed_origins: e.array(e.string()).default([]).optional().openapi({ description: "Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level (e.g., https://*.contoso.com). Query strings and hash information are not taken into account when validating these URLs." }),
|
|
1668
|
+
web_origins: e.array(e.string()).default([]).optional().openapi({ description: "Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode." }),
|
|
1669
|
+
client_aliases: e.array(e.string()).default([]).optional().openapi({ description: "List of audiences/realms for SAML protocol. Used by the wsfed addon." }),
|
|
1670
|
+
allowed_clients: e.array(e.string()).default([]).optional().openapi({ description: "List of allow clients and API ids that are allowed to make delegation requests. Empty means all all your clients are allowed." }),
|
|
1671
|
+
connections: e.array(e.string()).default([]).optional().openapi({ description: "List of connection IDs enabled for this client. The order determines the display order on the login page." }),
|
|
1672
|
+
allowed_logout_urls: e.array(e.string()).default([]).optional().openapi({ description: "Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains." }),
|
|
1673
|
+
session_transfer: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Native to Web SSO Configuration" }),
|
|
1674
|
+
oidc_logout: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Configuration for OIDC backchannel logout" }),
|
|
1675
|
+
grant_types: e.array(e.string()).default([]).optional().openapi({ description: "List of grant types supported for this application. Can include authorization_code, implicit, refresh_token, client_credentials, password, http://auth0.com/oauth/grant-type/password-realm, http://auth0.com/oauth/grant-type/mfa-oob, http://auth0.com/oauth/grant-type/mfa-otp, http://auth0.com/oauth/grant-type/mfa-recovery-code, urn:openid:params:grant-type:ciba, and urn:ietf:params:oauth:grant-type:device_code." }),
|
|
1676
|
+
jwt_configuration: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Configuration related to JWTs for the client." }),
|
|
1677
|
+
signing_keys: e.array(e.record(e.string(), e.any())).default([]).optional().openapi({ description: "Signing certificates associated with this client." }),
|
|
1678
|
+
encryption_key: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Encryption used for WsFed responses with this client." }),
|
|
1679
|
+
sso: e.boolean().default(!1).openapi({ description: "Applies only to SSO clients and determines whether Auth0 will handle Single Sign On (true) or whether the Identity Provider will (false)." }),
|
|
1680
|
+
sso_disabled: e.boolean().default(!1).openapi({ description: "Whether Single Sign On is disabled for this client. When true, existing SSO sessions will not be reused and users must authenticate every time." }),
|
|
1681
|
+
cross_origin_authentication: e.boolean().default(!1).openapi({ description: "Whether this client can be used to make cross-origin authentication requests (true) or it is not allowed to make such requests (false)." }),
|
|
1682
|
+
cross_origin_loc: e.string().url().optional().openapi({ description: "URL of the location in your site where the cross origin verification takes place for the cross-origin auth flow when performing Auth in your own domain instead of Auth0 hosted login page." }),
|
|
1683
|
+
custom_login_page_on: e.boolean().default(!1).openapi({ description: "Whether a custom login page is to be used (true) or the default provided login page (false)." }),
|
|
1684
|
+
custom_login_page: e.string().optional().openapi({ description: "The content (HTML, CSS, JS) of the custom login page." }),
|
|
1685
|
+
custom_login_page_preview: e.string().optional().openapi({ description: "The content (HTML, CSS, JS) of the custom login page. (Used on Previews)" }),
|
|
1686
|
+
form_template: e.string().optional().openapi({ description: "HTML form template to be used for WS-Federation." }),
|
|
1687
|
+
addons: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Addons enabled for this client and their associated configurations." }),
|
|
1688
|
+
token_endpoint_auth_method: e.enum([
|
|
1689
|
+
"none",
|
|
1690
|
+
"client_secret_post",
|
|
1691
|
+
"client_secret_basic",
|
|
1692
|
+
"client_secret_jwt",
|
|
1693
|
+
"private_key_jwt"
|
|
1694
|
+
]).default("client_secret_basic").optional().openapi({ description: "Defines the requested authentication method for the token endpoint. `none` (public client), `client_secret_post` / `client_secret_basic` (HTTP POST / Basic), `client_secret_jwt` (RFC 7523 HMAC assertion using client_secret), or `private_key_jwt` (RFC 7523 asymmetric assertion verified against the client's `jwks` / `jwks_uri`)." }),
|
|
1695
|
+
client_metadata: e.record(e.string(), e.string().max(255)).default({}).optional().openapi({ description: "Metadata associated with the client, in the form of an object with string values (max 255 chars). Maximum of 10 metadata properties allowed. Field names (max 255 chars) are alphanumeric and may only include the following special characters: :,-+=_*?\"/()<>@ [Tab][Space]" }),
|
|
1696
|
+
hide_sign_up_disabled_error: e.boolean().default(!1).optional().openapi({ description: "Enumeration-safe variant of the connection-level `disable_signup` flag. When a signup is blocked by the password connection and this is true, the identifier screen does not reveal that an email is unknown — it advances to the OTP/password challenge as if the account existed and fails at credential check. Mitigates email enumeration at the cost of UX: users without an account see a generic credential failure instead of an explicit signup-disabled message." }),
|
|
1697
|
+
mobile: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Additional configuration for native mobile apps." }),
|
|
1698
|
+
initiate_login_uri: e.string().url().optional().openapi({ description: "Initiate login uri, must be https" }),
|
|
1699
|
+
native_social_login: e.record(e.string(), e.any()).default({}).optional(),
|
|
1700
|
+
refresh_token: e.object({
|
|
1701
|
+
rotation_type: e.enum(["rotating", "non-rotating"]).optional().openapi({ description: "Whether refresh tokens for this client are rotated on every exchange (Auth0 'rotating' behavior) or kept stable (legacy non-rotating). Defaults to 'non-rotating' when unset." }),
|
|
1702
|
+
leeway: e.number().int().min(0).max(600).optional().openapi({ description: "Seconds after a parent token's first rotation during which presenting it again still mints a fresh sibling child instead of triggering reuse-detection. Defaults to 30s when unset." }),
|
|
1703
|
+
expiration_type: e.enum(["expiring", "non-expiring"]).optional().openapi({ description: "Auth0-compatible: whether refresh tokens expire." }),
|
|
1704
|
+
token_lifetime: e.number().int().min(0).optional().openapi({ description: "Auth0-compatible: refresh-token absolute lifetime in seconds." }),
|
|
1705
|
+
infinite_token_lifetime: e.boolean().optional().openapi({ description: "Auth0-compatible: when true, refresh tokens have no absolute expiry." }),
|
|
1706
|
+
idle_token_lifetime: e.number().int().min(0).optional().openapi({ description: "Auth0-compatible: refresh-token idle (sliding) lifetime in seconds." }),
|
|
1707
|
+
infinite_idle_token_lifetime: e.boolean().optional().openapi({ description: "Auth0-compatible: when true, refresh tokens have no idle expiry." })
|
|
1708
|
+
}).default({}).optional().openapi({ description: "Refresh token configuration" }),
|
|
1709
|
+
default_organization: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Defines the default Organization ID and flows" }),
|
|
1710
|
+
organization_usage: e.enum([
|
|
1711
|
+
"deny",
|
|
1712
|
+
"allow",
|
|
1713
|
+
"require"
|
|
1714
|
+
]).default("deny").optional().openapi({ description: "Defines how to proceed during an authentication transaction with regards an organization. Can be deny (default), allow or require." }),
|
|
1715
|
+
organization_require_behavior: e.enum([
|
|
1716
|
+
"no_prompt",
|
|
1717
|
+
"pre_login_prompt",
|
|
1718
|
+
"post_login_prompt"
|
|
1719
|
+
]).default("no_prompt").optional().openapi({ description: "Defines how to proceed during an authentication transaction when client.organization_usage: 'require'. Can be no_prompt (default), pre_login_prompt or post_login_prompt. post_login_prompt requires oidc_conformant: true." }),
|
|
1720
|
+
client_authentication_methods: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Defines client authentication methods." }),
|
|
1721
|
+
require_pushed_authorization_requests: e.boolean().default(!1).openapi({ description: "Makes the use of Pushed Authorization Requests mandatory for this client" }),
|
|
1722
|
+
require_proof_of_possession: e.boolean().default(!1).openapi({ description: "Makes the use of Proof-of-Possession mandatory for this client" }),
|
|
1723
|
+
signed_request_object: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "JWT-secured Authorization Requests (JAR) settings." }),
|
|
1724
|
+
compliance_level: e.enum([
|
|
1725
|
+
"none",
|
|
1726
|
+
"fapi1_adv_pkj_par",
|
|
1727
|
+
"fapi1_adv_mtls_par",
|
|
1728
|
+
"fapi2_sp_pkj_mtls",
|
|
1729
|
+
"fapi2_sp_mtls_mtls"
|
|
1730
|
+
]).optional().openapi({ description: "Defines the compliance level for this client, which may restrict it's capabilities" }),
|
|
1731
|
+
par_request_expiry: e.number().optional().openapi({ description: "Specifies how long, in seconds, a Pushed Authorization Request URI remains valid" }),
|
|
1732
|
+
token_quota: e.record(e.string(), e.any()).default({}).optional(),
|
|
1733
|
+
owner_user_id: e.string().optional().openapi({ description: "User ID of the consenting user when this client was created via IAT-gated Dynamic Client Registration. NULL for clients created via the Management API or open DCR." }),
|
|
1734
|
+
registration_type: e.enum([
|
|
1735
|
+
"manual",
|
|
1736
|
+
"open_dcr",
|
|
1737
|
+
"iat_dcr"
|
|
1738
|
+
]).optional().openapi({ description: "Provenance of this client. `manual` = Management API; `open_dcr` = RFC 7591 without IAT; `iat_dcr` = RFC 7591 with an Initial Access Token." }),
|
|
1739
|
+
registration_metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Arbitrary metadata captured at Dynamic Client Registration time that isn't a first-class client field (e.g. integration_type, domain). Also stores `iat_constraints` for clients created via IAT so RFC 7592 PUT can enforce field immutability." }),
|
|
1740
|
+
user_linking_mode: e.enum(["builtin", "off"]).optional().openapi({ description: "Per-client override for the built-in email-based user-linking path. `builtin` runs the legacy in-process linking at user creation/email update. `off` disables the legacy path; linking only happens if the tenant has enabled the `account-linking` template hook. When unset, the service-level `userLinkingMode` default applies." })
|
|
1741
|
+
});
|
|
1742
|
+
e.object({
|
|
1743
|
+
created_at: e.string(),
|
|
1744
|
+
updated_at: e.string()
|
|
1745
|
+
}).extend(Se.shape).extend({ client_id: e.string() });
|
|
1746
|
+
var Ce = e.object({
|
|
1747
|
+
client_id: e.string().min(1).openapi({ description: "ID of the client." }),
|
|
1748
|
+
audience: e.string().min(1).openapi({ description: "The audience (API identifier) of this client grant." }),
|
|
1749
|
+
scope: e.array(e.string()).optional().openapi({ description: "Scopes allowed for this client grant." }),
|
|
1750
|
+
organization_usage: e.enum([
|
|
1751
|
+
"deny",
|
|
1752
|
+
"allow",
|
|
1753
|
+
"require"
|
|
1754
|
+
]).optional().openapi({ description: "Defines whether organizations can be used with client credentials exchanges for this grant." }),
|
|
1755
|
+
allow_any_organization: e.boolean().optional().openapi({ description: "If enabled, any organization can be used with this grant. If disabled (default), the grant must be explicitly assigned to the desired organizations." }),
|
|
1756
|
+
is_system: e.boolean().optional().openapi({ description: "If enabled, this grant is a special grant created by Auth0. It cannot be modified or deleted directly." }),
|
|
1757
|
+
subject_type: e.enum(["client", "user"]).optional().openapi({ description: "The type of application access the client grant allows. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement." }),
|
|
1758
|
+
authorization_details_types: e.array(e.string()).optional().openapi({ description: "Types of authorization_details allowed for this client grant. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement." })
|
|
1759
|
+
}), we = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(Ce.shape).extend({
|
|
1760
|
+
created_at: e.string().optional(),
|
|
1761
|
+
updated_at: e.string().optional()
|
|
1762
|
+
});
|
|
1763
|
+
e.array(we);
|
|
1764
|
+
var Te = e.enum(["iat", "rat"]), Ee = e.object({
|
|
1765
|
+
id: e.string(),
|
|
1766
|
+
token_hash: e.string(),
|
|
1767
|
+
type: Te,
|
|
1768
|
+
client_id: e.string().optional(),
|
|
1769
|
+
sub: e.string().optional(),
|
|
1770
|
+
constraints: e.record(e.string(), e.unknown()).optional(),
|
|
1771
|
+
single_use: e.boolean().default(!1),
|
|
1772
|
+
expires_at: e.string().optional()
|
|
1773
|
+
});
|
|
1774
|
+
e.object({
|
|
1775
|
+
created_at: e.string(),
|
|
1776
|
+
used_at: e.string().optional(),
|
|
1777
|
+
revoked_at: e.string().optional()
|
|
1778
|
+
}).extend(Ee.shape);
|
|
1779
|
+
var j = e.object({
|
|
1780
|
+
x: e.number(),
|
|
1781
|
+
y: e.number()
|
|
1782
|
+
}), De = /* @__PURE__ */ function(e) {
|
|
1783
|
+
return e.RICH_TEXT = "RICH_TEXT", e.NEXT_BUTTON = "NEXT_BUTTON", e.BACK_BUTTON = "BACK_BUTTON", e.SUBMIT_BUTTON = "SUBMIT_BUTTON", e.DIVIDER = "DIVIDER", e.TEXT = "TEXT", e.EMAIL = "EMAIL", e.PASSWORD = "PASSWORD", e.NUMBER = "NUMBER", e.PHONE = "PHONE", e.DATE = "DATE", e.CHECKBOX = "CHECKBOX", e.RADIO = "RADIO", e.SELECT = "SELECT", e.HIDDEN = "HIDDEN", e.LEGAL = "LEGAL", e;
|
|
1784
|
+
}({}), Oe = /* @__PURE__ */ function(e) {
|
|
1785
|
+
return e.BLOCK = "BLOCK", e.FIELD = "FIELD", e;
|
|
1786
|
+
}({}), M = e.object({
|
|
1787
|
+
id: e.string(),
|
|
1788
|
+
category: e.nativeEnum(Oe),
|
|
1789
|
+
type: e.nativeEnum(De)
|
|
1790
|
+
}), ke = M.extend({
|
|
1791
|
+
category: e.literal("BLOCK"),
|
|
1792
|
+
type: e.literal("RICH_TEXT"),
|
|
1793
|
+
config: e.object({ content: e.string() }).passthrough()
|
|
1794
|
+
}), Ae = M.extend({
|
|
1795
|
+
category: e.literal("BLOCK"),
|
|
1796
|
+
type: e.union([
|
|
1797
|
+
e.literal("NEXT_BUTTON"),
|
|
1798
|
+
e.literal("BACK_BUTTON"),
|
|
1799
|
+
e.literal("SUBMIT_BUTTON")
|
|
1800
|
+
]),
|
|
1801
|
+
config: e.object({ text: e.string() }).passthrough()
|
|
1802
|
+
}), je = M.extend({
|
|
1803
|
+
category: e.literal("FIELD"),
|
|
1804
|
+
type: e.literal("LEGAL"),
|
|
1805
|
+
required: e.boolean().optional(),
|
|
1806
|
+
sensitive: e.boolean().optional(),
|
|
1807
|
+
config: e.object({ text: e.string() }).passthrough()
|
|
1808
|
+
}), Me = M.extend({
|
|
1809
|
+
category: e.literal("FIELD"),
|
|
1810
|
+
type: e.union([
|
|
1811
|
+
e.literal("TEXT"),
|
|
1812
|
+
e.literal("EMAIL"),
|
|
1813
|
+
e.literal("PASSWORD"),
|
|
1814
|
+
e.literal("NUMBER"),
|
|
1815
|
+
e.literal("PHONE"),
|
|
1816
|
+
e.literal("DATE"),
|
|
1817
|
+
e.literal("CHECKBOX"),
|
|
1818
|
+
e.literal("RADIO"),
|
|
1819
|
+
e.literal("SELECT"),
|
|
1820
|
+
e.literal("HIDDEN")
|
|
1821
|
+
]),
|
|
1822
|
+
required: e.boolean().optional(),
|
|
1823
|
+
sensitive: e.boolean().optional(),
|
|
1824
|
+
config: e.object({
|
|
1825
|
+
label: e.string().optional(),
|
|
1826
|
+
placeholder: e.string().optional()
|
|
1827
|
+
}).passthrough()
|
|
1828
|
+
}), Ne = e.object({
|
|
1829
|
+
id: e.string(),
|
|
1830
|
+
category: e.string(),
|
|
1831
|
+
type: e.string()
|
|
1832
|
+
}).passthrough(), Pe = e.union([
|
|
1833
|
+
ke,
|
|
1834
|
+
Ae,
|
|
1835
|
+
je,
|
|
1836
|
+
Me,
|
|
1837
|
+
Ne
|
|
1838
|
+
]), Fe = e.object({
|
|
1839
|
+
id: e.string(),
|
|
1840
|
+
type: e.literal("STEP"),
|
|
1841
|
+
coordinates: j,
|
|
1842
|
+
alias: e.string().optional(),
|
|
1843
|
+
config: e.object({
|
|
1844
|
+
components: e.array(Pe),
|
|
1845
|
+
next_node: e.string()
|
|
1846
|
+
}).passthrough()
|
|
1847
|
+
}), Ie = e.object({
|
|
1848
|
+
id: e.string(),
|
|
1849
|
+
type: e.literal("FLOW"),
|
|
1850
|
+
coordinates: j,
|
|
1851
|
+
alias: e.string().optional(),
|
|
1852
|
+
config: e.object({
|
|
1853
|
+
flow_id: e.string(),
|
|
1854
|
+
next_node: e.string()
|
|
1855
|
+
})
|
|
1856
|
+
}), Le = e.object({
|
|
1857
|
+
id: e.string(),
|
|
1858
|
+
type: e.literal("ACTION"),
|
|
1859
|
+
coordinates: j,
|
|
1860
|
+
alias: e.string().optional(),
|
|
1861
|
+
config: e.object({
|
|
1862
|
+
action_type: e.enum(["REDIRECT"]).openapi({ description: "The type of action to perform" }),
|
|
1863
|
+
target: e.enum([
|
|
1864
|
+
"change-email",
|
|
1865
|
+
"account",
|
|
1866
|
+
"custom"
|
|
1867
|
+
]).openapi({ description: "The predefined target to redirect to" }),
|
|
1868
|
+
custom_url: e.string().optional().openapi({ description: "Custom URL when target is 'custom'" }),
|
|
1869
|
+
next_node: e.string().openapi({ description: "The next node to navigate to after action (for non-redirect actions)" })
|
|
1870
|
+
}).passthrough()
|
|
1871
|
+
}), Re = e.object({
|
|
1872
|
+
id: e.string(),
|
|
1873
|
+
type: e.string(),
|
|
1874
|
+
coordinates: j
|
|
1875
|
+
}).passthrough(), ze = e.union([
|
|
1876
|
+
Fe,
|
|
1877
|
+
Ie,
|
|
1878
|
+
Le,
|
|
1879
|
+
Re
|
|
1880
|
+
]), Be = e.object({
|
|
1881
|
+
next_node: e.string(),
|
|
1882
|
+
coordinates: j
|
|
1883
|
+
}).passthrough(), Ve = e.object({
|
|
1884
|
+
resume_flow: e.boolean().optional(),
|
|
1885
|
+
coordinates: j
|
|
1886
|
+
}).passthrough();
|
|
1887
|
+
e.object({
|
|
1888
|
+
id: e.string(),
|
|
1889
|
+
name: e.string(),
|
|
1890
|
+
languages: e.object({ primary: e.string() }).passthrough(),
|
|
1891
|
+
nodes: e.array(ze),
|
|
1892
|
+
start: Be,
|
|
1893
|
+
ending: Ve,
|
|
1894
|
+
created_at: e.string(),
|
|
1895
|
+
updated_at: e.string(),
|
|
1896
|
+
links: e.object({
|
|
1897
|
+
sdkSrc: e.string().optional(),
|
|
1898
|
+
sdk_src: e.string().optional()
|
|
1899
|
+
}).passthrough()
|
|
1900
|
+
}).passthrough().omit({
|
|
1901
|
+
id: !0,
|
|
1902
|
+
created_at: !0,
|
|
1903
|
+
updated_at: !0
|
|
1904
|
+
});
|
|
1905
|
+
var He = /* @__PURE__ */ function(e) {
|
|
1906
|
+
return e.TOKEN = "token", e.ID_TOKEN = "id_token", e.TOKEN_ID_TOKEN = "id_token token", e.CODE = "code", e.CODE_ID_TOKEN = "code id_token", e.CODE_TOKEN = "code token", e.CODE_ID_TOKEN_TOKEN = "code id_token token", e;
|
|
1907
|
+
}({}), Ue = /* @__PURE__ */ function(e) {
|
|
1908
|
+
return e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e;
|
|
1909
|
+
}({}), We = /* @__PURE__ */ function(e) {
|
|
1910
|
+
return e.S256 = "S256", e.Plain = "plain", e;
|
|
1911
|
+
}({}), N = e.union([e.null(), e.object({
|
|
1912
|
+
essential: e.boolean().optional(),
|
|
1913
|
+
value: e.unknown().optional(),
|
|
1914
|
+
values: e.array(e.unknown()).optional()
|
|
1915
|
+
})]).nullable(), Ge = e.object({
|
|
1916
|
+
userinfo: e.record(e.string(), N).optional(),
|
|
1917
|
+
id_token: e.record(e.string(), N).optional()
|
|
1918
|
+
}), Ke = e.object({
|
|
1919
|
+
client_id: e.string(),
|
|
1920
|
+
act_as: e.string().optional(),
|
|
1921
|
+
response_type: e.nativeEnum(He).optional(),
|
|
1922
|
+
response_mode: e.nativeEnum(Ue).optional(),
|
|
1923
|
+
redirect_uri: e.string().optional(),
|
|
1924
|
+
audience: e.string().optional(),
|
|
1925
|
+
organization: e.string().optional(),
|
|
1926
|
+
state: e.string().optional(),
|
|
1927
|
+
nonce: e.string().optional(),
|
|
1928
|
+
scope: e.string().optional(),
|
|
1929
|
+
prompt: e.string().optional(),
|
|
1930
|
+
code_challenge_method: e.nativeEnum(We).optional(),
|
|
1931
|
+
code_challenge: e.string().optional(),
|
|
1932
|
+
username: e.string().optional(),
|
|
1933
|
+
ui_locales: e.string().optional(),
|
|
1934
|
+
max_age: e.number().optional(),
|
|
1935
|
+
acr_values: e.string().optional(),
|
|
1936
|
+
claims: Ge.optional(),
|
|
1937
|
+
vendor_id: e.string().optional()
|
|
1938
|
+
});
|
|
1939
|
+
e.object({
|
|
1940
|
+
colors: e.object({
|
|
1941
|
+
primary: e.string(),
|
|
1942
|
+
page_background: e.union([e.string(), e.object({
|
|
1943
|
+
type: e.string().optional(),
|
|
1944
|
+
start: e.string().optional(),
|
|
1945
|
+
end: e.string().optional(),
|
|
1946
|
+
angle_deg: e.number().optional()
|
|
1947
|
+
})]).optional()
|
|
1948
|
+
}).optional(),
|
|
1949
|
+
logo_url: e.string().optional(),
|
|
1950
|
+
favicon_url: e.string().optional(),
|
|
1951
|
+
powered_by_logo_url: e.string().optional(),
|
|
1952
|
+
font: e.object({ url: e.string() }).optional(),
|
|
1953
|
+
dark_mode: e.enum([
|
|
1954
|
+
"dark",
|
|
1955
|
+
"light",
|
|
1956
|
+
"auto"
|
|
1957
|
+
]).optional()
|
|
1958
|
+
});
|
|
1959
|
+
var qe = e.enum([
|
|
1960
|
+
"password_reset",
|
|
1961
|
+
"email_verification",
|
|
1962
|
+
"otp",
|
|
1963
|
+
"mfa_otp",
|
|
1964
|
+
"authorization_code",
|
|
1965
|
+
"oauth2_state",
|
|
1966
|
+
"ticket"
|
|
1967
|
+
]);
|
|
1968
|
+
e.object({
|
|
1969
|
+
code_id: e.string().openapi({ description: "The code that will be used in for instance an email verification flow" }),
|
|
1970
|
+
login_id: e.string().openapi({ description: "The id of the login session that the code is connected to" }),
|
|
1971
|
+
connection_id: e.string().optional().openapi({ description: "The connection that the code is connected to" }),
|
|
1972
|
+
code_type: qe,
|
|
1973
|
+
code_verifier: e.string().optional().openapi({ description: "The code verifier used in PKCE in outbound flows" }),
|
|
1974
|
+
code_challenge: e.string().optional().openapi({ description: "The code challenge used in PKCE in outbound flows" }),
|
|
1975
|
+
code_challenge_method: e.enum(["plain", "S256"]).optional().openapi({ description: "The code challenge method used in PKCE in outbound flows" }),
|
|
1976
|
+
redirect_uri: e.string().optional().openapi({ description: "The redirect URI associated with the code" }),
|
|
1977
|
+
otp: e.string().optional().openapi({ description: "The one-time password value for OTP-based flows" }),
|
|
1978
|
+
nonce: e.string().optional().openapi({ description: "The nonce value used for security in OIDC flows" }),
|
|
1979
|
+
state: e.string().optional().openapi({ description: "The state parameter used for CSRF protection in OAuth flows" }),
|
|
1980
|
+
expires_at: e.string(),
|
|
1981
|
+
used_at: e.string().optional(),
|
|
1982
|
+
user_id: e.string().optional()
|
|
1983
|
+
}).extend({ created_at: e.string() });
|
|
1984
|
+
var Je = e.object({
|
|
1985
|
+
kid: e.string().optional(),
|
|
1986
|
+
team_id: e.string().optional(),
|
|
1987
|
+
realms: e.string().optional(),
|
|
1988
|
+
authentication_method: e.string().optional(),
|
|
1989
|
+
client_id: e.string().optional(),
|
|
1990
|
+
client_secret: e.string().optional(),
|
|
1991
|
+
app_secret: e.string().optional(),
|
|
1992
|
+
scope: e.string().optional(),
|
|
1993
|
+
authorization_endpoint: e.string().optional(),
|
|
1994
|
+
token_endpoint: e.string().optional(),
|
|
1995
|
+
userinfo_endpoint: e.string().optional(),
|
|
1996
|
+
jwks_uri: e.string().optional(),
|
|
1997
|
+
discovery_url: e.string().optional(),
|
|
1998
|
+
issuer: e.string().optional(),
|
|
1999
|
+
token_endpoint_auth_method: e.enum(["client_secret_basic", "client_secret_post"]).optional(),
|
|
2000
|
+
provider: e.string().optional(),
|
|
2001
|
+
from: e.string().optional(),
|
|
2002
|
+
twilio_sid: e.string().optional(),
|
|
2003
|
+
twilio_token: e.string().optional(),
|
|
2004
|
+
icon_url: e.string().optional(),
|
|
2005
|
+
domain_aliases: e.array(e.string()).optional(),
|
|
2006
|
+
callback_url: e.string().url().optional(),
|
|
2007
|
+
passwordPolicy: e.enum([
|
|
2008
|
+
"none",
|
|
2009
|
+
"low",
|
|
2010
|
+
"fair",
|
|
2011
|
+
"good",
|
|
2012
|
+
"excellent"
|
|
2013
|
+
]).optional(),
|
|
2014
|
+
password_complexity_options: e.object({ min_length: e.number().optional() }).optional(),
|
|
2015
|
+
password_history: e.object({
|
|
2016
|
+
enable: e.boolean().optional(),
|
|
2017
|
+
size: e.number().optional()
|
|
2018
|
+
}).optional(),
|
|
2019
|
+
password_no_personal_info: e.object({ enable: e.boolean().optional() }).optional(),
|
|
2020
|
+
password_dictionary: e.object({
|
|
2021
|
+
enable: e.boolean().optional(),
|
|
2022
|
+
dictionary: e.array(e.string()).optional()
|
|
2023
|
+
}).optional(),
|
|
2024
|
+
disable_signup: e.boolean().optional(),
|
|
2025
|
+
brute_force_protection: e.boolean().optional(),
|
|
2026
|
+
import_mode: e.boolean().optional(),
|
|
2027
|
+
configuration: e.object({
|
|
2028
|
+
token_endpoint: e.string().optional(),
|
|
2029
|
+
userinfo_endpoint: e.string().optional(),
|
|
2030
|
+
client_id: e.string().optional(),
|
|
2031
|
+
client_secret: e.string().optional(),
|
|
2032
|
+
realm: e.string().optional()
|
|
2033
|
+
}).optional(),
|
|
2034
|
+
attributes: e.object({
|
|
2035
|
+
email: e.object({
|
|
2036
|
+
identifier: e.object({ active: e.boolean().optional() }).optional(),
|
|
2037
|
+
signup: e.object({
|
|
2038
|
+
status: e.enum([
|
|
2039
|
+
"required",
|
|
2040
|
+
"optional",
|
|
2041
|
+
"disabled"
|
|
2042
|
+
]).optional(),
|
|
2043
|
+
verification: e.object({ active: e.boolean().optional() }).optional()
|
|
2044
|
+
}).optional(),
|
|
2045
|
+
validation: e.object({ allowed: e.boolean().optional() }).optional(),
|
|
2046
|
+
unique: e.boolean().optional(),
|
|
2047
|
+
profile_required: e.boolean().optional(),
|
|
2048
|
+
verification_method: e.enum(["link", "code"]).optional()
|
|
2049
|
+
}).optional(),
|
|
2050
|
+
username: e.object({
|
|
2051
|
+
identifier: e.object({ active: e.boolean().optional() }).optional(),
|
|
2052
|
+
signup: e.object({ status: e.enum([
|
|
2053
|
+
"required",
|
|
2054
|
+
"optional",
|
|
2055
|
+
"disabled"
|
|
2056
|
+
]).optional() }).optional(),
|
|
2057
|
+
validation: e.object({
|
|
2058
|
+
max_length: e.number().optional(),
|
|
2059
|
+
min_length: e.number().optional(),
|
|
2060
|
+
allowed_types: e.object({
|
|
2061
|
+
email: e.boolean().optional(),
|
|
2062
|
+
phone_number: e.boolean().optional()
|
|
2063
|
+
}).optional()
|
|
2064
|
+
}).optional(),
|
|
2065
|
+
profile_required: e.boolean().optional()
|
|
2066
|
+
}).optional(),
|
|
2067
|
+
phone_number: e.object({
|
|
2068
|
+
identifier: e.object({ active: e.boolean().optional() }).optional(),
|
|
2069
|
+
signup: e.object({ status: e.enum([
|
|
2070
|
+
"required",
|
|
2071
|
+
"optional",
|
|
2072
|
+
"disabled"
|
|
2073
|
+
]).optional() }).optional()
|
|
2074
|
+
}).optional()
|
|
2075
|
+
}).optional(),
|
|
2076
|
+
authentication_methods: e.object({
|
|
2077
|
+
password: e.object({ enabled: e.boolean().optional() }).optional(),
|
|
2078
|
+
passkey: e.object({ enabled: e.boolean().optional() }).optional()
|
|
2079
|
+
}).optional(),
|
|
2080
|
+
passkey_options: e.object({
|
|
2081
|
+
challenge_ui: e.enum([
|
|
2082
|
+
"both",
|
|
2083
|
+
"autofill",
|
|
2084
|
+
"button"
|
|
2085
|
+
]).optional(),
|
|
2086
|
+
local_enrollment_enabled: e.boolean().optional(),
|
|
2087
|
+
progressive_enrollment_enabled: e.boolean().optional()
|
|
2088
|
+
}).optional(),
|
|
2089
|
+
requires_username: e.boolean().optional(),
|
|
2090
|
+
validation: e.object({ username: e.object({
|
|
2091
|
+
min: e.number().optional(),
|
|
2092
|
+
max: e.number().optional()
|
|
2093
|
+
}).optional() }).optional(),
|
|
2094
|
+
set_user_root_attributes: e.enum([
|
|
2095
|
+
"on_each_login",
|
|
2096
|
+
"on_first_login",
|
|
2097
|
+
"never_on_login"
|
|
2098
|
+
]).optional()
|
|
2099
|
+
});
|
|
2100
|
+
function P(e) {
|
|
2101
|
+
if (e !== null) {
|
|
2102
|
+
if (Array.isArray(e)) return e.filter((e) => e !== null).map(P);
|
|
2103
|
+
if (e && typeof e == "object") {
|
|
2104
|
+
let t = {};
|
|
2105
|
+
for (let [n, r] of Object.entries(e)) r !== null && (t[n] = P(r));
|
|
2106
|
+
return t;
|
|
1367
2107
|
}
|
|
1368
|
-
return
|
|
2108
|
+
return e;
|
|
1369
2109
|
}
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
2110
|
+
}
|
|
2111
|
+
var Ye = e.object({
|
|
2112
|
+
id: e.string().optional(),
|
|
2113
|
+
name: e.string(),
|
|
2114
|
+
display_name: e.string().optional(),
|
|
2115
|
+
strategy: e.string(),
|
|
2116
|
+
options: e.preprocess((e) => e === null ? {} : P(e), Je).default({}),
|
|
2117
|
+
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
2118
|
+
response_type: e.custom().optional(),
|
|
2119
|
+
response_mode: e.custom().optional(),
|
|
2120
|
+
is_domain_connection: e.boolean().optional(),
|
|
2121
|
+
show_as_button: e.boolean().optional(),
|
|
2122
|
+
metadata: e.record(e.string(), e.any()).optional(),
|
|
2123
|
+
is_system: e.boolean().optional()
|
|
2124
|
+
});
|
|
2125
|
+
e.object({
|
|
2126
|
+
id: e.string(),
|
|
2127
|
+
created_at: e.string().transform((e) => e === null ? "" : e),
|
|
2128
|
+
updated_at: e.string().transform((e) => e === null ? "" : e)
|
|
2129
|
+
}).extend(Ye.shape);
|
|
2130
|
+
var F = e.object({
|
|
2131
|
+
domain: e.string(),
|
|
2132
|
+
custom_domain_id: e.string().optional(),
|
|
2133
|
+
type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
2134
|
+
verification_method: e.enum(["txt"]).optional(),
|
|
2135
|
+
tls_policy: e.enum(["recommended"]).optional(),
|
|
2136
|
+
custom_client_ip_header: e.enum([
|
|
2137
|
+
"true-client-ip",
|
|
2138
|
+
"cf-connecting-ip",
|
|
2139
|
+
"x-forwarded-for",
|
|
2140
|
+
"x-azure-clientip",
|
|
2141
|
+
"null"
|
|
2142
|
+
]).optional(),
|
|
2143
|
+
domain_metadata: e.record(e.string(), e.string().max(255)).optional()
|
|
2144
|
+
}), Xe = e.discriminatedUnion("name", [e.object({
|
|
2145
|
+
name: e.literal("txt"),
|
|
2146
|
+
record: e.string(),
|
|
2147
|
+
domain: e.string()
|
|
2148
|
+
}), e.object({
|
|
2149
|
+
name: e.literal("http"),
|
|
2150
|
+
http_body: e.string(),
|
|
2151
|
+
http_url: e.string()
|
|
2152
|
+
})]), Ze = F.extend({
|
|
2153
|
+
custom_domain_id: e.string(),
|
|
2154
|
+
primary: e.boolean(),
|
|
2155
|
+
status: e.enum([
|
|
2156
|
+
"disabled",
|
|
2157
|
+
"pending",
|
|
2158
|
+
"pending_verification",
|
|
2159
|
+
"ready"
|
|
2160
|
+
]),
|
|
2161
|
+
origin_domain_name: e.string().optional(),
|
|
2162
|
+
verification: e.object({ methods: e.array(Xe) }).optional(),
|
|
2163
|
+
tls_policy: e.string().optional()
|
|
2164
|
+
});
|
|
2165
|
+
F.pick({
|
|
2166
|
+
tls_policy: !0,
|
|
2167
|
+
custom_client_ip_header: !0,
|
|
2168
|
+
domain_metadata: !0
|
|
2169
|
+
}).strict(), Ze.extend({ tenant_id: e.string() }), e.object({
|
|
2170
|
+
certificate: e.string().regex(/^-----BEGIN CERTIFICATE-----[\s\S]+-----END CERTIFICATE-----\s*$/, "must be PEM-encoded; include the full certificate chain in leaf-first order"),
|
|
2171
|
+
private_key: e.string().regex(/-----BEGIN (RSA |EC |ENCRYPTED )?PRIVATE KEY-----[\s\S]+-----END \1PRIVATE KEY-----\s*$/, "must be a PEM-encoded private key")
|
|
2172
|
+
});
|
|
2173
|
+
var I = e.object({
|
|
2174
|
+
id: e.string(),
|
|
2175
|
+
order: e.number().optional(),
|
|
2176
|
+
visible: e.boolean().optional().default(!0)
|
|
2177
|
+
}), L = I.extend({ category: e.literal("BLOCK").optional() }), Qe = L.extend({
|
|
2178
|
+
type: e.literal("DIVIDER"),
|
|
2179
|
+
config: e.object({ text: e.string().optional() }).optional()
|
|
2180
|
+
}), $e = L.extend({
|
|
2181
|
+
type: e.literal("HTML"),
|
|
2182
|
+
config: e.object({ content: e.string().optional() }).optional()
|
|
2183
|
+
}), et = L.extend({
|
|
2184
|
+
type: e.literal("IMAGE"),
|
|
2185
|
+
config: e.object({
|
|
2186
|
+
src: e.string().optional(),
|
|
2187
|
+
alt: e.string().optional(),
|
|
2188
|
+
width: e.number().optional(),
|
|
2189
|
+
height: e.number().optional()
|
|
2190
|
+
}).optional()
|
|
2191
|
+
}), tt = L.extend({
|
|
2192
|
+
type: e.literal("JUMP_BUTTON"),
|
|
2193
|
+
config: e.object({
|
|
2194
|
+
text: e.string().optional(),
|
|
2195
|
+
target_step: e.string().optional()
|
|
2196
|
+
})
|
|
2197
|
+
}), nt = L.extend({
|
|
2198
|
+
type: e.literal("RESEND_BUTTON"),
|
|
2199
|
+
config: e.object({
|
|
2200
|
+
text: e.string().optional(),
|
|
2201
|
+
resend_action: e.string().optional()
|
|
2202
|
+
})
|
|
2203
|
+
}), rt = L.extend({
|
|
2204
|
+
type: e.literal("NEXT_BUTTON"),
|
|
2205
|
+
config: e.object({ text: e.string().optional() })
|
|
2206
|
+
}), it = L.extend({
|
|
2207
|
+
type: e.literal("PREVIOUS_BUTTON"),
|
|
2208
|
+
config: e.object({ text: e.string().optional() })
|
|
2209
|
+
}), at = L.extend({
|
|
2210
|
+
type: e.literal("RICH_TEXT"),
|
|
2211
|
+
config: e.object({ content: e.string().optional() }).optional()
|
|
2212
|
+
}), R = I.extend({
|
|
2213
|
+
category: e.literal("WIDGET").optional(),
|
|
2214
|
+
label: e.string().min(1).optional(),
|
|
2215
|
+
hint: e.string().min(1).max(500).optional(),
|
|
2216
|
+
required: e.boolean().optional(),
|
|
2217
|
+
sensitive: e.boolean().optional()
|
|
2218
|
+
}), ot = R.extend({
|
|
2219
|
+
type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
|
|
2220
|
+
config: e.object({ credential_type: e.string().optional() })
|
|
2221
|
+
}), st = R.extend({
|
|
2222
|
+
type: e.literal("GMAPS_ADDRESS"),
|
|
2223
|
+
config: e.object({ api_key: e.string().optional() })
|
|
2224
|
+
}), ct = R.extend({
|
|
2225
|
+
type: e.literal("RECAPTCHA"),
|
|
2226
|
+
config: e.object({ site_key: e.string().optional() })
|
|
2227
|
+
}), z = I.extend({
|
|
2228
|
+
category: e.literal("FIELD").optional(),
|
|
2229
|
+
label: e.string().min(1).optional(),
|
|
2230
|
+
hint: e.string().min(1).max(500).optional(),
|
|
2231
|
+
messages: e.array(e.object({
|
|
2232
|
+
id: e.number().optional(),
|
|
2233
|
+
text: e.string(),
|
|
2234
|
+
type: e.enum([
|
|
2235
|
+
"info",
|
|
2236
|
+
"error",
|
|
2237
|
+
"success",
|
|
2238
|
+
"warning"
|
|
2239
|
+
])
|
|
2240
|
+
})).optional(),
|
|
2241
|
+
required: e.boolean().optional(),
|
|
2242
|
+
sensitive: e.boolean().optional()
|
|
2243
|
+
}), lt = z.extend({
|
|
2244
|
+
type: e.literal("BOOLEAN"),
|
|
2245
|
+
config: e.object({ default_value: e.boolean().optional() }).optional()
|
|
2246
|
+
}), ut = z.extend({
|
|
2247
|
+
type: e.literal("CARDS"),
|
|
2248
|
+
config: e.object({
|
|
2249
|
+
options: e.array(e.object({
|
|
2250
|
+
value: e.string(),
|
|
2251
|
+
label: e.string(),
|
|
2252
|
+
description: e.string().optional(),
|
|
2253
|
+
image: e.string().optional()
|
|
2254
|
+
})).optional(),
|
|
2255
|
+
multi_select: e.boolean().optional()
|
|
2256
|
+
}).optional()
|
|
2257
|
+
}), dt = z.extend({
|
|
2258
|
+
type: e.literal("CHOICE"),
|
|
2259
|
+
config: e.object({
|
|
2260
|
+
options: e.array(e.object({
|
|
2261
|
+
value: e.string(),
|
|
2262
|
+
label: e.string()
|
|
2263
|
+
})).optional(),
|
|
2264
|
+
display: e.enum(["radio", "checkbox"]).optional(),
|
|
2265
|
+
multiple: e.boolean().optional(),
|
|
2266
|
+
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
2267
|
+
}).optional()
|
|
2268
|
+
}), ft = z.extend({
|
|
2269
|
+
type: e.literal("CODE"),
|
|
2270
|
+
config: e.object({
|
|
2271
|
+
length: e.number().int().positive().max(100).optional(),
|
|
2272
|
+
mode: e.enum(["numeric", "alphanumeric"]).optional(),
|
|
2273
|
+
auto_submit: e.boolean().optional(),
|
|
2274
|
+
group_size: e.number().int().min(0).max(100).optional(),
|
|
2275
|
+
separator: e.string().optional(),
|
|
2276
|
+
placeholder: e.string().optional(),
|
|
2277
|
+
default_value: e.string().optional()
|
|
2278
|
+
}).refine((e) => e.group_size === void 0 || e.length === void 0 || e.group_size <= e.length, {
|
|
2279
|
+
message: "group_size cannot exceed length",
|
|
2280
|
+
path: ["group_size"]
|
|
2281
|
+
}).refine((e) => e.default_value === void 0 || e.length === void 0 || e.default_value.length <= e.length, {
|
|
2282
|
+
message: "default_value is longer than the configured length",
|
|
2283
|
+
path: ["default_value"]
|
|
2284
|
+
}).optional()
|
|
2285
|
+
}), pt = z.extend({
|
|
2286
|
+
type: e.literal("CUSTOM"),
|
|
2287
|
+
config: e.object({
|
|
2288
|
+
component: e.string().optional(),
|
|
2289
|
+
props: e.record(e.string(), e.any()).optional(),
|
|
2290
|
+
schema: e.record(e.string(), e.any()).optional(),
|
|
2291
|
+
code: e.string().optional()
|
|
2292
|
+
})
|
|
2293
|
+
}), mt = z.extend({
|
|
2294
|
+
type: e.literal("DATE"),
|
|
2295
|
+
config: e.object({
|
|
2296
|
+
format: e.string().optional(),
|
|
2297
|
+
min: e.string().optional(),
|
|
2298
|
+
max: e.string().optional(),
|
|
2299
|
+
default_value: e.string().optional()
|
|
2300
|
+
}).optional()
|
|
2301
|
+
}), ht = z.extend({
|
|
2302
|
+
type: e.literal("DROPDOWN"),
|
|
2303
|
+
config: e.object({
|
|
2304
|
+
options: e.array(e.object({
|
|
2305
|
+
value: e.string(),
|
|
2306
|
+
label: e.string()
|
|
2307
|
+
})).optional(),
|
|
2308
|
+
placeholder: e.string().optional(),
|
|
2309
|
+
searchable: e.boolean().optional(),
|
|
2310
|
+
multiple: e.boolean().optional(),
|
|
2311
|
+
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
2312
|
+
}).optional()
|
|
2313
|
+
}), gt = z.extend({
|
|
2314
|
+
type: e.literal("EMAIL"),
|
|
2315
|
+
config: e.object({
|
|
2316
|
+
placeholder: e.string().optional(),
|
|
2317
|
+
default_value: e.string().optional()
|
|
2318
|
+
}).optional()
|
|
2319
|
+
}), _t = z.extend({
|
|
2320
|
+
type: e.literal("FILE"),
|
|
2321
|
+
config: e.object({
|
|
2322
|
+
accept: e.string().optional(),
|
|
2323
|
+
max_size: e.number().optional(),
|
|
2324
|
+
multiple: e.boolean().optional()
|
|
2325
|
+
}).optional()
|
|
2326
|
+
}), vt = z.extend({
|
|
2327
|
+
type: e.literal("LEGAL"),
|
|
2328
|
+
config: e.object({
|
|
2329
|
+
text: e.string(),
|
|
2330
|
+
html: e.boolean().optional()
|
|
2331
|
+
}).optional()
|
|
2332
|
+
}), yt = z.extend({
|
|
2333
|
+
type: e.literal("NUMBER"),
|
|
2334
|
+
config: e.object({
|
|
2335
|
+
placeholder: e.string().optional(),
|
|
2336
|
+
min: e.number().optional(),
|
|
2337
|
+
max: e.number().optional(),
|
|
2338
|
+
step: e.number().optional(),
|
|
2339
|
+
default_value: e.string().optional()
|
|
2340
|
+
}).optional()
|
|
2341
|
+
}), bt = z.extend({
|
|
2342
|
+
type: e.literal("PASSWORD"),
|
|
2343
|
+
config: e.object({
|
|
2344
|
+
placeholder: e.string().optional(),
|
|
2345
|
+
min_length: e.number().optional(),
|
|
2346
|
+
show_toggle: e.boolean().optional(),
|
|
2347
|
+
forgot_password_link: e.string().optional(),
|
|
2348
|
+
default_value: e.string().optional()
|
|
2349
|
+
}).optional()
|
|
2350
|
+
}), xt = z.extend({
|
|
2351
|
+
type: e.literal("PAYMENT"),
|
|
2352
|
+
config: e.object({
|
|
2353
|
+
provider: e.string().optional(),
|
|
2354
|
+
currency: e.string().optional()
|
|
2355
|
+
}).optional()
|
|
2356
|
+
}), St = z.extend({
|
|
2357
|
+
type: e.literal("SOCIAL"),
|
|
2358
|
+
config: e.object({
|
|
2359
|
+
providers: e.array(e.string()).optional(),
|
|
2360
|
+
provider_details: e.array(e.object({
|
|
2361
|
+
name: e.string(),
|
|
2362
|
+
strategy: e.string().optional(),
|
|
2363
|
+
display_name: e.string().optional(),
|
|
2364
|
+
icon_url: e.string().optional(),
|
|
2365
|
+
href: e.string().optional()
|
|
2366
|
+
})).optional()
|
|
2367
|
+
}).optional()
|
|
2368
|
+
}), Ct = z.extend({
|
|
2369
|
+
type: e.literal("TEL"),
|
|
2370
|
+
config: e.object({
|
|
2371
|
+
placeholder: e.string().optional(),
|
|
2372
|
+
default_country: e.string().optional(),
|
|
2373
|
+
default_value: e.string().optional(),
|
|
2374
|
+
allow_email: e.boolean().optional()
|
|
2375
|
+
}).optional()
|
|
2376
|
+
}), wt = z.extend({
|
|
2377
|
+
type: e.literal("TEXT"),
|
|
2378
|
+
config: e.object({
|
|
2379
|
+
placeholder: e.string().optional(),
|
|
2380
|
+
multiline: e.boolean().optional(),
|
|
2381
|
+
max_length: e.number().optional(),
|
|
2382
|
+
default_value: e.string().optional()
|
|
2383
|
+
}).optional()
|
|
2384
|
+
}), Tt = z.extend({
|
|
2385
|
+
type: e.literal("COUNTRY"),
|
|
2386
|
+
config: e.object({
|
|
2387
|
+
placeholder: e.string().optional(),
|
|
2388
|
+
default_value: e.string().optional()
|
|
2389
|
+
}).optional()
|
|
2390
|
+
}), Et = z.extend({
|
|
2391
|
+
type: e.literal("URL"),
|
|
2392
|
+
config: e.object({
|
|
2393
|
+
placeholder: e.string().optional(),
|
|
2394
|
+
default_value: e.string().optional()
|
|
2395
|
+
}).optional()
|
|
2396
|
+
}), Dt = e.discriminatedUnion("type", [
|
|
2397
|
+
Qe,
|
|
2398
|
+
$e,
|
|
2399
|
+
et,
|
|
2400
|
+
tt,
|
|
2401
|
+
nt,
|
|
2402
|
+
rt,
|
|
2403
|
+
it,
|
|
2404
|
+
at
|
|
2405
|
+
]), Ot = e.discriminatedUnion("type", [
|
|
2406
|
+
ot,
|
|
2407
|
+
st,
|
|
2408
|
+
ct
|
|
2409
|
+
]), kt = e.discriminatedUnion("type", [
|
|
2410
|
+
lt,
|
|
2411
|
+
ut,
|
|
2412
|
+
dt,
|
|
2413
|
+
ft,
|
|
2414
|
+
Tt,
|
|
2415
|
+
pt,
|
|
2416
|
+
mt,
|
|
2417
|
+
ht,
|
|
2418
|
+
gt,
|
|
2419
|
+
_t,
|
|
2420
|
+
vt,
|
|
2421
|
+
yt,
|
|
2422
|
+
bt,
|
|
2423
|
+
xt,
|
|
2424
|
+
St,
|
|
2425
|
+
Ct,
|
|
2426
|
+
wt,
|
|
2427
|
+
Et
|
|
2428
|
+
]), B = e.union([
|
|
2429
|
+
Dt,
|
|
2430
|
+
Ot,
|
|
2431
|
+
kt
|
|
2432
|
+
]);
|
|
2433
|
+
e.object({
|
|
2434
|
+
id: e.string(),
|
|
2435
|
+
type: e.literal("submit"),
|
|
2436
|
+
label: e.string(),
|
|
2437
|
+
className: e.string().optional(),
|
|
2438
|
+
disabled: e.boolean().optional().default(!1),
|
|
2439
|
+
order: e.number().optional(),
|
|
2440
|
+
visible: e.boolean().optional().default(!0),
|
|
2441
|
+
customizations: e.record(e.string(), e.any()).optional()
|
|
2442
|
+
});
|
|
2443
|
+
var V = e.object({
|
|
2444
|
+
x: e.number(),
|
|
2445
|
+
y: e.number()
|
|
2446
|
+
}), At = e.object({
|
|
2447
|
+
id: e.string(),
|
|
2448
|
+
type: e.literal("FLOW"),
|
|
2449
|
+
coordinates: V,
|
|
2450
|
+
alias: e.string().min(1).max(150).optional(),
|
|
2451
|
+
config: e.object({
|
|
2452
|
+
flow_id: e.string().max(30),
|
|
2453
|
+
next_node: e.string().optional()
|
|
2454
|
+
})
|
|
2455
|
+
}), jt = e.object({
|
|
2456
|
+
id: e.string(),
|
|
2457
|
+
type: e.literal("ROUTER"),
|
|
2458
|
+
coordinates: V,
|
|
2459
|
+
alias: e.string().min(1).max(150),
|
|
2460
|
+
config: e.object({
|
|
2461
|
+
rules: e.array(e.object({
|
|
2462
|
+
id: e.string(),
|
|
2463
|
+
alias: e.string().min(1).max(150).optional(),
|
|
2464
|
+
condition: e.any(),
|
|
2465
|
+
next_node: e.string()
|
|
2466
|
+
})),
|
|
2467
|
+
fallback: e.string()
|
|
2468
|
+
})
|
|
2469
|
+
}), Mt = e.object({
|
|
2470
|
+
id: e.string(),
|
|
2471
|
+
type: e.literal("STEP"),
|
|
2472
|
+
coordinates: V,
|
|
2473
|
+
alias: e.string().min(1).max(150).optional(),
|
|
2474
|
+
config: e.object({
|
|
2475
|
+
components: e.array(B),
|
|
2476
|
+
next_node: e.string().optional()
|
|
2477
|
+
})
|
|
2478
|
+
}), Nt = e.discriminatedUnion("type", [
|
|
2479
|
+
At,
|
|
2480
|
+
jt,
|
|
2481
|
+
Mt
|
|
2482
|
+
]), Pt = e.object({
|
|
2483
|
+
name: e.string().openapi({ description: "The name of the form" }),
|
|
2484
|
+
messages: e.object({
|
|
2485
|
+
errors: e.record(e.string(), e.any()).optional(),
|
|
2486
|
+
custom: e.record(e.string(), e.any()).optional()
|
|
2487
|
+
}).optional(),
|
|
2488
|
+
languages: e.object({
|
|
2489
|
+
primary: e.string().optional(),
|
|
2490
|
+
default: e.string().optional()
|
|
2491
|
+
}).optional(),
|
|
2492
|
+
translations: e.record(e.string(), e.any()).optional(),
|
|
2493
|
+
nodes: e.array(Nt).optional(),
|
|
2494
|
+
start: e.object({
|
|
2495
|
+
hidden_fields: e.array(e.object({
|
|
2496
|
+
key: e.string(),
|
|
2497
|
+
value: e.string()
|
|
2498
|
+
})).optional(),
|
|
2499
|
+
next_node: e.string().optional(),
|
|
2500
|
+
coordinates: V.optional()
|
|
2501
|
+
}).optional(),
|
|
2502
|
+
ending: e.object({
|
|
2503
|
+
redirection: e.object({
|
|
2504
|
+
delay: e.number().optional(),
|
|
2505
|
+
target: e.string().optional()
|
|
2506
|
+
}).optional(),
|
|
2507
|
+
after_submit: e.object({ flow_id: e.string().optional() }).optional(),
|
|
2508
|
+
coordinates: V.optional(),
|
|
2509
|
+
resume_flow: e.boolean().optional()
|
|
2510
|
+
}).optional(),
|
|
2511
|
+
style: e.object({ css: e.string().optional() }).optional(),
|
|
2512
|
+
links: e.object({
|
|
2513
|
+
sdkSrc: e.string().optional(),
|
|
2514
|
+
sdk_src: e.string().optional()
|
|
2515
|
+
}).optional()
|
|
2516
|
+
}).openapi({ description: "Schema for flow-based forms (matches Auth0 Forms structure)" });
|
|
2517
|
+
C.extend(Pt.shape).extend({ id: e.string() });
|
|
2518
|
+
var Ft = e.object({
|
|
2519
|
+
id: e.number().optional(),
|
|
2520
|
+
text: e.string(),
|
|
2521
|
+
type: e.enum([
|
|
2522
|
+
"info",
|
|
2523
|
+
"error",
|
|
2524
|
+
"success",
|
|
2525
|
+
"warning"
|
|
2526
|
+
])
|
|
2527
|
+
}), It = e.object({
|
|
2528
|
+
id: e.string().optional(),
|
|
2529
|
+
text: e.string(),
|
|
2530
|
+
href: e.string(),
|
|
2531
|
+
linkText: e.string().optional()
|
|
2532
|
+
});
|
|
2533
|
+
e.object({
|
|
2534
|
+
name: e.string().optional(),
|
|
2535
|
+
action: e.string(),
|
|
2536
|
+
method: e.enum(["POST", "GET"]),
|
|
2537
|
+
title: e.string().optional(),
|
|
2538
|
+
description: e.string().optional(),
|
|
2539
|
+
components: e.array(B),
|
|
2540
|
+
messages: e.array(Ft).optional(),
|
|
2541
|
+
links: e.array(It).optional(),
|
|
2542
|
+
footer: e.string().optional()
|
|
2543
|
+
});
|
|
2544
|
+
var H = e.enum([
|
|
2545
|
+
"pre-user-registration",
|
|
2546
|
+
"post-user-registration",
|
|
2547
|
+
"post-user-login",
|
|
2548
|
+
"post-user-update",
|
|
2549
|
+
"validate-registration-username",
|
|
2550
|
+
"pre-user-deletion",
|
|
2551
|
+
"post-user-deletion"
|
|
2552
|
+
]), U = e.enum([
|
|
2553
|
+
"pre-user-registration",
|
|
2554
|
+
"post-user-registration",
|
|
2555
|
+
"post-user-login",
|
|
2556
|
+
"validate-registration-username",
|
|
2557
|
+
"pre-user-deletion",
|
|
2558
|
+
"post-user-deletion"
|
|
2559
|
+
]), W = e.enum([
|
|
2560
|
+
"post-user-login",
|
|
2561
|
+
"post-user-registration",
|
|
2562
|
+
"post-user-update",
|
|
2563
|
+
"credentials-exchange"
|
|
2564
|
+
]), G = e.enum([
|
|
2565
|
+
"post-user-login",
|
|
2566
|
+
"credentials-exchange",
|
|
2567
|
+
"pre-user-registration",
|
|
2568
|
+
"post-user-registration"
|
|
2569
|
+
]), K = e.enum([
|
|
2570
|
+
"ensure-username",
|
|
2571
|
+
"set-preferred-username",
|
|
2572
|
+
"account-linking"
|
|
2573
|
+
]), q = {
|
|
2574
|
+
enabled: e.boolean().default(!1),
|
|
2575
|
+
synchronous: e.boolean().default(!1),
|
|
2576
|
+
priority: e.number().optional(),
|
|
2577
|
+
hook_id: e.string().optional(),
|
|
2578
|
+
metadata: e.record(e.string(), e.unknown()).optional()
|
|
2579
|
+
}, Lt = e.object({
|
|
2580
|
+
...q,
|
|
2581
|
+
trigger_id: H,
|
|
2582
|
+
url: e.string()
|
|
2583
|
+
}), Rt = e.object({
|
|
2584
|
+
...q,
|
|
2585
|
+
trigger_id: U,
|
|
2586
|
+
form_id: e.string()
|
|
2587
|
+
}), zt = e.object({
|
|
2588
|
+
...q,
|
|
2589
|
+
trigger_id: W,
|
|
2590
|
+
template_id: K
|
|
2591
|
+
}), Bt = e.object({
|
|
2592
|
+
...q,
|
|
2593
|
+
trigger_id: G,
|
|
2594
|
+
code_id: e.string()
|
|
2595
|
+
});
|
|
2596
|
+
e.union([
|
|
2597
|
+
Lt,
|
|
2598
|
+
Rt,
|
|
2599
|
+
zt,
|
|
2600
|
+
Bt
|
|
2601
|
+
]);
|
|
2602
|
+
var Vt = e.object({
|
|
2603
|
+
...q,
|
|
2604
|
+
trigger_id: H
|
|
2605
|
+
}).extend(C.shape).extend({
|
|
2606
|
+
hook_id: e.string(),
|
|
2607
|
+
url: e.string()
|
|
2608
|
+
}), Ht = e.object({
|
|
2609
|
+
...q,
|
|
2610
|
+
trigger_id: U
|
|
2611
|
+
}).extend(C.shape).extend({
|
|
2612
|
+
hook_id: e.string(),
|
|
2613
|
+
form_id: e.string()
|
|
2614
|
+
}), Ut = e.object({
|
|
2615
|
+
...q,
|
|
2616
|
+
trigger_id: W
|
|
2617
|
+
}).extend(C.shape).extend({
|
|
2618
|
+
hook_id: e.string(),
|
|
2619
|
+
template_id: K
|
|
2620
|
+
}), Wt = e.object({
|
|
2621
|
+
...q,
|
|
2622
|
+
trigger_id: G
|
|
2623
|
+
}).extend(C.shape).extend({
|
|
2624
|
+
hook_id: e.string(),
|
|
2625
|
+
code_id: e.string()
|
|
2626
|
+
});
|
|
2627
|
+
e.union([
|
|
2628
|
+
Vt,
|
|
2629
|
+
Ht,
|
|
2630
|
+
Ut,
|
|
2631
|
+
Wt
|
|
2632
|
+
]), e.object({
|
|
2633
|
+
code: e.string().max(1e5),
|
|
2634
|
+
secrets: e.record(e.string(), e.string()).optional()
|
|
2635
|
+
}).extend({
|
|
2636
|
+
id: e.string(),
|
|
2637
|
+
tenant_id: e.string()
|
|
2638
|
+
}).extend(C.shape);
|
|
2639
|
+
var Gt = e.object({ name: e.string().optional() }), Kt = e.object({ email: e.string().optional() }), qt = e.object({
|
|
2640
|
+
id: e.string().optional(),
|
|
2641
|
+
organization_id: e.string().max(50),
|
|
2642
|
+
inviter: Gt,
|
|
2643
|
+
invitee: Kt,
|
|
2644
|
+
invitation_url: e.string().url(),
|
|
2645
|
+
client_id: e.string(),
|
|
2646
|
+
connection_id: e.string().optional(),
|
|
2647
|
+
app_metadata: e.record(e.string(), e.any()).default({}).optional(),
|
|
2648
|
+
user_metadata: e.record(e.string(), e.any()).default({}).optional(),
|
|
2649
|
+
ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
|
|
2650
|
+
roles: e.array(e.string()).default([]).optional(),
|
|
2651
|
+
send_invitation_email: e.boolean().default(!0).optional()
|
|
2652
|
+
});
|
|
2653
|
+
e.object({
|
|
2654
|
+
id: e.string(),
|
|
2655
|
+
organization_id: e.string().max(50),
|
|
2656
|
+
created_at: e.string().datetime(),
|
|
2657
|
+
expires_at: e.string().datetime(),
|
|
2658
|
+
ticket_id: e.string().optional()
|
|
2659
|
+
}).extend(qt.omit({ id: !0 }).shape);
|
|
2660
|
+
var Jt = e.object({
|
|
2661
|
+
alg: e.enum([
|
|
2662
|
+
"RS256",
|
|
2663
|
+
"RS384",
|
|
2664
|
+
"RS512",
|
|
2665
|
+
"ES256",
|
|
2666
|
+
"ES384",
|
|
2667
|
+
"ES512",
|
|
2668
|
+
"HS256",
|
|
2669
|
+
"HS384",
|
|
2670
|
+
"HS512"
|
|
2671
|
+
]),
|
|
2672
|
+
kid: e.string().optional(),
|
|
2673
|
+
kty: e.enum([
|
|
2674
|
+
"RSA",
|
|
2675
|
+
"EC",
|
|
2676
|
+
"oct"
|
|
2677
|
+
]),
|
|
2678
|
+
use: e.enum(["sig", "enc"]).optional(),
|
|
2679
|
+
n: e.string().optional(),
|
|
2680
|
+
e: e.string().optional(),
|
|
2681
|
+
crv: e.string().optional(),
|
|
2682
|
+
x: e.string().optional(),
|
|
2683
|
+
y: e.string().optional(),
|
|
2684
|
+
x5t: e.string().optional(),
|
|
2685
|
+
x5c: e.array(e.string()).optional()
|
|
2686
|
+
}).superRefine((t, n) => {
|
|
2687
|
+
if (t.kty === "RSA") for (let r of ["n", "e"]) t[r] || n.addIssue({
|
|
2688
|
+
code: e.ZodIssueCode.custom,
|
|
2689
|
+
path: [r],
|
|
2690
|
+
message: `RSA JWK is missing required member '${r}'`
|
|
2691
|
+
});
|
|
2692
|
+
else if (t.kty === "EC") for (let r of [
|
|
2693
|
+
"crv",
|
|
2694
|
+
"x",
|
|
2695
|
+
"y"
|
|
2696
|
+
]) t[r] || n.addIssue({
|
|
2697
|
+
code: e.ZodIssueCode.custom,
|
|
2698
|
+
path: [r],
|
|
2699
|
+
message: `EC JWK is missing required member '${r}'`
|
|
2700
|
+
});
|
|
2701
|
+
});
|
|
2702
|
+
e.object({ keys: e.array(Jt) }), e.object({
|
|
2703
|
+
issuer: e.string(),
|
|
2704
|
+
authorization_endpoint: e.string(),
|
|
2705
|
+
token_endpoint: e.string(),
|
|
2706
|
+
userinfo_endpoint: e.string(),
|
|
2707
|
+
jwks_uri: e.string(),
|
|
2708
|
+
registration_endpoint: e.string().optional(),
|
|
2709
|
+
revocation_endpoint: e.string(),
|
|
2710
|
+
end_session_endpoint: e.string().optional(),
|
|
2711
|
+
scopes_supported: e.array(e.string()),
|
|
2712
|
+
response_types_supported: e.array(e.string()),
|
|
2713
|
+
grant_types_supported: e.array(e.string()).optional(),
|
|
2714
|
+
code_challenge_methods_supported: e.array(e.string()),
|
|
2715
|
+
response_modes_supported: e.array(e.string()),
|
|
2716
|
+
subject_types_supported: e.array(e.string()),
|
|
2717
|
+
id_token_signing_alg_values_supported: e.array(e.string()),
|
|
2718
|
+
token_endpoint_auth_methods_supported: e.array(e.string()),
|
|
2719
|
+
claims_supported: e.array(e.string()),
|
|
2720
|
+
request_uri_parameter_supported: e.boolean(),
|
|
2721
|
+
request_parameter_supported: e.boolean(),
|
|
2722
|
+
claims_parameter_supported: e.boolean().optional(),
|
|
2723
|
+
request_object_signing_alg_values_supported: e.array(e.string()).optional(),
|
|
2724
|
+
token_endpoint_auth_signing_alg_values_supported: e.array(e.string()),
|
|
2725
|
+
client_id_metadata_document_supported: e.boolean().optional()
|
|
2726
|
+
});
|
|
2727
|
+
var Yt = /* @__PURE__ */ function(e) {
|
|
2728
|
+
return e.PENDING = "pending", e.AUTHENTICATED = "authenticated", e.AWAITING_EMAIL_VERIFICATION = "awaiting_email_verification", e.AWAITING_MFA = "awaiting_mfa", e.AWAITING_HOOK = "awaiting_hook", e.AWAITING_CONTINUATION = "awaiting_continuation", e.AWAITING_CONSENT = "awaiting_consent", e.COMPLETED = "completed", e.FAILED = "failed", e.EXPIRED = "expired", e;
|
|
2729
|
+
}({}), Xt = e.nativeEnum(Yt), Zt = e.object({
|
|
2730
|
+
strategy: e.string(),
|
|
2731
|
+
strategy_type: e.string()
|
|
2732
|
+
});
|
|
2733
|
+
e.object({
|
|
2734
|
+
csrf_token: e.string(),
|
|
2735
|
+
auth0Client: e.string().optional(),
|
|
2736
|
+
authParams: Ke,
|
|
2737
|
+
expires_at: e.string(),
|
|
2738
|
+
deleted_at: e.string().optional(),
|
|
2739
|
+
ip: e.string().optional(),
|
|
2740
|
+
useragent: e.string().optional(),
|
|
2741
|
+
session_id: e.string().optional(),
|
|
2742
|
+
authorization_url: e.string().optional(),
|
|
2743
|
+
state: Xt.optional().default("pending"),
|
|
2744
|
+
state_data: e.string().optional(),
|
|
2745
|
+
failure_reason: e.string().optional(),
|
|
2746
|
+
user_id: e.string().optional(),
|
|
2747
|
+
auth_connection: e.string().optional(),
|
|
2748
|
+
auth_strategy: Zt.optional(),
|
|
2749
|
+
authenticated_at: e.string().optional()
|
|
2750
|
+
}).openapi({ description: "This represents a login sesion" }).extend({
|
|
2751
|
+
id: e.string().openapi({ description: "This is is used as the state in the universal login" }),
|
|
2752
|
+
created_at: e.string(),
|
|
2753
|
+
updated_at: e.string()
|
|
2754
|
+
});
|
|
2755
|
+
var J = {
|
|
2756
|
+
ACLS_SUMMARY: "acls_summary",
|
|
2757
|
+
ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
|
|
2758
|
+
API_LIMIT: "api_limit",
|
|
2759
|
+
API_LIMIT_WARNING: "api_limit_warning",
|
|
2760
|
+
APPI: "appi",
|
|
2761
|
+
CIBA_EXCHANGE_FAILED: "ciba_exchange_failed",
|
|
2762
|
+
CIBA_EXCHANGE_SUCCEEDED: "ciba_exchange_succeeded",
|
|
2763
|
+
CIBA_START_FAILED: "ciba_start_failed",
|
|
2764
|
+
CIBA_START_SUCCEEDED: "ciba_start_succeeded",
|
|
2765
|
+
CODE_LINK_SENT: "cls",
|
|
2766
|
+
CODE_SENT: "cs",
|
|
2767
|
+
DEPRECATION_NOTICE: "depnote",
|
|
2768
|
+
FAILED_LOGIN: "f",
|
|
2769
|
+
FAILED_BY_CONNECTOR: "fc",
|
|
2770
|
+
FAILED_CHANGE_EMAIL: "fce",
|
|
2771
|
+
FAILED_BY_CORS: "fco",
|
|
2772
|
+
FAILED_CROSS_ORIGIN_AUTHENTICATION: "fcoa",
|
|
2773
|
+
FAILED_CHANGE_PASSWORD: "fcp",
|
|
2774
|
+
FAILED_POST_CHANGE_PASSWORD_HOOK: "fcph",
|
|
2775
|
+
FAILED_CHANGE_PHONE_NUMBER: "fcpn",
|
|
2776
|
+
FAILED_CHANGE_PASSWORD_REQUEST: "fcpr",
|
|
2777
|
+
FAILED_CONNECTOR_PROVISIONING: "fcpro",
|
|
2778
|
+
FAILED_CHANGE_USERNAME: "fcu",
|
|
2779
|
+
FAILED_DELEGATION: "fd",
|
|
2780
|
+
FAILED_DEVICE_ACTIVATION: "fdeac",
|
|
2781
|
+
FAILED_DEVICE_AUTHORIZATION_REQUEST: "fdeaz",
|
|
2782
|
+
USER_CANCELED_DEVICE_CONFIRMATION: "fdecc",
|
|
2783
|
+
FAILED_USER_DELETION: "fdu",
|
|
2784
|
+
FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN: "feacft",
|
|
2785
|
+
FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS: "feccft",
|
|
2786
|
+
FAILED_EXCHANGE_CUSTOM_TOKEN: "fecte",
|
|
2787
|
+
FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN: "fede",
|
|
2788
|
+
FAILED_FEDERATED_LOGOUT: "federated_logout_failed",
|
|
2789
|
+
FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN: "fens",
|
|
2790
|
+
FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN: "feoobft",
|
|
2791
|
+
FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN: "feotpft",
|
|
2792
|
+
FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN: "fepft",
|
|
2793
|
+
FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN: "fepotpft",
|
|
2794
|
+
FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN: "fercft",
|
|
2795
|
+
FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN: "ferrt",
|
|
2796
|
+
FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN: "fertft",
|
|
2797
|
+
FAILED_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN: "festft",
|
|
2798
|
+
FAILED_HOOK: "fh",
|
|
2799
|
+
FAILED_IMPERSONATION: "fimp",
|
|
2800
|
+
FAILED_INVITE_ACCEPT: "fi",
|
|
2801
|
+
FAILED_LOGOUT: "flo",
|
|
2802
|
+
FLOWS_EXECUTION_COMPLETED: "flows_execution_completed",
|
|
2803
|
+
FLOWS_EXECUTION_FAILED: "flows_execution_failed",
|
|
2804
|
+
FAILED_SENDING_NOTIFICATION: "fn",
|
|
2805
|
+
FORMS_SUBMISSION_FAILED: "forms_submission_failed",
|
|
2806
|
+
FORMS_SUBMISSION_SUCCEEDED: "forms_submission_succeeded",
|
|
2807
|
+
FAILED_LOGIN_INCORRECT_PASSWORD: "fp",
|
|
2808
|
+
FAILED_PUSHED_AUTHORIZATION_REQUEST: "fpar",
|
|
2809
|
+
FAILED_POST_USER_REGISTRATION_HOOK: "fpurh",
|
|
2810
|
+
FAILED_SIGNUP: "fs",
|
|
2811
|
+
FAILED_SILENT_AUTH: "fsa",
|
|
2812
|
+
FAILED_LOGIN_INVALID_EMAIL_USERNAME: "fu",
|
|
2813
|
+
FAILED_USERS_IMPORT: "fui",
|
|
2814
|
+
FAILED_VERIFICATION_EMAIL: "fv",
|
|
2815
|
+
FAILED_VERIFICATION_EMAIL_REQUEST: "fvr",
|
|
2816
|
+
EMAIL_VERIFICATION_CONFIRMED: "gd_auth_email_verification",
|
|
2817
|
+
EMAIL_VERIFICATION_FAILED: "gd_auth_fail_email_verification",
|
|
2818
|
+
MFA_AUTH_FAILED: "gd_auth_failed",
|
|
2819
|
+
MFA_AUTH_REJECTED: "gd_auth_rejected",
|
|
2820
|
+
MFA_AUTH_SUCCESS: "gd_auth_succeed",
|
|
2821
|
+
MFA_ENROLLMENT_COMPLETE: "gd_enrollment_complete",
|
|
2822
|
+
TOO_MANY_MFA_FAILURES: "gd_otp_rate_limit_exceed",
|
|
2823
|
+
MFA_RECOVERY_FAILED: "gd_recovery_failed",
|
|
2824
|
+
MFA_RECOVERY_RATE_LIMIT_EXCEED: "gd_recovery_rate_limit_exceed",
|
|
2825
|
+
MFA_RECOVERY_SUCCESS: "gd_recovery_succeed",
|
|
2826
|
+
MFA_EMAIL_SENT: "gd_send_email",
|
|
2827
|
+
EMAIL_VERIFICATION_SENT: "gd_send_email_verification",
|
|
2828
|
+
EMAIL_VERIFICATION_SEND_FAILURE: "gd_send_email_verification_failure",
|
|
2829
|
+
PUSH_NOTIFICATION_SENT: "gd_send_pn",
|
|
2830
|
+
ERROR_SENDING_MFA_PUSH_NOTIFICATION: "gd_send_pn_failure",
|
|
2831
|
+
MFA_SMS_SENT: "gd_send_sms",
|
|
2832
|
+
ERROR_SENDING_MFA_SMS: "gd_send_sms_failure",
|
|
2833
|
+
MFA_VOICE_CALL_SUCCESS: "gd_send_voice",
|
|
2834
|
+
MFA_VOICE_CALL_FAILED: "gd_send_voice_failure",
|
|
2835
|
+
SECOND_FACTOR_STARTED: "gd_start_auth",
|
|
2836
|
+
MFA_ENROLL_STARTED: "gd_start_enroll",
|
|
2837
|
+
MFA_ENROLLMENT_FAILED: "gd_start_enroll_failed",
|
|
2838
|
+
GUARDIAN_TENANT_UPDATE: "gd_tenant_update",
|
|
2839
|
+
UNENROLL_DEVICE_ACCOUNT: "gd_unenroll",
|
|
2840
|
+
UPDATE_DEVICE_ACCOUNT: "gd_update_device_account",
|
|
2841
|
+
WEBAUTHN_CHALLENGE_FAILED: "gd_webauthn_challenge_failed",
|
|
2842
|
+
WEBAUTHN_ENROLLMENT_FAILED: "gd_webauthn_enrollment_failed",
|
|
2843
|
+
FAILED_KMS_API_OPERATION: "kms_key_management_failure",
|
|
2844
|
+
SUCCESS_KMS_API_OPERATION: "kms_key_management_success",
|
|
2845
|
+
KMS_KEY_STATE_CHANGED: "kms_key_state_changed",
|
|
2846
|
+
TOO_MANY_CALLS_TO_DELEGATION: "limit_delegation",
|
|
2847
|
+
BLOCKED_IP_ADDRESS: "limit_mu",
|
|
2848
|
+
BLOCKED_ACCOUNT_IP: "limit_sul",
|
|
2849
|
+
BLOCKED_ACCOUNT_EMAIL: "limit_wc",
|
|
2850
|
+
INFORMATION: "i",
|
|
2851
|
+
MFA_REQUIRED: "mfar",
|
|
2852
|
+
MANAGEMENT_API_READ_OPERATION: "mgmt_api_read",
|
|
2853
|
+
FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT: "my_account_authentication_method_failed",
|
|
2854
|
+
SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT: "my_account_authentication_method_succeeded",
|
|
2855
|
+
FAILED_OIDC_BACKCHANNEL_LOGOUT: "oidc_backchannel_logout_failed",
|
|
2856
|
+
SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT: "oidc_backchannel_logout_succeeded",
|
|
2857
|
+
ORGANIZATION_MEMBER_ADDED: "organization_member_added",
|
|
2858
|
+
PASSKEY_CHALLENGE_FAILED: "passkey_challenge_failed",
|
|
2859
|
+
PASSKEY_CHALLENGE_STARTED: "passkey_challenge_started",
|
|
2860
|
+
PRE_LOGIN_ASSESSMENT: "pla",
|
|
2861
|
+
BREACHED_PASSWORD: "pwd_leak",
|
|
2862
|
+
BREACHED_PASSWORD_ON_RESET: "reset_pwd_leak",
|
|
2863
|
+
SUCCESS_RESOURCE_CLEANUP: "resource_cleanup",
|
|
2864
|
+
RICH_CONSENTS_ACCESS_ERROR: "rich_consents_access_error",
|
|
2865
|
+
SUCCESS_LOGIN: "s",
|
|
2866
|
+
SUCCESS_API_OPERATION: "sapi",
|
|
2867
|
+
FAILED_API_OPERATION: "fapi",
|
|
2868
|
+
SUCCESS_CHANGE_EMAIL: "sce",
|
|
2869
|
+
SUCCESS_CROSS_ORIGIN_AUTHENTICATION: "scoa",
|
|
2870
|
+
SUCCESS_CHANGE_PASSWORD: "scp",
|
|
2871
|
+
SUCCESS_CHANGE_PHONE_NUMBER: "scpn",
|
|
2872
|
+
SUCCESS_CHANGE_PASSWORD_REQUEST: "scpr",
|
|
2873
|
+
SUCCESS_CHANGE_USERNAME: "scu",
|
|
2874
|
+
SUCCESS_CREDENTIAL_VALIDATION: "scv",
|
|
2875
|
+
SUCCESS_DELEGATION: "sd",
|
|
2876
|
+
SUCCESS_USER_DELETION: "sdu",
|
|
2877
|
+
SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN: "seacft",
|
|
2878
|
+
SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS: "seccft",
|
|
2879
|
+
SUCCESS_EXCHANGE_CUSTOM_TOKEN: "secte",
|
|
2880
|
+
SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN: "sede",
|
|
2881
|
+
SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN: "sens",
|
|
2882
|
+
SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN: "seoobft",
|
|
2883
|
+
SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN: "seotpft",
|
|
2884
|
+
SUCCESS_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN: "sepotpft",
|
|
2885
|
+
SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN: "sepft",
|
|
2886
|
+
SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN: "sepkoobft",
|
|
2887
|
+
SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN: "sepkotpft",
|
|
2888
|
+
SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN: "sepkrcft",
|
|
2889
|
+
SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN: "sercft",
|
|
2890
|
+
SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN: "sertft",
|
|
2891
|
+
SUCCESS_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN: "sestft",
|
|
2892
|
+
SUCCESS_IMPERSONATION: "simp",
|
|
2893
|
+
SUCCESSFULLY_ACCEPTED_USER_INVITE: "si",
|
|
2894
|
+
BREACHED_PASSWORD_ON_SIGNUP: "signup_pwd_leak",
|
|
2895
|
+
SUCCESS_LOGOUT: "slo",
|
|
2896
|
+
SUCCESS_HOOK: "sh",
|
|
2897
|
+
SUCCESS_PASSWORD_MIGRATION: "spm",
|
|
2898
|
+
SUCCESS_REVOCATION: "srrt",
|
|
2899
|
+
SUCCESS_SIGNUP: "ss",
|
|
2900
|
+
FAILED_SS_SSO_OPERATION: "ss_sso_failure",
|
|
2901
|
+
INFORMATION_FROM_SS_SSO_OPERATION: "ss_sso_info",
|
|
2902
|
+
SUCCESS_SS_SSO_OPERATION: "ss_sso_success",
|
|
2903
|
+
SUCCESS_SILENT_AUTH: "ssa",
|
|
2904
|
+
SUCCESSFUL_SCIM_OPERATION: "sscim",
|
|
2905
|
+
SUCCESSFULLY_IMPORTED_USERS: "sui",
|
|
2906
|
+
SUCCESS_VERIFICATION_EMAIL: "sv",
|
|
2907
|
+
SUCCESS_VERIFICATION_EMAIL_REQUEST: "svr",
|
|
2908
|
+
MAX_AMOUNT_OF_AUTHENTICATORS: "too_many_records",
|
|
2909
|
+
USER_LOGIN_BLOCK_RELEASED: "ublkdu",
|
|
2910
|
+
FAILED_UNIVERSAL_LOGOUT: "universal_logout_failed",
|
|
2911
|
+
SUCCESSFUL_UNIVERSAL_LOGOUT: "universal_logout_succeeded",
|
|
2912
|
+
WARNING_DURING_LOGIN: "w",
|
|
2913
|
+
WARNING_SENDING_NOTIFICATION: "wn",
|
|
2914
|
+
WARNING_USER_MANAGEMENT: "wum"
|
|
2915
|
+
}, Qt = e.string().refine((e) => Object.values(J).includes(e), { message: "Invalid log type" });
|
|
2916
|
+
J.ACLS_SUMMARY, J.ACTIONS_EXECUTION_FAILED, J.API_LIMIT, J.API_LIMIT_WARNING, J.APPI, J.CIBA_EXCHANGE_FAILED, J.CIBA_EXCHANGE_SUCCEEDED, J.CIBA_START_FAILED, J.CIBA_START_SUCCEEDED, J.CODE_LINK_SENT, J.CODE_SENT, J.DEPRECATION_NOTICE, J.FAILED_LOGIN, J.FAILED_BY_CONNECTOR, J.FAILED_CHANGE_EMAIL, J.FAILED_BY_CORS, J.FAILED_CROSS_ORIGIN_AUTHENTICATION, J.FAILED_CHANGE_PASSWORD, J.FAILED_POST_CHANGE_PASSWORD_HOOK, J.FAILED_CHANGE_PHONE_NUMBER, J.FAILED_CHANGE_PASSWORD_REQUEST, J.FAILED_CONNECTOR_PROVISIONING, J.FAILED_CHANGE_USERNAME, J.FAILED_DELEGATION, J.FAILED_DEVICE_ACTIVATION, J.FAILED_DEVICE_AUTHORIZATION_REQUEST, J.USER_CANCELED_DEVICE_CONFIRMATION, J.FAILED_USER_DELETION, J.FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN, J.FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS, J.FAILED_EXCHANGE_CUSTOM_TOKEN, J.FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN, J.FAILED_FEDERATED_LOGOUT, J.FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN, J.FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN, J.FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN, J.FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN, J.FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN, J.FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN, J.FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN, J.FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN, J.FAILED_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN, J.FAILED_HOOK, J.FAILED_IMPERSONATION, J.FAILED_INVITE_ACCEPT, J.FAILED_LOGOUT, J.FLOWS_EXECUTION_COMPLETED, J.FLOWS_EXECUTION_FAILED, J.FAILED_SENDING_NOTIFICATION, J.FORMS_SUBMISSION_FAILED, J.FORMS_SUBMISSION_SUCCEEDED, J.FAILED_LOGIN_INCORRECT_PASSWORD, J.FAILED_PUSHED_AUTHORIZATION_REQUEST, J.FAILED_POST_USER_REGISTRATION_HOOK, J.FAILED_SIGNUP, J.FAILED_SILENT_AUTH, J.FAILED_LOGIN_INVALID_EMAIL_USERNAME, J.FAILED_USERS_IMPORT, J.FAILED_VERIFICATION_EMAIL, J.FAILED_VERIFICATION_EMAIL_REQUEST, J.EMAIL_VERIFICATION_CONFIRMED, J.EMAIL_VERIFICATION_FAILED, J.MFA_AUTH_FAILED, J.MFA_AUTH_REJECTED, J.MFA_AUTH_SUCCESS, J.MFA_ENROLLMENT_COMPLETE, J.TOO_MANY_MFA_FAILURES, J.MFA_RECOVERY_FAILED, J.MFA_RECOVERY_RATE_LIMIT_EXCEED, J.MFA_RECOVERY_SUCCESS, J.MFA_EMAIL_SENT, J.EMAIL_VERIFICATION_SENT, J.EMAIL_VERIFICATION_SEND_FAILURE, J.PUSH_NOTIFICATION_SENT, J.ERROR_SENDING_MFA_PUSH_NOTIFICATION, J.MFA_SMS_SENT, J.ERROR_SENDING_MFA_SMS, J.MFA_VOICE_CALL_SUCCESS, J.MFA_VOICE_CALL_FAILED, J.SECOND_FACTOR_STARTED, J.MFA_ENROLL_STARTED, J.MFA_ENROLLMENT_FAILED, J.GUARDIAN_TENANT_UPDATE, J.UNENROLL_DEVICE_ACCOUNT, J.UPDATE_DEVICE_ACCOUNT, J.WEBAUTHN_CHALLENGE_FAILED, J.WEBAUTHN_ENROLLMENT_FAILED, J.FAILED_KMS_API_OPERATION, J.SUCCESS_KMS_API_OPERATION, J.KMS_KEY_STATE_CHANGED, J.TOO_MANY_CALLS_TO_DELEGATION, J.BLOCKED_IP_ADDRESS, J.BLOCKED_ACCOUNT_IP, J.BLOCKED_ACCOUNT_EMAIL, J.INFORMATION, J.MFA_REQUIRED, J.MANAGEMENT_API_READ_OPERATION, J.FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT, J.SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT, J.FAILED_OIDC_BACKCHANNEL_LOGOUT, J.SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT, J.ORGANIZATION_MEMBER_ADDED, J.PASSKEY_CHALLENGE_FAILED, J.PASSKEY_CHALLENGE_STARTED, J.PRE_LOGIN_ASSESSMENT, J.BREACHED_PASSWORD, J.BREACHED_PASSWORD_ON_RESET, J.SUCCESS_RESOURCE_CLEANUP, J.RICH_CONSENTS_ACCESS_ERROR, J.SUCCESS_LOGIN, J.SUCCESS_API_OPERATION, J.FAILED_API_OPERATION, J.SUCCESS_CHANGE_EMAIL, J.SUCCESS_CROSS_ORIGIN_AUTHENTICATION, J.SUCCESS_CHANGE_PASSWORD, J.SUCCESS_CHANGE_PHONE_NUMBER, J.SUCCESS_CHANGE_PASSWORD_REQUEST, J.SUCCESS_CHANGE_USERNAME, J.SUCCESS_CREDENTIAL_VALIDATION, J.SUCCESS_DELEGATION, J.SUCCESS_USER_DELETION, J.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN, J.SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS, J.SUCCESS_EXCHANGE_CUSTOM_TOKEN, J.SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN, J.SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN, J.SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN, J.SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN, J.SUCCESS_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN, J.SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN, J.SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN, J.SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN, J.SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN, J.SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN, J.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN, J.SUCCESS_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN, J.SUCCESS_IMPERSONATION, J.SUCCESSFULLY_ACCEPTED_USER_INVITE, J.BREACHED_PASSWORD_ON_SIGNUP, J.SUCCESS_LOGOUT, J.SUCCESS_HOOK, J.SUCCESS_PASSWORD_MIGRATION, J.SUCCESS_REVOCATION, J.SUCCESS_SIGNUP, J.FAILED_SS_SSO_OPERATION, J.INFORMATION_FROM_SS_SSO_OPERATION, J.SUCCESS_SS_SSO_OPERATION, J.SUCCESS_SILENT_AUTH, J.SUCCESSFUL_SCIM_OPERATION, J.SUCCESSFULLY_IMPORTED_USERS, J.SUCCESS_VERIFICATION_EMAIL, J.SUCCESS_VERIFICATION_EMAIL_REQUEST, J.MAX_AMOUNT_OF_AUTHENTICATORS, J.USER_LOGIN_BLOCK_RELEASED, J.FAILED_UNIVERSAL_LOGOUT, J.SUCCESSFUL_UNIVERSAL_LOGOUT, J.WARNING_DURING_LOGIN, J.WARNING_SENDING_NOTIFICATION, J.WARNING_USER_MANAGEMENT, (() => {
|
|
2917
|
+
let e = {};
|
|
2918
|
+
for (let [t, n] of Object.entries(J)) t.startsWith("SUCCESS_") || t.startsWith("SUCCESSFUL_") || t.startsWith("SUCCESSFULLY_") || t.endsWith("_SUCCEEDED") || t.endsWith("_COMPLETED") ? e[n] = "success" : t.startsWith("FAILED_") || t.startsWith("ERROR_") || t.startsWith("BREACHED_") || t.startsWith("BLOCKED_") || t === "MFA_AUTH_FAILED" || t === "MFA_AUTH_REJECTED" || t === "MFA_RECOVERY_FAILED" || t === "MFA_ENROLLMENT_FAILED" || t === "EMAIL_VERIFICATION_FAILED" || t === "WEBAUTHN_CHALLENGE_FAILED" || t === "WEBAUTHN_ENROLLMENT_FAILED" || t === "PASSKEY_CHALLENGE_FAILED" || t === "FLOWS_EXECUTION_FAILED" || t === "FORMS_SUBMISSION_FAILED" || t === "CIBA_EXCHANGE_FAILED" || t === "CIBA_START_FAILED" || t === "ACTIONS_EXECUTION_FAILED" || t === "RICH_CONSENTS_ACCESS_ERROR" || t === "USER_CANCELED_DEVICE_CONFIRMATION" || t === "TOO_MANY_MFA_FAILURES" || t === "MFA_RECOVERY_RATE_LIMIT_EXCEED" || t === "API_LIMIT" || t === "MAX_AMOUNT_OF_AUTHENTICATORS" ? e[n] = "failure" : t.startsWith("WARNING_") || t === "API_LIMIT_WARNING" || t === "DEPRECATION_NOTICE" || t === "PRE_LOGIN_ASSESSMENT" ? e[n] = "warning" : t === "CODE_SENT" || t === "CODE_LINK_SENT" || t === "MFA_EMAIL_SENT" || t === "MFA_SMS_SENT" || t === "EMAIL_VERIFICATION_SENT" || t === "PUSH_NOTIFICATION_SENT" ? e[n] = "code_sent" : t === "INFORMATION" || t === "INFORMATION_FROM_SS_SSO_OPERATION" || t === "MANAGEMENT_API_READ_OPERATION" || t === "APPI" || t === "ACLS_SUMMARY" || t === "ORGANIZATION_MEMBER_ADDED" ? e[n] = "info" : e[n] = "other";
|
|
2919
|
+
return e;
|
|
2920
|
+
})();
|
|
2921
|
+
var $t = e.object({
|
|
2922
|
+
name: e.string(),
|
|
2923
|
+
version: e.string(),
|
|
2924
|
+
env: e.object({ node: e.string().optional() }).optional()
|
|
2925
|
+
}), en = e.object({
|
|
2926
|
+
country_code: e.string().length(2),
|
|
2927
|
+
city_name: e.string(),
|
|
2928
|
+
latitude: e.string(),
|
|
2929
|
+
longitude: e.string(),
|
|
2930
|
+
time_zone: e.string(),
|
|
2931
|
+
continent_code: e.string()
|
|
2932
|
+
});
|
|
2933
|
+
e.object({
|
|
2934
|
+
type: Qt,
|
|
2935
|
+
date: e.string(),
|
|
2936
|
+
description: e.string().optional(),
|
|
2937
|
+
ip: e.string().optional(),
|
|
2938
|
+
user_agent: e.string().optional(),
|
|
2939
|
+
details: e.any().optional(),
|
|
2940
|
+
isMobile: e.boolean(),
|
|
2941
|
+
user_id: e.string().optional(),
|
|
2942
|
+
user_name: e.string().optional(),
|
|
2943
|
+
connection: e.string().optional(),
|
|
2944
|
+
connection_id: e.string().optional(),
|
|
2945
|
+
client_id: e.string().optional(),
|
|
2946
|
+
client_name: e.string().optional(),
|
|
2947
|
+
audience: e.string().optional(),
|
|
2948
|
+
scope: e.string().optional(),
|
|
2949
|
+
strategy: e.string().optional(),
|
|
2950
|
+
strategy_type: e.string().optional(),
|
|
2951
|
+
hostname: e.string().optional(),
|
|
2952
|
+
auth0_client: $t.optional(),
|
|
2953
|
+
log_id: e.string().optional(),
|
|
2954
|
+
location_info: en.optional()
|
|
2955
|
+
}).extend({ log_id: e.string() });
|
|
2956
|
+
var tn = e.enum([
|
|
2957
|
+
"http",
|
|
2958
|
+
"eventbridge",
|
|
2959
|
+
"eventgrid",
|
|
2960
|
+
"splunk",
|
|
2961
|
+
"datadog",
|
|
2962
|
+
"sumo"
|
|
2963
|
+
]), Y = e.enum([
|
|
2964
|
+
"active",
|
|
2965
|
+
"paused",
|
|
2966
|
+
"suspended"
|
|
2967
|
+
]), nn = e.object({
|
|
2968
|
+
type: e.string(),
|
|
2969
|
+
name: e.string()
|
|
2970
|
+
});
|
|
2971
|
+
e.object({
|
|
2972
|
+
name: e.string(),
|
|
2973
|
+
type: tn,
|
|
2974
|
+
status: Y.optional(),
|
|
2975
|
+
sink: e.record(e.string(), e.unknown()),
|
|
2976
|
+
filters: e.array(nn).optional(),
|
|
2977
|
+
isPriority: e.boolean().optional()
|
|
2978
|
+
}).extend({
|
|
2979
|
+
id: e.string(),
|
|
2980
|
+
status: Y,
|
|
2981
|
+
created_at: e.string().optional(),
|
|
2982
|
+
updated_at: e.string().optional()
|
|
2983
|
+
});
|
|
2984
|
+
var rn = e.enum([
|
|
2985
|
+
"auth0",
|
|
2986
|
+
"cognito",
|
|
2987
|
+
"okta",
|
|
2988
|
+
"oidc"
|
|
2989
|
+
]), an = e.object({
|
|
2990
|
+
domain: e.string(),
|
|
2991
|
+
client_id: e.string(),
|
|
2992
|
+
client_secret: e.string(),
|
|
2993
|
+
audience: e.string().optional(),
|
|
2994
|
+
scope: e.string().optional()
|
|
2995
|
+
}), on = e.object({
|
|
2996
|
+
id: e.string().optional(),
|
|
2997
|
+
name: e.string(),
|
|
2998
|
+
provider: rn,
|
|
2999
|
+
connection: e.string(),
|
|
3000
|
+
enabled: e.boolean().default(!0),
|
|
3001
|
+
credentials: an
|
|
3002
|
+
});
|
|
3003
|
+
e.object({
|
|
3004
|
+
id: e.string(),
|
|
3005
|
+
created_at: e.string(),
|
|
3006
|
+
updated_at: e.string()
|
|
3007
|
+
}).extend(on.shape);
|
|
3008
|
+
var sn = e.object({
|
|
3009
|
+
enabled: e.boolean().optional(),
|
|
3010
|
+
shields: e.array(e.string()).optional(),
|
|
3011
|
+
admin_notification_frequency: e.array(e.string()).optional(),
|
|
3012
|
+
method: e.string().optional(),
|
|
3013
|
+
stage: e.object({
|
|
3014
|
+
"pre-user-registration": e.object({ shields: e.array(e.string()).optional() }).optional(),
|
|
3015
|
+
"pre-change-password": e.object({ shields: e.array(e.string()).optional() }).optional()
|
|
3016
|
+
}).optional()
|
|
3017
|
+
}), cn = e.object({
|
|
3018
|
+
enabled: e.boolean().optional(),
|
|
3019
|
+
shields: e.array(e.string()).optional(),
|
|
3020
|
+
allowlist: e.array(e.string()).optional(),
|
|
3021
|
+
mode: e.string().optional(),
|
|
3022
|
+
max_attempts: e.number().optional()
|
|
3023
|
+
}), ln = e.object({
|
|
3024
|
+
enabled: e.boolean().optional(),
|
|
3025
|
+
shields: e.array(e.string()).optional(),
|
|
3026
|
+
allowlist: e.array(e.string()).optional(),
|
|
3027
|
+
stage: e.object({
|
|
3028
|
+
"pre-login": e.object({
|
|
3029
|
+
max_attempts: e.number().optional(),
|
|
3030
|
+
rate: e.number().optional()
|
|
3031
|
+
}).optional(),
|
|
3032
|
+
"pre-user-registration": e.object({
|
|
3033
|
+
max_attempts: e.number().optional(),
|
|
3034
|
+
rate: e.number().optional()
|
|
3035
|
+
}).optional()
|
|
3036
|
+
}).optional()
|
|
3037
|
+
}), un = e.object({
|
|
3038
|
+
breached_password_detection: sn.optional(),
|
|
3039
|
+
brute_force_protection: cn.optional(),
|
|
3040
|
+
suspicious_ip_throttling: ln.optional()
|
|
3041
|
+
});
|
|
3042
|
+
e.object({
|
|
3043
|
+
id: e.string().optional(),
|
|
3044
|
+
user_id: e.string(),
|
|
3045
|
+
password: e.string(),
|
|
3046
|
+
algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
|
|
3047
|
+
is_current: e.boolean().default(!0)
|
|
3048
|
+
}).extend({
|
|
3049
|
+
id: e.string(),
|
|
3050
|
+
created_at: e.string(),
|
|
3051
|
+
updated_at: e.string()
|
|
3052
|
+
});
|
|
3053
|
+
var X = e.object({
|
|
3054
|
+
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
3055
|
+
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
3056
|
+
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
3057
|
+
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
3058
|
+
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
3059
|
+
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
3060
|
+
}), dn = e.object({
|
|
3061
|
+
id: e.string(),
|
|
3062
|
+
revoked_at: e.string().optional(),
|
|
3063
|
+
used_at: e.string().optional(),
|
|
3064
|
+
user_id: e.string().describe("The user ID associated with the session"),
|
|
3065
|
+
expires_at: e.string().optional(),
|
|
3066
|
+
login_session_id: e.string(),
|
|
3067
|
+
idle_expires_at: e.string().optional(),
|
|
3068
|
+
device: X.describe("Metadata related to the device used in the session"),
|
|
3069
|
+
clients: e.array(e.string()).describe("List of client details for the session")
|
|
3070
|
+
});
|
|
3071
|
+
e.object({
|
|
3072
|
+
created_at: e.string(),
|
|
3073
|
+
updated_at: e.string(),
|
|
3074
|
+
authenticated_at: e.string(),
|
|
3075
|
+
last_interaction_at: e.string()
|
|
3076
|
+
}).extend(dn.shape), e.object({
|
|
3077
|
+
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
3078
|
+
tenant_id: e.string().optional().openapi({ description: "The tenant the key belongs to. Omitted means the key is shared / control-plane scoped." }),
|
|
3079
|
+
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
3080
|
+
fingerprint: e.string().openapi({ description: "The cert fingerprint" }),
|
|
3081
|
+
thumbprint: e.string().openapi({ description: "The cert thumbprint" }),
|
|
3082
|
+
pkcs7: e.string().optional().openapi({ description: "The private key in pkcs7 format" }),
|
|
3083
|
+
current: e.boolean().optional().openapi({ description: "True if the key is the current key" }),
|
|
3084
|
+
next: e.boolean().optional().openapi({ description: "True if the key is the next key" }),
|
|
3085
|
+
previous: e.boolean().optional().openapi({ description: "True if the key is the previous key" }),
|
|
3086
|
+
current_since: e.string().optional().openapi({ description: "The date and time when the key became the current key" }),
|
|
3087
|
+
current_until: e.string().optional().openapi({ description: "The date and time when the current key was rotated" }),
|
|
3088
|
+
revoked: e.boolean().optional().openapi({ description: "True if the key is revoked" }),
|
|
3089
|
+
revoked_at: e.string().optional().openapi({ description: "The date and time when the key was revoked" }),
|
|
3090
|
+
connection: e.string().optional().openapi({ description: "The connection identifier associated with the key" }),
|
|
3091
|
+
type: e.enum(["jwt_signing", "saml_encryption"]).openapi({ description: "The type of the signing key" })
|
|
3092
|
+
});
|
|
3093
|
+
var fn = e.object({
|
|
3094
|
+
id: e.string().optional(),
|
|
3095
|
+
audience: e.string().optional(),
|
|
3096
|
+
friendly_name: e.string(),
|
|
3097
|
+
picture_url: e.string().optional(),
|
|
3098
|
+
support_email: e.string().optional(),
|
|
3099
|
+
support_url: e.string().optional(),
|
|
3100
|
+
sender_email: e.string().email().optional(),
|
|
3101
|
+
sender_name: e.string().optional(),
|
|
3102
|
+
session_lifetime: e.number().optional(),
|
|
3103
|
+
idle_session_lifetime: e.number().optional(),
|
|
3104
|
+
ephemeral_session_lifetime: e.number().optional(),
|
|
3105
|
+
idle_ephemeral_session_lifetime: e.number().optional(),
|
|
3106
|
+
session_cookie: e.object({ mode: e.enum(["persistent", "non-persistent"]).optional() }).optional(),
|
|
3107
|
+
allowed_logout_urls: e.array(e.string()).optional(),
|
|
3108
|
+
default_redirection_uri: e.string().optional(),
|
|
3109
|
+
default_client_id: e.string().optional(),
|
|
3110
|
+
enabled_locales: e.array(e.string()).optional(),
|
|
3111
|
+
default_directory: e.string().optional(),
|
|
3112
|
+
error_page: e.object({
|
|
3113
|
+
html: e.string().optional(),
|
|
3114
|
+
show_log_link: e.boolean().optional(),
|
|
3115
|
+
url: e.string().optional()
|
|
3116
|
+
}).nullish(),
|
|
3117
|
+
flags: e.object({
|
|
3118
|
+
allow_changing_enable_sso: e.boolean().optional(),
|
|
3119
|
+
allow_legacy_delegation_grant_types: e.boolean().optional(),
|
|
3120
|
+
allow_legacy_ro_grant_types: e.boolean().optional(),
|
|
3121
|
+
allow_legacy_tokeninfo_endpoint: e.boolean().optional(),
|
|
3122
|
+
change_pwd_flow_v1: e.boolean().optional(),
|
|
3123
|
+
client_id_metadata_document_registration: e.boolean().optional(),
|
|
3124
|
+
custom_domains_provisioning: e.boolean().optional(),
|
|
3125
|
+
dashboard_insights_view: e.boolean().optional(),
|
|
3126
|
+
dashboard_log_streams_next: e.boolean().optional(),
|
|
3127
|
+
disable_clickjack_protection_headers: e.boolean().optional(),
|
|
3128
|
+
disable_fields_map_fix: e.boolean().optional(),
|
|
3129
|
+
disable_impersonation: e.boolean().optional(),
|
|
3130
|
+
disable_management_api_sms_obfuscation: e.boolean().optional(),
|
|
3131
|
+
enable_adfs_waad_email_verification: e.boolean().optional(),
|
|
3132
|
+
enable_apis_section: e.boolean().optional(),
|
|
3133
|
+
enable_client_connections: e.boolean().optional(),
|
|
3134
|
+
enable_custom_domain_in_emails: e.boolean().optional(),
|
|
3135
|
+
enable_dynamic_client_registration: e.boolean().optional(),
|
|
3136
|
+
dcr_require_initial_access_token: e.boolean().optional(),
|
|
3137
|
+
dcr_allowed_grant_types: e.array(e.string()).optional(),
|
|
3138
|
+
allow_http_return_to: e.array(e.string().refine((e) => {
|
|
3139
|
+
try {
|
|
3140
|
+
let t = new URL(e);
|
|
3141
|
+
return t.protocol === "http:" && (t.pathname === "" || t.pathname === "/") && !t.search && !t.hash && e === t.origin;
|
|
3142
|
+
} catch {
|
|
3143
|
+
return !1;
|
|
1389
3144
|
}
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
3145
|
+
}, { message: "must be a fully-qualified http origin (scheme + host + port, no path)" })).optional(),
|
|
3146
|
+
enable_idtoken_api2: e.boolean().optional(),
|
|
3147
|
+
enable_legacy_logs_search_v2: e.boolean().optional(),
|
|
3148
|
+
enable_legacy_profile: e.boolean().optional(),
|
|
3149
|
+
enable_pipeline2: e.boolean().optional(),
|
|
3150
|
+
enable_public_signup_user_exists_error: e.boolean().optional(),
|
|
3151
|
+
enable_sso: e.boolean().optional(),
|
|
3152
|
+
enforce_client_authentication_on_passwordless_start: e.boolean().optional(),
|
|
3153
|
+
genai_trial: e.boolean().optional(),
|
|
3154
|
+
improved_signup_bot_detection_in_classic: e.boolean().optional(),
|
|
3155
|
+
mfa_show_factor_list_on_enrollment: e.boolean().optional(),
|
|
3156
|
+
no_disclose_enterprise_connections: e.boolean().optional(),
|
|
3157
|
+
remove_alg_from_jwks: e.boolean().optional(),
|
|
3158
|
+
revoke_refresh_token_grant: e.boolean().optional(),
|
|
3159
|
+
trust_azure_adfs_email_verified_connection_property: e.boolean().optional(),
|
|
3160
|
+
use_scope_descriptions_for_consent: e.boolean().optional(),
|
|
3161
|
+
inherit_global_permissions_in_organizations: e.boolean().optional(),
|
|
3162
|
+
restrict_undefined_scopes: e.boolean().optional()
|
|
3163
|
+
}).optional(),
|
|
3164
|
+
sandbox_version: e.string().optional(),
|
|
3165
|
+
legacy_sandbox_version: e.string().optional(),
|
|
3166
|
+
sandbox_versions_available: e.array(e.string()).optional(),
|
|
3167
|
+
change_password: e.object({
|
|
3168
|
+
enabled: e.boolean().optional(),
|
|
3169
|
+
html: e.string().optional()
|
|
3170
|
+
}).optional(),
|
|
3171
|
+
guardian_mfa_page: e.object({
|
|
3172
|
+
enabled: e.boolean().optional(),
|
|
3173
|
+
html: e.string().optional()
|
|
3174
|
+
}).optional(),
|
|
3175
|
+
device_flow: e.object({
|
|
3176
|
+
charset: e.enum(["base20", "digits"]).optional(),
|
|
3177
|
+
mask: e.string().max(20).optional()
|
|
3178
|
+
}).optional(),
|
|
3179
|
+
default_token_quota: e.object({
|
|
3180
|
+
clients: e.object({ client_credentials: e.record(e.string(), e.any()).optional() }).optional(),
|
|
3181
|
+
organizations: e.object({ client_credentials: e.record(e.string(), e.any()).optional() }).optional()
|
|
3182
|
+
}).nullish(),
|
|
3183
|
+
default_audience: e.string().optional(),
|
|
3184
|
+
default_organization: e.string().optional(),
|
|
3185
|
+
sessions: e.object({ oidc_logout_prompt_enabled: e.boolean().optional() }).optional(),
|
|
3186
|
+
oidc_logout: e.object({ rp_logout_end_session_endpoint_discovery: e.boolean().optional() }).optional(),
|
|
3187
|
+
allow_organization_name_in_authentication_api: e.boolean().optional(),
|
|
3188
|
+
customize_mfa_in_postlogin_action: e.boolean().optional(),
|
|
3189
|
+
acr_values_supported: e.array(e.string()).optional(),
|
|
3190
|
+
mtls: e.object({ enable_endpoint_aliases: e.boolean().optional() }).nullish(),
|
|
3191
|
+
pushed_authorization_requests_supported: e.boolean().optional(),
|
|
3192
|
+
authorization_response_iss_parameter_supported: e.boolean().optional(),
|
|
3193
|
+
deployment_type: e.enum(["shared", "wfp"]).default("shared").optional(),
|
|
3194
|
+
provisioning_state: e.enum([
|
|
3195
|
+
"pending",
|
|
3196
|
+
"ready",
|
|
3197
|
+
"failed"
|
|
3198
|
+
]).default("ready").optional(),
|
|
3199
|
+
provisioning_error: e.string().max(2048).optional(),
|
|
3200
|
+
provisioning_state_changed_at: e.string().optional(),
|
|
3201
|
+
bundle_configuration: e.string().max(64).optional(),
|
|
3202
|
+
worker_version: e.string().max(64).optional(),
|
|
3203
|
+
database_version: e.string().max(64).optional(),
|
|
3204
|
+
worker_script_name: e.string().max(255).optional(),
|
|
3205
|
+
storage_kind: e.enum([
|
|
3206
|
+
"own_d1",
|
|
3207
|
+
"existing_d1",
|
|
3208
|
+
"shared_planetscale"
|
|
3209
|
+
]).optional(),
|
|
3210
|
+
d1_database_id: e.string().max(64).optional(),
|
|
3211
|
+
attack_protection: un.optional(),
|
|
3212
|
+
mfa: e.object({
|
|
3213
|
+
policy: e.enum(["never", "always"]).default("never").optional(),
|
|
3214
|
+
factors: e.object({
|
|
3215
|
+
sms: e.boolean().default(!1),
|
|
3216
|
+
otp: e.boolean().default(!1),
|
|
3217
|
+
email: e.boolean().default(!1),
|
|
3218
|
+
push_notification: e.boolean().default(!1),
|
|
3219
|
+
webauthn_roaming: e.boolean().default(!1),
|
|
3220
|
+
webauthn_platform: e.boolean().default(!1),
|
|
3221
|
+
recovery_code: e.boolean().default(!1),
|
|
3222
|
+
duo: e.boolean().default(!1)
|
|
3223
|
+
}).optional(),
|
|
3224
|
+
sms_provider: e.object({ provider: e.enum([
|
|
3225
|
+
"twilio",
|
|
3226
|
+
"vonage",
|
|
3227
|
+
"aws_sns",
|
|
3228
|
+
"phone_message_hook"
|
|
3229
|
+
]).optional() }).optional(),
|
|
3230
|
+
twilio: e.object({
|
|
3231
|
+
sid: e.string().optional(),
|
|
3232
|
+
auth_token: e.string().optional(),
|
|
3233
|
+
from: e.string().optional(),
|
|
3234
|
+
messaging_service_sid: e.string().optional()
|
|
3235
|
+
}).optional(),
|
|
3236
|
+
phone_message: e.object({ message: e.string().optional() }).optional()
|
|
3237
|
+
}).optional()
|
|
3238
|
+
});
|
|
3239
|
+
e.object({
|
|
3240
|
+
created_at: e.string().nullable().transform((e) => e ?? ""),
|
|
3241
|
+
updated_at: e.string().nullable().transform((e) => e ?? "")
|
|
3242
|
+
}).extend(fn.shape).extend({
|
|
3243
|
+
id: e.string(),
|
|
3244
|
+
is_control_plane: e.boolean().optional()
|
|
3245
|
+
});
|
|
3246
|
+
var pn = e.enum([
|
|
3247
|
+
"provision",
|
|
3248
|
+
"seed",
|
|
3249
|
+
"upgrade",
|
|
3250
|
+
"backup",
|
|
3251
|
+
"deprovision"
|
|
3252
|
+
]), mn = e.enum([
|
|
3253
|
+
"pending",
|
|
3254
|
+
"running",
|
|
3255
|
+
"succeeded",
|
|
3256
|
+
"failed",
|
|
3257
|
+
"cancelled"
|
|
3258
|
+
]), hn = e.enum(["inline", "cloudflare-workflows"]);
|
|
3259
|
+
e.object({
|
|
3260
|
+
tenant_id: e.string().max(255).nullable().default(null),
|
|
3261
|
+
rollout_id: e.string().max(255).nullable().optional(),
|
|
3262
|
+
kind: pn,
|
|
3263
|
+
engine: hn,
|
|
3264
|
+
engine_instance_id: e.string().max(100).nullable().optional(),
|
|
3265
|
+
target_worker_version: e.string().max(255).nullable().optional(),
|
|
3266
|
+
target_database_version: e.string().max(255).nullable().optional(),
|
|
3267
|
+
initiated_by: e.string().max(255).nullable().optional()
|
|
3268
|
+
}).extend({
|
|
3269
|
+
id: e.string(),
|
|
3270
|
+
status: mn,
|
|
3271
|
+
current_step: e.string().max(255).nullable().optional(),
|
|
3272
|
+
error: e.string().nullable().optional(),
|
|
3273
|
+
created_at: e.string(),
|
|
3274
|
+
updated_at: e.string(),
|
|
3275
|
+
finished_at: e.string().nullable().optional()
|
|
3276
|
+
}).pick({
|
|
3277
|
+
status: !0,
|
|
3278
|
+
current_step: !0,
|
|
3279
|
+
engine_instance_id: !0,
|
|
3280
|
+
target_worker_version: !0,
|
|
3281
|
+
target_database_version: !0,
|
|
3282
|
+
error: !0,
|
|
3283
|
+
finished_at: !0
|
|
3284
|
+
}).partial();
|
|
3285
|
+
var gn = e.enum([
|
|
3286
|
+
"started",
|
|
3287
|
+
"succeeded",
|
|
3288
|
+
"failed",
|
|
3289
|
+
"retried",
|
|
3290
|
+
"skipped",
|
|
3291
|
+
"reconciled"
|
|
3292
|
+
]);
|
|
3293
|
+
e.object({
|
|
3294
|
+
operation_id: e.string().max(255),
|
|
3295
|
+
step: e.string().max(255),
|
|
3296
|
+
outcome: gn,
|
|
3297
|
+
detail: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
3298
|
+
attempt: e.number().int().min(1).default(1)
|
|
3299
|
+
}).extend({
|
|
3300
|
+
id: e.string(),
|
|
3301
|
+
created_at: e.string()
|
|
3302
|
+
});
|
|
3303
|
+
var _n = e.enum([
|
|
3304
|
+
"upgrade",
|
|
3305
|
+
"reseed",
|
|
3306
|
+
"backup"
|
|
3307
|
+
]), vn = e.enum([
|
|
3308
|
+
"pending",
|
|
3309
|
+
"canary",
|
|
3310
|
+
"rolling",
|
|
3311
|
+
"paused",
|
|
3312
|
+
"done",
|
|
3313
|
+
"failed"
|
|
3314
|
+
]);
|
|
3315
|
+
e.object({
|
|
3316
|
+
kind: _n,
|
|
3317
|
+
target_worker_version: e.string().max(255).nullable().optional(),
|
|
3318
|
+
target_database_version: e.string().max(255).nullable().optional(),
|
|
3319
|
+
wave_size: e.number().int().min(1).default(10),
|
|
3320
|
+
canary_tenant_ids: e.array(e.string()).nullable().optional(),
|
|
3321
|
+
filter: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
3322
|
+
initiated_by: e.string().max(255).nullable().optional()
|
|
3323
|
+
}).extend({
|
|
3324
|
+
id: e.string(),
|
|
3325
|
+
status: vn,
|
|
3326
|
+
created_at: e.string(),
|
|
3327
|
+
updated_at: e.string(),
|
|
3328
|
+
finished_at: e.string().nullable().optional()
|
|
3329
|
+
}).pick({
|
|
3330
|
+
status: !0,
|
|
3331
|
+
wave_size: !0,
|
|
3332
|
+
canary_tenant_ids: !0,
|
|
3333
|
+
filter: !0,
|
|
3334
|
+
finished_at: !0
|
|
3335
|
+
}).partial(), e.object({
|
|
3336
|
+
access_token: e.string(),
|
|
3337
|
+
id_token: e.string().optional(),
|
|
3338
|
+
scope: e.string().optional(),
|
|
3339
|
+
state: e.string().optional(),
|
|
3340
|
+
refresh_token: e.string().optional(),
|
|
3341
|
+
token_type: e.string(),
|
|
3342
|
+
expires_in: e.number()
|
|
3343
|
+
}), e.object({
|
|
3344
|
+
code: e.string(),
|
|
3345
|
+
state: e.string().optional()
|
|
3346
|
+
});
|
|
3347
|
+
var yn = e.object({
|
|
3348
|
+
button_border_radius: e.number(),
|
|
3349
|
+
button_border_weight: e.number(),
|
|
3350
|
+
buttons_style: e.enum([
|
|
3351
|
+
"pill",
|
|
3352
|
+
"rounded",
|
|
3353
|
+
"sharp"
|
|
3354
|
+
]),
|
|
3355
|
+
input_border_radius: e.number(),
|
|
3356
|
+
input_border_weight: e.number(),
|
|
3357
|
+
inputs_style: e.enum([
|
|
3358
|
+
"pill",
|
|
3359
|
+
"rounded",
|
|
3360
|
+
"sharp"
|
|
3361
|
+
]),
|
|
3362
|
+
show_widget_shadow: e.boolean(),
|
|
3363
|
+
widget_border_weight: e.number(),
|
|
3364
|
+
widget_corner_radius: e.number()
|
|
3365
|
+
}), bn = e.object({
|
|
3366
|
+
base_focus_color: e.string(),
|
|
3367
|
+
base_hover_color: e.string(),
|
|
3368
|
+
body_text: e.string(),
|
|
3369
|
+
captcha_widget_theme: e.enum([
|
|
3370
|
+
"auto",
|
|
3371
|
+
"dark",
|
|
3372
|
+
"light"
|
|
3373
|
+
]),
|
|
3374
|
+
error: e.string(),
|
|
3375
|
+
header: e.string(),
|
|
3376
|
+
icons: e.string(),
|
|
3377
|
+
input_background: e.string(),
|
|
3378
|
+
input_border: e.string(),
|
|
3379
|
+
input_filled_text: e.string(),
|
|
3380
|
+
input_labels_placeholders: e.string(),
|
|
3381
|
+
links_focused_components: e.string(),
|
|
3382
|
+
primary_button: e.string(),
|
|
3383
|
+
primary_button_label: e.string(),
|
|
3384
|
+
secondary_button_border: e.string(),
|
|
3385
|
+
secondary_button_label: e.string(),
|
|
3386
|
+
success: e.string(),
|
|
3387
|
+
widget_background: e.string(),
|
|
3388
|
+
widget_border: e.string()
|
|
3389
|
+
}), Z = e.object({
|
|
3390
|
+
bold: e.boolean(),
|
|
3391
|
+
size: e.number()
|
|
3392
|
+
}), xn = e.object({
|
|
3393
|
+
body_text: Z,
|
|
3394
|
+
buttons_text: Z,
|
|
3395
|
+
font_url: e.string(),
|
|
3396
|
+
input_labels: Z,
|
|
3397
|
+
links: Z,
|
|
3398
|
+
links_style: e.enum(["normal", "underlined"]),
|
|
3399
|
+
reference_text_size: e.number(),
|
|
3400
|
+
subtitle: Z,
|
|
3401
|
+
title: Z
|
|
3402
|
+
}), Sn = e.object({
|
|
3403
|
+
background_color: e.string(),
|
|
3404
|
+
background_image_url: e.string(),
|
|
3405
|
+
page_layout: e.enum([
|
|
3406
|
+
"center",
|
|
3407
|
+
"left",
|
|
3408
|
+
"right"
|
|
3409
|
+
]),
|
|
3410
|
+
logo_placement: e.enum([
|
|
3411
|
+
"widget",
|
|
3412
|
+
"chip",
|
|
3413
|
+
"none"
|
|
3414
|
+
]).optional()
|
|
3415
|
+
}), Cn = e.object({
|
|
3416
|
+
header_text_alignment: e.enum([
|
|
3417
|
+
"center",
|
|
3418
|
+
"left",
|
|
3419
|
+
"right"
|
|
3420
|
+
]),
|
|
3421
|
+
logo_height: e.number(),
|
|
3422
|
+
logo_position: e.enum([
|
|
3423
|
+
"center",
|
|
3424
|
+
"left",
|
|
3425
|
+
"none",
|
|
3426
|
+
"right"
|
|
3427
|
+
]),
|
|
3428
|
+
logo_url: e.string(),
|
|
3429
|
+
social_buttons_layout: e.enum(["bottom", "top"])
|
|
3430
|
+
});
|
|
3431
|
+
e.object({
|
|
3432
|
+
borders: yn,
|
|
3433
|
+
colors: bn,
|
|
3434
|
+
displayName: e.string(),
|
|
3435
|
+
fonts: xn,
|
|
3436
|
+
page_background: Sn,
|
|
3437
|
+
widget: Cn
|
|
3438
|
+
}).extend({ themeId: e.string() }), e.object({
|
|
3439
|
+
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
3440
|
+
identifier_first: e.boolean().default(!0),
|
|
3441
|
+
password_first: e.boolean().default(!1),
|
|
3442
|
+
webauthn_platform_first_factor: e.boolean()
|
|
3443
|
+
});
|
|
3444
|
+
var wn = e.object({
|
|
3445
|
+
hosts: e.array(e.string()).optional(),
|
|
3446
|
+
methods: e.array(e.string()).optional(),
|
|
3447
|
+
path: e.string().default("/*"),
|
|
3448
|
+
headers: e.record(e.string(), e.string()).optional(),
|
|
3449
|
+
query: e.record(e.string(), e.string()).optional()
|
|
3450
|
+
}), Tn = e.object({
|
|
3451
|
+
type: e.string(),
|
|
3452
|
+
options: e.record(e.string(), e.unknown()).default({})
|
|
3453
|
+
}), Q = e.object({
|
|
3454
|
+
id: e.string().optional(),
|
|
3455
|
+
custom_domain_id: e.string(),
|
|
3456
|
+
priority: e.number().int().default(100),
|
|
3457
|
+
match: wn,
|
|
3458
|
+
handlers: e.array(Tn).min(1)
|
|
3459
|
+
});
|
|
3460
|
+
Q.extend({
|
|
3461
|
+
id: e.string(),
|
|
3462
|
+
tenant_id: e.string(),
|
|
3463
|
+
created_at: e.string(),
|
|
3464
|
+
updated_at: e.string()
|
|
3465
|
+
}), Q.partial().omit({
|
|
3466
|
+
id: !0,
|
|
3467
|
+
custom_domain_id: !0
|
|
3468
|
+
}), e.object({
|
|
3469
|
+
name: e.string(),
|
|
3470
|
+
enabled: e.boolean().optional().default(!0),
|
|
3471
|
+
default_from_address: e.string().optional(),
|
|
3472
|
+
credentials: e.record(e.string(), e.unknown()),
|
|
3473
|
+
settings: e.object({}).optional()
|
|
3474
|
+
});
|
|
3475
|
+
var En = e.enum([
|
|
3476
|
+
"verify_email",
|
|
3477
|
+
"verify_email_by_code",
|
|
3478
|
+
"reset_email",
|
|
3479
|
+
"reset_email_by_code",
|
|
3480
|
+
"welcome_email",
|
|
3481
|
+
"blocked_account",
|
|
3482
|
+
"stolen_credentials",
|
|
3483
|
+
"enrollment_email",
|
|
3484
|
+
"mfa_oob_code",
|
|
3485
|
+
"change_password",
|
|
3486
|
+
"password_reset",
|
|
3487
|
+
"user_invitation"
|
|
3488
|
+
]);
|
|
3489
|
+
e.object({
|
|
3490
|
+
template: En,
|
|
3491
|
+
body: e.string(),
|
|
3492
|
+
from: e.string(),
|
|
3493
|
+
subject: e.string(),
|
|
3494
|
+
syntax: e.literal("liquid").default("liquid"),
|
|
3495
|
+
resultUrl: e.string().optional(),
|
|
3496
|
+
urlLifetimeInSeconds: e.number().int().nonnegative().optional(),
|
|
3497
|
+
includeEmailInRedirect: e.boolean().default(!1),
|
|
3498
|
+
enabled: e.boolean().default(!0)
|
|
3499
|
+
}), e.object({
|
|
3500
|
+
id: e.string(),
|
|
3501
|
+
login_id: e.string(),
|
|
3502
|
+
user_id: e.string(),
|
|
3503
|
+
client_id: e.string(),
|
|
3504
|
+
expires_at: e.string().optional(),
|
|
3505
|
+
idle_expires_at: e.string().optional(),
|
|
3506
|
+
last_exchanged_at: e.string().optional(),
|
|
3507
|
+
device: X,
|
|
3508
|
+
resource_servers: e.array(e.object({
|
|
3509
|
+
audience: e.string(),
|
|
3510
|
+
scopes: e.string()
|
|
3511
|
+
})),
|
|
3512
|
+
rotating: e.boolean(),
|
|
3513
|
+
token_lookup: e.string().optional(),
|
|
3514
|
+
token_hash: e.string().optional(),
|
|
3515
|
+
family_id: e.string().optional(),
|
|
3516
|
+
rotated_to: e.string().optional(),
|
|
3517
|
+
rotated_at: e.string().optional()
|
|
3518
|
+
}).extend({
|
|
3519
|
+
created_at: e.string(),
|
|
3520
|
+
revoked_at: e.string().optional()
|
|
3521
|
+
}), e.object({
|
|
3522
|
+
to: e.string(),
|
|
3523
|
+
message: e.string()
|
|
3524
|
+
}), e.object({
|
|
3525
|
+
name: e.string(),
|
|
3526
|
+
options: e.object({})
|
|
3527
|
+
});
|
|
3528
|
+
var Dn = e.object({
|
|
3529
|
+
value: e.string(),
|
|
3530
|
+
description: e.string().optional()
|
|
3531
|
+
}), On = e.object({
|
|
3532
|
+
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
3533
|
+
enforce_policies: e.boolean().optional(),
|
|
3534
|
+
allow_skipping_userinfo: e.boolean().optional(),
|
|
3535
|
+
skip_userinfo: e.boolean().optional(),
|
|
3536
|
+
persist_client_authorization: e.boolean().optional(),
|
|
3537
|
+
enable_introspection_endpoint: e.boolean().optional(),
|
|
3538
|
+
mtls: e.object({ bound_access_tokens: e.boolean().optional() }).optional()
|
|
3539
|
+
}), kn = e.object({
|
|
3540
|
+
id: e.string().optional(),
|
|
3541
|
+
name: e.string(),
|
|
3542
|
+
identifier: e.string(),
|
|
3543
|
+
scopes: e.array(Dn).optional(),
|
|
3544
|
+
signing_alg: e.string().optional(),
|
|
3545
|
+
signing_secret: e.string().optional(),
|
|
3546
|
+
token_lifetime: e.number().default(86400),
|
|
3547
|
+
token_lifetime_for_web: e.number().default(7200),
|
|
3548
|
+
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
3549
|
+
allow_offline_access: e.boolean().optional(),
|
|
3550
|
+
verificationKey: e.string().optional(),
|
|
3551
|
+
options: On.optional(),
|
|
3552
|
+
is_system: e.boolean().optional(),
|
|
3553
|
+
metadata: e.record(e.string(), e.any()).optional()
|
|
3554
|
+
}).extend({
|
|
3555
|
+
created_at: e.string().optional(),
|
|
3556
|
+
updated_at: e.string().optional()
|
|
3557
|
+
});
|
|
3558
|
+
e.array(kn);
|
|
3559
|
+
var An = e.object({
|
|
3560
|
+
role_id: e.string(),
|
|
3561
|
+
resource_server_identifier: e.string(),
|
|
3562
|
+
permission_name: e.string()
|
|
3563
|
+
}).extend({ created_at: e.string() });
|
|
3564
|
+
e.array(An), e.object({
|
|
3565
|
+
user_id: e.string().openapi({ description: "The id of the user that granted the consent" }),
|
|
3566
|
+
clientID: e.string().openapi({ description: "The id of the client the grant was issued to" }),
|
|
3567
|
+
audience: e.string().optional().openapi({ description: "The audience the grant applies to" }),
|
|
3568
|
+
scope: e.array(e.string()).default([]).openapi({ description: "The list of OAuth scopes the user has consented to" })
|
|
3569
|
+
}).extend({ id: e.string() }), e.object({
|
|
3570
|
+
user_id: e.string(),
|
|
3571
|
+
last_login: e.string().optional(),
|
|
3572
|
+
last_ip: e.string().optional(),
|
|
3573
|
+
login_count: e.number().default(0),
|
|
3574
|
+
failed_logins: e.array(e.string()).optional(),
|
|
3575
|
+
last_password_reset: e.string().optional()
|
|
3576
|
+
});
|
|
3577
|
+
var jn = e.object({
|
|
3578
|
+
user_id: e.string(),
|
|
3579
|
+
resource_server_identifier: e.string(),
|
|
3580
|
+
permission_name: e.string(),
|
|
3581
|
+
organization_id: e.string().optional()
|
|
3582
|
+
}).extend({
|
|
3583
|
+
tenant_id: e.string(),
|
|
3584
|
+
created_at: e.string().optional()
|
|
3585
|
+
});
|
|
3586
|
+
e.array(jn);
|
|
3587
|
+
var Mn = e.object({
|
|
3588
|
+
user_id: e.string(),
|
|
3589
|
+
resource_server_identifier: e.string(),
|
|
3590
|
+
resource_server_name: e.string(),
|
|
3591
|
+
permission_name: e.string(),
|
|
3592
|
+
description: e.string().nullable().optional(),
|
|
3593
|
+
created_at: e.string().optional(),
|
|
3594
|
+
organization_id: e.string().optional()
|
|
3595
|
+
});
|
|
3596
|
+
e.array(Mn);
|
|
3597
|
+
var Nn = e.object({
|
|
3598
|
+
user_id: e.string(),
|
|
3599
|
+
role_id: e.string(),
|
|
3600
|
+
organization_id: e.string().optional()
|
|
3601
|
+
}).extend({
|
|
3602
|
+
tenant_id: e.string(),
|
|
3603
|
+
created_at: e.string().optional()
|
|
3604
|
+
});
|
|
3605
|
+
e.array(Nn);
|
|
3606
|
+
var Pn = e.object({
|
|
3607
|
+
id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
|
|
3608
|
+
name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
|
|
3609
|
+
description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
|
|
3610
|
+
is_system: e.boolean().optional(),
|
|
3611
|
+
metadata: e.record(e.string(), e.any()).optional().openapi({ description: "Metadata associated with the role. Can be used to control sync behavior in multi-tenancy scenarios." })
|
|
3612
|
+
}).extend({
|
|
3613
|
+
id: e.string().openapi({ description: "The unique identifier of the role" }),
|
|
3614
|
+
created_at: e.string().optional(),
|
|
3615
|
+
updated_at: e.string().optional()
|
|
3616
|
+
});
|
|
3617
|
+
e.array(Pn);
|
|
3618
|
+
var Fn = e.object({
|
|
3619
|
+
logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
|
|
3620
|
+
colors: e.object({
|
|
3621
|
+
primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
|
|
3622
|
+
page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
|
|
3623
|
+
}).optional()
|
|
3624
|
+
}).optional(), In = e.object({
|
|
3625
|
+
connection_id: e.string().openapi({ description: "ID of the connection" }),
|
|
3626
|
+
assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
|
|
3627
|
+
show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
|
|
3628
|
+
is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
|
|
3629
|
+
}), Ln = e.object({ client_credentials: e.object({
|
|
3630
|
+
enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
|
|
3631
|
+
per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
|
|
3632
|
+
per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
|
|
3633
|
+
}).optional() }).optional();
|
|
3634
|
+
e.object({
|
|
3635
|
+
id: e.string().optional(),
|
|
3636
|
+
name: e.string().min(1).regex(/^[a-z0-9_-]+$/, { message: "Organization name must be lowercase and can only contain letters, numbers, hyphens, and underscores" }).openapi({ description: "The name of the organization. Must be lowercase and can only contain letters, numbers, hyphens, and underscores." }),
|
|
3637
|
+
display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
|
|
3638
|
+
branding: Fn,
|
|
3639
|
+
metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Custom metadata for the organization" }),
|
|
3640
|
+
enabled_connections: e.array(In).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
|
|
3641
|
+
token_quota: Ln
|
|
3642
|
+
}).extend(C.shape).extend({
|
|
3643
|
+
id: e.string(),
|
|
3644
|
+
name: e.string().min(1).openapi({ description: "The name of the organization" })
|
|
3645
|
+
});
|
|
3646
|
+
var Rn = e.object({
|
|
3647
|
+
connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
|
|
3648
|
+
assign_membership_on_login: e.boolean().optional().default(!1),
|
|
3649
|
+
show_as_button: e.boolean().optional().default(!0),
|
|
3650
|
+
is_signup_enabled: e.boolean().optional().default(!0)
|
|
3651
|
+
}).extend({
|
|
3652
|
+
connection: e.object({
|
|
3653
|
+
name: e.string().optional(),
|
|
3654
|
+
strategy: e.string().optional()
|
|
3655
|
+
}).optional(),
|
|
3656
|
+
created_at: e.string().optional(),
|
|
3657
|
+
updated_at: e.string().optional()
|
|
3658
|
+
});
|
|
3659
|
+
e.array(Rn), e.object({
|
|
3660
|
+
user_id: e.string().openapi({ description: "ID of the user" }),
|
|
3661
|
+
organization_id: e.string().openapi({ description: "ID of the organization" })
|
|
3662
|
+
}).extend(C.shape).extend({ id: e.string() }), e.object({
|
|
3663
|
+
idle_session_lifetime: e.number().default(72),
|
|
3664
|
+
session_lifetime: e.number().default(168),
|
|
3665
|
+
session_cookie: e.object({ mode: e.enum(["persistent", "non-persistent"]).optional() }).optional(),
|
|
3666
|
+
enable_client_connections: e.boolean().optional(),
|
|
3667
|
+
default_redirection_uri: e.string().optional(),
|
|
3668
|
+
enabled_locales: e.array(e.string()).optional(),
|
|
3669
|
+
default_directory: e.string().optional(),
|
|
3670
|
+
error_page: e.object({
|
|
3671
|
+
html: e.string().optional(),
|
|
3672
|
+
show_log_link: e.boolean().optional(),
|
|
3673
|
+
url: e.string().optional()
|
|
3674
|
+
}).optional(),
|
|
3675
|
+
flags: e.object({
|
|
3676
|
+
allow_legacy_delegation_grant_types: e.boolean().optional(),
|
|
3677
|
+
allow_legacy_ro_grant_types: e.boolean().optional(),
|
|
3678
|
+
allow_legacy_tokeninfo_endpoint: e.boolean().optional(),
|
|
3679
|
+
disable_clickjack_protection_headers: e.boolean().optional(),
|
|
3680
|
+
enable_apis_section: e.boolean().optional(),
|
|
3681
|
+
enable_client_connections: e.boolean().optional(),
|
|
3682
|
+
enable_custom_domain_in_emails: e.boolean().optional(),
|
|
3683
|
+
enable_dynamic_client_registration: e.boolean().optional(),
|
|
3684
|
+
enable_idtoken_api2: e.boolean().optional(),
|
|
3685
|
+
enable_legacy_logs_search_v2: e.boolean().optional(),
|
|
3686
|
+
enable_legacy_profile: e.boolean().optional(),
|
|
3687
|
+
enable_pipeline2: e.boolean().optional(),
|
|
3688
|
+
enable_public_signup_user_exists_error: e.boolean().optional(),
|
|
3689
|
+
use_scope_descriptions_for_consent: e.boolean().optional(),
|
|
3690
|
+
disable_management_api_sms_obfuscation: e.boolean().optional(),
|
|
3691
|
+
enable_adfs_waad_email_verification: e.boolean().optional(),
|
|
3692
|
+
revoke_refresh_token_grant: e.boolean().optional(),
|
|
3693
|
+
dashboard_log_streams_next: e.boolean().optional(),
|
|
3694
|
+
dashboard_insights_view: e.boolean().optional(),
|
|
3695
|
+
disable_fields_map_fix: e.boolean().optional(),
|
|
3696
|
+
mfa_show_factor_list_on_enrollment: e.boolean().optional()
|
|
3697
|
+
}).optional(),
|
|
3698
|
+
friendly_name: e.string().optional(),
|
|
3699
|
+
picture_url: e.string().optional(),
|
|
3700
|
+
support_email: e.string().optional(),
|
|
3701
|
+
support_url: e.string().optional(),
|
|
3702
|
+
sandbox_version: e.string().optional(),
|
|
3703
|
+
sandbox_versions_available: e.array(e.string()).optional(),
|
|
3704
|
+
change_password: e.object({
|
|
3705
|
+
enabled: e.boolean(),
|
|
3706
|
+
html: e.string()
|
|
3707
|
+
}).optional(),
|
|
3708
|
+
guardian_mfa_page: e.object({
|
|
3709
|
+
enabled: e.boolean(),
|
|
3710
|
+
html: e.string()
|
|
3711
|
+
}).optional(),
|
|
3712
|
+
default_audience: e.string().optional(),
|
|
3713
|
+
default_organization: e.string().optional(),
|
|
3714
|
+
sessions: e.object({ oidc_logout_prompt_enabled: e.boolean().optional() }).optional(),
|
|
3715
|
+
mfa: e.object({
|
|
3716
|
+
policy: e.enum(["never", "always"]).default("never").optional(),
|
|
3717
|
+
factors: e.object({
|
|
3718
|
+
sms: e.boolean().default(!1),
|
|
3719
|
+
otp: e.boolean().default(!1),
|
|
3720
|
+
email: e.boolean().default(!1),
|
|
3721
|
+
push_notification: e.boolean().default(!1),
|
|
3722
|
+
webauthn_roaming: e.boolean().default(!1),
|
|
3723
|
+
webauthn_platform: e.boolean().default(!1),
|
|
3724
|
+
recovery_code: e.boolean().default(!1),
|
|
3725
|
+
duo: e.boolean().default(!1)
|
|
3726
|
+
}).optional(),
|
|
3727
|
+
sms_provider: e.object({ provider: e.enum([
|
|
3728
|
+
"twilio",
|
|
3729
|
+
"vonage",
|
|
3730
|
+
"aws_sns",
|
|
3731
|
+
"phone_message_hook"
|
|
3732
|
+
]).optional() }).optional(),
|
|
3733
|
+
twilio: e.object({
|
|
3734
|
+
sid: e.string().optional(),
|
|
3735
|
+
auth_token: e.string().optional(),
|
|
3736
|
+
from: e.string().optional(),
|
|
3737
|
+
messaging_service_sid: e.string().optional()
|
|
3738
|
+
}).optional(),
|
|
3739
|
+
phone_message: e.object({ message: e.string().optional() }).optional()
|
|
3740
|
+
}).optional()
|
|
3741
|
+
}), e.object({
|
|
3742
|
+
date: e.string().openapi({
|
|
3743
|
+
description: "Date these events occurred in ISO 8601 format",
|
|
3744
|
+
example: "2025-12-19"
|
|
3745
|
+
}),
|
|
3746
|
+
logins: e.number().openapi({
|
|
3747
|
+
description: "Number of logins on this date",
|
|
3748
|
+
example: 150
|
|
3749
|
+
}),
|
|
3750
|
+
signups: e.number().openapi({
|
|
3751
|
+
description: "Number of signups on this date",
|
|
3752
|
+
example: 25
|
|
3753
|
+
}),
|
|
3754
|
+
leaked_passwords: e.number().openapi({
|
|
3755
|
+
description: "Number of breached-password detections on this date (subscription required)",
|
|
3756
|
+
example: 0
|
|
3757
|
+
}),
|
|
3758
|
+
updated_at: e.string().openapi({
|
|
3759
|
+
description: "Date and time this stats entry was last updated in ISO 8601 format",
|
|
3760
|
+
example: "2025-12-19T10:30:00.000Z"
|
|
3761
|
+
}),
|
|
3762
|
+
created_at: e.string().openapi({
|
|
3763
|
+
description: "Approximate date and time the first event occurred in ISO 8601 format",
|
|
3764
|
+
example: "2025-12-19T00:00:00.000Z"
|
|
3765
|
+
})
|
|
3766
|
+
}), e.number().openapi({
|
|
3767
|
+
description: "Number of active users in the last 30 days",
|
|
3768
|
+
example: 1234
|
|
3769
|
+
}), e.enum([
|
|
3770
|
+
"active-users",
|
|
3771
|
+
"logins",
|
|
3772
|
+
"signups",
|
|
3773
|
+
"refresh-tokens",
|
|
3774
|
+
"sessions",
|
|
3775
|
+
"logouts",
|
|
3776
|
+
"password-changes",
|
|
3777
|
+
"password-migrations",
|
|
3778
|
+
"mfa",
|
|
3779
|
+
"email-verifications",
|
|
3780
|
+
"codes-sent"
|
|
3781
|
+
]), e.enum([
|
|
3782
|
+
"hour",
|
|
3783
|
+
"day",
|
|
3784
|
+
"week",
|
|
3785
|
+
"month"
|
|
3786
|
+
]), e.enum([
|
|
3787
|
+
"time",
|
|
3788
|
+
"connection",
|
|
3789
|
+
"client_id",
|
|
3790
|
+
"user_type",
|
|
3791
|
+
"event"
|
|
3792
|
+
]), e.enum([
|
|
3793
|
+
"password",
|
|
3794
|
+
"social",
|
|
3795
|
+
"passwordless",
|
|
3796
|
+
"enterprise"
|
|
3797
|
+
]);
|
|
3798
|
+
var zn = e.object({
|
|
3799
|
+
name: e.string(),
|
|
3800
|
+
type: e.string()
|
|
3801
|
+
}), Bn = e.object({
|
|
3802
|
+
elapsed: e.number(),
|
|
3803
|
+
rows_read: e.number().optional(),
|
|
3804
|
+
bytes_read: e.number().optional()
|
|
3805
|
+
});
|
|
3806
|
+
e.object({
|
|
3807
|
+
meta: e.array(zn),
|
|
3808
|
+
data: e.array(e.record(e.string(), e.any())),
|
|
3809
|
+
rows: e.number(),
|
|
3810
|
+
rows_before_limit_at_least: e.number().optional(),
|
|
3811
|
+
statistics: Bn.optional()
|
|
3812
|
+
});
|
|
3813
|
+
var Vn = e.enum(/* @__PURE__ */ "login.login-id.login-password.signup.signup-id.signup-password.reset-password.consent.mfa.mfa-push.mfa-otp.mfa-voice.mfa-phone.mfa-webauthn.mfa-email.mfa-recovery-code.status.device-flow.email-verification.email-otp-challenge.organizations.invitation.common.passkeys.captcha.custom-form.login-passwordless.mfa-login-options".split(".")), Hn = e.record(e.string(), e.record(e.string(), e.string())).openapi({
|
|
3814
|
+
type: "object",
|
|
3815
|
+
additionalProperties: {
|
|
3816
|
+
type: "object",
|
|
3817
|
+
additionalProperties: { type: "string" }
|
|
1393
3818
|
}
|
|
1394
|
-
}
|
|
1395
|
-
|
|
3819
|
+
});
|
|
3820
|
+
e.object({
|
|
3821
|
+
prompt: Vn,
|
|
3822
|
+
language: e.string(),
|
|
3823
|
+
custom_text: Hn
|
|
3824
|
+
});
|
|
3825
|
+
var Un = e.enum([
|
|
3826
|
+
"phone",
|
|
3827
|
+
"totp",
|
|
3828
|
+
"email",
|
|
3829
|
+
"push",
|
|
3830
|
+
"webauthn-roaming",
|
|
3831
|
+
"webauthn-platform",
|
|
3832
|
+
"passkey"
|
|
3833
|
+
]), $ = e.object({
|
|
3834
|
+
user_id: e.string(),
|
|
3835
|
+
type: Un,
|
|
3836
|
+
phone_number: e.string().optional(),
|
|
3837
|
+
totp_secret: e.string().optional(),
|
|
3838
|
+
credential_id: e.string().optional(),
|
|
3839
|
+
public_key: e.string().optional(),
|
|
3840
|
+
sign_count: e.number().int().nonnegative().optional(),
|
|
3841
|
+
credential_backed_up: e.boolean().optional(),
|
|
3842
|
+
transports: e.array(e.string()).optional(),
|
|
3843
|
+
friendly_name: e.string().optional(),
|
|
3844
|
+
confirmed: e.boolean().default(!1)
|
|
3845
|
+
});
|
|
3846
|
+
function Wn(t, n) {
|
|
3847
|
+
t.type === "phone" && !t.phone_number && n.addIssue({
|
|
3848
|
+
code: e.ZodIssueCode.custom,
|
|
3849
|
+
message: "phone_number is required when type is 'phone'",
|
|
3850
|
+
path: ["phone_number"]
|
|
3851
|
+
}), t.type === "totp" && !t.totp_secret && n.addIssue({
|
|
3852
|
+
code: e.ZodIssueCode.custom,
|
|
3853
|
+
message: "totp_secret is required when type is 'totp'",
|
|
3854
|
+
path: ["totp_secret"]
|
|
3855
|
+
}), [
|
|
3856
|
+
"webauthn-roaming",
|
|
3857
|
+
"webauthn-platform",
|
|
3858
|
+
"passkey"
|
|
3859
|
+
].includes(t.type) && (t.credential_id || n.addIssue({
|
|
3860
|
+
code: e.ZodIssueCode.custom,
|
|
3861
|
+
message: `credential_id is required when type is '${t.type}'`,
|
|
3862
|
+
path: ["credential_id"]
|
|
3863
|
+
}), t.public_key || n.addIssue({
|
|
3864
|
+
code: e.ZodIssueCode.custom,
|
|
3865
|
+
message: `public_key is required when type is '${t.type}'`,
|
|
3866
|
+
path: ["public_key"]
|
|
3867
|
+
}));
|
|
3868
|
+
}
|
|
3869
|
+
$.superRefine(Wn), $.extend({
|
|
3870
|
+
id: e.string(),
|
|
3871
|
+
created_at: e.string(),
|
|
3872
|
+
updated_at: e.string()
|
|
3873
|
+
}).superRefine(Wn), e.object({
|
|
3874
|
+
id: e.string().optional(),
|
|
3875
|
+
created_at: e.string().datetime({ offset: !0 }).optional(),
|
|
3876
|
+
updated_at: e.string().datetime({ offset: !0 }).optional()
|
|
3877
|
+
});
|
|
3878
|
+
function Gn(e) {
|
|
3879
|
+
let t = atob(e), n = new Uint8Array(t.length);
|
|
3880
|
+
for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
|
|
3881
|
+
return n;
|
|
3882
|
+
}
|
|
1396
3883
|
//#endregion
|
|
1397
|
-
//#region ../../node_modules/.pnpm/nanoid@5.1.
|
|
1398
|
-
var
|
|
3884
|
+
//#region ../../node_modules/.pnpm/nanoid@5.1.16/node_modules/nanoid/url-alphabet/index.js
|
|
3885
|
+
var Kn = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", qn = (e = 21) => {
|
|
1399
3886
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
1400
|
-
for (; e--;) t +=
|
|
3887
|
+
for (; e--;) t += Kn[n[e] & 63];
|
|
1401
3888
|
return t;
|
|
1402
3889
|
};
|
|
1403
3890
|
//#endregion
|
|
1404
3891
|
//#region src/helpers.ts
|
|
1405
|
-
async function
|
|
3892
|
+
async function Jn(e) {
|
|
1406
3893
|
let t = new DecompressionStream("deflate-raw"), n = new Uint8Array(e), r = new Blob([n]).stream().pipeThrough(t);
|
|
1407
3894
|
return new Uint8Array(await new Response(r).arrayBuffer());
|
|
1408
3895
|
}
|
|
1409
|
-
async function
|
|
1410
|
-
let t =
|
|
3896
|
+
async function Yn(e) {
|
|
3897
|
+
let t = Gn(e.replace(/ /g, "+"));
|
|
1411
3898
|
try {
|
|
1412
|
-
let e = await
|
|
3899
|
+
let e = await Jn(t);
|
|
1413
3900
|
return new TextDecoder().decode(e);
|
|
1414
3901
|
} catch (e) {
|
|
1415
3902
|
return console.warn("Decompression failed, assuming data is not compressed:", e), new TextDecoder().decode(t);
|
|
1416
3903
|
}
|
|
1417
3904
|
}
|
|
1418
|
-
async function
|
|
1419
|
-
let t = await
|
|
3905
|
+
async function Xn(e) {
|
|
3906
|
+
let t = await Yn(e), n = new S.XMLParser({
|
|
1420
3907
|
attributeNamePrefix: "@_",
|
|
1421
3908
|
alwaysCreateTextNode: !0,
|
|
1422
3909
|
ignoreAttributes: !1
|
|
1423
3910
|
}).parse(t);
|
|
1424
3911
|
return i.parse(n);
|
|
1425
3912
|
}
|
|
1426
|
-
function
|
|
3913
|
+
function Zn(e) {
|
|
1427
3914
|
let t = e.certificates.map((e) => ({
|
|
1428
3915
|
"@_use": "signing",
|
|
1429
3916
|
KeyInfo: {
|
|
@@ -1497,8 +3984,8 @@ function j(e) {
|
|
|
1497
3984
|
attributeNamePrefix: "@_"
|
|
1498
3985
|
}).build(n);
|
|
1499
3986
|
}
|
|
1500
|
-
async function
|
|
1501
|
-
let n = e.notBefore || (/* @__PURE__ */ new Date()).toISOString(), r = e.notAfter || new Date(new Date(n).getTime() + 600 * 1e3).toISOString(), i = e.issueInstant || n, a = e.sessionNotOnOrAfter || r, o = e.responseId || `_${
|
|
3987
|
+
async function Qn(e, t) {
|
|
3988
|
+
let n = e.notBefore || (/* @__PURE__ */ new Date()).toISOString(), r = e.notAfter || new Date(new Date(n).getTime() + 600 * 1e3).toISOString(), i = e.issueInstant || n, a = e.sessionNotOnOrAfter || r, o = e.responseId || `_${qn()}`, s = e.assertionId || `_${qn()}`, c = [{
|
|
1502
3989
|
"samlp:Response": [
|
|
1503
3990
|
{ "saml:Issuer": [{ "#text": e.issuer }] },
|
|
1504
3991
|
{ "samlp:Status": [{
|
|
@@ -1679,7 +4166,7 @@ async function M(e, t) {
|
|
|
1679
4166
|
}
|
|
1680
4167
|
//#endregion
|
|
1681
4168
|
//#region src/signers/local.ts
|
|
1682
|
-
var
|
|
4169
|
+
var $n = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", er = "http://www.w3.org/2001/04/xmlenc#sha256", tr = "http://www.w3.org/2001/10/xml-exc-c14n#", nr = class {
|
|
1683
4170
|
async signSAML(e, t, n) {
|
|
1684
4171
|
try {
|
|
1685
4172
|
let r = await import("xml-crypto"), i = r.SignedXml || r.default?.SignedXml;
|
|
@@ -1688,11 +4175,11 @@ var N = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", P = "http://www.w3.
|
|
|
1688
4175
|
privateKey: t,
|
|
1689
4176
|
publicCert: n
|
|
1690
4177
|
});
|
|
1691
|
-
a.canonicalizationAlgorithm =
|
|
4178
|
+
a.canonicalizationAlgorithm = tr, a.addReference({
|
|
1692
4179
|
xpath: "(/*[local-name()='Response']/*[local-name()='Assertion'])[1]",
|
|
1693
|
-
digestAlgorithm:
|
|
1694
|
-
transforms: ["http://www.w3.org/2000/09/xmldsig#enveloped-signature",
|
|
1695
|
-
}), a.signatureAlgorithm =
|
|
4180
|
+
digestAlgorithm: er,
|
|
4181
|
+
transforms: ["http://www.w3.org/2000/09/xmldsig#enveloped-signature", tr]
|
|
4182
|
+
}), a.signatureAlgorithm = $n;
|
|
1696
4183
|
let o = n.replace(/-----BEGIN CERTIFICATE-----|-----END CERTIFICATE-----/g, "").replace(/\s/g, "");
|
|
1697
4184
|
return a.keyInfoProvider = { getKeyInfo: () => `<X509Data><X509Certificate>${o}</X509Certificate></X509Data>` }, a.computeSignature(e, { location: {
|
|
1698
4185
|
reference: "/*[local-name()='Response']/*[local-name()='Assertion']/*[local-name()='Issuer']",
|
|
@@ -1702,7 +4189,7 @@ var N = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", P = "http://www.w3.
|
|
|
1702
4189
|
throw Error(`Failed to sign SAML locally. Make sure xml-crypto is installed. Error: ${e}`);
|
|
1703
4190
|
}
|
|
1704
4191
|
}
|
|
1705
|
-
},
|
|
4192
|
+
}, rr = class {
|
|
1706
4193
|
signUrl;
|
|
1707
4194
|
constructor(e) {
|
|
1708
4195
|
this.signUrl = e;
|
|
@@ -1722,4 +4209,4 @@ var N = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", P = "http://www.w3.
|
|
|
1722
4209
|
}
|
|
1723
4210
|
};
|
|
1724
4211
|
//#endregion
|
|
1725
|
-
export {
|
|
4212
|
+
export { rr as HttpSamlSigner, nr as LocalSamlSigner, Zn as createSamlMetadata, Qn as createSamlResponse, c as dsSignatureSchema, Yn as inflateDecompress, Jn as inflateRaw, Xn as parseSamlRequestQuery, r as samlIssuerSchema, a as samlMetadataResponseSchema, i as samlRequestSchema, l as samlResponseJsonSchema };
|