Skip to content

chore: 🐝 Update SDK - Generate SDK 1.0.0 #83

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 20, 2025
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
8 changes: 4 additions & 4 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
speakeasyVersion: 1.563.1
speakeasyVersion: 1.567.3
sources:
Gr4vy:
sourceNamespace: openapi
Expand All @@ -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:
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ 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:
```xml
<dependency>
<groupId>com.gr4vy</groupId>
<artifactId>sdk</artifactId>
<version>1.0.0-beta.15</version>
<version>1.0.0</version>
</dependency>
```

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 - .
- [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 - .
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
groupId=com.gr4vy
artifactId=sdk
version=1.0.0-beta.15
version=1.0.0
4 changes: 2 additions & 2 deletions src/main/java/com/gr4vy/sdk/SDKConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 7 additions & 1 deletion src/main/java/com/gr4vy/sdk/models/errors/APIException.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import java.net.http.HttpResponse;
import java.io.InputStream;
import java.nio.charset.StandardCharsets;
import com.gr4vy.sdk.utils.Utils;

/**
Expand All @@ -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");
Expand Down Expand Up @@ -81,4 +83,8 @@ public String message() {
public byte[] body() {
return this.body;
}
}

public String bodyAsString() {
return new String(body(), StandardCharsets.UTF_8);
}
}