@browserbasehq/sdk 2.26.0 → 2.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/README.md +31 -0
  3. package/index.d.mts +12 -2
  4. package/index.d.ts +12 -2
  5. package/index.d.ts.map +1 -1
  6. package/index.js +7 -0
  7. package/index.js.map +1 -1
  8. package/index.mjs +7 -0
  9. package/index.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/pagination.d.ts +28 -0
  12. package/pagination.d.ts.map +1 -0
  13. package/pagination.js +44 -0
  14. package/pagination.js.map +1 -0
  15. package/pagination.mjs +40 -0
  16. package/pagination.mjs.map +1 -0
  17. package/resources/agents/runs.d.ts +24 -0
  18. package/resources/agents/runs.d.ts.map +1 -1
  19. package/resources/certificates.d.ts +9 -4
  20. package/resources/certificates.d.ts.map +1 -1
  21. package/resources/certificates.js +9 -4
  22. package/resources/certificates.js.map +1 -1
  23. package/resources/certificates.mjs +9 -4
  24. package/resources/certificates.mjs.map +1 -1
  25. package/resources/downloads.d.ts +90 -0
  26. package/resources/downloads.d.ts.map +1 -0
  27. package/resources/downloads.js +47 -0
  28. package/resources/downloads.js.map +1 -0
  29. package/resources/downloads.mjs +42 -0
  30. package/resources/downloads.mjs.map +1 -0
  31. package/resources/index.d.ts +3 -1
  32. package/resources/index.d.ts.map +1 -1
  33. package/resources/index.js +6 -1
  34. package/resources/index.js.map +1 -1
  35. package/resources/index.mjs +2 -0
  36. package/resources/index.mjs.map +1 -1
  37. package/resources/labels.d.ts +97 -0
  38. package/resources/labels.d.ts.map +1 -0
  39. package/resources/labels.js +38 -0
  40. package/resources/labels.js.map +1 -0
  41. package/resources/labels.mjs +34 -0
  42. package/resources/labels.mjs.map +1 -0
  43. package/resources/search.d.ts +195 -9
  44. package/resources/search.d.ts.map +1 -1
  45. package/resources/sessions/index.d.ts +1 -1
  46. package/resources/sessions/index.d.ts.map +1 -1
  47. package/resources/sessions/index.js.map +1 -1
  48. package/resources/sessions/index.mjs.map +1 -1
  49. package/resources/sessions/sessions.d.ts +17 -1
  50. package/resources/sessions/sessions.d.ts.map +1 -1
  51. package/resources/sessions/sessions.js +7 -0
  52. package/resources/sessions/sessions.js.map +1 -1
  53. package/resources/sessions/sessions.mjs +7 -0
  54. package/resources/sessions/sessions.mjs.map +1 -1
  55. package/src/index.ts +39 -0
  56. package/src/pagination.ts +80 -0
  57. package/src/resources/agents/runs.ts +28 -0
  58. package/src/resources/certificates.ts +9 -4
  59. package/src/resources/downloads.ts +134 -0
  60. package/src/resources/index.ts +11 -0
  61. package/src/resources/labels.ts +140 -0
  62. package/src/resources/search.ts +231 -9
  63. package/src/resources/sessions/index.ts +2 -0
  64. package/src/resources/sessions/sessions.ts +27 -0
  65. package/src/version.ts +1 -1
  66. package/version.d.ts +1 -1
  67. package/version.js +1 -1
  68. package/version.mjs +1 -1
@@ -452,8 +452,21 @@ export namespace RunCreateParams {
452
452
  * apply.
453
453
  */
454
454
  export interface BrowserSettings {
455
+ /**
456
+ * Domains the browser session may navigate to, including their subdomains.
457
+ * Restricts top-level navigations only. Omit or pass an empty list to allow every
458
+ * domain.
459
+ */
460
+ allowedDomains?: Array<string>;
461
+
455
462
  context?: BrowserSettings.Context;
456
463
 
464
+ /**
465
+ * Set `true` to ignore TLS certificate errors in the browser session. When
466
+ * omitted, your project's default applies.
467
+ */
468
+ ignoreCertificateErrors?: boolean;
469
+
457
470
  /**
458
471
  * Enable or disable session logging. Defaults to `true`.
459
472
  */
@@ -471,6 +484,11 @@ export namespace RunCreateParams {
471
484
  >
472
485
  | boolean;
473
486
 
487
+ /**
488
+ * Proxy settings for the browser session. Optional.
489
+ */
490
+ proxySettings?: BrowserSettings.ProxySettings;
491
+
474
492
  /**
475
493
  * Enable or disable session recording. Defaults to `true`.
476
494
  */
@@ -582,6 +600,16 @@ export namespace RunCreateParams {
582
600
  */
583
601
  domainPattern?: string;
584
602
  }
603
+
604
+ /**
605
+ * Proxy settings for the browser session. Optional.
606
+ */
607
+ export interface ProxySettings {
608
+ /**
609
+ * The TLS certificate IDs to trust. Optional.
610
+ */
611
+ caCertificates?: Array<string>;
612
+ }
585
613
  }
586
614
 
587
615
  export interface Variables {
@@ -5,28 +5,33 @@ import * as Core from '../core';
5
5
 
6
6
  export class Certificates extends APIResource {
7
7
  /**
8
- * Upload a Certificate
8
+ * Upload a PEM file with one or more CA certificates (up to 100 MB). Pass the
9
+ * returned ID in `proxySettings.caCertificates` when creating a session so the
10
+ * browser trusts these certificates.
9
11
  */
10
12
  create(body: CertificateCreateParams, options?: Core.RequestOptions): Core.APIPromise<Certificate> {
11
13
  return this._client.post('/v1/certificates', Core.multipartFormRequestOptions({ body, ...options }));
12
14
  }
13
15
 
14
16
  /**
15
- * Get a Certificate
17
+ * Retrieve metadata for an uploaded certificate by its ID, including its project
18
+ * ID and timestamps. The PEM content is not returned.
16
19
  */
17
20
  retrieve(id: string, options?: Core.RequestOptions): Core.APIPromise<Certificate> {
18
21
  return this._client.get(`/v1/certificates/${id}`, options);
19
22
  }
20
23
 
21
24
  /**
22
- * List Certificates
25
+ * List the certificates uploaded to your project.
23
26
  */
24
27
  list(options?: Core.RequestOptions): Core.APIPromise<CertificateListResponse> {
25
28
  return this._client.get('/v1/certificates', options);
26
29
  }
27
30
 
28
31
  /**
29
- * Delete a Certificate
32
+ * Delete an uploaded certificate from your project by its ID. Session creation
33
+ * requests that still reference this ID in `proxySettings.caCertificates` fail
34
+ * with HTTP 400.
30
35
  */
31
36
  delete(id: string, options?: Core.RequestOptions): Core.APIPromise<void> {
32
37
  return this._client.delete(`/v1/certificates/${id}`, {
@@ -0,0 +1,134 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../resource';
4
+ import * as Core from '../core';
5
+ import { OffsetPage, type OffsetPageParams } from '../pagination';
6
+ import { type Response } from '../_shims/index';
7
+
8
+ export class Downloads extends APIResource {
9
+ /**
10
+ * Get download metadata (Accept: application/json) or file content (Accept:
11
+ * application/octet-stream).
12
+ */
13
+ retrieve(id: string, options?: Core.RequestOptions): Core.APIPromise<Download> {
14
+ return this._client.get(`/v1/downloads/${id}`, options);
15
+ }
16
+
17
+ /**
18
+ * List all downloads for a session with optional filtering and pagination.
19
+ */
20
+ list(
21
+ query: DownloadListParams,
22
+ options?: Core.RequestOptions,
23
+ ): Core.PagePromise<DownloadsOffsetPage, Download> {
24
+ return this._client.getAPIList('/v1/downloads', DownloadsOffsetPage, { query, ...options });
25
+ }
26
+
27
+ /**
28
+ * Delete a download file from storage and mark as deleted.
29
+ */
30
+ delete(id: string, options?: Core.RequestOptions): Core.APIPromise<void> {
31
+ return this._client.delete(`/v1/downloads/${id}`, {
32
+ ...options,
33
+ headers: { Accept: '*/*', ...options?.headers },
34
+ });
35
+ }
36
+
37
+ /**
38
+ * Get download metadata (Accept: application/json) or file content (Accept:
39
+ * application/octet-stream).
40
+ */
41
+ download(id: string, options?: Core.RequestOptions): Core.APIPromise<Response> {
42
+ return this._client.get(`/v1/downloads/${id}`, {
43
+ ...options,
44
+ headers: { Accept: 'application/binary', ...options?.headers },
45
+ __binaryResponse: true,
46
+ });
47
+ }
48
+ }
49
+
50
+ export class DownloadsOffsetPage extends OffsetPage<Download> {}
51
+
52
+ export interface Download {
53
+ /**
54
+ * Unique identifier for the download.
55
+ */
56
+ id: string;
57
+
58
+ /**
59
+ * SHA256 checksum of the file.
60
+ */
61
+ checksum: string;
62
+
63
+ /**
64
+ * Timestamp when the file was downloaded.
65
+ */
66
+ createdAt: string;
67
+
68
+ /**
69
+ * The filename of the downloaded file.
70
+ */
71
+ filename: string;
72
+
73
+ /**
74
+ * The MIME type of the file.
75
+ */
76
+ mimeType: string;
77
+
78
+ /**
79
+ * The Session ID this download belongs to.
80
+ */
81
+ sessionId: string;
82
+
83
+ /**
84
+ * File size in bytes.
85
+ */
86
+ size: number;
87
+ }
88
+
89
+ export interface DownloadListParams extends OffsetPageParams {
90
+ /**
91
+ * Filter downloads by session ID (required).
92
+ */
93
+ sessionId: string;
94
+
95
+ /**
96
+ * Filter downloads created on or after this timestamp.
97
+ */
98
+ createdAfter?: string;
99
+
100
+ /**
101
+ * Filter downloads created on or before this timestamp.
102
+ */
103
+ createdBefore?: string;
104
+
105
+ /**
106
+ * Filter by exact filename match.
107
+ */
108
+ filename?: string;
109
+
110
+ /**
111
+ * Maximum file size in bytes.
112
+ */
113
+ maxSize?: number;
114
+
115
+ /**
116
+ * Filter by MIME type.
117
+ */
118
+ mimeType?: string;
119
+
120
+ /**
121
+ * Minimum file size in bytes.
122
+ */
123
+ minSize?: number;
124
+ }
125
+
126
+ Downloads.DownloadsOffsetPage = DownloadsOffsetPage;
127
+
128
+ export declare namespace Downloads {
129
+ export {
130
+ type Download as Download,
131
+ DownloadsOffsetPage as DownloadsOffsetPage,
132
+ type DownloadListParams as DownloadListParams,
133
+ };
134
+ }
@@ -23,9 +23,18 @@ export {
23
23
  type ContextUpdateResponse,
24
24
  type ContextCreateParams,
25
25
  } from './contexts';
26
+ export { DownloadsOffsetPage, Downloads, type Download, type DownloadListParams } from './downloads';
26
27
  export { Extensions, type Extension, type ExtensionCreateParams } from './extensions';
27
28
  export { FetchAPI, type FetchAPICreateResponse, type FetchAPICreateParams } from './fetch-api';
28
29
  export { Functions } from './functions/functions';
30
+ export {
31
+ Labels,
32
+ type Label,
33
+ type LabelListResponse,
34
+ type LabelCreateParams,
35
+ type LabelUpdateParams,
36
+ type LabelListParams,
37
+ } from './labels';
29
38
  export {
30
39
  NavigationPolicies,
31
40
  type NavigationPolicy,
@@ -51,11 +60,13 @@ export {
51
60
  type SessionCreateResponse,
52
61
  type SessionRetrieveResponse,
53
62
  type SessionListResponse,
63
+ type SessionSetLabelsResponse,
54
64
  type SessionCreateParams,
55
65
  type SessionRetrieveParams,
56
66
  type SessionUpdateParams,
57
67
  type SessionListParams,
58
68
  type SessionDebugParams,
69
+ type SessionSetLabelsParams,
59
70
  } from './sessions/sessions';
60
71
  export {
61
72
  Webhooks,
@@ -0,0 +1,140 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../resource';
4
+ import { isRequestOptions } from '../core';
5
+ import * as Core from '../core';
6
+
7
+ export class Labels extends APIResource {
8
+ /**
9
+ * Create a project-owned label.
10
+ */
11
+ create(body: LabelCreateParams, options?: Core.RequestOptions): Core.APIPromise<Label> {
12
+ return this._client.post('/v1/labels', { body, ...options });
13
+ }
14
+
15
+ /**
16
+ * Rename a label, preserving its ID, creation time, and session assignments.
17
+ */
18
+ update(labelId: string, body: LabelUpdateParams, options?: Core.RequestOptions): Core.APIPromise<Label> {
19
+ return this._client.patch(`/v1/labels/${labelId}`, { body, ...options });
20
+ }
21
+
22
+ /**
23
+ * List the project's labels, newest first. Page by passing the previous response's
24
+ * `nextCursor` as `cursor`; a null `nextCursor` means there are no further pages.
25
+ */
26
+ list(query?: LabelListParams, options?: Core.RequestOptions): Core.APIPromise<LabelListResponse>;
27
+ list(options?: Core.RequestOptions): Core.APIPromise<LabelListResponse>;
28
+ list(
29
+ query: LabelListParams | Core.RequestOptions = {},
30
+ options?: Core.RequestOptions,
31
+ ): Core.APIPromise<LabelListResponse> {
32
+ if (isRequestOptions(query)) {
33
+ return this.list({}, query);
34
+ }
35
+ return this._client.get('/v1/labels', { query, ...options });
36
+ }
37
+
38
+ /**
39
+ * Delete a label and its session assignments, preserving the sessions. Missing and
40
+ * other-project labels are successful no-ops.
41
+ */
42
+ delete(labelId: string, options?: Core.RequestOptions): Core.APIPromise<void> {
43
+ return this._client.delete(`/v1/labels/${labelId}`, {
44
+ ...options,
45
+ headers: { Accept: '*/*', ...options?.headers },
46
+ });
47
+ }
48
+ }
49
+
50
+ /**
51
+ * A project-owned session label.
52
+ */
53
+ export interface Label {
54
+ /**
55
+ * Stable identifier of the label.
56
+ */
57
+ id: string;
58
+
59
+ /**
60
+ * UTC timestamp when the label was created.
61
+ */
62
+ createdAt: string;
63
+
64
+ /**
65
+ * Display name, unique ignoring case within the project.
66
+ */
67
+ name: string;
68
+
69
+ /**
70
+ * The project that owns the label.
71
+ */
72
+ projectId: string;
73
+
74
+ /**
75
+ * UTC timestamp when the label was last renamed.
76
+ */
77
+ updatedAt: string;
78
+ }
79
+
80
+ /**
81
+ * A page of labels.
82
+ */
83
+ export interface LabelListResponse {
84
+ /**
85
+ * The page of matching labels.
86
+ */
87
+ data: Array<Label>;
88
+
89
+ /**
90
+ * The maximum number of results returned in this page.
91
+ */
92
+ limit: number;
93
+
94
+ /**
95
+ * Cursor for the next page. Pass it back as `cursor` on the next request to
96
+ * continue paging. null when there are no more results.
97
+ */
98
+ nextCursor: string | null;
99
+ }
100
+
101
+ export interface LabelCreateParams {
102
+ /**
103
+ * Label name. Browserbase trims surrounding Unicode whitespace and preserves
104
+ * display capitalization. The trimmed name must contain 1–128 Unicode characters
105
+ * and no NUL characters. Names are unique ignoring case within the project.
106
+ */
107
+ name: string;
108
+ }
109
+
110
+ export interface LabelUpdateParams {
111
+ /**
112
+ * Label name. Browserbase trims surrounding Unicode whitespace and preserves
113
+ * display capitalization. The trimmed name must contain 1–128 Unicode characters
114
+ * and no NUL characters. Names are unique ignoring case within the project.
115
+ */
116
+ name: string;
117
+ }
118
+
119
+ export interface LabelListParams {
120
+ /**
121
+ * Pagination cursor. Pass the nextCursor from the previous response to fetch the
122
+ * next page. Omit to start from the first page.
123
+ */
124
+ cursor?: string;
125
+
126
+ /**
127
+ * Maximum number of results to return.
128
+ */
129
+ limit?: number;
130
+ }
131
+
132
+ export declare namespace Labels {
133
+ export {
134
+ type Label as Label,
135
+ type LabelListResponse as LabelListResponse,
136
+ type LabelCreateParams as LabelCreateParams,
137
+ type LabelUpdateParams as LabelUpdateParams,
138
+ type LabelListParams as LabelListParams,
139
+ };
140
+ }
@@ -27,6 +27,17 @@ export interface SearchWebResponse {
27
27
  * List of search results
28
28
  */
29
29
  results: Array<SearchWebResponse.Result>;
30
+
31
+ /**
32
+ * The search mode that served the request.
33
+ */
34
+ mode?: 'fast' | 'advanced' | 'deep-lite' | 'deep';
35
+
36
+ /**
37
+ * The search provider that served the request. Can differ from the documented
38
+ * default when the project or the filters select another provider.
39
+ */
40
+ provider?: 'parallel' | 'exa';
30
41
  }
31
42
 
32
43
  export namespace SearchWebResponse {
@@ -51,6 +62,12 @@ export namespace SearchWebResponse {
51
62
  */
52
63
  author?: string;
53
64
 
65
+ /**
66
+ * Passages from the page most relevant to the query. Only set when the request
67
+ * asks for excerpts.
68
+ */
69
+ excerpts?: Array<string>;
70
+
54
71
  /**
55
72
  * Favicon URL
56
73
  */
@@ -68,13 +85,18 @@ export namespace SearchWebResponse {
68
85
  }
69
86
  }
70
87
 
71
- export type SearchWebParams = SearchWebParams.Variant0 | SearchWebParams.Variant1 | SearchWebParams.Variant2;
88
+ export type SearchWebParams =
89
+ | SearchWebParams.ProviderParallel
90
+ | SearchWebParams.ProviderExa
91
+ | SearchWebParams.DefaultProvider;
72
92
 
73
93
  export declare namespace SearchWebParams {
74
- export interface Variant0 {
94
+ export interface ProviderParallel {
75
95
  /**
76
96
  * Search provider to serve this request. Defaults to `parallel`, which uses
77
- * `advanced` mode unless `mode` is set.
97
+ * `advanced` mode unless `mode` is set. If you omit it and `parallel` can't apply
98
+ * one of your filters, `exa` serves the request at `exa` pricing. The response
99
+ * `provider` field shows which one served it.
78
100
  */
79
101
  provider: 'parallel';
80
102
 
@@ -83,6 +105,45 @@ export declare namespace SearchWebParams {
83
105
  */
84
106
  query: string;
85
107
 
108
+ /**
109
+ * Focus the search on a category of content. Only the `exa` provider supports this
110
+ * filter.
111
+ */
112
+ category?: 'company' | 'publication' | 'news' | 'personal site' | 'financial report' | 'people';
113
+
114
+ /**
115
+ * Only return results published before this date-time (RFC 3339, for example
116
+ * 2026-01-01T00:00:00Z). Only the `exa` provider supports this filter. Not
117
+ * supported with the company or people categories.
118
+ */
119
+ endPublishedDate?: string;
120
+
121
+ /**
122
+ * Return the passages of each page most relevant to the query. Defaults to false.
123
+ */
124
+ excerpts?: boolean;
125
+
126
+ /**
127
+ * Never return results from these domains. Accepts the same entry formats as
128
+ * includeDomains. Not supported with the people category.
129
+ */
130
+ excludeDomains?: Array<string>;
131
+
132
+ /**
133
+ * Only return results from these domains. Entries can be a hostname (example.com),
134
+ * a hostname with a path prefix (example.com/docs), or a wildcard subdomain
135
+ * (\*.example.com). The `parallel` provider allows one list, not both, with at
136
+ * most 200 domains and no scheme, port, query string, or fragment.
137
+ */
138
+ includeDomains?: Array<string>;
139
+
140
+ /**
141
+ * Refetch a page when the cached copy is older than this many hours. Omit to use
142
+ * the provider default. A provider can return an older cached copy when a live
143
+ * fetch fails.
144
+ */
145
+ maxAgeHours?: number;
146
+
86
147
  /**
87
148
  * The search mode used by the underlying provider. Defaults to `advanced` for
88
149
  * `parallel` and `fast` for `exa`. See the
@@ -92,15 +153,44 @@ export declare namespace SearchWebParams {
92
153
  mode?: 'fast' | 'advanced';
93
154
 
94
155
  /**
95
- * Number of results to return (1-25)
156
+ * Filter unsafe content from the results. Defaults to `false`. Only the `exa`
157
+ * provider supports `true`.
158
+ */
159
+ moderation?: boolean;
160
+
161
+ /**
162
+ * Number of results to return
96
163
  */
97
164
  numResults?: number;
165
+
166
+ /**
167
+ * The task intent and soft preferences for the search, in natural language. Adds
168
+ * context to query without replacing it.
169
+ */
170
+ objective?: string;
171
+
172
+ /**
173
+ * Only return results published after this date-time (RFC 3339, for example
174
+ * 2026-01-01T00:00:00Z). The `parallel` provider rounds it up to a whole UTC day.
175
+ * Not supported with the company or people categories.
176
+ */
177
+ startPublishedDate?: string;
178
+
179
+ /**
180
+ * Two-letter ISO 3166-1 country code of the end user. Localizes ranking without
181
+ * restricting results to sources from that country. The `parallel` provider
182
+ * supports only
183
+ * [some countries](https://docs.browserbase.com/platform/search/overview#appendix-supported-countries).
184
+ */
185
+ userLocation?: string;
98
186
  }
99
187
 
100
- export interface Variant1 {
188
+ export interface ProviderExa {
101
189
  /**
102
190
  * Search provider to serve this request. Defaults to `parallel`, which uses
103
- * `advanced` mode unless `mode` is set.
191
+ * `advanced` mode unless `mode` is set. If you omit it and `parallel` can't apply
192
+ * one of your filters, `exa` serves the request at `exa` pricing. The response
193
+ * `provider` field shows which one served it.
104
194
  */
105
195
  provider: 'exa';
106
196
 
@@ -109,6 +199,45 @@ export declare namespace SearchWebParams {
109
199
  */
110
200
  query: string;
111
201
 
202
+ /**
203
+ * Focus the search on a category of content. Only the `exa` provider supports this
204
+ * filter.
205
+ */
206
+ category?: 'company' | 'publication' | 'news' | 'personal site' | 'financial report' | 'people';
207
+
208
+ /**
209
+ * Only return results published before this date-time (RFC 3339, for example
210
+ * 2026-01-01T00:00:00Z). Only the `exa` provider supports this filter. Not
211
+ * supported with the company or people categories.
212
+ */
213
+ endPublishedDate?: string;
214
+
215
+ /**
216
+ * Return the passages of each page most relevant to the query. Defaults to false.
217
+ */
218
+ excerpts?: boolean;
219
+
220
+ /**
221
+ * Never return results from these domains. Accepts the same entry formats as
222
+ * includeDomains. Not supported with the people category.
223
+ */
224
+ excludeDomains?: Array<string>;
225
+
226
+ /**
227
+ * Only return results from these domains. Entries can be a hostname (example.com),
228
+ * a hostname with a path prefix (example.com/docs), or a wildcard subdomain
229
+ * (\*.example.com). The `parallel` provider allows one list, not both, with at
230
+ * most 200 domains and no scheme, port, query string, or fragment.
231
+ */
232
+ includeDomains?: Array<string>;
233
+
234
+ /**
235
+ * Refetch a page when the cached copy is older than this many hours. Omit to use
236
+ * the provider default. A provider can return an older cached copy when a live
237
+ * fetch fails.
238
+ */
239
+ maxAgeHours?: number;
240
+
112
241
  /**
113
242
  * The search mode used by the underlying provider. Defaults to `advanced` for
114
243
  * `parallel` and `fast` for `exa`. See the
@@ -118,21 +247,114 @@ export declare namespace SearchWebParams {
118
247
  mode?: 'fast' | 'deep-lite' | 'deep';
119
248
 
120
249
  /**
121
- * Number of results to return (1-25)
250
+ * Filter unsafe content from the results. Defaults to `false`. Only the `exa`
251
+ * provider supports `true`.
252
+ */
253
+ moderation?: boolean;
254
+
255
+ /**
256
+ * Number of results to return
122
257
  */
123
258
  numResults?: number;
259
+
260
+ /**
261
+ * The task intent and soft preferences for the search, in natural language. Adds
262
+ * context to query without replacing it.
263
+ */
264
+ objective?: string;
265
+
266
+ /**
267
+ * Only return results published after this date-time (RFC 3339, for example
268
+ * 2026-01-01T00:00:00Z). The `parallel` provider rounds it up to a whole UTC day.
269
+ * Not supported with the company or people categories.
270
+ */
271
+ startPublishedDate?: string;
272
+
273
+ /**
274
+ * Two-letter ISO 3166-1 country code of the end user. Localizes ranking without
275
+ * restricting results to sources from that country. The `parallel` provider
276
+ * supports only
277
+ * [some countries](https://docs.browserbase.com/platform/search/overview#appendix-supported-countries).
278
+ */
279
+ userLocation?: string;
124
280
  }
125
281
 
126
- export interface Variant2 {
282
+ export interface DefaultProvider {
127
283
  /**
128
284
  * The search query string
129
285
  */
130
286
  query: string;
131
287
 
132
288
  /**
133
- * Number of results to return (1-25)
289
+ * Focus the search on a category of content. Only the `exa` provider supports this
290
+ * filter.
291
+ */
292
+ category?: 'company' | 'publication' | 'news' | 'personal site' | 'financial report' | 'people';
293
+
294
+ /**
295
+ * Only return results published before this date-time (RFC 3339, for example
296
+ * 2026-01-01T00:00:00Z). Only the `exa` provider supports this filter. Not
297
+ * supported with the company or people categories.
298
+ */
299
+ endPublishedDate?: string;
300
+
301
+ /**
302
+ * Return the passages of each page most relevant to the query. Defaults to false.
303
+ */
304
+ excerpts?: boolean;
305
+
306
+ /**
307
+ * Never return results from these domains. Accepts the same entry formats as
308
+ * includeDomains. Not supported with the people category.
309
+ */
310
+ excludeDomains?: Array<string>;
311
+
312
+ /**
313
+ * Only return results from these domains. Entries can be a hostname (example.com),
314
+ * a hostname with a path prefix (example.com/docs), or a wildcard subdomain
315
+ * (\*.example.com). The `parallel` provider allows one list, not both, with at
316
+ * most 200 domains and no scheme, port, query string, or fragment.
317
+ */
318
+ includeDomains?: Array<string>;
319
+
320
+ /**
321
+ * Refetch a page when the cached copy is older than this many hours. Omit to use
322
+ * the provider default. A provider can return an older cached copy when a live
323
+ * fetch fails.
324
+ */
325
+ maxAgeHours?: number;
326
+
327
+ /**
328
+ * Filter unsafe content from the results. Defaults to `false`. Only the `exa`
329
+ * provider supports `true`.
330
+ */
331
+ moderation?: boolean;
332
+
333
+ /**
334
+ * Number of results to return
134
335
  */
135
336
  numResults?: number;
337
+
338
+ /**
339
+ * The task intent and soft preferences for the search, in natural language. Adds
340
+ * context to query without replacing it.
341
+ */
342
+ objective?: string;
343
+
344
+ /**
345
+ * Only return results published after this date-time (RFC 3339, for example
346
+ * 2026-01-01T00:00:00Z). The `parallel` provider rounds it up to a whole UTC day.
347
+ * Not supported with the company or people categories.
348
+ */
349
+ startPublishedDate?: string;
350
+
351
+ /**
352
+ * Two-letter ISO 3166-1 country code of the end user. Localizes ranking without
353
+ * restricting results to sources from that country. The `parallel` provider
354
+ * supports only
355
+ * [some countries](https://docs.browserbase.com/platform/search/overview#appendix-supported-countries).
356
+ */
357
+ userLocation?: string;
136
358
  }
137
359
  }
138
360