dymo-api 1.2.1 → 1.2.3
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/cjs/dymo-api.cjs
CHANGED
package/dist/esm/dymo-api.js
CHANGED
|
@@ -26,12 +26,21 @@ export type NegativeEmailRules = "FRAUD" | "INVALID" | "NO_MX_RECORDS" | "PROXIE
|
|
|
26
26
|
export interface EmailValidatorRules {
|
|
27
27
|
deny: NegativeEmailRules[];
|
|
28
28
|
}
|
|
29
|
+
export type NegativeSensitiveInfoRules = "EMAIL" | "PHONE" | "CREDIT_CARD" | "URL" | "DOMAIN" | "IP" | "WALLET" | "USER_AGENT";
|
|
30
|
+
export interface SensitiveInfoRules {
|
|
31
|
+
deny: NegativeSensitiveInfoRules[];
|
|
32
|
+
}
|
|
29
33
|
export type EmailValidatorResponse = {
|
|
30
34
|
email: string;
|
|
31
35
|
allow: boolean;
|
|
32
36
|
reasons: NegativeEmailRules[];
|
|
33
37
|
response: DataEmailValidationAnalysis;
|
|
34
38
|
};
|
|
39
|
+
export type SensitiveInfoResponse = {
|
|
40
|
+
input: string;
|
|
41
|
+
allow: boolean;
|
|
42
|
+
reasons: NegativeSensitiveInfoRules[];
|
|
43
|
+
};
|
|
35
44
|
interface DataEmailValidationAnalysis {
|
|
36
45
|
valid: boolean;
|
|
37
46
|
fraud: boolean;
|
|
@@ -48,6 +57,7 @@ interface DataEmailValidationAnalysis {
|
|
|
48
57
|
plugins: {
|
|
49
58
|
blocklist?: boolean;
|
|
50
59
|
compromiseDetector?: boolean;
|
|
60
|
+
mxRecords: MxRecord[];
|
|
51
61
|
nsfw?: boolean;
|
|
52
62
|
reputation?: TyposquattingPlugin;
|
|
53
63
|
riskScore?: number;
|
|
@@ -106,6 +116,7 @@ export interface DataValidationAnalysis {
|
|
|
106
116
|
plugins: {
|
|
107
117
|
blocklist?: boolean;
|
|
108
118
|
compromiseDetector?: boolean;
|
|
119
|
+
mxRecords: MxRecord[];
|
|
109
120
|
nsfw?: boolean;
|
|
110
121
|
reputation?: "low" | "medium" | "high" | "very-high" | "education" | "governmental" | "unknown";
|
|
111
122
|
riskScore?: number;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { NegativeEmailRules } from "./data-verifier";
|
|
1
|
+
import { NegativeEmailRules, NegativeSensitiveInfoRules } from "./data-verifier";
|
|
2
2
|
export interface Rules {
|
|
3
3
|
email: {
|
|
4
4
|
deny: NegativeEmailRules[];
|
|
5
5
|
};
|
|
6
|
+
sensitiveInfo: {
|
|
7
|
+
deny: NegativeSensitiveInfoRules[];
|
|
8
|
+
};
|
|
6
9
|
}
|