@onkernel/sdk 0.63.0 → 0.64.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/package.json +1 -1
- package/resources/browsers/browsers.d.mts +18 -16
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +18 -16
- 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 +408 -20
- package/resources/browsers/telemetry.d.mts.map +1 -1
- package/resources/browsers/telemetry.d.ts +408 -20
- package/resources/browsers/telemetry.d.ts.map +1 -1
- package/src/resources/browsers/browsers.ts +32 -14
- package/src/resources/browsers/index.ts +8 -0
- package/src/resources/browsers/telemetry.ts +507 -19
- 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
|
@@ -49,6 +49,56 @@ export class Telemetry extends APIResource {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
/**
|
|
53
|
+
* An agent-driven HTTP call handled by the in-VM API server.
|
|
54
|
+
*/
|
|
55
|
+
export interface BrowserAPICallEvent {
|
|
56
|
+
category: 'control';
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Provenance metadata identifying which producer emitted the event.
|
|
60
|
+
*/
|
|
61
|
+
source: BrowserEventSource;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Event timestamp in Unix microseconds.
|
|
65
|
+
*/
|
|
66
|
+
ts: number;
|
|
67
|
+
|
|
68
|
+
type: 'api_call';
|
|
69
|
+
|
|
70
|
+
data?: BrowserAPICallEvent.Data;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* True if the data field was truncated due to size limits.
|
|
74
|
+
*/
|
|
75
|
+
truncated?: boolean;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export namespace BrowserAPICallEvent {
|
|
79
|
+
export interface Data {
|
|
80
|
+
/**
|
|
81
|
+
* Wall-clock duration of the handler in milliseconds.
|
|
82
|
+
*/
|
|
83
|
+
duration_ms: number;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* OpenAPI operationId of the matched route (e.g. processExec, takeScreenshot).
|
|
87
|
+
*/
|
|
88
|
+
operation_id: string;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Per-request identifier from the in-VM API request middleware.
|
|
92
|
+
*/
|
|
93
|
+
request_id: string;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* HTTP response status code.
|
|
97
|
+
*/
|
|
98
|
+
status: number;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
52
102
|
/**
|
|
53
103
|
* CDP Runtime.StackTrace representing the JavaScript call stack at the time of an
|
|
54
104
|
* event. Fields use CDP naming conventions rather than snake_case to match the
|
|
@@ -100,6 +150,151 @@ export namespace BrowserCallStack {
|
|
|
100
150
|
}
|
|
101
151
|
}
|
|
102
152
|
|
|
153
|
+
/**
|
|
154
|
+
* A captcha solve attempt reached a terminal outcome.
|
|
155
|
+
*/
|
|
156
|
+
export interface BrowserCaptchaSolveResultEvent {
|
|
157
|
+
category: 'captcha';
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Provenance metadata identifying which producer emitted the event.
|
|
161
|
+
*/
|
|
162
|
+
source: BrowserEventSource;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Event timestamp in Unix microseconds.
|
|
166
|
+
*/
|
|
167
|
+
ts: number;
|
|
168
|
+
|
|
169
|
+
type: 'captcha_solve_result';
|
|
170
|
+
|
|
171
|
+
data?: BrowserCaptchaSolveResultEvent.Data;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* True if the data field was truncated due to size limits.
|
|
175
|
+
*/
|
|
176
|
+
truncated?: boolean;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export namespace BrowserCaptchaSolveResultEvent {
|
|
180
|
+
export interface Data {
|
|
181
|
+
/**
|
|
182
|
+
* Captcha vendor family. Provider-specific task names are normalized into this
|
|
183
|
+
* set; anything not covered is reported as other.
|
|
184
|
+
*/
|
|
185
|
+
captcha_type: 'hcaptcha' | 'recaptcha_v2' | 'recaptcha_v3' | 'turnstile' | 'geetest' | 'other';
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Wall-clock duration from solve start to terminal outcome.
|
|
189
|
+
*/
|
|
190
|
+
duration_ms: number;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Terminal outcome. success: solver returned a usable solution. failure: solver
|
|
194
|
+
* returned an error (see error_code). timeout: solver did not return within the
|
|
195
|
+
* caller's wait budget. abandoned: caller cancelled or the page navigated away
|
|
196
|
+
* mid-solve.
|
|
197
|
+
*/
|
|
198
|
+
status: 'success' | 'failure' | 'timeout' | 'abandoned';
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Solver-specific error code on failure (e.g. ERROR_CAPTCHA_UNSOLVABLE). Absent on
|
|
202
|
+
* success.
|
|
203
|
+
*/
|
|
204
|
+
error_code?: string;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Solver-assigned identifier. Opaque, useful for support cross-references.
|
|
208
|
+
*/
|
|
209
|
+
task_id?: string;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Host of the page where the captcha was solved.
|
|
213
|
+
*/
|
|
214
|
+
website_host?: string;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Path of the page where the captcha was solved. Query string excluded.
|
|
218
|
+
*/
|
|
219
|
+
website_path?: string;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* An external client (e.g. customer SDK, Playwright, Puppeteer) connected to the
|
|
225
|
+
* CDP WebSocket proxy on this VM.
|
|
226
|
+
*/
|
|
227
|
+
export interface BrowserCdpConnectEvent {
|
|
228
|
+
category: 'connection';
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Provenance metadata identifying which producer emitted the event.
|
|
232
|
+
*/
|
|
233
|
+
source: BrowserEventSource;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Event timestamp in Unix microseconds.
|
|
237
|
+
*/
|
|
238
|
+
ts: number;
|
|
239
|
+
|
|
240
|
+
type: 'cdp_connect';
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* True if the data field was truncated due to size limits.
|
|
244
|
+
*/
|
|
245
|
+
truncated?: boolean;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* An external client disconnected from the CDP WebSocket proxy on this VM. Pair
|
|
250
|
+
* with the immediately preceding cdp_connect on the same stream.
|
|
251
|
+
*/
|
|
252
|
+
export interface BrowserCdpDisconnectEvent {
|
|
253
|
+
category: 'connection';
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Provenance metadata identifying which producer emitted the event.
|
|
257
|
+
*/
|
|
258
|
+
source: BrowserEventSource;
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Event timestamp in Unix microseconds.
|
|
262
|
+
*/
|
|
263
|
+
ts: number;
|
|
264
|
+
|
|
265
|
+
type: 'cdp_disconnect';
|
|
266
|
+
|
|
267
|
+
data?: BrowserCdpDisconnectEvent.Data;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* True if the data field was truncated due to size limits.
|
|
271
|
+
*/
|
|
272
|
+
truncated?: boolean;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export namespace BrowserCdpDisconnectEvent {
|
|
276
|
+
export interface Data {
|
|
277
|
+
/**
|
|
278
|
+
* Wall-clock duration of the connection in milliseconds.
|
|
279
|
+
*/
|
|
280
|
+
duration_ms: number;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Number of CDP messages relayed across the connection in either direction.
|
|
284
|
+
*/
|
|
285
|
+
message_count: number;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Why the connection ended. client_close: the client initiated the close.
|
|
289
|
+
* upstream_changed: Chromium restarted mid-session and the proxy tore down so the
|
|
290
|
+
* client could reconnect against the new upstream. upstream_error: upstream dial
|
|
291
|
+
* or message pump errored. context_cancelled: the request context was cancelled
|
|
292
|
+
* (typically server shutdown).
|
|
293
|
+
*/
|
|
294
|
+
reason: 'client_close' | 'upstream_changed' | 'upstream_error' | 'context_cancelled';
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
103
298
|
/**
|
|
104
299
|
* A browser console error or uncaught JavaScript exception event. Emitted from two
|
|
105
300
|
* distinct CDP sources with different data shapes. Runtime.consoleAPICalled
|
|
@@ -509,13 +704,91 @@ export namespace BrowserInteractionScrollSettledEvent {
|
|
|
509
704
|
}
|
|
510
705
|
}
|
|
511
706
|
|
|
707
|
+
/**
|
|
708
|
+
* A live view client connected to the headful browser's WebRTC server. Headful
|
|
709
|
+
* only; not emitted for headless images.
|
|
710
|
+
*/
|
|
711
|
+
export interface BrowserLiveViewConnectEvent {
|
|
712
|
+
category: 'connection';
|
|
713
|
+
|
|
714
|
+
/**
|
|
715
|
+
* Provenance metadata identifying which producer emitted the event.
|
|
716
|
+
*/
|
|
717
|
+
source: BrowserEventSource;
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* Event timestamp in Unix microseconds.
|
|
721
|
+
*/
|
|
722
|
+
ts: number;
|
|
723
|
+
|
|
724
|
+
type: 'live_view_connect';
|
|
725
|
+
|
|
726
|
+
data?: BrowserLiveViewConnectEvent.Data;
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* True if the data field was truncated due to size limits.
|
|
730
|
+
*/
|
|
731
|
+
truncated?: boolean;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
export namespace BrowserLiveViewConnectEvent {
|
|
735
|
+
export interface Data {
|
|
736
|
+
/**
|
|
737
|
+
* Live view session identifier. Stable across reconnects, so a transient network
|
|
738
|
+
* blip can emit two events with the same session_id.
|
|
739
|
+
*/
|
|
740
|
+
session_id: string;
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
/**
|
|
745
|
+
* A live view client disconnected from the headful browser's WebRTC server. Pair
|
|
746
|
+
* with live_view_connect by session_id.
|
|
747
|
+
*/
|
|
748
|
+
export interface BrowserLiveViewDisconnectEvent {
|
|
749
|
+
category: 'connection';
|
|
750
|
+
|
|
751
|
+
/**
|
|
752
|
+
* Provenance metadata identifying which producer emitted the event.
|
|
753
|
+
*/
|
|
754
|
+
source: BrowserEventSource;
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* Event timestamp in Unix microseconds.
|
|
758
|
+
*/
|
|
759
|
+
ts: number;
|
|
760
|
+
|
|
761
|
+
type: 'live_view_disconnect';
|
|
762
|
+
|
|
763
|
+
data?: BrowserLiveViewDisconnectEvent.Data;
|
|
764
|
+
|
|
765
|
+
/**
|
|
766
|
+
* True if the data field was truncated due to size limits.
|
|
767
|
+
*/
|
|
768
|
+
truncated?: boolean;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
export namespace BrowserLiveViewDisconnectEvent {
|
|
772
|
+
export interface Data {
|
|
773
|
+
/**
|
|
774
|
+
* Wall-clock duration of the connection in milliseconds.
|
|
775
|
+
*/
|
|
776
|
+
duration_ms: number;
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* Live view session identifier; matches the corresponding live_view_connect event.
|
|
780
|
+
*/
|
|
781
|
+
session_id: string;
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
|
|
512
785
|
/**
|
|
513
786
|
* The CDP connection to Chrome was lost. Telemetry events may be dropped until
|
|
514
787
|
* monitor_reconnected arrives. Treat any in-progress computed state (network_idle,
|
|
515
788
|
* page_layout_settled) as unreliable until then.
|
|
516
789
|
*/
|
|
517
790
|
export interface BrowserMonitorDisconnectedEvent {
|
|
518
|
-
category: '
|
|
791
|
+
category: 'monitor';
|
|
519
792
|
|
|
520
793
|
/**
|
|
521
794
|
* Provenance metadata identifying which producer emitted the event.
|
|
@@ -550,7 +823,7 @@ export namespace BrowserMonitorDisconnectedEvent {
|
|
|
550
823
|
* The CDP session could not be initialized.
|
|
551
824
|
*/
|
|
552
825
|
export interface BrowserMonitorInitFailedEvent {
|
|
553
|
-
category: '
|
|
826
|
+
category: 'monitor';
|
|
554
827
|
|
|
555
828
|
/**
|
|
556
829
|
* Provenance metadata identifying which producer emitted the event.
|
|
@@ -586,7 +859,7 @@ export namespace BrowserMonitorInitFailedEvent {
|
|
|
586
859
|
* reconnection attempts. No further telemetry events will arrive on this session.
|
|
587
860
|
*/
|
|
588
861
|
export interface BrowserMonitorReconnectFailedEvent {
|
|
589
|
-
category: '
|
|
862
|
+
category: 'monitor';
|
|
590
863
|
|
|
591
864
|
/**
|
|
592
865
|
* Provenance metadata identifying which producer emitted the event.
|
|
@@ -624,7 +897,7 @@ export namespace BrowserMonitorReconnectFailedEvent {
|
|
|
624
897
|
* so navigation and network tracking restart fresh from this point.
|
|
625
898
|
*/
|
|
626
899
|
export interface BrowserMonitorReconnectedEvent {
|
|
627
|
-
category: '
|
|
900
|
+
category: 'monitor';
|
|
628
901
|
|
|
629
902
|
/**
|
|
630
903
|
* Provenance metadata identifying which producer emitted the event.
|
|
@@ -659,7 +932,7 @@ export namespace BrowserMonitorReconnectedEvent {
|
|
|
659
932
|
* A periodic screenshot of the browser viewport.
|
|
660
933
|
*/
|
|
661
934
|
export interface BrowserMonitorScreenshotEvent {
|
|
662
|
-
category: '
|
|
935
|
+
category: 'screenshot';
|
|
663
936
|
|
|
664
937
|
/**
|
|
665
938
|
* Provenance metadata identifying which producer emitted the event.
|
|
@@ -1417,16 +1690,195 @@ export namespace BrowserPageTabOpenedEvent {
|
|
|
1417
1690
|
}
|
|
1418
1691
|
|
|
1419
1692
|
/**
|
|
1420
|
-
*
|
|
1693
|
+
* A managed service exited unexpectedly. Intentional stops do not produce this
|
|
1694
|
+
* event; only unexpected exits and terminal restart-give-up transitions do.
|
|
1695
|
+
*/
|
|
1696
|
+
export interface BrowserServiceCrashedEvent {
|
|
1697
|
+
category: 'system';
|
|
1698
|
+
|
|
1699
|
+
/**
|
|
1700
|
+
* Provenance metadata identifying which producer emitted the event.
|
|
1701
|
+
*/
|
|
1702
|
+
source: BrowserEventSource;
|
|
1703
|
+
|
|
1704
|
+
/**
|
|
1705
|
+
* Event timestamp in Unix microseconds.
|
|
1706
|
+
*/
|
|
1707
|
+
ts: number;
|
|
1708
|
+
|
|
1709
|
+
type: 'service_crashed';
|
|
1710
|
+
|
|
1711
|
+
data?: BrowserServiceCrashedEvent.Data;
|
|
1712
|
+
|
|
1713
|
+
/**
|
|
1714
|
+
* True if the data field was truncated due to size limits.
|
|
1715
|
+
*/
|
|
1716
|
+
truncated?: boolean;
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1719
|
+
export namespace BrowserServiceCrashedEvent {
|
|
1720
|
+
export interface Data {
|
|
1721
|
+
/**
|
|
1722
|
+
* Lifecycle phase the crash occurred in. startup: the process died before reaching
|
|
1723
|
+
* a healthy running state. running: a previously healthy process died
|
|
1724
|
+
* unexpectedly. gave_up: the process manager exhausted its restart attempts and
|
|
1725
|
+
* stopped trying.
|
|
1726
|
+
*/
|
|
1727
|
+
phase: 'startup' | 'running' | 'gave_up';
|
|
1728
|
+
|
|
1729
|
+
/**
|
|
1730
|
+
* Program name of the crashed service (e.g. chromium, mutter, kernel-images-api).
|
|
1731
|
+
*/
|
|
1732
|
+
service_name: string;
|
|
1733
|
+
|
|
1734
|
+
/**
|
|
1735
|
+
* PID of the crashed process. Absent when the process manager gave up after
|
|
1736
|
+
* exhausting restart attempts.
|
|
1737
|
+
*/
|
|
1738
|
+
pid?: number;
|
|
1739
|
+
}
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
/**
|
|
1743
|
+
* The Linux kernel OOM-killer terminated a process inside the VM. Fires for any
|
|
1744
|
+
* process killed by the kernel due to memory exhaustion, including Chrome renderer
|
|
1745
|
+
* subprocesses that are not supervised.
|
|
1746
|
+
*/
|
|
1747
|
+
export interface BrowserSystemOomKillEvent {
|
|
1748
|
+
category: 'system';
|
|
1749
|
+
|
|
1750
|
+
/**
|
|
1751
|
+
* Provenance metadata identifying which producer emitted the event.
|
|
1752
|
+
*/
|
|
1753
|
+
source: BrowserEventSource;
|
|
1754
|
+
|
|
1755
|
+
/**
|
|
1756
|
+
* Event timestamp in Unix microseconds.
|
|
1757
|
+
*/
|
|
1758
|
+
ts: number;
|
|
1759
|
+
|
|
1760
|
+
type: 'system_oom_kill';
|
|
1761
|
+
|
|
1762
|
+
data?: BrowserSystemOomKillEvent.Data;
|
|
1763
|
+
|
|
1764
|
+
/**
|
|
1765
|
+
* True if the data field was truncated due to size limits.
|
|
1766
|
+
*/
|
|
1767
|
+
truncated?: boolean;
|
|
1768
|
+
}
|
|
1769
|
+
|
|
1770
|
+
export namespace BrowserSystemOomKillEvent {
|
|
1771
|
+
export interface Data {
|
|
1772
|
+
/**
|
|
1773
|
+
* PID of the killed process.
|
|
1774
|
+
*/
|
|
1775
|
+
pid: number;
|
|
1776
|
+
|
|
1777
|
+
/**
|
|
1778
|
+
* Comm of the killed process as reported by the kernel (max 15 chars, truncated by
|
|
1779
|
+
* the kernel).
|
|
1780
|
+
*/
|
|
1781
|
+
process_name: string;
|
|
1782
|
+
|
|
1783
|
+
/**
|
|
1784
|
+
* Resident set size of the killed process in KiB (sum of anon-rss, file-rss, and
|
|
1785
|
+
* shmem-rss).
|
|
1786
|
+
*/
|
|
1787
|
+
rss_kb: number;
|
|
1788
|
+
|
|
1789
|
+
/**
|
|
1790
|
+
* Why the kernel decided to OOM-kill. none means global memory exhaustion; memcg
|
|
1791
|
+
* means a cgroup memory limit was hit; cpuset / memory_policy are
|
|
1792
|
+
* NUMA/policy-driven kills. Absent on kernels older than 5.0.
|
|
1793
|
+
*/
|
|
1794
|
+
constraint?: 'none' | 'memcg' | 'cpuset' | 'memory_policy';
|
|
1795
|
+
|
|
1796
|
+
/**
|
|
1797
|
+
* Free system memory in KiB at the time of the kill. Assumes a 4 KiB page size.
|
|
1798
|
+
* Does not include reclaimable caches. Absent if the kernel did not emit a
|
|
1799
|
+
* parseable Mem-Info section.
|
|
1800
|
+
*/
|
|
1801
|
+
mem_free_kb?: number;
|
|
1802
|
+
|
|
1803
|
+
/**
|
|
1804
|
+
* Total system memory in KiB at the time of the kill. Assumes a 4 KiB page size.
|
|
1805
|
+
* Absent if the kernel did not emit a parseable Mem-Info section.
|
|
1806
|
+
*/
|
|
1807
|
+
mem_total_kb?: number;
|
|
1808
|
+
|
|
1809
|
+
/**
|
|
1810
|
+
* Top processes by resident-set-size at the moment of the kill, sorted descending.
|
|
1811
|
+
* Empty if the kernel did not emit the Tasks state table. Capped at 5 entries.
|
|
1812
|
+
*/
|
|
1813
|
+
top_tasks?: Array<Data.TopTask>;
|
|
1814
|
+
|
|
1815
|
+
/**
|
|
1816
|
+
* PID of the triggering process. Absent if the kernel did not emit the standard
|
|
1817
|
+
* header line.
|
|
1818
|
+
*/
|
|
1819
|
+
trigger_pid?: number;
|
|
1820
|
+
|
|
1821
|
+
/**
|
|
1822
|
+
* Comm of the process whose allocation request caused the kernel to invoke the
|
|
1823
|
+
* OOM-killer. Often the same as process_name but can differ. Max 15 chars.
|
|
1824
|
+
*/
|
|
1825
|
+
trigger_process_name?: string;
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
export namespace Data {
|
|
1829
|
+
export interface TopTask {
|
|
1830
|
+
/**
|
|
1831
|
+
* Comm of the process (max 15 chars, truncated by the kernel).
|
|
1832
|
+
*/
|
|
1833
|
+
name: string;
|
|
1834
|
+
|
|
1835
|
+
/**
|
|
1836
|
+
* PID of the process.
|
|
1837
|
+
*/
|
|
1838
|
+
pid: number;
|
|
1839
|
+
|
|
1840
|
+
/**
|
|
1841
|
+
* Resident set size in KiB at the moment of the kill.
|
|
1842
|
+
*/
|
|
1843
|
+
rss_kb: number;
|
|
1844
|
+
}
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1848
|
+
/**
|
|
1849
|
+
* Per-category telemetry capture settings. Selection is opt-in: set a category to
|
|
1850
|
+
* enabled=true to capture it; anything omitted is off. The default set (used by
|
|
1851
|
+
* enabled=true with no per-category settings) is the lightweight operational
|
|
1852
|
+
* signals: control, connection, system, captcha. The CDP categories (console,
|
|
1853
|
+
* network, page, interaction) and screenshot are off by default and must be opted
|
|
1854
|
+
* into.
|
|
1421
1855
|
*/
|
|
1422
1856
|
export interface BrowserTelemetryCategoriesConfig {
|
|
1423
1857
|
/**
|
|
1424
|
-
*
|
|
1858
|
+
* Captcha solve attempt outcomes. On by default.
|
|
1859
|
+
*/
|
|
1860
|
+
captcha?: BrowserTelemetryCategoryConfig;
|
|
1861
|
+
|
|
1862
|
+
/**
|
|
1863
|
+
* Client attach/detach lifecycle for the CDP proxy and live view. On by default.
|
|
1864
|
+
*/
|
|
1865
|
+
connection?: BrowserTelemetryCategoryConfig;
|
|
1866
|
+
|
|
1867
|
+
/**
|
|
1868
|
+
* Console output (log, warn, error) and uncaught exceptions. CDP category; off by
|
|
1869
|
+
* default.
|
|
1425
1870
|
*/
|
|
1426
1871
|
console?: BrowserTelemetryCategoryConfig;
|
|
1427
1872
|
|
|
1873
|
+
/**
|
|
1874
|
+
* Agent-driven actions against the browser, such as inbound calls to the in-VM
|
|
1875
|
+
* API. On by default.
|
|
1876
|
+
*/
|
|
1877
|
+
control?: BrowserTelemetryCategoryConfig;
|
|
1878
|
+
|
|
1428
1879
|
/**
|
|
1429
1880
|
* User interaction events including clicks, keydowns, and scroll-settled events.
|
|
1881
|
+
* CDP category; off by default.
|
|
1430
1882
|
*/
|
|
1431
1883
|
interaction?: BrowserTelemetryCategoryConfig;
|
|
1432
1884
|
|
|
@@ -1434,15 +1886,28 @@ export interface BrowserTelemetryCategoriesConfig {
|
|
|
1434
1886
|
* HTTP request and response metadata including URL, method, status code, and
|
|
1435
1887
|
* timing. Request post data is forwarded as-is from CDP. Text response bodies are
|
|
1436
1888
|
* truncated at 8 KB for structured types (JSON, XML, form data) and 4 KB for other
|
|
1437
|
-
* text types. Binary responses (images, fonts, media) are excluded.
|
|
1889
|
+
* text types. Binary responses (images, fonts, media) are excluded. CDP category;
|
|
1890
|
+
* off by default.
|
|
1438
1891
|
*/
|
|
1439
1892
|
network?: BrowserTelemetryCategoryConfig;
|
|
1440
1893
|
|
|
1441
1894
|
/**
|
|
1442
1895
|
* Page lifecycle events including navigation, DOMContentLoaded, load, layout
|
|
1443
|
-
* shifts, and LCP.
|
|
1896
|
+
* shifts, and LCP. CDP category; off by default.
|
|
1444
1897
|
*/
|
|
1445
1898
|
page?: BrowserTelemetryCategoryConfig;
|
|
1899
|
+
|
|
1900
|
+
/**
|
|
1901
|
+
* Periodic base64-encoded viewport screenshots. High volume; off by default and
|
|
1902
|
+
* must be opted into.
|
|
1903
|
+
*/
|
|
1904
|
+
screenshot?: BrowserTelemetryCategoryConfig;
|
|
1905
|
+
|
|
1906
|
+
/**
|
|
1907
|
+
* Browser VM health, such as out-of-memory kills and managed-service crashes. On
|
|
1908
|
+
* by default.
|
|
1909
|
+
*/
|
|
1910
|
+
system?: BrowserTelemetryCategoryConfig;
|
|
1446
1911
|
}
|
|
1447
1912
|
|
|
1448
1913
|
/**
|
|
@@ -1450,7 +1915,8 @@ export interface BrowserTelemetryCategoriesConfig {
|
|
|
1450
1915
|
*/
|
|
1451
1916
|
export interface BrowserTelemetryCategoryConfig {
|
|
1452
1917
|
/**
|
|
1453
|
-
* Whether this category is captured.
|
|
1918
|
+
* Whether this category is captured. Selection is opt-in, so an omitted category
|
|
1919
|
+
* is not captured.
|
|
1454
1920
|
*/
|
|
1455
1921
|
enabled?: boolean;
|
|
1456
1922
|
}
|
|
@@ -1467,10 +1933,13 @@ export interface BrowserTelemetryConfig {
|
|
|
1467
1933
|
|
|
1468
1934
|
/**
|
|
1469
1935
|
* Union type representing any browser telemetry event. Discriminated on `type`.
|
|
1470
|
-
*
|
|
1471
|
-
* monitor_reconnected, monitor_reconnect_failed,
|
|
1472
|
-
*
|
|
1473
|
-
*
|
|
1936
|
+
* Each event's `category` determines when it is captured. The CDP collector-health
|
|
1937
|
+
* events (monitor_disconnected, monitor_reconnected, monitor_reconnect_failed,
|
|
1938
|
+
* monitor_init_failed) use the `monitor` category, which is not user-configurable:
|
|
1939
|
+
* it flows automatically whenever any CDP category (console, network, page,
|
|
1940
|
+
* interaction) is captured, and is silent otherwise. monitor_screenshot uses the
|
|
1941
|
+
* opt-in `screenshot` category. All other event types are controlled by their
|
|
1942
|
+
* per-category enable/disable flags.
|
|
1474
1943
|
*/
|
|
1475
1944
|
export type BrowserTelemetryEvent =
|
|
1476
1945
|
| BrowserConsoleLogEvent
|
|
@@ -1494,7 +1963,15 @@ export type BrowserTelemetryEvent =
|
|
|
1494
1963
|
| BrowserMonitorDisconnectedEvent
|
|
1495
1964
|
| BrowserMonitorReconnectedEvent
|
|
1496
1965
|
| BrowserMonitorReconnectFailedEvent
|
|
1497
|
-
| BrowserMonitorInitFailedEvent
|
|
1966
|
+
| BrowserMonitorInitFailedEvent
|
|
1967
|
+
| BrowserAPICallEvent
|
|
1968
|
+
| BrowserCdpConnectEvent
|
|
1969
|
+
| BrowserCdpDisconnectEvent
|
|
1970
|
+
| BrowserLiveViewConnectEvent
|
|
1971
|
+
| BrowserLiveViewDisconnectEvent
|
|
1972
|
+
| BrowserCaptchaSolveResultEvent
|
|
1973
|
+
| BrowserSystemOomKillEvent
|
|
1974
|
+
| BrowserServiceCrashedEvent;
|
|
1498
1975
|
|
|
1499
1976
|
/**
|
|
1500
1977
|
* Envelope wrapping a browser telemetry event with its monotonic sequence number.
|
|
@@ -1504,10 +1981,13 @@ export type BrowserTelemetryEvent =
|
|
|
1504
1981
|
export interface TelemetryStreamResponse {
|
|
1505
1982
|
/**
|
|
1506
1983
|
* Union type representing any browser telemetry event. Discriminated on `type`.
|
|
1507
|
-
*
|
|
1508
|
-
* monitor_reconnected, monitor_reconnect_failed,
|
|
1509
|
-
*
|
|
1510
|
-
*
|
|
1984
|
+
* Each event's `category` determines when it is captured. The CDP collector-health
|
|
1985
|
+
* events (monitor_disconnected, monitor_reconnected, monitor_reconnect_failed,
|
|
1986
|
+
* monitor_init_failed) use the `monitor` category, which is not user-configurable:
|
|
1987
|
+
* it flows automatically whenever any CDP category (console, network, page,
|
|
1988
|
+
* interaction) is captured, and is silent otherwise. monitor_screenshot uses the
|
|
1989
|
+
* opt-in `screenshot` category. All other event types are controlled by their
|
|
1990
|
+
* per-category enable/disable flags.
|
|
1511
1991
|
*/
|
|
1512
1992
|
event: BrowserTelemetryEvent;
|
|
1513
1993
|
|
|
@@ -1529,7 +2009,11 @@ export interface TelemetryStreamParams {
|
|
|
1529
2009
|
|
|
1530
2010
|
export declare namespace Telemetry {
|
|
1531
2011
|
export {
|
|
2012
|
+
type BrowserAPICallEvent as BrowserAPICallEvent,
|
|
1532
2013
|
type BrowserCallStack as BrowserCallStack,
|
|
2014
|
+
type BrowserCaptchaSolveResultEvent as BrowserCaptchaSolveResultEvent,
|
|
2015
|
+
type BrowserCdpConnectEvent as BrowserCdpConnectEvent,
|
|
2016
|
+
type BrowserCdpDisconnectEvent as BrowserCdpDisconnectEvent,
|
|
1533
2017
|
type BrowserConsoleErrorEvent as BrowserConsoleErrorEvent,
|
|
1534
2018
|
type BrowserConsoleLogEvent as BrowserConsoleLogEvent,
|
|
1535
2019
|
type BrowserEventContext as BrowserEventContext,
|
|
@@ -1538,6 +2022,8 @@ export declare namespace Telemetry {
|
|
|
1538
2022
|
type BrowserInteractionClickEvent as BrowserInteractionClickEvent,
|
|
1539
2023
|
type BrowserInteractionKeyEvent as BrowserInteractionKeyEvent,
|
|
1540
2024
|
type BrowserInteractionScrollSettledEvent as BrowserInteractionScrollSettledEvent,
|
|
2025
|
+
type BrowserLiveViewConnectEvent as BrowserLiveViewConnectEvent,
|
|
2026
|
+
type BrowserLiveViewDisconnectEvent as BrowserLiveViewDisconnectEvent,
|
|
1541
2027
|
type BrowserMonitorDisconnectedEvent as BrowserMonitorDisconnectedEvent,
|
|
1542
2028
|
type BrowserMonitorInitFailedEvent as BrowserMonitorInitFailedEvent,
|
|
1543
2029
|
type BrowserMonitorReconnectFailedEvent as BrowserMonitorReconnectFailedEvent,
|
|
@@ -1555,6 +2041,8 @@ export declare namespace Telemetry {
|
|
|
1555
2041
|
type BrowserPageNavigationEvent as BrowserPageNavigationEvent,
|
|
1556
2042
|
type BrowserPageNavigationSettledEvent as BrowserPageNavigationSettledEvent,
|
|
1557
2043
|
type BrowserPageTabOpenedEvent as BrowserPageTabOpenedEvent,
|
|
2044
|
+
type BrowserServiceCrashedEvent as BrowserServiceCrashedEvent,
|
|
2045
|
+
type BrowserSystemOomKillEvent as BrowserSystemOomKillEvent,
|
|
1558
2046
|
type BrowserTelemetryCategoriesConfig as BrowserTelemetryCategoriesConfig,
|
|
1559
2047
|
type BrowserTelemetryCategoryConfig as BrowserTelemetryCategoryConfig,
|
|
1560
2048
|
type BrowserTelemetryConfig as BrowserTelemetryConfig,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.64.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.64.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.64.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.64.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|