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.18.0"
".": "0.19.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 101
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-b6d60f8edbdc94e65f06b0b002cc8e1f27aceccc67917bea849425701ba82fb8.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-52bd3046e73f201c4d08edfa92756791c015be907691a7893f8e7782cc2aea6f.yml
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## 0.19.0 (2025-01-06)

Full Changelog: [v0.18.0...v0.19.0](https://github.com/orbcorp/orb-java/compare/v0.18.0...v0.19.0)

### Features

* **api:** api update ([#180](https://github.com/orbcorp/orb-java/issues/180)) ([4aa16b5](https://github.com/orbcorp/orb-java/commit/4aa16b536e853fd276832e491ad9b9ad94b42cf1))
* **client:** allow passing null or optional for nullable fields ([#179](https://github.com/orbcorp/orb-java/issues/179)) ([1797a16](https://github.com/orbcorp/orb-java/commit/1797a16f486fefa201684321d07897d5b5b0937e))


### Styles

* **internal:** sort fields ([#177](https://github.com/orbcorp/orb-java/issues/177)) ([3313c08](https://github.com/orbcorp/orb-java/commit/3313c085e6c200cae6212b783d92ae731cbc786d))

## 0.18.0 (2025-01-06)

Full Changelog: [v0.17.0...v0.18.0](https://github.com/orbcorp/orb-java/compare/v0.17.0...v0.18.0)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

[![Maven Central](https://img.shields.io/maven-central/v/com.withorb.api/orb-java)](https://central.sonatype.com/artifact/com.withorb.api/orb-java/0.18.0)
[![Maven Central](https://img.shields.io/maven-central/v/com.withorb.api/orb-java)](https://central.sonatype.com/artifact/com.withorb.api/orb-java/0.19.0)

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

Expand All @@ -25,7 +25,7 @@ The REST API documentation can be found on [docs.withorb.com](https://docs.with
<!-- x-release-please-start-version -->

```kotlin
implementation("com.withorb.api:orb-java:0.18.0")
implementation("com.withorb.api:orb-java:0.19.0")
```

#### Maven
Expand All @@ -34,7 +34,7 @@ implementation("com.withorb.api:orb-java:0.18.0")
<dependency>
<groupId>com.withorb.api</groupId>
<artifactId>orb-java</artifactId>
<version>0.18.0</version>
<version>0.19.0</version>
</dependency>
```

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

allprojects {
group = "com.withorb.api"
version = "0.18.0" // x-release-please-version
version = "0.19.0" // x-release-please-version
}


Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import com.withorb.api.core.http.QueryParams
import java.net.Proxy
import java.time.Clock
import java.time.Duration
import java.util.Optional

class OrbOkHttpClient private constructor() {

Expand Down Expand Up @@ -130,10 +131,13 @@ class OrbOkHttpClient private constructor() {

fun apiKey(apiKey: String) = apply { clientOptions.apiKey(apiKey) }

fun webhookSecret(webhookSecret: String) = apply {
fun webhookSecret(webhookSecret: String?) = apply {
clientOptions.webhookSecret(webhookSecret)
}

fun webhookSecret(webhookSecret: Optional<String>) =
webhookSecret(webhookSecret.orElse(null))

fun fromEnv() = apply { clientOptions.fromEnv() }

fun build(): OrbClient =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import com.withorb.api.core.http.QueryParams
import java.net.Proxy
import java.time.Clock
import java.time.Duration
import java.util.Optional

class OrbOkHttpClientAsync private constructor() {

Expand Down Expand Up @@ -130,10 +131,13 @@ class OrbOkHttpClientAsync private constructor() {

fun apiKey(apiKey: String) = apply { clientOptions.apiKey(apiKey) }

fun webhookSecret(webhookSecret: String) = apply {
fun webhookSecret(webhookSecret: String?) = apply {
clientOptions.webhookSecret(webhookSecret)
}

fun webhookSecret(webhookSecret: Optional<String>) =
webhookSecret(webhookSecret.orElse(null))

fun fromEnv() = apply { clientOptions.fromEnv() }

fun build(): OrbClientAsync =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import com.withorb.api.core.http.PhantomReachableClosingHttpClient
import com.withorb.api.core.http.QueryParams
import com.withorb.api.core.http.RetryingHttpClient
import java.time.Clock
import java.util.Optional

class ClientOptions
private constructor(
Expand Down Expand Up @@ -159,7 +160,10 @@ private constructor(

fun apiKey(apiKey: String) = apply { this.apiKey = apiKey }

fun webhookSecret(webhookSecret: String) = apply { this.webhookSecret = webhookSecret }
fun webhookSecret(webhookSecret: String?) = apply { this.webhookSecret = webhookSecret }

fun webhookSecret(webhookSecret: Optional<String>) =
webhookSecret(webhookSecret.orElse(null))

fun fromEnv() = apply {
System.getenv("ORB_API_KEY")?.let { apiKey(it) }
Expand Down
Loading
Loading