From 39aef64c7298e60005460736c1c2900018128dc2 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Fri, 20 Jun 2025 14:38:30 +0000 Subject: [PATCH 1/2] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.567.3 --- .speakeasy/gen.lock | 8 ++++---- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 10 +++++----- README.md | 4 ++-- RELEASES.md | 12 +++++++++++- build.gradle | 2 +- gradle.properties | 2 +- src/main/java/com/gr4vy/sdk/SDKConfiguration.java | 4 ++-- .../com/gr4vy/sdk/models/errors/APIException.java | 8 +++++++- 9 files changed, 34 insertions(+), 18 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 55bf5a9f..d9e0b6bf 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -3,10 +3,10 @@ id: 5bbaa3a9-baa0-471b-ba6a-13fd88e8c119 management: docChecksum: ab8b8ca9248dacf6627d77256fd8d94b docVersion: 1.0.0 - speakeasyVersion: 1.563.1 - generationVersion: 2.629.1 - releaseVersion: 1.0.0-beta.15 - configChecksum: bd4010337728c47e3fa6b1226ea3bcfe + speakeasyVersion: 1.567.3 + generationVersion: 2.632.2 + releaseVersion: 1.0.0 + configChecksum: a94f082260d35e87db6f278f1fb8f257 repoURL: https://github.com/gr4vy/gr4vy-java.git published: true features: diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index ac8e0f06..8969cade 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -18,7 +18,7 @@ generation: oAuth2PasswordEnabled: false sdkHooksConfigAccess: true java: - version: 1.0.0-beta.15 + version: 1.0.0 additionalDependencies: - testImplementation:org.junit.jupiter:junit-jupiter:5.10.0 - implementation:com.auth0:java-jwt:4.5.0 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index efac8160..660c273c 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,4 +1,4 @@ -speakeasyVersion: 1.563.1 +speakeasyVersion: 1.567.3 sources: Gr4vy: sourceNamespace: openapi @@ -9,11 +9,11 @@ sources: - 1.0.0 openapi: sourceNamespace: openapi - sourceRevisionDigest: sha256:0b486e156152805e021d6a9da2dc045582a9d380bbaab5b83012995d35d61573 + sourceRevisionDigest: sha256:2dfa87c24696b900d2f7dc7560406fed474fcda88aa0f5eb923ba4ec90b5197b sourceBlobDigest: sha256:5f3a7d451428b7c636172d3d1e73557d3733bf5240a7ec1d37aa0015d30cccfc tags: - latest - - speakeasy-sdk-regen-1750070689 + - speakeasy-sdk-regen-1750430231 - 1.0.0 targets: gr-4-vy: @@ -26,10 +26,10 @@ targets: java: source: openapi sourceNamespace: openapi - sourceRevisionDigest: sha256:0b486e156152805e021d6a9da2dc045582a9d380bbaab5b83012995d35d61573 + sourceRevisionDigest: sha256:2dfa87c24696b900d2f7dc7560406fed474fcda88aa0f5eb923ba4ec90b5197b sourceBlobDigest: sha256:5f3a7d451428b7c636172d3d1e73557d3733bf5240a7ec1d37aa0015d30cccfc codeSamplesNamespace: openapi-java-code-samples - codeSamplesRevisionDigest: sha256:87567d6ea714c935bd35b0543378e6948c17f366e8915ca7932bf8a93539bc73 + codeSamplesRevisionDigest: sha256:82bd9358ffa1e6f49dc7b98cf1255c78aa58c5dea93c6382000090656216ad33 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 1294c44d..4ee55199 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ The samples below show how a published SDK artifact is used: Gradle: ```groovy -implementation 'com.gr4vy:sdk:1.0.0-beta.15' +implementation 'com.gr4vy:sdk:1.0.0' ``` Maven: @@ -68,7 +68,7 @@ Maven: com.gr4vy sdk - 1.0.0-beta.15 + 1.0.0 ``` diff --git a/RELEASES.md b/RELEASES.md index 95d08dee..56575ccb 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -138,4 +138,14 @@ Based on: ### Generated - [java v1.0.0-beta.15] . ### Releases -- [Maven Central v1.0.0-beta.15] https://central.sonatype.com/artifact/com.gr4vy/sdk/1.0.0-beta.15 - . \ No newline at end of file +- [Maven Central v1.0.0-beta.15] https://central.sonatype.com/artifact/com.gr4vy/sdk/1.0.0-beta.15 - . + +## 2025-06-20 14:36:53 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.567.3 (2.632.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v1.0.0] . +### Releases +- [Maven Central v1.0.0] https://central.sonatype.com/artifact/com.gr4vy/sdk/1.0.0 - . \ No newline at end of file diff --git a/build.gradle b/build.gradle index 63837b5c..79aa0c0a 100644 --- a/build.gradle +++ b/build.gradle @@ -103,7 +103,7 @@ publishing { // https://github.com/gradle/gradle/issues/18619 groupId = "com.gr4vy" artifactId = "sdk" - version = "1.0.0-beta.15" + version = "1.0.0" from components.java diff --git a/gradle.properties b/gradle.properties index b5bde595..3854d4f3 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ groupId=com.gr4vy artifactId=sdk -version=1.0.0-beta.15 \ No newline at end of file +version=1.0.0 \ No newline at end of file diff --git a/src/main/java/com/gr4vy/sdk/SDKConfiguration.java b/src/main/java/com/gr4vy/sdk/SDKConfiguration.java index e3a49e6d..09b203f9 100644 --- a/src/main/java/com/gr4vy/sdk/SDKConfiguration.java +++ b/src/main/java/com/gr4vy/sdk/SDKConfiguration.java @@ -19,8 +19,8 @@ public class SDKConfiguration { private static final String LANGUAGE = "java"; public static final String OPENAPI_DOC_VERSION = "1.0.0"; - public static final String SDK_VERSION = "1.0.0-beta.15"; - public static final String GEN_VERSION = "2.629.1"; + public static final String SDK_VERSION = "1.0.0"; + public static final String GEN_VERSION = "2.632.2"; private static final String BASE_PACKAGE = "com.gr4vy.sdk"; public static final String USER_AGENT = String.format("speakeasy-sdk/%s %s %s %s %s", diff --git a/src/main/java/com/gr4vy/sdk/models/errors/APIException.java b/src/main/java/com/gr4vy/sdk/models/errors/APIException.java index db193b7a..582f32f7 100644 --- a/src/main/java/com/gr4vy/sdk/models/errors/APIException.java +++ b/src/main/java/com/gr4vy/sdk/models/errors/APIException.java @@ -5,6 +5,7 @@ import java.net.http.HttpResponse; import java.io.InputStream; +import java.nio.charset.StandardCharsets; import com.gr4vy.sdk.utils.Utils; /** @@ -23,6 +24,7 @@ public APIException( int code, String message, byte[] body) { + super(message); Utils.checkNotNull(rawResponse, "rawResponse"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(body, "body"); @@ -81,4 +83,8 @@ public String message() { public byte[] body() { return this.body; } -} + + public String bodyAsString() { + return new String(body(), StandardCharsets.UTF_8); + } +} \ No newline at end of file From e651ca6ea449c97bf6ad00e8da6b1200f73d0a25 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Fri, 20 Jun 2025 14:38:44 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow