@onkernel/sdk 0.93.0 → 0.94.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 +8 -0
- package/client.d.mts +6 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -0
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/lib/browser-routing.d.mts +1 -0
- package/lib/browser-routing.d.mts.map +1 -1
- package/lib/browser-routing.d.ts +1 -0
- package/lib/browser-routing.d.ts.map +1 -1
- package/lib/browser-routing.js +17 -2
- package/lib/browser-routing.js.map +1 -1
- package/lib/browser-routing.mjs +17 -2
- package/lib/browser-routing.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auth/connections.d.mts +42 -42
- package/resources/auth/connections.d.ts +42 -42
- package/resources/browser-pools.d.mts +18 -18
- package/resources/browser-pools.d.ts +18 -18
- package/resources/browsers/browsers.d.mts +15 -15
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +15 -15
- package/resources/browsers/browsers.d.ts.map +1 -1
- package/resources/browsers/browsers.js.map +1 -1
- package/resources/browsers/browsers.mjs.map +1 -1
- package/resources/browsers/index.d.mts +1 -1
- package/resources/browsers/index.d.mts.map +1 -1
- package/resources/browsers/index.d.ts +1 -1
- package/resources/browsers/index.d.ts.map +1 -1
- package/resources/browsers/index.js.map +1 -1
- package/resources/browsers/index.mjs.map +1 -1
- package/resources/browsers/telemetry.d.mts +2019 -73
- package/resources/browsers/telemetry.d.mts.map +1 -1
- package/resources/browsers/telemetry.d.ts +2019 -73
- package/resources/browsers/telemetry.d.ts.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/proxies.d.mts +4 -1
- package/resources/proxies.d.mts.map +1 -1
- package/resources/proxies.d.ts +4 -1
- package/resources/proxies.d.ts.map +1 -1
- package/resources/proxies.js +4 -1
- package/resources/proxies.js.map +1 -1
- package/resources/proxies.mjs +4 -1
- package/resources/proxies.mjs.map +1 -1
- package/resources/site-configs.d.mts +445 -0
- package/resources/site-configs.d.mts.map +1 -0
- package/resources/site-configs.d.ts +445 -0
- package/resources/site-configs.d.ts.map +1 -0
- package/resources/site-configs.js +88 -0
- package/resources/site-configs.js.map +1 -0
- package/resources/site-configs.mjs +84 -0
- package/resources/site-configs.mjs.map +1 -0
- package/src/client.ts +52 -0
- package/src/lib/browser-routing.ts +18 -2
- package/src/resources/auth/connections.ts +42 -42
- package/src/resources/browser-pools.ts +18 -18
- package/src/resources/browsers/browsers.ts +25 -13
- package/src/resources/browsers/index.ts +6 -0
- package/src/resources/browsers/telemetry.ts +2503 -74
- package/src/resources/index.ts +23 -0
- package/src/resources/proxies.ts +4 -1
- package/src/resources/site-configs.ts +578 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/client.ts
CHANGED
|
@@ -136,6 +136,29 @@ import {
|
|
|
136
136
|
ProxyUpdateParams,
|
|
137
137
|
ProxyUpdateResponse,
|
|
138
138
|
} from './resources/proxies';
|
|
139
|
+
import {
|
|
140
|
+
Analysis,
|
|
141
|
+
AnalysisSummariesOffsetPagination,
|
|
142
|
+
AnalysisSummary,
|
|
143
|
+
Browser,
|
|
144
|
+
Evidence,
|
|
145
|
+
LookupRequest,
|
|
146
|
+
LookupResponse,
|
|
147
|
+
NoRecommendation,
|
|
148
|
+
Proxy,
|
|
149
|
+
Recommendation,
|
|
150
|
+
RecommendationResult,
|
|
151
|
+
RecommendationSummariesOffsetPagination,
|
|
152
|
+
RecommendationSummary,
|
|
153
|
+
ResolveRequest,
|
|
154
|
+
SiteConfigListParams,
|
|
155
|
+
SiteConfigListRecommendationsParams,
|
|
156
|
+
SiteConfigLookupParams,
|
|
157
|
+
SiteConfigResolveParams,
|
|
158
|
+
SiteConfigResponse,
|
|
159
|
+
SiteConfigs,
|
|
160
|
+
Target,
|
|
161
|
+
} from './resources/site-configs';
|
|
139
162
|
import {
|
|
140
163
|
AuditLogEntriesPageTokenPagination,
|
|
141
164
|
AuditLogEntry,
|
|
@@ -1012,6 +1035,10 @@ export class Kernel {
|
|
|
1012
1035
|
* Invoke actions and stream or query invocation status and events.
|
|
1013
1036
|
*/
|
|
1014
1037
|
invocations: API.Invocations = new API.Invocations(this);
|
|
1038
|
+
/**
|
|
1039
|
+
* Resolve browser and proxy recommendations for bot-protected sites.
|
|
1040
|
+
*/
|
|
1041
|
+
siteConfigs: API.SiteConfigs = new API.SiteConfigs(this);
|
|
1015
1042
|
/**
|
|
1016
1043
|
* Create and manage browser sessions.
|
|
1017
1044
|
*/
|
|
@@ -1063,6 +1090,7 @@ export class Kernel {
|
|
|
1063
1090
|
Kernel.Deployments = Deployments;
|
|
1064
1091
|
Kernel.Apps = Apps;
|
|
1065
1092
|
Kernel.Invocations = Invocations;
|
|
1093
|
+
Kernel.SiteConfigs = SiteConfigs;
|
|
1066
1094
|
Kernel.Browsers = Browsers;
|
|
1067
1095
|
Kernel.Profiles = Profiles;
|
|
1068
1096
|
Kernel.Auth = Auth;
|
|
@@ -1128,6 +1156,30 @@ export declare namespace Kernel {
|
|
|
1128
1156
|
type InvocationFollowParams as InvocationFollowParams,
|
|
1129
1157
|
};
|
|
1130
1158
|
|
|
1159
|
+
export {
|
|
1160
|
+
SiteConfigs as SiteConfigs,
|
|
1161
|
+
type Analysis as Analysis,
|
|
1162
|
+
type AnalysisSummary as AnalysisSummary,
|
|
1163
|
+
type Browser as Browser,
|
|
1164
|
+
type Evidence as Evidence,
|
|
1165
|
+
type LookupRequest as LookupRequest,
|
|
1166
|
+
type LookupResponse as LookupResponse,
|
|
1167
|
+
type NoRecommendation as NoRecommendation,
|
|
1168
|
+
type Proxy as Proxy,
|
|
1169
|
+
type Recommendation as Recommendation,
|
|
1170
|
+
type RecommendationResult as RecommendationResult,
|
|
1171
|
+
type RecommendationSummary as RecommendationSummary,
|
|
1172
|
+
type ResolveRequest as ResolveRequest,
|
|
1173
|
+
type SiteConfigResponse as SiteConfigResponse,
|
|
1174
|
+
type Target as Target,
|
|
1175
|
+
type AnalysisSummariesOffsetPagination as AnalysisSummariesOffsetPagination,
|
|
1176
|
+
type RecommendationSummariesOffsetPagination as RecommendationSummariesOffsetPagination,
|
|
1177
|
+
type SiteConfigListParams as SiteConfigListParams,
|
|
1178
|
+
type SiteConfigListRecommendationsParams as SiteConfigListRecommendationsParams,
|
|
1179
|
+
type SiteConfigLookupParams as SiteConfigLookupParams,
|
|
1180
|
+
type SiteConfigResolveParams as SiteConfigResolveParams,
|
|
1181
|
+
};
|
|
1182
|
+
|
|
1131
1183
|
export {
|
|
1132
1184
|
Browsers as Browsers,
|
|
1133
1185
|
type BrowserMemory as BrowserMemory,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Fetch, RequestInfo, RequestInit } from '../internal/builtin-types';
|
|
2
|
+
import { CancelReadableStream } from '../internal/shims';
|
|
2
3
|
import { joinURL } from './join-url';
|
|
3
4
|
|
|
4
5
|
export type BrowserRoute = {
|
|
@@ -22,6 +23,15 @@ export class BrowserRouteCache {
|
|
|
22
23
|
this.entries.delete(sessionId);
|
|
23
24
|
}
|
|
24
25
|
|
|
26
|
+
deleteIfJwt(sessionId: string, jwt: string): boolean {
|
|
27
|
+
const route = this.entries.get(sessionId);
|
|
28
|
+
if (!route || route.jwt !== jwt) {
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
this.entries.delete(sessionId);
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
|
|
25
35
|
clear(): void {
|
|
26
36
|
this.entries.clear();
|
|
27
37
|
}
|
|
@@ -31,7 +41,7 @@ const BROWSER_ROUTING_SUBRESOURCES_ENV = 'KERNEL_BROWSER_ROUTING_SUBRESOURCES';
|
|
|
31
41
|
// Path prefixes eligible for direct-to-VM routing. "telemetry/stream" is the live
|
|
32
42
|
// SSE endpoint (served by the VM); "telemetry/events" is a historical read served
|
|
33
43
|
// by the control plane (S2) and must NOT be here.
|
|
34
|
-
const DEFAULT_BROWSER_ROUTING_SUBRESOURCES = ['curl', 'telemetry/stream'];
|
|
44
|
+
const DEFAULT_BROWSER_ROUTING_SUBRESOURCES = ['curl', 'telemetry/stream', 'computer', 'playwright'];
|
|
35
45
|
const BROWSER_ROUTE_CACHEABLE_PATH = /^\/(?:v\d+\/)?browsers(?:\/[^/]+)?\/?$/;
|
|
36
46
|
const BROWSER_POOL_ACQUIRE_PATH = /^\/(?:v\d+\/)?browser_pools\/[^/]+\/acquire\/?$/;
|
|
37
47
|
const BROWSER_DELETE_BY_ID_PATH = /^\/(?:v\d+\/)?browsers\/([^/]+)\/?$/;
|
|
@@ -262,7 +272,13 @@ async function routeRequest(
|
|
|
262
272
|
|
|
263
273
|
const headers = new Headers(request.headers);
|
|
264
274
|
headers.delete('authorization');
|
|
265
|
-
|
|
275
|
+
const routed = await innerFetch(target.toString(), buildRoutedInit(input, request, init, headers));
|
|
276
|
+
if ((routed.status === 401 || routed.status === 403) && target.searchParams.get('jwt')) {
|
|
277
|
+
cache.deleteIfJwt(sessionId, target.searchParams.get('jwt') ?? '');
|
|
278
|
+
await CancelReadableStream(routed.body);
|
|
279
|
+
return innerFetch(input, init);
|
|
280
|
+
}
|
|
281
|
+
return routed;
|
|
266
282
|
}
|
|
267
283
|
|
|
268
284
|
function buildRoutedInit(
|
|
@@ -549,12 +549,12 @@ export namespace ManagedAuth {
|
|
|
549
549
|
* Per-category capture flags. The operational categories (control, connection,
|
|
550
550
|
* system, captcha) are captured whenever telemetry is enabled; set one to
|
|
551
551
|
* enabled=false to opt out. The CDP categories (console, network, page,
|
|
552
|
-
* interaction) and
|
|
553
|
-
* create, provided categories layer onto the default set. On update,
|
|
554
|
-
* categories merge onto the session's current config; when no telemetry
|
|
555
|
-
* this falls back to the default set (matching create). If browser is
|
|
556
|
-
* empty, the default set is used. A browser config that disables every
|
|
557
|
-
* stops capture on update and starts no capture on create.
|
|
552
|
+
* interaction), screenshot and platform are off by default; set enabled=true to
|
|
553
|
+
* opt in. On create, provided categories layer onto the default set. On update,
|
|
554
|
+
* provided categories merge onto the session's current config; when no telemetry
|
|
555
|
+
* is active this falls back to the default set (matching create). If browser is
|
|
556
|
+
* omitted or empty, the default set is used. A browser config that disables every
|
|
557
|
+
* category stops capture on update and starts no capture on create.
|
|
558
558
|
*/
|
|
559
559
|
browser?: TelemetryAPI.BrowserTelemetryCategoriesConfig;
|
|
560
560
|
|
|
@@ -920,12 +920,12 @@ export namespace ManagedAuthBrowserConfig {
|
|
|
920
920
|
* Per-category capture flags. The operational categories (control, connection,
|
|
921
921
|
* system, captcha) are captured whenever telemetry is enabled; set one to
|
|
922
922
|
* enabled=false to opt out. The CDP categories (console, network, page,
|
|
923
|
-
* interaction) and
|
|
924
|
-
* create, provided categories layer onto the default set. On update,
|
|
925
|
-
* categories merge onto the session's current config; when no telemetry
|
|
926
|
-
* this falls back to the default set (matching create). If browser is
|
|
927
|
-
* empty, the default set is used. A browser config that disables every
|
|
928
|
-
* stops capture on update and starts no capture on create.
|
|
923
|
+
* interaction), screenshot and platform are off by default; set enabled=true to
|
|
924
|
+
* opt in. On create, provided categories layer onto the default set. On update,
|
|
925
|
+
* provided categories merge onto the session's current config; when no telemetry
|
|
926
|
+
* is active this falls back to the default set (matching create). If browser is
|
|
927
|
+
* omitted or empty, the default set is used. A browser config that disables every
|
|
928
|
+
* category stops capture on update and starts no capture on create.
|
|
929
929
|
*/
|
|
930
930
|
browser?: TelemetryAPI.BrowserTelemetryCategoriesConfig;
|
|
931
931
|
|
|
@@ -1121,12 +1121,12 @@ export namespace ManagedAuthCreateRequest {
|
|
|
1121
1121
|
* Per-category capture flags. The operational categories (control, connection,
|
|
1122
1122
|
* system, captcha) are captured whenever telemetry is enabled; set one to
|
|
1123
1123
|
* enabled=false to opt out. The CDP categories (console, network, page,
|
|
1124
|
-
* interaction) and
|
|
1125
|
-
* create, provided categories layer onto the default set. On update,
|
|
1126
|
-
* categories merge onto the session's current config; when no telemetry
|
|
1127
|
-
* this falls back to the default set (matching create). If browser is
|
|
1128
|
-
* empty, the default set is used. A browser config that disables every
|
|
1129
|
-
* stops capture on update and starts no capture on create.
|
|
1124
|
+
* interaction), screenshot and platform are off by default; set enabled=true to
|
|
1125
|
+
* opt in. On create, provided categories layer onto the default set. On update,
|
|
1126
|
+
* provided categories merge onto the session's current config; when no telemetry
|
|
1127
|
+
* is active this falls back to the default set (matching create). If browser is
|
|
1128
|
+
* omitted or empty, the default set is used. A browser config that disables every
|
|
1129
|
+
* category stops capture on update and starts no capture on create.
|
|
1130
1130
|
*/
|
|
1131
1131
|
browser?: TelemetryAPI.BrowserTelemetryCategoriesConfig;
|
|
1132
1132
|
|
|
@@ -1417,12 +1417,12 @@ export namespace ManagedAuthUpdateRequest {
|
|
|
1417
1417
|
* Per-category capture flags. The operational categories (control, connection,
|
|
1418
1418
|
* system, captcha) are captured whenever telemetry is enabled; set one to
|
|
1419
1419
|
* enabled=false to opt out. The CDP categories (console, network, page,
|
|
1420
|
-
* interaction) and
|
|
1421
|
-
* create, provided categories layer onto the default set. On update,
|
|
1422
|
-
* categories merge onto the session's current config; when no telemetry
|
|
1423
|
-
* this falls back to the default set (matching create). If browser is
|
|
1424
|
-
* empty, the default set is used. A browser config that disables every
|
|
1425
|
-
* stops capture on update and starts no capture on create.
|
|
1420
|
+
* interaction), screenshot and platform are off by default; set enabled=true to
|
|
1421
|
+
* opt in. On create, provided categories layer onto the default set. On update,
|
|
1422
|
+
* provided categories merge onto the session's current config; when no telemetry
|
|
1423
|
+
* is active this falls back to the default set (matching create). If browser is
|
|
1424
|
+
* omitted or empty, the default set is used. A browser config that disables every
|
|
1425
|
+
* category stops capture on update and starts no capture on create.
|
|
1426
1426
|
*/
|
|
1427
1427
|
browser?: TelemetryAPI.BrowserTelemetryCategoriesConfig;
|
|
1428
1428
|
|
|
@@ -2072,12 +2072,12 @@ export namespace ConnectionCreateParams {
|
|
|
2072
2072
|
* Per-category capture flags. The operational categories (control, connection,
|
|
2073
2073
|
* system, captcha) are captured whenever telemetry is enabled; set one to
|
|
2074
2074
|
* enabled=false to opt out. The CDP categories (console, network, page,
|
|
2075
|
-
* interaction) and
|
|
2076
|
-
* create, provided categories layer onto the default set. On update,
|
|
2077
|
-
* categories merge onto the session's current config; when no telemetry
|
|
2078
|
-
* this falls back to the default set (matching create). If browser is
|
|
2079
|
-
* empty, the default set is used. A browser config that disables every
|
|
2080
|
-
* stops capture on update and starts no capture on create.
|
|
2075
|
+
* interaction), screenshot and platform are off by default; set enabled=true to
|
|
2076
|
+
* opt in. On create, provided categories layer onto the default set. On update,
|
|
2077
|
+
* provided categories merge onto the session's current config; when no telemetry
|
|
2078
|
+
* is active this falls back to the default set (matching create). If browser is
|
|
2079
|
+
* omitted or empty, the default set is used. A browser config that disables every
|
|
2080
|
+
* category stops capture on update and starts no capture on create.
|
|
2081
2081
|
*/
|
|
2082
2082
|
browser?: TelemetryAPI.BrowserTelemetryCategoriesConfig;
|
|
2083
2083
|
|
|
@@ -2280,12 +2280,12 @@ export namespace ConnectionUpdateParams {
|
|
|
2280
2280
|
* Per-category capture flags. The operational categories (control, connection,
|
|
2281
2281
|
* system, captcha) are captured whenever telemetry is enabled; set one to
|
|
2282
2282
|
* enabled=false to opt out. The CDP categories (console, network, page,
|
|
2283
|
-
* interaction) and
|
|
2284
|
-
* create, provided categories layer onto the default set. On update,
|
|
2285
|
-
* categories merge onto the session's current config; when no telemetry
|
|
2286
|
-
* this falls back to the default set (matching create). If browser is
|
|
2287
|
-
* empty, the default set is used. A browser config that disables every
|
|
2288
|
-
* stops capture on update and starts no capture on create.
|
|
2283
|
+
* interaction), screenshot and platform are off by default; set enabled=true to
|
|
2284
|
+
* opt in. On create, provided categories layer onto the default set. On update,
|
|
2285
|
+
* provided categories merge onto the session's current config; when no telemetry
|
|
2286
|
+
* is active this falls back to the default set (matching create). If browser is
|
|
2287
|
+
* omitted or empty, the default set is used. A browser config that disables every
|
|
2288
|
+
* category stops capture on update and starts no capture on create.
|
|
2289
2289
|
*/
|
|
2290
2290
|
browser?: TelemetryAPI.BrowserTelemetryCategoriesConfig;
|
|
2291
2291
|
|
|
@@ -2458,12 +2458,12 @@ export namespace ConnectionLoginParams {
|
|
|
2458
2458
|
* Per-category capture flags. The operational categories (control, connection,
|
|
2459
2459
|
* system, captcha) are captured whenever telemetry is enabled; set one to
|
|
2460
2460
|
* enabled=false to opt out. The CDP categories (console, network, page,
|
|
2461
|
-
* interaction) and
|
|
2462
|
-
* create, provided categories layer onto the default set. On update,
|
|
2463
|
-
* categories merge onto the session's current config; when no telemetry
|
|
2464
|
-
* this falls back to the default set (matching create). If browser is
|
|
2465
|
-
* empty, the default set is used. A browser config that disables every
|
|
2466
|
-
* stops capture on update and starts no capture on create.
|
|
2461
|
+
* interaction), screenshot and platform are off by default; set enabled=true to
|
|
2462
|
+
* opt in. On create, provided categories layer onto the default set. On update,
|
|
2463
|
+
* provided categories merge onto the session's current config; when no telemetry
|
|
2464
|
+
* is active this falls back to the default set (matching create). If browser is
|
|
2465
|
+
* omitted or empty, the default set is used. A browser config that disables every
|
|
2466
|
+
* category stops capture on update and starts no capture on create.
|
|
2467
2467
|
*/
|
|
2468
2468
|
browser?: TelemetryAPI.BrowserTelemetryCategoriesConfig;
|
|
2469
2469
|
|
|
@@ -679,12 +679,12 @@ export namespace BrowserPoolCreateParams {
|
|
|
679
679
|
* Per-category capture flags. The operational categories (control, connection,
|
|
680
680
|
* system, captcha) are captured whenever telemetry is enabled; set one to
|
|
681
681
|
* enabled=false to opt out. The CDP categories (console, network, page,
|
|
682
|
-
* interaction) and
|
|
683
|
-
* create, provided categories layer onto the default set. On update,
|
|
684
|
-
* categories merge onto the session's current config; when no telemetry
|
|
685
|
-
* this falls back to the default set (matching create). If browser is
|
|
686
|
-
* empty, the default set is used. A browser config that disables every
|
|
687
|
-
* stops capture on update and starts no capture on create.
|
|
682
|
+
* interaction), screenshot and platform are off by default; set enabled=true to
|
|
683
|
+
* opt in. On create, provided categories layer onto the default set. On update,
|
|
684
|
+
* provided categories merge onto the session's current config; when no telemetry
|
|
685
|
+
* is active this falls back to the default set (matching create). If browser is
|
|
686
|
+
* omitted or empty, the default set is used. A browser config that disables every
|
|
687
|
+
* category stops capture on update and starts no capture on create.
|
|
688
688
|
*/
|
|
689
689
|
browser?: TelemetryAPI.BrowserTelemetryCategoriesConfig;
|
|
690
690
|
|
|
@@ -930,12 +930,12 @@ export namespace BrowserPoolUpdateParams {
|
|
|
930
930
|
* Per-category capture flags. The operational categories (control, connection,
|
|
931
931
|
* system, captcha) are captured whenever telemetry is enabled; set one to
|
|
932
932
|
* enabled=false to opt out. The CDP categories (console, network, page,
|
|
933
|
-
* interaction) and
|
|
934
|
-
* create, provided categories layer onto the default set. On update,
|
|
935
|
-
* categories merge onto the session's current config; when no telemetry
|
|
936
|
-
* this falls back to the default set (matching create). If browser is
|
|
937
|
-
* empty, the default set is used. A browser config that disables every
|
|
938
|
-
* stops capture on update and starts no capture on create.
|
|
933
|
+
* interaction), screenshot and platform are off by default; set enabled=true to
|
|
934
|
+
* opt in. On create, provided categories layer onto the default set. On update,
|
|
935
|
+
* provided categories merge onto the session's current config; when no telemetry
|
|
936
|
+
* is active this falls back to the default set (matching create). If browser is
|
|
937
|
+
* omitted or empty, the default set is used. A browser config that disables every
|
|
938
|
+
* category stops capture on update and starts no capture on create.
|
|
939
939
|
*/
|
|
940
940
|
browser?: TelemetryAPI.BrowserTelemetryCategoriesConfig;
|
|
941
941
|
|
|
@@ -1098,12 +1098,12 @@ export namespace BrowserPoolAcquireParams {
|
|
|
1098
1098
|
* Per-category capture flags. The operational categories (control, connection,
|
|
1099
1099
|
* system, captcha) are captured whenever telemetry is enabled; set one to
|
|
1100
1100
|
* enabled=false to opt out. The CDP categories (console, network, page,
|
|
1101
|
-
* interaction) and
|
|
1102
|
-
* create, provided categories layer onto the default set. On update,
|
|
1103
|
-
* categories merge onto the session's current config; when no telemetry
|
|
1104
|
-
* this falls back to the default set (matching create). If browser is
|
|
1105
|
-
* empty, the default set is used. A browser config that disables every
|
|
1106
|
-
* stops capture on update and starts no capture on create.
|
|
1101
|
+
* interaction), screenshot and platform are off by default; set enabled=true to
|
|
1102
|
+
* opt in. On create, provided categories layer onto the default set. On update,
|
|
1103
|
+
* provided categories merge onto the session's current config; when no telemetry
|
|
1104
|
+
* is active this falls back to the default set (matching create). If browser is
|
|
1105
|
+
* omitted or empty, the default set is used. A browser config that disables every
|
|
1106
|
+
* category stops capture on update and starts no capture on create.
|
|
1107
1107
|
*/
|
|
1108
1108
|
browser?: TelemetryAPI.BrowserTelemetryCategoriesConfig;
|
|
1109
1109
|
|
|
@@ -56,6 +56,8 @@ import {
|
|
|
56
56
|
BrowserAPICallEvent,
|
|
57
57
|
BrowserCallStack,
|
|
58
58
|
BrowserCaptchaSolveResultEvent,
|
|
59
|
+
BrowserCdpCommandEvent,
|
|
60
|
+
BrowserCdpCommandMethod,
|
|
59
61
|
BrowserCdpConnectEvent,
|
|
60
62
|
BrowserCdpDisconnectEvent,
|
|
61
63
|
BrowserConsoleErrorEvent,
|
|
@@ -77,6 +79,7 @@ import {
|
|
|
77
79
|
BrowserNetworkLoadingFailedEvent,
|
|
78
80
|
BrowserNetworkRequestEvent,
|
|
79
81
|
BrowserNetworkResponseEvent,
|
|
82
|
+
BrowserPageCrashedEvent,
|
|
80
83
|
BrowserPageDomContentLoadedEvent,
|
|
81
84
|
BrowserPageLayoutSettledEvent,
|
|
82
85
|
BrowserPageLayoutShiftEvent,
|
|
@@ -85,12 +88,15 @@ import {
|
|
|
85
88
|
BrowserPageNavigationEvent,
|
|
86
89
|
BrowserPageNavigationSettledEvent,
|
|
87
90
|
BrowserPageTabOpenedEvent,
|
|
91
|
+
BrowserPlatformAPICallEvent,
|
|
88
92
|
BrowserProxyErrorEvent,
|
|
89
93
|
BrowserServiceCrashedEvent,
|
|
90
94
|
BrowserSystemOomKillEvent,
|
|
91
95
|
BrowserTelemetryCategoriesConfig,
|
|
92
96
|
BrowserTelemetryCategoryConfig,
|
|
97
|
+
BrowserTelemetryCdpControlConfig,
|
|
93
98
|
BrowserTelemetryConfig,
|
|
99
|
+
BrowserTelemetryControlConfig,
|
|
94
100
|
BrowserTelemetryEvent,
|
|
95
101
|
BrowserTelemetryExportConfig,
|
|
96
102
|
BrowserTelemetryOtlpExportConfig,
|
|
@@ -1130,7 +1136,7 @@ export interface BrowserCreateParams {
|
|
|
1130
1136
|
|
|
1131
1137
|
/**
|
|
1132
1138
|
* If true, enables GPU acceleration for the browser session. Requires Start-Up or
|
|
1133
|
-
* Enterprise plan and
|
|
1139
|
+
* Enterprise plan, headless=false, and region=us-east.
|
|
1134
1140
|
*/
|
|
1135
1141
|
gpu?: boolean;
|
|
1136
1142
|
|
|
@@ -1270,12 +1276,12 @@ export namespace BrowserCreateParams {
|
|
|
1270
1276
|
* Per-category capture flags. The operational categories (control, connection,
|
|
1271
1277
|
* system, captcha) are captured whenever telemetry is enabled; set one to
|
|
1272
1278
|
* enabled=false to opt out. The CDP categories (console, network, page,
|
|
1273
|
-
* interaction) and
|
|
1274
|
-
* create, provided categories layer onto the default set. On update,
|
|
1275
|
-
* categories merge onto the session's current config; when no telemetry
|
|
1276
|
-
* this falls back to the default set (matching create). If browser is
|
|
1277
|
-
* empty, the default set is used. A browser config that disables every
|
|
1278
|
-
* stops capture on update and starts no capture on create.
|
|
1279
|
+
* interaction), screenshot and platform are off by default; set enabled=true to
|
|
1280
|
+
* opt in. On create, provided categories layer onto the default set. On update,
|
|
1281
|
+
* provided categories merge onto the session's current config; when no telemetry
|
|
1282
|
+
* is active this falls back to the default set (matching create). If browser is
|
|
1283
|
+
* omitted or empty, the default set is used. A browser config that disables every
|
|
1284
|
+
* category stops capture on update and starts no capture on create.
|
|
1279
1285
|
*/
|
|
1280
1286
|
browser?: TelemetryAPI.BrowserTelemetryCategoriesConfig;
|
|
1281
1287
|
|
|
@@ -1428,12 +1434,12 @@ export namespace BrowserUpdateParams {
|
|
|
1428
1434
|
* Per-category capture flags. The operational categories (control, connection,
|
|
1429
1435
|
* system, captcha) are captured whenever telemetry is enabled; set one to
|
|
1430
1436
|
* enabled=false to opt out. The CDP categories (console, network, page,
|
|
1431
|
-
* interaction) and
|
|
1432
|
-
* create, provided categories layer onto the default set. On update,
|
|
1433
|
-
* categories merge onto the session's current config; when no telemetry
|
|
1434
|
-
* this falls back to the default set (matching create). If browser is
|
|
1435
|
-
* empty, the default set is used. A browser config that disables every
|
|
1436
|
-
* stops capture on update and starts no capture on create.
|
|
1437
|
+
* interaction), screenshot and platform are off by default; set enabled=true to
|
|
1438
|
+
* opt in. On create, provided categories layer onto the default set. On update,
|
|
1439
|
+
* provided categories merge onto the session's current config; when no telemetry
|
|
1440
|
+
* is active this falls back to the default set (matching create). If browser is
|
|
1441
|
+
* omitted or empty, the default set is used. A browser config that disables every
|
|
1442
|
+
* category stops capture on update and starts no capture on create.
|
|
1437
1443
|
*/
|
|
1438
1444
|
browser?: TelemetryAPI.BrowserTelemetryCategoriesConfig;
|
|
1439
1445
|
|
|
@@ -1645,6 +1651,8 @@ export declare namespace Browsers {
|
|
|
1645
1651
|
type BrowserAPICallEvent as BrowserAPICallEvent,
|
|
1646
1652
|
type BrowserCallStack as BrowserCallStack,
|
|
1647
1653
|
type BrowserCaptchaSolveResultEvent as BrowserCaptchaSolveResultEvent,
|
|
1654
|
+
type BrowserCdpCommandEvent as BrowserCdpCommandEvent,
|
|
1655
|
+
type BrowserCdpCommandMethod as BrowserCdpCommandMethod,
|
|
1648
1656
|
type BrowserCdpConnectEvent as BrowserCdpConnectEvent,
|
|
1649
1657
|
type BrowserCdpDisconnectEvent as BrowserCdpDisconnectEvent,
|
|
1650
1658
|
type BrowserConsoleErrorEvent as BrowserConsoleErrorEvent,
|
|
@@ -1666,6 +1674,7 @@ export declare namespace Browsers {
|
|
|
1666
1674
|
type BrowserNetworkLoadingFailedEvent as BrowserNetworkLoadingFailedEvent,
|
|
1667
1675
|
type BrowserNetworkRequestEvent as BrowserNetworkRequestEvent,
|
|
1668
1676
|
type BrowserNetworkResponseEvent as BrowserNetworkResponseEvent,
|
|
1677
|
+
type BrowserPageCrashedEvent as BrowserPageCrashedEvent,
|
|
1669
1678
|
type BrowserPageDomContentLoadedEvent as BrowserPageDomContentLoadedEvent,
|
|
1670
1679
|
type BrowserPageLayoutSettledEvent as BrowserPageLayoutSettledEvent,
|
|
1671
1680
|
type BrowserPageLayoutShiftEvent as BrowserPageLayoutShiftEvent,
|
|
@@ -1674,12 +1683,15 @@ export declare namespace Browsers {
|
|
|
1674
1683
|
type BrowserPageNavigationEvent as BrowserPageNavigationEvent,
|
|
1675
1684
|
type BrowserPageNavigationSettledEvent as BrowserPageNavigationSettledEvent,
|
|
1676
1685
|
type BrowserPageTabOpenedEvent as BrowserPageTabOpenedEvent,
|
|
1686
|
+
type BrowserPlatformAPICallEvent as BrowserPlatformAPICallEvent,
|
|
1677
1687
|
type BrowserProxyErrorEvent as BrowserProxyErrorEvent,
|
|
1678
1688
|
type BrowserServiceCrashedEvent as BrowserServiceCrashedEvent,
|
|
1679
1689
|
type BrowserSystemOomKillEvent as BrowserSystemOomKillEvent,
|
|
1680
1690
|
type BrowserTelemetryCategoriesConfig as BrowserTelemetryCategoriesConfig,
|
|
1681
1691
|
type BrowserTelemetryCategoryConfig as BrowserTelemetryCategoryConfig,
|
|
1692
|
+
type BrowserTelemetryCdpControlConfig as BrowserTelemetryCdpControlConfig,
|
|
1682
1693
|
type BrowserTelemetryConfig as BrowserTelemetryConfig,
|
|
1694
|
+
type BrowserTelemetryControlConfig as BrowserTelemetryControlConfig,
|
|
1683
1695
|
type BrowserTelemetryEvent as BrowserTelemetryEvent,
|
|
1684
1696
|
type BrowserTelemetryExportConfig as BrowserTelemetryExportConfig,
|
|
1685
1697
|
type BrowserTelemetryOtlpExportConfig as BrowserTelemetryOtlpExportConfig,
|
|
@@ -91,6 +91,8 @@ export {
|
|
|
91
91
|
type BrowserAPICallEvent,
|
|
92
92
|
type BrowserCallStack,
|
|
93
93
|
type BrowserCaptchaSolveResultEvent,
|
|
94
|
+
type BrowserCdpCommandEvent,
|
|
95
|
+
type BrowserCdpCommandMethod,
|
|
94
96
|
type BrowserCdpConnectEvent,
|
|
95
97
|
type BrowserCdpDisconnectEvent,
|
|
96
98
|
type BrowserConsoleErrorEvent,
|
|
@@ -112,6 +114,7 @@ export {
|
|
|
112
114
|
type BrowserNetworkLoadingFailedEvent,
|
|
113
115
|
type BrowserNetworkRequestEvent,
|
|
114
116
|
type BrowserNetworkResponseEvent,
|
|
117
|
+
type BrowserPageCrashedEvent,
|
|
115
118
|
type BrowserPageDomContentLoadedEvent,
|
|
116
119
|
type BrowserPageLayoutSettledEvent,
|
|
117
120
|
type BrowserPageLayoutShiftEvent,
|
|
@@ -120,12 +123,15 @@ export {
|
|
|
120
123
|
type BrowserPageNavigationEvent,
|
|
121
124
|
type BrowserPageNavigationSettledEvent,
|
|
122
125
|
type BrowserPageTabOpenedEvent,
|
|
126
|
+
type BrowserPlatformAPICallEvent,
|
|
123
127
|
type BrowserProxyErrorEvent,
|
|
124
128
|
type BrowserServiceCrashedEvent,
|
|
125
129
|
type BrowserSystemOomKillEvent,
|
|
126
130
|
type BrowserTelemetryCategoriesConfig,
|
|
127
131
|
type BrowserTelemetryCategoryConfig,
|
|
132
|
+
type BrowserTelemetryCdpControlConfig,
|
|
128
133
|
type BrowserTelemetryConfig,
|
|
134
|
+
type BrowserTelemetryControlConfig,
|
|
129
135
|
type BrowserTelemetryEvent,
|
|
130
136
|
type BrowserTelemetryExportConfig,
|
|
131
137
|
type BrowserTelemetryOtlpExportConfig,
|