Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
5a80f2e
feat: Update search docs by removing description from typebox schemas
stainless-app[bot] Mar 17, 2026
6a01e18
chore(internal): tweak CI branches
stainless-app[bot] Mar 17, 2026
e139864
codegen metadata
stainless-app[bot] Mar 18, 2026
d38c181
refactor(tests): switch from prism to steady
stainless-app[bot] Mar 20, 2026
22a2654
chore(tests): bump steady to v0.19.4
stainless-app[bot] Mar 21, 2026
67408e0
chore(tests): bump steady to v0.19.5
stainless-app[bot] Mar 21, 2026
a493763
chore(internal): update gitignore
stainless-app[bot] Mar 24, 2026
41df179
chore(tests): bump steady to v0.19.6
stainless-app[bot] Mar 24, 2026
05a0e9a
codegen metadata
stainless-app[bot] Mar 24, 2026
bb91c04
codegen metadata
stainless-app[bot] Mar 24, 2026
824dd4a
codegen metadata
stainless-app[bot] Mar 24, 2026
601879d
codegen metadata
stainless-app[bot] Mar 24, 2026
9b01f85
codegen metadata
stainless-app[bot] Mar 24, 2026
b2635a7
chore(ci): skip lint on metadata-only changes
stainless-app[bot] Mar 25, 2026
e83612a
chore(tests): bump steady to v0.19.7
stainless-app[bot] Mar 25, 2026
bd86f6a
chore(internal): update multipart form array serialization
stainless-app[bot] Mar 27, 2026
97d54ba
codegen metadata
stainless-app[bot] Mar 29, 2026
deda749
chore(tests): bump steady to v0.20.1
stainless-app[bot] Apr 1, 2026
26bfaca
chore(tests): bump steady to v0.20.2
stainless-app[bot] Apr 1, 2026
3d5d8ee
feat: [CORE-000][apps/api] Add verified to SDK
stainless-app[bot] Apr 6, 2026
ec0a8c5
release: 2.10.0
stainless-app[bot] Apr 6, 2026
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
18 changes: 10 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: CI
on:
push:
branches-ignore:
- 'generated'
- 'codegen/**'
- 'integrated/**'
- 'stl-preview-head/**'
- 'stl-preview-base/**'
branches:
- '**'
- '!integrated/**'
- '!stl-preview-head/**'
- '!stl-preview-base/**'
- '!generated'
- '!codegen/**'
- 'codegen/stl/**'
pull_request:
branches-ignore:
- 'stl-preview-head/**'
Expand All @@ -17,7 +19,7 @@ jobs:
timeout-minutes: 10
name: lint
runs-on: ${{ github.repository == 'stainless-sdks/browserbase-node' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
steps:
- uses: actions/checkout@v6

Expand All @@ -36,7 +38,7 @@ jobs:
timeout-minutes: 5
name: build
runs-on: ${{ github.repository == 'stainless-sdks/browserbase-node' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
permissions:
contents: read
id-token: write
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.prism.log
.stdy.log
node_modules
yarn-error.log
codegen.log
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "2.9.0"
".": "2.10.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 21
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-9b1e2a2abf39dd780601935a9a9ee04cb939e2c3ba76627535f625b6aeaf5eb7.yml
openapi_spec_hash: 12fe5f4306c43fdfb394a33f79391a82
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fbrowserbase-921d3c61c7aa06269f74bee63cee993597944f913429caa2aa2e00dd51fab60f.yml
openapi_spec_hash: d35b9613c41bf172fa2b28aceef10b39
config_hash: cf04ecfb8dad5fbd8b85be25d6e9ec55
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# Changelog

## 2.10.0 (2026-04-06)

Full Changelog: [v2.9.0...v2.10.0](https://github.com/browserbase/sdk-node/compare/v2.9.0...v2.10.0)

### Features

* [CORE-000][apps/api] Add verified to SDK ([3d5d8ee](https://github.com/browserbase/sdk-node/commit/3d5d8eeed45b4bba8e82b04560a97e0c0038bee7))
* Update search docs by removing description from typebox schemas ([5a80f2e](https://github.com/browserbase/sdk-node/commit/5a80f2eb54c7be11989bbb7e1820c966b3511e3d))


### Chores

* **ci:** skip lint on metadata-only changes ([b2635a7](https://github.com/browserbase/sdk-node/commit/b2635a75dbda16d58becdb0a2ea163fcd2793597))
* **internal:** tweak CI branches ([6a01e18](https://github.com/browserbase/sdk-node/commit/6a01e18b448edc29f94d5a3d8de3707f28b95f6d))
* **internal:** update gitignore ([a493763](https://github.com/browserbase/sdk-node/commit/a493763a688700867b9050b662e946aac6b92b41))
* **internal:** update multipart form array serialization ([bd86f6a](https://github.com/browserbase/sdk-node/commit/bd86f6af8731af88d432b75991634ab067de3e16))
* **tests:** bump steady to v0.19.4 ([22a2654](https://github.com/browserbase/sdk-node/commit/22a2654495e703ed6bc2c3245df0ab86995c8356))
* **tests:** bump steady to v0.19.5 ([67408e0](https://github.com/browserbase/sdk-node/commit/67408e0ad8667e63becdcc7810e8d5e5d2103e9f))
* **tests:** bump steady to v0.19.6 ([41df179](https://github.com/browserbase/sdk-node/commit/41df179422074d46093c489479ad8aab341c4cb6))
* **tests:** bump steady to v0.19.7 ([e83612a](https://github.com/browserbase/sdk-node/commit/e83612a756439d0f4d9dac4eac84cc549f6e69b2))
* **tests:** bump steady to v0.20.1 ([deda749](https://github.com/browserbase/sdk-node/commit/deda749dc700a4c823165fa0e8d92a380e5fe59b))
* **tests:** bump steady to v0.20.2 ([26bfaca](https://github.com/browserbase/sdk-node/commit/26bfaca318277fafd9be39861a6a4c7ebe4bfea6))


### Refactors

* **tests:** switch from prism to steady ([d38c181](https://github.com/browserbase/sdk-node/commit/d38c18152f14979fdcd788c4036e5e084fdd0a6b))

## 2.9.0 (2026-03-16)

Full Changelog: [v2.8.0...v2.9.0](https://github.com/browserbase/sdk-node/compare/v2.8.0...v2.9.0)
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ $ pnpm link --global @browserbasehq/sdk

## Running tests

Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests.
Most tests require you to [set up a mock server](https://github.com/dgellow/steady) against the OpenAPI spec to run the tests.

```sh
$ ./scripts/mock
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@browserbasehq/sdk",
"version": "2.9.0",
"version": "2.10.0",
"description": "The official Node.js library for the Browserbase API",
"author": "Browserbase <support@browserbase.com>",
"types": "dist/index.d.ts",
Expand Down
26 changes: 13 additions & 13 deletions scripts/mock
Original file line number Diff line number Diff line change
Expand Up @@ -19,34 +19,34 @@ fi

echo "==> Starting mock server with URL ${URL}"

# Run prism mock on the given spec
# Run steady mock on the given spec
if [ "$1" == "--daemon" ]; then
# Pre-install the package so the download doesn't eat into the startup timeout
npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism --version
npm exec --package=@stdy/cli@0.20.2 -- steady --version

npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL" &> .prism.log &
npm exec --package=@stdy/cli@0.20.2 -- steady --host 127.0.0.1 -p 4010 --validator-query-array-format=comma --validator-form-array-format=comma --validator-query-object-format=brackets --validator-form-object-format=brackets "$URL" &> .stdy.log &

# Wait for server to come online (max 30s)
# Wait for server to come online via health endpoint (max 30s)
echo -n "Waiting for server"
attempts=0
while ! grep -q "✖ fatal\|Prism is listening" ".prism.log" ; do
while ! curl --silent --fail "http://127.0.0.1:4010/_x-steady/health" >/dev/null 2>&1; do
if ! kill -0 $! 2>/dev/null; then
echo
cat .stdy.log
exit 1
fi
attempts=$((attempts + 1))
if [ "$attempts" -ge 300 ]; then
echo
echo "Timed out waiting for Prism server to start"
cat .prism.log
echo "Timed out waiting for Steady server to start"
cat .stdy.log
exit 1
fi
echo -n "."
sleep 0.1
done

if grep -q "✖ fatal" ".prism.log"; then
cat .prism.log
exit 1
fi

echo
else
npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL"
npm exec --package=@stdy/cli@0.20.2 -- steady --host 127.0.0.1 -p 4010 --validator-query-array-format=comma --validator-form-array-format=comma --validator-query-object-format=brackets --validator-form-object-format=brackets "$URL"
fi
16 changes: 8 additions & 8 deletions scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ GREEN='\033[0;32m'
YELLOW='\033[0;33m'
NC='\033[0m' # No Color

function prism_is_running() {
curl --silent "http://localhost:4010" >/dev/null 2>&1
function steady_is_running() {
curl --silent "http://127.0.0.1:4010/_x-steady/health" >/dev/null 2>&1
}

kill_server_on_port() {
Expand All @@ -25,7 +25,7 @@ function is_overriding_api_base_url() {
[ -n "$TEST_API_BASE_URL" ]
}

if ! is_overriding_api_base_url && ! prism_is_running ; then
if ! is_overriding_api_base_url && ! steady_is_running ; then
# When we exit this script, make sure to kill the background mock server process
trap 'kill_server_on_port 4010' EXIT

Expand All @@ -36,19 +36,19 @@ fi
if is_overriding_api_base_url ; then
echo -e "${GREEN}✔ Running tests against ${TEST_API_BASE_URL}${NC}"
echo
elif ! prism_is_running ; then
echo -e "${RED}ERROR:${NC} The test suite will not run without a mock Prism server"
elif ! steady_is_running ; then
echo -e "${RED}ERROR:${NC} The test suite will not run without a mock Steady server"
echo -e "running against your OpenAPI spec."
echo
echo -e "To run the server, pass in the path or url of your OpenAPI"
echo -e "spec to the prism command:"
echo -e "spec to the steady command:"
echo
echo -e " \$ ${YELLOW}npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC}"
echo -e " \$ ${YELLOW}npm exec --package=@stdy/cli@0.20.2 -- steady path/to/your.openapi.yml --host 127.0.0.1 -p 4010 --validator-query-array-format=comma --validator-form-array-format=comma --validator-query-object-format=brackets --validator-form-object-format=brackets${NC}"
echo

exit 1
else
echo -e "${GREEN}✔ Mock prism server is running with your OpenAPI spec${NC}"
echo -e "${GREEN}✔ Mock steady server is running with your OpenAPI spec${NC}"
echo
fi

Expand Down
3 changes: 0 additions & 3 deletions src/resources/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ export class Search extends APIResource {
}
}

/**
* Response body for web search
*/
export interface SearchWebResponse {
/**
* The search query that was executed
Expand Down
5 changes: 5 additions & 0 deletions src/resources/sessions/sessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,11 @@ export namespace SessionCreateParams {
*/
solveCaptchas?: boolean;

/**
* Verified Browser Mode
*/
verified?: boolean;

viewport?: BrowserSettings.Viewport;
}

Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '2.9.0'; // x-release-please-version
export const VERSION = '2.10.0'; // x-release-please-version
3 changes: 1 addition & 2 deletions tests/api-resources/sessions/downloads.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ const client = new Browserbase({
});

describe('resource downloads', () => {
// Mock server doesn't support application/zip responses
test.skip('list: request options instead of params are passed correctly', async () => {
test('list: request options instead of params are passed correctly', async () => {
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
await expect(client.sessions.downloads.list('id', { path: '/_stainless_unknown_path' })).rejects.toThrow(
Browserbase.NotFoundError,
Expand Down
1 change: 1 addition & 0 deletions tests/api-resources/sessions/sessions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ describe('resource sessions', () => {
os: 'windows',
recordSession: true,
solveCaptchas: true,
verified: true,
viewport: { height: 0, width: 0 },
},
extensionId: 'extensionId',
Expand Down
Loading