3333from ...types .auth .submit_fields_response import SubmitFieldsResponse
3434from ...types .auth .connection_follow_response import ConnectionFollowResponse
3535from ...types .auth .managed_auth_timeline_event import ManagedAuthTimelineEvent
36+ from ...types .auth .managed_auth_browser_config_param import ManagedAuthBrowserConfigParam
3637
3738__all__ = ["ConnectionsResource" , "AsyncConnectionsResource" ]
3839
@@ -66,6 +67,7 @@ def create(
6667 profile_name : str ,
6768 allowed_domains : SequenceNotStr [str ] | Omit = omit ,
6869 auto_reauth : bool | Omit = omit ,
70+ browser : ManagedAuthBrowserConfigParam | Omit = omit ,
6971 browser_telemetry : Optional [connection_create_params .BrowserTelemetry ] | Omit = omit ,
7072 credential : connection_create_params .Credential | Omit = omit ,
7173 health_check_interval : int | Omit = omit ,
@@ -120,9 +122,11 @@ def create(
120122 false, expired sessions are marked as `NEEDS_AUTH` instead of attempting
121123 re-auth. Defaults to true.
122124
123- browser_telemetry: Browser telemetry configuration used by this connection's browser sessions by
124- default. Uses the exact create-browser configuration. Can be overridden
125- per-login.
125+ browser: Default browser configuration for login, reauthentication, and health-check
126+ sessions.
127+
128+ browser_telemetry: Deprecated. Use browser.telemetry. Retained during migration for existing
129+ clients.
126130
127131 credential:
128132 Reference to credentials for the auth connection. Use one of:
@@ -144,10 +148,7 @@ def create(
144148
145149 login_url: Optional login page URL to skip discovery
146150
147- proxy: Proxy selection. Provide either id or name. The proxy must be in the same
148- project as the resource referencing it. When selecting by name, the name must
149- match exactly one active proxy in the project. Ambiguous names return a 400; use
150- id for stable references.
151+ proxy: Deprecated. Use browser.proxy. Retained during migration for existing clients.
151152
152153 record_session: Whether to record browser sessions for this connection by default. Useful for
153154 debugging. Can be overridden per-login. Defaults to false.
@@ -171,6 +172,7 @@ def create(
171172 "profile_name" : profile_name ,
172173 "allowed_domains" : allowed_domains ,
173174 "auto_reauth" : auto_reauth ,
175+ "browser" : browser ,
174176 "browser_telemetry" : browser_telemetry ,
175177 "credential" : credential ,
176178 "health_check_interval" : health_check_interval ,
@@ -229,6 +231,7 @@ def update(
229231 * ,
230232 allowed_domains : SequenceNotStr [str ] | Omit = omit ,
231233 auto_reauth : bool | Omit = omit ,
234+ browser : ManagedAuthBrowserConfigParam | Omit = omit ,
232235 browser_telemetry : Optional [connection_update_params .BrowserTelemetry ] | Omit = omit ,
233236 credential : connection_update_params .Credential | Omit = omit ,
234237 health_check_interval : int | Omit = omit ,
@@ -260,9 +263,11 @@ def update(
260263 when `health_checks` is false. When false, expired sessions detected by a health
261264 check are marked as `NEEDS_AUTH` instead of attempting re-auth.
262265
263- browser_telemetry: Browser telemetry configuration used by future browser sessions for this
264- connection. Uses the exact create-browser configuration. Set enabled to false to
265- disable telemetry.
266+ browser: Browser configuration updates for future login, reauthentication, and
267+ health-check sessions. Omitted properties remain unchanged.
268+
269+ browser_telemetry: Deprecated. Use browser.telemetry. Retained during migration for existing
270+ clients.
266271
267272 credential:
268273 Reference to credentials for the auth connection. Use one of:
@@ -280,10 +285,7 @@ def update(
280285
281286 login_url: Login page URL. Set to empty string to clear.
282287
283- proxy: Proxy selection. Provide either id or name. The proxy must be in the same
284- project as the resource referencing it. When selecting by name, the name must
285- match exactly one active proxy in the project. Ambiguous names return a 400; use
286- id for stable references.
288+ proxy: Deprecated. Use browser.proxy. Retained during migration for existing clients.
287289
288290 record_session: Whether to record browser sessions for this connection by default
289291
@@ -305,6 +307,7 @@ def update(
305307 {
306308 "allowed_domains" : allowed_domains ,
307309 "auto_reauth" : auto_reauth ,
310+ "browser" : browser ,
308311 "browser_telemetry" : browser_telemetry ,
309312 "credential" : credential ,
310313 "health_check_interval" : health_check_interval ,
@@ -464,6 +467,7 @@ def login(
464467 self ,
465468 id : str ,
466469 * ,
470+ browser : ManagedAuthBrowserConfigParam | Omit = omit ,
467471 browser_telemetry : Optional [connection_login_params .BrowserTelemetry ] | Omit = omit ,
468472 proxy : connection_login_params .Proxy | Omit = omit ,
469473 record_session : bool | Omit = omit ,
@@ -481,14 +485,13 @@ def login(
481485 credentials are stored.
482486
483487 Args:
484- browser_telemetry: Override the connection's default browser telemetry configuration for this
485- login. When omitted, the connection's browser_telemetry default is used. Uses
486- the exact create-browser configuration.
488+ browser: Browser configuration override for this login. Omitted properties inherit the
489+ connection defaults.
490+
491+ browser_telemetry: Deprecated. Use browser.telemetry. Retained during migration for existing
492+ clients.
487493
488- proxy: Proxy selection. Provide either id or name. The proxy must be in the same
489- project as the resource referencing it. When selecting by name, the name must
490- match exactly one active proxy in the project. Ambiguous names return a 400; use
491- id for stable references.
494+ proxy: Deprecated. Use browser.proxy. Retained during migration for existing clients.
492495
493496 record_session: Override the connection's default for recording this login's browser session.
494497 When omitted, the connection's record_session default is used.
@@ -507,6 +510,7 @@ def login(
507510 path_template ("/auth/connections/{id}/login" , id = id ),
508511 body = maybe_transform (
509512 {
513+ "browser" : browser ,
510514 "browser_telemetry" : browser_telemetry ,
511515 "proxy" : proxy ,
512516 "record_session" : record_session ,
@@ -675,6 +679,7 @@ async def create(
675679 profile_name : str ,
676680 allowed_domains : SequenceNotStr [str ] | Omit = omit ,
677681 auto_reauth : bool | Omit = omit ,
682+ browser : ManagedAuthBrowserConfigParam | Omit = omit ,
678683 browser_telemetry : Optional [connection_create_params .BrowserTelemetry ] | Omit = omit ,
679684 credential : connection_create_params .Credential | Omit = omit ,
680685 health_check_interval : int | Omit = omit ,
@@ -729,9 +734,11 @@ async def create(
729734 false, expired sessions are marked as `NEEDS_AUTH` instead of attempting
730735 re-auth. Defaults to true.
731736
732- browser_telemetry: Browser telemetry configuration used by this connection's browser sessions by
733- default. Uses the exact create-browser configuration. Can be overridden
734- per-login.
737+ browser: Default browser configuration for login, reauthentication, and health-check
738+ sessions.
739+
740+ browser_telemetry: Deprecated. Use browser.telemetry. Retained during migration for existing
741+ clients.
735742
736743 credential:
737744 Reference to credentials for the auth connection. Use one of:
@@ -753,10 +760,7 @@ async def create(
753760
754761 login_url: Optional login page URL to skip discovery
755762
756- proxy: Proxy selection. Provide either id or name. The proxy must be in the same
757- project as the resource referencing it. When selecting by name, the name must
758- match exactly one active proxy in the project. Ambiguous names return a 400; use
759- id for stable references.
763+ proxy: Deprecated. Use browser.proxy. Retained during migration for existing clients.
760764
761765 record_session: Whether to record browser sessions for this connection by default. Useful for
762766 debugging. Can be overridden per-login. Defaults to false.
@@ -780,6 +784,7 @@ async def create(
780784 "profile_name" : profile_name ,
781785 "allowed_domains" : allowed_domains ,
782786 "auto_reauth" : auto_reauth ,
787+ "browser" : browser ,
783788 "browser_telemetry" : browser_telemetry ,
784789 "credential" : credential ,
785790 "health_check_interval" : health_check_interval ,
@@ -838,6 +843,7 @@ async def update(
838843 * ,
839844 allowed_domains : SequenceNotStr [str ] | Omit = omit ,
840845 auto_reauth : bool | Omit = omit ,
846+ browser : ManagedAuthBrowserConfigParam | Omit = omit ,
841847 browser_telemetry : Optional [connection_update_params .BrowserTelemetry ] | Omit = omit ,
842848 credential : connection_update_params .Credential | Omit = omit ,
843849 health_check_interval : int | Omit = omit ,
@@ -869,9 +875,11 @@ async def update(
869875 when `health_checks` is false. When false, expired sessions detected by a health
870876 check are marked as `NEEDS_AUTH` instead of attempting re-auth.
871877
872- browser_telemetry: Browser telemetry configuration used by future browser sessions for this
873- connection. Uses the exact create-browser configuration. Set enabled to false to
874- disable telemetry.
878+ browser: Browser configuration updates for future login, reauthentication, and
879+ health-check sessions. Omitted properties remain unchanged.
880+
881+ browser_telemetry: Deprecated. Use browser.telemetry. Retained during migration for existing
882+ clients.
875883
876884 credential:
877885 Reference to credentials for the auth connection. Use one of:
@@ -889,10 +897,7 @@ async def update(
889897
890898 login_url: Login page URL. Set to empty string to clear.
891899
892- proxy: Proxy selection. Provide either id or name. The proxy must be in the same
893- project as the resource referencing it. When selecting by name, the name must
894- match exactly one active proxy in the project. Ambiguous names return a 400; use
895- id for stable references.
900+ proxy: Deprecated. Use browser.proxy. Retained during migration for existing clients.
896901
897902 record_session: Whether to record browser sessions for this connection by default
898903
@@ -914,6 +919,7 @@ async def update(
914919 {
915920 "allowed_domains" : allowed_domains ,
916921 "auto_reauth" : auto_reauth ,
922+ "browser" : browser ,
917923 "browser_telemetry" : browser_telemetry ,
918924 "credential" : credential ,
919925 "health_check_interval" : health_check_interval ,
@@ -1073,6 +1079,7 @@ async def login(
10731079 self ,
10741080 id : str ,
10751081 * ,
1082+ browser : ManagedAuthBrowserConfigParam | Omit = omit ,
10761083 browser_telemetry : Optional [connection_login_params .BrowserTelemetry ] | Omit = omit ,
10771084 proxy : connection_login_params .Proxy | Omit = omit ,
10781085 record_session : bool | Omit = omit ,
@@ -1090,14 +1097,13 @@ async def login(
10901097 credentials are stored.
10911098
10921099 Args:
1093- browser_telemetry: Override the connection's default browser telemetry configuration for this
1094- login. When omitted, the connection's browser_telemetry default is used. Uses
1095- the exact create-browser configuration.
1100+ browser: Browser configuration override for this login. Omitted properties inherit the
1101+ connection defaults.
1102+
1103+ browser_telemetry: Deprecated. Use browser.telemetry. Retained during migration for existing
1104+ clients.
10961105
1097- proxy: Proxy selection. Provide either id or name. The proxy must be in the same
1098- project as the resource referencing it. When selecting by name, the name must
1099- match exactly one active proxy in the project. Ambiguous names return a 400; use
1100- id for stable references.
1106+ proxy: Deprecated. Use browser.proxy. Retained during migration for existing clients.
11011107
11021108 record_session: Override the connection's default for recording this login's browser session.
11031109 When omitted, the connection's record_session default is used.
@@ -1116,6 +1122,7 @@ async def login(
11161122 path_template ("/auth/connections/{id}/login" , id = id ),
11171123 body = await async_maybe_transform (
11181124 {
1125+ "browser" : browser ,
11191126 "browser_telemetry" : browser_telemetry ,
11201127 "proxy" : proxy ,
11211128 "record_session" : record_session ,
0 commit comments