Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.205.2
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Mar 11, 2024
1 parent 3031c61 commit 9ddd9d5
Show file tree
Hide file tree
Showing 17 changed files with 87 additions and 56 deletions.
18 changes: 9 additions & 9 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
lockVersion: 2.0.0
id: fd2a78ee-286d-4e3c-ab3c-507a8f89f511
management:
docChecksum: 01bd42610039f89b431afa7eb1a3c56c
docChecksum: a2a29dc8a8df536c8b2553db26987fad
docVersion: 1.0.0
speakeasyVersion: internal
generationVersion: 2.263.3
releaseVersion: 0.4.0
configChecksum: 42c8d1f652d0f14447f13f9cc3249d23
speakeasyVersion: 1.205.2
generationVersion: 2.279.1
releaseVersion: 0.4.1
configChecksum: cd13d3a63f6e78edeb94a9e709461c79
repoURL: https://github.com/ding-live/ding-java.git
repoSubDirectory: .
published: true
features:
java:
core: 3.5.1
core: 3.5.2
examples: 2.81.3
flattening: 2.81.1
globalSecurity: 2.81.2
globalSecurity: 2.81.4
globalServerURLs: 2.82.1
generatedFiles:
- lib/src/main/java/live/ding/dingSdk/SDKConfiguration.java
Expand Down Expand Up @@ -52,7 +52,7 @@ generatedFiles:
- lib/src/main/java/live/ding/dingSdk/utils/Types.java
- lib/src/main/java/live/ding/dingSdk/utils/Utils.java
- lib/src/main/java/live/ding/dingSdk/models/operations/CheckResponse.java
- lib/src/main/java/live/ding/dingSdk/models/operations/CreateAutenticationResponse.java
- lib/src/main/java/live/ding/dingSdk/models/operations/CreateAuthenticationResponse.java
- lib/src/main/java/live/ding/dingSdk/models/operations/RetryResponse.java
- lib/src/main/java/live/ding/dingSdk/models/operations/LookupRequest.java
- lib/src/main/java/live/ding/dingSdk/models/operations/LookupResponse.java
Expand All @@ -72,7 +72,7 @@ generatedFiles:
- lib/src/main/java/live/ding/dingSdk/models/shared/LookupResponse.java
- lib/src/main/java/live/ding/dingSdk/models/shared/Security.java
- docs/models/operations/CheckResponse.md
- docs/models/operations/CreateAutenticationResponse.md
- docs/models/operations/CreateAuthenticationResponse.md
- docs/models/operations/RetryResponse.md
- docs/models/operations/LookupRequest.md
- docs/models/operations/LookupResponse.md
Expand Down
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The Ding Java library provides convenient access to the Ding API from applicatio
### Gradle

```groovy
implementation 'live.ding.dingSdk:ding:0.4.0'
implementation 'live.ding.dingSdk:ding:0.4.1'
```
<!-- End SDK Installation [installation] -->

Expand All @@ -26,7 +26,7 @@ Send an OTP code to a user's phone number.
package hello.world;

import live.ding.dingSdk.Ding;
import live.ding.dingSdk.models.operations.CreateAutenticationResponse;
import live.ding.dingSdk.models.operations.CreateAuthenticationResponse;
import live.ding.dingSdk.models.shared.CreateAuthenticationRequest;
import live.ding.dingSdk.models.shared.DeviceType;
import live.ding.dingSdk.models.shared.Security;
Expand All @@ -42,21 +42,22 @@ public class Application {
.build();

live.ding.dingSdk.models.shared.CreateAuthenticationRequest req = new CreateAuthenticationRequest(
"eae192ab-9e1e-4b21-b5b1-bfcb79a32fcc",
"c9f826e0-deca-41ec-871f-ecd6e8efeb46",
"+1234567890"){{
appRealm = "<value>";
appVersion = "<value>";
callbackUrl = "http://silly-credit.name";
callbackUrl = "https://thin-television.name";
deviceId = "<value>";
deviceModel = "<value>";
deviceType = DeviceType.WEB;
ip = "97.139.118.123";
deviceType = DeviceType.ANDROID;
ip = "176.157.112.67";
isReturningUser = false;
osVersion = "<value>";
templateId = "<value>";

}};

live.ding.dingSdk.models.operations.CreateAutenticationResponse res = sdk.otp.createAutentication(req);
live.ding.dingSdk.models.operations.CreateAuthenticationResponse res = sdk.otp.createAuthentication(req);

if (res.createAuthenticationResponse != null) {
// handle response
Expand Down Expand Up @@ -154,7 +155,7 @@ public class Application {
### [otp](docs/sdks/otp/README.md)

* [check](docs/sdks/otp/README.md#check) - Check a code
* [createAutentication](docs/sdks/otp/README.md#createautentication) - Send a code
* [createAuthentication](docs/sdks/otp/README.md#createauthentication) - Send a code
* [retry](docs/sdks/otp/README.md#retry) - Perform a retry

### [lookup](docs/sdks/lookup/README.md)
Expand Down
10 changes: 9 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,12 @@ Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.185.0 (2.263.3) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v0.4.0] .
- [java v0.4.0] .

## 2024-03-11 17:14:17
### Changes
Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.205.2 (2.279.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v0.4.1] .
13 changes: 7 additions & 6 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Send an OTP code to a user's phone number.
package hello.world;

import live.ding.dingSdk.Ding;
import live.ding.dingSdk.models.operations.CreateAutenticationResponse;
import live.ding.dingSdk.models.operations.CreateAuthenticationResponse;
import live.ding.dingSdk.models.shared.CreateAuthenticationRequest;
import live.ding.dingSdk.models.shared.DeviceType;
import live.ding.dingSdk.models.shared.Security;
Expand All @@ -24,21 +24,22 @@ public class Application {
.build();

live.ding.dingSdk.models.shared.CreateAuthenticationRequest req = new CreateAuthenticationRequest(
"eae192ab-9e1e-4b21-b5b1-bfcb79a32fcc",
"c9f826e0-deca-41ec-871f-ecd6e8efeb46",
"+1234567890"){{
appRealm = "<value>";
appVersion = "<value>";
callbackUrl = "http://silly-credit.name";
callbackUrl = "https://thin-television.name";
deviceId = "<value>";
deviceModel = "<value>";
deviceType = DeviceType.WEB;
ip = "97.139.118.123";
deviceType = DeviceType.ANDROID;
ip = "176.157.112.67";
isReturningUser = false;
osVersion = "<value>";
templateId = "<value>";

}};

live.ding.dingSdk.models.operations.CreateAutenticationResponse res = sdk.otp.createAutentication(req);
live.ding.dingSdk.models.operations.CreateAuthenticationResponse res = sdk.otp.createAuthentication(req);

if (res.createAuthenticationResponse != null) {
// handle response
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CreateAutenticationResponse
# CreateAuthenticationResponse


## Fields
Expand Down
4 changes: 3 additions & 1 deletion docs/models/shared/Code.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ A machine-readable code that describes the error. Possible values are:
* `invalid_os_version` - The provided OS version is invalid.
* `invalid_device_model` - The provided device model is invalid.
* `invalid_device_id` - The provided device ID is invalid.
* `invalid_template_id` - The provided template ID is invalid.



Expand All @@ -36,4 +37,5 @@ A machine-readable code that describes the error. Possible values are:
| `INVALID_APP_VERSION` | invalid_app_version |
| `INVALID_OS_VERSION` | invalid_os_version |
| `INVALID_DEVICE_MODEL` | invalid_device_model |
| `INVALID_DEVICE_ID` | invalid_device_id |
| `INVALID_DEVICE_ID` | invalid_device_id |
| `INVALID_TEMPLATE_ID` | invalid_template_id |
3 changes: 2 additions & 1 deletion docs/models/shared/CreateAuthenticationRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@
| `ip` | *String* | :heavy_minus_sign: | The IP address of the user's device. | |
| `isReturningUser` | *Boolean* | :heavy_minus_sign: | Whether the user is a returning user on your app. | |
| `osVersion` | *String* | :heavy_minus_sign: | The version of the user's device operating system. | |
| `phoneNumber` | *String* | :heavy_check_mark: | An E.164 formatted phone number to send the OTP to. | +1234567890 |
| `phoneNumber` | *String* | :heavy_check_mark: | An E.164 formatted phone number to send the OTP to. | +1234567890 |
| `templateId` | *String* | :heavy_minus_sign: | The template id associated with the message content variant to be sent. | |
Loading

0 comments on commit 9ddd9d5

Please sign in to comment.