@onkernel/sdk 0.114.0 → 0.116.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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.116.0](https://github.com/kernel/kernel-node-sdk/compare/v0.115.0...v0.116.0) (2026-10-01)
4
+
5
+
6
+ ### Features
7
+
8
+ * chore(stlc): seal custom-code tracking files ([4616669](https://github.com/kernel/kernel-node-sdk/commit/461666905f32dd676b482af118c0e1bdf8d70f07))
9
+
10
+ ## [0.115.0](https://github.com/kernel/kernel-node-sdk/compare/v0.114.0...v0.115.0) (2026-09-30)
11
+
12
+
13
+ ### Features
14
+
15
+ * Fetch content for selected results from retained searches ([kernel/kernel#3978](https://github.com/kernel/kernel/pull/3978))
16
+
3
17
  ## [0.114.0](https://github.com/kernel/kernel-node-sdk/compare/v0.113.0...v0.114.0) (2026-09-30)
4
18
 
5
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onkernel/sdk",
3
- "version": "0.114.0",
3
+ "version": "0.116.0",
4
4
  "description": "The official TypeScript library for the Kernel API",
5
5
  "author": "Kernel <>",
6
6
  "types": "./index.d.ts",
@@ -107,8 +107,26 @@ export interface CreateCredentialRequest {
107
107
  */
108
108
  sso_provider?: string;
109
109
  /**
110
- * Base32-encoded TOTP secret for generating one-time passwords. Used for automatic
111
- * 2FA during login.
110
+ * HMAC algorithm used to generate TOTP codes. Defaults to SHA1 and is ignored when
111
+ * an `otpauth://` URI supplies the algorithm.
112
+ */
113
+ totp_algorithm?: 'SHA1' | 'SHA256' | 'SHA512';
114
+ /**
115
+ * Number of digits in generated TOTP codes. Defaults to 6 and is ignored when an
116
+ * `otpauth://` URI supplies the digit count.
117
+ */
118
+ totp_digits?: number;
119
+ /**
120
+ * TOTP rotation period in seconds. Defaults to 30 and is ignored when an
121
+ * `otpauth://` URI supplies the period.
122
+ */
123
+ totp_period?: number;
124
+ /**
125
+ * Accepts a 16-128 character base32-encoded TOTP secret or an `otpauth://totp/...`
126
+ * URI. The range accepts existing shorter seeds and longer seeds regardless of
127
+ * HMAC algorithm; RFC 6238 recommends unpadded base32 lengths of 32/52/103 for
128
+ * SHA1/SHA256/SHA512. Only URI parameters present override the corresponding
129
+ * explicit TOTP fields. Used for automatic 2FA during login.
112
130
  */
113
131
  totp_secret?: string;
114
132
  }
@@ -152,14 +170,29 @@ export interface Credential {
152
170
  */
153
171
  sso_provider?: string | null;
154
172
  /**
155
- * Current 6-digit TOTP code. Only included in create/update responses when
156
- * totp_secret was just set.
173
+ * HMAC algorithm used to generate TOTP codes. Defaults to SHA1 for credentials
174
+ * created before this metadata was stored.
175
+ */
176
+ totp_algorithm?: 'SHA1' | 'SHA256' | 'SHA512';
177
+ /**
178
+ * Current TOTP code. Only included in create/update responses when totp_secret was
179
+ * just set.
157
180
  */
158
181
  totp_code?: string;
159
182
  /**
160
183
  * When the totp_code expires. Only included when totp_code is present.
161
184
  */
162
185
  totp_code_expires_at?: string;
186
+ /**
187
+ * Number of digits in generated TOTP codes. Defaults to 6 for credentials created
188
+ * before this metadata was stored.
189
+ */
190
+ totp_digits?: number;
191
+ /**
192
+ * TOTP rotation period in seconds. Defaults to 30 for credentials created before
193
+ * this metadata was stored.
194
+ */
195
+ totp_period?: number;
163
196
  /**
164
197
  * The field names stored in this credential's values (e.g., username, password).
165
198
  * Values themselves are never returned. Included on single-credential responses
@@ -186,8 +219,26 @@ export interface UpdateCredentialRequest {
186
219
  */
187
220
  sso_provider?: string | null;
188
221
  /**
189
- * Base32-encoded TOTP secret for generating one-time passwords. Spaces and
190
- * formatting are automatically normalized. Set to empty string to remove.
222
+ * HMAC algorithm used to generate TOTP codes. Requires totp_secret and is ignored
223
+ * when an `otpauth://` URI supplies the algorithm.
224
+ */
225
+ totp_algorithm?: 'SHA1' | 'SHA256' | 'SHA512';
226
+ /**
227
+ * Number of digits in generated TOTP codes. Requires totp_secret and is ignored
228
+ * when an `otpauth://` URI supplies the digit count.
229
+ */
230
+ totp_digits?: number;
231
+ /**
232
+ * TOTP rotation period in seconds. Requires totp_secret and is ignored when an
233
+ * `otpauth://` URI supplies the period.
234
+ */
235
+ totp_period?: number;
236
+ /**
237
+ * Accepts a 16-128 character base32-encoded TOTP secret or an `otpauth://totp/...`
238
+ * URI. Only URI parameters present override the corresponding explicit TOTP
239
+ * fields. When rotating a raw secret, omitted fields preserve their existing
240
+ * values; a new URI defaults unspecified fields to SHA1/6/30. Set to empty string
241
+ * to remove the secret and its metadata.
191
242
  */
192
243
  totp_secret?: string;
193
244
  /**
@@ -231,8 +282,26 @@ export interface CredentialCreateParams {
231
282
  */
232
283
  sso_provider?: string;
233
284
  /**
234
- * Base32-encoded TOTP secret for generating one-time passwords. Used for automatic
235
- * 2FA during login.
285
+ * HMAC algorithm used to generate TOTP codes. Defaults to SHA1 and is ignored when
286
+ * an `otpauth://` URI supplies the algorithm.
287
+ */
288
+ totp_algorithm?: 'SHA1' | 'SHA256' | 'SHA512';
289
+ /**
290
+ * Number of digits in generated TOTP codes. Defaults to 6 and is ignored when an
291
+ * `otpauth://` URI supplies the digit count.
292
+ */
293
+ totp_digits?: number;
294
+ /**
295
+ * TOTP rotation period in seconds. Defaults to 30 and is ignored when an
296
+ * `otpauth://` URI supplies the period.
297
+ */
298
+ totp_period?: number;
299
+ /**
300
+ * Accepts a 16-128 character base32-encoded TOTP secret or an `otpauth://totp/...`
301
+ * URI. The range accepts existing shorter seeds and longer seeds regardless of
302
+ * HMAC algorithm; RFC 6238 recommends unpadded base32 lengths of 32/52/103 for
303
+ * SHA1/SHA256/SHA512. Only URI parameters present override the corresponding
304
+ * explicit TOTP fields. Used for automatic 2FA during login.
236
305
  */
237
306
  totp_secret?: string;
238
307
  }
@@ -252,8 +321,26 @@ export interface CredentialUpdateParams {
252
321
  */
253
322
  sso_provider?: string | null;
254
323
  /**
255
- * Base32-encoded TOTP secret for generating one-time passwords. Spaces and
256
- * formatting are automatically normalized. Set to empty string to remove.
324
+ * HMAC algorithm used to generate TOTP codes. Requires totp_secret and is ignored
325
+ * when an `otpauth://` URI supplies the algorithm.
326
+ */
327
+ totp_algorithm?: 'SHA1' | 'SHA256' | 'SHA512';
328
+ /**
329
+ * Number of digits in generated TOTP codes. Requires totp_secret and is ignored
330
+ * when an `otpauth://` URI supplies the digit count.
331
+ */
332
+ totp_digits?: number;
333
+ /**
334
+ * TOTP rotation period in seconds. Requires totp_secret and is ignored when an
335
+ * `otpauth://` URI supplies the period.
336
+ */
337
+ totp_period?: number;
338
+ /**
339
+ * Accepts a 16-128 character base32-encoded TOTP secret or an `otpauth://totp/...`
340
+ * URI. Only URI parameters present override the corresponding explicit TOTP
341
+ * fields. When rotating a raw secret, omitted fields preserve their existing
342
+ * values; a new URI defaults unspecified fields to SHA1/6/30. Set to empty string
343
+ * to remove the secret and its metadata.
257
344
  */
258
345
  totp_secret?: string;
259
346
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"credentials.d.mts","sourceRoot":"","sources":["../src/resources/credentials.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE,+BAA2B;AAEhG,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAItF;;;;;;;;;OASG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAI5E;;;;;;;;;;OAUG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,E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ED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
@@ -107,8 +107,26 @@ export interface CreateCredentialRequest {
107
107
  */
108
108
  sso_provider?: string;
109
109
  /**
110
- * Base32-encoded TOTP secret for generating one-time passwords. Used for automatic
111
- * 2FA during login.
110
+ * HMAC algorithm used to generate TOTP codes. Defaults to SHA1 and is ignored when
111
+ * an `otpauth://` URI supplies the algorithm.
112
+ */
113
+ totp_algorithm?: 'SHA1' | 'SHA256' | 'SHA512';
114
+ /**
115
+ * Number of digits in generated TOTP codes. Defaults to 6 and is ignored when an
116
+ * `otpauth://` URI supplies the digit count.
117
+ */
118
+ totp_digits?: number;
119
+ /**
120
+ * TOTP rotation period in seconds. Defaults to 30 and is ignored when an
121
+ * `otpauth://` URI supplies the period.
122
+ */
123
+ totp_period?: number;
124
+ /**
125
+ * Accepts a 16-128 character base32-encoded TOTP secret or an `otpauth://totp/...`
126
+ * URI. The range accepts existing shorter seeds and longer seeds regardless of
127
+ * HMAC algorithm; RFC 6238 recommends unpadded base32 lengths of 32/52/103 for
128
+ * SHA1/SHA256/SHA512. Only URI parameters present override the corresponding
129
+ * explicit TOTP fields. Used for automatic 2FA during login.
112
130
  */
113
131
  totp_secret?: string;
114
132
  }
@@ -152,14 +170,29 @@ export interface Credential {
152
170
  */
153
171
  sso_provider?: string | null;
154
172
  /**
155
- * Current 6-digit TOTP code. Only included in create/update responses when
156
- * totp_secret was just set.
173
+ * HMAC algorithm used to generate TOTP codes. Defaults to SHA1 for credentials
174
+ * created before this metadata was stored.
175
+ */
176
+ totp_algorithm?: 'SHA1' | 'SHA256' | 'SHA512';
177
+ /**
178
+ * Current TOTP code. Only included in create/update responses when totp_secret was
179
+ * just set.
157
180
  */
158
181
  totp_code?: string;
159
182
  /**
160
183
  * When the totp_code expires. Only included when totp_code is present.
161
184
  */
162
185
  totp_code_expires_at?: string;
186
+ /**
187
+ * Number of digits in generated TOTP codes. Defaults to 6 for credentials created
188
+ * before this metadata was stored.
189
+ */
190
+ totp_digits?: number;
191
+ /**
192
+ * TOTP rotation period in seconds. Defaults to 30 for credentials created before
193
+ * this metadata was stored.
194
+ */
195
+ totp_period?: number;
163
196
  /**
164
197
  * The field names stored in this credential's values (e.g., username, password).
165
198
  * Values themselves are never returned. Included on single-credential responses
@@ -186,8 +219,26 @@ export interface UpdateCredentialRequest {
186
219
  */
187
220
  sso_provider?: string | null;
188
221
  /**
189
- * Base32-encoded TOTP secret for generating one-time passwords. Spaces and
190
- * formatting are automatically normalized. Set to empty string to remove.
222
+ * HMAC algorithm used to generate TOTP codes. Requires totp_secret and is ignored
223
+ * when an `otpauth://` URI supplies the algorithm.
224
+ */
225
+ totp_algorithm?: 'SHA1' | 'SHA256' | 'SHA512';
226
+ /**
227
+ * Number of digits in generated TOTP codes. Requires totp_secret and is ignored
228
+ * when an `otpauth://` URI supplies the digit count.
229
+ */
230
+ totp_digits?: number;
231
+ /**
232
+ * TOTP rotation period in seconds. Requires totp_secret and is ignored when an
233
+ * `otpauth://` URI supplies the period.
234
+ */
235
+ totp_period?: number;
236
+ /**
237
+ * Accepts a 16-128 character base32-encoded TOTP secret or an `otpauth://totp/...`
238
+ * URI. Only URI parameters present override the corresponding explicit TOTP
239
+ * fields. When rotating a raw secret, omitted fields preserve their existing
240
+ * values; a new URI defaults unspecified fields to SHA1/6/30. Set to empty string
241
+ * to remove the secret and its metadata.
191
242
  */
192
243
  totp_secret?: string;
193
244
  /**
@@ -231,8 +282,26 @@ export interface CredentialCreateParams {
231
282
  */
232
283
  sso_provider?: string;
233
284
  /**
234
- * Base32-encoded TOTP secret for generating one-time passwords. Used for automatic
235
- * 2FA during login.
285
+ * HMAC algorithm used to generate TOTP codes. Defaults to SHA1 and is ignored when
286
+ * an `otpauth://` URI supplies the algorithm.
287
+ */
288
+ totp_algorithm?: 'SHA1' | 'SHA256' | 'SHA512';
289
+ /**
290
+ * Number of digits in generated TOTP codes. Defaults to 6 and is ignored when an
291
+ * `otpauth://` URI supplies the digit count.
292
+ */
293
+ totp_digits?: number;
294
+ /**
295
+ * TOTP rotation period in seconds. Defaults to 30 and is ignored when an
296
+ * `otpauth://` URI supplies the period.
297
+ */
298
+ totp_period?: number;
299
+ /**
300
+ * Accepts a 16-128 character base32-encoded TOTP secret or an `otpauth://totp/...`
301
+ * URI. The range accepts existing shorter seeds and longer seeds regardless of
302
+ * HMAC algorithm; RFC 6238 recommends unpadded base32 lengths of 32/52/103 for
303
+ * SHA1/SHA256/SHA512. Only URI parameters present override the corresponding
304
+ * explicit TOTP fields. Used for automatic 2FA during login.
236
305
  */
237
306
  totp_secret?: string;
238
307
  }
@@ -252,8 +321,26 @@ export interface CredentialUpdateParams {
252
321
  */
253
322
  sso_provider?: string | null;
254
323
  /**
255
- * Base32-encoded TOTP secret for generating one-time passwords. Spaces and
256
- * formatting are automatically normalized. Set to empty string to remove.
324
+ * HMAC algorithm used to generate TOTP codes. Requires totp_secret and is ignored
325
+ * when an `otpauth://` URI supplies the algorithm.
326
+ */
327
+ totp_algorithm?: 'SHA1' | 'SHA256' | 'SHA512';
328
+ /**
329
+ * Number of digits in generated TOTP codes. Requires totp_secret and is ignored
330
+ * when an `otpauth://` URI supplies the digit count.
331
+ */
332
+ totp_digits?: number;
333
+ /**
334
+ * TOTP rotation period in seconds. Requires totp_secret and is ignored when an
335
+ * `otpauth://` URI supplies the period.
336
+ */
337
+ totp_period?: number;
338
+ /**
339
+ * Accepts a 16-128 character base32-encoded TOTP secret or an `otpauth://totp/...`
340
+ * URI. Only URI parameters present override the corresponding explicit TOTP
341
+ * fields. When rotating a raw secret, omitted fields preserve their existing
342
+ * values; a new URI defaults unspecified fields to SHA1/6/30. Set to empty string
343
+ * to remove the secret and its metadata.
257
344
  */
258
345
  totp_secret?: string;
259
346
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../src/resources/credentials.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE,8BAA2B;AAEhG,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAItF;;;;;;;;;OASG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAI5E;;;;;;;;;;OAUG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAIxG;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,2BAA2B,EAAE,UAAU,CAAC;IAIvD;;;;;;;OAOG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOpE;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EA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;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAElC;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAE9C;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACpC;AAED,MAAM,WAAW,oBAAqB,SAAQ,sBAAsB;IAClE;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
@@ -7,16 +7,24 @@ import { RequestOptions } from "../../internal/request-options.mjs";
7
7
  */
8
8
  export declare class Contents extends APIResource {
9
9
  /**
10
- * Deferred result-content retrieval is reserved but not available in this release.
11
- * Requests return 404 until the retrieval implementation is shipped. X-Request-Id
12
- * identifies this request separately from the search resource.
10
+ * Retrieves selected results from a retained search. Provide exactly one of
11
+ * result_ids or limit; the latter fetches the top results. Content defaults to
12
+ * source:auto. Responses preserve result_ids order. Unknown result IDs are
13
+ * rejected before retrieval starts. Missing, expired, or inaccessible searches
14
+ * return 404. Once retrieval begins, return one outcome per selected result,
15
+ * including timeout entries for work unfinished at the overall deadline. Browser
16
+ * retrievals run sequentially in result order, so later results may time out when
17
+ * earlier pages are slow. X-Request-Id identifies this request separately from the
18
+ * search resource.
13
19
  *
14
20
  * @example
15
21
  * ```ts
16
- * await client.search.contents.fetch('srch_abc123');
22
+ * const response = await client.search.contents.fetch(
23
+ * 'srch_abc123',
24
+ * );
17
25
  * ```
18
26
  */
19
- fetch(id: string, body: ContentFetchParams, options?: RequestOptions): APIPromise<void>;
27
+ fetch(id: string, body: ContentFetchParams, options?: RequestOptions): APIPromise<Response>;
20
28
  }
21
29
  export interface FetchRequest {
22
30
  /**
@@ -44,32 +52,33 @@ export declare namespace FetchRequest {
44
52
  */
45
53
  interface Content {
46
54
  /**
47
- * Invalid with source=provider. Supplying browser_id requires source=browser so
48
- * the chosen identity is not bypassed.
55
+ * Requires source=auto or source=browser in deferred retrieval.
49
56
  */
50
57
  browser?: Content.Browser;
51
58
  format?: 'markdown' | 'text';
52
59
  /**
53
- * Maximum acceptable age of cached page content, measured from origin retrieval. 0
54
- * forces a live fetch. Governs the Kernel content cache, which is scoped to the
55
- * caller organization and project and separated by retrieval context; fetches
56
- * through a caller-supplied browser_id bypass that cache. Mapped to the provider
57
- * freshness control when source is provider and the provider supports one;
58
- * otherwise provider content age is reported as unknown via fetched_at.
60
+ * For source=auto, maximum acceptable age of retained provider content, measured
61
+ * from when the search received it from the provider. A value of 0 disables reuse
62
+ * of retained content, so every result is fetched through a browser.
63
+ * source=provider reuses retained provider content without freshness validation.
64
+ * source=browser always fetches through a browser and does not use this age limit.
59
65
  */
60
66
  max_age_hours?: number;
61
67
  /**
62
- * Per-result Unicode character limit after extraction.
68
+ * Per-result Unicode character limit after extraction. Retained provider content
69
+ * cannot exceed what was stored at search time; such results report truncated when
70
+ * the stored text was already truncated.
63
71
  */
64
72
  max_chars?: number;
65
73
  /**
66
- * provider uses the search provider's native content retrieval; browser fetches
67
- * each URL through a Kernel browser; auto prefers Kernel browser retrieval and
68
- * falls back to provider-native content when browser retrieval is unavailable or
69
- * unsuitable. Defaults to auto for both inline and deferred retrieval. Deferred
70
- * provider retrieval requires post_hoc capability; an explicit provider source
71
- * without it is a 400. Missing documents produce per-result unavailable outcomes,
72
- * not request failures.
74
+ * auto uses retained provider content within max_age_hours; for deferred retrieval
75
+ * it falls back to a Kernel browser (caller-supplied or temporary) for results
76
+ * without it. Inline retrieval never uses a browser. provider reuses retained
77
+ * provider content when available, without freshness validation, and never
78
+ * provisions a browser. browser fetches each URL through a Kernel browser, either
79
+ * caller-supplied or temporary. No option makes a new provider request. Defaults
80
+ * to auto for both inline and deferred retrieval. Missing documents produce
81
+ * per-result unavailable outcomes, not request failures.
73
82
  */
74
83
  source?: 'auto' | 'provider' | 'browser';
75
84
  /**
@@ -80,17 +89,22 @@ export declare namespace FetchRequest {
80
89
  }
81
90
  namespace Content {
82
91
  /**
83
- * Invalid with source=provider. Supplying browser_id requires source=browser so
84
- * the chosen identity is not bypassed.
92
+ * Requires source=auto or source=browser in deferred retrieval.
85
93
  */
86
94
  interface Browser {
87
95
  /**
88
96
  * Existing browser session ID authorized for the caller and selected project.
89
- * Reuses its cookies, proxy, and browser configuration. Kernel does not delete a
90
- * caller-supplied browser. Render mode uses a temporary tab; website activity may
91
- * still change shared cookies and storage. When omitted, Kernel obtains isolated
92
- * browser capacity in the caller's account and releases it after retrieval. That
93
- * capacity is not retained for later interaction. Existing browser quotas apply.
97
+ * Reuses its cookies, proxy, and browser configuration; requests follow that
98
+ * browser's existing network access behavior, with no additional destination
99
+ * allowlist in this endpoint. Kernel does not delete a caller-supplied browser.
100
+ * Render mode uses a temporary tab; website activity may still change shared
101
+ * cookies and storage. When omitted and any result needs browser retrieval, Kernel
102
+ * creates one temporary browser for the request using the dashboard launch
103
+ * defaults (headful, stealth, default proxy), tags it with search_id, and deletes
104
+ * it when the request finishes. It is billed and counts toward browser concurrency
105
+ * like any other browser. A concurrency rejection returns 429 for source=browser;
106
+ * for source=auto, results with retained content are still returned and the rest
107
+ * report the rejection.
94
108
  */
95
109
  browser_id?: string;
96
110
  /**
@@ -123,7 +137,9 @@ export declare namespace Response {
123
137
  */
124
138
  url: string;
125
139
  /**
126
- * Kernel cache outcome. Provider-internal cache behavior may be unknown.
140
+ * Kernel content cache outcome. Kernel has no content cache yet: responses report
141
+ * bypass or unknown, and hit and miss are reserved. Provider-internal cache
142
+ * behavior may be unknown.
127
143
  */
128
144
  cache_status?: 'hit' | 'miss' | 'bypass' | 'unknown';
129
145
  /**
@@ -137,20 +153,26 @@ export declare namespace Response {
137
153
  */
138
154
  extractor_version?: string;
139
155
  /**
140
- * Origin retrieval time when known, not cache read time.
156
+ * When Kernel fetched the content, or received it from the provider for retained
157
+ * content.
141
158
  */
142
159
  fetched_at?: string | null;
143
160
  /**
144
- * Final retrieval URL when known.
161
+ * Final retrieval URL after redirects when known. Curl mode follows up to 5
162
+ * redirects.
145
163
  */
146
164
  final_url?: string;
165
+ /**
166
+ * Format of text. Plain-text and JSON pages are returned unchanged as text even
167
+ * when markdown was requested.
168
+ */
147
169
  format?: 'markdown' | 'text';
148
170
  /**
149
171
  * Final target HTTP status when known.
150
172
  */
151
173
  http_status?: number;
152
174
  /**
153
- * Original retrieval method, including on cache hits.
175
+ * Original retrieval method.
154
176
  */
155
177
  method?: 'provider' | 'browser_curl' | 'browser_render';
156
178
  /**
@@ -159,7 +181,8 @@ export declare namespace Response {
159
181
  */
160
182
  text?: string;
161
183
  /**
162
- * Whether max_chars truncated the extracted content.
184
+ * Whether the content was cut short, by max_chars or because the page exceeded the
185
+ * 1 MiB read limit.
163
186
  */
164
187
  truncated?: boolean;
165
188
  }
@@ -203,32 +226,33 @@ export declare namespace ContentFetchParams {
203
226
  */
204
227
  interface Content {
205
228
  /**
206
- * Invalid with source=provider. Supplying browser_id requires source=browser so
207
- * the chosen identity is not bypassed.
229
+ * Requires source=auto or source=browser in deferred retrieval.
208
230
  */
209
231
  browser?: Content.Browser;
210
232
  format?: 'markdown' | 'text';
211
233
  /**
212
- * Maximum acceptable age of cached page content, measured from origin retrieval. 0
213
- * forces a live fetch. Governs the Kernel content cache, which is scoped to the
214
- * caller organization and project and separated by retrieval context; fetches
215
- * through a caller-supplied browser_id bypass that cache. Mapped to the provider
216
- * freshness control when source is provider and the provider supports one;
217
- * otherwise provider content age is reported as unknown via fetched_at.
234
+ * For source=auto, maximum acceptable age of retained provider content, measured
235
+ * from when the search received it from the provider. A value of 0 disables reuse
236
+ * of retained content, so every result is fetched through a browser.
237
+ * source=provider reuses retained provider content without freshness validation.
238
+ * source=browser always fetches through a browser and does not use this age limit.
218
239
  */
219
240
  max_age_hours?: number;
220
241
  /**
221
- * Per-result Unicode character limit after extraction.
242
+ * Per-result Unicode character limit after extraction. Retained provider content
243
+ * cannot exceed what was stored at search time; such results report truncated when
244
+ * the stored text was already truncated.
222
245
  */
223
246
  max_chars?: number;
224
247
  /**
225
- * provider uses the search provider's native content retrieval; browser fetches
226
- * each URL through a Kernel browser; auto prefers Kernel browser retrieval and
227
- * falls back to provider-native content when browser retrieval is unavailable or
228
- * unsuitable. Defaults to auto for both inline and deferred retrieval. Deferred
229
- * provider retrieval requires post_hoc capability; an explicit provider source
230
- * without it is a 400. Missing documents produce per-result unavailable outcomes,
231
- * not request failures.
248
+ * auto uses retained provider content within max_age_hours; for deferred retrieval
249
+ * it falls back to a Kernel browser (caller-supplied or temporary) for results
250
+ * without it. Inline retrieval never uses a browser. provider reuses retained
251
+ * provider content when available, without freshness validation, and never
252
+ * provisions a browser. browser fetches each URL through a Kernel browser, either
253
+ * caller-supplied or temporary. No option makes a new provider request. Defaults
254
+ * to auto for both inline and deferred retrieval. Missing documents produce
255
+ * per-result unavailable outcomes, not request failures.
232
256
  */
233
257
  source?: 'auto' | 'provider' | 'browser';
234
258
  /**
@@ -239,17 +263,22 @@ export declare namespace ContentFetchParams {
239
263
  }
240
264
  namespace Content {
241
265
  /**
242
- * Invalid with source=provider. Supplying browser_id requires source=browser so
243
- * the chosen identity is not bypassed.
266
+ * Requires source=auto or source=browser in deferred retrieval.
244
267
  */
245
268
  interface Browser {
246
269
  /**
247
270
  * Existing browser session ID authorized for the caller and selected project.
248
- * Reuses its cookies, proxy, and browser configuration. Kernel does not delete a
249
- * caller-supplied browser. Render mode uses a temporary tab; website activity may
250
- * still change shared cookies and storage. When omitted, Kernel obtains isolated
251
- * browser capacity in the caller's account and releases it after retrieval. That
252
- * capacity is not retained for later interaction. Existing browser quotas apply.
271
+ * Reuses its cookies, proxy, and browser configuration; requests follow that
272
+ * browser's existing network access behavior, with no additional destination
273
+ * allowlist in this endpoint. Kernel does not delete a caller-supplied browser.
274
+ * Render mode uses a temporary tab; website activity may still change shared
275
+ * cookies and storage. When omitted and any result needs browser retrieval, Kernel
276
+ * creates one temporary browser for the request using the dashboard launch
277
+ * defaults (headful, stealth, default proxy), tags it with search_id, and deletes
278
+ * it when the request finishes. It is billed and counts toward browser concurrency
279
+ * like any other browser. A concurrency rejection returns 429 for source=browser;
280
+ * for source=auto, results with retained content are still returned and the rest
281
+ * report the rejection.
253
282
  */
254
283
  browser_id?: string;
255
284
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"contents.d.mts","sourceRoot":"","sources":["../../src/resources/search/contents.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;I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