Skip to content

Commit 5709203

Browse files
authored
Merge pull request #2 from docusign/sdk-update-java-1.0.0-beta.2
Update java SDK
2 parents e7a923f + 1a4453c commit 5709203

File tree

140 files changed

+8042
-4234
lines changed

Some content is hidden

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

140 files changed

+8042
-4234
lines changed

README.md

Lines changed: 16 additions & 10 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.1'
55+
implementation 'com.docusign:iam-sdk:1.0.0-beta.2'
5656
```
5757

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

@@ -81,9 +81,11 @@ gradlew.bat publishToMavenLocal -Pskip.signing
8181
### Logging
8282
A logging framework/facade has not yet been adopted but is under consideration.
8383

84-
For request and response logging (especially json bodies) use:
84+
For request and response logging (especially json bodies), call `enableHTTPDebugLogging(boolean)` on the SDK builder like so:
8585
```java
86-
SpeakeasyHTTPClient.setDebugLogging(true); // experimental API only (may change without warning)
86+
SDK.builder()
87+
.enableHTTPDebugLogging(true)
88+
.build();
8789
```
8890
Example output:
8991
```
@@ -97,7 +99,9 @@ Response body:
9799
"token": "global"
98100
}
99101
```
100-
WARNING: This should only used for temporary debugging purposes. Leaving this option on in a production system could expose credentials/secrets in logs. <i>Authorization</i> headers are redacted by default and there is the ability to specify redacted header names via `SpeakeasyHTTPClient.setRedactedHeaders`.
102+
__WARNING__: This should only used for temporary debugging purposes. Leaving this option on in a production system could expose credentials/secrets in logs. <i>Authorization</i> headers are redacted by default and there is the ability to specify redacted header names via `SpeakeasyHTTPClient.setRedactedHeaders`.
103+
104+
__NOTE__: This is a convenience method that calls `HTTPClient.enableDebugLogging()`. The `SpeakeasyHTTPClient` honors this setting. If you are using a custom HTTP client, it is up to the custom client to honor this setting.
101105

102106
Another option is to set the System property `-Djdk.httpclient.HttpClient.log=all`. However, this second option does not log bodies.
103107
<!-- End SDK Installation [installation] -->
@@ -330,6 +334,8 @@ var res = sdk.auth().getUserInfo().call();
330334
* [getWorkflowsList](docs/sdks/workflows/README.md#getworkflowslist) - Retrieve a list of available Maestro workflows
331335
* [getWorkflowTriggerRequirements](docs/sdks/workflows/README.md#getworkflowtriggerrequirements) - Retrieve trigger requirements for a specific Maestro workflow
332336
* [triggerWorkflow](docs/sdks/workflows/README.md#triggerworkflow) - Trigger a new instance of a Maestro workflow
337+
* [pauseNewWorkflowInstances](docs/sdks/workflows/README.md#pausenewworkflowinstances) - Pause an Active Workflow
338+
* [resumePausedWorkflow](docs/sdks/workflows/README.md#resumepausedworkflow) - Resume a Paused Workflow
333339

334340
### [navigator()](docs/sdks/navigator/README.md)
335341

@@ -508,10 +514,10 @@ public class Application {
508514

509515
You can override the default server globally using the `.server(AvailableServers server)` 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 names associated with the available servers:
510516

511-
| Name | Server | Description |
512-
| ------ | ------------------------------- | ----------- |
513-
| `demo` | `https://api-d.docusign.com/v1` | Demo |
514-
| `prod` | `https://api.docusign.com/v1` | Production |
517+
| Name | Server | Description |
518+
| ------ | ---------------------------- | ----------- |
519+
| `demo` | `https://api-d.docusign.com` | Demo |
520+
| `prod` | `https://api.docusign.com` | Production |
515521

516522
#### Example
517523

@@ -570,7 +576,7 @@ public class Application {
570576
public static void main(String[] args) throws OAuthErrorResponse, Exception {
571577

572578
IamClient sdk = IamClient.builder()
573-
.serverURL("https://api-d.docusign.com/v1")
579+
.serverURL("https://api-d.docusign.com")
574580
.build();
575581

576582
ConfidentialAuthCodeGrantRequestBody req = ConfidentialAuthCodeGrantRequestBody.builder()

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,14 @@ Based on:
1717
### Generated
1818
- [java v1.0.0-beta.1] .
1919
### Releases
20-
- [Maven Central v1.0.0-beta.1] https://central.sonatype.com/artifact/com.docusign/iam-sdk/1.0.0-beta.1 - .
20+
- [Maven Central v1.0.0-beta.1] https://central.sonatype.com/artifact/com.docusign/iam-sdk/1.0.0-beta.1 - .
21+
22+
## 2025-06-27 13:30:54
23+
### Changes
24+
Based on:
25+
- OpenAPI Doc
26+
- Speakeasy CLI 1.570.2 (2.638.5) https://github.com/speakeasy-api/speakeasy
27+
### Generated
28+
- [java v1.0.0-beta.2] .
29+
### Releases
30+
- [Maven Central v1.0.0-beta.2] https://central.sonatype.com/artifact/com.docusign/iam-sdk/1.0.0-beta.2 - .

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ publishing {
9090
// https://github.com/gradle/gradle/issues/18619
9191
groupId = "com.docusign"
9292
artifactId = "iam-sdk"
93-
version = "1.0.0-beta.1"
93+
version = "1.0.0-beta.2"
9494

9595
from components.java
9696

0 commit comments

Comments
 (0)