dymo-api 1.2.14 → 1.2.16

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.
@@ -76,7 +76,7 @@ class DymoAPI {
76
76
  headers: {
77
77
  "User-Agent": "DymoAPISDK/1.0.0",
78
78
  "X-Dymo-SDK-Env": "Node",
79
- "X-Dymo-SDK-Version": "1.2.14"
79
+ "X-Dymo-SDK-Version": "1.2.16"
80
80
  }
81
81
  });
82
82
  // We set the authorization in the Axios client to make requests.
@@ -38,7 +38,7 @@ class DymoAPI {
38
38
  headers: {
39
39
  "User-Agent": "DymoAPISDK/1.0.0",
40
40
  "X-Dymo-SDK-Env": "Node",
41
- "X-Dymo-SDK-Version": "1.2.14"
41
+ "X-Dymo-SDK-Version": "1.2.16"
42
42
  }
43
43
  });
44
44
  // We set the authorization in the Axios client to make requests.
@@ -219,4 +219,4 @@ declare class DymoAPI {
219
219
  isValidPwd(data: Interfaces.IsValidPwdData): Promise<Interfaces.PasswordValidationResult>;
220
220
  }
221
221
  export default DymoAPI;
222
- export type { EmailValidatorRules, WafRules, NegativeEmailRules, SensitiveInfoRules } from "./lib/types/interfaces";
222
+ export type { EmailValidatorRules, WafRules, NegativeEmailRules, SensitiveInfoRules, DataEmailValidationAnalysis } from "./lib/types/interfaces";
@@ -1,6 +1,6 @@
1
1
  import { MxRecord } from "dns";
2
2
  import { Email, Phone, CreditCard } from "./primitives";
3
- export type VerifyPlugins = "blocklist" | "compromiseDetector" | "mxRecords" | "nsfw" | "reputation" | "riskScore" | "torNetwork" | "typosquatting" | "urlShortener";
3
+ export type VerifyPlugins = "blocklist" | "gravatar" | "compromiseDetector" | "mxRecords" | "nsfw" | "reputation" | "riskScore" | "torNetwork" | "typosquatting" | "urlShortener";
4
4
  export type ReputationPlugin = "low" | "medium" | "high" | "very-high" | "education" | "governmental" | "unknown";
5
5
  export type TyposquattingPlugin = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
6
6
  export interface Validator {
@@ -61,9 +61,9 @@ export type EmailValidator = Email;
61
61
  *
62
62
  * @description
63
63
  * Values indicating why an email is considered negative.
64
- * ⚠️ NO_MX_RECORDS, PROXIED_EMAIL, FREE_SUBDOMAIN, CORPORATE, and HIGH_RISK_SCORE are premium features.
64
+ * ⚠️ NO_MX_RECORDS, PROXIED_EMAIL, FREE_SUBDOMAIN, CORPORATE, NO_GRAVATAR, and HIGH_RISK_SCORE are premium features.
65
65
  */
66
- export type NegativeEmailRules = "FRAUD" | "INVALID" | "NO_MX_RECORDS" | "PROXIED_EMAIL" | "FREE_SUBDOMAIN" | "PERSONAL_EMAIL" | "CORPORATE_EMAIL" | "NO_REPLY_EMAIL" | "ROLE_ACCOUNT" | "NO_REACHABLE" | "HIGH_RISK_SCORE";
66
+ export type NegativeEmailRules = "FRAUD" | "INVALID" | "NO_MX_RECORDS" | "PROXIED_EMAIL" | "FREE_SUBDOMAIN" | "PERSONAL_EMAIL" | "CORPORATE_EMAIL" | "NO_REPLY_EMAIL" | "ROLE_ACCOUNT" | "NO_GRAVATAR" | "NO_REACHABLE" | "HIGH_RISK_SCORE";
67
67
  export type NegativeSensitiveInfoRules = "EMAIL" | "PHONE" | "CREDIT_CARD" | "URL" | "DOMAIN" | "IP" | "WALLET" | "USER_AGENT";
68
68
  /**
69
69
  * Response returned by the email validator.
@@ -92,7 +92,7 @@ export type SensitiveInfoResponse = {
92
92
  /**
93
93
  * Detailed analysis of an email validation.
94
94
  */
95
- interface DataEmailValidationAnalysis {
95
+ export interface DataEmailValidationAnalysis {
96
96
  /** Whether the email is valid. */
97
97
  valid: boolean;
98
98
  /** Whether the email is flagged as fraudulent. */
@@ -121,6 +121,8 @@ interface DataEmailValidationAnalysis {
121
121
  plugins: {
122
122
  /** Whether the email is blocked by a blocklist. */
123
123
  blocklist?: boolean;
124
+ /** Gravatar URL for the email. */
125
+ gravatarUrl?: string;
124
126
  /** Whether the email is flagged as a compromise. */
125
127
  compromiseDetector?: boolean;
126
128
  /** MX records for the email domain. */
@@ -419,4 +421,3 @@ export interface DataValidationAnalysis {
419
421
  };
420
422
  };
421
423
  }
422
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dymo-api",
3
- "version": "1.2.14",
3
+ "version": "1.2.16",
4
4
  "description": "Flow system for Dymo API.",
5
5
  "main": "dist/cjs/dymo-api.js",
6
6
  "module": "dist/esm/dymo-api.js",