@authhero/drizzle 0.50.1 → 0.50.2
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/drizzle-adapter.cjs +2 -2
- package/dist/drizzle-adapter.mjs +514 -512
- package/package.json +2 -2
package/dist/drizzle-adapter.mjs
CHANGED
|
@@ -148,9 +148,9 @@ class Aa {
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
v(Aa, ji, "ColumnBuilder");
|
|
151
|
-
const Ot = Symbol.for("drizzle:Name"),
|
|
151
|
+
const Ot = Symbol.for("drizzle:Name"), bi = Symbol.for("drizzle:isPgEnum");
|
|
152
152
|
function Ws(n) {
|
|
153
|
-
return !!n && typeof n == "function" &&
|
|
153
|
+
return !!n && typeof n == "function" && bi in n && n[bi] === !0;
|
|
154
154
|
}
|
|
155
155
|
var Vi;
|
|
156
156
|
Vi = L;
|
|
@@ -294,8 +294,8 @@ const mt = class mt {
|
|
|
294
294
|
return { sql: "", params: [] };
|
|
295
295
|
if (Array.isArray(p)) {
|
|
296
296
|
const y = [new we("(")];
|
|
297
|
-
for (const [
|
|
298
|
-
y.push(A),
|
|
297
|
+
for (const [b, A] of p.entries())
|
|
298
|
+
y.push(A), b < p.length - 1 && y.push(new we(", "));
|
|
299
299
|
return y.push(new we(")")), this.buildQueryFromSourceParams(y, i);
|
|
300
300
|
}
|
|
301
301
|
if (ve(p, mt))
|
|
@@ -304,9 +304,9 @@ const mt = class mt {
|
|
|
304
304
|
inlineParams: u || p.shouldInlineParams
|
|
305
305
|
});
|
|
306
306
|
if (ve(p, fe)) {
|
|
307
|
-
const y = p[fe.Symbol.Schema],
|
|
307
|
+
const y = p[fe.Symbol.Schema], b = p[fe.Symbol.Name];
|
|
308
308
|
return {
|
|
309
|
-
sql: y === void 0 || p[_n] ? s(
|
|
309
|
+
sql: y === void 0 || p[_n] ? s(b) : s(y) + "." + s(b),
|
|
310
310
|
params: []
|
|
311
311
|
};
|
|
312
312
|
}
|
|
@@ -314,16 +314,16 @@ const mt = class mt {
|
|
|
314
314
|
const y = o.getColumnCasing(p);
|
|
315
315
|
if (t.invokeSource === "indexes")
|
|
316
316
|
return { sql: s(y), params: [] };
|
|
317
|
-
const
|
|
317
|
+
const b = p.table[fe.Symbol.Schema];
|
|
318
318
|
return {
|
|
319
|
-
sql: p.table[_n] ||
|
|
319
|
+
sql: p.table[_n] || b === void 0 ? s(p.table[fe.Symbol.Name]) + "." + s(y) : s(b) + "." + s(p.table[fe.Symbol.Name]) + "." + s(y),
|
|
320
320
|
params: []
|
|
321
321
|
};
|
|
322
322
|
}
|
|
323
323
|
if (ve(p, gi)) {
|
|
324
|
-
const y = p[Ft].schema,
|
|
324
|
+
const y = p[Ft].schema, b = p[Ft].name;
|
|
325
325
|
return {
|
|
326
|
-
sql: y === void 0 || p[Ft].isAlias ? s(
|
|
326
|
+
sql: y === void 0 || p[Ft].isAlias ? s(b) : s(y) + "." + s(b),
|
|
327
327
|
params: []
|
|
328
328
|
};
|
|
329
329
|
}
|
|
@@ -335,8 +335,8 @@ const mt = class mt {
|
|
|
335
335
|
return this.buildQueryFromSourceParams([y], i);
|
|
336
336
|
if (u)
|
|
337
337
|
return { sql: this.mapInlineParam(y, i), params: [] };
|
|
338
|
-
let
|
|
339
|
-
return d && (
|
|
338
|
+
let b = ["none"];
|
|
339
|
+
return d && (b = [d(p.encoder)]), { sql: l(f.value++, y), params: [y], typings: b };
|
|
340
340
|
}
|
|
341
341
|
return ve(p, Mt) ? { sql: l(f.value++, p), params: [p], typings: ["none"] } : ve(p, mt.Aliased) && p.fieldAlias !== void 0 ? { sql: s(p.fieldAlias), params: [] } : ve(p, hi) ? p._.isWith ? { sql: s(p._.alias), params: [] } : this.buildQueryFromSourceParams([
|
|
342
342
|
new we("("),
|
|
@@ -741,8 +741,8 @@ class Fa extends (vo = Ve, yo = L, vo) {
|
|
|
741
741
|
}
|
|
742
742
|
}
|
|
743
743
|
v(Fa, yo, "SQLiteBigInt");
|
|
744
|
-
var wo,
|
|
745
|
-
class za extends (
|
|
744
|
+
var wo, So;
|
|
745
|
+
class za extends (So = je, wo = L, So) {
|
|
746
746
|
constructor(e) {
|
|
747
747
|
super(e, "json", "SQLiteBlobJson");
|
|
748
748
|
}
|
|
@@ -755,8 +755,8 @@ class za extends (No = je, wo = L, No) {
|
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
757
|
v(za, wo, "SQLiteBlobJsonBuilder");
|
|
758
|
-
var
|
|
759
|
-
class Ma extends (
|
|
758
|
+
var No, Eo;
|
|
759
|
+
class Ma extends (Eo = Ve, No = L, Eo) {
|
|
760
760
|
getSQLType() {
|
|
761
761
|
return "blob";
|
|
762
762
|
}
|
|
@@ -771,9 +771,9 @@ class Ma extends (bo = Ve, So = L, bo) {
|
|
|
771
771
|
return Buffer.from(JSON.stringify(e));
|
|
772
772
|
}
|
|
773
773
|
}
|
|
774
|
-
v(Ma,
|
|
775
|
-
var
|
|
776
|
-
class Pa extends (xo = je,
|
|
774
|
+
v(Ma, No, "SQLiteBlobJson");
|
|
775
|
+
var bo, xo;
|
|
776
|
+
class Pa extends (xo = je, bo = L, xo) {
|
|
777
777
|
constructor(e) {
|
|
778
778
|
super(e, "buffer", "SQLiteBlobBuffer");
|
|
779
779
|
}
|
|
@@ -782,7 +782,7 @@ class Pa extends (xo = je, Eo = L, xo) {
|
|
|
782
782
|
return new qa(e, this.config);
|
|
783
783
|
}
|
|
784
784
|
}
|
|
785
|
-
v(Pa,
|
|
785
|
+
v(Pa, bo, "SQLiteBlobBufferBuilder");
|
|
786
786
|
var ko, Oo;
|
|
787
787
|
class qa extends (Oo = Ve, ko = L, Oo) {
|
|
788
788
|
mapFromDriverValue(e) {
|
|
@@ -1117,8 +1117,8 @@ function dr() {
|
|
|
1117
1117
|
};
|
|
1118
1118
|
}
|
|
1119
1119
|
const Qn = Symbol.for("drizzle:SQLiteInlineForeignKeys");
|
|
1120
|
-
var ya, va, wa,
|
|
1121
|
-
class Pt extends (
|
|
1120
|
+
var ya, va, wa, Sa, Na;
|
|
1121
|
+
class Pt extends (Na = fe, Sa = L, wa = fe.Symbol.Columns, va = Qn, ya = fe.Symbol.ExtraConfigBuilder, Na) {
|
|
1122
1122
|
constructor() {
|
|
1123
1123
|
super(...arguments);
|
|
1124
1124
|
/** @internal */
|
|
@@ -1129,7 +1129,7 @@ class Pt extends (Sa = fe, Na = L, wa = fe.Symbol.Columns, va = Qn, ya = fe.Symb
|
|
|
1129
1129
|
v(this, ya);
|
|
1130
1130
|
}
|
|
1131
1131
|
}
|
|
1132
|
-
v(Pt,
|
|
1132
|
+
v(Pt, Sa, "SQLiteTable"), /** @internal */
|
|
1133
1133
|
v(Pt, "Symbol", Object.assign({}, fe.Symbol, {
|
|
1134
1134
|
InlineForeignKeys: Qn
|
|
1135
1135
|
}));
|
|
@@ -1145,8 +1145,8 @@ function cr(n, e, t, i, o = n) {
|
|
|
1145
1145
|
return u[fe.Symbol.Columns] = d, u[fe.Symbol.ExtraConfigColumns] = d, t && (u[Pt.Symbol.ExtraConfigBuilder] = t), u;
|
|
1146
1146
|
}
|
|
1147
1147
|
const j = (n, e, t) => cr(n, e, t);
|
|
1148
|
-
var
|
|
1149
|
-
|
|
1148
|
+
var Ea;
|
|
1149
|
+
Ea = L;
|
|
1150
1150
|
class mi {
|
|
1151
1151
|
constructor(e, t) {
|
|
1152
1152
|
this.name = e, this.unique = t;
|
|
@@ -1155,9 +1155,9 @@ class mi {
|
|
|
1155
1155
|
return new rs(this.name, e, this.unique);
|
|
1156
1156
|
}
|
|
1157
1157
|
}
|
|
1158
|
-
v(mi,
|
|
1159
|
-
var
|
|
1160
|
-
|
|
1158
|
+
v(mi, Ea, "SQLiteIndexBuilderOn");
|
|
1159
|
+
var ba;
|
|
1160
|
+
ba = L;
|
|
1161
1161
|
class rs {
|
|
1162
1162
|
constructor(e, t, i) {
|
|
1163
1163
|
/** @internal */
|
|
@@ -1180,7 +1180,7 @@ class rs {
|
|
|
1180
1180
|
return new ls(this.config, e);
|
|
1181
1181
|
}
|
|
1182
1182
|
}
|
|
1183
|
-
v(rs,
|
|
1183
|
+
v(rs, ba, "SQLiteIndexBuilder");
|
|
1184
1184
|
var xa;
|
|
1185
1185
|
xa = L;
|
|
1186
1186
|
class ls {
|
|
@@ -2185,7 +2185,7 @@ const B = j("tenants", {
|
|
|
2185
2185
|
() => pe.id,
|
|
2186
2186
|
{ onDelete: "cascade" }
|
|
2187
2187
|
)
|
|
2188
|
-
}),
|
|
2188
|
+
}), Ne = j(
|
|
2189
2189
|
"custom_text",
|
|
2190
2190
|
{
|
|
2191
2191
|
tenant_id: r("tenant_id", { length: 191 }).notNull().references(() => B.id, { onDelete: "cascade" }),
|
|
@@ -2312,7 +2312,7 @@ const B = j("tenants", {
|
|
|
2312
2312
|
codes: re,
|
|
2313
2313
|
connections: pe,
|
|
2314
2314
|
customDomains: Ie,
|
|
2315
|
-
customText:
|
|
2315
|
+
customText: Ne,
|
|
2316
2316
|
domains: fr,
|
|
2317
2317
|
emailProviders: dt,
|
|
2318
2318
|
emailTemplates: Ue,
|
|
@@ -2498,9 +2498,9 @@ function Qe(n, e, t) {
|
|
|
2498
2498
|
const f = i.map((p) => {
|
|
2499
2499
|
const m = p.trim().match(/^([^:]+):(.+)$/);
|
|
2500
2500
|
if (m) {
|
|
2501
|
-
const [, y,
|
|
2502
|
-
if (!y || !
|
|
2503
|
-
const A =
|
|
2501
|
+
const [, y, b] = m;
|
|
2502
|
+
if (!y || !b) return null;
|
|
2503
|
+
const A = b.replace(/^"(.*)"$/, "$1"), J = n[y.trim()];
|
|
2504
2504
|
return J ? c(J, A.trim()) : null;
|
|
2505
2505
|
}
|
|
2506
2506
|
return null;
|
|
@@ -2515,33 +2515,33 @@ function Qe(n, e, t) {
|
|
|
2515
2515
|
}
|
|
2516
2516
|
s.trim() && o.push(s.trim());
|
|
2517
2517
|
const d = o.filter((f) => f !== "AND").map((f) => f.replace(/^([^:]+)=/g, "$1:")).map((f) => {
|
|
2518
|
-
let p = f.startsWith("-"), m = null, y = "",
|
|
2518
|
+
let p = f.startsWith("-"), m = null, y = "", b = !1, A;
|
|
2519
2519
|
if (f.startsWith("-_exists_:"))
|
|
2520
|
-
m = f.substring(10),
|
|
2520
|
+
m = f.substring(10), b = !0, p = !0;
|
|
2521
2521
|
else if (f.startsWith("_exists_:"))
|
|
2522
|
-
m = f.substring(9),
|
|
2522
|
+
m = f.substring(9), b = !0, p = !1;
|
|
2523
2523
|
else if (f.includes(":")) {
|
|
2524
2524
|
const J = p ? f.substring(1) : f, Q = J.indexOf(":");
|
|
2525
|
-
m = J.substring(0, Q), y = J.substring(Q + 1),
|
|
2525
|
+
m = J.substring(0, Q), y = J.substring(Q + 1), b = !1, y.startsWith(">=") ? (A = ">=", y = y.substring(2)) : y.startsWith(">") ? (A = ">", y = y.substring(1)) : y.startsWith("<=") ? (A = "<=", y = y.substring(2)) : y.startsWith("<") ? (A = "<", y = y.substring(1)) : A = "=", y.startsWith('"') && y.endsWith('"') && y.length > 1 && (y = y.slice(1, -1));
|
|
2526
2526
|
} else
|
|
2527
|
-
m = null, y = f,
|
|
2528
|
-
return { key: m, value: y, isNegation: p, isExistsQuery:
|
|
2527
|
+
m = null, y = f, b = !1;
|
|
2528
|
+
return { key: m, value: y, isNegation: p, isExistsQuery: b, operator: A };
|
|
2529
2529
|
}), u = [];
|
|
2530
|
-
for (const { key: f, value: p, isNegation: m, isExistsQuery: y, operator:
|
|
2530
|
+
for (const { key: f, value: p, isNegation: m, isExistsQuery: y, operator: b } of d)
|
|
2531
2531
|
if (f) {
|
|
2532
2532
|
const A = n[f];
|
|
2533
2533
|
if (!A) {
|
|
2534
2534
|
y ? u.push(
|
|
2535
2535
|
m ? O`${O.identifier(f)} IS NULL` : O`${O.identifier(f)} IS NOT NULL`
|
|
2536
2536
|
) : u.push(
|
|
2537
|
-
O`${O.identifier(f)} ${O.raw(m ? "!=" :
|
|
2537
|
+
O`${O.identifier(f)} ${O.raw(m ? "!=" : b ?? "=")} ${p}`
|
|
2538
2538
|
);
|
|
2539
2539
|
continue;
|
|
2540
2540
|
}
|
|
2541
2541
|
if (y)
|
|
2542
2542
|
u.push(m ? Ce(A) : cn(A));
|
|
2543
2543
|
else if (m)
|
|
2544
|
-
switch (
|
|
2544
|
+
switch (b) {
|
|
2545
2545
|
case ">":
|
|
2546
2546
|
u.push(yt(A, p));
|
|
2547
2547
|
break;
|
|
@@ -2558,7 +2558,7 @@ function Qe(n, e, t) {
|
|
|
2558
2558
|
u.push(er(A, p));
|
|
2559
2559
|
}
|
|
2560
2560
|
else
|
|
2561
|
-
switch (
|
|
2561
|
+
switch (b) {
|
|
2562
2562
|
case ">":
|
|
2563
2563
|
u.push(pn(A, p));
|
|
2564
2564
|
break;
|
|
@@ -2755,7 +2755,7 @@ function wr(n) {
|
|
|
2755
2755
|
}
|
|
2756
2756
|
};
|
|
2757
2757
|
}
|
|
2758
|
-
function
|
|
2758
|
+
function Sr(n) {
|
|
2759
2759
|
const { tenant_id: e, is_system: t, options: i, metadata: o, ...s } = n;
|
|
2760
2760
|
return G({
|
|
2761
2761
|
...s,
|
|
@@ -2764,7 +2764,7 @@ function Nr(n) {
|
|
|
2764
2764
|
is_system: t ? !0 : void 0
|
|
2765
2765
|
});
|
|
2766
2766
|
}
|
|
2767
|
-
function
|
|
2767
|
+
function Nr(n) {
|
|
2768
2768
|
return {
|
|
2769
2769
|
async listByClient(e, t) {
|
|
2770
2770
|
const i = await n.select({ connections: Z.connections }).from(Z).where(
|
|
@@ -2781,7 +2781,7 @@ function Sr(n) {
|
|
|
2781
2781
|
c(pe.tenant_id, e),
|
|
2782
2782
|
De(pe.id, o)
|
|
2783
2783
|
)
|
|
2784
|
-
).all()).map(
|
|
2784
|
+
).all()).map(Sr);
|
|
2785
2785
|
return o.map((d) => l.find((u) => u.id === d)).filter(Boolean);
|
|
2786
2786
|
},
|
|
2787
2787
|
async updateByClient(e, t, i) {
|
|
@@ -2832,7 +2832,7 @@ function Sr(n) {
|
|
|
2832
2832
|
}
|
|
2833
2833
|
};
|
|
2834
2834
|
}
|
|
2835
|
-
let
|
|
2835
|
+
let Er = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", br = (n) => crypto.getRandomValues(new Uint8Array(n)), xr = (n, e, t) => {
|
|
2836
2836
|
let i = 256 - 256 % n.length;
|
|
2837
2837
|
if (i === 256) {
|
|
2838
2838
|
let s = n.length - 1;
|
|
@@ -2857,10 +2857,10 @@ let br = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Er
|
|
|
2857
2857
|
return l;
|
|
2858
2858
|
}
|
|
2859
2859
|
};
|
|
2860
|
-
}, kr = (n, e = 21) => xr(n, e | 0,
|
|
2860
|
+
}, kr = (n, e = 21) => xr(n, e | 0, br), Le = (n = 21) => {
|
|
2861
2861
|
let e = "", t = crypto.getRandomValues(new Uint8Array(n |= 0));
|
|
2862
2862
|
for (; n--; )
|
|
2863
|
-
e +=
|
|
2863
|
+
e += Er[t[n] & 63];
|
|
2864
2864
|
return e;
|
|
2865
2865
|
};
|
|
2866
2866
|
function Ln(n) {
|
|
@@ -2946,12 +2946,12 @@ function Or(n) {
|
|
|
2946
2946
|
const y = (await p.offset(i * o).limit(o)).map(Ln);
|
|
2947
2947
|
if (!s)
|
|
2948
2948
|
return { client_grants: y };
|
|
2949
|
-
const [
|
|
2949
|
+
const [b] = await n.select({ count: ge() }).from(ye).where(f);
|
|
2950
2950
|
return {
|
|
2951
2951
|
client_grants: y,
|
|
2952
2952
|
start: i * o,
|
|
2953
2953
|
limit: o,
|
|
2954
|
-
length: Number((
|
|
2954
|
+
length: Number((b == null ? void 0 : b.count) ?? 0)
|
|
2955
2955
|
};
|
|
2956
2956
|
},
|
|
2957
2957
|
async remove(e, t) {
|
|
@@ -2985,17 +2985,17 @@ function Ir(n) {
|
|
|
2985
2985
|
return;
|
|
2986
2986
|
n.ZodType.prototype.openapi = function(o, s) {
|
|
2987
2987
|
var l, d, u, f, p, m;
|
|
2988
|
-
const y = typeof o == "string" ? s : o,
|
|
2988
|
+
const y = typeof o == "string" ? s : o, b = y ?? {}, { param: A } = b, J = Ar(b, ["param"]), Q = Object.assign(Object.assign({}, (l = this._def.openapi) === null || l === void 0 ? void 0 : l._internal), typeof o == "string" ? { refId: o } : void 0), ie = Object.assign(Object.assign(Object.assign({}, (d = this._def.openapi) === null || d === void 0 ? void 0 : d.metadata), J), !((f = (u = this._def.openapi) === null || u === void 0 ? void 0 : u.metadata) === null || f === void 0) && f.param || A ? {
|
|
2989
2989
|
param: Object.assign(Object.assign({}, (m = (p = this._def.openapi) === null || p === void 0 ? void 0 : p.metadata) === null || m === void 0 ? void 0 : m.param), A)
|
|
2990
2990
|
} : void 0), Pe = new this.constructor(Object.assign(Object.assign({}, this._def), { openapi: Object.assign(Object.assign({}, Object.keys(Q).length > 0 ? { _internal: Q } : void 0), Object.keys(ie).length > 0 ? { metadata: ie } : void 0) }));
|
|
2991
2991
|
if (Tr(this, "ZodObject")) {
|
|
2992
|
-
const
|
|
2993
|
-
Pe.extend = function(...
|
|
2994
|
-
var it, rt,
|
|
2995
|
-
const Tn =
|
|
2992
|
+
const Se = this.extend;
|
|
2993
|
+
Pe.extend = function(...be) {
|
|
2994
|
+
var it, rt, bn, xn, kn, On, An;
|
|
2995
|
+
const Tn = Se.apply(this, be);
|
|
2996
2996
|
return Tn._def.openapi = {
|
|
2997
2997
|
_internal: {
|
|
2998
|
-
extendedFrom: !((rt = (it = this._def.openapi) === null || it === void 0 ? void 0 : it._internal) === null || rt === void 0) && rt.refId ? { refId: (xn = (
|
|
2998
|
+
extendedFrom: !((rt = (it = this._def.openapi) === null || it === void 0 ? void 0 : it._internal) === null || rt === void 0) && rt.refId ? { refId: (xn = (bn = this._def.openapi) === null || bn === void 0 ? void 0 : bn._internal) === null || xn === void 0 ? void 0 : xn.refId, schema: this } : (On = (kn = this._def.openapi) === null || kn === void 0 ? void 0 : kn._internal) === null || On === void 0 ? void 0 : On.extendedFrom
|
|
2999
2999
|
},
|
|
3000
3000
|
metadata: (An = Tn._def.openapi) === null || An === void 0 ? void 0 : An.metadata
|
|
3001
3001
|
}, Tn;
|
|
@@ -3110,7 +3110,7 @@ const T = K.arrayToEnum([
|
|
|
3110
3110
|
default:
|
|
3111
3111
|
return T.unknown;
|
|
3112
3112
|
}
|
|
3113
|
-
},
|
|
3113
|
+
}, S = K.arrayToEnum([
|
|
3114
3114
|
"invalid_type",
|
|
3115
3115
|
"invalid_literal",
|
|
3116
3116
|
"custom",
|
|
@@ -3195,52 +3195,52 @@ et.create = (n) => new et(n);
|
|
|
3195
3195
|
const fn = (n, e) => {
|
|
3196
3196
|
let t;
|
|
3197
3197
|
switch (n.code) {
|
|
3198
|
-
case
|
|
3198
|
+
case S.invalid_type:
|
|
3199
3199
|
n.received === T.undefined ? t = "Required" : t = `Expected ${n.expected}, received ${n.received}`;
|
|
3200
3200
|
break;
|
|
3201
|
-
case
|
|
3201
|
+
case S.invalid_literal:
|
|
3202
3202
|
t = `Invalid literal value, expected ${JSON.stringify(n.expected, K.jsonStringifyReplacer)}`;
|
|
3203
3203
|
break;
|
|
3204
|
-
case
|
|
3204
|
+
case S.unrecognized_keys:
|
|
3205
3205
|
t = `Unrecognized key(s) in object: ${K.joinValues(n.keys, ", ")}`;
|
|
3206
3206
|
break;
|
|
3207
|
-
case
|
|
3207
|
+
case S.invalid_union:
|
|
3208
3208
|
t = "Invalid input";
|
|
3209
3209
|
break;
|
|
3210
|
-
case
|
|
3210
|
+
case S.invalid_union_discriminator:
|
|
3211
3211
|
t = `Invalid discriminator value. Expected ${K.joinValues(n.options)}`;
|
|
3212
3212
|
break;
|
|
3213
|
-
case
|
|
3213
|
+
case S.invalid_enum_value:
|
|
3214
3214
|
t = `Invalid enum value. Expected ${K.joinValues(n.options)}, received '${n.received}'`;
|
|
3215
3215
|
break;
|
|
3216
|
-
case
|
|
3216
|
+
case S.invalid_arguments:
|
|
3217
3217
|
t = "Invalid function arguments";
|
|
3218
3218
|
break;
|
|
3219
|
-
case
|
|
3219
|
+
case S.invalid_return_type:
|
|
3220
3220
|
t = "Invalid function return type";
|
|
3221
3221
|
break;
|
|
3222
|
-
case
|
|
3222
|
+
case S.invalid_date:
|
|
3223
3223
|
t = "Invalid date";
|
|
3224
3224
|
break;
|
|
3225
|
-
case
|
|
3225
|
+
case S.invalid_string:
|
|
3226
3226
|
typeof n.validation == "object" ? "includes" in n.validation ? (t = `Invalid input: must include "${n.validation.includes}"`, typeof n.validation.position == "number" && (t = `${t} at one or more positions greater than or equal to ${n.validation.position}`)) : "startsWith" in n.validation ? t = `Invalid input: must start with "${n.validation.startsWith}"` : "endsWith" in n.validation ? t = `Invalid input: must end with "${n.validation.endsWith}"` : K.assertNever(n.validation) : n.validation !== "regex" ? t = `Invalid ${n.validation}` : t = "Invalid";
|
|
3227
3227
|
break;
|
|
3228
|
-
case
|
|
3228
|
+
case S.too_small:
|
|
3229
3229
|
n.type === "array" ? t = `Array must contain ${n.exact ? "exactly" : n.inclusive ? "at least" : "more than"} ${n.minimum} element(s)` : n.type === "string" ? t = `String must contain ${n.exact ? "exactly" : n.inclusive ? "at least" : "over"} ${n.minimum} character(s)` : n.type === "number" ? t = `Number must be ${n.exact ? "exactly equal to " : n.inclusive ? "greater than or equal to " : "greater than "}${n.minimum}` : n.type === "bigint" ? t = `Number must be ${n.exact ? "exactly equal to " : n.inclusive ? "greater than or equal to " : "greater than "}${n.minimum}` : n.type === "date" ? t = `Date must be ${n.exact ? "exactly equal to " : n.inclusive ? "greater than or equal to " : "greater than "}${new Date(Number(n.minimum))}` : t = "Invalid input";
|
|
3230
3230
|
break;
|
|
3231
|
-
case
|
|
3231
|
+
case S.too_big:
|
|
3232
3232
|
n.type === "array" ? t = `Array must contain ${n.exact ? "exactly" : n.inclusive ? "at most" : "less than"} ${n.maximum} element(s)` : n.type === "string" ? t = `String must contain ${n.exact ? "exactly" : n.inclusive ? "at most" : "under"} ${n.maximum} character(s)` : n.type === "number" ? t = `Number must be ${n.exact ? "exactly" : n.inclusive ? "less than or equal to" : "less than"} ${n.maximum}` : n.type === "bigint" ? t = `BigInt must be ${n.exact ? "exactly" : n.inclusive ? "less than or equal to" : "less than"} ${n.maximum}` : n.type === "date" ? t = `Date must be ${n.exact ? "exactly" : n.inclusive ? "smaller than or equal to" : "smaller than"} ${new Date(Number(n.maximum))}` : t = "Invalid input";
|
|
3233
3233
|
break;
|
|
3234
|
-
case
|
|
3234
|
+
case S.custom:
|
|
3235
3235
|
t = "Invalid input";
|
|
3236
3236
|
break;
|
|
3237
|
-
case
|
|
3237
|
+
case S.invalid_intersection_types:
|
|
3238
3238
|
t = "Intersection results could not be merged";
|
|
3239
3239
|
break;
|
|
3240
|
-
case
|
|
3240
|
+
case S.not_multiple_of:
|
|
3241
3241
|
t = `Number must be a multiple of ${n.multipleOf}`;
|
|
3242
3242
|
break;
|
|
3243
|
-
case
|
|
3243
|
+
case S.not_finite:
|
|
3244
3244
|
t = "Number must be finite";
|
|
3245
3245
|
break;
|
|
3246
3246
|
default:
|
|
@@ -3334,7 +3334,7 @@ class Ae {
|
|
|
3334
3334
|
}
|
|
3335
3335
|
const R = Object.freeze({
|
|
3336
3336
|
status: "aborted"
|
|
3337
|
-
}), kt = (n) => ({ status: "dirty", value: n }), ze = (n) => ({ status: "valid", value: n }), ti = (n) => n.status === "aborted", ni = (n) => n.status === "dirty",
|
|
3337
|
+
}), kt = (n) => ({ status: "dirty", value: n }), ze = (n) => ({ status: "valid", value: n }), ti = (n) => n.status === "aborted", ni = (n) => n.status === "dirty", St = (n) => n.status === "valid", qt = (n) => typeof Promise < "u" && n instanceof Promise;
|
|
3338
3338
|
var C;
|
|
3339
3339
|
(function(n) {
|
|
3340
3340
|
n.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, n.toString = (e) => typeof e == "string" ? e : e == null ? void 0 : e.message;
|
|
@@ -3348,7 +3348,7 @@ class tt {
|
|
|
3348
3348
|
}
|
|
3349
3349
|
}
|
|
3350
3350
|
const Ti = (n, e) => {
|
|
3351
|
-
if (
|
|
3351
|
+
if (St(e))
|
|
3352
3352
|
return { success: !0, data: e.value };
|
|
3353
3353
|
if (!n.common.issues.length)
|
|
3354
3354
|
throw new Error("Validation failed but no issues detected.");
|
|
@@ -3450,7 +3450,7 @@ class $ {
|
|
|
3450
3450
|
if (!this["~standard"].async)
|
|
3451
3451
|
try {
|
|
3452
3452
|
const s = this._parseSync({ data: e, path: [], parent: t });
|
|
3453
|
-
return
|
|
3453
|
+
return St(s) ? {
|
|
3454
3454
|
value: s.value
|
|
3455
3455
|
} : {
|
|
3456
3456
|
issues: t.common.issues
|
|
@@ -3461,7 +3461,7 @@ class $ {
|
|
|
3461
3461
|
async: !0
|
|
3462
3462
|
};
|
|
3463
3463
|
}
|
|
3464
|
-
return this._parseAsync({ data: e, path: [], parent: t }).then((s) =>
|
|
3464
|
+
return this._parseAsync({ data: e, path: [], parent: t }).then((s) => St(s) ? {
|
|
3465
3465
|
value: s.value
|
|
3466
3466
|
} : {
|
|
3467
3467
|
issues: t.common.issues
|
|
@@ -3492,7 +3492,7 @@ class $ {
|
|
|
3492
3492
|
const i = (o) => typeof t == "string" || typeof t > "u" ? { message: t } : typeof t == "function" ? t(o) : t;
|
|
3493
3493
|
return this._refinement((o, s) => {
|
|
3494
3494
|
const l = e(o), d = () => s.addIssue({
|
|
3495
|
-
code:
|
|
3495
|
+
code: S.custom,
|
|
3496
3496
|
...i(o)
|
|
3497
3497
|
});
|
|
3498
3498
|
return typeof Promise < "u" && l instanceof Promise ? l.then((u) => u ? !0 : (d(), !1)) : l ? !0 : (d(), !1);
|
|
@@ -3557,7 +3557,7 @@ class $ {
|
|
|
3557
3557
|
});
|
|
3558
3558
|
}
|
|
3559
3559
|
brand() {
|
|
3560
|
-
return new
|
|
3560
|
+
return new Si({
|
|
3561
3561
|
typeName: U.ZodBranded,
|
|
3562
3562
|
type: this,
|
|
3563
3563
|
...q(this._def)
|
|
@@ -3580,7 +3580,7 @@ class $ {
|
|
|
3580
3580
|
});
|
|
3581
3581
|
}
|
|
3582
3582
|
pipe(e) {
|
|
3583
|
-
return
|
|
3583
|
+
return Nn.create(this, e);
|
|
3584
3584
|
}
|
|
3585
3585
|
readonly() {
|
|
3586
3586
|
return Xt.create(this);
|
|
@@ -3633,7 +3633,7 @@ class Xe extends $ {
|
|
|
3633
3633
|
if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== T.string) {
|
|
3634
3634
|
const s = this._getOrReturnCtx(e);
|
|
3635
3635
|
return k(s, {
|
|
3636
|
-
code:
|
|
3636
|
+
code: S.invalid_type,
|
|
3637
3637
|
expected: T.string,
|
|
3638
3638
|
received: s.parsedType
|
|
3639
3639
|
}), R;
|
|
@@ -3643,7 +3643,7 @@ class Xe extends $ {
|
|
|
3643
3643
|
for (const s of this._def.checks)
|
|
3644
3644
|
if (s.kind === "min")
|
|
3645
3645
|
e.data.length < s.value && (o = this._getOrReturnCtx(e, o), k(o, {
|
|
3646
|
-
code:
|
|
3646
|
+
code: S.too_small,
|
|
3647
3647
|
minimum: s.value,
|
|
3648
3648
|
type: "string",
|
|
3649
3649
|
inclusive: !0,
|
|
@@ -3652,7 +3652,7 @@ class Xe extends $ {
|
|
|
3652
3652
|
}), i.dirty());
|
|
3653
3653
|
else if (s.kind === "max")
|
|
3654
3654
|
e.data.length > s.value && (o = this._getOrReturnCtx(e, o), k(o, {
|
|
3655
|
-
code:
|
|
3655
|
+
code: S.too_big,
|
|
3656
3656
|
maximum: s.value,
|
|
3657
3657
|
type: "string",
|
|
3658
3658
|
inclusive: !0,
|
|
@@ -3662,14 +3662,14 @@ class Xe extends $ {
|
|
|
3662
3662
|
else if (s.kind === "length") {
|
|
3663
3663
|
const l = e.data.length > s.value, d = e.data.length < s.value;
|
|
3664
3664
|
(l || d) && (o = this._getOrReturnCtx(e, o), l ? k(o, {
|
|
3665
|
-
code:
|
|
3665
|
+
code: S.too_big,
|
|
3666
3666
|
maximum: s.value,
|
|
3667
3667
|
type: "string",
|
|
3668
3668
|
inclusive: !0,
|
|
3669
3669
|
exact: !0,
|
|
3670
3670
|
message: s.message
|
|
3671
3671
|
}) : d && k(o, {
|
|
3672
|
-
code:
|
|
3672
|
+
code: S.too_small,
|
|
3673
3673
|
minimum: s.value,
|
|
3674
3674
|
type: "string",
|
|
3675
3675
|
inclusive: !0,
|
|
@@ -3679,43 +3679,43 @@ class Xe extends $ {
|
|
|
3679
3679
|
} else if (s.kind === "email")
|
|
3680
3680
|
Pr.test(e.data) || (o = this._getOrReturnCtx(e, o), k(o, {
|
|
3681
3681
|
validation: "email",
|
|
3682
|
-
code:
|
|
3682
|
+
code: S.invalid_string,
|
|
3683
3683
|
message: s.message
|
|
3684
3684
|
}), i.dirty());
|
|
3685
3685
|
else if (s.kind === "emoji")
|
|
3686
3686
|
Rn || (Rn = new RegExp(qr, "u")), Rn.test(e.data) || (o = this._getOrReturnCtx(e, o), k(o, {
|
|
3687
3687
|
validation: "emoji",
|
|
3688
|
-
code:
|
|
3688
|
+
code: S.invalid_string,
|
|
3689
3689
|
message: s.message
|
|
3690
3690
|
}), i.dirty());
|
|
3691
3691
|
else if (s.kind === "uuid")
|
|
3692
3692
|
Ur.test(e.data) || (o = this._getOrReturnCtx(e, o), k(o, {
|
|
3693
3693
|
validation: "uuid",
|
|
3694
|
-
code:
|
|
3694
|
+
code: S.invalid_string,
|
|
3695
3695
|
message: s.message
|
|
3696
3696
|
}), i.dirty());
|
|
3697
3697
|
else if (s.kind === "nanoid")
|
|
3698
3698
|
Fr.test(e.data) || (o = this._getOrReturnCtx(e, o), k(o, {
|
|
3699
3699
|
validation: "nanoid",
|
|
3700
|
-
code:
|
|
3700
|
+
code: S.invalid_string,
|
|
3701
3701
|
message: s.message
|
|
3702
3702
|
}), i.dirty());
|
|
3703
3703
|
else if (s.kind === "cuid")
|
|
3704
3704
|
Dr.test(e.data) || (o = this._getOrReturnCtx(e, o), k(o, {
|
|
3705
3705
|
validation: "cuid",
|
|
3706
|
-
code:
|
|
3706
|
+
code: S.invalid_string,
|
|
3707
3707
|
message: s.message
|
|
3708
3708
|
}), i.dirty());
|
|
3709
3709
|
else if (s.kind === "cuid2")
|
|
3710
3710
|
Lr.test(e.data) || (o = this._getOrReturnCtx(e, o), k(o, {
|
|
3711
3711
|
validation: "cuid2",
|
|
3712
|
-
code:
|
|
3712
|
+
code: S.invalid_string,
|
|
3713
3713
|
message: s.message
|
|
3714
3714
|
}), i.dirty());
|
|
3715
3715
|
else if (s.kind === "ulid")
|
|
3716
3716
|
Rr.test(e.data) || (o = this._getOrReturnCtx(e, o), k(o, {
|
|
3717
3717
|
validation: "ulid",
|
|
3718
|
-
code:
|
|
3718
|
+
code: S.invalid_string,
|
|
3719
3719
|
message: s.message
|
|
3720
3720
|
}), i.dirty());
|
|
3721
3721
|
else if (s.kind === "url")
|
|
@@ -3724,61 +3724,61 @@ class Xe extends $ {
|
|
|
3724
3724
|
} catch {
|
|
3725
3725
|
o = this._getOrReturnCtx(e, o), k(o, {
|
|
3726
3726
|
validation: "url",
|
|
3727
|
-
code:
|
|
3727
|
+
code: S.invalid_string,
|
|
3728
3728
|
message: s.message
|
|
3729
3729
|
}), i.dirty();
|
|
3730
3730
|
}
|
|
3731
3731
|
else s.kind === "regex" ? (s.regex.lastIndex = 0, s.regex.test(e.data) || (o = this._getOrReturnCtx(e, o), k(o, {
|
|
3732
3732
|
validation: "regex",
|
|
3733
|
-
code:
|
|
3733
|
+
code: S.invalid_string,
|
|
3734
3734
|
message: s.message
|
|
3735
3735
|
}), i.dirty())) : s.kind === "trim" ? e.data = e.data.trim() : s.kind === "includes" ? e.data.includes(s.value, s.position) || (o = this._getOrReturnCtx(e, o), k(o, {
|
|
3736
|
-
code:
|
|
3736
|
+
code: S.invalid_string,
|
|
3737
3737
|
validation: { includes: s.value, position: s.position },
|
|
3738
3738
|
message: s.message
|
|
3739
3739
|
}), i.dirty()) : s.kind === "toLowerCase" ? e.data = e.data.toLowerCase() : s.kind === "toUpperCase" ? e.data = e.data.toUpperCase() : s.kind === "startsWith" ? e.data.startsWith(s.value) || (o = this._getOrReturnCtx(e, o), k(o, {
|
|
3740
|
-
code:
|
|
3740
|
+
code: S.invalid_string,
|
|
3741
3741
|
validation: { startsWith: s.value },
|
|
3742
3742
|
message: s.message
|
|
3743
3743
|
}), i.dirty()) : s.kind === "endsWith" ? e.data.endsWith(s.value) || (o = this._getOrReturnCtx(e, o), k(o, {
|
|
3744
|
-
code:
|
|
3744
|
+
code: S.invalid_string,
|
|
3745
3745
|
validation: { endsWith: s.value },
|
|
3746
3746
|
message: s.message
|
|
3747
3747
|
}), i.dirty()) : s.kind === "datetime" ? gs(s).test(e.data) || (o = this._getOrReturnCtx(e, o), k(o, {
|
|
3748
|
-
code:
|
|
3748
|
+
code: S.invalid_string,
|
|
3749
3749
|
validation: "datetime",
|
|
3750
3750
|
message: s.message
|
|
3751
3751
|
}), i.dirty()) : s.kind === "date" ? Kr.test(e.data) || (o = this._getOrReturnCtx(e, o), k(o, {
|
|
3752
|
-
code:
|
|
3752
|
+
code: S.invalid_string,
|
|
3753
3753
|
validation: "date",
|
|
3754
3754
|
message: s.message
|
|
3755
3755
|
}), i.dirty()) : s.kind === "time" ? Wr(s).test(e.data) || (o = this._getOrReturnCtx(e, o), k(o, {
|
|
3756
|
-
code:
|
|
3756
|
+
code: S.invalid_string,
|
|
3757
3757
|
validation: "time",
|
|
3758
3758
|
message: s.message
|
|
3759
3759
|
}), i.dirty()) : s.kind === "duration" ? Mr.test(e.data) || (o = this._getOrReturnCtx(e, o), k(o, {
|
|
3760
3760
|
validation: "duration",
|
|
3761
|
-
code:
|
|
3761
|
+
code: S.invalid_string,
|
|
3762
3762
|
message: s.message
|
|
3763
3763
|
}), i.dirty()) : s.kind === "ip" ? Gr(e.data, s.version) || (o = this._getOrReturnCtx(e, o), k(o, {
|
|
3764
3764
|
validation: "ip",
|
|
3765
|
-
code:
|
|
3765
|
+
code: S.invalid_string,
|
|
3766
3766
|
message: s.message
|
|
3767
3767
|
}), i.dirty()) : s.kind === "jwt" ? Jr(e.data, s.alg) || (o = this._getOrReturnCtx(e, o), k(o, {
|
|
3768
3768
|
validation: "jwt",
|
|
3769
|
-
code:
|
|
3769
|
+
code: S.invalid_string,
|
|
3770
3770
|
message: s.message
|
|
3771
3771
|
}), i.dirty()) : s.kind === "cidr" ? Qr(e.data, s.version) || (o = this._getOrReturnCtx(e, o), k(o, {
|
|
3772
3772
|
validation: "cidr",
|
|
3773
|
-
code:
|
|
3773
|
+
code: S.invalid_string,
|
|
3774
3774
|
message: s.message
|
|
3775
3775
|
}), i.dirty()) : s.kind === "base64" ? Hr.test(e.data) || (o = this._getOrReturnCtx(e, o), k(o, {
|
|
3776
3776
|
validation: "base64",
|
|
3777
|
-
code:
|
|
3777
|
+
code: S.invalid_string,
|
|
3778
3778
|
message: s.message
|
|
3779
3779
|
}), i.dirty()) : s.kind === "base64url" ? Zr.test(e.data) || (o = this._getOrReturnCtx(e, o), k(o, {
|
|
3780
3780
|
validation: "base64url",
|
|
3781
|
-
code:
|
|
3781
|
+
code: S.invalid_string,
|
|
3782
3782
|
message: s.message
|
|
3783
3783
|
}), i.dirty()) : K.assertNever(s);
|
|
3784
3784
|
return { status: i.value, value: e.data };
|
|
@@ -3786,7 +3786,7 @@ class Xe extends $ {
|
|
|
3786
3786
|
_regex(e, t, i) {
|
|
3787
3787
|
return this.refinement((o) => e.test(o), {
|
|
3788
3788
|
validation: t,
|
|
3789
|
-
code:
|
|
3789
|
+
code: S.invalid_string,
|
|
3790
3790
|
...C.errToObj(i)
|
|
3791
3791
|
});
|
|
3792
3792
|
}
|
|
@@ -4015,7 +4015,7 @@ function Xr(n, e) {
|
|
|
4015
4015
|
const t = (n.toString().split(".")[1] || "").length, i = (e.toString().split(".")[1] || "").length, o = t > i ? t : i, s = Number.parseInt(n.toFixed(o).replace(".", "")), l = Number.parseInt(e.toFixed(o).replace(".", ""));
|
|
4016
4016
|
return s % l / 10 ** o;
|
|
4017
4017
|
}
|
|
4018
|
-
class
|
|
4018
|
+
class Nt extends $ {
|
|
4019
4019
|
constructor() {
|
|
4020
4020
|
super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
|
|
4021
4021
|
}
|
|
@@ -4023,7 +4023,7 @@ class St extends $ {
|
|
|
4023
4023
|
if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !== T.number) {
|
|
4024
4024
|
const s = this._getOrReturnCtx(e);
|
|
4025
4025
|
return k(s, {
|
|
4026
|
-
code:
|
|
4026
|
+
code: S.invalid_type,
|
|
4027
4027
|
expected: T.number,
|
|
4028
4028
|
received: s.parsedType
|
|
4029
4029
|
}), R;
|
|
@@ -4032,30 +4032,30 @@ class St extends $ {
|
|
|
4032
4032
|
const o = new Ae();
|
|
4033
4033
|
for (const s of this._def.checks)
|
|
4034
4034
|
s.kind === "int" ? K.isInteger(e.data) || (i = this._getOrReturnCtx(e, i), k(i, {
|
|
4035
|
-
code:
|
|
4035
|
+
code: S.invalid_type,
|
|
4036
4036
|
expected: "integer",
|
|
4037
4037
|
received: "float",
|
|
4038
4038
|
message: s.message
|
|
4039
4039
|
}), o.dirty()) : s.kind === "min" ? (s.inclusive ? e.data < s.value : e.data <= s.value) && (i = this._getOrReturnCtx(e, i), k(i, {
|
|
4040
|
-
code:
|
|
4040
|
+
code: S.too_small,
|
|
4041
4041
|
minimum: s.value,
|
|
4042
4042
|
type: "number",
|
|
4043
4043
|
inclusive: s.inclusive,
|
|
4044
4044
|
exact: !1,
|
|
4045
4045
|
message: s.message
|
|
4046
4046
|
}), o.dirty()) : s.kind === "max" ? (s.inclusive ? e.data > s.value : e.data >= s.value) && (i = this._getOrReturnCtx(e, i), k(i, {
|
|
4047
|
-
code:
|
|
4047
|
+
code: S.too_big,
|
|
4048
4048
|
maximum: s.value,
|
|
4049
4049
|
type: "number",
|
|
4050
4050
|
inclusive: s.inclusive,
|
|
4051
4051
|
exact: !1,
|
|
4052
4052
|
message: s.message
|
|
4053
4053
|
}), o.dirty()) : s.kind === "multipleOf" ? Xr(e.data, s.value) !== 0 && (i = this._getOrReturnCtx(e, i), k(i, {
|
|
4054
|
-
code:
|
|
4054
|
+
code: S.not_multiple_of,
|
|
4055
4055
|
multipleOf: s.value,
|
|
4056
4056
|
message: s.message
|
|
4057
4057
|
}), o.dirty()) : s.kind === "finite" ? Number.isFinite(e.data) || (i = this._getOrReturnCtx(e, i), k(i, {
|
|
4058
|
-
code:
|
|
4058
|
+
code: S.not_finite,
|
|
4059
4059
|
message: s.message
|
|
4060
4060
|
}), o.dirty()) : K.assertNever(s);
|
|
4061
4061
|
return { status: o.value, value: e.data };
|
|
@@ -4073,7 +4073,7 @@ class St extends $ {
|
|
|
4073
4073
|
return this.setLimit("max", e, !1, C.toString(t));
|
|
4074
4074
|
}
|
|
4075
4075
|
setLimit(e, t, i, o) {
|
|
4076
|
-
return new
|
|
4076
|
+
return new Nt({
|
|
4077
4077
|
...this._def,
|
|
4078
4078
|
checks: [
|
|
4079
4079
|
...this._def.checks,
|
|
@@ -4087,7 +4087,7 @@ class St extends $ {
|
|
|
4087
4087
|
});
|
|
4088
4088
|
}
|
|
4089
4089
|
_addCheck(e) {
|
|
4090
|
-
return new
|
|
4090
|
+
return new Nt({
|
|
4091
4091
|
...this._def,
|
|
4092
4092
|
checks: [...this._def.checks, e]
|
|
4093
4093
|
});
|
|
@@ -4181,7 +4181,7 @@ class St extends $ {
|
|
|
4181
4181
|
return Number.isFinite(t) && Number.isFinite(e);
|
|
4182
4182
|
}
|
|
4183
4183
|
}
|
|
4184
|
-
|
|
4184
|
+
Nt.create = (n) => new Nt({
|
|
4185
4185
|
checks: [],
|
|
4186
4186
|
typeName: U.ZodNumber,
|
|
4187
4187
|
coerce: (n == null ? void 0 : n.coerce) || !1,
|
|
@@ -4204,19 +4204,19 @@ class Tt extends $ {
|
|
|
4204
4204
|
const o = new Ae();
|
|
4205
4205
|
for (const s of this._def.checks)
|
|
4206
4206
|
s.kind === "min" ? (s.inclusive ? e.data < s.value : e.data <= s.value) && (i = this._getOrReturnCtx(e, i), k(i, {
|
|
4207
|
-
code:
|
|
4207
|
+
code: S.too_small,
|
|
4208
4208
|
type: "bigint",
|
|
4209
4209
|
minimum: s.value,
|
|
4210
4210
|
inclusive: s.inclusive,
|
|
4211
4211
|
message: s.message
|
|
4212
4212
|
}), o.dirty()) : s.kind === "max" ? (s.inclusive ? e.data > s.value : e.data >= s.value) && (i = this._getOrReturnCtx(e, i), k(i, {
|
|
4213
|
-
code:
|
|
4213
|
+
code: S.too_big,
|
|
4214
4214
|
type: "bigint",
|
|
4215
4215
|
maximum: s.value,
|
|
4216
4216
|
inclusive: s.inclusive,
|
|
4217
4217
|
message: s.message
|
|
4218
4218
|
}), o.dirty()) : s.kind === "multipleOf" ? e.data % s.value !== BigInt(0) && (i = this._getOrReturnCtx(e, i), k(i, {
|
|
4219
|
-
code:
|
|
4219
|
+
code: S.not_multiple_of,
|
|
4220
4220
|
multipleOf: s.value,
|
|
4221
4221
|
message: s.message
|
|
4222
4222
|
}), o.dirty()) : K.assertNever(s);
|
|
@@ -4225,7 +4225,7 @@ class Tt extends $ {
|
|
|
4225
4225
|
_getInvalidInput(e) {
|
|
4226
4226
|
const t = this._getOrReturnCtx(e);
|
|
4227
4227
|
return k(t, {
|
|
4228
|
-
code:
|
|
4228
|
+
code: S.invalid_type,
|
|
4229
4229
|
expected: T.bigint,
|
|
4230
4230
|
received: t.parsedType
|
|
4231
4231
|
}), R;
|
|
@@ -4325,7 +4325,7 @@ class hn extends $ {
|
|
|
4325
4325
|
if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== T.boolean) {
|
|
4326
4326
|
const i = this._getOrReturnCtx(e);
|
|
4327
4327
|
return k(i, {
|
|
4328
|
-
code:
|
|
4328
|
+
code: S.invalid_type,
|
|
4329
4329
|
expected: T.boolean,
|
|
4330
4330
|
received: i.parsedType
|
|
4331
4331
|
}), R;
|
|
@@ -4343,7 +4343,7 @@ class Bt extends $ {
|
|
|
4343
4343
|
if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== T.date) {
|
|
4344
4344
|
const s = this._getOrReturnCtx(e);
|
|
4345
4345
|
return k(s, {
|
|
4346
|
-
code:
|
|
4346
|
+
code: S.invalid_type,
|
|
4347
4347
|
expected: T.date,
|
|
4348
4348
|
received: s.parsedType
|
|
4349
4349
|
}), R;
|
|
@@ -4351,21 +4351,21 @@ class Bt extends $ {
|
|
|
4351
4351
|
if (Number.isNaN(e.data.getTime())) {
|
|
4352
4352
|
const s = this._getOrReturnCtx(e);
|
|
4353
4353
|
return k(s, {
|
|
4354
|
-
code:
|
|
4354
|
+
code: S.invalid_date
|
|
4355
4355
|
}), R;
|
|
4356
4356
|
}
|
|
4357
4357
|
const i = new Ae();
|
|
4358
4358
|
let o;
|
|
4359
4359
|
for (const s of this._def.checks)
|
|
4360
4360
|
s.kind === "min" ? e.data.getTime() < s.value && (o = this._getOrReturnCtx(e, o), k(o, {
|
|
4361
|
-
code:
|
|
4361
|
+
code: S.too_small,
|
|
4362
4362
|
message: s.message,
|
|
4363
4363
|
inclusive: !0,
|
|
4364
4364
|
exact: !1,
|
|
4365
4365
|
minimum: s.value,
|
|
4366
4366
|
type: "date"
|
|
4367
4367
|
}), i.dirty()) : s.kind === "max" ? e.data.getTime() > s.value && (o = this._getOrReturnCtx(e, o), k(o, {
|
|
4368
|
-
code:
|
|
4368
|
+
code: S.too_big,
|
|
4369
4369
|
message: s.message,
|
|
4370
4370
|
inclusive: !0,
|
|
4371
4371
|
exact: !1,
|
|
@@ -4421,7 +4421,7 @@ class ii extends $ {
|
|
|
4421
4421
|
if (this._getType(e) !== T.symbol) {
|
|
4422
4422
|
const i = this._getOrReturnCtx(e);
|
|
4423
4423
|
return k(i, {
|
|
4424
|
-
code:
|
|
4424
|
+
code: S.invalid_type,
|
|
4425
4425
|
expected: T.symbol,
|
|
4426
4426
|
received: i.parsedType
|
|
4427
4427
|
}), R;
|
|
@@ -4438,7 +4438,7 @@ class gn extends $ {
|
|
|
4438
4438
|
if (this._getType(e) !== T.undefined) {
|
|
4439
4439
|
const i = this._getOrReturnCtx(e);
|
|
4440
4440
|
return k(i, {
|
|
4441
|
-
code:
|
|
4441
|
+
code: S.invalid_type,
|
|
4442
4442
|
expected: T.undefined,
|
|
4443
4443
|
received: i.parsedType
|
|
4444
4444
|
}), R;
|
|
@@ -4455,7 +4455,7 @@ class $t extends $ {
|
|
|
4455
4455
|
if (this._getType(e) !== T.null) {
|
|
4456
4456
|
const i = this._getOrReturnCtx(e);
|
|
4457
4457
|
return k(i, {
|
|
4458
|
-
code:
|
|
4458
|
+
code: S.invalid_type,
|
|
4459
4459
|
expected: T.null,
|
|
4460
4460
|
received: i.parsedType
|
|
4461
4461
|
}), R;
|
|
@@ -4495,7 +4495,7 @@ class st extends $ {
|
|
|
4495
4495
|
_parse(e) {
|
|
4496
4496
|
const t = this._getOrReturnCtx(e);
|
|
4497
4497
|
return k(t, {
|
|
4498
|
-
code:
|
|
4498
|
+
code: S.invalid_type,
|
|
4499
4499
|
expected: T.never,
|
|
4500
4500
|
received: t.parsedType
|
|
4501
4501
|
}), R;
|
|
@@ -4510,7 +4510,7 @@ class oi extends $ {
|
|
|
4510
4510
|
if (this._getType(e) !== T.undefined) {
|
|
4511
4511
|
const i = this._getOrReturnCtx(e);
|
|
4512
4512
|
return k(i, {
|
|
4513
|
-
code:
|
|
4513
|
+
code: S.invalid_type,
|
|
4514
4514
|
expected: T.void,
|
|
4515
4515
|
received: i.parsedType
|
|
4516
4516
|
}), R;
|
|
@@ -4527,14 +4527,14 @@ class Je extends $ {
|
|
|
4527
4527
|
const { ctx: t, status: i } = this._processInputParams(e), o = this._def;
|
|
4528
4528
|
if (t.parsedType !== T.array)
|
|
4529
4529
|
return k(t, {
|
|
4530
|
-
code:
|
|
4530
|
+
code: S.invalid_type,
|
|
4531
4531
|
expected: T.array,
|
|
4532
4532
|
received: t.parsedType
|
|
4533
4533
|
}), R;
|
|
4534
4534
|
if (o.exactLength !== null) {
|
|
4535
4535
|
const l = t.data.length > o.exactLength.value, d = t.data.length < o.exactLength.value;
|
|
4536
4536
|
(l || d) && (k(t, {
|
|
4537
|
-
code: l ?
|
|
4537
|
+
code: l ? S.too_big : S.too_small,
|
|
4538
4538
|
minimum: d ? o.exactLength.value : void 0,
|
|
4539
4539
|
maximum: l ? o.exactLength.value : void 0,
|
|
4540
4540
|
type: "array",
|
|
@@ -4544,14 +4544,14 @@ class Je extends $ {
|
|
|
4544
4544
|
}), i.dirty());
|
|
4545
4545
|
}
|
|
4546
4546
|
if (o.minLength !== null && t.data.length < o.minLength.value && (k(t, {
|
|
4547
|
-
code:
|
|
4547
|
+
code: S.too_small,
|
|
4548
4548
|
minimum: o.minLength.value,
|
|
4549
4549
|
type: "array",
|
|
4550
4550
|
inclusive: !0,
|
|
4551
4551
|
exact: !1,
|
|
4552
4552
|
message: o.minLength.message
|
|
4553
4553
|
}), i.dirty()), o.maxLength !== null && t.data.length > o.maxLength.value && (k(t, {
|
|
4554
|
-
code:
|
|
4554
|
+
code: S.too_big,
|
|
4555
4555
|
maximum: o.maxLength.value,
|
|
4556
4556
|
type: "array",
|
|
4557
4557
|
inclusive: !0,
|
|
@@ -4595,12 +4595,12 @@ Je.create = (n, e) => new Je({
|
|
|
4595
4595
|
typeName: U.ZodArray,
|
|
4596
4596
|
...q(e)
|
|
4597
4597
|
});
|
|
4598
|
-
function
|
|
4598
|
+
function bt(n) {
|
|
4599
4599
|
if (n instanceof de) {
|
|
4600
4600
|
const e = {};
|
|
4601
4601
|
for (const t in n.shape) {
|
|
4602
4602
|
const i = n.shape[t];
|
|
4603
|
-
e[t] = Ye.create(
|
|
4603
|
+
e[t] = Ye.create(bt(i));
|
|
4604
4604
|
}
|
|
4605
4605
|
return new de({
|
|
4606
4606
|
...n._def,
|
|
@@ -4608,8 +4608,8 @@ function Et(n) {
|
|
|
4608
4608
|
});
|
|
4609
4609
|
} else return n instanceof Je ? new Je({
|
|
4610
4610
|
...n._def,
|
|
4611
|
-
type:
|
|
4612
|
-
}) : n instanceof Ye ? Ye.create(
|
|
4611
|
+
type: bt(n.element)
|
|
4612
|
+
}) : n instanceof Ye ? Ye.create(bt(n.unwrap())) : n instanceof ft ? ft.create(bt(n.unwrap())) : n instanceof ut ? ut.create(n.items.map((e) => bt(e))) : n;
|
|
4613
4613
|
}
|
|
4614
4614
|
class de extends $ {
|
|
4615
4615
|
constructor() {
|
|
@@ -4625,7 +4625,7 @@ class de extends $ {
|
|
|
4625
4625
|
if (this._getType(e) !== T.object) {
|
|
4626
4626
|
const f = this._getOrReturnCtx(e);
|
|
4627
4627
|
return k(f, {
|
|
4628
|
-
code:
|
|
4628
|
+
code: S.invalid_type,
|
|
4629
4629
|
expected: T.object,
|
|
4630
4630
|
received: f.parsedType
|
|
4631
4631
|
}), R;
|
|
@@ -4653,7 +4653,7 @@ class de extends $ {
|
|
|
4653
4653
|
});
|
|
4654
4654
|
else if (f === "strict")
|
|
4655
4655
|
d.length > 0 && (k(o, {
|
|
4656
|
-
code:
|
|
4656
|
+
code: S.unrecognized_keys,
|
|
4657
4657
|
keys: d
|
|
4658
4658
|
}), i.dirty());
|
|
4659
4659
|
else if (f !== "strip") throw new Error("Internal ZodObject error: invalid unknownKeys value.");
|
|
@@ -4845,7 +4845,7 @@ class de extends $ {
|
|
|
4845
4845
|
* @deprecated
|
|
4846
4846
|
*/
|
|
4847
4847
|
deepPartial() {
|
|
4848
|
-
return
|
|
4848
|
+
return bt(this);
|
|
4849
4849
|
}
|
|
4850
4850
|
partial(e) {
|
|
4851
4851
|
const t = {};
|
|
@@ -4911,7 +4911,7 @@ class Vt extends $ {
|
|
|
4911
4911
|
return t.common.issues.push(...d.ctx.common.issues), d.result;
|
|
4912
4912
|
const l = s.map((d) => new et(d.ctx.common.issues));
|
|
4913
4913
|
return k(t, {
|
|
4914
|
-
code:
|
|
4914
|
+
code: S.invalid_union,
|
|
4915
4915
|
unionErrors: l
|
|
4916
4916
|
}), R;
|
|
4917
4917
|
}
|
|
@@ -4958,7 +4958,7 @@ class Vt extends $ {
|
|
|
4958
4958
|
return t.common.issues.push(...s.ctx.common.issues), s.result;
|
|
4959
4959
|
const d = l.map((u) => new et(u));
|
|
4960
4960
|
return k(t, {
|
|
4961
|
-
code:
|
|
4961
|
+
code: S.invalid_union,
|
|
4962
4962
|
unionErrors: d
|
|
4963
4963
|
}), R;
|
|
4964
4964
|
}
|
|
@@ -4972,13 +4972,13 @@ Vt.create = (n, e) => new Vt({
|
|
|
4972
4972
|
typeName: U.ZodUnion,
|
|
4973
4973
|
...q(e)
|
|
4974
4974
|
});
|
|
4975
|
-
const ot = (n) => n instanceof yn ? ot(n.schema) : n instanceof nt ? ot(n.innerType()) : n instanceof Kt ? [n.value] : n instanceof pt ? n.options : n instanceof Wt ? K.objectValues(n.enum) : n instanceof Jt ? ot(n._def.innerType) : n instanceof gn ? [void 0] : n instanceof $t ? [null] : n instanceof Ye ? [void 0, ...ot(n.unwrap())] : n instanceof ft ? [null, ...ot(n.unwrap())] : n instanceof
|
|
4976
|
-
class
|
|
4975
|
+
const ot = (n) => n instanceof yn ? ot(n.schema) : n instanceof nt ? ot(n.innerType()) : n instanceof Kt ? [n.value] : n instanceof pt ? n.options : n instanceof Wt ? K.objectValues(n.enum) : n instanceof Jt ? ot(n._def.innerType) : n instanceof gn ? [void 0] : n instanceof $t ? [null] : n instanceof Ye ? [void 0, ...ot(n.unwrap())] : n instanceof ft ? [null, ...ot(n.unwrap())] : n instanceof Si || n instanceof Xt ? ot(n.unwrap()) : n instanceof Qt ? ot(n._def.innerType) : [];
|
|
4976
|
+
class Sn extends $ {
|
|
4977
4977
|
_parse(e) {
|
|
4978
4978
|
const { ctx: t } = this._processInputParams(e);
|
|
4979
4979
|
if (t.parsedType !== T.object)
|
|
4980
4980
|
return k(t, {
|
|
4981
|
-
code:
|
|
4981
|
+
code: S.invalid_type,
|
|
4982
4982
|
expected: T.object,
|
|
4983
4983
|
received: t.parsedType
|
|
4984
4984
|
}), R;
|
|
@@ -4992,7 +4992,7 @@ class Nn extends $ {
|
|
|
4992
4992
|
path: t.path,
|
|
4993
4993
|
parent: t
|
|
4994
4994
|
}) : (k(t, {
|
|
4995
|
-
code:
|
|
4995
|
+
code: S.invalid_union_discriminator,
|
|
4996
4996
|
options: Array.from(this.optionsMap.keys()),
|
|
4997
4997
|
path: [i]
|
|
4998
4998
|
}), R);
|
|
@@ -5026,7 +5026,7 @@ class Nn extends $ {
|
|
|
5026
5026
|
o.set(d, s);
|
|
5027
5027
|
}
|
|
5028
5028
|
}
|
|
5029
|
-
return new
|
|
5029
|
+
return new Sn({
|
|
5030
5030
|
typeName: U.ZodDiscriminatedUnion,
|
|
5031
5031
|
discriminator: e,
|
|
5032
5032
|
options: t,
|
|
@@ -5068,7 +5068,7 @@ class Ht extends $ {
|
|
|
5068
5068
|
return R;
|
|
5069
5069
|
const d = ai(s.value, l.value);
|
|
5070
5070
|
return d.valid ? ((ni(s) || ni(l)) && t.dirty(), { status: t.value, value: d.data }) : (k(i, {
|
|
5071
|
-
code:
|
|
5071
|
+
code: S.invalid_intersection_types
|
|
5072
5072
|
}), R);
|
|
5073
5073
|
};
|
|
5074
5074
|
return i.common.async ? Promise.all([
|
|
@@ -5104,20 +5104,20 @@ class ut extends $ {
|
|
|
5104
5104
|
const { status: t, ctx: i } = this._processInputParams(e);
|
|
5105
5105
|
if (i.parsedType !== T.array)
|
|
5106
5106
|
return k(i, {
|
|
5107
|
-
code:
|
|
5107
|
+
code: S.invalid_type,
|
|
5108
5108
|
expected: T.array,
|
|
5109
5109
|
received: i.parsedType
|
|
5110
5110
|
}), R;
|
|
5111
5111
|
if (i.data.length < this._def.items.length)
|
|
5112
5112
|
return k(i, {
|
|
5113
|
-
code:
|
|
5113
|
+
code: S.too_small,
|
|
5114
5114
|
minimum: this._def.items.length,
|
|
5115
5115
|
inclusive: !0,
|
|
5116
5116
|
exact: !1,
|
|
5117
5117
|
type: "array"
|
|
5118
5118
|
}), R;
|
|
5119
5119
|
!this._def.rest && i.data.length > this._def.items.length && (k(i, {
|
|
5120
|
-
code:
|
|
5120
|
+
code: S.too_big,
|
|
5121
5121
|
maximum: this._def.items.length,
|
|
5122
5122
|
inclusive: !0,
|
|
5123
5123
|
exact: !1,
|
|
@@ -5160,7 +5160,7 @@ class Zt extends $ {
|
|
|
5160
5160
|
const { status: t, ctx: i } = this._processInputParams(e);
|
|
5161
5161
|
if (i.parsedType !== T.object)
|
|
5162
5162
|
return k(i, {
|
|
5163
|
-
code:
|
|
5163
|
+
code: S.invalid_type,
|
|
5164
5164
|
expected: T.object,
|
|
5165
5165
|
received: i.parsedType
|
|
5166
5166
|
}), R;
|
|
@@ -5201,7 +5201,7 @@ class si extends $ {
|
|
|
5201
5201
|
const { status: t, ctx: i } = this._processInputParams(e);
|
|
5202
5202
|
if (i.parsedType !== T.map)
|
|
5203
5203
|
return k(i, {
|
|
5204
|
-
code:
|
|
5204
|
+
code: S.invalid_type,
|
|
5205
5205
|
expected: T.map,
|
|
5206
5206
|
received: i.parsedType
|
|
5207
5207
|
}), R;
|
|
@@ -5243,20 +5243,20 @@ class It extends $ {
|
|
|
5243
5243
|
const { status: t, ctx: i } = this._processInputParams(e);
|
|
5244
5244
|
if (i.parsedType !== T.set)
|
|
5245
5245
|
return k(i, {
|
|
5246
|
-
code:
|
|
5246
|
+
code: S.invalid_type,
|
|
5247
5247
|
expected: T.set,
|
|
5248
5248
|
received: i.parsedType
|
|
5249
5249
|
}), R;
|
|
5250
5250
|
const o = this._def;
|
|
5251
5251
|
o.minSize !== null && i.data.size < o.minSize.value && (k(i, {
|
|
5252
|
-
code:
|
|
5252
|
+
code: S.too_small,
|
|
5253
5253
|
minimum: o.minSize.value,
|
|
5254
5254
|
type: "set",
|
|
5255
5255
|
inclusive: !0,
|
|
5256
5256
|
exact: !1,
|
|
5257
5257
|
message: o.minSize.message
|
|
5258
5258
|
}), t.dirty()), o.maxSize !== null && i.data.size > o.maxSize.value && (k(i, {
|
|
5259
|
-
code:
|
|
5259
|
+
code: S.too_big,
|
|
5260
5260
|
maximum: o.maxSize.value,
|
|
5261
5261
|
type: "set",
|
|
5262
5262
|
inclusive: !0,
|
|
@@ -5322,7 +5322,7 @@ class Kt extends $ {
|
|
|
5322
5322
|
const t = this._getOrReturnCtx(e);
|
|
5323
5323
|
return k(t, {
|
|
5324
5324
|
received: t.data,
|
|
5325
|
-
code:
|
|
5325
|
+
code: S.invalid_literal,
|
|
5326
5326
|
expected: this._def.value
|
|
5327
5327
|
}), R;
|
|
5328
5328
|
}
|
|
@@ -5351,14 +5351,14 @@ class pt extends $ {
|
|
|
5351
5351
|
return k(t, {
|
|
5352
5352
|
expected: K.joinValues(i),
|
|
5353
5353
|
received: t.parsedType,
|
|
5354
|
-
code:
|
|
5354
|
+
code: S.invalid_type
|
|
5355
5355
|
}), R;
|
|
5356
5356
|
}
|
|
5357
5357
|
if (this._cache || (this._cache = new Set(this._def.values)), !this._cache.has(e.data)) {
|
|
5358
5358
|
const t = this._getOrReturnCtx(e), i = this._def.values;
|
|
5359
5359
|
return k(t, {
|
|
5360
5360
|
received: t.data,
|
|
5361
|
-
code:
|
|
5361
|
+
code: S.invalid_enum_value,
|
|
5362
5362
|
options: i
|
|
5363
5363
|
}), R;
|
|
5364
5364
|
}
|
|
@@ -5407,14 +5407,14 @@ class Wt extends $ {
|
|
|
5407
5407
|
return k(i, {
|
|
5408
5408
|
expected: K.joinValues(o),
|
|
5409
5409
|
received: i.parsedType,
|
|
5410
|
-
code:
|
|
5410
|
+
code: S.invalid_type
|
|
5411
5411
|
}), R;
|
|
5412
5412
|
}
|
|
5413
5413
|
if (this._cache || (this._cache = new Set(K.getValidEnumValues(this._def.values))), !this._cache.has(e.data)) {
|
|
5414
5414
|
const o = K.objectValues(t);
|
|
5415
5415
|
return k(i, {
|
|
5416
5416
|
received: i.data,
|
|
5417
|
-
code:
|
|
5417
|
+
code: S.invalid_enum_value,
|
|
5418
5418
|
options: o
|
|
5419
5419
|
}), R;
|
|
5420
5420
|
}
|
|
@@ -5437,7 +5437,7 @@ class Gt extends $ {
|
|
|
5437
5437
|
const { ctx: t } = this._processInputParams(e);
|
|
5438
5438
|
if (t.parsedType !== T.promise && t.common.async === !1)
|
|
5439
5439
|
return k(t, {
|
|
5440
|
-
code:
|
|
5440
|
+
code: S.invalid_type,
|
|
5441
5441
|
expected: T.promise,
|
|
5442
5442
|
received: t.parsedType
|
|
5443
5443
|
}), R;
|
|
@@ -5519,14 +5519,14 @@ class nt extends $ {
|
|
|
5519
5519
|
path: i.path,
|
|
5520
5520
|
parent: i
|
|
5521
5521
|
});
|
|
5522
|
-
if (!
|
|
5522
|
+
if (!St(l))
|
|
5523
5523
|
return R;
|
|
5524
5524
|
const d = o.transform(l.value, s);
|
|
5525
5525
|
if (d instanceof Promise)
|
|
5526
5526
|
throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");
|
|
5527
5527
|
return { status: t.value, value: d };
|
|
5528
5528
|
} else
|
|
5529
|
-
return this._def.schema._parseAsync({ data: i.data, path: i.path, parent: i }).then((l) =>
|
|
5529
|
+
return this._def.schema._parseAsync({ data: i.data, path: i.path, parent: i }).then((l) => St(l) ? Promise.resolve(o.transform(l.value, s)).then((d) => ({
|
|
5530
5530
|
status: t.value,
|
|
5531
5531
|
value: d
|
|
5532
5532
|
})) : R);
|
|
@@ -5639,7 +5639,7 @@ class ri extends $ {
|
|
|
5639
5639
|
if (this._getType(e) !== T.nan) {
|
|
5640
5640
|
const i = this._getOrReturnCtx(e);
|
|
5641
5641
|
return k(i, {
|
|
5642
|
-
code:
|
|
5642
|
+
code: S.invalid_type,
|
|
5643
5643
|
expected: T.nan,
|
|
5644
5644
|
received: i.parsedType
|
|
5645
5645
|
}), R;
|
|
@@ -5651,7 +5651,7 @@ ri.create = (n) => new ri({
|
|
|
5651
5651
|
typeName: U.ZodNaN,
|
|
5652
5652
|
...q(n)
|
|
5653
5653
|
});
|
|
5654
|
-
class
|
|
5654
|
+
class Si extends $ {
|
|
5655
5655
|
_parse(e) {
|
|
5656
5656
|
const { ctx: t } = this._processInputParams(e), i = t.data;
|
|
5657
5657
|
return this._def.type._parse({
|
|
@@ -5664,7 +5664,7 @@ class Ni extends $ {
|
|
|
5664
5664
|
return this._def.type;
|
|
5665
5665
|
}
|
|
5666
5666
|
}
|
|
5667
|
-
class
|
|
5667
|
+
class Nn extends $ {
|
|
5668
5668
|
_parse(e) {
|
|
5669
5669
|
const { status: t, ctx: i } = this._processInputParams(e);
|
|
5670
5670
|
if (i.common.async)
|
|
@@ -5697,7 +5697,7 @@ class Sn extends $ {
|
|
|
5697
5697
|
}
|
|
5698
5698
|
}
|
|
5699
5699
|
static create(e, t) {
|
|
5700
|
-
return new
|
|
5700
|
+
return new Nn({
|
|
5701
5701
|
in: e,
|
|
5702
5702
|
out: t,
|
|
5703
5703
|
typeName: U.ZodPipeline
|
|
@@ -5706,7 +5706,7 @@ class Sn extends $ {
|
|
|
5706
5706
|
}
|
|
5707
5707
|
class Xt extends $ {
|
|
5708
5708
|
_parse(e) {
|
|
5709
|
-
const t = this._def.innerType._parse(e), i = (o) => (
|
|
5709
|
+
const t = this._def.innerType._parse(e), i = (o) => (St(o) && (o.value = Object.freeze(o.value)), o);
|
|
5710
5710
|
return qt(t) ? t.then((o) => i(o)) : i(t);
|
|
5711
5711
|
}
|
|
5712
5712
|
unwrap() {
|
|
@@ -5725,12 +5725,12 @@ var U;
|
|
|
5725
5725
|
(function(n) {
|
|
5726
5726
|
n.ZodString = "ZodString", n.ZodNumber = "ZodNumber", n.ZodNaN = "ZodNaN", n.ZodBigInt = "ZodBigInt", n.ZodBoolean = "ZodBoolean", n.ZodDate = "ZodDate", n.ZodSymbol = "ZodSymbol", n.ZodUndefined = "ZodUndefined", n.ZodNull = "ZodNull", n.ZodAny = "ZodAny", n.ZodUnknown = "ZodUnknown", n.ZodNever = "ZodNever", n.ZodVoid = "ZodVoid", n.ZodArray = "ZodArray", n.ZodObject = "ZodObject", n.ZodUnion = "ZodUnion", n.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", n.ZodIntersection = "ZodIntersection", n.ZodTuple = "ZodTuple", n.ZodRecord = "ZodRecord", n.ZodMap = "ZodMap", n.ZodSet = "ZodSet", n.ZodFunction = "ZodFunction", n.ZodLazy = "ZodLazy", n.ZodLiteral = "ZodLiteral", n.ZodEnum = "ZodEnum", n.ZodEffects = "ZodEffects", n.ZodNativeEnum = "ZodNativeEnum", n.ZodOptional = "ZodOptional", n.ZodNullable = "ZodNullable", n.ZodDefault = "ZodDefault", n.ZodCatch = "ZodCatch", n.ZodPromise = "ZodPromise", n.ZodBranded = "ZodBranded", n.ZodPipeline = "ZodPipeline", n.ZodReadonly = "ZodReadonly";
|
|
5727
5727
|
})(U || (U = {}));
|
|
5728
|
-
const a = Xe.create, x =
|
|
5728
|
+
const a = Xe.create, x = Nt.create, h = hn.create, ys = $t.create, V = jt.create, Fe = mn.create;
|
|
5729
5729
|
st.create;
|
|
5730
|
-
const
|
|
5730
|
+
const N = Je.create, _ = de.create, Me = Vt.create, Ct = Sn.create;
|
|
5731
5731
|
Ht.create;
|
|
5732
5732
|
ut.create;
|
|
5733
|
-
const M = Zt.create, I = Kt.create,
|
|
5733
|
+
const M = Zt.create, I = Kt.create, E = pt.create, wt = Wt.create;
|
|
5734
5734
|
Gt.create;
|
|
5735
5735
|
Ye.create;
|
|
5736
5736
|
ft.create;
|
|
@@ -5745,11 +5745,11 @@ const vs = nt.createWithPreprocess, Yr = /* @__PURE__ */ Object.freeze(/* @__PUR
|
|
|
5745
5745
|
ZodArray: Je,
|
|
5746
5746
|
ZodBigInt: Tt,
|
|
5747
5747
|
ZodBoolean: hn,
|
|
5748
|
-
ZodBranded:
|
|
5748
|
+
ZodBranded: Si,
|
|
5749
5749
|
ZodCatch: Qt,
|
|
5750
5750
|
ZodDate: Bt,
|
|
5751
5751
|
ZodDefault: Jt,
|
|
5752
|
-
ZodDiscriminatedUnion:
|
|
5752
|
+
ZodDiscriminatedUnion: Sn,
|
|
5753
5753
|
ZodEffects: nt,
|
|
5754
5754
|
ZodEnum: pt,
|
|
5755
5755
|
ZodError: et,
|
|
@@ -5757,7 +5757,7 @@ const vs = nt.createWithPreprocess, Yr = /* @__PURE__ */ Object.freeze(/* @__PUR
|
|
|
5757
5757
|
return U;
|
|
5758
5758
|
},
|
|
5759
5759
|
ZodIntersection: Ht,
|
|
5760
|
-
ZodIssueCode:
|
|
5760
|
+
ZodIssueCode: S,
|
|
5761
5761
|
ZodLazy: yn,
|
|
5762
5762
|
ZodLiteral: Kt,
|
|
5763
5763
|
ZodMap: si,
|
|
@@ -5766,11 +5766,11 @@ const vs = nt.createWithPreprocess, Yr = /* @__PURE__ */ Object.freeze(/* @__PUR
|
|
|
5766
5766
|
ZodNever: st,
|
|
5767
5767
|
ZodNull: $t,
|
|
5768
5768
|
ZodNullable: ft,
|
|
5769
|
-
ZodNumber:
|
|
5769
|
+
ZodNumber: Nt,
|
|
5770
5770
|
ZodObject: de,
|
|
5771
5771
|
ZodOptional: Ye,
|
|
5772
5772
|
ZodParsedType: T,
|
|
5773
|
-
ZodPipeline:
|
|
5773
|
+
ZodPipeline: Nn,
|
|
5774
5774
|
ZodPromise: Gt,
|
|
5775
5775
|
ZodReadonly: Xt,
|
|
5776
5776
|
ZodRecord: Zt,
|
|
@@ -5787,19 +5787,19 @@ const vs = nt.createWithPreprocess, Yr = /* @__PURE__ */ Object.freeze(/* @__PUR
|
|
|
5787
5787
|
ZodVoid: oi,
|
|
5788
5788
|
addIssueToContext: k,
|
|
5789
5789
|
any: V,
|
|
5790
|
-
array:
|
|
5790
|
+
array: N,
|
|
5791
5791
|
boolean: h,
|
|
5792
5792
|
custom: li,
|
|
5793
5793
|
datetimeRegex: gs,
|
|
5794
5794
|
defaultErrorMap: fn,
|
|
5795
5795
|
discriminatedUnion: Ct,
|
|
5796
|
-
enum:
|
|
5796
|
+
enum: E,
|
|
5797
5797
|
getErrorMap: us,
|
|
5798
5798
|
getParsedType: at,
|
|
5799
5799
|
isAborted: ti,
|
|
5800
5800
|
isAsync: qt,
|
|
5801
5801
|
isDirty: ni,
|
|
5802
|
-
isValid:
|
|
5802
|
+
isValid: St,
|
|
5803
5803
|
literal: I,
|
|
5804
5804
|
makeIssue: ps,
|
|
5805
5805
|
nativeEnum: wt,
|
|
@@ -5825,21 +5825,21 @@ const He = _({
|
|
|
5825
5825
|
}), ws = _({
|
|
5826
5826
|
id: a(),
|
|
5827
5827
|
version: a().optional()
|
|
5828
|
-
}),
|
|
5828
|
+
}), Ss = _({
|
|
5829
5829
|
name: a(),
|
|
5830
5830
|
version: a()
|
|
5831
|
-
}),
|
|
5831
|
+
}), Ns = _({
|
|
5832
5832
|
name: a(),
|
|
5833
5833
|
// Optional on writes so PATCH callers can omit the value to preserve the
|
|
5834
5834
|
// existing secret. The adapter merges by name when value is missing.
|
|
5835
5835
|
value: a().optional()
|
|
5836
|
-
}),
|
|
5836
|
+
}), Es = _({
|
|
5837
5837
|
name: a().max(255),
|
|
5838
5838
|
code: a().max(1e5),
|
|
5839
|
-
supported_triggers:
|
|
5839
|
+
supported_triggers: N(ws).optional(),
|
|
5840
5840
|
runtime: a().max(50).optional(),
|
|
5841
|
-
dependencies:
|
|
5842
|
-
secrets:
|
|
5841
|
+
dependencies: N(Ss).optional(),
|
|
5842
|
+
secrets: N(Ns).optional(),
|
|
5843
5843
|
// Marks this action as a shared template owned by the control-plane tenant.
|
|
5844
5844
|
// Other tenants can opt-in by creating a row with the same `name` and
|
|
5845
5845
|
// `inherit: true`; at execute time the loader reads code from this row.
|
|
@@ -5849,17 +5849,17 @@ const He = _({
|
|
|
5849
5849
|
// The local `secrets` still override (local-first then upstream fallback).
|
|
5850
5850
|
inherit: h().optional()
|
|
5851
5851
|
});
|
|
5852
|
-
|
|
5853
|
-
status:
|
|
5852
|
+
Es.partial().extend({
|
|
5853
|
+
status: E(["draft", "built"]).optional(),
|
|
5854
5854
|
deployed_at: a().optional()
|
|
5855
5855
|
});
|
|
5856
|
-
|
|
5856
|
+
Es.extend({
|
|
5857
5857
|
id: a(),
|
|
5858
5858
|
tenant_id: a(),
|
|
5859
|
-
status:
|
|
5859
|
+
status: E(["draft", "built"]).default("built"),
|
|
5860
5860
|
deployed_at: a().optional(),
|
|
5861
5861
|
// Override secrets to return names only (no values) in responses
|
|
5862
|
-
secrets:
|
|
5862
|
+
secrets: N(
|
|
5863
5863
|
_({
|
|
5864
5864
|
name: a(),
|
|
5865
5865
|
value: a().optional()
|
|
@@ -5867,7 +5867,7 @@ bs.extend({
|
|
|
5867
5867
|
).optional(),
|
|
5868
5868
|
...He.shape
|
|
5869
5869
|
});
|
|
5870
|
-
const el = a(), tl =
|
|
5870
|
+
const el = a(), tl = E([
|
|
5871
5871
|
"unspecified",
|
|
5872
5872
|
"pending",
|
|
5873
5873
|
"final",
|
|
@@ -5884,19 +5884,19 @@ const el = a(), tl = b([
|
|
|
5884
5884
|
started_at: a(),
|
|
5885
5885
|
ended_at: a()
|
|
5886
5886
|
}), ol = _({
|
|
5887
|
-
level:
|
|
5887
|
+
level: E(["log", "info", "warn", "error", "debug"]),
|
|
5888
5888
|
message: a()
|
|
5889
|
-
}), al =
|
|
5889
|
+
}), al = N(
|
|
5890
5890
|
_({
|
|
5891
5891
|
action_name: a(),
|
|
5892
|
-
lines:
|
|
5892
|
+
lines: N(ol)
|
|
5893
5893
|
})
|
|
5894
5894
|
), sl = _({
|
|
5895
5895
|
id: a(),
|
|
5896
5896
|
tenant_id: a(),
|
|
5897
5897
|
trigger_id: el,
|
|
5898
5898
|
status: tl,
|
|
5899
|
-
results:
|
|
5899
|
+
results: N(il),
|
|
5900
5900
|
logs: al.optional(),
|
|
5901
5901
|
created_at: a(),
|
|
5902
5902
|
updated_at: a()
|
|
@@ -5910,9 +5910,9 @@ const rl = _({
|
|
|
5910
5910
|
action_id: a(),
|
|
5911
5911
|
code: a().max(1e5),
|
|
5912
5912
|
runtime: a().max(50).optional(),
|
|
5913
|
-
dependencies:
|
|
5914
|
-
secrets:
|
|
5915
|
-
supported_triggers:
|
|
5913
|
+
dependencies: N(Ss).optional(),
|
|
5914
|
+
secrets: N(Ns).optional(),
|
|
5915
|
+
supported_triggers: N(ws).optional(),
|
|
5916
5916
|
deployed: h().default(!0)
|
|
5917
5917
|
});
|
|
5918
5918
|
rl.extend({
|
|
@@ -5921,18 +5921,18 @@ rl.extend({
|
|
|
5921
5921
|
number: x().int(),
|
|
5922
5922
|
...He.shape
|
|
5923
5923
|
});
|
|
5924
|
-
const ll =
|
|
5924
|
+
const ll = E([
|
|
5925
5925
|
"user_action",
|
|
5926
5926
|
"admin_action",
|
|
5927
5927
|
"system",
|
|
5928
5928
|
"api"
|
|
5929
5929
|
]), dl = _({
|
|
5930
|
-
type:
|
|
5930
|
+
type: E(["user", "admin", "system", "api_key", "client_credentials"]),
|
|
5931
5931
|
id: a().optional(),
|
|
5932
5932
|
email: a().optional(),
|
|
5933
5933
|
org_id: a().optional(),
|
|
5934
5934
|
org_name: a().optional(),
|
|
5935
|
-
scopes:
|
|
5935
|
+
scopes: N(a()).optional(),
|
|
5936
5936
|
client_id: a().optional()
|
|
5937
5937
|
}), cl = _({
|
|
5938
5938
|
type: a(),
|
|
@@ -5986,22 +5986,22 @@ const ll = b([
|
|
|
5986
5986
|
hl.extend({
|
|
5987
5987
|
id: a()
|
|
5988
5988
|
});
|
|
5989
|
-
|
|
5990
|
-
|
|
5989
|
+
E(["AUTH0", "EMAIL", "REDIRECT"]);
|
|
5990
|
+
E([
|
|
5991
5991
|
"CREATE_USER",
|
|
5992
5992
|
"GET_USER",
|
|
5993
5993
|
"UPDATE_USER",
|
|
5994
5994
|
"SEND_REQUEST",
|
|
5995
5995
|
"SEND_EMAIL"
|
|
5996
5996
|
]);
|
|
5997
|
-
|
|
5997
|
+
E(["VERIFY_EMAIL"]);
|
|
5998
5998
|
const gl = _({
|
|
5999
5999
|
require_mx_record: h().optional(),
|
|
6000
6000
|
block_aliases: h().optional(),
|
|
6001
6001
|
block_free_emails: h().optional(),
|
|
6002
6002
|
block_disposable_emails: h().optional(),
|
|
6003
|
-
blocklist:
|
|
6004
|
-
allowlist:
|
|
6003
|
+
blocklist: N(a()).optional(),
|
|
6004
|
+
allowlist: N(a()).optional()
|
|
6005
6005
|
}), ml = _({
|
|
6006
6006
|
id: a(),
|
|
6007
6007
|
alias: a().max(100).optional(),
|
|
@@ -6025,7 +6025,7 @@ const gl = _({
|
|
|
6025
6025
|
email: a(),
|
|
6026
6026
|
rules: gl.optional()
|
|
6027
6027
|
})
|
|
6028
|
-
}), vl =
|
|
6028
|
+
}), vl = E(["change-email", "account", "custom"]), wl = _({
|
|
6029
6029
|
id: a(),
|
|
6030
6030
|
alias: a().max(100).optional(),
|
|
6031
6031
|
type: I("REDIRECT"),
|
|
@@ -6040,20 +6040,20 @@ const gl = _({
|
|
|
6040
6040
|
description: "Custom URL to redirect to when target is 'custom'"
|
|
6041
6041
|
})
|
|
6042
6042
|
})
|
|
6043
|
-
}),
|
|
6043
|
+
}), Sl = Me([
|
|
6044
6044
|
ml,
|
|
6045
6045
|
yl,
|
|
6046
6046
|
wl
|
|
6047
|
-
]),
|
|
6047
|
+
]), Nl = _({
|
|
6048
6048
|
name: a().min(1).max(150).openapi({
|
|
6049
6049
|
description: "The name of the flow"
|
|
6050
6050
|
}),
|
|
6051
6051
|
// Actions is an array of action steps (Auth0 stores as JSON blob)
|
|
6052
|
-
actions:
|
|
6052
|
+
actions: N(Sl).optional().default([]).openapi({
|
|
6053
6053
|
description: "The list of actions to execute in sequence"
|
|
6054
6054
|
})
|
|
6055
6055
|
});
|
|
6056
|
-
|
|
6056
|
+
Nl.extend({
|
|
6057
6057
|
...He.shape,
|
|
6058
6058
|
id: a().openapi({
|
|
6059
6059
|
description: "Unique identifier for the flow",
|
|
@@ -6083,7 +6083,7 @@ _({
|
|
|
6083
6083
|
length: x(),
|
|
6084
6084
|
total: x().optional()
|
|
6085
6085
|
});
|
|
6086
|
-
const
|
|
6086
|
+
const El = _({
|
|
6087
6087
|
email: a().optional(),
|
|
6088
6088
|
email_verified: h().optional(),
|
|
6089
6089
|
name: a().optional(),
|
|
@@ -6092,7 +6092,7 @@ const bl = _({
|
|
|
6092
6092
|
phone_number: a().optional(),
|
|
6093
6093
|
phone_verified: h().optional(),
|
|
6094
6094
|
family_name: a().optional()
|
|
6095
|
-
}).catchall(V()),
|
|
6095
|
+
}).catchall(V()), bl = _({
|
|
6096
6096
|
connection: a(),
|
|
6097
6097
|
user_id: a(),
|
|
6098
6098
|
provider: a(),
|
|
@@ -6105,7 +6105,7 @@ const bl = _({
|
|
|
6105
6105
|
access_token: a().optional(),
|
|
6106
6106
|
access_token_secret: a().optional(),
|
|
6107
6107
|
refresh_token: a().optional(),
|
|
6108
|
-
profileData:
|
|
6108
|
+
profileData: El.optional()
|
|
6109
6109
|
}), xl = _({
|
|
6110
6110
|
formatted: a().optional(),
|
|
6111
6111
|
// Full mailing address
|
|
@@ -6119,7 +6119,7 @@ const bl = _({
|
|
|
6119
6119
|
// Zip code or postal code
|
|
6120
6120
|
country: a().optional()
|
|
6121
6121
|
// Country name
|
|
6122
|
-
}).optional(),
|
|
6122
|
+
}).optional(), bs = _({
|
|
6123
6123
|
email: a().optional().transform((n) => n && n.toLowerCase()),
|
|
6124
6124
|
username: a().refine((n) => !n.includes("@"), {
|
|
6125
6125
|
message: 'Usernames must not contain "@". Use the email field for email addresses.'
|
|
@@ -6152,7 +6152,7 @@ const bl = _({
|
|
|
6152
6152
|
// e.g., "Europe/Paris"
|
|
6153
6153
|
// OIDC address claim (OIDC Core 5.1.1)
|
|
6154
6154
|
address: xl
|
|
6155
|
-
}), kl =
|
|
6155
|
+
}), kl = bs.extend({
|
|
6156
6156
|
email_verified: h().default(!1),
|
|
6157
6157
|
verify_email: h().optional(),
|
|
6158
6158
|
last_ip: a().optional(),
|
|
@@ -6183,14 +6183,14 @@ const bl = _({
|
|
|
6183
6183
|
is_social: h(),
|
|
6184
6184
|
email: a().optional(),
|
|
6185
6185
|
login_count: x().default(0),
|
|
6186
|
-
identities:
|
|
6186
|
+
identities: N(bl).optional()
|
|
6187
6187
|
});
|
|
6188
6188
|
Ol.omit({
|
|
6189
6189
|
registration_completed_at: !0
|
|
6190
6190
|
});
|
|
6191
|
-
|
|
6191
|
+
bs.extend({
|
|
6192
6192
|
login_count: x(),
|
|
6193
|
-
multifactor:
|
|
6193
|
+
multifactor: N(a()).optional(),
|
|
6194
6194
|
last_ip: a().optional(),
|
|
6195
6195
|
last_login: a().optional(),
|
|
6196
6196
|
user_id: a()
|
|
@@ -6217,7 +6217,7 @@ const Il = _({
|
|
|
6217
6217
|
client_secret: a().default(() => Tl()).optional().openapi({
|
|
6218
6218
|
description: "Client secret (which you must not make public)."
|
|
6219
6219
|
}),
|
|
6220
|
-
app_type:
|
|
6220
|
+
app_type: E([
|
|
6221
6221
|
"native",
|
|
6222
6222
|
"spa",
|
|
6223
6223
|
"regular_web",
|
|
@@ -6258,25 +6258,25 @@ const Il = _({
|
|
|
6258
6258
|
auth0_conformant: h().default(!0).openapi({
|
|
6259
6259
|
description: "Whether this client follows Auth0-compatible behavior (true) or strict OIDC behavior (false). When true, profile/email claims are included in the ID token when scopes are requested. When false, these claims are only available from the userinfo endpoint (strict OIDC 5.4 compliance)."
|
|
6260
6260
|
}),
|
|
6261
|
-
callbacks:
|
|
6261
|
+
callbacks: N(a()).default([]).optional().openapi({
|
|
6262
6262
|
description: "Comma-separated list of URLs whitelisted for Auth0 to use as a callback to the client after authentication."
|
|
6263
6263
|
}),
|
|
6264
|
-
allowed_origins:
|
|
6264
|
+
allowed_origins: N(a()).default([]).optional().openapi({
|
|
6265
6265
|
description: "Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level (e.g., https://*.contoso.com). Query strings and hash information are not taken into account when validating these URLs."
|
|
6266
6266
|
}),
|
|
6267
|
-
web_origins:
|
|
6267
|
+
web_origins: N(a()).default([]).optional().openapi({
|
|
6268
6268
|
description: "Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode."
|
|
6269
6269
|
}),
|
|
6270
|
-
client_aliases:
|
|
6270
|
+
client_aliases: N(a()).default([]).optional().openapi({
|
|
6271
6271
|
description: "List of audiences/realms for SAML protocol. Used by the wsfed addon."
|
|
6272
6272
|
}),
|
|
6273
|
-
allowed_clients:
|
|
6273
|
+
allowed_clients: N(a()).default([]).optional().openapi({
|
|
6274
6274
|
description: "List of allow clients and API ids that are allowed to make delegation requests. Empty means all all your clients are allowed."
|
|
6275
6275
|
}),
|
|
6276
|
-
connections:
|
|
6276
|
+
connections: N(a()).default([]).optional().openapi({
|
|
6277
6277
|
description: "List of connection IDs enabled for this client. The order determines the display order on the login page."
|
|
6278
6278
|
}),
|
|
6279
|
-
allowed_logout_urls:
|
|
6279
|
+
allowed_logout_urls: N(a()).default([]).optional().openapi({
|
|
6280
6280
|
description: "Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains."
|
|
6281
6281
|
}),
|
|
6282
6282
|
session_transfer: M(V()).default({}).optional().openapi({
|
|
@@ -6285,13 +6285,13 @@ const Il = _({
|
|
|
6285
6285
|
oidc_logout: M(V()).default({}).optional().openapi({
|
|
6286
6286
|
description: "Configuration for OIDC backchannel logout"
|
|
6287
6287
|
}),
|
|
6288
|
-
grant_types:
|
|
6288
|
+
grant_types: N(a()).default([]).optional().openapi({
|
|
6289
6289
|
description: "List of grant types supported for this application. Can include authorization_code, implicit, refresh_token, client_credentials, password, http://auth0.com/oauth/grant-type/password-realm, http://auth0.com/oauth/grant-type/mfa-oob, http://auth0.com/oauth/grant-type/mfa-otp, http://auth0.com/oauth/grant-type/mfa-recovery-code, urn:openid:params:grant-type:ciba, and urn:ietf:params:oauth:grant-type:device_code."
|
|
6290
6290
|
}),
|
|
6291
6291
|
jwt_configuration: M(V()).default({}).optional().openapi({
|
|
6292
6292
|
description: "Configuration related to JWTs for the client."
|
|
6293
6293
|
}),
|
|
6294
|
-
signing_keys:
|
|
6294
|
+
signing_keys: N(M(V())).default([]).optional().openapi({
|
|
6295
6295
|
description: "Signing certificates associated with this client."
|
|
6296
6296
|
}),
|
|
6297
6297
|
encryption_key: M(V()).default({}).optional().openapi({
|
|
@@ -6324,7 +6324,7 @@ const Il = _({
|
|
|
6324
6324
|
addons: M(V()).default({}).optional().openapi({
|
|
6325
6325
|
description: "Addons enabled for this client and their associated configurations."
|
|
6326
6326
|
}),
|
|
6327
|
-
token_endpoint_auth_method:
|
|
6327
|
+
token_endpoint_auth_method: E([
|
|
6328
6328
|
"none",
|
|
6329
6329
|
"client_secret_post",
|
|
6330
6330
|
"client_secret_basic",
|
|
@@ -6347,7 +6347,7 @@ const Il = _({
|
|
|
6347
6347
|
}),
|
|
6348
6348
|
native_social_login: M(V()).default({}).optional(),
|
|
6349
6349
|
refresh_token: _({
|
|
6350
|
-
rotation_type:
|
|
6350
|
+
rotation_type: E(["rotating", "non-rotating"]).optional().openapi({
|
|
6351
6351
|
description: "Whether refresh tokens for this client are rotated on every exchange (Auth0 'rotating' behavior) or kept stable (legacy non-rotating). Defaults to 'non-rotating' when unset."
|
|
6352
6352
|
}),
|
|
6353
6353
|
leeway: x().int().min(0).max(600).optional().openapi({
|
|
@@ -6358,7 +6358,7 @@ const Il = _({
|
|
|
6358
6358
|
// without tripping dts-bundle-generator's handling of zod's
|
|
6359
6359
|
// `objectInputType`. Not yet honored by the engine — added so values
|
|
6360
6360
|
// round-trip cleanly when migrating tenants from Auth0.
|
|
6361
|
-
expiration_type:
|
|
6361
|
+
expiration_type: E(["expiring", "non-expiring"]).optional().openapi({
|
|
6362
6362
|
description: "Auth0-compatible: whether refresh tokens expire."
|
|
6363
6363
|
}),
|
|
6364
6364
|
token_lifetime: x().int().min(0).optional().openapi({
|
|
@@ -6379,10 +6379,10 @@ const Il = _({
|
|
|
6379
6379
|
default_organization: M(V()).default({}).optional().openapi({
|
|
6380
6380
|
description: "Defines the default Organization ID and flows"
|
|
6381
6381
|
}),
|
|
6382
|
-
organization_usage:
|
|
6382
|
+
organization_usage: E(["deny", "allow", "require"]).default("deny").optional().openapi({
|
|
6383
6383
|
description: "Defines how to proceed during an authentication transaction with regards an organization. Can be deny (default), allow or require."
|
|
6384
6384
|
}),
|
|
6385
|
-
organization_require_behavior:
|
|
6385
|
+
organization_require_behavior: E(["no_prompt", "pre_login_prompt", "post_login_prompt"]).default("no_prompt").optional().openapi({
|
|
6386
6386
|
description: "Defines how to proceed during an authentication transaction when client.organization_usage: 'require'. Can be no_prompt (default), pre_login_prompt or post_login_prompt. post_login_prompt requires oidc_conformant: true."
|
|
6387
6387
|
}),
|
|
6388
6388
|
client_authentication_methods: M(V()).default({}).optional().openapi({
|
|
@@ -6397,7 +6397,7 @@ const Il = _({
|
|
|
6397
6397
|
signed_request_object: M(V()).default({}).optional().openapi({
|
|
6398
6398
|
description: "JWT-secured Authorization Requests (JAR) settings."
|
|
6399
6399
|
}),
|
|
6400
|
-
compliance_level:
|
|
6400
|
+
compliance_level: E([
|
|
6401
6401
|
"none",
|
|
6402
6402
|
"fapi1_adv_pkj_par",
|
|
6403
6403
|
"fapi1_adv_mtls_par",
|
|
@@ -6413,13 +6413,13 @@ const Il = _({
|
|
|
6413
6413
|
owner_user_id: a().optional().openapi({
|
|
6414
6414
|
description: "User ID of the consenting user when this client was created via IAT-gated Dynamic Client Registration. NULL for clients created via the Management API or open DCR."
|
|
6415
6415
|
}),
|
|
6416
|
-
registration_type:
|
|
6416
|
+
registration_type: E(["manual", "open_dcr", "iat_dcr"]).optional().openapi({
|
|
6417
6417
|
description: "Provenance of this client. `manual` = Management API; `open_dcr` = RFC 7591 without IAT; `iat_dcr` = RFC 7591 with an Initial Access Token."
|
|
6418
6418
|
}),
|
|
6419
6419
|
registration_metadata: M(V()).default({}).optional().openapi({
|
|
6420
6420
|
description: "Arbitrary metadata captured at Dynamic Client Registration time that isn't a first-class client field (e.g. integration_type, domain). Also stores `iat_constraints` for clients created via IAT so RFC 7592 PUT can enforce field immutability."
|
|
6421
6421
|
}),
|
|
6422
|
-
user_linking_mode:
|
|
6422
|
+
user_linking_mode: E(["builtin", "off"]).optional().openapi({
|
|
6423
6423
|
description: "Per-client override for the built-in email-based user-linking path. `builtin` runs the legacy in-process linking at user creation/email update. `off` disables the legacy path; linking only happens if the tenant has enabled the `account-linking` template hook. When unset, the service-level `userLinkingMode` default applies."
|
|
6424
6424
|
})
|
|
6425
6425
|
});
|
|
@@ -6438,10 +6438,10 @@ const Cl = _({
|
|
|
6438
6438
|
audience: a().min(1).openapi({
|
|
6439
6439
|
description: "The audience (API identifier) of this client grant."
|
|
6440
6440
|
}),
|
|
6441
|
-
scope:
|
|
6441
|
+
scope: N(a()).optional().openapi({
|
|
6442
6442
|
description: "Scopes allowed for this client grant."
|
|
6443
6443
|
}),
|
|
6444
|
-
organization_usage:
|
|
6444
|
+
organization_usage: E(["deny", "allow", "require"]).optional().openapi({
|
|
6445
6445
|
description: "Defines whether organizations can be used with client credentials exchanges for this grant."
|
|
6446
6446
|
}),
|
|
6447
6447
|
allow_any_organization: h().optional().openapi({
|
|
@@ -6450,10 +6450,10 @@ const Cl = _({
|
|
|
6450
6450
|
is_system: h().optional().openapi({
|
|
6451
6451
|
description: "If enabled, this grant is a special grant created by Auth0. It cannot be modified or deleted directly."
|
|
6452
6452
|
}),
|
|
6453
|
-
subject_type:
|
|
6453
|
+
subject_type: E(["client", "user"]).optional().openapi({
|
|
6454
6454
|
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."
|
|
6455
6455
|
}),
|
|
6456
|
-
authorization_details_types:
|
|
6456
|
+
authorization_details_types: N(a()).optional().openapi({
|
|
6457
6457
|
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."
|
|
6458
6458
|
})
|
|
6459
6459
|
}), Dl = _({
|
|
@@ -6464,8 +6464,8 @@ const Cl = _({
|
|
|
6464
6464
|
created_at: a().optional(),
|
|
6465
6465
|
updated_at: a().optional()
|
|
6466
6466
|
});
|
|
6467
|
-
|
|
6468
|
-
const xs =
|
|
6467
|
+
N(Dl);
|
|
6468
|
+
const xs = E(["iat", "rat"]), Ll = _({
|
|
6469
6469
|
id: a(),
|
|
6470
6470
|
token_hash: a(),
|
|
6471
6471
|
type: xs,
|
|
@@ -6486,11 +6486,11 @@ const Dt = _({
|
|
|
6486
6486
|
y: x()
|
|
6487
6487
|
});
|
|
6488
6488
|
var ks = /* @__PURE__ */ ((n) => (n.RICH_TEXT = "RICH_TEXT", n.NEXT_BUTTON = "NEXT_BUTTON", n.BACK_BUTTON = "BACK_BUTTON", n.SUBMIT_BUTTON = "SUBMIT_BUTTON", n.DIVIDER = "DIVIDER", n.TEXT = "TEXT", n.EMAIL = "EMAIL", n.PASSWORD = "PASSWORD", n.NUMBER = "NUMBER", n.PHONE = "PHONE", n.DATE = "DATE", n.CHECKBOX = "CHECKBOX", n.RADIO = "RADIO", n.SELECT = "SELECT", n.HIDDEN = "HIDDEN", n.LEGAL = "LEGAL", n))(ks || {}), Os = /* @__PURE__ */ ((n) => (n.BLOCK = "BLOCK", n.FIELD = "FIELD", n))(Os || {});
|
|
6489
|
-
const
|
|
6489
|
+
const En = _({
|
|
6490
6490
|
id: a(),
|
|
6491
6491
|
category: wt(Os),
|
|
6492
6492
|
type: wt(ks)
|
|
6493
|
-
}), Rl =
|
|
6493
|
+
}), Rl = En.extend({
|
|
6494
6494
|
category: I(
|
|
6495
6495
|
"BLOCK"
|
|
6496
6496
|
/* BLOCK */
|
|
@@ -6502,7 +6502,7 @@ const bn = _({
|
|
|
6502
6502
|
config: _({
|
|
6503
6503
|
content: a()
|
|
6504
6504
|
}).passthrough()
|
|
6505
|
-
}), Ul =
|
|
6505
|
+
}), Ul = En.extend({
|
|
6506
6506
|
category: I(
|
|
6507
6507
|
"BLOCK"
|
|
6508
6508
|
/* BLOCK */
|
|
@@ -6524,7 +6524,7 @@ const bn = _({
|
|
|
6524
6524
|
config: _({
|
|
6525
6525
|
text: a()
|
|
6526
6526
|
}).passthrough()
|
|
6527
|
-
}), Fl =
|
|
6527
|
+
}), Fl = En.extend({
|
|
6528
6528
|
category: I(
|
|
6529
6529
|
"FIELD"
|
|
6530
6530
|
/* FIELD */
|
|
@@ -6538,7 +6538,7 @@ const bn = _({
|
|
|
6538
6538
|
config: _({
|
|
6539
6539
|
text: a()
|
|
6540
6540
|
}).passthrough()
|
|
6541
|
-
}), zl =
|
|
6541
|
+
}), zl = En.extend({
|
|
6542
6542
|
category: I(
|
|
6543
6543
|
"FIELD"
|
|
6544
6544
|
/* FIELD */
|
|
@@ -6610,7 +6610,7 @@ const bn = _({
|
|
|
6610
6610
|
coordinates: Dt,
|
|
6611
6611
|
alias: a().optional(),
|
|
6612
6612
|
config: _({
|
|
6613
|
-
components:
|
|
6613
|
+
components: N(Pl),
|
|
6614
6614
|
next_node: a()
|
|
6615
6615
|
}).passthrough()
|
|
6616
6616
|
}), Bl = _({
|
|
@@ -6634,10 +6634,10 @@ const bn = _({
|
|
|
6634
6634
|
coordinates: Dt,
|
|
6635
6635
|
alias: a().optional(),
|
|
6636
6636
|
config: _({
|
|
6637
|
-
action_type:
|
|
6637
|
+
action_type: E(["REDIRECT"]).openapi({
|
|
6638
6638
|
description: "The type of action to perform"
|
|
6639
6639
|
}),
|
|
6640
|
-
target:
|
|
6640
|
+
target: E(["change-email", "account", "custom"]).openapi({
|
|
6641
6641
|
description: "The predefined target to redirect to"
|
|
6642
6642
|
}),
|
|
6643
6643
|
custom_url: a().optional().openapi({
|
|
@@ -6668,7 +6668,7 @@ const bn = _({
|
|
|
6668
6668
|
languages: _({
|
|
6669
6669
|
primary: a()
|
|
6670
6670
|
}).passthrough(),
|
|
6671
|
-
nodes:
|
|
6671
|
+
nodes: N(Vl),
|
|
6672
6672
|
start: Hl,
|
|
6673
6673
|
ending: Zl,
|
|
6674
6674
|
created_at: a(),
|
|
@@ -6689,7 +6689,7 @@ const Ii = Me([
|
|
|
6689
6689
|
_({
|
|
6690
6690
|
essential: h().optional(),
|
|
6691
6691
|
value: Fe().optional(),
|
|
6692
|
-
values:
|
|
6692
|
+
values: N(Fe()).optional()
|
|
6693
6693
|
})
|
|
6694
6694
|
]).nullable(), Wl = _({
|
|
6695
6695
|
userinfo: M(a(), Ii).optional(),
|
|
@@ -6746,9 +6746,9 @@ _({
|
|
|
6746
6746
|
// AuthHero-specific: default color scheme for the universal login page.
|
|
6747
6747
|
// Auth0 has no equivalent. Per-user toggle (ah-dark-mode cookie) still
|
|
6748
6748
|
// overrides this at runtime.
|
|
6749
|
-
dark_mode:
|
|
6749
|
+
dark_mode: E(["dark", "light", "auto"]).optional()
|
|
6750
6750
|
});
|
|
6751
|
-
const Jl =
|
|
6751
|
+
const Jl = E([
|
|
6752
6752
|
"password_reset",
|
|
6753
6753
|
"email_verification",
|
|
6754
6754
|
"otp",
|
|
@@ -6773,7 +6773,7 @@ const Jl = b([
|
|
|
6773
6773
|
code_challenge: a().optional().openapi({
|
|
6774
6774
|
description: "The code challenge used in PKCE in outbound flows"
|
|
6775
6775
|
}),
|
|
6776
|
-
code_challenge_method:
|
|
6776
|
+
code_challenge_method: E(["plain", "S256"]).optional().openapi({
|
|
6777
6777
|
description: "The code challenge method used in PKCE in outbound flows"
|
|
6778
6778
|
}),
|
|
6779
6779
|
redirect_uri: a().optional().openapi({
|
|
@@ -6814,14 +6814,14 @@ const Xl = _({
|
|
|
6814
6814
|
// How client credentials are sent to the token endpoint for upstream OIDC /
|
|
6815
6815
|
// OAuth2 connections. Defaults to `client_secret_basic` (HTTP Basic auth).
|
|
6816
6816
|
// Set to `client_secret_post` for providers like JumpCloud that reject Basic.
|
|
6817
|
-
token_endpoint_auth_method:
|
|
6817
|
+
token_endpoint_auth_method: E(["client_secret_basic", "client_secret_post"]).optional(),
|
|
6818
6818
|
provider: a().optional(),
|
|
6819
6819
|
from: a().optional(),
|
|
6820
6820
|
twilio_sid: a().optional(),
|
|
6821
6821
|
twilio_token: a().optional(),
|
|
6822
6822
|
icon_url: a().optional(),
|
|
6823
6823
|
// Email domains that route to this connection via Home Realm Discovery
|
|
6824
|
-
domain_aliases:
|
|
6824
|
+
domain_aliases: N(a()).optional(),
|
|
6825
6825
|
// Per-connection redirect_uri sent to the upstream IdP. When unset, the
|
|
6826
6826
|
// strategy falls back to the legacy `${authUrl}callback`. Lets operators
|
|
6827
6827
|
// migrate connections to a new callback path (e.g. `/login/callback`)
|
|
@@ -6829,7 +6829,7 @@ const Xl = _({
|
|
|
6829
6829
|
// the upstream IdP.
|
|
6830
6830
|
callback_url: a().url().optional(),
|
|
6831
6831
|
// Password policy options for Username-Password-Authentication connections
|
|
6832
|
-
passwordPolicy:
|
|
6832
|
+
passwordPolicy: E(["none", "low", "fair", "good", "excellent"]).optional(),
|
|
6833
6833
|
password_complexity_options: _({
|
|
6834
6834
|
min_length: x().optional()
|
|
6835
6835
|
}).optional(),
|
|
@@ -6842,7 +6842,7 @@ const Xl = _({
|
|
|
6842
6842
|
}).optional(),
|
|
6843
6843
|
password_dictionary: _({
|
|
6844
6844
|
enable: h().optional(),
|
|
6845
|
-
dictionary:
|
|
6845
|
+
dictionary: N(a()).optional()
|
|
6846
6846
|
}).optional(),
|
|
6847
6847
|
// Disable signup for this connection
|
|
6848
6848
|
disable_signup: h().optional(),
|
|
@@ -6871,7 +6871,7 @@ const Xl = _({
|
|
|
6871
6871
|
active: h().optional()
|
|
6872
6872
|
}).optional(),
|
|
6873
6873
|
signup: _({
|
|
6874
|
-
status:
|
|
6874
|
+
status: E(["required", "optional", "disabled"]).optional(),
|
|
6875
6875
|
verification: _({
|
|
6876
6876
|
active: h().optional()
|
|
6877
6877
|
}).optional()
|
|
@@ -6881,14 +6881,14 @@ const Xl = _({
|
|
|
6881
6881
|
}).optional(),
|
|
6882
6882
|
unique: h().optional(),
|
|
6883
6883
|
profile_required: h().optional(),
|
|
6884
|
-
verification_method:
|
|
6884
|
+
verification_method: E(["link", "code"]).optional()
|
|
6885
6885
|
}).optional(),
|
|
6886
6886
|
username: _({
|
|
6887
6887
|
identifier: _({
|
|
6888
6888
|
active: h().optional()
|
|
6889
6889
|
}).optional(),
|
|
6890
6890
|
signup: _({
|
|
6891
|
-
status:
|
|
6891
|
+
status: E(["required", "optional", "disabled"]).optional()
|
|
6892
6892
|
}).optional(),
|
|
6893
6893
|
validation: _({
|
|
6894
6894
|
max_length: x().optional(),
|
|
@@ -6905,7 +6905,7 @@ const Xl = _({
|
|
|
6905
6905
|
active: h().optional()
|
|
6906
6906
|
}).optional(),
|
|
6907
6907
|
signup: _({
|
|
6908
|
-
status:
|
|
6908
|
+
status: E(["required", "optional", "disabled"]).optional()
|
|
6909
6909
|
}).optional()
|
|
6910
6910
|
}).optional()
|
|
6911
6911
|
}).optional(),
|
|
@@ -6920,7 +6920,7 @@ const Xl = _({
|
|
|
6920
6920
|
}).optional(),
|
|
6921
6921
|
// Passkey options for Username-Password-Authentication connections
|
|
6922
6922
|
passkey_options: _({
|
|
6923
|
-
challenge_ui:
|
|
6923
|
+
challenge_ui: E(["both", "autofill", "button"]).optional(),
|
|
6924
6924
|
local_enrollment_enabled: h().optional(),
|
|
6925
6925
|
progressive_enrollment_enabled: h().optional()
|
|
6926
6926
|
}).optional(),
|
|
@@ -6933,7 +6933,7 @@ const Xl = _({
|
|
|
6933
6933
|
}).optional()
|
|
6934
6934
|
}).optional(),
|
|
6935
6935
|
// Controls when root user attributes are updated from external IdP
|
|
6936
|
-
set_user_root_attributes:
|
|
6936
|
+
set_user_root_attributes: E(["on_each_login", "on_first_login", "never_on_login"]).optional()
|
|
6937
6937
|
});
|
|
6938
6938
|
function di(n) {
|
|
6939
6939
|
if (n !== null) {
|
|
@@ -6957,7 +6957,7 @@ const Yl = _({
|
|
|
6957
6957
|
(n) => n === null ? {} : di(n),
|
|
6958
6958
|
Xl
|
|
6959
6959
|
).default({}),
|
|
6960
|
-
enabled_clients:
|
|
6960
|
+
enabled_clients: N(a()).default([]).optional(),
|
|
6961
6961
|
response_type: li().optional(),
|
|
6962
6962
|
response_mode: li().optional(),
|
|
6963
6963
|
is_domain_connection: h().optional(),
|
|
@@ -6973,10 +6973,10 @@ _({
|
|
|
6973
6973
|
const ed = _({
|
|
6974
6974
|
domain: a(),
|
|
6975
6975
|
custom_domain_id: a().optional(),
|
|
6976
|
-
type:
|
|
6977
|
-
verification_method:
|
|
6978
|
-
tls_policy:
|
|
6979
|
-
custom_client_ip_header:
|
|
6976
|
+
type: E(["auth0_managed_certs", "self_managed_certs"]),
|
|
6977
|
+
verification_method: E(["txt"]).optional(),
|
|
6978
|
+
tls_policy: E(["recommended"]).optional(),
|
|
6979
|
+
custom_client_ip_header: E([
|
|
6980
6980
|
"true-client-ip",
|
|
6981
6981
|
"cf-connecting-ip",
|
|
6982
6982
|
"x-forwarded-for",
|
|
@@ -6999,21 +6999,21 @@ const ed = _({
|
|
|
6999
6999
|
...ed.shape,
|
|
7000
7000
|
custom_domain_id: a(),
|
|
7001
7001
|
primary: h(),
|
|
7002
|
-
status:
|
|
7002
|
+
status: E(["disabled", "pending", "pending_verification", "ready"]),
|
|
7003
7003
|
origin_domain_name: a().optional(),
|
|
7004
7004
|
verification: _({
|
|
7005
|
-
methods:
|
|
7005
|
+
methods: N(td)
|
|
7006
7006
|
}).optional(),
|
|
7007
7007
|
tls_policy: a().optional()
|
|
7008
7008
|
});
|
|
7009
7009
|
nd.extend({
|
|
7010
7010
|
tenant_id: a()
|
|
7011
7011
|
});
|
|
7012
|
-
const
|
|
7012
|
+
const Ni = _({
|
|
7013
7013
|
id: a(),
|
|
7014
7014
|
order: x().optional(),
|
|
7015
7015
|
visible: h().optional().default(!0)
|
|
7016
|
-
}), ht =
|
|
7016
|
+
}), ht = Ni.extend({
|
|
7017
7017
|
category: I("BLOCK").optional()
|
|
7018
7018
|
}), id = ht.extend({
|
|
7019
7019
|
type: I("DIVIDER"),
|
|
@@ -7060,49 +7060,49 @@ const Si = _({
|
|
|
7060
7060
|
config: _({
|
|
7061
7061
|
content: a().optional()
|
|
7062
7062
|
}).optional()
|
|
7063
|
-
}),
|
|
7063
|
+
}), Ei = Ni.extend({
|
|
7064
7064
|
category: I("WIDGET").optional(),
|
|
7065
7065
|
label: a().min(1).optional(),
|
|
7066
7066
|
hint: a().min(1).max(500).optional(),
|
|
7067
7067
|
required: h().optional(),
|
|
7068
7068
|
sensitive: h().optional()
|
|
7069
|
-
}), _d =
|
|
7069
|
+
}), _d = Ei.extend({
|
|
7070
7070
|
type: I("AUTH0_VERIFIABLE_CREDENTIALS"),
|
|
7071
7071
|
config: _({
|
|
7072
7072
|
credential_type: a().optional()
|
|
7073
7073
|
})
|
|
7074
|
-
}), ud =
|
|
7074
|
+
}), ud = Ei.extend({
|
|
7075
7075
|
type: I("GMAPS_ADDRESS"),
|
|
7076
7076
|
config: _({
|
|
7077
7077
|
api_key: a().optional()
|
|
7078
7078
|
})
|
|
7079
|
-
}), pd =
|
|
7079
|
+
}), pd = Ei.extend({
|
|
7080
7080
|
type: I("RECAPTCHA"),
|
|
7081
7081
|
config: _({
|
|
7082
7082
|
site_key: a().optional()
|
|
7083
7083
|
})
|
|
7084
|
-
}),
|
|
7084
|
+
}), Ee = Ni.extend({
|
|
7085
7085
|
category: I("FIELD").optional(),
|
|
7086
7086
|
label: a().min(1).optional(),
|
|
7087
7087
|
hint: a().min(1).max(500).optional(),
|
|
7088
|
-
messages:
|
|
7088
|
+
messages: N(
|
|
7089
7089
|
_({
|
|
7090
7090
|
id: x().optional(),
|
|
7091
7091
|
text: a(),
|
|
7092
|
-
type:
|
|
7092
|
+
type: E(["info", "error", "success", "warning"])
|
|
7093
7093
|
})
|
|
7094
7094
|
).optional(),
|
|
7095
7095
|
required: h().optional(),
|
|
7096
7096
|
sensitive: h().optional()
|
|
7097
|
-
}), fd =
|
|
7097
|
+
}), fd = Ee.extend({
|
|
7098
7098
|
type: I("BOOLEAN"),
|
|
7099
7099
|
config: _({
|
|
7100
7100
|
default_value: h().optional()
|
|
7101
7101
|
}).optional()
|
|
7102
|
-
}), hd =
|
|
7102
|
+
}), hd = Ee.extend({
|
|
7103
7103
|
type: I("CARDS"),
|
|
7104
7104
|
config: _({
|
|
7105
|
-
options:
|
|
7105
|
+
options: N(
|
|
7106
7106
|
_({
|
|
7107
7107
|
value: a(),
|
|
7108
7108
|
label: a(),
|
|
@@ -7112,20 +7112,20 @@ const Si = _({
|
|
|
7112
7112
|
).optional(),
|
|
7113
7113
|
multi_select: h().optional()
|
|
7114
7114
|
}).optional()
|
|
7115
|
-
}), gd =
|
|
7115
|
+
}), gd = Ee.extend({
|
|
7116
7116
|
type: I("CHOICE"),
|
|
7117
7117
|
config: _({
|
|
7118
|
-
options:
|
|
7118
|
+
options: N(
|
|
7119
7119
|
_({
|
|
7120
7120
|
value: a(),
|
|
7121
7121
|
label: a()
|
|
7122
7122
|
})
|
|
7123
7123
|
).optional(),
|
|
7124
|
-
display:
|
|
7124
|
+
display: E(["radio", "checkbox"]).optional(),
|
|
7125
7125
|
multiple: h().optional(),
|
|
7126
|
-
default_value: Me([a(),
|
|
7126
|
+
default_value: Me([a(), N(a())]).optional()
|
|
7127
7127
|
}).optional()
|
|
7128
|
-
}), md =
|
|
7128
|
+
}), md = Ee.extend({
|
|
7129
7129
|
type: I("CUSTOM"),
|
|
7130
7130
|
config: _({
|
|
7131
7131
|
component: a().optional(),
|
|
@@ -7133,7 +7133,7 @@ const Si = _({
|
|
|
7133
7133
|
schema: M(V()).optional(),
|
|
7134
7134
|
code: a().optional()
|
|
7135
7135
|
})
|
|
7136
|
-
}), yd =
|
|
7136
|
+
}), yd = Ee.extend({
|
|
7137
7137
|
type: I("DATE"),
|
|
7138
7138
|
config: _({
|
|
7139
7139
|
format: a().optional(),
|
|
@@ -7141,10 +7141,10 @@ const Si = _({
|
|
|
7141
7141
|
max: a().optional(),
|
|
7142
7142
|
default_value: a().optional()
|
|
7143
7143
|
}).optional()
|
|
7144
|
-
}), vd =
|
|
7144
|
+
}), vd = Ee.extend({
|
|
7145
7145
|
type: I("DROPDOWN"),
|
|
7146
7146
|
config: _({
|
|
7147
|
-
options:
|
|
7147
|
+
options: N(
|
|
7148
7148
|
_({
|
|
7149
7149
|
value: a(),
|
|
7150
7150
|
label: a()
|
|
@@ -7153,28 +7153,28 @@ const Si = _({
|
|
|
7153
7153
|
placeholder: a().optional(),
|
|
7154
7154
|
searchable: h().optional(),
|
|
7155
7155
|
multiple: h().optional(),
|
|
7156
|
-
default_value: Me([a(),
|
|
7156
|
+
default_value: Me([a(), N(a())]).optional()
|
|
7157
7157
|
}).optional()
|
|
7158
|
-
}), wd =
|
|
7158
|
+
}), wd = Ee.extend({
|
|
7159
7159
|
type: I("EMAIL"),
|
|
7160
7160
|
config: _({
|
|
7161
7161
|
placeholder: a().optional(),
|
|
7162
7162
|
default_value: a().optional()
|
|
7163
7163
|
}).optional()
|
|
7164
|
-
}),
|
|
7164
|
+
}), Sd = Ee.extend({
|
|
7165
7165
|
type: I("FILE"),
|
|
7166
7166
|
config: _({
|
|
7167
7167
|
accept: a().optional(),
|
|
7168
7168
|
max_size: x().optional(),
|
|
7169
7169
|
multiple: h().optional()
|
|
7170
7170
|
}).optional()
|
|
7171
|
-
}),
|
|
7171
|
+
}), Nd = Ee.extend({
|
|
7172
7172
|
type: I("LEGAL"),
|
|
7173
7173
|
config: _({
|
|
7174
7174
|
text: a(),
|
|
7175
7175
|
html: h().optional()
|
|
7176
7176
|
}).optional()
|
|
7177
|
-
}),
|
|
7177
|
+
}), Ed = Ee.extend({
|
|
7178
7178
|
type: I("NUMBER"),
|
|
7179
7179
|
config: _({
|
|
7180
7180
|
placeholder: a().optional(),
|
|
@@ -7183,7 +7183,7 @@ const Si = _({
|
|
|
7183
7183
|
step: x().optional(),
|
|
7184
7184
|
default_value: a().optional()
|
|
7185
7185
|
}).optional()
|
|
7186
|
-
}),
|
|
7186
|
+
}), bd = Ee.extend({
|
|
7187
7187
|
type: I("PASSWORD"),
|
|
7188
7188
|
config: _({
|
|
7189
7189
|
placeholder: a().optional(),
|
|
@@ -7192,18 +7192,18 @@ const Si = _({
|
|
|
7192
7192
|
forgot_password_link: a().optional(),
|
|
7193
7193
|
default_value: a().optional()
|
|
7194
7194
|
}).optional()
|
|
7195
|
-
}), xd =
|
|
7195
|
+
}), xd = Ee.extend({
|
|
7196
7196
|
type: I("PAYMENT"),
|
|
7197
7197
|
config: _({
|
|
7198
7198
|
provider: a().optional(),
|
|
7199
7199
|
currency: a().optional()
|
|
7200
7200
|
}).optional()
|
|
7201
|
-
}), kd =
|
|
7201
|
+
}), kd = Ee.extend({
|
|
7202
7202
|
type: I("SOCIAL"),
|
|
7203
7203
|
config: _({
|
|
7204
|
-
providers:
|
|
7204
|
+
providers: N(a()).optional(),
|
|
7205
7205
|
// Extended provider info with icons and display names
|
|
7206
|
-
provider_details:
|
|
7206
|
+
provider_details: N(
|
|
7207
7207
|
_({
|
|
7208
7208
|
name: a(),
|
|
7209
7209
|
strategy: a().optional(),
|
|
@@ -7213,7 +7213,7 @@ const Si = _({
|
|
|
7213
7213
|
})
|
|
7214
7214
|
).optional()
|
|
7215
7215
|
}).optional()
|
|
7216
|
-
}), Od =
|
|
7216
|
+
}), Od = Ee.extend({
|
|
7217
7217
|
type: I("TEL"),
|
|
7218
7218
|
config: _({
|
|
7219
7219
|
placeholder: a().optional(),
|
|
@@ -7221,7 +7221,7 @@ const Si = _({
|
|
|
7221
7221
|
default_value: a().optional(),
|
|
7222
7222
|
allow_email: h().optional()
|
|
7223
7223
|
}).optional()
|
|
7224
|
-
}), Ad =
|
|
7224
|
+
}), Ad = Ee.extend({
|
|
7225
7225
|
type: I("TEXT"),
|
|
7226
7226
|
config: _({
|
|
7227
7227
|
placeholder: a().optional(),
|
|
@@ -7229,13 +7229,13 @@ const Si = _({
|
|
|
7229
7229
|
max_length: x().optional(),
|
|
7230
7230
|
default_value: a().optional()
|
|
7231
7231
|
}).optional()
|
|
7232
|
-
}), Td =
|
|
7232
|
+
}), Td = Ee.extend({
|
|
7233
7233
|
type: I("COUNTRY"),
|
|
7234
7234
|
config: _({
|
|
7235
7235
|
placeholder: a().optional(),
|
|
7236
7236
|
default_value: a().optional()
|
|
7237
7237
|
}).optional()
|
|
7238
|
-
}), Id =
|
|
7238
|
+
}), Id = Ee.extend({
|
|
7239
7239
|
type: I("URL"),
|
|
7240
7240
|
config: _({
|
|
7241
7241
|
placeholder: a().optional(),
|
|
@@ -7263,10 +7263,10 @@ const Si = _({
|
|
|
7263
7263
|
yd,
|
|
7264
7264
|
vd,
|
|
7265
7265
|
wd,
|
|
7266
|
-
Nd,
|
|
7267
7266
|
Sd,
|
|
7268
|
-
|
|
7267
|
+
Nd,
|
|
7269
7268
|
Ed,
|
|
7269
|
+
bd,
|
|
7270
7270
|
xd,
|
|
7271
7271
|
kd,
|
|
7272
7272
|
Od,
|
|
@@ -7305,7 +7305,7 @@ const Yt = _({
|
|
|
7305
7305
|
coordinates: Yt,
|
|
7306
7306
|
alias: a().min(1).max(150),
|
|
7307
7307
|
config: _({
|
|
7308
|
-
rules:
|
|
7308
|
+
rules: N(
|
|
7309
7309
|
_({
|
|
7310
7310
|
id: a(),
|
|
7311
7311
|
alias: a().min(1).max(150).optional(),
|
|
@@ -7321,7 +7321,7 @@ const Yt = _({
|
|
|
7321
7321
|
coordinates: Yt,
|
|
7322
7322
|
alias: a().min(1).max(150).optional(),
|
|
7323
7323
|
config: _({
|
|
7324
|
-
components:
|
|
7324
|
+
components: N(Cs),
|
|
7325
7325
|
next_node: a().optional()
|
|
7326
7326
|
})
|
|
7327
7327
|
}), zd = Ct("type", [
|
|
@@ -7341,9 +7341,9 @@ const Yt = _({
|
|
|
7341
7341
|
default: a().optional()
|
|
7342
7342
|
}).optional(),
|
|
7343
7343
|
translations: M(a(), V()).optional(),
|
|
7344
|
-
nodes:
|
|
7344
|
+
nodes: N(zd).optional(),
|
|
7345
7345
|
start: _({
|
|
7346
|
-
hidden_fields:
|
|
7346
|
+
hidden_fields: N(_({ key: a(), value: a() })).optional(),
|
|
7347
7347
|
next_node: a().optional(),
|
|
7348
7348
|
coordinates: Yt.optional()
|
|
7349
7349
|
}).optional(),
|
|
@@ -7372,7 +7372,7 @@ _({
|
|
|
7372
7372
|
const Pd = _({
|
|
7373
7373
|
id: x().optional(),
|
|
7374
7374
|
text: a(),
|
|
7375
|
-
type:
|
|
7375
|
+
type: E(["info", "error", "success", "warning"])
|
|
7376
7376
|
}), qd = _({
|
|
7377
7377
|
id: a().optional(),
|
|
7378
7378
|
text: a(),
|
|
@@ -7383,16 +7383,16 @@ _({
|
|
|
7383
7383
|
/** Screen identifier for CSS targeting (e.g., 'identifier', 'enter-password', 'signup') */
|
|
7384
7384
|
name: a().optional(),
|
|
7385
7385
|
action: a(),
|
|
7386
|
-
method:
|
|
7386
|
+
method: E(["POST", "GET"]),
|
|
7387
7387
|
title: a().optional(),
|
|
7388
7388
|
description: a().optional(),
|
|
7389
|
-
components:
|
|
7390
|
-
messages:
|
|
7391
|
-
links:
|
|
7389
|
+
components: N(Cs),
|
|
7390
|
+
messages: N(Pd).optional(),
|
|
7391
|
+
links: N(qd).optional(),
|
|
7392
7392
|
/** Footer HTML content displayed at the very bottom of the widget (e.g., terms and conditions) */
|
|
7393
7393
|
footer: a().optional()
|
|
7394
7394
|
});
|
|
7395
|
-
const Ds =
|
|
7395
|
+
const Ds = E([
|
|
7396
7396
|
"pre-user-registration",
|
|
7397
7397
|
"post-user-registration",
|
|
7398
7398
|
"post-user-login",
|
|
@@ -7401,24 +7401,24 @@ const Ds = b([
|
|
|
7401
7401
|
"pre-user-deletion",
|
|
7402
7402
|
"post-user-deletion"
|
|
7403
7403
|
// Potentially other triggers specific to webhooks in the future
|
|
7404
|
-
]), Ls =
|
|
7404
|
+
]), Ls = E([
|
|
7405
7405
|
"pre-user-registration",
|
|
7406
7406
|
"post-user-registration",
|
|
7407
7407
|
"post-user-login",
|
|
7408
7408
|
"validate-registration-username",
|
|
7409
7409
|
"pre-user-deletion",
|
|
7410
7410
|
"post-user-deletion"
|
|
7411
|
-
]), Rs =
|
|
7411
|
+
]), Rs = E([
|
|
7412
7412
|
"post-user-login",
|
|
7413
7413
|
"post-user-registration",
|
|
7414
7414
|
"post-user-update",
|
|
7415
7415
|
"credentials-exchange"
|
|
7416
|
-
]), Us =
|
|
7416
|
+
]), Us = E([
|
|
7417
7417
|
"post-user-login",
|
|
7418
7418
|
"credentials-exchange",
|
|
7419
7419
|
"pre-user-registration",
|
|
7420
7420
|
"post-user-registration"
|
|
7421
|
-
]), Fs =
|
|
7421
|
+
]), Fs = E([
|
|
7422
7422
|
"ensure-username",
|
|
7423
7423
|
"set-preferred-username",
|
|
7424
7424
|
"account-linking"
|
|
@@ -7507,6 +7507,7 @@ const Jd = _({
|
|
|
7507
7507
|
}), Qd = _({
|
|
7508
7508
|
email: a().optional()
|
|
7509
7509
|
}), Xd = _({
|
|
7510
|
+
id: a().optional(),
|
|
7510
7511
|
organization_id: a().max(50),
|
|
7511
7512
|
inviter: Jd,
|
|
7512
7513
|
invitee: Qd,
|
|
@@ -7516,7 +7517,7 @@ const Jd = _({
|
|
|
7516
7517
|
app_metadata: M(V()).default({}).optional(),
|
|
7517
7518
|
user_metadata: M(V()).default({}).optional(),
|
|
7518
7519
|
ttl_sec: x().int().max(2592e3).default(604800).optional(),
|
|
7519
|
-
roles:
|
|
7520
|
+
roles: N(a()).default([]).optional(),
|
|
7520
7521
|
send_invitation_email: h().default(!0).optional()
|
|
7521
7522
|
});
|
|
7522
7523
|
_({
|
|
@@ -7525,9 +7526,9 @@ _({
|
|
|
7525
7526
|
created_at: a().datetime(),
|
|
7526
7527
|
expires_at: a().datetime(),
|
|
7527
7528
|
ticket_id: a().optional()
|
|
7528
|
-
}).extend(Xd.shape);
|
|
7529
|
+
}).extend(Xd.omit({ id: !0 }).shape);
|
|
7529
7530
|
const Yd = _({
|
|
7530
|
-
alg:
|
|
7531
|
+
alg: E([
|
|
7531
7532
|
"RS256",
|
|
7532
7533
|
"RS384",
|
|
7533
7534
|
"RS512",
|
|
@@ -7539,8 +7540,8 @@ const Yd = _({
|
|
|
7539
7540
|
"HS512"
|
|
7540
7541
|
]),
|
|
7541
7542
|
kid: a(),
|
|
7542
|
-
kty:
|
|
7543
|
-
use:
|
|
7543
|
+
kty: E(["RSA", "EC", "oct"]),
|
|
7544
|
+
use: E(["sig", "enc"]).optional(),
|
|
7544
7545
|
// RSA-specific public-key members (RFC 7518 §6.3.1).
|
|
7545
7546
|
n: a().optional(),
|
|
7546
7547
|
e: a().optional(),
|
|
@@ -7549,25 +7550,25 @@ const Yd = _({
|
|
|
7549
7550
|
x: a().optional(),
|
|
7550
7551
|
y: a().optional(),
|
|
7551
7552
|
x5t: a().optional(),
|
|
7552
|
-
x5c:
|
|
7553
|
+
x5c: N(a()).optional()
|
|
7553
7554
|
}).superRefine((n, e) => {
|
|
7554
7555
|
if (n.kty === "RSA")
|
|
7555
7556
|
for (const t of ["n", "e"])
|
|
7556
7557
|
n[t] || e.addIssue({
|
|
7557
|
-
code:
|
|
7558
|
+
code: S.custom,
|
|
7558
7559
|
path: [t],
|
|
7559
7560
|
message: `RSA JWK is missing required member '${t}'`
|
|
7560
7561
|
});
|
|
7561
7562
|
else if (n.kty === "EC")
|
|
7562
7563
|
for (const t of ["crv", "x", "y"])
|
|
7563
7564
|
n[t] || e.addIssue({
|
|
7564
|
-
code:
|
|
7565
|
+
code: S.custom,
|
|
7565
7566
|
path: [t],
|
|
7566
7567
|
message: `EC JWK is missing required member '${t}'`
|
|
7567
7568
|
});
|
|
7568
7569
|
});
|
|
7569
7570
|
_({
|
|
7570
|
-
keys:
|
|
7571
|
+
keys: N(Yd)
|
|
7571
7572
|
});
|
|
7572
7573
|
_({
|
|
7573
7574
|
issuer: a(),
|
|
@@ -7578,20 +7579,20 @@ _({
|
|
|
7578
7579
|
registration_endpoint: a().optional(),
|
|
7579
7580
|
revocation_endpoint: a(),
|
|
7580
7581
|
end_session_endpoint: a().optional(),
|
|
7581
|
-
scopes_supported:
|
|
7582
|
-
response_types_supported:
|
|
7583
|
-
grant_types_supported:
|
|
7584
|
-
code_challenge_methods_supported:
|
|
7585
|
-
response_modes_supported:
|
|
7586
|
-
subject_types_supported:
|
|
7587
|
-
id_token_signing_alg_values_supported:
|
|
7588
|
-
token_endpoint_auth_methods_supported:
|
|
7589
|
-
claims_supported:
|
|
7582
|
+
scopes_supported: N(a()),
|
|
7583
|
+
response_types_supported: N(a()),
|
|
7584
|
+
grant_types_supported: N(a()).optional(),
|
|
7585
|
+
code_challenge_methods_supported: N(a()),
|
|
7586
|
+
response_modes_supported: N(a()),
|
|
7587
|
+
subject_types_supported: N(a()),
|
|
7588
|
+
id_token_signing_alg_values_supported: N(a()),
|
|
7589
|
+
token_endpoint_auth_methods_supported: N(a()),
|
|
7590
|
+
claims_supported: N(a()),
|
|
7590
7591
|
request_uri_parameter_supported: h(),
|
|
7591
7592
|
request_parameter_supported: h(),
|
|
7592
7593
|
claims_parameter_supported: h().optional(),
|
|
7593
|
-
request_object_signing_alg_values_supported:
|
|
7594
|
-
token_endpoint_auth_signing_alg_values_supported:
|
|
7594
|
+
request_object_signing_alg_values_supported: N(a()).optional(),
|
|
7595
|
+
token_endpoint_auth_signing_alg_values_supported: N(a())
|
|
7595
7596
|
});
|
|
7596
7597
|
var zs = /* @__PURE__ */ ((n) => (n.PENDING = "pending", n.AUTHENTICATED = "authenticated", n.AWAITING_EMAIL_VERIFICATION = "awaiting_email_verification", n.AWAITING_MFA = "awaiting_mfa", n.AWAITING_HOOK = "awaiting_hook", n.AWAITING_CONTINUATION = "awaiting_continuation", n.COMPLETED = "completed", n.FAILED = "failed", n.EXPIRED = "expired", n))(zs || {});
|
|
7597
7598
|
const ec = wt(zs), tc = _({
|
|
@@ -7777,6 +7778,7 @@ const Ms = {
|
|
|
7777
7778
|
SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN: "sens",
|
|
7778
7779
|
SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN: "seoobft",
|
|
7779
7780
|
SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN: "seotpft",
|
|
7781
|
+
SUCCESS_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN: "sepotpft",
|
|
7780
7782
|
SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN: "sepft",
|
|
7781
7783
|
SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN: "sepkoobft",
|
|
7782
7784
|
SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN: "sepkotpft",
|
|
@@ -7817,7 +7819,7 @@ const Ms = {
|
|
|
7817
7819
|
(() => {
|
|
7818
7820
|
const n = {};
|
|
7819
7821
|
for (const [e, t] of Object.entries(Ms))
|
|
7820
|
-
e.startsWith("SUCCESS_") || e.startsWith("SUCCESSFUL_") || e.startsWith("SUCCESSFULLY_") ? n[t] = "success" : e.startsWith("FAILED_") || e.startsWith("ERROR_") || e.startsWith("BREACHED_") || e.startsWith("BLOCKED_") || e === "MFA_AUTH_FAILED" || e === "MFA_AUTH_REJECTED" || e === "MFA_RECOVERY_FAILED" || e === "MFA_ENROLLMENT_FAILED" || e === "EMAIL_VERIFICATION_FAILED" || e === "WEBAUTHN_CHALLENGE_FAILED" || e === "WEBAUTHN_ENROLLMENT_FAILED" || e === "PASSKEY_CHALLENGE_FAILED" || e === "FLOWS_EXECUTION_FAILED" || e === "FORMS_SUBMISSION_FAILED" || e === "CIBA_EXCHANGE_FAILED" || e === "CIBA_START_FAILED" || e === "ACTIONS_EXECUTION_FAILED" || e === "RICH_CONSENTS_ACCESS_ERROR" || e === "USER_CANCELED_DEVICE_CONFIRMATION" || e === "TOO_MANY_MFA_FAILURES" || e === "MFA_RECOVERY_RATE_LIMIT_EXCEED" || e === "API_LIMIT" || e === "MAX_AMOUNT_OF_AUTHENTICATORS" ? n[t] = "failure" : e.startsWith("WARNING_") || e === "API_LIMIT_WARNING" || e === "DEPRECATION_NOTICE" || e === "PRE_LOGIN_ASSESSMENT" ? n[t] = "warning" : e === "CODE_SENT" || e === "CODE_LINK_SENT" || e === "MFA_EMAIL_SENT" || e === "MFA_SMS_SENT" || e === "EMAIL_VERIFICATION_SENT" || e === "PUSH_NOTIFICATION_SENT" ? n[t] = "code_sent" : e === "INFORMATION" || e === "INFORMATION_FROM_SS_SSO_OPERATION" || e === "MANAGEMENT_API_READ_OPERATION" || e === "APPI" || e === "ACLS_SUMMARY" || e === "ORGANIZATION_MEMBER_ADDED" ? n[t] = "info" : n[t] = "other";
|
|
7822
|
+
e.startsWith("SUCCESS_") || e.startsWith("SUCCESSFUL_") || e.startsWith("SUCCESSFULLY_") || e.endsWith("_SUCCEEDED") || e.endsWith("_COMPLETED") ? n[t] = "success" : e.startsWith("FAILED_") || e.startsWith("ERROR_") || e.startsWith("BREACHED_") || e.startsWith("BLOCKED_") || e === "MFA_AUTH_FAILED" || e === "MFA_AUTH_REJECTED" || e === "MFA_RECOVERY_FAILED" || e === "MFA_ENROLLMENT_FAILED" || e === "EMAIL_VERIFICATION_FAILED" || e === "WEBAUTHN_CHALLENGE_FAILED" || e === "WEBAUTHN_ENROLLMENT_FAILED" || e === "PASSKEY_CHALLENGE_FAILED" || e === "FLOWS_EXECUTION_FAILED" || e === "FORMS_SUBMISSION_FAILED" || e === "CIBA_EXCHANGE_FAILED" || e === "CIBA_START_FAILED" || e === "ACTIONS_EXECUTION_FAILED" || e === "RICH_CONSENTS_ACCESS_ERROR" || e === "USER_CANCELED_DEVICE_CONFIRMATION" || e === "TOO_MANY_MFA_FAILURES" || e === "MFA_RECOVERY_RATE_LIMIT_EXCEED" || e === "API_LIMIT" || e === "MAX_AMOUNT_OF_AUTHENTICATORS" ? n[t] = "failure" : e.startsWith("WARNING_") || e === "API_LIMIT_WARNING" || e === "DEPRECATION_NOTICE" || e === "PRE_LOGIN_ASSESSMENT" ? n[t] = "warning" : e === "CODE_SENT" || e === "CODE_LINK_SENT" || e === "MFA_EMAIL_SENT" || e === "MFA_SMS_SENT" || e === "EMAIL_VERIFICATION_SENT" || e === "PUSH_NOTIFICATION_SENT" ? n[t] = "code_sent" : e === "INFORMATION" || e === "INFORMATION_FROM_SS_SSO_OPERATION" || e === "MANAGEMENT_API_READ_OPERATION" || e === "APPI" || e === "ACLS_SUMMARY" || e === "ORGANIZATION_MEMBER_ADDED" ? n[t] = "info" : n[t] = "other";
|
|
7821
7823
|
return n;
|
|
7822
7824
|
})();
|
|
7823
7825
|
const oc = _({
|
|
@@ -7861,14 +7863,14 @@ _({
|
|
|
7861
7863
|
...sc.shape,
|
|
7862
7864
|
log_id: a()
|
|
7863
7865
|
});
|
|
7864
|
-
const rc =
|
|
7866
|
+
const rc = E([
|
|
7865
7867
|
"http",
|
|
7866
7868
|
"eventbridge",
|
|
7867
7869
|
"eventgrid",
|
|
7868
7870
|
"splunk",
|
|
7869
7871
|
"datadog",
|
|
7870
7872
|
"sumo"
|
|
7871
|
-
]), Ps =
|
|
7873
|
+
]), Ps = E(["active", "paused", "suspended"]), lc = _({
|
|
7872
7874
|
type: a(),
|
|
7873
7875
|
name: a()
|
|
7874
7876
|
}), dc = _({
|
|
@@ -7876,7 +7878,7 @@ const rc = b([
|
|
|
7876
7878
|
type: rc,
|
|
7877
7879
|
status: Ps.optional(),
|
|
7878
7880
|
sink: M(a(), Fe()),
|
|
7879
|
-
filters:
|
|
7881
|
+
filters: N(lc).optional(),
|
|
7880
7882
|
isPriority: h().optional()
|
|
7881
7883
|
});
|
|
7882
7884
|
dc.extend({
|
|
@@ -7885,7 +7887,7 @@ dc.extend({
|
|
|
7885
7887
|
created_at: a().optional(),
|
|
7886
7888
|
updated_at: a().optional()
|
|
7887
7889
|
});
|
|
7888
|
-
const cc =
|
|
7890
|
+
const cc = E([
|
|
7889
7891
|
"auth0",
|
|
7890
7892
|
"cognito",
|
|
7891
7893
|
"okta",
|
|
@@ -7911,27 +7913,27 @@ _({
|
|
|
7911
7913
|
}).extend(uc.shape);
|
|
7912
7914
|
const pc = _({
|
|
7913
7915
|
enabled: h().optional(),
|
|
7914
|
-
shields:
|
|
7915
|
-
admin_notification_frequency:
|
|
7916
|
+
shields: N(a()).optional(),
|
|
7917
|
+
admin_notification_frequency: N(a()).optional(),
|
|
7916
7918
|
method: a().optional(),
|
|
7917
7919
|
stage: _({
|
|
7918
7920
|
"pre-user-registration": _({
|
|
7919
|
-
shields:
|
|
7921
|
+
shields: N(a()).optional()
|
|
7920
7922
|
}).optional(),
|
|
7921
7923
|
"pre-change-password": _({
|
|
7922
|
-
shields:
|
|
7924
|
+
shields: N(a()).optional()
|
|
7923
7925
|
}).optional()
|
|
7924
7926
|
}).optional()
|
|
7925
7927
|
}), fc = _({
|
|
7926
7928
|
enabled: h().optional(),
|
|
7927
|
-
shields:
|
|
7928
|
-
allowlist:
|
|
7929
|
+
shields: N(a()).optional(),
|
|
7930
|
+
allowlist: N(a()).optional(),
|
|
7929
7931
|
mode: a().optional(),
|
|
7930
7932
|
max_attempts: x().optional()
|
|
7931
7933
|
}), hc = _({
|
|
7932
7934
|
enabled: h().optional(),
|
|
7933
|
-
shields:
|
|
7934
|
-
allowlist:
|
|
7935
|
+
shields: N(a()).optional(),
|
|
7936
|
+
allowlist: N(a()).optional(),
|
|
7935
7937
|
stage: _({
|
|
7936
7938
|
"pre-login": _({
|
|
7937
7939
|
max_attempts: x().optional(),
|
|
@@ -7950,7 +7952,7 @@ const pc = _({
|
|
|
7950
7952
|
id: a().optional(),
|
|
7951
7953
|
user_id: a(),
|
|
7952
7954
|
password: a(),
|
|
7953
|
-
algorithm:
|
|
7955
|
+
algorithm: E(["bcrypt", "argon2id"]).default("argon2id"),
|
|
7954
7956
|
is_current: h().default(!0)
|
|
7955
7957
|
});
|
|
7956
7958
|
mc.extend({
|
|
@@ -7976,7 +7978,7 @@ const qs = _({
|
|
|
7976
7978
|
device: qs.describe(
|
|
7977
7979
|
"Metadata related to the device used in the session"
|
|
7978
7980
|
),
|
|
7979
|
-
clients:
|
|
7981
|
+
clients: N(a()).describe("List of client details for the session")
|
|
7980
7982
|
});
|
|
7981
7983
|
_({
|
|
7982
7984
|
created_at: a(),
|
|
@@ -8010,7 +8012,7 @@ _({
|
|
|
8010
8012
|
connection: a().optional().openapi({
|
|
8011
8013
|
description: "The connection identifier associated with the key"
|
|
8012
8014
|
}),
|
|
8013
|
-
type:
|
|
8015
|
+
type: E(["jwt_signing", "saml_encryption"]).openapi({
|
|
8014
8016
|
description: "The type of the signing key"
|
|
8015
8017
|
})
|
|
8016
8018
|
});
|
|
@@ -8032,10 +8034,10 @@ const vc = _({
|
|
|
8032
8034
|
ephemeral_session_lifetime: x().optional(),
|
|
8033
8035
|
idle_ephemeral_session_lifetime: x().optional(),
|
|
8034
8036
|
session_cookie: _({
|
|
8035
|
-
mode:
|
|
8037
|
+
mode: E(["persistent", "non-persistent"]).optional()
|
|
8036
8038
|
}).optional(),
|
|
8037
8039
|
// Logout settings
|
|
8038
|
-
allowed_logout_urls:
|
|
8040
|
+
allowed_logout_urls: N(a()).optional(),
|
|
8039
8041
|
// Universal Login settings
|
|
8040
8042
|
default_redirection_uri: a().optional(),
|
|
8041
8043
|
// Anchor client used for tenant-level flows that aren't tied to a specific
|
|
@@ -8044,7 +8046,7 @@ const vc = _({
|
|
|
8044
8046
|
// "Default App" / Global Client.
|
|
8045
8047
|
default_client_id: a().optional(),
|
|
8046
8048
|
// Advanced settings
|
|
8047
|
-
enabled_locales:
|
|
8049
|
+
enabled_locales: N(a()).optional(),
|
|
8048
8050
|
default_directory: a().optional(),
|
|
8049
8051
|
error_page: _({
|
|
8050
8052
|
html: a().optional(),
|
|
@@ -8074,11 +8076,11 @@ const vc = _({
|
|
|
8074
8076
|
// and relies on tenant ACLs/rate limits; we implement RFC 7591 initial
|
|
8075
8077
|
// access tokens and a per-tenant grant-type allowlist.
|
|
8076
8078
|
dcr_require_initial_access_token: h().optional(),
|
|
8077
|
-
dcr_allowed_grant_types:
|
|
8079
|
+
dcr_allowed_grant_types: N(a()).optional(),
|
|
8078
8080
|
// Per-tenant allowlist of fully-qualified http origins (scheme + host
|
|
8079
8081
|
// + port, no path) that may be used as `return_to` / `domain` on
|
|
8080
8082
|
// `/connect/start` despite not being loopback. Off by default.
|
|
8081
|
-
allow_http_return_to:
|
|
8083
|
+
allow_http_return_to: N(
|
|
8082
8084
|
a().refine(
|
|
8083
8085
|
(n) => {
|
|
8084
8086
|
try {
|
|
@@ -8116,7 +8118,7 @@ const vc = _({
|
|
|
8116
8118
|
// Sandbox settings
|
|
8117
8119
|
sandbox_version: a().optional(),
|
|
8118
8120
|
legacy_sandbox_version: a().optional(),
|
|
8119
|
-
sandbox_versions_available:
|
|
8121
|
+
sandbox_versions_available: N(a()).optional(),
|
|
8120
8122
|
// Change password settings
|
|
8121
8123
|
change_password: _({
|
|
8122
8124
|
enabled: h().optional(),
|
|
@@ -8129,7 +8131,7 @@ const vc = _({
|
|
|
8129
8131
|
}).optional(),
|
|
8130
8132
|
// Device flow settings
|
|
8131
8133
|
device_flow: _({
|
|
8132
|
-
charset:
|
|
8134
|
+
charset: E(["base20", "digits"]).optional(),
|
|
8133
8135
|
mask: a().max(20).optional()
|
|
8134
8136
|
}).optional(),
|
|
8135
8137
|
// Default token quota
|
|
@@ -8158,7 +8160,7 @@ const vc = _({
|
|
|
8158
8160
|
// MFA settings
|
|
8159
8161
|
customize_mfa_in_postlogin_action: h().optional(),
|
|
8160
8162
|
// ACR values
|
|
8161
|
-
acr_values_supported:
|
|
8163
|
+
acr_values_supported: N(a()).optional(),
|
|
8162
8164
|
// mTLS settings
|
|
8163
8165
|
mtls: _({
|
|
8164
8166
|
enable_endpoint_aliases: h().optional()
|
|
@@ -8171,7 +8173,7 @@ const vc = _({
|
|
|
8171
8173
|
// Guardian MFA Factors configuration (internal storage, exposed via /guardian API)
|
|
8172
8174
|
mfa: _({
|
|
8173
8175
|
// MFA policy: "never" = MFA disabled, "always" = MFA required for all logins
|
|
8174
|
-
policy:
|
|
8176
|
+
policy: E(["never", "always"]).default("never").optional(),
|
|
8175
8177
|
// Factor states
|
|
8176
8178
|
factors: _({
|
|
8177
8179
|
sms: h().default(!1),
|
|
@@ -8185,7 +8187,7 @@ const vc = _({
|
|
|
8185
8187
|
}).optional(),
|
|
8186
8188
|
// SMS provider configuration
|
|
8187
8189
|
sms_provider: _({
|
|
8188
|
-
provider:
|
|
8190
|
+
provider: E(["twilio", "vonage", "aws_sns", "phone_message_hook"]).optional()
|
|
8189
8191
|
}).optional(),
|
|
8190
8192
|
// Twilio-specific configuration
|
|
8191
8193
|
twilio: _({
|
|
@@ -8227,18 +8229,18 @@ _({
|
|
|
8227
8229
|
const wc = _({
|
|
8228
8230
|
button_border_radius: x(),
|
|
8229
8231
|
button_border_weight: x(),
|
|
8230
|
-
buttons_style:
|
|
8232
|
+
buttons_style: E(["pill", "rounded", "sharp"]),
|
|
8231
8233
|
input_border_radius: x(),
|
|
8232
8234
|
input_border_weight: x(),
|
|
8233
|
-
inputs_style:
|
|
8235
|
+
inputs_style: E(["pill", "rounded", "sharp"]),
|
|
8234
8236
|
show_widget_shadow: h(),
|
|
8235
8237
|
widget_border_weight: x(),
|
|
8236
8238
|
widget_corner_radius: x()
|
|
8237
|
-
}),
|
|
8239
|
+
}), Sc = _({
|
|
8238
8240
|
base_focus_color: a(),
|
|
8239
8241
|
base_hover_color: a(),
|
|
8240
8242
|
body_text: a(),
|
|
8241
|
-
captcha_widget_theme:
|
|
8243
|
+
captcha_widget_theme: E(["auto", "dark", "light"]),
|
|
8242
8244
|
error: a(),
|
|
8243
8245
|
header: a(),
|
|
8244
8246
|
icons: a(),
|
|
@@ -8254,23 +8256,23 @@ const wc = _({
|
|
|
8254
8256
|
success: a(),
|
|
8255
8257
|
widget_background: a(),
|
|
8256
8258
|
widget_border: a()
|
|
8257
|
-
}),
|
|
8259
|
+
}), Et = _({
|
|
8258
8260
|
bold: h(),
|
|
8259
8261
|
size: x()
|
|
8260
|
-
}),
|
|
8261
|
-
body_text:
|
|
8262
|
-
buttons_text:
|
|
8262
|
+
}), Nc = _({
|
|
8263
|
+
body_text: Et,
|
|
8264
|
+
buttons_text: Et,
|
|
8263
8265
|
font_url: a(),
|
|
8264
|
-
input_labels:
|
|
8265
|
-
links:
|
|
8266
|
-
links_style:
|
|
8266
|
+
input_labels: Et,
|
|
8267
|
+
links: Et,
|
|
8268
|
+
links_style: E(["normal", "underlined"]),
|
|
8267
8269
|
reference_text_size: x(),
|
|
8268
|
-
subtitle:
|
|
8269
|
-
title:
|
|
8270
|
-
}),
|
|
8270
|
+
subtitle: Et,
|
|
8271
|
+
title: Et
|
|
8272
|
+
}), Ec = _({
|
|
8271
8273
|
background_color: a(),
|
|
8272
8274
|
background_image_url: a(),
|
|
8273
|
-
page_layout:
|
|
8275
|
+
page_layout: E(["center", "left", "right"]),
|
|
8274
8276
|
/**
|
|
8275
8277
|
* Where the tenant logo renders on the page.
|
|
8276
8278
|
* - "widget" (default): inside the widget card via the widget's own header.
|
|
@@ -8279,26 +8281,26 @@ const wc = _({
|
|
|
8279
8281
|
* - "none": no logo on the page or in the widget.
|
|
8280
8282
|
* Optional for backwards compatibility; absent values mean "widget".
|
|
8281
8283
|
*/
|
|
8282
|
-
logo_placement:
|
|
8283
|
-
}),
|
|
8284
|
-
header_text_alignment:
|
|
8284
|
+
logo_placement: E(["widget", "chip", "none"]).optional()
|
|
8285
|
+
}), bc = _({
|
|
8286
|
+
header_text_alignment: E(["center", "left", "right"]),
|
|
8285
8287
|
logo_height: x(),
|
|
8286
|
-
logo_position:
|
|
8288
|
+
logo_position: E(["center", "left", "none", "right"]),
|
|
8287
8289
|
logo_url: a(),
|
|
8288
|
-
social_buttons_layout:
|
|
8290
|
+
social_buttons_layout: E(["bottom", "top"])
|
|
8289
8291
|
}), xc = _({
|
|
8290
8292
|
borders: wc,
|
|
8291
|
-
colors:
|
|
8293
|
+
colors: Sc,
|
|
8292
8294
|
displayName: a(),
|
|
8293
|
-
fonts:
|
|
8294
|
-
page_background:
|
|
8295
|
-
widget:
|
|
8295
|
+
fonts: Nc,
|
|
8296
|
+
page_background: Ec,
|
|
8297
|
+
widget: bc
|
|
8296
8298
|
});
|
|
8297
8299
|
xc.extend({
|
|
8298
8300
|
themeId: a()
|
|
8299
8301
|
});
|
|
8300
8302
|
_({
|
|
8301
|
-
universal_login_experience:
|
|
8303
|
+
universal_login_experience: E(["new", "classic"]).default("new"),
|
|
8302
8304
|
identifier_first: h().default(!0),
|
|
8303
8305
|
password_first: h().default(!1),
|
|
8304
8306
|
webauthn_platform_first_factor: h()
|
|
@@ -8310,7 +8312,7 @@ _({
|
|
|
8310
8312
|
credentials: M(a(), Fe()),
|
|
8311
8313
|
settings: _({}).optional()
|
|
8312
8314
|
});
|
|
8313
|
-
const kc =
|
|
8315
|
+
const kc = E([
|
|
8314
8316
|
"verify_email",
|
|
8315
8317
|
"verify_email_by_code",
|
|
8316
8318
|
"reset_email",
|
|
@@ -8349,7 +8351,7 @@ const Oc = _({
|
|
|
8349
8351
|
// When the token was last used.
|
|
8350
8352
|
last_exchanged_at: a().optional(),
|
|
8351
8353
|
device: qs,
|
|
8352
|
-
resource_servers:
|
|
8354
|
+
resource_servers: N(
|
|
8353
8355
|
_({
|
|
8354
8356
|
audience: a(),
|
|
8355
8357
|
scopes: a()
|
|
@@ -8390,7 +8392,7 @@ const Ac = _({
|
|
|
8390
8392
|
value: a(),
|
|
8391
8393
|
description: a().optional()
|
|
8392
8394
|
}), Tc = _({
|
|
8393
|
-
token_dialect:
|
|
8395
|
+
token_dialect: E(["access_token", "access_token_authz"]).optional(),
|
|
8394
8396
|
enforce_policies: h().optional(),
|
|
8395
8397
|
allow_skipping_userinfo: h().optional(),
|
|
8396
8398
|
skip_userinfo: h().optional(),
|
|
@@ -8403,7 +8405,7 @@ const Ac = _({
|
|
|
8403
8405
|
id: a().optional(),
|
|
8404
8406
|
name: a(),
|
|
8405
8407
|
identifier: a(),
|
|
8406
|
-
scopes:
|
|
8408
|
+
scopes: N(Ac).optional(),
|
|
8407
8409
|
signing_alg: a().optional(),
|
|
8408
8410
|
signing_secret: a().optional(),
|
|
8409
8411
|
token_lifetime: x().default(86400),
|
|
@@ -8419,7 +8421,7 @@ const Ac = _({
|
|
|
8419
8421
|
created_at: a().optional(),
|
|
8420
8422
|
updated_at: a().optional()
|
|
8421
8423
|
});
|
|
8422
|
-
|
|
8424
|
+
N(Cc);
|
|
8423
8425
|
const Dc = _({
|
|
8424
8426
|
role_id: a(),
|
|
8425
8427
|
resource_server_identifier: a(),
|
|
@@ -8428,7 +8430,7 @@ const Dc = _({
|
|
|
8428
8430
|
...Dc.shape,
|
|
8429
8431
|
created_at: a()
|
|
8430
8432
|
});
|
|
8431
|
-
|
|
8433
|
+
N(Lc);
|
|
8432
8434
|
const Rc = _({
|
|
8433
8435
|
user_id: a(),
|
|
8434
8436
|
resource_server_identifier: a(),
|
|
@@ -8439,7 +8441,7 @@ const Rc = _({
|
|
|
8439
8441
|
tenant_id: a(),
|
|
8440
8442
|
created_at: a().optional()
|
|
8441
8443
|
});
|
|
8442
|
-
|
|
8444
|
+
N(Uc);
|
|
8443
8445
|
const Fc = _({
|
|
8444
8446
|
user_id: a(),
|
|
8445
8447
|
resource_server_identifier: a(),
|
|
@@ -8449,7 +8451,7 @@ const Fc = _({
|
|
|
8449
8451
|
created_at: a().optional(),
|
|
8450
8452
|
organization_id: a().optional()
|
|
8451
8453
|
});
|
|
8452
|
-
|
|
8454
|
+
N(
|
|
8453
8455
|
Fc
|
|
8454
8456
|
);
|
|
8455
8457
|
const zc = _({
|
|
@@ -8461,7 +8463,7 @@ const zc = _({
|
|
|
8461
8463
|
tenant_id: a(),
|
|
8462
8464
|
created_at: a().optional()
|
|
8463
8465
|
});
|
|
8464
|
-
|
|
8466
|
+
N(Mc);
|
|
8465
8467
|
const Pc = _({
|
|
8466
8468
|
id: a().optional().openapi({
|
|
8467
8469
|
description: "The unique identifier of the role. If not provided, one will be generated."
|
|
@@ -8483,7 +8485,7 @@ const Pc = _({
|
|
|
8483
8485
|
created_at: a().optional(),
|
|
8484
8486
|
updated_at: a().optional()
|
|
8485
8487
|
});
|
|
8486
|
-
|
|
8488
|
+
N(qc);
|
|
8487
8489
|
const Bc = _({
|
|
8488
8490
|
logo_url: a().optional().openapi({
|
|
8489
8491
|
description: "URL of the organization's logo"
|
|
@@ -8535,7 +8537,7 @@ const Bc = _({
|
|
|
8535
8537
|
metadata: M(V()).default({}).optional().openapi({
|
|
8536
8538
|
description: "Custom metadata for the organization"
|
|
8537
8539
|
}),
|
|
8538
|
-
enabled_connections:
|
|
8540
|
+
enabled_connections: N($c).default([]).optional().openapi({
|
|
8539
8541
|
description: "List of enabled connections for the organization"
|
|
8540
8542
|
}),
|
|
8541
8543
|
token_quota: jc
|
|
@@ -8566,7 +8568,7 @@ const Hc = _({
|
|
|
8566
8568
|
created_at: a().optional(),
|
|
8567
8569
|
updated_at: a().optional()
|
|
8568
8570
|
});
|
|
8569
|
-
|
|
8571
|
+
N(
|
|
8570
8572
|
Zc
|
|
8571
8573
|
);
|
|
8572
8574
|
const Kc = _({
|
|
@@ -8587,14 +8589,14 @@ _({
|
|
|
8587
8589
|
idle_session_lifetime: x().default(72),
|
|
8588
8590
|
session_lifetime: x().default(168),
|
|
8589
8591
|
session_cookie: _({
|
|
8590
|
-
mode:
|
|
8592
|
+
mode: E(["persistent", "non-persistent"]).optional()
|
|
8591
8593
|
}).optional(),
|
|
8592
8594
|
// MFA settings
|
|
8593
8595
|
enable_client_connections: h().optional(),
|
|
8594
8596
|
// Universal Login settings
|
|
8595
8597
|
default_redirection_uri: a().optional(),
|
|
8596
8598
|
// Advanced settings
|
|
8597
|
-
enabled_locales:
|
|
8599
|
+
enabled_locales: N(a()).optional(),
|
|
8598
8600
|
default_directory: a().optional(),
|
|
8599
8601
|
error_page: _({
|
|
8600
8602
|
html: a().optional(),
|
|
@@ -8632,7 +8634,7 @@ _({
|
|
|
8632
8634
|
support_url: a().optional(),
|
|
8633
8635
|
// Sandbox settings
|
|
8634
8636
|
sandbox_version: a().optional(),
|
|
8635
|
-
sandbox_versions_available:
|
|
8637
|
+
sandbox_versions_available: N(a()).optional(),
|
|
8636
8638
|
// Change password settings
|
|
8637
8639
|
change_password: _({
|
|
8638
8640
|
enabled: h(),
|
|
@@ -8654,7 +8656,7 @@ _({
|
|
|
8654
8656
|
// Guardian MFA Factors configuration (internal storage, exposed via /guardian API)
|
|
8655
8657
|
mfa: _({
|
|
8656
8658
|
// MFA policy: "never" = MFA disabled, "always" = MFA required for all logins
|
|
8657
|
-
policy:
|
|
8659
|
+
policy: E(["never", "always"]).default("never").optional(),
|
|
8658
8660
|
// Factor states
|
|
8659
8661
|
factors: _({
|
|
8660
8662
|
sms: h().default(!1),
|
|
@@ -8668,7 +8670,7 @@ _({
|
|
|
8668
8670
|
}).optional(),
|
|
8669
8671
|
// SMS provider configuration
|
|
8670
8672
|
sms_provider: _({
|
|
8671
|
-
provider:
|
|
8673
|
+
provider: E(["twilio", "vonage", "aws_sns", "phone_message_hook"]).optional()
|
|
8672
8674
|
}).optional(),
|
|
8673
8675
|
// Twilio-specific configuration
|
|
8674
8676
|
twilio: _({
|
|
@@ -8713,22 +8715,22 @@ x().openapi({
|
|
|
8713
8715
|
description: "Number of active users in the last 30 days",
|
|
8714
8716
|
example: 1234
|
|
8715
8717
|
});
|
|
8716
|
-
|
|
8718
|
+
E([
|
|
8717
8719
|
"active-users",
|
|
8718
8720
|
"logins",
|
|
8719
8721
|
"signups",
|
|
8720
8722
|
"refresh-tokens",
|
|
8721
8723
|
"sessions"
|
|
8722
8724
|
]);
|
|
8723
|
-
|
|
8724
|
-
|
|
8725
|
+
E(["hour", "day", "week", "month"]);
|
|
8726
|
+
E([
|
|
8725
8727
|
"time",
|
|
8726
8728
|
"connection",
|
|
8727
8729
|
"client_id",
|
|
8728
8730
|
"user_type",
|
|
8729
8731
|
"event"
|
|
8730
8732
|
]);
|
|
8731
|
-
|
|
8733
|
+
E([
|
|
8732
8734
|
"password",
|
|
8733
8735
|
"social",
|
|
8734
8736
|
"passwordless",
|
|
@@ -8743,13 +8745,13 @@ const Wc = _({
|
|
|
8743
8745
|
bytes_read: x().optional()
|
|
8744
8746
|
});
|
|
8745
8747
|
_({
|
|
8746
|
-
meta:
|
|
8747
|
-
data:
|
|
8748
|
+
meta: N(Wc),
|
|
8749
|
+
data: N(M(a(), V())),
|
|
8748
8750
|
rows: x(),
|
|
8749
8751
|
rows_before_limit_at_least: x().optional(),
|
|
8750
8752
|
statistics: Gc.optional()
|
|
8751
8753
|
});
|
|
8752
|
-
const Jc =
|
|
8754
|
+
const Jc = E([
|
|
8753
8755
|
"login",
|
|
8754
8756
|
"login-id",
|
|
8755
8757
|
"login-password",
|
|
@@ -8790,7 +8792,7 @@ _({
|
|
|
8790
8792
|
language: a(),
|
|
8791
8793
|
custom_text: Qc
|
|
8792
8794
|
});
|
|
8793
|
-
const Xc =
|
|
8795
|
+
const Xc = E([
|
|
8794
8796
|
"phone",
|
|
8795
8797
|
"totp",
|
|
8796
8798
|
"email",
|
|
@@ -8810,26 +8812,26 @@ const Xc = b([
|
|
|
8810
8812
|
public_key: a().optional(),
|
|
8811
8813
|
sign_count: x().int().nonnegative().optional(),
|
|
8812
8814
|
credential_backed_up: h().optional(),
|
|
8813
|
-
transports:
|
|
8815
|
+
transports: N(a()).optional(),
|
|
8814
8816
|
friendly_name: a().optional(),
|
|
8815
8817
|
// Common
|
|
8816
8818
|
confirmed: h().default(!1)
|
|
8817
8819
|
});
|
|
8818
8820
|
function $s(n, e) {
|
|
8819
8821
|
n.type === "phone" && !n.phone_number && e.addIssue({
|
|
8820
|
-
code:
|
|
8822
|
+
code: S.custom,
|
|
8821
8823
|
message: "phone_number is required when type is 'phone'",
|
|
8822
8824
|
path: ["phone_number"]
|
|
8823
8825
|
}), n.type === "totp" && !n.totp_secret && e.addIssue({
|
|
8824
|
-
code:
|
|
8826
|
+
code: S.custom,
|
|
8825
8827
|
message: "totp_secret is required when type is 'totp'",
|
|
8826
8828
|
path: ["totp_secret"]
|
|
8827
8829
|
}), ["webauthn-roaming", "webauthn-platform", "passkey"].includes(n.type) && (n.credential_id || e.addIssue({
|
|
8828
|
-
code:
|
|
8830
|
+
code: S.custom,
|
|
8829
8831
|
message: `credential_id is required when type is '${n.type}'`,
|
|
8830
8832
|
path: ["credential_id"]
|
|
8831
8833
|
}), n.public_key || e.addIssue({
|
|
8832
|
-
code:
|
|
8834
|
+
code: S.custom,
|
|
8833
8835
|
message: `public_key is required when type is '${n.type}'`,
|
|
8834
8836
|
path: ["public_key"]
|
|
8835
8837
|
}));
|
|
@@ -9098,14 +9100,14 @@ function o_(n) {
|
|
|
9098
9100
|
} = t || {};
|
|
9099
9101
|
let u = c(pe.tenant_id, e);
|
|
9100
9102
|
if (d) {
|
|
9101
|
-
const
|
|
9102
|
-
|
|
9103
|
+
const b = Qe(pe, d, ["name"]);
|
|
9104
|
+
b && (u = g(u, b));
|
|
9103
9105
|
}
|
|
9104
9106
|
let f = n.select().from(pe).where(u).$dynamic();
|
|
9105
9107
|
if (l != null && l.sort_by) {
|
|
9106
|
-
const
|
|
9107
|
-
|
|
9108
|
-
l.sort_order === "desc" ? se(
|
|
9108
|
+
const b = pe[l.sort_by];
|
|
9109
|
+
b && (f = f.orderBy(
|
|
9110
|
+
l.sort_order === "desc" ? se(b) : he(b)
|
|
9109
9111
|
));
|
|
9110
9112
|
}
|
|
9111
9113
|
const m = (await f.offset(i * o).limit(o)).map(Mn);
|
|
@@ -9200,11 +9202,11 @@ function a_(n) {
|
|
|
9200
9202
|
function s_(n) {
|
|
9201
9203
|
return {
|
|
9202
9204
|
async get(e, t, i) {
|
|
9203
|
-
const o = await n.select().from(
|
|
9205
|
+
const o = await n.select().from(Ne).where(
|
|
9204
9206
|
g(
|
|
9205
|
-
c(
|
|
9206
|
-
c(
|
|
9207
|
-
c(
|
|
9207
|
+
c(Ne.tenant_id, e),
|
|
9208
|
+
c(Ne.prompt, t),
|
|
9209
|
+
c(Ne.language, i)
|
|
9208
9210
|
)
|
|
9209
9211
|
).get();
|
|
9210
9212
|
if (!o) return null;
|
|
@@ -9216,7 +9218,7 @@ function s_(n) {
|
|
|
9216
9218
|
},
|
|
9217
9219
|
async set(e, t, i, o) {
|
|
9218
9220
|
const s = Date.now(), l = JSON.stringify(o);
|
|
9219
|
-
await n.insert(
|
|
9221
|
+
await n.insert(Ne).values({
|
|
9220
9222
|
tenant_id: e,
|
|
9221
9223
|
prompt: t,
|
|
9222
9224
|
language: i,
|
|
@@ -9225,27 +9227,27 @@ function s_(n) {
|
|
|
9225
9227
|
updated_at_ts: s
|
|
9226
9228
|
}).onConflictDoUpdate({
|
|
9227
9229
|
target: [
|
|
9228
|
-
|
|
9229
|
-
|
|
9230
|
-
|
|
9230
|
+
Ne.tenant_id,
|
|
9231
|
+
Ne.prompt,
|
|
9232
|
+
Ne.language
|
|
9231
9233
|
],
|
|
9232
9234
|
set: { custom_text: l, updated_at_ts: s }
|
|
9233
9235
|
});
|
|
9234
9236
|
},
|
|
9235
9237
|
async delete(e, t, i) {
|
|
9236
|
-
await n.delete(
|
|
9238
|
+
await n.delete(Ne).where(
|
|
9237
9239
|
g(
|
|
9238
|
-
c(
|
|
9239
|
-
c(
|
|
9240
|
-
c(
|
|
9240
|
+
c(Ne.tenant_id, e),
|
|
9241
|
+
c(Ne.prompt, t),
|
|
9242
|
+
c(Ne.language, i)
|
|
9241
9243
|
)
|
|
9242
9244
|
);
|
|
9243
9245
|
},
|
|
9244
9246
|
async list(e) {
|
|
9245
9247
|
return await n.select({
|
|
9246
|
-
prompt:
|
|
9247
|
-
language:
|
|
9248
|
-
}).from(
|
|
9248
|
+
prompt: Ne.prompt,
|
|
9249
|
+
language: Ne.language
|
|
9250
|
+
}).from(Ne).where(c(Ne.tenant_id, e)).all();
|
|
9249
9251
|
}
|
|
9250
9252
|
};
|
|
9251
9253
|
}
|
|
@@ -9406,10 +9408,10 @@ function d_(n) {
|
|
|
9406
9408
|
));
|
|
9407
9409
|
}
|
|
9408
9410
|
const f = (await d.offset(i * o).limit(o)).map((m) => {
|
|
9409
|
-
const { tenant_id: y, actions:
|
|
9411
|
+
const { tenant_id: y, actions: b, ...A } = m;
|
|
9410
9412
|
return G({
|
|
9411
9413
|
...A,
|
|
9412
|
-
actions: z(
|
|
9414
|
+
actions: z(b, [])
|
|
9413
9415
|
});
|
|
9414
9416
|
});
|
|
9415
9417
|
if (!s)
|
|
@@ -9484,9 +9486,9 @@ function c_(n) {
|
|
|
9484
9486
|
));
|
|
9485
9487
|
}
|
|
9486
9488
|
const f = (await d.offset(i * o).limit(o)).map((m) => {
|
|
9487
|
-
const { tenant_id: y, ...
|
|
9489
|
+
const { tenant_id: y, ...b } = m, A = { ...b };
|
|
9488
9490
|
for (const J of rn)
|
|
9489
|
-
A[J] = z(
|
|
9491
|
+
A[J] = z(b[J]);
|
|
9490
9492
|
return G(A);
|
|
9491
9493
|
});
|
|
9492
9494
|
if (!s)
|
|
@@ -9654,12 +9656,12 @@ function g_(n) {
|
|
|
9654
9656
|
m ? p = p.orderBy(
|
|
9655
9657
|
(l == null ? void 0 : l.sort_order) === "desc" ? se(m) : he(m)
|
|
9656
9658
|
) : p = p.orderBy(se(me.priority), he(me.created_at_ts));
|
|
9657
|
-
const
|
|
9659
|
+
const b = (await p.offset(i * o).limit(o)).map(Pn);
|
|
9658
9660
|
if (!s)
|
|
9659
|
-
return { hooks:
|
|
9661
|
+
return { hooks: b };
|
|
9660
9662
|
const [A] = await n.select({ count: ge() }).from(me).where(f);
|
|
9661
9663
|
return {
|
|
9662
|
-
hooks:
|
|
9664
|
+
hooks: b,
|
|
9663
9665
|
start: i * o,
|
|
9664
9666
|
limit: o,
|
|
9665
9667
|
length: Number((A == null ? void 0 : A.count) ?? 0)
|
|
@@ -9778,8 +9780,8 @@ function v_(n) {
|
|
|
9778
9780
|
));
|
|
9779
9781
|
}
|
|
9780
9782
|
const f = (await d.offset(t * i).limit(i)).map((m) => {
|
|
9781
|
-
const { created_at: y, ...
|
|
9782
|
-
return G(
|
|
9783
|
+
const { created_at: y, ...b } = m;
|
|
9784
|
+
return G(b);
|
|
9783
9785
|
});
|
|
9784
9786
|
if (!o)
|
|
9785
9787
|
return { signingKeys: f };
|
|
@@ -9830,7 +9832,7 @@ function Li(n) {
|
|
|
9830
9832
|
state_data: z(s)
|
|
9831
9833
|
});
|
|
9832
9834
|
}
|
|
9833
|
-
function
|
|
9835
|
+
function S_(n) {
|
|
9834
9836
|
return {
|
|
9835
9837
|
async create(e, t) {
|
|
9836
9838
|
var l, d;
|
|
@@ -9907,23 +9909,23 @@ function $n(n) {
|
|
|
9907
9909
|
continent_code: p,
|
|
9908
9910
|
scope: m,
|
|
9909
9911
|
...y
|
|
9910
|
-
} = n,
|
|
9912
|
+
} = n, b = {
|
|
9911
9913
|
...y,
|
|
9912
9914
|
isMobile: !!t,
|
|
9913
9915
|
auth0_client: z(i),
|
|
9914
9916
|
details: z(o),
|
|
9915
9917
|
scope: m ? m.split(",") : void 0
|
|
9916
9918
|
};
|
|
9917
|
-
return s && (
|
|
9919
|
+
return s && (b.location_info = G({
|
|
9918
9920
|
country_code: s,
|
|
9919
9921
|
city_name: l,
|
|
9920
9922
|
latitude: d,
|
|
9921
9923
|
longitude: u,
|
|
9922
9924
|
time_zone: f,
|
|
9923
9925
|
continent_code: p
|
|
9924
|
-
})), G(
|
|
9926
|
+
})), G(b);
|
|
9925
9927
|
}
|
|
9926
|
-
function
|
|
9928
|
+
function N_(n) {
|
|
9927
9929
|
return {
|
|
9928
9930
|
async create(e, t) {
|
|
9929
9931
|
var s, l;
|
|
@@ -10009,7 +10011,7 @@ function S_(n) {
|
|
|
10009
10011
|
};
|
|
10010
10012
|
}
|
|
10011
10013
|
const pi = "0123456789ABCDEFGHJKMNPQRSTVWXYZ", jn = pi.length;
|
|
10012
|
-
function
|
|
10014
|
+
function E_() {
|
|
10013
10015
|
let t = Date.now(), i = "";
|
|
10014
10016
|
for (let s = 10; s > 0; s--)
|
|
10015
10017
|
i = pi.charAt(t % jn) + i, t = Math.floor(t / jn);
|
|
@@ -10038,11 +10040,11 @@ function ln(n) {
|
|
|
10038
10040
|
updated_at: ci(i)
|
|
10039
10041
|
});
|
|
10040
10042
|
}
|
|
10041
|
-
function
|
|
10043
|
+
function b_(n) {
|
|
10042
10044
|
return {
|
|
10043
10045
|
async create(e, t) {
|
|
10044
10046
|
const i = Date.now(), s = {
|
|
10045
|
-
id: t.id ||
|
|
10047
|
+
id: t.id || E_(),
|
|
10046
10048
|
tenant_id: e,
|
|
10047
10049
|
user_id: t.user_id,
|
|
10048
10050
|
type: t.type,
|
|
@@ -10195,9 +10197,9 @@ function k_(n) {
|
|
|
10195
10197
|
xt(ee.display_name, `%${d}%`)
|
|
10196
10198
|
)
|
|
10197
10199
|
)), l != null && l.sort_by) {
|
|
10198
|
-
const
|
|
10199
|
-
|
|
10200
|
-
l.sort_order === "desc" ? se(
|
|
10200
|
+
const b = ee[l.sort_by];
|
|
10201
|
+
b && (u = u.orderBy(
|
|
10202
|
+
l.sort_order === "desc" ? se(b) : he(b)
|
|
10201
10203
|
));
|
|
10202
10204
|
}
|
|
10203
10205
|
const p = (await u.offset(i * o).limit(o)).map(Vn);
|
|
@@ -10604,10 +10606,10 @@ function D_(n) {
|
|
|
10604
10606
|
if (d) {
|
|
10605
10607
|
const J = d.match(/^([^:]+):(.+)$/);
|
|
10606
10608
|
if (J) {
|
|
10607
|
-
const [, Q, ie] = J, Pe = Q == null ? void 0 : Q.startsWith("-"),
|
|
10608
|
-
if (
|
|
10609
|
-
const
|
|
10610
|
-
p.push(xt(
|
|
10609
|
+
const [, Q, ie] = J, Pe = Q == null ? void 0 : Q.startsWith("-"), Se = Pe ? Q == null ? void 0 : Q.substring(1) : Q;
|
|
10610
|
+
if (Se && Ri.has(Se) && !Pe) {
|
|
10611
|
+
const be = te[Se];
|
|
10612
|
+
p.push(xt(be, `%${ie}%`));
|
|
10611
10613
|
}
|
|
10612
10614
|
}
|
|
10613
10615
|
}
|
|
@@ -10618,12 +10620,12 @@ function D_(n) {
|
|
|
10618
10620
|
l.sort_order === "desc" ? se(J) : he(J)
|
|
10619
10621
|
);
|
|
10620
10622
|
}
|
|
10621
|
-
const
|
|
10623
|
+
const b = (await m.offset(u * f).limit(f)).map(Zn);
|
|
10622
10624
|
if (!s)
|
|
10623
|
-
return { resource_servers:
|
|
10625
|
+
return { resource_servers: b };
|
|
10624
10626
|
const [A] = await n.select({ count: ge() }).from(te).where(g(...p));
|
|
10625
10627
|
return {
|
|
10626
|
-
resource_servers:
|
|
10628
|
+
resource_servers: b,
|
|
10627
10629
|
start: u * f,
|
|
10628
10630
|
limit: f,
|
|
10629
10631
|
length: Number((A == null ? void 0 : A.count) ?? 0)
|
|
@@ -10815,12 +10817,12 @@ function U_(n) {
|
|
|
10815
10817
|
const y = (await p.offset(i * o).limit(o)).map(Kn);
|
|
10816
10818
|
if (!s)
|
|
10817
10819
|
return { roles: y };
|
|
10818
|
-
const [
|
|
10820
|
+
const [b] = await n.select({ count: ge() }).from(_e).where(f);
|
|
10819
10821
|
return {
|
|
10820
10822
|
roles: y,
|
|
10821
10823
|
start: i * o,
|
|
10822
10824
|
limit: o,
|
|
10823
|
-
length: Number((
|
|
10825
|
+
length: Number((b == null ? void 0 : b.count) ?? 0)
|
|
10824
10826
|
};
|
|
10825
10827
|
},
|
|
10826
10828
|
async remove(e, t) {
|
|
@@ -10850,7 +10852,7 @@ function Wn(n) {
|
|
|
10850
10852
|
device: p,
|
|
10851
10853
|
clients: m,
|
|
10852
10854
|
...y
|
|
10853
|
-
} = n,
|
|
10855
|
+
} = n, b = nn(
|
|
10854
10856
|
{
|
|
10855
10857
|
created_at_ts: t,
|
|
10856
10858
|
updated_at_ts: i,
|
|
@@ -10866,7 +10868,7 @@ function Wn(n) {
|
|
|
10866
10868
|
);
|
|
10867
10869
|
return G({
|
|
10868
10870
|
...y,
|
|
10869
|
-
...
|
|
10871
|
+
...b,
|
|
10870
10872
|
device: z(p, {}),
|
|
10871
10873
|
clients: z(m, [])
|
|
10872
10874
|
});
|
|
@@ -10922,12 +10924,12 @@ function M_(n) {
|
|
|
10922
10924
|
const y = (await p.offset(i * o).limit(o)).map(Wn);
|
|
10923
10925
|
if (!s)
|
|
10924
10926
|
return { sessions: y };
|
|
10925
|
-
const [
|
|
10927
|
+
const [b] = await n.select({ count: ge() }).from(ae).where(f);
|
|
10926
10928
|
return {
|
|
10927
10929
|
sessions: y,
|
|
10928
10930
|
start: i * o,
|
|
10929
10931
|
limit: o,
|
|
10930
|
-
length: Number((
|
|
10932
|
+
length: Number((b == null ? void 0 : b.count) ?? 0)
|
|
10931
10933
|
};
|
|
10932
10934
|
},
|
|
10933
10935
|
async remove(e, t) {
|
|
@@ -11135,7 +11137,7 @@ function Gn(n, e = []) {
|
|
|
11135
11137
|
linked_to: f,
|
|
11136
11138
|
profileData: p,
|
|
11137
11139
|
...m
|
|
11138
|
-
} = n, y = Mi(n, !0),
|
|
11140
|
+
} = n, y = Mi(n, !0), b = e.map((A) => Mi(A, !1));
|
|
11139
11141
|
return G({
|
|
11140
11142
|
...m,
|
|
11141
11143
|
email: n.email || "",
|
|
@@ -11145,7 +11147,7 @@ function Gn(n, e = []) {
|
|
|
11145
11147
|
app_metadata: z(i, {}),
|
|
11146
11148
|
user_metadata: z(o, {}),
|
|
11147
11149
|
address: z(s),
|
|
11148
|
-
identities: [y, ...
|
|
11150
|
+
identities: [y, ...b]
|
|
11149
11151
|
});
|
|
11150
11152
|
}
|
|
11151
11153
|
function j_(n) {
|
|
@@ -11284,16 +11286,16 @@ function j_(n) {
|
|
|
11284
11286
|
d.sort_order === "desc" ? se(ie) : he(ie)
|
|
11285
11287
|
));
|
|
11286
11288
|
}
|
|
11287
|
-
const y = await m.offset(o * s).limit(s),
|
|
11289
|
+
const y = await m.offset(o * s).limit(s), b = y.map((ie) => ie.user_id);
|
|
11288
11290
|
let A = [];
|
|
11289
|
-
|
|
11291
|
+
b.length > 0 && (A = await n.select().from(H).where(
|
|
11290
11292
|
g(
|
|
11291
11293
|
c(H.tenant_id, t),
|
|
11292
|
-
De(H.linked_to,
|
|
11294
|
+
De(H.linked_to, b)
|
|
11293
11295
|
)
|
|
11294
11296
|
));
|
|
11295
11297
|
const J = y.map((ie) => {
|
|
11296
|
-
const Pe = A.filter((
|
|
11298
|
+
const Pe = A.filter((Se) => Se.linked_to === ie.user_id);
|
|
11297
11299
|
return Gn(ie, Pe);
|
|
11298
11300
|
});
|
|
11299
11301
|
if (!l)
|
|
@@ -11379,9 +11381,9 @@ function V_(n) {
|
|
|
11379
11381
|
g(c(_e.tenant_id, e), c(_e.id, u.role_id))
|
|
11380
11382
|
).get();
|
|
11381
11383
|
if (!f) return null;
|
|
11382
|
-
const { tenant_id: p, is_system: m, metadata: y, ...
|
|
11384
|
+
const { tenant_id: p, is_system: m, metadata: y, ...b } = f;
|
|
11383
11385
|
return G({
|
|
11384
|
-
...
|
|
11386
|
+
...b,
|
|
11385
11387
|
is_system: m ? !0 : void 0,
|
|
11386
11388
|
metadata: z(y)
|
|
11387
11389
|
});
|
|
@@ -11460,7 +11462,7 @@ function H_(n) {
|
|
|
11460
11462
|
y && (u = g(d, y));
|
|
11461
11463
|
}
|
|
11462
11464
|
const p = (await n.select().from(le).where(u).offset(i * o).limit(o)).map((y) => {
|
|
11463
|
-
const { tenant_id:
|
|
11465
|
+
const { tenant_id: b, ...A } = y;
|
|
11464
11466
|
return A;
|
|
11465
11467
|
});
|
|
11466
11468
|
if (!s)
|
|
@@ -11489,7 +11491,7 @@ function H_(n) {
|
|
|
11489
11491
|
).get();
|
|
11490
11492
|
if (!y) return null;
|
|
11491
11493
|
const {
|
|
11492
|
-
tenant_id:
|
|
11494
|
+
tenant_id: b,
|
|
11493
11495
|
branding: A,
|
|
11494
11496
|
metadata: J,
|
|
11495
11497
|
enabled_connections: Q,
|
|
@@ -11648,16 +11650,16 @@ function X_(n) {
|
|
|
11648
11650
|
)
|
|
11649
11651
|
), (Pe = i.filters.user_id) != null && Pe.length && d.push(De(F.user_id, i.filters.user_id));
|
|
11650
11652
|
const u = {}, f = [], p = [];
|
|
11651
|
-
for (const
|
|
11652
|
-
if (
|
|
11653
|
-
const
|
|
11654
|
-
u.time =
|
|
11653
|
+
for (const Se of i.group_by)
|
|
11654
|
+
if (Se === "time") {
|
|
11655
|
+
const be = J_(i.interval);
|
|
11656
|
+
u.time = be, f.push(be), p.push({
|
|
11655
11657
|
name: "time",
|
|
11656
11658
|
type: i.interval === "hour" ? "DateTime" : "Date"
|
|
11657
11659
|
});
|
|
11658
11660
|
} else {
|
|
11659
|
-
const
|
|
11660
|
-
u[
|
|
11661
|
+
const be = Q_(Se);
|
|
11662
|
+
u[Se] = be, f.push(be), p.push({ name: Se, type: "String" });
|
|
11661
11663
|
}
|
|
11662
11664
|
u[l.alias] = l.agg === "uniq" ? O`COUNT(DISTINCT ${F.user_id})` : O`COUNT(*)`, p.push({ name: l.alias, type: l.type });
|
|
11663
11665
|
let m = n.select(u).from(F).where(g(...d));
|
|
@@ -11666,24 +11668,24 @@ function X_(n) {
|
|
|
11666
11668
|
...Object.keys(u)
|
|
11667
11669
|
]);
|
|
11668
11670
|
if (i.order_by) {
|
|
11669
|
-
const
|
|
11670
|
-
if (!y.has(
|
|
11671
|
+
const Se = i.order_by.startsWith("-"), be = Se ? i.order_by.slice(1) : i.order_by;
|
|
11672
|
+
if (!y.has(be))
|
|
11671
11673
|
throw new Error(
|
|
11672
|
-
`Invalid order_by column '${
|
|
11674
|
+
`Invalid order_by column '${be}' for analytics query`
|
|
11673
11675
|
);
|
|
11674
|
-
const it = Jn(
|
|
11675
|
-
m = m.orderBy(O.raw(`${it} ${
|
|
11676
|
+
const it = Jn(be);
|
|
11677
|
+
m = m.orderBy(O.raw(`${it} ${Se ? "DESC" : "ASC"}`));
|
|
11676
11678
|
} else i.group_by[0] === "time" ? m = m.orderBy(O.raw(`${Jn("time")} ASC`)) : m = m.orderBy(
|
|
11677
11679
|
O.raw(`${Jn(l.alias)} DESC`)
|
|
11678
11680
|
);
|
|
11679
11681
|
m = m.limit(i.limit).offset(i.offset);
|
|
11680
|
-
const A = (await m.all()).map((
|
|
11681
|
-
const
|
|
11682
|
+
const A = (await m.all()).map((Se) => {
|
|
11683
|
+
const be = {};
|
|
11682
11684
|
for (const it of p) {
|
|
11683
|
-
const rt =
|
|
11684
|
-
|
|
11685
|
+
const rt = Se[it.name];
|
|
11686
|
+
be[it.name] = it.type === "UInt64" ? Number(rt) || 0 : rt ?? "";
|
|
11685
11687
|
}
|
|
11686
|
-
return
|
|
11688
|
+
return be;
|
|
11687
11689
|
});
|
|
11688
11690
|
return {
|
|
11689
11691
|
meta: p,
|
|
@@ -11872,7 +11874,7 @@ function ou(n, e = { useTransactions: !0 }) {
|
|
|
11872
11874
|
actionVersions: ir(),
|
|
11873
11875
|
branding: vr(n),
|
|
11874
11876
|
clients: wr(n),
|
|
11875
|
-
clientConnections:
|
|
11877
|
+
clientConnections: Nr(n),
|
|
11876
11878
|
clientGrants: Or(n),
|
|
11877
11879
|
clientRegistrationTokens: t_(n),
|
|
11878
11880
|
codes: n_(n),
|
|
@@ -11887,9 +11889,9 @@ function ou(n, e = { useTransactions: !0 }) {
|
|
|
11887
11889
|
hooks: g_(n),
|
|
11888
11890
|
invites: y_(n),
|
|
11889
11891
|
keys: v_(n),
|
|
11890
|
-
loginSessions:
|
|
11891
|
-
logs:
|
|
11892
|
-
authenticationMethods:
|
|
11892
|
+
loginSessions: S_(n),
|
|
11893
|
+
logs: N_(n),
|
|
11894
|
+
authenticationMethods: b_(n),
|
|
11893
11895
|
organizations: k_(n),
|
|
11894
11896
|
passwords: O_(n),
|
|
11895
11897
|
promptSettings: A_(n),
|