Skip to content

Commit 7194787

Browse files
committed
## Java SDK Changes Detected:
* `clerk.machines.rotateSecretKey()`: **Added** * `clerk.waitlistEntries.delete()`: **Added** * `clerk.commerce.extendSubscriptionItemFreeTrial()`: **Added** * `clerk.commerce.listSubscriptionItems()`: `request` **Changed**
1 parent 336f62e commit 7194787

File tree

407 files changed

+8838
-1939
lines changed

Some content is hidden

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

407 files changed

+8838
-1939
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.env
2+
.env.local
13
**/.speakeasy/temp/
24
**/.speakeasy/logs/
35
.speakeasy/reports

.speakeasy/gen.lock

Lines changed: 83 additions & 8 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ generation:
1616
auth:
1717
oAuth2ClientCredentialsEnabled: true
1818
oAuth2PasswordEnabled: false
19+
hoistGlobalSecurity: true
1920
tests:
2021
generateTests: true
2122
generateNewTests: false
2223
skipResponseBodyAssertions: false
2324
java:
24-
version: 3.2.0
25+
version: 3.3.0
2526
additionalDependencies: []
2627
additionalPlugins: []
2728
artifactID: backend-api
@@ -31,9 +32,10 @@ java:
3132
companyName: My Company
3233
companyURL: www.mycompany.com
3334
defaultErrorName: SDKError
34-
enableAsync: false
3535
enableCustomCodeRegions: false
36+
enableStreamingUploads: false
3637
flattenGlobalSecurity: true
38+
generateSpringBootStarter: true
3739
githubURL: github.com/owner/repo
3840
groupID: com.clerk
3941
imports:

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.606.9
1+
speakeasyVersion: 1.621.0
22
sources:
33
clerk-java-sdk:
44
sourceNamespace: clerk-java-sdk
5-
sourceRevisionDigest: sha256:50ec69cb208a504bcf1098f28817af6691e8e924eb4349d141989a927680dfe8
6-
sourceBlobDigest: sha256:f8e89b57ae783aa6cc659bdc7c1d7955947b0c989a2224290169d25eb18c65df
5+
sourceRevisionDigest: sha256:8a0bb9b60d98538847fe03fb23a22241be19f7f0bf3ced7c017bf1172723ad99
6+
sourceBlobDigest: sha256:dee56d92678973315fec5204a6f0aaad530965513edfbbc97723f50f669977ab
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1753143080
9+
- speakeasy-sdk-regen-1756771797
1010
- "2025-04-10"
1111
targets:
1212
clerk-java:
1313
source: clerk-java-sdk
1414
sourceNamespace: clerk-java-sdk
15-
sourceRevisionDigest: sha256:50ec69cb208a504bcf1098f28817af6691e8e924eb4349d141989a927680dfe8
16-
sourceBlobDigest: sha256:f8e89b57ae783aa6cc659bdc7c1d7955947b0c989a2224290169d25eb18c65df
15+
sourceRevisionDigest: sha256:8a0bb9b60d98538847fe03fb23a22241be19f7f0bf3ced7c017bf1172723ad99
16+
sourceBlobDigest: sha256:dee56d92678973315fec5204a6f0aaad530965513edfbbc97723f50f669977ab
1717
codeSamplesNamespace: clerk-java-sdk-code-samples
18-
codeSamplesRevisionDigest: sha256:ce2a259ab2e8d16332425f8ffa3e5d352574ad828ec574b02ed47ab8c262a028
18+
codeSamplesRevisionDigest: sha256:7b87ee86f6ab03307f336d56cdda6c99cf06a868f61086a75bd616bbcaf4fab1
1919
my-first-target:
2020
source: clerk-java-sdk
2121
sourceNamespace: clerk-java-sdk

README.md

Lines changed: 5 additions & 2 deletions
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:3.2.0'
54+
implementation 'com.clerk:backend-api:3.3.0'
5555
```
5656

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

@@ -238,6 +238,7 @@ public class MachineAuthentication {
238238
* [listPlans](docs/sdks/commerce/README.md#listplans) - List all commerce plans
239239
* [listSubscriptionItems](docs/sdks/commerce/README.md#listsubscriptionitems) - List all subscription items
240240
* [cancelSubscriptionItem](docs/sdks/commerce/README.md#cancelsubscriptionitem) - Cancel a subscription item
241+
* [extendSubscriptionItemFreeTrial](docs/sdks/commerce/README.md#extendsubscriptionitemfreetrial) - Extend free trial for a subscription item
241242

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

@@ -311,6 +312,7 @@ public class MachineAuthentication {
311312
* [update](docs/sdks/machines/README.md#update) - Update a machine
312313
* [delete](docs/sdks/machines/README.md#delete) - Delete a machine
313314
* [getSecretKey](docs/sdks/machines/README.md#getsecretkey) - Retrieve a machine secret key
315+
* [rotateSecretKey](docs/sdks/machines/README.md#rotatesecretkey) - Rotate a machine's secret key
314316
* [createScope](docs/sdks/machines/README.md#createscope) - Create a machine scope
315317
* [deleteScope](docs/sdks/machines/README.md#deletescope) - Delete a machine scope
316318
@@ -458,6 +460,7 @@ public class MachineAuthentication {
458460

459461
* [list](docs/sdks/waitlistentries/README.md#list) - List all waitlist entries
460462
* [create](docs/sdks/waitlistentries/README.md#create) - Create a waitlist entry
463+
* [delete](docs/sdks/waitlistentries/README.md#delete) - Delete a pending waitlist entry
461464
* [invite](docs/sdks/waitlistentries/README.md#invite) - Invite a waitlist entry
462465
* [reject](docs/sdks/waitlistentries/README.md#reject) - Reject a waitlist entry
463466

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,4 +348,14 @@ Based on:
348348
### Generated
349349
- [java v3.2.0] .
350350
### Releases
351-
- [Maven Central v3.2.0] https://central.sonatype.com/artifact/com.clerk/backend-api/3.2.0 - .
351+
- [Maven Central v3.2.0] https://central.sonatype.com/artifact/com.clerk/backend-api/3.2.0 - .
352+
353+
## 2025-09-19 00:09:04
354+
### Changes
355+
Based on:
356+
- OpenAPI Doc
357+
- Speakeasy CLI 1.621.0 (2.707.0) https://github.com/speakeasy-api/speakeasy
358+
### Generated
359+
- [java v3.3.0] .
360+
### Releases
361+
- [Maven Central v3.3.0] https://central.sonatype.com/artifact/com.clerk/backend-api/3.3.0 - .

build.gradle

Lines changed: 59 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
////////////////////////////////////////////////////////////////////////////////////////////
32
// This file is generated by Speakeasy and any edits will be lost in generation updates.
43
//
@@ -9,12 +8,15 @@
98
// of string where each string value is an additional line in the block) in gen.yaml.
109
////////////////////////////////////////////////////////////////////////////////////////////
1110

11+
1212
plugins {
1313
// Apply the java-library plugin for API and implementation separation.
1414
id 'java-library'
1515
id 'maven-publish'
1616
id 'signing'
17+
// V2 publishing plugin (Sonatype Central Portal)
1718
id 'cl.franciscosolis.sonatype-central-upload' version '1.0.3'
19+
id "io.spring.dependency-management" version "1.1.6" apply false
1820
}
1921

2022
compileJava.options.encoding = "UTF-8"
@@ -33,7 +35,7 @@ java {
3335

3436
model {
3537
tasks.generatePomFileForMavenPublication {
36-
destination = file("$buildDir/pom.xml")
38+
destination = file(layout.buildDirectory.file("pom.xml"))
3739
}
3840
}
3941

@@ -45,7 +47,7 @@ jar {
4547
archiveBaseName = "${artifactId}"
4648

4749
into("META-INF/maven/com.clerk/backend-api") {
48-
from("$buildDir/pom.xml")
50+
from(layout.buildDirectory.file("pom.xml"))
4951
}
5052
}
5153

@@ -58,7 +60,7 @@ javadoc {
5860
options.addStringOption('Xdoclint:none', '-quiet')
5961
}
6062

61-
tasks.withType(Javadoc) {
63+
tasks.withType(Javadoc).configureEach {
6264
failOnError = false
6365
options.addStringOption('Xdoclint:none', '-quiet')
6466
}
@@ -74,93 +76,68 @@ sourcesJar {
7476
javadocJar {
7577
archiveBaseName = "${artifactId}"
7678
}
77-
sonatypeCentralUpload {
78-
// This is your Sonatype generated username
79-
username = System.getenv("SONATYPE_USERNAME")
80-
// This is your sonatype generated password
81-
password = System.getenv("SONATYPE_PASSWORD")
82-
83-
// This is a list of files to upload. Ideally you would point to your jar file, source and javadoc jar (required by central)
84-
archives = files(
85-
"$buildDir/libs/${artifactId}-${version}.jar",
86-
"$buildDir/libs/${artifactId}-${version}-sources.jar",
87-
"$buildDir/libs/${artifactId}-${version}-javadoc.jar"
88-
)
89-
90-
// This is the pom file to upload. This is required by central
91-
pom = file("$buildDir/pom.xml")
92-
93-
// This is your PGP private key. This is required to sign your files
94-
signingKey = System.getenv("SONATYPE_SIGNING_KEY")
95-
// This is your PGP private key passphrase to decrypt your private key
96-
signingKeyPassphrase = System.getenv("SIGNING_KEY_PASSPHRASE")
79+
80+
dependencies {
81+
api 'com.fasterxml.jackson.core:jackson-annotations:2.18.2'
82+
implementation 'com.fasterxml.jackson.core:jackson-databind:2.18.2'
83+
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.18.2'
84+
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.18.2'
85+
api('org.openapitools:jackson-databind-nullable:0.2.6') {exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'}
86+
implementation 'commons-io:commons-io:2.18.0'
9787
}
9888

89+
ext {
90+
springBootVersion = '2.7.18'
91+
}
9992

100-
publishing {
101-
102-
publications {
103-
maven(MavenPublication) {
104-
// note that properties can't yet be used below!
105-
// https://github.com/gradle/gradle/issues/18619
106-
groupId = "com.clerk"
107-
artifactId = "backend-api"
108-
version = "3.2.0"
109-
110-
from components.java
111-
112-
pom {
113-
properties = [
114-
'maven.compiler.source': '11',
115-
'maven.compiler.target': '11',
116-
]
117-
name = 'My Company Java SDK'
118-
description = 'SDK enabling Java developers to easily integrate with the My Company API.'
119-
url = 'https://github.com/owner/repo'
120-
scm {
121-
url = 'github.com/owner/repo'
122-
connection = 'scm:git:ssh://[email protected]/owner/repo.git'
123-
}
124-
licenses {
125-
license {
126-
name = 'The MIT License (MIT)'
127-
url = 'https://mit-license.org/'
128-
}
129-
}
130-
developers {
131-
developer {
132-
name = 'My Company'
133-
organization = 'My Company'
134-
135-
}
136-
}
137-
organization {
138-
name = 'My Company'
139-
url = 'www.mycompany.com'
140-
}
141-
}
93+
subprojects {
94+
// Ensure subprojects use the same group and version as root project
95+
group = rootProject.group
96+
version = rootProject.version
97+
98+
apply {
99+
plugin "java-library"
100+
plugin "io.spring.dependency-management"
101+
plugin "maven-publish"
102+
plugin "signing"
103+
plugin "cl.franciscosolis.sonatype-central-upload"
104+
}
105+
dependencyManagement {
106+
imports {
107+
mavenBom "org.springframework.boot:spring-boot-dependencies:${rootProject.springBootVersion}"
142108
}
143109
}
144-
}
110+
repositories {
111+
mavenCentral()
112+
}
113+
java {
114+
withSourcesJar()
115+
withJavadocJar()
116+
}
117+
tasks.withType(JavaCompile).configureEach {
118+
options.release = 11
119+
}
145120

146-
if (!project.hasProperty('skip.signing')) {
147-
signing {
148-
def signingKey = findProperty("signingKey")
149-
def signingPassphrase = findProperty("signingPassphrase")
150-
useInMemoryPgpKeys(signingKey, signingPassphrase)
151-
sign publishing.publications.maven
121+
model {
122+
tasks.generatePomFileForMavenPublication {
123+
destination = file(layout.buildDirectory.file("pom.xml"))
124+
}
152125
}
126+
// Apply publishing configuration to all subprojects - they'll check for publishingConfig internally
127+
apply from: rootProject.file('publishing.gradle')
153128
}
154129

155-
156-
157-
dependencies {
158-
api 'com.fasterxml.jackson.core:jackson-annotations:2.18.2'
159-
implementation 'com.fasterxml.jackson.core:jackson-databind:2.18.2'
160-
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.18.2'
161-
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.18.2'
162-
api('org.openapitools:jackson-databind-nullable:0.2.6') {exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'}
163-
implementation 'commons-io:commons-io:2.18.0'
130+
ext {
131+
publishingConfig = [
132+
groupId: group,
133+
artifactId: artifactId,
134+
version: version,
135+
name: "My Company Java SDK",
136+
description: "SDK enabling Java developers to easily integrate with the My Company API.",
137+
publicationName: "maven"
138+
]
164139
}
165140

141+
apply from: 'publishing.gradle'
142+
166143
apply from: 'build-extras.gradle'
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# ExtendFreeTrialRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description | Example |
7+
| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
8+
| `extendTo` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | RFC3339 timestamp to extend the free trial to.<br/>Must be in the future and not more than 365 days from now. | 2026-01-08T00:00:00Z |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# DeleteWaitlistEntryRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| -------------------------------------- | -------------------------------------- | -------------------------------------- | -------------------------------------- |
8+
| `waitlistEntryId` | *String* | :heavy_check_mark: | The ID of the waitlist entry to delete |
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# DeleteWaitlistEntryResponse
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
8+
| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation |
9+
| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
10+
| `rawResponse` | [HttpResponse\<InputStream>](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
11+
| `deletedObject` | [Optional\<DeletedObject>](../../models/components/DeletedObject.md) | :heavy_minus_sign: | Deleted Object |

0 commit comments

Comments
 (0)