Skip to content

Commit

Permalink
Merge pull request #26 from clerk/speakeasy-sdk-regen-1723562375
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.3.0-beta.2
  • Loading branch information
speakeasybot authored Aug 13, 2024
2 parents f10fa0e + e68c494 commit a363b5f
Show file tree
Hide file tree
Showing 874 changed files with 15,592 additions and 15,770 deletions.
16 changes: 8 additions & 8 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
lockVersion: 2.0.0
id: 1d22a5a4-8bac-42e3-b164-121fcacf66c9
management:
docChecksum: 8a8b44e8346bd0bbfc9f9cf4d44c5332
docChecksum: f6e25376d224dc39635a7f5eed081de2
docVersion: v1
speakeasyVersion: 1.355.0
generationVersion: 2.387.0
releaseVersion: 0.2.0-beta.2
configChecksum: 57f8a85077c5d6ca82c3da201d722346
speakeasyVersion: 1.363.1
generationVersion: 2.396.0
releaseVersion: 0.3.0-beta.2
configChecksum: 80434d26185e1d667e08dee8aa5c755a
repoURL: https://github.com/clerk/clerk-sdk-java.git
published: true
features:
java:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.1
core: 3.27.0
core: 3.28.1
deprecations: 2.81.1
examples: 2.81.3
flattening: 2.81.1
globalSecurity: 2.82.6
globalSecurity: 2.82.7
globalSecurityCallbacks: 0.1.0
globalSecurityFlattening: 0.1.0
globalServerURLs: 2.82.1
Expand All @@ -26,7 +26,7 @@ features:
nullables: 0.1.0
pagination: 0.2.2
sdkHooks: 0.1.0
unions: 0.0.4
unions: 0.0.5
generatedFiles:
- src/main/java/com/clerk/backend_api/SecuritySource.java
- src/main/java/com/clerk/backend_api/SDKConfiguration.java
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
speakeasyVersion: 1.355.0
speakeasyVersion: 1.363.1
sources:
clerk-java-sdk:
sourceNamespace: clerk-java-sdk
sourceRevisionDigest: sha256:7ac60d05f033a6b76be256a2f662720f9fe030f96984c4f42443865b8ba37128
sourceBlobDigest: sha256:169753eaf7b084082ad40ccdf4b11222d46b71259ed6c7eb809dbeb9089462c9
sourceRevisionDigest: sha256:a1d17471885280f9bc34dcc58e923357e6497e706b83ee918cdc2078413a95f4
sourceBlobDigest: sha256:709394a2b429d8bae8f4277a60d93a25c65c9a88cecd5f073ee1b576fd8129f1
tags:
- latest
- main
targets:
clerk-java:
source: clerk-java-sdk
sourceNamespace: clerk-java-sdk
sourceRevisionDigest: sha256:7ac60d05f033a6b76be256a2f662720f9fe030f96984c4f42443865b8ba37128
sourceBlobDigest: sha256:169753eaf7b084082ad40ccdf4b11222d46b71259ed6c7eb809dbeb9089462c9
sourceRevisionDigest: sha256:a1d17471885280f9bc34dcc58e923357e6497e706b83ee918cdc2078413a95f4
sourceBlobDigest: sha256:709394a2b429d8bae8f4277a60d93a25c65c9a88cecd5f073ee1b576fd8129f1
outLocation: /github/workspace/repo
my-first-target:
source: clerk-java-sdk
Expand Down
110 changes: 25 additions & 85 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.2.0-beta.2'
implementation 'com.clerk:backend-api:0.3.0-beta.2'
```

Maven:
```xml
<dependency>
<groupId>com.clerk</groupId>
<artifactId>backend-api</artifactId>
<version>0.2.0-beta.2</version>
<version>0.3.0-beta.2</version>
</dependency>
```

Expand Down Expand Up @@ -55,17 +55,7 @@ gradlew.bat publishToMavenLocal -Pskip.signing
package hello.world;

import com.clerk.backend_api.Clerk;
import com.clerk.backend_api.models.components.*;
import com.clerk.backend_api.models.operations.*;
import com.clerk.backend_api.utils.EventStream;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDate;
import java.time.OffsetDateTime;
import java.util.Optional;
import org.openapitools.jackson.nullable.JsonNullable;
import static java.util.Map.entry;
import java.lang.Exception;

public class Application {

Expand Down Expand Up @@ -103,17 +93,11 @@ This example shows how to create an actor token that can be used to impersonate
package hello.world;

import com.clerk.backend_api.Clerk;
import com.clerk.backend_api.models.components.*;
import com.clerk.backend_api.models.operations.*;
import com.clerk.backend_api.utils.EventStream;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDate;
import java.time.OffsetDateTime;
import java.util.Optional;
import org.openapitools.jackson.nullable.JsonNullable;
import static java.util.Map.entry;
import com.clerk.backend_api.models.errors.SDKError;
import com.clerk.backend_api.models.operations.CreateActorTokenRequestBody;
import com.clerk.backend_api.models.operations.CreateActorTokenResponse;
import java.lang.Exception;
import java.util.Map;

public class Application {

Expand All @@ -125,8 +109,8 @@ public class Application {

CreateActorTokenRequestBody req = CreateActorTokenRequestBody.builder()
.userId("<value>")
.actor(java.util.Map.ofEntries(
entry("sub", "user_2OEpKhcCN1Lat9NQ0G6puh7q5Rb")))
.actor(Map.ofEntries(
Map.entry("sub", "user_2OEpKhcCN1Lat9NQ0G6puh7q5Rb")))
.build();

CreateActorTokenResponse res = sdk.actors().createToken()
Expand All @@ -139,7 +123,7 @@ public class Application {
} catch (com.clerk.backend_api.models.errors.ClerkErrors e) {
// handle exception
throw e;
} catch (com.clerk.backend_api.models.errors.SDKError e) {
} catch (SDKError e) {
// handle exception
throw e;
} catch (Exception e) {
Expand Down Expand Up @@ -356,17 +340,7 @@ Here's an example of one such pagination call:
package hello.world;

import com.clerk.backend_api.Clerk;
import com.clerk.backend_api.models.components.*;
import com.clerk.backend_api.models.operations.*;
import com.clerk.backend_api.utils.EventStream;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDate;
import java.time.OffsetDateTime;
import java.util.Optional;
import org.openapitools.jackson.nullable.JsonNullable;
import static java.util.Map.entry;
import java.lang.Exception;

public class Application {

Expand Down Expand Up @@ -413,17 +387,7 @@ Handling errors in this SDK should largely match your expectations. All operati
package hello.world;

import com.clerk.backend_api.Clerk;
import com.clerk.backend_api.models.components.*;
import com.clerk.backend_api.models.operations.*;
import com.clerk.backend_api.utils.EventStream;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDate;
import java.time.OffsetDateTime;
import java.util.Optional;
import org.openapitools.jackson.nullable.JsonNullable;
import static java.util.Map.entry;
import java.lang.Exception;

public class Application {

Expand Down Expand Up @@ -471,17 +435,9 @@ You can override the default server globally by passing a server index to the `s
package hello.world;

import com.clerk.backend_api.Clerk;
import com.clerk.backend_api.models.components.*;
import com.clerk.backend_api.models.operations.*;
import com.clerk.backend_api.utils.EventStream;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDate;
import java.time.OffsetDateTime;
import java.util.Optional;
import org.openapitools.jackson.nullable.JsonNullable;
import static java.util.Map.entry;
import com.clerk.backend_api.models.errors.SDKError;
import com.clerk.backend_api.models.operations.GetPublicInterstitialResponse;
import java.lang.Exception;

public class Application {

Expand All @@ -497,7 +453,7 @@ public class Application {
.call();

// handle response
} catch (com.clerk.backend_api.models.errors.SDKError e) {
} catch (SDKError e) {
// handle exception
throw e;
} catch (Exception e) {
Expand All @@ -517,17 +473,9 @@ The default server can also be overridden globally by passing a URL to the `serv
package hello.world;

import com.clerk.backend_api.Clerk;
import com.clerk.backend_api.models.components.*;
import com.clerk.backend_api.models.operations.*;
import com.clerk.backend_api.utils.EventStream;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDate;
import java.time.OffsetDateTime;
import java.util.Optional;
import org.openapitools.jackson.nullable.JsonNullable;
import static java.util.Map.entry;
import com.clerk.backend_api.models.errors.SDKError;
import com.clerk.backend_api.models.operations.GetPublicInterstitialResponse;
import java.lang.Exception;

public class Application {

Expand All @@ -543,7 +491,7 @@ public class Application {
.call();

// handle response
} catch (com.clerk.backend_api.models.errors.SDKError e) {
} catch (SDKError e) {
// handle exception
throw e;
} catch (Exception e) {
Expand Down Expand Up @@ -572,17 +520,9 @@ To authenticate with the API the `bearerAuth` parameter must be set when initial
package hello.world;

import com.clerk.backend_api.Clerk;
import com.clerk.backend_api.models.components.*;
import com.clerk.backend_api.models.operations.*;
import com.clerk.backend_api.utils.EventStream;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDate;
import java.time.OffsetDateTime;
import java.util.Optional;
import org.openapitools.jackson.nullable.JsonNullable;
import static java.util.Map.entry;
import com.clerk.backend_api.models.errors.SDKError;
import com.clerk.backend_api.models.operations.GetPublicInterstitialResponse;
import java.lang.Exception;

public class Application {

Expand All @@ -598,7 +538,7 @@ public class Application {
.call();

// handle response
} catch (com.clerk.backend_api.models.errors.SDKError e) {
} catch (SDKError e) {
// handle exception
throw e;
} catch (Exception e) {
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,14 @@ Based on:
### Generated
- [java v0.2.0-beta.2] .
### Releases
- [Maven Central v0.2.0-beta.2] https://central.sonatype.com/artifact/com.clerk/backend-api/0.2.0-beta.2 - .
- [Maven Central v0.2.0-beta.2] https://central.sonatype.com/artifact/com.clerk/backend-api/0.2.0-beta.2 - .

## 2024-08-13 15:19:32
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.363.1 (2.396.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v0.3.0-beta.2] .
### Releases
- [Maven Central v0.3.0-beta.2] https://central.sonatype.com/artifact/com.clerk/backend-api/0.3.0-beta.2 - .
34 changes: 9 additions & 25 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,7 @@
package hello.world;

import com.clerk.backend_api.Clerk;
import com.clerk.backend_api.models.components.*;
import com.clerk.backend_api.models.operations.*;
import com.clerk.backend_api.utils.EventStream;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDate;
import java.time.OffsetDateTime;
import java.util.Optional;
import org.openapitools.jackson.nullable.JsonNullable;
import static java.util.Map.entry;
import java.lang.Exception;

public class Application {

Expand Down Expand Up @@ -51,17 +41,11 @@ This example shows how to create an actor token that can be used to impersonate
package hello.world;

import com.clerk.backend_api.Clerk;
import com.clerk.backend_api.models.components.*;
import com.clerk.backend_api.models.operations.*;
import com.clerk.backend_api.utils.EventStream;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDate;
import java.time.OffsetDateTime;
import java.util.Optional;
import org.openapitools.jackson.nullable.JsonNullable;
import static java.util.Map.entry;
import com.clerk.backend_api.models.errors.SDKError;
import com.clerk.backend_api.models.operations.CreateActorTokenRequestBody;
import com.clerk.backend_api.models.operations.CreateActorTokenResponse;
import java.lang.Exception;
import java.util.Map;

public class Application {

Expand All @@ -73,8 +57,8 @@ public class Application {

CreateActorTokenRequestBody req = CreateActorTokenRequestBody.builder()
.userId("<value>")
.actor(java.util.Map.ofEntries(
entry("sub", "user_2OEpKhcCN1Lat9NQ0G6puh7q5Rb")))
.actor(Map.ofEntries(
Map.entry("sub", "user_2OEpKhcCN1Lat9NQ0G6puh7q5Rb")))
.build();

CreateActorTokenResponse res = sdk.actors().createToken()
Expand All @@ -87,7 +71,7 @@ public class Application {
} catch (com.clerk.backend_api.models.errors.ClerkErrors e) {
// handle exception
throw e;
} catch (com.clerk.backend_api.models.errors.SDKError e) {
} catch (SDKError e) {
// handle exception
throw e;
} catch (Exception e) {
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
group = "com.clerk"
version = "0.2.0-beta.2"
version = "0.3.0-beta.2"

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

from components.java

Expand Down
Loading

0 comments on commit a363b5f

Please sign in to comment.