@zyphr-dev/node-sdk 0.1.49 → 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 CHANGED
@@ -61,6 +61,7 @@ __export(index_exports, {
61
61
  ApiErrorMetaToJSONTyped: () => ApiErrorMetaToJSONTyped,
62
62
  ApiErrorToJSON: () => ApiErrorToJSON,
63
63
  ApiErrorToJSONTyped: () => ApiErrorToJSONTyped,
64
+ ApplicationSelfAuthEmailModeEnum: () => ApplicationSelfAuthEmailModeEnum,
64
65
  ApplicationSelfEnvironmentEnum: () => ApplicationSelfEnvironmentEnum,
65
66
  ApplicationSelfFromJSON: () => ApplicationSelfFromJSON,
66
67
  ApplicationSelfFromJSONTyped: () => ApplicationSelfFromJSONTyped,
@@ -1437,6 +1438,7 @@ __export(index_exports, {
1437
1438
  SetPreferencesRequestPreferencesInnerToJSONTyped: () => SetPreferencesRequestPreferencesInnerToJSONTyped,
1438
1439
  SetPreferencesRequestToJSON: () => SetPreferencesRequestToJSON,
1439
1440
  SetPreferencesRequestToJSONTyped: () => SetPreferencesRequestToJSONTyped,
1441
+ SetSelfApplicationTestRecipientsRequestAuthEmailModeEnum: () => SetSelfApplicationTestRecipientsRequestAuthEmailModeEnum,
1440
1442
  SetSelfApplicationTestRecipientsRequestFromJSON: () => SetSelfApplicationTestRecipientsRequestFromJSON,
1441
1443
  SetSelfApplicationTestRecipientsRequestFromJSONTyped: () => SetSelfApplicationTestRecipientsRequestFromJSONTyped,
1442
1444
  SetSelfApplicationTestRecipientsRequestToJSON: () => SetSelfApplicationTestRecipientsRequestToJSON,
@@ -3541,12 +3543,17 @@ var ApplicationSelfSigningAlgorithmEnum = {
3541
3543
  RS256: "RS256",
3542
3544
  ES256: "ES256"
3543
3545
  };
3546
+ var ApplicationSelfAuthEmailModeEnum = {
3547
+ ALLOWLIST: "allowlist",
3548
+ UNRESTRICTED: "unrestricted"
3549
+ };
3544
3550
  function instanceOfApplicationSelf(value) {
3545
3551
  if (!("id" in value) || value["id"] === void 0) return false;
3546
3552
  if (!("name" in value) || value["name"] === void 0) return false;
3547
3553
  if (!("environment" in value) || value["environment"] === void 0) return false;
3548
3554
  if (!("signingAlgorithm" in value) || value["signingAlgorithm"] === void 0) return false;
3549
3555
  if (!("testRecipients" in value) || value["testRecipients"] === void 0) return false;
3556
+ if (!("authEmailMode" in value) || value["authEmailMode"] === void 0) return false;
3550
3557
  return true;
3551
3558
  }
3552
3559
  function ApplicationSelfFromJSON(json) {
@@ -3561,7 +3568,8 @@ function ApplicationSelfFromJSONTyped(json, ignoreDiscriminator) {
3561
3568
  "name": json["name"],
3562
3569
  "environment": json["environment"],
3563
3570
  "signingAlgorithm": json["signing_algorithm"],
3564
- "testRecipients": json["test_recipients"]
3571
+ "testRecipients": json["test_recipients"],
3572
+ "authEmailMode": json["auth_email_mode"]
3565
3573
  };
3566
3574
  }
3567
3575
  function ApplicationSelfToJSON(json) {
@@ -3576,7 +3584,8 @@ function ApplicationSelfToJSONTyped(value, ignoreDiscriminator = false) {
3576
3584
  "name": value["name"],
3577
3585
  "environment": value["environment"],
3578
3586
  "signing_algorithm": value["signingAlgorithm"],
3579
- "test_recipients": value["testRecipients"]
3587
+ "test_recipients": value["testRecipients"],
3588
+ "auth_email_mode": value["authEmailMode"]
3580
3589
  };
3581
3590
  }
3582
3591
 
@@ -11255,6 +11264,7 @@ function instanceOfPasswordPolicy(value) {
11255
11264
  if (!("requireNumbers" in value) || value["requireNumbers"] === void 0) return false;
11256
11265
  if (!("requireSpecial" in value) || value["requireSpecial"] === void 0) return false;
11257
11266
  if (!("disallowCommon" in value) || value["disallowCommon"] === void 0) return false;
11267
+ if (!("disallowBreached" in value) || value["disallowBreached"] === void 0) return false;
11258
11268
  return true;
11259
11269
  }
11260
11270
  function PasswordPolicyFromJSON(json) {
@@ -11271,7 +11281,8 @@ function PasswordPolicyFromJSONTyped(json, ignoreDiscriminator) {
11271
11281
  "requireLowercase": json["require_lowercase"],
11272
11282
  "requireNumbers": json["require_numbers"],
11273
11283
  "requireSpecial": json["require_special"],
11274
- "disallowCommon": json["disallow_common"]
11284
+ "disallowCommon": json["disallow_common"],
11285
+ "disallowBreached": json["disallow_breached"]
11275
11286
  };
11276
11287
  }
11277
11288
  function PasswordPolicyToJSON(json) {
@@ -11288,7 +11299,8 @@ function PasswordPolicyToJSONTyped(value, ignoreDiscriminator = false) {
11288
11299
  "require_lowercase": value["requireLowercase"],
11289
11300
  "require_numbers": value["requireNumbers"],
11290
11301
  "require_special": value["requireSpecial"],
11291
- "disallow_common": value["disallowCommon"]
11302
+ "disallow_common": value["disallowCommon"],
11303
+ "disallow_breached": value["disallowBreached"]
11292
11304
  };
11293
11305
  }
11294
11306
 
@@ -11361,6 +11373,8 @@ var PasswordStrengthLabelEnum = {
11361
11373
  };
11362
11374
  function instanceOfPasswordStrength(value) {
11363
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;
11364
11378
  if (!("score" in value) || value["score"] === void 0) return false;
11365
11379
  if (!("label" in value) || value["label"] === void 0) return false;
11366
11380
  if (!("feedback" in value) || value["feedback"] === void 0) return false;
@@ -11375,6 +11389,8 @@ function PasswordStrengthFromJSONTyped(json, ignoreDiscriminator) {
11375
11389
  }
11376
11390
  return {
11377
11391
  "valid": json["valid"],
11392
+ "breached": json["breached"],
11393
+ "breachCount": json["breach_count"],
11378
11394
  "score": json["score"],
11379
11395
  "label": json["label"],
11380
11396
  "feedback": json["feedback"]
@@ -11389,6 +11405,8 @@ function PasswordStrengthToJSONTyped(value, ignoreDiscriminator = false) {
11389
11405
  }
11390
11406
  return {
11391
11407
  "valid": value["valid"],
11408
+ "breached": value["breached"],
11409
+ "breach_count": value["breachCount"],
11392
11410
  "score": value["score"],
11393
11411
  "label": value["label"],
11394
11412
  "feedback": value["feedback"]
@@ -14793,8 +14811,11 @@ function SetPreferencesRequestToJSONTyped(value, ignoreDiscriminator = false) {
14793
14811
  }
14794
14812
 
14795
14813
  // src/src/models/SetSelfApplicationTestRecipientsRequest.ts
14814
+ var SetSelfApplicationTestRecipientsRequestAuthEmailModeEnum = {
14815
+ ALLOWLIST: "allowlist",
14816
+ UNRESTRICTED: "unrestricted"
14817
+ };
14796
14818
  function instanceOfSetSelfApplicationTestRecipientsRequest(value) {
14797
- if (!("testRecipients" in value) || value["testRecipients"] === void 0) return false;
14798
14819
  return true;
14799
14820
  }
14800
14821
  function SetSelfApplicationTestRecipientsRequestFromJSON(json) {
@@ -14805,7 +14826,8 @@ function SetSelfApplicationTestRecipientsRequestFromJSONTyped(json, ignoreDiscri
14805
14826
  return json;
14806
14827
  }
14807
14828
  return {
14808
- "testRecipients": json["test_recipients"]
14829
+ "testRecipients": json["test_recipients"] == null ? void 0 : json["test_recipients"],
14830
+ "authEmailMode": json["auth_email_mode"] == null ? void 0 : json["auth_email_mode"]
14809
14831
  };
14810
14832
  }
14811
14833
  function SetSelfApplicationTestRecipientsRequestToJSON(json) {
@@ -14816,7 +14838,8 @@ function SetSelfApplicationTestRecipientsRequestToJSONTyped(value, ignoreDiscrim
14816
14838
  return value;
14817
14839
  }
14818
14840
  return {
14819
- "test_recipients": value["testRecipients"]
14841
+ "test_recipients": value["testRecipients"],
14842
+ "auth_email_mode": value["authEmailMode"]
14820
14843
  };
14821
14844
  }
14822
14845
 
@@ -29292,6 +29315,7 @@ var SDK_VERSION = "0.1.0";
29292
29315
  ApiErrorMetaToJSONTyped,
29293
29316
  ApiErrorToJSON,
29294
29317
  ApiErrorToJSONTyped,
29318
+ ApplicationSelfAuthEmailModeEnum,
29295
29319
  ApplicationSelfEnvironmentEnum,
29296
29320
  ApplicationSelfFromJSON,
29297
29321
  ApplicationSelfFromJSONTyped,
@@ -30668,6 +30692,7 @@ var SDK_VERSION = "0.1.0";
30668
30692
  SetPreferencesRequestPreferencesInnerToJSONTyped,
30669
30693
  SetPreferencesRequestToJSON,
30670
30694
  SetPreferencesRequestToJSONTyped,
30695
+ SetSelfApplicationTestRecipientsRequestAuthEmailModeEnum,
30671
30696
  SetSelfApplicationTestRecipientsRequestFromJSON,
30672
30697
  SetSelfApplicationTestRecipientsRequestFromJSONTyped,
30673
30698
  SetSelfApplicationTestRecipientsRequestToJSON,