Skip to content

Commit

Permalink
Merge pull request #10 from clerk/speakeasy-sdk-regen-1718842057
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate
  • Loading branch information
speakeasybot authored Jun 25, 2024
2 parents 86ae1bf + 2df24a4 commit d9d63e0
Show file tree
Hide file tree
Showing 37 changed files with 239 additions and 210 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.308.1
generationVersion: 2.342.6
releaseVersion: 0.0.7
configChecksum: 9b28dbcdf23f69543c2d231d6602b4ad
speakeasyVersion: 1.315.2
generationVersion: 2.352.0
releaseVersion: 0.1.0
configChecksum: 6e451ccabf6cefd51ca27e6cb6d7a3f0
repoURL: https://github.com/clerk/clerk-sdk-java.git
published: true
features:
java:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.1
core: 3.23.2
core: 3.25.1
deprecations: 2.81.1
examples: 2.81.3
flattening: 2.81.1
Expand Down
6 changes: 5 additions & 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.0.7
version: 0.1.0
additionalDependencies: []
additionalPlugins: []
artifactID: backend-api
Expand All @@ -32,6 +32,10 @@ java:
shared: models/components
webhooks: models/webhooks
inputModelSuffix: input
license:
name: The MIT License (MIT)
shortName: MIT
url: https://mit-license.org/
maxMethodParams: 4
outputModelSuffix: output
projectName: api
Expand Down
12 changes: 9 additions & 3 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
speakeasyVersion: 1.308.1
speakeasyVersion: 1.315.2
sources:
clerk-java-sdk:
sourceNamespace: clerk-java-sdk
sourceRevisionDigest: sha256:5e10a06ed81708645c450c8bbac2ac9a99d115ea4929af0d91ecb2f6419d1500
sourceRevisionDigest: sha256:66ee544a860154e51609265d4d41c3d23487fdc849c6dc7b8b8b2d670680c37c
sourceBlobDigest: sha256:be6a2adf86086a55368c73204dfb84b5ca2f9d8514f771aff33857624a212e56
tags:
- latest
- main
targets:
clerk-java:
source: clerk-java-sdk
sourceNamespace: clerk-java-sdk
sourceRevisionDigest: sha256:66ee544a860154e51609265d4d41c3d23487fdc849c6dc7b8b8b2d670680c37c
sourceBlobDigest: sha256:be6a2adf86086a55368c73204dfb84b5ca2f9d8514f771aff33857624a212e56
outLocation: /github/workspace/repo
my-first-target:
source: clerk-java-sdk
sourceNamespace: clerk-java-sdk
Expand All @@ -24,7 +30,7 @@ workflow:
registry:
location: registry.speakeasyapi.dev/clerk/clerk/clerk-java-sdk
targets:
my-first-target:
clerk-java:
target: java
source: clerk-java-sdk
publish:
Expand Down
74 changes: 24 additions & 50 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.0.7'
implementation 'com.clerk:backend-api:0.1.0'
```

Maven:
```xml
<dependency>
<groupId>com.clerk</groupId>
<artifactId>backend-api</artifactId>
<version>0.0.7</version>
<version>0.1.0</version>
</dependency>
```

Expand Down Expand Up @@ -76,32 +76,22 @@ public class Application {
.bearerAuth("<YOUR_BEARER_TOKEN_HERE>")
.build();

GetClientListResponse res = sdk.clients().list()
sdk.clients().list()
.limit(10L)
.offset(0L)
.call();
.callAsStreamUnwrapped()
.forEach(item -> {
// handle item
});

while (true) {
if (res.clientList().isPresent()) {
// handle response
Optional<GetClientListResponse> nextRes = res.next();
if (nextRes.isPresent()) {
res = nextRes.get();
} else {
break;
}
}
}
} catch (com.clerk.backend_api.models.errors.ClerkErrors e) {
// handle exception
throw e;
} catch (com.clerk.backend_api.models.errors.SDKError e) {
// handle exception
throw e;
} catch (Exception e) {
// handle exception
throw e;
}

}
}
```
Expand Down Expand Up @@ -158,6 +148,7 @@ public class Application {
// handle exception
throw e;
}

}
}
```
Expand Down Expand Up @@ -388,32 +379,22 @@ public class Application {
.bearerAuth("<YOUR_BEARER_TOKEN_HERE>")
.build();

GetClientListResponse res = sdk.clients().list()
sdk.clients().list()
.limit(10L)
.offset(0L)
.call();
.callAsStreamUnwrapped()
.forEach(item -> {
// handle item
});

while (true) {
if (res.clientList().isPresent()) {
// handle response
Optional<GetClientListResponse> nextRes = res.next();
if (nextRes.isPresent()) {
res = nextRes.get();
} else {
break;
}
}
}
} catch (com.clerk.backend_api.models.errors.ClerkErrors e) {
// handle exception
throw e;
} catch (com.clerk.backend_api.models.errors.SDKError e) {
// handle exception
throw e;
} catch (Exception e) {
// handle exception
throw e;
}

}
}
```
Expand Down Expand Up @@ -456,32 +437,22 @@ public class Application {
.bearerAuth("<YOUR_BEARER_TOKEN_HERE>")
.build();

GetClientListResponse res = sdk.clients().list()
sdk.clients().list()
.limit(10L)
.offset(0L)
.call();
.callAsStreamUnwrapped()
.forEach(item -> {
// handle item
});

while (true) {
if (res.clientList().isPresent()) {
// handle response
Optional<GetClientListResponse> nextRes = res.next();
if (nextRes.isPresent()) {
res = nextRes.get();
} else {
break;
}
}
}
} catch (com.clerk.backend_api.models.errors.ClerkErrors e) {
// handle exception
throw e;
} catch (com.clerk.backend_api.models.errors.SDKError e) {
// handle exception
throw e;
} catch (Exception e) {
// handle exception
throw e;
}

}
}
```
Expand Down Expand Up @@ -537,6 +508,7 @@ public class Application {
// handle exception
throw e;
}

}
}
```
Expand Down Expand Up @@ -582,6 +554,7 @@ public class Application {
// handle exception
throw e;
}

}
}
```
Expand Down Expand Up @@ -636,6 +609,7 @@ public class Application {
// handle exception
throw e;
}

}
}
```
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,14 @@ Based on:
### Generated
- [java v0.0.7] .
### Releases
- [Maven Central v0.0.7] https://central.sonatype.com/artifact/com.clerk/backend-api/0.0.7 - .
- [Maven Central v0.0.7] https://central.sonatype.com/artifact/com.clerk/backend-api/0.0.7 - .

## 2024-06-25 00:07:26
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.315.2 (2.352.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v0.1.0] .
### Releases
- [Maven Central v0.1.0] https://central.sonatype.com/artifact/com.clerk/backend-api/0.1.0 - .
23 changes: 7 additions & 16 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,32 +24,22 @@ public class Application {
.bearerAuth("<YOUR_BEARER_TOKEN_HERE>")
.build();

GetClientListResponse res = sdk.clients().list()
sdk.clients().list()
.limit(10L)
.offset(0L)
.call();
.callAsStreamUnwrapped()
.forEach(item -> {
// handle item
});

while (true) {
if (res.clientList().isPresent()) {
// handle response
Optional<GetClientListResponse> nextRes = res.next();
if (nextRes.isPresent()) {
res = nextRes.get();
} else {
break;
}
}
}
} catch (com.clerk.backend_api.models.errors.ClerkErrors e) {
// handle exception
throw e;
} catch (com.clerk.backend_api.models.errors.SDKError e) {
// handle exception
throw e;
} catch (Exception e) {
// handle exception
throw e;
}

}
}
```
Expand Down Expand Up @@ -106,6 +96,7 @@ public class Application {
// handle exception
throw e;
}

}
}
```
Expand Down
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.0.7"
version = "0.1.0"

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

from components.java

Expand Down
2 changes: 2 additions & 0 deletions docs/sdks/actors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public class Application {
// handle exception
throw e;
}

}
}
```
Expand Down Expand Up @@ -130,6 +131,7 @@ public class Application {
// handle exception
throw e;
}

}
}
```
Expand Down
3 changes: 3 additions & 0 deletions docs/sdks/allowlist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public class Application {
// handle exception
throw e;
}

}
}
```
Expand Down Expand Up @@ -121,6 +122,7 @@ public class Application {
// handle exception
throw e;
}

}
}
```
Expand Down Expand Up @@ -190,6 +192,7 @@ public class Application {
// handle exception
throw e;
}

}
}
```
Expand Down
3 changes: 3 additions & 0 deletions docs/sdks/blocklist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public class Application {
// handle exception
throw e;
}

}
}
```
Expand Down Expand Up @@ -121,6 +122,7 @@ public class Application {
// handle exception
throw e;
}

}
}
```
Expand Down Expand Up @@ -190,6 +192,7 @@ public class Application {
// handle exception
throw e;
}

}
}
```
Expand Down
Loading

0 comments on commit d9d63e0

Please sign in to comment.