parallel-web 0.3.2 → 0.4.0

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.
Files changed (95) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/client.d.mts +40 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +40 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js +39 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +39 -0
  9. package/client.mjs.map +1 -1
  10. package/internal/utils/env.js +2 -2
  11. package/internal/utils/env.js.map +1 -1
  12. package/internal/utils/env.mjs +2 -2
  13. package/internal/utils/env.mjs.map +1 -1
  14. package/package.json +12 -1
  15. package/resources/beta/beta.d.mts +40 -61
  16. package/resources/beta/beta.d.mts.map +1 -1
  17. package/resources/beta/beta.d.ts +40 -61
  18. package/resources/beta/beta.d.ts.map +1 -1
  19. package/resources/beta/beta.js +11 -2
  20. package/resources/beta/beta.js.map +1 -1
  21. package/resources/beta/beta.mjs +11 -2
  22. package/resources/beta/beta.mjs.map +1 -1
  23. package/resources/beta/findall.d.mts +167 -8
  24. package/resources/beta/findall.d.mts.map +1 -1
  25. package/resources/beta/findall.d.ts +167 -8
  26. package/resources/beta/findall.d.ts.map +1 -1
  27. package/resources/beta/findall.js +108 -0
  28. package/resources/beta/findall.js.map +1 -1
  29. package/resources/beta/findall.mjs +108 -0
  30. package/resources/beta/findall.mjs.map +1 -1
  31. package/resources/beta/index.d.mts +2 -2
  32. package/resources/beta/index.d.mts.map +1 -1
  33. package/resources/beta/index.d.ts +2 -2
  34. package/resources/beta/index.d.ts.map +1 -1
  35. package/resources/beta/index.js.map +1 -1
  36. package/resources/beta/index.mjs.map +1 -1
  37. package/resources/beta/task-group.d.mts +50 -5
  38. package/resources/beta/task-group.d.mts.map +1 -1
  39. package/resources/beta/task-group.d.ts +50 -5
  40. package/resources/beta/task-group.d.ts.map +1 -1
  41. package/resources/beta/task-group.js +45 -3
  42. package/resources/beta/task-group.js.map +1 -1
  43. package/resources/beta/task-group.mjs +45 -3
  44. package/resources/beta/task-group.mjs.map +1 -1
  45. package/resources/beta/task-run.d.mts +77 -270
  46. package/resources/beta/task-run.d.mts.map +1 -1
  47. package/resources/beta/task-run.d.ts +77 -270
  48. package/resources/beta/task-run.d.ts.map +1 -1
  49. package/resources/beta/task-run.js +17 -2
  50. package/resources/beta/task-run.js.map +1 -1
  51. package/resources/beta/task-run.mjs +17 -2
  52. package/resources/beta/task-run.mjs.map +1 -1
  53. package/resources/index.d.mts +2 -1
  54. package/resources/index.d.mts.map +1 -1
  55. package/resources/index.d.ts +2 -1
  56. package/resources/index.d.ts.map +1 -1
  57. package/resources/index.js.map +1 -1
  58. package/resources/index.mjs.map +1 -1
  59. package/resources/shared.d.mts +4 -2
  60. package/resources/shared.d.mts.map +1 -1
  61. package/resources/shared.d.ts +4 -2
  62. package/resources/shared.d.ts.map +1 -1
  63. package/resources/task-run.d.mts +308 -30
  64. package/resources/task-run.d.mts.map +1 -1
  65. package/resources/task-run.d.ts +308 -30
  66. package/resources/task-run.d.ts.map +1 -1
  67. package/resources/task-run.js +67 -4
  68. package/resources/task-run.js.map +1 -1
  69. package/resources/task-run.mjs +67 -4
  70. package/resources/task-run.mjs.map +1 -1
  71. package/resources/top-level.d.mts +317 -0
  72. package/resources/top-level.d.mts.map +1 -0
  73. package/resources/top-level.d.ts +317 -0
  74. package/resources/top-level.d.ts.map +1 -0
  75. package/resources/top-level.js +4 -0
  76. package/resources/top-level.js.map +1 -0
  77. package/resources/top-level.mjs +3 -0
  78. package/resources/top-level.mjs.map +1 -0
  79. package/src/client.ts +86 -0
  80. package/src/internal/utils/env.ts +2 -2
  81. package/src/resources/beta/api.md +12 -9
  82. package/src/resources/beta/beta.ts +55 -73
  83. package/src/resources/beta/findall.ts +187 -7
  84. package/src/resources/beta/index.ts +7 -4
  85. package/src/resources/beta/task-group.ts +54 -7
  86. package/src/resources/beta/task-run.ts +94 -305
  87. package/src/resources/index.ts +20 -0
  88. package/src/resources/shared.ts +4 -2
  89. package/src/resources/task-run.ts +391 -32
  90. package/src/resources/top-level.ts +385 -0
  91. package/src/version.ts +1 -1
  92. package/version.d.mts +1 -1
  93. package/version.d.ts +1 -1
  94. package/version.js +1 -1
  95. package/version.mjs +1 -1
@@ -2,12 +2,16 @@
2
2
 
3
3
  import { APIResource } from '../../core/resource';
4
4
  import * as Shared from '../shared';
5
+ import * as TopLevelAPI from '../top-level';
5
6
  import * as FindAllAPI from './findall';
6
7
  import {
7
8
  FindAll,
8
9
  FindAllCancelParams,
9
10
  FindAllCancelResponse,
10
11
  FindAllCandidateMatchStatusEvent,
12
+ FindAllCandidatesParams,
13
+ FindAllCandidatesRequest,
14
+ FindAllCandidatesResponse,
11
15
  FindAllCreateParams,
12
16
  FindAllEnrichInput,
13
17
  FindAllEnrichParams,
@@ -66,8 +70,12 @@ export class Beta extends APIResource {
66
70
  /**
67
71
  * Extracts relevant content from specific web URLs.
68
72
  *
69
- * To access this endpoint, pass the `parallel-beta` header with the value
70
- * `search-extract-2025-10-10`.
73
+ * @example
74
+ * ```ts
75
+ * const extractResponse = await client.beta.extract({
76
+ * urls: ['string'],
77
+ * });
78
+ * ```
71
79
  */
72
80
  extract(params: BetaExtractParams, options?: RequestOptions): APIPromise<ExtractResponse> {
73
81
  const { betas, ...body } = params;
@@ -83,6 +91,11 @@ export class Beta extends APIResource {
83
91
 
84
92
  /**
85
93
  * Searches the web.
94
+ *
95
+ * @example
96
+ * ```ts
97
+ * const searchResult = await client.beta.search();
98
+ * ```
86
99
  */
87
100
  search(params: BetaSearchParams, options?: RequestOptions): APIPromise<SearchResult> {
88
101
  const { betas, ...body } = params;
@@ -117,28 +130,6 @@ export interface ExcerptSettings {
117
130
  max_chars_total?: number | null;
118
131
  }
119
132
 
120
- /**
121
- * Extract error details.
122
- */
123
- export interface ExtractError {
124
- /**
125
- * Content returned for http client or server errors, if any.
126
- */
127
- content: string | null;
128
-
129
- /**
130
- * Error type.
131
- */
132
- error_type: string;
133
-
134
- /**
135
- * HTTP status code, if available.
136
- */
137
- http_status_code: number | null;
138
-
139
- url: string;
140
- }
141
-
142
133
  /**
143
134
  * Fetch result.
144
135
  */
@@ -146,7 +137,7 @@ export interface ExtractResponse {
146
137
  /**
147
138
  * Extract errors: requested URLs not in the results.
148
139
  */
149
- errors: Array<ExtractError>;
140
+ errors: Array<TopLevelAPI.ExtractError>;
150
141
 
151
142
  /**
152
143
  * Extract request ID, e.g. `extract_cad0a6d2dec046bd95ae900527d880e7`
@@ -161,7 +152,7 @@ export interface ExtractResponse {
161
152
  /**
162
153
  * Usage metrics for the extract request.
163
154
  */
164
- usage?: Array<UsageItem> | null;
155
+ usage?: Array<TopLevelAPI.UsageItem> | null;
165
156
 
166
157
  /**
167
158
  * Warnings for the extract request, if any.
@@ -199,28 +190,6 @@ export interface ExtractResult {
199
190
  title?: string | null;
200
191
  }
201
192
 
202
- /**
203
- * Policy for live fetching web results.
204
- */
205
- export interface FetchPolicy {
206
- /**
207
- * If false, fallback to cached content older than max-age if live fetch fails or
208
- * times out. If true, returns an error instead.
209
- */
210
- disable_cache_fallback?: boolean;
211
-
212
- /**
213
- * Maximum age of cached content in seconds to trigger a live fetch. Minimum value
214
- * 600 seconds (10 minutes).
215
- */
216
- max_age_seconds?: number | null;
217
-
218
- /**
219
- * Timeout in seconds for fetching live content if unavailable in cache.
220
- */
221
- timeout_seconds?: number | null;
222
- }
223
-
224
193
  /**
225
194
  * Output for the Search API.
226
195
  */
@@ -238,7 +207,7 @@ export interface SearchResult {
238
207
  /**
239
208
  * Usage metrics for the search request.
240
209
  */
241
- usage?: Array<UsageItem> | null;
210
+ usage?: Array<TopLevelAPI.UsageItem> | null;
242
211
 
243
212
  /**
244
213
  * Warnings for the search request, if any.
@@ -246,21 +215,6 @@ export interface SearchResult {
246
215
  warnings?: Array<Shared.Warning> | null;
247
216
  }
248
217
 
249
- /**
250
- * Usage item for a single operation.
251
- */
252
- export interface UsageItem {
253
- /**
254
- * Count of the SKU.
255
- */
256
- count: number;
257
-
258
- /**
259
- * Name of the SKU.
260
- */
261
- name: string;
262
- }
263
-
264
218
  /**
265
219
  * A single search result from the web search API.
266
220
  */
@@ -286,6 +240,12 @@ export interface WebSearchResult {
286
240
  title?: string | null;
287
241
  }
288
242
 
243
+ export type ExtractError = TopLevelAPI.ExtractError;
244
+
245
+ export type FetchPolicy = TopLevelAPI.FetchPolicy;
246
+
247
+ export type UsageItem = TopLevelAPI.UsageItem;
248
+
289
249
  export interface BetaExtractParams {
290
250
  /**
291
251
  * Body param
@@ -302,7 +262,7 @@ export interface BetaExtractParams {
302
262
  /**
303
263
  * Body param: Policy for live fetching web results.
304
264
  */
305
- fetch_policy?: FetchPolicy | null;
265
+ fetch_policy?: TopLevelAPI.FetchPolicy | null;
306
266
 
307
267
  /**
308
268
  * Body param: Include full content from each URL. Note that if neither objective
@@ -322,6 +282,13 @@ export interface BetaExtractParams {
322
282
  */
323
283
  search_queries?: Array<string> | null;
324
284
 
285
+ /**
286
+ * Body param: Session identifier to track calls across separate search and extract
287
+ * calls, to be used as part of a larger task. Specifying it may give better
288
+ * contextual results for subsequent API calls.
289
+ */
290
+ session_id?: string | null;
291
+
325
292
  /**
326
293
  * Header param: Optional header to specify the beta version(s) to enable.
327
294
  */
@@ -351,7 +318,12 @@ export interface BetaSearchParams {
351
318
  /**
352
319
  * Body param: Policy for live fetching web results.
353
320
  */
354
- fetch_policy?: FetchPolicy | null;
321
+ fetch_policy?: TopLevelAPI.FetchPolicy | null;
322
+
323
+ /**
324
+ * Body param: ISO 3166-1 alpha-2 country code for geo-targeted search results.
325
+ */
326
+ location?: string | null;
355
327
 
356
328
  /**
357
329
  * @deprecated Body param: DEPRECATED: Use `excerpts.max_chars_per_result` instead.
@@ -395,6 +367,13 @@ export interface BetaSearchParams {
395
367
  */
396
368
  search_queries?: Array<string> | null;
397
369
 
370
+ /**
371
+ * Body param: Session identifier to track calls across separate search and extract
372
+ * calls, to be used as part of a larger task. Specifying it may give better
373
+ * contextual results for subsequent API calls.
374
+ */
375
+ session_id?: string | null;
376
+
398
377
  /**
399
378
  * Body param: Source policy for web search results.
400
379
  *
@@ -414,28 +393,28 @@ Beta.FindAll = FindAll;
414
393
  export declare namespace Beta {
415
394
  export {
416
395
  type ExcerptSettings as ExcerptSettings,
417
- type ExtractError as ExtractError,
418
396
  type ExtractResponse as ExtractResponse,
419
397
  type ExtractResult as ExtractResult,
420
- type FetchPolicy as FetchPolicy,
421
398
  type SearchResult as SearchResult,
422
- type UsageItem as UsageItem,
423
399
  type WebSearchResult as WebSearchResult,
400
+ type ExtractError as ExtractError,
401
+ type FetchPolicy as FetchPolicy,
402
+ type UsageItem as UsageItem,
424
403
  type BetaExtractParams as BetaExtractParams,
425
404
  type BetaSearchParams as BetaSearchParams,
426
405
  };
427
406
 
428
407
  export {
429
408
  TaskRun as TaskRun,
409
+ type ParallelBeta as ParallelBeta,
410
+ type TaskRunEventsResponse as TaskRunEventsResponse,
430
411
  type BetaRunInput as BetaRunInput,
431
412
  type BetaTaskRunResult as BetaTaskRunResult,
432
- type ErrorEvent as ErrorEvent,
413
+ type Webhook as Webhook,
433
414
  type McpServer as McpServer,
434
415
  type McpToolCall as McpToolCall,
435
- type ParallelBeta as ParallelBeta,
436
416
  type TaskRunEvent as TaskRunEvent,
437
- type Webhook as Webhook,
438
- type TaskRunEventsResponse as TaskRunEventsResponse,
417
+ type ErrorEvent as ErrorEvent,
439
418
  type TaskRunCreateParams as TaskRunCreateParams,
440
419
  type TaskRunResultParams as TaskRunResultParams,
441
420
  };
@@ -455,6 +434,8 @@ export declare namespace Beta {
455
434
  export {
456
435
  FindAll as FindAll,
457
436
  type FindAllCandidateMatchStatusEvent as FindAllCandidateMatchStatusEvent,
437
+ type FindAllCandidatesRequest as FindAllCandidatesRequest,
438
+ type FindAllCandidatesResponse as FindAllCandidatesResponse,
458
439
  type FindAllEnrichInput as FindAllEnrichInput,
459
440
  type FindAllExtendInput as FindAllExtendInput,
460
441
  type FindAllRun as FindAllRun,
@@ -469,6 +450,7 @@ export declare namespace Beta {
469
450
  type FindAllCreateParams as FindAllCreateParams,
470
451
  type FindAllRetrieveParams as FindAllRetrieveParams,
471
452
  type FindAllCancelParams as FindAllCancelParams,
453
+ type FindAllCandidatesParams as FindAllCandidatesParams,
472
454
  type FindAllEnrichParams as FindAllEnrichParams,
473
455
  type FindAllEventsParams as FindAllEventsParams,
474
456
  type FindAllExtendParams as FindAllExtendParams,
@@ -26,6 +26,23 @@ export class FindAll extends APIResource {
26
26
  * /v1beta/findall/runs/{findall_id}/events endpoint,
27
27
  * - Or specifying a webhook with relevant event types during run creation to
28
28
  * receive notifications.
29
+ *
30
+ * @example
31
+ * ```ts
32
+ * const findallRun = await client.beta.findall.create({
33
+ * entity_type: 'entity_type',
34
+ * generator: 'base',
35
+ * match_conditions: [
36
+ * {
37
+ * description:
38
+ * "Company must have SOC2 Type II certification (not Type I). Look for evidence in: trust centers, security/compliance pages, audit reports, or press releases specifically mentioning 'SOC2 Type II'. If no explicit SOC2 Type II mention is found, consider requirement not satisfied.",
39
+ * name: 'name',
40
+ * },
41
+ * ],
42
+ * match_limit: 0,
43
+ * objective: 'objective',
44
+ * });
45
+ * ```
29
46
  */
30
47
  create(params: FindAllCreateParams, options?: RequestOptions): APIPromise<FindAllRun> {
31
48
  const { betas, ...body } = params;
@@ -41,6 +58,13 @@ export class FindAll extends APIResource {
41
58
 
42
59
  /**
43
60
  * Retrieve a FindAll run.
61
+ *
62
+ * @example
63
+ * ```ts
64
+ * const findallRun = await client.beta.findall.retrieve(
65
+ * 'findall_id',
66
+ * );
67
+ * ```
44
68
  */
45
69
  retrieve(
46
70
  findallID: string,
@@ -59,6 +83,13 @@ export class FindAll extends APIResource {
59
83
 
60
84
  /**
61
85
  * Cancel a FindAll run.
86
+ *
87
+ * @example
88
+ * ```ts
89
+ * const response = await client.beta.findall.cancel(
90
+ * 'findall_id',
91
+ * );
92
+ * ```
62
93
  */
63
94
  cancel(
64
95
  findallID: string,
@@ -75,8 +106,49 @@ export class FindAll extends APIResource {
75
106
  });
76
107
  }
77
108
 
109
+ /**
110
+ * Return ranked entity candidates matching a natural language objective.
111
+ *
112
+ * This endpoint performs a best-effort search optimised for low latency. For
113
+ * comprehensive match evaluation and enrichment, use the
114
+ * [FindAll API](https://docs.parallel.ai/findall-api/findall-quickstart).
115
+ *
116
+ * @example
117
+ * ```ts
118
+ * const findallCandidatesResponse =
119
+ * await client.beta.findall.candidates({
120
+ * entity_type: 'company',
121
+ * objective: 'objective',
122
+ * });
123
+ * ```
124
+ */
125
+ candidates(body: FindAllCandidatesParams, options?: RequestOptions): APIPromise<FindAllCandidatesResponse> {
126
+ return this._client.post('/v1beta/findall/candidates', {
127
+ body,
128
+ ...options,
129
+ headers: buildHeaders([{ 'parallel-beta': 'findall-2025-09-15' }, options?.headers]),
130
+ });
131
+ }
132
+
78
133
  /**
79
134
  * Add an enrichment to a FindAll run.
135
+ *
136
+ * @example
137
+ * ```ts
138
+ * const findallSchema = await client.beta.findall.enrich(
139
+ * 'findall_id',
140
+ * {
141
+ * output_schema: {
142
+ * json_schema: {
143
+ * additionalProperties: 'bar',
144
+ * properties: 'bar',
145
+ * required: 'bar',
146
+ * type: 'bar',
147
+ * },
148
+ * },
149
+ * },
150
+ * );
151
+ * ```
80
152
  */
81
153
  enrich(
82
154
  findallID: string,
@@ -101,6 +173,13 @@ export class FindAll extends APIResource {
101
173
  * Optional event ID to resume from. timeout: Optional timeout in seconds. If None,
102
174
  * keep connection alive as long as the run is going. If set, stop after specified
103
175
  * duration.
176
+ *
177
+ * @example
178
+ * ```ts
179
+ * const response = await client.beta.findall.events(
180
+ * 'findall_id',
181
+ * );
182
+ * ```
104
183
  */
105
184
  events(
106
185
  findallID: string,
@@ -121,6 +200,14 @@ export class FindAll extends APIResource {
121
200
 
122
201
  /**
123
202
  * Extend a FindAll run by adding additional matches to the current match limit.
203
+ *
204
+ * @example
205
+ * ```ts
206
+ * const findallSchema = await client.beta.findall.extend(
207
+ * 'findall_id',
208
+ * { additional_match_limit: 0 },
209
+ * );
210
+ * ```
124
211
  */
125
212
  extend(
126
213
  findallID: string,
@@ -145,6 +232,14 @@ export class FindAll extends APIResource {
145
232
  *
146
233
  * The generated specification serves as a suggested starting point and can be
147
234
  * further customized by the user.
235
+ *
236
+ * @example
237
+ * ```ts
238
+ * const findallSchema = await client.beta.findall.ingest({
239
+ * objective:
240
+ * 'Find all AI companies that raised Series A funding in 2024',
241
+ * });
242
+ * ```
148
243
  */
149
244
  ingest(params: FindAllIngestParams, options?: RequestOptions): APIPromise<FindAllSchema> {
150
245
  const { betas, ...body } = params;
@@ -160,6 +255,13 @@ export class FindAll extends APIResource {
160
255
 
161
256
  /**
162
257
  * Retrieve the FindAll run result at the time of the request.
258
+ *
259
+ * @example
260
+ * ```ts
261
+ * const findallRunResult = await client.beta.findall.result(
262
+ * 'findall_id',
263
+ * );
264
+ * ```
163
265
  */
164
266
  result(
165
267
  findallID: string,
@@ -178,6 +280,13 @@ export class FindAll extends APIResource {
178
280
 
179
281
  /**
180
282
  * Get FindAll Run Schema
283
+ *
284
+ * @example
285
+ * ```ts
286
+ * const findallSchema = await client.beta.findall.schema(
287
+ * 'findall_id',
288
+ * );
289
+ * ```
181
290
  */
182
291
  schema(
183
292
  findallID: string,
@@ -272,6 +381,56 @@ export namespace FindAllCandidateMatchStatusEvent {
272
381
  }
273
382
  }
274
383
 
384
+ export interface FindAllCandidatesRequest {
385
+ /**
386
+ * Type of entity to search for.
387
+ */
388
+ entity_type: 'company' | 'people';
389
+
390
+ /**
391
+ * Natural language description of target entities.
392
+ */
393
+ objective: string;
394
+
395
+ /**
396
+ * Maximum number of candidates to return. Must be between 5 and 1000 (inclusive).
397
+ * May return fewer results. Defaults to 100.
398
+ */
399
+ match_limit?: number;
400
+ }
401
+
402
+ export interface FindAllCandidatesResponse {
403
+ /**
404
+ * Candidate set request ID. Example:
405
+ * `candidate_set_cad0a6d2dec046bd95ae900527d880e7`
406
+ */
407
+ candidate_set_id: string;
408
+
409
+ /**
410
+ * Ranked list of entity candidates.
411
+ */
412
+ candidates: Array<FindAllCandidatesResponse.Candidate>;
413
+ }
414
+
415
+ export namespace FindAllCandidatesResponse {
416
+ export interface Candidate {
417
+ /**
418
+ * Descriptive text about the entity.
419
+ */
420
+ description: string;
421
+
422
+ /**
423
+ * Entity name.
424
+ */
425
+ name: string;
426
+
427
+ /**
428
+ * Canonical URL for the entity.
429
+ */
430
+ url: string;
431
+ }
432
+ }
433
+
275
434
  /**
276
435
  * Input model for FindAll enrich.
277
436
  */
@@ -284,7 +443,7 @@ export interface FindAllEnrichInput {
284
443
  /**
285
444
  * List of MCP servers to use for the task.
286
445
  */
287
- mcp_servers?: Array<BetaTaskRunAPI.McpServer> | null;
446
+ mcp_servers?: Array<TaskRunAPI.McpServer> | null;
288
447
 
289
448
  /**
290
449
  * Processor to use for the task.
@@ -413,7 +572,7 @@ export interface FindAllRunInput {
413
572
 
414
573
  /**
415
574
  * Maximum number of matches to find for this FindAll run. Must be between 5 and
416
- * 1000 (inclusive).
575
+ * 1000 (inclusive). May return fewer results.
417
576
  */
418
577
  match_limit: number;
419
578
 
@@ -435,7 +594,7 @@ export interface FindAllRunInput {
435
594
  /**
436
595
  * Webhooks for Task Runs.
437
596
  */
438
- webhook?: BetaTaskRunAPI.Webhook | null;
597
+ webhook?: TaskRunAPI.Webhook | null;
439
598
  }
440
599
 
441
600
  export namespace FindAllRunInput {
@@ -668,7 +827,7 @@ export type FindAllEventsResponse =
668
827
  | FindAllSchemaUpdatedEvent
669
828
  | FindAllRunStatusEvent
670
829
  | FindAllCandidateMatchStatusEvent
671
- | BetaTaskRunAPI.ErrorEvent;
830
+ | TaskRunAPI.ErrorEvent;
672
831
 
673
832
  export interface FindAllCreateParams {
674
833
  /**
@@ -688,7 +847,7 @@ export interface FindAllCreateParams {
688
847
 
689
848
  /**
690
849
  * Body param: Maximum number of matches to find for this FindAll run. Must be
691
- * between 5 and 1000 (inclusive).
850
+ * between 5 and 1000 (inclusive). May return fewer results.
692
851
  */
693
852
  match_limit: number;
694
853
 
@@ -710,7 +869,7 @@ export interface FindAllCreateParams {
710
869
  /**
711
870
  * Body param: Webhooks for Task Runs.
712
871
  */
713
- webhook?: BetaTaskRunAPI.Webhook | null;
872
+ webhook?: TaskRunAPI.Webhook | null;
714
873
 
715
874
  /**
716
875
  * Header param: Optional header to specify the beta version(s) to enable.
@@ -766,6 +925,24 @@ export interface FindAllCancelParams {
766
925
  betas?: Array<BetaTaskRunAPI.ParallelBeta>;
767
926
  }
768
927
 
928
+ export interface FindAllCandidatesParams {
929
+ /**
930
+ * Type of entity to search for.
931
+ */
932
+ entity_type: 'company' | 'people';
933
+
934
+ /**
935
+ * Natural language description of target entities.
936
+ */
937
+ objective: string;
938
+
939
+ /**
940
+ * Maximum number of candidates to return. Must be between 5 and 1000 (inclusive).
941
+ * May return fewer results. Defaults to 100.
942
+ */
943
+ match_limit?: number;
944
+ }
945
+
769
946
  export interface FindAllEnrichParams {
770
947
  /**
771
948
  * Body param: JSON schema for the enrichment output schema for the FindAll run.
@@ -775,7 +952,7 @@ export interface FindAllEnrichParams {
775
952
  /**
776
953
  * Body param: List of MCP servers to use for the task.
777
954
  */
778
- mcp_servers?: Array<BetaTaskRunAPI.McpServer> | null;
955
+ mcp_servers?: Array<TaskRunAPI.McpServer> | null;
779
956
 
780
957
  /**
781
958
  * Body param: Processor to use for the task.
@@ -848,6 +1025,8 @@ export interface FindAllSchemaParams {
848
1025
  export declare namespace FindAll {
849
1026
  export {
850
1027
  type FindAllCandidateMatchStatusEvent as FindAllCandidateMatchStatusEvent,
1028
+ type FindAllCandidatesRequest as FindAllCandidatesRequest,
1029
+ type FindAllCandidatesResponse as FindAllCandidatesResponse,
851
1030
  type FindAllEnrichInput as FindAllEnrichInput,
852
1031
  type FindAllExtendInput as FindAllExtendInput,
853
1032
  type FindAllRun as FindAllRun,
@@ -862,6 +1041,7 @@ export declare namespace FindAll {
862
1041
  type FindAllCreateParams as FindAllCreateParams,
863
1042
  type FindAllRetrieveParams as FindAllRetrieveParams,
864
1043
  type FindAllCancelParams as FindAllCancelParams,
1044
+ type FindAllCandidatesParams as FindAllCandidatesParams,
865
1045
  type FindAllEnrichParams as FindAllEnrichParams,
866
1046
  type FindAllEventsParams as FindAllEventsParams,
867
1047
  type FindAllExtendParams as FindAllExtendParams,
@@ -5,6 +5,8 @@ export {
5
5
  FindAll,
6
6
  Findall,
7
7
  type FindAllCandidateMatchStatusEvent,
8
+ type FindAllCandidatesRequest,
9
+ type FindAllCandidatesResponse,
8
10
  type FindAllEnrichInput,
9
11
  type FindAllExtendInput,
10
12
  type FindAllRun,
@@ -19,6 +21,7 @@ export {
19
21
  type FindAllCreateParams,
20
22
  type FindAllRetrieveParams,
21
23
  type FindAllCancelParams,
24
+ type FindAllCandidatesParams,
22
25
  type FindAllEnrichParams,
23
26
  type FindAllEventsParams,
24
27
  type FindAllExtendParams,
@@ -60,15 +63,15 @@ export {
60
63
  } from './task-group';
61
64
  export {
62
65
  TaskRun,
66
+ type ParallelBeta,
67
+ type TaskRunEventsResponse,
63
68
  type BetaRunInput,
64
69
  type BetaTaskRunResult,
65
- type ErrorEvent,
70
+ type Webhook,
66
71
  type McpServer,
67
72
  type McpToolCall,
68
- type ParallelBeta,
69
73
  type TaskRunEvent,
70
- type Webhook,
71
- type TaskRunEventsResponse,
74
+ type ErrorEvent,
72
75
  type TaskRunCreateParams,
73
76
  type TaskRunResultParams,
74
77
  } from './task-run';