@authhero/saml 0.6.4 → 0.6.6
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 +705 -669
- package/dist/saml.cjs +4 -4
- package/dist/saml.mjs +710 -674
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/saml.mjs
CHANGED
|
@@ -2688,7 +2688,7 @@ var N = class {
|
|
|
2688
2688
|
description: "style= attribute containing javascript: (e.g. background:url(javascript:...))",
|
|
2689
2689
|
pattern: /style\s*=[\s\S]{0,60}javascript\s*:/i
|
|
2690
2690
|
}
|
|
2691
|
-
],
|
|
2691
|
+
], xt = [
|
|
2692
2692
|
{
|
|
2693
2693
|
id: "sql-block-comment-open",
|
|
2694
2694
|
description: "SQL block comment open: /* ... */ — unusual in legitimate user text",
|
|
@@ -2764,7 +2764,7 @@ var N = class {
|
|
|
2764
2764
|
description: "INFORMATION_SCHEMA — reconnaissance query for table/column enumeration",
|
|
2765
2765
|
pattern: /\bINFORMATION_SCHEMA\b/i
|
|
2766
2766
|
}
|
|
2767
|
-
],
|
|
2767
|
+
], St = [
|
|
2768
2768
|
{
|
|
2769
2769
|
id: "shell-path-traversal-unix",
|
|
2770
2770
|
description: "Unix path traversal: ../ — climbing the directory tree",
|
|
@@ -2855,7 +2855,7 @@ var N = class {
|
|
|
2855
2855
|
description: "curl/wget with URL or flags — can exfiltrate data or download payloads",
|
|
2856
2856
|
pattern: /\b(?:curl|wget)\s+(?:https?:\/\/|ftp:\/\/|-)/i
|
|
2857
2857
|
}
|
|
2858
|
-
],
|
|
2858
|
+
], Ct = [
|
|
2859
2859
|
{
|
|
2860
2860
|
id: "redos-nested-quantifier-plus",
|
|
2861
2861
|
description: "Nested + quantifier inside a group with outer quantifier: (a+)+, (.+b)*, etc.",
|
|
@@ -2896,71 +2896,71 @@ var N = class {
|
|
|
2896
2896
|
description: "Long alternation with many similar branches — polynomial backtracking risk",
|
|
2897
2897
|
pattern: /\([^)]{0,200}(?:\|[^|)]{0,50}){9,}\)/
|
|
2898
2898
|
}
|
|
2899
|
-
],
|
|
2899
|
+
], L = "[\"'\\s]*:", wt = [
|
|
2900
2900
|
{
|
|
2901
2901
|
id: "nosql-where-operator",
|
|
2902
2902
|
description: "$where — executes arbitrary JavaScript server-side in MongoDB",
|
|
2903
|
-
pattern: RegExp(`\\$where${
|
|
2903
|
+
pattern: RegExp(`\\$where${L}`, "i")
|
|
2904
2904
|
},
|
|
2905
2905
|
{
|
|
2906
2906
|
id: "nosql-ne-operator",
|
|
2907
2907
|
description: "$ne — \"not equal\" operator used to bypass equality checks",
|
|
2908
|
-
pattern: RegExp(`\\$ne${
|
|
2908
|
+
pattern: RegExp(`\\$ne${L}`, "i")
|
|
2909
2909
|
},
|
|
2910
2910
|
{
|
|
2911
2911
|
id: "nosql-gt-operator",
|
|
2912
2912
|
description: "$gt — \"greater than\" used to bypass password/value checks",
|
|
2913
|
-
pattern: RegExp(`\\$gte?${
|
|
2913
|
+
pattern: RegExp(`\\$gte?${L}`, "i")
|
|
2914
2914
|
},
|
|
2915
2915
|
{
|
|
2916
2916
|
id: "nosql-lt-operator",
|
|
2917
2917
|
description: "$lt / $lte — \"less than\" bypass variants",
|
|
2918
|
-
pattern: RegExp(`\\$lte?${
|
|
2918
|
+
pattern: RegExp(`\\$lte?${L}`, "i")
|
|
2919
2919
|
},
|
|
2920
2920
|
{
|
|
2921
2921
|
id: "nosql-regex-operator",
|
|
2922
2922
|
description: "$regex — can be used to extract data character by character (blind injection)",
|
|
2923
|
-
pattern: RegExp(`\\$regex${
|
|
2923
|
+
pattern: RegExp(`\\$regex${L}`, "i")
|
|
2924
2924
|
},
|
|
2925
2925
|
{
|
|
2926
2926
|
id: "nosql-or-operator",
|
|
2927
2927
|
description: "$or — logical OR; used to create always-true conditions",
|
|
2928
|
-
pattern: RegExp(`\\$or${
|
|
2928
|
+
pattern: RegExp(`\\$or${L}\\s*\\[`, "i")
|
|
2929
2929
|
},
|
|
2930
2930
|
{
|
|
2931
2931
|
id: "nosql-and-operator",
|
|
2932
2932
|
description: "$and — logical AND operator injection",
|
|
2933
|
-
pattern: RegExp(`\\$and${
|
|
2933
|
+
pattern: RegExp(`\\$and${L}\\s*\\[`, "i")
|
|
2934
2934
|
},
|
|
2935
2935
|
{
|
|
2936
2936
|
id: "nosql-nor-operator",
|
|
2937
2937
|
description: "$nor — logical NOR operator injection",
|
|
2938
|
-
pattern: RegExp(`\\$nor${
|
|
2938
|
+
pattern: RegExp(`\\$nor${L}\\s*\\[`, "i")
|
|
2939
2939
|
},
|
|
2940
2940
|
{
|
|
2941
2941
|
id: "nosql-exists-operator",
|
|
2942
2942
|
description: "$exists — can enumerate fields to determine schema",
|
|
2943
|
-
pattern: RegExp(`\\$exists${
|
|
2943
|
+
pattern: RegExp(`\\$exists${L}`, "i")
|
|
2944
2944
|
},
|
|
2945
2945
|
{
|
|
2946
2946
|
id: "nosql-in-operator",
|
|
2947
2947
|
description: "$in — matches any value in a list; can enumerate values",
|
|
2948
|
-
pattern: RegExp(`\\$in${
|
|
2948
|
+
pattern: RegExp(`\\$in${L}\\s*\\[`, "i")
|
|
2949
2949
|
},
|
|
2950
2950
|
{
|
|
2951
2951
|
id: "nosql-expr-operator",
|
|
2952
2952
|
description: "$expr — allows aggregation expressions in queries (MongoDB 3.6+)",
|
|
2953
|
-
pattern: RegExp(`\\$expr${
|
|
2953
|
+
pattern: RegExp(`\\$expr${L}`, "i")
|
|
2954
2954
|
},
|
|
2955
2955
|
{
|
|
2956
2956
|
id: "nosql-function-operator",
|
|
2957
2957
|
description: "$function — executes arbitrary JavaScript in MongoDB 4.4+",
|
|
2958
|
-
pattern: RegExp(`\\$function${
|
|
2958
|
+
pattern: RegExp(`\\$function${L}`, "i")
|
|
2959
2959
|
},
|
|
2960
2960
|
{
|
|
2961
2961
|
id: "nosql-accumulator-operator",
|
|
2962
2962
|
description: "$accumulator — custom aggregation with arbitrary JS execution",
|
|
2963
|
-
pattern: RegExp(`\\$accumulator${
|
|
2963
|
+
pattern: RegExp(`\\$accumulator${L}`, "i")
|
|
2964
2964
|
},
|
|
2965
2965
|
{
|
|
2966
2966
|
id: "nosql-proto-pollution",
|
|
@@ -2977,7 +2977,7 @@ var N = class {
|
|
|
2977
2977
|
description: "[\"__proto__\"] — bracket-notation prototype pollution",
|
|
2978
2978
|
pattern: /\[["']__proto__["']\]/
|
|
2979
2979
|
}
|
|
2980
|
-
],
|
|
2980
|
+
], Tt = [
|
|
2981
2981
|
{
|
|
2982
2982
|
id: "log-crlf-injection",
|
|
2983
2983
|
description: "CRLF injection: literal \\r or \\n embeds fake log lines",
|
|
@@ -3038,7 +3038,7 @@ var N = class {
|
|
|
3038
3038
|
description: "ANSI escape sequence: ESC[ — can manipulate terminal output when logs are tailed",
|
|
3039
3039
|
pattern: /\x1b\[/
|
|
3040
3040
|
}
|
|
3041
|
-
],
|
|
3041
|
+
], Et = [
|
|
3042
3042
|
{
|
|
3043
3043
|
id: "sql-line-comment",
|
|
3044
3044
|
description: "SQL line comment: -- followed by whitespace or end of string",
|
|
@@ -3054,22 +3054,22 @@ var N = class {
|
|
|
3054
3054
|
description: "Hex-encoded string injection: 0x41414141 style (MySQL)",
|
|
3055
3055
|
pattern: /\b0x[0-9a-f]{4,}/i
|
|
3056
3056
|
}
|
|
3057
|
-
],
|
|
3058
|
-
F.label = "HTML", I.label = "XML", bt.label = "SVG",
|
|
3057
|
+
], Dt = [...xt, ...Et];
|
|
3058
|
+
F.label = "HTML", I.label = "XML", bt.label = "SVG", xt.label = "SQL", Dt.label = "SQL-STRICT", St.label = "SHELL", Ct.label = "REDOS", wt.label = "NOSQL", Tt.label = "LOG", Object.freeze({
|
|
3059
3059
|
HTML: F,
|
|
3060
3060
|
XML: I,
|
|
3061
3061
|
SVG: bt,
|
|
3062
|
-
SQL:
|
|
3063
|
-
"SQL-STRICT":
|
|
3064
|
-
SHELL:
|
|
3065
|
-
REDOS:
|
|
3066
|
-
NOSQL:
|
|
3067
|
-
LOG:
|
|
3062
|
+
SQL: xt,
|
|
3063
|
+
"SQL-STRICT": Dt,
|
|
3064
|
+
SHELL: St,
|
|
3065
|
+
REDOS: Ct,
|
|
3066
|
+
NOSQL: wt,
|
|
3067
|
+
LOG: Tt
|
|
3068
3068
|
});
|
|
3069
|
-
function
|
|
3069
|
+
function Ot(e) {
|
|
3070
3070
|
if (typeof e != "string") throw TypeError(`is-unsafe: first argument must be a string, got ${typeof e}`);
|
|
3071
3071
|
}
|
|
3072
|
-
function
|
|
3072
|
+
function kt(e) {
|
|
3073
3073
|
if (!(e instanceof RegExp)) {
|
|
3074
3074
|
if (Array.isArray(e)) {
|
|
3075
3075
|
if (e.length === 0) throw TypeError("is-unsafe: context must not be an empty array");
|
|
@@ -3081,7 +3081,7 @@ function Ot(e) {
|
|
|
3081
3081
|
throw TypeError(`is-unsafe: second argument must be a PatternList (e.g. HTML), an array of PatternLists (e.g. [HTML, XML]), or a RegExp. Got: ${typeof e}`);
|
|
3082
3082
|
}
|
|
3083
3083
|
}
|
|
3084
|
-
function
|
|
3084
|
+
function At(e) {
|
|
3085
3085
|
return e instanceof RegExp ? {
|
|
3086
3086
|
lists: null,
|
|
3087
3087
|
regex: e
|
|
@@ -3093,7 +3093,7 @@ function kt(e) {
|
|
|
3093
3093
|
regex: null
|
|
3094
3094
|
};
|
|
3095
3095
|
}
|
|
3096
|
-
function
|
|
3096
|
+
function jt(e, t) {
|
|
3097
3097
|
let n = t.label ?? "CUSTOM";
|
|
3098
3098
|
for (let r of t) if (r.pattern.test(e)) return {
|
|
3099
3099
|
context: n,
|
|
@@ -3103,16 +3103,16 @@ function At(e, t) {
|
|
|
3103
3103
|
};
|
|
3104
3104
|
return null;
|
|
3105
3105
|
}
|
|
3106
|
-
function
|
|
3107
|
-
|
|
3108
|
-
let { lists: n, regex: r } =
|
|
3106
|
+
function Mt(e, t) {
|
|
3107
|
+
Ot(e), kt(t);
|
|
3108
|
+
let { lists: n, regex: r } = At(t);
|
|
3109
3109
|
if (r) return r.test(e);
|
|
3110
|
-
for (let t of n) if (
|
|
3110
|
+
for (let t of n) if (jt(e, t) !== null) return !0;
|
|
3111
3111
|
return !1;
|
|
3112
3112
|
}
|
|
3113
3113
|
//#endregion
|
|
3114
3114
|
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
|
|
3115
|
-
function
|
|
3115
|
+
function Nt(e, t) {
|
|
3116
3116
|
if (!e) return {};
|
|
3117
3117
|
let n = t.attributesGroupName ? e[t.attributesGroupName] : e;
|
|
3118
3118
|
if (!n) return {};
|
|
@@ -3123,7 +3123,7 @@ function Mt(e, t) {
|
|
|
3123
3123
|
} else r[e] = n[e];
|
|
3124
3124
|
return r;
|
|
3125
3125
|
}
|
|
3126
|
-
function
|
|
3126
|
+
function Pt(e) {
|
|
3127
3127
|
if (!e || typeof e != "string") return;
|
|
3128
3128
|
let t = e.indexOf(":");
|
|
3129
3129
|
if (t !== -1 && t > 0) {
|
|
@@ -3131,9 +3131,9 @@ function Nt(e) {
|
|
|
3131
3131
|
if (n !== "xmlns") return n;
|
|
3132
3132
|
}
|
|
3133
3133
|
}
|
|
3134
|
-
var
|
|
3134
|
+
var Ft = class {
|
|
3135
3135
|
constructor(e, t) {
|
|
3136
|
-
this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.parseXml =
|
|
3136
|
+
this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.parseXml = Bt, this.parseTextData = It, this.resolveNameSpace = Lt, this.buildAttributesMap = zt, this.isItStopNode = Wt, this.replaceEntitiesValue = Ht, this.readStopNodeData = Jt, this.saveTextToParentTag = Ut, this.addChild = Vt, this.ignoreAttributesFn = _t(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
|
|
3137
3137
|
let n = { ...Te };
|
|
3138
3138
|
this.options.entityDecoder ? this.entityDecoder = this.options.entityDecoder : (typeof this.options.htmlEntities == "object" ? n = this.options.htmlEntities : this.options.htmlEntities === !0 && (n = {
|
|
3139
3139
|
...Ee,
|
|
@@ -3149,7 +3149,7 @@ var Pt = class {
|
|
|
3149
3149
|
maxExpandedLength: this.options.processEntities.maxExpandedLength,
|
|
3150
3150
|
applyLimitsTo: this.options.processEntities.appliesTo
|
|
3151
3151
|
},
|
|
3152
|
-
onInputEntity: (e, t) =>
|
|
3152
|
+
onInputEntity: (e, t) => Mt(t, [F, I]) ? x.BLOCK : x.ALLOW
|
|
3153
3153
|
})), this.matcher = new P(), this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = !1, this.stopNodeExpressionsSet = new vt();
|
|
3154
3154
|
let r = this.options.stopNodes;
|
|
3155
3155
|
if (r && r.length > 0) {
|
|
@@ -3161,15 +3161,15 @@ var Pt = class {
|
|
|
3161
3161
|
}
|
|
3162
3162
|
}
|
|
3163
3163
|
};
|
|
3164
|
-
function
|
|
3164
|
+
function It(e, t, n, r, i, a, o) {
|
|
3165
3165
|
let s = this.options;
|
|
3166
3166
|
if (e !== void 0 && (s.trimValues && !r && (e = e.trim()), e.length > 0)) {
|
|
3167
3167
|
o || (e = this.replaceEntitiesValue(e, t, n));
|
|
3168
3168
|
let r = s.jPath ? n.toString() : n, c = s.tagValueProcessor(t, e, r, i, a);
|
|
3169
|
-
return c == null ? e : typeof c != typeof e || c !== e ? c : s.trimValues || e.trim() === e ?
|
|
3169
|
+
return c == null ? e : typeof c != typeof e || c !== e ? c : s.trimValues || e.trim() === e ? Yt(e, s.parseTagValue, s.numberParseOptions) : e;
|
|
3170
3170
|
}
|
|
3171
3171
|
}
|
|
3172
|
-
function
|
|
3172
|
+
function Lt(e) {
|
|
3173
3173
|
if (this.options.removeNSPrefix) {
|
|
3174
3174
|
let t = e.split(":"), n = e.charAt(0) === "/" ? "/" : "";
|
|
3175
3175
|
if (t[0] === "xmlns") return "";
|
|
@@ -3177,11 +3177,11 @@ function It(e) {
|
|
|
3177
3177
|
}
|
|
3178
3178
|
return e;
|
|
3179
3179
|
}
|
|
3180
|
-
var
|
|
3181
|
-
function
|
|
3180
|
+
var Rt = /* @__PURE__ */ RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
|
|
3181
|
+
function zt(e, t, n, r = !1) {
|
|
3182
3182
|
let i = this.options;
|
|
3183
3183
|
if (r === !0 || i.ignoreAttributes !== !0 && typeof e == "string") {
|
|
3184
|
-
let r = d(e,
|
|
3184
|
+
let r = d(e, Rt), a = r.length, o = {}, s = Array(a), c = !1, l = {};
|
|
3185
3185
|
for (let e = 0; e < a; e++) {
|
|
3186
3186
|
let t = this.resolveNameSpace(r[e][1]), a = r[e][4];
|
|
3187
3187
|
if (t.length && a !== void 0) {
|
|
@@ -3195,9 +3195,9 @@ function Rt(e, t, n, r = !1) {
|
|
|
3195
3195
|
let t = this.resolveNameSpace(r[e][1]);
|
|
3196
3196
|
if (this.ignoreAttributesFn(t, u)) continue;
|
|
3197
3197
|
let n = i.attributeNamePrefix + t;
|
|
3198
|
-
if (t.length) if (i.transformAttributeName && (n = i.transformAttributeName(n)), n =
|
|
3198
|
+
if (t.length) if (i.transformAttributeName && (n = i.transformAttributeName(n)), n = Zt(n, i), r[e][4] !== void 0) {
|
|
3199
3199
|
let r = s[e], a = i.attributeValueProcessor(t, r, u);
|
|
3200
|
-
a == null ? o[n] = r : typeof a != typeof r || a !== r ? o[n] = a : o[n] =
|
|
3200
|
+
a == null ? o[n] = r : typeof a != typeof r || a !== r ? o[n] = a : o[n] = Yt(r, i.parseAttributeValue, i.numberParseOptions), f = !0;
|
|
3201
3201
|
} else i.allowBooleanAttributes && (o[n] = !0, f = !0);
|
|
3202
3202
|
}
|
|
3203
3203
|
if (!f) return;
|
|
@@ -3208,7 +3208,7 @@ function Rt(e, t, n, r = !1) {
|
|
|
3208
3208
|
return o;
|
|
3209
3209
|
}
|
|
3210
3210
|
}
|
|
3211
|
-
var
|
|
3211
|
+
var Bt = function(e) {
|
|
3212
3212
|
e = e.replace(/\r\n?/g, "\n");
|
|
3213
3213
|
let t = new D("!xml"), n = t, r = "";
|
|
3214
3214
|
this.matcher.reset(), this.entityDecoder.reset(), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
|
|
@@ -3216,17 +3216,17 @@ var zt = function(e) {
|
|
|
3216
3216
|
for (let s = 0; s < o; s++) if (e[s] === "<") {
|
|
3217
3217
|
let c = e.charCodeAt(s + 1);
|
|
3218
3218
|
if (c === 47) {
|
|
3219
|
-
let t =
|
|
3219
|
+
let t = R(e, ">", s, "Closing Tag is not closed."), a = e.substring(s + 2, t).trim();
|
|
3220
3220
|
if (i.removeNSPrefix) {
|
|
3221
3221
|
let e = a.indexOf(":");
|
|
3222
3222
|
e !== -1 && (a = a.substr(e + 1));
|
|
3223
3223
|
}
|
|
3224
|
-
a =
|
|
3224
|
+
a = Xt(i.transformTagName, a, "", i).tagName, n && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher));
|
|
3225
3225
|
let o = this.matcher.getCurrentTag();
|
|
3226
3226
|
if (a && i.unpairedTagsSet.has(a)) throw Error(`Unpaired tag can not be used as closing tag: </${a}>`);
|
|
3227
3227
|
o && i.unpairedTagsSet.has(o) && (this.matcher.pop(), this.tagsNodeStack.pop()), this.matcher.pop(), this.isCurrentNodeStopNode = !1, n = this.tagsNodeStack.pop(), r = "", s = t;
|
|
3228
3228
|
} else if (c === 63) {
|
|
3229
|
-
let t =
|
|
3229
|
+
let t = qt(e, s, !1, "?>");
|
|
3230
3230
|
if (!t) throw Error("Pi Tag is not closed.");
|
|
3231
3231
|
r = this.saveTextToParentTag(r, n, this.readonlyMatcher);
|
|
3232
3232
|
let o = this.buildAttributesMap(t.tagExp, this.matcher, t.tagName, !0);
|
|
@@ -3240,7 +3240,7 @@ var zt = function(e) {
|
|
|
3240
3240
|
}
|
|
3241
3241
|
s = t.closeIndex + 1;
|
|
3242
3242
|
} else if (c === 33 && e.charCodeAt(s + 2) === 45 && e.charCodeAt(s + 3) === 45) {
|
|
3243
|
-
let t =
|
|
3243
|
+
let t = R(e, "-->", s + 4, "Comment is not closed.");
|
|
3244
3244
|
if (i.commentPropName) {
|
|
3245
3245
|
let a = e.substring(s + 4, t - 2);
|
|
3246
3246
|
r = this.saveTextToParentTag(r, n, this.readonlyMatcher), n.add(i.commentPropName, [{ [i.textNodeName]: a }]);
|
|
@@ -3250,25 +3250,25 @@ var zt = function(e) {
|
|
|
3250
3250
|
let t = a.readDocType(e, s);
|
|
3251
3251
|
this.entityDecoder.addInputEntities(t.entities), s = t.i;
|
|
3252
3252
|
} else if (c === 33 && e.charCodeAt(s + 2) === 91) {
|
|
3253
|
-
let t =
|
|
3253
|
+
let t = R(e, "]]>", s, "CDATA is not closed.") - 2, a = e.substring(s + 9, t);
|
|
3254
3254
|
r = this.saveTextToParentTag(r, n, this.readonlyMatcher);
|
|
3255
3255
|
let o = this.parseTextData(a, n.tagname, this.readonlyMatcher, !0, !1, !0, !0);
|
|
3256
3256
|
o ??= "", i.cdataPropName ? n.add(i.cdataPropName, [{ [i.textNodeName]: a }]) : n.add(i.textNodeName, o), s = t + 2;
|
|
3257
3257
|
} else {
|
|
3258
|
-
let a =
|
|
3258
|
+
let a = qt(e, s, i.removeNSPrefix);
|
|
3259
3259
|
if (!a) {
|
|
3260
3260
|
let t = e.substring(Math.max(0, s - 50), Math.min(o, s + 50));
|
|
3261
3261
|
throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`);
|
|
3262
3262
|
}
|
|
3263
3263
|
let c = a.tagName, l = a.rawTagName, u = a.tagExp, d = a.attrExpPresent, f = a.closeIndex;
|
|
3264
|
-
if ({tagName: c, tagExp: u} =
|
|
3264
|
+
if ({tagName: c, tagExp: u} = Xt(i.transformTagName, c, u, i), i.strictReservedNames && (c === i.commentPropName || c === i.cdataPropName || c === i.textNodeName || c === i.attributesGroupName)) throw Error(`Invalid tag name: ${c}`);
|
|
3265
3265
|
n && r && n.tagname !== "!xml" && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher, !1));
|
|
3266
3266
|
let p = n;
|
|
3267
3267
|
p && i.unpairedTagsSet.has(p.tagname) && (n = this.tagsNodeStack.pop(), this.matcher.pop());
|
|
3268
3268
|
let m = !1;
|
|
3269
3269
|
u.length > 0 && u.lastIndexOf("/") === u.length - 1 && (m = !0, c[c.length - 1] === "/" ? (c = c.substr(0, c.length - 1), u = c) : u = u.substr(0, u.length - 1), d = c !== u);
|
|
3270
3270
|
let h = null, g;
|
|
3271
|
-
g =
|
|
3271
|
+
g = Pt(l), c !== t.tagname && this.matcher.push(c, {}, g), c !== u && d && (h = this.buildAttributesMap(u, this.matcher, c), h && Nt(h, i)), c !== t.tagname && (this.isCurrentNodeStopNode = this.isItStopNode());
|
|
3272
3272
|
let _ = s;
|
|
3273
3273
|
if (this.isCurrentNodeStopNode) {
|
|
3274
3274
|
let t = "";
|
|
@@ -3283,7 +3283,7 @@ var zt = function(e) {
|
|
|
3283
3283
|
h && (r[":@"] = h), r.add(i.textNodeName, t), this.matcher.pop(), this.isCurrentNodeStopNode = !1, this.addChild(n, r, this.readonlyMatcher, _);
|
|
3284
3284
|
} else {
|
|
3285
3285
|
if (m) {
|
|
3286
|
-
({tagName: c, tagExp: u} =
|
|
3286
|
+
({tagName: c, tagExp: u} = Xt(i.transformTagName, c, u, i));
|
|
3287
3287
|
let e = new D(c);
|
|
3288
3288
|
h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), this.matcher.pop(), this.isCurrentNodeStopNode = !1;
|
|
3289
3289
|
} else if (i.unpairedTagsSet.has(c)) {
|
|
@@ -3301,12 +3301,12 @@ var zt = function(e) {
|
|
|
3301
3301
|
} else r += e[s];
|
|
3302
3302
|
return t.child;
|
|
3303
3303
|
};
|
|
3304
|
-
function
|
|
3304
|
+
function Vt(e, t, n, r) {
|
|
3305
3305
|
this.options.captureMetaData || (r = void 0);
|
|
3306
3306
|
let i = this.options.jPath ? n.toString() : n, a = this.options.updateTag(t.tagname, i, t[":@"]);
|
|
3307
3307
|
a === !1 || (typeof a == "string" && (t.tagname = a), e.addChild(t, r));
|
|
3308
3308
|
}
|
|
3309
|
-
function
|
|
3309
|
+
function Ht(e, t, n) {
|
|
3310
3310
|
let r = this.options.processEntities;
|
|
3311
3311
|
if (!r || !r.enabled) return e;
|
|
3312
3312
|
if (r.allowedTags) {
|
|
@@ -3319,13 +3319,13 @@ function Vt(e, t, n) {
|
|
|
3319
3319
|
}
|
|
3320
3320
|
return this.entityDecoder.decode(e);
|
|
3321
3321
|
}
|
|
3322
|
-
function
|
|
3322
|
+
function Ut(e, t, n, r) {
|
|
3323
3323
|
return e &&= (r === void 0 && (r = t.child.length === 0), e = this.parseTextData(e, t.tagname, n, !1, t[":@"] ? Object.keys(t[":@"]).length !== 0 : !1, r), e !== void 0 && e !== "" && t.add(this.options.textNodeName, e), ""), e;
|
|
3324
3324
|
}
|
|
3325
|
-
function
|
|
3325
|
+
function Wt() {
|
|
3326
3326
|
return this.stopNodeExpressionsSet.size === 0 ? !1 : this.matcher.matchesAny(this.stopNodeExpressionsSet);
|
|
3327
3327
|
}
|
|
3328
|
-
function
|
|
3328
|
+
function Gt(e, t, n = ">") {
|
|
3329
3329
|
let r = 0, i = e.length, a = n.charCodeAt(0), o = n.length > 1 ? n.charCodeAt(1) : -1, s = "", c = t;
|
|
3330
3330
|
for (let n = t; n < i; n++) {
|
|
3331
3331
|
let t = e.charCodeAt(n);
|
|
@@ -3343,18 +3343,18 @@ function Wt(e, t, n = ">") {
|
|
|
3343
3343
|
else t === 9 && !r && (s += e.substring(c, n) + " ", c = n + 1);
|
|
3344
3344
|
}
|
|
3345
3345
|
}
|
|
3346
|
-
function
|
|
3346
|
+
function R(e, t, n, r) {
|
|
3347
3347
|
let i = e.indexOf(t, n);
|
|
3348
3348
|
if (i === -1) throw Error(r);
|
|
3349
3349
|
return i + t.length - 1;
|
|
3350
3350
|
}
|
|
3351
|
-
function
|
|
3351
|
+
function Kt(e, t, n, r) {
|
|
3352
3352
|
let i = e.indexOf(t, n);
|
|
3353
3353
|
if (i === -1) throw Error(r);
|
|
3354
3354
|
return i;
|
|
3355
3355
|
}
|
|
3356
|
-
function
|
|
3357
|
-
let i =
|
|
3356
|
+
function qt(e, t, n, r = ">") {
|
|
3357
|
+
let i = Gt(e, t + 1, r);
|
|
3358
3358
|
if (!i) return;
|
|
3359
3359
|
let a = i.data, o = i.index, s = a.search(/\s/), c = a, l = !0;
|
|
3360
3360
|
s !== -1 && (c = a.substring(0, s), a = a.substring(s + 1).trimStart());
|
|
@@ -3371,51 +3371,51 @@ function Kt(e, t, n, r = ">") {
|
|
|
3371
3371
|
rawTagName: u
|
|
3372
3372
|
};
|
|
3373
3373
|
}
|
|
3374
|
-
function
|
|
3374
|
+
function Jt(e, t, n) {
|
|
3375
3375
|
let r = n, i = 1, a = e.length;
|
|
3376
3376
|
for (; n < a; n++) if (e[n] === "<") {
|
|
3377
3377
|
let a = e.charCodeAt(n + 1);
|
|
3378
3378
|
if (a === 47) {
|
|
3379
|
-
let a =
|
|
3379
|
+
let a = Kt(e, ">", n, `${t} is not closed`);
|
|
3380
3380
|
if (e.substring(n + 2, a).trim() === t && (i--, i === 0)) return {
|
|
3381
3381
|
tagContent: e.substring(r, n),
|
|
3382
3382
|
i: a
|
|
3383
3383
|
};
|
|
3384
3384
|
n = a;
|
|
3385
|
-
} else if (a === 63) n =
|
|
3386
|
-
else if (a === 33 && e.charCodeAt(n + 2) === 45 && e.charCodeAt(n + 3) === 45) n =
|
|
3387
|
-
else if (a === 33 && e.charCodeAt(n + 2) === 91) n =
|
|
3385
|
+
} else if (a === 63) n = R(e, "?>", n + 1, "StopNode is not closed.");
|
|
3386
|
+
else if (a === 33 && e.charCodeAt(n + 2) === 45 && e.charCodeAt(n + 3) === 45) n = R(e, "-->", n + 3, "StopNode is not closed.");
|
|
3387
|
+
else if (a === 33 && e.charCodeAt(n + 2) === 91) n = R(e, "]]>", n, "StopNode is not closed.") - 2;
|
|
3388
3388
|
else {
|
|
3389
|
-
let r =
|
|
3389
|
+
let r = qt(e, n, !1);
|
|
3390
3390
|
r && ((r && r.tagName) === t && r.tagExp[r.tagExp.length - 1] !== "/" && i++, n = r.closeIndex);
|
|
3391
3391
|
}
|
|
3392
3392
|
}
|
|
3393
3393
|
}
|
|
3394
|
-
function
|
|
3394
|
+
function Yt(e, t, n) {
|
|
3395
3395
|
if (t && typeof e == "string") {
|
|
3396
3396
|
let t = e.trim();
|
|
3397
3397
|
return t === "true" ? !0 : t === "false" ? !1 : ft(e, n);
|
|
3398
3398
|
} else if (p(e)) return e;
|
|
3399
3399
|
else return "";
|
|
3400
3400
|
}
|
|
3401
|
-
function
|
|
3401
|
+
function Xt(e, t, n, r) {
|
|
3402
3402
|
if (e) {
|
|
3403
3403
|
let r = e(t);
|
|
3404
3404
|
n === t && (n = r), t = r;
|
|
3405
3405
|
}
|
|
3406
|
-
return t =
|
|
3406
|
+
return t = Zt(t, r), {
|
|
3407
3407
|
tagName: t,
|
|
3408
3408
|
tagExp: n
|
|
3409
3409
|
};
|
|
3410
3410
|
}
|
|
3411
|
-
function
|
|
3411
|
+
function Zt(e, t) {
|
|
3412
3412
|
if (h.includes(e)) throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
|
|
3413
3413
|
return m.includes(e) ? t.onDangerousProperty(e) : e;
|
|
3414
3414
|
}
|
|
3415
3415
|
//#endregion
|
|
3416
3416
|
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlparser/node2json.js
|
|
3417
|
-
var
|
|
3418
|
-
function
|
|
3417
|
+
var Qt = D.getMetaDataSymbol();
|
|
3418
|
+
function $t(e, t) {
|
|
3419
3419
|
if (!e || typeof e != "object") return {};
|
|
3420
3420
|
if (!t) return e;
|
|
3421
3421
|
let n = {};
|
|
@@ -3425,22 +3425,22 @@ function Qt(e, t) {
|
|
|
3425
3425
|
} else n[r] = e[r];
|
|
3426
3426
|
return n;
|
|
3427
3427
|
}
|
|
3428
|
-
function $t(e, t, n, r) {
|
|
3429
|
-
return en(e, t, n, r);
|
|
3430
|
-
}
|
|
3431
3428
|
function en(e, t, n, r) {
|
|
3429
|
+
return tn(e, t, n, r);
|
|
3430
|
+
}
|
|
3431
|
+
function tn(e, t, n, r) {
|
|
3432
3432
|
let i, a = {};
|
|
3433
3433
|
for (let o = 0; o < e.length; o++) {
|
|
3434
|
-
let s = e[o], c =
|
|
3434
|
+
let s = e[o], c = nn(s);
|
|
3435
3435
|
if (c !== void 0 && c !== t.textNodeName) {
|
|
3436
|
-
let e =
|
|
3436
|
+
let e = $t(s[":@"] || {}, t.attributeNamePrefix);
|
|
3437
3437
|
n.push(c, e);
|
|
3438
3438
|
}
|
|
3439
3439
|
if (c === t.textNodeName) i === void 0 ? i = s[c] : i += "" + s[c];
|
|
3440
3440
|
else if (c === void 0) continue;
|
|
3441
3441
|
else if (s[c]) {
|
|
3442
|
-
let e =
|
|
3443
|
-
if (Object.keys(e).length === 0 && t.alwaysCreateTextNode && (e[t.textNodeName] = ""), s[":@"] ?
|
|
3442
|
+
let e = tn(s[c], t, n, r), i = an(e, t);
|
|
3443
|
+
if (Object.keys(e).length === 0 && t.alwaysCreateTextNode && (e[t.textNodeName] = ""), s[":@"] ? rn(e, s[":@"], r, t) : Object.keys(e).length === 1 && e[t.textNodeName] !== void 0 && !t.alwaysCreateTextNode ? e = e[t.textNodeName] : Object.keys(e).length === 0 && (t.alwaysCreateTextNode ? e[t.textNodeName] = "" : e = ""), s[Qt] !== void 0 && typeof e == "object" && e && (e[Qt] = s[Qt]), a[c] !== void 0 && Object.prototype.hasOwnProperty.call(a, c)) Array.isArray(a[c]) || (a[c] = [a[c]]), a[c].push(e);
|
|
3444
3444
|
else {
|
|
3445
3445
|
let n = t.jPath ? r.toString() : r;
|
|
3446
3446
|
t.isArray(c, n, i) ? a[c] = [e] : a[c] = e;
|
|
@@ -3450,14 +3450,14 @@ function en(e, t, n, r) {
|
|
|
3450
3450
|
}
|
|
3451
3451
|
return typeof i == "string" ? i.length > 0 && (a[t.textNodeName] = i) : i !== void 0 && (a[t.textNodeName] = i), a;
|
|
3452
3452
|
}
|
|
3453
|
-
function
|
|
3453
|
+
function nn(e) {
|
|
3454
3454
|
let t = Object.keys(e);
|
|
3455
3455
|
for (let e = 0; e < t.length; e++) {
|
|
3456
3456
|
let n = t[e];
|
|
3457
3457
|
if (n !== ":@") return n;
|
|
3458
3458
|
}
|
|
3459
3459
|
}
|
|
3460
|
-
function
|
|
3460
|
+
function rn(e, t, n, r) {
|
|
3461
3461
|
if (t) {
|
|
3462
3462
|
let i = Object.keys(t), a = i.length;
|
|
3463
3463
|
for (let o = 0; o < a; o++) {
|
|
@@ -3466,13 +3466,13 @@ function nn(e, t, n, r) {
|
|
|
3466
3466
|
}
|
|
3467
3467
|
}
|
|
3468
3468
|
}
|
|
3469
|
-
function
|
|
3469
|
+
function an(e, t) {
|
|
3470
3470
|
let { textNodeName: n } = t, r = Object.keys(e).length;
|
|
3471
3471
|
return !!(r === 0 || r === 1 && (e[n] || typeof e[n] == "boolean" || e[n] === 0));
|
|
3472
3472
|
}
|
|
3473
3473
|
//#endregion
|
|
3474
3474
|
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
|
|
3475
|
-
var
|
|
3475
|
+
var on = class {
|
|
3476
3476
|
constructor(e) {
|
|
3477
3477
|
this.externalEntities = {}, this.options = Le(e);
|
|
3478
3478
|
}
|
|
@@ -3484,8 +3484,8 @@ var an = class {
|
|
|
3484
3484
|
let n = _(e, t);
|
|
3485
3485
|
if (n !== !0) throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`);
|
|
3486
3486
|
}
|
|
3487
|
-
let n = new
|
|
3488
|
-
return this.options.preserveOrder || r === void 0 ? r :
|
|
3487
|
+
let n = new Ft(this.options, this.externalEntities), r = n.parseXml(e);
|
|
3488
|
+
return this.options.preserveOrder || r === void 0 ? r : en(r, this.options, n.matcher, n.readonlyMatcher);
|
|
3489
3489
|
}
|
|
3490
3490
|
addEntity(e, t) {
|
|
3491
3491
|
if (t.indexOf("&") !== -1) throw Error("Entity value can't have '&'");
|
|
@@ -3499,22 +3499,22 @@ var an = class {
|
|
|
3499
3499
|
};
|
|
3500
3500
|
//#endregion
|
|
3501
3501
|
//#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/util.js
|
|
3502
|
-
function
|
|
3502
|
+
function sn(e) {
|
|
3503
3503
|
return String(e).replace(/--/g, "- -").replace(/--/g, "- -").replace(/-$/, "- ");
|
|
3504
3504
|
}
|
|
3505
|
-
function
|
|
3505
|
+
function cn(e) {
|
|
3506
3506
|
return String(e).replace(/\]\]>/g, "]]]]><![CDATA[>");
|
|
3507
3507
|
}
|
|
3508
|
-
function
|
|
3508
|
+
function z(e) {
|
|
3509
3509
|
return String(e).replace(/"/g, """).replace(/'/g, "'");
|
|
3510
3510
|
}
|
|
3511
3511
|
//#endregion
|
|
3512
3512
|
//#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/orderedJs2Xml.js
|
|
3513
|
-
var
|
|
3514
|
-
function
|
|
3513
|
+
var ln = "\n";
|
|
3514
|
+
function un(e, t) {
|
|
3515
3515
|
if (!Array.isArray(e) || e.length === 0) return "1.0";
|
|
3516
3516
|
let n = e[0];
|
|
3517
|
-
if (
|
|
3517
|
+
if (_n(n) === "?xml") {
|
|
3518
3518
|
let e = n[":@"];
|
|
3519
3519
|
if (e) {
|
|
3520
3520
|
let n = t.attributeNamePrefix + "version";
|
|
@@ -3523,121 +3523,121 @@ function ln(e, t) {
|
|
|
3523
3523
|
}
|
|
3524
3524
|
return "1.0";
|
|
3525
3525
|
}
|
|
3526
|
-
function
|
|
3526
|
+
function dn(e, t, n, r, i) {
|
|
3527
3527
|
return !n.sanitizeName || i(e) ? e : n.sanitizeName(e, {
|
|
3528
3528
|
isAttribute: t,
|
|
3529
3529
|
matcher: r.readOnly()
|
|
3530
3530
|
});
|
|
3531
3531
|
}
|
|
3532
|
-
function
|
|
3532
|
+
function fn(e, t) {
|
|
3533
3533
|
let n = "";
|
|
3534
|
-
t.format && (n =
|
|
3534
|
+
t.format && (n = ln);
|
|
3535
3535
|
let r = [];
|
|
3536
3536
|
if (t.stopNodes && Array.isArray(t.stopNodes)) for (let e = 0; e < t.stopNodes.length; e++) {
|
|
3537
3537
|
let n = t.stopNodes[e];
|
|
3538
3538
|
typeof n == "string" ? r.push(new N(n)) : n instanceof N && r.push(n);
|
|
3539
3539
|
}
|
|
3540
|
-
let i = Xe("qName", { xmlVersion:
|
|
3541
|
-
return
|
|
3540
|
+
let i = Xe("qName", { xmlVersion: un(e, t) }), a = new P();
|
|
3541
|
+
return pn(e, t, n, a, r, i);
|
|
3542
3542
|
}
|
|
3543
|
-
function
|
|
3543
|
+
function pn(e, t, n, r, i, a) {
|
|
3544
3544
|
let o = "", s = !1;
|
|
3545
3545
|
if (t.maxNestedTags && r.getDepth() > t.maxNestedTags) throw Error("Maximum nested tags exceeded");
|
|
3546
3546
|
if (!Array.isArray(e)) {
|
|
3547
3547
|
if (e != null) {
|
|
3548
3548
|
let n = e.toString();
|
|
3549
|
-
return n =
|
|
3549
|
+
return n = B(n, t), n;
|
|
3550
3550
|
}
|
|
3551
3551
|
return "";
|
|
3552
3552
|
}
|
|
3553
3553
|
for (let c = 0; c < e.length; c++) {
|
|
3554
|
-
let l = e[c], u =
|
|
3554
|
+
let l = e[c], u = _n(l);
|
|
3555
3555
|
if (u === void 0) continue;
|
|
3556
|
-
let d = u === t.textNodeName || u === t.cdataPropName || u === t.commentPropName || u[0] === "?" ? u :
|
|
3556
|
+
let d = u === t.textNodeName || u === t.cdataPropName || u === t.commentPropName || u[0] === "?" ? u : dn(u, !1, t, r, a), f = mn(l[":@"], t);
|
|
3557
3557
|
r.push(d, f);
|
|
3558
|
-
let p =
|
|
3558
|
+
let p = yn(r, i);
|
|
3559
3559
|
if (d === t.textNodeName) {
|
|
3560
3560
|
let e = l[u];
|
|
3561
|
-
p || (e = t.tagValueProcessor(d, e), e =
|
|
3561
|
+
p || (e = t.tagValueProcessor(d, e), e = B(e, t)), s && (o += n), o += e, s = !1, r.pop();
|
|
3562
3562
|
continue;
|
|
3563
3563
|
} else if (d === t.cdataPropName) {
|
|
3564
3564
|
s && (o += n);
|
|
3565
|
-
let e = l[u][0][t.textNodeName], i =
|
|
3565
|
+
let e = l[u][0][t.textNodeName], i = cn(e);
|
|
3566
3566
|
o += `<![CDATA[${i}]]>`, s = !1, r.pop();
|
|
3567
3567
|
continue;
|
|
3568
3568
|
} else if (d === t.commentPropName) {
|
|
3569
|
-
let e = l[u][0][t.textNodeName], i =
|
|
3569
|
+
let e = l[u][0][t.textNodeName], i = sn(e);
|
|
3570
3570
|
o += n + `<!--${i}-->`, s = !0, r.pop();
|
|
3571
3571
|
continue;
|
|
3572
3572
|
} else if (d[0] === "?") {
|
|
3573
|
-
let e =
|
|
3573
|
+
let e = vn(l[":@"], t, p, r, a);
|
|
3574
3574
|
o += (d === "?xml" ? "" : n) + `<${d}${e}?>`, s = !0, r.pop();
|
|
3575
3575
|
continue;
|
|
3576
3576
|
}
|
|
3577
3577
|
let m = n;
|
|
3578
3578
|
m !== "" && (m += t.indentBy);
|
|
3579
|
-
let h = n + `<${d}${
|
|
3580
|
-
g = p ?
|
|
3579
|
+
let h = n + `<${d}${vn(l[":@"], t, p, r, a)}`, g;
|
|
3580
|
+
g = p ? hn(l[u], t) : pn(l[u], t, m, r, i, a), t.unpairedTags.indexOf(d) === -1 ? (!g || g.length === 0) && t.suppressEmptyNode ? o += h + "/>" : g && g.endsWith(">") ? o += h + `>${g}${n}</${d}>` : (o += h + ">", g && n !== "" && (g.includes("/>") || g.includes("</")) ? o += n + t.indentBy + g + n : o += g, o += `</${d}>`) : t.suppressUnpairedNode ? o += h + ">" : o += h + "/>", s = !0, r.pop();
|
|
3581
3581
|
}
|
|
3582
3582
|
return o;
|
|
3583
3583
|
}
|
|
3584
|
-
function
|
|
3584
|
+
function mn(e, t) {
|
|
3585
3585
|
if (!e || t.ignoreAttributes) return null;
|
|
3586
3586
|
let n = {}, r = !1;
|
|
3587
3587
|
for (let i in e) {
|
|
3588
3588
|
if (!Object.prototype.hasOwnProperty.call(e, i)) continue;
|
|
3589
3589
|
let a = i.startsWith(t.attributeNamePrefix) ? i.substr(t.attributeNamePrefix.length) : i;
|
|
3590
|
-
n[a] =
|
|
3590
|
+
n[a] = z(e[i]), r = !0;
|
|
3591
3591
|
}
|
|
3592
3592
|
return r ? n : null;
|
|
3593
3593
|
}
|
|
3594
|
-
function
|
|
3594
|
+
function hn(e, t) {
|
|
3595
3595
|
if (!Array.isArray(e)) return e == null ? "" : e.toString();
|
|
3596
3596
|
let n = "";
|
|
3597
3597
|
for (let r = 0; r < e.length; r++) {
|
|
3598
|
-
let i = e[r], a =
|
|
3598
|
+
let i = e[r], a = _n(i);
|
|
3599
3599
|
if (a === t.textNodeName) n += i[a];
|
|
3600
3600
|
else if (a === t.cdataPropName) n += i[a][0][t.textNodeName];
|
|
3601
3601
|
else if (a === t.commentPropName) n += i[a][0][t.textNodeName];
|
|
3602
3602
|
else if (a && a[0] === "?") continue;
|
|
3603
3603
|
else if (a) {
|
|
3604
|
-
let e =
|
|
3604
|
+
let e = gn(i[":@"], t), r = hn(i[a], t);
|
|
3605
3605
|
!r || r.length === 0 ? n += `<${a}${e}/>` : n += `<${a}${e}>${r}</${a}>`;
|
|
3606
3606
|
}
|
|
3607
3607
|
}
|
|
3608
3608
|
return n;
|
|
3609
3609
|
}
|
|
3610
|
-
function
|
|
3610
|
+
function gn(e, t) {
|
|
3611
3611
|
let n = "";
|
|
3612
3612
|
if (e && !t.ignoreAttributes) for (let r in e) {
|
|
3613
3613
|
if (!Object.prototype.hasOwnProperty.call(e, r)) continue;
|
|
3614
3614
|
let i = e[r];
|
|
3615
|
-
i === !0 && t.suppressBooleanAttributes ? n += ` ${r.substr(t.attributeNamePrefix.length)}` : n += ` ${r.substr(t.attributeNamePrefix.length)}="${
|
|
3615
|
+
i === !0 && t.suppressBooleanAttributes ? n += ` ${r.substr(t.attributeNamePrefix.length)}` : n += ` ${r.substr(t.attributeNamePrefix.length)}="${z(i)}"`;
|
|
3616
3616
|
}
|
|
3617
3617
|
return n;
|
|
3618
3618
|
}
|
|
3619
|
-
function
|
|
3619
|
+
function _n(e) {
|
|
3620
3620
|
let t = Object.keys(e);
|
|
3621
3621
|
for (let n = 0; n < t.length; n++) {
|
|
3622
3622
|
let r = t[n];
|
|
3623
3623
|
if (Object.prototype.hasOwnProperty.call(e, r) && r !== ":@") return r;
|
|
3624
3624
|
}
|
|
3625
3625
|
}
|
|
3626
|
-
function
|
|
3626
|
+
function vn(e, t, n, r, i) {
|
|
3627
3627
|
let a = "";
|
|
3628
3628
|
if (e && !t.ignoreAttributes) for (let o in e) {
|
|
3629
3629
|
if (!Object.prototype.hasOwnProperty.call(e, o)) continue;
|
|
3630
|
-
let s = o.substr(t.attributeNamePrefix.length), c = n ? s :
|
|
3631
|
-
n ? l = e[o] : (l = t.attributeValueProcessor(o, e[o]), l =
|
|
3630
|
+
let s = o.substr(t.attributeNamePrefix.length), c = n ? s : dn(s, !0, t, r, i), l;
|
|
3631
|
+
n ? l = e[o] : (l = t.attributeValueProcessor(o, e[o]), l = B(l, t)), l === !0 && t.suppressBooleanAttributes ? a += ` ${c}` : a += ` ${c}="${z(l)}"`;
|
|
3632
3632
|
}
|
|
3633
3633
|
return a;
|
|
3634
3634
|
}
|
|
3635
|
-
function
|
|
3635
|
+
function yn(e, t) {
|
|
3636
3636
|
if (!t || t.length === 0) return !1;
|
|
3637
3637
|
for (let n = 0; n < t.length; n++) if (e.matches(t[n])) return !0;
|
|
3638
3638
|
return !1;
|
|
3639
3639
|
}
|
|
3640
|
-
function
|
|
3640
|
+
function B(e, t) {
|
|
3641
3641
|
if (e && e.length > 0 && t.processEntities) for (let n = 0; n < t.entities.length; n++) {
|
|
3642
3642
|
let r = t.entities[n];
|
|
3643
3643
|
e = e.replace(r.regex, r.val);
|
|
@@ -3709,7 +3709,7 @@ function V(e) {
|
|
|
3709
3709
|
}
|
|
3710
3710
|
this.options.ignoreAttributes === !0 || this.options.attributesGroupName ? this.isAttribute = function() {
|
|
3711
3711
|
return !1;
|
|
3712
|
-
} : (this.ignoreAttributesFn = bn(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute =
|
|
3712
|
+
} : (this.ignoreAttributesFn = bn(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = Tn), this.processTextOrObjNode = Cn, this.options.format ? (this.indentate = wn, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
|
|
3713
3713
|
return "";
|
|
3714
3714
|
}, this.tagEndChar = ">", this.newLine = "");
|
|
3715
3715
|
}
|
|
@@ -3725,14 +3725,14 @@ function Sn(e, t) {
|
|
|
3725
3725
|
}
|
|
3726
3726
|
return "1.0";
|
|
3727
3727
|
}
|
|
3728
|
-
function
|
|
3728
|
+
function H(e, t, n, r, i) {
|
|
3729
3729
|
return !n.sanitizeName || i(e) ? e : n.sanitizeName(e, {
|
|
3730
3730
|
isAttribute: t,
|
|
3731
3731
|
matcher: r.readOnly()
|
|
3732
3732
|
});
|
|
3733
3733
|
}
|
|
3734
3734
|
V.prototype.build = function(e) {
|
|
3735
|
-
if (this.options.preserveOrder) return
|
|
3735
|
+
if (this.options.preserveOrder) return fn(e, this.options);
|
|
3736
3736
|
{
|
|
3737
3737
|
Array.isArray(e) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (e = { [this.options.arrayNodeName]: e });
|
|
3738
3738
|
let t = new P(), n = Xe("qName", { xmlVersion: Sn(e, this.options) });
|
|
@@ -3744,14 +3744,14 @@ V.prototype.build = function(e) {
|
|
|
3744
3744
|
let o = this.options.jPath ? n.toString() : n, s = this.checkStopNode(n);
|
|
3745
3745
|
for (let c in e) {
|
|
3746
3746
|
if (!Object.prototype.hasOwnProperty.call(e, c)) continue;
|
|
3747
|
-
let l = c === this.options.textNodeName || c === this.options.cdataPropName || c === this.options.commentPropName || this.options.attributesGroupName && c === this.options.attributesGroupName || this.isAttribute(c) || c[0] === "?" ? c :
|
|
3747
|
+
let l = c === this.options.textNodeName || c === this.options.cdataPropName || c === this.options.commentPropName || this.options.attributesGroupName && c === this.options.attributesGroupName || this.isAttribute(c) || c[0] === "?" ? c : H(c, !1, this.options, n, r);
|
|
3748
3748
|
if (e[c] === void 0) this.isAttribute(c) && (a += "");
|
|
3749
3749
|
else if (e[c] === null) this.isAttribute(c) || l === this.options.cdataPropName || l === this.options.commentPropName ? a += "" : l[0] === "?" ? a += this.indentate(t) + "<" + l + "?" + this.tagEndChar : a += this.indentate(t) + "<" + l + "/" + this.tagEndChar;
|
|
3750
3750
|
else if (e[c] instanceof Date) a += this.buildTextValNode(e[c], l, "", t, n);
|
|
3751
3751
|
else if (typeof e[c] != "object") {
|
|
3752
3752
|
let u = this.isAttribute(c);
|
|
3753
3753
|
if (u && !this.ignoreAttributesFn(u, o)) {
|
|
3754
|
-
let t =
|
|
3754
|
+
let t = H(u, !0, this.options, n, r);
|
|
3755
3755
|
i += this.buildAttrPairStr(t, "" + e[c], s);
|
|
3756
3756
|
} else if (!u) if (c === this.options.textNodeName) {
|
|
3757
3757
|
let t = this.options.tagValueProcessor(c, "" + e[c]);
|
|
@@ -3790,7 +3790,7 @@ V.prototype.build = function(e) {
|
|
|
3790
3790
|
} else if (this.options.attributesGroupName && c === this.options.attributesGroupName) {
|
|
3791
3791
|
let t = Object.keys(e[c]), a = t.length;
|
|
3792
3792
|
for (let o = 0; o < a; o++) {
|
|
3793
|
-
let a =
|
|
3793
|
+
let a = H(t[o], !0, this.options, n, r);
|
|
3794
3794
|
i += this.buildAttrPairStr(a, "" + e[c][t[o]], s);
|
|
3795
3795
|
}
|
|
3796
3796
|
} else a += this.processTextOrObjNode(e[c], l, t, n, r);
|
|
@@ -3800,9 +3800,9 @@ V.prototype.build = function(e) {
|
|
|
3800
3800
|
val: a
|
|
3801
3801
|
};
|
|
3802
3802
|
}, V.prototype.buildAttrPairStr = function(e, t, n) {
|
|
3803
|
-
return n || (t = this.options.attributeValueProcessor(e, "" + t), t = this.replaceEntitiesValue(t)), this.options.suppressBooleanAttributes && t === "true" ? " " + e : " " + e + "=\"" +
|
|
3803
|
+
return n || (t = this.options.attributeValueProcessor(e, "" + t), t = this.replaceEntitiesValue(t)), this.options.suppressBooleanAttributes && t === "true" ? " " + e : " " + e + "=\"" + z(t) + "\"";
|
|
3804
3804
|
};
|
|
3805
|
-
function
|
|
3805
|
+
function Cn(e, t, n, r, i) {
|
|
3806
3806
|
let a = this.extractAttributes(e);
|
|
3807
3807
|
if (r.push(t, a), this.checkStopNode(r)) {
|
|
3808
3808
|
let i = this.buildRawContent(e), a = this.buildAttributesForStopNode(e);
|
|
@@ -3819,12 +3819,12 @@ V.prototype.extractAttributes = function(e) {
|
|
|
3819
3819
|
for (let e in r) {
|
|
3820
3820
|
if (!Object.prototype.hasOwnProperty.call(r, e)) continue;
|
|
3821
3821
|
let i = e.startsWith(this.options.attributeNamePrefix) ? e.substring(this.options.attributeNamePrefix.length) : e;
|
|
3822
|
-
t[i] =
|
|
3822
|
+
t[i] = z(r[e]), n = !0;
|
|
3823
3823
|
}
|
|
3824
3824
|
} else for (let r in e) {
|
|
3825
3825
|
if (!Object.prototype.hasOwnProperty.call(e, r)) continue;
|
|
3826
3826
|
let i = this.isAttribute(r);
|
|
3827
|
-
i && (t[i] =
|
|
3827
|
+
i && (t[i] = z(e[r]), n = !0);
|
|
3828
3828
|
}
|
|
3829
3829
|
return n ? t : null;
|
|
3830
3830
|
}, V.prototype.buildRawContent = function(e) {
|
|
@@ -3856,14 +3856,14 @@ V.prototype.extractAttributes = function(e) {
|
|
|
3856
3856
|
for (let e in n) {
|
|
3857
3857
|
if (!Object.prototype.hasOwnProperty.call(n, e)) continue;
|
|
3858
3858
|
let r = e.startsWith(this.options.attributeNamePrefix) ? e.substring(this.options.attributeNamePrefix.length) : e, i = n[e];
|
|
3859
|
-
i === !0 && this.options.suppressBooleanAttributes ? t += " " + r : t += " " + r + "=\"" +
|
|
3859
|
+
i === !0 && this.options.suppressBooleanAttributes ? t += " " + r : t += " " + r + "=\"" + z(i) + "\"";
|
|
3860
3860
|
}
|
|
3861
3861
|
} else for (let n in e) {
|
|
3862
3862
|
if (!Object.prototype.hasOwnProperty.call(e, n)) continue;
|
|
3863
3863
|
let r = this.isAttribute(n);
|
|
3864
3864
|
if (r) {
|
|
3865
3865
|
let i = e[n];
|
|
3866
|
-
i === !0 && this.options.suppressBooleanAttributes ? t += " " + r : t += " " + r + "=\"" +
|
|
3866
|
+
i === !0 && this.options.suppressBooleanAttributes ? t += " " + r : t += " " + r + "=\"" + z(i) + "\"";
|
|
3867
3867
|
}
|
|
3868
3868
|
}
|
|
3869
3869
|
return t;
|
|
@@ -3872,7 +3872,7 @@ V.prototype.extractAttributes = function(e) {
|
|
|
3872
3872
|
if (t[0] === "?") return this.indentate(r) + "<" + t + n + "?" + this.tagEndChar;
|
|
3873
3873
|
{
|
|
3874
3874
|
let i = "</" + t + this.tagEndChar, a = "";
|
|
3875
|
-
return t[0] === "?" && (a = "?", i = ""), (n || n === "") && e.indexOf("<") === -1 ? this.indentate(r) + "<" + t + n + a + ">" + e + i : this.options.commentPropName !== !1 && t === this.options.commentPropName && a.length === 0 ? this.indentate(r) + `<!--${
|
|
3875
|
+
return t[0] === "?" && (a = "?", i = ""), (n || n === "") && e.indexOf("<") === -1 ? this.indentate(r) + "<" + t + n + a + ">" + e + i : this.options.commentPropName !== !1 && t === this.options.commentPropName && a.length === 0 ? this.indentate(r) + `<!--${sn(e)}-->` + this.newLine : this.indentate(r) + "<" + t + n + a + this.tagEndChar + e + this.indentate(r) + i;
|
|
3876
3876
|
}
|
|
3877
3877
|
}, V.prototype.closeTag = function(e) {
|
|
3878
3878
|
let t = "";
|
|
@@ -3883,10 +3883,10 @@ V.prototype.extractAttributes = function(e) {
|
|
|
3883
3883
|
return !1;
|
|
3884
3884
|
}, V.prototype.buildTextValNode = function(e, t, n, r, i) {
|
|
3885
3885
|
if (this.options.cdataPropName !== !1 && t === this.options.cdataPropName) {
|
|
3886
|
-
let t =
|
|
3886
|
+
let t = cn(e);
|
|
3887
3887
|
return this.indentate(r) + `<![CDATA[${t}]]>` + this.newLine;
|
|
3888
3888
|
} else if (this.options.commentPropName !== !1 && t === this.options.commentPropName) {
|
|
3889
|
-
let t =
|
|
3889
|
+
let t = sn(e);
|
|
3890
3890
|
return this.indentate(r) + `<!--${t}-->` + this.newLine;
|
|
3891
3891
|
} else if (t[0] === "?") return this.indentate(r) + "<" + t + n + "?" + this.tagEndChar;
|
|
3892
3892
|
else {
|
|
@@ -3900,56 +3900,56 @@ V.prototype.extractAttributes = function(e) {
|
|
|
3900
3900
|
}
|
|
3901
3901
|
return e;
|
|
3902
3902
|
};
|
|
3903
|
-
function
|
|
3903
|
+
function wn(e) {
|
|
3904
3904
|
return this.options.indentBy.repeat(e);
|
|
3905
3905
|
}
|
|
3906
|
-
function
|
|
3906
|
+
function Tn(e) {
|
|
3907
3907
|
return e.startsWith(this.options.attributeNamePrefix) && e !== this.options.textNodeName ? e.substr(this.attrPrefixLen) : !1;
|
|
3908
3908
|
}
|
|
3909
3909
|
//#endregion
|
|
3910
3910
|
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js
|
|
3911
|
-
var
|
|
3911
|
+
var En = V, U = e.object({
|
|
3912
3912
|
created_at: e.string(),
|
|
3913
3913
|
updated_at: e.string()
|
|
3914
|
-
}),
|
|
3914
|
+
}), Dn = e.enum([
|
|
3915
3915
|
"local",
|
|
3916
3916
|
"shared",
|
|
3917
3917
|
"platform"
|
|
3918
|
-
]),
|
|
3918
|
+
]), On = e.enum([
|
|
3919
3919
|
"none",
|
|
3920
3920
|
"secrets",
|
|
3921
3921
|
"fields"
|
|
3922
|
-
]),
|
|
3923
|
-
scope:
|
|
3924
|
-
override:
|
|
3922
|
+
]), W = {
|
|
3923
|
+
scope: Dn.optional(),
|
|
3924
|
+
override: On.optional(),
|
|
3925
3925
|
enforce: e.boolean().optional()
|
|
3926
|
-
},
|
|
3926
|
+
}, kn = e.object({
|
|
3927
3927
|
id: e.string(),
|
|
3928
3928
|
version: e.string().optional()
|
|
3929
|
-
}),
|
|
3929
|
+
}), An = e.object({
|
|
3930
3930
|
name: e.string(),
|
|
3931
3931
|
version: e.string()
|
|
3932
|
-
}),
|
|
3932
|
+
}), jn = e.object({
|
|
3933
3933
|
name: e.string(),
|
|
3934
3934
|
value: e.string().optional()
|
|
3935
|
-
}),
|
|
3935
|
+
}), Mn = e.object({
|
|
3936
3936
|
name: e.string().max(255),
|
|
3937
3937
|
code: e.string().max(1e5),
|
|
3938
|
-
supported_triggers: e.array(
|
|
3938
|
+
supported_triggers: e.array(kn).optional(),
|
|
3939
3939
|
runtime: e.string().max(50).optional(),
|
|
3940
|
-
dependencies: e.array(
|
|
3941
|
-
secrets: e.array(
|
|
3940
|
+
dependencies: e.array(An).optional(),
|
|
3941
|
+
secrets: e.array(jn).optional(),
|
|
3942
3942
|
is_system: e.boolean().optional(),
|
|
3943
|
-
...
|
|
3943
|
+
...W,
|
|
3944
3944
|
inherit: e.boolean().optional()
|
|
3945
3945
|
});
|
|
3946
|
-
|
|
3946
|
+
Mn.partial().extend({
|
|
3947
3947
|
status: e.enum(["draft", "built"]).optional(),
|
|
3948
3948
|
deployed_at: e.string().optional()
|
|
3949
3949
|
});
|
|
3950
3950
|
//#endregion
|
|
3951
3951
|
//#region ../adapter-interfaces/dist/adapter-interfaces.mjs
|
|
3952
|
-
var
|
|
3952
|
+
var Nn = Mn.extend({
|
|
3953
3953
|
id: e.string(),
|
|
3954
3954
|
tenant_id: e.string(),
|
|
3955
3955
|
status: e.enum(["draft", "built"]).default("built"),
|
|
@@ -3958,25 +3958,25 @@ var Pn = Nn.extend({
|
|
|
3958
3958
|
name: e.string(),
|
|
3959
3959
|
value: e.string().optional()
|
|
3960
3960
|
})).optional()
|
|
3961
|
-
}).extend(
|
|
3962
|
-
|
|
3963
|
-
var
|
|
3961
|
+
}).extend(U.shape), Pn = e.object({ name: e.string() });
|
|
3962
|
+
Nn.extend({ secrets: e.array(Pn).optional() });
|
|
3963
|
+
var Fn = e.string(), In = e.enum([
|
|
3964
3964
|
"unspecified",
|
|
3965
3965
|
"pending",
|
|
3966
3966
|
"final",
|
|
3967
3967
|
"partial",
|
|
3968
3968
|
"canceled",
|
|
3969
3969
|
"suspended"
|
|
3970
|
-
]),
|
|
3970
|
+
]), Ln = e.object({
|
|
3971
3971
|
id: e.string(),
|
|
3972
3972
|
msg: e.string(),
|
|
3973
3973
|
url: e.string().optional()
|
|
3974
|
-
}),
|
|
3974
|
+
}), Rn = e.object({
|
|
3975
3975
|
action_name: e.string(),
|
|
3976
|
-
error:
|
|
3976
|
+
error: Ln.nullable(),
|
|
3977
3977
|
started_at: e.string(),
|
|
3978
3978
|
ended_at: e.string()
|
|
3979
|
-
}),
|
|
3979
|
+
}), zn = e.object({
|
|
3980
3980
|
level: e.enum([
|
|
3981
3981
|
"log",
|
|
3982
3982
|
"info",
|
|
@@ -3985,17 +3985,17 @@ var In = e.string(), Ln = e.enum([
|
|
|
3985
3985
|
"debug"
|
|
3986
3986
|
]),
|
|
3987
3987
|
message: e.string()
|
|
3988
|
-
}),
|
|
3988
|
+
}), Bn = e.array(e.object({
|
|
3989
3989
|
action_name: e.string(),
|
|
3990
|
-
lines: e.array(
|
|
3990
|
+
lines: e.array(zn)
|
|
3991
3991
|
}));
|
|
3992
3992
|
e.object({
|
|
3993
3993
|
id: e.string(),
|
|
3994
3994
|
tenant_id: e.string(),
|
|
3995
|
-
trigger_id:
|
|
3996
|
-
status:
|
|
3997
|
-
results: e.array(
|
|
3998
|
-
logs:
|
|
3995
|
+
trigger_id: Fn,
|
|
3996
|
+
status: In,
|
|
3997
|
+
results: e.array(Rn),
|
|
3998
|
+
logs: Bn.optional(),
|
|
3999
3999
|
created_at: e.string(),
|
|
4000
4000
|
updated_at: e.string()
|
|
4001
4001
|
}).omit({
|
|
@@ -4006,21 +4006,21 @@ e.object({
|
|
|
4006
4006
|
action_id: e.string(),
|
|
4007
4007
|
code: e.string().max(1e5),
|
|
4008
4008
|
runtime: e.string().max(50).optional(),
|
|
4009
|
-
dependencies: e.array(
|
|
4010
|
-
secrets: e.array(
|
|
4011
|
-
supported_triggers: e.array(
|
|
4009
|
+
dependencies: e.array(An).optional(),
|
|
4010
|
+
secrets: e.array(jn).optional(),
|
|
4011
|
+
supported_triggers: e.array(kn).optional(),
|
|
4012
4012
|
deployed: e.boolean().default(!0)
|
|
4013
4013
|
}).extend({
|
|
4014
4014
|
id: e.string(),
|
|
4015
4015
|
tenant_id: e.string(),
|
|
4016
4016
|
number: e.number().int()
|
|
4017
|
-
}).extend(
|
|
4018
|
-
var
|
|
4017
|
+
}).extend(U.shape);
|
|
4018
|
+
var Vn = e.enum([
|
|
4019
4019
|
"user_action",
|
|
4020
4020
|
"admin_action",
|
|
4021
4021
|
"system",
|
|
4022
4022
|
"api"
|
|
4023
|
-
]),
|
|
4023
|
+
]), Hn = e.object({
|
|
4024
4024
|
type: e.enum([
|
|
4025
4025
|
"user",
|
|
4026
4026
|
"admin",
|
|
@@ -4034,7 +4034,7 @@ var Hn = e.enum([
|
|
|
4034
4034
|
org_name: e.string().optional(),
|
|
4035
4035
|
scopes: e.array(e.string()).optional(),
|
|
4036
4036
|
client_id: e.string().optional()
|
|
4037
|
-
}),
|
|
4037
|
+
}), Un = e.object({
|
|
4038
4038
|
type: e.string(),
|
|
4039
4039
|
id: e.string(),
|
|
4040
4040
|
before: e.record(e.string(), e.unknown()).optional(),
|
|
@@ -4043,7 +4043,7 @@ var Hn = e.enum([
|
|
|
4043
4043
|
old: e.unknown(),
|
|
4044
4044
|
new: e.unknown()
|
|
4045
4045
|
})).optional()
|
|
4046
|
-
}),
|
|
4046
|
+
}), Wn = e.object({
|
|
4047
4047
|
user: e.object({
|
|
4048
4048
|
user_id: e.string(),
|
|
4049
4049
|
name: e.string().optional(),
|
|
@@ -4054,7 +4054,7 @@ var Hn = e.enum([
|
|
|
4054
4054
|
jti: e.string().optional(),
|
|
4055
4055
|
scopes: e.array(e.string()).optional()
|
|
4056
4056
|
}).optional()
|
|
4057
|
-
}),
|
|
4057
|
+
}), Gn = e.object({
|
|
4058
4058
|
method: e.string(),
|
|
4059
4059
|
path: e.string(),
|
|
4060
4060
|
query: e.record(e.string(), e.string()).optional(),
|
|
@@ -4064,18 +4064,18 @@ var Hn = e.enum([
|
|
|
4064
4064
|
correlation_id: e.string().optional(),
|
|
4065
4065
|
redirect_uri: e.string().optional(),
|
|
4066
4066
|
authorization_url: e.string().optional(),
|
|
4067
|
-
auth:
|
|
4068
|
-
}),
|
|
4067
|
+
auth: Wn.optional()
|
|
4068
|
+
}), Kn = e.object({
|
|
4069
4069
|
status_code: e.number(),
|
|
4070
4070
|
body: e.unknown().optional()
|
|
4071
|
-
}),
|
|
4071
|
+
}), qn = e.object({
|
|
4072
4072
|
country_code: e.string(),
|
|
4073
4073
|
city_name: e.string(),
|
|
4074
4074
|
latitude: e.string(),
|
|
4075
4075
|
longitude: e.string(),
|
|
4076
4076
|
time_zone: e.string(),
|
|
4077
4077
|
continent_code: e.string()
|
|
4078
|
-
}),
|
|
4078
|
+
}), Jn = e.object({
|
|
4079
4079
|
name: e.string(),
|
|
4080
4080
|
version: e.string(),
|
|
4081
4081
|
env: e.record(e.string(), e.string()).optional()
|
|
@@ -4085,11 +4085,11 @@ e.object({
|
|
|
4085
4085
|
event_type: e.string(),
|
|
4086
4086
|
log_type: e.string(),
|
|
4087
4087
|
description: e.string().optional(),
|
|
4088
|
-
category:
|
|
4089
|
-
actor:
|
|
4090
|
-
target:
|
|
4091
|
-
request:
|
|
4092
|
-
response:
|
|
4088
|
+
category: Vn,
|
|
4089
|
+
actor: Hn,
|
|
4090
|
+
target: Un,
|
|
4091
|
+
request: Gn,
|
|
4092
|
+
response: Kn.optional(),
|
|
4093
4093
|
connection: e.string().optional(),
|
|
4094
4094
|
connection_id: e.string().optional(),
|
|
4095
4095
|
client_name: e.string().optional(),
|
|
@@ -4097,8 +4097,8 @@ e.object({
|
|
|
4097
4097
|
strategy_type: e.string().optional(),
|
|
4098
4098
|
audience: e.string().optional(),
|
|
4099
4099
|
scope: e.string().optional(),
|
|
4100
|
-
location:
|
|
4101
|
-
auth0_client:
|
|
4100
|
+
location: qn.optional(),
|
|
4101
|
+
auth0_client: Jn.optional(),
|
|
4102
4102
|
hostname: e.string(),
|
|
4103
4103
|
is_mobile: e.boolean().optional(),
|
|
4104
4104
|
execution_id: e.string().optional(),
|
|
@@ -4116,14 +4116,14 @@ e.object({
|
|
|
4116
4116
|
"SEND_REQUEST",
|
|
4117
4117
|
"SEND_EMAIL"
|
|
4118
4118
|
]), e.enum(["VERIFY_EMAIL"]);
|
|
4119
|
-
var
|
|
4119
|
+
var Yn = e.object({
|
|
4120
4120
|
require_mx_record: e.boolean().optional(),
|
|
4121
4121
|
block_aliases: e.boolean().optional(),
|
|
4122
4122
|
block_free_emails: e.boolean().optional(),
|
|
4123
4123
|
block_disposable_emails: e.boolean().optional(),
|
|
4124
4124
|
blocklist: e.array(e.string()).optional(),
|
|
4125
4125
|
allowlist: e.array(e.string()).optional()
|
|
4126
|
-
}),
|
|
4126
|
+
}), Xn = e.object({
|
|
4127
4127
|
id: e.string(),
|
|
4128
4128
|
alias: e.string().max(100).optional(),
|
|
4129
4129
|
type: e.literal("AUTH0"),
|
|
@@ -4135,7 +4135,7 @@ var Xn = e.object({
|
|
|
4135
4135
|
user_id: e.string(),
|
|
4136
4136
|
changes: e.record(e.string(), e.any())
|
|
4137
4137
|
})
|
|
4138
|
-
}),
|
|
4138
|
+
}), Zn = e.object({
|
|
4139
4139
|
id: e.string(),
|
|
4140
4140
|
alias: e.string().max(100).optional(),
|
|
4141
4141
|
type: e.literal("EMAIL"),
|
|
@@ -4144,13 +4144,13 @@ var Xn = e.object({
|
|
|
4144
4144
|
mask_output: e.boolean().optional(),
|
|
4145
4145
|
params: e.object({
|
|
4146
4146
|
email: e.string(),
|
|
4147
|
-
rules:
|
|
4147
|
+
rules: Yn.optional()
|
|
4148
4148
|
})
|
|
4149
|
-
}),
|
|
4149
|
+
}), Qn = e.enum([
|
|
4150
4150
|
"change-email",
|
|
4151
4151
|
"account",
|
|
4152
4152
|
"custom"
|
|
4153
|
-
]),
|
|
4153
|
+
]), $n = e.object({
|
|
4154
4154
|
id: e.string(),
|
|
4155
4155
|
alias: e.string().max(100).optional(),
|
|
4156
4156
|
type: e.literal("REDIRECT"),
|
|
@@ -4158,18 +4158,18 @@ var Xn = e.object({
|
|
|
4158
4158
|
allow_failure: e.boolean().optional(),
|
|
4159
4159
|
mask_output: e.boolean().optional(),
|
|
4160
4160
|
params: e.object({
|
|
4161
|
-
target:
|
|
4161
|
+
target: Qn.openapi({ description: "The predefined target to redirect to, or 'custom' for a custom URL" }),
|
|
4162
4162
|
custom_url: e.string().optional().openapi({ description: "Custom URL to redirect to when target is 'custom'" })
|
|
4163
4163
|
})
|
|
4164
|
-
}),
|
|
4164
|
+
}), er = e.union([
|
|
4165
|
+
Xn,
|
|
4165
4166
|
Zn,
|
|
4166
|
-
|
|
4167
|
-
er
|
|
4167
|
+
$n
|
|
4168
4168
|
]);
|
|
4169
4169
|
e.object({
|
|
4170
4170
|
name: e.string().min(1).max(150).openapi({ description: "The name of the flow" }),
|
|
4171
|
-
actions: e.array(
|
|
4172
|
-
}).extend(
|
|
4171
|
+
actions: e.array(er).optional().default([]).openapi({ description: "The list of actions to execute in sequence" })
|
|
4172
|
+
}).extend(U.shape).extend({ id: e.string().openapi({
|
|
4173
4173
|
description: "Unique identifier for the flow",
|
|
4174
4174
|
example: "af_12tMpdJ3iek7svMyZkSh5M"
|
|
4175
4175
|
}) }), e.object({
|
|
@@ -4185,7 +4185,7 @@ e.object({
|
|
|
4185
4185
|
total: e.number().optional(),
|
|
4186
4186
|
next: e.string().optional()
|
|
4187
4187
|
});
|
|
4188
|
-
var
|
|
4188
|
+
var tr = e.object({
|
|
4189
4189
|
email: e.string().optional(),
|
|
4190
4190
|
email_verified: e.boolean().optional(),
|
|
4191
4191
|
name: e.string().optional(),
|
|
@@ -4194,7 +4194,7 @@ var nr = e.object({
|
|
|
4194
4194
|
phone_number: e.string().optional(),
|
|
4195
4195
|
phone_verified: e.boolean().optional(),
|
|
4196
4196
|
family_name: e.string().optional()
|
|
4197
|
-
}).catchall(e.any()),
|
|
4197
|
+
}).catchall(e.any()), nr = e.object({
|
|
4198
4198
|
connection: e.string(),
|
|
4199
4199
|
user_id: e.string(),
|
|
4200
4200
|
provider: e.string(),
|
|
@@ -4207,15 +4207,15 @@ var nr = e.object({
|
|
|
4207
4207
|
access_token: e.string().optional(),
|
|
4208
4208
|
access_token_secret: e.string().optional(),
|
|
4209
4209
|
refresh_token: e.string().optional(),
|
|
4210
|
-
profileData:
|
|
4211
|
-
}),
|
|
4210
|
+
profileData: tr.optional()
|
|
4211
|
+
}), rr = e.object({
|
|
4212
4212
|
formatted: e.string().optional(),
|
|
4213
4213
|
street_address: e.string().optional(),
|
|
4214
4214
|
locality: e.string().optional(),
|
|
4215
4215
|
region: e.string().optional(),
|
|
4216
4216
|
postal_code: e.string().optional(),
|
|
4217
4217
|
country: e.string().optional()
|
|
4218
|
-
}).optional(),
|
|
4218
|
+
}).optional(), ir = e.object({
|
|
4219
4219
|
email: e.string().transform((e) => e.toLowerCase()).optional(),
|
|
4220
4220
|
username: e.string().refine((e) => !e.includes("@"), { message: "Usernames must not contain \"@\". Use the email field for email addresses." }).optional(),
|
|
4221
4221
|
phone_number: e.string().optional(),
|
|
@@ -4238,9 +4238,9 @@ var nr = e.object({
|
|
|
4238
4238
|
gender: e.string().optional(),
|
|
4239
4239
|
birthdate: e.string().optional(),
|
|
4240
4240
|
zoneinfo: e.string().optional(),
|
|
4241
|
-
address:
|
|
4241
|
+
address: rr
|
|
4242
4242
|
});
|
|
4243
|
-
|
|
4243
|
+
ir.extend({
|
|
4244
4244
|
email_verified: e.boolean().default(!1),
|
|
4245
4245
|
verify_email: e.boolean().optional(),
|
|
4246
4246
|
last_ip: e.string().optional(),
|
|
@@ -4255,30 +4255,30 @@ ar.extend({
|
|
|
4255
4255
|
hash: e.string(),
|
|
4256
4256
|
algorithm: e.string()
|
|
4257
4257
|
}).optional()
|
|
4258
|
-
}).omit({ password: !0 }).extend(
|
|
4258
|
+
}).omit({ password: !0 }).extend(U.shape).extend({
|
|
4259
4259
|
user_id: e.string(),
|
|
4260
4260
|
provider: e.string(),
|
|
4261
4261
|
is_social: e.boolean(),
|
|
4262
4262
|
email: e.string().optional(),
|
|
4263
4263
|
login_count: e.number().default(0),
|
|
4264
|
-
identities: e.array(
|
|
4265
|
-
}).omit({ registration_completed_at: !0 }),
|
|
4264
|
+
identities: e.array(nr).optional()
|
|
4265
|
+
}).omit({ registration_completed_at: !0 }), ir.extend({
|
|
4266
4266
|
login_count: e.number(),
|
|
4267
4267
|
multifactor: e.array(e.string()).optional(),
|
|
4268
4268
|
last_ip: e.string().optional(),
|
|
4269
4269
|
last_login: e.string().optional(),
|
|
4270
4270
|
user_id: e.string()
|
|
4271
4271
|
}).catchall(e.any());
|
|
4272
|
-
var
|
|
4272
|
+
var ar = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", or = (e = 21) => {
|
|
4273
4273
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
4274
|
-
for (; e--;) t +=
|
|
4274
|
+
for (; e--;) t += ar[n[e] & 63];
|
|
4275
4275
|
return t;
|
|
4276
|
-
},
|
|
4276
|
+
}, sr = e.object({
|
|
4277
4277
|
client_id: e.string().optional().openapi({ description: "ID of this client. Generated server-side if omitted (Auth0 behavior)." }),
|
|
4278
4278
|
name: e.string().min(1).openapi({ description: "Name of this client (min length: 1 character, does not allow < or >)." }),
|
|
4279
4279
|
description: e.string().max(140).optional().openapi({ description: "Free text description of this client (max length: 140 characters)." }),
|
|
4280
4280
|
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)." }),
|
|
4281
|
-
client_secret: e.string().default(() =>
|
|
4281
|
+
client_secret: e.string().default(() => or()).optional().openapi({ description: "Client secret (which you must not make public)." }),
|
|
4282
4282
|
app_type: e.enum([
|
|
4283
4283
|
"native",
|
|
4284
4284
|
"spa",
|
|
@@ -4396,8 +4396,8 @@ var or = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", sr
|
|
|
4396
4396
|
e.object({
|
|
4397
4397
|
created_at: e.string(),
|
|
4398
4398
|
updated_at: e.string()
|
|
4399
|
-
}).extend(
|
|
4400
|
-
var
|
|
4399
|
+
}).extend(sr.shape).extend({ client_id: e.string() });
|
|
4400
|
+
var cr = e.object({
|
|
4401
4401
|
client_id: e.string().min(1).openapi({ description: "ID of the client." }),
|
|
4402
4402
|
audience: e.string().min(1).openapi({ description: "The audience (API identifier) of this client grant." }),
|
|
4403
4403
|
scope: e.array(e.string()).optional().openapi({ description: "Scopes allowed for this client grant." }),
|
|
@@ -4410,15 +4410,15 @@ var lr = e.object({
|
|
|
4410
4410
|
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." }),
|
|
4411
4411
|
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." }),
|
|
4412
4412
|
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." })
|
|
4413
|
-
}),
|
|
4413
|
+
}), lr = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(cr.shape).extend({
|
|
4414
4414
|
created_at: e.string().optional(),
|
|
4415
4415
|
updated_at: e.string().optional()
|
|
4416
4416
|
});
|
|
4417
|
-
e.array(
|
|
4418
|
-
var
|
|
4417
|
+
e.array(lr);
|
|
4418
|
+
var ur = e.enum(["iat", "rat"]), dr = e.object({
|
|
4419
4419
|
id: e.string(),
|
|
4420
4420
|
token_hash: e.string(),
|
|
4421
|
-
type:
|
|
4421
|
+
type: ur,
|
|
4422
4422
|
client_id: e.string().optional(),
|
|
4423
4423
|
sub: e.string().optional(),
|
|
4424
4424
|
constraints: e.record(e.string(), e.unknown()).optional(),
|
|
@@ -4429,23 +4429,23 @@ e.object({
|
|
|
4429
4429
|
created_at: e.string(),
|
|
4430
4430
|
used_at: e.string().optional(),
|
|
4431
4431
|
revoked_at: e.string().optional()
|
|
4432
|
-
}).extend(
|
|
4433
|
-
var
|
|
4432
|
+
}).extend(dr.shape);
|
|
4433
|
+
var G = e.object({
|
|
4434
4434
|
x: e.number(),
|
|
4435
4435
|
y: e.number()
|
|
4436
|
-
}),
|
|
4436
|
+
}), fr = /* @__PURE__ */ function(e) {
|
|
4437
4437
|
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;
|
|
4438
|
-
}({}),
|
|
4438
|
+
}({}), pr = /* @__PURE__ */ function(e) {
|
|
4439
4439
|
return e.BLOCK = "BLOCK", e.FIELD = "FIELD", e;
|
|
4440
|
-
}({}),
|
|
4440
|
+
}({}), K = e.object({
|
|
4441
4441
|
id: e.string(),
|
|
4442
|
-
category: e.nativeEnum(
|
|
4443
|
-
type: e.nativeEnum(
|
|
4444
|
-
}),
|
|
4442
|
+
category: e.nativeEnum(pr),
|
|
4443
|
+
type: e.nativeEnum(fr)
|
|
4444
|
+
}), mr = K.extend({
|
|
4445
4445
|
category: e.literal("BLOCK"),
|
|
4446
4446
|
type: e.literal("RICH_TEXT"),
|
|
4447
4447
|
config: e.object({ content: e.string() }).passthrough()
|
|
4448
|
-
}),
|
|
4448
|
+
}), hr = K.extend({
|
|
4449
4449
|
category: e.literal("BLOCK"),
|
|
4450
4450
|
type: e.union([
|
|
4451
4451
|
e.literal("NEXT_BUTTON"),
|
|
@@ -4453,13 +4453,13 @@ var W = e.object({
|
|
|
4453
4453
|
e.literal("SUBMIT_BUTTON")
|
|
4454
4454
|
]),
|
|
4455
4455
|
config: e.object({ text: e.string() }).passthrough()
|
|
4456
|
-
}),
|
|
4456
|
+
}), gr = K.extend({
|
|
4457
4457
|
category: e.literal("FIELD"),
|
|
4458
4458
|
type: e.literal("LEGAL"),
|
|
4459
4459
|
required: e.boolean().optional(),
|
|
4460
4460
|
sensitive: e.boolean().optional(),
|
|
4461
4461
|
config: e.object({ text: e.string() }).passthrough()
|
|
4462
|
-
}),
|
|
4462
|
+
}), _r = K.extend({
|
|
4463
4463
|
category: e.literal("FIELD"),
|
|
4464
4464
|
type: e.union([
|
|
4465
4465
|
e.literal("TEXT"),
|
|
@@ -4479,38 +4479,38 @@ var W = e.object({
|
|
|
4479
4479
|
label: e.string().optional(),
|
|
4480
4480
|
placeholder: e.string().optional()
|
|
4481
4481
|
}).passthrough()
|
|
4482
|
-
}),
|
|
4482
|
+
}), vr = e.object({
|
|
4483
4483
|
id: e.string(),
|
|
4484
4484
|
category: e.string(),
|
|
4485
4485
|
type: e.string()
|
|
4486
|
-
}).passthrough(),
|
|
4486
|
+
}).passthrough(), yr = e.union([
|
|
4487
|
+
mr,
|
|
4487
4488
|
hr,
|
|
4488
4489
|
gr,
|
|
4489
4490
|
_r,
|
|
4490
|
-
vr
|
|
4491
|
-
|
|
4492
|
-
]), xr = e.object({
|
|
4491
|
+
vr
|
|
4492
|
+
]), br = e.object({
|
|
4493
4493
|
id: e.string(),
|
|
4494
4494
|
type: e.literal("STEP"),
|
|
4495
|
-
coordinates:
|
|
4495
|
+
coordinates: G,
|
|
4496
4496
|
alias: e.string().optional(),
|
|
4497
4497
|
config: e.object({
|
|
4498
|
-
components: e.array(
|
|
4498
|
+
components: e.array(yr),
|
|
4499
4499
|
next_node: e.string()
|
|
4500
4500
|
}).passthrough()
|
|
4501
|
-
}),
|
|
4501
|
+
}), xr = e.object({
|
|
4502
4502
|
id: e.string(),
|
|
4503
4503
|
type: e.literal("FLOW"),
|
|
4504
|
-
coordinates:
|
|
4504
|
+
coordinates: G,
|
|
4505
4505
|
alias: e.string().optional(),
|
|
4506
4506
|
config: e.object({
|
|
4507
4507
|
flow_id: e.string(),
|
|
4508
4508
|
next_node: e.string()
|
|
4509
4509
|
})
|
|
4510
|
-
}),
|
|
4510
|
+
}), Sr = e.object({
|
|
4511
4511
|
id: e.string(),
|
|
4512
4512
|
type: e.literal("ACTION"),
|
|
4513
|
-
coordinates:
|
|
4513
|
+
coordinates: G,
|
|
4514
4514
|
alias: e.string().optional(),
|
|
4515
4515
|
config: e.object({
|
|
4516
4516
|
action_type: e.enum(["REDIRECT"]).openapi({ description: "The type of action to perform" }),
|
|
@@ -4522,29 +4522,29 @@ var W = e.object({
|
|
|
4522
4522
|
custom_url: e.string().optional().openapi({ description: "Custom URL when target is 'custom'" }),
|
|
4523
4523
|
next_node: e.string().openapi({ description: "The next node to navigate to after action (for non-redirect actions)" })
|
|
4524
4524
|
}).passthrough()
|
|
4525
|
-
}),
|
|
4525
|
+
}), Cr = e.object({
|
|
4526
4526
|
id: e.string(),
|
|
4527
4527
|
type: e.string(),
|
|
4528
|
-
coordinates:
|
|
4529
|
-
}).passthrough(),
|
|
4528
|
+
coordinates: G
|
|
4529
|
+
}).passthrough(), wr = e.union([
|
|
4530
|
+
br,
|
|
4530
4531
|
xr,
|
|
4531
4532
|
Sr,
|
|
4532
|
-
Cr
|
|
4533
|
-
|
|
4534
|
-
]), Er = e.object({
|
|
4533
|
+
Cr
|
|
4534
|
+
]), Tr = e.object({
|
|
4535
4535
|
next_node: e.string(),
|
|
4536
|
-
coordinates:
|
|
4537
|
-
}).passthrough(),
|
|
4536
|
+
coordinates: G
|
|
4537
|
+
}).passthrough(), Er = e.object({
|
|
4538
4538
|
resume_flow: e.boolean().optional(),
|
|
4539
|
-
coordinates:
|
|
4539
|
+
coordinates: G
|
|
4540
4540
|
}).passthrough();
|
|
4541
4541
|
e.object({
|
|
4542
4542
|
id: e.string(),
|
|
4543
4543
|
name: e.string(),
|
|
4544
4544
|
languages: e.object({ primary: e.string() }).passthrough(),
|
|
4545
|
-
nodes: e.array(
|
|
4546
|
-
start:
|
|
4547
|
-
ending:
|
|
4545
|
+
nodes: e.array(wr),
|
|
4546
|
+
start: Tr,
|
|
4547
|
+
ending: Er,
|
|
4548
4548
|
created_at: e.string(),
|
|
4549
4549
|
updated_at: e.string(),
|
|
4550
4550
|
links: e.object({
|
|
@@ -4556,24 +4556,24 @@ e.object({
|
|
|
4556
4556
|
created_at: !0,
|
|
4557
4557
|
updated_at: !0
|
|
4558
4558
|
});
|
|
4559
|
-
var
|
|
4559
|
+
var Dr = /* @__PURE__ */ function(e) {
|
|
4560
4560
|
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;
|
|
4561
|
-
}({}),
|
|
4561
|
+
}({}), Or = /* @__PURE__ */ function(e) {
|
|
4562
4562
|
return e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e;
|
|
4563
|
-
}({}),
|
|
4563
|
+
}({}), kr = /* @__PURE__ */ function(e) {
|
|
4564
4564
|
return e.S256 = "S256", e.Plain = "plain", e;
|
|
4565
|
-
}({}),
|
|
4565
|
+
}({}), Ar = e.union([e.null(), e.object({
|
|
4566
4566
|
essential: e.boolean().optional(),
|
|
4567
4567
|
value: e.unknown().optional(),
|
|
4568
4568
|
values: e.array(e.unknown()).optional()
|
|
4569
|
-
})]).nullable(),
|
|
4570
|
-
userinfo: e.record(e.string(),
|
|
4571
|
-
id_token: e.record(e.string(),
|
|
4572
|
-
}),
|
|
4569
|
+
})]).nullable(), jr = e.object({
|
|
4570
|
+
userinfo: e.record(e.string(), Ar).optional(),
|
|
4571
|
+
id_token: e.record(e.string(), Ar).optional()
|
|
4572
|
+
}), Mr = e.object({
|
|
4573
4573
|
client_id: e.string(),
|
|
4574
4574
|
act_as: e.string().optional(),
|
|
4575
|
-
response_type: e.nativeEnum(
|
|
4576
|
-
response_mode: e.nativeEnum(
|
|
4575
|
+
response_type: e.nativeEnum(Dr).optional(),
|
|
4576
|
+
response_mode: e.nativeEnum(Or).optional(),
|
|
4577
4577
|
redirect_uri: e.string().optional(),
|
|
4578
4578
|
audience: e.string().optional(),
|
|
4579
4579
|
organization: e.string().optional(),
|
|
@@ -4581,17 +4581,17 @@ var Or = /* @__PURE__ */ function(e) {
|
|
|
4581
4581
|
nonce: e.string().optional(),
|
|
4582
4582
|
scope: e.string().optional(),
|
|
4583
4583
|
prompt: e.string().optional(),
|
|
4584
|
-
code_challenge_method: e.nativeEnum(
|
|
4584
|
+
code_challenge_method: e.nativeEnum(kr).optional(),
|
|
4585
4585
|
code_challenge: e.string().optional(),
|
|
4586
4586
|
username: e.string().optional(),
|
|
4587
4587
|
ui_locales: e.string().optional(),
|
|
4588
4588
|
max_age: e.number().optional(),
|
|
4589
4589
|
acr_values: e.string().optional(),
|
|
4590
|
-
claims:
|
|
4590
|
+
claims: jr.optional(),
|
|
4591
4591
|
vendor_id: e.string().optional()
|
|
4592
4592
|
});
|
|
4593
4593
|
e.object({
|
|
4594
|
-
...
|
|
4594
|
+
...W,
|
|
4595
4595
|
colors: e.object({
|
|
4596
4596
|
primary: e.string(),
|
|
4597
4597
|
page_background: e.union([e.string(), e.object({
|
|
@@ -4611,7 +4611,7 @@ e.object({
|
|
|
4611
4611
|
"auto"
|
|
4612
4612
|
]).optional()
|
|
4613
4613
|
});
|
|
4614
|
-
var
|
|
4614
|
+
var Nr = e.enum([
|
|
4615
4615
|
"password_reset",
|
|
4616
4616
|
"email_verification",
|
|
4617
4617
|
"otp",
|
|
@@ -4626,7 +4626,7 @@ e.object({
|
|
|
4626
4626
|
code_id: e.string().openapi({ description: "The code that will be used in for instance an email verification flow" }),
|
|
4627
4627
|
login_id: e.string().optional().openapi({ description: "The id of the login session that the code is connected to" }),
|
|
4628
4628
|
connection_id: e.string().optional().openapi({ description: "The connection that the code is connected to" }),
|
|
4629
|
-
code_type:
|
|
4629
|
+
code_type: Nr,
|
|
4630
4630
|
code_verifier: e.string().optional().openapi({ description: "The code verifier used in PKCE in outbound flows" }),
|
|
4631
4631
|
code_challenge: e.string().optional().openapi({ description: "The code challenge used in PKCE in outbound flows" }),
|
|
4632
4632
|
code_challenge_method: e.enum(["plain", "S256"]).optional().openapi({ description: "The code challenge method used in PKCE in outbound flows" }),
|
|
@@ -4656,7 +4656,7 @@ e.object({
|
|
|
4656
4656
|
interval: e.number().int().positive(),
|
|
4657
4657
|
version: e.number().int().nonnegative()
|
|
4658
4658
|
});
|
|
4659
|
-
var
|
|
4659
|
+
var Pr = e.object({
|
|
4660
4660
|
kid: e.string().optional(),
|
|
4661
4661
|
team_id: e.string().optional(),
|
|
4662
4662
|
realms: e.string().optional(),
|
|
@@ -4776,38 +4776,38 @@ var Fr = e.object({
|
|
|
4776
4776
|
"never_on_login"
|
|
4777
4777
|
]).optional()
|
|
4778
4778
|
});
|
|
4779
|
-
function
|
|
4779
|
+
function Fr(e) {
|
|
4780
4780
|
if (e !== null) {
|
|
4781
|
-
if (Array.isArray(e)) return e.filter((e) => e !== null).map(
|
|
4781
|
+
if (Array.isArray(e)) return e.filter((e) => e !== null).map(Fr);
|
|
4782
4782
|
if (e && typeof e == "object") {
|
|
4783
4783
|
let t = {};
|
|
4784
|
-
for (let [n, r] of Object.entries(e)) r !== null && (t[n] =
|
|
4784
|
+
for (let [n, r] of Object.entries(e)) r !== null && (t[n] = Fr(r));
|
|
4785
4785
|
return t;
|
|
4786
4786
|
}
|
|
4787
4787
|
return e;
|
|
4788
4788
|
}
|
|
4789
4789
|
}
|
|
4790
|
-
var
|
|
4790
|
+
var Ir = e.object({
|
|
4791
4791
|
id: e.string().optional(),
|
|
4792
4792
|
name: e.string(),
|
|
4793
4793
|
display_name: e.string().optional(),
|
|
4794
4794
|
strategy: e.string(),
|
|
4795
|
-
options: e.preprocess((e) => e === null ? {} :
|
|
4795
|
+
options: e.preprocess((e) => e === null ? {} : Fr(e), Pr).default({}),
|
|
4796
4796
|
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
4797
|
-
response_type: e.nativeEnum(
|
|
4798
|
-
response_mode: e.nativeEnum(
|
|
4797
|
+
response_type: e.nativeEnum(Dr).optional(),
|
|
4798
|
+
response_mode: e.nativeEnum(Or).optional(),
|
|
4799
4799
|
is_domain_connection: e.boolean().optional(),
|
|
4800
4800
|
show_as_button: e.boolean().optional(),
|
|
4801
4801
|
metadata: e.record(e.string(), e.any()).optional(),
|
|
4802
4802
|
is_system: e.boolean().optional(),
|
|
4803
|
-
...
|
|
4803
|
+
...W
|
|
4804
4804
|
});
|
|
4805
4805
|
e.object({
|
|
4806
4806
|
id: e.string(),
|
|
4807
4807
|
created_at: e.string().transform((e) => e === null ? "" : e),
|
|
4808
4808
|
updated_at: e.string().transform((e) => e === null ? "" : e)
|
|
4809
|
-
}).extend(
|
|
4810
|
-
var
|
|
4809
|
+
}).extend(Ir.shape);
|
|
4810
|
+
var Lr = e.object({
|
|
4811
4811
|
domain: e.string(),
|
|
4812
4812
|
custom_domain_id: e.string().optional(),
|
|
4813
4813
|
type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
@@ -4821,7 +4821,7 @@ var Rr = e.object({
|
|
|
4821
4821
|
"null"
|
|
4822
4822
|
]).optional(),
|
|
4823
4823
|
domain_metadata: e.record(e.string(), e.string().max(255)).optional()
|
|
4824
|
-
}),
|
|
4824
|
+
}), Rr = e.discriminatedUnion("name", [e.object({
|
|
4825
4825
|
name: e.literal("txt"),
|
|
4826
4826
|
record: e.string(),
|
|
4827
4827
|
domain: e.string()
|
|
@@ -4829,7 +4829,7 @@ var Rr = e.object({
|
|
|
4829
4829
|
name: e.literal("http"),
|
|
4830
4830
|
http_body: e.string(),
|
|
4831
4831
|
http_url: e.string()
|
|
4832
|
-
})]),
|
|
4832
|
+
})]), zr = Lr.extend({
|
|
4833
4833
|
custom_domain_id: e.string(),
|
|
4834
4834
|
primary: e.boolean(),
|
|
4835
4835
|
status: e.enum([
|
|
@@ -4839,28 +4839,28 @@ var Rr = e.object({
|
|
|
4839
4839
|
"ready"
|
|
4840
4840
|
]),
|
|
4841
4841
|
origin_domain_name: e.string().optional(),
|
|
4842
|
-
verification: e.object({ methods: e.array(
|
|
4842
|
+
verification: e.object({ methods: e.array(Rr) }).optional(),
|
|
4843
4843
|
tls_policy: e.string().optional()
|
|
4844
4844
|
});
|
|
4845
|
-
|
|
4845
|
+
Lr.pick({
|
|
4846
4846
|
tls_policy: !0,
|
|
4847
4847
|
custom_client_ip_header: !0,
|
|
4848
4848
|
domain_metadata: !0
|
|
4849
|
-
}).strict(),
|
|
4849
|
+
}).strict(), zr.extend({ tenant_id: e.string() }), e.object({
|
|
4850
4850
|
certificate: e.string().regex(/^-----BEGIN CERTIFICATE-----[\s\S]+-----END CERTIFICATE-----\s*$/, "must be PEM-encoded; include the full certificate chain in leaf-first order"),
|
|
4851
4851
|
private_key: e.string().regex(/-----BEGIN (RSA |EC |ENCRYPTED )?PRIVATE KEY-----[\s\S]+-----END \1PRIVATE KEY-----\s*$/, "must be a PEM-encoded private key")
|
|
4852
4852
|
});
|
|
4853
|
-
var
|
|
4853
|
+
var Br = e.object({
|
|
4854
4854
|
id: e.string(),
|
|
4855
4855
|
order: e.number().optional(),
|
|
4856
4856
|
visible: e.boolean().optional().default(!0)
|
|
4857
|
-
}),
|
|
4857
|
+
}), q = Br.extend({ category: e.literal("BLOCK").optional() }), Vr = q.extend({
|
|
4858
4858
|
type: e.literal("DIVIDER"),
|
|
4859
4859
|
config: e.object({ text: e.string().optional() }).optional()
|
|
4860
|
-
}),
|
|
4860
|
+
}), Hr = q.extend({
|
|
4861
4861
|
type: e.literal("HTML"),
|
|
4862
4862
|
config: e.object({ content: e.string().optional() }).optional()
|
|
4863
|
-
}),
|
|
4863
|
+
}), Ur = q.extend({
|
|
4864
4864
|
type: e.literal("IMAGE"),
|
|
4865
4865
|
config: e.object({
|
|
4866
4866
|
src: e.string().optional(),
|
|
@@ -4868,47 +4868,47 @@ var Vr = e.object({
|
|
|
4868
4868
|
width: e.number().optional(),
|
|
4869
4869
|
height: e.number().optional()
|
|
4870
4870
|
}).optional()
|
|
4871
|
-
}),
|
|
4871
|
+
}), Wr = q.extend({
|
|
4872
4872
|
type: e.literal("JUMP_BUTTON"),
|
|
4873
4873
|
config: e.object({
|
|
4874
4874
|
text: e.string().optional(),
|
|
4875
4875
|
target_step: e.string().optional()
|
|
4876
4876
|
})
|
|
4877
|
-
}),
|
|
4877
|
+
}), Gr = q.extend({
|
|
4878
4878
|
type: e.literal("RESEND_BUTTON"),
|
|
4879
4879
|
config: e.object({
|
|
4880
4880
|
text: e.string().optional(),
|
|
4881
4881
|
resend_action: e.string().optional()
|
|
4882
4882
|
})
|
|
4883
|
-
}),
|
|
4883
|
+
}), Kr = q.extend({
|
|
4884
4884
|
type: e.literal("NEXT_BUTTON"),
|
|
4885
4885
|
config: e.object({
|
|
4886
4886
|
text: e.string().optional(),
|
|
4887
4887
|
variant: e.enum(["primary", "secondary"]).optional(),
|
|
4888
4888
|
skip_validation: e.boolean().optional()
|
|
4889
4889
|
})
|
|
4890
|
-
}),
|
|
4890
|
+
}), qr = q.extend({
|
|
4891
4891
|
type: e.literal("PREVIOUS_BUTTON"),
|
|
4892
4892
|
config: e.object({ text: e.string().optional() })
|
|
4893
|
-
}),
|
|
4893
|
+
}), Jr = q.extend({
|
|
4894
4894
|
type: e.literal("RICH_TEXT"),
|
|
4895
4895
|
config: e.object({ content: e.string().optional() }).optional()
|
|
4896
|
-
}),
|
|
4896
|
+
}), Yr = Br.extend({
|
|
4897
4897
|
category: e.literal("WIDGET").optional(),
|
|
4898
4898
|
label: e.string().min(1).optional(),
|
|
4899
4899
|
hint: e.string().min(1).max(500).optional(),
|
|
4900
4900
|
required: e.boolean().optional(),
|
|
4901
4901
|
sensitive: e.boolean().optional()
|
|
4902
|
-
}),
|
|
4902
|
+
}), Xr = Yr.extend({
|
|
4903
4903
|
type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
|
|
4904
4904
|
config: e.object({ credential_type: e.string().optional() })
|
|
4905
|
-
}),
|
|
4905
|
+
}), Zr = Yr.extend({
|
|
4906
4906
|
type: e.literal("GMAPS_ADDRESS"),
|
|
4907
4907
|
config: e.object({ api_key: e.string().optional() })
|
|
4908
|
-
}),
|
|
4908
|
+
}), Qr = Yr.extend({
|
|
4909
4909
|
type: e.literal("RECAPTCHA"),
|
|
4910
4910
|
config: e.object({ site_key: e.string().optional() })
|
|
4911
|
-
}),
|
|
4911
|
+
}), J = Br.extend({
|
|
4912
4912
|
category: e.literal("FIELD").optional(),
|
|
4913
4913
|
label: e.string().min(1).optional(),
|
|
4914
4914
|
hint: e.string().min(1).max(500).optional(),
|
|
@@ -4924,10 +4924,10 @@ var Vr = e.object({
|
|
|
4924
4924
|
})).optional(),
|
|
4925
4925
|
required: e.boolean().optional(),
|
|
4926
4926
|
sensitive: e.boolean().optional()
|
|
4927
|
-
}),
|
|
4927
|
+
}), $r = J.extend({
|
|
4928
4928
|
type: e.literal("BOOLEAN"),
|
|
4929
4929
|
config: e.object({ default_value: e.boolean().optional() }).optional()
|
|
4930
|
-
}),
|
|
4930
|
+
}), ei = J.extend({
|
|
4931
4931
|
type: e.literal("CARDS"),
|
|
4932
4932
|
config: e.object({
|
|
4933
4933
|
options: e.array(e.object({
|
|
@@ -4938,7 +4938,7 @@ var Vr = e.object({
|
|
|
4938
4938
|
})).optional(),
|
|
4939
4939
|
multi_select: e.boolean().optional()
|
|
4940
4940
|
}).optional()
|
|
4941
|
-
}),
|
|
4941
|
+
}), ti = J.extend({
|
|
4942
4942
|
type: e.literal("CHOICE"),
|
|
4943
4943
|
config: e.object({
|
|
4944
4944
|
options: e.array(e.object({
|
|
@@ -4949,7 +4949,7 @@ var Vr = e.object({
|
|
|
4949
4949
|
multiple: e.boolean().optional(),
|
|
4950
4950
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
4951
4951
|
}).optional()
|
|
4952
|
-
}),
|
|
4952
|
+
}), ni = J.extend({
|
|
4953
4953
|
type: e.literal("CODE"),
|
|
4954
4954
|
config: e.object({
|
|
4955
4955
|
length: e.number().int().positive().max(100).optional(),
|
|
@@ -4966,7 +4966,7 @@ var Vr = e.object({
|
|
|
4966
4966
|
message: "default_value is longer than the configured length",
|
|
4967
4967
|
path: ["default_value"]
|
|
4968
4968
|
}).optional()
|
|
4969
|
-
}),
|
|
4969
|
+
}), ri = J.extend({
|
|
4970
4970
|
type: e.literal("CUSTOM"),
|
|
4971
4971
|
config: e.object({
|
|
4972
4972
|
component: e.string().optional(),
|
|
@@ -4974,7 +4974,7 @@ var Vr = e.object({
|
|
|
4974
4974
|
schema: e.record(e.string(), e.any()).optional(),
|
|
4975
4975
|
code: e.string().optional()
|
|
4976
4976
|
})
|
|
4977
|
-
}),
|
|
4977
|
+
}), ii = J.extend({
|
|
4978
4978
|
type: e.literal("DATE"),
|
|
4979
4979
|
config: e.object({
|
|
4980
4980
|
format: e.string().optional(),
|
|
@@ -4982,7 +4982,7 @@ var Vr = e.object({
|
|
|
4982
4982
|
max: e.string().optional(),
|
|
4983
4983
|
default_value: e.string().optional()
|
|
4984
4984
|
}).optional()
|
|
4985
|
-
}),
|
|
4985
|
+
}), ai = J.extend({
|
|
4986
4986
|
type: e.literal("DROPDOWN"),
|
|
4987
4987
|
config: e.object({
|
|
4988
4988
|
options: e.array(e.object({
|
|
@@ -4994,7 +4994,7 @@ var Vr = e.object({
|
|
|
4994
4994
|
multiple: e.boolean().optional(),
|
|
4995
4995
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
4996
4996
|
}).optional()
|
|
4997
|
-
}),
|
|
4997
|
+
}), oi = J.extend({
|
|
4998
4998
|
type: e.literal("EMAIL"),
|
|
4999
4999
|
config: e.object({
|
|
5000
5000
|
placeholder: e.string().optional(),
|
|
@@ -5002,20 +5002,20 @@ var Vr = e.object({
|
|
|
5002
5002
|
last_used: e.boolean().optional(),
|
|
5003
5003
|
last_used_label: e.string().optional()
|
|
5004
5004
|
}).optional()
|
|
5005
|
-
}),
|
|
5005
|
+
}), si = J.extend({
|
|
5006
5006
|
type: e.literal("FILE"),
|
|
5007
5007
|
config: e.object({
|
|
5008
5008
|
accept: e.string().optional(),
|
|
5009
5009
|
max_size: e.number().optional(),
|
|
5010
5010
|
multiple: e.boolean().optional()
|
|
5011
5011
|
}).optional()
|
|
5012
|
-
}),
|
|
5012
|
+
}), ci = J.extend({
|
|
5013
5013
|
type: e.literal("LEGAL"),
|
|
5014
5014
|
config: e.object({
|
|
5015
5015
|
text: e.string(),
|
|
5016
5016
|
html: e.boolean().optional()
|
|
5017
5017
|
}).optional()
|
|
5018
|
-
}),
|
|
5018
|
+
}), li = J.extend({
|
|
5019
5019
|
type: e.literal("NUMBER"),
|
|
5020
5020
|
config: e.object({
|
|
5021
5021
|
placeholder: e.string().optional(),
|
|
@@ -5024,7 +5024,7 @@ var Vr = e.object({
|
|
|
5024
5024
|
step: e.number().optional(),
|
|
5025
5025
|
default_value: e.string().optional()
|
|
5026
5026
|
}).optional()
|
|
5027
|
-
}),
|
|
5027
|
+
}), ui = J.extend({
|
|
5028
5028
|
type: e.literal("PASSWORD"),
|
|
5029
5029
|
config: e.object({
|
|
5030
5030
|
placeholder: e.string().optional(),
|
|
@@ -5033,13 +5033,13 @@ var Vr = e.object({
|
|
|
5033
5033
|
forgot_password_link: e.string().optional(),
|
|
5034
5034
|
default_value: e.string().optional()
|
|
5035
5035
|
}).optional()
|
|
5036
|
-
}),
|
|
5036
|
+
}), di = J.extend({
|
|
5037
5037
|
type: e.literal("PAYMENT"),
|
|
5038
5038
|
config: e.object({
|
|
5039
5039
|
provider: e.string().optional(),
|
|
5040
5040
|
currency: e.string().optional()
|
|
5041
5041
|
}).optional()
|
|
5042
|
-
}),
|
|
5042
|
+
}), fi = J.extend({
|
|
5043
5043
|
type: e.literal("SOCIAL"),
|
|
5044
5044
|
config: e.object({
|
|
5045
5045
|
providers: e.array(e.string()).optional(),
|
|
@@ -5054,7 +5054,7 @@ var Vr = e.object({
|
|
|
5054
5054
|
last_used_label: e.string().optional()
|
|
5055
5055
|
})).optional()
|
|
5056
5056
|
}).optional()
|
|
5057
|
-
}),
|
|
5057
|
+
}), pi = J.extend({
|
|
5058
5058
|
type: e.literal("TEL"),
|
|
5059
5059
|
config: e.object({
|
|
5060
5060
|
placeholder: e.string().optional(),
|
|
@@ -5062,7 +5062,7 @@ var Vr = e.object({
|
|
|
5062
5062
|
default_value: e.string().optional(),
|
|
5063
5063
|
allow_email: e.boolean().optional()
|
|
5064
5064
|
}).optional()
|
|
5065
|
-
}),
|
|
5065
|
+
}), mi = J.extend({
|
|
5066
5066
|
type: e.literal("TEXT"),
|
|
5067
5067
|
config: e.object({
|
|
5068
5068
|
placeholder: e.string().optional(),
|
|
@@ -5072,37 +5072,38 @@ var Vr = e.object({
|
|
|
5072
5072
|
last_used: e.boolean().optional(),
|
|
5073
5073
|
last_used_label: e.string().optional()
|
|
5074
5074
|
}).optional()
|
|
5075
|
-
}),
|
|
5075
|
+
}), hi = J.extend({
|
|
5076
5076
|
type: e.literal("COUNTRY"),
|
|
5077
5077
|
config: e.object({
|
|
5078
5078
|
placeholder: e.string().optional(),
|
|
5079
5079
|
default_value: e.string().optional()
|
|
5080
5080
|
}).optional()
|
|
5081
|
-
}),
|
|
5081
|
+
}), gi = J.extend({
|
|
5082
5082
|
type: e.literal("URL"),
|
|
5083
5083
|
config: e.object({
|
|
5084
5084
|
placeholder: e.string().optional(),
|
|
5085
5085
|
default_value: e.string().optional()
|
|
5086
5086
|
}).optional()
|
|
5087
|
-
}),
|
|
5087
|
+
}), _i = e.discriminatedUnion("type", [
|
|
5088
|
+
Vr,
|
|
5088
5089
|
Hr,
|
|
5089
5090
|
Ur,
|
|
5090
5091
|
Wr,
|
|
5091
5092
|
Gr,
|
|
5092
5093
|
Kr,
|
|
5093
5094
|
qr,
|
|
5094
|
-
Jr
|
|
5095
|
-
|
|
5096
|
-
|
|
5095
|
+
Jr
|
|
5096
|
+
]), vi = e.discriminatedUnion("type", [
|
|
5097
|
+
Xr,
|
|
5097
5098
|
Zr,
|
|
5098
|
-
Qr
|
|
5099
|
-
|
|
5100
|
-
|
|
5099
|
+
Qr
|
|
5100
|
+
]), yi = e.discriminatedUnion("type", [
|
|
5101
|
+
$r,
|
|
5101
5102
|
ei,
|
|
5102
5103
|
ti,
|
|
5103
5104
|
ni,
|
|
5105
|
+
hi,
|
|
5104
5106
|
ri,
|
|
5105
|
-
gi,
|
|
5106
5107
|
ii,
|
|
5107
5108
|
ai,
|
|
5108
5109
|
oi,
|
|
@@ -5114,12 +5115,11 @@ var Vr = e.object({
|
|
|
5114
5115
|
fi,
|
|
5115
5116
|
pi,
|
|
5116
5117
|
mi,
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5118
|
+
gi
|
|
5119
|
+
]), bi = e.union([
|
|
5120
|
+
_i,
|
|
5120
5121
|
vi,
|
|
5121
|
-
yi
|
|
5122
|
-
bi
|
|
5122
|
+
yi
|
|
5123
5123
|
]);
|
|
5124
5124
|
new Set([
|
|
5125
5125
|
"BOOLEAN",
|
|
@@ -5146,22 +5146,22 @@ new Set([
|
|
|
5146
5146
|
visible: e.boolean().optional().default(!0),
|
|
5147
5147
|
customizations: e.record(e.string(), e.any()).optional()
|
|
5148
5148
|
});
|
|
5149
|
-
var
|
|
5149
|
+
var Y = e.object({
|
|
5150
5150
|
x: e.number(),
|
|
5151
5151
|
y: e.number()
|
|
5152
|
-
}),
|
|
5152
|
+
}), xi = e.object({
|
|
5153
5153
|
id: e.string(),
|
|
5154
5154
|
type: e.literal("FLOW"),
|
|
5155
|
-
coordinates:
|
|
5155
|
+
coordinates: Y,
|
|
5156
5156
|
alias: e.string().min(1).max(150).optional(),
|
|
5157
5157
|
config: e.object({
|
|
5158
5158
|
flow_id: e.string().max(30),
|
|
5159
5159
|
next_node: e.string().optional()
|
|
5160
5160
|
})
|
|
5161
|
-
}),
|
|
5161
|
+
}), Si = e.object({
|
|
5162
5162
|
id: e.string(),
|
|
5163
5163
|
type: e.literal("ROUTER"),
|
|
5164
|
-
coordinates:
|
|
5164
|
+
coordinates: Y,
|
|
5165
5165
|
alias: e.string().min(1).max(150),
|
|
5166
5166
|
config: e.object({
|
|
5167
5167
|
rules: e.array(e.object({
|
|
@@ -5172,20 +5172,20 @@ var J = e.object({
|
|
|
5172
5172
|
})),
|
|
5173
5173
|
fallback: e.string()
|
|
5174
5174
|
})
|
|
5175
|
-
}),
|
|
5175
|
+
}), Ci = e.object({
|
|
5176
5176
|
id: e.string(),
|
|
5177
5177
|
type: e.literal("STEP"),
|
|
5178
|
-
coordinates:
|
|
5178
|
+
coordinates: Y,
|
|
5179
5179
|
alias: e.string().min(1).max(150).optional(),
|
|
5180
5180
|
config: e.object({
|
|
5181
|
-
components: e.array(
|
|
5181
|
+
components: e.array(bi),
|
|
5182
5182
|
next_node: e.string().optional()
|
|
5183
5183
|
})
|
|
5184
|
-
}),
|
|
5184
|
+
}), wi = e.discriminatedUnion("type", [
|
|
5185
|
+
xi,
|
|
5185
5186
|
Si,
|
|
5186
|
-
Ci
|
|
5187
|
-
|
|
5188
|
-
]), Ei = e.object({
|
|
5187
|
+
Ci
|
|
5188
|
+
]), Ti = e.object({
|
|
5189
5189
|
name: e.string().openapi({ description: "The name of the form" }),
|
|
5190
5190
|
messages: e.object({
|
|
5191
5191
|
errors: e.record(e.string(), e.any()).optional(),
|
|
@@ -5196,14 +5196,14 @@ var J = e.object({
|
|
|
5196
5196
|
default: e.string().optional()
|
|
5197
5197
|
}).optional(),
|
|
5198
5198
|
translations: e.record(e.string(), e.any()).optional(),
|
|
5199
|
-
nodes: e.array(
|
|
5199
|
+
nodes: e.array(wi).optional(),
|
|
5200
5200
|
start: e.object({
|
|
5201
5201
|
hidden_fields: e.array(e.object({
|
|
5202
5202
|
key: e.string(),
|
|
5203
5203
|
value: e.string()
|
|
5204
5204
|
})).optional(),
|
|
5205
5205
|
next_node: e.string().optional(),
|
|
5206
|
-
coordinates:
|
|
5206
|
+
coordinates: Y.optional()
|
|
5207
5207
|
}).optional(),
|
|
5208
5208
|
ending: e.object({
|
|
5209
5209
|
redirection: e.object({
|
|
@@ -5211,7 +5211,7 @@ var J = e.object({
|
|
|
5211
5211
|
target: e.string().optional()
|
|
5212
5212
|
}).optional(),
|
|
5213
5213
|
after_submit: e.object({ flow_id: e.string().optional() }).optional(),
|
|
5214
|
-
coordinates:
|
|
5214
|
+
coordinates: Y.optional(),
|
|
5215
5215
|
resume_flow: e.boolean().optional()
|
|
5216
5216
|
}).optional(),
|
|
5217
5217
|
style: e.object({ css: e.string().optional() }).optional(),
|
|
@@ -5220,8 +5220,8 @@ var J = e.object({
|
|
|
5220
5220
|
sdk_src: e.string().optional()
|
|
5221
5221
|
}).optional()
|
|
5222
5222
|
}).openapi({ description: "Schema for flow-based forms (matches Auth0 Forms structure)" });
|
|
5223
|
-
|
|
5224
|
-
var
|
|
5223
|
+
U.extend(Ti.shape).extend({ id: e.string() });
|
|
5224
|
+
var Ei = e.object({
|
|
5225
5225
|
id: e.number().optional(),
|
|
5226
5226
|
text: e.string(),
|
|
5227
5227
|
type: e.enum([
|
|
@@ -5230,12 +5230,12 @@ var Di = e.object({
|
|
|
5230
5230
|
"success",
|
|
5231
5231
|
"warning"
|
|
5232
5232
|
])
|
|
5233
|
-
}),
|
|
5233
|
+
}), Di = e.object({
|
|
5234
5234
|
id: e.string().optional(),
|
|
5235
5235
|
text: e.string(),
|
|
5236
5236
|
href: e.string(),
|
|
5237
5237
|
linkText: e.string().optional()
|
|
5238
|
-
}),
|
|
5238
|
+
}), Oi = e.object({
|
|
5239
5239
|
"form-content-start": e.string().optional(),
|
|
5240
5240
|
"form-content-end": e.string().optional(),
|
|
5241
5241
|
"form-footer-start": e.string().optional(),
|
|
@@ -5249,13 +5249,13 @@ e.object({
|
|
|
5249
5249
|
method: e.enum(["POST", "GET"]),
|
|
5250
5250
|
title: e.string().optional(),
|
|
5251
5251
|
description: e.string().optional(),
|
|
5252
|
-
components: e.array(
|
|
5253
|
-
messages: e.array(
|
|
5254
|
-
links: e.array(
|
|
5255
|
-
partials:
|
|
5252
|
+
components: e.array(bi),
|
|
5253
|
+
messages: e.array(Ei).optional(),
|
|
5254
|
+
links: e.array(Di).optional(),
|
|
5255
|
+
partials: Oi.optional(),
|
|
5256
5256
|
footer: e.string().optional()
|
|
5257
5257
|
});
|
|
5258
|
-
var
|
|
5258
|
+
var ki = e.enum([
|
|
5259
5259
|
"pre-user-registration",
|
|
5260
5260
|
"post-user-registration",
|
|
5261
5261
|
"post-user-login",
|
|
@@ -5263,12 +5263,12 @@ var Ai = e.enum([
|
|
|
5263
5263
|
"validate-registration-username",
|
|
5264
5264
|
"pre-user-deletion",
|
|
5265
5265
|
"post-user-deletion"
|
|
5266
|
-
]),
|
|
5266
|
+
]), Ai = e.enum(["post-user-login"]), ji = e.enum([
|
|
5267
5267
|
"post-user-login",
|
|
5268
5268
|
"post-user-registration",
|
|
5269
5269
|
"post-user-update",
|
|
5270
5270
|
"credentials-exchange"
|
|
5271
|
-
]),
|
|
5271
|
+
]), Mi = e.enum([
|
|
5272
5272
|
"validate-registration-username",
|
|
5273
5273
|
"post-user-login",
|
|
5274
5274
|
"credentials-exchange",
|
|
@@ -5278,98 +5278,98 @@ var Ai = e.enum([
|
|
|
5278
5278
|
"post-user-update",
|
|
5279
5279
|
"pre-user-deletion",
|
|
5280
5280
|
"post-user-deletion"
|
|
5281
|
-
]),
|
|
5282
|
-
Ai.options, ji.options, Mi.options, Ni.options
|
|
5283
|
-
var
|
|
5281
|
+
]), Ni = e.enum(["post-user-login"]);
|
|
5282
|
+
ki.options, Ai.options, ji.options, Mi.options, Ni.options;
|
|
5283
|
+
var Pi = e.enum(["impersonate"]), Fi = e.enum([
|
|
5284
5284
|
"ensure-username",
|
|
5285
5285
|
"set-preferred-username",
|
|
5286
5286
|
"account-linking"
|
|
5287
|
-
]),
|
|
5287
|
+
]), X = {
|
|
5288
5288
|
enabled: e.boolean().default(!1),
|
|
5289
5289
|
synchronous: e.boolean().default(!1),
|
|
5290
5290
|
priority: e.number().optional(),
|
|
5291
5291
|
hook_id: e.string().optional(),
|
|
5292
5292
|
metadata: e.record(e.string(), e.unknown()).optional(),
|
|
5293
|
-
...
|
|
5294
|
-
},
|
|
5295
|
-
...
|
|
5296
|
-
trigger_id:
|
|
5293
|
+
...W
|
|
5294
|
+
}, Ii = e.object({
|
|
5295
|
+
...X,
|
|
5296
|
+
trigger_id: ki,
|
|
5297
5297
|
url: e.string()
|
|
5298
|
+
}), Li = e.object({
|
|
5299
|
+
...X,
|
|
5300
|
+
trigger_id: Ai,
|
|
5301
|
+
form_id: e.string()
|
|
5298
5302
|
}), Ri = e.object({
|
|
5299
|
-
...
|
|
5303
|
+
...X,
|
|
5300
5304
|
trigger_id: ji,
|
|
5301
|
-
|
|
5305
|
+
template_id: Fi
|
|
5302
5306
|
}), zi = e.object({
|
|
5303
|
-
...
|
|
5307
|
+
...X,
|
|
5304
5308
|
trigger_id: Mi,
|
|
5305
|
-
|
|
5309
|
+
code_id: e.string()
|
|
5306
5310
|
}), Bi = e.object({
|
|
5307
|
-
...
|
|
5311
|
+
...X,
|
|
5308
5312
|
trigger_id: Ni,
|
|
5309
|
-
|
|
5310
|
-
}), Vi = e.object({
|
|
5311
|
-
...Y,
|
|
5312
|
-
trigger_id: Pi,
|
|
5313
|
-
page_id: Fi,
|
|
5313
|
+
page_id: Pi,
|
|
5314
5314
|
permission_required: e.string().optional()
|
|
5315
5315
|
});
|
|
5316
5316
|
e.union([
|
|
5317
|
+
Ii,
|
|
5317
5318
|
Li,
|
|
5318
5319
|
Ri,
|
|
5319
5320
|
zi,
|
|
5320
|
-
Bi
|
|
5321
|
-
Vi
|
|
5321
|
+
Bi
|
|
5322
5322
|
]);
|
|
5323
|
-
var
|
|
5324
|
-
...
|
|
5325
|
-
trigger_id:
|
|
5326
|
-
}).extend(
|
|
5323
|
+
var Vi = e.object({
|
|
5324
|
+
...X,
|
|
5325
|
+
trigger_id: ki
|
|
5326
|
+
}).extend(U.shape).extend({
|
|
5327
5327
|
hook_id: e.string(),
|
|
5328
5328
|
url: e.string()
|
|
5329
|
+
}), Hi = e.object({
|
|
5330
|
+
...X,
|
|
5331
|
+
trigger_id: Ai
|
|
5332
|
+
}).extend(U.shape).extend({
|
|
5333
|
+
hook_id: e.string(),
|
|
5334
|
+
form_id: e.string()
|
|
5329
5335
|
}), Ui = e.object({
|
|
5330
|
-
...
|
|
5336
|
+
...X,
|
|
5331
5337
|
trigger_id: ji
|
|
5332
|
-
}).extend(
|
|
5338
|
+
}).extend(U.shape).extend({
|
|
5333
5339
|
hook_id: e.string(),
|
|
5334
|
-
|
|
5340
|
+
template_id: Fi
|
|
5335
5341
|
}), Wi = e.object({
|
|
5336
|
-
...
|
|
5342
|
+
...X,
|
|
5337
5343
|
trigger_id: Mi
|
|
5338
|
-
}).extend(
|
|
5344
|
+
}).extend(U.shape).extend({
|
|
5339
5345
|
hook_id: e.string(),
|
|
5340
|
-
|
|
5346
|
+
code_id: e.string()
|
|
5341
5347
|
}), Gi = e.object({
|
|
5342
|
-
...
|
|
5348
|
+
...X,
|
|
5343
5349
|
trigger_id: Ni
|
|
5344
|
-
}).extend(
|
|
5345
|
-
hook_id: e.string(),
|
|
5346
|
-
code_id: e.string()
|
|
5347
|
-
}), Ki = e.object({
|
|
5348
|
-
...Y,
|
|
5349
|
-
trigger_id: Pi
|
|
5350
|
-
}).extend(H.shape).extend({
|
|
5350
|
+
}).extend(U.shape).extend({
|
|
5351
5351
|
hook_id: e.string(),
|
|
5352
|
-
page_id:
|
|
5352
|
+
page_id: Pi,
|
|
5353
5353
|
permission_required: e.string().optional()
|
|
5354
5354
|
});
|
|
5355
5355
|
e.union([
|
|
5356
|
+
Vi,
|
|
5356
5357
|
Hi,
|
|
5357
5358
|
Ui,
|
|
5358
5359
|
Wi,
|
|
5359
|
-
Gi
|
|
5360
|
-
Ki
|
|
5360
|
+
Gi
|
|
5361
5361
|
]), e.object({
|
|
5362
5362
|
code: e.string().max(1e5),
|
|
5363
5363
|
secrets: e.record(e.string(), e.string()).optional()
|
|
5364
5364
|
}).extend({
|
|
5365
5365
|
id: e.string(),
|
|
5366
5366
|
tenant_id: e.string()
|
|
5367
|
-
}).extend(
|
|
5368
|
-
var
|
|
5367
|
+
}).extend(U.shape);
|
|
5368
|
+
var Ki = e.object({ name: e.string().optional() }), qi = e.object({ email: e.string().optional() }), Ji = e.object({
|
|
5369
5369
|
id: e.string().optional(),
|
|
5370
5370
|
organization_id: e.string().max(50),
|
|
5371
|
-
inviter:
|
|
5372
|
-
invitee:
|
|
5371
|
+
inviter: Ki,
|
|
5372
|
+
invitee: qi,
|
|
5373
5373
|
invitation_url: e.string().url(),
|
|
5374
5374
|
client_id: e.string(),
|
|
5375
5375
|
connection_id: e.string().optional(),
|
|
@@ -5385,8 +5385,8 @@ e.object({
|
|
|
5385
5385
|
created_at: e.string().datetime(),
|
|
5386
5386
|
expires_at: e.string().datetime(),
|
|
5387
5387
|
ticket_id: e.string().optional()
|
|
5388
|
-
}).extend(
|
|
5389
|
-
var
|
|
5388
|
+
}).extend(Ji.omit({ id: !0 }).shape);
|
|
5389
|
+
var Yi = e.object({
|
|
5390
5390
|
alg: e.enum([
|
|
5391
5391
|
"RS256",
|
|
5392
5392
|
"RS384",
|
|
@@ -5428,7 +5428,7 @@ var Xi = e.object({
|
|
|
5428
5428
|
path: [r],
|
|
5429
5429
|
message: `EC JWK is missing required member '${r}'`
|
|
5430
5430
|
});
|
|
5431
|
-
}),
|
|
5431
|
+
}), Xi = e.object({ keys: e.array(Yi) });
|
|
5432
5432
|
e.object({
|
|
5433
5433
|
issuer: e.string(),
|
|
5434
5434
|
authorization_endpoint: e.string(),
|
|
@@ -5457,35 +5457,35 @@ e.object({
|
|
|
5457
5457
|
backchannel_logout_supported: e.boolean().optional(),
|
|
5458
5458
|
backchannel_logout_session_supported: e.boolean().optional()
|
|
5459
5459
|
});
|
|
5460
|
-
var
|
|
5460
|
+
var Zi = /* @__PURE__ */ function(e) {
|
|
5461
5461
|
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;
|
|
5462
|
-
}({}),
|
|
5462
|
+
}({}), Qi = e.nativeEnum(Zi), $i = e.object({
|
|
5463
5463
|
strategy: e.string(),
|
|
5464
5464
|
strategy_type: e.string()
|
|
5465
5465
|
});
|
|
5466
5466
|
e.object({
|
|
5467
5467
|
csrf_token: e.string(),
|
|
5468
5468
|
auth0Client: e.string().optional(),
|
|
5469
|
-
authParams:
|
|
5469
|
+
authParams: Mr,
|
|
5470
5470
|
expires_at: e.string(),
|
|
5471
5471
|
deleted_at: e.string().optional(),
|
|
5472
5472
|
ip: e.string().optional(),
|
|
5473
5473
|
useragent: e.string().optional(),
|
|
5474
5474
|
session_id: e.string().optional(),
|
|
5475
5475
|
authorization_url: e.string().optional(),
|
|
5476
|
-
state:
|
|
5476
|
+
state: Qi.optional().default("pending"),
|
|
5477
5477
|
state_data: e.string().optional(),
|
|
5478
5478
|
failure_reason: e.string().optional(),
|
|
5479
5479
|
user_id: e.string().optional(),
|
|
5480
5480
|
auth_connection: e.string().optional(),
|
|
5481
|
-
auth_strategy:
|
|
5481
|
+
auth_strategy: $i.optional(),
|
|
5482
5482
|
authenticated_at: e.string().optional()
|
|
5483
5483
|
}).openapi({ description: "This represents a login sesion" }).extend({
|
|
5484
5484
|
id: e.string().openapi({ description: "This is is used as the state in the universal login" }),
|
|
5485
5485
|
created_at: e.string(),
|
|
5486
5486
|
updated_at: e.string()
|
|
5487
5487
|
});
|
|
5488
|
-
var
|
|
5488
|
+
var Z = {
|
|
5489
5489
|
ACLS_SUMMARY: "acls_summary",
|
|
5490
5490
|
ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
|
|
5491
5491
|
API_LIMIT: "api_limit",
|
|
@@ -5647,17 +5647,17 @@ var X = {
|
|
|
5647
5647
|
WARNING_DURING_LOGIN: "w",
|
|
5648
5648
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
5649
5649
|
WARNING_USER_MANAGEMENT: "wum"
|
|
5650
|
-
},
|
|
5651
|
-
|
|
5650
|
+
}, ea = e.string().refine((e) => Object.values(Z).includes(e), { message: "Invalid log type" });
|
|
5651
|
+
Z.ACLS_SUMMARY, Z.ACTIONS_EXECUTION_FAILED, Z.API_LIMIT, Z.API_LIMIT_WARNING, Z.APPI, Z.CIBA_EXCHANGE_FAILED, Z.CIBA_EXCHANGE_SUCCEEDED, Z.CIBA_START_FAILED, Z.CIBA_START_SUCCEEDED, Z.CODE_LINK_SENT, Z.CODE_SENT, Z.DEPRECATION_NOTICE, Z.CONFIG_INHERITANCE_DIFF, Z.CONFIG_DRIFT, Z.FAILED_LOGIN, Z.FAILED_BY_CONNECTOR, Z.FAILED_CHANGE_EMAIL, Z.FAILED_BY_CORS, Z.FAILED_CROSS_ORIGIN_AUTHENTICATION, Z.FAILED_CHANGE_PASSWORD, Z.FAILED_POST_CHANGE_PASSWORD_HOOK, Z.FAILED_CHANGE_PHONE_NUMBER, Z.FAILED_CHANGE_PASSWORD_REQUEST, Z.FAILED_CONNECTOR_PROVISIONING, Z.FAILED_CHANGE_USERNAME, Z.FAILED_DELEGATION, Z.FAILED_DEVICE_ACTIVATION, Z.FAILED_DEVICE_AUTHORIZATION_REQUEST, Z.USER_CANCELED_DEVICE_CONFIRMATION, Z.FAILED_USER_DELETION, Z.FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN, Z.FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS, Z.FAILED_EXCHANGE_CUSTOM_TOKEN, Z.FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN, Z.FAILED_FEDERATED_LOGOUT, Z.FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN, Z.FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN, Z.FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN, Z.FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN, Z.FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN, Z.FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN, Z.FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN, Z.FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN, Z.FAILED_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN, Z.FAILED_HOOK, Z.FAILED_IMPERSONATION, Z.FAILED_INVITE_ACCEPT, Z.FAILED_LOGOUT, Z.FLOWS_EXECUTION_COMPLETED, Z.FLOWS_EXECUTION_FAILED, Z.FAILED_SENDING_NOTIFICATION, Z.FORMS_SUBMISSION_FAILED, Z.FORMS_SUBMISSION_SUCCEEDED, Z.FAILED_LOGIN_INCORRECT_PASSWORD, Z.FAILED_PUSHED_AUTHORIZATION_REQUEST, Z.FAILED_POST_USER_REGISTRATION_HOOK, Z.FAILED_SIGNUP, Z.FAILED_SILENT_AUTH, Z.FAILED_LOGIN_INVALID_EMAIL_USERNAME, Z.FAILED_USERS_IMPORT, Z.FAILED_VERIFICATION_EMAIL, Z.FAILED_VERIFICATION_EMAIL_REQUEST, Z.EMAIL_VERIFICATION_CONFIRMED, Z.EMAIL_VERIFICATION_FAILED, Z.MFA_AUTH_FAILED, Z.MFA_AUTH_REJECTED, Z.MFA_AUTH_SUCCESS, Z.MFA_ENROLLMENT_COMPLETE, Z.TOO_MANY_MFA_FAILURES, Z.MFA_RECOVERY_FAILED, Z.MFA_RECOVERY_RATE_LIMIT_EXCEED, Z.MFA_RECOVERY_SUCCESS, Z.MFA_EMAIL_SENT, Z.EMAIL_VERIFICATION_SENT, Z.EMAIL_VERIFICATION_SEND_FAILURE, Z.PUSH_NOTIFICATION_SENT, Z.ERROR_SENDING_MFA_PUSH_NOTIFICATION, Z.MFA_SMS_SENT, Z.ERROR_SENDING_MFA_SMS, Z.MFA_VOICE_CALL_SUCCESS, Z.MFA_VOICE_CALL_FAILED, Z.SECOND_FACTOR_STARTED, Z.MFA_ENROLL_STARTED, Z.MFA_ENROLLMENT_FAILED, Z.GUARDIAN_TENANT_UPDATE, Z.UNENROLL_DEVICE_ACCOUNT, Z.UPDATE_DEVICE_ACCOUNT, Z.WEBAUTHN_CHALLENGE_FAILED, Z.WEBAUTHN_ENROLLMENT_FAILED, Z.FAILED_KMS_API_OPERATION, Z.SUCCESS_KMS_API_OPERATION, Z.KMS_KEY_STATE_CHANGED, Z.TOO_MANY_CALLS_TO_DELEGATION, Z.BLOCKED_IP_ADDRESS, Z.BLOCKED_ACCOUNT_IP, Z.BLOCKED_ACCOUNT_EMAIL, Z.INFORMATION, Z.MFA_REQUIRED, Z.MANAGEMENT_API_READ_OPERATION, Z.FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT, Z.SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT, Z.FAILED_OIDC_BACKCHANNEL_LOGOUT, Z.SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT, Z.ORGANIZATION_MEMBER_ADDED, Z.PASSKEY_CHALLENGE_FAILED, Z.PASSKEY_CHALLENGE_STARTED, Z.PRE_LOGIN_ASSESSMENT, Z.BREACHED_PASSWORD, Z.BREACHED_PASSWORD_ON_RESET, Z.SUCCESS_RESOURCE_CLEANUP, Z.RICH_CONSENTS_ACCESS_ERROR, Z.SUCCESS_LOGIN, Z.SUCCESS_API_OPERATION, Z.FAILED_API_OPERATION, Z.SUCCESS_CHANGE_EMAIL, Z.SUCCESS_CROSS_ORIGIN_AUTHENTICATION, Z.SUCCESS_CHANGE_PASSWORD, Z.SUCCESS_CHANGE_PHONE_NUMBER, Z.SUCCESS_CHANGE_PASSWORD_REQUEST, Z.SUCCESS_CHANGE_USERNAME, Z.SUCCESS_CREDENTIAL_VALIDATION, Z.SUCCESS_DELEGATION, Z.SUCCESS_USER_DELETION, Z.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN, Z.SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS, Z.SUCCESS_EXCHANGE_CUSTOM_TOKEN, Z.SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN, Z.SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN, Z.SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN, Z.SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN, Z.SUCCESS_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN, Z.SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN, Z.SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN, Z.SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN, Z.SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN, Z.SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN, Z.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN, Z.SUCCESS_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN, Z.SUCCESS_IMPERSONATION, Z.SUCCESSFULLY_ACCEPTED_USER_INVITE, Z.BREACHED_PASSWORD_ON_SIGNUP, Z.SUCCESS_LOGOUT, Z.SUCCESS_HOOK, Z.SUCCESS_PASSWORD_MIGRATION, Z.SUCCESS_REVOCATION, Z.SUCCESS_SIGNUP, Z.FAILED_SS_SSO_OPERATION, Z.INFORMATION_FROM_SS_SSO_OPERATION, Z.SUCCESS_SS_SSO_OPERATION, Z.SUCCESS_SILENT_AUTH, Z.SUCCESSFUL_SCIM_OPERATION, Z.SUCCESSFULLY_IMPORTED_USERS, Z.SUCCESS_VERIFICATION_EMAIL, Z.SUCCESS_VERIFICATION_EMAIL_REQUEST, Z.MAX_AMOUNT_OF_AUTHENTICATORS, Z.USER_LOGIN_BLOCK_RELEASED, Z.FAILED_UNIVERSAL_LOGOUT, Z.SUCCESSFUL_UNIVERSAL_LOGOUT, Z.WARNING_DURING_LOGIN, Z.WARNING_SENDING_NOTIFICATION, Z.WARNING_USER_MANAGEMENT, (() => {
|
|
5652
5652
|
let e = {};
|
|
5653
|
-
for (let [t, n] of Object.entries(
|
|
5653
|
+
for (let [t, n] of Object.entries(Z)) 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 === "CONFIG_INHERITANCE_DIFF" || t === "CONFIG_DRIFT" || t === "ACLS_SUMMARY" || t === "ORGANIZATION_MEMBER_ADDED" ? e[n] = "info" : e[n] = "other";
|
|
5654
5654
|
return e;
|
|
5655
5655
|
})();
|
|
5656
|
-
var
|
|
5656
|
+
var ta = e.object({
|
|
5657
5657
|
name: e.string(),
|
|
5658
5658
|
version: e.string(),
|
|
5659
5659
|
env: e.object({ node: e.string().optional() }).optional()
|
|
5660
|
-
}),
|
|
5660
|
+
}), na = e.object({
|
|
5661
5661
|
country_code: e.string().length(2),
|
|
5662
5662
|
city_name: e.string(),
|
|
5663
5663
|
latitude: e.string(),
|
|
@@ -5666,7 +5666,7 @@ var na = e.object({
|
|
|
5666
5666
|
continent_code: e.string()
|
|
5667
5667
|
});
|
|
5668
5668
|
e.object({
|
|
5669
|
-
type:
|
|
5669
|
+
type: ea,
|
|
5670
5670
|
date: e.string(),
|
|
5671
5671
|
description: e.string().optional(),
|
|
5672
5672
|
ip: e.string().optional(),
|
|
@@ -5684,63 +5684,63 @@ e.object({
|
|
|
5684
5684
|
strategy: e.string().optional(),
|
|
5685
5685
|
strategy_type: e.string().optional(),
|
|
5686
5686
|
hostname: e.string().optional(),
|
|
5687
|
-
auth0_client:
|
|
5687
|
+
auth0_client: ta.optional(),
|
|
5688
5688
|
log_id: e.string().optional(),
|
|
5689
|
-
location_info:
|
|
5689
|
+
location_info: na.optional()
|
|
5690
5690
|
}).extend({ log_id: e.string() });
|
|
5691
|
-
var
|
|
5691
|
+
var ra = e.enum([
|
|
5692
5692
|
"http",
|
|
5693
5693
|
"eventbridge",
|
|
5694
5694
|
"eventgrid",
|
|
5695
5695
|
"splunk",
|
|
5696
5696
|
"datadog",
|
|
5697
5697
|
"sumo"
|
|
5698
|
-
]),
|
|
5698
|
+
]), ia = e.enum([
|
|
5699
5699
|
"active",
|
|
5700
5700
|
"paused",
|
|
5701
5701
|
"suspended"
|
|
5702
|
-
]),
|
|
5702
|
+
]), aa = e.object({
|
|
5703
5703
|
type: e.string(),
|
|
5704
5704
|
name: e.string()
|
|
5705
5705
|
});
|
|
5706
5706
|
e.object({
|
|
5707
5707
|
name: e.string(),
|
|
5708
|
-
type:
|
|
5709
|
-
status:
|
|
5708
|
+
type: ra,
|
|
5709
|
+
status: ia.optional(),
|
|
5710
5710
|
sink: e.record(e.string(), e.unknown()),
|
|
5711
|
-
filters: e.array(
|
|
5711
|
+
filters: e.array(aa).optional(),
|
|
5712
5712
|
isPriority: e.boolean().optional()
|
|
5713
5713
|
}).extend({
|
|
5714
5714
|
id: e.string(),
|
|
5715
|
-
status:
|
|
5715
|
+
status: ia,
|
|
5716
5716
|
created_at: e.string().optional(),
|
|
5717
5717
|
updated_at: e.string().optional()
|
|
5718
5718
|
});
|
|
5719
|
-
var
|
|
5719
|
+
var oa = e.enum([
|
|
5720
5720
|
"auth0",
|
|
5721
5721
|
"cognito",
|
|
5722
5722
|
"okta",
|
|
5723
5723
|
"oidc"
|
|
5724
|
-
]),
|
|
5724
|
+
]), sa = e.object({
|
|
5725
5725
|
domain: e.string(),
|
|
5726
5726
|
client_id: e.string(),
|
|
5727
5727
|
client_secret: e.string(),
|
|
5728
5728
|
audience: e.string().optional(),
|
|
5729
5729
|
scope: e.string().optional()
|
|
5730
|
-
}),
|
|
5730
|
+
}), ca = e.object({
|
|
5731
5731
|
id: e.string().optional(),
|
|
5732
5732
|
name: e.string(),
|
|
5733
|
-
provider:
|
|
5733
|
+
provider: oa,
|
|
5734
5734
|
connection: e.string(),
|
|
5735
5735
|
enabled: e.boolean().default(!0),
|
|
5736
|
-
credentials:
|
|
5736
|
+
credentials: sa
|
|
5737
5737
|
});
|
|
5738
5738
|
e.object({
|
|
5739
5739
|
id: e.string(),
|
|
5740
5740
|
created_at: e.string(),
|
|
5741
5741
|
updated_at: e.string()
|
|
5742
|
-
}).extend(
|
|
5743
|
-
var
|
|
5742
|
+
}).extend(ca.shape);
|
|
5743
|
+
var la = e.object({
|
|
5744
5744
|
enabled: e.boolean().optional(),
|
|
5745
5745
|
shields: e.array(e.string()).optional(),
|
|
5746
5746
|
admin_notification_frequency: e.array(e.string()).optional(),
|
|
@@ -5749,13 +5749,13 @@ var ua = e.object({
|
|
|
5749
5749
|
"pre-user-registration": e.object({ shields: e.array(e.string()).optional() }).optional(),
|
|
5750
5750
|
"pre-change-password": e.object({ shields: e.array(e.string()).optional() }).optional()
|
|
5751
5751
|
}).optional()
|
|
5752
|
-
}),
|
|
5752
|
+
}), ua = e.object({
|
|
5753
5753
|
enabled: e.boolean().optional(),
|
|
5754
5754
|
shields: e.array(e.string()).optional(),
|
|
5755
5755
|
allowlist: e.array(e.string()).optional(),
|
|
5756
5756
|
mode: e.string().optional(),
|
|
5757
5757
|
max_attempts: e.number().optional()
|
|
5758
|
-
}),
|
|
5758
|
+
}), da = e.object({
|
|
5759
5759
|
enabled: e.boolean().optional(),
|
|
5760
5760
|
shields: e.array(e.string()).optional(),
|
|
5761
5761
|
allowlist: e.array(e.string()).optional(),
|
|
@@ -5769,10 +5769,10 @@ var ua = e.object({
|
|
|
5769
5769
|
rate: e.number().optional()
|
|
5770
5770
|
}).optional()
|
|
5771
5771
|
}).optional()
|
|
5772
|
-
}),
|
|
5773
|
-
breached_password_detection:
|
|
5774
|
-
brute_force_protection:
|
|
5775
|
-
suspicious_ip_throttling:
|
|
5772
|
+
}), fa = e.object({
|
|
5773
|
+
breached_password_detection: la.optional(),
|
|
5774
|
+
brute_force_protection: ua.optional(),
|
|
5775
|
+
suspicious_ip_throttling: da.optional()
|
|
5776
5776
|
});
|
|
5777
5777
|
e.object({
|
|
5778
5778
|
id: e.string().optional(),
|
|
@@ -5785,14 +5785,18 @@ e.object({
|
|
|
5785
5785
|
created_at: e.string(),
|
|
5786
5786
|
updated_at: e.string()
|
|
5787
5787
|
});
|
|
5788
|
-
var
|
|
5788
|
+
var pa = e.object({
|
|
5789
5789
|
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
5790
5790
|
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
5791
5791
|
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
5792
5792
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
5793
5793
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
5794
5794
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
5795
|
-
}),
|
|
5795
|
+
}), ma = e.object({
|
|
5796
|
+
name: e.string().describe("Authentication method name, e.g. \"mfa\" for a completed second factor"),
|
|
5797
|
+
timestamp: e.string().describe("When the method was completed (ISO 8601)"),
|
|
5798
|
+
type: e.string().optional().describe("For \"mfa\": the authentication method type used, e.g. \"totp\", \"phone\", \"passkey\"")
|
|
5799
|
+
}), ha = e.object({ methods: e.array(ma) }), ga = e.object({
|
|
5796
5800
|
id: e.string(),
|
|
5797
5801
|
revoked_at: e.string().optional(),
|
|
5798
5802
|
used_at: e.string().optional(),
|
|
@@ -5800,15 +5804,16 @@ var ma = e.object({
|
|
|
5800
5804
|
expires_at: e.string().optional(),
|
|
5801
5805
|
login_session_id: e.string(),
|
|
5802
5806
|
idle_expires_at: e.string().optional(),
|
|
5803
|
-
device:
|
|
5804
|
-
clients: e.array(e.string()).describe("List of client details for the session")
|
|
5807
|
+
device: pa.describe("Metadata related to the device used in the session"),
|
|
5808
|
+
clients: e.array(e.string()).describe("List of client details for the session"),
|
|
5809
|
+
authentication: ha.optional().describe("Authentication methods completed in this session (currently MFA only)")
|
|
5805
5810
|
});
|
|
5806
5811
|
e.object({
|
|
5807
5812
|
created_at: e.string(),
|
|
5808
5813
|
updated_at: e.string(),
|
|
5809
5814
|
authenticated_at: e.string(),
|
|
5810
5815
|
last_interaction_at: e.string()
|
|
5811
|
-
}).extend(
|
|
5816
|
+
}).extend(ga.shape), e.object({
|
|
5812
5817
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
5813
5818
|
tenant_id: e.string().optional().openapi({ description: "The tenant the key belongs to. Omitted means the key is shared / control-plane scoped." }),
|
|
5814
5819
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
@@ -5825,7 +5830,93 @@ e.object({
|
|
|
5825
5830
|
connection: e.string().optional().openapi({ description: "The connection identifier associated with the key" }),
|
|
5826
5831
|
type: e.enum(["jwt_signing", "saml_encryption"]).openapi({ description: "The type of the signing key" })
|
|
5827
5832
|
});
|
|
5828
|
-
var
|
|
5833
|
+
var _a = e.enum([
|
|
5834
|
+
"never",
|
|
5835
|
+
"always",
|
|
5836
|
+
"all-applications",
|
|
5837
|
+
"confidence-score"
|
|
5838
|
+
]);
|
|
5839
|
+
e.object({
|
|
5840
|
+
idle_session_lifetime: e.number().default(72),
|
|
5841
|
+
session_lifetime: e.number().default(168),
|
|
5842
|
+
session_cookie: e.object({ mode: e.enum(["persistent", "non-persistent"]).optional() }).optional(),
|
|
5843
|
+
enable_client_connections: e.boolean().optional(),
|
|
5844
|
+
default_redirection_uri: e.string().optional(),
|
|
5845
|
+
enabled_locales: e.array(e.string()).optional(),
|
|
5846
|
+
default_directory: e.string().optional(),
|
|
5847
|
+
error_page: e.object({
|
|
5848
|
+
html: e.string().optional(),
|
|
5849
|
+
show_log_link: e.boolean().optional(),
|
|
5850
|
+
url: e.string().optional()
|
|
5851
|
+
}).optional(),
|
|
5852
|
+
flags: e.object({
|
|
5853
|
+
allow_legacy_delegation_grant_types: e.boolean().optional(),
|
|
5854
|
+
allow_legacy_ro_grant_types: e.boolean().optional(),
|
|
5855
|
+
allow_legacy_tokeninfo_endpoint: e.boolean().optional(),
|
|
5856
|
+
disable_clickjack_protection_headers: e.boolean().optional(),
|
|
5857
|
+
enable_apis_section: e.boolean().optional(),
|
|
5858
|
+
enable_client_connections: e.boolean().optional(),
|
|
5859
|
+
enable_custom_domain_in_emails: e.boolean().optional(),
|
|
5860
|
+
enable_dynamic_client_registration: e.boolean().optional(),
|
|
5861
|
+
enable_idtoken_api2: e.boolean().optional(),
|
|
5862
|
+
enable_legacy_logs_search_v2: e.boolean().optional(),
|
|
5863
|
+
enable_legacy_profile: e.boolean().optional(),
|
|
5864
|
+
enable_pipeline2: e.boolean().optional(),
|
|
5865
|
+
enable_public_signup_user_exists_error: e.boolean().optional(),
|
|
5866
|
+
use_scope_descriptions_for_consent: e.boolean().optional(),
|
|
5867
|
+
disable_management_api_sms_obfuscation: e.boolean().optional(),
|
|
5868
|
+
enable_adfs_waad_email_verification: e.boolean().optional(),
|
|
5869
|
+
revoke_refresh_token_grant: e.boolean().optional(),
|
|
5870
|
+
dashboard_log_streams_next: e.boolean().optional(),
|
|
5871
|
+
dashboard_insights_view: e.boolean().optional(),
|
|
5872
|
+
disable_fields_map_fix: e.boolean().optional(),
|
|
5873
|
+
mfa_show_factor_list_on_enrollment: e.boolean().optional()
|
|
5874
|
+
}).optional(),
|
|
5875
|
+
friendly_name: e.string().optional(),
|
|
5876
|
+
picture_url: e.string().optional(),
|
|
5877
|
+
support_email: e.string().optional(),
|
|
5878
|
+
support_url: e.string().optional(),
|
|
5879
|
+
sandbox_version: e.string().optional(),
|
|
5880
|
+
sandbox_versions_available: e.array(e.string()).optional(),
|
|
5881
|
+
change_password: e.object({
|
|
5882
|
+
enabled: e.boolean(),
|
|
5883
|
+
html: e.string()
|
|
5884
|
+
}).optional(),
|
|
5885
|
+
guardian_mfa_page: e.object({
|
|
5886
|
+
enabled: e.boolean(),
|
|
5887
|
+
html: e.string()
|
|
5888
|
+
}).optional(),
|
|
5889
|
+
default_audience: e.string().optional(),
|
|
5890
|
+
default_organization: e.string().optional(),
|
|
5891
|
+
sessions: e.object({ oidc_logout_prompt_enabled: e.boolean().optional() }).optional(),
|
|
5892
|
+
mfa: e.object({
|
|
5893
|
+
policy: _a.default("never").optional(),
|
|
5894
|
+
factors: e.object({
|
|
5895
|
+
sms: e.boolean().default(!1),
|
|
5896
|
+
otp: e.boolean().default(!1),
|
|
5897
|
+
email: e.boolean().default(!1),
|
|
5898
|
+
push_notification: e.boolean().default(!1),
|
|
5899
|
+
webauthn_roaming: e.boolean().default(!1),
|
|
5900
|
+
webauthn_platform: e.boolean().default(!1),
|
|
5901
|
+
recovery_code: e.boolean().default(!1),
|
|
5902
|
+
duo: e.boolean().default(!1)
|
|
5903
|
+
}).optional(),
|
|
5904
|
+
sms_provider: e.object({ provider: e.enum([
|
|
5905
|
+
"twilio",
|
|
5906
|
+
"vonage",
|
|
5907
|
+
"aws_sns",
|
|
5908
|
+
"phone_message_hook"
|
|
5909
|
+
]).optional() }).optional(),
|
|
5910
|
+
twilio: e.object({
|
|
5911
|
+
sid: e.string().optional(),
|
|
5912
|
+
auth_token: e.string().optional(),
|
|
5913
|
+
from: e.string().optional(),
|
|
5914
|
+
messaging_service_sid: e.string().optional()
|
|
5915
|
+
}).optional(),
|
|
5916
|
+
phone_message: e.object({ message: e.string().optional() }).optional()
|
|
5917
|
+
}).optional()
|
|
5918
|
+
});
|
|
5919
|
+
var va = e.object({
|
|
5829
5920
|
id: e.string().optional(),
|
|
5830
5921
|
parent_tenant_id: e.string().nullish(),
|
|
5831
5922
|
config_sync: e.enum([
|
|
@@ -5951,9 +6042,9 @@ var ga = e.object({
|
|
|
5951
6042
|
"shared_planetscale"
|
|
5952
6043
|
]).optional(),
|
|
5953
6044
|
d1_database_id: e.string().max(64).optional(),
|
|
5954
|
-
attack_protection:
|
|
6045
|
+
attack_protection: fa.optional(),
|
|
5955
6046
|
mfa: e.object({
|
|
5956
|
-
policy:
|
|
6047
|
+
policy: _a.default("never").optional(),
|
|
5957
6048
|
factors: e.object({
|
|
5958
6049
|
sms: e.boolean().default(!1),
|
|
5959
6050
|
otp: e.boolean().default(!1),
|
|
@@ -5982,12 +6073,35 @@ var ga = e.object({
|
|
|
5982
6073
|
e.object({
|
|
5983
6074
|
created_at: e.string().nullable().transform((e) => e ?? ""),
|
|
5984
6075
|
updated_at: e.string().nullable().transform((e) => e ?? "")
|
|
5985
|
-
}).extend(
|
|
6076
|
+
}).extend(va.shape).extend({
|
|
5986
6077
|
id: e.string(),
|
|
5987
6078
|
is_control_plane: e.boolean().optional(),
|
|
5988
6079
|
has_children: e.boolean().optional()
|
|
5989
6080
|
});
|
|
5990
|
-
var
|
|
6081
|
+
var ya = va.shape.mfa.unwrap().shape, ba = e.object({
|
|
6082
|
+
...ya,
|
|
6083
|
+
policy: _a.optional(),
|
|
6084
|
+
factors: e.object({
|
|
6085
|
+
sms: e.boolean().optional(),
|
|
6086
|
+
otp: e.boolean().optional(),
|
|
6087
|
+
email: e.boolean().optional(),
|
|
6088
|
+
push_notification: e.boolean().optional(),
|
|
6089
|
+
webauthn_roaming: e.boolean().optional(),
|
|
6090
|
+
webauthn_platform: e.boolean().optional(),
|
|
6091
|
+
recovery_code: e.boolean().optional(),
|
|
6092
|
+
duo: e.boolean().optional()
|
|
6093
|
+
}).optional()
|
|
6094
|
+
});
|
|
6095
|
+
e.object(va.shape).extend({
|
|
6096
|
+
deployment_type: e.enum(["shared", "wfp"]),
|
|
6097
|
+
provisioning_state: e.enum([
|
|
6098
|
+
"pending",
|
|
6099
|
+
"ready",
|
|
6100
|
+
"failed"
|
|
6101
|
+
]),
|
|
6102
|
+
mfa: ba
|
|
6103
|
+
}).partial();
|
|
6104
|
+
var xa = e.enum([
|
|
5991
6105
|
"provision",
|
|
5992
6106
|
"seed",
|
|
5993
6107
|
"upgrade",
|
|
@@ -5997,18 +6111,18 @@ var _a = e.enum([
|
|
|
5997
6111
|
"sync-defaults",
|
|
5998
6112
|
"detach",
|
|
5999
6113
|
"tenant-members-request"
|
|
6000
|
-
]),
|
|
6114
|
+
]), Sa = e.enum([
|
|
6001
6115
|
"pending",
|
|
6002
6116
|
"running",
|
|
6003
6117
|
"succeeded",
|
|
6004
6118
|
"failed",
|
|
6005
6119
|
"cancelled"
|
|
6006
|
-
]),
|
|
6120
|
+
]), Ca = e.string().max(64);
|
|
6007
6121
|
e.object({
|
|
6008
6122
|
tenant_id: e.string().max(255).nullable().default(null),
|
|
6009
6123
|
rollout_id: e.string().max(255).nullable().optional(),
|
|
6010
|
-
kind:
|
|
6011
|
-
engine:
|
|
6124
|
+
kind: xa,
|
|
6125
|
+
engine: Ca,
|
|
6012
6126
|
engine_instance_id: e.string().max(100).nullable().optional(),
|
|
6013
6127
|
target_worker_version: e.string().max(255).nullable().optional(),
|
|
6014
6128
|
target_database_version: e.string().max(255).nullable().optional(),
|
|
@@ -6016,7 +6130,7 @@ e.object({
|
|
|
6016
6130
|
input: e.record(e.string(), e.unknown()).nullable().optional()
|
|
6017
6131
|
}).extend({
|
|
6018
6132
|
id: e.string(),
|
|
6019
|
-
status:
|
|
6133
|
+
status: Sa,
|
|
6020
6134
|
current_step: e.string().max(255).nullable().optional(),
|
|
6021
6135
|
error: e.string().nullable().optional(),
|
|
6022
6136
|
result: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
@@ -6037,7 +6151,7 @@ e.object({
|
|
|
6037
6151
|
claim_expires_at: !0,
|
|
6038
6152
|
finished_at: !0
|
|
6039
6153
|
}).partial();
|
|
6040
|
-
var
|
|
6154
|
+
var wa = e.enum([
|
|
6041
6155
|
"started",
|
|
6042
6156
|
"succeeded",
|
|
6043
6157
|
"failed",
|
|
@@ -6048,14 +6162,14 @@ var ba = e.enum([
|
|
|
6048
6162
|
e.object({
|
|
6049
6163
|
operation_id: e.string().max(255),
|
|
6050
6164
|
step: e.string().max(255),
|
|
6051
|
-
outcome:
|
|
6165
|
+
outcome: wa,
|
|
6052
6166
|
detail: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
6053
6167
|
attempt: e.number().int().min(1).default(1)
|
|
6054
6168
|
}).extend({
|
|
6055
6169
|
id: e.string(),
|
|
6056
6170
|
created_at: e.string()
|
|
6057
6171
|
});
|
|
6058
|
-
var
|
|
6172
|
+
var Q = e.enum([
|
|
6059
6173
|
"pending",
|
|
6060
6174
|
"inserted",
|
|
6061
6175
|
"updated",
|
|
@@ -6066,29 +6180,29 @@ e.object({
|
|
|
6066
6180
|
operation_id: e.string().max(255),
|
|
6067
6181
|
seq: e.number().int().min(0),
|
|
6068
6182
|
payload: e.record(e.string(), e.unknown()),
|
|
6069
|
-
status:
|
|
6183
|
+
status: Q.default("pending"),
|
|
6070
6184
|
error_code: e.string().max(64).nullable().optional(),
|
|
6071
6185
|
error_message: e.string().nullable().optional(),
|
|
6072
6186
|
error_path: e.string().max(255).nullable().optional(),
|
|
6073
6187
|
entity_id: e.string().max(255).nullable().optional()
|
|
6074
6188
|
}).extend({
|
|
6075
|
-
status:
|
|
6189
|
+
status: Q,
|
|
6076
6190
|
created_at: e.string(),
|
|
6077
6191
|
updated_at: e.string()
|
|
6078
6192
|
}), e.object({
|
|
6079
6193
|
seq: e.number().int().min(0),
|
|
6080
|
-
status:
|
|
6194
|
+
status: Q,
|
|
6081
6195
|
error_code: e.string().max(64).nullable().optional(),
|
|
6082
6196
|
error_message: e.string().nullable().optional(),
|
|
6083
6197
|
error_path: e.string().max(255).nullable().optional(),
|
|
6084
6198
|
entity_id: e.string().max(255).nullable().optional()
|
|
6085
6199
|
});
|
|
6086
|
-
var
|
|
6200
|
+
var Ta = e.enum([
|
|
6087
6201
|
"upgrade",
|
|
6088
6202
|
"reseed",
|
|
6089
6203
|
"backup",
|
|
6090
6204
|
"config-sync"
|
|
6091
|
-
]),
|
|
6205
|
+
]), Ea = e.enum([
|
|
6092
6206
|
"pending",
|
|
6093
6207
|
"canary",
|
|
6094
6208
|
"rolling",
|
|
@@ -6097,7 +6211,7 @@ var Sa = e.enum([
|
|
|
6097
6211
|
"failed"
|
|
6098
6212
|
]);
|
|
6099
6213
|
e.object({
|
|
6100
|
-
kind:
|
|
6214
|
+
kind: Ta,
|
|
6101
6215
|
target_worker_version: e.string().max(255).nullable().optional(),
|
|
6102
6216
|
target_database_version: e.string().max(255).nullable().optional(),
|
|
6103
6217
|
wave_size: e.number().int().min(1).default(10),
|
|
@@ -6107,7 +6221,7 @@ e.object({
|
|
|
6107
6221
|
config: e.record(e.string(), e.unknown()).nullable().optional()
|
|
6108
6222
|
}).extend({
|
|
6109
6223
|
id: e.string(),
|
|
6110
|
-
status:
|
|
6224
|
+
status: Ea,
|
|
6111
6225
|
created_at: e.string(),
|
|
6112
6226
|
updated_at: e.string(),
|
|
6113
6227
|
finished_at: e.string().nullable().optional(),
|
|
@@ -6121,26 +6235,26 @@ e.object({
|
|
|
6121
6235
|
paused_reason: !0,
|
|
6122
6236
|
finished_at: !0
|
|
6123
6237
|
}).partial();
|
|
6124
|
-
var
|
|
6238
|
+
var Da = e.enum([
|
|
6125
6239
|
"invite",
|
|
6126
6240
|
"add_members",
|
|
6127
6241
|
"remove_members",
|
|
6128
6242
|
"assign_roles",
|
|
6129
6243
|
"remove_roles",
|
|
6130
6244
|
"revoke_invitation"
|
|
6131
|
-
]),
|
|
6245
|
+
]), Oa = e.enum([
|
|
6132
6246
|
"pending",
|
|
6133
6247
|
"succeeded",
|
|
6134
6248
|
"failed"
|
|
6135
6249
|
]);
|
|
6136
6250
|
e.object({
|
|
6137
|
-
kind:
|
|
6251
|
+
kind: Da,
|
|
6138
6252
|
requested_by: e.string().min(1).max(255),
|
|
6139
6253
|
payload: e.record(e.string(), e.unknown())
|
|
6140
6254
|
}).extend({
|
|
6141
6255
|
id: e.string(),
|
|
6142
6256
|
tenant_id: e.string(),
|
|
6143
|
-
status:
|
|
6257
|
+
status: Oa,
|
|
6144
6258
|
result: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
6145
6259
|
error: e.string().nullable().optional(),
|
|
6146
6260
|
notified_at: e.string().nullable().optional(),
|
|
@@ -6148,7 +6262,7 @@ e.object({
|
|
|
6148
6262
|
updated_at: e.string(),
|
|
6149
6263
|
finished_at: e.string().nullable().optional()
|
|
6150
6264
|
}), e.object({
|
|
6151
|
-
status:
|
|
6265
|
+
status: Oa.optional(),
|
|
6152
6266
|
result: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
6153
6267
|
error: e.string().nullable().optional(),
|
|
6154
6268
|
notified_at: e.string().nullable().optional(),
|
|
@@ -6165,7 +6279,7 @@ e.object({
|
|
|
6165
6279
|
code: e.string(),
|
|
6166
6280
|
state: e.string().optional()
|
|
6167
6281
|
});
|
|
6168
|
-
var
|
|
6282
|
+
var ka = e.object({
|
|
6169
6283
|
button_border_radius: e.number(),
|
|
6170
6284
|
button_border_weight: e.number(),
|
|
6171
6285
|
buttons_style: e.enum([
|
|
@@ -6183,7 +6297,7 @@ var Ea = e.object({
|
|
|
6183
6297
|
show_widget_shadow: e.boolean(),
|
|
6184
6298
|
widget_border_weight: e.number(),
|
|
6185
6299
|
widget_corner_radius: e.number()
|
|
6186
|
-
}),
|
|
6300
|
+
}), Aa = e.object({
|
|
6187
6301
|
base_focus_color: e.string(),
|
|
6188
6302
|
base_hover_color: e.string(),
|
|
6189
6303
|
body_text: e.string(),
|
|
@@ -6207,20 +6321,20 @@ var Ea = e.object({
|
|
|
6207
6321
|
success: e.string(),
|
|
6208
6322
|
widget_background: e.string(),
|
|
6209
6323
|
widget_border: e.string()
|
|
6210
|
-
}),
|
|
6324
|
+
}), $ = e.object({
|
|
6211
6325
|
bold: e.boolean(),
|
|
6212
6326
|
size: e.number()
|
|
6213
|
-
}),
|
|
6214
|
-
body_text:
|
|
6215
|
-
buttons_text:
|
|
6327
|
+
}), ja = e.object({
|
|
6328
|
+
body_text: $,
|
|
6329
|
+
buttons_text: $,
|
|
6216
6330
|
font_url: e.string(),
|
|
6217
|
-
input_labels:
|
|
6218
|
-
links:
|
|
6331
|
+
input_labels: $,
|
|
6332
|
+
links: $,
|
|
6219
6333
|
links_style: e.enum(["normal", "underlined"]),
|
|
6220
6334
|
reference_text_size: e.number(),
|
|
6221
|
-
subtitle:
|
|
6222
|
-
title:
|
|
6223
|
-
}),
|
|
6335
|
+
subtitle: $,
|
|
6336
|
+
title: $
|
|
6337
|
+
}), Ma = e.object({
|
|
6224
6338
|
background_color: e.string(),
|
|
6225
6339
|
background_image_url: e.string(),
|
|
6226
6340
|
page_layout: e.enum([
|
|
@@ -6233,7 +6347,7 @@ var Ea = e.object({
|
|
|
6233
6347
|
"chip",
|
|
6234
6348
|
"none"
|
|
6235
6349
|
]).optional()
|
|
6236
|
-
}),
|
|
6350
|
+
}), Na = e.object({
|
|
6237
6351
|
header_text_alignment: e.enum([
|
|
6238
6352
|
"center",
|
|
6239
6353
|
"left",
|
|
@@ -6250,46 +6364,46 @@ var Ea = e.object({
|
|
|
6250
6364
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
6251
6365
|
});
|
|
6252
6366
|
e.object({
|
|
6253
|
-
borders:
|
|
6254
|
-
colors:
|
|
6367
|
+
borders: ka,
|
|
6368
|
+
colors: Aa,
|
|
6255
6369
|
displayName: e.string(),
|
|
6256
|
-
fonts:
|
|
6257
|
-
page_background:
|
|
6258
|
-
widget:
|
|
6370
|
+
fonts: ja,
|
|
6371
|
+
page_background: Ma,
|
|
6372
|
+
widget: Na
|
|
6259
6373
|
}).extend({ themeId: e.string() }), e.object({
|
|
6260
|
-
...
|
|
6374
|
+
...W,
|
|
6261
6375
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
6262
6376
|
identifier_first: e.boolean().default(!0),
|
|
6263
6377
|
password_first: e.boolean().default(!1),
|
|
6264
6378
|
show_last_used_connection: e.boolean().default(!1),
|
|
6265
6379
|
webauthn_platform_first_factor: e.boolean()
|
|
6266
6380
|
});
|
|
6267
|
-
var
|
|
6381
|
+
var Pa = e.object({
|
|
6268
6382
|
hosts: e.array(e.string()).optional(),
|
|
6269
6383
|
methods: e.array(e.string()).optional(),
|
|
6270
6384
|
path: e.string().default("/*"),
|
|
6271
6385
|
headers: e.record(e.string(), e.string()).optional(),
|
|
6272
6386
|
query: e.record(e.string(), e.string()).optional()
|
|
6273
|
-
}),
|
|
6387
|
+
}), Fa = e.object({
|
|
6274
6388
|
type: e.string(),
|
|
6275
6389
|
options: e.record(e.string(), e.unknown()).default({})
|
|
6276
|
-
}),
|
|
6390
|
+
}), Ia = e.object({
|
|
6277
6391
|
id: e.string().optional(),
|
|
6278
6392
|
custom_domain_id: e.string(),
|
|
6279
6393
|
priority: e.number().int().default(100),
|
|
6280
|
-
match:
|
|
6281
|
-
handlers: e.array(
|
|
6394
|
+
match: Pa,
|
|
6395
|
+
handlers: e.array(Fa).min(1)
|
|
6282
6396
|
});
|
|
6283
|
-
|
|
6397
|
+
Ia.extend({
|
|
6284
6398
|
id: e.string(),
|
|
6285
6399
|
tenant_id: e.string(),
|
|
6286
6400
|
created_at: e.string(),
|
|
6287
6401
|
updated_at: e.string()
|
|
6288
|
-
}),
|
|
6402
|
+
}), Ia.partial().omit({
|
|
6289
6403
|
id: !0,
|
|
6290
6404
|
custom_domain_id: !0
|
|
6291
6405
|
});
|
|
6292
|
-
var
|
|
6406
|
+
var La = "custom_authentication", Ra = [
|
|
6293
6407
|
"urn:ietf:params:oauth:",
|
|
6294
6408
|
"urn:auth0",
|
|
6295
6409
|
"urn:okta",
|
|
@@ -6297,56 +6411,56 @@ var Pa = "custom_authentication", Fa = [
|
|
|
6297
6411
|
"https://auth0.com",
|
|
6298
6412
|
"http://okta.com",
|
|
6299
6413
|
"https://okta.com"
|
|
6300
|
-
],
|
|
6414
|
+
], za = e.string().min(1).max(200).refine((e) => e.startsWith("https://") || e.startsWith("urn:"), { message: "subject_token_type must be a URI starting with https:// or urn:" }).refine((e) => !Ra.some((t) => e.toLowerCase().startsWith(t)), { message: "subject_token_type uses a reserved namespace" }), Ba = e.enum([
|
|
6301
6415
|
"RS256",
|
|
6302
6416
|
"RS384",
|
|
6303
6417
|
"RS512",
|
|
6304
6418
|
"ES256",
|
|
6305
6419
|
"ES384",
|
|
6306
6420
|
"ES512"
|
|
6307
|
-
]),
|
|
6421
|
+
]), Va = e.discriminatedUnion("type", [e.object({
|
|
6308
6422
|
type: e.literal("connection"),
|
|
6309
6423
|
connection: e.string().min(1),
|
|
6310
6424
|
create_if_not_exists: e.boolean().default(!0),
|
|
6311
6425
|
trust_email_verified: e.boolean().default(!1)
|
|
6312
|
-
}), e.object({ type: e.literal("user_id") })]),
|
|
6426
|
+
}), e.object({ type: e.literal("user_id") })]), Ha = e.object({
|
|
6313
6427
|
issuer: e.string().min(1).max(2048),
|
|
6314
|
-
jwks:
|
|
6428
|
+
jwks: Xi.optional(),
|
|
6315
6429
|
jwks_uri: e.string().url().optional(),
|
|
6316
6430
|
audience: e.array(e.string().min(1)).min(1).optional(),
|
|
6317
|
-
algorithms: e.array(
|
|
6431
|
+
algorithms: e.array(Ba).min(1).optional(),
|
|
6318
6432
|
max_lifetime_seconds: e.number().int().min(1).max(3600).default(300),
|
|
6319
6433
|
require_jti: e.boolean().default(!0),
|
|
6320
|
-
user_mapping:
|
|
6434
|
+
user_mapping: Va
|
|
6321
6435
|
});
|
|
6322
6436
|
e.object({
|
|
6323
6437
|
name: e.string().min(1).max(255),
|
|
6324
|
-
subject_token_type:
|
|
6438
|
+
subject_token_type: za,
|
|
6325
6439
|
action_id: e.string().min(1).optional(),
|
|
6326
|
-
type: e.literal(
|
|
6327
|
-
jwt_verification:
|
|
6440
|
+
type: e.literal(La),
|
|
6441
|
+
jwt_verification: Ha.optional()
|
|
6328
6442
|
}).extend({
|
|
6329
6443
|
id: e.string(),
|
|
6330
6444
|
created_at: e.string(),
|
|
6331
6445
|
updated_at: e.string()
|
|
6332
6446
|
}), e.object({
|
|
6333
6447
|
name: e.string().min(1).max(255).optional(),
|
|
6334
|
-
subject_token_type:
|
|
6335
|
-
jwt_verification:
|
|
6448
|
+
subject_token_type: za.optional(),
|
|
6449
|
+
jwt_verification: Ha.optional()
|
|
6336
6450
|
});
|
|
6337
|
-
var
|
|
6451
|
+
var Ua = e.object({
|
|
6338
6452
|
scim: e.string(),
|
|
6339
6453
|
auth0: e.string()
|
|
6340
|
-
}),
|
|
6454
|
+
}), Wa = e.object({
|
|
6341
6455
|
connection_id: e.string(),
|
|
6342
6456
|
user_id_attribute: e.string().default("externalId"),
|
|
6343
|
-
mapping: e.array(
|
|
6457
|
+
mapping: e.array(Ua).default([])
|
|
6344
6458
|
});
|
|
6345
6459
|
e.object({
|
|
6346
6460
|
created_at: e.string(),
|
|
6347
6461
|
updated_at: e.string()
|
|
6348
|
-
}).extend(
|
|
6349
|
-
var
|
|
6462
|
+
}).extend(Wa.shape);
|
|
6463
|
+
var Ga = e.object({
|
|
6350
6464
|
token_id: e.string(),
|
|
6351
6465
|
connection_id: e.string(),
|
|
6352
6466
|
token_hash: e.string(),
|
|
@@ -6356,21 +6470,21 @@ var Ha = e.object({
|
|
|
6356
6470
|
e.object({
|
|
6357
6471
|
created_at: e.string(),
|
|
6358
6472
|
last_used_at: e.string().optional()
|
|
6359
|
-
}).extend(
|
|
6360
|
-
var
|
|
6473
|
+
}).extend(Ga.shape);
|
|
6474
|
+
var Ka = e.object({
|
|
6361
6475
|
connection_id: e.string(),
|
|
6362
6476
|
external_id: e.string(),
|
|
6363
6477
|
user_id: e.string()
|
|
6364
6478
|
});
|
|
6365
|
-
e.object({ created_at: e.string() }).extend(
|
|
6366
|
-
...
|
|
6479
|
+
e.object({ created_at: e.string() }).extend(Ka.shape), e.object({
|
|
6480
|
+
...W,
|
|
6367
6481
|
name: e.string(),
|
|
6368
6482
|
enabled: e.boolean().optional().default(!0),
|
|
6369
6483
|
default_from_address: e.string().optional(),
|
|
6370
6484
|
credentials: e.record(e.string(), e.unknown()),
|
|
6371
6485
|
settings: e.object({}).optional()
|
|
6372
6486
|
});
|
|
6373
|
-
var
|
|
6487
|
+
var qa = e.enum([
|
|
6374
6488
|
"verify_email",
|
|
6375
6489
|
"verify_email_by_code",
|
|
6376
6490
|
"reset_email",
|
|
@@ -6385,7 +6499,7 @@ var Wa = e.enum([
|
|
|
6385
6499
|
"user_invitation"
|
|
6386
6500
|
]);
|
|
6387
6501
|
e.object({
|
|
6388
|
-
template:
|
|
6502
|
+
template: qa,
|
|
6389
6503
|
body: e.string(),
|
|
6390
6504
|
from: e.string(),
|
|
6391
6505
|
subject: e.string(),
|
|
@@ -6400,13 +6514,13 @@ e.object({
|
|
|
6400
6514
|
session_id: e.string().optional(),
|
|
6401
6515
|
organization: e.string().optional(),
|
|
6402
6516
|
auth_connection: e.string().optional(),
|
|
6403
|
-
auth_strategy:
|
|
6517
|
+
auth_strategy: $i.optional(),
|
|
6404
6518
|
user_id: e.string(),
|
|
6405
6519
|
client_id: e.string(),
|
|
6406
6520
|
expires_at: e.string().optional(),
|
|
6407
6521
|
idle_expires_at: e.string().optional(),
|
|
6408
6522
|
last_exchanged_at: e.string().optional(),
|
|
6409
|
-
device:
|
|
6523
|
+
device: pa,
|
|
6410
6524
|
resource_servers: e.array(e.object({
|
|
6411
6525
|
audience: e.string(),
|
|
6412
6526
|
scopes: e.string()
|
|
@@ -6427,10 +6541,10 @@ e.object({
|
|
|
6427
6541
|
name: e.string(),
|
|
6428
6542
|
options: e.object({})
|
|
6429
6543
|
});
|
|
6430
|
-
var
|
|
6544
|
+
var Ja = e.object({
|
|
6431
6545
|
value: e.string(),
|
|
6432
6546
|
description: e.string().optional()
|
|
6433
|
-
}),
|
|
6547
|
+
}), Ya = e.object({
|
|
6434
6548
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
6435
6549
|
enforce_policies: e.boolean().optional(),
|
|
6436
6550
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -6438,11 +6552,11 @@ var Ga = e.object({
|
|
|
6438
6552
|
persist_client_authorization: e.boolean().optional(),
|
|
6439
6553
|
enable_introspection_endpoint: e.boolean().optional(),
|
|
6440
6554
|
mtls: e.object({ bound_access_tokens: e.boolean().optional() }).optional()
|
|
6441
|
-
}),
|
|
6555
|
+
}), Xa = e.object({
|
|
6442
6556
|
id: e.string().optional(),
|
|
6443
6557
|
name: e.string(),
|
|
6444
6558
|
identifier: e.string(),
|
|
6445
|
-
scopes: e.array(
|
|
6559
|
+
scopes: e.array(Ja).optional(),
|
|
6446
6560
|
signing_alg: e.string().optional(),
|
|
6447
6561
|
signing_secret: e.string().optional(),
|
|
6448
6562
|
token_lifetime: e.number().default(86400),
|
|
@@ -6450,21 +6564,21 @@ var Ga = e.object({
|
|
|
6450
6564
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
6451
6565
|
allow_offline_access: e.boolean().optional(),
|
|
6452
6566
|
verificationKey: e.string().optional(),
|
|
6453
|
-
options:
|
|
6567
|
+
options: Ya.optional(),
|
|
6454
6568
|
is_system: e.boolean().optional(),
|
|
6455
|
-
...
|
|
6569
|
+
...W,
|
|
6456
6570
|
metadata: e.record(e.string(), e.any()).optional()
|
|
6457
6571
|
}).extend({
|
|
6458
6572
|
created_at: e.string().optional(),
|
|
6459
6573
|
updated_at: e.string().optional()
|
|
6460
6574
|
});
|
|
6461
|
-
e.array(
|
|
6462
|
-
var
|
|
6575
|
+
e.array(Xa);
|
|
6576
|
+
var Za = e.object({
|
|
6463
6577
|
role_id: e.string(),
|
|
6464
6578
|
resource_server_identifier: e.string(),
|
|
6465
6579
|
permission_name: e.string()
|
|
6466
6580
|
}).extend({ created_at: e.string() });
|
|
6467
|
-
e.array(
|
|
6581
|
+
e.array(Za), e.object({
|
|
6468
6582
|
user_id: e.string().openapi({ description: "The id of the user that granted the consent" }),
|
|
6469
6583
|
clientID: e.string().openapi({ description: "The id of the client the grant was issued to" }),
|
|
6470
6584
|
audience: e.string().optional().openapi({ description: "The audience the grant applies to" }),
|
|
@@ -6477,7 +6591,7 @@ e.array(Ja), e.object({
|
|
|
6477
6591
|
failed_logins: e.array(e.string()).optional(),
|
|
6478
6592
|
last_password_reset: e.string().optional()
|
|
6479
6593
|
});
|
|
6480
|
-
var
|
|
6594
|
+
var Qa = e.object({
|
|
6481
6595
|
user_id: e.string(),
|
|
6482
6596
|
resource_server_identifier: e.string(),
|
|
6483
6597
|
permission_name: e.string(),
|
|
@@ -6486,8 +6600,8 @@ var Ya = e.object({
|
|
|
6486
6600
|
tenant_id: e.string(),
|
|
6487
6601
|
created_at: e.string().optional()
|
|
6488
6602
|
});
|
|
6489
|
-
e.array(
|
|
6490
|
-
var
|
|
6603
|
+
e.array(Qa);
|
|
6604
|
+
var $a = e.object({
|
|
6491
6605
|
user_id: e.string(),
|
|
6492
6606
|
resource_server_identifier: e.string(),
|
|
6493
6607
|
resource_server_name: e.string(),
|
|
@@ -6496,8 +6610,8 @@ var Xa = e.object({
|
|
|
6496
6610
|
created_at: e.string().optional(),
|
|
6497
6611
|
organization_id: e.string().optional()
|
|
6498
6612
|
});
|
|
6499
|
-
e.array(
|
|
6500
|
-
var
|
|
6613
|
+
e.array($a);
|
|
6614
|
+
var eo = e.object({
|
|
6501
6615
|
user_id: e.string(),
|
|
6502
6616
|
role_id: e.string(),
|
|
6503
6617
|
organization_id: e.string().optional()
|
|
@@ -6505,8 +6619,8 @@ var Za = e.object({
|
|
|
6505
6619
|
tenant_id: e.string(),
|
|
6506
6620
|
created_at: e.string().optional()
|
|
6507
6621
|
});
|
|
6508
|
-
e.array(
|
|
6509
|
-
var
|
|
6622
|
+
e.array(eo);
|
|
6623
|
+
var to = e.object({
|
|
6510
6624
|
id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
|
|
6511
6625
|
name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
|
|
6512
6626
|
description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
|
|
@@ -6517,19 +6631,19 @@ var Qa = e.object({
|
|
|
6517
6631
|
created_at: e.string().optional(),
|
|
6518
6632
|
updated_at: e.string().optional()
|
|
6519
6633
|
});
|
|
6520
|
-
e.array(
|
|
6521
|
-
var
|
|
6634
|
+
e.array(to);
|
|
6635
|
+
var no = e.object({
|
|
6522
6636
|
logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
|
|
6523
6637
|
colors: e.object({
|
|
6524
6638
|
primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
|
|
6525
6639
|
page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
|
|
6526
6640
|
}).optional()
|
|
6527
|
-
}).optional(),
|
|
6641
|
+
}).optional(), ro = e.object({
|
|
6528
6642
|
connection_id: e.string().openapi({ description: "ID of the connection" }),
|
|
6529
6643
|
assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
|
|
6530
6644
|
show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
|
|
6531
6645
|
is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
|
|
6532
|
-
}),
|
|
6646
|
+
}), io = e.object({ client_credentials: e.object({
|
|
6533
6647
|
enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
|
|
6534
6648
|
per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
|
|
6535
6649
|
per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
|
|
@@ -6538,15 +6652,15 @@ e.object({
|
|
|
6538
6652
|
id: e.string().optional(),
|
|
6539
6653
|
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." }),
|
|
6540
6654
|
display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
|
|
6541
|
-
branding:
|
|
6655
|
+
branding: no,
|
|
6542
6656
|
metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Custom metadata for the organization" }),
|
|
6543
|
-
enabled_connections: e.array(
|
|
6544
|
-
token_quota:
|
|
6545
|
-
}).extend(
|
|
6657
|
+
enabled_connections: e.array(ro).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
|
|
6658
|
+
token_quota: io
|
|
6659
|
+
}).extend(U.shape).extend({
|
|
6546
6660
|
id: e.string(),
|
|
6547
6661
|
name: e.string().min(1).openapi({ description: "The name of the organization" })
|
|
6548
6662
|
});
|
|
6549
|
-
var
|
|
6663
|
+
var ao = e.object({
|
|
6550
6664
|
connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
|
|
6551
6665
|
assign_membership_on_login: e.boolean().optional().default(!1),
|
|
6552
6666
|
show_as_button: e.boolean().optional().default(!0),
|
|
@@ -6559,89 +6673,10 @@ var no = e.object({
|
|
|
6559
6673
|
created_at: e.string().optional(),
|
|
6560
6674
|
updated_at: e.string().optional()
|
|
6561
6675
|
});
|
|
6562
|
-
e.array(
|
|
6676
|
+
e.array(ao), e.object({
|
|
6563
6677
|
user_id: e.string().openapi({ description: "ID of the user" }),
|
|
6564
6678
|
organization_id: e.string().openapi({ description: "ID of the organization" })
|
|
6565
|
-
}).extend(
|
|
6566
|
-
idle_session_lifetime: e.number().default(72),
|
|
6567
|
-
session_lifetime: e.number().default(168),
|
|
6568
|
-
session_cookie: e.object({ mode: e.enum(["persistent", "non-persistent"]).optional() }).optional(),
|
|
6569
|
-
enable_client_connections: e.boolean().optional(),
|
|
6570
|
-
default_redirection_uri: e.string().optional(),
|
|
6571
|
-
enabled_locales: e.array(e.string()).optional(),
|
|
6572
|
-
default_directory: e.string().optional(),
|
|
6573
|
-
error_page: e.object({
|
|
6574
|
-
html: e.string().optional(),
|
|
6575
|
-
show_log_link: e.boolean().optional(),
|
|
6576
|
-
url: e.string().optional()
|
|
6577
|
-
}).optional(),
|
|
6578
|
-
flags: e.object({
|
|
6579
|
-
allow_legacy_delegation_grant_types: e.boolean().optional(),
|
|
6580
|
-
allow_legacy_ro_grant_types: e.boolean().optional(),
|
|
6581
|
-
allow_legacy_tokeninfo_endpoint: e.boolean().optional(),
|
|
6582
|
-
disable_clickjack_protection_headers: e.boolean().optional(),
|
|
6583
|
-
enable_apis_section: e.boolean().optional(),
|
|
6584
|
-
enable_client_connections: e.boolean().optional(),
|
|
6585
|
-
enable_custom_domain_in_emails: e.boolean().optional(),
|
|
6586
|
-
enable_dynamic_client_registration: e.boolean().optional(),
|
|
6587
|
-
enable_idtoken_api2: e.boolean().optional(),
|
|
6588
|
-
enable_legacy_logs_search_v2: e.boolean().optional(),
|
|
6589
|
-
enable_legacy_profile: e.boolean().optional(),
|
|
6590
|
-
enable_pipeline2: e.boolean().optional(),
|
|
6591
|
-
enable_public_signup_user_exists_error: e.boolean().optional(),
|
|
6592
|
-
use_scope_descriptions_for_consent: e.boolean().optional(),
|
|
6593
|
-
disable_management_api_sms_obfuscation: e.boolean().optional(),
|
|
6594
|
-
enable_adfs_waad_email_verification: e.boolean().optional(),
|
|
6595
|
-
revoke_refresh_token_grant: e.boolean().optional(),
|
|
6596
|
-
dashboard_log_streams_next: e.boolean().optional(),
|
|
6597
|
-
dashboard_insights_view: e.boolean().optional(),
|
|
6598
|
-
disable_fields_map_fix: e.boolean().optional(),
|
|
6599
|
-
mfa_show_factor_list_on_enrollment: e.boolean().optional()
|
|
6600
|
-
}).optional(),
|
|
6601
|
-
friendly_name: e.string().optional(),
|
|
6602
|
-
picture_url: e.string().optional(),
|
|
6603
|
-
support_email: e.string().optional(),
|
|
6604
|
-
support_url: e.string().optional(),
|
|
6605
|
-
sandbox_version: e.string().optional(),
|
|
6606
|
-
sandbox_versions_available: e.array(e.string()).optional(),
|
|
6607
|
-
change_password: e.object({
|
|
6608
|
-
enabled: e.boolean(),
|
|
6609
|
-
html: e.string()
|
|
6610
|
-
}).optional(),
|
|
6611
|
-
guardian_mfa_page: e.object({
|
|
6612
|
-
enabled: e.boolean(),
|
|
6613
|
-
html: e.string()
|
|
6614
|
-
}).optional(),
|
|
6615
|
-
default_audience: e.string().optional(),
|
|
6616
|
-
default_organization: e.string().optional(),
|
|
6617
|
-
sessions: e.object({ oidc_logout_prompt_enabled: e.boolean().optional() }).optional(),
|
|
6618
|
-
mfa: e.object({
|
|
6619
|
-
policy: e.enum(["never", "always"]).default("never").optional(),
|
|
6620
|
-
factors: e.object({
|
|
6621
|
-
sms: e.boolean().default(!1),
|
|
6622
|
-
otp: e.boolean().default(!1),
|
|
6623
|
-
email: e.boolean().default(!1),
|
|
6624
|
-
push_notification: e.boolean().default(!1),
|
|
6625
|
-
webauthn_roaming: e.boolean().default(!1),
|
|
6626
|
-
webauthn_platform: e.boolean().default(!1),
|
|
6627
|
-
recovery_code: e.boolean().default(!1),
|
|
6628
|
-
duo: e.boolean().default(!1)
|
|
6629
|
-
}).optional(),
|
|
6630
|
-
sms_provider: e.object({ provider: e.enum([
|
|
6631
|
-
"twilio",
|
|
6632
|
-
"vonage",
|
|
6633
|
-
"aws_sns",
|
|
6634
|
-
"phone_message_hook"
|
|
6635
|
-
]).optional() }).optional(),
|
|
6636
|
-
twilio: e.object({
|
|
6637
|
-
sid: e.string().optional(),
|
|
6638
|
-
auth_token: e.string().optional(),
|
|
6639
|
-
from: e.string().optional(),
|
|
6640
|
-
messaging_service_sid: e.string().optional()
|
|
6641
|
-
}).optional(),
|
|
6642
|
-
phone_message: e.object({ message: e.string().optional() }).optional()
|
|
6643
|
-
}).optional()
|
|
6644
|
-
}), e.object({
|
|
6679
|
+
}).extend(U.shape).extend({ id: e.string() }), e.object({
|
|
6645
6680
|
date: e.string().openapi({
|
|
6646
6681
|
description: "Date these events occurred in ISO 8601 format",
|
|
6647
6682
|
example: "2025-12-19"
|
|
@@ -6698,7 +6733,7 @@ e.array(no), e.object({
|
|
|
6698
6733
|
"passwordless",
|
|
6699
6734
|
"enterprise"
|
|
6700
6735
|
]);
|
|
6701
|
-
var
|
|
6736
|
+
var oo = e.object({
|
|
6702
6737
|
cohort: e.string(),
|
|
6703
6738
|
sessions: e.number(),
|
|
6704
6739
|
active: e.array(e.number())
|
|
@@ -6707,9 +6742,9 @@ e.object({
|
|
|
6707
6742
|
interval: e.literal("week"),
|
|
6708
6743
|
from: e.string(),
|
|
6709
6744
|
to: e.string(),
|
|
6710
|
-
cohorts: e.array(
|
|
6745
|
+
cohorts: e.array(oo)
|
|
6711
6746
|
});
|
|
6712
|
-
var
|
|
6747
|
+
var so = e.object({
|
|
6713
6748
|
cohort: e.string(),
|
|
6714
6749
|
tokens: e.number(),
|
|
6715
6750
|
active: e.array(e.number())
|
|
@@ -6718,24 +6753,24 @@ e.object({
|
|
|
6718
6753
|
interval: e.literal("week"),
|
|
6719
6754
|
from: e.string(),
|
|
6720
6755
|
to: e.string(),
|
|
6721
|
-
cohorts: e.array(
|
|
6756
|
+
cohorts: e.array(so)
|
|
6722
6757
|
});
|
|
6723
|
-
var
|
|
6758
|
+
var co = e.object({
|
|
6724
6759
|
name: e.string(),
|
|
6725
6760
|
type: e.string()
|
|
6726
|
-
}),
|
|
6761
|
+
}), lo = e.object({
|
|
6727
6762
|
elapsed: e.number(),
|
|
6728
6763
|
rows_read: e.number().optional(),
|
|
6729
6764
|
bytes_read: e.number().optional()
|
|
6730
6765
|
});
|
|
6731
6766
|
e.object({
|
|
6732
|
-
meta: e.array(
|
|
6767
|
+
meta: e.array(co),
|
|
6733
6768
|
data: e.array(e.record(e.string(), e.any())),
|
|
6734
6769
|
rows: e.number(),
|
|
6735
6770
|
rows_before_limit_at_least: e.number().optional(),
|
|
6736
|
-
statistics:
|
|
6771
|
+
statistics: lo.optional()
|
|
6737
6772
|
});
|
|
6738
|
-
var
|
|
6773
|
+
var uo = 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(".")), fo = e.record(e.string(), e.record(e.string(), e.string())).openapi({
|
|
6739
6774
|
type: "object",
|
|
6740
6775
|
additionalProperties: {
|
|
6741
6776
|
type: "object",
|
|
@@ -6743,23 +6778,23 @@ var so = e.enum(/* @__PURE__ */ "login.login-id.login-password.signup.signup-id.
|
|
|
6743
6778
|
}
|
|
6744
6779
|
});
|
|
6745
6780
|
e.object({
|
|
6746
|
-
prompt:
|
|
6781
|
+
prompt: uo,
|
|
6747
6782
|
language: e.string(),
|
|
6748
|
-
custom_text:
|
|
6783
|
+
custom_text: fo
|
|
6749
6784
|
});
|
|
6750
|
-
var
|
|
6785
|
+
var po = e.object({
|
|
6751
6786
|
"form-content-start": e.string().optional(),
|
|
6752
6787
|
"form-content-end": e.string().optional(),
|
|
6753
6788
|
"form-footer-start": e.string().optional(),
|
|
6754
6789
|
"form-footer-end": e.string().optional(),
|
|
6755
6790
|
"secondary-actions-start": e.string().optional(),
|
|
6756
6791
|
"secondary-actions-end": e.string().optional()
|
|
6757
|
-
}).strict(),
|
|
6792
|
+
}).strict(), mo = e.record(e.string(), po);
|
|
6758
6793
|
e.object({
|
|
6759
6794
|
prompt: e.string(),
|
|
6760
|
-
partials:
|
|
6795
|
+
partials: mo
|
|
6761
6796
|
});
|
|
6762
|
-
var
|
|
6797
|
+
var ho = e.enum([
|
|
6763
6798
|
"phone",
|
|
6764
6799
|
"totp",
|
|
6765
6800
|
"email",
|
|
@@ -6767,11 +6802,12 @@ var fo = e.enum([
|
|
|
6767
6802
|
"webauthn-roaming",
|
|
6768
6803
|
"webauthn-platform",
|
|
6769
6804
|
"passkey"
|
|
6770
|
-
]),
|
|
6805
|
+
]), go = e.object({
|
|
6771
6806
|
user_id: e.string(),
|
|
6772
|
-
type:
|
|
6807
|
+
type: ho,
|
|
6773
6808
|
phone_number: e.string().optional(),
|
|
6774
6809
|
totp_secret: e.string().optional(),
|
|
6810
|
+
totp_last_step: e.number().int().nonnegative().optional(),
|
|
6775
6811
|
credential_id: e.string().optional(),
|
|
6776
6812
|
public_key: e.string().optional(),
|
|
6777
6813
|
sign_count: e.number().int().nonnegative().optional(),
|
|
@@ -6780,7 +6816,7 @@ var fo = e.enum([
|
|
|
6780
6816
|
friendly_name: e.string().optional(),
|
|
6781
6817
|
confirmed: e.boolean().default(!1)
|
|
6782
6818
|
});
|
|
6783
|
-
function
|
|
6819
|
+
function _o(t, n) {
|
|
6784
6820
|
t.type === "phone" && !t.phone_number && n.addIssue({
|
|
6785
6821
|
code: e.ZodIssueCode.custom,
|
|
6786
6822
|
message: "phone_number is required when type is 'phone'",
|
|
@@ -6803,64 +6839,64 @@ function mo(t, n) {
|
|
|
6803
6839
|
path: ["public_key"]
|
|
6804
6840
|
}));
|
|
6805
6841
|
}
|
|
6806
|
-
|
|
6842
|
+
go.superRefine(_o), go.extend({
|
|
6807
6843
|
id: e.string(),
|
|
6808
6844
|
created_at: e.string(),
|
|
6809
6845
|
updated_at: e.string()
|
|
6810
|
-
}).superRefine(
|
|
6846
|
+
}).superRefine(_o), e.object({
|
|
6811
6847
|
id: e.string().optional(),
|
|
6812
6848
|
created_at: e.string().datetime({ offset: !0 }).optional(),
|
|
6813
6849
|
updated_at: e.string().datetime({ offset: !0 }).optional()
|
|
6814
6850
|
});
|
|
6815
|
-
function
|
|
6851
|
+
function vo(e) {
|
|
6816
6852
|
let t = atob(e), n = new Uint8Array(t.length);
|
|
6817
6853
|
for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
|
|
6818
6854
|
return n;
|
|
6819
6855
|
}
|
|
6820
6856
|
//#endregion
|
|
6821
6857
|
//#region ../../node_modules/.pnpm/nanoid@5.1.11/node_modules/nanoid/url-alphabet/index.js
|
|
6822
|
-
var
|
|
6858
|
+
var yo = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", bo = (e = 21) => {
|
|
6823
6859
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
6824
|
-
for (; e--;) t +=
|
|
6860
|
+
for (; e--;) t += yo[n[e] & 63];
|
|
6825
6861
|
return t;
|
|
6826
6862
|
};
|
|
6827
6863
|
//#endregion
|
|
6828
6864
|
//#region src/helpers.ts
|
|
6829
|
-
async function
|
|
6865
|
+
async function xo(e) {
|
|
6830
6866
|
let t = new DecompressionStream("deflate-raw"), n = new Uint8Array(e), r = new Blob([n]).stream().pipeThrough(t);
|
|
6831
6867
|
return new Uint8Array(await new Response(r).arrayBuffer());
|
|
6832
6868
|
}
|
|
6833
|
-
async function
|
|
6834
|
-
let t =
|
|
6869
|
+
async function So(e) {
|
|
6870
|
+
let t = vo(e.replace(/ /g, "+"));
|
|
6835
6871
|
try {
|
|
6836
|
-
let e = await
|
|
6872
|
+
let e = await xo(t);
|
|
6837
6873
|
return new TextDecoder().decode(e);
|
|
6838
6874
|
} catch (e) {
|
|
6839
6875
|
return console.warn("Decompression failed, assuming data is not compressed:", e), new TextDecoder().decode(t);
|
|
6840
6876
|
}
|
|
6841
6877
|
}
|
|
6842
|
-
async function
|
|
6843
|
-
let t = await
|
|
6878
|
+
async function Co(e) {
|
|
6879
|
+
let t = await So(e), n = new on({
|
|
6844
6880
|
attributeNamePrefix: "@_",
|
|
6845
6881
|
alwaysCreateTextNode: !0,
|
|
6846
6882
|
ignoreAttributes: !1
|
|
6847
6883
|
}).parse(t);
|
|
6848
6884
|
return r.parse(n);
|
|
6849
6885
|
}
|
|
6850
|
-
async function
|
|
6851
|
-
let t = await
|
|
6886
|
+
async function wo(e) {
|
|
6887
|
+
let t = await So(e), n = new on({
|
|
6852
6888
|
attributeNamePrefix: "@_",
|
|
6853
6889
|
alwaysCreateTextNode: !0,
|
|
6854
6890
|
ignoreAttributes: !1
|
|
6855
6891
|
});
|
|
6856
6892
|
return i.parse(n.parse(t));
|
|
6857
6893
|
}
|
|
6858
|
-
async function
|
|
6859
|
-
let t = (e) => e.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">"), n = e.success ? "urn:oasis:names:tc:SAML:2.0:status:Success" : "urn:oasis:names:tc:SAML:2.0:status:Responder", r = e.inResponseTo ? ` InResponseTo="${t(e.inResponseTo)}"` : "", i = !e.success && e.statusMessage ? `<samlp:StatusMessage>${t(e.statusMessage)}</samlp:StatusMessage>` : "", a = `<samlp:LogoutResponse xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="_${
|
|
6894
|
+
async function To(e) {
|
|
6895
|
+
let t = (e) => e.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">"), n = e.success ? "urn:oasis:names:tc:SAML:2.0:status:Success" : "urn:oasis:names:tc:SAML:2.0:status:Responder", r = e.inResponseTo ? ` InResponseTo="${t(e.inResponseTo)}"` : "", i = !e.success && e.statusMessage ? `<samlp:StatusMessage>${t(e.statusMessage)}</samlp:StatusMessage>` : "", a = `<samlp:LogoutResponse xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="_${bo()}" Version="2.0" IssueInstant="${(/* @__PURE__ */ new Date()).toISOString()}" Destination="${t(e.destination)}"${r}><saml:Issuer>${t(e.issuer)}</saml:Issuer><samlp:Status><samlp:StatusCode Value="${n}"/>${i}</samlp:Status></samlp:LogoutResponse>`, o = new Blob([new TextEncoder().encode(a)]).stream().pipeThrough(new CompressionStream("deflate-raw")), s = new Uint8Array(await new Response(o).arrayBuffer()), c = "";
|
|
6860
6896
|
for (let e of s) c += String.fromCharCode(e);
|
|
6861
6897
|
return btoa(c);
|
|
6862
6898
|
}
|
|
6863
|
-
function
|
|
6899
|
+
function Eo(e) {
|
|
6864
6900
|
let t = e.certificates.map((e) => ({
|
|
6865
6901
|
"@_use": "signing",
|
|
6866
6902
|
KeyInfo: {
|
|
@@ -6926,7 +6962,7 @@ function xo(e) {
|
|
|
6926
6962
|
]
|
|
6927
6963
|
}
|
|
6928
6964
|
} };
|
|
6929
|
-
return new
|
|
6965
|
+
return new En({
|
|
6930
6966
|
ignoreAttributes: !1,
|
|
6931
6967
|
suppressEmptyNode: !0,
|
|
6932
6968
|
preserveOrder: !1,
|
|
@@ -6934,8 +6970,8 @@ function xo(e) {
|
|
|
6934
6970
|
attributeNamePrefix: "@_"
|
|
6935
6971
|
}).build(n);
|
|
6936
6972
|
}
|
|
6937
|
-
async function
|
|
6938
|
-
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 || `_${
|
|
6973
|
+
async function Do(e, t) {
|
|
6974
|
+
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 || `_${bo()}`, s = e.assertionId || `_${bo()}`, c = [{
|
|
6939
6975
|
"samlp:Response": [
|
|
6940
6976
|
{ "saml:Issuer": [{ "#text": e.issuer }] },
|
|
6941
6977
|
{ "samlp:Status": [{
|
|
@@ -7107,7 +7143,7 @@ async function So(e, t) {
|
|
|
7107
7143
|
"@_IssueInstant": i,
|
|
7108
7144
|
"@_Version": "2.0"
|
|
7109
7145
|
}
|
|
7110
|
-
}], l = new
|
|
7146
|
+
}], l = new En({
|
|
7111
7147
|
ignoreAttributes: !1,
|
|
7112
7148
|
suppressEmptyNode: !0,
|
|
7113
7149
|
preserveOrder: !0
|
|
@@ -7116,7 +7152,7 @@ async function So(e, t) {
|
|
|
7116
7152
|
}
|
|
7117
7153
|
//#endregion
|
|
7118
7154
|
//#region src/signers/local.ts
|
|
7119
|
-
var
|
|
7155
|
+
var Oo = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", ko = "http://www.w3.org/2001/04/xmlenc#sha256", Ao = "http://www.w3.org/2001/10/xml-exc-c14n#", jo = class {
|
|
7120
7156
|
async signSAML(e, t, n) {
|
|
7121
7157
|
try {
|
|
7122
7158
|
let r = await import("xml-crypto"), i = r.SignedXml || r.default?.SignedXml;
|
|
@@ -7125,11 +7161,11 @@ var Co = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", wo = "http://www.w
|
|
|
7125
7161
|
privateKey: t,
|
|
7126
7162
|
publicCert: n
|
|
7127
7163
|
});
|
|
7128
|
-
a.canonicalizationAlgorithm =
|
|
7164
|
+
a.canonicalizationAlgorithm = Ao, a.addReference({
|
|
7129
7165
|
xpath: "(/*[local-name()='Response']/*[local-name()='Assertion'])[1]",
|
|
7130
|
-
digestAlgorithm:
|
|
7131
|
-
transforms: ["http://www.w3.org/2000/09/xmldsig#enveloped-signature",
|
|
7132
|
-
}), a.signatureAlgorithm =
|
|
7166
|
+
digestAlgorithm: ko,
|
|
7167
|
+
transforms: ["http://www.w3.org/2000/09/xmldsig#enveloped-signature", Ao]
|
|
7168
|
+
}), a.signatureAlgorithm = Oo;
|
|
7133
7169
|
let o = n.replace(/-----BEGIN CERTIFICATE-----|-----END CERTIFICATE-----/g, "").replace(/\s/g, "");
|
|
7134
7170
|
return a.keyInfoProvider = { getKeyInfo: () => `<X509Data><X509Certificate>${o}</X509Certificate></X509Data>` }, a.computeSignature(e, { location: {
|
|
7135
7171
|
reference: "/*[local-name()='Response']/*[local-name()='Assertion']/*[local-name()='Issuer']",
|
|
@@ -7139,7 +7175,7 @@ var Co = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", wo = "http://www.w
|
|
|
7139
7175
|
throw Error(`Failed to sign SAML locally. Make sure xml-crypto is installed. Error: ${e}`);
|
|
7140
7176
|
}
|
|
7141
7177
|
}
|
|
7142
|
-
},
|
|
7178
|
+
}, Mo = class {
|
|
7143
7179
|
signUrl;
|
|
7144
7180
|
constructor(e) {
|
|
7145
7181
|
this.signUrl = e;
|
|
@@ -7159,4 +7195,4 @@ var Co = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256", wo = "http://www.w
|
|
|
7159
7195
|
}
|
|
7160
7196
|
};
|
|
7161
7197
|
//#endregion
|
|
7162
|
-
export {
|
|
7198
|
+
export { Mo as HttpSamlSigner, jo as LocalSamlSigner, To as createSamlLogoutResponse, Eo as createSamlMetadata, Do as createSamlResponse, c as dsSignatureSchema, So as inflateDecompress, xo as inflateRaw, wo as parseSamlLogoutRequestQuery, Co as parseSamlRequestQuery, n as samlIssuerSchema, i as samlLogoutRequestSchema, a as samlMetadataResponseSchema, r as samlRequestSchema, l as samlResponseJsonSchema };
|