Skip to content

Commit 85adfee

Browse files
Merge pull request #5 from docusign/sdk-update-java-1.0.0-beta.6
Update java SDK
2 parents c6c051f + 23e6d51 commit 85adfee

File tree

180 files changed

+6687
-1128
lines changed

Some content is hidden

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

180 files changed

+6687
-1128
lines changed

README.md

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ methods to interact with the following Docusign APIs:
1414
* [Maestro API](https://developers.docusign.com/docs/maestro-api/)
1515
* [Navigator API](https://developers.docusign.com/docs/navigator-api/)
1616
* [Connected Fields API](https://developers.docusign.com/docs/connected-fields-api/)
17+
* [Workspaces API](https://developers.docusign.com/docs/workspaces-api/)
1718

1819
This repo contains the source-code for this SDK. You only need to use the code
1920
in this repo if you want to customize the SDK for your own needs. To use the
@@ -53,15 +54,15 @@ The samples below show how a published SDK artifact is used:
5354

5455
Gradle:
5556
```groovy
56-
implementation 'com.docusign:iam-sdk:1.0.0-beta.5'
57+
implementation 'com.docusign:iam-sdk:1.0.0-beta.6'
5758
```
5859

5960
Maven:
6061
```xml
6162
<dependency>
6263
<groupId>com.docusign</groupId>
6364
<artifactId>iam-sdk</artifactId>
64-
<version>1.0.0-beta.5</version>
65+
<version>1.0.0-beta.6</version>
6566
</dependency>
6667
```
6768

@@ -286,17 +287,10 @@ var res = sdk.auth().getUserInfo().call();
286287
* [getTokenFromRefreshToken](docs/sdks/auth/README.md#gettokenfromrefreshtoken) - Obtains an access token from the Docusign API using an authorization code.
287288
* [getUserInfo](docs/sdks/auth/README.md#getuserinfo) - Get user information
288289

289-
### [connectedFields()](docs/sdks/connectedfields/README.md)
290-
291-
292290
#### [connectedFields().tabInfo()](docs/sdks/tabinfo/README.md)
293291

294292
* [getConnectedFieldsTabGroups](docs/sdks/tabinfo/README.md#getconnectedfieldstabgroups) - Returns all tabs associated with the given account
295293

296-
297-
### [maestro()](docs/sdks/maestro/README.md)
298-
299-
300294
#### [maestro().workflowInstanceManagement()](docs/sdks/workflowinstancemanagement/README.md)
301295

302296
* [getWorkflowInstancesList](docs/sdks/workflowinstancemanagement/README.md#getworkflowinstanceslist) - Retrieve All Workflow Instances
@@ -311,22 +305,17 @@ var res = sdk.auth().getUserInfo().call();
311305
* [pauseNewWorkflowInstances](docs/sdks/workflows/README.md#pausenewworkflowinstances) - Pause an Active Workflow
312306
* [resumePausedWorkflow](docs/sdks/workflows/README.md#resumepausedworkflow) - Resume a Paused Workflow
313307

314-
### [navigator()](docs/sdks/navigator/README.md)
315-
316-
317308
#### [navigator().agreements()](docs/sdks/agreements/README.md)
318309

319310
* [getAgreementsList](docs/sdks/agreements/README.md#getagreementslist) - Retrieve a list of agreements
320311
* [getAgreement](docs/sdks/agreements/README.md#getagreement) - Retrieve detailed information about a specific agreement
321312
* [deleteAgreement](docs/sdks/agreements/README.md#deleteagreement) - Delete a specific agreement
322313
* [createAgreementSummary](docs/sdks/agreements/README.md#createagreementsummary) - Create an AI-generated summary of an agreement document
323314

324-
### [workspaces()](docs/sdks/workspaces1/README.md)
325-
326-
327315
#### [workspaces().workspaceDocuments()](docs/sdks/workspacedocuments/README.md)
328316

329317
* [getWorkspaceDocuments](docs/sdks/workspacedocuments/README.md#getworkspacedocuments) - Get documents in the workspace accessible to the calling user
318+
* [addWorkspaceDocument](docs/sdks/workspacedocuments/README.md#addworkspacedocument) - Add a document to a workspace via file contents upload
330319
* [getWorkspaceDocument](docs/sdks/workspacedocuments/README.md#getworkspacedocument) - Get information about the document
331320
* [deleteWorkspaceDocument](docs/sdks/workspacedocuments/README.md#deleteworkspacedocument) - Deletes a document in the workspace
332321
* [getWorkspaceDocumentContents](docs/sdks/workspacedocuments/README.md#getworkspacedocumentcontents) - Get the file contents of the document
@@ -347,6 +336,7 @@ var res = sdk.auth().getUserInfo().call();
347336
* [getWorkspaceUploadRequest](docs/sdks/workspaceuploadrequest/README.md#getworkspaceuploadrequest) - Gets details for a specific upload request
348337
* [updateWorkspaceUploadRequest](docs/sdks/workspaceuploadrequest/README.md#updateworkspaceuploadrequest) - Updates a specific upload request
349338
* [deleteWorkspaceUploadRequest](docs/sdks/workspaceuploadrequest/README.md#deleteworkspaceuploadrequest) - Deletes a specific upload request
339+
* [addWorkspaceUploadRequestDocument](docs/sdks/workspaceuploadrequest/README.md#addworkspaceuploadrequestdocument) - Add a document to an upload request via file upload
350340
* [completeWorkspaceUploadRequest](docs/sdks/workspaceuploadrequest/README.md#completeworkspaceuploadrequest) - Complete an upload request
351341

352342
#### [workspaces().workspaceUsers()](docs/sdks/workspaceusers/README.md)

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,14 @@ Based on:
5757
### Generated
5858
- [java v1.0.0-beta.5] .
5959
### Releases
60-
- [Maven Central v1.0.0-beta.5] https://central.sonatype.com/artifact/com.docusign/iam-sdk/1.0.0-beta.5 - .
60+
- [Maven Central v1.0.0-beta.5] https://central.sonatype.com/artifact/com.docusign/iam-sdk/1.0.0-beta.5 - .
61+
62+
## 2025-10-09 05:43:58
63+
### Changes
64+
Based on:
65+
- OpenAPI Doc
66+
- Speakeasy CLI 1.636.2 (2.723.8) https://github.com/speakeasy-api/speakeasy
67+
### Generated
68+
- [java v1.0.0-beta.6] .
69+
### Releases
70+
- [Maven Central v1.0.0-beta.6] https://central.sonatype.com/artifact/com.docusign/iam-sdk/1.0.0-beta.6 - .

build.gradle

Lines changed: 62 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
////////////////////////////////////////////////////////////////////////////////////////////
32
// This file is generated by Speakeasy and any edits will be lost in generation updates.
43
//
@@ -9,12 +8,15 @@
98
// of string where each string value is an additional line in the block) in gen.yaml.
109
////////////////////////////////////////////////////////////////////////////////////////////
1110

11+
1212
plugins {
1313
// Apply the java-library plugin for API and implementation separation.
1414
id 'java-library'
1515
id 'maven-publish'
1616
id 'signing'
17+
// V2 publishing plugin (Sonatype Central Portal)
1718
id 'cl.franciscosolis.sonatype-central-upload' version '1.0.3'
19+
id "io.spring.dependency-management" version "1.1.6" apply false
1820
}
1921

2022
compileJava.options.encoding = "UTF-8"
@@ -31,21 +33,18 @@ java {
3133
withJavadocJar()
3234
}
3335

34-
model {
35-
tasks.generatePomFileForMavenPublication {
36-
destination = file("$buildDir/pom.xml")
37-
}
38-
}
39-
4036
version = "${version}"
4137
group = "${groupId}"
4238

4339
jar {
44-
dependsOn(":generatePomFileForMavenPublication")
40+
dependsOn 'generatePomFileForMavenPublication'
4541
archiveBaseName = "${artifactId}"
4642

4743
into("META-INF/maven/com.docusign/iam-sdk") {
48-
from("$buildDir/pom.xml")
44+
from(layout.buildDirectory.file("pom.xml")) {
45+
// Only include if it exists to avoid build ordering issues
46+
duplicatesStrategy = DuplicatesStrategy.INCLUDE
47+
}
4948
}
5049
}
5150

@@ -58,7 +57,7 @@ javadoc {
5857
options.addStringOption('Xdoclint:none', '-quiet')
5958
}
6059

61-
tasks.withType(Javadoc) {
60+
tasks.withType(Javadoc).configureEach {
6261
failOnError = false
6362
options.addStringOption('Xdoclint:none', '-quiet')
6463
}
@@ -74,93 +73,68 @@ sourcesJar {
7473
javadocJar {
7574
archiveBaseName = "${artifactId}"
7675
}
77-
sonatypeCentralUpload {
78-
// This is your Sonatype generated username
79-
username = System.getenv("SONATYPE_USERNAME")
80-
// This is your sonatype generated password
81-
password = System.getenv("SONATYPE_PASSWORD")
82-
83-
// This is a list of files to upload. Ideally you would point to your jar file, source and javadoc jar (required by central)
84-
archives = files(
85-
"$buildDir/libs/${artifactId}-${version}.jar",
86-
"$buildDir/libs/${artifactId}-${version}-sources.jar",
87-
"$buildDir/libs/${artifactId}-${version}-javadoc.jar"
88-
)
89-
90-
// This is the pom file to upload. This is required by central
91-
pom = file("$buildDir/pom.xml")
92-
93-
// This is your PGP private key. This is required to sign your files
94-
signingKey = System.getenv("SONATYPE_SIGNING_KEY")
95-
// This is your PGP private key passphrase to decrypt your private key
96-
signingKeyPassphrase = System.getenv("SIGNING_KEY_PASSPHRASE")
76+
77+
dependencies {
78+
api 'com.fasterxml.jackson.core:jackson-annotations:2.18.2'
79+
implementation 'com.fasterxml.jackson.core:jackson-databind:2.18.2'
80+
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.18.2'
81+
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.18.2'
82+
api('org.openapitools:jackson-databind-nullable:0.2.6') {exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'}
83+
implementation 'commons-io:commons-io:2.18.0'
9784
}
9885

86+
ext {
87+
springBootVersion = '2.7.18'
88+
}
9989

100-
publishing {
101-
102-
publications {
103-
maven(MavenPublication) {
104-
// note that properties can't yet be used below!
105-
// https://github.com/gradle/gradle/issues/18619
106-
groupId = "com.docusign"
107-
artifactId = "iam-sdk"
108-
version = "1.0.0-beta.5"
109-
110-
from components.java
111-
112-
pom {
113-
properties = [
114-
'maven.compiler.source': '11',
115-
'maven.compiler.target': '11',
116-
]
117-
name = 'Docusign Java SDK'
118-
description = 'SDK enabling Java developers to easily integrate with the Docusign API.'
119-
url = 'https://github.com/docusign/docusign-iam-java-client'
120-
scm {
121-
url = 'github.com/docusign/docusign-iam-java-client'
122-
connection = 'scm:git:ssh://git@github.com/docusign/docusign-iam-java-client.git'
123-
}
124-
licenses {
125-
license {
126-
name = 'The MIT License (MIT)'
127-
url = 'https://mit-license.org/'
128-
}
129-
}
130-
developers {
131-
developer {
132-
name = 'Docusign'
133-
organization = 'Docusign'
134-
email = 'dcdev@docusign.com'
135-
}
136-
}
137-
organization {
138-
name = 'Docusign'
139-
url = 'https://developers.docusign.com/'
140-
}
90+
subprojects {
91+
if (name in [
92+
'iam-sdk-spring-boot-autoconfigure',
93+
'iam-sdk-spring-boot-starter'
94+
]) {
95+
// Ensure subprojects use the same group and version as root project
96+
group = rootProject.group
97+
version = rootProject.version
98+
99+
apply {
100+
plugin "java-library"
101+
plugin "io.spring.dependency-management"
102+
plugin "maven-publish"
103+
plugin "signing"
104+
plugin "cl.franciscosolis.sonatype-central-upload"
105+
}
106+
dependencyManagement {
107+
imports {
108+
mavenBom "org.springframework.boot:spring-boot-dependencies:${rootProject.springBootVersion}"
141109
}
142110
}
143-
}
144-
}
111+
repositories {
112+
mavenCentral()
113+
}
114+
java {
115+
withSourcesJar()
116+
withJavadocJar()
117+
}
118+
tasks.withType(JavaCompile).configureEach {
119+
options.release = 11
120+
}
145121

146-
if (!project.hasProperty('skip.signing')) {
147-
signing {
148-
def signingKey = findProperty("signingKey")
149-
def signingPassphrase = findProperty("signingPassphrase")
150-
useInMemoryPgpKeys(signingKey, signingPassphrase)
151-
sign publishing.publications.maven
122+
// Apply publishing configuration to all subprojects - they'll check for publishingConfig internally
123+
apply from: rootProject.file('publishing.gradle')
152124
}
153125
}
154126

155-
156-
157-
dependencies {
158-
api 'com.fasterxml.jackson.core:jackson-annotations:2.18.2'
159-
implementation 'com.fasterxml.jackson.core:jackson-databind:2.18.2'
160-
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.18.2'
161-
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.18.2'
162-
api('org.openapitools:jackson-databind-nullable:0.2.6') {exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'}
163-
implementation 'commons-io:commons-io:2.18.0'
127+
ext {
128+
publishingConfig = [
129+
groupId: group,
130+
artifactId: artifactId,
131+
version: version,
132+
name: "Docusign Java SDK",
133+
description: "SDK enabling Java developers to easily integrate with the Docusign API.",
134+
publicationName: "maven"
135+
]
164136
}
165137

138+
apply from: 'publishing.gradle'
139+
166140
apply from: 'build-extras.gradle'
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# AddWorkspaceDocumentRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
8+
| `file` | [Optional\<AddWorkspaceDocumentRequestFile>](../../models/components/AddWorkspaceDocumentRequestFile.md) | :heavy_minus_sign: | The file within the multipart/form-data |
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# AddWorkspaceDocumentRequestFile
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------ | ------------------ | ------------------ | ------------------ |
8+
| `fileName` | *String* | :heavy_check_mark: | N/A |
9+
| `content` | byte[] | :heavy_check_mark: | N/A |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# AddWorkspaceUploadRequestDocumentRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
8+
| `file` | [Optional\<AddWorkspaceUploadRequestDocumentRequestFile>](../../models/components/AddWorkspaceUploadRequestDocumentRequestFile.md) | :heavy_minus_sign: | The file within the multipart/form-data |
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# AddWorkspaceUploadRequestDocumentRequestFile
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------ | ------------------ | ------------------ | ------------------ |
8+
| `fileName` | *String* | :heavy_check_mark: | N/A |
9+
| `content` | byte[] | :heavy_check_mark: | N/A |
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# AddWorkspaceUploadRequestDocumentResponse
2+
3+
Response for adding a document to an upload request
4+
5+
6+
## Fields
7+
8+
| Field | Type | Required | Description |
9+
| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- |
10+
| `uploadRequestId` | *String* | :heavy_check_mark: | The ID of the upload request |
11+
| `documentId` | *String* | :heavy_check_mark: | The ID of the document that was added |
12+
| `documentName` | *Optional\<String>* | :heavy_check_mark: | The name of the document |
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# CreateWorkspaceDocumentOwner
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ----------------------- | ----------------------- | ----------------------- | ----------------------- |
8+
| `userId` | *JsonNullable\<String>* | :heavy_minus_sign: | N/A |
9+
| `firstName` | *JsonNullable\<String>* | :heavy_minus_sign: | N/A |
10+
| `lastName` | *JsonNullable\<String>* | :heavy_minus_sign: | N/A |

0 commit comments

Comments
 (0)