defender
Open source prompt injection protection for Agents calling tools (via MCP, CLI or direct function calling). Detect and defend against prompt injection attacks. 22MB, CPU-only, < 10ms latency.
- 137
- TypeScript
- Apache-2.0
- 2 d ago
Java SDK for the StackOne API
Repo StackOneHQ/stackone-client-java, read from GitHub 1 min ago. StackOneHQ has not joined Take My Repo.
StackOneHQ/stackone-client-java is a public repo on GitHub by StackOneHQ. Java SDK for the StackOne API. It declares no license on GitHub. Public does not mean open source: without a license, nobody is granted the right to reuse it. It is written mainly in Java, has 3 stars and last changed on 2026-10-07. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-21.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
Accounting: The documentation for the StackOne Unified API - ACCOUNTING
JDK 11 or later is required.
The samples below show how a published SDK artifact is used:
Gradle:
implementation 'com.stackone:stackone-client-java:0.19.2'Maven:
<dependency> <groupId>com.stackone</groupId> <artifactId>stackone-client-java</artifactId> <version>0.19.2</version> </dependency>
After cloning the git repository to your file system you can build the SDK artifact from source to the build directory by running ./gradlew build on *nix systems or gradlew.bat on Windows systems.
If you wish to build from source and publish the SDK artifact to your local Maven repository (on your filesystem) then use the following command (after cloning the git repo locally):
On *nix:
./gradlew publishToMavenLocal -Pskip.signing
On Windows:
gradlew.bat publishToMavenLocal -Pskip.signing
package hello.world; import com.stackone.stackone_client_java.StackOne; import com.stackone.stackone_client_java.models.components.Security; import com.stackone.stackone_client_java.models.errors.*; import com.stackone.stackone_client_java.models.operations.*; import java.lang.Exception; import java.time.OffsetDateTime; public class Application { public static void main(String[] args) throws Exception { StackOne sdk = StackOne.builder() .security(Security.builder() .username("") .password("") .build()) .build(); HrisListEmployeesRequest req = HrisListEmployeesRequest.builder() .xAccountId("<id>") .fields("id,remote_id,title,first_name,last_name,name,display_name,gender,ethnicity,date_of_birth,birthday,marital_status,avatar_url,avatar,personal_email,personal_phone_number,work_email,work_phone_number,job_id,remote_job_id,job_title,job_description,department_id,remote_department_id,department,cost_centers,company,manager_id,remote_manager_id,hire_date,start_date,tenure,work_anniversary,employment_type,employment_contract_type,employment_status,termination_date,company_name,company_id,remote_company_id,preferred_language,citizenships,home_location,work_location,employments,custom_fields,created_at,updated_at,benefits,employee_number,national_identity_number,national_identity_numbers,bank_details,skills,unified_custom_fields") .filter(HrisListEmployeesQueryParamFilter.builder() .updatedAfter(OffsetDateTime.parse("2020-01-01T00:00:00.000Z")) .build()) .expand("company,employments,work_location,home_location,groups,skills") .include("avatar_url,avatar,custom_fields,job_description,benefits,bank_details") .prefer("heartbeat") .build(); sdk.hris().listEmployees() .callAsStream() .forEach((HrisListEmployeesResponse item) -> { // handle page }); } }
An asynchronous SDK client is also available that returns a CompletableFuture<T>. See Asynchronous Support for more details on async benefits and reactive library integration.
package hello.world; import com.stackone.stackone_client_java.AsyncStackOne; import com.stackone.stackone_client_java.StackOne; import com.stackone.stackone_client_java.models.components.*; import com.stackone.stackone_client_java.models.operations.async.StackoneCreateConnectSessionResponse; import java.util.List; import java.util.concurrent.CompletableFuture; public class Application { public static void main(String[] args) { AsyncStackOne sdk = StackOne.builder() .security(Security.builder() .username("") .password("") .build()) .build() .async(); 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, Categories.SCHEDULING)) .type(Type.TEST) .build(); CompletableFuture<StackoneCreateConnectSessionResponse> resFut = sdk.connectSessions().createConnectSession() .request(req) .call(); resFut.thenAccept(res -> { if (res.connectSessionTokenAuthLink().isPresent()) { // handle response } }); } }
Some of the endpoints in this SDK support pagination. To use pagination, you can make your SDK calls using the callAsIterable or callAsStream methods.
For certain operations, you can also use the callAsStreamUnwrapped method that streams individual page items directly.
Here's an example depicting the different ways to use pagination:
package hello.world; import com.stackone.stackone_client_java.StackOne; import com.stackone.stackone_client_java.models.components.Security; import com.stackone.stackone_client_java.models.errors.*; import com.stackone.stackone_client_java.models.operations.*; import java.lang.Exception; import java.lang.Iterable; import java.util.List; public class Application { public static void main(String[] args) throws Exception { StackOne sdk = StackOne.builder() .security(Security.builder() .username("") .password("") .build()) .build(); StackoneListActionsMetaRequest req = StackoneListActionsMetaRequest.builder() .groupBy("[\"connector\"]") .filter(StackoneListActionsMetaQueryParamFilter.builder() .connectors("connector1,connector2") .accountIds("account1,account2") .actionKey("action1") .build()) .include(List.of( StackoneListActionsMetaQueryParamInclude.ACTION_DETAILS)) .search("employee") .exclude(List.of( Exclude.ACTIONS)) .build(); var b = sdk.actions().listActionsMeta(); // Iterate through all pages using a traditional for-each loop // Each iteration returns a complete page response Iterable<StackoneListActionsMetaResponse> iterable = b.callAsIterable(); for (StackoneListActionsMetaResponse page : iterable) { // handle page } // Stream through all pages and process individual items // callAsStreamUnwrapped() flattens pages into individual items // Stream through pages without unwrapping (each item is a complete page) b.callAsStream() .forEach((StackoneListActionsMetaResponse page) -> { // handle page }); } }
An asynchronous SDK client is also available for pagination that returns a Flow.Publisher<T>. For async pagination, you can use callAsPublisher() to get pages as a publisher, or callAsPublisherUnwrapped() to get individual items directly. See Asynchronous Support for more details on async benefits and reactive library integration.
package hello.world; import com.stackone.stackone_client_java.AsyncStackOne; import com.stackone.stackone_client_java.StackOne; import com.stackone.stackone_client_java.models.components.Security; import com.stackone.stackone_client_java.models.operations.*; import com.stackone.stackone_client_java.models.operations.async.StackoneListActionsMetaResponse; import java.util.List; import reactor.core.publisher.Flux; public class Application { public static void main(String[] args) { AsyncStackOne sdk = StackOne.builder() .security(Security.builder() .username("") .password("") .build()) .build() .async(); StackoneListActionsMetaRequest req = StackoneListActionsMetaRequest.builder() .groupBy("[\"connector\"]") .filter(StackoneListActionsMetaQueryParamFilter.builder() .connectors("connector1,connector2") .accountIds("account1,account2") .actionKey("action1") .build()) .include(List.of( StackoneListActionsMetaQueryParamInclude.ACTION_DETAILS)) .search("employee") .exclude(List.of( Exclude.ACTIONS)) .build(); var b = sdk.actions().listActionsMeta(); // Example using Project Reactor (illustrative) - pages Flux<StackoneListActionsMetaResponse> pageFlux = Flux.from(b.callAsPublisher()); pageFlux.subscribe( page -> System.out.println(page), error -> error.printStackTrace(), () -> System.out.println("Pagination completed") ); } }
Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK.
To change the default retry strategy for a single API call, you can provide a RetryConfig object through the retryConfig builder method:
package hello.world; 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 com.stackone.stackone_client_java.utils.BackoffStrategy; import com.stackone.stackone_client_java.utils.RetryConfig; import java.lang.Exception; import java.util.List; import java.util.concurrent.TimeUnit; public class Application { public static void main(String[] args) throws Exception { StackOne sdk = StackOne.builder() .security(Security.builder() .username("") .password("") .build()) .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, Categories.SCHEDULING)) .type(Type.TEST) .build(); StackoneCreateConnectSessionResponse res = sdk.connectSessions().createConnectSession() .request(req) .retryConfig(RetryConfig.builder() .backoff(BackoffStrategy.builder() .initialInterval(1L, TimeUnit.MILLISECONDS) .maxInterval(50L, TimeUnit.MILLISECONDS) .maxElapsedTime(1000L, TimeUnit.MILLISECONDS) .baseFactor(1.1) .jitterFactor(0.15) .retryConnectError(false) .build()) .build()) .call(); if (res.connectSessionTokenAuthLink().isPresent()) { // handle response } } }
If you'd like to override the default retry strategy for all operations that support retries, you can provide a configuration at SDK initialization:
package hello.world; 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 com.stackone.stackone_client_java.utils.BackoffStrategy; import com.stackone.stackone_client_java.utils.RetryConfig; import java.lang.Exception; import java.util.List; import java.util.concurrent.TimeUnit; public class Application { public static void main(String[] args) throws Exception { StackOne sdk = StackOne.builder() .retryConfig(RetryConfig.builder() .backoff(BackoffStrategy.builder() .initialInterval(1L, TimeUnit.MILLISECONDS) .maxInterval(50L, TimeUnit.MILLISECONDS) .maxElapsedTime(1000L, TimeUnit.MILLISECONDS) .baseFactor(1.1) .jitterFactor(0.15) .retryConnectError(false) .build()) .build()) .security(Security.builder() .username("") .password("") .build()) .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, Categories.SCHEDULING)) .type(Type.TEST) .build(); StackoneCreateConnectSessionResponse res = sdk.connectSessions().createConnectSession() .request(req) .call(); if (res.connectSessionTokenAuthLink().isPresent()) { // handle response } } }
Handling errors in this SDK should largely match your expectations. All operations return a response object or raise an exception.
StackOneError is the base class for all HTTP error responses. It has the following properties:
| Method | Type | Description |
|---|---|---|
message() |
String |
Error message |
code() |
int |
HTTP response status code eg 404 |
headers |
Map<String, List<String>> |
HTTP response headers |
body() |
byte[] |
HTTP body as a byte array. Can be empty array if no body is returned. |
bodyAsString() |
String |
HTTP body as a UTF-8 string. Can be empty string if no body is returned. |
rawResponse() |
HttpResponse<?> |
Raw HTTP response (body already read and not available for re-read) |
package hello.world; 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 { public static void main(String[] args) throws Exception { StackOne sdk = StackOne.builder() .security(Security.builder() .username("") .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, Categories.SCHEDULING)) .type(Type.TEST) .build(); 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(); // ... }); } // 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) } } }
Primary errors:
StackOneError: The base class for HTTP error responses.
com.stackone.stackone_client_java.models.errors.BadRequestResponse: Invalid request. Status code 400.com.stackone.stackone_client_java.models.errors.UnauthorizedResponse: Unauthorized access. Status code 401.com.stackone.stackone_client_java.models.errors.ForbiddenResponse: Forbidden. Status code 403.com.stackone.stackone_client_java.models.errors.NotFoundResponse: Resource not found. Status code 404.com.stackone.stackone_client_java.models.errors.RequestTimedOutResponse: The request has timed out. Status code 408.com.stackone.stackone_client_java.models.errors.ConflictResponse: Conflict with current state. Status code 409.com.stackone.stackone_client_java.models.errors.UnprocessableEntityResponse: Validation error. Status code 422.com.stackone.stackone_client_java.models.errors.TooManyRequestsResponse: Too many requests. Status code 429.com.stackone.stackone_client_java.models.errors.InternalServerErrorResponse: Server error while executing the request. Status code 500.com.stackone.stackone_client_java.models.errors.NotImplementedResponse: This functionality is not implemented. Status code 501.com.stackone.stackone_client_java.models.errors.BadGatewayResponse: Bad gateway error. Status code 502.com.stackone.stackone_client_java.models.errors.PreconditionFailedResponse: Precondition failed: linked account belongs to a disabled integration. Status code 412. *Network errors:
java.io.IOException (always wrapped by java.io.UncheckedIOException). Commonly encountered subclasses of
IOException include java.net.ConnectException, java.net.SocketTimeoutException, EOFException (there are
many more subclasses in the JDK platform).Inherit from StackOneError:
* Check the method documentation to see if the error is applicable.
The default server can be overridden globally using the .serverURL(String serverUrl) builder method when initializing the SDK client instance. For example:
package hello.world; 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.lang.Exception; import java.util.List; public class Application { public static void main(String[] args) throws Exception { StackOne sdk = StackOne.builder() .serverURL("https://api.stackone.com") .security(Security.builder() .username("") .password("") .build()) .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, Categories.SCHEDULING)) .type(Type.TEST) .build(); StackoneCreateConnectSessionResponse res = sdk.connectSessions().createConnectSession() .request(req) .call(); if (res.connectSessionTokenAuthLink().isPresent()) { // handle response } } }
The SDK provides comprehensive asynchronous support using Java's CompletableFuture<T> and Reactive Streams Publisher<T> APIs. This design makes no assumptions about your choice of reactive toolkit, allowing seamless integration with any reactive library.
Asynchronous operations provide several key benefits:
The SDK returns Reactive Streams Publisher<T> instances for operations dealing with streams involving multiple I/O interactions. We use Reactive Streams instead of JDK Flow API to provide broader compatibility with the reactive ecosystem, as most reactive libraries natively support Reactive Streams.
Why Reactive Streams over JDK Flow?
Integration with Popular Libraries:
Flux.from(publisher) to convert to Reactor typesFlowable.fromPublisher(publisher) for RxJava integrationSource.fromPublisher(publisher) for Akka Streams integrationReadStream.fromPublisher(vertx, publisher) for Vert.x reactive streamsMulti.createFrom().publisher(publisher) for Quarkus Mutiny integrationFor JDK Flow API Integration: If you need JDK Flow API compatibility (e.g., for Quarkus/Mutiny 2), you can use adapters:
// Convert Reactive Streams Publisher to Flow Publisher Flow.Publisher<T> flowPublisher = FlowAdapters.toFlowPublisher(reactiveStreamsPublisher); // Convert Flow Publisher to Reactive Streams Publisher Publisher<T> reactiveStreamsPublisher = FlowAdapters.toPublisher(flowPublisher);
For standard single-response operations, the SDK returns CompletableFuture<T> for straightforward async execution.
Async support is available for:
Publisher<T>callAsPublisher() and callAsPublisherUnwrapped()CompletableFuture<T> for async executionThis SDK supports the following security scheme globally:
| Name | Type | Scheme |
|---|---|---|
usernamepassword |
http | HTTP Basic |
You can set the security parameters through the security builder method when initializing the SDK client instance. For example:
package hello.world; 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.lang.Exception; import java.util.List; public class Application { public static void main(String[] args) throws Exception { StackOne sdk = StackOne.builder() .security(Security.builder() .username("") .password("") .build()) .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, Categories.SCHEDULING)) .type(Type.TEST) .build(); StackoneCreateConnectSessionResponse res = sdk.connectSessions().createConnectSession() .request(req) .call(); if (res.connectSessionTokenAuthLink().isPresent()) { // handle response } } }
Some operations in this SDK require the security scheme to be specified at the request level. For example:
package hello.world; import com.stackone.stackone_client_java.StackOne; import com.stackone.stackone_client_java.models.errors.*; import com.stackone.stackone_client_java.models.operations.StackoneMcpGetResponse; import com.stackone.stackone_client_java.models.operations.StackoneMcpGetSecurity; import java.lang.Exception; public class Application { public static void main(String[] args) throws Exception { StackOne sdk = StackOne.builder() .build(); StackoneMcpGetResponse res = sdk.mcp().mcpGet() .security(StackoneMcpGetSecurity.builder() .build()) .xAccountId("<id>") .mcpSessionId("<id>") .call(); // handle response } }
The Java SDK makes API calls using an HTTPClient that wraps the native
HttpClient. This
client provides the ability to attach hooks around the request lifecycle that can be used to modify the request or handle
errors and response.
The HTTPClient interface allows you to either use the default SpeakeasyHTTPClient that comes with the SDK,
or provide your own custom implementation with customized configuration such as custom executors, SSL context,
connection pools, and other HTTP client settings.
The interface provides synchronous (send) methods and asynchronous (sendAsync) methods. The sendAsync method
is used to power the async SDK methods and returns a CompletableFuture<HttpResponse<Blob>> for non-blocking operations.
The following example shows how to add a custom header and handle errors:
import com.stackone.stackone_client_java.StackOne; import com.stackone.stackone_client_java.utils.HTTPClient; import com.stackone.stackone_client_java.utils.SpeakeasyHTTPClient; import com.stackone.stackone_client_java.utils.Utils; import java.io.IOException; import java.net.URISyntaxException; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.io.InputStream; import java.time.Duration; public class Application { public static void main(String[] args) { // Create a custom HTTP client with hooks HTTPClient httpClient = new HTTPClient() { private final HTTPClient defaultClient = new SpeakeasyHTTPClient(); @Override public HttpResponse<InputStream> send(HttpRequest request) throws IOException, URISyntaxException, InterruptedException { // Add custom header and timeout using Utils.copy() HttpRequest modifiedRequest = Utils.copy(request) .header("x-custom-header", "custom value") .timeout(Duration.ofSeconds(30)) .build(); try { HttpResponse<InputStream> response = defaultClient.send(modifiedRequest); // Log successful response System.out.println("Request successful: " + response.statusCode()); return response; } catch (Exception error) { // Log error System.err.println("Request failed: " + error.getMessage()); throw error; } } }; StackOne sdk = StackOne.builder() .client(httpClient) .build(); } }
You can also provide a completely custom HTTP client with your own configuration:
import com.stackone.stackone_client_java.StackOne; import com.stackone.stackone_client_java.utils.HTTPClient; import com.stackone.stackone_client_java.utils.Blob; import com.stackone.stackone_client_java.utils.ResponseWithBody; import java.io.IOException; import java.net.URISyntaxException; import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.io.InputStream; import java.time.Duration; import java.util.concurrent.Executors; import java.util.concurrent.CompletableFuture; public class Application { public static void main(String[] args) { // Custom HTTP client with custom configuration HTTPClient customHttpClient = new HTTPClient() { private final HttpClient client = HttpClient.newBuilder() .executor(Executors.newFixedThreadPool(10)) .connectTimeout(Duration.ofSeconds(30)) // .sslContext(customSslContext) // Add custom SSL context if needed .build(); @Override public HttpResponse<InputStream> send(HttpRequest request) throws IOException, URISyntaxException, InterruptedException { return client.send(request, HttpResponse.BodyHandlers.ofInputStream()); } @Override public CompletableFuture<HttpResponse<Blob>> sendAsync(HttpRequest request) { // Convert response to HttpResponse<Blob> for async operations return client.sendAsync(request, HttpResponse.BodyHandlers.ofPublisher()) .thenApply(resp -> new ResponseWithBody<>(resp, Blob::from)); } }; StackOne sdk = StackOne.builder() .client(customHttpClient) .build(); } }
You can also enable debug logging on the default SpeakeasyHTTPClient:
import com.stackone.stackone_client_java.StackOne; import com.stackone.stackone_client_java.utils.SpeakeasyHTTPClient; public class Application { public static void main(String[] args) { SpeakeasyHTTPClient httpClient = new SpeakeasyHTTPClient(); httpClient.enableDebugLogging(true); StackOne sdk = StackOne.builder() .client(httpClient) .build(); } }
You can setup your SDK to emit debug logs for SDK requests and responses.
For request and response logging (especially json bodies), call enableHTTPDebugLogging(boolean) on the SDK builder like so:
SDK.builder() .enableHTTPDebugLogging(true) .build();
Example output:
Sending request: http://localhost:35123/bearer#global GET
Request headers: {Accept=[application/json], Authorization=[******], Client-Level-Header=[added by client], Idempotency-Key=[some-key], x-speakeasy-user-agent=[speakeasy-sdk/java 0.0.1 internal 0.1.0 org.openapis.openapi]}
Received response: (GET http://localhost:35123/bearer#global) 200
Response headers: {access-control-allow-credentials=[true], access-control-allow-origin=[*], connection=[keep-alive], content-length=[50], content-type=[application/json], date=[Wed, 09 Apr 2025 01:43:29 GMT], server=[gunicorn/19.9.0]}
Response body:
{
"authenticated": true,
"token": "global"
}
WARNING: This logging should only be used for temporary debugging purposes. Leaving this option on in a production system could expose credentials/secrets in logs. Authorization headers are redacted by default and there is the ability to specify redacted header names via SpeakeasyHTTPClient.setRedactedHeaders.
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.
Another option is to set the System property -Djdk.httpclient.HttpClient.log=all. However, this second option does not log bodies.
This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally looking for the latest version.
While we value open-source contributions to this SDK, this library is generated programmatically. Any manual changes added to internal files will be overwritten on the next generation. We look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we'll do our best to include it in a future release.
StackOneHQ/stackone-client-java is a public repo on GitHub by StackOneHQ. Java SDK for the StackOne API.
It declares no license on GitHub. Public does not mean open source: without a license, nobody is granted the right to reuse it.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-10-07. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
transform Cursor rules to a formatted CLAUDE.md
Python port of @stackone/defender: open source prompt injection protection for agents calling tools (MCP, CLI or direct function calls). 22MB, CPU-only, < 10ms latency.
This page is also available as structured data, with the same sources and dates.
/api/v1/resources/gh/StackOneHQ/stackone-client-javaTake My Repo has not tested this on your machine. Requirements come from the project's own documentation.