@signaliz/sdk 1.0.50 → 1.0.52

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
@@ -105,6 +105,9 @@ than 25 use one recoverable REST job; the SDK waits for completion and retrieves
105
105
  every result page before returning, so callers never receive queued work or
106
106
  polling instructions. Find Email, Verify Email, and Signal to Copy use 500-row
107
107
  result pages, while Company Signals uses 25-row result pages.
108
+ Company Signal `signal_run_id` recovery rows remain direct batches of at most
109
+ 25, matching the recovery-read API contract instead of starting a new durable
110
+ research job.
108
111
  Exact duplicate tasks are single-flighted across each full batch without
109
112
  changing input order or result cardinality. Set `compactDuplicates: true` to
110
113
  return repeated successful rows as `duplicateOf` references to the zero-based
@@ -658,7 +658,7 @@ var Signaliz = class {
658
658
  "api/v1/signal-to-copy",
659
659
  requests.map(signalToCopyRequestBody),
660
660
  "Signal to Copy",
661
- 500,
661
+ 100,
662
662
  20 * 6e4,
663
663
  options?.idempotencyKey
664
664
  );
@@ -735,7 +735,8 @@ var Signaliz = class {
735
735
  const deduplicated = dedupeExactBatchItems(tasks, (task) => JSON.stringify(task.request));
736
736
  const uniqueTasks = deduplicated.uniqueItems;
737
737
  const recoverableBatch = path === "api/v1/find-email" ? { label: "Find Email", pageSize: 500, maxWaitMs: 20 * 6e4 } : path === "api/v1/verify-email" ? { label: "Verify Email", pageSize: 500, maxWaitMs: 20 * 6e4 } : path === "api/v1/company-signals" ? { label: "Company Signals", pageSize: 25, maxWaitMs: 20 * 6e4 } : void 0;
738
- if (recoverableBatch && uniqueTasks.length > 25) {
738
+ const containsSignalRunRecovery = path === "api/v1/company-signals" && uniqueTasks.some((task) => Boolean(task.request.signal_run_id));
739
+ if (recoverableBatch && uniqueTasks.length > 25 && !containsSignalRunRecovery) {
739
740
  const rows = await this.runRecoverableCoreBatchJob(
740
741
  path,
741
742
  uniqueTasks.map((task) => task.request),
package/dist/index.js CHANGED
@@ -685,7 +685,7 @@ var Signaliz = class {
685
685
  "api/v1/signal-to-copy",
686
686
  requests.map(signalToCopyRequestBody),
687
687
  "Signal to Copy",
688
- 500,
688
+ 100,
689
689
  20 * 6e4,
690
690
  options?.idempotencyKey
691
691
  );
@@ -762,7 +762,8 @@ var Signaliz = class {
762
762
  const deduplicated = dedupeExactBatchItems(tasks, (task) => JSON.stringify(task.request));
763
763
  const uniqueTasks = deduplicated.uniqueItems;
764
764
  const recoverableBatch = path === "api/v1/find-email" ? { label: "Find Email", pageSize: 500, maxWaitMs: 20 * 6e4 } : path === "api/v1/verify-email" ? { label: "Verify Email", pageSize: 500, maxWaitMs: 20 * 6e4 } : path === "api/v1/company-signals" ? { label: "Company Signals", pageSize: 25, maxWaitMs: 20 * 6e4 } : void 0;
765
- if (recoverableBatch && uniqueTasks.length > 25) {
765
+ const containsSignalRunRecovery = path === "api/v1/company-signals" && uniqueTasks.some((task) => Boolean(task.request.signal_run_id));
766
+ if (recoverableBatch && uniqueTasks.length > 25 && !containsSignalRunRecovery) {
766
767
  const rows = await this.runRecoverableCoreBatchJob(
767
768
  path,
768
769
  uniqueTasks.map((task) => task.request),
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Signaliz,
3
3
  SignalizError
4
- } from "./chunk-BFMRS2FT.mjs";
4
+ } from "./chunk-IFHOCPIP.mjs";
5
5
  export {
6
6
  Signaliz,
7
7
  SignalizError
@@ -689,7 +689,7 @@ var Signaliz = class {
689
689
  "api/v1/signal-to-copy",
690
690
  requests.map(signalToCopyRequestBody),
691
691
  "Signal to Copy",
692
- 500,
692
+ 100,
693
693
  20 * 6e4,
694
694
  options?.idempotencyKey
695
695
  );
@@ -766,7 +766,8 @@ var Signaliz = class {
766
766
  const deduplicated = dedupeExactBatchItems(tasks, (task) => JSON.stringify(task.request));
767
767
  const uniqueTasks = deduplicated.uniqueItems;
768
768
  const recoverableBatch = path2 === "api/v1/find-email" ? { label: "Find Email", pageSize: 500, maxWaitMs: 20 * 6e4 } : path2 === "api/v1/verify-email" ? { label: "Verify Email", pageSize: 500, maxWaitMs: 20 * 6e4 } : path2 === "api/v1/company-signals" ? { label: "Company Signals", pageSize: 25, maxWaitMs: 20 * 6e4 } : void 0;
769
- if (recoverableBatch && uniqueTasks.length > 25) {
769
+ const containsSignalRunRecovery = path2 === "api/v1/company-signals" && uniqueTasks.some((task) => Boolean(task.request.signal_run_id));
770
+ if (recoverableBatch && uniqueTasks.length > 25 && !containsSignalRunRecovery) {
770
771
  const rows = await this.runRecoverableCoreBatchJob(
771
772
  path2,
772
773
  uniqueTasks.map((task) => task.request),
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  Signaliz
4
- } from "./chunk-BFMRS2FT.mjs";
4
+ } from "./chunk-IFHOCPIP.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.50",
3
+ "version": "1.0.52",
4
4
  "description": "Signaliz SDK for Find Email, Verify Email, Company Signal Enrichment, and Signal to Copy AI.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",