@@ -247,6 +247,63 @@ def test_path_params_kill(self, client: Runloop) -> None:
247247 devbox_id = "devbox_id" ,
248248 )
249249
250+ @parametrize
251+ def test_method_send_std_in (self , client : Runloop ) -> None :
252+ execution = client .devboxes .executions .send_std_in (
253+ execution_id = "execution_id" ,
254+ devbox_id = "devbox_id" ,
255+ )
256+ assert_matches_type (DevboxAsyncExecutionDetailView , execution , path = ["response" ])
257+
258+ @parametrize
259+ def test_method_send_std_in_with_all_params (self , client : Runloop ) -> None :
260+ execution = client .devboxes .executions .send_std_in (
261+ execution_id = "execution_id" ,
262+ devbox_id = "devbox_id" ,
263+ text = "text" ,
264+ )
265+ assert_matches_type (DevboxAsyncExecutionDetailView , execution , path = ["response" ])
266+
267+ @parametrize
268+ def test_raw_response_send_std_in (self , client : Runloop ) -> None :
269+ response = client .devboxes .executions .with_raw_response .send_std_in (
270+ execution_id = "execution_id" ,
271+ devbox_id = "devbox_id" ,
272+ )
273+
274+ assert response .is_closed is True
275+ assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
276+ execution = response .parse ()
277+ assert_matches_type (DevboxAsyncExecutionDetailView , execution , path = ["response" ])
278+
279+ @parametrize
280+ def test_streaming_response_send_std_in (self , client : Runloop ) -> None :
281+ with client .devboxes .executions .with_streaming_response .send_std_in (
282+ execution_id = "execution_id" ,
283+ devbox_id = "devbox_id" ,
284+ ) as response :
285+ assert not response .is_closed
286+ assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
287+
288+ execution = response .parse ()
289+ assert_matches_type (DevboxAsyncExecutionDetailView , execution , path = ["response" ])
290+
291+ assert cast (Any , response .is_closed ) is True
292+
293+ @parametrize
294+ def test_path_params_send_std_in (self , client : Runloop ) -> None :
295+ with pytest .raises (ValueError , match = r"Expected a non-empty value for `devbox_id` but received ''" ):
296+ client .devboxes .executions .with_raw_response .send_std_in (
297+ execution_id = "execution_id" ,
298+ devbox_id = "" ,
299+ )
300+
301+ with pytest .raises (ValueError , match = r"Expected a non-empty value for `execution_id` but received ''" ):
302+ client .devboxes .executions .with_raw_response .send_std_in (
303+ execution_id = "" ,
304+ devbox_id = "devbox_id" ,
305+ )
306+
250307 @parametrize
251308 def test_method_stream_stdout_updates (self , client : Runloop , respx_mock : MockRouter ) -> None :
252309 respx_mock .get ("/v1/devboxes/devbox_id/executions/execution_id/stream_stdout_updates" ).mock (
@@ -770,6 +827,63 @@ async def test_path_params_kill(self, async_client: AsyncRunloop) -> None:
770827 devbox_id = "devbox_id" ,
771828 )
772829
830+ @parametrize
831+ async def test_method_send_std_in (self , async_client : AsyncRunloop ) -> None :
832+ execution = await async_client .devboxes .executions .send_std_in (
833+ execution_id = "execution_id" ,
834+ devbox_id = "devbox_id" ,
835+ )
836+ assert_matches_type (DevboxAsyncExecutionDetailView , execution , path = ["response" ])
837+
838+ @parametrize
839+ async def test_method_send_std_in_with_all_params (self , async_client : AsyncRunloop ) -> None :
840+ execution = await async_client .devboxes .executions .send_std_in (
841+ execution_id = "execution_id" ,
842+ devbox_id = "devbox_id" ,
843+ text = "text" ,
844+ )
845+ assert_matches_type (DevboxAsyncExecutionDetailView , execution , path = ["response" ])
846+
847+ @parametrize
848+ async def test_raw_response_send_std_in (self , async_client : AsyncRunloop ) -> None :
849+ response = await async_client .devboxes .executions .with_raw_response .send_std_in (
850+ execution_id = "execution_id" ,
851+ devbox_id = "devbox_id" ,
852+ )
853+
854+ assert response .is_closed is True
855+ assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
856+ execution = await response .parse ()
857+ assert_matches_type (DevboxAsyncExecutionDetailView , execution , path = ["response" ])
858+
859+ @parametrize
860+ async def test_streaming_response_send_std_in (self , async_client : AsyncRunloop ) -> None :
861+ async with async_client .devboxes .executions .with_streaming_response .send_std_in (
862+ execution_id = "execution_id" ,
863+ devbox_id = "devbox_id" ,
864+ ) as response :
865+ assert not response .is_closed
866+ assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
867+
868+ execution = await response .parse ()
869+ assert_matches_type (DevboxAsyncExecutionDetailView , execution , path = ["response" ])
870+
871+ assert cast (Any , response .is_closed ) is True
872+
873+ @parametrize
874+ async def test_path_params_send_std_in (self , async_client : AsyncRunloop ) -> None :
875+ with pytest .raises (ValueError , match = r"Expected a non-empty value for `devbox_id` but received ''" ):
876+ await async_client .devboxes .executions .with_raw_response .send_std_in (
877+ execution_id = "execution_id" ,
878+ devbox_id = "" ,
879+ )
880+
881+ with pytest .raises (ValueError , match = r"Expected a non-empty value for `execution_id` but received ''" ):
882+ await async_client .devboxes .executions .with_raw_response .send_std_in (
883+ execution_id = "" ,
884+ devbox_id = "devbox_id" ,
885+ )
886+
773887 @parametrize
774888 async def test_method_stream_stdout_updates (self , async_client : AsyncRunloop , respx_mock : MockRouter ) -> None :
775889 respx_mock .get ("/v1/devboxes/devbox_id/executions/execution_id/stream_stdout_updates" ).mock (
0 commit comments