@signaliz/sdk 1.0.46 → 1.0.48
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 +24 -33
- package/dist/{chunk-4LXMT3S5.mjs → chunk-NOOQDYOJ.mjs} +129 -228
- package/dist/index.d.mts +67 -4
- package/dist/index.d.ts +67 -4
- package/dist/index.js +129 -228
- package/dist/index.mjs +1 -1
- package/dist/mcp-config.js +129 -228
- package/dist/mcp-config.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -13,6 +13,8 @@ interface BatchOptions {
|
|
|
13
13
|
idempotencyKey?: string;
|
|
14
14
|
/** Return exact repeated successes as duplicateOf references. Defaults to false. */
|
|
15
15
|
compactDuplicates?: boolean;
|
|
16
|
+
/** Return one no-spend plan for the full batch without provider calls or jobs. */
|
|
17
|
+
dryRun?: boolean;
|
|
16
18
|
}
|
|
17
19
|
interface BatchItemResult<T> {
|
|
18
20
|
index: number;
|
|
@@ -43,6 +45,23 @@ interface SignalizErrorData {
|
|
|
43
45
|
retryAfter?: number;
|
|
44
46
|
details?: Record<string, unknown>;
|
|
45
47
|
}
|
|
48
|
+
interface CoreProductDryRunResult {
|
|
49
|
+
success: true;
|
|
50
|
+
dryRun: true;
|
|
51
|
+
status: 'planned';
|
|
52
|
+
capability: string;
|
|
53
|
+
inputCount: number;
|
|
54
|
+
recoveryReadCount: number;
|
|
55
|
+
plan: Record<string, unknown>;
|
|
56
|
+
estimate: Record<string, unknown>;
|
|
57
|
+
estimatedCredits: {
|
|
58
|
+
min: number;
|
|
59
|
+
max: number;
|
|
60
|
+
};
|
|
61
|
+
creditsCharged: 0;
|
|
62
|
+
sideEffects: unknown[];
|
|
63
|
+
raw: Record<string, unknown>;
|
|
64
|
+
}
|
|
46
65
|
interface FindEmailParams {
|
|
47
66
|
companyDomain: string;
|
|
48
67
|
fullName?: string;
|
|
@@ -52,6 +71,10 @@ interface FindEmailParams {
|
|
|
52
71
|
companyName?: string;
|
|
53
72
|
/** Bypass cached email and verification data for a fresh-provider run. */
|
|
54
73
|
skipCache?: boolean;
|
|
74
|
+
/** Return a no-spend plan without provider calls or jobs. */
|
|
75
|
+
dryRun?: boolean;
|
|
76
|
+
/** Stable retry key for recovering the same request after an ambiguous response. */
|
|
77
|
+
idempotencyKey?: string;
|
|
55
78
|
}
|
|
56
79
|
interface FindEmailResult {
|
|
57
80
|
success: boolean;
|
|
@@ -100,6 +123,10 @@ interface VerifyEmailOptions {
|
|
|
100
123
|
maxWaitMs?: number;
|
|
101
124
|
/** Override the server-provided polling delay. */
|
|
102
125
|
pollIntervalMs?: number;
|
|
126
|
+
/** Return a no-spend plan without provider calls or jobs. */
|
|
127
|
+
dryRun?: boolean;
|
|
128
|
+
/** Stable retry key for recovering the same request after an ambiguous response. */
|
|
129
|
+
idempotencyKey?: string;
|
|
103
130
|
}
|
|
104
131
|
interface VerifyEmailBatchOptions extends BatchOptions, VerifyEmailOptions {
|
|
105
132
|
}
|
|
@@ -114,16 +141,22 @@ interface CompanySignalEnrichmentParams {
|
|
|
114
141
|
lookbackDays?: number;
|
|
115
142
|
online?: boolean;
|
|
116
143
|
enableDeepSearch?: boolean;
|
|
144
|
+
/** Web coverage policy. Balanced targets an average all-in search budget below one cent. */
|
|
145
|
+
searchMode?: 'fast' | 'balanced' | 'coverage';
|
|
117
146
|
includeSummary?: boolean;
|
|
118
147
|
enableOutreachIntelligence?: boolean;
|
|
119
148
|
enablePredictiveIntelligence?: boolean;
|
|
120
149
|
skipCache?: boolean;
|
|
121
|
-
/**
|
|
150
|
+
/** @deprecated Company Signals is always synchronous; this option is ignored. */
|
|
122
151
|
waitForResult?: boolean;
|
|
123
|
-
/** Maximum
|
|
152
|
+
/** Maximum server-side synchronous execution window. */
|
|
124
153
|
maxWaitMs?: number;
|
|
125
|
-
/**
|
|
154
|
+
/** @deprecated Company Signals never returns a polling contract. */
|
|
126
155
|
pollIntervalMs?: number;
|
|
156
|
+
/** Return a no-spend plan without provider calls or jobs. */
|
|
157
|
+
dryRun?: boolean;
|
|
158
|
+
/** Stable retry key for recovering the same request after an ambiguous response. */
|
|
159
|
+
idempotencyKey?: string;
|
|
127
160
|
}
|
|
128
161
|
interface CompanySignal {
|
|
129
162
|
id?: string;
|
|
@@ -183,9 +216,15 @@ interface SignalToCopyParams {
|
|
|
183
216
|
skipCache?: boolean;
|
|
184
217
|
/** Opt into slower deep research. Defaults to false. */
|
|
185
218
|
enableDeepSearch?: boolean;
|
|
219
|
+
/** @deprecated Signal to Copy is always synchronous; this option is ignored. */
|
|
186
220
|
waitForResult?: boolean;
|
|
187
221
|
maxWaitMs?: number;
|
|
222
|
+
/** @deprecated Signal to Copy never returns a polling contract. */
|
|
188
223
|
pollIntervalMs?: number;
|
|
224
|
+
/** Return a no-spend plan without provider calls or jobs. */
|
|
225
|
+
dryRun?: boolean;
|
|
226
|
+
/** Stable retry key for recovering the same request after an ambiguous response. */
|
|
227
|
+
idempotencyKey?: string;
|
|
189
228
|
}
|
|
190
229
|
interface SignalToCopyVariation {
|
|
191
230
|
style: 'signal_led' | 'business_case' | 'predictive';
|
|
@@ -237,16 +276,40 @@ declare class SignalizError extends Error {
|
|
|
237
276
|
declare class Signaliz {
|
|
238
277
|
private readonly client;
|
|
239
278
|
constructor(config: SignalizConfig);
|
|
279
|
+
findEmail(params: FindEmailParams & {
|
|
280
|
+
dryRun: true;
|
|
281
|
+
}): Promise<CoreProductDryRunResult>;
|
|
240
282
|
findEmail(params: FindEmailParams): Promise<FindEmailResult>;
|
|
283
|
+
findEmails(params: FindEmailParams[], options: BatchOptions & {
|
|
284
|
+
dryRun: true;
|
|
285
|
+
}): Promise<CoreProductDryRunResult>;
|
|
241
286
|
findEmails(params: FindEmailParams[], options?: BatchOptions): Promise<BatchResult<FindEmailResult>>;
|
|
287
|
+
verifyEmail(email: string | undefined, options: VerifyEmailOptions & {
|
|
288
|
+
dryRun: true;
|
|
289
|
+
}): Promise<CoreProductDryRunResult>;
|
|
242
290
|
verifyEmail(email: string | undefined, options?: VerifyEmailOptions): Promise<VerifyEmailResult>;
|
|
291
|
+
verifyEmails(emails: string[], options: VerifyEmailBatchOptions & {
|
|
292
|
+
dryRun: true;
|
|
293
|
+
}): Promise<CoreProductDryRunResult>;
|
|
243
294
|
verifyEmails(emails: string[], options?: VerifyEmailBatchOptions): Promise<BatchResult<VerifyEmailResult>>;
|
|
295
|
+
enrichCompanySignals(params: CompanySignalEnrichmentParams & {
|
|
296
|
+
dryRun: true;
|
|
297
|
+
}): Promise<CoreProductDryRunResult>;
|
|
244
298
|
enrichCompanySignals(params: CompanySignalEnrichmentParams): Promise<CompanySignalEnrichmentResult>;
|
|
299
|
+
enrichCompanies(companies: CompanySignalEnrichmentParams[], options: BatchOptions & {
|
|
300
|
+
dryRun: true;
|
|
301
|
+
}): Promise<CoreProductDryRunResult>;
|
|
245
302
|
enrichCompanies(companies: CompanySignalEnrichmentParams[], options?: BatchOptions): Promise<BatchResult<CompanySignalEnrichmentResult>>;
|
|
303
|
+
signalToCopy(params: SignalToCopyParams & {
|
|
304
|
+
dryRun: true;
|
|
305
|
+
}): Promise<CoreProductDryRunResult>;
|
|
246
306
|
signalToCopy(params: SignalToCopyParams): Promise<SignalToCopyResult>;
|
|
307
|
+
createSignalCopyBatch(requests: SignalToCopyParams[], options: BatchOptions & {
|
|
308
|
+
dryRun: true;
|
|
309
|
+
}): Promise<CoreProductDryRunResult>;
|
|
247
310
|
createSignalCopyBatch(requests: SignalToCopyParams[], options?: BatchOptions): Promise<BatchResult<SignalToCopyResult>>;
|
|
311
|
+
private runCoreProductDryRun;
|
|
248
312
|
private runSignalCopyBatchChunks;
|
|
249
|
-
private runAvailableSignalCopyBatchJob;
|
|
250
313
|
private runRecoverableCoreBatchJob;
|
|
251
314
|
private runSignalCopyBatchChunk;
|
|
252
315
|
private runCoreBatchRound;
|
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,8 @@ interface BatchOptions {
|
|
|
13
13
|
idempotencyKey?: string;
|
|
14
14
|
/** Return exact repeated successes as duplicateOf references. Defaults to false. */
|
|
15
15
|
compactDuplicates?: boolean;
|
|
16
|
+
/** Return one no-spend plan for the full batch without provider calls or jobs. */
|
|
17
|
+
dryRun?: boolean;
|
|
16
18
|
}
|
|
17
19
|
interface BatchItemResult<T> {
|
|
18
20
|
index: number;
|
|
@@ -43,6 +45,23 @@ interface SignalizErrorData {
|
|
|
43
45
|
retryAfter?: number;
|
|
44
46
|
details?: Record<string, unknown>;
|
|
45
47
|
}
|
|
48
|
+
interface CoreProductDryRunResult {
|
|
49
|
+
success: true;
|
|
50
|
+
dryRun: true;
|
|
51
|
+
status: 'planned';
|
|
52
|
+
capability: string;
|
|
53
|
+
inputCount: number;
|
|
54
|
+
recoveryReadCount: number;
|
|
55
|
+
plan: Record<string, unknown>;
|
|
56
|
+
estimate: Record<string, unknown>;
|
|
57
|
+
estimatedCredits: {
|
|
58
|
+
min: number;
|
|
59
|
+
max: number;
|
|
60
|
+
};
|
|
61
|
+
creditsCharged: 0;
|
|
62
|
+
sideEffects: unknown[];
|
|
63
|
+
raw: Record<string, unknown>;
|
|
64
|
+
}
|
|
46
65
|
interface FindEmailParams {
|
|
47
66
|
companyDomain: string;
|
|
48
67
|
fullName?: string;
|
|
@@ -52,6 +71,10 @@ interface FindEmailParams {
|
|
|
52
71
|
companyName?: string;
|
|
53
72
|
/** Bypass cached email and verification data for a fresh-provider run. */
|
|
54
73
|
skipCache?: boolean;
|
|
74
|
+
/** Return a no-spend plan without provider calls or jobs. */
|
|
75
|
+
dryRun?: boolean;
|
|
76
|
+
/** Stable retry key for recovering the same request after an ambiguous response. */
|
|
77
|
+
idempotencyKey?: string;
|
|
55
78
|
}
|
|
56
79
|
interface FindEmailResult {
|
|
57
80
|
success: boolean;
|
|
@@ -100,6 +123,10 @@ interface VerifyEmailOptions {
|
|
|
100
123
|
maxWaitMs?: number;
|
|
101
124
|
/** Override the server-provided polling delay. */
|
|
102
125
|
pollIntervalMs?: number;
|
|
126
|
+
/** Return a no-spend plan without provider calls or jobs. */
|
|
127
|
+
dryRun?: boolean;
|
|
128
|
+
/** Stable retry key for recovering the same request after an ambiguous response. */
|
|
129
|
+
idempotencyKey?: string;
|
|
103
130
|
}
|
|
104
131
|
interface VerifyEmailBatchOptions extends BatchOptions, VerifyEmailOptions {
|
|
105
132
|
}
|
|
@@ -114,16 +141,22 @@ interface CompanySignalEnrichmentParams {
|
|
|
114
141
|
lookbackDays?: number;
|
|
115
142
|
online?: boolean;
|
|
116
143
|
enableDeepSearch?: boolean;
|
|
144
|
+
/** Web coverage policy. Balanced targets an average all-in search budget below one cent. */
|
|
145
|
+
searchMode?: 'fast' | 'balanced' | 'coverage';
|
|
117
146
|
includeSummary?: boolean;
|
|
118
147
|
enableOutreachIntelligence?: boolean;
|
|
119
148
|
enablePredictiveIntelligence?: boolean;
|
|
120
149
|
skipCache?: boolean;
|
|
121
|
-
/**
|
|
150
|
+
/** @deprecated Company Signals is always synchronous; this option is ignored. */
|
|
122
151
|
waitForResult?: boolean;
|
|
123
|
-
/** Maximum
|
|
152
|
+
/** Maximum server-side synchronous execution window. */
|
|
124
153
|
maxWaitMs?: number;
|
|
125
|
-
/**
|
|
154
|
+
/** @deprecated Company Signals never returns a polling contract. */
|
|
126
155
|
pollIntervalMs?: number;
|
|
156
|
+
/** Return a no-spend plan without provider calls or jobs. */
|
|
157
|
+
dryRun?: boolean;
|
|
158
|
+
/** Stable retry key for recovering the same request after an ambiguous response. */
|
|
159
|
+
idempotencyKey?: string;
|
|
127
160
|
}
|
|
128
161
|
interface CompanySignal {
|
|
129
162
|
id?: string;
|
|
@@ -183,9 +216,15 @@ interface SignalToCopyParams {
|
|
|
183
216
|
skipCache?: boolean;
|
|
184
217
|
/** Opt into slower deep research. Defaults to false. */
|
|
185
218
|
enableDeepSearch?: boolean;
|
|
219
|
+
/** @deprecated Signal to Copy is always synchronous; this option is ignored. */
|
|
186
220
|
waitForResult?: boolean;
|
|
187
221
|
maxWaitMs?: number;
|
|
222
|
+
/** @deprecated Signal to Copy never returns a polling contract. */
|
|
188
223
|
pollIntervalMs?: number;
|
|
224
|
+
/** Return a no-spend plan without provider calls or jobs. */
|
|
225
|
+
dryRun?: boolean;
|
|
226
|
+
/** Stable retry key for recovering the same request after an ambiguous response. */
|
|
227
|
+
idempotencyKey?: string;
|
|
189
228
|
}
|
|
190
229
|
interface SignalToCopyVariation {
|
|
191
230
|
style: 'signal_led' | 'business_case' | 'predictive';
|
|
@@ -237,16 +276,40 @@ declare class SignalizError extends Error {
|
|
|
237
276
|
declare class Signaliz {
|
|
238
277
|
private readonly client;
|
|
239
278
|
constructor(config: SignalizConfig);
|
|
279
|
+
findEmail(params: FindEmailParams & {
|
|
280
|
+
dryRun: true;
|
|
281
|
+
}): Promise<CoreProductDryRunResult>;
|
|
240
282
|
findEmail(params: FindEmailParams): Promise<FindEmailResult>;
|
|
283
|
+
findEmails(params: FindEmailParams[], options: BatchOptions & {
|
|
284
|
+
dryRun: true;
|
|
285
|
+
}): Promise<CoreProductDryRunResult>;
|
|
241
286
|
findEmails(params: FindEmailParams[], options?: BatchOptions): Promise<BatchResult<FindEmailResult>>;
|
|
287
|
+
verifyEmail(email: string | undefined, options: VerifyEmailOptions & {
|
|
288
|
+
dryRun: true;
|
|
289
|
+
}): Promise<CoreProductDryRunResult>;
|
|
242
290
|
verifyEmail(email: string | undefined, options?: VerifyEmailOptions): Promise<VerifyEmailResult>;
|
|
291
|
+
verifyEmails(emails: string[], options: VerifyEmailBatchOptions & {
|
|
292
|
+
dryRun: true;
|
|
293
|
+
}): Promise<CoreProductDryRunResult>;
|
|
243
294
|
verifyEmails(emails: string[], options?: VerifyEmailBatchOptions): Promise<BatchResult<VerifyEmailResult>>;
|
|
295
|
+
enrichCompanySignals(params: CompanySignalEnrichmentParams & {
|
|
296
|
+
dryRun: true;
|
|
297
|
+
}): Promise<CoreProductDryRunResult>;
|
|
244
298
|
enrichCompanySignals(params: CompanySignalEnrichmentParams): Promise<CompanySignalEnrichmentResult>;
|
|
299
|
+
enrichCompanies(companies: CompanySignalEnrichmentParams[], options: BatchOptions & {
|
|
300
|
+
dryRun: true;
|
|
301
|
+
}): Promise<CoreProductDryRunResult>;
|
|
245
302
|
enrichCompanies(companies: CompanySignalEnrichmentParams[], options?: BatchOptions): Promise<BatchResult<CompanySignalEnrichmentResult>>;
|
|
303
|
+
signalToCopy(params: SignalToCopyParams & {
|
|
304
|
+
dryRun: true;
|
|
305
|
+
}): Promise<CoreProductDryRunResult>;
|
|
246
306
|
signalToCopy(params: SignalToCopyParams): Promise<SignalToCopyResult>;
|
|
307
|
+
createSignalCopyBatch(requests: SignalToCopyParams[], options: BatchOptions & {
|
|
308
|
+
dryRun: true;
|
|
309
|
+
}): Promise<CoreProductDryRunResult>;
|
|
247
310
|
createSignalCopyBatch(requests: SignalToCopyParams[], options?: BatchOptions): Promise<BatchResult<SignalToCopyResult>>;
|
|
311
|
+
private runCoreProductDryRun;
|
|
248
312
|
private runSignalCopyBatchChunks;
|
|
249
|
-
private runAvailableSignalCopyBatchJob;
|
|
250
313
|
private runRecoverableCoreBatchJob;
|
|
251
314
|
private runSignalCopyBatchChunk;
|
|
252
315
|
private runCoreBatchRound;
|