@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.js CHANGED
@@ -860,12 +860,17 @@ var ApplicationSelfSigningAlgorithmEnum = {
860
860
  RS256: "RS256",
861
861
  ES256: "ES256"
862
862
  };
863
+ var ApplicationSelfAuthEmailModeEnum = {
864
+ ALLOWLIST: "allowlist",
865
+ UNRESTRICTED: "unrestricted"
866
+ };
863
867
  function instanceOfApplicationSelf(value) {
864
868
  if (!("id" in value) || value["id"] === void 0) return false;
865
869
  if (!("name" in value) || value["name"] === void 0) return false;
866
870
  if (!("environment" in value) || value["environment"] === void 0) return false;
867
871
  if (!("signingAlgorithm" in value) || value["signingAlgorithm"] === void 0) return false;
868
872
  if (!("testRecipients" in value) || value["testRecipients"] === void 0) return false;
873
+ if (!("authEmailMode" in value) || value["authEmailMode"] === void 0) return false;
869
874
  return true;
870
875
  }
871
876
  function ApplicationSelfFromJSON(json) {
@@ -880,7 +885,8 @@ function ApplicationSelfFromJSONTyped(json, ignoreDiscriminator) {
880
885
  "name": json["name"],
881
886
  "environment": json["environment"],
882
887
  "signingAlgorithm": json["signing_algorithm"],
883
- "testRecipients": json["test_recipients"]
888
+ "testRecipients": json["test_recipients"],
889
+ "authEmailMode": json["auth_email_mode"]
884
890
  };
885
891
  }
886
892
  function ApplicationSelfToJSON(json) {
@@ -895,7 +901,8 @@ function ApplicationSelfToJSONTyped(value, ignoreDiscriminator = false) {
895
901
  "name": value["name"],
896
902
  "environment": value["environment"],
897
903
  "signing_algorithm": value["signingAlgorithm"],
898
- "test_recipients": value["testRecipients"]
904
+ "test_recipients": value["testRecipients"],
905
+ "auth_email_mode": value["authEmailMode"]
899
906
  };
900
907
  }
901
908
 
@@ -8574,6 +8581,7 @@ function instanceOfPasswordPolicy(value) {
8574
8581
  if (!("requireNumbers" in value) || value["requireNumbers"] === void 0) return false;
8575
8582
  if (!("requireSpecial" in value) || value["requireSpecial"] === void 0) return false;
8576
8583
  if (!("disallowCommon" in value) || value["disallowCommon"] === void 0) return false;
8584
+ if (!("disallowBreached" in value) || value["disallowBreached"] === void 0) return false;
8577
8585
  return true;
8578
8586
  }
8579
8587
  function PasswordPolicyFromJSON(json) {
@@ -8590,7 +8598,8 @@ function PasswordPolicyFromJSONTyped(json, ignoreDiscriminator) {
8590
8598
  "requireLowercase": json["require_lowercase"],
8591
8599
  "requireNumbers": json["require_numbers"],
8592
8600
  "requireSpecial": json["require_special"],
8593
- "disallowCommon": json["disallow_common"]
8601
+ "disallowCommon": json["disallow_common"],
8602
+ "disallowBreached": json["disallow_breached"]
8594
8603
  };
8595
8604
  }
8596
8605
  function PasswordPolicyToJSON(json) {
@@ -8607,7 +8616,8 @@ function PasswordPolicyToJSONTyped(value, ignoreDiscriminator = false) {
8607
8616
  "require_lowercase": value["requireLowercase"],
8608
8617
  "require_numbers": value["requireNumbers"],
8609
8618
  "require_special": value["requireSpecial"],
8610
- "disallow_common": value["disallowCommon"]
8619
+ "disallow_common": value["disallowCommon"],
8620
+ "disallow_breached": value["disallowBreached"]
8611
8621
  };
8612
8622
  }
8613
8623
 
@@ -8680,6 +8690,8 @@ var PasswordStrengthLabelEnum = {
8680
8690
  };
8681
8691
  function instanceOfPasswordStrength(value) {
8682
8692
  if (!("valid" in value) || value["valid"] === void 0) return false;
8693
+ if (!("breached" in value) || value["breached"] === void 0) return false;
8694
+ if (!("breachCount" in value) || value["breachCount"] === void 0) return false;
8683
8695
  if (!("score" in value) || value["score"] === void 0) return false;
8684
8696
  if (!("label" in value) || value["label"] === void 0) return false;
8685
8697
  if (!("feedback" in value) || value["feedback"] === void 0) return false;
@@ -8694,6 +8706,8 @@ function PasswordStrengthFromJSONTyped(json, ignoreDiscriminator) {
8694
8706
  }
8695
8707
  return {
8696
8708
  "valid": json["valid"],
8709
+ "breached": json["breached"],
8710
+ "breachCount": json["breach_count"],
8697
8711
  "score": json["score"],
8698
8712
  "label": json["label"],
8699
8713
  "feedback": json["feedback"]
@@ -8708,6 +8722,8 @@ function PasswordStrengthToJSONTyped(value, ignoreDiscriminator = false) {
8708
8722
  }
8709
8723
  return {
8710
8724
  "valid": value["valid"],
8725
+ "breached": value["breached"],
8726
+ "breach_count": value["breachCount"],
8711
8727
  "score": value["score"],
8712
8728
  "label": value["label"],
8713
8729
  "feedback": value["feedback"]
@@ -12112,8 +12128,11 @@ function SetPreferencesRequestToJSONTyped(value, ignoreDiscriminator = false) {
12112
12128
  }
12113
12129
 
12114
12130
  // src/src/models/SetSelfApplicationTestRecipientsRequest.ts
12131
+ var SetSelfApplicationTestRecipientsRequestAuthEmailModeEnum = {
12132
+ ALLOWLIST: "allowlist",
12133
+ UNRESTRICTED: "unrestricted"
12134
+ };
12115
12135
  function instanceOfSetSelfApplicationTestRecipientsRequest(value) {
12116
- if (!("testRecipients" in value) || value["testRecipients"] === void 0) return false;
12117
12136
  return true;
12118
12137
  }
12119
12138
  function SetSelfApplicationTestRecipientsRequestFromJSON(json) {
@@ -12124,7 +12143,8 @@ function SetSelfApplicationTestRecipientsRequestFromJSONTyped(json, ignoreDiscri
12124
12143
  return json;
12125
12144
  }
12126
12145
  return {
12127
- "testRecipients": json["test_recipients"]
12146
+ "testRecipients": json["test_recipients"] == null ? void 0 : json["test_recipients"],
12147
+ "authEmailMode": json["auth_email_mode"] == null ? void 0 : json["auth_email_mode"]
12128
12148
  };
12129
12149
  }
12130
12150
  function SetSelfApplicationTestRecipientsRequestToJSON(json) {
@@ -12135,7 +12155,8 @@ function SetSelfApplicationTestRecipientsRequestToJSONTyped(value, ignoreDiscrim
12135
12155
  return value;
12136
12156
  }
12137
12157
  return {
12138
- "test_recipients": value["testRecipients"]
12158
+ "test_recipients": value["testRecipients"],
12159
+ "auth_email_mode": value["authEmailMode"]
12139
12160
  };
12140
12161
  }
12141
12162
 
@@ -26610,6 +26631,7 @@ export {
26610
26631
  ApiErrorMetaToJSONTyped,
26611
26632
  ApiErrorToJSON,
26612
26633
  ApiErrorToJSONTyped,
26634
+ ApplicationSelfAuthEmailModeEnum,
26613
26635
  ApplicationSelfEnvironmentEnum,
26614
26636
  ApplicationSelfFromJSON,
26615
26637
  ApplicationSelfFromJSONTyped,
@@ -27986,6 +28008,7 @@ export {
27986
28008
  SetPreferencesRequestPreferencesInnerToJSONTyped,
27987
28009
  SetPreferencesRequestToJSON,
27988
28010
  SetPreferencesRequestToJSONTyped,
28011
+ SetSelfApplicationTestRecipientsRequestAuthEmailModeEnum,
27989
28012
  SetSelfApplicationTestRecipientsRequestFromJSON,
27990
28013
  SetSelfApplicationTestRecipientsRequestFromJSONTyped,
27991
28014
  SetSelfApplicationTestRecipientsRequestToJSON,