@signaliz/sdk 1.0.59 → 1.0.60
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/README.md +4 -0
- package/dist/{chunk-VKBUQTDS.mjs → chunk-MFY4KSQ6.mjs} +23 -0
- package/dist/index.js +23 -0
- package/dist/index.mjs +1 -1
- package/dist/mcp-config.js +23 -0
- package/dist/mcp-config.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -44,6 +44,10 @@ const verified = await signaliz.verifyEmail(found.email!, {
|
|
|
44
44
|
skipCache: true,
|
|
45
45
|
});
|
|
46
46
|
|
|
47
|
+
// Syntax failures are terminal local results, with no HTTP or provider call.
|
|
48
|
+
const malformed = await signaliz.verifyEmail('badformat@@gmail..com');
|
|
49
|
+
console.log(malformed.success, malformed.isMalformed, malformed.verificationVerdict);
|
|
50
|
+
|
|
47
51
|
// The SDK waits for long checks by default. For an agent handoff, return early
|
|
48
52
|
// and resume the exact provider run later without duplicate spend.
|
|
49
53
|
const queuedVerification = await signaliz.verifyEmail('jane@example.com', {
|
|
@@ -408,6 +408,29 @@ var Signaliz = class {
|
|
|
408
408
|
);
|
|
409
409
|
}
|
|
410
410
|
async verifyEmail(email, options) {
|
|
411
|
+
const normalizedEmail = typeof email === "string" ? email.trim() : "";
|
|
412
|
+
if (options?.dryRun !== true && !options?.verificationRunId && normalizedEmail && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(normalizedEmail)) {
|
|
413
|
+
const error = `Invalid email format: "${normalizedEmail}"`;
|
|
414
|
+
return normalizeVerifyEmailResult(normalizedEmail, {
|
|
415
|
+
success: false,
|
|
416
|
+
email: normalizedEmail,
|
|
417
|
+
status: "completed",
|
|
418
|
+
is_valid: false,
|
|
419
|
+
is_deliverable: false,
|
|
420
|
+
email_verified: false,
|
|
421
|
+
verified_for_sending: false,
|
|
422
|
+
is_malformed: true,
|
|
423
|
+
verification_status: "malformed",
|
|
424
|
+
verification_verdict: "malformed",
|
|
425
|
+
verification_source: "input_validation",
|
|
426
|
+
provider_status: "rejected_before_provider",
|
|
427
|
+
error,
|
|
428
|
+
error_code: "INPUT_001",
|
|
429
|
+
retry_eligible: false,
|
|
430
|
+
credits_used: 0,
|
|
431
|
+
live_provider_called: false
|
|
432
|
+
});
|
|
433
|
+
}
|
|
411
434
|
const request = compact({
|
|
412
435
|
email: email || void 0,
|
|
413
436
|
verification_run_id: options?.verificationRunId,
|
package/dist/index.js
CHANGED
|
@@ -435,6 +435,29 @@ var Signaliz = class {
|
|
|
435
435
|
);
|
|
436
436
|
}
|
|
437
437
|
async verifyEmail(email, options) {
|
|
438
|
+
const normalizedEmail = typeof email === "string" ? email.trim() : "";
|
|
439
|
+
if (options?.dryRun !== true && !options?.verificationRunId && normalizedEmail && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(normalizedEmail)) {
|
|
440
|
+
const error = `Invalid email format: "${normalizedEmail}"`;
|
|
441
|
+
return normalizeVerifyEmailResult(normalizedEmail, {
|
|
442
|
+
success: false,
|
|
443
|
+
email: normalizedEmail,
|
|
444
|
+
status: "completed",
|
|
445
|
+
is_valid: false,
|
|
446
|
+
is_deliverable: false,
|
|
447
|
+
email_verified: false,
|
|
448
|
+
verified_for_sending: false,
|
|
449
|
+
is_malformed: true,
|
|
450
|
+
verification_status: "malformed",
|
|
451
|
+
verification_verdict: "malformed",
|
|
452
|
+
verification_source: "input_validation",
|
|
453
|
+
provider_status: "rejected_before_provider",
|
|
454
|
+
error,
|
|
455
|
+
error_code: "INPUT_001",
|
|
456
|
+
retry_eligible: false,
|
|
457
|
+
credits_used: 0,
|
|
458
|
+
live_provider_called: false
|
|
459
|
+
});
|
|
460
|
+
}
|
|
438
461
|
const request = compact({
|
|
439
462
|
email: email || void 0,
|
|
440
463
|
verification_run_id: options?.verificationRunId,
|
package/dist/index.mjs
CHANGED
package/dist/mcp-config.js
CHANGED
|
@@ -439,6 +439,29 @@ var Signaliz = class {
|
|
|
439
439
|
);
|
|
440
440
|
}
|
|
441
441
|
async verifyEmail(email, options) {
|
|
442
|
+
const normalizedEmail = typeof email === "string" ? email.trim() : "";
|
|
443
|
+
if (options?.dryRun !== true && !options?.verificationRunId && normalizedEmail && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(normalizedEmail)) {
|
|
444
|
+
const error = `Invalid email format: "${normalizedEmail}"`;
|
|
445
|
+
return normalizeVerifyEmailResult(normalizedEmail, {
|
|
446
|
+
success: false,
|
|
447
|
+
email: normalizedEmail,
|
|
448
|
+
status: "completed",
|
|
449
|
+
is_valid: false,
|
|
450
|
+
is_deliverable: false,
|
|
451
|
+
email_verified: false,
|
|
452
|
+
verified_for_sending: false,
|
|
453
|
+
is_malformed: true,
|
|
454
|
+
verification_status: "malformed",
|
|
455
|
+
verification_verdict: "malformed",
|
|
456
|
+
verification_source: "input_validation",
|
|
457
|
+
provider_status: "rejected_before_provider",
|
|
458
|
+
error,
|
|
459
|
+
error_code: "INPUT_001",
|
|
460
|
+
retry_eligible: false,
|
|
461
|
+
credits_used: 0,
|
|
462
|
+
live_provider_called: false
|
|
463
|
+
});
|
|
464
|
+
}
|
|
442
465
|
const request = compact({
|
|
443
466
|
email: email || void 0,
|
|
444
467
|
verification_run_id: options?.verificationRunId,
|
package/dist/mcp-config.mjs
CHANGED
package/package.json
CHANGED