parallel-web 0.4.1 → 1.0.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 (241) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/api-promise.d.mts +1 -0
  3. package/api-promise.d.mts.map +1 -1
  4. package/api-promise.d.ts +1 -0
  5. package/api-promise.d.ts.map +1 -1
  6. package/api-promise.mjs +1 -0
  7. package/api-promise.mjs.map +1 -1
  8. package/client.d.mts +29 -8
  9. package/client.d.mts.map +1 -1
  10. package/client.d.ts +29 -8
  11. package/client.d.ts.map +1 -1
  12. package/client.js +34 -4
  13. package/client.js.map +1 -1
  14. package/client.mjs +34 -4
  15. package/client.mjs.map +1 -1
  16. package/core/api-promise.d.mts.map +1 -1
  17. package/core/api-promise.d.ts.map +1 -1
  18. package/core/api-promise.mjs.map +1 -1
  19. package/core/error.mjs.map +1 -1
  20. package/core/resource.d.mts.map +1 -1
  21. package/core/resource.d.ts.map +1 -1
  22. package/core/streaming.d.mts.map +1 -1
  23. package/core/streaming.d.ts.map +1 -1
  24. package/core/streaming.mjs.map +1 -1
  25. package/core/uploads.d.mts.map +1 -1
  26. package/core/uploads.d.ts.map +1 -1
  27. package/core/uploads.mjs.map +1 -1
  28. package/error.d.mts +1 -0
  29. package/error.d.mts.map +1 -1
  30. package/error.d.ts +1 -0
  31. package/error.d.ts.map +1 -1
  32. package/error.mjs +1 -0
  33. package/error.mjs.map +1 -1
  34. package/index.d.mts.map +1 -1
  35. package/index.d.ts.map +1 -1
  36. package/index.mjs.map +1 -1
  37. package/internal/decoders/line.mjs.map +1 -1
  38. package/internal/detect-platform.mjs.map +1 -1
  39. package/internal/headers.mjs.map +1 -1
  40. package/internal/parse.d.mts.map +1 -1
  41. package/internal/parse.d.ts.map +1 -1
  42. package/internal/parse.mjs.map +1 -1
  43. package/internal/qs/formats.d.mts +7 -0
  44. package/internal/qs/formats.d.mts.map +1 -0
  45. package/internal/qs/formats.d.ts +7 -0
  46. package/internal/qs/formats.d.ts.map +1 -0
  47. package/internal/qs/formats.js +13 -0
  48. package/internal/qs/formats.js.map +1 -0
  49. package/internal/qs/formats.mjs +9 -0
  50. package/internal/qs/formats.mjs.map +1 -0
  51. package/internal/qs/index.d.mts +10 -0
  52. package/internal/qs/index.d.mts.map +1 -0
  53. package/internal/qs/index.d.ts +10 -0
  54. package/internal/qs/index.d.ts.map +1 -0
  55. package/internal/qs/index.js +14 -0
  56. package/internal/qs/index.js.map +1 -0
  57. package/internal/qs/index.mjs +10 -0
  58. package/internal/qs/index.mjs.map +1 -0
  59. package/internal/qs/stringify.d.mts +3 -0
  60. package/internal/qs/stringify.d.mts.map +1 -0
  61. package/internal/qs/stringify.d.ts +3 -0
  62. package/internal/qs/stringify.d.ts.map +1 -0
  63. package/internal/qs/stringify.js +277 -0
  64. package/internal/qs/stringify.js.map +1 -0
  65. package/internal/qs/stringify.mjs +274 -0
  66. package/internal/qs/stringify.mjs.map +1 -0
  67. package/internal/qs/types.d.mts +57 -0
  68. package/internal/qs/types.d.mts.map +1 -0
  69. package/internal/qs/types.d.ts +57 -0
  70. package/internal/qs/types.d.ts.map +1 -0
  71. package/internal/qs/types.js +3 -0
  72. package/internal/qs/types.js.map +1 -0
  73. package/internal/qs/types.mjs +2 -0
  74. package/internal/qs/types.mjs.map +1 -0
  75. package/internal/qs/utils.d.mts +15 -0
  76. package/internal/qs/utils.d.mts.map +1 -0
  77. package/internal/qs/utils.d.ts +15 -0
  78. package/internal/qs/utils.d.ts.map +1 -0
  79. package/internal/qs/utils.js +230 -0
  80. package/internal/qs/utils.js.map +1 -0
  81. package/internal/qs/utils.mjs +217 -0
  82. package/internal/qs/utils.mjs.map +1 -0
  83. package/internal/request-options.d.mts.map +1 -1
  84. package/internal/request-options.d.ts.map +1 -1
  85. package/internal/shims.d.mts +6 -0
  86. package/internal/shims.d.mts.map +1 -1
  87. package/internal/shims.d.ts +6 -0
  88. package/internal/shims.d.ts.map +1 -1
  89. package/internal/to-file.d.mts.map +1 -1
  90. package/internal/to-file.d.ts.map +1 -1
  91. package/internal/to-file.mjs.map +1 -1
  92. package/internal/types.d.mts +10 -10
  93. package/internal/types.d.mts.map +1 -1
  94. package/internal/types.d.ts +10 -10
  95. package/internal/types.d.ts.map +1 -1
  96. package/internal/uploads.d.mts.map +1 -1
  97. package/internal/uploads.d.ts.map +1 -1
  98. package/internal/uploads.mjs.map +1 -1
  99. package/internal/utils/base64.mjs.map +1 -1
  100. package/internal/utils/log.d.mts.map +1 -1
  101. package/internal/utils/log.d.ts.map +1 -1
  102. package/internal/utils/log.js +3 -2
  103. package/internal/utils/log.js.map +1 -1
  104. package/internal/utils/log.mjs +3 -2
  105. package/internal/utils/log.mjs.map +1 -1
  106. package/internal/utils/path.mjs.map +1 -1
  107. package/internal/utils/query.d.mts +0 -3
  108. package/internal/utils/query.d.mts.map +1 -1
  109. package/internal/utils/query.d.ts +0 -3
  110. package/internal/utils/query.d.ts.map +1 -1
  111. package/internal/utils/query.js +3 -16
  112. package/internal/utils/query.js.map +1 -1
  113. package/internal/utils/query.mjs +2 -16
  114. package/internal/utils/query.mjs.map +1 -1
  115. package/internal/utils/values.mjs.map +1 -1
  116. package/internal/utils.d.mts.map +1 -1
  117. package/internal/utils.d.ts.map +1 -1
  118. package/internal/utils.mjs.map +1 -1
  119. package/package.json +1 -1
  120. package/resource.d.mts +1 -0
  121. package/resource.d.mts.map +1 -1
  122. package/resource.d.ts +1 -0
  123. package/resource.d.ts.map +1 -1
  124. package/resource.mjs +1 -0
  125. package/resource.mjs.map +1 -1
  126. package/resources/beta/beta.d.mts +2 -270
  127. package/resources/beta/beta.d.mts.map +1 -1
  128. package/resources/beta/beta.d.ts +2 -270
  129. package/resources/beta/beta.d.ts.map +1 -1
  130. package/resources/beta/beta.js +0 -39
  131. package/resources/beta/beta.js.map +1 -1
  132. package/resources/beta/beta.mjs +0 -39
  133. package/resources/beta/beta.mjs.map +1 -1
  134. package/resources/beta/findall.d.mts +202 -247
  135. package/resources/beta/findall.d.mts.map +1 -1
  136. package/resources/beta/findall.d.ts +202 -247
  137. package/resources/beta/findall.d.ts.map +1 -1
  138. package/resources/beta/findall.js +28 -27
  139. package/resources/beta/findall.js.map +1 -1
  140. package/resources/beta/findall.mjs +28 -27
  141. package/resources/beta/findall.mjs.map +1 -1
  142. package/resources/beta/index.d.mts +1 -3
  143. package/resources/beta/index.d.mts.map +1 -1
  144. package/resources/beta/index.d.ts +1 -3
  145. package/resources/beta/index.d.ts.map +1 -1
  146. package/resources/beta/index.js +1 -5
  147. package/resources/beta/index.js.map +1 -1
  148. package/resources/beta/index.mjs +0 -2
  149. package/resources/beta/index.mjs.map +1 -1
  150. package/resources/beta.d.mts.map +1 -1
  151. package/resources/beta.d.ts.map +1 -1
  152. package/resources/beta.mjs.map +1 -1
  153. package/resources/index.d.mts +4 -2
  154. package/resources/index.d.mts.map +1 -1
  155. package/resources/index.d.ts +4 -2
  156. package/resources/index.d.ts.map +1 -1
  157. package/resources/index.js +5 -1
  158. package/resources/index.js.map +1 -1
  159. package/resources/index.mjs +2 -0
  160. package/resources/index.mjs.map +1 -1
  161. package/resources/monitor.d.mts +625 -0
  162. package/resources/monitor.d.mts.map +1 -0
  163. package/resources/monitor.d.ts +625 -0
  164. package/resources/monitor.d.ts.map +1 -0
  165. package/resources/monitor.js +140 -0
  166. package/resources/monitor.js.map +1 -0
  167. package/resources/monitor.mjs +136 -0
  168. package/resources/monitor.mjs.map +1 -0
  169. package/resources/{beta/task-group.d.mts → task-group.d.mts} +38 -68
  170. package/resources/task-group.d.mts.map +1 -0
  171. package/resources/{beta/task-group.d.ts → task-group.d.ts} +38 -68
  172. package/resources/task-group.d.ts.map +1 -0
  173. package/resources/{beta/task-group.js → task-group.js} +24 -64
  174. package/resources/task-group.js.map +1 -0
  175. package/resources/{beta/task-group.mjs → task-group.mjs} +24 -64
  176. package/resources/task-group.mjs.map +1 -0
  177. package/resources/task-run.d.mts +100 -83
  178. package/resources/task-run.d.mts.map +1 -1
  179. package/resources/task-run.d.ts +100 -83
  180. package/resources/task-run.d.ts.map +1 -1
  181. package/resources/task-run.js +14 -1
  182. package/resources/task-run.js.map +1 -1
  183. package/resources/task-run.mjs +14 -1
  184. package/resources/task-run.mjs.map +1 -1
  185. package/resources/top-level.d.mts +20 -16
  186. package/resources/top-level.d.mts.map +1 -1
  187. package/resources/top-level.d.ts +20 -16
  188. package/resources/top-level.d.ts.map +1 -1
  189. package/resources.d.mts.map +1 -1
  190. package/resources.d.ts.map +1 -1
  191. package/resources.mjs.map +1 -1
  192. package/src/client.ts +120 -4
  193. package/src/internal/qs/LICENSE.md +13 -0
  194. package/src/internal/qs/README.md +3 -0
  195. package/src/internal/qs/formats.ts +10 -0
  196. package/src/internal/qs/index.ts +13 -0
  197. package/src/internal/qs/stringify.ts +385 -0
  198. package/src/internal/qs/types.ts +71 -0
  199. package/src/internal/qs/utils.ts +265 -0
  200. package/src/internal/types.ts +6 -8
  201. package/src/internal/utils/log.ts +2 -1
  202. package/src/internal/utils/query.ts +2 -18
  203. package/src/resources/beta/api.md +9 -59
  204. package/src/resources/beta/beta.ts +16 -406
  205. package/src/resources/beta/findall.ts +252 -284
  206. package/src/resources/beta/index.ts +8 -30
  207. package/src/resources/index.ts +42 -0
  208. package/src/resources/monitor.ts +752 -0
  209. package/src/resources/{beta/task-group.ts → task-group.ts} +58 -93
  210. package/src/resources/task-run.ts +125 -98
  211. package/src/resources/top-level.ts +24 -16
  212. package/src/version.ts +1 -1
  213. package/streaming.d.mts +1 -0
  214. package/streaming.d.mts.map +1 -1
  215. package/streaming.d.ts +1 -0
  216. package/streaming.d.ts.map +1 -1
  217. package/streaming.mjs +1 -0
  218. package/streaming.mjs.map +1 -1
  219. package/uploads.d.mts +1 -0
  220. package/uploads.d.mts.map +1 -1
  221. package/uploads.d.ts +1 -0
  222. package/uploads.d.ts.map +1 -1
  223. package/uploads.mjs +1 -0
  224. package/uploads.mjs.map +1 -1
  225. package/version.d.mts +1 -1
  226. package/version.d.ts +1 -1
  227. package/version.js +1 -1
  228. package/version.mjs +1 -1
  229. package/resources/beta/task-group.d.mts.map +0 -1
  230. package/resources/beta/task-group.d.ts.map +0 -1
  231. package/resources/beta/task-group.js.map +0 -1
  232. package/resources/beta/task-group.mjs.map +0 -1
  233. package/resources/beta/task-run.d.mts +0 -239
  234. package/resources/beta/task-run.d.mts.map +0 -1
  235. package/resources/beta/task-run.d.ts +0 -239
  236. package/resources/beta/task-run.d.ts.map +0 -1
  237. package/resources/beta/task-run.js +0 -81
  238. package/resources/beta/task-run.js.map +0 -1
  239. package/resources/beta/task-run.mjs +0 -77
  240. package/resources/beta/task-run.mjs.map +0 -1
  241. package/src/resources/beta/task-run.ts +0 -336
@@ -1,20 +1,19 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../core/resource';
4
- import * as Shared from '../shared';
5
- import * as TopLevelAPI from '../top-level';
6
4
  import * as FindAllAPI from './findall';
7
5
  import {
8
6
  FindAll,
9
7
  FindAllCancelParams,
10
- FindAllCancelResponse,
8
+ FindAllCandidate,
11
9
  FindAllCandidateMatchStatusEvent,
12
- FindAllCandidatesParams,
13
- FindAllCandidatesRequest,
14
- FindAllCandidatesResponse,
10
+ FindAllCandidateMetrics,
15
11
  FindAllCreateParams,
16
12
  FindAllEnrichInput,
17
13
  FindAllEnrichParams,
14
+ FindAllEntitySearchParams,
15
+ FindAllEntitySearchRequest,
16
+ FindAllEntitySearchResponse,
18
17
  FindAllEventsParams,
19
18
  FindAllEventsResponse,
20
19
  FindAllExtendInput,
@@ -25,437 +24,48 @@ import {
25
24
  FindAllRun,
26
25
  FindAllRunInput,
27
26
  FindAllRunResult,
27
+ FindAllRunStatus,
28
28
  FindAllRunStatusEvent,
29
29
  FindAllSchema,
30
30
  FindAllSchemaParams,
31
31
  FindAllSchemaUpdatedEvent,
32
32
  IngestInput,
33
- } from './findall';
34
- import * as TaskGroupAPI from './task-group';
35
- import {
36
- TaskGroup,
37
- TaskGroupAddRunsParams,
38
- TaskGroupCreateParams,
39
- TaskGroupEventsParams,
40
- TaskGroupEventsResponse,
41
- TaskGroupGetRunsParams,
42
- TaskGroupGetRunsResponse,
43
- TaskGroupRunResponse,
44
- TaskGroupStatus,
45
- } from './task-group';
46
- import * as TaskRunAPI from './task-run';
47
- import {
48
- BetaRunInput,
49
- BetaTaskRunResult,
50
- ErrorEvent,
51
- McpServer,
52
- McpToolCall,
33
+ MatchCondition,
53
34
  ParallelBeta,
54
- TaskRun,
55
- TaskRunCreateParams,
56
- TaskRunEvent,
57
- TaskRunEventsResponse,
58
- TaskRunResultParams,
59
- Webhook,
60
- } from './task-run';
61
- import { APIPromise } from '../../core/api-promise';
62
- import { buildHeaders } from '../../internal/headers';
63
- import { RequestOptions } from '../../internal/request-options';
35
+ } from './findall';
64
36
 
65
37
  export class Beta extends APIResource {
66
- taskRun: TaskRunAPI.TaskRun = new TaskRunAPI.TaskRun(this._client);
67
- taskGroup: TaskGroupAPI.TaskGroup = new TaskGroupAPI.TaskGroup(this._client);
68
38
  findall: FindAllAPI.FindAll = new FindAllAPI.FindAll(this._client);
69
-
70
- /**
71
- * Extracts relevant content from specific web URLs.
72
- *
73
- * @deprecated Use client.extract instead. For more info, see https://docs.parallel.ai/extract/extract-migration-guide
74
- */
75
- extract(params: BetaExtractParams, options?: RequestOptions): APIPromise<ExtractResponse> {
76
- const { betas, ...body } = params;
77
- return this._client.post('/v1beta/extract', {
78
- body,
79
- ...options,
80
- headers: buildHeaders([
81
- { 'parallel-beta': [...(betas ?? []), 'search-extract-2025-10-10'].toString() },
82
- options?.headers,
83
- ]),
84
- });
85
- }
86
-
87
- /**
88
- * Searches the web.
89
- *
90
- * @deprecated Use client.search instead. For more info, see https://docs.parallel.ai/search/search-migration-guide
91
- */
92
- search(params: BetaSearchParams, options?: RequestOptions): APIPromise<SearchResult> {
93
- const { betas, ...body } = params;
94
- return this._client.post('/v1beta/search', {
95
- body,
96
- ...options,
97
- headers: buildHeaders([
98
- { 'parallel-beta': [...(betas ?? []), 'search-extract-2025-10-10'].toString() },
99
- options?.headers,
100
- ]),
101
- });
102
- }
103
- }
104
-
105
- /**
106
- * Optional settings for returning relevant excerpts.
107
- */
108
- export interface ExcerptSettings {
109
- /**
110
- * Optional upper bound on the total number of characters to include per url.
111
- * Excerpts may contain fewer characters than this limit to maximize relevance and
112
- * token efficiency. Values below 1000 will be automatically set to 1000.
113
- */
114
- max_chars_per_result?: number | null;
115
-
116
- /**
117
- * Optional upper bound on the total number of characters to include across all
118
- * urls. Results may contain fewer characters than this limit to maximize relevance
119
- * and token efficiency. Values below 1000 will be automatically set to 1000. This
120
- * overall limit applies in addition to max_chars_per_result.
121
- */
122
- max_chars_total?: number | null;
123
- }
124
-
125
- /**
126
- * Fetch result.
127
- */
128
- export interface ExtractResponse {
129
- /**
130
- * Extract errors: requested URLs not in the results.
131
- */
132
- errors: Array<TopLevelAPI.ExtractError>;
133
-
134
- /**
135
- * Extract request ID, e.g. `extract_cad0a6d2dec046bd95ae900527d880e7`
136
- */
137
- extract_id: string;
138
-
139
- /**
140
- * Successful extract results.
141
- */
142
- results: Array<ExtractResult>;
143
-
144
- /**
145
- * Usage metrics for the extract request.
146
- */
147
- usage?: Array<TopLevelAPI.UsageItem> | null;
148
-
149
- /**
150
- * Warnings for the extract request, if any.
151
- */
152
- warnings?: Array<Shared.Warning> | null;
153
- }
154
-
155
- /**
156
- * Extract result for a single URL.
157
- */
158
- export interface ExtractResult {
159
- /**
160
- * URL associated with the search result.
161
- */
162
- url: string;
163
-
164
- /**
165
- * Relevant excerpted content from the URL, formatted as markdown.
166
- */
167
- excerpts?: Array<string> | null;
168
-
169
- /**
170
- * Full content from the URL formatted as markdown, if requested.
171
- */
172
- full_content?: string | null;
173
-
174
- /**
175
- * Publish date of the webpage in YYYY-MM-DD format, if available.
176
- */
177
- publish_date?: string | null;
178
-
179
- /**
180
- * Title of the webpage, if available.
181
- */
182
- title?: string | null;
183
- }
184
-
185
- /**
186
- * Output for the Search API.
187
- */
188
- export interface SearchResult {
189
- /**
190
- * A list of WebSearchResult objects, ordered by decreasing relevance.
191
- */
192
- results: Array<WebSearchResult>;
193
-
194
- /**
195
- * Search ID. Example: `search_cad0a6d2dec046bd95ae900527d880e7`
196
- */
197
- search_id: string;
198
-
199
- /**
200
- * Usage metrics for the search request.
201
- */
202
- usage?: Array<TopLevelAPI.UsageItem> | null;
203
-
204
- /**
205
- * Warnings for the search request, if any.
206
- */
207
- warnings?: Array<Shared.Warning> | null;
208
- }
209
-
210
- /**
211
- * A single search result from the web search API.
212
- */
213
- export interface WebSearchResult {
214
- /**
215
- * URL associated with the search result.
216
- */
217
- url: string;
218
-
219
- /**
220
- * Relevant excerpted content from the URL, formatted as markdown.
221
- */
222
- excerpts?: Array<string> | null;
223
-
224
- /**
225
- * Publish date of the webpage in YYYY-MM-DD format, if available.
226
- */
227
- publish_date?: string | null;
228
-
229
- /**
230
- * Title of the webpage, if available.
231
- */
232
- title?: string | null;
233
39
  }
234
40
 
235
- export type ExtractError = TopLevelAPI.ExtractError;
236
-
237
- export type FetchPolicy = TopLevelAPI.FetchPolicy;
238
-
239
- export type UsageItem = TopLevelAPI.UsageItem;
240
-
241
- export interface BetaExtractParams {
242
- /**
243
- * Body param
244
- */
245
- urls: Array<string>;
246
-
247
- /**
248
- * Body param: The model generating this request and consuming the results. Enables
249
- * optimizations and tailors default settings for the model's capabilities.
250
- */
251
- client_model?: string | null;
252
-
253
- /**
254
- * Body param: Include excerpts from each URL relevant to the search objective and
255
- * queries. Note that if neither objective nor search_queries is provided, excerpts
256
- * are redundant with full content.
257
- */
258
- excerpts?: boolean | ExcerptSettings;
259
-
260
- /**
261
- * Body param: Policy for live fetching web results.
262
- */
263
- fetch_policy?: TopLevelAPI.FetchPolicy | null;
264
-
265
- /**
266
- * Body param: Include full content from each URL. Note that if neither objective
267
- * nor search_queries is provided, excerpts are redundant with full content.
268
- */
269
- full_content?: boolean | BetaExtractParams.FullContentSettings;
270
-
271
- /**
272
- * Body param: If provided, focuses extracted content on the specified search
273
- * objective.
274
- */
275
- objective?: string | null;
276
-
277
- /**
278
- * Body param: If provided, focuses extracted content on the specified keyword
279
- * search queries.
280
- */
281
- search_queries?: Array<string> | null;
282
-
283
- /**
284
- * Body param: Session identifier to track calls across separate search and extract
285
- * calls, to be used as part of a larger task. Specifying it may give better
286
- * contextual results for subsequent API calls.
287
- */
288
- session_id?: string | null;
289
-
290
- /**
291
- * Header param: Optional header to specify the beta version(s) to enable.
292
- */
293
- betas?: Array<TaskRunAPI.ParallelBeta>;
294
- }
295
-
296
- export namespace BetaExtractParams {
297
- /**
298
- * Optional settings for returning full content.
299
- */
300
- export interface FullContentSettings {
301
- /**
302
- * Optional limit on the number of characters to include in the full content for
303
- * each url. Full content always starts at the beginning of the page and is
304
- * truncated at the limit if necessary.
305
- */
306
- max_chars_per_result?: number | null;
307
- }
308
- }
309
-
310
- export interface BetaSearchParams {
311
- /**
312
- * Body param: The model generating this request and consuming the results. Enables
313
- * optimizations and tailors default settings for the model's capabilities.
314
- */
315
- client_model?: string | null;
316
-
317
- /**
318
- * Body param: Optional settings to configure excerpt generation.
319
- */
320
- excerpts?: ExcerptSettings;
321
-
322
- /**
323
- * Body param: Policy for live fetching web results.
324
- */
325
- fetch_policy?: TopLevelAPI.FetchPolicy | null;
326
-
327
- /**
328
- * Body param: ISO 3166-1 alpha-2 country code for geo-targeted search results.
329
- */
330
- location?: string | null;
331
-
332
- /**
333
- * @deprecated Body param: DEPRECATED: Use `excerpts.max_chars_per_result` instead.
334
- */
335
- max_chars_per_result?: number | null;
336
-
337
- /**
338
- * Body param: Upper bound on the number of results to return. Defaults to 10 if
339
- * not provided.
340
- */
341
- max_results?: number | null;
342
-
343
- /**
344
- * Body param: Presets default values for parameters for different use cases.
345
- *
346
- * - `one-shot` returns more comprehensive results and longer excerpts to answer
347
- * questions from a single response
348
- * - `agentic` returns more concise, token-efficient results for use in an agentic
349
- * loop
350
- * - `fast` trades some quality for lower latency, with best results when used with
351
- * concise and high-quality objective and keyword queries
352
- */
353
- mode?: 'one-shot' | 'agentic' | 'fast' | null;
354
-
355
- /**
356
- * Body param: Natural-language description of what the web search is trying to
357
- * find. May include guidance about preferred sources or freshness. At least one of
358
- * objective or search_queries must be provided.
359
- */
360
- objective?: string | null;
361
-
362
- /**
363
- * @deprecated Body param: DEPRECATED: use `mode` instead.
364
- */
365
- processor?: 'base' | 'pro' | null;
366
-
367
- /**
368
- * Body param: Optional list of traditional keyword search queries to guide the
369
- * search. May contain search operators. At least one of objective or
370
- * search_queries must be provided.
371
- */
372
- search_queries?: Array<string> | null;
373
-
374
- /**
375
- * Body param: Session identifier to track calls across separate search and extract
376
- * calls, to be used as part of a larger task. Specifying it may give better
377
- * contextual results for subsequent API calls.
378
- */
379
- session_id?: string | null;
380
-
381
- /**
382
- * Body param: Source policy for web search results.
383
- *
384
- * This policy governs which sources are allowed/disallowed in results.
385
- */
386
- source_policy?: Shared.SourcePolicy | null;
387
-
388
- /**
389
- * Header param: Optional header to specify the beta version(s) to enable.
390
- */
391
- betas?: Array<TaskRunAPI.ParallelBeta>;
392
- }
393
-
394
- Beta.TaskRun = TaskRun;
395
41
  Beta.FindAll = FindAll;
396
42
 
397
43
  export declare namespace Beta {
398
- export {
399
- type ExcerptSettings as ExcerptSettings,
400
- type ExtractResponse as ExtractResponse,
401
- type ExtractResult as ExtractResult,
402
- type SearchResult as SearchResult,
403
- type WebSearchResult as WebSearchResult,
404
- type ExtractError as ExtractError,
405
- type FetchPolicy as FetchPolicy,
406
- type UsageItem as UsageItem,
407
- type BetaExtractParams as BetaExtractParams,
408
- type BetaSearchParams as BetaSearchParams,
409
- };
410
-
411
- export {
412
- TaskRun as TaskRun,
413
- type ParallelBeta as ParallelBeta,
414
- type TaskRunEventsResponse as TaskRunEventsResponse,
415
- type BetaRunInput as BetaRunInput,
416
- type BetaTaskRunResult as BetaTaskRunResult,
417
- type Webhook as Webhook,
418
- type McpServer as McpServer,
419
- type McpToolCall as McpToolCall,
420
- type TaskRunEvent as TaskRunEvent,
421
- type ErrorEvent as ErrorEvent,
422
- type TaskRunCreateParams as TaskRunCreateParams,
423
- type TaskRunResultParams as TaskRunResultParams,
424
- };
425
-
426
- export {
427
- type TaskGroup as TaskGroup,
428
- type TaskGroupRunResponse as TaskGroupRunResponse,
429
- type TaskGroupStatus as TaskGroupStatus,
430
- type TaskGroupEventsResponse as TaskGroupEventsResponse,
431
- type TaskGroupGetRunsResponse as TaskGroupGetRunsResponse,
432
- type TaskGroupCreateParams as TaskGroupCreateParams,
433
- type TaskGroupAddRunsParams as TaskGroupAddRunsParams,
434
- type TaskGroupEventsParams as TaskGroupEventsParams,
435
- type TaskGroupGetRunsParams as TaskGroupGetRunsParams,
436
- };
437
-
438
44
  export {
439
45
  FindAll as FindAll,
46
+ type FindAllCandidate as FindAllCandidate,
440
47
  type FindAllCandidateMatchStatusEvent as FindAllCandidateMatchStatusEvent,
441
- type FindAllCandidatesRequest as FindAllCandidatesRequest,
442
- type FindAllCandidatesResponse as FindAllCandidatesResponse,
48
+ type FindAllCandidateMetrics as FindAllCandidateMetrics,
443
49
  type FindAllEnrichInput as FindAllEnrichInput,
50
+ type FindAllEntitySearchRequest as FindAllEntitySearchRequest,
51
+ type FindAllEntitySearchResponse as FindAllEntitySearchResponse,
444
52
  type FindAllExtendInput as FindAllExtendInput,
445
53
  type FindAllRun as FindAllRun,
446
54
  type FindAllRunInput as FindAllRunInput,
447
55
  type FindAllRunResult as FindAllRunResult,
56
+ type FindAllRunStatus as FindAllRunStatus,
448
57
  type FindAllRunStatusEvent as FindAllRunStatusEvent,
449
58
  type FindAllSchema as FindAllSchema,
450
59
  type FindAllSchemaUpdatedEvent as FindAllSchemaUpdatedEvent,
451
60
  type IngestInput as IngestInput,
452
- type FindAllCancelResponse as FindAllCancelResponse,
61
+ type MatchCondition as MatchCondition,
62
+ type ParallelBeta as ParallelBeta,
453
63
  type FindAllEventsResponse as FindAllEventsResponse,
454
64
  type FindAllCreateParams as FindAllCreateParams,
455
65
  type FindAllRetrieveParams as FindAllRetrieveParams,
456
66
  type FindAllCancelParams as FindAllCancelParams,
457
- type FindAllCandidatesParams as FindAllCandidatesParams,
458
67
  type FindAllEnrichParams as FindAllEnrichParams,
68
+ type FindAllEntitySearchParams as FindAllEntitySearchParams,
459
69
  type FindAllEventsParams as FindAllEventsParams,
460
70
  type FindAllExtendParams as FindAllExtendParams,
461
71
  type FindAllIngestParams as FindAllIngestParams,