Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
24 changes: 15 additions & 9 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 90080b12-9e47-459d-875f-5a0a3b2545d2
management:
docChecksum: 43b75c4ea50f77d47aed029ccc0c9c5e
docChecksum: 4e61b7ebb6f7537f0f63788428d9f306
docVersion: 1.0.0
speakeasyVersion: 1.648.0
generationVersion: 2.737.0
releaseVersion: 0.16.0
configChecksum: 286ea90ee80a23f59bae2b98547191e2
speakeasyVersion: 1.651.0
generationVersion: 2.745.2
releaseVersion: 0.17.0
configChecksum: 197bb2ca7d102396e26fda3199475447
repoURL: https://github.com/StackOneHQ/stackone-client-java.git
published: true
features:
Expand All @@ -15,7 +15,7 @@ features:
additionalDependencies: 0.1.0
additionalProperties: 0.0.1
constsAndDefaults: 0.1.1
core: 3.53.1
core: 3.55.1
deprecations: 2.81.1
examples: 2.81.6
flattening: 2.81.1
Expand All @@ -30,7 +30,7 @@ features:
pagination: 1.0.0
retries: 0.1.1
sdkHooks: 1.1.0
unions: 0.0.6
unions: 0.1.0
generatedFiles:
- .gitattributes
- USAGE.md
Expand Down Expand Up @@ -109,6 +109,7 @@ generatedFiles:
- docs/models/components/ActionsMetaPaginated.md
- docs/models/components/ActionsRpcRequestDto.md
- docs/models/components/ActionsRpcResponse.md
- docs/models/components/ActionsRpcResponseData.md
- docs/models/components/Active.md
- docs/models/components/Active2.md
- docs/models/components/Actor.md
Expand Down Expand Up @@ -1385,6 +1386,7 @@ generatedFiles:
- docs/models/components/ProviderErrorApiModelHeaders.md
- docs/models/components/ProviderErrorApiModelRaw.md
- docs/models/components/ProxyRequestBody.md
- docs/models/components/ProxyResponseApiModel.md
- docs/models/components/PushMessageContents.md
- docs/models/components/PushMessages.md
- docs/models/components/PushMessagesMessageContent.md
Expand Down Expand Up @@ -2605,6 +2607,7 @@ generatedFiles:
- src/main/java/com/stackone/stackone_client_java/models/components/ActionsMetaPaginated.java
- src/main/java/com/stackone/stackone_client_java/models/components/ActionsRpcRequestDto.java
- src/main/java/com/stackone/stackone_client_java/models/components/ActionsRpcResponse.java
- src/main/java/com/stackone/stackone_client_java/models/components/ActionsRpcResponseData.java
- src/main/java/com/stackone/stackone_client_java/models/components/Active.java
- src/main/java/com/stackone/stackone_client_java/models/components/Active2.java
- src/main/java/com/stackone/stackone_client_java/models/components/Actor.java
Expand Down Expand Up @@ -3881,6 +3884,7 @@ generatedFiles:
- src/main/java/com/stackone/stackone_client_java/models/components/ProviderErrorApiModelHeaders.java
- src/main/java/com/stackone/stackone_client_java/models/components/ProviderErrorApiModelRaw.java
- src/main/java/com/stackone/stackone_client_java/models/components/ProxyRequestBody.java
- src/main/java/com/stackone/stackone_client_java/models/components/ProxyResponseApiModel.java
- src/main/java/com/stackone/stackone_client_java/models/components/PushMessageContents.java
- src/main/java/com/stackone/stackone_client_java/models/components/PushMessages.java
- src/main/java/com/stackone/stackone_client_java/models/components/PushMessagesMessageContent.java
Expand Down Expand Up @@ -6587,6 +6591,8 @@ examples:
application/json: {"statusCode": 501, "message": "Not Implemented", "timestamp": "2023-05-30T00:00:00.000Z"}
"502":
application/json: {"statusCode": 502, "message": "Bad Gateway", "timestamp": "2023-05-30T00:00:00.000Z"}
"200":
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": {}}]}
hris_list_companies:
speakeasy-default-hris-list-companies:
parameters:
Expand Down Expand Up @@ -16723,7 +16729,7 @@ examples:
query:
group_by: "[\"connector\"]"
filter: {"connectors": "connector1,connector2", "account_ids": "account1,account2", "action_key": "action1"}
include: ["operation_details"]
include: ["action_details"]
responses:
"200":
application/json: {}
Expand Down Expand Up @@ -16922,4 +16928,4 @@ examples:
application/json: {"statusCode": 502, "message": "Bad Gateway", "timestamp": "2023-05-30T00:00:00.000Z"}
examplesVersion: 1.0.2
generatedTests: {}
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"
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"
4 changes: 3 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ generation:
hoistGlobalSecurity: true
schemas:
allOfMergeStrategy: shallowMerge
requestBodyFieldName: ""
tests:
generateTests: true
generateNewTests: false
skipResponseBodyAssertions: false
java:
version: 0.16.0
version: 0.17.0
additionalDependencies: []
additionalPlugins: []
artifactID: stackone-client-java
Expand All @@ -38,6 +39,7 @@ java:
enableCustomCodeRegions: false
enableStreamingUploads: false
flattenGlobalSecurity: true
generateOptionalUnionAccessors: false
generateSpringBootStarter: true
githubURL: github.com/owner/repo
groupID: com.stackone
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.648.0
speakeasyVersion: 1.651.0
sources:
StackOne-OAS:
sourceNamespace: stackone-oas
sourceRevisionDigest: sha256:c5069173ebfe59e42f43f1a2411011b8df2472da290956f8b91e30a10a4480a9
sourceBlobDigest: sha256:f9d5da4e137088e2424dae11844b60aeb7f1c60f336bf5d030cc94be8df9013e
sourceRevisionDigest: sha256:1974e692f70462cc257a0a25a49638c4a2c28cf225b751c2877caf9ba5eea273
sourceBlobDigest: sha256:d50cf5ce138486b86d7c5837c8a209775b17f7c890552dfc83bdaff8fb6ac793
tags:
- latest
- speakeasy-sdk-regen-1761696400
- speakeasy-sdk-regen-1762387583
- 1.0.0
targets:
stackone:
source: StackOne-OAS
sourceNamespace: stackone-oas
sourceRevisionDigest: sha256:c5069173ebfe59e42f43f1a2411011b8df2472da290956f8b91e30a10a4480a9
sourceBlobDigest: sha256:f9d5da4e137088e2424dae11844b60aeb7f1c60f336bf5d030cc94be8df9013e
sourceRevisionDigest: sha256:1974e692f70462cc257a0a25a49638c4a2c28cf225b751c2877caf9ba5eea273
sourceBlobDigest: sha256:d50cf5ce138486b86d7c5837c8a209775b17f7c890552dfc83bdaff8fb6ac793
codeSamplesNamespace: stack-one-oas-java-code-samples
codeSamplesRevisionDigest: sha256:f76a013bc6e618cacb6c370638c37bf3797f7909c614589c5c694f10997e1ae1
codeSamplesRevisionDigest: sha256:b01494f215f1ceae2dc26337f1544154e79f40f16401c46f3646fb0a7447b58c
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
97 changes: 67 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ The samples below show how a published SDK artifact is used:

Gradle:
```groovy
implementation 'com.stackone:stackone-client-java:0.16.0'
implementation 'com.stackone:stackone-client-java:0.17.0'
```

Maven:
```xml
<dependency>
<groupId>com.stackone</groupId>
<artifactId>stackone-client-java</artifactId>
<version>0.16.0</version>
<version>0.17.0</version>
</dependency>
```

Expand Down Expand Up @@ -569,7 +569,7 @@ public class Application {
.actionKey("action1")
.build())
.include(List.of(
StackoneListActionsMetaQueryParamInclude.OPERATION_DETAILS))
StackoneListActionsMetaQueryParamInclude.ACTION_DETAILS))
.build();


Expand Down Expand Up @@ -627,7 +627,7 @@ public class Application {
.actionKey("action1")
.build())
.include(List.of(
StackoneListActionsMetaQueryParamInclude.OPERATION_DETAILS))
StackoneListActionsMetaQueryParamInclude.ACTION_DETAILS))
.build();


Expand Down Expand Up @@ -811,8 +811,11 @@ import com.stackone.stackone_client_java.StackOne;
import com.stackone.stackone_client_java.models.components.*;
import com.stackone.stackone_client_java.models.errors.*;
import com.stackone.stackone_client_java.models.operations.StackoneCreateConnectSessionResponse;
import java.io.UncheckedIOException;
import java.lang.Exception;
import java.lang.String;
import java.util.List;
import java.util.Optional;

public class Application {

Expand All @@ -824,35 +827,69 @@ public class Application {
.password("")
.build())
.build();
try {

ConnectSessionCreate req = ConnectSessionCreate.builder()
.originOwnerId("<id>")
.originOwnerName("<value>")
.categories(List.of(
Categories.ATS,
Categories.HRIS,
Categories.DOCUMENTS,
Categories.CRM,
Categories.IAM,
Categories.MARKETING,
Categories.LMS,
Categories.IAM,
Categories.DOCUMENTS,
Categories.TICKETING,
Categories.SCREENING,
Categories.MESSAGING,
Categories.ACCOUNTING))
.type(Type.TEST)
.build();

ConnectSessionCreate req = ConnectSessionCreate.builder()
.originOwnerId("<id>")
.originOwnerName("<value>")
.categories(List.of(
Categories.ATS,
Categories.HRIS,
Categories.DOCUMENTS,
Categories.CRM,
Categories.IAM,
Categories.MARKETING,
Categories.LMS,
Categories.IAM,
Categories.DOCUMENTS,
Categories.TICKETING,
Categories.SCREENING,
Categories.MESSAGING,
Categories.ACCOUNTING))
.type(Type.TEST)
.build();
StackoneCreateConnectSessionResponse res = sdk.connectSessions().createConnectSession()
.request(req)
.call();

StackoneCreateConnectSessionResponse res = sdk.connectSessions().createConnectSession()
.request(req)
.call();
if (res.connectSessionTokenAuthLink().isPresent()) {
// handle response
}
} catch (StackOneError ex) { // all SDK exceptions inherit from StackOneError

// ex.ToString() provides a detailed error message including
// HTTP status code, headers, and error payload (if any)
System.out.println(ex);

// Base exception fields
var rawResponse = ex.rawResponse();
var headers = ex.headers();
var contentType = headers.first("Content-Type");
int statusCode = ex.code();
Optional<byte[]> responseBody = ex.body();

// different error subclasses may be thrown
// depending on the service call
if (ex instanceof BadRequestResponse) {
var e = (BadRequestResponse) ex;
// Check error data fields
e.data().ifPresent(payload -> {
double statusCode = payload.statusCode();
String message = payload.message();
// ...
});
}

if (res.connectSessionTokenAuthLink().isPresent()) {
// handle response
}
}
// An underlying cause may be provided. If the error payload
// cannot be deserialized then the deserialization exception
// will be set as the cause.
if (ex.getCause() != null) {
var cause = ex.getCause();
}
} catch (UncheckedIOException ex) {
// handle IO error (connection, timeout, etc)
} }
}
```

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,4 +278,14 @@ Based on:
### Generated
- [java v0.16.0] .
### Releases
- [Maven Central v0.16.0] https://central.sonatype.com/artifact/com.stackone/stackone-client-java/0.16.0 - .
- [Maven Central v0.16.0] https://central.sonatype.com/artifact/com.stackone/stackone-client-java/0.16.0 - .

## 2025-11-10 00:06:15
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.651.0 (2.745.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v0.17.0] .
### Releases
- [Maven Central v0.17.0] https://central.sonatype.com/artifact/com.stackone/stackone-client-java/0.17.0 - .
8 changes: 4 additions & 4 deletions docs/models/components/ActionsRpcResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ |
| `next` | *JsonNullable\<String>* | :heavy_minus_sign: | Cursor for fetching the next page of results |
| `data` | [JsonNullable\<Data>](../../models/components/Data.md) | :heavy_minus_sign: | The response data from the action RPC call |
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
| `next` | *JsonNullable\<String>* | :heavy_minus_sign: | Cursor for fetching the next page of results |
| `data` | [JsonNullable\<ActionsRpcResponseData>](../../models/components/ActionsRpcResponseData.md) | :heavy_minus_sign: | The response data from the action RPC call |
4 changes: 4 additions & 0 deletions docs/models/components/ActionsRpcResponseData.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# ActionsRpcResponseData

The response data from the action RPC call

2 changes: 1 addition & 1 deletion docs/models/components/Data.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Data

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

Loading