@@ -276,6 +276,7 @@ def execute_async(
276276 id : str ,
277277 * ,
278278 command : str | NotGiven = NOT_GIVEN ,
279+ shell_name : str | NotGiven = NOT_GIVEN ,
279280 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
280281 # The extra values given here take precedence over values defined on the client or passed to this method.
281282 extra_headers : Headers | None = None ,
@@ -289,6 +290,8 @@ def execute_async(
289290 Args:
290291 command: The command to execute on the Devbox.
291292
293+ shell_name: Which named shell to run the command in.
294+
292295 extra_headers: Send extra headers
293296
294297 extra_query: Add additional query parameters to the request
@@ -301,7 +304,13 @@ def execute_async(
301304 raise ValueError (f"Expected a non-empty value for `id` but received { id !r} " )
302305 return self ._post (
303306 f"/v1/devboxes/{ id } /execute_async" ,
304- body = maybe_transform ({"command" : command }, devbox_execute_async_params .DevboxExecuteAsyncParams ),
307+ body = maybe_transform (
308+ {
309+ "command" : command ,
310+ "shell_name" : shell_name ,
311+ },
312+ devbox_execute_async_params .DevboxExecuteAsyncParams ,
313+ ),
305314 options = make_request_options (
306315 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
307316 ),
@@ -313,6 +322,7 @@ def execute_sync(
313322 id : str ,
314323 * ,
315324 command : str | NotGiven = NOT_GIVEN ,
325+ shell_name : str | NotGiven = NOT_GIVEN ,
316326 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
317327 # The extra values given here take precedence over values defined on the client or passed to this method.
318328 extra_headers : Headers | None = None ,
@@ -326,6 +336,8 @@ def execute_sync(
326336 Args:
327337 command: The command to execute on the Devbox.
328338
339+ shell_name: Which named shell to run the command in.
340+
329341 extra_headers: Send extra headers
330342
331343 extra_query: Add additional query parameters to the request
@@ -338,7 +350,13 @@ def execute_sync(
338350 raise ValueError (f"Expected a non-empty value for `id` but received { id !r} " )
339351 return self ._post (
340352 f"/v1/devboxes/{ id } /execute_sync" ,
341- body = maybe_transform ({"command" : command }, devbox_execute_sync_params .DevboxExecuteSyncParams ),
353+ body = maybe_transform (
354+ {
355+ "command" : command ,
356+ "shell_name" : shell_name ,
357+ },
358+ devbox_execute_sync_params .DevboxExecuteSyncParams ,
359+ ),
342360 options = make_request_options (
343361 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
344362 ),
@@ -734,6 +752,7 @@ async def execute_async(
734752 id : str ,
735753 * ,
736754 command : str | NotGiven = NOT_GIVEN ,
755+ shell_name : str | NotGiven = NOT_GIVEN ,
737756 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
738757 # The extra values given here take precedence over values defined on the client or passed to this method.
739758 extra_headers : Headers | None = None ,
@@ -747,6 +766,8 @@ async def execute_async(
747766 Args:
748767 command: The command to execute on the Devbox.
749768
769+ shell_name: Which named shell to run the command in.
770+
750771 extra_headers: Send extra headers
751772
752773 extra_query: Add additional query parameters to the request
@@ -760,7 +781,11 @@ async def execute_async(
760781 return await self ._post (
761782 f"/v1/devboxes/{ id } /execute_async" ,
762783 body = await async_maybe_transform (
763- {"command" : command }, devbox_execute_async_params .DevboxExecuteAsyncParams
784+ {
785+ "command" : command ,
786+ "shell_name" : shell_name ,
787+ },
788+ devbox_execute_async_params .DevboxExecuteAsyncParams ,
764789 ),
765790 options = make_request_options (
766791 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
@@ -773,6 +798,7 @@ async def execute_sync(
773798 id : str ,
774799 * ,
775800 command : str | NotGiven = NOT_GIVEN ,
801+ shell_name : str | NotGiven = NOT_GIVEN ,
776802 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
777803 # The extra values given here take precedence over values defined on the client or passed to this method.
778804 extra_headers : Headers | None = None ,
@@ -786,6 +812,8 @@ async def execute_sync(
786812 Args:
787813 command: The command to execute on the Devbox.
788814
815+ shell_name: Which named shell to run the command in.
816+
789817 extra_headers: Send extra headers
790818
791819 extra_query: Add additional query parameters to the request
@@ -798,7 +826,13 @@ async def execute_sync(
798826 raise ValueError (f"Expected a non-empty value for `id` but received { id !r} " )
799827 return await self ._post (
800828 f"/v1/devboxes/{ id } /execute_sync" ,
801- body = await async_maybe_transform ({"command" : command }, devbox_execute_sync_params .DevboxExecuteSyncParams ),
829+ body = await async_maybe_transform (
830+ {
831+ "command" : command ,
832+ "shell_name" : shell_name ,
833+ },
834+ devbox_execute_sync_params .DevboxExecuteSyncParams ,
835+ ),
802836 options = make_request_options (
803837 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
804838 ),
0 commit comments