Skip to content
Open
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
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.13.0"
".": "1.13.1"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 27
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase/browserbase-f39b852755134d01a440f7c37701f6c5397f43d13740d9ba08739cae488382a7.yml
openapi_spec_hash: de6c25eebe5026d0fb9a4d7a93ec7718
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase/browserbase-325727e382d1635cdcff3d81e93432c314290a644a5252095fc9d23350e8fbae.yml
openapi_spec_hash: 1c0874c5d6253bdf144e617203d788c7
config_hash: d4b0c534eaf7665ea25168e0e824c9d3
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.13.1 (2026-06-12)

Full Changelog: [v1.13.0...v1.13.1](https://github.com/browserbase/sdk-python/compare/v1.13.0...v1.13.1)

### Documentation

* document and un-gate allowedDomains session setting ([126cf6d](https://github.com/browserbase/sdk-python/commit/126cf6d331da97cc4c67b2b8f34c467f4449a010))

## 1.13.0 (2026-06-08)

Full Changelog: [v1.12.0...v1.13.0](https://github.com/browserbase/sdk-python/compare/v1.12.0...v1.13.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "browserbase"
version = "1.13.0"
version = "1.13.1"
description = "The official Python library for the Browserbase API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/browserbase/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "browserbase"
__version__ = "1.13.0" # x-release-please-version
__version__ = "1.13.1" # x-release-please-version
12 changes: 12 additions & 0 deletions src/browserbase/types/session_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,18 @@ class BrowserSettings(TypedDict, total=False):
advanced_stealth: Annotated[bool, PropertyInfo(alias="advancedStealth")]
"""Advanced Browser Stealth Mode"""

allowed_domains: Annotated[SequenceNotStr[str], PropertyInfo(alias="allowedDomains")]
"""An optional list of allowed domains for the session.

If you pass one or more domains, Browserbase restricts top-level (main-frame)
page navigations to the listed domains and their subdomains. For example,
`example.com` also permits `www.example.com` and `a.b.example.com`, but not
`notexample.com`. Matching is domain-based, not full-URL. An empty list (the
default) disables the restriction entirely. Browserbase enforces only main-frame
navigations; it does not block iframe/subframe loads or other in-page resource
requests (images, scripts, XHR, etc.).
"""

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 @@ -33,6 +33,7 @@ def test_method_create_with_all_params(self, client: Browserbase) -> None:
session = client.sessions.create(
browser_settings={
"advanced_stealth": True,
"allowed_domains": ["string"],
"block_ads": True,
"captcha_image_selector": "captchaImageSelector",
"captcha_input_selector": "captchaInputSelector",
Expand Down Expand Up @@ -269,6 +270,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncBrowserbas
session = await async_client.sessions.create(
browser_settings={
"advanced_stealth": True,
"allowed_domains": ["string"],
"block_ads": True,
"captcha_image_selector": "captchaImageSelector",
"captcha_input_selector": "captchaInputSelector",
Expand Down