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,278 +1,10 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import * as Shared from "../shared.mjs";
|
|
3
|
-
import * as TopLevelAPI from "../top-level.mjs";
|
|
4
2
|
import * as FindAllAPI from "./findall.mjs";
|
|
5
|
-
import { FindAll, FindAllCancelParams,
|
|
6
|
-
import * as TaskGroupAPI from "./task-group.mjs";
|
|
7
|
-
import { TaskGroup, TaskGroupAddRunsParams, TaskGroupCreateParams, TaskGroupEventsParams, TaskGroupEventsResponse, TaskGroupGetRunsParams, TaskGroupGetRunsResponse, TaskGroupRunResponse, TaskGroupStatus } from "./task-group.mjs";
|
|
8
|
-
import * as TaskRunAPI from "./task-run.mjs";
|
|
9
|
-
import { BetaRunInput, BetaTaskRunResult, ErrorEvent, McpServer, McpToolCall, ParallelBeta, TaskRun, TaskRunCreateParams, TaskRunEvent, TaskRunEventsResponse, TaskRunResultParams, Webhook } from "./task-run.mjs";
|
|
10
|
-
import { APIPromise } from "../../core/api-promise.mjs";
|
|
11
|
-
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
3
|
+
import { FindAll, FindAllCancelParams, FindAllCandidate, FindAllCandidateMatchStatusEvent, FindAllCandidateMetrics, FindAllCreateParams, FindAllEnrichInput, FindAllEnrichParams, FindAllEntitySearchParams, FindAllEntitySearchRequest, FindAllEntitySearchResponse, FindAllEventsParams, FindAllEventsResponse, FindAllExtendInput, FindAllExtendParams, FindAllIngestParams, FindAllResultParams, FindAllRetrieveParams, FindAllRun, FindAllRunInput, FindAllRunResult, FindAllRunStatus, FindAllRunStatusEvent, FindAllSchema, FindAllSchemaParams, FindAllSchemaUpdatedEvent, IngestInput, MatchCondition, ParallelBeta } from "./findall.mjs";
|
|
12
4
|
export declare class Beta extends APIResource {
|
|
13
|
-
taskRun: TaskRunAPI.TaskRun;
|
|
14
|
-
taskGroup: TaskGroupAPI.TaskGroup;
|
|
15
5
|
findall: FindAllAPI.FindAll;
|
|
16
|
-
/**
|
|
17
|
-
* Extracts relevant content from specific web URLs.
|
|
18
|
-
*
|
|
19
|
-
* @deprecated Use client.extract instead. For more info, see https://docs.parallel.ai/extract/extract-migration-guide
|
|
20
|
-
*/
|
|
21
|
-
extract(params: BetaExtractParams, options?: RequestOptions): APIPromise<ExtractResponse>;
|
|
22
|
-
/**
|
|
23
|
-
* Searches the web.
|
|
24
|
-
*
|
|
25
|
-
* @deprecated Use client.search instead. For more info, see https://docs.parallel.ai/search/search-migration-guide
|
|
26
|
-
*/
|
|
27
|
-
search(params: BetaSearchParams, options?: RequestOptions): APIPromise<SearchResult>;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Optional settings for returning relevant excerpts.
|
|
31
|
-
*/
|
|
32
|
-
export interface ExcerptSettings {
|
|
33
|
-
/**
|
|
34
|
-
* Optional upper bound on the total number of characters to include per url.
|
|
35
|
-
* Excerpts may contain fewer characters than this limit to maximize relevance and
|
|
36
|
-
* token efficiency. Values below 1000 will be automatically set to 1000.
|
|
37
|
-
*/
|
|
38
|
-
max_chars_per_result?: number | null;
|
|
39
|
-
/**
|
|
40
|
-
* Optional upper bound on the total number of characters to include across all
|
|
41
|
-
* urls. Results may contain fewer characters than this limit to maximize relevance
|
|
42
|
-
* and token efficiency. Values below 1000 will be automatically set to 1000. This
|
|
43
|
-
* overall limit applies in addition to max_chars_per_result.
|
|
44
|
-
*/
|
|
45
|
-
max_chars_total?: number | null;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Fetch result.
|
|
49
|
-
*/
|
|
50
|
-
export interface ExtractResponse {
|
|
51
|
-
/**
|
|
52
|
-
* Extract errors: requested URLs not in the results.
|
|
53
|
-
*/
|
|
54
|
-
errors: Array<TopLevelAPI.ExtractError>;
|
|
55
|
-
/**
|
|
56
|
-
* Extract request ID, e.g. `extract_cad0a6d2dec046bd95ae900527d880e7`
|
|
57
|
-
*/
|
|
58
|
-
extract_id: string;
|
|
59
|
-
/**
|
|
60
|
-
* Successful extract results.
|
|
61
|
-
*/
|
|
62
|
-
results: Array<ExtractResult>;
|
|
63
|
-
/**
|
|
64
|
-
* Usage metrics for the extract request.
|
|
65
|
-
*/
|
|
66
|
-
usage?: Array<TopLevelAPI.UsageItem> | null;
|
|
67
|
-
/**
|
|
68
|
-
* Warnings for the extract request, if any.
|
|
69
|
-
*/
|
|
70
|
-
warnings?: Array<Shared.Warning> | null;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Extract result for a single URL.
|
|
74
|
-
*/
|
|
75
|
-
export interface ExtractResult {
|
|
76
|
-
/**
|
|
77
|
-
* URL associated with the search result.
|
|
78
|
-
*/
|
|
79
|
-
url: string;
|
|
80
|
-
/**
|
|
81
|
-
* Relevant excerpted content from the URL, formatted as markdown.
|
|
82
|
-
*/
|
|
83
|
-
excerpts?: Array<string> | null;
|
|
84
|
-
/**
|
|
85
|
-
* Full content from the URL formatted as markdown, if requested.
|
|
86
|
-
*/
|
|
87
|
-
full_content?: string | null;
|
|
88
|
-
/**
|
|
89
|
-
* Publish date of the webpage in YYYY-MM-DD format, if available.
|
|
90
|
-
*/
|
|
91
|
-
publish_date?: string | null;
|
|
92
|
-
/**
|
|
93
|
-
* Title of the webpage, if available.
|
|
94
|
-
*/
|
|
95
|
-
title?: string | null;
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Output for the Search API.
|
|
99
|
-
*/
|
|
100
|
-
export interface SearchResult {
|
|
101
|
-
/**
|
|
102
|
-
* A list of WebSearchResult objects, ordered by decreasing relevance.
|
|
103
|
-
*/
|
|
104
|
-
results: Array<WebSearchResult>;
|
|
105
|
-
/**
|
|
106
|
-
* Search ID. Example: `search_cad0a6d2dec046bd95ae900527d880e7`
|
|
107
|
-
*/
|
|
108
|
-
search_id: string;
|
|
109
|
-
/**
|
|
110
|
-
* Usage metrics for the search request.
|
|
111
|
-
*/
|
|
112
|
-
usage?: Array<TopLevelAPI.UsageItem> | null;
|
|
113
|
-
/**
|
|
114
|
-
* Warnings for the search request, if any.
|
|
115
|
-
*/
|
|
116
|
-
warnings?: Array<Shared.Warning> | null;
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* A single search result from the web search API.
|
|
120
|
-
*/
|
|
121
|
-
export interface WebSearchResult {
|
|
122
|
-
/**
|
|
123
|
-
* URL associated with the search result.
|
|
124
|
-
*/
|
|
125
|
-
url: string;
|
|
126
|
-
/**
|
|
127
|
-
* Relevant excerpted content from the URL, formatted as markdown.
|
|
128
|
-
*/
|
|
129
|
-
excerpts?: Array<string> | null;
|
|
130
|
-
/**
|
|
131
|
-
* Publish date of the webpage in YYYY-MM-DD format, if available.
|
|
132
|
-
*/
|
|
133
|
-
publish_date?: string | null;
|
|
134
|
-
/**
|
|
135
|
-
* Title of the webpage, if available.
|
|
136
|
-
*/
|
|
137
|
-
title?: string | null;
|
|
138
|
-
}
|
|
139
|
-
export type ExtractError = TopLevelAPI.ExtractError;
|
|
140
|
-
export type FetchPolicy = TopLevelAPI.FetchPolicy;
|
|
141
|
-
export type UsageItem = TopLevelAPI.UsageItem;
|
|
142
|
-
export interface BetaExtractParams {
|
|
143
|
-
/**
|
|
144
|
-
* Body param
|
|
145
|
-
*/
|
|
146
|
-
urls: Array<string>;
|
|
147
|
-
/**
|
|
148
|
-
* Body param: The model generating this request and consuming the results. Enables
|
|
149
|
-
* optimizations and tailors default settings for the model's capabilities.
|
|
150
|
-
*/
|
|
151
|
-
client_model?: string | null;
|
|
152
|
-
/**
|
|
153
|
-
* Body param: Include excerpts from each URL relevant to the search objective and
|
|
154
|
-
* queries. Note that if neither objective nor search_queries is provided, excerpts
|
|
155
|
-
* are redundant with full content.
|
|
156
|
-
*/
|
|
157
|
-
excerpts?: boolean | ExcerptSettings;
|
|
158
|
-
/**
|
|
159
|
-
* Body param: Policy for live fetching web results.
|
|
160
|
-
*/
|
|
161
|
-
fetch_policy?: TopLevelAPI.FetchPolicy | null;
|
|
162
|
-
/**
|
|
163
|
-
* Body param: Include full content from each URL. Note that if neither objective
|
|
164
|
-
* nor search_queries is provided, excerpts are redundant with full content.
|
|
165
|
-
*/
|
|
166
|
-
full_content?: boolean | BetaExtractParams.FullContentSettings;
|
|
167
|
-
/**
|
|
168
|
-
* Body param: If provided, focuses extracted content on the specified search
|
|
169
|
-
* objective.
|
|
170
|
-
*/
|
|
171
|
-
objective?: string | null;
|
|
172
|
-
/**
|
|
173
|
-
* Body param: If provided, focuses extracted content on the specified keyword
|
|
174
|
-
* search queries.
|
|
175
|
-
*/
|
|
176
|
-
search_queries?: Array<string> | null;
|
|
177
|
-
/**
|
|
178
|
-
* Body param: Session identifier to track calls across separate search and extract
|
|
179
|
-
* calls, to be used as part of a larger task. Specifying it may give better
|
|
180
|
-
* contextual results for subsequent API calls.
|
|
181
|
-
*/
|
|
182
|
-
session_id?: string | null;
|
|
183
|
-
/**
|
|
184
|
-
* Header param: Optional header to specify the beta version(s) to enable.
|
|
185
|
-
*/
|
|
186
|
-
betas?: Array<TaskRunAPI.ParallelBeta>;
|
|
187
|
-
}
|
|
188
|
-
export declare namespace BetaExtractParams {
|
|
189
|
-
/**
|
|
190
|
-
* Optional settings for returning full content.
|
|
191
|
-
*/
|
|
192
|
-
interface FullContentSettings {
|
|
193
|
-
/**
|
|
194
|
-
* Optional limit on the number of characters to include in the full content for
|
|
195
|
-
* each url. Full content always starts at the beginning of the page and is
|
|
196
|
-
* truncated at the limit if necessary.
|
|
197
|
-
*/
|
|
198
|
-
max_chars_per_result?: number | null;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
export interface BetaSearchParams {
|
|
202
|
-
/**
|
|
203
|
-
* Body param: The model generating this request and consuming the results. Enables
|
|
204
|
-
* optimizations and tailors default settings for the model's capabilities.
|
|
205
|
-
*/
|
|
206
|
-
client_model?: string | null;
|
|
207
|
-
/**
|
|
208
|
-
* Body param: Optional settings to configure excerpt generation.
|
|
209
|
-
*/
|
|
210
|
-
excerpts?: ExcerptSettings;
|
|
211
|
-
/**
|
|
212
|
-
* Body param: Policy for live fetching web results.
|
|
213
|
-
*/
|
|
214
|
-
fetch_policy?: TopLevelAPI.FetchPolicy | null;
|
|
215
|
-
/**
|
|
216
|
-
* Body param: ISO 3166-1 alpha-2 country code for geo-targeted search results.
|
|
217
|
-
*/
|
|
218
|
-
location?: string | null;
|
|
219
|
-
/**
|
|
220
|
-
* @deprecated Body param: DEPRECATED: Use `excerpts.max_chars_per_result` instead.
|
|
221
|
-
*/
|
|
222
|
-
max_chars_per_result?: number | null;
|
|
223
|
-
/**
|
|
224
|
-
* Body param: Upper bound on the number of results to return. Defaults to 10 if
|
|
225
|
-
* not provided.
|
|
226
|
-
*/
|
|
227
|
-
max_results?: number | null;
|
|
228
|
-
/**
|
|
229
|
-
* Body param: Presets default values for parameters for different use cases.
|
|
230
|
-
*
|
|
231
|
-
* - `one-shot` returns more comprehensive results and longer excerpts to answer
|
|
232
|
-
* questions from a single response
|
|
233
|
-
* - `agentic` returns more concise, token-efficient results for use in an agentic
|
|
234
|
-
* loop
|
|
235
|
-
* - `fast` trades some quality for lower latency, with best results when used with
|
|
236
|
-
* concise and high-quality objective and keyword queries
|
|
237
|
-
*/
|
|
238
|
-
mode?: 'one-shot' | 'agentic' | 'fast' | null;
|
|
239
|
-
/**
|
|
240
|
-
* Body param: Natural-language description of what the web search is trying to
|
|
241
|
-
* find. May include guidance about preferred sources or freshness. At least one of
|
|
242
|
-
* objective or search_queries must be provided.
|
|
243
|
-
*/
|
|
244
|
-
objective?: string | null;
|
|
245
|
-
/**
|
|
246
|
-
* @deprecated Body param: DEPRECATED: use `mode` instead.
|
|
247
|
-
*/
|
|
248
|
-
processor?: 'base' | 'pro' | null;
|
|
249
|
-
/**
|
|
250
|
-
* Body param: Optional list of traditional keyword search queries to guide the
|
|
251
|
-
* search. May contain search operators. At least one of objective or
|
|
252
|
-
* search_queries must be provided.
|
|
253
|
-
*/
|
|
254
|
-
search_queries?: Array<string> | null;
|
|
255
|
-
/**
|
|
256
|
-
* Body param: Session identifier to track calls across separate search and extract
|
|
257
|
-
* calls, to be used as part of a larger task. Specifying it may give better
|
|
258
|
-
* contextual results for subsequent API calls.
|
|
259
|
-
*/
|
|
260
|
-
session_id?: string | null;
|
|
261
|
-
/**
|
|
262
|
-
* Body param: Source policy for web search results.
|
|
263
|
-
*
|
|
264
|
-
* This policy governs which sources are allowed/disallowed in results.
|
|
265
|
-
*/
|
|
266
|
-
source_policy?: Shared.SourcePolicy | null;
|
|
267
|
-
/**
|
|
268
|
-
* Header param: Optional header to specify the beta version(s) to enable.
|
|
269
|
-
*/
|
|
270
|
-
betas?: Array<TaskRunAPI.ParallelBeta>;
|
|
271
6
|
}
|
|
272
7
|
export declare namespace Beta {
|
|
273
|
-
export { type
|
|
274
|
-
export { TaskRun as TaskRun, type ParallelBeta as ParallelBeta, type TaskRunEventsResponse as TaskRunEventsResponse, type BetaRunInput as BetaRunInput, type BetaTaskRunResult as BetaTaskRunResult, type Webhook as Webhook, type McpServer as McpServer, type McpToolCall as McpToolCall, type TaskRunEvent as TaskRunEvent, type ErrorEvent as ErrorEvent, type TaskRunCreateParams as TaskRunCreateParams, type TaskRunResultParams as TaskRunResultParams, };
|
|
275
|
-
export { type TaskGroup as TaskGroup, type TaskGroupRunResponse as TaskGroupRunResponse, type TaskGroupStatus as TaskGroupStatus, type TaskGroupEventsResponse as TaskGroupEventsResponse, type TaskGroupGetRunsResponse as TaskGroupGetRunsResponse, type TaskGroupCreateParams as TaskGroupCreateParams, type TaskGroupAddRunsParams as TaskGroupAddRunsParams, type TaskGroupEventsParams as TaskGroupEventsParams, type TaskGroupGetRunsParams as TaskGroupGetRunsParams, };
|
|
276
|
-
export { FindAll as FindAll, type FindAllCandidateMatchStatusEvent as FindAllCandidateMatchStatusEvent, type FindAllCandidatesRequest as FindAllCandidatesRequest, type FindAllCandidatesResponse as FindAllCandidatesResponse, type FindAllEnrichInput as FindAllEnrichInput, type FindAllExtendInput as FindAllExtendInput, type FindAllRun as FindAllRun, type FindAllRunInput as FindAllRunInput, type FindAllRunResult as FindAllRunResult, type FindAllRunStatusEvent as FindAllRunStatusEvent, type FindAllSchema as FindAllSchema, type FindAllSchemaUpdatedEvent as FindAllSchemaUpdatedEvent, type IngestInput as IngestInput, type FindAllCancelResponse as FindAllCancelResponse, type FindAllEventsResponse as FindAllEventsResponse, type FindAllCreateParams as FindAllCreateParams, type FindAllRetrieveParams as FindAllRetrieveParams, type FindAllCancelParams as FindAllCancelParams, type FindAllCandidatesParams as FindAllCandidatesParams, type FindAllEnrichParams as FindAllEnrichParams, type FindAllEventsParams as FindAllEventsParams, type FindAllExtendParams as FindAllExtendParams, type FindAllIngestParams as FindAllIngestParams, type FindAllResultParams as FindAllResultParams, type FindAllSchemaParams as FindAllSchemaParams, };
|
|
8
|
+
export { FindAll as FindAll, type FindAllCandidate as FindAllCandidate, type FindAllCandidateMatchStatusEvent as FindAllCandidateMatchStatusEvent, type FindAllCandidateMetrics as FindAllCandidateMetrics, type FindAllEnrichInput as FindAllEnrichInput, type FindAllEntitySearchRequest as FindAllEntitySearchRequest, type FindAllEntitySearchResponse as FindAllEntitySearchResponse, type FindAllExtendInput as FindAllExtendInput, type FindAllRun as FindAllRun, type FindAllRunInput as FindAllRunInput, type FindAllRunResult as FindAllRunResult, type FindAllRunStatus as FindAllRunStatus, type FindAllRunStatusEvent as FindAllRunStatusEvent, type FindAllSchema as FindAllSchema, type FindAllSchemaUpdatedEvent as FindAllSchemaUpdatedEvent, type IngestInput as IngestInput, type MatchCondition as MatchCondition, type ParallelBeta as ParallelBeta, type FindAllEventsResponse as FindAllEventsResponse, type FindAllCreateParams as FindAllCreateParams, type FindAllRetrieveParams as FindAllRetrieveParams, type FindAllCancelParams as FindAllCancelParams, type FindAllEnrichParams as FindAllEnrichParams, type FindAllEntitySearchParams as FindAllEntitySearchParams, type FindAllEventsParams as FindAllEventsParams, type FindAllExtendParams as FindAllExtendParams, type FindAllIngestParams as FindAllIngestParams, type FindAllResultParams as FindAllResultParams, type FindAllSchemaParams as FindAllSchemaParams, };
|
|
277
9
|
}
|
|
278
10
|
//# sourceMappingURL=beta.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"beta.d.mts","sourceRoot":"","sources":["../../src/resources/beta/beta.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"beta.d.mts","sourceRoot":"","sources":["../../src/resources/beta/beta.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EACL,OAAO,EACP,mBAAmB,EACnB,gBAAgB,EAChB,gCAAgC,EAChC,uBAAuB,EACvB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,EAC3B,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,qBAAqB,EACrB,aAAa,EACb,mBAAmB,EACnB,yBAAyB,EACzB,WAAW,EACX,cAAc,EACd,YAAY,EACb,sBAAkB;AAEnB,qBAAa,IAAK,SAAQ,WAAW;IACnC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;CACpE;AAID,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
package/resources/beta/beta.d.ts
CHANGED
|
@@ -1,278 +1,10 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
|
-
import * as Shared from "../shared.js";
|
|
3
|
-
import * as TopLevelAPI from "../top-level.js";
|
|
4
2
|
import * as FindAllAPI from "./findall.js";
|
|
5
|
-
import { FindAll, FindAllCancelParams,
|
|
6
|
-
import * as TaskGroupAPI from "./task-group.js";
|
|
7
|
-
import { TaskGroup, TaskGroupAddRunsParams, TaskGroupCreateParams, TaskGroupEventsParams, TaskGroupEventsResponse, TaskGroupGetRunsParams, TaskGroupGetRunsResponse, TaskGroupRunResponse, TaskGroupStatus } from "./task-group.js";
|
|
8
|
-
import * as TaskRunAPI from "./task-run.js";
|
|
9
|
-
import { BetaRunInput, BetaTaskRunResult, ErrorEvent, McpServer, McpToolCall, ParallelBeta, TaskRun, TaskRunCreateParams, TaskRunEvent, TaskRunEventsResponse, TaskRunResultParams, Webhook } from "./task-run.js";
|
|
10
|
-
import { APIPromise } from "../../core/api-promise.js";
|
|
11
|
-
import { RequestOptions } from "../../internal/request-options.js";
|
|
3
|
+
import { FindAll, FindAllCancelParams, FindAllCandidate, FindAllCandidateMatchStatusEvent, FindAllCandidateMetrics, FindAllCreateParams, FindAllEnrichInput, FindAllEnrichParams, FindAllEntitySearchParams, FindAllEntitySearchRequest, FindAllEntitySearchResponse, FindAllEventsParams, FindAllEventsResponse, FindAllExtendInput, FindAllExtendParams, FindAllIngestParams, FindAllResultParams, FindAllRetrieveParams, FindAllRun, FindAllRunInput, FindAllRunResult, FindAllRunStatus, FindAllRunStatusEvent, FindAllSchema, FindAllSchemaParams, FindAllSchemaUpdatedEvent, IngestInput, MatchCondition, ParallelBeta } from "./findall.js";
|
|
12
4
|
export declare class Beta extends APIResource {
|
|
13
|
-
taskRun: TaskRunAPI.TaskRun;
|
|
14
|
-
taskGroup: TaskGroupAPI.TaskGroup;
|
|
15
5
|
findall: FindAllAPI.FindAll;
|
|
16
|
-
/**
|
|
17
|
-
* Extracts relevant content from specific web URLs.
|
|
18
|
-
*
|
|
19
|
-
* @deprecated Use client.extract instead. For more info, see https://docs.parallel.ai/extract/extract-migration-guide
|
|
20
|
-
*/
|
|
21
|
-
extract(params: BetaExtractParams, options?: RequestOptions): APIPromise<ExtractResponse>;
|
|
22
|
-
/**
|
|
23
|
-
* Searches the web.
|
|
24
|
-
*
|
|
25
|
-
* @deprecated Use client.search instead. For more info, see https://docs.parallel.ai/search/search-migration-guide
|
|
26
|
-
*/
|
|
27
|
-
search(params: BetaSearchParams, options?: RequestOptions): APIPromise<SearchResult>;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Optional settings for returning relevant excerpts.
|
|
31
|
-
*/
|
|
32
|
-
export interface ExcerptSettings {
|
|
33
|
-
/**
|
|
34
|
-
* Optional upper bound on the total number of characters to include per url.
|
|
35
|
-
* Excerpts may contain fewer characters than this limit to maximize relevance and
|
|
36
|
-
* token efficiency. Values below 1000 will be automatically set to 1000.
|
|
37
|
-
*/
|
|
38
|
-
max_chars_per_result?: number | null;
|
|
39
|
-
/**
|
|
40
|
-
* Optional upper bound on the total number of characters to include across all
|
|
41
|
-
* urls. Results may contain fewer characters than this limit to maximize relevance
|
|
42
|
-
* and token efficiency. Values below 1000 will be automatically set to 1000. This
|
|
43
|
-
* overall limit applies in addition to max_chars_per_result.
|
|
44
|
-
*/
|
|
45
|
-
max_chars_total?: number | null;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Fetch result.
|
|
49
|
-
*/
|
|
50
|
-
export interface ExtractResponse {
|
|
51
|
-
/**
|
|
52
|
-
* Extract errors: requested URLs not in the results.
|
|
53
|
-
*/
|
|
54
|
-
errors: Array<TopLevelAPI.ExtractError>;
|
|
55
|
-
/**
|
|
56
|
-
* Extract request ID, e.g. `extract_cad0a6d2dec046bd95ae900527d880e7`
|
|
57
|
-
*/
|
|
58
|
-
extract_id: string;
|
|
59
|
-
/**
|
|
60
|
-
* Successful extract results.
|
|
61
|
-
*/
|
|
62
|
-
results: Array<ExtractResult>;
|
|
63
|
-
/**
|
|
64
|
-
* Usage metrics for the extract request.
|
|
65
|
-
*/
|
|
66
|
-
usage?: Array<TopLevelAPI.UsageItem> | null;
|
|
67
|
-
/**
|
|
68
|
-
* Warnings for the extract request, if any.
|
|
69
|
-
*/
|
|
70
|
-
warnings?: Array<Shared.Warning> | null;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Extract result for a single URL.
|
|
74
|
-
*/
|
|
75
|
-
export interface ExtractResult {
|
|
76
|
-
/**
|
|
77
|
-
* URL associated with the search result.
|
|
78
|
-
*/
|
|
79
|
-
url: string;
|
|
80
|
-
/**
|
|
81
|
-
* Relevant excerpted content from the URL, formatted as markdown.
|
|
82
|
-
*/
|
|
83
|
-
excerpts?: Array<string> | null;
|
|
84
|
-
/**
|
|
85
|
-
* Full content from the URL formatted as markdown, if requested.
|
|
86
|
-
*/
|
|
87
|
-
full_content?: string | null;
|
|
88
|
-
/**
|
|
89
|
-
* Publish date of the webpage in YYYY-MM-DD format, if available.
|
|
90
|
-
*/
|
|
91
|
-
publish_date?: string | null;
|
|
92
|
-
/**
|
|
93
|
-
* Title of the webpage, if available.
|
|
94
|
-
*/
|
|
95
|
-
title?: string | null;
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Output for the Search API.
|
|
99
|
-
*/
|
|
100
|
-
export interface SearchResult {
|
|
101
|
-
/**
|
|
102
|
-
* A list of WebSearchResult objects, ordered by decreasing relevance.
|
|
103
|
-
*/
|
|
104
|
-
results: Array<WebSearchResult>;
|
|
105
|
-
/**
|
|
106
|
-
* Search ID. Example: `search_cad0a6d2dec046bd95ae900527d880e7`
|
|
107
|
-
*/
|
|
108
|
-
search_id: string;
|
|
109
|
-
/**
|
|
110
|
-
* Usage metrics for the search request.
|
|
111
|
-
*/
|
|
112
|
-
usage?: Array<TopLevelAPI.UsageItem> | null;
|
|
113
|
-
/**
|
|
114
|
-
* Warnings for the search request, if any.
|
|
115
|
-
*/
|
|
116
|
-
warnings?: Array<Shared.Warning> | null;
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* A single search result from the web search API.
|
|
120
|
-
*/
|
|
121
|
-
export interface WebSearchResult {
|
|
122
|
-
/**
|
|
123
|
-
* URL associated with the search result.
|
|
124
|
-
*/
|
|
125
|
-
url: string;
|
|
126
|
-
/**
|
|
127
|
-
* Relevant excerpted content from the URL, formatted as markdown.
|
|
128
|
-
*/
|
|
129
|
-
excerpts?: Array<string> | null;
|
|
130
|
-
/**
|
|
131
|
-
* Publish date of the webpage in YYYY-MM-DD format, if available.
|
|
132
|
-
*/
|
|
133
|
-
publish_date?: string | null;
|
|
134
|
-
/**
|
|
135
|
-
* Title of the webpage, if available.
|
|
136
|
-
*/
|
|
137
|
-
title?: string | null;
|
|
138
|
-
}
|
|
139
|
-
export type ExtractError = TopLevelAPI.ExtractError;
|
|
140
|
-
export type FetchPolicy = TopLevelAPI.FetchPolicy;
|
|
141
|
-
export type UsageItem = TopLevelAPI.UsageItem;
|
|
142
|
-
export interface BetaExtractParams {
|
|
143
|
-
/**
|
|
144
|
-
* Body param
|
|
145
|
-
*/
|
|
146
|
-
urls: Array<string>;
|
|
147
|
-
/**
|
|
148
|
-
* Body param: The model generating this request and consuming the results. Enables
|
|
149
|
-
* optimizations and tailors default settings for the model's capabilities.
|
|
150
|
-
*/
|
|
151
|
-
client_model?: string | null;
|
|
152
|
-
/**
|
|
153
|
-
* Body param: Include excerpts from each URL relevant to the search objective and
|
|
154
|
-
* queries. Note that if neither objective nor search_queries is provided, excerpts
|
|
155
|
-
* are redundant with full content.
|
|
156
|
-
*/
|
|
157
|
-
excerpts?: boolean | ExcerptSettings;
|
|
158
|
-
/**
|
|
159
|
-
* Body param: Policy for live fetching web results.
|
|
160
|
-
*/
|
|
161
|
-
fetch_policy?: TopLevelAPI.FetchPolicy | null;
|
|
162
|
-
/**
|
|
163
|
-
* Body param: Include full content from each URL. Note that if neither objective
|
|
164
|
-
* nor search_queries is provided, excerpts are redundant with full content.
|
|
165
|
-
*/
|
|
166
|
-
full_content?: boolean | BetaExtractParams.FullContentSettings;
|
|
167
|
-
/**
|
|
168
|
-
* Body param: If provided, focuses extracted content on the specified search
|
|
169
|
-
* objective.
|
|
170
|
-
*/
|
|
171
|
-
objective?: string | null;
|
|
172
|
-
/**
|
|
173
|
-
* Body param: If provided, focuses extracted content on the specified keyword
|
|
174
|
-
* search queries.
|
|
175
|
-
*/
|
|
176
|
-
search_queries?: Array<string> | null;
|
|
177
|
-
/**
|
|
178
|
-
* Body param: Session identifier to track calls across separate search and extract
|
|
179
|
-
* calls, to be used as part of a larger task. Specifying it may give better
|
|
180
|
-
* contextual results for subsequent API calls.
|
|
181
|
-
*/
|
|
182
|
-
session_id?: string | null;
|
|
183
|
-
/**
|
|
184
|
-
* Header param: Optional header to specify the beta version(s) to enable.
|
|
185
|
-
*/
|
|
186
|
-
betas?: Array<TaskRunAPI.ParallelBeta>;
|
|
187
|
-
}
|
|
188
|
-
export declare namespace BetaExtractParams {
|
|
189
|
-
/**
|
|
190
|
-
* Optional settings for returning full content.
|
|
191
|
-
*/
|
|
192
|
-
interface FullContentSettings {
|
|
193
|
-
/**
|
|
194
|
-
* Optional limit on the number of characters to include in the full content for
|
|
195
|
-
* each url. Full content always starts at the beginning of the page and is
|
|
196
|
-
* truncated at the limit if necessary.
|
|
197
|
-
*/
|
|
198
|
-
max_chars_per_result?: number | null;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
export interface BetaSearchParams {
|
|
202
|
-
/**
|
|
203
|
-
* Body param: The model generating this request and consuming the results. Enables
|
|
204
|
-
* optimizations and tailors default settings for the model's capabilities.
|
|
205
|
-
*/
|
|
206
|
-
client_model?: string | null;
|
|
207
|
-
/**
|
|
208
|
-
* Body param: Optional settings to configure excerpt generation.
|
|
209
|
-
*/
|
|
210
|
-
excerpts?: ExcerptSettings;
|
|
211
|
-
/**
|
|
212
|
-
* Body param: Policy for live fetching web results.
|
|
213
|
-
*/
|
|
214
|
-
fetch_policy?: TopLevelAPI.FetchPolicy | null;
|
|
215
|
-
/**
|
|
216
|
-
* Body param: ISO 3166-1 alpha-2 country code for geo-targeted search results.
|
|
217
|
-
*/
|
|
218
|
-
location?: string | null;
|
|
219
|
-
/**
|
|
220
|
-
* @deprecated Body param: DEPRECATED: Use `excerpts.max_chars_per_result` instead.
|
|
221
|
-
*/
|
|
222
|
-
max_chars_per_result?: number | null;
|
|
223
|
-
/**
|
|
224
|
-
* Body param: Upper bound on the number of results to return. Defaults to 10 if
|
|
225
|
-
* not provided.
|
|
226
|
-
*/
|
|
227
|
-
max_results?: number | null;
|
|
228
|
-
/**
|
|
229
|
-
* Body param: Presets default values for parameters for different use cases.
|
|
230
|
-
*
|
|
231
|
-
* - `one-shot` returns more comprehensive results and longer excerpts to answer
|
|
232
|
-
* questions from a single response
|
|
233
|
-
* - `agentic` returns more concise, token-efficient results for use in an agentic
|
|
234
|
-
* loop
|
|
235
|
-
* - `fast` trades some quality for lower latency, with best results when used with
|
|
236
|
-
* concise and high-quality objective and keyword queries
|
|
237
|
-
*/
|
|
238
|
-
mode?: 'one-shot' | 'agentic' | 'fast' | null;
|
|
239
|
-
/**
|
|
240
|
-
* Body param: Natural-language description of what the web search is trying to
|
|
241
|
-
* find. May include guidance about preferred sources or freshness. At least one of
|
|
242
|
-
* objective or search_queries must be provided.
|
|
243
|
-
*/
|
|
244
|
-
objective?: string | null;
|
|
245
|
-
/**
|
|
246
|
-
* @deprecated Body param: DEPRECATED: use `mode` instead.
|
|
247
|
-
*/
|
|
248
|
-
processor?: 'base' | 'pro' | null;
|
|
249
|
-
/**
|
|
250
|
-
* Body param: Optional list of traditional keyword search queries to guide the
|
|
251
|
-
* search. May contain search operators. At least one of objective or
|
|
252
|
-
* search_queries must be provided.
|
|
253
|
-
*/
|
|
254
|
-
search_queries?: Array<string> | null;
|
|
255
|
-
/**
|
|
256
|
-
* Body param: Session identifier to track calls across separate search and extract
|
|
257
|
-
* calls, to be used as part of a larger task. Specifying it may give better
|
|
258
|
-
* contextual results for subsequent API calls.
|
|
259
|
-
*/
|
|
260
|
-
session_id?: string | null;
|
|
261
|
-
/**
|
|
262
|
-
* Body param: Source policy for web search results.
|
|
263
|
-
*
|
|
264
|
-
* This policy governs which sources are allowed/disallowed in results.
|
|
265
|
-
*/
|
|
266
|
-
source_policy?: Shared.SourcePolicy | null;
|
|
267
|
-
/**
|
|
268
|
-
* Header param: Optional header to specify the beta version(s) to enable.
|
|
269
|
-
*/
|
|
270
|
-
betas?: Array<TaskRunAPI.ParallelBeta>;
|
|
271
6
|
}
|
|
272
7
|
export declare namespace Beta {
|
|
273
|
-
export { type
|
|
274
|
-
export { TaskRun as TaskRun, type ParallelBeta as ParallelBeta, type TaskRunEventsResponse as TaskRunEventsResponse, type BetaRunInput as BetaRunInput, type BetaTaskRunResult as BetaTaskRunResult, type Webhook as Webhook, type McpServer as McpServer, type McpToolCall as McpToolCall, type TaskRunEvent as TaskRunEvent, type ErrorEvent as ErrorEvent, type TaskRunCreateParams as TaskRunCreateParams, type TaskRunResultParams as TaskRunResultParams, };
|
|
275
|
-
export { type TaskGroup as TaskGroup, type TaskGroupRunResponse as TaskGroupRunResponse, type TaskGroupStatus as TaskGroupStatus, type TaskGroupEventsResponse as TaskGroupEventsResponse, type TaskGroupGetRunsResponse as TaskGroupGetRunsResponse, type TaskGroupCreateParams as TaskGroupCreateParams, type TaskGroupAddRunsParams as TaskGroupAddRunsParams, type TaskGroupEventsParams as TaskGroupEventsParams, type TaskGroupGetRunsParams as TaskGroupGetRunsParams, };
|
|
276
|
-
export { FindAll as FindAll, type FindAllCandidateMatchStatusEvent as FindAllCandidateMatchStatusEvent, type FindAllCandidatesRequest as FindAllCandidatesRequest, type FindAllCandidatesResponse as FindAllCandidatesResponse, type FindAllEnrichInput as FindAllEnrichInput, type FindAllExtendInput as FindAllExtendInput, type FindAllRun as FindAllRun, type FindAllRunInput as FindAllRunInput, type FindAllRunResult as FindAllRunResult, type FindAllRunStatusEvent as FindAllRunStatusEvent, type FindAllSchema as FindAllSchema, type FindAllSchemaUpdatedEvent as FindAllSchemaUpdatedEvent, type IngestInput as IngestInput, type FindAllCancelResponse as FindAllCancelResponse, type FindAllEventsResponse as FindAllEventsResponse, type FindAllCreateParams as FindAllCreateParams, type FindAllRetrieveParams as FindAllRetrieveParams, type FindAllCancelParams as FindAllCancelParams, type FindAllCandidatesParams as FindAllCandidatesParams, type FindAllEnrichParams as FindAllEnrichParams, type FindAllEventsParams as FindAllEventsParams, type FindAllExtendParams as FindAllExtendParams, type FindAllIngestParams as FindAllIngestParams, type FindAllResultParams as FindAllResultParams, type FindAllSchemaParams as FindAllSchemaParams, };
|
|
8
|
+
export { FindAll as FindAll, type FindAllCandidate as FindAllCandidate, type FindAllCandidateMatchStatusEvent as FindAllCandidateMatchStatusEvent, type FindAllCandidateMetrics as FindAllCandidateMetrics, type FindAllEnrichInput as FindAllEnrichInput, type FindAllEntitySearchRequest as FindAllEntitySearchRequest, type FindAllEntitySearchResponse as FindAllEntitySearchResponse, type FindAllExtendInput as FindAllExtendInput, type FindAllRun as FindAllRun, type FindAllRunInput as FindAllRunInput, type FindAllRunResult as FindAllRunResult, type FindAllRunStatus as FindAllRunStatus, type FindAllRunStatusEvent as FindAllRunStatusEvent, type FindAllSchema as FindAllSchema, type FindAllSchemaUpdatedEvent as FindAllSchemaUpdatedEvent, type IngestInput as IngestInput, type MatchCondition as MatchCondition, type ParallelBeta as ParallelBeta, type FindAllEventsResponse as FindAllEventsResponse, type FindAllCreateParams as FindAllCreateParams, type FindAllRetrieveParams as FindAllRetrieveParams, type FindAllCancelParams as FindAllCancelParams, type FindAllEnrichParams as FindAllEnrichParams, type FindAllEntitySearchParams as FindAllEntitySearchParams, type FindAllEventsParams as FindAllEventsParams, type FindAllExtendParams as FindAllExtendParams, type FindAllIngestParams as FindAllIngestParams, type FindAllResultParams as FindAllResultParams, type FindAllSchemaParams as FindAllSchemaParams, };
|
|
277
9
|
}
|
|
278
10
|
//# sourceMappingURL=beta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"beta.d.ts","sourceRoot":"","sources":["../../src/resources/beta/beta.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"beta.d.ts","sourceRoot":"","sources":["../../src/resources/beta/beta.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,EACL,OAAO,EACP,mBAAmB,EACnB,gBAAgB,EAChB,gCAAgC,EAChC,uBAAuB,EACvB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,EAC3B,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,qBAAqB,EACrB,aAAa,EACb,mBAAmB,EACnB,yBAAyB,EACzB,WAAW,EACX,cAAc,EACd,YAAY,EACb,qBAAkB;AAEnB,qBAAa,IAAK,SAAQ,WAAW;IACnC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;CACpE;AAID,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
package/resources/beta/beta.js
CHANGED
|
@@ -6,51 +6,12 @@ const tslib_1 = require("../../internal/tslib.js");
|
|
|
6
6
|
const resource_1 = require("../../core/resource.js");
|
|
7
7
|
const FindAllAPI = tslib_1.__importStar(require("./findall.js"));
|
|
8
8
|
const findall_1 = require("./findall.js");
|
|
9
|
-
const TaskGroupAPI = tslib_1.__importStar(require("./task-group.js"));
|
|
10
|
-
const TaskRunAPI = tslib_1.__importStar(require("./task-run.js"));
|
|
11
|
-
const task_run_1 = require("./task-run.js");
|
|
12
|
-
const headers_1 = require("../../internal/headers.js");
|
|
13
9
|
class Beta extends resource_1.APIResource {
|
|
14
10
|
constructor() {
|
|
15
11
|
super(...arguments);
|
|
16
|
-
this.taskRun = new TaskRunAPI.TaskRun(this._client);
|
|
17
|
-
this.taskGroup = new TaskGroupAPI.TaskGroup(this._client);
|
|
18
12
|
this.findall = new FindAllAPI.FindAll(this._client);
|
|
19
13
|
}
|
|
20
|
-
/**
|
|
21
|
-
* Extracts relevant content from specific web URLs.
|
|
22
|
-
*
|
|
23
|
-
* @deprecated Use client.extract instead. For more info, see https://docs.parallel.ai/extract/extract-migration-guide
|
|
24
|
-
*/
|
|
25
|
-
extract(params, options) {
|
|
26
|
-
const { betas, ...body } = params;
|
|
27
|
-
return this._client.post('/v1beta/extract', {
|
|
28
|
-
body,
|
|
29
|
-
...options,
|
|
30
|
-
headers: (0, headers_1.buildHeaders)([
|
|
31
|
-
{ 'parallel-beta': [...(betas ?? []), 'search-extract-2025-10-10'].toString() },
|
|
32
|
-
options?.headers,
|
|
33
|
-
]),
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Searches the web.
|
|
38
|
-
*
|
|
39
|
-
* @deprecated Use client.search instead. For more info, see https://docs.parallel.ai/search/search-migration-guide
|
|
40
|
-
*/
|
|
41
|
-
search(params, options) {
|
|
42
|
-
const { betas, ...body } = params;
|
|
43
|
-
return this._client.post('/v1beta/search', {
|
|
44
|
-
body,
|
|
45
|
-
...options,
|
|
46
|
-
headers: (0, headers_1.buildHeaders)([
|
|
47
|
-
{ 'parallel-beta': [...(betas ?? []), 'search-extract-2025-10-10'].toString() },
|
|
48
|
-
options?.headers,
|
|
49
|
-
]),
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
14
|
}
|
|
53
15
|
exports.Beta = Beta;
|
|
54
|
-
Beta.TaskRun = task_run_1.TaskRun;
|
|
55
16
|
Beta.FindAll = findall_1.FindAll;
|
|
56
17
|
//# sourceMappingURL=beta.js.map
|