Skip to content

Commit 2145b36

Browse files
authored
Merge pull request #64 from clerk/speakeasy-sdk-regen-1742488367
chore: 🐝 Update SDK - Generate 2.2.0
2 parents 03d290b + da5ac21 commit 2145b36

File tree

12 files changed

+57
-27
lines changed

12 files changed

+57
-27
lines changed

.speakeasy/gen.lock

+7-6
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ id: 1d22a5a4-8bac-42e3-b164-121fcacf66c9
33
management:
44
docChecksum: 58ad91ea5b9a84daf1a110600dd55581
55
docVersion: "2024-10-01"
6-
speakeasyVersion: 1.520.1
7-
generationVersion: 2.556.1
8-
releaseVersion: 2.1.3
9-
configChecksum: 7fa5d17d176cd382356704a824a39ea5
6+
speakeasyVersion: 1.521.1
7+
generationVersion: 2.558.5
8+
releaseVersion: 2.2.0
9+
configChecksum: 55eeb87b648fd4565ee59c3c2db1cf7d
1010
repoURL: https://github.com/clerk/clerk-sdk-java.git
1111
published: true
1212
features:
1313
java:
1414
additionalDependencies: 0.1.0
1515
additionalProperties: 0.0.1
1616
constsAndDefaults: 0.1.1
17-
core: 3.35.1
17+
core: 3.35.2
1818
deprecations: 2.81.1
1919
flattening: 2.81.1
2020
globalSecurity: 2.82.8
@@ -26,7 +26,7 @@ features:
2626
nullables: 0.1.0
2727
openEnums: 0.2.0
2828
retries: 0.1.1
29-
sdkHooks: 0.1.0
29+
sdkHooks: 1.0.0
3030
unions: 0.0.6
3131
generatedFiles:
3232
- .gitattributes
@@ -1211,6 +1211,7 @@ generatedFiles:
12111211
- src/main/java/com/clerk/backend_api/utils/FormMetadata.java
12121212
- src/main/java/com/clerk/backend_api/utils/HTTPClient.java
12131213
- src/main/java/com/clerk/backend_api/utils/HTTPRequest.java
1214+
- src/main/java/com/clerk/backend_api/utils/HasSecurity.java
12141215
- src/main/java/com/clerk/backend_api/utils/HeaderMetadata.java
12151216
- src/main/java/com/clerk/backend_api/utils/Helpers.java
12161217
- src/main/java/com/clerk/backend_api/utils/Hook.java

.speakeasy/gen.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ generation:
1515
oAuth2ClientCredentialsEnabled: true
1616
oAuth2PasswordEnabled: false
1717
java:
18-
version: 2.1.3
18+
version: 2.2.0
1919
additionalDependencies: []
2020
additionalPlugins: []
2121
artifactID: backend-api

.speakeasy/workflow.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.520.1
1+
speakeasyVersion: 1.521.1
22
sources:
33
clerk-java-sdk:
44
sourceNamespace: clerk-java-sdk
5-
sourceRevisionDigest: sha256:57b4b179b6173aa0a549d7db83403db02b6935135664af7ddc57314fa57000c6
5+
sourceRevisionDigest: sha256:b38643e72eedcd64de7f0e82b9fc835f5d7fb60a7f37ff5def3f347583ccac5b
66
sourceBlobDigest: sha256:2b71237f436348d2cd0068137c6eeefa1a61edb8dcba32820d3e6842b48b8c19
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1742334386
9+
- speakeasy-sdk-regen-1742488367
1010
- "2024-10-01"
1111
targets:
1212
clerk-java:
1313
source: clerk-java-sdk
1414
sourceNamespace: clerk-java-sdk
15-
sourceRevisionDigest: sha256:57b4b179b6173aa0a549d7db83403db02b6935135664af7ddc57314fa57000c6
15+
sourceRevisionDigest: sha256:b38643e72eedcd64de7f0e82b9fc835f5d7fb60a7f37ff5def3f347583ccac5b
1616
sourceBlobDigest: sha256:2b71237f436348d2cd0068137c6eeefa1a61edb8dcba32820d3e6842b48b8c19
1717
codeSamplesNamespace: clerk-java-sdk-code-samples
18-
codeSamplesRevisionDigest: sha256:a736c8114921f15b983cb7e7a042bec3aaaa7a0761b98d5be2190066cdb7df9d
18+
codeSamplesRevisionDigest: sha256:b9aab83d2a1b1670e63bcbc649e091353ac448e90baf7f6d0b083037c367bda5
1919
my-first-target:
2020
source: clerk-java-sdk
2121
sourceNamespace: clerk-java-sdk

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ The samples below show how a published SDK artifact is used:
5151

5252
Gradle:
5353
```groovy
54-
implementation 'com.clerk:backend-api:2.1.3'
54+
implementation 'com.clerk:backend-api:2.2.0'
5555
```
5656

5757
Maven:
5858
```xml
5959
<dependency>
6060
<groupId>com.clerk</groupId>
6161
<artifactId>backend-api</artifactId>
62-
<version>2.1.3</version>
62+
<version>2.2.0</version>
6363
</dependency>
6464
```
6565

RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -248,4 +248,14 @@ Based on:
248248
### Generated
249249
- [java v2.1.3] .
250250
### Releases
251-
- [Maven Central v2.1.3] https://central.sonatype.com/artifact/com.clerk/backend-api/2.1.3 - .
251+
- [Maven Central v2.1.3] https://central.sonatype.com/artifact/com.clerk/backend-api/2.1.3 - .
252+
253+
## 2025-03-20 16:32:31
254+
### Changes
255+
Based on:
256+
- OpenAPI Doc
257+
- Speakeasy CLI 1.521.1 (2.558.5) https://github.com/speakeasy-api/speakeasy
258+
### Generated
259+
- [java v2.2.0] .
260+
### Releases
261+
- [Maven Central v2.2.0] https://central.sonatype.com/artifact/com.clerk/backend-api/2.2.0 - .

build.gradle

+4-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ model {
3939
}
4040
}
4141

42+
version = "${version}"
43+
group = "${groupId}"
44+
4245
jar {
4346
dependsOn(":generatePomFileForMavenPublication")
4447
archiveBaseName = "${artifactId}"
@@ -100,7 +103,7 @@ publishing {
100103
// https://github.com/gradle/gradle/issues/18619
101104
groupId = "com.clerk"
102105
artifactId = "backend-api"
103-
version = "2.1.3"
106+
version = "2.2.0"
104107

105108
from components.java
106109

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
groupId=com.clerk
22
artifactId=backend-api
3-
version=2.1.3
3+
version=2.2.0

src/main/java/com/clerk/backend_api/SDKConfiguration.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ public String resolvedServerUrl() {
2929
public int serverIdx = 0;
3030
private static final String LANGUAGE = "java";
3131
public static final String OPENAPI_DOC_VERSION = "2024-10-01";
32-
public static final String SDK_VERSION = "2.1.3";
33-
public static final String GEN_VERSION = "2.556.1";
32+
public static final String SDK_VERSION = "2.2.0";
33+
public static final String GEN_VERSION = "2.558.5";
3434
private static final String BASE_PACKAGE = "com.clerk.backend_api";
3535
public static final String USER_AGENT =
3636
String.format("speakeasy-sdk/%s %s %s %s %s",

src/main/java/com/clerk/backend_api/SecuritySource.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@
44

55
package com.clerk.backend_api;
66

7-
import com.clerk.backend_api.models.components.Security;
7+
import com.clerk.backend_api.utils.HasSecurity;
88

99
public interface SecuritySource {
1010

11-
Security getSecurity();
11+
HasSecurity getSecurity();
1212

13-
public static SecuritySource of(Security security) {
13+
public static SecuritySource of(HasSecurity security) {
1414
return new DefaultSecuritySource(security);
1515
}
1616

1717
public static class DefaultSecuritySource implements SecuritySource {
18-
private Security security;
18+
private HasSecurity security;
1919

20-
public DefaultSecuritySource(Security security) {
20+
public DefaultSecuritySource(HasSecurity security) {
2121
this.security = security;
2222
}
2323

24-
public Security getSecurity() {
24+
public HasSecurity getSecurity() {
2525
return security;
2626
}
2727
}

src/main/java/com/clerk/backend_api/models/components/Security.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55

66
package com.clerk.backend_api.models.components;
7+
import com.clerk.backend_api.utils.HasSecurity;
78
import com.clerk.backend_api.utils.SpeakeasyMetadata;
89
import com.clerk.backend_api.utils.Utils;
910
import com.fasterxml.jackson.annotation.JsonCreator;
@@ -13,7 +14,7 @@
1314
import java.util.Objects;
1415
import java.util.Optional;
1516

16-
public class Security {
17+
public class Security implements HasSecurity {
1718

1819
@SpeakeasyMetadata("security:scheme=true,type=http,subtype=bearer,name=Authorization")
1920
private Optional<String> bearerAuth;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3+
*/
4+
5+
package com.clerk.backend_api.utils;
6+
7+
/**
8+
* Implemented by classes that have security annotations on fields.
9+
**/
10+
public interface HasSecurity {
11+
}

src/main/java/com/clerk/backend_api/utils/Security.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ private static void parseSecuritySchemeValue(HTTPRequest request, SecurityMetada
136136
case "bearer":
137137
request.addHeader(securityMetadata.name, Utils.prefixBearer(Utils.valToString(value)));
138138
break;
139+
case "custom":
140+
// customers are expected to consume the security object and transform requests
141+
// in their own BeforeRequest hook.
142+
break;
139143
default:
140144
throw new RuntimeException("Unsupported http security scheme subtype: " + schemeMetadata.subtype);
141145
}
@@ -239,4 +243,4 @@ private static boolean matches(SpeakeasyMetadata[] anns, String regex) {
239243
}
240244
return false;
241245
}
242-
}
246+
}

0 commit comments

Comments
 (0)