@zyphr-dev/node-sdk 0.1.50 → 0.1.51
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/index.cjs +11 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -2
- package/dist/index.d.ts +20 -2
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/src/models/PasswordPolicy.ts +9 -0
- package/src/src/models/PasswordStrength.ts +20 -2
package/dist/index.cjs
CHANGED
|
@@ -11264,6 +11264,7 @@ function instanceOfPasswordPolicy(value) {
|
|
|
11264
11264
|
if (!("requireNumbers" in value) || value["requireNumbers"] === void 0) return false;
|
|
11265
11265
|
if (!("requireSpecial" in value) || value["requireSpecial"] === void 0) return false;
|
|
11266
11266
|
if (!("disallowCommon" in value) || value["disallowCommon"] === void 0) return false;
|
|
11267
|
+
if (!("disallowBreached" in value) || value["disallowBreached"] === void 0) return false;
|
|
11267
11268
|
return true;
|
|
11268
11269
|
}
|
|
11269
11270
|
function PasswordPolicyFromJSON(json) {
|
|
@@ -11280,7 +11281,8 @@ function PasswordPolicyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
11280
11281
|
"requireLowercase": json["require_lowercase"],
|
|
11281
11282
|
"requireNumbers": json["require_numbers"],
|
|
11282
11283
|
"requireSpecial": json["require_special"],
|
|
11283
|
-
"disallowCommon": json["disallow_common"]
|
|
11284
|
+
"disallowCommon": json["disallow_common"],
|
|
11285
|
+
"disallowBreached": json["disallow_breached"]
|
|
11284
11286
|
};
|
|
11285
11287
|
}
|
|
11286
11288
|
function PasswordPolicyToJSON(json) {
|
|
@@ -11297,7 +11299,8 @@ function PasswordPolicyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
11297
11299
|
"require_lowercase": value["requireLowercase"],
|
|
11298
11300
|
"require_numbers": value["requireNumbers"],
|
|
11299
11301
|
"require_special": value["requireSpecial"],
|
|
11300
|
-
"disallow_common": value["disallowCommon"]
|
|
11302
|
+
"disallow_common": value["disallowCommon"],
|
|
11303
|
+
"disallow_breached": value["disallowBreached"]
|
|
11301
11304
|
};
|
|
11302
11305
|
}
|
|
11303
11306
|
|
|
@@ -11370,6 +11373,8 @@ var PasswordStrengthLabelEnum = {
|
|
|
11370
11373
|
};
|
|
11371
11374
|
function instanceOfPasswordStrength(value) {
|
|
11372
11375
|
if (!("valid" in value) || value["valid"] === void 0) return false;
|
|
11376
|
+
if (!("breached" in value) || value["breached"] === void 0) return false;
|
|
11377
|
+
if (!("breachCount" in value) || value["breachCount"] === void 0) return false;
|
|
11373
11378
|
if (!("score" in value) || value["score"] === void 0) return false;
|
|
11374
11379
|
if (!("label" in value) || value["label"] === void 0) return false;
|
|
11375
11380
|
if (!("feedback" in value) || value["feedback"] === void 0) return false;
|
|
@@ -11384,6 +11389,8 @@ function PasswordStrengthFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
11384
11389
|
}
|
|
11385
11390
|
return {
|
|
11386
11391
|
"valid": json["valid"],
|
|
11392
|
+
"breached": json["breached"],
|
|
11393
|
+
"breachCount": json["breach_count"],
|
|
11387
11394
|
"score": json["score"],
|
|
11388
11395
|
"label": json["label"],
|
|
11389
11396
|
"feedback": json["feedback"]
|
|
@@ -11398,6 +11405,8 @@ function PasswordStrengthToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
11398
11405
|
}
|
|
11399
11406
|
return {
|
|
11400
11407
|
"valid": value["valid"],
|
|
11408
|
+
"breached": value["breached"],
|
|
11409
|
+
"breach_count": value["breachCount"],
|
|
11401
11410
|
"score": value["score"],
|
|
11402
11411
|
"label": value["label"],
|
|
11403
11412
|
"feedback": value["feedback"]
|