Skip to content

Commit e071aad

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.600.2
1 parent 629a247 commit e071aad

File tree

864 files changed

+61261
-34329
lines changed

Some content is hidden

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

864 files changed

+61261
-34329
lines changed

.speakeasy/gen.lock

Lines changed: 603 additions & 241 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
@@ -21,7 +21,7 @@ generation:
2121
generateNewTests: false
2222
skipResponseBodyAssertions: false
2323
java:
24-
version: 3.1.0
24+
version: 3.2.0
2525
additionalDependencies: []
2626
additionalPlugins: []
2727
artifactID: backend-api
@@ -31,6 +31,7 @@ java:
3131
companyName: My Company
3232
companyURL: www.mycompany.com
3333
defaultErrorName: SDKError
34+
enableAsync: false
3435
enableCustomCodeRegions: false
3536
flattenGlobalSecurity: true
3637
githubURL: github.com/owner/repo

.speakeasy/workflow.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.581.0
1+
speakeasyVersion: 1.600.2
22
sources:
33
clerk-java-sdk:
44
sourceNamespace: clerk-java-sdk
5-
sourceRevisionDigest: sha256:a0369948fffa0b0b8b15040dde660eaf6539e8432246114045a245e3c67d7d23
6-
sourceBlobDigest: sha256:8f0e9fa692ea41f67ecc4d340d53a1db022a6e949c11bb0f73e333b910400bf1
5+
sourceRevisionDigest: sha256:a4d5f8c5288ff7620ea785ebdab3cecf0c6f2fbcaa5930f6c9031b32b08a7df4
6+
sourceBlobDigest: sha256:313055ab937fa778673ffee5a3c306079f6d464f23d2e6a2e53f35b7364e1ce3
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1752252043
10-
- "2025-03-12"
9+
- speakeasy-sdk-regen-1753143080
10+
- "2025-04-10"
1111
targets:
1212
clerk-java:
1313
source: clerk-java-sdk
1414
sourceNamespace: clerk-java-sdk
15-
sourceRevisionDigest: sha256:a0369948fffa0b0b8b15040dde660eaf6539e8432246114045a245e3c67d7d23
16-
sourceBlobDigest: sha256:8f0e9fa692ea41f67ecc4d340d53a1db022a6e949c11bb0f73e333b910400bf1
15+
sourceRevisionDigest: sha256:a4d5f8c5288ff7620ea785ebdab3cecf0c6f2fbcaa5930f6c9031b32b08a7df4
16+
sourceBlobDigest: sha256:313055ab937fa778673ffee5a3c306079f6d464f23d2e6a2e53f35b7364e1ce3
1717
codeSamplesNamespace: clerk-java-sdk-code-samples
18-
codeSamplesRevisionDigest: sha256:3576a97da095b39c8caa9d7dacc5159d9fdfb8c8e51a3bf5c38eefebe98bc077
18+
codeSamplesRevisionDigest: sha256:a4a37522a4aa7ca69c8eea092b4796c5bd4af679d1648749de5aff20555f7ded
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/2025-03-12.yml
30+
- location: https://raw.githubusercontent.com/clerk/openapi-specs/refs/heads/main/bapi/2025-04-10.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: 48 additions & 16 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. `2025-03-12`. 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-04-10`. 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

@@ -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:3.1.0'
54+
implementation 'com.clerk:backend-api:3.2.0'
5555
```
5656

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

@@ -87,20 +87,25 @@ gradlew.bat publishToMavenLocal -Pskip.signing
8787
package hello.world;
8888

8989
import com.clerk.backend_api.Clerk;
90-
import com.clerk.backend_api.models.operations.GetPublicInterstitialResponse;
90+
import com.clerk.backend_api.models.errors.ClerkErrors;
91+
import com.clerk.backend_api.models.operations.GetEmailAddressResponse;
9192
import java.lang.Exception;
9293

9394
public class Application {
9495

95-
public static void main(String[] args) throws Exception {
96+
public static void main(String[] args) throws ClerkErrors, Exception {
9697

9798
Clerk sdk = Clerk.builder()
99+
.bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
98100
.build();
99101

100-
GetPublicInterstitialResponse res = sdk.miscellaneous().getPublicInterstitial()
102+
GetEmailAddressResponse res = sdk.emailAddresses().get()
103+
.emailAddressId("<id>")
101104
.call();
102105

103-
// handle response
106+
if (res.emailAddress().isPresent()) {
107+
// handle response
108+
}
104109
}
105110
}
106111
```
@@ -205,6 +210,11 @@ public class MachineAuthentication {
205210
* [create](docs/sdks/allowlistidentifiers/README.md#create) - Add identifier to the allow-list
206211
* [delete](docs/sdks/allowlistidentifiers/README.md#delete) - Delete identifier from allow-list
207212

213+
### [awsCredentials()](docs/sdks/awscredentials/README.md)
214+
215+
* [delete](docs/sdks/awscredentials/README.md#delete) - Delete an AWS Credential
216+
* [update](docs/sdks/awscredentials/README.md#update) - Update an AWS Credential
217+
208218
### [betaFeatures()](docs/sdks/betafeatures/README.md)
209219

210220
* [updateInstanceSettings](docs/sdks/betafeatures/README.md#updateinstancesettings) - Update instance settings
@@ -223,6 +233,10 @@ public class MachineAuthentication {
223233
* [verify](docs/sdks/clients/README.md#verify) - Verify a client
224234
* [get](docs/sdks/clients/README.md#get) - Get a client
225235

236+
### [commerce()](docs/sdks/commerce/README.md)
237+
238+
* [listPlans](docs/sdks/commerce/README.md#listplans) - List all commerce plans
239+
226240
### [domains()](docs/sdks/domains/README.md)
227241

228242
* [list](docs/sdks/domains/README.md#list) - List all instance domains
@@ -280,10 +294,25 @@ public class MachineAuthentication {
280294
* [update](docs/sdks/jwttemplates/README.md#update) - Update a JWT template
281295
* [delete](docs/sdks/jwttemplates/README.md#delete) - Delete a Template
282296

297+
### [machines()](docs/sdks/machines/README.md)
298+
299+
* [list](docs/sdks/machines/README.md#list) - Get a list of machines for an instance
300+
* [create](docs/sdks/machines/README.md#create) - Create a machine
301+
* [get](docs/sdks/machines/README.md#get) - Retrieve a machine
302+
* [update](docs/sdks/machines/README.md#update) - Update a machine
303+
* [delete](docs/sdks/machines/README.md#delete) - Delete a machine
304+
* [getSecretKey](docs/sdks/machines/README.md#getsecretkey) - Retrieve a machine secret key
305+
* [createScope](docs/sdks/machines/README.md#createscope) - Create a machine scope
306+
* [deleteScope](docs/sdks/machines/README.md#deletescope) - Delete a machine scope
307+
283308
### [miscellaneous()](docs/sdks/miscellaneous/README.md)
284309

285310
* [getPublicInterstitial](docs/sdks/miscellaneous/README.md#getpublicinterstitial) - Returns the markup for the interstitial page
286311

312+
### [oauthAccessTokens()](docs/sdks/oauthaccesstokens/README.md)
313+
314+
* [verify](docs/sdks/oauthaccesstokens/README.md#verify) - Verify an OAuth Access Token
315+
287316
### [oauthApplications()](docs/sdks/oauthapplications/README.md)
288317

289318
* [list](docs/sdks/oauthapplications/README.md#list) - Get a list of OAuth applications for an instance
@@ -299,6 +328,7 @@ public class MachineAuthentication {
299328
* [list](docs/sdks/organizationdomains/README.md#list) - Get a list of all domains of an organization.
300329
* [update](docs/sdks/organizationdomains/README.md#update) - Update an organization domain.
301330
* [delete](docs/sdks/organizationdomains/README.md#delete) - Remove a domain from an organization.
331+
* [listAll](docs/sdks/organizationdomains/README.md#listall) - List all organization domains
302332

303333
### [organizationInvitations()](docs/sdks/organizationinvitations/README.md)
304334

@@ -362,7 +392,6 @@ public class MachineAuthentication {
362392
* [get](docs/sdks/sessions/README.md#get) - Retrieve a session
363393
* [refresh](docs/sdks/sessions/README.md#refresh) - Refresh a session
364394
* [revoke](docs/sdks/sessions/README.md#revoke) - Revoke a session
365-
* [~~verify~~](docs/sdks/sessions/README.md#verify) - Verify a session :warning: **Deprecated**
366395
* [createToken](docs/sdks/sessions/README.md#createtoken) - Create a session token
367396
* [createTokenFromTemplate](docs/sdks/sessions/README.md#createtokenfromtemplate) - Create a session token from a jwt template
368397
@@ -394,6 +423,8 @@ public class MachineAuthentication {
394423
* [delete](docs/sdks/users/README.md#delete) - Delete a user
395424
* [ban](docs/sdks/users/README.md#ban) - Ban a user
396425
* [unban](docs/sdks/users/README.md#unban) - Unban a user
426+
* [bulkBan](docs/sdks/users/README.md#bulkban) - Ban multiple users
427+
* [bulkUnban](docs/sdks/users/README.md#bulkunban) - Unban multiple users
397428
* [lock](docs/sdks/users/README.md#lock) - Lock a user
398429
* [unlock](docs/sdks/users/README.md#unlock) - Unlock a user
399430
* [setProfileImage](docs/sdks/users/README.md#setprofileimage) - Set user profile image
@@ -509,12 +540,12 @@ public class Application {
509540

510541
Handling errors in this SDK should largely match your expectations. All operations return a response object or raise an exception.
511542

512-
By default, an API error will throw a `models/errors/SDKError` exception. When custom error responses are specified for an operation, the SDK may also throw their associated exception. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `verify` method throws the following exceptions:
543+
By default, an API error will throw a `models/errors/SDKError` exception. When custom error responses are specified for an operation, the SDK may also throw their associated exception. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `delete` method throws the following exceptions:
513544

514-
| Error Type | Status Code | Content Type |
515-
| ------------------------- | ------------- | ---------------- |
516-
| models/errors/ClerkErrors | 400, 401, 404 | application/json |
517-
| models/errors/SDKError | 4XX, 5XX | \*/\* |
545+
| Error Type | Status Code | Content Type |
546+
| ------------------------- | ------------------ | ---------------- |
547+
| models/errors/ClerkErrors | 400, 401, 403, 404 | application/json |
548+
| models/errors/SDKError | 4XX, 5XX | \*/\* |
518549

519550
### Example
520551

@@ -523,7 +554,7 @@ package hello.world;
523554

524555
import com.clerk.backend_api.Clerk;
525556
import com.clerk.backend_api.models.errors.ClerkErrors;
526-
import com.clerk.backend_api.models.operations.VerifyClientResponse;
557+
import com.clerk.backend_api.models.operations.DeleteAWSCredentialResponse;
527558
import java.lang.Exception;
528559

529560
public class Application {
@@ -534,10 +565,11 @@ public class Application {
534565
.bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
535566
.build();
536567

537-
VerifyClientResponse res = sdk.clients().verify()
568+
DeleteAWSCredentialResponse res = sdk.awsCredentials().delete()
569+
.id("<id>")
538570
.call();
539571

540-
if (res.client().isPresent()) {
572+
if (res.deletedObject().isPresent()) {
541573
// handle response
542574
}
543575
}

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,4 +338,14 @@ Based on:
338338
### Generated
339339
- [java v3.1.0] .
340340
### Releases
341-
- [Maven Central v3.1.0] https://central.sonatype.com/artifact/com.clerk/backend-api/3.1.0 - .
341+
- [Maven Central v3.1.0] https://central.sonatype.com/artifact/com.clerk/backend-api/3.1.0 - .
342+
343+
## 2025-08-09 00:10:03
344+
### Changes
345+
Based on:
346+
- OpenAPI Doc
347+
- Speakeasy CLI 1.600.2 (2.677.3) https://github.com/speakeasy-api/speakeasy
348+
### Generated
349+
- [java v3.2.0] .
350+
### Releases
351+
- [Maven Central v3.2.0] https://central.sonatype.com/artifact/com.clerk/backend-api/3.2.0 - .

USAGE.md

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

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

910
public class Application {
1011

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

1314
Clerk sdk = Clerk.builder()
15+
.bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
1416
.build();
1517

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

19-
// handle response
22+
if (res.emailAddress().isPresent()) {
23+
// handle response
24+
}
2025
}
2126
}
2227
```

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ javadoc {
5959
}
6060

6161
tasks.withType(Javadoc) {
62-
failOnError false
62+
failOnError = false
6363
options.addStringOption('Xdoclint:none', '-quiet')
6464
}
6565

@@ -105,7 +105,7 @@ publishing {
105105
// https://github.com/gradle/gradle/issues/18619
106106
groupId = "com.clerk"
107107
artifactId = "backend-api"
108-
version = "3.1.0"
108+
version = "3.2.0"
109109

110110
from components.java
111111

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# AWSCredential
2+
3+
Success
4+
5+
6+
## Fields
7+
8+
| Field | Type | Required | Description |
9+
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
10+
| `id` | *String* | :heavy_check_mark: | N/A |
11+
| `object` | [Object](../../models/components/Object.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value.<br/> |
12+
| `accessKeyId` | *String* | :heavy_check_mark: | N/A |
13+
| `userPoolIds` | List\<*String*> | :heavy_check_mark: | N/A |
14+
| `createdAt` | *long* | :heavy_check_mark: | Unix timestamp of creation<br/> |
15+
| `updatedAt` | *long* | :heavy_check_mark: | Unix timestamp of creation<br/> |

0 commit comments

Comments
 (0)