Skip to content

Commit 033e4b2

Browse files
## Java SDK Changes: (#109)
* `clerk.organizationDomains.listAll()`: `response.data[]` **Changed** (Breaking ⚠️) * `clerk.users.create()`: * `request` **Changed** * `response` **Changed** (Breaking ⚠️) * `error.status[402]` **Added** * `clerk.users.setProfileImage()`: `response` **Changed** (Breaking ⚠️) * `clerk.organizationDomains.update()`: `response` **Changed** (Breaking ⚠️) * `clerk.organizationDomains.list()`: `response.data[]` **Changed** (Breaking ⚠️) * `clerk.organizationDomains.create()`: `response` **Changed** (Breaking ⚠️) * `clerk.organizations.update()`: `requestBody` **Changed** (Breaking ⚠️) * `clerk.users.unsetPasswordCompromised()`: `response` **Changed** (Breaking ⚠️) * `clerk.users.unlock()`: `response` **Changed** (Breaking ⚠️) * `clerk.users.updateMetadata()`: `response` **Changed** (Breaking ⚠️) * `clerk.users.deleteProfileImage()`: `response` **Changed** (Breaking ⚠️) * `clerk.users.setPasswordCompromised()`: `response` **Changed** (Breaking ⚠️) * `clerk.users.lock()`: `response` **Changed** (Breaking ⚠️) * `clerk.users.bulkUnban()`: `response.[]` **Changed** (Breaking ⚠️) * `clerk.users.bulkBan()`: `response.[]` **Changed** (Breaking ⚠️) * `clerk.users.unban()`: `response` **Changed** (Breaking ⚠️) * `clerk.emailAddresses.create()`: `response.verification` **Changed** (Breaking ⚠️) * `clerk.emailAddresses.get()`: `response.verification` **Changed** (Breaking ⚠️) * `clerk.emailAddresses.update()`: `response.verification` **Changed** (Breaking ⚠️) * `clerk.users.ban()`: `response` **Changed** (Breaking ⚠️) * `clerk.users.update()`: * `requestBody` **Changed** (Breaking ⚠️) * `response` **Changed** (Breaking ⚠️) * `clerk.users.get()`: `response` **Changed** (Breaking ⚠️) * `clerk.users.list()`: `response.[]` **Changed** (Breaking ⚠️) * `clerk.emailAddresses.attemptVerification()`: **Added** * `clerk.phoneNumbers.replaceForUser()`: **Added** * `clerk.phoneNumbers.get()`: `response.verification.union(verification_otp).channel` **Added** * `clerk.phoneNumbers.create()`: `response.verification.union(verification_otp).channel` **Added** * `clerk.adminPortalLinkTokens.revokeAdminPortalLinkToken()`: **Added** * `clerk.adminPortalLinkTokens.createAdminPortalLinkToken()`: **Added** * `clerk.enterpriseConnections.createTestRun()`: **Added** * `clerk.enterpriseConnections.listTestRuns()`: **Added** * `clerk.organizationDomains.verifyOwnership()`: **Added** * `clerk.billing.listSubscriptionItems()`: `response.data[]` **Changed** * `clerk.organizations.replaceMetadata()`: **Added** * `clerk.instanceSettings.getOrganizationSettings()`: **Added** * `clerk.users.getBillingSubscription()`: `response` **Changed** * `clerk.instanceSettings.updateCommunication()`: **Added** * `clerk.instanceSettings.getCommunication()`: **Added** * `clerk.instanceSettings.update()`: * `request.preferredSignInStrategyWhenPasswordRequired` **Added** * `clerk.instanceSettings.updateOrganizationSettings()`: `error.status[403]` **Added** * `clerk.users.replaceMetadata()`: **Added** * `clerk.organizations.getBillingSubscription()`: `response` **Changed** * `clerk.phoneNumbers.update()`: `response.verification.union(verification_otp).channel` **Added** * `clerk.phoneNumbers.attemptVerification()`: **Added** * `clerk.phoneNumbers.prepareVerification()`: **Added** * `clerk.emailAddresses.prepareVerification()`: **Added** * `clerk.samlConnections.create()`: `error.status[409]` **Added** * `clerk.samlConnections.update()`: `error.status[409]` **Added** * `clerk.enterpriseConnections.list()`: `response.data[]` **Changed** * `clerk.enterpriseConnections.create()`: * `request.customAttributes[].multiValued` **Added** * `response` **Changed** * `error.status[409]` **Added** * `clerk.enterpriseConnections.get()`: `response` **Changed** * `clerk.enterpriseConnections.update()`: * `requestBody.customAttributes[].multiValued` **Added** * `response` **Changed** * `clerk.billing.listPrices()`: `response.data[].supportedBillingPeriods` **Added** * `clerk.billing.createPrice()`: * `request.supportedBillingPeriods` **Added** * `response.supportedBillingPeriods` **Added** * `clerk.emailAddresses.replaceForUser()`: **Added** * `clerk.billing.cancelSubscriptionItem()`: `response` **Changed** * `clerk.billing.extendSubscriptionItemFreeTrial()`: `response` **Changed** * `clerk.billing.createPriceTransition()`: `response` **Changed** * `clerk.billing.listStatements()`: `response.data[].groups[].items[].totals.discounts` **Added** * `clerk.billing.getStatement()`: `response.groups[].items[].totals.discounts` **Added** * `clerk.billing.getStatementPaymentAttempts()`: `response.data[].totals.discounts` **Added** * `clerk.m2m.createToken()`: * `request.minRemainingTtlSeconds` **Added** Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent e2624a8 commit 033e4b2

369 files changed

Lines changed: 33858 additions & 2977 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: 1439 additions & 243 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ generation:
2929
generateNewTests: false
3030
skipResponseBodyAssertions: false
3131
java:
32-
version: 4.1.5
32+
version: 5.0.0
3333
additionalDependencies: []
3434
additionalPlugins: []
3535
artifactID: backend-api

.speakeasy/workflow.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
speakeasyVersion: 1.761.9
1+
speakeasyVersion: 1.777.0
22
sources:
33
clerk-java-sdk:
44
sourceNamespace: clerk-java-sdk
5-
sourceRevisionDigest: sha256:e03f6d56009bfb224f266d3da9243c18c5d9f0b51f3e4be4c73c85156057379f
6-
sourceBlobDigest: sha256:5af09101a437c8ff1fdeca198717f89e09f460c7c50bac24a236be2bb1033c5a
5+
sourceRevisionDigest: sha256:d15346bde80f5abad95d77c66b96208b660c78544a4c4dca48b2068565d13717
6+
sourceBlobDigest: sha256:2ca2b3040b8261f61ac0c56c7fd9a942f7ad5ed5312eb73d44b7b9b648605b29
77
tags:
88
- latest
9-
- "2025-11-10"
9+
- "2026-05-12"
1010
targets:
1111
clerk-java:
1212
source: clerk-java-sdk
1313
sourceNamespace: clerk-java-sdk
14-
sourceRevisionDigest: sha256:e03f6d56009bfb224f266d3da9243c18c5d9f0b51f3e4be4c73c85156057379f
15-
sourceBlobDigest: sha256:5af09101a437c8ff1fdeca198717f89e09f460c7c50bac24a236be2bb1033c5a
14+
sourceRevisionDigest: sha256:d15346bde80f5abad95d77c66b96208b660c78544a4c4dca48b2068565d13717
15+
sourceBlobDigest: sha256:2ca2b3040b8261f61ac0c56c7fd9a942f7ad5ed5312eb73d44b7b9b648605b29
1616
codeSamplesNamespace: clerk-java-sdk-code-samples
17-
codeSamplesRevisionDigest: sha256:7aa77e3187d4d1dc439a3fa9a88126a6b7b9e9d0ecb5879593d1bd95065e3f80
17+
codeSamplesRevisionDigest: sha256:32607a6473b6c49509d6ece1b9e94b3a87ac3637e18aa700d8b08c90997c9cd9
1818
my-first-target:
1919
source: clerk-java-sdk
2020
sourceNamespace: clerk-java-sdk
@@ -26,7 +26,7 @@ workflow:
2626
sources:
2727
clerk-java-sdk:
2828
inputs:
29-
- location: https://raw.githubusercontent.com/clerk/openapi-specs/refs/heads/main/bapi/2025-11-10.yml
29+
- location: https://raw.githubusercontent.com/clerk/openapi-specs/refs/heads/main/bapi/2026-05-12.yml
3030
overlays:
3131
- location: https://raw.githubusercontent.com/clerk/openapi-specs/refs/heads/main/.speakeasy/bapi/fixes.yml
3232
registry:

README.md

Lines changed: 57 additions & 30 deletions
Large diffs are not rendered by default.

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,4 +418,14 @@ Based on:
418418
### Generated
419419
- [java v4.1.5] .
420420
### Releases
421-
- [Maven Central v4.1.5] https://central.sonatype.com/artifact/com.clerk/backend-api/4.1.5 - .
421+
- [Maven Central v4.1.5] https://central.sonatype.com/artifact/com.clerk/backend-api/4.1.5 - .
422+
423+
## 2026-06-11 20:04:20
424+
### Changes
425+
Based on:
426+
- OpenAPI Doc
427+
- Speakeasy CLI 1.777.0 (2.903.0) https://github.com/speakeasy-api/speakeasy
428+
### Generated
429+
- [java v5.0.0] .
430+
### Releases
431+
- [Maven Central v5.0.0] https://central.sonatype.com/artifact/com.clerk/backend-api/5.0.0 - .

build.gradle

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ plugins {
1616
id 'signing'
1717
// V2 publishing plugin (Sonatype Central Portal)
1818
id 'cl.franciscosolis.sonatype-central-upload' version '1.0.3'
19-
id "io.spring.dependency-management" version "1.1.6" apply false
2019
}
2120

2221
compileJava.options.encoding = "UTF-8"
@@ -84,47 +83,6 @@ dependencies {
8483
implementation 'jakarta.annotation:jakarta.annotation-api:3.0.0'
8584
}
8685

87-
ext {
88-
springBootVersion = '2.7.18'
89-
}
90-
91-
subprojects {
92-
if (name in [
93-
'backend-api-spring-boot-autoconfigure',
94-
'backend-api-spring-boot-starter'
95-
]) {
96-
// Ensure subprojects use the same group and version as root project
97-
group = rootProject.group
98-
version = rootProject.version
99-
100-
apply {
101-
plugin "java-library"
102-
plugin "io.spring.dependency-management"
103-
plugin "maven-publish"
104-
plugin "signing"
105-
plugin "cl.franciscosolis.sonatype-central-upload"
106-
}
107-
dependencyManagement {
108-
imports {
109-
mavenBom "org.springframework.boot:spring-boot-dependencies:${rootProject.springBootVersion}"
110-
}
111-
}
112-
repositories {
113-
mavenCentral()
114-
}
115-
java {
116-
withSourcesJar()
117-
withJavadocJar()
118-
}
119-
tasks.withType(JavaCompile).configureEach {
120-
options.release = 11
121-
}
122-
123-
// Apply publishing configuration to all subprojects - they'll check for publishingConfig internally
124-
apply from: rootProject.file('publishing.gradle')
125-
}
126-
}
127-
12886
ext {
12987
publishingConfig = [
13088
groupId: group,
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# AffiliationVerification
2+
3+
Verification details for the user-facing affiliation between the domain and the organization (e.g. affiliation_email_code).
4+
5+
6+
7+
## Fields
8+
9+
| Field | Type | Required | Description |
10+
| ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
11+
| `status` | *String* | :heavy_check_mark: | Status of the verification. It can be `unverified`, `verified`, `failed`, or `expired`. |
12+
| `strategy` | *String* | :heavy_check_mark: | Name of the strategy used to verify the domain |
13+
| `attempts` | *Optional\<Long>* | :heavy_check_mark: | How many attempts have been made to verify the domain |
14+
| `expireAt` | *Optional\<Long>* | :heavy_check_mark: | Unix timestamp of when the verification will expire |
15+
| `verifiedAt` | *Optional\<Long>* | :heavy_check_mark: | Unix timestamp of when ownership was verified. Only populated on `ownership_verification`; null on `affiliation_verification`.<br/> |
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# BillingPaymentAttemptDiscounts
2+
3+
Information about the discounts applied to the payment
4+
5+
6+
## Fields
7+
8+
| Field | Type | Required | Description |
9+
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
10+
| `proration` | [Optional\<BillingPaymentAttemptTotalsProration>](../../models/components/BillingPaymentAttemptTotalsProration.md) | :heavy_check_mark: | Proration details from passed subscription time |
11+
| `total` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A |

docs/models/components/BillingPaymentAttemptTotals.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ Totals breakdown for this payment attempt.
55

66
## Fields
77

8-
| Field | Type | Required | Description |
9-
| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ |
10-
| `subtotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A |
11-
| `baseFee` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A |
12-
| `taxTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A |
13-
| `grandTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A |
14-
| `perUnitTotals` | List\<[CommercePerUnitTotal](../../models/components/CommercePerUnitTotal.md)> | :heavy_minus_sign: | N/A |
15-
| `credits` | [JsonNullable\<BillingPaymentAttemptCredits>](../../models/components/BillingPaymentAttemptCredits.md) | :heavy_minus_sign: | N/A |
8+
| Field | Type | Required | Description |
9+
| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
10+
| `subtotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A |
11+
| `baseFee` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A |
12+
| `taxTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A |
13+
| `grandTotal` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A |
14+
| `perUnitTotals` | List\<[SchemasCommercePerUnitTotal](../../models/components/SchemasCommercePerUnitTotal.md)> | :heavy_minus_sign: | N/A |
15+
| `credits` | [JsonNullable\<BillingPaymentAttemptCredits>](../../models/components/BillingPaymentAttemptCredits.md) | :heavy_minus_sign: | N/A |
16+
| `discounts` | [JsonNullable\<BillingPaymentAttemptDiscounts>](../../models/components/BillingPaymentAttemptDiscounts.md) | :heavy_minus_sign: | Information about the discounts applied to the payment |
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# BillingPaymentAttemptTotalsProration
2+
3+
Proration details from passed subscription time
4+
5+
6+
## Fields
7+
8+
| Field | Type | Required | Description |
9+
| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
10+
| `amount` | [CommerceMoneyResponse](../../models/components/CommerceMoneyResponse.md) | :heavy_check_mark: | N/A |
11+
| `cycleDaysPassed` | *long* | :heavy_check_mark: | Number of days that have passed in the billing cycle |
12+
| `cycleDaysTotal` | *long* | :heavy_check_mark: | Total number of days in the billing cycle |
13+
| `cyclePassedPercent` | *double* | :heavy_check_mark: | Percentage of the billing cycle that has passed |

0 commit comments

Comments
 (0)