@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.
- package/CHANGELOG.md +33 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/streaming.d.mts.map +1 -1
- package/core/streaming.d.ts.map +1 -1
- package/core/streaming.mjs.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/decoders/line.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/lib/browser-fetch.d.mts.map +1 -1
- package/lib/browser-fetch.d.ts.map +1 -1
- package/lib/browser-fetch.mjs.map +1 -1
- package/lib/browser-routing.d.mts.map +1 -1
- package/lib/browser-routing.d.ts.map +1 -1
- package/lib/browser-routing.mjs.map +1 -1
- package/package.json +1 -1
- package/pagination.d.mts +1 -0
- package/pagination.d.mts.map +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.mjs +1 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.mjs.map +1 -1
- package/resources/auth/auth.d.mts.map +1 -1
- package/resources/auth/auth.d.ts.map +1 -1
- package/resources/auth/auth.mjs.map +1 -1
- package/resources/auth/connections.d.mts +123 -5
- package/resources/auth/connections.d.mts.map +1 -1
- package/resources/auth/connections.d.ts +123 -5
- package/resources/auth/connections.d.ts.map +1 -1
- package/resources/auth/connections.mjs.map +1 -1
- package/resources/auth/index.d.mts.map +1 -1
- package/resources/auth/index.d.ts.map +1 -1
- package/resources/auth/index.mjs.map +1 -1
- package/resources/auth.d.mts.map +1 -1
- package/resources/auth.d.ts.map +1 -1
- package/resources/auth.mjs.map +1 -1
- package/resources/browser-pools.d.mts +23 -12
- package/resources/browser-pools.d.mts.map +1 -1
- package/resources/browser-pools.d.ts +23 -12
- package/resources/browser-pools.d.ts.map +1 -1
- package/resources/browser-pools.js.map +1 -1
- package/resources/browser-pools.mjs.map +1 -1
- package/resources/browsers/browsers.d.mts +97 -58
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +97 -58
- package/resources/browsers/browsers.d.ts.map +1 -1
- package/resources/browsers/browsers.js +4 -14
- package/resources/browsers/browsers.js.map +1 -1
- package/resources/browsers/browsers.mjs +4 -14
- package/resources/browsers/browsers.mjs.map +1 -1
- package/resources/browsers/computer.d.mts.map +1 -1
- package/resources/browsers/computer.d.ts.map +1 -1
- package/resources/browsers/computer.mjs.map +1 -1
- package/resources/browsers/fs/fs.d.mts.map +1 -1
- package/resources/browsers/fs/fs.d.ts.map +1 -1
- package/resources/browsers/fs/fs.mjs.map +1 -1
- package/resources/browsers/fs/index.d.mts.map +1 -1
- package/resources/browsers/fs/index.d.ts.map +1 -1
- package/resources/browsers/fs/index.mjs.map +1 -1
- package/resources/browsers/fs/watch.d.mts.map +1 -1
- package/resources/browsers/fs/watch.d.ts.map +1 -1
- package/resources/browsers/fs/watch.mjs.map +1 -1
- package/resources/browsers/fs.d.mts.map +1 -1
- package/resources/browsers/fs.d.ts.map +1 -1
- package/resources/browsers/fs.mjs.map +1 -1
- package/resources/browsers/index.d.mts +2 -1
- package/resources/browsers/index.d.mts.map +1 -1
- package/resources/browsers/index.d.ts +2 -1
- package/resources/browsers/index.d.ts.map +1 -1
- package/resources/browsers/index.js +3 -1
- package/resources/browsers/index.js.map +1 -1
- package/resources/browsers/index.mjs +1 -0
- package/resources/browsers/index.mjs.map +1 -1
- package/resources/browsers/logs.d.mts.map +1 -1
- package/resources/browsers/logs.d.ts.map +1 -1
- package/resources/browsers/logs.mjs.map +1 -1
- package/resources/browsers/playwright.d.mts.map +1 -1
- package/resources/browsers/playwright.d.ts.map +1 -1
- package/resources/browsers/playwright.mjs.map +1 -1
- package/resources/browsers/process.d.mts.map +1 -1
- package/resources/browsers/process.d.ts.map +1 -1
- package/resources/browsers/process.mjs.map +1 -1
- package/resources/browsers/replays.d.mts.map +1 -1
- package/resources/browsers/replays.d.ts.map +1 -1
- package/resources/browsers/replays.mjs.map +1 -1
- package/resources/browsers/telemetry.d.mts +1247 -0
- package/resources/browsers/telemetry.d.mts.map +1 -0
- package/resources/browsers/telemetry.d.ts +1247 -0
- package/resources/browsers/telemetry.d.ts.map +1 -0
- package/resources/browsers/telemetry.js +45 -0
- package/resources/browsers/telemetry.js.map +1 -0
- package/resources/browsers/telemetry.mjs +41 -0
- package/resources/browsers/telemetry.mjs.map +1 -0
- package/resources/browsers.d.mts.map +1 -1
- package/resources/browsers.d.ts.map +1 -1
- package/resources/browsers.mjs.map +1 -1
- package/resources/credential-providers.d.mts.map +1 -1
- package/resources/credential-providers.d.ts.map +1 -1
- package/resources/credential-providers.mjs.map +1 -1
- package/resources/credentials.d.mts.map +1 -1
- package/resources/credentials.d.ts.map +1 -1
- package/resources/credentials.mjs.map +1 -1
- package/resources/deployments.d.mts.map +1 -1
- package/resources/deployments.d.ts.map +1 -1
- package/resources/deployments.mjs.map +1 -1
- package/resources/extensions.d.mts.map +1 -1
- package/resources/extensions.d.ts.map +1 -1
- package/resources/extensions.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invocations.d.mts +17 -6
- package/resources/invocations.d.mts.map +1 -1
- package/resources/invocations.d.ts +17 -6
- package/resources/invocations.d.ts.map +1 -1
- package/resources/invocations.js.map +1 -1
- package/resources/invocations.mjs.map +1 -1
- package/resources/profiles.d.mts.map +1 -1
- package/resources/profiles.d.ts.map +1 -1
- package/resources/profiles.mjs.map +1 -1
- package/resources/projects/index.d.mts.map +1 -1
- package/resources/projects/index.d.ts.map +1 -1
- package/resources/projects/index.mjs.map +1 -1
- package/resources/projects/limits.d.mts +0 -15
- package/resources/projects/limits.d.mts.map +1 -1
- package/resources/projects/limits.d.ts +0 -15
- package/resources/projects/limits.d.ts.map +1 -1
- package/resources/projects/limits.js +2 -2
- package/resources/projects/limits.js.map +1 -1
- package/resources/projects/limits.mjs +2 -2
- package/resources/projects/limits.mjs.map +1 -1
- package/resources/projects/projects.d.mts +1 -2
- package/resources/projects/projects.d.mts.map +1 -1
- package/resources/projects/projects.d.ts +1 -2
- package/resources/projects/projects.d.ts.map +1 -1
- package/resources/projects/projects.js +6 -7
- package/resources/projects/projects.js.map +1 -1
- package/resources/projects/projects.mjs +6 -7
- package/resources/projects/projects.mjs.map +1 -1
- package/resources/projects.d.mts.map +1 -1
- package/resources/projects.d.ts.map +1 -1
- package/resources/projects.mjs.map +1 -1
- package/resources/proxies.d.mts +3 -1
- package/resources/proxies.d.mts.map +1 -1
- package/resources/proxies.d.ts +3 -1
- package/resources/proxies.d.ts.map +1 -1
- package/resources/proxies.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +0 -4
- package/src/resources/auth/connections.ts +147 -5
- package/src/resources/browser-pools.ts +23 -13
- package/src/resources/browsers/browsers.ts +169 -74
- package/src/resources/browsers/index.ts +36 -2
- package/src/resources/browsers/telemetry.ts +1541 -0
- package/src/resources/index.ts +0 -2
- package/src/resources/invocations.ts +17 -7
- package/src/resources/projects/limits.ts +2 -20
- package/src/resources/projects/projects.ts +6 -7
- package/src/resources/proxies.ts +3 -1
- package/src/version.ts +1 -1
- package/streaming.d.mts +1 -0
- package/streaming.d.mts.map +1 -1
- package/streaming.d.ts +1 -0
- package/streaming.d.ts.map +1 -1
- package/streaming.mjs +1 -0
- package/streaming.mjs.map +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- 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
|
|
262
|
-
*
|
|
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
|
-
*
|
|
268
|
-
|
|
269
|
-
|
|
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
|
|
244
|
-
*
|
|
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 —
|
|
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
|
|
452
|
-
*
|
|
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
|
|
551
|
-
*
|
|
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;
|