@@ -63,6 +63,7 @@ def create(
6363 health_check_interval : int | Omit = omit ,
6464 login_url : str | Omit = omit ,
6565 proxy : connection_create_params .Proxy | Omit = omit ,
66+ save_credentials : bool | Omit = omit ,
6667 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6768 # The extra values given here take precedence over values defined on the client or passed to this method.
6869 extra_headers : Headers | None = None ,
@@ -116,6 +117,9 @@ def create(
116117 proxy: Proxy selection. Provide either id or name. The proxy must belong to the
117118 caller's org.
118119
120+ save_credentials: Whether to save credentials after every successful login. Defaults to true.
121+ One-time codes (TOTP, SMS, etc.) are not saved.
122+
119123 extra_headers: Send extra headers
120124
121125 extra_query: Add additional query parameters to the request
@@ -135,6 +139,7 @@ def create(
135139 "health_check_interval" : health_check_interval ,
136140 "login_url" : login_url ,
137141 "proxy" : proxy ,
142+ "save_credentials" : save_credentials ,
138143 },
139144 connection_create_params .ConnectionCreateParams ,
140145 ),
@@ -318,7 +323,6 @@ def login(
318323 id : str ,
319324 * ,
320325 proxy : connection_login_params .Proxy | Omit = omit ,
321- save_credential_as : str | Omit = omit ,
322326 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
323327 # The extra values given here take precedence over values defined on the client or passed to this method.
324328 extra_headers : Headers | None = None ,
@@ -336,8 +340,6 @@ def login(
336340 proxy: Proxy selection. Provide either id or name. The proxy must belong to the
337341 caller's org.
338342
339- save_credential_as: If provided, saves credentials under this name upon successful login
340-
341343 extra_headers: Send extra headers
342344
343345 extra_query: Add additional query parameters to the request
@@ -350,13 +352,7 @@ def login(
350352 raise ValueError (f"Expected a non-empty value for `id` but received { id !r} " )
351353 return self ._post (
352354 f"/auth/connections/{ id } /login" ,
353- body = maybe_transform (
354- {
355- "proxy" : proxy ,
356- "save_credential_as" : save_credential_as ,
357- },
358- connection_login_params .ConnectionLoginParams ,
359- ),
355+ body = maybe_transform ({"proxy" : proxy }, connection_login_params .ConnectionLoginParams ),
360356 options = make_request_options (
361357 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
362358 ),
@@ -367,7 +363,7 @@ def submit(
367363 self ,
368364 id : str ,
369365 * ,
370- fields : Dict [str , str ],
366+ fields : Dict [str , str ] | Omit = omit ,
371367 mfa_option_id : str | Omit = omit ,
372368 sso_button_selector : str | Omit = omit ,
373369 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -446,6 +442,7 @@ async def create(
446442 health_check_interval : int | Omit = omit ,
447443 login_url : str | Omit = omit ,
448444 proxy : connection_create_params .Proxy | Omit = omit ,
445+ save_credentials : bool | Omit = omit ,
449446 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
450447 # The extra values given here take precedence over values defined on the client or passed to this method.
451448 extra_headers : Headers | None = None ,
@@ -499,6 +496,9 @@ async def create(
499496 proxy: Proxy selection. Provide either id or name. The proxy must belong to the
500497 caller's org.
501498
499+ save_credentials: Whether to save credentials after every successful login. Defaults to true.
500+ One-time codes (TOTP, SMS, etc.) are not saved.
501+
502502 extra_headers: Send extra headers
503503
504504 extra_query: Add additional query parameters to the request
@@ -518,6 +518,7 @@ async def create(
518518 "health_check_interval" : health_check_interval ,
519519 "login_url" : login_url ,
520520 "proxy" : proxy ,
521+ "save_credentials" : save_credentials ,
521522 },
522523 connection_create_params .ConnectionCreateParams ,
523524 ),
@@ -701,7 +702,6 @@ async def login(
701702 id : str ,
702703 * ,
703704 proxy : connection_login_params .Proxy | Omit = omit ,
704- save_credential_as : str | Omit = omit ,
705705 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
706706 # The extra values given here take precedence over values defined on the client or passed to this method.
707707 extra_headers : Headers | None = None ,
@@ -719,8 +719,6 @@ async def login(
719719 proxy: Proxy selection. Provide either id or name. The proxy must belong to the
720720 caller's org.
721721
722- save_credential_as: If provided, saves credentials under this name upon successful login
723-
724722 extra_headers: Send extra headers
725723
726724 extra_query: Add additional query parameters to the request
@@ -733,13 +731,7 @@ async def login(
733731 raise ValueError (f"Expected a non-empty value for `id` but received { id !r} " )
734732 return await self ._post (
735733 f"/auth/connections/{ id } /login" ,
736- body = await async_maybe_transform (
737- {
738- "proxy" : proxy ,
739- "save_credential_as" : save_credential_as ,
740- },
741- connection_login_params .ConnectionLoginParams ,
742- ),
734+ body = await async_maybe_transform ({"proxy" : proxy }, connection_login_params .ConnectionLoginParams ),
743735 options = make_request_options (
744736 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
745737 ),
@@ -750,7 +742,7 @@ async def submit(
750742 self ,
751743 id : str ,
752744 * ,
753- fields : Dict [str , str ],
745+ fields : Dict [str , str ] | Omit = omit ,
754746 mfa_option_id : str | Omit = omit ,
755747 sso_button_selector : str | Omit = omit ,
756748 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
0 commit comments