33from __future__ import annotations
44
55from typing import Dict
6- from typing_extensions import overload
6+ from typing_extensions import Literal , overload
77
88import httpx
99
@@ -233,13 +233,46 @@ def submit(
233233 """
234234 ...
235235
236- @required_args (["field_values" ], ["sso_button" ])
236+ @overload
237+ def submit (
238+ self ,
239+ invocation_id : str ,
240+ * ,
241+ selected_mfa_type : Literal ["sms" , "call" , "email" , "totp" , "push" , "security_key" ],
242+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
243+ # The extra values given here take precedence over values defined on the client or passed to this method.
244+ extra_headers : Headers | None = None ,
245+ extra_query : Query | None = None ,
246+ extra_body : Body | None = None ,
247+ timeout : float | httpx .Timeout | None | NotGiven = not_given ,
248+ ) -> AgentAuthSubmitResponse :
249+ """Submits field values for the discovered login form.
250+
251+ Returns immediately after
252+ submission is accepted. Poll the invocation endpoint to track progress and get
253+ results.
254+
255+ Args:
256+ selected_mfa_type: The MFA delivery method type
257+
258+ extra_headers: Send extra headers
259+
260+ extra_query: Add additional query parameters to the request
261+
262+ extra_body: Add additional JSON properties to the request
263+
264+ timeout: Override the client-level default timeout for this request, in seconds
265+ """
266+ ...
267+
268+ @required_args (["field_values" ], ["sso_button" ], ["selected_mfa_type" ])
237269 def submit (
238270 self ,
239271 invocation_id : str ,
240272 * ,
241273 field_values : Dict [str , str ] | Omit = omit ,
242274 sso_button : str | Omit = omit ,
275+ selected_mfa_type : Literal ["sms" , "call" , "email" , "totp" , "push" , "security_key" ] | Omit = omit ,
243276 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
244277 # The extra values given here take precedence over values defined on the client or passed to this method.
245278 extra_headers : Headers | None = None ,
@@ -255,6 +288,7 @@ def submit(
255288 {
256289 "field_values" : field_values ,
257290 "sso_button" : sso_button ,
291+ "selected_mfa_type" : selected_mfa_type ,
258292 },
259293 invocation_submit_params .InvocationSubmitParams ,
260294 ),
@@ -471,13 +505,46 @@ async def submit(
471505 """
472506 ...
473507
474- @required_args (["field_values" ], ["sso_button" ])
508+ @overload
509+ async def submit (
510+ self ,
511+ invocation_id : str ,
512+ * ,
513+ selected_mfa_type : Literal ["sms" , "call" , "email" , "totp" , "push" , "security_key" ],
514+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
515+ # The extra values given here take precedence over values defined on the client or passed to this method.
516+ extra_headers : Headers | None = None ,
517+ extra_query : Query | None = None ,
518+ extra_body : Body | None = None ,
519+ timeout : float | httpx .Timeout | None | NotGiven = not_given ,
520+ ) -> AgentAuthSubmitResponse :
521+ """Submits field values for the discovered login form.
522+
523+ Returns immediately after
524+ submission is accepted. Poll the invocation endpoint to track progress and get
525+ results.
526+
527+ Args:
528+ selected_mfa_type: The MFA delivery method type
529+
530+ extra_headers: Send extra headers
531+
532+ extra_query: Add additional query parameters to the request
533+
534+ extra_body: Add additional JSON properties to the request
535+
536+ timeout: Override the client-level default timeout for this request, in seconds
537+ """
538+ ...
539+
540+ @required_args (["field_values" ], ["sso_button" ], ["selected_mfa_type" ])
475541 async def submit (
476542 self ,
477543 invocation_id : str ,
478544 * ,
479545 field_values : Dict [str , str ] | Omit = omit ,
480546 sso_button : str | Omit = omit ,
547+ selected_mfa_type : Literal ["sms" , "call" , "email" , "totp" , "push" , "security_key" ] | Omit = omit ,
481548 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
482549 # The extra values given here take precedence over values defined on the client or passed to this method.
483550 extra_headers : Headers | None = None ,
@@ -493,6 +560,7 @@ async def submit(
493560 {
494561 "field_values" : field_values ,
495562 "sso_button" : sso_button ,
563+ "selected_mfa_type" : selected_mfa_type ,
496564 },
497565 invocation_submit_params .InvocationSubmitParams ,
498566 ),
0 commit comments