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
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.11.0"
".": "2.12.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: 23
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase/browserbase-2118fd938d408dda6ed82d06c48b0785fad91fd54b5397acc3421a49a386c791.yml
openapi_spec_hash: 8e48a39a55a11b128028b47747aea775
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase/browserbase-b2831c9c836f039762834825afdc20569587a825d29ac5c3748c78b009bf059b.yml
openapi_spec_hash: dd85a934900cb6583f12ebf6117be884
config_hash: 40fbac80e24faaa0dc19e93368bcd821
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## 2.12.0 (2026-05-20)

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

### Features

* [AI-1748][apps/api] Obtain custom certificates in API during session reservation ([0123bc8](https://github.com/browserbase/sdk-node/commit/0123bc8dd7754b7dad06692cf4d6032492d23576))
* [AI-1972] - Move fetch v2 handler into /v1/fetch ([397c60f](https://github.com/browserbase/sdk-node/commit/397c60f9a97e8a8a587b00138586ac7a2797cee5))
* [AI-1993] - Surface structured JSON content on /v2/fetch ([95c8dfa](https://github.com/browserbase/sdk-node/commit/95c8dfa7988a9784df18a5bf12e6298a2d6e3de4))
* **api:** manual updates ([d18107b](https://github.com/browserbase/sdk-node/commit/d18107b210c64be3ce0541789f74adb47136734f))
* **api:** manual updates ([cce765a](https://github.com/browserbase/sdk-node/commit/cce765af5828449b905cf647afcc2d90df4bd567))

## 2.11.0 (2026-05-13)

Full Changelog: [v2.10.0...v2.11.0](https://github.com/browserbase/sdk-node/compare/v2.10.0...v2.11.0)
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.11.0",
"version": "2.12.0",
"description": "The official Node.js library for the Browserbase API",
"author": "Browserbase <support@browserbase.com>",
"types": "dist/index.d.ts",
Expand Down
18 changes: 16 additions & 2 deletions src/resources/fetch-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ export interface FetchAPICreateResponse {
id: string;

/**
* The response body content
* The response body content. A string for `raw` and `markdown` formats; a
* structured object for `json` format (the schema-extracted result).
*/
content: string;
content: string | { [key: string]: unknown };

/**
* The MIME type of the response
Expand Down Expand Up @@ -60,10 +61,23 @@ export interface FetchAPICreateParams {
*/
allowRedirects?: boolean;

/**
* Output format for the response content. `raw` (default) returns the response
* body unchanged; `json` returns structured data (requires `schema`); `markdown`
* returns the page as markdown.
*/
format?: 'raw' | 'json' | 'markdown';

/**
* Whether to enable proxy support for the request
*/
proxies?: boolean;

/**
* JSON Schema describing the desired structure of the response. Only used when
* `format` is `json`.
*/
schema?: { [key: string]: unknown };
}

export declare namespace FetchAPI {
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.11.0'; // x-release-please-version
export const VERSION = '2.12.0'; // x-release-please-version
2 changes: 2 additions & 0 deletions tests/api-resources/fetch-api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ describe('resource fetchAPI', () => {
url: 'https://example.com',
allowInsecureSsl: true,
allowRedirects: true,
format: 'raw',
proxies: true,
schema: { foo: 'bar' },
});
});
});
Loading