@signaliz/sdk 1.0.72 → 1.0.73

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 CHANGED
@@ -230,7 +230,7 @@ Single calls and synchronous batches of at most 25 may instead pass
230
230
  Durable batches of 26-5,000 reject these references rather than silently
231
231
  starting new research.
232
232
 
233
- Signals Everything is query-first rather than a row batch. It defaults to 100
233
+ Signals First is query-first rather than a row batch. It defaults to 100
234
234
  distinct companies and supports up to 1,000. Every returned signal row contains
235
235
  only a signal type, verified source URL, event date, company name, and domain.
236
236
  A request is a ceiling, not a promise: it can return fewer results
@@ -1924,6 +1924,16 @@ function normalizeFindEmailResult(data) {
1924
1924
  success: processing || !failed && found,
1925
1925
  found,
1926
1926
  email,
1927
+ checkedEmail: typeof data.checked_email === "string" ? data.checked_email : null,
1928
+ candidateSource: typeof data.candidate_source === "string" ? data.candidate_source : null,
1929
+ primaryVerifier: typeof data.primary_verifier === "string" ? data.primary_verifier : null,
1930
+ primaryVerdict: typeof data.primary_verdict === "string" ? data.primary_verdict : null,
1931
+ terminalVerifier: typeof data.terminal_verifier === "string" ? data.terminal_verifier : null,
1932
+ terminalVerdict: typeof data.terminal_verdict === "string" ? data.terminal_verdict : null,
1933
+ terminalResult: typeof data.terminal_result === "string" ? data.terminal_result : null,
1934
+ terminalIsCatchAll: typeof data.terminal_is_catch_all === "boolean" ? data.terminal_is_catch_all : null,
1935
+ terminalIsAcceptAll: typeof data.terminal_is_accept_all === "boolean" ? data.terminal_is_accept_all : null,
1936
+ bouncebanId: typeof data.bounceban_id === "string" ? data.bounceban_id : null,
1927
1937
  firstName: data.first_name,
1928
1938
  lastName: data.last_name,
1929
1939
  confidence: failed ? 0 : data.confidence ?? data.confidence_score ?? (verified ? 1 : 0),
@@ -1963,6 +1973,19 @@ function normalizeFindEmailResult(data) {
1963
1973
  function normalizeVerifyEmailResult(email, data) {
1964
1974
  data = publicProductData(data, "verify_email");
1965
1975
  const failed = coreProductResponseFailed(data);
1976
+ const publicIsCatchAll = data.is_catch_all === true || data.email_is_catch_all === true;
1977
+ const publicPrimaryResult = String(data.primary_verdict ?? "").toLowerCase();
1978
+ const publicTerminalResult = String(data.terminal_result ?? "").toLowerCase();
1979
+ const okToSend = !failed && (data.ok_to_send === true || publicPrimaryResult === "ok" || publicPrimaryResult === "catch_all" && publicTerminalResult === "deliverable");
1980
+ return {
1981
+ email: typeof data.email === "string" ? data.email : email || null,
1982
+ status: String(data.status || "").toLowerCase() === "processing" ? "processing" : "completed",
1983
+ isCatchAll: publicIsCatchAll,
1984
+ creditsCharged: Number.isFinite(Number(data.credits_charged)) ? Number(data.credits_charged) : 0,
1985
+ okToSend,
1986
+ ...data.verification_run_id || data.run_id ? { verificationRunId: data.verification_run_id ?? data.run_id } : {},
1987
+ ...data.next_poll_after_seconds !== void 0 ? { nextPollAfterSeconds: data.next_poll_after_seconds } : {}
1988
+ };
1966
1989
  const malformed = data.is_malformed === true || data.verification_verdict === "malformed" || data.verification_status === "malformed" || data.deliverability_status === "malformed";
1967
1990
  const verificationStatus = normalizeVerifyEmailStatus(
1968
1991
  failed ? malformed ? "malformed" : "error" : data.verification_status ?? data.verification_verdict ?? data.deliverability_status ?? "unknown"
@@ -1977,6 +2000,15 @@ function normalizeVerifyEmailResult(email, data) {
1977
2000
  error: failed ? coreProductErrorMessage(data) : void 0,
1978
2001
  errorCode: failed ? coreProductErrorCode(data) : void 0,
1979
2002
  email: data.email ?? email,
2003
+ checkedEmail: typeof data.checked_email === "string" ? data.checked_email : null,
2004
+ primaryVerifier: typeof data.primary_verifier === "string" ? data.primary_verifier : null,
2005
+ primaryVerdict: typeof data.primary_verdict === "string" ? data.primary_verdict : null,
2006
+ terminalVerifier: typeof data.terminal_verifier === "string" ? data.terminal_verifier : null,
2007
+ terminalVerdict: typeof data.terminal_verdict === "string" ? data.terminal_verdict : null,
2008
+ terminalResult: typeof data.terminal_result === "string" ? data.terminal_result : null,
2009
+ terminalIsCatchAll: typeof data.terminal_is_catch_all === "boolean" ? data.terminal_is_catch_all : null,
2010
+ terminalIsAcceptAll: typeof data.terminal_is_accept_all === "boolean" ? data.terminal_is_accept_all : null,
2011
+ bouncebanId: typeof data.bounceban_id === "string" ? data.bounceban_id : null,
1980
2012
  status: !failed && String(data.status || "").toLowerCase() === "processing" ? "processing" : "completed",
1981
2013
  verificationRunId,
1982
2014
  retryAfterMs: data.retry_after_ms,
@@ -2240,7 +2272,7 @@ function validateSignalDiscoveryParams(params) {
2240
2272
  const runId = typeof params.signalSearchRunId === "string" ? params.signalSearchRunId.trim() : "";
2241
2273
  const query = typeof params.query === "string" ? params.query.trim() : "";
2242
2274
  if (!runId && !query) {
2243
- throw new TypeError("Signals Everything requires query or signalSearchRunId");
2275
+ throw new TypeError("Signals First requires query or signalSearchRunId");
2244
2276
  }
2245
2277
  if (query && (query.length < 2 || query.length > 2e3)) {
2246
2278
  throw new RangeError("query must contain between 2 and 2000 characters");
package/dist/index.d.mts CHANGED
@@ -256,6 +256,17 @@ interface FindEmailResult {
256
256
  success: boolean;
257
257
  found: boolean;
258
258
  email: string | null;
259
+ /** The mailbox checked even when it was not safe to send. */
260
+ checkedEmail?: string | null;
261
+ candidateSource?: string | null;
262
+ primaryVerifier?: string | null;
263
+ primaryVerdict?: string | null;
264
+ terminalVerifier?: string | null;
265
+ terminalVerdict?: string | null;
266
+ terminalResult?: string | null;
267
+ terminalIsCatchAll?: boolean | null;
268
+ terminalIsAcceptAll?: boolean | null;
269
+ bouncebanId?: string | null;
259
270
  firstName?: string;
260
271
  lastName?: string;
261
272
  confidence: number;
@@ -300,45 +311,13 @@ interface FindEmailResult {
300
311
  type VerifyEmailStatus = 'valid' | 'invalid' | 'catch_all' | 'role' | 'disposable' | 'unknown' | 'verifier_error' | 'malformed' | 'error';
301
312
  type VerifyEmailRecommendation = 'send' | 'do_not_send' | 'manual_review';
302
313
  interface VerifyEmailResult {
303
- success: boolean;
304
- error?: string;
305
- errorCode?: string;
306
- email: string;
307
- /** Execution state. Processing results are never send-safe. */
314
+ email: string | null;
308
315
  status: 'processing' | 'completed';
309
- /** Durable Trigger run id for resuming a long verification. */
316
+ isCatchAll: boolean;
317
+ creditsCharged: number;
318
+ okToSend: boolean;
310
319
  verificationRunId?: string;
311
- retryAfterMs?: number;
312
320
  nextPollAfterSeconds?: number;
313
- isValid: boolean;
314
- isDeliverable: boolean;
315
- /** True when the address failed syntax validation before any provider call. */
316
- isMalformed: boolean;
317
- isCatchAll: boolean;
318
- /** Explicit send-safety verdict. Missing or false never becomes true by inference. */
319
- verifiedForSending: boolean;
320
- verificationStatus?: VerifyEmailStatus;
321
- deliverabilityStatus?: VerifyEmailStatus;
322
- verificationVerdict: VerifyEmailStatus;
323
- isRoleAccount?: boolean;
324
- quality?: string | null;
325
- recommendation?: VerifyEmailRecommendation;
326
- smtpStatus?: string;
327
- providerStatus?: string;
328
- failureReason?: string;
329
- confidenceScore: number;
330
- provider?: string;
331
- verificationSource?: string;
332
- /** ISO timestamp when the provider observed the winning verdict. */
333
- verificationObservedAt?: string;
334
- billingReplayed?: boolean;
335
- /** True when the public result came from a completed response-idempotency reservation. */
336
- idempotencyReplayed?: boolean;
337
- creditsUsed?: number;
338
- /** Canonical run ID alias returned alongside verificationRunId when available. */
339
- runId?: string;
340
- suggestedAction?: string;
341
- raw: Record<string, unknown>;
342
321
  }
343
322
  interface VerifyEmailOptions {
344
323
  /** Resume an existing long verification without another provider call. */
package/dist/index.d.ts CHANGED
@@ -256,6 +256,17 @@ interface FindEmailResult {
256
256
  success: boolean;
257
257
  found: boolean;
258
258
  email: string | null;
259
+ /** The mailbox checked even when it was not safe to send. */
260
+ checkedEmail?: string | null;
261
+ candidateSource?: string | null;
262
+ primaryVerifier?: string | null;
263
+ primaryVerdict?: string | null;
264
+ terminalVerifier?: string | null;
265
+ terminalVerdict?: string | null;
266
+ terminalResult?: string | null;
267
+ terminalIsCatchAll?: boolean | null;
268
+ terminalIsAcceptAll?: boolean | null;
269
+ bouncebanId?: string | null;
259
270
  firstName?: string;
260
271
  lastName?: string;
261
272
  confidence: number;
@@ -300,45 +311,13 @@ interface FindEmailResult {
300
311
  type VerifyEmailStatus = 'valid' | 'invalid' | 'catch_all' | 'role' | 'disposable' | 'unknown' | 'verifier_error' | 'malformed' | 'error';
301
312
  type VerifyEmailRecommendation = 'send' | 'do_not_send' | 'manual_review';
302
313
  interface VerifyEmailResult {
303
- success: boolean;
304
- error?: string;
305
- errorCode?: string;
306
- email: string;
307
- /** Execution state. Processing results are never send-safe. */
314
+ email: string | null;
308
315
  status: 'processing' | 'completed';
309
- /** Durable Trigger run id for resuming a long verification. */
316
+ isCatchAll: boolean;
317
+ creditsCharged: number;
318
+ okToSend: boolean;
310
319
  verificationRunId?: string;
311
- retryAfterMs?: number;
312
320
  nextPollAfterSeconds?: number;
313
- isValid: boolean;
314
- isDeliverable: boolean;
315
- /** True when the address failed syntax validation before any provider call. */
316
- isMalformed: boolean;
317
- isCatchAll: boolean;
318
- /** Explicit send-safety verdict. Missing or false never becomes true by inference. */
319
- verifiedForSending: boolean;
320
- verificationStatus?: VerifyEmailStatus;
321
- deliverabilityStatus?: VerifyEmailStatus;
322
- verificationVerdict: VerifyEmailStatus;
323
- isRoleAccount?: boolean;
324
- quality?: string | null;
325
- recommendation?: VerifyEmailRecommendation;
326
- smtpStatus?: string;
327
- providerStatus?: string;
328
- failureReason?: string;
329
- confidenceScore: number;
330
- provider?: string;
331
- verificationSource?: string;
332
- /** ISO timestamp when the provider observed the winning verdict. */
333
- verificationObservedAt?: string;
334
- billingReplayed?: boolean;
335
- /** True when the public result came from a completed response-idempotency reservation. */
336
- idempotencyReplayed?: boolean;
337
- creditsUsed?: number;
338
- /** Canonical run ID alias returned alongside verificationRunId when available. */
339
- runId?: string;
340
- suggestedAction?: string;
341
- raw: Record<string, unknown>;
342
321
  }
343
322
  interface VerifyEmailOptions {
344
323
  /** Resume an existing long verification without another provider call. */
package/dist/index.js CHANGED
@@ -1951,6 +1951,16 @@ function normalizeFindEmailResult(data) {
1951
1951
  success: processing || !failed && found,
1952
1952
  found,
1953
1953
  email,
1954
+ checkedEmail: typeof data.checked_email === "string" ? data.checked_email : null,
1955
+ candidateSource: typeof data.candidate_source === "string" ? data.candidate_source : null,
1956
+ primaryVerifier: typeof data.primary_verifier === "string" ? data.primary_verifier : null,
1957
+ primaryVerdict: typeof data.primary_verdict === "string" ? data.primary_verdict : null,
1958
+ terminalVerifier: typeof data.terminal_verifier === "string" ? data.terminal_verifier : null,
1959
+ terminalVerdict: typeof data.terminal_verdict === "string" ? data.terminal_verdict : null,
1960
+ terminalResult: typeof data.terminal_result === "string" ? data.terminal_result : null,
1961
+ terminalIsCatchAll: typeof data.terminal_is_catch_all === "boolean" ? data.terminal_is_catch_all : null,
1962
+ terminalIsAcceptAll: typeof data.terminal_is_accept_all === "boolean" ? data.terminal_is_accept_all : null,
1963
+ bouncebanId: typeof data.bounceban_id === "string" ? data.bounceban_id : null,
1954
1964
  firstName: data.first_name,
1955
1965
  lastName: data.last_name,
1956
1966
  confidence: failed ? 0 : data.confidence ?? data.confidence_score ?? (verified ? 1 : 0),
@@ -1990,6 +2000,19 @@ function normalizeFindEmailResult(data) {
1990
2000
  function normalizeVerifyEmailResult(email, data) {
1991
2001
  data = publicProductData(data, "verify_email");
1992
2002
  const failed = coreProductResponseFailed(data);
2003
+ const publicIsCatchAll = data.is_catch_all === true || data.email_is_catch_all === true;
2004
+ const publicPrimaryResult = String(data.primary_verdict ?? "").toLowerCase();
2005
+ const publicTerminalResult = String(data.terminal_result ?? "").toLowerCase();
2006
+ const okToSend = !failed && (data.ok_to_send === true || publicPrimaryResult === "ok" || publicPrimaryResult === "catch_all" && publicTerminalResult === "deliverable");
2007
+ return {
2008
+ email: typeof data.email === "string" ? data.email : email || null,
2009
+ status: String(data.status || "").toLowerCase() === "processing" ? "processing" : "completed",
2010
+ isCatchAll: publicIsCatchAll,
2011
+ creditsCharged: Number.isFinite(Number(data.credits_charged)) ? Number(data.credits_charged) : 0,
2012
+ okToSend,
2013
+ ...data.verification_run_id || data.run_id ? { verificationRunId: data.verification_run_id ?? data.run_id } : {},
2014
+ ...data.next_poll_after_seconds !== void 0 ? { nextPollAfterSeconds: data.next_poll_after_seconds } : {}
2015
+ };
1993
2016
  const malformed = data.is_malformed === true || data.verification_verdict === "malformed" || data.verification_status === "malformed" || data.deliverability_status === "malformed";
1994
2017
  const verificationStatus = normalizeVerifyEmailStatus(
1995
2018
  failed ? malformed ? "malformed" : "error" : data.verification_status ?? data.verification_verdict ?? data.deliverability_status ?? "unknown"
@@ -2004,6 +2027,15 @@ function normalizeVerifyEmailResult(email, data) {
2004
2027
  error: failed ? coreProductErrorMessage(data) : void 0,
2005
2028
  errorCode: failed ? coreProductErrorCode(data) : void 0,
2006
2029
  email: data.email ?? email,
2030
+ checkedEmail: typeof data.checked_email === "string" ? data.checked_email : null,
2031
+ primaryVerifier: typeof data.primary_verifier === "string" ? data.primary_verifier : null,
2032
+ primaryVerdict: typeof data.primary_verdict === "string" ? data.primary_verdict : null,
2033
+ terminalVerifier: typeof data.terminal_verifier === "string" ? data.terminal_verifier : null,
2034
+ terminalVerdict: typeof data.terminal_verdict === "string" ? data.terminal_verdict : null,
2035
+ terminalResult: typeof data.terminal_result === "string" ? data.terminal_result : null,
2036
+ terminalIsCatchAll: typeof data.terminal_is_catch_all === "boolean" ? data.terminal_is_catch_all : null,
2037
+ terminalIsAcceptAll: typeof data.terminal_is_accept_all === "boolean" ? data.terminal_is_accept_all : null,
2038
+ bouncebanId: typeof data.bounceban_id === "string" ? data.bounceban_id : null,
2007
2039
  status: !failed && String(data.status || "").toLowerCase() === "processing" ? "processing" : "completed",
2008
2040
  verificationRunId,
2009
2041
  retryAfterMs: data.retry_after_ms,
@@ -2267,7 +2299,7 @@ function validateSignalDiscoveryParams(params) {
2267
2299
  const runId = typeof params.signalSearchRunId === "string" ? params.signalSearchRunId.trim() : "";
2268
2300
  const query = typeof params.query === "string" ? params.query.trim() : "";
2269
2301
  if (!runId && !query) {
2270
- throw new TypeError("Signals Everything requires query or signalSearchRunId");
2302
+ throw new TypeError("Signals First requires query or signalSearchRunId");
2271
2303
  }
2272
2304
  if (query && (query.length < 2 || query.length > 2e3)) {
2273
2305
  throw new RangeError("query must contain between 2 and 2000 characters");
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Signaliz,
3
3
  SignalizError
4
- } from "./chunk-MFXKZU6K.mjs";
4
+ } from "./chunk-N4SFDZG7.mjs";
5
5
  export {
6
6
  Signaliz,
7
7
  SignalizError
@@ -1955,6 +1955,16 @@ function normalizeFindEmailResult(data) {
1955
1955
  success: processing || !failed && found,
1956
1956
  found,
1957
1957
  email,
1958
+ checkedEmail: typeof data.checked_email === "string" ? data.checked_email : null,
1959
+ candidateSource: typeof data.candidate_source === "string" ? data.candidate_source : null,
1960
+ primaryVerifier: typeof data.primary_verifier === "string" ? data.primary_verifier : null,
1961
+ primaryVerdict: typeof data.primary_verdict === "string" ? data.primary_verdict : null,
1962
+ terminalVerifier: typeof data.terminal_verifier === "string" ? data.terminal_verifier : null,
1963
+ terminalVerdict: typeof data.terminal_verdict === "string" ? data.terminal_verdict : null,
1964
+ terminalResult: typeof data.terminal_result === "string" ? data.terminal_result : null,
1965
+ terminalIsCatchAll: typeof data.terminal_is_catch_all === "boolean" ? data.terminal_is_catch_all : null,
1966
+ terminalIsAcceptAll: typeof data.terminal_is_accept_all === "boolean" ? data.terminal_is_accept_all : null,
1967
+ bouncebanId: typeof data.bounceban_id === "string" ? data.bounceban_id : null,
1958
1968
  firstName: data.first_name,
1959
1969
  lastName: data.last_name,
1960
1970
  confidence: failed ? 0 : data.confidence ?? data.confidence_score ?? (verified ? 1 : 0),
@@ -1994,6 +2004,19 @@ function normalizeFindEmailResult(data) {
1994
2004
  function normalizeVerifyEmailResult(email, data) {
1995
2005
  data = publicProductData(data, "verify_email");
1996
2006
  const failed = coreProductResponseFailed(data);
2007
+ const publicIsCatchAll = data.is_catch_all === true || data.email_is_catch_all === true;
2008
+ const publicPrimaryResult = String(data.primary_verdict ?? "").toLowerCase();
2009
+ const publicTerminalResult = String(data.terminal_result ?? "").toLowerCase();
2010
+ const okToSend = !failed && (data.ok_to_send === true || publicPrimaryResult === "ok" || publicPrimaryResult === "catch_all" && publicTerminalResult === "deliverable");
2011
+ return {
2012
+ email: typeof data.email === "string" ? data.email : email || null,
2013
+ status: String(data.status || "").toLowerCase() === "processing" ? "processing" : "completed",
2014
+ isCatchAll: publicIsCatchAll,
2015
+ creditsCharged: Number.isFinite(Number(data.credits_charged)) ? Number(data.credits_charged) : 0,
2016
+ okToSend,
2017
+ ...data.verification_run_id || data.run_id ? { verificationRunId: data.verification_run_id ?? data.run_id } : {},
2018
+ ...data.next_poll_after_seconds !== void 0 ? { nextPollAfterSeconds: data.next_poll_after_seconds } : {}
2019
+ };
1997
2020
  const malformed = data.is_malformed === true || data.verification_verdict === "malformed" || data.verification_status === "malformed" || data.deliverability_status === "malformed";
1998
2021
  const verificationStatus = normalizeVerifyEmailStatus(
1999
2022
  failed ? malformed ? "malformed" : "error" : data.verification_status ?? data.verification_verdict ?? data.deliverability_status ?? "unknown"
@@ -2008,6 +2031,15 @@ function normalizeVerifyEmailResult(email, data) {
2008
2031
  error: failed ? coreProductErrorMessage(data) : void 0,
2009
2032
  errorCode: failed ? coreProductErrorCode(data) : void 0,
2010
2033
  email: data.email ?? email,
2034
+ checkedEmail: typeof data.checked_email === "string" ? data.checked_email : null,
2035
+ primaryVerifier: typeof data.primary_verifier === "string" ? data.primary_verifier : null,
2036
+ primaryVerdict: typeof data.primary_verdict === "string" ? data.primary_verdict : null,
2037
+ terminalVerifier: typeof data.terminal_verifier === "string" ? data.terminal_verifier : null,
2038
+ terminalVerdict: typeof data.terminal_verdict === "string" ? data.terminal_verdict : null,
2039
+ terminalResult: typeof data.terminal_result === "string" ? data.terminal_result : null,
2040
+ terminalIsCatchAll: typeof data.terminal_is_catch_all === "boolean" ? data.terminal_is_catch_all : null,
2041
+ terminalIsAcceptAll: typeof data.terminal_is_accept_all === "boolean" ? data.terminal_is_accept_all : null,
2042
+ bouncebanId: typeof data.bounceban_id === "string" ? data.bounceban_id : null,
2011
2043
  status: !failed && String(data.status || "").toLowerCase() === "processing" ? "processing" : "completed",
2012
2044
  verificationRunId,
2013
2045
  retryAfterMs: data.retry_after_ms,
@@ -2271,7 +2303,7 @@ function validateSignalDiscoveryParams(params) {
2271
2303
  const runId = typeof params.signalSearchRunId === "string" ? params.signalSearchRunId.trim() : "";
2272
2304
  const query = typeof params.query === "string" ? params.query.trim() : "";
2273
2305
  if (!runId && !query) {
2274
- throw new TypeError("Signals Everything requires query or signalSearchRunId");
2306
+ throw new TypeError("Signals First requires query or signalSearchRunId");
2275
2307
  }
2276
2308
  if (query && (query.length < 2 || query.length > 2e3)) {
2277
2309
  throw new RangeError("query must contain between 2 and 2000 characters");
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  Signaliz
4
- } from "./chunk-MFXKZU6K.mjs";
4
+ } from "./chunk-N4SFDZG7.mjs";
5
5
 
6
6
  // src/mcp-config.ts
7
7
  import * as fs from "fs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signaliz/sdk",
3
- "version": "1.0.72",
3
+ "version": "1.0.73",
4
4
  "description": "Signaliz SDK for Company Signal Enrichment, Signals First, Signal Awareness, Signal to Copy AI, and Signaliz Flow.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",