Skip to content

Commit 020ee1d

Browse files
chore: regenerate java SDK via Speakeasy
1 parent 5709203 commit 020ee1d

File tree

95 files changed

+720
-632
lines changed

Some content is hidden

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

95 files changed

+720
-632
lines changed

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ The samples below show how a published SDK artifact is used:
5252

5353
Gradle:
5454
```groovy
55-
implementation 'com.docusign:iam-sdk:1.0.0-beta.2'
55+
implementation 'com.docusign:iam-sdk:1.0.0-beta.3'
5656
```
5757

5858
Maven:
5959
```xml
6060
<dependency>
6161
<groupId>com.docusign</groupId>
6262
<artifactId>iam-sdk</artifactId>
63-
<version>1.0.0-beta.2</version>
63+
<version>1.0.0-beta.3</version>
6464
</dependency>
6565
```
6666

@@ -124,7 +124,7 @@ public class Application {
124124
public static void main(String[] args) throws OAuthErrorResponse, Exception {
125125

126126
IamClient sdk = IamClient.builder()
127-
.accessToken("<YOUR_ACCESS_TOKEN_HERE>")
127+
.accessToken(System.getenv().getOrDefault("ACCESS_TOKEN", ""))
128128
.build();
129129

130130
GetUserInfoResponse res = sdk.auth().getUserInfo()
@@ -383,8 +383,8 @@ public class Application {
383383
GetTokenFromConfidentialAuthCodeResponse res = sdk.auth().getTokenFromConfidentialAuthCode()
384384
.request(req)
385385
.security(GetTokenFromConfidentialAuthCodeSecurity.builder()
386-
.clientId("2da1cb14-xxxx-xxxx-xxxx-5b7b40829e79")
387-
.secretKey("MTIzNDU2Nzxxxxxxxxxxxxxxxxxxxxx0NTY3ODkwMTI")
386+
.clientId(System.getenv().getOrDefault("2da1cb14-xxxx-xxxx-xxxx-5b7b40829e79", ""))
387+
.secretKey(System.getenv().getOrDefault("MTIzNDU2Nzxxxxxxxxxxxxxxxxxxxxx0NTY3ODkwMTI", ""))
388388
.build())
389389
.retryConfig(RetryConfig.builder()
390390
.backoff(BackoffStrategy.builder()
@@ -443,8 +443,8 @@ public class Application {
443443
GetTokenFromConfidentialAuthCodeResponse res = sdk.auth().getTokenFromConfidentialAuthCode()
444444
.request(req)
445445
.security(GetTokenFromConfidentialAuthCodeSecurity.builder()
446-
.clientId("2da1cb14-xxxx-xxxx-xxxx-5b7b40829e79")
447-
.secretKey("MTIzNDU2Nzxxxxxxxxxxxxxxxxxxxxx0NTY3ODkwMTI")
446+
.clientId(System.getenv().getOrDefault("2da1cb14-xxxx-xxxx-xxxx-5b7b40829e79", ""))
447+
.secretKey(System.getenv().getOrDefault("MTIzNDU2Nzxxxxxxxxxxxxxxxxxxxxx0NTY3ODkwMTI", ""))
448448
.build())
449449
.call();
450450

@@ -494,8 +494,8 @@ public class Application {
494494
GetTokenFromConfidentialAuthCodeResponse res = sdk.auth().getTokenFromConfidentialAuthCode()
495495
.request(req)
496496
.security(GetTokenFromConfidentialAuthCodeSecurity.builder()
497-
.clientId("2da1cb14-xxxx-xxxx-xxxx-5b7b40829e79")
498-
.secretKey("MTIzNDU2Nzxxxxxxxxxxxxxxxxxxxxx0NTY3ODkwMTI")
497+
.clientId(System.getenv().getOrDefault("2da1cb14-xxxx-xxxx-xxxx-5b7b40829e79", ""))
498+
.secretKey(System.getenv().getOrDefault("MTIzNDU2Nzxxxxxxxxxxxxxxxxxxxxx0NTY3ODkwMTI", ""))
499499
.build())
500500
.call();
501501

@@ -546,8 +546,8 @@ public class Application {
546546
GetTokenFromConfidentialAuthCodeResponse res = sdk.auth().getTokenFromConfidentialAuthCode()
547547
.request(req)
548548
.security(GetTokenFromConfidentialAuthCodeSecurity.builder()
549-
.clientId("2da1cb14-xxxx-xxxx-xxxx-5b7b40829e79")
550-
.secretKey("MTIzNDU2Nzxxxxxxxxxxxxxxxxxxxxx0NTY3ODkwMTI")
549+
.clientId(System.getenv().getOrDefault("2da1cb14-xxxx-xxxx-xxxx-5b7b40829e79", ""))
550+
.secretKey(System.getenv().getOrDefault("MTIzNDU2Nzxxxxxxxxxxxxxxxxxxxxx0NTY3ODkwMTI", ""))
551551
.build())
552552
.call();
553553

@@ -586,8 +586,8 @@ public class Application {
586586
GetTokenFromConfidentialAuthCodeResponse res = sdk.auth().getTokenFromConfidentialAuthCode()
587587
.request(req)
588588
.security(GetTokenFromConfidentialAuthCodeSecurity.builder()
589-
.clientId("2da1cb14-xxxx-xxxx-xxxx-5b7b40829e79")
590-
.secretKey("MTIzNDU2Nzxxxxxxxxxxxxxxxxxxxxx0NTY3ODkwMTI")
589+
.clientId(System.getenv().getOrDefault("2da1cb14-xxxx-xxxx-xxxx-5b7b40829e79", ""))
590+
.secretKey(System.getenv().getOrDefault("MTIzNDU2Nzxxxxxxxxxxxxxxxxxxxxx0NTY3ODkwMTI", ""))
591591
.build())
592592
.call();
593593

@@ -625,8 +625,8 @@ public class Application {
625625
GetTokenFromConfidentialAuthCodeResponse res = sdk.auth().getTokenFromConfidentialAuthCode()
626626
.request(req)
627627
.security(GetTokenFromConfidentialAuthCodeSecurity.builder()
628-
.clientId("2da1cb14-xxxx-xxxx-xxxx-5b7b40829e79")
629-
.secretKey("MTIzNDU2Nzxxxxxxxxxxxxxxxxxxxxx0NTY3ODkwMTI")
628+
.clientId(System.getenv().getOrDefault("2da1cb14-xxxx-xxxx-xxxx-5b7b40829e79", ""))
629+
.secretKey(System.getenv().getOrDefault("MTIzNDU2Nzxxxxxxxxxxxxxxxxxxxxx0NTY3ODkwMTI", ""))
630630
.build())
631631
.serverURL("https://account.docusign.com")
632632
.call();

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,14 @@ Based on:
2727
### Generated
2828
- [java v1.0.0-beta.2] .
2929
### Releases
30-
- [Maven Central v1.0.0-beta.2] https://central.sonatype.com/artifact/com.docusign/iam-sdk/1.0.0-beta.2 - .
30+
- [Maven Central v1.0.0-beta.2] https://central.sonatype.com/artifact/com.docusign/iam-sdk/1.0.0-beta.2 - .
31+
32+
## 2025-07-07 15:12:59
33+
### Changes
34+
Based on:
35+
- OpenAPI Doc
36+
- Speakeasy CLI 1.576.0 (2.651.2) https://github.com/speakeasy-api/speakeasy
37+
### Generated
38+
- [java v1.0.0-beta.3] .
39+
### Releases
40+
- [Maven Central v1.0.0-beta.3] https://central.sonatype.com/artifact/com.docusign/iam-sdk/1.0.0-beta.3 - .

USAGE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class Application {
1212
public static void main(String[] args) throws OAuthErrorResponse, Exception {
1313

1414
IamClient sdk = IamClient.builder()
15-
.accessToken("<YOUR_ACCESS_TOKEN_HERE>")
15+
.accessToken(System.getenv().getOrDefault("ACCESS_TOKEN", ""))
1616
.build();
1717

1818
GetUserInfoResponse res = sdk.auth().getUserInfo()

build.gradle

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ repositories {
2626
}
2727

2828
java {
29-
sourceCompatibility = JavaVersion.VERSION_11
30-
targetCompatibility = JavaVersion.VERSION_11
3129
withSourcesJar()
3230
withJavadocJar()
3331
}
@@ -63,6 +61,10 @@ tasks.withType(Javadoc) {
6361
options.addStringOption('Xdoclint:none', '-quiet')
6462
}
6563

64+
tasks.withType(JavaCompile).configureEach {
65+
options.release = 11
66+
}
67+
6668
sourcesJar {
6769
archiveBaseName = "${artifactId}"
6870
}
@@ -90,11 +92,15 @@ publishing {
9092
// https://github.com/gradle/gradle/issues/18619
9193
groupId = "com.docusign"
9294
artifactId = "iam-sdk"
93-
version = "1.0.0-beta.2"
95+
version = "1.0.0-beta.3"
9496

9597
from components.java
9698

9799
pom {
100+
properties = [
101+
'maven.compiler.source': '11',
102+
'maven.compiler.target': '11',
103+
]
98104
name = 'Docusign Java SDK'
99105
description = 'SDK enabling Java developers to easily integrate with the Docusign API.'
100106
url = 'https://github.com/docusign/docusign-iam-java-client'
@@ -144,4 +150,4 @@ dependencies {
144150
implementation 'commons-io:commons-io:2.18.0'
145151
}
146152

147-
apply from: 'build-extras.gradle'
153+
apply from: 'build-extras.gradle'

docs/models/components/ResponseMetadata.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ Control information and metadata for the response.
99
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1010
| `pageLimit` | *JsonNullable\<Integer>* | :heavy_minus_sign: | The maximum number of items that can be returned in a single page. | 10 |
1111
| `pageTokenNext` | *JsonNullable\<String>* | :heavy_minus_sign: | The continuation token used to retrieve a page in a paginated response. | abc123 |
12-
| `requestId` | *Optional\<String>* | :heavy_check_mark: | Unique identifier for the request, useful for tracking and debugging. | 3f7c9e4b-851c-4f9b-89e7-123456789abc |
13-
| `responseTimestamp` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | The timestamp indicating when the response was generated. | 2024-10-17T14:30:00Z |
14-
| `responseDurationMs` | *Optional\<Integer>* | :heavy_check_mark: | The duration of time, in milliseconds, that the server took to process and respond <br/>to the request. This is measured from the time the server received the request <br/>until the time the response was sent.<br/> | 150 |
12+
| `requestId` | *JsonNullable\<String>* | :heavy_minus_sign: | Unique identifier for the request, useful for tracking and debugging. | 3f7c9e4b-851c-4f9b-89e7-123456789abc |
13+
| `responseTimestamp` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The timestamp indicating when the response was generated. | 2024-10-17T14:30:00Z |
14+
| `responseDurationMs` | *JsonNullable\<Integer>* | :heavy_minus_sign: | The duration of time, in milliseconds, that the server took to process and respond <br/>to the request. This is measured from the time the server received the request <br/>until the time the response was sent.<br/> | 150 |

0 commit comments

Comments
 (0)