Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.444.1
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Nov 23, 2024
1 parent df3e4c3 commit 9245225
Show file tree
Hide file tree
Showing 34 changed files with 565 additions and 877 deletions.
24 changes: 13 additions & 11 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,34 +1,33 @@
lockVersion: 2.0.0
id: fd2a78ee-286d-4e3c-ab3c-507a8f89f511
management:
docChecksum: c83994f98c3e17c6753afdeef51be898
docChecksum: 9fbd6321083c0c2d44365ff84b8e2cb8
docVersion: 1.0.0
speakeasyVersion: 1.422.2
generationVersion: 2.442.11
releaseVersion: 0.8.3
configChecksum: 1fd95fdd632f62e3f6c998bd21d550b2
speakeasyVersion: 1.444.1
generationVersion: 2.461.4
releaseVersion: 0.9.0
configChecksum: 515db2290a0747441965baf9c332e244
repoURL: https://github.com/ding-live/ding-java.git
repoSubDirectory: .
published: true
features:
java:
additionalDependencies: 0.1.0
core: 3.30.6
core: 3.32.1
examples: 2.81.3
flattening: 2.81.1
globalSecurity: 2.82.7
globalSecurityCallbacks: 0.1.0
globalServerURLs: 2.82.1
sdkHooks: 0.1.0
unions: 0.0.5
unions: 0.0.6
generatedFiles:
- .gitattributes
- CONTRIBUTING.md
- USAGE.md
- build.gradle
- docs/models/errors/Code.md
- docs/models/errors/ErrorResponse.md
- docs/models/errors/ErrorResponse1.md
- docs/models/operations/CheckResponse.md
- docs/models/operations/CreateAuthenticationResponse.md
- docs/models/operations/FeedbackResponse.md
Expand Down Expand Up @@ -56,7 +55,6 @@ generatedFiles:
- docs/models/shared/CreateCheckResponse.md
- docs/models/shared/DeliveryStatus.md
- docs/models/shared/DeviceType.md
- docs/models/shared/ErrorResponse.md
- docs/models/shared/Events.md
- docs/models/shared/FeedbackRequest.md
- docs/models/shared/FeedbackRequestStatus.md
Expand Down Expand Up @@ -86,7 +84,6 @@ generatedFiles:
- src/main/java/live/ding/dingsdk/models/errors/AuthException.java
- src/main/java/live/ding/dingsdk/models/errors/Code.java
- src/main/java/live/ding/dingsdk/models/errors/ErrorResponse.java
- src/main/java/live/ding/dingsdk/models/errors/ErrorResponse1.java
- src/main/java/live/ding/dingsdk/models/errors/SDKError.java
- src/main/java/live/ding/dingsdk/models/operations/CheckRequestBuilder.java
- src/main/java/live/ding/dingsdk/models/operations/CheckResponse.java
Expand Down Expand Up @@ -122,7 +119,6 @@ generatedFiles:
- src/main/java/live/ding/dingsdk/models/shared/CreateCheckResponse.java
- src/main/java/live/ding/dingsdk/models/shared/DeliveryStatus.java
- src/main/java/live/ding/dingsdk/models/shared/DeviceType.java
- src/main/java/live/ding/dingsdk/models/shared/ErrorResponse.java
- src/main/java/live/ding/dingsdk/models/shared/Events.java
- src/main/java/live/ding/dingsdk/models/shared/FeedbackRequest.java
- src/main/java/live/ding/dingsdk/models/shared/FeedbackRequestStatus.java
Expand Down Expand Up @@ -158,6 +154,7 @@ generatedFiles:
- src/main/java/live/ding/dingsdk/utils/OneOfDeserializer.java
- src/main/java/live/ding/dingsdk/utils/Options.java
- src/main/java/live/ding/dingsdk/utils/PathParamsMetadata.java
- src/main/java/live/ding/dingsdk/utils/QueryParameter.java
- src/main/java/live/ding/dingsdk/utils/QueryParameters.java
- src/main/java/live/ding/dingsdk/utils/QueryParamsMetadata.java
- src/main/java/live/ding/dingsdk/utils/RequestBody.java
Expand All @@ -172,6 +169,7 @@ generatedFiles:
- src/main/java/live/ding/dingsdk/utils/SpeakeasyMetadata.java
- src/main/java/live/ding/dingsdk/utils/TypedObject.java
- src/main/java/live/ding/dingsdk/utils/Types.java
- src/main/java/live/ding/dingsdk/utils/Utf8UrlEncoder.java
- src/main/java/live/ding/dingsdk/utils/Utils.java
examples:
check:
Expand Down Expand Up @@ -200,6 +198,8 @@ examples:
application/json: {"uuid": "123e4567-e89b-12d3-a456-4266141740a0"}
default:
application/json: {"code": "invalid_phone_number", "doc_url": "https://docs.prelude.so/api-reference/errors#invalid_phone_number", "message": "+0 is not a valid phone number"}
"400":
application/json: {"code": "invalid_phone_number", "doc_url": "https://docs.prelude.so/api-reference/errors#invalid_phone_number", "message": "+0 is not a valid phone number"}
retry:
speakeasy-default-retry:
responses:
Expand Down Expand Up @@ -229,3 +229,5 @@ examples:
application/json: {"events": [], "phone_number": "+1234567890"}
default:
application/json: {"code": "invalid_phone_number", "doc_url": "https://docs.prelude.so/api-reference/errors#invalid_phone_number", "message": "+0 is not a valid phone number"}
"400":
application/json: {"code": "invalid_phone_number", "doc_url": "https://docs.prelude.so/api-reference/errors#invalid_phone_number", "message": "+0 is not a valid phone number"}
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
speakeasyVersion: 1.422.2
speakeasyVersion: 1.444.1
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:0306ab5b925614b1d6f8d720d9cc121b8e6d6bf6a654af1264da72725e40d521
sourceBlobDigest: sha256:53cfa7778a132bc5e0a8ddb6d02fbbe345b15d571d7748cc4978523211008ea3
sourceRevisionDigest: sha256:9a4ed39095061f2a06d88d66bc923369d5457dfb8878204e1dd2fdeee3b42615
sourceBlobDigest: sha256:5af8c0b479857b3c3702e2f951b863313e7be5db05d7f80a994bb3bb138ccdaa
tags:
- latest
- main
- speakeasy-sdk-regen-1730160561
targets:
live.ding.dingsdk:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:0306ab5b925614b1d6f8d720d9cc121b8e6d6bf6a654af1264da72725e40d521
sourceBlobDigest: sha256:53cfa7778a132bc5e0a8ddb6d02fbbe345b15d571d7748cc4978523211008ea3
sourceRevisionDigest: sha256:9a4ed39095061f2a06d88d66bc923369d5457dfb8878204e1dd2fdeee3b42615
sourceBlobDigest: sha256:5af8c0b479857b3c3702e2f951b863313e7be5db05d7f80a994bb3bb138ccdaa
codeSamplesNamespace: my-source-code-samples
codeSamplesRevisionDigest: sha256:9003fae7a6b530fc5bd43595728f64817b6e00f3997d8ace5b690c6ead134cac
codeSamplesRevisionDigest: sha256:0c35eeaad14d0a77707f245121cefe6fef9ab77a7539b9ae672d353ce76387c2
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
83 changes: 18 additions & 65 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ The samples below show how a published SDK artifact is used:

Gradle:
```groovy
implementation 'live.ding:dingsdk:0.8.3'
implementation 'live.ding:dingsdk:0.9.0'
```

Maven:
```xml
<dependency>
<groupId>live.ding</groupId>
<artifactId>dingsdk</artifactId>
<version>0.8.3</version>
<version>0.9.0</version>
</dependency>
```

Expand Down Expand Up @@ -156,14 +156,14 @@ package hello.world;

import java.lang.Exception;
import live.ding.dingsdk.Ding;
import live.ding.dingsdk.models.errors.ErrorResponse1;
import live.ding.dingsdk.models.errors.ErrorResponse;
import live.ding.dingsdk.models.operations.RetryResponse;
import live.ding.dingsdk.models.shared.RetryAuthenticationRequest;
import live.ding.dingsdk.models.shared.Security;

public class Application {

public static void main(String[] args) throws ErrorResponse1, Exception {
public static void main(String[] args) throws ErrorResponse, Exception {

Ding sdk = Ding.builder()
.security(Security.builder()
Expand Down Expand Up @@ -197,14 +197,15 @@ package hello.world;

import java.lang.Exception;
import live.ding.dingsdk.Ding;
import live.ding.dingsdk.models.errors.ErrorResponse;
import live.ding.dingsdk.models.operations.FeedbackResponse;
import live.ding.dingsdk.models.shared.FeedbackRequest;
import live.ding.dingsdk.models.shared.FeedbackRequestStatus;
import live.ding.dingsdk.models.shared.Security;

public class Application {

public static void main(String[] args) throws Exception {
public static void main(String[] args) throws ErrorResponse, Exception {

Ding sdk = Ding.builder()
.security(Security.builder()
Expand Down Expand Up @@ -239,12 +240,13 @@ package hello.world;

import java.lang.Exception;
import live.ding.dingsdk.Ding;
import live.ding.dingsdk.models.errors.ErrorResponse;
import live.ding.dingsdk.models.operations.GetAuthenticationStatusResponse;
import live.ding.dingsdk.models.shared.Security;

public class Application {

public static void main(String[] args) throws Exception {
public static void main(String[] args) throws ErrorResponse, Exception {

Ding sdk = Ding.builder()
.security(Security.builder()
Expand Down Expand Up @@ -273,13 +275,13 @@ package hello.world;

import java.lang.Exception;
import live.ding.dingsdk.Ding;
import live.ding.dingsdk.models.errors.ErrorResponse1;
import live.ding.dingsdk.models.errors.ErrorResponse;
import live.ding.dingsdk.models.operations.LookupResponse;
import live.ding.dingsdk.models.shared.Security;

public class Application {

public static void main(String[] args) throws ErrorResponse1, Exception {
public static void main(String[] args) throws ErrorResponse, Exception {

Ding sdk = Ding.builder()
.security(Security.builder()
Expand Down Expand Up @@ -325,58 +327,9 @@ public class Application {
<!-- Start Server Selection [server] -->
## Server Selection

### Select Server by Index

You can override the default server globally by passing a server index to the `serverIndex` builder method when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:

| # | Server | Variables |
| - | ------ | --------- |
| 0 | `https://api.ding.live/v1` | None |

#### Example

```java
package hello.world;

import java.lang.Exception;
import live.ding.dingsdk.Ding;
import live.ding.dingsdk.models.errors.ErrorResponse;
import live.ding.dingsdk.models.operations.CheckResponse;
import live.ding.dingsdk.models.shared.CreateCheckRequest;
import live.ding.dingsdk.models.shared.Security;

public class Application {

public static void main(String[] args) throws ErrorResponse, Exception {

Ding sdk = Ding.builder()
.serverIndex(0)
.security(Security.builder()
.apiKey("YOUR_API_KEY")
.build())
.build();

CreateCheckRequest req = CreateCheckRequest.builder()
.authenticationUuid("eebe792b-2fcc-44a0-87f1-650e79259e02")
.checkCode("123456")
.customerUuid("64f66a7c-4b2c-4131-a8ff-d5b954cca05f")
.build();

CheckResponse res = sdk.otp().check()
.request(req)
.call();

if (res.createCheckResponse().isPresent()) {
// handle response
}
}
}
```


### Override Server URL Per-Client

The default server can also be overridden globally by passing a URL to the `serverURL` builder method when initializing the SDK client instance. For example:
The default server can also be overridden globally using the `.serverURL(String serverUrl)` builder method when initializing the SDK client instance. For example:
```java
package hello.world;

Expand Down Expand Up @@ -423,10 +376,10 @@ Handling errors in this SDK should largely match your expectations. All operatio

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 `check` method throws the following exceptions:

| Error Type | Status Code | Content Type |
| --------------------------- | --------------------------- | --------------------------- |
| models/errors/ErrorResponse | 400 | application/json |
| models/errors/SDKError | 4XX, 5XX | \*/\* |
| Error Type | Status Code | Content Type |
| --------------------------- | ----------- | ---------------- |
| models/errors/ErrorResponse | 400 | application/json |
| models/errors/SDKError | 4XX, 5XX | \*/\* |

### Example

Expand Down Expand Up @@ -475,9 +428,9 @@ public class Application {

This SDK supports the following security scheme globally:

| Name | Type | Scheme |
| -------- | -------- | -------- |
| `apiKey` | apiKey | API key |
| Name | Type | Scheme |
| -------- | ------ | ------- |
| `apiKey` | apiKey | API key |

You can set the security parameters through the `security` builder method when initializing the SDK client instance. For example:
```java
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,4 +264,14 @@ Based on:
### Generated
- [java v0.8.3] .
### Releases
- [Maven Central v0.8.3] https://central.sonatype.com/artifact/live.ding/dingsdk/0.8.3 - .
- [Maven Central v0.8.3] https://central.sonatype.com/artifact/live.ding/dingsdk/0.8.3 - .

## 2024-11-23 00:10:12
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.444.1 (2.461.4) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v0.9.0] .
### Releases
- [Maven Central v0.9.0] https://central.sonatype.com/artifact/live.ding/dingsdk/0.9.0 - .
14 changes: 8 additions & 6 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ package hello.world;

import java.lang.Exception;
import live.ding.dingsdk.Ding;
import live.ding.dingsdk.models.errors.ErrorResponse1;
import live.ding.dingsdk.models.errors.ErrorResponse;
import live.ding.dingsdk.models.operations.RetryResponse;
import live.ding.dingsdk.models.shared.RetryAuthenticationRequest;
import live.ding.dingsdk.models.shared.Security;

public class Application {

public static void main(String[] args) throws ErrorResponse1, Exception {
public static void main(String[] args) throws ErrorResponse, Exception {

Ding sdk = Ding.builder()
.security(Security.builder()
Expand Down Expand Up @@ -134,14 +134,15 @@ package hello.world;

import java.lang.Exception;
import live.ding.dingsdk.Ding;
import live.ding.dingsdk.models.errors.ErrorResponse;
import live.ding.dingsdk.models.operations.FeedbackResponse;
import live.ding.dingsdk.models.shared.FeedbackRequest;
import live.ding.dingsdk.models.shared.FeedbackRequestStatus;
import live.ding.dingsdk.models.shared.Security;

public class Application {

public static void main(String[] args) throws Exception {
public static void main(String[] args) throws ErrorResponse, Exception {

Ding sdk = Ding.builder()
.security(Security.builder()
Expand Down Expand Up @@ -176,12 +177,13 @@ package hello.world;

import java.lang.Exception;
import live.ding.dingsdk.Ding;
import live.ding.dingsdk.models.errors.ErrorResponse;
import live.ding.dingsdk.models.operations.GetAuthenticationStatusResponse;
import live.ding.dingsdk.models.shared.Security;

public class Application {

public static void main(String[] args) throws Exception {
public static void main(String[] args) throws ErrorResponse, Exception {

Ding sdk = Ding.builder()
.security(Security.builder()
Expand Down Expand Up @@ -210,13 +212,13 @@ package hello.world;

import java.lang.Exception;
import live.ding.dingsdk.Ding;
import live.ding.dingsdk.models.errors.ErrorResponse1;
import live.ding.dingsdk.models.errors.ErrorResponse;
import live.ding.dingsdk.models.operations.LookupResponse;
import live.ding.dingsdk.models.shared.Security;

public class Application {

public static void main(String[] args) throws ErrorResponse1, Exception {
public static void main(String[] args) throws ErrorResponse, Exception {

Ding sdk = Ding.builder()
.security(Security.builder()
Expand Down
Loading

0 comments on commit 9245225

Please sign in to comment.