Skip to content

Commit de8649c

Browse files
authored
Merge pull request #79 from orbcorp/release-please--branches--main--changes--next
release: 0.1.0
2 parents 28f0892 + 5b84d6e commit de8649c

File tree

275 files changed

+40532
-84432
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

275 files changed

+40532
-84432
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0-alpha.7"
2+
".": "0.1.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 93
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-2909e111b2e1a19626356bae22b7ef7ed276e7e33b939a2b8e164ccb1ec1bf40.yml
1+
configured_endpoints: 95
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-96918acc38b19b3897bf9e90efacbe214997b801f29f00fa246521c8a48f7cc0.yml

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Changelog
22

3+
## 0.1.0 (2024-10-28)
4+
5+
Full Changelog: [v0.1.0-alpha.7...v0.1.0](https://github.com/orbcorp/orb-java/compare/v0.1.0-alpha.7...v0.1.0)
6+
7+
### Features
8+
9+
* **api:** api update ([#81](https://github.com/orbcorp/orb-java/issues/81)) ([6b595ca](https://github.com/orbcorp/orb-java/commit/6b595caf0ced6da64742883efae7ff55aa3a74b6))
10+
* **api:** api update ([#82](https://github.com/orbcorp/orb-java/issues/82)) ([3d2aa72](https://github.com/orbcorp/orb-java/commit/3d2aa72926de34616e5c622197204f32c48462bf))
11+
* **api:** api update ([#84](https://github.com/orbcorp/orb-java/issues/84)) ([89db90d](https://github.com/orbcorp/orb-java/commit/89db90d6b9ca93f3469b8095f193e943e2580c83))
12+
* **api:** api update ([#85](https://github.com/orbcorp/orb-java/issues/85)) ([ccb4f21](https://github.com/orbcorp/orb-java/commit/ccb4f21cabdd7a8db4a57fe7a8de1570ce4a1863))
13+
* **api:** api update ([#86](https://github.com/orbcorp/orb-java/issues/86)) ([4f4639d](https://github.com/orbcorp/orb-java/commit/4f4639dbf70bbb75f56e96fc574441a37518656e))
14+
* **api:** api update ([#87](https://github.com/orbcorp/orb-java/issues/87)) ([925563d](https://github.com/orbcorp/orb-java/commit/925563d00a38d6f78a56413aa8a24cf61fc41805))
15+
* **api:** api update ([#88](https://github.com/orbcorp/orb-java/issues/88)) ([8a09a17](https://github.com/orbcorp/orb-java/commit/8a09a173eec143cc8f574c4623985b69246bc8fe))
16+
* **api:** OpenAPI spec update via Stainless API ([#78](https://github.com/orbcorp/orb-java/issues/78)) ([e745d41](https://github.com/orbcorp/orb-java/commit/e745d410327507e514b35968c97b29c7983b90df))
17+
* **api:** OpenAPI spec update via Stainless API ([#80](https://github.com/orbcorp/orb-java/issues/80)) ([e1fc9e9](https://github.com/orbcorp/orb-java/commit/e1fc9e9f9b9f38313e051194e430880cfa46dad4))
18+
319
## 0.1.0-alpha.7 (2024-09-26)
420

521
Full Changelog: [v0.1.0-alpha.6...v0.1.0-alpha.7](https://github.com/orbcorp/orb-java/compare/v0.1.0-alpha.6...v0.1.0-alpha.7)

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

5-
[![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.1.0-alpha.7)
5+
[![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.1.0)
66

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

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

2727
```kotlin
28-
implementation("com.withorb.api:orb-java:0.1.0-alpha.7")
28+
implementation("com.withorb.api:orb-java:0.1.0")
2929
```
3030

3131
#### Maven
@@ -34,7 +34,7 @@ implementation("com.withorb.api:orb-java:0.1.0-alpha.7")
3434
<dependency>
3535
<groupId>com.withorb.api</groupId>
3636
<artifactId>orb-java</artifactId>
37-
<version>0.1.0-alpha.7</version>
37+
<version>0.1.0</version>
3838
</dependency>
3939
```
4040

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44

55
allprojects {
66
group = "com.withorb.api"
7-
version = "0.1.0-alpha.7" // x-release-please-version
7+
version = "0.1.0" // x-release-please-version
88
}
99

1010

buildSrc/src/main/kotlin/orb.java.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ configure<SpotlessExtension> {
1919
importOrder()
2020
removeUnusedImports()
2121
palantirJavaFormat()
22+
toggleOffOn()
2223
}
2324
}
2425

buildSrc/src/main/kotlin/orb.kotlin.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ kotlin {
1616
configure<SpotlessExtension> {
1717
kotlin {
1818
ktfmt().kotlinlangStyle()
19+
toggleOffOn()
1920
}
2021
}
2122

orb-java-client-okhttp/src/main/kotlin/com/withorb/api/client/okhttp/OkHttpClient.kt

Lines changed: 12 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ private constructor(private val okHttpClient: okhttp3.OkHttpClient, private val
6666
request.body?.run { future.whenComplete { _, _ -> close() } }
6767

6868
val call = getClient(requestOptions).newCall(request.toRequest())
69-
7069
call.enqueue(
7170
object : Callback {
7271
override fun onResponse(call: Call, response: Response) {
@@ -90,7 +89,7 @@ private constructor(private val okHttpClient: okhttp3.OkHttpClient, private val
9089

9190
private fun HttpRequest.toRequest(): Request {
9291
var body: RequestBody? = body?.toRequestBody()
93-
// OkHttpClient always requires a request body for PUT and POST methods
92+
// OkHttpClient always requires a request body for PUT and POST methods.
9493
if (body == null && (method == HttpMethod.PUT || method == HttpMethod.POST)) {
9594
body = "".toRequestBody()
9695
}
@@ -118,43 +117,27 @@ private constructor(private val okHttpClient: okhttp3.OkHttpClient, private val
118117
val length = contentLength()
119118

120119
return object : RequestBody() {
121-
override fun contentType(): MediaType? {
122-
return mediaType
123-
}
120+
override fun contentType(): MediaType? = mediaType
124121

125-
override fun contentLength(): Long {
126-
return length
127-
}
122+
override fun contentLength(): Long = length
128123

129-
override fun isOneShot(): Boolean {
130-
return !repeatable()
131-
}
124+
override fun isOneShot(): Boolean = !repeatable()
132125

133-
override fun writeTo(sink: BufferedSink) {
134-
writeTo(sink.outputStream())
135-
}
126+
override fun writeTo(sink: BufferedSink) = writeTo(sink.outputStream())
136127
}
137128
}
138129

139130
private fun Response.toResponse(): HttpResponse {
140131
val headers = headers.toHeaders()
141132

142133
return object : HttpResponse {
143-
override fun statusCode(): Int {
144-
return code
145-
}
134+
override fun statusCode(): Int = code
146135

147-
override fun headers(): ListMultimap<String, String> {
148-
return headers
149-
}
136+
override fun headers(): ListMultimap<String, String> = headers
150137

151-
override fun body(): InputStream {
152-
return body!!.byteStream()
153-
}
138+
override fun body(): InputStream = body!!.byteStream()
154139

155-
override fun close() {
156-
body!!.close()
157-
}
140+
override fun close() = body!!.close()
158141
}
159142
}
160143

@@ -163,9 +146,7 @@ private constructor(private val okHttpClient: okhttp3.OkHttpClient, private val
163146
MultimapBuilder.treeKeys(String.CASE_INSENSITIVE_ORDER)
164147
.arrayListValues()
165148
.build<String, String>()
166-
167149
forEach { pair -> headers.put(pair.first, pair.second) }
168-
169150
return headers
170151
}
171152

@@ -176,7 +157,7 @@ private constructor(private val okHttpClient: okhttp3.OkHttpClient, private val
176157
class Builder {
177158

178159
private var baseUrl: HttpUrl? = null
179-
// default timeout is 1 minute
160+
// The default timeout is 1 minute.
180161
private var timeout: Duration = Duration.ofSeconds(60)
181162
private var proxy: Proxy? = null
182163

@@ -186,8 +167,8 @@ private constructor(private val okHttpClient: okhttp3.OkHttpClient, private val
186167

187168
fun proxy(proxy: Proxy?) = apply { this.proxy = proxy }
188169

189-
fun build(): OkHttpClient {
190-
return OkHttpClient(
170+
fun build(): OkHttpClient =
171+
OkHttpClient(
191172
okhttp3.OkHttpClient.Builder()
192173
.connectTimeout(timeout)
193174
.readTimeout(timeout)
@@ -197,6 +178,5 @@ private constructor(private val okHttpClient: okhttp3.OkHttpClient, private val
197178
.build(),
198179
checkNotNull(baseUrl) { "`baseUrl` is required but was not set" },
199180
)
200-
}
201181
}
202182
}

orb-java-client-okhttp/src/main/kotlin/com/withorb/api/client/okhttp/OrbOkHttpClient.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class OrbOkHttpClient private constructor() {
2323

2424
private var clientOptions: ClientOptions.Builder = ClientOptions.builder()
2525
private var baseUrl: String = ClientOptions.PRODUCTION_URL
26-
// default timeout for client is 1 minute
26+
// The default timeout for the client is 1 minute.
2727
private var timeout: Duration = Duration.ofSeconds(60)
2828
private var proxy: Proxy? = null
2929

@@ -70,8 +70,8 @@ class OrbOkHttpClient private constructor() {
7070

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

73-
fun build(): OrbClient {
74-
return OrbClientImpl(
73+
fun build(): OrbClient =
74+
OrbClientImpl(
7575
clientOptions
7676
.httpClient(
7777
OkHttpClient.builder()
@@ -82,6 +82,5 @@ class OrbOkHttpClient private constructor() {
8282
)
8383
.build()
8484
)
85-
}
8685
}
8786
}

orb-java-client-okhttp/src/main/kotlin/com/withorb/api/client/okhttp/OrbOkHttpClientAsync.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class OrbOkHttpClientAsync private constructor() {
2323

2424
private var clientOptions: ClientOptions.Builder = ClientOptions.builder()
2525
private var baseUrl: String = ClientOptions.PRODUCTION_URL
26-
// default timeout for client is 1 minute
26+
// The default timeout for the client is 1 minute.
2727
private var timeout: Duration = Duration.ofSeconds(60)
2828
private var proxy: Proxy? = null
2929

@@ -70,8 +70,8 @@ class OrbOkHttpClientAsync private constructor() {
7070

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

73-
fun build(): OrbClientAsync {
74-
return OrbClientAsyncImpl(
73+
fun build(): OrbClientAsync =
74+
OrbClientAsyncImpl(
7575
clientOptions
7676
.httpClient(
7777
OkHttpClient.builder()
@@ -82,6 +82,5 @@ class OrbOkHttpClientAsync private constructor() {
8282
)
8383
.build()
8484
)
85-
}
8685
}
8786
}

0 commit comments

Comments
 (0)