parallel-web 0.5.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/api-promise.d.mts +1 -0
  3. package/api-promise.d.mts.map +1 -1
  4. package/api-promise.d.ts +1 -0
  5. package/api-promise.d.ts.map +1 -1
  6. package/api-promise.mjs +1 -0
  7. package/api-promise.mjs.map +1 -1
  8. package/client.d.mts.map +1 -1
  9. package/client.d.ts.map +1 -1
  10. package/client.mjs.map +1 -1
  11. package/core/api-promise.d.mts.map +1 -1
  12. package/core/api-promise.d.ts.map +1 -1
  13. package/core/api-promise.mjs.map +1 -1
  14. package/core/error.mjs.map +1 -1
  15. package/core/resource.d.mts.map +1 -1
  16. package/core/resource.d.ts.map +1 -1
  17. package/core/streaming.d.mts.map +1 -1
  18. package/core/streaming.d.ts.map +1 -1
  19. package/core/streaming.mjs.map +1 -1
  20. package/core/uploads.d.mts.map +1 -1
  21. package/core/uploads.d.ts.map +1 -1
  22. package/core/uploads.mjs.map +1 -1
  23. package/error.d.mts +1 -0
  24. package/error.d.mts.map +1 -1
  25. package/error.d.ts +1 -0
  26. package/error.d.ts.map +1 -1
  27. package/error.mjs +1 -0
  28. package/error.mjs.map +1 -1
  29. package/index.d.mts.map +1 -1
  30. package/index.d.ts.map +1 -1
  31. package/index.mjs.map +1 -1
  32. package/internal/decoders/line.mjs.map +1 -1
  33. package/internal/detect-platform.mjs.map +1 -1
  34. package/internal/headers.mjs.map +1 -1
  35. package/internal/parse.d.mts.map +1 -1
  36. package/internal/parse.d.ts.map +1 -1
  37. package/internal/parse.mjs.map +1 -1
  38. package/internal/qs/formats.d.mts.map +1 -1
  39. package/internal/qs/formats.d.ts.map +1 -1
  40. package/internal/qs/index.d.mts +2 -2
  41. package/internal/qs/index.d.mts.map +1 -1
  42. package/internal/qs/index.d.ts +2 -2
  43. package/internal/qs/index.d.ts.map +1 -1
  44. package/internal/qs/index.mjs.map +1 -1
  45. package/internal/qs/stringify.d.mts.map +1 -1
  46. package/internal/qs/stringify.d.ts.map +1 -1
  47. package/internal/qs/stringify.mjs.map +1 -1
  48. package/internal/qs/utils.d.mts.map +1 -1
  49. package/internal/qs/utils.d.ts.map +1 -1
  50. package/internal/qs/utils.mjs.map +1 -1
  51. package/internal/request-options.d.mts.map +1 -1
  52. package/internal/request-options.d.ts.map +1 -1
  53. package/internal/shims.d.mts +6 -0
  54. package/internal/shims.d.mts.map +1 -1
  55. package/internal/shims.d.ts +6 -0
  56. package/internal/shims.d.ts.map +1 -1
  57. package/internal/to-file.d.mts.map +1 -1
  58. package/internal/to-file.d.ts.map +1 -1
  59. package/internal/to-file.mjs.map +1 -1
  60. package/internal/types.d.mts +4 -4
  61. package/internal/types.d.mts.map +1 -1
  62. package/internal/types.d.ts +4 -4
  63. package/internal/types.d.ts.map +1 -1
  64. package/internal/uploads.d.mts.map +1 -1
  65. package/internal/uploads.d.ts.map +1 -1
  66. package/internal/uploads.mjs.map +1 -1
  67. package/internal/utils/base64.mjs.map +1 -1
  68. package/internal/utils/log.d.mts.map +1 -1
  69. package/internal/utils/log.d.ts.map +1 -1
  70. package/internal/utils/log.js +3 -2
  71. package/internal/utils/log.js.map +1 -1
  72. package/internal/utils/log.mjs +3 -2
  73. package/internal/utils/log.mjs.map +1 -1
  74. package/internal/utils/path.mjs.map +1 -1
  75. package/internal/utils/query.mjs.map +1 -1
  76. package/internal/utils/values.mjs.map +1 -1
  77. package/internal/utils.d.mts.map +1 -1
  78. package/internal/utils.d.ts.map +1 -1
  79. package/internal/utils.mjs.map +1 -1
  80. package/package.json +1 -1
  81. package/resource.d.mts +1 -0
  82. package/resource.d.mts.map +1 -1
  83. package/resource.d.ts +1 -0
  84. package/resource.d.ts.map +1 -1
  85. package/resource.mjs +1 -0
  86. package/resource.mjs.map +1 -1
  87. package/resources/beta/beta.d.mts +2 -262
  88. package/resources/beta/beta.d.mts.map +1 -1
  89. package/resources/beta/beta.d.ts +2 -262
  90. package/resources/beta/beta.d.ts.map +1 -1
  91. package/resources/beta/beta.js +0 -41
  92. package/resources/beta/beta.js.map +1 -1
  93. package/resources/beta/beta.mjs +0 -41
  94. package/resources/beta/beta.mjs.map +1 -1
  95. package/resources/beta/findall.d.mts +76 -155
  96. package/resources/beta/findall.d.mts.map +1 -1
  97. package/resources/beta/findall.d.ts +76 -155
  98. package/resources/beta/findall.d.ts.map +1 -1
  99. package/resources/beta/findall.js +27 -33
  100. package/resources/beta/findall.js.map +1 -1
  101. package/resources/beta/findall.mjs +26 -31
  102. package/resources/beta/findall.mjs.map +1 -1
  103. package/resources/beta/index.d.mts +1 -3
  104. package/resources/beta/index.d.mts.map +1 -1
  105. package/resources/beta/index.d.ts +1 -3
  106. package/resources/beta/index.d.ts.map +1 -1
  107. package/resources/beta/index.js +1 -6
  108. package/resources/beta/index.js.map +1 -1
  109. package/resources/beta/index.mjs +1 -3
  110. package/resources/beta/index.mjs.map +1 -1
  111. package/resources/beta.d.mts.map +1 -1
  112. package/resources/beta.d.ts.map +1 -1
  113. package/resources/beta.mjs.map +1 -1
  114. package/resources/index.d.mts.map +1 -1
  115. package/resources/index.d.ts.map +1 -1
  116. package/resources/index.mjs.map +1 -1
  117. package/resources/monitor.d.mts.map +1 -1
  118. package/resources/monitor.d.ts.map +1 -1
  119. package/resources/monitor.mjs.map +1 -1
  120. package/resources/task-group.d.mts +2 -2
  121. package/resources/task-group.d.mts.map +1 -1
  122. package/resources/task-group.d.ts +2 -2
  123. package/resources/task-group.d.ts.map +1 -1
  124. package/resources/task-group.mjs.map +1 -1
  125. package/resources/task-run.d.mts +3 -26
  126. package/resources/task-run.d.mts.map +1 -1
  127. package/resources/task-run.d.ts +3 -26
  128. package/resources/task-run.d.ts.map +1 -1
  129. package/resources/task-run.mjs.map +1 -1
  130. package/resources/top-level.d.mts +1 -7
  131. package/resources/top-level.d.mts.map +1 -1
  132. package/resources/top-level.d.ts +1 -7
  133. package/resources/top-level.d.ts.map +1 -1
  134. package/resources.d.mts.map +1 -1
  135. package/resources.d.ts.map +1 -1
  136. package/resources.mjs.map +1 -1
  137. package/src/internal/utils/log.ts +2 -1
  138. package/src/resources/beta/api.md +4 -58
  139. package/src/resources/beta/beta.ts +8 -404
  140. package/src/resources/beta/findall.ts +102 -201
  141. package/src/resources/beta/index.ts +4 -50
  142. package/src/resources/task-group.ts +2 -2
  143. package/src/resources/task-run.ts +3 -30
  144. package/src/resources/top-level.ts +1 -10
  145. package/src/version.ts +1 -1
  146. package/streaming.d.mts +1 -0
  147. package/streaming.d.mts.map +1 -1
  148. package/streaming.d.ts +1 -0
  149. package/streaming.d.ts.map +1 -1
  150. package/streaming.mjs +1 -0
  151. package/streaming.mjs.map +1 -1
  152. package/uploads.d.mts +1 -0
  153. package/uploads.d.mts.map +1 -1
  154. package/uploads.d.ts +1 -0
  155. package/uploads.d.ts.map +1 -1
  156. package/uploads.mjs +1 -0
  157. package/uploads.mjs.map +1 -1
  158. package/version.d.mts +1 -1
  159. package/version.d.ts +1 -1
  160. package/version.js +1 -1
  161. package/version.mjs +1 -1
  162. package/resources/beta/task-group.d.mts +0 -122
  163. package/resources/beta/task-group.d.mts.map +0 -1
  164. package/resources/beta/task-group.d.ts +0 -122
  165. package/resources/beta/task-group.d.ts.map +0 -1
  166. package/resources/beta/task-group.js +0 -100
  167. package/resources/beta/task-group.js.map +0 -1
  168. package/resources/beta/task-group.mjs +0 -96
  169. package/resources/beta/task-group.mjs.map +0 -1
  170. package/resources/beta/task-run.d.mts +0 -191
  171. package/resources/beta/task-run.d.mts.map +0 -1
  172. package/resources/beta/task-run.d.ts +0 -191
  173. package/resources/beta/task-run.d.ts.map +0 -1
  174. package/resources/beta/task-run.js +0 -81
  175. package/resources/beta/task-run.js.map +0 -1
  176. package/resources/beta/task-run.mjs +0 -77
  177. package/resources/beta/task-run.mjs.map +0 -1
  178. package/src/resources/beta/task-group.ts +0 -223
  179. package/src/resources/beta/task-run.ts +0 -276
@@ -1,60 +1,5 @@
1
1
  # Beta
2
2
 
3
- Types:
4
-
5
- - <code><a href="./src/resources/beta/beta.ts">ExcerptSettings</a></code>
6
- - <code><a href="./src/resources/beta/beta.ts">ExtractResponse</a></code>
7
- - <code><a href="./src/resources/beta/beta.ts">ExtractResult</a></code>
8
- - <code><a href="./src/resources/beta/beta.ts">SearchResult</a></code>
9
- - <code><a href="./src/resources/beta/beta.ts">WebSearchResult</a></code>
10
- - <code><a href="./src/resources/beta/beta.ts">ExtractError</a></code>
11
- - <code><a href="./src/resources/beta/beta.ts">FetchPolicy</a></code>
12
- - <code><a href="./src/resources/beta/beta.ts">FullContentSettings</a></code>
13
- - <code><a href="./src/resources/beta/beta.ts">UsageItem</a></code>
14
-
15
- Methods:
16
-
17
- - <code title="post /v1beta/extract">client.beta.<a href="./src/resources/beta/beta.ts">extract</a>({ ...params }) -> ExtractResponse</code>
18
- - <code title="post /v1beta/search">client.beta.<a href="./src/resources/beta/beta.ts">search</a>({ ...params }) -> SearchResult</code>
19
-
20
- ## TaskRun
21
-
22
- Types:
23
-
24
- - <code><a href="./src/resources/beta/task-run.ts">ParallelBeta</a></code>
25
- - <code><a href="./src/resources/beta/task-run.ts">TaskRunEventsResponse</a></code>
26
- - <code><a href="./src/resources/beta/task-run.ts">BetaRunInput</a></code>
27
- - <code><a href="./src/resources/beta/task-run.ts">BetaTaskRunResult</a></code>
28
- - <code><a href="./src/resources/beta/task-run.ts">Webhook</a></code>
29
- - <code><a href="./src/resources/beta/task-run.ts">McpServer</a></code>
30
- - <code><a href="./src/resources/beta/task-run.ts">McpToolCall</a></code>
31
- - <code><a href="./src/resources/beta/task-run.ts">TaskRunEvent</a></code>
32
- - <code><a href="./src/resources/beta/task-run.ts">ErrorEvent</a></code>
33
-
34
- Methods:
35
-
36
- - <code title="post /v1/tasks/runs">client.beta.taskRun.<a href="./src/resources/beta/task-run.ts">create</a>({ ...params }) -> TaskRun</code>
37
- - <code title="get /v1beta/tasks/runs/{run_id}/events">client.beta.taskRun.<a href="./src/resources/beta/task-run.ts">events</a>(runID) -> TaskRunEventsResponse</code>
38
- - <code title="get /v1/tasks/runs/{run_id}/result">client.beta.taskRun.<a href="./src/resources/beta/task-run.ts">result</a>(runID, { ...params }) -> TaskRunResult</code>
39
-
40
- ## TaskGroup
41
-
42
- Types:
43
-
44
- - <code><a href="./src/resources/beta/task-group.ts">TaskGroupEventsResponse</a></code>
45
- - <code><a href="./src/resources/beta/task-group.ts">TaskGroupGetRunsResponse</a></code>
46
- - <code><a href="./src/resources/beta/task-group.ts">TaskGroupStatus</a></code>
47
- - <code><a href="./src/resources/beta/task-group.ts">TaskGroupStatusEvent</a></code>
48
- - <code><a href="./src/resources/beta/task-group.ts">TaskGroupRunResponse</a></code>
49
-
50
- Methods:
51
-
52
- - <code title="post /v1beta/tasks/groups">client.beta.taskGroup.<a href="./src/resources/beta/task-group.ts">create</a>({ ...params }) -> TaskGroup</code>
53
- - <code title="get /v1beta/tasks/groups/{taskgroup_id}">client.beta.taskGroup.<a href="./src/resources/beta/task-group.ts">retrieve</a>(taskGroupID) -> TaskGroup</code>
54
- - <code title="post /v1beta/tasks/groups/{taskgroup_id}/runs">client.beta.taskGroup.<a href="./src/resources/beta/task-group.ts">addRuns</a>(taskGroupID, { ...params }) -> TaskGroupRunResponse</code>
55
- - <code title="get /v1beta/tasks/groups/{taskgroup_id}/events">client.beta.taskGroup.<a href="./src/resources/beta/task-group.ts">events</a>(taskGroupID, { ...params }) -> TaskGroupEventsResponse</code>
56
- - <code title="get /v1beta/tasks/groups/{taskgroup_id}/runs">client.beta.taskGroup.<a href="./src/resources/beta/task-group.ts">getRuns</a>(taskGroupID, { ...params }) -> TaskGroupGetRunsResponse</code>
57
-
58
3
  ## FindAll
59
4
 
60
5
  Types:
@@ -62,9 +7,9 @@ Types:
62
7
  - <code><a href="./src/resources/beta/findall.ts">FindAllCandidate</a></code>
63
8
  - <code><a href="./src/resources/beta/findall.ts">FindAllCandidateMatchStatusEvent</a></code>
64
9
  - <code><a href="./src/resources/beta/findall.ts">FindAllCandidateMetrics</a></code>
65
- - <code><a href="./src/resources/beta/findall.ts">FindAllCandidatesRequest</a></code>
66
- - <code><a href="./src/resources/beta/findall.ts">FindAllCandidatesResponse</a></code>
67
10
  - <code><a href="./src/resources/beta/findall.ts">FindAllEnrichInput</a></code>
11
+ - <code><a href="./src/resources/beta/findall.ts">FindAllEntitySearchRequest</a></code>
12
+ - <code><a href="./src/resources/beta/findall.ts">FindAllEntitySearchResponse</a></code>
68
13
  - <code><a href="./src/resources/beta/findall.ts">FindAllExtendInput</a></code>
69
14
  - <code><a href="./src/resources/beta/findall.ts">FindAllRun</a></code>
70
15
  - <code><a href="./src/resources/beta/findall.ts">FindAllRunInput</a></code>
@@ -75,6 +20,7 @@ Types:
75
20
  - <code><a href="./src/resources/beta/findall.ts">FindAllSchemaUpdatedEvent</a></code>
76
21
  - <code><a href="./src/resources/beta/findall.ts">IngestInput</a></code>
77
22
  - <code><a href="./src/resources/beta/findall.ts">MatchCondition</a></code>
23
+ - <code><a href="./src/resources/beta/findall.ts">ParallelBeta</a></code>
78
24
  - <code><a href="./src/resources/beta/findall.ts">FindAllEventsResponse</a></code>
79
25
 
80
26
  Methods:
@@ -82,8 +28,8 @@ Methods:
82
28
  - <code title="post /v1beta/findall/runs">client.beta.findall.<a href="./src/resources/beta/findall.ts">create</a>({ ...params }) -> FindAllRun</code>
83
29
  - <code title="get /v1beta/findall/runs/{findall_id}">client.beta.findall.<a href="./src/resources/beta/findall.ts">retrieve</a>(findallID, { ...params }) -> FindAllRun</code>
84
30
  - <code title="post /v1beta/findall/runs/{findall_id}/cancel">client.beta.findall.<a href="./src/resources/beta/findall.ts">cancel</a>(findallID, { ...params }) -> void</code>
85
- - <code title="post /v1beta/findall/candidates">client.beta.findall.<a href="./src/resources/beta/findall.ts">candidates</a>({ ...params }) -> FindAllCandidatesResponse</code>
86
31
  - <code title="post /v1beta/findall/runs/{findall_id}/enrich">client.beta.findall.<a href="./src/resources/beta/findall.ts">enrich</a>(findallID, { ...params }) -> FindAllSchema</code>
32
+ - <code title="post /v1beta/findall/entity-search">client.beta.findall.<a href="./src/resources/beta/findall.ts">entitySearch</a>({ ...params }) -> FindAllEntitySearchResponse</code>
87
33
  - <code title="get /v1beta/findall/runs/{findall_id}/events">client.beta.findall.<a href="./src/resources/beta/findall.ts">events</a>(findallID, { ...params }) -> FindAllEventsResponse</code>
88
34
  - <code title="post /v1beta/findall/runs/{findall_id}/extend">client.beta.findall.<a href="./src/resources/beta/findall.ts">extend</a>(findallID, { ...params }) -> FindAllSchema</code>
89
35
  - <code title="post /v1beta/findall/ingest">client.beta.findall.<a href="./src/resources/beta/findall.ts">ingest</a>({ ...params }) -> FindAllSchema</code>
@@ -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
- TaskRun,
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
- }