Skip to content

Commit 6472147

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.581.0
1 parent 8fc6114 commit 6472147

851 files changed

Lines changed: 44702 additions & 34013 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.speakeasy/gen.lock

Lines changed: 185 additions & 7 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@ generation:
1616
auth:
1717
oAuth2ClientCredentialsEnabled: true
1818
oAuth2PasswordEnabled: false
19+
tests:
20+
generateTests: true
21+
generateNewTests: false
22+
skipResponseBodyAssertions: false
1923
java:
20-
version: 3.0.3
24+
version: 3.1.0
2125
additionalDependencies: []
2226
additionalPlugins: []
2327
artifactID: backend-api
@@ -27,6 +31,7 @@ java:
2731
companyName: My Company
2832
companyURL: www.mycompany.com
2933
defaultErrorName: SDKError
34+
enableCustomCodeRegions: false
3035
flattenGlobalSecurity: true
3136
githubURL: github.com/owner/repo
3237
groupID: com.clerk
@@ -39,11 +44,13 @@ java:
3944
shared: models/components
4045
webhooks: models/webhooks
4146
inputModelSuffix: input
47+
languageVersion: 11
4248
license:
4349
name: The MIT License (MIT)
4450
shortName: MIT
4551
url: https://mit-license.org/
4652
maxMethodParams: 4
53+
nullFriendlyParameters: false
4754
outputModelSuffix: output
4855
projectName: api
4956
templateVersion: v2

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.557.1
1+
speakeasyVersion: 1.581.0
22
sources:
33
clerk-java-sdk:
44
sourceNamespace: clerk-java-sdk
5-
sourceRevisionDigest: sha256:9a7f600b8eaae8695f69a25e152d156a7a06c7596a669524fd69d0fb7898dcc1
6-
sourceBlobDigest: sha256:7d364a0a7b05961ccc0d3990c9ca939ff08a410b6b6855ea60a6041c9ef4bfbf
5+
sourceRevisionDigest: sha256:a0369948fffa0b0b8b15040dde660eaf6539e8432246114045a245e3c67d7d23
6+
sourceBlobDigest: sha256:8f0e9fa692ea41f67ecc4d340d53a1db022a6e949c11bb0f73e333b910400bf1
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1749475071
9+
- speakeasy-sdk-regen-1752252043
1010
- "2025-03-12"
1111
targets:
1212
clerk-java:
1313
source: clerk-java-sdk
1414
sourceNamespace: clerk-java-sdk
15-
sourceRevisionDigest: sha256:9a7f600b8eaae8695f69a25e152d156a7a06c7596a669524fd69d0fb7898dcc1
16-
sourceBlobDigest: sha256:7d364a0a7b05961ccc0d3990c9ca939ff08a410b6b6855ea60a6041c9ef4bfbf
15+
sourceRevisionDigest: sha256:a0369948fffa0b0b8b15040dde660eaf6539e8432246114045a245e3c67d7d23
16+
sourceBlobDigest: sha256:8f0e9fa692ea41f67ecc4d340d53a1db022a6e949c11bb0f73e333b910400bf1
1717
codeSamplesNamespace: clerk-java-sdk-code-samples
18-
codeSamplesRevisionDigest: sha256:592bd5abfdbbb3b973a6ceced9e3aa6df96b009905191ff187a3df7fd8c22d43
18+
codeSamplesRevisionDigest: sha256:3576a97da095b39c8caa9d7dacc5159d9fdfb8c8e51a3bf5c38eefebe98bc077
1919
my-first-target:
2020
source: clerk-java-sdk
2121
sourceNamespace: clerk-java-sdk

README.md

Lines changed: 36 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ More information about the API can be found at https://clerk.com/docs
3434
* [Retries](#retries)
3535
* [Error Handling](#error-handling)
3636
* [Server Selection](#server-selection)
37+
* [Debugging](#debugging)
3738
* [Development](#development)
3839
* [Contributions](#contributions)
3940

@@ -50,15 +51,15 @@ The samples below show how a published SDK artifact is used:
5051

5152
Gradle:
5253
```groovy
53-
implementation 'com.clerk:backend-api:3.0.3'
54+
implementation 'com.clerk:backend-api:3.1.0'
5455
```
5556

5657
Maven:
5758
```xml
5859
<dependency>
5960
<groupId>com.clerk</groupId>
6061
<artifactId>backend-api</artifactId>
61-
<version>3.0.3</version>
62+
<version>3.1.0</version>
6263
</dependency>
6364
```
6465

@@ -75,29 +76,6 @@ On Windows:
7576
```bash
7677
gradlew.bat publishToMavenLocal -Pskip.signing
7778
```
78-
79-
### Logging
80-
A logging framework/facade has not yet been adopted but is under consideration.
81-
82-
For request and response logging (especially json bodies) use:
83-
```java
84-
SpeakeasyHTTPClient.setDebugLogging(true); // experimental API only (may change without warning)
85-
```
86-
Example output:
87-
```
88-
Sending request: http://localhost:35123/bearer#global GET
89-
Request headers: {Accept=[application/json], Authorization=[******], Client-Level-Header=[added by client], Idempotency-Key=[some-key], x-speakeasy-user-agent=[speakeasy-sdk/java 0.0.1 internal 0.1.0 org.openapis.openapi]}
90-
Received response: (GET http://localhost:35123/bearer#global) 200
91-
Response headers: {access-control-allow-credentials=[true], access-control-allow-origin=[*], connection=[keep-alive], content-length=[50], content-type=[application/json], date=[Wed, 09 Apr 2025 01:43:29 GMT], server=[gunicorn/19.9.0]}
92-
Response body:
93-
{
94-
"authenticated": true,
95-
"token": "global"
96-
}
97-
```
98-
WARNING: This should only used for temporary debugging purposes. Leaving this option on in a production system could expose credentials/secrets in logs. <i>Authorization</i> headers are redacted by default and there is the ability to specify redacted header names via `SpeakeasyHTTPClient.setRedactedHeaders`.
99-
100-
Another option is to set the System property `-Djdk.httpclient.HttpClient.log=all`. However, this second option does not log bodies.
10179
<!-- End SDK Installation [installation] -->
10280

10381
<!-- Start SDK Example Usage [usage] -->
@@ -152,7 +130,7 @@ public class Application {
152130
public static void main(String[] args) throws Exception {
153131

154132
Clerk sdk = Clerk.builder()
155-
.bearerAuth("<YOUR_BEARER_TOKEN_HERE>")
133+
.bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
156134
.build();
157135

158136
GetPublicInterstitialResponse res = sdk.miscellaneous().getPublicInterstitial()
@@ -553,7 +531,7 @@ public class Application {
553531
public static void main(String[] args) throws ClerkErrors, Exception {
554532

555533
Clerk sdk = Clerk.builder()
556-
.bearerAuth("<YOUR_BEARER_TOKEN_HERE>")
534+
.bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
557535
.build();
558536

559537
VerifyClientResponse res = sdk.clients().verify()
@@ -598,6 +576,37 @@ public class Application {
598576
<!-- End Server Selection [server] -->
599577

600578

579+
<!-- Start Debugging [debug] -->
580+
## Debugging
581+
582+
### Debug
583+
You can setup your SDK to emit debug logs for SDK requests and responses.
584+
585+
For request and response logging (especially json bodies), call `enableHTTPDebugLogging(boolean)` on the SDK builder like so:
586+
```java
587+
SDK.builder()
588+
.enableHTTPDebugLogging(true)
589+
.build();
590+
```
591+
Example output:
592+
```
593+
Sending request: http://localhost:35123/bearer#global GET
594+
Request headers: {Accept=[application/json], Authorization=[******], Client-Level-Header=[added by client], Idempotency-Key=[some-key], x-speakeasy-user-agent=[speakeasy-sdk/java 0.0.1 internal 0.1.0 org.openapis.openapi]}
595+
Received response: (GET http://localhost:35123/bearer#global) 200
596+
Response headers: {access-control-allow-credentials=[true], access-control-allow-origin=[*], connection=[keep-alive], content-length=[50], content-type=[application/json], date=[Wed, 09 Apr 2025 01:43:29 GMT], server=[gunicorn/19.9.0]}
597+
Response body:
598+
{
599+
"authenticated": true,
600+
"token": "global"
601+
}
602+
```
603+
__WARNING__: This should only used for temporary debugging purposes. Leaving this option on in a production system could expose credentials/secrets in logs. <i>Authorization</i> headers are redacted by default and there is the ability to specify redacted header names via `SpeakeasyHTTPClient.setRedactedHeaders`.
604+
605+
__NOTE__: This is a convenience method that calls `HTTPClient.enableDebugLogging()`. The `SpeakeasyHTTPClient` honors this setting. If you are using a custom HTTP client, it is up to the custom client to honor this setting.
606+
607+
Another option is to set the System property `-Djdk.httpclient.HttpClient.log=all`. However, this second option does not log bodies.
608+
<!-- End Debugging [debug] -->
609+
601610
<!-- Placeholder for Future Speakeasy SDK Sections -->
602611

603612
# Development

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,4 +328,14 @@ Based on:
328328
### Generated
329329
- [java v3.0.3] .
330330
### Releases
331-
- [Maven Central v3.0.3] https://central.sonatype.com/artifact/com.clerk/backend-api/3.0.3 - .
331+
- [Maven Central v3.0.3] https://central.sonatype.com/artifact/com.clerk/backend-api/3.0.3 - .
332+
333+
## 2025-07-11 16:40:26
334+
### Changes
335+
Based on:
336+
- OpenAPI Doc
337+
- Speakeasy CLI 1.581.0 (2.656.5) https://github.com/speakeasy-api/speakeasy
338+
### Generated
339+
- [java v3.1.0] .
340+
### Releases
341+
- [Maven Central v3.1.0] https://central.sonatype.com/artifact/com.clerk/backend-api/3.1.0 - .

build.gradle

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ repositories {
2727
}
2828

2929
java {
30-
sourceCompatibility = JavaVersion.VERSION_11
31-
targetCompatibility = JavaVersion.VERSION_11
3230
withSourcesJar()
3331
withJavadocJar()
3432
}
@@ -65,6 +63,10 @@ tasks.withType(Javadoc) {
6563
options.addStringOption('Xdoclint:none', '-quiet')
6664
}
6765

66+
tasks.withType(JavaCompile).configureEach {
67+
options.release = 11
68+
}
69+
6870
sourcesJar {
6971
archiveBaseName = "${artifactId}"
7072
}
@@ -103,11 +105,15 @@ publishing {
103105
// https://github.com/gradle/gradle/issues/18619
104106
groupId = "com.clerk"
105107
artifactId = "backend-api"
106-
version = "3.0.3"
108+
version = "3.1.0"
107109

108110
from components.java
109111

110112
pom {
113+
properties = [
114+
'maven.compiler.source': '11',
115+
'maven.compiler.target': '11',
116+
]
111117
name = 'My Company Java SDK'
112118
description = 'SDK enabling Java developers to easily integrate with the My Company API.'
113119
url = 'https://github.com/owner/repo'
@@ -157,4 +163,4 @@ dependencies {
157163
implementation 'commons-io:commons-io:2.18.0'
158164
}
159165

160-
apply from: 'build-extras.gradle'
166+
apply from: 'build-extras.gradle'

docs/sdks/actortokens/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class Application {
2828
public static void main(String[] args) throws ClerkErrors, Exception {
2929

3030
Clerk sdk = Clerk.builder()
31-
.bearerAuth("<YOUR_BEARER_TOKEN_HERE>")
31+
.bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
3232
.build();
3333

3434
CreateActorTokenRequestBody req = CreateActorTokenRequestBody.builder()
@@ -85,7 +85,7 @@ public class Application {
8585
public static void main(String[] args) throws ClerkErrors, Exception {
8686

8787
Clerk sdk = Clerk.builder()
88-
.bearerAuth("<YOUR_BEARER_TOKEN_HERE>")
88+
.bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
8989
.build();
9090

9191
RevokeActorTokenResponse res = sdk.actorTokens().revoke()

docs/sdks/allowlistidentifiers/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class Application {
2828
public static void main(String[] args) throws ClerkErrors, Exception {
2929

3030
Clerk sdk = Clerk.builder()
31-
.bearerAuth("<YOUR_BEARER_TOKEN_HERE>")
31+
.bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
3232
.build();
3333

3434
ListAllowlistIdentifiersResponse res = sdk.allowlistIdentifiers().list()
@@ -81,7 +81,7 @@ public class Application {
8181
public static void main(String[] args) throws ClerkErrors, Exception {
8282

8383
Clerk sdk = Clerk.builder()
84-
.bearerAuth("<YOUR_BEARER_TOKEN_HERE>")
84+
.bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
8585
.build();
8686

8787
CreateAllowlistIdentifierResponse res = sdk.allowlistIdentifiers().create()
@@ -130,7 +130,7 @@ public class Application {
130130
public static void main(String[] args) throws ClerkErrors, Exception {
131131

132132
Clerk sdk = Clerk.builder()
133-
.bearerAuth("<YOUR_BEARER_TOKEN_HERE>")
133+
.bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
134134
.build();
135135

136136
DeleteAllowlistIdentifierResponse res = sdk.allowlistIdentifiers().delete()

docs/sdks/betafeatures/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class Application {
2727
public static void main(String[] args) throws ClerkErrors, Exception {
2828

2929
Clerk sdk = Clerk.builder()
30-
.bearerAuth("<YOUR_BEARER_TOKEN_HERE>")
30+
.bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
3131
.build();
3232

3333
UpdateInstanceAuthConfigResponse res = sdk.betaFeatures().updateInstanceSettings()
@@ -82,7 +82,7 @@ public class Application {
8282
public static void main(String[] args) throws ClerkErrors, Exception {
8383

8484
Clerk sdk = Clerk.builder()
85-
.bearerAuth("<YOUR_BEARER_TOKEN_HERE>")
85+
.bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
8686
.build();
8787

8888
UpdateProductionInstanceDomainResponse res = sdk.betaFeatures().updateProductionInstanceDomain()

docs/sdks/blocklistidentifiers/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class Application {
2828
public static void main(String[] args) throws ClerkErrors, Exception {
2929

3030
Clerk sdk = Clerk.builder()
31-
.bearerAuth("<YOUR_BEARER_TOKEN_HERE>")
31+
.bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
3232
.build();
3333

3434
ListBlocklistIdentifiersResponse res = sdk.blocklistIdentifiers().list()
@@ -71,7 +71,7 @@ public class Application {
7171
public static void main(String[] args) throws ClerkErrors, Exception {
7272

7373
Clerk sdk = Clerk.builder()
74-
.bearerAuth("<YOUR_BEARER_TOKEN_HERE>")
74+
.bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
7575
.build();
7676

7777
CreateBlocklistIdentifierResponse res = sdk.blocklistIdentifiers().create()
@@ -120,7 +120,7 @@ public class Application {
120120
public static void main(String[] args) throws ClerkErrors, Exception {
121121

122122
Clerk sdk = Clerk.builder()
123-
.bearerAuth("<YOUR_BEARER_TOKEN_HERE>")
123+
.bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
124124
.build();
125125

126126
DeleteBlocklistIdentifierResponse res = sdk.blocklistIdentifiers().delete()

0 commit comments

Comments
 (0)