Skip to content

Commit e94ddbd

Browse files
feat(api): api update
1 parent 28115fb commit e94ddbd

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 18
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-c14a7d6b23a7fd42a26a7c55a668d1dcd2e4b58354b878e696bc959d808c71c9.yml
3-
openapi_spec_hash: a0878bab95e435f9ce0d2418f0784d06
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-be7a4aeebb1605262935b4b3ab446a95b1fad8a7d18098943dd548c8a486ef13.yml
3+
openapi_spec_hash: 1c950a109f80140711e7ae2cf87fddad
44
config_hash: b3ca4ec5b02e5333af51ebc2e9fdef1b

src/browserbase/types/session_create_params.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ class BrowserSettings(TypedDict, total=False):
144144
log_session: Annotated[bool, PropertyInfo(alias="logSession")]
145145
"""Enable or disable session logging. Defaults to `true`."""
146146

147+
os: Literal["windows", "mac", "linux", "mobile", "tablet"]
148+
"""Operating system for stealth mode.
149+
150+
Valid values: windows, mac, linux, mobile, tablet
151+
"""
152+
147153
record_session: Annotated[bool, PropertyInfo(alias="recordSession")]
148154
"""Enable or disable session recording. Defaults to `true`."""
149155

tests/api_resources/test_sessions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def test_method_create_with_all_params(self, client: Browserbase) -> None:
5858
},
5959
},
6060
"log_session": True,
61+
"os": "windows",
6162
"record_session": True,
6263
"solve_captchas": True,
6364
"viewport": {
@@ -304,6 +305,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncBrowserbas
304305
},
305306
},
306307
"log_session": True,
308+
"os": "windows",
307309
"record_session": True,
308310
"solve_captchas": True,
309311
"viewport": {

0 commit comments

Comments
 (0)