Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat(api): api update
  • Loading branch information
stainless-app[bot] committed Jan 21, 2025
commit 338867d898da042a7be88197d7d1048f57494f55
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 18
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-1e31d897af1fa5faba941e1170e9de8bbdbd169f84468a5554df02d807d2fa05.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-f1ba1f2c1512973c1640f7e2d27c72c4f5c49ec07e70b026d52818e7f8b1468e.yml
3 changes: 3 additions & 0 deletions src/browserbase/types/session_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ class BrowserSettingsViewport(TypedDict, total=False):


class BrowserSettings(TypedDict, total=False):
advanced_stealth: Annotated[bool, PropertyInfo(alias="advancedStealth")]
"""Advanced Browser Stealth Mode"""

block_ads: Annotated[bool, PropertyInfo(alias="blockAds")]
"""Enable or disable ad blocking in the browser. Defaults to `false`."""

Expand Down
2 changes: 2 additions & 0 deletions tests/api_resources/test_sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def test_method_create_with_all_params(self, client: Browserbase) -> None:
session = client.sessions.create(
project_id="projectId",
browser_settings={
"advanced_stealth": True,
"block_ads": True,
"context": {
"id": "id",
Expand Down Expand Up @@ -265,6 +266,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncBrowserbas
session = await async_client.sessions.create(
project_id="projectId",
browser_settings={
"advanced_stealth": True,
"block_ads": True,
"context": {
"id": "id",
Expand Down