Skip to content

Commit ee9d58c

Browse files
github-actions[bot]speakeasybotspeakeasy-github[bot]
authored
chore: 🐝 Update SDK - Generate 0.17.0 (#36)
* ## Java SDK Changes Detected: * `stackone.mcp.mcpGet()`: `request` **Changed** * `stackone.mcp.mcpPost()`: `request` **Changed** * `stackone.mcp.mcpDelete()`: `request` **Changed** * `stackone.proxy.proxyRequest()`: `response` **Changed** * `stackone.actions.listActionsMeta()`: * `request.include` **Changed** * empty commit to trigger [run-tests] workflow --------- Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
1 parent 08474d6 commit ee9d58c

354 files changed

Lines changed: 3302 additions & 2802 deletions

File tree

Some content is hidden

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

β€Ž.speakeasy/gen.lockβ€Ž

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 90080b12-9e47-459d-875f-5a0a3b2545d2
33
management:
4-
docChecksum: 43b75c4ea50f77d47aed029ccc0c9c5e
4+
docChecksum: 4e61b7ebb6f7537f0f63788428d9f306
55
docVersion: 1.0.0
6-
speakeasyVersion: 1.648.0
7-
generationVersion: 2.737.0
8-
releaseVersion: 0.16.0
9-
configChecksum: 286ea90ee80a23f59bae2b98547191e2
6+
speakeasyVersion: 1.651.0
7+
generationVersion: 2.745.2
8+
releaseVersion: 0.17.0
9+
configChecksum: 197bb2ca7d102396e26fda3199475447
1010
repoURL: https://github.com/StackOneHQ/stackone-client-java.git
1111
published: true
1212
features:
@@ -15,7 +15,7 @@ features:
1515
additionalDependencies: 0.1.0
1616
additionalProperties: 0.0.1
1717
constsAndDefaults: 0.1.1
18-
core: 3.53.1
18+
core: 3.55.1
1919
deprecations: 2.81.1
2020
examples: 2.81.6
2121
flattening: 2.81.1
@@ -30,7 +30,7 @@ features:
3030
pagination: 1.0.0
3131
retries: 0.1.1
3232
sdkHooks: 1.1.0
33-
unions: 0.0.6
33+
unions: 0.1.0
3434
generatedFiles:
3535
- .gitattributes
3636
- USAGE.md
@@ -109,6 +109,7 @@ generatedFiles:
109109
- docs/models/components/ActionsMetaPaginated.md
110110
- docs/models/components/ActionsRpcRequestDto.md
111111
- docs/models/components/ActionsRpcResponse.md
112+
- docs/models/components/ActionsRpcResponseData.md
112113
- docs/models/components/Active.md
113114
- docs/models/components/Active2.md
114115
- docs/models/components/Actor.md
@@ -1385,6 +1386,7 @@ generatedFiles:
13851386
- docs/models/components/ProviderErrorApiModelHeaders.md
13861387
- docs/models/components/ProviderErrorApiModelRaw.md
13871388
- docs/models/components/ProxyRequestBody.md
1389+
- docs/models/components/ProxyResponseApiModel.md
13881390
- docs/models/components/PushMessageContents.md
13891391
- docs/models/components/PushMessages.md
13901392
- docs/models/components/PushMessagesMessageContent.md
@@ -2605,6 +2607,7 @@ generatedFiles:
26052607
- src/main/java/com/stackone/stackone_client_java/models/components/ActionsMetaPaginated.java
26062608
- src/main/java/com/stackone/stackone_client_java/models/components/ActionsRpcRequestDto.java
26072609
- src/main/java/com/stackone/stackone_client_java/models/components/ActionsRpcResponse.java
2610+
- src/main/java/com/stackone/stackone_client_java/models/components/ActionsRpcResponseData.java
26082611
- src/main/java/com/stackone/stackone_client_java/models/components/Active.java
26092612
- src/main/java/com/stackone/stackone_client_java/models/components/Active2.java
26102613
- src/main/java/com/stackone/stackone_client_java/models/components/Actor.java
@@ -3881,6 +3884,7 @@ generatedFiles:
38813884
- src/main/java/com/stackone/stackone_client_java/models/components/ProviderErrorApiModelHeaders.java
38823885
- src/main/java/com/stackone/stackone_client_java/models/components/ProviderErrorApiModelRaw.java
38833886
- src/main/java/com/stackone/stackone_client_java/models/components/ProxyRequestBody.java
3887+
- src/main/java/com/stackone/stackone_client_java/models/components/ProxyResponseApiModel.java
38843888
- src/main/java/com/stackone/stackone_client_java/models/components/PushMessageContents.java
38853889
- src/main/java/com/stackone/stackone_client_java/models/components/PushMessages.java
38863890
- src/main/java/com/stackone/stackone_client_java/models/components/PushMessagesMessageContent.java
@@ -6587,6 +6591,8 @@ examples:
65876591
application/json: {"statusCode": 501, "message": "Not Implemented", "timestamp": "2023-05-30T00:00:00.000Z"}
65886592
"502":
65896593
application/json: {"statusCode": 502, "message": "Bad Gateway", "timestamp": "2023-05-30T00:00:00.000Z"}
6594+
"200":
6595+
application/json: {"status": 200, "headers": {"content-type": "application/json", "x-request-id": "123e4567-e89b-12d3-a456-426614174000"}, "data": {"id": "123", "name": "John Doe", "email": "john.doe@example.com"}, "provider_errors": [{"status": 400, "url": "https://api.someprovider.com/v1/endpoint", "raw": {}, "headers": {}}]}
65906596
hris_list_companies:
65916597
speakeasy-default-hris-list-companies:
65926598
parameters:
@@ -16723,7 +16729,7 @@ examples:
1672316729
query:
1672416730
group_by: "[\"connector\"]"
1672516731
filter: {"connectors": "connector1,connector2", "account_ids": "account1,account2", "action_key": "action1"}
16726-
include: ["operation_details"]
16732+
include: ["action_details"]
1672716733
responses:
1672816734
"200":
1672916735
application/json: {}
@@ -16922,4 +16928,4 @@ examples:
1692216928
application/json: {"statusCode": 502, "message": "Bad Gateway", "timestamp": "2023-05-30T00:00:00.000Z"}
1692316929
examplesVersion: 1.0.2
1692416930
generatedTests: {}
16925-
releaseNotes: "## Java SDK Changes Detected:\n* `stackone.actions.rpcAction()`: \n * `request.query` **Changed** **Breaking** :warning:\n * `response.data` **Changed**\n* `stackone.hris.listEmployees()`: `response.data.[].bankDetails.[].isPrimary` **Changed** **Breaking** :warning:\n* `stackone.hris.getEmployee()`: `response.data.bankDetails.[].isPrimary` **Changed** **Breaking** :warning:\n"
16931+
releaseNotes: "## Java SDK Changes Detected:\n* `stackone.mcp.mcpGet()`: `request` **Changed**\n* `stackone.mcp.mcpPost()`: `request` **Changed**\n* `stackone.mcp.mcpDelete()`: `request` **Changed**\n* `stackone.proxy.proxyRequest()`: `response` **Changed**\n* `stackone.actions.listActionsMeta()`: \n * `request.include` **Changed**\n"

β€Ž.speakeasy/gen.yamlβ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ generation:
1919
hoistGlobalSecurity: true
2020
schemas:
2121
allOfMergeStrategy: shallowMerge
22+
requestBodyFieldName: ""
2223
tests:
2324
generateTests: true
2425
generateNewTests: false
2526
skipResponseBodyAssertions: false
2627
java:
27-
version: 0.16.0
28+
version: 0.17.0
2829
additionalDependencies: []
2930
additionalPlugins: []
3031
artifactID: stackone-client-java
@@ -38,6 +39,7 @@ java:
3839
enableCustomCodeRegions: false
3940
enableStreamingUploads: false
4041
flattenGlobalSecurity: true
42+
generateOptionalUnionAccessors: false
4143
generateSpringBootStarter: true
4244
githubURL: github.com/owner/repo
4345
groupID: com.stackone

β€Ž.speakeasy/workflow.lockβ€Ž

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.648.0
1+
speakeasyVersion: 1.651.0
22
sources:
33
StackOne-OAS:
44
sourceNamespace: stackone-oas
5-
sourceRevisionDigest: sha256:c5069173ebfe59e42f43f1a2411011b8df2472da290956f8b91e30a10a4480a9
6-
sourceBlobDigest: sha256:f9d5da4e137088e2424dae11844b60aeb7f1c60f336bf5d030cc94be8df9013e
5+
sourceRevisionDigest: sha256:1974e692f70462cc257a0a25a49638c4a2c28cf225b751c2877caf9ba5eea273
6+
sourceBlobDigest: sha256:d50cf5ce138486b86d7c5837c8a209775b17f7c890552dfc83bdaff8fb6ac793
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1761696400
9+
- speakeasy-sdk-regen-1762387583
1010
- 1.0.0
1111
targets:
1212
stackone:
1313
source: StackOne-OAS
1414
sourceNamespace: stackone-oas
15-
sourceRevisionDigest: sha256:c5069173ebfe59e42f43f1a2411011b8df2472da290956f8b91e30a10a4480a9
16-
sourceBlobDigest: sha256:f9d5da4e137088e2424dae11844b60aeb7f1c60f336bf5d030cc94be8df9013e
15+
sourceRevisionDigest: sha256:1974e692f70462cc257a0a25a49638c4a2c28cf225b751c2877caf9ba5eea273
16+
sourceBlobDigest: sha256:d50cf5ce138486b86d7c5837c8a209775b17f7c890552dfc83bdaff8fb6ac793
1717
codeSamplesNamespace: stack-one-oas-java-code-samples
18-
codeSamplesRevisionDigest: sha256:f76a013bc6e618cacb6c370638c37bf3797f7909c614589c5c694f10997e1ae1
18+
codeSamplesRevisionDigest: sha256:b01494f215f1ceae2dc26337f1544154e79f40f16401c46f3646fb0a7447b58c
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

β€ŽREADME.mdβ€Ž

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

4747
Gradle:
4848
```groovy
49-
implementation 'com.stackone:stackone-client-java:0.16.0'
49+
implementation 'com.stackone:stackone-client-java:0.17.0'
5050
```
5151

5252
Maven:
5353
```xml
5454
<dependency>
5555
<groupId>com.stackone</groupId>
5656
<artifactId>stackone-client-java</artifactId>
57-
<version>0.16.0</version>
57+
<version>0.17.0</version>
5858
</dependency>
5959
```
6060

@@ -569,7 +569,7 @@ public class Application {
569569
.actionKey("action1")
570570
.build())
571571
.include(List.of(
572-
StackoneListActionsMetaQueryParamInclude.OPERATION_DETAILS))
572+
StackoneListActionsMetaQueryParamInclude.ACTION_DETAILS))
573573
.build();
574574

575575

@@ -627,7 +627,7 @@ public class Application {
627627
.actionKey("action1")
628628
.build())
629629
.include(List.of(
630-
StackoneListActionsMetaQueryParamInclude.OPERATION_DETAILS))
630+
StackoneListActionsMetaQueryParamInclude.ACTION_DETAILS))
631631
.build();
632632

633633

@@ -811,8 +811,11 @@ import com.stackone.stackone_client_java.StackOne;
811811
import com.stackone.stackone_client_java.models.components.*;
812812
import com.stackone.stackone_client_java.models.errors.*;
813813
import com.stackone.stackone_client_java.models.operations.StackoneCreateConnectSessionResponse;
814+
import java.io.UncheckedIOException;
814815
import java.lang.Exception;
816+
import java.lang.String;
815817
import java.util.List;
818+
import java.util.Optional;
816819

817820
public class Application {
818821

@@ -824,35 +827,69 @@ public class Application {
824827
.password("")
825828
.build())
826829
.build();
830+
try {
831+
832+
ConnectSessionCreate req = ConnectSessionCreate.builder()
833+
.originOwnerId("<id>")
834+
.originOwnerName("<value>")
835+
.categories(List.of(
836+
Categories.ATS,
837+
Categories.HRIS,
838+
Categories.DOCUMENTS,
839+
Categories.CRM,
840+
Categories.IAM,
841+
Categories.MARKETING,
842+
Categories.LMS,
843+
Categories.IAM,
844+
Categories.DOCUMENTS,
845+
Categories.TICKETING,
846+
Categories.SCREENING,
847+
Categories.MESSAGING,
848+
Categories.ACCOUNTING))
849+
.type(Type.TEST)
850+
.build();
827851

828-
ConnectSessionCreate req = ConnectSessionCreate.builder()
829-
.originOwnerId("<id>")
830-
.originOwnerName("<value>")
831-
.categories(List.of(
832-
Categories.ATS,
833-
Categories.HRIS,
834-
Categories.DOCUMENTS,
835-
Categories.CRM,
836-
Categories.IAM,
837-
Categories.MARKETING,
838-
Categories.LMS,
839-
Categories.IAM,
840-
Categories.DOCUMENTS,
841-
Categories.TICKETING,
842-
Categories.SCREENING,
843-
Categories.MESSAGING,
844-
Categories.ACCOUNTING))
845-
.type(Type.TEST)
846-
.build();
852+
StackoneCreateConnectSessionResponse res = sdk.connectSessions().createConnectSession()
853+
.request(req)
854+
.call();
847855

848-
StackoneCreateConnectSessionResponse res = sdk.connectSessions().createConnectSession()
849-
.request(req)
850-
.call();
856+
if (res.connectSessionTokenAuthLink().isPresent()) {
857+
// handle response
858+
}
859+
} catch (StackOneError ex) { // all SDK exceptions inherit from StackOneError
860+
861+
// ex.ToString() provides a detailed error message including
862+
// HTTP status code, headers, and error payload (if any)
863+
System.out.println(ex);
864+
865+
// Base exception fields
866+
var rawResponse = ex.rawResponse();
867+
var headers = ex.headers();
868+
var contentType = headers.first("Content-Type");
869+
int statusCode = ex.code();
870+
Optional<byte[]> responseBody = ex.body();
871+
872+
// different error subclasses may be thrown
873+
// depending on the service call
874+
if (ex instanceof BadRequestResponse) {
875+
var e = (BadRequestResponse) ex;
876+
// Check error data fields
877+
e.data().ifPresent(payload -> {
878+
double statusCode = payload.statusCode();
879+
String message = payload.message();
880+
// ...
881+
});
882+
}
851883

852-
if (res.connectSessionTokenAuthLink().isPresent()) {
853-
// handle response
854-
}
855-
}
884+
// An underlying cause may be provided. If the error payload
885+
// cannot be deserialized then the deserialization exception
886+
// will be set as the cause.
887+
if (ex.getCause() != null) {
888+
var cause = ex.getCause();
889+
}
890+
} catch (UncheckedIOException ex) {
891+
// handle IO error (connection, timeout, etc)
892+
} }
856893
}
857894
```
858895

β€ŽRELEASES.mdβ€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,4 +278,14 @@ Based on:
278278
### Generated
279279
- [java v0.16.0] .
280280
### Releases
281-
- [Maven Central v0.16.0] https://central.sonatype.com/artifact/com.stackone/stackone-client-java/0.16.0 - .
281+
- [Maven Central v0.16.0] https://central.sonatype.com/artifact/com.stackone/stackone-client-java/0.16.0 - .
282+
283+
## 2025-11-10 00:06:15
284+
### Changes
285+
Based on:
286+
- OpenAPI Doc
287+
- Speakeasy CLI 1.651.0 (2.745.2) https://github.com/speakeasy-api/speakeasy
288+
### Generated
289+
- [java v0.17.0] .
290+
### Releases
291+
- [Maven Central v0.17.0] https://central.sonatype.com/artifact/com.stackone/stackone-client-java/0.17.0 - .

β€Ždocs/models/components/ActionsRpcResponse.mdβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ |
8-
| `next` | *JsonNullable\<String>* | :heavy_minus_sign: | Cursor for fetching the next page of results |
9-
| `data` | [JsonNullable\<Data>](../../models/components/Data.md) | :heavy_minus_sign: | The response data from the action RPC call |
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
8+
| `next` | *JsonNullable\<String>* | :heavy_minus_sign: | Cursor for fetching the next page of results |
9+
| `data` | [JsonNullable\<ActionsRpcResponseData>](../../models/components/ActionsRpcResponseData.md) | :heavy_minus_sign: | The response data from the action RPC call |
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# ActionsRpcResponseData
2+
3+
The response data from the action RPC call
4+
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Data
22

3-
The response data from the action RPC call
3+
The response data from the provider. Can be an object, array, or primitive value.
44

0 commit comments

Comments
Β (0)