Skip to content

Commit 6c57ff1

Browse files
committed
SDK regeneration
1 parent e947ad9 commit 6c57ff1

5 files changed

Lines changed: 38 additions & 22 deletions

File tree

poetry.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "scrapybara"
33

44
[tool.poetry]
55
name = "scrapybara"
6-
version = "2.5.0"
6+
version = "2.5.1"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,14 @@ client.instance.bash(
458458
<dl>
459459
<dd>
460460

461+
**session:** `typing.Optional[int]`
462+
463+
</dd>
464+
</dl>
465+
466+
<dl>
467+
<dd>
468+
461469
**restart:** `typing.Optional[bool]`
462470

463471
</dd>
@@ -466,15 +474,15 @@ client.instance.bash(
466474
<dl>
467475
<dd>
468476

469-
**get_background_processes:** `typing.Optional[bool]`
477+
**list_sessions:** `typing.Optional[bool]`
470478

471479
</dd>
472480
</dl>
473481

474482
<dl>
475483
<dd>
476484

477-
**kill_pid:** `typing.Optional[int]`
485+
**check_session:** `typing.Optional[int]`
478486

479487
</dd>
480488
</dl>

src/scrapybara/core/client_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def get_headers(self) -> typing.Dict[str, str]:
1616
headers: typing.Dict[str, str] = {
1717
"X-Fern-Language": "Python",
1818
"X-Fern-SDK-Name": "scrapybara",
19-
"X-Fern-SDK-Version": "2.5.0",
19+
"X-Fern-SDK-Version": "2.5.1",
2020
}
2121
headers["x-api-key"] = self.api_key
2222
return headers

src/scrapybara/instance/client.py

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,10 @@ def bash(
213213
instance_id: str,
214214
*,
215215
command: typing.Optional[str] = OMIT,
216+
session: typing.Optional[int] = OMIT,
216217
restart: typing.Optional[bool] = OMIT,
217-
get_background_processes: typing.Optional[bool] = OMIT,
218-
kill_pid: typing.Optional[int] = OMIT,
218+
list_sessions: typing.Optional[bool] = OMIT,
219+
check_session: typing.Optional[int] = OMIT,
219220
request_options: typing.Optional[RequestOptions] = None,
220221
) -> BashResponse:
221222
"""
@@ -225,11 +226,13 @@ def bash(
225226
226227
command : typing.Optional[str]
227228
229+
session : typing.Optional[int]
230+
228231
restart : typing.Optional[bool]
229232
230-
get_background_processes : typing.Optional[bool]
233+
list_sessions : typing.Optional[bool]
231234
232-
kill_pid : typing.Optional[int]
235+
check_session : typing.Optional[int]
233236
234237
request_options : typing.Optional[RequestOptions]
235238
Request-specific configuration.
@@ -255,9 +258,10 @@ def bash(
255258
method="POST",
256259
json={
257260
"command": command,
261+
"session": session,
258262
"restart": restart,
259-
"get_background_processes": get_background_processes,
260-
"kill_pid": kill_pid,
263+
"list_sessions": list_sessions,
264+
"check_session": check_session,
261265
},
262266
headers={
263267
"content-type": "application/json",
@@ -980,9 +984,10 @@ async def bash(
980984
instance_id: str,
981985
*,
982986
command: typing.Optional[str] = OMIT,
987+
session: typing.Optional[int] = OMIT,
983988
restart: typing.Optional[bool] = OMIT,
984-
get_background_processes: typing.Optional[bool] = OMIT,
985-
kill_pid: typing.Optional[int] = OMIT,
989+
list_sessions: typing.Optional[bool] = OMIT,
990+
check_session: typing.Optional[int] = OMIT,
986991
request_options: typing.Optional[RequestOptions] = None,
987992
) -> BashResponse:
988993
"""
@@ -992,11 +997,13 @@ async def bash(
992997
993998
command : typing.Optional[str]
994999
1000+
session : typing.Optional[int]
1001+
9951002
restart : typing.Optional[bool]
9961003
997-
get_background_processes : typing.Optional[bool]
1004+
list_sessions : typing.Optional[bool]
9981005
999-
kill_pid : typing.Optional[int]
1006+
check_session : typing.Optional[int]
10001007
10011008
request_options : typing.Optional[RequestOptions]
10021009
Request-specific configuration.
@@ -1030,9 +1037,10 @@ async def main() -> None:
10301037
method="POST",
10311038
json={
10321039
"command": command,
1040+
"session": session,
10331041
"restart": restart,
1034-
"get_background_processes": get_background_processes,
1035-
"kill_pid": kill_pid,
1042+
"list_sessions": list_sessions,
1043+
"check_session": check_session,
10361044
},
10371045
headers={
10381046
"content-type": "application/json",

0 commit comments

Comments
 (0)