@signaliz/sdk 1.0.24 → 1.0.25
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-EHNGI3N2.mjs} +6 -3
- package/dist/index.d.mts +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.js +6 -3
- package/dist/index.mjs +1 -1
- package/dist/mcp-config.js +6 -3
- 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',
|
|
@@ -381,8 +381,11 @@ var Signaliz = class {
|
|
|
381
381
|
async findEmails(params, options) {
|
|
382
382
|
return runBatch(params, (item) => this.findEmail(item), options);
|
|
383
383
|
}
|
|
384
|
-
async verifyEmail(email) {
|
|
385
|
-
const data = await this.client.post("api/v1/verify-email", {
|
|
384
|
+
async verifyEmail(email, options) {
|
|
385
|
+
const data = await this.client.post("api/v1/verify-email", {
|
|
386
|
+
email,
|
|
387
|
+
skip_cache: options?.skipCache
|
|
388
|
+
});
|
|
386
389
|
const verificationStatus = String(data.verification_status ?? "").toLowerCase();
|
|
387
390
|
const verified = data.email_verified === true || ["valid", "deliverable"].includes(verificationStatus);
|
|
388
391
|
return {
|
|
@@ -397,7 +400,7 @@ var Signaliz = class {
|
|
|
397
400
|
};
|
|
398
401
|
}
|
|
399
402
|
async verifyEmails(emails, options) {
|
|
400
|
-
return runBatch(emails, (email) => this.verifyEmail(email), options);
|
|
403
|
+
return runBatch(emails, (email) => this.verifyEmail(email, { skipCache: options?.skipCache }), options);
|
|
401
404
|
}
|
|
402
405
|
async enrichCompanySignals(params) {
|
|
403
406
|
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
|
@@ -408,8 +408,11 @@ var Signaliz = class {
|
|
|
408
408
|
async findEmails(params, options) {
|
|
409
409
|
return runBatch(params, (item) => this.findEmail(item), options);
|
|
410
410
|
}
|
|
411
|
-
async verifyEmail(email) {
|
|
412
|
-
const data = await this.client.post("api/v1/verify-email", {
|
|
411
|
+
async verifyEmail(email, options) {
|
|
412
|
+
const data = await this.client.post("api/v1/verify-email", {
|
|
413
|
+
email,
|
|
414
|
+
skip_cache: options?.skipCache
|
|
415
|
+
});
|
|
413
416
|
const verificationStatus = String(data.verification_status ?? "").toLowerCase();
|
|
414
417
|
const verified = data.email_verified === true || ["valid", "deliverable"].includes(verificationStatus);
|
|
415
418
|
return {
|
|
@@ -424,7 +427,7 @@ var Signaliz = class {
|
|
|
424
427
|
};
|
|
425
428
|
}
|
|
426
429
|
async verifyEmails(emails, options) {
|
|
427
|
-
return runBatch(emails, (email) => this.verifyEmail(email), options);
|
|
430
|
+
return runBatch(emails, (email) => this.verifyEmail(email, { skipCache: options?.skipCache }), options);
|
|
428
431
|
}
|
|
429
432
|
async enrichCompanySignals(params) {
|
|
430
433
|
const online = params.online ?? true;
|
package/dist/index.mjs
CHANGED
package/dist/mcp-config.js
CHANGED
|
@@ -412,8 +412,11 @@ var Signaliz = class {
|
|
|
412
412
|
async findEmails(params, options) {
|
|
413
413
|
return runBatch(params, (item) => this.findEmail(item), options);
|
|
414
414
|
}
|
|
415
|
-
async verifyEmail(email) {
|
|
416
|
-
const data = await this.client.post("api/v1/verify-email", {
|
|
415
|
+
async verifyEmail(email, options) {
|
|
416
|
+
const data = await this.client.post("api/v1/verify-email", {
|
|
417
|
+
email,
|
|
418
|
+
skip_cache: options?.skipCache
|
|
419
|
+
});
|
|
417
420
|
const verificationStatus = String(data.verification_status ?? "").toLowerCase();
|
|
418
421
|
const verified = data.email_verified === true || ["valid", "deliverable"].includes(verificationStatus);
|
|
419
422
|
return {
|
|
@@ -428,7 +431,7 @@ var Signaliz = class {
|
|
|
428
431
|
};
|
|
429
432
|
}
|
|
430
433
|
async verifyEmails(emails, options) {
|
|
431
|
-
return runBatch(emails, (email) => this.verifyEmail(email), options);
|
|
434
|
+
return runBatch(emails, (email) => this.verifyEmail(email, { skipCache: options?.skipCache }), options);
|
|
432
435
|
}
|
|
433
436
|
async enrichCompanySignals(params) {
|
|
434
437
|
const online = params.online ?? true;
|
package/dist/mcp-config.mjs
CHANGED
package/package.json
CHANGED