@signaliz/sdk 1.0.27 → 1.0.28
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/{chunk-TQZFKFPI.mjs → chunk-YQXKJ6FB.mjs} +13 -1
- package/dist/index.d.mts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +13 -1
- package/dist/index.mjs +1 -1
- package/dist/mcp-config.js +13 -1
- package/dist/mcp-config.mjs +1 -1
- package/package.json +1 -1
|
@@ -365,7 +365,12 @@ var Signaliz = class {
|
|
|
365
365
|
const email = typeof data.email === "string" && data.email.trim() ? data.email.trim() : null;
|
|
366
366
|
const found = Boolean(email) && data.found !== false;
|
|
367
367
|
const verificationStatus = data.verification_status ?? data.status ?? "unknown";
|
|
368
|
-
const
|
|
368
|
+
const rawFreshness = String(data.verification_freshness ?? "").toLowerCase();
|
|
369
|
+
const verificationFreshness = rawFreshness === "fresh" || rawFreshness === "stale" ? rawFreshness : "unknown";
|
|
370
|
+
const needsReverification = data.needs_reverification === true || verificationFreshness === "stale";
|
|
371
|
+
const explicitlyNotSendSafe = data.verified_for_sending === false || needsReverification;
|
|
372
|
+
const verified = !explicitlyNotSendSafe && (data.email_verified === true || data.verified_for_sending === true || ["valid", "deliverable"].includes(String(verificationStatus).toLowerCase()));
|
|
373
|
+
const verificationAgeDays = typeof data.verification_age_days === "number" && Number.isFinite(data.verification_age_days) ? data.verification_age_days : null;
|
|
369
374
|
return {
|
|
370
375
|
success: data.success !== false && found,
|
|
371
376
|
found,
|
|
@@ -374,6 +379,13 @@ var Signaliz = class {
|
|
|
374
379
|
lastName: data.last_name,
|
|
375
380
|
confidence: data.confidence ?? data.confidence_score ?? (verified ? 1 : 0),
|
|
376
381
|
verificationStatus,
|
|
382
|
+
isVerified: verified,
|
|
383
|
+
isVerifiedForSending: !needsReverification && data.verified_for_sending === true,
|
|
384
|
+
isCatchAll: data.email_is_catch_all === true || data.is_catch_all === true,
|
|
385
|
+
verificationFreshness,
|
|
386
|
+
verificationAgeDays,
|
|
387
|
+
verifiedAt: typeof data.verified_at === "string" ? data.verified_at : null,
|
|
388
|
+
needsReverification,
|
|
377
389
|
providerUsed: data.provider_used ?? data.provider ?? data.email_source ?? data.source ?? "unknown",
|
|
378
390
|
error: found ? void 0 : data.error ?? "No verified email found",
|
|
379
391
|
errorCode: found ? void 0 : data.error_code ?? "EMAIL_NOT_FOUND",
|
package/dist/index.d.mts
CHANGED
|
@@ -49,6 +49,13 @@ interface FindEmailResult {
|
|
|
49
49
|
lastName?: string;
|
|
50
50
|
confidence: number;
|
|
51
51
|
verificationStatus: string;
|
|
52
|
+
isVerified: boolean;
|
|
53
|
+
isVerifiedForSending: boolean;
|
|
54
|
+
isCatchAll: boolean;
|
|
55
|
+
verificationFreshness: 'fresh' | 'stale' | 'unknown';
|
|
56
|
+
verificationAgeDays: number | null;
|
|
57
|
+
verifiedAt: string | null;
|
|
58
|
+
needsReverification: boolean;
|
|
52
59
|
providerUsed: string;
|
|
53
60
|
error?: string;
|
|
54
61
|
errorCode?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -49,6 +49,13 @@ interface FindEmailResult {
|
|
|
49
49
|
lastName?: string;
|
|
50
50
|
confidence: number;
|
|
51
51
|
verificationStatus: string;
|
|
52
|
+
isVerified: boolean;
|
|
53
|
+
isVerifiedForSending: boolean;
|
|
54
|
+
isCatchAll: boolean;
|
|
55
|
+
verificationFreshness: 'fresh' | 'stale' | 'unknown';
|
|
56
|
+
verificationAgeDays: number | null;
|
|
57
|
+
verifiedAt: string | null;
|
|
58
|
+
needsReverification: boolean;
|
|
52
59
|
providerUsed: string;
|
|
53
60
|
error?: string;
|
|
54
61
|
errorCode?: string;
|
package/dist/index.js
CHANGED
|
@@ -392,7 +392,12 @@ var Signaliz = class {
|
|
|
392
392
|
const email = typeof data.email === "string" && data.email.trim() ? data.email.trim() : null;
|
|
393
393
|
const found = Boolean(email) && data.found !== false;
|
|
394
394
|
const verificationStatus = data.verification_status ?? data.status ?? "unknown";
|
|
395
|
-
const
|
|
395
|
+
const rawFreshness = String(data.verification_freshness ?? "").toLowerCase();
|
|
396
|
+
const verificationFreshness = rawFreshness === "fresh" || rawFreshness === "stale" ? rawFreshness : "unknown";
|
|
397
|
+
const needsReverification = data.needs_reverification === true || verificationFreshness === "stale";
|
|
398
|
+
const explicitlyNotSendSafe = data.verified_for_sending === false || needsReverification;
|
|
399
|
+
const verified = !explicitlyNotSendSafe && (data.email_verified === true || data.verified_for_sending === true || ["valid", "deliverable"].includes(String(verificationStatus).toLowerCase()));
|
|
400
|
+
const verificationAgeDays = typeof data.verification_age_days === "number" && Number.isFinite(data.verification_age_days) ? data.verification_age_days : null;
|
|
396
401
|
return {
|
|
397
402
|
success: data.success !== false && found,
|
|
398
403
|
found,
|
|
@@ -401,6 +406,13 @@ var Signaliz = class {
|
|
|
401
406
|
lastName: data.last_name,
|
|
402
407
|
confidence: data.confidence ?? data.confidence_score ?? (verified ? 1 : 0),
|
|
403
408
|
verificationStatus,
|
|
409
|
+
isVerified: verified,
|
|
410
|
+
isVerifiedForSending: !needsReverification && data.verified_for_sending === true,
|
|
411
|
+
isCatchAll: data.email_is_catch_all === true || data.is_catch_all === true,
|
|
412
|
+
verificationFreshness,
|
|
413
|
+
verificationAgeDays,
|
|
414
|
+
verifiedAt: typeof data.verified_at === "string" ? data.verified_at : null,
|
|
415
|
+
needsReverification,
|
|
404
416
|
providerUsed: data.provider_used ?? data.provider ?? data.email_source ?? data.source ?? "unknown",
|
|
405
417
|
error: found ? void 0 : data.error ?? "No verified email found",
|
|
406
418
|
errorCode: found ? void 0 : data.error_code ?? "EMAIL_NOT_FOUND",
|
package/dist/index.mjs
CHANGED
package/dist/mcp-config.js
CHANGED
|
@@ -396,7 +396,12 @@ var Signaliz = class {
|
|
|
396
396
|
const email = typeof data.email === "string" && data.email.trim() ? data.email.trim() : null;
|
|
397
397
|
const found = Boolean(email) && data.found !== false;
|
|
398
398
|
const verificationStatus = data.verification_status ?? data.status ?? "unknown";
|
|
399
|
-
const
|
|
399
|
+
const rawFreshness = String(data.verification_freshness ?? "").toLowerCase();
|
|
400
|
+
const verificationFreshness = rawFreshness === "fresh" || rawFreshness === "stale" ? rawFreshness : "unknown";
|
|
401
|
+
const needsReverification = data.needs_reverification === true || verificationFreshness === "stale";
|
|
402
|
+
const explicitlyNotSendSafe = data.verified_for_sending === false || needsReverification;
|
|
403
|
+
const verified = !explicitlyNotSendSafe && (data.email_verified === true || data.verified_for_sending === true || ["valid", "deliverable"].includes(String(verificationStatus).toLowerCase()));
|
|
404
|
+
const verificationAgeDays = typeof data.verification_age_days === "number" && Number.isFinite(data.verification_age_days) ? data.verification_age_days : null;
|
|
400
405
|
return {
|
|
401
406
|
success: data.success !== false && found,
|
|
402
407
|
found,
|
|
@@ -405,6 +410,13 @@ var Signaliz = class {
|
|
|
405
410
|
lastName: data.last_name,
|
|
406
411
|
confidence: data.confidence ?? data.confidence_score ?? (verified ? 1 : 0),
|
|
407
412
|
verificationStatus,
|
|
413
|
+
isVerified: verified,
|
|
414
|
+
isVerifiedForSending: !needsReverification && data.verified_for_sending === true,
|
|
415
|
+
isCatchAll: data.email_is_catch_all === true || data.is_catch_all === true,
|
|
416
|
+
verificationFreshness,
|
|
417
|
+
verificationAgeDays,
|
|
418
|
+
verifiedAt: typeof data.verified_at === "string" ? data.verified_at : null,
|
|
419
|
+
needsReverification,
|
|
408
420
|
providerUsed: data.provider_used ?? data.provider ?? data.email_source ?? data.source ?? "unknown",
|
|
409
421
|
error: found ? void 0 : data.error ?? "No verified email found",
|
|
410
422
|
errorCode: found ? void 0 : data.error_code ?? "EMAIL_NOT_FOUND",
|
package/dist/mcp-config.mjs
CHANGED
package/package.json
CHANGED