9999from ...types .shared_params .browser_profile import BrowserProfile
100100from ...types .shared_params .browser_viewport import BrowserViewport
101101from ...types .shared_params .browser_extension import BrowserExtension
102- from ...types .browsers .browser_telemetry_config_param import BrowserTelemetryConfigParam
102+ from ...types .browsers .browser_telemetry_request_config_param import BrowserTelemetryRequestConfigParam
103103
104104__all__ = ["BrowsersResource" , "AsyncBrowsersResource" ]
105105
@@ -173,7 +173,7 @@ def create(
173173 proxy_id : str | Omit = omit ,
174174 start_url : str | Omit = omit ,
175175 stealth : bool | Omit = omit ,
176- telemetry : Optional [BrowserTelemetryConfigParam ] | Omit = omit ,
176+ telemetry : Optional [BrowserTelemetryRequestConfigParam ] | Omit = omit ,
177177 timeout_seconds : int | Omit = omit ,
178178 viewport : BrowserViewport | Omit = omit ,
179179 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -219,9 +219,11 @@ def create(
219219 stealth: If true, launches the browser in stealth mode to reduce detection by anti-bot
220220 mechanisms.
221221
222- telemetry: Telemetry configuration for the browser session. If provided, telemetry capture
223- starts with the specified category filter when the session is created. If
224- omitted, no telemetry capture is started.
222+ telemetry: Telemetry configuration for the browser session. Set enabled to true to start
223+ capture using VM defaults, or provide browser category settings. If omitted,
224+ null, set to an empty object ({}), set to enabled: false without browser
225+ category settings, or all four categories are explicitly disabled, capture is
226+ not started.
225227
226228 timeout_seconds: The number of seconds of inactivity before the browser session is terminated.
227229 Activity includes CDP connections and live view connections. Defaults to 60
@@ -325,7 +327,7 @@ def update(
325327 disable_default_proxy : bool | Omit = omit ,
326328 profile : BrowserProfile | Omit = omit ,
327329 proxy_id : Optional [str ] | Omit = omit ,
328- telemetry : Optional [BrowserTelemetryConfigParam ] | Omit = omit ,
330+ telemetry : Optional [BrowserTelemetryRequestConfigParam ] | Omit = omit ,
329331 viewport : browser_update_params .Viewport | Omit = omit ,
330332 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
331333 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -348,9 +350,10 @@ def update(
348350 proxy.
349351
350352 telemetry: Telemetry configuration. Omit, set to null, or set to an empty object ({}) to
351- leave the existing configuration unchanged (no-op). To enable capture for all
352- categories using VM defaults, set browser to an empty object ({"browser": {}}).
353- To stop capture, set every category's enabled to false.
353+ leave the existing configuration unchanged. Set enabled to true to enable
354+ capture using VM defaults. Set enabled to false to stop capture. Provide browser
355+ category settings for per-category updates. Explicitly disabling all four
356+ categories also stops capture.
354357
355358 viewport: Viewport configuration to apply to the browser session.
356359
@@ -717,7 +720,7 @@ async def create(
717720 proxy_id : str | Omit = omit ,
718721 start_url : str | Omit = omit ,
719722 stealth : bool | Omit = omit ,
720- telemetry : Optional [BrowserTelemetryConfigParam ] | Omit = omit ,
723+ telemetry : Optional [BrowserTelemetryRequestConfigParam ] | Omit = omit ,
721724 timeout_seconds : int | Omit = omit ,
722725 viewport : BrowserViewport | Omit = omit ,
723726 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -763,9 +766,11 @@ async def create(
763766 stealth: If true, launches the browser in stealth mode to reduce detection by anti-bot
764767 mechanisms.
765768
766- telemetry: Telemetry configuration for the browser session. If provided, telemetry capture
767- starts with the specified category filter when the session is created. If
768- omitted, no telemetry capture is started.
769+ telemetry: Telemetry configuration for the browser session. Set enabled to true to start
770+ capture using VM defaults, or provide browser category settings. If omitted,
771+ null, set to an empty object ({}), set to enabled: false without browser
772+ category settings, or all four categories are explicitly disabled, capture is
773+ not started.
769774
770775 timeout_seconds: The number of seconds of inactivity before the browser session is terminated.
771776 Activity includes CDP connections and live view connections. Defaults to 60
@@ -869,7 +874,7 @@ async def update(
869874 disable_default_proxy : bool | Omit = omit ,
870875 profile : BrowserProfile | Omit = omit ,
871876 proxy_id : Optional [str ] | Omit = omit ,
872- telemetry : Optional [BrowserTelemetryConfigParam ] | Omit = omit ,
877+ telemetry : Optional [BrowserTelemetryRequestConfigParam ] | Omit = omit ,
873878 viewport : browser_update_params .Viewport | Omit = omit ,
874879 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
875880 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -892,9 +897,10 @@ async def update(
892897 proxy.
893898
894899 telemetry: Telemetry configuration. Omit, set to null, or set to an empty object ({}) to
895- leave the existing configuration unchanged (no-op). To enable capture for all
896- categories using VM defaults, set browser to an empty object ({"browser": {}}).
897- To stop capture, set every category's enabled to false.
900+ leave the existing configuration unchanged. Set enabled to true to enable
901+ capture using VM defaults. Set enabled to false to stop capture. Provide browser
902+ category settings for per-category updates. Explicitly disabling all four
903+ categories also stops capture.
898904
899905 viewport: Viewport configuration to apply to the browser session.
900906
0 commit comments