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.
- package/CHANGELOG.md +54 -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 +29 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +29 -8
- package/client.d.ts.map +1 -1
- package/client.js +34 -4
- package/client.js.map +1 -1
- package/client.mjs +34 -4
- 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 +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- 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 +10 -10
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +10 -10
- 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.d.mts +0 -3
- package/internal/utils/query.d.mts.map +1 -1
- package/internal/utils/query.d.ts +0 -3
- package/internal/utils/query.d.ts.map +1 -1
- package/internal/utils/query.js +3 -16
- package/internal/utils/query.js.map +1 -1
- package/internal/utils/query.mjs +2 -16
- 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 -270
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +2 -270
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js +0 -39
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs +0 -39
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/findall.d.mts +202 -247
- package/resources/beta/findall.d.mts.map +1 -1
- package/resources/beta/findall.d.ts +202 -247
- package/resources/beta/findall.d.ts.map +1 -1
- package/resources/beta/findall.js +28 -27
- package/resources/beta/findall.js.map +1 -1
- package/resources/beta/findall.mjs +28 -27
- 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 +4 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/monitor.d.mts +625 -0
- package/resources/monitor.d.mts.map +1 -0
- package/resources/monitor.d.ts +625 -0
- package/resources/monitor.d.ts.map +1 -0
- package/resources/monitor.js +140 -0
- package/resources/monitor.js.map +1 -0
- package/resources/monitor.mjs +136 -0
- package/resources/monitor.mjs.map +1 -0
- package/resources/{beta/task-group.d.mts → task-group.d.mts} +38 -68
- package/resources/task-group.d.mts.map +1 -0
- package/resources/{beta/task-group.d.ts → task-group.d.ts} +38 -68
- package/resources/task-group.d.ts.map +1 -0
- package/resources/{beta/task-group.js → task-group.js} +24 -64
- package/resources/task-group.js.map +1 -0
- package/resources/{beta/task-group.mjs → task-group.mjs} +24 -64
- package/resources/task-group.mjs.map +1 -0
- package/resources/task-run.d.mts +100 -83
- package/resources/task-run.d.mts.map +1 -1
- package/resources/task-run.d.ts +100 -83
- package/resources/task-run.d.ts.map +1 -1
- package/resources/task-run.js +14 -1
- package/resources/task-run.js.map +1 -1
- package/resources/task-run.mjs +14 -1
- package/resources/task-run.mjs.map +1 -1
- package/resources/top-level.d.mts +20 -16
- package/resources/top-level.d.mts.map +1 -1
- package/resources/top-level.d.ts +20 -16
- 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/client.ts +120 -4
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/log.ts +2 -1
- package/src/internal/utils/query.ts +2 -18
- package/src/resources/beta/api.md +9 -59
- package/src/resources/beta/beta.ts +16 -406
- package/src/resources/beta/findall.ts +252 -284
- package/src/resources/beta/index.ts +8 -30
- package/src/resources/index.ts +42 -0
- package/src/resources/monitor.ts +752 -0
- package/src/resources/{beta/task-group.ts → task-group.ts} +58 -93
- package/src/resources/task-run.ts +125 -98
- package/src/resources/top-level.ts +24 -16
- 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.map +0 -1
- package/resources/beta/task-group.d.ts.map +0 -1
- package/resources/beta/task-group.js.map +0 -1
- package/resources/beta/task-group.mjs.map +0 -1
- package/resources/beta/task-run.d.mts +0 -239
- package/resources/beta/task-run.d.mts.map +0 -1
- package/resources/beta/task-run.d.ts +0 -239
- 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-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
|
-
|
|
8
|
+
FindAllCandidate,
|
|
11
9
|
FindAllCandidateMatchStatusEvent,
|
|
12
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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,
|