@onkernel/sdk 0.110.0 → 0.111.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 (85) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/client.d.mts +6 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/auth/connections.d.mts +26 -8
  12. package/resources/auth/connections.d.mts.map +1 -1
  13. package/resources/auth/connections.d.ts +26 -8
  14. package/resources/auth/connections.d.ts.map +1 -1
  15. package/resources/browsers/telemetry.d.mts +13 -4
  16. package/resources/browsers/telemetry.d.mts.map +1 -1
  17. package/resources/browsers/telemetry.d.ts +13 -4
  18. package/resources/browsers/telemetry.d.ts.map +1 -1
  19. package/resources/index.d.mts +1 -0
  20. package/resources/index.d.mts.map +1 -1
  21. package/resources/index.d.ts +1 -0
  22. package/resources/index.d.ts.map +1 -1
  23. package/resources/index.js +3 -1
  24. package/resources/index.js.map +1 -1
  25. package/resources/index.mjs +1 -0
  26. package/resources/index.mjs.map +1 -1
  27. package/resources/search/contents.d.mts +267 -0
  28. package/resources/search/contents.d.mts.map +1 -0
  29. package/resources/search/contents.d.ts +267 -0
  30. package/resources/search/contents.d.ts.map +1 -0
  31. package/resources/search/contents.js +31 -0
  32. package/resources/search/contents.js.map +1 -0
  33. package/resources/search/contents.mjs +27 -0
  34. package/resources/search/contents.mjs.map +1 -0
  35. package/resources/search/index.d.mts +4 -0
  36. package/resources/search/index.d.mts.map +1 -0
  37. package/resources/search/index.d.ts +4 -0
  38. package/resources/search/index.d.ts.map +1 -0
  39. package/resources/search/index.js +11 -0
  40. package/resources/search/index.js.map +1 -0
  41. package/resources/search/index.mjs +5 -0
  42. package/resources/search/index.mjs.map +1 -0
  43. package/resources/search/providers.d.mts +141 -0
  44. package/resources/search/providers.d.mts.map +1 -0
  45. package/resources/search/providers.d.ts +141 -0
  46. package/resources/search/providers.d.ts.map +1 -0
  47. package/resources/search/providers.js +25 -0
  48. package/resources/search/providers.js.map +1 -0
  49. package/resources/search/providers.mjs +21 -0
  50. package/resources/search/providers.mjs.map +1 -0
  51. package/resources/search/search.d.mts +1187 -0
  52. package/resources/search/search.d.mts.map +1 -0
  53. package/resources/search/search.d.ts +1187 -0
  54. package/resources/search/search.d.ts.map +1 -0
  55. package/resources/search/search.js +58 -0
  56. package/resources/search/search.js.map +1 -0
  57. package/resources/search/search.mjs +53 -0
  58. package/resources/search/search.mjs.map +1 -0
  59. package/resources/search.d.mts +2 -0
  60. package/resources/search.d.mts.map +1 -0
  61. package/resources/search.d.ts +2 -0
  62. package/resources/search.d.ts.map +1 -0
  63. package/resources/search.js +6 -0
  64. package/resources/search.js.map +1 -0
  65. package/resources/search.mjs +3 -0
  66. package/resources/search.mjs.map +1 -0
  67. package/resources/vaults/items.d.mts +21 -14
  68. package/resources/vaults/items.d.mts.map +1 -1
  69. package/resources/vaults/items.d.ts +21 -14
  70. package/resources/vaults/items.d.ts.map +1 -1
  71. package/src/client.ts +30 -0
  72. package/src/resources/auth/connections.ts +28 -7
  73. package/src/resources/browsers/telemetry.ts +17 -4
  74. package/src/resources/index.ts +12 -0
  75. package/src/resources/search/contents.ts +327 -0
  76. package/src/resources/search/index.ts +16 -0
  77. package/src/resources/search/providers.ts +197 -0
  78. package/src/resources/search/search.ts +1496 -0
  79. package/src/resources/search.ts +3 -0
  80. package/src/resources/vaults/items.ts +27 -14
  81. package/src/version.ts +1 -1
  82. package/version.d.mts +1 -1
  83. package/version.d.ts +1 -1
  84. package/version.js +1 -1
  85. package/version.mjs +1 -1
package/src/client.ts CHANGED
@@ -216,6 +216,18 @@ import {
216
216
  ProjectsOffsetPagination,
217
217
  UpdateProjectRequest,
218
218
  } from './resources/projects/projects';
219
+ import {
220
+ Attempt,
221
+ ProviderTarget,
222
+ Request,
223
+ Result,
224
+ Search,
225
+ SearchCreateParams,
226
+ SearchResource,
227
+ Strategy,
228
+ Usage,
229
+ Warning,
230
+ } from './resources/search/search';
219
231
  import { Telemetry } from './resources/telemetry/telemetry';
220
232
  import {
221
233
  Vault,
@@ -1104,6 +1116,10 @@ export class Kernel {
1104
1116
  * Configure external credential providers like 1Password.
1105
1117
  */
1106
1118
  credentialProviders: API.CredentialProviders = new API.CredentialProviders(this);
1119
+ /**
1120
+ * Search the web and retrieve content for selected results.
1121
+ */
1122
+ search: API.SearchResource = new API.SearchResource(this);
1107
1123
  }
1108
1124
 
1109
1125
  Kernel.Deployments = Deployments;
@@ -1125,6 +1141,7 @@ Kernel.Organization = Organization;
1125
1141
  Kernel.AuditLogs = AuditLogs;
1126
1142
  Kernel.APIKeys = APIKeys;
1127
1143
  Kernel.CredentialProviders = CredentialProviders;
1144
+ Kernel.SearchResource = SearchResource;
1128
1145
 
1129
1146
  export declare namespace Kernel {
1130
1147
  export type RequestOptions = Opts.RequestOptions;
@@ -1358,6 +1375,19 @@ export declare namespace Kernel {
1358
1375
  type CredentialProviderListParams as CredentialProviderListParams,
1359
1376
  };
1360
1377
 
1378
+ export {
1379
+ SearchResource as SearchResource,
1380
+ type Attempt as Attempt,
1381
+ type ProviderTarget as ProviderTarget,
1382
+ type Request as Request,
1383
+ type Result as Result,
1384
+ type Search as Search,
1385
+ type Strategy as Strategy,
1386
+ type Usage as Usage,
1387
+ type Warning as Warning,
1388
+ type SearchCreateParams as SearchCreateParams,
1389
+ };
1390
+
1361
1391
  export type AppAction = API.AppAction;
1362
1392
  export type BrowserExtension = API.BrowserExtension;
1363
1393
  export type BrowserProfile = API.BrowserProfile;
@@ -314,16 +314,18 @@ export interface ManagedAuth {
314
314
  browser_telemetry?: ManagedAuth.BrowserTelemetry | null;
315
315
 
316
316
  /**
317
- * Whether Kernel can automatically re-authenticate this connection when the
318
- * session expires. Requires a prior successful login plus either a Kernel
319
- * credential or an external credential reference. See `can_reauth_reason` for the
320
- * specific outcome.
317
+ * Whether this connection's stored requirements are eligible for unattended
318
+ * re-authentication. A true value can represent either fully satisfiable
319
+ * requirements or a best-effort attempt. It does not account for whether automatic
320
+ * re-authentication is enabled or parent workflow state such as an active flow or
321
+ * circuit-breaker cooldown, so it does not guarantee an attempt on the next health
322
+ * check. See `can_reauth_reason` for the specific outcome.
321
323
  */
322
324
  can_reauth?: boolean;
323
325
 
324
326
  /**
325
327
  * Machine-readable reason for the current value of `can_reauth`. Affirmative
326
- * values (re-auth is possible):
328
+ * values (requirements are eligible for unattended re-authentication):
327
329
  *
328
330
  * - `external_credential` — an external credential provider is attached
329
331
  * - `cua_has_credential` — CUA flow with a stored credential
@@ -332,8 +334,12 @@ export interface ManagedAuth {
332
334
  * - `viable_plans_found` — at least one stored login plan can be replayed
333
335
  * - `no_requirements_recorded` — no recorded credential requirements to fail
334
336
  * against
335
- * - `totp_reauth_allowed` — TOTP is the only recorded requirement and is safe to
336
- * attempt automatically
337
+ * - `totp_reauth_allowed` — TOTP is the only recorded requirement and a stored
338
+ * secret can generate the code
339
+ * - `optimistic_totp_attempt` — TOTP was previously required but no reusable
340
+ * secret is stored; the connection remains eligible for a
341
+ * circuit-breaker-bounded attempt because the site may not challenge returning
342
+ * sessions
337
343
  * - `requirements_satisfiable` — recorded requirements contain no recognized
338
344
  * blocker
339
345
  *
@@ -363,6 +369,7 @@ export interface ManagedAuth {
363
369
  | 'viable_plans_found'
364
370
  | 'no_requirements_recorded'
365
371
  | 'totp_reauth_allowed'
372
+ | 'optimistic_totp_attempt'
366
373
  | 'requirements_satisfiable'
367
374
  | 'no_prior_successful_login'
368
375
  | 'no_credential'
@@ -1298,6 +1305,13 @@ export interface ManagedAuthTimelineEvent {
1298
1305
  */
1299
1306
  browser_session_id?: string;
1300
1307
 
1308
+ /**
1309
+ * When the login/reauth attempt first reached a terminal status. Stable across
1310
+ * retries and subsequent cleanup writes. Absent for in-progress attempts, health
1311
+ * checks, and historical attempts without a recorded completion time.
1312
+ */
1313
+ completed_at?: string;
1314
+
1301
1315
  /**
1302
1316
  * Machine-readable error code. Present when a login/reauth event failed.
1303
1317
  */
@@ -2478,6 +2492,13 @@ export interface ConnectionLoginParams {
2478
2492
  * When omitted, the connection's record_session default is used.
2479
2493
  */
2480
2494
  record_session?: boolean;
2495
+
2496
+ /**
2497
+ * Controls whether this login reads and writes learned domain skills. Automatic
2498
+ * reauths inherit the selected mode until a later accepted login sets enabled or
2499
+ * omits this field. Defaults to enabled when omitted.
2500
+ */
2501
+ skill_mode?: 'enabled' | 'disabled';
2481
2502
  }
2482
2503
 
2483
2504
  export namespace ConnectionLoginParams {
@@ -4338,9 +4338,11 @@ export namespace BrowserProxyErrorEvent {
4338
4338
  * Proxy-layer error code: the X-Kernel-Proxy-Error response header value from a
4339
4339
  * branded 5xx error page served by the metro egress host-proxy. Values mirror what
4340
4340
  * the proxy emits: destination_blocked, provider_blacklisted,
4341
- * provider_unreachable, provider_rejected, origin_tls_timeout, proxy_unavailable,
4342
- * upstream_timeout, upstream_dns_failure, upstream_connect_failed. Unknown header
4343
- * values are dropped.
4341
+ * provider_unreachable, provider_rejected, origin_tls_timeout,
4342
+ * origin_response_incomplete, proxy_unavailable, restricted_route_unavailable,
4343
+ * upstream_timeout, upstream_dns_failure, upstream_connect_failed. A header value
4344
+ * the browser image does not recognize is reported as unknown, with the header
4345
+ * value in raw_code.
4344
4346
  */
4345
4347
  code:
4346
4348
  | 'destination_blocked'
@@ -4348,10 +4350,13 @@ export namespace BrowserProxyErrorEvent {
4348
4350
  | 'provider_unreachable'
4349
4351
  | 'provider_rejected'
4350
4352
  | 'origin_tls_timeout'
4353
+ | 'origin_response_incomplete'
4351
4354
  | 'proxy_unavailable'
4355
+ | 'restricted_route_unavailable'
4352
4356
  | 'upstream_timeout'
4353
4357
  | 'upstream_dns_failure'
4354
- | 'upstream_connect_failed';
4358
+ | 'upstream_connect_failed'
4359
+ | 'unknown';
4355
4360
 
4356
4361
  /**
4357
4362
  * CDP request identifier matching the originating request.
@@ -4368,6 +4373,14 @@ export namespace BrowserProxyErrorEvent {
4368
4373
  */
4369
4374
  method?: string;
4370
4375
 
4376
+ /**
4377
+ * Sanitized X-Kernel-Proxy-Error header value, present only when code is unknown.
4378
+ * Surrounding whitespace is removed, the value is lowercased, characters outside
4379
+ * [a-z0-9_] are replaced with \_, and the result is truncated to at most 64
4380
+ * characters.
4381
+ */
4382
+ raw_code?: string;
4383
+
4371
4384
  /**
4372
4385
  * CDP Network.ResourceType for the request, when known.
4373
4386
  */
@@ -185,6 +185,18 @@ export {
185
185
  type ProxyCheckParams,
186
186
  type ProxyListResponsesOffsetPagination,
187
187
  } from './proxies';
188
+ export {
189
+ SearchResource,
190
+ type Attempt,
191
+ type ProviderTarget,
192
+ type Request,
193
+ type Result,
194
+ type Search,
195
+ type Strategy,
196
+ type Usage,
197
+ type Warning,
198
+ type SearchCreateParams,
199
+ } from './search/search';
188
200
  export { Telemetry } from './telemetry/telemetry';
189
201
  export {
190
202
  VaultProviderConfigs,
@@ -0,0 +1,327 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import * as SearchAPI from './search';
5
+ import { APIPromise } from '../../core/api-promise';
6
+ import { buildHeaders } from '../../internal/headers';
7
+ import { RequestOptions } from '../../internal/request-options';
8
+ import { path } from '../../internal/utils/path';
9
+
10
+ /**
11
+ * Search the web and retrieve content for selected results.
12
+ */
13
+ export class Contents extends APIResource {
14
+ /**
15
+ * Deferred result-content retrieval is reserved but not available in this release.
16
+ * Requests return 404 until the retrieval implementation is shipped. X-Request-Id
17
+ * identifies this request separately from the search resource.
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * await client.search.contents.fetch('srch_abc123');
22
+ * ```
23
+ */
24
+ fetch(id: string, body: ContentFetchParams, options?: RequestOptions): APIPromise<void> {
25
+ return this._client.post(path`/search/${id}/contents`, {
26
+ body,
27
+ ...options,
28
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
29
+ });
30
+ }
31
+ }
32
+
33
+ export interface FetchRequest {
34
+ /**
35
+ * Defaults to source:auto when omitted.
36
+ */
37
+ content?: FetchRequest.Content;
38
+
39
+ /**
40
+ * Maximum number of search results to fetch when result_ids is omitted, starting
41
+ * from rank 1. Mutually exclusive with result_ids.
42
+ */
43
+ limit?: number;
44
+
45
+ /**
46
+ * Kernel-generated IDs from the referenced retained search, in desired response
47
+ * order. They are not provider-standard IDs. Mutually exclusive with limit.
48
+ */
49
+ result_ids?: Array<string>;
50
+
51
+ /**
52
+ * Overall deadline across all selected results.
53
+ */
54
+ timeout_ms?: number;
55
+ }
56
+
57
+ export namespace FetchRequest {
58
+ /**
59
+ * Defaults to source:auto when omitted.
60
+ */
61
+ export interface Content {
62
+ /**
63
+ * Invalid with source=provider. Supplying browser_id requires source=browser so
64
+ * the chosen identity is not bypassed.
65
+ */
66
+ browser?: Content.Browser;
67
+
68
+ format?: 'markdown' | 'text';
69
+
70
+ /**
71
+ * Maximum acceptable age of cached page content, measured from origin retrieval. 0
72
+ * forces a live fetch. Governs the Kernel content cache, which is scoped to the
73
+ * caller organization and project and separated by retrieval context; fetches
74
+ * through a caller-supplied browser_id bypass that cache. Mapped to the provider
75
+ * freshness control when source is provider and the provider supports one;
76
+ * otherwise provider content age is reported as unknown via fetched_at.
77
+ */
78
+ max_age_hours?: number;
79
+
80
+ /**
81
+ * Per-result Unicode character limit after extraction.
82
+ */
83
+ max_chars?: number;
84
+
85
+ /**
86
+ * provider uses the search provider's native content retrieval; browser fetches
87
+ * each URL through a Kernel browser; auto prefers Kernel browser retrieval and
88
+ * falls back to provider-native content when browser retrieval is unavailable or
89
+ * unsuitable. Defaults to auto for both inline and deferred retrieval. Deferred
90
+ * provider retrieval requires post_hoc capability; an explicit provider source
91
+ * without it is a 400. Missing documents produce per-result unavailable outcomes,
92
+ * not request failures.
93
+ */
94
+ source?: 'auto' | 'provider' | 'browser';
95
+
96
+ /**
97
+ * Per-result deadline including capacity acquisition, retrieval, and extraction.
98
+ * Also bounded by the overall request deadline.
99
+ */
100
+ timeout_ms?: number;
101
+ }
102
+
103
+ export namespace Content {
104
+ /**
105
+ * Invalid with source=provider. Supplying browser_id requires source=browser so
106
+ * the chosen identity is not bypassed.
107
+ */
108
+ export interface Browser {
109
+ /**
110
+ * Existing browser session ID authorized for the caller and selected project.
111
+ * Reuses its cookies, proxy, and browser configuration. Kernel does not delete a
112
+ * caller-supplied browser. Render mode uses a temporary tab; website activity may
113
+ * still change shared cookies and storage. When omitted, Kernel obtains isolated
114
+ * browser capacity in the caller's account and releases it after retrieval. That
115
+ * capacity is not retained for later interaction. Existing browser quotas apply.
116
+ */
117
+ browser_id?: string;
118
+
119
+ /**
120
+ * Curl uses the browser HTTP stack without navigation or JavaScript execution.
121
+ * Render navigates a temporary page and extracts from its DOM. The selected mode
122
+ * is used for the retrieval.
123
+ */
124
+ mode?: 'curl' | 'render';
125
+ }
126
+ }
127
+ }
128
+
129
+ export interface Response {
130
+ contents: Array<Response.Content>;
131
+
132
+ search_id: string;
133
+
134
+ usage: SearchAPI.Usage;
135
+
136
+ warnings: Array<SearchAPI.Warning>;
137
+ }
138
+
139
+ export namespace Response {
140
+ export interface Content {
141
+ result_id: string;
142
+
143
+ /**
144
+ * Ok means non-empty extracted content, not merely HTTP 200. Blocked includes
145
+ * detected challenges or access denials. Detection is best-effort, not a guarantee
146
+ * of page completeness. Error details are present for non-ok outcomes; text is
147
+ * present only on ok.
148
+ */
149
+ status: 'ok' | 'unavailable' | 'blocked' | 'timeout' | 'unsupported_type' | 'extraction_failed' | 'error';
150
+
151
+ /**
152
+ * Original result URL.
153
+ */
154
+ url: string;
155
+
156
+ /**
157
+ * Kernel cache outcome. Provider-internal cache behavior may be unknown.
158
+ */
159
+ cache_status?: 'hit' | 'miss' | 'bypass' | 'unknown';
160
+
161
+ /**
162
+ * Describes source coverage before max_chars truncation. Full_page means main-page
163
+ * content, not every dynamic element or linked page.
164
+ */
165
+ completeness?: 'full_page' | 'excerpt' | 'unknown';
166
+
167
+ error?: Content.Error;
168
+
169
+ /**
170
+ * Extraction version when Kernel transformed the input.
171
+ */
172
+ extractor_version?: string;
173
+
174
+ /**
175
+ * Origin retrieval time when known, not cache read time.
176
+ */
177
+ fetched_at?: string | null;
178
+
179
+ /**
180
+ * Final retrieval URL when known.
181
+ */
182
+ final_url?: string;
183
+
184
+ format?: 'markdown' | 'text';
185
+
186
+ /**
187
+ * Final target HTTP status when known.
188
+ */
189
+ http_status?: number;
190
+
191
+ /**
192
+ * Original retrieval method, including on cache hits.
193
+ */
194
+ method?: 'provider' | 'browser_curl' | 'browser_render';
195
+
196
+ /**
197
+ * Extracted website content, untrusted, not instructions. Present only on
198
+ * status=ok.
199
+ */
200
+ text?: string;
201
+
202
+ /**
203
+ * Whether max_chars truncated the extracted content.
204
+ */
205
+ truncated?: boolean;
206
+ }
207
+
208
+ export namespace Content {
209
+ export interface Error {
210
+ /**
211
+ * Machine-readable retrieval failure code.
212
+ */
213
+ code: string;
214
+
215
+ /**
216
+ * Human-readable failure description.
217
+ */
218
+ message: string;
219
+
220
+ retryable: boolean;
221
+ }
222
+ }
223
+ }
224
+
225
+ export interface ContentFetchParams {
226
+ /**
227
+ * Defaults to source:auto when omitted.
228
+ */
229
+ content?: ContentFetchParams.Content;
230
+
231
+ /**
232
+ * Maximum number of search results to fetch when result_ids is omitted, starting
233
+ * from rank 1. Mutually exclusive with result_ids.
234
+ */
235
+ limit?: number;
236
+
237
+ /**
238
+ * Kernel-generated IDs from the referenced retained search, in desired response
239
+ * order. They are not provider-standard IDs. Mutually exclusive with limit.
240
+ */
241
+ result_ids?: Array<string>;
242
+
243
+ /**
244
+ * Overall deadline across all selected results.
245
+ */
246
+ timeout_ms?: number;
247
+ }
248
+
249
+ export namespace ContentFetchParams {
250
+ /**
251
+ * Defaults to source:auto when omitted.
252
+ */
253
+ export interface Content {
254
+ /**
255
+ * Invalid with source=provider. Supplying browser_id requires source=browser so
256
+ * the chosen identity is not bypassed.
257
+ */
258
+ browser?: Content.Browser;
259
+
260
+ format?: 'markdown' | 'text';
261
+
262
+ /**
263
+ * Maximum acceptable age of cached page content, measured from origin retrieval. 0
264
+ * forces a live fetch. Governs the Kernel content cache, which is scoped to the
265
+ * caller organization and project and separated by retrieval context; fetches
266
+ * through a caller-supplied browser_id bypass that cache. Mapped to the provider
267
+ * freshness control when source is provider and the provider supports one;
268
+ * otherwise provider content age is reported as unknown via fetched_at.
269
+ */
270
+ max_age_hours?: number;
271
+
272
+ /**
273
+ * Per-result Unicode character limit after extraction.
274
+ */
275
+ max_chars?: number;
276
+
277
+ /**
278
+ * provider uses the search provider's native content retrieval; browser fetches
279
+ * each URL through a Kernel browser; auto prefers Kernel browser retrieval and
280
+ * falls back to provider-native content when browser retrieval is unavailable or
281
+ * unsuitable. Defaults to auto for both inline and deferred retrieval. Deferred
282
+ * provider retrieval requires post_hoc capability; an explicit provider source
283
+ * without it is a 400. Missing documents produce per-result unavailable outcomes,
284
+ * not request failures.
285
+ */
286
+ source?: 'auto' | 'provider' | 'browser';
287
+
288
+ /**
289
+ * Per-result deadline including capacity acquisition, retrieval, and extraction.
290
+ * Also bounded by the overall request deadline.
291
+ */
292
+ timeout_ms?: number;
293
+ }
294
+
295
+ export namespace Content {
296
+ /**
297
+ * Invalid with source=provider. Supplying browser_id requires source=browser so
298
+ * the chosen identity is not bypassed.
299
+ */
300
+ export interface Browser {
301
+ /**
302
+ * Existing browser session ID authorized for the caller and selected project.
303
+ * Reuses its cookies, proxy, and browser configuration. Kernel does not delete a
304
+ * caller-supplied browser. Render mode uses a temporary tab; website activity may
305
+ * still change shared cookies and storage. When omitted, Kernel obtains isolated
306
+ * browser capacity in the caller's account and releases it after retrieval. That
307
+ * capacity is not retained for later interaction. Existing browser quotas apply.
308
+ */
309
+ browser_id?: string;
310
+
311
+ /**
312
+ * Curl uses the browser HTTP stack without navigation or JavaScript execution.
313
+ * Render navigates a temporary page and extracts from its DOM. The selected mode
314
+ * is used for the retrieval.
315
+ */
316
+ mode?: 'curl' | 'render';
317
+ }
318
+ }
319
+ }
320
+
321
+ export declare namespace Contents {
322
+ export {
323
+ type FetchRequest as FetchRequest,
324
+ type Response as Response,
325
+ type ContentFetchParams as ContentFetchParams,
326
+ };
327
+ }
@@ -0,0 +1,16 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export { Contents, type FetchRequest, type Response, type ContentFetchParams } from './contents';
4
+ export { Providers, type Provider, type ProviderListResponse, type ProviderListParams } from './providers';
5
+ export {
6
+ SearchResource,
7
+ type Attempt,
8
+ type ProviderTarget,
9
+ type Request,
10
+ type Result,
11
+ type Search,
12
+ type Strategy,
13
+ type Usage,
14
+ type Warning,
15
+ type SearchCreateParams,
16
+ } from './search';