8585)
8686from ...pagination import SyncOffsetPagination , AsyncOffsetPagination
8787from ..._base_client import AsyncPaginator , make_request_options
88+ from ...types .tags_param import TagsParam
8889from ...types .browser_curl_response import BrowserCurlResponse
8990from ...types .browser_list_response import BrowserListResponse
9091from ...lib .browser_routing .raw_http import (
@@ -174,6 +175,7 @@ def create(
174175 proxy_id : str | Omit = omit ,
175176 start_url : str | Omit = omit ,
176177 stealth : bool | Omit = omit ,
178+ tags : TagsParam | Omit = omit ,
177179 telemetry : Optional [browser_create_params .Telemetry ] | Omit = omit ,
178180 timeout_seconds : int | Omit = omit ,
179181 viewport : BrowserViewport | Omit = omit ,
@@ -224,6 +226,9 @@ def create(
224226 stealth: If true, launches the browser in stealth mode to reduce detection by anti-bot
225227 mechanisms.
226228
229+ tags: Optional user-defined key-value tags for the browser session, used to find and
230+ group sessions later. Set at creation time only. Up to 50 pairs.
231+
227232 telemetry: Telemetry configuration for the browser session. Set enabled to true to start
228233 capture using VM defaults, or provide browser category settings. If omitted,
229234 null, set to an empty object ({}), set to enabled: false without browser
@@ -272,6 +277,7 @@ def create(
272277 "proxy_id" : proxy_id ,
273278 "start_url" : start_url ,
274279 "stealth" : stealth ,
280+ "tags" : tags ,
275281 "telemetry" : telemetry ,
276282 "timeout_seconds" : timeout_seconds ,
277283 "viewport" : viewport ,
@@ -399,6 +405,7 @@ def list(
399405 offset : int | Omit = omit ,
400406 query : str | Omit = omit ,
401407 status : Literal ["active" , "deleted" , "all" ] | Omit = omit ,
408+ tags : Dict [str , str ] | Omit = omit ,
402409 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
403410 # The extra values given here take precedence over values defined on the client or passed to this method.
404411 extra_headers : Headers | None = None ,
@@ -424,6 +431,10 @@ def list(
424431 status: Filter sessions by status. "active" returns only active sessions (default),
425432 "deleted" returns only soft-deleted sessions, "all" returns both.
426433
434+ tags: Filter sessions by tag key-value pairs using deepObject style, e.g.
435+ ?tags[team]=backend&tags[env]=staging. Multiple pairs are ANDed: a session must
436+ match every supplied pair exactly.
437+
427438 extra_headers: Send extra headers
428439
429440 extra_query: Add additional query parameters to the request
@@ -447,6 +458,7 @@ def list(
447458 "offset" : offset ,
448459 "query" : query ,
449460 "status" : status ,
461+ "tags" : tags ,
450462 },
451463 browser_list_params .BrowserListParams ,
452464 ),
@@ -728,6 +740,7 @@ async def create(
728740 proxy_id : str | Omit = omit ,
729741 start_url : str | Omit = omit ,
730742 stealth : bool | Omit = omit ,
743+ tags : TagsParam | Omit = omit ,
731744 telemetry : Optional [browser_create_params .Telemetry ] | Omit = omit ,
732745 timeout_seconds : int | Omit = omit ,
733746 viewport : BrowserViewport | Omit = omit ,
@@ -778,6 +791,9 @@ async def create(
778791 stealth: If true, launches the browser in stealth mode to reduce detection by anti-bot
779792 mechanisms.
780793
794+ tags: Optional user-defined key-value tags for the browser session, used to find and
795+ group sessions later. Set at creation time only. Up to 50 pairs.
796+
781797 telemetry: Telemetry configuration for the browser session. Set enabled to true to start
782798 capture using VM defaults, or provide browser category settings. If omitted,
783799 null, set to an empty object ({}), set to enabled: false without browser
@@ -826,6 +842,7 @@ async def create(
826842 "proxy_id" : proxy_id ,
827843 "start_url" : start_url ,
828844 "stealth" : stealth ,
845+ "tags" : tags ,
829846 "telemetry" : telemetry ,
830847 "timeout_seconds" : timeout_seconds ,
831848 "viewport" : viewport ,
@@ -953,6 +970,7 @@ def list(
953970 offset : int | Omit = omit ,
954971 query : str | Omit = omit ,
955972 status : Literal ["active" , "deleted" , "all" ] | Omit = omit ,
973+ tags : Dict [str , str ] | Omit = omit ,
956974 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
957975 # The extra values given here take precedence over values defined on the client or passed to this method.
958976 extra_headers : Headers | None = None ,
@@ -978,6 +996,10 @@ def list(
978996 status: Filter sessions by status. "active" returns only active sessions (default),
979997 "deleted" returns only soft-deleted sessions, "all" returns both.
980998
999+ tags: Filter sessions by tag key-value pairs using deepObject style, e.g.
1000+ ?tags[team]=backend&tags[env]=staging. Multiple pairs are ANDed: a session must
1001+ match every supplied pair exactly.
1002+
9811003 extra_headers: Send extra headers
9821004
9831005 extra_query: Add additional query parameters to the request
@@ -1001,6 +1023,7 @@ def list(
10011023 "offset" : offset ,
10021024 "query" : query ,
10031025 "status" : status ,
1026+ "tags" : tags ,
10041027 },
10051028 browser_list_params .BrowserListParams ,
10061029 ),
0 commit comments