@authhero/drizzle 0.44.0 → 0.44.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/drizzle-adapter.mjs
CHANGED
|
@@ -148,9 +148,9 @@ class ba {
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
y(ba, Pi, "ColumnBuilder");
|
|
151
|
-
const bt = Symbol.for("drizzle:Name"),
|
|
151
|
+
const bt = Symbol.for("drizzle:Name"), Ni = Symbol.for("drizzle:isPgEnum");
|
|
152
152
|
function Pr(n) {
|
|
153
|
-
return !!n && typeof n == "function" &&
|
|
153
|
+
return !!n && typeof n == "function" && Ni in n && n[Ni] === !0;
|
|
154
154
|
}
|
|
155
155
|
var Mi;
|
|
156
156
|
Mi = L;
|
|
@@ -575,7 +575,7 @@ function Te(n) {
|
|
|
575
575
|
function on(n) {
|
|
576
576
|
return I`${n} is not null`;
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function St(n, e) {
|
|
579
579
|
return I`${n} like ${e}`;
|
|
580
580
|
}
|
|
581
581
|
function ge(n) {
|
|
@@ -759,8 +759,8 @@ class Ra extends (wo = ze, vo = L, wo) {
|
|
|
759
759
|
}
|
|
760
760
|
}
|
|
761
761
|
y(Ra, vo, "SQLiteBlobBufferBuilder");
|
|
762
|
-
var
|
|
763
|
-
class Ua extends (
|
|
762
|
+
var So, No;
|
|
763
|
+
class Ua extends (No = Fe, So = L, No) {
|
|
764
764
|
mapFromDriverValue(e) {
|
|
765
765
|
return Buffer.isBuffer(e) ? e : Buffer.from(e);
|
|
766
766
|
}
|
|
@@ -768,7 +768,7 @@ class Ua extends (So = Fe, No = L, So) {
|
|
|
768
768
|
return "blob";
|
|
769
769
|
}
|
|
770
770
|
}
|
|
771
|
-
y(Ua,
|
|
771
|
+
y(Ua, So, "SQLiteBlobBuffer");
|
|
772
772
|
function Kr(n, e) {
|
|
773
773
|
const { name: t, config: i } = Qt(n, e);
|
|
774
774
|
return (i == null ? void 0 : i.mode) === "json" ? new Da(t) : (i == null ? void 0 : i.mode) === "bigint" ? new Ia(t) : new Ra(t);
|
|
@@ -1175,8 +1175,8 @@ function ht(n) {
|
|
|
1175
1175
|
function Ae(...n) {
|
|
1176
1176
|
return n[0].columns ? new Jn(n[0].columns, n[0].name) : new Jn(n);
|
|
1177
1177
|
}
|
|
1178
|
-
var
|
|
1179
|
-
|
|
1178
|
+
var Sa;
|
|
1179
|
+
Sa = L;
|
|
1180
1180
|
class Jn {
|
|
1181
1181
|
constructor(e, t) {
|
|
1182
1182
|
/** @internal */
|
|
@@ -1190,9 +1190,9 @@ class Jn {
|
|
|
1190
1190
|
return new or(e, this.columns, this.name);
|
|
1191
1191
|
}
|
|
1192
1192
|
}
|
|
1193
|
-
y(Jn,
|
|
1194
|
-
var
|
|
1195
|
-
|
|
1193
|
+
y(Jn, Sa, "SQLitePrimaryKeyBuilder");
|
|
1194
|
+
var Na;
|
|
1195
|
+
Na = L;
|
|
1196
1196
|
class or {
|
|
1197
1197
|
constructor(e, t, i) {
|
|
1198
1198
|
y(this, "columns");
|
|
@@ -1203,7 +1203,7 @@ class or {
|
|
|
1203
1203
|
return this.name ?? `${this.table[Rt.Symbol.Name]}_${this.columns.map((e) => e.name).join("_")}_pk`;
|
|
1204
1204
|
}
|
|
1205
1205
|
}
|
|
1206
|
-
y(or,
|
|
1206
|
+
y(or, Na, "SQLitePrimaryKey");
|
|
1207
1207
|
const B = $("tenants", {
|
|
1208
1208
|
id: s("id", { length: 191 }).primaryKey(),
|
|
1209
1209
|
name: s("name", { length: 255 }),
|
|
@@ -1224,6 +1224,7 @@ const B = $("tenants", {
|
|
|
1224
1224
|
ephemeral_session_lifetime: w("ephemeral_session_lifetime"),
|
|
1225
1225
|
idle_ephemeral_session_lifetime: w("idle_ephemeral_session_lifetime"),
|
|
1226
1226
|
default_redirection_uri: s("default_redirection_uri"),
|
|
1227
|
+
default_client_id: s("default_client_id", { length: 255 }),
|
|
1227
1228
|
enabled_locales: s("enabled_locales"),
|
|
1228
1229
|
default_directory: s("default_directory", { length: 255 }),
|
|
1229
1230
|
error_page: s("error_page"),
|
|
@@ -2139,7 +2140,7 @@ const B = $("tenants", {
|
|
|
2139
2140
|
() => pe.id,
|
|
2140
2141
|
{ onDelete: "cascade" }
|
|
2141
2142
|
)
|
|
2142
|
-
}),
|
|
2143
|
+
}), Se = $(
|
|
2143
2144
|
"custom_text",
|
|
2144
2145
|
{
|
|
2145
2146
|
tenant_id: s("tenant_id", { length: 191 }).notNull().references(() => B.id, { onDelete: "cascade" }),
|
|
@@ -2266,7 +2267,7 @@ const B = $("tenants", {
|
|
|
2266
2267
|
codes: re,
|
|
2267
2268
|
connections: pe,
|
|
2268
2269
|
customDomains: Oe,
|
|
2269
|
-
customText:
|
|
2270
|
+
customText: Se,
|
|
2270
2271
|
domains: ns,
|
|
2271
2272
|
emailProviders: ot,
|
|
2272
2273
|
flows: xe,
|
|
@@ -2533,7 +2534,7 @@ function Ve(n, e, t) {
|
|
|
2533
2534
|
} else if (p) {
|
|
2534
2535
|
const te = (p.includes("|") ? [...t, "user_id"] : t).map((ie) => {
|
|
2535
2536
|
const oe = n[ie];
|
|
2536
|
-
return oe ? ie === "user_id" ? c(oe, p) :
|
|
2537
|
+
return oe ? ie === "user_id" ? c(oe, p) : St(oe, `%${p}%`) : null;
|
|
2537
2538
|
}).filter(Boolean);
|
|
2538
2539
|
te.length > 0 && u.push(Ue(...te));
|
|
2539
2540
|
}
|
|
@@ -2946,11 +2947,11 @@ function ms(n) {
|
|
|
2946
2947
|
if (gs(this, "ZodObject")) {
|
|
2947
2948
|
const ut = this.extend;
|
|
2948
2949
|
We.extend = function(...wn) {
|
|
2949
|
-
var
|
|
2950
|
+
var Sn, Nn, bn, En, xn, kn, On;
|
|
2950
2951
|
const Tn = ut.apply(this, wn);
|
|
2951
2952
|
return Tn._def.openapi = {
|
|
2952
2953
|
_internal: {
|
|
2953
|
-
extendedFrom: !((
|
|
2954
|
+
extendedFrom: !((Nn = (Sn = this._def.openapi) === null || Sn === void 0 ? void 0 : Sn._internal) === null || Nn === void 0) && Nn.refId ? { refId: (En = (bn = this._def.openapi) === null || bn === void 0 ? void 0 : bn._internal) === null || En === void 0 ? void 0 : En.refId, schema: this } : (kn = (xn = this._def.openapi) === null || xn === void 0 ? void 0 : xn._internal) === null || kn === void 0 ? void 0 : kn.extendedFrom
|
|
2954
2955
|
},
|
|
2955
2956
|
metadata: (On = Tn._def.openapi) === null || On === void 0 ? void 0 : On.metadata
|
|
2956
2957
|
}, Tn;
|
|
@@ -3065,7 +3066,7 @@ const O = H.arrayToEnum([
|
|
|
3065
3066
|
default:
|
|
3066
3067
|
return O.unknown;
|
|
3067
3068
|
}
|
|
3068
|
-
},
|
|
3069
|
+
}, S = H.arrayToEnum([
|
|
3069
3070
|
"invalid_type",
|
|
3070
3071
|
"invalid_literal",
|
|
3071
3072
|
"custom",
|
|
@@ -3150,52 +3151,52 @@ Ge.create = (n) => new Ge(n);
|
|
|
3150
3151
|
const dn = (n, e) => {
|
|
3151
3152
|
let t;
|
|
3152
3153
|
switch (n.code) {
|
|
3153
|
-
case
|
|
3154
|
+
case S.invalid_type:
|
|
3154
3155
|
n.received === O.undefined ? t = "Required" : t = `Expected ${n.expected}, received ${n.received}`;
|
|
3155
3156
|
break;
|
|
3156
|
-
case
|
|
3157
|
+
case S.invalid_literal:
|
|
3157
3158
|
t = `Invalid literal value, expected ${JSON.stringify(n.expected, H.jsonStringifyReplacer)}`;
|
|
3158
3159
|
break;
|
|
3159
|
-
case
|
|
3160
|
+
case S.unrecognized_keys:
|
|
3160
3161
|
t = `Unrecognized key(s) in object: ${H.joinValues(n.keys, ", ")}`;
|
|
3161
3162
|
break;
|
|
3162
|
-
case
|
|
3163
|
+
case S.invalid_union:
|
|
3163
3164
|
t = "Invalid input";
|
|
3164
3165
|
break;
|
|
3165
|
-
case
|
|
3166
|
+
case S.invalid_union_discriminator:
|
|
3166
3167
|
t = `Invalid discriminator value. Expected ${H.joinValues(n.options)}`;
|
|
3167
3168
|
break;
|
|
3168
|
-
case
|
|
3169
|
+
case S.invalid_enum_value:
|
|
3169
3170
|
t = `Invalid enum value. Expected ${H.joinValues(n.options)}, received '${n.received}'`;
|
|
3170
3171
|
break;
|
|
3171
|
-
case
|
|
3172
|
+
case S.invalid_arguments:
|
|
3172
3173
|
t = "Invalid function arguments";
|
|
3173
3174
|
break;
|
|
3174
|
-
case
|
|
3175
|
+
case S.invalid_return_type:
|
|
3175
3176
|
t = "Invalid function return type";
|
|
3176
3177
|
break;
|
|
3177
|
-
case
|
|
3178
|
+
case S.invalid_date:
|
|
3178
3179
|
t = "Invalid date";
|
|
3179
3180
|
break;
|
|
3180
|
-
case
|
|
3181
|
+
case S.invalid_string:
|
|
3181
3182
|
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}"` : H.assertNever(n.validation) : n.validation !== "regex" ? t = `Invalid ${n.validation}` : t = "Invalid";
|
|
3182
3183
|
break;
|
|
3183
|
-
case
|
|
3184
|
+
case S.too_small:
|
|
3184
3185
|
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";
|
|
3185
3186
|
break;
|
|
3186
|
-
case
|
|
3187
|
+
case S.too_big:
|
|
3187
3188
|
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";
|
|
3188
3189
|
break;
|
|
3189
|
-
case
|
|
3190
|
+
case S.custom:
|
|
3190
3191
|
t = "Invalid input";
|
|
3191
3192
|
break;
|
|
3192
|
-
case
|
|
3193
|
+
case S.invalid_intersection_types:
|
|
3193
3194
|
t = "Intersection results could not be merged";
|
|
3194
3195
|
break;
|
|
3195
|
-
case
|
|
3196
|
+
case S.not_multiple_of:
|
|
3196
3197
|
t = `Number must be a multiple of ${n.multipleOf}`;
|
|
3197
3198
|
break;
|
|
3198
|
-
case
|
|
3199
|
+
case S.not_finite:
|
|
3199
3200
|
t = "Number must be finite";
|
|
3200
3201
|
break;
|
|
3201
3202
|
default:
|
|
@@ -3289,7 +3290,7 @@ class ke {
|
|
|
3289
3290
|
}
|
|
3290
3291
|
const R = Object.freeze({
|
|
3291
3292
|
status: "aborted"
|
|
3292
|
-
}),
|
|
3293
|
+
}), Nt = (n) => ({ status: "dirty", value: n }), De = (n) => ({ status: "valid", value: n }), Yn = (n) => n.status === "aborted", ei = (n) => n.status === "dirty", mt = (n) => n.status === "valid", Ut = (n) => typeof Promise < "u" && n instanceof Promise;
|
|
3293
3294
|
var C;
|
|
3294
3295
|
(function(n) {
|
|
3295
3296
|
n.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, n.toString = (e) => typeof e == "string" ? e : e == null ? void 0 : e.message;
|
|
@@ -3447,7 +3448,7 @@ class q {
|
|
|
3447
3448
|
const i = (o) => typeof t == "string" || typeof t > "u" ? { message: t } : typeof t == "function" ? t(o) : t;
|
|
3448
3449
|
return this._refinement((o, r) => {
|
|
3449
3450
|
const l = e(o), d = () => r.addIssue({
|
|
3450
|
-
code:
|
|
3451
|
+
code: S.custom,
|
|
3451
3452
|
...i(o)
|
|
3452
3453
|
});
|
|
3453
3454
|
return typeof Promise < "u" && l instanceof Promise ? l.then((u) => u ? !0 : (d(), !1)) : l ? !0 : (d(), !1);
|
|
@@ -3547,7 +3548,7 @@ class q {
|
|
|
3547
3548
|
return this.safeParse(null).success;
|
|
3548
3549
|
}
|
|
3549
3550
|
}
|
|
3550
|
-
const vs = /^c[^\s-]{8,}$/i, ws = /^[0-9a-z]+$/,
|
|
3551
|
+
const vs = /^c[^\s-]{8,}$/i, ws = /^[0-9a-z]+$/, Ss = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Ns = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, bs = /^[a-z0-9_-]{21}$/i, Es = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, xs = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, ks = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Os = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
3551
3552
|
let Ln;
|
|
3552
3553
|
const Ts = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, As = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, Is = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, Cs = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Ds = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Ls = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, dr = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Rs = new RegExp(`^${dr}$`);
|
|
3553
3554
|
function cr(n) {
|
|
@@ -3588,7 +3589,7 @@ class He extends q {
|
|
|
3588
3589
|
if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== O.string) {
|
|
3589
3590
|
const r = this._getOrReturnCtx(e);
|
|
3590
3591
|
return E(r, {
|
|
3591
|
-
code:
|
|
3592
|
+
code: S.invalid_type,
|
|
3592
3593
|
expected: O.string,
|
|
3593
3594
|
received: r.parsedType
|
|
3594
3595
|
}), R;
|
|
@@ -3598,7 +3599,7 @@ class He extends q {
|
|
|
3598
3599
|
for (const r of this._def.checks)
|
|
3599
3600
|
if (r.kind === "min")
|
|
3600
3601
|
e.data.length < r.value && (o = this._getOrReturnCtx(e, o), E(o, {
|
|
3601
|
-
code:
|
|
3602
|
+
code: S.too_small,
|
|
3602
3603
|
minimum: r.value,
|
|
3603
3604
|
type: "string",
|
|
3604
3605
|
inclusive: !0,
|
|
@@ -3607,7 +3608,7 @@ class He extends q {
|
|
|
3607
3608
|
}), i.dirty());
|
|
3608
3609
|
else if (r.kind === "max")
|
|
3609
3610
|
e.data.length > r.value && (o = this._getOrReturnCtx(e, o), E(o, {
|
|
3610
|
-
code:
|
|
3611
|
+
code: S.too_big,
|
|
3611
3612
|
maximum: r.value,
|
|
3612
3613
|
type: "string",
|
|
3613
3614
|
inclusive: !0,
|
|
@@ -3617,14 +3618,14 @@ class He extends q {
|
|
|
3617
3618
|
else if (r.kind === "length") {
|
|
3618
3619
|
const l = e.data.length > r.value, d = e.data.length < r.value;
|
|
3619
3620
|
(l || d) && (o = this._getOrReturnCtx(e, o), l ? E(o, {
|
|
3620
|
-
code:
|
|
3621
|
+
code: S.too_big,
|
|
3621
3622
|
maximum: r.value,
|
|
3622
3623
|
type: "string",
|
|
3623
3624
|
inclusive: !0,
|
|
3624
3625
|
exact: !0,
|
|
3625
3626
|
message: r.message
|
|
3626
3627
|
}) : d && E(o, {
|
|
3627
|
-
code:
|
|
3628
|
+
code: S.too_small,
|
|
3628
3629
|
minimum: r.value,
|
|
3629
3630
|
type: "string",
|
|
3630
3631
|
inclusive: !0,
|
|
@@ -3634,43 +3635,43 @@ class He extends q {
|
|
|
3634
3635
|
} else if (r.kind === "email")
|
|
3635
3636
|
ks.test(e.data) || (o = this._getOrReturnCtx(e, o), E(o, {
|
|
3636
3637
|
validation: "email",
|
|
3637
|
-
code:
|
|
3638
|
+
code: S.invalid_string,
|
|
3638
3639
|
message: r.message
|
|
3639
3640
|
}), i.dirty());
|
|
3640
3641
|
else if (r.kind === "emoji")
|
|
3641
3642
|
Ln || (Ln = new RegExp(Os, "u")), Ln.test(e.data) || (o = this._getOrReturnCtx(e, o), E(o, {
|
|
3642
3643
|
validation: "emoji",
|
|
3643
|
-
code:
|
|
3644
|
+
code: S.invalid_string,
|
|
3644
3645
|
message: r.message
|
|
3645
3646
|
}), i.dirty());
|
|
3646
3647
|
else if (r.kind === "uuid")
|
|
3647
|
-
|
|
3648
|
+
Ns.test(e.data) || (o = this._getOrReturnCtx(e, o), E(o, {
|
|
3648
3649
|
validation: "uuid",
|
|
3649
|
-
code:
|
|
3650
|
+
code: S.invalid_string,
|
|
3650
3651
|
message: r.message
|
|
3651
3652
|
}), i.dirty());
|
|
3652
3653
|
else if (r.kind === "nanoid")
|
|
3653
3654
|
bs.test(e.data) || (o = this._getOrReturnCtx(e, o), E(o, {
|
|
3654
3655
|
validation: "nanoid",
|
|
3655
|
-
code:
|
|
3656
|
+
code: S.invalid_string,
|
|
3656
3657
|
message: r.message
|
|
3657
3658
|
}), i.dirty());
|
|
3658
3659
|
else if (r.kind === "cuid")
|
|
3659
3660
|
vs.test(e.data) || (o = this._getOrReturnCtx(e, o), E(o, {
|
|
3660
3661
|
validation: "cuid",
|
|
3661
|
-
code:
|
|
3662
|
+
code: S.invalid_string,
|
|
3662
3663
|
message: r.message
|
|
3663
3664
|
}), i.dirty());
|
|
3664
3665
|
else if (r.kind === "cuid2")
|
|
3665
3666
|
ws.test(e.data) || (o = this._getOrReturnCtx(e, o), E(o, {
|
|
3666
3667
|
validation: "cuid2",
|
|
3667
|
-
code:
|
|
3668
|
+
code: S.invalid_string,
|
|
3668
3669
|
message: r.message
|
|
3669
3670
|
}), i.dirty());
|
|
3670
3671
|
else if (r.kind === "ulid")
|
|
3671
|
-
|
|
3672
|
+
Ss.test(e.data) || (o = this._getOrReturnCtx(e, o), E(o, {
|
|
3672
3673
|
validation: "ulid",
|
|
3673
|
-
code:
|
|
3674
|
+
code: S.invalid_string,
|
|
3674
3675
|
message: r.message
|
|
3675
3676
|
}), i.dirty());
|
|
3676
3677
|
else if (r.kind === "url")
|
|
@@ -3679,61 +3680,61 @@ class He extends q {
|
|
|
3679
3680
|
} catch {
|
|
3680
3681
|
o = this._getOrReturnCtx(e, o), E(o, {
|
|
3681
3682
|
validation: "url",
|
|
3682
|
-
code:
|
|
3683
|
+
code: S.invalid_string,
|
|
3683
3684
|
message: r.message
|
|
3684
3685
|
}), i.dirty();
|
|
3685
3686
|
}
|
|
3686
3687
|
else r.kind === "regex" ? (r.regex.lastIndex = 0, r.regex.test(e.data) || (o = this._getOrReturnCtx(e, o), E(o, {
|
|
3687
3688
|
validation: "regex",
|
|
3688
|
-
code:
|
|
3689
|
+
code: S.invalid_string,
|
|
3689
3690
|
message: r.message
|
|
3690
3691
|
}), i.dirty())) : r.kind === "trim" ? e.data = e.data.trim() : r.kind === "includes" ? e.data.includes(r.value, r.position) || (o = this._getOrReturnCtx(e, o), E(o, {
|
|
3691
|
-
code:
|
|
3692
|
+
code: S.invalid_string,
|
|
3692
3693
|
validation: { includes: r.value, position: r.position },
|
|
3693
3694
|
message: r.message
|
|
3694
3695
|
}), i.dirty()) : r.kind === "toLowerCase" ? e.data = e.data.toLowerCase() : r.kind === "toUpperCase" ? e.data = e.data.toUpperCase() : r.kind === "startsWith" ? e.data.startsWith(r.value) || (o = this._getOrReturnCtx(e, o), E(o, {
|
|
3695
|
-
code:
|
|
3696
|
+
code: S.invalid_string,
|
|
3696
3697
|
validation: { startsWith: r.value },
|
|
3697
3698
|
message: r.message
|
|
3698
3699
|
}), i.dirty()) : r.kind === "endsWith" ? e.data.endsWith(r.value) || (o = this._getOrReturnCtx(e, o), E(o, {
|
|
3699
|
-
code:
|
|
3700
|
+
code: S.invalid_string,
|
|
3700
3701
|
validation: { endsWith: r.value },
|
|
3701
3702
|
message: r.message
|
|
3702
3703
|
}), i.dirty()) : r.kind === "datetime" ? _r(r).test(e.data) || (o = this._getOrReturnCtx(e, o), E(o, {
|
|
3703
|
-
code:
|
|
3704
|
+
code: S.invalid_string,
|
|
3704
3705
|
validation: "datetime",
|
|
3705
3706
|
message: r.message
|
|
3706
3707
|
}), i.dirty()) : r.kind === "date" ? Rs.test(e.data) || (o = this._getOrReturnCtx(e, o), E(o, {
|
|
3707
|
-
code:
|
|
3708
|
+
code: S.invalid_string,
|
|
3708
3709
|
validation: "date",
|
|
3709
3710
|
message: r.message
|
|
3710
3711
|
}), i.dirty()) : r.kind === "time" ? Us(r).test(e.data) || (o = this._getOrReturnCtx(e, o), E(o, {
|
|
3711
|
-
code:
|
|
3712
|
+
code: S.invalid_string,
|
|
3712
3713
|
validation: "time",
|
|
3713
3714
|
message: r.message
|
|
3714
3715
|
}), i.dirty()) : r.kind === "duration" ? xs.test(e.data) || (o = this._getOrReturnCtx(e, o), E(o, {
|
|
3715
3716
|
validation: "duration",
|
|
3716
|
-
code:
|
|
3717
|
+
code: S.invalid_string,
|
|
3717
3718
|
message: r.message
|
|
3718
3719
|
}), i.dirty()) : r.kind === "ip" ? zs(e.data, r.version) || (o = this._getOrReturnCtx(e, o), E(o, {
|
|
3719
3720
|
validation: "ip",
|
|
3720
|
-
code:
|
|
3721
|
+
code: S.invalid_string,
|
|
3721
3722
|
message: r.message
|
|
3722
3723
|
}), i.dirty()) : r.kind === "jwt" ? Fs(e.data, r.alg) || (o = this._getOrReturnCtx(e, o), E(o, {
|
|
3723
3724
|
validation: "jwt",
|
|
3724
|
-
code:
|
|
3725
|
+
code: S.invalid_string,
|
|
3725
3726
|
message: r.message
|
|
3726
3727
|
}), i.dirty()) : r.kind === "cidr" ? Ps(e.data, r.version) || (o = this._getOrReturnCtx(e, o), E(o, {
|
|
3727
3728
|
validation: "cidr",
|
|
3728
|
-
code:
|
|
3729
|
+
code: S.invalid_string,
|
|
3729
3730
|
message: r.message
|
|
3730
3731
|
}), i.dirty()) : r.kind === "base64" ? Ds.test(e.data) || (o = this._getOrReturnCtx(e, o), E(o, {
|
|
3731
3732
|
validation: "base64",
|
|
3732
|
-
code:
|
|
3733
|
+
code: S.invalid_string,
|
|
3733
3734
|
message: r.message
|
|
3734
3735
|
}), i.dirty()) : r.kind === "base64url" ? Ls.test(e.data) || (o = this._getOrReturnCtx(e, o), E(o, {
|
|
3735
3736
|
validation: "base64url",
|
|
3736
|
-
code:
|
|
3737
|
+
code: S.invalid_string,
|
|
3737
3738
|
message: r.message
|
|
3738
3739
|
}), i.dirty()) : H.assertNever(r);
|
|
3739
3740
|
return { status: i.value, value: e.data };
|
|
@@ -3741,7 +3742,7 @@ class He extends q {
|
|
|
3741
3742
|
_regex(e, t, i) {
|
|
3742
3743
|
return this.refinement((o) => e.test(o), {
|
|
3743
3744
|
validation: t,
|
|
3744
|
-
code:
|
|
3745
|
+
code: S.invalid_string,
|
|
3745
3746
|
...C.errToObj(i)
|
|
3746
3747
|
});
|
|
3747
3748
|
}
|
|
@@ -3978,7 +3979,7 @@ class yt extends q {
|
|
|
3978
3979
|
if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !== O.number) {
|
|
3979
3980
|
const r = this._getOrReturnCtx(e);
|
|
3980
3981
|
return E(r, {
|
|
3981
|
-
code:
|
|
3982
|
+
code: S.invalid_type,
|
|
3982
3983
|
expected: O.number,
|
|
3983
3984
|
received: r.parsedType
|
|
3984
3985
|
}), R;
|
|
@@ -3987,30 +3988,30 @@ class yt extends q {
|
|
|
3987
3988
|
const o = new ke();
|
|
3988
3989
|
for (const r of this._def.checks)
|
|
3989
3990
|
r.kind === "int" ? H.isInteger(e.data) || (i = this._getOrReturnCtx(e, i), E(i, {
|
|
3990
|
-
code:
|
|
3991
|
+
code: S.invalid_type,
|
|
3991
3992
|
expected: "integer",
|
|
3992
3993
|
received: "float",
|
|
3993
3994
|
message: r.message
|
|
3994
3995
|
}), o.dirty()) : r.kind === "min" ? (r.inclusive ? e.data < r.value : e.data <= r.value) && (i = this._getOrReturnCtx(e, i), E(i, {
|
|
3995
|
-
code:
|
|
3996
|
+
code: S.too_small,
|
|
3996
3997
|
minimum: r.value,
|
|
3997
3998
|
type: "number",
|
|
3998
3999
|
inclusive: r.inclusive,
|
|
3999
4000
|
exact: !1,
|
|
4000
4001
|
message: r.message
|
|
4001
4002
|
}), o.dirty()) : r.kind === "max" ? (r.inclusive ? e.data > r.value : e.data >= r.value) && (i = this._getOrReturnCtx(e, i), E(i, {
|
|
4002
|
-
code:
|
|
4003
|
+
code: S.too_big,
|
|
4003
4004
|
maximum: r.value,
|
|
4004
4005
|
type: "number",
|
|
4005
4006
|
inclusive: r.inclusive,
|
|
4006
4007
|
exact: !1,
|
|
4007
4008
|
message: r.message
|
|
4008
4009
|
}), o.dirty()) : r.kind === "multipleOf" ? Ms(e.data, r.value) !== 0 && (i = this._getOrReturnCtx(e, i), E(i, {
|
|
4009
|
-
code:
|
|
4010
|
+
code: S.not_multiple_of,
|
|
4010
4011
|
multipleOf: r.value,
|
|
4011
4012
|
message: r.message
|
|
4012
4013
|
}), o.dirty()) : r.kind === "finite" ? Number.isFinite(e.data) || (i = this._getOrReturnCtx(e, i), E(i, {
|
|
4013
|
-
code:
|
|
4014
|
+
code: S.not_finite,
|
|
4014
4015
|
message: r.message
|
|
4015
4016
|
}), o.dirty()) : H.assertNever(r);
|
|
4016
4017
|
return { status: o.value, value: e.data };
|
|
@@ -4159,19 +4160,19 @@ class Et extends q {
|
|
|
4159
4160
|
const o = new ke();
|
|
4160
4161
|
for (const r of this._def.checks)
|
|
4161
4162
|
r.kind === "min" ? (r.inclusive ? e.data < r.value : e.data <= r.value) && (i = this._getOrReturnCtx(e, i), E(i, {
|
|
4162
|
-
code:
|
|
4163
|
+
code: S.too_small,
|
|
4163
4164
|
type: "bigint",
|
|
4164
4165
|
minimum: r.value,
|
|
4165
4166
|
inclusive: r.inclusive,
|
|
4166
4167
|
message: r.message
|
|
4167
4168
|
}), o.dirty()) : r.kind === "max" ? (r.inclusive ? e.data > r.value : e.data >= r.value) && (i = this._getOrReturnCtx(e, i), E(i, {
|
|
4168
|
-
code:
|
|
4169
|
+
code: S.too_big,
|
|
4169
4170
|
type: "bigint",
|
|
4170
4171
|
maximum: r.value,
|
|
4171
4172
|
inclusive: r.inclusive,
|
|
4172
4173
|
message: r.message
|
|
4173
4174
|
}), o.dirty()) : r.kind === "multipleOf" ? e.data % r.value !== BigInt(0) && (i = this._getOrReturnCtx(e, i), E(i, {
|
|
4174
|
-
code:
|
|
4175
|
+
code: S.not_multiple_of,
|
|
4175
4176
|
multipleOf: r.value,
|
|
4176
4177
|
message: r.message
|
|
4177
4178
|
}), o.dirty()) : H.assertNever(r);
|
|
@@ -4180,7 +4181,7 @@ class Et extends q {
|
|
|
4180
4181
|
_getInvalidInput(e) {
|
|
4181
4182
|
const t = this._getOrReturnCtx(e);
|
|
4182
4183
|
return E(t, {
|
|
4183
|
-
code:
|
|
4184
|
+
code: S.invalid_type,
|
|
4184
4185
|
expected: O.bigint,
|
|
4185
4186
|
received: t.parsedType
|
|
4186
4187
|
}), R;
|
|
@@ -4280,7 +4281,7 @@ class cn extends q {
|
|
|
4280
4281
|
if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== O.boolean) {
|
|
4281
4282
|
const i = this._getOrReturnCtx(e);
|
|
4282
4283
|
return E(i, {
|
|
4283
|
-
code:
|
|
4284
|
+
code: S.invalid_type,
|
|
4284
4285
|
expected: O.boolean,
|
|
4285
4286
|
received: i.parsedType
|
|
4286
4287
|
}), R;
|
|
@@ -4298,7 +4299,7 @@ class zt extends q {
|
|
|
4298
4299
|
if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== O.date) {
|
|
4299
4300
|
const r = this._getOrReturnCtx(e);
|
|
4300
4301
|
return E(r, {
|
|
4301
|
-
code:
|
|
4302
|
+
code: S.invalid_type,
|
|
4302
4303
|
expected: O.date,
|
|
4303
4304
|
received: r.parsedType
|
|
4304
4305
|
}), R;
|
|
@@ -4306,21 +4307,21 @@ class zt extends q {
|
|
|
4306
4307
|
if (Number.isNaN(e.data.getTime())) {
|
|
4307
4308
|
const r = this._getOrReturnCtx(e);
|
|
4308
4309
|
return E(r, {
|
|
4309
|
-
code:
|
|
4310
|
+
code: S.invalid_date
|
|
4310
4311
|
}), R;
|
|
4311
4312
|
}
|
|
4312
4313
|
const i = new ke();
|
|
4313
4314
|
let o;
|
|
4314
4315
|
for (const r of this._def.checks)
|
|
4315
4316
|
r.kind === "min" ? e.data.getTime() < r.value && (o = this._getOrReturnCtx(e, o), E(o, {
|
|
4316
|
-
code:
|
|
4317
|
+
code: S.too_small,
|
|
4317
4318
|
message: r.message,
|
|
4318
4319
|
inclusive: !0,
|
|
4319
4320
|
exact: !1,
|
|
4320
4321
|
minimum: r.value,
|
|
4321
4322
|
type: "date"
|
|
4322
4323
|
}), i.dirty()) : r.kind === "max" ? e.data.getTime() > r.value && (o = this._getOrReturnCtx(e, o), E(o, {
|
|
4323
|
-
code:
|
|
4324
|
+
code: S.too_big,
|
|
4324
4325
|
message: r.message,
|
|
4325
4326
|
inclusive: !0,
|
|
4326
4327
|
exact: !1,
|
|
@@ -4376,7 +4377,7 @@ class ti extends q {
|
|
|
4376
4377
|
if (this._getType(e) !== O.symbol) {
|
|
4377
4378
|
const i = this._getOrReturnCtx(e);
|
|
4378
4379
|
return E(i, {
|
|
4379
|
-
code:
|
|
4380
|
+
code: S.invalid_type,
|
|
4380
4381
|
expected: O.symbol,
|
|
4381
4382
|
received: i.parsedType
|
|
4382
4383
|
}), R;
|
|
@@ -4393,7 +4394,7 @@ class _n extends q {
|
|
|
4393
4394
|
if (this._getType(e) !== O.undefined) {
|
|
4394
4395
|
const i = this._getOrReturnCtx(e);
|
|
4395
4396
|
return E(i, {
|
|
4396
|
-
code:
|
|
4397
|
+
code: S.invalid_type,
|
|
4397
4398
|
expected: O.undefined,
|
|
4398
4399
|
received: i.parsedType
|
|
4399
4400
|
}), R;
|
|
@@ -4410,7 +4411,7 @@ class un extends q {
|
|
|
4410
4411
|
if (this._getType(e) !== O.null) {
|
|
4411
4412
|
const i = this._getOrReturnCtx(e);
|
|
4412
4413
|
return E(i, {
|
|
4413
|
-
code:
|
|
4414
|
+
code: S.invalid_type,
|
|
4414
4415
|
expected: O.null,
|
|
4415
4416
|
received: i.parsedType
|
|
4416
4417
|
}), R;
|
|
@@ -4450,7 +4451,7 @@ class nt extends q {
|
|
|
4450
4451
|
_parse(e) {
|
|
4451
4452
|
const t = this._getOrReturnCtx(e);
|
|
4452
4453
|
return E(t, {
|
|
4453
|
-
code:
|
|
4454
|
+
code: S.invalid_type,
|
|
4454
4455
|
expected: O.never,
|
|
4455
4456
|
received: t.parsedType
|
|
4456
4457
|
}), R;
|
|
@@ -4465,7 +4466,7 @@ class ni extends q {
|
|
|
4465
4466
|
if (this._getType(e) !== O.undefined) {
|
|
4466
4467
|
const i = this._getOrReturnCtx(e);
|
|
4467
4468
|
return E(i, {
|
|
4468
|
-
code:
|
|
4469
|
+
code: S.invalid_type,
|
|
4469
4470
|
expected: O.void,
|
|
4470
4471
|
received: i.parsedType
|
|
4471
4472
|
}), R;
|
|
@@ -4482,14 +4483,14 @@ class je extends q {
|
|
|
4482
4483
|
const { ctx: t, status: i } = this._processInputParams(e), o = this._def;
|
|
4483
4484
|
if (t.parsedType !== O.array)
|
|
4484
4485
|
return E(t, {
|
|
4485
|
-
code:
|
|
4486
|
+
code: S.invalid_type,
|
|
4486
4487
|
expected: O.array,
|
|
4487
4488
|
received: t.parsedType
|
|
4488
4489
|
}), R;
|
|
4489
4490
|
if (o.exactLength !== null) {
|
|
4490
4491
|
const l = t.data.length > o.exactLength.value, d = t.data.length < o.exactLength.value;
|
|
4491
4492
|
(l || d) && (E(t, {
|
|
4492
|
-
code: l ?
|
|
4493
|
+
code: l ? S.too_big : S.too_small,
|
|
4493
4494
|
minimum: d ? o.exactLength.value : void 0,
|
|
4494
4495
|
maximum: l ? o.exactLength.value : void 0,
|
|
4495
4496
|
type: "array",
|
|
@@ -4499,14 +4500,14 @@ class je extends q {
|
|
|
4499
4500
|
}), i.dirty());
|
|
4500
4501
|
}
|
|
4501
4502
|
if (o.minLength !== null && t.data.length < o.minLength.value && (E(t, {
|
|
4502
|
-
code:
|
|
4503
|
+
code: S.too_small,
|
|
4503
4504
|
minimum: o.minLength.value,
|
|
4504
4505
|
type: "array",
|
|
4505
4506
|
inclusive: !0,
|
|
4506
4507
|
exact: !1,
|
|
4507
4508
|
message: o.minLength.message
|
|
4508
4509
|
}), i.dirty()), o.maxLength !== null && t.data.length > o.maxLength.value && (E(t, {
|
|
4509
|
-
code:
|
|
4510
|
+
code: S.too_big,
|
|
4510
4511
|
maximum: o.maxLength.value,
|
|
4511
4512
|
type: "array",
|
|
4512
4513
|
inclusive: !0,
|
|
@@ -4580,7 +4581,7 @@ class le extends q {
|
|
|
4580
4581
|
if (this._getType(e) !== O.object) {
|
|
4581
4582
|
const f = this._getOrReturnCtx(e);
|
|
4582
4583
|
return E(f, {
|
|
4583
|
-
code:
|
|
4584
|
+
code: S.invalid_type,
|
|
4584
4585
|
expected: O.object,
|
|
4585
4586
|
received: f.parsedType
|
|
4586
4587
|
}), R;
|
|
@@ -4608,7 +4609,7 @@ class le extends q {
|
|
|
4608
4609
|
});
|
|
4609
4610
|
else if (f === "strict")
|
|
4610
4611
|
d.length > 0 && (E(o, {
|
|
4611
|
-
code:
|
|
4612
|
+
code: S.unrecognized_keys,
|
|
4612
4613
|
keys: d
|
|
4613
4614
|
}), i.dirty());
|
|
4614
4615
|
else if (f !== "strip") throw new Error("Internal ZodObject error: invalid unknownKeys value.");
|
|
@@ -4866,7 +4867,7 @@ class Pt extends q {
|
|
|
4866
4867
|
return t.common.issues.push(...d.ctx.common.issues), d.result;
|
|
4867
4868
|
const l = r.map((d) => new Ge(d.ctx.common.issues));
|
|
4868
4869
|
return E(t, {
|
|
4869
|
-
code:
|
|
4870
|
+
code: S.invalid_union,
|
|
4870
4871
|
unionErrors: l
|
|
4871
4872
|
}), R;
|
|
4872
4873
|
}
|
|
@@ -4913,7 +4914,7 @@ class Pt extends q {
|
|
|
4913
4914
|
return t.common.issues.push(...r.ctx.common.issues), r.result;
|
|
4914
4915
|
const d = l.map((u) => new Ge(u));
|
|
4915
4916
|
return E(t, {
|
|
4916
|
-
code:
|
|
4917
|
+
code: S.invalid_union,
|
|
4917
4918
|
unionErrors: d
|
|
4918
4919
|
}), R;
|
|
4919
4920
|
}
|
|
@@ -4933,7 +4934,7 @@ class mn extends q {
|
|
|
4933
4934
|
const { ctx: t } = this._processInputParams(e);
|
|
4934
4935
|
if (t.parsedType !== O.object)
|
|
4935
4936
|
return E(t, {
|
|
4936
|
-
code:
|
|
4937
|
+
code: S.invalid_type,
|
|
4937
4938
|
expected: O.object,
|
|
4938
4939
|
received: t.parsedType
|
|
4939
4940
|
}), R;
|
|
@@ -4947,7 +4948,7 @@ class mn extends q {
|
|
|
4947
4948
|
path: t.path,
|
|
4948
4949
|
parent: t
|
|
4949
4950
|
}) : (E(t, {
|
|
4950
|
-
code:
|
|
4951
|
+
code: S.invalid_union_discriminator,
|
|
4951
4952
|
options: Array.from(this.optionsMap.keys()),
|
|
4952
4953
|
path: [i]
|
|
4953
4954
|
}), R);
|
|
@@ -5023,7 +5024,7 @@ class Mt extends q {
|
|
|
5023
5024
|
return R;
|
|
5024
5025
|
const d = ii(r.value, l.value);
|
|
5025
5026
|
return d.valid ? ((ei(r) || ei(l)) && t.dirty(), { status: t.value, value: d.data }) : (E(i, {
|
|
5026
|
-
code:
|
|
5027
|
+
code: S.invalid_intersection_types
|
|
5027
5028
|
}), R);
|
|
5028
5029
|
};
|
|
5029
5030
|
return i.common.async ? Promise.all([
|
|
@@ -5059,20 +5060,20 @@ class st extends q {
|
|
|
5059
5060
|
const { status: t, ctx: i } = this._processInputParams(e);
|
|
5060
5061
|
if (i.parsedType !== O.array)
|
|
5061
5062
|
return E(i, {
|
|
5062
|
-
code:
|
|
5063
|
+
code: S.invalid_type,
|
|
5063
5064
|
expected: O.array,
|
|
5064
5065
|
received: i.parsedType
|
|
5065
5066
|
}), R;
|
|
5066
5067
|
if (i.data.length < this._def.items.length)
|
|
5067
5068
|
return E(i, {
|
|
5068
|
-
code:
|
|
5069
|
+
code: S.too_small,
|
|
5069
5070
|
minimum: this._def.items.length,
|
|
5070
5071
|
inclusive: !0,
|
|
5071
5072
|
exact: !1,
|
|
5072
5073
|
type: "array"
|
|
5073
5074
|
}), R;
|
|
5074
5075
|
!this._def.rest && i.data.length > this._def.items.length && (E(i, {
|
|
5075
|
-
code:
|
|
5076
|
+
code: S.too_big,
|
|
5076
5077
|
maximum: this._def.items.length,
|
|
5077
5078
|
inclusive: !0,
|
|
5078
5079
|
exact: !1,
|
|
@@ -5115,7 +5116,7 @@ class qt extends q {
|
|
|
5115
5116
|
const { status: t, ctx: i } = this._processInputParams(e);
|
|
5116
5117
|
if (i.parsedType !== O.object)
|
|
5117
5118
|
return E(i, {
|
|
5118
|
-
code:
|
|
5119
|
+
code: S.invalid_type,
|
|
5119
5120
|
expected: O.object,
|
|
5120
5121
|
received: i.parsedType
|
|
5121
5122
|
}), R;
|
|
@@ -5156,7 +5157,7 @@ class oi extends q {
|
|
|
5156
5157
|
const { status: t, ctx: i } = this._processInputParams(e);
|
|
5157
5158
|
if (i.parsedType !== O.map)
|
|
5158
5159
|
return E(i, {
|
|
5159
|
-
code:
|
|
5160
|
+
code: S.invalid_type,
|
|
5160
5161
|
expected: O.map,
|
|
5161
5162
|
received: i.parsedType
|
|
5162
5163
|
}), R;
|
|
@@ -5198,20 +5199,20 @@ class xt extends q {
|
|
|
5198
5199
|
const { status: t, ctx: i } = this._processInputParams(e);
|
|
5199
5200
|
if (i.parsedType !== O.set)
|
|
5200
5201
|
return E(i, {
|
|
5201
|
-
code:
|
|
5202
|
+
code: S.invalid_type,
|
|
5202
5203
|
expected: O.set,
|
|
5203
5204
|
received: i.parsedType
|
|
5204
5205
|
}), R;
|
|
5205
5206
|
const o = this._def;
|
|
5206
5207
|
o.minSize !== null && i.data.size < o.minSize.value && (E(i, {
|
|
5207
|
-
code:
|
|
5208
|
+
code: S.too_small,
|
|
5208
5209
|
minimum: o.minSize.value,
|
|
5209
5210
|
type: "set",
|
|
5210
5211
|
inclusive: !0,
|
|
5211
5212
|
exact: !1,
|
|
5212
5213
|
message: o.minSize.message
|
|
5213
5214
|
}), t.dirty()), o.maxSize !== null && i.data.size > o.maxSize.value && (E(i, {
|
|
5214
|
-
code:
|
|
5215
|
+
code: S.too_big,
|
|
5215
5216
|
maximum: o.maxSize.value,
|
|
5216
5217
|
type: "set",
|
|
5217
5218
|
inclusive: !0,
|
|
@@ -5277,7 +5278,7 @@ class Bt extends q {
|
|
|
5277
5278
|
const t = this._getOrReturnCtx(e);
|
|
5278
5279
|
return E(t, {
|
|
5279
5280
|
received: t.data,
|
|
5280
|
-
code:
|
|
5281
|
+
code: S.invalid_literal,
|
|
5281
5282
|
expected: this._def.value
|
|
5282
5283
|
}), R;
|
|
5283
5284
|
}
|
|
@@ -5306,14 +5307,14 @@ class lt extends q {
|
|
|
5306
5307
|
return E(t, {
|
|
5307
5308
|
expected: H.joinValues(i),
|
|
5308
5309
|
received: t.parsedType,
|
|
5309
|
-
code:
|
|
5310
|
+
code: S.invalid_type
|
|
5310
5311
|
}), R;
|
|
5311
5312
|
}
|
|
5312
5313
|
if (this._cache || (this._cache = new Set(this._def.values)), !this._cache.has(e.data)) {
|
|
5313
5314
|
const t = this._getOrReturnCtx(e), i = this._def.values;
|
|
5314
5315
|
return E(t, {
|
|
5315
5316
|
received: t.data,
|
|
5316
|
-
code:
|
|
5317
|
+
code: S.invalid_enum_value,
|
|
5317
5318
|
options: i
|
|
5318
5319
|
}), R;
|
|
5319
5320
|
}
|
|
@@ -5362,14 +5363,14 @@ class $t extends q {
|
|
|
5362
5363
|
return E(i, {
|
|
5363
5364
|
expected: H.joinValues(o),
|
|
5364
5365
|
received: i.parsedType,
|
|
5365
|
-
code:
|
|
5366
|
+
code: S.invalid_type
|
|
5366
5367
|
}), R;
|
|
5367
5368
|
}
|
|
5368
5369
|
if (this._cache || (this._cache = new Set(H.getValidEnumValues(this._def.values))), !this._cache.has(e.data)) {
|
|
5369
5370
|
const o = H.objectValues(t);
|
|
5370
5371
|
return E(i, {
|
|
5371
5372
|
received: i.data,
|
|
5372
|
-
code:
|
|
5373
|
+
code: S.invalid_enum_value,
|
|
5373
5374
|
options: o
|
|
5374
5375
|
}), R;
|
|
5375
5376
|
}
|
|
@@ -5392,7 +5393,7 @@ class jt extends q {
|
|
|
5392
5393
|
const { ctx: t } = this._processInputParams(e);
|
|
5393
5394
|
if (t.parsedType !== O.promise && t.common.async === !1)
|
|
5394
5395
|
return E(t, {
|
|
5395
|
-
code:
|
|
5396
|
+
code: S.invalid_type,
|
|
5396
5397
|
expected: O.promise,
|
|
5397
5398
|
received: t.parsedType
|
|
5398
5399
|
}), R;
|
|
@@ -5435,7 +5436,7 @@ class Je extends q {
|
|
|
5435
5436
|
path: i.path,
|
|
5436
5437
|
parent: i
|
|
5437
5438
|
});
|
|
5438
|
-
return u.status === "aborted" ? R : u.status === "dirty" || t.value === "dirty" ?
|
|
5439
|
+
return u.status === "aborted" ? R : u.status === "dirty" || t.value === "dirty" ? Nt(u.value) : u;
|
|
5439
5440
|
});
|
|
5440
5441
|
{
|
|
5441
5442
|
if (t.value === "aborted")
|
|
@@ -5445,7 +5446,7 @@ class Je extends q {
|
|
|
5445
5446
|
path: i.path,
|
|
5446
5447
|
parent: i
|
|
5447
5448
|
});
|
|
5448
|
-
return d.status === "aborted" ? R : d.status === "dirty" || t.value === "dirty" ?
|
|
5449
|
+
return d.status === "aborted" ? R : d.status === "dirty" || t.value === "dirty" ? Nt(d.value) : d;
|
|
5449
5450
|
}
|
|
5450
5451
|
}
|
|
5451
5452
|
if (o.type === "refinement") {
|
|
@@ -5594,7 +5595,7 @@ class ai extends q {
|
|
|
5594
5595
|
if (this._getType(e) !== O.nan) {
|
|
5595
5596
|
const i = this._getOrReturnCtx(e);
|
|
5596
5597
|
return E(i, {
|
|
5597
|
-
code:
|
|
5598
|
+
code: S.invalid_type,
|
|
5598
5599
|
expected: O.nan,
|
|
5599
5600
|
received: i.parsedType
|
|
5600
5601
|
}), R;
|
|
@@ -5629,7 +5630,7 @@ class yn extends q {
|
|
|
5629
5630
|
path: i.path,
|
|
5630
5631
|
parent: i
|
|
5631
5632
|
});
|
|
5632
|
-
return r.status === "aborted" ? R : r.status === "dirty" ? (t.dirty(),
|
|
5633
|
+
return r.status === "aborted" ? R : r.status === "dirty" ? (t.dirty(), Nt(r.value)) : this._def.out._parseAsync({
|
|
5633
5634
|
data: r.value,
|
|
5634
5635
|
path: i.path,
|
|
5635
5636
|
parent: i
|
|
@@ -5682,7 +5683,7 @@ var U;
|
|
|
5682
5683
|
})(U || (U = {}));
|
|
5683
5684
|
const a = He.create, k = yt.create, h = cn.create, Z = Ft.create, $e = pn.create;
|
|
5684
5685
|
nt.create;
|
|
5685
|
-
const
|
|
5686
|
+
const N = je.create, _ = le.create, Pe = Pt.create, kt = mn.create;
|
|
5686
5687
|
Mt.create;
|
|
5687
5688
|
st.create;
|
|
5688
5689
|
const P = qt.create, T = Bt.create, x = lt.create, gt = $t.create;
|
|
@@ -5691,7 +5692,7 @@ Ke.create;
|
|
|
5691
5692
|
dt.create;
|
|
5692
5693
|
const pr = Je.createWithPreprocess, qs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5693
5694
|
__proto__: null,
|
|
5694
|
-
DIRTY:
|
|
5695
|
+
DIRTY: Nt,
|
|
5695
5696
|
INVALID: R,
|
|
5696
5697
|
OK: De,
|
|
5697
5698
|
ParseStatus: ke,
|
|
@@ -5712,7 +5713,7 @@ const pr = Je.createWithPreprocess, qs = /* @__PURE__ */ Object.freeze(/* @__PUR
|
|
|
5712
5713
|
return U;
|
|
5713
5714
|
},
|
|
5714
5715
|
ZodIntersection: Mt,
|
|
5715
|
-
ZodIssueCode:
|
|
5716
|
+
ZodIssueCode: S,
|
|
5716
5717
|
ZodLazy: fn,
|
|
5717
5718
|
ZodLiteral: Bt,
|
|
5718
5719
|
ZodMap: oi,
|
|
@@ -5742,7 +5743,7 @@ const pr = Je.createWithPreprocess, qs = /* @__PURE__ */ Object.freeze(/* @__PUR
|
|
|
5742
5743
|
ZodVoid: ni,
|
|
5743
5744
|
addIssueToContext: E,
|
|
5744
5745
|
any: Z,
|
|
5745
|
-
array:
|
|
5746
|
+
array: N,
|
|
5746
5747
|
boolean: h,
|
|
5747
5748
|
custom: ri,
|
|
5748
5749
|
datetimeRegex: _r,
|
|
@@ -5784,14 +5785,16 @@ const Ze = _({
|
|
|
5784
5785
|
version: a()
|
|
5785
5786
|
}), js = _({
|
|
5786
5787
|
name: a(),
|
|
5787
|
-
value
|
|
5788
|
+
// Optional on writes so PATCH callers can omit the value to preserve the
|
|
5789
|
+
// existing secret. The adapter merges by name when value is missing.
|
|
5790
|
+
value: a().optional()
|
|
5788
5791
|
}), fr = _({
|
|
5789
5792
|
name: a().max(255),
|
|
5790
5793
|
code: a().max(1e5),
|
|
5791
|
-
supported_triggers:
|
|
5794
|
+
supported_triggers: N(Bs).optional(),
|
|
5792
5795
|
runtime: a().max(50).optional(),
|
|
5793
|
-
dependencies:
|
|
5794
|
-
secrets:
|
|
5796
|
+
dependencies: N($s).optional(),
|
|
5797
|
+
secrets: N(js).optional()
|
|
5795
5798
|
});
|
|
5796
5799
|
fr.partial().extend({
|
|
5797
5800
|
status: x(["draft", "built"]).optional(),
|
|
@@ -5803,7 +5806,7 @@ fr.extend({
|
|
|
5803
5806
|
status: x(["draft", "built"]).default("built"),
|
|
5804
5807
|
deployed_at: a().optional(),
|
|
5805
5808
|
// Override secrets to return names only (no values) in responses
|
|
5806
|
-
secrets:
|
|
5809
|
+
secrets: N(
|
|
5807
5810
|
_({
|
|
5808
5811
|
name: a(),
|
|
5809
5812
|
value: a().optional()
|
|
@@ -5822,7 +5825,7 @@ const Vs = x([
|
|
|
5822
5825
|
email: a().optional(),
|
|
5823
5826
|
org_id: a().optional(),
|
|
5824
5827
|
org_name: a().optional(),
|
|
5825
|
-
scopes:
|
|
5828
|
+
scopes: N(a()).optional(),
|
|
5826
5829
|
client_id: a().optional()
|
|
5827
5830
|
}), Hs = _({
|
|
5828
5831
|
type: a(),
|
|
@@ -5890,8 +5893,8 @@ const Xs = _({
|
|
|
5890
5893
|
block_aliases: h().optional(),
|
|
5891
5894
|
block_free_emails: h().optional(),
|
|
5892
5895
|
block_disposable_emails: h().optional(),
|
|
5893
|
-
blocklist:
|
|
5894
|
-
allowlist:
|
|
5896
|
+
blocklist: N(a()).optional(),
|
|
5897
|
+
allowlist: N(a()).optional()
|
|
5895
5898
|
}), Ys = _({
|
|
5896
5899
|
id: a(),
|
|
5897
5900
|
alias: a().max(100).optional(),
|
|
@@ -5939,7 +5942,7 @@ const Xs = _({
|
|
|
5939
5942
|
description: "The name of the flow"
|
|
5940
5943
|
}),
|
|
5941
5944
|
// Actions is an array of action steps (Auth0 stores as JSON blob)
|
|
5942
|
-
actions:
|
|
5945
|
+
actions: N(il).optional().default([]).openapi({
|
|
5943
5946
|
description: "The list of actions to execute in sequence"
|
|
5944
5947
|
})
|
|
5945
5948
|
});
|
|
@@ -6073,14 +6076,14 @@ const al = _({
|
|
|
6073
6076
|
is_social: h(),
|
|
6074
6077
|
email: a().optional(),
|
|
6075
6078
|
login_count: k().default(0),
|
|
6076
|
-
identities:
|
|
6079
|
+
identities: N(rl).optional()
|
|
6077
6080
|
});
|
|
6078
6081
|
dl.omit({
|
|
6079
6082
|
registration_completed_at: !0
|
|
6080
6083
|
});
|
|
6081
6084
|
hr.extend({
|
|
6082
6085
|
login_count: k(),
|
|
6083
|
-
multifactor:
|
|
6086
|
+
multifactor: N(a()).optional(),
|
|
6084
6087
|
last_ip: a().optional(),
|
|
6085
6088
|
last_login: a().optional(),
|
|
6086
6089
|
user_id: a()
|
|
@@ -6148,25 +6151,25 @@ const ul = _({
|
|
|
6148
6151
|
auth0_conformant: h().default(!0).openapi({
|
|
6149
6152
|
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)."
|
|
6150
6153
|
}),
|
|
6151
|
-
callbacks:
|
|
6154
|
+
callbacks: N(a()).default([]).optional().openapi({
|
|
6152
6155
|
description: "Comma-separated list of URLs whitelisted for Auth0 to use as a callback to the client after authentication."
|
|
6153
6156
|
}),
|
|
6154
|
-
allowed_origins:
|
|
6157
|
+
allowed_origins: N(a()).default([]).optional().openapi({
|
|
6155
6158
|
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."
|
|
6156
6159
|
}),
|
|
6157
|
-
web_origins:
|
|
6160
|
+
web_origins: N(a()).default([]).optional().openapi({
|
|
6158
6161
|
description: "Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode."
|
|
6159
6162
|
}),
|
|
6160
|
-
client_aliases:
|
|
6163
|
+
client_aliases: N(a()).default([]).optional().openapi({
|
|
6161
6164
|
description: "List of audiences/realms for SAML protocol. Used by the wsfed addon."
|
|
6162
6165
|
}),
|
|
6163
|
-
allowed_clients:
|
|
6166
|
+
allowed_clients: N(a()).default([]).optional().openapi({
|
|
6164
6167
|
description: "List of allow clients and API ids that are allowed to make delegation requests. Empty means all all your clients are allowed."
|
|
6165
6168
|
}),
|
|
6166
|
-
connections:
|
|
6169
|
+
connections: N(a()).default([]).optional().openapi({
|
|
6167
6170
|
description: "List of connection IDs enabled for this client. The order determines the display order on the login page."
|
|
6168
6171
|
}),
|
|
6169
|
-
allowed_logout_urls:
|
|
6172
|
+
allowed_logout_urls: N(a()).default([]).optional().openapi({
|
|
6170
6173
|
description: "Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains."
|
|
6171
6174
|
}),
|
|
6172
6175
|
session_transfer: P(Z()).default({}).optional().openapi({
|
|
@@ -6175,13 +6178,13 @@ const ul = _({
|
|
|
6175
6178
|
oidc_logout: P(Z()).default({}).optional().openapi({
|
|
6176
6179
|
description: "Configuration for OIDC backchannel logout"
|
|
6177
6180
|
}),
|
|
6178
|
-
grant_types:
|
|
6181
|
+
grant_types: N(a()).default([]).optional().openapi({
|
|
6179
6182
|
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."
|
|
6180
6183
|
}),
|
|
6181
6184
|
jwt_configuration: P(Z()).default({}).optional().openapi({
|
|
6182
6185
|
description: "Configuration related to JWTs for the client."
|
|
6183
6186
|
}),
|
|
6184
|
-
signing_keys:
|
|
6187
|
+
signing_keys: N(P(Z())).default([]).optional().openapi({
|
|
6185
6188
|
description: "Signing certificates associated with this client."
|
|
6186
6189
|
}),
|
|
6187
6190
|
encryption_key: P(Z()).default({}).optional().openapi({
|
|
@@ -6319,7 +6322,7 @@ const pl = _({
|
|
|
6319
6322
|
audience: a().min(1).openapi({
|
|
6320
6323
|
description: "The audience (API identifier) of this client grant."
|
|
6321
6324
|
}),
|
|
6322
|
-
scope:
|
|
6325
|
+
scope: N(a()).optional().openapi({
|
|
6323
6326
|
description: "Scopes allowed for this client grant."
|
|
6324
6327
|
}),
|
|
6325
6328
|
organization_usage: x(["deny", "allow", "require"]).optional().openapi({
|
|
@@ -6334,7 +6337,7 @@ const pl = _({
|
|
|
6334
6337
|
subject_type: x(["client", "user"]).optional().openapi({
|
|
6335
6338
|
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."
|
|
6336
6339
|
}),
|
|
6337
|
-
authorization_details_types:
|
|
6340
|
+
authorization_details_types: N(a()).optional().openapi({
|
|
6338
6341
|
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."
|
|
6339
6342
|
})
|
|
6340
6343
|
}), fl = _({
|
|
@@ -6345,7 +6348,7 @@ const pl = _({
|
|
|
6345
6348
|
created_at: a().optional(),
|
|
6346
6349
|
updated_at: a().optional()
|
|
6347
6350
|
});
|
|
6348
|
-
|
|
6351
|
+
N(fl);
|
|
6349
6352
|
const gr = x(["iat", "rat"]), hl = _({
|
|
6350
6353
|
id: a(),
|
|
6351
6354
|
token_hash: a(),
|
|
@@ -6476,13 +6479,13 @@ const vn = _({
|
|
|
6476
6479
|
id: a(),
|
|
6477
6480
|
category: a(),
|
|
6478
6481
|
type: a()
|
|
6479
|
-
}).passthrough(),
|
|
6482
|
+
}).passthrough(), Sl = Pe([
|
|
6480
6483
|
gl,
|
|
6481
6484
|
ml,
|
|
6482
6485
|
yl,
|
|
6483
6486
|
vl,
|
|
6484
6487
|
wl
|
|
6485
|
-
]),
|
|
6488
|
+
]), Nl = _({
|
|
6486
6489
|
id: a(),
|
|
6487
6490
|
type: T(
|
|
6488
6491
|
"STEP"
|
|
@@ -6491,7 +6494,7 @@ const vn = _({
|
|
|
6491
6494
|
coordinates: Ot,
|
|
6492
6495
|
alias: a().optional(),
|
|
6493
6496
|
config: _({
|
|
6494
|
-
components:
|
|
6497
|
+
components: N(Sl),
|
|
6495
6498
|
next_node: a()
|
|
6496
6499
|
}).passthrough()
|
|
6497
6500
|
}), bl = _({
|
|
@@ -6533,7 +6536,7 @@ const vn = _({
|
|
|
6533
6536
|
type: a(),
|
|
6534
6537
|
coordinates: Ot
|
|
6535
6538
|
}).passthrough(), kl = Pe([
|
|
6536
|
-
|
|
6539
|
+
Nl,
|
|
6537
6540
|
bl,
|
|
6538
6541
|
El,
|
|
6539
6542
|
xl
|
|
@@ -6549,7 +6552,7 @@ const vn = _({
|
|
|
6549
6552
|
languages: _({
|
|
6550
6553
|
primary: a()
|
|
6551
6554
|
}).passthrough(),
|
|
6552
|
-
nodes:
|
|
6555
|
+
nodes: N(kl),
|
|
6553
6556
|
start: Ol,
|
|
6554
6557
|
ending: Tl,
|
|
6555
6558
|
created_at: a(),
|
|
@@ -6564,7 +6567,7 @@ Al.omit({
|
|
|
6564
6567
|
created_at: !0,
|
|
6565
6568
|
updated_at: !0
|
|
6566
6569
|
});
|
|
6567
|
-
var vr = /* @__PURE__ */ ((n) => (n.TOKEN = "token", n.ID_TOKEN = "id_token", n.TOKEN_ID_TOKEN = "token id_token", n.CODE = "code", n))(vr || {}), wr = /* @__PURE__ */ ((n) => (n.QUERY = "query", n.FRAGMENT = "fragment", n.FORM_POST = "form_post", n.WEB_MESSAGE = "web_message", n.SAML_POST = "saml_post", n))(wr || {}),
|
|
6570
|
+
var vr = /* @__PURE__ */ ((n) => (n.TOKEN = "token", n.ID_TOKEN = "id_token", n.TOKEN_ID_TOKEN = "token id_token", n.CODE = "code", n))(vr || {}), wr = /* @__PURE__ */ ((n) => (n.QUERY = "query", n.FRAGMENT = "fragment", n.FORM_POST = "form_post", n.WEB_MESSAGE = "web_message", n.SAML_POST = "saml_post", n))(wr || {}), Sr = /* @__PURE__ */ ((n) => (n.S256 = "S256", n.Plain = "plain", n))(Sr || {});
|
|
6568
6571
|
const Il = _({
|
|
6569
6572
|
client_id: a(),
|
|
6570
6573
|
act_as: a().optional(),
|
|
@@ -6577,7 +6580,7 @@ const Il = _({
|
|
|
6577
6580
|
nonce: a().optional(),
|
|
6578
6581
|
scope: a().optional(),
|
|
6579
6582
|
prompt: a().optional(),
|
|
6580
|
-
code_challenge_method: gt(
|
|
6583
|
+
code_challenge_method: gt(Sr).optional(),
|
|
6581
6584
|
code_challenge: a().optional(),
|
|
6582
6585
|
username: a().optional(),
|
|
6583
6586
|
ui_locales: a().optional(),
|
|
@@ -6694,7 +6697,7 @@ const Ll = _({
|
|
|
6694
6697
|
}).optional(),
|
|
6695
6698
|
password_dictionary: _({
|
|
6696
6699
|
enable: h().optional(),
|
|
6697
|
-
dictionary:
|
|
6700
|
+
dictionary: N(a()).optional()
|
|
6698
6701
|
}).optional(),
|
|
6699
6702
|
// Disable signup for this connection
|
|
6700
6703
|
disable_signup: h().optional(),
|
|
@@ -6795,7 +6798,7 @@ const Rl = _({
|
|
|
6795
6798
|
(n) => n === null ? {} : si(n),
|
|
6796
6799
|
Ll
|
|
6797
6800
|
).default({}),
|
|
6798
|
-
enabled_clients:
|
|
6801
|
+
enabled_clients: N(a()).default([]).optional(),
|
|
6799
6802
|
response_type: ri().optional(),
|
|
6800
6803
|
response_mode: ri().optional(),
|
|
6801
6804
|
is_domain_connection: h().optional(),
|
|
@@ -6840,7 +6843,7 @@ const Ul = _({
|
|
|
6840
6843
|
status: x(["disabled", "pending", "pending_verification", "ready"]),
|
|
6841
6844
|
origin_domain_name: a().optional(),
|
|
6842
6845
|
verification: _({
|
|
6843
|
-
methods:
|
|
6846
|
+
methods: N(zl)
|
|
6844
6847
|
}).optional(),
|
|
6845
6848
|
tls_policy: a().optional()
|
|
6846
6849
|
});
|
|
@@ -6898,32 +6901,32 @@ const wi = _({
|
|
|
6898
6901
|
config: _({
|
|
6899
6902
|
content: a().optional()
|
|
6900
6903
|
}).optional()
|
|
6901
|
-
}),
|
|
6904
|
+
}), Si = wi.extend({
|
|
6902
6905
|
category: T("WIDGET").optional(),
|
|
6903
6906
|
label: a().min(1).optional(),
|
|
6904
6907
|
hint: a().min(1).max(500).optional(),
|
|
6905
6908
|
required: h().optional(),
|
|
6906
6909
|
sensitive: h().optional()
|
|
6907
|
-
}), Hl =
|
|
6910
|
+
}), Hl = Si.extend({
|
|
6908
6911
|
type: T("AUTH0_VERIFIABLE_CREDENTIALS"),
|
|
6909
6912
|
config: _({
|
|
6910
6913
|
credential_type: a().optional()
|
|
6911
6914
|
})
|
|
6912
|
-
}), Kl =
|
|
6915
|
+
}), Kl = Si.extend({
|
|
6913
6916
|
type: T("GMAPS_ADDRESS"),
|
|
6914
6917
|
config: _({
|
|
6915
6918
|
api_key: a().optional()
|
|
6916
6919
|
})
|
|
6917
|
-
}), Gl =
|
|
6920
|
+
}), Gl = Si.extend({
|
|
6918
6921
|
type: T("RECAPTCHA"),
|
|
6919
6922
|
config: _({
|
|
6920
6923
|
site_key: a().optional()
|
|
6921
6924
|
})
|
|
6922
|
-
}),
|
|
6925
|
+
}), Ne = wi.extend({
|
|
6923
6926
|
category: T("FIELD").optional(),
|
|
6924
6927
|
label: a().min(1).optional(),
|
|
6925
6928
|
hint: a().min(1).max(500).optional(),
|
|
6926
|
-
messages:
|
|
6929
|
+
messages: N(
|
|
6927
6930
|
_({
|
|
6928
6931
|
id: k().optional(),
|
|
6929
6932
|
text: a(),
|
|
@@ -6932,15 +6935,15 @@ const wi = _({
|
|
|
6932
6935
|
).optional(),
|
|
6933
6936
|
required: h().optional(),
|
|
6934
6937
|
sensitive: h().optional()
|
|
6935
|
-
}), Ql =
|
|
6938
|
+
}), Ql = Ne.extend({
|
|
6936
6939
|
type: T("BOOLEAN"),
|
|
6937
6940
|
config: _({
|
|
6938
6941
|
default_value: h().optional()
|
|
6939
6942
|
}).optional()
|
|
6940
|
-
}), Jl =
|
|
6943
|
+
}), Jl = Ne.extend({
|
|
6941
6944
|
type: T("CARDS"),
|
|
6942
6945
|
config: _({
|
|
6943
|
-
options:
|
|
6946
|
+
options: N(
|
|
6944
6947
|
_({
|
|
6945
6948
|
value: a(),
|
|
6946
6949
|
label: a(),
|
|
@@ -6950,10 +6953,10 @@ const wi = _({
|
|
|
6950
6953
|
).optional(),
|
|
6951
6954
|
multi_select: h().optional()
|
|
6952
6955
|
}).optional()
|
|
6953
|
-
}), Wl =
|
|
6956
|
+
}), Wl = Ne.extend({
|
|
6954
6957
|
type: T("CHOICE"),
|
|
6955
6958
|
config: _({
|
|
6956
|
-
options:
|
|
6959
|
+
options: N(
|
|
6957
6960
|
_({
|
|
6958
6961
|
value: a(),
|
|
6959
6962
|
label: a()
|
|
@@ -6961,9 +6964,9 @@ const wi = _({
|
|
|
6961
6964
|
).optional(),
|
|
6962
6965
|
display: x(["radio", "checkbox"]).optional(),
|
|
6963
6966
|
multiple: h().optional(),
|
|
6964
|
-
default_value: Pe([a(),
|
|
6967
|
+
default_value: Pe([a(), N(a())]).optional()
|
|
6965
6968
|
}).optional()
|
|
6966
|
-
}), Xl =
|
|
6969
|
+
}), Xl = Ne.extend({
|
|
6967
6970
|
type: T("CUSTOM"),
|
|
6968
6971
|
config: _({
|
|
6969
6972
|
component: a().optional(),
|
|
@@ -6971,7 +6974,7 @@ const wi = _({
|
|
|
6971
6974
|
schema: P(Z()).optional(),
|
|
6972
6975
|
code: a().optional()
|
|
6973
6976
|
})
|
|
6974
|
-
}), Yl =
|
|
6977
|
+
}), Yl = Ne.extend({
|
|
6975
6978
|
type: T("DATE"),
|
|
6976
6979
|
config: _({
|
|
6977
6980
|
format: a().optional(),
|
|
@@ -6979,10 +6982,10 @@ const wi = _({
|
|
|
6979
6982
|
max: a().optional(),
|
|
6980
6983
|
default_value: a().optional()
|
|
6981
6984
|
}).optional()
|
|
6982
|
-
}), ed =
|
|
6985
|
+
}), ed = Ne.extend({
|
|
6983
6986
|
type: T("DROPDOWN"),
|
|
6984
6987
|
config: _({
|
|
6985
|
-
options:
|
|
6988
|
+
options: N(
|
|
6986
6989
|
_({
|
|
6987
6990
|
value: a(),
|
|
6988
6991
|
label: a()
|
|
@@ -6991,28 +6994,28 @@ const wi = _({
|
|
|
6991
6994
|
placeholder: a().optional(),
|
|
6992
6995
|
searchable: h().optional(),
|
|
6993
6996
|
multiple: h().optional(),
|
|
6994
|
-
default_value: Pe([a(),
|
|
6997
|
+
default_value: Pe([a(), N(a())]).optional()
|
|
6995
6998
|
}).optional()
|
|
6996
|
-
}), td =
|
|
6999
|
+
}), td = Ne.extend({
|
|
6997
7000
|
type: T("EMAIL"),
|
|
6998
7001
|
config: _({
|
|
6999
7002
|
placeholder: a().optional(),
|
|
7000
7003
|
default_value: a().optional()
|
|
7001
7004
|
}).optional()
|
|
7002
|
-
}), nd =
|
|
7005
|
+
}), nd = Ne.extend({
|
|
7003
7006
|
type: T("FILE"),
|
|
7004
7007
|
config: _({
|
|
7005
7008
|
accept: a().optional(),
|
|
7006
7009
|
max_size: k().optional(),
|
|
7007
7010
|
multiple: h().optional()
|
|
7008
7011
|
}).optional()
|
|
7009
|
-
}), id =
|
|
7012
|
+
}), id = Ne.extend({
|
|
7010
7013
|
type: T("LEGAL"),
|
|
7011
7014
|
config: _({
|
|
7012
7015
|
text: a(),
|
|
7013
7016
|
html: h().optional()
|
|
7014
7017
|
}).optional()
|
|
7015
|
-
}), od =
|
|
7018
|
+
}), od = Ne.extend({
|
|
7016
7019
|
type: T("NUMBER"),
|
|
7017
7020
|
config: _({
|
|
7018
7021
|
placeholder: a().optional(),
|
|
@@ -7021,7 +7024,7 @@ const wi = _({
|
|
|
7021
7024
|
step: k().optional(),
|
|
7022
7025
|
default_value: a().optional()
|
|
7023
7026
|
}).optional()
|
|
7024
|
-
}), ad =
|
|
7027
|
+
}), ad = Ne.extend({
|
|
7025
7028
|
type: T("PASSWORD"),
|
|
7026
7029
|
config: _({
|
|
7027
7030
|
placeholder: a().optional(),
|
|
@@ -7030,18 +7033,18 @@ const wi = _({
|
|
|
7030
7033
|
forgot_password_link: a().optional(),
|
|
7031
7034
|
default_value: a().optional()
|
|
7032
7035
|
}).optional()
|
|
7033
|
-
}), rd =
|
|
7036
|
+
}), rd = Ne.extend({
|
|
7034
7037
|
type: T("PAYMENT"),
|
|
7035
7038
|
config: _({
|
|
7036
7039
|
provider: a().optional(),
|
|
7037
7040
|
currency: a().optional()
|
|
7038
7041
|
}).optional()
|
|
7039
|
-
}), sd =
|
|
7042
|
+
}), sd = Ne.extend({
|
|
7040
7043
|
type: T("SOCIAL"),
|
|
7041
7044
|
config: _({
|
|
7042
|
-
providers:
|
|
7045
|
+
providers: N(a()).optional(),
|
|
7043
7046
|
// Extended provider info with icons and display names
|
|
7044
|
-
provider_details:
|
|
7047
|
+
provider_details: N(
|
|
7045
7048
|
_({
|
|
7046
7049
|
name: a(),
|
|
7047
7050
|
strategy: a().optional(),
|
|
@@ -7051,7 +7054,7 @@ const wi = _({
|
|
|
7051
7054
|
})
|
|
7052
7055
|
).optional()
|
|
7053
7056
|
}).optional()
|
|
7054
|
-
}), ld =
|
|
7057
|
+
}), ld = Ne.extend({
|
|
7055
7058
|
type: T("TEL"),
|
|
7056
7059
|
config: _({
|
|
7057
7060
|
placeholder: a().optional(),
|
|
@@ -7059,7 +7062,7 @@ const wi = _({
|
|
|
7059
7062
|
default_value: a().optional(),
|
|
7060
7063
|
allow_email: h().optional()
|
|
7061
7064
|
}).optional()
|
|
7062
|
-
}), dd =
|
|
7065
|
+
}), dd = Ne.extend({
|
|
7063
7066
|
type: T("TEXT"),
|
|
7064
7067
|
config: _({
|
|
7065
7068
|
placeholder: a().optional(),
|
|
@@ -7067,13 +7070,13 @@ const wi = _({
|
|
|
7067
7070
|
max_length: k().optional(),
|
|
7068
7071
|
default_value: a().optional()
|
|
7069
7072
|
}).optional()
|
|
7070
|
-
}), cd =
|
|
7073
|
+
}), cd = Ne.extend({
|
|
7071
7074
|
type: T("COUNTRY"),
|
|
7072
7075
|
config: _({
|
|
7073
7076
|
placeholder: a().optional(),
|
|
7074
7077
|
default_value: a().optional()
|
|
7075
7078
|
}).optional()
|
|
7076
|
-
}), _d =
|
|
7079
|
+
}), _d = Ne.extend({
|
|
7077
7080
|
type: T("URL"),
|
|
7078
7081
|
config: _({
|
|
7079
7082
|
placeholder: a().optional(),
|
|
@@ -7110,7 +7113,7 @@ const wi = _({
|
|
|
7110
7113
|
ld,
|
|
7111
7114
|
dd,
|
|
7112
7115
|
_d
|
|
7113
|
-
]),
|
|
7116
|
+
]), Nr = Pe([
|
|
7114
7117
|
ud,
|
|
7115
7118
|
pd,
|
|
7116
7119
|
fd
|
|
@@ -7143,7 +7146,7 @@ const Kt = _({
|
|
|
7143
7146
|
coordinates: Kt,
|
|
7144
7147
|
alias: a().min(1).max(150),
|
|
7145
7148
|
config: _({
|
|
7146
|
-
rules:
|
|
7149
|
+
rules: N(
|
|
7147
7150
|
_({
|
|
7148
7151
|
id: a(),
|
|
7149
7152
|
alias: a().min(1).max(150).optional(),
|
|
@@ -7159,7 +7162,7 @@ const Kt = _({
|
|
|
7159
7162
|
coordinates: Kt,
|
|
7160
7163
|
alias: a().min(1).max(150).optional(),
|
|
7161
7164
|
config: _({
|
|
7162
|
-
components:
|
|
7165
|
+
components: N(Nr),
|
|
7163
7166
|
next_node: a().optional()
|
|
7164
7167
|
})
|
|
7165
7168
|
}), yd = kt("type", [
|
|
@@ -7179,9 +7182,9 @@ const Kt = _({
|
|
|
7179
7182
|
default: a().optional()
|
|
7180
7183
|
}).optional(),
|
|
7181
7184
|
translations: P(a(), Z()).optional(),
|
|
7182
|
-
nodes:
|
|
7185
|
+
nodes: N(yd).optional(),
|
|
7183
7186
|
start: _({
|
|
7184
|
-
hidden_fields:
|
|
7187
|
+
hidden_fields: N(_({ key: a(), value: a() })).optional(),
|
|
7185
7188
|
next_node: a().optional(),
|
|
7186
7189
|
coordinates: Kt.optional()
|
|
7187
7190
|
}).optional(),
|
|
@@ -7211,7 +7214,7 @@ const wd = _({
|
|
|
7211
7214
|
id: k().optional(),
|
|
7212
7215
|
text: a(),
|
|
7213
7216
|
type: x(["info", "error", "success", "warning"])
|
|
7214
|
-
}),
|
|
7217
|
+
}), Sd = _({
|
|
7215
7218
|
id: a().optional(),
|
|
7216
7219
|
text: a(),
|
|
7217
7220
|
href: a(),
|
|
@@ -7224,9 +7227,9 @@ _({
|
|
|
7224
7227
|
method: x(["POST", "GET"]),
|
|
7225
7228
|
title: a().optional(),
|
|
7226
7229
|
description: a().optional(),
|
|
7227
|
-
components:
|
|
7228
|
-
messages:
|
|
7229
|
-
links:
|
|
7230
|
+
components: N(Nr),
|
|
7231
|
+
messages: N(wd).optional(),
|
|
7232
|
+
links: N(Sd).optional(),
|
|
7230
7233
|
/** Footer HTML content displayed at the very bottom of the widget (e.g., terms and conditions) */
|
|
7231
7234
|
footer: a().optional()
|
|
7232
7235
|
});
|
|
@@ -7277,7 +7280,7 @@ const br = x([
|
|
|
7277
7280
|
* Everything else is opaque to the runtime. Persisted as JSON.
|
|
7278
7281
|
*/
|
|
7279
7282
|
metadata: P($e()).optional()
|
|
7280
|
-
},
|
|
7283
|
+
}, Nd = _({
|
|
7281
7284
|
..._t,
|
|
7282
7285
|
trigger_id: br,
|
|
7283
7286
|
url: a()
|
|
@@ -7295,7 +7298,7 @@ const br = x([
|
|
|
7295
7298
|
code_id: a()
|
|
7296
7299
|
});
|
|
7297
7300
|
Pe([
|
|
7298
|
-
|
|
7301
|
+
Nd,
|
|
7299
7302
|
bd,
|
|
7300
7303
|
Ed,
|
|
7301
7304
|
xd
|
|
@@ -7354,7 +7357,7 @@ const Cd = _({
|
|
|
7354
7357
|
app_metadata: P(Z()).default({}).optional(),
|
|
7355
7358
|
user_metadata: P(Z()).default({}).optional(),
|
|
7356
7359
|
ttl_sec: k().int().max(2592e3).default(604800).optional(),
|
|
7357
|
-
roles:
|
|
7360
|
+
roles: N(a()).default([]).optional(),
|
|
7358
7361
|
send_invitation_email: h().default(!0).optional()
|
|
7359
7362
|
});
|
|
7360
7363
|
_({
|
|
@@ -7381,11 +7384,11 @@ const Rd = _({
|
|
|
7381
7384
|
kty: x(["RSA", "EC", "oct"]),
|
|
7382
7385
|
n: a(),
|
|
7383
7386
|
x5t: a().optional(),
|
|
7384
|
-
x5c:
|
|
7387
|
+
x5c: N(a()).optional(),
|
|
7385
7388
|
use: x(["sig", "enc"]).optional()
|
|
7386
7389
|
});
|
|
7387
7390
|
_({
|
|
7388
|
-
keys:
|
|
7391
|
+
keys: N(Rd)
|
|
7389
7392
|
});
|
|
7390
7393
|
_({
|
|
7391
7394
|
issuer: a(),
|
|
@@ -7398,18 +7401,18 @@ _({
|
|
|
7398
7401
|
registration_endpoint: a().optional(),
|
|
7399
7402
|
revocation_endpoint: a(),
|
|
7400
7403
|
end_session_endpoint: a().optional(),
|
|
7401
|
-
scopes_supported:
|
|
7402
|
-
response_types_supported:
|
|
7403
|
-
grant_types_supported:
|
|
7404
|
-
code_challenge_methods_supported:
|
|
7405
|
-
response_modes_supported:
|
|
7406
|
-
subject_types_supported:
|
|
7407
|
-
id_token_signing_alg_values_supported:
|
|
7408
|
-
token_endpoint_auth_methods_supported:
|
|
7409
|
-
claims_supported:
|
|
7404
|
+
scopes_supported: N(a()),
|
|
7405
|
+
response_types_supported: N(a()),
|
|
7406
|
+
grant_types_supported: N(a()).optional(),
|
|
7407
|
+
code_challenge_methods_supported: N(a()),
|
|
7408
|
+
response_modes_supported: N(a()),
|
|
7409
|
+
subject_types_supported: N(a()),
|
|
7410
|
+
id_token_signing_alg_values_supported: N(a()),
|
|
7411
|
+
token_endpoint_auth_methods_supported: N(a()),
|
|
7412
|
+
claims_supported: N(a()),
|
|
7410
7413
|
request_uri_parameter_supported: h(),
|
|
7411
7414
|
request_parameter_supported: h(),
|
|
7412
|
-
token_endpoint_auth_signing_alg_values_supported:
|
|
7415
|
+
token_endpoint_auth_signing_alg_values_supported: N(a())
|
|
7413
7416
|
});
|
|
7414
7417
|
var Tr = /* @__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))(Tr || {});
|
|
7415
7418
|
const Ud = gt(Tr), zd = _({
|
|
@@ -7604,6 +7607,8 @@ const Pd = {
|
|
|
7604
7607
|
SUCCESSFULLY_ACCEPTED_USER_INVITE: "si",
|
|
7605
7608
|
BREACHED_PASSWORD_ON_SIGNUP: "signup_pwd_leak",
|
|
7606
7609
|
SUCCESS_LOGOUT: "slo",
|
|
7610
|
+
SUCCESS_HOOK: "sh",
|
|
7611
|
+
// Custom AuthHero-specific
|
|
7607
7612
|
SUCCESS_REVOCATION: "srrt",
|
|
7608
7613
|
SUCCESS_SIGNUP: "ss",
|
|
7609
7614
|
FAILED_SS_SSO_OPERATION: "ss_sso_failure",
|
|
@@ -7685,7 +7690,7 @@ const jd = x([
|
|
|
7685
7690
|
type: jd,
|
|
7686
7691
|
status: Ar.optional(),
|
|
7687
7692
|
sink: P(a(), $e()),
|
|
7688
|
-
filters:
|
|
7693
|
+
filters: N(Vd).optional(),
|
|
7689
7694
|
isPriority: h().optional()
|
|
7690
7695
|
});
|
|
7691
7696
|
Zd.extend({
|
|
@@ -7696,27 +7701,27 @@ Zd.extend({
|
|
|
7696
7701
|
});
|
|
7697
7702
|
const Hd = _({
|
|
7698
7703
|
enabled: h().optional(),
|
|
7699
|
-
shields:
|
|
7700
|
-
admin_notification_frequency:
|
|
7704
|
+
shields: N(a()).optional(),
|
|
7705
|
+
admin_notification_frequency: N(a()).optional(),
|
|
7701
7706
|
method: a().optional(),
|
|
7702
7707
|
stage: _({
|
|
7703
7708
|
"pre-user-registration": _({
|
|
7704
|
-
shields:
|
|
7709
|
+
shields: N(a()).optional()
|
|
7705
7710
|
}).optional(),
|
|
7706
7711
|
"pre-change-password": _({
|
|
7707
|
-
shields:
|
|
7712
|
+
shields: N(a()).optional()
|
|
7708
7713
|
}).optional()
|
|
7709
7714
|
}).optional()
|
|
7710
7715
|
}), Kd = _({
|
|
7711
7716
|
enabled: h().optional(),
|
|
7712
|
-
shields:
|
|
7713
|
-
allowlist:
|
|
7717
|
+
shields: N(a()).optional(),
|
|
7718
|
+
allowlist: N(a()).optional(),
|
|
7714
7719
|
mode: a().optional(),
|
|
7715
7720
|
max_attempts: k().optional()
|
|
7716
7721
|
}), Gd = _({
|
|
7717
7722
|
enabled: h().optional(),
|
|
7718
|
-
shields:
|
|
7719
|
-
allowlist:
|
|
7723
|
+
shields: N(a()).optional(),
|
|
7724
|
+
allowlist: N(a()).optional(),
|
|
7720
7725
|
stage: _({
|
|
7721
7726
|
"pre-login": _({
|
|
7722
7727
|
max_attempts: k().optional(),
|
|
@@ -7761,7 +7766,7 @@ const Ir = _({
|
|
|
7761
7766
|
device: Ir.describe(
|
|
7762
7767
|
"Metadata related to the device used in the session"
|
|
7763
7768
|
),
|
|
7764
|
-
clients:
|
|
7769
|
+
clients: N(a()).describe("List of client details for the session")
|
|
7765
7770
|
});
|
|
7766
7771
|
_({
|
|
7767
7772
|
created_at: a(),
|
|
@@ -7817,11 +7822,16 @@ const Xd = _({
|
|
|
7817
7822
|
mode: x(["persistent", "non-persistent"]).optional()
|
|
7818
7823
|
}).optional(),
|
|
7819
7824
|
// Logout settings
|
|
7820
|
-
allowed_logout_urls:
|
|
7825
|
+
allowed_logout_urls: N(a()).optional(),
|
|
7821
7826
|
// Universal Login settings
|
|
7822
7827
|
default_redirection_uri: a().optional(),
|
|
7828
|
+
// Anchor client used for tenant-level flows that aren't tied to a specific
|
|
7829
|
+
// application (e.g. /connect/start DCR consent). When unset, /connect/start
|
|
7830
|
+
// falls back to the first available client. Roughly analogous to Auth0's
|
|
7831
|
+
// "Default App" / Global Client.
|
|
7832
|
+
default_client_id: a().optional(),
|
|
7823
7833
|
// Advanced settings
|
|
7824
|
-
enabled_locales:
|
|
7834
|
+
enabled_locales: N(a()).optional(),
|
|
7825
7835
|
default_directory: a().optional(),
|
|
7826
7836
|
error_page: _({
|
|
7827
7837
|
html: a().optional(),
|
|
@@ -7851,11 +7861,11 @@ const Xd = _({
|
|
|
7851
7861
|
// and relies on tenant ACLs/rate limits; we implement RFC 7591 initial
|
|
7852
7862
|
// access tokens and a per-tenant grant-type allowlist.
|
|
7853
7863
|
dcr_require_initial_access_token: h().optional(),
|
|
7854
|
-
dcr_allowed_grant_types:
|
|
7864
|
+
dcr_allowed_grant_types: N(a()).optional(),
|
|
7855
7865
|
// Per-tenant allowlist of fully-qualified http origins (scheme + host
|
|
7856
7866
|
// + port, no path) that may be used as `return_to` / `domain` on
|
|
7857
7867
|
// `/connect/start` despite not being loopback. Off by default.
|
|
7858
|
-
allow_http_return_to:
|
|
7868
|
+
allow_http_return_to: N(
|
|
7859
7869
|
a().refine(
|
|
7860
7870
|
(n) => {
|
|
7861
7871
|
try {
|
|
@@ -7893,7 +7903,7 @@ const Xd = _({
|
|
|
7893
7903
|
// Sandbox settings
|
|
7894
7904
|
sandbox_version: a().optional(),
|
|
7895
7905
|
legacy_sandbox_version: a().optional(),
|
|
7896
|
-
sandbox_versions_available:
|
|
7906
|
+
sandbox_versions_available: N(a()).optional(),
|
|
7897
7907
|
// Change password settings
|
|
7898
7908
|
change_password: _({
|
|
7899
7909
|
enabled: h().optional(),
|
|
@@ -7935,7 +7945,7 @@ const Xd = _({
|
|
|
7935
7945
|
// MFA settings
|
|
7936
7946
|
customize_mfa_in_postlogin_action: h().optional(),
|
|
7937
7947
|
// ACR values
|
|
7938
|
-
acr_values_supported:
|
|
7948
|
+
acr_values_supported: N(a()).optional(),
|
|
7939
7949
|
// mTLS settings
|
|
7940
7950
|
mtls: _({
|
|
7941
7951
|
enable_endpoint_aliases: h().optional()
|
|
@@ -8042,7 +8052,16 @@ const Yd = _({
|
|
|
8042
8052
|
}), nc = _({
|
|
8043
8053
|
background_color: a(),
|
|
8044
8054
|
background_image_url: a(),
|
|
8045
|
-
page_layout: x(["center", "left", "right"])
|
|
8055
|
+
page_layout: x(["center", "left", "right"]),
|
|
8056
|
+
/**
|
|
8057
|
+
* Where the tenant logo renders on the page.
|
|
8058
|
+
* - "widget" (default): inside the widget card via the widget's own header.
|
|
8059
|
+
* - "chip": as a floating pill in the top-left page corner. The widget's
|
|
8060
|
+
* internal logo is suppressed when this is selected.
|
|
8061
|
+
* - "none": no logo on the page or in the widget.
|
|
8062
|
+
* Optional for backwards compatibility; absent values mean "widget".
|
|
8063
|
+
*/
|
|
8064
|
+
logo_placement: x(["widget", "chip", "none"]).optional()
|
|
8046
8065
|
}), ic = _({
|
|
8047
8066
|
header_text_alignment: x(["center", "left", "right"]),
|
|
8048
8067
|
logo_height: k(),
|
|
@@ -8087,7 +8106,7 @@ const ac = _({
|
|
|
8087
8106
|
// When the token was last used.
|
|
8088
8107
|
last_exchanged_at: a().optional(),
|
|
8089
8108
|
device: Ir,
|
|
8090
|
-
resource_servers:
|
|
8109
|
+
resource_servers: N(
|
|
8091
8110
|
_({
|
|
8092
8111
|
audience: a(),
|
|
8093
8112
|
scopes: a()
|
|
@@ -8141,7 +8160,7 @@ const rc = _({
|
|
|
8141
8160
|
id: a().optional(),
|
|
8142
8161
|
name: a(),
|
|
8143
8162
|
identifier: a(),
|
|
8144
|
-
scopes:
|
|
8163
|
+
scopes: N(rc).optional(),
|
|
8145
8164
|
signing_alg: a().optional(),
|
|
8146
8165
|
signing_secret: a().optional(),
|
|
8147
8166
|
token_lifetime: k().default(86400),
|
|
@@ -8157,7 +8176,7 @@ const rc = _({
|
|
|
8157
8176
|
created_at: a().optional(),
|
|
8158
8177
|
updated_at: a().optional()
|
|
8159
8178
|
});
|
|
8160
|
-
|
|
8179
|
+
N(dc);
|
|
8161
8180
|
const cc = _({
|
|
8162
8181
|
role_id: a(),
|
|
8163
8182
|
resource_server_identifier: a(),
|
|
@@ -8166,7 +8185,7 @@ const cc = _({
|
|
|
8166
8185
|
...cc.shape,
|
|
8167
8186
|
created_at: a()
|
|
8168
8187
|
});
|
|
8169
|
-
|
|
8188
|
+
N(_c);
|
|
8170
8189
|
const uc = _({
|
|
8171
8190
|
user_id: a(),
|
|
8172
8191
|
resource_server_identifier: a(),
|
|
@@ -8177,7 +8196,7 @@ const uc = _({
|
|
|
8177
8196
|
tenant_id: a(),
|
|
8178
8197
|
created_at: a().optional()
|
|
8179
8198
|
});
|
|
8180
|
-
|
|
8199
|
+
N(pc);
|
|
8181
8200
|
const fc = _({
|
|
8182
8201
|
user_id: a(),
|
|
8183
8202
|
resource_server_identifier: a(),
|
|
@@ -8187,7 +8206,7 @@ const fc = _({
|
|
|
8187
8206
|
created_at: a().optional(),
|
|
8188
8207
|
organization_id: a().optional()
|
|
8189
8208
|
});
|
|
8190
|
-
|
|
8209
|
+
N(
|
|
8191
8210
|
fc
|
|
8192
8211
|
);
|
|
8193
8212
|
const hc = _({
|
|
@@ -8199,7 +8218,7 @@ const hc = _({
|
|
|
8199
8218
|
tenant_id: a(),
|
|
8200
8219
|
created_at: a().optional()
|
|
8201
8220
|
});
|
|
8202
|
-
|
|
8221
|
+
N(gc);
|
|
8203
8222
|
const mc = _({
|
|
8204
8223
|
id: a().optional().openapi({
|
|
8205
8224
|
description: "The unique identifier of the role. If not provided, one will be generated."
|
|
@@ -8221,7 +8240,7 @@ const mc = _({
|
|
|
8221
8240
|
created_at: a().optional(),
|
|
8222
8241
|
updated_at: a().optional()
|
|
8223
8242
|
});
|
|
8224
|
-
|
|
8243
|
+
N(yc);
|
|
8225
8244
|
const vc = _({
|
|
8226
8245
|
logo_url: a().optional().openapi({
|
|
8227
8246
|
description: "URL of the organization's logo"
|
|
@@ -8247,7 +8266,7 @@ const vc = _({
|
|
|
8247
8266
|
is_signup_enabled: h().default(!0).openapi({
|
|
8248
8267
|
description: "Whether signup is enabled for this connection"
|
|
8249
8268
|
})
|
|
8250
|
-
}),
|
|
8269
|
+
}), Sc = _({
|
|
8251
8270
|
client_credentials: _({
|
|
8252
8271
|
enforce: h().default(!1).openapi({
|
|
8253
8272
|
description: "Whether to enforce token quota limits"
|
|
@@ -8259,7 +8278,7 @@ const vc = _({
|
|
|
8259
8278
|
description: "Maximum tokens per hour (0 = unlimited)"
|
|
8260
8279
|
})
|
|
8261
8280
|
}).optional()
|
|
8262
|
-
}).optional(),
|
|
8281
|
+
}).optional(), Nc = _({
|
|
8263
8282
|
id: a().optional(),
|
|
8264
8283
|
name: a().min(1).regex(/^[a-z0-9_-]+$/, {
|
|
8265
8284
|
message: "Organization name must be lowercase and can only contain letters, numbers, hyphens, and underscores"
|
|
@@ -8273,13 +8292,13 @@ const vc = _({
|
|
|
8273
8292
|
metadata: P(Z()).default({}).optional().openapi({
|
|
8274
8293
|
description: "Custom metadata for the organization"
|
|
8275
8294
|
}),
|
|
8276
|
-
enabled_connections:
|
|
8295
|
+
enabled_connections: N(wc).default([]).optional().openapi({
|
|
8277
8296
|
description: "List of enabled connections for the organization"
|
|
8278
8297
|
}),
|
|
8279
|
-
token_quota:
|
|
8298
|
+
token_quota: Sc
|
|
8280
8299
|
});
|
|
8281
8300
|
_({
|
|
8282
|
-
...
|
|
8301
|
+
...Nc.shape,
|
|
8283
8302
|
...Ze.shape,
|
|
8284
8303
|
id: a(),
|
|
8285
8304
|
// Override name to be lenient when reading from database (to support existing uppercase names)
|
|
@@ -8304,7 +8323,7 @@ const bc = _({
|
|
|
8304
8323
|
created_at: a().optional(),
|
|
8305
8324
|
updated_at: a().optional()
|
|
8306
8325
|
});
|
|
8307
|
-
|
|
8326
|
+
N(
|
|
8308
8327
|
Ec
|
|
8309
8328
|
);
|
|
8310
8329
|
const xc = _({
|
|
@@ -8332,7 +8351,7 @@ _({
|
|
|
8332
8351
|
// Universal Login settings
|
|
8333
8352
|
default_redirection_uri: a().optional(),
|
|
8334
8353
|
// Advanced settings
|
|
8335
|
-
enabled_locales:
|
|
8354
|
+
enabled_locales: N(a()).optional(),
|
|
8336
8355
|
default_directory: a().optional(),
|
|
8337
8356
|
error_page: _({
|
|
8338
8357
|
html: a().optional(),
|
|
@@ -8370,7 +8389,7 @@ _({
|
|
|
8370
8389
|
support_url: a().optional(),
|
|
8371
8390
|
// Sandbox settings
|
|
8372
8391
|
sandbox_version: a().optional(),
|
|
8373
|
-
sandbox_versions_available:
|
|
8392
|
+
sandbox_versions_available: N(a()).optional(),
|
|
8374
8393
|
// Change password settings
|
|
8375
8394
|
change_password: _({
|
|
8376
8395
|
enabled: h(),
|
|
@@ -8512,26 +8531,26 @@ const Tc = x([
|
|
|
8512
8531
|
public_key: a().optional(),
|
|
8513
8532
|
sign_count: k().int().nonnegative().optional(),
|
|
8514
8533
|
credential_backed_up: h().optional(),
|
|
8515
|
-
transports:
|
|
8534
|
+
transports: N(a()).optional(),
|
|
8516
8535
|
friendly_name: a().optional(),
|
|
8517
8536
|
// Common
|
|
8518
8537
|
confirmed: h().default(!1)
|
|
8519
8538
|
});
|
|
8520
8539
|
function Dr(n, e) {
|
|
8521
8540
|
n.type === "phone" && !n.phone_number && e.addIssue({
|
|
8522
|
-
code:
|
|
8541
|
+
code: S.custom,
|
|
8523
8542
|
message: "phone_number is required when type is 'phone'",
|
|
8524
8543
|
path: ["phone_number"]
|
|
8525
8544
|
}), n.type === "totp" && !n.totp_secret && e.addIssue({
|
|
8526
|
-
code:
|
|
8545
|
+
code: S.custom,
|
|
8527
8546
|
message: "totp_secret is required when type is 'totp'",
|
|
8528
8547
|
path: ["totp_secret"]
|
|
8529
8548
|
}), ["webauthn-roaming", "webauthn-platform", "passkey"].includes(n.type) && (n.credential_id || e.addIssue({
|
|
8530
|
-
code:
|
|
8549
|
+
code: S.custom,
|
|
8531
8550
|
message: `credential_id is required when type is '${n.type}'`,
|
|
8532
8551
|
path: ["credential_id"]
|
|
8533
8552
|
}), n.public_key || e.addIssue({
|
|
8534
|
-
code:
|
|
8553
|
+
code: S.custom,
|
|
8535
8554
|
message: `public_key is required when type is '${n.type}'`,
|
|
8536
8555
|
path: ["public_key"]
|
|
8537
8556
|
}));
|
|
@@ -8902,11 +8921,11 @@ function Uc(n) {
|
|
|
8902
8921
|
function zc(n) {
|
|
8903
8922
|
return {
|
|
8904
8923
|
async get(e, t, i) {
|
|
8905
|
-
const o = await n.select().from(
|
|
8924
|
+
const o = await n.select().from(Se).where(
|
|
8906
8925
|
g(
|
|
8907
|
-
c(
|
|
8908
|
-
c(
|
|
8909
|
-
c(
|
|
8926
|
+
c(Se.tenant_id, e),
|
|
8927
|
+
c(Se.prompt, t),
|
|
8928
|
+
c(Se.language, i)
|
|
8910
8929
|
)
|
|
8911
8930
|
).get();
|
|
8912
8931
|
if (!o) return null;
|
|
@@ -8918,7 +8937,7 @@ function zc(n) {
|
|
|
8918
8937
|
},
|
|
8919
8938
|
async set(e, t, i, o) {
|
|
8920
8939
|
const r = Date.now(), l = JSON.stringify(o);
|
|
8921
|
-
await n.insert(
|
|
8940
|
+
await n.insert(Se).values({
|
|
8922
8941
|
tenant_id: e,
|
|
8923
8942
|
prompt: t,
|
|
8924
8943
|
language: i,
|
|
@@ -8927,27 +8946,27 @@ function zc(n) {
|
|
|
8927
8946
|
updated_at_ts: r
|
|
8928
8947
|
}).onConflictDoUpdate({
|
|
8929
8948
|
target: [
|
|
8930
|
-
|
|
8931
|
-
|
|
8932
|
-
|
|
8949
|
+
Se.tenant_id,
|
|
8950
|
+
Se.prompt,
|
|
8951
|
+
Se.language
|
|
8933
8952
|
],
|
|
8934
8953
|
set: { custom_text: l, updated_at_ts: r }
|
|
8935
8954
|
});
|
|
8936
8955
|
},
|
|
8937
8956
|
async delete(e, t, i) {
|
|
8938
|
-
await n.delete(
|
|
8957
|
+
await n.delete(Se).where(
|
|
8939
8958
|
g(
|
|
8940
|
-
c(
|
|
8941
|
-
c(
|
|
8942
|
-
c(
|
|
8959
|
+
c(Se.tenant_id, e),
|
|
8960
|
+
c(Se.prompt, t),
|
|
8961
|
+
c(Se.language, i)
|
|
8943
8962
|
)
|
|
8944
8963
|
);
|
|
8945
8964
|
},
|
|
8946
8965
|
async list(e) {
|
|
8947
8966
|
return await n.select({
|
|
8948
|
-
prompt:
|
|
8949
|
-
language:
|
|
8950
|
-
}).from(
|
|
8967
|
+
prompt: Se.prompt,
|
|
8968
|
+
language: Se.language
|
|
8969
|
+
}).from(Se).where(c(Se.tenant_id, e)).all();
|
|
8951
8970
|
}
|
|
8952
8971
|
};
|
|
8953
8972
|
}
|
|
@@ -9810,8 +9829,8 @@ function t_(n) {
|
|
|
9810
9829
|
let u = n.select().from(X).where(c(X.tenant_id, e)).$dynamic();
|
|
9811
9830
|
if (d && (u = u.where(
|
|
9812
9831
|
Ue(
|
|
9813
|
-
|
|
9814
|
-
|
|
9832
|
+
St(X.name, `%${d}%`),
|
|
9833
|
+
St(X.display_name, `%${d}%`)
|
|
9815
9834
|
)
|
|
9816
9835
|
)), l != null && l.sort_by) {
|
|
9817
9836
|
const b = X[l.sort_by];
|
|
@@ -9825,8 +9844,8 @@ function t_(n) {
|
|
|
9825
9844
|
const v = [c(X.tenant_id, e)];
|
|
9826
9845
|
d && v.push(
|
|
9827
9846
|
Ue(
|
|
9828
|
-
|
|
9829
|
-
|
|
9847
|
+
St(X.name, `%${d}%`),
|
|
9848
|
+
St(X.display_name, `%${d}%`)
|
|
9830
9849
|
)
|
|
9831
9850
|
);
|
|
9832
9851
|
const [m] = await n.select({ count: he() }).from(X).where(g(...v));
|
|
@@ -10226,7 +10245,7 @@ function s_(n) {
|
|
|
10226
10245
|
const [, ie, oe] = te, We = ie == null ? void 0 : ie.startsWith("-"), ut = We ? ie == null ? void 0 : ie.substring(1) : ie;
|
|
10227
10246
|
if (ut && Ii.has(ut) && !We) {
|
|
10228
10247
|
const wn = Y[ut];
|
|
10229
|
-
p.push(
|
|
10248
|
+
p.push(St(wn, `%${oe}%`));
|
|
10230
10249
|
}
|
|
10231
10250
|
}
|
|
10232
10251
|
}
|
|
@@ -11149,8 +11168,8 @@ function w_(n) {
|
|
|
11149
11168
|
}
|
|
11150
11169
|
};
|
|
11151
11170
|
}
|
|
11152
|
-
const Ui = ["s", "seacft", "seccft", "sepft", "sertft", "ssa"],
|
|
11153
|
-
function
|
|
11171
|
+
const Ui = ["s", "seacft", "seccft", "sepft", "sertft", "ssa"], S_ = ["pwd_leak", "signup_pwd_leak", "reset_pwd_leak"];
|
|
11172
|
+
function N_(n) {
|
|
11154
11173
|
return {
|
|
11155
11174
|
async getDaily(e, t) {
|
|
11156
11175
|
const i = /* @__PURE__ */ new Date(), o = (t == null ? void 0 : t.from) || new Date(i.getTime() - 30 * 24 * 60 * 60 * 1e3).toISOString().split("T")[0], r = (t == null ? void 0 : t.to) || i.toISOString().split("T")[0];
|
|
@@ -11164,7 +11183,7 @@ function S_(n) {
|
|
|
11164
11183
|
"signups"
|
|
11165
11184
|
),
|
|
11166
11185
|
leaked_passwords: I`SUM(CASE WHEN ${Q.type} IN (${I.join(
|
|
11167
|
-
|
|
11186
|
+
S_.map((d) => I`${d}`),
|
|
11168
11187
|
I`, `
|
|
11169
11188
|
)}) THEN 1 ELSE 0 END)`.as("leaked_passwords")
|
|
11170
11189
|
}).from(Q).where(
|
|
@@ -11409,7 +11428,7 @@ function T_(n, e = { useTransactions: !0 }) {
|
|
|
11409
11428
|
users: y_(n),
|
|
11410
11429
|
userRoles: v_(n),
|
|
11411
11430
|
userOrganizations: w_(n),
|
|
11412
|
-
stats:
|
|
11431
|
+
stats: N_(n),
|
|
11413
11432
|
outbox: b_(n),
|
|
11414
11433
|
async transaction(i) {
|
|
11415
11434
|
if (e.useTransactions === !1)
|