Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 78 additions & 27 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
java:
version: 4.0.0
version: 4.0.1
additionalDependencies: []
additionalPlugins: []
artifactID: backend-api
Expand All @@ -36,8 +36,8 @@ java:
companyURL: www.mycompany.com
defaultErrorName: SDKError
enableCustomCodeRegions: false
enableSlf4jLogging: false
enableStreamingUploads: false
enhancedUnionMemberResolution: true
flattenGlobalSecurity: true
generateOptionalUnionAccessors: false
generateSpringBootStarter: true
Expand All @@ -60,6 +60,8 @@ java:
maxMethodParams: 4
nullFriendlyParameters: false
openUnions: true
operationScopedParams: true
outputModelSuffix: output
projectName: api
templateVersion: v2
unionStrategy: populated-fields
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.653.0
speakeasyVersion: 1.660.0
sources:
clerk-java-sdk:
sourceNamespace: clerk-java-sdk
sourceRevisionDigest: sha256:4cdfbca5fe446f5440ef5a91053cdec7dd86d4b1c296a30cec61e1f46e1c3bf0
sourceBlobDigest: sha256:667192662fbf3ee62bd9f4d3e67323b7b6777054d7d08b383e2db721e2911354
sourceRevisionDigest: sha256:e5ecd1fab0806e4766fcd026ab92e7b9ff8dbab80801010564915c96c4b14051
sourceBlobDigest: sha256:1b97fa1539c3f519bacbf8b5e9fa216e720f8d5be878afc7462ac522a7ba4a29
tags:
- latest
- speakeasy-sdk-regen-1756771797
- speakeasy-sdk-regen-1762906246
- "2025-11-10"
targets:
clerk-java:
source: clerk-java-sdk
sourceNamespace: clerk-java-sdk
sourceRevisionDigest: sha256:4cdfbca5fe446f5440ef5a91053cdec7dd86d4b1c296a30cec61e1f46e1c3bf0
sourceBlobDigest: sha256:667192662fbf3ee62bd9f4d3e67323b7b6777054d7d08b383e2db721e2911354
sourceRevisionDigest: sha256:e5ecd1fab0806e4766fcd026ab92e7b9ff8dbab80801010564915c96c4b14051
sourceBlobDigest: sha256:1b97fa1539c3f519bacbf8b5e9fa216e720f8d5be878afc7462ac522a7ba4a29
codeSamplesNamespace: clerk-java-sdk-code-samples
codeSamplesRevisionDigest: sha256:ec10b689b7835ba5566ba1569f14e7b197a7dcba7dd11c0753c62de6d3f072c4
codeSamplesRevisionDigest: sha256:6f313b0194c97a58a38dfe113345a2374c3f440863629f2c0f1efbf092da3450
my-first-target:
source: clerk-java-sdk
sourceNamespace: clerk-java-sdk
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ The samples below show how a published SDK artifact is used:

Gradle:
```groovy
implementation 'com.clerk:backend-api:4.0.0'
implementation 'com.clerk:backend-api:4.0.1'
```

Maven:
```xml
<dependency>
<groupId>com.clerk</groupId>
<artifactId>backend-api</artifactId>
<version>4.0.0</version>
<version>4.0.1</version>
</dependency>
```

Expand Down Expand Up @@ -218,6 +218,9 @@ public class MachineAuthentication {

### [billing()](docs/sdks/billing/README.md)

* [listPlans](docs/sdks/billing/README.md#listplans) - List all billing plans
* [listSubscriptionItems](docs/sdks/billing/README.md#listsubscriptionitems) - List all subscription items
* [cancelSubscriptionItem](docs/sdks/billing/README.md#cancelsubscriptionitem) - Cancel a subscription item
* [extendSubscriptionItemFreeTrial](docs/sdks/billing/README.md#extendsubscriptionitemfreetrial) - Extend free trial for a subscription item
* [listStatements](docs/sdks/billing/README.md#liststatements) - List all billing statements
* [getStatement](docs/sdks/billing/README.md#getstatement) - Retrieve a billing statement
Expand All @@ -235,12 +238,6 @@ public class MachineAuthentication {
* [verify](docs/sdks/clients/README.md#verify) - Verify a client
* [get](docs/sdks/clients/README.md#get) - Get a client

### [commerce()](docs/sdks/commerce/README.md)

* [listPlans](docs/sdks/commerce/README.md#listplans) - List all commerce plans
* [listSubscriptionItems](docs/sdks/commerce/README.md#listsubscriptionitems) - List all subscription items
* [cancelSubscriptionItem](docs/sdks/commerce/README.md#cancelsubscriptionitem) - Cancel a subscription item

### [domains()](docs/sdks/domains/README.md)

* [list](docs/sdks/domains/README.md#list) - List all instance domains
Expand Down Expand Up @@ -820,9 +817,11 @@ public class Application {
## Debugging

### Debug

You can setup your SDK to emit debug logs for SDK requests and responses.

For request and response logging (especially json bodies), call `enableHTTPDebugLogging(boolean)` on the SDK builder like so:

```java
SDK.builder()
.enableHTTPDebugLogging(true)
Expand All @@ -840,10 +839,11 @@ Response body:
"token": "global"
}
```
__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`.
__WARNING__: This logging should only be 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`.

__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.


Another option is to set the System property `-Djdk.httpclient.HttpClient.log=all`. However, this second option does not log bodies.
<!-- End Debugging [debug] -->

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -358,4 +358,14 @@ Based on:
### Generated
- [java v4.0.0] .
### Releases
- [Maven Central v4.0.0] https://central.sonatype.com/artifact/com.clerk/backend-api/4.0.0 - .
- [Maven Central v4.0.0] https://central.sonatype.com/artifact/com.clerk/backend-api/4.0.0 - .

## 2025-11-22 00:09:42
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.660.0 (2.760.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v4.0.1] .
### Releases
- [Maven Central v4.0.1] https://central.sonatype.com/artifact/com.clerk/backend-api/4.0.1 - .
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# ClerkErrorErrorEnterpriseAccountMeta


## Fields

| Field | Type | Required | Description |
| ----------- | ----------- | ----------- | ----------- |
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# ClerkErrorErrorEnterpriseAccountVerificationMeta


## Fields

| Field | Type | Required | Description |
| ----------- | ----------- | ----------- | ----------- |
Loading
Loading