@onkernel/sdk 0.54.0 → 0.57.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 (250) hide show
  1. package/CHANGELOG.md +33 -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 +2 -2
  9. package/client.d.mts.map +1 -1
  10. package/client.d.ts +2 -2
  11. package/client.d.ts.map +1 -1
  12. package/client.js.map +1 -1
  13. package/client.mjs.map +1 -1
  14. package/core/api-promise.d.mts.map +1 -1
  15. package/core/api-promise.d.ts.map +1 -1
  16. package/core/api-promise.mjs.map +1 -1
  17. package/core/error.mjs.map +1 -1
  18. package/core/pagination.d.mts.map +1 -1
  19. package/core/pagination.d.ts.map +1 -1
  20. package/core/pagination.mjs.map +1 -1
  21. package/core/resource.d.mts.map +1 -1
  22. package/core/resource.d.ts.map +1 -1
  23. package/core/streaming.d.mts.map +1 -1
  24. package/core/streaming.d.ts.map +1 -1
  25. package/core/streaming.mjs.map +1 -1
  26. package/core/uploads.d.mts.map +1 -1
  27. package/core/uploads.d.ts.map +1 -1
  28. package/core/uploads.mjs.map +1 -1
  29. package/error.d.mts +1 -0
  30. package/error.d.mts.map +1 -1
  31. package/error.d.ts +1 -0
  32. package/error.d.ts.map +1 -1
  33. package/error.mjs +1 -0
  34. package/error.mjs.map +1 -1
  35. package/index.d.mts.map +1 -1
  36. package/index.d.ts.map +1 -1
  37. package/index.mjs.map +1 -1
  38. package/internal/decoders/line.mjs.map +1 -1
  39. package/internal/detect-platform.mjs.map +1 -1
  40. package/internal/headers.mjs.map +1 -1
  41. package/internal/parse.d.mts.map +1 -1
  42. package/internal/parse.d.ts.map +1 -1
  43. package/internal/parse.mjs.map +1 -1
  44. package/internal/request-options.d.mts.map +1 -1
  45. package/internal/request-options.d.ts.map +1 -1
  46. package/internal/shims.d.mts +6 -0
  47. package/internal/shims.d.mts.map +1 -1
  48. package/internal/shims.d.ts +6 -0
  49. package/internal/shims.d.ts.map +1 -1
  50. package/internal/to-file.d.mts.map +1 -1
  51. package/internal/to-file.d.ts.map +1 -1
  52. package/internal/to-file.mjs.map +1 -1
  53. package/internal/types.d.mts +4 -4
  54. package/internal/types.d.mts.map +1 -1
  55. package/internal/types.d.ts +4 -4
  56. package/internal/types.d.ts.map +1 -1
  57. package/internal/uploads.d.mts.map +1 -1
  58. package/internal/uploads.d.ts.map +1 -1
  59. package/internal/uploads.mjs.map +1 -1
  60. package/internal/utils/base64.mjs.map +1 -1
  61. package/internal/utils/log.d.mts.map +1 -1
  62. package/internal/utils/log.d.ts.map +1 -1
  63. package/internal/utils/log.mjs.map +1 -1
  64. package/internal/utils/path.mjs.map +1 -1
  65. package/internal/utils/query.mjs.map +1 -1
  66. package/internal/utils/values.mjs.map +1 -1
  67. package/internal/utils.d.mts.map +1 -1
  68. package/internal/utils.d.ts.map +1 -1
  69. package/internal/utils.mjs.map +1 -1
  70. package/lib/browser-fetch.d.mts.map +1 -1
  71. package/lib/browser-fetch.d.ts.map +1 -1
  72. package/lib/browser-fetch.mjs.map +1 -1
  73. package/lib/browser-routing.d.mts.map +1 -1
  74. package/lib/browser-routing.d.ts.map +1 -1
  75. package/lib/browser-routing.mjs.map +1 -1
  76. package/package.json +1 -1
  77. package/pagination.d.mts +1 -0
  78. package/pagination.d.mts.map +1 -1
  79. package/pagination.d.ts +1 -0
  80. package/pagination.d.ts.map +1 -1
  81. package/pagination.mjs +1 -0
  82. package/pagination.mjs.map +1 -1
  83. package/resource.d.mts +1 -0
  84. package/resource.d.mts.map +1 -1
  85. package/resource.d.ts +1 -0
  86. package/resource.d.ts.map +1 -1
  87. package/resource.mjs +1 -0
  88. package/resource.mjs.map +1 -1
  89. package/resources/apps.d.mts.map +1 -1
  90. package/resources/apps.d.ts.map +1 -1
  91. package/resources/apps.mjs.map +1 -1
  92. package/resources/auth/auth.d.mts.map +1 -1
  93. package/resources/auth/auth.d.ts.map +1 -1
  94. package/resources/auth/auth.mjs.map +1 -1
  95. package/resources/auth/connections.d.mts +123 -5
  96. package/resources/auth/connections.d.mts.map +1 -1
  97. package/resources/auth/connections.d.ts +123 -5
  98. package/resources/auth/connections.d.ts.map +1 -1
  99. package/resources/auth/connections.mjs.map +1 -1
  100. package/resources/auth/index.d.mts.map +1 -1
  101. package/resources/auth/index.d.ts.map +1 -1
  102. package/resources/auth/index.mjs.map +1 -1
  103. package/resources/auth.d.mts.map +1 -1
  104. package/resources/auth.d.ts.map +1 -1
  105. package/resources/auth.mjs.map +1 -1
  106. package/resources/browser-pools.d.mts +23 -12
  107. package/resources/browser-pools.d.mts.map +1 -1
  108. package/resources/browser-pools.d.ts +23 -12
  109. package/resources/browser-pools.d.ts.map +1 -1
  110. package/resources/browser-pools.js.map +1 -1
  111. package/resources/browser-pools.mjs.map +1 -1
  112. package/resources/browsers/browsers.d.mts +97 -58
  113. package/resources/browsers/browsers.d.mts.map +1 -1
  114. package/resources/browsers/browsers.d.ts +97 -58
  115. package/resources/browsers/browsers.d.ts.map +1 -1
  116. package/resources/browsers/browsers.js +4 -14
  117. package/resources/browsers/browsers.js.map +1 -1
  118. package/resources/browsers/browsers.mjs +4 -14
  119. package/resources/browsers/browsers.mjs.map +1 -1
  120. package/resources/browsers/computer.d.mts.map +1 -1
  121. package/resources/browsers/computer.d.ts.map +1 -1
  122. package/resources/browsers/computer.mjs.map +1 -1
  123. package/resources/browsers/fs/fs.d.mts.map +1 -1
  124. package/resources/browsers/fs/fs.d.ts.map +1 -1
  125. package/resources/browsers/fs/fs.mjs.map +1 -1
  126. package/resources/browsers/fs/index.d.mts.map +1 -1
  127. package/resources/browsers/fs/index.d.ts.map +1 -1
  128. package/resources/browsers/fs/index.mjs.map +1 -1
  129. package/resources/browsers/fs/watch.d.mts.map +1 -1
  130. package/resources/browsers/fs/watch.d.ts.map +1 -1
  131. package/resources/browsers/fs/watch.mjs.map +1 -1
  132. package/resources/browsers/fs.d.mts.map +1 -1
  133. package/resources/browsers/fs.d.ts.map +1 -1
  134. package/resources/browsers/fs.mjs.map +1 -1
  135. package/resources/browsers/index.d.mts +2 -1
  136. package/resources/browsers/index.d.mts.map +1 -1
  137. package/resources/browsers/index.d.ts +2 -1
  138. package/resources/browsers/index.d.ts.map +1 -1
  139. package/resources/browsers/index.js +3 -1
  140. package/resources/browsers/index.js.map +1 -1
  141. package/resources/browsers/index.mjs +1 -0
  142. package/resources/browsers/index.mjs.map +1 -1
  143. package/resources/browsers/logs.d.mts.map +1 -1
  144. package/resources/browsers/logs.d.ts.map +1 -1
  145. package/resources/browsers/logs.mjs.map +1 -1
  146. package/resources/browsers/playwright.d.mts.map +1 -1
  147. package/resources/browsers/playwright.d.ts.map +1 -1
  148. package/resources/browsers/playwright.mjs.map +1 -1
  149. package/resources/browsers/process.d.mts.map +1 -1
  150. package/resources/browsers/process.d.ts.map +1 -1
  151. package/resources/browsers/process.mjs.map +1 -1
  152. package/resources/browsers/replays.d.mts.map +1 -1
  153. package/resources/browsers/replays.d.ts.map +1 -1
  154. package/resources/browsers/replays.mjs.map +1 -1
  155. package/resources/browsers/telemetry.d.mts +1247 -0
  156. package/resources/browsers/telemetry.d.mts.map +1 -0
  157. package/resources/browsers/telemetry.d.ts +1247 -0
  158. package/resources/browsers/telemetry.d.ts.map +1 -0
  159. package/resources/browsers/telemetry.js +45 -0
  160. package/resources/browsers/telemetry.js.map +1 -0
  161. package/resources/browsers/telemetry.mjs +41 -0
  162. package/resources/browsers/telemetry.mjs.map +1 -0
  163. package/resources/browsers.d.mts.map +1 -1
  164. package/resources/browsers.d.ts.map +1 -1
  165. package/resources/browsers.mjs.map +1 -1
  166. package/resources/credential-providers.d.mts.map +1 -1
  167. package/resources/credential-providers.d.ts.map +1 -1
  168. package/resources/credential-providers.mjs.map +1 -1
  169. package/resources/credentials.d.mts.map +1 -1
  170. package/resources/credentials.d.ts.map +1 -1
  171. package/resources/credentials.mjs.map +1 -1
  172. package/resources/deployments.d.mts.map +1 -1
  173. package/resources/deployments.d.ts.map +1 -1
  174. package/resources/deployments.mjs.map +1 -1
  175. package/resources/extensions.d.mts.map +1 -1
  176. package/resources/extensions.d.ts.map +1 -1
  177. package/resources/extensions.mjs.map +1 -1
  178. package/resources/index.d.mts +1 -1
  179. package/resources/index.d.mts.map +1 -1
  180. package/resources/index.d.ts +1 -1
  181. package/resources/index.d.ts.map +1 -1
  182. package/resources/index.js.map +1 -1
  183. package/resources/index.mjs.map +1 -1
  184. package/resources/invocations.d.mts +17 -6
  185. package/resources/invocations.d.mts.map +1 -1
  186. package/resources/invocations.d.ts +17 -6
  187. package/resources/invocations.d.ts.map +1 -1
  188. package/resources/invocations.js.map +1 -1
  189. package/resources/invocations.mjs.map +1 -1
  190. package/resources/profiles.d.mts.map +1 -1
  191. package/resources/profiles.d.ts.map +1 -1
  192. package/resources/profiles.mjs.map +1 -1
  193. package/resources/projects/index.d.mts.map +1 -1
  194. package/resources/projects/index.d.ts.map +1 -1
  195. package/resources/projects/index.mjs.map +1 -1
  196. package/resources/projects/limits.d.mts +0 -15
  197. package/resources/projects/limits.d.mts.map +1 -1
  198. package/resources/projects/limits.d.ts +0 -15
  199. package/resources/projects/limits.d.ts.map +1 -1
  200. package/resources/projects/limits.js +2 -2
  201. package/resources/projects/limits.js.map +1 -1
  202. package/resources/projects/limits.mjs +2 -2
  203. package/resources/projects/limits.mjs.map +1 -1
  204. package/resources/projects/projects.d.mts +1 -2
  205. package/resources/projects/projects.d.mts.map +1 -1
  206. package/resources/projects/projects.d.ts +1 -2
  207. package/resources/projects/projects.d.ts.map +1 -1
  208. package/resources/projects/projects.js +6 -7
  209. package/resources/projects/projects.js.map +1 -1
  210. package/resources/projects/projects.mjs +6 -7
  211. package/resources/projects/projects.mjs.map +1 -1
  212. package/resources/projects.d.mts.map +1 -1
  213. package/resources/projects.d.ts.map +1 -1
  214. package/resources/projects.mjs.map +1 -1
  215. package/resources/proxies.d.mts +3 -1
  216. package/resources/proxies.d.mts.map +1 -1
  217. package/resources/proxies.d.ts +3 -1
  218. package/resources/proxies.d.ts.map +1 -1
  219. package/resources/proxies.mjs.map +1 -1
  220. package/resources.d.mts.map +1 -1
  221. package/resources.d.ts.map +1 -1
  222. package/resources.mjs.map +1 -1
  223. package/src/client.ts +0 -4
  224. package/src/resources/auth/connections.ts +147 -5
  225. package/src/resources/browser-pools.ts +23 -13
  226. package/src/resources/browsers/browsers.ts +169 -74
  227. package/src/resources/browsers/index.ts +36 -2
  228. package/src/resources/browsers/telemetry.ts +1541 -0
  229. package/src/resources/index.ts +0 -2
  230. package/src/resources/invocations.ts +17 -7
  231. package/src/resources/projects/limits.ts +2 -20
  232. package/src/resources/projects/projects.ts +6 -7
  233. package/src/resources/proxies.ts +3 -1
  234. package/src/version.ts +1 -1
  235. package/streaming.d.mts +1 -0
  236. package/streaming.d.mts.map +1 -1
  237. package/streaming.d.ts +1 -0
  238. package/streaming.d.ts.map +1 -1
  239. package/streaming.mjs +1 -0
  240. package/streaming.mjs.map +1 -1
  241. package/uploads.d.mts +1 -0
  242. package/uploads.d.mts.map +1 -1
  243. package/uploads.d.ts +1 -0
  244. package/uploads.d.ts.map +1 -1
  245. package/uploads.mjs +1 -0
  246. package/uploads.mjs.map +1 -1
  247. package/version.d.mts +1 -1
  248. package/version.d.ts +1 -1
  249. package/version.js +1 -1
  250. package/version.mjs +1 -1
@@ -250,6 +250,17 @@ export interface ManagedAuth {
250
250
  */
251
251
  allowed_domains?: Array<string>;
252
252
 
253
+ /**
254
+ * Whether automatic re-authentication is permitted for this connection. This is an
255
+ * opt-in flag only — it does not check whether re-auth is actually feasible. Even
256
+ * when true, re-auth only runs when the system has what it needs to perform it
257
+ * (for example, saved credentials for the required login fields), and only after a
258
+ * scheduled health check detects an expired session — so this flag has no effect
259
+ * when `health_checks` is false. When false, expired sessions detected by a health
260
+ * check are marked as `NEEDS_AUTH` instead of attempting re-auth.
261
+ */
262
+ auto_reauth?: boolean;
263
+
253
264
  /**
254
265
  * ID of the underlying browser session driving the current flow (present when flow
255
266
  * in progress). Use this to inspect or terminate the browser session via the
@@ -258,15 +269,59 @@ export interface ManagedAuth {
258
269
  browser_session_id?: string | null;
259
270
 
260
271
  /**
261
- * Whether automatic re-authentication is possible (has credential, selectors, and
262
- * login_url)
272
+ * Whether Kernel can automatically re-authenticate this connection when the
273
+ * session expires. Requires a prior successful login plus either a Kernel
274
+ * credential or an external credential reference. See `can_reauth_reason` for the
275
+ * specific outcome.
263
276
  */
264
277
  can_reauth?: boolean;
265
278
 
266
279
  /**
267
- * Reason why automatic re-authentication is or is not possible
268
- */
269
- can_reauth_reason?: string;
280
+ * Machine-readable reason for the current value of `can_reauth`. Affirmative
281
+ * values (re-auth is possible):
282
+ *
283
+ * - `external_credential` — an external credential provider is attached
284
+ * - `cua_has_credential` — CUA flow with a stored credential
285
+ * - `has_credential` — Kernel credential is attached (optimistic; plan viability
286
+ * not checked)
287
+ * - `viable_plans_found` — at least one stored login plan can be replayed
288
+ * - `no_requirements_recorded` — no recorded credential requirements to fail
289
+ * against
290
+ * - `requirements_satisfiable` — recorded requirements can be met by the attached
291
+ * credential
292
+ *
293
+ * Negative values (a human must complete the login flow):
294
+ *
295
+ * - `no_prior_successful_login` — connection has never completed a successful
296
+ * login
297
+ * - `no_credential` — no Kernel or external credential attached
298
+ * - `no_viable_plans` — credential attached but no replayable login plan exists
299
+ * yet
300
+ * - `viable_plans_require_external_action` — stored plans need an external step
301
+ * (email link, push, etc.)
302
+ * - `requires_external_action` — recorded requirements include an external step
303
+ * - `requires_totp_without_secret` — flow needs a TOTP code but no TOTP secret is
304
+ * stored
305
+ * - `requires_sms_code` — flow needs an SMS code that cannot be received
306
+ * automatically
307
+ * - `requires_email_code` — flow needs an email code that cannot be received
308
+ * automatically
309
+ */
310
+ can_reauth_reason?:
311
+ | 'external_credential'
312
+ | 'cua_has_credential'
313
+ | 'has_credential'
314
+ | 'viable_plans_found'
315
+ | 'no_requirements_recorded'
316
+ | 'requirements_satisfiable'
317
+ | 'no_prior_successful_login'
318
+ | 'no_credential'
319
+ | 'no_viable_plans'
320
+ | 'viable_plans_require_external_action'
321
+ | 'requires_external_action'
322
+ | 'requires_totp_without_secret'
323
+ | 'requires_sms_code'
324
+ | 'requires_email_code';
270
325
 
271
326
  /**
272
327
  * Reference to credentials for the auth connection. Use one of:
@@ -337,6 +392,15 @@ export interface ManagedAuth {
337
392
  */
338
393
  health_check_interval?: number | null;
339
394
 
395
+ /**
396
+ * Whether periodic health checks are enabled for this connection. When false, the
397
+ * system will not automatically verify authentication status, and `auto_reauth`
398
+ * has no effect on the automatic flow (since re-auth is only triggered by a failed
399
+ * scheduled health check). Manually triggering a health check via the API still
400
+ * works regardless of this setting.
401
+ */
402
+ health_checks?: boolean;
403
+
340
404
  /**
341
405
  * URL to redirect user to for hosted login (present when flow in progress)
342
406
  */
@@ -591,6 +655,18 @@ export interface ManagedAuthCreateRequest {
591
655
  */
592
656
  allowed_domains?: Array<string>;
593
657
 
658
+ /**
659
+ * Whether to permit automatic re-authentication when a scheduled health check
660
+ * detects an expired session. This is an opt-in flag only — it does not check
661
+ * whether re-auth is actually feasible. Even when true, re-auth only runs when the
662
+ * system has what it needs to perform it (for example, saved credentials for the
663
+ * required login fields), and only after a scheduled health check detects an
664
+ * expired session — so this flag has no effect when `health_checks` is false. When
665
+ * false, expired sessions are marked as `NEEDS_AUTH` instead of attempting
666
+ * re-auth. Defaults to true.
667
+ */
668
+ auto_reauth?: boolean;
669
+
594
670
  /**
595
671
  * Reference to credentials for the auth connection. Use one of:
596
672
  *
@@ -609,6 +685,14 @@ export interface ManagedAuthCreateRequest {
609
685
  */
610
686
  health_check_interval?: number;
611
687
 
688
+ /**
689
+ * Whether to enable periodic health checks. When false, the system will not
690
+ * automatically verify authentication status, and `auto_reauth` has no effect on
691
+ * the automatic flow (since re-auth is only triggered by a failed scheduled health
692
+ * check). Defaults to true.
693
+ */
694
+ health_checks?: boolean;
695
+
612
696
  /**
613
697
  * Optional login page URL to skip discovery
614
698
  */
@@ -689,6 +773,17 @@ export interface ManagedAuthUpdateRequest {
689
773
  */
690
774
  allowed_domains?: Array<string>;
691
775
 
776
+ /**
777
+ * Whether automatic re-authentication is permitted for this connection. This is an
778
+ * opt-in flag only — it does not check whether re-auth is actually feasible. Even
779
+ * when true, re-auth only runs when the system has what it needs to perform it
780
+ * (for example, saved credentials for the required login fields), and only after a
781
+ * scheduled health check detects an expired session — so this flag has no effect
782
+ * when `health_checks` is false. When false, expired sessions detected by a health
783
+ * check are marked as `NEEDS_AUTH` instead of attempting re-auth.
784
+ */
785
+ auto_reauth?: boolean;
786
+
692
787
  /**
693
788
  * Reference to credentials for the auth connection. Use one of:
694
789
  *
@@ -703,6 +798,14 @@ export interface ManagedAuthUpdateRequest {
703
798
  */
704
799
  health_check_interval?: number;
705
800
 
801
+ /**
802
+ * Whether periodic health checks are enabled. When set to false, the system will
803
+ * not automatically verify authentication status, and `auto_reauth` has no effect
804
+ * on the automatic flow (since re-auth is only triggered by a failed scheduled
805
+ * health check).
806
+ */
807
+ health_checks?: boolean;
808
+
706
809
  /**
707
810
  * Login page URL. Set to empty string to clear.
708
811
  */
@@ -1068,6 +1171,18 @@ export interface ConnectionCreateParams {
1068
1171
  */
1069
1172
  allowed_domains?: Array<string>;
1070
1173
 
1174
+ /**
1175
+ * Whether to permit automatic re-authentication when a scheduled health check
1176
+ * detects an expired session. This is an opt-in flag only — it does not check
1177
+ * whether re-auth is actually feasible. Even when true, re-auth only runs when the
1178
+ * system has what it needs to perform it (for example, saved credentials for the
1179
+ * required login fields), and only after a scheduled health check detects an
1180
+ * expired session — so this flag has no effect when `health_checks` is false. When
1181
+ * false, expired sessions are marked as `NEEDS_AUTH` instead of attempting
1182
+ * re-auth. Defaults to true.
1183
+ */
1184
+ auto_reauth?: boolean;
1185
+
1071
1186
  /**
1072
1187
  * Reference to credentials for the auth connection. Use one of:
1073
1188
  *
@@ -1086,6 +1201,14 @@ export interface ConnectionCreateParams {
1086
1201
  */
1087
1202
  health_check_interval?: number;
1088
1203
 
1204
+ /**
1205
+ * Whether to enable periodic health checks. When false, the system will not
1206
+ * automatically verify authentication status, and `auto_reauth` has no effect on
1207
+ * the automatic flow (since re-auth is only triggered by a failed scheduled health
1208
+ * check). Defaults to true.
1209
+ */
1210
+ health_checks?: boolean;
1211
+
1089
1212
  /**
1090
1213
  * Optional login page URL to skip discovery
1091
1214
  */
@@ -1163,6 +1286,17 @@ export interface ConnectionUpdateParams {
1163
1286
  */
1164
1287
  allowed_domains?: Array<string>;
1165
1288
 
1289
+ /**
1290
+ * Whether automatic re-authentication is permitted for this connection. This is an
1291
+ * opt-in flag only — it does not check whether re-auth is actually feasible. Even
1292
+ * when true, re-auth only runs when the system has what it needs to perform it
1293
+ * (for example, saved credentials for the required login fields), and only after a
1294
+ * scheduled health check detects an expired session — so this flag has no effect
1295
+ * when `health_checks` is false. When false, expired sessions detected by a health
1296
+ * check are marked as `NEEDS_AUTH` instead of attempting re-auth.
1297
+ */
1298
+ auto_reauth?: boolean;
1299
+
1166
1300
  /**
1167
1301
  * Reference to credentials for the auth connection. Use one of:
1168
1302
  *
@@ -1177,6 +1311,14 @@ export interface ConnectionUpdateParams {
1177
1311
  */
1178
1312
  health_check_interval?: number;
1179
1313
 
1314
+ /**
1315
+ * Whether periodic health checks are enabled. When set to false, the system will
1316
+ * not automatically verify authentication status, and `auto_reauth` has no effect
1317
+ * on the automatic flow (since re-auth is only triggered by a failed scheduled
1318
+ * health check).
1319
+ */
1320
+ health_checks?: boolean;
1321
+
1180
1322
  /**
1181
1323
  * Login page URL. Set to empty string to clear.
1182
1324
  */
@@ -3,6 +3,7 @@
3
3
  import { APIResource } from '../core/resource';
4
4
  import * as Shared from './shared';
5
5
  import * as BrowsersAPI from './browsers/browsers';
6
+ import * as TelemetryAPI from './browsers/telemetry';
6
7
  import { APIPromise } from '../core/api-promise';
7
8
  import { buildHeaders } from '../internal/headers';
8
9
  import { RequestOptions } from '../internal/request-options';
@@ -240,8 +241,8 @@ export namespace BrowserPool {
240
241
  /**
241
242
  * Optional URL to navigate to when a new browser is warmed into the pool.
242
243
  * Best-effort: failures to navigate do not fail pool fill. Only applied to
243
- * newly-warmed browsers browsers reused via release/acquire keep whatever URL
244
- * the previous lease left them on. Accepts any URL Chromium can resolve, including
244
+ * newly-warmed browsers; browsers reused via release/acquire keep whatever URL the
245
+ * previous lease left them on. Accepts any URL Chromium can resolve, including
245
246
  * chrome:// pages.
246
247
  */
247
248
  start_url?: string;
@@ -325,6 +326,13 @@ export interface BrowserPoolAcquireResponse {
325
326
  */
326
327
  browser_live_view_url?: string;
327
328
 
329
+ /**
330
+ * Custom Chrome enterprise policy overrides that were applied to this browser
331
+ * session, if any. Echoed back for verification. Keys are Chrome enterprise policy
332
+ * names.
333
+ */
334
+ chrome_policy?: { [key: string]: unknown };
335
+
328
336
  /**
329
337
  * When the browser session was soft-deleted. Only present for deleted sessions.
330
338
  */
@@ -341,12 +349,6 @@ export interface BrowserPoolAcquireResponse {
341
349
  */
342
350
  kiosk_mode?: boolean;
343
351
 
344
- /**
345
- * @deprecated DEPRECATED: Use timeout_seconds (up to 72 hours) and Profiles
346
- * instead.
347
- */
348
- persistence?: BrowsersAPI.BrowserPersistence;
349
-
350
352
  /**
351
353
  * Browser pool this session was acquired from, if any.
352
354
  */
@@ -364,10 +366,18 @@ export interface BrowserPoolAcquireResponse {
364
366
 
365
367
  /**
366
368
  * URL the session was asked to navigate to on creation, if any. Recorded for
367
- * debugging — navigation is best-effort and may have failed.
369
+ * debugging. Navigation is fire-and-forget the URL is dispatched to the browser
370
+ * without waiting for it to load, and any errors (DNS failure, bad status,
371
+ * timeout) are silently dropped. Captures what was requested, not what the browser
372
+ * actually loaded.
368
373
  */
369
374
  start_url?: string;
370
375
 
376
+ /**
377
+ * Active telemetry configuration for the session, if any.
378
+ */
379
+ telemetry?: TelemetryAPI.BrowserTelemetryConfig | null;
380
+
371
381
  /**
372
382
  * Session usage metrics.
373
383
  */
@@ -448,8 +458,8 @@ export interface BrowserPoolCreateParams {
448
458
  /**
449
459
  * Optional URL to navigate to when a new browser is warmed into the pool.
450
460
  * Best-effort: failures to navigate do not fail pool fill. Only applied to
451
- * newly-warmed browsers browsers reused via release/acquire keep whatever URL
452
- * the previous lease left them on. Accepts any URL Chromium can resolve, including
461
+ * newly-warmed browsers; browsers reused via release/acquire keep whatever URL the
462
+ * previous lease left them on. Accepts any URL Chromium can resolve, including
453
463
  * chrome:// pages.
454
464
  */
455
465
  start_url?: string;
@@ -547,8 +557,8 @@ export interface BrowserPoolUpdateParams {
547
557
  /**
548
558
  * Optional URL to navigate to when a new browser is warmed into the pool.
549
559
  * Best-effort: failures to navigate do not fail pool fill. Only applied to
550
- * newly-warmed browsers browsers reused via release/acquire keep whatever URL
551
- * the previous lease left them on. Accepts any URL Chromium can resolve, including
560
+ * newly-warmed browsers; browsers reused via release/acquire keep whatever URL the
561
+ * previous lease left them on. Accepts any URL Chromium can resolve, including
552
562
  * chrome:// pages.
553
563
  */
554
564
  start_url?: string;