Skip to content

Commit

Permalink
Merge pull request #36 from clerk/speakeasy-sdk-regen-1730832193
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 1.0.0
  • Loading branch information
speakeasybot authored Nov 5, 2024
2 parents 894c3e7 + 4065bab commit 5c7c58c
Show file tree
Hide file tree
Showing 523 changed files with 7,678 additions and 6,375 deletions.
3,426 changes: 2,250 additions & 1,176 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ generation:
requestResponseComponentNamesFeb2024: true
auth:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
java:
version: 0.3.0-beta.4
version: 1.0.0
additionalDependencies: []
additionalPlugins: []
artifactID: backend-api
Expand Down
20 changes: 12 additions & 8 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
speakeasyVersion: 1.385.0
speakeasyVersion: 1.428.0
sources:
clerk-java-sdk:
sourceNamespace: clerk-java-sdk
sourceRevisionDigest: sha256:547ac0cdc4df29c4395905aecf9e3715ccd81c463706682d31eb5a0a094075b5
sourceBlobDigest: sha256:def78a57452610c201cfa2962c4354e41a16ddf30c45520ee396f78452eceb7e
sourceRevisionDigest: sha256:b654e43e024e196fe7824140a1352efa4a12b63d9fda5373be91d01780dcd4b2
sourceBlobDigest: sha256:b7d68649cec7493887787a96c7bc78466ced094c923f7bdbf6f7600aa86e3b3a
tags:
- latest
- main
targets:
clerk-java:
source: clerk-java-sdk
sourceNamespace: clerk-java-sdk
sourceRevisionDigest: sha256:547ac0cdc4df29c4395905aecf9e3715ccd81c463706682d31eb5a0a094075b5
sourceBlobDigest: sha256:def78a57452610c201cfa2962c4354e41a16ddf30c45520ee396f78452eceb7e
outLocation: /github/workspace/repo
sourceRevisionDigest: sha256:b654e43e024e196fe7824140a1352efa4a12b63d9fda5373be91d01780dcd4b2
sourceBlobDigest: sha256:b7d68649cec7493887787a96c7bc78466ced094c923f7bdbf6f7600aa86e3b3a
codeSamplesNamespace: clerk-java-sdk-code-samples
codeSamplesRevisionDigest: sha256:b018b9dd693908629edb929f8bf30c507fa87d0d14227cd6ba0f5c857cd15bfe
my-first-target:
source: clerk-java-sdk
sourceNamespace: clerk-java-sdk
sourceRevisionDigest: sha256:5e10a06ed81708645c450c8bbac2ac9a99d115ea4929af0d91ecb2f6419d1500
sourceBlobDigest: sha256:be6a2adf86086a55368c73204dfb84b5ca2f9d8514f771aff33857624a212e56
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
speakeasyVersion: v1.385.0
speakeasyVersion: latest
sources:
clerk-java-sdk:
inputs:
Expand All @@ -42,3 +42,7 @@ workflow:
ossrhPassword: $ossrh_password
gpgSecretKey: $gpg_secret_key
gpgPassPhrase: $gpg_pass_phrase
codeSamples:
registry:
location: registry.speakeasyapi.dev/clerk/clerk/clerk-java-sdk-code-samples
blocking: false
4 changes: 4 additions & 0 deletions .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ targets:
ossrhPassword: $ossrh_password
gpgSecretKey: $gpg_secret_key
gpgPassPhrase: $gpg_pass_phrase
codeSamples:
registry:
location: registry.speakeasyapi.dev/clerk/clerk/clerk-java-sdk-code-samples
blocking: false
412 changes: 188 additions & 224 deletions README.md

Large diffs are not rendered by default.

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

## 2024-11-05 18:43:09
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.428.0 (2.447.4) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v1.0.0] .
### Releases
- [Maven Central v1.0.0] https://central.sonatype.com/artifact/com.clerk/backend-api/1.0.0 - .
29 changes: 9 additions & 20 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,25 @@
package hello.world;

import com.clerk.backend_api.Clerk;
import com.clerk.backend_api.models.errors.SDKError;
import com.clerk.backend_api.models.errors.ClerkErrors;
import com.clerk.backend_api.models.operations.GetEmailAddressResponse;
import java.lang.Exception;

public class Application {

public static void main(String[] args) throws Exception {
try {
Clerk sdk = Clerk.builder()
public static void main(String[] args) throws ClerkErrors, Exception {

Clerk sdk = Clerk.builder()
.bearerAuth("<YOUR_BEARER_TOKEN_HERE>")
.build();
.build();

GetEmailAddressResponse res = sdk.emailAddresses().get()
.emailAddressId("<value>")
GetEmailAddressResponse res = sdk.emailAddresses().get()
.emailAddressId("<id>")
.call();

if (res.emailAddress().isPresent()) {
// handle response
}
} catch (com.clerk.backend_api.models.errors.ClerkErrors e) {
// handle exception
throw e;
} catch (SDKError e) {
// handle exception
throw e;
} catch (Exception e) {
// handle exception
throw e;
if (res.emailAddress().isPresent()) {
// handle response
}

}
}
```
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ tasks.withType(Javadoc) {
}

group = "com.clerk"
version = "0.3.0-beta.4"
version = "1.0.0"

sourcesJar {
archiveBaseName = "backend-api"
Expand Down Expand Up @@ -101,7 +101,7 @@ publishing {
maven(MavenPublication) {
groupId = 'com.clerk'
artifactId = 'backend-api'
version = '0.3.0-beta.4'
version = '1.0.0'

from components.java

Expand Down
6 changes: 4 additions & 2 deletions docs/models/components/ActorToken.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# ActorToken

Success


## Fields

Expand All @@ -10,7 +12,7 @@
| `status` | [ActorTokenStatus](../../models/components/ActorTokenStatus.md) | :heavy_check_mark: | N/A |
| `userId` | *String* | :heavy_check_mark: | N/A |
| `actor` | [ActorTokenActor](../../models/components/ActorTokenActor.md) | :heavy_check_mark: | N/A |
| `token` | *JsonNullable<String>* | :heavy_minus_sign: | N/A |
| `url` | *JsonNullable<String>* | :heavy_minus_sign: | N/A |
| `token` | *JsonNullable\<String>* | :heavy_minus_sign: | N/A |
| `url` | *JsonNullable\<String>* | :heavy_minus_sign: | N/A |
| `createdAt` | *long* | :heavy_check_mark: | Unix timestamp of creation.<br/> |
| `updatedAt` | *long* | :heavy_check_mark: | Unix timestamp of last update.<br/> |
4 changes: 2 additions & 2 deletions docs/models/components/Admin.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| `status` | [AdminVerificationStatus](../../models/components/AdminVerificationStatus.md) | :heavy_check_mark: | N/A |
| `strategy` | [VerificationStrategy](../../models/components/VerificationStrategy.md) | :heavy_check_mark: | N/A |
| `attempts` | *JsonNullable<Long>* | :heavy_minus_sign: | N/A |
| `expireAt` | *JsonNullable<Long>* | :heavy_minus_sign: | N/A |
| `attempts` | *JsonNullable\<Long>* | :heavy_minus_sign: | N/A |
| `expireAt` | *JsonNullable\<Long>* | :heavy_minus_sign: | N/A |
22 changes: 12 additions & 10 deletions docs/models/components/AllowlistIdentifier.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
# AllowlistIdentifier

Success


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| `object` | [Optional<AllowlistIdentifierObject>](../../models/components/AllowlistIdentifierObject.md) | :heavy_minus_sign: | String representing the object's type. Objects of the same type share the same value.<br/> |
| `id` | *Optional<String>* | :heavy_minus_sign: | N/A |
| `invitationId` | *Optional<String>* | :heavy_minus_sign: | N/A |
| `identifier` | *Optional<String>* | :heavy_minus_sign: | An email address or a phone number.<br/> |
| `identifierType` | [Optional<IdentifierType>](../../models/components/IdentifierType.md) | :heavy_minus_sign: | N/A |
| `instanceId` | *Optional<String>* | :heavy_minus_sign: | N/A |
| `createdAt` | *Optional<Long>* | :heavy_minus_sign: | Unix timestamp of creation<br/> |
| `updatedAt` | *Optional<Long>* | :heavy_minus_sign: | Unix timestamp of last update.<br/> |
| Field | Type | Required | Description |
| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| `object` | [Optional\<AllowlistIdentifierObject>](../../models/components/AllowlistIdentifierObject.md) | :heavy_minus_sign: | String representing the object's type. Objects of the same type share the same value.<br/> |
| `id` | *Optional\<String>* | :heavy_minus_sign: | N/A |
| `invitationId` | *Optional\<String>* | :heavy_minus_sign: | N/A |
| `identifier` | *Optional\<String>* | :heavy_minus_sign: | An email address or a phone number.<br/> |
| `identifierType` | [Optional\<IdentifierType>](../../models/components/IdentifierType.md) | :heavy_minus_sign: | N/A |
| `instanceId` | *Optional\<String>* | :heavy_minus_sign: | N/A |
| `createdAt` | *Optional\<Long>* | :heavy_minus_sign: | Unix timestamp of creation<br/> |
| `updatedAt` | *Optional\<Long>* | :heavy_minus_sign: | Unix timestamp of last update.<br/> |
12 changes: 6 additions & 6 deletions docs/models/components/AttributeMapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

## Fields

| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `userId` | *Optional<String>* | :heavy_minus_sign: | N/A |
| `emailAddress` | *Optional<String>* | :heavy_minus_sign: | N/A |
| `firstName` | *Optional<String>* | :heavy_minus_sign: | N/A |
| `lastName` | *Optional<String>* | :heavy_minus_sign: | N/A |
| Field | Type | Required | Description |
| ------------------- | ------------------- | ------------------- | ------------------- |
| `userId` | *Optional\<String>* | :heavy_minus_sign: | N/A |
| `emailAddress` | *Optional\<String>* | :heavy_minus_sign: | N/A |
| `firstName` | *Optional\<String>* | :heavy_minus_sign: | N/A |
| `lastName` | *Optional\<String>* | :heavy_minus_sign: | N/A |
Loading

0 comments on commit 5c7c58c

Please sign in to comment.