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 @@
{
".": "0.3.0"
".": "0.4.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 7
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-ed52466945f2f8dfd3814a29e948d7bf30af7b76a7a7689079c03b8baf64e26f.yml
openapi_spec_hash: 5d57aaf2362b0d882372dbf76477ba23
config_hash: 989ddfee371586e9156b4d484ec0a6cc
config_hash: 8ec9eaf59304f664cf79f73de1488671
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.4.0 (2026-01-05)

Full Changelog: [v0.3.0...v0.4.0](https://github.com/browserbase/stagehand-java/compare/v0.3.0...v0.4.0)

### Features

* **api:** manual updates ([5cf0d46](https://github.com/browserbase/stagehand-java/commit/5cf0d4684d652046dbf0c05e12a796423f860bd9))

## 0.3.0 (2025-12-23)

Full Changelog: [v0.2.0...v0.3.0](https://github.com/browserbase/stagehand-java/compare/v0.2.0...v0.3.0)
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<!-- x-release-please-start-version -->

[![Maven Central](https://img.shields.io/maven-central/v/com.browserbase.api/stagehand-java)](https://central.sonatype.com/artifact/com.browserbase.api/stagehand-java/0.3.0)
[![javadoc](https://javadoc.io/badge2/com.browserbase.api/stagehand-java/0.3.0/javadoc.svg)](https://javadoc.io/doc/com.browserbase.api/stagehand-java/0.3.0)
[![Maven Central](https://img.shields.io/maven-central/v/com.browserbase.api/stagehand-java)](https://central.sonatype.com/artifact/com.browserbase.api/stagehand-java/0.4.0)
[![javadoc](https://javadoc.io/badge2/com.browserbase.api/stagehand-java/0.4.0/javadoc.svg)](https://javadoc.io/doc/com.browserbase.api/stagehand-java/0.4.0)

<!-- x-release-please-end -->

Expand All @@ -13,7 +13,7 @@ It is generated with [Stainless](https://www.stainless.com/).

<!-- x-release-please-start-version -->

The REST API documentation can be found on [docs.stagehand.dev](https://docs.stagehand.dev). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.browserbase.api/stagehand-java/0.3.0).
The REST API documentation can be found on [docs.stagehand.dev](https://docs.stagehand.dev). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.browserbase.api/stagehand-java/0.4.0).

<!-- x-release-please-end -->

Expand All @@ -24,7 +24,7 @@ The REST API documentation can be found on [docs.stagehand.dev](https://docs.sta
### Gradle

```kotlin
implementation("com.browserbase.api:stagehand-java:0.3.0")
implementation("com.browserbase.api:stagehand-java:0.4.0")
```

### Maven
Expand All @@ -33,7 +33,7 @@ implementation("com.browserbase.api:stagehand-java:0.3.0")
<dependency>
<groupId>com.browserbase.api</groupId>
<artifactId>stagehand-java</artifactId>
<version>0.3.0</version>
<version>0.4.0</version>
</dependency>
```

Expand Down Expand Up @@ -104,12 +104,12 @@ StagehandClient client = StagehandOkHttpClient.builder()

See this table for the available options:

| Setter | System property | Environment variable | Required | Default value |
| ---------------------- | -------------------------------- | ------------------------ | -------- | -------------------------------------------- |
| `browserbaseApiKey` | `stagehand.browserbaseApiKey` | `BROWSERBASE_API_KEY` | true | - |
| `browserbaseProjectId` | `stagehand.browserbaseProjectId` | `BROWSERBASE_PROJECT_ID` | true | - |
| `modelApiKey` | `stagehand.modelApiKey` | `MODEL_API_KEY` | true | - |
| `baseUrl` | `stagehand.baseUrl` | `STAGEHAND_BASE_URL` | true | `"https://api.stagehand.browserbase.com/v1"` |
| Setter | System property | Environment variable | Required | Default value |
| ---------------------- | -------------------------------- | ------------------------ | -------- | ----------------------------------------- |
| `browserbaseApiKey` | `stagehand.browserbaseApiKey` | `BROWSERBASE_API_KEY` | true | - |
| `browserbaseProjectId` | `stagehand.browserbaseProjectId` | `BROWSERBASE_PROJECT_ID` | true | - |
| `modelApiKey` | `stagehand.modelApiKey` | `MODEL_API_KEY` | true | - |
| `baseUrl` | `stagehand.baseUrl` | `STAGEHAND_BASE_URL` | true | `"https://api.stagehand.browserbase.com"` |

System properties take precedence over environment variables.

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repositories {

allprojects {
group = "com.browserbase.api"
version = "0.3.0" // x-release-please-version
version = "0.4.0" // x-release-please-version
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class StagehandOkHttpClient private constructor() {
/**
* The base URL to use for every request.
*
* Defaults to the production environment: `https://api.stagehand.browserbase.com/v1`.
* Defaults to the production environment: `https://api.stagehand.browserbase.com`.
*/
fun baseUrl(baseUrl: String?) = apply { clientOptions.baseUrl(baseUrl) }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class StagehandOkHttpClientAsync private constructor() {
/**
* The base URL to use for every request.
*
* Defaults to the production environment: `https://api.stagehand.browserbase.com/v1`.
* Defaults to the production environment: `https://api.stagehand.browserbase.com`.
*/
fun baseUrl(baseUrl: String?) = apply { clientOptions.baseUrl(baseUrl) }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@ private constructor(
/**
* The base URL to use for every request.
*
* Defaults to the production environment: `https://api.stagehand.browserbase.com/v1`.
* Defaults to the production environment: `https://api.stagehand.browserbase.com`.
*/
fun baseUrl(): String = baseUrl ?: PRODUCTION_URL

fun toBuilder() = Builder().from(this)

companion object {

const val PRODUCTION_URL = "https://api.stagehand.browserbase.com/v1"
const val PRODUCTION_URL = "https://api.stagehand.browserbase.com"

/**
* Returns a mutable builder for constructing an instance of [ClientOptions].
Expand Down Expand Up @@ -260,7 +260,7 @@ private constructor(
/**
* The base URL to use for every request.
*
* Defaults to the production environment: `https://api.stagehand.browserbase.com/v1`.
* Defaults to the production environment: `https://api.stagehand.browserbase.com`.
*/
fun baseUrl(baseUrl: String?) = apply { this.baseUrl = baseUrl }

Expand Down Expand Up @@ -411,12 +411,12 @@ private constructor(
*
* See this table for the available options:
*
* |Setter |System property |Environment variable |Required|Default value |
* |----------------------|--------------------------------|------------------------|--------|--------------------------------------------|
* |`browserbaseApiKey` |`stagehand.browserbaseApiKey` |`BROWSERBASE_API_KEY` |true |- |
* |`browserbaseProjectId`|`stagehand.browserbaseProjectId`|`BROWSERBASE_PROJECT_ID`|true |- |
* |`modelApiKey` |`stagehand.modelApiKey` |`MODEL_API_KEY` |true |- |
* |`baseUrl` |`stagehand.baseUrl` |`STAGEHAND_BASE_URL` |true |`"https://api.stagehand.browserbase.com/v1"`|
* |Setter |System property |Environment variable |Required|Default value |
* |----------------------|--------------------------------|------------------------|--------|-----------------------------------------|
* |`browserbaseApiKey` |`stagehand.browserbaseApiKey` |`BROWSERBASE_API_KEY` |true |- |
* |`browserbaseProjectId`|`stagehand.browserbaseProjectId`|`BROWSERBASE_PROJECT_ID`|true |- |
* |`modelApiKey` |`stagehand.modelApiKey` |`MODEL_API_KEY` |true |- |
* |`baseUrl` |`stagehand.baseUrl` |`STAGEHAND_BASE_URL` |true |`"https://api.stagehand.browserbase.com"`|
*
* System properties take precedence over environment variables.
*/
Expand Down
Loading