Skip to content

Commit

Permalink
Merge pull request #12 from clerk/speakeasy-sdk-regen-1719374206
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate
  • Loading branch information
speakeasybot authored Jun 30, 2024
2 parents 6b20e20 + 1b9d5a7 commit 7d76b1d
Show file tree
Hide file tree
Showing 33 changed files with 467 additions and 457 deletions.
10 changes: 5 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ id: 1d22a5a4-8bac-42e3-b164-121fcacf66c9
management:
docChecksum: 93fd7098475aa331fae95503f8934b72
docVersion: v1
speakeasyVersion: 1.315.2
generationVersion: 2.352.0
releaseVersion: 0.1.0
configChecksum: 6e451ccabf6cefd51ca27e6cb6d7a3f0
speakeasyVersion: 1.322.3
generationVersion: 2.354.2
releaseVersion: 0.2.0
configChecksum: 26bde6d457c9155f96d34848a5258894
repoURL: https://github.com/clerk/clerk-sdk-java.git
published: true
features:
java:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.1
core: 3.25.1
core: 3.26.0
deprecations: 2.81.1
examples: 2.81.3
flattening: 2.81.1
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
java:
version: 0.1.0
version: 0.2.0
additionalDependencies: []
additionalPlugins: []
artifactID: backend-api
Expand Down
6 changes: 3 additions & 3 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
speakeasyVersion: 1.315.2
speakeasyVersion: 1.322.3
sources:
clerk-java-sdk:
sourceNamespace: clerk-java-sdk
sourceRevisionDigest: sha256:66ee544a860154e51609265d4d41c3d23487fdc849c6dc7b8b8b2d670680c37c
sourceRevisionDigest: sha256:b7926a5eaa2e16aca0f069b7d62e6350ad1ec5c23a54dc0f9b83e034bdccf601
sourceBlobDigest: sha256:be6a2adf86086a55368c73204dfb84b5ca2f9d8514f771aff33857624a212e56
tags:
- latest
Expand All @@ -11,7 +11,7 @@ targets:
clerk-java:
source: clerk-java-sdk
sourceNamespace: clerk-java-sdk
sourceRevisionDigest: sha256:66ee544a860154e51609265d4d41c3d23487fdc849c6dc7b8b8b2d670680c37c
sourceRevisionDigest: sha256:b7926a5eaa2e16aca0f069b7d62e6350ad1ec5c23a54dc0f9b83e034bdccf601
sourceBlobDigest: sha256:be6a2adf86086a55368c73204dfb84b5ca2f9d8514f771aff33857624a212e56
outLocation: /github/workspace/repo
my-first-target:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ The samples below show how a published SDK artifact is used:

Gradle:
```groovy
implementation 'com.clerk:backend-api:0.1.0'
implementation 'com.clerk:backend-api:0.2.0'
```

Maven:
```xml
<dependency>
<groupId>com.clerk</groupId>
<artifactId>backend-api</artifactId>
<version>0.1.0</version>
<version>0.2.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 @@ -68,4 +68,14 @@ Based on:
### Generated
- [java v0.1.0] .
### Releases
- [Maven Central v0.1.0] https://central.sonatype.com/artifact/com.clerk/backend-api/0.1.0 - .
- [Maven Central v0.1.0] https://central.sonatype.com/artifact/com.clerk/backend-api/0.1.0 - .

## 2024-06-30 00:08:17
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.322.3 (2.354.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v0.2.0] .
### Releases
- [Maven Central v0.2.0] https://central.sonatype.com/artifact/com.clerk/backend-api/0.2.0 - .
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
group = "com.clerk"
version = "0.1.0"
version = "0.2.0"

sourcesJar {
archiveBaseName = "backend-api"
Expand Down Expand Up @@ -98,7 +98,7 @@ publishing {
maven(MavenPublication) {
groupId = 'com.clerk'
artifactId = 'backend-api'
version = '0.1.0'
version = '0.2.0'

from components.java

Expand Down
16 changes: 8 additions & 8 deletions src/main/java/com/clerk/backend_api/Actors.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,26 +89,26 @@ public com.clerk.backend_api.models.operations.CreateActorTokenResponse createTo
HttpRequest _r =
sdkConfiguration.hooks()
.beforeRequest(
new BeforeRequestContextImpl("CreateActorToken", Optional.empty(), sdkConfiguration.securitySource()),
new BeforeRequestContextImpl("CreateActorToken", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
_req.build());
HttpResponse<InputStream> _httpRes;
try {
_httpRes = _client.send(_r);
if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "402", "422", "4XX", "5XX")) {
_httpRes = sdkConfiguration.hooks()
.afterError(
new AfterErrorContextImpl("CreateActorToken", Optional.empty(), sdkConfiguration.securitySource()),
new AfterErrorContextImpl("CreateActorToken", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
Optional.of(_httpRes),
Optional.empty());
} else {
_httpRes = sdkConfiguration.hooks()
.afterSuccess(
new AfterSuccessContextImpl("CreateActorToken", Optional.empty(), sdkConfiguration.securitySource()),
new AfterSuccessContextImpl("CreateActorToken", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
_httpRes);
}
} catch (Exception _e) {
_httpRes = sdkConfiguration.hooks()
.afterError(new AfterErrorContextImpl("CreateActorToken", Optional.empty(), sdkConfiguration.securitySource()),
.afterError(new AfterErrorContextImpl("CreateActorToken", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
Optional.empty(),
Optional.of(_e));
}
Expand Down Expand Up @@ -214,26 +214,26 @@ public com.clerk.backend_api.models.operations.RevokeActorTokenResponse revokeTo
HttpRequest _r =
sdkConfiguration.hooks()
.beforeRequest(
new BeforeRequestContextImpl("RevokeActorToken", Optional.empty(), sdkConfiguration.securitySource()),
new BeforeRequestContextImpl("RevokeActorToken", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
_req.build());
HttpResponse<InputStream> _httpRes;
try {
_httpRes = _client.send(_r);
if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "404", "4XX", "5XX")) {
_httpRes = sdkConfiguration.hooks()
.afterError(
new AfterErrorContextImpl("RevokeActorToken", Optional.empty(), sdkConfiguration.securitySource()),
new AfterErrorContextImpl("RevokeActorToken", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
Optional.of(_httpRes),
Optional.empty());
} else {
_httpRes = sdkConfiguration.hooks()
.afterSuccess(
new AfterSuccessContextImpl("RevokeActorToken", Optional.empty(), sdkConfiguration.securitySource()),
new AfterSuccessContextImpl("RevokeActorToken", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
_httpRes);
}
} catch (Exception _e) {
_httpRes = sdkConfiguration.hooks()
.afterError(new AfterErrorContextImpl("RevokeActorToken", Optional.empty(), sdkConfiguration.securitySource()),
.afterError(new AfterErrorContextImpl("RevokeActorToken", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
Optional.empty(),
Optional.of(_e));
}
Expand Down
24 changes: 12 additions & 12 deletions src/main/java/com/clerk/backend_api/Allowlist.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,26 +71,26 @@ public com.clerk.backend_api.models.operations.ListAllowlistIdentifiersResponse
HttpRequest _r =
sdkConfiguration.hooks()
.beforeRequest(
new BeforeRequestContextImpl("ListAllowlistIdentifiers", Optional.empty(), sdkConfiguration.securitySource()),
new BeforeRequestContextImpl("ListAllowlistIdentifiers", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
_req.build());
HttpResponse<InputStream> _httpRes;
try {
_httpRes = _client.send(_r);
if (Utils.statusCodeMatches(_httpRes.statusCode(), "401", "402", "4XX", "5XX")) {
_httpRes = sdkConfiguration.hooks()
.afterError(
new AfterErrorContextImpl("ListAllowlistIdentifiers", Optional.empty(), sdkConfiguration.securitySource()),
new AfterErrorContextImpl("ListAllowlistIdentifiers", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
Optional.of(_httpRes),
Optional.empty());
} else {
_httpRes = sdkConfiguration.hooks()
.afterSuccess(
new AfterSuccessContextImpl("ListAllowlistIdentifiers", Optional.empty(), sdkConfiguration.securitySource()),
new AfterSuccessContextImpl("ListAllowlistIdentifiers", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
_httpRes);
}
} catch (Exception _e) {
_httpRes = sdkConfiguration.hooks()
.afterError(new AfterErrorContextImpl("ListAllowlistIdentifiers", Optional.empty(), sdkConfiguration.securitySource()),
.afterError(new AfterErrorContextImpl("ListAllowlistIdentifiers", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
Optional.empty(),
Optional.of(_e));
}
Expand Down Expand Up @@ -202,26 +202,26 @@ public com.clerk.backend_api.models.operations.CreateAllowlistIdentifierResponse
HttpRequest _r =
sdkConfiguration.hooks()
.beforeRequest(
new BeforeRequestContextImpl("CreateAllowlistIdentifier", Optional.empty(), sdkConfiguration.securitySource()),
new BeforeRequestContextImpl("CreateAllowlistIdentifier", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
_req.build());
HttpResponse<InputStream> _httpRes;
try {
_httpRes = _client.send(_r);
if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "402", "422", "4XX", "5XX")) {
_httpRes = sdkConfiguration.hooks()
.afterError(
new AfterErrorContextImpl("CreateAllowlistIdentifier", Optional.empty(), sdkConfiguration.securitySource()),
new AfterErrorContextImpl("CreateAllowlistIdentifier", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
Optional.of(_httpRes),
Optional.empty());
} else {
_httpRes = sdkConfiguration.hooks()
.afterSuccess(
new AfterSuccessContextImpl("CreateAllowlistIdentifier", Optional.empty(), sdkConfiguration.securitySource()),
new AfterSuccessContextImpl("CreateAllowlistIdentifier", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
_httpRes);
}
} catch (Exception _e) {
_httpRes = sdkConfiguration.hooks()
.afterError(new AfterErrorContextImpl("CreateAllowlistIdentifier", Optional.empty(), sdkConfiguration.securitySource()),
.afterError(new AfterErrorContextImpl("CreateAllowlistIdentifier", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
Optional.empty(),
Optional.of(_e));
}
Expand Down Expand Up @@ -327,26 +327,26 @@ public com.clerk.backend_api.models.operations.DeleteAllowlistIdentifierResponse
HttpRequest _r =
sdkConfiguration.hooks()
.beforeRequest(
new BeforeRequestContextImpl("DeleteAllowlistIdentifier", Optional.empty(), sdkConfiguration.securitySource()),
new BeforeRequestContextImpl("DeleteAllowlistIdentifier", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
_req.build());
HttpResponse<InputStream> _httpRes;
try {
_httpRes = _client.send(_r);
if (Utils.statusCodeMatches(_httpRes.statusCode(), "402", "404", "4XX", "5XX")) {
_httpRes = sdkConfiguration.hooks()
.afterError(
new AfterErrorContextImpl("DeleteAllowlistIdentifier", Optional.empty(), sdkConfiguration.securitySource()),
new AfterErrorContextImpl("DeleteAllowlistIdentifier", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
Optional.of(_httpRes),
Optional.empty());
} else {
_httpRes = sdkConfiguration.hooks()
.afterSuccess(
new AfterSuccessContextImpl("DeleteAllowlistIdentifier", Optional.empty(), sdkConfiguration.securitySource()),
new AfterSuccessContextImpl("DeleteAllowlistIdentifier", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
_httpRes);
}
} catch (Exception _e) {
_httpRes = sdkConfiguration.hooks()
.afterError(new AfterErrorContextImpl("DeleteAllowlistIdentifier", Optional.empty(), sdkConfiguration.securitySource()),
.afterError(new AfterErrorContextImpl("DeleteAllowlistIdentifier", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
Optional.empty(),
Optional.of(_e));
}
Expand Down
24 changes: 12 additions & 12 deletions src/main/java/com/clerk/backend_api/Blocklist.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,26 +71,26 @@ public com.clerk.backend_api.models.operations.ListBlocklistIdentifiersResponse
HttpRequest _r =
sdkConfiguration.hooks()
.beforeRequest(
new BeforeRequestContextImpl("ListBlocklistIdentifiers", Optional.empty(), sdkConfiguration.securitySource()),
new BeforeRequestContextImpl("ListBlocklistIdentifiers", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
_req.build());
HttpResponse<InputStream> _httpRes;
try {
_httpRes = _client.send(_r);
if (Utils.statusCodeMatches(_httpRes.statusCode(), "401", "402", "4XX", "5XX")) {
_httpRes = sdkConfiguration.hooks()
.afterError(
new AfterErrorContextImpl("ListBlocklistIdentifiers", Optional.empty(), sdkConfiguration.securitySource()),
new AfterErrorContextImpl("ListBlocklistIdentifiers", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
Optional.of(_httpRes),
Optional.empty());
} else {
_httpRes = sdkConfiguration.hooks()
.afterSuccess(
new AfterSuccessContextImpl("ListBlocklistIdentifiers", Optional.empty(), sdkConfiguration.securitySource()),
new AfterSuccessContextImpl("ListBlocklistIdentifiers", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
_httpRes);
}
} catch (Exception _e) {
_httpRes = sdkConfiguration.hooks()
.afterError(new AfterErrorContextImpl("ListBlocklistIdentifiers", Optional.empty(), sdkConfiguration.securitySource()),
.afterError(new AfterErrorContextImpl("ListBlocklistIdentifiers", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
Optional.empty(),
Optional.of(_e));
}
Expand Down Expand Up @@ -202,26 +202,26 @@ public com.clerk.backend_api.models.operations.CreateBlocklistIdentifierResponse
HttpRequest _r =
sdkConfiguration.hooks()
.beforeRequest(
new BeforeRequestContextImpl("CreateBlocklistIdentifier", Optional.empty(), sdkConfiguration.securitySource()),
new BeforeRequestContextImpl("CreateBlocklistIdentifier", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
_req.build());
HttpResponse<InputStream> _httpRes;
try {
_httpRes = _client.send(_r);
if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "402", "422", "4XX", "5XX")) {
_httpRes = sdkConfiguration.hooks()
.afterError(
new AfterErrorContextImpl("CreateBlocklistIdentifier", Optional.empty(), sdkConfiguration.securitySource()),
new AfterErrorContextImpl("CreateBlocklistIdentifier", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
Optional.of(_httpRes),
Optional.empty());
} else {
_httpRes = sdkConfiguration.hooks()
.afterSuccess(
new AfterSuccessContextImpl("CreateBlocklistIdentifier", Optional.empty(), sdkConfiguration.securitySource()),
new AfterSuccessContextImpl("CreateBlocklistIdentifier", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
_httpRes);
}
} catch (Exception _e) {
_httpRes = sdkConfiguration.hooks()
.afterError(new AfterErrorContextImpl("CreateBlocklistIdentifier", Optional.empty(), sdkConfiguration.securitySource()),
.afterError(new AfterErrorContextImpl("CreateBlocklistIdentifier", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
Optional.empty(),
Optional.of(_e));
}
Expand Down Expand Up @@ -327,26 +327,26 @@ public com.clerk.backend_api.models.operations.DeleteBlocklistIdentifierResponse
HttpRequest _r =
sdkConfiguration.hooks()
.beforeRequest(
new BeforeRequestContextImpl("DeleteBlocklistIdentifier", Optional.empty(), sdkConfiguration.securitySource()),
new BeforeRequestContextImpl("DeleteBlocklistIdentifier", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
_req.build());
HttpResponse<InputStream> _httpRes;
try {
_httpRes = _client.send(_r);
if (Utils.statusCodeMatches(_httpRes.statusCode(), "402", "404", "4XX", "5XX")) {
_httpRes = sdkConfiguration.hooks()
.afterError(
new AfterErrorContextImpl("DeleteBlocklistIdentifier", Optional.empty(), sdkConfiguration.securitySource()),
new AfterErrorContextImpl("DeleteBlocklistIdentifier", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
Optional.of(_httpRes),
Optional.empty());
} else {
_httpRes = sdkConfiguration.hooks()
.afterSuccess(
new AfterSuccessContextImpl("DeleteBlocklistIdentifier", Optional.empty(), sdkConfiguration.securitySource()),
new AfterSuccessContextImpl("DeleteBlocklistIdentifier", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
_httpRes);
}
} catch (Exception _e) {
_httpRes = sdkConfiguration.hooks()
.afterError(new AfterErrorContextImpl("DeleteBlocklistIdentifier", Optional.empty(), sdkConfiguration.securitySource()),
.afterError(new AfterErrorContextImpl("DeleteBlocklistIdentifier", Optional.of(java.util.List.of()), sdkConfiguration.securitySource()),
Optional.empty(),
Optional.of(_e));
}
Expand Down
Loading

0 comments on commit 7d76b1d

Please sign in to comment.