Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.134.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Jan 9, 2024
1 parent f584d47 commit 8a16cef
Show file tree
Hide file tree
Showing 82 changed files with 443 additions and 241 deletions.
Empty file modified .gitattributes
100755 → 100644
Empty file.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Ignore IDE-specific configs
.project
.settings/
# Ignore Gradle project-specific cache directory
.gradle
# Ignore Gradle build output directory
Expand Down
98 changes: 98 additions & 0 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
lockVersion: 2.0.0
id: fd2a78ee-286d-4e3c-ab3c-507a8f89f511
management:
docChecksum: 5e4ef027bc51f54368e8b1607b77c098
docVersion: 1.0.0
speakeasyVersion: internal
generationVersion: 2.230.1
releaseVersion: 0.2.0
configChecksum: 48eaf6c69a1dc3ba2106693091b64145
repoURL: https://github.com/ding-live/ding-java.git
repoSubDirectory: .
published: true
features:
java:
core: 3.2.2
examples: 2.81.3
flattening: 2.81.1
globalSecurity: 2.81.2
globalServerURLs: 2.82.1
serverIDs: 2.81.1
generatedFiles:
- lib/src/main/java/live/ding/dingSdk/SDKConfiguration.java
- lib/src/main/java/live/ding/dingSdk/Otp.java
- lib/src/main/java/live/ding/dingSdk/Lookup.java
- lib/src/main/java/live/ding/dingSdk/Ding.java
- .gitattributes
- gradle/wrapper/gradle-wrapper.jar
- gradle/wrapper/gradle-wrapper.properties
- gradlew
- gradlew.bat
- lib/build.gradle
- lib/src/main/java/live/ding/dingSdk/utils/DateTimeDeserializer.java
- lib/src/main/java/live/ding/dingSdk/utils/DateTimeSerializer.java
- lib/src/main/java/live/ding/dingSdk/utils/FormMetadata.java
- lib/src/main/java/live/ding/dingSdk/utils/HTTPClient.java
- lib/src/main/java/live/ding/dingSdk/utils/HTTPRequest.java
- lib/src/main/java/live/ding/dingSdk/utils/HeaderMetadata.java
- lib/src/main/java/live/ding/dingSdk/utils/JSON.java
- lib/src/main/java/live/ding/dingSdk/utils/Metadata.java
- lib/src/main/java/live/ding/dingSdk/utils/MultipartFormMetadata.java
- lib/src/main/java/live/ding/dingSdk/utils/PathParamsMetadata.java
- lib/src/main/java/live/ding/dingSdk/utils/QueryParameters.java
- lib/src/main/java/live/ding/dingSdk/utils/QueryParamsMetadata.java
- lib/src/main/java/live/ding/dingSdk/utils/RequestBody.java
- lib/src/main/java/live/ding/dingSdk/utils/RequestMetadata.java
- lib/src/main/java/live/ding/dingSdk/utils/Security.java
- lib/src/main/java/live/ding/dingSdk/utils/SecurityMetadata.java
- lib/src/main/java/live/ding/dingSdk/utils/SerializedBody.java
- lib/src/main/java/live/ding/dingSdk/utils/SpeakeasyHTTPClient.java
- lib/src/main/java/live/ding/dingSdk/utils/SpeakeasyHTTPSecurityClient.java
- lib/src/main/java/live/ding/dingSdk/utils/SpeakeasyMetadata.java
- lib/src/main/java/live/ding/dingSdk/utils/Types.java
- lib/src/main/java/live/ding/dingSdk/utils/Utils.java
- settings.gradle
- 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/RetryResponse.java
- lib/src/main/java/live/ding/dingSdk/models/operations/LookupRequest.java
- lib/src/main/java/live/ding/dingSdk/models/operations/LookupResponse.java
- lib/src/main/java/live/ding/dingSdk/models/shared/Code.java
- lib/src/main/java/live/ding/dingSdk/models/shared/ErrorResponse.java
- lib/src/main/java/live/ding/dingSdk/models/shared/CreateCheckResponseStatus.java
- lib/src/main/java/live/ding/dingSdk/models/shared/CreateCheckResponse.java
- lib/src/main/java/live/ding/dingSdk/models/shared/CreateCheckRequest.java
- lib/src/main/java/live/ding/dingSdk/models/shared/Status.java
- lib/src/main/java/live/ding/dingSdk/models/shared/CreateAuthenticationResponse.java
- lib/src/main/java/live/ding/dingSdk/models/shared/DeviceType.java
- lib/src/main/java/live/ding/dingSdk/models/shared/CreateAuthenticationRequest.java
- lib/src/main/java/live/ding/dingSdk/models/shared/RetryAuthenticationResponseStatus.java
- lib/src/main/java/live/ding/dingSdk/models/shared/RetryAuthenticationResponse.java
- lib/src/main/java/live/ding/dingSdk/models/shared/RetryAuthenticationRequest.java
- lib/src/main/java/live/ding/dingSdk/models/shared/LineType.java
- 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/RetryResponse.md
- docs/models/operations/LookupRequest.md
- docs/models/operations/LookupResponse.md
- docs/models/shared/Code.md
- docs/models/shared/ErrorResponse.md
- docs/models/shared/CreateCheckResponseStatus.md
- docs/models/shared/CreateCheckResponse.md
- docs/models/shared/CreateCheckRequest.md
- docs/models/shared/Status.md
- docs/models/shared/CreateAuthenticationResponse.md
- docs/models/shared/DeviceType.md
- docs/models/shared/CreateAuthenticationRequest.md
- docs/models/shared/RetryAuthenticationResponseStatus.md
- docs/models/shared/RetryAuthenticationResponse.md
- docs/models/shared/RetryAuthenticationRequest.md
- docs/models/shared/LineType.md
- docs/models/shared/LookupResponse.md
- docs/models/shared/Security.md
- docs/sdks/ding/README.md
- docs/sdks/otp/README.md
- docs/sdks/lookup/README.md
- USAGE.md
93 changes: 60 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@

The Ding Java library provides convenient access to the Ding API from applications written in the Java language.

<!-- Start SDK Installation -->
<!-- Start SDK Installation [installation] -->
## SDK Installation

# SDK Installation

## Gradle
### Gradle

```groovy
implementation 'live.ding.dingSdk:ding:0.1.0'
implementation 'live.ding.dingSdk:ding:0.2.0'
```

<!-- End SDK Installation -->
<!-- End SDK Installation [installation] -->

## SDK Example Usage

<!-- Start SDK Example Usage -->
<!-- Start SDK Example Usage [usage] -->
## SDK Example Usage

# Send a code
### Send a code

Send an OTP code to a user's phone number.


```java
package hello.world;

Expand All @@ -35,12 +35,15 @@ public class Application {
public static void main(String[] args) {
try {
Ding sdk = Ding.builder()
.setSecurity(new Security("YOUR_API_KEY"){{
.setSecurity(new Security(
"YOUR_API_KEY"){{
apiKey = "YOUR_API_KEY";
}})
.build();

live.ding.dingSdk.models.shared.CreateAuthenticationRequest req = new CreateAuthenticationRequest("eae192ab-9e1e-4b21-b5b1-bfcb79a32fcc", "+1234567890"){{
live.ding.dingSdk.models.shared.CreateAuthenticationRequest req = new CreateAuthenticationRequest(
"eae192ab-9e1e-4b21-b5b1-bfcb79a32fcc",
"+1234567890"){{
appRealm = "string";
appVersion = "string";
callbackUrl = "http://silly-credit.name";
Expand All @@ -50,9 +53,10 @@ public class Application {
ip = "97.139.118.123";
isReturningUser = false;
osVersion = "string";

}};

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

if (res.createAuthenticationResponse != null) {
// handle response
Expand All @@ -64,10 +68,11 @@ public class Application {
}
```

# Check a code
### Check a code

Check that a code entered by a user is valid.


```java
package hello.world;

Expand All @@ -80,14 +85,18 @@ public class Application {
public static void main(String[] args) {
try {
Ding sdk = Ding.builder()
.setSecurity(new Security("YOUR_API_KEY"){{
.setSecurity(new Security(
"YOUR_API_KEY"){{
apiKey = "YOUR_API_KEY";
}})
.build();

live.ding.dingSdk.models.shared.CreateCheckRequest req = new CreateCheckRequest("e0e7b0e9-739d-424b-922f-1c2cb48ab077", "123456", "8f1196d5-806e-4b71-9b24-5f96ec052808");
live.ding.dingSdk.models.shared.CreateCheckRequest req = new CreateCheckRequest(
"e0e7b0e9-739d-424b-922f-1c2cb48ab077",
"123456",
"8f1196d5-806e-4b71-9b24-5f96ec052808");

CheckResponse res = sdk.otp.check(req);
live.ding.dingSdk.models.operations.CheckResponse res = sdk.otp.check(req);

if (res.createCheckResponse != null) {
// handle response
Expand All @@ -99,9 +108,10 @@ public class Application {
}
```

# Retry an authentication
### Perform a retry

Perform a retry if a user has not received the code.

Retry an authentication if a user has not received the code.

```java
package hello.world;
Expand All @@ -115,14 +125,17 @@ public class Application {
public static void main(String[] args) {
try {
Ding sdk = Ding.builder()
.setSecurity(new Security("YOUR_API_KEY"){{
.setSecurity(new Security(
"YOUR_API_KEY"){{
apiKey = "YOUR_API_KEY";
}})
.build();

live.ding.dingSdk.models.shared.RetryAuthenticationRequest req = new RetryAuthenticationRequest("a74ee547-564d-487a-91df-37fb25413a91", "3c8b3a46-881e-4cdd-93a6-f7f238bf020a");
live.ding.dingSdk.models.shared.RetryAuthenticationRequest req = new RetryAuthenticationRequest(
"a74ee547-564d-487a-91df-37fb25413a91",
"3c8b3a46-881e-4cdd-93a6-f7f238bf020a");

RetryResponse res = sdk.otp.retry(req);
live.ding.dingSdk.models.operations.RetryResponse res = sdk.otp.retry(req);

if (res.retryAuthenticationResponse != null) {
// handle response
Expand All @@ -133,27 +146,41 @@ public class Application {
}
}
```
<!-- End SDK Example Usage [usage] -->

<!-- Start Available Resources and Operations [operations] -->
## Available Resources and Operations

### [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
* [retry](docs/sdks/otp/README.md#retry) - Perform a retry

### [lookup](docs/sdks/lookup/README.md)

* [lookup](docs/sdks/lookup/README.md#lookup) - Perform a phone number lookup
<!-- End Available Resources and Operations [operations] -->

<!-- End SDK Example Usage -->
<!-- Start Server Selection [server] -->
## Server Selection

<!-- Start SDK Available Operations -->
## Server Selection

# Available Resources and Operations
### Select Server by Name

## [otp](docs/sdks/otp/README.md)
You can override the default server globally using the `setServer` option 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 names associated with the available servers:

- [check](docs/sdks/otp/README.md#check) - Check an authentication code
- [createAutentication](docs/sdks/otp/README.md#createautentication) - Create an authentication
- [retry](docs/sdks/otp/README.md#retry) - Retry an authentication
| Name | Server | Variables |
| ----- | ------ | --------- |
| `production` | `https://api.ding.live/v1` | None |

## [lookup](docs/sdks/lookup/README.md)

- [lookup](docs/sdks/lookup/README.md#lookup) - Lookup a phone number
<!-- End SDK Available Operations -->

<!-- Start Dev Containers -->
### Override Server URL Per-Client

<!-- End Dev Containers -->
The default server can also be overridden globally using the `setServerURL` option when initializing the SDK client instance. For example:
<!-- End Server Selection [server] -->

<!-- Placeholder for Future Speakeasy SDK Sections -->

Expand Down
10 changes: 9 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,12 @@ Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.116.0 (2.185.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v0.1.0] .
- [java v0.1.0] .

## 2024-01-09 00:17:59
### Changes
Based on:
- OpenAPI Doc 1.0.0
- Speakeasy CLI 1.134.0 (2.230.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v0.2.0] .
Loading

0 comments on commit 8a16cef

Please sign in to comment.