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