Skip to content

Commit 9f43e5f

Browse files
authored
Merge pull request #74 from clerk/speakeasy-sdk-regen-1749042690
chore: 🐝 Update SDK - Generate 3.0.0
2 parents ba1b2f3 + 8b7cd3a commit 9f43e5f

73 files changed

Lines changed: 1867 additions & 1389 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: 201 additions & 201 deletions
Large diffs are not rendered by default.

β€Ž.speakeasy/gen.yamlβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ generation:
44
maintainOpenAPIOrder: true
55
usageSnippets:
66
optionalPropertyRendering: withExample
7+
sdkInitStyle: constructor
78
useClassNamesForArrayFields: true
89
fixes:
910
nameResolutionDec2023: true
@@ -16,7 +17,7 @@ generation:
1617
oAuth2ClientCredentialsEnabled: true
1718
oAuth2PasswordEnabled: false
1819
java:
19-
version: 2.4.0
20+
version: 3.0.0
2021
additionalDependencies: []
2122
additionalPlugins: []
2223
artifactID: backend-api

β€Ž.speakeasy/workflow.lockβ€Ž

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.542.3
1+
speakeasyVersion: 1.555.2
22
sources:
33
clerk-java-sdk:
44
sourceNamespace: clerk-java-sdk
5-
sourceRevisionDigest: sha256:61f94d9ac7765bbaee36f05f76b24d92d4e38cd1221d19038e69b6a8dadb1d44
6-
sourceBlobDigest: sha256:340eb6887045d0ee9db88c570ae5623776b60d0b79dc89e0312505c3b476afe1
5+
sourceRevisionDigest: sha256:a4c58f12efa21f2d09a186d631866514a33ea94aa887f9c0f3dad2488361b9b5
6+
sourceBlobDigest: sha256:7d364a0a7b05961ccc0d3990c9ca939ff08a410b6b6855ea60a6041c9ef4bfbf
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1743638956
10-
- "2024-10-01"
9+
- speakeasy-sdk-regen-1749042690
10+
- "2025-03-12"
1111
targets:
1212
clerk-java:
1313
source: clerk-java-sdk
1414
sourceNamespace: clerk-java-sdk
15-
sourceRevisionDigest: sha256:61f94d9ac7765bbaee36f05f76b24d92d4e38cd1221d19038e69b6a8dadb1d44
16-
sourceBlobDigest: sha256:340eb6887045d0ee9db88c570ae5623776b60d0b79dc89e0312505c3b476afe1
15+
sourceRevisionDigest: sha256:a4c58f12efa21f2d09a186d631866514a33ea94aa887f9c0f3dad2488361b9b5
16+
sourceBlobDigest: sha256:7d364a0a7b05961ccc0d3990c9ca939ff08a410b6b6855ea60a6041c9ef4bfbf
1717
codeSamplesNamespace: clerk-java-sdk-code-samples
18-
codeSamplesRevisionDigest: sha256:02c0ff8976194ddec8cda4b6fcedb12994aac6cc721cb1c20da86c0986d26e9a
18+
codeSamplesRevisionDigest: sha256:5a10b47d23ff561ca00df7d354dceb85623bf1e9733b00d1eeac3dd89522ab7d
1919
my-first-target:
2020
source: clerk-java-sdk
2121
sourceNamespace: clerk-java-sdk
@@ -27,7 +27,7 @@ workflow:
2727
sources:
2828
clerk-java-sdk:
2929
inputs:
30-
- location: https://raw.githubusercontent.com/clerk/openapi-specs/refs/heads/main/bapi/2024-10-01.yml
30+
- location: https://raw.githubusercontent.com/clerk/openapi-specs/refs/heads/main/bapi/2025-03-12.yml
3131
overlays:
3232
- location: https://raw.githubusercontent.com/clerk/openapi-specs/refs/heads/main/.speakeasy/bapi/fixes.yml
3333
registry:

β€ŽREADME.mdβ€Ž

Lines changed: 7 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Clerk Backend API: The Clerk REST Backend API, meant to be accessed by backend s
1616
### Versions
1717

1818
When the API changes in a way that isn't compatible with older versions, a new version is released.
19-
Each version is identified by its release date, e.g. `2024-10-01`. For more information, please see [Clerk API Versions](https://clerk.com/docs/versioning/available-versions).
19+
Each version is identified by its release date, e.g. `2025-03-12`. For more information, please see [Clerk API Versions](https://clerk.com/docs/versioning/available-versions).
2020

2121
Please see https://clerk.com/docs for more information.
2222

@@ -35,7 +35,6 @@ More information about the API can be found at https://clerk.com/docs
3535
* [Error Handling](#error-handling)
3636
* [Server Selection](#server-selection)
3737
* [Development](#development)
38-
* [Maturity](#maturity)
3938
* [Contributions](#contributions)
4039

4140
<!-- End Table of Contents [toc] -->
@@ -51,15 +50,15 @@ The samples below show how a published SDK artifact is used:
5150

5251
Gradle:
5352
```groovy
54-
implementation 'com.clerk:backend-api:2.4.0'
53+
implementation 'com.clerk:backend-api:3.0.0'
5554
```
5655

5756
Maven:
5857
```xml
5958
<dependency>
6059
<groupId>com.clerk</groupId>
6160
<artifactId>backend-api</artifactId>
62-
<version>2.4.0</version>
61+
<version>3.0.0</version>
6362
</dependency>
6463
```
6564

@@ -110,25 +109,20 @@ Another option is to set the System property `-Djdk.httpclient.HttpClient.log=al
110109
package hello.world;
111110

112111
import com.clerk.backend_api.Clerk;
113-
import com.clerk.backend_api.models.errors.ClerkErrors;
114-
import com.clerk.backend_api.models.operations.GetEmailAddressResponse;
112+
import com.clerk.backend_api.models.operations.GetPublicInterstitialResponse;
115113
import java.lang.Exception;
116114

117115
public class Application {
118116

119-
public static void main(String[] args) throws ClerkErrors, Exception {
117+
public static void main(String[] args) throws Exception {
120118

121119
Clerk sdk = Clerk.builder()
122-
.bearerAuth("<YOUR_BEARER_TOKEN_HERE>")
123120
.build();
124121

125-
GetEmailAddressResponse res = sdk.emailAddresses().get()
126-
.emailAddressId("<id>")
122+
GetPublicInterstitialResponse res = sdk.miscellaneous().getPublicInterstitial()
127123
.call();
128124

129-
if (res.emailAddress().isPresent()) {
130-
// handle response
131-
}
125+
// handle response
132126
}
133127
}
134128
```
@@ -150,7 +144,6 @@ To authenticate with the API the `bearerAuth` parameter must be set when initial
150144
package hello.world;
151145

152146
import com.clerk.backend_api.Clerk;
153-
import com.clerk.backend_api.models.operations.GetPublicInterstitialRequest;
154147
import com.clerk.backend_api.models.operations.GetPublicInterstitialResponse;
155148
import java.lang.Exception;
156149

@@ -162,11 +155,7 @@ public class Application {
162155
.bearerAuth("<YOUR_BEARER_TOKEN_HERE>")
163156
.build();
164157

165-
GetPublicInterstitialRequest req = GetPublicInterstitialRequest.builder()
166-
.build();
167-
168158
GetPublicInterstitialResponse res = sdk.miscellaneous().getPublicInterstitial()
169-
.request(req)
170159
.call();
171160

172161
// handle response
@@ -447,7 +436,6 @@ To change the default retry strategy for a single API call, you can provide a `R
447436
package hello.world;
448437

449438
import com.clerk.backend_api.Clerk;
450-
import com.clerk.backend_api.models.operations.GetPublicInterstitialRequest;
451439
import com.clerk.backend_api.models.operations.GetPublicInterstitialResponse;
452440
import com.clerk.backend_api.utils.BackoffStrategy;
453441
import com.clerk.backend_api.utils.RetryConfig;
@@ -461,11 +449,7 @@ public class Application {
461449
Clerk sdk = Clerk.builder()
462450
.build();
463451

464-
GetPublicInterstitialRequest req = GetPublicInterstitialRequest.builder()
465-
.build();
466-
467452
GetPublicInterstitialResponse res = sdk.miscellaneous().getPublicInterstitial()
468-
.request(req)
469453
.retryConfig(RetryConfig.builder()
470454
.backoff(BackoffStrategy.builder()
471455
.initialInterval(1L, TimeUnit.MILLISECONDS)
@@ -488,7 +472,6 @@ If you'd like to override the default retry strategy for all operations that sup
488472
package hello.world;
489473
490474
import com.clerk.backend_api.Clerk;
491-
import com.clerk.backend_api.models.operations.GetPublicInterstitialRequest;
492475
import com.clerk.backend_api.models.operations.GetPublicInterstitialResponse;
493476
import com.clerk.backend_api.utils.BackoffStrategy;
494477
import com.clerk.backend_api.utils.RetryConfig;
@@ -512,11 +495,7 @@ public class Application {
512495
.build())
513496
.build();
514497
515-
GetPublicInterstitialRequest req = GetPublicInterstitialRequest.builder()
516-
.build();
517-
518498
GetPublicInterstitialResponse res = sdk.miscellaneous().getPublicInterstitial()
519-
.request(req)
520499
.call();
521500
522501
// handle response
@@ -544,7 +523,6 @@ package hello.world;
544523
545524
import com.clerk.backend_api.Clerk;
546525
import com.clerk.backend_api.models.errors.ClerkErrors;
547-
import com.clerk.backend_api.models.operations.VerifyClientRequestBody;
548526
import com.clerk.backend_api.models.operations.VerifyClientResponse;
549527
import java.lang.Exception;
550528
@@ -556,12 +534,7 @@ public class Application {
556534
.bearerAuth("<YOUR_BEARER_TOKEN_HERE>")
557535
.build();
558536
559-
VerifyClientRequestBody req = VerifyClientRequestBody.builder()
560-
.token("<value>")
561-
.build();
562-
563537
VerifyClientResponse res = sdk.clients().verify()
564-
.request(req)
565538
.call();
566539
567540
if (res.client().isPresent()) {
@@ -582,7 +555,6 @@ The default server can be overridden globally using the `.serverURL(String serve
582555
package hello.world;
583556
584557
import com.clerk.backend_api.Clerk;
585-
import com.clerk.backend_api.models.operations.GetPublicInterstitialRequest;
586558
import com.clerk.backend_api.models.operations.GetPublicInterstitialResponse;
587559
import java.lang.Exception;
588560
@@ -594,11 +566,7 @@ public class Application {
594566
.serverURL("https://api.clerk.com/v1")
595567
.build();
596568
597-
GetPublicInterstitialRequest req = GetPublicInterstitialRequest.builder()
598-
.build();
599-
600569
GetPublicInterstitialResponse res = sdk.miscellaneous().getPublicInterstitial()
601-
.request(req)
602570
.call();
603571
604572
// handle response

β€ŽRELEASES.mdβ€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,4 +288,14 @@ Based on:
288288
### Generated
289289
- [java v2.4.0] .
290290
### Releases
291-
- [Maven Central v2.4.0] https://central.sonatype.com/artifact/com.clerk/backend-api/2.4.0 - .
291+
- [Maven Central v2.4.0] https://central.sonatype.com/artifact/com.clerk/backend-api/2.4.0 - .
292+
293+
## 2025-06-04 13:11:13
294+
### Changes
295+
Based on:
296+
- OpenAPI Doc
297+
- Speakeasy CLI 1.555.2 (2.620.2) https://github.com/speakeasy-api/speakeasy
298+
### Generated
299+
- [java v3.0.0] .
300+
### Releases
301+
- [Maven Central v3.0.0] https://central.sonatype.com/artifact/com.clerk/backend-api/3.0.0 - .

β€ŽUSAGE.mdβ€Ž

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,20 @@
33
package hello.world;
44

55
import com.clerk.backend_api.Clerk;
6-
import com.clerk.backend_api.models.errors.ClerkErrors;
7-
import com.clerk.backend_api.models.operations.GetEmailAddressResponse;
6+
import com.clerk.backend_api.models.operations.GetPublicInterstitialResponse;
87
import java.lang.Exception;
98

109
public class Application {
1110

12-
public static void main(String[] args) throws ClerkErrors, Exception {
11+
public static void main(String[] args) throws Exception {
1312

1413
Clerk sdk = Clerk.builder()
15-
.bearerAuth("<YOUR_BEARER_TOKEN_HERE>")
1614
.build();
1715

18-
GetEmailAddressResponse res = sdk.emailAddresses().get()
19-
.emailAddressId("<id>")
16+
GetPublicInterstitialResponse res = sdk.miscellaneous().getPublicInterstitial()
2017
.call();
2118

22-
if (res.emailAddress().isPresent()) {
23-
// handle response
24-
}
19+
// handle response
2520
}
2621
}
2722
```

β€Žbuild.gradleβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ publishing {
103103
// https://github.com/gradle/gradle/issues/18619
104104
groupId = "com.clerk"
105105
artifactId = "backend-api"
106-
version = "2.4.0"
106+
version = "3.0.0"
107107

108108
from components.java
109109

β€Ždocs/models/components/Session.mdβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@
1717
| `expireAt` | *long* | :heavy_check_mark: | Unix timestamp of expiration.<br/> |
1818
| `abandonAt` | *long* | :heavy_check_mark: | Unix timestamp of abandonment.<br/> |
1919
| `updatedAt` | *long* | :heavy_check_mark: | Unix timestamp of last update.<br/> |
20-
| `createdAt` | *long* | :heavy_check_mark: | Unix timestamp of creation.<br/> |
20+
| `createdAt` | *long* | :heavy_check_mark: | Unix timestamp of creation.<br/> |
21+
| `tasks` | List\<[SessionTask](../../models/components/SessionTask.md)> | :heavy_minus_sign: | N/A |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SessionTask
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------ | ------------------ | ------------------ | ------------------ |
8+
| `key` | *String* | :heavy_check_mark: | N/A |

β€Ždocs/models/components/Status.mdβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@
1111
| `EXPIRED` | expired |
1212
| `REMOVED` | removed |
1313
| `ABANDONED` | abandoned |
14-
| `REPLACED` | replaced |
14+
| `REPLACED` | replaced |
15+
| `PENDING` | pending |

0 commit comments

Comments
Β (0)