@signaliz/sdk 1.0.24 → 1.0.26
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 -1
- package/dist/{chunk-GWTSOG6D.mjs → chunk-XRSWZ62S.mjs} +11 -6
- package/dist/index.d.mts +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.js +11 -6
- package/dist/index.mjs +1 -1
- package/dist/mcp-config.js +11 -6
- package/dist/mcp-config.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,7 +27,10 @@ const found = await signaliz.findEmail({
|
|
|
27
27
|
skipCache: true,
|
|
28
28
|
});
|
|
29
29
|
|
|
30
|
-
const verified = await signaliz.verifyEmail(found.email
|
|
30
|
+
const verified = await signaliz.verifyEmail(found.email!, {
|
|
31
|
+
// Optional: bypass cached verification proof for a fresh-provider check.
|
|
32
|
+
skipCache: true,
|
|
33
|
+
});
|
|
31
34
|
|
|
32
35
|
const signals = await signaliz.enrichCompanySignals({
|
|
33
36
|
companyDomain: 'example.com',
|
|
@@ -364,15 +364,17 @@ var Signaliz = class {
|
|
|
364
364
|
}));
|
|
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
|
+
const verificationStatus = data.verification_status ?? data.status ?? "unknown";
|
|
368
|
+
const verified = data.email_verified === true || data.verified_for_sending === true || ["valid", "deliverable"].includes(String(verificationStatus).toLowerCase());
|
|
367
369
|
return {
|
|
368
370
|
success: data.success !== false && found,
|
|
369
371
|
found,
|
|
370
372
|
email,
|
|
371
373
|
firstName: data.first_name,
|
|
372
374
|
lastName: data.last_name,
|
|
373
|
-
confidence: data.confidence ?? data.confidence_score ?? 0,
|
|
374
|
-
verificationStatus
|
|
375
|
-
providerUsed: data.provider_used ?? data.provider ?? data.source ?? "unknown",
|
|
375
|
+
confidence: data.confidence ?? data.confidence_score ?? (verified ? 1 : 0),
|
|
376
|
+
verificationStatus,
|
|
377
|
+
providerUsed: data.provider_used ?? data.provider ?? data.email_source ?? data.source ?? "unknown",
|
|
376
378
|
error: found ? void 0 : data.error ?? "No verified email found",
|
|
377
379
|
errorCode: found ? void 0 : data.error_code ?? "EMAIL_NOT_FOUND",
|
|
378
380
|
raw: data
|
|
@@ -381,8 +383,11 @@ var Signaliz = class {
|
|
|
381
383
|
async findEmails(params, options) {
|
|
382
384
|
return runBatch(params, (item) => this.findEmail(item), options);
|
|
383
385
|
}
|
|
384
|
-
async verifyEmail(email) {
|
|
385
|
-
const data = await this.client.post("api/v1/verify-email", {
|
|
386
|
+
async verifyEmail(email, options) {
|
|
387
|
+
const data = await this.client.post("api/v1/verify-email", {
|
|
388
|
+
email,
|
|
389
|
+
skip_cache: options?.skipCache
|
|
390
|
+
});
|
|
386
391
|
const verificationStatus = String(data.verification_status ?? "").toLowerCase();
|
|
387
392
|
const verified = data.email_verified === true || ["valid", "deliverable"].includes(verificationStatus);
|
|
388
393
|
return {
|
|
@@ -397,7 +402,7 @@ var Signaliz = class {
|
|
|
397
402
|
};
|
|
398
403
|
}
|
|
399
404
|
async verifyEmails(emails, options) {
|
|
400
|
-
return runBatch(emails, (email) => this.verifyEmail(email), options);
|
|
405
|
+
return runBatch(emails, (email) => this.verifyEmail(email, { skipCache: options?.skipCache }), options);
|
|
401
406
|
}
|
|
402
407
|
async enrichCompanySignals(params) {
|
|
403
408
|
const online = params.online ?? true;
|
package/dist/index.d.mts
CHANGED
|
@@ -64,6 +64,12 @@ interface VerifyEmailResult {
|
|
|
64
64
|
verificationSource?: string;
|
|
65
65
|
raw: Record<string, unknown>;
|
|
66
66
|
}
|
|
67
|
+
interface VerifyEmailOptions {
|
|
68
|
+
/** Bypass cached verification data for a fresh-provider quality check. */
|
|
69
|
+
skipCache?: boolean;
|
|
70
|
+
}
|
|
71
|
+
interface VerifyEmailBatchOptions extends BatchOptions, VerifyEmailOptions {
|
|
72
|
+
}
|
|
67
73
|
interface CompanySignalEnrichmentParams {
|
|
68
74
|
/** Resume an existing enrichment without creating another provider run. */
|
|
69
75
|
signalRunId?: string;
|
|
@@ -173,8 +179,8 @@ declare class Signaliz {
|
|
|
173
179
|
constructor(config: SignalizConfig);
|
|
174
180
|
findEmail(params: FindEmailParams): Promise<FindEmailResult>;
|
|
175
181
|
findEmails(params: FindEmailParams[], options?: BatchOptions): Promise<BatchResult<FindEmailResult>>;
|
|
176
|
-
verifyEmail(email: string): Promise<VerifyEmailResult>;
|
|
177
|
-
verifyEmails(emails: string[], options?:
|
|
182
|
+
verifyEmail(email: string, options?: VerifyEmailOptions): Promise<VerifyEmailResult>;
|
|
183
|
+
verifyEmails(emails: string[], options?: VerifyEmailBatchOptions): Promise<BatchResult<VerifyEmailResult>>;
|
|
178
184
|
enrichCompanySignals(params: CompanySignalEnrichmentParams): Promise<CompanySignalEnrichmentResult>;
|
|
179
185
|
enrichCompanies(companies: CompanySignalEnrichmentParams[], options?: BatchOptions): Promise<BatchResult<CompanySignalEnrichmentResult>>;
|
|
180
186
|
signalToCopy(params: SignalToCopyParams): Promise<SignalToCopyResult>;
|
|
@@ -183,4 +189,4 @@ declare class Signaliz {
|
|
|
183
189
|
health(): Promise<PlatformHealth>;
|
|
184
190
|
}
|
|
185
191
|
|
|
186
|
-
export { type BatchItemResult, type BatchOptions, type BatchResult, type CompanySignal, type CompanySignalEnrichmentParams, type CompanySignalEnrichmentResult, type ErrorType, type FindEmailParams, type FindEmailResult, type MCPToolInfo, type PlatformHealth, type SignalToCopyParams, type SignalToCopyResult, type SignalToCopyVariation, Signaliz, type SignalizConfig, SignalizError, type SignalizErrorData, type VerifyEmailResult };
|
|
192
|
+
export { type BatchItemResult, type BatchOptions, type BatchResult, type CompanySignal, type CompanySignalEnrichmentParams, type CompanySignalEnrichmentResult, type ErrorType, type FindEmailParams, type FindEmailResult, type MCPToolInfo, type PlatformHealth, type SignalToCopyParams, type SignalToCopyResult, type SignalToCopyVariation, Signaliz, type SignalizConfig, SignalizError, type SignalizErrorData, type VerifyEmailBatchOptions, type VerifyEmailOptions, type VerifyEmailResult };
|
package/dist/index.d.ts
CHANGED
|
@@ -64,6 +64,12 @@ interface VerifyEmailResult {
|
|
|
64
64
|
verificationSource?: string;
|
|
65
65
|
raw: Record<string, unknown>;
|
|
66
66
|
}
|
|
67
|
+
interface VerifyEmailOptions {
|
|
68
|
+
/** Bypass cached verification data for a fresh-provider quality check. */
|
|
69
|
+
skipCache?: boolean;
|
|
70
|
+
}
|
|
71
|
+
interface VerifyEmailBatchOptions extends BatchOptions, VerifyEmailOptions {
|
|
72
|
+
}
|
|
67
73
|
interface CompanySignalEnrichmentParams {
|
|
68
74
|
/** Resume an existing enrichment without creating another provider run. */
|
|
69
75
|
signalRunId?: string;
|
|
@@ -173,8 +179,8 @@ declare class Signaliz {
|
|
|
173
179
|
constructor(config: SignalizConfig);
|
|
174
180
|
findEmail(params: FindEmailParams): Promise<FindEmailResult>;
|
|
175
181
|
findEmails(params: FindEmailParams[], options?: BatchOptions): Promise<BatchResult<FindEmailResult>>;
|
|
176
|
-
verifyEmail(email: string): Promise<VerifyEmailResult>;
|
|
177
|
-
verifyEmails(emails: string[], options?:
|
|
182
|
+
verifyEmail(email: string, options?: VerifyEmailOptions): Promise<VerifyEmailResult>;
|
|
183
|
+
verifyEmails(emails: string[], options?: VerifyEmailBatchOptions): Promise<BatchResult<VerifyEmailResult>>;
|
|
178
184
|
enrichCompanySignals(params: CompanySignalEnrichmentParams): Promise<CompanySignalEnrichmentResult>;
|
|
179
185
|
enrichCompanies(companies: CompanySignalEnrichmentParams[], options?: BatchOptions): Promise<BatchResult<CompanySignalEnrichmentResult>>;
|
|
180
186
|
signalToCopy(params: SignalToCopyParams): Promise<SignalToCopyResult>;
|
|
@@ -183,4 +189,4 @@ declare class Signaliz {
|
|
|
183
189
|
health(): Promise<PlatformHealth>;
|
|
184
190
|
}
|
|
185
191
|
|
|
186
|
-
export { type BatchItemResult, type BatchOptions, type BatchResult, type CompanySignal, type CompanySignalEnrichmentParams, type CompanySignalEnrichmentResult, type ErrorType, type FindEmailParams, type FindEmailResult, type MCPToolInfo, type PlatformHealth, type SignalToCopyParams, type SignalToCopyResult, type SignalToCopyVariation, Signaliz, type SignalizConfig, SignalizError, type SignalizErrorData, type VerifyEmailResult };
|
|
192
|
+
export { type BatchItemResult, type BatchOptions, type BatchResult, type CompanySignal, type CompanySignalEnrichmentParams, type CompanySignalEnrichmentResult, type ErrorType, type FindEmailParams, type FindEmailResult, type MCPToolInfo, type PlatformHealth, type SignalToCopyParams, type SignalToCopyResult, type SignalToCopyVariation, Signaliz, type SignalizConfig, SignalizError, type SignalizErrorData, type VerifyEmailBatchOptions, type VerifyEmailOptions, type VerifyEmailResult };
|
package/dist/index.js
CHANGED
|
@@ -391,15 +391,17 @@ var Signaliz = class {
|
|
|
391
391
|
}));
|
|
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
|
+
const verificationStatus = data.verification_status ?? data.status ?? "unknown";
|
|
395
|
+
const verified = data.email_verified === true || data.verified_for_sending === true || ["valid", "deliverable"].includes(String(verificationStatus).toLowerCase());
|
|
394
396
|
return {
|
|
395
397
|
success: data.success !== false && found,
|
|
396
398
|
found,
|
|
397
399
|
email,
|
|
398
400
|
firstName: data.first_name,
|
|
399
401
|
lastName: data.last_name,
|
|
400
|
-
confidence: data.confidence ?? data.confidence_score ?? 0,
|
|
401
|
-
verificationStatus
|
|
402
|
-
providerUsed: data.provider_used ?? data.provider ?? data.source ?? "unknown",
|
|
402
|
+
confidence: data.confidence ?? data.confidence_score ?? (verified ? 1 : 0),
|
|
403
|
+
verificationStatus,
|
|
404
|
+
providerUsed: data.provider_used ?? data.provider ?? data.email_source ?? data.source ?? "unknown",
|
|
403
405
|
error: found ? void 0 : data.error ?? "No verified email found",
|
|
404
406
|
errorCode: found ? void 0 : data.error_code ?? "EMAIL_NOT_FOUND",
|
|
405
407
|
raw: data
|
|
@@ -408,8 +410,11 @@ var Signaliz = class {
|
|
|
408
410
|
async findEmails(params, options) {
|
|
409
411
|
return runBatch(params, (item) => this.findEmail(item), options);
|
|
410
412
|
}
|
|
411
|
-
async verifyEmail(email) {
|
|
412
|
-
const data = await this.client.post("api/v1/verify-email", {
|
|
413
|
+
async verifyEmail(email, options) {
|
|
414
|
+
const data = await this.client.post("api/v1/verify-email", {
|
|
415
|
+
email,
|
|
416
|
+
skip_cache: options?.skipCache
|
|
417
|
+
});
|
|
413
418
|
const verificationStatus = String(data.verification_status ?? "").toLowerCase();
|
|
414
419
|
const verified = data.email_verified === true || ["valid", "deliverable"].includes(verificationStatus);
|
|
415
420
|
return {
|
|
@@ -424,7 +429,7 @@ var Signaliz = class {
|
|
|
424
429
|
};
|
|
425
430
|
}
|
|
426
431
|
async verifyEmails(emails, options) {
|
|
427
|
-
return runBatch(emails, (email) => this.verifyEmail(email), options);
|
|
432
|
+
return runBatch(emails, (email) => this.verifyEmail(email, { skipCache: options?.skipCache }), options);
|
|
428
433
|
}
|
|
429
434
|
async enrichCompanySignals(params) {
|
|
430
435
|
const online = params.online ?? true;
|
package/dist/index.mjs
CHANGED
package/dist/mcp-config.js
CHANGED
|
@@ -395,15 +395,17 @@ var Signaliz = class {
|
|
|
395
395
|
}));
|
|
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
|
+
const verificationStatus = data.verification_status ?? data.status ?? "unknown";
|
|
399
|
+
const verified = data.email_verified === true || data.verified_for_sending === true || ["valid", "deliverable"].includes(String(verificationStatus).toLowerCase());
|
|
398
400
|
return {
|
|
399
401
|
success: data.success !== false && found,
|
|
400
402
|
found,
|
|
401
403
|
email,
|
|
402
404
|
firstName: data.first_name,
|
|
403
405
|
lastName: data.last_name,
|
|
404
|
-
confidence: data.confidence ?? data.confidence_score ?? 0,
|
|
405
|
-
verificationStatus
|
|
406
|
-
providerUsed: data.provider_used ?? data.provider ?? data.source ?? "unknown",
|
|
406
|
+
confidence: data.confidence ?? data.confidence_score ?? (verified ? 1 : 0),
|
|
407
|
+
verificationStatus,
|
|
408
|
+
providerUsed: data.provider_used ?? data.provider ?? data.email_source ?? data.source ?? "unknown",
|
|
407
409
|
error: found ? void 0 : data.error ?? "No verified email found",
|
|
408
410
|
errorCode: found ? void 0 : data.error_code ?? "EMAIL_NOT_FOUND",
|
|
409
411
|
raw: data
|
|
@@ -412,8 +414,11 @@ var Signaliz = class {
|
|
|
412
414
|
async findEmails(params, options) {
|
|
413
415
|
return runBatch(params, (item) => this.findEmail(item), options);
|
|
414
416
|
}
|
|
415
|
-
async verifyEmail(email) {
|
|
416
|
-
const data = await this.client.post("api/v1/verify-email", {
|
|
417
|
+
async verifyEmail(email, options) {
|
|
418
|
+
const data = await this.client.post("api/v1/verify-email", {
|
|
419
|
+
email,
|
|
420
|
+
skip_cache: options?.skipCache
|
|
421
|
+
});
|
|
417
422
|
const verificationStatus = String(data.verification_status ?? "").toLowerCase();
|
|
418
423
|
const verified = data.email_verified === true || ["valid", "deliverable"].includes(verificationStatus);
|
|
419
424
|
return {
|
|
@@ -428,7 +433,7 @@ var Signaliz = class {
|
|
|
428
433
|
};
|
|
429
434
|
}
|
|
430
435
|
async verifyEmails(emails, options) {
|
|
431
|
-
return runBatch(emails, (email) => this.verifyEmail(email), options);
|
|
436
|
+
return runBatch(emails, (email) => this.verifyEmail(email, { skipCache: options?.skipCache }), options);
|
|
432
437
|
}
|
|
433
438
|
async enrichCompanySignals(params) {
|
|
434
439
|
const online = params.online ?? true;
|
package/dist/mcp-config.mjs
CHANGED
package/package.json
CHANGED